From 20c6d5a20ec8b83fb6df22404a2328190fc4f4c8 Mon Sep 17 00:00:00 2001 From: Jonathan Greenemeier Date: Thu, 14 Nov 2019 21:59:56 -0700 Subject: [PATCH] feat: Internationalization (add daysOfWeek and monthsOfYear props) --- README.md | 31 ++++++++++++++++++++ docs/bundle.css | 2 +- docs/bundle.css.map | 10 +++---- docs/bundle.js | 2 +- docs/bundle.js.map | 2 +- docs/test.css | 2 +- docs/test.css.map | 8 ++--- docs/test.js | 2 +- docs/test.js.map | 2 +- package.json | 2 +- src/Components/Datepicker.svelte | 47 +++++++++++++++++++++++++----- src/Components/NavBar.svelte | 19 +++++++----- src/Components/lib/dictionaries.js | 24 --------------- 13 files changed, 98 insertions(+), 55 deletions(-) delete mode 100644 src/Components/lib/dictionaries.js diff --git a/README.md b/README.md index 06660f1..e1b291a 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ prop name | type | default `dateChosen` | `boolean` | `false` `selectableCallback` | `function` | `null` `format` | `string` \| `function` | `'#{m}/#{d}/#{Y}'` +`daysOfWeek` | `array` | En-US Locale (see below) +`monthsOfYear` | `array` | En-US Locale (see below) ### `start` and `end` These properties set the minimum and maximum dates that will be rendered by this calendar. It is **highly** recommended that you do not leave these as their defaults and supply values which suit your application's needs. @@ -35,6 +37,35 @@ Provide a function which accepts a date and returns a boolean determining whethe ### `format` Date formatting uses [`timeUtils`] formatting (MM/DD/YYYY by default). If you would like to use a different formatting library, supply a function which accepts a date and returns a string. +### `daysOfWeek` and `monthsOfYear` +These two properties are used to internationalize the calendar. The default values are: + +```javascript +export let daysOfWeek = [ + ['Sunday', 'Sun'], + ['Monday', 'Mon'], + ['Tuesday', 'Tue'], + ['Wednesday', 'Wed'], + ['Thursday', 'Thu'], + ['Friday', 'Fri'], + ['Saturday', 'Sat'] +]; +export let monthsOfYear = [ + ['January', 'Jan'], + ['February', 'Feb'], + ['March', 'Mar'], + ['April', 'Apr'], + ['May', 'May'], + ['June', 'Jun'], + ['July', 'Jul'], + ['August', 'Aug'], + ['September', 'Sep'], + ['October', 'Oct'], + ['November', 'Nov'], + ['December', 'Dec'] +]; +``` + ### Kitchen Sink Example: ```html \n import Month from './Month.svelte';\n import NavBar from './NavBar.svelte';\n import Popover from './Popover.svelte';\n import { dayDict } from './lib/dictionaries';\n import { getMonths, areDatesEquivalent } from './lib/helpers';\n import { formatDate } from 'timeUtils';\n import { keyCodes, keyCodesArray } from './lib/keyCodes';\n import { onMount, createEventDispatcher } from 'svelte';\n\n const dispatch = createEventDispatcher();\n const today = new Date();\n\n let popover;\n\n export let format = '#{m}/#{d}/#{Y}';\n export let start = new Date(1987, 9, 29);\n export let end = new Date(2020, 9, 29);\n export let selected = today;\n export let dateChosen = false;\n export let trigger = null;\n export let selectableCallback = null;\n\n let highlighted = today;\n let shouldShakeDate = false;\n let shakeHighlightTimeout;\n let month = today.getMonth();\n let year = today.getFullYear();\n\n let isOpen = false;\n let isClosing = false;\n\n today.setHours(0, 0, 0, 0);\n\n function assignmentHandler(formatted) {\n if (!trigger) return;\n trigger.innerHTML = formatted;\n }\n\n $: months = getMonths(start, end, selectableCallback);\n\n let monthIndex = 0;\n $: {\n monthIndex = 0;\n for (let i = 0; i < months.length; i += 1) {\n if (months[i].month === month && months[i].year === year) {\n monthIndex = i;\n }\n }\n }\n $: visibleMonth = months[monthIndex];\n\n $: visibleMonthId = year + month / 100;\n $: lastVisibleDate = visibleMonth.weeks[visibleMonth.weeks.length - 1].days[6].date;\n $: firstVisibleDate = visibleMonth.weeks[0].days[0].date;\n $: canIncrementMonth = monthIndex < months.length - 1;\n $: canDecrementMonth = monthIndex > 0;\n\n export let formattedSelected;\n $: {\n formattedSelected = typeof format === 'function'\n ? format(selected)\n : formatDate(selected, format);\n }\n\n onMount(() => {\n month = selected.getMonth();\n year = selected.getFullYear();\n });\n\n function changeMonth(selectedMonth) {\n month = selectedMonth;\n }\n\n function incrementMonth(direction, date) {\n if (direction === 1 && !canIncrementMonth) return;\n if (direction === -1 && !canDecrementMonth) return;\n let current = new Date(year, month, 1);\n current.setMonth(current.getMonth() + direction);\n month = current.getMonth();\n year = current.getFullYear();\n highlighted = new Date(year, month, date || 1);\n }\n\n function getDefaultHighlighted() {\n return new Date(selected);\n }\n\n function incrementDayHighlighted(amount) {\n highlighted = new Date(highlighted);\n highlighted.setDate(highlighted.getDate() + amount);\n if (amount > 0 && highlighted > lastVisibleDate) {\n return incrementMonth(1, highlighted.getDate());\n }\n if (amount < 0 && highlighted < firstVisibleDate) {\n return incrementMonth(-1, highlighted.getDate());\n }\n return highlighted;\n }\n\n function getDay(m, date) {\n for (let i = 0; i < m.weeks.length; i += 1) {\n for (let j = 0; j < m.weeks[i].days.length; j += 1) {\n if (areDatesEquivalent(m.weeks[i].days[j].date, date)) {\n return m.weeks[i].days[j];\n }\n }\n }\n return null;\n }\n\n function checkIfVisibleDateIsSelectable(date) {\n const day = getDay(visibleMonth, date);\n if (!day) return false;\n return day.selectable;\n }\n\n function shakeDate(date) {\n clearTimeout(shakeHighlightTimeout);\n shouldShakeDate = date;\n shakeHighlightTimeout = setTimeout(() => {\n shouldShakeDate = false;\n }, 700);\n }\n\n function assignValueToTrigger(formatted) {\n assignmentHandler(formatted);\n }\n\n function registerSelection(chosen) {\n if (!checkIfVisibleDateIsSelectable(chosen)) return shakeDate(chosen);\n // eslint-disable-next-line\n close();\n selected = chosen;\n dateChosen = true;\n assignValueToTrigger(formattedSelected);\n return dispatch('dateSelected', { date: chosen });\n }\n\n function handleKeyPress(evt) {\n if (keyCodesArray.indexOf(evt.keyCode) === -1) return;\n evt.preventDefault();\n switch (evt.keyCode) {\n case keyCodes.left:\n incrementDayHighlighted(-1);\n break;\n case keyCodes.up:\n incrementDayHighlighted(-7);\n break;\n case keyCodes.right:\n incrementDayHighlighted(1);\n break;\n case keyCodes.down:\n incrementDayHighlighted(7);\n break;\n case keyCodes.pgup:\n incrementMonth(-1);\n break;\n case keyCodes.pgdown:\n incrementMonth(1);\n break;\n case keyCodes.escape:\n // eslint-disable-next-line\n close();\n break;\n case keyCodes.enter:\n registerSelection(highlighted);\n break;\n default:\n break;\n }\n }\n\n function registerClose() {\n document.removeEventListener('keydown', handleKeyPress);\n dispatch('close');\n }\n\n function close() {\n popover.close();\n registerClose();\n }\n\n function registerOpen() {\n highlighted = getDefaultHighlighted();\n month = selected.getMonth();\n year = selected.getFullYear();\n document.addEventListener('keydown', handleKeyPress);\n dispatch('open');\n }\n\n // theming variables:\n export let buttonBackgroundColor = '#fff';\n export let buttonBorderColor = '#eee';\n export let buttonTextColor = '#333';\n export let highlightColor = '#f7901e';\n export let dayBackgroundColor = 'none';\n export let dayTextColor = '#4a4a4a';\n export let dayHighlightedBackgroundColor = '#efefef';\n export let dayHighlightedTextColor = '#4a4a4a';\n\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} />\n
\n {#each dayDict as day}\n {day.abbrev}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n", - "\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthDict[month].name} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n", - "\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n", + "\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} \n />\n
\n {#each daysOfWeek as day}\n {day[1]}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n", "\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n", + "\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthsOfYear[month][0]} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n", + "\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n", "\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n" ], "names": [], - "mappings": "AA4PE,WAAW,eAAC,CAAC,AACX,OAAO,CAAE,YAAY,CACrB,MAAM,CAAE,CAAC,CAAC,IAAI,CACd,UAAU,CAAE,MAAM,CAClB,QAAQ,CAAE,OAAO,AACnB,CAAC,AAED,gBAAgB,eAAC,CAAC,AAChB,OAAO,CAAE,IAAI,CAAC,IAAI,CAClB,MAAM,CAAE,GAAG,CAAC,KAAK,CAAC,IAAI,qBAAqB,CAAC,CAC5C,OAAO,CAAE,KAAK,CACd,UAAU,CAAE,MAAM,CAClB,KAAK,CAAE,KAAK,CACZ,eAAe,CAAE,IAAI,CACrB,MAAM,CAAE,OAAO,CACf,UAAU,CAAE,IAAI,yBAAyB,CAAC,CAC1C,KAAK,CAAE,IAAI,mBAAmB,CAAC,CAC/B,aAAa,CAAE,GAAG,CAClB,UAAU,CAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,AAC5C,CAAC,AAED,eAAC,CACD,eAAC,OAAO,CACR,eAAC,MAAM,AAAC,CAAC,AACP,UAAU,CAAE,OAAO,AACrB,CAAC,AAED,SAAS,eAAC,CAAC,AACT,UAAU,CAAE,UAAU,CAC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,KAAK,SAAS,CAAC,AAAC,CAAC,AACjC,gBAAgB,CAAE,IAAI,iBAAiB,CAAC,CACxC,YAAY,CAAE,IAAI,iBAAiB,CAAC,CACpC,KAAK,CAAE,IAAI,AACb,CAAC,AACD,IAAI,uBAAS,CAAC,yBAAW,CACzB,IAAI,uBAAS,CAAC,yBAAW,MAAM,AAAC,CAAC,AAC/B,OAAO,CAAE,CAAC,CACV,UAAU,CAAE,IAAI,CAChB,YAAY,CAAE,IAAI,iBAAiB,CAAC,CACpC,KAAK,CAAE,IAAI,AACb,CAAC,AAED,WAAW,mBAAM,CAAC,AAChB,EAAE,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AACjC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,IAAI,CAAC,AAAE,CAAC,AACnC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AAClC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,IAAI,CAAC,AAAE,CAAC,AACnC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AAClC,IAAI,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AACrC,CAAC" } \ No newline at end of file diff --git a/docs/bundle.js b/docs/bundle.js index 3611978..34396ed 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -1,2 +1,2 @@ -var SvelteCalendar=function(){"use strict";function e(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var o=Object(e),r=1;r0)&&v(b)}function k(e){var t;return y||(y=!0,v(b)),{promise:new Promise(function(n){w.add(t=[e,n])}),abort:function(){w.delete(t)}}}function $(e,t){e.appendChild(t)}function M(e,t,n){e.insertBefore(t,n||null)}function C(e){e.parentNode.removeChild(e)}function D(e,t){for(var n=0;n>>0}(h)+"_"+s;if(!j[p]){if(!f){var g=x("style");document.head.appendChild(g),f=g.sheet}j[p]=!0,f.insertRule("@keyframes "+p+" "+h,f.cssRules.length)}var m=e.style.animation||"";return e.style.animation=(m?m+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",W+=1,p}function Y(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}).join(", "),t&&!--W&&v(function(){if(!W){for(var e=f.cssRules.length;e--;)f.deleteRule(e);j={}}})}function F(e){I=e}function A(e){(function(){if(!I)throw new Error("Function called outside component initialization");return I})().$$.on_mount.push(e)}function L(){var e=I;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=H(t,n);o.slice().forEach(function(t){t.call(e,r)})}}}var J,q=[],z=[],R=[],X=[],G=Promise.resolve(),K=!1;function Q(){K||(K=!0,G.then(Z))}function U(e){R.push(e)}function V(e){X.push(e)}function Z(){var e=new Set;do{for(;q.length;){var t=q.shift();F(t),ee(t.$$)}for(;z.length;)z.pop()();for(var n=0;n=e&&r<=t&&(!n||n(r)),isToday:r.getTime()===o.getTime()}}};var ve=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function we(e){var t=e-1;return t*t*t+1}function ye(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=+getComputedStyle(e).opacity;return{delay:n,duration:o,css:function(e){return"opacity: "+e*r}}}function be(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=t.easing;void 0===r&&(r=we);var i=t.x;void 0===i&&(i=0);var c=t.y;void 0===c&&(c=0);var s=t.opacity;void 0===s&&(s=0);var a=getComputedStyle(e),l=+a.opacity,d="none"===a.transform?"":a.transform,u=l*(1-s);return{delay:n,duration:o,easing:r,css:function(e,t){return"\n\t\t\ttransform: "+d+" translate("+(1-e)*i+"px, "+(1-e)*c+"px);\n\t\t\topacity: "+(l-u*t)}}}var ke="src\\Components\\Week.svelte";function $e(e,t,n){var o=Object.create(e);return o.day=t[n],o}function Me(e){var t,n,o,r,c,s=e.day.date.getDate();function a(){return e.click_handler(e)}return{c:function(){t=x("div"),n=x("button"),o=E(s),r=S(),_(n,"class","day--label svelte-5wjnn4"),_(n,"type","button"),T(n,"selected",ve(e.day.date,e.selected)),T(n,"highlighted",ve(e.day.date,e.highlighted)),T(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),T(n,"disabled",!e.day.selectable),i(n,ke,28,6,692),_(t,"class","day svelte-5wjnn4"),T(t,"outside-month",!e.day.partOfMonth),T(t,"is-today",e.day.isToday),T(t,"is-disabled",!e.day.selectable),i(t,ke,22,4,527),c=P(n,"click",a)},m:function(e,i){M(e,t,i),$(t,n),$(n,o),$(t,r)},p:function(r,i){e=i,r.days&&s!==(s=e.day.date.getDate())&&B(o,s),(r.areDatesEquivalent||r.days||r.selected)&&T(n,"selected",ve(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&T(n,"highlighted",ve(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&T(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),r.days&&(T(n,"disabled",!e.day.selectable),T(t,"outside-month",!e.day.partOfMonth),T(t,"is-today",e.day.isToday),T(t,"is-disabled",!e.day.selectable))},d:function(e){e&&C(t),c()}}}function Ce(e){for(var t,r,c,s,d=e.days,u=[],h=0;h=g)return h(1,0),ne(e,!0,"end"),u(),a=!1;if(t>=f){var n=l((t-f)/r);h(n,1-n)}}return a})}var p=!1;return{start:function(){p||(Y(e),l(s)?(s=s(),te().then(h)):h())},invalidate:function(){p=!1},end:function(){a&&(u(),a=!1)}}}(t,be,{x:50*e.direction,duration:180,delay:90})),r.start()}),s=!0)},o:function(e){r&&r.invalidate(),c=function(e,t,r){var i,c=t(e,r),s=!0,d=oe;function u(){var t=c.delay;void 0===t&&(t=0);var r=c.duration;void 0===r&&(r=300);var l=c.easing;void 0===l&&(l=o);var u=c.tick;void 0===u&&(u=n);var h=c.css;h&&(i=N(e,1,0,r,t,l,h));var p=m()+t,f=p+r;U(function(){return ne(e,!1,"start")}),k(function(t){if(s){if(t>=f)return u(0,1),ne(e,!1,"end"),--d.r||a(d.c),!1;if(t>=p){var n=l((t-p)/r);u(1-n,n)}}return s})}return d.r+=1,l(c)?te().then(function(){c=c(),u()}):u(),{end:function(t){t&&c.tick&&c.tick(1,0),s&&(i&&Y(e,i),s=!1)}}}(t,ye,{duration:180}),s=!1},d:function(e){e&&C(t),D(u,e),e&&c&&c.end()}}}function De(e,t,n){var o=L(),r=t.days,i=t.selected,c=t.start,s=t.end,a=t.highlighted,l=t.shouldShakeDate,d=t.direction,u=["days","selected","start","end","highlighted","shouldShakeDate","direction"];return Object.keys(t).forEach(function(e){u.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")}),e.$set=function(e){"days"in e&&n("days",r=e.days),"selected"in e&&n("selected",i=e.selected),"start"in e&&n("start",c=e.start),"end"in e&&n("end",s=e.end),"highlighted"in e&&n("highlighted",a=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",l=e.shouldShakeDate),"direction"in e&&n("direction",d=e.direction)},{dispatch:o,days:r,selected:i,start:c,end:s,highlighted:a,shouldShakeDate:l,direction:d,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var xe=function(e){function t(t){e.call(this,t),he(this,t,De,Ce,d,["days","selected","start","end","highlighted","shouldShakeDate","direction"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.days||"days"in o||console.warn(" was created without expected prop 'days'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'"),void 0!==n.direction||"direction"in o||console.warn(" was created without expected prop 'direction'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={days:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0},direction:{configurable:!0}};return n.days.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.days.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.direction.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.direction.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ee="src\\Components\\Month.svelte";function Se(e,t,n){var o=Object.create(e);return o.week=t[n],o}function Pe(e,t){var n,o,r=new xe({props:{days:t.week.days,selected:t.selected,start:t.start,end:t.end,highlighted:t.highlighted,shouldShakeDate:t.shouldShakeDate,direction:t.direction},$$inline:!0});return r.$on("dateSelected",t.dateSelected_handler),{key:e,first:null,c:function(){n=E(""),r.$$.fragment.c(),this.first=n},m:function(e,t){M(e,n,t),de(r,e,t),o=!0},p:function(e,t){var n={};e.visibleMonth&&(n.days=t.week.days),e.selected&&(n.selected=t.selected),e.start&&(n.start=t.start),e.end&&(n.end=t.end),e.highlighted&&(n.highlighted=t.highlighted),e.shouldShakeDate&&(n.shouldShakeDate=t.shouldShakeDate),e.direction&&(n.direction=t.direction),r.$set(n)},i:function(e){o||(ie(r.$$.fragment,e),o=!0)},o:function(e){ce(r.$$.fragment,e),o=!1},d:function(e){e&&C(n),ue(r,e)}}}function _e(e){for(var t,n,o=[],r=new Map,c=e.visibleMonth.weeks,s=function(e){return e.week.id},l=0;lw.get(S)?(M.add(E),C(D)):($.add(S),h--):(a(x,c),h--)}for(;h--;){var P=e[h];v.has(P.key)||a(P,c)}for(;p;)C(m[p-1]);return m}(o,e,s,1,n,i,r,t,ae,Pe,null,Se),oe.r||a(oe.c),oe=oe.p},i:function(e){if(!n){for(var t=0;t was created with unknown prop '"+e+"'")}),e.$set=function(e){"id"in e&&n("id",r=e.id),"visibleMonth"in e&&n("visibleMonth",i=e.visibleMonth),"selected"in e&&n("selected",c=e.selected),"start"in e&&n("start",s=e.start),"end"in e&&n("end",a=e.end),"highlighted"in e&&n("highlighted",l=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",d=e.shouldShakeDate)},e.$$.update=function(e){void 0===e&&(e={lastId:1,id:1}),(e.lastId||e.id)&&(n("direction",o=u was created without expected prop 'id'"),void 0!==n.visibleMonth||"visibleMonth"in o||console.warn(" was created without expected prop 'visibleMonth'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={id:{configurable:!0},visibleMonth:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0}};return n.id.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.id.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Te=[{name:"January",abbrev:"Jan"},{name:"February",abbrev:"Feb"},{name:"March",abbrev:"Mar"},{name:"April",abbrev:"Apr"},{name:"May",abbrev:"May"},{name:"June",abbrev:"Jun"},{name:"July",abbrev:"Jul"},{name:"August",abbrev:"Aug"},{name:"September",abbrev:"Sep"},{name:"October",abbrev:"Oct"},{name:"November",abbrev:"Nov"},{name:"December",abbrev:"Dec"}],He=[{name:"Sunday",abbrev:"Sun"},{name:"Monday",abbrev:"Mon"},{name:"Tuesday",abbrev:"Tue"},{name:"Wednesday",abbrev:"Wed"},{name:"Thursday",abbrev:"Thu"},{name:"Friday",abbrev:"Fri"},{name:"Saturday",abbrev:"Sat"}],Ie=se.Object,We="src\\Components\\NavBar.svelte";function je(e,t,n){var o=Ie.create(e);return o.monthDefinition=t[n],o.index=n,o}function Ne(e){var t,n,o,r,c,s=e.monthDefinition.abbrev;function a(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return e.click_handler_2.apply(e,[e].concat(t))}return{c:function(){t=x("div"),n=x("span"),o=E(s),r=S(),_(n,"class","svelte-1uccyem"),i(n,We,66,8,1875),_(t,"class","month-selector--month svelte-1uccyem"),T(t,"selected",e.index===e.month),T(t,"selectable",e.monthDefinition.selectable),i(t,We,60,6,1665),c=P(t,"click",a)},m:function(e,i){M(e,t,i),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&s!==(s=e.monthDefinition.abbrev)&&B(o,s),n.month&&T(t,"selected",e.index===e.month),n.availableMonths&&T(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&C(t),c()}}}function Ye(e){for(var t,o,r,c,s,l,d,u,h,p,f,g,m,v,w,y=Te[e.month].name,b=e.availableMonths,k=[],O=0;O was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",i=e.month),"start"in e&&n("start",c=e.start),"end"in e&&n("end",s=e.end),"year"in e&&n("year",a=e.year),"canIncrementMonth"in e&&n("canIncrementMonth",l=e.canIncrementMonth),"canDecrementMonth"in e&&n("canDecrementMonth",d=e.canDecrementMonth)},e.$$.update=function(e){if(void 0===e&&(e={start:1,year:1,end:1}),e.start||e.year||e.end){var t=c.getFullYear()===a,r=s.getFullYear()===a;n("availableMonths",o=Te.map(function(e,n){return Object.assign({},e,{selectable:!t&&!r||(!t||n>=c.getMonth())&&(!r||n<=s.getMonth())})}))}},{dispatch:r,month:i,start:c,end:s,year:a,canIncrementMonth:l,canDecrementMonth:d,monthSelectorOpen:u,availableMonths:o,toggleMonthSelectorOpen:h,monthSelected:p,click_handler:function(){return r("incrementMonth",-1)},click_handler_1:function(){return r("incrementMonth",1)},click_handler_2:function(e,t){return p(t,e.index)}}}var Ae=function(e){function t(t){e.call(this,t),he(this,t,Fe,Ye,d,["month","start","end","year","canIncrementMonth","canDecrementMonth"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.month||"month"in o||console.warn(" was created without expected prop 'month'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.year||"year"in o||console.warn(" was created without expected prop 'year'"),void 0!==n.canIncrementMonth||"canIncrementMonth"in o||console.warn(" was created without expected prop 'canIncrementMonth'"),void 0!==n.canDecrementMonth||"canDecrementMonth"in o||console.warn(" was created without expected prop 'canDecrementMonth'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={month:{configurable:!0},start:{configurable:!0},end:{configurable:!0},year:{configurable:!0},canIncrementMonth:{configurable:!0},canDecrementMonth:{configurable:!0}};return n.month.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.month.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.year.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.year.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Le=se.window,Je="src\\Components\\Popover.svelte",qe=function(){return{}},ze=function(){return{}},Re=function(){return{}},Xe=function(){return{}};function Ge(e){var t,n,o,r,c,s,l,d;U(e.onwindowresize);var f=e.$$slots.trigger,g=u(f,e,Xe),m=e.$$slots.contents,v=u(m,e,ze);return{c:function(){t=x("div"),n=x("div"),g&&g.c(),o=S(),r=x("div"),c=x("div"),s=x("div"),v&&v.c(),_(n,"class","trigger"),i(n,Je,102,2,2332),_(s,"class","contents-inner svelte-1wmex1c"),i(s,Je,113,6,2730),_(c,"class","contents svelte-1wmex1c"),i(c,Je,112,4,2671),_(r,"class","contents-wrapper svelte-1wmex1c"),O(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),T(r,"visible",e.open),T(r,"shrink",e.shrink),i(r,Je,106,2,2454),_(t,"class","sc-popover svelte-1wmex1c"),i(t,Je,101,0,2284),d=[P(Le,"resize",e.onwindowresize),P(n,"click",e.doOpen)]},l:function(e){throw g&&g.l(div0_nodes),v&&v.l(div1_nodes),new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(i,a){M(i,t,a),$(t,n),g&&g.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,c),$(c,s),v&&v.m(s,null),e.div2_binding(c),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){g&&g.p&&e.$$scope&&g.p(p(f,t,e,Re),h(f,t,Xe)),v&&v.p&&e.$$scope&&v.p(p(m,t,e,qe),h(m,t,ze)),(!l||e.translateX||e.translateY)&&O(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&T(r,"visible",t.open),e.shrink&&T(r,"shrink",t.shrink)},i:function(e){l||(ie(g,e),ie(v,e),l=!0)},o:function(e){ce(g,e),ce(v,e),l=!1},d:function(n){n&&C(t),g&&g.d(n),e.div0_binding(null),v&&v.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),a(d)}}}function Ke(e,t,n){var o,r,i,c,s,a=L(),l=0,d=0,u=t.open;void 0===u&&(u=!1);var h=t.shrink,p=t.trigger,f=function(){var e,t,o;n("shrink",h=!0),t="animationend",o=function(){n("shrink",h=!1),n("open",u=!1),a("closed")},(e=c).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function g(e){if(u){var t=e.target;do{if(t===o)return}while(t=t.parentNode);f()}}A(function(){if(document.addEventListener("click",g),p)return i.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",g)}});var m=async function(){u||n("open",u=!0),await(Q(),G);var e=s.getBoundingClientRect();return{top:e.top+-1*l,bottom:window.innerHeight-e.bottom+l,left:e.left+-1*d,right:document.body.clientWidth-e.right+d}},v=["open","shrink","trigger"];Object.keys(t).forEach(function(e){v.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")});var w=t.$$slots;void 0===w&&(w={});var y=t.$$scope;return e.$set=function(e){"open"in e&&n("open",u=e.open),"shrink"in e&&n("shrink",h=e.shrink),"trigger"in e&&n("trigger",p=e.trigger),"$$scope"in e&&n("$$scope",y=e.$$scope)},{popover:o,w:r,triggerContainer:i,contentsAnimated:c,contentsWrapper:s,translateY:l,translateX:d,open:u,shrink:h,trigger:p,close:f,doOpen:async function(){var e=await async function(){var e,t=await m();return e=r<480?t.bottom:t.top<0?Math.abs(t.top):t.bottom<0?t.bottom:0,{x:t.left<0?Math.abs(t.left):t.right<0?t.right:0,y:e}}(),t=e.x,o=e.y;n("translateX",d=t),n("translateY",l=o),n("open",u=!0),a("opened")},onwindowresize:function(){r=Le.innerWidth,n("w",r)},div0_binding:function(e){z[e?"unshift":"push"](function(){n("triggerContainer",i=e)})},div2_binding:function(e){z[e?"unshift":"push"](function(){n("contentsAnimated",c=e)})},div3_binding:function(e){z[e?"unshift":"push"](function(){n("contentsWrapper",s=e)})},div4_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},$$slots:w,$$scope:y}}var Qe=function(e){function t(t){e.call(this,t),he(this,t,Ke,Ge,d,["open","shrink","trigger","close"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.shrink||"shrink"in o||console.warn(" was created without expected prop 'shrink'"),void 0!==n.trigger||"trigger"in o||console.warn(" was created without expected prop 'trigger'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={open:{configurable:!0},shrink:{configurable:!0},trigger:{configurable:!0},close:{configurable:!0}};return n.open.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.open.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shrink.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shrink.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.close.get=function(){return this.$$.ctx.close},n.close.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ue=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Ve=function(e,t,n){if(e=e.toString(),void 0===t)return e;if(e.length==t)return e;if(n=void 0!==n&&n,e.length0;)e="0"+e;else e.length>t&&(e=n?e.substring(e.length-t):e.substring(0,t));return e},Ze={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthsOfYear:["January","February","March","April","May","June","July","August","September","October","November","December"]},et=[{key:"d",method:function(e){return Ve(e.getDate(),2)}},{key:"D",method:function(e){return Ve(Ze.daysOfWeek[e.getDay()],3)}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Ze.daysOfWeek[e.getDay()]}},{key:"F",method:function(e){return Ze.monthsOfYear[e.getMonth()]}},{key:"m",method:function(e){return Ve(e.getMonth()+1,2)}},{key:"M",method:function(e){return Ve(Ze.monthsOfYear[e.getMonth()],3)}},{key:"n",method:function(e){return e.getMonth()+1}},{key:"Y",method:function(e){return e.getFullYear()}},{key:"y",method:function(e){return Ve(e.getFullYear(),2,!0)}}],tt=[{key:"a",method:function(e){return e.getHours()>11?"pm":"am"}},{key:"A",method:function(e){return e.getHours()>11?"PM":"AM"}},{key:"g",method:function(e){return e.getHours()%12||12}},{key:"G",method:function(e){return e.getHours()}},{key:"h",method:function(e){return Ve(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Ve(e.getHours(),2)}},{key:"i",method:function(e){return Ve(e.getMinutes(),2)}},{key:"s",method:function(e){return Ve(e.getSeconds(),2)}}],nt=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),et.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ue(t,n.key,n.method(e)))}),tt.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ue(t,n.key,n.method(e)))}),t},ot={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},rt=Object.keys(ot).map(function(e){return ot[e]}),it="src\\Components\\Datepicker.svelte";function ct(e,t,n){var o=Object.create(e);return o.day=t[n],o}function st(e){var t,n;return{c:function(){t=x("button"),n=E(e.formattedSelected),_(t,"class","calendar-button svelte-1lorc63"),_(t,"type","button"),i(t,it,228,8,6259)},m:function(e,o){M(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&B(n,t.formattedSelected)},d:function(e){e&&C(t)}}}function at(e){var t,n,o=e.$$slots.default,r=u(o,e,null),c=!e.trigger&&st(e);return{c:function(){t=x("div"),r||c&&c.c(),r&&r.c(),_(t,"slot","trigger"),_(t,"class","svelte-1lorc63"),i(t,it,225,4,6194)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){M(e,t,o),r?r.m(t,null):c&&c.m(t,null),n=!0},p:function(e,n){r||(n.trigger?c&&(c.d(1),c=null):c?c.p(e,n):((c=st(n)).c(),c.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),h(o,n,null))},i:function(e){n||(ie(r,e),n=!0)},o:function(e){ce(r,e),n=!1},d:function(e){e&&C(t),r||c&&c.d(),r&&r.d(e)}}}function lt(e){var t,o,r=e.day.abbrev;return{c:function(){t=x("span"),o=E(r),_(t,"class","svelte-1lorc63"),i(t,it,241,10,6720)},m:function(e,n){M(e,t,n),$(t,o)},p:n,d:function(e){e&&C(t)}}}function dt(e){var t,n,o,r,c,s,a=new Ae({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth},$$inline:!0});a.$on("monthSelected",e.monthSelected_handler),a.$on("incrementMonth",e.incrementMonth_handler);for(var l=He,d=[],u=0;u0&&f>X?M(1,f.getDate()):e<0&&f was created with unknown prop '"+e+"'")});var F=t.$$slots;void 0===F&&(F={});var J,q,R,X,G,K,Q,U=t.$$scope;return e.$set=function(e){"format"in e&&n("format",c=e.format),"start"in e&&n("start",s=e.start),"end"in e&&n("end",a=e.end),"selected"in e&&n("selected",l=e.selected),"dateChosen"in e&&n("dateChosen",d=e.dateChosen),"trigger"in e&&n("trigger",u=e.trigger),"selectableCallback"in e&&n("selectableCallback",h=e.selectableCallback),"formattedSelected"in e&&n("formattedSelected",k=e.formattedSelected),"buttonBackgroundColor"in e&&n("buttonBackgroundColor",B=e.buttonBackgroundColor),"buttonBorderColor"in e&&n("buttonBorderColor",O=e.buttonBorderColor),"buttonTextColor"in e&&n("buttonTextColor",T=e.buttonTextColor),"highlightColor"in e&&n("highlightColor",H=e.highlightColor),"dayBackgroundColor"in e&&n("dayBackgroundColor",I=e.dayBackgroundColor),"dayTextColor"in e&&n("dayTextColor",W=e.dayTextColor),"dayHighlightedBackgroundColor"in e&&n("dayHighlightedBackgroundColor",j=e.dayHighlightedBackgroundColor),"dayHighlightedTextColor"in e&&n("dayHighlightedTextColor",N=e.dayHighlightedTextColor),"$$scope"in e&&n("$$scope",U=e.$$scope)},e.$$.update=function(e){if(void 0===e&&(e={start:1,end:1,selectableCallback:1,months:1,month:1,year:1,monthIndex:1,visibleMonth:1,format:1,selected:1}),(e.start||e.end||e.selectableCallback)&&n("months",J=function(e,t,n){void 0===n&&(n=null),e.setHours(0,0,0,0),t.setHours(0,0,0,0);for(var o=new Date(t.getFullYear(),t.getMonth()+1,1),r=[],i=new Date(e.getFullYear(),e.getMonth(),1),c=me(e,t,n);i0),(e.format||e.selected)&&n("formattedSelected",k="function"==typeof c?c(l):nt(l,c))},{popover:o,format:c,start:s,end:a,selected:l,dateChosen:d,trigger:u,selectableCallback:h,highlighted:f,shouldShakeDate:g,month:m,year:v,isOpen:w,isClosing:y,formattedSelected:k,changeMonth:$,incrementMonth:M,registerSelection:E,registerClose:P,registerOpen:function(){n("highlighted",f=new Date(l)),n("month",m=l.getMonth()),n("year",v=l.getFullYear()),document.addEventListener("keydown",S),r("open")},buttonBackgroundColor:B,buttonBorderColor:O,buttonTextColor:T,highlightColor:H,dayBackgroundColor:I,dayTextColor:W,dayHighlightedBackgroundColor:j,dayHighlightedTextColor:N,visibleMonth:q,visibleMonthId:R,canIncrementMonth:K,canDecrementMonth:Q,monthSelected_handler:function(e){return $(e.detail)},incrementMonth_handler:function(e){return M(e.detail)},dateSelected_handler:function(e){return E(e.detail)},popover_1_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},popover_1_open_binding:function(e){n("isOpen",w=e)},popover_1_shrink_binding:function(e){n("isClosing",y=e)},$$slots:F,$$scope:U}}var ft=function(e){function t(t){e.call(this,t),he(this,t,pt,ht,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","formattedSelected","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.formattedSelected||"formattedSelected"in o||console.warn(" was created without expected prop 'formattedSelected'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={format:{configurable:!0},start:{configurable:!0},end:{configurable:!0},selected:{configurable:!0},dateChosen:{configurable:!0},trigger:{configurable:!0},selectableCallback:{configurable:!0},formattedSelected:{configurable:!0},buttonBackgroundColor:{configurable:!0},buttonBorderColor:{configurable:!0},buttonTextColor:{configurable:!0},highlightColor:{configurable:!0},dayBackgroundColor:{configurable:!0},dayTextColor:{configurable:!0},dayHighlightedBackgroundColor:{configurable:!0},dayHighlightedTextColor:{configurable:!0}};return n.format.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.format.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe);return t(),ft}(); +var SvelteCalendar=function(){"use strict";function e(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var o=Object(e),r=1;r0)&&v(b)}function k(e){var t;return y||(y=!0,v(b)),{promise:new Promise(function(n){w.add(t=[e,n])}),abort:function(){w.delete(t)}}}function $(e,t){e.appendChild(t)}function M(e,t,n){e.insertBefore(t,n||null)}function C(e){e.parentNode.removeChild(e)}function D(e,t){for(var n=0;n>>0}(u)+"_"+i;if(!I[p]){if(!f){var g=E("style");document.head.appendChild(g),f=g.sheet}I[p]=!0,f.insertRule("@keyframes "+p+" "+u,f.cssRules.length)}var m=e.style.animation||"";return e.style.animation=(m?m+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",H+=1,p}function N(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}).join(", "),t&&!--H&&v(function(){if(!H){for(var e=f.cssRules.length;e--;)f.deleteRule(e);I={}}})}function F(e){W=e}function A(e){(function(){if(!W)throw new Error("Function called outside component initialization");return W})().$$.on_mount.push(e)}function J(){var e=W;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=T(t,n);o.slice().forEach(function(t){t.call(e,r)})}}}var L,q=[],z=[],R=[],X=[],G=Promise.resolve(),K=!1;function Q(){K||(K=!0,G.then(Z))}function U(e){R.push(e)}function V(e){X.push(e)}function Z(){var e=new Set;do{for(;q.length;){var t=q.shift();F(t),ee(t.$$)}for(;z.length;)z.pop()();for(var n=0;n=e&&r<=t&&(!n||n(r)),isToday:r.getTime()===o.getTime()}}};var ve=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function we(e){var t=e-1;return t*t*t+1}function ye(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=+getComputedStyle(e).opacity;return{delay:n,duration:o,css:function(e){return"opacity: "+e*r}}}function be(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=t.easing;void 0===r&&(r=we);var s=t.x;void 0===s&&(s=0);var c=t.y;void 0===c&&(c=0);var i=t.opacity;void 0===i&&(i=0);var a=getComputedStyle(e),l=+a.opacity,d="none"===a.transform?"":a.transform,h=l*(1-i);return{delay:n,duration:o,easing:r,css:function(e,t){return"\n\t\t\ttransform: "+d+" translate("+(1-e)*s+"px, "+(1-e)*c+"px);\n\t\t\topacity: "+(l-h*t)}}}var ke="src\\Components\\Week.svelte";function $e(e,t,n){var o=Object.create(e);return o.day=t[n],o}function Me(e){var t,n,o,r,c,i=e.day.date.getDate();function a(){return e.click_handler(e)}return{c:function(){t=E("div"),n=E("button"),o=x(i),r=O(),S(n,"class","day--label svelte-5wjnn4"),S(n,"type","button"),Y(n,"selected",ve(e.day.date,e.selected)),Y(n,"highlighted",ve(e.day.date,e.highlighted)),Y(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),Y(n,"disabled",!e.day.selectable),s(n,ke,28,6,692),S(t,"class","day svelte-5wjnn4"),Y(t,"outside-month",!e.day.partOfMonth),Y(t,"is-today",e.day.isToday),Y(t,"is-disabled",!e.day.selectable),s(t,ke,22,4,527),c=P(n,"click",a)},m:function(e,s){M(e,t,s),$(t,n),$(n,o),$(t,r)},p:function(r,s){e=s,r.days&&i!==(i=e.day.date.getDate())&&_(o,i),(r.areDatesEquivalent||r.days||r.selected)&&Y(n,"selected",ve(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&Y(n,"highlighted",ve(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&Y(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),r.days&&(Y(n,"disabled",!e.day.selectable),Y(t,"outside-month",!e.day.partOfMonth),Y(t,"is-today",e.day.isToday),Y(t,"is-disabled",!e.day.selectable))},d:function(e){e&&C(t),c()}}}function Ce(e){for(var t,r,c,i,d=e.days,h=[],u=0;u=g)return u(1,0),ne(e,!0,"end"),h(),a=!1;if(t>=f){var n=l((t-f)/r);u(n,1-n)}}return a})}var p=!1;return{start:function(){p||(N(e),l(i)?(i=i(),te().then(u)):u())},invalidate:function(){p=!1},end:function(){a&&(h(),a=!1)}}}(t,be,{x:50*e.direction,duration:180,delay:90})),r.start()}),i=!0)},o:function(e){r&&r.invalidate(),c=function(e,t,r){var s,c=t(e,r),i=!0,d=oe;function h(){var t=c.delay;void 0===t&&(t=0);var r=c.duration;void 0===r&&(r=300);var l=c.easing;void 0===l&&(l=o);var h=c.tick;void 0===h&&(h=n);var u=c.css;u&&(s=j(e,1,0,r,t,l,u));var p=m()+t,f=p+r;U(function(){return ne(e,!1,"start")}),k(function(t){if(i){if(t>=f)return h(0,1),ne(e,!1,"end"),--d.r||a(d.c),!1;if(t>=p){var n=l((t-p)/r);h(1-n,n)}}return i})}return d.r+=1,l(c)?te().then(function(){c=c(),h()}):h(),{end:function(t){t&&c.tick&&c.tick(1,0),i&&(s&&N(e,s),i=!1)}}}(t,ye,{duration:180}),i=!1},d:function(e){e&&C(t),D(h,e),e&&c&&c.end()}}}function De(e,t,n){var o=J(),r=t.days,s=t.selected,c=t.start,i=t.end,a=t.highlighted,l=t.shouldShakeDate,d=t.direction,h=["days","selected","start","end","highlighted","shouldShakeDate","direction"];return Object.keys(t).forEach(function(e){h.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")}),e.$set=function(e){"days"in e&&n("days",r=e.days),"selected"in e&&n("selected",s=e.selected),"start"in e&&n("start",c=e.start),"end"in e&&n("end",i=e.end),"highlighted"in e&&n("highlighted",a=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",l=e.shouldShakeDate),"direction"in e&&n("direction",d=e.direction)},{dispatch:o,days:r,selected:s,start:c,end:i,highlighted:a,shouldShakeDate:l,direction:d,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var Ee=function(e){function t(t){e.call(this,t),ue(this,t,De,Ce,d,["days","selected","start","end","highlighted","shouldShakeDate","direction"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.days||"days"in o||console.warn(" was created without expected prop 'days'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'"),void 0!==n.direction||"direction"in o||console.warn(" was created without expected prop 'direction'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={days:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0},direction:{configurable:!0}};return n.days.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.days.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.direction.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.direction.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),xe="src\\Components\\Month.svelte";function Oe(e,t,n){var o=Object.create(e);return o.week=t[n],o}function Pe(e,t){var n,o,r=new Ee({props:{days:t.week.days,selected:t.selected,start:t.start,end:t.end,highlighted:t.highlighted,shouldShakeDate:t.shouldShakeDate,direction:t.direction},$$inline:!0});return r.$on("dateSelected",t.dateSelected_handler),{key:e,first:null,c:function(){n=x(""),r.$$.fragment.c(),this.first=n},m:function(e,t){M(e,n,t),de(r,e,t),o=!0},p:function(e,t){var n={};e.visibleMonth&&(n.days=t.week.days),e.selected&&(n.selected=t.selected),e.start&&(n.start=t.start),e.end&&(n.end=t.end),e.highlighted&&(n.highlighted=t.highlighted),e.shouldShakeDate&&(n.shouldShakeDate=t.shouldShakeDate),e.direction&&(n.direction=t.direction),r.$set(n)},i:function(e){o||(se(r.$$.fragment,e),o=!0)},o:function(e){ce(r.$$.fragment,e),o=!1},d:function(e){e&&C(n),he(r,e)}}}function Se(e){for(var t,n,o=[],r=new Map,c=e.visibleMonth.weeks,i=function(e){return e.week.id},l=0;lw.get(O)?(M.add(x),C(D)):($.add(O),u--):(a(E,c),u--)}for(;u--;){var P=e[u];v.has(P.key)||a(P,c)}for(;p;)C(m[p-1]);return m}(o,e,i,1,n,s,r,t,ae,Pe,null,Oe),oe.r||a(oe.c),oe=oe.p},i:function(e){if(!n){for(var t=0;t was created with unknown prop '"+e+"'")}),e.$set=function(e){"id"in e&&n("id",r=e.id),"visibleMonth"in e&&n("visibleMonth",s=e.visibleMonth),"selected"in e&&n("selected",c=e.selected),"start"in e&&n("start",i=e.start),"end"in e&&n("end",a=e.end),"highlighted"in e&&n("highlighted",l=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",d=e.shouldShakeDate)},e.$$.update=function(e){void 0===e&&(e={lastId:1,id:1}),(e.lastId||e.id)&&(n("direction",o=h was created without expected prop 'id'"),void 0!==n.visibleMonth||"visibleMonth"in o||console.warn(" was created without expected prop 'visibleMonth'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={id:{configurable:!0},visibleMonth:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0}};return n.id.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.id.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ye=ie.Object,Te="src\\Components\\NavBar.svelte";function We(e,t,n){var o=Ye.create(e);return o.monthDefinition=t[n],o.index=n,o}function He(e){var t,n,o,r,c,i=e.monthDefinition.abbrev;function a(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return e.click_handler_2.apply(e,[e].concat(t))}return{c:function(){t=E("div"),n=E("span"),o=x(i),r=O(),S(n,"class","svelte-1uccyem"),s(n,Te,69,8,1913),S(t,"class","month-selector--month svelte-1uccyem"),Y(t,"selected",e.index===e.month),Y(t,"selectable",e.monthDefinition.selectable),s(t,Te,63,6,1703),c=P(t,"click",a)},m:function(e,s){M(e,t,s),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&i!==(i=e.monthDefinition.abbrev)&&_(o,i),n.month&&Y(t,"selected",e.index===e.month),n.availableMonths&&Y(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&C(t),c()}}}function Ie(e){for(var t,o,r,c,i,l,d,h,u,p,f,g,m,v,w,y=e.monthsOfYear[e.month][0],b=e.availableMonths,k=[],B=0;B was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",s=e.month),"start"in e&&n("start",c=e.start),"end"in e&&n("end",i=e.end),"year"in e&&n("year",a=e.year),"canIncrementMonth"in e&&n("canIncrementMonth",l=e.canIncrementMonth),"canDecrementMonth"in e&&n("canDecrementMonth",d=e.canDecrementMonth),"monthsOfYear"in e&&n("monthsOfYear",h=e.monthsOfYear)},e.$$.update=function(e){if(void 0===e&&(e={start:1,year:1,end:1,monthsOfYear:1}),e.start||e.year||e.end||e.monthsOfYear){var t=c.getFullYear()===a,r=i.getFullYear()===a;n("availableMonths",o=h.map(function(e,n){return Object.assign({},{name:e[0],abbrev:e[1]},{selectable:!t&&!r||(!t||n>=c.getMonth())&&(!r||n<=i.getMonth())})}))}},{dispatch:r,month:s,start:c,end:i,year:a,canIncrementMonth:l,canDecrementMonth:d,monthsOfYear:h,monthSelectorOpen:u,availableMonths:o,toggleMonthSelectorOpen:p,monthSelected:f,click_handler:function(){return r("incrementMonth",-1)},click_handler_1:function(){return r("incrementMonth",1)},click_handler_2:function(e,t){return f(t,e.index)}}}var Ne=function(e){function t(t){e.call(this,t),ue(this,t,je,Ie,d,["month","start","end","year","canIncrementMonth","canDecrementMonth","monthsOfYear"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.month||"month"in o||console.warn(" was created without expected prop 'month'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.year||"year"in o||console.warn(" was created without expected prop 'year'"),void 0!==n.canIncrementMonth||"canIncrementMonth"in o||console.warn(" was created without expected prop 'canIncrementMonth'"),void 0!==n.canDecrementMonth||"canDecrementMonth"in o||console.warn(" was created without expected prop 'canDecrementMonth'"),void 0!==n.monthsOfYear||"monthsOfYear"in o||console.warn(" was created without expected prop 'monthsOfYear'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={month:{configurable:!0},start:{configurable:!0},end:{configurable:!0},year:{configurable:!0},canIncrementMonth:{configurable:!0},canDecrementMonth:{configurable:!0},monthsOfYear:{configurable:!0}};return n.month.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.month.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.year.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.year.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Fe=ie.window,Ae="src\\Components\\Popover.svelte",Je=function(){return{}},Le=function(){return{}},qe=function(){return{}},ze=function(){return{}};function Re(e){var t,n,o,r,c,i,l,d;U(e.onwindowresize);var f=e.$$slots.trigger,g=h(f,e,ze),m=e.$$slots.contents,v=h(m,e,Le);return{c:function(){t=E("div"),n=E("div"),g&&g.c(),o=O(),r=E("div"),c=E("div"),i=E("div"),v&&v.c(),S(n,"class","trigger"),s(n,Ae,102,2,2332),S(i,"class","contents-inner svelte-1wmex1c"),s(i,Ae,113,6,2730),S(c,"class","contents svelte-1wmex1c"),s(c,Ae,112,4,2671),S(r,"class","contents-wrapper svelte-1wmex1c"),B(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),Y(r,"visible",e.open),Y(r,"shrink",e.shrink),s(r,Ae,106,2,2454),S(t,"class","sc-popover svelte-1wmex1c"),s(t,Ae,101,0,2284),d=[P(Fe,"resize",e.onwindowresize),P(n,"click",e.doOpen)]},l:function(e){throw g&&g.l(div0_nodes),v&&v.l(div1_nodes),new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(s,a){M(s,t,a),$(t,n),g&&g.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,c),$(c,i),v&&v.m(i,null),e.div2_binding(c),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){g&&g.p&&e.$$scope&&g.p(p(f,t,e,qe),u(f,t,ze)),v&&v.p&&e.$$scope&&v.p(p(m,t,e,Je),u(m,t,Le)),(!l||e.translateX||e.translateY)&&B(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&Y(r,"visible",t.open),e.shrink&&Y(r,"shrink",t.shrink)},i:function(e){l||(se(g,e),se(v,e),l=!0)},o:function(e){ce(g,e),ce(v,e),l=!1},d:function(n){n&&C(t),g&&g.d(n),e.div0_binding(null),v&&v.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),a(d)}}}function Xe(e,t,n){var o,r,s,c,i,a=J(),l=0,d=0,h=t.open;void 0===h&&(h=!1);var u=t.shrink,p=t.trigger,f=function(){var e,t,o;n("shrink",u=!0),t="animationend",o=function(){n("shrink",u=!1),n("open",h=!1),a("closed")},(e=c).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function g(e){if(h){var t=e.target;do{if(t===o)return}while(t=t.parentNode);f()}}A(function(){if(document.addEventListener("click",g),p)return s.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",g)}});var m=async function(){h||n("open",h=!0),await(Q(),G);var e=i.getBoundingClientRect();return{top:e.top+-1*l,bottom:window.innerHeight-e.bottom+l,left:e.left+-1*d,right:document.body.clientWidth-e.right+d}},v=["open","shrink","trigger"];Object.keys(t).forEach(function(e){v.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")});var w=t.$$slots;void 0===w&&(w={});var y=t.$$scope;return e.$set=function(e){"open"in e&&n("open",h=e.open),"shrink"in e&&n("shrink",u=e.shrink),"trigger"in e&&n("trigger",p=e.trigger),"$$scope"in e&&n("$$scope",y=e.$$scope)},{popover:o,w:r,triggerContainer:s,contentsAnimated:c,contentsWrapper:i,translateY:l,translateX:d,open:h,shrink:u,trigger:p,close:f,doOpen:async function(){var e=await async function(){var e,t=await m();return e=r<480?t.bottom:t.top<0?Math.abs(t.top):t.bottom<0?t.bottom:0,{x:t.left<0?Math.abs(t.left):t.right<0?t.right:0,y:e}}(),t=e.x,o=e.y;n("translateX",d=t),n("translateY",l=o),n("open",h=!0),a("opened")},onwindowresize:function(){r=Fe.innerWidth,n("w",r)},div0_binding:function(e){z[e?"unshift":"push"](function(){n("triggerContainer",s=e)})},div2_binding:function(e){z[e?"unshift":"push"](function(){n("contentsAnimated",c=e)})},div3_binding:function(e){z[e?"unshift":"push"](function(){n("contentsWrapper",i=e)})},div4_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},$$slots:w,$$scope:y}}var Ge=function(e){function t(t){e.call(this,t),ue(this,t,Xe,Re,d,["open","shrink","trigger","close"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.shrink||"shrink"in o||console.warn(" was created without expected prop 'shrink'"),void 0!==n.trigger||"trigger"in o||console.warn(" was created without expected prop 'trigger'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={open:{configurable:!0},shrink:{configurable:!0},trigger:{configurable:!0},close:{configurable:!0}};return n.open.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.open.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shrink.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shrink.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.close.get=function(){return this.$$.ctx.close},n.close.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ke=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Qe=function(e,t,n){if(e=e.toString(),void 0===t)return e;if(e.length==t)return e;if(n=void 0!==n&&n,e.length0;)e="0"+e;else e.length>t&&(e=n?e.substring(e.length-t):e.substring(0,t));return e},Ue={daysOfWeek:[["Sunday","Sun"],["Monday","Mon"],["Tuesday","Tue"],["Wednesday","Wed"],["Thursday","Thu"],["Friday","Fri"],["Saturday","Sat"]],monthsOfYear:[["January","Jan"],["February","Feb"],["March","Mar"],["April","Apr"],["May","May"],["June","Jun"],["July","Jul"],["August","Aug"],["September","Sep"],["October","Oct"],["November","Nov"],["December","Dec"]]},Ve=[{key:"d",method:function(e){return Qe(e.getDate(),2)}},{key:"D",method:function(e){return Ue.daysOfWeek[e.getDay()][1]}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Ue.daysOfWeek[e.getDay()][0]}},{key:"F",method:function(e){return Ue.monthsOfYear[e.getMonth()][0]}},{key:"m",method:function(e){return Qe(e.getMonth()+1,2)}},{key:"M",method:function(e){return Ue.monthsOfYear[e.getMonth()][1]}},{key:"n",method:function(e){return e.getMonth()+1}},{key:"Y",method:function(e){return e.getFullYear()}},{key:"y",method:function(e){return Qe(e.getFullYear(),2,!0)}}],Ze=[{key:"a",method:function(e){return e.getHours()>11?"pm":"am"}},{key:"A",method:function(e){return e.getHours()>11?"PM":"AM"}},{key:"g",method:function(e){return e.getHours()%12||12}},{key:"G",method:function(e){return e.getHours()}},{key:"h",method:function(e){return Qe(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Qe(e.getHours(),2)}},{key:"i",method:function(e){return Qe(e.getMinutes(),2)}},{key:"s",method:function(e){return Qe(e.getSeconds(),2)}}],et=function(e){void 0===e&&(e={}),function(e){Object.keys(e).forEach(function(t){Ue[t]&&Ue[t].length==e[t].length&&(Ue[t]=e[t])})}(e)},tt=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),Ve.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ke(t,n.key,n.method(e)))}),Ze.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ke(t,n.key,n.method(e)))}),t},nt={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},ot=Object.keys(nt).map(function(e){return nt[e]}),rt="src\\Components\\Datepicker.svelte";function st(e,t,n){var o=Object.create(e);return o.day=t[n],o}function ct(e){var t,n;return{c:function(){t=E("button"),n=x(e.formattedSelected),S(t,"class","calendar-button svelte-1lorc63"),S(t,"type","button"),s(t,rt,253,8,6794)},m:function(e,o){M(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&_(n,t.formattedSelected)},d:function(e){e&&C(t)}}}function it(e){var t,n,o=e.$$slots.default,r=h(o,e,null),c=!e.trigger&&ct(e);return{c:function(){t=E("div"),r||c&&c.c(),r&&r.c(),S(t,"slot","trigger"),S(t,"class","svelte-1lorc63"),s(t,rt,250,4,6729)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){M(e,t,o),r?r.m(t,null):c&&c.m(t,null),n=!0},p:function(e,n){r||(n.trigger?c&&(c.d(1),c=null):c?c.p(e,n):((c=ct(n)).c(),c.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),u(o,n,null))},i:function(e){n||(se(r,e),n=!0)},o:function(e){ce(r,e),n=!1},d:function(e){e&&C(t),r||c&&c.d(),r&&r.d(e)}}}function at(e){var t,n,o=e.day[1];return{c:function(){t=E("span"),n=x(o),S(t,"class","svelte-1lorc63"),s(t,rt,274,10,7357)},m:function(e,o){M(e,t,o),$(t,n)},p:function(e,t){e.daysOfWeek&&o!==(o=t.day[1])&&_(n,o)},d:function(e){e&&C(t)}}}function lt(e){var t,n,o,r,c,i,a=new Ne({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth,monthsOfYear:e.monthsOfYear},$$inline:!0});a.$on("monthSelected",e.monthSelected_handler),a.$on("incrementMonth",e.incrementMonth_handler);for(var l=e.daysOfWeek,d=[],h=0;h0&&m>K?D(1,m.getDate()):e<0&&m was created with unknown prop '"+e+"'")});var q=t.$$slots;void 0===q&&(q={});var R,X,G,K,Q,U,V,Z=t.$$scope;return e.$set=function(e){"format"in e&&n("format",c=e.format),"start"in e&&n("start",i=e.start),"end"in e&&n("end",a=e.end),"selected"in e&&n("selected",l=e.selected),"dateChosen"in e&&n("dateChosen",d=e.dateChosen),"trigger"in e&&n("trigger",h=e.trigger),"selectableCallback"in e&&n("selectableCallback",u=e.selectableCallback),"daysOfWeek"in e&&n("daysOfWeek",p=e.daysOfWeek),"monthsOfYear"in e&&n("monthsOfYear",f=e.monthsOfYear),"formattedSelected"in e&&n("formattedSelected",M=e.formattedSelected),"buttonBackgroundColor"in e&&n("buttonBackgroundColor",Y=e.buttonBackgroundColor),"buttonBorderColor"in e&&n("buttonBorderColor",T=e.buttonBorderColor),"buttonTextColor"in e&&n("buttonTextColor",W=e.buttonTextColor),"highlightColor"in e&&n("highlightColor",H=e.highlightColor),"dayBackgroundColor"in e&&n("dayBackgroundColor",I=e.dayBackgroundColor),"dayTextColor"in e&&n("dayTextColor",j=e.dayTextColor),"dayHighlightedBackgroundColor"in e&&n("dayHighlightedBackgroundColor",N=e.dayHighlightedBackgroundColor),"dayHighlightedTextColor"in e&&n("dayHighlightedTextColor",F=e.dayHighlightedTextColor),"$$scope"in e&&n("$$scope",Z=e.$$scope)},e.$$.update=function(e){if(void 0===e&&(e={start:1,end:1,selectableCallback:1,months:1,month:1,year:1,monthIndex:1,visibleMonth:1,format:1,selected:1}),(e.start||e.end||e.selectableCallback)&&n("months",R=function(e,t,n){void 0===n&&(n=null),e.setHours(0,0,0,0),t.setHours(0,0,0,0);for(var o=new Date(t.getFullYear(),t.getMonth()+1,1),r=[],s=new Date(e.getFullYear(),e.getMonth(),1),c=me(e,t,n);s0),(e.format||e.selected)&&n("formattedSelected",M="function"==typeof c?c(l):tt(l,c))},{popover:o,format:c,start:i,end:a,selected:l,dateChosen:d,trigger:h,selectableCallback:u,daysOfWeek:p,monthsOfYear:f,highlighted:m,shouldShakeDate:v,month:w,year:y,isOpen:b,isClosing:k,formattedSelected:M,changeMonth:C,incrementMonth:D,registerSelection:P,registerClose:_,registerOpen:function(){n("highlighted",m=new Date(l)),n("month",w=l.getMonth()),n("year",y=l.getFullYear()),document.addEventListener("keydown",S),r("open")},buttonBackgroundColor:Y,buttonBorderColor:T,buttonTextColor:W,highlightColor:H,dayBackgroundColor:I,dayTextColor:j,dayHighlightedBackgroundColor:N,dayHighlightedTextColor:F,visibleMonth:X,visibleMonthId:G,canIncrementMonth:U,canDecrementMonth:V,monthSelected_handler:function(e){return C(e.detail)},incrementMonth_handler:function(e){return D(e.detail)},dateSelected_handler:function(e){return P(e.detail)},popover_1_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},popover_1_open_binding:function(e){n("isOpen",b=e)},popover_1_shrink_binding:function(e){n("isClosing",k=e)},$$slots:q,$$scope:Z}}var pt=function(e){function t(t){e.call(this,t),ue(this,t,ut,ht,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","daysOfWeek","monthsOfYear","formattedSelected","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.formattedSelected||"formattedSelected"in o||console.warn(" was created without expected prop 'formattedSelected'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={format:{configurable:!0},start:{configurable:!0},end:{configurable:!0},selected:{configurable:!0},dateChosen:{configurable:!0},trigger:{configurable:!0},selectableCallback:{configurable:!0},daysOfWeek:{configurable:!0},monthsOfYear:{configurable:!0},formattedSelected:{configurable:!0},buttonBackgroundColor:{configurable:!0},buttonBorderColor:{configurable:!0},buttonTextColor:{configurable:!0},highlightColor:{configurable:!0},dayBackgroundColor:{configurable:!0},dayTextColor:{configurable:!0},dayHighlightedBackgroundColor:{configurable:!0},dayHighlightedTextColor:{configurable:!0}};return n.format.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.format.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.daysOfWeek.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.daysOfWeek.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe);return t(),pt}(); //# sourceMappingURL=bundle.js.map diff --git a/docs/bundle.js.map b/docs/bundle.js.map index 1eb16bf..50f3124 100644 --- a/docs/bundle.js.map +++ b/docs/bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"bundle.js","sources":["../node_modules/es6-object-assign/index.js","../node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../src/Components/Week.svelte","../src/Components/Month.svelte","../src/Components/lib/dictionaries.js","../src/Components/NavBar.svelte","../src/Components/Popover.svelte","../node_modules/timeUtils/dist/timeUtils.esm.js","../src/Components/lib/keyCodes.js","../src/Components/Datepicker.svelte"],"sourcesContent":["/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))\n : ctx.$$scope.ctx;\n}\nfunction get_slot_changes(definition, ctx, changed, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))\n : ctx.$$scope.changed || {};\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nlet running = false;\nfunction run_tasks() {\n tasks.forEach(task => {\n if (!task[0](now())) {\n tasks.delete(task);\n task[1]();\n }\n });\n running = tasks.size > 0;\n if (running)\n raf(run_tasks);\n}\nfunction clear_loops() {\n // for testing...\n tasks.forEach(task => tasks.delete(task));\n running = false;\n}\nfunction loop(fn) {\n let task;\n if (!running) {\n running = true;\n raf(run_tasks);\n }\n return {\n promise: new Promise(fulfil => {\n tasks.add(task = [fn, fulfil]);\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction detach_between(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction detach_before(after) {\n while (after.previousSibling) {\n after.parentNode.removeChild(after.previousSibling);\n }\n}\nfunction detach_after(before) {\n while (before.nextSibling) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction object_without_properties(obj, exclude) {\n // eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion\n const target = {};\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n for (const key in attributes) {\n if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key in node) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value) {\n node.style.setProperty(key, value);\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = current_component;\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment) {\n $$.update($$.dirty);\n run_all($$.before_update);\n $$.fragment.p($$.dirty, $$.ctx);\n $$.dirty = null;\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = key && { [key]: value };\n const child_ctx = assign(assign({}, info.ctx), info.resolved);\n const block = type && (info.current = type)(child_ctx);\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n flush();\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n }\n if (is_promise(promise)) {\n promise.then(value => {\n update(info.then, 1, info.value, value);\n }, error => {\n update(info.catch, 2, info.error, error);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = { [info.value]: promise };\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(changed, child_ctx);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args) {\n const attributes = Object.assign({}, ...args);\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === undefined)\n return;\n if (value === true)\n str += \" \" + name;\n const escaped = String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n str += \" \" + name + \"=\" + JSON.stringify(escaped);\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n if (component.$$.props.indexOf(name) === -1)\n return;\n component.$$.bound[name] = callback;\n callback(component.$$.ctx[name]);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n if (component.$$.fragment) {\n run_all(component.$$.on_destroy);\n component.$$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n component.$$.on_destroy = component.$$.fragment = null;\n component.$$.ctx = {};\n }\n}\nfunction make_dirty(component, key) {\n if (!component.$$.dirty) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty = blank_object();\n }\n component.$$.dirty[key] = true;\n}\nfunction init(component, options, instance, create_fragment, not_equal, prop_names) {\n const parent_component = current_component;\n set_current_component(component);\n const props = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props: prop_names,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty: null\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, props, (key, value) => {\n if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {\n if ($$.bound[key])\n $$.bound[key](value);\n if (ready)\n make_dirty(component, key);\n }\n })\n : props;\n $$.update();\n ready = true;\n run_all($$.before_update);\n $$.fragment = create_fragment($$.ctx);\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement !== 'undefined') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\n\nexport { SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, assign, attr, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_element, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, debug, destroy_block, destroy_component, destroy_each, detach, detach_after, detach_before, detach_between, dirty_components, each, element, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_slot_changes, get_slot_context, get_spread_update, get_store_value, globals, group_outros, handle_promise, identity, init, insert, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, loop, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_input_type, set_now, set_raf, set_style, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","const getCalendarPage = (month, year, dayProps) => {\n let date = new Date(year, month, 1);\n date.setDate(date.getDate() - date.getDay());\n let nextMonth = month === 11 ? 0 : month + 1;\n // ensure days starts on Sunday\n // and end on saturday\n let weeks = [];\n while (date.getMonth() !== nextMonth || date.getDay() !== 0 || weeks.length !== 6) {\n if (date.getDay() === 0) weeks.unshift({ days: [], id: `${year}${month}${year}${weeks.length}` });\n const updated = Object.assign({\n partOfMonth: date.getMonth() === month,\n date: new Date(date)\n }, dayProps(date));\n weeks[0].days.push(updated);\n date.setDate(date.getDate() + 1);\n }\n weeks.reverse();\n return { month, year, weeks };\n};\n\nconst getDayPropsHandler = (start, end, selectableCallback) => {\n let today = new Date();\n today.setHours(0, 0, 0, 0);\n return date => ({\n selectable: date >= start && date <= end\n && (!selectableCallback || selectableCallback(date)),\n isToday: date.getTime() === today.getTime()\n });\n};\n\nexport function getMonths(start, end, selectableCallback = null) {\n start.setHours(0, 0, 0, 0);\n end.setHours(0, 0, 0, 0);\n let endDate = new Date(end.getFullYear(), end.getMonth() + 1, 1);\n let months = [];\n let date = new Date(start.getFullYear(), start.getMonth(), 1);\n let dayPropsHandler = getDayPropsHandler(start, end, selectableCallback);\n while (date < endDate) {\n months.push(getCalendarPage(date.getMonth(), date.getFullYear(), dayPropsHandler));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n}\n\nexport const areDatesEquivalent = (a, b) => a.getDate() === b.getDate()\n && a.getMonth() === b.getMonth()\n && a.getFullYear() === b.getFullYear();\n","export { identity as linear } from '../internal';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicOut, cubicInOut } from '../easing';\nimport { is_function, assign } from '../internal';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction fade(node, { delay = 0, duration = 400 }) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut }) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => `overflow: hidden;` +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut }) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { crossfade, draw, fade, fly, scale, slide };\n","\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n","\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n","export const monthDict = [\n { name: 'January', abbrev: 'Jan' },\n { name: 'February', abbrev: 'Feb' },\n { name: 'March', abbrev: 'Mar' },\n { name: 'April', abbrev: 'Apr' },\n { name: 'May', abbrev: 'May' },\n { name: 'June', abbrev: 'Jun' },\n { name: 'July', abbrev: 'Jul' },\n { name: 'August', abbrev: 'Aug' },\n { name: 'September', abbrev: 'Sep' },\n { name: 'October', abbrev: 'Oct' },\n { name: 'November', abbrev: 'Nov' },\n { name: 'December', abbrev: 'Dec' }\n];\n\nexport const dayDict = [\n { name: 'Sunday', abbrev: 'Sun' },\n { name: 'Monday', abbrev: 'Mon' },\n { name: 'Tuesday', abbrev: 'Tue' },\n { name: 'Wednesday', abbrev: 'Wed' },\n { name: 'Thursday', abbrev: 'Thu' },\n { name: 'Friday', abbrev: 'Fri' },\n { name: 'Saturday', abbrev: 'Sat' }\n];\n","\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthDict[month].name} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n","\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n","/**\n * generic function to inject data into token-laden string\n * @param str {String} Required\n * @param name {String} Required\n * @param value {String|Integer} Required\n * @returns {String}\n *\n * @example\n * injectStringData(\"The following is a token: #{tokenName}\", \"tokenName\", 123); \n * @returns {String} \"The following is a token: 123\"\n *\n */\nconst injectStringData = (str,name,value) => str\n .replace(new RegExp('#{'+name+'}','g'), value);\n\n/**\n * Generic function to enforce length of string. \n * \n * Pass a string or number to this function and specify the desired length.\n * This function will either pad the # with leading 0's (if str.length < length)\n * or remove data from the end (@fromBack==false) or beginning (@fromBack==true)\n * of the string when str.length > length.\n *\n * When length == str.length or typeof length == 'undefined', this function\n * returns the original @str parameter.\n * \n * @param str {String} Required\n * @param length {Integer} Required\n * @param fromBack {Boolean} Optional\n * @returns {String}\n *\n */\nconst enforceLength = function(str,length,fromBack) {\n str = str.toString();\n if(typeof length == 'undefined') return str;\n if(str.length == length) return str;\n fromBack = (typeof fromBack == 'undefined') ? false : fromBack;\n if(str.length < length) {\n // pad the beginning of the string w/ enough 0's to reach desired length:\n while(length - str.length > 0) str = '0' + str;\n } else if(str.length > length) {\n if(fromBack) {\n // grab the desired #/chars from end of string: ex: '2015' -> '15'\n str = str.substring(str.length-length);\n } else {\n // grab the desired #/chars from beginning of string: ex: '2015' -> '20'\n str = str.substring(0,length);\n }\n }\n return str;\n};\n\nconst daysOfWeek = [ \n 'Sunday', \n 'Monday', \n 'Tuesday', \n 'Wednesday', \n 'Thursday', \n 'Friday', \n 'Saturday' \n];\n\nconst monthsOfYear = [ \n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n];\n\nlet dictionary = { \n daysOfWeek, \n monthsOfYear\n};\n\nconst extendDictionary = (conf) => \n Object.keys(conf).forEach(key => {\n if(dictionary[key] && dictionary[key].length == conf[key].length) {\n dictionary[key] = conf[key];\n }\n });\n\nconst resetDictionary = () => extendDictionary({daysOfWeek,monthsOfYear});\n\nvar acceptedDateTokens = [\n { \n // d: day of the month, 2 digits with leading zeros:\n key: 'd', \n method: function(date) { return enforceLength(date.getDate(), 2); } \n }, { \n // D: textual representation of day, 3 letters: Sun thru Sat\n key: 'D', \n method: function(date) { return enforceLength(dictionary.daysOfWeek[date.getDay()],3); } \n }, { \n // j: day of month without leading 0's\n key: 'j', \n method: function(date) { return date.getDate(); } \n }, { \n // l: full textual representation of day of week: Sunday thru Saturday\n key: 'l', \n method: function(date) { return dictionary.daysOfWeek[date.getDay()]; } \n }, { \n // F: full text month: 'January' thru 'December'\n key: 'F', \n method: function(date) { return dictionary.monthsOfYear[date.getMonth()]; } \n }, { \n // m: 2 digit numeric month: '01' - '12':\n key: 'm', \n method: function(date) { return enforceLength(date.getMonth()+1,2); } \n }, { \n // M: a short textual representation of the month, 3 letters: 'Jan' - 'Dec'\n key: 'M', \n method: function(date) { return enforceLength(dictionary.monthsOfYear[date.getMonth()],3); } \n }, { \n // n: numeric represetation of month w/o leading 0's, '1' - '12':\n key: 'n', \n method: function(date) { return date.getMonth() + 1; } \n }, { \n // Y: Full numeric year, 4 digits\n key: 'Y', \n method: function(date) { return date.getFullYear(); } \n }, { \n // y: 2 digit numeric year:\n key: 'y', \n method: function(date) { return enforceLength(date.getFullYear(),2,true); }\n }\n];\n\nvar acceptedTimeTokens = [\n { \n // a: lowercase ante meridiem and post meridiem 'am' or 'pm'\n key: 'a', \n method: function(date) { return (date.getHours() > 11) ? 'pm' : 'am'; } \n }, { \n // A: uppercase ante merdiiem and post meridiem 'AM' or 'PM'\n key: 'A', \n method: function(date) { return (date.getHours() > 11) ? 'PM' : 'AM'; } \n }, { \n // g: 12-hour format of an hour without leading zeros 1-12\n key: 'g', \n method: function(date) { return date.getHours() % 12 || 12; } \n }, { \n // G: 24-hour format of an hour without leading zeros 0-23\n key: 'G', \n method: function(date) { return date.getHours(); } \n }, { \n // h: 12-hour format of an hour with leading zeros 01-12\n key: 'h', \n method: function(date) { return enforceLength(date.getHours()%12 || 12,2); } \n }, { \n // H: 24-hour format of an hour with leading zeros: 00-23\n key: 'H', \n method: function(date) { return enforceLength(date.getHours(),2); } \n }, { \n // i: Minutes with leading zeros 00-59\n key: 'i', \n method: function(date) { return enforceLength(date.getMinutes(),2); } \n }, { \n // s: Seconds with leading zeros 00-59\n key: 's', \n method: function(date) { return enforceLength(date.getSeconds(),2); }\n }\n];\n\n/**\n * Internationalization object for timeUtils.internationalize().\n * @typedef internationalizeObj\n * @property {Array} [daysOfWeek=[ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]] daysOfWeek Weekday labels as strings, starting with Sunday.\n * @property {Array} [monthsOfYear=[ 'January','February','March','April','May','June','July','August','September','October','November','December' ]] monthsOfYear Month labels as strings, starting with January.\n */\n\n/**\n * This function can be used to support additional languages by passing an object with \n * `daysOfWeek` and `monthsOfYear` attributes. Each attribute should be an array of\n * strings (ex: `daysOfWeek: ['monday', 'tuesday', 'wednesday'...]`)\n *\n * @param {internationalizeObj} conf\n */\nconst internationalize = (conf={}) => { \n extendDictionary(conf);\n};\n\n/**\n * generic formatDate function which accepts dynamic templates\n * @param date {Date} Required\n * @param template {String} Optional\n * @returns {String}\n *\n * @example\n * formatDate(new Date(), '#{M}. #{j}, #{Y}')\n * @returns {Number} Returns a formatted date\n *\n */\nconst formatDate = (date,template='#{m}/#{d}/#{Y}') => {\n acceptedDateTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return; \n template = injectStringData(template,token.key,token.method(date));\n }); \n acceptedTimeTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return;\n template = injectStringData(template,token.key,token.method(date));\n });\n return template;\n};\n\n/**\n * Small function for resetting language to English (used in testing).\n */\nconst resetInternationalization = () => resetDictionary();\n\nexport { internationalize, formatDate, resetInternationalization };\n","export const keyCodes = {\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n pgup: 33,\n pgdown: 34,\n enter: 13,\n escape: 27,\n tab: 9\n};\n\nexport const keyCodesArray = Object.keys(keyCodes).map(k => keyCodes[k]);\n","\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} />\n
\n {#each dayDict as day}\n {day.abbrev}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n"],"names":["assign","target","firstSource","TypeError","to","Object","i","arguments","length","nextSource","keysArray","keys","nextIndex","len","nextKey","desc","getOwnPropertyDescriptor","undefined","enumerable","defineProperty","configurable","writable","value","noop","const","identity","x","tar","src","k","add_location","element","file","line","column","char","__svelte_meta","loc","run","fn","blank_object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","slot_ctx","get_slot_context","$$scope","get_slot_changes","changed","stylesheet","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","running","run_tasks","task","delete","size","loop","let","promise","Promise","fulfil","add","abort","append","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","setAttribute","set_data","set_style","key","style","setProperty","toggle_class","toggle","classList","custom_event","type","detail","e","createEvent","initCustomEvent","current_component","active","current_rules","create_rule","duration","delay","ease","uid","step","keyframes","p","t","rule","str","hash","charCodeAt","head","sheet","insertRule","cssRules","animation","delete_rule","split","filter","anim","indexOf","join","deleteRule","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","push","createEventDispatcher","callbacks","slice","call","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","schedule_update","then","flush","add_render_callback","add_flush_callback","seen_callbacks","shift","update","pop","callback","has","fragment","dirty","before_update","after_update","wait","dispatch","direction","kind","dispatchEvent","outros","outroing","transition_in","block","local","transition_out","o","c","globals","global","outro_and_destroy_block","lookup","bind","props","bound","mount_component","m","new_on_destroy","map","on_destroy","destroy_component","init","instance","create_fragment","not_equal","prop_names","parent_component","context","Map","ready","make_dirty","hydrate","l","Array","from","childNodes","children","intro","SvelteComponent","$destroy","this","$on","index","splice","$set","SvelteComponentDev","$$inline","super","console","warn","getCalendarPage","month","year","dayProps","date","setDate","getDate","getDay","nextMonth","weeks","getMonth","unshift","days","id","updated","partOfMonth","reverse","getDayPropsHandler","start","end","selectableCallback","today","setHours","selectable","isToday","getTime","areDatesEquivalent","getFullYear","cubicOut","f","fade","ref","getComputedStyle","opacity","css","fly","target_opacity","transform","od","easing","u","y","day","selected","highlighted","shouldShakeDate","click_handler","params","animation_name","config","cleanup","go","tick","start_time","end_time","started","invalidate","group","r","reset","week","visibleMonth","old_blocks","get_key","dynamic","list","destroy","create_each_block","next","get_context","n","old_indexes","new_blocks","new_lookup","deltas","child_ctx","get","set","Math","abs","will_move","did_move","first","new_block","old_block","new_key","old_key","lastId","monthDict","abbrev","dayDict","monthDefinition","click_handler_2","availableMonths","canDecrementMonth","canIncrementMonth","monthSelectorOpen","toggleMonthSelectorOpen","monthSelected","stopPropagation","isOnLowerBoundary","isOnUpperBoundary","translateX","translateY","open","shrink","doOpen","popover","w","triggerContainer","contentsAnimated","contentsWrapper","close","el","evt","apply","checkForFocusLoss","trigger","getDistanceToEdges","async","rect","getBoundingClientRect","top","bottom","innerHeight","left","right","body","clientWidth","dist","getTranslate","injectStringData","replace","RegExp","enforceLength","fromBack","toString","substring","dictionary","acceptedDateTokens","method","daysOfWeek","monthsOfYear","acceptedTimeTokens","getHours","getMinutes","getSeconds","formatDate","template","token","keyCodes","up","down","pgup","pgdown","enter","escape","tab","keyCodesArray","formattedSelected","visibleMonthId","isOpen","isClosing","registerOpen","registerClose","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor","shakeHighlightTimeout","monthIndex","changeMonth","selectedMonth","incrementMonth","current","setMonth","incrementDayHighlighted","amount","lastVisibleDate","firstVisibleDate","checkIfVisibleDateIsSelectable","j","assignValueToTrigger","formatted","innerHTML","assignmentHandler","registerSelection","chosen","dateChosen","clearTimeout","setTimeout","handleKeyPress","keyCode","preventDefault","months","endDate","dayPropsHandler","getMonths","format"],"mappings":"2CAOA,SAASA,EAAOC,EAAQC,mBACtB,GAAID,MAAAA,EACF,MAAM,IAAIE,U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G,EAAG,EAAG,GAKtB,IAJA7L,IAAI8W,EAAU,IAAI1X,KAAKsM,EAAIQ,cAAeR,EAAIT,WAAa,EAAG,GAC1D4L,EAAS,GACTlM,EAAO,IAAIvL,KAAKqM,EAAMS,cAAeT,EAAMR,WAAY,GACvD8L,EAAkBvL,GAAmBC,EAAOC,EAAKC,GAC9ChB,EAAOmM,GACZD,EAAOxR,KAAKkF,GAAgBI,EAAKM,WAAYN,EAAKuB,cAAe6K,IACjEpM,EAAK+K,SAAS/K,EAAKM,WAAa,GAElC,OAAO4L,EUFKG,CAAUvL,EAAOC,EAAKC,8CAIhC0J,EAAa,GACb,IAAKrV,IAAIrE,EAAI,EAAGA,EAAIkb,EAAOhb,OAAQF,GAAK,EAClCkb,EAAOlb,GAAG6O,QAAUA,GAASqM,EAAOlb,GAAG8O,OAASA,kBAClD4K,EAAa1Z,8CAIhByS,EAAeyI,EAAOxB,0CAEtBd,EAAiB9J,EAAOD,EAAQ,sBAChCqL,EAAkBzH,EAAapD,MAAMoD,EAAapD,MAAMnP,OAAS,GAAGsP,KAAK,GAAGR,uBAC5EmL,EAAmB1H,EAAapD,MAAM,GAAGG,KAAK,GAAGR,sDACjD2F,EAAoB+E,EAAawB,EAAOhb,OAAS,uCACjDwU,EAAoBgF,EAAa,iDAIlCf,EAAsC,mBAAX2C,EACvBA,EAAO/J,GACPwG,GAAWxG,EAAU+J,sQAyH3B,2BACE9J,EAnGO,IAAI/N,KAAK8N,cAoGhB1C,EAAQ0C,EAASjC,qBACjBR,EAAOyC,EAAShB,eAChB9K,SAASU,iBAAiB,UAAW4U,GACrCzP,EAAS"} \ No newline at end of file +{"version":3,"file":"bundle.js","sources":["../node_modules/es6-object-assign/index.js","../node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../src/Components/Week.svelte","../src/Components/Month.svelte","../src/Components/NavBar.svelte","../src/Components/Popover.svelte","../node_modules/timeUtils/dist/timeUtils.esm.js","../src/Components/lib/keyCodes.js","../src/Components/Datepicker.svelte"],"sourcesContent":["/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))\n : ctx.$$scope.ctx;\n}\nfunction get_slot_changes(definition, ctx, changed, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))\n : ctx.$$scope.changed || {};\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nlet running = false;\nfunction run_tasks() {\n tasks.forEach(task => {\n if (!task[0](now())) {\n tasks.delete(task);\n task[1]();\n }\n });\n running = tasks.size > 0;\n if (running)\n raf(run_tasks);\n}\nfunction clear_loops() {\n // for testing...\n tasks.forEach(task => tasks.delete(task));\n running = false;\n}\nfunction loop(fn) {\n let task;\n if (!running) {\n running = true;\n raf(run_tasks);\n }\n return {\n promise: new Promise(fulfil => {\n tasks.add(task = [fn, fulfil]);\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction detach_between(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction detach_before(after) {\n while (after.previousSibling) {\n after.parentNode.removeChild(after.previousSibling);\n }\n}\nfunction detach_after(before) {\n while (before.nextSibling) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction object_without_properties(obj, exclude) {\n // eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion\n const target = {};\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n for (const key in attributes) {\n if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key in node) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value) {\n node.style.setProperty(key, value);\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = current_component;\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment) {\n $$.update($$.dirty);\n run_all($$.before_update);\n $$.fragment.p($$.dirty, $$.ctx);\n $$.dirty = null;\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = key && { [key]: value };\n const child_ctx = assign(assign({}, info.ctx), info.resolved);\n const block = type && (info.current = type)(child_ctx);\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n flush();\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n }\n if (is_promise(promise)) {\n promise.then(value => {\n update(info.then, 1, info.value, value);\n }, error => {\n update(info.catch, 2, info.error, error);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = { [info.value]: promise };\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(changed, child_ctx);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args) {\n const attributes = Object.assign({}, ...args);\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === undefined)\n return;\n if (value === true)\n str += \" \" + name;\n const escaped = String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n str += \" \" + name + \"=\" + JSON.stringify(escaped);\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n if (component.$$.props.indexOf(name) === -1)\n return;\n component.$$.bound[name] = callback;\n callback(component.$$.ctx[name]);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n if (component.$$.fragment) {\n run_all(component.$$.on_destroy);\n component.$$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n component.$$.on_destroy = component.$$.fragment = null;\n component.$$.ctx = {};\n }\n}\nfunction make_dirty(component, key) {\n if (!component.$$.dirty) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty = blank_object();\n }\n component.$$.dirty[key] = true;\n}\nfunction init(component, options, instance, create_fragment, not_equal, prop_names) {\n const parent_component = current_component;\n set_current_component(component);\n const props = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props: prop_names,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty: null\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, props, (key, value) => {\n if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {\n if ($$.bound[key])\n $$.bound[key](value);\n if (ready)\n make_dirty(component, key);\n }\n })\n : props;\n $$.update();\n ready = true;\n run_all($$.before_update);\n $$.fragment = create_fragment($$.ctx);\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement !== 'undefined') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\n\nexport { SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, assign, attr, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_element, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, debug, destroy_block, destroy_component, destroy_each, detach, detach_after, detach_before, detach_between, dirty_components, each, element, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_slot_changes, get_slot_context, get_spread_update, get_store_value, globals, group_outros, handle_promise, identity, init, insert, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, loop, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_input_type, set_now, set_raf, set_style, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","const getCalendarPage = (month, year, dayProps) => {\n let date = new Date(year, month, 1);\n date.setDate(date.getDate() - date.getDay());\n let nextMonth = month === 11 ? 0 : month + 1;\n // ensure days starts on Sunday\n // and end on saturday\n let weeks = [];\n while (date.getMonth() !== nextMonth || date.getDay() !== 0 || weeks.length !== 6) {\n if (date.getDay() === 0) weeks.unshift({ days: [], id: `${year}${month}${year}${weeks.length}` });\n const updated = Object.assign({\n partOfMonth: date.getMonth() === month,\n date: new Date(date)\n }, dayProps(date));\n weeks[0].days.push(updated);\n date.setDate(date.getDate() + 1);\n }\n weeks.reverse();\n return { month, year, weeks };\n};\n\nconst getDayPropsHandler = (start, end, selectableCallback) => {\n let today = new Date();\n today.setHours(0, 0, 0, 0);\n return date => ({\n selectable: date >= start && date <= end\n && (!selectableCallback || selectableCallback(date)),\n isToday: date.getTime() === today.getTime()\n });\n};\n\nexport function getMonths(start, end, selectableCallback = null) {\n start.setHours(0, 0, 0, 0);\n end.setHours(0, 0, 0, 0);\n let endDate = new Date(end.getFullYear(), end.getMonth() + 1, 1);\n let months = [];\n let date = new Date(start.getFullYear(), start.getMonth(), 1);\n let dayPropsHandler = getDayPropsHandler(start, end, selectableCallback);\n while (date < endDate) {\n months.push(getCalendarPage(date.getMonth(), date.getFullYear(), dayPropsHandler));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n}\n\nexport const areDatesEquivalent = (a, b) => a.getDate() === b.getDate()\n && a.getMonth() === b.getMonth()\n && a.getFullYear() === b.getFullYear();\n","export { identity as linear } from '../internal';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicOut, cubicInOut } from '../easing';\nimport { is_function, assign } from '../internal';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction fade(node, { delay = 0, duration = 400 }) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut }) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => `overflow: hidden;` +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut }) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { crossfade, draw, fade, fly, scale, slide };\n","\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n","\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n","\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthsOfYear[month][0]} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n","\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n","/**\r\n * generic function to inject data into token-laden string\r\n * @param str {String} Required\r\n * @param name {String} Required\r\n * @param value {String|Integer} Required\r\n * @returns {String}\r\n *\r\n * @example\r\n * injectStringData(\"The following is a token: #{tokenName}\", \"tokenName\", 123); \r\n * @returns {String} \"The following is a token: 123\"\r\n *\r\n */\r\nconst injectStringData = (str,name,value) => str\r\n .replace(new RegExp('#{'+name+'}','g'), value);\r\n\r\n/**\r\n * Generic function to enforce length of string. \r\n * \r\n * Pass a string or number to this function and specify the desired length.\r\n * This function will either pad the # with leading 0's (if str.length < length)\r\n * or remove data from the end (@fromBack==false) or beginning (@fromBack==true)\r\n * of the string when str.length > length.\r\n *\r\n * When length == str.length or typeof length == 'undefined', this function\r\n * returns the original @str parameter.\r\n * \r\n * @param str {String} Required\r\n * @param length {Integer} Required\r\n * @param fromBack {Boolean} Optional\r\n * @returns {String}\r\n *\r\n */\r\nconst enforceLength = function(str,length,fromBack) {\r\n str = str.toString();\r\n if(typeof length == 'undefined') return str;\r\n if(str.length == length) return str;\r\n fromBack = (typeof fromBack == 'undefined') ? false : fromBack;\r\n if(str.length < length) {\r\n // pad the beginning of the string w/ enough 0's to reach desired length:\r\n while(length - str.length > 0) str = '0' + str;\r\n } else if(str.length > length) {\r\n if(fromBack) {\r\n // grab the desired #/chars from end of string: ex: '2015' -> '15'\r\n str = str.substring(str.length-length);\r\n } else {\r\n // grab the desired #/chars from beginning of string: ex: '2015' -> '20'\r\n str = str.substring(0,length);\r\n }\r\n }\r\n return str;\r\n};\n\nconst daysOfWeek = [ \r\n [ 'Sunday', 'Sun' ],\r\n [ 'Monday', 'Mon' ],\r\n [ 'Tuesday', 'Tue' ],\r\n [ 'Wednesday', 'Wed' ],\r\n [ 'Thursday', 'Thu' ],\r\n [ 'Friday', 'Fri' ],\r\n [ 'Saturday', 'Sat' ]\r\n];\r\n\r\nconst monthsOfYear = [ \r\n [ 'January', 'Jan' ],\r\n [ 'February', 'Feb' ],\r\n [ 'March', 'Mar' ],\r\n [ 'April', 'Apr' ],\r\n [ 'May', 'May' ],\r\n [ 'June', 'Jun' ],\r\n [ 'July', 'Jul' ],\r\n [ 'August', 'Aug' ],\r\n [ 'September', 'Sep' ],\r\n [ 'October', 'Oct' ],\r\n [ 'November', 'Nov' ],\r\n [ 'December', 'Dec' ]\r\n];\r\n\r\nlet dictionary = { \r\n daysOfWeek, \r\n monthsOfYear\r\n};\r\n\r\nconst extendDictionary = (conf) => \r\n Object.keys(conf).forEach(key => {\r\n if(dictionary[key] && dictionary[key].length == conf[key].length) {\r\n dictionary[key] = conf[key];\r\n }\r\n });\r\n\r\nconst resetDictionary = () => extendDictionary({daysOfWeek,monthsOfYear});\n\nvar acceptedDateTokens = [\r\n { \r\n // d: day of the month, 2 digits with leading zeros:\r\n key: 'd', \r\n method: function(date) { return enforceLength(date.getDate(), 2); } \r\n }, { \r\n // D: textual representation of day, 3 letters: Sun thru Sat\r\n key: 'D', \r\n method: function(date) { return dictionary.daysOfWeek[date.getDay()][1]; } \r\n }, { \r\n // j: day of month without leading 0's\r\n key: 'j', \r\n method: function(date) { return date.getDate(); } \r\n }, { \r\n // l: full textual representation of day of week: Sunday thru Saturday\r\n key: 'l', \r\n method: function(date) { return dictionary.daysOfWeek[date.getDay()][0]; } \r\n }, { \r\n // F: full text month: 'January' thru 'December'\r\n key: 'F', \r\n method: function(date) { return dictionary.monthsOfYear[date.getMonth()][0]; } \r\n }, { \r\n // m: 2 digit numeric month: '01' - '12':\r\n key: 'm', \r\n method: function(date) { return enforceLength(date.getMonth()+1,2); } \r\n }, { \r\n // M: a short textual representation of the month, 3 letters: 'Jan' - 'Dec'\r\n key: 'M', \r\n method: function(date) { return dictionary.monthsOfYear[date.getMonth()][1]; } \r\n }, { \r\n // n: numeric represetation of month w/o leading 0's, '1' - '12':\r\n key: 'n', \r\n method: function(date) { return date.getMonth() + 1; } \r\n }, { \r\n // Y: Full numeric year, 4 digits\r\n key: 'Y', \r\n method: function(date) { return date.getFullYear(); } \r\n }, { \r\n // y: 2 digit numeric year:\r\n key: 'y', \r\n method: function(date) { return enforceLength(date.getFullYear(),2,true); }\r\n }\r\n];\r\n\r\nvar acceptedTimeTokens = [\r\n { \r\n // a: lowercase ante meridiem and post meridiem 'am' or 'pm'\r\n key: 'a', \r\n method: function(date) { return (date.getHours() > 11) ? 'pm' : 'am'; } \r\n }, { \r\n // A: uppercase ante merdiiem and post meridiem 'AM' or 'PM'\r\n key: 'A', \r\n method: function(date) { return (date.getHours() > 11) ? 'PM' : 'AM'; } \r\n }, { \r\n // g: 12-hour format of an hour without leading zeros 1-12\r\n key: 'g', \r\n method: function(date) { return date.getHours() % 12 || 12; } \r\n }, { \r\n // G: 24-hour format of an hour without leading zeros 0-23\r\n key: 'G', \r\n method: function(date) { return date.getHours(); } \r\n }, { \r\n // h: 12-hour format of an hour with leading zeros 01-12\r\n key: 'h', \r\n method: function(date) { return enforceLength(date.getHours()%12 || 12,2); } \r\n }, { \r\n // H: 24-hour format of an hour with leading zeros: 00-23\r\n key: 'H', \r\n method: function(date) { return enforceLength(date.getHours(),2); } \r\n }, { \r\n // i: Minutes with leading zeros 00-59\r\n key: 'i', \r\n method: function(date) { return enforceLength(date.getMinutes(),2); } \r\n }, { \r\n // s: Seconds with leading zeros 00-59\r\n key: 's', \r\n method: function(date) { return enforceLength(date.getSeconds(),2); }\r\n }\r\n];\r\n\r\n/**\r\n * Internationalization object for timeUtils.internationalize().\r\n * @typedef internationalizeObj\r\n * @property {Array} [daysOfWeek=[ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]] daysOfWeek Weekday labels as strings, starting with Sunday.\r\n * @property {Array} [monthsOfYear=[ 'January','February','March','April','May','June','July','August','September','October','November','December' ]] monthsOfYear Month labels as strings, starting with January.\r\n */\r\n\r\n/**\r\n * This function can be used to support additional languages by passing an object with \r\n * `daysOfWeek` and `monthsOfYear` attributes. Each attribute should be an array of\r\n * strings (ex: `daysOfWeek: ['monday', 'tuesday', 'wednesday'...]`)\r\n *\r\n * @param {internationalizeObj} conf\r\n */\r\nconst internationalize = (conf={}) => { \r\n extendDictionary(conf);\r\n};\r\n\r\n/**\r\n * generic formatDate function which accepts dynamic templates\r\n * @param date {Date} Required\r\n * @param template {String} Optional\r\n * @returns {String}\r\n *\r\n * @example\r\n * formatDate(new Date(), '#{M}. #{j}, #{Y}')\r\n * @returns {Number} Returns a formatted date\r\n *\r\n */\r\nconst formatDate = (date,template='#{m}/#{d}/#{Y}') => {\r\n acceptedDateTokens.forEach(token => {\r\n if(template.indexOf(`#{${token.key}}`) == -1) return; \r\n template = injectStringData(template,token.key,token.method(date));\r\n }); \r\n acceptedTimeTokens.forEach(token => {\r\n if(template.indexOf(`#{${token.key}}`) == -1) return;\r\n template = injectStringData(template,token.key,token.method(date));\r\n });\r\n return template;\r\n};\r\n\r\n/**\r\n * Small function for resetting language to English (used in testing).\r\n */\r\nconst resetInternationalization = () => resetDictionary();\n\nexport { internationalize, formatDate, resetInternationalization };\n","export const keyCodes = {\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n pgup: 33,\n pgdown: 34,\n enter: 13,\n escape: 27,\n tab: 9\n};\n\nexport const keyCodesArray = Object.keys(keyCodes).map(k => keyCodes[k]);\n","\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} \n />\n
\n {#each daysOfWeek as day}\n {day[1]}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n"],"names":["assign","target","firstSource","TypeError","to","Object","i","arguments","length","nextSource","keysArray","keys","nextIndex","len","nextKey","desc","getOwnPropertyDescriptor","undefined","enumerable","defineProperty","configurable","writable","value","noop","const","identity","x","tar","src","k","add_location","element","file","line","column","char","__svelte_meta","loc","run","fn","blank_object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","slot_ctx","get_slot_context","$$scope","get_slot_changes","changed","stylesheet","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","running","run_tasks","task","delete","size","loop","let","promise","Promise","fulfil","add","abort","append","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","setAttribute","set_data","set_style","key","style","setProperty","toggle_class","toggle","classList","custom_event","type","detail","e","createEvent","initCustomEvent","current_component","active","current_rules","create_rule","duration","delay","ease","uid","step","keyframes","p","t","rule","str","hash","charCodeAt","head","sheet","insertRule","cssRules","animation","delete_rule","split","filter","anim","indexOf","join","deleteRule","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","push","createEventDispatcher","callbacks","slice","call","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","schedule_update","then","flush","add_render_callback","add_flush_callback","seen_callbacks","shift","update","pop","callback","has","fragment","dirty","before_update","after_update","wait","dispatch","direction","kind","dispatchEvent","outros","outroing","transition_in","block","local","transition_out","o","c","globals","global","outro_and_destroy_block","lookup","bind","props","bound","mount_component","m","new_on_destroy","map","on_destroy","destroy_component","init","instance","create_fragment","not_equal","prop_names","parent_component","context","Map","ready","make_dirty","hydrate","l","Array","from","childNodes","children","intro","SvelteComponent","$destroy","this","$on","index","splice","$set","SvelteComponentDev","$$inline","super","console","warn","getCalendarPage","month","year","dayProps","date","setDate","getDate","getDay","nextMonth","weeks","getMonth","unshift","days","id","updated","partOfMonth","reverse","getDayPropsHandler","start","end","selectableCallback","today","setHours","selectable","isToday","getTime","areDatesEquivalent","getFullYear","cubicOut","f","fade","ref","getComputedStyle","opacity","css","fly","target_opacity","transform","od","easing","u","y","day","selected","highlighted","shouldShakeDate","click_handler","params","animation_name","config","cleanup","go","tick","start_time","end_time","started","invalidate","group","r","reset","week","visibleMonth","old_blocks","get_key","dynamic","list","destroy","create_each_block","next","get_context","n","old_indexes","new_blocks","new_lookup","deltas","child_ctx","get","set","Math","abs","will_move","did_move","first","new_block","old_block","new_key","old_key","lastId","monthDefinition","abbrev","click_handler_2","monthsOfYear","availableMonths","canDecrementMonth","canIncrementMonth","monthSelectorOpen","toggleMonthSelectorOpen","monthSelected","stopPropagation","isOnLowerBoundary","isOnUpperBoundary","translateX","translateY","open","shrink","doOpen","popover","w","triggerContainer","contentsAnimated","contentsWrapper","close","el","evt","apply","checkForFocusLoss","trigger","getDistanceToEdges","async","rect","getBoundingClientRect","top","bottom","innerHeight","left","right","body","clientWidth","dist","getTranslate","injectStringData","replace","RegExp","enforceLength","fromBack","toString","substring","dictionary","acceptedDateTokens","method","daysOfWeek","acceptedTimeTokens","getHours","getMinutes","getSeconds","internationalize","conf","extendDictionary","formatDate","template","token","keyCodes","up","down","pgup","pgdown","enter","escape","tab","keyCodesArray","formattedSelected","visibleMonthId","isOpen","isClosing","registerOpen","registerClose","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor","shakeHighlightTimeout","monthIndex","changeMonth","selectedMonth","incrementMonth","current","setMonth","incrementDayHighlighted","amount","lastVisibleDate","firstVisibleDate","checkIfVisibleDateIsSelectable","j","assignValueToTrigger","formatted","innerHTML","assignmentHandler","registerSelection","chosen","dateChosen","clearTimeout","setTimeout","handleKeyPress","keyCode","preventDefault","months","endDate","dayPropsHandler","getMonths","format"],"mappings":"2CAOA,SAASA,EAAOC,EAAQC,mBACtB,GAAID,MAAAA,EACF,MAAM,IAAIE,UAAU,2CAItB,IADA,IAAIC,EAAKC,OAAOJ,GACPK,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAAaF,EAAUD,GAC3B,GAAIG,MAAAA,EAKJ,IADA,IAAIC,EAAYL,OAAOM,KAAKN,OAAOI,IAC1BG,EAAY,EAAGC,EAAMH,EAAUF,OAAQI,EAAYC,EAAKD,IAAa,CAC5E,IAAIE,EAAUJ,EAAUE,GACpBG,EAAOV,OAAOW,yBAAyBP,EAAYK,QAC1CG,IAATF,GAAsBA,EAAKG,aAC7Bd,EAAGU,GAAWL,EAAWK,KAI/B,OAAOV,EAcT,MAXA,WACOC,OAAOL,QACVK,OAAOc,eAAed,OAAQ,SAAU,CACtCa,YAAY,EACZE,cAAc,EACdC,UAAU,EACVC,MAAOtB,KCrCb,SAASuB,KACTC,IAAMC,WAAWC,UAAKA,GACtB,SAAS1B,EAAO2B,EAAKC,GAEjB,IAAKJ,IAAMK,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAKX,SAASG,EAAaC,EAASC,EAAMC,EAAMC,EAAQC,GAC/CJ,EAAQK,cAAgB,CACpBC,IAAK,MAAEL,OAAMC,SAAMC,OAAQC,IAGnC,SAASG,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOnC,OAAOoC,OAAO,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AapD,MAAM,GAAGG,KAAK,GAAGR,sDACjD0F,EAAoBiF,EAAawB,EAAOjb,OAAS,uCACjDuU,EAAoBkF,EAAa,iDAIlCf,EAAsC,mBAAX2C,EACvBA,EAAOhK,GACPyG,GAAWzG,EAAUgK,kSAyH3B,2BACE/J,EAnGO,IAAI/N,KAAK8N,cAoGhB1C,EAAQ0C,EAASjC,qBACjBR,EAAOyC,EAAShB,eAChB9K,SAASU,iBAAiB,UAAW6U,GACrC1P,EAAS"} \ No newline at end of file diff --git a/docs/test.css b/docs/test.css index a61d886..601aec8 100644 --- a/docs/test.css +++ b/docs/test.css @@ -1,8 +1,8 @@ h1.svelte-6e0kyu{text-align:center;margin:100px 0}.container.svelte-6e0kyu{background:#eee;padding:15px;max-width:100%;width:800px;margin:0 auto}.custom-button.svelte-6e0kyu{display:inline-block;background:rgb(0, 120, 255);color:#eee;border:1px solid rgb(0, 100, 255);text-align:center;padding:15px 30px;cursor:pointer}.text-center.svelte-6e0kyu{text-align:center}.note.svelte-6e0kyu{color:tomato} .datepicker.svelte-1lorc63{display:inline-block;margin:0 auto;text-align:center;overflow:visible}.calendar-button.svelte-1lorc63{padding:10px 20px;border:1px solid var(--button-border-color);display:block;text-align:center;width:300px;text-decoration:none;cursor:pointer;background:var(--button-background-color);color:var(--button-text-color);border-radius:7px;box-shadow:0px 0px 3px rgba(0, 0, 0, 0.1)}.svelte-1lorc63,.svelte-1lorc63:before,.svelte-1lorc63:after{box-sizing:inherit}.calendar.svelte-1lorc63{box-sizing:border-box;position:relative;overflow:hidden;user-select:none;width:100vw;padding:10px;padding-top:0}@media(min-width: 480px){.calendar.svelte-1lorc63{height:auto;width:340px;max-width:100%}}.legend.svelte-1lorc63{color:#4a4a4a;padding:10px 0;margin-bottom:5px}.legend.svelte-1lorc63 span.svelte-1lorc63{width:14.285714%;display:inline-block;text-align:center} +.heading-section.svelte-1uccyem{font-size:20px;padding:24px 15px;display:flex;justify-content:space-between;color:#3d4548;font-weight:bold}.label.svelte-1uccyem{cursor:pointer}.month-selector.svelte-1uccyem{position:absolute;top:75px;left:0;right:0;bottom:0;background-color:#fff;transition:all 300ms;transform:scale(1.2);opacity:0;visibility:hidden;z-index:1;text-align:center}.month-selector.open.svelte-1uccyem{transform:scale(1);visibility:visible;opacity:1}.month-selector--month.svelte-1uccyem{width:31.333%;margin:.5%;height:23%;display:inline-block;color:#4a4a4a;border:1px solid #efefef;opacity:0.2}.month-selector--month.selectable.svelte-1uccyem{opacity:1}.month-selector--month.selectable.svelte-1uccyem:hover{cursor:pointer;box-shadow:0px 0px 3px rgba(0,0,0,0.15)}.month-selector--month.selected.svelte-1uccyem{background:var(--highlight-color);color:#fff}.month-selector--month.svelte-1uccyem:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.month-selector--month.svelte-1uccyem span.svelte-1uccyem{vertical-align:middle;display:inline-block}.control.svelte-1uccyem{padding:0 8px;opacity:0.2;transform:translateY(3px)}.control.enabled.svelte-1uccyem{opacity:1;cursor:pointer}.arrow.svelte-1uccyem{display:inline-block;width:18px;height:18px;border-style:solid;border-color:#a9a9a9;border-width:0;border-bottom-width:2px;border-right-width:2px}.arrow.right.svelte-1uccyem{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.arrow.left.svelte-1uccyem{transform:rotate(135deg);-webkit-transform:rotate(135deg)} .month-container.svelte-ny3kda{width:100%;display:-ms-grid;display:grid;-ms-grid-columns:1fr;-ms-grid-rows:1fr} .sc-popover.svelte-1wmex1c{position:relative}.contents-wrapper.svelte-1wmex1c{transform:translate(-50%, -50%);position:absolute;top:50%;left:50%;transition:none;z-index:2;display:none}.contents.svelte-1wmex1c{background:#fff;box-shadow:0px 10px 26px rgba(0,0,0,0.4) ;opacity:.8;padding-top:0;display:none;animation:svelte-1wmex1c-grow 200ms forwards cubic-bezier(.92,.09,.18,1.05)}.contents-inner.svelte-1wmex1c{animation:svelte-1wmex1c-fadeIn 400ms forwards}.contents-wrapper.visible.svelte-1wmex1c{display:block}.contents-wrapper.visible.svelte-1wmex1c .contents.svelte-1wmex1c{opacity:1;transform:scale(1);display:block}.contents-wrapper.shrink.svelte-1wmex1c .contents.svelte-1wmex1c{animation:svelte-1wmex1c-shrink 150ms forwards cubic-bezier(.92,.09,.18,1.05)}@keyframes svelte-1wmex1c-grow{0%{transform:scale(.9,.1);opacity:0}30%{opacity:1}100%{transform:scale(1)}}@keyframes svelte-1wmex1c-shrink{0%{transform:scale(1);opacity:1}70%{opacity:1}100%{opacity:0;transform:scale(.9,.1)}}@keyframes svelte-1wmex1c-fadeIn{0%{opacity:0}50%{opacity:0}100%{opacity:1}} -.heading-section.svelte-1uccyem{font-size:20px;padding:24px 15px;display:flex;justify-content:space-between;color:#3d4548;font-weight:bold}.label.svelte-1uccyem{cursor:pointer}.month-selector.svelte-1uccyem{position:absolute;top:75px;left:0;right:0;bottom:0;background-color:#fff;transition:all 300ms;transform:scale(1.2);opacity:0;visibility:hidden;z-index:1;text-align:center}.month-selector.open.svelte-1uccyem{transform:scale(1);visibility:visible;opacity:1}.month-selector--month.svelte-1uccyem{width:31.333%;margin:.5%;height:23%;display:inline-block;color:#4a4a4a;border:1px solid #efefef;opacity:0.2}.month-selector--month.selectable.svelte-1uccyem{opacity:1}.month-selector--month.selectable.svelte-1uccyem:hover{cursor:pointer;box-shadow:0px 0px 3px rgba(0,0,0,0.15)}.month-selector--month.selected.svelte-1uccyem{background:var(--highlight-color);color:#fff}.month-selector--month.svelte-1uccyem:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.month-selector--month.svelte-1uccyem span.svelte-1uccyem{vertical-align:middle;display:inline-block}.control.svelte-1uccyem{padding:0 8px;opacity:0.2;transform:translateY(3px)}.control.enabled.svelte-1uccyem{opacity:1;cursor:pointer}.arrow.svelte-1uccyem{display:inline-block;width:18px;height:18px;border-style:solid;border-color:#a9a9a9;border-width:0;border-bottom-width:2px;border-right-width:2px}.arrow.right.svelte-1uccyem{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.arrow.left.svelte-1uccyem{transform:rotate(135deg);-webkit-transform:rotate(135deg)} .week.svelte-5wjnn4{padding:0;margin:0;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;flex-flow:row;-webkit-flex-flow:row;justify-content:space-around;-ms-grid-column:1;grid-column:1}.week.svelte-5wjnn4:nth-child(6n + 1){-ms-grid-row:1;grid-row:1}.week.svelte-5wjnn4:nth-child(6n + 2){-ms-grid-row:2;grid-row:2}.week.svelte-5wjnn4:nth-child(6n + 3){-ms-grid-row:3;grid-row:3}.week.svelte-5wjnn4:nth-child(6n + 4){-ms-grid-row:4;grid-row:4}.week.svelte-5wjnn4:nth-child(6n + 5){-ms-grid-row:5;grid-row:5}.week.svelte-5wjnn4:nth-child(6n + 6){-ms-grid-row:6;grid-row:6}.day.svelte-5wjnn4{margin:2px;color:var(--day-text-color);font-weight:bold;text-align:center;font-size:16px;flex:1 0 auto;height:auto;display:flex;flex-basis:0}.day.outside-month.svelte-5wjnn4,.day.is-disabled.svelte-5wjnn4{opacity:0.35}.day.svelte-5wjnn4:before{content:'';float:left;padding-top:100%}.day--label.svelte-5wjnn4{color:var(--day-text-color);display:flex;justify-content:center;flex-direction:column;width:100%;position:relative;border:1px solid #fff;border-radius:50%;margin:10%;padding:0;align-items:center;background:var(--day-background-color);cursor:pointer;transition:all 100ms linear;font-weight:normal}.day--label.disabled.svelte-5wjnn4{cursor:default}@media(min-width: 480px){.day--label.highlighted.svelte-5wjnn4,.day--label.svelte-5wjnn4:not(.disabled):hover{background:var(--day-highlighted-background-color);border-color:var(--day-highlighted-background-color);color:var(--day-highlighted-text-color)}}.day--label.shake-date.svelte-5wjnn4{animation:svelte-5wjnn4-shake 0.4s 1 linear}.day--label.selected.svelte-5wjnn4:hover,.day--label.selected.svelte-5wjnn4,.day--label.svelte-5wjnn4:active:not(.disabled){background-color:var(--highlight-color);border-color:var(--highlight-color);color:#fff}.day.is-today.svelte-5wjnn4 .day--label.svelte-5wjnn4,.day.is-today.svelte-5wjnn4 .day--label.svelte-5wjnn4:hover{opacity:1;background:none;border-color:var(--highlight-color);color:#000}@keyframes svelte-5wjnn4-shake{0%{transform:translate(7px)}20%{transform:translate(-7px)}40%{transform:translate(3px)}60%{transform:translate(-3px)}80%{transform:translate(1px)}100%{transform:translate(0px)}} /*# sourceMappingURL=test.css.map */ \ No newline at end of file diff --git a/docs/test.css.map b/docs/test.css.map index f2fd2de..3790c9c 100644 --- a/docs/test.css.map +++ b/docs/test.css.map @@ -4,19 +4,19 @@ "sources": [ "..\\src\\App.svelte", "..\\src\\Components\\Datepicker.svelte", + "..\\src\\Components\\NavBar.svelte", "..\\src\\Components\\Month.svelte", "..\\src\\Components\\Popover.svelte", - "..\\src\\Components\\NavBar.svelte", "..\\src\\Components\\Week.svelte" ], "sourcesContent": [ "\r\n\r\n

SvelteCalendar

\r\n
\r\n\t

A lightweight date picker written with Svelte. Here is an example:

\r\n\r\n\t\r\n\t\r\n\r\n\t

This component can be used with or without the Svelte compiler.

\r\n\t
    \r\n\t\t
  • Lightweight (~8KB)
  • \r\n\t\t
  • IE11+ Compatible
  • \r\n\t\t
  • Usable as a Svelte component
  • \r\n\t\t
  • Usable with Vanilla JS / <Your Framework Here>
  • \r\n\t\t
  • Can be compiled to a native web component / custom element
  • \r\n\t\t
  • Mobile/thumb friendly
  • \r\n\t\t
  • Keyboard navigation (arrows, pgup/pgdown, tab, esc)
  • \r\n\t
\r\n\r\n\t

Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:

\r\n\r\n\t

With Svelte:

\r\n\t
\r\n<Datepicker format={dateFormat} bind:formattedSelected bind:dateChosen>\r\n  <button class='custom-button'>\r\n    {#if dateChosen} Chosen: {formattedSelected} {:else} Pick a date {/if}\r\n  </button>\r\n</Datepicker>\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t

Without Svelte HTML:

\r\n\t
\r\n<div class='button-container'>\r\n  <button id='test'>My Custom Button</button>\r\n</div>\r\n\t
\r\n\r\n\t

Without Svelte JS:

\r\n\t
\r\nvar trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n  target: document.querySelector('.button-container'),\r\n  anchor: trigger, \r\n  props: {\r\n    trigger: trigger\r\n  }\r\n});\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t

You can confine the date selection range with start and end:

\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t

Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.

\r\n\r\n\t

You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).

\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t

You can bind to the `dateSelected` event, which has a data property `date`:

\r\n\t\r\n\t
\r\n\t\t logChoice(e.detail.date)} />\r\n\t
\r\n\r\n\t

You can theme the datepicker:

\r\n\t
\r\n\t\t\r\n\t
\r\n\t
\r\n<Datepicker \r\n  format={dateFormat} \r\n  buttonBackgroundColor='#e20074'\r\n  buttonTextColor='white'\r\n  highlightColor='#e20074'\r\n  dayBackgroundColor='#efefef'\r\n  dayTextColor='#333'\r\n  dayHighlightedBackgroundColor='#e20074'\r\n  dayHighlightedTextColor='#fff'\r\n/>\r\n\t
\r\n
\r\n\r\n\r\n", - "\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} />\n
\n {#each dayDict as day}\n {day.abbrev}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n", + "\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} \n />\n
\n {#each daysOfWeek as day}\n {day[1]}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n", + "\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthsOfYear[month][0]} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n", "\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n", "\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n", - "\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthDict[month].name} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n", "\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n" ], "names": [], - "mappings": "AA+JC,EAAE,cAAC,CAAC,AACH,UAAU,CAAE,MAAM,CAClB,MAAM,CAAE,KAAK,CAAC,CAAC,AAChB,CAAC,AACD,UAAU,cAAC,CAAC,AACV,UAAU,CAAE,IAAI,CACjB,OAAO,CAAE,IAAI,CACb,SAAS,CAAE,IAAI,CACf,KAAK,CAAE,KAAK,CACZ,MAAM,CAAE,CAAC,CAAC,IAAI,AACf,CAAC,AACD,cAAc,cAAC,CAAC,AACd,OAAO,CAAE,YAAY,CACrB,UAAU,CAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAC5B,KAAK,CAAE,IAAI,CACX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CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AAClC,IAAI,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AACrC,CAAC" } \ No newline at end of file diff --git a/docs/test.js b/docs/test.js index 166c4cd..c9d33f6 100644 --- a/docs/test.js +++ b/docs/test.js @@ -1,2 +1,2 @@ -var app=function(){"use strict";function e(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var o=Object(e),r=1;r0)&&v(y)}function k(e){var t;return b||(b=!0,v(y)),{promise:new Promise(function(n){w.add(t=[e,n])}),abort:function(){w.delete(t)}}}function $(e,t){e.appendChild(t)}function C(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode.removeChild(e)}function x(e,t){for(var n=0;n>>0}(h)+"_"+c;if(!j[p]){if(!f){var g=M("style");document.head.appendChild(g),f=g.sheet}j[p]=!0,f.insertRule("@keyframes "+p+" "+h,f.cssRules.length)}var m=e.style.animation||"";return e.style.animation=(m?m+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",I+=1,p}function Y(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}).join(", "),t&&!--I&&v(function(){if(!I){for(var e=f.cssRules.length;e--;)f.deleteRule(e);j={}}})}function N(e){W=e}function A(e){(function(){if(!W)throw new Error("Function called outside component initialization");return W})().$$.on_mount.push(e)}function L(){var e=W;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=H(t,n);o.slice().forEach(function(t){t.call(e,r)})}}}var J,q=[],z=[],R=[],X=[],U=Promise.resolve(),K=!1;function G(){K||(K=!0,U.then(Z))}function V(e){R.push(e)}function Q(e){X.push(e)}function Z(){var e=new Set;do{for(;q.length;){var t=q.shift();N(t),ee(t.$$)}for(;z.length;)z.pop()();for(var n=0;n=e&&r<=t&&(!n||n(r)),isToday:r.getTime()===o.getTime()}}};var ve=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function we(e){var t=e-1;return t*t*t+1}function be(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=+getComputedStyle(e).opacity;return{delay:n,duration:o,css:function(e){return"opacity: "+e*r}}}function ye(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=t.easing;void 0===r&&(r=we);var i=t.x;void 0===i&&(i=0);var a=t.y;void 0===a&&(a=0);var c=t.opacity;void 0===c&&(c=0);var s=getComputedStyle(e),l=+s.opacity,d="none"===s.transform?"":s.transform,u=l*(1-c);return{delay:n,duration:o,easing:r,css:function(e,t){return"\n\t\t\ttransform: "+d+" translate("+(1-e)*i+"px, "+(1-e)*a+"px);\n\t\t\topacity: "+(l-u*t)}}}var ke="src\\Components\\Week.svelte";function $e(e,t,n){var o=Object.create(e);return o.day=t[n],o}function Ce(e){var t,n,o,r,a,c=e.day.date.getDate();function s(){return e.click_handler(e)}return{c:function(){t=M("div"),n=M("button"),o=S(c),r=_(),P(n,"class","day--label svelte-5wjnn4"),P(n,"type","button"),O(n,"selected",ve(e.day.date,e.selected)),O(n,"highlighted",ve(e.day.date,e.highlighted)),O(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),O(n,"disabled",!e.day.selectable),i(n,ke,28,6,692),P(t,"class","day svelte-5wjnn4"),O(t,"outside-month",!e.day.partOfMonth),O(t,"is-today",e.day.isToday),O(t,"is-disabled",!e.day.selectable),i(t,ke,22,4,527),a=E(n,"click",s)},m:function(e,i){C(e,t,i),$(t,n),$(n,o),$(t,r)},p:function(r,i){e=i,r.days&&c!==(c=e.day.date.getDate())&&B(o,c),(r.areDatesEquivalent||r.days||r.selected)&&O(n,"selected",ve(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&O(n,"highlighted",ve(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&O(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),r.days&&(O(n,"disabled",!e.day.selectable),O(t,"outside-month",!e.day.partOfMonth),O(t,"is-today",e.day.isToday),O(t,"is-disabled",!e.day.selectable))},d:function(e){e&&D(t),a()}}}function De(e){for(var t,r,a,c,d=e.days,u=[],h=0;h=g)return h(1,0),ne(e,!0,"end"),u(),s=!1;if(t>=f){var n=l((t-f)/r);h(n,1-n)}}return s})}var p=!1;return{start:function(){p||(Y(e),l(c)?(c=c(),te().then(h)):h())},invalidate:function(){p=!1},end:function(){s&&(u(),s=!1)}}}(t,ye,{x:50*e.direction,duration:180,delay:90})),r.start()}),c=!0)},o:function(e){r&&r.invalidate(),a=function(e,t,r){var i,a=t(e,r),c=!0,d=oe;function u(){var t=a.delay;void 0===t&&(t=0);var r=a.duration;void 0===r&&(r=300);var l=a.easing;void 0===l&&(l=o);var u=a.tick;void 0===u&&(u=n);var h=a.css;h&&(i=F(e,1,0,r,t,l,h));var p=m()+t,f=p+r;V(function(){return ne(e,!1,"start")}),k(function(t){if(c){if(t>=f)return u(0,1),ne(e,!1,"end"),--d.r||s(d.c),!1;if(t>=p){var n=l((t-p)/r);u(1-n,n)}}return c})}return d.r+=1,l(a)?te().then(function(){a=a(),u()}):u(),{end:function(t){t&&a.tick&&a.tick(1,0),c&&(i&&Y(e,i),c=!1)}}}(t,be,{duration:180}),c=!1},d:function(e){e&&D(t),x(u,e),e&&a&&a.end()}}}function xe(e,t,n){var o=L(),r=t.days,i=t.selected,a=t.start,c=t.end,s=t.highlighted,l=t.shouldShakeDate,d=t.direction,u=["days","selected","start","end","highlighted","shouldShakeDate","direction"];return Object.keys(t).forEach(function(e){u.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")}),e.$set=function(e){"days"in e&&n("days",r=e.days),"selected"in e&&n("selected",i=e.selected),"start"in e&&n("start",a=e.start),"end"in e&&n("end",c=e.end),"highlighted"in e&&n("highlighted",s=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",l=e.shouldShakeDate),"direction"in e&&n("direction",d=e.direction)},{dispatch:o,days:r,selected:i,start:a,end:c,highlighted:s,shouldShakeDate:l,direction:d,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var Me=function(e){function t(t){e.call(this,t),he(this,t,xe,De,d,["days","selected","start","end","highlighted","shouldShakeDate","direction"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.days||"days"in o||console.warn(" was created without expected prop 'days'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'"),void 0!==n.direction||"direction"in o||console.warn(" was created without expected prop 'direction'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={days:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0},direction:{configurable:!0}};return n.days.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.days.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.direction.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.direction.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Se="src\\Components\\Month.svelte";function _e(e,t,n){var o=Object.create(e);return o.week=t[n],o}function Ee(e,t){var n,o,r=new Me({props:{days:t.week.days,selected:t.selected,start:t.start,end:t.end,highlighted:t.highlighted,shouldShakeDate:t.shouldShakeDate,direction:t.direction},$$inline:!0});return r.$on("dateSelected",t.dateSelected_handler),{key:e,first:null,c:function(){n=S(""),r.$$.fragment.c(),this.first=n},m:function(e,t){C(e,n,t),de(r,e,t),o=!0},p:function(e,t){var n={};e.visibleMonth&&(n.days=t.week.days),e.selected&&(n.selected=t.selected),e.start&&(n.start=t.start),e.end&&(n.end=t.end),e.highlighted&&(n.highlighted=t.highlighted),e.shouldShakeDate&&(n.shouldShakeDate=t.shouldShakeDate),e.direction&&(n.direction=t.direction),r.$set(n)},i:function(e){o||(ie(r.$$.fragment,e),o=!0)},o:function(e){ae(r.$$.fragment,e),o=!1},d:function(e){e&&D(n),ue(r,e)}}}function Pe(e){for(var t,n,o=[],r=new Map,a=e.visibleMonth.weeks,c=function(e){return e.week.id},l=0;lw.get(_)?(C.add(S),D(x)):($.add(_),h--):(s(M,a),h--)}for(;h--;){var E=e[h];v.has(E.key)||s(E,a)}for(;p;)D(m[p-1]);return m}(o,e,c,1,n,i,r,t,se,Ee,null,_e),oe.r||s(oe.c),oe=oe.p},i:function(e){if(!n){for(var t=0;t was created with unknown prop '"+e+"'")}),e.$set=function(e){"id"in e&&n("id",r=e.id),"visibleMonth"in e&&n("visibleMonth",i=e.visibleMonth),"selected"in e&&n("selected",a=e.selected),"start"in e&&n("start",c=e.start),"end"in e&&n("end",s=e.end),"highlighted"in e&&n("highlighted",l=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",d=e.shouldShakeDate)},e.$$.update=function(e){void 0===e&&(e={lastId:1,id:1}),(e.lastId||e.id)&&(n("direction",o=u was created without expected prop 'id'"),void 0!==n.visibleMonth||"visibleMonth"in o||console.warn(" was created without expected prop 'visibleMonth'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={id:{configurable:!0},visibleMonth:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0}};return n.id.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.id.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Oe=[{name:"January",abbrev:"Jan"},{name:"February",abbrev:"Feb"},{name:"March",abbrev:"Mar"},{name:"April",abbrev:"Apr"},{name:"May",abbrev:"May"},{name:"June",abbrev:"Jun"},{name:"July",abbrev:"Jul"},{name:"August",abbrev:"Aug"},{name:"September",abbrev:"Sep"},{name:"October",abbrev:"Oct"},{name:"November",abbrev:"Nov"},{name:"December",abbrev:"Dec"}],He=[{name:"Sunday",abbrev:"Sun"},{name:"Monday",abbrev:"Mon"},{name:"Tuesday",abbrev:"Tue"},{name:"Wednesday",abbrev:"Wed"},{name:"Thursday",abbrev:"Thu"},{name:"Friday",abbrev:"Fri"},{name:"Saturday",abbrev:"Sat"}],We=ce.Object,Ie="src\\Components\\NavBar.svelte";function je(e,t,n){var o=We.create(e);return o.monthDefinition=t[n],o.index=n,o}function Fe(e){var t,n,o,r,a,c=e.monthDefinition.abbrev;function s(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return e.click_handler_2.apply(e,[e].concat(t))}return{c:function(){t=M("div"),n=M("span"),o=S(c),r=_(),P(n,"class","svelte-1uccyem"),i(n,Ie,66,8,1875),P(t,"class","month-selector--month svelte-1uccyem"),O(t,"selected",e.index===e.month),O(t,"selectable",e.monthDefinition.selectable),i(t,Ie,60,6,1665),a=E(t,"click",s)},m:function(e,i){C(e,t,i),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&c!==(c=e.monthDefinition.abbrev)&&B(o,c),n.month&&O(t,"selected",e.index===e.month),n.availableMonths&&O(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&D(t),a()}}}function Ye(e){for(var t,o,r,a,c,l,d,u,h,p,f,g,m,v,w,b=Oe[e.month].name,y=e.availableMonths,k=[],T=0;T was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",i=e.month),"start"in e&&n("start",a=e.start),"end"in e&&n("end",c=e.end),"year"in e&&n("year",s=e.year),"canIncrementMonth"in e&&n("canIncrementMonth",l=e.canIncrementMonth),"canDecrementMonth"in e&&n("canDecrementMonth",d=e.canDecrementMonth)},e.$$.update=function(e){if(void 0===e&&(e={start:1,year:1,end:1}),e.start||e.year||e.end){var t=a.getFullYear()===s,r=c.getFullYear()===s;n("availableMonths",o=Oe.map(function(e,n){return Object.assign({},e,{selectable:!t&&!r||(!t||n>=a.getMonth())&&(!r||n<=c.getMonth())})}))}},{dispatch:r,month:i,start:a,end:c,year:s,canIncrementMonth:l,canDecrementMonth:d,monthSelectorOpen:u,availableMonths:o,toggleMonthSelectorOpen:h,monthSelected:p,click_handler:function(){return r("incrementMonth",-1)},click_handler_1:function(){return r("incrementMonth",1)},click_handler_2:function(e,t){return p(t,e.index)}}}var Ae=function(e){function t(t){e.call(this,t),he(this,t,Ne,Ye,d,["month","start","end","year","canIncrementMonth","canDecrementMonth"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.month||"month"in o||console.warn(" was created without expected prop 'month'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.year||"year"in o||console.warn(" was created without expected prop 'year'"),void 0!==n.canIncrementMonth||"canIncrementMonth"in o||console.warn(" was created without expected prop 'canIncrementMonth'"),void 0!==n.canDecrementMonth||"canDecrementMonth"in o||console.warn(" was created without expected prop 'canDecrementMonth'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={month:{configurable:!0},start:{configurable:!0},end:{configurable:!0},year:{configurable:!0},canIncrementMonth:{configurable:!0},canDecrementMonth:{configurable:!0}};return n.month.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.month.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.year.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.year.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Le=ce.window,Je="src\\Components\\Popover.svelte",qe=function(){return{}},ze=function(){return{}},Re=function(){return{}},Xe=function(){return{}};function Ue(e){var t,n,o,r,a,c,l,d;V(e.onwindowresize);var f=e.$$slots.trigger,g=u(f,e,Xe),m=e.$$slots.contents,v=u(m,e,ze);return{c:function(){t=M("div"),n=M("div"),g&&g.c(),o=_(),r=M("div"),a=M("div"),c=M("div"),v&&v.c(),P(n,"class","trigger"),i(n,Je,102,2,2332),P(c,"class","contents-inner svelte-1wmex1c"),i(c,Je,113,6,2730),P(a,"class","contents svelte-1wmex1c"),i(a,Je,112,4,2671),P(r,"class","contents-wrapper svelte-1wmex1c"),T(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),O(r,"visible",e.open),O(r,"shrink",e.shrink),i(r,Je,106,2,2454),P(t,"class","sc-popover svelte-1wmex1c"),i(t,Je,101,0,2284),d=[E(Le,"resize",e.onwindowresize),E(n,"click",e.doOpen)]},l:function(e){throw g&&g.l(div0_nodes),v&&v.l(div1_nodes),new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(i,s){C(i,t,s),$(t,n),g&&g.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,a),$(a,c),v&&v.m(c,null),e.div2_binding(a),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){g&&g.p&&e.$$scope&&g.p(p(f,t,e,Re),h(f,t,Xe)),v&&v.p&&e.$$scope&&v.p(p(m,t,e,qe),h(m,t,ze)),(!l||e.translateX||e.translateY)&&T(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&O(r,"visible",t.open),e.shrink&&O(r,"shrink",t.shrink)},i:function(e){l||(ie(g,e),ie(v,e),l=!0)},o:function(e){ae(g,e),ae(v,e),l=!1},d:function(n){n&&D(t),g&&g.d(n),e.div0_binding(null),v&&v.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),s(d)}}}function Ke(e,t,n){var o,r,i,a,c,s=L(),l=0,d=0,u=t.open;void 0===u&&(u=!1);var h=t.shrink,p=t.trigger,f=function(){var e,t,o;n("shrink",h=!0),t="animationend",o=function(){n("shrink",h=!1),n("open",u=!1),s("closed")},(e=a).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function g(e){if(u){var t=e.target;do{if(t===o)return}while(t=t.parentNode);f()}}A(function(){if(document.addEventListener("click",g),p)return i.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",g)}});var m=async function(){u||n("open",u=!0),await(G(),U);var e=c.getBoundingClientRect();return{top:e.top+-1*l,bottom:window.innerHeight-e.bottom+l,left:e.left+-1*d,right:document.body.clientWidth-e.right+d}},v=["open","shrink","trigger"];Object.keys(t).forEach(function(e){v.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")});var w=t.$$slots;void 0===w&&(w={});var b=t.$$scope;return e.$set=function(e){"open"in e&&n("open",u=e.open),"shrink"in e&&n("shrink",h=e.shrink),"trigger"in e&&n("trigger",p=e.trigger),"$$scope"in e&&n("$$scope",b=e.$$scope)},{popover:o,w:r,triggerContainer:i,contentsAnimated:a,contentsWrapper:c,translateY:l,translateX:d,open:u,shrink:h,trigger:p,close:f,doOpen:async function(){var e=await async function(){var e,t=await m();return e=r<480?t.bottom:t.top<0?Math.abs(t.top):t.bottom<0?t.bottom:0,{x:t.left<0?Math.abs(t.left):t.right<0?t.right:0,y:e}}(),t=e.x,o=e.y;n("translateX",d=t),n("translateY",l=o),n("open",u=!0),s("opened")},onwindowresize:function(){r=Le.innerWidth,n("w",r)},div0_binding:function(e){z[e?"unshift":"push"](function(){n("triggerContainer",i=e)})},div2_binding:function(e){z[e?"unshift":"push"](function(){n("contentsAnimated",a=e)})},div3_binding:function(e){z[e?"unshift":"push"](function(){n("contentsWrapper",c=e)})},div4_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},$$slots:w,$$scope:b}}var Ge=function(e){function t(t){e.call(this,t),he(this,t,Ke,Ue,d,["open","shrink","trigger","close"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.shrink||"shrink"in o||console.warn(" was created without expected prop 'shrink'"),void 0!==n.trigger||"trigger"in o||console.warn(" was created without expected prop 'trigger'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={open:{configurable:!0},shrink:{configurable:!0},trigger:{configurable:!0},close:{configurable:!0}};return n.open.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.open.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shrink.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shrink.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.close.get=function(){return this.$$.ctx.close},n.close.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ve=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Qe=function(e,t,n){if(e=e.toString(),void 0===t)return e;if(e.length==t)return e;if(n=void 0!==n&&n,e.length0;)e="0"+e;else e.length>t&&(e=n?e.substring(e.length-t):e.substring(0,t));return e},Ze={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthsOfYear:["January","February","March","April","May","June","July","August","September","October","November","December"]},et=[{key:"d",method:function(e){return Qe(e.getDate(),2)}},{key:"D",method:function(e){return Qe(Ze.daysOfWeek[e.getDay()],3)}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Ze.daysOfWeek[e.getDay()]}},{key:"F",method:function(e){return Ze.monthsOfYear[e.getMonth()]}},{key:"m",method:function(e){return Qe(e.getMonth()+1,2)}},{key:"M",method:function(e){return Qe(Ze.monthsOfYear[e.getMonth()],3)}},{key:"n",method:function(e){return e.getMonth()+1}},{key:"Y",method:function(e){return e.getFullYear()}},{key:"y",method:function(e){return Qe(e.getFullYear(),2,!0)}}],tt=[{key:"a",method:function(e){return e.getHours()>11?"pm":"am"}},{key:"A",method:function(e){return e.getHours()>11?"PM":"AM"}},{key:"g",method:function(e){return e.getHours()%12||12}},{key:"G",method:function(e){return e.getHours()}},{key:"h",method:function(e){return Qe(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Qe(e.getHours(),2)}},{key:"i",method:function(e){return Qe(e.getMinutes(),2)}},{key:"s",method:function(e){return Qe(e.getSeconds(),2)}}],nt=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),et.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ve(t,n.key,n.method(e)))}),tt.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ve(t,n.key,n.method(e)))}),t},ot={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},rt=Object.keys(ot).map(function(e){return ot[e]}),it="src\\Components\\Datepicker.svelte";function at(e,t,n){var o=Object.create(e);return o.day=t[n],o}function ct(e){var t,n;return{c:function(){t=M("button"),n=S(e.formattedSelected),P(t,"class","calendar-button svelte-1lorc63"),P(t,"type","button"),i(t,it,228,8,6259)},m:function(e,o){C(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&B(n,t.formattedSelected)},d:function(e){e&&D(t)}}}function st(e){var t,n,o=e.$$slots.default,r=u(o,e,null),a=!e.trigger&&ct(e);return{c:function(){t=M("div"),r||a&&a.c(),r&&r.c(),P(t,"slot","trigger"),P(t,"class","svelte-1lorc63"),i(t,it,225,4,6194)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){C(e,t,o),r?r.m(t,null):a&&a.m(t,null),n=!0},p:function(e,n){r||(n.trigger?a&&(a.d(1),a=null):a?a.p(e,n):((a=ct(n)).c(),a.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),h(o,n,null))},i:function(e){n||(ie(r,e),n=!0)},o:function(e){ae(r,e),n=!1},d:function(e){e&&D(t),r||a&&a.d(),r&&r.d(e)}}}function lt(e){var t,o,r=e.day.abbrev;return{c:function(){t=M("span"),o=S(r),P(t,"class","svelte-1lorc63"),i(t,it,241,10,6720)},m:function(e,n){C(e,t,n),$(t,o)},p:n,d:function(e){e&&D(t)}}}function dt(e){var t,n,o,r,a,c,s=new Ae({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth},$$inline:!0});s.$on("monthSelected",e.monthSelected_handler),s.$on("incrementMonth",e.incrementMonth_handler);for(var l=He,d=[],u=0;u0&&f>X?C(1,f.getDate()):e<0&&f was created with unknown prop '"+e+"'")});var N=t.$$slots;void 0===N&&(N={});var J,q,R,X,U,K,G,V=t.$$scope;return e.$set=function(e){"format"in e&&n("format",a=e.format),"start"in e&&n("start",c=e.start),"end"in e&&n("end",s=e.end),"selected"in e&&n("selected",l=e.selected),"dateChosen"in e&&n("dateChosen",d=e.dateChosen),"trigger"in e&&n("trigger",u=e.trigger),"selectableCallback"in e&&n("selectableCallback",h=e.selectableCallback),"formattedSelected"in e&&n("formattedSelected",k=e.formattedSelected),"buttonBackgroundColor"in e&&n("buttonBackgroundColor",B=e.buttonBackgroundColor),"buttonBorderColor"in e&&n("buttonBorderColor",T=e.buttonBorderColor),"buttonTextColor"in e&&n("buttonTextColor",O=e.buttonTextColor),"highlightColor"in e&&n("highlightColor",H=e.highlightColor),"dayBackgroundColor"in e&&n("dayBackgroundColor",W=e.dayBackgroundColor),"dayTextColor"in e&&n("dayTextColor",I=e.dayTextColor),"dayHighlightedBackgroundColor"in e&&n("dayHighlightedBackgroundColor",j=e.dayHighlightedBackgroundColor),"dayHighlightedTextColor"in e&&n("dayHighlightedTextColor",F=e.dayHighlightedTextColor),"$$scope"in e&&n("$$scope",V=e.$$scope)},e.$$.update=function(e){if(void 0===e&&(e={start:1,end:1,selectableCallback:1,months:1,month:1,year:1,monthIndex:1,visibleMonth:1,format:1,selected:1}),(e.start||e.end||e.selectableCallback)&&n("months",J=function(e,t,n){void 0===n&&(n=null),e.setHours(0,0,0,0),t.setHours(0,0,0,0);for(var o=new Date(t.getFullYear(),t.getMonth()+1,1),r=[],i=new Date(e.getFullYear(),e.getMonth(),1),a=me(e,t,n);i0),(e.format||e.selected)&&n("formattedSelected",k="function"==typeof a?a(l):nt(l,a))},{popover:o,format:a,start:c,end:s,selected:l,dateChosen:d,trigger:u,selectableCallback:h,highlighted:f,shouldShakeDate:g,month:m,year:v,isOpen:w,isClosing:b,formattedSelected:k,changeMonth:$,incrementMonth:C,registerSelection:S,registerClose:E,registerOpen:function(){n("highlighted",f=new Date(l)),n("month",m=l.getMonth()),n("year",v=l.getFullYear()),document.addEventListener("keydown",_),r("open")},buttonBackgroundColor:B,buttonBorderColor:T,buttonTextColor:O,highlightColor:H,dayBackgroundColor:W,dayTextColor:I,dayHighlightedBackgroundColor:j,dayHighlightedTextColor:F,visibleMonth:q,visibleMonthId:R,canIncrementMonth:K,canDecrementMonth:G,monthSelected_handler:function(e){return $(e.detail)},incrementMonth_handler:function(e){return C(e.detail)},dateSelected_handler:function(e){return S(e.detail)},popover_1_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},popover_1_open_binding:function(e){n("isOpen",w=e)},popover_1_shrink_binding:function(e){n("isClosing",b=e)},$$slots:N,$$scope:V}}var ft=function(e){function t(t){e.call(this,t),he(this,t,pt,ht,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","formattedSelected","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.formattedSelected||"formattedSelected"in o||console.warn(" was created without expected prop 'formattedSelected'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={format:{configurable:!0},start:{configurable:!0},end:{configurable:!0},selected:{configurable:!0},dateChosen:{configurable:!0},trigger:{configurable:!0},selectableCallback:{configurable:!0},formattedSelected:{configurable:!0},buttonBackgroundColor:{configurable:!0},buttonBorderColor:{configurable:!0},buttonTextColor:{configurable:!0},highlightColor:{configurable:!0},dayBackgroundColor:{configurable:!0},dayTextColor:{configurable:!0},dayHighlightedBackgroundColor:{configurable:!0},dayHighlightedTextColor:{configurable:!0}};return n.format.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.format.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),gt="src\\App.svelte";function mt(e){var t;return{c:function(){t=S("Pick a date")},m:function(e,n){C(e,t,n)},p:n,d:function(e){e&&D(t)}}}function vt(e){var t,n;return{c:function(){t=S("Chosen: "),n=S(e.formattedSelected)},m:function(e,o){C(e,t,o),C(e,n,o)},p:function(e,t){e.formattedSelected&&B(n,t.formattedSelected)},d:function(e){e&&(D(t),D(n))}}}function wt(e){var t;function n(e){return e.dateChosen?vt:mt}var o=n(e),r=o(e);return{c:function(){t=M("button"),r.c(),P(t,"class","custom-button svelte-6e0kyu"),i(t,gt,78,3,2431)},m:function(e,n){C(e,t,n),r.m(t,null)},p:function(e,i){o===(o=n(i))&&r?r.p(e,i):(r.d(1),(r=o(i))&&(r.c(),r.m(t,null)))},d:function(e){e&&D(t),r.d()}}}function bt(e){var t;return{c:function(){t=S("Custom Button")},m:function(e,n){C(e,t,n)},p:n,d:function(e){e&&D(t)}}}function yt(e){var t;return{c:function(){t=S(e.exampleFormatted)},m:function(e,n){C(e,t,n)},p:function(e,n){e.exampleFormatted&&B(t,n.exampleFormatted)},d:function(e){e&&D(t)}}}function kt(e){var t;function n(e){return e.exampleChosen?yt:bt}var o=n(e),r=o(e);return{c:function(){t=M("button"),r.c(),P(t,"id","test"),i(t,gt,105,3,3175)},m:function(e,n){C(e,t,n),r.m(t,null)},p:function(e,i){o===(o=n(i))&&r?r.p(e,i):(r.d(1),(r=o(i))&&(r.c(),r.m(t,null)))},d:function(e){e&&D(t),r.d()}}}function $t(e){var t,n,o,r,a,c,s,l,d,u,h,p,f,g,m,v,w,b,y,k,x,E,B,T,O,H,W,I,j,F,Y,N,A,L,J,q,R,X,U,K,G,V,Z,ee,te,ne,oe,re,ce,se,he,pe,fe,ge,me,ve,we,be,ye,ke,$e,Ce,De,xe,Me,Se,_e,Ee,Pe,Be,Te,Oe,He,We,Ie,je=new ft({props:{format:Ct},$$inline:!0});function Fe(t){e.datepicker1_formattedSelected_binding.call(null,t),J=!0,Q(function(){return J=!1})}function Ye(t){e.datepicker1_dateChosen_binding.call(null,t),q=!0,Q(function(){return q=!1})}var Ne={format:Ct,$$slots:{default:[wt]},$$scope:{ctx:e}};void 0!==e.formattedSelected&&(Ne.formattedSelected=e.formattedSelected),void 0!==e.dateChosen&&(Ne.dateChosen=e.dateChosen);var Ae=new ft({props:Ne,$$inline:!0});function Le(t){e.datepicker2_formattedSelected_binding.call(null,t),ce=!0,Q(function(){return ce=!1})}function Je(t){e.datepicker2_dateChosen_binding.call(null,t),se=!0,Q(function(){return se=!1})}z.push(function(){return le(Ae,"formattedSelected",Fe)}),z.push(function(){return le(Ae,"dateChosen",Ye)});var qe={$$slots:{default:[kt]},$$scope:{ctx:e}};void 0!==e.exampleFormatted&&(qe.formattedSelected=e.exampleFormatted),void 0!==e.exampleChosen&&(qe.dateChosen=e.exampleChosen);var ze=new ft({props:qe,$$inline:!0});z.push(function(){return le(ze,"formattedSelected",Le)}),z.push(function(){return le(ze,"dateChosen",Je)});var Re=new ft({props:{format:Ct,start:e.threeDaysInPast,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback},$$inline:!0}),Xe=new ft({props:{format:Ct,start:e.tomorrow,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback},$$inline:!0}),Ue=new ft({props:{format:Ct},$$inline:!0});Ue.$on("dateSelected",e.dateSelected_handler);var Ke=new ft({props:{format:Ct,buttonBackgroundColor:"#e20074",buttonTextColor:"white",highlightColor:"#e20074",dayBackgroundColor:"#efefef",dayTextColor:"#333",dayHighlightedBackgroundColor:"#e20074",dayHighlightedTextColor:"#fff"},$$inline:!0});return{c:function(){(t=M("h1")).textContent="SvelteCalendar",n=_(),o=M("div"),(r=M("p")).textContent="A lightweight date picker written with Svelte. Here is an example:",a=_(),je.$$.fragment.c(),c=_(),(s=M("p")).textContent="This component can be used with or without the Svelte compiler.",l=_(),d=M("ul"),(u=M("li")).textContent="Lightweight (~8KB)",h=_(),(p=M("li")).textContent="IE11+ Compatible",f=_(),(g=M("li")).textContent="Usable as a Svelte component",m=_(),(v=M("li")).textContent="Usable with Vanilla JS / ",w=_(),(b=M("li")).textContent="Can be compiled to a native web component / custom element",y=_(),(k=M("li")).textContent="Mobile/thumb friendly",x=_(),(E=M("li")).textContent="Keyboard navigation (arrows, pgup/pgdown, tab, esc)",B=_(),(T=M("p")).textContent="Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:",O=_(),(H=M("h4")).textContent="With Svelte:",W=_(),I=M("pre"),j=M("code"),F=S("\r\n \r\n"),A=_(),L=M("div"),Ae.$$.fragment.c(),R=_(),(X=M("h4")).textContent="Without Svelte HTML:",U=_(),K=M("pre"),(G=M("code")).textContent="
\r\n \r\n
",V=_(),(Z=M("h4")).textContent="Without Svelte JS:",ee=_(),te=M("pre"),(ne=M("code")).textContent="var trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n target: document.querySelector('.button-container'),\r\n anchor: trigger, \r\n props: {\r\n trigger: trigger\r\n }\r\n});",oe=_(),re=M("div"),ze.$$.fragment.c(),he=_(),(pe=M("p")).textContent="You can confine the date selection range with start and end:",fe=_(),ge=M("div"),Re.$$.fragment.c(),me=_(),(ve=M("p")).textContent="Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.",we=_(),(be=M("p")).textContent="You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).",ye=_(),ke=M("div"),Xe.$$.fragment.c(),$e=_(),(Ce=M("p")).textContent="You can bind to the `dateSelected` event, which has a data property `date`:",De=_(),xe=M("div"),Ue.$$.fragment.c(),Me=_(),(Se=M("p")).textContent="You can theme the datepicker:",_e=_(),Ee=M("div"),Ke.$$.fragment.c(),Pe=_(),Be=M("pre"),Te=M("code"),Oe=S(""),P(t,"class","svelte-6e0kyu"),i(t,gt,47,0,1034),i(r,gt,49,1,1085),i(s,gt,54,1,1273),i(u,gt,56,2,1354),i(p,gt,57,2,1385),i(g,gt,58,2,1414),i(v,gt,59,2,1455),i(b,gt,60,2,1520),i(k,gt,61,2,1591),i(E,gt,62,2,1625),i(d,gt,55,1,1346),i(T,gt,65,1,1698),i(H,gt,67,1,2002),P(j,"class","html"),i(j,gt,68,6,2031),i(I,gt,68,1,2026),P(L,"class","text-center svelte-6e0kyu"),i(L,gt,76,1,2326),i(X,gt,84,1,2582),P(G,"class","html"),i(G,gt,85,6,2619),i(K,gt,85,1,2614),i(Z,gt,91,1,2770),P(ne,"class","js"),i(ne,gt,92,6,2805),i(te,gt,92,1,2800),P(re,"class","text-center svelte-6e0kyu"),i(re,gt,103,1,3055),i(pe,gt,111,1,3311),P(ge,"class","text-center svelte-6e0kyu"),i(ge,gt,113,1,3383),P(ve,"class","note svelte-6e0kyu"),i(ve,gt,117,1,3553),i(be,gt,119,1,3714),P(ke,"class","text-center svelte-6e0kyu"),i(ke,gt,121,1,3974),i(Ce,gt,125,1,4137),P(xe,"class","text-center svelte-6e0kyu"),i(xe,gt,127,1,4225),i(Se,gt,131,1,4350),i(Ee,gt,132,1,4389),P(Te,"class","html"),i(Te,gt,144,6,4687),i(Be,gt,144,1,4682),P(o,"class","container svelte-6e0kyu"),i(o,gt,48,0,1059)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,i){C(e,t,i),C(e,n,i),C(e,o,i),$(o,r),$(o,a),de(je,o,null),$(o,c),$(o,s),$(o,l),$(o,d),$(d,u),$(d,h),$(d,p),$(d,f),$(d,g),$(d,m),$(d,v),$(d,w),$(d,b),$(d,y),$(d,k),$(d,x),$(d,E),$(o,B),$(o,T),$(o,O),$(o,H),$(o,W),$(o,I),$(I,j),$(j,F),$(j,Y),$(j,N),$(o,A),$(o,L),de(Ae,L,null),$(o,R),$(o,X),$(o,U),$(o,K),$(K,G),$(o,V),$(o,Z),$(o,ee),$(o,te),$(te,ne),$(o,oe),$(o,re),de(ze,re,null),$(o,he),$(o,pe),$(o,fe),$(o,ge),de(Re,ge,null),$(o,me),$(o,ve),$(o,we),$(o,be),$(o,ye),$(o,ke),de(Xe,ke,null),$(o,$e),$(o,Ce),$(o,De),$(o,xe),de(Ue,xe,null),$(o,Me),$(o,Se),$(o,_e),$(o,Ee),de(Ke,Ee,null),$(o,Pe),$(o,Be),$(Be,Te),$(Te,Oe),$(Te,He),$(Te,We),Ie=!0},p:function(e,t){var n={};e.dateFormat&&(n.format=Ct),je.$set(n);var o={};e.dateFormat&&(o.format=Ct),(e.$$scope||e.dateChosen||e.formattedSelected)&&(o.$$scope={changed:e,ctx:t}),!J&&e.formattedSelected&&(o.formattedSelected=t.formattedSelected),!q&&e.dateChosen&&(o.dateChosen=t.dateChosen),Ae.$set(o);var r={};(e.$$scope||e.exampleChosen||e.exampleFormatted)&&(r.$$scope={changed:e,ctx:t}),!ce&&e.exampleFormatted&&(r.formattedSelected=t.exampleFormatted),!se&&e.exampleChosen&&(r.dateChosen=t.exampleChosen),ze.$set(r);var i={};e.dateFormat&&(i.format=Ct),e.threeDaysInPast&&(i.start=t.threeDaysInPast),e.inThirtyDays&&(i.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(i.selectableCallback=t.noWeekendsSelectableCallback),Re.$set(i);var a={};e.dateFormat&&(a.format=Ct),e.tomorrow&&(a.start=t.tomorrow),e.inThirtyDays&&(a.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(a.selectableCallback=t.noWeekendsSelectableCallback),Xe.$set(a);var c={};e.dateFormat&&(c.format=Ct),Ue.$set(c);var s={};e.dateFormat&&(s.format=Ct),Ke.$set(s)},i:function(e){Ie||(ie(je.$$.fragment,e),ie(Ae.$$.fragment,e),ie(ze.$$.fragment,e),ie(Re.$$.fragment,e),ie(Xe.$$.fragment,e),ie(Ue.$$.fragment,e),ie(Ke.$$.fragment,e),Ie=!0)},o:function(e){ae(je.$$.fragment,e),ae(Ae.$$.fragment,e),ae(ze.$$.fragment,e),ae(Re.$$.fragment,e),ae(Xe.$$.fragment,e),ae(Ue.$$.fragment,e),ae(Ke.$$.fragment,e),Ie=!1},d:function(e){e&&(D(t),D(n),D(o)),ue(je),ue(Ae),ue(ze),ue(Re),ue(Xe),ue(Ue),ue(Ke)}}}var Ct="#{l}, #{F} #{j}, #{Y}";function Dt(e,t,n){var o,r,i,a,c=new Date,s=new Date,l=!1,d=!1,u=!1;A(function(){hljs.initHighlightingOnLoad()}),e.$$.update=function(e){if(void 0===e&&(e={start:1}),e.start&&new Date(s.getTime()+62208e6),e.start){var t=new Date(s);t.setDate(t.getDate()+30),n("inThirtyDays",a=t)}};var h=new Date(c);h.setDate(h.getDate()-3),n("threeDaysInPast",r=h);var p=new Date(c);return p.setDate(p.getDate()+1),n("tomorrow",i=p),{noWeekendsSelectableCallback:function(e){return 0!==e.getDay()&&6!==e.getDay()},formattedSelected:o,dateChosen:l,exampleFormatted:d,exampleChosen:u,threeDaysInPast:r,tomorrow:i,inThirtyDays:a,datepicker1_formattedSelected_binding:function(e){n("formattedSelected",o=e)},datepicker1_dateChosen_binding:function(e){n("dateChosen",l=e)},datepicker2_formattedSelected_binding:function(e){n("exampleFormatted",d=e)},datepicker2_dateChosen_binding:function(e){n("exampleChosen",u=e)},dateSelected_handler:function(e){return function(e){console.log("User chose "+e+".")}(e.detail.date)}}}var xt=function(e){function t(t){e.call(this,t),he(this,t,Dt,$t,d,[])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(fe);return t(),new xt({target:document.body,data:{}})}(); +var app=function(){"use strict";function e(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var o=Object(e),r=1;r0)&&v(b)}function k(e){var t;return y||(y=!0,v(b)),{promise:new Promise(function(n){w.add(t=[e,n])}),abort:function(){w.delete(t)}}}function $(e,t){e.appendChild(t)}function C(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode.removeChild(e)}function x(e,t){for(var n=0;n>>0}(h)+"_"+i;if(!I[p]){if(!f){var g=M("style");document.head.appendChild(g),f=g.sheet}I[p]=!0,f.insertRule("@keyframes "+p+" "+h,f.cssRules.length)}var m=e.style.animation||"";return e.style.animation=(m?m+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",H+=1,p}function F(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}).join(", "),t&&!--H&&v(function(){if(!H){for(var e=f.cssRules.length;e--;)f.deleteRule(e);I={}}})}function N(e){Y=e}function A(e){(function(){if(!Y)throw new Error("Function called outside component initialization");return Y})().$$.on_mount.push(e)}function J(){var e=Y;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=W(t,n);o.slice().forEach(function(t){t.call(e,r)})}}}var L,q=[],z=[],R=[],X=[],U=Promise.resolve(),K=!1;function G(){K||(K=!0,U.then(Z))}function V(e){R.push(e)}function Q(e){X.push(e)}function Z(){var e=new Set;do{for(;q.length;){var t=q.shift();N(t),ee(t.$$)}for(;z.length;)z.pop()();for(var n=0;n=e&&r<=t&&(!n||n(r)),isToday:r.getTime()===o.getTime()}}};var ve=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function we(e){var t=e-1;return t*t*t+1}function ye(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=+getComputedStyle(e).opacity;return{delay:n,duration:o,css:function(e){return"opacity: "+e*r}}}function be(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=t.easing;void 0===r&&(r=we);var c=t.x;void 0===c&&(c=0);var s=t.y;void 0===s&&(s=0);var i=t.opacity;void 0===i&&(i=0);var a=getComputedStyle(e),l=+a.opacity,d="none"===a.transform?"":a.transform,u=l*(1-i);return{delay:n,duration:o,easing:r,css:function(e,t){return"\n\t\t\ttransform: "+d+" translate("+(1-e)*c+"px, "+(1-e)*s+"px);\n\t\t\topacity: "+(l-u*t)}}}var ke="src\\Components\\Week.svelte";function $e(e,t,n){var o=Object.create(e);return o.day=t[n],o}function Ce(e){var t,n,o,r,s,i=e.day.date.getDate();function a(){return e.click_handler(e)}return{c:function(){t=M("div"),n=M("button"),o=S(i),r=E(),_(n,"class","day--label svelte-5wjnn4"),_(n,"type","button"),T(n,"selected",ve(e.day.date,e.selected)),T(n,"highlighted",ve(e.day.date,e.highlighted)),T(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),T(n,"disabled",!e.day.selectable),c(n,ke,28,6,692),_(t,"class","day svelte-5wjnn4"),T(t,"outside-month",!e.day.partOfMonth),T(t,"is-today",e.day.isToday),T(t,"is-disabled",!e.day.selectable),c(t,ke,22,4,527),s=O(n,"click",a)},m:function(e,c){C(e,t,c),$(t,n),$(n,o),$(t,r)},p:function(r,c){e=c,r.days&&i!==(i=e.day.date.getDate())&&P(o,i),(r.areDatesEquivalent||r.days||r.selected)&&T(n,"selected",ve(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&T(n,"highlighted",ve(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&T(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),r.days&&(T(n,"disabled",!e.day.selectable),T(t,"outside-month",!e.day.partOfMonth),T(t,"is-today",e.day.isToday),T(t,"is-disabled",!e.day.selectable))},d:function(e){e&&D(t),s()}}}function De(e){for(var t,r,s,i,d=e.days,u=[],h=0;h=g)return h(1,0),ne(e,!0,"end"),u(),a=!1;if(t>=f){var n=l((t-f)/r);h(n,1-n)}}return a})}var p=!1;return{start:function(){p||(F(e),l(i)?(i=i(),te().then(h)):h())},invalidate:function(){p=!1},end:function(){a&&(u(),a=!1)}}}(t,be,{x:50*e.direction,duration:180,delay:90})),r.start()}),i=!0)},o:function(e){r&&r.invalidate(),s=function(e,t,r){var c,s=t(e,r),i=!0,d=oe;function u(){var t=s.delay;void 0===t&&(t=0);var r=s.duration;void 0===r&&(r=300);var l=s.easing;void 0===l&&(l=o);var u=s.tick;void 0===u&&(u=n);var h=s.css;h&&(c=j(e,1,0,r,t,l,h));var p=m()+t,f=p+r;V(function(){return ne(e,!1,"start")}),k(function(t){if(i){if(t>=f)return u(0,1),ne(e,!1,"end"),--d.r||a(d.c),!1;if(t>=p){var n=l((t-p)/r);u(1-n,n)}}return i})}return d.r+=1,l(s)?te().then(function(){s=s(),u()}):u(),{end:function(t){t&&s.tick&&s.tick(1,0),i&&(c&&F(e,c),i=!1)}}}(t,ye,{duration:180}),i=!1},d:function(e){e&&D(t),x(u,e),e&&s&&s.end()}}}function xe(e,t,n){var o=J(),r=t.days,c=t.selected,s=t.start,i=t.end,a=t.highlighted,l=t.shouldShakeDate,d=t.direction,u=["days","selected","start","end","highlighted","shouldShakeDate","direction"];return Object.keys(t).forEach(function(e){u.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")}),e.$set=function(e){"days"in e&&n("days",r=e.days),"selected"in e&&n("selected",c=e.selected),"start"in e&&n("start",s=e.start),"end"in e&&n("end",i=e.end),"highlighted"in e&&n("highlighted",a=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",l=e.shouldShakeDate),"direction"in e&&n("direction",d=e.direction)},{dispatch:o,days:r,selected:c,start:s,end:i,highlighted:a,shouldShakeDate:l,direction:d,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var Me=function(e){function t(t){e.call(this,t),he(this,t,xe,De,d,["days","selected","start","end","highlighted","shouldShakeDate","direction"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.days||"days"in o||console.warn(" was created without expected prop 'days'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'"),void 0!==n.direction||"direction"in o||console.warn(" was created without expected prop 'direction'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={days:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0},direction:{configurable:!0}};return n.days.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.days.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.direction.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.direction.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Se="src\\Components\\Month.svelte";function Ee(e,t,n){var o=Object.create(e);return o.week=t[n],o}function Oe(e,t){var n,o,r=new Me({props:{days:t.week.days,selected:t.selected,start:t.start,end:t.end,highlighted:t.highlighted,shouldShakeDate:t.shouldShakeDate,direction:t.direction},$$inline:!0});return r.$on("dateSelected",t.dateSelected_handler),{key:e,first:null,c:function(){n=S(""),r.$$.fragment.c(),this.first=n},m:function(e,t){C(e,n,t),de(r,e,t),o=!0},p:function(e,t){var n={};e.visibleMonth&&(n.days=t.week.days),e.selected&&(n.selected=t.selected),e.start&&(n.start=t.start),e.end&&(n.end=t.end),e.highlighted&&(n.highlighted=t.highlighted),e.shouldShakeDate&&(n.shouldShakeDate=t.shouldShakeDate),e.direction&&(n.direction=t.direction),r.$set(n)},i:function(e){o||(ce(r.$$.fragment,e),o=!0)},o:function(e){se(r.$$.fragment,e),o=!1},d:function(e){e&&D(n),ue(r,e)}}}function _e(e){for(var t,n,o=[],r=new Map,s=e.visibleMonth.weeks,i=function(e){return e.week.id},l=0;lw.get(E)?(C.add(S),D(x)):($.add(E),h--):(a(M,s),h--)}for(;h--;){var O=e[h];v.has(O.key)||a(O,s)}for(;p;)D(m[p-1]);return m}(o,e,i,1,n,c,r,t,ae,Oe,null,Ee),oe.r||a(oe.c),oe=oe.p},i:function(e){if(!n){for(var t=0;t was created with unknown prop '"+e+"'")}),e.$set=function(e){"id"in e&&n("id",r=e.id),"visibleMonth"in e&&n("visibleMonth",c=e.visibleMonth),"selected"in e&&n("selected",s=e.selected),"start"in e&&n("start",i=e.start),"end"in e&&n("end",a=e.end),"highlighted"in e&&n("highlighted",l=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",d=e.shouldShakeDate)},e.$$.update=function(e){void 0===e&&(e={lastId:1,id:1}),(e.lastId||e.id)&&(n("direction",o=u was created without expected prop 'id'"),void 0!==n.visibleMonth||"visibleMonth"in o||console.warn(" was created without expected prop 'visibleMonth'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={id:{configurable:!0},visibleMonth:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0}};return n.id.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.id.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Te=ie.Object,We="src\\Components\\NavBar.svelte";function Ye(e,t,n){var o=Te.create(e);return o.monthDefinition=t[n],o.index=n,o}function He(e){var t,n,o,r,s,i=e.monthDefinition.abbrev;function a(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return e.click_handler_2.apply(e,[e].concat(t))}return{c:function(){t=M("div"),n=M("span"),o=S(i),r=E(),_(n,"class","svelte-1uccyem"),c(n,We,69,8,1913),_(t,"class","month-selector--month svelte-1uccyem"),T(t,"selected",e.index===e.month),T(t,"selectable",e.monthDefinition.selectable),c(t,We,63,6,1703),s=O(t,"click",a)},m:function(e,c){C(e,t,c),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&i!==(i=e.monthDefinition.abbrev)&&P(o,i),n.month&&T(t,"selected",e.index===e.month),n.availableMonths&&T(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&D(t),s()}}}function Ie(e){for(var t,o,r,s,i,l,d,u,h,p,f,g,m,v,w,y=e.monthsOfYear[e.month][0],b=e.availableMonths,k=[],B=0;B was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",c=e.month),"start"in e&&n("start",s=e.start),"end"in e&&n("end",i=e.end),"year"in e&&n("year",a=e.year),"canIncrementMonth"in e&&n("canIncrementMonth",l=e.canIncrementMonth),"canDecrementMonth"in e&&n("canDecrementMonth",d=e.canDecrementMonth),"monthsOfYear"in e&&n("monthsOfYear",u=e.monthsOfYear)},e.$$.update=function(e){if(void 0===e&&(e={start:1,year:1,end:1,monthsOfYear:1}),e.start||e.year||e.end||e.monthsOfYear){var t=s.getFullYear()===a,r=i.getFullYear()===a;n("availableMonths",o=u.map(function(e,n){return Object.assign({},{name:e[0],abbrev:e[1]},{selectable:!t&&!r||(!t||n>=s.getMonth())&&(!r||n<=i.getMonth())})}))}},{dispatch:r,month:c,start:s,end:i,year:a,canIncrementMonth:l,canDecrementMonth:d,monthsOfYear:u,monthSelectorOpen:h,availableMonths:o,toggleMonthSelectorOpen:p,monthSelected:f,click_handler:function(){return r("incrementMonth",-1)},click_handler_1:function(){return r("incrementMonth",1)},click_handler_2:function(e,t){return f(t,e.index)}}}var Fe=function(e){function t(t){e.call(this,t),he(this,t,je,Ie,d,["month","start","end","year","canIncrementMonth","canDecrementMonth","monthsOfYear"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.month||"month"in o||console.warn(" was created without expected prop 'month'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.year||"year"in o||console.warn(" was created without expected prop 'year'"),void 0!==n.canIncrementMonth||"canIncrementMonth"in o||console.warn(" was created without expected prop 'canIncrementMonth'"),void 0!==n.canDecrementMonth||"canDecrementMonth"in o||console.warn(" was created without expected prop 'canDecrementMonth'"),void 0!==n.monthsOfYear||"monthsOfYear"in o||console.warn(" was created without expected prop 'monthsOfYear'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={month:{configurable:!0},start:{configurable:!0},end:{configurable:!0},year:{configurable:!0},canIncrementMonth:{configurable:!0},canDecrementMonth:{configurable:!0},monthsOfYear:{configurable:!0}};return n.month.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.month.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.year.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.year.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ne=ie.window,Ae="src\\Components\\Popover.svelte",Je=function(){return{}},Le=function(){return{}},qe=function(){return{}},ze=function(){return{}};function Re(e){var t,n,o,r,s,i,l,d;V(e.onwindowresize);var f=e.$$slots.trigger,g=u(f,e,ze),m=e.$$slots.contents,v=u(m,e,Le);return{c:function(){t=M("div"),n=M("div"),g&&g.c(),o=E(),r=M("div"),s=M("div"),i=M("div"),v&&v.c(),_(n,"class","trigger"),c(n,Ae,102,2,2332),_(i,"class","contents-inner svelte-1wmex1c"),c(i,Ae,113,6,2730),_(s,"class","contents svelte-1wmex1c"),c(s,Ae,112,4,2671),_(r,"class","contents-wrapper svelte-1wmex1c"),B(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),T(r,"visible",e.open),T(r,"shrink",e.shrink),c(r,Ae,106,2,2454),_(t,"class","sc-popover svelte-1wmex1c"),c(t,Ae,101,0,2284),d=[O(Ne,"resize",e.onwindowresize),O(n,"click",e.doOpen)]},l:function(e){throw g&&g.l(div0_nodes),v&&v.l(div1_nodes),new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(c,a){C(c,t,a),$(t,n),g&&g.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,s),$(s,i),v&&v.m(i,null),e.div2_binding(s),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){g&&g.p&&e.$$scope&&g.p(p(f,t,e,qe),h(f,t,ze)),v&&v.p&&e.$$scope&&v.p(p(m,t,e,Je),h(m,t,Le)),(!l||e.translateX||e.translateY)&&B(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&T(r,"visible",t.open),e.shrink&&T(r,"shrink",t.shrink)},i:function(e){l||(ce(g,e),ce(v,e),l=!0)},o:function(e){se(g,e),se(v,e),l=!1},d:function(n){n&&D(t),g&&g.d(n),e.div0_binding(null),v&&v.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),a(d)}}}function Xe(e,t,n){var o,r,c,s,i,a=J(),l=0,d=0,u=t.open;void 0===u&&(u=!1);var h=t.shrink,p=t.trigger,f=function(){var e,t,o;n("shrink",h=!0),t="animationend",o=function(){n("shrink",h=!1),n("open",u=!1),a("closed")},(e=s).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function g(e){if(u){var t=e.target;do{if(t===o)return}while(t=t.parentNode);f()}}A(function(){if(document.addEventListener("click",g),p)return c.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",g)}});var m=async function(){u||n("open",u=!0),await(G(),U);var e=i.getBoundingClientRect();return{top:e.top+-1*l,bottom:window.innerHeight-e.bottom+l,left:e.left+-1*d,right:document.body.clientWidth-e.right+d}},v=["open","shrink","trigger"];Object.keys(t).forEach(function(e){v.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")});var w=t.$$slots;void 0===w&&(w={});var y=t.$$scope;return e.$set=function(e){"open"in e&&n("open",u=e.open),"shrink"in e&&n("shrink",h=e.shrink),"trigger"in e&&n("trigger",p=e.trigger),"$$scope"in e&&n("$$scope",y=e.$$scope)},{popover:o,w:r,triggerContainer:c,contentsAnimated:s,contentsWrapper:i,translateY:l,translateX:d,open:u,shrink:h,trigger:p,close:f,doOpen:async function(){var e=await async function(){var e,t=await m();return e=r<480?t.bottom:t.top<0?Math.abs(t.top):t.bottom<0?t.bottom:0,{x:t.left<0?Math.abs(t.left):t.right<0?t.right:0,y:e}}(),t=e.x,o=e.y;n("translateX",d=t),n("translateY",l=o),n("open",u=!0),a("opened")},onwindowresize:function(){r=Ne.innerWidth,n("w",r)},div0_binding:function(e){z[e?"unshift":"push"](function(){n("triggerContainer",c=e)})},div2_binding:function(e){z[e?"unshift":"push"](function(){n("contentsAnimated",s=e)})},div3_binding:function(e){z[e?"unshift":"push"](function(){n("contentsWrapper",i=e)})},div4_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},$$slots:w,$$scope:y}}var Ue=function(e){function t(t){e.call(this,t),he(this,t,Xe,Re,d,["open","shrink","trigger","close"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.shrink||"shrink"in o||console.warn(" was created without expected prop 'shrink'"),void 0!==n.trigger||"trigger"in o||console.warn(" was created without expected prop 'trigger'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={open:{configurable:!0},shrink:{configurable:!0},trigger:{configurable:!0},close:{configurable:!0}};return n.open.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.open.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shrink.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shrink.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.close.get=function(){return this.$$.ctx.close},n.close.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ke=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Ge=function(e,t,n){if(e=e.toString(),void 0===t)return e;if(e.length==t)return e;if(n=void 0!==n&&n,e.length0;)e="0"+e;else e.length>t&&(e=n?e.substring(e.length-t):e.substring(0,t));return e},Ve={daysOfWeek:[["Sunday","Sun"],["Monday","Mon"],["Tuesday","Tue"],["Wednesday","Wed"],["Thursday","Thu"],["Friday","Fri"],["Saturday","Sat"]],monthsOfYear:[["January","Jan"],["February","Feb"],["March","Mar"],["April","Apr"],["May","May"],["June","Jun"],["July","Jul"],["August","Aug"],["September","Sep"],["October","Oct"],["November","Nov"],["December","Dec"]]},Qe=[{key:"d",method:function(e){return Ge(e.getDate(),2)}},{key:"D",method:function(e){return Ve.daysOfWeek[e.getDay()][1]}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Ve.daysOfWeek[e.getDay()][0]}},{key:"F",method:function(e){return Ve.monthsOfYear[e.getMonth()][0]}},{key:"m",method:function(e){return Ge(e.getMonth()+1,2)}},{key:"M",method:function(e){return Ve.monthsOfYear[e.getMonth()][1]}},{key:"n",method:function(e){return e.getMonth()+1}},{key:"Y",method:function(e){return e.getFullYear()}},{key:"y",method:function(e){return Ge(e.getFullYear(),2,!0)}}],Ze=[{key:"a",method:function(e){return e.getHours()>11?"pm":"am"}},{key:"A",method:function(e){return e.getHours()>11?"PM":"AM"}},{key:"g",method:function(e){return e.getHours()%12||12}},{key:"G",method:function(e){return e.getHours()}},{key:"h",method:function(e){return Ge(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Ge(e.getHours(),2)}},{key:"i",method:function(e){return Ge(e.getMinutes(),2)}},{key:"s",method:function(e){return Ge(e.getSeconds(),2)}}],et=function(e){void 0===e&&(e={}),function(e){Object.keys(e).forEach(function(t){Ve[t]&&Ve[t].length==e[t].length&&(Ve[t]=e[t])})}(e)},tt=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),Qe.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ke(t,n.key,n.method(e)))}),Ze.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ke(t,n.key,n.method(e)))}),t},nt={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},ot=Object.keys(nt).map(function(e){return nt[e]}),rt="src\\Components\\Datepicker.svelte";function ct(e,t,n){var o=Object.create(e);return o.day=t[n],o}function st(e){var t,n;return{c:function(){t=M("button"),n=S(e.formattedSelected),_(t,"class","calendar-button svelte-1lorc63"),_(t,"type","button"),c(t,rt,253,8,6794)},m:function(e,o){C(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&P(n,t.formattedSelected)},d:function(e){e&&D(t)}}}function it(e){var t,n,o=e.$$slots.default,r=u(o,e,null),s=!e.trigger&&st(e);return{c:function(){t=M("div"),r||s&&s.c(),r&&r.c(),_(t,"slot","trigger"),_(t,"class","svelte-1lorc63"),c(t,rt,250,4,6729)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){C(e,t,o),r?r.m(t,null):s&&s.m(t,null),n=!0},p:function(e,n){r||(n.trigger?s&&(s.d(1),s=null):s?s.p(e,n):((s=st(n)).c(),s.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),h(o,n,null))},i:function(e){n||(ce(r,e),n=!0)},o:function(e){se(r,e),n=!1},d:function(e){e&&D(t),r||s&&s.d(),r&&r.d(e)}}}function at(e){var t,n,o=e.day[1];return{c:function(){t=M("span"),n=S(o),_(t,"class","svelte-1lorc63"),c(t,rt,274,10,7357)},m:function(e,o){C(e,t,o),$(t,n)},p:function(e,t){e.daysOfWeek&&o!==(o=t.day[1])&&P(n,o)},d:function(e){e&&D(t)}}}function lt(e){var t,n,o,r,s,i,a=new Fe({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth,monthsOfYear:e.monthsOfYear},$$inline:!0});a.$on("monthSelected",e.monthSelected_handler),a.$on("incrementMonth",e.incrementMonth_handler);for(var l=e.daysOfWeek,d=[],u=0;u0&&m>K?x(1,m.getDate()):e<0&&m was created with unknown prop '"+e+"'")});var q=t.$$slots;void 0===q&&(q={});var R,X,U,K,G,V,Q,Z=t.$$scope;return e.$set=function(e){"format"in e&&n("format",s=e.format),"start"in e&&n("start",i=e.start),"end"in e&&n("end",a=e.end),"selected"in e&&n("selected",l=e.selected),"dateChosen"in e&&n("dateChosen",d=e.dateChosen),"trigger"in e&&n("trigger",u=e.trigger),"selectableCallback"in e&&n("selectableCallback",h=e.selectableCallback),"daysOfWeek"in e&&n("daysOfWeek",p=e.daysOfWeek),"monthsOfYear"in e&&n("monthsOfYear",f=e.monthsOfYear),"formattedSelected"in e&&n("formattedSelected",C=e.formattedSelected),"buttonBackgroundColor"in e&&n("buttonBackgroundColor",T=e.buttonBackgroundColor),"buttonBorderColor"in e&&n("buttonBorderColor",W=e.buttonBorderColor),"buttonTextColor"in e&&n("buttonTextColor",Y=e.buttonTextColor),"highlightColor"in e&&n("highlightColor",H=e.highlightColor),"dayBackgroundColor"in e&&n("dayBackgroundColor",I=e.dayBackgroundColor),"dayTextColor"in e&&n("dayTextColor",j=e.dayTextColor),"dayHighlightedBackgroundColor"in e&&n("dayHighlightedBackgroundColor",F=e.dayHighlightedBackgroundColor),"dayHighlightedTextColor"in e&&n("dayHighlightedTextColor",N=e.dayHighlightedTextColor),"$$scope"in e&&n("$$scope",Z=e.$$scope)},e.$$.update=function(e){if(void 0===e&&(e={start:1,end:1,selectableCallback:1,months:1,month:1,year:1,monthIndex:1,visibleMonth:1,format:1,selected:1}),(e.start||e.end||e.selectableCallback)&&n("months",R=function(e,t,n){void 0===n&&(n=null),e.setHours(0,0,0,0),t.setHours(0,0,0,0);for(var o=new Date(t.getFullYear(),t.getMonth()+1,1),r=[],c=new Date(e.getFullYear(),e.getMonth(),1),s=me(e,t,n);c0),(e.format||e.selected)&&n("formattedSelected",C="function"==typeof s?s(l):tt(l,s))},{popover:o,format:s,start:i,end:a,selected:l,dateChosen:d,trigger:u,selectableCallback:h,daysOfWeek:p,monthsOfYear:f,highlighted:m,shouldShakeDate:v,month:w,year:y,isOpen:b,isClosing:k,formattedSelected:C,changeMonth:D,incrementMonth:x,registerSelection:O,registerClose:P,registerOpen:function(){n("highlighted",m=new Date(l)),n("month",w=l.getMonth()),n("year",y=l.getFullYear()),document.addEventListener("keydown",_),r("open")},buttonBackgroundColor:T,buttonBorderColor:W,buttonTextColor:Y,highlightColor:H,dayBackgroundColor:I,dayTextColor:j,dayHighlightedBackgroundColor:F,dayHighlightedTextColor:N,visibleMonth:X,visibleMonthId:U,canIncrementMonth:V,canDecrementMonth:Q,monthSelected_handler:function(e){return D(e.detail)},incrementMonth_handler:function(e){return x(e.detail)},dateSelected_handler:function(e){return O(e.detail)},popover_1_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},popover_1_open_binding:function(e){n("isOpen",b=e)},popover_1_shrink_binding:function(e){n("isClosing",k=e)},$$slots:q,$$scope:Z}}var pt=function(e){function t(t){e.call(this,t),he(this,t,ht,ut,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","daysOfWeek","monthsOfYear","formattedSelected","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.formattedSelected||"formattedSelected"in o||console.warn(" was created without expected prop 'formattedSelected'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={format:{configurable:!0},start:{configurable:!0},end:{configurable:!0},selected:{configurable:!0},dateChosen:{configurable:!0},trigger:{configurable:!0},selectableCallback:{configurable:!0},daysOfWeek:{configurable:!0},monthsOfYear:{configurable:!0},formattedSelected:{configurable:!0},buttonBackgroundColor:{configurable:!0},buttonBorderColor:{configurable:!0},buttonTextColor:{configurable:!0},highlightColor:{configurable:!0},dayBackgroundColor:{configurable:!0},dayTextColor:{configurable:!0},dayHighlightedBackgroundColor:{configurable:!0},dayHighlightedTextColor:{configurable:!0}};return n.format.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.format.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.daysOfWeek.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.daysOfWeek.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),ft="src\\App.svelte";function gt(e){var t;return{c:function(){t=S("Pick a date")},m:function(e,n){C(e,t,n)},p:n,d:function(e){e&&D(t)}}}function mt(e){var t,n;return{c:function(){t=S("Chosen: "),n=S(e.formattedSelected)},m:function(e,o){C(e,t,o),C(e,n,o)},p:function(e,t){e.formattedSelected&&P(n,t.formattedSelected)},d:function(e){e&&(D(t),D(n))}}}function vt(e){var t;function n(e){return e.dateChosen?mt:gt}var o=n(e),r=o(e);return{c:function(){t=M("button"),r.c(),_(t,"class","custom-button svelte-6e0kyu"),c(t,ft,78,3,2431)},m:function(e,n){C(e,t,n),r.m(t,null)},p:function(e,c){o===(o=n(c))&&r?r.p(e,c):(r.d(1),(r=o(c))&&(r.c(),r.m(t,null)))},d:function(e){e&&D(t),r.d()}}}function wt(e){var t;return{c:function(){t=S("Custom Button")},m:function(e,n){C(e,t,n)},p:n,d:function(e){e&&D(t)}}}function yt(e){var t;return{c:function(){t=S(e.exampleFormatted)},m:function(e,n){C(e,t,n)},p:function(e,n){e.exampleFormatted&&P(t,n.exampleFormatted)},d:function(e){e&&D(t)}}}function bt(e){var t;function n(e){return e.exampleChosen?yt:wt}var o=n(e),r=o(e);return{c:function(){t=M("button"),r.c(),_(t,"id","test"),c(t,ft,105,3,3175)},m:function(e,n){C(e,t,n),r.m(t,null)},p:function(e,c){o===(o=n(c))&&r?r.p(e,c):(r.d(1),(r=o(c))&&(r.c(),r.m(t,null)))},d:function(e){e&&D(t),r.d()}}}function kt(e){var t,n,o,r,s,i,a,l,d,u,h,p,f,g,m,v,w,y,b,k,x,O,P,B,T,W,Y,H,I,j,F,N,A,J,L,q,R,X,U,K,G,V,Z,ee,te,ne,oe,re,ie,ae,he,pe,fe,ge,me,ve,we,ye,be,ke,$e,Ce,De,xe,Me,Se,Ee,Oe,_e,Pe,Be,Te,We,Ye,He,Ie=new pt({props:{format:$t},$$inline:!0});function je(t){e.datepicker1_formattedSelected_binding.call(null,t),L=!0,Q(function(){return L=!1})}function Fe(t){e.datepicker1_dateChosen_binding.call(null,t),q=!0,Q(function(){return q=!1})}var Ne={format:$t,$$slots:{default:[vt]},$$scope:{ctx:e}};void 0!==e.formattedSelected&&(Ne.formattedSelected=e.formattedSelected),void 0!==e.dateChosen&&(Ne.dateChosen=e.dateChosen);var Ae=new pt({props:Ne,$$inline:!0});function Je(t){e.datepicker2_formattedSelected_binding.call(null,t),ie=!0,Q(function(){return ie=!1})}function Le(t){e.datepicker2_dateChosen_binding.call(null,t),ae=!0,Q(function(){return ae=!1})}z.push(function(){return le(Ae,"formattedSelected",je)}),z.push(function(){return le(Ae,"dateChosen",Fe)});var qe={$$slots:{default:[bt]},$$scope:{ctx:e}};void 0!==e.exampleFormatted&&(qe.formattedSelected=e.exampleFormatted),void 0!==e.exampleChosen&&(qe.dateChosen=e.exampleChosen);var ze=new pt({props:qe,$$inline:!0});z.push(function(){return le(ze,"formattedSelected",Je)}),z.push(function(){return le(ze,"dateChosen",Le)});var Re=new pt({props:{format:$t,start:e.threeDaysInPast,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback},$$inline:!0}),Xe=new pt({props:{format:$t,start:e.tomorrow,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback},$$inline:!0}),Ue=new pt({props:{format:$t},$$inline:!0});Ue.$on("dateSelected",e.dateSelected_handler);var Ke=new pt({props:{format:$t,buttonBackgroundColor:"#e20074",buttonTextColor:"white",highlightColor:"#e20074",dayBackgroundColor:"#efefef",dayTextColor:"#333",dayHighlightedBackgroundColor:"#e20074",dayHighlightedTextColor:"#fff"},$$inline:!0});return{c:function(){(t=M("h1")).textContent="SvelteCalendar",n=E(),o=M("div"),(r=M("p")).textContent="A lightweight date picker written with Svelte. Here is an example:",s=E(),Ie.$$.fragment.c(),i=E(),(a=M("p")).textContent="This component can be used with or without the Svelte compiler.",l=E(),d=M("ul"),(u=M("li")).textContent="Lightweight (~8KB)",h=E(),(p=M("li")).textContent="IE11+ Compatible",f=E(),(g=M("li")).textContent="Usable as a Svelte component",m=E(),(v=M("li")).textContent="Usable with Vanilla JS / ",w=E(),(y=M("li")).textContent="Can be compiled to a native web component / custom element",b=E(),(k=M("li")).textContent="Mobile/thumb friendly",x=E(),(O=M("li")).textContent="Keyboard navigation (arrows, pgup/pgdown, tab, esc)",P=E(),(B=M("p")).textContent="Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:",T=E(),(W=M("h4")).textContent="With Svelte:",Y=E(),H=M("pre"),I=M("code"),j=S("\r\n \r\n"),A=E(),J=M("div"),Ae.$$.fragment.c(),R=E(),(X=M("h4")).textContent="Without Svelte HTML:",U=E(),K=M("pre"),(G=M("code")).textContent="
\r\n \r\n
",V=E(),(Z=M("h4")).textContent="Without Svelte JS:",ee=E(),te=M("pre"),(ne=M("code")).textContent="var trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n target: document.querySelector('.button-container'),\r\n anchor: trigger, \r\n props: {\r\n trigger: trigger\r\n }\r\n});",oe=E(),re=M("div"),ze.$$.fragment.c(),he=E(),(pe=M("p")).textContent="You can confine the date selection range with start and end:",fe=E(),ge=M("div"),Re.$$.fragment.c(),me=E(),(ve=M("p")).textContent="Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.",we=E(),(ye=M("p")).textContent="You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).",be=E(),ke=M("div"),Xe.$$.fragment.c(),$e=E(),(Ce=M("p")).textContent="You can bind to the `dateSelected` event, which has a data property `date`:",De=E(),xe=M("div"),Ue.$$.fragment.c(),Me=E(),(Se=M("p")).textContent="You can theme the datepicker:",Ee=E(),Oe=M("div"),Ke.$$.fragment.c(),_e=E(),Pe=M("pre"),Be=M("code"),Te=S(""),_(t,"class","svelte-6e0kyu"),c(t,ft,47,0,1034),c(r,ft,49,1,1085),c(a,ft,54,1,1273),c(u,ft,56,2,1354),c(p,ft,57,2,1385),c(g,ft,58,2,1414),c(v,ft,59,2,1455),c(y,ft,60,2,1520),c(k,ft,61,2,1591),c(O,ft,62,2,1625),c(d,ft,55,1,1346),c(B,ft,65,1,1698),c(W,ft,67,1,2002),_(I,"class","html"),c(I,ft,68,6,2031),c(H,ft,68,1,2026),_(J,"class","text-center svelte-6e0kyu"),c(J,ft,76,1,2326),c(X,ft,84,1,2582),_(G,"class","html"),c(G,ft,85,6,2619),c(K,ft,85,1,2614),c(Z,ft,91,1,2770),_(ne,"class","js"),c(ne,ft,92,6,2805),c(te,ft,92,1,2800),_(re,"class","text-center svelte-6e0kyu"),c(re,ft,103,1,3055),c(pe,ft,111,1,3311),_(ge,"class","text-center svelte-6e0kyu"),c(ge,ft,113,1,3383),_(ve,"class","note svelte-6e0kyu"),c(ve,ft,117,1,3553),c(ye,ft,119,1,3714),_(ke,"class","text-center svelte-6e0kyu"),c(ke,ft,121,1,3974),c(Ce,ft,125,1,4137),_(xe,"class","text-center svelte-6e0kyu"),c(xe,ft,127,1,4225),c(Se,ft,131,1,4350),c(Oe,ft,132,1,4389),_(Be,"class","html"),c(Be,ft,144,6,4687),c(Pe,ft,144,1,4682),_(o,"class","container svelte-6e0kyu"),c(o,ft,48,0,1059)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,c){C(e,t,c),C(e,n,c),C(e,o,c),$(o,r),$(o,s),de(Ie,o,null),$(o,i),$(o,a),$(o,l),$(o,d),$(d,u),$(d,h),$(d,p),$(d,f),$(d,g),$(d,m),$(d,v),$(d,w),$(d,y),$(d,b),$(d,k),$(d,x),$(d,O),$(o,P),$(o,B),$(o,T),$(o,W),$(o,Y),$(o,H),$(H,I),$(I,j),$(I,F),$(I,N),$(o,A),$(o,J),de(Ae,J,null),$(o,R),$(o,X),$(o,U),$(o,K),$(K,G),$(o,V),$(o,Z),$(o,ee),$(o,te),$(te,ne),$(o,oe),$(o,re),de(ze,re,null),$(o,he),$(o,pe),$(o,fe),$(o,ge),de(Re,ge,null),$(o,me),$(o,ve),$(o,we),$(o,ye),$(o,be),$(o,ke),de(Xe,ke,null),$(o,$e),$(o,Ce),$(o,De),$(o,xe),de(Ue,xe,null),$(o,Me),$(o,Se),$(o,Ee),$(o,Oe),de(Ke,Oe,null),$(o,_e),$(o,Pe),$(Pe,Be),$(Be,Te),$(Be,We),$(Be,Ye),He=!0},p:function(e,t){var n={};e.dateFormat&&(n.format=$t),Ie.$set(n);var o={};e.dateFormat&&(o.format=$t),(e.$$scope||e.dateChosen||e.formattedSelected)&&(o.$$scope={changed:e,ctx:t}),!L&&e.formattedSelected&&(o.formattedSelected=t.formattedSelected),!q&&e.dateChosen&&(o.dateChosen=t.dateChosen),Ae.$set(o);var r={};(e.$$scope||e.exampleChosen||e.exampleFormatted)&&(r.$$scope={changed:e,ctx:t}),!ie&&e.exampleFormatted&&(r.formattedSelected=t.exampleFormatted),!ae&&e.exampleChosen&&(r.dateChosen=t.exampleChosen),ze.$set(r);var c={};e.dateFormat&&(c.format=$t),e.threeDaysInPast&&(c.start=t.threeDaysInPast),e.inThirtyDays&&(c.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(c.selectableCallback=t.noWeekendsSelectableCallback),Re.$set(c);var s={};e.dateFormat&&(s.format=$t),e.tomorrow&&(s.start=t.tomorrow),e.inThirtyDays&&(s.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(s.selectableCallback=t.noWeekendsSelectableCallback),Xe.$set(s);var i={};e.dateFormat&&(i.format=$t),Ue.$set(i);var a={};e.dateFormat&&(a.format=$t),Ke.$set(a)},i:function(e){He||(ce(Ie.$$.fragment,e),ce(Ae.$$.fragment,e),ce(ze.$$.fragment,e),ce(Re.$$.fragment,e),ce(Xe.$$.fragment,e),ce(Ue.$$.fragment,e),ce(Ke.$$.fragment,e),He=!0)},o:function(e){se(Ie.$$.fragment,e),se(Ae.$$.fragment,e),se(ze.$$.fragment,e),se(Re.$$.fragment,e),se(Xe.$$.fragment,e),se(Ue.$$.fragment,e),se(Ke.$$.fragment,e),He=!1},d:function(e){e&&(D(t),D(n),D(o)),ue(Ie),ue(Ae),ue(ze),ue(Re),ue(Xe),ue(Ue),ue(Ke)}}}var $t="#{l}, #{F} #{j}, #{Y}";function Ct(e,t,n){var o,r,c,s,i=new Date,a=new Date,l=!1,d=!1,u=!1;A(function(){hljs.initHighlightingOnLoad()}),e.$$.update=function(e){if(void 0===e&&(e={start:1}),e.start&&new Date(a.getTime()+62208e6),e.start){var t=new Date(a);t.setDate(t.getDate()+30),n("inThirtyDays",s=t)}};var h=new Date(i);h.setDate(h.getDate()-3),n("threeDaysInPast",r=h);var p=new Date(i);return p.setDate(p.getDate()+1),n("tomorrow",c=p),{noWeekendsSelectableCallback:function(e){return 0!==e.getDay()&&6!==e.getDay()},formattedSelected:o,dateChosen:l,exampleFormatted:d,exampleChosen:u,threeDaysInPast:r,tomorrow:c,inThirtyDays:s,datepicker1_formattedSelected_binding:function(e){n("formattedSelected",o=e)},datepicker1_dateChosen_binding:function(e){n("dateChosen",l=e)},datepicker2_formattedSelected_binding:function(e){n("exampleFormatted",d=e)},datepicker2_dateChosen_binding:function(e){n("exampleChosen",u=e)},dateSelected_handler:function(e){return function(e){console.log("User chose "+e+".")}(e.detail.date)}}}var Dt=function(e){function t(t){e.call(this,t),he(this,t,Ct,kt,d,[])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(fe);return t(),new Dt({target:document.body,data:{}})}(); //# sourceMappingURL=test.js.map diff --git a/docs/test.js.map b/docs/test.js.map index 9d849ee..7f9cee9 100644 --- a/docs/test.js.map +++ b/docs/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sources":["../node_modules/es6-object-assign/index.js","../node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../src/Components/Week.svelte","../src/Components/Month.svelte","../src/Components/lib/dictionaries.js","../src/Components/NavBar.svelte","../src/Components/Popover.svelte","../node_modules/timeUtils/dist/timeUtils.esm.js","../src/Components/lib/keyCodes.js","../src/Components/Datepicker.svelte","../src/App.svelte","../src/test.js"],"sourcesContent":["/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))\n : ctx.$$scope.ctx;\n}\nfunction get_slot_changes(definition, ctx, changed, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))\n : ctx.$$scope.changed || {};\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nlet running = false;\nfunction run_tasks() {\n tasks.forEach(task => {\n if (!task[0](now())) {\n tasks.delete(task);\n task[1]();\n }\n });\n running = tasks.size > 0;\n if (running)\n raf(run_tasks);\n}\nfunction clear_loops() {\n // for testing...\n tasks.forEach(task => tasks.delete(task));\n running = false;\n}\nfunction loop(fn) {\n let task;\n if (!running) {\n running = true;\n raf(run_tasks);\n }\n return {\n promise: new Promise(fulfil => {\n tasks.add(task = [fn, fulfil]);\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction detach_between(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction detach_before(after) {\n while (after.previousSibling) {\n after.parentNode.removeChild(after.previousSibling);\n }\n}\nfunction detach_after(before) {\n while (before.nextSibling) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction object_without_properties(obj, exclude) {\n // eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion\n const target = {};\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n for (const key in attributes) {\n if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key in node) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value) {\n node.style.setProperty(key, value);\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = current_component;\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment) {\n $$.update($$.dirty);\n run_all($$.before_update);\n $$.fragment.p($$.dirty, $$.ctx);\n $$.dirty = null;\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = key && { [key]: value };\n const child_ctx = assign(assign({}, info.ctx), info.resolved);\n const block = type && (info.current = type)(child_ctx);\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n flush();\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n }\n if (is_promise(promise)) {\n promise.then(value => {\n update(info.then, 1, info.value, value);\n }, error => {\n update(info.catch, 2, info.error, error);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = { [info.value]: promise };\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(changed, child_ctx);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args) {\n const attributes = Object.assign({}, ...args);\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === undefined)\n return;\n if (value === true)\n str += \" \" + name;\n const escaped = String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n str += \" \" + name + \"=\" + JSON.stringify(escaped);\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n if (component.$$.props.indexOf(name) === -1)\n return;\n component.$$.bound[name] = callback;\n callback(component.$$.ctx[name]);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n if (component.$$.fragment) {\n run_all(component.$$.on_destroy);\n component.$$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n component.$$.on_destroy = component.$$.fragment = null;\n component.$$.ctx = {};\n }\n}\nfunction make_dirty(component, key) {\n if (!component.$$.dirty) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty = blank_object();\n }\n component.$$.dirty[key] = true;\n}\nfunction init(component, options, instance, create_fragment, not_equal, prop_names) {\n const parent_component = current_component;\n set_current_component(component);\n const props = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props: prop_names,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty: null\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, props, (key, value) => {\n if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {\n if ($$.bound[key])\n $$.bound[key](value);\n if (ready)\n make_dirty(component, key);\n }\n })\n : props;\n $$.update();\n ready = true;\n run_all($$.before_update);\n $$.fragment = create_fragment($$.ctx);\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement !== 'undefined') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\n\nexport { SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, assign, attr, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_element, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, debug, destroy_block, destroy_component, destroy_each, detach, detach_after, detach_before, detach_between, dirty_components, each, element, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_slot_changes, get_slot_context, get_spread_update, get_store_value, globals, group_outros, handle_promise, identity, init, insert, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, loop, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_input_type, set_now, set_raf, set_style, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","const getCalendarPage = (month, year, dayProps) => {\n let date = new Date(year, month, 1);\n date.setDate(date.getDate() - date.getDay());\n let nextMonth = month === 11 ? 0 : month + 1;\n // ensure days starts on Sunday\n // and end on saturday\n let weeks = [];\n while (date.getMonth() !== nextMonth || date.getDay() !== 0 || weeks.length !== 6) {\n if (date.getDay() === 0) weeks.unshift({ days: [], id: `${year}${month}${year}${weeks.length}` });\n const updated = Object.assign({\n partOfMonth: date.getMonth() === month,\n date: new Date(date)\n }, dayProps(date));\n weeks[0].days.push(updated);\n date.setDate(date.getDate() + 1);\n }\n weeks.reverse();\n return { month, year, weeks };\n};\n\nconst getDayPropsHandler = (start, end, selectableCallback) => {\n let today = new Date();\n today.setHours(0, 0, 0, 0);\n return date => ({\n selectable: date >= start && date <= end\n && (!selectableCallback || selectableCallback(date)),\n isToday: date.getTime() === today.getTime()\n });\n};\n\nexport function getMonths(start, end, selectableCallback = null) {\n start.setHours(0, 0, 0, 0);\n end.setHours(0, 0, 0, 0);\n let endDate = new Date(end.getFullYear(), end.getMonth() + 1, 1);\n let months = [];\n let date = new Date(start.getFullYear(), start.getMonth(), 1);\n let dayPropsHandler = getDayPropsHandler(start, end, selectableCallback);\n while (date < endDate) {\n months.push(getCalendarPage(date.getMonth(), date.getFullYear(), dayPropsHandler));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n}\n\nexport const areDatesEquivalent = (a, b) => a.getDate() === b.getDate()\n && a.getMonth() === b.getMonth()\n && a.getFullYear() === b.getFullYear();\n","export { identity as linear } from '../internal';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicOut, cubicInOut } from '../easing';\nimport { is_function, assign } from '../internal';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction fade(node, { delay = 0, duration = 400 }) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut }) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => `overflow: hidden;` +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut }) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { crossfade, draw, fade, fly, scale, slide };\n","\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n","\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n","export const monthDict = [\n { name: 'January', abbrev: 'Jan' },\n { name: 'February', abbrev: 'Feb' },\n { name: 'March', abbrev: 'Mar' },\n { name: 'April', abbrev: 'Apr' },\n { name: 'May', abbrev: 'May' },\n { name: 'June', abbrev: 'Jun' },\n { name: 'July', abbrev: 'Jul' },\n { name: 'August', abbrev: 'Aug' },\n { name: 'September', abbrev: 'Sep' },\n { name: 'October', abbrev: 'Oct' },\n { name: 'November', abbrev: 'Nov' },\n { name: 'December', abbrev: 'Dec' }\n];\n\nexport const dayDict = [\n { name: 'Sunday', abbrev: 'Sun' },\n { name: 'Monday', abbrev: 'Mon' },\n { name: 'Tuesday', abbrev: 'Tue' },\n { name: 'Wednesday', abbrev: 'Wed' },\n { name: 'Thursday', abbrev: 'Thu' },\n { name: 'Friday', abbrev: 'Fri' },\n { name: 'Saturday', abbrev: 'Sat' }\n];\n","\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthDict[month].name} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n","\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n","/**\n * generic function to inject data into token-laden string\n * @param str {String} Required\n * @param name {String} Required\n * @param value {String|Integer} Required\n * @returns {String}\n *\n * @example\n * injectStringData(\"The following is a token: #{tokenName}\", \"tokenName\", 123); \n * @returns {String} \"The following is a token: 123\"\n *\n */\nconst injectStringData = (str,name,value) => str\n .replace(new RegExp('#{'+name+'}','g'), value);\n\n/**\n * Generic function to enforce length of string. \n * \n * Pass a string or number to this function and specify the desired length.\n * This function will either pad the # with leading 0's (if str.length < length)\n * or remove data from the end (@fromBack==false) or beginning (@fromBack==true)\n * of the string when str.length > length.\n *\n * When length == str.length or typeof length == 'undefined', this function\n * returns the original @str parameter.\n * \n * @param str {String} Required\n * @param length {Integer} Required\n * @param fromBack {Boolean} Optional\n * @returns {String}\n *\n */\nconst enforceLength = function(str,length,fromBack) {\n str = str.toString();\n if(typeof length == 'undefined') return str;\n if(str.length == length) return str;\n fromBack = (typeof fromBack == 'undefined') ? false : fromBack;\n if(str.length < length) {\n // pad the beginning of the string w/ enough 0's to reach desired length:\n while(length - str.length > 0) str = '0' + str;\n } else if(str.length > length) {\n if(fromBack) {\n // grab the desired #/chars from end of string: ex: '2015' -> '15'\n str = str.substring(str.length-length);\n } else {\n // grab the desired #/chars from beginning of string: ex: '2015' -> '20'\n str = str.substring(0,length);\n }\n }\n return str;\n};\n\nconst daysOfWeek = [ \n 'Sunday', \n 'Monday', \n 'Tuesday', \n 'Wednesday', \n 'Thursday', \n 'Friday', \n 'Saturday' \n];\n\nconst monthsOfYear = [ \n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n];\n\nlet dictionary = { \n daysOfWeek, \n monthsOfYear\n};\n\nconst extendDictionary = (conf) => \n Object.keys(conf).forEach(key => {\n if(dictionary[key] && dictionary[key].length == conf[key].length) {\n dictionary[key] = conf[key];\n }\n });\n\nconst resetDictionary = () => extendDictionary({daysOfWeek,monthsOfYear});\n\nvar acceptedDateTokens = [\n { \n // d: day of the month, 2 digits with leading zeros:\n key: 'd', \n method: function(date) { return enforceLength(date.getDate(), 2); } \n }, { \n // D: textual representation of day, 3 letters: Sun thru Sat\n key: 'D', \n method: function(date) { return enforceLength(dictionary.daysOfWeek[date.getDay()],3); } \n }, { \n // j: day of month without leading 0's\n key: 'j', \n method: function(date) { return date.getDate(); } \n }, { \n // l: full textual representation of day of week: Sunday thru Saturday\n key: 'l', \n method: function(date) { return dictionary.daysOfWeek[date.getDay()]; } \n }, { \n // F: full text month: 'January' thru 'December'\n key: 'F', \n method: function(date) { return dictionary.monthsOfYear[date.getMonth()]; } \n }, { \n // m: 2 digit numeric month: '01' - '12':\n key: 'm', \n method: function(date) { return enforceLength(date.getMonth()+1,2); } \n }, { \n // M: a short textual representation of the month, 3 letters: 'Jan' - 'Dec'\n key: 'M', \n method: function(date) { return enforceLength(dictionary.monthsOfYear[date.getMonth()],3); } \n }, { \n // n: numeric represetation of month w/o leading 0's, '1' - '12':\n key: 'n', \n method: function(date) { return date.getMonth() + 1; } \n }, { \n // Y: Full numeric year, 4 digits\n key: 'Y', \n method: function(date) { return date.getFullYear(); } \n }, { \n // y: 2 digit numeric year:\n key: 'y', \n method: function(date) { return enforceLength(date.getFullYear(),2,true); }\n }\n];\n\nvar acceptedTimeTokens = [\n { \n // a: lowercase ante meridiem and post meridiem 'am' or 'pm'\n key: 'a', \n method: function(date) { return (date.getHours() > 11) ? 'pm' : 'am'; } \n }, { \n // A: uppercase ante merdiiem and post meridiem 'AM' or 'PM'\n key: 'A', \n method: function(date) { return (date.getHours() > 11) ? 'PM' : 'AM'; } \n }, { \n // g: 12-hour format of an hour without leading zeros 1-12\n key: 'g', \n method: function(date) { return date.getHours() % 12 || 12; } \n }, { \n // G: 24-hour format of an hour without leading zeros 0-23\n key: 'G', \n method: function(date) { return date.getHours(); } \n }, { \n // h: 12-hour format of an hour with leading zeros 01-12\n key: 'h', \n method: function(date) { return enforceLength(date.getHours()%12 || 12,2); } \n }, { \n // H: 24-hour format of an hour with leading zeros: 00-23\n key: 'H', \n method: function(date) { return enforceLength(date.getHours(),2); } \n }, { \n // i: Minutes with leading zeros 00-59\n key: 'i', \n method: function(date) { return enforceLength(date.getMinutes(),2); } \n }, { \n // s: Seconds with leading zeros 00-59\n key: 's', \n method: function(date) { return enforceLength(date.getSeconds(),2); }\n }\n];\n\n/**\n * Internationalization object for timeUtils.internationalize().\n * @typedef internationalizeObj\n * @property {Array} [daysOfWeek=[ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]] daysOfWeek Weekday labels as strings, starting with Sunday.\n * @property {Array} [monthsOfYear=[ 'January','February','March','April','May','June','July','August','September','October','November','December' ]] monthsOfYear Month labels as strings, starting with January.\n */\n\n/**\n * This function can be used to support additional languages by passing an object with \n * `daysOfWeek` and `monthsOfYear` attributes. Each attribute should be an array of\n * strings (ex: `daysOfWeek: ['monday', 'tuesday', 'wednesday'...]`)\n *\n * @param {internationalizeObj} conf\n */\nconst internationalize = (conf={}) => { \n extendDictionary(conf);\n};\n\n/**\n * generic formatDate function which accepts dynamic templates\n * @param date {Date} Required\n * @param template {String} Optional\n * @returns {String}\n *\n * @example\n * formatDate(new Date(), '#{M}. #{j}, #{Y}')\n * @returns {Number} Returns a formatted date\n *\n */\nconst formatDate = (date,template='#{m}/#{d}/#{Y}') => {\n acceptedDateTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return; \n template = injectStringData(template,token.key,token.method(date));\n }); \n acceptedTimeTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return;\n template = injectStringData(template,token.key,token.method(date));\n });\n return template;\n};\n\n/**\n * Small function for resetting language to English (used in testing).\n */\nconst resetInternationalization = () => resetDictionary();\n\nexport { internationalize, formatDate, resetInternationalization };\n","export const keyCodes = {\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n pgup: 33,\n pgdown: 34,\n enter: 13,\n escape: 27,\n tab: 9\n};\n\nexport const keyCodesArray = Object.keys(keyCodes).map(k => keyCodes[k]);\n","\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} />\n
\n {#each dayDict as day}\n {day.abbrev}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n","\r\n\r\n

SvelteCalendar

\r\n
\r\n\t

A lightweight date picker written with Svelte. Here is an example:

\r\n\r\n\t\r\n\t\r\n\r\n\t

This component can be used with or without the Svelte compiler.

\r\n\t
    \r\n\t\t
  • Lightweight (~8KB)
  • \r\n\t\t
  • IE11+ Compatible
  • \r\n\t\t
  • Usable as a Svelte component
  • \r\n\t\t
  • Usable with Vanilla JS / <Your Framework Here>
  • \r\n\t\t
  • Can be compiled to a native web component / custom element
  • \r\n\t\t
  • Mobile/thumb friendly
  • \r\n\t\t
  • Keyboard navigation (arrows, pgup/pgdown, tab, esc)
  • \r\n\t
\r\n\r\n\t

Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:

\r\n\r\n\t

With Svelte:

\r\n\t
\r\n<Datepicker format={dateFormat} bind:formattedSelected bind:dateChosen>\r\n  <button class='custom-button'>\r\n    {#if dateChosen} Chosen: {formattedSelected} {:else} Pick a date {/if}\r\n  </button>\r\n</Datepicker>\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t

Without Svelte HTML:

\r\n\t
\r\n<div class='button-container'>\r\n  <button id='test'>My Custom Button</button>\r\n</div>\r\n\t
\r\n\r\n\t

Without Svelte JS:

\r\n\t
\r\nvar trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n  target: document.querySelector('.button-container'),\r\n  anchor: trigger, \r\n  props: {\r\n    trigger: trigger\r\n  }\r\n});\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t

You can confine the date selection range with start and end:

\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t

Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.

\r\n\r\n\t

You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).

\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t

You can bind to the `dateSelected` event, which has a data property `date`:

\r\n\t\r\n\t
\r\n\t\t logChoice(e.detail.date)} />\r\n\t
\r\n\r\n\t

You can theme the datepicker:

\r\n\t
\r\n\t\t\r\n\t
\r\n\t
\r\n<Datepicker \r\n  format={dateFormat} \r\n  buttonBackgroundColor='#e20074'\r\n  buttonTextColor='white'\r\n  highlightColor='#e20074'\r\n  dayBackgroundColor='#efefef'\r\n  dayTextColor='#333'\r\n  dayHighlightedBackgroundColor='#e20074'\r\n  dayHighlightedTextColor='#fff'\r\n/>\r\n\t
\r\n
\r\n\r\n\r\n","import { polyfill } from 'es6-object-assign';\npolyfill();\nimport App from './App.svelte';\n\nconst app = new App({\n target: document.body,\n data: {}\n});\n\nexport default app;\n"],"names":["assign","target","firstSource","TypeError","to","Object","i","arguments","length","nextSource","keysArray","keys","nextIndex","len","nextKey","desc","getOwnPropertyDescriptor","undefined","enumerable","defineProperty","configurable","writable","value","noop","const","identity","x","tar","src","k","add_location","element","file","line","column","char","__svelte_meta","loc","run","fn","blank_object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","slot_ctx","get_slot_context","$$scope","get_slot_changes","changed","stylesheet","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","running","run_tasks","task","delete","size","loop","let","promise","Promise","fulfil","add","abort","append","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","setAttribute","set_data","set_style","key","style","setProperty","toggle_class","toggle","classList","custom_event","type","detail","e","createEvent","initCustomEvent","current_component","active","current_rules","create_rule","duration","delay","ease","uid","step","keyframes","p","t","rule","str","hash","charCodeAt","head","sheet","insertRule","cssRules","animation","delete_rule","split","filter","anim","indexOf","join","deleteRule","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","push","createEventDispatcher","callbacks","slice","call","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","schedule_update","then","flush","add_render_callback","add_flush_callback","seen_callbacks","shift","update","pop","callback","has","fragment","dirty","before_update","after_update","wait","dispatch","direction","kind","dispatchEvent","outros","outroing","transition_in","block","local","transition_out","o","c","globals","global","outro_and_destroy_block","lookup","bind","props","bound","mount_component","m","new_on_destroy","map","on_destroy","destroy_component","init","instance","create_fragment","not_equal","prop_names","parent_component","context","Map","ready","make_dirty","hydrate","l","Array","from","childNodes","children","intro","SvelteComponent","$destroy","this","$on","index","splice","$set","SvelteComponentDev","$$inline","super","console","warn","getCalendarPage","month","year","dayProps","date","setDate","getDate","getDay","nextMonth","weeks","getMonth","unshift","days","id","updated","partOfMonth","reverse","getDayPropsHandler","start","end","selectableCallback","today","setHours","selectable","isToday","getTime","areDatesEquivalent","getFullYear","cubicOut","f","fade","ref","getComputedStyle","opacity","css","fly","target_opacity","transform","od","easing","u","y","day","selected","highlighted","shouldShakeDate","click_handler","params","animation_name","config","cleanup","go","tick","start_time","end_time","started","invalidate","group","r","reset","week","visibleMonth","old_blocks","get_key","dynamic","list","destroy","create_each_block","next","get_context","n","old_indexes","new_blocks","new_lookup","deltas","child_ctx","get","set","Math","abs","will_move","did_move","first","new_block","old_block","new_key","old_key","lastId","monthDict","abbrev","dayDict","monthDefinition","click_handler_2","availableMonths","canDecrementMonth","canIncrementMonth","monthSelectorOpen","toggleMonthSelectorOpen","monthSelected","stopPropagation","isOnLowerBoundary","isOnUpperBoundary","translateX","translateY","open","shrink","doOpen","popover","w","triggerContainer","contentsAnimated","contentsWrapper","close","el","evt","apply","checkForFocusLoss","trigger","getDistanceToEdges","async","rect","getBoundingClientRect","top","bottom","innerHeight","left","right","body","clientWidth","dist","getTranslate","injectStringData","replace","RegExp","enforceLength","fromBack","toString","substring","dictionary","acceptedDateTokens","method","daysOfWeek","monthsOfYear","acceptedTimeTokens","getHours","getMinutes","getSeconds","formatDate","template","token","keyCodes","up","down","pgup","pgdown","enter","escape","tab","keyCodesArray","formattedSelected","visibleMonthId","isOpen","isClosing","registerOpen","registerClose","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor","shakeHighlightTimeout","monthIndex","changeMonth","selectedMonth","incrementMonth","current","setMonth","incrementDayHighlighted","amount","lastVisibleDate","firstVisibleDate","checkIfVisibleDateIsSelectable","j","assignValueToTrigger","formatted","innerHTML","assignmentHandler","registerSelection","chosen","dateChosen","clearTimeout","setTimeout","handleKeyPress","keyCode","preventDefault","months","endDate","dayPropsHandler","getMonths","format","exampleFormatted","exampleChosen","dateFormat","threeDaysInPast","inThirtyDays","noWeekendsSelectableCallback","tomorrow","hljs","initHighlightingOnLoad","log","App"],"mappings":"gCAOA,SAASA,EAAOC,EAAQC,mBACtB,GAAID,MAAAA,EACF,MAAM,IAAIE,UAAU,2CAItB,IADA,IAAIC,EAAKC,OAAOJ,GACPK,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAAaF,EAAUD,GAC3B,GAAIG,MAAAA,EAKJ,IADA,IAAIC,EAAYL,OAAOM,KAAKN,OAAOI,IAC1BG,EAAY,EAAGC,EAAMH,EAAUF,OAAQI,EAAYC,EAAKD,IAAa,CAC5E,IAAIE,EAAUJ,EAAUE,GACpBG,EAAOV,OAAOW,yBAAyBP,EAAYK,QAC1CG,IAATF,GAAsBA,EAAKG,aAC7Bd,EAAGU,GAAWL,EAAWK,KAI/B,OAAOV,EAcT,MAXA,WACOC,OAAOL,QACVK,OAAOc,eAAed,OAAQ,SAAU,CACtCa,YAAY,EACZE,cAAc,EACdC,UAAU,EACVC,MAAOtB,KCrCb,SAASuB,KACTC,IAAMC,WAAWC,UAAKA,GACtB,SAAS1B,EAAO2B,EAAKC,GAEjB,IAAKJ,IAAMK,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAKX,SAASG,EAAaC,E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wM,UACtBjB,EAAKC,QAAQD,EAAKE,UAAY,gBAC9B2M,EAAW7M,0CAnBuBA,UAA2B,IAAlBA,EAAKG,UAAoC,IAAlBH,EAAKG,gcA6BzE,SAAmBH,GAEjBN,QAAQsN,kBAAkBhN,+MClCjB,IAAIiN,GAAI,CAClBtc,OAAQ8F,SAASkR,KACjB/Q,KAAM"} \ No newline at end of file +{"version":3,"file":"test.js","sources":["../node_modules/es6-object-assign/index.js","../node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../src/Components/Week.svelte","../src/Components/Month.svelte","../src/Components/NavBar.svelte","../src/Components/Popover.svelte","../node_modules/timeUtils/dist/timeUtils.esm.js","../src/Components/lib/keyCodes.js","../src/Components/Datepicker.svelte","../src/App.svelte","../src/test.js"],"sourcesContent":["/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))\n : ctx.$$scope.ctx;\n}\nfunction get_slot_changes(definition, ctx, changed, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))\n : ctx.$$scope.changed || {};\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nlet running = false;\nfunction run_tasks() {\n tasks.forEach(task => {\n if (!task[0](now())) {\n tasks.delete(task);\n task[1]();\n }\n });\n running = tasks.size > 0;\n if (running)\n raf(run_tasks);\n}\nfunction clear_loops() {\n // for testing...\n tasks.forEach(task => tasks.delete(task));\n running = false;\n}\nfunction loop(fn) {\n let task;\n if (!running) {\n running = true;\n raf(run_tasks);\n }\n return {\n promise: new Promise(fulfil => {\n tasks.add(task = [fn, fulfil]);\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction detach_between(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction detach_before(after) {\n while (after.previousSibling) {\n after.parentNode.removeChild(after.previousSibling);\n }\n}\nfunction detach_after(before) {\n while (before.nextSibling) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction object_without_properties(obj, exclude) {\n // eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion\n const target = {};\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n for (const key in attributes) {\n if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key in node) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value) {\n node.style.setProperty(key, value);\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = current_component;\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment) {\n $$.update($$.dirty);\n run_all($$.before_update);\n $$.fragment.p($$.dirty, $$.ctx);\n $$.dirty = null;\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = key && { [key]: value };\n const child_ctx = assign(assign({}, info.ctx), info.resolved);\n const block = type && (info.current = type)(child_ctx);\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n flush();\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n }\n if (is_promise(promise)) {\n promise.then(value => {\n update(info.then, 1, info.value, value);\n }, error => {\n update(info.catch, 2, info.error, error);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = { [info.value]: promise };\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(changed, child_ctx);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args) {\n const attributes = Object.assign({}, ...args);\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === undefined)\n return;\n if (value === true)\n str += \" \" + name;\n const escaped = String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n str += \" \" + name + \"=\" + JSON.stringify(escaped);\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n if (component.$$.props.indexOf(name) === -1)\n return;\n component.$$.bound[name] = callback;\n callback(component.$$.ctx[name]);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n if (component.$$.fragment) {\n run_all(component.$$.on_destroy);\n component.$$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n component.$$.on_destroy = component.$$.fragment = null;\n component.$$.ctx = {};\n }\n}\nfunction make_dirty(component, key) {\n if (!component.$$.dirty) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty = blank_object();\n }\n component.$$.dirty[key] = true;\n}\nfunction init(component, options, instance, create_fragment, not_equal, prop_names) {\n const parent_component = current_component;\n set_current_component(component);\n const props = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props: prop_names,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty: null\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, props, (key, value) => {\n if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {\n if ($$.bound[key])\n $$.bound[key](value);\n if (ready)\n make_dirty(component, key);\n }\n })\n : props;\n $$.update();\n ready = true;\n run_all($$.before_update);\n $$.fragment = create_fragment($$.ctx);\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement !== 'undefined') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\n\nexport { SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, assign, attr, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_element, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, debug, destroy_block, destroy_component, destroy_each, detach, detach_after, detach_before, detach_between, dirty_components, each, element, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_slot_changes, get_slot_context, get_spread_update, get_store_value, globals, group_outros, handle_promise, identity, init, insert, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, loop, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_input_type, set_now, set_raf, set_style, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","const getCalendarPage = (month, year, dayProps) => {\n let date = new Date(year, month, 1);\n date.setDate(date.getDate() - date.getDay());\n let nextMonth = month === 11 ? 0 : month + 1;\n // ensure days starts on Sunday\n // and end on saturday\n let weeks = [];\n while (date.getMonth() !== nextMonth || date.getDay() !== 0 || weeks.length !== 6) {\n if (date.getDay() === 0) weeks.unshift({ days: [], id: `${year}${month}${year}${weeks.length}` });\n const updated = Object.assign({\n partOfMonth: date.getMonth() === month,\n date: new Date(date)\n }, dayProps(date));\n weeks[0].days.push(updated);\n date.setDate(date.getDate() + 1);\n }\n weeks.reverse();\n return { month, year, weeks };\n};\n\nconst getDayPropsHandler = (start, end, selectableCallback) => {\n let today = new Date();\n today.setHours(0, 0, 0, 0);\n return date => ({\n selectable: date >= start && date <= end\n && (!selectableCallback || selectableCallback(date)),\n isToday: date.getTime() === today.getTime()\n });\n};\n\nexport function getMonths(start, end, selectableCallback = null) {\n start.setHours(0, 0, 0, 0);\n end.setHours(0, 0, 0, 0);\n let endDate = new Date(end.getFullYear(), end.getMonth() + 1, 1);\n let months = [];\n let date = new Date(start.getFullYear(), start.getMonth(), 1);\n let dayPropsHandler = getDayPropsHandler(start, end, selectableCallback);\n while (date < endDate) {\n months.push(getCalendarPage(date.getMonth(), date.getFullYear(), dayPropsHandler));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n}\n\nexport const areDatesEquivalent = (a, b) => a.getDate() === b.getDate()\n && a.getMonth() === b.getMonth()\n && a.getFullYear() === b.getFullYear();\n","export { identity as linear } from '../internal';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicOut, cubicInOut } from '../easing';\nimport { is_function, assign } from '../internal';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction fade(node, { delay = 0, duration = 400 }) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut }) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => `overflow: hidden;` +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut }) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { crossfade, draw, fade, fly, scale, slide };\n","\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n","\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n","\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthsOfYear[month][0]} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n","\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n","/**\r\n * generic function to inject data into token-laden string\r\n * @param str {String} Required\r\n * @param name {String} Required\r\n * @param value {String|Integer} Required\r\n * @returns {String}\r\n *\r\n * @example\r\n * injectStringData(\"The following is a token: #{tokenName}\", \"tokenName\", 123); \r\n * @returns {String} \"The following is a token: 123\"\r\n *\r\n */\r\nconst injectStringData = (str,name,value) => str\r\n .replace(new RegExp('#{'+name+'}','g'), value);\r\n\r\n/**\r\n * Generic function to enforce length of string. \r\n * \r\n * Pass a string or number to this function and specify the desired length.\r\n * This function will either pad the # with leading 0's (if str.length < length)\r\n * or remove data from the end (@fromBack==false) or beginning (@fromBack==true)\r\n * of the string when str.length > length.\r\n *\r\n * When length == str.length or typeof length == 'undefined', this function\r\n * returns the original @str parameter.\r\n * \r\n * @param str {String} Required\r\n * @param length {Integer} Required\r\n * @param fromBack {Boolean} Optional\r\n * @returns {String}\r\n *\r\n */\r\nconst enforceLength = function(str,length,fromBack) {\r\n str = str.toString();\r\n if(typeof length == 'undefined') return str;\r\n if(str.length == length) return str;\r\n fromBack = (typeof fromBack == 'undefined') ? false : fromBack;\r\n if(str.length < length) {\r\n // pad the beginning of the string w/ enough 0's to reach desired length:\r\n while(length - str.length > 0) str = '0' + str;\r\n } else if(str.length > length) {\r\n if(fromBack) {\r\n // grab the desired #/chars from end of string: ex: '2015' -> '15'\r\n str = str.substring(str.length-length);\r\n } else {\r\n // grab the desired #/chars from beginning of string: ex: '2015' -> '20'\r\n str = str.substring(0,length);\r\n }\r\n }\r\n return str;\r\n};\n\nconst daysOfWeek = [ \r\n [ 'Sunday', 'Sun' ],\r\n [ 'Monday', 'Mon' ],\r\n [ 'Tuesday', 'Tue' ],\r\n [ 'Wednesday', 'Wed' ],\r\n [ 'Thursday', 'Thu' ],\r\n [ 'Friday', 'Fri' ],\r\n [ 'Saturday', 'Sat' ]\r\n];\r\n\r\nconst monthsOfYear = [ \r\n [ 'January', 'Jan' ],\r\n [ 'February', 'Feb' ],\r\n [ 'March', 'Mar' ],\r\n [ 'April', 'Apr' ],\r\n [ 'May', 'May' ],\r\n [ 'June', 'Jun' ],\r\n [ 'July', 'Jul' ],\r\n [ 'August', 'Aug' ],\r\n [ 'September', 'Sep' ],\r\n [ 'October', 'Oct' ],\r\n [ 'November', 'Nov' ],\r\n [ 'December', 'Dec' ]\r\n];\r\n\r\nlet dictionary = { \r\n daysOfWeek, \r\n monthsOfYear\r\n};\r\n\r\nconst extendDictionary = (conf) => \r\n Object.keys(conf).forEach(key => {\r\n if(dictionary[key] && dictionary[key].length == conf[key].length) {\r\n dictionary[key] = conf[key];\r\n }\r\n });\r\n\r\nconst resetDictionary = () => extendDictionary({daysOfWeek,monthsOfYear});\n\nvar acceptedDateTokens = [\r\n { \r\n // d: day of the month, 2 digits with leading zeros:\r\n key: 'd', \r\n method: function(date) { return enforceLength(date.getDate(), 2); } \r\n }, { \r\n // D: textual representation of day, 3 letters: Sun thru Sat\r\n key: 'D', \r\n method: function(date) { return dictionary.daysOfWeek[date.getDay()][1]; } \r\n }, { \r\n // j: day of month without leading 0's\r\n key: 'j', \r\n method: function(date) { return date.getDate(); } \r\n }, { \r\n // l: full textual representation of day of week: Sunday thru Saturday\r\n key: 'l', \r\n method: function(date) { return dictionary.daysOfWeek[date.getDay()][0]; } \r\n }, { \r\n // F: full text month: 'January' thru 'December'\r\n key: 'F', \r\n method: function(date) { return dictionary.monthsOfYear[date.getMonth()][0]; } \r\n }, { \r\n // m: 2 digit numeric month: '01' - '12':\r\n key: 'm', \r\n method: function(date) { return enforceLength(date.getMonth()+1,2); } \r\n }, { \r\n // M: a short textual representation of the month, 3 letters: 'Jan' - 'Dec'\r\n key: 'M', \r\n method: function(date) { return dictionary.monthsOfYear[date.getMonth()][1]; } \r\n }, { \r\n // n: numeric represetation of month w/o leading 0's, '1' - '12':\r\n key: 'n', \r\n method: function(date) { return date.getMonth() + 1; } \r\n }, { \r\n // Y: Full numeric year, 4 digits\r\n key: 'Y', \r\n method: function(date) { return date.getFullYear(); } \r\n }, { \r\n // y: 2 digit numeric year:\r\n key: 'y', \r\n method: function(date) { return enforceLength(date.getFullYear(),2,true); }\r\n }\r\n];\r\n\r\nvar acceptedTimeTokens = [\r\n { \r\n // a: lowercase ante meridiem and post meridiem 'am' or 'pm'\r\n key: 'a', \r\n method: function(date) { return (date.getHours() > 11) ? 'pm' : 'am'; } \r\n }, { \r\n // A: uppercase ante merdiiem and post meridiem 'AM' or 'PM'\r\n key: 'A', \r\n method: function(date) { return (date.getHours() > 11) ? 'PM' : 'AM'; } \r\n }, { \r\n // g: 12-hour format of an hour without leading zeros 1-12\r\n key: 'g', \r\n method: function(date) { return date.getHours() % 12 || 12; } \r\n }, { \r\n // G: 24-hour format of an hour without leading zeros 0-23\r\n key: 'G', \r\n method: function(date) { return date.getHours(); } \r\n }, { \r\n // h: 12-hour format of an hour with leading zeros 01-12\r\n key: 'h', \r\n method: function(date) { return enforceLength(date.getHours()%12 || 12,2); } \r\n }, { \r\n // H: 24-hour format of an hour with leading zeros: 00-23\r\n key: 'H', \r\n method: function(date) { return enforceLength(date.getHours(),2); } \r\n }, { \r\n // i: Minutes with leading zeros 00-59\r\n key: 'i', \r\n method: function(date) { return enforceLength(date.getMinutes(),2); } \r\n }, { \r\n // s: Seconds with leading zeros 00-59\r\n key: 's', \r\n method: function(date) { return enforceLength(date.getSeconds(),2); }\r\n }\r\n];\r\n\r\n/**\r\n * Internationalization object for timeUtils.internationalize().\r\n * @typedef internationalizeObj\r\n * @property {Array} [daysOfWeek=[ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]] daysOfWeek Weekday labels as strings, starting with Sunday.\r\n * @property {Array} [monthsOfYear=[ 'January','February','March','April','May','June','July','August','September','October','November','December' ]] monthsOfYear Month labels as strings, starting with January.\r\n */\r\n\r\n/**\r\n * This function can be used to support additional languages by passing an object with \r\n * `daysOfWeek` and `monthsOfYear` attributes. Each attribute should be an array of\r\n * strings (ex: `daysOfWeek: ['monday', 'tuesday', 'wednesday'...]`)\r\n *\r\n * @param {internationalizeObj} conf\r\n */\r\nconst internationalize = (conf={}) => { \r\n extendDictionary(conf);\r\n};\r\n\r\n/**\r\n * generic formatDate function which accepts dynamic templates\r\n * @param date {Date} Required\r\n * @param template {String} Optional\r\n * @returns {String}\r\n *\r\n * @example\r\n * formatDate(new Date(), '#{M}. #{j}, #{Y}')\r\n * @returns {Number} Returns a formatted date\r\n *\r\n */\r\nconst formatDate = (date,template='#{m}/#{d}/#{Y}') => {\r\n acceptedDateTokens.forEach(token => {\r\n if(template.indexOf(`#{${token.key}}`) == -1) return; \r\n template = injectStringData(template,token.key,token.method(date));\r\n }); \r\n acceptedTimeTokens.forEach(token => {\r\n if(template.indexOf(`#{${token.key}}`) == -1) return;\r\n template = injectStringData(template,token.key,token.method(date));\r\n });\r\n return template;\r\n};\r\n\r\n/**\r\n * Small function for resetting language to English (used in testing).\r\n */\r\nconst resetInternationalization = () => resetDictionary();\n\nexport { internationalize, formatDate, resetInternationalization };\n","export const keyCodes = {\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n pgup: 33,\n pgdown: 34,\n enter: 13,\n escape: 27,\n tab: 9\n};\n\nexport const keyCodesArray = Object.keys(keyCodes).map(k => keyCodes[k]);\n","\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} \n />\n
\n {#each daysOfWeek as day}\n {day[1]}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n","\r\n\r\n

SvelteCalendar

\r\n
\r\n\t

A lightweight date picker written with Svelte. Here is an example:

\r\n\r\n\t\r\n\t\r\n\r\n\t

This component can be used with or without the Svelte compiler.

\r\n\t
    \r\n\t\t
  • Lightweight (~8KB)
  • \r\n\t\t
  • IE11+ Compatible
  • \r\n\t\t
  • Usable as a Svelte component
  • \r\n\t\t
  • Usable with Vanilla JS / <Your Framework Here>
  • \r\n\t\t
  • Can be compiled to a native web component / custom element
  • \r\n\t\t
  • Mobile/thumb friendly
  • \r\n\t\t
  • Keyboard navigation (arrows, pgup/pgdown, tab, esc)
  • \r\n\t
\r\n\r\n\t

Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:

\r\n\r\n\t

With Svelte:

\r\n\t
\r\n<Datepicker format={dateFormat} bind:formattedSelected bind:dateChosen>\r\n  <button class='custom-button'>\r\n    {#if dateChosen} Chosen: {formattedSelected} {:else} Pick a date {/if}\r\n  </button>\r\n</Datepicker>\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t

Without Svelte HTML:

\r\n\t
\r\n<div class='button-container'>\r\n  <button id='test'>My Custom Button</button>\r\n</div>\r\n\t
\r\n\r\n\t

Without Svelte JS:

\r\n\t
\r\nvar trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n  target: document.querySelector('.button-container'),\r\n  anchor: trigger, \r\n  props: {\r\n    trigger: trigger\r\n  }\r\n});\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t

You can confine the date selection range with start and end:

\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t

Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.

\r\n\r\n\t

You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).

\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t

You can bind to the `dateSelected` event, which has a data property `date`:

\r\n\t\r\n\t
\r\n\t\t logChoice(e.detail.date)} />\r\n\t
\r\n\r\n\t

You can theme the datepicker:

\r\n\t
\r\n\t\t\r\n\t
\r\n\t
\r\n<Datepicker \r\n  format={dateFormat} \r\n  buttonBackgroundColor='#e20074'\r\n  buttonTextColor='white'\r\n  highlightColor='#e20074'\r\n  dayBackgroundColor='#efefef'\r\n  dayTextColor='#333'\r\n  dayHighlightedBackgroundColor='#e20074'\r\n  dayHighlightedTextColor='#fff'\r\n/>\r\n\t
\r\n
\r\n\r\n\r\n","import { polyfill } from 'es6-object-assign';\npolyfill();\nimport App from './App.svelte';\n\nconst app = new App({\n target: document.body,\n data: {}\n});\n\nexport default app;\n"],"names":["assign","target","firstSource","TypeError","to","Object","i","arguments","length","nextSource","keysArray","keys","nextIndex","len","nextKey","desc","getOwnPropertyDescriptor","undefined","enumerable","defineProperty","configurable","writable","value","noop","const","identity","x","tar","src","k","add_location","element","file","line","column","char","__svelte_meta","loc","run","fn","blank_object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","slot_ctx","get_slot_context","$$scope","get_slot_changes","changed","stylesheet","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","running","run_tasks","task","delete","size","loop","let","promise","Promise","fulfil","add","abort","append","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","setAttribute","set_data","set_style","key","style","setProperty","toggle_class","toggle","classList","custom_event","type","detail","e","createEvent","initCustomEvent","current_component","active","current_rules","create_rule","duration","delay","ease","uid","step","keyframes","p","t","rule","str","hash","charCodeAt","head","sheet","insertRule","cssRules","animation","delete_rule","split","filter","anim","indexOf","join","deleteRule","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","push","createEventDispatcher","callbacks","slice","call","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","schedule_update","then","flush","add_render_callback","add_flush_callback","seen_callbacks","shift","update","pop","callback","has","fragment","dirty","before_update","after_update","wait","dispatch","direction","kind","dispatchEvent","outros","outroing","transition_in","block","local","transition_out","o","c","globals","global","outro_and_destroy_block","lookup","bind","props","bound","mount_component","m","new_on_destroy","map","on_destroy","destroy_component","init","instance","create_fragment","not_equal","prop_names","parent_component","context","Map","ready","make_dirty","hydrate","l","Array","from","childNodes","children","intro","SvelteComponent","$destroy","this","$on","index","splice","$set","SvelteComponentDev","$$inline","super","console","warn","getCalendarPage","month","year","dayProps","date","setDate","getDate","getDay","nextMonth","weeks","getMonth","unshift","days","id","updated","partOfMonth","reverse","getDayPropsHandler","start","end","selectableCallback","today","setHours","selectable","isToday","getTime","areDatesEquivalent","getFullYear","cubicOut","f","fade","ref","getComputedStyle","opacity","css","fly","target_opacity","transform","od","easing","u","y","day","selected","highlighted","shouldShakeDate","click_handler","params","animation_name","config","cleanup","go","tick","start_time","end_time","started","invalidate","group","r","reset","week","visibleMonth","old_blocks","get_key","dynamic","list","destroy","create_each_block","next","get_context","n","old_indexes","new_blocks","new_lookup","deltas","child_ctx","get","set","Math","abs","will_move","did_move","first","new_block","old_block","new_key","old_key","lastId","monthDefinition","abbrev","click_handler_2","monthsOfYear","availableMonths","canDecrementMonth","canIncrementMonth","monthSelectorOpen","toggleMonthSelectorOpen","monthSelected","stopPropagation","isOnLowerBoundary","isOnUpperBoundary","translateX","translateY","open","shrink","doOpen","popover","w","triggerContainer","contentsAnimated","contentsWrapper","close","el","evt","apply","checkForFocusLoss","trigger","getDistanceToEdges","async","rect","getBoundingClientRect","top","bottom","innerHeight","left","right","body","clientWidth","dist","getTranslate","injectStringData","replace","RegExp","enforceLength","fromBack","toString","substring","dictionary","acceptedDateTokens","method","daysOfWeek","acceptedTimeTokens","getHours","getMinutes","getSeconds","internationalize","conf","extendDictionary","formatDate","template","token","keyCodes","up","down","pgup","pgdown","enter","escape","tab","keyCodesArray","formattedSelected","visibleMonthId","isOpen","isClosing","registerOpen","registerClose","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor","shakeHighlightTimeout","monthIndex","changeMonth","selectedMonth","incrementMonth","current","setMonth","incrementDayHighlighted","amount","lastVisibleDate","firstVisibleDate","checkIfVisibleDateIsSelectable","j","assignValueToTrigger","formatted","innerHTML","assignmentHandler","registerSelection","chosen","dateChosen","clearTimeout","setTimeout","handleKeyPress","keyCode","preventDefault","months","endDate","dayPropsHandler","getMonths","format","exampleFormatted","exampleChosen","dateFormat","threeDaysInPast","inThirtyDays","noWeekendsSelectableCallback","tomorrow","hljs","initHighlightingOnLoad","log","App"],"mappings":"gCAOA,SAASA,EAAOC,EAAQC,mBACtB,GAAID,MAAAA,EACF,MAAM,IAAIE,UAAU,2CAItB,IADA,IAAIC,EAAKC,OAAOJ,GACPK,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAAaF,EAAUD,GAC3B,GAAIG,MAAAA,EAKJ,IADA,IAAIC,EAAYL,OAAOM,KAAKN,OAAOI,IAC1BG,EAAY,EAAGC,EAAMH,EAAUF,OAAQI,EAAYC,EAAKD,IAAa,CAC5E,IAAIE,EAAUJ,EAAUE,GACpBG,EAAOV,OAAOW,yBAAyBP,EAAYK,QAC1CG,IAATF,GAAsBA,EAAKG,aAC7Bd,EAAGU,GAAWL,EAAWK,KAI/B,OAAOV,EAcT,MAXA,WACOC,OAAOL,QACVK,OAAOc,eAAed,OAAQ,SAAU,CACtCa,YAAY,EACZE,cAAc,EACdC,UAAU,EACVC,MAAOtB,KCrCb,SAASuB,KACTC,IAAMC,WAAWC,UAAKA,GACtB,SAAS1B,EAAO2B,EAAKC,GAEjB,IAAKJ,IAAMK,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAKX,SAASG,EAAaC,EAASC,EAAMC,EAAMC,EAAQC,GAC/CJ,EAAQK,cAAgB,CACpBC,IAAK,MAAEL,OAAMC,SAAMC,OAAQC,IAGnC,SAASG,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOnC,OAAOoC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQN,GAEhB,SAASO,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAK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kN,GAAI,CAClBvc,OAAQ8F,SAASiR,KACjB9Q,KAAM"} \ No newline at end of file diff --git a/package.json b/package.json index 608d6b5..ec92345 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,6 @@ "test": "npm run lint" }, "dependencies": { - "timeUtils": "^1.1.5" + "timeUtils": "2.0.0" } } diff --git a/src/Components/Datepicker.svelte b/src/Components/Datepicker.svelte index 80c1f57..779ac9d 100644 --- a/src/Components/Datepicker.svelte +++ b/src/Components/Datepicker.svelte @@ -2,9 +2,8 @@ import Month from './Month.svelte'; import NavBar from './NavBar.svelte'; import Popover from './Popover.svelte'; - import { dayDict } from './lib/dictionaries'; import { getMonths, areDatesEquivalent } from './lib/helpers'; - import { formatDate } from 'timeUtils'; + import { formatDate, internationalize } from 'timeUtils'; import { keyCodes, keyCodesArray } from './lib/keyCodes'; import { onMount, createEventDispatcher } from 'svelte'; @@ -20,6 +19,32 @@ export let dateChosen = false; export let trigger = null; export let selectableCallback = null; + export let daysOfWeek = [ + ['Sunday', 'Sun'], + ['Monday', 'Mon'], + ['Tuesday', 'Tue'], + ['Wednesday', 'Wed'], + ['Thursday', 'Thu'], + ['Friday', 'Fri'], + ['Saturday', 'Sat'] + ]; + export let monthsOfYear = [ + ['January', 'Jan'], + ['February', 'Feb'], + ['March', 'Mar'], + ['April', 'Apr'], + ['May', 'May'], + ['June', 'Jun'], + ['July', 'Jul'], + ['August', 'Aug'], + ['September', 'Sep'], + ['October', 'Oct'], + ['November', 'Nov'], + ['December', 'Dec'] + ]; + + internationalize({ daysOfWeek, monthsOfYear }); + let highlighted = today; let shouldShakeDate = false; @@ -234,12 +259,20 @@
- changeMonth(e.detail)} - on:incrementMonth={e => incrementMonth(e.detail)} /> + changeMonth(e.detail)} + on:incrementMonth={e => incrementMonth(e.detail)} + />
- {#each dayDict as day} - {day.abbrev} + {#each daysOfWeek as day} + {day[1]} {/each}
- import { monthDict } from './lib/dictionaries'; import { createEventDispatcher } from 'svelte'; const dispatch = createEventDispatcher(); @@ -10,6 +9,7 @@ export let year; export let canIncrementMonth; export let canDecrementMonth; + export let monthsOfYear; let monthSelectorOpen = false; let availableMonths; @@ -17,14 +17,17 @@ $: { let isOnLowerBoundary = start.getFullYear() === year; let isOnUpperBoundary = end.getFullYear() === year; - availableMonths = monthDict.map((m, i) => { - return Object.assign({}, m, { + availableMonths = monthsOfYear.map((m, i) => { + return Object.assign({}, { + name: m[0], + abbrev: m[1] + }, { selectable: (!isOnLowerBoundary && !isOnUpperBoundary) - || ( - (!isOnLowerBoundary || i >= start.getMonth()) - && (!isOnUpperBoundary || i <= end.getMonth()) - ) + || ( + (!isOnLowerBoundary || i >= start.getMonth()) + && (!isOnUpperBoundary || i <= end.getMonth()) + ) }); }); } @@ -48,7 +51,7 @@
- {monthDict[month].name} {year} + {monthsOfYear[month][0]} {year}