",document.body.appendChild(t);var n=window.getComputedStyle(t.querySelector(".dhx_body")).getPropertyValue("box-sizing");document.body.removeChild(t),(a=!("border-box"!==n))||setTimeout(function(){a=void 0},1e3)}function i(){if(!e._is_material_skin()&&!e._border_box_events()){var i=a;a=void 0,t=void 0,i!==n()&&e.$container&&e.getState().mode&&e.setCurrentView()}}e._skin_settings={fix_tab_position:[1,0],use_select_menu_space:[1,0],wide_form:[1,0],hour_size_px:[44,42],displayed_event_color:["#ff4a4a","ffc5ab"],displayed_event_text_color:["#ffef80","7e2727"]},e._skin_xy={lightbox_additional_height:[90,50],nav_height:[59,22],bar_height:[24,20]},e._is_material_skin=function(){return e.skin?(e.skin+"").indexOf("material")>-1:function(){if(void 0===t){var e=document.createElement("div");e.style.position="absolute",e.style.left="-9999px",e.style.top="-9999px",e.innerHTML="
",document.body.appendChild(e);var a=window.getComputedStyle(e.querySelector(".dhx_cal_scale_placeholder")),n=a.getPropertyValue("position");t="absolute"===n,setTimeout(function(){t=null,e&&e.parentNode&&e.parentNode.removeChild(e)},500)}return t}()},window.addEventListener("DOMContentLoaded",i),window.addEventListener("load",i),e._border_box_events=function(){return n()},e._configure=function(e,t,a){for(var n in t)void 0===e[n]&&(e[n]=t[n][a])},e._skin_init=function(){if(!e.skin)for(var t=document.getElementsByTagName("link"),a=0;a
"+e.getHours()+" "+t+""}),!i){var _=e.config.minicalendar;_&&(_.padding=14),e.templates.event_bar_date=function(t,a,n){return"• "+e.templates.event_date(t)+" "},e.attachEvent("onTemplatesReady",function(){var t=e.date.date_to_str("%d");e.templates._old_month_day||(e.templates._old_month_day=e.templates.month_day);var a=e.templates._old_month_day;if(e.templates.month_day=function(n){if("month"==this._mode){var i=t(n);return 1==n.getDate()&&(i=e.locale.date.month_full[n.getMonth()]+" "+i),+n==+e.date.date_part(this._currentDate())&&(i=e.locale.labels.dhx_cal_today_button+" "+i),i}return a.call(this,n)},e.config.fix_tab_position){var n=e._els.dhx_cal_navline[0].getElementsByTagName("div"),i=null,r=211,o=[14,75,136],s=14;e._is_material_skin()&&(o=[16,103,192],r=294,s=-1);for(var _=0;_-1&&r.click?r.click():(n(a,!0),i=!0)}27==t&&(n(a,!1),i=!0)}return i?(e.preventDefault&&e.preventDefault(),!(e.cancelBubble=!0)):void 0}}function r(t){r.cover||(r.cover=document.createElement("div"),e.event(r.cover,"keydown",i),r.cover.className="dhx_modal_cover",document.body.appendChild(r.cover)),r.cover.style.display=t?"inline-block":"none"}function o(t,a,n){var i=e._waiAria.messageButtonAttrString(t),r=(a||"").toLowerCase().replace(/ /g,"_"),o="scheduler_".concat(r,"_button dhtmlx_").concat(r,"_button");return"")}function s(t){v.area||(v.area=document.createElement("div"),v.area.className="scheduler_message_area dhtmlx_message_area",v.area.style[v.position]="5px",document.body.appendChild(v.area)),v.hide(t.id);var a=document.createElement("div");return a.innerHTML=""+t.text+"
",a.className="scheduler-info dhtmlx-info scheduler-"+t.type+" dhtmlx-"+t.type,e.event(a,"click",function(){v.hide(t.id),t=null}),e._waiAria.messageInfoAttr(a),"bottom"==v.position&&v.area.firstChild?v.area.insertBefore(a,v.area.firstChild):v.area.appendChild(a),t.expire>0&&(v.timers[t.id]=window.setTimeout(function(){v&&v.hide(t.id)},t.expire)),v.pull[t.id]=a,a=null,t.id}function _(){for(var e=[].slice.apply(arguments,[0]),t=0;t"),c+='";var D=this._render_v_bar(t,h-i+1,_,i,20*x.length+26-2,"","",k,!0);D.style.left=h-i+1,this._els.dhx_cal_data[0].appendChild(D),this._rendered.push(D)}this.config.drag_highlight&&this._drag_id==t.id&&this.highlightEventPosition(t)}}},e._render_v_bar=function(t,a,n,i,r,o,s,_,d){var l=document.createElement("div"),c=t.id,u=d?"dhx_cal_event dhx_cal_select_menu":"dhx_cal_event",h=e.getState();h.drag_id==t.id&&(u+=" dhx_cal_event_drag"),h.select_id==t.id&&(u+=" dhx_cal_event_selected");var f=e.templates.event_class(t.start_date,t.end_date,t);f&&(u=u+" "+f),this.config.cascade_event_display&&(u+=" dhx_cal_event_cascade");var p=t.color?"background-color:"+t.color+";":"",v=t.textColor?"color:"+t.textColor+";":"",g=e._border_box_events(),m=i-2,y=g?m:i-4,b=g?m:i-6,x=g?m:i-(this._quirks?4:14),k=g?m-2:i-8,w=g?r-this.xy.event_header_height-1:r-(this._quirks?20:30)+1,E='
';l.innerHTML=E;var S=l.cloneNode(!0).firstChild;if(!d&&e.renderEvent(S,t,i,r,s,_))return S;S=l.firstChild;var D='';D+='
'+s+"
",D+='
'+_+"
";var N="dhx_event_resize dhx_footer";return(d||!1===t._drag_resize)&&(N="dhx_resize_denied "+N),D+='
',S.innerHTML=D,S},e.renderEvent=function(){return!1},e.locate_holder=function(e){return"day"==this._mode?this._els.dhx_cal_data[0].firstChild:this._els.dhx_cal_data[0].childNodes[e]},e.locate_holder_day=function(e,t){var a=Math.floor((this._correct_shift(e,1)-this._min_date)/864e5);return t&&this.date.time_part(e)&&a++,a},e._get_dnd_order=function(e,t,a){if(!this._drag_event)return e;this._drag_event._orig_sorder?e=this._drag_event._orig_sorder:this._drag_event._orig_sorder=e;for(var n=t*e;n+t>a;)e--,n-=t;return e=Math.max(e,0)},e._get_event_bar_pos=function(t){var a=this.config.rtl,n=this._colsS,i=n[t._sday],r=n[t._eday];a&&(i=n[n.col_length]-n[t._eday]+n[0],r=n[n.col_length]-n[t._sday]+n[0]),r==i&&(r=n[t._eday+1]);var o=this.xy.bar_height,s=t._sorder;if(t.id==this._drag_id){var _=n.heights[t._sweek+1]-n.heights[t._sweek]-this.xy.month_head_height;s=e._get_dnd_order(s,o,_)}var d=s*o;return{x:i,x2:r,y:n.heights[t._sweek]+(n.height?this.xy.month_scale_height+2:2)+d}},e.render_event_bar=function(t){var a=this._rendered_location,n=this._get_event_bar_pos(t),i=n.y,r=n.x,o=n.x2,s="";if(o){var _=e.config.resize_month_events&&"month"==this._mode&&(!t._timed||e.config.resize_month_timed),d=document.createElement("div"),l=t.hasOwnProperty("_first_chunk")&&t._first_chunk,c=t.hasOwnProperty("_last_chunk")&&t._last_chunk,u=_&&(t._timed||l),h=_&&(t._timed||c),f=!0,p="dhx_cal_event_clear";t._timed&&!_||(f=!1,p="dhx_cal_event_line"),l&&(p+=" dhx_cal_event_line_start"),c&&(p+=" dhx_cal_event_line_end"),u&&(s+="
"),h&&(s+="
");var v=e.templates.event_class(t.start_date,t.end_date,t);v&&(p+=" "+v);var g=t.color?"background:"+t.color+";":"",m=t.textColor?"color:"+t.textColor+";":"",y=["position:absolute","top:"+i+"px","left:"+r+"px","width:"+(o-r-3-(f?1:0))+"px",m,g,t._text_style||""].join(";"),b="
";_&&(b+=s),"month"==e.getState().mode&&(t=e.getEvent(t.id)),t._timed&&(b+=e.templates.event_bar_date(t.start_date,t.end_date,t)),b+=e.templates.event_bar_text(t.start_date,t.end_date,t)+"
",b+="
",d.innerHTML=b,this._rendered.push(d.firstChild),a.appendChild(d.firstChild)}},e._locate_event=function(e){for(var t=null;e&&!t&&e.getAttribute;)t=e.getAttribute(this.config.event_attribute),e=e.parentNode;return t},e.edit=function(e){this._edit_id!=e&&(this.editStop(!1,e),this._edit_id=e,this.updateEvent(e))},e.editStop=function(e,t){if(!t||this._edit_id!=t){var a=this.getEvent(this._edit_id);a&&(e&&(a.text=this._editor.value),this._edit_id=null,this._editor=null,this.updateEvent(a.id),this._edit_stop_event(a,e))}},e._edit_stop_event=function(e,t){this._new_event?(t?this.callEvent("onEventAdded",[e.id,e]):e&&this.deleteEvent(e.id,!0),this._new_event=null):t&&this.callEvent("onEventChanged",[e.id,e])},e.getEvents=function(e,t){var a=[];for(var n in this._events){var i=this._events[n];i&&(!e&&!t||i.start_date