/*!FullCalendar Moment Plugin v4.3.0Docs & License: https://fullcalendar.io/(c) 2019 Adam Shaw*/!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?t(exports,require("moment"),require("@fullcalendar/core")):"function"==typeofdefine&&define.amd?define(["exports","moment","@fullcalendar/core"],t):t((e=e||self).FullCalendarMoment={},e.moment,e.FullCalendar)}(this,function(e,t,n){"use strict";varr=t;vara=n.createPlugin({cmdFormatter:function(e,t){varn=functione(t){varn=t.match(/^(.*?)\{(.*)\}(.*)$/);if(n){varr=e(n[2]);return{head:n[1],middle:r,tail:n[3],whole:n[1]+r.whole+n[3]}}return{head:null,middle:null,tail:null,whole:t}}(e);if(t.end){varr=l(t.start.array,t.timeZone,t.start.timeZoneOffset,t.localeCodes[0]),a=l(t.end.array,t.timeZone,t.end.timeZoneOffset,t.localeCodes[0]);returnfunctione(t,n,r,a){if(t.middle){varo=n(t.head),l=e(t.middle,n,r,a),u=n(t.tail),i=r(t.head),d=e(t.middle,n,r,a),f=r(t.tail);if(o===i&&u===f)returno+(l===d?l:l+a+d)+u}varc=n(t.whole),m=r(t.whole);returnc===m?c:c+a+m}(n,o(r),o(a),t.separator)}returnl(t.date.array,t.timeZone,t.date.timeZoneOffset,t.localeCodes[0]).format(n.whole)}});functiono(e){returnfunction(t){returnt?e.format(t):""}}functionl(e,t,n,a){varo;return"local"===t?o=r(e):"UTC"===t?o=r.utc(e):r.tz?o=r.tz(e,t):(o=r.utc(e),null!=n&&o.utcOffset(n)),o.locale(a),o}e.default=a,e.toDuration=function(e){returnr.duration(e)},e.toMoment=function(e,t){if(!(tinstanceofn.Calendar))thrownewError("must supply a Calendar instance");returnl(e,t.dateEnv.timeZone,null,t.dateEnv.locale.codes[0])},Object.defineProperty(e,"__esModule",{value:!0})});