tocco-admin 1.0.17 → 1.0.18
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 +3 -0
- package/dist/{chunk-163.38bfce5881fe04161759.js → chunk-163.c0d9544ec345494b1a2e.js} +2 -1
- package/dist/chunk-163.c0d9544ec345494b1a2e.js.map +1 -0
- package/dist/{chunk-314.fd36699dbd136490aa1f.js → chunk-314.06fbc31e051912aa797d.js} +2 -1
- package/dist/chunk-314.06fbc31e051912aa797d.js.map +1 -0
- package/dist/{chunk-368.3207a3a7658d3621dbd0.js → chunk-368.fdad57fbc3465d09373f.js} +2 -1
- package/dist/chunk-368.fdad57fbc3465d09373f.js.map +1 -0
- package/dist/{chunk-378.3dc4e7a208da46534cf5.js → chunk-378.d89c9e1aceb1eda54046.js} +2 -1
- package/dist/chunk-378.d89c9e1aceb1eda54046.js.map +1 -0
- package/dist/{chunk-395.b018ce8a521bc75ce41e.js → chunk-395.e670367a30bd131e5c51.js} +2 -1
- package/dist/chunk-395.e670367a30bd131e5c51.js.map +1 -0
- package/dist/{chunk-413.8f9875231f3ea3dc91b3.js → chunk-413.a87d7653543f87fb986b.js} +2 -1
- package/dist/chunk-413.a87d7653543f87fb986b.js.map +1 -0
- package/dist/{chunk-51.ff992f4a4488d7d44357.js → chunk-51.6b8c9d2c2b4f89de46ce.js} +2 -1
- package/dist/chunk-51.6b8c9d2c2b4f89de46ce.js.map +1 -0
- package/dist/{chunk-696.4246384f89ce1ee8933f.js → chunk-696.c28466168bbf1bd96ac6.js} +2 -1
- package/dist/chunk-696.c28466168bbf1bd96ac6.js.map +1 -0
- package/dist/{chunk-82.fe992385267f6eb716e8.js → chunk-82.31084b7daa6e3ae23a98.js} +2 -1
- package/dist/chunk-82.31084b7daa6e3ae23a98.js.map +1 -0
- package/dist/{chunk-actions.f6583259bf6f96c477d7.js → chunk-actions.3b4aac3f72ded7dcb505.js} +2 -1
- package/dist/chunk-actions.3b4aac3f72ded7dcb505.js.map +1 -0
- package/dist/{chunk-code-editor.c708152eddf0f7632315.js → chunk-code-editor.73b0f627952f5dd27561.js} +2 -1
- package/dist/chunk-code-editor.73b0f627952f5dd27561.js.map +1 -0
- package/dist/{chunk-docs-actions.becb86e15f96ea83947c.js → chunk-docs-actions.f33942c4f1459f1d1376.js} +2 -1
- package/dist/chunk-docs-actions.f33942c4f1459f1d1376.js.map +1 -0
- package/dist/chunk-vendor-icons.dafd17ccd5a526750a0a.js +1 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-vendor-icons.d4a9b0272c83f6d0c94e.js +0 -1
|
@@ -42,4 +42,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
42
42
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
43
43
|
PERFORMANCE OF THIS SOFTWARE.
|
|
44
44
|
***************************************************************************** */
|
|
45
|
-
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},36585:function(e,t,n){var r,o;e=n.nmd(e),function(){var i,a,s,l=[].slice;if(i=null!==e&&null!=e.exports&&!0,a=function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e){var t;if(null==e)throw new Error("Can't find moment");return(t=function(){function t(t,n,r,o){var i;null==o&&(o={}),"string"!=typeof r&&(o=null!=r?r:{},r=null),"boolean"==typeof o&&(o={allDay:o}),this._oStart=e(t,r,o.parseStrict),this._oEnd=e(n,r,o.parseStrict),this.allDay=null!=(i=o.allDay)&&i,this._mutated()}return t._extend=function(){var e,t,n,r,o,i;for(t=arguments[0],n=0,r=(i=2<=arguments.length?l.call(arguments,1):[]).length;n<r;n++)for(e in o=i[n])void 0!==o[e]&&(t[e]=o[e]);return t},t.prototype.start=function(){return this._start.clone()},t.prototype.end=function(){return this._end.clone()},t.prototype.isSame=function(e){return this._start.isSame(this._end,e)},t.prototype.length=function(e,t){return null==t&&(t=!1),this._displayEnd.diff(this._start,e,t)},t.prototype.count=function(e){var t;return t=this.start().startOf(e),this.end().startOf(e).diff(t,e)+1},t.prototype.countInner=function(e){var t,n,r;return(r=(n=this._inner(e))[0])>=(t=n[1])?0:t.diff(r,e)},t.prototype.iterate=function(e,t,n){var r,o,i,a,s;return e=(i=this._prepIterateInputs(e,t,n))[0],t=i[1],n=i[2],a=this.start().startOf(t),r=this.end().startOf(t),this.allDay&&(r=r.add(1,"d")),s=this,o=function(){return!s.allDay&&a<=r&&(!n||!a.isSame(r)||s._end.hours()>n)||s.allDay&&a<r},this._iterateHelper(t,a,o,e)},t.prototype.iterateInner=function(e,t){var n,r,o,i,a;return e=(o=this._prepIterateInputs(e,t))[0],t=o[1],i=this._inner(t,e),a=i[0],n=i[1],r=function(){return a<n},this._iterateHelper(t,a,r,e)},t.prototype.humanizeLength=function(){return this.allDay?this.isSame("d")?"all day":this._start.from(this.end().add(1,"d"),!0):this._start.from(this._end,!0)},t.prototype.asDuration=function(t){var n;return n=this._end.diff(this._start),e.duration(n)},t.prototype.isPast=function(){return this._lastMilli<e()},t.prototype.isFuture=function(){return this._start>e()},t.prototype.isCurrent=function(){return!this.isPast()&&!this.isFuture()},t.prototype.contains=function(t){return e.isMoment(t)||(t=e(t)),this._start<=t&&this._lastMilli>=t},t.prototype.isEmpty=function(){return this._start.isSame(this._displayEnd)},t.prototype.overlaps=function(e){return this._displayEnd.isAfter(e._start)&&this._start.isBefore(e._displayEnd)},t.prototype.engulfs=function(e){return this._start<=e._start&&this._displayEnd>=e._displayEnd},t.prototype.union=function(e){var n;return n=this.allDay&&e.allDay,new t(this._start<e._start?this._start:e._start,this._lastMilli>e._lastMilli?n?this._end:this._displayEnd:n?e._end:e._displayEnd,n)},t.prototype.intersection=function(e){var n;return n=this.allDay&&e.allDay,new t(this._start>e._start?this._start:e._start,this._lastMilli<e._lastMilli?n?this._end:this._displayEnd:n?e._end:e._displayEnd,n)},t.prototype.xor=function(){var e,n,r,o,i,a,s,c,u,d,f,p,h,A,g,v,m;for(h=1<=arguments.length?l.call(arguments,0):[],f=0,v=null,g=[],e=function(){var e,t,n;for(n=[],e=0,t=h.length;e<t;e++)(d=h[e]).allDay&&n.push(d);return n}().length===h.length,n=[],r=i=0,c=(A=[this].concat(h)).length;i<c;r=++i)o=A[r],n.push({time:o._start,i:r,type:0}),n.push({time:o._displayEnd,i:r,type:1});for(a=0,u=(n=n.sort((function(e,t){return e.time-t.time}))).length;a<u;a++)1===(p=n[a]).type&&(f-=1),f===p.type&&(v=p.time),f===(p.type+1)%2&&(v&&((s=g[g.length-1])&&s._end.isSame(v)?(s._oEnd=p.time,s._mutated()):(m=new t(v,e?p.time.clone().subtract(1,"d"):p.time,e)).isEmpty()||g.push(m)),v=null),0===p.type&&(f+=1);return g},t.prototype.difference=function(){var e,t,n,r,o,i,a;for(n=1<=arguments.length?l.call(arguments,0):[],o=[],e=0,t=(r=this.xor.apply(this,n).map((a=this,function(e){return a.intersection(e)}))).length;e<t;e++)!(i=r[e]).isEmpty()&&i.isValid()&&o.push(i);return o},t.prototype.split=function(){var t,n,r,o,i,s,c,u,d,f;if(t=1<=arguments.length?l.call(arguments,0):[],r=c=this.start(),e.isDuration(t[0])?n=t[0]:!e.isMoment(t[0])&&!a(t[0])&&"object"==typeof t[0]||"number"==typeof t[0]&&"string"==typeof t[1]?n=e.duration(t[0],t[1]):d=a(t[0])?t[0]:t,d&&(d=function(){var t,n,r;for(r=[],t=0,n=d.length;t<n;t++)u=d[t],r.push(e(u));return r}(),d=function(){var e,t,n;for(n=[],e=0,t=d.length;e<t;e++)(s=d[e]).isValid()&&s>=c&&n.push(s);return n}().sort((function(e,t){return e.valueOf()-t.valueOf()}))),n&&0===n.asMilliseconds()||d&&0===d.length)return[this];for(f=[],i=0,o=this._displayEnd;c<o&&(null==d||d[i]);)r=n?c.clone().add(n):d[i].clone(),r=e.min(o,r),c.isSame(r)||f.push(e.twix(c,r)),c=r,i+=1;return!r.isSame(this._displayEnd)&&d&&f.push(e.twix(r,this._displayEnd)),f},t.prototype.divide=function(e){return this.split(this.length()/e,"ms").slice(0,+(e-1)+1||9e9)},t.prototype.isValid=function(){return this._start.isValid()&&this._end.isValid()&&this._start<=this._displayEnd},t.prototype.equals=function(e){return e instanceof t&&this.allDay===e.allDay&&this._start.valueOf()===e._start.valueOf()&&this._end.valueOf()===e._end.valueOf()},t.prototype.toString=function(){return"{start: "+this._start.format()+", end: "+this._end.format()+", allDay: "+(this.allDay?"true":"false")+"}"},t.prototype.toArray=function(e,t,n){var r,o;for(r=this.iterate(e,t,n),o=[];r.hasNext();)o.push(r.next());return o},t.prototype.simpleFormat=function(e,n){var r,o;return r={allDay:"(all day)",template:t.formatTemplate},t._extend(r,n||{}),o=r.template(this._start.format(e),this._end.format(e)),this.allDay&&r.allDay&&(o+=" "+r.allDay),o},t.prototype.format=function(n){var r,o,i,a,s,l,c,u,d,f,p,h,A,g,v,m,y,C,b;if(this.isEmpty())return"";for(h=this._start.localeData()._longDateFormat.LT[0],v={groupMeridiems:!0,spaceBeforeMeridiem:!0,spaceBeforeMonth:!0,spaceBeforeDay:!0,showDayOfWeek:!1,showYearFirst:!1,hideTime:!1,hideYear:!1,implicitMinutes:!0,implicitDate:!1,implicitYear:!0,yearFormat:"YYYY",monthFormat:"MMM",weekdayFormat:"ddd",dayFormat:"D",meridiemFormat:"A",hourFormat:h,minuteFormat:"mm",allDay:"all day",explicitAllDay:!1,lastNightEndsAt:0,template:t.formatTemplate},t._extend(v,n||{}),l=[],g=v.hourFormat&&"h"===v.hourFormat[0],p=this._start.localeData()._longDateFormat.L,r=p.indexOf("M")<p.indexOf("D"),u=v.lastNightEndsAt>0&&!this.allDay&&this.end().startOf("d").valueOf()===this.start().add(1,"d").startOf("d").valueOf()&&this._start.hours()>12&&this._end.hours()<v.lastNightEndsAt,A=!(v.hideDate||v.implicitDate&&this.start().startOf("d").valueOf()===e().startOf("d").valueOf()&&(this.isSame("d")||u)),o=!(this.allDay||v.hideTime),this.allDay&&this.isSame("d")&&(v.implicitDate||v.explicitAllDay)&&l.push({name:"all day simple",fn:function(){return v.allDay},pre:" ",slot:0}),!A||v.hideYear||v.implicitYear&&this._start.year()===e().year()&&this.isSame("y")||l.push({name:"year",fn:function(e){return e.format(v.yearFormat)},pre:r?", ":" ",slot:v.showYearFirst?-1:4}),o&&A&&l.push({name:"month-date",fn:function(e){var t;return t=r?v.monthFormat+" "+v.dayFormat:v.dayFormat+" "+v.monthFormat,e.format(t)},ignoreEnd:function(){return u},pre:" ",slot:2}),!o&&A&&l.push({name:"month",fn:function(e){return e.format(v.monthFormat)},pre:v.spaceBeforeMonth?" ":"",slot:r?2:3}),!o&&A&&l.push({name:"date",fn:function(e){return e.format(v.dayFormat)},pre:v.spaceBeforeDay?" ":"",slot:r?3:2}),A&&v.showDayOfWeek&&l.push({name:"day of week",fn:function(e){return e.format(v.weekdayFormat)},pre:" ",slot:1}),v.groupMeridiems&&g&&!this.allDay&&!v.hideTime&&l.push({name:"meridiem",fn:function(e){return e.format(v.meridiemFormat)},slot:6,pre:v.spaceBeforeMeridiem?" ":""}),this.allDay||v.hideTime||l.push({name:"time",fn:function(e){var t;return t=0===e.minutes()&&v.implicitMinutes&&g?e.format(v.hourFormat):e.format(v.hourFormat+":"+v.minuteFormat),!v.groupMeridiems&&g&&(v.spaceBeforeMeridiem&&(t+=" "),t+=e.format(v.meridiemFormat)),t},slot:5,pre:", "}),y=[],a=[],i=[],C=!0,b=this,m=function(e){var t,n,r;return r=e.fn(b._start),t=e.ignoreEnd&&e.ignoreEnd()?r:e.fn(b._end),n={format:e,value:function(){return r}},t===r&&C?i.push(n):(C&&(C=!1,i.push({format:{slot:e.slot,pre:""},value:function(){return v.template(s(y),s(a,!0).trim())}})),y.push(n),a.push({format:e,value:function(){return t}}))},d=0,f=l.length;d<f;d++)m(l[d]);return c=!0,(s=function(e,t){var n,r,o,i,a,s;for(o=!0,s="",n=0,r=(i=e.sort((function(e,t){return e.format.slot-t.format.slot}))).length;n<r;n++)a=i[n],c||(s+=o&&t?" ":a.format.pre),s+=a.value(),c=!1,o=!1;return s})(i)},t.prototype._iterateHelper=function(e,t,n,r){return{next:function(){var o;return n()?(o=t.clone(),t.add(r,e),o):null},hasNext:n}},t.prototype._prepIterateInputs=function(){var t,n,r,o,i,a;return"number"==typeof(t=1<=arguments.length?l.call(arguments,0):[])[0]?t:("string"==typeof t[0]&&(o=t.shift(),n=null!=(i=t.pop())?i:1,t.length&&(r=null!=(a=t[0])&&a)),e.isDuration(t[0])&&(o="ms",n=t[0].as(o)),[n,o,r])},t.prototype._inner=function(e,t){var n,r,o;return null==e&&(e="ms"),null==t&&(t=1),o=this.start(),n=this._displayEnd.clone(),o>o.clone().startOf(e)&&o.startOf(e).add(t,e),n<n.clone().endOf(e)&&n.startOf(e),r=o.twix(n).asDuration(e).get(e)%t,n.subtract(r,e),[o,n]},t.prototype._mutated=function(){return this._start=this.allDay?this._oStart.clone().startOf("d"):this._oStart,this._lastMilli=this.allDay?this._oEnd.clone().endOf("d"):this._oEnd,this._end=this.allDay?this._oEnd.clone().startOf("d"):this._oEnd,this._displayEnd=this.allDay?this._end.clone().add(1,"d"):this._end},t}())._extend(e.locale(),{_twix:t.defaults}),t.formatTemplate=function(e,t){return e+" - "+t},e.twix=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(t,arguments,(function(){}))},e.fn.twix=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(t,[this].concat(l.call(arguments)),(function(){}))},e.fn.forDuration=function(e,n){return new t(this,this.clone().add(e),n)},e.duration.fn&&(e.duration.fn.afterMoment=function(n,r){return new t(n,e(n).clone().add(this),r)},e.duration.fn.beforeMoment=function(n,r){return new t(e(n).clone().subtract(this),n,r)}),e.twixClass=t,t},i)return e.exports=s(n(30381));r=[n(30381)],void 0===(o=function(e){return s(e)}.apply(t,r))||(e.exports=o),this.moment?this.Twix=s(this.moment):"undefined"!=typeof moment&&null!==moment&&(this.Twix=s(moment))}.call(this)}}]);
|
|
45
|
+
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},36585:function(e,t,n){var r,o;e=n.nmd(e),function(){var i,a,s,l=[].slice;if(i=null!==e&&null!=e.exports&&!0,a=function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e){var t;if(null==e)throw new Error("Can't find moment");return(t=function(){function t(t,n,r,o){var i;null==o&&(o={}),"string"!=typeof r&&(o=null!=r?r:{},r=null),"boolean"==typeof o&&(o={allDay:o}),this._oStart=e(t,r,o.parseStrict),this._oEnd=e(n,r,o.parseStrict),this.allDay=null!=(i=o.allDay)&&i,this._mutated()}return t._extend=function(){var e,t,n,r,o,i;for(t=arguments[0],n=0,r=(i=2<=arguments.length?l.call(arguments,1):[]).length;n<r;n++)for(e in o=i[n])void 0!==o[e]&&(t[e]=o[e]);return t},t.prototype.start=function(){return this._start.clone()},t.prototype.end=function(){return this._end.clone()},t.prototype.isSame=function(e){return this._start.isSame(this._end,e)},t.prototype.length=function(e,t){return null==t&&(t=!1),this._displayEnd.diff(this._start,e,t)},t.prototype.count=function(e){var t;return t=this.start().startOf(e),this.end().startOf(e).diff(t,e)+1},t.prototype.countInner=function(e){var t,n,r;return(r=(n=this._inner(e))[0])>=(t=n[1])?0:t.diff(r,e)},t.prototype.iterate=function(e,t,n){var r,o,i,a,s;return e=(i=this._prepIterateInputs(e,t,n))[0],t=i[1],n=i[2],a=this.start().startOf(t),r=this.end().startOf(t),this.allDay&&(r=r.add(1,"d")),s=this,o=function(){return!s.allDay&&a<=r&&(!n||!a.isSame(r)||s._end.hours()>n)||s.allDay&&a<r},this._iterateHelper(t,a,o,e)},t.prototype.iterateInner=function(e,t){var n,r,o,i,a;return e=(o=this._prepIterateInputs(e,t))[0],t=o[1],i=this._inner(t,e),a=i[0],n=i[1],r=function(){return a<n},this._iterateHelper(t,a,r,e)},t.prototype.humanizeLength=function(){return this.allDay?this.isSame("d")?"all day":this._start.from(this.end().add(1,"d"),!0):this._start.from(this._end,!0)},t.prototype.asDuration=function(t){var n;return n=this._end.diff(this._start),e.duration(n)},t.prototype.isPast=function(){return this._lastMilli<e()},t.prototype.isFuture=function(){return this._start>e()},t.prototype.isCurrent=function(){return!this.isPast()&&!this.isFuture()},t.prototype.contains=function(t){return e.isMoment(t)||(t=e(t)),this._start<=t&&this._lastMilli>=t},t.prototype.isEmpty=function(){return this._start.isSame(this._displayEnd)},t.prototype.overlaps=function(e){return this._displayEnd.isAfter(e._start)&&this._start.isBefore(e._displayEnd)},t.prototype.engulfs=function(e){return this._start<=e._start&&this._displayEnd>=e._displayEnd},t.prototype.union=function(e){var n;return n=this.allDay&&e.allDay,new t(this._start<e._start?this._start:e._start,this._lastMilli>e._lastMilli?n?this._end:this._displayEnd:n?e._end:e._displayEnd,n)},t.prototype.intersection=function(e){var n;return n=this.allDay&&e.allDay,new t(this._start>e._start?this._start:e._start,this._lastMilli<e._lastMilli?n?this._end:this._displayEnd:n?e._end:e._displayEnd,n)},t.prototype.xor=function(){var e,n,r,o,i,a,s,c,u,d,f,p,h,A,g,v,m;for(h=1<=arguments.length?l.call(arguments,0):[],f=0,v=null,g=[],e=function(){var e,t,n;for(n=[],e=0,t=h.length;e<t;e++)(d=h[e]).allDay&&n.push(d);return n}().length===h.length,n=[],r=i=0,c=(A=[this].concat(h)).length;i<c;r=++i)o=A[r],n.push({time:o._start,i:r,type:0}),n.push({time:o._displayEnd,i:r,type:1});for(a=0,u=(n=n.sort((function(e,t){return e.time-t.time}))).length;a<u;a++)1===(p=n[a]).type&&(f-=1),f===p.type&&(v=p.time),f===(p.type+1)%2&&(v&&((s=g[g.length-1])&&s._end.isSame(v)?(s._oEnd=p.time,s._mutated()):(m=new t(v,e?p.time.clone().subtract(1,"d"):p.time,e)).isEmpty()||g.push(m)),v=null),0===p.type&&(f+=1);return g},t.prototype.difference=function(){var e,t,n,r,o,i,a;for(n=1<=arguments.length?l.call(arguments,0):[],o=[],e=0,t=(r=this.xor.apply(this,n).map((a=this,function(e){return a.intersection(e)}))).length;e<t;e++)!(i=r[e]).isEmpty()&&i.isValid()&&o.push(i);return o},t.prototype.split=function(){var t,n,r,o,i,s,c,u,d,f;if(t=1<=arguments.length?l.call(arguments,0):[],r=c=this.start(),e.isDuration(t[0])?n=t[0]:!e.isMoment(t[0])&&!a(t[0])&&"object"==typeof t[0]||"number"==typeof t[0]&&"string"==typeof t[1]?n=e.duration(t[0],t[1]):d=a(t[0])?t[0]:t,d&&(d=function(){var t,n,r;for(r=[],t=0,n=d.length;t<n;t++)u=d[t],r.push(e(u));return r}(),d=function(){var e,t,n;for(n=[],e=0,t=d.length;e<t;e++)(s=d[e]).isValid()&&s>=c&&n.push(s);return n}().sort((function(e,t){return e.valueOf()-t.valueOf()}))),n&&0===n.asMilliseconds()||d&&0===d.length)return[this];for(f=[],i=0,o=this._displayEnd;c<o&&(null==d||d[i]);)r=n?c.clone().add(n):d[i].clone(),r=e.min(o,r),c.isSame(r)||f.push(e.twix(c,r)),c=r,i+=1;return!r.isSame(this._displayEnd)&&d&&f.push(e.twix(r,this._displayEnd)),f},t.prototype.divide=function(e){return this.split(this.length()/e,"ms").slice(0,+(e-1)+1||9e9)},t.prototype.isValid=function(){return this._start.isValid()&&this._end.isValid()&&this._start<=this._displayEnd},t.prototype.equals=function(e){return e instanceof t&&this.allDay===e.allDay&&this._start.valueOf()===e._start.valueOf()&&this._end.valueOf()===e._end.valueOf()},t.prototype.toString=function(){return"{start: "+this._start.format()+", end: "+this._end.format()+", allDay: "+(this.allDay?"true":"false")+"}"},t.prototype.toArray=function(e,t,n){var r,o;for(r=this.iterate(e,t,n),o=[];r.hasNext();)o.push(r.next());return o},t.prototype.simpleFormat=function(e,n){var r,o;return r={allDay:"(all day)",template:t.formatTemplate},t._extend(r,n||{}),o=r.template(this._start.format(e),this._end.format(e)),this.allDay&&r.allDay&&(o+=" "+r.allDay),o},t.prototype.format=function(n){var r,o,i,a,s,l,c,u,d,f,p,h,A,g,v,m,y,C,b;if(this.isEmpty())return"";for(h=this._start.localeData()._longDateFormat.LT[0],v={groupMeridiems:!0,spaceBeforeMeridiem:!0,spaceBeforeMonth:!0,spaceBeforeDay:!0,showDayOfWeek:!1,showYearFirst:!1,hideTime:!1,hideYear:!1,implicitMinutes:!0,implicitDate:!1,implicitYear:!0,yearFormat:"YYYY",monthFormat:"MMM",weekdayFormat:"ddd",dayFormat:"D",meridiemFormat:"A",hourFormat:h,minuteFormat:"mm",allDay:"all day",explicitAllDay:!1,lastNightEndsAt:0,template:t.formatTemplate},t._extend(v,n||{}),l=[],g=v.hourFormat&&"h"===v.hourFormat[0],p=this._start.localeData()._longDateFormat.L,r=p.indexOf("M")<p.indexOf("D"),u=v.lastNightEndsAt>0&&!this.allDay&&this.end().startOf("d").valueOf()===this.start().add(1,"d").startOf("d").valueOf()&&this._start.hours()>12&&this._end.hours()<v.lastNightEndsAt,A=!(v.hideDate||v.implicitDate&&this.start().startOf("d").valueOf()===e().startOf("d").valueOf()&&(this.isSame("d")||u)),o=!(this.allDay||v.hideTime),this.allDay&&this.isSame("d")&&(v.implicitDate||v.explicitAllDay)&&l.push({name:"all day simple",fn:function(){return v.allDay},pre:" ",slot:0}),!A||v.hideYear||v.implicitYear&&this._start.year()===e().year()&&this.isSame("y")||l.push({name:"year",fn:function(e){return e.format(v.yearFormat)},pre:r?", ":" ",slot:v.showYearFirst?-1:4}),o&&A&&l.push({name:"month-date",fn:function(e){var t;return t=r?v.monthFormat+" "+v.dayFormat:v.dayFormat+" "+v.monthFormat,e.format(t)},ignoreEnd:function(){return u},pre:" ",slot:2}),!o&&A&&l.push({name:"month",fn:function(e){return e.format(v.monthFormat)},pre:v.spaceBeforeMonth?" ":"",slot:r?2:3}),!o&&A&&l.push({name:"date",fn:function(e){return e.format(v.dayFormat)},pre:v.spaceBeforeDay?" ":"",slot:r?3:2}),A&&v.showDayOfWeek&&l.push({name:"day of week",fn:function(e){return e.format(v.weekdayFormat)},pre:" ",slot:1}),v.groupMeridiems&&g&&!this.allDay&&!v.hideTime&&l.push({name:"meridiem",fn:function(e){return e.format(v.meridiemFormat)},slot:6,pre:v.spaceBeforeMeridiem?" ":""}),this.allDay||v.hideTime||l.push({name:"time",fn:function(e){var t;return t=0===e.minutes()&&v.implicitMinutes&&g?e.format(v.hourFormat):e.format(v.hourFormat+":"+v.minuteFormat),!v.groupMeridiems&&g&&(v.spaceBeforeMeridiem&&(t+=" "),t+=e.format(v.meridiemFormat)),t},slot:5,pre:", "}),y=[],a=[],i=[],C=!0,b=this,m=function(e){var t,n,r;return r=e.fn(b._start),t=e.ignoreEnd&&e.ignoreEnd()?r:e.fn(b._end),n={format:e,value:function(){return r}},t===r&&C?i.push(n):(C&&(C=!1,i.push({format:{slot:e.slot,pre:""},value:function(){return v.template(s(y),s(a,!0).trim())}})),y.push(n),a.push({format:e,value:function(){return t}}))},d=0,f=l.length;d<f;d++)m(l[d]);return c=!0,(s=function(e,t){var n,r,o,i,a,s;for(o=!0,s="",n=0,r=(i=e.sort((function(e,t){return e.format.slot-t.format.slot}))).length;n<r;n++)a=i[n],c||(s+=o&&t?" ":a.format.pre),s+=a.value(),c=!1,o=!1;return s})(i)},t.prototype._iterateHelper=function(e,t,n,r){return{next:function(){var o;return n()?(o=t.clone(),t.add(r,e),o):null},hasNext:n}},t.prototype._prepIterateInputs=function(){var t,n,r,o,i,a;return"number"==typeof(t=1<=arguments.length?l.call(arguments,0):[])[0]?t:("string"==typeof t[0]&&(o=t.shift(),n=null!=(i=t.pop())?i:1,t.length&&(r=null!=(a=t[0])&&a)),e.isDuration(t[0])&&(o="ms",n=t[0].as(o)),[n,o,r])},t.prototype._inner=function(e,t){var n,r,o;return null==e&&(e="ms"),null==t&&(t=1),o=this.start(),n=this._displayEnd.clone(),o>o.clone().startOf(e)&&o.startOf(e).add(t,e),n<n.clone().endOf(e)&&n.startOf(e),r=o.twix(n).asDuration(e).get(e)%t,n.subtract(r,e),[o,n]},t.prototype._mutated=function(){return this._start=this.allDay?this._oStart.clone().startOf("d"):this._oStart,this._lastMilli=this.allDay?this._oEnd.clone().endOf("d"):this._oEnd,this._end=this.allDay?this._oEnd.clone().startOf("d"):this._oEnd,this._displayEnd=this.allDay?this._end.clone().add(1,"d"):this._end},t}())._extend(e.locale(),{_twix:t.defaults}),t.formatTemplate=function(e,t){return e+" - "+t},e.twix=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(t,arguments,(function(){}))},e.fn.twix=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(t,[this].concat(l.call(arguments)),(function(){}))},e.fn.forDuration=function(e,n){return new t(this,this.clone().add(e),n)},e.duration.fn&&(e.duration.fn.afterMoment=function(n,r){return new t(n,e(n).clone().add(this),r)},e.duration.fn.beforeMoment=function(n,r){return new t(e(n).clone().subtract(this),n,r)}),e.twixClass=t,t},i)return e.exports=s(n(30381));r=[n(30381)],void 0===(o=function(e){return s(e)}.apply(t,r))||(e.exports=o),this.moment?this.Twix=s(this.moment):"undefined"!=typeof moment&&null!==moment&&(this.Twix=s(moment))}.call(this)}}]);
|
|
46
|
+
//# sourceMappingURL=chunk-413.a87d7653543f87fb986b.js.map
|