@daypilot/daypilot-lite-javascript 5.8.0-sandbox.828 → 5.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.828-lite
6
+ Version: 2026.2.833-lite
7
7
  */
8
8
  type GlobalDate = Date;
9
9
 
@@ -3,14 +3,14 @@ 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.828-lite
6
+ Version: 2026.2.833-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}},
10
10
  DayPilot.request=function(e,t,n,a){var i=DayPilot.createXmlHttp();i&&(i.open("POST",e,!0),i.setRequestHeader("Content-type","text/plain"),i.onreadystatechange=function(){if(4===i.readyState)return 200!==i.status&&304!==i.status?void(a?a(i):window.console&&console.log("HTTP error "+i.status)):void t(i)},4!==i.readyState&&("object"==typeof n&&(n=JSON.stringify(n)),i.send(n)))},DayPilot.ajax=function(e){if(!e)throw new DayPilot.Exception("Parameter object required.");if("string"!=typeof e.url)throw new DayPilot.Exception("The parameter object must have 'url' property.");var t=DayPilot.createXmlHttp();if(!t)throw new DayPilot.Exception("Unable to create XMLHttpRequest object");var n="object"==typeof e.data,a=e.data,i=e.method||(e.data?"POST":"GET"),r=e.success||function(){},o=e.error||function(){},s=e.url,l=e.contentType||(n?"application/json":"text/plain"),d=e.headers||{};t.open(i,s,!0),t.setRequestHeader("Content-type",l),DayPilot.Util.ownPropsAsArray(d).forEach(function(e){t.setRequestHeader(e.key,e.val)}),t.onreadystatechange=function(){if(4===t.readyState)if(200===t.status||201===t.status||204===t.status||304===t.status){var e={};e.request=t,t.responseText&&(e.data=JSON.parse(t.responseText)),r(e)}else if(o){var n={};n.request=t,o(n)}else window.console&&console.log("HTTP error "+t.status)},4!==t.readyState&&(n&&(a=JSON.stringify(a)),t.send(a))},DayPilot.createXmlHttp=function(){return new XMLHttpRequest},DayPilot.Http={},DayPilot.Http.ajax=function(e){DayPilot.ajax(e)},DayPilot.Http.get=function(e,t){return t=t||{},new Promise(function(n,a){var i={};i.url=e,i.method="GET",i.success=function(e){n(e)},i.error=function(e){a(e)},i.contentType=t.contentType,i.headers=t.headers,DayPilot.ajax(i)})},DayPilot.Http.post=function(e,t,n){return n=n||{},new Promise(function(a,i){var r={};r.url=e,r.method="POST",r.data=t,r.success=function(e){a(e)},r.error=function(e){i(e)},r.contentType=n.contentType,r.headers=n.headers,DayPilot.ajax(r)})},DayPilot.Http.put=function(e,t,n){return n=n||{},new Promise(function(a,i){var r={};r.url=e,r.method="PUT",r.data=t,r.success=function(e){a(e)},r.error=function(e){i(e)},r.contentType=n.contentType,r.headers=n.headers,DayPilot.ajax(r)})},DayPilot.Http.delete=function(e,t){return t=t||{},new Promise(function(n,a){var i={};i.url=e,i.method="DELETE",i.success=function(e){n(e)},i.error=function(e){a(e)},i.contentType=t.contentType,i.headers=t.headers,DayPilot.ajax(i)})},DayPilot.Util={},DayPilot.Util.addClass=function(e,t){if(e){if(!e.className)return void(e.className=t);new RegExp("(^|\\s)"+t+"($|\\s)").test(e.className)||(e.className=e.className+" "+t)}},DayPilot.Util.removeClass=function(e,t){if(e){var n=new RegExp("(^|\\s)"+t+"($|\\s)");e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}},DayPilot.Util.copyProps=function(e,t,n){if(void 0===t&&(t={}),!e)return t;if("undefined"==typeof n)for(var a=0,i=Object.entries(e);a<i.length;a++){var r=i[a],o=r[0],s=r[1];"undefined"!=typeof s&&(t[o]=s)}else for(var l=0,d=n;l<d.length;l++){var c=d[l],s=e[c];"undefined"!=typeof s&&(t[c]=s)}return t},DayPilot.Util.ownPropsAsArray=function(e){return e?Object.entries(e).map(function(e){return{key:e[0],val:e[1]}}):[]},DayPilot.Util.atLeast=function(e,t){return Math.max(e,t)},DayPilot.Util.mouseButton=function(e){var t={};switch(e.button){case 0:t.left=!0;break;case 1:t.middle=!0;break;case 2:t.right=!0}return t},DayPilot.Util.replaceCharAt=function(e,t,n){return e.substr(0,t)+n+e.substr(t+n.length)},DayPilot.Util.isNullOrUndefined=function(e){return null===e||"undefined"==typeof e},DayPilot.Util.escapeHtml=function(e){var t=document.createElement("div");return t.innerText=e,t.innerHTML},DayPilot.Util.escapeTextHtml=function(e,t){return DayPilot.Util.isNullOrUndefined(t)?DayPilot.Util.isNullOrUndefined(e)?"":DayPilot.Util.escapeHtml(e):t},DayPilot.Util.isSameEvent=function(e,t){return!(!e||!t)&&(e=e instanceof DayPilot.Event?e.data:e,t=t instanceof DayPilot.Event?t.data:t,e===t||!DayPilot.Util.isNullOrUndefined(e.id)&&e.id===t.id)},DayPilot.Util.overlaps=function(e,t,n,a){return!(t<=n||e>=a)},DayPilot.Util.isVueVNode=function(e){return!!e&&(DayPilot.isArray(e)?DayPilot.Util.isVueVNode(e[0]):e["__v_isVNode"])},DayPilot.Util.isVueComponent=function(){return!1},DayPilot.Util.isReactComponent=function(e){if(!e)return!1;var t="function"==typeof Symbol&&Symbol.for,n=t&&Symbol.for("react.element")||60103,a=t&&Symbol.for("react.transitional.element")||null,i=e.$$typeof;return i===n||i===a||60103===i},DayPilot.Util.isMouseEvent=function(e){return!!e&&("mouse"===e.pointerType||e instanceof MouseEvent)},DayPilot.Areas={},DayPilot.Areas.attach=function(t,n,a){a=a||{};var i=a.areas,r=a.allowed||function(){return!0},o=a.offsetX||0;i=e(n,i),i&&DayPilot.isArray(i)&&0!==i.length&&(DayPilot.re(t,"mousemove",function(e){t.active||t.areasDisabled||!r()||DayPilot.Areas.showAreas(t,n,e,i,{"offsetX":o,"eventDiv":a.eventDiv})}),DayPilot.re(t,"mouseleave",function(e){DayPilot.Areas.hideAreas(t,e)}),i.forEach(function(e){if(DayPilot.Areas.isVisible(e)){var i=DayPilot.Areas.createArea(t,n,e,{"offsetX":o,"eventDiv":a.eventDiv});t.appendChild(i)}}))},DayPilot.Areas.disable=function(e){e.areasDisabled=!0,Array.from(e.childNodes).filter(function(e){return e.isActiveArea&&!e.area.start}).forEach(function(e){e.f=e.style.display,e.style.display="none"})},DayPilot.Areas.enable=function(e){e.areasDisabled=!1,Array.from(e.childNodes).filter(function(e){return e.isActiveArea&&!e.area.start}).forEach(function(e){e.f?e.style.display=e.f:e.style.display=""})},DayPilot.Areas.remove=function(e){var t=Array.from(e.childNodes).filter(function(e){return e.isActiveArea});DayPilot.de(t)},DayPilot.Areas.isVisible=function(e){var t=e.visibility||e.v||"Visible";return"Visible"===t||"TouchVisible"===t&&!DayPilot.browser.hover},DayPilot.Areas.copy=function(e){return DayPilot.isArray(e)?e.map(function(e){return DayPilot.Util.copyProps(e,{})}):[]},DayPilot.Areas.showAreas=function(e,t,n,a,i){if(!DayPilot.Global.resizing&&!DayPilot.Global.moving&&!DayPilot.Global.selecting&&!e.active&&DayPilot.browser.hover){if(DayPilot.Areas.all&&DayPilot.Areas.all.length>0)for(var r=0;r<DayPilot.Areas.all.length;r++){var o=DayPilot.Areas.all[r];o!==e&&DayPilot.Areas.hideAreas(o,n)}if(e.active={},DayPilot.isArray(a)||(a=t.areas,a||(t.cache?a=t.cache.areas:t.data&&(a=t.data.areas))),a&&0!==a.length&&!(e.areas&&e.areas.length>0)){e.areas=[];for(var r=0;r<a.length;r++){var s=a[r];if(!DayPilot.Areas.isVisible(s)){var l=DayPilot.Areas.createArea(e,t,s,i);e.areas.push(l),e.appendChild(l),DayPilot.Areas.all.push(e)}}e.active.children=DayPilot.ac(e)}}},DayPilot.Areas.createArea=function(e,t,n,a){function i(e,t,n){var a={};return a.area=e,a.source=t,a.originalEvent=n,a.preventDefault=function(){a.preventDefault.value=!0},"function"==typeof e.onClick&&e.onClick(a),a}function r(e,t,n){DayPilot.Bubble&&DayPilot.Bubble.touchPosition(n),e.calendar.bubble&&e.calendar.bubble.showEvent(e,!0)}function o(e,t,n,a){DayPilot.Menu&&DayPilot.Menu.touchPosition(a);var i=n.contextMenu||n.menu;if(i instanceof DayPilot.Menu||(t.isEvent&&t.client.contextMenu()?i=t.client.contextMenu():t.isEvent&&t.calendar.contextMenu&&(i=t.calendar.contextMenu)),i&&i.show){var r={"type":"area","div":e,"e":t,"area":n,"a":d};i.show(t,{"initiator":r})}}function s(e){return"string"==typeof e&&isNaN(e)?e:"undefined"!=typeof e?e+"px":void 0}a=a||{};var l=a.eventDiv||e,d=document.createElement("div");d.isActiveArea=!0,d.area=n,d.setAttribute("unselectable","on");var c=n.w||n.width,u=n.h||n.height,h=n.cssClass||n.css||n.className;if("undefined"!=typeof n.style&&d.setAttribute("style",n.style),d.style.position="absolute",d.style.width=s(c),d.style.height=s(u),d.style.right=s(n.right),d.style.top=s(n.top),d.style.left=s(n.left),d.style.bottom=s(n.bottom),d.style.borderRadius=s(n.borderRadius),"undefined"!=typeof n.html||"undefined"!=typeof n.text)d.innerHTML=DayPilot.Util.escapeTextHtml(n.text,n.html);else if(n.icon){var f=document.createElement("i");f.className=n.icon,d.appendChild(f)}else if(n.image){var v=document.createElement("img");v.src=n.image,d.appendChild(v)}else if(n.symbol){var p="http://www.w3.org/2000/svg",m=document.createElementNS(p,"svg");m.setAttribute("width","100%"),m.setAttribute("height","100%");var g=document.createElementNS(p,"use");g.setAttribute("href",n.symbol),m.appendChild(g),d.appendChild(m),d.style.display="flex",d.style.alignItems="center",d.style.justifyContent="center"}if(h&&(d.className=h),n.toolTip&&d.setAttribute("title",n.toolTip),n.backColor&&(d.style.background=n.backColor),n.background&&(d.style.background=n.background),n.fontColor&&(d.style.color=n.fontColor),n.padding&&(d.style.padding=n.padding+"px",d.style.boxSizing="border-box"),n.cursor&&(d.style.cursor=n.cursor),n.borderColor){var y=n.borders;y?(y.top&&(d.style.borderTop="1px solid "+n.borderColor),y.right&&(d.style.borderRight="1px solid "+n.borderColor),y.bottom&&(d.style.borderBottom="1px solid "+n.borderColor),y.left&&(d.style.borderLeft="1px solid "+n.borderColor)):d.style.border="1px solid "+n.borderColor,d.style.boxSizing="border-box"}if(n.verticalAlignment)switch(d.style.display="flex",n.verticalAlignment){case"center":d.style.alignItems="center";break;case"top":d.style.alignItems="flex-start";break;case"bottom":d.style.alignItems="flex-end"}if(n.horizontalAlignment)switch(d.style.display="flex",n.horizontalAlignment){case"right":d.style.justifyContent="flex-end";break;case"left":d.style.justifyContent="flex-start";break;case"center":d.style.justifyContent="center"}if("ResizeEnd"===n.action||"ResizeStart"===n.action||"Move"===n.action){if(t.calendar.isCalendar)switch(n.action){case"ResizeEnd":n.cursor="s-resize",n.dpBorder="bottom";break;case"ResizeStart":n.cursor="n-resize",n.dpBorder="top";break;case"Move":n.cursor="move"}if(t.calendar.isScheduler||t.calendar.isMonth)switch(n.action){case"ResizeEnd":n.cursor="e-resize",n.dpBorder="right";break;case"ResizeStart":n.cursor="w-resize",n.dpBorder="left";break;case"Move":n.cursor="move"}d.onmousemove=function(e,t,n){return function(a){t.calendar.internal&&t.calendar.internal.dragInProgress&&t.calendar.internal.dragInProgress()||(a.cancelBubble=!0,e.style.cursor=n.cursor,n.dpBorder&&(e.dpBorder=n.dpBorder))}}(l,t,n),d.onmouseout=function(e,t,n){return function(){e.style.cursor=""}}(l,t,n)}if(("ResizeEnd"===n.action||"ResizeStart"===n.action)&&t.isEvent&&t.calendar.internal.touch){var b=function(e,t,n){return function(a){a.cancelBubble=!0;var i=t.calendar.internal.touch,r=a.touches?a.touches[0]:a,o={x:r.pageX,y:r.pageY};t.calendar.coords=i.relativeCoords(a),i.preventEventTap=!0,t.calendar.isScheduler?i.startResizing(e,"ResizeEnd"===n.action?"right":"left"):t.calendar.isCalendar&&i.startResizing(e,"ResizeEnd"===n.action?"bottom":"top",o)}}(l,t,n);DayPilot.rePassive(d,DayPilot.touch.start,b)}if("ContextMenu"===n.action&&t.isEvent&&t.calendar.internal.touch){var b=function(e,t,n){return function(a){a.cancelBubble=!0,a.preventDefault(),o(e,t,n,a),t.calendar.internal.touch.preventEventTap=!0}}(l,t,n),w=function(e,t,n){return function(e){e.cancelBubble=!0,e.preventDefault()}}(l,t,n);DayPilot.reNonPassive(d,DayPilot.touch.start,b),DayPilot.reNonPassive(d,DayPilot.touch.end,w)}if("Bubble"===n.action&&t.isEvent&&t.calendar.internal.touch){var b=function(e,t,n){return function(e){e.cancelBubble=!0,e.preventDefault();var a=i(n,t,e);if(!a.preventDefault.value){r(t,n,e);t.calendar.internal.touch.preventEventTap=!0,"function"==typeof n.onClicked&&n.onClicked(a)}}}(l,t,n),w=function(e,t,n){return function(e){e.cancelBubble=!0,e.preventDefault()}}(l,t,n);DayPilot.reNonPassive(d,DayPilot.touch.start,b),DayPilot.reNonPassive(d,DayPilot.touch.end,w)}if("Move"===n.action&&t.isEvent&&t.calendar.internal.touch){var b=function(e,t,n){return function(n){n.cancelBubble=!0;var a=t.calendar.internal.touch,i=n.touches?n.touches[0]:n,r={x:i.pageX,y:i.pageY};t.calendar.coords=a.relativeCoords(n),DayPilot.Global&&DayPilot.Global.touch&&(DayPilot.Global.touch.active=!0),a.preventEventTap=!0,a.startMoving(e,r)}}(l,t,n);DayPilot.rePassive(d,DayPilot.touch.start,b)}if("Bubble"===n.action&&t.isEvent?(d.onmousemove=function(e,t,n){return function(){n.bubble?n.bubble.showEvent(t,!0):t.calendar.bubble&&t.calendar.bubble.showEvent(t,!0)}}(e,t,n),d.onmouseout=function(e,t,n){return function(){"undefined"!=typeof DayPilot.Bubble&&(n.bubble?n.bubble.hideOnMouseOut():t.calendar.bubble&&t.calendar.bubble.hideOnMouseOut())}}(e,t,n)):"Bubble"===n.action&&t.isRow?(d.onmousemove=function(e,t,n){return function(){n.bubble?n.bubble.showResource(t,!0):t.calendar.resourceBubble&&t.calendar.resourceBubble.showResource(t,!0)}}(e,t,n),d.onmouseout=function(e,t,n){return function(){"undefined"!=typeof DayPilot.Bubble&&(n.bubble?n.bubble.hideOnMouseOut():t.calendar.resourceBubble&&t.calendar.resourceBubble.hideOnMouseOut())}}(e,t,n)):"Bubble"===n.action&&"undefined"!=typeof DayPilot.Bubble&&n.bubble instanceof DayPilot.Bubble&&(d.onmousemove=function(e,t,n){return function(){n.bubble.showHtml(null,null)}}(e,t,n),d.onmouseout=function(e,t,n){return function(){"undefined"!=typeof DayPilot.Bubble&&n.bubble&&n.bubble.hideOnMouseOut()}}(e,t,n)),"HoverMenu"===n.action&&(d.onmousemove=function(e,t,n){return function(){var e=n.menu;e&&e.show&&(e.visible?e.source&&"undefined"!=typeof e.source.id&&e.source.id!==t.id&&e.show(t):e.show(t),e.cancelHideTimeout())}}(e,t,n),d.onmouseout=function(e,t,n){return function(){var e=n.menu;e&&e.hideOnMouseOver&&e.delayedHide()}}(e,t,n)),"None"===n.action){var b=function(e,t,n){return function(e){var a=i(n,t,e);"function"==typeof n.onClicked&&n.onClicked(a),e.preventDefault(),e.stopPropagation()}}(l,t,n);DayPilot.reNonPassive(d,DayPilot.touch.start,b)}return d.onmousedown=function(e,t,n){return function(a){if("function"==typeof n.onmousedown&&n.onmousedown(a),"function"==typeof n.mousedown){var i={};i.area=n,i.div=e,i.originalEvent=a,i.source=t,n.mousedown(i)}if("Move"===n.action&&t.isRow){var r=t.$.row;(0,t.calendar.internal.rowStartMoving)(r)}"undefined"!=typeof DayPilot.Bubble&&DayPilot.Bubble.hideActive(),"Move"===n.action&&(DayPilot.Global.movingAreaData=n.data),"Move"===n.action&&t.isEvent&&t.calendar.internal&&t.calendar.internal.startMoving&&t.calendar.internal.startMoving(e,a);"Move"!==n.action&&"ResizeEnd"!==n.action&&"ResizeStart"!==n.action&&n.action&&"Default"!==n.action&&(a.preventDefault(),a.cancelBubble=!0)}}(e,t,n),d.onclick=function(e,t,n){return function(a){var r=i(n,t,a);if(!r.preventDefault.value){switch(n.action){case"ContextMenu":o(e,t,n,a),a.cancelBubble=!0;break;case"None":a.cancelBubble=!0}"function"==typeof n.onClicked&&n.onClicked(r)}}}(e,t,n),"function"==typeof n.onMouseEnter&&d.addEventListener("mouseenter",function(e,t,n){return function(e){var a={};a.area=n,a.source=t,a.originalEvent=e,n.onMouseEnter(a)}}(e,t,n)),"function"==typeof n.onMouseLeave&&d.addEventListener("mouseleave",function(e,t,n){return function(e){var a={};a.area=n,a.source=t,a.originalEvent=e,n.onMouseLeave(a)}}(e,t,n)),d},DayPilot.Areas.all=[],DayPilot.Areas.hideAreas=function(e,t){if(e&&e&&e.active){var n=e.active,a=e.areas;if(n&&n.children&&t){var i=t.toElement||t.relatedTarget;if(~DayPilot.indexOf(n.children,i))return}if(!a||0===a.length)return void(e.active=null);DayPilot.de(a),e.active=null,e.areas=[],DayPilot.rfa(DayPilot.Areas.all,e),n.children=null}},DayPilot.Areas.hideAll=function(e){if(DayPilot.Areas.all&&0!==DayPilot.Areas.all.length)for(var t=0;t<DayPilot.Areas.all.length;t++)DayPilot.Areas.hideAreas(DayPilot.Areas.all[t],e)},DayPilot.Exception=function(e){return new Error(e)},DayPilot.Locale=function(e,t){if(this.id=e,this.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],this.dayNamesShort=["Su","Mo","Tu","We","Th","Fr","Sa"],this.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],this.datePattern="M/d/yyyy",this.timePattern="H:mm",this.dateTimePattern="M/d/yyyy H:mm",this.timeFormat="Clock12Hours",this.weekStarts=0,t)for(var n in t)this[n]=t[n]},DayPilot.Locale.all={},DayPilot.Locale.find=function(e){if(!e)return null;var t=e.toLowerCase();return t.length>2&&(t=DayPilot.Util.replaceCharAt(t,2,"-")),DayPilot.Locale.all[t]},DayPilot.Locale.register=function(e){DayPilot.Locale.all[e.id]=e},DayPilot.Locale.register(new DayPilot.Locale("ca-es",{"dayNames":["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],"dayNamesShort":["dg","dl","dt","dc","dj","dv","ds"],"monthNames":["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre",""],"monthNamesShort":["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des.",""],"timePattern":"H:mm","datePattern":"dd/MM/yyyy","dateTimePattern":"dd/MM/yyyy H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("cs-cz",{"dayNames":["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],"dayNamesShort":["ne","po","út","st","čt","pá","so"],"monthNames":["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec",""],"monthNamesShort":["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII",""],"timePattern":"H:mm","datePattern":"d. M. yyyy","dateTimePattern":"d. M. yyyy H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("da-dk",{"dayNames":["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],"dayNamesShort":["sø","ma","ti","on","to","fr","lø"],"monthNames":["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december",""],"monthNamesShort":["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec",""],"timePattern":"HH:mm","datePattern":"dd-MM-yyyy","dateTimePattern":"dd-MM-yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("de-at",{"dayNames":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"dayNamesShort":["So","Mo","Di","Mi","Do","Fr","Sa"],"monthNames":["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],"monthNamesShort":["Jän","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],"timePattern":"HH:mm","datePattern":"dd.MM.yyyy","dateTimePattern":"dd.MM.yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("de-ch",{"dayNames":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"dayNamesShort":["So","Mo","Di","Mi","Do","Fr","Sa"],"monthNames":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],"monthNamesShort":["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],"timePattern":"HH:mm","datePattern":"dd.MM.yyyy","dateTimePattern":"dd.MM.yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("de-de",{"dayNames":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"dayNamesShort":["So","Mo","Di","Mi","Do","Fr","Sa"],"monthNames":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],"monthNamesShort":["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],"timePattern":"HH:mm","datePattern":"dd.MM.yyyy","dateTimePattern":"dd.MM.yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("de-lu",{"dayNames":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"dayNamesShort":["So","Mo","Di","Mi","Do","Fr","Sa"],"monthNames":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],"monthNamesShort":["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],"timePattern":"HH:mm","datePattern":"dd.MM.yyyy","dateTimePattern":"dd.MM.yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("en-au",{"dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Su","Mo","Tu","We","Th","Fr","Sa"],"monthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"timePattern":"h:mm tt","datePattern":"d/MM/yyyy","dateTimePattern":"d/MM/yyyy h:mm tt","timeFormat":"Clock12Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("en-ca",{"dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Su","Mo","Tu","We","Th","Fr","Sa"],"monthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"timePattern":"h:mm tt","datePattern":"yyyy-MM-dd","dateTimePattern":"yyyy-MM-dd h:mm tt","timeFormat":"Clock12Hours","weekStarts":0})),DayPilot.Locale.register(new DayPilot.Locale("en-gb",{"dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Su","Mo","Tu","We","Th","Fr","Sa"],"monthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"timePattern":"HH:mm","datePattern":"dd/MM/yyyy","dateTimePattern":"dd/MM/yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("en-us",{"dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Su","Mo","Tu","We","Th","Fr","Sa"],"monthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"timePattern":"h:mm tt","datePattern":"M/d/yyyy","dateTimePattern":"M/d/yyyy h:mm tt","timeFormat":"Clock12Hours","weekStarts":0})),DayPilot.Locale.register(new DayPilot.Locale("es-es",{"dayNames":["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],"dayNamesShort":["D","L","M","X","J","V","S"],"monthNames":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],"monthNamesShort":["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sep.","oct.","nov.","dic.",""],"timePattern":"H:mm","datePattern":"dd/MM/yyyy","dateTimePattern":"dd/MM/yyyy H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("es-mx",{"dayNames":["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],"dayNamesShort":["do.","lu.","ma.","mi.","ju.","vi.","sá."],"monthNames":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],"monthNamesShort":["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sep.","oct.","nov.","dic.",""],"timePattern":"hh:mm tt","datePattern":"dd/MM/yyyy","dateTimePattern":"dd/MM/yyyy hh:mm tt","timeFormat":"Clock12Hours","weekStarts":0})),DayPilot.Locale.register(new DayPilot.Locale("eu-es",{"dayNames":["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"],"dayNamesShort":["ig","al","as","az","og","or","lr"],"monthNames":["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua",""],"monthNamesShort":["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe.",""],"timePattern":"H:mm","datePattern":"yyyy/MM/dd","dateTimePattern":"yyyy/MM/dd H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("fi-fi",{"dayNames":["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],"dayNamesShort":["su","ma","ti","ke","to","pe","la"],"monthNames":["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu",""],"monthNamesShort":["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu",""],"timePattern":"H:mm","datePattern":"d.M.yyyy","dateTimePattern":"d.M.yyyy H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("fr-be",{"dayNames":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dayNamesShort":["di","lu","ma","me","je","ve","sa"],"monthNames":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],"monthNamesShort":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],"timePattern":"HH:mm","datePattern":"dd-MM-yy","dateTimePattern":"dd-MM-yy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("fr-ca",{"dayNames":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dayNamesShort":["di","lu","ma","me","je","ve","sa"],"monthNames":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],"monthNamesShort":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],"timePattern":"HH:mm","datePattern":"yyyy-MM-dd","dateTimePattern":"yyyy-MM-dd HH:mm","timeFormat":"Clock24Hours","weekStarts":0})),DayPilot.Locale.register(new DayPilot.Locale("fr-ch",{"dayNames":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dayNamesShort":["di","lu","ma","me","je","ve","sa"],"monthNames":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],"monthNamesShort":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],"timePattern":"HH:mm","datePattern":"dd.MM.yyyy","dateTimePattern":"dd.MM.yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("fr-fr",{"dayNames":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dayNamesShort":["di","lu","ma","me","je","ve","sa"],"monthNames":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],"monthNamesShort":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],"timePattern":"HH:mm","datePattern":"dd/MM/yyyy","dateTimePattern":"dd/MM/yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("fr-lu",{"dayNames":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dayNamesShort":["di","lu","ma","me","je","ve","sa"],"monthNames":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],"monthNamesShort":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],"timePattern":"HH:mm","datePattern":"dd/MM/yyyy","dateTimePattern":"dd/MM/yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("gl-es",{"dayNames":["domingo","luns","martes","mércores","xoves","venres","sábado"],"dayNamesShort":["do","lu","ma","mé","xo","ve","sá"],"monthNames":["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro",""],"monthNamesShort":["xan","feb","mar","abr","maio","xuño","xul","ago","set","out","nov","dec",""],"timePattern":"H:mm","datePattern":"dd/MM/yyyy","dateTimePattern":"dd/MM/yyyy H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("it-it",{"dayNames":["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],"dayNamesShort":["do","lu","ma","me","gi","ve","sa"],"monthNames":["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre",""],"monthNamesShort":["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic",""],"timePattern":"HH:mm","datePattern":"dd/MM/yyyy","dateTimePattern":"dd/MM/yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("it-ch",{"dayNames":["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],"dayNamesShort":["do","lu","ma","me","gi","ve","sa"],"monthNames":["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre",""],"monthNamesShort":["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic",""],"timePattern":"HH:mm","datePattern":"dd.MM.yyyy","dateTimePattern":"dd.MM.yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("ja-jp",{"dayNames":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"dayNamesShort":["日","月","火","水","木","金","土"],"monthNames":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],"monthNamesShort":["1","2","3","4","5","6","7","8","9","10","11","12",""],"timePattern":"H:mm","datePattern":"yyyy/MM/dd","dateTimePattern":"yyyy/MM/dd H:mm","timeFormat":"Clock24Hours","weekStarts":0})),DayPilot.Locale.register(new DayPilot.Locale("ko-kr",{"dayNames":["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],"dayNamesShort":["일","월","화","수","목","금","토"],"monthNames":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월",""],"monthNamesShort":["1","2","3","4","5","6","7","8","9","10","11","12",""],"timePattern":"tt h:mm","datePattern":"yyyy-MM-dd","dateTimePattern":"yyyy-MM-dd tt h:mm","timeFormat":"Clock12Hours","weekStarts":0})),DayPilot.Locale.register(new DayPilot.Locale("nb-no",{"dayNames":["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],"dayNamesShort":["sø","ma","ti","on","to","fr","lø"],"monthNames":["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],"monthNamesShort":["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],"timePattern":"HH:mm","datePattern":"dd.MM.yyyy","dateTimePattern":"dd.MM.yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("nl-nl",{"dayNames":["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],"dayNamesShort":["zo","ma","di","wo","do","vr","za"],"monthNames":["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december",""],"monthNamesShort":["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec",""],"timePattern":"HH:mm","datePattern":"d-M-yyyy","dateTimePattern":"d-M-yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("nl-be",{"dayNames":["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],"dayNamesShort":["zo","ma","di","wo","do","vr","za"],"monthNames":["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december",""],"monthNamesShort":["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec",""],"timePattern":"H:mm","datePattern":"d/MM/yyyy","dateTimePattern":"d/MM/yyyy H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("nn-no",{"dayNames":["søndag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"],"dayNamesShort":["sø","må","ty","on","to","fr","la"],"monthNames":["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],"monthNamesShort":["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],"timePattern":"HH:mm","datePattern":"dd.MM.yyyy",
11
11
  "dateTimePattern":"dd.MM.yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("pt-br",{"dayNames":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"dayNamesShort":["D","S","T","Q","Q","S","S"],"monthNames":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro",""],"monthNamesShort":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez",""],"timePattern":"HH:mm","datePattern":"dd/MM/yyyy","dateTimePattern":"dd/MM/yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":0})),DayPilot.Locale.register(new DayPilot.Locale("pl-pl",{"dayNames":["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],"dayNamesShort":["N","Pn","Wt","Śr","Cz","Pt","So"],"monthNames":["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień",""],"monthNamesShort":["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru",""],"timePattern":"HH:mm","datePattern":"yyyy-MM-dd","dateTimePattern":"yyyy-MM-dd HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("pt-pt",{"dayNames":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"dayNamesShort":["D","S","T","Q","Q","S","S"],"monthNames":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro",""],"monthNamesShort":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez",""],"timePattern":"HH:mm","datePattern":"dd/MM/yyyy","dateTimePattern":"dd/MM/yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":0})),DayPilot.Locale.register(new DayPilot.Locale("ro-ro",{"dayNames":["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"],"dayNamesShort":["D","L","Ma","Mi","J","V","S"],"monthNames":["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie",""],"monthNamesShort":["ian.","feb.","mar.","apr.","mai.","iun.","iul.","aug.","sep.","oct.","nov.","dec.",""],"timePattern":"H:mm","datePattern":"dd.MM.yyyy","dateTimePattern":"dd.MM.yyyy H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("ru-ru",{"dayNames":["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],"dayNamesShort":["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],"monthNames":["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь",""],"monthNamesShort":["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек",""],"timePattern":"H:mm","datePattern":"dd.MM.yyyy","dateTimePattern":"dd.MM.yyyy H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("sk-sk",{"dayNames":["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],"dayNamesShort":["ne","po","ut","st","št","pi","so"],"monthNames":["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december",""],"monthNamesShort":["1","2","3","4","5","6","7","8","9","10","11","12",""],"timePattern":"H:mm","datePattern":"d.M.yyyy","dateTimePattern":"d.M.yyyy H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("sv-se",{"dayNames":["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],"dayNamesShort":["sö","må","ti","on","to","fr","lö"],"monthNames":["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december",""],"monthNamesShort":["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec",""],"timePattern":"HH:mm","datePattern":"yyyy-MM-dd","dateTimePattern":"yyyy-MM-dd HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("tr-tr",{"dayNames":["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],"dayNamesShort":["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],"monthNames":["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık",""],"monthNamesShort":["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara",""],"timePattern":"HH:mm","datePattern":"d.M.yyyy","dateTimePattern":"d.M.yyyy HH:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("uk-ua",{"dayNames":["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"],"dayNamesShort":["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],"monthNames":["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень",""],"monthNamesShort":["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру",""],"timePattern":"H:mm","datePattern":"dd.MM.yyyy","dateTimePattern":"dd.MM.yyyy H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("zh-cn",{"dayNames":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"dayNamesShort":["日","一","二","三","四","五","六"],"monthNames":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],"monthNamesShort":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],"timePattern":"H:mm","datePattern":"yyyy/M/d","dateTimePattern":"yyyy/M/d H:mm","timeFormat":"Clock24Hours","weekStarts":1})),DayPilot.Locale.register(new DayPilot.Locale("zh-tw",{"dayNames":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"dayNamesShort":["日","一","二","三","四","五","六"],"monthNames":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],"monthNamesShort":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],"timePattern":"tt hh:mm","datePattern":"yyyy/M/d","dateTimePattern":"yyyy/M/d tt hh:mm","timeFormat":"Clock12Hours","weekStarts":0})),DayPilot.Locale.US=DayPilot.Locale.find("en-us"),DayPilot.Switcher=function(e){function t(e,t,a){var i={};i.start=e,i.end=t,i.day=a,i.target=n.m.control,i.preventDefault=function(){this.preventDefault.value=!0};var r=n.J;r&&r.start===i.start&&r.end===i.end&&r.day===i.day&&r.target===i.target||(n.J=i,"function"==typeof n.onChange&&(n.onChange(i),i.preventDefault.value)||"function"==typeof n.onTimeRangeSelect&&(n.onTimeRangeSelect(i),i.preventDefault.value)||(n.m.u(n.n),"function"==typeof n.onChanged&&n.onChanged(i),"function"==typeof n.onTimeRangeSelected&&n.onTimeRangeSelected(i)))}var n=this;this.j=[],this.k=[],this.l={},this.selectedClass=null,this.syncScrollbar=!0,this.m=null,this.n=DayPilot.Date.today(),this.o=null,this.onChange=null,this.onChanged=null,this.onSelect=null,this.l.updateMode=function(e){var t=n.l.control;t&&(t.selectMode=e,t.select(n.n))},this.addView=function(e,t){var a;if("string"==typeof e){if(a=document.getElementById(e),!a)throw"Element not found: "+e}else a=e;var i=a,r={};return r.p=!0,r.q=i.id,r.control=i,r.s=t||{},r.t=function(){i.hide?i.hide():i.nav&&i.nav.top?i.nav.top.style.display="none":i.style.display="none"},r.u=function(e){(function(){return!!i.backendUrl||!("function"!=typeof WebForm_DoCallback||!i.uniqueID)})()?i.commandCallBack&&i.commandCallBack("navigate",{"day":e}):(i.startDate=e,i.update())},r.z=function(){n.A(),i.show?i.show():i.nav&&i.nav.top?i.nav.top.style.display="":i.style.display=""},r.B=function(){if(r.s.navigatorSelectMode)return r.s.navigatorSelectMode;if(i.isCalendar)switch(i.viewType){case"Day":return"day";case"Week":return"week";case"WorkWeek":return"week";default:return"day"}else if(i.isMonth)switch(i.viewType){case"Month":return"month";case"Weeks":return"week";default:return"day"}return"day"},this.j.push(r),r},this.addTrigger=function(e,t){var a;if("string"==typeof e){if(a=document.getElementById(e),!a)throw"Element not found: "+e}else a=e;var i=this.C(t);i||(i=this.addView(t));var r={};return r.D=!0,r.E=a,r.q=a.id,r.F=i,r.G=function(e){n.show(r),n.H(r),null===e||void 0===e?void 0:e.preventDefault()},DayPilot.re(a,"click",r.G),this.k.push(r),r},this.addButton=this.addTrigger,this.select=function(e){var t=this.I(e);t?t.G():this.k.length>0&&this.k[0].G()},this.I=function(e){for(var t=0;t<this.k.length;t++){var n=this.k[t];if(n.q===e)return n}return null},this.H=function(e){if(this.selectedClass){for(var t=0;t<this.k.length;t++){var n=this.k[t];DayPilot.Util.removeClass(n.E,this.selectedClass)}DayPilot.Util.addClass(e.E,this.selectedClass)}},this.addNavigator=function(e){n.l.control=e,e.timeRangeSelectedHandling="JavaScript",e.onTimeRangeSelected=function(){var a,i,r;if(1===e.api)a=arguments[0],i=arguments[1],r=arguments[2];else{var o=arguments[0];a=o.start,i=o.end,r=o.day}n.n=r,t(a,i,r)}},this.show=function(e){var a,i;if(e.D)i=e,a=i.F;else if(a=e.p?e:this.C(e),this.m===a)return;if(n.onSelect){var r={};r.source=i?i.E:null,r.target=a.control,n.onSelect(r)}if(n.syncScrollbar){var o=this.m&&this.m.control;o&&o.isCalendar&&(n.o=o.getScrollY())}this.m=a,a.z(),null!==n.o&&a.control.isCalendar&&a.control.setScrollY(n.o);var s=a.B();n.l.updateMode(s),t(n.l.control.selectionStart,n.l.control.selectionEnd.addDays(1),n.l.control.selectionDay)},this.C=function(e){for(var t=0;t<this.j.length;t++)if(this.j[t].control===e)return this.j[t];return null},this.A=function(){for(var e=0;e<this.j.length;e++)this.j[e].t()},Object.defineProperty(this,"active",{get:function(){return n.m}}),this.events={},this.events.load=function(e,t,a){if(!n.m||!n.m.control)throw"DayPilot.Switcher.events.load(): Active view not found";n.m.control.events.load(e,t,a)},this.J=null,this.K=function(){if(e)for(var t in e)if("triggers"===t){var a=e.triggers||[];a.forEach(function(e){n.addTrigger(e.id,e.view)})}else"navigator"===t?n.addNavigator(e.navigator):n[t]=e[t]},this.K()},DayPilot.Duration=function(e){var t=this,n=864e5,a=36e5,i=6e4,r=1e3;if(2===arguments.length){var o=arguments[0],s=arguments[1];if(!(o instanceof DayPilot.Date)&&"string"!=typeof o)throw"DayPilot.Duration(): Invalid start argument, DayPilot.Date expected";if(!(s instanceof DayPilot.Date)&&"string"!=typeof s)throw"DayPilot.Duration(): Invalid end argument, DayPilot.Date expected";"string"==typeof o&&(o=new DayPilot.Date(o)),"string"==typeof s&&(s=new DayPilot.Date(s)),e=s.getTime()-o.getTime()}return this.ticks=e,DayPilot.Date.Cache.DurationCtor[""+e]?DayPilot.Date.Cache.DurationCtor[""+e]:(DayPilot.Date.Cache.DurationCtor[""+e]=this,this.toString=function(e){if(!e)return t.days()+"."+t.hours()+":"+t.minutes()+":"+t.seconds()+"."+t.milliseconds();var n=t.minutes();n=(n<10?"0":"")+n;var a=e;return a=a.replace("mm",n),a=a.replace("m",t.minutes()),a=a.replace("H",t.hours()),a=a.replace("h",t.hours()),a=a.replace("d",t.days()),a=a.replace("s",t.seconds())},this.totalHours=function(){return t.ticks/a},this.totalDays=function(){return t.ticks/n},this.totalMinutes=function(){return t.ticks/i},this.totalSeconds=function(){return t.ticks/r},this.days=function(){return Math.floor(t.totalDays())},this.hours=function(){var e=t.ticks-t.days()*n;return Math.floor(e/a)},this.minutes=function(){var e=t.ticks-Math.floor(t.totalHours())*a;return Math.floor(e/i)},this.seconds=function(){var e=t.ticks-Math.floor(t.totalMinutes())*i;return Math.floor(e/r)},void(this.milliseconds=function(){return t.ticks%r}))},DayPilot.Duration.weeks=function(e){return new DayPilot.Duration(1e3*e*60*60*24*7)},DayPilot.Duration.days=function(e){return new DayPilot.Duration(1e3*e*60*60*24)},DayPilot.Duration.hours=function(e){return new DayPilot.Duration(1e3*e*60*60)},DayPilot.Duration.minutes=function(e){return new DayPilot.Duration(1e3*e*60)},DayPilot.Duration.seconds=function(e){return new DayPilot.Duration(1e3*e)},DayPilot.TimeSpan=function(){throw"Please use DayPilot.Duration class instead of DayPilot.TimeSpan."};try{DayPilot.TimeSpan.prototype=Object.create(DayPilot.Duration.prototype)}catch(e){}DayPilot.Date=function(e,n){if(e instanceof DayPilot.Date)return e;var a;DayPilot.Util.isNullOrUndefined(e)&&(a=DayPilot.DateUtil.fromLocal().getTime(),e=a);var i=DayPilot.Date.Cache.Ctor;if(i[e])return DayPilot.Stats.cacheHitsCtor+=1,i[e];var r=!1;if("string"==typeof e||e instanceof String){try{a=DayPilot.DateUtil.fromStringSortable(e,n).getTime()}catch(t){throw new DayPilot.Exception("DayPilot.Date - Unable to parse ISO8601 date/time string: "+e)}r=!0}else if("number"==typeof e||e instanceof Number){if(isNaN(e))throw"Cannot create DayPilot.Date from NaN";a=e}else{if(!(e instanceof Date))throw"Unrecognized parameter: use Date, number or string in ISO 8601 format";a=n?DayPilot.DateUtil.fromLocal(e).getTime():e.getTime()}var o=t(a);return i[o]?i[o]:(i[o]=this,i[a]=this,r&&o!==e&&DayPilot.DateUtil.hasTzSpec(e)&&(i[e]=this),Object.defineProperty?(Object.defineProperty(this,"ticks",{get:function(){return a}}),Object.defineProperty(this,"value",{"value":o,"writable":!1,"enumerable":!0})):(this.ticks=a,this.value=o),DayPilot.Date.Config.legacyShowD&&(this.d=new Date(a)),void(DayPilot.Stats.dateObjects+=1))},DayPilot.Date.Config={},DayPilot.Date.Config.legacyShowD=!1,DayPilot.Date.Cache={},DayPilot.Date.Cache.Parsing={},DayPilot.Date.Cache.Ctor={},DayPilot.Date.Cache.Ticks={},DayPilot.Date.Cache.DurationCtor={},DayPilot.Date.Cache.clear=function(){DayPilot.Date.Cache.Parsing={},DayPilot.Date.Cache.Ctor={},DayPilot.Date.Cache.Ticks={},DayPilot.Date.Cache.DurationCtor={}},DayPilot.Date.prototype.addDays=function(e){return e?new DayPilot.Date(this.ticks+24*e*60*60*1e3):this},DayPilot.Date.prototype.addHours=function(e){return e?this.addTime(60*e*60*1e3):this},DayPilot.Date.prototype.addMilliseconds=function(e){return e?this.addTime(e):this},DayPilot.Date.prototype.addMinutes=function(e){return e?this.addTime(60*e*1e3):this},DayPilot.Date.prototype.addMonths=function(e){if(!e)return this;var t=new Date(this.ticks),n=t.getUTCFullYear(),a=t.getUTCMonth()+1;if(e>0){for(;e>=12;)e-=12,n++;e>12-a?(n++,a=e-(12-a)):a+=e}else{for(;e<=-12;)e+=12,n--;a+e<=0?(n--,a=12+a+e):a+=e}var i=new Date(t.getTime());i.setUTCDate(1),i.setUTCFullYear(n),i.setUTCMonth(a-1);var r=new DayPilot.Date(i).daysInMonth();return i.setUTCDate(Math.min(r,t.getUTCDate())),new DayPilot.Date(i)},DayPilot.Date.prototype.addSeconds=function(e){return e?this.addTime(1e3*e):this},DayPilot.Date.prototype.addTime=function(e){return e?(e instanceof DayPilot.Duration&&(e=e.ticks),new DayPilot.Date(this.ticks+e)):this},DayPilot.Date.prototype.addYears=function(e){var t=new Date(this.ticks),n=new Date(this.ticks),a=this.getYear()+e,i=this.getMonth();n.setUTCDate(1),n.setUTCFullYear(a),n.setUTCMonth(i);var r=new DayPilot.Date(n).daysInMonth();return n.setUTCDate(Math.min(r,t.getUTCDate())),new DayPilot.Date(n)},DayPilot.Date.prototype.dayOfWeek=function(){return new Date(this.ticks).getUTCDay()},DayPilot.Date.prototype.dayOfWeekISO=function(){return new Date(this.ticks).getUTCDay()||7},DayPilot.Date.prototype.getDayOfWeek=function(){return new Date(this.ticks).getUTCDay()},DayPilot.Date.prototype.getDayOfYear=function(){var e=this.firstDayOfYear();return DayPilot.DateUtil.daysDiff(e,this)+1},DayPilot.Date.prototype.daysInMonth=function(){var e=new Date(this.ticks),t=e.getUTCMonth()+1,n=e.getUTCFullYear(),a=[31,28,31,30,31,30,31,31,30,31,30,31];return 2!==t?a[t-1]:n%4!==0?a[1]:n%100===0&&n%400!==0?a[1]:a[1]+1},DayPilot.Date.prototype.daysInYear=function(){var e=this.getYear();return e%4!==0?365:e%100===0&&e%400!==0?365:366},DayPilot.Date.prototype.dayOfYear=function(){return Math.ceil((this.getDatePart().getTime()-this.firstDayOfYear().getTime())/864e5)+1},DayPilot.Date.prototype.equals=function(e){if(null===e)return!1;if(e instanceof DayPilot.Date)return this===e;throw"The parameter must be a DayPilot.Date object (DayPilot.Date.equals())"},DayPilot.Date.prototype.firstDayOfMonth=function(){var e=new Date;return e.setUTCFullYear(this.getYear(),this.getMonth(),1),e.setUTCHours(0),e.setUTCMinutes(0),e.setUTCSeconds(0),e.setUTCMilliseconds(0),new DayPilot.Date(e)},DayPilot.Date.prototype.firstDayOfYear=function(){var e=this.getYear(),t=new Date;return t.setUTCFullYear(e,0,1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),new DayPilot.Date(t)},DayPilot.Date.prototype.firstDayOfWeek=function(e){var t=this;if(e instanceof DayPilot.Locale)e=e.weekStarts;else if("string"==typeof e&&DayPilot.Locale.find(e)){var n=DayPilot.Locale.find(e);e=n.weekStarts}else e=e||0;for(var a=t.dayOfWeek();a!==e;)t=t.addDays(-1),a=t.dayOfWeek();return new DayPilot.Date(t)},DayPilot.Date.prototype.getDay=function(){return new Date(this.ticks).getUTCDate()},DayPilot.Date.prototype.getDatePart=function(){var e=new Date(this.ticks);return e.setUTCHours(0),e.setUTCMinutes(0),e.setUTCSeconds(0),e.setUTCMilliseconds(0),new DayPilot.Date(e)},DayPilot.Date.prototype.getYear=function(){return new Date(this.ticks).getUTCFullYear()},DayPilot.Date.prototype.getHours=function(){return new Date(this.ticks).getUTCHours()},DayPilot.Date.prototype.getMilliseconds=function(){return new Date(this.ticks).getUTCMilliseconds()},DayPilot.Date.prototype.getMinutes=function(){return new Date(this.ticks).getUTCMinutes()},DayPilot.Date.prototype.getMonth=function(){return new Date(this.ticks).getUTCMonth()},DayPilot.Date.prototype.getSeconds=function(){return new Date(this.ticks).getUTCSeconds()},DayPilot.Date.prototype.getTotalTicks=function(){return this.getTime()},DayPilot.Date.prototype.getTime=function(){return this.ticks},DayPilot.Date.prototype.getTimePart=function(){var e=this.getDatePart();return DayPilot.DateUtil.diff(this,e)},DayPilot.Date.prototype.lastDayOfMonth=function(){var e=new Date(this.firstDayOfMonth().getTime()),t=this.daysInMonth();return e.setUTCDate(t),new DayPilot.Date(e)},DayPilot.Date.prototype.weekNumber=function(){var e=this.firstDayOfYear(),t=(this.getTime()-e.getTime())/864e5;return Math.ceil((t+e.dayOfWeek()+1)/7)},DayPilot.Date.prototype.weekNumberISO=function(){var e=!1,t=this.dayOfYear(),n=this.firstDayOfYear().dayOfWeek(),a=this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek();0===n&&(n=7),0===a&&(a=7);var i=8-n;4!==n&&4!==a||(e=!0);var r=Math.ceil((t-i)/7),o=r;return i>=4&&(o+=1),o>52&&!e&&(o=1),0===o&&(o=this.firstDayOfYear().addDays(-1).weekNumberISO()),o},DayPilot.Date.prototype.toDateLocal=function(){var e=new Date(this.ticks),t=new Date;return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours()),t.setMinutes(e.getUTCMinutes()),t.setSeconds(e.getUTCSeconds()),t.setMilliseconds(e.getUTCMilliseconds()),t},DayPilot.Date.prototype.toDate=function(){return new Date(this.ticks)},DayPilot.Date.prototype.toJSON=function(){return this.value},DayPilot.Date.prototype.toString=function(e,t){return e?new n(e,t).print(this):this.toStringSortable()},DayPilot.Date.prototype.toStringSortable=function(){return t(this.ticks)},DayPilot.Date.parse=function(e,t,a){return new n(t,a).parse(e)},DayPilot.Date.today=function(){return new DayPilot.Date(DayPilot.DateUtil.localToday(),!0)},DayPilot.Date.now=function(){return new DayPilot.Date},DayPilot.Date.fromYearMonthDay=function(e,t,n){t=t||1,n=n||1;var a=new Date(0);return a.setUTCFullYear(e),a.setUTCMonth(t-1),a.setUTCDate(n),new DayPilot.Date(a)},DayPilot.DateUtil={},DayPilot.DateUtil.fromStringSortable=function(e,t){if(!e)throw"Can't create DayPilot.Date from an empty string";var n=e.length,a=10===n,i=19===n,r=n>19;if(!a&&!i&&!r)throw"Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): "+e;if(DayPilot.Date.Cache.Parsing[e]&&!t)return DayPilot.Stats.cacheHitsParsing+=1,DayPilot.Date.Cache.Parsing[e];var o=e.substring(0,4),s=e.substring(5,7),l=e.substring(8,10),d=new Date(0);if(d.setUTCFullYear(o,s-1,l),a)return DayPilot.Date.Cache.Parsing[e]=d,d;var c=e.substring(11,13),u=e.substring(14,16),h=e.substring(17,19);if(d.setUTCHours(c),d.setUTCMinutes(u),d.setUTCSeconds(h),i)return DayPilot.Date.Cache.Parsing[e]=d,d;var f=e[19],v=0;if("."===f){var p=parseInt(e.substring(20,23));d.setUTCMilliseconds(p),v=DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23))}else v=DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19));var m=new DayPilot.Date(d);return t||(m=m.addMinutes(-v)),d=m.toDate(),DayPilot.Date.Cache.Parsing[e]=d,d},DayPilot.DateUtil.getTzOffsetMinutes=function(e){if(DayPilot.Util.isNullOrUndefined(e)||""===e)return 0;if("Z"===e)return 0;var t=e[0],n=parseInt(e.substring(1,3)),a=parseInt(e.substring(4)),i=60*n+a;if("-"===t)return-i;if("+"===t)return i;throw"Invalid timezone spec: "+e},DayPilot.DateUtil.hasTzSpec=function(e){return!!e.indexOf("+")||!!e.indexOf("-")},DayPilot.DateUtil.daysDiff=function(e,t){if(!e||!t)throw new Error("two parameters required");if(e=new DayPilot.Date(e),t=new DayPilot.Date(t),e.getTime()>t.getTime())return null;for(var n=0,a=e.getDatePart(),i=t.getDatePart();a.getTime()<i.getTime();)a=a.addDays(1),n++;return n},DayPilot.DateUtil.daysSpan=function(e,t){if(!e||!t)throw new Error("two parameters required");if(e=new DayPilot.Date(e),t=new DayPilot.Date(t),e.getTime()===t.getTime())return 0;var n=DayPilot.DateUtil.daysDiff(e,t);return t.getTime()===t.getDatePart().getTime()&&n--,n},DayPilot.DateUtil.diff=function(e,t){if(!(e&&t&&e.getTime&&t.getTime))throw"Both compared objects must be Date objects (DayPilot.Date.diff).";return e.getTime()-t.getTime()},DayPilot.DateUtil.fromLocal=function(e){e||(e=new Date);var t=new Date;return t.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setUTCHours(e.getHours()),t.setUTCMinutes(e.getMinutes()),t.setUTCSeconds(e.getSeconds()),t.setUTCMilliseconds(e.getMilliseconds()),t},DayPilot.DateUtil.localToday=function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e},DayPilot.DateUtil.hours=function(e,t){var n=e.getUTCMinutes();n<10&&(n="0"+n);var a=e.getUTCHours();if(t){var i=a<12;a%=12,0===a&&(a=12);return a+":"+n+" "+(i?"AM":"PM")}return a+":"+n},DayPilot.DateUtil.max=function(e,t){return e.getTime()>t.getTime()?e:t},DayPilot.DateUtil.min=function(e,t){return e.getTime()<t.getTime()?e:t},DayPilot.ColorUtil={},DayPilot.ColorUtil.hexToRgb=function(e){if(!/^#[0-9a-f]{6}$/i.test(e))throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'.");return e=e.replace("#",""),{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16)}},DayPilot.ColorUtil.rgbToHex=function(e){return"#"+i(e.r)+i(e.g)+i(e.b)},DayPilot.ColorUtil.adjustLuminance=function(e,t){return{r:e.r+t,g:e.g+t,b:e.b+t}},DayPilot.ColorUtil.darker=function(e,t){var n="";9===e.length&&(n=e.slice(7,9),e=e.slice(0,7));var a=DayPilot.ColorUtil.hexToRgb(e);"number"!=typeof t&&(t=1);var i=17,r=Math.round(t*i),o=DayPilot.ColorUtil.adjustLuminance(a,-r);return DayPilot.ColorUtil.rgbToHex(o)+n},DayPilot.ColorUtil.lighter=function(e,t){return"number"!=typeof t&&(t=1),DayPilot.ColorUtil.darker(e,-t)},DayPilot.ColorUtil.pl=function(e){var t=DayPilot.ColorUtil.hexToRgb(e),n=t.r/255,a=t.g/255,i=t.b/255;return Math.sqrt(.299*n*n+.587*a*a+.114*i*i)},DayPilot.ColorUtil.contrasting=function(e,t,n){var a=DayPilot.ColorUtil.pl(e);return t=t||"#ffffff",n=n||"#000000",a>.5?n:t},DayPilot.Event=function(e,t,n){var a=this;this.calendar=t,this.data=e?e:{},this.part=n?n:{},"undefined"==typeof this.data.id&&(this.data.id=this.data.value);var i={},r=["id","text","start","end","resource"];this.isEvent=!0,this.temp=function(){if(i.dirty)return i;for(var e=0;e<r.length;e++)i[r[e]]=a.data[r[e]];return i.dirty=!0,i},this.copy=function(){for(var e={},t=0;t<r.length;t++)e[r[t]]=a.data[r[t]];return e},this.commit=function(){if(i.dirty){for(var e=0;e<r.length;e++)a.data[r[e]]=i[r[e]];i.dirty=!1}},this.dirty=function(){return i.dirty},this.id=function(e){return"undefined"==typeof e?a.data.id:void(this.temp().id=e)},this.value=function(e){return"undefined"==typeof e?a.id():void a.id(e)},this.text=function(e){return"undefined"==typeof e?a.data.text:(this.temp().text=e,void this.client.innerHTML(e))},this.start=function(e){return"undefined"==typeof e?new DayPilot.Date(a.data.start):void(this.temp().start=new DayPilot.Date(e))},this.end=function(e){return"undefined"==typeof e?new DayPilot.Date(a.data.end):void(this.temp().end=new DayPilot.Date(e))},this.resource=function(e){return"undefined"==typeof e?a.data.resource:void(this.temp().resource=e)},this.duration=function(){return new DayPilot.Duration(this.start(),this.end())},this.rawend=function(e){if("undefined"==typeof e)return t&&t.internal.adjustEndIn?t.internal.adjustEndIn(new DayPilot.Date(a.data.end)):new DayPilot.Date(a.data.end);throw new DayPilot.Exception("DayPilot.Event.rawend() is readonly")},this.partStart=function(){return new DayPilot.Date(this.part.start)},this.partEnd=function(){return new DayPilot.Date(this.part.end)},this.tag=function(e){var t=a.data.tag;if(!t)return null;if("undefined"==typeof e)return a.data.tag;for(var n=a.calendar.tagFields,i=-1,r=0;r<n.length;r++)e===n[r]&&(i=r);if(i===-1)throw"Field name not found.";return t[i]},this.client={},this.client.innerHTML=function(e){if("undefined"==typeof e){var t=a.cache||a.data,n=a.calendar&&a.calendar.internal&&a.calendar.internal.xssTextHtml;return n?n(t.text,t.html):DayPilot.Util.escapeTextHtml(t.text,t.html)}a.data.html=e},this.client.html=this.client.innerHTML,this.client.header=function(e){return"undefined"==typeof e?a.data.header:void(a.data.header=e)},this.client.cssClass=function(e){return"undefined"==typeof e?a.cache&&"undefined"!=typeof a.cache.cssClass?a.cache.cssClass:a.data.cssClass:void(a.data.cssClass=e)},this.client.toolTip=function(e){return"undefined"==typeof e?a.cache&&"undefined"!=typeof a.cache.toolTip?a.cache.toolTip:"undefined"!=typeof a.data.toolTip?a.data.toolTip:a.data.text:void(a.data.toolTip=e)},this.client.barVisible=function(e){return"undefined"==typeof e?a.cache&&"undefined"!=typeof a.cache.barHidden?!a.cache.barHidden:a.calendar.durationBarVisible&&!a.data.barHidden:void(a.data.barHidden=!e)},this.client.backColor=function(e){return"undefined"==typeof e?a.cache&&"undefined"!=typeof a.cache.backColor?a.cache.backColor:"undefined"!=typeof a.data.backColor?a.data.backColor:a.calendar.eventBackColor:void(a.data.backColor=e)},this.client.borderColor=function(e){return"undefined"==typeof e?a.cache&&"undefined"!=typeof a.cache.borderColor?a.cache.borderColor:"undefined"!=typeof a.data.borderColor?a.data.borderColor:a.calendar.eventBorderColor:void(a.data.borderColor=e)},this.client.contextMenu=function(e){if("undefined"==typeof e){if(a.oContextMenu)return a.oContextMenu;return a.cache?a.cache.contextMenu:a.data.contextMenu}a.oContextMenu=e},this.client.moveEnabled=function(e){return"undefined"==typeof e?a.cache&&"undefined"!=typeof a.cache.moveDisabled?!a.cache.moveDisabled:"Disabled"!==a.calendar.eventMoveHandling&&!a.data.moveDisabled:void(a.data.moveDisabled=!e)},this.client.resizeEnabled=function(e){return"undefined"==typeof e?a.cache&&"undefined"!=typeof a.cache.resizeDisabled?!a.cache.resizeDisabled:"Disabled"!==a.calendar.eventResizeHandling&&!a.data.resizeDisabled:void(a.data.resizeDisabled=!e)},this.client.clickEnabled=function(e){return"undefined"==typeof e?a.cache&&"undefined"!=typeof a.cache.clickDisabled?!a.cache.clickDisabled:"Disabled"!==a.calendar.eventClickHandling&&!a.data.clickDisabled:void(a.data.clickDisabled=!e)},this.client.rightClickEnabled=function(e){return"undefined"==typeof e?a.cache&&"undefined"!=typeof a.cache.rightClickDisabled?!a.cache.rightClickDisabled:"Disabled"!==a.calendar.eventRightClickHandling&&!a.data.rightClickDisabled:void(a.data.rightClickDisabled=!e)},this.client.deleteEnabled=function(e){return"undefined"==typeof e?a.cache&&"undefined"!=typeof a.cache.deleteDisabled?!a.cache.deleteDisabled:"Disabled"!==a.calendar.eventDeleteHandling&&!a.data.deleteDisabled:void(a.data.deleteDisabled=!e)},this.toJSON=function(){var e={};if(e.value=this.id(),e.id=this.id(),e.text=this.text(),e.start=this.start(),e.end=this.end(),e.tag={},a.calendar&&a.calendar.tagFields)for(var t=a.calendar.tagFields,n=0;n<t.length;n++)e.tag[t[n]]=this.tag(t[n]);return e}}}}(DayPilot),function(DayPilot){var e=function(){};if("undefined"==typeof DayPilot.Calendar||!DayPilot.Calendar.events){var t={};t.selectedCells=[],t.topSelectedCell=null,t.bottomSelectedCell=null,t.column=null,t.firstSelected=null,t.firstMousePos=null,t.originalMouse=null,t.originalHeight=null,t.originalTop=null,t.resizing=null,t.globalHandlers=!1,t.moving=null,t.register=function(e){t.registered||(t.registered=[]);for(var n=t.registered,a=0;a<n.length;a++)if(n[a]===e)return;n.push(e)},t.unregister=function(e){var n=t.registered;if(n){var a=DayPilot.indexOf(n,e);a!==-1&&n.splice(a,1)}},t.getCellsAbove=function(e){for(var n=[],a=t.getColumn(e),i=e.parentNode,r=null;i&&r!==t.firstSelected;)for(r=i.getElementsByTagName("td")[a],n.push(r),i=i.previousSibling;i&&"TR"!==i.tagName;)i=i.previousSibling;return n},t.getCellsBelow=function(e){for(var n=[],a=t.getColumn(e),i=e.parentNode,r=null;i&&r!==t.firstSelected;)for(r=i.getElementsByTagName("td")[a],n.push(r),i=i.nextSibling;i&&"TR"!==i.tagName;)i=i.nextSibling;return n},t.getColumn=function(e){for(var t=0;e.previousSibling;)e=e.previousSibling,"TD"===e.tagName&&t++;return t},t.gUnload=function(){if(t.registered)for(var e=t.registered,n=0;n<e.length;n++){var a=e[n];a.dispose(),t.unregister(a)}},t.gMouseUp=function(n){if(t.resizing){if(!t.resizingShadow)return t.resizing.style.cursor="default",document.body.style.cursor="default",t.resizing=null,void(DayPilot.Global.resizing=null);var a=t.resizing.event,i=t.resizingShadow.clientHeight,r=t.resizingShadow.offsetTop,o=t.resizing.dpBorder;t.deleteShadow(t.resizingShadow),t.resizingShadow=null,t.resizing.style.cursor="default",a.calendar.nav.top.style.cursor="auto",t.resizing.onclick=null,t.resizing=null,DayPilot.Global.resizing=null,a.calendar.L(a,i,r,o)}else if(t.moving){if(!t.movingShadow)return t.moving=null,DayPilot.Global.moving=null,void(document.body.style.cursor="default");var s=t.movingShadow.offsetTop,a=t.moving.event;t.deleteShadow(t.movingShadow),DayPilot.Util.removeClass(t.moving,a.calendar.M("_event_moving_source"));var l=t.movingShadow.column;t.moving=null,DayPilot.Global.moving=null,t.movingShadow=null,a.calendar.nav.top.style.cursor="auto",a.calendar.N(a,l,s,n)}else if(DayPilot.Global.selecting){var d=DayPilot.Global.selecting.calendar;d.O=DayPilot.Global.selecting,DayPilot.Global.selecting=null;var c=d.getSelection();d.P(c.start,c.end,c.resource),"Hold"!==d.timeRangeSelectedHandling&&"HoldForever"!==d.timeRangeSelectedHandling&&e()}else t.selecting=!1},t.deleteShadow=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},t.moveShadow=function(e){var n=t.movingShadow,a=n.parentNode;a.style.display="none",n.parentNode.removeChild(n),e.firstChild.appendChild(n),n.style.left="0px",a.style.display="",n.style.width=t.movingShadow.parentNode.offsetWidth+1+"px"};var n=DayPilot.Util.isVueVNode,a=DayPilot.Util.isReactComponent,i=DayPilot.Util.overlaps;t.Calendar=function(e,r){var o=!1;if(this instanceof t.Calendar&&!this.Q&&(o=!0,this.Q=!0),!o)throw"DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";var s=this;this.uniqueID=null,this.isCalendar=!0,this.v="${v}",this.id=e,this.clientName=e,this.cache={},this.cache.pixels={},this.elements={},this.elements.events=[],this.elements.selection=[],this.nav={},this.afterRender=function(){},this.fasterDispose=!0,this.angularAutoApply=!1,this.api=2,this.businessBeginsHour=9,this.businessEndsHour=18,this.cellDuration=30,this.cellHeight=30,this.columnMarginLeft=0,this.columnMarginRight=5,this.columnsLoadMethod="GET",this.contextMenu=null,this.cssClass=null,this.days=1,this.durationBarVisible=!0,this.eventBorderRadius=null,this.eventsLoadMethod="GET",this.headerDateFormat=null,this.headerHeight=30,this.headerTextWrappingEnabled=!1,this.height=300,this.heightSpec="BusinessHours",this.hideUntilInit=!0,this.hourWidth=60,this.initScrollPos="Auto",this.loadingLabelHtml=null,this.loadingLabelText="Loading...",this.loadingLabelVisible=!0,
12
- this.locale="en-us",this.rtl=!1,this.snapToGrid=!0,this.showToolTip=!0,this.startDate=(new DayPilot.Date).getDatePart(),this.cssClassPrefix="calendar_default",this.theme=null,this.timeFormat="Auto",this.useEventBoxes="Always",this.viewType="Days",this.visible=!0,this.xssProtection="Enabled",this.zoomLevels=[],this.headerClickHandling="Enabled",this.eventClickHandling="Enabled",this.eventResizeHandling="Update",this.eventRightClickHandling="ContextMenu",this.eventMoveHandling="Update",this.eventDeleteHandling="Disabled",this.timeRangeSelectedHandling="Enabled",this.onBeforeCellRender=null,this.onBeforeEventRender=null,this.onBeforeHeaderRender=null,this.onEventClick=null,this.onEventClicked=null,this.onEventDelete=null,this.onEventDeleted=null,this.onEventMove=null,this.onEventMoved=null,this.onEventResize=null,this.onEventResized=null,this.onEventRightClick=null,this.onEventRightClicked=null,this.onHeaderClick=null,this.onHeaderClicked=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.R=!1,this.S={};var l=this.S;this.clearSelection=function(){t.topSelectedCell=null,t.bottomSelectedCell=null,this.T()},this.T=function(){DayPilot.de(s.elements.selection),s.elements.selection=[],s.nav.activeSelection=null},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(s.uniqueID,i)},this.W=function(e,t,n){this.callbackTimeout&&window.clearTimeout(this.callbackTimeout),this.callbackTimeout=window.setTimeout(function(){s.loadingStart()},100);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.ajaxError):"function"==typeof WebForm_DoCallback&&WebForm_DoCallback(this.uniqueID,i,this.Y,this.clientName,this.onCallbackError,!0)},this.onCallbackError=function(e,t){alert("Error!\r\nResult: "+e+"\r\nContext:"+t)},this.dispose=function(){var e=s;e.R||(e.R=!0,clearInterval(e.Z),e._(),e.nav.scroll.root=null,DayPilot.pu(e.nav.loading),e.aa(),e.ba(),e.nav.select=null,e.nav.cornerRight=null,e.nav.scrollable=null,e.nav.zoom=null,e.nav.loading=null,e.nav.header=null,e.nav.hourTable=null,e.nav.scrolltop=null,e.nav.scroll.onscroll=null,e.nav.scroll=null,e.nav.main=null,e.nav.message=null,e.nav.messageClose=null,e.nav.top=null,t.unregister(e))},this.disposed=function(){return this.R},this.ca=function(){this.nav.top.dispose=this.dispose},this.X=function(e){s.Y(e.responseText)},this.V=function(){var e={};return e.control="dpc",e.id=this.id,e.v=this.v,e.days=s.days,e.startDate=s.startDate,e.heightSpec=s.heightSpec,e.businessBeginsHour=s.businessBeginsHour,e.businessEndsHour=s.businessEndsHour,e.hashes=s.hashes,e.timeFormat=s.timeFormat,e.viewType=s.viewType,e.locale=s.locale,e},this.da=function(e){for(var t=e.parentNode;t&&"TD"!==t.tagName;)t=t.parentNode;var n=s.eventBorderRadius;"number"==typeof n&&(n+="px");var a=document.createElement("div");a.setAttribute("unselectable","on"),a.style.position="absolute",a.style.width=e.offsetWidth+"px",a.style.height=e.offsetHeight+"px",a.style.left=e.offsetLeft+"px",a.style.top=e.offsetTop+"px",a.style.boxSizing="border-box",a.style.zIndex=101,a.className=s.M("_shadow");var i=document.createElement("div");return i.className=s.M("_shadow_inner"),n&&(i.style.borderRadius=n,a.style.borderRadius=n),a.appendChild(i),t.firstChild.appendChild(a),a},this.S.locale=function(){var e=DayPilot.Locale.find(s.locale);return e?e:DayPilot.Locale.US},this.S.timeFormat=function(){return"Auto"!==s.timeFormat?s.timeFormat:this.locale().timeFormat},this.S.ea=function(){return"Disabled"!==s.xssProtection},this.S.fa=function(){if("Auto"===s.weekStarts){var e=l.locale();return e?e.weekStarts:0}return s.weekStarts||0},this.S.ga=function(){var e=s.cellDuration;if(e<=1)return 1;if(e>=60)return 60;var t=[1,2,3,4,5,6,10,12,15,20,30,60],n=Math.floor(e);return Math.max.apply(null,t.filter(function(e){return e<=n}))},this.Y=function(e){if(e&&0===e.indexOf("$$$")){if(!window.console)throw"Error received from the server side: "+e;return void console.log("Error received from the server side: "+e)}var t=JSON.parse(e);if(t.CallBackRedirect)return void(document.location.href=t.CallBackRedirect);if("None"===t.UpdateType)return s.loadingStop(),void s.z();if(s._(),"Full"===t.UpdateType&&(s.columns=t.Columns,s.days=t.Days,s.startDate=new DayPilot.Date(t.StartDate),s.heightSpec=t.HeightSpec?t.HeightSpec:s.heightSpec,s.businessBeginsHour=t.BusinessBeginsHour?t.BusinessBeginsHour:s.businessBeginsHour,s.businessEndsHour=t.BusinessEndsHour?t.BusinessEndsHour:s.businessEndsHour,s.headerDateFormat=t.HeaderDateFormat?t.HeaderDateFormat:s.headerDateFormat,s.viewType=t.ViewType,s.backColor=t.BackColor?t.BackColor:s.backColor,s.eventHeaderVisible=t.EventHeaderVisible?t.EventHeaderVisible:s.eventHeaderVisible,s.timeFormat=t.TimeFormat?t.TimeFormat:s.timeFormat,s.locale=t.Locale?t.Locale:s.locale,s.ha()),t.Hashes)for(var n in t.Hashes)s.hashes[n]=t.Hashes[n];s.events.list=t.Events,s.ia(),s.ja(),"Full"===t.UpdateType&&(s.ka(),s.la(),s.ma(),s.na()),s.z(),s.oa(),s.clearSelection(),s.afterRender(t.CallBackData,!0),s.loadingStop()},this.pa=function(){return this.qa()/36e5},this.ra=function(){return this.businessBeginsHour>this.businessEndsHour?24-this.businessBeginsHour+this.businessEndsHour:this.businessEndsHour-this.businessBeginsHour},this.sa=function(){return this.qa()/(60*l.ga()*1e3)},this.qa=function(){var e=0;return e="BusinessHoursNoScroll"===this.heightSpec?this.ra():24,60*e*60*1e3},this.ta=function(){return"BusinessHoursNoScroll"===this.heightSpec?this.businessBeginsHour:0},this.va=function(){return 2===s.api},this.eventClickCallBack=function(e,t){this.W("EventClick",t,e)},this.eventClickPostBack=function(e,t){this.U("EventClick",t,e)},this.wa=function(e){var t=e.currentTarget,n=t.event;if(n.client.clickEnabled())if(s.va()){var a={};if(a.e=n,a.originalEvent=e,a.meta=e.metaKey,a.ctrl=e.ctrlKey,a.control=s,a.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onEventClick&&(s.xa.apply(function(){s.onEventClick(a)}),a.preventDefault.value))return;switch(s.eventClickHandling){case"CallBack":s.eventClickCallBack(n);break;case"PostBack":s.eventClickPostBack(n);break;case"ContextMenu":var i=n.client.contextMenu();i?i.show(n):s.contextMenu&&s.contextMenu.show(n)}"function"==typeof s.onEventClicked&&s.xa.apply(function(){s.onEventClicked(a)})}else switch(s.eventClickHandling){case"PostBack":s.eventClickPostBack(n);break;case"CallBack":s.eventClickCallBack(n);break;case"JavaScript":s.onEventClick(n)}},this.ya=function(e){var t=e.currentTarget.event;if(e.stopPropagation(),!t.client.rightClickEnabled())return!1;var n={};if(n.e=t,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(t)}return"function"==typeof s.onEventRightClicked&&s.onEventRightClicked(n),e.preventDefault&&e.preventDefault(),!1},this.eventDeleteCallBack=function(e,t){this.W("EventDelete",t,e)},this.eventDeletePostBack=function(e,t){this.U("EventDelete",t,e)},this.za=function(e){if(s.va()){var t={};if(t.e=e,t.control=s,t.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onEventDelete&&(s.xa.apply(function(){s.onEventDelete(t)}),t.preventDefault.value))return;switch(s.eventDeleteHandling){case"CallBack":s.eventDeleteCallBack(e);break;case"PostBack":s.eventDeletePostBack(e);break;case"Update":s.events.remove(e)}"function"==typeof s.onEventDeleted&&s.xa.apply(function(){s.onEventDeleted(t)})}else switch(s.eventDeleteHandling){case"PostBack":s.eventDeletePostBack(e);break;case"CallBack":s.eventDeleteCallBack(e);break;case"JavaScript":s.onEventDelete(e)}},this.eventResizeCallBack=function(e,t,n,a){if(!t)throw"newStart is null";if(!n)throw"newEnd is null";var i={};i.e=e,i.newStart=t,i.newEnd=n,this.W("EventResize",a,i)},this.eventResizePostBack=function(e,t,n,a){if(!t)throw"newStart is null";if(!n)throw"newEnd is null";var i={};i.e=e,i.newStart=t,i.newEnd=n,this.U("EventResize",a,i)},this.L=function(e,t,n,a){var i=0,r=new Date,o=new Date;if("top"===a?(r=s.Aa(e,n-i),o=e.end()):"bottom"===a&&(r=e.start(),o=s.Ba(e,n+t-i)),s.va()){var l={};if(l.e=e,l.control=s,l.newStart=r,l.newEnd=o,l.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onEventResize&&(s.xa.apply(function(){s.onEventResize(l)}),l.preventDefault.value))return;switch(s.eventResizeHandling){case"PostBack":s.eventResizePostBack(e,r,o);break;case"CallBack":s.eventResizeCallBack(e,r,o);break;case"Update":e.start(r),e.end(o),s.events.update(e)}"function"==typeof s.onEventResized&&s.xa.apply(function(){s.onEventResized(l)})}else switch(s.eventResizeHandling){case"PostBack":s.eventResizePostBack(e,r,o);break;case"CallBack":s.eventResizeCallBack(e,r,o);break;case"JavaScript":s.onEventResize(e,r,o)}},this.Aa=function(e,t){var n=s.Ca[e.part.dayIndex].start,a=Math.floor(t/s.cellHeight);s.snapToGrid||(a=t/s.cellHeight);var i=Math.floor(a*l.ga()),r=60*i*1e3;return n.addTime(r+0)},this.Ba=function(e,t){var n=Math.floor(t/s.cellHeight);s.snapToGrid||(n=t/s.cellHeight);var a=Math.floor(n*l.ga()),i=60*a*1e3;return s.Ca[e.part.dayIndex].start.addTime(i+0)},this.eventMovePostBack=function(e,t,n,a,i){if(!t)throw"newStart is null";if(!n)throw"newEnd is null";var r={};r.e=e,r.newStart=t,r.newEnd=n,this.U("EventMove",i,r)},this.eventMoveCallBack=function(e,t,n,a,i){if(!t)throw"newStart is null";if(!n)throw"newEnd is null";var r={};r.e=e,r.newStart=t,r.newEnd=n,this.W("EventMove",i,r)},this.N=function(e,t,n,a){var i=0,r=Math.floor((n-i)/s.cellHeight);s.snapToGrid||(r=(n-i)/s.cellHeight);var o=l.ga(),d=r*o*60*1e3,c=e.start(),u=e.end(),h=new Date;c instanceof DayPilot.Date&&(c=c.toDate()),h.setTime(Date.UTC(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()));var f=c.getTime()-(h.getTime()+3600*c.getUTCHours()*1e3+Math.floor(c.getUTCMinutes()/o)*o*60*1e3);"Never"===s.useEventBoxes&&(f=0);var v=u.getTime()-c.getTime(),p=this.Ca[t],m=p.id;s.snapToGrid||(f=0);var g=p.start.getTime(),y=new Date;y.setTime(g+d+f);var b=new DayPilot.Date(y),w=b.addTime(v);if(s.va()){var x={};if(x.e=e,x.newStart=b,x.newEnd=w,x.newResource=m,x.ctrl=a.ctrlKey,x.shift=a.shiftKey,x.control=s,x.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onEventMove&&(s.xa.apply(function(){s.onEventMove(x)}),x.preventDefault.value))return;switch(s.eventMoveHandling){case"PostBack":s.eventMovePostBack(e,b,w,p.id);break;case"CallBack":s.eventMoveCallBack(e,b,w,p.id);break;case"Update":e.start(b),e.end(w),e.resource(m),s.events.update(e)}"function"==typeof s.onEventMoved&&s.xa.apply(function(){s.onEventMoved(x)})}else switch(s.eventMoveHandling){case"PostBack":s.eventMovePostBack(e,b,w,p.id);break;case"CallBack":s.eventMoveCallBack(e,b,w,p.id);break;case"JavaScript":s.onEventMove(e,b,w,p.id,!1)}},this.timeRangeSelectedPostBack=function(e,t,n,a){var i={};i.start=e,i.end=t,this.U("TimeRangeSelected",a,i)},this.timeRangeSelectedCallBack=function(e,t,n,a){var i={};i.start=e,i.end=t,this.W("TimeRangeSelected",a,i)},this.P=function(e,t,n){if(e=new DayPilot.Date(e),t=new DayPilot.Date(t),this.va()){var a={};if(a.start=e,a.end=t,a.resource=n,a.control=s,a.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onTimeRangeSelect&&(s.xa.apply(function(){s.onTimeRangeSelect(a)}),a.preventDefault.value))return;switch(s.timeRangeSelectedHandling){case"PostBack":s.timeRangeSelectedPostBack(e,t);break;case"CallBack":s.timeRangeSelectedCallBack(e,t)}"function"==typeof s.onTimeRangeSelected&&s.xa.apply(function(){s.onTimeRangeSelected(a)})}else switch(s.timeRangeSelectedHandling){case"PostBack":s.timeRangeSelectedPostBack(e,t);break;case"CallBack":s.timeRangeSelectedCallBack(e,t);break;case"JavaScript":s.onTimeRangeSelected(e,t)}},this.Da=function(e){if(!DayPilot.Global.selecting&&"Disabled"!==s.timeRangeSelectedHandling){var t=e.which;if(1===t||0===t){var n=s.nav.scrollable;s.coords=DayPilot.mo3(n,e),DayPilot.Global.selecting={calendar:s,start:s.coords};var a=DayPilot.Global.selecting;return a.start.time=s.Ea(s.coords.x,s.coords.y),a.start.columnIndex=s.Fa(s.coords.x),a.start.column=s.Ca[a.start.columnIndex],s.Ga(),s.Ha(),!1}}},this.Ha=function(){var e=DayPilot.Global.selecting;!function(){var t=e.start.column,n=e.start.columnIndex,a=t.start,i=s.getPixels(e.startTime,a),r=s.getPixels(e.endTime,a),o=i.boxTop,l=r.boxBottom;s.snapToGrid||(o=i.top,l=r.top);var d=l-o,c=s.eventBorderRadius;"number"==typeof c&&(c+="px");var u=function(){if(s.nav.activeSelection)return s.nav.activeSelection;var e=document.createElement("div");e.setAttribute("unselectable","on"),e.style.position="absolute",e.style.left="0px",e.style.width="100%";var t=document.createElement("div");return t.setAttribute("unselectable","on"),t.className=s.M("_shadow_inner"),c&&(t.style.borderRadius=c,e.style.borderRadius=c),e.appendChild(t),s.nav.events.rows[0].cells[n].selection.appendChild(e),s.elements.selection.push(e),s.nav.activeSelection=e,e}();u.className=s.M("_shadow"),u.firstChild.innerHTML="",u.style.top=o+"px",u.style.height=d+"px",s.nav.events.rows[0].cells[n].selection.appendChild(u)}()},this.Ga=function(){var e=DayPilot.Global.selecting;e.end=s.coords,e.end.time=s.Ea(e.start.x,e.end.y),e.end.column=s.Ca[s.Fa(e.end.x)],s.Ia(e)},this.Ia=function(e){var t,n,a;s.snapToGrid?e.end.time<e.start.time?(t=s.Ja(e.end.time,e.start.column.start),n=s.Ka(e.start.time,e.start.column.start),a=e.endTime):(t=s.Ja(e.start.time,e.start.column.start),n=s.Ka(e.end.time,e.start.column.start),a=e.startTime):e.end.time<e.start.time?(t=e.end.time,n=e.start.time,a=e.endTime):(t=e.start.time,n=e.end.time,a=e.startTime),e.startTime=t,e.endTime=n,e.anchor=a},this.getSelection=function(){if(!s.O)return null;var e=s.O;return new DayPilot.Selection(e.startTime,e.endTime,e.start.column.id,s)},this.Fa=function(e){if(e<0)return 0;s.rtl?e=s.nav.main.offsetWidth-e:e-=s.hourWidth;for(var t=0,n=s.nav.events.rows[0].cells,a=0;a<n.length;a++){if(t+=n[a].offsetWidth,e<t)return a}return null},this.Ea=function(e,t){e=DayPilot.Util.atLeast(e,0);var n=this.Fa(e),a=t/(60/l.ga())/s.cellHeight,i=60*a*60*1e3,r=6e4*Math.floor(i/6e4),o=this.Ca[n];return o?o.start.addTime(r):null},this.Ja=function(e,t){var n=e.getTime();t&&(n-=t.getTime());var a=60*l.ga()*1e3,i=n%a;return e.addTime(-i)},this.Ka=function(e,t){var n=this.Ja(e,t);return n.getTime()===e.getTime()?n:n.addTime(60*l.ga()*1e3)},this.La={},this.La.getCellCoords=function(){var e={};if(e.x=0,e.y=0,!s.coords)return null;e.x=s.Fa(s.coords.x);var t=0,n=Math.floor((s.coords.y-t)/s.cellHeight);return e.y=n,e.x<0?null:e},this.Ma=function(e){var t=s.ta();return e<t&&(e+=24),(e-t)*(60/l.ga())*s.cellHeight},this.Na=function(e){var t=s.ta();return e/(60/l.ga())/s.cellHeight+t},this.scrollToHour=function(e){s.nav.scroll.scrollTop=s.Ma(e)},this.zoom={},this.zoom.active=-1,this.zoom.setActive=function(e){var t;if("number"==typeof e)t=s.zoomLevels[e];else{if("string"!=typeof e)throw new DayPilot.Exception("Unexpected parameter type (string or number required): "+typeof e);var n=s.zoom.Oa(e);t=s.zoomLevels[n]}if(!t)throw new DayPilot.Exception("Zoom level not found: "+e+" ("+typeof e+")");if(e!==s.zoom.active){var a=s.zoom.Pa();s.zoom.Qa(e),s.Ra&&s.update(),a&&s.scrollToHour(a)}},this.zoom.Oa=function(e){return(s.zoomLevels||[]).findIndex(function(t){return t.id===e})},this.zoom.Pa=function(){return s.Sa.scrollHour},this.zoom.Qa=function(e){var t=s.zoomLevels.length-1;e>t&&(e=t),e<0&&(e=0),s.zoom.active=e;var n=s.zoomLevels[e],a={};return a.level=n,DayPilot.Util.ownPropsAsArray(n.properties).forEach(function(e){if(0!==e.key.indexOf("on"))return"function"==typeof e.val?void(s[e.key]=e.val(a)):void(s[e.key]=e.val)}),a},this.columns={},this.columns.list=[],this.columns.load=function(e,t,n){if(!e)throw new DayPilot.Exception("columns.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.columns.list=n,s.Ra&&s.update()}};s.columnsLoadMethod&&"POST"===s.columnsLoadMethod.toUpperCase()?DayPilot.ajax({"method":"POST","url":e,"success":i,"error":a}):DayPilot.ajax({"method":"GET","url":e,"success":i,"error":a})},this.ha=function(){var e;e="Resources"!==s.viewType?this.Ta():s.columns.list,this.Ca=[];for(var t=0;t<e.length;t++){var n=this.Ua(e[t]);this.Ca.push(n)}},this.Ua=function(e){var t={};if(t.name=e.name,t.html=e.html,t.id=e.id,t.toolTip=e.toolTip,t.data=e,e.start?t.start=new DayPilot.Date(e.start):t.start=new DayPilot.Date(s.startDate),"BusinessHoursNoScroll"===this.heightSpec){var n=t.start.getDatePart();t.start=n.addHours(this.businessBeginsHour)}return t.putIntoBlock=function(e){for(var t=0;t<this.blocks.length;t++){var n=this.blocks[t];if(n.overlapsWith(e.part.top,e.part.height))return n.events.push(e),n.min=Math.min(n.min,e.part.top),n.max=Math.max(n.max,e.part.top+e.part.height),t}var a=[];return a.lines=[],a.events=[],a.overlapsWith=function(e,t){return!(e+t-1<this.min||e>this.max-1)},a.putIntoLine=function(e){for(var t=0;t<this.lines.length;t++){var n=this.lines[t];if(n.isFree(e.part.top,e.part.height))return n.push(e),t}var a=[];return a.isFree=function(e,t){for(var n=e+t-1,a=this.length,i=0;i<a;i++){var r=this[i];if(!(n<r.part.top||e>r.part.top+r.part.height-1))return!1}return!0},a.push(e),this.lines.push(a),this.lines.length-1},a.events.push(e),a.min=e.part.top,a.max=e.part.top+e.part.height,this.blocks.push(a),this.blocks.length-1},t.putIntoLine=function(e){for(var t=0;t<this.lines.length;t++){var n=this.lines[t];if(n.isFree(e.part.top,e.part.height))return n.push(e),t}var a=[];return a.isFree=function(e,t){for(var n=e+t-1,a=this.length,i=0;i<a;i++){var r=this[i];if(!(n<r.part.top||e>r.part.top+r.part.height-1))return!1}return!0},a.push(e),this.lines.push(a),this.lines.length-1},t},this.Ta=function(){var e=[],t=this.startDate.getDatePart(),n=this.days;switch(this.viewType){case"Day":n=1;break;case"Week":n=7;var a=l.fa();t=t.firstDayOfWeek(a);break;case"WorkWeek":n=5,t=t.firstDayOfWeek(1)}for(var i=0;i<n;i++){var r=s.headerDateFormat?s.headerDateFormat:l.locale().datePattern,o={};o.start=t.addDays(i),o.name=o.start.toString(r,l.locale()),e.push(o)}return e},this.visibleStart=function(){if("Resources"===s.viewType){if(0===s.Ca.length)return DayPilot.Date.today();var e=s.Ca.map(function(e){return e.start.getTime()}),t=Math.min.apply(null,e);return new DayPilot.Date(t)}return this.Ca[0].start},this.visibleEnd=function(){if("Resources"===s.viewType){if(0===s.Ca.length)return DayPilot.Date.today().addDays(1);var e=s.Ca.map(function(e){return e.start.getTime()}),t=Math.max.apply(null,e);return new DayPilot.Date(t).addDays(1)}var n=this.Ca.length-1;return this.Ca[n].start.addDays(1)},this.M=function(e){var t=this.theme||this.cssClassPrefix;return t?t+e:""},this._=function(){if(this.elements.events)for(var e=0;e<this.elements.events.length;e++){var t=this.elements.events[e];s.Va(t)}this.elements.events=[]},this.Va=function(e){!function(){var t=e.domArgs;if(e.domArgs=null,t&&"function"==typeof s.onBeforeEventDomRemove&&s.onBeforeEventDomRemove(t),t&&"function"==typeof s.onBeforeEventDomAdd){var i=t&&t.Wa;if(i){var r=s.Ya.Xa&&n(t.element);s.Za.reactDOM&&a(t.element)?s.Za.$a(i):r&&(s.Ya._a=!0,s.Ya.ab(i),s.Ya._a=!1)}}}();var t=e.event;if(t&&(t.calendar=null),e.onclick=null,e.onclickSave=null,e.onmouseover=null,e.onmouseout=null,e.onmousemove=null,e.onmousedown=null,e.firstChild&&e.firstChild.firstChild&&e.firstChild.firstChild.tagName&&"IMG"===e.firstChild.firstChild.tagName.toUpperCase()){var i=e.firstChild.firstChild;i.onmousedown=null,i.onmousemove=null,i.onclick=null}e.helper=null,e.data=null,e.event=null,DayPilot.de(e)},this.bb=function(e){var i=e.cache||e.data,r=this.nav.events,o=i.borderRadius||s.eventBorderRadius;"number"==typeof o&&(o+="px");var l=document.createElement("div");l.style.position="absolute",l.style.left=e.part.left+"%",l.style.top=e.part.top+"px",l.style.width=e.part.width+"%",l.style.height=Math.max(e.part.height,2)+"px",l.style.overflow="hidden",l.data=e,l.event=e,l.unselectable="on",l.style.MozUserSelect="none",l.style.KhtmlUserSelect="none",l.className=this.M("_event"),i.cssClass&&DayPilot.Util.addClass(l,i.cssClass),s.showToolTip&&e.client.toolTip()&&(l.title=e.client.toolTip()),l.isFirst=e.part.start.getTime()===e.start().getTime(),l.isLast=e.part.end.getTime()===e.end().getTime(),l.onclick=this.wa,DayPilot.re(l,"contextmenu",this.ya),l.onmouseout=function(){l.deleteIcon&&(l.deleteIcon.style.display="none")},l.onmousemove=function(n){var a=5;if("undefined"!=typeof t){var i=DayPilot.mo3(l,n);if(i&&!t.resizing&&!t.moving){l.deleteIcon&&(l.deleteIcon.style.display="");var r=this.isLast;i.y<=a&&e.client.resizeEnabled()?(this.style.cursor="n-resize",this.dpBorder="top"):this.offsetHeight-i.y<=a&&e.client.resizeEnabled()?r?(this.style.cursor="s-resize",this.dpBorder="bottom"):this.style.cursor="not-allowed":t.resizing||t.moving||("Disabled"!==s.eventClickHandling?this.style.cursor="pointer":this.style.cursor="default")}}},l.onmousedown=function(n){var a=n.which||n.button;if("n-resize"!==this.style.cursor&&"s-resize"!==this.style.cursor||1!==a){if(1===a&&e.client.moveEnabled()){t.moving=this,DayPilot.Global.moving=this,t.moving.event=this.event;var i=t.moving.helper={};i.oldColumn=s.Ca[this.data.part.dayIndex].id,t.originalMouse=DayPilot.mc(n),t.originalTop=this.offsetTop;var r=DayPilot.mo3(this,n);r?t.moveOffsetY=r.y:t.moveOffsetY=0,s.nav.top.style.cursor="move"}}else t.resizing=this,DayPilot.Global.resizing=this,t.originalMouse=DayPilot.mc(n),t.originalHeight=this.offsetHeight,t.originalTop=this.offsetTop,s.nav.top.style.cursor=this.style.cursor;return!1};var d=document.createElement("div");if(d.setAttribute("unselectable","on"),d.className=s.M("_event_inner"),"darker"===i.borderColor&&i.backColor?d.style.borderColor=DayPilot.ColorUtil.darker(i.backColor,2):d.style.borderColor=i.borderColor,i.backColor&&(d.style.background=i.backColor),i.fontColor&&(d.style.color=i.fontColor),o&&(l.style.borderRadius=o,d.style.borderRadius=o),l.appendChild(d),e.client.barVisible()){var c=e.part.height-2,u=100*e.part.barTop/c,h=Math.ceil(100*e.part.barHeight/c),f=document.createElement("div");f.setAttribute("unselectable","on"),f.className=this.M("_event_bar"),f.style.position="absolute",i.barBackColor&&(f.style.backgroundColor=i.barBackColor);var v=document.createElement("div");v.setAttribute("unselectable","on"),v.className=this.M("_event_bar_inner"),v.style.top=u+"%",0<h&&h<=1?v.style.height="1px":v.style.height=h+"%",i.barColor&&(v.style.backgroundColor=i.barColor),f.appendChild(v),l.appendChild(f)}if(e.client.deleteEnabled()){var p=document.createElement("div");p.style.position="absolute",p.style.right="2px",p.style.top="2px",p.style.width="17px",p.style.height="17px",p.className=s.M("_event_delete"),p.onmousedown=function(e){e.stopPropagation()},p.onclick=function(e){e.stopPropagation();var t=this.parentNode.event;t&&s.za(t)},p.style.display="none",l.deleteIcon=p,l.appendChild(p)}var m=i.areas?DayPilot.Areas.copy(i.areas):[];if(DayPilot.Areas.attach(l,e,{"areas":m}),"function"==typeof s.onAfterEventRender){var g={};g.e=l.event,g.div=l,s.onAfterEventRender(g)}if(function(){var t={};if(t.control=s,t.e=e,t.element=null,l.domArgs=t,"function"==typeof s.onBeforeEventDomAdd&&s.onBeforeEventDomAdd(t),t.element){var i=d;if(i){t.Wa=i;var r=n(t.element);if(a(t.element))s.Za.cb(),s.Za.db(t.element,i);else if(r){if(!s.Ya.Xa)throw new DayPilot.Exception("Can't reach Vue");s.Ya._a=!0,s.Ya.eb(t.element,i),s.Ya._a=!1}else i.appendChild(t.element)}}else d.innerHTML=e.client.innerHTML()}(),r.rows[0].cells[e.part.dayIndex]){r.rows[0].cells[e.part.dayIndex].firstChild.appendChild(l)}s.elements.events.push(l)},this.oa=function(){for(var e=0;e<this.Ca.length;e++){var t=this.Ca[e];if(t.blocks)for(var n=0;n<t.blocks.length;n++)for(var a=t.blocks[n],i=0;i<a.lines.length;i++)for(var r=a.lines[i],o=0;o<r.length;o++){var s=r[o];s.part.width=100/a.lines.length,s.part.left=s.part.width*i;var l=i===a.lines.length-1;l||(s.part.width=1.5*s.part.width),this.bb(s)}}},this.fb=function(){var e=this.nav.top;e.innerHTML="",DayPilot.Util.addClass(e,this.M("_main")),e.style.MozUserSelect="none",e.style.KhtmlUserSelect="none",e.style.position="relative",e.style.width=this.width?this.width:"100%",this.hideUntilInit&&(e.style.visibility="hidden"),this.visible||(e.style.display="none"),this.rtl&&(e.style.direction="rtl"),this.nav.scroll=document.createElement("div"),this.nav.scroll.style.height=this.gb()+"px","BusinessHours"===this.heightSpec?this.nav.scroll.style.overflow="auto":this.nav.scroll.style.overflow="hidden",this.nav.scroll.style.position="relative";var t=this.hb();this.nav.top.appendChild(t),this.nav.scroll.style.zoom=1;var n=this.ib();this.nav.scrollable=n.firstChild,this.nav.scroll.appendChild(n),e.appendChild(this.nav.scroll),this.nav.scrollLayer=document.createElement("div"),this.nav.scrollLayer.style.position="absolute",this.nav.scrollLayer.style.top="0px",this.nav.scrollLayer.style.left="0px",e.appendChild(this.nav.scrollLayer),this.nav.loading=document.createElement("div"),this.nav.loading.style.position="absolute",this.nav.loading.style.top="0px",this.nav.loading.style.left=this.hourWidth+5+"px",this.nav.loading.innerHTML=s.jb(s.loadingLabelText,s.loadingLabelHtml),this.nav.loading.style.display="none",e.appendChild(this.nav.loading)},this.ma=function(){this.fasterDispose||DayPilot.pu(this.nav.hourTable),this.nav.scrollable.rows[0].cells[0].innerHTML="",this.nav.hourTable=this.kb(),this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable)},this.ib=function(){var e=document.createElement("div");e.style.zoom=1,e.style.position="relative";var t=document.createElement("table");t.cellSpacing="0",t.cellPadding="0",t.border="0",t.style.border="0px none",t.style.width="100%",t.style.position="absolute";var n,a=t.insertRow(-1);n=a.insertCell(-1),n.valign="top",n.style.padding="0px",n.style.border="0px none",this.nav.hourTable=this.kb(),n.appendChild(this.nav.hourTable),n=a.insertCell(-1),n.valign="top",n.width="100%",n.style.padding="0px",n.style.border="0px none";var i=document.createElement("div");return i.style.position="relative",n.appendChild(i),i.appendChild(this.lb()),i.appendChild(this.mb()),e.appendChild(t),this.nav.zoom=e,e},this.lb=function(){var e=document.createElement("table");return e.cellPadding="0",e.cellSpacing="0",e.border="0",e.style.width="100%",e.style.border="0px none",e.style.tableLayout="fixed",this.nav.main=e,this.nav.events=e,e},this.mb=function(){var e=document.createElement("table");e.style.top="0px",e.cellPadding="0",e.cellSpacing="0",e.border="0",e.style.position="absolute",e.style.width="100%",e.style.border="0px none",e.style.tableLayout="fixed",this.nav.events=e;for(var t=this.Ca,n=t.length,a=e.insertRow(-1),i=0;i<n;i++){var r=a.insertCell(-1);r.style.padding="0px",r.style.border="0px none",r.style.height="0px",r.style.overflow="visible",s.rtl||(r.style.textAlign="left");var o=document.createElement("div");o.style.marginRight=s.columnMarginRight+"px",o.style.marginLeft=s.columnMarginLeft+"px",o.style.position="relative",o.style.height="1px",o.style.marginTop="-1px";var l=document.createElement("div");r.selection=l,r.appendChild(o),r.appendChild(l)}return e},this.kb=function(){var e=document.createElement("table");e.cellSpacing="0",e.cellPadding="0",e.border="0",e.style.border="0px none",e.style.width=this.hourWidth+"px",e.oncontextmenu=function(){return!1};for(var t=s.pa(),n=0;n<t;n++)this.nb(e,n);return e},this.nb=function(e,t){var n=60*s.cellHeight/l.ga(),a=e.insertRow(-1);a.style.height=n+"px";var i=a.insertCell(-1);i.valign="bottom",i.unselectable="on",i.style.cursor="default",i.style.padding="0px",i.style.border="0px none";var r=document.createElement("div");r.style.position="relative",r.className=this.M("_rowheader"),r.style.width=this.hourWidth+"px",r.style.height=n+"px",r.style.overflow="hidden",r.unselectable="on";var o=document.createElement("div");o.className=this.M("_rowheader_inner"),o.unselectable="on";var d=document.createElement("div");d.unselectable="on";var c=this.startDate.addHours(t).addHours(s.ta()),u=c.getHours(),h=u<12,f=l.timeFormat();"Clock12Hours"===f&&(u%=12,0===u&&(u=12)),d.innerHTML=u;var v=document.createElement("span");v.unselectable="on",v.className=this.M("_rowheader_minutes");var p;p="Clock12Hours"===f?h?"AM":"PM":"00",v.innerHTML=p,d.appendChild(v),o.appendChild(d),r.appendChild(o),i.appendChild(r)},this.gb=function(){var e=l.ga(),t=60/e;switch(this.heightSpec){case"Full":return 24*t*this.cellHeight;case"BusinessHours":var n=this.ra();return n*this.cellHeight*t;case"BusinessHoursNoScroll":var n=this.ra();return n*this.cellHeight*t;default:throw"DayPilot.Calendar: Unexpected 'heightSpec' value."}},this.ob=function(){var e=s.nav.corner?s.nav.corner.parentNode:null;if(e){e.innerHTML="";var t=this.pb();e.appendChild(t),s.nav.corner=t}},this.hb=function(){var e=document.createElement("div");e.style.overflow="auto";var t=document.createElement("table");t.cellPadding="0",t.cellSpacing="0",t.border="0",t.style.width="100%",t.style.borderCollapse="separate",t.style.border="0px none";var n=t.insertRow(-1),a=n.insertCell(-1);a.style.padding="0px",a.style.border="0px none";var i=this.pb();a.appendChild(i),this.nav.corner=i,a=n.insertCell(-1),a.style.width="100%",a.valign="top",a.style.position="relative",a.style.padding="0px",a.style.border="0px none",this.nav.header=document.createElement("table"),this.nav.header.cellPadding="0",this.nav.header.cellSpacing="0",this.nav.header.border="0",this.nav.header.width="100%",this.nav.header.style.tableLayout="fixed",this.nav.header.oncontextmenu=function(){return!1};var r="hidden"!==this.nav.scroll.style.overflow;if(a.appendChild(this.nav.header),r){a=n.insertCell(-1),a.unselectable="on";var o=document.createElement("div");o.unselectable="on",o.style.position="relative",o.style.width="16px",o.style.height=this.headerHeight+"px",o.className=this.M("_cornerright");var s=document.createElement("div");s.className=this.M("_cornerright_inner"),o.appendChild(s),a.appendChild(o),this.nav.cornerRight=o}return e.appendChild(t),e},this.pb=function(){var e=document.createElement("div");e.style.position="relative",e.className=this.M("_corner"),e.style.width=this.hourWidth+"px",e.style.height=this.headerHeight+"px",e.oncontextmenu=function(){return!1};var t=document.createElement("div");return t.unselectable="on",t.className=this.M("_corner_inner"),e.appendChild(t),e},this.aa=function(){var e=this.nav.main;e.root=null,e.onmouseup=null;for(var t=0;t<e.rows.length;t++)for(var n=e.rows[t],a=0;a<n.cells.length;a++){var i=n.cells[a];s.qb(i)}this.fasterDispose||DayPilot.pu(e)},this.qb=function(e){e&&(!function(){var t=e,i=t.domArgs;if(t.domArgs=null,i&&"function"==typeof s.onBeforeCellDomRemove&&s.onBeforeCellDomRemove(i),i&&"function"==typeof s.onBeforeCellDomAdd){var r=i&&i.Wa;if(r){var o=s.Ya.Xa&&n(i.element);s.Za.reactDOM&&a(i.element)?s.Za.$a(r):o&&(s.Ya._a=!0,s.Ya.ab(r),s.Ya._a=!1)}}}(),e.root=null,e.onmousedown=null,e.onmousemove=null,e.onmouseout=null,e.onmouseup=null)},this.la=function(){var e=l.ga(),i=this.nav.main,r=60*e*1e3,o=this.sa(),d=s.Ca;for(i&&this.aa();i&&i.rows&&i.rows.length>0;)this.fasterDispose||DayPilot.pu(i.rows[0]),i.deleteRow(0);this.tableCreated=!0;for(var c=this.nav.events;c&&c.rows&&c.rows.length>0;)this.fasterDispose||DayPilot.pu(c.rows[0]),c.deleteRow(0);for(var u=d.length,h=c.insertRow(-1),f=0;f<u;f++){var v=h.insertCell(-1);v.style.padding="0px",v.style.border="0px none",
13
- v.style.height="0px",v.style.overflow="visible",s.rtl||(v.style.textAlign="left");var p=document.createElement("div");p.style.marginRight=s.columnMarginRight+"px",p.style.marginLeft=s.columnMarginLeft+"px",p.style.position="relative",p.style.height="1px",p.style.marginTop="-1px";var m=document.createElement("div");m.style.position="relative",v.selection=m,v.appendChild(p),v.appendChild(m)}for(var g=0;g<o;g++){var y=i.insertRow(-1);y.style.MozUserSelect="none",y.style.KhtmlUserSelect="none";for(var b=function(e){var t=w.Ca[e],i=y.insertCell(-1);i.start=t.start.addTime(g*r),i.end=i.start.addTime(r),i.resource=t.id,i.onmousedown=w.Da,i.onmouseup=function(){return!1},i.onclick=function(){return!1},i.root=w,i.style.padding="0px",i.style.border="0px none",i.style.verticalAlign="top",i.style.height=s.cellHeight+"px",i.style.overflow="hidden",i.unselectable="on";var o=document.createElement("div");o.unselectable="on",o.style.height=s.cellHeight+"px",o.style.position="relative",o.className=w.M("_cell");var l=w.rb(i.start,i.end),d={"business":l,"text":null,"html":null,"cssClass":null,"backColor":null,"backImage":null,"backRepeat":null,"fontColor":null},c={"start":i.start,"end":i.end,"resource":i.resource,"properties":d,"x":e,"y":g};!function(){if("function"==typeof s.onBeforeCellRender){var e={};e.cell=c,s.onBeforeCellRender(e)}}(),d.business&&DayPilot.Util.addClass(o,s.M("_cell_business")),d.cssClass&&DayPilot.Util.addClass(o,d.cssClass);var u=document.createElement("div");u.setAttribute("unselectable","on"),u.className=w.M("_cell_inner");var h=DayPilot.Util.escapeTextHtml(d.text,d.html);h&&(u.innerHTML=h),d.backColor&&(u.style.backgroundColor=d.backColor),d.backImage&&(u.style.backgroundImage="url("+d.backImage+")"),d.backRepeat&&(u.style.backgroundRepeat=d.backRepeat),d.fontColor&&(u.style.color=d.fontColor),o.appendChild(u),function(){if("function"==typeof s.onBeforeCellDomAdd||"function"==typeof s.onBeforeCellDomRemove){var e={};if(e.control=s,e.cell=c,e.element=null,i.domArgs=e,"function"==typeof s.onBeforeCellDomAdd&&s.onBeforeCellDomAdd(e),e.element){var t=u;if(t){e.Wa=t;var r=n(e.element);if(a(e.element))s.Za.cb(),s.Za.db(e.element,t);else if(r){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(o)},w=this,f=0;f<u;f++)b(f)}i.root=this,s.nav.scrollable.onmousemove=function(e){var n=s.nav.scrollable;s.coords=DayPilot.mo3(n,e);var a=DayPilot.mc(e);if(t.resizing){t.resizingShadow||(t.resizingShadow=s.da(t.resizing,!1,s.shadow));var i=s.cellHeight,r=0,o=a.y-t.originalMouse.y;if("bottom"===t.resizing.dpBorder){var l=t.originalHeight+o;s.snapToGrid&&(l=Math.floor((t.originalHeight+t.originalTop+o+i/2)/i)*i-t.originalTop+r),l<i&&(l=i);var d=s.nav.main.clientHeight;t.originalTop+l>d&&(l=d-t.originalTop),t.resizingShadow.style.height=l+"px"}else if("top"===t.resizing.dpBorder){var c=t.originalTop+o;s.snapToGrid&&(c=Math.floor((t.originalTop+o-r+i/2)/i)*i+r),c<r&&(c=r),c>t.originalTop+t.originalHeight-i&&(c=t.originalTop+t.originalHeight-i);var l=t.originalHeight-(c-t.originalTop);l<i?l=i:t.resizingShadow.style.top=c+"px",t.resizingShadow.style.height=l+"px"}}else if(t.moving){if(!s.coords)return;if(!t.movingShadow){var u=3,h=DayPilot.mc(e),f=Math.abs(h.x-t.originalMouse.x)+Math.abs(h.y-t.originalMouse.y);if(f<=u)return;t.movingShadow=s.da(t.moving,!0,s.shadow),t.movingShadow.style.width=t.movingShadow.parentNode.offsetWidth+1+"px"}var i=s.cellHeight,r=0,v=t.moveOffsetY;v||(v=i/2);var c=s.coords.y-v;s.snapToGrid&&(c=Math.floor((s.coords.y-v-r+i/2)/i)*i+r),c<r&&(c=r);var p=s.nav.events,d=s.nav.main.clientHeight+r,m=parseInt(t.movingShadow.style.height);c+m>d&&(c=d-m),DayPilot.Util.addClass(t.moving,s.M("_event_moving_source")),t.movingShadow.parentNode.style.display="none",t.movingShadow.style.top=c+"px",t.movingShadow.parentNode.style.display="";var g=p.clientWidth/p.rows[0].cells.length,y=Math.floor((s.coords.x-s.hourWidth)/g);s.rtl&&(y=s.Ca.length-y-1),y<0&&(y=0),y<p.rows[0].cells.length&&y>=0&&t.movingShadow.column!==y&&(t.movingShadow.column=y,t.moveShadow(p.rows[0].cells[y]))}else DayPilot.Global.selecting&&(s.Ga(),s.Ha())},s.nav.scrollable.style.display=""},this.rb=function(e){return this.businessBeginsHour<this.businessEndsHour?!(e.getHours()<this.businessBeginsHour||e.getHours()>=this.businessEndsHour||6===e.getDayOfWeek()||0===e.getDayOfWeek()):e.getHours()>=this.businessBeginsHour||e.getHours()<this.businessEndsHour},this.ba=function(){var e=this.nav.header;if(e&&e.rows)for(var t=0;t<e.rows.length;t++)for(var n=e.rows[t],a=0;a<n.cells.length;a++){var i=n.cells[a];i.onclick=null,i.onmousemove=null,i.onmouseout=null}this.fasterDispose||DayPilot.pu(e)},this.sb=function(e){function t(t){var i=a[t],r=e?n.insertCell(-1):n.cells[t];r.data=i,r.style.overflow="hidden",r.style.padding="0px",r.style.border="0px none",r.style.height=s.headerHeight+"px",r.onclick=s.tb;var o,l=e?document.createElement("div"):r.firstChild;e?(l.unselectable="on",l.style.MozUserSelect="none",l.style.cursor="default",l.style.position="relative",l.className=s.M("_colheader"),l.style.height=s.headerHeight+"px",s.headerTextWrappingEnabled||(l.style.whiteSpace="nowrap"),o=document.createElement("div"),o.className=s.M("_colheader_inner"),o.unselectable="on",l.appendChild(o),r.appendChild(l)):o=l.firstChild;var d={};d.header={},d.header.cssClass=null,d.header.verticalAlignment="center",d.header.horizontalAlignment="center",d.column=s.ub(i,s),"function"==typeof s.onBeforeHeaderRender&&(DayPilot.Util.copyProps(i,d.header,["id","start","name","html","backColor","toolTip","areas"]),s.onBeforeHeaderRender(d),DayPilot.Util.copyProps(d.header,i,["html","backColor","toolTip","areas","cssClass","verticalAlignment","horizontalAlignment"])),i.toolTip&&(o.title=i.toolTip),i.cssClass&&DayPilot.Util.addClass(l,i.cssClass),i.backColor&&(o.style.background=i.backColor),i.areas&&DayPilot.Areas.attach(l,i);var c=i.verticalAlignment;if(c)switch(o.style.display="flex",c){case"center":o.style.alignItems="center";break;case"top":o.style.alignItems="flex-start";break;case"bottom":o.style.alignItems="flex-end"}var u=i.horizontalAlignment;if(u)switch(u){case"center":o.style.justifyContent="center";break;case"left":o.style.justifyContent="flex-start";break;case"right":o.style.justifyContent="flex-end"}l.firstChild.innerHTML=s.jb(i.name,i.html)}for(var n=e?this.nav.header.insertRow(-1):this.nav.header.rows[0],a=this.Ca,i=a.length,r=0;r<i;r++)t(r)},this.tb=function(e){if("Disabled"!==s.headerClickHandling){var t=this.data,n=s.ub(t),a={};a.header={},a.header.id=t.id,a.header.name=t.name,a.header.start=t.start,a.column=n,a.originalEvent=e,a.shift=e.shiftKey,a.ctrl=e.ctrlKey,a.meta=e.metaKey,a.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onHeaderClick&&(s.onHeaderClick(a),a.preventDefault.value)||"function"==typeof s.onHeaderClicked&&s.onHeaderClicked(a)}},this.ub=function(e){return new DayPilot.CalendarColumn(e,s)},this.vb=function(){return this.width&&this.width.indexOf("px")!==-1?"Pixel":"Percentage"},this.ka=function(){for(var e=this.nav.header,t=!0;this.headerCreated&&e&&e.rows&&e.rows.length>0;)this.fasterDispose||DayPilot.pu(e.rows[0]),e.deleteRow(0);this.headerCreated=!0;this.sb(t)},this.loadingStart=function(){this.loadingLabelVisible&&(this.nav.loading.innerHTML=this.loadingLabelText,this.nav.loading.style.top=this.headerHeight+5+"px",this.nav.loading.style.display="")},this.commandCallBack=function(e,t){var n={};n.command=e,this.W("Command",t,n)},this.loadingStop=function(){this.callbackTimeout&&window.clearTimeout(this.callbackTimeout),this.nav.loading.style.display="none"},this.wb=function(){var e=this.nav.scroll;e.root=this,s.xb(),e.onscroll||(e.onscroll=function(){s.yb()})},this.callbackError=function(e,t){alert("Error!\r\nResult: "+e+"\r\nContext:"+t)},this.zb=function(){var e=DayPilot.sw(this.nav.scroll),t=this.nav.cornerRight;t&&(t.style.width=e+"px")},this.Ab=function(){t.globalHandlers||(t.globalHandlers=!0,DayPilot.re(document,"mouseup",t.gMouseUp))},this.events={},this.events.add=function(e){var t=null;if(e instanceof DayPilot.Event)t=e.data;else{if("object"!=typeof e)throw"DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";t=e}s.events.list||(s.events.list=[]),s.events.list.push(t),s.Bb({"eventsOnly":!0}),s.xa.notify()},this.events.find=function(e){if(!s.events.list)return null;if("function"==typeof e){for(var t=e,n=0;n<s.events.list.length;n++){var a=new DayPilot.Event(s.events.list[n],s);if(t(a))return a}return null}for(var n=0;n<s.events.list.length;n++){var i=s.events.list[n];if(i.id===e)return new DayPilot.Event(i,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.events.forRange=function(e,t){return e=new DayPilot.Date(e),t=new DayPilot.Date(t),(s.events.list||[]).filter(function(n){return i(e,t,new DayPilot.Date(n.start),new DayPilot.Date(n.end))}).map(function(e){return new DayPilot.Event(e,s)})},this.events.update=function(e){if(e instanceof DayPilot.Event)e.commit();else if("object"==typeof e){var t=s.events.find(e.id);if(t){var n=DayPilot.indexOf(s.events.list,t.data);s.events.list.splice(n,1,e)}}s.Bb({"eventsOnly":!0}),s.xa.notify()},this.events.remove=function(e){var t;if(e instanceof DayPilot.Event)t=e.data;else if("object"==typeof e){var n=s.events.find(e.id);n&&(t=n.data)}else if("string"==typeof e||"number"==typeof e){var n=s.events.find(e);n&&(t=n.data)}var a=DayPilot.indexOf(s.events.list,t);s.events.list.splice(a,1),s.Bb({"eventsOnly":!0}),s.xa.notify()},this.events.load=function(e,t,n){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=n,s.Ra&&s.Bb({"eventsOnly":!0})}};if(s.eventsLoadMethod&&"POST"===s.eventsLoadMethod.toUpperCase())DayPilot.Http.ajax({"method":"POST","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.Http.ajax({"method":"GET","url":r,"success":i,"error":a})}},this.Cb=function(){var e=s.M("_main");if(s.cssClass&&(e+=" "+s.cssClass),s.rtl&&(e+=" "+s.M("_direction_rtl")),s.nav.top.className!==e){s.nav.top.className=e;var t=s.nav.corner;t.className=s.M("_corner"),t.firstChild.className=s.M("_corner_inner");var n=s.nav.cornerRight;n&&(n.className=s.M("_cornerright"),n.firstChild.className=s.M("_cornerright_inner"))}},this.update=function(e){if(s.R)throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");s.Db(e),s.Bb()},this.Bb=function(e){if(this.Ra){e=e||{};var t=!e.eventsOnly;s.Eb(),s._(),s.nav.top.style.cursor="auto",t&&(s.ha(),s.ka(),s.la(),s.ma(),s.na(),s.ob(),s.zb(),s.Cb(),s.xb()),s.ia(),s.ja(),s.oa(),s.clearSelection(),this.visible?this.show():this.hide()}},this.Fb=null,this.Db=function(e){if(e){var t={"events":{"preInit":function(){var e=this.data||[];DayPilot.isArray(e.list)?s.events.list=e.list:s.events.list=e}},"columns":{"preInit":function(){s.columns.list=this.data}},"scrollToHour":{"postInit":function(){"undefined"!=typeof this.data&&s.scrollToHour(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.Pa();void s.zoom.Qa(e),n?this.hour=a:this.hour=null},"postInit":function(){this.hour&&s.scrollToHour(this.hour)}}};this.Fb=t;for(var n in e)if(t[n]){var a=t[n];a.data=e[n],a.preInit&&a.preInit()}else s[n]=e[n]}},this.Gb=function(){var e=this.Fb;for(var t in e){var n=e[t];n.postInit&&n.postInit()}},this.Hb=function(){if(this.id&&this.id.tagName)this.nav.top=this.id;else{if("string"!=typeof this.id)throw"DayPilot.Calendar() constructor requires the target element or its ID as a parameter";if(this.nav.top=document.getElementById(this.id),!this.nav.top)throw"DayPilot.Calendar: The placeholder element not found: '"+e+"'."}},this.Ib={},this.Ib.events=[],this.Jb=function(e){var t=this.Ib.events,n=this.events.list[e],a={};for(var i in n)a[i]=n[i];if(a.start=new DayPilot.Date(n.start),a.end=new DayPilot.Date(n.end),"function"==typeof this.onBeforeEventRender){var r={};r.control=s,r.data=a,this.onBeforeEventRender(r)}t[e]=a},this.ia=function(){var e=this.events.list;if(s.Ib.events=[],e){if(!DayPilot.isArray(e))throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: "+typeof e);var t=e.length,n=864e5;this.cache.pixels={};var a=[];this.scrollLabels=[],this.minStart=1e4,this.maxEnd=0;for(var i=0;i<t;i++){var r=e[i],o=r;if("object"!=typeof o)throw new DayPilot.Exception("Event data item must be an object");if(!o.start)throw new DayPilot.Exception("Event data item must specify 'start' property");if(!o.end)throw new DayPilot.Exception("Event data item must specify 'end' property");if(o instanceof DayPilot.Event)throw new DayPilot.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.")}if("function"==typeof this.onBeforeEventRender)for(var i=0;i<t;i++)this.Jb(i);for(var i=0;i<this.Ca.length;i++){var l={};l.minEnd=1e6,l.maxStart=-1,this.scrollLabels.push(l);var d=this.Ca[i];d.events=[],d.lines=[],d.blocks=[];for(var c=new DayPilot.Date(d.start),u=c.getTime(),h=c.addTime(n),f=h.getTime(),v=0;v<t;v++)if(!a[v]){var r=e[v],p=new DayPilot.Date(r.start),m=new DayPilot.Date(r.end),g=p.getTime(),y=m.getTime();if(!(y<g)){var b=!(y<=u||g>=f);if("Resources"===s.viewType&&(b=b&&d.id===r.resource),b){var w=new DayPilot.Event(r,s);w.part.dayIndex=i,w.part.start=u<g?p:c,w.part.end=f>y?m:h;var x=this.getPixels(w.part.start,d.start),_=this.getPixels(w.part.end,d.start),C=x.top,k=_.top;if(C===k&&(x.cut||_.cut))continue;var D=_.boxBottom,M="Always"===s.useEventBoxes;M?(w.part.top=Math.floor(C/this.cellHeight)*this.cellHeight+1,w.part.height=Math.max(Math.ceil(D/this.cellHeight)*this.cellHeight-w.part.top,this.cellHeight-1)+1):(w.part.top=C+1,w.part.height=k-C),w.part.barTop=Math.max(C-w.part.top-1,0),w.part.barHeight=Math.max(k-C-2,1);var S=w.part.top,T=w.part.top+w.part.height;S>l.maxStart&&(l.maxStart=S),T<l.minEnd&&(l.minEnd=T),S<this.minStart&&(this.minStart=S),T>this.maxEnd&&(this.maxEnd=T),d.events.push(w),"function"==typeof this.onBeforeEventRender&&(w.cache=this.Ib.events[v]),w.part.start.getTime()===g&&w.part.end.getTime()===y&&(a[v]=!0)}}}}for(var i=0;i<this.Ca.length;i++){var d=this.Ca[i];d.events.sort(this.Kb);for(var v=0;v<d.events.length;v++){var r=d.events[v];d.putIntoBlock(r)}for(var v=0;v<d.blocks.length;v++){var E=d.blocks[v];E.events.sort(this.Kb);for(var H=0;H<E.events.length;H++){var r=E.events[H];E.putIntoLine(r)}}}}},this.Kb=function(e,t){if(!(e&&t&&e.start&&t.start))return 0;var n=e.start().getTime()-t.start().getTime();return 0!==n?n:t.end().getTime()-e.end().getTime()},this.debug=function(e){this.debuggingEnabled&&(s.debugMessages||(s.debugMessages=[]),s.debugMessages.push(e),"undefined"!=typeof console&&console.log(e))},this.getPixels=function(e,t){t||(t=this.startDate);var n=t.getTime(),a=e.getTime(),i=l.ga(),r=this.cache.pixels[a+"_"+n];if(r)return r;n=t.getTime();var o=60*i*1e3,s=a-n,d=s%o,c=s-d,u=c+o;0===d&&(u=c);var h={};return h.cut=!1,h.top=this.Lb(s),h.boxTop=this.Lb(c),h.boxBottom=this.Lb(u),this.cache.pixels[a+"_"+n]=h,h},this.Lb=function(e){return Math.floor(this.cellHeight*e/(6e4*l.ga()))},this.Eb=function(){this.startDate=new DayPilot.Date(this.startDate).getDatePart()},this.ja=function(){this.nav.corner&&(this.nav.corner.style.height=this.headerHeight+"px")},this.na=function(){var e=this.gb();this.nav.scroll&&e>0&&(this.nav.scroll.style.height=e+"px")},this.xa={},this.xa.scope=null,this.xa.notify=function(){s.xa.scope&&s.xa.scope["$apply"]()},this.xa.apply=function(e){e()},this.yb=function(){if(s.nav.scroll&&s.Mb()){var e=s.nav.scroll.scrollTop,t=l.ga(),n=60/t,a=e/(n*s.cellHeight);s.Sa.scrollHour=a}},this.xb=function(){var e=0,t=60/l.ga();e="number"==typeof s.Sa.scrollHour?t*s.cellHeight*s.Sa.scrollHour:"Auto"===s.initScrollPos?"BusinessHours"===this.heightSpec?t*this.cellHeight*this.businessBeginsHour:0:this.initScrollPos;var n=s.nav.top;"none"===n.style.display?(n.style.display="",s.nav.scroll.scrollTop=e,n.style.display="none"):s.nav.scroll.scrollTop=e},this.getScrollY=function(){return s.nav.scroll.scrollTop},this.setScrollY=function(e){s.nav.scroll.scrollTop=e,s.yb()},this.Nb=function(){return!(!this.backendUrl&&"function"!=typeof WebForm_DoCallback)&&("undefined"==typeof s.events.list||!s.events.list)},this.z=function(){"hidden"===this.nav.top.style.visibility&&(this.nav.top.style.visibility="visible")},this.show=function(){s.visible=!0,s.nav.top.style.display="",this.zb()},this.hide=function(){s.visible=!1,s.nav.top.style.display="none"},this.Ob=function(){this.Eb(),this.ha(),this.fb(),this.ka(),this.la(),this.zb(),this.wb(),this.Ab(),t.register(this),this.Pb(),this.W("Init")},this.Sa={},this.Qb=function(){this.Sa.themes=[],this.Sa.themes.push(this.theme||this.cssClassPrefix)},this.Rb=function(){for(var e=this.Sa.themes,t=0;t<e.length;t++){var n=e[t];DayPilot.Util.removeClass(this.nav.top,n+"_main")}this.Sa.themes=[]},this.Sb=function(){if(this.afterRender(null,!1),"function"==typeof this.onAfterRender){var e={};e.isCallBack=!1,this.onAfterRender(e)}},this.Tb=function(){if("function"==typeof this.onInit&&!this.Ub){this.Ub=!0;var e={};this.onInit(e)}},this.Mb=function(){var e=s.nav.top;return!!e&&(e.offsetWidth>0&&e.offsetHeight>0)},this.Pb=function(){var e=s.Mb;e()||(s.Z=setInterval(function(){e()&&(s.wb(),s.zb(),clearInterval(s.Z))},100))},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.Za={},this.Za.reactDOM=null,this.Za.react=null,this.Za.cb=function(){if(!s.Za.reactDOM)throw new DayPilot.Exception("Can't reach ReactDOM")},this.Za.db=function(e,t){var n=s.Za.reactDOM;if("function"==typeof n.createRoot){var a=t.Vb;a||(a=n.createRoot(t),t.Vb=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.Vb;setTimeout(function(){n.unmount(),e.Vb=null},0)}else t.unmountComponentAtNode(e)},this.Ya={},this.Ya.Xa=null,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.loadOptions=s.Db,this.internal.xssTextHtml=s.jb,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.init=function(){this.Hb();var e=this.Nb();return this.Qb(),e?void this.Ob():(this.Eb(),this.ha(),this.ia(),this.fb(),this.ka(),this.la(),this.z(),this.zb(),this.wb(),this.Ab(),t.register(this),this.events&&(this.ja(),this.oa()),this.Sb(),this.Tb(),this.Pb(),this.Ra=!0,this)},this.Init=this.init,this.Db(r)},DayPilot.CalendarColumn=function(e,t){var n=this;n.id=e.id,n.name=e.name,n.data=e.data,n.start=new DayPilot.Date(e.start),n.calendar=t,n.toJSON=function(){var e={};return e.id=this.id,this.start&&(e.start=this.start.toString()),e.name=this.name,e}},DayPilot.Calendar=t.Calendar,"undefined"!=typeof jQuery&&!function(e){e.fn.daypilotCalendar=function(e){var t=null,n=this.each(function(){if(!this.daypilot){var n=new DayPilot.Calendar(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("daypilotCalendar",["$parse",function(e){return{"restrict":"E","template":"<div></div>","replace":!0,"link":function(t,n,a){var i=new DayPilot.Calendar(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)0===s.indexOf("on")&&!function(n){i[n]=function(i){var r=e(a[n]);t["$apply"](function(){r(t,{"args":i})})}}(s);var l=t["$watch"],d=a["config"]||a["daypilotConfig"],c=a["events"]||a["daypilotEvents"];l.call(t,d,function(e){for(var t in e)i[t]=e[t];i.update(),i.Tb()},!0),l.call(t,c,function(e){i.events.list=e,i.update()},!0)}}}])}()}}(DayPilot),function(DayPilot){"undefined"==typeof DayPilot.DatePicker&&(DayPilot.DatePicker=function(e){this.v="${v}";var t="navigator_"+(new Date).getTime(),n=this;this.onShow=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.prepare=function(){if(this.locale="en-us",this.target=null,this.targetAlignment="left",this.resetTarget=!0,this.pattern=this.S.locale().datePattern,this.theme="navigator_default",this.patterns=[],this.zIndex=null,this.showToday=!0,this.todayText="Today",this.weekStarts="Auto",e)for(var t in e)this[t]=e[t]},this.init=function(){this.date=new DayPilot.Date(this.date);var e=this.Wb();this.resetTarget&&!e?this.Xb(this.date):!this.resetTarget&&e&&(n.date=e);var t=this.E();return t&&t.addEventListener("input",function(){n.date=n.Wb(),n.date&&n.navigator.select(n.date,{dontNotify:!0})}),this},this.close=function(){document.removeEventListener("mousedown",n.close),document.removeEventListener("wheel",n.close),window.removeEventListener("resize",n.close),n.Mb&&(n.Mb=!1,n.navigator&&n.navigator.dispose(),n.div.innerHTML="",n.div&&n.div.parentNode===document.body&&document.body.removeChild(n.div))},this.Yb=function(e){this.date=new DayPilot.Date(e),this.Xb(this.date)},this.select=function(e){var t={};t.date=new DayPilot.Date(e),t.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof n.onTimeRangeSelect&&(n.onTimeRangeSelect(t),t.preventDefault.value)||(this.Yb(e),"function"==typeof n.onTimeRangeSelected&&n.onTimeRangeSelected(t))},this.Wb=function(){var e=this.E();if(!e)return this.date;var t=null;if(t="INPUT"===e.tagName?e.value:e.innerText,!t)return null;for(var a=DayPilot.Date.parse(t,n.pattern),i=0;i<n.patterns.length;i++){if(a)return a;a=DayPilot.Date.parse(t,n.patterns[i])}return a},this.Xb=function(e){var t=this.E();if(t){var a=e.toString(n.pattern,n.locale);"INPUT"===t.tagName?t.value=a:t.innerHTML=a}},this.S={},this.S.locale=function(){return DayPilot.Locale.find(n.locale)},this.E=function(){var e=this.target;return e&&e.nodeType&&1===e.nodeType?e:document.getElementById(e)},Object.defineProperty(this,"visible",{get:function(){return n.Mb}}),this.show=function(){if(!this.Mb){document.addEventListener("mousedown",n.close),document.addEventListener("wheel",n.close),window.addEventListener("resize",n.close);var e=this.E(),a=new DayPilot.Navigator(t);a.api=2,a.cssOnly=!0,a.theme=n.theme,a.weekStarts="Auto",a.locale=n.locale,a.showToday=n.showToday,a.todayText=n.todayText,a.weekStarts=n.weekStarts,a.onTodayClick=function(e){a.onTimeRangeSelected({start:DayPilot.Date.today()}),e.preventDefault()},a.onTimeRangeSelected=function(e){n.date=e.start;var t=e.start.addTime(a.Zb),i=t.toString(n.pattern,n.locale),r={};r.start=t,r.date=t,r.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof n.onTimeRangeSelect&&(n.onTimeRangeSelect(r),r.preventDefault.value)||(n.Xb(i),n.close(),"function"==typeof n.onTimeRangeSelected&&n.onTimeRangeSelected(r))},this.navigator=a;var i={x:0,y:0,w:0,h:0};e&&(i=DayPilot.abs(e));var r=i.h,o=n.targetAlignment,s=document.createElement("div");s.style.position="absolute","left"===o&&(s.style.left=i.x+"px"),s.style.top=i.y+r+"px",n.zIndex&&(s.style.zIndex=n.zIndex);var l=document.createElement("div");l.id=t,s.appendChild(l),s.addEventListener("mousedown",function(e){e.stopPropagation()}),document.body.appendChild(s),this.div=s;var d=n.Wb()||n.date;if(a.startDate=d,a.Zb=d.getTimePart(),a.selectionDay=d.getDatePart(),a.init(),"right"===o){var c=i.x+i.w-a.nav.top.offsetWidth;s.style.left=c+"px"}if(this.Mb=!0,this.onShow){var u={};this.onShow(u)}}},this.prepare(),this.init()})}(DayPilot),function(DayPilot){if("undefined"==typeof DayPilot.Menu||!DayPilot.Menu.def){var e=function(){},t={};t.mouse=null,t.menu=null,t.handlersRegistered=!1,t.hideTimeout=null,t.waitingSubmenu=null,DayPilot.Menu=function(n){var a=this,i=null;this.v="${v}",this.zIndex=120,this.cssClassPrefix="menu_default",this.cssOnly=!0,this.menuTitle=null,this.showMenuTitle=!1,this.hideOnMouseOut=!1,this.hideAfter=200,this.theme=null,this.rtl=!1,this.onShow=null;var r=DayPilot.isArray(n)?null:n;if(this.$b=function(){},n&&DayPilot.isArray(n)&&(this.items=n),this.toJSON=function(){return null},this.show=function(n,r){r=r||{};var o=null;if(n?"string"==typeof n.id||"number"==typeof n.id?o=n.id:"function"==typeof n.id?o=n.id():"function"==typeof n.value&&(o=n.value()):o=null,"undefined"!=typeof DayPilot.Bubble&&DayPilot.Bubble.hideActive(),r.submenu||t.menuClean(),this.$b.submenu=null,null!==t.mouse){a.cssOnly||(a.cssOnly=!0);var s=null;n&&n.isRow&&n.$.row.task?(s=new DayPilot.Task(n.$.row.task,n.calendar),s.menuType="resource"):s=n&&n.isEvent&&n.data.task?new DayPilot.Task(n,n.calendar):n;var l=document.createElement("div");if("function"==typeof a.onShow){var d={};if(d.source=s,d.menu=a,d.div=l,d.preventDefault=function(){d.preventDefault.value=!0},a.onShow(d),d.preventDefault.value)return}if(l.style.position="absolute",l.style.top="0px",l.style.left="0px",l.style.display="none",l.style.overflow="hidden",l.style.zIndex=this.zIndex+1,l.className=this._b("main"),l.onclick=function(e){e.cancelBubble=!0,this.parentNode.removeChild(this)},a.rtl&&(l.style.direction="rtl",l.className+=" "+a._b("direction_rtl")),this.hideOnMouseOut&&(l.onmousemove=function(){clearTimeout(t.hideTimeout)},l.onmouseleave=function(){a.delayedHide({"hideParent":!0})}),!this.items||0===this.items.length)throw"No menu items defined.";if(this.showMenuTitle){var c=document.createElement("div");c.innerHTML=this.menuTitle,c.className=this._b("title"),l.appendChild(c)}for(var u=0;u<this.items.length;u++){var h=this.items[u],f=document.createElement("div");if(DayPilot.Util.addClass(f,this._b("item")),h.items&&(DayPilot.Util.addClass(f,this._b("item_haschildren")),DayPilot.Util.addClass(l,this._b("withchildren"))),"undefined"!=typeof h&&!h.hidden){if("-"===h.text){var v=document.createElement("div");v.addEventListener("click",function(e){e.stopPropagation()}),f.appendChild(v)}else{var p=document.createElement("a");if(p.style.position="relative",p.style.display="block",h.cssClass&&DayPilot.Util.addClass(p,h.cssClass),h.disabled)DayPilot.Util.addClass(p,a._b("item_disabled"));else{if(h.onclick||h.onClick){p.item=h,p.onclick=function(e,t){return function(n){if("function"==typeof e.onClick){var a={};if(a.item=e,a.source=t.source,a.originalEvent=n,a.preventDefault=function(){a.preventDefault.value=!0},e.onClick(a),a.preventDefault.value)return void n.stopPropagation()}e.onclick&&e.onclick.call(t,n)}}(h,p);var m=function(e,t){return function(e){e.stopPropagation(),e.preventDefault(),t.source.calendar&&t.source.calendar.internal.touch&&(t.source.calendar.internal.touch.active=!0)}},g=function(e,n){return function(a){a.stopPropagation(),a.preventDefault();var i=function(){window.setTimeout(function(){n.source.calendar&&n.source.calendar.internal.touch&&(n.source.calendar.internal.touch.active=!1)},500)};if("function"==typeof e.onClick){var r={};if(r.item=e,r.source=n.source,r.originalEvent=a,r.preventDefault=function(){r.preventDefault.value=!0},e.onClick(r),r.preventDefault.value)return void i()}e.onclick&&e.onclick.call(n,a),t.menuClean(),i()}};DayPilot.reNonPassive(p,"touchstart",m(h,p)),DayPilot.reNonPassive(p,"touchend",g(h,p))}if(h.items&&!h.disabled){var y=function(e,t){return function(n){n.preventDefault(),n.stopPropagation(),a.bc(e,t)}};p.ontouchend=y(h,p)}if(h.onclick)e();else if(h.href)p.href=h.href.replace(/\x7B0\x7D/gim,o),h.target&&p.setAttribute("target",h.target);else if(h.command){var y=function(e,t){return function(n){var a=t.source,i=e;i.action=i.action?i.action:"CallBack";var r=a.calendar||a.root;if(n.preventDefault(),a instanceof DayPilot.Link)r.internal.linkMenuClick(i.command,a,i.action);else if(a instanceof DayPilot.Selection)r.internal.timeRangeMenuClick(i.command,a,i.action);else if(a instanceof DayPilot.Event)r.internal.eventMenuClick(i.command,a,i.action);else if(a instanceof DayPilot.Task)"resource"===a.menuType?r.internal.resourceHeaderMenuClick(i.command,t.menuSource,i.action):r.internal.eventMenuClick(i.command,t.menuSource,i.action);else switch(a.menuType){case"resource":r.internal.resourceHeaderMenuClick(i.command,a,i.action);break;case"selection":r.internal.timeRangeMenuClick(i.command,a,i.action);break;default:r.internal.eventMenuClick(i.command,a,i.action)}}};p.onclick=y(h,p),p.ontouchend=y(h,p)}}h.items&&p.addEventListener("click",function(e){e.stopPropagation()}),p.source=s,p.menuSource=n;var b=document.createElement("span");if(b.className=a._b("item_text"),b.innerHTML=DayPilot.Util.escapeTextHtml(h.text,h.html),p.appendChild(b),h.image){var w=document.createElement("img");w.src=h.image,w.style.position="absolute",w.style.top="0px",a.rtl?w.style.right="0px":w.style.left="0px",p.appendChild(w)}if(h.icon){var x=document.createElement("span");x.className=a._b("item_icon");var _=document.createElement("i");_.className=h.icon,x.appendChild(_),p.appendChild(x)}if(h.symbol){var C="http://www.w3.org/2000/svg",k=document.createElementNS(C,"svg");k.setAttribute("width","100%"),k.setAttribute("height","100%");var D=document.createElementNS(C,"use");D.setAttribute("href",h.symbol),k.appendChild(D);var M=document.createElement("span");M.className=a._b("item_symbol"),M.style.position="absolute",M.style.top="0px",a.rtl?M.style.right="0px":M.style.left="0px",M.appendChild(k),p.appendChild(M)}var S=function(e,n){return function(){var i=e,r=t.waitingSubmenu;if(r){if(r.parent===i)return;clearTimeout(r.timeout),t.waitingSubmenu=null}e.disabled||(t.waitingSubmenu={},t.waitingSubmenu.parent=i,t.waitingSubmenu.timeout=setTimeout(function(){t.waitingSubmenu=null,a.bc(i,n)},300))}};p.onmouseover=S(h,p),f.appendChild(p)}l.appendChild(f)}}var T=function(){window.setTimeout(function(){t.menuClean(),DayPilot.MenuBar.deactivate()},100)};l.onclick=T,l.ontouchend=T,l.onmousedown=function(e){e.stopPropagation()},l.oncontextmenu=function(){return!1},document.body.appendChild(l),a.$b.visible=!0,a.$b.source=n,l.style.display="";var E=l.offsetHeight,H=l.offsetWidth;l.style.display="none";var A=document.documentElement.clientHeight,N=window.innerWidth,I="number"==typeof r.windowMargin?r.windowMargin:5;if(function(){var e=r.initiator;if(e){var t=e.div,n=e.e,o=e.area,s=o.visibility||o.v||"Visible",l=e.a;if("Visible"!==s&&(l=DayPilot.Areas.createArea(t,n,o),t.appendChild(l),i=l),l){var d=DayPilot.abs(l);r.x=d.x,r.y=d.y+d.h+2,a.rtl&&(r.x=d.x+d.w)}}}(),function(){var e="number"==typeof r.x?r.x:t.mouse.x+1,n="number"==typeof r.y?r.y:t.mouse.y+1,i=document.body.scrollTop||document.documentElement.scrollTop,o=document.body.scrollLeft||document.documentElement.scrollLeft,s=0,d=0;if(n-i>A-E&&0!==A){s=n-(n-i-(A-E)+I)}else s=n;if(a.$b.y=s,l.style.top=s+"px",("right"===r.align||a.rtl)&&(e-=H),e-o>N-H&&0!==N){d=e-(e-o-(N-H)+I)}else d=e;a.$b.x=d,l.style.left=d+"px"}(),r.parentLink){var R=r.parentLink,z=parseInt(new DayPilot.StyleReader(l).get("border-top-width")),P=DayPilot.abs(r.parentLink.parentNode),U=P.x+R.offsetWidth;
12
+ this.locale="en-us",this.rtl=!1,this.snapToGrid=!0,this.showToolTip=!0,this.startDate=(new DayPilot.Date).getDatePart(),this.cssClassPrefix="calendar_default",this.theme=null,this.timeFormat="Auto",this.useEventBoxes="Always",this.viewType="Days",this.visible=!0,this.xssProtection="Enabled",this.zoomLevels=[],this.headerClickHandling="Enabled",this.eventClickHandling="Enabled",this.eventResizeHandling="Update",this.eventRightClickHandling="ContextMenu",this.eventMoveHandling="Update",this.eventDeleteHandling="Disabled",this.timeRangeSelectedHandling="Enabled",this.onBeforeCellRender=null,this.onBeforeEventRender=null,this.onBeforeHeaderRender=null,this.onEventClick=null,this.onEventClicked=null,this.onEventDelete=null,this.onEventDeleted=null,this.onEventMove=null,this.onEventMoved=null,this.onEventResize=null,this.onEventResized=null,this.onEventRightClick=null,this.onEventRightClicked=null,this.onHeaderClick=null,this.onHeaderClicked=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.R=!1,this.S={};var l=this.S;this.clearSelection=function(){t.topSelectedCell=null,t.bottomSelectedCell=null,this.T()},this.T=function(){DayPilot.de(s.elements.selection),s.elements.selection=[],s.nav.activeSelection=null},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(s.uniqueID,i)},this.W=function(e,t,n){this.callbackTimeout&&window.clearTimeout(this.callbackTimeout),this.callbackTimeout=window.setTimeout(function(){s.loadingStart()},100);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.ajaxError):"function"==typeof WebForm_DoCallback&&WebForm_DoCallback(this.uniqueID,i,this.Y,this.clientName,this.onCallbackError,!0)},this.onCallbackError=function(e,t){alert("Error!\r\nResult: "+e+"\r\nContext:"+t)},this.dispose=function(){var e=s;e.R||(e.R=!0,clearInterval(e.Z),e._(),e.nav.scroll.root=null,DayPilot.pu(e.nav.loading),e.aa(),e.ba(),e.nav.select=null,e.nav.cornerRight=null,e.nav.scrollable=null,e.nav.zoom=null,e.nav.loading=null,e.nav.header=null,e.nav.hourTable=null,e.nav.scrolltop=null,e.nav.scroll.onscroll=null,e.nav.scroll=null,e.nav.main=null,e.nav.message=null,e.nav.messageClose=null,e.nav.top=null,t.unregister(e))},this.disposed=function(){return this.R},this.ca=function(){this.nav.top.dispose=this.dispose},this.X=function(e){s.Y(e.responseText)},this.V=function(){var e={};return e.control="dpc",e.id=this.id,e.v=this.v,e.days=s.days,e.startDate=s.startDate,e.heightSpec=s.heightSpec,e.businessBeginsHour=s.businessBeginsHour,e.businessEndsHour=s.businessEndsHour,e.hashes=s.hashes,e.timeFormat=s.timeFormat,e.viewType=s.viewType,e.locale=s.locale,e},this.da=function(e){for(var t=e.parentNode;t&&"TD"!==t.tagName;)t=t.parentNode;var n=s.eventBorderRadius;"number"==typeof n&&(n+="px");var a=document.createElement("div");a.setAttribute("unselectable","on"),a.style.position="absolute",a.style.width=e.offsetWidth+"px",a.style.height=e.offsetHeight+"px",a.style.left=e.offsetLeft+"px",a.style.top=e.offsetTop+"px",a.style.boxSizing="border-box",a.style.zIndex=101,a.className=s.M("_shadow");var i=document.createElement("div");return i.className=s.M("_shadow_inner"),n&&(i.style.borderRadius=n,a.style.borderRadius=n),a.appendChild(i),t.firstChild.appendChild(a),a},this.S.locale=function(){var e=DayPilot.Locale.find(s.locale);return e?e:DayPilot.Locale.US},this.S.timeFormat=function(){return"Auto"!==s.timeFormat?s.timeFormat:this.locale().timeFormat},this.S.ea=function(){return"Disabled"!==s.xssProtection},this.S.fa=function(){if("Auto"===s.weekStarts){var e=l.locale();return e?e.weekStarts:0}return s.weekStarts||0},this.S.ga=function(){var e=s.cellDuration;if(e<=1)return 1;if(e>=60)return 60;var t=[1,2,3,4,5,6,10,12,15,20,30,60],n=Math.floor(e);return Math.max.apply(null,t.filter(function(e){return e<=n}))},this.Y=function(e){if(e&&0===e.indexOf("$$$")){if(!window.console)throw"Error received from the server side: "+e;return void console.log("Error received from the server side: "+e)}var t=JSON.parse(e);if(t.CallBackRedirect)return void(document.location.href=t.CallBackRedirect);if("None"===t.UpdateType)return s.loadingStop(),void s.z();if(s._(),"Full"===t.UpdateType&&(s.columns=t.Columns,s.days=t.Days,s.startDate=new DayPilot.Date(t.StartDate),s.heightSpec=t.HeightSpec?t.HeightSpec:s.heightSpec,s.businessBeginsHour=t.BusinessBeginsHour?t.BusinessBeginsHour:s.businessBeginsHour,s.businessEndsHour=t.BusinessEndsHour?t.BusinessEndsHour:s.businessEndsHour,s.headerDateFormat=t.HeaderDateFormat?t.HeaderDateFormat:s.headerDateFormat,s.viewType=t.ViewType,s.backColor=t.BackColor?t.BackColor:s.backColor,s.eventHeaderVisible=t.EventHeaderVisible?t.EventHeaderVisible:s.eventHeaderVisible,s.timeFormat=t.TimeFormat?t.TimeFormat:s.timeFormat,s.locale=t.Locale?t.Locale:s.locale,s.ha()),t.Hashes)for(var n in t.Hashes)s.hashes[n]=t.Hashes[n];s.events.list=t.Events,s.ia(),s.ja(),"Full"===t.UpdateType&&(s.ka(),s.la(),s.ma(),s.na()),s.z(),s.oa(),s.clearSelection(),s.afterRender(t.CallBackData,!0),s.loadingStop()},this.pa=function(){return this.qa()/36e5},this.ra=function(){return this.businessBeginsHour>this.businessEndsHour?24-this.businessBeginsHour+this.businessEndsHour:this.businessEndsHour-this.businessBeginsHour},this.sa=function(){return this.qa()/(60*l.ga()*1e3)},this.qa=function(){var e=0;return e="BusinessHoursNoScroll"===this.heightSpec?this.ra():24,60*e*60*1e3},this.ta=function(){return"BusinessHoursNoScroll"===this.heightSpec?this.businessBeginsHour:0},this.va=function(){return 2===s.api},this.eventClickCallBack=function(e,t){this.W("EventClick",t,e)},this.eventClickPostBack=function(e,t){this.U("EventClick",t,e)},this.wa=function(e){var t=e.currentTarget,n=t.event;if(n.client.clickEnabled())if(s.va()){var a={};if(a.e=n,a.originalEvent=e,a.meta=e.metaKey,a.ctrl=e.ctrlKey,a.control=s,a.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onEventClick&&(s.xa.apply(function(){s.onEventClick(a)}),a.preventDefault.value))return;switch(s.eventClickHandling){case"CallBack":s.eventClickCallBack(n);break;case"PostBack":s.eventClickPostBack(n);break;case"ContextMenu":var i=n.client.contextMenu();i?i.show(n):s.contextMenu&&s.contextMenu.show(n)}"function"==typeof s.onEventClicked&&s.xa.apply(function(){s.onEventClicked(a)})}else switch(s.eventClickHandling){case"PostBack":s.eventClickPostBack(n);break;case"CallBack":s.eventClickCallBack(n);break;case"JavaScript":s.onEventClick(n)}},this.ya=function(e){var t=e.currentTarget.event;if(e.stopPropagation(),!t.client.rightClickEnabled())return!1;var n={};if(n.e=t,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(t)}return"function"==typeof s.onEventRightClicked&&s.onEventRightClicked(n),e.preventDefault&&e.preventDefault(),!1},this.eventDeleteCallBack=function(e,t){this.W("EventDelete",t,e)},this.eventDeletePostBack=function(e,t){this.U("EventDelete",t,e)},this.za=function(e){if(s.va()){var t={};if(t.e=e,t.control=s,t.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onEventDelete&&(s.xa.apply(function(){s.onEventDelete(t)}),t.preventDefault.value))return;switch(s.eventDeleteHandling){case"CallBack":s.eventDeleteCallBack(e);break;case"PostBack":s.eventDeletePostBack(e);break;case"Update":s.events.remove(e)}"function"==typeof s.onEventDeleted&&s.xa.apply(function(){s.onEventDeleted(t)})}else switch(s.eventDeleteHandling){case"PostBack":s.eventDeletePostBack(e);break;case"CallBack":s.eventDeleteCallBack(e);break;case"JavaScript":s.onEventDelete(e)}},this.eventResizeCallBack=function(e,t,n,a){if(!t)throw"newStart is null";if(!n)throw"newEnd is null";var i={};i.e=e,i.newStart=t,i.newEnd=n,this.W("EventResize",a,i)},this.eventResizePostBack=function(e,t,n,a){if(!t)throw"newStart is null";if(!n)throw"newEnd is null";var i={};i.e=e,i.newStart=t,i.newEnd=n,this.U("EventResize",a,i)},this.L=function(e,t,n,a){var i=0,r=new Date,o=new Date;if("top"===a?(r=s.Aa(e,n-i),o=e.end()):"bottom"===a&&(r=e.start(),o=s.Ba(e,n+t-i)),s.va()){var l={};if(l.e=e,l.control=s,l.newStart=r,l.newEnd=o,l.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onEventResize&&(s.xa.apply(function(){s.onEventResize(l)}),l.preventDefault.value))return;switch(s.eventResizeHandling){case"PostBack":s.eventResizePostBack(e,r,o);break;case"CallBack":s.eventResizeCallBack(e,r,o);break;case"Update":e.start(r),e.end(o),s.events.update(e)}"function"==typeof s.onEventResized&&s.xa.apply(function(){s.onEventResized(l)})}else switch(s.eventResizeHandling){case"PostBack":s.eventResizePostBack(e,r,o);break;case"CallBack":s.eventResizeCallBack(e,r,o);break;case"JavaScript":s.onEventResize(e,r,o)}},this.Aa=function(e,t){var n=s.Ca[e.part.dayIndex].start,a=Math.floor(t/s.cellHeight);s.snapToGrid||(a=t/s.cellHeight);var i=Math.floor(a*l.ga()),r=60*i*1e3;return n.addTime(r+0)},this.Ba=function(e,t){var n=Math.floor(t/s.cellHeight);s.snapToGrid||(n=t/s.cellHeight);var a=Math.floor(n*l.ga()),i=60*a*1e3;return s.Ca[e.part.dayIndex].start.addTime(i+0)},this.eventMovePostBack=function(e,t,n,a,i){if(!t)throw"newStart is null";if(!n)throw"newEnd is null";var r={};r.e=e,r.newStart=t,r.newEnd=n,this.U("EventMove",i,r)},this.eventMoveCallBack=function(e,t,n,a,i){if(!t)throw"newStart is null";if(!n)throw"newEnd is null";var r={};r.e=e,r.newStart=t,r.newEnd=n,this.W("EventMove",i,r)},this.N=function(e,t,n,a){var i=0,r=Math.floor((n-i)/s.cellHeight);s.snapToGrid||(r=(n-i)/s.cellHeight);var o=l.ga(),d=r*o*60*1e3,c=e.start(),u=e.end(),h=new Date;c instanceof DayPilot.Date&&(c=c.toDate()),h.setTime(Date.UTC(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()));var f=c.getTime()-(h.getTime()+3600*c.getUTCHours()*1e3+Math.floor(c.getUTCMinutes()/o)*o*60*1e3);"Never"===s.useEventBoxes&&(f=0);var v=u.getTime()-c.getTime(),p=this.Ca[t],m=p.id;s.snapToGrid||(f=0);var g=p.start.getTime(),y=new Date;y.setTime(g+d+f);var b=new DayPilot.Date(y),w=b.addTime(v);if(s.va()){var x={};if(x.e=e,x.newStart=b,x.newEnd=w,x.newResource=m,x.ctrl=a.ctrlKey,x.shift=a.shiftKey,x.control=s,x.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onEventMove&&(s.xa.apply(function(){s.onEventMove(x)}),x.preventDefault.value))return;switch(s.eventMoveHandling){case"PostBack":s.eventMovePostBack(e,b,w,p.id);break;case"CallBack":s.eventMoveCallBack(e,b,w,p.id);break;case"Update":e.start(b),e.end(w),e.resource(m),s.events.update(e)}"function"==typeof s.onEventMoved&&s.xa.apply(function(){s.onEventMoved(x)})}else switch(s.eventMoveHandling){case"PostBack":s.eventMovePostBack(e,b,w,p.id);break;case"CallBack":s.eventMoveCallBack(e,b,w,p.id);break;case"JavaScript":s.onEventMove(e,b,w,p.id,!1)}},this.timeRangeSelectedPostBack=function(e,t,n,a){var i={};i.start=e,i.end=t,this.U("TimeRangeSelected",a,i)},this.timeRangeSelectedCallBack=function(e,t,n,a){var i={};i.start=e,i.end=t,this.W("TimeRangeSelected",a,i)},this.P=function(e,t,n){if(e=new DayPilot.Date(e),t=new DayPilot.Date(t),this.va()){var a={};if(a.start=e,a.end=t,a.resource=n,a.control=s,a.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onTimeRangeSelect&&(s.xa.apply(function(){s.onTimeRangeSelect(a)}),a.preventDefault.value))return;switch(s.timeRangeSelectedHandling){case"PostBack":s.timeRangeSelectedPostBack(e,t);break;case"CallBack":s.timeRangeSelectedCallBack(e,t)}"function"==typeof s.onTimeRangeSelected&&s.xa.apply(function(){s.onTimeRangeSelected(a)})}else switch(s.timeRangeSelectedHandling){case"PostBack":s.timeRangeSelectedPostBack(e,t);break;case"CallBack":s.timeRangeSelectedCallBack(e,t);break;case"JavaScript":s.onTimeRangeSelected(e,t)}},this.Da=function(e){if(!DayPilot.Global.selecting&&"Disabled"!==s.timeRangeSelectedHandling){var t=e.which;if(1===t||0===t){var n=s.nav.scrollable;s.coords=DayPilot.mo3(n,e),DayPilot.Global.selecting={calendar:s,start:s.coords};var a=DayPilot.Global.selecting;return a.start.time=s.Ea(s.coords.x,s.coords.y),a.start.columnIndex=s.Fa(s.coords.x),a.start.column=s.Ca[a.start.columnIndex],s.Ga(),s.Ha(),!1}}},this.Ha=function(){var e=DayPilot.Global.selecting;!function(){var t=e.start.column,n=e.start.columnIndex,a=t.start,i=s.getPixels(e.startTime,a),r=s.getPixels(e.endTime,a),o=i.boxTop,l=r.boxBottom;s.snapToGrid||(o=i.top,l=r.top);var d=l-o,c=s.eventBorderRadius;"number"==typeof c&&(c+="px");var u=function(){if(s.nav.activeSelection)return s.nav.activeSelection;var e=document.createElement("div");e.setAttribute("unselectable","on"),e.style.position="absolute",e.style.left="0px",e.style.width="100%";var t=document.createElement("div");return t.setAttribute("unselectable","on"),t.className=s.M("_shadow_inner"),c&&(t.style.borderRadius=c,e.style.borderRadius=c),e.appendChild(t),s.nav.events.rows[0].cells[n].selection.appendChild(e),s.elements.selection.push(e),s.nav.activeSelection=e,e}();u.className=s.M("_shadow"),u.firstChild.innerHTML="",u.style.top=o+"px",u.style.height=d+"px",s.nav.events.rows[0].cells[n].selection.appendChild(u)}()},this.Ga=function(){var e=DayPilot.Global.selecting;e.end=s.coords,e.end.time=s.Ea(e.start.x,e.end.y),e.end.column=s.Ca[s.Fa(e.end.x)],s.Ia(e)},this.Ia=function(e){var t,n,a;s.snapToGrid?e.start.time===e.end.time?(n=s.Ja(e.start.time,e.start.column.start),t=n.addTime(60*-l.ga()*1e3),a=e.endTime):e.end.time<e.start.time?(t=s.Ka(e.end.time,e.start.column.start),n=s.Ja(e.start.time,e.start.column.start),a=e.endTime):(t=s.Ka(e.start.time,e.start.column.start),n=s.Ja(e.end.time,e.start.column.start),a=e.startTime):e.end.time<e.start.time?(t=e.end.time,n=e.start.time,a=e.endTime):(t=e.start.time,n=e.end.time,a=e.startTime),e.startTime=t,e.endTime=n,e.anchor=a},this.getSelection=function(){if(!s.O)return null;var e=s.O;return new DayPilot.Selection(e.startTime,e.endTime,e.start.column.id,s)},this.Fa=function(e){if(e<0)return 0;s.rtl?e=s.nav.main.offsetWidth-e:e-=s.hourWidth;for(var t=0,n=s.nav.events.rows[0].cells,a=0;a<n.length;a++){if(t+=n[a].offsetWidth,e<t)return a}return null},this.Ea=function(e,t){e=DayPilot.Util.atLeast(e,0);var n=this.Fa(e),a=t/(60/l.ga())/s.cellHeight,i=60*a*60*1e3,r=6e4*Math.floor(i/6e4),o=this.Ca[n];return o?o.start.addTime(r):null},this.Ka=function(e,t){var n=e.getTime();t&&(n-=t.getTime());var a=60*l.ga()*1e3,i=n%a;return e.addTime(-i)},this.Ja=function(e,t){var n=this.Ka(e,t);return n.getTime()===e.getTime()?n:n.addTime(60*l.ga()*1e3)},this.La={},this.La.getCellCoords=function(){var e={};if(e.x=0,e.y=0,!s.coords)return null;e.x=s.Fa(s.coords.x);var t=0,n=Math.floor((s.coords.y-t)/s.cellHeight);return e.y=n,e.x<0?null:e},this.Ma=function(e){var t=s.ta();return e<t&&(e+=24),(e-t)*(60/l.ga())*s.cellHeight},this.Na=function(e){var t=s.ta();return e/(60/l.ga())/s.cellHeight+t},this.scrollToHour=function(e){s.nav.scroll.scrollTop=s.Ma(e)},this.zoom={},this.zoom.active=-1,this.zoom.setActive=function(e){var t;if("number"==typeof e)t=s.zoomLevels[e];else{if("string"!=typeof e)throw new DayPilot.Exception("Unexpected parameter type (string or number required): "+typeof e);var n=s.zoom.Oa(e);t=s.zoomLevels[n]}if(!t)throw new DayPilot.Exception("Zoom level not found: "+e+" ("+typeof e+")");if(e!==s.zoom.active){var a=s.zoom.Pa();s.zoom.Qa(e),s.Ra&&s.update(),a&&s.scrollToHour(a)}},this.zoom.Oa=function(e){return(s.zoomLevels||[]).findIndex(function(t){return t.id===e})},this.zoom.Pa=function(){return s.Sa.scrollHour},this.zoom.Qa=function(e){var t=s.zoomLevels.length-1;e>t&&(e=t),e<0&&(e=0),s.zoom.active=e;var n=s.zoomLevels[e],a={};return a.level=n,DayPilot.Util.ownPropsAsArray(n.properties).forEach(function(e){if(0!==e.key.indexOf("on"))return"function"==typeof e.val?void(s[e.key]=e.val(a)):void(s[e.key]=e.val)}),a},this.columns={},this.columns.list=[],this.columns.load=function(e,t,n){if(!e)throw new DayPilot.Exception("columns.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.columns.list=n,s.Ra&&s.update()}};s.columnsLoadMethod&&"POST"===s.columnsLoadMethod.toUpperCase()?DayPilot.ajax({"method":"POST","url":e,"success":i,"error":a}):DayPilot.ajax({"method":"GET","url":e,"success":i,"error":a})},this.ha=function(){var e;e="Resources"!==s.viewType?this.Ta():s.columns.list,this.Ca=[];for(var t=0;t<e.length;t++){var n=this.Ua(e[t]);this.Ca.push(n)}},this.Ua=function(e){var t={};if(t.name=e.name,t.html=e.html,t.id=e.id,t.toolTip=e.toolTip,t.data=e,e.start?t.start=new DayPilot.Date(e.start):t.start=new DayPilot.Date(s.startDate),"BusinessHoursNoScroll"===this.heightSpec){var n=t.start.getDatePart();t.start=n.addHours(this.businessBeginsHour)}return t.putIntoBlock=function(e){for(var t=0;t<this.blocks.length;t++){var n=this.blocks[t];if(n.overlapsWith(e.part.top,e.part.height))return n.events.push(e),n.min=Math.min(n.min,e.part.top),n.max=Math.max(n.max,e.part.top+e.part.height),t}var a=[];return a.lines=[],a.events=[],a.overlapsWith=function(e,t){return!(e+t-1<this.min||e>this.max-1)},a.putIntoLine=function(e){for(var t=0;t<this.lines.length;t++){var n=this.lines[t];if(n.isFree(e.part.top,e.part.height))return n.push(e),t}var a=[];return a.isFree=function(e,t){for(var n=e+t-1,a=this.length,i=0;i<a;i++){var r=this[i];if(!(n<r.part.top||e>r.part.top+r.part.height-1))return!1}return!0},a.push(e),this.lines.push(a),this.lines.length-1},a.events.push(e),a.min=e.part.top,a.max=e.part.top+e.part.height,this.blocks.push(a),this.blocks.length-1},t.putIntoLine=function(e){for(var t=0;t<this.lines.length;t++){var n=this.lines[t];if(n.isFree(e.part.top,e.part.height))return n.push(e),t}var a=[];return a.isFree=function(e,t){for(var n=e+t-1,a=this.length,i=0;i<a;i++){var r=this[i];if(!(n<r.part.top||e>r.part.top+r.part.height-1))return!1}return!0},a.push(e),this.lines.push(a),this.lines.length-1},t},this.Ta=function(){var e=[],t=this.startDate.getDatePart(),n=this.days;switch(this.viewType){case"Day":n=1;break;case"Week":n=7;var a=l.fa();t=t.firstDayOfWeek(a);break;case"WorkWeek":n=5,t=t.firstDayOfWeek(1)}for(var i=0;i<n;i++){var r=s.headerDateFormat?s.headerDateFormat:l.locale().datePattern,o={};o.start=t.addDays(i),o.name=o.start.toString(r,l.locale()),e.push(o)}return e},this.visibleStart=function(){if("Resources"===s.viewType){if(0===s.Ca.length)return DayPilot.Date.today();var e=s.Ca.map(function(e){return e.start.getTime()}),t=Math.min.apply(null,e);return new DayPilot.Date(t)}return this.Ca[0].start},this.visibleEnd=function(){if("Resources"===s.viewType){if(0===s.Ca.length)return DayPilot.Date.today().addDays(1);var e=s.Ca.map(function(e){return e.start.getTime()}),t=Math.max.apply(null,e);return new DayPilot.Date(t).addDays(1)}var n=this.Ca.length-1;return this.Ca[n].start.addDays(1)},this.M=function(e){var t=this.theme||this.cssClassPrefix;return t?t+e:""},this._=function(){if(this.elements.events)for(var e=0;e<this.elements.events.length;e++){var t=this.elements.events[e];s.Va(t)}this.elements.events=[]},this.Va=function(e){!function(){var t=e.domArgs;if(e.domArgs=null,t&&"function"==typeof s.onBeforeEventDomRemove&&s.onBeforeEventDomRemove(t),t&&"function"==typeof s.onBeforeEventDomAdd){var i=t&&t.Wa;if(i){var r=s.Ya.Xa&&n(t.element);s.Za.reactDOM&&a(t.element)?s.Za.$a(i):r&&(s.Ya._a=!0,s.Ya.ab(i),s.Ya._a=!1)}}}();var t=e.event;if(t&&(t.calendar=null),e.onclick=null,e.onclickSave=null,e.onmouseover=null,e.onmouseout=null,e.onmousemove=null,e.onmousedown=null,e.firstChild&&e.firstChild.firstChild&&e.firstChild.firstChild.tagName&&"IMG"===e.firstChild.firstChild.tagName.toUpperCase()){var i=e.firstChild.firstChild;i.onmousedown=null,i.onmousemove=null,i.onclick=null}e.helper=null,e.data=null,e.event=null,DayPilot.de(e)},this.bb=function(e){var i=e.cache||e.data,r=this.nav.events,o=i.borderRadius||s.eventBorderRadius;"number"==typeof o&&(o+="px");var l=document.createElement("div");l.style.position="absolute",l.style.left=e.part.left+"%",l.style.top=e.part.top+"px",l.style.width=e.part.width+"%",l.style.height=Math.max(e.part.height,2)+"px",l.style.overflow="hidden",l.data=e,l.event=e,l.unselectable="on",l.style.MozUserSelect="none",l.style.KhtmlUserSelect="none",l.className=this.M("_event"),i.cssClass&&DayPilot.Util.addClass(l,i.cssClass),s.showToolTip&&e.client.toolTip()&&(l.title=e.client.toolTip()),l.isFirst=e.part.start.getTime()===e.start().getTime(),l.isLast=e.part.end.getTime()===e.end().getTime(),l.onclick=this.wa,DayPilot.re(l,"contextmenu",this.ya),l.onmouseout=function(){l.deleteIcon&&(l.deleteIcon.style.display="none")},l.onmousemove=function(n){var a=5;if("undefined"!=typeof t){var i=DayPilot.mo3(l,n);if(i&&!t.resizing&&!t.moving){l.deleteIcon&&(l.deleteIcon.style.display="");var r=this.isLast;i.y<=a&&e.client.resizeEnabled()?(this.style.cursor="n-resize",this.dpBorder="top"):this.offsetHeight-i.y<=a&&e.client.resizeEnabled()?r?(this.style.cursor="s-resize",this.dpBorder="bottom"):this.style.cursor="not-allowed":t.resizing||t.moving||("Disabled"!==s.eventClickHandling?this.style.cursor="pointer":this.style.cursor="default")}}},l.onmousedown=function(n){var a=n.which||n.button;if("n-resize"!==this.style.cursor&&"s-resize"!==this.style.cursor||1!==a){if(1===a&&e.client.moveEnabled()){t.moving=this,DayPilot.Global.moving=this,t.moving.event=this.event;var i=t.moving.helper={};i.oldColumn=s.Ca[this.data.part.dayIndex].id,t.originalMouse=DayPilot.mc(n),t.originalTop=this.offsetTop;var r=DayPilot.mo3(this,n);r?t.moveOffsetY=r.y:t.moveOffsetY=0,s.nav.top.style.cursor="move"}}else t.resizing=this,DayPilot.Global.resizing=this,t.originalMouse=DayPilot.mc(n),t.originalHeight=this.offsetHeight,t.originalTop=this.offsetTop,s.nav.top.style.cursor=this.style.cursor;return!1};var d=document.createElement("div");if(d.setAttribute("unselectable","on"),d.className=s.M("_event_inner"),"darker"===i.borderColor&&i.backColor?d.style.borderColor=DayPilot.ColorUtil.darker(i.backColor,2):d.style.borderColor=i.borderColor,i.backColor&&(d.style.background=i.backColor),i.fontColor&&(d.style.color=i.fontColor),o&&(l.style.borderRadius=o,d.style.borderRadius=o),l.appendChild(d),e.client.barVisible()){var c=e.part.height-2,u=100*e.part.barTop/c,h=Math.ceil(100*e.part.barHeight/c),f=document.createElement("div");f.setAttribute("unselectable","on"),f.className=this.M("_event_bar"),f.style.position="absolute",i.barBackColor&&(f.style.backgroundColor=i.barBackColor);var v=document.createElement("div");v.setAttribute("unselectable","on"),v.className=this.M("_event_bar_inner"),v.style.top=u+"%",0<h&&h<=1?v.style.height="1px":v.style.height=h+"%",i.barColor&&(v.style.backgroundColor=i.barColor),f.appendChild(v),l.appendChild(f)}if(e.client.deleteEnabled()){var p=document.createElement("div");p.style.position="absolute",p.style.right="2px",p.style.top="2px",p.style.width="17px",p.style.height="17px",p.className=s.M("_event_delete"),p.onmousedown=function(e){e.stopPropagation()},p.onclick=function(e){e.stopPropagation();var t=this.parentNode.event;t&&s.za(t)},p.style.display="none",l.deleteIcon=p,l.appendChild(p)}var m=i.areas?DayPilot.Areas.copy(i.areas):[];if(DayPilot.Areas.attach(l,e,{"areas":m}),"function"==typeof s.onAfterEventRender){var g={};g.e=l.event,g.div=l,s.onAfterEventRender(g)}if(function(){var t={};if(t.control=s,t.e=e,t.element=null,l.domArgs=t,"function"==typeof s.onBeforeEventDomAdd&&s.onBeforeEventDomAdd(t),t.element){var i=d;if(i){t.Wa=i;var r=n(t.element);if(a(t.element))s.Za.cb(),s.Za.db(t.element,i);else if(r){if(!s.Ya.Xa)throw new DayPilot.Exception("Can't reach Vue");s.Ya._a=!0,s.Ya.eb(t.element,i),s.Ya._a=!1}else i.appendChild(t.element)}}else d.innerHTML=e.client.innerHTML()}(),r.rows[0].cells[e.part.dayIndex]){r.rows[0].cells[e.part.dayIndex].firstChild.appendChild(l)}s.elements.events.push(l)},this.oa=function(){for(var e=0;e<this.Ca.length;e++){var t=this.Ca[e];if(t.blocks)for(var n=0;n<t.blocks.length;n++)for(var a=t.blocks[n],i=0;i<a.lines.length;i++)for(var r=a.lines[i],o=0;o<r.length;o++){var s=r[o];s.part.width=100/a.lines.length,s.part.left=s.part.width*i;var l=i===a.lines.length-1;l||(s.part.width=1.5*s.part.width),this.bb(s)}}},this.fb=function(){var e=this.nav.top;e.innerHTML="",DayPilot.Util.addClass(e,this.M("_main")),e.style.MozUserSelect="none",e.style.KhtmlUserSelect="none",e.style.position="relative",e.style.width=this.width?this.width:"100%",this.hideUntilInit&&(e.style.visibility="hidden"),this.visible||(e.style.display="none"),this.rtl&&(e.style.direction="rtl"),this.nav.scroll=document.createElement("div"),this.nav.scroll.style.height=this.gb()+"px","BusinessHours"===this.heightSpec?this.nav.scroll.style.overflow="auto":this.nav.scroll.style.overflow="hidden",this.nav.scroll.style.position="relative";var t=this.hb();this.nav.top.appendChild(t),this.nav.scroll.style.zoom=1;var n=this.ib();this.nav.scrollable=n.firstChild,this.nav.scroll.appendChild(n),e.appendChild(this.nav.scroll),this.nav.scrollLayer=document.createElement("div"),this.nav.scrollLayer.style.position="absolute",this.nav.scrollLayer.style.top="0px",this.nav.scrollLayer.style.left="0px",e.appendChild(this.nav.scrollLayer),this.nav.loading=document.createElement("div"),this.nav.loading.style.position="absolute",this.nav.loading.style.top="0px",this.nav.loading.style.left=this.hourWidth+5+"px",this.nav.loading.innerHTML=s.jb(s.loadingLabelText,s.loadingLabelHtml),this.nav.loading.style.display="none",e.appendChild(this.nav.loading)},this.ma=function(){this.fasterDispose||DayPilot.pu(this.nav.hourTable),this.nav.scrollable.rows[0].cells[0].innerHTML="",this.nav.hourTable=this.kb(),this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable)},this.ib=function(){var e=document.createElement("div");e.style.zoom=1,e.style.position="relative";var t=document.createElement("table");t.cellSpacing="0",t.cellPadding="0",t.border="0",t.style.border="0px none",t.style.width="100%",t.style.position="absolute";var n,a=t.insertRow(-1);n=a.insertCell(-1),n.valign="top",n.style.padding="0px",n.style.border="0px none",this.nav.hourTable=this.kb(),n.appendChild(this.nav.hourTable),n=a.insertCell(-1),n.valign="top",n.width="100%",n.style.padding="0px",n.style.border="0px none";var i=document.createElement("div");return i.style.position="relative",n.appendChild(i),i.appendChild(this.lb()),i.appendChild(this.mb()),e.appendChild(t),this.nav.zoom=e,e},this.lb=function(){var e=document.createElement("table");return e.cellPadding="0",e.cellSpacing="0",e.border="0",e.style.width="100%",e.style.border="0px none",e.style.tableLayout="fixed",this.nav.main=e,this.nav.events=e,e},this.mb=function(){var e=document.createElement("table");e.style.top="0px",e.cellPadding="0",e.cellSpacing="0",e.border="0",e.style.position="absolute",e.style.width="100%",e.style.border="0px none",e.style.tableLayout="fixed",this.nav.events=e;for(var t=this.Ca,n=t.length,a=e.insertRow(-1),i=0;i<n;i++){var r=a.insertCell(-1);r.style.padding="0px",r.style.border="0px none",r.style.height="0px",r.style.overflow="visible",s.rtl||(r.style.textAlign="left");var o=document.createElement("div");o.style.marginRight=s.columnMarginRight+"px",o.style.marginLeft=s.columnMarginLeft+"px",o.style.position="relative",o.style.height="1px",o.style.marginTop="-1px";var l=document.createElement("div");r.selection=l,r.appendChild(o),r.appendChild(l)}return e},this.kb=function(){var e=document.createElement("table");e.cellSpacing="0",e.cellPadding="0",e.border="0",e.style.border="0px none",e.style.width=this.hourWidth+"px",e.oncontextmenu=function(){return!1};for(var t=s.pa(),n=0;n<t;n++)this.nb(e,n);return e},this.nb=function(e,t){var n=60*s.cellHeight/l.ga(),a=e.insertRow(-1);a.style.height=n+"px";var i=a.insertCell(-1);i.valign="bottom",i.unselectable="on",i.style.cursor="default",i.style.padding="0px",i.style.border="0px none";var r=document.createElement("div");r.style.position="relative",r.className=this.M("_rowheader"),r.style.width=this.hourWidth+"px",r.style.height=n+"px",r.style.overflow="hidden",r.unselectable="on";var o=document.createElement("div");o.className=this.M("_rowheader_inner"),o.unselectable="on";var d=document.createElement("div");d.unselectable="on";var c=this.startDate.addHours(t).addHours(s.ta()),u=c.getHours(),h=u<12,f=l.timeFormat();"Clock12Hours"===f&&(u%=12,0===u&&(u=12)),d.innerHTML=u;var v=document.createElement("span");v.unselectable="on",v.className=this.M("_rowheader_minutes");var p;p="Clock12Hours"===f?h?"AM":"PM":"00",v.innerHTML=p,d.appendChild(v),o.appendChild(d),r.appendChild(o),i.appendChild(r)},this.gb=function(){var e=l.ga(),t=60/e;switch(this.heightSpec){case"Full":return 24*t*this.cellHeight;case"BusinessHours":var n=this.ra();return n*this.cellHeight*t;case"BusinessHoursNoScroll":var n=this.ra();return n*this.cellHeight*t;default:throw"DayPilot.Calendar: Unexpected 'heightSpec' value."}},this.ob=function(){var e=s.nav.corner?s.nav.corner.parentNode:null;if(e){e.innerHTML="";var t=this.pb();e.appendChild(t),s.nav.corner=t}},this.hb=function(){var e=document.createElement("div");e.style.overflow="auto";var t=document.createElement("table");t.cellPadding="0",t.cellSpacing="0",t.border="0",t.style.width="100%",t.style.borderCollapse="separate",t.style.border="0px none";var n=t.insertRow(-1),a=n.insertCell(-1);a.style.padding="0px",a.style.border="0px none";var i=this.pb();a.appendChild(i),this.nav.corner=i,a=n.insertCell(-1),a.style.width="100%",a.valign="top",a.style.position="relative",a.style.padding="0px",a.style.border="0px none",this.nav.header=document.createElement("table"),this.nav.header.cellPadding="0",this.nav.header.cellSpacing="0",this.nav.header.border="0",this.nav.header.width="100%",this.nav.header.style.tableLayout="fixed",this.nav.header.oncontextmenu=function(){return!1};var r="hidden"!==this.nav.scroll.style.overflow;if(a.appendChild(this.nav.header),r){a=n.insertCell(-1),a.unselectable="on";var o=document.createElement("div");o.unselectable="on",o.style.position="relative",o.style.width="16px",o.style.height=this.headerHeight+"px",o.className=this.M("_cornerright");var s=document.createElement("div");s.className=this.M("_cornerright_inner"),o.appendChild(s),a.appendChild(o),this.nav.cornerRight=o}return e.appendChild(t),e},this.pb=function(){var e=document.createElement("div");e.style.position="relative",e.className=this.M("_corner"),e.style.width=this.hourWidth+"px",e.style.height=this.headerHeight+"px",e.oncontextmenu=function(){return!1};var t=document.createElement("div");return t.unselectable="on",t.className=this.M("_corner_inner"),e.appendChild(t),e},this.aa=function(){var e=this.nav.main;e.root=null,e.onmouseup=null;for(var t=0;t<e.rows.length;t++)for(var n=e.rows[t],a=0;a<n.cells.length;a++){var i=n.cells[a];s.qb(i)}this.fasterDispose||DayPilot.pu(e)},this.qb=function(e){e&&(!function(){var t=e,i=t.domArgs;if(t.domArgs=null,i&&"function"==typeof s.onBeforeCellDomRemove&&s.onBeforeCellDomRemove(i),i&&"function"==typeof s.onBeforeCellDomAdd){var r=i&&i.Wa;if(r){var o=s.Ya.Xa&&n(i.element);s.Za.reactDOM&&a(i.element)?s.Za.$a(r):o&&(s.Ya._a=!0,s.Ya.ab(r),s.Ya._a=!1)}}}(),e.root=null,e.onmousedown=null,e.onmousemove=null,e.onmouseout=null,e.onmouseup=null)},this.la=function(){var e=l.ga(),i=this.nav.main,r=60*e*1e3,o=this.sa(),d=s.Ca;for(i&&this.aa();i&&i.rows&&i.rows.length>0;)this.fasterDispose||DayPilot.pu(i.rows[0]),i.deleteRow(0);this.tableCreated=!0;for(var c=this.nav.events;c&&c.rows&&c.rows.length>0;)this.fasterDispose||DayPilot.pu(c.rows[0]),c.deleteRow(0);for(var u=d.length,h=c.insertRow(-1),f=0;f<u;f++){
13
+ var v=h.insertCell(-1);v.style.padding="0px",v.style.border="0px none",v.style.height="0px",v.style.overflow="visible",s.rtl||(v.style.textAlign="left");var p=document.createElement("div");p.style.marginRight=s.columnMarginRight+"px",p.style.marginLeft=s.columnMarginLeft+"px",p.style.position="relative",p.style.height="1px",p.style.marginTop="-1px";var m=document.createElement("div");m.style.position="relative",v.selection=m,v.appendChild(p),v.appendChild(m)}for(var g=0;g<o;g++){var y=i.insertRow(-1);y.style.MozUserSelect="none",y.style.KhtmlUserSelect="none";for(var b=function(e){var t=w.Ca[e],i=y.insertCell(-1);i.start=t.start.addTime(g*r),i.end=i.start.addTime(r),i.resource=t.id,i.onmousedown=w.Da,i.onmouseup=function(){return!1},i.onclick=function(){return!1},i.root=w,i.style.padding="0px",i.style.border="0px none",i.style.verticalAlign="top",i.style.height=s.cellHeight+"px",i.style.overflow="hidden",i.unselectable="on";var o=document.createElement("div");o.unselectable="on",o.style.height=s.cellHeight+"px",o.style.position="relative",o.className=w.M("_cell");var l=w.rb(i.start,i.end),d={"business":l,"text":null,"html":null,"cssClass":null,"backColor":null,"backImage":null,"backRepeat":null,"fontColor":null},c={"start":i.start,"end":i.end,"resource":i.resource,"properties":d,"x":e,"y":g};!function(){if("function"==typeof s.onBeforeCellRender){var e={};e.cell=c,s.onBeforeCellRender(e)}}(),d.business&&DayPilot.Util.addClass(o,s.M("_cell_business")),d.cssClass&&DayPilot.Util.addClass(o,d.cssClass);var u=document.createElement("div");u.setAttribute("unselectable","on"),u.className=w.M("_cell_inner");var h=DayPilot.Util.escapeTextHtml(d.text,d.html);h&&(u.innerHTML=h),d.backColor&&(u.style.backgroundColor=d.backColor),d.backImage&&(u.style.backgroundImage="url("+d.backImage+")"),d.backRepeat&&(u.style.backgroundRepeat=d.backRepeat),d.fontColor&&(u.style.color=d.fontColor),o.appendChild(u),function(){if("function"==typeof s.onBeforeCellDomAdd||"function"==typeof s.onBeforeCellDomRemove){var e={};if(e.control=s,e.cell=c,e.element=null,i.domArgs=e,"function"==typeof s.onBeforeCellDomAdd&&s.onBeforeCellDomAdd(e),e.element){var t=u;if(t){e.Wa=t;var r=n(e.element);if(a(e.element))s.Za.cb(),s.Za.db(e.element,t);else if(r){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(o)},w=this,f=0;f<u;f++)b(f)}i.root=this,s.nav.scrollable.onmousemove=function(e){var n=s.nav.scrollable;s.coords=DayPilot.mo3(n,e);var a=DayPilot.mc(e);if(t.resizing){t.resizingShadow||(t.resizingShadow=s.da(t.resizing,!1,s.shadow));var i=s.cellHeight,r=0,o=a.y-t.originalMouse.y;if("bottom"===t.resizing.dpBorder){var l=t.originalHeight+o;s.snapToGrid&&(l=Math.floor((t.originalHeight+t.originalTop+o+i/2)/i)*i-t.originalTop+r),l<i&&(l=i);var d=s.nav.main.clientHeight;t.originalTop+l>d&&(l=d-t.originalTop),t.resizingShadow.style.height=l+"px"}else if("top"===t.resizing.dpBorder){var c=t.originalTop+o;s.snapToGrid&&(c=Math.floor((t.originalTop+o-r+i/2)/i)*i+r),c<r&&(c=r),c>t.originalTop+t.originalHeight-i&&(c=t.originalTop+t.originalHeight-i);var l=t.originalHeight-(c-t.originalTop);l<i?l=i:t.resizingShadow.style.top=c+"px",t.resizingShadow.style.height=l+"px"}}else if(t.moving){if(!s.coords)return;if(!t.movingShadow){var u=3,h=DayPilot.mc(e),f=Math.abs(h.x-t.originalMouse.x)+Math.abs(h.y-t.originalMouse.y);if(f<=u)return;t.movingShadow=s.da(t.moving,!0,s.shadow),t.movingShadow.style.width=t.movingShadow.parentNode.offsetWidth+1+"px"}var i=s.cellHeight,r=0,v=t.moveOffsetY;v||(v=i/2);var c=s.coords.y-v;s.snapToGrid&&(c=Math.floor((s.coords.y-v-r+i/2)/i)*i+r),c<r&&(c=r);var p=s.nav.events,d=s.nav.main.clientHeight+r,m=parseInt(t.movingShadow.style.height);c+m>d&&(c=d-m),DayPilot.Util.addClass(t.moving,s.M("_event_moving_source")),t.movingShadow.parentNode.style.display="none",t.movingShadow.style.top=c+"px",t.movingShadow.parentNode.style.display="";var g=p.clientWidth/p.rows[0].cells.length,y=Math.floor((s.coords.x-s.hourWidth)/g);s.rtl&&(y=s.Ca.length-y-1),y<0&&(y=0),y<p.rows[0].cells.length&&y>=0&&t.movingShadow.column!==y&&(t.movingShadow.column=y,t.moveShadow(p.rows[0].cells[y]))}else DayPilot.Global.selecting&&(s.Ga(),s.Ha())},s.nav.scrollable.style.display=""},this.rb=function(e){return this.businessBeginsHour<this.businessEndsHour?!(e.getHours()<this.businessBeginsHour||e.getHours()>=this.businessEndsHour||6===e.getDayOfWeek()||0===e.getDayOfWeek()):e.getHours()>=this.businessBeginsHour||e.getHours()<this.businessEndsHour},this.ba=function(){var e=this.nav.header;if(e&&e.rows)for(var t=0;t<e.rows.length;t++)for(var n=e.rows[t],a=0;a<n.cells.length;a++){var i=n.cells[a];i.onclick=null,i.onmousemove=null,i.onmouseout=null}this.fasterDispose||DayPilot.pu(e)},this.sb=function(e){function t(t){var i=a[t],r=e?n.insertCell(-1):n.cells[t];r.data=i,r.style.overflow="hidden",r.style.padding="0px",r.style.border="0px none",r.style.height=s.headerHeight+"px",r.onclick=s.tb;var o,l=e?document.createElement("div"):r.firstChild;e?(l.unselectable="on",l.style.MozUserSelect="none",l.style.cursor="default",l.style.position="relative",l.className=s.M("_colheader"),l.style.height=s.headerHeight+"px",s.headerTextWrappingEnabled||(l.style.whiteSpace="nowrap"),o=document.createElement("div"),o.className=s.M("_colheader_inner"),o.unselectable="on",l.appendChild(o),r.appendChild(l)):o=l.firstChild;var d={};d.header={},d.header.cssClass=null,d.header.verticalAlignment="center",d.header.horizontalAlignment="center",d.column=s.ub(i,s),"function"==typeof s.onBeforeHeaderRender&&(DayPilot.Util.copyProps(i,d.header,["id","start","name","html","backColor","toolTip","areas"]),s.onBeforeHeaderRender(d),DayPilot.Util.copyProps(d.header,i,["html","backColor","toolTip","areas","cssClass","verticalAlignment","horizontalAlignment"])),i.toolTip&&(o.title=i.toolTip),i.cssClass&&DayPilot.Util.addClass(l,i.cssClass),i.backColor&&(o.style.background=i.backColor),i.areas&&DayPilot.Areas.attach(l,i);var c=i.verticalAlignment;if(c)switch(o.style.display="flex",c){case"center":o.style.alignItems="center";break;case"top":o.style.alignItems="flex-start";break;case"bottom":o.style.alignItems="flex-end"}var u=i.horizontalAlignment;if(u)switch(u){case"center":o.style.justifyContent="center";break;case"left":o.style.justifyContent="flex-start";break;case"right":o.style.justifyContent="flex-end"}l.firstChild.innerHTML=s.jb(i.name,i.html)}for(var n=e?this.nav.header.insertRow(-1):this.nav.header.rows[0],a=this.Ca,i=a.length,r=0;r<i;r++)t(r)},this.tb=function(e){if("Disabled"!==s.headerClickHandling){var t=this.data,n=s.ub(t),a={};a.header={},a.header.id=t.id,a.header.name=t.name,a.header.start=t.start,a.column=n,a.originalEvent=e,a.shift=e.shiftKey,a.ctrl=e.ctrlKey,a.meta=e.metaKey,a.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof s.onHeaderClick&&(s.onHeaderClick(a),a.preventDefault.value)||"function"==typeof s.onHeaderClicked&&s.onHeaderClicked(a)}},this.ub=function(e){return new DayPilot.CalendarColumn(e,s)},this.vb=function(){return this.width&&this.width.indexOf("px")!==-1?"Pixel":"Percentage"},this.ka=function(){for(var e=this.nav.header,t=!0;this.headerCreated&&e&&e.rows&&e.rows.length>0;)this.fasterDispose||DayPilot.pu(e.rows[0]),e.deleteRow(0);this.headerCreated=!0;this.sb(t)},this.loadingStart=function(){this.loadingLabelVisible&&(this.nav.loading.innerHTML=this.loadingLabelText,this.nav.loading.style.top=this.headerHeight+5+"px",this.nav.loading.style.display="")},this.commandCallBack=function(e,t){var n={};n.command=e,this.W("Command",t,n)},this.loadingStop=function(){this.callbackTimeout&&window.clearTimeout(this.callbackTimeout),this.nav.loading.style.display="none"},this.wb=function(){var e=this.nav.scroll;e.root=this,s.xb(),e.onscroll||(e.onscroll=function(){s.yb()})},this.callbackError=function(e,t){alert("Error!\r\nResult: "+e+"\r\nContext:"+t)},this.zb=function(){var e=DayPilot.sw(this.nav.scroll),t=this.nav.cornerRight;t&&(t.style.width=e+"px")},this.Ab=function(){t.globalHandlers||(t.globalHandlers=!0,DayPilot.re(document,"mouseup",t.gMouseUp))},this.events={},this.events.add=function(e){var t=null;if(e instanceof DayPilot.Event)t=e.data;else{if("object"!=typeof e)throw"DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";t=e}s.events.list||(s.events.list=[]),s.events.list.push(t),s.Bb({"eventsOnly":!0}),s.xa.notify()},this.events.find=function(e){if(!s.events.list)return null;if("function"==typeof e){for(var t=e,n=0;n<s.events.list.length;n++){var a=new DayPilot.Event(s.events.list[n],s);if(t(a))return a}return null}for(var n=0;n<s.events.list.length;n++){var i=s.events.list[n];if(i.id===e)return new DayPilot.Event(i,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.events.forRange=function(e,t){return e=new DayPilot.Date(e),t=new DayPilot.Date(t),(s.events.list||[]).filter(function(n){return i(e,t,new DayPilot.Date(n.start),new DayPilot.Date(n.end))}).map(function(e){return new DayPilot.Event(e,s)})},this.events.update=function(e){if(e instanceof DayPilot.Event)e.commit();else if("object"==typeof e){var t=s.events.find(e.id);if(t){var n=DayPilot.indexOf(s.events.list,t.data);s.events.list.splice(n,1,e)}}s.Bb({"eventsOnly":!0}),s.xa.notify()},this.events.remove=function(e){var t;if(e instanceof DayPilot.Event)t=e.data;else if("object"==typeof e){var n=s.events.find(e.id);n&&(t=n.data)}else if("string"==typeof e||"number"==typeof e){var n=s.events.find(e);n&&(t=n.data)}var a=DayPilot.indexOf(s.events.list,t);s.events.list.splice(a,1),s.Bb({"eventsOnly":!0}),s.xa.notify()},this.events.load=function(e,t,n){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=n,s.Ra&&s.Bb({"eventsOnly":!0})}};if(s.eventsLoadMethod&&"POST"===s.eventsLoadMethod.toUpperCase())DayPilot.Http.ajax({"method":"POST","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.Http.ajax({"method":"GET","url":r,"success":i,"error":a})}},this.Cb=function(){var e=s.M("_main");if(s.cssClass&&(e+=" "+s.cssClass),s.rtl&&(e+=" "+s.M("_direction_rtl")),s.nav.top.className!==e){s.nav.top.className=e;var t=s.nav.corner;t.className=s.M("_corner"),t.firstChild.className=s.M("_corner_inner");var n=s.nav.cornerRight;n&&(n.className=s.M("_cornerright"),n.firstChild.className=s.M("_cornerright_inner"))}},this.update=function(e){if(s.R)throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");s.Db(e),s.Bb()},this.Bb=function(e){if(this.Ra){e=e||{};var t=!e.eventsOnly;s.Eb(),s._(),s.nav.top.style.cursor="auto",t&&(s.ha(),s.ka(),s.la(),s.ma(),s.na(),s.ob(),s.zb(),s.Cb(),s.xb()),s.ia(),s.ja(),s.oa(),s.clearSelection(),this.visible?this.show():this.hide()}},this.Fb=null,this.Db=function(e){if(e){var t={"events":{"preInit":function(){var e=this.data||[];DayPilot.isArray(e.list)?s.events.list=e.list:s.events.list=e}},"columns":{"preInit":function(){s.columns.list=this.data}},"scrollToHour":{"postInit":function(){"undefined"!=typeof this.data&&s.scrollToHour(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.Pa();void s.zoom.Qa(e),n?this.hour=a:this.hour=null},"postInit":function(){this.hour&&s.scrollToHour(this.hour)}}};this.Fb=t;for(var n in e)if(t[n]){var a=t[n];a.data=e[n],a.preInit&&a.preInit()}else s[n]=e[n]}},this.Gb=function(){var e=this.Fb;for(var t in e){var n=e[t];n.postInit&&n.postInit()}},this.Hb=function(){if(this.id&&this.id.tagName)this.nav.top=this.id;else{if("string"!=typeof this.id)throw"DayPilot.Calendar() constructor requires the target element or its ID as a parameter";if(this.nav.top=document.getElementById(this.id),!this.nav.top)throw"DayPilot.Calendar: The placeholder element not found: '"+e+"'."}},this.Ib={},this.Ib.events=[],this.Jb=function(e){var t=this.Ib.events,n=this.events.list[e],a={};for(var i in n)a[i]=n[i];if(a.start=new DayPilot.Date(n.start),a.end=new DayPilot.Date(n.end),"function"==typeof this.onBeforeEventRender){var r={};r.control=s,r.data=a,this.onBeforeEventRender(r)}t[e]=a},this.ia=function(){var e=this.events.list;if(s.Ib.events=[],e){if(!DayPilot.isArray(e))throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: "+typeof e);var t=e.length,n=864e5;this.cache.pixels={};var a=[];this.scrollLabels=[],this.minStart=1e4,this.maxEnd=0;for(var i=0;i<t;i++){var r=e[i],o=r;if("object"!=typeof o)throw new DayPilot.Exception("Event data item must be an object");if(!o.start)throw new DayPilot.Exception("Event data item must specify 'start' property");if(!o.end)throw new DayPilot.Exception("Event data item must specify 'end' property");if(o instanceof DayPilot.Event)throw new DayPilot.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.")}if("function"==typeof this.onBeforeEventRender)for(var i=0;i<t;i++)this.Jb(i);for(var i=0;i<this.Ca.length;i++){var l={};l.minEnd=1e6,l.maxStart=-1,this.scrollLabels.push(l);var d=this.Ca[i];d.events=[],d.lines=[],d.blocks=[];for(var c=new DayPilot.Date(d.start),u=c.getTime(),h=c.addTime(n),f=h.getTime(),v=0;v<t;v++)if(!a[v]){var r=e[v],p=new DayPilot.Date(r.start),m=new DayPilot.Date(r.end),g=p.getTime(),y=m.getTime();if(!(y<g)){var b=!(y<=u||g>=f);if("Resources"===s.viewType&&(b=b&&d.id===r.resource),b){var w=new DayPilot.Event(r,s);w.part.dayIndex=i,w.part.start=u<g?p:c,w.part.end=f>y?m:h;var x=this.getPixels(w.part.start,d.start),_=this.getPixels(w.part.end,d.start),C=x.top,k=_.top;if(C===k&&(x.cut||_.cut))continue;var D=_.boxBottom,M="Always"===s.useEventBoxes;M?(w.part.top=Math.floor(C/this.cellHeight)*this.cellHeight+1,w.part.height=Math.max(Math.ceil(D/this.cellHeight)*this.cellHeight-w.part.top,this.cellHeight-1)+1):(w.part.top=C+1,w.part.height=k-C),w.part.barTop=Math.max(C-w.part.top-1,0),w.part.barHeight=Math.max(k-C-2,1);var S=w.part.top,T=w.part.top+w.part.height;S>l.maxStart&&(l.maxStart=S),T<l.minEnd&&(l.minEnd=T),S<this.minStart&&(this.minStart=S),T>this.maxEnd&&(this.maxEnd=T),d.events.push(w),"function"==typeof this.onBeforeEventRender&&(w.cache=this.Ib.events[v]),w.part.start.getTime()===g&&w.part.end.getTime()===y&&(a[v]=!0)}}}}for(var i=0;i<this.Ca.length;i++){var d=this.Ca[i];d.events.sort(this.Kb);for(var v=0;v<d.events.length;v++){var r=d.events[v];d.putIntoBlock(r)}for(var v=0;v<d.blocks.length;v++){var E=d.blocks[v];E.events.sort(this.Kb);for(var H=0;H<E.events.length;H++){var r=E.events[H];E.putIntoLine(r)}}}}},this.Kb=function(e,t){if(!(e&&t&&e.start&&t.start))return 0;var n=e.start().getTime()-t.start().getTime();return 0!==n?n:t.end().getTime()-e.end().getTime()},this.debug=function(e){this.debuggingEnabled&&(s.debugMessages||(s.debugMessages=[]),s.debugMessages.push(e),"undefined"!=typeof console&&console.log(e))},this.getPixels=function(e,t){t||(t=this.startDate);var n=t.getTime(),a=e.getTime(),i=l.ga(),r=this.cache.pixels[a+"_"+n];if(r)return r;n=t.getTime();var o=60*i*1e3,s=a-n,d=s%o,c=s-d,u=c+o;0===d&&(u=c);var h={};return h.cut=!1,h.top=this.Lb(s),h.boxTop=this.Lb(c),h.boxBottom=this.Lb(u),this.cache.pixels[a+"_"+n]=h,h},this.Lb=function(e){return Math.floor(this.cellHeight*e/(6e4*l.ga()))},this.Eb=function(){this.startDate=new DayPilot.Date(this.startDate).getDatePart()},this.ja=function(){this.nav.corner&&(this.nav.corner.style.height=this.headerHeight+"px")},this.na=function(){var e=this.gb();this.nav.scroll&&e>0&&(this.nav.scroll.style.height=e+"px")},this.xa={},this.xa.scope=null,this.xa.notify=function(){s.xa.scope&&s.xa.scope["$apply"]()},this.xa.apply=function(e){e()},this.yb=function(){if(s.nav.scroll&&s.Mb()){var e=s.nav.scroll.scrollTop,t=l.ga(),n=60/t,a=e/(n*s.cellHeight);s.Sa.scrollHour=a}},this.xb=function(){var e=0,t=60/l.ga();e="number"==typeof s.Sa.scrollHour?t*s.cellHeight*s.Sa.scrollHour:"Auto"===s.initScrollPos?"BusinessHours"===this.heightSpec?t*this.cellHeight*this.businessBeginsHour:0:this.initScrollPos;var n=s.nav.top;"none"===n.style.display?(n.style.display="",s.nav.scroll.scrollTop=e,n.style.display="none"):s.nav.scroll.scrollTop=e},this.getScrollY=function(){return s.nav.scroll.scrollTop},this.setScrollY=function(e){s.nav.scroll.scrollTop=e,s.yb()},this.Nb=function(){return!(!this.backendUrl&&"function"!=typeof WebForm_DoCallback)&&("undefined"==typeof s.events.list||!s.events.list)},this.z=function(){"hidden"===this.nav.top.style.visibility&&(this.nav.top.style.visibility="visible")},this.show=function(){s.visible=!0,s.nav.top.style.display="",this.zb()},this.hide=function(){s.visible=!1,s.nav.top.style.display="none"},this.Ob=function(){this.Eb(),this.ha(),this.fb(),this.ka(),this.la(),this.zb(),this.wb(),this.Ab(),t.register(this),this.Pb(),this.W("Init")},this.Sa={},this.Qb=function(){this.Sa.themes=[],this.Sa.themes.push(this.theme||this.cssClassPrefix)},this.Rb=function(){for(var e=this.Sa.themes,t=0;t<e.length;t++){var n=e[t];DayPilot.Util.removeClass(this.nav.top,n+"_main")}this.Sa.themes=[]},this.Sb=function(){if(this.afterRender(null,!1),"function"==typeof this.onAfterRender){var e={};e.isCallBack=!1,this.onAfterRender(e)}},this.Tb=function(){if("function"==typeof this.onInit&&!this.Ub){this.Ub=!0;var e={};this.onInit(e)}},this.Mb=function(){var e=s.nav.top;return!!e&&(e.offsetWidth>0&&e.offsetHeight>0)},this.Pb=function(){var e=s.Mb;e()||(s.Z=setInterval(function(){e()&&(s.wb(),s.zb(),clearInterval(s.Z))},100))},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.Za={},this.Za.reactDOM=null,this.Za.react=null,this.Za.cb=function(){if(!s.Za.reactDOM)throw new DayPilot.Exception("Can't reach ReactDOM")},this.Za.db=function(e,t){var n=s.Za.reactDOM;if("function"==typeof n.createRoot){var a=t.Vb;a||(a=n.createRoot(t),t.Vb=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.Vb;setTimeout(function(){n.unmount(),e.Vb=null},0)}else t.unmountComponentAtNode(e)},this.Ya={},this.Ya.Xa=null,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.loadOptions=s.Db,this.internal.xssTextHtml=s.jb,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.init=function(){this.Hb();var e=this.Nb();return this.Qb(),e?void this.Ob():(this.Eb(),this.ha(),this.ia(),this.fb(),this.ka(),this.la(),this.z(),this.zb(),this.wb(),this.Ab(),t.register(this),this.events&&(this.ja(),this.oa()),this.Sb(),this.Tb(),this.Pb(),this.Ra=!0,this)},this.Init=this.init,this.Db(r)},DayPilot.CalendarColumn=function(e,t){var n=this;n.id=e.id,n.name=e.name,n.data=e.data,n.start=new DayPilot.Date(e.start),n.calendar=t,n.toJSON=function(){var e={};return e.id=this.id,this.start&&(e.start=this.start.toString()),e.name=this.name,e}},DayPilot.Calendar=t.Calendar,"undefined"!=typeof jQuery&&!function(e){e.fn.daypilotCalendar=function(e){var t=null,n=this.each(function(){if(!this.daypilot){var n=new DayPilot.Calendar(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("daypilotCalendar",["$parse",function(e){return{"restrict":"E","template":"<div></div>","replace":!0,"link":function(t,n,a){var i=new DayPilot.Calendar(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)0===s.indexOf("on")&&!function(n){i[n]=function(i){var r=e(a[n]);t["$apply"](function(){r(t,{"args":i})})}}(s);var l=t["$watch"],d=a["config"]||a["daypilotConfig"],c=a["events"]||a["daypilotEvents"];l.call(t,d,function(e){for(var t in e)i[t]=e[t];i.update(),i.Tb()},!0),l.call(t,c,function(e){i.events.list=e,i.update()},!0)}}}])}()}}(DayPilot),function(DayPilot){"undefined"==typeof DayPilot.DatePicker&&(DayPilot.DatePicker=function(e){this.v="${v}";var t="navigator_"+(new Date).getTime(),n=this;this.onShow=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.prepare=function(){if(this.locale="en-us",this.target=null,this.targetAlignment="left",this.resetTarget=!0,this.pattern=this.S.locale().datePattern,this.theme="navigator_default",this.patterns=[],this.zIndex=null,this.showToday=!0,this.todayText="Today",this.weekStarts="Auto",e)for(var t in e)this[t]=e[t]},this.init=function(){this.date=new DayPilot.Date(this.date);var e=this.Wb();this.resetTarget&&!e?this.Xb(this.date):!this.resetTarget&&e&&(n.date=e);var t=this.E();return t&&t.addEventListener("input",function(){n.date=n.Wb(),n.date&&n.navigator.select(n.date,{dontNotify:!0})}),this},this.close=function(){document.removeEventListener("mousedown",n.close),document.removeEventListener("wheel",n.close),window.removeEventListener("resize",n.close),n.Mb&&(n.Mb=!1,n.navigator&&n.navigator.dispose(),n.div.innerHTML="",n.div&&n.div.parentNode===document.body&&document.body.removeChild(n.div))},this.Yb=function(e){this.date=new DayPilot.Date(e),this.Xb(this.date)},this.select=function(e){var t={};t.date=new DayPilot.Date(e),t.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof n.onTimeRangeSelect&&(n.onTimeRangeSelect(t),t.preventDefault.value)||(this.Yb(e),"function"==typeof n.onTimeRangeSelected&&n.onTimeRangeSelected(t))},this.Wb=function(){var e=this.E();if(!e)return this.date;var t=null;if(t="INPUT"===e.tagName?e.value:e.innerText,!t)return null;for(var a=DayPilot.Date.parse(t,n.pattern),i=0;i<n.patterns.length;i++){if(a)return a;a=DayPilot.Date.parse(t,n.patterns[i])}return a},this.Xb=function(e){var t=this.E();if(t){var a=e.toString(n.pattern,n.locale);"INPUT"===t.tagName?t.value=a:t.innerHTML=a}},this.S={},this.S.locale=function(){return DayPilot.Locale.find(n.locale)},this.E=function(){var e=this.target;return e&&e.nodeType&&1===e.nodeType?e:document.getElementById(e)},Object.defineProperty(this,"visible",{get:function(){return n.Mb}}),this.show=function(){if(!this.Mb){document.addEventListener("mousedown",n.close),document.addEventListener("wheel",n.close),window.addEventListener("resize",n.close);var e=this.E(),a=new DayPilot.Navigator(t);a.api=2,a.cssOnly=!0,a.theme=n.theme,a.weekStarts="Auto",a.locale=n.locale,a.showToday=n.showToday,a.todayText=n.todayText,a.weekStarts=n.weekStarts,a.onTodayClick=function(e){a.onTimeRangeSelected({start:DayPilot.Date.today()}),e.preventDefault()},a.onTimeRangeSelected=function(e){n.date=e.start;var t=e.start.addTime(a.Zb),i=t.toString(n.pattern,n.locale),r={};r.start=t,r.date=t,r.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof n.onTimeRangeSelect&&(n.onTimeRangeSelect(r),r.preventDefault.value)||(n.Xb(i),n.close(),"function"==typeof n.onTimeRangeSelected&&n.onTimeRangeSelected(r))},this.navigator=a;var i={x:0,y:0,w:0,h:0};e&&(i=DayPilot.abs(e));var r=i.h,o=n.targetAlignment,s=document.createElement("div");s.style.position="absolute","left"===o&&(s.style.left=i.x+"px"),s.style.top=i.y+r+"px",n.zIndex&&(s.style.zIndex=n.zIndex);var l=document.createElement("div");l.id=t,s.appendChild(l),s.addEventListener("mousedown",function(e){e.stopPropagation()}),document.body.appendChild(s),this.div=s;var d=n.Wb()||n.date;if(a.startDate=d,a.Zb=d.getTimePart(),a.selectionDay=d.getDatePart(),a.init(),"right"===o){var c=i.x+i.w-a.nav.top.offsetWidth;s.style.left=c+"px"}if(this.Mb=!0,this.onShow){var u={};this.onShow(u)}}},this.prepare(),this.init()})}(DayPilot),function(DayPilot){if("undefined"==typeof DayPilot.Menu||!DayPilot.Menu.def){var e=function(){},t={};t.mouse=null,t.menu=null,t.handlersRegistered=!1,t.hideTimeout=null,t.waitingSubmenu=null,DayPilot.Menu=function(n){var a=this,i=null;this.v="${v}",this.zIndex=120,this.cssClassPrefix="menu_default",this.cssOnly=!0,this.menuTitle=null,this.showMenuTitle=!1,this.hideOnMouseOut=!1,this.hideAfter=200,this.theme=null,this.rtl=!1,this.onShow=null;var r=DayPilot.isArray(n)?null:n;if(this.$b=function(){},n&&DayPilot.isArray(n)&&(this.items=n),this.toJSON=function(){return null},this.show=function(n,r){r=r||{};var o=null;if(n?"string"==typeof n.id||"number"==typeof n.id?o=n.id:"function"==typeof n.id?o=n.id():"function"==typeof n.value&&(o=n.value()):o=null,"undefined"!=typeof DayPilot.Bubble&&DayPilot.Bubble.hideActive(),r.submenu||t.menuClean(),this.$b.submenu=null,null!==t.mouse){a.cssOnly||(a.cssOnly=!0);var s=null;n&&n.isRow&&n.$.row.task?(s=new DayPilot.Task(n.$.row.task,n.calendar),s.menuType="resource"):s=n&&n.isEvent&&n.data.task?new DayPilot.Task(n,n.calendar):n;var l=document.createElement("div");if("function"==typeof a.onShow){var d={};if(d.source=s,d.menu=a,d.div=l,d.preventDefault=function(){d.preventDefault.value=!0},a.onShow(d),d.preventDefault.value)return}if(l.style.position="absolute",l.style.top="0px",l.style.left="0px",l.style.display="none",l.style.overflow="hidden",l.style.zIndex=this.zIndex+1,l.className=this._b("main"),l.onclick=function(e){e.cancelBubble=!0,this.parentNode.removeChild(this)},a.rtl&&(l.style.direction="rtl",l.className+=" "+a._b("direction_rtl")),this.hideOnMouseOut&&(l.onmousemove=function(){clearTimeout(t.hideTimeout)},l.onmouseleave=function(){a.delayedHide({"hideParent":!0})}),!this.items||0===this.items.length)throw"No menu items defined.";if(this.showMenuTitle){var c=document.createElement("div");c.innerHTML=this.menuTitle,c.className=this._b("title"),l.appendChild(c)}for(var u=0;u<this.items.length;u++){var h=this.items[u],f=document.createElement("div");if(DayPilot.Util.addClass(f,this._b("item")),h.items&&(DayPilot.Util.addClass(f,this._b("item_haschildren")),DayPilot.Util.addClass(l,this._b("withchildren"))),"undefined"!=typeof h&&!h.hidden){if("-"===h.text){var v=document.createElement("div");v.addEventListener("click",function(e){e.stopPropagation()}),f.appendChild(v)}else{var p=document.createElement("a");if(p.style.position="relative",p.style.display="block",h.cssClass&&DayPilot.Util.addClass(p,h.cssClass),h.disabled)DayPilot.Util.addClass(p,a._b("item_disabled"));else{if(h.onclick||h.onClick){p.item=h,p.onclick=function(e,t){return function(n){if("function"==typeof e.onClick){var a={};if(a.item=e,a.source=t.source,a.originalEvent=n,a.preventDefault=function(){a.preventDefault.value=!0},e.onClick(a),a.preventDefault.value)return void n.stopPropagation()}e.onclick&&e.onclick.call(t,n)}}(h,p);var m=function(e,t){return function(e){e.stopPropagation(),e.preventDefault(),t.source.calendar&&t.source.calendar.internal.touch&&(t.source.calendar.internal.touch.active=!0)}},g=function(e,n){return function(a){a.stopPropagation(),a.preventDefault();var i=function(){window.setTimeout(function(){n.source.calendar&&n.source.calendar.internal.touch&&(n.source.calendar.internal.touch.active=!1)},500)};if("function"==typeof e.onClick){var r={};if(r.item=e,r.source=n.source,r.originalEvent=a,r.preventDefault=function(){r.preventDefault.value=!0},e.onClick(r),r.preventDefault.value)return void i()}e.onclick&&e.onclick.call(n,a),t.menuClean(),i()}};DayPilot.reNonPassive(p,"touchstart",m(h,p)),DayPilot.reNonPassive(p,"touchend",g(h,p))}if(h.items&&!h.disabled){var y=function(e,t){return function(n){n.preventDefault(),n.stopPropagation(),a.bc(e,t)}};p.ontouchend=y(h,p)}if(h.onclick)e();else if(h.href)p.href=h.href.replace(/\x7B0\x7D/gim,o),h.target&&p.setAttribute("target",h.target);else if(h.command){var y=function(e,t){return function(n){var a=t.source,i=e;i.action=i.action?i.action:"CallBack";var r=a.calendar||a.root;if(n.preventDefault(),a instanceof DayPilot.Link)r.internal.linkMenuClick(i.command,a,i.action);else if(a instanceof DayPilot.Selection)r.internal.timeRangeMenuClick(i.command,a,i.action);else if(a instanceof DayPilot.Event)r.internal.eventMenuClick(i.command,a,i.action);else if(a instanceof DayPilot.Task)"resource"===a.menuType?r.internal.resourceHeaderMenuClick(i.command,t.menuSource,i.action):r.internal.eventMenuClick(i.command,t.menuSource,i.action);else switch(a.menuType){case"resource":r.internal.resourceHeaderMenuClick(i.command,a,i.action);break;case"selection":r.internal.timeRangeMenuClick(i.command,a,i.action);break;default:r.internal.eventMenuClick(i.command,a,i.action)}}};p.onclick=y(h,p),p.ontouchend=y(h,p)}}h.items&&p.addEventListener("click",function(e){e.stopPropagation()}),p.source=s,p.menuSource=n;var b=document.createElement("span");if(b.className=a._b("item_text"),b.innerHTML=DayPilot.Util.escapeTextHtml(h.text,h.html),p.appendChild(b),h.image){var w=document.createElement("img");w.src=h.image,w.style.position="absolute",w.style.top="0px",a.rtl?w.style.right="0px":w.style.left="0px",p.appendChild(w)}if(h.icon){var x=document.createElement("span");x.className=a._b("item_icon");var _=document.createElement("i");_.className=h.icon,x.appendChild(_),p.appendChild(x)}if(h.symbol){var C="http://www.w3.org/2000/svg",k=document.createElementNS(C,"svg");k.setAttribute("width","100%"),k.setAttribute("height","100%");var D=document.createElementNS(C,"use");D.setAttribute("href",h.symbol),k.appendChild(D);var M=document.createElement("span");M.className=a._b("item_symbol"),M.style.position="absolute",M.style.top="0px",a.rtl?M.style.right="0px":M.style.left="0px",M.appendChild(k),p.appendChild(M)}var S=function(e,n){return function(){var i=e,r=t.waitingSubmenu;if(r){if(r.parent===i)return;clearTimeout(r.timeout),t.waitingSubmenu=null}e.disabled||(t.waitingSubmenu={},t.waitingSubmenu.parent=i,t.waitingSubmenu.timeout=setTimeout(function(){t.waitingSubmenu=null,a.bc(i,n)},300))}};p.onmouseover=S(h,p),f.appendChild(p)}l.appendChild(f)}}var T=function(){window.setTimeout(function(){t.menuClean(),DayPilot.MenuBar.deactivate()},100)};l.onclick=T,l.ontouchend=T,l.onmousedown=function(e){e.stopPropagation()},l.oncontextmenu=function(){return!1},document.body.appendChild(l),a.$b.visible=!0,a.$b.source=n,l.style.display="";var E=l.offsetHeight,H=l.offsetWidth;l.style.display="none";var A=document.documentElement.clientHeight,N=window.innerWidth,I="number"==typeof r.windowMargin?r.windowMargin:5;if(function(){var e=r.initiator;if(e){var t=e.div,n=e.e,o=e.area,s=o.visibility||o.v||"Visible",l=e.a;if("Visible"!==s&&(l=DayPilot.Areas.createArea(t,n,o),t.appendChild(l),i=l),l){var d=DayPilot.abs(l);r.x=d.x,r.y=d.y+d.h+2,a.rtl&&(r.x=d.x+d.w)}}}(),function(){var e="number"==typeof r.x?r.x:t.mouse.x+1,n="number"==typeof r.y?r.y:t.mouse.y+1,i=document.body.scrollTop||document.documentElement.scrollTop,o=document.body.scrollLeft||document.documentElement.scrollLeft,s=0,d=0;if(n-i>A-E&&0!==A){s=n-(n-i-(A-E)+I)}else s=n;if(a.$b.y=s,l.style.top=s+"px",("right"===r.align||a.rtl)&&(e-=H),e-o>N-H&&0!==N){d=e-(e-o-(N-H)+I)}else d=e;a.$b.x=d,l.style.left=d+"px"}(),r.parentLink){var R=r.parentLink,z=parseInt(new DayPilot.StyleReader(l).get("border-top-width")),P=DayPilot.abs(r.parentLink.parentNode),U=P.x+R.offsetWidth;
14
14
  a.rtl&&(U=P.x-H);var L=P.y-z;U+H>N&&(U=Math.max(0,P.x-H));var B=document.body.scrollTop+document.documentElement.scrollTop;L+E-B>A&&(L=Math.max(0,A-E+B)),l.style.left=U+"px",l.style.top=L+"px"}l.style.display="",this.addShadow(l),this.$b.div=l,r.submenu||(DayPilot.Menu.active=this)}},this.update=function(){if(a.$b.visible){var e=a.$b.source;a.hide(),a.show(e,{"x":a.$b.x,"y":a.$b.y})}},this.bc=function(e,t){var n=e,i=t.source;if((!a.$b.submenu||a.$b.submenu.item!==e)&&(a.$b.submenu&&a.$b.submenu.item!==e&&(DayPilot.Util.removeClass(a.$b.submenu.link.parentNode,a._b("item_haschildren_active")),a.$b.submenu.menu.hide(),a.$b.submenu=null),e.items)){var r=a.cloneOptions();r.items=e.items,a.$b.submenu={},a.$b.submenu.menu=new DayPilot.Menu(r),a.$b.submenu.menu.cc=a,a.$b.submenu.menu.show(i,{"submenu":!0,"parentLink":t,"parentItem":n}),a.$b.submenu.item=e,a.$b.submenu.link=t,DayPilot.Util.addClass(t.parentNode,a._b("item_haschildren_active"))}},this._b=function(e){var t=this.theme||this.cssClassPrefix,n=this.cssOnly?"_":"";return t?t+n+e:""},this.cloneOptions=function(){return DayPilot.Util.copyProps(r,{},["cssClassPrefix","theme","hideAfter","hideOnMouseOut","zIndex","rtl"])},this.hide=function(e){e=e||{},this.$b.submenu&&this.$b.submenu.menu.hide();var n=t.waitingSubmenu;if(n&&(t.waitingSubmenu=null,clearTimeout(n.timeout)),this.removeShadow(),this.$b.div&&this.$b.div.parentNode===document.body&&document.body.removeChild(this.$b.div),i&&(DayPilot.de(i),i=null),a.$b.visible=!1,a.$b.source=null,a.cc&&e.hideParent&&a.cc.hide(e),DayPilot.Menu.active===a&&(DayPilot.Menu.active=null),"function"==typeof this.onHide){var r={};this.onHide(r)}},this.delayedHide=function(e){t.hideTimeout=setTimeout(function(){a.hide(e)},a.hideAfter)},this.cancelHideTimeout=function(){clearTimeout(t.hideTimeout)},this.init=function(e){return t.mouseMove(e),this},this.addShadow=function(){},this.removeShadow=function(){},r)for(var o in r)this[o]=r[o]},DayPilot.MenuBar=function(e,t){var n=this;t=t||{},this.items=[],this.theme="menubar_default",this.windowMargin=0,this.nav={},this.elements={},this.elements.items=[],this.m=null,this.Ra=!1;for(var a in t)this[a]=t[a];this.dc=function(e){return this.theme+"_"+e},this.z=function(){this.nav.top=document.getElementById(e);var t=this.nav.top;t.className=this.dc("main"),(n.items||[]).forEach(function(e){var a=document.createElement("span");a.innerHTML=DayPilot.Util.escapeTextHtml(e.text,e.html),a.className=n.dc("item"),e.cssClass&&a.classList.add(e.cssClass),a.data=e,a.onclick=function(t){if(n.active&&n.active.item===e)n.ec();else if(e.children)return void n.fc(a);if("function"==typeof e.onClick){var i={};i.item=e,i.originalEvent=t,e.onClick(i)}},a.onmousedown=function(e){e.stopPropagation()},a.onmouseover=function(){n.active&&n.active.item!==e&&n.fc(a)},t.appendChild(a),n.elements.items.push(a)})},this.ec=function(){var e=n.dc("item_active");n.elements.items.forEach(function(t){DayPilot.Util.removeClass(t,e)}),n.active&&n.active.menu&&n.active.menu.hide(),n.active=null},this.gc=function(e){return!!n.active&&n.active.item===e.data},this.fc=function(e){if(!n.gc(e)){n.ec();var t=e.data,a=n.active={};a.item=t,a.div=e;var i=n.dc("item_active");DayPilot.Util.addClass(e,i);var r=DayPilot.abs(e);if(t.children){a.menu=new DayPilot.Menu({"items":t.children});var o=r.x;"right"===t.align&&(o+=r.w),a.menu.show(null,{"x":o,"y":r.y+r.h,"align":t.align,"windowMargin":n.windowMargin})}DayPilot.MenuBar.active=n}},this.init=function(){return this.z(),this.Ra=!0,this},this.dispose=function(){this.Ra&&(this.nav.top.innerHTML="",this.elements.items=[])}},DayPilot.MenuBar.deactivate=function(){DayPilot.MenuBar.active&&(DayPilot.MenuBar.active.ec(),DayPilot.MenuBar.active=null)},t.menuClean=function(){"undefined"!=typeof DayPilot.Menu.active&&DayPilot.Menu.active&&(DayPilot.Menu.active.hide(),DayPilot.Menu.active=null)},t.mouseDown=function(){"undefined"!=typeof t&&(t.menuClean(),DayPilot.MenuBar.deactivate())},t.pointerDown=function(e){if("undefined"!=typeof t){for(var n=t.hc(),a=0;a<n.length;a++){var i=n[a];if(i.$b&&i.$b.div){var r=i.$b.div.getBoundingClientRect(),o=e.clientX,s=e.clientY;if(o>=r.left&&o<=r.right&&s>=r.top&&s<=r.bottom)return}}t.menuClean()}},t.hc=function(){var e=DayPilot.Menu.active;if(!e)return[];for(var t=[e],n=0;n<t.length;){var a=t[n];a.$b&&a.$b.submenu&&a.$b.submenu.menu&&t.push(a.$b.submenu.menu),n++}return t},t.wheel=function(){"undefined"!=typeof t&&(t.menuClean(),DayPilot.MenuBar.deactivate())},t.resize=function(){"undefined"!=typeof t&&(t.menuClean(),DayPilot.MenuBar.deactivate())},t.mouseMove=function(e){"undefined"!=typeof t&&(t.mouse=t.mousePosition(e))},t.touchMove=function(e){"undefined"!=typeof t&&(t.mouse=t.touchPosition(e))},t.touchStart=function(e){"undefined"!=typeof t&&(t.mouse=t.touchPosition(e))},t.touchEnd=function(){},t.touchPosition=function(e){if(!e||!e.touches)return null;var t=e.touches[0],n={};return n.x=t.pageX,n.y=t.pageY,n},t.mousePosition=function(e){return DayPilot.mo3(null,e)},DayPilot.Menu.touchPosition=function(e){e.touches&&(t.mouse=t.touchPosition(e))},DayPilot.Menu.mousePosition=function(e){t.mouse=t.mousePosition(e)},DayPilot.Menu.hide=function(e){if(e=e||{},e.calendar){var n=DayPilot.Menu.active;if(n){var a=n.$b.source;a&&a.calendar===e.calendar&&t.menuClean()}}else t.menuClean()},t.handlersRegistered||"undefined"==typeof document||(DayPilot.re(document,"mousemove",t.mouseMove),DayPilot.re(document,"pointerdown",t.pointerDown),DayPilot.re(document,"wheel",t.wheel),DayPilot.re(document,"touchmove",t.touchMove),DayPilot.re(document,"touchstart",t.touchStart),DayPilot.re(document,"touchend",t.touchEnd),DayPilot.re(window,"resize",t.resize),t.handlersRegistered=!0),DayPilot.Menu.def={}}}(DayPilot),function(DayPilot){function e(t,n,a){var i=n.indexOf(".");if(i===-1)return void("__proto__"!==n&&"constructor"!==n&&(t[n]=a));var r=n.substring(0,i);if("__proto__"!==r&&"constructor"!==r){var o=n.substring(i+1),s=t[r];"object"==typeof s&&null!==s||(t[r]={},s=t[r]),e(s,o,a)}}function t(e){this.form=[],this.data={},this.theme="form_default",this.zIndex=99999,this.locale="en-us",this.plugins={},this.onKey=null,this.Jc=[],this.Kc=null,this.canceling=!1,this.Lc=[],this.j=[],this.Mc=null,e=e||{};for(var t in e)this[t]=e[t]}function n(){this.id=this.guid(),this.field=null,this.data=null,this.type=null,this.level=0,this.enabled=!0,this.value=null,this.text=null,this.interactive=!0,this.isValue=!1,this.checked=!1,this.resolved=null}function a(){this.element=null,this.canFocus=function(){return!1},this.apply=function(){},this.focus=function(){},this.save=function(){return{}}}function i(e,t,n){t=t||{},n=n||"";for(var a in e){var r=e[a];"object"==typeof r?"[object Array]"===Object.prototype.toString.call(r)?t[n+a]=r:r&&r.toJSON?t[n+a]=r.toJSON():i(r,t,n+a+"."):t[n+a]=r}return t}function r(e){this.data=[],this.name=null,this.theme="searchable_default",this.Sc=!1,this.listZIndex=1e5,this.onSelect=null,this.Tc=null,this.Uc=null,this.Vc=!1,this.Wc=null,this.Xc=null,this.s=[],this.Yc=null,e=e||{};var t=this,n={"selected":{post:function(e){"object"==typeof e&&e.id?t.Tc=e:"string"!=typeof e&&"number"!=typeof e||t.select(e)}}};Object.defineProperty(this,"selected",{get:function(){return this.Tc}}),Object.defineProperty(this,"disabled",{get:function(){return this.Sc},set:function(e){this.Sc=e,this.Wc&&(this.Wc.disabled=e,e&&this.Zc())}});for(var a in e)n[a]||(this[a]=e[a]);for(var i in e)n[i]&&n[i].post(e[i])}function o(e){this.form=null,this.item=null,this.data=null,this.name=null,this.theme="edit_table_default",this.onInput=null,this.nav={},this._c=null,this.Jc=[],e=e||{};for(var t in e)this[t]=e[t]}if(!DayPilot.ModalStatic){DayPilot.ModalStatic={},DayPilot.ModalStatic.list=[],DayPilot.ModalStatic.hide=function(){if(this.list.length>0){var e=this.list.pop();e&&e.hide()}},DayPilot.ModalStatic.remove=function(e){for(var t=DayPilot.ModalStatic.list,n=0;n<t.length;n++)if(t[n]===e)return void t.splice(n,1)},DayPilot.ModalStatic.close=function(e){DayPilot.ModalStatic.result(e),DayPilot.ModalStatic.hide()},DayPilot.ModalStatic.result=function(e){var t=DayPilot.ModalStatic.list;t.length>0&&(t[t.length-1].result=e)},DayPilot.ModalStatic.displayed=function(e){for(var t=DayPilot.ModalStatic.list,n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},DayPilot.ModalStatic.stretch=function(){if(this.list.length>0){var e=this.list[this.list.length-1];e&&e.stretch()}},DayPilot.ModalStatic.last=function(){var e=DayPilot.ModalStatic.list;return e.length>0?e[e.length-1]:null};var s=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=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");!(!document.querySelector("head > script[data-rendered-by-lwc]")&&!document.querySelector("body > div#auraLoadingBox"))||(i.nonce=e()),i.styleSheet||i.appendChild(document.createTextNode(""));try{(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}catch(e){return a}var r=!!i.styleSheet,o={};return o.rules=[],o.commit=function(){try{r&&(i.styleSheet.cssText=this.rules.join("\n"))}catch(e){}},o.add=function(e,t,n){if(r)return void this.rules.push(e+"{"+t+"}");if(!i.sheet)return this;if(i.sheet.insertRule)"undefined"==typeof n&&(n=i.sheet.cssRules.length),i.sheet.insertRule(e+"{"+t+"}",n);else{if(!i.sheet.addRule)throw"No CSS registration method found";i.sheet.addRule(e,t,n)}},o.print=function(){for(var e=i.sheet.cssRules,t=[],n=0;n<e.length;n++)t.push(e[n].cssText);return t.join("\n")},o},l="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K",d=new s;d.add(".modal_default_main","border: 10px solid #ccc; max-width: 90%;"),d.add(".modal_default_main:focus","outline: none;"),d.add(".modal_default_content","padding: 10px 0px;"),d.add(".modal_default_inner","padding: 20px;"),d.add(".modal_default_input","padding: 10px 0px;"),d.add(".modal_default_buttons","margin-top: 10px;"),d.add(".modal_default_buttons","padding: 10px 0px;"),d.add(".modal_default_form_item","padding: 10px 0px; position: relative;"),d.add(".modal_default_form_item_level1","border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"),d.add(".modal_default_form_item.modal_default_form_title","font-size: 1.5rem; font-weight: bold;"),d.add(".modal_default_form_item input[type=text]","width: 100%; box-sizing: border-box;"),d.add(".modal_default_form_item textarea","width: 100%; height: 200px; box-sizing: border-box;"),d.add(".modal_default_form_item input[type=select]","width: 100%; box-sizing: border-box;"),d.add(".modal_default_form_item label","display: block;"),d.add(".modal_default_form_item select","width: 100%; box-sizing: border-box;"),d.add(".modal_default_form_item_label","margin: 2px 0px;"),d.add(".modal_default_form_item_image img","max-width: 100%; height: auto;"),d.add(".modal_default_form_item_invalid",""),d.add(".modal_default_form_item_invalid_message","position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"),d.add(".modal_default_background","opacity: 0.5; background-color: #000;"),d.add(".modal_default_ok","padding: 3px; width: 80px;"),d.add(".modal_default_cancel","padding: 3px; width: 80px;"),d.add(".modal_default_form_item_date","position: relative;"),d.add(".modal_default_form_item_date:after","content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url("+"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg=="+")"),"undefined"!=typeof navigator&&navigator.userAgent.indexOf("Edge")!==-1&&d.add(".modal_default_form_item_date input::-ms-clear","display: none;"),d.add(".modal_default_form_item_scrollable_scroll","width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"),d.add(".modal_default_form_item_scrollable_scroll_content","padding: 5px;"),d.add(".modal_default_form_item_searchable","position: relative;"),d.add(".modal_default_form_item_searchable_icon",""),d.add(".modal_default_form_item_searchable_icon:after","content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url("+l+");"),d.add(".modal_default_form_item_searchable_list","box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"),d.add(".modal_default_form_item_searchable_list_item","background: white; padding: 2px; cursor: default;"),d.add(".modal_default_form_item_searchable_list_item_highlight","background: #ccc;"),d.add(".modal_default_form_item_time","position: relative;"),d.add(".modal_default_form_item_time_icon",""),d.add(".modal_default_form_item_time_icon:after","content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url("+l+");"),d.add(".modal_default_form_item_time_list","box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"),d.add(".modal_default_form_item_time_list_item","background: white; padding: 2px; cursor: default;"),d.add(".modal_default_form_item_time_list_item_highlight","background: #ccc;"),d.add(".modal_default_form_item_datetime_parent","display: flex;"),d.add(".modal_default_form_item_datetime .modal_default_form_item_time_main","margin-left: 5px;"),d.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ",""),d.add(".modal_default_form_item_tabular_main","margin-top: 10px;"),d.add(".modal_default_form_item_tabular_table","display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"),d.add(".modal_default_form_item_tabular_tbody","display: table-row-group;"),d.add(".modal_default_form_item_tabular_row","display: table-row;"),d.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header",""),d.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction","padding: 0px; width: 23px;"),d.add(".modal_default_form_item_tabular_cell","display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"),d.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell","padding-left: 0px; padding-bottom: 0px;"),d.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]","width:100%; box-sizing: border-box;"),d.add(".modal_default_form_item_tabular_table select","width:100%; height:100%; box-sizing: border-box;"),d.add(".modal_default_form_item_tabular_plus","display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"),d.add(".modal_default_form_item_tabular_plus:after","content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"),d.add(".modal_default_form_item_tabular_delete","display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"),d.add(".modal_default_form_item_tabular_delete:after","content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"),d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus","display: none;"),d.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus","display: none;"),d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete","visibility: hidden;"),d.add(".modal_default_form_item_tabular_empty","height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"),d.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell","padding: 0px;"),d.add(".modal_min_main","border: 1px solid #ccc; max-width: 90%;"),d.add(".modal_min_background","opacity: 0.5; background-color: #000;"),d.add(".modal_min_ok","padding: 3px 10px;"),d.add(".modal_min_cancel","padding: 3px 10px;"),d.add(".navigator_modal_main","border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"),d.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after","box-sizing: content-box;"),d.add(".navigator_modal_month","font-size: 11px;"),d.add(".navigator_modal_day","color: black;"),d.add(".navigator_modal_weekend","background-color: #f0f0f0;"),d.add(".navigator_modal_dayheader","color: black;"),d.add(".navigator_modal_line","border-bottom: 1px solid #c0c0c0;"),d.add(".navigator_modal_dayother","color: gray;"),d.add(".navigator_modal_todaybox","border: 1px solid red;"),d.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright","border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"),d.add(".navigator_modal_busy","font-weight: bold;"),d.add(".navigator_modal_cell","text-align: center;"),d.add(".navigator_modal_select .navigator_modal_cell_box","background-color: #FFE794; opacity: 0.5;"),d.add(".navigator_modal_title","text-align: center;"),d.add(".navigator_modal_titleleft, .navigator_modal_titleright","text-align: center;"),d.add(".navigator_modal_dayheader","text-align: center;"),d.add(".navigator_modal_weeknumber","text-align: center;"),d.add(".navigator_modal_cell_text","cursor: pointer;"),d.add(".navigator_modal_todaysection","box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"),d.add(".navigator_modal_todaysection_button","cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "),d.commit(),DayPilot.Modal=function(e){this.autoFocus=!0,this.focus=null,this.autoStretch=!0,this.autoStretchFirstLoadOnly=!1,this.className=null,this.theme="modal_default",this.disposeOnClose=!0,this.dragDrop=!0,this.loadingHtml=null,this.maxHeight=null,this.scrollWithPage=!0,this.useIframe=!0,this.zIndex=99999,this.left=null,this.width=600,this.top=20,this.height=200,this.locale=null,this.closed=null,this.onClose=null,this.onClosed=null,this.onShow=null;var t=this;this.id="_"+(new Date).getTime()+"n"+10*Math.random(),this.ic=!1,this.jc=null,this.kc=null,this.showHtml=function(e){if(DayPilot.ModalStatic.displayed(this))throw"This modal dialog is already displayed.";if(this.div||this.lc(),this.Bb(),this.useIframe){var t=function(e,t){return function(){e.setInnerHTML(e.id+"iframe",t)}};window.setTimeout(t(this,e),0)}else e.nodeType?this.div.appendChild(e):this.div.innerHTML=e;this.Bb(),this.nc(),this.oc()},this.showUrl=function(e){if(DayPilot.ModalStatic.displayed(this))throw"This modal dialog is already displayed.";if(this.useIframe){this.div||this.lc();var n=this.loadingHtml;n&&(this.iframe.src="about:blank",this.setInnerHTML(this.id+"iframe",n)),this.re(this.iframe,"load",this.pc),this.iframe.src=e,this.Bb(),this.nc(),this.oc()}else t.qc({"url":e,"success":function(e){var n=e.request.responseText;t.showHtml(n)},"error":function(){t.showHtml("Error loading the modal dialog")}})},this.oc=function(){if("function"==typeof t.onShow){var e={};e.root=t.rc(),e.modal=t,t.onShow(e)}},this.rc=function(){return t.iframe?t.iframe.contentWindow.document:t.div},this.qc=function(e){var t=new XMLHttpRequest;if(t){var n=e.method||"GET",a=e.success||function(){},i=e.error||function(){},r=e.data,o=e.url;t.open(n,o,!0),t.setRequestHeader("Content-type","text/plain"),t.onreadystatechange=function(){if(4===t.readyState)if(200===t.status||304===t.status){var e={};e.request=t,a(e)}else if(i){var n={};n.request=t,i(n)}else window.console&&console.log("HTTP error "+t.status)},4!==t.readyState&&("object"==typeof r&&(r=JSON.stringify(r)),t.send(r))}},this.Bb=function(){delete this.result;var e=window,n=document,a=e.pageYOffset?e.pageYOffset:n.documentElement&&n.documentElement.scrollTop?n.documentElement.scrollTop:n.body.scrollTop;this.theme&&(this.hideDiv.className=this.theme+"_background"),this.zIndex&&(this.hideDiv.style.zIndex=this.zIndex),this.hideDiv.style.display="",window.setTimeout(function(){t.hideDiv&&(t.hideDiv.onclick=function(){t.hide({"backgroundClick":!0})})},500),this.theme?this.div.className=this.theme+"_main":this.div.className="",this.className&&(this.div.className+=" "+this.className),this.left?this.div.style.left=this.left+"px":this.div.style.marginLeft="-"+Math.floor(this.width/2)+"px",this.div.style.position="absolute",this.div.style.boxSizing="content-box",this.div.style.top=a+this.top+"px",this.div.style.width=this.width+"px",this.zIndex&&(this.div.style.zIndex=this.zIndex),this.height&&(this.useIframe||!this.autoStretch?this.div.style.height=this.height+"px":this.div.style.height=""),this.useIframe&&this.height&&(this.iframe.style.height=this.height+"px"),this.div.style.display="",this.sc(),DayPilot.ModalStatic.remove(this),DayPilot.ModalStatic.list.push(this)},this.pc=function(){t.iframe.contentWindow.modal=t,t.autoStretch&&t.stretch()},this.stretch=function(){var e=function(){return t.tc().y},n=function(){return t.tc().x};if(this.useIframe){for(var a=n()-40,i=this.width;i<a&&this.uc();i+=10)this.div.style.width=i+"px",this.div.style.marginLeft="-"+Math.floor(i/2)+"px";for(var r=this.maxHeight||e()-2*this.top,o=this.height;o<r&&this.vc();o+=10)this.iframe.style.height=o+"px",this.div.style.height=o+"px";this.autoStretchFirstLoadOnly&&this.ue(this.iframe,"load",this.pc)}else this.div.style.height=""},this.uc=function(){for(var e=this.iframe.contentWindow.document,t="BackCompat"===e.compatMode?e.body:e.documentElement,n=t.scrollWidth,a=e.body.children,i=0;i<a.length;i++){var r=a[i].offsetLeft+a[i].offsetWidth;n=Math.max(n,r)}return n>t.clientWidth},this.vc=function(){for(var e=this.iframe.contentWindow.document,t="BackCompat"===e.compatMode?e.body:e.documentElement,n=t.scrollHeight,a=e.body.children,i=0;i<a.length;i++){var r=a[i].offsetTop+a[i].offsetHeight;n=Math.max(n,r)}return n>t.clientHeight},this.tc=function(){var e=document;if("CSS1Compat"===e.compatMode&&e.documentElement&&e.documentElement.clientWidth){var t=e.documentElement.clientWidth,n=e.documentElement.clientHeight;return{x:t,y:n}}var t=e.body.clientWidth,n=e.body.clientHeight;return{x:t,y:n}},this.nc=function(){this.ic||(this.re(window,"resize",this.wc),this.re(window,"scroll",this.xc),this.dragDrop&&(this.re(document,"mousemove",this.yc),this.re(document,"mouseup",this.zc)),this.ic=!0)},this.Ac=function(){this.ue(window,"resize",this.wc),this.ue(window,"scroll",this.xc),this.dragDrop&&(this.ue(document,"mousemove",this.yc),this.ue(document,"mouseup",this.zc)),this.ic=!1},this.Bc=function(e){e.target===t.div&&(e.preventDefault(),t.div.style.cursor="move",t.Cc(),t.kc=t.mc(e||window.event),t.jc={x:t.div.offsetLeft,y:t.div.offsetTop})},this.yc=function(e){if(t.kc){var n=t.mc(e),a=n.x-t.kc.x,i=n.y-t.kc.y;t.div.style.marginLeft="0px",t.div.style.top=t.jc.y+i+"px",t.div.style.left=t.jc.x+a+"px"}},this.zc=function(){t.kc&&(t.Dc(),t.div.style.cursor=null,t.kc=null)},this.Cc=function(){if(this.useIframe){var e=document.createElement("div");e.style.backgroundColor="#ffffff",e.style.filter="alpha(opacity=80)",e.style.opacity="0.80",e.style.width="100%",e.style.height=this.height+"px",e.style.position="absolute",e.style.left="0px",e.style.top="0px",this.div.appendChild(e),this.mask=e}},this.Dc=function(){this.useIframe&&(this.div.removeChild(this.mask),this.mask=null)},this.wc=function(){t.Ec(),t.sc()},this.xc=function(){t.Ec()},this.sc=function(){if(!t.left&&t.div){var e=t.div.offsetWidth;t.div.style.marginLeft="-"+Math.floor(e/2)+"px"}},this.Ec=function(){if(t.hideDiv&&t.div&&"none"!==t.hideDiv.style.display&&"none"!==t.div.style.display){var e=t.Fc.scrollY();t.scrollWithPage||(t.div.style.top=e+t.top+"px")}},this.Fc={},this.Fc.container=function(){return t.container||document.body},this.Fc.scrollY=function(){var e=t.Fc.container();return e===document.body?window.pageYOffset?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop:e.scrollTop},this.re=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},this.ue=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)},this.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}},this.abs=function(e){for(var t={x:e.offsetLeft,y:e.offsetTop};e.offsetParent;)e=e.offsetParent,t.x+=e.offsetLeft,t.y+=e.offsetTop;return t},this.lc=function(){
15
15
  var e=t.Fc.container(),n=e===document.body,a=n?"fixed":"absolute",i=document.createElement("div");i.id=this.id+"hide",i.style.position=a,i.style.left="0px",i.style.top="0px",i.style.right="0px",i.style.bottom="0px",i.oncontextmenu=function(){return!1},i.onmousedown=function(){return!1},e.appendChild(i);var r=document.createElement("div");r.id=this.id+"popup",r.style.position=a,r.style.left="50%",r.style.top="0px",r.style.backgroundColor="white",r.style.width="50px",r.style.height="50px",this.dragDrop&&(r.onmousedown=this.Bc),r.addEventListener("keydown",function(e){e.stopPropagation()});var o=null;this.useIframe&&(o=document.createElement("iframe"),o.id=this.id+"iframe",o.name=this.id+"iframe",o.frameBorder="0",o.style.width="100%",o.style.height="50px",r.appendChild(o)),e.appendChild(r),this.div=r,this.iframe=o,this.hideDiv=i},this.setInnerHTML=function(e,n){var a=window.frames[e],i=a.contentWindow||a.document||a.contentDocument;i.document&&(i=i.document),null==i.body&&i.write("<body></body>"),n.nodeType?i.body.appendChild(n):i.body.innerHTML=n,t.autoStretch&&(t.autoStretchFirstLoadOnly&&t.Gc||(t.stretch(),t.Gc=!0))},this.close=function(e){this.result=e,this.hide()},this.closeSerialized=function(){for(var e=t.rc(),n=e.querySelectorAll("input, textarea, select"),a={},i=0;i<n.length;i++){var r=n[i],o=r.name;if(o){var s=r.value;a[o]=s}}t.close(a)},this.hide=function(e){e=e||{};var n={};n.backgroundClick=!!e.backgroundClick,n.result=this.result,n.canceled="undefined"==typeof this.result,n.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof this.onClose&&(this.onClose(n),n.preventDefault.value)||(this.div&&(this.div.style.display="none",this.hideDiv.style.display="none",this.useIframe||(this.div.innerHTML=null)),window.focus(),DayPilot.ModalStatic.remove(this),"function"==typeof this.onClosed?this.onClosed(n):this.closed&&this.closed(),delete this.result,this.disposeOnClose&&(t.Ac(),t.Hc(t.div),t.Hc(t.hideDiv),t.div=null,t.hideDiv=null,t.iframe=null))},this.Hc=function(e){var t;e&&(null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e))},this.Ic=function(){if(e)for(var t in e)this[t]=e[t]},this.Ic()},DayPilot.Modal.alert=function(e,t){t=t||{},t.height=t.height||40,t.useIframe=!1;var n=t.okText||"OK";return DayPilot.getPromise(function(a){t.onClosed=function(e){a(e)};var i=new DayPilot.Modal(t),r=document.createElement("div");r.className=i.theme+"_inner";var o=document.createElement("div");o.className=i.theme+"_content",o.innerHTML=e;var s=document.createElement("div");s.className=i.theme+"_buttons";var l=document.createElement("button");l.innerText=n,l.className=i.theme+"_ok",l.onclick=function(){DayPilot.ModalStatic.close("OK")},s.appendChild(l),r.appendChild(o),r.appendChild(s),i.showHtml(r),i.autoFocus&&l.focus()})},DayPilot.Modal.confirm=function(e,t){t=t||{},t.height=t.height||40,t.useIframe=!1;var n=t.okText||"OK",a=t.cancelText||"Cancel";return DayPilot.getPromise(function(i){t.onClosed=function(e){i(e)};var r=new DayPilot.Modal(t),o=document.createElement("div");o.className=r.theme+"_inner";var s=document.createElement("div");s.className=r.theme+"_content",s.innerHTML=e;var l=document.createElement("div");l.className=r.theme+"_buttons";var d=document.createElement("button");d.innerText=n,d.className=r.theme+"_ok",d.onclick=function(){DayPilot.ModalStatic.close("OK")};var c=document.createTextNode(" "),u=document.createElement("button");u.innerText=a,u.className=r.theme+"_cancel",u.onclick=function(){DayPilot.ModalStatic.close()},l.appendChild(d),l.appendChild(c),l.appendChild(u),o.appendChild(s),o.appendChild(l),r.showHtml(o),r.autoFocus&&d.focus()})},DayPilot.Modal.prompt=function(e,t,n){"object"==typeof t&&(n=t,t=""),n=n||{},n.height=n.height||40,n.useIframe=!1;var a=n.okText||"OK",i=n.cancelText||"Cancel",r=t||"";return DayPilot.getPromise(function(t){n.onClosed=function(e){t(e)};var o=new DayPilot.Modal(n),s=document.createElement("div");s.className=o.theme+"_inner";var l=document.createElement("div");l.className=o.theme+"_content",l.innerHTML=e;var d=document.createElement("div");d.className=o.theme+"_input";var c=document.createElement("input");c.value=r,c.style.width="100%",c.onkeydown=function(e){var t=!1;switch(e.keyCode){case 13:o.close(this.value);break;case 27:o.close();break;default:t=!0}t||(e.preventDefault(),e.stopPropagation())},d.appendChild(c);var u=document.createElement("div");u.className=o.theme+"_buttons";var h=document.createElement("button");h.innerText=a,h.className=o.theme+"_ok",h.onclick=function(){o.close(c.value)};var f=document.createTextNode(" "),v=document.createElement("button");v.innerText=i,v.className=o.theme+"_cancel",v.onclick=function(){o.close()},u.appendChild(h),u.appendChild(f),u.appendChild(v),s.appendChild(l),s.appendChild(d),s.appendChild(u),o.showHtml(s),o.autoFocus&&c.focus()})};var c=function(e){return"[object Array]"===Object.prototype.toString.call(e)};DayPilot.Modal.form=function(n,a,i){if(1===arguments.length){var r=n;if(c(r))a={};else{if("object"!=typeof r)throw"Invalid DayPilot.Modal.form() parameter";a=n,n=[];for(var o in a){var s={};s.name=o,s.id=o,n.push(s)}}}var l={};for(var d in i)l[d]=i[d];l.height=l.height||40,l.useIframe=!1;var u=l.okText||"OK",h=l.cancelText||"Cancel";return DayPilot.getPromise(function(i){l.onClosed=function(t){if(t.result){var n=JSON.parse(JSON.stringify(a));for(var r in t.result)e(n,r,t.result[r]);t.result=n}i(t)};var r=new DayPilot.Modal(l),o=document.createElement("div");o.className=r.theme+"_inner";var s=document.createElement("div");s.className=r.theme+"_input";var d=new t({theme:r.theme,form:n,data:a,zIndex:r.zIndex,locale:r.locale,plugins:r.plugins,onKey:function(e){switch(e.key){case"Enter":d.validate()&&r.close(d.serialize());break;case"Escape":r.close()}},onChange:function(e){"function"==typeof r.onChange&&r.onChange(e)}}),c=d.create();s.append(c);var f=document.createElement("div");f.className=r.theme+"_buttons";var v=document.createElement("button");v.innerText=u,v.className=r.theme+"_ok",l.okDisabled&&(v.disabled=!0),v.onclick=function(){d.validate()&&r.close(d.serialize())};var p=document.createTextNode(" "),m=document.createElement("button");if(m.innerText=h,m.className=r.theme+"_cancel",m.onclick=function(){r.close()},m.onmousedown=function(){d.canceling=!0},f.appendChild(v),f.appendChild(p),f.appendChild(m),o.appendChild(s),o.appendChild(f),r.showHtml(o),r.div.setAttribute("tabindex","-1"),r.div.addEventListener("keydown",function(e){switch(e.keyCode){case 27:r.close();break;case 13:d.validate()&&r.close(d.serialize())}}),r.focus){var g=null;if("object"==typeof r.focus){var y=r.focus.id,b=r.focus.value;g=d.findViewById(y,b)}else"string"==typeof r.focus&&(g=d.findViewById(r.focus));g&&g.focus()}else{var w=d.firstFocusable();r.autoFocus&&w?w.focus():r.div.focus()}})},DayPilot.Modal.close=function(e){var t=DayPilot.Modal.opener();t&&t.close(e)},DayPilot.Modal.stretch=function(){var e=DayPilot.Modal.opener();if(!e)throw"Unable to find the opener DayPilot.Modal instance.";e.stretch()},DayPilot.Modal.closeSerialized=function(){var e=DayPilot.Modal.opener()||DayPilot.ModalStatic.last();e&&e.closeSerialized()},DayPilot.Modal.opener=function(){return"undefined"!=typeof DayPilot&&"undefined"!=typeof DayPilot.ModalStatic&&DayPilot.ModalStatic.list.length>0?DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length-1]:parent&&parent.DayPilot&&parent.DayPilot.ModalStatic&&parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length-1]},"undefined"==typeof DayPilot.getPromise&&(DayPilot.getPromise=function(e){return"undefined"!=typeof Promise?new Promise(e):(DayPilot.Promise=function(e){var t=this;this.then=function(t,n){return t=t||function(){},n=n||function(){},e(t,n),DayPilot.getPromise(e)},this["catch"]=function(n){return t.then(null,n),DayPilot.getPromise(e)}},new DayPilot.Promise(e))}),t.prototype.create=function(){return this.load(),this.render(),this.Mc},t.prototype.render=function(){var e=this;this.Mc=document.createElement("div"),this.Jc.forEach(function(t){e.createView(t)}),this.applyState()},t.prototype.createView=function(e){var t=this.theme,n=this,a=document.createElement("div");if(a.className=t+"_form_item "+t+"_form_item_level"+e.level,e.interactive||"title"!==e.type?a.className+=" "+t+"_form_item_"+e.type:a.className+=" "+t+"_form_title",e.data.cssClass&&(a.className+=" "+e.data.cssClass),!e.isValue){var i=document.createElement("div");i.className=t+"_form_item_label",i.innerText=e.text,a.appendChild(i)}var r=this.createInteractive(e);r.onInput=function(e){if(e=e||{},n.Nc(r,{"debounce":!e.immediate}),"function"==typeof n.onChange){var t={};t.result=n.serialize(),n.onChange(t)}},r.onBlur=function(){n.canceling||n.Nc(r)},r.apply(e),r.Mc=a,r.row=e,r.element&&a.appendChild(r.element),this.j.push(r),this.Mc.appendChild(a)},t.prototype.validate=function(){var e=this,t=!0;return this.j.forEach(function(n){var a=e.Nc(n);t=t&&a}),t},t.prototype.Nc=function(e,t){function n(){e.Oc&&(e.Oc.remove(),e.Oc=null),e.Mc.classList.add(u);var t=document.createElement("div");t.classList.add(h),t.innerText=c.message,e.Oc=t,e.Mc.appendChild(t)}t=t||{};var a=t.debounce,i=t.silent,r=e.row,o=!0,s="function"==typeof r.data.onValidate?r.data.onValidate:null,l="function"==typeof r.data.validate?r.data.validate:null,d=s||l;if(d){var c={};c.valid=!0,c.value=e.save()[r.field],c.message="Error",c.values=this.serialize(),c.result=this.serialize(),d(c);var u=this.theme+"_form_item_invalid",h=this.theme+"_form_item_invalid_message";if(c.valid)clearTimeout(this.Lc[r.field]),e.Oc&&(e.Oc.remove(),e.Oc=null),e.Mc.classList.remove(u);else if(!i)if(a){var f=1e3;clearTimeout(this.Lc[r.field]),this.Lc[r.field]=setTimeout(function(){n()},f)}else n();o=c.valid}return o},t.prototype.load=function(){var e=this;this.form.forEach(function(t){e.processFormItem(t,0)});var t;try{var n=JSON.stringify(this.data);t=i(JSON.parse(n))}catch(e){throw new Error("The 'data' object is not serializable (it may contain circular dependencies): "+e)}for(var a in t)this.setValue(a,t[a])},t.prototype.setValue=function(e,t){this.Jc.forEach(function(n){n.applyValue(e,t)})},t.prototype.updateDependentState=function(){var e=this,t=[!0];(this.Kc?this.Kc:this.Jc).forEach(function(n){var a=e.updateState(n,{enabled:t[n.level]&&!n.data.disabled});a.isValue&&(t[a.level+1]=a.enabled&&a.checked)})},t.prototype.processFormItem=function(e,t){var a=this,i=this.getFieldType(e),r=[];if("radio"===i){if(e.name){var o=new n;o.field=e.id,o.data=e,o.level=t,o.type="label",o.interactive=!1,o.text=e.name,a.Jc.push(o),r.push(o)}e.options.forEach(function(o){var s=new n;s.field=e.id,s.data=o,s.level=t,s.type=i,s.isValue=!0,s.text=o.name,s.resolved=o.id,a.Jc.push(s),r.push(s),o.children&&o.children.forEach(function(e){var n=a.processFormItem(e,t+1);r=r.concat(n)})})}else if("title"===i){var o=new n;o.field=e.id,o.data=e,o.level=t,o.type=i,o.interactive=!1,o.text=e.name,a.Jc.push(o),r.push(o)}else if("image"===i){var o=new n;o.isValue=!0,o.field=e.id,o.data=e,o.level=t,o.type=i,o.interactive=!1,o.text=null,a.Jc.push(o),r.push(o)}else if("html"===i){var o=new n;o.isValue=!0,o.field=e.id,o.data=e,o.level=t,o.type=i,o.interactive=!1,o.text=null,a.Jc.push(o),r.push(o)}else if("scrollable"===i){var o=new n;o.isValue=!0,o.field=e.id,o.data=e,o.level=t,o.type=i,o.interactive=!1,o.text=null,a.Jc.push(o),r.push(o)}else{var o=new n;o.field=e.id,o.data=e,o.level=t,o.type=i,o.text=e.name,o.children=[],a.Jc.push(o),r.push(o),"checkbox"===i&&(o.isValue=!0,o.resolved=!0,e.children&&e.children.forEach(function(e){var n=a.processFormItem(e,t+1);r=r.concat(n)}))}return r},t.prototype.doOnKey=function(e){if("function"==typeof this.onKey){var t={key:e};this.onKey(t)}},t.prototype.createInteractive=function(e){var t=this,n={"label":function(){return new a},"title":function(){return new a},"image":function(){var t=new a,n=document.createElement("img");return n.src=e.data.image,t.element=n,t},"html":function(){var t=new a,n=document.createElement("div");return"string"==typeof e.data.text?n.innerText=e.data.text:"string"==typeof e.data.html&&(n.innerHTML=e.data.html),t.element=n,t},"scrollable":function(){var n=new a,i=document.createElement("div");i.className=t.theme+"_form_item_scrollable_scroll",e.data.height&&(i.style.height=e.data.height+"px");var r=document.createElement("div");return r.className=t.theme+"_form_item_scrollable_scroll_content","string"==typeof e.data.text?r.innerText=e.data.text:"string"==typeof e.data.html&&(r.innerHTML=e.data.html),i.appendChild(r),n.element=i,n},"text":function(){var n=new a;n.apply=function(e){n.row=e;var t=n.element;t.value=e.value,t.disabled=!e.enabled};var i=document.createElement("input");return i.name=e.field,i.type="text",i.autocomplete="off",i.onkeydown=function(e){var n=!1;switch(e.keyCode){case 13:t.doOnKey("Enter");break;case 27:t.doOnKey("Escape");break;default:n=!0}n||(e.preventDefault(),e.stopPropagation())},i.oninput=function(){n.onInput()},i.onblur=function(){n.onBlur()},n.element=i,n.canFocus=function(){return!n.element.disabled},n.focus=function(){n.element.focus(),n.element.setSelectionRange(0,n.element.value.length)},n.save=function(){var t={};return t[e.field]=i.value,t},n},"textarea":function(){var n=new a;n.apply=function(e){n.row=e;var t=n.element;t.value=e.value,t.disabled=!e.enabled};var i=document.createElement("textarea");return i.name=e.field,e.data.height&&(i.style.height=e.data.height+"px"),i.onkeydown=function(e){var n=!1;switch(e.keyCode){case 13:(e.ctrlKey||e.metaKey)&&t.doOnKey("Enter"),n=!1;break;case 27:t.doOnKey("Escape");break;default:n=!0}n||e.stopPropagation()},i.oninput=function(){n.onInput()},i.onblur=function(){n.onBlur()},n.element=i,n.canFocus=function(){return!n.element.disabled},n.focus=function(){n.element.focus(),n.element.setSelectionRange(0,0)},n.save=function(){var t={};return t[e.field]=i.value,t},n},"date":function(){var n=new a;n.apply=function(e){n.row=e;var a=n.element,i=n.picker;e.data.dateFormat&&(i.pattern=e.data.dateFormat);var r=e.data.locale||t.locale;r&&(i.locale=r),a.disabled=!e.enabled,i.date=new DayPilot.Date(e.value);var o=new DayPilot.Date(e.value).toString(e.data.dateFormat||i.pattern,i.locale);a.value=o};var i=document.createElement("input");i.name=e.field;var r=new DayPilot.DatePicker({target:i,theme:"navigator_modal",zIndex:t.zIndex+1,resetTarget:!1,targetAlignment:"left",onTimeRangeSelect:function(){n.onInput({"immediate":!0})}});return i.picker=r,i.className=t.theme+"_input_date",i.type="text",i.onkeydown=function(e){var n=!1;switch(e.keyCode){case 13:r.visible?r.close():t.doOnKey("Enter");break;case 27:r.visible?r.close():t.doOnKey("Escape");break;case 9:r.close(),n=!0;break;default:n=!0}n||(e.preventDefault(),e.stopPropagation())},i.onfocus=function(){r.show()},i.onclick=function(){r.show()},i.oninput=function(){n.onInput()},i.onblur=function(){n.onBlur()},n.element=i,n.picker=r,n.canFocus=function(){return!n.element.disabled},n.focus=function(){n.element.focus()},n.save=function(){var t=r.date?r.date.toString():null,n={};return n[e.field]=t,n},n},"time":function(){return t.Pc(e)},"datetime":function(){return t.Qc(e)},"select":function(){var t=new a;t.apply=function(e){t.row=e;var n=t.element;n.value=e.value,n.disabled=!e.enabled};var n=document.createElement("select");return n.name=e.field,e.data.options&&e.data.options.forEach&&e.data.options.forEach(function(e){var t=document.createElement("option");t.innerText=e.name||e.id,t.value=e.id,t.Rc=e.id,n.appendChild(t)}),n.onchange=function(){t.onInput({"immediate":!0})},n.onblur=function(){t.onBlur()},t.element=n,t.canFocus=function(){return!t.element.disabled},t.focus=function(){t.element.focus()},t.save=function(){var t=null,a=n.options[n.selectedIndex];a&&"undefined"!=typeof a.Rc&&(t=a.Rc);var i={};return i[e.field]=t,i},t},"searchable":function(){var n=new a;n.apply=function(e){n.row=e;var t=n.searchable;t.disabled=!e.enabled,t.select(e.value)};var i=new r({data:e.data.options||[],name:e.field,theme:t.theme+"_form_item_searchable",listZIndex:t.zIndex+1,onSelect:function(e){e.ui&&n.onInput({"immediate":!0})}}),o=i.create();return n.element=o,n.searchable=i,n.canFocus=function(){return!n.searchable.disabled},n.focus=function(){n.searchable.focus()},n.save=function(){var t=i.selected&&i.selected.id,n={};return n[e.field]=t,n},n},"radio":function(){var n=new a;n.apply=function(e){n.row=e;var t=n.radio;t.checked=e.checked,t.disabled=!e.enabled};var i=document.createElement("label"),r=document.createElement("input");r.type="radio",r.name=e.field,r.Rc=e.resolved,r.onchange=function(){var e=n.row;t.findRowsByField(e.field).forEach(function(e){t.updateState(e,{checked:!1})}),t.updateState(e,{checked:!0}),t.applyState(),n.onInput({"immediate":!0})},r.onblur=function(){n.onBlur()},i.appendChild(r);var o=document.createTextNode(e.text);return i.append(o),n.element=i,n.radio=r,n.canFocus=function(){return!1},n.focus=function(){n.radio.focus()},n.save=function(){if(!r.checked)return{};var t=r.Rc,n={};return n[e.field]=t,n},n},"checkbox":function(){var n=new a;n.apply=function(e){n.row=e;var t=n.checkbox;t.checked=e.checked,t.disabled=!e.enabled};var i=document.createElement("label"),r=document.createElement("input");r.type="checkbox",r.name=e.field,r.Rc=e.resolved,r.onchange=function(){var e=n.row;t.updateState(e,{checked:this.checked}),t.applyState(),n.onInput({"immediate":!0})},r.onblur=function(){n.onBlur()},i.appendChild(r);var o=document.createTextNode(e.text);return i.append(o),n.element=i,n.checkbox=r,n.canFocus=function(){return!1},n.focus=function(){n.checkbox.focus()},n.save=function(){var t=r.checked,n={};return n[e.field]=t,n},n},"table":function(){var n=new a;n.apply=function(e){n.row=e;var t=n.table;t.disabled=!e.enabled,t.load(e.value||[])};var i=new o({name:e.field,form:t,theme:t.theme+"_form_item_tabular",item:e.data,onInput:function(){n.onInput()}}),r=i.create();return n.element=r,n.table=i,n.canFocus=function(){return!1},n.focus=function(){n.table.focus()},n.save=function(){var t=i.save(),n={};return n[e.field]=t,n},n}};return t.plugins&&t.plugins[e.type]?t.plugins[e.type](e):n[e.type]()},t.prototype.Pc=function(e){var t=this,n=new a;n.apply=function(e){n.row=e;var t=n.searchable;t.disabled=!e.enabled,t.select(e.value)};var i=[],o=e.data.timeInterval||15;[1,5,10,15,20,30,60].includes(o)||(o=15);for(var s=60/o,l=e.data.locale||t.locale,d=DayPilot.Locale.find(l)||DayPilot.Locale.US,c=DayPilot.Date.today(),u=0;u<24*s;u++){var h=c.addMinutes(o*u),f={};f.name=h.toString(e.data.timeFormat||d.timePattern,d),f.id=h.toString("HH:mm"),i.push(f)}var v=new r({data:i,name:e.field,theme:t.theme+"_form_item_time",listZIndex:t.zIndex+1,strategy:"startsWith",onSelect:function(e){e.ui&&n.onInput({"immediate":!0})}}),p=v.create();return n.element=p,n.searchable=v,n.canFocus=function(){return!n.searchable.disabled},n.focus=function(){n.searchable.focus()},n.save=function(){var t=v.selected&&v.selected.id,n={};return n[e.field]=t,n},n},t.prototype.Qc=function(e){var t=this,n=new a;n.apply=function(e){n.row=e;var a=n.searchable;a.disabled=!e.enabled;var i=new DayPilot.Date(e.value).toString("HH:mm");a.select(i);var r=n.dateInput,o=n.picker;e.data.dateFormat&&(o.pattern=e.data.dateFormat);var s=e.data.locale||t.locale;if(s){var l=DayPilot.Locale.find(s)||DayPilot.Locale.US;o.locale=s,o.pattern=l.datePattern}r.disabled=!e.enabled,o.date=new DayPilot.Date(e.value);var d=new DayPilot.Date(e.value).toString(e.data.dateFormat||o.pattern,o.locale);r.value=d};var i=function(){var a=document.createElement("input");a.name=e.field;var i=new DayPilot.DatePicker({target:a,theme:"navigator_modal",zIndex:t.zIndex+1,resetTarget:!1,targetAlignment:"left",onTimeRangeSelect:function(){n.onInput({"immediate":!0})}});return a.picker=i,a.className=t.theme+"_input_date",a.type="text",a.onkeydown=function(e){var n=!1;switch(e.keyCode){case 13:i.visible?i.close():t.doOnKey("Enter");break;case 27:i.visible?i.close():t.doOnKey("Escape");break;case 9:i.close(),n=!0;break;default:n=!0}n||(e.preventDefault(),e.stopPropagation())},a.onfocus=function(){i.show()},a.onclick=function(){i.show()},a.oninput=function(){n.onInput()},a.onblur=function(){n.onBlur()},n.dateInput=a,n.picker=i,a}(),o=function(){var a=[],i=e.data.timeInterval||15;[1,5,10,15,20,30,60].includes(i)||(i=15);for(var o=60/i,s=e.data.locale||t.locale,l=DayPilot.Locale.find(s)||DayPilot.Locale.US,d=DayPilot.Date.today(),c=0;c<24*o;c++){var u=d.addMinutes(i*c),h={};h.name=u.toString(e.data.timeFormat||l.timePattern,l),h.id=u.toString("HH:mm"),a.push(h)}var f=new r({data:a,name:e.field,theme:t.theme+"_form_item_time",listZIndex:t.zIndex+1,strategy:"startsWith",onSelect:function(e){e.ui&&n.onInput({"immediate":!0})}});return n.searchable=f,f.create()}(),s=document.createElement("div");return s.className=t.theme+"_form_item_datetime_parent",s.appendChild(i),s.appendChild(o),n.element=s,n.canFocus=function(){return!n.searchable.disabled},n.focus=function(){n.dateInput.focus()},n.save=function(){var t=n.searchable.selected&&n.searchable.selected.id,a=n.picker.date?n.picker.date.toString():null,i=new DayPilot.Date(a).getDatePart(),r=DayPilot.Date.parse(i.toString("yyyy-dd-MM ")+t,"yyyy-dd-MM HH:mm"),o={};return o[e.field]=r,o},n},t.prototype.findRowsByField=function(e){return this.Jc.filter(function(t){return t.field===e})},t.prototype.findViewById=function(e,t){return this.j.find(function(n){return n.row.field===e&&("radio"!==n.row.type||n.row.resolved===t)})},t.prototype.firstFocusable=function(){return this.j.find(function(e){return e.canFocus&&e.canFocus()})},t.prototype.updateState=function(e,t){var n=this.Kc?this.Kc:this.Jc,a=n.indexOf(e);return this.Kc=n.map(function(n){if(n!==e)return n;if(e.propsEqual(t))return e;var a=e.clone();for(var i in t)a[i]=t[i];return a}),this.Kc[a]},t.prototype.updateInteractive=function(e){var t=this.Kc.indexOf(e);this.j[t].apply(e)},t.prototype.applyState=function(){var e=this;if(this.updateDependentState(),this.Kc){this.Kc.filter(function(t,n){return e.Jc[n]!==t}).forEach(function(t){e.updateInteractive(t)}),this.Jc=this.Kc,this.Kc=null}},t.prototype.getFieldType=function(e){return["text","date","select","searchable","radio","checkbox","table","title","image","html","textarea","scrollable","time","datetime"].indexOf(e.type)!==-1?e.type:e.type&&this.plugins&&this.plugins[e.type]?e.type:e.image?"image":e.html||e.text?"html":e.id?e.options?"searchable":e.dateFormat?"date":e.columns?"table":"text":"title"},t.prototype.serialize=function(){var e={};return this.j.forEach(function(t){var n=t.save();for(var a in n)e[a]=n[a]}),e},n.prototype.clone=function(){var e=new n;for(var t in this)"id"!==t&&(e[t]=this[t]);return e},n.prototype.propsEqual=function(e){for(var t in e)if(this[t]!==e[t])return!1;return!0},n.prototype.guid=function(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return""+e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},n.prototype.applyValue=function(e,t){this.field===e&&(this.value=t,this.isValue&&t===this.resolved&&(this.checked=!0))},DayPilot.Modal.Experimental={},DayPilot.Modal.Experimental.Form=t,r.prototype.select=function(e){return this.Tc=this.data.find(function(t){return t.id===e}),this.$c(!1),this},r.prototype.create=function(){function e(e){var n=l.strategy;"includes"!==l.strategy&&"startsWith"!==l.strategy&&(n="includes"),e=e||n||"includes",h.style.display="",h.style.top=v.offsetHeight+"px",h.style.left="0px",h.style.width=v.offsetWidth+"px",h.innerHTML="",h.addEventListener("mousedown",function(e){e.preventDefault()}),l.Uc=null,l.s=[];var i=null;l.data.forEach(function(n){var r=n.name||n.id;if("includes"===e){if(r.toLowerCase().indexOf(v.value.toLowerCase())===-1)return}else if("startsWith"===e&&0!==r.toLowerCase().indexOf(v.value.toLowerCase()))return;var o=document.createElement("div");o.className=l.theme+"_list_item",o.innerText=r,o.item=n,n===l.Tc&&(l.Uc=o),i||(i=o),o.addEventListener("mousedown",function(e){a(o),e.preventDefault()}),o.addEventListener("mousemove",function(){l.Uc!==o&&(l.Uc=o,t({dontScroll:!0}))}),h.appendChild(o),l.s.push(o)}),l.Uc||(l.Uc=i),t()}function t(e){e=e||{};var t=!e.dontScroll;document.querySelectorAll("."+l.theme+"_list_item_highlight").forEach(function(e){e.className=e.className.replace(l.theme+"_list_item_highlight","")}),l.Uc&&(l.Uc.className+=" "+l.theme+"_list_item_highlight",t&&!n(l.Uc,h)&&l.Uc.scrollIntoView())}function n(e,t){var n=e.getBoundingClientRect(),a=t.getBoundingClientRect();return n.top>=a.top&&n.bottom<=a.bottom}function a(e){var t=e.item;l.Tc=t,l.$c(!0),r(),o()}function i(){l.Zc()}function r(){l.t()}function o(){l.Vc=!0,v.setAttribute("readonly","readonly"),v.focus()}function s(){l.Vc=!1,v.removeAttribute("readonly"),v.select(),e("all")}var l=this,d=this,c=document.createElement("div");c.className=this.theme+"_main",c.style.position="relative";var u=document.createElement("div");u.className=this.theme+"_icon",u.style.position="absolute",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.width="20px",u.addEventListener("mousedown",function(e){e.preventDefault(),l.Vc?(l.focus(),s()):(i(),o())});var h=document.createElement("div");h.className=this.theme+"_list",h.style.display="none",h.style.position="absolute",h.style.zIndex=this.listZIndex;var f=document.createElement("input");f.type="hidden",f.name=this.name,f.searchable=d,this.Yc=f;var v=document.createElement("input");return v.type="text",v.className=this.theme+"_input",v.disabled=this.Sc,v.addEventListener("click",function(){s()}),v.addEventListener("focus",function(){e("all")}),v.addEventListener("input",function(){e()}),v.addEventListener("blur",function(){v.removeAttribute("readonly"),i()}),v.addEventListener("keydown",function(e){if(l.Vc){if("Enter"===e.key)return;if("Esc"===e.key||"Escape"===e.key)return;s()}if("ArrowDown"===e.key){var n=d.s.indexOf(d.Uc);n+1<d.s.length&&(d.Uc=d.s[n+1]),t()}else if("ArrowUp"===e.key){var n=d.s.indexOf(d.Uc);n-1>=0&&(d.Uc=d.s[n-1]),t()}else"Enter"===e.key?l.Uc?(e.stopPropagation(),a(l.Uc)):(e.stopPropagation(),i(),o()):"Esc"!==e.key&&"Escape"!==e.key||(e.stopPropagation(),i(),o())}),this.Wc=v,this.Xc=h,this.Tc||(this.Tc=this.data[0],this.Tc&&(v.value=this.Tc.name)),c.appendChild(v),c.appendChild(u),c.appendChild(f),c.appendChild(h),c},r.prototype.Zc=function(){this.t(),this.Tc?this.Wc.value=this.Tc.name:(this.Wc.value="",this.$c(!0))},r.prototype.focus=function(){this.Vc=!0,this.Wc.setAttribute("readonly","readonly"),this.Wc.focus(),this.Zc()},r.prototype.t=function(){this.Xc.style.display="none"},r.prototype.$c=function(e){if(this.Yc.value=this.selected?this.selected.id:null,this.Tc?this.Wc.value=this.Tc.name:this.Wc.value="","function"==typeof this.onSelect){var t={control:this,ui:e};this.onSelect(t)}},o.prototype.create=function(){var e=this,t=document.createElement("div");t.className=this.theme+"_main",t.style.position="relative";var n=document.createElement("input");n.type="hidden",n.name=e.name,n.table=this,t.appendChild(n);var a=document.createElement("div");a.className=this.theme+"_table";var i=this.ad();a.appendChild(i);var r=e.bd({});r.spacer=!0;var o=this.cd(r);o.classList.add(e.theme+"_spacer"),a.appendChild(o);var s=document.createElement("div");s.className=e.theme+"_tbody",a.appendChild(s),t.appendChild(a);var l=document.createElement("div");t.appendChild(l),this.nav.body=s,this.nav.table=a,this.nav.main=t,this.nav.after=l;var d=document.createElement("div"),c=document.createElement("span");return c.className=this.theme+"_plus",c.addEventListener("click",function(){if(!e.disabled){var t=e.item.onNewRow,n={};if("function"==typeof t){var a={};a.result=e.form.serialize(),a.value={},t(a),n=a.value}var i=e.bd(n);e.Jc.push(i),e.db(),e.dd()}}),this.nav.plus=c,d.appendChild(c),t.appendChild(d),t},o.prototype.ad=function(){var e=this,t=document.createElement("div");return t.classList.add(this.theme+"_row"),t.classList.add(this.theme+"_header"),this.item.columns.forEach(function(n){var a=document.createElement("div");a.classList.add(e.theme+"_cell"),a.innerText=n.name,t.appendChild(a)}),t},o.prototype.ed=function(){var e=this.item.max||0;return!!(e&&this.Jc.length>=e)},o.prototype.save=function(){var e=this,t=[];return e.Jc.forEach(function(e){var n={};e.cells.forEach(function(e){n[e.id]=e.value}),t.push(n)}),t},o.prototype.load=function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new Error("Array expected");this.data=e,this.fd(),this.db()},o.prototype.gd=function(){this.disabled?this.nav.main.classList.add(this.theme+"_disabled"):this.nav.main.classList.remove(this.theme+"_disabled"),this.ed()?this.nav.plus.classList.add(this.theme+"_plus_max"):this.nav.plus.classList.remove(this.theme+"_plus_max")},o.prototype.fd=function(){var e=this;this.Jc=[],this.data.forEach(function(t){var n=e.bd(t);e.Jc.push(n)})},o.prototype.hd=function(e){var t=this,n=t.Jc.indexOf(e);t.Jc.splice(n,1)},o.prototype.bd=function(e){var t=this,n={};return n.data=e,n.cells=[],t.item.columns.forEach(function(a){var i=a.id,r=e[i],o=t.jd(a);if("undefined"==typeof r)if("text"===o)r="";else if("number"===o)r=0;else if("select"===o){var s=a.options;r=s&&s[0].id}var l={};l.id=i,l.value=r,l.type=o,l.data=a,n.cells.push(l)}),n},o.prototype.jd=function(e){var t=e.type;return t||(t=e.options?"select":"text"),t},o.prototype.db=function(){var e=this;if(this.nav.body.innerHTML="",this.nav.after.innerHTML="",this.Jc.forEach(function(t){var n=e.cd(t);e.nav.body.appendChild(n)}),0===this.Jc.length){var t=e.kd();e.nav.after.appendChild(t)}this.gd()},o.prototype.kd=function(){var e=document.createElement("div");return e.className=this.theme+"_empty",e},o.prototype.cd=function(e){var t=this,n=document.createElement("div");n.className=t.theme+"_row",e.cells.forEach(function(a){var i=document.createElement("div");i.className=t.theme+"_cell";var r=t.ld(a);if(e.spacer){var o=document.createElement("div");o.style.height="0px",o.style.overflow="hidden",o.appendChild(r),i.appendChild(o)}else i.appendChild(r);n.appendChild(i)});var a=document.createElement("div");a.classList.add(t.theme+"_cell"),a.classList.add(t.theme+"_rowaction");var i=document.createElement("span");return i.className=this.theme+"_delete",i.addEventListener("click",function(){t.disabled||(t.hd(e),t.db(),t.dd())}),e.spacer||a.appendChild(i),n.appendChild(a),n},o.prototype.dd=function(){var e=this;if("function"==typeof e.onInput){var t={};e.onInput(t)}},o.prototype.ld=function(e){var t=this,n=e.type;if("text"===n||"number"===n){var a=document.createElement("input");return a.type=n,t.disabled&&(a.disabled=!0),e.value&&(a.value=e.value),a.addEventListener("keyup",function(){"number"===n?e.value=Number(this.value):e.value=this.value,t.dd()}),a}if("select"===n){var i=document.createElement("select");return t.disabled&&(i.disabled=!0),e.data.options.forEach(function(t){var n=document.createElement("option");n.innerText=t.name,n.value=t.id,n.Rc=t.id,i.appendChild(n),e.value===t.id&&n.setAttribute("selected",!0)}),i.addEventListener("change",function(){var n=i.options[i.selectedIndex];n&&"undefined"!=typeof n.Rc&&(e.value=n.Rc),t.dd()}),i}throw new Error("Unsupported item type: "+n)},o.prototype.focus=function(){}}}(DayPilot),function(DayPilot){if("undefined"==typeof DayPilot.Month||!DayPilot.Month.events){var e={},t=DayPilot.Util.isVueVNode;e.Month=function(n,a){this.v="${v}",this.nav={};var i=this;this.id=n,this.isMonth=!0,this.api=2,this.backendUrl=null,this.cellHeaderHeight=24,this.cellHeight=100,this.cellMarginBottom=0,this.contextMenu=null,this.cssClassPrefix="month_default",this.eventBarVisible=!0,this.eventBorderRadius=null,this.eventHeight=25,this.eventsLoadMethod="GET",this.headerHeight=30,this.hideUntilInit=!0,this.lineSpace=1,this.locale="en-us",this.showToolTip=!0,this.startDate=new DayPilot.Date,this.theme=null,this.visible=!0,this.weekStarts="Auto",this.width="100%",this.xssProtection="Enabled",this.afterRender=function(){},this.cellHeaderClickHandling="Enabled",this.eventClickHandling="Enabled",
16
16
  this.eventDeleteHandling="Disabled",this.eventMoveHandling="Update",this.eventResizeHandling="Update",this.eventRightClickHandling="ContextMenu",this.headerClickHandling="Enabled",this.timeRangeSelectedHandling="Enabled",this.onCellHeaderClick=null,this.onCellHeaderClicked=null,this.onEventClick=null,this.onEventClicked=null,this.onEventDelete=null,this.onEventDeleted=null,this.onEventMove=null,this.onEventMoved=null,this.onEventResize=null,this.onEventResized=null,this.onEventRightClick=null,this.onEventRightClicked=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.onBeforeEventRender=null,this.onBeforeCellRender=null,this.cellEvents=[],this.elements={},this.elements.events=[],this.cache={},this.R=!1,this.S={};var r=this.S;this.Y=function(e){var t=JSON.parse(e);return t.CallBackRedirect?void(document.location.href=t.CallBackRedirect):"None"===t.UpdateType?void i.fireAfterRenderDetached(t.CallBackData,!0):(i.events.list=t.Events,"Full"===t.UpdateType&&(i.startDate=t.StartDate,i.timeFormat=t.TimeFormat?t.TimeFormat:i.timeFormat,"undefined"!=typeof t.WeekStarts&&(i.weekStarts=t.WeekStarts),i.hashes=t.Hashes),i._(),i.md(),i.ia(),"Full"===t.UpdateType&&(i.nd(),i.od()),i.na(),i.show(),i.oa(),void i.fireAfterRenderDetached(t.CallBackData,!0))},this.fireAfterRenderDetached=function(e,t){var n=function(e,t){return function(){i.afterRender&&i.afterRender(e,t)}};window.setTimeout(n(e,t),0)},this.lineHeight=function(){return this.eventHeight+this.lineSpace},this.events={},this.events.add=function(e){var t=null;if(e instanceof DayPilot.Event)t=e.data;else{if("object"!=typeof e)throw"DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";t=e}i.events.list||(i.events.list=[]),i.events.list.push(t),i.update(),i.xa.notify()},this.events.find=function(e){if(!i.events.list)return null;if("function"==typeof e){for(var t=e,n=0;n<i.events.list.length;n++){var a=new DayPilot.Event(i.events.list[n],i);if(t(a))return a}return null}for(var n=0;n<i.events.list.length;n++){var r=i.events.list[n];if(r.id===e)return new DayPilot.Event(r,i)}return null},this.events.update=function(e){if(e instanceof DayPilot.Event)e.commit();else if("object"==typeof e){var t=i.events.find(e.id);if(t){var n=DayPilot.indexOf(i.events.list,t.data);i.events.list.splice(n,1,e)}}i.update(),i.xa.notify()},this.events.remove=function(e){var t;if(e instanceof DayPilot.Event)t=e.data;else if("object"==typeof e){var n=i.events.find(e.id);n&&(t=n.data)}else if("string"==typeof e||"number"==typeof e){var n=i.events.find(e);n&&(t=n.data)}var a=DayPilot.indexOf(i.events.list,t);i.events.list.splice(a,1),i.update(),i.xa.notify()},this.events.load=function(e,t,n){var a=function(e){var t={};t.exception=e.exception,t.request=e.request,"function"==typeof n&&n(t)},r=function(e){var n,r=e.request;try{n=JSON.parse(r.responseText)}catch(e){var o={};return o.exception=e,void a(o)}if(DayPilot.isArray(n)){var s={};if(s.preventDefault=function(){this.preventDefault.value=!0},s.data=n,"function"==typeof t&&t(s),s.preventDefault.value)return;i.events.list=n,i.Ra&&i.update()}};if(i.eventsLoadMethod&&"POST"===i.eventsLoadMethod.toUpperCase())DayPilot.Http.ajax({"method":"POST","data":{"start":i.visibleStart().toString(),"end":i.visibleEnd().toString()},"url":e,"success":r,"error":a});else{var o=e,s="start="+i.visibleStart().toString()+"&end="+i.visibleEnd().toString();o+=o.indexOf("?")>-1?"&"+s:"?"+s,DayPilot.Http.ajax({"method":"GET","url":o,"success":r,"error":a})}},this.events.forRange=function(e,t){e=new DayPilot.Date(e),t=new DayPilot.Date(t);var n=(i.events.list||[]).map(function(e){return new DayPilot.Event(e)});return n.sort(i.Kb),n.filter(function(n){var a=n.start(),i=n.end();return a===i&&a===e||DayPilot.Util.overlaps(e,t,a,i)})},this.update=function(e){if(i.Db(e),this.Ra){if(i.R)throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");if(this.cells){i._(),i.md(),i.ia(),i.nd(),i.od(),i.na(),i.z(),i.oa(),this.visible?this.show():this.hide()}}},this.Fb=null,this.Db=function(e){if(e){var t={"events":{"preInit":function(){var e=this.data||[];DayPilot.isArray(e.list)?i.events.list=e.list:i.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 i[n]=e[n]}},this.Gb=function(){var e=this.Fb;for(var t in e){var n=e[t];n.postInit&&n.postInit()}},this.Ib={},this.Ib.events=[],this.Jb=function(e){var t=this.Ib.events,n=this.events.list[e],a={};for(var r in n)a[r]=n[r];if("function"==typeof this.onBeforeEventRender){var o={};o.control=i,o.data=a,this.onBeforeEventRender(o)}t[e]=a},this.ia=function(){var e=this.events.list;if(e){if(!DayPilot.isArray(e))throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: "+typeof e);if("function"==typeof this.onBeforeEventRender)for(var t=0;t<e.length;t++)this.Jb(t);for(var n=0;n<e.length;n++){var a=e[n];if("object"!=typeof a)throw new DayPilot.Exception("Event data item must be an object");if(!a.start)throw new DayPilot.Exception("Event data item must specify 'start' property");if(!a.end)throw new DayPilot.Exception("Event data item must specify 'end' property");var i=new DayPilot.Date(a.start),r=new DayPilot.Date(a.end);if(!(i.getTime()>r.getTime()))for(var t=0;t<this.rows.length;t++){var o=this.rows[t],s=new DayPilot.Event(a,this);o.belongsHere(s)&&(o.events.push(s),"function"==typeof this.onBeforeEventRender&&(s.cache=this.Ib.events[n]))}}for(var l=0;l<this.rows.length;l++){var o=this.rows[l];o.events.sort(this.Kb);for(var d=0;d<this.rows[l].events.length;d++){var c=o.events[d],u=o.getStartColumn(c),h=o.getWidth(c);o.putIntoLine(c,u,h,l)}}}},this._=function(){for(var e=0;e<this.elements.events.length;e++){var t=this.elements.events[e];i.Va(t)}this.elements.events=[]},this.Va=function(e){!function(){var n=e.domArgs;if(e.domArgs=null,n&&"function"==typeof i.onBeforeEventDomRemove&&i.onBeforeEventDomRemove(n),n&&"function"==typeof i.onBeforeEventDomAdd){var a=n&&n.Wa;if(a){i.Ya.Xa&&t(n.element)&&(i.Ya._a=!0,i.Ya.ab(a),i.Ya._a=!1)}}}(),e.event=null,e.click=null,e.parentNode.removeChild(e)},this.oa=function(){this.pd()},this.pd=function(){this.elements.events=[];for(var e=0;e<this.rows.length;e++)for(var t=this.rows[e],n=0;n<t.lines.length;n++)for(var a=t.lines[n],i=0;i<a.length;i++)this.bb(a[i])},this.Kb=function(e,t){if(!(e&&t&&e.start&&t.start))return 0;var n=e.start().getTime()-t.start().getTime();return 0!==n?n:t.end().getTime()-e.end().getTime()},this.drawShadow=function(t,n,a,r,o){o||(o=0);var s=r;this.shadow={},this.shadow.list=[],this.shadow.start={x:t,y:n},this.shadow.width=r;var l=7*n+t-o;l<0&&(s+=l,t=0,n=0);for(var d=o;d>=7;)n--,d-=7;if(d>t){d>t+(7-this.getColCount())?(n--,t=t+7-d):(s=s-d+t,t=0)}else t-=d;n<0&&(n=0,t=0);var c=null;e.resizingEvent?c="w-resize":e.movingEvent&&(c="move"),this.nav.top.style.cursor=c;var u=i.eventBorderRadius;for("number"==typeof u&&(u+="px");s>0&&n<this.rows.length;){var h=Math.min(this.getColCount()-t,s),f=this.rows[n],v=this.getRowTop(n),p=f.getHeight(),m=document.createElement("div");m.setAttribute("unselectable","on"),m.style.position="absolute",m.style.left=this.getCellWidth()*t+"%",m.style.width=this.getCellWidth()*h+"%",m.style.top=v+"px",m.style.height=p+"px",m.style.cursor=c,m.classList.add(i.M("_shadow"));var g=document.createElement("div");g.setAttribute("unselectable","on"),m.appendChild(g),g.style.position="absolute",g.style.top="0px",g.style.right="0px",g.style.left="0px",g.style.bottom="0px",g.classList.add(i.M("_shadow_inner")),u&&(s===r&&(m.style.borderTopLeftRadius=u,m.style.borderBottomLeftRadius=u,g.style.borderTopLeftRadius=u,g.style.borderBottomLeftRadius=u),s<=h&&(m.style.borderTopRightRadius=u,m.style.borderBottomRightRadius=u,g.style.borderTopRightRadius=u,g.style.borderBottomRightRadius=u)),this.nav.top.appendChild(m),this.shadow.list.push(m),s-=h+7-this.getColCount(),t=0,n++}},this.clearShadow=function(){if(this.shadow){for(var e=0;e<this.shadow.list.length;e++)this.nav.top.removeChild(this.shadow.list[e]);this.shadow=null,this.nav.top.style.cursor=""}},this.getEventTop=function(e,t){for(var n=this.headerHeight,a=0;a<e;a++)n+=this.rows[a].getHeight();return n+=this.cellHeaderHeight,n+=t*this.lineHeight()},this.getDateFromCell=function(e,t){return this.firstDate.addDays(7*t+e)},this.bb=function(n){var a=n.cache||n.data,r=a.borderRadius||i.eventBorderRadius;"number"==typeof r&&(r+="px");var o=n.part.row,s=n.part.line,l=n.part.colStart,d=n.part.colWidth,c=this.getCellWidth()*l,u=this.getCellWidth()*d,h=this.getEventTop(o,s),f=document.createElement("div");f.setAttribute("unselectable","on"),f.style.height=this.eventHeight+"px",f.style.overflow="hidden",f.className=this.M("_event"),a.cssClass&&DayPilot.Util.addClass(f,a.cssClass),n.part.startsHere||DayPilot.Util.addClass(f,this.M("_event_continueleft")),n.part.endsHere||DayPilot.Util.addClass(f,this.M("_event_continueright")),f.event=n,f.style.width=u+"%",f.style.position="absolute",f.style.left=c+"%",f.style.top=h+"px",this.showToolTip&&n.client.toolTip()&&(f.title=n.client.toolTip()),f.onclick=i.wa,f.oncontextmenu=i.qd,f.onmousedown=function(t){t=t||window.event;var a=t.which||t.button;if(t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),1===a)if(e.movingEvent=null,"w-resize"===this.style.cursor||"e-resize"===this.style.cursor){var r={};r.start={},r.start.x=l,r.start.y=o,r.event=f.event,r.width=DayPilot.DateUtil.daysSpan(r.event.start(),r.event.end())+1,r.direction=this.style.cursor,e.resizingEvent=r}else if("move"===this.style.cursor||n.client.moveEnabled()){i.clearShadow();var c=DayPilot.mo3(i.nav.top,t);if(!c)return;var u=i.getCellBelowPoint(c.x,c.y),h=DayPilot.DateUtil.daysDiff(n.start(),i.rows[o].start),v=7*u.y+u.x-(7*o+l);h&&(v+=h);var p={};p.start={},p.start.x=l,p.start.y=o,p.start.line=s,p.offset=i.eventMoveToPosition?0:v,p.colWidth=d,p.event=f.event,p.coords=c,e.movingEvent=p}},f.onmousemove=function(t){if("undefined"!=typeof e&&!e.movingEvent&&!e.resizingEvent){var a=DayPilot.mo3(f,t);if(a){f.deleteIcon&&(f.deleteIcon.style.display="");var i=6;a.x<=i&&n.client.resizeEnabled()?n.part.startsHere?(f.style.cursor="w-resize",f.dpBorder="left"):f.style.cursor="not-allowed":f.clientWidth-a.x<=i&&n.client.resizeEnabled()?n.part.endsHere?(f.style.cursor="e-resize",f.dpBorder="right"):f.style.cursor="not-allowed":n.client.clickEnabled()?f.style.cursor="pointer":f.style.cursor="default"}}},f.onmouseleave=function(){f.deleteIcon&&(f.deleteIcon.style.display="none"),f.style.cursor=""},f.onmouseenter=function(){f.deleteIcon&&(f.deleteIcon.style.display="")};var v=document.createElement("div");if(v.setAttribute("unselectable","on"),v.className=this.M("_event_inner"),"darker"===a.borderColor&&a.backColor?v.style.borderColor=DayPilot.ColorUtil.darker(a.backColor,2):v.style.borderColor=a.borderColor,a.backColor&&(v.style.background=a.backColor),a.fontColor&&(v.style.color=a.fontColor),r&&(f.style.borderRadius=r,v.style.borderRadius=r),f.appendChild(v),n.client.barVisible()){var p=document.createElement("div");p.setAttribute("unselectable","on"),p.className=this.M("_event_bar"),p.style.position="absolute";var m=document.createElement("div");m.setAttribute("unselectable","on"),m.className=this.M("_event_bar_inner"),m.style.top="0%",m.style.height="100%",a.barColor&&(m.style.backgroundColor=a.barColor),p.appendChild(m),f.appendChild(p)}if(n.client.deleteEnabled()){var g=Math.floor(i.eventHeight/2-9),y=document.createElement("div");y.style.position="absolute",y.style.right="2px",y.style.top=g+"px",y.style.width="18px",y.style.height="18px",y.className=i.M("_event_delete"),y.onmousedown=function(e){e.stopPropagation()},y.onclick=function(e){e.stopPropagation();var t=this.parentNode.event;t&&i.za(t)},y.style.display="none",f.deleteIcon=y,f.appendChild(y)}var b=a.areas?DayPilot.Areas.copy(a.areas):[];if(DayPilot.Areas.attach(f,n,{"areas":b}),"function"==typeof i.onAfterEventRender){var w={};w.e=f.event,w.div=f,i.onAfterEventRender(w)}!function(){var e={};if(e.control=i,e.e=n,e.element=null,f.domArgs=e,"function"==typeof i.onBeforeEventDomAdd&&i.onBeforeEventDomAdd(e),e.element){var a=v;if(a){e.Wa=a;if(t(e.element)){if(!i.Ya.Xa)throw new DayPilot.Exception("Can't reach Vue");i.Ya._a=!0,i.Ya.eb(e.element,a,{"style":{"flexGrow":1}}),i.Ya._a=!1}else a.appendChild(e.element)}}else v.innerHTML=n.client.innerHTML()}(),this.elements.events.push(f),this.nav.events.appendChild(f)},this.lastVisibleDayOfMonth=function(){return this.startDate.lastDayOfMonth()},this.md=function(){"string"==typeof this.startDate&&(this.startDate=new DayPilot.Date(this.startDate)),this.startDate=this.startDate.firstDayOfMonth(),this.firstDate=this.startDate.firstDayOfWeek(this.getWeekStart());var e=this.lastVisibleDayOfMonth(),t=DayPilot.DateUtil.daysDiff(this.firstDate,e)+1,n=Math.ceil(t/7);this.days=7*n,this.rows=[];for(var a=function(e){var t={};t.start=r.firstDate.addDays(7*e),t.end=t.start.addDays(r.getColCount()),t.events=[],t.lines=[],t.index=e,t.minHeight=r.cellHeight,t.calendar=r,t.belongsHere=function(e){return e.end().getTime()===e.start().getTime()&&e.start().getTime()===this.start.getTime()||!(e.end().getTime()<=this.start.getTime()||e.start().getTime()>=this.end.getTime())},t.getPartStart=function(e){return DayPilot.DateUtil.max(this.start,e.start())},t.getPartEnd=function(e){return DayPilot.DateUtil.min(this.end,e.end())},t.getStartColumn=function(e){var t=this.getPartStart(e);return DayPilot.DateUtil.daysDiff(this.start,t)},t.getWidth=function(e){return DayPilot.DateUtil.daysSpan(this.getPartStart(e),this.getPartEnd(e))+1},t.putIntoLine=function(e,n,a,i){for(var r=t,o=0;o<this.lines.length;o++){var s=this.lines[o];if(s.isFree(n,a))return s.addEvent(e,n,a,i,o),o}var l=[];return l.isFree=function(e,t){for(var n=!0,a=0;a<this.length;a++)e+t-1<this[a].part.colStart||e>this[a].part.colStart+this[a].part.colWidth-1||(n=!1);return n},l.addEvent=function(e,t,n,a,i){e.part.colStart=t,e.part.colWidth=n,e.part.row=a,e.part.line=i,e.part.startsHere=r.start.getTime()<=e.start().getTime(),e.part.endsHere=r.end.getTime()>=e.end().getTime(),this.push(e)},l.addEvent(e,n,a,i,this.lines.length),this.lines.push(l),this.lines.length-1},t.getHeight=function(){return Math.max(this.lines.length*i.lineHeight()+i.cellHeaderHeight+i.cellMarginBottom,this.calendar.cellHeight)},r.rows.push(t)},r=this,o=0;o<n;o++)a(o);this.endDate=this.firstDate.addDays(7*n)},this.visibleStart=function(){return i.firstDate},this.visibleEnd=function(){return i.endDate},this.getHeight=function(){for(var e=this.headerHeight,t=0;t<this.rows.length;t++)e+=this.rows[t].getHeight();return e},this.getWidth=function(e,t){return 7*t.y+t.x-(7*e.y+e.x)+1},this.getMinCoords=function(e,t){return 7*e.y+e.x<7*t.y+t.x?e:t},this.M=function(e){var t=this.theme||this.cssClassPrefix;return t?t+e:""},this.fb=function(){var t=this.nav.top;t.setAttribute("unselectable","on"),t.style.MozUserSelect="none",t.style.KhtmlUserSelect="none",t.style.WebkitUserSelect="none",t.style.position="relative",this.width&&(t.style.width=this.width),t.style.height=this.getHeight()+"px",t.onselectstart=function(){return!1},this.hideUntilInit&&(t.style.visibility="hidden"),this.visible||(t.style.display="none"),t.className=this.M("_main");var n=document.createElement("div");this.nav.cells=n,n.style.position="absolute",n.style.left="0px",n.style.right="0px",n.setAttribute("unselectable","on"),t.appendChild(n);var a=document.createElement("div");this.nav.events=a,a.style.position="absolute",a.style.left="0px",a.style.right="0px",a.setAttribute("unselectable","on"),t.appendChild(a),t.onmousemove=function(t){if(e.resizingEvent){var n=DayPilot.mo3(i.nav.top,t);if(!n)return;var a=i.getCellBelowPoint(n.x,n.y);i.clearShadow();var r=e.resizingEvent,o=void 0,s=void 0;if("w-resize"===r.direction){s=a;var l=r.event.end();l.getDatePart()===l&&(l=l.addDays(-1));var d=i.getCellFromDate(l);o=i.getWidth(a,d)}else s=i.getCellFromDate(r.event.start()),o=i.getWidth(s,a);o<1&&(o=1),i.drawShadow(s.x,s.y,0,o)}else if(e.movingEvent){var n=DayPilot.mo3(i.nav.top,t);if(!n)return;if(n.x===e.movingEvent.coords.x&&n.y===e.movingEvent.coords.y)return;var c=3,u=Math.abs(n.x-e.movingEvent.coords.x)+Math.abs(n.y-e.movingEvent.coords.y);if(u<=c)return;var a=i.getCellBelowPoint(n.x,n.y);i.clearShadow();var h=e.movingEvent.event,f=e.movingEvent.offset,o=i.cellMode?1:DayPilot.DateUtil.daysSpan(h.start(),h.end())+1;o<1&&(o=1),i.drawShadow(a.x,a.y,0,o,f,h)}else if(e.timeRangeSelecting){var n=DayPilot.mo3(i.nav.top,t);if(!n)return;var a=i.getCellBelowPoint(n.x,n.y);i.clearShadow();var s=e.timeRangeSelecting,v=7*s.y+s.x,p=7*a.y+a.x,o=Math.abs(p-v)+1;o<1&&(o=1);var m=v<p?s:a;e.timeRangeSelecting.from={x:m.x,y:m.y},e.timeRangeSelecting.width=o,e.timeRangeSelecting.moved=!0,i.drawShadow(m.x,m.y,0,o,0,null)}}},this.na=function(){this.nav.top.style.height=this.getHeight()+"px";for(var e=0;e<this.cells.length;e++)for(var t=0;t<this.cells[e].length;t++)this.cells[e][t].style.top=this.getRowTop(t)+"px",this.cells[e][t].style.height=this.rows[t].getHeight()+"px"},this.getCellBelowPoint=function(e,t){for(var n=Math.floor(this.nav.top.clientWidth/this.getColCount()),a=Math.min(Math.floor(e/n),this.getColCount()-1),i=null,r=this.headerHeight,o=0,s=0;s<this.rows.length;s++){var l=r;if(r+=this.rows[s].getHeight(),t<r){o=t-l,i=s;break}}null===i&&(i=this.rows.length-1);var d={};return d.x=a,d.y=i,d.relativeY=o,d},this.getCellFromDate=function(e){for(var t=DayPilot.DateUtil.daysDiff(this.firstDate,e),n={x:0,y:0};t>=7;)n.y++,t-=7;return n.x=t,n},this.od=function(){var e=document.createElement("div");e.oncontextmenu=function(){return!1},this.nav.cells.appendChild(e),this.cells=[];for(var t=0;t<this.getColCount();t++){this.cells[t]=[];var n=t+this.getWeekStart();n>6&&(n-=7);var a={};a.header={dayOfWeek:n,html:r.locale().dayNames[n],backColor:null,cssClass:null},"function"==typeof i.onBeforeHeaderRender&&i.onBeforeHeaderRender(a);var o=document.createElement("div");o.setAttribute("unselectable","on"),o.style.position="absolute",o.style.left=this.getCellWidth()*t+"%",o.style.width=this.getCellWidth()+"%",o.style.top="0px",o.style.height=this.headerHeight+"px",o.className=this.M("_header");var s=document.createElement("div");s.setAttribute("unselectable","on"),s.style.position="absolute",s.style.top="0px",s.style.bottom="0px",s.style.left="0px",s.style.right="0px",s.className=this.M("_header_inner"),s.innerHTML=a.header.html,o.appendChild(s),a.header.cssClass&&DayPilot.Util.addClass(o,a.header.cssClass),a.header.backColor&&(s.style.background=a.header.backColor),e.appendChild(o);for(var l=0;l<this.rows.length;l++)this.rd(t,l,e)}},this.nd=function(){for(var e=0;e<this.cells.length;e++)for(var t=0;t<this.cells[e].length;t++){var n=i.cells[e][t];i.qb(n)}this.nav.cells.innerHTML=""},this.qb=function(e){!function(){var n=e.domArgs;if(e.domArgs=null,n&&"function"==typeof i.onBeforeCellDomRemove&&i.onBeforeCellDomRemove(n),n&&"function"==typeof i.onBeforeCellDomAdd){var a=n&&n.Wa;if(a){i.Ya.Xa&&t(n.element)&&(i.Ya._a=!0,i.Ya.ab(a),i.Ya._a=!1)}}}(),e.onclick=null},this.va=function(){return 2===i.api},this.rd=function(n,a,o){var s=this.rows[a],l=this.firstDate.addDays(7*a+n),d=l.getDay(),c=null;c=1===d?r.locale().monthNames[l.getMonth()]+" "+d:""+d;var u=!i.isWeekend(l),h={start:l,end:l.addDays(1),properties:{cssClass:null,headerHtml:c,backColor:null,business:u,html:null}},f={};f.control=i,f.cell=h,"function"==typeof i.onBeforeCellRender&&i.onBeforeCellRender(f);var v=f.cell.properties,p=document.createElement("div");if(p.setAttribute("unselectable","on"),p.style.position="absolute",p.style.cursor="default",p.style.left=this.getCellWidth()*n+"%",p.style.width=this.getCellWidth()+"%",p.style.top=this.getRowTop(a)+"px",p.style.height=s.getHeight()+"px",p.className=this.M("_cell"),v.business){var m=this.M("_cell_business");DayPilot.Util.addClass(p,m)}v.cssClass&&DayPilot.Util.addClass(p,v.cssClass);var g=document.createElement("div");g.setAttribute("unselectable","on"),p.appendChild(g),g.style.position="absolute",g.style.left="0px",g.style.right="0px",g.style.top="0px",g.style.bottom="0px",g.className=this.M("_cell_inner"),v.backColor&&(g.style.backgroundColor=f.cell.properties.backColor),p.onmousedown=function(){"Disabled"!==i.timeRangeSelectedHandling&&(i.clearShadow(),e.timeRangeSelecting={"root":i,"x":n,"y":a,"from":{x:n,y:a},"width":1})},p.onclick=function(){var e=function(e){var t=new DayPilot.Date(e),n=t.addDays(1);i.P(t,n)};if("Disabled"!==i.timeRangeSelectedHandling)return void e(l)};var y=document.createElement("div");if(y.setAttribute("unselectable","on"),y.style.height=this.cellHeaderHeight+"px",y.className=this.M("_cell_header"),y.onclick=function(e){if("Enabled"===i.cellHeaderClickHandling){e.stopPropagation();var t={};t.control=i,t.start=l,t.end=l.addDays(1),t.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof i.onCellHeaderClick&&(i.onCellHeaderClick(t),t.preventDefault.value)||"function"==typeof i.onCellHeaderClicked&&i.onCellHeaderClicked(t)}},y.innerHTML=v.headerHtml,g.appendChild(y),v.html){var b=document.createElement("div");b.style.height=s.getHeight()-this.cellHeaderHeight+"px",b.style.overflow="hidden",b.innerHTML=v.html,g.appendChild(b)}!function(){if("function"==typeof i.onBeforeCellDomAdd||"function"==typeof i.onBeforeCellDomRemove){var e={};if(e.control=i,e.cell=h,e.element=null,p.domArgs=e,"function"==typeof i.onBeforeCellDomAdd&&i.onBeforeCellDomAdd(e),e.element){var n=g;if(n){e.Wa=n;if(t(e.element)){if(!i.Ya.Xa)throw new DayPilot.Exception("Can't reach Vue");i.Ya._a=!0,i.Ya.eb(e.element,n),i.Ya._a=!1}else n.appendChild(e.element)}}}}(),this.cells[n][a]=p,o.appendChild(p)},this.getWeekStart=function(){if("Auto"===i.weekStarts){var e=r.locale();return e?e.weekStarts:0}return i.weekStarts||0},this.getColCount=function(){return 7},this.getCellWidth=function(){return 14.285},this.getRowTop=function(e){for(var t=this.headerHeight,n=0;n<e;n++)t+=this.rows[n].getHeight();return t},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.ajaxError)},this.X=function(e){i.Y(e.responseText)},this.V=function(){var e={};return e.control="dpm",e.id=this.id,e.v=this.v,e.visibleStart=new DayPilot.Date(this.firstDate),e.visibleEnd=e.visibleStart.addDays(this.days),e.startDate=i.startDate,e.timeFormat=this.timeFormat,e.weekStarts=this.weekStarts,e},this.eventClickCallBack=function(e,t){this.W("EventClick",t,e)},this.wa=function(t){e.movingEvent=null,e.resizingEvent=null;var n=t.currentTarget;t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),i.eventClickSingle(n,t)},this.eventClickSingle=function(e,t){var n=e.event;if(n&&n.client.clickEnabled())if(i.va()){var a={};if(a.e=n,a.control=i,a.div=e,a.originalEvent=t,a.meta=t.metaKey,a.ctrl=t.ctrlKey,a.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof i.onEventClick&&(i.xa.apply(function(){i.onEventClick(a)}),a.preventDefault.value))return;switch(i.eventClickHandling){case"CallBack":i.eventClickCallBack(n);break;case"ContextMenu":var r=n.client.contextMenu();r?r.show(n):i.contextMenu&&i.contextMenu.show(n)}"function"==typeof i.onEventClicked&&i.xa.apply(function(){i.onEventClicked(a)})}else switch(i.eventClickHandling){case"CallBack":i.eventClickCallBack(n);break;case"JavaScript":i.onEventClick(n)}},this.qd=function(e){var t=e.currentTarget;return i.ya(t.event),!1},this.ya=function(e){if(this.event=e,!e.client.rightClickEnabled())return!1;var t={};if(t.e=e,t.preventDefault=function(){this.preventDefault.value=!0},"function"!=typeof i.onEventRightClick||(i.onEventRightClick(t),!t.preventDefault.value)){switch(i.eventRightClickHandling){case"ContextMenu":var n=e.client.contextMenu();n?n.show(e):i.contextMenu&&i.contextMenu.show(this.event)}return"function"==typeof i.onEventRightClicked&&i.onEventRightClicked(t),!1}},this.za=function(e){if(i.va()){var t={};if(t.e=e,t.control=i,t.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof i.onEventDelete&&(i.xa.apply(function(){i.onEventDelete(t)}),t.preventDefault.value))return;switch(i.eventDeleteHandling){case"CallBack":i.eventDeleteCallBack(e);break;case"PostBack":i.eventDeletePostBack(e);break;case"Update":i.events.remove(e)}"function"==typeof i.onEventDeleted&&i.xa.apply(function(){i.onEventDeleted(t)})}else switch(i.eventDeleteHandling){case"PostBack":i.eventDeletePostBack(e);break;case"CallBack":i.eventDeleteCallBack(e);break;case"JavaScript":i.onEventDelete(e)}},this.eventDeleteCallBack=function(e,t){this.W("EventDelete",t,e)},this.eventDeletePostBack=function(e,t){this.U("EventDelete",t,e)},this.eventMoveCallBack=function(e,t,n,a,i){if(!t)throw"newStart is null";if(!n)throw"newEnd is null";var r={};r.e=e,r.newStart=t,r.newEnd=n,r.position=i,this.W("EventMove",a,r)},this.N=function(e,t,n,a,r){var o=e.start().getTimePart(),s=e.end().getDatePart();s.getTime()!==e.end().getTime()&&(s=s.addDays(1));var l=DayPilot.DateUtil.diff(e.end(),s),d=this.getDateFromCell(t,n);d=d.addDays(-a);var c=DayPilot.DateUtil.daysSpan(e.start(),e.end())+1,u=d.addDays(c),h=d.addTime(o),f=u.addTime(l);if(i.va()){var v={};if(v.e=e,v.control=i,v.newStart=h,v.newEnd=f,v.ctrl=r.ctrlKey,v.shift=r.shiftKey,v.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof i.onEventMove&&(i.xa.apply(function(){i.onEventMove(v)}),v.preventDefault.value))return;switch(i.eventMoveHandling){case"CallBack":i.eventMoveCallBack(e,h,f);break;case"Update":e.start(h),e.end(f),i.events.update(e)}"function"==typeof i.onEventMoved&&i.xa.apply(function(){i.onEventMoved(v)})}else switch(i.eventMoveHandling){case"CallBack":i.eventMoveCallBack(e,h,f);break;case"JavaScript":i.onEventMove(e,h,f)}},this.eventResizeCallBack=function(e,t,n,a){if(!t)throw"newStart is null";if(!n)throw"newEnd is null";var i={};i.e=e,i.newStart=t,i.newEnd=n,this.W("EventResize",a,i)},this.L=function(e,t,n){var a=e.start().getTimePart(),r=e.end().getDatePart();r.getTime()!==e.end().getTime()&&(r=r.addDays(1));var o=DayPilot.DateUtil.diff(e.end(),r),s=this.getDateFromCell(t.x,t.y),l=s.addDays(n),d=s.addTime(a),c=l.addTime(o);if(i.va()){var u={};if(u.e=e,u.control=i,u.newStart=d,u.newEnd=c,u.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof i.onEventResize&&(i.xa.apply(function(){i.onEventResize(u)}),u.preventDefault.value))return;switch(i.eventResizeHandling){case"CallBack":i.eventResizeCallBack(e,d,c);break;case"Update":e.start(d),e.end(c),i.events.update(e)}"function"==typeof i.onEventResized&&i.xa.apply(function(){i.onEventResized(u)})}else switch(i.eventResizeHandling){case"CallBack":i.eventResizeCallBack(e,d,c);break;case"JavaScript":i.onEventResize(e,d,c)}},this.timeRangeSelectedCallBack=function(e,t,n){var a={};a.start=e,a.end=t,this.W("TimeRangeSelected",n,a)},this.P=function(e,t){if(this.va()){var n={};if(n.control=i,n.start=e,n.end=t,n.preventDefault=function(){this.preventDefault.value=!0},"function"==typeof i.onTimeRangeSelect&&(i.xa.apply(function(){i.onTimeRangeSelect(n)}),n.preventDefault.value))return;switch(i.timeRangeSelectedHandling){case"CallBack":i.timeRangeSelectedCallBack(e,t)}"function"==typeof i.onTimeRangeSelected&&i.xa.apply(function(){i.onTimeRangeSelected(n)})}else switch(i.timeRangeSelectedHandling){case"CallBack":i.timeRangeSelectedCallBack(e,t);break;case"JavaScript":i.onTimeRangeSelected(e,t)}},this.xa={},this.xa.scope=null,this.xa.notify=function(){i.xa.scope&&i.xa.scope["$apply"]()},this.xa.apply=function(e){e()},this.clearSelection=function(){i.clearShadow()},this.commandCallBack=function(e,t){var n={};n.command=e,this.W("Command",t,n)},this.isWeekend=function(e){return e=new DayPilot.Date(e),0===e.dayOfWeek()||6===e.dayOfWeek()},this.S.locale=function(){var e=DayPilot.Locale.find(i.locale);return e?e:DayPilot.Locale.US},this.S.ea=function(){return"Disabled"!==i.xssProtection},this.debug=function(e){this.debuggingEnabled&&(i.debugMessages||(i.debugMessages=[]),i.debugMessages.push(e),"undefined"!=typeof console&&console.log(e))},this.dispose=function(){var e=i;e.R||(e.R=!0,e.nd(),e._(),e.nav.top.removeAttribute("style"),e.nav.top.removeAttribute("class"),e.nav.top.innerHTML="",e.nav.top.dp=null,e.nav.top.onmousemove=null,e.nav.top=null)},this.disposed=function(){return this.R},this.Ab=function(){e.globalHandlers||(e.globalHandlers=!0,DayPilot.re(document,"mouseup",e.gMouseUp))},this.loadFromServer=function(){return!(!this.backendUrl&&"function"!=typeof WebForm_DoCallback)&&("undefined"==typeof i.events.list||!i.events.list)},this.z=function(){"hidden"===this.nav.top.style.visibility&&(this.nav.top.style.visibility="visible")},this.show=function(){i.visible=!0,i.nav.top.style.display=""},this.hide=function(){i.visible=!1,i.nav.top.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.Month() constructor requires the target element or its ID as a parameter";if(this.nav.top=document.getElementById(this.id),!this.nav.top)throw"DayPilot.Month: The placeholder element not found: '"+this.id+"'."}},this.Ob=function(){this.md(),this.fb(),this.od(),this.Ab(),this.W("Init")},this.jb=function(e,t){return i.S.ea()?DayPilot.Util.escapeTextHtml(e,t):DayPilot.Util.isNullOrUndefined(t)?DayPilot.Util.isNullOrUndefined(e)?"":e:t},this.Ya={},this.Ya.Xa=null,this.Ya.sd=function(e,t,n){var a=i.Ya.Xa;if("function"==typeof a.createVNode&&"function"==typeof a.render){var r=a.createVNode(e,n);a.render(r,t)}},this.Ya.eb=function(e,t,n){var a=i.Ya.Xa;if("function"==typeof a.render){var r=e;DayPilot.isArray(e)&&(r=a.h("div",n,e)),a.render(r,t)}},this.Ya.ab=function(e){var t=i.Ya.Xa;"function"==typeof t.render&&t.render(null,e)},this.internal={},this.internal.loadOptions=this.Db,this.internal.xssTextHtml=i.jb,this.internal.upd=function(e){i.update(e)},this.internal.enableVue=function(e){i.Ya.Xa=e},this.internal.vueRef=function(){return i.Ya.Xa},this.internal.vueRendering=function(){return i.Ya._a},this.init=function(){return this.Hb(),this.loadFromServer()?void this.Ob():(this.md(),this.ia(),this.fb(),this.od(),this.z(),this.oa(),this.Ab(),this.fireAfterRenderDetached(null,!1),this.Ra=!0,this)},this.Init=this.init,Object.defineProperty(this,"durationBarVisible",{get:function(){return i.eventBarVisible}}),this.Db(a)},e.gMouseUp=function(t){if(e.movingEvent){var n=e.movingEvent;if(!n.event)return;if(!n.event.calendar)return;if(!n.event.calendar.shadow)return;if(!n.event.calendar.shadow.start)return;var a=e.movingEvent.event.calendar,i=e.movingEvent.event,r=a.shadow.start,o=a.shadow.position,s=e.movingEvent.offset;return a.clearShadow(),e.movingEvent=null,a.N(i,r.x,r.y,s,t,o),t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),e.movingEvent=null,!1}if(e.resizingEvent){var n=e.resizingEvent;if(!n.event)return;if(!n.event.calendar)return;if(!n.event.calendar.shadow)return;if(!n.event.calendar.shadow.start)return;var a=e.resizingEvent.event.calendar,i=e.resizingEvent.event,r=a.shadow.start,l=a.shadow.width;return a.clearShadow(),e.resizingEvent=null,a.L(i,r,l),t.cancelBubble=!0,e.resizingEvent=null,!1}if(e.timeRangeSelecting){if(e.timeRangeSelecting.moved){var d=e.timeRangeSelecting,a=d.root,r=new DayPilot.Date(a.getDateFromCell(d.from.x,d.from.y)),c=r.addDays(d.width);a.P(r,c)}e.timeRangeSelecting=null}},DayPilot.Month=e.Month,"undefined"!=typeof jQuery&&!function(e){e.fn.daypilotMonth=function(e){var t=null,n=this.each(function(){if(!this.daypilot){var n=new DayPilot.Month(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("daypilotMonth",["$parse",function(e){return{"restrict":"E","template":"<div></div>","replace":!0,"link":function(t,n,a){var i=new DayPilot.Month(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)0===s.indexOf("on")&&!function(n){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daypilot/daypilot-lite-javascript",
3
- "version": "5.8.0-sandbox.828",
3
+ "version": "5.8.0",
4
4
  "description": "DayPilot Lite for JavaScript",
5
5
  "homepage": "https://javascript.daypilot.org/",
6
6
  "author": "Annpoint, s.r.o.",