@daypilot/daypilot-lite-react 5.7.0-sandbox.821 → 5.7.0-sandbox.822

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.
@@ -3,7 +3,7 @@ DayPilot Lite
3
3
  Copyright (c) 2005 - 2026 Annpoint s.r.o.
4
4
  https://www.daypilot.org/
5
5
  Licensed under Apache Software License 2.0
6
- Version: 2026.2.821-lite
6
+ Version: 2026.2.822-lite
7
7
  */
8
8
  type GlobalDate = Date;
9
9
 
@@ -3,7 +3,7 @@ DayPilot Lite
3
3
  Copyright (c) 2005 - 2026 Annpoint s.r.o.
4
4
  https://www.daypilot.org/
5
5
  Licensed under Apache Software License 2.0
6
- Version: 2026.2.821-lite
6
+ Version: 2026.2.822-lite
7
7
  */
8
8
  "use strict";var DayPilot={Global:{}};!function(DayPilot){function e(e,t){return DayPilot.isArray(t)||(t=e.areas,t||(e.cache?t=e.cache.areas:e.data&&(t=e.data.areas))),t}function t(e){var t=DayPilot.Date.Cache.Ticks;if(t[e])return DayPilot.Stats.cacheHitsTicks+=1,t[e];var n,a=new Date(e),i=a.getUTCMilliseconds();n=0===i?"":i<10?".00"+i:i<100?".0"+i:"."+i;var r=a.getUTCSeconds();r<10&&(r="0"+r);var o=a.getUTCMinutes();o<10&&(o="0"+o);var s=a.getUTCHours();s<10&&(s="0"+s);var l=a.getUTCDate();l<10&&(l="0"+l);var d=a.getUTCMonth()+1;d<10&&(d="0"+d);var c=a.getUTCFullYear();if(c<=0)throw"The minimum year supported is 1.";c<10?c="000"+c:c<100?c="00"+c:c<1e3&&(c="0"+c);var u=c+"-"+d+"-"+l+"T"+s+":"+o+":"+r+n;return t[e]=u,u}function n(e,t){"string"==typeof t&&(t=DayPilot.Locale.find(t)),t=t||DayPilot.Locale.US;var n=[{"seq":"yyyy","expr":"[0-9]{4,4}","str":function(e){return e.getYear()}},{"seq":"yy","expr":"[0-9]{2,2}","str":function(e){return e.getYear()%100},"transform":function(e){return parseInt(e)+2e3}},{"seq":"mm","expr":"[0-9]{2,2}","str":function(e){var t=e.getMinutes();return t<10?"0"+t:t}},{"seq":"m","expr":"[0-9]{1,2}","str":function(e){return e.getMinutes()}},{"seq":"HH","expr":"[0-9]{2,2}","str":function(e){var t=e.getHours();return t<10?"0"+t:t}},{"seq":"H","expr":"[0-9]{1,2}","str":function(e){return e.getHours()}},{"seq":"hh","expr":"[0-9]{2,2}","str":function(e){var t=e.getHours();t%=12,0===t&&(t=12);var n=t;return n<10?"0"+n:n}},{"seq":"h","expr":"[0-9]{1,2}","str":function(e){var t=e.getHours();return t%=12,0===t&&(t=12),t}},{"seq":"ss","expr":"[0-9]{2,2}","str":function(e){var t=e.getSeconds();return t<10?"0"+t:t}},{"seq":"s","expr":"[0-9]{1,2}","str":function(e){return e.getSeconds()}},{"seq":"MMMM","expr":"[^\\s0-9]*","str":function(e){return t.monthNames[e.getMonth()]},"transform":function(e){var n=DayPilot.indexOf(t.monthNames,e,a);return n<0?null:n+1}},{"seq":"MMM","expr":"[^\\s0-9]*","str":function(e){return t.monthNamesShort[e.getMonth()]},"transform":function(e){var n=DayPilot.indexOf(t.monthNamesShort,e,a);return n<0?null:n+1}},{"seq":"MM","expr":"[0-9]{2,2}","str":function(e){var t=e.getMonth()+1;return t<10?"0"+t:t}},{"seq":"M","expr":"[0-9]{1,2}","str":function(e){return e.getMonth()+1}},{"seq":"dddd","expr":"[^\\s0-9]*","str":function(e){return t.dayNames[e.getDayOfWeek()]}},{"seq":"ddd","expr":"[^\\s0-9]*","str":function(e){return t.dayNamesShort[e.getDayOfWeek()]}},{"seq":"dd","expr":"[0-9]{2,2}","str":function(e){var t=e.getDay();return t<10?"0"+t:t}},{"seq":"%d","expr":"[0-9]{1,2}","str":function(e){return e.getDay()}},{"seq":"d","expr":"[0-9]{1,2}","str":function(e){return e.getDay()}},{"seq":"tt","expr":"(AM|PM|am|pm)","str":function(e){return e.getHours()<12?"AM":"PM"},"transform":function(e){return e.toUpperCase()}}],i=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};this.init=function(){this.year=this.findSequence("yyyy")||this.findSequence("yy"),this.month=this.findSequence("MMMM")||this.findSequence("MMM")||this.findSequence("MM")||this.findSequence("M"),this.day=this.findSequence("dd")||this.findSequence("d"),this.hours=this.findSequence("HH")||this.findSequence("H"),this.minutes=this.findSequence("mm")||this.findSequence("m"),this.seconds=this.findSequence("ss")||this.findSequence("s"),this.ampm=this.findSequence("tt"),this.hours12=this.findSequence("hh")||this.findSequence("h")},this.findSequence=function(t){function a(e){return parseInt(e)}return e.indexOf(t)===-1?null:{"findValue":function(r){for(var o=i(e),s=null,l=0;l<n.length;l++){var d=t===n[l].seq,c=n[l].expr;d&&(c="("+c+")",s=n[l].transform),o=o.replace(n[l].seq,c)}o="^"+o+"$";try{var u=new RegExp(o),h=u.exec(r);return h?(s=s||a)(h[1]):null}catch(e){throw"unable to create regex from: "+o}}}},this.print=function(t){for(var a=function(e){for(var t=0;t<n.length;t++)if(n[t]&&n[t].seq===e)return n[t];return null},i=e.length<=0,r=0,o=[];!i;){var s=e.substring(r),l=/%?(.)\1*/.exec(s);if(l&&l.length>0){var d=l[0],c=a(d);c?o.push(c):o.push(d),r+=d.length,i=e.length<=r}else i=!0}for(var u=0;u<o.length;u++){var h=o[u];"string"!=typeof h&&(o[u]=h.str(t))}return o.join("")},this.parse=function(e){var t=this.year.findValue(e);if(!t)return null;var n=this.month.findValue(e);if(DayPilot.Util.isNullOrUndefined(n))return null;if(n>12||n<1)return null;var a=this.day.findValue(e),i=DayPilot.Date.fromYearMonthDay(t,n).daysInMonth();if(a<1||a>i)return null;var r=this.hours?this.hours.findValue(e):0,o=this.minutes?this.minutes.findValue(e):0,s=this.seconds?this.seconds.findValue(e):0,l=this.ampm?this.ampm.findValue(e):null;if(this.ampm&&this.hours12){var d=this.hours12.findValue(e);if(d<1||d>12)return null;r="PM"===l?12===d?12:d+12:12===d?0:d}if(r<0||r>23)return null;if(o<0||o>59)return null;if(s<0||s>59)return null;var c=new Date;return c.setUTCFullYear(t,n-1,a),c.setUTCHours(r),c.setUTCMinutes(o),c.setUTCSeconds(s),c.setUTCMilliseconds(0),new DayPilot.Date(c)},this.init()}function a(e,t){return!DayPilot.Util.isNullOrUndefined(e)&&(!DayPilot.Util.isNullOrUndefined(t)&&e.toLocaleLowerCase()===t.toLocaleLowerCase())}function i(e){e=Math.min(e,255),e=Math.max(e,0);var t=e.toString(16);return e<16?"0"+t:t}if("undefined"==typeof DayPilot.$){"undefined"==typeof DayPilot.Global&&(DayPilot.Global={}),DayPilot.$=function(e){return document.getElementById(e)},DayPilot.touch={},DayPilot.touch.start="touchstart",DayPilot.touch.move="touchmove",DayPilot.touch.end="touchend",DayPilot.mo3=function(e,t){var n=t.touches&&t.touches[0]?t.touches[0]:t;if(!e){return{x:void 0!==n.pageX?n.pageX:n.clientX+window.pageXOffset,y:void 0!==n.pageY?n.pageY:n.clientY+window.pageYOffset,shift:!!t.shiftKey,meta:!!t.metaKey,ctrl:!!t.ctrlKey,alt:!!t.altKey}}var a=e.getBoundingClientRect(),i=n.clientX-a.left,r=n.clientY-a.top;return i=Math.round(i),r=Math.round(r),{x:i,y:r,shift:!!t.shiftKey,meta:!!t.metaKey,ctrl:!!t.ctrlKey,alt:!!t.altKey}},DayPilot.browser={get ios(){var e,t;return"undefined"!=typeof navigator&&((null===(e=navigator.userAgent)||void 0===e?void 0:e.includes("iPad"))||(null===(t=navigator.userAgent)||void 0===t?void 0:t.includes("iPhone")))},get hover(){return!window.matchMedia("(any-hover: none)").matches}},DayPilot.debounce=function(e,t){var n;return function(){var a=this,i=arguments,r=function(){n=null,e.apply(a,i)};clearTimeout(n),n=setTimeout(r,t)}},DayPilot.page=function(e){var t=e.changedTouches&&e.changedTouches[0]?e.changedTouches[0]:e;return"undefined"!=typeof t.pageX?{x:t.pageX,y:t.pageY}:"undefined"!=typeof e.clientX&&document.body&&document.documentElement?{x:e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,y:e.clientY+document.body.scrollTop+document.documentElement.scrollTop}:null},DayPilot.abs=function(e,t){if(!e)return null;if(e.getBoundingClientRect){var n=DayPilot.absBoundingClientBased(e);if(t){var a=DayPilot.absOffsetBased(e,!1),i=DayPilot.absOffsetBased(e,!0);n.x+=i.x-a.x,n.y+=i.y-a.y,n.w=i.w,n.h=i.h}return n}return DayPilot.absOffsetBased(e,t)},DayPilot.absBoundingClientBased=function(e){var t=e.getBoundingClientRect();return{x:t.left+window.pageXOffset,y:t.top+window.pageYOffset,w:e.clientWidth,h:e.clientHeight,toString:function(){return"x:"+this.x+" y:"+this.y+" w:"+this.w+" h:"+this.h}}},DayPilot.absOffsetBased=function(e,t){for(var n={x:e.offsetLeft,y:e.offsetTop,w:e.clientWidth,h:e.clientHeight,toString:function(){return"x:"+this.x+" y:"+this.y+" w:"+this.w+" h:"+this.h}};e.offsetParent;)e=e.offsetParent,n.x-=e.scrollLeft,n.y-=e.scrollTop,t&&(n.x<0&&(n.w+=n.x,n.x=0),n.y<0&&(n.h+=n.y,n.y=0),e.scrollLeft>0&&n.x+n.w>e.clientWidth&&(n.w-=n.x+n.w-e.clientWidth),e.scrollTop&&n.y+n.h>e.clientHeight&&(n.h-=n.y+n.h-e.clientHeight)),n.x+=e.offsetLeft,n.y+=e.offsetTop;var a=DayPilot.pageOffset();return n.x+=a.x,n.y+=a.y,n},DayPilot.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},DayPilot.distance=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},DayPilot.sheet=function(){function e(){for(var e=document.querySelectorAll("style[nonce]"),t=0;t<e.length;t++){var n=e[t];if(n.nonce)return n.nonce}if(document.currentScript&&document.currentScript.nonce)return document.currentScript.nonce;for(var a=document.querySelectorAll("script[nonce]"),i=0;i<a.length;i++){var r=a[i];if(r.nonce)return r.nonce}return""}var t,n,a={add:function(){},commit:function(){},print:function(){return""}};if("undefined"!=typeof globalThis&&globalThis.c)return a;if("undefined"==typeof window)return a;if("disable"===(null===(n=null===(t=window.document.querySelector('meta[name="daypilot:css"]'))||void 0===t?void 0:t.content)||void 0===n?void 0:n.toLowerCase()))return a;var i=document.createElement("style");i.nonce=e(),i.styleSheet||i.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(i);var r=!!i.styleSheet,o={};return o.rules=[],o.commit=function(){r&&(i.styleSheet.cssText=this.rules.join("\n"))},o.add=function(e,t,n){return r?void this.rules.push(e+"{"+t+"}"):void(i.sheet.insertRule?("undefined"==typeof n&&(n=i.sheet.cssRules.length),i.sheet.insertRule(e+"{"+t+"}",n)):i.sheet.addRule&&i.sheet.addRule(e,t,n))},o},DayPilot.gs=function(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)||""},DayPilot.StyleReader=function(e){this.get=function(t){return e?DayPilot.gs(e,t):null},this.getPx=function(e){var t=this.get(e);return t.indexOf("px")===-1?void 0:parseInt(t,10)}},function(){if(!DayPilot.Global.defaultCss){var e=DayPilot.sheet();e.add(".menu_default_main","position: relative;border-radius: 4px;box-shadow: 0 0px 10px 0px #00000022;user-select:none;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #cccccc;background-color: white;padding: 0px;cursor: default;"),e.add(".menu_default_main:before","content: '';position: absolute;top: 0;bottom: 0;left: 28px;border-left: 1px solid #d9d9d9;pointer-events: none;"),e.add(".menu_default_main.menu_default_direction_rtl:before","left: auto;right: 28px;border-left: none;border-right: 1px solid #d9d9d9;"),e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after","box-sizing: content-box;"),e.add(".menu_default_title","background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"),e.add(".menu_default_main.menu_default_direction_rtl .menu_default_title","padding: 4px 37px 4px 4px;"),e.add(".menu_default_main a","padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"),e.add(".menu_default_main.menu_default_direction_rtl a","padding: 2px 35px 2px 2px;"),e.add(".menu_default_main.menu_default_withchildren a","padding: 2px 35px 2px 35px;"),e.add(".menu_default_main a img","margin-left: 6px;margin-top: 2px;"),e.add(".menu_default_main.menu_default_direction_rtl a img","margin-left: 0px;margin-right: 6px;"),e.add(".menu_default_item_text","display: block;height: 20px;line-height: 20px;overflow:hidden;padding-left: 2px;padding-right: 20px;white-space: nowrap;"),e.add(".menu_default_main.menu_default_direction_rtl .menu_default_item_text","padding-left: 20px;padding-right: 2px;"),e.add(".menu_default_main a:hover","background-color: #f3f3f3;"),e.add(".menu_default_main div div","border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"),e.add(".menu_default_main.menu_default_direction_rtl div div","margin-left: 0px;margin-right: 28px;"),e.add(".menu_default_main a.menu_default_item_disabled","color: #ccc"),e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active","background-color: #f3f3f3;"),e.add(".menu_default_item_haschildren a:before","content: '';border-width: 5px;border-color: transparent transparent transparent #666;border-style: solid;width: 0px;height: 0px;position: absolute;right: 5px;margin-top: 5px;"),e.add(".menu_default_main.menu_default_direction_rtl .menu_default_item_haschildren a:before","border-color: transparent #666 transparent transparent;right: auto;left: 5px;"),e.add(".menu_default_item_icon","position: absolute;top: 0px;left: 0px;padding: 2px 2px 2px 8px;"),e.add(".menu_default_main.menu_default_direction_rtl .menu_default_item_icon","left: auto;right: 0px;padding: 2px 8px 2px 2px;"),e.add(".menu_default_item a i","height: 20px;line-height: 20px;"),e.add(".menu_default_item .menu_default_item_symbol","width: 18px;height: 18px;color: #999;margin-left: 6px;margin-top: 2px;"),e.add(".menu_default_main.menu_default_direction_rtl .menu_default_item_symbol","margin-left: 0px;margin-right: 6px;"),e.add(".menubar_default_main","border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"),e.add(".menubar_default_item","display: inline-block; padding: 6px 10px; cursor: default;"),e.add(".menubar_default_item:hover","background-color: #f2f2f2;"),e.add(".menubar_default_item_active","background-color: #f2f2f2;"),e.add(".calendar_default_main","--dp-calendar-border-color: #c0c0c0;--dp-calendar-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-calendar-font-size: 13px;--dp-calendar-header-bg-color: #f3f3f3;--dp-calendar-header-color: #333;--dp-calendar-colheader-padding: 0px;--dp-calendar-rowheader-font-size: 16pt;--dp-calendar-rowheader-padding: 3px;--dp-calendar-cell-bg-color: #f9f9f9;--dp-calendar-cell-business-bg-color: #ffffff;--dp-calendar-cell-border-color: #ddd;--dp-calendar-colheader-horizontal-align: center;--dp-calendar-colheader-vertical-align: center;--dp-calendar-allday-event-color: #333;--dp-calendar-allday-event-border-color: #999;--dp-calendar-allday-event-border: 1px solid var(--dp-calendar-allday-event-border-color);--dp-calendar-allday-event-border-radius: 4px;--dp-calendar-allday-event-background: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color) 0%, var(--dp-calendar-allday-event-bg-bottom-color) 100%);--dp-calendar-allday-event-bg-top-color: #ffffff;--dp-calendar-allday-event-bg-bottom-color: #eeeeee;--dp-calendar-allday-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color-hover) 0%, var(--dp-calendar-allday-event-bg-bottom-color-hover) 100%);--dp-calendar-allday-event-bg-top-color-hover: #f8f8f8;--dp-calendar-allday-event-bg-bottom-color-hover: #e8e8e8;--dp-calendar-allday-event-box-shadow: none;--dp-calendar-allday-event-padding: 4px;--dp-calendar-allday-event-horizontal-align: flex-start;--dp-calendar-event-color: #333;--dp-calendar-event-border-color: #999;--dp-calendar-event-border: 1px solid var(--dp-calendar-event-border-color);--dp-calendar-event-border-radius: 4px;--dp-calendar-event-box-shadow: none;--dp-calendar-event-background: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color) 0%, var(--dp-calendar-event-bg-bottom-color) 100%);--dp-calendar-event-bg-top-color: #ffffff;--dp-calendar-event-bg-bottom-color: #eeeeee;--dp-calendar-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color-hover) 0%, var(--dp-calendar-event-bg-bottom-color-hover) 100%);--dp-calendar-event-bg-top-color-hover: #f8f8f8;--dp-calendar-event-bg-bottom-color-hover: #f1f1f1;--dp-calendar-event-bar-bg-color: #9dc8e8;--dp-calendar-event-bar-color: #208fe3;--dp-calendar-event-bar-width: 6px;--dp-calendar-event-bar-left: 0px;--dp-calendar-event-bar-bottom: 0px;--dp-calendar-event-bar-top: 0px;--dp-calendar-event-bar-display: block;--dp-calendar-event-padding: 2px;--dp-calendar-event-padding-left: 8px;--dp-calendar-message-bg-color: #ffa216;--dp-calendar-message-color: #ffffff;--dp-calendar-message-padding: 10px;--dp-calendar-message-opacity: 0.9;--dp-calendar-selected-event-bg-color: #ddd;--dp-calendar-shadow-color: #bbbbbb;--dp-calendar-shadow-border-color: #888888;--dp-calendar-forbidden-shadow-border-color: #cc0000;--dp-calendar-forbidden-shadow-bg-color: #cc4125;--dp-calendar-now-indicator-color: red;--dp-calendar-scroll-bg-color: #f3f3f3;"),e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after","box-sizing: content-box;"),e.add(".calendar_default_main","border:1px solid var(--dp-calendar-border-color); font-family:var(--dp-calendar-font-family); font-size:var(--dp-calendar-font-size);"),e.add(".calendar_default_rowheader_inner, .calendar_default_cornerright_inner, .calendar_default_corner_inner, .calendar_default_colheader_inner, .calendar_default_alldayheader_inner","color: var(--dp-calendar-header-color); background: var(--dp-calendar-header-bg-color);"),e.add(".calendar_default_colheader_back","background: var(--dp-calendar-header-bg-color); border-bottom: 1px solid red;"),e.add(".calendar_default_colheader_back_inner","position: absolute; inset: 0; border-bottom: 1px solid var(--dp-calendar-border-color);"),e.add(".calendar_default_cornerright_inner","position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-bottom: 1px solid var(--dp-calendar-border-color);"),e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner","border-right: 1px solid var(--dp-calendar-border-color);"),e.add(".calendar_default_rowheader_inner","font-size: var(--dp-calendar-rowheader-font-size); text-align: right; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); padding: var(--dp-calendar-rowheader-padding);"),e.add(".calendar_default_rowheader_simple .calendar_default_rowheader_inner","font-size: inherit; display: flex; align-items: center; justify-content: center; white-space: nowrap;"),e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner","border-right: none;"),e.add(".calendar_default_corner_inner","position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"),e.add(".calendar_default_direction_rtl .calendar_default_corner_inner","border-right: none;"),e.add(".calendar_default_rowheader_minutes","font-size: 10px; vertical-align: super; padding-left: 2px; padding-right: 2px;"),e.add(".calendar_default_colheader_inner","position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; padding: var(--dp-calendar-colheader-padding);border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); display: flex; align-items: var(--dp-calendar-colheader-vertical-align); justify-content: var(--dp-calendar-colheader-horizontal-align);"),e.add(".calendar_default_cell_inner","position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-cell-border-color); border-bottom: 1px solid var(--dp-calendar-cell-border-color); background: var(--dp-calendar-cell-bg-color);"),e.add(".calendar_default_cell_business .calendar_default_cell_inner","background: var(--dp-calendar-cell-business-bg-color);"),e.add(".calendar_default_alldayheader_inner","text-align: center; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"),e.add(".calendar_default_message","opacity: var(--dp-calendar-message-opacity); padding: var(--dp-calendar-message-padding); color: var(--dp-calendar-message-color); background: var(--dp-calendar-message-bg-color);"),e.add(".calendar_default_event_inner","border: var(--dp-calendar-event-border); border-radius: var(--dp-calendar-event-border-radius); background: var(--dp-calendar-event-background);"),e.add(".calendar_default_event:hover .calendar_default_event_inner","background: var(--dp-calendar-event-background-hover);"),e.add(".calendar_default_alldayevent","color: var(--dp-calendar-allday-event-color);box-shadow: var(--dp-calendar-allday-event-box-shadow); border-radius: var(--dp-calendar-allday-event-border-radius);"),e.add(".calendar_default_alldayevent_inner","border: var(--dp-calendar-allday-event-border); border-radius: var(--dp-calendar-allday-event-border-radius); background: var(--dp-calendar-allday-event-background);"),e.add(".calendar_default_alldayevent:hover .calendar_default_alldayevent_inner","background: var(--dp-calendar-allday-event-background-hover);"),e.add(".calendar_default_event_bar","display: var(--dp-calendar-event-bar-display); top: var(--dp-calendar-event-bar-top); bottom: var(--dp-calendar-event-bar-bottom); left: var(--dp-calendar-event-bar-left); width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"),e.add(".calendar_default_direction_rtl .calendar_default_event_bar","top: 0px; bottom: 0px; right: 0px; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"),e.add(".calendar_default_event_bar_inner","position: absolute; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-color);"),e.add(".calendar_default_selected .calendar_default_event_inner, .calendar_default_event:hover.calendar_default_selected .calendar_default_event_inner","background: var(--dp-calendar-selected-event-bg-color);"),e.add(".calendar_default_alldayevent_inner","position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; overflow: hidden; padding: var(--dp-calendar-allday-event-padding); margin-right: 0px; display: flex; align-items: center; justify-content: var(--dp-calendar-allday-event-horizontal-align);"),e.add(".calendar_default_event_withheader .calendar_default_event_inner","padding-top: 15px;"),e.add(".calendar_default_event","color: var(--dp-calendar-event-color); box-shadow: var(--dp-calendar-event-box-shadow); border-radius: var(--dp-calendar-event-border-radius); cursor: default;"),e.add(".calendar_default_event_inner","position: absolute; overflow: hidden; top: 0px; bottom: 0px; left: 0px; right: 0px; padding: var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding-left);"),e.add(".calendar_default_direction_rtl .calendar_default_event_inner","padding: 2px 8px 2px 2px;"),e.add(".calendar_default_shadow_inner","box-sizing: border-box; background-color: var(--dp-calendar-shadow-color); border: 1px solid var(--dp-calendar-shadow-border-color); border-radius: var(--dp-calendar-event-border-radius); opacity: 0.5; height: 100%;"),e.add(".calendar_default_shadow","box-shadow: 0 2px 5px rgba(0,0,0,0.2); border-radius: var(--dp-calendar-event-border-radius);"),e.add(".calendar_default_shadow_forbidden:after","content: ''; position: absolute; top: 5px; left: calc(50% - 10px); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain;"),e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner","border: 1px solid var(--dp-calendar-forbidden-shadow-border-color); background: var(--dp-calendar-forbidden-shadow-bg-color);"),e.add(".calendar_default_event_delete","opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"),e.add(".calendar_default_event_delete:hover","opacity: 0.7;"),e.add(".calendar_default_scroll_up","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"),e.add(".calendar_default_scroll_down","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"),e.add(".calendar_default_now","background-color: var(--dp-calendar-now-indicator-color);"),e.add(".calendar_default_now:before","content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent var(--dp-calendar-now-indicator-color); border-style: solid; width: 0px; height: 0px; position: absolute; -moz-transform: scale(.9999);"),e.add(".calendar_default_shadow_top","box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"),e.add(".calendar_default_shadow_bottom","box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"),e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top","background-color: gray; opacity: 0.2;"),e.add(".calendar_default_loading","background-color: orange; color: white; padding: 2px;"),e.add(".calendar_default_scroll","background-color: var(--dp-calendar-header-bg-color);"),e.add(".calendar_default_event_moving_source","opacity: 0.5;"),e.add(".calendar_default_colmove_handle","background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"),e.add(".calendar_default_colheader:hover .calendar_default_colheader_splitter","background-color: #c0c0c0;"),e.add(".calendar_default_colmove_source","background-color: black; opacity: 0.5;"),e.add(".calendar_default_colmove_position_before","box-sizing: border-box; border-left: 2px solid #999999;"),e.add(".calendar_default_colmove_position_before:before","content: ''; border-width: 6px; border-color: transparent #999999 transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"),e.add(".calendar_default_colmove_position_after","box-sizing: border-box; border-right: 2px solid #999999;"),e.add(".calendar_default_colmove_position_after:before","content: ''; border-width: 6px; border-color: transparent transparent transparent #999999; border-style: solid; width: 0px; height: 0px; position: absolute;"),e.add(".calendar_default_colmove_position_child","box-sizing: border-box; border-bottom: 2px solid #999999;"),e.add(".calendar_default_colmove_position_child:before","content: ''; border-width: 6px; border-color: #999999 transparent transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"),e.add(".calendar_default_colmove_position_forbidden","border-top: 2px solid red;"),e.add(".calendar_default_colheader .calendar_default_colheader_splitter:hover","background-color: #999999;"),e.add(".calendar_default_block","background-color: #808080; opacity: 0.5;"),e.add(".month_default_main","--dp-month-border-color: #c0c0c0;--dp-month-font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;--dp-month-font-size: 13px;--dp-month-cell-border-color: #ddd;--dp-month-cell-bg-color: #f9f9f9;--dp-month-cell-business-bg-color: #ffffff;--dp-month-event-color: #333;--dp-month-event-border-color: #999;--dp-month-event-border: 1px solid var(--dp-month-event-border-color);--dp-month-event-background: linear-gradient(to bottom, var(--dp-month-event-bg-top-color) 0%, var(--dp-month-event-bg-bottom-color) 100%);--dp-month-event-bg-top-color: #ffffff;--dp-month-event-bg-bottom-color: #eeeeee;--dp-month-event-background-hover: linear-gradient(to bottom, var(--dp-month-event-bg-top-color-hover) 0%, var(--dp-month-event-bg-bottom-color-hover) 100%);--dp-month-event-bg-top-color-hover: #f8f8f8;--dp-month-event-bg-bottom-color-hover: #f1f1f1;--dp-month-event-horizontal-align: flex-start;--dp-month-event-vertical-align: center;--dp-month-event-padding: 2px;--dp-month-event-padding-left: 10px;--dp-month-event-padding-rtl: 2px 10px 2px 1px;--dp-month-event-border-radius: 4px;--dp-month-event-box-shadow: none;--dp-month-event-bar-top: 1px;--dp-month-event-bar-left: 2px;--dp-month-event-bar-bottom: 1px;--dp-month-event-bar-width: 6px;--dp-month-event-bar-color: #208fe3;--dp-month-event-bar-display: block;--dp-month-header-bg-color: #f3f3f3;--dp-month-header-color: #333;--dp-month-header-horizontal-align: center;--dp-month-header-vertical-align: center;--dp-month-header-padding: 0px;--dp-month-message-bg-color: #ffa216;--dp-month-message-color: #ffffff;--dp-month-message-padding: 10px;--dp-month-selected-event-bg-color: #ddd;--dp-month-shadow-color: #bbbbbb;--dp-month-shadow-border-color: #888888;"),e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after","box-sizing: content-box; "),e.add(".month_default_main","border: 1px solid var(--dp-month-border-color); font-family: var(--dp-month-font-family); font-size: var(--dp-month-font-size); color: #333; "),e.add(".month_default_cell_inner","border-right: 1px solid var(--dp-month-cell-border-color); border-bottom: 1px solid var(--dp-month-cell-border-color); position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: var(--dp-month-cell-bg-color); "),e.add(".month_default_cell_business .month_default_cell_inner","background-color: var(--dp-month-cell-business-bg-color); "),e.add(".month_default_cell_header","text-align: right; padding: 4px; box-sizing: border-box; "),e.add(".month_default_header_inner","position: absolute; inset: 0; border-right: 1px solid var(--dp-month-border-color); border-bottom: 1px solid var(--dp-month-border-color); cursor: default; color: var(--dp-month-header-color); background: var(--dp-month-header-bg-color); overflow: hidden; display: flex; align-items: var(--dp-month-header-vertical-align); justify-content: var(--dp-month-header-horizontal-align); padding: var(--dp-month-header-padding);"),e.add(".month_default_message","opacity: 0.9; color: var(--dp-month-message-color); background: var(--dp-month-message-bg-color); padding: var(--dp-month-message-padding); "),e.add(".month_default_event","color: var(--dp-month-event-color);border-radius: var(--dp-month-event-border-radius); box-shadow: var(--dp-month-event-box-shadow); "),
9
9
  e.add(".month_default_event_inner","position: absolute; top: 0; bottom: 0; left: 1px; right: 1px; overflow: hidden; padding: var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding-left); background: var(--dp-month-event-background); border: var(--dp-month-event-border); border-radius: var(--dp-month-event-border-radius); display: flex; align-items: var(--dp-month-event-vertical-align); justify-content: var(--dp-month-event-horizontal-align); "),e.add(".month_default_event:hover .month_default_event_inner","background: var(--dp-month-event-background-hover);"),e.add(".month_default_direction_rtl .month_default_event_inner","right: 2px; padding: var(--dp-month-event-padding-rtl); "),e.add(".month_default_event_continueright .month_default_event_inner","border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-style: dotted; "),e.add(".month_default_event_continueleft .month_default_event_inner","border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dotted; "),e.add(".month_default_event_bar","display: var(--dp-month-event-bar-display); top: var(--dp-month-event-bar-top); bottom: var(--dp-month-event-bar-bottom); left: var(--dp-month-event-bar-left); width: var(--dp-month-event-bar-width); "),e.add(".month_default_direction_rtl .month_default_event_bar","top: 1px; bottom: 1px; right: 3px; width: var(--dp-month-event-bar-width); "),e.add(".month_default_event_bar_inner","position: absolute; width: var(--dp-month-event-bar-width); background-color: var(--dp-month-event-bar-color); "),e.add(".month_default_event_continueleft .month_default_event_bar","display: none; "),e.add(".month_default_selected .month_default_event_inner, .month_default_event:hover.month_default_selected .month_default_event_inner","background: var(--dp-month-selected-event-bg-color); "),e.add(".month_default_shadow_inner","box-sizing: border-box; background-color: var(--dp-month-shadow-color); border: 1px solid var(--dp-month-shadow-border-color); border-radius: var(--dp-month-event-border-radius); opacity: 0.5; height: 100%; "),e.add(".month_default_shadow","box-shadow: 0 2px 5px rgba(0, 0, 0, .2); border-radius: var(--dp-month-event-border-radius);"),e.add(".month_default_event_delete","opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"),e.add(".month_default_event_delete:hover","opacity: 0.7;"),e.add(".month_default_event_timeleft","color: #ccc; font-size: 11px; display: flex; align-items: center; "),e.add(".month_default_event_timeright","color: #ccc; font-size: 11px; display: flex; align-items: center; justify-content: end; "),e.add(".month_default_loading","background-color: orange; color: white; padding: 2px; "),e.add(".month_default_shadow_forbidden:after","content: ''; position: absolute; top: calc(50% - 10px); left: 10px; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain; "),e.add(".month_default_shadow_forbidden .month_default_shadow_inner","border: 1px solid #cc0000; background: #cc4125; "),e.add(".navigator_default_main","--dp-nav-border-color: #c0c0c0;--dp-nav-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-nav-font-size: 12px;--dp-nav-title-color: #333;--dp-nav-title-bg-color: #f3f3f3;--dp-nav-dayheader-color: #333;--dp-nav-dayheader-bg-color: #ffffff;--dp-nav-weeknumber-color: #999;--dp-nav-weeknumber-bg-color: #ffffff;--dp-nav-day-color: #000;--dp-nav-day-bg-color: #ffffff;--dp-nav-dayother-color: gray;--dp-nav-dayother-bg-color: #ffffff;--dp-nav-weekend-bg-color: #f0f0f0;--dp-nav-select-bg-color: #FFE794;--dp-nav-text-align: center;"),e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after","box-sizing: content-box;"),e.add(".navigator_default_main","border-left: 1px solid var(--dp-nav-border-color);border-right: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);background-color: white;color: var(--dp-nav-day-color);box-sizing: content-box;"),e.add(".navigator_default_month","font-family: var(--dp-nav-font-family);font-size: var(--dp-nav-font-size);"),e.add(".navigator_default_day","color: var(--dp-nav-day-color); background-color: var(--dp-nav-day-bg-color);"),e.add(".navigator_default_weekend","background-color: var(--dp-nav-weekend-bg-color);"),e.add(".navigator_default_dayheader","color: var(--dp-nav-dayheader-color);background-color: var(--dp-nav-dayheader-bg-color);text-align: var(--dp-nav-text-align);padding: 0px;"),e.add(".navigator_default_line","border-bottom: 1px solid var(--dp-nav-border-color);"),e.add(".navigator_default_dayother","color: var(--dp-nav-dayother-color); background-color: var(--dp-nav-dayother-bg-color);"),e.add(".navigator_default_todaybox","border: 1px solid red;"),e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright","box-sizing: border-box; border-top: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);color: var(--dp-nav-title-color);background: var(--dp-nav-title-bg-color);text-align: var(--dp-nav-text-align);"),e.add(".navigator_default_busy","font-weight: bold;"),e.add(".navigator_default_cell","text-align: var(--dp-nav-text-align);"),e.add(".navigator_default_select .navigator_default_cell_box","background-color: var(--dp-nav-select-bg-color);opacity: 0.5;"),e.add(".navigator_default_weeknumber","text-align: var(--dp-nav-text-align);color: var(--dp-nav-weeknumber-color);background: var(--dp-nav-weeknumber-bg-color);"),e.add(".navigator_default_cell_text","cursor: pointer;"),e.add(".navigator_default_todaysection","box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"),e.add(".navigator_default_todaysection_button","cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "),e.add(".scheduler_default_main",'--dp-scheduler-border-color: #c0c0c0;--dp-scheduler-border-inner-color: #e0e0e0;--dp-scheduler-cell-bg-color: #f9f9f9;--dp-scheduler-cell-business-bg-color: #ffffff;--dp-scheduler-event-background: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color) 0%, var(--dp-scheduler-event-bg-bottom-color) 100%);--dp-scheduler-event-background-hover: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color-hover) 0%, var(--dp-scheduler-event-bg-bottom-color-hover) 100%);--dp-scheduler-event-bg-bottom-color: #eeeeee;--dp-scheduler-event-bg-top-color: #ffffff;--dp-scheduler-event-bg-bottom-color-hover: #e8e8e8;--dp-scheduler-event-bg-top-color-hover: #f8f8f8;--dp-scheduler-event-bar-bg-color: #9dc8e8;--dp-scheduler-event-bar-color: #208fe3;--dp-scheduler-event-bar-display: block;--dp-scheduler-event-bar-height: 4px;--dp-scheduler-event-bar-left: 0px;--dp-scheduler-event-bar-right: 0px;--dp-scheduler-event-bar-top: 0px;--dp-scheduler-event-border: 1px solid var(--dp-scheduler-event-border-color);--dp-scheduler-event-border-color: #ccc;--dp-scheduler-event-border-radius: 4px;--dp-scheduler-event-box-shadow: none;--dp-scheduler-event-color: #333;--dp-scheduler-event-horizontal-align: flex-start;--dp-scheduler-event-milestone-color: #38761d;--dp-scheduler-event-padding: 2px;--dp-scheduler-event-selected-bg-color: #ddd;--dp-scheduler-event-vertical-align: center;--dp-scheduler-focus-outline-color: red;--dp-scheduler-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--dp-scheduler-font-size: 13px;--dp-scheduler-grid-line-break-color: #999;--dp-scheduler-grid-line-color: #eee;--dp-scheduler-header-bg-color: #f3f3f3;--dp-scheduler-header-color: #333;--dp-scheduler-link-color: #cc0000;--dp-scheduler-message-bg-color: #ffa216;--dp-scheduler-message-color: #ffffff;--dp-scheduler-message-padding: 10px;--dp-scheduler-rowheader-padding: 7px;--dp-scheduler-rowheader-vertical-align: center;--dp-scheduler-selectionrectangle-color: #1066a8;--dp-scheduler-shadow-border-color: #888888;--dp-scheduler-shadow-color: #bbbbbb;--dp-scheduler-timeheader-horizontal-align: center;--dp-scheduler-timeheader-padding: 0px;--dp-scheduler-timeheader-vertical-align: center;'),e.add(".scheduler_default_main *, .scheduler_default_main *:before, .scheduler_default_main *:after","box-sizing: content-box;"),e.add(".scheduler_default_main, .scheduler_default_main svg text","box-sizing: content-box; border: 1px solid var(--dp-scheduler-border-color); font-family: var(--dp-scheduler-font-family); font-size: var(--dp-scheduler-font-size);"),e.add(".scheduler_default_selected .scheduler_default_event_inner, .scheduler_default_event:hover.scheduler_default_selected .scheduler_default_event_inner","background: var(--dp-scheduler-event-selected-bg-color);"),e.add(".scheduler_default_timeheader_scroll","background: var(--dp-scheduler-header-bg-color);"),e.add(".scheduler_default_message","opacity: 0.9; padding: var(--dp-scheduler-message-padding); color: var(--dp-scheduler-message-color); background: var(--dp-scheduler-message-bg-color);"),e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol","color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"),e.add(".scheduler_default_rowheader,.scheduler_default_corner","color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"),e.add(".scheduler_default_rowheader.scheduler_default_rowheader_selected","background-color: #aaa; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"),e.add(".scheduler_default_rowheader_inner","position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; border-right: 1px solid var(--dp-scheduler-border-inner-color); padding: var(--dp-scheduler-rowheader-padding); display: flex; align-items: var(--dp-scheduler-rowheader-vertical-align);"),e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner","position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-right: 1px solid var(--dp-scheduler-border-color);"),e.add(".scheduler_default_timeheadergroup_inner","border-bottom: 1px solid var(--dp-scheduler-border-color);"),e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner, .scheduler_default_timeheader_float","display: flex; align-items: var(--dp-scheduler-timeheader-vertical-align); justify-content: var(--dp-scheduler-timeheader-horizontal-align); padding: var(--dp-scheduler-timeheader-padding);"),e.add(".scheduler_default_divider, .scheduler_default_splitter","background-color: var(--dp-scheduler-border-color);"),e.add(".scheduler_default_divider_horizontal","background-color: var(--dp-scheduler-border-color);"),e.add(".scheduler_default_matrix_vertical_line","background-color: var(--dp-scheduler-grid-line-color);"),e.add(".scheduler_default_matrix_vertical_break","background-color: var(--dp-scheduler-grid-line-break-color);"),e.add(".scheduler_default_matrix_horizontal_line","background-color: var(--dp-scheduler-grid-line-color);"),e.add(".scheduler_default_resourcedivider","background-color: var(--dp-scheduler-border-color);"),e.add(".scheduler_default_shadow_inner","box-sizing: border-box; background-color: var(--dp-scheduler-shadow-color); border: 1px solid var(--dp-scheduler-shadow-border-color); border-radius: var(--dp-scheduler-event-border-radius); opacity: 0.5; height: 100%;"),e.add(".scheduler_default_shadow","box-shadow: 0 2px 5px rgba(0,0,0,.2); border-radius: var(--dp-scheduler-event-border-radius);"),e.add(".scheduler_default_event","font-size: var(--dp-scheduler-font-size); color: var(--dp-scheduler-event-color); border-radius: var(--dp-scheduler-event-border-radius); box-shadow: var(--dp-scheduler-event-box-shadow);"),e.add(".scheduler_default_event_inner","position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; border-radius: var(--dp-scheduler-event-border-radius); padding: var(--dp-scheduler-event-padding); overflow: hidden; border: var(--dp-scheduler-event-border); display: flex; align-items: var(--dp-scheduler-event-vertical-align); justify-content: var(--dp-scheduler-event-horizontal-align); background: var(--dp-scheduler-event-background);"),e.add(".scheduler_default_event:hover .scheduler_default_event_inner","background: var(--dp-scheduler-event-background-hover);"),e.add(".scheduler_default_event_bar","display: var(--dp-scheduler-event-bar-display);top: var(--dp-scheduler-event-bar-top); left: var(--dp-scheduler-event-bar-left); right: var(--dp-scheduler-event-bar-right); height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-bg-color);"),e.add(".scheduler_default_event_bar_inner","position:absolute; height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-color);"),e.add(".scheduler_default_event_float","display: flex; align-items: center;"),e.add(".scheduler_default_event_float_inner","padding: var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) 8px; position: relative;"),e.add(".scheduler_default_event_float_inner:after",'content:"";position:absolute;top:calc(50% - 5px);left:1px;width:5px;height:10px;opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1IDEwJz48cGF0aCBkPSdNNSAwIEwwIDUgTDUgMTAgWicvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1IDEwJz48cGF0aCBkPSdNNSAwIEwwIDUgTDUgMTAgWicvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;'),e.add(".scheduler_default_event_focus","outline: var(--dp-scheduler-focus-outline-color) 2px solid; z-index: 100; opacity: 0.5;"),e.add(".scheduler_default_columnheader_inner","font-weight: bold;"),e.add(".scheduler_default_columnheader_splitter","box-sizing: border-box; border-right: 1px solid var(--dp-scheduler-border-color);"),e.add(".scheduler_default_columnheader_splitter:hover","background-color: var(--dp-scheduler-border-color);"),e.add(".scheduler_default_columnheader_cell_inner","position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; padding: 2px; display: flex; align-items: center;"),e.add(".scheduler_default_cell","background-color: var(--dp-scheduler-cell-bg-color);"),e.add(".scheduler_default_cell.scheduler_default_cell_business","background-color: var(--dp-scheduler-cell-business-bg-color);"),e.add(".scheduler_default_cell.scheduler_default_cell_business.scheduler_default_cell_selected, .scheduler_default_cell.scheduler_default_cell_selected","background-color: #ccc; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"),e.add(".scheduler_default_tree_image_no_children",""),e.add(".scheduler_default_tree_image_expand","opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDEwJz48cGF0aCBkPSdNIDEuNSAwLjUgTCA2LjUgNSBMIDEuNSA5LjUnIHN0eWxlPSdmaWxsOm5vbmU7c3Ryb2tlOmN1cnJlbnRDb2xvcjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDEwJz48cGF0aCBkPSdNIDEuNSAwLjUgTCA2LjUgNSBMIDEuNSA5LjUnIHN0eWxlPSdmaWxsOm5vbmU7c3Ryb2tlOmN1cnJlbnRDb2xvcjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;"),e.add(".scheduler_default_tree_image_collapse","opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTpjdXJyZW50Q29sb3I7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1saW5lY2FwOmJ1dHQnIC8+PC9zdmc+);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTpjdXJyZW50Q29sb3I7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1saW5lY2FwOmJ1dHQnIC8+PC9zdmc+);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;"),e.add(".scheduler_default_event_delete","opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"),e.add(".scheduler_default_event_delete:hover","opacity: 0.7;"),e.add(".scheduler_default_rowmove_handle","background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"),e.add(".scheduler_default_rowmove_source","background-color: black; opacity: 0.2;"),e.add(".scheduler_default_rowmove_position_before, .scheduler_default_rowmove_position_after","background-color: #999; height: 2px;"),e.add(".scheduler_default_rowmove_position_child","margin-left: 20px; background-color: #999; height: 2px;"),e.add(".scheduler_default_rowmove_position_forbidden","background-color: #cc0000; height: 2px; margin-left: 20px;"),e.add(".scheduler_default_link_horizontal","border-bottom-style: solid; border-bottom-color: var(--dp-scheduler-link-color);"),e.add(".scheduler_default_link_vertical","border-right-style: solid; border-right-color: var(--dp-scheduler-link-color);"),e.add(".scheduler_default_link_arrow_right:before","content: ''; border-width: 6px; border-color: transparent transparent transparent var(--dp-scheduler-link-color); border-style: solid; width: 0; height:0; position: absolute;"),e.add(".scheduler_default_link_arrow_left:before","content: ''; border-width: 6px; border-color: transparent var(--dp-scheduler-link-color) transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"),e.add(".scheduler_default_link_arrow_down:before","content: ''; border-width: 6px; border-color: var(--dp-scheduler-link-color) transparent transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"),e.add(".scheduler_default_link_arrow_up:before","content: ''; border-width: 6px; border-color: transparent transparent var(--dp-scheduler-link-color) transparent; border-style: solid; width: 0; height:0; position: absolute;"),e.add(".scheduler_default_link_mshadow.scheduler_default_link_horizontal","border-bottom-color: #aaaaaa;"),e.add(".scheduler_default_link_mshadow.scheduler_default_link_vertical","border-right-color: #aaaaaa;"),e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_right:before","border-color: transparent transparent transparent #aaaaaa;"),e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_left:before","border-color: transparent #aaaaaa transparent transparent;"),e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_down:before","border-color: #aaaaaa transparent transparent transparent;"),e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_up:before","border-color: transparent transparent #aaaaaa transparent;"),e.add(".scheduler_default_block","background-color: #808080; opacity: 0.5;"),e.add(".scheduler_default_main .scheduler_default_event_group","box-sizing: border-box; font-size: 13px; color: #666; padding: 2px; overflow:hidden; border:1px solid var(--dp-scheduler-event-border-color); background-color: #fff; display: flex; align-items: center; white-space: nowrap;"),e.add(".scheduler_default_main .scheduler_default_header_icon","box-sizing: border-box; border: 1px solid var(--dp-scheduler-border-color); background-color: var(--dp-scheduler-header-bg-color); color: var(--dp-scheduler-header-color);"),e.add(".scheduler_default_header_icon:hover","background-color: #ccc;"),e.add(".scheduler_default_header_icon_hide:before","content: '\\00AB';");e.add(".scheduler_default_header_icon_show:before","content: '\\00BB';");e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner","padding-left: 10px; color: #666; cursor: text; background-position: 0px 50%; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABUSURBVChTY0ACslAaK2CC0iCQDMSlECYmQFYIAl1AjFUxukIQwKoYm0IQwFCMSyEIaEJpMMClcD4Qp0CYEIBNIUzRPzAPCtAVYlWEDgyAGIdTGBgAbqEJYyjqa3oAAAAASUVORK5CYII=);"),e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner:hover","background: white; color: white;"),e.add(".scheduler_default_rowheader textarea","padding: 3px;"),e.add(".scheduler_default_rowheader_scroll","cursor: default; background: var(--dp-scheduler-header-bg-color);"),e.add(".scheduler_default_shadow_forbidden .scheduler_default_shadow_inner, .scheduler_default_shadow_overlap .scheduler_default_shadow_inner","border: 1px solid #cc0000; background: #cc4125;"),e.add(".scheduler_default_event_moving_source","opacity: 0.5;"),e.add(".scheduler_default_linkpoint","background-color: white; border: 1px solid gray; border-radius: 5px;"),e.add(".scheduler_default_linkpoint.scheduler_default_linkpoint_hover","background-color: black;"),e.add(".scheduler_default_event.scheduler_default_event_version .scheduler_default_event_inner","overflow:hidden; background-color: #cfdde8; background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent); background-size: 20px 20px;"),e.add(".scheduler_default_crosshair_vertical, .scheduler_default_crosshair_horizontal, .scheduler_default_crosshair_left, .scheduler_default_crosshair_top","background-color: gray; opacity: 0.2;"),e.add(".scheduler_default_link_dot","border-radius: 10px; background-color: var(--dp-scheduler-link-color);"),e.add(".scheduler_default_task_milestone .scheduler_default_event_inner","position:absolute; top:16%; left:16%; right:16%; bottom:16%; background: var(--dp-scheduler-event-milestone-color); border: 0px none; transform: rotate(45deg); filter: none;"),e.add(".scheduler_default_event_left, .scheduler_default_event_right","white-space: nowrap; color: #666; cursor: default; display: flex; align-items: center;"),e.add(".scheduler_default_main:focus","outline: none;"),e.add(".scheduler_default_cell_focus","outline: var(--dp-scheduler-focus-outline-color) 2px solid; outline-offset: -2px; z-index: 100; opacity: 0.5;"),e.add(".scheduler_default_cell_focus.scheduler_default_cell_focus_top","border-top: 4px solid var(--dp-scheduler-focus-outline-color);"),e.add(".scheduler_default_cell_focus.scheduler_default_cell_focus_bottom","border-bottom: 4px solid var(--dp-scheduler-focus-outline-color);"),e.add(".scheduler_default_selectionrectangle","background-color: var(--dp-scheduler-selectionrectangle-color); border: 1px solid #000033; opacity: 0.4;"),e.add(".scheduler_default_link_shadow","border:1px solid black;"),e.add(".scheduler_default_link_shadow_circle","background-color:black;"),e.add(".scheduler_default_event_move_left","box-sizing: border-box; padding: 2px; border: 1px solid #ccc; background: #fff; background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); display: flex; align-items: center;"),e.add(".scheduler_default_event_move_right","box-sizing: border-box; padding: 2px; border: 1px solid #ccc; background: #fff; background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); display: flex; align-items: center;"),e.add(".scheduler_default_link_hover","box-shadow: 0px 0px 2px 2px rgba(255, 0, 0, 0.3)"),e.add(".scheduler_default_sorticon","opacity: 0.2;background-position: center center; background-repeat: no-repeat; cursor: pointer;"),e.add(".scheduler_default_sorticon.scheduler_default_sorticon_asc","background-color:currentColor;-webkit-mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDEuNSwgMTAgMTAsIDAgMTAiLz48L3N2Zz4=');-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:10px 10px;mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDEuNSwgMTAgMTAsIDAgMTAiLz48L3N2Zz4=');mask-repeat:no-repeat;mask-position:center;mask-size:10px 10px;background-image:none;"),e.add(".scheduler_default_sorticon.scheduler_default_sorticon_desc","background-color:currentColor;-webkit-mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDguNSwgMCAwLCAxMCAwIi8+PC9zdmc+');-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:10px 10px;mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDguNSwgMCAwLCAxMCAwIi8+PC9zdmc+');mask-repeat:no-repeat;mask-position:center;mask-size:10px 10px;background-image:none;"),e.add(".scheduler_default_sorticon.scheduler_default_sorticon_active","opacity: 0.7;"),e.add(".scheduler_default_loading","background-color: orange; color: white; padding: 2px;"),e.add(".scheduler_default_link_curve","stroke: var(--dp-scheduler-link-color); fill: none; stroke-width: 2;"),e.add(".scheduler_default_link_curve:hover","stroke-opacity: 0.5;"),e.add(".scheduler_default_link_curve_dot","fill: var(--dp-scheduler-link-color);"),e.add(".scheduler_default_link_curve_marker","fill: var(--dp-scheduler-link-color);"),e.add(".scheduler_default_link_curve_text","fill: var(--dp-scheduler-link-color);"),e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve","stroke: #aaaaaa;"),e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_dot","fill: #aaaaaa;"),e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_marker","fill: #aaaaaa;"),e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_text","fill: #aaaaaa;"),e.commit(),DayPilot.Global.defaultCss=!0}}(),DayPilot.doc=function(){var e=document.documentElement;return e&&e.clientHeight?e:document.body},DayPilot.sh=function(e){return e?e.offsetHeight-e.clientHeight:0},DayPilot.guid=function(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return""+e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},DayPilot.ua=function(e){if(!DayPilot.isArray(e))throw new DayPilot.Exception("DayPilot.ua() - array required");var t=[];return e.forEach(function(e){DayPilot.contains(t,e)||t.push(e)}),t},DayPilot.pageOffset=function(){if("undefined"!=typeof pageXOffset)return{x:pageXOffset,y:pageYOffset};var e=DayPilot.doc();return{x:e.scrollLeft,y:e.scrollTop}},DayPilot.indexOf=function(e,t){if(!e||!e.length)return-1;for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},DayPilot.contains=function(e,t){if(2!==arguments.length)throw new DayPilot.Exception("DayPilot.contains() requires two arguments.");return!!e&&(e===t&&!DayPilot.isArray(e)||DayPilot.indexOf(e,t)!==-1)},DayPilot.ac=function(e,t){t||(t=[]);for(var n=0;e.children&&n<e.children.length;n++)t.push(e.children[n]),DayPilot.ac(e.children[n],t);return t},DayPilot.rfa=function(e,t){var n=DayPilot.indexOf(e,t);n!==-1&&e.splice(n,1)},DayPilot.mc=function(e){return e.pageX||e.pageY?{x:e.pageX,y:e.pageY}:{x:e.clientX+document.documentElement.scrollLeft,y:e.clientY+document.documentElement.scrollTop}},DayPilot.Stats={},DayPilot.Stats.eventObjects=0,DayPilot.Stats.dateObjects=0,DayPilot.Stats.cacheHitsCtor=0,DayPilot.Stats.cacheHitsParsing=0,DayPilot.Stats.cacheHitsTicks=0,DayPilot.re=function(e,t,n){n&&t&&e&&e.addEventListener(t,n,!1)},DayPilot.rePassive=function(e,t,n){n&&t&&e&&e.addEventListener(t,n,{"passive":!0})},DayPilot.reNonPassive=function(e,t,n){n&&t&&e&&e.addEventListener(t,n,{"passive":!1})},DayPilot.ue=function(e,t,n){e.removeEventListener(t,n,!1)},DayPilot.pu=function(e){var t,n,a,i=e.attributes;if(i)for(n=i.length,t=0;t<n;t+=1)i[t]&&(a=i[t].name,"function"==typeof e[a]&&(e[a]=null));if(i=e.childNodes)for(n=i.length,t=0;t<n;t+=1)DayPilot.pu(e.childNodes[t])},DayPilot.de=function(e){if(e)if(DayPilot.isArray(e))for(var t=0;t<e.length;t++)DayPilot.de(e[t]);else e.remove()},DayPilot.sw=function(e){return e?e.offsetWidth-e.clientWidth:0},DayPilot.am=function(){return"undefined"==typeof angular?null:(DayPilot.am.cached||(DayPilot.am.cached=angular.module("daypilot",[])),DayPilot.am.cached)},DayPilot.Selection=function(e,t,n,a){this.type="selection",this.start=e.isDayPilotDate?e:new DayPilot.Date(e),this.end=t.isDayPilotDate?t:new DayPilot.Date(t),this.resource=n,this.root=a,this.toJSON=function(){var e={};return e.start=this.start,e.end=this.end,e.resource=this.resource,e}},
@@ -17,4 +17,4 @@ this.eventDeleteHandling="Disabled",this.eventMoveHandling="Update",this.eventRe
17
17
  i.events.list=e,i.update()},!0)}}}])}(),"undefined"!=typeof Sys&&Sys.Application&&Sys.Application.notifyScriptLoaded&&Sys.Application.notifyScriptLoaded()}}(DayPilot),function(DayPilot){if("undefined"==typeof DayPilot.Navigator||!DayPilot.Navigator.def){var e=DayPilot.Util.isReactComponent,t=DayPilot.Util.isVueComponent,n=DayPilot.Util.isVueVNode;DayPilot.Navigator=function(a,i){function r(e,t,n){var a=this;if(e instanceof r)return e;if("object"==typeof e){var i=e;this.month=i.month,this.x=i.x,this.y=i.y}else this.month=e,this.x=t,this.y=n;this.is=function(e){return this.month===e.month&&this.x===e.x&&this.y===e.y},this.next=function(){var e=a;if(e.x<6)return{"month":e.month,"x":e.x+1,"y":e.y};var t=o.months[e.month];return e.y<t.rowCount-1?{"month":e.month,"x":0,"y":e.y+1}:e.month<o.months.length-1?{"month":e.month+1,"x":0,"y":0}:null},this.visible=function(){var e=this.cell();return!!e.isCurrentMonth||(!(!e.isPrevMonth||!e.showBefore)||!(!e.isNextMonth||!e.showAfter))},this.nextVisible=function(){for(var e=a;!e.visible();){var t=e.next();if(!t)return null;e=new r(t)}return e},this.previous=function(){var e=a;if(e.x>0)return{"month":e.month,"x":e.x-1,"y":e.y};if(e.y>0)return{"month":e.month,"x":6,"y":e.y-1};if(e.month>0){var t=o.months[e.month-1];return{"month":e.month-1,"x":6,"y":t.rowCount-1}}return null},this.previousVisible=function(){for(var e=a;!e.visible();){var t=e.previous();if(!t)return null;e=new r(t)}return e},this.cell=function(){return o.months[this.month].cells[this.x][this.y]},this.date=function(){return this.cell().day},this.before=function(e){return this.date()<new r(e).date()}}this.v="${v}";var o=this;this.id=a,this.api=2,this.isNavigator=!0,this.autoFocusOnClick=!0,this.weekStarts="Auto",this.selectMode="Day",this.titleHeight=30,this.dayHeaderHeight=30,this.bound=null,this.cellWidth=30,this.cellHeight=30,this.cssClassPrefix="navigator_default",this.eventEndSpec="DateTime",this.freeHandSelectionEnabled=!1,this.selectionStart=(new DayPilot.Date).getDatePart(),this.selectionEnd=null,this.selectionDay=null,this.showMonths=1,this.skipMonths=1,this.command="navigate",this.year=(new DayPilot.Date).getYear(),this.month=(new DayPilot.Date).getMonth()+1,this.showToday=!1,this.showWeekNumbers=!1,this.todayHtml=null,this.todayHeight=40,this.todayPosition="Bottom",this.todayText="Today",this.weekNumberAlgorithm="Auto",this.rowsPerMonth="Six",this.orientation="Vertical",this.locale="en-us",this.rtl=!1,this.visible=!0,this.timeRangeSelectedHandling="Bind",this.visibleRangeChangedHandling="Enabled",this.onVisibleRangeChange=null,this.onVisibleRangeChanged=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.onTodayClick=null,this.S={};var s=this.S;this.ud={};var l=this.ud;this.nav={},this.Ib={},this.vd=function(){this.root.dp=this,this.root.className=this.M("_main"),"Horizontal"===this.orientation?(s.wd()||(this.root.style.width=this.showMonths*(7*s.cellWidth()+this.xd())+"px"),this.root.style.height=6*this.cellHeight+this.titleHeight+this.dayHeaderHeight+"px"):s.wd()||(this.root.style.width=7*s.cellWidth()+this.xd()+"px"),this.rtl&&(this.root.style.direction="rtl"),this.root.style.position="relative",this.visible||(this.root.style.display="none");var e=document.createElement("input");e.type="hidden",e.name=o.id+"_state",e.id=e.name,this.root.appendChild(e),this.state=e,this.startDate?this.startDate=new DayPilot.Date(this.startDate).firstDayOfMonth():this.selectionDay?this.startDate=new DayPilot.Date(this.selectionDay).firstDayOfMonth():this.startDate=DayPilot.Date.fromYearMonthDay(this.year,this.month),this.calendars=[],this.selected=[],this.months=[]},this.va=function(){return 2===o.api},this.od=function(){this.root.innerHTML=""},this.M=function(e){var t=this.theme||this.cssClassPrefix;return t?t+e:""},this.yd=function(e,t){var n=this.M("_"+t);DayPilot.Util.addClass(e,n)},this.zd=function(e,t){var n=this.M("_"+t);DayPilot.Util.removeClass(e,n)},this.Ad=function(){if(!s.wd())return null;var e=7;return this.showWeekNumbers&&e++,100/e},this.Bd=function(){return s.wd()?null:s.cellWidth()},this.Cd=function(e){return"number"!=typeof e&&(e=1),s.wd()?this.Ad()*e:this.Bd()*e},this.Dd=function(e){var t=s.wd()?"%":"px";return this.Cd(e)+t},this.pd=function(a,i){var r={};r.cells=[],r.days=[],r.weeks=[];var l=this.startDate.addMonths(a),d=i.before,c=i.after,u=l.firstDayOfMonth(),h=u.firstDayOfWeek(s.weekStarts()),f=u.addMonths(1),v=DayPilot.DateUtil.daysDiff(h,f),p="Auto"===this.rowsPerMonth?Math.ceil(v/7):6;r.rowCount=p;var m=(new DayPilot.Date).getDatePart(),g=7*s.cellWidth()+this.xd();r.width=g;var y=this.cellHeight*p+this.titleHeight+this.dayHeaderHeight;r.height=y;var b=document.createElement("div");if(s.wd()?"Horizontal"===this.orientation&&(b.style.width=100/o.showMonths+"%"):b.style.width=g+"px",b.style.height=y+"px","Horizontal"===this.orientation)b.style.position="absolute",s.wd()?(b.style.left=100/o.showMonths*a+"%",r.leftPct=100/o.showMonths*a):b.style.left=g*a+"px",b.style.top="0px",r.top=0,r.left=g*a;else{b.style.position="relative";var w=a>0?o.months[a-1].top+o.months[a-1].height:0;r.top=w,r.left=0,r.leftPct=0}b.className=this.M("_month"),b.style.cursor="default",b.style.userSelect="none",b.style.webkitUserSelect="none",b.month=r,r.div=b,this.root.appendChild(b);var x=this.titleHeight+this.dayHeaderHeight,_=document.createElement("div");_.style.position="absolute",_.style.left="0px",_.style.right="0px",_.style.top="0px",_.style.width=o.Dd(),_.style.height=this.titleHeight+"px",_.style.lineHeight=this.titleHeight+"px",_.className=this.M("_titleleft"),i.left&&(_.style.cursor="pointer",_.innerHTML="<span>&lt;</span>",_.onclick=this.Ed),b.appendChild(_);var C=document.createElement("div");C.style.position="absolute",C.style.left=o.Dd(),C.style.top="0px",C.style.width=o.Dd(o.showWeekNumbers?6:5),C.style.height=this.titleHeight+"px",C.style.lineHeight=this.titleHeight+"px",C.className=this.M("_title"),C.innerHTML=s.locale().monthNames[l.getMonth()]+" "+l.getYear(),b.appendChild(C),this.ti=C;var k=document.createElement("div");k.style.position="absolute",k.style.left=o.Dd(o.showWeekNumbers?7:6),k.style.right=o.Dd(o.showWeekNumbers?7:6),k.style.top="0px",k.style.width=o.Dd(),k.style.height=this.titleHeight+"px",k.style.lineHeight=this.titleHeight+"px",k.className=this.M("_titleright"),i.right&&(k.style.cursor="pointer",k.innerHTML="<span>&gt;</span>",k.onclick=this.Fd),b.appendChild(k),this.tr=k;var D=o.showWeekNumbers?1:0;if(this.showWeekNumbers)for(var M=0;M<p;M++){var S=h.addDays(7*M),T=null;switch(this.weekNumberAlgorithm){case"Auto":T=1===s.weekStarts()?S.weekNumberISO():S.weekNumber();break;case"US":T=S.weekNumber();break;case"ISO8601":T=S.weekNumberISO();break;default:throw"Unknown weekNumberAlgorithm value."}var E=document.createElement("div");E.style.position="absolute",E.style.left="0px",E.style.right="0px",E.style.top=M*this.cellHeight+x+"px",E.style.width=o.Dd(),E.style.height=this.cellHeight+"px",E.style.lineHeight=this.cellHeight+"px",E.className=this.M("_weeknumber"),E.innerHTML="<span>"+T+"</span>",b.appendChild(E),r.weeks.push(E)}if(o.showWeekNumbers){var E=document.createElement("div");E.style.position="absolute",E.style.left="0px",E.style.right="0px",E.style.top=this.titleHeight+"px",E.style.width=o.Dd(),E.style.height=this.dayHeaderHeight+"px",E.className=this.M("_dayheader"),b.appendChild(E)}for(var H=0;H<7;H++){r.cells[H]=[];var E=document.createElement("div");E.style.position="absolute",E.style.left=o.Dd(H+D),E.style.right=o.Dd(H+D),E.style.top=this.titleHeight+"px",E.style.width=o.Dd(),E.style.height=this.dayHeaderHeight+"px",E.style.lineHeight=this.dayHeaderHeight+"px",E.className=this.M("_dayheader"),E.innerHTML="<span>"+this.Gd(H)+"</span>",b.appendChild(E),r.days.push(E);for(var A=function(a){var i=h.addDays(7*a+H),u=N.Hd(i)&&"none"!==N.Id(),f=i.firstDayOfMonth()===l,v=i<l,p=i>=l.addMonths(1);if("month"===N.Id())u=u&&f;else if("day"===N.Id())u=u&&(f||d&&v||c&&p);else if("week"===N.Id()){var g=i.firstDayOfMonth()===l;u=u&&(g||d&&v||c&&p)}var y=document.createElement("div");r.cells[H][a]=y;var w=o.Jd(H,a),x=w.x,_=w.y,C=s.wd()?"%":"px";y.day=i,y.x=H,y.y=a,y.left=x,y.top=_,y.isCurrentMonth=f,y.isNextMonth=p,y.isPrevMonth=v,y.showBefore=d,y.showAfter=c,y.className=N.M(f?"_day":"_dayother"),o.yd(y,"cell"),i.getTime()===m.getTime()&&f&&N.yd(y,"today"),0!==i.dayOfWeek()&&6!==i.dayOfWeek()||N.yd(y,"weekend"),y.style.position="absolute",y.style.left=x+C,y.style.right=x+C,y.style.top=_+"px",y.style.width=o.Dd(),y.style.height=N.cellHeight+"px",y.style.lineHeight=N.cellHeight+"px";var k=document.createElement("div");k.style.position="absolute",k.className=i.getTime()===m.getTime()&&f?N.M("_todaybox"):N.M("_daybox"),o.yd(k,"cell_box"),k.style.left="0px",k.style.top="0px",k.style.right="0px",k.style.bottom="0px",y.appendChild(k);var D=null;N.cells&&N.cells[i.toStringSortable()]&&(D=N.cells[i.toStringSortable()]);var M=D||{};if(M.day=i,M.isCurrentMonth=f,M.isToday=i.getTime()===m.getTime()&&f,M.isWeekend=0===i.dayOfWeek()||6===i.dayOfWeek(),D?(M.html=D.html||i.getDay(),M.cssClass=D.css):(M.html=i.getDay(),M.cssClass=null),M.events={all:function(){var e;return(null===(e=o.items)||void 0===e?void 0:e[i.toStringSortable()])||[]}},"function"==typeof o.onBeforeCellRender){var S={};S.cell=M,o.onBeforeCellRender(S),D=S.cell}if(D&&DayPilot.Util.addClass(y,D.cssClass||D.css),f||d&&v||c&&p){var T=document.createElement("div");T.innerHTML=i.getDay(),T.style.position="absolute",T.style.left="0px",T.style.top="0px",T.style.right="0px",T.style.bottom="0px",o.yd(T,"cell_text"),y.isClickable=!0,D&&D.html&&(T.innerHTML=D.html),y.appendChild(T)}y.onclick=N.Kd,function(){if("function"==typeof o.onBeforeCellDomAdd||"function"==typeof o.onBeforeCellDomRemove){var a={};if(a.control=o,a.cell=M,a.element=null,y.domArgs=a,"function"==typeof o.onBeforeCellDomAdd&&o.onBeforeCellDomAdd(a),a.element){var i=k;if(i){a.Wa=i;var r=e(a.element),s=t(a.element),l=n(a.element);if(r){if(!o.Za.reactDOM)throw new DayPilot.Exception("Can't reach ReactDOM");o.Za.db(a.element,i)}else if(s){if(!o.Ya.Xa)throw new DayPilot.Exception("Can't reach Vue");o.Ya._a=!0,o.Ya.td(a.element,i,a.props),o.Ya._a=!1}else if(l){if(!o.Ya.Xa)throw new DayPilot.Exception("Can't reach Vue");o.Ya._a=!0,o.Ya.eb(a.element,i),o.Ya._a=!1}else i.appendChild(a.element)}}}}(),b.appendChild(y),u&&(o.Ld(b,H,a),N.selected.push(y))},N=this,M=0;M<p;M++)A(M)}var I=document.createElement("div");I.style.position="absolute",I.style.left="0px",I.style.top=x-2+"px",I.style.width=o.Dd(7+D),I.style.height="1px",I.style.fontSize="1px",I.style.lineHeight="1px",I.className=this.M("_line"),b.appendChild(I),this.months.push(r)},this.Jd=function(e,t){var n=this.titleHeight+this.dayHeaderHeight,a=this.showWeekNumbers?1:0;return{"x":o.Cd(e+a),"y":t*this.cellHeight+n}},this.Ld=function(e,t,n){var a=e.month.cells[t][n];o.yd(a,"select")},this.Md=function(e,t,n){var a=e.month.cells[t][n];o.zd(a,"select")},this.xd=function(){return this.showWeekNumbers?s.cellWidth():0},this.Nd=function(){var e;if(this.items)for(var t=0;t<this.showMonths;t++)for(var n=0;n<7;n++)for(var a=0;a<6;a++){var i=this.months[t].cells[n][a];i&&((null===(e=this.items[i.day.toStringSortable()])||void 0===e?void 0:e.length)>0?(this.yd(i,"busy"),this.zd(i,"free")):(this.zd(i,"busy"),this.yd(i,"free")))}},this.Od=function(){var e={};e.startDate=o.startDate,e.selectionStart=o.selectionStart,e.selectionEnd=o.selectionEnd.addDays(1),o.state.value=JSON.stringify(e)},this.Id=function(){return(this.selectMode||"").toLowerCase()},this.Pd=function(){var e=this.selectionDay||this.selectionStart;switch(e||(e=DayPilot.Date.today()),e=new DayPilot.Date(e),this.Id()){case"day":this.selectionStart=e,this.selectionDay=e,this.selectionEnd=e;break;case"week":this.selectionDay=e,this.selectionStart=e.firstDayOfWeek(s.weekStarts()),this.selectionEnd=this.selectionStart.addDays(6);break;case"month":this.selectionDay=e,this.selectionStart=e.firstDayOfMonth(),this.selectionEnd=this.selectionStart.lastDayOfMonth();break;case"none":this.selectionEnd=e;break;default:throw"Unknown selectMode value."}},this.Qd=null,this.select=function(e,t,n){if(e&&!this.R){var a=t&&(t instanceof DayPilot.Date||"string"==typeof t),i=t&&"object"==typeof t&&!a||"boolean"==typeof t,r=e,s=a?t:null,l=i?t:n;if(!this.Ra)return void(this.Qd={"date1":r,"date2":s,"options":l});var d=!0,c=!0;l&&"object"==typeof l?(l.dontFocus&&(d=!1),l.dontNotify&&(c=!1)):"boolean"==typeof l&&(d=!l);var u=this.selectionStart,h=this.selectionEnd;this.selectionStart=new DayPilot.Date(r).getDatePart(),this.selectionDay=this.selectionStart;var f=!1;if(d){var v=this.startDate;(this.selectionStart<this.Rd()||this.selectionStart>=this.Sd())&&(v=this.selectionStart.firstDayOfMonth()),v.toStringSortable()!==this.startDate.toStringSortable()&&(f=!0),this.startDate=v}s&&o.freeHandSelectionEnabled?o.selectionEnd=new DayPilot.Date(s):this.Pd(),this.od(),this.vd(),this.Td(),this.Nd(),this.Od(),!c||u.equals(this.selectionStart)&&h.equals(this.selectionEnd)||this.P(),f&&this.Ud()}},this.update=function(e){o.Vd(e)},this.Vd=function(e){if(o.Db(e),this.Ra){if(o.R)throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");o.Wd();var t={"day":o.selectionDay,"start":o.selectionStart,"end":o.selectionEnd};o.Bb(),t.start===o.selectionStart&&t.end===o.selectionEnd&&t.day===o.selectionDay||o.P()}},this.Bb=function(){this.od(),this.vd(),this.ia(),this.Pd(),this.Td(),this.Nd(),this.Od(),this.visible?this.show():this.hide()},this.Wd=function(){o.Ib={}},this.Fb=null,this.Db=function(e){if(e){var t={"events":{"preInit":function(){var e=this.data;e&&(DayPilot.isArray(e.list)?o.events.list=e.list:o.events.list=e)}}};this.Fb=t;for(var n in e)if(t[n]){var a=t[n];a.data=e[n],a.preInit&&a.preInit()}else o[n]=e[n]}},this.Gb=function(){var e=this.Fb;for(var t in e){var n=e[t];n.postInit&&n.postInit()}},this.W=function(e,t,n){var a={};a.action=e,a.parameters=n,a.data=t,a.header=this.V();var i="JSON"+JSON.stringify(a);this.backendUrl?DayPilot.request(this.backendUrl,this.X,i,this.Xd):WebForm_DoCallback(this.uniqueID,i,this.Y,null,this.callbackError,!0)},this.Xd=function(e){if("function"==typeof o.onAjaxError){var t={};t.request=e,o.onAjaxError(t)}else"function"==typeof o.ajaxError&&o.ajaxError(e)},this.X=function(e){o.Y(e.responseText)},this.U=function(e,t,n){var a={};a.action=e,a.parameters=n,a.data=t,a.header=this.V();var i="JSON"+JSON.stringify(a);__doPostBack(o.uniqueID,i)},this.V=function(){var e={};return e.v=this.v,e.startDate=this.startDate,e.selectionStart=this.selectionStart,e.showMonths=this.showMonths,e},this.Gd=function(e){var t=e+s.weekStarts();return t>6&&(t-=7),s.locale().dayNamesShort[t]},this.Hd=function(e){return null!==this.selectionStart&&null!==this.selectionEnd&&(this.selectionStart.getTime()<=e.getTime()&&e.getTime()<=this.selectionEnd.getTime())},this.Yd=function(e){for(var t=0;t<o.months.length;t++){var n=o.months[t];if(!n)return null;if(e.x<n.left)return null;if(!(n.left+n.width<e.x)&&n.top<=e.y&&e.y<n.top+n.height)return t}return null},this.Zd=function(){if(!s.wd())return void(o.$d=o.cellWidth);var e=o.months[0].cells[0][0],t=e.clientWidth;o.$d=t,o.months.forEach(function(e){e.width=e.div.clientWidth,"Horizontal"===o.orientation&&(e.left=e.div.offsetLeft),e.cells.forEach(function(e,n){e.forEach(function(e){e.width=t,e.left=n*t})})})},this._d=function(e){o.Zd();var t=DayPilot.mo3(o.nav.top,e),n=o.Yd(t);if(null===n)return null;var a=o.months[n],i=this.titleHeight+this.dayHeaderHeight;if(a.top<=t.y&&t.y<a.top+i)return{"month":n,"x":0,"y":0,"coords":t,"header":!0};for(var r=0;r<a.cells.length;r++)for(var s=0;s<a.cells[r].length;s++){var l=a.cells[r][s],d=l.top+a.top,c=l.left+a.left;if(c<=t.x&&t.x<c+o.$d&&d<=t.y&&t.y<d+o.cellHeight)return{"month":n,"x":r,"y":s,"coords":t}}return null},this.ae=function(e){if(o.freeHandSelectionEnabled){var t=o._d(e);t&&!t.header&&(l.start=t),e.preventDefault()}},this.be=function(e){if(l.start){var t=o._d(e);if(l.end)l.end=t;else if(t){var n=3,a=DayPilot.distance(l.start.coords,t.coords);a>n&&(l.end=t)}l.end&&(l.clear(),l.draw())}},l.start=null,l.drawCell=function(e){var t=o.months[e.month],n=o.Jd(e.x,e.y),a=t.top+n.y,i=t.left+n.x,r="px",d=o.Dd();if(s.wd()){var c="Horizontal"===o.orientation?o.showMonths:1;i=t.leftPct+n.x/c,r="%",d=o.Dd(1/c)}var u=document.createElement("div");u.style.position="absolute",u.style.left=i+r,u.style.top=a+"px",u.style.height=o.cellHeight+"px",u.style.width=d,u.style.backgroundColor="#ccc",u.style.opacity=.5,u.style.cursor="default",o.nav.preselection.appendChild(u),l.cells.push(u)},l.clear=function(){if(l.cells){for(var e=0;e<l.cells.length;e++)o.nav.preselection.removeChild(l.cells[e]);l.cells=[]}},l.draw=function(){var e=l.ordered(),t=new r(e.start),n=e.end;if(n){if(n===l.end&&n.header&&n.month>0){n.month-=1;var a=o.months[n.month];n.x=6,n.y=a.rowCount-1}for(l.cells=[];!t.is(n);){t.visible()&&l.drawCell(t);var i=new r(t).next();if(!i)return;t.month=i.month,t.x=i.x,t.y=i.y}t.visible()&&l.drawCell(t)}},l.ordered=function(){var e=l.start,t=l.end,n={};return!t||new r(e).before(t)?(n.start=e,n.end=t):(n.start=t,n.end=e),n},this.Kd=function(e){var t=e.currentTarget,n=t.parentNode,a=t.parentNode.month,i=t.x,r=t.y,s=a.cells[i][r].day;if(a.cells[i][r].isClickable){switch(o.clearSelection(),o.selectionDay=s,o.Id()){case"none":o.selectionStart=s,o.selectionEnd=s;break;case"day":if(o.autoFocusOnClick&&(s<o.Rd()||s>=o.Sd()))return void o.select(s);var l=a.cells[i][r];o.Ld(n,i,r),o.selected.push(l),o.selectionStart=l.day,o.selectionEnd=l.day;break;case"week":if(o.autoFocusOnClick){var d=a.cells[0][r].day,c=a.cells[6][r].day;if(d.firstDayOfMonth()===c.firstDayOfMonth()&&(d<o.Rd()||c>=o.Sd()))return void o.select(s)}for(var u=0;u<7;u++)o.Ld(n,u,r),o.selected.push(a.cells[u][r]);o.selectionStart=a.cells[0][r].day,o.selectionEnd=a.cells[6][r].day;break;case"month":if(o.autoFocusOnClick&&(s<o.Rd()||s>=o.Sd()))return void o.select(s);for(var d=null,c=null,h=0;h<6;h++)for(var f=0;f<7;f++){var l=a.cells[f][h];l&&l.day.getYear()===s.getYear()&&l.day.getMonth()===s.getMonth()&&(o.Ld(n,f,h),o.selected.push(l),null===d&&(d=l.day),c=l.day)}o.selectionStart=d,o.selectionEnd=c;break;default:throw"unknown selectMode"}o.Od(),o.P()}},this.P=function(e){var t=o.selectionStart,n=o.selectionEnd.addDays(1),a=DayPilot.DateUtil.daysDiff(t,n),i=o.selectionDay;if(e=e||{},o.va()){var r={};if(r.start=t,r.end=n,r.day=i,r.days=a,r.mode=e.mode||o.selectMode,r.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof o.onTimeRangeSelect&&(o.onTimeRangeSelect(r),r.preventDefault.value))return;switch(o.timeRangeSelectedHandling){case"Bind":var s=o.bound;if(s&&"object"==typeof s){var l={};l.start=t,l.end=n,l.days=a,l.day=i,s.commandCallBack(o.command,l)}break;case"None":break;case"PostBack":o.timeRangeSelectedPostBack(t,n,i)}"function"==typeof o.onTimeRangeSelected&&o.onTimeRangeSelected(r)}else switch(o.timeRangeSelectedHandling){case"Bind":var s=o.bound;if(s&&"object"==typeof s){var l={};l.start=t,l.end=n,l.days=a,l.day=i,s.commandCallBack(o.command,l)}break;case"JavaScript":o.onTimeRangeSelected(t,n,i);break;case"None":break;case"PostBack":o.timeRangeSelectedPostBack(t,n,i)}},this.timeRangeSelectedPostBack=function(e,t,n,a){var i={};i.start=e,i.end=t,i.day=a,this.U("TimeRangeSelected",n,i)},this.Fd=function(){o.ce(o.skipMonths)},this.Ed=function(){o.ce(-o.skipMonths)},this.ce=function(e){this.startDate=this.startDate.addMonths(e),this.od(),this.vd(),this.Td(),this.Od(),this.Ud(),this.Nd()},this.Rd=function(){return o.startDate.firstDayOfMonth()},this.Sd=function(){return o.startDate.firstDayOfMonth().addMonths(this.showMonths)},this.visibleStart=function(){return o.startDate.firstDayOfMonth().firstDayOfWeek(s.weekStarts())},this.visibleEnd=function(){return o.startDate.firstDayOfMonth().addMonths(this.showMonths-1).firstDayOfWeek(s.weekStarts()).addDays(42)},this.Ud=function(){var e=this.visibleStart(),t=this.visibleEnd();if(o.va()){var n={};if(n.start=e,n.end=t,n.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof o.onVisibleRangeChange&&(o.onVisibleRangeChange(n),n.preventDefault.value))return;switch(this.visibleRangeChangedHandling){case"CallBack":this.visibleRangeChangedCallBack(null);break;case"PostBack":this.visibleRangeChangedPostBack(null);break;case"Disabled":}"function"==typeof o.onVisibleRangeChanged&&o.onVisibleRangeChanged(n)}else switch(this.visibleRangeChangedHandling){case"CallBack":this.visibleRangeChangedCallBack(null);break;case"PostBack":this.visibleRangeChangedPostBack(null);break;case"JavaScript":this.onVisibleRangeChanged(e,t);break;case"Disabled":}},this.visibleRangeChangedCallBack=function(e){var t={};this.W("Visible",e,t)},this.visibleRangeChangedPostBack=function(e){var t={};this.U("Visible",e,t)},this.Y=function(e){var t=JSON.parse(e);o.items=t.Items,o.cells=t.Cells,o.cells?o.update():o.Nd()},this.Td=function(){this.showToday&&"Top"===this.todayPosition&&this.ee();for(var e=0;e<this.showMonths;e++){var t=this.fe(e);this.pd(e,t)}this.showToday&&"Bottom"===this.todayPosition&&this.ee(),this.root.style.height=this.ge()+"px",this.nav.preselection=document.createElement("div"),this.nav.preselection.style.position="absolute",this.nav.preselection.style.left="0px",this.nav.preselection.style.right="0px",this.nav.preselection.style.top="0px",this.root.appendChild(this.nav.preselection)},this.ee=function(){if(this.showToday){var e=document.createElement("span");e.className=this.M("_todaysection_button"),this.todayHtml?e.innerHTML=this.todayHtml:e.innerText=this.todayText,e.onclick=function(){if("function"==typeof o.onTodayClick){var e={};if(e.preventDefault=function(){this.preventDefault.value=!0},o.onTodayClick(e),e.preventDefault.value)return}o.select(DayPilot.Date.today())};var t=document.createElement("div");t.style.height=this.todayHeight+"px",t.className=this.M("_todaysection"),t.appendChild(e),this.root.appendChild(t)}},this.ge=function(){var e=0;if(this.showToday&&(e+=this.todayHeight),"Horizontal"===this.orientation){for(var t=0;t<this.months.length;t++){var n=this.months[t];n.height>e&&(e=n.height)}return e}for(var t=0;t<this.months.length;t++){var n=this.months[t];e+=n.height}return e},this.fe=function(e){if(this.internal.showLinks)return this.internal.showLinks;var t={};return t.left=0===e,t.right=0===e,t.before=0===e,t.after=e===this.showMonths-1,"Horizontal"===this.orientation&&(t.right=e===this.showMonths-1),t},this.xa={},this.xa.scope=null,this.xa.notify=function(){o.xa.scope&&o.xa.scope["$apply"]()},this.Za={},this.Za.reactDOM=null,this.Za.react=null,this.Za.db=function(e,t){var n=o.Za.reactDOM;if("function"==typeof n.createRoot){var a=t.Wb;a||(a=n.createRoot(t),t.Wb=a),a.render(e)}else n.render(e,t)},this.Za.$a=function(e){var t=o.Za.reactDOM;if("function"==typeof t.createRoot){var n=e.Wb;setTimeout(function(){n.unmount()},0)}else t.unmountComponentAtNode(e)},this.Ya={},this.Ya.Xa=null,this.Ya.td=function(e,t,n){var a=o.Ya.Xa;if("function"==typeof a.createVNode&&"function"==typeof a.render){var i=a.createVNode(e,n);a.render(i,t)}},this.Ya.eb=function(e,t){var n=o.Ya.Xa;if("function"==typeof n.render){var a=e;DayPilot.isArray(e)&&(a=n.h("div",null,e)),n.render(a,t)}},this.Ya.ab=function(e){var t=o.Ya.Xa;"function"==typeof t.render&&t.render(null,e)},this.internal={},this.internal.loadOptions=o.Db,this.internal.initialized=function(){return o.Ra},this.internal.enableVue=function(e){o.Ya.Xa=e},this.internal.vueRef=function(){return o.Ya.Xa},this.internal.vueRendering=function(){return o.Ya._a},this.internal.upd=function(e){o.Vd(e)},s.locale=function(){return DayPilot.Locale.find(o.locale)},s.weekStarts=function(){if("Auto"===o.weekStarts){var e=s.locale();return e?e.weekStarts:0}return o.weekStarts},s.cellWidth=function(){if(o.Ib.cellWidth)return o.Ib.cellWidth;var e=o.he("_cell_dimensions").width;return e||(e=o.cellWidth),o.Ib.cellWidth=e,e},s.wd=function(){return"Auto"===o.S.cellWidth()},this.clearSelection=function(){for(var e=0;e<this.selected.length;e++){var t=this.selected[e];o.Md(t.parentNode,t.x,t.y)}this.selected=[]},this.ie=function(){return!!this.backendUrl&&("undefined"==typeof o.items||!o.items)},this.events={},this.ia=function(){if(DayPilot.isArray(this.events.list)){this.items={};for(var e=0;e<this.events.list.length;e++){var t=this.events.list[e];if(!t.hidden){var n=new DayPilot.Event(t),a=this.je(t);for(var i in a)this.items[i]||(this.items[i]=[]),this.items[i].push(n)}}}},this.he=function(e){var t=document.createElement("div");t.style.position="absolute",t.style.top="-2000px",t.style.left="-2000px",t.className=this.M(e);var n=o.root||document.body;n.appendChild(t);var a=t.offsetHeight,i=t.offsetWidth;n.removeChild(t);var r={};return r.height=a,r.width=i,r},this.je=function(e){for(var t=new DayPilot.Date(e.start),n=new DayPilot.Date(e.end),a={},i=t.getDatePart(),r=function(){return"Date"===o.eventEndSpec?i.getTime()<=n.getTime():i.getTime()<n.getTime()};r();)a[i.toStringSortable()]=1,i=i.addDays(1);return a},this.show=function(){o.visible=!0,o.root.style.display=""},this.hide=function(){o.visible=!1,o.root.style.display="none"},this.Hb=function(){if(this.id&&this.id.tagName)this.nav.top=this.id;else{if("string"!=typeof this.id)throw"DayPilot.Navigator() constructor requires the target element or its ID as a parameter";if(this.nav.top=document.getElementById(this.id),!this.nav.top)throw"DayPilot.Navigator: The placeholder element not found: '"+a+"'."}this.root=this.nav.top},this.init=function(){if(this.Hb(),!this.root.dp){this.Pd(),this.vd(),this.Td(),this.ia(),this.Nd(),this.ca(),this.ke(),this.Ab();if(this.ie()&&this.Ud(),this.Ra=!0,this.Gb(),this.Qd){var e=this.Qd;this.select(e.date1,e.date2,e.options),this.Qd=null}return this}},this.ke=function(){o.nav.top.onmousedown=this.ae,o.nav.top.onmousemove=this.be},this.Ab=function(){DayPilot.re(document,"mouseup",o.le)},this.le=function(e){if(l.start&&l.end){var t=DayPilot.mo3(o.nav.top,e);if(t.x===l.start.coords.x&&t.y===l.start.coords.y)return l.start=null,void l.clear();l.clear();var n=l.ordered();n.start=new r(n.start).nextVisible(),n.end=new r(n.end).previousVisible(),o.selectionDay=new r(n.start).date(),o.selectionStart=o.selectionDay,o.selectionEnd=new r(n.end).date(),l.start=null,l.end=null,o.od(),o.vd(),o.Td(),o.Nd(),o.Od();o.P({"mode":"FreeHand"})}l.start=null,l.end=null},this.dispose=function(){var e=o;e.root&&(e.root.removeAttribute("style"),e.root.removeAttribute("class"),e.root.dp=null,e.root.innerHTML=null,e.root=null,e.R=!0)},this.disposed=function(){return this.R},this.ca=function(){this.root.dispose=this.dispose},this.Init=this.init,this.Db(i)},"undefined"!=typeof jQuery&&!function(e){e.fn.daypilotNavigator=function(e){var t=null,n=this.each(function(){if(!this.daypilot){var n=new DayPilot.Navigator(this.id);this.daypilot=n;for(var a in e)n[a]=e[a];n.Init(),t||(t=n)}});return 1===this.length?t:n}}(jQuery),function(){var e=DayPilot.am();e&&e.directive("daypilotNavigator",["$parse",function(e){return{"restrict":"E","template":"<div id='{{id}}'></div>","compile":function(t,n){return t.replaceWith(this["template"].replace("{{id}}",n["id"])),function(t,n,a){var i=new DayPilot.Navigator(n[0]);i.xa.scope=t,i.init();var r=a["id"];r&&(t[r]=i);var o=a["publishAs"];if(o){(0,e(o).assign)(t,i)}for(var s in a)if(0===s.indexOf("on")){var l=DayPilot.Util.shouldApply(s);l?!function(n){i[n]=function(i){var r=e(a[n]);t["$apply"](function(){r(t,{"args":i})})}}(s):!function(n){i[n]=function(i){e(a[n])(t,{"args":i})}}(s)}var d=t["$watch"],c=a["config"]||a["daypilotConfig"],u=a["events"]||a["daypilotEvents"];d.call(t,c,function(e){for(var t in e)i[t]=e[t];i.update()},!0),d.call(t,u,function(e){i.events.list=e,i.ia(),i.Nd()},!0)}}}}])}(),DayPilot.Navigator.def={},"undefined"!=typeof Sys&&Sys.Application&&Sys.Application.notifyScriptLoaded&&Sys.Application.notifyScriptLoaded()}}(DayPilot),function(DayPilot){function e(e){var t=e.touches[0].pageX,n=e.touches[0].pageY,a={};return a.x=t,a.y=n,a}if("undefined"==typeof DayPilot.Scheduler){var t={},n=function(){},a=!1,i=function(){return document.body},r=function(){return document.createElement("div")};DayPilot.Scheduler=function(a,o){this.v="${v}";var s=this;this.isScheduler=!0,this.id=a,this.beforeCellRenderCaching=!0,this.businessBeginsHour=9,this.businessEndsHour=18,this.businessWeekends=!1,this.cellDuration=60,this.cellGroupBy="Day",this.cellSweeping=!0,this.cellSweepingCacheSize=1e3,this.cellWidth=40,this.cellsMarkBusiness=!0,this.cornerText=null,this.cornerHtml=null,this.cssClassPrefix="scheduler_default",this.days=1,this.durationBarHeight=3,this.durationBarVisible=!0,this.dynamicEventRendering="Progressive",this.dynamicEventRenderingMargin=50,this.dynamicEventRenderingMarginX=null,this.dynamicEventRenderingMarginY=null,this.dynamicEventRenderingCacheSweeping=!1,this.dynamicEventRenderingCacheSize=200,this.eventBorderRadius=null,this.eventEndSpec="DateTime",this.eventHeight=35,this.eventMinWidth=1,this.eventPadding=null,this.eventResizeMargin=5,this.eventTapAndHoldHandling="Move",this.eventTextWrappingEnabled=!1,this.eventsLoadMethod="GET",this.floatingEvents=!DayPilot.browser.ios,this.floatingTimeHeaders=!0,this.headerHeight=30,this.heightSpec="Max",this.height=600,this.locale="en-us",this.progressiveRowRendering=!0,this.progressiveRowRenderingPreload=25,this.rowHeaderWidth=80,this.rowMarginTop=0,this.rowMarginBottom=0,this.rowsLoadMethod="GET",this.scale="CellDuration",this.scrollDelayEvents=200,this.scrollDelayCells=DayPilot.browser.ios?100:0,this.scrollDelayFloats=0,this.scrollDelayRows=0,this.showToolTip=!0,this.snapToGrid=!0,this.startDate=DayPilot.Date.today(),this.tapAndHoldTimeout=300,this.timeHeaders=[{"groupBy":"Default"},{"groupBy":"Cell"}],this.timeHeaderTextWrappingEnabled=!1,this.timeFormat="Auto",this.useEventBoxes="Always",this.visible=!0,this.weekStarts="Auto",this.width=null,this.xssProtection="Enabled",this.zoomLevels=[],this.zoomPosition="left",this.eventClickHandling="Enabled",this.eventDeleteHandling="Disabled",this.eventMoveHandling="Update",this.eventResizeHandling="Update",this.eventRightClickHandling="ContextMenu",this.timeHeaderClickHandling="Enabled",this.timeHeaderRightClickHandling="Enabled",this.timeRangeClickHandling="Enabled",this.timeRangeSelectedHandling="Enabled",this.onEventClick=null,this.onEventClicked=null,this.onEventMove=null,this.onEventMoved=null,this.onEventResize=null,this.onEventResized=null,this.onRowClick=null,this.onRowClicked=null,this.onTimeHeaderClick=null,this.onTimeHeaderClicked=null,this.onTimeHeaderRightClick=null,this.onTimeHeaderRightClicked=null,this.onTimeRangeClick=null,this.onTimeRangeClicked=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.onBeforeCellRender=null,this.onBeforeCornerRender=null,this.onBeforeEventRender=null,this.onBeforeRowHeaderRender=null,this.onBeforeTimeHeaderRender=null,this.onScroll=null,this.onAfterUpdate=null,this.R=!1,this.me=-1,this.ne=!0,this.rowlist=[],this.events={},this.cells={},this.elements={},this.elements.events=[],this.elements.bars=[],this.elements.text=[],this.elements.cells=[],this.elements.linesVertical=[],this.elements.range=[],this.elements.timeHeader=[],this.Ib={},this.Ib.cells=[],this.Ib.linesVertical={},this.Ib.linesHorizontal={},this.Ib.timeHeaderGroups=[],this.Ib.timeHeader={},this.Ib.events=[],this.nav={},this.S={};var l=this.S;this.oe={};var d=s.oe;this.pe={};var c=this.pe,u={};this.scrollTo=function(e){s.qe(e)},this.qe=function(e){if(e){if(!s.Ra)return void(s.se=e);var t;if(e instanceof DayPilot.Date)t=this.getPixels(e).left;else if("string"==typeof e)t=this.getPixels(new DayPilot.Date(e)).left;else{if("number"!=typeof e)throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");t=e}var n=s.te.clientWidth,a=s.nav.scroll.clientWidth;t<0&&(t=0),t>n-a&&(t=n-a),s.ve(t)}},this.scrollToResource=function(e){DayPilot.complete(function(){
18
18
  var t;if("string"==typeof e||"number"==typeof e)t=s.we(e);else{if(!(e instanceof DayPilot.Row))throw new DayPilot.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");t=s.we(e.id)}t&&setTimeout(function(){var e=t.top;s.nav.scroll.scrollTop=e},100)})},this.xe=function(){if(this.floatingTimeHeaders&&this.timeHeader){var e=s.Sa();if(e){s.ye();for(var t=e.pixels.left,n=e.pixels.right+e.sw,a=[],i=0;i<this.timeHeader.length;i++)for(var r=0;r<this.timeHeader[i].length;r++){var o=this.timeHeader[i][r],l=o.left,d=o.left+o.width,c=null;if(l<t&&t<d&&(c={},c.x=r,c.y=i,c.marginLeft=t-l,c.marginRight=0,c.div=s.Ib.timeHeader[r+"_"+i],a.push(c)),l<n&&n<d){c||(c={},c.x=r,c.y=i,c.marginLeft=0,c.div=s.Ib.timeHeader[r+"_"+i],a.push(c)),c.marginRight=d-n;break}}for(var u=0;u<a.length;u++){var c=a[u];s.ze(c.div,c.marginLeft,c.marginRight)}s.Ae()}}},this.Be=function(){s.xe(),s.Ce()},this.De={};var h=s.De;h.Ee=function(e,t,n,a){var i=e,r=e+n,o=t,l=t+a;return s.elements.events.filter(function(e){var t=e.event,n=t.part.left,a=t.part.left+t.part.width,d=s.rowlist[t.part.dayIndex],c=d.top+t.part.top,u=c+s.eventHeight;if(DayPilot.Util.overlaps(n,a,i,r)&&DayPilot.Util.overlaps(c,u,o,l))return!0})},h.Fe=function(){var e=[],t=s.Sa();if(!t)return e;for(var n=t.pixels.left,a=0;a<s.elements.events.length;a++){var i=s.elements.events[a],r=i.event,o=r.part.left,l=r.part.left+r.part.width;o<n&&n<l&&e.push(i)}return e.area=t,e},this.Ce=function(){if(this.floatingEvents){var e=h.Fe();s.Ge=performance.now(),e.forEach(function(t){var n=t.event,a=e.area.pixels.left,i=n.part.left,r=a-i;s.He(t,r,0)}),s.Ie()}},this.elements.sections=[],this.elements.hsections=[],this.ze=function(e,t,n){var a;if(e.section){var i=e.section;return i.style.left=t+"px",i.style.right=n+"px",void(e.Je=!1)}var o=r();o.className=s.M("_timeheader_float"),o.style.position="absolute",o.style.left=t+"px",o.style.right=n+"px",o.style.top="0px",o.style.bottom="0px",o.style.overflow="hidden";var l=r();l.className=s.M("_timeheader_float_inner"),e.Ke=l;var d=e.cell.th,c=!0,u=null===(a=e.domArgs)||void 0===a?void 0:a.element;if(u){var h=l;if(DayPilot.Util.isReactComponent(u)){if(!s.Za.reactDOM)throw new DayPilot.Exception("Can't reach ReactDOM");s.Za.db(u,h),c=!1}}if(c&&(l.innerHTML=s.jb(d.text,d.innerHTML)),d.fontColor&&(l.style.color=d.fontColor),o.appendChild(l),o.Le={marginLeft:t,marginRight:n},e.section=o,e.insertBefore(o,e.firstChild.nextSibling),u){var f=e.firstChild&&e.firstChild.firstChild;f&&setTimeout(function(){f.style.display="none"},0)}else e.firstChild.innerHTML="";this.elements.hsections.push(e)},this.ye=function(){for(var e=0;e<this.elements.hsections.length;e++){this.elements.hsections[e].Je=!0}},this.Ae=function(){for(var e=[],t=0;t<this.elements.hsections.length;t++){var n=this.elements.hsections[t];if(n.Je){var a=n.cell;if(a&&n.firstChild)if(n.domArgs&&n.domArgs.element){var i=n.firstChild&&n.firstChild.firstChild;i&&(i.style.display="");var r=s.Za.reactDOM&&DayPilot.Util.isReactComponent(n.domArgs.element);if(r){var o=n.Ke;s.Za.$a(o)}}else n.firstChild.innerHTML=s.jb(a.th.text,a.th.innerHTML);DayPilot.de(n.section),n.section=null,n.Je=!1}else e.push(n)}this.elements.hsections=e},this.He=function(e,t,n){var a,i,o=e.section;if(o)return o.Le&&o.Le.marginLeft===t&&o.Le.marginRight===n?void(o.Le.stamp=s.Ge):(e.section.style.left=t+"px",e.section.style.right=n+"px",void(o.Le={marginLeft:t,marginRight:n,stamp:s.Ge}));o=r(),o.className=s.M("_event_float"),o.style.position="absolute",o.style.left=t+"px",o.style.right=n+"px",o.style.top="0px",o.style.bottom="0px",o.style.overflow="hidden";var l=r();l.className=s.M("_event_float_inner"),l.innerHTML=e.event.client.html(),o.appendChild(l);var d=null===(a=e.domArgs)||void 0===a?void 0:a.element;if(o.Le={marginLeft:t,marginRight:n,stamp:s.Ge},e.section=o,e.insertBefore(o,e.firstChild.nextSibling),d){var c=null===(i=null===e||void 0===e?void 0:e.firstChild)||void 0===i?void 0:i.firstChild;c&&(c.style.display="none")}else e.firstChild.innerHTML="";var u=e.event,h=u.cache||u.data;h.fontColor&&(l.style.color=h.fontColor),this.elements.sections.push(e)},this.Ie=function(){for(var e,t=[],n=0;n<this.elements.sections.length;n++){var a=this.elements.sections[n];if(a.section&&a.section.Le&&a.section.Le.stamp===s.Ge)t.push(a);else{var i=a.event;if(i)if(a.domArgs&&a.domArgs.element){var r=null===(e=null===a||void 0===a?void 0:a.firstChild)||void 0===e?void 0:e.firstChild;r&&(r.style.display="")}else a.firstChild.innerHTML=i.client.html();DayPilot.de(a.section),a.section=null}}this.elements.sections=t},this.setScrollX=function(e){s.Me.enabled?(s.Me.scrollXRequested=e,setTimeout(function(){var e=s.Me.scrollXRequested;"number"==typeof e&&s.ve(e)},0)):s.ve(e)},this.ve=function(e){var t=s.nav.scroll,n=s.Ne();t.clientWidth+e>n&&(e=n-t.clientWidth),s.divTimeScroll.scrollLeft=e,t.scrollLeft=e},this.setScrollY=function(e){s.Me.enabled?(s.Me.scrollYRequested=e,setTimeout(function(){var e=s.Me.scrollYRequested;"number"==typeof e&&s.Oe(e)},0)):s.Oe(e)},this.Oe=function(e){var t=s.nav.scroll,n=s.me;t.clientHeight+e>n&&(e=n-t.clientHeight),s.divResScroll.scrollTop=e,t.scrollTop=e},this.setScroll=function(e,t){s.setScrollX(e),s.setScrollY(t)},this.na=function(){if(this.nav.scroll){!function(){var e=s.Ne();s.te.style.height=s.me+"px",s.te.style.width=e+"px",e>s.nav.scroll.clientWidth?s.nav.scroll.style.overflowX="auto":s.nav.scroll.style.overflowX="hidden"}();var e=1;this.nav.scroll.style.height="30px";var t=this.gb(),n=t+this.Pe()+e;if(t>=0&&(this.nav.scroll.style.height=t+"px",this.Qe.style.height=t+"px"),this.nav.divider&&((!n||isNaN(n)||n<0)&&(n=0),this.nav.divider.style.height=n+"px"),this.nav.top.style.height=n+"px",s.nav.resScrollSpace){var a=30;"Auto"===s.heightSpec&&(a=DayPilot.sh(s.nav.scroll)),s.nav.resScrollSpace.style.height=a+"px"}for(var i=0;i<this.elements.linesVertical.length;i++)this.elements.linesVertical[i].style.height=this.me+"px"}},this.Re=function(){this.startDate=new DayPilot.Date(this.startDate).getDatePart(),this.timeHeader=[];var e=this.timeHeaders;e||(e=[{"groupBy":this.cellGroupBy},{"groupBy":"Cell"}]);for(var t=s.startDate.addDays(s.days),n=0;n<e.length;n++){var a=e[n].groupBy,i=e[n].format;"Default"===a&&(a=this.cellGroupBy);for(var r=[],o=s.startDate;o.ticks<t.ticks;){var d={};if(d.start=o,d.end=this.Se(d.start,a),d.start.ticks===d.end.ticks)break;d.left=this.getPixels(d.start).left;var c=this.getPixels(d.end).left,u=c-d.left;if(d.width=u,"string"==typeof i?d.text=d.start.toString(i,l.Te()):d.text=this.Ue(d,a),u>0){if("function"==typeof this.onBeforeTimeHeaderRender){var h={};h.start=d.start,h.end=d.end,h.text=d.text,h.html=null,h.toolTip=s.jb(d.text),h.backColor=null,h.fontColor=null,h.level=this.timeHeader.length,h.cssClass=null;var f={};f.header=h,f.control=s,this.onBeforeTimeHeaderRender(f),d.text=h.text,d.html=h.html,d.backColor=h.backColor,d.fontColor=h.fontColor,d.toolTip=h.toolTip,d.areas=h.areas,d.cssClass=h.cssClass}r.push(d)}o=d.end}this.timeHeader.push(r)}},this.getPixels=function(e){var t=e.ticks-this.startDate.ticks,n=s.Lb(t),a=s.cellWidth,i=Math.floor(n/a),r=i*a;r=r<0?0:r;var o=r+a;n%a===0&&(o=r);var l=s.Ne();return o=o>l?l:o,{left:n,boxLeft:r,boxRight:o,i:i}},this.getDate=function(e,t,n){var a=this.Ve(e,n);if(!a)return null;var i=a.x,r=s.We(i);if(!r)return null;var o=n&&!t?r.end:r.start;return t?o.addTime(this.Xe(a.offset)):o},this.Ve=function(e,t){t&&(e-=1);var n=Math.floor(e/s.cellWidth),a=s.We(n);if(!a)return null;var i={};return i.x=n,i.offset=e%s.cellWidth,i.cell=a,i},this.Ye=function(e){var t=e.ticks-this.startDate.ticks,n=60*s.Ze()*1e3;if(t<0)return{past:!0};var a=Math.floor(t/n);return{i:a,current:s.We(a)}},this.Lb=function(e){var t=60*s.Ze()*1e3,n=s.cellWidth;return Math.floor(n*e/t)},this.Xe=function(e){var t=60*s.Ze()*1e3,n=s.cellWidth;return Math.floor(e/n*t)},this.$e=function(e){DayPilot.Global.touch.start||t._e||(s.af={},s.wa(this,e))},this.wa=function(e,t){e.event&&s.bf(e,t)},this.ya=function(e){if(!DayPilot.Global.touch.active&&!DayPilot.Global.touch.start){var t=this.event;if(e.cancelBubble=!0,e.preventDefault(),!this.event.client.rightClickEnabled())return!1;s.cf(e);var n={};if(n.e=t,n.div=this,n.originalEvent=e,n.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onEventRightClick&&(s.onEventRightClick(n),n.preventDefault.value))return!1;switch(s.eventRightClickHandling){case"ContextMenu":var a=t.client.contextMenu();a?a.show(t):s.contextMenu&&s.contextMenu.show(this.event)}return"function"==typeof s.onEventRightClicked&&s.onEventRightClicked(n),!1}},this.We=function(e){var t=s.Ze(),n=60*t*1e3,a=new DayPilot.Date(s.startDate);return{start:a.addTime(e*n),end:a.addTime((e+1)*n),left:e*s.cellWidth,width:s.cellWidth}},this.bf=function(e,t){if("boolean"==typeof t)throw new DayPilot.Exception("Invalid _eventClickSingle parameters");var n=e.event;if(n){var a=t.ctrlKey,i=t.metaKey;if(n.client.clickEnabled()){s.cf(t);var r={};r.e=n,r.control=s,r.div=e,r.originalEvent=t,r.ctrl=a,r.meta=i,r.shift=t.shiftKey,r.preventDefault=function(){this.preventDefault.value=!0},r.toJSON=function(){return DayPilot.Util.copyProps(r,{},["e","ctrl","meta","shift"])},"function"==typeof s.onEventClick&&(s.onEventClick(r),r.preventDefault.value)||"function"==typeof s.onEventClicked&&s.onEventClicked(r)}}},this.za=function(e){var t={};if(t.e=e,t.preventDefault=function(){this.preventDefault.value=!0},t.control=s,t.toJSON=function(){return DayPilot.Util.copyProps(t,{},["e"])},"function"!=typeof s.onEventDelete||(s.onEventDelete(t),!t.preventDefault.value)){switch(s.eventDeleteHandling){case"Update":s.events.remove(e)}"function"==typeof s.onEventDeleted&&s.onEventDeleted(t)}},this.getScrollX=function(){return this.nav.scroll.scrollLeft},this.getScrollY=function(){return this.nav.scroll.scrollTop},this.L=function(e,t,n,a,i){function r(){if(!o.preventDefault.value){switch(o.loaded={},t=o.newStart,n=o.newEnd,s.eventResizeHandling){case"Update":s.ef(o)}"function"==typeof s.onEventResized&&s.onEventResized(o)}}if("Disabled"!==this.eventResizeHandling){n=s.df(n);var o={};o.e=e,o.async=!1,o.loaded=function(){r()},o.ctrl=!1,o.meta=!1,o.shift=!1,o.alt=!1,i&&(o.shift=i.shiftKey,o.ctrl=i.ctrlKey,o.meta=i.metaKey,o.alt=i.altKey),o.newStart=t,o.newEnd=n,o.what=a,o.preventDefault=function(){this.preventDefault.value=!0},o.control=s,o.toJSON=function(){return DayPilot.Util.copyProps(o,{},["e","async","newStart","newEnd"])},"function"==typeof s.onEventResize&&s.onEventResize(o),o.async||r()}},this.Bb=function(e){e=e||{},clearTimeout(s.ff),s.timeHeader=null,s.cellProperties={},s.Re(),s.gf(),s.events.hf(),s.S.Wd(),s.clearSelection(),s.ia(),s.if(),s.jf(),s.ob(),s.Cb(),s.kf(),s.lf(),s.mf(),s.ja(),s._(),s.nf(),s.of={},s.pf(),s.na(),s.qf(),e.immediateEvents?s.oa():setTimeout(function(){s.oa()},100),this.visible?s.ne!==s.visible&&this.show():this.hide(),this.ne=this.visible,this.Be(),s.rf(),this.sf()},this.sf=function(){if("function"==typeof s.onAfterUpdate){var e={};s.onAfterUpdate(e)}},this.update=function(e){if(!s.Ra)throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized.");if(s.R)throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable.");u.request(e)},u.timeout=null,u.options=null,u.enabled=!1,u.request=function(e){u.enabled?(clearTimeout(u.timeout),u.tf(e),u.timeout=setTimeout(u.doit)):(u.tf(e),u.doit())},u.tf=function(e){if(e){u.options||(u.options={});for(var t in e)u.options[t]=e[t]}},u.doit=function(){var e=u.options;return u.options=null,s.Ra?(s.Db(e),s.Bb({"immediateEvents":!0}),void s.Gb()):void s.Db(e)},this.uf=function(e){e.forEach(function(e){s.vf(e.index)})},this.wf=function(e){return e&&0!==e.length?e[0].isRow?e:e.map(function(e){return s.rowlist[e]}):[]},this.xf=function(e,t,n){e=DayPilot.ua(e),e=s.wf(e),s.uf(e),this.yf?(this.if(),this.lf(),this.nf(),e.forEach(function(e){s.zf(e.index)}),e.forEach(function(e){s.Af(e.index)}),this.qf(),this.Bf()):(e.forEach(function(e){t||s.zf(e.index),s.Af(e.index)}),e.forEach(function(e){s.Cf(e.index)}),s.qf()),s.Ce(),n&&n(),this.pf()},this.df=function(e){return"DateTime"===s.eventEndSpec?e:e.getDatePart().ticks===e.ticks?e.addDays(-1):e.getDatePart()},this.Df=function(e){return"DateTime"===s.eventEndSpec?e:e.getDatePart().addDays(1)},this.Ef=function(e){return"DateTime"===s.eventEndSpec?e:e.getDatePart()},this.N=function(e,t,n,a,i){if(s.Ff=null,"Disabled"!==s.eventMoveHandling){n=s.df(n);var r={};r.e=e,r.newStart=t,r.newEnd=n,r.newResource=a,r.ctrl=!1,r.meta=!1,r.shift=!1,r.alt=!1,i&&(r.shift=i.shiftKey,r.ctrl=i.ctrlKey,r.meta=i.metaKey,r.alt=i.altKey),r.control=s,r.areaData=DayPilot.Global.movingAreaData,r.toJSON=function(){return DayPilot.Util.copyProps(r,{},["e","newStart","newEnd","newResource","ctrl","meta","shift"])},r.preventDefault=function(){this.preventDefault.value=!0};var o=function(){if(r.loaded=function(){},r.preventDefault.value)return void s.Gf();switch(t=r.newStart,n=r.newEnd,s.eventMoveHandling){case"Update":s.ef(r)}s.Gf(),"function"==typeof s.onEventMoved&&s.onEventMoved(r)};r.async=!1,r.loaded=function(){o()},"function"==typeof s.onEventMove&&s.onEventMove(r),r.async||o()}},this.ef=function(e){var t=e.e,n=e.newStart,a=e.newEnd,i=e.newResource;t.start(n),t.end(a),t.resource(i),s.events.update(t),s.events.Hf()},this.If=function(e){if(e)if(e.args)s.P(e.args.start,e.args.end,e.args.resource);else{var t=s.Jf(e);if(!t)return;s.P(t.start,t.end,t.resource)}},this.P=function(e,t,n){if("Disabled"!==s.timeRangeSelectedHandling){var a=t;t=s.df(a);var i={};if(i.control=s,i.start=e,i.end=t,i.resource=n,i.preventDefault=function(){this.preventDefault.value=!0},i.toJSON=function(){return DayPilot.Util.copyProps(i,{},["start","end","resource"])},"function"==typeof s.onTimeRangeSelect){if(s.onTimeRangeSelect(i),i.preventDefault.value)return;e=i.start,t=i.end}t=s.Df(t),s.Kf(s.Lf,e,t),s.Mf(s.Lf),"function"==typeof s.onTimeRangeSelected&&s.onTimeRangeSelected(i)}},this.Kf=function(e,t,n){if(e){var a,i=n;t.getTime()<s.startDate.getTime()?(e.start.x=0,e.start.time=s.startDate.getTime()):(a=s.Ye(t),e.start.x=a.i,e.start.time=t);var r=s.startDate.addDays(s.days);i.getTime()>r.getTime()?(e.end.x=s.Nf(),e.end.time=r.getTime()):(a=s.Ye(i.addMilliseconds(-1)),e.end.x=a.i,e.end.time=n)}},this.Of=function(e,t){s.Pf(e,t)},this.Pf=function(e,t){var n={};n.resource=e,n.row=e,n.ctrl=t.ctrlKey,n.shift=t.shiftKey,n.meta=t.metaKey,n.originalEvent=t,n.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onRowClick&&(s.onRowClick(n),n.preventDefault.value)||"function"==typeof s.onRowClicked&&s.onRowClicked(n)},this.Qf=function(e){var t={};t.header=e,t.control=s,t.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onTimeHeaderClick&&(s.onTimeHeaderClick(t),t.preventDefault.value)||"function"==typeof s.onTimeHeaderClicked&&s.onTimeHeaderClicked(t)},this.getViewport=function(){var e=this.nav.scroll.scrollLeft,t=this.nav.scroll.scrollTop,n={},a=s.Rf(e,t),i=s.Sf(a),r=s.We(a.start.x),o=s.We(a.end.x);return n.start=s.getDate(e,!0),n.end=s.getDate(e+s.nav.scroll.clientWidth,!0,!0),n.resources=i,r&&(n.topLeft={"start":r.start,"end":r.end,x:a.start.x,y:a.start.y,"resource":i[0]}),o&&(n.bottomRight={"start":o.start,"end":o.end,x:a.end.x,y:a.end.y,"resource":i[i.length-1]}),n.rows=function(){return n.resources.map(function(e){return s.rows.find(e)})},n.events=function(){var e=[];return n.rows().forEach(function(t){e=e.concat(t.events.forRange(n.start,n.end))}),e},n},this.Rf=function(e,t){var n={};n.start={},n.end={};var a=s.Ve(e),i=s.Ve(e+s.nav.scroll.clientWidth);a&&(n.start.x=a.x),i&&(n.end.x=i.x);var r=t,o=t+s.nav.scroll.clientHeight;n.start.y=s.Tf(r).i,n.end.y=s.Tf(o).i,n.start.x=DayPilot.Util.atLeast(n.start.x,0);var l=s.Nf();return n.end.x>=l&&(n.end.x=l-1),n},this.Sf=function(e){e||(e=this.Rf(this.nav.scroll.scrollLeft,this.nav.scroll.scrollTop));var t=[];t.ignoreToJSON=!0;for(var n=e.start.y;n<=e.end.y;n++){var a=s.rowlist[n];a&&t.push(a.id)}return t},this.M=function(e){var t=this.theme||this.cssClassPrefix;return t?t+e:""},this.Cb=function(){s.nav.top.className!==s.M("_main")&&(s.nav.top.className=s.M("_main"),s.nav.dh1.className=s.M("_divider_horizontal"),s.nav.dh2.className=s.M("_divider_horizontal"),s.divResScroll.className=s.M("_rowheader_scroll"),s.nav.divider.className=s.M("_divider")+" "+s.M("_splitter"),s.nav.scroll.className=s.M("_scrollable"),s.te.className=s.M("_matrix")+" "+s.M("_grid_main"))},this.ca=function(){this.nav.top.dispose=this.dispose},this.dispose=function(){var e=s;if(e.Ra&&!e.R){e.R=!0;for(var n in e.Uf){var a=e.Uf[n];DayPilot.isArray(a)?a.forEach(function(e){clearTimeout(e)}):clearTimeout(a)}e._(),e.divCells=null,e.divCorner=null,e.divEvents=null,e.divHeader&&(e.divHeader.rows=null),e.divHeader=null,e.divLines=null,e.divNorth=null,e.divRange=null,e.divResScroll=null,e.divStretch=null,e.divTimeScroll=null,e.Qe=null,e.te.calendar=null,e.te=null,e.nav.top.onmousemove=null,e.nav.top.onmouseout=null,e.nav.top.dispose=null,e.nav.top.ontouchstart=null,e.nav.top.ontouchmove=null,e.nav.top.ontouchend=null,e.nav.top.removeAttribute("style"),e.nav.top.removeAttribute("class"),e.nav.top.innerHTML="",e.nav.top.dp=null,e.nav.top=null,e.nav.scroll.onscroll=null,e.nav.scroll.root=null,e.nav.scroll=null,t.Bc(e),c=null}},this.disposed=function(){return s.R},this.da=function(e){var t=null;t=e.nodeType?e.event:e;var n=s.eventBorderRadius;"number"==typeof n&&(n+="px");var a=s.Vf(t),i=s.rowlist,o=s.eventHeight,l=t.part&&t.part.top&&i[t.part.dayIndex]?t.part.top+i[t.part.dayIndex].top:a.top,d=a.left,c=a.width,u=document.createElement("div");u.style.position="absolute",u.style.width=c+"px",u.style.height=o+"px",u.style.left=d+"px",u.style.top=l+"px",u.style.overflow="hidden";var h=r();return u.appendChild(h),u.className=this.M("_shadow"),h.className=this.M("_shadow_inner"),n&&(u.style.borderRadius=n,h.style.borderRadius=n),s.divShadow.appendChild(u),u.calendar=s,u},this.Tf=function(e){for(var t,n=s.rowlist,a={},i=0,r=0,o=n.length,l=0;l<o;l++){var d=n[l];if(r+=d.height,i=r-d.height,t=d,a.top=i,a.bottom=r,a.i=l,a.element=t,e<r)break}return a},this.Wf=function(e){if(e>this.rowlist.length-1)throw new DayPilot.Exception("Row index too high");for(var t=0,n=0;n<=e;n++)t+=this.rowlist[n].height;var a=this.rowlist[e];return{top:t-a.height,height:a.height,bottom:t,i:e,data:a}},this.events.find=function(e){if(!s.events.list||"undefined"==typeof s.events.list.length)return null;if("function"==typeof e)return s.Xf(e);for(var t=s.events.list.length,n=0;n<t;n++)if(s.events.list[n].id===e)return new DayPilot.Event(s.events.list[n],s);return null},this.events.findAll=function(e){if("function"==typeof e){for(var t=s.events.list.length,n=[],a=0;a<t;a++){var i=new DayPilot.Event(s.events.list[a],s);e(i)&&n.push(i)}return n}if("object"==typeof e)return s.events.findAll(function(t){for(var n in e)if(e[n]!==t.data[n])return!1;return!0});throw new DayPilot.Exception("function or object argument expected")},this.Xf=function(e){for(var t=s.events.list.length,n=0;n<t;n++){var a=new DayPilot.Event(s.events.list[n],s);if(e(a))return a}return null},this.events.focus=function(e){var t=s.Yf(e);null===t||void 0===t?void 0:t.focus()},this.events.scrollIntoView=function(e){if(s.Yf(e)){var t=e.start(),n=s.getViewport();!DayPilot.Util.overlaps(n.start,n.end,e.start(),e.end())&&DayPilot.Util.overlaps(s.ta(),s.Zf(),e.start(),e.end())&&s.scrollTo(t,"fast","middle");var a=e.resource();s.getViewport().resources.indexOf(a)===-1&&s.scrollToResource(a)}},this.events.all=function(){for(var e=[],t=0;t<s.events.list.length;t++){var n=new DayPilot.Event(s.events.list[t],s);e.push(n)}return e},this.events.forRange=function(e,t){e=e?new DayPilot.Date(e):s.visibleStart(),t=t?new DayPilot.Date(t):s.visibleEnd();for(var n=[],a=0;a<s.events.list.length;a++){var i=new DayPilot.Event(s.events.list[a],s);DayPilot.Util.overlaps(i.start(),i.end(),e,t)&&n.push(i)}return n},this.events.load=function(e,t,n){if(!e)throw new DayPilot.Exception("events.load(): 'url' parameter required");var a=function(e){var t={};t.exception=e.exception,t.request=e.request,"function"==typeof n&&n(t)},i=function(e){var n,i=e.request;try{n=JSON.parse(i.responseText)}catch(e){var r={};return r.exception=e,void a(r)}if(DayPilot.isArray(n)){var o={};if(o.preventDefault=function(){this.preventDefault.value=!0},o.data=n,"function"==typeof t&&t(o),o.preventDefault.value)return;s.events.list=o.data,s.Ra&&s.update()}};if(s.eventsLoadMethod&&"POST"===s.eventsLoadMethod.toUpperCase())DayPilot.ajax({"method":"POST","contentType":"application/json","data":{"start":s.visibleStart().toString(),"end":s.visibleEnd().toString()},"url":e,"success":i,"error":a});else{var r=e,o="start="+s.visibleStart().toString()+"&end="+s.visibleEnd().toString();r+=r.indexOf("?")>-1?"&"+o:"?"+o,DayPilot.ajax({"method":"GET","url":r,"success":i,"error":a})}},this.events.$f=function(e){var t=[];return s.rowlist.forEach(function(n){s._f(n.index);for(var a=0;a<n.events.length;a++){var i=n.events[a].data;if(s.ag(i,e)){t.push(n),n.events.splice(a,1);break}}}),t},this.events.bg=function(e){if(!e)return null;for(var t=s.rowlist,n=0;n<t.length;n++){var a=t[n];s._f(a.index);for(var i=0;i<a.events.length;i++){var r=a.events[i];if(s.ag(r.data,e))return a.events[i]}}return null},this.events.cg=function(e){var t=[],n=s.dg(),a=DayPilot.indexOf(s.events.list,e);s.Jb(a);var i=s.rowlist,r=!1;return i.forEach(function(i){if(!r){s._f(i.index);var o=s.eg(e,i);o&&("function"==typeof s.onBeforeEventRender&&(o.cache=s.Ib.events[a]),t.push(i),n||(r=!0))}}),t},this.ag=function(e,t){return DayPilot.Util.isSameEvent(e,t)},this.events.update=function(e){if("object"==typeof e&&!(e instanceof DayPilot.Event)){var t=s.events.find(e.id);return s.events.remove(t),void s.events.add(e)}if(s.events.list.find(function(t){return s.ag(t,e.data)})){s.Me.fg&&(s.Me.skip=!0);var n=s.events.$f(e.data);e.commit(),n=n.concat(s.events.cg(e.data)),s.events.gg(n)}},this.events.remove=function(e){if(e){if("string"==typeof e||"number"==typeof e){var t=s.events.find(e);return void s.events.remove(t)}var n=s.hg(e.data);n&&s.events.list.splice(n.index,1),s.Me.fg&&(s.Me.skip=!0);var a=s.events.$f(e.data);s.events.gg(a)}},this.events.add=function(e,t,n){n=n||{};var a=n.renderOnly;e instanceof DayPilot.Event||(e=new DayPilot.Event(e)),e.calendar=s,s.events.list||(s.events.list=[]);var i=s.hg(e);if(a){if(!i)throw new DayPilot.Exception("Unexpected: event not found in list")}else{if(i)throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");i||s.events.list.push(e.data)}if(s.Ra){s.Me.fg&&(s.Me.skip=!0);var r=s.events.cg(e.data);s.events.gg(r)}},this.events.ig=function(e){var t=e instanceof DayPilot.Event?e.data:e,n=new DayPilot.Date(t.start),a=new DayPilot.Date(t.end);return!!s.events.list.find(function(e){if(s.ag(t,e))return!1;if(t.resource!==e.resource)return!1;var i=new DayPilot.Date(e.start),r=new DayPilot.Date(e.end);return DayPilot.Util.overlaps(n,a,i,r)})},this.events.jg={"rows":[]},this.events.kg=null,this.events.hf=function(){clearTimeout(s.events.kg),s.events.kg=null,s.events.jg.rows=[]},this.events.lg=0,this.events.gg=function(e){var t=s.events.jg.rows;e.forEach(function(e){t.push(e)}),s.events.jg.rows=DayPilot.ua(t);var n=s.events.Hf;s.events.kg||(s.events.kg=setTimeout(n,s.events.lg))},this.events.Hf=function(){clearTimeout(s.events.kg),s.events.kg=null;var e=s.events.jg.rows;s.events.jg.rows=[],s.mg(e),s.ng(),s.Ra&&(s.yf&&s.if(),s.na(),s.xf(e))},this.Me={},this.Me.enabled=!1,this.Me.skip=!1,this.Me.skipUpdate=function(){return s.Me.skip},this.Me.skipped=function(){s.Me.skip=!1},this.Me.og=!1,this.Me.fg=!1,this.pg=function(e){var t=s.startDate;if(e.ticks===t.ticks)return e;var n=t;if(e.ticks<t.ticks){for(;n.ticks>e.ticks;)n=n.addTime(60*-s.Ze()*1e3);return n}var a=this.Ye(e);if(a.current)return a.current.start;throw new DayPilot.Exception("getBoxStart(): time not found")},this.Vf=function(e){var n=this.Tf(s.coords.y);if("function"!=typeof e.end)throw new DayPilot.Exception("e.end function is not defined");if(!e.end())throw new DayPilot.Exception("e.end() returns null");var a=DayPilot.DateUtil.diff(e.rawend(),e.start());a=DayPilot.Util.atLeast(a,1);var i=l.qg(a),r=0,o=s.coords.x;i&&(r=e.start().getTime()-this.pg(e.start()).getTime());var d=0;if(t.rg)if(i){var c=e.start(),u=this.pg(c);d=t.rg.getTime()-u.getTime();var h=60*s.Ze()*1e3;d=Math.floor(d/h)*h}else d=t.rg.getTime()-e.start().getTime();var f=this.getDate(o,!0).addTime(-d);t.sg&&(f=e.start());var v=s.snapToGrid;v&&(f=this.pg(f)),f=f.addTime(r);var p=f.addTime(a),m=f,g=p,y=this.getPixels(m),b=this.getPixels(g),w=v?y.boxLeft:y.left,x=v&&i?b.boxRight-w:b.left-w,_={};return _.top=n.top,_.left=w,_.row=n.element,_.rowIndex=n.i,_.width=x,_.start=f,_.end=p,_.relativeY=s.coords.y-n.top,_},this.Ze=function(){switch(this.scale){case"CellDuration":return this.cellDuration;case"Minute":return 1;case"Hour":return 60;case"Day":return 1440;case"Week":return 10080}throw new DayPilot.Exception("can't guess cellDuration value")},this.tg=function(e){return e.end.ticks-e.start.ticks},this.ug=function(){var e=t.vg.width,n=t.vg.left,a=t.wg,i=t.sg.dpBorder,r=null,o=null,l=s.snapToGrid,d=!l;"left"===i?(r=s.getDate(n,d),o=a.rawend()):"right"===i&&(r=a.start(),o=s.getDate(n+e,d,!0)),t.vg.start=r,t.vg.end=o},this.xg=function(){var e=s.coords,n=t.sg.dpBorder,a=t.sg.event,i=a.part.left;"right"===n&&(i+=a.part.width);var r,o,l=t.sg.event.calendar.cellWidth,d=a.part.width,c=a.part.left,u=0,h=e.x-i,f=s.snapToGrid;if("right"===n){if(r=c,f){var v=s.Ve(d+c+h).cell,p=s.Ve(c).cell,m=p.left+p.width-c;o=v.left+v.width-c,o<m&&(o=m)}else o=d+h;var g=s.Ne();c+o>g&&(o=g-c),t.vg.left=c,t.vg.width=o,t.vg.style.left=c+"px",t.vg.style.width=o+"px"}else{if("left"!==n)throw new DayPilot.Exception("Invalid dpBorder.");f?(h>=d&&(h=d),r=Math.floor((c+h+0)/l)*l,r<u&&(r=u)):r=c+h,o=d-(r-c);var y=c+d,b=l;f?"Never"===s.useEventBoxes&&(b=d<l?d:1):b=1,o<b&&(o=b,r=y-o),t.vg.left=r,t.vg.width=o,t.vg.style.left=r+"px",t.vg.style.width=o+"px"}s.ug()},this.yg=function(){if(s.coords&&t.zg){var e=t.Ag,n=this.Vf(t.zg);e.row=n.row,e.style.height=DayPilot.Util.atLeast(n.row.height,0)+"px",e.style.top=n.top+"px",e.style.left=n.left+"px",e.style.width=n.width+"px",e.start=n.start,e.end=n.end}},this.Bg=function(){return this.rowHeaderWidth},this.Cg=function(){return this.Dg(s.progressiveRowRenderingPreload)},this.Dg=function(e){e=e||0;var t=0,n=s.rowlist.length;if(s.progressiveRowRendering){var a=s.Sa();t=a.yStart,n=a.yEnd+1,t=DayPilot.Util.atLeast(0,t-e),n=Math.min(s.rowlist.length,n+e)}return{"start":t,"end":n}},this.jf=function(){function e(){var e=s.divHeader;e&&(e.rows=[]);var t=e;t&&(t.innerHTML="")}this.Eg=!0;var t=this.Bg();e();var a=this.divHeader;if(a.style.width=t+"px",a.style.height=s.me+"px",s.divHeader=a,s.progressiveRowRendering)n();else for(var i=this.rowlist.length,r=0;r<i;r++)s.Fg(r);s.Gg(),this.divResScroll.appendChild(a)},this.Hg=function(){if(s.progressiveRowRendering)for(var e=this.Cg(),t=0;t<s.rowlist.length;t++)e.start<=t&&t<e.end?s.Fg(t):s.Ig(t)},this.Gg=function(){if(!s.S.Jg()){var e=s.divHeader,t=r();t.style.position="absolute",e.appendChild(t),s.nav.resScrollSpace=t;var n=r();n.style.position="relative",n.style.height="100%",n.className=this.M("_rowheader"),t.appendChild(n);var a=this.Bg();t.style.width=a+"px",t.style.top=this.me+"px"}},this.Ig=function(e){var t=s.divHeader.rows[e];t&&(DayPilot.de(t),s.divHeader.rows[e]=null)},this.vf=function(e){this.Ig(e),this.Fg(e)},this.Fg=function(e){var t=s.rowlist,n=s.divHeader;if(n&&!n.rows[e]){var a=this.Bg(),i=t[e];if(i){var o=this.Kg(i),l=r();l.style.position="absolute",l.style.top=i.top+"px",n.rows[e]=l,l.row=i,l.index=e;var d=o.row,c=this.rowHeaderWidth;l.style.width=c+"px",l.style.border="0px none";var u=d.toolTip||d.toolTip;u&&(l.title=u),"undefined"!=typeof d.ariaLabel?l.setAttribute("aria-label",d.ariaLabel):l.setAttribute("aria-label",d.text||""),l.onclick=s.Lg;var h=r();h.style.width=c+"px",h.className=this.M("_rowheader"),d.cssClass&&DayPilot.Util.addClass(h,d.cssClass),d.cssClass&&DayPilot.Util.addClass(h,d.cssClass);var f=d.backColor||d.backColor;f&&(h.style.background=f);var v=d.fontColor||d.fontColor;v&&(h.style.color=v);var p=d.horizontalAlignment||d.horizontalAlignment;p&&(h.style.textAlign=p),h.style.height=i.height+"px",h.style.overflow="hidden",h.style.position="relative";var m=r();switch(m.className=this.M("_rowheader_inner"),p){case"right":m.style.justifyContent="flex-end";break;case"left":m.style.justifyContent="flex-start";break;case"center":m.style.justifyContent="center"}h.appendChild(m);var g=d.areas||[],y=s.Mg(i);DayPilot.Areas.attach(h,y,{areas:g});var b=r();b.style.position="absolute",b.style.bottom="0px",b.style.width="100%",b.style.height="0px",b.style.boxSizing="content-box",b.style.borderBottom="1px solid transparent",b.className=this.M("_resourcedivider"),h.appendChild(b);var w=r(),x=r();x.innerHTML=s.jb(d.text,d.html),x.className=s.M("_rowheader_inner_text"),l.textDiv=x,l.cellDiv=h,w.appendChild(x),m.appendChild(w);var _=d.verticalAlignment||d.verticalAlignment;if(_)switch(m.style.display="flex",_){case"center":m.style.alignItems="center";break;case"top":m.style.alignItems="flex-start";break;case"bottom":m.style.alignItems="flex-end"}l.appendChild(h),n.appendChild(l),h.style.width=a+"px"}}},this.Lg=function(e){var t=this.row,n=s.Mg(t,this.index);s.Of(n,e)},this.Ng=function(){if("Disabled"!==s.timeHeaderClickHandling){var e={};e.start=this.cell.start,e.level=this.cell.level,e.end=this.cell.end,e.end||(e.end=new DayPilot.Date(e.start).addMinutes(s.Ze())),s.Qf(e)}},this.Og=function(e){if("Disabled"!==s.timeHeaderRightClickHandling){e.cancelBubble=!0,e.preventDefault();var t={};t.start=this.cell.start,t.level=this.cell.level,t.end=this.cell.end,t.end||(t.end=new DayPilot.Date(t.start).addMinutes(s.Ze()));var n={};n.header=t,n.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onTimeHeaderRightClick&&(s.onTimeHeaderRightClick(n),n.preventDefault.value)||"function"==typeof s.onTimeHeaderRightClicked&&s.onTimeHeaderRightClicked(n)}},this.Mg=function(e){return new DayPilot.Row(e,s)},this._f=function(e){var t=s.rowlist,n=t[e];n.events||n.resetEvents()},this.Pg={},this.ia=function(e){if(e?this.events.list=e:this.events.list||(this.events.list=[]),null!=this.events.list&&!DayPilot.isArray(this.events.list))throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object");c.prepareRows(!0);var t,n=this.events.list,a="function"==typeof this.onBeforeEventRender;s.Pg={};for(var i=0;i<n.length;i++){var r=n[i];if(r){if("object"!=typeof r)throw new DayPilot.Exception("Event data item must be an object");if(!r.start)throw new DayPilot.Exception("Event data item must specify 'start' property");if(r instanceof DayPilot.Event)throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");if(!("string"==typeof r.id||"number"==typeof r.id))throw new DayPilot.Exception("All events must have an id property (string or number)");var o="_"+r.id;if(s.Pg[o])throw new DayPilot.Exception("Duplicate event IDs are not allowed: "+o);s.Pg[o]=!0,a&&this.Jb(i),t=s.Qg(r.resource);for(var l=0;t&&l<t.length;l++){var d=t[l],u=this.eg(r,d);u&&a&&(u.cache=this.Ib.events[i])}}}s.rowlist.forEach(function(e){s.Rg(e)}),s.ng()},c.rowcache={},c.prepareRows=function(e){c.rowcache={};for(var t=s.rowlist,n=0;n<t.length;n++){var a=t[n];if(e&&a.resetEvents(),s._f(a.index),a.id){var i=typeof a.id+"_"+a.id;c.rowcache[i]||(c.rowcache[i]=[]),c.rowcache[i].push(a)}}},this.Qg=function(e){var t=typeof e+"_"+e;return c.rowcache[t]||[]},this.dg=function(){for(var e={},t=0;t<s.rowlist.length;t++){var n=s.rowlist[t],a=n.id;if(e[a])return!0;e[a]=!0}return!1;
19
19
  },this.Jb=function(e){var t=this.Ib.events,n=this.events.list[e],a={};n instanceof DayPilot.Event&&(n=n.data);for(var i in n)a[i]=n[i];if("string"==typeof a.start&&(a.start=new DayPilot.Date(a.start)),"string"==typeof a.end&&(a.end=new DayPilot.Date(a.end)),"function"==typeof this.onBeforeEventRender){var r={};r.e=a,r.data=a,this.onBeforeEventRender(r)}t[e]=a},this.Rg=function(e){e.lines=[],e.sections=null,e.events.sort(this.Kb);for(var t=0;t<e.events.length;t++){var n=e.events[t];e.putIntoLine(n)}},this.mg=function(e){e=DayPilot.ua(e),e=s.wf(e),e.forEach(function(e){s.Rg(e)}),e.forEach(function(e){s.Sg(e)})},this.eg=function(e,t){var n=new DayPilot.Date(e.start),a=new DayPilot.Date(e.end);a=s.Df(a);var i=n.ticks,r=a.ticks,o=s.startDate.ticks,d=s.startDate.addDays(s.days).ticks;if(r<i)return null;var c=null;if("function"==typeof s.onBeforeEventRender){var u=DayPilot.indexOf(s.events.list,e);c=s.Ib.events[u]}if(t.id!==e.resource||(r<=o||i>=d)&&(i!==r||i!==o))return null;var h=new DayPilot.Event(e,s);h.part.dayIndex=s.rowlist.indexOf(t),h.part.start=o<i?n:s.startDate,h.part.end=d>r?a:s.startDate.addDays(s.days);var f=this.getPixels(h.part.start),v=this.getPixels(h.part.end);h.part.start===h.part.end&&(v=this.getPixels(h.part.end.addMilliseconds(1)));var p=f.left,m=v.left;if(l.qg(r-i)){var g=f.boxLeft,y=v.boxRight;h.part.left=g,h.part.width=y-g,h.part.barLeft=Math.max(p-h.part.left,0),h.part.barWidth=Math.max(m-p,1)}else h.part.left=p,h.part.width=Math.max(m-p,1),h.part.barLeft=0,h.part.barWidth=Math.max(m-p,1);var b=s.eventMinWidth;return h.part.width=Math.max(h.part.width,b),h.part.right=h.part.left+h.part.width,h.cache=c,t.events.push(h),h},this.Kb=function(e,t){if(!(e&&t&&e.start&&t.start))return 0;var n=e.start().ticks-t.start().ticks;return 0!==n?n:t.end().ticks-e.end().ticks},this.rows={},this.rows.all=function(){for(var e=[],t=0;t<s.rowlist.length;t++){var n=s.Mg(s.rowlist[t]);e.push(n)}return e},this.rows.each=function(e){s.rows.all().forEach(e)},this.rows.forEach=function(e){s.rows.all().forEach(e)},this.rows.find=function(e,t){if("string"==typeof e||"number"==typeof e||!e&&t){var n=s.Qg(e);e||(n=s.rowlist);var a=null;return"string"==typeof t||t instanceof DayPilot.Date?(t=new DayPilot.Date(t),a=n.find(function(e){return t===e.start})):a=n[0],a?new DayPilot.Row(a,s):null}if("function"!=typeof e)throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected");var i=t||0,r=s.rowlist.find(function(t,n){return!(n<i)&&e(s.Mg(t))});if(r)return s.Mg(r)},this.rows.load=function(e,t,n){if(!e)throw new DayPilot.Exception("rows.load(): 'url' parameter required");var a=function(e){var t={};t.exception=e.exception,t.request=e.request,"function"==typeof n&&n(t)},i=function(e){var n,i=e.request;try{n=JSON.parse(i.responseText)}catch(e){var r={};return r.exception=e,void a(r)}if(DayPilot.isArray(n)){var o={};if(o.preventDefault=function(){this.preventDefault.value=!0},o.data=n,"function"==typeof t&&t(o),o.preventDefault.value)return;s.resources=o.data,s.Ra&&s.update()}};s.rowsLoadMethod&&"POST"===s.rowsLoadMethod.toUpperCase()?DayPilot.ajax({"method":"POST","url":e,"success":i,"error":a}):DayPilot.ajax({"method":"GET","url":e,"success":i,"error":a})},this.rows.remove=function(e){if("number"==typeof e||"string"==typeof e){var t=s.rows.find(e);if(!t)throw new DayPilot.Exception("The row to be removed was not found");return void s.rows.remove(t)}var n=e.$.row.resource,a=DayPilot.indexOf(s.resources,n);s.resources.splice(a,1),s.update()},this.rows.add=function(e){s.resources.push(e),s.Bb()},this.rows.update=function(e){if(!(e instanceof DayPilot.Row||"object"==typeof e))throw new DayPilot.Exception("DayPilot.Scheduler.rows.update() expects a DayPilot.Row object or a data object.");if(!(e instanceof DayPilot.Row)){var t=e;if(e=s.rows.find(t.id),!e)return;e.data=t}var n=e.index,a=s.rowlist,i=a[n],r=e.data,o=s.Tg(r),l=s.Ug(o);l.level=i.level,l.index=n,l.top=i.top,l.height=i.height,a[n]=l,l.resetEvents(),s._f(l.index),s.Vg(l),s.Rg(l),s.vf(l.index),s.nf(),s.qf()},this.Vg=function(e){for(var t=s.events.list,n=t.length,a="function"==typeof s.onBeforeEventRender,i=0;i<n;i++){var r=t[i];if(r){if(r instanceof DayPilot.Event)throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");if(r.resource===e.id){a&&this.Jb(i);var o=this.eg(r,e);o&&a&&(o.cache=this.Ib.events[i])}}}},this.gf=function(){var e=this.resources;if({}.i=0,null!=e&&!DayPilot.isArray(e))throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object");e=e||[],s.rowlist=[],this.Wg(e)},this.ta=function(){return new DayPilot.Date(this.startDate)},this.Zf=function(){return new DayPilot.Date(s.startDate).addDays(s.days)},this.visibleStart=function(){return this.ta()},this.visibleEnd=function(){return this.Zf()},this.Ug=function(e){var t={};return t.backColor=e.backColor,t.fontColor=e.fontColor,t.cssClass=e.cssClass,t.name=e.name,t.html=s.jb(e.name,e.html),t.id=e.id,t.toolTip=e.toolTip,t.areas=e.areas,t.tags=e.tags,t.height=s.eventHeight,t.level=0,t.resource=e.Le,t.lines=[],t.isRow=!0,t.getHeight=function(){return Math.max(s.eventHeight,this.lines.length*s.eventHeight)},t.resetEvents=function(){var e=t;e.events=[],e.events.forRange=function(t,n){t=new DayPilot.Date(t),n=n?new DayPilot.Date(n):s.startDate.addDays(s.days);for(var a=[],i=0;i<e.events.length;i++){var r=e.events[i],o=s.Df(r.end());DayPilot.Util.overlaps(r.start(),o,t,n)&&a.push(r)}return a}},t.Xg=function(){var e=[];return e.add=function(e){this.push(e)},e.isFree=function(e,t,n){for(var a=e+t-1,i=this.length,r=0;r<i;r++){var o=this[r];if(!(a<o.part.left||e>o.part.left+o.part.width-1)){if(DayPilot.contains(n,o.data))continue;return!1}}return!0},e},t.findFreeLine=function(e,n){for(var a=0;a<this.lines.length;a++){if(this.lines[a].isFree(e,n))return a}var i=t.Xg();return this.lines.push(i),this.lines.length-1},t.putIntoLine=function(e){var n=t.findFreeLine(e.part.left,e.part.width);return this.lines[n].add(e),n},t},this.Wg=function(e){if(e)for(var t=s.rowlist,n=0;n<e.length;n++)if(e[n]){var a={};a.index=n;var i=this.Tg(e[n],a),r=s.Ug(i,parent);r.index=n,t.push(r)}},this.Kg=function(e){var t={};return t.row=this.Mg(e),DayPilot.Util.copyProps(e,t.row,["html","backColor","fontColor","cssClass","toolTip","areas"]),"function"==typeof this.onBeforeRowHeaderRender&&this.onBeforeRowHeaderRender(t),t},this.Tg=function(e,t){var n={get $data(){return this.Le}};for(var a in t)n[a]=t[a];for(var i in e)n[i]=e[i];return n.html=s.jb(e.name,e.html),n.Le=e,n},this.Yg=function(){this.nav.top.dp=this,this.nav.top.innerHTML="",DayPilot.Util.addClass(this.nav.top,this.M("_main")),this.nav.top.setAttribute("role","region"),this.nav.top.setAttribute("aria-label","scheduler"),this.nav.top.style.userSelect="none",this.nav.top.style.webkitUserSelect="none",this.nav.top.style.WebkitTapHighlightColor="rgba(0,0,0,0)",this.nav.top.style.WebkitTouchCallout="none",this.width&&(this.nav.top.style.width=this.width),this.nav.top.style.lineHeight="1.2",this.nav.top.style.position="relative",this.visible||(this.nav.top.style.display="none"),this.nav.top.ontouchstart=d.Zg,this.nav.top.ontouchmove=d.$g,this.nav.top.ontouchend=d._g;var e=this.rowHeaderWidth,t=r();t.style.position="absolute",t.style.left="0px",t.style.width=e+"px";var n=r();n.style.height="0px",n.style.boxSizing="content-box",n.style.borderTop="1px solid transparent",n.className=this.M("_divider_horizontal"),this.nav.dh1=n,this.nav.left=t,t.appendChild(this.pb()),t.appendChild(n),t.appendChild(this.ah());var a=r();a.style.position="absolute",a.style.left=e+"px",a.style.width="1px",a.style.height=this.Pe()+this.gb()+"px",a.className=this.M("_splitter"),this.nav.divider=a;var i=r();i.style.marginLeft=e+1+"px",i.style.position="relative",this.nav.right=i;var o=r();o.style.position="absolute",o.style.top=this.Pe()+"px",o.style.width="100%",o.style.height="1px",o.style.boxSizing="border-box",o.style.borderBottom="1px solid transparent",o.setAttribute("data-dh2","true"),o.className=this.M("_divider_horizontal"),this.nav.dh2=o,i.appendChild(s.bh()),i.appendChild(s.ch()),i.appendChild(o);var l=r();l.style.clear="left";var c=r();c.style.height="1px",c.style.position="absolute",c.style.left="0px",c.style.right="0px",c.style.display="none",c.className=this.M("_divider_horizontal"),this.nav.dividerTop=c;var u=r();u.style.height="1px",u.style.position="absolute",u.style.left="0px",u.style.right="0px",u.style.display="none",u.className=this.M("_divider_horizontal")+" "+this.M("_divider_horizontal_frozen_bottom"),this.nav.dividerBottom=u,this.nav.top.appendChild(t),this.nav.top.appendChild(a),this.nav.top.appendChild(i),this.nav.top.appendChild(l),this.nav.top.appendChild(c),this.nav.top.appendChild(u)},this.ja=function(){var e=this.Pe();this.nav.corner&&(this.nav.corner.style.height=e+"px"),this.divTimeScroll&&(this.divTimeScroll.style.height=e+"px"),this.divNorth&&(this.divNorth.style.height=e+"px"),this.nav.dh1&&this.nav.dh2&&(this.nav.dh1.style.top=e+"px",this.nav.dh2.style.top=e+"px"),this.nav.scroll.style.top=e+1+"px"},this.dh=function(){var e=this.rowHeaderWidth;this.nav.corner&&(this.nav.corner.style.width=e+"px"),this.divResScroll.style.width=e+"px",this.nav.left.style.width=e+"px",this.nav.divider.style.left=e-1+"px",this.nav.right.style.marginLeft=e+"px"},this.eh=function(){var e=this.rowHeaderWidth,t=this.divHeader;t.style.width=e+"px";for(var n=s.Cg(),a=n.start;a<n.end;a++){var i=t.rows[a];if(i){var r=s.rowHeaderWidth;i.style.width=r+"px";i.firstChild.style.width=r+"px"}}s.nav.resScrollSpace&&(s.nav.resScrollSpace.style.width=e+"px")},this.mf=function(){this.dh(),this.eh()},this.pb=function(){var e=this.rowHeaderWidth,t=r();s.nav.corner=t,t.style.width=e+"px",t.style.height=this.Pe()+"px",t.style.overflow="hidden",t.style.position="relative",t.oncontextmenu=function(){return!1},t.className=this.M("_corner");var n=r();return n.style.position="absolute",n.style.top="0px",n.style.left="0px",n.style.right="0px",n.style.bottom="0px",n.className=this.M("_corner_inner"),n.innerHTML="&nbsp;",this.divCorner=n,t.appendChild(n),t},this.Pe=function(){return s.timeHeaders?s.timeHeaders.length*s.headerHeight:0},this.fh=null,this.ah=function(){var e=r();e.style.width=this.rowHeaderWidth+"px",e.style.height=this.gb()+"px",e.style.overflow="hidden",e.style.position="relative",e.className=s.M("_rowheader_scroll");var n=s.S.Jg();n&&(e.style.overflowY="auto"),e.ontouchstart=function(){t.gh=!0},e.oncontextmenu=function(){return!1},e.onscroll=function(){if(s.fh&&clearTimeout(s.fh),n){var a=function(){var t=s.hh()-s.nav.scroll.offsetHeight;e.scrollTop=Math.min(e.scrollTop,t),s.nav.scroll.scrollTop=e.scrollTop};DayPilot.browser.ios?t.gh&&(s.fh=setTimeout(a,10)):s.fh=setTimeout(a,10)}else s.fh=setTimeout(function(){s.nav.scroll.scrollTop=e.scrollTop},500)},e.setAttribute("role","region"),e.setAttribute("aria-label","scheduler rows");var a=r();return this.divHeader=a,e.appendChild(a),this.divResScroll=e,this.Qe=e,e},this.ih=null,this.jh=null,this.kh=function(){var e=function(){s.lh(),s.rf()},t=function(){var t=s.nav.top;if(t){if(!s.ih)return s.ih={},void(s.ih.width=t.offsetWidth);s.ih.width!==t.offsetWidth&&(s.ih.width=t.offsetWidth,e())}};if(!s.jh){var n=new ResizeObserver(DayPilot.debounce(t,100));n.observe(s.nav.top),s.jh=n}},this.lh=function(){s.R||(s.na(),s.mh(),s.Ib.drawArea=null)},this.mh=function(){var e=s.Lf;s.clearSelection(),s.Lf=e,s.Mf(e,{"justDraw":!0})},this.bh=function(){var e=r();e.style.overflow="hidden",e.style.display="block",e.style.position="absolute",e.style.top="0px",e.style.width="100%",e.style.height=this.Pe()+"px",e.style.overflow="hidden",e.className=s.M("_timeheader_scroll"),this.divTimeScroll=e;var t=r();return t.style.width=this.Ne()+5e3+"px",this.divNorth=t,e.appendChild(t),e},this.gb=function(){var e=0,t=s.heightSpec;return"Fixed"===t?this.height?this.height:0:(e=s.hh(),"Max"===t&&e>s.height?s.height:e)},this.hh=function(){var e;return this.me!==-1?(e=this.me,this.me>0&&"auto"===s.nav.scroll.style.overflowX&&(e+=DayPilot.sh(s.nav.scroll)+1)):e=this.rowlist.length*s.eventHeight,e},this.ch=function(){var e=r();e.style.overflow="auto",e.style.overflowX="auto",e.style.overflowY="auto",e.style.height=this.gb()+"px",e.style.top=this.Pe()+1+"px",e.style.position="absolute",e.style.width="100%",e.className=this.M("_scrollable"),e.oncontextmenu=function(){return!1},this.nav.scroll=e,this.te=r();var t=this.te;t.style.userSelect="none",t.style.webkitUserSelect="none",t.calendar=this,t.style.position="absolute";var n=this.Ne();return n>0&&(t.style.width=n+"px"),t.onmousedown=this.nh,t.onmousemove=this.oh,t.onmouseup=this.ph,t.oncontextmenu=this.qh,t.className=this.M("_matrix"),this.divStretch=r(),this.divStretch.style.position="absolute",this.divStretch.style.height="1px",t.appendChild(this.divStretch),this.divCells=r(),this.divCells.style.position="absolute",this.divCells.oncontextmenu=this.qh,t.appendChild(this.divCells),this.divLines=r(),this.divLines.style.position="absolute",this.divLines.oncontextmenu=this.qh,t.appendChild(this.divLines),this.divSeparators=r(),this.divSeparators.style.position="absolute",this.divSeparators.oncontextmenu=this.qh,t.appendChild(this.divSeparators),this.divRange=r(),this.divRange.style.position="absolute",this.divRange.oncontextmenu=this.qh,t.appendChild(this.divRange),this.divEvents=r(),this.divEvents.style.position="absolute",t.appendChild(this.divEvents),this.divShadow=r(),this.divShadow.style.position="absolute",t.appendChild(this.divShadow),e.appendChild(t),e},this.Ab=function(){t.rh||(t.rh=!0,DayPilot.re(document,"mouseup",t.le),DayPilot.reNonPassive(document,"touchmove",t.uh),DayPilot.re(document,"touchend",t.vh))},this.wh=function(){this.nav.scroll.root=this,this.nav.scroll.onscroll=this.rf,s.xh=this.nav.scroll.scrollLeft,s.yh=this.nav.scroll.scrollTop,this.divNorth&&(s.zh=this.divNorth.clientWidth)},this.Ah={},this.Ah.step=300,this.Ah.delay=10,this.Ah.mode="display",this.Ah.layers=!1,this.Sg=function(e){for(var t=0,n=0;n<e.lines.length;n++){for(var a=e.lines[n],i=0;i<a.length;i++){var r=a[i];r.part.line=n,r.part.top=t+s.rowMarginTop,r.part.right=r.part.left+r.part.width}t+=s.eventHeight}},this.ff=null,this.oa=function(e){if(!s.R){var t=this.Ah.step;"display"===this.Ah.mode?this.divEvents.style.display="none":"visibility"===this.Ah.mode&&(this.divEvents.style.visibility="hidden"),this.divEvents.setAttribute("role","region"),this.divEvents.setAttribute("aria-label","scheduler events");var n="Progressive"===this.dynamicEventRendering,a=this.Sa(),i=a.pixels.top,r=a.pixels.bottom;s.rowlist.filter(function(e){var t=e.top-l.Bh(),a=t+e.height+2*l.Bh();return!n||!(a<=i||t>=r)}).forEach(function(n){s.Sg(n);for(var a=0;a<n.lines.length;a++)for(var i=n.lines[a],r=0;r<i.length;r++){var o=i[r],l=s.bb(o);if(e&&l&&(t--,t<=0))return s.divEvents.style.visibility="",s.divEvents.style.display="",void(s.ff=setTimeout(function(){s.oa(e)},s.Ah.delay))}}),this.divEvents.style.display="",this.Ce()}},this.Af=function(e){var t=s.rowlist[e];this.Sg(t);for(var n=0;n<t.lines.length;n++)for(var a=t.lines[n],i=0;i<a.length;i++){var r=a[i];this.bb(r)}},this._=function(){if(this.elements.events)for(var e=this.elements.events.length,t=0;t<e;t++){var n=this.elements.events[t];this.Va(n)}this.elements.events=[]},this.zf=function(e){if(this.elements.events){for(var t=this.elements.events.length,n=[],a=0;a<t;a++){var i=this.elements.events[a];i.event.part.dayIndex===e&&(this.Va(i),n.push(a))}for(var a=n.length-1;a>=0;a--)this.elements.events.splice(n[a],1)}},this.Va=function(e){var t=e.domArgs;if(e.domArgs=null,t&&"function"==typeof s.onBeforeEventDomRemove&&s.onBeforeEventDomRemove(t),t&&"function"==typeof s.onBeforeEventDomAdd){var n=t&&t.Wa;if(n){var a=s.Za.reactDOM&&DayPilot.Util.isReactComponent(t.element),i=s.Ya.Xa&&DayPilot.Util.isVueVNode(t.element);a?s.Za.$a(n):i&&(s.Ya._a=!0,s.Ya.ab(n),s.Ya._a=!1)}}e.remove(),e.onclick=null,e.oncontextmenu=null,e.onmouseover=null,e.onmouseout=null,e.onmousemove=null,e.onmousedown=null,e.ondblclick=null,e.event&&(e.event.rendered=null,e.event=null)},this.Ch=function(){if("Progressive"===this.dynamicEventRendering){if(s.dynamicEventRenderingCacheSweeping){var e=s.dynamicEventRenderingCacheSize||0;this.divEvents.style.display="none";for(var t=[],n=this.elements.events.length,a=n-1;a>=0;a--){var i=this.elements.events[a];this.Dh(i.event)?e>0?(e--,t.unshift(i)):this.Va(i):t.unshift(i)}this.elements.events=t,this.divEvents.style.display=""}}},this.Eh=function(e){for(var t=this.Sa(),n=this.elements.cells.length,a=n-1;a>=0;a--){var i=this.elements.cells[a];t.xStart<i.coords.x&&i.coords.x<=t.xEnd&&t.yStart<i.coords.y&&i.coords.y<=t.yEnd||(e>0?e--:this.qb(i))}},this.qb=function(e){if(e&&e.coords){var t=e.coords.x,n=e.coords.y;!function(){var t=e.domArgs;if(e.domArgs=null,t&&"function"==typeof s.onBeforeCellDomRemove&&s.onBeforeCellDomRemove(t),t&&"function"==typeof s.onBeforeCellDomAdd){var n=t&&t.Wa;if(n){var a=s.Za.reactDOM&&DayPilot.Util.isReactComponent(t.element),i=s.Ya.Xa&&DayPilot.Util.isVueVNode(t.element);a?s.Za.$a(n):i&&(s.Ya._a=!0,s.Ya.ab(n),s.Ya._a=!1)}}}(),DayPilot.rfa(s.elements.cells,e),DayPilot.de(e),s.Ib.cells[t+"_"+n]=null}},this.Fh=function(){var e="Progressive"===this.dynamicEventRendering;if(!this.nav.scroll)return!1;for(var t=this.nav.scroll.scrollTop-l.Bh(),n=t+this.nav.scroll.clientHeight+2*l.Bh(),a=0;a<this.rowlist.length;a++){var i=this.rowlist[a],r=i.top,o=i.top+i.height;if(!e||!(r>=n||o<=t))for(var s=0;s<i.lines.length;s++)for(var d=i.lines[s],c=0;c<d.length;c++){var u=d[c];if(this.Gh(u))return!0}}return!1},this.Gh=function(e){if(e.rendered)return!1;var t="Progressive"===this.dynamicEventRendering,n=this.nav.scroll.scrollLeft-l.Hh(),a=n+this.nav.scroll.clientWidth+2*l.Hh(),i=e.part.left,r=e.part.left+e.part.width;return!t||!(a<=i||n>=r)},this.Dh=function(e){if(!e.rendered)return!0;var t=this.Sa(),n=t.pixels.top,a=t.pixels.bottom,i=t.pixels.left-this.dynamicEventRenderingMargin,r=t.pixels.right+this.dynamicEventRenderingMargin,o=e.part.left,l=e.part.right,d=e.part.top,c=e.part.top+s.eventHeight;return r<=o||i>=l||(a<=d||n>=c)},this.bb=function(e,t){t=t||{};var n=t.forced;if(e.rendered)return!1;var a="Progressive"===this.dynamicEventRendering,i=e.part.dayIndex,o=s.divEvents,c=s.rowlist,u=c[i],h=u.top,f=this.Sa(),v=f.pixels.left-l.Hh(),p=f.pixels.right+l.Hh(),m=f.pixels.top,g=f.pixels.bottom,y=e.part.left,b=e.part.left+e.part.width,w=e.part.top+h,x=w+s.eventHeight,_=p<=y||v>=b,C=g<=w||m>=x;if(!n&&a&&(_||C))return!1;var k=e.part.width,D=s.eventHeight,M=e.cache||e.data,S=M.borderRadius||s.eventBorderRadius;"number"==typeof S&&(S+="px");var T=M.padding||s.eventPadding;"number"==typeof T&&(T+="px"),k=DayPilot.Util.atLeast(0,k),D=DayPilot.Util.atLeast(0,D);var E=r();E.style.position="absolute",E.style.left=e.part.left+"px",E.style.top=h+e.part.top+"px",E.style.width=k+"px",E.style.height=D+"px",s.eventTextWrappingEnabled||(E.style.whiteSpace="nowrap"),E.style.overflow="hidden",E.className=this.M("_event"),M.cssClass&&DayPilot.Util.addClass(E,M.cssClass);"number"==typeof e.part.line&&DayPilot.Util.addClass(E,this.M("_event_line"+e.part.line)),S&&(E.style.borderRadius=S),this.showToolTip&&(E.title=e.client.toolTip()||""),E.onmousemove=this.Ih,E.onmousedown=this.Jh,E.onmouseup=this.Kh,E.ontouchstart=d.Lh,E.ontouchmove=d.Mh,E.ontouchend=d.Nh,e.client.clickEnabled()&&(E.onclick=this.$e),"undefined"!=typeof M.ariaLabel?E.setAttribute("aria-label",M.ariaLabel):E.setAttribute("aria-label",M.text),E.setAttribute("tabindex","-1");var H=r();H.className=s.M("_event_inner"),S&&(H.style.borderRadius=S),T&&(H.style.padding=T),M.backColor&&(H.style.background=M.backColor),M.fontColor&&(H.style.color=M.fontColor),"darker"===M.borderColor&&M.backColor?H.style.borderColor=DayPilot.ColorUtil.darker(M.backColor,2):H.style.borderColor=M.borderColor,M.backImage&&(H.style.backgroundImage="url("+M.backImage+")",M.backRepeat&&(H.style.backgroundRepeat=M.backRepeat)),E.appendChild(H);var A=e.start().getTime()===e.part.start.getTime(),N=e.rawend().getTime()===e.part.end.getTime();if(A||DayPilot.Util.addClass(E,this.M("_event_continueleft")),N||DayPilot.Util.addClass(E,this.M("_event_continueright")),e.client.barVisible()&&k>0){var I=100*e.part.barLeft/k,R=Math.ceil(100*e.part.barWidth/k),P=r();P.className=this.M("_event_bar"),P.style.position="absolute",M.barBackColor&&(P.style.backgroundColor=M.barBackColor);var z=r();z.className=this.M("_event_bar_inner"),z.style.left=I+"%",0<R&&R<=1?z.style.width="1px":z.style.width=R+"%",M.barColor&&(z.style.backgroundColor=M.barColor),M.barImageUrl&&(z.style.backgroundImage="url("+M.barImageUrl+")"),P.appendChild(z),E.appendChild(P)}E.row=i,E.event=e,function(){if("function"!=typeof s.onBeforeEventDomAdd&&"function"!=typeof s.onBeforeEventDomRemove)return void s.Oh(H,M.text,M.html);var t={};if(t.control=s,t.e=e,t.element=null,E.domArgs=t,"function"==typeof s.onBeforeEventDomAdd&&s.onBeforeEventDomAdd(t),t.element){var n=H;if(n){t.Wa=n;var a=DayPilot.Util.isReactComponent(t.element),i=DayPilot.Util.isVueVNode(t.element);if(a){if(!s.Za.reactDOM)throw new DayPilot.Exception("Can't reach ReactDOM");s.Za.db(t.element,n)}else if(i){if(!s.Ya.Xa)throw new DayPilot.Exception("Can't reach Vue");s.Ya._a=!0,s.Ya.eb(t.element,n),s.Ya._a=!1}else n.appendChild(t.element)}}else H.innerHTML=e.client.innerHTML()}();var L=[];return function(){"Disabled"===s.eventDeleteHandling||M.deleteDisabled||L.push({v:"Hover",w:18,h:18,top:"calc(50% - 9px)",right:2,action:"None",css:s.M("_event_delete"),onClick:function(e){s.za(e.source)}})}(),M.areas&&(L=L.concat(M.areas)),DayPilot.Areas.attach(E,e,{areas:L}),this.elements.events.push(E),o.appendChild(E),e.rendered=!0,!0},this.jb=function(e,t){return s.S.ea()?DayPilot.Util.escapeTextHtml(e,t):DayPilot.Util.isNullOrUndefined(t)?DayPilot.Util.isNullOrUndefined(e)?"":e:t},this.Oh=function(e,t,n){DayPilot.Util.isNullOrUndefined(n)?null!==t&&void 0!==t&&(s.S.ea()?e.innerText=t:e.innerHTML=t):e.innerHTML=n},this.Bf=function(){for(var e=0;e<this.elements.events.length;e++){var t=this.elements.events[e],n=t.event,a=n.part.dayIndex,i=s.rowlist[a],r=i.top,o=r+n.part.top,l=i.height,d=s.eventHeight;n.part.top+d>l&&(d=Math.max(0,l-n.part.top)),t.style.top=o+"px",t.style.height=d+"px"}},this.Ph=function(e){if(!e)return null;for(var t=0;t<s.elements.events.length;t++){var n=s.elements.events[t];if(n.event===e||n.event.data===e.data)return n}return null},this.Yf=function(e){var t=s.events.bg(e.data);if(!t)return null;var n=s.rowlist[t.part.dayIndex];return s.Sg(n),s.bb(t,{"forced":!0}),s.Ph(t)},this.Ih=function(e){for(var t=e.currentTarget;t&&!t.event;)t=t.parentNode;s.Qh(t,e),s.cf(e)},this.af={},this.Jh=function(e){s.cf(e);var n=DayPilot.Util.mouseButton(e);e.preventDefault(),e.stopPropagation(),n.left&&("w-resize"===this.style.cursor||"e-resize"===this.style.cursor?(t._e=!0,t.sg=this,t.wg=this.event,t.Rh=DayPilot.mc(e),i().style.cursor=this.style.cursor):("move"===this.style.cursor||this.event.client.moveEnabled())&&s.Sh(this,e))},this.Kh=function(e){DayPilot.Util.mouseButton(e).right&&s.ya.call(this,e)},this.Sh=function(e,t){var n=s.af;s.cf(t),n.Th=!0,n.af=e,n.zg=e.event,n.Rh=DayPilot.mc(t),n.Uh=DayPilot.mo3(e,t).x,n.rg=s.getDate(s.coords.x,!0)},"undefined"==typeof DayPilot.Global.touch&&(DayPilot.Global.touch={}),DayPilot.Global.touch.active=!1,DayPilot.Global.touch.start=!1,d.Uf=[],d.relativeCoords=function(e){return d.Vh(e)};d.startResizing=function(e,t){d.Wh(e,t)};d.startMoving=function(e,t){d.Sh(e,t)},d.Lh=function(t){if(!DayPilot.Global.touch.active&&!DayPilot.Global.touch.start){t.stopPropagation(),d.Xh(),DayPilot.Global.touch.start=!0,DayPilot.Global.touch.active=!1;var n=t.currentTarget;s.coords=d.Vh(t);var a=s.tapAndHoldTimeout;d.Uf.push(setTimeout(function(){DayPilot.Global.touch.active=!0,DayPilot.Global.touch.start=!1,t.preventDefault();var a=n.event;switch(s.eventTapAndHoldHandling){case"Move":if(a.client.moveEnabled()){var i=e(t);d.Sh(n,i)}}},a))}},d.Mh=function(){d.Xh(),DayPilot.Global.touch.start=!1},d.Nh=function(e){if(!DayPilot.Util.isMouseEvent(e)){if(d.Xh(),DayPilot.Global.touch.start){DayPilot.Global.touch.start=!1,e.preventDefault(),e.stopPropagation();var t=e.currentTarget;setTimeout(function(){s.bf(t,e)})}setTimeout(function(){DayPilot.Global.touch.start=!1,DayPilot.Global.touch.active=!1},500)}},d.Zg=function(e){if(!(DayPilot.Global.touch.active||DayPilot.Global.touch.start||e.touches.length>1||"Disabled"===s.timeRangeSelectedHandling)){d.Xh(),DayPilot.Global.touch.start=!0,DayPilot.Global.touch.active=!1;var t=s.tapAndHoldTimeout;d.Uf.push(setTimeout(function(){DayPilot.Global.touch.active=!0,DayPilot.Global.touch.start=!1,"undefined"!=typeof DayPilot.Menu&&DayPilot.Menu.hide(),s.coords=d.Vh(e),d.Yh=s.Zh()},t));s.coords=d.Vh(e)}},d.$g=function(e){if(d.Xh(),DayPilot.Global.touch.start=!1,t.sg)return e.preventDefault(),void d.$h();if(DayPilot.Global.touch.active){if(e.preventDefault(),s.coords=d.Vh(e),t.af)return void d._h();if(d.Yh){var n=d.Yh;n.end={x:Math.floor(s.coords.x/s.cellWidth),"time":s.getDate(s.coords.x,!0)},s.Mf(n)}}},d.debug=function(){},d._g=function(e){d.Xh();if(DayPilot.Global.touch.active){if(t.af){e.preventDefault();var n=t.zg;if(s!==t.Ag.calendar)return;var a=t.Ag.start,r=t.Ag.end,o=t.Ag.row.id;DayPilot.Util.removeClass(t.af,s.M("_event_moving_source")),DayPilot.de(t.Ag),t.Ag.calendar=null,i().style.cursor="",t.af=null,t.zg=null,t.Ag=null,s.N(n,a,r,o)}if(d.Yh){var l=d.Yh;d.Yh=null;var c=s.elements.range2;c&&c.overlapping?s.clearSelection():s.If(l)}}else if(DayPilot.Global.touch.start){if(s.coords.x<s.getScrollX())return;var l=s.Zh();s.Mf(l);var c=s.elements.range2;c&&c.overlapping?s.clearSelection():s.If(l)}setTimeout(function(){DayPilot.Global.touch.start=!1,DayPilot.Global.touch.active=!1},500)},d.Xh=function(){for(var e=0;e<d.Uf.length;e++)clearTimeout(d.Uf[e]);d.Uf=[]},d.Vh=function(e){function t(e,t,n){var a=DayPilot.abs(n);return{x:e-a.x,y:t-a.y,toString:function(){return"x: "+this.x+", y:"+this.y}}}var n=s.te,a=e.touches?e.touches[0]:e;return t(a.pageX,a.pageY,n)},d.Sh=function(e,n){t.af=e,t.zg=e.event,t.Rh=n;var a=DayPilot.abs(e);t.Uh=n.x-a.x,t.rg=s.getDate(s.coords.x,!0),t.Ag=s.da(e),s.yg()},d.Wh=function(e,n){t.sg=e,t.wg=e.event,t.sg.dpBorder=n,t.vg||(t.vg=s.da(e)),s.xg()},d.$h=function(){if(!t.vg){var e=t.sg;t.vg=s.da(e)}s.xg()},d._h=function(){if(!t.Ag){var e=t.af;t.Ag=s.da(e)}t.Ag.calendar.yg()},this.Qh=function(e,n){var a=this.eventResizeMargin,i=e;if("undefined"!=typeof t){var r=DayPilot.mo3(e,n);if(r&&(s.eventOffset=r,!t.sg&&!t.af)){var o=i.event.part.start.toString()===i.event.start().toString(),l=i.event.part.end.toString()===i.event.rawend().toString();r.x<=a&&i.event.client.resizeEnabled()?o?(e.style.cursor="w-resize",e.dpBorder="left"):e.style.cursor="not-allowed":e.offsetWidth-r.x<=a&&i.event.client.resizeEnabled()?l?(e.style.cursor="e-resize",e.dpBorder="right"):e.style.cursor="not-allowed":t.sg||t.af||(i.event.client.clickEnabled()?e.style.cursor="pointer":e.style.cursor="default")}}},this.Nf=function(){var e=s.Ze();return s.days*(1440/e)},this.Jf=function(e){if(e=e||t.Yh||s.Lf,!e)return null;var n=s.rowlist[e.start.y];if(!n)return null;var a,i,r=e,o=r.end.time>r.start.time,l=n.id,d=o?r.start.x:r.end.x,c=o?r.end.x:r.start.x,u=s.snapToGrid;u?(a=s.We(d).start,i=s.We(c).end):o?(a=r.start.time,i=r.end.time):(a=r.end.time,i=r.start.time);var h=new DayPilot.Selection(a,i,l,s);return h.allowed=!e.div||!e.div.overlapping,h},this.kf=function(){this.Ib.timeHeader={},s.elements.timeHeader.length>0&&(s.elements.timeHeader=[]);var e=r();e.style.position="relative",this.nav.timeHeader=e;for(var t=0;t<this.timeHeader.length;t++)for(var n=this.timeHeader[t],a=0;a<n.length;a++)this.ai(a,t);var i=this.divNorth;1===i.childNodes.length?i.replaceChild(e,i.childNodes[0]):(i.innerHTML="",i.appendChild(e));var o=this.Ne();i.style.width=o+5e3+"px",o>0&&(this.divStretch.style.width=o+"px")},this.Ue=function(e,t){var n=null,a=this.S.Te();t=t||this.cellGroupBy;var i=e.start;switch(t){case"Minute":n=i.toString("m");break;case"Hour":n="Clock12Hours"===s.S.bi()?i.toString("h tt",a):i.toString("H",a);break;case"Day":n=i.toString(a.datePattern);break;case"Week":n=1===l.fa()?i.weekNumberISO():i.weekNumber();break;case"Month":n=i.toString("MMMM yyyy",a);break;case"Quarter":n="Q"+Math.floor(i.getMonth()/3+1);break;case"Year":n=i.toString("yyyy");break;case"None":n="";break;case"Cell":var r=(e.end.ticks-e.start.ticks)/6e4;n=this.ci(i,r);break;default:throw new DayPilot.Exception("Invalid groupBy value: "+t)}return n},this.ci=function(e,t){var n=this.S.Te();return t=t||this.cellDuration,t<1?e.toString("ss"):t<60?e.toString("mm"):t<1440?"Clock12Hours"===s.S.bi()?e.toString("h tt",n):e.toString("H",n):t<10080?e.toString("d"):10080===t?1===l.fa()?e.weekNumberISO():e.weekNumber():e.toString("MMMM yyyy",n)},this.Se=function(e,t,n){var a,i=s.startDate.addDays(s.days);t=t||this.cellGroupBy;var r=60;switch(t){case"Minute":e.getMinutes()+e.getSeconds()+e.getMilliseconds()>0&&(e=e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())),a=e.addMinutes(1);break;case"Hour":e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()>0&&(e=e.getDatePart().addHours(e.getHours())),a=e.addHours(1);break;case"Day":a=e.getDatePart().addDays(1);break;case"Week":for(a=e.getDatePart().addDays(1);a.dayOfWeek()!==l.fa();)a=a.addDays(1);break;case"Month":e=e.getDatePart(),a=e.addMonths(1),a=a.firstDayOfMonth();for(var o=DayPilot.DateUtil.diff(a,e)/6e4%r===0;!o;)a=a.addHours(1),o=DayPilot.DateUtil.diff(a,e)/6e4%r===0;break;case"Quarter":for(e=e.getDatePart(),a=e.addMonths(1),a=a.firstDayOfMonth();a.getMonth()%3;)a=a.addMonths(1);for(var o=DayPilot.DateUtil.diff(a,e)/6e4%r===0;!o;)a=a.addHours(1),o=DayPilot.DateUtil.diff(a,e)/6e4%r===0;break;case"Year":e=e.getDatePart(),a=e.addYears(1),a=a.firstDayOfYear();for(var o=DayPilot.DateUtil.diff(a,e)/6e4%r===0;!o;)a=a.addHours(1),o=DayPilot.DateUtil.diff(a,e)/6e4%r===0;break;case"None":a=i;break;case"Cell":var d=this.Ye(e);d.current&&(a=d.current.end);break;default:throw n?new DayPilot.Exception("Invalid scale value: "+t):new DayPilot.Exception("Invalid groupBy value: "+t)}return a.getTime()>i.getTime()&&(a=i),a},this.ai=function(e,t){var n=this.nav.timeHeader,a=this.timeHeader[t][e],i=t<this.timeHeader.length-1,o=a.left,l=a.width,d=t*s.headerHeight,c=s.headerHeight,u=r();u.style.position="absolute",u.style.top=d+"px",u.style.left=o+"px",u.style.width=l+"px",u.style.height=c+"px",a.toolTip&&(u.title=a.toolTip),u.setAttribute("aria-hidden","true"),a.cssClass&&DayPilot.Util.addClass(u,a.cssClass),u.style.userSelect="none",u.style.webkitUserSelect="none",u.oncontextmenu=function(){return!1},u.cell={},u.cell.start=a.start,u.cell.end=a.end,u.cell.level=t,u.cell.th=a,u.onclick=this.Ng,u.oncontextmenu=this.Og,DayPilot.rePassive(u,DayPilot.touch.start,function(e){e.stopPropagation()}),u.style.overflow="hidden",s.timeHeaderTextWrappingEnabled||(u.style.whiteSpace="nowrap");var h=r();h.innerHTML=s.jb(a.text,a.html),a.backColor&&(h.style.background=a.backColor),a.fontColor&&(h.style.color=a.fontColor);var f=this.M("_timeheadercol"),v=this.M("_timeheadercol_inner");i&&(f=this.M("_timeheadergroup"),v=this.M("_timeheadergroup_inner")),DayPilot.Util.addClass(u,f),DayPilot.Util.addClass(h,v),DayPilot.Util.addClass(u,s.M("_timeheader_cell")),DayPilot.Util.addClass(h,s.M("_timeheader_cell_inner")),u.appendChild(h),DayPilot.Areas.attach(u,a,{areas:a.areas}),this.Ib.timeHeader[e+"_"+t]=u,this.elements.timeHeader.push(u),n.appendChild(u)},this.ob=function(){var e=this.nav.corner;if(e){var t=this.divCorner;e.className=this.M("_corner"),t.className=this.M("_corner_inner"),function(){var e={};e.control=s,e.backColor=null,e.html=s.cornerHtml,e.text=s.cornerText,e.verticalAlignment=null,e.horizontalAlignment=null,e.areas=null,"function"==typeof s.onBeforeCornerRender&&s.onBeforeCornerRender(e);var t=s.divCorner;if(t){var n=s.jb(e.text,e.html),a=e.horizontalAlignment,i=e.verticalAlignment;
20
- if(t.innerHTML=n||"",e.backColor&&(t.style.background=e.backColor),a||i){switch(t.style.display="flex",a){case"right":t.style.justifyContent="flex-end";break;case"left":t.style.justifyContent="flex-start";break;case"center":t.style.justifyContent="center"}switch(i){case"center":t.style.alignItems="center";break;case"top":t.style.alignItems="flex-start";break;case"bottom":t.style.alignItems="flex-end"}}}e.areas&&DayPilot.Areas.attach(s.nav.corner,{},{"areas":e.areas})}()}},this.ng=function(){s.rowlist.forEach(function(e){var t=e.getHeight()+s.rowMarginTop+s.rowMarginBottom;e.height!==t&&(s.yf=!0),e.height=t}),s.yf&&(s.Ib.drawArea=null)},this.lf=function(){s.rowlist.forEach(function(e){var t=s.divHeader;if(t){var n=e.index;if(t.rows[n]){var a=t.rows[n];s.Eg&&(a.style.top=e.top+"px");var i=e.height;a&&a.firstChild&&parseInt(a.firstChild.style.height,10)!==i&&(a.firstChild.style.height=i+"px")}}}),s.Eg&&s.nav.resScrollSpace&&(s.nav.resScrollSpace.style.top=s.me+"px")},this.nh=function(e){if(DayPilot.Global.touch.start||DayPilot.Global.touch.active)return!1;if(s.cf(e),"Disabled"===s.timeRangeSelectedHandling)return!1;var n=DayPilot.Util.mouseButton(e);if("undefined"!=typeof DayPilot.Menu&&DayPilot.Menu.hide(),s.di())return!1;if(n.middle||n.right)return!1;if(s.ei(s.coords))return!1;var a=n.left?"left":n.right?"right":n.middle?"middle":"unknown";return s.fi=a,t.Yh=s.Zh(),t.Yh&&(t.gi=s),!1},this.Zh=function(){var e={},t=s.Ve(s.coords.x).x,n=s.getDate(s.coords.x,!0);return e.start={y:s.Tf(s.coords.y).i,x:t,"time":n},e.end={x:t,"time":n},e.calendar=s,s.Mf(e),e},this.ph=function(e){if(s.af={},s.Lf){if(DayPilot.Util.mouseButton(e).left){var n=s.Lf;if(s.ei(s.coords)){var a=function(e){return function(){t.hi=null;var n=s.Jf(e);if(n){var a={};a.start=n.start,a.end=n.end,a.resource=n.resource,a.preventDefault=function(){a.preventDefault.value=!0},"function"==typeof s.onTimeRangeClick&&s.onTimeRangeClick(a),a.preventDefault.value||"function"==typeof s.onTimeRangeClicked&&s.onTimeRangeClicked(a)}}};"Disabled"!==s.timeRangeClickHandling&&a(n)()}}}},this.di=function(){return!!(t.sg||t.af||t.Yh)||!!s.af.Th},this.dragInProgress=function(){return s.di()},this.cf=function(e){var t=DayPilot.mo3(s.te,e);t=t||{},t.stamp=t.x+"_"+t.y,s.coords&&s.coords.stamp===t.stamp||(s.coords=t)},this.oh=function(e){if(!DayPilot.Global.touch.active){var n=DayPilot.mc(e);if(s.cf(e),s.af.Th){DayPilot.distance(s.af.Rh,n)>2&&(DayPilot.Util.copyProps(s.af,t),i().style.cursor="move",s.af={})}t.sg&&t.wg.calendar===s?(t.sg.event||(t.sg.event=t.wg),s.ii()):t.zg?s.ji():t.Yh&&t.Yh.calendar===s&&(t.Yh.moved=!0,s.ki())}},this.ki=function(){var e=t.Yh,n=s.Ve(s.coords.x).x,a=s.getDate(s.coords.x,!0);e.end={x:n,"time":a},s.Mf(e)},this.ii=function(){t.vg||(t.vg=s.da(t.sg)),s.xg()},this.ji=function(){if(!t.Ag){DayPilot.Util.addClass(t.af,s.M("_event_moving_source"));var e=t.zg;t.Ag=s.da(e)}s.yg()},this.qh=function(e){return e.cancelBubble=!0,!1},this.ei=function(e){var t=s.Lf;if(!t||!t.start||!t.end)return!1;var n=this.Wf(t.start.y),a=t.start.x<t.end.x,i=(a?t.start.x:t.end.x)*this.cellWidth,r=(a?t.end.x:t.start.x)*this.cellWidth+this.cellWidth,o=n.top,l=n.bottom;return e.x>=i&&e.x<=r&&e.y>=o&&e.y<=l},this.Mf=function(e){function n(e){var t,n,l,d,c=e.end.time>e.start.time,u=e.start.y,h=e.start.time&&e.end.time;if(i||!h){var f=c?e.start.x:e.end.x,v=c?e.end.x:e.start.x,p=s.We(f),m=s.We(v);t=p.left,n=m.left+m.width}else c?(l=e.start.time,d=e.end.time):(l=e.end.time,d=e.start.time),t=s.getPixels(l).left,n=s.getPixels(d).left;var g=n-t,y=s.elements.range2;if(!y){y=r(),y.style.position="absolute";var b=r();b.className=s.M("_shadow_inner"),a&&(y.style.borderRadius=a,b.style.borderRadius=a),y.appendChild(b),s.divShadow.appendChild(y)}return y.className=s.M("_shadow"),y.firstChild.innerHTML="",y.style.left=t+"px",y.style.top=o[u].top+"px",y.style.width=g+"px",y.style.height=o[u].height-1+"px",y.calendar=s,s.elements.range2=y,y}if(e=e||t.Yh){var a=s.eventBorderRadius;"number"==typeof a&&(a+="px");var i=s.snapToGrid,o=s.rowlist;n(e)}},this.li=function(e){return{"start":{"x":e.start.x,"y":e.start.y,"time":e.start.time},"end":{"x":e.end.x,"time":e.end.time},"calendar":e.calendar,"args":e.args}},this.getCoords=function(){if(!s.coords)return null;var e={};e.x=s.coords.x,e.y=s.coords.y;var t=s.Tf(e.y,e.grid).element;return e.row=s.Mg(t),e.time=s.getDate(e.x,!0),e},this.zoom={},this.zoom.active=-1,this.zoom.setActive=function(e,t,n){var a;if("number"==typeof e)a=s.zoomLevels[e];else{if("string"!=typeof e)throw new DayPilot.Exception("Unexpected parameter type (string or number required): "+typeof e);var i=s.zoom.Oa(e);a=s.zoomLevels[i]}if(!a)throw new DayPilot.Exception("Zoom level not found: "+e+" ("+typeof e+")");(e!==s.zoom.active||n)&&(n||(n=s.zoom._d(t)),n&&(s.startDate=new DayPilot.Date(n).getDatePart()),s.zoom.Qa(e,n),s.Ra&&s.update(),n&&s.scrollTo(n,null,t||s.zoomPosition))},this.zoom.Oa=function(e){return(s.zoomLevels||[]).findIndex(function(t){return t.id===e})},this.zoom._d=function(e){e=e||s.zoomPosition||"left";var t=null;if(!s.nav.scroll)return null;var n=s.getViewport();switch(e){case"left":t=n.start;break;case"middle":t=n.start&&n.start.addTime((s.getViewport().end.getTime()-s.getViewport().start.getTime())/2);break;case"right":t=n.end}return t},this.zoom.Qa=function(e,t){var n=s.zoomLevels.length-1;e>n&&(e=n),e<0&&(e=0),s.zoom.active=e;var a=s.zoomLevels[e],i={};return i.date=t||new DayPilot.Date(s.startDate),i.level=a,DayPilot.Util.ownPropsAsArray(a.properties).forEach(function(e){if(0!==e.key.indexOf("on"))return"function"==typeof e.val?void(s[e.key]=e.val(i)):void(s[e.key]=e.val)}),i},this.Uf={},this.Uf.oa=null,this.Uf.drawCells=null,this.Uf.drawRows=null,this.Uf.click=null,this.Uf.resClick=[],this.Uf.updateFloats=null,this.rf=function(){if(!s.R){"undefined"!=typeof DayPilot.Menu&&DayPilot.Menu.hide(),s.pf();var e=s.nav.scroll;if(s.xh=e.scrollLeft,s.yh=e.scrollTop,s.zh=e.clientWidth,s.divTimeScroll&&(s.divTimeScroll.scrollLeft=s.xh),DayPilot.browser.ios&&t.gh?n():s.divResScroll.scrollTop=s.yh,s.progressiveRowRendering&&(s.Uf.drawRows&&(clearTimeout(s.Uf.drawRows),s.Uf.drawRows=null),s.scrollDelayRows>0?s.Uf.drawRows=setTimeout(function(){s.Hg()},s.scrollDelayRows):s.Hg()),s.Uf.drawCells&&(clearTimeout(s.Uf.drawCells),s.Uf.drawCells=null),s.scrollDelayCells>0)s.Uf.drawCells=setTimeout(s.mi(),s.scrollDelayCells);else{s.mi()()}if(s.Uf.oa&&(clearTimeout(s.Uf.oa),s.Uf.oa=null),s.scrollDelayEvents>0?s.Uf.oa=setTimeout(s.ni(),s.scrollDelayEvents):s.oa(),s.Uf.updateFloats&&(clearTimeout(s.Uf.updateFloats),s.Uf.updateFloats=null),s.scrollDelayFloats>0?s.Uf.updateFloats=setTimeout(function(){s.Be()},s.scrollDelayFloats):s.Be(),s.onScrollCalled=!0,"function"==typeof s.onScroll){var a={control:s,viewport:s.getViewport()};s.onScroll(a)}}},this.mi=function(){return function(){s&&s.qf()}},this.ni=function(){return function(){s&&(s.Fh()?setTimeout(function(){s.Ch(),setTimeout(function(){s.oa(!0)},50)},50):s.Ce())}},this.pf=function(){s.Ib.drawArea=null},this.show=function(){s.visible=!0,s.ne=!0,s.nav.top.style.display="",s.z(),s.lh(),s.rf()},this.hide=function(){s.visible=!1,s.ne=!1,s.nav.top.style.display="none"},this.hg=function(e){if(!s.events.list)return null;for(var t=0;t<this.events.list.length;t++){var n=this.events.list[t];if(s.ag(n,e)){var a={};return a.ex=n,a.index=t,a}}return null},this.oi=function(){var e=this.Sa(),t=e.xStart,n=e.xEnd-e.xStart,a=e.yStart,i=e.yEnd-e.yStart;this.cellProperties||(this.cellProperties={});for(var r=0;r<=n;r++){for(var o=t+r,s=0;s<i;s++){var l=a+s;this.sd(o,l)}this.pi(o)}for(var d=this.Cg(),l=d.start;l<d.end;l++)this.qi(l)},this.qf=function(){if(!s.R){var e=s.rowlist;if(e&&e.length>0){if(this.cellSweeping){var t=this.cellSweepingCacheSize;this.Eh(t)}this.oi()}this.yf=!1}},this.Sa=function(){if(s.Ib.drawArea)return s.Ib.drawArea;if(!this.nav.scroll)return null;var e=s.yh,t={},n=l.Hh(),a=l.Bh(),i=s.xh-n,r=i+s.zh+2*n,o=0,d=0;o=s.Ve(i).x,d=s.Ve(r,!0).x;var c=this.Nf();d=Math.min(d,c-1),o=DayPilot.Util.atLeast(o,0);var u=e-a,h=e+this.nav.scroll.offsetHeight+2*a,f=this.Tf(u).i,v=this.Tf(h).i;v<this.rowlist.length&&v++,t.xStart=o,t.xEnd=d,t.yStart=f,t.yEnd=v;var p=s.nav.scroll;return 0===p.clientWidth&&(p=s.divTimeScroll),t.pixels={},t.pixels.left=p.scrollLeft,t.pixels.right=p.scrollLeft+p.clientWidth,t.pixels.top=p.scrollTop,t.pixels.bottom=p.scrollTop+p.clientHeight,t.pixels.width=p.scrollWidth,t.sw=DayPilot.sw(s.nav.scroll),s.Ib.drawArea=t,t},this.Ne=function(){return s.Nf()*s.cellWidth},this.qi=function(e){var t=s.rowlist,n=s.divLines,a="y_"+e;if(!this.Ib.linesHorizontal[a]){var i=t[e],o=i.height,l=i.top+o-1,d=this.Ne(),c=r();c.style.left="0px",c.style.top=l+"px",c.style.width=d+"px",c.style.height="1px",c.style.fontSize="1px",c.style.lineHeight="1px",c.style.overflow="hidden",c.style.position="absolute",c.className=this.M("_matrix_horizontal_line"),n.appendChild(c),this.Ib.linesHorizontal[a]=c}},this.pi=function(e){var t=s.We(e);if(t){var n=s.divLines,a=s.me,i="x_"+e;if(!this.Ib.linesVertical[i]){var o=t.left+t.width-1,l=r();l.style.left=o+"px",l.style.top="0px",l.style.width="1px",l.style.height=a+"px",l.style.fontSize="1px",l.style.lineHeight="1px",l.style.overflow="hidden",l.style.position="absolute",l.className=this.M("_matrix_vertical_line"),n.appendChild(l),this.elements.linesVertical.push(l),this.Ib.linesVertical[i]=l}}},this.if=function(){s.me=s.ri(s.rowlist)},this.ri=function(e){for(var t=0,n=0;n<e.length;n++){var a=e[n];a.top=t,t+=a.height}return t},this.nf=function(){s.elements.cells=[],s.Ib.cells=[],s.divCells.innerHTML="",s.si()},this.si=function(){s.divLines.innerHTML="",s.Ib.linesVertical={},s.Ib.linesHorizontal={},s.elements.linesVertical=[]},this.Cf=function(e){var t=[];for(var n in s.Ib.cells)t.push(s.Ib.cells[n]);t.filter(function(t){return t&&t.coords&&t.coords.y===e}).forEach(function(e){s.qb(e)})},this.sd=function(e,t){if(this.Ra){var n=s.We(e);if(n){var a=s.rowlist,i=s.divCells,o=e+"_"+t;if(!this.Ib.cells[o]){var l=this.vi(e,t),d=s.wi(e,t),c=r();if(c.style.left=n.left+"px",c.style.top=a[t].top+"px",c.style.width=n.width+"px",c.style.height=a[t].height+"px",c.style.position="absolute",l&&l.backColor&&(c.style.backgroundColor=l.backColor),c.className=this.M("_cell"),c.coords={},c.coords.x=e,c.coords.y=t,l){if(l.cssClass&&DayPilot.Util.addClass(c,l.cssClass),c.innerHTML=s.jb(l.text,l.html),l.backImage&&(c.style.backgroundImage='url("'+l.backImage+'")'),l.backRepeat&&(c.style.backgroundRepeat=l.backRepeat),l.business&&s.cellsMarkBusiness&&DayPilot.Util.addClass(c,s.M("_cell_business")),l.disabled&&DayPilot.Util.addClass(c,s.M("_cell_disabled")),l.backColor&&(c.style.backgroundColor=l.backColor),l.fontColor&&(c.style.color=l.fontColor),l.horizontalAlignment||l.verticalAlignment){switch(c.style.display="flex",l.horizontalAlignment){case"right":c.style.justifyContent="flex-end";break;case"left":c.style.justifyContent="flex-start";break;case"center":c.style.justifyContent="center"}switch(l.verticalAlignment){case"center":c.style.alignItems="center";break;case"top":c.style.alignItems="flex-start";break;case"bottom":c.style.alignItems="flex-end"}}DayPilot.Areas.attach(c,d.cell,{"areas":l.areas})}var u={start:n.start,end:n.end,resource:a[t].id,div:c,properties:l,x:e,y:t};!function(){if("function"==typeof s.onBeforeCellDomAdd||"function"==typeof s.onBeforeCellDomRemove){var e={};if(e.control=s,e.cell=u,e.element=null,c.domArgs=e,"function"==typeof s.onBeforeCellDomAdd&&s.onBeforeCellDomAdd(e),e.element){var t=c;if(t){e.Wa=t;var n=DayPilot.Util.isReactComponent(e.element),a=DayPilot.Util.isVueVNode(e.element);if(n){if(!s.Za.reactDOM)throw new DayPilot.Exception("Can't reach ReactDOM");s.Za.db(e.element,t)}else if(a){if(!s.Ya.Xa)throw new DayPilot.Exception("Can't reach Vue");s.Ya._a=!0,s.Ya.eb(e.element,t),s.Ya._a=!1}else t.appendChild(e.element)}}}}(),i.appendChild(c),this.elements.cells.push(c),this.Ib.cells[o]=c}}}},this.wi=function(e,t){var n=s.We(e);if(!n)return null;var a=s.rowlist[t],i=a.id,r=n.start,o=n.end,l={};if(l.cell={x:e,y:t,start:r,end:o,resource:i,row:s.Mg(a),properties:s.vi(e,t)},l.control=s,"function"==typeof this.onBeforeCellRender){var d=e+"_"+t;if(s.beforeCellRenderCaching&&s.of[d])return l;s.of[d]=!0,this.onBeforeCellRender(l)}return l},this.clearSelection=function(){this.xi()},this.yi=function(e,t,n){e=new DayPilot.Date(e),t=new DayPilot.Date(t);var a=s.we(n),i=s.Ye(e);if(!i.current)throw new DayPilot.Exception("Time range selection 'start' out of timeline");var r=s.Ye(new DayPilot.Date(t).addMilliseconds(-1));if(!r.current)throw new DayPilot.Exception("Time range selection 'end' out of timeline");var o={};return o.start={y:a.index,x:i.i,"time":e},o.end={x:r.i,"time":t},o.calendar=this,o},this.selectTimeRange=function(e,t,n,a){var i=s.yi(e,t,n);s.Mf(i),a||setTimeout(function(){s.If(i)},0)},this.Gf=function(){var e=t.Ag&&t.Ag.source;e&&DayPilot.Util.removeClass(e,s.M("_event_moving_source")),DayPilot.de(t.Ag),t.Ag=null,DayPilot.Global.movingLink&&(DayPilot.Global.movingLink.clear(),DayPilot.Global.movingLink=null)},this.xi=function(){s.divShadow&&(s.divShadow.innerHTML=""),s.elements.range=[],s.elements.range2=null,s.Lf=null,s.zi=null},l.Wd=function(){delete s.Ib.headerHeight},l.ea=function(){return"Disabled"!==s.xssProtection},l.Te=function(){return DayPilot.Locale.find(s.locale)},l.bi=function(){return"Auto"!==s.timeFormat?s.timeFormat:l.Te().timeFormat},l.fa=function(){if("Auto"===s.weekStarts){var e=l.Te();return e?e.weekStarts:0}return s.weekStarts||0},l.Jg=function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("mobile")!==-1||e.indexOf("android")!=-1},l.qg=function(e){return"Always"===s.useEventBoxes||"Never"!==s.useEventBoxes&&e<60*s.Ze()*1e3},l.Hh=function(){var e=s.dynamicEventRenderingMarginX;if("number"==typeof e)return e;var t=s.dynamicEventRenderingMargin;return"number"==typeof t?t:0},l.Bh=function(){var e=s.dynamicEventRenderingMarginY;if("number"==typeof e)return e;var t=s.dynamicEventRenderingMargin;return"number"==typeof t?t:0},this.vi=function(e,t){var n=e+"_"+t,a=s.rowlist;if(this.cellProperties||(this.cellProperties={}),this.cellProperties[n])return this.cellProperties[n];if(!this.cellProperties[n]){var i=a[t],r=i.id,o=s.We(e),l=o.start,d=o.end,c={};c.start=l,c.end=d,c.resource=r;var u={};u.business=s.isBusiness(c),this.cellProperties[n]=u}return this.cellProperties[n]},this.isBusiness=function(e,t){var n=e.start,a=e.end,i=(a.getTime()-n.getTime())/6e4;if(i<=1440&&!(s.businessWeekends||t||0!==e.start.dayOfWeek()&&6!==e.start.dayOfWeek()))return!1;if(i<720){var r=n.getHours();r+=n.getMinutes()/60,r+=n.getSeconds()/3600,r+=n.getMilliseconds()/36e5;var o=this.businessBeginsHour,l=this.businessEndsHour;if(0===l&&(l=24),o===l)return!1;if(!(o<l))return r<l||r>=o;if(r<o)return!1;if(l>=24)return!0;if(r>=l)return!1}return!0},this.z=function(){"hidden"===this.nav.top.style.visibility&&(this.nav.top.style.visibility="visible")},this.Ai=function(e){this.heightSpec="Fixed",this.height=e-(this.Pe()+2),this.na()},this.setHeight=this.Ai,this.we=function(e){return s.Qg(e)[0]},this.Hb=function(){if(this.id&&this.id.tagName)this.nav.top=this.id;else{if("string"!=typeof this.id)throw new DayPilot.Exception("DayPilot.Scheduler() constructor requires the target element or its ID as a parameter");if(this.nav.top=document.getElementById(this.id),!this.nav.top)throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '"+a+"'.")}},this.init=function(){if(this.Ra)throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties.");if(this.Hb(),this.nav.top.dp){if(this.nav.top.dp===s)return s;throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.")}return this.Bi(),this.kh(),this},this.Bi=function(){this.Yg(),this.Ab(),this.ca(),this.wh(),s.zoomLevels&&s.zoomLevels[s.zoom.active]&&s.zoom.setActive(s.zoom.active),this.Bb();var angular=s.Me.enabled;s.scrollToDate?s.scrollTo(s.scrollToDate):s.scrollX||s.scrollY?s.setScroll(s.scrollX,s.scrollY):angular||s.rf(),s.scrollToResourceId&&(s.scrollToResource(s.scrollToResourceId),s.scrollToResourceId=null);var e=function(){s.scrollY&&s.setScroll(s.scrollX,s.scrollY)};setTimeout(e,200),this.pf(),this.Gb(),this.Ra=!0;var t=s.se;t?s.scrollTo(t):s.rf()},this.Fb=null,this.Db=function(e){if(e){var t={"resources":{"preInit":function(){var e=this.data;e&&(s.resources=e)}},"events":{"preInit":function(){var e=this.data;e&&(DayPilot.isArray(e.list)?s.events.list=e.list:s.events.list=e)},"postInit":function(){}},"scrollTo":{"preInit":function(){},"postInit":function(){this.data&&s.qe(this.data)}},"scrollX":{"postInit":function(){this.data&&s.ve(this.data)}},"scrollY":{"postInit":function(){this.data&&s.Oe(this.data)}},"zoom":{"preInit":function(){var e=this.data;if("string"==typeof e){var t=e;e=s.zoom.Oa(t)}var n=e!==s.zoom.active,a=s.zoom._d();s.zoom.Qa(e,a),n?this.date=a:this.date=null},"postInit":function(){this.date&&s.qe(this.date,!1,s.zoomPosition)}}};s.Fb=t,s.Me.scrollToRequested&&(t.scrollTo.data=s.Me.scrollToRequested,s.Me.scrollToRequested=null),s.Me.scrollXRequested&&(t.scrollX.data=s.Me.scrollXRequested,s.Me.scrollXRequested=null),s.Me.scrollYRequested&&(t.scrollY.data=s.Me.scrollYRequested,s.Me.scrollYRequested=null);for(var n in e)t[n]||(s[n]=e[n]);for(var a in e)if(t[a]){var i=t[a];i.data=e[a],i.preInit&&i.preInit()}}},this.Gb=function(){var e=s.Fb;for(var t in e){var n=e[t];n.postInit&&n.postInit()}s.Fb={}},this.Za={},this.Za.reactDOM=null,this.Za.react=null,this.Za.db=function(e,t){var n=s.Za.reactDOM;if("function"==typeof n.createRoot){var a=t.Wb;a||(a=n.createRoot(t),t.Wb=a),a.render(e)}else n.render(e,t)},this.Za.$a=function(e){var t=s.Za.reactDOM;if("function"==typeof t.createRoot){var n=e.Wb;setTimeout(function(){n.unmount(),e.Wb=null},0)}else t.unmountComponentAtNode(e)},this.Ya={},this.Ya.Xa=null,this.Ya.td=function(e,t,n){var a=s.Ya.Xa;if("function"==typeof a.createVNode&&"function"==typeof a.render){var i=a.createVNode(e,n);a.render(i,t)}},this.Ya.eb=function(e,t){var n=s.Ya.Xa;if("function"==typeof n.render){var a=e;DayPilot.isArray(e)&&(a=n.h("div",null,e)),n.render(a,t)}},this.Ya.ab=function(e){var t=s.Ya.Xa;"function"==typeof t.render&&t.render(null,e)},this.internal={},this.internal.adjustEndIn=s.Df,this.internal.adjustEndNormalize=s.Ef,this.internal.xssTextHtml=s.jb,this.internal.touch=s.oe,this.internal.skipUpdate=s.Me.skipUpdate,this.internal.skipped=s.Me.skipped,this.internal.loadOptions=s.Db,this.internal.postInit=s.Gb,this.internal.enableAngular2=function(){s.Me.enabled=!0},this.internal.eventsFromAttr=function(){s.Me.fg=!0},this.internal.resourcesFromAttr=function(){s.Me.og=!0},this.internal.evImmediateRefresh=function(){s.events.Hf()},this.internal.upd=function(e){s.update(e)},this.internal.enableReact=function(e,t){s.Za.react=e,s.Za.reactDOM=t},this.internal.reactRefs=function(){return DayPilot.Util.copyProps(s.Za,{},["react","reactDOM"])},this.internal.enableVue=function(e){s.Ya.Xa=e},this.internal.vueRef=function(){return s.Ya.Xa},this.internal.vueRendering=function(){return s.Ya._a},this.Db(o)},a="${v}"===(new DayPilot.Scheduler).v,DayPilot.Row=function(e,t){if(!e)throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row");if(!t)throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row");this.Ci={};var n=this.Ci;n.id=e.id,n.name=e.name,n.data=e.resource,n.tags=e.tags;var a=this;a.isRow=!0,a.menuType="resource",a.name=e.name,a.id=e.id,a.tags=e.tags,a.index=e.index,a.calendar=t,a.data=e.resource,a.Di=e,a.$={},a.$.row=e,a.toJSON=function(){var e={};return e.start=this.start,e.name=this.name,e.id=this.id,e.index=this.index,e},a.events={},a.events.all=function(){for(var e=[],t=0;t<a.Di.events.length;t++)e.push(a.Di.events[t]);return e},a.events.isEmpty=function(){return 0===a.Di.events.length},a.events.forRange=function(e,t){return a.Di.events.forRange(e,t)},a.events.totalDuration=function(){var e=0;return a.events.all().forEach(function(t){e+=t.part.end.getTime()-t.part.start.getTime()}),new DayPilot.Duration(e)},a.remove=function(){t.rows.remove(a)},a.addClass=function(e){var n=t.divHeader,i=n.rows[a.index];DayPilot.Util.addClass(i,e),a.$.row.cssClass=DayPilot.Util.addClassToString(a.$.row.cssClass,e),a.data.cssClass=e},a.removeClass=function(e){var n=t.divHeader,i=n.rows[a.index];DayPilot.Util.removeClass(i,e),a.$.row.cssClass=DayPilot.Util.removeClassFromString(a.$.row.cssClass,e),a.data.cssClass=DayPilot.Util.removeClassFromString(a.data.cssClass,e)}},t.af=null,t.zg=null,t.Rh=null,t.sg=null,t.wg=null,t._e=!1,t.rh=!1,t.hi=null,t.Ei=null,t.Bc=function(){DayPilot.ue(document,"mouseup",t.le),DayPilot.ue(document,"touchmove",t.uh),DayPilot.ue(document,"touchend",t.vh),t.rh=!1},t.uh=function(e){if(t.sg){var n=t.sg.event.calendar;n.coords=n.oe.Vh(e),n.oe.$h(),e.preventDefault()}if(t.af){e.preventDefault();var n=t.zg.calendar;n.coords=n.oe.Vh(e),n.oe._h()}},t.vh=function(e){t.gh=!1,t.le(e)},t.le=function(e){if(t.sg){var a=function(){var e=t.wg,n=e.calendar;i().style.cursor="",t.sg=null,t.wg=null,DayPilot.de(t.vg),t.vg=null,n&&(n.Fi=null)};if(setTimeout(function(){t._e=!1}),!t.vg)return void a();var r=t.wg,o=r.calendar,s=t.vg.start,l=t.vg.end,d="left"===t.sg.dpBorder?"start":"end";a(),o.L(r,s,l,d,e)}else if(t.zg){var a=function(){DayPilot.Global.movingAreaData=null;var e=t.Ag&&t.Ag.calendar;t.Ag&&(DayPilot.de(t.Ag),t.Ag.calendar=null),i().style.cursor="",t.af=null,t.zg=null,e&&(e.Ff=null)};if(!t.Ag)return void a();var r=t.zg,o=t.Ag.calendar;if(!o)return void a();if(t.Ag.source=t.af,!t.Ag.row)return void a();var s=t.Ag.start,l=t.Ag.end,c=t.Ag.row.id;t.Ag.calendar=null,i().style.cursor="",t.af=null,t.zg=null,o.N(r,s,l,c,e),DayPilot.Global.movingAreaData=null}else if(t.Yh){var u=DayPilot.Util.mouseButton(e),h=t.Yh,f=h.calendar,a=function(){};if(f.zi=null,t.hi)return clearTimeout(t.hi),t.hi=null,void a();f.Lf=h,t.Yh=null;var v=function(e){return function(){t.hi=null,f.If(e),"Hold"!==f.timeRangeSelectedHandling&&"HoldForever"!==f.timeRangeSelectedHandling?n():f.Lf=e}},p=f.li(h);return a(),u.left?(v(p)(),e.cancelBubble=!0,!1):void(t.hi=null)}t.Uh=null,t.rg=null}}}(DayPilot);!function(){var t=require("react"),o=require("react-dom/client"),n=require("create-react-class"),i=n({componentDidMount:function(){this.control=new DayPilot.Scheduler(this.me.ref,this.props),this.control.internal.enableReact(t,o),this.control.init();var n=this.props.controlRef;n&&("function"==typeof n?n(this.control):n.current=this.control)},componentWillUnmount:function(){this.control&&this.control.dispose()},componentDidUpdate:function(t,o,n){this.control&&this.control.update(this.props)},render:function(){this.me||(this.me={});var o=this.me;return t.createElement("div",{"ref":function(t){o.ref=t}})}}),e=n({componentDidMount:function(){this.control=new DayPilot.Month(this.me.ref,this.props).init();var t=this.props.controlRef;t&&("function"==typeof t?t(this.control):t.current=this.control)},componentWillUnmount:function(){this.control&&this.control.dispose()},componentDidUpdate:function(t,o,n){this.control&&this.control.update(this.props)},render:function(){this.me||(this.me={});var o=this.me;return t.createElement("div",{"ref":function(t){o.ref=t}})}}),r=n({componentDidMount:function(){this.control=new DayPilot.Calendar(this.me.ref,this.props),this.control.init();var t=this.props.controlRef;t&&("function"==typeof t?t(this.control):t.current=this.control)},componentWillUnmount:function(){this.control&&this.control.dispose()},componentDidUpdate:function(t,o,n){this.control&&this.control.update(this.props)},render:function(){this.me||(this.me={});var o=this.me;return t.createElement("div",{"ref":function(t){o.ref=t}})}}),c=n({componentDidMount:function(){this.control=new DayPilot.Navigator(this.me.ref,this.props).init();var t=this.props.controlRef;t&&("function"==typeof t?t(this.control):t.current=this.control)},componentWillUnmount:function(){this.control&&this.control.dispose()},componentDidUpdate:function(t,o,n){this.control&&this.control.update(this.props)},render:function(){this.me||(this.me={});var o=this.me;return t.createElement("div",{"ref":function(t){o.ref=t}})}});module.exports={DayPilot:DayPilot,DayPilotMonth:e,DayPilotCalendar:r,DayPilotNavigator:c,DayPilotScheduler:i}}();
20
+ if(t.innerHTML=n||"",e.backColor&&(t.style.background=e.backColor),a||i){switch(t.style.display="flex",a){case"right":t.style.justifyContent="flex-end";break;case"left":t.style.justifyContent="flex-start";break;case"center":t.style.justifyContent="center"}switch(i){case"center":t.style.alignItems="center";break;case"top":t.style.alignItems="flex-start";break;case"bottom":t.style.alignItems="flex-end"}}}e.areas&&DayPilot.Areas.attach(s.nav.corner,{},{"areas":e.areas})}()}},this.ng=function(){s.rowlist.forEach(function(e){var t=e.getHeight()+s.rowMarginTop+s.rowMarginBottom;e.height!==t&&(s.yf=!0),e.height=t}),s.yf&&(s.Ib.drawArea=null)},this.lf=function(){s.rowlist.forEach(function(e){var t=s.divHeader;if(t){var n=e.index;if(t.rows[n]){var a=t.rows[n];s.Eg&&(a.style.top=e.top+"px");var i=e.height;a&&a.firstChild&&parseInt(a.firstChild.style.height,10)!==i&&(a.firstChild.style.height=i+"px")}}}),s.Eg&&s.nav.resScrollSpace&&(s.nav.resScrollSpace.style.top=s.me+"px")},this.nh=function(e){if(DayPilot.Global.touch.start||DayPilot.Global.touch.active)return!1;if(s.cf(e),"Disabled"===s.timeRangeSelectedHandling)return!1;var n=DayPilot.Util.mouseButton(e);if("undefined"!=typeof DayPilot.Menu&&DayPilot.Menu.hide(),s.di())return!1;if(n.middle||n.right)return!1;if(s.ei(s.coords))return!1;var a=n.left?"left":n.right?"right":n.middle?"middle":"unknown";return s.fi=a,t.Yh=s.Zh(),t.Yh&&(t.gi=s),!1},this.Zh=function(){var e={},t=s.Ve(s.coords.x).x,n=s.getDate(s.coords.x,!0);return e.start={y:s.Tf(s.coords.y).i,x:t,"time":n},e.end={x:t,"time":n},e.calendar=s,s.Mf(e),e},this.ph=function(e){if(s.af={},s.Lf){if(DayPilot.Util.mouseButton(e).left){var n=s.Lf;if(s.ei(s.coords)){var a=function(e){return function(){t.hi=null;var n=s.Jf(e);if(n){var a={};a.start=n.start,a.end=n.end,a.resource=n.resource,a.preventDefault=function(){a.preventDefault.value=!0},"function"==typeof s.onTimeRangeClick&&s.onTimeRangeClick(a),a.preventDefault.value||"function"==typeof s.onTimeRangeClicked&&s.onTimeRangeClicked(a)}}};"Disabled"!==s.timeRangeClickHandling&&a(n)()}}}},this.di=function(){return!!(t.sg||t.af||t.Yh)||!!s.af.Th},this.dragInProgress=function(){return s.di()},this.cf=function(e){var t=DayPilot.mo3(s.te,e);t=t||{},t.stamp=t.x+"_"+t.y,s.coords&&s.coords.stamp===t.stamp||(s.coords=t)},this.oh=function(e){if(!DayPilot.Global.touch.active){var n=DayPilot.mc(e);if(s.cf(e),s.af.Th){DayPilot.distance(s.af.Rh,n)>2&&(DayPilot.Util.copyProps(s.af,t),i().style.cursor="move",s.af={})}t.sg&&t.wg.calendar===s?(t.sg.event||(t.sg.event=t.wg),s.ii()):t.zg?s.ji():t.Yh&&t.Yh.calendar===s&&(t.Yh.moved=!0,s.ki())}},this.ki=function(){var e=t.Yh,n=s.Ve(s.coords.x).x,a=s.getDate(s.coords.x,!0);e.end={x:n,"time":a},s.Mf(e)},this.ii=function(){t.vg||(t.vg=s.da(t.sg)),s.xg()},this.ji=function(){if(!t.Ag){DayPilot.Util.addClass(t.af,s.M("_event_moving_source"));var e=t.zg;t.Ag=s.da(e)}s.yg()},this.qh=function(e){return e.cancelBubble=!0,!1},this.ei=function(e){var t=s.Lf;if(!t||!t.start||!t.end)return!1;var n=this.Wf(t.start.y),a=t.start.x<t.end.x,i=(a?t.start.x:t.end.x)*this.cellWidth,r=(a?t.end.x:t.start.x)*this.cellWidth+this.cellWidth,o=n.top,l=n.bottom;return e.x>=i&&e.x<=r&&e.y>=o&&e.y<=l},this.Mf=function(e){function n(e){var t,n,l,d,c=e.end.time>e.start.time,u=e.start.y,h=e.start.time&&e.end.time;if(i||!h){var f=c?e.start.x:e.end.x,v=c?e.end.x:e.start.x,p=s.We(f),m=s.We(v);t=p.left,n=m.left+m.width}else c?(l=e.start.time,d=e.end.time):(l=e.end.time,d=e.start.time),t=s.getPixels(l).left,n=s.getPixels(d).left;var g=n-t,y=s.elements.range2;if(!y){y=r(),y.style.position="absolute";var b=r();b.className=s.M("_shadow_inner"),a&&(y.style.borderRadius=a,b.style.borderRadius=a),y.appendChild(b),s.divShadow.appendChild(y)}return y.className=s.M("_shadow"),y.firstChild.innerHTML="",y.style.left=t+"px",y.style.top=o[u].top+"px",y.style.width=g+"px",y.style.height=o[u].height-1+"px",y.calendar=s,s.elements.range2=y,y}if(e=e||t.Yh){var a=s.eventBorderRadius;"number"==typeof a&&(a+="px");var i=s.snapToGrid,o=s.rowlist;n(e)}},this.li=function(e){return{"start":{"x":e.start.x,"y":e.start.y,"time":e.start.time},"end":{"x":e.end.x,"time":e.end.time},"calendar":e.calendar,"args":e.args}},this.getCoords=function(){if(!s.coords)return null;var e={};e.x=s.coords.x,e.y=s.coords.y;var t=s.Tf(e.y,e.grid).element;return e.row=s.Mg(t),e.time=s.getDate(e.x,!0),e},this.zoom={},this.zoom.active=-1,this.zoom.setActive=function(e,t,n){var a;if("number"==typeof e)a=s.zoomLevels[e];else{if("string"!=typeof e)throw new DayPilot.Exception("Unexpected parameter type (string or number required): "+typeof e);var i=s.zoom.Oa(e);a=s.zoomLevels[i]}if(!a)throw new DayPilot.Exception("Zoom level not found: "+e+" ("+typeof e+")");(e!==s.zoom.active||n)&&(n||(n=s.zoom._d(t)),n&&(s.startDate=new DayPilot.Date(n).getDatePart()),s.zoom.Qa(e,n),s.Ra&&s.update(),n&&s.scrollTo(n,null,t||s.zoomPosition))},this.zoom.Oa=function(e){return(s.zoomLevels||[]).findIndex(function(t){return t.id===e})},this.zoom._d=function(e){e=e||s.zoomPosition||"left";var t=null;if(!s.nav.scroll)return null;var n=s.getViewport();switch(e){case"left":t=n.start;break;case"middle":t=n.start&&n.start.addTime((s.getViewport().end.getTime()-s.getViewport().start.getTime())/2);break;case"right":t=n.end}return t},this.zoom.Qa=function(e,t){var n=s.zoomLevels.length-1;e>n&&(e=n),e<0&&(e=0),s.zoom.active=e;var a=s.zoomLevels[e],i={};return i.date=t||new DayPilot.Date(s.startDate),i.level=a,DayPilot.Util.ownPropsAsArray(a.properties).forEach(function(e){if(0!==e.key.indexOf("on"))return"function"==typeof e.val?void(s[e.key]=e.val(i)):void(s[e.key]=e.val)}),i},this.Uf={},this.Uf.oa=null,this.Uf.drawCells=null,this.Uf.drawRows=null,this.Uf.click=null,this.Uf.resClick=[],this.Uf.updateFloats=null,this.rf=function(){if(!s.R){"undefined"!=typeof DayPilot.Menu&&DayPilot.Menu.hide(),s.pf();var e=s.nav.scroll;if(s.xh=e.scrollLeft,s.yh=e.scrollTop,s.zh=e.clientWidth,s.divTimeScroll&&(s.divTimeScroll.scrollLeft=s.xh),DayPilot.browser.ios&&t.gh?n():s.divResScroll.scrollTop=s.yh,s.progressiveRowRendering&&(s.Uf.drawRows&&(clearTimeout(s.Uf.drawRows),s.Uf.drawRows=null),s.scrollDelayRows>0?s.Uf.drawRows=setTimeout(function(){s.Hg()},s.scrollDelayRows):s.Hg()),s.Uf.drawCells&&(clearTimeout(s.Uf.drawCells),s.Uf.drawCells=null),s.scrollDelayCells>0)s.Uf.drawCells=setTimeout(s.mi(),s.scrollDelayCells);else{s.mi()()}if(s.Uf.oa&&(clearTimeout(s.Uf.oa),s.Uf.oa=null),s.scrollDelayEvents>0?s.Uf.oa=setTimeout(s.ni(),s.scrollDelayEvents):s.oa(),s.Uf.updateFloats&&(clearTimeout(s.Uf.updateFloats),s.Uf.updateFloats=null),s.scrollDelayFloats>0?s.Uf.updateFloats=setTimeout(function(){s.Be()},s.scrollDelayFloats):s.Be(),s.onScrollCalled=!0,"function"==typeof s.onScroll){var a={control:s,viewport:s.getViewport()};s.onScroll(a)}}},this.mi=function(){return function(){s&&s.qf()}},this.ni=function(){return function(){s&&(s.Fh()?setTimeout(function(){s.Ch(),setTimeout(function(){s.oa(!0)},50)},50):s.Ce())}},this.pf=function(){s.Ib.drawArea=null},this.show=function(){s.visible=!0,s.ne=!0,s.nav.top.style.display="",s.z(),s.lh(),s.rf()},this.hide=function(){s.visible=!1,s.ne=!1,s.nav.top.style.display="none"},this.hg=function(e){if(!s.events.list)return null;for(var t=0;t<this.events.list.length;t++){var n=this.events.list[t];if(s.ag(n,e)){var a={};return a.ex=n,a.index=t,a}}return null},this.oi=function(){var e=this.Sa(),t=e.xStart,n=e.xEnd-e.xStart,a=e.yStart,i=e.yEnd-e.yStart;this.cellProperties||(this.cellProperties={});for(var r=0;r<=n;r++){for(var o=t+r,s=0;s<i;s++){var l=a+s;this.sd(o,l)}this.pi(o)}for(var d=this.Cg(),l=d.start;l<d.end;l++)this.qi(l)},this.qf=function(){if(!s.R){var e=s.rowlist;if(e&&e.length>0){if(this.cellSweeping){var t=this.cellSweepingCacheSize;this.Eh(t)}this.oi()}this.yf=!1}},this.Sa=function(){if(s.Ib.drawArea)return s.Ib.drawArea;if(!this.nav.scroll)return null;var e=s.yh,t={},n=l.Hh(),a=l.Bh(),i=s.xh-n,r=i+s.zh+2*n,o=0,d=0;o=s.Ve(i).x,d=s.Ve(r,!0).x;var c=this.Nf();d=Math.min(d,c-1),o=DayPilot.Util.atLeast(o,0);var u=e-a,h=e+this.nav.scroll.offsetHeight+2*a,f=this.Tf(u).i,v=this.Tf(h).i;v<this.rowlist.length&&v++,t.xStart=o,t.xEnd=d,t.yStart=f,t.yEnd=v;var p=s.nav.scroll;return 0===p.clientWidth&&(p=s.divTimeScroll),t.pixels={},t.pixels.left=p.scrollLeft,t.pixels.right=p.scrollLeft+p.clientWidth,t.pixels.top=p.scrollTop,t.pixels.bottom=p.scrollTop+p.clientHeight,t.pixels.width=p.scrollWidth,t.sw=DayPilot.sw(s.nav.scroll),s.Ib.drawArea=t,t},this.Ne=function(){return s.Nf()*s.cellWidth},this.qi=function(e){var t=s.rowlist,n=s.divLines,a="y_"+e;if(!this.Ib.linesHorizontal[a]){var i=t[e],o=i.height,l=i.top+o-1,d=this.Ne(),c=r();c.style.left="0px",c.style.top=l+"px",c.style.width=d+"px",c.style.height="1px",c.style.fontSize="1px",c.style.lineHeight="1px",c.style.overflow="hidden",c.style.position="absolute",c.className=this.M("_matrix_horizontal_line"),n.appendChild(c),this.Ib.linesHorizontal[a]=c}},this.pi=function(e){var t=s.We(e);if(t){var n=s.divLines,a=s.me,i="x_"+e;if(!this.Ib.linesVertical[i]){var o=t.left+t.width-1,l=r();l.style.left=o+"px",l.style.top="0px",l.style.width="1px",l.style.height=a+"px",l.style.fontSize="1px",l.style.lineHeight="1px",l.style.overflow="hidden",l.style.position="absolute",l.className=this.M("_matrix_vertical_line"),n.appendChild(l),this.elements.linesVertical.push(l),this.Ib.linesVertical[i]=l}}},this.if=function(){s.me=s.ri(s.rowlist)},this.ri=function(e){for(var t=0,n=0;n<e.length;n++){var a=e[n];a.top=t,t+=a.height}return t},this.nf=function(){s.elements.cells=[],s.Ib.cells=[],s.divCells.innerHTML="",s.si()},this.si=function(){s.divLines.innerHTML="",s.Ib.linesVertical={},s.Ib.linesHorizontal={},s.elements.linesVertical=[]},this.Cf=function(e){var t=[];for(var n in s.Ib.cells)t.push(s.Ib.cells[n]);t.filter(function(t){return t&&t.coords&&t.coords.y===e}).forEach(function(e){s.qb(e)})},this.sd=function(e,t){if(this.Ra){var n=s.We(e);if(n){var a=s.rowlist,i=s.divCells,o=e+"_"+t;if(!this.Ib.cells[o]){var l=this.vi(e,t),d=s.wi(e,t),c=r();if(c.style.left=n.left+"px",c.style.top=a[t].top+"px",c.style.width=n.width+"px",c.style.height=a[t].height+"px",c.style.position="absolute",l&&l.backColor&&(c.style.backgroundColor=l.backColor),c.className=this.M("_cell"),c.coords={},c.coords.x=e,c.coords.y=t,l){if(l.cssClass&&DayPilot.Util.addClass(c,l.cssClass),c.innerHTML=s.jb(l.text,l.html),l.backImage&&(c.style.backgroundImage='url("'+l.backImage+'")'),l.backRepeat&&(c.style.backgroundRepeat=l.backRepeat),l.business&&s.cellsMarkBusiness&&DayPilot.Util.addClass(c,s.M("_cell_business")),l.disabled&&DayPilot.Util.addClass(c,s.M("_cell_disabled")),l.backColor&&(c.style.backgroundColor=l.backColor),l.fontColor&&(c.style.color=l.fontColor),l.horizontalAlignment||l.verticalAlignment){switch(c.style.display="flex",l.horizontalAlignment){case"right":c.style.justifyContent="flex-end";break;case"left":c.style.justifyContent="flex-start";break;case"center":c.style.justifyContent="center"}switch(l.verticalAlignment){case"center":c.style.alignItems="center";break;case"top":c.style.alignItems="flex-start";break;case"bottom":c.style.alignItems="flex-end"}}DayPilot.Areas.attach(c,d.cell,{"areas":l.areas})}var u={start:n.start,end:n.end,resource:a[t].id,div:c,properties:l,x:e,y:t};!function(){if("function"==typeof s.onBeforeCellDomAdd||"function"==typeof s.onBeforeCellDomRemove){var e={};if(e.control=s,e.cell=u,e.element=null,c.domArgs=e,"function"==typeof s.onBeforeCellDomAdd&&s.onBeforeCellDomAdd(e),e.element){var t=c;if(t){e.Wa=t;var n=DayPilot.Util.isReactComponent(e.element),a=DayPilot.Util.isVueVNode(e.element);if(n){if(!s.Za.reactDOM)throw new DayPilot.Exception("Can't reach ReactDOM");s.Za.db(e.element,t)}else if(a){if(!s.Ya.Xa)throw new DayPilot.Exception("Can't reach Vue");s.Ya._a=!0,s.Ya.eb(e.element,t),s.Ya._a=!1}else t.appendChild(e.element)}}}}(),i.appendChild(c),this.elements.cells.push(c),this.Ib.cells[o]=c}}}},this.wi=function(e,t){var n=s.We(e);if(!n)return null;var a=s.rowlist[t],i=a.id,r=n.start,o=n.end,l={};if(l.cell={x:e,y:t,start:r,end:o,resource:i,row:s.Mg(a),properties:s.vi(e,t)},l.control=s,"function"==typeof this.onBeforeCellRender){var d=e+"_"+t;if(s.beforeCellRenderCaching&&s.of[d])return l;s.of[d]=!0,this.onBeforeCellRender(l)}return l},this.clearSelection=function(){this.xi()},this.yi=function(e,t,n){e=new DayPilot.Date(e),t=new DayPilot.Date(t);var a=s.we(n),i=s.Ye(e);if(!i.current)throw new DayPilot.Exception("Time range selection 'start' out of timeline");var r=s.Ye(new DayPilot.Date(t).addMilliseconds(-1));if(!r.current)throw new DayPilot.Exception("Time range selection 'end' out of timeline");var o={};return o.start={y:a.index,x:i.i,"time":e},o.end={x:r.i,"time":t},o.calendar=this,o},this.selectTimeRange=function(e,t,n,a){var i=s.yi(e,t,n);s.Mf(i),a||setTimeout(function(){s.If(i)},0)},this.Gf=function(){var e=t.Ag&&t.Ag.source;e&&DayPilot.Util.removeClass(e,s.M("_event_moving_source")),DayPilot.de(t.Ag),t.Ag=null,DayPilot.Global.movingLink&&(DayPilot.Global.movingLink.clear(),DayPilot.Global.movingLink=null)},this.xi=function(){s.divShadow&&(s.divShadow.innerHTML=""),s.elements.range=[],s.elements.range2=null,s.Lf=null,s.zi=null},l.Wd=function(){delete s.Ib.headerHeight},l.ea=function(){return"Disabled"!==s.xssProtection},l.Te=function(){return DayPilot.Locale.find(s.locale)},l.bi=function(){return"Auto"!==s.timeFormat?s.timeFormat:l.Te().timeFormat},l.fa=function(){if("Auto"===s.weekStarts){var e=l.Te();return e?e.weekStarts:0}return s.weekStarts||0},l.Jg=function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("mobile")!==-1||e.indexOf("android")!=-1},l.qg=function(e){return"Always"===s.useEventBoxes||"Never"!==s.useEventBoxes&&e<60*s.Ze()*1e3},l.Hh=function(){var e=s.dynamicEventRenderingMarginX;if("number"==typeof e)return e;var t=s.dynamicEventRenderingMargin;return"number"==typeof t?t:0},l.Bh=function(){var e=s.dynamicEventRenderingMarginY;if("number"==typeof e)return e;var t=s.dynamicEventRenderingMargin;return"number"==typeof t?t:0},this.vi=function(e,t){var n=e+"_"+t,a=s.rowlist;if(this.cellProperties||(this.cellProperties={}),this.cellProperties[n])return this.cellProperties[n];if(!this.cellProperties[n]){var i=a[t],r=i.id,o=s.We(e),l=o.start,d=o.end,c={};c.start=l,c.end=d,c.resource=r;var u={};u.business=s.isBusiness(c),this.cellProperties[n]=u}return this.cellProperties[n]},this.isBusiness=function(e,t){var n=e.start,a=e.end,i=(a.getTime()-n.getTime())/6e4;if(i<=1440&&!(s.businessWeekends||t||0!==e.start.dayOfWeek()&&6!==e.start.dayOfWeek()))return!1;if(i<720){var r=n.getHours();r+=n.getMinutes()/60,r+=n.getSeconds()/3600,r+=n.getMilliseconds()/36e5;var o=this.businessBeginsHour,l=this.businessEndsHour;if(0===l&&(l=24),o===l)return!1;if(!(o<l))return r<l||r>=o;if(r<o)return!1;if(l>=24)return!0;if(r>=l)return!1}return!0},this.z=function(){"hidden"===this.nav.top.style.visibility&&(this.nav.top.style.visibility="visible")},this.Ai=function(e){this.heightSpec="Fixed",this.height=e-(this.Pe()+2),this.na()},this.setHeight=this.Ai,this.we=function(e){return s.Qg(e)[0]},this.Hb=function(){if(this.id&&this.id.tagName)this.nav.top=this.id;else{if("string"!=typeof this.id)throw new DayPilot.Exception("DayPilot.Scheduler() constructor requires the target element or its ID as a parameter");if(this.nav.top=document.getElementById(this.id),!this.nav.top)throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '"+a+"'.")}},this.init=function(){if(this.Ra)throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties.");if(this.Hb(),this.nav.top.dp){if(this.nav.top.dp===s)return s;throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.")}return this.Bi(),this.kh(),this},this.Bi=function(){this.Yg(),this.Ab(),this.ca(),this.wh(),s.zoomLevels&&s.zoomLevels[s.zoom.active]&&s.zoom.setActive(s.zoom.active),this.Bb();var angular=s.Me.enabled;s.scrollToDate?s.scrollTo(s.scrollToDate):s.scrollX||s.scrollY?s.setScroll(s.scrollX,s.scrollY):angular||s.rf(),s.scrollToResourceId&&(s.scrollToResource(s.scrollToResourceId),s.scrollToResourceId=null);var e=function(){s.scrollY&&s.setScroll(s.scrollX,s.scrollY)};setTimeout(e,200),this.pf(),this.Gb(),this.Ra=!0;var t=s.se;t?s.scrollTo(t):s.rf()},this.Fb=null,this.Db=function(e){if(e){var t={"resources":{"preInit":function(){var e=this.data;e&&(s.resources=e)}},"events":{"preInit":function(){var e=this.data;e&&(DayPilot.isArray(e.list)?s.events.list=e.list:s.events.list=e)},"postInit":function(){}},"scrollTo":{"preInit":function(){},"postInit":function(){this.data&&s.qe(this.data)}},"scrollX":{"postInit":function(){this.data&&s.ve(this.data)}},"scrollY":{"postInit":function(){this.data&&s.Oe(this.data)}},"zoom":{"preInit":function(){var e=this.data;if("string"==typeof e){var t=e;e=s.zoom.Oa(t)}var n=e!==s.zoom.active,a=s.zoom._d();s.zoom.Qa(e,a),n?this.date=a:this.date=null},"postInit":function(){this.date&&s.qe(this.date,!1,s.zoomPosition)}}};s.Fb=t,s.Me.scrollToRequested&&(t.scrollTo.data=s.Me.scrollToRequested,s.Me.scrollToRequested=null),s.Me.scrollXRequested&&(t.scrollX.data=s.Me.scrollXRequested,s.Me.scrollXRequested=null),s.Me.scrollYRequested&&(t.scrollY.data=s.Me.scrollYRequested,s.Me.scrollYRequested=null);for(var n in e)t[n]||(s[n]=e[n]);for(var a in e)if(t[a]){var i=t[a];i.data=e[a],i.preInit&&i.preInit()}}},this.Gb=function(){var e=s.Fb;for(var t in e){var n=e[t];n.postInit&&n.postInit()}s.Fb={}},this.Za={},this.Za.reactDOM=null,this.Za.react=null,this.Za.db=function(e,t){var n=s.Za.reactDOM;if("function"==typeof n.createRoot){var a=t.Wb;a||(a=n.createRoot(t),t.Wb=a),a.render(e)}else n.render(e,t)},this.Za.$a=function(e){var t=s.Za.reactDOM;if("function"==typeof t.createRoot){var n=e.Wb;setTimeout(function(){n.unmount(),e.Wb=null},0)}else t.unmountComponentAtNode(e)},this.Ya={},this.Ya.Xa=null,this.Ya.td=function(e,t,n){var a=s.Ya.Xa;if("function"==typeof a.createVNode&&"function"==typeof a.render){var i=a.createVNode(e,n);a.render(i,t)}},this.Ya.eb=function(e,t){var n=s.Ya.Xa;if("function"==typeof n.render){var a=e;DayPilot.isArray(e)&&(a=n.h("div",null,e)),n.render(a,t)}},this.Ya.ab=function(e){var t=s.Ya.Xa;"function"==typeof t.render&&t.render(null,e)},this.internal={},this.internal.adjustEndIn=s.Df,this.internal.adjustEndNormalize=s.Ef,this.internal.xssTextHtml=s.jb,this.internal.touch=s.oe,this.internal.skipUpdate=s.Me.skipUpdate,this.internal.skipped=s.Me.skipped,this.internal.loadOptions=s.Db,this.internal.postInit=s.Gb,this.internal.enableAngular2=function(){s.Me.enabled=!0},this.internal.eventsFromAttr=function(){s.Me.fg=!0},this.internal.resourcesFromAttr=function(){s.Me.og=!0},this.internal.evImmediateRefresh=function(){s.events.Hf()},this.internal.upd=function(e){s.update(e)},this.internal.enableReact=function(e,t){s.Za.react=e,s.Za.reactDOM=t},this.internal.reactRefs=function(){return DayPilot.Util.copyProps(s.Za,{},["react","reactDOM"])},this.internal.enableVue=function(e){s.Ya.Xa=e},this.internal.vueRef=function(){return s.Ya.Xa},this.internal.vueRendering=function(){return s.Ya._a},this.Db(o)},a="${v}"===(new DayPilot.Scheduler).v,DayPilot.Row=function(e,t){if(!e)throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row");if(!t)throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row");this.Ci={};var n=this.Ci;n.id=e.id,n.name=e.name,n.data=e.resource,n.tags=e.tags;var a=this;a.isRow=!0,a.menuType="resource",a.name=e.name,a.id=e.id,a.tags=e.tags,a.index=e.index,a.calendar=t,a.data=e.resource,a.Di=e,a.$={},a.$.row=e,a.toJSON=function(){var e={};return e.start=this.start,e.name=this.name,e.id=this.id,e.index=this.index,e},a.events={},a.events.all=function(){for(var e=[],t=0;t<a.Di.events.length;t++)e.push(a.Di.events[t]);return e},a.events.isEmpty=function(){return 0===a.Di.events.length},a.events.forRange=function(e,t){return a.Di.events.forRange(e,t)},a.events.totalDuration=function(){var e=0;return a.events.all().forEach(function(t){e+=t.part.end.getTime()-t.part.start.getTime()}),new DayPilot.Duration(e)},a.remove=function(){t.rows.remove(a)},a.addClass=function(e){var n=t.divHeader,i=n.rows[a.index];DayPilot.Util.addClass(i,e),a.$.row.cssClass=DayPilot.Util.addClassToString(a.$.row.cssClass,e),a.data.cssClass=e},a.removeClass=function(e){var n=t.divHeader,i=n.rows[a.index];DayPilot.Util.removeClass(i,e),a.$.row.cssClass=DayPilot.Util.removeClassFromString(a.$.row.cssClass,e),a.data.cssClass=DayPilot.Util.removeClassFromString(a.data.cssClass,e)}},t.af=null,t.zg=null,t.Rh=null,t.sg=null,t.wg=null,t._e=!1,t.rh=!1,t.hi=null,t.Ei=null,t.Bc=function(){DayPilot.ue(document,"mouseup",t.le),DayPilot.ue(document,"touchmove",t.uh),DayPilot.ue(document,"touchend",t.vh),t.rh=!1},t.uh=function(e){if(t.sg){var n=t.sg.event.calendar;n.coords=n.oe.Vh(e),n.oe.$h(),e.preventDefault()}if(t.af){e.preventDefault();var n=t.zg.calendar;n.coords=n.oe.Vh(e),n.oe._h()}},t.vh=function(e){t.gh=!1,t.le(e)},t.le=function(e){if(t.sg){var a=function(){var e=t.wg,n=e.calendar;i().style.cursor="",t.sg=null,t.wg=null,DayPilot.de(t.vg),t.vg=null,n&&(n.Fi=null)};if(setTimeout(function(){t._e=!1}),!t.vg)return void a();var r=t.wg,o=r.calendar,s=t.vg.start,l=t.vg.end,d="left"===t.sg.dpBorder?"start":"end";a(),o.L(r,s,l,d,e)}else if(t.zg){var a=function(){DayPilot.Global.movingAreaData=null;var e=t.Ag&&t.Ag.calendar;t.Ag&&(DayPilot.de(t.Ag),t.Ag.calendar=null),i().style.cursor="",t.af=null,t.zg=null,e&&(e.Ff=null)};if(!t.Ag)return void a();var r=t.zg,o=t.Ag.calendar;if(!o)return void a();if(t.Ag.source=t.af,!t.Ag.row)return void a();var s=t.Ag.start,l=t.Ag.end,c=t.Ag.row.id;t.Ag.calendar=null,i().style.cursor="",t.af=null,t.zg=null,o.N(r,s,l,c,e),DayPilot.Global.movingAreaData=null}else if(t.Yh){var u=DayPilot.Util.mouseButton(e),h=t.Yh,f=h.calendar,a=function(){};if(f.zi=null,t.hi)return clearTimeout(t.hi),t.hi=null,void a();f.Lf=h,t.Yh=null;var v=function(e){return function(){t.hi=null,f.If(e),"Hold"!==f.timeRangeSelectedHandling&&"HoldForever"!==f.timeRangeSelectedHandling?n():f.Lf=e}},p=f.li(h);return a(),u.left?(v(p)(),e.cancelBubble=!0,!1):void(t.hi=null)}t.Uh=null,t.rg=null}}}(DayPilot);!function(){var t=require("react"),o=require("react-dom/client"),n=require("create-react-class"),i=n({componentDidMount:function(){this.control=new DayPilot.Scheduler(this.me.ref,this.props),this.control.internal.enableReact(t,o),this.control.init();var n=this.props.controlRef;n&&("function"==typeof n?n(this.control):n.current=this.control)},componentWillUnmount:function(){this.control&&this.control.dispose()},componentDidUpdate:function(t,o,n){this.control&&this.control.update(this.props)},render:function(){this.me||(this.me={});var o=this.me;return t.createElement("div",{"ref":function(t){o.ref=t}})}}),e=n({componentDidMount:function(){this.control=new DayPilot.Month(this.me.ref,this.props).init();var t=this.props.controlRef;t&&("function"==typeof t?t(this.control):t.current=this.control)},componentWillUnmount:function(){this.control&&this.control.dispose()},componentDidUpdate:function(t,o,n){this.control&&this.control.update(this.props)},render:function(){this.me||(this.me={});var o=this.me;return t.createElement("div",{"ref":function(t){o.ref=t}})}}),r=n({componentDidMount:function(){this.control=new DayPilot.Calendar(this.me.ref,this.props),this.control.internal.enableReact(t,o),this.control.init();var n=this.props.controlRef;n&&("function"==typeof n?n(this.control):n.current=this.control)},componentWillUnmount:function(){this.control&&this.control.dispose()},componentDidUpdate:function(t,o,n){this.control&&this.control.update(this.props)},render:function(){this.me||(this.me={});var o=this.me;return t.createElement("div",{"ref":function(t){o.ref=t}})}}),c=n({componentDidMount:function(){this.control=new DayPilot.Navigator(this.me.ref,this.props).init();var t=this.props.controlRef;t&&("function"==typeof t?t(this.control):t.current=this.control)},componentWillUnmount:function(){this.control&&this.control.dispose()},componentDidUpdate:function(t,o,n){this.control&&this.control.update(this.props)},render:function(){this.me||(this.me={});var o=this.me;return t.createElement("div",{"ref":function(t){o.ref=t}})}});module.exports={DayPilot:DayPilot,DayPilotMonth:e,DayPilotCalendar:r,DayPilotNavigator:c,DayPilotScheduler:i}}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daypilot/daypilot-lite-react",
3
- "version": "5.7.0-sandbox.821",
3
+ "version": "5.7.0-sandbox.822",
4
4
  "description": "DayPilot Lite for React",
5
5
  "homepage": "https://javascript.daypilot.org/",
6
6
  "author": "Annpoint, s.r.o.",
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "create-react-class": ">=15.0.0",
40
- "@daypilot/daypilot-lite-javascript": "5.7.0-sandbox.821"
40
+ "@daypilot/daypilot-lite-javascript": "5.7.0-sandbox.822"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=16.0.0",