dayspan 1.0.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,50 @@
1
+ # Changelog
2
+
3
+ ## 1.2.0
4
+
5
+ Fixes and additions found while building a family calendar on dayspan. Everything from 1.1 keeps working; the
6
+ behaviour changes below are bug fixes.
7
+
8
+ ### Added
9
+
10
+ - **Every N days, weeks or months, counted from the start.** New schedule properties `daysSinceEpoch`,
11
+ `weeksSinceEpoch` and `monthsSinceEpoch` (and the same properties on `Day`). An `{ every, offset }` value on them
12
+ counts from the schedule's `start` (when it has one), so `{ start, weeksSinceEpoch: { every: 2 }, dayOfWeek: [2] }`
13
+ is every other Tuesday from the start, across years, and `{ start, daysSinceEpoch: { every: 3 } }` is every three
14
+ days across months and New Year. `offset` moves the first one later by that many units. Lists and single values
15
+ are absolute counts. (`week`, `weekOfYear`, `month` and `dayOfYear` with `{ every }` still restart every year, as
16
+ before.)
17
+ - **Patterns:** `lastWeekdayOfMonth` ("Monthly on the last Friday": `lastWeekspanOfMonth: [0]` + the day of the week;
18
+ the existing `lastWeekday` is yearly) and `everyOtherWeek` ("Every other week on Friday"). `Pattern.apply` now sets
19
+ `{ every }` rules, and an `{ every }` rule without an `offset` matches any offset.
20
+ - **`en-plain` locale** (`enPlain`): plain words for people, not programmers. "Every month on the 2nd Tuesday",
21
+ "Every year on November 10", and `describe()` reads "From November 1, 2026, happens on Tuesday in the 2nd week of
22
+ the month at 6:00 pm, for 90 minutes". `Locales.set('en-plain')` or `day.setLocale('en-plain')`.
23
+ - **Locale hooks (optional, English when missing):** `patternLastWeekdayOfMonth`, `patternEveryOtherWeek`,
24
+ `scheduleTimeFormat` (how `describe` writes times), `ruleDaysSinceEpoch`, `ruleWeeksSinceEpoch`,
25
+ `ruleMonthsSinceEpoch`. Existing custom locales need no change.
26
+ - **`Frequency.d.ts` is shipped.** The typings lacked it (`index.d.ts` exported `./Frequency`, so `FrequencyValue`
27
+ was untyped). `npm run typings` (part of `npm run build`) writes every declaration with `tsc`.
28
+
29
+ ### Fixed
30
+
31
+ - **Date-only strings are local days.** `Day.parse('2026-11-12')` (and `start: '2026-11-12'` in a schedule) was
32
+ UTC midnight, which is November 11th west of Greenwich. A `YYYY-MM-DD` string is now that day at local midnight.
33
+ Strings with a time are parsed as before.
34
+ - **Moved and included days keep their own time in timed schedules.** A `Day` with a time in `include`, `exclude`,
35
+ `cancel` or `meta` of a timed schedule became a whole-day identifier, so an included 7:30 pm showed at the
36
+ schedule's own time. It now names that time. A `Day` at midnight still names the whole day.
37
+ - **A moved or extra occurrence at another time of a day on the schedule shows.** Moving Tuesday 6:00 pm to 7:30 pm
38
+ the same Tuesday (or adding a 10:00 am that Tuesday) listed nothing for it: only the schedule's own times were
39
+ looked at on days that match the schedule.
40
+ - **`describe()` leaves out undone changes.** Exclusions, inclusions and cancellations set back to `false` (an undo,
41
+ or what `moveInstance` leaves behind) were listed as if they still applied.
42
+ - **`maxOccurrences` counts the start day once.** When the start day was itself an occurrence, the schedule ended
43
+ one occurrence late.
44
+ - **A schedule no longer changes the input it was made from.** `on` used to write `start`, `end`, `year`, `month`
45
+ and `dayOfMonth` into the caller's object.
46
+
47
+ ### Building
48
+
49
+ webpack 4 needs the legacy OpenSSL provider on Node 17 and later:
50
+ `NODE_OPTIONS=--openssl-legacy-provider npm run build`.
package/README.md CHANGED
@@ -20,6 +20,9 @@ A date & schedule library to use for advanced calendars in TypeScript and JS.
20
20
  - Describe a schedule in a human friendly string
21
21
  - Export and import schedules and calendars to plain objects for easy saving and loading
22
22
  - Provides logic to help display intersecting events on a calendar
23
+ - Every N days, weeks or months counted from the start (`daysSinceEpoch`, `weeksSinceEpoch`, `monthsSinceEpoch` with `{ every }`)
24
+ - A plain-English locale (`en-plain`) for descriptions people read
25
+ - See [CHANGELOG.md](CHANGELOG.md) for what changed in each version
23
26
 
24
27
  ### TypeScript Example
25
28
 
@@ -31,8 +34,8 @@ let cal = Calendar.months<string, any>();
31
34
  cal.addEvent({
32
35
  data: 'Weekly Meeting',
33
36
  schedule: {
34
- dayOfWeek: [Weekday.MONDAY],
35
- times: [9],
37
+ dayOfWeek: Weekday.MONDAY,
38
+ times: 9,
36
39
  duration: 30,
37
40
  durationUnit: 'minutes'
38
41
  }
@@ -52,9 +55,9 @@ cal.addEvent({
52
55
  id: 'someUserProvidedId',
53
56
  data: "Mother's Day",
54
57
  schedule: new Schedule({
55
- weekspanOfMonth: [1], // 2nd
56
- dayOfWeek: [Weekday.SUNDAY], // Sunday
57
- month: [Month.MAY] // of May
58
+ weekspanOfMonth: 1, // 2nd
59
+ dayOfWeek: Weekday.SUNDAY, // Sunday
60
+ month: Month.MAY // of May
58
61
  })
59
62
  });
60
63
 
@@ -93,7 +96,7 @@ cal.addEvent({
93
96
  data: 'Weekly Meeting',
94
97
  schedule: {
95
98
  dayOfWeek: [ds.Weekday.MONDAY],
96
- times: [9],
99
+ times: 9,
97
100
  duration: 30,
98
101
  durationUnit: 'minutes'
99
102
  }
package/dist/dayspan.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("ds",[],t):"object"==typeof exports?exports.ds=t():e.ds=t()}(this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var r;n.r(t),function(e){e[e.CONTINUE=0]="CONTINUE",e[e.STOP=1]="STOP",e[e.REMOVE=2]="REMOVE",e[e.REPLACE=3]="REPLACE"}(r||(r={}));var i=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},u=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e},a=function(){function e(e,t){this.result=null,this.source=e,t&&(this.equality=t.equality,this.comparator=t.comparator)}return e.prototype.onReset=function(e){return this.handleReset=e,this},e.prototype.canReset=function(){return!!this.handleReset},e.prototype.reset=function(e,t){if(void 0===t&&(t=!0),this.handleReset)this.handleReset(e);else if(t)throw new Error("This iterator does not support reset.");return this},e.prototype.clone=function(){return new e(this.source,this)},e.prototype.act=function(e,t){return this.action=r.CONTINUE,this.replaceWith=null,this.callback(e,t,this),this.action},e.prototype.stop=function(e){return this.result=e,this.action=r.STOP,this},e.prototype.isStopped=function(){return this.action===r.STOP},e.prototype.replace=function(e){return this.replaceWith=e,this.action=r.REPLACE,this},e.prototype.remove=function(){return this.action=r.REMOVE,this},e.prototype.withEquality=function(e){return this.equality=e,this},e.prototype.withComparator=function(e){return this.comparator=e,this.equality||(this.equality=function(t,n){return 0===e(t,n)}),this},e.prototype.withLogic=function(e,t){return this.comparator=e,this.equality=t||function(t,n,r,i){return 0===e(t,n,r,i)},this},e.prototype.numbers=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=!1),this.withLogic(m(e,t))},e.prototype.strings=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!1),this.withLogic(y(e,t,n))},e.prototype.dates=function(e,t,n,r){return void 0===e&&(e=1),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=!1),this.withLogic(v(n,r),M(e,t))},e.prototype.desc=function(e){var t=e||this.comparator;return this.comparator=function(e,n,r,i){return t(n,e,i,r)},this},e.prototype.getEquality=function(e){return e||this.equality||function(e,t){return 0===p(e,t,!0)}},e.prototype.getComparator=function(e){return e||this.comparator||function(e,t){return p(e,t,!1)}},e.prototype.empty=function(e){var t=!this.each(function(e,t,n){return n.stop()}).isStopped();return e?(e(t),this):t},e.prototype.has=function(e){var t=this.each(function(e,t,n){return n.stop()}).isStopped();return e?(e(t),this):t},e.prototype.contains=function(e,t){var n=this.getEquality(),r=this.where(function(t,r){return n(t,e,r)}).has();return t?(t(r),this):r},e.prototype.count=function(e){var t=0;return this.each(function(){return t++}),e?(e(t),this):t},e.prototype.first=function(e){var t=this.each(function(e,t,n){return n.stop(e)}).result;return e?(e(t),this):t},e.prototype.last=function(e){var t=null;return this.each(function(e){return t=e}),e?(e(t),this):t},e.prototype.array=function(e,t){void 0===e&&(e=[]);var n=h(e)?[]:e,r=h(e)?e:t;return this.each(function(e){return n.push(e)}),r?(r(n),this):n},e.prototype.entries=function(e,t){void 0===e&&(e=[]);var n=h(e)?[]:e,r=h(e)?e:t;return this.each(function(e,t){return n.push([t,e])}),r?(r(n),this):n},e.prototype.object=function(e,t,n){void 0===t&&(t=Object.create(null));var r=h(t)?Object.create(null):t,i=h(t)?t:n;return this.each(function(t){return r[e(t)]=t}),i?(i(r),this):r},e.prototype.set=function(e,t){void 0===e&&(e=new Set);var n=h(e)?new Set:e,r=h(e)?e:t;return this.each(function(e){return n.add(e)}),r?(r(n),this):n},e.prototype.map=function(e,t){void 0===e&&(e=new Map);var n=h(e)?new Map:e,r=h(e)?e:t;return this.each(function(e,t){return n.set(t,e)}),r?(r(n),this):n},e.prototype.group=function(e,t,n){void 0===t&&(t=Object.create(null));var r=h(t)?Object.create(null):t,i=h(t)?t:n;return this.each(function(t){var n=e(t);n in r?r[n].push(t):r[n]=[t]}),i?(i(r),this):r},e.prototype.reduce=function(e,t,n){var r=e;return this.each(function(e){return r=t(e,r)}),n?(n(r),this):r},e.prototype.min=function(e){var t=this.getComparator(),n=this.reduce(null,function(e,n){return null===n||t(e,n)<0?e:n});return e?(e(n),this):n},e.prototype.max=function(e){var t=this.getComparator(),n=this.reduce(null,function(e,n){return null===n||t(e,n)>0?e:n});return e?(e(n),this):n},e.prototype.changes=function(e,t,n,u){var a,s,f=this;this.history||(this.history=new Map);var c=new Map(this.history);this.each(function(t,i,o){var a=u?u(t,i,o):t;f.history.has(a)?n(t,i,o):(e(t,i,o),o.result!==r.REMOVE&&f.history.set(a,[i,t])),c.delete(a)});try{for(var h=i(c.values()),l=h.next();!l.done;l=h.next()){var d=o(l.value,2),p=d[0];t(d[1],p,this)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}return this},e.prototype.delete=function(){return this.each(function(e,t,n){return n.remove()})},e.prototype.extract=function(t){var n=[];this.each(function(e,t,r){return n.push([t,e])&&r.remove()});var r=e.entries(n);return t?(t(r),this):r},e.prototype.overwrite=function(e){return this.each(function(t,n,r){return r.replace(e)})},e.prototype.update=function(e){return this.each(function(t,n,r){return r.replace(e(t,n))})},e.prototype.fork=function(e){return e(this),this},e.prototype.split=function(e,t){var n=this.where(e),r=this.not(e);return t?(t(n,r),this):{pass:n,fail:r}},e.prototype.unzip=function(e){var t=this.keys(),n=this.values();return e?(e(t,n),this):{keys:t,values:n}},e.prototype.keys=function(){var t=this;return new e(function(e){var n=0;t.each(function(t,i,o){switch(e.act(i,n++)){case r.STOP:o.stop();break;case r.REMOVE:o.remove();break;case r.REPLACE:}})}).onReset(this.handleReset)},e.prototype.values=function(){var t=this;return new e(function(e){t.each(function(t,n,i){var o=0;switch(e.act(t,o++)){case r.STOP:i.stop();break;case r.REMOVE:i.remove();break;case r.REPLACE:i.replace(e.replaceWith)}})},this).onReset(this.handleReset)},e.prototype.view=function(t,n,i,o){var u=this;return new e(function(e){var a=t();u.each(function(t,u,s){if(n(a,t,u)){switch(e.act(t,u)){case r.STOP:s.stop();break;case r.REMOVE:s.remove();break;case r.REPLACE:s.replace(e.replaceWith)}i&&i(a,t,u,s)}else o&&o(a,t,u,s)})},this).onReset(this.handleReset)},e.prototype.take=function(t){return t<=0?e.empty():this.view(function(){return{amount:t}},function(e){return e.amount>0},function(e){return e.amount--},function(e,t,n,r){return r.stop()})},e.prototype.skip=function(e){return this.view(function(){return{skipped:0}},function(t){return t.skipped>=e},function(e){return e.skipped++},function(e){return e.skipped++})},e.prototype.drop=function(e){return this.reverse().skip(e).reverse()},e.prototype.append=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.join.apply(e,u([this],t)).onReset(this.handleReset)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.join.apply(e,u(t,[this])).onReset(this.handleReset)},e.prototype.where=function(e){return this.view(function(){return null},function(t,n,r){return e(n,r)})},e.prototype.not=function(e){return this.view(function(){return null},function(t,n,r){return!e(n,r)})},e.prototype.gt=function(e,t){var n=this;return this.view(function(){return n.getComparator(t)},function(t,n,r){return t(n,e,r)>0})},e.prototype.gte=function(e,t){var n=this;return this.view(function(){return n.getComparator(t)},function(t,n,r){return t(n,e,r)>=0})},e.prototype.lt=function(e,t){var n=this;return this.view(function(){return n.getComparator(t)},function(t,n,r){return t(n,e,r)<0})},e.prototype.lte=function(e,t){var n=this;return this.view(function(){return n.getComparator(t)},function(t,n,r){return t(n,e,r)<=0})},e.prototype.exclude=function(e,t){var n=this;return this.view(function(){return c(e).withEquality(n.getEquality(t))},function(e,t){return!e.contains(t)})},e.prototype.intersect=function(e,t){var n=this;return this.view(function(){return c(e).withEquality(n.getEquality(t))},function(e,t){return e.contains(t)})},e.prototype.unique=function(e){var t=this;return this.view(function(){return{existing:[],isEqual:t.getEquality(e)}},function(e,t,n){var r=e.existing,i=e.isEqual;return-1===r.findIndex(function(e){var r=o(e,2),u=r[0],a=r[1];return i(a,t,u,n)})},function(e,t,n){return e.existing.push([n,t])})},e.prototype.duplicates=function(e,t){var n=this;return void 0===e&&(e=!1),this.view(function(){return{existing:[],once:[],isEqual:n.getEquality(t)}},function(t,n,r){var i=t.existing,u=t.once,a=t.isEqual,s=i.findIndex(function(e){var t=o(e,2),i=t[0],u=t[1];return a(u,n,i,r)}),f=-1!==s;return f?(u[s]&&e&&(f=!1),u[s]=!0):i.push([r,n]),f})},e.prototype.readonly=function(){var t=this;return new e(function(e){t.each(function(t,n,i){e.act(t,n)===r.STOP&&i.stop()})},this).onReset(this.handleReset)},e.prototype.copy=function(){return e.entries(this.entries())},e.prototype.viewResolved=function(t){var n=this;return new e(function(e){var i=n.entries(),o=[],u=[],a=[],s=!1;if(t(i,function(t,n,i){var f=e.act(t,n);return f!==r.REPLACE&&f!==r.REMOVE||(s=!0,a[i]=t,o[i]=f,u[i]=e.replaceWith),f}),s){var f=0;n.each(function(e,t,n){switch(o[f]){case r.REMOVE:e===a[f]&&n.remove();break;case r.REPLACE:e===a[f]&&n.replace(u[f])}f++})}},this).onReset(this.handleReset)},e.prototype.sorted=function(e){var t=this;return this.viewResolved(function(n,u){var a,s,f=t.getComparator(e),c=n.map(function(e,t){var n=o(e,2);return{key:n[0],value:n[1],index:t}});c.sort(function(e,t){return f(e.value,t.value)});try{for(var h=i(c),l=h.next();!l.done;l=h.next()){var d=l.value,p=d.key;if(u(d.value,p,d.index)===r.STOP)return}}catch(e){a={error:e}}finally{try{l&&!l.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}})},e.prototype.shuffle=function(e){void 0===e&&(e=1);var t=function(e,t,n){var r=e[t];e[t]=e[n],e[n]=r};return this.viewResolved(function(n,i){for(var u=[],a=n.length,s=0;s<a;s++)u.push(s);for(var f=0;f<e;f++)for(var c=0;c<a;c++){var h=Math.floor(Math.random()*a);t(n,h,c),t(u,h,c)}for(s=0;s<a;s++){var l=o(n[s],2),d=l[0];if(i(l[1],d,u[s])===r.STOP)return}})},e.prototype.reverse=function(){return this.viewResolved(function(e,t){for(var n=e.length-1;n>=0;n--){var i=o(e[n],2),u=i[0];if(t(i[1],u,n)===r.STOP)return}})},e.prototype.transform=function(t,n){var i=this;return void 0===n&&(n=null),new e(function(e){i.each(function(i,o,u){var a=t(i,o,u);if(void 0!==a)switch(e.act(a,o)){case r.STOP:u.stop();break;case r.REMOVE:u.remove();break;case r.REPLACE:n&&u.replace(n(e.replaceWith,a,i,o))}})}).onReset(this.handleReset)},e.prototype.each=function(e){return this.result=void 0,this.callback=e,this.action=r.CONTINUE,this.source(this),this.callback=null,this},e.prototype.withResult=function(e){return this.result&&e(this.result),this},e.prototype[Symbol.iterator]=function(){return this.array().values()},e.entries=function(t){return void 0===t&&(t=[]),new e(function(e){for(var n=0;n<t.length;n++){var i=o(t[n],2),u=i[0],a=i[1];switch(e.act(a,u)){case r.STOP:return;case r.REMOVE:t.splice(n,1),n--;break;case r.REPLACE:t.splice(n,1,[u,e.replaceWith])}}}).onReset(function(e){return t=e})},e.array=function(t){return void 0===t&&(t=[]),new e(function(e){for(var n=0;n<t.length;n++)switch(e.act(t[n],n)){case r.STOP:return;case r.REMOVE:t.splice(n,1),n--;break;case r.REPLACE:t.splice(n,1,e.replaceWith)}}).onReset(function(e){return t=e})},e.zip=function(t,n){var i=c(t),u=c(n);return new e(function(e){var t=i.array(),n=[],o=0;if(u.each(function(i,u,a){if(o>=t.length)a.stop();else switch(e.act(i,t[o])){case r.STOP:return;case r.REMOVE:a.remove(),n.push(o);break;case r.REPLACE:a.replace(e.replaceWith)}o++}),n.length>0){var a=0;i.each(function(e,t,r){a===n[0]?(r.remove(),n.shift()):0===n.length&&r.stop(),a++})}}).onReset(function(e){var t=o(e,2),n=t[0],r=t[1];i=c(n),u=c(r)})},e.hasEntries=function(t,n,i){return new e(function(e){for(var u=t.entries(),a=u.next();!a.done;a=u.next()){var s=o(a.value,2),f=s[0],c=s[1];switch(e.act(c,f)){case r.STOP:return;case r.REMOVE:n&&n(t,f,c);break;case r.REPLACE:i&&i(t,f,c,e.replaceWith)}}}).onReset(function(e){return t=e})},e.map=function(t){return void 0===t&&(t=new Map),e.hasEntries(t,function(e,t){return e.delete(t)},function(e,t,n,r){return e.set(t,r)})},e.set=function(t){return void 0===t&&(t=new Set),e.hasEntries(t,function(e,t){return e.delete(t)},function(e,n,r,i){return t.delete(r)&&t.add(i)})},e.iterable=function(t){return new e(function(e){for(var n=t[Symbol.iterator](),i=0,o=n.next();!o.done&&e.act(o.value,i)!==r.STOP;o=n.next(),i++);}).onReset(function(e){return t=e})},e.object=function(t,n){return void 0===n&&(n=!0),new e(function(e){for(var i in t)if(!n||t.hasOwnProperty(i))switch(e.act(t[i],i)){case r.STOP:return;case r.REMOVE:delete t[i];break;case r.REPLACE:t[i]=e.replaceWith}}).onReset(function(e){return t=e})},e.linked=function(t,n,i,o,u){return u||(u=function(e){return t(e)}),function(a,s){return void 0===s&&(s=!0),new e(function(e){for(var f=a,c=n(a);c&&c!==a;){var h=n(c),l=!1;switch(e.act(t(c),u(c))){case r.STOP:return;case r.REMOVE:if(i)i(c,f),l=!0;else if(s)throw new Error("remove is required for linked list iteration");break;case r.REPLACE:if(o)o(c,e.replaceWith);else if(s)throw new Error("replace is required for linked list iteration")}l||(f=c),c=h}}).onReset(function(e){return a=e})}},e.tree=function(t,n,i,o){o||(o=function(e){return t(e)});var u=e.empty(),a=function(t){var r=n(t);return r?Array.isArray(r)?e.array(r):r:u},s=function(e,n,u,a,s){switch(n.act(t(e),o(e))){case r.STOP:return s&&s.stop(),!1;case r.REPLACE:if(i)i(e,n.replaceWith);else if(u)throw new Error("replaceValue is required when replacing a value in a tree");break;case r.REMOVE:if(s)s.remove();else if(u&&a)throw new Error("remove is not supported for breadth-first iteration")}return!0},f=function(e,t,n,r){return!!s(e,t,n,!1,r)&&!a(e).each(function(e,r,i){return f(e,t,n,i)}).isStopped()};return function(t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!0),new e(function(e){return n?f(t,e,r):function(e,t,n){var r=[];for(r.push(e);r.length>0;){var i=r.shift();if(!s(i,t,n,!0))break;a(i).array(r)}}(t,e,r)}).onReset(function(e){return t=e})}},e.join=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(e){var n,o,u=t.map(c);try{for(var a=i(u),s=a.next();!s.done;s=a.next()){var f=s.value;if(f.each(function(t,n,i){switch(e.act(t,n)){case r.REMOVE:i.remove();break;case r.STOP:i.stop();break;case r.REPLACE:i.replace(e.replaceWith)}}),f.action===r.STOP)return}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}})},e.empty=function(){return new e(function(e){})},e.func=function(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i,o=c(t);return e.apply(void 0,u([o,function(e){return i=e}],n)),i}},e}(),s=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},f=[function(e){return e instanceof a&&e},function(e){return!!Array.isArray(e)&&a.array(e)},function(e){return e instanceof Set&&a.set(e)},function(e){return e instanceof Map&&a.map(e)},function(e){return!(!e||!e[Symbol.iterator])&&a.iterable(e)},function(e){return!(!e||!e.entries)&&a.hasEntries(e)},function(e){return null==e&&a.empty()},function(e){return"object"==typeof e&&a.object(e)},function(e){return a.array([e])}];function c(e){var t,n;try{for(var r=s(f),i=r.next();!i.done;i=r.next()){var o=(0,i.value)(e);if(!1!==o)return o}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}function h(e){return"function"==typeof e}function l(e,t,n,r,i,o){var u=!i(n),a=!i(r);return u!==a?(t?u:a)?-1:1:u?0:e?o(n,r):o(r,n)}function d(e,t,n,r){var i=!n(e);return i===!n(t)&&(!!i||r(e,t))}function p(e,t,n){void 0===n&&(n=!1);var r=null==e;if(r!==(null==t))return r?1:-1;if(r)return 0;var i=typeof e;if(i!==typeof t){if(n)return-1;throw new Error("You must implement your own comparator for unknown or mixed values.")}if("string"===i)return e.localeCompare(t);if("number"===i)return e-t;if("boolean"===i)return(e?1:0)-(t?1:0);if(e instanceof Date&&t instanceof Date)return e.getTime()-t.getTime();if(!n)throw new Error("You must implement your own comparator for unknown or mixed values.");if(e instanceof Array){if(0!=(a=e.length-t.length))return a;for(var o=0;o<e.length;o++)if(0!==(a=p(e[o],t[o],n)))return a;return 0}if("object"===i){for(var u in e)if(!(u in t))return-1;for(var u in t){if(!(u in e))return-1;var a;if(0!==(a=p(e[u],t[u],n)))return a}}return 0}function m(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=function(e){return"number"==typeof e&&isFinite(e)},r=function(e,t){return e-t};return function(i,o){return l(e,t,i,o,n,r)}}function y(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!1);var r=function(e){return"string"==typeof e},i=e?function(e,t){return e.localeCompare(t)}:function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())};return function(e,o){return l(t,n,e,o,r,i)}}function v(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=function(e){return e instanceof Date},r=function(e,t){return e.getTime()-t.getTime()};return function(i,o){return l(e,t,i,o,n,r)}}function M(e,t){void 0===e&&(e=1),void 0===t&&(t=!0);var n=function(e){return e instanceof Date},r=t?function(e){return e.getTime()}:function(e){return e.getTime()+6e4*e.getTimezoneOffset()},i=function(t,n){return r(t)%e==r(n)%e};return function(e,t){return d(e,t,n,i)}}n.d(t,"Generators",function(){return f}),n.d(t,"iterate",function(){return c}),n.d(t,"isFunction",function(){return h}),n.d(t,"compare",function(){return l}),n.d(t,"equals",function(){return d}),n.d(t,"defaultCompare",function(){return p}),n.d(t,"getNumberComparator",function(){return m}),n.d(t,"getStringComparator",function(){return y}),n.d(t,"getDateComparator",function(){return v}),n.d(t,"getDateEquality",function(){return M}),n.d(t,"IterateAction",function(){return r}),n.d(t,"Iterate",function(){return a}),t.default=c}])},function(e,t,n){"use strict";n.r(t);var r=n(0),i=function(){function e(){}return e.MILLIS_IN_SECOND=1e3,e.SECONDS_IN_MINUTE=60,e.MINUTES_IN_HOUR=60,e.HOURS_IN_DAY=24,e.DAYS_IN_WEEK=7,e.DAYS_IN_YEAR=366,e.MILLIS_IN_MINUTE=e.MILLIS_IN_SECOND*e.SECONDS_IN_MINUTE,e.MILLIS_IN_HOUR=e.MILLIS_IN_MINUTE*e.SECONDS_IN_MINUTE,e.MILLIS_IN_DAY=e.MILLIS_IN_HOUR*e.HOURS_IN_DAY,e.MILLIS_IN_WEEK=e.MILLIS_IN_DAY*e.DAYS_IN_WEEK,e.MINUTES_IN_DAY=e.MINUTES_IN_HOUR*e.HOURS_IN_DAY,e.MONTHS_IN_QUARTER=3,e.MONTHS_IN_YEAR=12,e.MONTH_MIN=0,e.MONTH_MAX=11,e.DAY_MIN=1,e.DAY_MAX=31,e.HOUR_MIN=0,e.HOUR_MAX=23,e.MINUTE_MIN=0,e.MINUTE_MAX=59,e.SECOND_MIN=0,e.SECOND_MAX=59,e.MILLIS_MIN=0,e.MILLIS_MAX=999,e.WEEKDAY_MIN=0,e.WEEKDAY_MAX=6,e.DURATION_DEFAULT=1,e.DURATION_DEFAULT_UNIT_ALL="day",e.DURATION_DEFAULT_UNIT_TIMES="hour",e.DURATION_DEFAULT_UNIT=function(t){return t?e.DURATION_DEFAULT_UNIT_ALL:e.DURATION_DEFAULT_UNIT_TIMES},e.MAX_EVENTS_PER_DAY=24,e}(),o=function(){function e(){}return e.isArray=function(e){return e instanceof Array},e.isArrayEquals=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},e.isString=function(e){return"string"==typeof e},e.isNumber=function(e){return isFinite(e)&&"number"==typeof e},e.isObject=function(e){return null!==e&&!this.isArray(e)&&"object"==typeof e},e.isDefined=function(e){return void 0!==e},e.isValue=function(e){return null!=e},e.isFrequencyValueEvery=function(e){return this.isObject(e)&&this.isNumber(e.every)},e.isFrequencyValueOneOf=function(e){return this.isArray(e)&&e.length>0},e.isFrequencyValueEquals=function(e){return"number"==typeof e&&isFinite(e)},e.coalesce=function(e,t,n){return this.isDefined(e)?e:this.isDefined(t)?t:n},e.extend=function(e,t){for(var n in t)e[n]=t[n];return e},e.pad=function(e,t,n,r){for(;e.length<t;)r?e=n+e:e+=n;return e},e.padNumber=function(e,t,n){return void 0===n&&(n=t),this.pad(e+"",t,"0",!0).substring(0,n)},e}(),u=function(){function e(e,t){void 0===t&&(t={}),this.cached={},this.sections=[],this.add(e),this.escapes=t}return e.prototype.add=function(e,t){if(o.isString(e))this.getSection(e.length).formats[e]=t;else for(var n in e)this.getSection(n.length).formats[n]=e[n];return this},e.prototype.getSection=function(e){var t=this.sections.length-e,n=this.sections[t];if(n&&n.size===e)return n;for(var r=0,i=this.sections;r<i.length;r++){var o=i[r];if(o.size===e)return o}var u={size:e,formats:{}};return this.sections.push(u),this.sortBySize(),u},e.prototype.sortBySize=function(){this.sections.sort(function(e,t){return t.size-e.size})},e.prototype.getEscaped=function(e,t){var n=e.charAt(t),r=this.escapes[n];if(!r)return!1;var i=r.start,o=r.end,u=r.startEscape,a=r.endEscape;if(e.substring(t,t+i.length)!==i)return!1;var s=t-u.indexOf(i);if(e.substring(s,s+u.length)===u)return!1;t+=i.length;var f=a.indexOf(o),c=e.indexOf(o,t),h=e.substring(t,c);for(t=c-f;-1!==c&&e.substring(t,t+a.length)===a;)h=h.substring(0,h.length-f),h+=o,t+=a.length,c=e.indexOf(o,t),h+=e.substring(t,c),t=c-f;return-1!==c&&[h,c+o.length]},e.prototype.getFormatter=function(e,t){if(void 0===t&&(t=!1),e in this.cached)return this.cached[e];for(var n,r=this.sections,i=[],o="",u=function(t){var u=a.getEscaped(e,t);if(!1!==u){var s=u[0],f=u[1];return o+=s,n=t=f-1,"continue"}for(var c=!1,h=0;h<r.length&&!c;h++){var l=r[h],d=e.substring(t,t+l.size);if(d.length===l.size){var p=l.formats[d];p&&(i.push(p),t+=l.size-1,c=!0)}}if(c){if(o){var m=o;i.splice(i.length-1,0,function(){return m}),o=""}}else o+=e.charAt(t);n=t},a=this,s=0;s<e.length;s++)u(s),s=n;o&&i.push(function(){return o});var f=function(e){for(var t="",n=0,r=i;n<r.length;n++){t+=(0,r[n])(e)}return t};return t&&(this.cached[e]=f),f},e.prototype.format=function(e,t,n){return void 0===n&&(n=!1),this.getFormatter(e,n)(t)},e}(),a=new u({M:function(e){return e[0].month+1+""},Mo:function(e){var t=e[0];return e[1].suffix(t.month+1)},MM:function(e){var t=e[0];return o.padNumber(t.month+1,2)},MMm:function(e){var t=e[0];return e[1].months[3][t.month]},MMM:function(e){var t=e[0];return e[1].months[2][t.month]},MMMm:function(e){var t=e[0];return e[1].months[1][t.month]},MMMM:function(e){var t=e[0];return e[1].months[0][t.month]},Q:function(e){return e[0].quarter+1+""},Qo:function(e){var t=e[0];return e[1].suffix(t.quarter+1)},D:function(e){return e[0].dayOfMonth+""},Do:function(e){var t=e[0];return e[1].suffix(t.dayOfMonth)},DD:function(e){var t=e[0];return o.padNumber(t.dayOfMonth,2)},DDD:function(e){return e[0].dayOfYear+""},DDDo:function(e){var t=e[0];return e[1].suffix(t.dayOfYear)},DDDD:function(e){var t=e[0];return o.padNumber(t.dayOfYear,3)},d:function(e){return e[0].day+""},do:function(e){var t=e[0];return e[1].suffix(t.day)},dd:function(e){var t=e[0];return e[1].weekdays[3][t.day]},ddd:function(e){var t=e[0];return e[1].weekdays[2][t.day]},dddd:function(e){var t=e[0];return e[1].weekdays[0][t.day]},e:function(e){return e[0].dayOfWeek+""},E:function(e){return e[0].dayOfWeek+1+""},eo:function(e){var t=e[0];return e[1].suffix(t.dayOfWeek)},Eo:function(e){var t=e[0];return e[1].suffix(t.dayOfWeek+1)},w:function(e){return e[0].week+""},wo:function(e){var t=e[0];return e[1].suffix(t.week)},ww:function(e){var t=e[0];return o.padNumber(t.week,2)},W:function(e){return e[0].weekOfYear+""},Wo:function(e){var t=e[0];return e[1].suffix(t.weekOfYear)},WW:function(e){var t=e[0];return o.padNumber(t.weekOfYear,2)},Y:function(e){return e[0].year+""},YY:function(e){var t=e[0];return o.padNumber(t.year%100,2)},YYYY:function(e){var t=e[0];return o.padNumber(t.year,4,10)},gg:function(e){var t=e[0];return o.padNumber(t.year%100,2)},gggg:function(e){var t=e[0];return o.padNumber(t.year,4,10)},GG:function(e){var t=e[0];return o.padNumber(t.year%100,2)},GGGG:function(e){var t=e[0];return o.padNumber(t.year,4,10)},a:function(e){var t=e[0],n=e[1];return t.hour<12?n.am:n.pm},A:function(e){var t=e[0],n=e[1];return t.hour<12?n.am.toUpperCase():n.pm.toUpperCase()},H:function(e){return e[0].hour+""},HH:function(e){var t=e[0];return o.padNumber(t.hour,2)},h:function(e){return(e[0].hour%12||12)+""},hh:function(e){var t=e[0];return o.padNumber(t.hour%12||12,2)},k:function(e){return e[0].hour+1+""},kk:function(e){var t=e[0];return o.padNumber(t.hour+1,2)},m:function(e){return e[0].minute+""},mm:function(e){var t=e[0];return o.padNumber(t.minute,2)},s:function(e){return e[0].seconds+""},ss:function(e){var t=e[0];return o.padNumber(t.seconds,2)},S:function(e){var t=e[0];return o.padNumber(t.millis,3,1)},SS:function(e){var t=e[0];return o.padNumber(t.millis,3,2)},SSS:function(e){var t=e[0];return o.padNumber(t.millis,3)},SSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"0"},SSSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"00"},SSSSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"000"},SSSSSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"0000"},SSSSSSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"00000"},SSSSSSSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"000000"},z:function(e){return e[0].date.toLocaleTimeString("en-us",{timeZoneName:"short"}).split(" ")[2]},zz:function(e){return e[0].date.toLocaleTimeString("en-us",{timeZoneName:"long"}).split(" ")[2]},Z:function(e){return s(e[0],":")},ZZ:function(e){return s(e[0],"")},X:function(e){var t=e[0];return Math.floor(t.time/1e3)+""},x:function(e){return e[0].time+""},LT:function(e){var t=e[0],n=e[1];return t.format(n.formatLT,!0)},LTS:function(e){var t=e[0],n=e[1];return t.format(n.formatLTS,!0)},L:function(e){var t=e[0],n=e[1];return t.format(n.formatL,!0)},l:function(e){var t=e[0],n=e[1];return t.format(n.formatl,!0)},LL:function(e){var t=e[0],n=e[1];return t.format(n.formatLL,!0)},ll:function(e){var t=e[0],n=e[1];return t.format(n.formatll,!0)},LLL:function(e){var t=e[0],n=e[1];return t.format(n.formatLLL,!0)},lll:function(e){var t=e[0],n=e[1];return t.format(n.formatlll,!0)},LLLL:function(e){var t=e[0],n=e[1];return t.format(n.formatLLLL,!0)},llll:function(e){var t=e[0],n=e[1];return t.format(n.formatllll,!0)}},{"[":{start:"[",startEscape:"\\[",end:"]",endEscape:"\\]"},"'":{start:"'",startEscape:"''",end:"'",endEscape:"''"}});function s(e,t){var n=e.offset(),r=Math.floor(Math.abs(n)/100),i=Math.abs(n)%100;return(n<0?"-":"+")+o.padNumber(r,2)+t+o.padNumber(i,2)}var f=["th","st","nd","rd","th","th","th","th","th","th"],c={weekStartsOn:0,firstWeekContainsDate:4,am:"am",pm:"pm",formatLT:"h:mm A",formatLTS:"h:mm:ss A",formatL:"MM/DD/Y",formatl:"M/D/Y",formatLL:"MMMM D, Y",formatll:"MMM D, Y",formatLLL:"MMMM D, Y h:mm A",formatlll:"MMM D, Y h:mm A",formatLLLL:"dddd, MMMM D, Y h:mm A",formatllll:"ddd, MMM D, Y h:mm A",suffix:function(e){return e+(e>=11&&e<=13?"th":f[e%f.length])},identifierTime:function(e){return e?"lll":"LLL"},identifierDay:function(e){return e?"ll":"LL"},identifierWeek:function(e){return"wo [week of] Y"},identifierMonth:function(e){return e?"MMM Y":"MMMM Y"},identifierQuarter:function(e){return"Qo [quarter] Y"},identifierYear:function(e){return"Y"},patternNone:function(e){return"Does not repeat"},patternDaily:function(e){return"Daily"},patternWeekly:function(e){return"Weekly on "+e.format("dddd")},patternMonthlyWeek:function(e){return"Monthly on the "+c.suffix(e.weekspanOfMonth+1)+" "+e.format("dddd")},patternAnnually:function(e){return"Annually on "+e.format("MMMM Do")},patternAnnuallyMonthWeek:function(e){return"Annually on the "+c.suffix(e.weekspanOfMonth+1)+" "+e.format("dddd")+" of "+e.format("MMMM")},patternWeekday:function(e){return"Every weekday (Monday to Friday)"},patternMonthly:function(e){return"Monthly on the "+e.format("Do")+" day"},patternLastDay:function(e){return"Last day of the month"},patternLastDayOfMonth:function(e){return"Last day of "+e.format("MMMM")},patternLastWeekday:function(e){return"Last "+e.format("dddd")+" in "+e.format("MMMM")},patternCustom:function(e){return"Custom..."},scheduleStartingOn:function(e){return"Starting on "+e.format("MMMM Do, YYYY")},scheduleEndingOn:function(e){return" and ending on "+e.format("MMMM Do, YYYY")},scheduleEndsOn:function(e){return"Up until "+e.format("MMMM Do, YYYY")},scheduleThing:function(e,t){return t?"The "+e+" will occur":" the "+e+" will occur"},scheduleAtTimes:" at ",scheduleDuration:function(e,t){return" lasting "+e+" "+(t?t+(1!==e?"s":"")+" ":"")},scheduleExcludes:" excluding ",scheduleIncludes:" including ",scheduleCancels:" with cancellations on ",ruleDayOfWeek:{every:function(e){return"every "+c.suffix(e)+" day of the week"},offset:function(e){return"starting on the "+c.suffix(e)+" day of the week"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" day of the week"}},ruleLastDayOfMonth:{every:function(e){return"every "+c.suffix(e)+" last day of the month"},offset:function(e){return"starting on the "+c.suffix(e)+" last day of the month"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" last day of the month"}},ruleDayOfMonth:{every:function(e){return"every "+c.suffix(e)+" day of the month"},offset:function(e){return"starting on the "+c.suffix(e)+" day of the month"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" day of the month"}},ruleDayOfYear:{every:function(e){return"every "+c.suffix(e)+" day of the year"},offset:function(e){return"starting on the "+c.suffix(e+1)+" day of the year"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" day of the year"}},ruleYear:{every:function(e){return"every "+c.suffix(e)+" year"},offset:function(e){return"starting in "+e},oneOf:function(e){return"in "+c.list(e.map(function(e){return e.toString()}))}},ruleMonth:{every:function(e){return"every "+c.suffix(e)+" month"},offset:function(e){return"starting in "+c.months[0][e]},oneOf:function(e){return"in "+c.list(e.map(function(e){return c.months[0][e]}))}},ruleDay:{every:function(e){return"every "+c.suffix(e)+" day of the week"},offset:function(e){return"starting on "+c.weekdays[0][e]},oneOf:function(e){return"on "+c.list(e.map(function(e){return c.weekdays[0][e]}))}},ruleWeek:{every:function(e){return"every "+c.suffix(e)+" week of the year"},offset:function(e){return"starting on the "+c.suffix(e)+" week of the year"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" week of the year"}},ruleWeekOfYear:{every:function(e){return"every "+c.suffix(e)+" week of the year"},offset:function(e){return"starting on the "+c.suffix(e)+" week of the year"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" week of the year"}},ruleWeekspanOfYear:{every:function(e){return"every "+c.suffix(e+1)+" weekspan of the year"},offset:function(e){return"starting on the "+c.suffix(e+1)+" weekspan of the year"},oneOf:function(e){return"on the "+c.list(e.map(function(e){return c.suffix(e+1)}))+" weekspan of the year"}},ruleFullWeekOfYear:{every:function(e){return"every "+c.suffix(e)+" full week of the year"},offset:function(e){return"starting on the "+c.suffix(e)+" full week of the year"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" full week of the year"}},ruleLastWeekspanOfYear:{every:function(e){return"every "+c.suffix(e+1)+" last weekspan of the year"},offset:function(e){return"starting on the "+c.suffix(e+1)+" last weekspan of the year"},oneOf:function(e){return"on the "+c.list(e.map(function(e){return c.suffix(e+1)}))+" last weekspan of the year"}},ruleLastFullWeekOfYear:{every:function(e){return"every "+c.suffix(e)+" last full week of the year"},offset:function(e){return"starting on the "+c.suffix(e)+" last full week of the year"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" last full week of the year"}},ruleWeekOfMonth:{every:function(e){return"every "+c.suffix(e)+" week of the month"},offset:function(e){return"starting on the "+c.suffix(e)+" week of the month"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" week of the month"}},ruleFullWeekOfMonth:{every:function(e){return"every "+c.suffix(e)+" full week of the month"},offset:function(e){return"starting on the "+c.suffix(e)+" full week of the month"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" full week of the month"}},ruleWeekspanOfMonth:{every:function(e){return"every "+c.suffix(e+1)+" weekspan of the month"},offset:function(e){return"starting on the "+c.suffix(e+1)+" weekspan of the month"},oneOf:function(e){return"on the "+c.list(e.map(function(e){return c.suffix(e+1)}))+" weekspan of the month"}},ruleLastFullWeekOfMonth:{every:function(e){return"every "+c.suffix(e)+" last full week of the month"},offset:function(e){return"starting on the "+c.suffix(e)+" last full week of the month"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" last full week of the month"}},ruleLastWeekspanOfMonth:{every:function(e){return"every "+c.suffix(e+1)+" last weekspan of the month"},offset:function(e){return"starting on the "+c.suffix(e+1)+" last weekspan of the month"},oneOf:function(e){return"on the "+c.list(e.map(function(e){return c.suffix(e+1)}))+" last weekspan of the month"}},summaryDay:function(e,t,n){return(t?e?"ddd, ":"dddd, ":"")+(e?"MMM ":"MMMM ")+"Do"+(n?" YYYY":"")},summaryWeek:function(e,t,n){return(t?e?"ddd, ":"dddd, ":"")+(e?"MMM ":"MMMM ")+"Do"+(n?" YYYY":"")},summaryMonth:function(e,t,n){return(e?"MMM":"MMMM")+(n?" YYYY":"")},summaryYear:function(e,t,n){return n?"YYYY":""},list:function(e){for(var t=e.length-1,n=e[0],r=1;r<t;r++)n+=", "+e[r];return t>0&&(n+=" and "+e[t]),n},months:[["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Ja","F","Mr","Ap","My","Je","Jl","Ag","S","O","N","D"]],weekdays:[["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Sun","Mon","Tues","Wed","Thurs","Fri","Sat"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Su","M","Tu","W","Th","F","Sa"]]},h=c,l=function(){function e(e,t){this.value=e,this.shared=t,this.dirty=!1}return e.prototype.getUpdate=function(t){return this.shared?new e(t,!1):(this.value=t,this)},e.prototype.getReplace=function(t){return this.shared?(this.dirty=!0,new e(t,!0)):(this.value=t,this)},e}(),d=function(){function e(){}return e.add=function(e,t){for(var n=0,r=o.isArray(e)?e:[e];n<r.length;n++){var i=r[n];this.map[this.normal(i)]=t}},e.alias=function(e,t){for(var n=this.map[this.normal(e)],r=0,i=t;r<i.length;r++){var o=i[r];this.map[this.normal(o)]=n}},e.set=function(e){var t=this.normal(e),n=t in this.map;return n&&(this.ref=this.ref.getReplace(this.map[t])),n},e.normal=function(e){return e.toLowerCase()},e.get=function(e){var t=this.normal(e);return t in this.map?this.map[t]:this.current},Object.defineProperty(e,"current",{get:function(){return this.ref.value},enumerable:!0,configurable:!0}),e.map={en:h},e.ref=new l(h,!0),e}(),p=function(){function e(){}return e.SUNDAY=0,e.MONDAY=1,e.TUESDAY=2,e.WEDNESDAY=3,e.THURSDAY=4,e.FRIDAY=5,e.SATURDAY=6,e.LIST=[e.SUNDAY,e.MONDAY,e.TUESDAY,e.WEDNESDAY,e.THURSDAY,e.FRIDAY,e.SATURDAY],e.WEEK=[e.MONDAY,e.TUESDAY,e.WEDNESDAY,e.THURSDAY,e.FRIDAY],e.ENDS=[e.SATURDAY,e.SUNDAY],e}(),m={millis:function(e){return e},second:function(e){e.setMilliseconds(0)},minute:function(e){e.setSeconds(0,0)},hour:function(e){e.setMinutes(0,0,0)},day:B,week:function(e,t){void 0===t&&(t=d.current);var n=F(e,t);e.setDate(e.getDate()-n),e.setHours(0,0,0,0)},month:X,quarter:function(e){var t=e.getMonth();e.setMonth(t-t%i.MONTHS_IN_QUARTER,i.DAY_MIN),e.setHours(0,0,0,0)},year:K},y={millis:function(e){return e},second:function(e){e.setMilliseconds(i.MILLIS_MAX)},minute:function(e){e.setSeconds(i.SECOND_MAX,i.MILLIS_MAX)},hour:function(e){e.setMinutes(i.MINUTE_MAX,i.SECOND_MAX,i.MILLIS_MAX)},day:G,week:function(e,t){void 0===t&&(t=d.current);var n=F(e,t);e.setDate(e.getDate()+(i.WEEKDAY_MAX-n)),G(e)},month:function(e){e.setFullYear(e.getFullYear(),e.getMonth()+1,0),G(e)},quarter:function(e){var t=e.getMonth();e.setMonth(t-t%i.MONTHS_IN_QUARTER+i.MONTHS_IN_QUARTER,i.DAY_MIN),G(e)},year:Q},v={millis:Z,second:function(e,t){Z(e,t*i.MILLIS_IN_SECOND)},minute:function(e,t){Z(e,t*i.MILLIS_IN_MINUTE)},hour:function(e,t){Z(e,t*i.MILLIS_IN_HOUR)},day:$,week:function(e,t){$(e,t*i.DAYS_IN_WEEK)},month:ee,quarter:function(e,t){ee(e,t*i.MONTHS_IN_QUARTER)},year:function(e,t){ee(e,t*i.MONTHS_IN_YEAR)}},M={millis:te,second:function(e,t){return te(e,t)/i.MILLIS_IN_SECOND},minute:function(e,t){return te(e,t)/i.MILLIS_IN_MINUTE},hour:function(e,t){return te(e,t)/i.MILLIS_IN_HOUR},day:ne,week:function(e,t){return ne(e,t)/i.DAYS_IN_WEEK},month:re,quarter:function(e,t){return re(e,t)/i.MONTHS_IN_QUARTER},year:function(e,t){return re(e,t)/i.MONTHS_IN_YEAR}},O={millis:1,second:i.MILLIS_IN_SECOND,minute:i.MILLIS_IN_MINUTE,hour:i.MILLIS_IN_HOUR,day:i.MILLIS_IN_DAY,week:i.MILLIS_IN_WEEK,month:i.MILLIS_IN_DAY*i.DAY_MAX,quarter:i.MILLIS_IN_DAY*i.DAY_MAX*i.MONTHS_IN_QUARTER,year:i.MILLIS_IN_DAY*i.DAYS_IN_YEAR};function g(e,t,n){var r=new Date(e.getTime());return t(r,n),r}function k(e,t,n,r){void 0===n&&(n="millis"),void 0===r&&(r=d.current);var i=m[n],o=g(e,i,r),u=g(t,i,r);return o.getTime()-u.getTime()}function w(e){return z(e)-e.getDate()+1}function D(e){var t=q(e)-j(e);return Math.floor(t/i.DAYS_IN_WEEK)}function S(e,t){return void 0===t&&(t=d.current),T(g(e,K),j(e),t)}function E(e,t){return void 0===t&&(t=d.current),x(g(e,K),j(e),t)}function Y(e){return Math.floor((j(e)-1)/i.DAYS_IN_WEEK)}function I(e,t){return void 0===t&&(t=d.current),R(g(e,K),q(e),t)}function W(e,t){void 0===t&&(t=d.current);var n=g(e,Q),r=S(e,t),o=S(n,t)-r;return F(n,t)===i.WEEKDAY_MAX?o+1:o}function b(e){return Math.floor((e.getDate()-1)/i.DAYS_IN_WEEK)}function N(e){var t=z(e)-e.getDate();return Math.floor(t/i.DAYS_IN_WEEK)}function _(e,t){return void 0===t&&(t=d.current),R(g(e,X),e.getDate(),t)}function A(e,t){void 0===t&&(t=d.current);var n=z(e)-e.getDate(),r=i.WEEKDAY_MAX-F(e,t);return Math.floor((n-r+i.DAYS_IN_WEEK)/i.DAYS_IN_WEEK)}function L(e,t){return void 0===t&&(t=d.current),T(g(e,X),e.getDate(),t)}function T(e,t,n){void 0===n&&(n=d.current);var r=n.firstWeekContainsDate,o=F(e,n),u=i.DAYS_IN_WEEK-o<r?o-1:o-1+i.DAYS_IN_WEEK;return Math.floor((t+u)/i.DAYS_IN_WEEK)}function x(e,t,n){var r=F(e,n)-1+i.DAYS_IN_WEEK;return Math.floor((t+r)/i.DAYS_IN_WEEK)}function R(e,t,n){void 0===n&&(n=d.current);var r=F(e,n),o=r!==p.SUNDAY?r-1:r-1+i.DAYS_IN_WEEK;return Math.floor((t+o)/i.DAYS_IN_WEEK)}function F(e,t){void 0===t&&(t=d.current);var n=t.weekStartsOn,r=e.getDay();return r<n?r-n+i.DAYS_IN_WEEK:r-n}function j(e){return Math.round(ne(e,g(e,K)))+1}function U(e){return 15*-Math.round(e.getTimezoneOffset()/15)}function C(e){var t=e.getFullYear();return t%400==0||t%4==0&&t%100!=0}function q(e){return C(e)?366:365}var H,P=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]];function z(e){return P[C(e)?1:0][e.getMonth()]}function J(e){return e.getTime()-function(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();t.setSeconds(0,0);var r=t.getTime()%i.MILLIS_IN_MINUTE;return n*i.MILLIS_IN_MINUTE+r}(e)}function V(e){return Math.floor(e.getMonth()/i.MONTHS_IN_QUARTER)}function B(e){e.setHours(0,0,0,0)}function X(e){e.setDate(i.DAY_MIN),e.setHours(0,0,0,0)}function K(e){var t=e.getFullYear();e.setTime(0),e.setFullYear(t,0,1),e.setHours(0,0,0,0)}function G(e){e.setHours(i.HOUR_MAX,i.MINUTE_MAX,i.SECOND_MAX,i.MILLIS_MAX)}function Q(e){e.setFullYear(e.getFullYear()+1,0,0),G(e)}function Z(e,t){e.setTime(e.getTime()+t)}function $(e,t){e.setDate(e.getDate()+t)}function ee(e,t){var n=e.getMonth()+t,r=new Date(0);r.setFullYear(r.getFullYear(),n,1),r.setHours(0,0,0,0);var i=z(r);e.setMonth(n,Math.min(i,e.getDate()))}function te(e,t){return e.getTime()-t.getTime()}function ne(e,t){var n=g(e,B),r=g(t,B);return(J(n)-J(r))/i.MILLIS_IN_DAY}function re(e,t){var n=e.getFullYear()-t.getFullYear(),r=e.getMonth()-t.getMonth(),o=(e.getDate()-t.getDate())/i.DAY_MAX;return n*i.MONTHS_IN_YEAR+r+o}function ie(e,t,n){if(void 0===n&&(n=!1),isFinite(e))switch(n&&(e=Math.abs(e)),t){case H.NONE:return e;case H.FLOOR:return Math.floor(e);case H.CEIL:return Math.ceil(e);case H.ROUND:return Math.round(e);case H.TRUNCATE:case H.DOWN:return e<0?Math.ceil(e):Math.floor(e);case H.UP:return e<0?Math.floor(e):Math.ceil(e)}return e}!function(e){e[e.NONE=0]="NONE",e[e.FLOOR=1]="FLOOR",e[e.CEIL=2]="CEIL",e[e.ROUND=3]="ROUND",e[e.TRUNCATE=4]="TRUNCATE",e[e.UP=5]="UP",e[e.DOWN=6]="DOWN"}(H||(H={}));var oe,ue=function(){function e(e,t){this.start=e,this.end=t}return Object.defineProperty(e.prototype,"isPoint",{get:function(){return this.start.time===this.end.time},enumerable:!0,configurable:!0}),e.prototype.contains=function(e){return e.time>=this.start.time&&e.time<=this.end.time},e.prototype.compareTo=function(e){return e.time<this.start.time?-1:e.time>this.end.time?1:0},e.prototype.matchesDay=function(e){return this.contains(e)||e.sameDay(this.start)||e.sameDay(this.end)},e.prototype.matchesWeek=function(e){return this.contains(e)||e.sameWeek(this.start)||e.sameWeek(this.end)},e.prototype.matchesMonth=function(e){return this.contains(e)||e.sameMonth(this.start)||e.sameMonth(this.end)},e.prototype.matchesYear=function(e){return this.contains(e)||e.sameYear(this.start)||e.sameYear(this.end)},e.prototype.millis=function(e,t){return void 0===e&&(e=H.DOWN),void 0===t&&(t=!0),this.start.millisBetween(this.end,e,t)},e.prototype.seconds=function(e,t){return void 0===e&&(e=H.DOWN),void 0===t&&(t=!0),this.start.secondsBetween(this.end,e,t)},e.prototype.minutes=function(e,t){return void 0===e&&(e=H.DOWN),void 0===t&&(t=!0),this.start.minutesBetween(this.end,e,t)},e.prototype.hours=function(e,t){return void 0===e&&(e=H.DOWN),void 0===t&&(t=!0),this.start.hoursBetween(this.end,e,t)},e.prototype.days=function(e,t){return void 0===e&&(e=H.DOWN),void 0===t&&(t=!0),this.start.daysBetween(this.end,e,t)},e.prototype.weeks=function(e,t){return void 0===e&&(e=H.DOWN),void 0===t&&(t=!0),this.start.weeksBetween(this.end,e,t)},e.prototype.months=function(e,t){return void 0===e&&(e=H.DOWN),void 0===t&&(t=!0),this.start.monthsBetween(this.end,e,t)},e.prototype.years=function(e,t){return void 0===e&&(e=H.DOWN),void 0===t&&(t=!0),this.start.yearsBetween(this.end,e,t)},e.prototype.startDelta=function(e){return(this.start.time-e.time)/i.MILLIS_IN_DAY},e.prototype.endDelta=function(e){return(this.end.time-e.time)/i.MILLIS_IN_DAY},e.prototype.getBounds=function(e,t,n,r,i,o,u){void 0===t&&(t=1),void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),void 0===o&&(o=0),void 0===u&&(u=0);var a=this.startDelta(e),s=this.endDelta(e),f=n-r,c=(i?Math.max(0,a):a)*t,h=(i?Math.min(1,s):s)*t;return{top:c+u,bottom:h+u,height:h-c,left:r+o,right:f+o,width:f}},e.prototype.summary=function(e,t,n,r,i,o){void 0===t&&(t=!0),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i=!0),void 0===o&&(o=" - ");var u=[d.current.summaryDay,d.current.summaryWeek,d.current.summaryMonth,d.current.summaryYear][e],a=De.today(),s=!i||!this.start.sameYear(a),f=!i||!this.end.sameYear(a),c=this.start.format(u(n,t,s)),h=this.end.format(u(n,t,f)),l=c;return c!==h?(r||(l=this.start.format(u(n,t,!this.start.sameYear(this.end)))),l+=o,l+=h):l=c,l},e.prototype.intersects=function(e){return!(this.end.time<e.start.time||this.start.time>e.end.time)},e.prototype.intersection=function(t){var n=this.start.max(t.start),r=this.end.min(t.end);return n.isAfter(r)?null:new e(n,r)},e.prototype.union=function(t){return new e(this.start.min(t.start),this.end.max(t.end))},e.point=function(t){return new e(t,t)},e}(),ae=(oe=function(e,t){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),se=function(){function e(){}return e.prototype.is=function(e){return(e+"").length===this.getLength()},e.prototype.compute=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this.getScales(),r=0,i=0;i<e.length;i++)r+=e[i]*n[i];return this.is(r)?r:o.padNumber(r,this.getLength())},e.prototype.decompute=function(e){for(var t=this.getScales(),n=o.isNumber(e)?e:parseInt(e),r=[],i=0;i<t.length-1;i++){var u=t[i+0],a=t[i+1]/u,s=n%a;r.push(s),n=Math.floor(n/a)}return r.push(n),r},e.find=function(e){return this.Time.is(e)?this.Time:this.Day.is(e)?this.Day:this.Week.is(e)?this.Week:this.Month.is(e)?this.Month:this.Year.is(e)?this.Year:null},e.contains=function(e,t){var n=e+"";return(t+"").substring(0,n.length)===n},e.Time=null,e.Day=null,e.Week=null,e.Month=null,e.Quarter=null,e.Year=null,e}(),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.minute,e.hour,e.dayOfMonth,e.month+1,e.year)},t.prototype.object=function(e){var t=this.decompute(e);return{minute:t[0],hour:t[1],day:t[2],month:t[3]-1,year:t[4]}},t.prototype.start=function(e){var t=this.object(e);return De.build(t.year,t.month,t.day,t.hour,t.minute)},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.endOfHour(t);return new ue(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=d.current.identifierTime(t);return n.format(r)},t.prototype.matches=function(e,t){return e.timeIdentifier===t},t.SCALES=[1,100,1e4,1e6,1e8],t.LENGTH=12,t}(se),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.dayOfMonth,e.month+1,e.year)},t.prototype.object=function(e){var t=this.decompute(e);return{day:t[0],month:t[1]-1,year:t[2]}},t.prototype.start=function(e){var t=this.object(e);return De.build(t.year,t.month,t.day)},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.end(t);return new ue(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=d.current.identifierDay(t);return n.format(r)},t.prototype.matches=function(e,t){return e.dayIdentifier===t},t.SCALES=[1,100,1e4],t.LENGTH=8,t}(se),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.weekOfYear,e.year)},t.prototype.object=function(e){var t=this.decompute(e);return{week:t[0],year:t[1]}},t.prototype.start=function(e){var t=this.object(e);return De.build(t.year,0).withWeekOfYear(t.week)},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.endOfWeek(t);return new ue(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=d.current.identifierWeek(t);return n.format(r)},t.prototype.matches=function(e,t){return e.weekIdentifier===t},t.SCALES=[1,1e3],t.LENGTH=7,t}(se),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.month+1,e.year)},t.prototype.object=function(e){var t=this.decompute(e);return{month:t[0]-1,year:t[1]}},t.prototype.start=function(e){var t=this.object(e);return De.build(t.year,t.month)},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.endOfMonth(t);return new ue(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=d.current.identifierMonth(t);return n.format(r)},t.prototype.matches=function(e,t){return e.monthIdentifier===t},t.SCALES=[1,100],t.LENGTH=6,t}(se),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.quarter,e.year)},t.prototype.object=function(e){var t=this.decompute(e);return{quarter:t[0],year:t[1]}},t.prototype.start=function(e){var t=this.object(e);return De.build(t.year,3*(t.quarter-1))},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.relativeMonths(3).endOfMonth(t);return new ue(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=d.current.identifierQuarter(t);return n.format(r)},t.prototype.matches=function(e,t){return e.quarterIdentifier===t},t.SCALES=[1,10],t.LENGTH=5,t}(se),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.year)},t.prototype.object=function(e){return{year:this.decompute(e)[0]}},t.prototype.start=function(e){var t=this.object(e);return De.build(t.year,0)},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.endOfYear(t);return new ue(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=d.current.identifierYear(t);return n.format(r)},t.prototype.matches=function(e,t){return e.year===t},t.SCALES=[1],t.LENGTH=4,t}(se);se.Time=new fe,se.Day=new ce,se.Week=new he,se.Month=new le,se.Quarter=new de,se.Year=new pe;var me,ye=function(){return function(e,t,n,r){void 0===r&&(r=!0),this.schedule=e,this.data=t,this.id=n,this.visible=r}}(),ve=function(){function e(){this.map={}}return e.prototype.clear=function(){return this.map={},this},e.prototype.isEmpty=function(){for(var e in this.map)return!e;return!0},e.prototype.get=function(e,t,n){void 0===n&&(n=!0);var r=this.map;return n&&r[e.timeIdentifier]||r[e.dayIdentifier]||r[e.monthIdentifier]||r[e.weekIdentifier]||r[e.quarterIdentifier]||t},e.prototype.getIdentifier=function(e,t){void 0===t&&(t=!0);var n=this.map;return t&&o.isDefined(n[e.timeIdentifier])?se.Time:o.isDefined(n[e.dayIdentifier])?se.Day:o.isDefined(n[e.monthIdentifier])?se.Month:o.isDefined(n[e.weekIdentifier])?se.Week:o.isDefined(n[e.quarterIdentifier])?se.Quarter:o.isDefined(n[e.year])?se.Year:null},e.prototype.getAll=function(e){var t=this.map,n=[];return t[e.timeIdentifier]&&n.push(t[e.timeIdentifier]),t[e.dayIdentifier]&&n.push(t[e.dayIdentifier]),t[e.monthIdentifier]&&n.push(t[e.monthIdentifier]),t[e.weekIdentifier]&&n.push(t[e.weekIdentifier]),t[e.quarterIdentifier]&&n.push(t[e.quarterIdentifier]),n},e.prototype.move=function(e,t,n,r){var i=t.get(e),o=r.get(n);return this.map[o]=this.map[i],delete this.map[i],this},e.prototype.moveTime=function(e,t){var n=se.Time,r=[];this.iterate().each(function(t){var i=t[0];t[1];n.is(i)&&(n.start(i).sameTime(e)&&r.push(i))});for(var i=0,o=0,u=r;o<u.length;o++){var a=u[o],s=this.map[a],f=n.start(a).withTime(t),c=n.get(f);this.map[c]||(this.map[c]=s,delete this.map[a],i++)}return i},e.prototype.removeTime=function(e){var t=se.Time,n=0;return this.iterate().each(function(r,i,o){var u=r[0];t.is(u)&&(t.start(u).sameTime(e)&&(o.remove(),n++))}),n},e.prototype.set=function(e,t,n){return this.map[n.get(e)]=t,this},e.prototype.unset=function(e,t){return delete this.map[t.get(e)],this},e.prototype.iterate=function(){var e=this;return new r.Iterate(function(t){var n=e.map;for(var i in n){var o=parseInt(i),u=o+""===i?o:i;switch(t.act([u,n[i]],i)){case r.IterateAction.STOP:return;case r.IterateAction.REMOVE:delete n[i]}}})},e.prototype.query=function(e){return this.iterate().where(function(t){var n=t[0];t[1];return se.contains(e,n)})},e.prototype.identifiers=function(e){return this.iterate().where(function(t){var n=t[0],r=t[1];return!e||e(r,n)}).transform(function(e){return e[0]})},e.prototype.spans=function(e){return void 0===e&&(e=!1),this.iterate().transform(function(t){var n=t[0],r=t[1],i=se.find(n);if(i)return{span:i.span(n,e),value:r}})},e.prototype.describe=function(e){return void 0===e&&(e=!1),this.iterate().transform(function(t){var n=t[0],r=se.find(n);if(r)return r.describe(n,e)})},e.prototype.describeMap=function(e){void 0===e&&(e=!1);var t=this.map,n={};for(var r in t){var i=se.find(r);i&&(n[i.describe(r,e)]=t[r])}return n},e}();!function(e){e[e.DAY=0]="DAY",e[e.WEEK=1]="WEEK",e[e.MONTH=2]="MONTH",e[e.YEAR=3]="YEAR"}(me||(me={}));for(var Me,Oe=function(){function e(e){this.exclude=new ve,this.include=new ve,this.cancel=new ve,this.meta=new ve,o.isDefined(e)&&this.set(e)}return Object.defineProperty(e.prototype,"maxOccurrences",{get:function(){return this._maxOccurrences},set:function(e){this._maxOccurrences=e,this.checks&&this.updateEnd()},enumerable:!0,configurable:!0}),e.prototype.set=function(t,n){return void 0===n&&(n=function(e){return e}),t instanceof e?we.schedule(t.toInput(),void 0,this):we.schedule(t,o.coalesce(t.parseMeta,n),this),this},Object.defineProperty(e.prototype,"lastTime",{get:function(){return this.times[this.times.length-1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"identifierType",{get:function(){return this.isFullDay()?se.Day:se.Time},enumerable:!0,configurable:!0}),e.prototype.updateDurationInDays=function(){var e=this.lastTime?this.lastTime.toMilliseconds():0,t=this.duration*(O[this.durationUnit]||0),n=i.MILLIS_IN_DAY,r=i.MILLIS_IN_DAY;return this.durationInDays=Math.max(0,Math.ceil((e+t-n)/r)),this},e.prototype.updateChecks=function(){return this.checks=we.givenFrequency([this.year,this.month,this.day,this.quarter,this.week,this.weekOfYear,this.fullWeekOfYear,this.weekspanOfYear,this.lastFullWeekOfYear,this.lastWeekspanOfYear,this.weekOfMonth,this.weekspanOfMonth,this.fullWeekOfMonth,this.lastWeekspanOfMonth,this.lastFullWeekOfMonth,this.dayOfWeek,this.dayOfMonth,this.lastDayOfMonth,this.dayOfYear]),this},e.prototype.updateEnd=function(){var e=this;if(this.maxOccurrences>0&&this.start){this.end=null;var t=(this.getMaximum("year")-this.start.year+1)*i.DAYS_IN_YEAR,n=this.include.spans().where(function(t){return t.span.start.isBefore(e.start)}).count(),r=this.maxOccurrences-n,o=this.forecast(this.start,!1,r,0,!0,t).last();o&&(this.end=o[0].end)}return this},e.prototype.getMaximum=function(e){if(!this.start)return-1;if(this.end)return this.end[e];var t=this.maxOccurrences,n=this.start[e],r=this[e];if(r){var i=r.input;if(o.isFrequencyValueEquals(i))return i;if(o.isFrequencyValueOneOf(i)){for(var u=i[0],a=1;a<i.length;a++)i[a]>u&&(u=i[a]);return u}if(t>0&&o.isFrequencyValueEvery(i)){var s=i.every;return n+(i.offset||0)+s*t}}return t<=0?-1:n+t-1},e.prototype.getStart=function(){if(this.start)return this.start;var e=this.getSingleEventSpan();return e?e.start:null},e.prototype.getEnd=function(){if(this.end)return this.end;var e=this.getSingleEventSpan();return e?e.end:null},e.prototype.getRange=function(e){var t=this;void 0===e&&(e=!0);var n=this.times.length>0,r=this.getStart(),i=this.getEnd();return e&&this.include.spans().each(function(e){var o=e.span;t.isExcluded(o.start,n)||(r&&!o.start.isBefore(r)||(r=o.start),i&&!o.end.isAfter(i)||(i=o.end))}),{start:r,end:i}},e.prototype.getOccurrences=function(){var e=this.getStart(),t=this.getEnd();if(!e||!t)return r.Iterate.empty();var n=e.daysBetween(t,H.CEIL,!0),i=this.include.spans().where(function(t){return t.span.start.isBefore(e)}).sorted(function(e,t){return e.span.start.time-t.span.start.time}).transform(function(e){return e.span}),o=this.forecast(e,!1,n).transform(function(e){return e[0]}),u=this.include.spans().where(function(e){return e.span.start.isAfter(t)}).sorted(function(e,t){return e.span.start.time-t.span.start.time}).transform(function(e){return e.span});return r.Iterate.join(i,o,u)},e.prototype.matchesSpan=function(e){return(null===this.start||e.isSameOrAfter(this.start))&&(null===this.end||e.isBefore(this.end))},e.prototype.matchesRange=function(e,t){return(!this.start||!t.isBefore(this.start))&&(!this.end||!e.isAfter(this.end))},e.prototype.isExcluded=function(e,t){return void 0===t&&(t=!0),this.exclude.get(e,!1,t)},e.prototype.isIncluded=function(e,t){return void 0===t&&(t=!0),this.include.get(e,!1,t)},e.prototype.isCancelled=function(e,t){return void 0===t&&(t=!0),this.cancel.get(e,!1,t)},e.prototype.getMeta=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=!0),this.meta.get(e,t,n)},e.prototype.getMetas=function(e){return this.meta.getAll(e)},e.prototype.isFullDay=function(){return 0===this.times.length},e.prototype.setFullDay=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t="08:00"),e!==this.isFullDay()&&(e?(this.times=[],"day"!==this.durationUnit&&(this.duration=1,this.durationUnit="day")):(this.times=[we.time(t)],"hour"!==this.durationUnit&&(this.duration=1,this.durationUnit="hour"))),this},e.prototype.adjustDefinedSpan=function(e){void 0===e&&(e=!1);var t=this.getSingleEventSpan();return t&&(e||this.start&&this.end)&&(this.start=t.start.start(),this.end=t.end.end()),this},e.prototype.getFullSpan=function(e){var t=e.start(),n=t.add(this.duration,this.durationUnit);return new ue(t,n)},e.prototype.getTimeSpan=function(e,t){var n=e.withTime(t),r=n.add(this.duration,this.durationUnit);return new ue(n,r)},e.prototype.matchesDay=function(e){if(this.isIncluded(e,!1))return!0;if(!this.matchesSpan(e)||this.isFullyExcluded(e))return!1;for(var t=0,n=this.checks;t<n.length;t++){var r=n[t];if(!r(e[r.property]))return!1}return!0},e.prototype.hasIncludedTime=function(e){return!this.iterateIncludeTimes(e).empty()},e.prototype.isFullyExcluded=function(e){if(this.exclude.isEmpty())return!1;if(this.isExcluded(e,!1))return!0;if(this.isFullDay())return!1;for(var t=0,n=this.times;t<n.length;t++){var r=n[t];if(!this.isExcluded(e.withTime(r)))return!1}return!0},e.prototype.nextDay=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=i.DAYS_IN_YEAR),this.iterateDaycast(e,1,!0,t,n).first()},e.prototype.nextDays=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=i.DAYS_IN_YEAR),this.iterateDaycast(e,t,!0,n,r)},e.prototype.prevDay=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=i.DAYS_IN_YEAR),this.iterateDaycast(e,1,!1,t,n).first()},e.prototype.prevDays=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=i.DAYS_IN_YEAR),this.iterateDaycast(e,t,!1,n,r)},e.prototype.iterateDaycast=function(e,t,n,o,u){var a=this;return void 0===o&&(o=!1),void 0===u&&(u=i.DAYS_IN_YEAR),new r.Iterate(function(i){for(var s=0,f=0,c=0;c<u;c++){if((!o||c>0)&&(e=n?e.next():e.prev()),!a.iterateSpans(e,!1).empty())if(i.act(e,f++)===r.IterateAction.STOP||++s>=t)return}})},e.prototype.iterateSpans=function(e,t){var n=this;return void 0===t&&(t=!1),new r.Iterate(function(i){var o=e,u=t?n.durationInDays:0,a=0;if(n.isFullDay())for(;u>=0;){if(n.matchesDay(o))if((c=n.getFullSpan(o)).matchesDay(e))switch(i.act(c,a++)){case r.IterateAction.STOP:return}o=o.prev(),u--}else for(;u>=0;){if(n.matchesDay(o))for(var s=0,f=n.times;s<f.length;s++){var c,h=f[s];if((c=n.getTimeSpan(o,h)).matchesDay(e)&&!n.isExcluded(c.start,!0))switch(i.act(c,a++)){case r.IterateAction.STOP:return}}else if(n.iterateIncludeTimes(o,e).each(function(e,t,n){switch(i.act(e,a++)){case r.IterateAction.STOP:n.stop()}}),i.action===r.IterateAction.STOP)return;--u>=0&&(o=o.prev())}})},e.prototype.matchesTime=function(e){return!!this.iterateSpans(e,!0).where(function(t){return t.start.sameMinute(e)}).first()},e.prototype.coversDay=function(e){return!this.iterateSpans(e,!0).empty()},e.prototype.coversTime=function(e){return!!this.iterateSpans(e,!0).where(function(t){return t.contains(e)}).first()},e.prototype.setFrequency=function(e,t){return this[e]=we.frequency(t,e),this},e.prototype.setExcluded=function(e,t){void 0===t&&(t=!0);var n=this.identifierType;return this.exclude.set(e,t,n),this.include.set(e,!t,n),this},e.prototype.setCancelled=function(e,t){return void 0===t&&(t=!0),this.cancel.set(e,t,this.identifierType),this},e.prototype.removeTime=function(e,t){void 0===t&&(t=!0);for(var n=!1,r=0;r<this.times.length&&!n;r++)(n=e.matches(this.times[r]))&&this.times.splice(r,1);return n&&(t&&this.include.removeTime(e),this.exclude.removeTime(e),this.cancel.removeTime(e),this.meta.removeTime(e)),n},e.prototype.move=function(e,t,n){return!(this.moveSingleEvent(e)||!t)&&this.moveInstance(t,e)},e.prototype.moveTime=function(e,t){for(var n=!1,r=0;r<this.times.length&&!n;r++)(n=e.matches(this.times[r]))&&this.times.splice(r,1,t);return n&&(this.include.moveTime(e,t),this.exclude.moveTime(e,t),this.cancel.moveTime(e,t),this.meta.moveTime(e,t),this.adjustDefinedSpan(!1)),n},e.prototype.moveInstance=function(e,t){var n=this.identifierType;this.exclude.set(e,!0,n),this.exclude.set(t,!1,n),this.include.set(t,!0,n),this.include.set(e,!1,n),this.cancel.get(e,!1)&&!this.cancel.get(t,!1)&&(this.cancel.set(t,!0,n),this.cancel.getIdentifier(e)===n&&this.cancel.unset(e,n));var r=this.meta.get(e,null);return r&&r!==this.meta.get(t,null)&&(this.meta.set(t,r,n),this.meta.getIdentifier(e)===n&&this.meta.unset(e,n)),!0},e.prototype.moveSingleEvent=function(e,t){if(void 0===t&&(t=!0),!this.isSingleEvent())return!1;for(var n=0,r=this.checks;n<r.length;n++){var i=r[n].property,o=e[i],u=we.frequency([o],i);this[i]=u}1===this.times.length&&t&&(this.times=[e.asTime()]),this.updateChecks();var a=this.getSingleEventSpan();return this.start&&(this.start=a.start.start()),this.end&&(this.end=a.end.end()),this.updateEnd(),!0},e.prototype.getSingleEventSpan=function(){if(!this.isSingleEvent())return null;var e=De.build(this.year.input[0],0,1),t=this.iterateDaycast(e,1,!0,!0,i.DAYS_IN_YEAR).first();return t?this.isFullDay()?this.getFullSpan(t):this.getTimeSpan(t,this.times[0]):null},e.prototype.isSingleEvent=function(){return!(this.times.length>1)&&(!!this.include.isEmpty()&&(!!this.isSingleYear()&&(!!this.isSingleDayOfYear()||(!(!this.isSingleMonth()||!this.isSingleDayOfMonth())||(!!(this.isSingleMonth()&&this.isSingleWeekOfMonth()&&this.isSingleDayOfWeek())||!(!this.isSingleWeekOfYear()||!this.isSingleDayOfWeek()))))))},e.prototype.isSingleYear=function(){return this.isSingleFrequency(this.year)},e.prototype.isSingleMonth=function(){return this.isSingleFrequency(this.month)},e.prototype.isSingleDayOfMonth=function(){return this.isSingleFrequency(this.dayOfMonth)||this.isSingleFrequency(this.lastDayOfMonth)},e.prototype.isSingleDayOfWeek=function(){return this.isSingleFrequency(this.dayOfWeek)||this.isSingleFrequency(this.day)},e.prototype.isSingleDayOfYear=function(){return this.isSingleFrequency(this.dayOfYear)},e.prototype.isSingleWeekOfMonth=function(){return this.isSingleFrequency(this.weekspanOfMonth)||this.isSingleFrequency(this.fullWeekOfMonth)||this.isSingleFrequency(this.weekOfMonth)||this.isSingleFrequency(this.lastFullWeekOfMonth)||this.isSingleFrequency(this.lastWeekspanOfMonth)},e.prototype.isSingleWeekOfYear=function(){return this.isSingleFrequency(this.weekspanOfYear)||this.isSingleFrequency(this.fullWeekOfYear)||this.isSingleFrequency(this.week)||this.isSingleFrequency(this.weekOfYear)||this.isSingleFrequency(this.lastFullWeekOfYear)||this.isSingleFrequency(this.lastWeekspanOfYear)},e.prototype.isSingleFrequency=function(e){return o.isFrequencyValueOneOf(e.input)&&1===e.input.length||o.isFrequencyValueEquals(e.input)},e.prototype.forecast=function(e,t,n,o,u,a){var s=this;void 0===t&&(t=!0),void 0===o&&(o=n),void 0===u&&(u=!1),void 0===a&&(a=i.DAYS_IN_YEAR);var f=this.identifierType,c=0,h=function(e,n){for(var i=s.iterateSpans(e,t).array(),o=u?i.length:Math.min(1,i.length),a=u?0:i.length-1,h=0;h<o;h++){var l=i[h+a],d=f.get(l.start);if(n.act([l,e,d],c++)===r.IterateAction.STOP)return!1}return!0},l=new r.Iterate(function(t){for(var n=e,r=0;r<a&&h(n,t);r++)n=n.prev()}),d=new r.Iterate(function(t){for(var n=e,r=0;r<a&&(n=n.next(),h(n,t));r++);});return l.take(o+1).reverse().append(d.take(n))},e.prototype.iterateIncludeTimes=function(e,t){var n=this;void 0===t&&(t=e);return this.include.query(e.dayIdentifier).where(function(e){var t=e[0];return e[1]&&se.Time.is(t)}).transform(function(e){var r=e[0],i=se.Time.start(r),o=n.getTimeSpan(i,i.asTime());if(o.matchesDay(t))return o})},e.prototype.clone=function(){return new e(this.toInput())},e.prototype.toInput=function(e,t,n,r,u){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=""),void 0===r&&(r=!1),void 0===u&&(u=!1);for(var a=i.DURATION_DEFAULT_UNIT(this.isFullDay()),s=this.exclude.identifiers(function(e){return e}).array(),f=this.include.identifiers(function(e){return e}).array(),c=this.cancel.identifiers(function(e){return e}).array(),h=!this.meta.isEmpty(),l={},d=[],p=0,m=this.times;p<m.length;p++){var y=m[p];d.push(t?y:n?y.format(n):y.toString())}return this.start&&(l.start=e?this.start:this.start.time),this.end&&(u||this.maxOccurrences<1)&&(l.end=e?this.end:this.end.time),this.maxOccurrences>0&&(l.maxOccurrences=this.maxOccurrences),d.length&&(l.times=d),(r||this.duration!==i.DURATION_DEFAULT)&&(l.duration=this.duration),(r||this.durationUnit!==a)&&(l.durationUnit=this.durationUnit),s.length&&(l.exclude=s),f.length&&(l.include=f),c.length&&(l.cancel=c),h&&(l.meta=o.extend({},this.meta.map)),this.dayOfWeek.input&&(l.dayOfWeek=this.dayOfWeek.input),this.dayOfMonth.input&&(l.dayOfMonth=this.dayOfMonth.input),this.lastDayOfMonth.input&&(l.lastDayOfMonth=this.lastDayOfMonth.input),this.dayOfYear.input&&(l.dayOfYear=this.dayOfYear.input),this.year.input&&(l.year=this.year.input),this.month.input&&(l.month=this.month.input),this.day.input&&(l.day=this.day.input),this.week.input&&(l.week=this.week.input),this.weekOfYear.input&&(l.weekOfYear=this.weekOfYear.input),this.weekspanOfYear.input&&(l.weekspanOfYear=this.weekspanOfYear.input),this.fullWeekOfYear.input&&(l.fullWeekOfYear=this.fullWeekOfYear.input),this.lastWeekspanOfYear.input&&(l.lastWeekspanOfYear=this.lastWeekspanOfYear.input),this.lastFullWeekOfYear.input&&(l.lastFullWeekOfYear=this.lastFullWeekOfYear.input),this.weekOfMonth.input&&(l.weekOfMonth=this.weekOfMonth.input),this.weekspanOfMonth.input&&(l.weekspanOfMonth=this.weekspanOfMonth.input),this.fullWeekOfMonth.input&&(l.fullWeekOfMonth=this.fullWeekOfMonth.input),this.lastWeekspanOfMonth.input&&(l.lastWeekspanOfMonth=this.lastWeekspanOfMonth.input),this.lastFullWeekOfMonth.input&&(l.lastFullWeekOfMonth=this.lastFullWeekOfMonth.input),l},e.prototype.describe=function(e,t,n,r,o,u,a){void 0===e&&(e="event"),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===u&&(u=!1),void 0===a&&(a=!1);var s=d.current,f="";if(t&&(this.start?(f+=s.scheduleStartingOn(this.start),this.end&&(f+=s.scheduleEndingOn(this.end))):this.end&&(f+=s.scheduleEndsOn(this.end))),f+=s.scheduleThing(e,!f),f+=this.describeRule(this.dayOfWeek.input,s.ruleDayOfWeek),f+=this.describeRule(this.day.input,s.ruleDay),f+=this.describeRule(this.lastDayOfMonth.input,s.ruleLastDayOfMonth),f+=this.describeRule(this.dayOfMonth.input,s.ruleDayOfMonth),f+=this.describeRule(this.dayOfYear.input,s.ruleDayOfYear),f+=this.describeRule(this.year.input,s.ruleYear),f+=this.describeRule(this.month.input,s.ruleMonth),f+=this.describeRule(this.week.input,s.ruleWeek),f+=this.describeRule(this.weekOfYear.input,s.ruleWeekOfYear),f+=this.describeRule(this.weekspanOfYear.input,s.ruleWeekspanOfYear),f+=this.describeRule(this.fullWeekOfYear.input,s.ruleFullWeekOfYear),f+=this.describeRule(this.lastWeekspanOfYear.input,s.ruleLastWeekspanOfYear),f+=this.describeRule(this.lastFullWeekOfYear.input,s.ruleLastFullWeekOfYear),f+=this.describeRule(this.weekOfMonth.input,s.ruleWeekOfMonth),f+=this.describeRule(this.fullWeekOfMonth.input,s.ruleFullWeekOfMonth),f+=this.describeRule(this.weekspanOfMonth.input,s.ruleWeekspanOfMonth),f+=this.describeRule(this.lastFullWeekOfMonth.input,s.ruleLastFullWeekOfMonth),f+=this.describeRule(this.lastWeekspanOfMonth.input,s.ruleLastWeekspanOfMonth),n&&this.times.length&&(f+=s.scheduleAtTimes,f+=this.describeArray(this.times,function(e){return e.format("hh:mm a")})),r&&this.duration!==i.DURATION_DEFAULT&&(f+=s.scheduleDuration(this.duration,this.durationUnit)),o){var c=this.exclude.spans().array();c.length&&(f+=s.scheduleExcludes,f+=this.describeArray(c,function(e){return e.span.summary(me.DAY)}))}if(u){var h=this.include.spans().array();h.length&&(f+=s.scheduleIncludes,f+=this.describeArray(h,function(e){return e.span.summary(me.DAY)}))}if(a){var l=this.cancel.spans().array();l.length&&(f+=s.scheduleCancels,f+=this.describeArray(l,function(e){return e.span.summary(me.DAY)}))}return f},e.prototype.describeRule=function(e,t){var n="";return o.isFrequencyValueEvery(e)?(n+=" "+t.every(e.every),e.offset&&(n+=" "+t.offset(e.offset))):o.isFrequencyValueOneOf(e)?e.length&&(n+=" "+t.oneOf(e)):o.isFrequencyValueEquals(e)&&(n+=" "+t.oneOf([e])),n},e.prototype.describeArray=function(e,t){return d.current.list(e.map(t))},e.forDay=function(t,n){void 0===n&&(n=1);var r=De.parse(t);return r?new e({year:[r.year],month:[r.month],dayOfMonth:[r.dayOfMonth],duration:n,durationUnit:"day"}):null},e.forTime=function(t,n,r,i){void 0===r&&(r=1),void 0===i&&(i="hour");var o=De.parse(t);return o?new e({year:[o.year],month:[o.month],dayOfMonth:[o.dayOfMonth],times:[n],duration:r,durationUnit:i}):null},e.forSpan=function(e){var t=e.start,n=e.minutes(),r=n%i.MINUTES_IN_DAY==0,o=n%i.MINUTES_IN_HOUR==0,u=r?n/i.MINUTES_IN_DAY:o?n/i.MINUTES_IN_HOUR:n,a=r?"day":o?"hour":"minute";return this.forTime(t,t.asTime(),u,a)},e}(),ge=new u({A:function(e){return d.current[e.hour<12?"am":"pm"].toUpperCase()},a:function(e){return d.current[e.hour<12?"am":"pm"]},H:function(e){return e.hour+""},h:function(e){return(e.hour%12||12)+""},k:function(e){return e.hour+1+""},m:function(e){return e.minute+""},s:function(e){return e.second+""},S:function(e){return o.padNumber(e.millisecond,3,1)},HH:function(e){return o.padNumber(e.hour,2)},hh:function(e){return o.padNumber(e.hour%12||12,2)},kk:function(e){return o.padNumber(e.hour+1,2)},mm:function(e){return o.padNumber(e.minute,2)},ss:function(e){return o.padNumber(e.second,2)},SS:function(e){return o.padNumber(e.millisecond,3,2)},SSS:function(e){return o.padNumber(e.millisecond,3)}},{"[":{start:"[",startEscape:"[",end:"]",endEscape:"]"},"'":{start:"'",startEscape:"''",end:"'",endEscape:"''"}}),ke=function(){function e(e,t,n,r){void 0===t&&(t=i.MINUTE_MIN),void 0===n&&(n=i.SECOND_MIN),void 0===r&&(r=i.MILLIS_MIN),this.hour=e,this.minute=t,this.second=n,this.millisecond=r}return e.prototype.format=function(e){return ge.format(e,this)},e.prototype.matches=function(e){return this.hour===e.hour&&this.minute===e.minute&&this.second===e.second&&this.millisecond===e.millisecond},e.prototype.matchesHour=function(e){return this.hour===e.hour},e.prototype.matchesMinute=function(e){return this.hour===e.hour&&this.minute===e.minute},e.prototype.matchesSecond=function(e){return this.hour===e.hour&&this.minute===e.minute&&this.second===e.second},e.prototype.set=function(t){var n=e.parse(t),r=!!n;return r&&(this.hour=n.hour,this.minute=n.minute,this.second=n.second,this.millisecond=n.millisecond),r},e.prototype.toMilliseconds=function(){return this.hour*i.MILLIS_IN_HOUR+this.minute*i.MILLIS_IN_MINUTE+this.second*i.MILLIS_IN_SECOND+this.millisecond},e.prototype.toString=function(){return this.millisecond?this.format("HH:mm:ss.SSS"):this.second?this.format("HH:mm:ss"):this.minute?this.format("HH:mm"):this.format("HH")},e.prototype.toIdentifier=function(){return this.hour+100*this.minute+1e4*this.second+1e7*this.millisecond},e.prototype.toObject=function(){var e={hour:this.hour};return this.minute&&(e.minute=this.minute),this.second&&(e.second=this.second),this.millisecond&&(e.millisecond=this.millisecond),e},e.parse=function(e){return we.time(e)},e.fromString=function(e){var t=this.REGEX.exec(e);if(!t)return null;var n=parseInt(t[1])||0,r=parseInt(t[2])||0,i=parseInt(t[3])||0,o=parseInt(t[4])||0;return this.build(n,r,i,o)},e.fromIdentifier=function(e){var t=e%100,n=Math.floor(e/100)%100,r=Math.floor(e/1e4)%100,i=Math.floor(e/1e7)%1e3;return this.build(t,n,r,i)},e.build=function(t,n,r,o){return void 0===n&&(n=i.MINUTE_MIN),void 0===r&&(r=i.SECOND_MIN),void 0===o&&(o=i.MILLIS_MIN),new e(t,n,r,o)},e.REGEX=/^(\d\d?):?(\d\d)?:?(\d\d)?\.?(\d\d\d)?$/,e}(),we=function(){function e(){}return e.frequency=function(e,t){var n=function(e){return!0};if(n.given=!1,o.isFrequencyValueEvery(e)){var r=e.every,i=(e.offset||0)%r;(n=function(e){return e%r===i}).given=!0}if(o.isFrequencyValueOneOf(e)){for(var u={},a=0,s=e;a<s.length;a++){var f=s[a];u[f]=!0}(n=function(e){return!!u[e]}).given=!0}return o.isFrequencyValueEquals(e)&&((n=function(t){return t===e}).given=!0),n.input=o.coalesce(e,null),n.property=t,n},e.day=function(e){return o.isNumber(e)?De.unix(e):o.isString(e)?De.fromString(e):e instanceof De?e:o.isArray(e)?De.fromArray(e):o.isObject(e)?De.fromObject(e):!0===e?De.today():null},e.time=function(e){return e instanceof ke?e:o.isNumber(e)?ke.fromIdentifier(e):o.isString(e)?ke.fromString(e):o.isObject(e)&&o.isNumber(e.hour)?new ke(e.hour,e.minute,e.second,e.millisecond):null},e.times=function(e){var t=[];if(o.isArray(e)){for(var n=0,r=e;n<r.length;n++){var i=r[n],u=this.time(i);u&&t.push(u)}t.sort(function(e,t){return e.toMilliseconds()-t.toMilliseconds()})}return t},e.modifier=function(e,t,n,r){void 0===n&&(n=function(e){return e}),void 0===r&&(r=new ve);var i={};if(o.isArray(e))for(var u=0,a=e;u<a.length;u++){(s=a[u])instanceof De?i[s.dayIdentifier]=t:o.isNumber(s)?i[s]=t:o.isString(s)&&(i[s]=t)}if(o.isObject(e))for(var s in e)i[s]=n(e[s]);return r.map=i,r},e.unit=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)return i.DURATION_DEFAULT_UNIT(t);switch(e.toLowerCase()){case"ms":case"milli":case"millis":case"millisecond":case"milliseconds":return"millis";case"s":case"sec":case"secs":case"second":case"seconds":return"second";case"m":case"min":case"mins":case"minute":case"minutes":return"minute";case"h":case"hr":case"hour":case"hours":return"hour";case"d":case"day":case"days":return"day";case"w":case"wk":case"week":case"weeks":return"week";case"mon":case"month":case"months":return"month";case"q":case"quarter":case"quarters":return"quarter";case"y":case"yr":case"yrs":case"year":case"years":return"year"}return i.DURATION_DEFAULT_UNIT(t)},e.schedule=function(e,t,n){if(void 0===t&&(t=function(e){return e}),void 0===n&&(n=new Oe),e instanceof Oe)return e;var r=this.day(e.on),u=this.times(e.times),a=0===u.length;return r&&(e.start=r.start(),e.end=r.end(),e.year=[r.year],e.month=[r.month],e.dayOfMonth=[r.dayOfMonth]),n.times=u,n.duration=o.coalesce(e.duration,i.DURATION_DEFAULT),n.durationUnit=this.unit(e.durationUnit,a),n.start=this.day(e.start),n.end=this.day(e.end),n.maxOccurrences=o.coalesce(e.maxOccurrences,0),n.exclude=this.modifier(e.exclude,!0,void 0,n.exclude),n.include=this.modifier(e.include,!0,void 0,n.include),n.cancel=this.modifier(e.cancel,!0,void 0,n.cancel),n.meta=this.modifier(e.meta,null,t,n.meta),n.year=this.frequency(e.year,"year"),n.month=this.frequency(e.month,"month"),n.day=this.frequency(e.day,"day"),n.quarter=this.frequency(e.quarter,"quarter"),n.week=this.frequency(e.week,"week"),n.weekOfYear=this.frequency(e.weekOfYear,"weekOfYear"),n.weekspanOfYear=this.frequency(e.weekspanOfYear,"weekspanOfYear"),n.fullWeekOfYear=this.frequency(e.fullWeekOfYear,"fullWeekOfYear"),n.lastWeekspanOfYear=this.frequency(e.lastWeekspanOfYear,"lastWeekspanOfYear"),n.lastFullWeekOfYear=this.frequency(e.lastFullWeekOfYear,"lastFullWeekOfYear"),n.weekOfMonth=this.frequency(e.weekOfMonth,"weekOfMonth"),n.weekspanOfMonth=this.frequency(e.weekspanOfMonth,"weekspanOfMonth"),n.fullWeekOfMonth=this.frequency(e.fullWeekOfMonth,"fullWeekOfMonth"),n.lastWeekspanOfMonth=this.frequency(e.lastWeekspanOfMonth,"lastWeekspanOfMonth"),n.lastFullWeekOfMonth=this.frequency(e.lastFullWeekOfMonth,"lastFullWeekOfMonth"),n.dayOfWeek=this.frequency(e.dayOfWeek,"dayOfWeek"),n.dayOfMonth=this.frequency(e.dayOfMonth,"dayOfMonth"),n.lastDayOfMonth=this.frequency(e.lastDayOfMonth,"lastDayOfMonth"),n.dayOfYear=this.frequency(e.dayOfYear,"dayOfYear"),n.updateDurationInDays(),n.updateChecks(),n.updateEnd(),n},e.givenFrequency=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];i.given&&t.push(i)}return t},e.event=function(e,t,n){if(void 0===t&&(t=function(e){return e}),void 0===n&&(n=function(e){return e}),e instanceof ye)return e;if(!e.schedule)return null;var r=this.schedule(e.schedule,n);return new ye(r,t(e.data),e.id,e.visible)},e.cron=function(e,t){return void 0===t&&(t=new Oe),t},e}(),De=function(){function e(e){this._quarter=null,this._dayOfYear=null,this._dayOfWeek=null,this._lastDayOfMonth=null,this._week=null,this._weekOfYear=null,this._weekspanOfYear=null,this._fullWeekOfYear=null,this._lastWeekspanOfYear=null,this._lastFullWeekOfYear=null,this._weekOfMonth=null,this._weekspanOfMonth=null,this._fullWeekOfMonth=null,this._lastWeekspanOfMonth=null,this._lastFullWeekOfMonth=null,this._timeIdentifier=null,this._dayIdentifier=null,this._weekIdentifier=null,this._monthIdentifier=null,this._quarterIdentifier=null,this.date=e,this.time=e.valueOf(),this.millis=e.getMilliseconds(),this.seconds=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.month=e.getMonth(),this.year=e.getFullYear(),this.day=e.getDay(),this.dayOfMonth=e.getDate(),this._locale=d.ref}return Object.defineProperty(e.prototype,"quarter",{get:function(){return this.getValue("_quarter",V)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfYear",{get:function(){return this.getValue("_dayOfYear",j)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfWeek",{get:function(){return this.getLocaleValue("_dayOfWeek",F)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastDayOfMonth",{get:function(){return this.getValue("_lastDayOfMonth",w)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"week",{get:function(){return this.getLocaleValue("_week",E)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekOfYear",{get:function(){return this.getLocaleValue("_weekOfYear",S)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekspanOfYear",{get:function(){return this.getValue("_weekspanOfYear",Y)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWeekOfYear",{get:function(){return this.getLocaleValue("_fullWeekOfYear",I)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastWeekspanOfYear",{get:function(){return this.getValue("_lastWeekspanOfYear",D)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFullWeekOfYear",{get:function(){return this.getLocaleValue("_lastFullWeekOfYear",W)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekOfMonth",{get:function(){return this.getLocaleValue("_weekOfMonth",L)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekspanOfMonth",{get:function(){return this.getValue("_weekspanOfMonth",b)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWeekOfMonth",{get:function(){return this.getLocaleValue("_fullWeekOfMonth",_)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastWeekspanOfMonth",{get:function(){return this.getValue("_lastWeekspanOfMonth",N)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFullWeekOfMonth",{get:function(){return this.getLocaleValue("_lastFullWeekOfMonth",A)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeIdentifier",{get:function(){var e=this;return this.getValue("_timeIdentifier",function(){return se.Time.get(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayIdentifier",{get:function(){var e=this;return this.getValue("_dayIdentifier",function(){return se.Day.get(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekIdentifier",{get:function(){var e=this;return this.getValue("_weekIdentifier",function(){return se.Week.get(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthIdentifier",{get:function(){var e=this;return this.getValue("_monthIdentifier",function(){return se.Month.get(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"quarterIdentifier",{get:function(){var e=this;return this.getValue("_quarterIdentifier",function(){return se.Quarter.get(e)})},enumerable:!0,configurable:!0}),e.prototype.getLocaleValue=function(e,t){return this.checkForUpdate(),null===this[e]&&(this[e]=t(this.date,this._locale.value)),this[e]},e.prototype.getValue=function(e,t){return null===this[e]&&(this[e]=t(this.date)),this[e]},e.prototype.checkForUpdate=function(){this._locale.dirty&&(this._locale=d.ref,this.resetLocaleCache())},e.prototype.setLocale=function(e){var t=d.get(e);return t!==this._locale.value&&(this._locale=this._locale.getUpdate(t),this.resetLocaleCache()),this},e.prototype.getLocale=function(){return this.checkForUpdate(),this._locale.value},e.prototype.clearLocale=function(){d.current!==this._locale.value&&(this._locale=d.ref,this.resetLocaleCache())},e.prototype.resetLocaleCache=function(){this._dayOfWeek=null,this._weekOfYear=null,this._fullWeekOfYear=null,this._lastFullWeekOfYear=null,this._weekOfMonth=null,this._fullWeekOfMonth=null,this._lastFullWeekOfMonth=null},e.prototype.sameDay=function(e){return this.dayIdentifier===e.dayIdentifier},e.prototype.sameMonth=function(e){return this.monthIdentifier===e.monthIdentifier},e.prototype.sameWeek=function(e){return this.weekIdentifier===e.weekIdentifier},e.prototype.sameYear=function(e){return this.year===e.year},e.prototype.sameQuarter=function(e){return this.quarterIdentifier===e.quarterIdentifier},e.prototype.sameHour=function(e){return this.dayIdentifier===e.dayIdentifier&&this.hour===e.hour},e.prototype.sameMinute=function(e){return this.timeIdentifier===e.timeIdentifier},e.prototype.sameTime=function(e){return this.hour===e.hour&&this.minute===e.minute&&this.seconds===e.second&&this.millis===e.millisecond},e.prototype.compare=function(e,t){return k(this.date,e.date,t)},e.prototype.isBefore=function(e,t){return k(this.date,e.date,t)<0},e.prototype.isSameOrBefore=function(e,t){return k(this.date,e.date,t)<=0},e.prototype.isAfter=function(e,t){return k(this.date,e.date,t)>0},e.prototype.isSameOrAfter=function(e,t){return k(this.date,e.date,t)>=0},e.prototype.max=function(e){return k(this.date,e.date)>0?this:e},e.prototype.min=function(e){return k(this.date,e.date)<0?this:e},e.prototype.between=function(e,t,n,r){return void 0===n&&(n=H.DOWN),void 0===r&&(r=!0),ie(M[t](this.date,e.date),n,r)},e.prototype.millisBetween=function(e,t,n){return void 0===t&&(t=H.DOWN),void 0===n&&(n=!0),this.between(e,"millis",t,n)},e.prototype.secondsBetween=function(e,t,n){return void 0===t&&(t=H.DOWN),void 0===n&&(n=!0),this.between(e,"second",t,n)},e.prototype.minutesBetween=function(e,t,n){return void 0===t&&(t=H.DOWN),void 0===n&&(n=!0),this.between(e,"minute",t,n)},e.prototype.hoursBetween=function(e,t,n){return void 0===t&&(t=H.DOWN),void 0===n&&(n=!0),this.between(e,"hour",t,n)},e.prototype.daysBetween=function(e,t,n){return void 0===t&&(t=H.DOWN),void 0===n&&(n=!0),this.between(e,"day",t,n)},e.prototype.weeksBetween=function(e,t,n){return void 0===t&&(t=H.DOWN),void 0===n&&(n=!0),this.between(e,"week",t,n)},e.prototype.monthsBetween=function(e,t,n){return void 0===t&&(t=H.DOWN),void 0===n&&(n=!0),this.between(e,"month",t,n)},e.prototype.yearsBetween=function(e,t,n){return void 0===t&&(t=H.DOWN),void 0===n&&(n=!0),this.between(e,"year",t,n)},e.prototype.isBetween=function(e,t,n,r){return void 0===n&&(n=!0),!this.isBefore(e)&&!(n?this.isSameOrAfter(t):this.isAfter(t))},e.prototype.mutate=function(t){var n=this.toDate(),r=t(n);return r instanceof Date?new e(r):new e(n)},e.prototype.add=function(e,t){return void 0===t&&(t="millis"),this.mutate(function(n){return v[t](n,e)})},e.prototype.relative=function(e){return this.add(e)},e.prototype.relativeDays=function(e){return this.add(e,"day")},e.prototype.prev=function(e){return void 0===e&&(e=1),this.relativeDays(-e)},e.prototype.next=function(e){return void 0===e&&(e=1),this.relativeDays(e)},e.prototype.withDayOfMonth=function(e){return this.mutate(function(t){return t.setDate(e)})},e.prototype.withDay=function(e){var t=this;return this.mutate(function(n){return n.setDate(n.getDate()+(e-t.date.getDay()))})},e.prototype.withDayOfWeek=function(e){var t=this;return this.mutate(function(n){return n.setDate(n.getDate()+(e-F(t.date,t.getLocale())))})},e.prototype.withDayOfYear=function(e){var t=this;return this.mutate(function(n){return n.setDate(n.getDate()+(e-j(t.date)))})},e.prototype.withMonth=function(e){return this.mutate(function(t){return t.setMonth(e)})},e.prototype.relativeMonths=function(e){return this.add(e,"month")},e.prototype.prevMonth=function(e){return void 0===e&&(e=1),this.relativeMonths(-e)},e.prototype.nextMonth=function(e){return void 0===e&&(e=1),this.relativeMonths(e)},e.prototype.withWeek=function(e,t){return this.add((e-t)*i.DAYS_IN_WEEK,"day")},e.prototype.withWeekOfYear=function(e){return this.withWeek(e,this.weekOfYear)},e.prototype.withFullWeekOfYear=function(e){return this.withWeek(e,this.fullWeekOfYear)},e.prototype.withWeekspanOfYear=function(e){return this.withWeek(e,this.weekspanOfYear)},e.prototype.withWeekOfMonth=function(e){return this.withWeek(e,this.weekOfMonth)},e.prototype.withWeekspanOfMonth=function(e){return this.withWeek(e,this.weekspanOfMonth)},e.prototype.withFullWeekOfMonth=function(e){return this.withWeek(e,this.fullWeekOfMonth)},e.prototype.relativeWeeks=function(e){return this.add(e,"week")},e.prototype.prevWeek=function(e){return void 0===e&&(e=1),this.relativeWeeks(-e)},e.prototype.nextWeek=function(e){return void 0===e&&(e=1),this.relativeWeeks(e)},e.prototype.withYear=function(e){return this.mutate(function(t){return t.setFullYear(e)})},e.prototype.relativeYears=function(e){return this.add(e,"year")},e.prototype.prevYear=function(e){return void 0===e&&(e=1),this.relativeYears(-e)},e.prototype.nextYear=function(e){return void 0===e&&(e=1),this.relativeYears(e)},e.prototype.withHour=function(e){return this.mutate(function(t){return t.setHours(e)})},e.prototype.relativeHours=function(e){return this.add(e,"hour")},e.prototype.prevHour=function(e){return void 0===e&&(e=1),this.relativeHours(-e)},e.prototype.nextHour=function(e){return void 0===e&&(e=1),this.relativeHours(e)},e.prototype.withTimes=function(e,t,n,r){return void 0===e&&(e=i.HOUR_MIN),void 0===t&&(t=i.MINUTE_MIN),void 0===n&&(n=i.SECOND_MIN),void 0===r&&(r=i.MILLIS_MIN),this.mutate(function(i){return i.setHours(e,t,n,r)})},e.prototype.withTime=function(e){return this.withTimes(e.hour,e.minute,e.second,e.millisecond)},e.prototype.asTime=function(){return new ke(this.hour,this.minute,this.seconds,this.millis)},e.prototype.startOf=function(e){var t=this;return this.mutate(function(n){return m[e](n,t.getLocale())})},e.prototype.endOf=function(e,t){var n=this;return void 0===t&&(t=!1),t?this.mutate(function(t){m[e](t,n.getLocale()),v[e](t,1)}):this.mutate(function(t){return y[e](t,n.getLocale())})},e.prototype.start=function(){return this.startOf("day")},e.prototype.isStart=function(){return this.hour===i.HOUR_MIN&&this.minute===i.MINUTE_MIN&&this.seconds===i.SECOND_MIN&&this.millis===i.MILLIS_MIN},e.prototype.end=function(e){return void 0===e&&(e=!0),this.endOf("day",e)},e.prototype.isEnd=function(){return this.hour===i.HOUR_MAX&&this.minute===i.MINUTE_MAX&&this.seconds===i.SECOND_MAX&&this.millis===i.MILLIS_MAX},e.prototype.startOfHour=function(){return this.startOf("hour")},e.prototype.isStartOfHour=function(){return this.minute===i.MINUTE_MIN&&this.seconds===i.SECOND_MIN&&this.millis===i.MILLIS_MIN},e.prototype.endOfHour=function(e){return void 0===e&&(e=!0),this.endOf("hour",e)},e.prototype.isEndOfHour=function(){return this.minute===i.MINUTE_MAX&&this.seconds===i.SECOND_MAX&&this.millis===i.MILLIS_MAX},e.prototype.startOfWeek=function(){return this.startOf("week")},e.prototype.isStartOfWeek=function(){return this.dayOfWeek===i.WEEKDAY_MIN},e.prototype.endOfWeek=function(e){return void 0===e&&(e=!0),this.endOf("week",e)},e.prototype.isEndOfWeek=function(){return this.dayOfWeek===i.WEEKDAY_MAX},e.prototype.startOfMonth=function(){return this.startOf("month")},e.prototype.isStartOfMonth=function(){return this.dayOfMonth===i.DAY_MIN},e.prototype.endOfMonth=function(e){return void 0===e&&(e=!0),this.endOf("month",e)},e.prototype.isEndOfMonth=function(){return this.dayOfMonth===this.daysInMonth()},e.prototype.startOfYear=function(){return this.startOf("year")},e.prototype.isStartOfYear=function(){return this.month===i.MONTH_MIN&&this.dayOfMonth===i.DAY_MIN},e.prototype.endOfYear=function(e){return void 0===e&&(e=!0),this.endOf("year",e)},e.prototype.isEndOfYear=function(){return this.month===i.MONTH_MAX&&this.dayOfMonth===i.DAY_MAX},e.prototype.daysInMonth=function(){return z(this.date)},e.prototype.daysInYear=function(){return q(this.date)},e.prototype.weeksInYear=function(){return e=this.date,void 0===t&&(t=d.current),S(g(e,Q),t)+1;var e,t},e.prototype.format=function(e,t){return void 0===t&&(t=!1),a.format(e,[this,this.getLocale()],t)},e.prototype.utc=function(e){return this},e.prototype.toDate=function(){return new Date(this.date.getTime())},e.prototype.toArray=function(){return[this.year,this.month,this.dayOfMonth,this.hour,this.minute,this.seconds,this.millis]},e.prototype.toJSON=function(){return this.date.toJSON()},e.prototype.toISOString=function(e){return void 0===e&&(e=!1),this.date.toISOString()},e.prototype.toObject=function(){throw new Error("toObject is no longer supported")},e.prototype.toString=function(){return this.date.toString()},e.prototype.isDST=function(){return e=this.date,(t=U(e))>U(g(e,function(e){return e.setMonth(0)}))||t>U(g(e,function(e){return e.setMonth(5)}));var e,t},e.prototype.isLeapYear=function(){return C(this.date)},e.prototype.offset=function(){return U(this.date)},e.now=function(){return new e(new Date)},e.today=function(){return this.now().start()},e.tomorrow=function(){return this.today().next()},e.fromDate=function(t){return isFinite(t.getTime())?new e(t):null},e.unix=function(e){return this.fromDate(new Date(e))},e.unixSeconds=function(e){return this.fromDate(new Date(e*i.MILLIS_IN_SECOND))},e.parse=function(e){return we.day(e)},e.fromString=function(e){return this.fromDate(new Date(e))},e.fromFormat=function(e,t){throw new Error("fromFormat is no longer supported")},e.fromObject=function(e){throw new Error("fromObject is no longer supported")},e.fromArray=function(e){return this.fromDate(new Date(e[0],e[1],o.coalesce(e[2],i.DAY_MIN),o.coalesce(e[3],i.HOUR_MIN),o.coalesce(e[4],i.MINUTE_MIN),o.coalesce(e[5],i.SECOND_MIN),o.coalesce(e[6],i.MILLIS_MIN)))},e.fromDayIdentifier=function(e){var t=e%100,n=Math.floor(e/100)%100-1,r=Math.floor(e/1e4);return this.build(r,n,t)},e.build=function(t,n,r,o,u,a,s){return void 0===r&&(r=i.DAY_MIN),void 0===o&&(o=i.HOUR_MIN),void 0===u&&(u=i.MINUTE_MIN),void 0===a&&(a=i.SECOND_MIN),void 0===s&&(s=i.MILLIS_MIN),new e(new Date(t,n,r,o,u,a,s))},e}(),Se=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentDay=!1,t.currentWeek=!1,t.currentMonth=!1,t.currentYear=!1,t.currentOffset=0,t.selectedDay=!1,t.selectedWeek=!1,t.selectedMonth=!1,t.selectedYear=!1,t.inCalendar=!1,t.events=[],t}return Se(t,e),t.prototype.iterateEvents=function(){return r.Iterate.array(this.events)},t.prototype.updateCurrent=function(e){return this.currentDay=this.sameDay(e),this.currentWeek=this.sameWeek(e),this.currentMonth=this.sameMonth(e),this.currentYear=this.sameYear(e),this.currentOffset=this.daysBetween(e,H.DOWN,!1),this},t.prototype.updateSelected=function(e){return this.selectedDay=e.matchesDay(this),this.selectedWeek=e.matchesWeek(this),this.selectedMonth=e.matchesMonth(this),this.selectedYear=e.matchesYear(this),this},t.prototype.clearSelected=function(){return this.selectedDay=this.selectedWeek=this.selectedMonth=this.selectedYear=!1,this},t}(De),Ye=function(){function e(e,t,n,r){this.row=0,this.col=0,this.id=e,this.event=t,this.time=n,this.day=r,this.fullDay=t.schedule.isFullDay(),this.meta=t.schedule.getMeta(n.start),this.cancelled=t.schedule.isCancelled(n.start),this.starting=n.isPoint||n.start.sameDay(r),this.ending=n.isPoint||n.end.relative(-1).sameDay(r)}return Object.defineProperty(e.prototype,"scheduleId",{get:function(){return Math.floor(this.id/i.MAX_EVENTS_PER_DAY)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this.time.start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.time.end},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"schedule",{get:function(){return this.event.schedule},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.event.data},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"identifier",{get:function(){return this.identifierType.get(this.start)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"identifierType",{get:function(){return this.schedule.identifierType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startDelta",{get:function(){return this.time.startDelta(this.day)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endDelta",{get:function(){return this.time.endDelta(this.day)},enumerable:!0,configurable:!0}),e.prototype.getTimeBounds=function(e,t,n,r,i,o){return void 0===e&&(e=1),void 0===t&&(t=1),void 0===n&&(n=.1),void 0===r&&(r=!0),void 0===i&&(i=0),void 0===o&&(o=0),this.time.getBounds(this.day,e,t,this.col*n,r,i,o)},e.prototype.cancel=function(e){return void 0===e&&(e=!0),this.schedule.setCancelled(this.start,e),this.cancelled=e,this},e.prototype.exclude=function(e){return void 0===e&&(e=!0),this.schedule.setExcluded(this.start,e),this},e.prototype.move=function(e){return this.schedule.move(e,this.start)},e}(),Ie=function(){function e(e,t,n,r,i,u,a){this.fill=!1,this.minimumSize=0,this.repeatCovers=!0,this.listTimes=!1,this.eventsOutside=!1,this.updateRows=!1,this.updateColumns=!1,this.eventSorter=null,this.parseMeta=function(e){return e},this.parseData=function(e){return e},this.selection=null,this.days=[],this.events=[],this.visible=[],this.span=new ue(e,t),this.filled=new ue(e,t),this.type=n,this.size=r,this.moveStart=i,this.moveEnd=u,o.isDefined(a)?this.set(a):this.refresh()}return e.prototype.set=function(t){var n=o.isDefined(t.type)&&t.type!==this.type,r=o.isDefined(t.size)&&t.size!==this.size;if(n||r){var i=o.coalesce(t.otherwiseFocus,e.DEFAULT_FOCUS),u=o.coalesce(t.preferToday,!0),a=o.coalesce(t.size,this.size),s=o.coalesce(t.type,this.type),f=De.today();(!(p=o.coalesce(t.around,this.days[Math.floor((this.days.length-1)*i)]))||u&&this.span.matchesDay(f))&&(p=f);var c=(l=e.TYPES[s]).getStart(De.parse(p),a,i),h=l.getEnd(c,a,i);this.span.start=c,this.span.end=h,this.type=s,this.size=a,this.moveStart=l.moveStart,this.moveEnd=l.moveEnd}else if(t.around){var l,d=o.coalesce(t.otherwiseFocus,e.DEFAULT_FOCUS),p=De.parse(t.around);s=this.type,a=this.size,c=(l=e.TYPES[s]).getStart(p,a,d),h=l.getEnd(c,a,d);this.span.start=c,this.span.end=h}return this.fill=o.coalesce(t.fill,this.fill),this.minimumSize=o.coalesce(t.minimumSize,this.minimumSize),this.repeatCovers=o.coalesce(t.repeatCovers,this.repeatCovers),this.listTimes=o.coalesce(t.listTimes,this.listTimes),this.eventsOutside=o.coalesce(t.eventsOutside,this.eventsOutside),this.updateRows=o.coalesce(t.updateRows,this.updateRows),this.updateColumns=o.coalesce(t.updateColumns,this.updateColumns),this.eventSorter=o.coalesce(t.eventSorter,this.eventSorter),this.parseMeta=o.coalesce(t.parseMeta,this.parseMeta),this.parseData=o.coalesce(t.parseData,this.parseData),o.isArray(t.events)&&this.setEvents(t.events,!0),t.delayRefresh||this.refresh(),this},e.prototype.withMinimumSize=function(e){return this.minimumSize=e,this.refresh(),this},e.prototype.withRepeatCovers=function(e){return this.repeatCovers=e,this.refreshEvents(),this},e.prototype.withListTimes=function(e){return this.listTimes=e,this.refreshEvents(),this},e.prototype.withEventsOutside=function(e){return this.eventsOutside=e,this.refreshEvents(),this},e.prototype.withUpdateRows=function(e,t){return void 0===t&&(t=!0),this.updateRows=e,t&&e&&this.refreshRows(),this},e.prototype.withUpdateColumns=function(e,t){return void 0===t&&(t=!0),this.updateColumns=e,t&&e&&this.refreshColumns(),this},Object.defineProperty(e.prototype,"start",{get:function(){return this.span.start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.span.end},enumerable:!0,configurable:!0}),e.prototype.summary=function(e,t,n,r,i){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===i&&(i=" - "),this.span.summary(this.type,e,t,n,r,i)},e.prototype.split=function(t){var n=this;return void 0===t&&(t=1),new r.Iterate(function(i){for(var o=n.start,u=n.moveEnd(n.end,t-n.size),a=0;a<n.size;a++){var s=new e(o,u,n.type,t,n.moveStart,n.moveEnd,n);if(i.act(s,a)===r.IterateAction.STOP)return;o=n.moveStart(o,t),u=n.moveEnd(u,t)}})},e.prototype.refresh=function(e){return void 0===e&&(e=De.today()),this.length=this.span.days(H.UP,!0),this.resetDays(),this.refreshCurrent(e),this.refreshSelection(),this.refreshVisible(),this.refreshEvents(),this},e.prototype.resetFilled=function(){return this.filled.start=this.fill?this.start.startOfWeek():this.start,this.filled.end=this.fill?this.end.endOfWeek():this.end,this},e.prototype.resetDays=function(){this.resetFilled();for(var e=this.days,t=this.filled,n=t.days(H.UP),r=Math.max(this.minimumSize,n),i=t.start,o=0;o<r;o++){var u=e[o];u&&u.sameDay(i)||(u=new Ee(i.date),o<e.length?e.splice(o,1,u):e.push(u)),u.inCalendar=this.span.contains(u),i=i.next()}return e.length>r&&e.splice(r,e.length-r),this},e.prototype.refreshVisible=function(){var e=this.filled.start,t=this.filled.end;return this.visible=this.events.filter(function(n){return n.visible&&n.schedule.matchesRange(e,t)}),this},e.prototype.refreshCurrent=function(e){return void 0===e&&(e=De.today()),this.iterateDays().each(function(t){return t.updateCurrent(e)}),this},e.prototype.refreshSelection=function(){var e=this;return this.iterateDays().each(function(t){e.selection?t.updateSelected(e.selection):t.clearSelected()}),this},e.prototype.refreshEvents=function(){var e=this;return this.iterateDays().each(function(t){(t.inCalendar||e.eventsOutside)&&(t.events=e.eventsForDay(t,e.listTimes,e.repeatCovers))}),this.updateRows&&this.refreshRows(),this.updateColumns&&this.refreshColumns(),this},e.prototype.refreshRows=function(){var e=this.listTimes,t={};return this.iterateDays().each(function(n){0===n.dayOfWeek&&(t={});for(var r={},i=0,o=n.events;i<o.length;i++){var u=o[i];e&&!u.fullDay||u.id in t&&(r[u.row=t[u.id]]=!0)}for(var a=0,s=0,f=n.events;s<f.length;s++){var c=f[s];if(!(e&&!c.fullDay||c.id in t)){for(;r[a];)a++;t[c.id]=c.row=a,a++}}}),this},e.prototype.refreshColumns=function(){return this.iterateDays().each(function(e){for(var t=[],n=0,r=e.events;n<r.length;n++){var i=r[n];i.fullDay||(t.push({event:i,time:i.time.start.time,start:!0,parent:null}),t.push({event:i,time:i.time.end.time-1,start:!1,parent:null}))}t.sort(function(e,t){return e.time-t.time});for(var o=null,u=0,a=t;u<a.length;u++){(c=a[u]).start?(c.parent=o,o=c):o&&(o=o.parent)}for(var s=0,f=t;s<f.length;s++){var c;(c=f[s]).start&&(c.event.col=c.parent?c.parent.event.col+1:0)}}),this},e.prototype.getDay=function(e){var t=De.parse(e);if(t){var n=t.start().daysBetween(this.days[0],H.DOWN,!1);return this.days[n]}return null},e.prototype.iterateDays=function(){var e=this;return new r.Iterate(function(t){for(var n=e.days,i=0;i<n.length;i++)switch(t.act(n[i],i)){case r.IterateAction.STOP:return}})},e.prototype.eventsForDay=function(e,t,n,r){void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=this.eventSorter);for(var o=[],u=this.visible,a=function(r){var a=u[r],s=a.schedule,f=r*i.MAX_EVENTS_PER_DAY,c=0;s.iterateSpans(e,n).each(function(n,r,i){o.push(new Ye(f+c++,a,n,e)),t||i.stop()})},s=0;s<u.length;s++)a(s);return r&&o.sort(r),o},e.prototype.findEvent=function(e){for(var t=0,n=this.events;t<n.length;t++){var r=n[t];if(r===e||r.schedule===e||r.data===e||r.id===e)return r}return null},e.prototype.removeEvents=function(e,t){if(void 0===e&&(e=null),void 0===t&&(t=!1),e)for(var n=0,r=e;n<r.length;n++){var i=r[n];this.removeEvent(i,!0)}else this.events=[];return this.refreshVisible(),t||this.refreshEvents(),this},e.prototype.removeEvent=function(e,t){void 0===t&&(t=!1);var n=this.findEvent(e);return n&&(this.events.splice(this.events.indexOf(n),1),this.refreshVisible(),t||this.refreshEvents()),this},e.prototype.addEvent=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=we.event(e,this.parseData,this.parseMeta);if(!t&&this.findEvent(r))return this;return this.events.push(r),this.refreshVisible(),n||this.refreshEvents(),this},e.prototype.addEvents=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);for(var r=0,i=e;r<i.length;r++){var o=i[r];this.addEvent(o,t,!0)}return n||this.refreshEvents(),this},e.prototype.setEvents=function(e,t){void 0===t&&(t=!1);for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r],u=we.event(o,this.parseData,this.parseMeta);u&&n.push(u)}return this.events=n,this.refreshVisible(),t||this.refreshEvents(),this},e.prototype.select=function(e,t){return void 0===t&&(t=e),this.selection=new ue(e,t),this.refreshSelection(),this},e.prototype.unselect=function(){return this.selection=null,this.refreshSelection(),this},e.prototype.move=function(e,t){return void 0===e&&(e=this.size),void 0===t&&(t=!1),this.span.start=this.moveStart(this.start,e),this.span.end=this.moveEnd(this.end,e),t||this.refresh(),this},e.prototype.next=function(e,t){return void 0===e&&(e=this.size),void 0===t&&(t=!1),this.move(e,t)},e.prototype.prev=function(e,t){return void 0===e&&(e=this.size),void 0===t&&(t=!1),this.move(-e,t)},e.prototype.toInput=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=function(e){return e}),void 0===n&&(n=function(e){return e});var r={};r.type=this.type,r.size=this.size,r.fill=this.fill,r.minimumSize=this.minimumSize,r.repeatCovers=this.repeatCovers,r.listTimes=this.listTimes,r.eventsOutside=this.eventsOutside,r.updateRows=this.updateRows,r.updateColumns=this.updateColumns,r.around=e?this.span.start.time:this.span.start,r.events=[];for(var i=0,u=this.events;i<u.length;i++){var a=u[i];if(e){var s={};o.isDefined(a.id)&&(s.id=a.id),o.isDefined(a.data)&&(s.data=t(a.data)),a.visible||(s.visible=a.visible),s.schedule=a.schedule.toInput();var f=s.schedule.meta;if(f)for(var c in f)f[c]=n(f[c]);r.events.push(s)}else r.events.push(a)}return r},e.fromInput=function(t){var n=De.today();return new e(n,n,null,1,null,null,t)},e.forType=function(t,n,r,i,o){void 0===n&&(n=1),void 0===r&&(r=De.today()),void 0===i&&(i=.49999);var u=this.TYPES[t],a=u.getStart(r,n,i);return new e(a,u.getEnd(a,n,i),t,n,u.moveStart,u.moveEnd,o||u.defaultInput)},e.days=function(e,t,n,r){return void 0===e&&(e=1),void 0===t&&(t=De.today()),void 0===n&&(n=.4999),this.forType(me.DAY,e,t,n,r)},e.weeks=function(e,t,n,r){return void 0===e&&(e=1),void 0===t&&(t=De.today()),void 0===n&&(n=.4999),this.forType(me.WEEK,e,t,n,r)},e.months=function(e,t,n,r){return void 0===e&&(e=1),void 0===t&&(t=De.today()),void 0===n&&(n=.4999),this.forType(me.MONTH,e,t,n,r)},e.years=function(e,t,n,r){return void 0===e&&(e=1),void 0===t&&(t=De.today()),void 0===n&&(n=.4999),this.forType(me.YEAR,e,t,n,r)},e.DEFAULT_FOCUS=.4999,e.TYPES=((Me={})[me.DAY]={getStart:function(e,t,n){return e.start().relativeDays(-Math.floor(t*n))},getEnd:function(e,t,n){return e.relativeDays(t-1).end()},moveStart:function(e,t){return e.relativeDays(t)},moveEnd:function(e,t){return e.relativeDays(t)},defaultInput:void 0},Me[me.WEEK]={getStart:function(e,t,n){return e.start().startOfWeek().relativeWeeks(-Math.floor(t*n))},getEnd:function(e,t,n){return e.relativeWeeks(t-1).endOfWeek()},moveStart:function(e,t){return e.relativeWeeks(t)},moveEnd:function(e,t){return e.relativeWeeks(t)},defaultInput:void 0},Me[me.MONTH]={getStart:function(e,t,n){return e.start().startOfMonth().relativeMonths(-Math.floor(t*n))},getEnd:function(e,t,n){return e.relativeMonths(t-1).endOfMonth()},moveStart:function(e,t){return e.relativeMonths(t)},moveEnd:function(e,t){return e.startOfMonth().relativeMonths(t).endOfMonth()},defaultInput:{fill:!0}},Me[me.YEAR]={getStart:function(e,t,n){return e.start().startOfYear().relativeYears(-Math.floor(t*n))},getEnd:function(e,t,n){return e.relativeYears(t-1).endOfYear()},moveStart:function(e,t){return e.relativeYears(t)},moveEnd:function(e,t){return e.relativeYears(t)},defaultInput:{fill:!0}},Me),e}(),We=function(){function e(){}return e.JANUARY=0,e.FEBRUARY=1,e.MARCH=2,e.APRIL=3,e.MAY=4,e.JUNE=5,e.JULY=6,e.AUGUST=7,e.SEPTEMBER=8,e.OCTOBER=9,e.NOVEMBER=10,e.DECEMBER=11,e.LIST=[e.JANUARY,e.FEBRUARY,e.MARCH,e.APRIL,e.MAY,e.JUNE,e.JULY,e.AUGUST,e.SEPTEMBER,e.OCTOBER,e.NOVEMBER,e.DECEMBER],e}(),be=function(){function e(e,t,n,r){this.name=e,this.listed=t,this.describe=n,this.rules=r}return e.prototype.apply=function(e,t){return e instanceof Oe?(this.applyGeneric(t,function(t,n){return e.setFrequency(t,n)},function(t){return e.setFrequency(t)}),e.updateChecks()):this.applyGeneric(t,function(t,n){return e[t]=n},function(t){return delete e[t]}),e},e.prototype.applyGeneric=function(t,n,r){for(var i=0,u=e.PROPS;i<u.length;i++){var a=u[i],s=this.rules[a];1===s&&n(a,[t[a]]),o.isArray(s)&&n(a,s),o.isDefined(s)||r(a)}},e.prototype.isMatch=function(e,t){return e instanceof Oe?this.isMatchGeneric(function(t){return e[t].input},t):this.isMatchGeneric(function(t){return e[t]},t)},e.prototype.isMatchGeneric=function(t,n){for(var r=o.isDefined(n),i=0,u=e.PROPS;i<u.length;i++){var a=u[i],s=this.rules[a],f=t(a);if(!1!==s){if(!0===s&&!f)return!1;if(!o.isDefined(s)&&f)return!1;if(o.isNumber(s)){if(!o.isArray(f)||f.length!==s)return!1;if(r&&-1===f.indexOf(n[a]))return!1}if(o.isArray(s)){if(!o.isArray(f))return!1;if(s.length!==f.length)return!1;for(var c=0;c<s.length;c++)if(s[c]!==f[c])return!1;if(r&&-1===s.indexOf(n[a]))return!1}if(o.isFrequencyValueEvery(s)){if(!o.isFrequencyValueEvery(f))return!1;var h=s.offset||0;if((f.offset||0)!==h||f.every!==s.every)return!1;if(r&&n[a]%s.every!==h)return!1}}}return!0},e.withName=function(e){return _e[e]},e.findMatch=function(e,t,n){void 0===t&&(t=!0);for(var r=0,i=Ne;r<i.length;r++){var o=i[r];if((o.listed||!t)&&o.isMatch(e,n))return o}return null},e.PROPS=["dayOfWeek","dayOfMonth","lastDayOfMonth","dayOfYear","month","week","year","weekOfYear","weekspanOfYear","fullWeekOfYear","lastWeekspanOfYear","lastFullWeekOfYear","weekOfMonth","weekspanOfMonth","fullWeekOfMonth","lastWeekspanOfMonth","lastFullWeekOfMonth"],e}(),Ne=[new be("none",!0,function(e){return d.current.patternNone(e)},{year:1,month:1,dayOfMonth:1}),new be("daily",!0,function(e){return d.current.patternDaily(e)},{}),new be("weekly",!0,function(e){return d.current.patternWeekly(e)},{dayOfWeek:1}),new be("monthlyWeek",!0,function(e){return d.current.patternMonthlyWeek(e)},{dayOfWeek:1,weekspanOfMonth:1}),new be("annually",!0,function(e){return d.current.patternAnnually(e)},{month:1,dayOfMonth:1}),new be("annuallyMonthWeek",!0,function(e){return d.current.patternAnnuallyMonthWeek(e)},{month:1,dayOfWeek:1,weekspanOfMonth:1}),new be("weekday",!0,function(e){return d.current.patternWeekday(e)},{dayOfWeek:[p.MONDAY,p.TUESDAY,p.WEDNESDAY,p.THURSDAY,p.FRIDAY]}),new be("monthly",!0,function(e){return d.current.patternMonthly(e)},{dayOfMonth:1}),new be("lastDay",!1,function(e){return d.current.patternLastDay(e)},{lastDayOfMonth:[1]}),new be("lastDayOfMonth",!1,function(e){return d.current.patternLastDayOfMonth(e)},{month:1,lastDayOfMonth:[1]}),new be("lastWeekday",!1,function(e){return d.current.patternLastWeekday(e)},{lastWeekspanOfMonth:[0],dayOfWeek:1,month:1}),new be("custom",!0,function(e){return d.current.patternCustom(e)},{dayOfWeek:!1,dayOfMonth:!1,lastDayOfMonth:!1,dayOfYear:!1,year:!1,month:!1,week:!1,weekOfYear:!1,weekspanOfYear:!1,fullWeekOfYear:!1,lastWeekspanOfYear:!1,lastFullWeekOfYear:!1,weekOfMonth:!1,weekspanOfMonth:!1,fullWeekOfMonth:!1,lastWeekspanOfMonth:!1,lastFullWeekOfMonth:!1})],_e={},Ae=0,Le=Ne;Ae<Le.length;Ae++){var Te=Le[Ae];_e[Te.name]=Te}var xe=function(){function e(){}return e.Start=function(e,t){return e.time.start.time-t.time.start.time},e.End=function(e,t){return e.time.end.time-t.time.end.time},e.FullDay=function(e,t){return(e.fullDay?0:1)-(t.fullDay?0:1)},e.Duration=function(e,t){return e.time.millis()-t.time.millis()},e.Desc=function(e){return function(t,n){return e(n,t)}},e.Alphabetical=function(e){return function(t,n){var r=e(t.event)||"",i=e(n.event)||"";return r.localeCompare(i)}},e.Ordered=function(e){return function(t,n){return e(t.event)-e(n.event)}},e.List=function(e){return function(t,n){for(var r=0,i=e;r<i.length;r++){var o=(0,i[r])(t,n);if(0!==o)return o}return 0}},e}(),Re={millis:"milliseconde",second:"seconde",minute:"minute",hour:"heure",day:"journée",week:"la semaine",month:"mois",quarter:"trimestre",year:"année"},Fe={millis:"millisecondes",second:"secondes",minute:"minutes",hour:"heures",day:"journées",week:"semaines",month:"mois",quarter:"quarts",year:"années"},je={weekStartsOn:1,firstWeekContainsDate:4,am:"",pm:"",formatLT:"HH:mm",formatLTS:"HH:mm:ss",formatL:"DD/MM/Y",formatl:"D/M/Y",formatLL:"D MMMM Y",formatll:"D MMM Y",formatLLL:"D MMMM Y HH:mm",formatlll:"D MMM Y HH:mm",formatLLLL:"dddd D MMMM Y HH:mm",formatllll:"ddd D MMM Y HH:mm",suffix:function(e){return e+(1===e?"er":"ème")},identifierTime:function(e){return e?"lll":"LLL"},identifierDay:function(e){return e?"ll":"LL"},identifierWeek:function(e){return"wo [semaine de] YYYY"},identifierMonth:function(e){return e?"MMM YYYY":"MMMM YYYY"},identifierQuarter:function(e){return"Qo [trimestre de] Y"},identifierYear:function(e){return"YYYY"},patternNone:function(){return"Sans répétition"},patternDaily:function(){return"Journalier"},patternWeekly:function(e){return"Tous les "+je.weekdays[0][e.day]},patternMonthlyWeek:function(e){return"Tous les "+je.suffix(e.weekspanOfMonth+1)+" "+je.weekdays[0][e.day]+" du mois"},patternAnnually:function(e){return"Tous les ans le "+e.dayOfMonth+" "+je.months[0][e.month]},patternAnnuallyMonthWeek:function(e){return"Tous les ans le "+je.suffix(e.weekspanOfMonth+1)+" "+je.weekdays[0][e.day]+" de "+je.months[0][e.month]},patternWeekday:function(){return"Tous les jours de la semaine (du lundi au vendredi)"},patternMonthly:function(e){return"Mensuel le "+e.dayOfMonth+" du mois"},patternLastDay:function(){return"Le dernier jour du mois"},patternLastDayOfMonth:function(e){return"Le dernier jour de "+je.months[0][e.month]},patternLastWeekday:function(e){return"Le dernier "+je.weekdays[0][e.day]+" d’"+je.months[0][e.month]},patternCustom:function(){return"Douane..."},scheduleStartingOn:function(e){return"Commençant le "+e.dayOfMonth+" "+je.months[0][e.month]+" "+e.year},scheduleEndingOn:function(e){return"et finissant le "+e.dayOfMonth+" "+je.months[0][e.month]+" "+e.year},scheduleEndsOn:function(e){return"Jusqu'au "+e.dayOfMonth+" "+je.months[0][e.month]+" "+e.year},scheduleThing:function(e,t){return t?"L’"+e+" va se produire":" l’"+e+" va se produire"},scheduleAtTimes:" à ",scheduleDuration:function(e,t){return" durant "+e+" "+(t?(1!==e?Fe[t]:Re[t])+" ":"")},scheduleExcludes:" excluant le ",scheduleIncludes:" incluant le ",scheduleCancels:" avec annulations le ",ruleDayOfWeek:{every:function(e){return"tous les "+e+" jours de la semaine"},offset:function(e){return"commençant le "+je.suffix(e)+" jours de la semaine"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" jours de la semaine"}},ruleLastDayOfMonth:{every:function(e){return"tous les "+je.suffix(e)+" derniers jours du mois"},offset:function(e){return"commençant le "+je.suffix(e)+" derniers jours du mois"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" derniers jours du mois"}},ruleDayOfMonth:{every:function(e){return"chaque "+je.suffix(e)+" jour du mois"},offset:function(e){return"à partir du "+je.suffix(e)+" jour du mois"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" jours du mois"}},ruleDayOfYear:{every:function(e){return"tous les "+e+" jours de l'année"},offset:function(e){return"à partir du "+(e+1)+" jours de l'année"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" jours de l'année"}},ruleYear:{every:function(e){return"tous les "+e+" ans"},offset:function(e){return"à partir de "+e},oneOf:function(e){return"en "+je.list(e.map(function(e){return e.toString()}))}},ruleMonth:{every:function(e){return"tous les "+je.suffix(e)+" mois"},offset:function(e){return"à partir de "+je.months[0][e]},oneOf:function(e){return"en "+je.list(e.map(function(e){return je.months[0][e]}))}},ruleDay:{every:function(e){return"tous les "+je.suffix(e)+" jours de la semaine"},offset:function(e){return"à partir de "+je.weekdays[0][e]},oneOf:function(e){return"les "+je.list(e.map(function(e){return je.weekdays[0][e]}))}},ruleWeek:{every:function(e){return"chaque "+je.suffix(e)+" semaine de l'année"},offset:function(e){return"à partir de la "+je.suffix(e)+" semaine de l'année"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" semaines de l'année"}},ruleWeekOfYear:{every:function(e){return"chaque "+je.suffix(e)+" semaine de l'année"},offset:function(e){return"à partir de la "+je.suffix(e)+" semaine de l'année"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" semaines de l'année"}},ruleWeekspanOfYear:{every:function(e){return"chaque "+je.suffix(e+1)+" semaine durée de l'année"},offset:function(e){return"à partir de la "+je.suffix(e+1)+" semaine durée de l'année"},oneOf:function(e){return"les "+je.list(e.map(function(e){return je.suffix(e+1)}))+" semaines de l'année"}},ruleFullWeekOfYear:{every:function(e){return"chaque "+je.suffix(e)+" semaine complète de l'année"},offset:function(e){return"à partir de la "+je.suffix(e)+" semaine complète de l'année"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" semaine complète de l'année"}},ruleLastWeekspanOfYear:{every:function(e){return"chaque "+je.suffix(e+1)+" semaine dernière durée de l'année"},offset:function(e){return"à partir de la "+je.suffix(e+1)+" semaine dernière durée de l'année"},oneOf:function(e){return"les "+je.list(e.map(function(e){return je.suffix(e+1)}))+" semaine dernière durée de l'année"}},ruleLastFullWeekOfYear:{every:function(e){return"chaque "+je.suffix(e)+" dernière semaine complète de l'année"},offset:function(e){return"à partir de la "+je.suffix(e)+" dernière semaine complète de l'année"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" dernière semaine complète de l'année"}},ruleWeekOfMonth:{every:function(e){return"chaque "+je.suffix(e)+" semaine du mois"},offset:function(e){return"à partir de la "+je.suffix(e)+" semaine du mois"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" semaines du mois"}},ruleFullWeekOfMonth:{every:function(e){return"chaque "+je.suffix(e)+" complet semaine du mois"},offset:function(e){return"à partir de la "+je.suffix(e)+" complet semaine du mois"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" complet semaine du mois"}},ruleWeekspanOfMonth:{every:function(e){return"chaque "+je.suffix(e+1)+" semaine durée du mois"},offset:function(e){return"à partir de la "+je.suffix(e+1)+" semaine durée du mois"},oneOf:function(e){return"les "+je.list(e.map(function(e){return je.suffix(e+1)}))+" semaines durée du mois"}},ruleLastFullWeekOfMonth:{every:function(e){return"chaque "+je.suffix(e)+" dernier complet semaine du mois"},offset:function(e){return"à partir de la "+je.suffix(e)+" dernier complet semaine du mois"},oneOf:function(e){return"les "+je.list(e.map(je.suffix))+" dernier complet semaine du mois"}},ruleLastWeekspanOfMonth:{every:function(e){return"chaque "+je.suffix(e+1)+" semaine dernière durée du mois"},offset:function(e){return"à partir du "+(e+1)+" dernière semaine durée du mois"},oneOf:function(e){return"les "+je.list(e.map(function(e){return e.toString()}))+" la semaine dernière durée du mois"}},summaryDay:function(e,t,n){return(t?e?"ddd ":"dddd ":"")+"D "+(e?"MMM ":"MMMM ")+(n?"Y":"")},summaryWeek:function(e,t,n){return(t?e?"ddd ":"dddd ":"")+"D "+(e?"MMM ":"MMMM ")+(n?"Y":"")},summaryMonth:function(e,t,n){return(e?"MMM":"MMMM")+(n?" YYYY":"")},summaryYear:function(e,t,n){return n?"YYYY":""},list:function(e){for(var t=e.length-1,n=e[0],r=1;r<t;r++)n+=", "+e[r];return t>0&&(n+=" et "+e[t]),n},months:[["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],["janv","févr","mars","avr","mai","juin","juil","août","sept","oct","nov","déc"],["jan","fév","mar","avr","mai","jui","jui","aoû","sep","oct","nov","déc"],["J","F","M","A","M","J","J","A","S","O","N","D"]],weekdays:[["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["dim","lun","mar","mer","jeu","ven","sam"],["dim","lun","mar","mer","jeu","ven","sam"],["di","lu","ma","me","je","ve","sa"]]},Ue=je;d.add(["fr","fr-ca","fr-ch"],je);var Ce={millis:"milliseconde",second:"seconde",minute:"minuut",hour:"uur",day:"dag",week:"week",month:"maand",quarter:"kwartaal",year:"jaar"},qe={millis:"milliseconden",second:"seconden",minute:"minuten",hour:"uur",day:"dagen",week:"weken",month:"maanden",quarter:"vertrekken",year:"jaar"},He={weekStartsOn:1,firstWeekContainsDate:4,am:"",pm:"",formatLT:"HH:mm",formatLTS:"HH:mm:ss",formatL:"DD-MM-Y",formatl:"D-M-Y",formatLL:"D MMMM Y",formatll:"D MMM Y",formatLLL:"D MMMM Y HH:mm",formatlll:"D MMM Y HH:mm",formatLLLL:"dddd D MMMM Y HH:mm",formatllll:"ddd D MMM Y HH:mm",suffix:function(e){return e+"e"},identifierTime:function(e){return e?"lll":"LLL"},identifierDay:function(e){return e?"ll":"LL"},identifierWeek:function(e){return"wo [week van] Y"},identifierMonth:function(e){return e?"MMM Y":"MMMM Y"},identifierQuarter:function(e){return"Qo [kwartaal] Y"},identifierYear:function(e){return"Y"},patternNone:function(){return"Geen herhaling"},patternDaily:function(){return"Dagelijks"},patternWeekly:function(e){return"Wekelijks op "+He.weekdays[0][e.day]},patternMonthlyWeek:function(e){return"Maandelijks op de "+He.suffix(e.weekspanOfMonth+1)+" "+He.weekdays[0][e.day]},patternAnnually:function(e){return"Jaarlijks op "+e.dayOfMonth+" "+He.months[0][e.month]},patternAnnuallyMonthWeek:function(e){return"Jaarlijks op de "+He.suffix(e.weekspanOfMonth+1)+" "+He.weekdays[0][e.day]+" van "+He.months[0][e.month]},patternWeekday:function(){return"Iedere werkdag (maandag tot vrijdag)"},patternMonthly:function(e){return"Maandelijks op de "+He.suffix(e.dayOfMonth)},patternLastDay:function(){return"Laatste dag van de maand"},patternLastDayOfMonth:function(e){return"Laatste dag van "+He.months[0][e.month]},patternLastWeekday:function(e){return"Laatste "+He.weekdays[0][e.day]+" van "+He.months[0][e.month]},patternCustom:function(){return"Aangepast..."},scheduleStartingOn:function(e){return"Vanaf "+e.dayOfMonth+" "+He.months[0][e.month]+" "+e.year},scheduleEndingOn:function(e){return"tot en met "+e.dayOfMonth+" "+He.months[0][e.month]+" "+e.year},scheduleEndsOn:function(e){return"Tot en met "+e.dayOfMonth+" "+He.months[0][e.month]+" "+e.year},scheduleThing:function(e,t){return t?"Zal het "+e+" plaatsvinden":" zal het "+e+" plaatsvinden"},scheduleAtTimes:" om ",scheduleDuration:function(e,t){return" gedurende "+e+" "+(t?(1!==e?qe[t]:Ce[t])+" ":"")},scheduleExcludes:" met uitzondering van ",scheduleIncludes:" inclusief ",scheduleCancels:" met annuleringen op ",ruleDayOfWeek:{every:function(e){return"iedere "+He.suffix(e)+" dag van de week"},offset:function(e){return"vanaf de "+He.suffix(e)+" dag van de week"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" dag van de week"}},ruleLastDayOfMonth:{every:function(e){return"iedere "+He.suffix(e)+" laatste dag van de maand"},offset:function(e){return"vanaf de "+He.suffix(e)+" laatste dag van de maand"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" laatste dag van de maand"}},ruleDayOfMonth:{every:function(e){return"iedere "+He.suffix(e)+" dag van de maand"},offset:function(e){return"vanaf de "+He.suffix(e)+" dag van de maand"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" dag van de maand"}},ruleDayOfYear:{every:function(e){return"iedere "+He.suffix(e)+" dag van het jaar"},offset:function(e){return"vanaf de "+He.suffix(e+1)+" dag van het jaar"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" dag van het jaar"}},ruleYear:{every:function(e){return"iedere "+He.suffix(e)+" jaar"},offset:function(e){return"vanaf "+e},oneOf:function(e){return"in "+He.list(e.map(function(e){return e.toString()}))}},ruleMonth:{every:function(e){return"iedere "+He.suffix(e)+" maand"},offset:function(e){return"vanaf "+He.months[0][e]},oneOf:function(e){return"in "+He.list(e.map(function(e){return He.months[0][e]}))}},ruleDay:{every:function(e){return"iedere "+He.suffix(e)+" dag van de week"},offset:function(e){return"vanaf "+He.weekdays[0][e]},oneOf:function(e){return"on "+He.list(e.map(function(e){return He.weekdays[0][e]}))}},ruleWeek:{every:function(e){return"iedere "+He.suffix(e)+" week van het jaar"},offset:function(e){return"vanaf de "+He.suffix(e)+" week van het jaar"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" week van het jaar"}},ruleWeekOfYear:{every:function(e){return"iedere "+He.suffix(e)+" week van het jaar"},offset:function(e){return"vanaf de "+He.suffix(e)+" week van het jaar"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" week van het jaar"}},ruleWeekspanOfYear:{every:function(e){return"iedere "+He.suffix(e+1)+" weekspanne van het jaar"},offset:function(e){return"vanaf de "+He.suffix(e+1)+" weekspanne van het jaar"},oneOf:function(e){return"op de "+He.list(e.map(function(e){return He.suffix(e+1)}))+" weekspanne van het jaar"}},ruleFullWeekOfYear:{every:function(e){return"iedere "+He.suffix(e)+" hele week van het jaar"},offset:function(e){return"vanaf de "+He.suffix(e)+" hele week van het jaar"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" hele week van het jaar"}},ruleLastWeekspanOfYear:{every:function(e){return"iedere "+He.suffix(e+1)+" laatste weekspanne van het jaar"},offset:function(e){return"vanaf de "+He.suffix(e+1)+" laatste weekspanne van het jaar"},oneOf:function(e){return"op de "+He.list(e.map(function(e){return He.suffix(e+1)}))+" last weekspan van het jaar"}},ruleLastFullWeekOfYear:{every:function(e){return"iedere "+He.suffix(e)+" laatste hele week van het jaar"},offset:function(e){return"vanaf de "+He.suffix(e)+" laatste hele week van het jaar"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" laatste hele week van het jaar"}},ruleWeekOfMonth:{every:function(e){return"iedere "+He.suffix(e)+" week van de maand"},offset:function(e){return"vanaf de "+He.suffix(e)+" week van de maand"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" week van de maand"}},ruleFullWeekOfMonth:{every:function(e){return"iedere "+He.suffix(e)+" hele week van de maand"},offset:function(e){return"vanaf de "+He.suffix(e)+" hele week van de maand"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" hele week van de maand"}},ruleWeekspanOfMonth:{every:function(e){return"iedere "+He.suffix(e+1)+" weekspanne van de maand"},offset:function(e){return"vanaf de "+He.suffix(e+1)+" weekspanne van de maand"},oneOf:function(e){return"op de "+He.list(e.map(function(e){return He.suffix(e+1)}))+" weekspanne van de maand"}},ruleLastFullWeekOfMonth:{every:function(e){return"iedere "+He.suffix(e)+" laatste hele week van de maand"},offset:function(e){return"vanaf de "+He.suffix(e)+" laatste hele week van de maand"},oneOf:function(e){return"op de "+He.list(e.map(He.suffix))+" laatste hele week van de maand"}},ruleLastWeekspanOfMonth:{every:function(e){return"iedere "+He.suffix(e+1)+" laatste weekspanne van de maand"},offset:function(e){return"vanaf de "+He.suffix(e+1)+" laatste weekspanne van de maand"},oneOf:function(e){return"op de "+He.list(e.map(function(e){return He.suffix(e+1)}))+" last weekspanne van de maand"}},summaryDay:function(e,t,n){return(t?e?"ddd ":"dddd ":"")+"D "+(e?"MMM ":"MMMM ")+(n?"Y":"")},summaryWeek:function(e,t,n){return(t?e?"ddd ":"dddd ":"")+"D "+(e?"MMM ":"MMMM ")+(n?"Y":"")},summaryMonth:function(e,t,n){return(e?"MMM":"MMMM")+(n?" YYYY":"")},summaryYear:function(e,t,n){return n?"YYYY":""},list:function(e){for(var t=e.length-1,n=e[0],r=1;r<t;r++)n+=", "+e[r];return t>0&&(n+=" en "+e[t]),n},months:[["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],["J","F","M","A","M","J","J","A","S","O","N","D"]],weekdays:[["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zon","maan","din","woen","don","vrij","zat"],["zon","maa","din","woe","don","vrij","zat"],["zo","ma","di","wo","do","vr","za"]]},Pe=He;d.add(["nl","nl-be"],He);var ze={millis:"Millisekunde",second:"Sekunde",minute:"Minute",hour:"Stunde",day:"Tag",week:"Woche",month:"Monat",quarter:"Quartal",year:"Jahr"},Je={millis:"Millisekunden",second:"Sekunden",minute:"Minuten",hour:"Stunden",day:"Tage",week:"Wochen",month:"Monate",quarter:"Viertel",year:"Jahre"},Ve={weekStartsOn:1,firstWeekContainsDate:4,suffix:function(e){return e+"."},am:"",pm:"",formatLT:"HH:mm",formatLTS:"HH:mm:ss",formatL:"DD.MM.Y",formatl:"D.M.Y",formatLL:"D. MMMM Y",formatll:"D. MMM Y",formatLLL:"D. MMMM Y HH:mm",formatlll:"D. MMM Y HH:mm",formatLLLL:"dddd, D. MMMM Y HH:mm",formatllll:"ddd, D. MMM Y HH:mm",identifierTime:function(e){return e?"lll":"LLL"},identifierDay:function(e){return e?"ll":"LL"},identifierWeek:function(e){return"wo [Woche in] Y"},identifierMonth:function(e){return e?"MMM Y":"MMMM Y"},identifierQuarter:function(e){return"Qo [Quartal] Y"},identifierYear:function(e){return"Y"},patternNone:function(){return"Nicht wiederholend"},patternDaily:function(){return"Täglich"},patternWeekly:function(e){return"Wöchentlich am "+Ve.weekdays[0][e.day]},patternMonthlyWeek:function(e){return"Monatlich am "+(e.weekspanOfMonth+1)+". "+Ve.weekdays[0][e.day]},patternAnnually:function(e){return"Jährlich am "+e.dayOfMonth+". "+Ve.months[0][e.month]},patternAnnuallyMonthWeek:function(e){return"Jährlich am "+(e.weekspanOfMonth+1)+". "+Ve.weekdays[0][e.day]+" im "+Ve.months[0][e.month]},patternWeekday:function(){return"Jeden Werktag (Montag bis Freitag)"},patternMonthly:function(e){return"Monatlich am "+e.dayOfMonth+". Tag"},patternLastDay:function(){return"Am letzten Tag im Monat"},patternLastDayOfMonth:function(e){return"Am letzten Tag im "+Ve.months[0][e.month]},patternLastWeekday:function(e){return"Am letzten "+Ve.weekdays[0][e.day]+" im "+Ve.months[0][e.month]},patternCustom:function(){return"Benutzerdefiniert..."},scheduleStartingOn:function(e){return"Startend am "+o.padNumber(e.dayOfMonth,2)+". "+Ve.months[0][e.month]+" "+e.year},scheduleEndingOn:function(e){return"und endend am "+o.padNumber(e.dayOfMonth,2)+". "+Ve.months[0][e.month]+" "+e.year},scheduleEndsOn:function(e){return"Bis zum "+o.padNumber(e.dayOfMonth,2)+". "+Ve.months[0][e.month]+" "+e.year},scheduleThing:function(e,t){return t?"Wird das "+e+" stattfinden":" wird das "+e+" stattfinden"},scheduleAtTimes:" um ",scheduleDuration:function(e,t){return" mit einer Dauer von "+e+" "+(t?(1!==e?Je[t]:ze[t])+" ":"")},scheduleExcludes:" mit Ausnahme vom ",scheduleIncludes:" mit Einnahme vom ",scheduleCancels:" mit einer Aussetzung am ",ruleDayOfWeek:{every:function(e){return"jeden "+Ve.suffix(e)+" Tag der Woche"},offset:function(e){return"startend am the "+Ve.suffix(e)+" Tag der Woche"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" Tag der Woche"}},ruleLastDayOfMonth:{every:function(e){return"jeden "+Ve.suffix(e)+" letzten Tag des Monats"},offset:function(e){return"startend am the "+Ve.suffix(e)+" letzten Tag des Monats"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" letzten Tag des Monats"}},ruleDayOfMonth:{every:function(e){return"jeden "+Ve.suffix(e)+" Tag des Monats"},offset:function(e){return"startend am the "+Ve.suffix(e)+" Tag des Monats"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" Tag des Monats"}},ruleDayOfYear:{every:function(e){return"jeden "+Ve.suffix(e)+" Tag des Jahres"},offset:function(e){return"startend am the "+Ve.suffix(e+1)+" Tag des Jahres"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" Tag des Jahres"}},ruleYear:{every:function(e){return"jeden "+Ve.suffix(e)+" Jahr"},offset:function(e){return"startend in "+e},oneOf:function(e){return"in "+Ve.list(e.map(function(e){return e.toString()}))}},ruleMonth:{every:function(e){return"jeden "+Ve.suffix(e)+" Monat"},offset:function(e){return"startend in "+Ve.months[0][e]},oneOf:function(e){return"in "+Ve.list(e.map(function(e){return Ve.months[0][e]}))}},ruleDay:{every:function(e){return"jeden "+Ve.suffix(e)+" Tag der Woche"},offset:function(e){return"startend am "+Ve.weekdays[0][e]},oneOf:function(e){return"on "+Ve.list(e.map(function(e){return Ve.weekdays[0][e]}))}},ruleWeek:{every:function(e){return"jeden "+Ve.suffix(e)+" Woche des Jahres"},offset:function(e){return"startend am the "+Ve.suffix(e)+" Woche des Jahres"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" Woche des Jahres"}},ruleWeekOfYear:{every:function(e){return"jeden "+Ve.suffix(e)+" Woche des Jahres"},offset:function(e){return"startend am the "+Ve.suffix(e)+" Woche des Jahres"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" Woche des Jahres"}},ruleWeekspanOfYear:{every:function(e){return"jeden "+Ve.suffix(e+1)+" Wochenspanne des Jahres"},offset:function(e){return"startend am the "+Ve.suffix(e+1)+" Wochenspanne des Jahres"},oneOf:function(e){return"am "+Ve.list(e.map(function(e){return Ve.suffix(e+1)}))+" Wochenspanne des Jahres"}},ruleFullWeekOfYear:{every:function(e){return"jeden "+Ve.suffix(e)+" vollen Woche des Jahres"},offset:function(e){return"startend am the "+Ve.suffix(e)+" vollen Woche des Jahres"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" vollen Woche des Jahres"}},ruleLastWeekspanOfYear:{every:function(e){return"jeden "+Ve.suffix(e+1)+" last Wochenspanne des Jahres"},offset:function(e){return"startend am the "+Ve.suffix(e+1)+" last Wochenspanne des Jahres"},oneOf:function(e){return"am "+Ve.list(e.map(function(e){return Ve.suffix(e+1)}))+" last Wochenspanne des Jahres"}},ruleLastFullWeekOfYear:{every:function(e){return"jeden "+Ve.suffix(e)+" letzte volle Woche des Jahres"},offset:function(e){return"startend am the "+Ve.suffix(e)+" letzte volle Woche des Jahres"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" letzte volle Woche des Jahres"}},ruleWeekOfMonth:{every:function(e){return"jeden "+Ve.suffix(e)+" Woche des Monats"},offset:function(e){return"startend am the "+Ve.suffix(e)+" Woche des Monats"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" Woche des Monats"}},ruleFullWeekOfMonth:{every:function(e){return"jeden "+Ve.suffix(e)+" vollen Woche des Monats"},offset:function(e){return"startend am the "+Ve.suffix(e)+" vollen Woche des Monats"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" vollen Woche des Monats"}},ruleWeekspanOfMonth:{every:function(e){return"jeden "+Ve.suffix(e+1)+" Wochenspanne des Monats"},offset:function(e){return"startend am the "+Ve.suffix(e+1)+" Wochenspanne des Monats"},oneOf:function(e){return"am "+Ve.list(e.map(function(e){return Ve.suffix(e+1)}))+" Wochenspanne des Monats"}},ruleLastFullWeekOfMonth:{every:function(e){return"jeden "+Ve.suffix(e)+" letzte volle week des Monats"},offset:function(e){return"startend am the "+Ve.suffix(e)+" letzte volle week des Monats"},oneOf:function(e){return"am "+Ve.list(e.map(Ve.suffix))+" letzte volle week des Monats"}},ruleLastWeekspanOfMonth:{every:function(e){return"jeden "+Ve.suffix(e+1)+" letzten Wochenspanne des Monats"},offset:function(e){return"startend am the "+Ve.suffix(e+1)+" letzten Wochenspanne des Monats"},oneOf:function(e){return"am "+Ve.list(e.map(function(e){return Ve.suffix(e+1)}))+" letzten Wochenspanne des Monats"}},summaryDay:function(e,t,n){return(t?e?"ddd, ":"dddd, ":"")+(e?"MMM ":"MMMM ")+"Do"+(n?" Y":"")},summaryWeek:function(e,t,n){return(t?e?"ddd, ":"dddd, ":"")+(e?"MMM ":"MMMM ")+"Do"+(n?" Y":"")},summaryMonth:function(e,t,n){return(e?"MMM":"MMMM")+(n?" YYYY":"")},summaryYear:function(e,t,n){return n?"YYYY":""},list:function(e){for(var t=e.length-1,n=e[0],r=1;r<t;r++)n+=", "+e[r];return t>0&&(n+=" und "+e[t]),n},months:[["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktoboer","November","Dezember"],["Jan","Feb","Mrz","Apr","Mai","Juni","Juli","Aug","Sept","Okt","Nov","Dez"],["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["J","F","Mä","A","Ma","Ju","Jl","Ag","S","O","N","D"]],weekdays:[["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So","Mo","Di","Mi","Do","Fr","Sa"],["So","Mo","Di","Mi","Do","Fr","Sa"],["So","Mo","Di","Mi","Do","Fr","Sa"]]},Be=Ve;d.add(["de","de-at","de-de","de-li","de-lu","de-ch"],Ve);var Xe=function(){return(Xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ke=Xe({},Be,{months:[["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktoboer","November","Dezember"],["Jän","Feb","Mrz","Apr","Mai","Juni","Juli","Aug","Sept","Okt","Nov","Dez"],["Jän","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["J","F","Mä","A","Ma","Ju","Jl","Ag","S","O","N","D"]]}),Ge=Ke;d.add("de-at",Ke),n.d(t,"Calendar",function(){return Ie}),n.d(t,"CalendarDay",function(){return Ee}),n.d(t,"CalendarEvent",function(){return Ye}),n.d(t,"Event",function(){return ye}),n.d(t,"Constants",function(){return i}),n.d(t,"Day",function(){return De}),n.d(t,"DayFormat",function(){return a}),n.d(t,"DaySpan",function(){return ue}),n.d(t,"Format",function(){return u}),n.d(t,"Functions",function(){return o}),n.d(t,"Identifier",function(){return se}),n.d(t,"Locales",function(){return d}),n.d(t,"Month",function(){return We}),n.d(t,"Op",function(){return H}),n.d(t,"operate",function(){return ie}),n.d(t,"Parse",function(){return we}),n.d(t,"Pattern",function(){return be}),n.d(t,"Patterns",function(){return Ne}),n.d(t,"PatternMap",function(){return _e}),n.d(t,"Ref",function(){return l}),n.d(t,"Schedule",function(){return Oe}),n.d(t,"ScheduleModifier",function(){return ve}),n.d(t,"Sorts",function(){return xe}),n.d(t,"Time",function(){return ke}),n.d(t,"TimeFormat",function(){return ge}),n.d(t,"Units",function(){return me}),n.d(t,"Weekday",function(){return p}),n.d(t,"en",function(){return h}),n.d(t,"fr",function(){return Ue}),n.d(t,"nl",function(){return Pe}),n.d(t,"de",function(){return Be}),n.d(t,"deAt",function(){return Ge})}])});
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("ds",[],t):"object"==typeof exports?exports.ds=t():e.ds=t()}(this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var r;n.r(t),function(e){e[e.CONTINUE=0]="CONTINUE",e[e.STOP=1]="STOP",e[e.REMOVE=2]="REMOVE",e[e.REPLACE=3]="REPLACE"}(r||(r={}));var i=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},u=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e},a=function(){function e(e,t){this.result=null,this.source=e,t&&(this.equality=t.equality,this.comparator=t.comparator)}return e.prototype.onReset=function(e){return this.handleReset=e,this},e.prototype.canReset=function(){return!!this.handleReset},e.prototype.reset=function(e,t){if(void 0===t&&(t=!0),this.handleReset)this.handleReset(e);else if(t)throw new Error("This iterator does not support reset.");return this},e.prototype.clone=function(){return new e(this.source,this)},e.prototype.act=function(e,t){return this.action=r.CONTINUE,this.replaceWith=null,this.callback(e,t,this),this.action},e.prototype.stop=function(e){return this.result=e,this.action=r.STOP,this},e.prototype.isStopped=function(){return this.action===r.STOP},e.prototype.replace=function(e){return this.replaceWith=e,this.action=r.REPLACE,this},e.prototype.remove=function(){return this.action=r.REMOVE,this},e.prototype.withEquality=function(e){return this.equality=e,this},e.prototype.withComparator=function(e){return this.comparator=e,this.equality||(this.equality=function(t,n){return 0===e(t,n)}),this},e.prototype.withLogic=function(e,t){return this.comparator=e,this.equality=t||function(t,n,r,i){return 0===e(t,n,r,i)},this},e.prototype.numbers=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=!1),this.withLogic(m(e,t))},e.prototype.strings=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!1),this.withLogic(y(e,t,n))},e.prototype.dates=function(e,t,n,r){return void 0===e&&(e=1),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=!1),this.withLogic(v(n,r),M(e,t))},e.prototype.desc=function(e){var t=e||this.comparator;return this.comparator=function(e,n,r,i){return t(n,e,i,r)},this},e.prototype.getEquality=function(e){return e||this.equality||function(e,t){return 0===p(e,t,!0)}},e.prototype.getComparator=function(e){return e||this.comparator||function(e,t){return p(e,t,!1)}},e.prototype.empty=function(e){var t=!this.each(function(e,t,n){return n.stop()}).isStopped();return e?(e(t),this):t},e.prototype.has=function(e){var t=this.each(function(e,t,n){return n.stop()}).isStopped();return e?(e(t),this):t},e.prototype.contains=function(e,t){var n=this.getEquality(),r=this.where(function(t,r){return n(t,e,r)}).has();return t?(t(r),this):r},e.prototype.count=function(e){var t=0;return this.each(function(){return t++}),e?(e(t),this):t},e.prototype.first=function(e){var t=this.each(function(e,t,n){return n.stop(e)}).result;return e?(e(t),this):t},e.prototype.last=function(e){var t=null;return this.each(function(e){return t=e}),e?(e(t),this):t},e.prototype.array=function(e,t){void 0===e&&(e=[]);var n=h(e)?[]:e,r=h(e)?e:t;return this.each(function(e){return n.push(e)}),r?(r(n),this):n},e.prototype.entries=function(e,t){void 0===e&&(e=[]);var n=h(e)?[]:e,r=h(e)?e:t;return this.each(function(e,t){return n.push([t,e])}),r?(r(n),this):n},e.prototype.object=function(e,t,n){void 0===t&&(t=Object.create(null));var r=h(t)?Object.create(null):t,i=h(t)?t:n;return this.each(function(t){return r[e(t)]=t}),i?(i(r),this):r},e.prototype.set=function(e,t){void 0===e&&(e=new Set);var n=h(e)?new Set:e,r=h(e)?e:t;return this.each(function(e){return n.add(e)}),r?(r(n),this):n},e.prototype.map=function(e,t){void 0===e&&(e=new Map);var n=h(e)?new Map:e,r=h(e)?e:t;return this.each(function(e,t){return n.set(t,e)}),r?(r(n),this):n},e.prototype.group=function(e,t,n){void 0===t&&(t=Object.create(null));var r=h(t)?Object.create(null):t,i=h(t)?t:n;return this.each(function(t){var n=e(t);n in r?r[n].push(t):r[n]=[t]}),i?(i(r),this):r},e.prototype.reduce=function(e,t,n){var r=e;return this.each(function(e){return r=t(e,r)}),n?(n(r),this):r},e.prototype.min=function(e){var t=this.getComparator(),n=this.reduce(null,function(e,n){return null===n||t(e,n)<0?e:n});return e?(e(n),this):n},e.prototype.max=function(e){var t=this.getComparator(),n=this.reduce(null,function(e,n){return null===n||t(e,n)>0?e:n});return e?(e(n),this):n},e.prototype.changes=function(e,t,n,u){var a,s,f=this;this.history||(this.history=new Map);var c=new Map(this.history);this.each(function(t,i,o){var a=u?u(t,i,o):t;f.history.has(a)?n(t,i,o):(e(t,i,o),o.result!==r.REMOVE&&f.history.set(a,[i,t])),c.delete(a)});try{for(var h=i(c.values()),l=h.next();!l.done;l=h.next()){var d=o(l.value,2),p=d[0];t(d[1],p,this)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}return this},e.prototype.delete=function(){return this.each(function(e,t,n){return n.remove()})},e.prototype.extract=function(t){var n=[];this.each(function(e,t,r){return n.push([t,e])&&r.remove()});var r=e.entries(n);return t?(t(r),this):r},e.prototype.overwrite=function(e){return this.each(function(t,n,r){return r.replace(e)})},e.prototype.update=function(e){return this.each(function(t,n,r){return r.replace(e(t,n))})},e.prototype.fork=function(e){return e(this),this},e.prototype.split=function(e,t){var n=this.where(e),r=this.not(e);return t?(t(n,r),this):{pass:n,fail:r}},e.prototype.unzip=function(e){var t=this.keys(),n=this.values();return e?(e(t,n),this):{keys:t,values:n}},e.prototype.keys=function(){var t=this;return new e(function(e){var n=0;t.each(function(t,i,o){switch(e.act(i,n++)){case r.STOP:o.stop();break;case r.REMOVE:o.remove();break;case r.REPLACE:}})}).onReset(this.handleReset)},e.prototype.values=function(){var t=this;return new e(function(e){t.each(function(t,n,i){var o=0;switch(e.act(t,o++)){case r.STOP:i.stop();break;case r.REMOVE:i.remove();break;case r.REPLACE:i.replace(e.replaceWith)}})},this).onReset(this.handleReset)},e.prototype.view=function(t,n,i,o){var u=this;return new e(function(e){var a=t();u.each(function(t,u,s){if(n(a,t,u)){switch(e.act(t,u)){case r.STOP:s.stop();break;case r.REMOVE:s.remove();break;case r.REPLACE:s.replace(e.replaceWith)}i&&i(a,t,u,s)}else o&&o(a,t,u,s)})},this).onReset(this.handleReset)},e.prototype.take=function(t){return t<=0?e.empty():this.view(function(){return{amount:t}},function(e){return e.amount>0},function(e){return e.amount--},function(e,t,n,r){return r.stop()})},e.prototype.skip=function(e){return this.view(function(){return{skipped:0}},function(t){return t.skipped>=e},function(e){return e.skipped++},function(e){return e.skipped++})},e.prototype.drop=function(e){return this.reverse().skip(e).reverse()},e.prototype.append=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.join.apply(e,u([this],t)).onReset(this.handleReset)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.join.apply(e,u(t,[this])).onReset(this.handleReset)},e.prototype.where=function(e){return this.view(function(){return null},function(t,n,r){return e(n,r)})},e.prototype.not=function(e){return this.view(function(){return null},function(t,n,r){return!e(n,r)})},e.prototype.gt=function(e,t){var n=this;return this.view(function(){return n.getComparator(t)},function(t,n,r){return t(n,e,r)>0})},e.prototype.gte=function(e,t){var n=this;return this.view(function(){return n.getComparator(t)},function(t,n,r){return t(n,e,r)>=0})},e.prototype.lt=function(e,t){var n=this;return this.view(function(){return n.getComparator(t)},function(t,n,r){return t(n,e,r)<0})},e.prototype.lte=function(e,t){var n=this;return this.view(function(){return n.getComparator(t)},function(t,n,r){return t(n,e,r)<=0})},e.prototype.exclude=function(e,t){var n=this;return this.view(function(){return c(e).withEquality(n.getEquality(t))},function(e,t){return!e.contains(t)})},e.prototype.intersect=function(e,t){var n=this;return this.view(function(){return c(e).withEquality(n.getEquality(t))},function(e,t){return e.contains(t)})},e.prototype.unique=function(e){var t=this;return this.view(function(){return{existing:[],isEqual:t.getEquality(e)}},function(e,t,n){var r=e.existing,i=e.isEqual;return-1===r.findIndex(function(e){var r=o(e,2),u=r[0],a=r[1];return i(a,t,u,n)})},function(e,t,n){return e.existing.push([n,t])})},e.prototype.duplicates=function(e,t){var n=this;return void 0===e&&(e=!1),this.view(function(){return{existing:[],once:[],isEqual:n.getEquality(t)}},function(t,n,r){var i=t.existing,u=t.once,a=t.isEqual,s=i.findIndex(function(e){var t=o(e,2),i=t[0],u=t[1];return a(u,n,i,r)}),f=-1!==s;return f?(u[s]&&e&&(f=!1),u[s]=!0):i.push([r,n]),f})},e.prototype.readonly=function(){var t=this;return new e(function(e){t.each(function(t,n,i){e.act(t,n)===r.STOP&&i.stop()})},this).onReset(this.handleReset)},e.prototype.copy=function(){return e.entries(this.entries())},e.prototype.viewResolved=function(t){var n=this;return new e(function(e){var i=n.entries(),o=[],u=[],a=[],s=!1;if(t(i,function(t,n,i){var f=e.act(t,n);return f!==r.REPLACE&&f!==r.REMOVE||(s=!0,a[i]=t,o[i]=f,u[i]=e.replaceWith),f}),s){var f=0;n.each(function(e,t,n){switch(o[f]){case r.REMOVE:e===a[f]&&n.remove();break;case r.REPLACE:e===a[f]&&n.replace(u[f])}f++})}},this).onReset(this.handleReset)},e.prototype.sorted=function(e){var t=this;return this.viewResolved(function(n,u){var a,s,f=t.getComparator(e),c=n.map(function(e,t){var n=o(e,2);return{key:n[0],value:n[1],index:t}});c.sort(function(e,t){return f(e.value,t.value)});try{for(var h=i(c),l=h.next();!l.done;l=h.next()){var d=l.value,p=d.key;if(u(d.value,p,d.index)===r.STOP)return}}catch(e){a={error:e}}finally{try{l&&!l.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}})},e.prototype.shuffle=function(e){void 0===e&&(e=1);var t=function(e,t,n){var r=e[t];e[t]=e[n],e[n]=r};return this.viewResolved(function(n,i){for(var u=[],a=n.length,s=0;s<a;s++)u.push(s);for(var f=0;f<e;f++)for(var c=0;c<a;c++){var h=Math.floor(Math.random()*a);t(n,h,c),t(u,h,c)}for(s=0;s<a;s++){var l=o(n[s],2),d=l[0];if(i(l[1],d,u[s])===r.STOP)return}})},e.prototype.reverse=function(){return this.viewResolved(function(e,t){for(var n=e.length-1;n>=0;n--){var i=o(e[n],2),u=i[0];if(t(i[1],u,n)===r.STOP)return}})},e.prototype.transform=function(t,n){var i=this;return void 0===n&&(n=null),new e(function(e){i.each(function(i,o,u){var a=t(i,o,u);if(void 0!==a)switch(e.act(a,o)){case r.STOP:u.stop();break;case r.REMOVE:u.remove();break;case r.REPLACE:n&&u.replace(n(e.replaceWith,a,i,o))}})}).onReset(this.handleReset)},e.prototype.each=function(e){return this.result=void 0,this.callback=e,this.action=r.CONTINUE,this.source(this),this.callback=null,this},e.prototype.withResult=function(e){return this.result&&e(this.result),this},e.prototype[Symbol.iterator]=function(){return this.array().values()},e.entries=function(t){return void 0===t&&(t=[]),new e(function(e){for(var n=0;n<t.length;n++){var i=o(t[n],2),u=i[0],a=i[1];switch(e.act(a,u)){case r.STOP:return;case r.REMOVE:t.splice(n,1),n--;break;case r.REPLACE:t.splice(n,1,[u,e.replaceWith])}}}).onReset(function(e){return t=e})},e.array=function(t){return void 0===t&&(t=[]),new e(function(e){for(var n=0;n<t.length;n++)switch(e.act(t[n],n)){case r.STOP:return;case r.REMOVE:t.splice(n,1),n--;break;case r.REPLACE:t.splice(n,1,e.replaceWith)}}).onReset(function(e){return t=e})},e.zip=function(t,n){var i=c(t),u=c(n);return new e(function(e){var t=i.array(),n=[],o=0;if(u.each(function(i,u,a){if(o>=t.length)a.stop();else switch(e.act(i,t[o])){case r.STOP:return;case r.REMOVE:a.remove(),n.push(o);break;case r.REPLACE:a.replace(e.replaceWith)}o++}),n.length>0){var a=0;i.each(function(e,t,r){a===n[0]?(r.remove(),n.shift()):0===n.length&&r.stop(),a++})}}).onReset(function(e){var t=o(e,2),n=t[0],r=t[1];i=c(n),u=c(r)})},e.hasEntries=function(t,n,i){return new e(function(e){for(var u=t.entries(),a=u.next();!a.done;a=u.next()){var s=o(a.value,2),f=s[0],c=s[1];switch(e.act(c,f)){case r.STOP:return;case r.REMOVE:n&&n(t,f,c);break;case r.REPLACE:i&&i(t,f,c,e.replaceWith)}}}).onReset(function(e){return t=e})},e.map=function(t){return void 0===t&&(t=new Map),e.hasEntries(t,function(e,t){return e.delete(t)},function(e,t,n,r){return e.set(t,r)})},e.set=function(t){return void 0===t&&(t=new Set),e.hasEntries(t,function(e,t){return e.delete(t)},function(e,n,r,i){return t.delete(r)&&t.add(i)})},e.iterable=function(t){return new e(function(e){for(var n=t[Symbol.iterator](),i=0,o=n.next();!o.done&&e.act(o.value,i)!==r.STOP;o=n.next(),i++);}).onReset(function(e){return t=e})},e.object=function(t,n){return void 0===n&&(n=!0),new e(function(e){for(var i in t)if(!n||t.hasOwnProperty(i))switch(e.act(t[i],i)){case r.STOP:return;case r.REMOVE:delete t[i];break;case r.REPLACE:t[i]=e.replaceWith}}).onReset(function(e){return t=e})},e.linked=function(t,n,i,o,u){return u||(u=function(e){return t(e)}),function(a,s){return void 0===s&&(s=!0),new e(function(e){for(var f=a,c=n(a);c&&c!==a;){var h=n(c),l=!1;switch(e.act(t(c),u(c))){case r.STOP:return;case r.REMOVE:if(i)i(c,f),l=!0;else if(s)throw new Error("remove is required for linked list iteration");break;case r.REPLACE:if(o)o(c,e.replaceWith);else if(s)throw new Error("replace is required for linked list iteration")}l||(f=c),c=h}}).onReset(function(e){return a=e})}},e.tree=function(t,n,i,o){o||(o=function(e){return t(e)});var u=e.empty(),a=function(t){var r=n(t);return r?Array.isArray(r)?e.array(r):r:u},s=function(e,n,u,a,s){switch(n.act(t(e),o(e))){case r.STOP:return s&&s.stop(),!1;case r.REPLACE:if(i)i(e,n.replaceWith);else if(u)throw new Error("replaceValue is required when replacing a value in a tree");break;case r.REMOVE:if(s)s.remove();else if(u&&a)throw new Error("remove is not supported for breadth-first iteration")}return!0},f=function(e,t,n,r){return!!s(e,t,n,!1,r)&&!a(e).each(function(e,r,i){return f(e,t,n,i)}).isStopped()};return function(t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!0),new e(function(e){return n?f(t,e,r):function(e,t,n){var r=[];for(r.push(e);r.length>0;){var i=r.shift();if(!s(i,t,n,!0))break;a(i).array(r)}}(t,e,r)}).onReset(function(e){return t=e})}},e.join=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(e){var n,o,u=t.map(c);try{for(var a=i(u),s=a.next();!s.done;s=a.next()){var f=s.value;if(f.each(function(t,n,i){switch(e.act(t,n)){case r.REMOVE:i.remove();break;case r.STOP:i.stop();break;case r.REPLACE:i.replace(e.replaceWith)}}),f.action===r.STOP)return}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}})},e.empty=function(){return new e(function(e){})},e.func=function(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i,o=c(t);return e.apply(void 0,u([o,function(e){return i=e}],n)),i}},e}(),s=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},f=[function(e){return e instanceof a&&e},function(e){return!!Array.isArray(e)&&a.array(e)},function(e){return e instanceof Set&&a.set(e)},function(e){return e instanceof Map&&a.map(e)},function(e){return!(!e||!e[Symbol.iterator])&&a.iterable(e)},function(e){return!(!e||!e.entries)&&a.hasEntries(e)},function(e){return null==e&&a.empty()},function(e){return"object"==typeof e&&a.object(e)},function(e){return a.array([e])}];function c(e){var t,n;try{for(var r=s(f),i=r.next();!i.done;i=r.next()){var o=(0,i.value)(e);if(!1!==o)return o}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}function h(e){return"function"==typeof e}function l(e,t,n,r,i,o){var u=!i(n),a=!i(r);return u!==a?(t?u:a)?-1:1:u?0:e?o(n,r):o(r,n)}function d(e,t,n,r){var i=!n(e);return i===!n(t)&&(!!i||r(e,t))}function p(e,t,n){void 0===n&&(n=!1);var r=null==e;if(r!==(null==t))return r?1:-1;if(r)return 0;var i=typeof e;if(i!==typeof t){if(n)return-1;throw new Error("You must implement your own comparator for unknown or mixed values.")}if("string"===i)return e.localeCompare(t);if("number"===i)return e-t;if("boolean"===i)return(e?1:0)-(t?1:0);if(e instanceof Date&&t instanceof Date)return e.getTime()-t.getTime();if(!n)throw new Error("You must implement your own comparator for unknown or mixed values.");if(e instanceof Array){if(0!=(a=e.length-t.length))return a;for(var o=0;o<e.length;o++)if(0!==(a=p(e[o],t[o],n)))return a;return 0}if("object"===i){for(var u in e)if(!(u in t))return-1;for(var u in t){if(!(u in e))return-1;var a;if(0!==(a=p(e[u],t[u],n)))return a}}return 0}function m(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=function(e){return"number"==typeof e&&isFinite(e)},r=function(e,t){return e-t};return function(i,o){return l(e,t,i,o,n,r)}}function y(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!1);var r=function(e){return"string"==typeof e},i=e?function(e,t){return e.localeCompare(t)}:function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())};return function(e,o){return l(t,n,e,o,r,i)}}function v(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=function(e){return e instanceof Date},r=function(e,t){return e.getTime()-t.getTime()};return function(i,o){return l(e,t,i,o,n,r)}}function M(e,t){void 0===e&&(e=1),void 0===t&&(t=!0);var n=function(e){return e instanceof Date},r=t?function(e){return e.getTime()}:function(e){return e.getTime()+6e4*e.getTimezoneOffset()},i=function(t,n){return r(t)%e==r(n)%e};return function(e,t){return d(e,t,n,i)}}n.d(t,"Generators",function(){return f}),n.d(t,"iterate",function(){return c}),n.d(t,"isFunction",function(){return h}),n.d(t,"compare",function(){return l}),n.d(t,"equals",function(){return d}),n.d(t,"defaultCompare",function(){return p}),n.d(t,"getNumberComparator",function(){return m}),n.d(t,"getStringComparator",function(){return y}),n.d(t,"getDateComparator",function(){return v}),n.d(t,"getDateEquality",function(){return M}),n.d(t,"IterateAction",function(){return r}),n.d(t,"Iterate",function(){return a}),t.default=c}])},function(e,t,n){"use strict";n.r(t);var r=n(0),i=function(){function e(){}return e.MILLIS_IN_SECOND=1e3,e.SECONDS_IN_MINUTE=60,e.MINUTES_IN_HOUR=60,e.HOURS_IN_DAY=24,e.DAYS_IN_WEEK=7,e.DAYS_IN_YEAR=366,e.MILLIS_IN_MINUTE=e.MILLIS_IN_SECOND*e.SECONDS_IN_MINUTE,e.MILLIS_IN_HOUR=e.MILLIS_IN_MINUTE*e.SECONDS_IN_MINUTE,e.MILLIS_IN_DAY=e.MILLIS_IN_HOUR*e.HOURS_IN_DAY,e.MILLIS_IN_WEEK=e.MILLIS_IN_DAY*e.DAYS_IN_WEEK,e.MINUTES_IN_DAY=e.MINUTES_IN_HOUR*e.HOURS_IN_DAY,e.MONTHS_IN_QUARTER=3,e.MONTHS_IN_YEAR=12,e.MONTH_MIN=0,e.MONTH_MAX=11,e.DAY_MIN=1,e.DAY_MAX=31,e.HOUR_MIN=0,e.HOUR_MAX=23,e.MINUTE_MIN=0,e.MINUTE_MAX=59,e.SECOND_MIN=0,e.SECOND_MAX=59,e.MILLIS_MIN=0,e.MILLIS_MAX=999,e.WEEKDAY_MIN=0,e.WEEKDAY_MAX=6,e.DURATION_DEFAULT=1,e.DURATION_DEFAULT_UNIT_ALL="day",e.DURATION_DEFAULT_UNIT_TIMES="hour",e.DURATION_DEFAULT_UNIT=function(t){return t?e.DURATION_DEFAULT_UNIT_ALL:e.DURATION_DEFAULT_UNIT_TIMES},e.MAX_EVENTS_PER_DAY=24,e}(),o=function(){function e(){}return e.isArray=function(e){return e instanceof Array},e.isArrayEquals=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},e.isString=function(e){return"string"==typeof e},e.isNumber=function(e){return isFinite(e)&&"number"==typeof e},e.isObject=function(e){return null!==e&&!this.isArray(e)&&"object"==typeof e},e.isDefined=function(e){return void 0!==e},e.isValue=function(e){return null!=e},e.isFrequencyValueEvery=function(e){return this.isObject(e)&&this.isNumber(e.every)},e.isFrequencyValueOneOf=function(e){return this.isArray(e)&&e.length>0},e.isFrequencyValueEquals=function(e){return"number"==typeof e&&isFinite(e)},e.coalesce=function(e,t,n){return this.isDefined(e)?e:this.isDefined(t)?t:n},e.extend=function(e,t){for(var n in t)e[n]=t[n];return e},e.pad=function(e,t,n,r){for(;e.length<t;)r?e=n+e:e+=n;return e},e.padNumber=function(e,t,n){return void 0===n&&(n=t),this.pad(e+"",t,"0",!0).substring(0,n)},e}(),u=function(){function e(e,t){void 0===t&&(t={}),this.cached={},this.sections=[],this.add(e),this.escapes=t}return e.prototype.add=function(e,t){if(o.isString(e))this.getSection(e.length).formats[e]=t;else for(var n in e)this.getSection(n.length).formats[n]=e[n];return this},e.prototype.getSection=function(e){var t=this.sections.length-e,n=this.sections[t];if(n&&n.size===e)return n;for(var r=0,i=this.sections;r<i.length;r++){var o=i[r];if(o.size===e)return o}var u={size:e,formats:{}};return this.sections.push(u),this.sortBySize(),u},e.prototype.sortBySize=function(){this.sections.sort(function(e,t){return t.size-e.size})},e.prototype.getEscaped=function(e,t){var n=e.charAt(t),r=this.escapes[n];if(!r)return!1;var i=r.start,o=r.end,u=r.startEscape,a=r.endEscape;if(e.substring(t,t+i.length)!==i)return!1;var s=t-u.indexOf(i);if(e.substring(s,s+u.length)===u)return!1;t+=i.length;var f=a.indexOf(o),c=e.indexOf(o,t),h=e.substring(t,c);for(t=c-f;-1!==c&&e.substring(t,t+a.length)===a;)h=h.substring(0,h.length-f),h+=o,t+=a.length,c=e.indexOf(o,t),h+=e.substring(t,c),t=c-f;return-1!==c&&[h,c+o.length]},e.prototype.getFormatter=function(e,t){if(void 0===t&&(t=!1),e in this.cached)return this.cached[e];for(var n,r=this.sections,i=[],o="",u=function(t){var u=a.getEscaped(e,t);if(!1!==u){var s=u[0],f=u[1];return o+=s,n=t=f-1,"continue"}for(var c=!1,h=0;h<r.length&&!c;h++){var l=r[h],d=e.substring(t,t+l.size);if(d.length===l.size){var p=l.formats[d];p&&(i.push(p),t+=l.size-1,c=!0)}}if(c){if(o){var m=o;i.splice(i.length-1,0,function(){return m}),o=""}}else o+=e.charAt(t);n=t},a=this,s=0;s<e.length;s++)u(s),s=n;o&&i.push(function(){return o});var f=function(e){for(var t="",n=0,r=i;n<r.length;n++){t+=(0,r[n])(e)}return t};return t&&(this.cached[e]=f),f},e.prototype.format=function(e,t,n){return void 0===n&&(n=!1),this.getFormatter(e,n)(t)},e}(),a=new u({M:function(e){return e[0].month+1+""},Mo:function(e){var t=e[0];return e[1].suffix(t.month+1)},MM:function(e){var t=e[0];return o.padNumber(t.month+1,2)},MMm:function(e){var t=e[0];return e[1].months[3][t.month]},MMM:function(e){var t=e[0];return e[1].months[2][t.month]},MMMm:function(e){var t=e[0];return e[1].months[1][t.month]},MMMM:function(e){var t=e[0];return e[1].months[0][t.month]},Q:function(e){return e[0].quarter+1+""},Qo:function(e){var t=e[0];return e[1].suffix(t.quarter+1)},D:function(e){return e[0].dayOfMonth+""},Do:function(e){var t=e[0];return e[1].suffix(t.dayOfMonth)},DD:function(e){var t=e[0];return o.padNumber(t.dayOfMonth,2)},DDD:function(e){return e[0].dayOfYear+""},DDDo:function(e){var t=e[0];return e[1].suffix(t.dayOfYear)},DDDD:function(e){var t=e[0];return o.padNumber(t.dayOfYear,3)},d:function(e){return e[0].day+""},do:function(e){var t=e[0];return e[1].suffix(t.day)},dd:function(e){var t=e[0];return e[1].weekdays[3][t.day]},ddd:function(e){var t=e[0];return e[1].weekdays[2][t.day]},dddd:function(e){var t=e[0];return e[1].weekdays[0][t.day]},e:function(e){return e[0].dayOfWeek+""},E:function(e){return e[0].dayOfWeek+1+""},eo:function(e){var t=e[0];return e[1].suffix(t.dayOfWeek)},Eo:function(e){var t=e[0];return e[1].suffix(t.dayOfWeek+1)},w:function(e){return e[0].week+""},wo:function(e){var t=e[0];return e[1].suffix(t.week)},ww:function(e){var t=e[0];return o.padNumber(t.week,2)},W:function(e){return e[0].weekOfYear+""},Wo:function(e){var t=e[0];return e[1].suffix(t.weekOfYear)},WW:function(e){var t=e[0];return o.padNumber(t.weekOfYear,2)},Y:function(e){return e[0].year+""},YY:function(e){var t=e[0];return o.padNumber(t.year%100,2)},YYYY:function(e){var t=e[0];return o.padNumber(t.year,4,10)},gg:function(e){var t=e[0];return o.padNumber(t.year%100,2)},gggg:function(e){var t=e[0];return o.padNumber(t.year,4,10)},GG:function(e){var t=e[0];return o.padNumber(t.year%100,2)},GGGG:function(e){var t=e[0];return o.padNumber(t.year,4,10)},a:function(e){var t=e[0],n=e[1];return t.hour<12?n.am:n.pm},A:function(e){var t=e[0],n=e[1];return t.hour<12?n.am.toUpperCase():n.pm.toUpperCase()},H:function(e){return e[0].hour+""},HH:function(e){var t=e[0];return o.padNumber(t.hour,2)},h:function(e){return(e[0].hour%12||12)+""},hh:function(e){var t=e[0];return o.padNumber(t.hour%12||12,2)},k:function(e){return e[0].hour+1+""},kk:function(e){var t=e[0];return o.padNumber(t.hour+1,2)},m:function(e){return e[0].minute+""},mm:function(e){var t=e[0];return o.padNumber(t.minute,2)},s:function(e){return e[0].seconds+""},ss:function(e){var t=e[0];return o.padNumber(t.seconds,2)},S:function(e){var t=e[0];return o.padNumber(t.millis,3,1)},SS:function(e){var t=e[0];return o.padNumber(t.millis,3,2)},SSS:function(e){var t=e[0];return o.padNumber(t.millis,3)},SSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"0"},SSSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"00"},SSSSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"000"},SSSSSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"0000"},SSSSSSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"00000"},SSSSSSSSS:function(e){var t=e[0];return o.padNumber(t.millis,3)+"000000"},z:function(e){return e[0].date.toLocaleTimeString("en-us",{timeZoneName:"short"}).split(" ")[2]},zz:function(e){return e[0].date.toLocaleTimeString("en-us",{timeZoneName:"long"}).split(" ")[2]},Z:function(e){return s(e[0],":")},ZZ:function(e){return s(e[0],"")},X:function(e){var t=e[0];return Math.floor(t.time/1e3)+""},x:function(e){return e[0].time+""},LT:function(e){var t=e[0],n=e[1];return t.format(n.formatLT,!0)},LTS:function(e){var t=e[0],n=e[1];return t.format(n.formatLTS,!0)},L:function(e){var t=e[0],n=e[1];return t.format(n.formatL,!0)},l:function(e){var t=e[0],n=e[1];return t.format(n.formatl,!0)},LL:function(e){var t=e[0],n=e[1];return t.format(n.formatLL,!0)},ll:function(e){var t=e[0],n=e[1];return t.format(n.formatll,!0)},LLL:function(e){var t=e[0],n=e[1];return t.format(n.formatLLL,!0)},lll:function(e){var t=e[0],n=e[1];return t.format(n.formatlll,!0)},LLLL:function(e){var t=e[0],n=e[1];return t.format(n.formatLLLL,!0)},llll:function(e){var t=e[0],n=e[1];return t.format(n.formatllll,!0)}},{"[":{start:"[",startEscape:"\\[",end:"]",endEscape:"\\]"},"'":{start:"'",startEscape:"''",end:"'",endEscape:"''"}});function s(e,t){var n=e.offset(),r=Math.floor(Math.abs(n)/100),i=Math.abs(n)%100;return(n<0?"-":"+")+o.padNumber(r,2)+t+o.padNumber(i,2)}var f=["th","st","nd","rd","th","th","th","th","th","th"],c={weekStartsOn:0,firstWeekContainsDate:4,am:"am",pm:"pm",formatLT:"h:mm A",formatLTS:"h:mm:ss A",formatL:"MM/DD/Y",formatl:"M/D/Y",formatLL:"MMMM D, Y",formatll:"MMM D, Y",formatLLL:"MMMM D, Y h:mm A",formatlll:"MMM D, Y h:mm A",formatLLLL:"dddd, MMMM D, Y h:mm A",formatllll:"ddd, MMM D, Y h:mm A",suffix:function(e){return e+(e>=11&&e<=13?"th":f[e%f.length])},identifierTime:function(e){return e?"lll":"LLL"},identifierDay:function(e){return e?"ll":"LL"},identifierWeek:function(e){return"wo [week of] Y"},identifierMonth:function(e){return e?"MMM Y":"MMMM Y"},identifierQuarter:function(e){return"Qo [quarter] Y"},identifierYear:function(e){return"Y"},patternNone:function(e){return"Does not repeat"},patternDaily:function(e){return"Daily"},patternWeekly:function(e){return"Weekly on "+e.format("dddd")},patternMonthlyWeek:function(e){return"Monthly on the "+c.suffix(e.weekspanOfMonth+1)+" "+e.format("dddd")},patternAnnually:function(e){return"Annually on "+e.format("MMMM Do")},patternAnnuallyMonthWeek:function(e){return"Annually on the "+c.suffix(e.weekspanOfMonth+1)+" "+e.format("dddd")+" of "+e.format("MMMM")},patternWeekday:function(e){return"Every weekday (Monday to Friday)"},patternMonthly:function(e){return"Monthly on the "+e.format("Do")+" day"},patternLastDay:function(e){return"Last day of the month"},patternLastDayOfMonth:function(e){return"Last day of "+e.format("MMMM")},patternLastWeekday:function(e){return"Last "+e.format("dddd")+" in "+e.format("MMMM")},patternLastWeekdayOfMonth:function(e){return"Monthly on the last "+e.format("dddd")},patternEveryOtherWeek:function(e){return"Every other week on "+e.format("dddd")},patternCustom:function(e){return"Custom..."},scheduleStartingOn:function(e){return"Starting on "+e.format("MMMM Do, YYYY")},scheduleEndingOn:function(e){return" and ending on "+e.format("MMMM Do, YYYY")},scheduleEndsOn:function(e){return"Up until "+e.format("MMMM Do, YYYY")},scheduleThing:function(e,t){return t?"The "+e+" will occur":" the "+e+" will occur"},scheduleAtTimes:" at ",scheduleDuration:function(e,t){return" lasting "+e+" "+(t?t+(1!==e?"s":"")+" ":"")},scheduleExcludes:" excluding ",scheduleIncludes:" including ",scheduleCancels:" with cancellations on ",ruleDayOfWeek:{every:function(e){return"every "+c.suffix(e)+" day of the week"},offset:function(e){return"starting on the "+c.suffix(e)+" day of the week"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" day of the week"}},ruleLastDayOfMonth:{every:function(e){return"every "+c.suffix(e)+" last day of the month"},offset:function(e){return"starting on the "+c.suffix(e)+" last day of the month"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" last day of the month"}},ruleDayOfMonth:{every:function(e){return"every "+c.suffix(e)+" day of the month"},offset:function(e){return"starting on the "+c.suffix(e)+" day of the month"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" day of the month"}},ruleDayOfYear:{every:function(e){return"every "+c.suffix(e)+" day of the year"},offset:function(e){return"starting on the "+c.suffix(e+1)+" day of the year"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" day of the year"}},ruleYear:{every:function(e){return"every "+c.suffix(e)+" year"},offset:function(e){return"starting in "+e},oneOf:function(e){return"in "+c.list(e.map(function(e){return e.toString()}))}},ruleMonth:{every:function(e){return"every "+c.suffix(e)+" month"},offset:function(e){return"starting in "+c.months[0][e]},oneOf:function(e){return"in "+c.list(e.map(function(e){return c.months[0][e]}))}},ruleDay:{every:function(e){return"every "+c.suffix(e)+" day of the week"},offset:function(e){return"starting on "+c.weekdays[0][e]},oneOf:function(e){return"on "+c.list(e.map(function(e){return c.weekdays[0][e]}))}},ruleWeek:{every:function(e){return"every "+c.suffix(e)+" week of the year"},offset:function(e){return"starting on the "+c.suffix(e)+" week of the year"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" week of the year"}},ruleWeekOfYear:{every:function(e){return"every "+c.suffix(e)+" week of the year"},offset:function(e){return"starting on the "+c.suffix(e)+" week of the year"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" week of the year"}},ruleWeekspanOfYear:{every:function(e){return"every "+c.suffix(e+1)+" weekspan of the year"},offset:function(e){return"starting on the "+c.suffix(e+1)+" weekspan of the year"},oneOf:function(e){return"on the "+c.list(e.map(function(e){return c.suffix(e+1)}))+" weekspan of the year"}},ruleFullWeekOfYear:{every:function(e){return"every "+c.suffix(e)+" full week of the year"},offset:function(e){return"starting on the "+c.suffix(e)+" full week of the year"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" full week of the year"}},ruleLastWeekspanOfYear:{every:function(e){return"every "+c.suffix(e+1)+" last weekspan of the year"},offset:function(e){return"starting on the "+c.suffix(e+1)+" last weekspan of the year"},oneOf:function(e){return"on the "+c.list(e.map(function(e){return c.suffix(e+1)}))+" last weekspan of the year"}},ruleLastFullWeekOfYear:{every:function(e){return"every "+c.suffix(e)+" last full week of the year"},offset:function(e){return"starting on the "+c.suffix(e)+" last full week of the year"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" last full week of the year"}},ruleWeekOfMonth:{every:function(e){return"every "+c.suffix(e)+" week of the month"},offset:function(e){return"starting on the "+c.suffix(e)+" week of the month"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" week of the month"}},ruleFullWeekOfMonth:{every:function(e){return"every "+c.suffix(e)+" full week of the month"},offset:function(e){return"starting on the "+c.suffix(e)+" full week of the month"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" full week of the month"}},ruleWeekspanOfMonth:{every:function(e){return"every "+c.suffix(e+1)+" weekspan of the month"},offset:function(e){return"starting on the "+c.suffix(e+1)+" weekspan of the month"},oneOf:function(e){return"on the "+c.list(e.map(function(e){return c.suffix(e+1)}))+" weekspan of the month"}},ruleLastFullWeekOfMonth:{every:function(e){return"every "+c.suffix(e)+" last full week of the month"},offset:function(e){return"starting on the "+c.suffix(e)+" last full week of the month"},oneOf:function(e){return"on the "+c.list(e.map(c.suffix))+" last full week of the month"}},ruleDaysSinceEpoch:{every:function(e){return 1===e?"every day":"every "+e+" days"},offset:function(e){return"starting "+e+" "+(1===e?"day":"days")+" after the start"},oneOf:function(e){return"on "+(1===e.length?"one chosen day":e.length+" chosen days")}},ruleWeeksSinceEpoch:{every:function(e){return 1===e?"every week":"every "+e+" weeks"},offset:function(e){return"starting "+e+" "+(1===e?"week":"weeks")+" after the start"},oneOf:function(e){return"in "+(1===e.length?"one chosen week":e.length+" chosen weeks")}},ruleMonthsSinceEpoch:{every:function(e){return 1===e?"every month":"every "+e+" months"},offset:function(e){return"starting "+e+" "+(1===e?"month":"months")+" after the start"},oneOf:function(e){return"in "+(1===e.length?"one chosen month":e.length+" chosen months")}},ruleLastWeekspanOfMonth:{every:function(e){return"every "+c.suffix(e+1)+" last weekspan of the month"},offset:function(e){return"starting on the "+c.suffix(e+1)+" last weekspan of the month"},oneOf:function(e){return"on the "+c.list(e.map(function(e){return c.suffix(e+1)}))+" last weekspan of the month"}},summaryDay:function(e,t,n){return(t?e?"ddd, ":"dddd, ":"")+(e?"MMM ":"MMMM ")+"Do"+(n?" YYYY":"")},summaryWeek:function(e,t,n){return(t?e?"ddd, ":"dddd, ":"")+(e?"MMM ":"MMMM ")+"Do"+(n?" YYYY":"")},summaryMonth:function(e,t,n){return(e?"MMM":"MMMM")+(n?" YYYY":"")},summaryYear:function(e,t,n){return n?"YYYY":""},list:function(e){for(var t=e.length-1,n=e[0],r=1;r<t;r++)n+=", "+e[r];return t>0&&(n+=" and "+e[t]),n},months:[["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Ja","F","Mr","Ap","My","Je","Jl","Ag","S","O","N","D"]],weekdays:[["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Sun","Mon","Tues","Wed","Thurs","Fri","Sat"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Su","M","Tu","W","Th","F","Sa"]]},h=c,l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},d=function(e){return h.suffix(e)},p=function(e){return h.weekdays[0][(e+v.weekStartsOn)%7]},m=function(e){return 0===e?"the last":"the "+d(e+1)+" to last"},y=function(e,t,n){return{every:e,offset:t,oneOf:n}},v=l({},h,{patternNone:function(e){return"Does not repeat"},patternDaily:function(e){return"Every day"},patternWeekly:function(e){return"Every week on "+e.format("dddd")},patternMonthlyWeek:function(e){return"Every month on the "+d(e.weekspanOfMonth+1)+" "+e.format("dddd")},patternAnnually:function(e){return"Every year on "+e.format("MMMM D")},patternAnnuallyMonthWeek:function(e){return"Every year on the "+d(e.weekspanOfMonth+1)+" "+e.format("dddd")+" of "+e.format("MMMM")},patternWeekday:function(e){return"Every weekday (Monday to Friday)"},patternMonthly:function(e){return"Every month on the "+e.format("Do")},patternLastDay:function(e){return"Every month on the last day"},patternLastDayOfMonth:function(e){return"Every year on the last day of "+e.format("MMMM")},patternLastWeekday:function(e){return"Every year on the last "+e.format("dddd")+" of "+e.format("MMMM")},patternLastWeekdayOfMonth:function(e){return"Every month on the last "+e.format("dddd")},patternEveryOtherWeek:function(e){return"Every other week on "+e.format("dddd")},patternCustom:function(e){return"Custom…"},scheduleStartingOn:function(e){return"From "+e.format("MMMM D, YYYY")},scheduleEndingOn:function(e){return" to "+e.format("MMMM D, YYYY")},scheduleEndsOn:function(e){return"Until "+e.format("MMMM D, YYYY")},scheduleThing:function(e,t){return t?"Happens":", happens"},scheduleAtTimes:" at ",scheduleTimeFormat:"h:mm a",scheduleDuration:function(e,t){return", for "+e+(t?" "+t+(1!==e?"s":""):"")},scheduleExcludes:", except ",scheduleIncludes:", also ",scheduleCancels:", cancelled on ",ruleDayOfWeek:y(function(e){return"on every "+d(e)+" day of the week"},function(e){return"starting on "+p(e)},function(e){return"on "+v.list(e.map(p))}),ruleDay:y(function(e){return"on every "+d(e)+" day of the week"},function(e){return"starting on "+h.weekdays[0][e]},function(e){return"on "+v.list(e.map(function(e){return h.weekdays[0][e]}))}),ruleDayOfMonth:y(function(e){return"on every "+d(e)+" day of the month"},function(e){return"starting on the "+d(e)},function(e){return"on the "+v.list(e.map(d))}),ruleLastDayOfMonth:y(function(e){return"on every "+d(e)+" day from the end of the month"},function(e){return"starting "+e+" days from the end of the month"},function(e){return"on "+v.list(e.map(function(e){return m(e-1)}))+" day of the month"}),ruleMonth:y(function(e){return"in every "+d(e)+" month of the year"},function(e){return"starting in "+h.months[0][e]},function(e){return"in "+v.list(e.map(function(e){return h.months[0][e]}))}),ruleWeekspanOfMonth:y(function(e){return"in every "+d(e)+" week of the month"},function(e){return"starting in the "+d(e+1)+" week of the month"},function(e){return"in the "+v.list(e.map(function(e){return d(e+1)}))+" week of the month"}),ruleLastWeekspanOfMonth:y(function(e){return"in every "+d(e)+" week from the end of the month"},function(e){return"starting in "+m(e)+" week of the month"},function(e){return"in "+v.list(e.map(m))+" week of the month"}),ruleWeekspanOfYear:y(function(e){return"in every "+d(e)+" week of the year"},function(e){return"starting in the "+d(e+1)+" week of the year"},function(e){return"in the "+v.list(e.map(function(e){return d(e+1)}))+" week of the year"}),ruleLastWeekspanOfYear:y(function(e){return"in every "+d(e)+" week from the end of the year"},function(e){return"starting in "+m(e)+" week of the year"},function(e){return"in "+v.list(e.map(m))+" week of the year"})}),M=v,O=function(){function e(e,t){this.value=e,this.shared=t,this.dirty=!1}return e.prototype.getUpdate=function(t){return this.shared?new e(t,!1):(this.value=t,this)},e.prototype.getReplace=function(t){return this.shared?(this.dirty=!0,new e(t,!0)):(this.value=t,this)},e}(),g=function(){function e(){}return e.add=function(e,t){for(var n=0,r=o.isArray(e)?e:[e];n<r.length;n++){var i=r[n];this.map[this.normal(i)]=t}},e.alias=function(e,t){for(var n=this.map[this.normal(e)],r=0,i=t;r<i.length;r++){var o=i[r];this.map[this.normal(o)]=n}},e.set=function(e){var t=this.normal(e),n=t in this.map;return n&&(this.ref=this.ref.getReplace(this.map[t])),n},e.normal=function(e){return e.toLowerCase()},e.get=function(e){var t=this.normal(e);return t in this.map?this.map[t]:this.current},Object.defineProperty(e,"current",{get:function(){return this.ref.value},enumerable:!0,configurable:!0}),e.map={en:h,"en-plain":M},e.ref=new O(h,!0),e}(),k=function(){function e(){}return e.SUNDAY=0,e.MONDAY=1,e.TUESDAY=2,e.WEDNESDAY=3,e.THURSDAY=4,e.FRIDAY=5,e.SATURDAY=6,e.LIST=[e.SUNDAY,e.MONDAY,e.TUESDAY,e.WEDNESDAY,e.THURSDAY,e.FRIDAY,e.SATURDAY],e.WEEK=[e.MONDAY,e.TUESDAY,e.WEDNESDAY,e.THURSDAY,e.FRIDAY],e.ENDS=[e.SATURDAY,e.SUNDAY],e}(),w={millis:function(e){return e},second:function(e){e.setMilliseconds(0)},minute:function(e){e.setSeconds(0,0)},hour:function(e){e.setMinutes(0,0,0)},day:function(e){e.setHours(0,0,0,0)},week:function(e,t){void 0===t&&(t=g.current);var n=z(e,t);e.setDate(e.getDate()-n),e.setHours(0,0,0,0)},month:re,quarter:function(e){var t=e.getMonth();e.setMonth(t-t%i.MONTHS_IN_QUARTER,i.DAY_MIN),e.setHours(0,0,0,0)},year:ie},S={millis:function(e){return e},second:function(e){e.setMilliseconds(i.MILLIS_MAX)},minute:function(e){e.setSeconds(i.SECOND_MAX,i.MILLIS_MAX)},hour:function(e){e.setMinutes(i.MINUTE_MAX,i.SECOND_MAX,i.MILLIS_MAX)},day:oe,week:function(e,t){void 0===t&&(t=g.current);var n=z(e,t);e.setDate(e.getDate()+(i.WEEKDAY_MAX-n)),oe(e)},month:function(e){e.setFullYear(e.getFullYear(),e.getMonth()+1,0),oe(e)},quarter:function(e){var t=e.getMonth();e.setMonth(t-t%i.MONTHS_IN_QUARTER+i.MONTHS_IN_QUARTER,i.DAY_MIN),oe(e)},year:ue},E={millis:ae,second:function(e,t){ae(e,t*i.MILLIS_IN_SECOND)},minute:function(e,t){ae(e,t*i.MILLIS_IN_MINUTE)},hour:function(e,t){ae(e,t*i.MILLIS_IN_HOUR)},day:se,week:function(e,t){se(e,t*i.DAYS_IN_WEEK)},month:fe,quarter:function(e,t){fe(e,t*i.MONTHS_IN_QUARTER)},year:function(e,t){fe(e,t*i.MONTHS_IN_YEAR)}},D={millis:ce,second:function(e,t){return ce(e,t)/i.MILLIS_IN_SECOND},minute:function(e,t){return ce(e,t)/i.MILLIS_IN_MINUTE},hour:function(e,t){return ce(e,t)/i.MILLIS_IN_HOUR},day:he,week:function(e,t){return he(e,t)/i.DAYS_IN_WEEK},month:le,quarter:function(e,t){return le(e,t)/i.MONTHS_IN_QUARTER},year:function(e,t){return le(e,t)/i.MONTHS_IN_YEAR}},Y={millis:1,second:i.MILLIS_IN_SECOND,minute:i.MILLIS_IN_MINUTE,hour:i.MILLIS_IN_HOUR,day:i.MILLIS_IN_DAY,week:i.MILLIS_IN_WEEK,month:i.MILLIS_IN_DAY*i.DAY_MAX,quarter:i.MILLIS_IN_DAY*i.DAY_MAX*i.MONTHS_IN_QUARTER,year:i.MILLIS_IN_DAY*i.DAYS_IN_YEAR};function I(e,t,n){var r=new Date(e.getTime());return t(r,n),r}function W(e,t,n,r){void 0===n&&(n="millis"),void 0===r&&(r=g.current);var i=w[n],o=I(e,i,r),u=I(t,i,r);return o.getTime()-u.getTime()}function b(e){return ee(e)-e.getDate()+1}function _(e){var t=Q(e)-K(e);return Math.floor(t/i.DAYS_IN_WEEK)}function L(e,t){return void 0===t&&(t=g.current),q(I(e,ie),K(e),t)}function N(e,t){return void 0===t&&(t=g.current),P(I(e,ie),K(e),t)}function A(e){return Math.floor((K(e)-1)/i.DAYS_IN_WEEK)}function T(e,t){return void 0===t&&(t=g.current),H(I(e,ie),Q(e),t)}function x(e,t){void 0===t&&(t=g.current);var n=I(e,ue),r=L(e,t),o=L(n,t)-r;return z(n,t)===i.WEEKDAY_MAX?o+1:o}function R(e){return Math.floor((e.getDate()-1)/i.DAYS_IN_WEEK)}function F(e){var t=ee(e)-e.getDate();return Math.floor(t/i.DAYS_IN_WEEK)}function j(e,t){return void 0===t&&(t=g.current),H(I(e,re),e.getDate(),t)}function U(e,t){void 0===t&&(t=g.current);var n=ee(e)-e.getDate(),r=i.WEEKDAY_MAX-z(e,t);return Math.floor((n-r+i.DAYS_IN_WEEK)/i.DAYS_IN_WEEK)}function C(e,t){return void 0===t&&(t=g.current),q(I(e,re),e.getDate(),t)}function q(e,t,n){void 0===n&&(n=g.current);var r=n.firstWeekContainsDate,o=z(e,n),u=i.DAYS_IN_WEEK-o<r?o-1:o-1+i.DAYS_IN_WEEK;return Math.floor((t+u)/i.DAYS_IN_WEEK)}function P(e,t,n){var r=z(e,n)-1+i.DAYS_IN_WEEK;return Math.floor((t+r)/i.DAYS_IN_WEEK)}function H(e,t,n){void 0===n&&(n=g.current);var r=z(e,n),o=r!==k.SUNDAY?r-1:r-1+i.DAYS_IN_WEEK;return Math.floor((t+o)/i.DAYS_IN_WEEK)}function z(e,t){void 0===t&&(t=g.current);var n=t.weekStartsOn,r=e.getDay();return r<n?r-n+i.DAYS_IN_WEEK:r-n}function J(e){return Math.round(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())/i.MILLIS_IN_DAY)}function V(e,t){void 0===t&&(t=g.current);var n=(4-t.weekStartsOn+i.DAYS_IN_WEEK)%i.DAYS_IN_WEEK;return Math.floor((J(e)+n)/i.DAYS_IN_WEEK)}function B(e){return 12*(e.getFullYear()-1970)+e.getMonth()}function K(e){return Math.round(he(e,I(e,ie)))+1}function G(e){return 15*-Math.round(e.getTimezoneOffset()/15)}function X(e){var t=e.getFullYear();return t%400==0||t%4==0&&t%100!=0}function Q(e){return X(e)?366:365}var Z,$=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]];function ee(e){return $[X(e)?1:0][e.getMonth()]}function te(e){return e.getTime()-function(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();t.setSeconds(0,0);var r=t.getTime()%i.MILLIS_IN_MINUTE;return n*i.MILLIS_IN_MINUTE+r}(e)}function ne(e){return Math.floor(e.getMonth()/i.MONTHS_IN_QUARTER)}function re(e){e.setDate(i.DAY_MIN),e.setHours(0,0,0,0)}function ie(e){var t=e.getFullYear();e.setTime(0),e.setFullYear(t,0,1),e.setHours(0,0,0,0)}function oe(e){e.setHours(i.HOUR_MAX,i.MINUTE_MAX,i.SECOND_MAX,i.MILLIS_MAX)}function ue(e){e.setFullYear(e.getFullYear()+1,0,0),oe(e)}function ae(e,t){e.setTime(e.getTime()+t)}function se(e,t){e.setDate(e.getDate()+t)}function fe(e,t){var n=e.getMonth()+t,r=new Date(0);r.setFullYear(r.getFullYear(),n,1),r.setHours(0,0,0,0);var i=ee(r);e.setMonth(n,Math.min(i,e.getDate()))}function ce(e,t){return e.getTime()-t.getTime()}function he(e,t){return(te(e)-te(t))/i.MILLIS_IN_DAY}function le(e,t){var n=e.getFullYear()-t.getFullYear(),r=e.getMonth()-t.getMonth(),o=(e.getDate()-t.getDate())/i.DAY_MAX;return n*i.MONTHS_IN_YEAR+r+o}function de(e,t,n){if(void 0===n&&(n=!1),isFinite(e))switch(n&&(e=Math.abs(e)),t){case Z.NONE:return e;case Z.FLOOR:return Math.floor(e);case Z.CEIL:return Math.ceil(e);case Z.ROUND:return Math.round(e);case Z.TRUNCATE:case Z.DOWN:return e<0?Math.ceil(e):Math.floor(e);case Z.UP:return e<0?Math.floor(e):Math.ceil(e)}return e}!function(e){e[e.NONE=0]="NONE",e[e.FLOOR=1]="FLOOR",e[e.CEIL=2]="CEIL",e[e.ROUND=3]="ROUND",e[e.TRUNCATE=4]="TRUNCATE",e[e.UP=5]="UP",e[e.DOWN=6]="DOWN"}(Z||(Z={}));var pe,me=function(){function e(e,t){this.start=e,this.end=t}return Object.defineProperty(e.prototype,"isPoint",{get:function(){return this.start.time===this.end.time},enumerable:!0,configurable:!0}),e.prototype.contains=function(e){return e.time>=this.start.time&&e.time<=this.end.time},e.prototype.compareTo=function(e){return e.time<this.start.time?-1:e.time>this.end.time?1:0},e.prototype.matchesDay=function(e){return this.contains(e)||e.sameDay(this.start)||e.sameDay(this.end)},e.prototype.matchesWeek=function(e){return this.contains(e)||e.sameWeek(this.start)||e.sameWeek(this.end)},e.prototype.matchesMonth=function(e){return this.contains(e)||e.sameMonth(this.start)||e.sameMonth(this.end)},e.prototype.matchesYear=function(e){return this.contains(e)||e.sameYear(this.start)||e.sameYear(this.end)},e.prototype.millis=function(e,t){return void 0===e&&(e=Z.DOWN),void 0===t&&(t=!0),this.start.millisBetween(this.end,e,t)},e.prototype.seconds=function(e,t){return void 0===e&&(e=Z.DOWN),void 0===t&&(t=!0),this.start.secondsBetween(this.end,e,t)},e.prototype.minutes=function(e,t){return void 0===e&&(e=Z.DOWN),void 0===t&&(t=!0),this.start.minutesBetween(this.end,e,t)},e.prototype.hours=function(e,t){return void 0===e&&(e=Z.DOWN),void 0===t&&(t=!0),this.start.hoursBetween(this.end,e,t)},e.prototype.days=function(e,t){return void 0===e&&(e=Z.DOWN),void 0===t&&(t=!0),this.start.daysBetween(this.end,e,t)},e.prototype.weeks=function(e,t){return void 0===e&&(e=Z.DOWN),void 0===t&&(t=!0),this.start.weeksBetween(this.end,e,t)},e.prototype.months=function(e,t){return void 0===e&&(e=Z.DOWN),void 0===t&&(t=!0),this.start.monthsBetween(this.end,e,t)},e.prototype.years=function(e,t){return void 0===e&&(e=Z.DOWN),void 0===t&&(t=!0),this.start.yearsBetween(this.end,e,t)},e.prototype.startDelta=function(e){return(this.start.time-e.time)/i.MILLIS_IN_DAY},e.prototype.endDelta=function(e){return(this.end.time-e.time)/i.MILLIS_IN_DAY},e.prototype.getBounds=function(e,t,n,r,i,o,u){void 0===t&&(t=1),void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),void 0===o&&(o=0),void 0===u&&(u=0);var a=this.startDelta(e),s=this.endDelta(e),f=n-r,c=(i?Math.max(0,a):a)*t,h=(i?Math.min(1,s):s)*t;return{top:c+u,bottom:h+u,height:h-c,left:r+o,right:f+o,width:f}},e.prototype.summary=function(e,t,n,r,i,o){void 0===t&&(t=!0),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i=!0),void 0===o&&(o=" - ");var u=[g.current.summaryDay,g.current.summaryWeek,g.current.summaryMonth,g.current.summaryYear][e],a=Ne.today(),s=!i||!this.start.sameYear(a),f=!i||!this.end.sameYear(a),c=this.start.format(u(n,t,s)),h=this.end.format(u(n,t,f)),l=c;return c!==h?(r||(l=this.start.format(u(n,t,!this.start.sameYear(this.end)))),l+=o,l+=h):l=c,l},e.prototype.intersects=function(e){return!(this.end.time<e.start.time||this.start.time>e.end.time)},e.prototype.intersection=function(t){var n=this.start.max(t.start),r=this.end.min(t.end);return n.isAfter(r)?null:new e(n,r)},e.prototype.union=function(t){return new e(this.start.min(t.start),this.end.max(t.end))},e.point=function(t){return new e(t,t)},e}(),ye=(pe=function(e,t){return(pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}pe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ve=function(){function e(){}return e.prototype.is=function(e){return(e+"").length===this.getLength()},e.prototype.compute=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this.getScales(),r=0,i=0;i<e.length;i++)r+=e[i]*n[i];return this.is(r)?r:o.padNumber(r,this.getLength())},e.prototype.decompute=function(e){for(var t=this.getScales(),n=o.isNumber(e)?e:parseInt(e),r=[],i=0;i<t.length-1;i++){var u=t[i+0],a=t[i+1]/u,s=n%a;r.push(s),n=Math.floor(n/a)}return r.push(n),r},e.find=function(e){return this.Time.is(e)?this.Time:this.Day.is(e)?this.Day:this.Week.is(e)?this.Week:this.Month.is(e)?this.Month:this.Year.is(e)?this.Year:null},e.contains=function(e,t){var n=e+"";return(t+"").substring(0,n.length)===n},e.Time=null,e.Day=null,e.Week=null,e.Month=null,e.Quarter=null,e.Year=null,e}(),Me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ye(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.minute,e.hour,e.dayOfMonth,e.month+1,e.year)},t.prototype.object=function(e){var t=this.decompute(e);return{minute:t[0],hour:t[1],day:t[2],month:t[3]-1,year:t[4]}},t.prototype.start=function(e){var t=this.object(e);return Ne.build(t.year,t.month,t.day,t.hour,t.minute)},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.endOf("hour",t);return new me(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=g.current.identifierTime(t);return n.format(r)},t.prototype.matches=function(e,t){return e.timeIdentifier===t},t.SCALES=[1,100,1e4,1e6,1e8],t.LENGTH=12,t}(ve),Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ye(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.dayOfMonth,e.month+1,e.year)},t.prototype.object=function(e){var t=this.decompute(e);return{day:t[0],month:t[1]-1,year:t[2]}},t.prototype.start=function(e){var t=this.object(e);return Ne.build(t.year,t.month,t.day)},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.endOf("day",t);return new me(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=g.current.identifierDay(t);return n.format(r)},t.prototype.matches=function(e,t){return e.dayIdentifier===t},t.SCALES=[1,100,1e4],t.LENGTH=8,t}(ve),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ye(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.weekOfYear,e.year)},t.prototype.object=function(e){var t=this.decompute(e);return{week:t[0],year:t[1]}},t.prototype.start=function(e){var t=this.object(e);return Ne.build(t.year,0).withWeekOfYear(t.week)},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.endOf("week",t);return new me(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=g.current.identifierWeek(t);return n.format(r)},t.prototype.matches=function(e,t){return e.weekIdentifier===t},t.SCALES=[1,1e3],t.LENGTH=7,t}(ve),ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ye(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.month+1,e.year)},t.prototype.object=function(e){var t=this.decompute(e);return{month:t[0]-1,year:t[1]}},t.prototype.start=function(e){var t=this.object(e);return Ne.build(t.year,t.month)},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.endOf("month",t);return new me(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=g.current.identifierMonth(t);return n.format(r)},t.prototype.matches=function(e,t){return e.monthIdentifier===t},t.SCALES=[1,100],t.LENGTH=6,t}(ve),we=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ye(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.quarter,e.year)},t.prototype.object=function(e){var t=this.decompute(e);return{quarter:t[0],year:t[1]}},t.prototype.start=function(e){var t=this.object(e);return Ne.build(t.year,3*(t.quarter-1))},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.add("month",3).endOf("month",t);return new me(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=g.current.identifierQuarter(t);return n.format(r)},t.prototype.matches=function(e,t){return e.quarterIdentifier===t},t.SCALES=[1,10],t.LENGTH=5,t}(ve),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ye(t,e),t.prototype.getScales=function(){return t.SCALES},t.prototype.getLength=function(){return t.LENGTH},t.prototype.get=function(e){return this.compute(e.year)},t.prototype.object=function(e){return{year:this.decompute(e)[0]}},t.prototype.start=function(e){var t=this.object(e);return Ne.build(t.year,0)},t.prototype.span=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=n.endOf("year",t);return new me(n,r)},t.prototype.describe=function(e,t){void 0===t&&(t=!1);var n=this.start(e),r=g.current.identifierYear(t);return n.format(r)},t.prototype.matches=function(e,t){return e.year===t},t.SCALES=[1],t.LENGTH=4,t}(ve);ve.Time=new Me,ve.Day=new Oe,ve.Week=new ge,ve.Month=new ke,ve.Quarter=new we,ve.Year=new Se;var Ee,De=function(){return function(e,t,n,r){void 0===r&&(r=!0),this.schedule=e,this.data=t,this.id=n,this.visible=r}}(),Ye=function(){function e(){this.map={}}return e.prototype.clear=function(){return this.map={},this},e.prototype.isEmpty=function(){for(var e in this.map)return!e;return!0},e.prototype.get=function(e,t,n){void 0===n&&(n=!0);var r=this.map;return n&&r[e.timeIdentifier]||r[e.dayIdentifier]||r[e.monthIdentifier]||r[e.weekIdentifier]||r[e.quarterIdentifier]||t},e.prototype.getIdentifier=function(e,t){void 0===t&&(t=!0);var n=this.map;return t&&o.isDefined(n[e.timeIdentifier])?ve.Time:o.isDefined(n[e.dayIdentifier])?ve.Day:o.isDefined(n[e.monthIdentifier])?ve.Month:o.isDefined(n[e.weekIdentifier])?ve.Week:o.isDefined(n[e.quarterIdentifier])?ve.Quarter:o.isDefined(n[e.year])?ve.Year:null},e.prototype.getAll=function(e){var t=this.map,n=[];return t[e.timeIdentifier]&&n.push(t[e.timeIdentifier]),t[e.dayIdentifier]&&n.push(t[e.dayIdentifier]),t[e.monthIdentifier]&&n.push(t[e.monthIdentifier]),t[e.weekIdentifier]&&n.push(t[e.weekIdentifier]),t[e.quarterIdentifier]&&n.push(t[e.quarterIdentifier]),n},e.prototype.move=function(e,t,n,r){var i=t.get(e),o=r.get(n);return this.map[o]=this.map[i],delete this.map[i],this},e.prototype.moveTime=function(e,t){var n=ve.Time,r=[];this.iterate().each(function(t){var i=t[0];t[1];n.is(i)&&(n.start(i).sameTime(e)&&r.push(i))});for(var i=0,o=0,u=r;o<u.length;o++){var a=u[o],s=this.map[a],f=n.start(a).withTime(t),c=n.get(f);this.map[c]||(this.map[c]=s,delete this.map[a],i++)}return i},e.prototype.removeTime=function(e){var t=ve.Time,n=0;return this.iterate().each(function(r,i,o){var u=r[0];t.is(u)&&(t.start(u).sameTime(e)&&(o.remove(),n++))}),n},e.prototype.set=function(e,t,n){return this.map[n.get(e)]=t,this},e.prototype.unset=function(e,t){return delete this.map[t.get(e)],this},e.prototype.iterate=function(){var e=this;return new r.Iterate(function(t){var n=e.map;for(var i in n){var o=parseInt(i),u=o+""===i?o:i;switch(t.act([u,n[i]],i)){case r.IterateAction.STOP:return;case r.IterateAction.REMOVE:delete n[i]}}})},e.prototype.query=function(e){return this.iterate().where(function(t){var n=t[0];t[1];return ve.contains(e,n)})},e.prototype.identifiers=function(e){return this.iterate().where(function(t){var n=t[0],r=t[1];return!e||e(r,n)}).transform(function(e){return e[0]})},e.prototype.spans=function(e){return void 0===e&&(e=!1),this.iterate().transform(function(t){var n=t[0],r=t[1],i=ve.find(n);if(i)return{span:i.span(n,e),value:r}})},e.prototype.describe=function(e){return void 0===e&&(e=!1),this.iterate().transform(function(t){var n=t[0],r=ve.find(n);if(r)return r.describe(n,e)})},e.prototype.describeMap=function(e){void 0===e&&(e=!1);var t=this.map,n={};for(var r in t){var i=ve.find(r);i&&(n[i.describe(r,e)]=t[r])}return n},e}();!function(e){e[e.DAY=0]="DAY",e[e.WEEK=1]="WEEK",e[e.MONTH=2]="MONTH",e[e.YEAR=3]="YEAR"}(Ee||(Ee={}));for(var Ie,We=function(){function e(e){this.exclude=new Ye,this.include=new Ye,this.cancel=new Ye,this.meta=new Ye,o.isDefined(e)&&this.set(e)}return Object.defineProperty(e.prototype,"maxOccurrences",{get:function(){return this._maxOccurrences},set:function(e){this._maxOccurrences=e,this.checks&&this.updateEnd()},enumerable:!0,configurable:!0}),e.prototype.set=function(t,n){return void 0===n&&(n=function(e){return e}),t instanceof e?Le.schedule(t.toInput(),void 0,this):Le.schedule(t,o.coalesce(t.parseMeta,n),this),this},Object.defineProperty(e.prototype,"lastTime",{get:function(){return this.times[this.times.length-1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"identifierType",{get:function(){return this.isFullDay()?ve.Day:ve.Time},enumerable:!0,configurable:!0}),e.prototype.updateDurationInDays=function(){var e=this.lastTime?this.lastTime.toMilliseconds():0,t=this.duration*(Y[this.durationUnit]||0),n=i.MILLIS_IN_DAY,r=i.MILLIS_IN_DAY;return this.durationInDays=Math.max(0,Math.ceil((e+t-n)/r)),this},e.prototype.updateChecks=function(){return this.checks=Le.givenFrequency([this.year,this.month,this.day,this.quarter,this.week,this.weekOfYear,this.fullWeekOfYear,this.weekspanOfYear,this.lastFullWeekOfYear,this.lastWeekspanOfYear,this.weekOfMonth,this.weekspanOfMonth,this.fullWeekOfMonth,this.lastWeekspanOfMonth,this.lastFullWeekOfMonth,this.dayOfWeek,this.dayOfMonth,this.lastDayOfMonth,this.dayOfYear,this.anchored(this.daysSinceEpoch),this.anchored(this.weeksSinceEpoch),this.anchored(this.monthsSinceEpoch)]),this},e.prototype.anchored=function(e){var t=this;if(!e||!e.given||!o.isFrequencyValueEvery(e.input))return e;var n=e.property,r=e.input.every,i=e.input.offset||0,u=function(e){return((e-(t.start?t.start[n]:0)-i)%r+r)%r==0};return u.given=!0,u.input=e.input,u.property=n,u},e.prototype.updateEnd=function(){var e=this;if(this.maxOccurrences>0&&this.start){this.end=null;var t=(this.getMaximum("year")-this.start.year+1)*i.DAYS_IN_YEAR,n=this.include.spans().where(function(t){return t.span.start.isBefore(e.start)}).count(),r=this.maxOccurrences-n,o=this.forecast(this.start,!1,r,0,!0,t).where(function(t){return!t[0].start.isBefore(e.start)}).take(r).last();o&&(this.end=o[0].end)}return this},e.prototype.getMaximum=function(e){if(!this.start)return-1;if(this.end)return this.end[e];var t=this.maxOccurrences,n=this.start[e],r=this[e];if(r){var i=r.input;if(o.isFrequencyValueEquals(i))return i;if(o.isFrequencyValueOneOf(i)){for(var u=i[0],a=1;a<i.length;a++)i[a]>u&&(u=i[a]);return u}if(t>0&&o.isFrequencyValueEvery(i)){var s=i.every;return n+(i.offset||0)+s*t}}return t<=0?-1:n+t-1},e.prototype.getStart=function(){if(this.start)return this.start;var e=this.getSingleEventSpan();return e?e.start:null},e.prototype.getEnd=function(){if(this.end)return this.end;var e=this.getSingleEventSpan();return e?e.end:null},e.prototype.getRange=function(e){var t=this;void 0===e&&(e=!0);var n=this.times.length>0,r=this.getStart(),i=this.getEnd();return e&&this.include.spans().each(function(e){var o=e.span;t.isExcluded(o.start,n)||(r&&!o.start.isBefore(r)||(r=o.start),i&&!o.end.isAfter(i)||(i=o.end))}),{start:r,end:i}},e.prototype.getOccurrences=function(){var e=this.getStart(),t=this.getEnd();if(!e||!t)return r.Iterate.empty();var n=e.daysBetween(t,Z.CEIL,!0),i=this.include.spans().where(function(t){return t.span.start.isBefore(e)}).sorted(function(e,t){return e.span.start.time-t.span.start.time}).transform(function(e){return e.span}),o=this.forecast(e,!1,n).transform(function(e){return e[0]}),u=this.include.spans().where(function(e){return e.span.start.isAfter(t)}).sorted(function(e,t){return e.span.start.time-t.span.start.time}).transform(function(e){return e.span});return r.Iterate.join(i,o,u)},e.prototype.matchesSpan=function(e){return(null===this.start||e.isSameOrAfter(this.start))&&(null===this.end||e.isBefore(this.end))},e.prototype.matchesRange=function(e,t){return(!this.start||!t.isBefore(this.start))&&(!this.end||!e.isAfter(this.end))},e.prototype.isExcluded=function(e,t){return void 0===t&&(t=!0),this.exclude.get(e,!1,t)},e.prototype.isIncluded=function(e,t){return void 0===t&&(t=!0),this.include.get(e,!1,t)},e.prototype.isCancelled=function(e,t){return void 0===t&&(t=!0),this.cancel.get(e,!1,t)},e.prototype.getMeta=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=!0),this.meta.get(e,t,n)},e.prototype.getMetas=function(e){return this.meta.getAll(e)},e.prototype.isFullDay=function(){return 0===this.times.length},e.prototype.setFullDay=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t="08:00"),e!==this.isFullDay()&&(e?(this.times=[],"day"!==this.durationUnit&&(this.duration=1,this.durationUnit="day")):(this.times=[Le.time(t)],"hour"!==this.durationUnit&&(this.duration=1,this.durationUnit="hour"))),this},e.prototype.adjustDefinedSpan=function(e){void 0===e&&(e=!1);var t=this.getSingleEventSpan();return t&&(e||this.start&&this.end)&&(this.start=t.start.startOf("day"),this.end=t.end.endOf("day")),this},e.prototype.getFullSpan=function(e){var t=e.startOf("day"),n=t.add(this.durationUnit,this.duration);return new me(t,n)},e.prototype.getTimeSpan=function(e,t){var n=e.withTime(t),r=n.add(this.durationUnit,this.duration);return new me(n,r)},e.prototype.matchesDay=function(e){if(this.isIncluded(e,!1))return!0;if(!this.matchesSpan(e)||this.isFullyExcluded(e))return!1;for(var t=0,n=this.checks;t<n.length;t++){var r=n[t];if(!r(e[r.property]))return!1}return!0},e.prototype.hasIncludedTime=function(e){return!this.iterateIncludeTimes(e).empty()},e.prototype.isFullyExcluded=function(e){if(this.exclude.isEmpty())return!1;if(this.isExcluded(e,!1))return!0;if(this.isFullDay())return!1;for(var t=0,n=this.times;t<n.length;t++){var r=n[t];if(!this.isExcluded(e.withTime(r)))return!1}return!0},e.prototype.nextDay=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=i.DAYS_IN_YEAR),this.iterateDaycast(e,1,!0,t,n).first()},e.prototype.nextDays=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=i.DAYS_IN_YEAR),this.iterateDaycast(e,t,!0,n,r)},e.prototype.prevDay=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=i.DAYS_IN_YEAR),this.iterateDaycast(e,1,!1,t,n).first()},e.prototype.prevDays=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=i.DAYS_IN_YEAR),this.iterateDaycast(e,t,!1,n,r)},e.prototype.iterateDaycast=function(e,t,n,o,u){var a=this;return void 0===o&&(o=!1),void 0===u&&(u=i.DAYS_IN_YEAR),new r.Iterate(function(i){for(var s=0,f=0,c=0;c<u;c++){if((!o||c>0)&&(e=n?e.next():e.prev()),!a.iterateSpans(e,!1).empty())if(i.act(e,f++)===r.IterateAction.STOP||++s>=t)return}})},e.prototype.iterateSpans=function(e,t){var n=this;return void 0===t&&(t=!1),new r.Iterate(function(i){var o=e,u=t?n.durationInDays:0,a=0;if(n.isFullDay())for(;u>=0;){if(n.matchesDay(o)){var s=n.getFullSpan(o);if(s.matchesDay(e))switch(i.act(s,a++)){case r.IterateAction.STOP:return}}o=o.prev(),u--}else for(var f=function(){if(n.matchesDay(o)){for(var t=0,s=n.times;t<s.length;t++){var f=s[t],c=n.getTimeSpan(o,f);if(c.matchesDay(e)&&!n.isExcluded(c.start,!0))switch(i.act(c,a++)){case r.IterateAction.STOP:return{value:void 0}}}if(n.iterateIncludeTimes(o,e).each(function(e,t,o){if(!function(e){return n.times.some(function(t){return t.hour===e.start.hour&&t.minute===e.start.minute})}(e))switch(i.act(e,a++)){case r.IterateAction.STOP:o.stop()}}),i.action===r.IterateAction.STOP)return{value:void 0}}else if(n.iterateIncludeTimes(o,e).each(function(e,t,n){switch(i.act(e,a++)){case r.IterateAction.STOP:n.stop()}}),i.action===r.IterateAction.STOP)return{value:void 0};--u>=0&&(o=o.prev())};u>=0;){var c=f();if("object"==typeof c)return c.value}})},e.prototype.matchesTime=function(e){return!!this.iterateSpans(e,!0).where(function(t){return t.start.sameMinute(e)}).first()},e.prototype.coversDay=function(e){return!this.iterateSpans(e,!0).empty()},e.prototype.coversTime=function(e){return!!this.iterateSpans(e,!0).where(function(t){return t.contains(e)}).first()},e.prototype.setFrequency=function(e,t){return this[e]=Le.frequency(t,e),this},e.prototype.setExcluded=function(e,t){void 0===t&&(t=!0);var n=this.identifierType;return this.exclude.set(e,t,n),this.include.set(e,!t,n),this},e.prototype.setCancelled=function(e,t){return void 0===t&&(t=!0),this.cancel.set(e,t,this.identifierType),this},e.prototype.removeTime=function(e,t){void 0===t&&(t=!0);for(var n=!1,r=0;r<this.times.length&&!n;r++)(n=e.matches(this.times[r]))&&this.times.splice(r,1);return n&&(t&&this.include.removeTime(e),this.exclude.removeTime(e),this.cancel.removeTime(e),this.meta.removeTime(e)),n},e.prototype.move=function(e,t,n){return!(this.moveSingleEvent(e)||!t)&&this.moveInstance(t,e)},e.prototype.moveTime=function(e,t){for(var n=!1,r=0;r<this.times.length&&!n;r++)(n=e.matches(this.times[r]))&&this.times.splice(r,1,t);return n&&(this.include.moveTime(e,t),this.exclude.moveTime(e,t),this.cancel.moveTime(e,t),this.meta.moveTime(e,t),this.adjustDefinedSpan(!1)),n},e.prototype.moveInstance=function(e,t){var n=this.identifierType;this.exclude.set(e,!0,n),this.exclude.set(t,!1,n),this.include.set(t,!0,n),this.include.set(e,!1,n),this.cancel.get(e,!1)&&!this.cancel.get(t,!1)&&(this.cancel.set(t,!0,n),this.cancel.getIdentifier(e)===n&&this.cancel.unset(e,n));var r=this.meta.get(e,null);return r&&r!==this.meta.get(t,null)&&(this.meta.set(t,r,n),this.meta.getIdentifier(e)===n&&this.meta.unset(e,n)),!0},e.prototype.moveSingleEvent=function(e,t){if(void 0===t&&(t=!0),!this.isSingleEvent())return!1;for(var n=0,r=this.checks;n<r.length;n++){var i=r[n].property,o=e[i],u=Le.frequency([o],i);this[i]=u}1===this.times.length&&t&&(this.times=[e.asTime()]),this.updateChecks();var a=this.getSingleEventSpan();return this.start&&(this.start=a.start.startOf("day")),this.end&&(this.end=a.end.endOf("day")),this.updateEnd(),!0},e.prototype.getSingleEventSpan=function(){if(!this.isSingleEvent())return null;var e=Ne.build(this.year.input[0],0,1),t=this.iterateDaycast(e,1,!0,!0,i.DAYS_IN_YEAR).first();return t?this.isFullDay()?this.getFullSpan(t):this.getTimeSpan(t,this.times[0]):null},e.prototype.isSingleEvent=function(){return!(this.times.length>1)&&(!!this.include.isEmpty()&&(!!this.isSingleYear()&&(!!this.isSingleDayOfYear()||(!(!this.isSingleMonth()||!this.isSingleDayOfMonth())||(!!(this.isSingleMonth()&&this.isSingleWeekOfMonth()&&this.isSingleDayOfWeek())||!(!this.isSingleWeekOfYear()||!this.isSingleDayOfWeek()))))))},e.prototype.isSingleYear=function(){return this.isSingleFrequency(this.year)},e.prototype.isSingleMonth=function(){return this.isSingleFrequency(this.month)},e.prototype.isSingleDayOfMonth=function(){return this.isSingleFrequency(this.dayOfMonth)||this.isSingleFrequency(this.lastDayOfMonth)},e.prototype.isSingleDayOfWeek=function(){return this.isSingleFrequency(this.dayOfWeek)||this.isSingleFrequency(this.day)},e.prototype.isSingleDayOfYear=function(){return this.isSingleFrequency(this.dayOfYear)},e.prototype.isSingleWeekOfMonth=function(){return this.isSingleFrequency(this.weekspanOfMonth)||this.isSingleFrequency(this.fullWeekOfMonth)||this.isSingleFrequency(this.weekOfMonth)||this.isSingleFrequency(this.lastFullWeekOfMonth)||this.isSingleFrequency(this.lastWeekspanOfMonth)},e.prototype.isSingleWeekOfYear=function(){return this.isSingleFrequency(this.weekspanOfYear)||this.isSingleFrequency(this.fullWeekOfYear)||this.isSingleFrequency(this.week)||this.isSingleFrequency(this.weekOfYear)||this.isSingleFrequency(this.lastFullWeekOfYear)||this.isSingleFrequency(this.lastWeekspanOfYear)},e.prototype.isSingleFrequency=function(e){return o.isFrequencyValueOneOf(e.input)&&1===e.input.length||o.isFrequencyValueEquals(e.input)},e.prototype.forecast=function(e,t,n,o,u,a){var s=this;void 0===t&&(t=!0),void 0===o&&(o=n),void 0===u&&(u=!1),void 0===a&&(a=i.DAYS_IN_YEAR);var f=this.identifierType,c=0,h=function(e,n){for(var i=s.iterateSpans(e,t).array(),o=u?i.length:Math.min(1,i.length),a=u?0:i.length-1,h=0;h<o;h++){var l=i[h+a],d=f.get(l.start);if(n.act([l,e,d],c++)===r.IterateAction.STOP)return!1}return!0},l=new r.Iterate(function(t){for(var n=e,r=0;r<a&&h(n,t);r++)n=n.prev()}),d=new r.Iterate(function(t){for(var n=e,r=0;r<a&&(n=n.next(),h(n,t));r++);});return l.take(o+1).reverse().append(d.take(n))},e.prototype.iterateIncludeTimes=function(e,t){var n=this;void 0===t&&(t=e);return this.include.query(e.dayIdentifier).where(function(e){var t=e[0];return e[1]&&ve.Time.is(t)}).transform(function(e){var r=e[0],i=ve.Time.start(r),o=n.getTimeSpan(i,i.asTime());if(o.matchesDay(t))return o})},e.prototype.clone=function(){return new e(this.toInput())},e.prototype.toInput=function(e,t,n,r,u){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=""),void 0===r&&(r=!1),void 0===u&&(u=!1);for(var a=i.DURATION_DEFAULT_UNIT(this.isFullDay()),s=this.exclude.identifiers(function(e){return e}).array(),f=this.include.identifiers(function(e){return e}).array(),c=this.cancel.identifiers(function(e){return e}).array(),h=!this.meta.isEmpty(),l={},d=[],p=0,m=this.times;p<m.length;p++){var y=m[p];d.push(t?y:n?y.format(n):y.toString())}return this.start&&(l.start=e?this.start:this.start.time),this.end&&(u||this.maxOccurrences<1)&&(l.end=e?this.end:this.end.time),this.maxOccurrences>0&&(l.maxOccurrences=this.maxOccurrences),d.length&&(l.times=d),(r||this.duration!==i.DURATION_DEFAULT)&&(l.duration=this.duration),(r||this.durationUnit!==a)&&(l.durationUnit=this.durationUnit),s.length&&(l.exclude=s),f.length&&(l.include=f),c.length&&(l.cancel=c),h&&(l.meta=o.extend({},this.meta.map)),this.dayOfWeek.input&&(l.dayOfWeek=this.dayOfWeek.input),this.dayOfMonth.input&&(l.dayOfMonth=this.dayOfMonth.input),this.lastDayOfMonth.input&&(l.lastDayOfMonth=this.lastDayOfMonth.input),this.dayOfYear.input&&(l.dayOfYear=this.dayOfYear.input),this.year.input&&(l.year=this.year.input),this.month.input&&(l.month=this.month.input),this.day.input&&(l.day=this.day.input),this.week.input&&(l.week=this.week.input),this.weekOfYear.input&&(l.weekOfYear=this.weekOfYear.input),this.weekspanOfYear.input&&(l.weekspanOfYear=this.weekspanOfYear.input),this.fullWeekOfYear.input&&(l.fullWeekOfYear=this.fullWeekOfYear.input),this.lastWeekspanOfYear.input&&(l.lastWeekspanOfYear=this.lastWeekspanOfYear.input),this.lastFullWeekOfYear.input&&(l.lastFullWeekOfYear=this.lastFullWeekOfYear.input),this.weekOfMonth.input&&(l.weekOfMonth=this.weekOfMonth.input),this.weekspanOfMonth.input&&(l.weekspanOfMonth=this.weekspanOfMonth.input),this.fullWeekOfMonth.input&&(l.fullWeekOfMonth=this.fullWeekOfMonth.input),this.lastWeekspanOfMonth.input&&(l.lastWeekspanOfMonth=this.lastWeekspanOfMonth.input),this.lastFullWeekOfMonth.input&&(l.lastFullWeekOfMonth=this.lastFullWeekOfMonth.input),this.daysSinceEpoch&&this.daysSinceEpoch.input&&(l.daysSinceEpoch=this.daysSinceEpoch.input),this.weeksSinceEpoch&&this.weeksSinceEpoch.input&&(l.weeksSinceEpoch=this.weeksSinceEpoch.input),this.monthsSinceEpoch&&this.monthsSinceEpoch.input&&(l.monthsSinceEpoch=this.monthsSinceEpoch.input),l},e.prototype.describe=function(e,t,n,r,o,u,a){void 0===e&&(e="event"),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===u&&(u=!1),void 0===a&&(a=!1);var s=g.current,f="";if(t&&(this.start?(f+=s.scheduleStartingOn(this.start),this.end&&(f+=s.scheduleEndingOn(this.end))):this.end&&(f+=s.scheduleEndsOn(this.end))),f+=s.scheduleThing(e,!f),f+=this.describeRule(this.dayOfWeek.input,s.ruleDayOfWeek),f+=this.describeRule(this.day.input,s.ruleDay),f+=this.describeRule(this.lastDayOfMonth.input,s.ruleLastDayOfMonth),f+=this.describeRule(this.dayOfMonth.input,s.ruleDayOfMonth),f+=this.describeRule(this.dayOfYear.input,s.ruleDayOfYear),f+=this.describeRule(this.year.input,s.ruleYear),f+=this.describeRule(this.month.input,s.ruleMonth),f+=this.describeRule(this.week.input,s.ruleWeek),f+=this.describeRule(this.weekOfYear.input,s.ruleWeekOfYear),f+=this.describeRule(this.weekspanOfYear.input,s.ruleWeekspanOfYear),f+=this.describeRule(this.fullWeekOfYear.input,s.ruleFullWeekOfYear),f+=this.describeRule(this.lastWeekspanOfYear.input,s.ruleLastWeekspanOfYear),f+=this.describeRule(this.lastFullWeekOfYear.input,s.ruleLastFullWeekOfYear),f+=this.describeRule(this.weekOfMonth.input,s.ruleWeekOfMonth),f+=this.describeRule(this.fullWeekOfMonth.input,s.ruleFullWeekOfMonth),f+=this.describeRule(this.weekspanOfMonth.input,s.ruleWeekspanOfMonth),f+=this.describeRule(this.lastFullWeekOfMonth.input,s.ruleLastFullWeekOfMonth),f+=this.describeRule(this.lastWeekspanOfMonth.input,s.ruleLastWeekspanOfMonth),f+=this.describeRule(this.daysSinceEpoch&&this.daysSinceEpoch.input,s.ruleDaysSinceEpoch||h.ruleDaysSinceEpoch),f+=this.describeRule(this.weeksSinceEpoch&&this.weeksSinceEpoch.input,s.ruleWeeksSinceEpoch||h.ruleWeeksSinceEpoch),f+=this.describeRule(this.monthsSinceEpoch&&this.monthsSinceEpoch.input,s.ruleMonthsSinceEpoch||h.ruleMonthsSinceEpoch),n&&this.times.length&&(f+=s.scheduleAtTimes,f+=this.describeArray(this.times,function(e){return e.format(s.scheduleTimeFormat||"hh:mm a")})),r&&this.duration!==i.DURATION_DEFAULT&&(f+=s.scheduleDuration(this.duration,this.durationUnit)),o){var c=this.exclude.spans().where(function(e){return!!e.value}).array();c.length&&(f+=s.scheduleExcludes,f+=this.describeArray(c,function(e){return e.span.summary(Ee.DAY)}))}if(u){var l=this.include.spans().where(function(e){return!!e.value}).array();l.length&&(f+=s.scheduleIncludes,f+=this.describeArray(l,function(e){return e.span.summary(Ee.DAY)}))}if(a){var d=this.cancel.spans().where(function(e){return!!e.value}).array();d.length&&(f+=s.scheduleCancels,f+=this.describeArray(d,function(e){return e.span.summary(Ee.DAY)}))}return f},e.prototype.describeRule=function(e,t){var n="";return o.isFrequencyValueEvery(e)?(n+=" "+t.every(e.every),e.offset&&(n+=" "+t.offset(e.offset))):o.isFrequencyValueOneOf(e)?e.length&&(n+=" "+t.oneOf(e)):o.isFrequencyValueEquals(e)&&(n+=" "+t.oneOf([e])),n},e.prototype.describeArray=function(e,t){return g.current.list(e.map(t))},e.forDay=function(t,n){void 0===n&&(n=1);var r=Ne.parse(t);return r?new e({year:[r.year],month:[r.month],dayOfMonth:[r.dayOfMonth],duration:n,durationUnit:"day"}):null},e.forTime=function(t,n,r,i){void 0===r&&(r=1),void 0===i&&(i="hour");var o=Ne.parse(t);return o?new e({year:[o.year],month:[o.month],dayOfMonth:[o.dayOfMonth],times:[n],duration:r,durationUnit:i}):null},e.forSpan=function(e){var t=e.start,n=e.minutes(),r=n%i.MINUTES_IN_DAY==0,o=n%i.MINUTES_IN_HOUR==0,u=r?n/i.MINUTES_IN_DAY:o?n/i.MINUTES_IN_HOUR:n,a=r?"day":o?"hour":"minute";return this.forTime(t,t.asTime(),u,a)},e}(),be=new u({A:function(e){return g.current[e.hour<12?"am":"pm"].toUpperCase()},a:function(e){return g.current[e.hour<12?"am":"pm"]},H:function(e){return e.hour+""},h:function(e){return(e.hour%12||12)+""},k:function(e){return e.hour+1+""},m:function(e){return e.minute+""},s:function(e){return e.second+""},S:function(e){return o.padNumber(e.millisecond,3,1)},HH:function(e){return o.padNumber(e.hour,2)},hh:function(e){return o.padNumber(e.hour%12||12,2)},kk:function(e){return o.padNumber(e.hour+1,2)},mm:function(e){return o.padNumber(e.minute,2)},ss:function(e){return o.padNumber(e.second,2)},SS:function(e){return o.padNumber(e.millisecond,3,2)},SSS:function(e){return o.padNumber(e.millisecond,3)}},{"[":{start:"[",startEscape:"[",end:"]",endEscape:"]"},"'":{start:"'",startEscape:"''",end:"'",endEscape:"''"}}),_e=function(){function e(e,t,n,r){void 0===t&&(t=i.MINUTE_MIN),void 0===n&&(n=i.SECOND_MIN),void 0===r&&(r=i.MILLIS_MIN),this.hour=e,this.minute=t,this.second=n,this.millisecond=r}return e.prototype.format=function(e){return be.format(e,this)},e.prototype.matches=function(e){return this.hour===e.hour&&this.minute===e.minute&&this.second===e.second&&this.millisecond===e.millisecond},e.prototype.matchesHour=function(e){return this.hour===e.hour},e.prototype.matchesMinute=function(e){return this.hour===e.hour&&this.minute===e.minute},e.prototype.matchesSecond=function(e){return this.hour===e.hour&&this.minute===e.minute&&this.second===e.second},e.prototype.set=function(t){var n=e.parse(t),r=!!n;return r&&(this.hour=n.hour,this.minute=n.minute,this.second=n.second,this.millisecond=n.millisecond),r},e.prototype.toMilliseconds=function(){return this.hour*i.MILLIS_IN_HOUR+this.minute*i.MILLIS_IN_MINUTE+this.second*i.MILLIS_IN_SECOND+this.millisecond},e.prototype.toString=function(){return this.millisecond?this.format("HH:mm:ss.SSS"):this.second?this.format("HH:mm:ss"):this.minute?this.format("HH:mm"):this.format("HH")},e.prototype.toIdentifier=function(){return this.hour+100*this.minute+1e4*this.second+1e7*this.millisecond},e.prototype.toObject=function(){var e={hour:this.hour};return this.minute&&(e.minute=this.minute),this.second&&(e.second=this.second),this.millisecond&&(e.millisecond=this.millisecond),e},e.parse=function(e){return Le.time(e)},e.fromString=function(e){var t=this.REGEX.exec(e);if(!t)return null;var n=parseInt(t[1])||0,r=parseInt(t[2])||0,i=parseInt(t[3])||0,o=parseInt(t[4])||0;return this.build(n,r,i,o)},e.fromIdentifier=function(e){var t=e%100,n=Math.floor(e/100)%100,r=Math.floor(e/1e4)%100,i=Math.floor(e/1e7)%1e3;return this.build(t,n,r,i)},e.build=function(t,n,r,o){return void 0===n&&(n=i.MINUTE_MIN),void 0===r&&(r=i.SECOND_MIN),void 0===o&&(o=i.MILLIS_MIN),new e(t,n,r,o)},e.REGEX=/^(\d\d?):?(\d\d)?:?(\d\d)?\.?(\d\d\d)?$/,e}(),Le=function(){function e(){}return e.frequency=function(e,t){var n=function(e){return!0};if(n.given=!1,o.isFrequencyValueEvery(e)){var r=e.every,i=(e.offset||0)%r;(n=function(e){return e%r===i}).given=!0}if(o.isFrequencyValueOneOf(e)){for(var u={},a=0,s=e;a<s.length;a++){var f=s[a];u[f]=!0}(n=function(e){return!!u[e]}).given=!0}return o.isFrequencyValueEquals(e)&&((n=function(t){return t===e}).given=!0),n.input=o.coalesce(e,null),n.property=t,n},e.day=function(e){return o.isNumber(e)?Ne.unix(e):o.isString(e)?Ne.fromString(e):e instanceof Ne?e:o.isArray(e)?Ne.fromArray(e):o.isObject(e)?Ne.fromObject(e):!0===e?Ne.today():null},e.time=function(e){return e instanceof _e?e:o.isNumber(e)?_e.fromIdentifier(e):o.isString(e)?_e.fromString(e):o.isObject(e)&&o.isNumber(e.hour)?new _e(e.hour,e.minute,e.second,e.millisecond):null},e.times=function(e){var t=[];if(o.isArray(e)){for(var n=0,r=e;n<r.length;n++){var i=r[n],u=this.time(i);u&&t.push(u)}t.sort(function(e,t){return e.toMilliseconds()-t.toMilliseconds()})}return t},e.modifier=function(e,t,n,r,i){void 0===n&&(n=function(e){return e}),void 0===r&&(r=new Ye),void 0===i&&(i=!1);var u={};if(o.isArray(e))for(var a=0,s=e;a<s.length;a++){if((c=s[a])instanceof Ne){var f=0!==c.hour||0!==c.minute;u[i&&f?c.timeIdentifier:c.dayIdentifier]=t}else o.isNumber(c)?u[c]=t:o.isString(c)&&(u[c]=t)}if(o.isObject(e))for(var c in e)u[c]=n(e[c]);return r.map=u,r},e.unit=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)return i.DURATION_DEFAULT_UNIT(t);switch(e.toLowerCase()){case"ms":case"milli":case"millis":case"millisecond":case"milliseconds":return"millis";case"s":case"sec":case"secs":case"second":case"seconds":return"second";case"m":case"min":case"mins":case"minute":case"minutes":return"minute";case"h":case"hr":case"hour":case"hours":return"hour";case"d":case"day":case"days":return"day";case"w":case"wk":case"week":case"weeks":return"week";case"mon":case"month":case"months":return"month";case"q":case"quarter":case"quarters":return"quarter";case"y":case"yr":case"yrs":case"year":case"years":return"year"}return i.DURATION_DEFAULT_UNIT(t)},e.schedule=function(e,t,n){if(void 0===t&&(t=function(e){return e}),void 0===n&&(n=new We),e instanceof We)return e;e=o.extend({},e);var r=this.day(e.on),u=this.times(e.times),a=0===u.length;return r&&(e.start=r.startOf("day"),e.end=r.endOf("day"),e.year=[r.year],e.month=[r.month],e.dayOfMonth=[r.dayOfMonth]),n.times=u,n.duration=o.coalesce(e.duration,i.DURATION_DEFAULT),n.durationUnit=this.unit(e.durationUnit,a),n.start=this.day(e.start),n.end=this.day(e.end),n.maxOccurrences=o.coalesce(e.maxOccurrences,0),n.exclude=this.modifier(e.exclude,!0,void 0,n.exclude,!a),n.include=this.modifier(e.include,!0,void 0,n.include,!a),n.cancel=this.modifier(e.cancel,!0,void 0,n.cancel,!a),n.meta=this.modifier(e.meta,null,t,n.meta,!a),n.year=this.frequency(e.year,"year"),n.month=this.frequency(e.month,"month"),n.day=this.frequency(e.day,"day"),n.quarter=this.frequency(e.quarter,"quarter"),n.week=this.frequency(e.week,"week"),n.weekOfYear=this.frequency(e.weekOfYear,"weekOfYear"),n.weekspanOfYear=this.frequency(e.weekspanOfYear,"weekspanOfYear"),n.fullWeekOfYear=this.frequency(e.fullWeekOfYear,"fullWeekOfYear"),n.lastWeekspanOfYear=this.frequency(e.lastWeekspanOfYear,"lastWeekspanOfYear"),n.lastFullWeekOfYear=this.frequency(e.lastFullWeekOfYear,"lastFullWeekOfYear"),n.weekOfMonth=this.frequency(e.weekOfMonth,"weekOfMonth"),n.weekspanOfMonth=this.frequency(e.weekspanOfMonth,"weekspanOfMonth"),n.fullWeekOfMonth=this.frequency(e.fullWeekOfMonth,"fullWeekOfMonth"),n.lastWeekspanOfMonth=this.frequency(e.lastWeekspanOfMonth,"lastWeekspanOfMonth"),n.lastFullWeekOfMonth=this.frequency(e.lastFullWeekOfMonth,"lastFullWeekOfMonth"),n.dayOfWeek=this.frequency(e.dayOfWeek,"dayOfWeek"),n.dayOfMonth=this.frequency(e.dayOfMonth,"dayOfMonth"),n.lastDayOfMonth=this.frequency(e.lastDayOfMonth,"lastDayOfMonth"),n.dayOfYear=this.frequency(e.dayOfYear,"dayOfYear"),n.daysSinceEpoch=this.frequency(e.daysSinceEpoch,"daysSinceEpoch"),n.weeksSinceEpoch=this.frequency(e.weeksSinceEpoch,"weeksSinceEpoch"),n.monthsSinceEpoch=this.frequency(e.monthsSinceEpoch,"monthsSinceEpoch"),n.updateDurationInDays(),n.updateChecks(),n.updateEnd(),n},e.givenFrequency=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];i.given&&t.push(i)}return t},e.event=function(e,t,n){if(void 0===t&&(t=function(e){return e}),void 0===n&&(n=function(e){return e}),e instanceof De)return e;if(!e.schedule)return null;var r=this.schedule(e.schedule,n);return new De(r,t(e.data),e.id,e.visible)},e.cron=function(e,t){return void 0===t&&(t=new We),t},e}(),Ne=function(){function e(e){this._quarter=null,this._dayOfYear=null,this._dayOfWeek=null,this._lastDayOfMonth=null,this._week=null,this._weekOfYear=null,this._weekspanOfYear=null,this._fullWeekOfYear=null,this._lastWeekspanOfYear=null,this._lastFullWeekOfYear=null,this._weekOfMonth=null,this._weekspanOfMonth=null,this._fullWeekOfMonth=null,this._lastWeekspanOfMonth=null,this._lastFullWeekOfMonth=null,this._daysSinceEpoch=null,this._weeksSinceEpoch=null,this._monthsSinceEpoch=null,this._timeIdentifier=null,this._dayIdentifier=null,this._weekIdentifier=null,this._monthIdentifier=null,this._quarterIdentifier=null,this.date=e,this.time=e.valueOf(),this.millis=e.getMilliseconds(),this.seconds=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.month=e.getMonth(),this.year=e.getFullYear(),this.day=e.getDay(),this.dayOfMonth=e.getDate(),this._locale=g.ref}return Object.defineProperty(e.prototype,"quarter",{get:function(){return this.getValue("_quarter",ne)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfYear",{get:function(){return this.getValue("_dayOfYear",K)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfWeek",{get:function(){return this.getLocaleValue("_dayOfWeek",z)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastDayOfMonth",{get:function(){return this.getValue("_lastDayOfMonth",b)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"week",{get:function(){return this.getLocaleValue("_week",N)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekOfYear",{get:function(){return this.getLocaleValue("_weekOfYear",L)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekspanOfYear",{get:function(){return this.getValue("_weekspanOfYear",A)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWeekOfYear",{get:function(){return this.getLocaleValue("_fullWeekOfYear",T)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastWeekspanOfYear",{get:function(){return this.getValue("_lastWeekspanOfYear",_)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFullWeekOfYear",{get:function(){return this.getLocaleValue("_lastFullWeekOfYear",x)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekOfMonth",{get:function(){return this.getLocaleValue("_weekOfMonth",C)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekspanOfMonth",{get:function(){return this.getValue("_weekspanOfMonth",R)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWeekOfMonth",{get:function(){return this.getLocaleValue("_fullWeekOfMonth",j)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastWeekspanOfMonth",{get:function(){return this.getValue("_lastWeekspanOfMonth",F)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFullWeekOfMonth",{get:function(){return this.getLocaleValue("_lastFullWeekOfMonth",U)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"daysSinceEpoch",{get:function(){return this.getValue("_daysSinceEpoch",J)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weeksSinceEpoch",{get:function(){return this.getLocaleValue("_weeksSinceEpoch",V)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthsSinceEpoch",{get:function(){return this.getValue("_monthsSinceEpoch",B)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeIdentifier",{get:function(){var e=this;return this.getValue("_timeIdentifier",function(){return ve.Time.get(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayIdentifier",{get:function(){var e=this;return this.getValue("_dayIdentifier",function(){return ve.Day.get(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekIdentifier",{get:function(){var e=this;return this.getValue("_weekIdentifier",function(){return ve.Week.get(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthIdentifier",{get:function(){var e=this;return this.getValue("_monthIdentifier",function(){return ve.Month.get(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"quarterIdentifier",{get:function(){var e=this;return this.getValue("_quarterIdentifier",function(){return ve.Quarter.get(e)})},enumerable:!0,configurable:!0}),e.prototype.getLocaleValue=function(e,t){return this.checkForUpdate(),null===this[e]&&(this[e]=t(this.date,this._locale.value)),this[e]},e.prototype.getValue=function(e,t){return null===this[e]&&(this[e]=t(this.date)),this[e]},e.prototype.checkForUpdate=function(){this._locale.dirty&&(this._locale=g.ref,this.resetLocaleCache())},e.prototype.setLocale=function(e){var t=g.get(e);return t!==this._locale.value&&(this._locale=this._locale.getUpdate(t),this.resetLocaleCache()),this},e.prototype.getLocale=function(){return this.checkForUpdate(),this._locale.value},e.prototype.clearLocale=function(){g.current!==this._locale.value&&(this._locale=g.ref,this.resetLocaleCache())},e.prototype.resetLocaleCache=function(){this._dayOfWeek=null,this._weekOfYear=null,this._fullWeekOfYear=null,this._lastFullWeekOfYear=null,this._weekOfMonth=null,this._fullWeekOfMonth=null,this._lastFullWeekOfMonth=null,this._weeksSinceEpoch=null},e.prototype.sameDay=function(e){return this.dayIdentifier===e.dayIdentifier},e.prototype.sameMonth=function(e){return this.monthIdentifier===e.monthIdentifier},e.prototype.sameWeek=function(e){return this.weekIdentifier===e.weekIdentifier},e.prototype.sameYear=function(e){return this.year===e.year},e.prototype.sameQuarter=function(e){return this.quarterIdentifier===e.quarterIdentifier},e.prototype.sameHour=function(e){return this.dayIdentifier===e.dayIdentifier&&this.hour===e.hour},e.prototype.sameMinute=function(e){return this.timeIdentifier===e.timeIdentifier},e.prototype.sameTime=function(e){return this.hour===e.hour&&this.minute===e.minute&&this.seconds===e.second&&this.millis===e.millisecond},e.prototype.compare=function(e,t){return W(this.date,e.date,t)},e.prototype.isBefore=function(e,t){return W(this.date,e.date,t)<0},e.prototype.isSameOrBefore=function(e,t){return W(this.date,e.date,t)<=0},e.prototype.isAfter=function(e,t){return W(this.date,e.date,t)>0},e.prototype.isSameOrAfter=function(e,t){return W(this.date,e.date,t)>=0},e.prototype.max=function(e){return W(this.date,e.date)>0?this:e},e.prototype.min=function(e){return W(this.date,e.date)<0?this:e},e.prototype.between=function(e,t,n,r){return void 0===n&&(n=Z.DOWN),void 0===r&&(r=!0),de(D[t](this.date,e.date),n,r)},e.prototype.millisBetween=function(e,t,n){return void 0===t&&(t=Z.DOWN),void 0===n&&(n=!0),this.between(e,"millis",t,n)},e.prototype.secondsBetween=function(e,t,n){return void 0===t&&(t=Z.DOWN),void 0===n&&(n=!0),this.between(e,"second",t,n)},e.prototype.minutesBetween=function(e,t,n){return void 0===t&&(t=Z.DOWN),void 0===n&&(n=!0),this.between(e,"minute",t,n)},e.prototype.hoursBetween=function(e,t,n){return void 0===t&&(t=Z.DOWN),void 0===n&&(n=!0),this.between(e,"hour",t,n)},e.prototype.daysBetween=function(e,t,n){return void 0===t&&(t=Z.DOWN),void 0===n&&(n=!0),this.between(e,"day",t,n)},e.prototype.weeksBetween=function(e,t,n){return void 0===t&&(t=Z.DOWN),void 0===n&&(n=!0),this.between(e,"week",t,n)},e.prototype.monthsBetween=function(e,t,n){return void 0===t&&(t=Z.DOWN),void 0===n&&(n=!0),this.between(e,"month",t,n)},e.prototype.yearsBetween=function(e,t,n){return void 0===t&&(t=Z.DOWN),void 0===n&&(n=!0),this.between(e,"year",t,n)},e.prototype.isBetween=function(e,t,n,r){return void 0===n&&(n=!0),!this.isBefore(e)&&!(n?this.isSameOrAfter(t):this.isAfter(t))},e.prototype.mutate=function(t){var n=this.toDate(),r=t(n);return r instanceof Date?new e(r):new e(n)},e.prototype.add=function(e,t){return void 0===t&&(t=1),this.mutate(function(n){return E[e](n,t)})},e.prototype.relative=function(e){return this.add("millis",e)},e.prototype.prev=function(e){return void 0===e&&(e=1),this.add("day",-e)},e.prototype.next=function(e){return void 0===e&&(e=1),this.add("day",e)},e.prototype.withDayOfMonth=function(e){return this.mutate(function(t){return t.setDate(e)})},e.prototype.withDay=function(e){return this.add("day",e-this.date.getDay())},e.prototype.withDayOfWeek=function(e){return this.add("day",e-z(this.date,this.getLocale()))},e.prototype.withDayOfYear=function(e){return this.add("day",e-K(this.date))},e.prototype.withMonth=function(e){return this.mutate(function(t){return t.setMonth(e)})},e.prototype.withWeek=function(e,t){return this.add("day",(e-t)*i.DAYS_IN_WEEK)},e.prototype.withWeekOfYear=function(e){return this.withWeek(e,this.weekOfYear)},e.prototype.withFullWeekOfYear=function(e){return this.withWeek(e,this.fullWeekOfYear)},e.prototype.withWeekspanOfYear=function(e){return this.withWeek(e,this.weekspanOfYear)},e.prototype.withWeekOfMonth=function(e){return this.withWeek(e,this.weekOfMonth)},e.prototype.withWeekspanOfMonth=function(e){return this.withWeek(e,this.weekspanOfMonth)},e.prototype.withFullWeekOfMonth=function(e){return this.withWeek(e,this.fullWeekOfMonth)},e.prototype.withYear=function(e){return this.mutate(function(t){return t.setFullYear(e)})},e.prototype.withHour=function(e){return this.mutate(function(t){return t.setHours(e)})},e.prototype.withTimes=function(e,t,n,r){return void 0===e&&(e=i.HOUR_MIN),void 0===t&&(t=i.MINUTE_MIN),void 0===n&&(n=i.SECOND_MIN),void 0===r&&(r=i.MILLIS_MIN),this.mutate(function(i){return i.setHours(e,t,n,r)})},e.prototype.withTime=function(e){return this.withTimes(e.hour,e.minute,e.second,e.millisecond)},e.prototype.asTime=function(){return new _e(this.hour,this.minute,this.seconds,this.millis)},e.prototype.startOf=function(e){var t=this;return this.mutate(function(n){return w[e](n,t.getLocale())})},e.prototype.isStartOf=function(e){return this.startOf(e).date.getTime()===this.time},e.prototype.endOf=function(e,t){var n=this;return void 0===t&&(t=!0),t?this.mutate(function(t){return S[e](t,n.getLocale())}):this.mutate(function(t){w[e](t,n.getLocale()),E[e](t,1)})},e.prototype.isEndOf=function(e,t){return void 0===t&&(t=!0),this.endOf(e,t).date.getTime()===this.time},e.prototype.daysInMonth=function(){return ee(this.date)},e.prototype.daysInYear=function(){return Q(this.date)},e.prototype.weeksInYear=function(){return e=this.date,void 0===t&&(t=g.current),L(I(e,ue),t)+1;var e,t},e.prototype.format=function(e,t){return void 0===t&&(t=!1),a.format(e,[this,this.getLocale()],t)},e.prototype.utc=function(e){return this},e.prototype.toDate=function(){return new Date(this.date.getTime())},e.prototype.toArray=function(){return[this.year,this.month,this.dayOfMonth,this.hour,this.minute,this.seconds,this.millis]},e.prototype.toJSON=function(){return this.date.toJSON()},e.prototype.toISOString=function(e){return void 0===e&&(e=!1),this.date.toISOString()},e.prototype.toObject=function(){throw new Error("toObject is no longer supported")},e.prototype.toString=function(){return this.date.toString()},e.prototype.isDST=function(){return e=this.date,(t=G(e))>G(I(e,function(e){return e.setMonth(0)}))||t>G(I(e,function(e){return e.setMonth(5)}));var e,t},e.prototype.isLeapYear=function(){return X(this.date)},e.prototype.offset=function(){return G(this.date)},e.now=function(){return new e(new Date)},e.today=function(){return this.now().startOf("day")},e.tomorrow=function(){return this.today().next()},e.fromDate=function(t){return isFinite(t.getTime())?new e(t):null},e.unix=function(e){return this.fromDate(new Date(e))},e.unixSeconds=function(e){return this.fromDate(new Date(e*i.MILLIS_IN_SECOND))},e.parse=function(e){return Le.day(e)},e.fromString=function(e){var t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);return t?this.build(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10)):this.fromDate(new Date(e))},e.fromFormat=function(e,t){throw new Error("fromFormat is no longer supported")},e.fromObject=function(e){throw new Error("fromObject is no longer supported")},e.fromArray=function(e){return this.fromDate(new Date(e[0],e[1],o.coalesce(e[2],i.DAY_MIN),o.coalesce(e[3],i.HOUR_MIN),o.coalesce(e[4],i.MINUTE_MIN),o.coalesce(e[5],i.SECOND_MIN),o.coalesce(e[6],i.MILLIS_MIN)))},e.fromDayIdentifier=function(e){var t=e%100,n=Math.floor(e/100)%100-1,r=Math.floor(e/1e4);return this.build(r,n,t)},e.build=function(t,n,r,o,u,a,s){return void 0===r&&(r=i.DAY_MIN),void 0===o&&(o=i.HOUR_MIN),void 0===u&&(u=i.MINUTE_MIN),void 0===a&&(a=i.SECOND_MIN),void 0===s&&(s=i.MILLIS_MIN),new e(new Date(t,n,r,o,u,a,s))},e}(),Ae=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Te=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentDay=!1,t.currentWeek=!1,t.currentMonth=!1,t.currentYear=!1,t.currentOffset=0,t.selectedDay=!1,t.selectedWeek=!1,t.selectedMonth=!1,t.selectedYear=!1,t.inCalendar=!1,t.events=[],t}return Ae(t,e),t.prototype.iterateEvents=function(){return r.Iterate.array(this.events)},t.prototype.updateCurrent=function(e){return this.currentDay=this.sameDay(e),this.currentWeek=this.sameWeek(e),this.currentMonth=this.sameMonth(e),this.currentYear=this.sameYear(e),this.currentOffset=this.daysBetween(e,Z.DOWN,!1),this},t.prototype.updateSelected=function(e){return this.selectedDay=e.matchesDay(this),this.selectedWeek=e.matchesWeek(this),this.selectedMonth=e.matchesMonth(this),this.selectedYear=e.matchesYear(this),this},t.prototype.clearSelected=function(){return this.selectedDay=this.selectedWeek=this.selectedMonth=this.selectedYear=!1,this},t}(Ne),xe=function(){function e(e,t,n,r){this.row=0,this.col=0,this.id=e,this.event=t,this.time=n,this.day=r,this.fullDay=t.schedule.isFullDay(),this.meta=t.schedule.getMeta(n.start),this.cancelled=t.schedule.isCancelled(n.start),this.starting=n.isPoint||n.start.sameDay(r),this.ending=n.isPoint||n.end.relative(-1).sameDay(r)}return Object.defineProperty(e.prototype,"scheduleId",{get:function(){return Math.floor(this.id/i.MAX_EVENTS_PER_DAY)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this.time.start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.time.end},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"schedule",{get:function(){return this.event.schedule},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.event.data},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"identifier",{get:function(){return this.identifierType.get(this.start)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"identifierType",{get:function(){return this.schedule.identifierType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startDelta",{get:function(){return this.time.startDelta(this.day)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endDelta",{get:function(){return this.time.endDelta(this.day)},enumerable:!0,configurable:!0}),e.prototype.getTimeBounds=function(e,t,n,r,i,o){return void 0===e&&(e=1),void 0===t&&(t=1),void 0===n&&(n=.1),void 0===r&&(r=!0),void 0===i&&(i=0),void 0===o&&(o=0),this.time.getBounds(this.day,e,t,this.col*n,r,i,o)},e.prototype.cancel=function(e){return void 0===e&&(e=!0),this.schedule.setCancelled(this.start,e),this.cancelled=e,this},e.prototype.exclude=function(e){return void 0===e&&(e=!0),this.schedule.setExcluded(this.start,e),this},e.prototype.move=function(e){return this.schedule.move(e,this.start)},e}(),Re=function(){function e(e,t,n,r,i,u,a){this.fill=!1,this.minimumSize=0,this.repeatCovers=!0,this.listTimes=!1,this.eventsOutside=!1,this.updateRows=!1,this.updateColumns=!1,this.eventSorter=null,this.parseMeta=function(e){return e},this.parseData=function(e){return e},this.selection=null,this.days=[],this.events=[],this.visible=[],this.span=new me(e,t),this.filled=new me(e,t),this.type=n,this.size=r,this.moveStart=i,this.moveEnd=u,o.isDefined(a)?this.set(a):this.refresh()}return e.prototype.set=function(t){var n=o.isDefined(t.type)&&t.type!==this.type,r=o.isDefined(t.size)&&t.size!==this.size;if(n||r){var i=o.coalesce(t.otherwiseFocus,e.DEFAULT_FOCUS),u=o.coalesce(t.preferToday,!0),a=o.coalesce(t.size,this.size),s=o.coalesce(t.type,this.type),f=Ne.today();(!(p=o.coalesce(t.around,this.days[Math.floor((this.days.length-1)*i)]))||u&&this.span.matchesDay(f))&&(p=f);var c=(l=e.TYPES[s]).getStart(Ne.parse(p),a,i),h=l.getEnd(c,a,i);this.span.start=c,this.span.end=h,this.type=s,this.size=a,this.moveStart=l.moveStart,this.moveEnd=l.moveEnd}else if(t.around){var l,d=o.coalesce(t.otherwiseFocus,e.DEFAULT_FOCUS),p=Ne.parse(t.around);s=this.type,a=this.size,c=(l=e.TYPES[s]).getStart(p,a,d),h=l.getEnd(c,a,d);this.span.start=c,this.span.end=h}return this.fill=o.coalesce(t.fill,this.fill),this.minimumSize=o.coalesce(t.minimumSize,this.minimumSize),this.repeatCovers=o.coalesce(t.repeatCovers,this.repeatCovers),this.listTimes=o.coalesce(t.listTimes,this.listTimes),this.eventsOutside=o.coalesce(t.eventsOutside,this.eventsOutside),this.updateRows=o.coalesce(t.updateRows,this.updateRows),this.updateColumns=o.coalesce(t.updateColumns,this.updateColumns),this.eventSorter=o.coalesce(t.eventSorter,this.eventSorter),this.parseMeta=o.coalesce(t.parseMeta,this.parseMeta),this.parseData=o.coalesce(t.parseData,this.parseData),o.isArray(t.events)&&this.setEvents(t.events,!0),t.delayRefresh||this.refresh(),this},e.prototype.withMinimumSize=function(e){return this.minimumSize=e,this.refresh(),this},e.prototype.withRepeatCovers=function(e){return this.repeatCovers=e,this.refreshEvents(),this},e.prototype.withListTimes=function(e){return this.listTimes=e,this.refreshEvents(),this},e.prototype.withEventsOutside=function(e){return this.eventsOutside=e,this.refreshEvents(),this},e.prototype.withUpdateRows=function(e,t){return void 0===t&&(t=!0),this.updateRows=e,t&&e&&this.refreshRows(),this},e.prototype.withUpdateColumns=function(e,t){return void 0===t&&(t=!0),this.updateColumns=e,t&&e&&this.refreshColumns(),this},Object.defineProperty(e.prototype,"start",{get:function(){return this.span.start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.span.end},enumerable:!0,configurable:!0}),e.prototype.summary=function(e,t,n,r,i){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===i&&(i=" - "),this.span.summary(this.type,e,t,n,r,i)},e.prototype.split=function(t){var n=this;return void 0===t&&(t=1),new r.Iterate(function(i){for(var o=n.start,u=n.moveEnd(n.end,t-n.size),a=0;a<n.size;a++){var s=new e(o,u,n.type,t,n.moveStart,n.moveEnd,n);if(i.act(s,a)===r.IterateAction.STOP)return;o=n.moveStart(o,t),u=n.moveEnd(u,t)}})},e.prototype.refresh=function(e){return void 0===e&&(e=Ne.today()),this.length=this.span.days(Z.UP,!0),this.resetDays(),this.refreshCurrent(e),this.refreshSelection(),this.refreshVisible(),this.refreshEvents(),this},e.prototype.resetFilled=function(){return this.filled.start=this.fill?this.start.startOf("week"):this.start,this.filled.end=this.fill?this.end.endOf("week"):this.end,this},e.prototype.resetDays=function(){this.resetFilled();for(var e=this.days,t=this.filled,n=t.days(Z.UP),r=Math.max(this.minimumSize,n),i=t.start,o=0;o<r;o++){var u=e[o];u&&u.sameDay(i)||(u=new Te(i.date),o<e.length?e.splice(o,1,u):e.push(u)),u.inCalendar=this.span.contains(u),i=i.next()}return e.length>r&&e.splice(r,e.length-r),this},e.prototype.refreshVisible=function(){var e=this.filled.start,t=this.filled.end;return this.visible=this.events.filter(function(n){return n.visible&&n.schedule.matchesRange(e,t)}),this},e.prototype.refreshCurrent=function(e){return void 0===e&&(e=Ne.today()),this.iterateDays().each(function(t){return t.updateCurrent(e)}),this},e.prototype.refreshSelection=function(){var e=this;return this.iterateDays().each(function(t){e.selection?t.updateSelected(e.selection):t.clearSelected()}),this},e.prototype.refreshEvents=function(){var e=this;return this.iterateDays().each(function(t){(t.inCalendar||e.eventsOutside)&&(t.events=e.eventsForDay(t,e.listTimes,e.repeatCovers))}),this.updateRows&&this.refreshRows(),this.updateColumns&&this.refreshColumns(),this},e.prototype.refreshRows=function(){var e=this.listTimes,t={};return this.iterateDays().each(function(n){0===n.dayOfWeek&&(t={});for(var r={},i=0,o=n.events;i<o.length;i++){var u=o[i];e&&!u.fullDay||u.id in t&&(r[u.row=t[u.id]]=!0)}for(var a=0,s=0,f=n.events;s<f.length;s++){var c=f[s];if(!(e&&!c.fullDay||c.id in t)){for(;r[a];)a++;t[c.id]=c.row=a,a++}}}),this},e.prototype.refreshColumns=function(){return this.iterateDays().each(function(e){for(var t=[],n=0,r=e.events;n<r.length;n++){var i=r[n];i.fullDay||(t.push({event:i,time:i.time.start.time,start:!0,parent:null}),t.push({event:i,time:i.time.end.time-1,start:!1,parent:null}))}t.sort(function(e,t){return e.time-t.time});for(var o=null,u=0,a=t;u<a.length;u++){(c=a[u]).start?(c.parent=o,o=c):o&&(o=o.parent)}for(var s=0,f=t;s<f.length;s++){var c;(c=f[s]).start&&(c.event.col=c.parent?c.parent.event.col+1:0)}}),this},e.prototype.getDay=function(e){var t=Ne.parse(e);if(t){var n=t.startOf("day").daysBetween(this.days[0],Z.DOWN,!1);return this.days[n]}return null},e.prototype.iterateDays=function(){var e=this;return new r.Iterate(function(t){for(var n=e.days,i=0;i<n.length;i++)switch(t.act(n[i],i)){case r.IterateAction.STOP:return}})},e.prototype.eventsForDay=function(e,t,n,r){void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=this.eventSorter);for(var o=[],u=this.visible,a=function(r){var a=u[r],s=a.schedule,f=r*i.MAX_EVENTS_PER_DAY,c=0;s.iterateSpans(e,n).each(function(n,r,i){o.push(new xe(f+c++,a,n,e)),t||i.stop()})},s=0;s<u.length;s++)a(s);return r&&o.sort(r),o},e.prototype.findEvent=function(e){for(var t=0,n=this.events;t<n.length;t++){var r=n[t];if(r===e||r.schedule===e||r.data===e||r.id===e)return r}return null},e.prototype.removeEvents=function(e,t){if(void 0===e&&(e=null),void 0===t&&(t=!1),e)for(var n=0,r=e;n<r.length;n++){var i=r[n];this.removeEvent(i,!0)}else this.events=[];return this.refreshVisible(),t||this.refreshEvents(),this},e.prototype.removeEvent=function(e,t){void 0===t&&(t=!1);var n=this.findEvent(e);return n&&(this.events.splice(this.events.indexOf(n),1),this.refreshVisible(),t||this.refreshEvents()),this},e.prototype.addEvent=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=Le.event(e,this.parseData,this.parseMeta);if(!t&&this.findEvent(r))return this;return this.events.push(r),this.refreshVisible(),n||this.refreshEvents(),this},e.prototype.addEvents=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);for(var r=0,i=e;r<i.length;r++){var o=i[r];this.addEvent(o,t,!0)}return n||this.refreshEvents(),this},e.prototype.setEvents=function(e,t){void 0===t&&(t=!1);for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r],u=Le.event(o,this.parseData,this.parseMeta);u&&n.push(u)}return this.events=n,this.refreshVisible(),t||this.refreshEvents(),this},e.prototype.select=function(e,t){return void 0===t&&(t=e),this.selection=new me(e,t),this.refreshSelection(),this},e.prototype.unselect=function(){return this.selection=null,this.refreshSelection(),this},e.prototype.move=function(e,t){return void 0===e&&(e=this.size),void 0===t&&(t=!1),this.span.start=this.moveStart(this.start,e),this.span.end=this.moveEnd(this.end,e),t||this.refresh(),this},e.prototype.next=function(e,t){return void 0===e&&(e=this.size),void 0===t&&(t=!1),this.move(e,t)},e.prototype.prev=function(e,t){return void 0===e&&(e=this.size),void 0===t&&(t=!1),this.move(-e,t)},e.prototype.toInput=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=function(e){return e}),void 0===n&&(n=function(e){return e});var r={};r.type=this.type,r.size=this.size,r.fill=this.fill,r.minimumSize=this.minimumSize,r.repeatCovers=this.repeatCovers,r.listTimes=this.listTimes,r.eventsOutside=this.eventsOutside,r.updateRows=this.updateRows,r.updateColumns=this.updateColumns,r.around=e?this.span.start.time:this.span.start,r.events=[];for(var i=0,u=this.events;i<u.length;i++){var a=u[i];if(e){var s={};o.isDefined(a.id)&&(s.id=a.id),o.isDefined(a.data)&&(s.data=t(a.data)),a.visible||(s.visible=a.visible),s.schedule=a.schedule.toInput();var f=s.schedule.meta;if(f)for(var c in f)f[c]=n(f[c]);r.events.push(s)}else r.events.push(a)}return r},e.fromInput=function(t){var n=Ne.today();return new e(n,n,null,1,null,null,t)},e.forType=function(t,n,r,i,o){void 0===n&&(n=1),void 0===r&&(r=Ne.today()),void 0===i&&(i=.49999);var u=this.TYPES[t],a=u.getStart(r,n,i);return new e(a,u.getEnd(a,n,i),t,n,u.moveStart,u.moveEnd,o||u.defaultInput)},e.days=function(e,t,n,r){return void 0===e&&(e=1),void 0===t&&(t=Ne.today()),void 0===n&&(n=.4999),this.forType(Ee.DAY,e,t,n,r)},e.weeks=function(e,t,n,r){return void 0===e&&(e=1),void 0===t&&(t=Ne.today()),void 0===n&&(n=.4999),this.forType(Ee.WEEK,e,t,n,r)},e.months=function(e,t,n,r){return void 0===e&&(e=1),void 0===t&&(t=Ne.today()),void 0===n&&(n=.4999),this.forType(Ee.MONTH,e,t,n,r)},e.years=function(e,t,n,r){return void 0===e&&(e=1),void 0===t&&(t=Ne.today()),void 0===n&&(n=.4999),this.forType(Ee.YEAR,e,t,n,r)},e.DEFAULT_FOCUS=.4999,e.TYPES=((Ie={})[Ee.DAY]={getStart:function(e,t,n){return e.startOf("day").add("day",-Math.floor(t*n))},getEnd:function(e,t,n){return e.add("day",t-1).endOf("day")},moveStart:function(e,t){return e.add("day",t)},moveEnd:function(e,t){return e.add("day",t)},defaultInput:void 0},Ie[Ee.WEEK]={getStart:function(e,t,n){return e.startOf("week").add("week",-Math.floor(t*n))},getEnd:function(e,t,n){return e.add("week",t-1).endOf("week")},moveStart:function(e,t){return e.add("week",t)},moveEnd:function(e,t){return e.add("week",t)},defaultInput:void 0},Ie[Ee.MONTH]={getStart:function(e,t,n){return e.startOf("month").add("month",-Math.floor(t*n))},getEnd:function(e,t,n){return e.add("month",t-1).endOf("month")},moveStart:function(e,t){return e.add("month",t)},moveEnd:function(e,t){return e.startOf("month").add("month",t).endOf("month")},defaultInput:{fill:!0}},Ie[Ee.YEAR]={getStart:function(e,t,n){return e.startOf("year").add("year",-Math.floor(t*n))},getEnd:function(e,t,n){return e.add("year",t-1).endOf("year")},moveStart:function(e,t){return e.add("year",t)},moveEnd:function(e,t){return e.add("year",t)},defaultInput:{fill:!0}},Ie),e}(),Fe=function(){function e(){}return e.JANUARY=0,e.FEBRUARY=1,e.MARCH=2,e.APRIL=3,e.MAY=4,e.JUNE=5,e.JULY=6,e.AUGUST=7,e.SEPTEMBER=8,e.OCTOBER=9,e.NOVEMBER=10,e.DECEMBER=11,e.LIST=[e.JANUARY,e.FEBRUARY,e.MARCH,e.APRIL,e.MAY,e.JUNE,e.JULY,e.AUGUST,e.SEPTEMBER,e.OCTOBER,e.NOVEMBER,e.DECEMBER],e}(),je=function(){function e(e,t,n,r){this.name=e,this.listed=t,this.describe=n,this.rules=r}return e.prototype.apply=function(e,t){return e instanceof We?(this.applyGeneric(t,function(t,n){return e.setFrequency(t,n)},function(t){return e.setFrequency(t)}),e.updateChecks()):this.applyGeneric(t,function(t,n){return e[t]=n},function(t){return delete e[t]}),e},e.prototype.applyGeneric=function(t,n,r){for(var i=0,u=e.PROPS;i<u.length;i++){var a=u[i],s=this.rules[a];1===s&&n(a,[t[a]]),o.isArray(s)&&n(a,s),o.isFrequencyValueEvery(s)&&n(a,o.isDefined(s.offset)?{every:s.every,offset:s.offset}:{every:s.every}),o.isDefined(s)||r(a)}},e.prototype.isMatch=function(e,t){return e instanceof We?this.isMatchGeneric(function(t){return e[t].input},t):this.isMatchGeneric(function(t){return e[t]},t)},e.prototype.isMatchGeneric=function(t,n){for(var r=o.isDefined(n),i=0,u=e.PROPS;i<u.length;i++){var a=u[i],s=this.rules[a],f=t(a);if(!1!==s){if(!0===s&&!f)return!1;if(!o.isDefined(s)&&f)return!1;if(o.isNumber(s)){if(!o.isArray(f)||f.length!==s)return!1;if(r&&-1===f.indexOf(n[a]))return!1}if(o.isArray(s)){if(!o.isArray(f))return!1;if(s.length!==f.length)return!1;for(var c=0;c<s.length;c++)if(s[c]!==f[c])return!1;if(r&&-1===s.indexOf(n[a]))return!1}if(o.isFrequencyValueEvery(s)){if(!o.isFrequencyValueEvery(f))return!1;var h=f.offset||0;if(f.every!==s.every||o.isDefined(s.offset)&&h!==s.offset)return!1;if(r&&o.isDefined(s.offset)&&n[a]%s.every!==s.offset)return!1}}}return!0},e.withName=function(e){return Ce[e]},e.findMatch=function(e,t,n){void 0===t&&(t=!0);for(var r=0,i=Ue;r<i.length;r++){var o=i[r];if((o.listed||!t)&&o.isMatch(e,n))return o}return null},e.PROPS=["dayOfWeek","dayOfMonth","lastDayOfMonth","dayOfYear","month","week","year","weekOfYear","weekspanOfYear","fullWeekOfYear","lastWeekspanOfYear","lastFullWeekOfYear","weekOfMonth","weekspanOfMonth","fullWeekOfMonth","lastWeekspanOfMonth","lastFullWeekOfMonth","daysSinceEpoch","weeksSinceEpoch","monthsSinceEpoch"],e}(),Ue=[new je("none",!0,function(e){return g.current.patternNone(e)},{year:1,month:1,dayOfMonth:1}),new je("daily",!0,function(e){return g.current.patternDaily(e)},{}),new je("weekly",!0,function(e){return g.current.patternWeekly(e)},{dayOfWeek:1}),new je("everyOtherWeek",!0,function(e){return(g.current.patternEveryOtherWeek||h.patternEveryOtherWeek)(e)},{dayOfWeek:1,weeksSinceEpoch:{every:2}}),new je("monthlyWeek",!0,function(e){return g.current.patternMonthlyWeek(e)},{dayOfWeek:1,weekspanOfMonth:1}),new je("annually",!0,function(e){return g.current.patternAnnually(e)},{month:1,dayOfMonth:1}),new je("annuallyMonthWeek",!0,function(e){return g.current.patternAnnuallyMonthWeek(e)},{month:1,dayOfWeek:1,weekspanOfMonth:1}),new je("weekday",!0,function(e){return g.current.patternWeekday(e)},{dayOfWeek:[k.MONDAY,k.TUESDAY,k.WEDNESDAY,k.THURSDAY,k.FRIDAY]}),new je("monthly",!0,function(e){return g.current.patternMonthly(e)},{dayOfMonth:1}),new je("lastDay",!0,function(e){return g.current.patternLastDay(e)},{lastDayOfMonth:[1]}),new je("lastDayOfMonth",!0,function(e){return g.current.patternLastDayOfMonth(e)},{month:1,lastDayOfMonth:[1]}),new je("lastWeekday",!0,function(e){return g.current.patternLastWeekday(e)},{lastWeekspanOfMonth:[0],dayOfWeek:1,month:1}),new je("lastWeekdayOfMonth",!0,function(e){return(g.current.patternLastWeekdayOfMonth||h.patternLastWeekdayOfMonth)(e)},{lastWeekspanOfMonth:[0],dayOfWeek:1}),new je("custom",!0,function(e){return g.current.patternCustom(e)},{dayOfWeek:!1,dayOfMonth:!1,lastDayOfMonth:!1,dayOfYear:!1,year:!1,month:!1,week:!1,weekOfYear:!1,weekspanOfYear:!1,fullWeekOfYear:!1,lastWeekspanOfYear:!1,lastFullWeekOfYear:!1,weekOfMonth:!1,weekspanOfMonth:!1,fullWeekOfMonth:!1,lastWeekspanOfMonth:!1,lastFullWeekOfMonth:!1,daysSinceEpoch:!1,weeksSinceEpoch:!1,monthsSinceEpoch:!1})],Ce={},qe=0,Pe=Ue;qe<Pe.length;qe++){var He=Pe[qe];Ce[He.name]=He}var ze=function(){function e(){}return e.Start=function(e,t){return e.time.start.time-t.time.start.time},e.End=function(e,t){return e.time.end.time-t.time.end.time},e.FullDay=function(e,t){return(e.fullDay?0:1)-(t.fullDay?0:1)},e.Duration=function(e,t){return e.time.millis()-t.time.millis()},e.Desc=function(e){return function(t,n){return e(n,t)}},e.Alphabetical=function(e){return function(t,n){var r=e(t.event)||"",i=e(n.event)||"";return r.localeCompare(i)}},e.Ordered=function(e){return function(t,n){return e(t.event)-e(n.event)}},e.List=function(e){return function(t,n){for(var r=0,i=e;r<i.length;r++){var o=(0,i[r])(t,n);if(0!==o)return o}return 0}},e}(),Je={millis:"milliseconde",second:"seconde",minute:"minute",hour:"heure",day:"journée",week:"la semaine",month:"mois",quarter:"trimestre",year:"année"},Ve={millis:"millisecondes",second:"secondes",minute:"minutes",hour:"heures",day:"journées",week:"semaines",month:"mois",quarter:"quarts",year:"années"},Be={weekStartsOn:1,firstWeekContainsDate:4,am:"",pm:"",formatLT:"HH:mm",formatLTS:"HH:mm:ss",formatL:"DD/MM/Y",formatl:"D/M/Y",formatLL:"D MMMM Y",formatll:"D MMM Y",formatLLL:"D MMMM Y HH:mm",formatlll:"D MMM Y HH:mm",formatLLLL:"dddd D MMMM Y HH:mm",formatllll:"ddd D MMM Y HH:mm",suffix:function(e){return e+(1===e?"er":"ème")},identifierTime:function(e){return e?"lll":"LLL"},identifierDay:function(e){return e?"ll":"LL"},identifierWeek:function(e){return"wo [semaine de] YYYY"},identifierMonth:function(e){return e?"MMM YYYY":"MMMM YYYY"},identifierQuarter:function(e){return"Qo [trimestre de] Y"},identifierYear:function(e){return"YYYY"},patternNone:function(){return"Sans répétition"},patternDaily:function(){return"Journalier"},patternWeekly:function(e){return"Tous les "+Be.weekdays[0][e.day]},patternMonthlyWeek:function(e){return"Tous les "+Be.suffix(e.weekspanOfMonth+1)+" "+Be.weekdays[0][e.day]+" du mois"},patternAnnually:function(e){return"Tous les ans le "+e.dayOfMonth+" "+Be.months[0][e.month]},patternAnnuallyMonthWeek:function(e){return"Tous les ans le "+Be.suffix(e.weekspanOfMonth+1)+" "+Be.weekdays[0][e.day]+" de "+Be.months[0][e.month]},patternWeekday:function(){return"Tous les jours de la semaine (du lundi au vendredi)"},patternMonthly:function(e){return"Mensuel le "+e.dayOfMonth+" du mois"},patternLastDay:function(){return"Le dernier jour du mois"},patternLastDayOfMonth:function(e){return"Le dernier jour de "+Be.months[0][e.month]},patternLastWeekday:function(e){return"Le dernier "+Be.weekdays[0][e.day]+" d’"+Be.months[0][e.month]},patternCustom:function(){return"Douane..."},scheduleStartingOn:function(e){return"Commençant le "+e.dayOfMonth+" "+Be.months[0][e.month]+" "+e.year},scheduleEndingOn:function(e){return"et finissant le "+e.dayOfMonth+" "+Be.months[0][e.month]+" "+e.year},scheduleEndsOn:function(e){return"Jusqu'au "+e.dayOfMonth+" "+Be.months[0][e.month]+" "+e.year},scheduleThing:function(e,t){return t?"L’"+e+" va se produire":" l’"+e+" va se produire"},scheduleAtTimes:" à ",scheduleDuration:function(e,t){return" durant "+e+" "+(t?(1!==e?Ve[t]:Je[t])+" ":"")},scheduleExcludes:" excluant le ",scheduleIncludes:" incluant le ",scheduleCancels:" avec annulations le ",ruleDayOfWeek:{every:function(e){return"tous les "+e+" jours de la semaine"},offset:function(e){return"commençant le "+Be.suffix(e)+" jours de la semaine"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" jours de la semaine"}},ruleLastDayOfMonth:{every:function(e){return"tous les "+Be.suffix(e)+" derniers jours du mois"},offset:function(e){return"commençant le "+Be.suffix(e)+" derniers jours du mois"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" derniers jours du mois"}},ruleDayOfMonth:{every:function(e){return"chaque "+Be.suffix(e)+" jour du mois"},offset:function(e){return"à partir du "+Be.suffix(e)+" jour du mois"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" jours du mois"}},ruleDayOfYear:{every:function(e){return"tous les "+e+" jours de l'année"},offset:function(e){return"à partir du "+(e+1)+" jours de l'année"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" jours de l'année"}},ruleYear:{every:function(e){return"tous les "+e+" ans"},offset:function(e){return"à partir de "+e},oneOf:function(e){return"en "+Be.list(e.map(function(e){return e.toString()}))}},ruleMonth:{every:function(e){return"tous les "+Be.suffix(e)+" mois"},offset:function(e){return"à partir de "+Be.months[0][e]},oneOf:function(e){return"en "+Be.list(e.map(function(e){return Be.months[0][e]}))}},ruleDay:{every:function(e){return"tous les "+Be.suffix(e)+" jours de la semaine"},offset:function(e){return"à partir de "+Be.weekdays[0][e]},oneOf:function(e){return"les "+Be.list(e.map(function(e){return Be.weekdays[0][e]}))}},ruleWeek:{every:function(e){return"chaque "+Be.suffix(e)+" semaine de l'année"},offset:function(e){return"à partir de la "+Be.suffix(e)+" semaine de l'année"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" semaines de l'année"}},ruleWeekOfYear:{every:function(e){return"chaque "+Be.suffix(e)+" semaine de l'année"},offset:function(e){return"à partir de la "+Be.suffix(e)+" semaine de l'année"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" semaines de l'année"}},ruleWeekspanOfYear:{every:function(e){return"chaque "+Be.suffix(e+1)+" semaine durée de l'année"},offset:function(e){return"à partir de la "+Be.suffix(e+1)+" semaine durée de l'année"},oneOf:function(e){return"les "+Be.list(e.map(function(e){return Be.suffix(e+1)}))+" semaines de l'année"}},ruleFullWeekOfYear:{every:function(e){return"chaque "+Be.suffix(e)+" semaine complète de l'année"},offset:function(e){return"à partir de la "+Be.suffix(e)+" semaine complète de l'année"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" semaine complète de l'année"}},ruleLastWeekspanOfYear:{every:function(e){return"chaque "+Be.suffix(e+1)+" semaine dernière durée de l'année"},offset:function(e){return"à partir de la "+Be.suffix(e+1)+" semaine dernière durée de l'année"},oneOf:function(e){return"les "+Be.list(e.map(function(e){return Be.suffix(e+1)}))+" semaine dernière durée de l'année"}},ruleLastFullWeekOfYear:{every:function(e){return"chaque "+Be.suffix(e)+" dernière semaine complète de l'année"},offset:function(e){return"à partir de la "+Be.suffix(e)+" dernière semaine complète de l'année"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" dernière semaine complète de l'année"}},ruleWeekOfMonth:{every:function(e){return"chaque "+Be.suffix(e)+" semaine du mois"},offset:function(e){return"à partir de la "+Be.suffix(e)+" semaine du mois"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" semaines du mois"}},ruleFullWeekOfMonth:{every:function(e){return"chaque "+Be.suffix(e)+" complet semaine du mois"},offset:function(e){return"à partir de la "+Be.suffix(e)+" complet semaine du mois"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" complet semaine du mois"}},ruleWeekspanOfMonth:{every:function(e){return"chaque "+Be.suffix(e+1)+" semaine durée du mois"},offset:function(e){return"à partir de la "+Be.suffix(e+1)+" semaine durée du mois"},oneOf:function(e){return"les "+Be.list(e.map(function(e){return Be.suffix(e+1)}))+" semaines durée du mois"}},ruleLastFullWeekOfMonth:{every:function(e){return"chaque "+Be.suffix(e)+" dernier complet semaine du mois"},offset:function(e){return"à partir de la "+Be.suffix(e)+" dernier complet semaine du mois"},oneOf:function(e){return"les "+Be.list(e.map(Be.suffix))+" dernier complet semaine du mois"}},ruleLastWeekspanOfMonth:{every:function(e){return"chaque "+Be.suffix(e+1)+" semaine dernière durée du mois"},offset:function(e){return"à partir du "+(e+1)+" dernière semaine durée du mois"},oneOf:function(e){return"les "+Be.list(e.map(function(e){return e.toString()}))+" la semaine dernière durée du mois"}},summaryDay:function(e,t,n){return(t?e?"ddd ":"dddd ":"")+"D "+(e?"MMM ":"MMMM ")+(n?"Y":"")},summaryWeek:function(e,t,n){return(t?e?"ddd ":"dddd ":"")+"D "+(e?"MMM ":"MMMM ")+(n?"Y":"")},summaryMonth:function(e,t,n){return(e?"MMM":"MMMM")+(n?" YYYY":"")},summaryYear:function(e,t,n){return n?"YYYY":""},list:function(e){for(var t=e.length-1,n=e[0],r=1;r<t;r++)n+=", "+e[r];return t>0&&(n+=" et "+e[t]),n},months:[["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],["janv","févr","mars","avr","mai","juin","juil","août","sept","oct","nov","déc"],["jan","fév","mar","avr","mai","jui","jui","aoû","sep","oct","nov","déc"],["J","F","M","A","M","J","J","A","S","O","N","D"]],weekdays:[["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["dim","lun","mar","mer","jeu","ven","sam"],["dim","lun","mar","mer","jeu","ven","sam"],["di","lu","ma","me","je","ve","sa"]]},Ke=Be;g.add(["fr","fr-ca","fr-ch"],Be);var Ge={millis:"milliseconde",second:"seconde",minute:"minuut",hour:"uur",day:"dag",week:"week",month:"maand",quarter:"kwartaal",year:"jaar"},Xe={millis:"milliseconden",second:"seconden",minute:"minuten",hour:"uur",day:"dagen",week:"weken",month:"maanden",quarter:"vertrekken",year:"jaar"},Qe={weekStartsOn:1,firstWeekContainsDate:4,am:"",pm:"",formatLT:"HH:mm",formatLTS:"HH:mm:ss",formatL:"DD-MM-Y",formatl:"D-M-Y",formatLL:"D MMMM Y",formatll:"D MMM Y",formatLLL:"D MMMM Y HH:mm",formatlll:"D MMM Y HH:mm",formatLLLL:"dddd D MMMM Y HH:mm",formatllll:"ddd D MMM Y HH:mm",suffix:function(e){return e+"e"},identifierTime:function(e){return e?"lll":"LLL"},identifierDay:function(e){return e?"ll":"LL"},identifierWeek:function(e){return"wo [week van] Y"},identifierMonth:function(e){return e?"MMM Y":"MMMM Y"},identifierQuarter:function(e){return"Qo [kwartaal] Y"},identifierYear:function(e){return"Y"},patternNone:function(){return"Geen herhaling"},patternDaily:function(){return"Dagelijks"},patternWeekly:function(e){return"Wekelijks op "+Qe.weekdays[0][e.day]},patternMonthlyWeek:function(e){return"Maandelijks op de "+Qe.suffix(e.weekspanOfMonth+1)+" "+Qe.weekdays[0][e.day]},patternAnnually:function(e){return"Jaarlijks op "+e.dayOfMonth+" "+Qe.months[0][e.month]},patternAnnuallyMonthWeek:function(e){return"Jaarlijks op de "+Qe.suffix(e.weekspanOfMonth+1)+" "+Qe.weekdays[0][e.day]+" van "+Qe.months[0][e.month]},patternWeekday:function(){return"Iedere werkdag (maandag tot vrijdag)"},patternMonthly:function(e){return"Maandelijks op de "+Qe.suffix(e.dayOfMonth)},patternLastDay:function(){return"Laatste dag van de maand"},patternLastDayOfMonth:function(e){return"Laatste dag van "+Qe.months[0][e.month]},patternLastWeekday:function(e){return"Laatste "+Qe.weekdays[0][e.day]+" van "+Qe.months[0][e.month]},patternCustom:function(){return"Aangepast..."},scheduleStartingOn:function(e){return"Vanaf "+e.dayOfMonth+" "+Qe.months[0][e.month]+" "+e.year},scheduleEndingOn:function(e){return"tot en met "+e.dayOfMonth+" "+Qe.months[0][e.month]+" "+e.year},scheduleEndsOn:function(e){return"Tot en met "+e.dayOfMonth+" "+Qe.months[0][e.month]+" "+e.year},scheduleThing:function(e,t){return t?"Zal het "+e+" plaatsvinden":" zal het "+e+" plaatsvinden"},scheduleAtTimes:" om ",scheduleDuration:function(e,t){return" gedurende "+e+" "+(t?(1!==e?Xe[t]:Ge[t])+" ":"")},scheduleExcludes:" met uitzondering van ",scheduleIncludes:" inclusief ",scheduleCancels:" met annuleringen op ",ruleDayOfWeek:{every:function(e){return"iedere "+Qe.suffix(e)+" dag van de week"},offset:function(e){return"vanaf de "+Qe.suffix(e)+" dag van de week"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" dag van de week"}},ruleLastDayOfMonth:{every:function(e){return"iedere "+Qe.suffix(e)+" laatste dag van de maand"},offset:function(e){return"vanaf de "+Qe.suffix(e)+" laatste dag van de maand"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" laatste dag van de maand"}},ruleDayOfMonth:{every:function(e){return"iedere "+Qe.suffix(e)+" dag van de maand"},offset:function(e){return"vanaf de "+Qe.suffix(e)+" dag van de maand"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" dag van de maand"}},ruleDayOfYear:{every:function(e){return"iedere "+Qe.suffix(e)+" dag van het jaar"},offset:function(e){return"vanaf de "+Qe.suffix(e+1)+" dag van het jaar"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" dag van het jaar"}},ruleYear:{every:function(e){return"iedere "+Qe.suffix(e)+" jaar"},offset:function(e){return"vanaf "+e},oneOf:function(e){return"in "+Qe.list(e.map(function(e){return e.toString()}))}},ruleMonth:{every:function(e){return"iedere "+Qe.suffix(e)+" maand"},offset:function(e){return"vanaf "+Qe.months[0][e]},oneOf:function(e){return"in "+Qe.list(e.map(function(e){return Qe.months[0][e]}))}},ruleDay:{every:function(e){return"iedere "+Qe.suffix(e)+" dag van de week"},offset:function(e){return"vanaf "+Qe.weekdays[0][e]},oneOf:function(e){return"on "+Qe.list(e.map(function(e){return Qe.weekdays[0][e]}))}},ruleWeek:{every:function(e){return"iedere "+Qe.suffix(e)+" week van het jaar"},offset:function(e){return"vanaf de "+Qe.suffix(e)+" week van het jaar"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" week van het jaar"}},ruleWeekOfYear:{every:function(e){return"iedere "+Qe.suffix(e)+" week van het jaar"},offset:function(e){return"vanaf de "+Qe.suffix(e)+" week van het jaar"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" week van het jaar"}},ruleWeekspanOfYear:{every:function(e){return"iedere "+Qe.suffix(e+1)+" weekspanne van het jaar"},offset:function(e){return"vanaf de "+Qe.suffix(e+1)+" weekspanne van het jaar"},oneOf:function(e){return"op de "+Qe.list(e.map(function(e){return Qe.suffix(e+1)}))+" weekspanne van het jaar"}},ruleFullWeekOfYear:{every:function(e){return"iedere "+Qe.suffix(e)+" hele week van het jaar"},offset:function(e){return"vanaf de "+Qe.suffix(e)+" hele week van het jaar"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" hele week van het jaar"}},ruleLastWeekspanOfYear:{every:function(e){return"iedere "+Qe.suffix(e+1)+" laatste weekspanne van het jaar"},offset:function(e){return"vanaf de "+Qe.suffix(e+1)+" laatste weekspanne van het jaar"},oneOf:function(e){return"op de "+Qe.list(e.map(function(e){return Qe.suffix(e+1)}))+" last weekspan van het jaar"}},ruleLastFullWeekOfYear:{every:function(e){return"iedere "+Qe.suffix(e)+" laatste hele week van het jaar"},offset:function(e){return"vanaf de "+Qe.suffix(e)+" laatste hele week van het jaar"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" laatste hele week van het jaar"}},ruleWeekOfMonth:{every:function(e){return"iedere "+Qe.suffix(e)+" week van de maand"},offset:function(e){return"vanaf de "+Qe.suffix(e)+" week van de maand"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" week van de maand"}},ruleFullWeekOfMonth:{every:function(e){return"iedere "+Qe.suffix(e)+" hele week van de maand"},offset:function(e){return"vanaf de "+Qe.suffix(e)+" hele week van de maand"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" hele week van de maand"}},ruleWeekspanOfMonth:{every:function(e){return"iedere "+Qe.suffix(e+1)+" weekspanne van de maand"},offset:function(e){return"vanaf de "+Qe.suffix(e+1)+" weekspanne van de maand"},oneOf:function(e){return"op de "+Qe.list(e.map(function(e){return Qe.suffix(e+1)}))+" weekspanne van de maand"}},ruleLastFullWeekOfMonth:{every:function(e){return"iedere "+Qe.suffix(e)+" laatste hele week van de maand"},offset:function(e){return"vanaf de "+Qe.suffix(e)+" laatste hele week van de maand"},oneOf:function(e){return"op de "+Qe.list(e.map(Qe.suffix))+" laatste hele week van de maand"}},ruleLastWeekspanOfMonth:{every:function(e){return"iedere "+Qe.suffix(e+1)+" laatste weekspanne van de maand"},offset:function(e){return"vanaf de "+Qe.suffix(e+1)+" laatste weekspanne van de maand"},oneOf:function(e){return"op de "+Qe.list(e.map(function(e){return Qe.suffix(e+1)}))+" last weekspanne van de maand"}},summaryDay:function(e,t,n){return(t?e?"ddd ":"dddd ":"")+"D "+(e?"MMM ":"MMMM ")+(n?"Y":"")},summaryWeek:function(e,t,n){return(t?e?"ddd ":"dddd ":"")+"D "+(e?"MMM ":"MMMM ")+(n?"Y":"")},summaryMonth:function(e,t,n){return(e?"MMM":"MMMM")+(n?" YYYY":"")},summaryYear:function(e,t,n){return n?"YYYY":""},list:function(e){for(var t=e.length-1,n=e[0],r=1;r<t;r++)n+=", "+e[r];return t>0&&(n+=" en "+e[t]),n},months:[["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],["J","F","M","A","M","J","J","A","S","O","N","D"]],weekdays:[["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zon","maan","din","woen","don","vrij","zat"],["zon","maa","din","woe","don","vrij","zat"],["zo","ma","di","wo","do","vr","za"]]},Ze=Qe;g.add(["nl","nl-be"],Qe);var $e={millis:"Millisekunde",second:"Sekunde",minute:"Minute",hour:"Stunde",day:"Tag",week:"Woche",month:"Monat",quarter:"Quartal",year:"Jahr"},et={millis:"Millisekunden",second:"Sekunden",minute:"Minuten",hour:"Stunden",day:"Tage",week:"Wochen",month:"Monate",quarter:"Viertel",year:"Jahre"},tt={weekStartsOn:1,firstWeekContainsDate:4,suffix:function(e){return e+"."},am:"",pm:"",formatLT:"HH:mm",formatLTS:"HH:mm:ss",formatL:"DD.MM.Y",formatl:"D.M.Y",formatLL:"D. MMMM Y",formatll:"D. MMM Y",formatLLL:"D. MMMM Y HH:mm",formatlll:"D. MMM Y HH:mm",formatLLLL:"dddd, D. MMMM Y HH:mm",formatllll:"ddd, D. MMM Y HH:mm",identifierTime:function(e){return e?"lll":"LLL"},identifierDay:function(e){return e?"ll":"LL"},identifierWeek:function(e){return"wo [Woche in] Y"},identifierMonth:function(e){return e?"MMM Y":"MMMM Y"},identifierQuarter:function(e){return"Qo [Quartal] Y"},identifierYear:function(e){return"Y"},patternNone:function(){return"Nicht wiederholend"},patternDaily:function(){return"Täglich"},patternWeekly:function(e){return"Wöchentlich am "+tt.weekdays[0][e.day]},patternMonthlyWeek:function(e){return"Monatlich am "+(e.weekspanOfMonth+1)+". "+tt.weekdays[0][e.day]},patternAnnually:function(e){return"Jährlich am "+e.dayOfMonth+". "+tt.months[0][e.month]},patternAnnuallyMonthWeek:function(e){return"Jährlich am "+(e.weekspanOfMonth+1)+". "+tt.weekdays[0][e.day]+" im "+tt.months[0][e.month]},patternWeekday:function(){return"Jeden Werktag (Montag bis Freitag)"},patternMonthly:function(e){return"Monatlich am "+e.dayOfMonth+". Tag"},patternLastDay:function(){return"Am letzten Tag im Monat"},patternLastDayOfMonth:function(e){return"Am letzten Tag im "+tt.months[0][e.month]},patternLastWeekday:function(e){return"Am letzten "+tt.weekdays[0][e.day]+" im "+tt.months[0][e.month]},patternCustom:function(){return"Benutzerdefiniert..."},scheduleStartingOn:function(e){return"Startend am "+o.padNumber(e.dayOfMonth,2)+". "+tt.months[0][e.month]+" "+e.year},scheduleEndingOn:function(e){return"und endend am "+o.padNumber(e.dayOfMonth,2)+". "+tt.months[0][e.month]+" "+e.year},scheduleEndsOn:function(e){return"Bis zum "+o.padNumber(e.dayOfMonth,2)+". "+tt.months[0][e.month]+" "+e.year},scheduleThing:function(e,t){return t?"Wird das "+e+" stattfinden":" wird das "+e+" stattfinden"},scheduleAtTimes:" um ",scheduleDuration:function(e,t){return" mit einer Dauer von "+e+" "+(t?(1!==e?et[t]:$e[t])+" ":"")},scheduleExcludes:" mit Ausnahme vom ",scheduleIncludes:" mit Einnahme vom ",scheduleCancels:" mit einer Aussetzung am ",ruleDayOfWeek:{every:function(e){return"jeden "+tt.suffix(e)+" Tag der Woche"},offset:function(e){return"startend am the "+tt.suffix(e)+" Tag der Woche"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" Tag der Woche"}},ruleLastDayOfMonth:{every:function(e){return"jeden "+tt.suffix(e)+" letzten Tag des Monats"},offset:function(e){return"startend am the "+tt.suffix(e)+" letzten Tag des Monats"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" letzten Tag des Monats"}},ruleDayOfMonth:{every:function(e){return"jeden "+tt.suffix(e)+" Tag des Monats"},offset:function(e){return"startend am the "+tt.suffix(e)+" Tag des Monats"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" Tag des Monats"}},ruleDayOfYear:{every:function(e){return"jeden "+tt.suffix(e)+" Tag des Jahres"},offset:function(e){return"startend am the "+tt.suffix(e+1)+" Tag des Jahres"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" Tag des Jahres"}},ruleYear:{every:function(e){return"jeden "+tt.suffix(e)+" Jahr"},offset:function(e){return"startend in "+e},oneOf:function(e){return"in "+tt.list(e.map(function(e){return e.toString()}))}},ruleMonth:{every:function(e){return"jeden "+tt.suffix(e)+" Monat"},offset:function(e){return"startend in "+tt.months[0][e]},oneOf:function(e){return"in "+tt.list(e.map(function(e){return tt.months[0][e]}))}},ruleDay:{every:function(e){return"jeden "+tt.suffix(e)+" Tag der Woche"},offset:function(e){return"startend am "+tt.weekdays[0][e]},oneOf:function(e){return"on "+tt.list(e.map(function(e){return tt.weekdays[0][e]}))}},ruleWeek:{every:function(e){return"jeden "+tt.suffix(e)+" Woche des Jahres"},offset:function(e){return"startend am the "+tt.suffix(e)+" Woche des Jahres"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" Woche des Jahres"}},ruleWeekOfYear:{every:function(e){return"jeden "+tt.suffix(e)+" Woche des Jahres"},offset:function(e){return"startend am the "+tt.suffix(e)+" Woche des Jahres"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" Woche des Jahres"}},ruleWeekspanOfYear:{every:function(e){return"jeden "+tt.suffix(e+1)+" Wochenspanne des Jahres"},offset:function(e){return"startend am the "+tt.suffix(e+1)+" Wochenspanne des Jahres"},oneOf:function(e){return"am "+tt.list(e.map(function(e){return tt.suffix(e+1)}))+" Wochenspanne des Jahres"}},ruleFullWeekOfYear:{every:function(e){return"jeden "+tt.suffix(e)+" vollen Woche des Jahres"},offset:function(e){return"startend am the "+tt.suffix(e)+" vollen Woche des Jahres"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" vollen Woche des Jahres"}},ruleLastWeekspanOfYear:{every:function(e){return"jeden "+tt.suffix(e+1)+" last Wochenspanne des Jahres"},offset:function(e){return"startend am the "+tt.suffix(e+1)+" last Wochenspanne des Jahres"},oneOf:function(e){return"am "+tt.list(e.map(function(e){return tt.suffix(e+1)}))+" last Wochenspanne des Jahres"}},ruleLastFullWeekOfYear:{every:function(e){return"jeden "+tt.suffix(e)+" letzte volle Woche des Jahres"},offset:function(e){return"startend am the "+tt.suffix(e)+" letzte volle Woche des Jahres"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" letzte volle Woche des Jahres"}},ruleWeekOfMonth:{every:function(e){return"jeden "+tt.suffix(e)+" Woche des Monats"},offset:function(e){return"startend am the "+tt.suffix(e)+" Woche des Monats"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" Woche des Monats"}},ruleFullWeekOfMonth:{every:function(e){return"jeden "+tt.suffix(e)+" vollen Woche des Monats"},offset:function(e){return"startend am the "+tt.suffix(e)+" vollen Woche des Monats"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" vollen Woche des Monats"}},ruleWeekspanOfMonth:{every:function(e){return"jeden "+tt.suffix(e+1)+" Wochenspanne des Monats"},offset:function(e){return"startend am the "+tt.suffix(e+1)+" Wochenspanne des Monats"},oneOf:function(e){return"am "+tt.list(e.map(function(e){return tt.suffix(e+1)}))+" Wochenspanne des Monats"}},ruleLastFullWeekOfMonth:{every:function(e){return"jeden "+tt.suffix(e)+" letzte volle week des Monats"},offset:function(e){return"startend am the "+tt.suffix(e)+" letzte volle week des Monats"},oneOf:function(e){return"am "+tt.list(e.map(tt.suffix))+" letzte volle week des Monats"}},ruleLastWeekspanOfMonth:{every:function(e){return"jeden "+tt.suffix(e+1)+" letzten Wochenspanne des Monats"},offset:function(e){return"startend am the "+tt.suffix(e+1)+" letzten Wochenspanne des Monats"},oneOf:function(e){return"am "+tt.list(e.map(function(e){return tt.suffix(e+1)}))+" letzten Wochenspanne des Monats"}},summaryDay:function(e,t,n){return(t?e?"ddd, ":"dddd, ":"")+(e?"MMM ":"MMMM ")+"Do"+(n?" Y":"")},summaryWeek:function(e,t,n){return(t?e?"ddd, ":"dddd, ":"")+(e?"MMM ":"MMMM ")+"Do"+(n?" Y":"")},summaryMonth:function(e,t,n){return(e?"MMM":"MMMM")+(n?" YYYY":"")},summaryYear:function(e,t,n){return n?"YYYY":""},list:function(e){for(var t=e.length-1,n=e[0],r=1;r<t;r++)n+=", "+e[r];return t>0&&(n+=" und "+e[t]),n},months:[["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],["Jan","Feb","Mrz","Apr","Mai","Juni","Juli","Aug","Sept","Okt","Nov","Dez"],["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["J","F","Mä","A","Ma","Ju","Jl","Ag","S","O","N","D"]],weekdays:[["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So","Mo","Di","Mi","Do","Fr","Sa"],["So","Mo","Di","Mi","Do","Fr","Sa"],["So","Mo","Di","Mi","Do","Fr","Sa"]]},nt=tt;g.add(["de","de-at","de-de","de-li","de-lu","de-ch"],tt);var rt=function(){return(rt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},it=rt({},nt,{months:[["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktoboer","November","Dezember"],["Jän","Feb","Mrz","Apr","Mai","Juni","Juli","Aug","Sept","Okt","Nov","Dez"],["Jän","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["J","F","Mä","A","Ma","Ju","Jl","Ag","S","O","N","D"]]}),ot=it;g.add("de-at",it),n.d(t,"Calendar",function(){return Re}),n.d(t,"CalendarDay",function(){return Te}),n.d(t,"CalendarEvent",function(){return xe}),n.d(t,"Event",function(){return De}),n.d(t,"Constants",function(){return i}),n.d(t,"Day",function(){return Ne}),n.d(t,"DayFormat",function(){return a}),n.d(t,"DaySpan",function(){return me}),n.d(t,"Format",function(){return u}),n.d(t,"Functions",function(){return o}),n.d(t,"Identifier",function(){return ve}),n.d(t,"Locales",function(){return g}),n.d(t,"Month",function(){return Fe}),n.d(t,"Op",function(){return Z}),n.d(t,"operate",function(){return de}),n.d(t,"Parse",function(){return Le}),n.d(t,"Pattern",function(){return je}),n.d(t,"Patterns",function(){return Ue}),n.d(t,"PatternMap",function(){return Ce}),n.d(t,"Ref",function(){return O}),n.d(t,"Schedule",function(){return We}),n.d(t,"ScheduleModifier",function(){return Ye}),n.d(t,"Sorts",function(){return ze}),n.d(t,"Time",function(){return _e}),n.d(t,"TimeFormat",function(){return be}),n.d(t,"Units",function(){return Ee}),n.d(t,"Weekday",function(){return k}),n.d(t,"en",function(){return h}),n.d(t,"enPlain",function(){return M}),n.d(t,"fr",function(){return Ke}),n.d(t,"nl",function(){return Ze}),n.d(t,"de",function(){return nt}),n.d(t,"deAt",function(){return ot})}])});
2
2
  //# sourceMappingURL=dayspan.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dayspan",
3
- "version": "1.0.3",
3
+ "version": "1.2.0",
4
4
  "description": "A date & schedule library to use for advanced calendars in TypeScript and JS",
5
5
  "main": "dist/dayspan.js",
6
6
  "typings": "typings/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "scripts": {
19
19
  "start": "webpack-dev-server --port 9000 --inline --progress --profile --colors --watch --content-base src/ --mode development",
20
- "build": "webpack --config webpack.config.js --mode production",
20
+ "build": "webpack --config webpack.config.js --mode production && npm run typings",
21
21
  "build.prod": "webpack --config webpack.config.js -p",
22
22
  "cleanup": "shx rm -rf umd lib lib-esm lib-fesm typings coverage ../iteratez-pages/docs",
23
23
  "prebuild": "npm run cleanup && npm run verify",
@@ -32,7 +32,8 @@
32
32
  "release:npm": "npm publish",
33
33
  "release:preflight": "irish-pub",
34
34
  "release:preflight:package": "npm pack",
35
- "size": "shx echo \"Gzipped Size:\" && cross-var strip-json-comments --no-whitespace $npm_package_main | gzip-size"
35
+ "size": "shx echo \"Gzipped Size:\" && cross-var strip-json-comments --no-whitespace $npm_package_main | gzip-size",
36
+ "typings": "tsc -p tsconfig.typings.json"
36
37
  },
37
38
  "config": {
38
39
  "commitizen": {
@@ -86,4 +87,4 @@
86
87
  "dependencies": {
87
88
  "iteratez": "1.2.2"
88
89
  }
89
- }
90
+ }
package/typings/Day.d.ts CHANGED
@@ -47,6 +47,9 @@ export interface DayFrequency {
47
47
  fullWeekOfMonth: number;
48
48
  lastFullWeekOfMonth: number;
49
49
  lastWeekspanOfMonth: number;
50
+ daysSinceEpoch: number;
51
+ weeksSinceEpoch: number;
52
+ monthsSinceEpoch: number;
50
53
  }
51
54
  /**
52
55
  * A class which represents a Date with a few added features.
@@ -224,6 +227,30 @@ export declare class Day implements DayFrequency {
224
227
  */
225
228
  readonly lastFullWeekOfMonth: number;
226
229
  _lastFullWeekOfMonth: number;
230
+ /**
231
+ * The number of days since January 1st, 1970 (local calendar days). A
232
+ * schedule with `daysSinceEpoch: { every: 3 }` happens every 3 days counted
233
+ * from its start, across months and years.
234
+ */
235
+ readonly daysSinceEpoch: number;
236
+ _daysSinceEpoch: number;
237
+ /**
238
+ * The number of weeks since the week of January 1st, 1970. Weeks start on
239
+ * [[Locale.weekStartsOn]]. A schedule with `weeksSinceEpoch: { every: 2 }`
240
+ * happens every other week counted from its start, across years (unlike
241
+ * `weekOfYear`, which restarts every year).
242
+ *
243
+ * This is dependent on the locale of the instance (or global locale).
244
+ */
245
+ readonly weeksSinceEpoch: number;
246
+ _weeksSinceEpoch: number;
247
+ /**
248
+ * The number of months since January 1970. A schedule with
249
+ * `monthsSinceEpoch: { every: 5 }` happens every 5 months counted from its
250
+ * start (unlike `month`, which restarts every year).
251
+ */
252
+ readonly monthsSinceEpoch: number;
253
+ _monthsSinceEpoch: number;
227
254
  /**
228
255
  * The identifier which stores in a simple form the date and time of this Day.
229
256
  */
@@ -376,9 +403,8 @@ export declare class Day implements DayFrequency {
376
403
  yearsBetween(day: Day, op?: Op, absolute?: boolean): number;
377
404
  isBetween(start: Day, end: Day, inclusive?: boolean, precision?: Unit): boolean;
378
405
  mutate(mutator: (date: Date) => any): Day;
379
- add(amount: number, unit?: Unit): Day;
406
+ add(unit: Unit, amount?: number): Day;
380
407
  relative(millis: number): Day;
381
- relativeDays(days: number): Day;
382
408
  prev(days?: number): Day;
383
409
  next(days?: number): Day;
384
410
  withDayOfMonth(day: number): Day;
@@ -386,9 +412,6 @@ export declare class Day implements DayFrequency {
386
412
  withDayOfWeek(dayOfWeek: number): Day;
387
413
  withDayOfYear(dayOfYear: number): Day;
388
414
  withMonth(month: number): Day;
389
- relativeMonths(months: number): Day;
390
- prevMonth(months?: number): Day;
391
- nextMonth(months?: number): Day;
392
415
  protected withWeek(week: number, relativeWeek: number): Day;
393
416
  withWeekOfYear(week: number): Day;
394
417
  withFullWeekOfYear(week: number): Day;
@@ -396,42 +419,15 @@ export declare class Day implements DayFrequency {
396
419
  withWeekOfMonth(week: number): Day;
397
420
  withWeekspanOfMonth(week: number): Day;
398
421
  withFullWeekOfMonth(week: number): Day;
399
- relativeWeeks(weeks: number): Day;
400
- prevWeek(weeks?: number): Day;
401
- nextWeek(weeks?: number): Day;
402
422
  withYear(year: number): Day;
403
- relativeYears(years: number): Day;
404
- prevYear(years?: number): Day;
405
- nextYear(years?: number): Day;
406
423
  withHour(hour: number): Day;
407
- relativeHours(hours: number): Day;
408
- prevHour(hours?: number): Day;
409
- nextHour(hours?: number): Day;
410
424
  withTimes(hour?: number, minute?: number, second?: number, millisecond?: number): Day;
411
425
  withTime(time: Time): Day;
412
426
  asTime(): Time;
413
427
  startOf(unit: Unit): Day;
428
+ isStartOf(unit: Unit): boolean;
414
429
  endOf(unit: Unit, inclusive?: boolean): Day;
415
- start(): Day;
416
- isStart(): boolean;
417
- end(inclusive?: boolean): Day;
418
- isEnd(): boolean;
419
- startOfHour(): Day;
420
- isStartOfHour(): boolean;
421
- endOfHour(inclusive?: boolean): Day;
422
- isEndOfHour(): boolean;
423
- startOfWeek(): Day;
424
- isStartOfWeek(): boolean;
425
- endOfWeek(inclusive?: boolean): Day;
426
- isEndOfWeek(): boolean;
427
- startOfMonth(): Day;
428
- isStartOfMonth(): boolean;
429
- endOfMonth(inclusive?: boolean): Day;
430
- isEndOfMonth(): boolean;
431
- startOfYear(): Day;
432
- isStartOfYear(): boolean;
433
- endOfYear(inclusive?: boolean): Day;
434
- isEndOfYear(): boolean;
430
+ isEndOf(unit: Unit, inclusive?: boolean): boolean;
435
431
  daysInMonth(): number;
436
432
  daysInYear(): number;
437
433
  weeksInYear(): number;
@@ -34,6 +34,21 @@ export declare function getWeekISO(start: Date, dayOfStart: number, options?: Lo
34
34
  export declare function getWeek(start: Date, dayOfStart: number, options: LocaleOptions): number;
35
35
  export declare function getFullWeekOf(start: Date, dayOfStart: number, options?: LocaleOptions): number;
36
36
  export declare function getDayOfWeek(x: Date, options?: LocaleOptions): number;
37
+ /**
38
+ * The number of whole local days from January 1st, 1970 to the given date
39
+ * (negative before it). Daylight saving time doesn't change it: it counts
40
+ * calendar days, not 24 hour periods.
41
+ */
42
+ export declare function getDaysSinceEpoch(x: Date): number;
43
+ /**
44
+ * The number of whole weeks from the week containing January 1st, 1970 to the
45
+ * week containing the given date. Weeks start on [[Locale.weekStartsOn]].
46
+ */
47
+ export declare function getWeeksSinceEpoch(x: Date, options?: LocaleOptions): number;
48
+ /**
49
+ * The number of whole months from January 1970 to the month of the given date.
50
+ */
51
+ export declare function getMonthsSinceEpoch(x: Date): number;
37
52
  export declare function getDayOfYear(a: Date): number;
38
53
  export declare function getDateOffset(x: Date): number;
39
54
  export declare function isDaylightSavingTime(x: Date): boolean;
@@ -0,0 +1,60 @@
1
+ import { DayProperty } from './Day';
2
+ /**
3
+ * A frequency that occurs at a constant rate with an optional offset.
4
+ */
5
+ export interface FrequencyValueEvery {
6
+ /**
7
+ * How often the value occurs. For example, if this value is `2` the event will
8
+ * occur on every other unit of time.
9
+ */
10
+ every: number;
11
+ /**
12
+ * The offset of the frequency which is between `0` and less than `every`.
13
+ * This is `0` by default which means the frequency starts on `0` and occurs
14
+ * on `every`, `every * 2`, `every * 3`, etc. For example if this value is `1`
15
+ * and `every` is 3 the sequence will be: 1, 4, 7, 11, ...
16
+ */
17
+ offset?: number;
18
+ }
19
+ /**
20
+ * A frequency that occurs only on specific values.
21
+ */
22
+ export declare type FrequencyValueOneOf = number[];
23
+ /**
24
+ * A frequency that occurs once.
25
+ */
26
+ export declare type FrequencyValueEquals = number;
27
+ /**
28
+ * A frequency that occurs at a constant rate or only on specific values.
29
+ */
30
+ export declare type FrequencyValue = FrequencyValueEvery | FrequencyValueOneOf | FrequencyValueEquals;
31
+ /**
32
+ * A function which takes a value and returns whether it coincides with the
33
+ * desired frequency (based on [[FrequencyCheck.input]] and parsed by
34
+ * [[Parse.frequency]]). This is loosely tied to a property on the [[Day]]
35
+ * object through the [[FrequencyCheck.property]] value.
36
+ */
37
+ export interface FrequencyCheck {
38
+ /**
39
+ * Tests if the value coincides with the specified frequency.
40
+ *
41
+ * @param value The number to test.
42
+ * @returns `true` if the value occurs, otherwise `false`.
43
+ */
44
+ (value: number): boolean;
45
+ /**
46
+ * The original input passed to [[Parse.frequency]] which generated this
47
+ * function.
48
+ */
49
+ input?: FrequencyValue;
50
+ /**
51
+ * Whether the [[FrequencyCheck.input]] given was a valid frequency value and
52
+ * this function will produce desirable results. If given is false, the input
53
+ * was missing or was not valid and this function will always return true.
54
+ */
55
+ given?: boolean;
56
+ /**
57
+ * The property on the [[Day]] object this function evaluates.
58
+ */
59
+ property?: DayProperty;
60
+ }
@@ -61,12 +61,24 @@ export interface Locale extends LocaleOptions {
61
61
  patternLastDay(day: Day): string;
62
62
  patternLastDayOfMonth(day: Day): string;
63
63
  patternLastWeekday(day: Day): string;
64
+ /**
65
+ * "Monthly on the last Friday". Optional: English is used when missing.
66
+ */
67
+ patternLastWeekdayOfMonth?(day: Day): string;
68
+ /**
69
+ * "Every other week on Friday". Optional: English is used when missing.
70
+ */
71
+ patternEveryOtherWeek?(day: Day): string;
64
72
  patternCustom(day: Day): string;
65
73
  scheduleStartingOn(start: Day): string;
66
74
  scheduleEndingOn(end: Day): string;
67
75
  scheduleEndsOn(end: Day): string;
68
76
  scheduleThing(thing: string, start: boolean): string;
69
77
  scheduleAtTimes: string;
78
+ /**
79
+ * How times are written in [[Schedule.describe]] (`hh:mm a` when missing).
80
+ */
81
+ scheduleTimeFormat?: string;
70
82
  scheduleDuration(duration: number, unit?: string): string;
71
83
  scheduleExcludes: string;
72
84
  scheduleIncludes: string;
@@ -89,6 +101,18 @@ export interface Locale extends LocaleOptions {
89
101
  ruleWeekspanOfMonth: LocaleRule;
90
102
  ruleLastFullWeekOfMonth: LocaleRule;
91
103
  ruleLastWeekspanOfMonth: LocaleRule;
104
+ /**
105
+ * Every N days, counted from the schedule's start. Optional: English is used when missing.
106
+ */
107
+ ruleDaysSinceEpoch?: LocaleRule;
108
+ /**
109
+ * Every N weeks, counted from the schedule's start. Optional: English is used when missing.
110
+ */
111
+ ruleWeeksSinceEpoch?: LocaleRule;
112
+ /**
113
+ * Every N months, counted from the schedule's start. Optional: English is used when missing.
114
+ */
115
+ ruleMonthsSinceEpoch?: LocaleRule;
92
116
  summaryDay(short: boolean, dayOfWeek: boolean, year: boolean): string;
93
117
  summaryWeek(short: boolean, dayOfWeek: boolean, year: boolean): string;
94
118
  summaryMonth(short: boolean, dayOfWeek: boolean, year: boolean): string;
@@ -80,7 +80,7 @@ export declare class Parse {
80
80
  * @returns The object with identifier keys and `true` values.
81
81
  * @see [[Day.dayIdentifier]]
82
82
  */
83
- static modifier<T>(input: any, value: T, parseMeta?: (input: any) => T, out?: ScheduleModifier<T>): ScheduleModifier<T>;
83
+ static modifier<T>(input: any, value: T, parseMeta?: (input: any) => T, out?: ScheduleModifier<T>, timed?: boolean): ScheduleModifier<T>;
84
84
  /**
85
85
  *
86
86
  */
@@ -45,6 +45,9 @@ export interface PatternRules {
45
45
  fullWeekOfMonth?: PatternRule;
46
46
  lastWeekspanOfMonth?: PatternRule;
47
47
  lastFullWeekOfMonth?: PatternRule;
48
+ daysSinceEpoch?: PatternRule;
49
+ weeksSinceEpoch?: PatternRule;
50
+ monthsSinceEpoch?: PatternRule;
48
51
  }
49
52
  /**
50
53
  * A class which helps describe [[ScheduleInput]] if it matches a pattern.
@@ -152,6 +152,18 @@ export interface ScheduleInput<M> {
152
152
  * @see [[Schedule.lastFullWeekOfMonth]]
153
153
  */
154
154
  lastFullWeekOfMonth?: FrequencyValue;
155
+ /**
156
+ * @see [[Schedule.daysSinceEpoch]]
157
+ */
158
+ daysSinceEpoch?: FrequencyValue;
159
+ /**
160
+ * @see [[Schedule.weeksSinceEpoch]]
161
+ */
162
+ weeksSinceEpoch?: FrequencyValue;
163
+ /**
164
+ * @see [[Schedule.monthsSinceEpoch]]
165
+ */
166
+ monthsSinceEpoch?: FrequencyValue;
155
167
  /**
156
168
  * The function to parse metadata with.
157
169
  */
@@ -296,6 +308,25 @@ export declare class Schedule<M> {
296
308
  * How frequent the event occurs based on [[Day.lastFullWeekOfMonth]].
297
309
  */
298
310
  lastFullWeekOfMonth: FrequencyCheck;
311
+ /**
312
+ * How frequent the event occurs based on [[Day.daysSinceEpoch]]. An
313
+ * `{ every, offset }` value counts from [[Schedule.start]] when there is
314
+ * one: `{ every: 3 }` is every 3 days starting on the start day, and an
315
+ * offset moves the first one later by that many days.
316
+ */
317
+ daysSinceEpoch: FrequencyCheck;
318
+ /**
319
+ * How frequent the event occurs based on [[Day.weeksSinceEpoch]]. An
320
+ * `{ every, offset }` value counts from the week of [[Schedule.start]] when
321
+ * there is one: `{ every: 2 }` is every other week starting that week.
322
+ */
323
+ weeksSinceEpoch: FrequencyCheck;
324
+ /**
325
+ * How frequent the event occurs based on [[Day.monthsSinceEpoch]]. An
326
+ * `{ every, offset }` value counts from the month of [[Schedule.start]]
327
+ * when there is one: `{ every: 3 }` is every third month starting then.
328
+ */
329
+ monthsSinceEpoch: FrequencyCheck;
299
330
  /**
300
331
  * How frequent the event occurs based on [[Day.year]].
301
332
  */
@@ -345,6 +376,16 @@ export declare class Schedule<M> {
345
376
  * in the schedule input.
346
377
  */
347
378
  updateChecks(): this;
379
+ /**
380
+ * The check for a "since epoch" frequency as a schedule uses it: an
381
+ * `{ every, offset }` value counts from the schedule's start (when it has
382
+ * one), so "every 2 weeks" means every other week from the first one.
383
+ * Lists and single values are absolute and stay as they are.
384
+ *
385
+ * @param check The check for the property.
386
+ * @returns The check to use in [[Schedule.checks]].
387
+ */
388
+ private anchored;
348
389
  /**
349
390
  * Updates the [[Schedule.end]] based on [[Schedule.maxOccurrences]]
350
391
  */
@@ -24,6 +24,7 @@ export * from './TimeFormat';
24
24
  export * from './Units';
25
25
  export * from './Weekday';
26
26
  export { default as en } from './locales/en';
27
+ export { default as enPlain } from './locales/en-plain';
27
28
  export { default as fr } from './locales/fr';
28
29
  export { default as nl } from './locales/nl';
29
30
  export { default as de } from './locales/de';
@@ -0,0 +1,3 @@
1
+ import { Locale } from '../Locale';
2
+ declare const lc: Locale;
3
+ export default lc;