Event Organiser - Version 3.6.1

Version Description

4th January 2018

  • bugfix: Bug where static value is used for calendar breakpoint on initial load
  • bugfix: Ensure venue tooltip is moved to fit within viewport
  • bugfix: Bug where clicking on the venue tooltip could cause the map to overflow the container
Download this release

Release Info

Developer jenkinspress
Plugin Icon 128x128 Event Organiser
Version 3.6.1
Comparing to
See all releases

Code changes from version 3.6.0 to 3.6.1

Files changed (100) hide show
  1. event-organiser.php +2 -2
  2. js/admin-calendar.min.js +1 -1
  3. js/edit-event-controller.min.js +1 -1
  4. js/event-manager.min.js +1 -1
  5. js/event.min.js +1 -1
  6. js/frontend.js +3 -4
  7. js/frontend.min.js +2 -2
  8. js/fullcalendar.min.js +1 -1
  9. js/jquery-ui-eo-timepicker.min.js +1 -1
  10. js/moment.min.js +1 -1
  11. js/qtip2.js +2122 -2
  12. js/time-picker.min.js +1 -1
  13. js/venue-admin.min.js +1 -1
  14. js/venue-util.min.js +1 -1
  15. languages/eventorganiser-af.mo +0 -0
  16. languages/eventorganiser-af.po +1 -1
  17. languages/eventorganiser-ar.mo +0 -0
  18. languages/eventorganiser-ar.po +1 -1
  19. languages/eventorganiser-bg_BG.mo +0 -0
  20. languages/eventorganiser-bg_BG.po +1 -1
  21. languages/eventorganiser-ca.mo +0 -0
  22. languages/eventorganiser-ca.po +1 -1
  23. languages/eventorganiser-cs_CZ.mo +0 -0
  24. languages/eventorganiser-cs_CZ.po +1 -1
  25. languages/eventorganiser-da_DK.mo +0 -0
  26. languages/eventorganiser-da_DK.po +1 -1
  27. languages/eventorganiser-de_DE.mo +0 -0
  28. languages/eventorganiser-de_DE.po +1 -1
  29. languages/eventorganiser-el.mo +0 -0
  30. languages/eventorganiser-el.po +1 -1
  31. languages/eventorganiser-en_CA.mo +0 -0
  32. languages/eventorganiser-en_CA.po +1 -1
  33. languages/eventorganiser-en_GB.mo +0 -0
  34. languages/eventorganiser-en_GB.po +1 -1
  35. languages/eventorganiser-es_ES.mo +0 -0
  36. languages/eventorganiser-es_ES.po +1 -1
  37. languages/eventorganiser-es_PE.mo +0 -0
  38. languages/eventorganiser-es_PE.po +1 -1
  39. languages/eventorganiser-et.mo +0 -0
  40. languages/eventorganiser-et.po +1 -1
  41. languages/eventorganiser-fa_IR.mo +0 -0
  42. languages/eventorganiser-fa_IR.po +1 -1
  43. languages/eventorganiser-fi.mo +0 -0
  44. languages/eventorganiser-fi.po +1 -1
  45. languages/eventorganiser-fr_FR.mo +0 -0
  46. languages/eventorganiser-fr_FR.po +1 -1
  47. languages/eventorganiser-he_IL.mo +0 -0
  48. languages/eventorganiser-he_IL.po +1 -1
  49. languages/eventorganiser-hi_IN.mo +0 -0
  50. languages/eventorganiser-hi_IN.po +1 -1
  51. languages/eventorganiser-hr.mo +0 -0
  52. languages/eventorganiser-hr.po +1 -1
  53. languages/eventorganiser-hu_HU.mo +0 -0
  54. languages/eventorganiser-hu_HU.po +1 -1
  55. languages/eventorganiser-id_ID.mo +0 -0
  56. languages/eventorganiser-id_ID.po +1 -1
  57. languages/eventorganiser-is_IS.mo +0 -0
  58. languages/eventorganiser-is_IS.po +1 -1
  59. languages/eventorganiser-it_IT.mo +0 -0
  60. languages/eventorganiser-it_IT.po +1 -1
  61. languages/eventorganiser-ja.mo +0 -0
  62. languages/eventorganiser-ja.po +1 -1
  63. languages/eventorganiser-lt_LT.mo +0 -0
  64. languages/eventorganiser-lt_LT.po +1 -1
  65. languages/eventorganiser-lv.mo +0 -0
  66. languages/eventorganiser-lv.po +1 -1
  67. languages/eventorganiser-mk_MK.mo +0 -0
  68. languages/eventorganiser-mk_MK.po +1 -1
  69. languages/eventorganiser-nb_NO.mo +0 -0
  70. languages/eventorganiser-nb_NO.po +1 -1
  71. languages/eventorganiser-nl_NL.mo +0 -0
  72. languages/eventorganiser-nl_NL.po +1 -1
  73. languages/eventorganiser-nn_NO.mo +0 -0
  74. languages/eventorganiser-nn_NO.po +1 -1
  75. languages/eventorganiser-pl_PL.mo +0 -0
  76. languages/eventorganiser-pl_PL.po +1 -1
  77. languages/eventorganiser-pt_BR.mo +0 -0
  78. languages/eventorganiser-pt_BR.po +1 -1
  79. languages/eventorganiser-pt_PT.mo +0 -0
  80. languages/eventorganiser-pt_PT.po +1 -1
  81. languages/eventorganiser-ro_RO.mo +0 -0
  82. languages/eventorganiser-ro_RO.po +1 -1
  83. languages/eventorganiser-ru_RU.mo +0 -0
  84. languages/eventorganiser-ru_RU.po +1 -1
  85. languages/eventorganiser-sk_SK.mo +0 -0
  86. languages/eventorganiser-sk_SK.po +1 -1
  87. languages/eventorganiser-sl_SI.mo +0 -0
  88. languages/eventorganiser-sl_SI.po +1 -1
  89. languages/eventorganiser-sv_SE.mo +0 -0
  90. languages/eventorganiser-sv_SE.po +1 -1
  91. languages/eventorganiser-th.mo +0 -0
  92. languages/eventorganiser-th.po +1 -1
  93. languages/eventorganiser-uk.mo +0 -0
  94. languages/eventorganiser-uk.po +1 -1
  95. languages/eventorganiser-zh_CN.mo +0 -0
  96. languages/eventorganiser-zh_CN.po +1 -1
  97. languages/eventorganiser-zh_HK.mo +0 -0
  98. languages/eventorganiser-zh_HK.po +1 -1
  99. languages/eventorganiser.pot +1 -1
  100. readme.txt +8 -2
event-organiser.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Event Organiser
4
  Plugin URI: http://www.wp-event-organiser.com
5
- Version: 3.6.0
6
  Description: Creates a custom post type 'events' with features such as recurring events, venues, Google Maps, calendar views and events and venue pages
7
  Author: Stephen Harris
8
  Author URI: http://www.stephenharris.info
@@ -38,7 +38,7 @@ Domain Path: /languages
38
  /**
39
  * Set the plug-in database version
40
  */
41
- define( 'EVENT_ORGANISER_VER', '3.6.0' );
42
 
43
  add_action( 'after_setup_theme', '_eventorganiser_set_constants' );
44
  function _eventorganiser_set_constants() {
2
  /*
3
  Plugin Name: Event Organiser
4
  Plugin URI: http://www.wp-event-organiser.com
5
+ Version: 3.6.1
6
  Description: Creates a custom post type 'events' with features such as recurring events, venues, Google Maps, calendar views and events and venue pages
7
  Author: Stephen Harris
8
  Author URI: http://www.stephenharris.info
38
  /**
39
  * Set the plug-in database version
40
  */
41
+ define( 'EVENT_ORGANISER_VER', '3.6.1' );
42
 
43
  add_action( 'after_setup_theme', '_eventorganiser_set_constants' );
44
  function _eventorganiser_set_constants() {
js/admin-calendar.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  var eventorganiser=eventorganiser||{};eventorganiser.versionCompare=function(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);f>e;e++){if(c[e]&&!d[e]&&parseInt(c[e],10)>0||parseInt(c[e],10)>parseInt(d[e],10))return 1;if(d[e]&&!c[e]&&parseInt(d[e],10)>0||parseInt(c[e],10)<parseInt(d[e],10))return-1}return 0},function(a){a(document).ready(function(){function b(){var b=a("<span class='fc-header-goto'><input type='hidden' id='miniCalendar'/></span>");return b}function c(b){a(".view-button").removeClass("nav-tab-active"),g.fullCalendar("changeView",b),a("#"+b).addClass("nav-tab-active")}function d(b){var c=b.categories;if(c){var d="<select class='eo-cal-filter' id='eo-event-cat'>";d+="<option value=''>"+b.buttonText.cat+"</option>";for(var e=0;e<c.length;e++)d+="<option class='cat-slug-"+c[e].slug+" cat' value='"+c[e].slug+"'>"+c[e].name+"</option>";return d+="</select>",a("<span class='fc-header-dropdown filter-category'></span>").append(d)}}function e(b){var c=b.venues;if(c){var d="<select class='eo-cal-filter' id='eo-event-venue'>";d+="<option value=''>"+b.buttonText.venue+"</option>";for(var e=0;e<c.length;e++)d+="<option value='"+c[e].term_id+"'>"+c[e].name+"</option>";return d+="</select>",a("<span class='fc-header-dropdown filter-venue'></span>").append(d)}}a("#eo-dialog-tabs").tabs(),a(".eo-dialog").dialog({autoOpen:!1,dialogClass:"eo-admin-calendar-dialog",width:527,modal:!0,closeText:"Close modal",draggable:!1,open:function(b,c){a(this).parent(".eo-admin-calendar-dialog").focus()}}),a(".eo-dialog").parent().find(".ui-dialog-titlebar-close").addClass("eo-ui-button"),a("#events-meta").parent().find(".ui-dialog-titlebar-close").appendTo(".ui-tabs-nav").closest(".ui-dialog").children(".ui-dialog-titlebar").remove();var f=a("#eofc_time_format").is(":checked")?"HH:mm":"h:mma",g=jQuery("#eo_admin_calendar").fullCalendar({firstDay:parseInt(EO_Ajax.startday,10),defaultDate:moment(a.cookie("eo_admin_cal_last_viewed_date")),defaultView:a.cookie("eo_admin_cal_last_view")?a.cookie("eo_admin_cal_last_view"):"month",editable:EO_Ajax.perm_edit,eventDurationEditable:!1,eventStartEditable:EO_Ajax.edit_time,durationEditable:!1,snapDuration:"00:05:00",slotDuration:"00:15:00",eventDrop:function(b,c,d,e,f,g){return b.end?void a.ajax({type:"POST",url:EO_Ajax.ajaxurl,data:{action:"eofc-edit-date",start:b.start.format("YYYY-MM-DD HH:mm:ss"),end:b.end.format("YYYY-MM-DD HH:mm:ss"),event_id:b.event_id,occurrence_id:b.occurrence_id,_wpnonce:EO_Ajax.edit_nonce},dataType:"json"}).done(function(a){a.success!==!0&&(alert(a.data.message),d())}).fail(function(a,b,c){alert("Error: "+c),d()}):(alert("Changing the event duration is not supported"),void d())},lazyFetching:"true",eventColor:"#21759B",theme:!1,customButtons:{category:d,venue:""!==EO_Ajax.venues?e:null,"goto":b},buttonText:{today:EO_Ajax.locale.today,month:EO_Ajax.locale.month,week:EO_Ajax.locale.week,day:EO_Ajax.locale.day,cat:EO_Ajax.locale.cat,venue:EO_Ajax.locale.venue,prev:"<",next:">"},monthNames:EO_Ajax.locale.monthNames,monthNamesShort:EO_Ajax.locale.monthAbbrev,dayNames:EO_Ajax.locale.dayNames,dayNamesShort:EO_Ajax.locale.dayAbbrev,isRTL:EO_Ajax.locale.isrtl,header:{left:"title",center:"category venue",right:"prev goto today next"},buttonIcons:!1,buttonui:!0,events:function(a,b,c,d){jQuery.ajax({url:EO_Ajax.ajaxurl+"?action=event-admin-cal",dataType:"JSON",data:{start:a.format("YYYY-MM-DD"),end:b.format("YYYY-MM-DD")},success:d})},categories:EO_Ajax.categories,venues:EO_Ajax.venues,selectable:!0,selectHelper:!0,eventRender:function(a,b){var c=jQuery(".filter-category .eo-cal-filter").val(),d=jQuery(".filter-venue .eo-cal-filter").val();return"undefined"!=typeof c&&""!==c&&jQuery.inArray(c,a.category)<0?"<div></div>":"undefined"!=typeof d&&""!==d&&d!=a.venue?"<div></div>":void 0},viewRender:function(b,c){var d=b.intervalStart.format("YYYY-MM-DD"),e=new Date;e=new Date(e.getTime()+6e5),a.cookie("eo_admin_cal_last_viewed_date",d,{expires:e}),a.cookie("eo_admin_cal_last_view",b.name,{expires:e})},weekMode:"variable",loading:function(a){a?jQuery("#loading").show():jQuery("#loading").hide()},timeFormat:f,axisFormat:f,eventClick:function(b,c,d){c.preventDefault(),a("#eo-dialog-tabs ul li").each(function(){var c=a(this).attr("id").substring(14);a("#eo-dialog-tabs #"+a(this).attr("id")+"-content").html(b[c])}),a("#events-meta").dialog("open")},select:function(b,c,d,e){if(EO_Ajax.perm_edit){d.preventDefault();var g=(jQuery(this)[0].calendar.options,b.format("YYYY-MM-DD")),h=b.format("HH:mm");b.hasTime()?(f="ddd, Do MMMM h:mma",allDay=0):(c.subtract(1,"minute"),f="ddd, Do MMMM",allDay=1);var i=c.format("YYYY-MM-DD"),j=c.format("HH:mm"),k=a.fullCalendar.formatRange(b,c,f);a("#eo_event_create_cal input[name='eo_event[event_title]']").val(""),a("#eo_event_create_cal input.ui-autocomplete-input").val(""),a("#eo_event_create_cal textarea[name='eo_event[event_content]']").val(""),a("#eo_event_create_cal input[name='eo_event[StartDate]']").val(g),a("#eo_event_create_cal input[name='eo_event[StartTime]']").val(h),a("#eo_event_create_cal input[name='eo_event[EndDate]']").val(i),a("#eo_event_create_cal input[name='eo_event[FinishTime]']").val(j),a("#eo_event_create_cal input[name='eo_event[allday]']").val(allDay),a("#eo_event_create_cal td#date").html(k),a("#eo_event_create_cal").dialog("open"),a("form.eo_cal input[type='submit']").removeAttr("disabled"),a("form.eo_cal input#reset").click(function(b){a("#eo_event_create_cal").dialog("close")})}}});a("#eofc_time_format").change(function(){f=a("#eofc_time_format").is(":checked")?"HH:mm":"h:mmtt",g.fullCalendar("option","timeFormat",f),a.post(ajaxurl,{action:"eofc-format-time",is24:a("#eofc_time_format").is(":checked")})}),a(".view-button").click(function(b){b.preventDefault(),c(a(this).attr("id"))}),a(window).on("keypress",function(b){if(!(a(b.target).closest(".ui-dialog").length>0)){switch(b.which){case 49:case 109:case 77:c("month");break;case 50:case 119:case 87:c("agendaWeek");break;case 51:case 100:case 68:c("agendaDay");break;case 116:case 84:g.fullCalendar("today");break;case 103:case 71:break;case 110:case 78:case 106:case 74:g.fullCalendar("next");break;case 107:case 75:case 112:case 80:g.fullCalendar("prev");break;case 63:a("#eo-keyboard-shortcuts").dialog("open");break;default:return}b.preventDefault()}}),a("#eo-keyboard-shortcuts").dialog({autoOpen:!1,dialogClass:"eo-admin-calendar-dialog",title:"Keyboard shortcuts",closeText:"Close modal",draggable:!1,modal:!0,open:function(b,c){a(this).parent(".eo-admin-calendar-dialog").focus()}}),a("#eo-keyboard-sr-shortcut").on("click",function(b){b.preventDefault(),a("#eo-keyboard-shortcuts").dialog("open")});var h=a("#adminmenumain .screen-reader-shortcut");h.length>0&&a("#eo-keyboard-sr-shortcut").insertAfter(h.last()),a("#miniCalendar").datepicker({dateFormat:"DD, d MM, yy",firstDay:parseInt(EO_Ajax.startday,10),changeMonth:!0,monthNamesShort:EO_Ajax.locale.monthAbbrev,dayNamesMin:EO_Ajax.locale.dayAbbrev,changeYear:!0,showOn:"button",buttonText:EO_Ajax.locale.gotodate,onSelect:function(a,b){g.fullCalendar("gotoDate",new Date(Date.parse(a)))}}),a("button.ui-datepicker-trigger").button().addClass("fc-button"),a.widget("ui.combobox",{_create:function(){var b=this.element.hide(),c=b.attr("id"),d=b.children(":selected"),e=d.val()?d.text():"",f=a("<span>").addClass("ui-combobox eo-venue-input").insertAfter(b),g=a('<input type="hidden" name="'+b.attr("name")+'" value="'+e+'"/>'),h=a("<input>").attr("id",c).appendTo(f).val(e).addClass("ui-combobox-input"),i={delay:0,minLength:0,source:function(b,c){h.addClass("eo-waiting"),a.getJSON(EO_Ajax.ajaxurl+"?action=eo-search-venue",b,function(b){var d=a.map(b,function(a){return a.label=a.name,a});c(d),h.removeClass("eo-waiting")})},select:function(a,b){g.val(b.item.term_id)}};h.autocomplete(i).addClass("ui-widget-content ui-corner-left"),this.element.replaceWith(g);var j=a.ui?a.ui.version||0:-1,k=eventorganiser.versionCompare(j,"1.10")>=0?"ui-autocomplete":"autocomplete";h.data(k)._renderItem=function(b,c){if(0===c.term_id)return a("<li></li>").data(k+"-item",c).append("<a>"+c.label+"</a>").appendTo(b);var d=[c.venue_address,c.venue_city,c.venue_state,c.venue_postcode,c.venue_country],e=a.grep(d,function(a){return a}).join(", "),f=eventorganiser.versionCompare(j,"1.10")>=0?"ui-autocomplete-item":"item.autocomplete";return a("<li></li>").data(f,c).append("<a>"+c.label+"</br> <span style='font-size: 0.8em'><em>"+e+"</span></em></a>").appendTo(b)};var l=a("<span>").addClass("eo-venue-combobox-buttons").appendTo(f);a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:26px;'>").attr("title","Show All Venues").appendTo(l).button({icons:{primary:"ui-icon-triangle-1-s"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right ui-combobox-toggle ui-combobox-button").mousedown(function(){wasOpen=h.autocomplete("widget").is(":visible")}).click(function(b){b.preventDefault(),wasOpen||(a(this).blur(),h.autocomplete("search","").focus())})}}),a("#venue_select").combobox(),a(".eo-cal-filter").change(function(){g.fullCalendar("rerenderEvents")}),a(".filter-venue .eo-cal-filter").selectmenu({wrapperElement:"<span class='fc-header-filter'></span>"}),a(".filter-category .eo-cal-filter").selectmenu({wrapperElement:"<span class='fc-header-filter'></span>",icons:[{find:".cat"}]});var i=a("#eo-event-venue-button").width()+30;a("#eo-event-venue-button").width(i+"px"),a("#eo-event-venue-menu").width(i+"px");var j=a("#eo-event-cat-button").width()+30;a("#eo-event-cat-button").width(j+"px"),a("#eo-event-cat-menu").width(j+"px")})}(jQuery),function(a){a.widget("ui.selectmenu",{options:{appendTo:"body",typeAhead:1e3,style:"dropdown",positionOptions:null,width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null,escapeHtml:!1,bgImage:function(){}},_create:function(){var b=this,c=this.options,d=a.ui?a.ui.version||0:-1,e=eventorganiser.versionCompare(d,"1.9")>=0?this.element.uniqueId().attr("id"):this.element.attr("id")||"ui-selectmenu-"+Math.random().toString(16).slice(2,10);this.ids=[e,e+"-button",e+"-menu"],this._safemouseup=!0,this.isOpen=!1,this.newelement=a("<a />",{"class":"ui-selectmenu ui-widget ui-state-default ui-corner-all",id:this.ids[1],role:"button",href:"#nogo",tabindex:this.element.attr("disabled")?1:0,"aria-haspopup":!0,"aria-owns":this.ids[2]}),this.newelementWrap=a("<span />").append(this.newelement).insertAfter(this.element);var f=this.element.attr("tabindex");f&&this.newelement.attr("tabindex",f),this.newelement.data("selectelement",this.element),this.selectmenuIcon=a('<span class="ui-selectmenu-icon ui-icon"></span>').prependTo(this.newelement),this.newelement.prepend('<span class="ui-selectmenu-status" />'),this.element.bind({"click.selectmenu":function(a){b.newelement.focus(),a.preventDefault()}}),this.newelement.bind("mousedown.selectmenu",function(a){b._toggle(a,!0),"popup"==c.style&&(b._safemouseup=!1,setTimeout(function(){b._safemouseup=!0},300)),a.preventDefault()}).bind("click.selectmenu",function(a){a.preventDefault()}).bind("keydown.selectmenu",function(c){var d=!1;switch(c.keyCode){case a.ui.keyCode.ENTER:d=!0;break;case a.ui.keyCode.SPACE:b._toggle(c);break;case a.ui.keyCode.UP:c.altKey?b.open(c):b._moveSelection(-1);break;case a.ui.keyCode.DOWN:c.altKey?b.open(c):b._moveSelection(1);break;case a.ui.keyCode.LEFT:b._moveSelection(-1);break;case a.ui.keyCode.RIGHT:b._moveSelection(1);break;case a.ui.keyCode.TAB:d=!0;break;case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.HOME:b.index(0);break;case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.END:b.index(b._optionLis.length);break;default:d=!0}return d}).bind("keypress.selectmenu",function(a){return a.which>0&&b._typeAhead(a.which,"mouseup"),!0}).bind("mouseover.selectmenu",function(){c.disabled||a(this).addClass("ui-state-hover")}).bind("mouseout.selectmenu",function(){c.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.selectmenu",function(){c.disabled||a(this).addClass("ui-state-focus")}).bind("blur.selectmenu",function(){c.disabled||a(this).removeClass("ui-state-focus")}),a(document).bind("mousedown.selectmenu-"+this.ids[0],function(c){b.isOpen&&!a(c.target).closest("#"+b.ids[1]).length&&b.close(c)}),this.element.bind("click.selectmenu",function(){b._refreshValue()}).bind("focus.selectmenu",function(){b.newelement&&b.newelement[0].focus()}),c.width||(c.width=this.element.outerWidth()),this.newelement.width(c.width),this.element.hide(),this.list=a("<ul />",{"class":"ui-widget ui-widget-content","aria-hidden":!0,role:"listbox","aria-labelledby":this.ids[1],id:this.ids[2]}),this.listWrap=a("<div />",{"class":"ui-selectmenu-menu"}).append(this.list).appendTo(c.appendTo),this.list.bind("keydown.selectmenu",function(c){var d=!1;switch(c.keyCode){case a.ui.keyCode.UP:c.altKey?b.close(c,!0):b._moveFocus(-1);break;case a.ui.keyCode.DOWN:c.altKey?b.close(c,!0):b._moveFocus(1);break;case a.ui.keyCode.LEFT:b._moveFocus(-1);break;case a.ui.keyCode.RIGHT:b._moveFocus(1);break;case a.ui.keyCode.HOME:b._moveFocus(":first");break;case a.ui.keyCode.PAGE_UP:b._scrollPage("up");break;case a.ui.keyCode.PAGE_DOWN:b._scrollPage("down");break;case a.ui.keyCode.END:b._moveFocus(":last");break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:b.close(c,!0),a(c.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.TAB:d=!0,b.close(c,!0),a(c.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.ESCAPE:b.close(c,!0);break;default:d=!0}return d}).bind("keypress.selectmenu",function(a){return a.which>0&&b._typeAhead(a.which,"focus"),!0}).bind("mousedown.selectmenu mouseup.selectmenu",function(){return!1}),a(window).bind("resize.selectmenu-"+this.ids[0],a.proxy(b.close,this))},_init:function(){var b=this,c=this.options,d=[];this.element.find("option").each(function(){var e=a(this);d.push({value:e.attr("value"),text:b._formatText(e.text(),e),selected:e.attr("selected"),disabled:e.attr("disabled"),classes:e.attr("class"),typeahead:e.attr("typeahead"),parentOptGroup:e.parent("optgroup"),bgImage:c.bgImage.call(e)})});var e="popup"==b.options.style?" ui-state-active":"";if(this.list.html(""),d.length)for(var f=0;f<d.length;f++){var g={role:"presentation"};d[f].disabled&&(g["class"]="ui-state-disabled");var h={html:d[f].text||"&nbsp;",href:"#nogo",tabindex:-1,role:"option","aria-selected":!1};d[f].disabled&&(h["aria-disabled"]=d[f].disabled),d[f].typeahead&&(h.typeahead=d[f].typeahead);var i=a("<a/>",h).bind("focus.selectmenu",function(){a(this).parent().mouseover()}).bind("blur.selectmenu",function(){a(this).parent().mouseout()}),j=a("<li/>",g).append(i).data("index",f).addClass(d[f].classes).data("optionClasses",d[f].classes||"").bind("mouseup.selectmenu",function(c){return!b._safemouseup||b._disabled(c.currentTarget)||b._disabled(a(c.currentTarget).parents("ul > li.ui-selectmenu-group "))||(b.index(a(this).data("index")),b.select(c),b.close(c,!0)),!1}).bind("click.selectmenu",function(){return!1}).bind("mouseover.selectmenu",function(c){a(this).hasClass("ui-state-disabled")||a(this).parent("ul").parent("li").hasClass("ui-state-disabled")||(c.optionValue=b.element[0].options[a(this).data("index")].value,b._trigger("hover",c,b._uiHash()),b._selectedOptionLi().addClass(e),b._focusedOptionLi().removeClass("ui-selectmenu-item-focus ui-state-hover"),a(this).removeClass("ui-state-active").addClass("ui-selectmenu-item-focus ui-state-hover"))}).bind("mouseout.selectmenu",function(c){a(this).is(b._selectedOptionLi())&&a(this).addClass(e),c.optionValue=b.element[0].options[a(this).data("index")].value,b._trigger("blur",c,b._uiHash()),a(this).removeClass("ui-selectmenu-item-focus ui-state-hover")});if(d[f].parentOptGroup.length){var k="ui-selectmenu-group-"+this.element.find("optgroup").index(d[f].parentOptGroup);this.list.find("li."+k).length?this.list.find("li."+k+":last ul").append(j):a('<li role="presentation" class="ui-selectmenu-group '+k+(d[f].parentOptGroup.attr("disabled")?' ui-state-disabled" aria-disabled="true"':'"')+'><span class="ui-selectmenu-group-label">'+d[f].parentOptGroup.attr("label")+"</span><ul></ul></li>").appendTo(this.list).find("ul").append(j)}else j.appendTo(this.list);if(c.icons)for(var l in c.icons)if(j.is(c.icons[l].find)){j.data("optionClasses",d[f].classes+" ui-selectmenu-hasIcon").addClass("ui-selectmenu-hasIcon");var m=c.icons[l].icon||"";j.find("a:eq(0)").prepend('<span class="ui-selectmenu-item-icon ui-icon '+m+'"></span>'),d[f].bgImage&&j.find("span").css("background-image",d[f].bgImage)}}else a(' <li role="presentation"><a href="#nogo" tabindex="-1" role="option"></a></li>').appendTo(this.list);var n="dropdown"==c.style;this.newelement.toggleClass("ui-selectmenu-dropdown",n).toggleClass("ui-selectmenu-popup",!n),this.list.toggleClass("ui-selectmenu-menu-dropdown ui-corner-bottom",n).toggleClass("ui-selectmenu-menu-popup ui-corner-all",!n).find("li:first").toggleClass("ui-corner-top",!n).end().find("li:last").addClass("ui-corner-bottom"),this.selectmenuIcon.toggleClass("ui-icon-triangle-1-s",n).toggleClass("ui-icon-triangle-2-n-s",!n),"dropdown"==c.style?this.list.width(c.menuWidth?c.menuWidth:c.width):this.list.width(c.menuWidth?c.menuWidth:c.width-c.handleWidth),this.list.css("height","auto");var o=this.listWrap.height(),p=a(window).height(),q=c.maxHeight?Math.min(c.maxHeight,p):p/3;o>q&&this.list.height(q),this._optionLis=this.list.find("li:not(.ui-selectmenu-group)"),this.element.attr("disabled")?this.disable():this.enable(),this._refreshValue(),this._selectedOptionLi().addClass("ui-selectmenu-item-focus"),clearTimeout(this.refreshTimeout),this.refreshTimeout=window.setTimeout(function(){b._refreshPosition()},200)},destroy:function(){this.element.removeData(this.widgetName).removeClass("ui-selectmenu-disabled ui-state-disabled").removeAttr("aria-disabled").unbind(".selectmenu"),a(window).unbind(".selectmenu-"+this.ids[0]),a(document).unbind(".selectmenu-"+this.ids[0]),this.newelementWrap.remove(),this.listWrap.remove(),this.element.unbind(".selectmenu").show(),a.Widget.prototype.destroy.apply(this,arguments)},_typeAhead:function(a,b){var c=this,d=String.fromCharCode(a).toLowerCase(),e=null,f=null;c._typeAhead_timer&&(window.clearTimeout(c._typeAhead_timer),c._typeAhead_timer=void 0),c._typeAhead_chars=(void 0===c._typeAhead_chars?"":c._typeAhead_chars).concat(d),c._typeAhead_chars.length<2||c._typeAhead_chars.substr(-2,1)===d&&c._typeAhead_cycling?(c._typeAhead_cycling=!0,e=d):(c._typeAhead_cycling=!1,e=c._typeAhead_chars);for(var g=("focus"!==b?this._selectedOptionLi().data("index"):this._focusedOptionLi().data("index"))||0,h=0;h<this._optionLis.length;h++){var i=this._optionLis.eq(h).text().substr(0,e.length).toLowerCase();if(i===e)if(c._typeAhead_cycling){if(null===f&&(f=h),h>g){f=h;break}}else f=h}null!==f&&this._optionLis.eq(f).find("a").trigger(b),c._typeAhead_timer=window.setTimeout(function(){c._typeAhead_timer=void 0,c._typeAhead_chars=void 0,c._typeAhead_cycling=void 0},c.options.typeAhead)},_uiHash:function(){var b=this.index();return{index:b,option:a("option",this.element).get(b),value:this.element[0].value}},open:function(a){if("true"!=this.newelement.attr("aria-disabled")){var b=this,c=this.options,d=this._selectedOptionLi(),e=d.find("a");b._closeOthers(a),b.newelement.addClass("ui-state-active"),b.list.attr("aria-hidden",!1),b.listWrap.addClass("ui-selectmenu-open"),"dropdown"==c.style?b.newelement.removeClass("ui-corner-all").addClass("ui-corner-top"):this.list.css("left",-5e3).scrollTop(this.list.scrollTop()+d.position().top-this.list.outerHeight()/2+d.outerHeight()/2).css("left","auto"),b._refreshPosition(),e.length&&e[0].focus(),b.isOpen=!0,b._trigger("open",a,b._uiHash())}},close:function(a,b){this.newelement.is(".ui-state-active")&&(this.newelement.removeClass("ui-state-active"),this.listWrap.removeClass("ui-selectmenu-open"),this.list.attr("aria-hidden",!0),"dropdown"==this.options.style&&this.newelement.removeClass("ui-corner-top").addClass("ui-corner-all"),b&&this.newelement.focus(),this.isOpen=!1,this._trigger("close",a,this._uiHash()))},change:function(a){this.element.trigger("change"),this._trigger("change",a,this._uiHash())},select:function(a){return this._disabled(a.currentTarget)?!1:void this._trigger("select",a,this._uiHash())},widget:function(){return this.listWrap.add(this.newelementWrap)},_closeOthers:function(b){a(".ui-selectmenu.ui-state-active").not(this.newelement).each(function(){a(this).data("selectelement").selectmenu("close",b)}),a(".ui-selectmenu.ui-state-hover").trigger("mouseout")},_toggle:function(a,b){this.isOpen?this.close(a,b):this.open(a)},_formatText:function(b,c){return this.options.format?b=this.options.format(b,c):this.options.escapeHtml&&(b=a("<div />").text(b).html()),b},_selectedIndex:function(){return this.element[0].selectedIndex},_selectedOptionLi:function(){return this._optionLis.eq(this._selectedIndex())},_focusedOptionLi:function(){return this.list.find(".ui-selectmenu-item-focus")},_moveSelection:function(a,b){if(!this.options.disabled){var c=parseInt(this._selectedOptionLi().data("index")||0,10),d=c+a;if(0>d&&(d=0),d>this._optionLis.size()-1&&(d=this._optionLis.size()-1),d===b)return!1;this._optionLis.eq(d).hasClass("ui-state-disabled")?(a>0?++a:--a,this._moveSelection(a,d)):this._optionLis.eq(d).trigger("mouseover").trigger("mouseup")}},_moveFocus:function(a,b){var c;if(isNaN(a))c=parseInt(this._optionLis.filter(a).data("index"),10);else{var d=parseInt(this._focusedOptionLi().data("index")||0,10);c=d+a}if(0>c&&(c=0),c>this._optionLis.size()-1&&(c=this._optionLis.size()-1),c===b)return!1;var e="ui-selectmenu-item-"+Math.round(1e3*Math.random());this._focusedOptionLi().find("a:eq(0)").attr("id",""),this._optionLis.eq(c).hasClass("ui-state-disabled")?(a>0?++a:--a,this._moveFocus(a,c)):this._optionLis.eq(c).find("a:eq(0)").attr("id",e).focus(),this.list.attr("aria-activedescendant",e)},_scrollPage:function(a){var b=Math.floor(this.list.outerHeight()/this._optionLis.first().outerHeight());b="up"==a?-b:b,this._moveFocus(b)},_setOption:function(a,b){this.options[a]=b,"disabled"==a&&(b&&this.close(),this.element.add(this.newelement).add(this.list)[b?"addClass":"removeClass"]("ui-selectmenu-disabled ui-state-disabled").attr("aria-disabled",b))},disable:function(a,b){"undefined"==typeof a?this._setOption("disabled",!0):"optgroup"==b?this._toggleOptgroup(a,!1):this._toggleOption(a,!1)},enable:function(a,b){"undefined"==typeof a?this._setOption("disabled",!1):"optgroup"==b?this._toggleOptgroup(a,!0):this._toggleOption(a,!0)},_disabled:function(b){return a(b).hasClass("ui-state-disabled")},_toggleOption:function(a,b){var c=this._optionLis.eq(a);c&&(c.toggleClass("ui-state-disabled",b).find("a").attr("aria-disabled",!b),b?this.element.find("option").eq(a).attr("disabled","disabled"):this.element.find("option").eq(a).removeAttr("disabled"))},_toggleOptgroup:function(a,b){var c=this.list.find("li.ui-selectmenu-group-"+a);c&&(c.toggleClass("ui-state-disabled",b).attr("aria-disabled",!b),b?this.element.find("optgroup").eq(a).attr("disabled","disabled"):this.element.find("optgroup").eq(a).removeAttr("disabled"))},index:function(b){return arguments.length?this._disabled(a(this._optionLis[b]))||b==this._selectedIndex()?!1:(this.element[0].selectedIndex=b,this._refreshValue(),this.change(),void 0):this._selectedIndex()},value:function(a){return arguments.length&&a!=this.element[0].value?(this.element[0].value=a,this._refreshValue(),this.change(),void 0):this.element[0].value},_refreshValue:function(){var a="popup"==this.options.style?" ui-state-active":"",b="ui-selectmenu-item-"+Math.round(1e3*Math.random());this.list.find(".ui-selectmenu-item-selected").removeClass("ui-selectmenu-item-selected"+a).find("a").attr("aria-selected","false").attr("id",""),this._selectedOptionLi().addClass("ui-selectmenu-item-selected"+a).find("a").attr("aria-selected","true").attr("id",b);var c=this.newelement.data("optionClasses")?this.newelement.data("optionClasses"):"",d=this._selectedOptionLi().data("optionClasses")?this._selectedOptionLi().data("optionClasses"):"";this.newelement.removeClass(c).data("optionClasses",d).addClass(d).find(".ui-selectmenu-status").html(this._selectedOptionLi().find("a:eq(0)").html()),this.list.attr("aria-activedescendant",b)},_refreshPosition:function(){var b=this.options,c={of:this.newelement,my:"left top",at:"left bottom",collision:"flip"};if("popup"==b.style){var d=this._selectedOptionLi();c.my="left top"+(this.list.offset().top-d.offset().top-(this.newelement.outerHeight()+d.outerHeight())/2),c.collision="fit"}this.listWrap.removeAttr("style").zIndex(this.element.zIndex()+2).position(a.extend(c,b.positionOptions))}})}(jQuery),function(a){var b;"function"==typeof b&&b.amd?b(["jquery"],a):a(jQuery)}(function(a){function b(a){return a}function c(a){return decodeURIComponent(a.replace(e," "))}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return f.json?JSON.parse(a):a}catch(b){}}var e=/\+/g,f=a.cookie=function(e,g,h){if(void 0!==g){if(h=a.extend({},f.defaults,h),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=f.json?JSON.stringify(g):String(g),document.cookie=[f.raw?e:encodeURIComponent(e),"=",f.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join(""),document}for(var k=f.raw?b:c,l=document.cookie.split("; "),m=e?void 0:{},n=0,o=l.length;o>n;n++){var p=l[n].split("="),q=k(p.shift()),r=k(p.join("="));if(e&&e===q){m=d(r);break}e||(m[q]=d(r))}return m};f.defaults={},a.removeCookie=function(b,c){return void 0!==a.cookie(b)?(a.cookie(b,"",a.extend({},c,{expires:-1})),!0):!1}});
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
  var eventorganiser=eventorganiser||{};eventorganiser.versionCompare=function(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);f>e;e++){if(c[e]&&!d[e]&&parseInt(c[e],10)>0||parseInt(c[e],10)>parseInt(d[e],10))return 1;if(d[e]&&!c[e]&&parseInt(d[e],10)>0||parseInt(c[e],10)<parseInt(d[e],10))return-1}return 0},function(a){a(document).ready(function(){function b(){var b=a("<span class='fc-header-goto'><input type='hidden' id='miniCalendar'/></span>");return b}function c(b){a(".view-button").removeClass("nav-tab-active"),g.fullCalendar("changeView",b),a("#"+b).addClass("nav-tab-active")}function d(b){var c=b.categories;if(c){var d="<select class='eo-cal-filter' id='eo-event-cat'>";d+="<option value=''>"+b.buttonText.cat+"</option>";for(var e=0;e<c.length;e++)d+="<option class='cat-slug-"+c[e].slug+" cat' value='"+c[e].slug+"'>"+c[e].name+"</option>";return d+="</select>",a("<span class='fc-header-dropdown filter-category'></span>").append(d)}}function e(b){var c=b.venues;if(c){var d="<select class='eo-cal-filter' id='eo-event-venue'>";d+="<option value=''>"+b.buttonText.venue+"</option>";for(var e=0;e<c.length;e++)d+="<option value='"+c[e].term_id+"'>"+c[e].name+"</option>";return d+="</select>",a("<span class='fc-header-dropdown filter-venue'></span>").append(d)}}a("#eo-dialog-tabs").tabs(),a(".eo-dialog").dialog({autoOpen:!1,dialogClass:"eo-admin-calendar-dialog",width:527,modal:!0,closeText:"Close modal",draggable:!1,open:function(b,c){a(this).parent(".eo-admin-calendar-dialog").focus()}}),a(".eo-dialog").parent().find(".ui-dialog-titlebar-close").addClass("eo-ui-button"),a("#events-meta").parent().find(".ui-dialog-titlebar-close").appendTo(".ui-tabs-nav").closest(".ui-dialog").children(".ui-dialog-titlebar").remove();var f=a("#eofc_time_format").is(":checked")?"HH:mm":"h:mma",g=jQuery("#eo_admin_calendar").fullCalendar({firstDay:parseInt(EO_Ajax.startday,10),defaultDate:moment(a.cookie("eo_admin_cal_last_viewed_date")),defaultView:a.cookie("eo_admin_cal_last_view")?a.cookie("eo_admin_cal_last_view"):"month",editable:EO_Ajax.perm_edit,eventDurationEditable:!1,eventStartEditable:EO_Ajax.edit_time,durationEditable:!1,snapDuration:"00:05:00",slotDuration:"00:15:00",eventDrop:function(b,c,d,e,f,g){return b.end?void a.ajax({type:"POST",url:EO_Ajax.ajaxurl,data:{action:"eofc-edit-date",start:b.start.format("YYYY-MM-DD HH:mm:ss"),end:b.end.format("YYYY-MM-DD HH:mm:ss"),event_id:b.event_id,occurrence_id:b.occurrence_id,_wpnonce:EO_Ajax.edit_nonce},dataType:"json"}).done(function(a){a.success!==!0&&(alert(a.data.message),d())}).fail(function(a,b,c){alert("Error: "+c),d()}):(alert("Changing the event duration is not supported"),void d())},lazyFetching:"true",eventColor:"#21759B",theme:!1,customButtons:{category:d,venue:""!==EO_Ajax.venues?e:null,"goto":b},buttonText:{today:EO_Ajax.locale.today,month:EO_Ajax.locale.month,week:EO_Ajax.locale.week,day:EO_Ajax.locale.day,cat:EO_Ajax.locale.cat,venue:EO_Ajax.locale.venue,prev:"<",next:">"},monthNames:EO_Ajax.locale.monthNames,monthNamesShort:EO_Ajax.locale.monthAbbrev,dayNames:EO_Ajax.locale.dayNames,dayNamesShort:EO_Ajax.locale.dayAbbrev,isRTL:EO_Ajax.locale.isrtl,header:{left:"title",center:"category venue",right:"prev goto today next"},buttonIcons:!1,buttonui:!0,events:function(a,b,c,d){jQuery.ajax({url:EO_Ajax.ajaxurl+"?action=event-admin-cal",dataType:"JSON",data:{start:a.format("YYYY-MM-DD"),end:b.format("YYYY-MM-DD")},success:d})},categories:EO_Ajax.categories,venues:EO_Ajax.venues,selectable:!0,selectHelper:!0,eventRender:function(a,b){var c=jQuery(".filter-category .eo-cal-filter").val(),d=jQuery(".filter-venue .eo-cal-filter").val();return"undefined"!=typeof c&&""!==c&&jQuery.inArray(c,a.category)<0?"<div></div>":"undefined"!=typeof d&&""!==d&&d!=a.venue?"<div></div>":void 0},viewRender:function(b,c){var d=b.intervalStart.format("YYYY-MM-DD"),e=new Date;e=new Date(e.getTime()+6e5),a.cookie("eo_admin_cal_last_viewed_date",d,{expires:e}),a.cookie("eo_admin_cal_last_view",b.name,{expires:e})},weekMode:"variable",loading:function(a){a?jQuery("#loading").show():jQuery("#loading").hide()},timeFormat:f,axisFormat:f,eventClick:function(b,c,d){c.preventDefault(),a("#eo-dialog-tabs ul li").each(function(){var c=a(this).attr("id").substring(14);a("#eo-dialog-tabs #"+a(this).attr("id")+"-content").html(b[c])}),a("#events-meta").dialog("open")},select:function(b,c,d,e){if(EO_Ajax.perm_edit){d.preventDefault();var g=(jQuery(this)[0].calendar.options,b.format("YYYY-MM-DD")),h=b.format("HH:mm");b.hasTime()?(f="ddd, Do MMMM h:mma",allDay=0):(c.subtract(1,"minute"),f="ddd, Do MMMM",allDay=1);var i=c.format("YYYY-MM-DD"),j=c.format("HH:mm"),k=a.fullCalendar.formatRange(b,c,f);a("#eo_event_create_cal input[name='eo_event[event_title]']").val(""),a("#eo_event_create_cal input.ui-autocomplete-input").val(""),a("#eo_event_create_cal textarea[name='eo_event[event_content]']").val(""),a("#eo_event_create_cal input[name='eo_event[StartDate]']").val(g),a("#eo_event_create_cal input[name='eo_event[StartTime]']").val(h),a("#eo_event_create_cal input[name='eo_event[EndDate]']").val(i),a("#eo_event_create_cal input[name='eo_event[FinishTime]']").val(j),a("#eo_event_create_cal input[name='eo_event[allday]']").val(allDay),a("#eo_event_create_cal td#date").html(k),a("#eo_event_create_cal").dialog("open"),a("form.eo_cal input[type='submit']").removeAttr("disabled"),a("form.eo_cal input#reset").click(function(b){a("#eo_event_create_cal").dialog("close")})}}});a("#eofc_time_format").change(function(){f=a("#eofc_time_format").is(":checked")?"HH:mm":"h:mmtt",g.fullCalendar("option","timeFormat",f),a.post(ajaxurl,{action:"eofc-format-time",is24:a("#eofc_time_format").is(":checked")})}),a(".view-button").click(function(b){b.preventDefault(),c(a(this).attr("id"))}),a(window).on("keypress",function(b){if(!(a(b.target).closest(".ui-dialog").length>0)){switch(b.which){case 49:case 109:case 77:c("month");break;case 50:case 119:case 87:c("agendaWeek");break;case 51:case 100:case 68:c("agendaDay");break;case 116:case 84:g.fullCalendar("today");break;case 103:case 71:break;case 110:case 78:case 106:case 74:g.fullCalendar("next");break;case 107:case 75:case 112:case 80:g.fullCalendar("prev");break;case 63:a("#eo-keyboard-shortcuts").dialog("open");break;default:return}b.preventDefault()}}),a("#eo-keyboard-shortcuts").dialog({autoOpen:!1,dialogClass:"eo-admin-calendar-dialog",title:"Keyboard shortcuts",closeText:"Close modal",draggable:!1,modal:!0,open:function(b,c){a(this).parent(".eo-admin-calendar-dialog").focus()}}),a("#eo-keyboard-sr-shortcut").on("click",function(b){b.preventDefault(),a("#eo-keyboard-shortcuts").dialog("open")});var h=a("#adminmenumain .screen-reader-shortcut");h.length>0&&a("#eo-keyboard-sr-shortcut").insertAfter(h.last()),a("#miniCalendar").datepicker({dateFormat:"DD, d MM, yy",firstDay:parseInt(EO_Ajax.startday,10),changeMonth:!0,monthNamesShort:EO_Ajax.locale.monthAbbrev,dayNamesMin:EO_Ajax.locale.dayAbbrev,changeYear:!0,showOn:"button",buttonText:EO_Ajax.locale.gotodate,onSelect:function(a,b){g.fullCalendar("gotoDate",new Date(Date.parse(a)))}}),a("button.ui-datepicker-trigger").button().addClass("fc-button"),a.widget("ui.combobox",{_create:function(){var b=this.element.hide(),c=b.attr("id"),d=b.children(":selected"),e=d.val()?d.text():"",f=a("<span>").addClass("ui-combobox eo-venue-input").insertAfter(b),g=a('<input type="hidden" name="'+b.attr("name")+'" value="'+e+'"/>'),h=a("<input>").attr("id",c).appendTo(f).val(e).addClass("ui-combobox-input"),i={delay:0,minLength:0,source:function(b,c){h.addClass("eo-waiting"),a.getJSON(EO_Ajax.ajaxurl+"?action=eo-search-venue",b,function(b){var d=a.map(b,function(a){return a.label=a.name,a});c(d),h.removeClass("eo-waiting")})},select:function(a,b){g.val(b.item.term_id)}};h.autocomplete(i).addClass("ui-widget-content ui-corner-left"),this.element.replaceWith(g);var j=a.ui?a.ui.version||0:-1,k=eventorganiser.versionCompare(j,"1.10")>=0?"ui-autocomplete":"autocomplete";h.data(k)._renderItem=function(b,c){if(0===c.term_id)return a("<li></li>").data(k+"-item",c).append("<a>"+c.label+"</a>").appendTo(b);var d=[c.venue_address,c.venue_city,c.venue_state,c.venue_postcode,c.venue_country],e=a.grep(d,function(a){return a}).join(", "),f=eventorganiser.versionCompare(j,"1.10")>=0?"ui-autocomplete-item":"item.autocomplete";return a("<li></li>").data(f,c).append("<a>"+c.label+"</br> <span style='font-size: 0.8em'><em>"+e+"</span></em></a>").appendTo(b)};var l=a("<span>").addClass("eo-venue-combobox-buttons").appendTo(f);a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:26px;'>").attr("title","Show All Venues").appendTo(l).button({icons:{primary:"ui-icon-triangle-1-s"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right ui-combobox-toggle ui-combobox-button").mousedown(function(){wasOpen=h.autocomplete("widget").is(":visible")}).click(function(b){b.preventDefault(),wasOpen||(a(this).blur(),h.autocomplete("search","").focus())})}}),a("#venue_select").combobox(),a(".eo-cal-filter").change(function(){g.fullCalendar("rerenderEvents")}),a(".filter-venue .eo-cal-filter").selectmenu({wrapperElement:"<span class='fc-header-filter'></span>"}),a(".filter-category .eo-cal-filter").selectmenu({wrapperElement:"<span class='fc-header-filter'></span>",icons:[{find:".cat"}]});var i=a("#eo-event-venue-button").width()+30;a("#eo-event-venue-button").width(i+"px"),a("#eo-event-venue-menu").width(i+"px");var j=a("#eo-event-cat-button").width()+30;a("#eo-event-cat-button").width(j+"px"),a("#eo-event-cat-menu").width(j+"px")})}(jQuery),function(a){a.widget("ui.selectmenu",{options:{appendTo:"body",typeAhead:1e3,style:"dropdown",positionOptions:null,width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null,escapeHtml:!1,bgImage:function(){}},_create:function(){var b=this,c=this.options,d=a.ui?a.ui.version||0:-1,e=eventorganiser.versionCompare(d,"1.9")>=0?this.element.uniqueId().attr("id"):this.element.attr("id")||"ui-selectmenu-"+Math.random().toString(16).slice(2,10);this.ids=[e,e+"-button",e+"-menu"],this._safemouseup=!0,this.isOpen=!1,this.newelement=a("<a />",{"class":"ui-selectmenu ui-widget ui-state-default ui-corner-all",id:this.ids[1],role:"button",href:"#nogo",tabindex:this.element.attr("disabled")?1:0,"aria-haspopup":!0,"aria-owns":this.ids[2]}),this.newelementWrap=a("<span />").append(this.newelement).insertAfter(this.element);var f=this.element.attr("tabindex");f&&this.newelement.attr("tabindex",f),this.newelement.data("selectelement",this.element),this.selectmenuIcon=a('<span class="ui-selectmenu-icon ui-icon"></span>').prependTo(this.newelement),this.newelement.prepend('<span class="ui-selectmenu-status" />'),this.element.bind({"click.selectmenu":function(a){b.newelement.focus(),a.preventDefault()}}),this.newelement.bind("mousedown.selectmenu",function(a){b._toggle(a,!0),"popup"==c.style&&(b._safemouseup=!1,setTimeout(function(){b._safemouseup=!0},300)),a.preventDefault()}).bind("click.selectmenu",function(a){a.preventDefault()}).bind("keydown.selectmenu",function(c){var d=!1;switch(c.keyCode){case a.ui.keyCode.ENTER:d=!0;break;case a.ui.keyCode.SPACE:b._toggle(c);break;case a.ui.keyCode.UP:c.altKey?b.open(c):b._moveSelection(-1);break;case a.ui.keyCode.DOWN:c.altKey?b.open(c):b._moveSelection(1);break;case a.ui.keyCode.LEFT:b._moveSelection(-1);break;case a.ui.keyCode.RIGHT:b._moveSelection(1);break;case a.ui.keyCode.TAB:d=!0;break;case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.HOME:b.index(0);break;case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.END:b.index(b._optionLis.length);break;default:d=!0}return d}).bind("keypress.selectmenu",function(a){return a.which>0&&b._typeAhead(a.which,"mouseup"),!0}).bind("mouseover.selectmenu",function(){c.disabled||a(this).addClass("ui-state-hover")}).bind("mouseout.selectmenu",function(){c.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.selectmenu",function(){c.disabled||a(this).addClass("ui-state-focus")}).bind("blur.selectmenu",function(){c.disabled||a(this).removeClass("ui-state-focus")}),a(document).bind("mousedown.selectmenu-"+this.ids[0],function(c){b.isOpen&&!a(c.target).closest("#"+b.ids[1]).length&&b.close(c)}),this.element.bind("click.selectmenu",function(){b._refreshValue()}).bind("focus.selectmenu",function(){b.newelement&&b.newelement[0].focus()}),c.width||(c.width=this.element.outerWidth()),this.newelement.width(c.width),this.element.hide(),this.list=a("<ul />",{"class":"ui-widget ui-widget-content","aria-hidden":!0,role:"listbox","aria-labelledby":this.ids[1],id:this.ids[2]}),this.listWrap=a("<div />",{"class":"ui-selectmenu-menu"}).append(this.list).appendTo(c.appendTo),this.list.bind("keydown.selectmenu",function(c){var d=!1;switch(c.keyCode){case a.ui.keyCode.UP:c.altKey?b.close(c,!0):b._moveFocus(-1);break;case a.ui.keyCode.DOWN:c.altKey?b.close(c,!0):b._moveFocus(1);break;case a.ui.keyCode.LEFT:b._moveFocus(-1);break;case a.ui.keyCode.RIGHT:b._moveFocus(1);break;case a.ui.keyCode.HOME:b._moveFocus(":first");break;case a.ui.keyCode.PAGE_UP:b._scrollPage("up");break;case a.ui.keyCode.PAGE_DOWN:b._scrollPage("down");break;case a.ui.keyCode.END:b._moveFocus(":last");break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:b.close(c,!0),a(c.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.TAB:d=!0,b.close(c,!0),a(c.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.ESCAPE:b.close(c,!0);break;default:d=!0}return d}).bind("keypress.selectmenu",function(a){return a.which>0&&b._typeAhead(a.which,"focus"),!0}).bind("mousedown.selectmenu mouseup.selectmenu",function(){return!1}),a(window).bind("resize.selectmenu-"+this.ids[0],a.proxy(b.close,this))},_init:function(){var b=this,c=this.options,d=[];this.element.find("option").each(function(){var e=a(this);d.push({value:e.attr("value"),text:b._formatText(e.text(),e),selected:e.attr("selected"),disabled:e.attr("disabled"),classes:e.attr("class"),typeahead:e.attr("typeahead"),parentOptGroup:e.parent("optgroup"),bgImage:c.bgImage.call(e)})});var e="popup"==b.options.style?" ui-state-active":"";if(this.list.html(""),d.length)for(var f=0;f<d.length;f++){var g={role:"presentation"};d[f].disabled&&(g["class"]="ui-state-disabled");var h={html:d[f].text||"&nbsp;",href:"#nogo",tabindex:-1,role:"option","aria-selected":!1};d[f].disabled&&(h["aria-disabled"]=d[f].disabled),d[f].typeahead&&(h.typeahead=d[f].typeahead);var i=a("<a/>",h).bind("focus.selectmenu",function(){a(this).parent().mouseover()}).bind("blur.selectmenu",function(){a(this).parent().mouseout()}),j=a("<li/>",g).append(i).data("index",f).addClass(d[f].classes).data("optionClasses",d[f].classes||"").bind("mouseup.selectmenu",function(c){return!b._safemouseup||b._disabled(c.currentTarget)||b._disabled(a(c.currentTarget).parents("ul > li.ui-selectmenu-group "))||(b.index(a(this).data("index")),b.select(c),b.close(c,!0)),!1}).bind("click.selectmenu",function(){return!1}).bind("mouseover.selectmenu",function(c){a(this).hasClass("ui-state-disabled")||a(this).parent("ul").parent("li").hasClass("ui-state-disabled")||(c.optionValue=b.element[0].options[a(this).data("index")].value,b._trigger("hover",c,b._uiHash()),b._selectedOptionLi().addClass(e),b._focusedOptionLi().removeClass("ui-selectmenu-item-focus ui-state-hover"),a(this).removeClass("ui-state-active").addClass("ui-selectmenu-item-focus ui-state-hover"))}).bind("mouseout.selectmenu",function(c){a(this).is(b._selectedOptionLi())&&a(this).addClass(e),c.optionValue=b.element[0].options[a(this).data("index")].value,b._trigger("blur",c,b._uiHash()),a(this).removeClass("ui-selectmenu-item-focus ui-state-hover")});if(d[f].parentOptGroup.length){var k="ui-selectmenu-group-"+this.element.find("optgroup").index(d[f].parentOptGroup);this.list.find("li."+k).length?this.list.find("li."+k+":last ul").append(j):a('<li role="presentation" class="ui-selectmenu-group '+k+(d[f].parentOptGroup.attr("disabled")?' ui-state-disabled" aria-disabled="true"':'"')+'><span class="ui-selectmenu-group-label">'+d[f].parentOptGroup.attr("label")+"</span><ul></ul></li>").appendTo(this.list).find("ul").append(j)}else j.appendTo(this.list);if(c.icons)for(var l in c.icons)if(j.is(c.icons[l].find)){j.data("optionClasses",d[f].classes+" ui-selectmenu-hasIcon").addClass("ui-selectmenu-hasIcon");var m=c.icons[l].icon||"";j.find("a:eq(0)").prepend('<span class="ui-selectmenu-item-icon ui-icon '+m+'"></span>'),d[f].bgImage&&j.find("span").css("background-image",d[f].bgImage)}}else a(' <li role="presentation"><a href="#nogo" tabindex="-1" role="option"></a></li>').appendTo(this.list);var n="dropdown"==c.style;this.newelement.toggleClass("ui-selectmenu-dropdown",n).toggleClass("ui-selectmenu-popup",!n),this.list.toggleClass("ui-selectmenu-menu-dropdown ui-corner-bottom",n).toggleClass("ui-selectmenu-menu-popup ui-corner-all",!n).find("li:first").toggleClass("ui-corner-top",!n).end().find("li:last").addClass("ui-corner-bottom"),this.selectmenuIcon.toggleClass("ui-icon-triangle-1-s",n).toggleClass("ui-icon-triangle-2-n-s",!n),"dropdown"==c.style?this.list.width(c.menuWidth?c.menuWidth:c.width):this.list.width(c.menuWidth?c.menuWidth:c.width-c.handleWidth),this.list.css("height","auto");var o=this.listWrap.height(),p=a(window).height(),q=c.maxHeight?Math.min(c.maxHeight,p):p/3;o>q&&this.list.height(q),this._optionLis=this.list.find("li:not(.ui-selectmenu-group)"),this.element.attr("disabled")?this.disable():this.enable(),this._refreshValue(),this._selectedOptionLi().addClass("ui-selectmenu-item-focus"),clearTimeout(this.refreshTimeout),this.refreshTimeout=window.setTimeout(function(){b._refreshPosition()},200)},destroy:function(){this.element.removeData(this.widgetName).removeClass("ui-selectmenu-disabled ui-state-disabled").removeAttr("aria-disabled").unbind(".selectmenu"),a(window).unbind(".selectmenu-"+this.ids[0]),a(document).unbind(".selectmenu-"+this.ids[0]),this.newelementWrap.remove(),this.listWrap.remove(),this.element.unbind(".selectmenu").show(),a.Widget.prototype.destroy.apply(this,arguments)},_typeAhead:function(a,b){var c=this,d=String.fromCharCode(a).toLowerCase(),e=null,f=null;c._typeAhead_timer&&(window.clearTimeout(c._typeAhead_timer),c._typeAhead_timer=void 0),c._typeAhead_chars=(void 0===c._typeAhead_chars?"":c._typeAhead_chars).concat(d),c._typeAhead_chars.length<2||c._typeAhead_chars.substr(-2,1)===d&&c._typeAhead_cycling?(c._typeAhead_cycling=!0,e=d):(c._typeAhead_cycling=!1,e=c._typeAhead_chars);for(var g=("focus"!==b?this._selectedOptionLi().data("index"):this._focusedOptionLi().data("index"))||0,h=0;h<this._optionLis.length;h++){var i=this._optionLis.eq(h).text().substr(0,e.length).toLowerCase();if(i===e)if(c._typeAhead_cycling){if(null===f&&(f=h),h>g){f=h;break}}else f=h}null!==f&&this._optionLis.eq(f).find("a").trigger(b),c._typeAhead_timer=window.setTimeout(function(){c._typeAhead_timer=void 0,c._typeAhead_chars=void 0,c._typeAhead_cycling=void 0},c.options.typeAhead)},_uiHash:function(){var b=this.index();return{index:b,option:a("option",this.element).get(b),value:this.element[0].value}},open:function(a){if("true"!=this.newelement.attr("aria-disabled")){var b=this,c=this.options,d=this._selectedOptionLi(),e=d.find("a");b._closeOthers(a),b.newelement.addClass("ui-state-active"),b.list.attr("aria-hidden",!1),b.listWrap.addClass("ui-selectmenu-open"),"dropdown"==c.style?b.newelement.removeClass("ui-corner-all").addClass("ui-corner-top"):this.list.css("left",-5e3).scrollTop(this.list.scrollTop()+d.position().top-this.list.outerHeight()/2+d.outerHeight()/2).css("left","auto"),b._refreshPosition(),e.length&&e[0].focus(),b.isOpen=!0,b._trigger("open",a,b._uiHash())}},close:function(a,b){this.newelement.is(".ui-state-active")&&(this.newelement.removeClass("ui-state-active"),this.listWrap.removeClass("ui-selectmenu-open"),this.list.attr("aria-hidden",!0),"dropdown"==this.options.style&&this.newelement.removeClass("ui-corner-top").addClass("ui-corner-all"),b&&this.newelement.focus(),this.isOpen=!1,this._trigger("close",a,this._uiHash()))},change:function(a){this.element.trigger("change"),this._trigger("change",a,this._uiHash())},select:function(a){return this._disabled(a.currentTarget)?!1:void this._trigger("select",a,this._uiHash())},widget:function(){return this.listWrap.add(this.newelementWrap)},_closeOthers:function(b){a(".ui-selectmenu.ui-state-active").not(this.newelement).each(function(){a(this).data("selectelement").selectmenu("close",b)}),a(".ui-selectmenu.ui-state-hover").trigger("mouseout")},_toggle:function(a,b){this.isOpen?this.close(a,b):this.open(a)},_formatText:function(b,c){return this.options.format?b=this.options.format(b,c):this.options.escapeHtml&&(b=a("<div />").text(b).html()),b},_selectedIndex:function(){return this.element[0].selectedIndex},_selectedOptionLi:function(){return this._optionLis.eq(this._selectedIndex())},_focusedOptionLi:function(){return this.list.find(".ui-selectmenu-item-focus")},_moveSelection:function(a,b){if(!this.options.disabled){var c=parseInt(this._selectedOptionLi().data("index")||0,10),d=c+a;if(0>d&&(d=0),d>this._optionLis.size()-1&&(d=this._optionLis.size()-1),d===b)return!1;this._optionLis.eq(d).hasClass("ui-state-disabled")?(a>0?++a:--a,this._moveSelection(a,d)):this._optionLis.eq(d).trigger("mouseover").trigger("mouseup")}},_moveFocus:function(a,b){var c;if(isNaN(a))c=parseInt(this._optionLis.filter(a).data("index"),10);else{var d=parseInt(this._focusedOptionLi().data("index")||0,10);c=d+a}if(0>c&&(c=0),c>this._optionLis.size()-1&&(c=this._optionLis.size()-1),c===b)return!1;var e="ui-selectmenu-item-"+Math.round(1e3*Math.random());this._focusedOptionLi().find("a:eq(0)").attr("id",""),this._optionLis.eq(c).hasClass("ui-state-disabled")?(a>0?++a:--a,this._moveFocus(a,c)):this._optionLis.eq(c).find("a:eq(0)").attr("id",e).focus(),this.list.attr("aria-activedescendant",e)},_scrollPage:function(a){var b=Math.floor(this.list.outerHeight()/this._optionLis.first().outerHeight());b="up"==a?-b:b,this._moveFocus(b)},_setOption:function(a,b){this.options[a]=b,"disabled"==a&&(b&&this.close(),this.element.add(this.newelement).add(this.list)[b?"addClass":"removeClass"]("ui-selectmenu-disabled ui-state-disabled").attr("aria-disabled",b))},disable:function(a,b){"undefined"==typeof a?this._setOption("disabled",!0):"optgroup"==b?this._toggleOptgroup(a,!1):this._toggleOption(a,!1)},enable:function(a,b){"undefined"==typeof a?this._setOption("disabled",!1):"optgroup"==b?this._toggleOptgroup(a,!0):this._toggleOption(a,!0)},_disabled:function(b){return a(b).hasClass("ui-state-disabled")},_toggleOption:function(a,b){var c=this._optionLis.eq(a);c&&(c.toggleClass("ui-state-disabled",b).find("a").attr("aria-disabled",!b),b?this.element.find("option").eq(a).attr("disabled","disabled"):this.element.find("option").eq(a).removeAttr("disabled"))},_toggleOptgroup:function(a,b){var c=this.list.find("li.ui-selectmenu-group-"+a);c&&(c.toggleClass("ui-state-disabled",b).attr("aria-disabled",!b),b?this.element.find("optgroup").eq(a).attr("disabled","disabled"):this.element.find("optgroup").eq(a).removeAttr("disabled"))},index:function(b){return arguments.length?this._disabled(a(this._optionLis[b]))||b==this._selectedIndex()?!1:(this.element[0].selectedIndex=b,this._refreshValue(),this.change(),void 0):this._selectedIndex()},value:function(a){return arguments.length&&a!=this.element[0].value?(this.element[0].value=a,this._refreshValue(),this.change(),void 0):this.element[0].value},_refreshValue:function(){var a="popup"==this.options.style?" ui-state-active":"",b="ui-selectmenu-item-"+Math.round(1e3*Math.random());this.list.find(".ui-selectmenu-item-selected").removeClass("ui-selectmenu-item-selected"+a).find("a").attr("aria-selected","false").attr("id",""),this._selectedOptionLi().addClass("ui-selectmenu-item-selected"+a).find("a").attr("aria-selected","true").attr("id",b);var c=this.newelement.data("optionClasses")?this.newelement.data("optionClasses"):"",d=this._selectedOptionLi().data("optionClasses")?this._selectedOptionLi().data("optionClasses"):"";this.newelement.removeClass(c).data("optionClasses",d).addClass(d).find(".ui-selectmenu-status").html(this._selectedOptionLi().find("a:eq(0)").html()),this.list.attr("aria-activedescendant",b)},_refreshPosition:function(){var b=this.options,c={of:this.newelement,my:"left top",at:"left bottom",collision:"flip"};if("popup"==b.style){var d=this._selectedOptionLi();c.my="left top"+(this.list.offset().top-d.offset().top-(this.newelement.outerHeight()+d.outerHeight())/2),c.collision="fit"}this.listWrap.removeAttr("style").zIndex(this.element.zIndex()+2).position(a.extend(c,b.positionOptions))}})}(jQuery),function(a){var b;"function"==typeof b&&b.amd?b(["jquery"],a):a(jQuery)}(function(a){function b(a){return a}function c(a){return decodeURIComponent(a.replace(e," "))}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return f.json?JSON.parse(a):a}catch(b){}}var e=/\+/g,f=a.cookie=function(e,g,h){if(void 0!==g){if(h=a.extend({},f.defaults,h),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=f.json?JSON.stringify(g):String(g),document.cookie=[f.raw?e:encodeURIComponent(e),"=",f.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join(""),document}for(var k=f.raw?b:c,l=document.cookie.split("; "),m=e?void 0:{},n=0,o=l.length;o>n;n++){var p=l[n].split("="),q=k(p.shift()),r=k(p.join("="));if(e&&e===q){m=d(r);break}e||(m[q]=d(r))}return m};f.defaults={},a.removeCookie=function(b,c){return void 0!==a.cookie(b)?(a.cookie(b,"",a.extend({},c,{expires:-1})),!0):!1}});
js/edit-event-controller.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  var eventorganiser=eventorganiser||{};eventorganiser.versionCompare=function(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=Math.max(c.length,d.length),f=0;e>f;f++){if(c[f]&&!d[f]&&parseInt(c[f],10)>0||parseInt(c[f],10)>parseInt(d[f],10))return 1;if(d[f]&&!c[f]&&parseInt(d[f],10)>0||parseInt(c[f],10)<parseInt(d[f],10))return-1}return 0},jQuery(document).ready(function(a){var b;eventOrganiserSchedulePicker.init({views:{start_date:"#eo-start-date",start_time:"#eo-start-time",end_date:"#eo-end-date",end_time:"#eo-end-time",occurrence_picker:"#eo-occurrence-datepicker",occurrence_picker_toggle:".eo_occurrence_toggle",schedule_last_date:"#eo-schedule-last-date",schedule:"#eo-event-recurrence",is_all_day:"#eo-all-day",frequency:"#eo-recurrence-frequency",week_repeat:"#eo-day-of-week-repeat",month_repeat:"#eo-day-of-month-repeat",recurrence_section:".reocurrence_row",include:"#eo-occurrence-includes",exclude:"#eo-occurrence-excludes",schedule_span:"#eo-recurrence-schedule-label",summary:"#eo-event-summary"},format:EO_Ajax_Event.format,is24hour:Boolean(EO_Ajax_Event.is24hour),startday:EO_Ajax_Event.startday,schedule:window.eventOrganiserSchedule,locale:EO_Ajax_Event.locale,editable:"once"==a("#eo-event-recurrence").val()}),a("#eo-event-recurrring-notice").click(function(){window.eventOrganiserSchedulePicker.options.editable=a("#eo-event-recurrring-notice").is(":checked"),window.eventOrganiserSchedulePicker.update_form()}),eovenue.init_map("venuemap",{lat:a("#eo_venue_Lat").val(),lng:a("#eo_venue_Lng").val(),draggable:!1,onPositionchanged:function(){var a=this.getPosition();jQuery("#eo_venue_Lat").val(a.lat().toFixed(6)),jQuery("#eo_venue_Lng").val(a.lng().toFixed(6)),this.getMap().setCenter(a),google.maps.event.trigger(eovenue.get_map("venuemap").map,"resize"),this.getMap().setZoom(15)}}),a.widget("ui.combobox",{_create:function(){var c=this.element.hide(),d=c.attr("id"),e=c.children(":selected"),f=e.val()?e.text():"",g=a("<span>").addClass("ui-combobox eo-venue-input").insertAfter(c),h=a('<input type="hidden" name="'+c.attr("name")+'" value="'+e.val()+'"/>'),i=a("<input>").attr("id",d).appendTo(g).val(f).addClass("ui-combobox-input"),j={delay:0,minLength:0,source:function(b,c){i.addClass("eo-waiting"),a.getJSON(EO_Ajax_Event.ajaxurl+"?action=eo-search-venue",b,function(b){var d=a.map(b,function(a){return a.label=a.name,a});c(d),i.removeClass("eo-waiting")})},select:function(b,c){if(a(".venue_row").length>0){0===parseInt(c.item.term_id,10)?(a(".venue_row").hide(),a("#eventorganiser_detail .eo-add-new-venue").hide()):(a(".venue_row").show(),a("#eventorganiser_detail .eo-add-new-venue").hide());var d=new google.maps.LatLng(c.item.venue_lat,c.item.venue_lng);eovenue.get_map("venuemap").marker[0].setPosition(d)}h.val(c.item.term_id)}};i.autocomplete(j).addClass("ui-widget-content ui-corner-left"),this.element.replaceWith(h);var k=a.ui?a.ui.version||0:-1,l=eventorganiser.versionCompare(k,"1.10")>=0?"ui-autocomplete":"autocomplete";i.data(l)._renderItem=function(b,c){if(0===parseInt(c.term_id,10))return a("<li></li>").data(l+"-item",c).append("<a>"+c.label+"</a>").appendTo(b);var d=[c.venue_address,c.venue_city,c.venue_state,c.venue_postcode,c.venue_country],e=a.grep(d,function(a){return a}).join(", "),f=eventorganiser.versionCompare(k,"1.10")>=0?"ui-autocomplete-item":"item.autocomplete";return a("<li></li>").data(f,c).append("<a>"+c.label+"</br> <span style='font-size: 0.8em'><em>"+e+"</span></em></a>").appendTo(b)};var m=a("<span>").addClass("eo-venue-combobox-buttons").appendTo(g);a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:27px;'>").attr("title","Show All Venues").appendTo(m).button({icons:{primary:"ui-icon-triangle-1-s"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right ui-combobox-toggle ui-combobox-button").mousedown(function(){wasOpen=i.autocomplete("widget").is(":visible")}).click(function(b){b.preventDefault(),wasOpen||(a(this).blur(),i.autocomplete("search","").focus())}),EO_Ajax_Event.current_user_can.manage_venues&&a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:27px;'>").attr("title","Create New Venue").appendTo(m).button({icons:{primary:"ui-icon-plus"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right add-new-venue ui-combobox-button").click(function(c){c.preventDefault(),a("#eventorganiser_detail .eo-add-new-venue").show(),a(".venue_row").show(),b={id:a("[name='eo_input[event-venue]']").val(),label:a(".eo-venue-input input").val(),lat:a("#eo_venue_Lat").val(),lng:a("#eo_venue_Lng").val()},a("[name='eo_input[event-venue]']").val(0),a(".eo-venue-combobox-select").hide(),a(".eo-venue-input input").val("");var d=EO_Ajax_Event.location;if(d)d=d.split("/"),eovenue.geocode(d[d.length-1],function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)});else{var e=new google.maps.LatLng(0,0);eovenue.get_map("venuemap").marker[0].setPosition(e),eovenue.get_map("venuemap").map.setZoom(1)}a("#eventorganiser_detail .eo-add-new-venue input").first().focus()})}}),a("#venue_select").combobox(),a(".eo_addressInput").change(function(){var b=[];a(".eo_addressInput").each(function(){b.push(jQuery(this).val())}),eovenue.geocode(b.join(", "),function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)})}),a(".eo-add-new-venue-cancel").click(function(c){c.preventDefault(),a(".eo-venue-combobox-select").show().find("input:visible").first().focus(),a(".eo-add-new-venue input").val("");var d=new google.maps.LatLng(b.lat,b.lng);eovenue.get_map("venuemap").marker[0].setPosition(d),a("[name='eo_input[event-venue]']").val(b.id),a(".eo-venue-input input").val(b.label),a("#eventorganiser_detail .eo-add-new-venue").hide()})});
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
  var eventorganiser=eventorganiser||{};eventorganiser.versionCompare=function(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=Math.max(c.length,d.length),f=0;e>f;f++){if(c[f]&&!d[f]&&parseInt(c[f],10)>0||parseInt(c[f],10)>parseInt(d[f],10))return 1;if(d[f]&&!c[f]&&parseInt(d[f],10)>0||parseInt(c[f],10)<parseInt(d[f],10))return-1}return 0},jQuery(document).ready(function(a){var b;eventOrganiserSchedulePicker.init({views:{start_date:"#eo-start-date",start_time:"#eo-start-time",end_date:"#eo-end-date",end_time:"#eo-end-time",occurrence_picker:"#eo-occurrence-datepicker",occurrence_picker_toggle:".eo_occurrence_toggle",schedule_last_date:"#eo-schedule-last-date",schedule:"#eo-event-recurrence",is_all_day:"#eo-all-day",frequency:"#eo-recurrence-frequency",week_repeat:"#eo-day-of-week-repeat",month_repeat:"#eo-day-of-month-repeat",recurrence_section:".reocurrence_row",include:"#eo-occurrence-includes",exclude:"#eo-occurrence-excludes",schedule_span:"#eo-recurrence-schedule-label",summary:"#eo-event-summary"},format:EO_Ajax_Event.format,is24hour:Boolean(EO_Ajax_Event.is24hour),startday:EO_Ajax_Event.startday,schedule:window.eventOrganiserSchedule,locale:EO_Ajax_Event.locale,editable:"once"==a("#eo-event-recurrence").val()}),a("#eo-event-recurrring-notice").click(function(){window.eventOrganiserSchedulePicker.options.editable=a("#eo-event-recurrring-notice").is(":checked"),window.eventOrganiserSchedulePicker.update_form()}),eovenue.init_map("venuemap",{lat:a("#eo_venue_Lat").val(),lng:a("#eo_venue_Lng").val(),draggable:!1,onPositionchanged:function(){var a=this.getPosition();jQuery("#eo_venue_Lat").val(a.lat().toFixed(6)),jQuery("#eo_venue_Lng").val(a.lng().toFixed(6)),this.getMap().setCenter(a),google.maps.event.trigger(eovenue.get_map("venuemap").map,"resize"),this.getMap().setZoom(15)}}),a.widget("ui.combobox",{_create:function(){var c=this.element.hide(),d=c.attr("id"),e=c.children(":selected"),f=e.val()?e.text():"",g=a("<span>").addClass("ui-combobox eo-venue-input").insertAfter(c),h=a('<input type="hidden" name="'+c.attr("name")+'" value="'+e.val()+'"/>'),i=a("<input>").attr("id",d).appendTo(g).val(f).addClass("ui-combobox-input"),j={delay:0,minLength:0,source:function(b,c){i.addClass("eo-waiting"),a.getJSON(EO_Ajax_Event.ajaxurl+"?action=eo-search-venue",b,function(b){var d=a.map(b,function(a){return a.label=a.name,a});c(d),i.removeClass("eo-waiting")})},select:function(b,c){if(a(".venue_row").length>0){0===parseInt(c.item.term_id,10)?(a(".venue_row").hide(),a("#eventorganiser_detail .eo-add-new-venue").hide()):(a(".venue_row").show(),a("#eventorganiser_detail .eo-add-new-venue").hide());var d=new google.maps.LatLng(c.item.venue_lat,c.item.venue_lng);eovenue.get_map("venuemap").marker[0].setPosition(d)}h.val(c.item.term_id)}};i.autocomplete(j).addClass("ui-widget-content ui-corner-left"),this.element.replaceWith(h);var k=a.ui?a.ui.version||0:-1,l=eventorganiser.versionCompare(k,"1.10")>=0?"ui-autocomplete":"autocomplete";i.data(l)._renderItem=function(b,c){if(0===parseInt(c.term_id,10))return a("<li></li>").data(l+"-item",c).append("<a>"+c.label+"</a>").appendTo(b);var d=[c.venue_address,c.venue_city,c.venue_state,c.venue_postcode,c.venue_country],e=a.grep(d,function(a){return a}).join(", "),f=eventorganiser.versionCompare(k,"1.10")>=0?"ui-autocomplete-item":"item.autocomplete";return a("<li></li>").data(f,c).append("<a>"+c.label+"</br> <span style='font-size: 0.8em'><em>"+e+"</span></em></a>").appendTo(b)};var m=a("<span>").addClass("eo-venue-combobox-buttons").appendTo(g);a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:27px;'>").attr("title","Show All Venues").appendTo(m).button({icons:{primary:"ui-icon-triangle-1-s"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right ui-combobox-toggle ui-combobox-button").mousedown(function(){wasOpen=i.autocomplete("widget").is(":visible")}).click(function(b){b.preventDefault(),wasOpen||(a(this).blur(),i.autocomplete("search","").focus())}),EO_Ajax_Event.current_user_can.manage_venues&&a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:27px;'>").attr("title","Create New Venue").appendTo(m).button({icons:{primary:"ui-icon-plus"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right add-new-venue ui-combobox-button").click(function(c){c.preventDefault(),a("#eventorganiser_detail .eo-add-new-venue").show(),a(".venue_row").show(),b={id:a("[name='eo_input[event-venue]']").val(),label:a(".eo-venue-input input").val(),lat:a("#eo_venue_Lat").val(),lng:a("#eo_venue_Lng").val()},a("[name='eo_input[event-venue]']").val(0),a(".eo-venue-combobox-select").hide(),a(".eo-venue-input input").val("");var d=EO_Ajax_Event.location;if(d)d=d.split("/"),eovenue.geocode(d[d.length-1],function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)});else{var e=new google.maps.LatLng(0,0);eovenue.get_map("venuemap").marker[0].setPosition(e),eovenue.get_map("venuemap").map.setZoom(1)}a("#eventorganiser_detail .eo-add-new-venue input").first().focus()})}}),a("#venue_select").combobox(),a(".eo_addressInput").change(function(){var b=[];a(".eo_addressInput").each(function(){b.push(jQuery(this).val())}),eovenue.geocode(b.join(", "),function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)})}),a(".eo-add-new-venue-cancel").click(function(c){c.preventDefault(),a(".eo-venue-combobox-select").show().find("input:visible").first().focus(),a(".eo-add-new-venue input").val("");var d=new google.maps.LatLng(b.lat,b.lng);eovenue.get_map("venuemap").marker[0].setPosition(d),a("[name='eo_input[event-venue]']").val(b.id),a(".eo-venue-input input").val(b.label),a("#eventorganiser_detail .eo-add-new-venue").hide()})});
js/event-manager.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  !function(a,b){"use strict";if("undefined"==typeof a.wp||"undefined"==typeof a.wp.hooks){var c=function(){function a(a,b,c,d){return"string"==typeof a&&"function"==typeof b&&(c=parseInt(c||10,10),h("actions",a,b,c,d)),k}function b(){var a=Array.prototype.slice.call(arguments),b=a.shift();return"string"==typeof b&&j("actions",b,a),k}function c(a,b){return"string"==typeof a&&g("actions",a,b),k}function d(a,b,c,d){return"string"==typeof a&&"function"==typeof b&&(c=parseInt(c||10,10),h("filters",a,b,c)),k}function e(){var a=Array.prototype.slice.call(arguments),b=a.shift();return"string"==typeof b?j("filters",b,a):k}function f(a,b){return"string"==typeof a&&g("filters",a,b),k}function g(a,b,c,d){if(l[a][b])if(c){var e,f=l[a][b];if(d)for(e=f.length;e--;){var g=f[e];g.callback===c&&g.context===d&&f.splice(e,1)}else for(e=f.length;e--;)f[e].callback===c&&f.splice(e,1)}else l[a][b]=[]}function h(a,b,c,d,e){var f={callback:c,priority:d,context:e},g=l[a][b];g?(g.push(f),g=i(g)):g=[f],l[a][b]=g}function i(a){for(var b,c,d,e=1,f=a.length;f>e;e++){for(b=a[e],c=e;(d=a[c-1])&&d.priority>b.priority;)a[c]=a[c-1],--c;a[c]=b}return a}function j(a,b,c){var d=l[a][b];if(!d)return"filters"===a?c[0]:!1;var e=0,f=d.length;if("filters"===a)for(;f>e;e++)c[0]=d[e].callback.apply(d[e].context,c);else for(;f>e;e++)d[e].callback.apply(d[e].context,c);return"filters"===a?c[0]:!0}var k={removeFilter:f,applyFilters:e,applyFilter:e,addFilter:d,removeAction:c,doAction:b,addAction:a},l={actions:{},filters:{}};return k};a.wp=a.wp||{},a.wp.hooks=new c}}(window);
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
  !function(a,b){"use strict";if("undefined"==typeof a.wp||"undefined"==typeof a.wp.hooks){var c=function(){function a(a,b,c,d){return"string"==typeof a&&"function"==typeof b&&(c=parseInt(c||10,10),h("actions",a,b,c,d)),k}function b(){var a=Array.prototype.slice.call(arguments),b=a.shift();return"string"==typeof b&&j("actions",b,a),k}function c(a,b){return"string"==typeof a&&g("actions",a,b),k}function d(a,b,c,d){return"string"==typeof a&&"function"==typeof b&&(c=parseInt(c||10,10),h("filters",a,b,c)),k}function e(){var a=Array.prototype.slice.call(arguments),b=a.shift();return"string"==typeof b?j("filters",b,a):k}function f(a,b){return"string"==typeof a&&g("filters",a,b),k}function g(a,b,c,d){if(l[a][b])if(c){var e,f=l[a][b];if(d)for(e=f.length;e--;){var g=f[e];g.callback===c&&g.context===d&&f.splice(e,1)}else for(e=f.length;e--;)f[e].callback===c&&f.splice(e,1)}else l[a][b]=[]}function h(a,b,c,d,e){var f={callback:c,priority:d,context:e},g=l[a][b];g?(g.push(f),g=i(g)):g=[f],l[a][b]=g}function i(a){for(var b,c,d,e=1,f=a.length;f>e;e++){for(b=a[e],c=e;(d=a[c-1])&&d.priority>b.priority;)a[c]=a[c-1],--c;a[c]=b}return a}function j(a,b,c){var d=l[a][b];if(!d)return"filters"===a?c[0]:!1;var e=0,f=d.length;if("filters"===a)for(;f>e;e++)c[0]=d[e].callback.apply(d[e].context,c);else for(;f>e;e++)d[e].callback.apply(d[e].context,c);return"filters"===a?c[0]:!0}var k={removeFilter:f,applyFilters:e,applyFilter:e,addFilter:d,removeAction:c,doAction:b,addAction:a},l={actions:{},filters:{}};return k};a.wp=a.wp||{},a.wp.hooks=new c}}(window);
js/event.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  var eo_include_dates,eo_exclude_dates,eo_viewing_month;!function(a){function b(b,c,d){var e,f=new Array("SU","MO","TU","WE","TH","FR","SA"),g=[],h=!1;switch(b.schedule){case"once":case"custom":var i=a.datepicker.formatDate("yy-mm-dd",b.start);return g.push(i),g;case"daily":b.start<c?(e=Math.abs((c-b.start)/864e5)-1,e%=b.frequency):e=parseInt(b.start.getDate(),10);var j=b.frequency,k=[],l=new Date(c);l.setDate(c.getDate()+(e-1)),k.push(l);break;case"weekly":var m=c.getDay();k=[],a.each(b.schedule_meta,function(a,d){a=f.indexOf(d),l=new Date(b.start),l.setDate(b.start.getDate()+(a-b.start.getDay()+7)%7),c>l&&(e=Math.abs((c-b.start)/864e5),e-=e%(7*b.frequency),l.setDate(l.getDate()+e)),k.push(l)}),j=7*b.frequency;break;case"monthly":var n=12*(c.getFullYear()-b.start.getFullYear())+(c.getMonth()-b.start.getMonth());if(n%b.frequency!==0)return;if(b.schedule_meta.match(/BYMONTHDAY=(\d+)/)){var o=b.start.getDate(),p=d.getDate();p>=o&&(h=new Date(c.getFullYear(),c.getMonth(),o))}else{var q,r=b.schedule_meta.match(/BYDAY=(\d+)(MO|TU|WE|TH|FR|SA|SU)/),s=parseInt(r[1],10)-1,t=b.start.getDay();if(s>=4){var u=d.getDay();q=d.getDate()+(t-u-7)%7}else{m=c.getDay();var v=(t-m+7)%7;q=v+7*s+1}h=new Date(c),h.setDate(q)}return h&&h<=b.schedule_last&&(i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i)),g;case"yearly":var w=c.getFullYear()-b.start.getFullYear();if(w%b.frequency!==0)return g;var x=new Date(c.getFullYear(),b.start.getMonth(),b.start.getDate());return c.getMonth()==b.start.getMonth()&&x.getMonth()==b.start.getMonth()&&(h=new Date(b.start),h.setYear(c.getFullYear()),h<=b.schedule_last&&(i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i))),g;default:return g}for(var y in k)for(h=new Date(k[y]);d>=h&&h<=b.schedule_last;)i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i),h.setDate(h.getDate()+j);return g}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length,c=Number(arguments[1])||0;for(c=0>c?Math.ceil(c):Math.floor(c),0>c&&(c+=b);b>c;c++)if(c in this&&this[c]===a)return c;return-1}),Date.prototype.eoGetOrdinal=function(){var a=this.getDate();switch(a){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},window.eventOrganiserSchedulePicker={init:function(b){var c=this;this.options=b,this.schedule=b.schedule,this.set_up_datepickers(),this.set_up_timepickers(),a(".event-date :input, .eo-all-day-toggle").change(function(b){c.update_schedule(),c.update_form(),a(this).hasClass("eo-all-day-toggle")||c.update_occurrencepicker_rules()}),this.update_schedule(),this.update_form();var d=new Date;eo_viewing_month=[d.getFullYear(),d.getMonth()+1],this.schedule.generate_dates_by_rule(d.getFullYear(),d.getMonth()+1,{})},set_up_datepickers:function(){var b=this,c=this.options.views,d=this.options.locale;a(c.start_date).data("eo-datepicker","start"),a(c.end_date).data("eo-datepicker","end");if(a(c.is_all_day).addClass("eo-all-day-toggle"),a(c.schedule_last_date))var e=a(c.schedule_last_date).datepicker({nextText:">",prevText:"<",dateFormat:this.options.format,changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,isRTL:d.isrtl,firstDay:parseInt(this.options.startday,10),beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")}}).data("eo-datepicker","schedule_last");var f=a(c.start_date+", "+c.end_date).datepicker({dateFormat:this.options.format,nextText:">",prevText:"<",changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,firstDay:parseInt(this.options.startday,10),onSelect:function(d){var g="start"==a(this).data("eo-datepicker")?"minDate":"maxDate",h=a(this).data("datepicker"),i=a.datepicker.parseDate(h.settings.dateFormat||a.datepicker._defaults.dateFormat,d,h.settings);f.not(this).datepicker("option",g,i),"from_date"==this.id&&e.datepicker("option","minDate",i);var j=a(c.start_date).datepicker("getDate"),k=a(c.end_date).datepicker("getDate");if(j.getTime()!=k.getTime()){var l={hour:null,minute:null};a(c.start_time+", "+c.end_time).eotimepicker("option",{maxTime:l,minTime:l})}b.update_schedule(),b.update_occurrencepicker_rules(),b.update_form()},beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")}}),g=a(c.occurrence_picker);g.length>0&&(g.datepicker({dateFormat:"yy-mm-dd",nextText:">",prevText:"<",changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,firstDay:parseInt(this.options.startday,10),onSelect:function(b){eventOrganiserSchedule.add_or_remove_date(b),a(eventOrganiserSchedulePicker.options.views.include).val(eventOrganiserSchedule.include.join(",\r\n")),a(eventOrganiserSchedulePicker.options.views.exclude).val(eventOrganiserSchedule.exclude.join(",\r\n"))},beforeShowDay:function(b){var c=a.datepicker.formatDate("yy-mm-dd",b),d=eventOrganiserSchedule.is_date_eventful(c);return d[0]?[!0,"eo-op-date-selected",""]:[!0,"eo-op-date-not-selected",""]},beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")},onChangeMonthYear:eventOrganiserSchedule.generate_dates_by_rule}).hide().find(".ui-datepicker-inline").click(function(a){a||(a=window.event),a.cancelBubble=!0,a.stopPropagation&&a.stopPropagation()}),a("html").click(function(){g.hide(),a(c.occurrence_picker_toggle).val(d.showDates)})),a(c.occurrence_picker_toggle).click(function(b){b.preventDefault(),b.stopPropagation(),g.toggle(),g.is(":visible")?(a(this).val(d.hideDates),a(c.occurrence_picker).datepicker("refresh")):a(this).val(d.showDates)})},update_occurrencepicker_rules:function(){eo_exclude_dates=[],eo_include_dates=[],this.schedule.generate_dates_by_rule(eo_viewing_month[0],eo_viewing_month[1],{}),a(this.options.views.occurrence_picker).datepicker("refresh")},set_up_timepickers:function(){var b=this.options,c=this.options.views;a(c.start_time).data("eo-event-data","start-time"),a(c.end_time).data("eo-event-data","end-time"),a(c.start_time+", "+c.end_time).eotimepicker({showPeriodLabels:!b.is24hour,showPeriod:!this.options.is24hour,showLeadingZero:b.is24hour,periodSeparator:"",amPmText:b.locale.meridian,hourText:b.locale.hour,minuteText:b.locale.minute,isRTL:b.locale.isrtl,onSelect:function(b,d){var e=a(c.start_date).datepicker("getDate"),f=a(c.end_date).datepicker("getDate");if(e.getTime()==f.getTime()){var g={hour:d.hours,minute:d.minutes};"start-time"==a(d.input).data("eo-event-data")?a(c.end_time).eotimepicker("option",{minTime:g}):a(c.start_time).eotimepicker("option",{maxTime:g})}}}).addClass("eo-time-picker")},update_schedule:function(){var b=new Array("SU","MO","TU","WE","TH","FR","SA"),c=this.options.views,d={schedule:a(c.schedule).val(),frequency:parseInt(a(c.frequency).val(),10),schedule_last:a(c.schedule_last_date).datepicker("getDate"),start:a(c.start_date).datepicker("getDate"),end:a(c.end_date).datepicker("getDate"),is_all_day:a(c.is_all_day).attr("checked"),include:a(c.include).length>0?a(c.include).val().split(","):[],exclude:a(c.exclude).length>0?a(c.exclude).val().split(","):[]};if("weekly"==d.schedule){if(d.schedule_meta=[],0===a(c.week_repeat+" :checkbox:checked").length){var e=d.start.getDay();a(c.week_repeat+" :checkbox[value='"+b[e]+"']").attr("checked",!0)}a(c.week_repeat+" :checkbox:checked").each(function(){d.schedule_meta.push(a(this).val())})}else if("monthly"==d.schedule)if("BYMONTHDAY="==a(c.month_repeat+" :radio:checked").val())d.schedule_meta="BYMONTHDAY="+d.start.getDate();else{var f=d.start.getDay()%7,g=parseInt(Math.floor((d.start.getDate()-1)/7),10);d.schedule_meta="BYDAY="+(g+1)+b[f]}this.schedule=eventOrganiserSchedule.init(d),eo_exclude_dates=d.exclude,eo_include_dates=d.include},update_form:function(){var b=this.options.views,c=this.options.locale,d=this.schedule,e=700;switch(a(".event-date :input").attr("disabled",!this.options.editable).toggleClass("ui-state-disabled",!this.options.editable),a("label[for=eo-all-day]").toggleClass("ui-state-disabled",!this.options.editable),this.options.editable&&a(b.start_time+", "+b.end_time).attr("disabled",d.is_all_day).toggleClass("ui-state-disabled",d.is_all_day),"once"==d.schedule||"custom"==d.schedule?(a(b.recurrence_section+" :input").attr("disabled",!0),a(b.recurrence_section).hide()):(a(b.recurrence_section+" :input").attr("disabled",!1),a(b.recurrence_section).fadeIn(e)),d.schedule){case"once":case"custom":a(d.frequency).val("1"),a(b.month_repeat+", "+b.week_repeat).show();break;case"weekly":d.frequency>1?a(b.schedule_span).text(c.weeks):a(b.schedule_span).text(c.week),a(b.week_repeat).fadeIn(e),a(b.week_repeat+" :input").attr("disabled",!1),a(b.month_repeat).hide(),a(b.month_repeat+" :input").attr("disabled",!0);break;case"monthly":d.frequency>1?a(b.schedule_span).text(c.months):a(b.schedule_span).text(c.month),a(b.month_repeat).fadeIn(e),a(b.month_repeat+" :input").attr("disabled",!1),a(b.week_repeat).hide(),a(b.week_repeat+" :input").attr("disabled",!0);break;case"daily":d.frequency>1?a(b.schedule_span).text(c.days):a(b.schedule_span).text(c.day),a(b.week_repeat+", "+b.month_repeat).hide(),a(b.week_repeat+" :input, "+b.month_repeat+" :input").attr("disabled",!0);break;case"yearly":d.frequency>1?a(b.schedule_span).text(c.years):a(b.schedule_span).text(c.year),a(b.week_repeat+", "+b.month_repeat).hide(),a(b.week_repeat+" :input, "+b.month_repeat+" :input").attr("disabled",!0)}null===a("#venue_select").val()&&a(".venue_row").hide(),a(b.summary).html(d.generate_summary(c))}},eventOrganiserSchedule={self:this,init:function(b){var c={schedule:"once",frequency:1,schedule_last:new Date,start:new Date,end:new Date,is_all_day:!1,dates_by_rule:[]};b=a.extend({},c,b);for(var d in b)this[d]=b[d];return this},generate_dates_by_rule:function(a,c,d){var e=new Date(a,c-1,1),f=new Date(a,c,1),g=new Date(f-1);eventOrganiserSchedule.schedule_last<e||eventOrganiserSchedule.start>g||(eventOrganiserSchedule.dates_by_rule=b(eventOrganiserSchedule,e,g))},generate_summary:function(b){var c=b.weekDay,d=b.summary+" ",e={monthNamesShort:b.monthAbbrev,dayNamesMin:b.dayAbbrev,monthNames:b.monthNames},f=this.schedule,g=new Array("SU","MO","TU","WE","TH","FR","SA");switch(f){case"once":return"This event will be a one-time event";case"custom":case"daily":d+=this.frequency>1?sprintf(b.dayPlural,this.frequency):b.daySingle;break;case"weekly":d+=this.frequency>1?sprintf(b.weekPlural,this.frequency):b.weekSingle;var h=a.map(this.schedule_meta,function(a,b){return c[g.indexOf(a)]});d+=" "+h.join(", ");break;case"monthly":if(d+=this.frequency>1?sprintf(b.monthPlural,this.frequency):b.monthSingle,this.schedule_meta.match(/BYMONTHDAY=(\d+)/))d=d+" "+this.start.getDate()+this.start.eoGetOrdinal();else{var i=this.schedule_meta.match(/BYDAY=(\d+)(MO|TU|WE|TH|FR|SA|SU)/),j=parseInt(i[1],10)-1;d=d+" "+b.occurrence[j]+" "+c[g.indexOf(i[2])]}break;case"yearly":d+=this.frequency>1?sprintf(b.yearPlural,this.frequency):b.yearSingle,d=d+" "+a.datepicker.formatDate("MM d",this.start,e)+this.start.eoGetOrdinal()}return null!==this.schedule_last&&(d=d+" "+b.until+" "+a.datepicker.formatDate("MM d'"+this.schedule_last.eoGetOrdinal()+"' yy",this.schedule_last,e)),d},is_date_eventful:function(b){var c=a.inArray(b,eventOrganiserSchedule.dates_by_rule),d=a.inArray(b,eventOrganiserSchedule.exclude),e=a.inArray(b,eventOrganiserSchedule.include);return c>-1?d>-1&&-1==e?[!1,d]:d>-1&&e>-1?[!0,e]:[!0,-1]:e>-1?[!0,e]:[!1,-1]},add_or_remove_date:function(b,c){var d,e=eventOrganiserSchedule.is_date_eventful(b);e[0]?(d=e[1],d>-1?eventOrganiserSchedule.include.splice(d,1):a.inArray(b,eventOrganiserSchedule.exclude)<0&&eventOrganiserSchedule.exclude.push(b)):(d=e[1],d>-1?eventOrganiserSchedule.exclude.splice(d,1):a.inArray(b,eventOrganiserSchedule.include)<0&&eventOrganiserSchedule.include.push(b)),eo_exclude_dates=eventOrganiserSchedule.exclude,eo_include_dates=eventOrganiserSchedule.include}}}(jQuery),function(a){function b(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function c(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var d=function(){return d.cache.hasOwnProperty(arguments[0])||(d.cache[arguments[0]]=d.parse(arguments[0])),d.format.call(null,d.cache[arguments[0]],arguments)};d.format=function(a,e){var f,g,h,i,j,k,l,m=1,n=a.length,o="",p=[];for(g=0;n>g;g++)if(o=b(a[g]),"string"===o)p.push(a[g]);else if("array"===o){if(i=a[g],i[2])for(f=e[m],h=0;h<i[2].length;h++){if(!f.hasOwnProperty(i[2][h]))throw d('[sprintf] property "%s" does not exist',i[2][h]);f=f[i[2][h]]}else f=i[1]?e[i[1]]:e[m++];if(/[^s]/.test(i[8])&&"number"!=b(f))throw d("[sprintf] expecting number but found %s",b(f));switch(i[8]){case"b":f=f.toString(2);break;case"c":f=String.fromCharCode(f);break;case"d":f=parseInt(f,10);break;case"e":f=i[7]?f.toExponential(i[7]):f.toExponential();break;case"f":f=i[7]?parseFloat(f).toFixed(i[7]):parseFloat(f);break;case"o":f=f.toString(8);break;case"s":f=(f=String(f))&&i[7]?f.substring(0,i[7]):f;break;case"u":f>>>=0;break;case"x":f=f.toString(16);break;case"X":f=f.toString(16).toUpperCase()}f=/[def]/.test(i[8])&&i[3]&&f>=0?"+"+f:f,k=i[4]?"0"==i[4]?"0":i[4].charAt(1):" ",l=i[6]-String(f).length,j=i[6]?c(k,l):"",p.push(i[5]?f+j:j+f)}return p.join("")},d.cache={},d.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length)}return d};var e=function(a,b,c){return c=b.slice(0),c.splice(0,0,a),d.apply(null,c)};a.sprintf=d,a.vsprintf=e}("undefined"!=typeof exports?exports:window);
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
  var eo_include_dates,eo_exclude_dates,eo_viewing_month;!function(a){function b(b,c,d){var e,f=new Array("SU","MO","TU","WE","TH","FR","SA"),g=[],h=!1;switch(b.schedule){case"once":case"custom":var i=a.datepicker.formatDate("yy-mm-dd",b.start);return g.push(i),g;case"daily":b.start<c?(e=Math.abs((c-b.start)/864e5)-1,e%=b.frequency):e=parseInt(b.start.getDate(),10);var j=b.frequency,k=[],l=new Date(c);l.setDate(c.getDate()+(e-1)),k.push(l);break;case"weekly":var m=c.getDay();k=[],a.each(b.schedule_meta,function(a,d){a=f.indexOf(d),l=new Date(b.start),l.setDate(b.start.getDate()+(a-b.start.getDay()+7)%7),c>l&&(e=Math.abs((c-b.start)/864e5),e-=e%(7*b.frequency),l.setDate(l.getDate()+e)),k.push(l)}),j=7*b.frequency;break;case"monthly":var n=12*(c.getFullYear()-b.start.getFullYear())+(c.getMonth()-b.start.getMonth());if(n%b.frequency!==0)return;if(b.schedule_meta.match(/BYMONTHDAY=(\d+)/)){var o=b.start.getDate(),p=d.getDate();p>=o&&(h=new Date(c.getFullYear(),c.getMonth(),o))}else{var q,r=b.schedule_meta.match(/BYDAY=(\d+)(MO|TU|WE|TH|FR|SA|SU)/),s=parseInt(r[1],10)-1,t=b.start.getDay();if(s>=4){var u=d.getDay();q=d.getDate()+(t-u-7)%7}else{m=c.getDay();var v=(t-m+7)%7;q=v+7*s+1}h=new Date(c),h.setDate(q)}return h&&h<=b.schedule_last&&(i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i)),g;case"yearly":var w=c.getFullYear()-b.start.getFullYear();if(w%b.frequency!==0)return g;var x=new Date(c.getFullYear(),b.start.getMonth(),b.start.getDate());return c.getMonth()==b.start.getMonth()&&x.getMonth()==b.start.getMonth()&&(h=new Date(b.start),h.setYear(c.getFullYear()),h<=b.schedule_last&&(i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i))),g;default:return g}for(var y in k)for(h=new Date(k[y]);d>=h&&h<=b.schedule_last;)i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i),h.setDate(h.getDate()+j);return g}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length,c=Number(arguments[1])||0;for(c=0>c?Math.ceil(c):Math.floor(c),0>c&&(c+=b);b>c;c++)if(c in this&&this[c]===a)return c;return-1}),Date.prototype.eoGetOrdinal=function(){var a=this.getDate();switch(a){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},window.eventOrganiserSchedulePicker={init:function(b){var c=this;this.options=b,this.schedule=b.schedule,this.set_up_datepickers(),this.set_up_timepickers(),a(".event-date :input, .eo-all-day-toggle").change(function(b){c.update_schedule(),c.update_form(),a(this).hasClass("eo-all-day-toggle")||c.update_occurrencepicker_rules()}),this.update_schedule(),this.update_form();var d=new Date;eo_viewing_month=[d.getFullYear(),d.getMonth()+1],this.schedule.generate_dates_by_rule(d.getFullYear(),d.getMonth()+1,{})},set_up_datepickers:function(){var b=this,c=this.options.views,d=this.options.locale;a(c.start_date).data("eo-datepicker","start"),a(c.end_date).data("eo-datepicker","end");if(a(c.is_all_day).addClass("eo-all-day-toggle"),a(c.schedule_last_date))var e=a(c.schedule_last_date).datepicker({nextText:">",prevText:"<",dateFormat:this.options.format,changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,isRTL:d.isrtl,firstDay:parseInt(this.options.startday,10),beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")}}).data("eo-datepicker","schedule_last");var f=a(c.start_date+", "+c.end_date).datepicker({dateFormat:this.options.format,nextText:">",prevText:"<",changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,firstDay:parseInt(this.options.startday,10),onSelect:function(d){var g="start"==a(this).data("eo-datepicker")?"minDate":"maxDate",h=a(this).data("datepicker"),i=a.datepicker.parseDate(h.settings.dateFormat||a.datepicker._defaults.dateFormat,d,h.settings);f.not(this).datepicker("option",g,i),"from_date"==this.id&&e.datepicker("option","minDate",i);var j=a(c.start_date).datepicker("getDate"),k=a(c.end_date).datepicker("getDate");if(j.getTime()!=k.getTime()){var l={hour:null,minute:null};a(c.start_time+", "+c.end_time).eotimepicker("option",{maxTime:l,minTime:l})}b.update_schedule(),b.update_occurrencepicker_rules(),b.update_form()},beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")}}),g=a(c.occurrence_picker);g.length>0&&(g.datepicker({dateFormat:"yy-mm-dd",nextText:">",prevText:"<",changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,firstDay:parseInt(this.options.startday,10),onSelect:function(b){eventOrganiserSchedule.add_or_remove_date(b),a(eventOrganiserSchedulePicker.options.views.include).val(eventOrganiserSchedule.include.join(",\r\n")),a(eventOrganiserSchedulePicker.options.views.exclude).val(eventOrganiserSchedule.exclude.join(",\r\n"))},beforeShowDay:function(b){var c=a.datepicker.formatDate("yy-mm-dd",b),d=eventOrganiserSchedule.is_date_eventful(c);return d[0]?[!0,"eo-op-date-selected",""]:[!0,"eo-op-date-not-selected",""]},beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")},onChangeMonthYear:eventOrganiserSchedule.generate_dates_by_rule}).hide().find(".ui-datepicker-inline").click(function(a){a||(a=window.event),a.cancelBubble=!0,a.stopPropagation&&a.stopPropagation()}),a("html").click(function(){g.hide(),a(c.occurrence_picker_toggle).val(d.showDates)})),a(c.occurrence_picker_toggle).click(function(b){b.preventDefault(),b.stopPropagation(),g.toggle(),g.is(":visible")?(a(this).val(d.hideDates),a(c.occurrence_picker).datepicker("refresh")):a(this).val(d.showDates)})},update_occurrencepicker_rules:function(){eo_exclude_dates=[],eo_include_dates=[],this.schedule.generate_dates_by_rule(eo_viewing_month[0],eo_viewing_month[1],{}),a(this.options.views.occurrence_picker).datepicker("refresh")},set_up_timepickers:function(){var b=this.options,c=this.options.views;a(c.start_time).data("eo-event-data","start-time"),a(c.end_time).data("eo-event-data","end-time"),a(c.start_time+", "+c.end_time).eotimepicker({showPeriodLabels:!b.is24hour,showPeriod:!this.options.is24hour,showLeadingZero:b.is24hour,periodSeparator:"",amPmText:b.locale.meridian,hourText:b.locale.hour,minuteText:b.locale.minute,isRTL:b.locale.isrtl,onSelect:function(b,d){var e=a(c.start_date).datepicker("getDate"),f=a(c.end_date).datepicker("getDate");if(e.getTime()==f.getTime()){var g={hour:d.hours,minute:d.minutes};"start-time"==a(d.input).data("eo-event-data")?a(c.end_time).eotimepicker("option",{minTime:g}):a(c.start_time).eotimepicker("option",{maxTime:g})}}}).addClass("eo-time-picker")},update_schedule:function(){var b=new Array("SU","MO","TU","WE","TH","FR","SA"),c=this.options.views,d={schedule:a(c.schedule).val(),frequency:parseInt(a(c.frequency).val(),10),schedule_last:a(c.schedule_last_date).datepicker("getDate"),start:a(c.start_date).datepicker("getDate"),end:a(c.end_date).datepicker("getDate"),is_all_day:a(c.is_all_day).attr("checked"),include:a(c.include).length>0?a(c.include).val().split(","):[],exclude:a(c.exclude).length>0?a(c.exclude).val().split(","):[]};if("weekly"==d.schedule){if(d.schedule_meta=[],0===a(c.week_repeat+" :checkbox:checked").length){var e=d.start.getDay();a(c.week_repeat+" :checkbox[value='"+b[e]+"']").attr("checked",!0)}a(c.week_repeat+" :checkbox:checked").each(function(){d.schedule_meta.push(a(this).val())})}else if("monthly"==d.schedule)if("BYMONTHDAY="==a(c.month_repeat+" :radio:checked").val())d.schedule_meta="BYMONTHDAY="+d.start.getDate();else{var f=d.start.getDay()%7,g=parseInt(Math.floor((d.start.getDate()-1)/7),10);d.schedule_meta="BYDAY="+(g+1)+b[f]}this.schedule=eventOrganiserSchedule.init(d),eo_exclude_dates=d.exclude,eo_include_dates=d.include},update_form:function(){var b=this.options.views,c=this.options.locale,d=this.schedule,e=700;switch(a(".event-date :input").attr("disabled",!this.options.editable).toggleClass("ui-state-disabled",!this.options.editable),a("label[for=eo-all-day]").toggleClass("ui-state-disabled",!this.options.editable),this.options.editable&&a(b.start_time+", "+b.end_time).attr("disabled",d.is_all_day).toggleClass("ui-state-disabled",d.is_all_day),"once"==d.schedule||"custom"==d.schedule?(a(b.recurrence_section+" :input").attr("disabled",!0),a(b.recurrence_section).hide()):(a(b.recurrence_section+" :input").attr("disabled",!1),a(b.recurrence_section).fadeIn(e)),d.schedule){case"once":case"custom":a(d.frequency).val("1"),a(b.month_repeat+", "+b.week_repeat).show();break;case"weekly":d.frequency>1?a(b.schedule_span).text(c.weeks):a(b.schedule_span).text(c.week),a(b.week_repeat).fadeIn(e),a(b.week_repeat+" :input").attr("disabled",!1),a(b.month_repeat).hide(),a(b.month_repeat+" :input").attr("disabled",!0);break;case"monthly":d.frequency>1?a(b.schedule_span).text(c.months):a(b.schedule_span).text(c.month),a(b.month_repeat).fadeIn(e),a(b.month_repeat+" :input").attr("disabled",!1),a(b.week_repeat).hide(),a(b.week_repeat+" :input").attr("disabled",!0);break;case"daily":d.frequency>1?a(b.schedule_span).text(c.days):a(b.schedule_span).text(c.day),a(b.week_repeat+", "+b.month_repeat).hide(),a(b.week_repeat+" :input, "+b.month_repeat+" :input").attr("disabled",!0);break;case"yearly":d.frequency>1?a(b.schedule_span).text(c.years):a(b.schedule_span).text(c.year),a(b.week_repeat+", "+b.month_repeat).hide(),a(b.week_repeat+" :input, "+b.month_repeat+" :input").attr("disabled",!0)}null===a("#venue_select").val()&&a(".venue_row").hide(),a(b.summary).html(d.generate_summary(c))}},eventOrganiserSchedule={self:this,init:function(b){var c={schedule:"once",frequency:1,schedule_last:new Date,start:new Date,end:new Date,is_all_day:!1,dates_by_rule:[]};b=a.extend({},c,b);for(var d in b)this[d]=b[d];return this},generate_dates_by_rule:function(a,c,d){var e=new Date(a,c-1,1),f=new Date(a,c,1),g=new Date(f-1);eventOrganiserSchedule.schedule_last<e||eventOrganiserSchedule.start>g||(eventOrganiserSchedule.dates_by_rule=b(eventOrganiserSchedule,e,g))},generate_summary:function(b){var c=b.weekDay,d=b.summary+" ",e={monthNamesShort:b.monthAbbrev,dayNamesMin:b.dayAbbrev,monthNames:b.monthNames},f=this.schedule,g=new Array("SU","MO","TU","WE","TH","FR","SA");switch(f){case"once":return"This event will be a one-time event";case"custom":case"daily":d+=this.frequency>1?sprintf(b.dayPlural,this.frequency):b.daySingle;break;case"weekly":d+=this.frequency>1?sprintf(b.weekPlural,this.frequency):b.weekSingle;var h=a.map(this.schedule_meta,function(a,b){return c[g.indexOf(a)]});d+=" "+h.join(", ");break;case"monthly":if(d+=this.frequency>1?sprintf(b.monthPlural,this.frequency):b.monthSingle,this.schedule_meta.match(/BYMONTHDAY=(\d+)/))d=d+" "+this.start.getDate()+this.start.eoGetOrdinal();else{var i=this.schedule_meta.match(/BYDAY=(\d+)(MO|TU|WE|TH|FR|SA|SU)/),j=parseInt(i[1],10)-1;d=d+" "+b.occurrence[j]+" "+c[g.indexOf(i[2])]}break;case"yearly":d+=this.frequency>1?sprintf(b.yearPlural,this.frequency):b.yearSingle,d=d+" "+a.datepicker.formatDate("MM d",this.start,e)+this.start.eoGetOrdinal()}return null!==this.schedule_last&&(d=d+" "+b.until+" "+a.datepicker.formatDate("MM d'"+this.schedule_last.eoGetOrdinal()+"' yy",this.schedule_last,e)),d},is_date_eventful:function(b){var c=a.inArray(b,eventOrganiserSchedule.dates_by_rule),d=a.inArray(b,eventOrganiserSchedule.exclude),e=a.inArray(b,eventOrganiserSchedule.include);return c>-1?d>-1&&-1==e?[!1,d]:d>-1&&e>-1?[!0,e]:[!0,-1]:e>-1?[!0,e]:[!1,-1]},add_or_remove_date:function(b,c){var d,e=eventOrganiserSchedule.is_date_eventful(b);e[0]?(d=e[1],d>-1?eventOrganiserSchedule.include.splice(d,1):a.inArray(b,eventOrganiserSchedule.exclude)<0&&eventOrganiserSchedule.exclude.push(b)):(d=e[1],d>-1?eventOrganiserSchedule.exclude.splice(d,1):a.inArray(b,eventOrganiserSchedule.include)<0&&eventOrganiserSchedule.include.push(b)),eo_exclude_dates=eventOrganiserSchedule.exclude,eo_include_dates=eventOrganiserSchedule.include}}}(jQuery),function(a){function b(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function c(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var d=function(){return d.cache.hasOwnProperty(arguments[0])||(d.cache[arguments[0]]=d.parse(arguments[0])),d.format.call(null,d.cache[arguments[0]],arguments)};d.format=function(a,e){var f,g,h,i,j,k,l,m=1,n=a.length,o="",p=[];for(g=0;n>g;g++)if(o=b(a[g]),"string"===o)p.push(a[g]);else if("array"===o){if(i=a[g],i[2])for(f=e[m],h=0;h<i[2].length;h++){if(!f.hasOwnProperty(i[2][h]))throw d('[sprintf] property "%s" does not exist',i[2][h]);f=f[i[2][h]]}else f=i[1]?e[i[1]]:e[m++];if(/[^s]/.test(i[8])&&"number"!=b(f))throw d("[sprintf] expecting number but found %s",b(f));switch(i[8]){case"b":f=f.toString(2);break;case"c":f=String.fromCharCode(f);break;case"d":f=parseInt(f,10);break;case"e":f=i[7]?f.toExponential(i[7]):f.toExponential();break;case"f":f=i[7]?parseFloat(f).toFixed(i[7]):parseFloat(f);break;case"o":f=f.toString(8);break;case"s":f=(f=String(f))&&i[7]?f.substring(0,i[7]):f;break;case"u":f>>>=0;break;case"x":f=f.toString(16);break;case"X":f=f.toString(16).toUpperCase()}f=/[def]/.test(i[8])&&i[3]&&f>=0?"+"+f:f,k=i[4]?"0"==i[4]?"0":i[4].charAt(1):" ",l=i[6]-String(f).length,j=i[6]?c(k,l):"",p.push(i[5]?f+j:j+f)}return p.join("")},d.cache={},d.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length)}return d};var e=function(a,b,c){return c=b.slice(0),c.splice(0,0,a),d.apply(null,c)};a.sprintf=d,a.vsprintf=e}("undefined"!=typeof exports?exports:window);
js/frontend.js CHANGED
@@ -275,7 +275,7 @@ jQuery(document).ready(function () {
275
  aspectRatio: calendars[i].aspectratio ? calendars[i].aspectratio : false,
276
  responsive: calendars[i].responsive,
277
  responsiveBreakpoint: calendars[i].responsivebreakpoint,
278
- defaultView: ( $(window).width() < 514 && calendars[i].responsive ) ? _eoResponsiveViewMap[calendars[i].defaultview] : calendars[i].defaultview,
279
  previousView: calendars[i].defaultview,
280
  nextDayThreshold: calendars[i].nextdaythreshold,
281
  windowResize: function(view) {
@@ -779,8 +779,6 @@ eventorganiser.google_map.prototype.tooltip = function(){
779
  return;
780
  }
781
 
782
- jQuery(this.getMap().getDiv()).css({overflow: 'visible'});
783
-
784
  // Create the tooltip on a dummy div and store it on the marker
785
  this.tooltip = jQuery('<div />').qtip({
786
  content: {
@@ -798,7 +796,8 @@ eventorganiser.google_map.prototype.tooltip = function(){
798
  at: "right center",
799
  my: "top center",
800
  target: pos,
801
- container: jQuery(this.getMap().getDiv())
 
802
  },
803
  show: {
804
  ready: true,
275
  aspectRatio: calendars[i].aspectratio ? calendars[i].aspectratio : false,
276
  responsive: calendars[i].responsive,
277
  responsiveBreakpoint: calendars[i].responsivebreakpoint,
278
+ defaultView: ( $(window).width() < view.calendar.options.responsiveBreakpoint && calendars[i].responsive ) ? _eoResponsiveViewMap[calendars[i].defaultview] : calendars[i].defaultview,
279
  previousView: calendars[i].defaultview,
280
  nextDayThreshold: calendars[i].nextdaythreshold,
281
  windowResize: function(view) {
779
  return;
780
  }
781
 
 
 
782
  // Create the tooltip on a dummy div and store it on the marker
783
  this.tooltip = jQuery('<div />').qtip({
784
  content: {
796
  at: "right center",
797
  my: "top center",
798
  target: pos,
799
+ viewport: true,
800
+ container: jQuery(this.getMap().getDiv()),
801
  },
802
  show: {
803
  ready: true,
js/frontend.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
- function eveorg_getParameterByName(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",d=new RegExp(c),e=d.exec(b);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))}var eventorganiser=eventorganiser||{};!function(a){jQuery(document).ready(function(){function b(a,b,c){var d;for(d in a)if(a[b]==c)return d;return!1}function c(c){var d="undefined"!=typeof c.whitelist&&c.whitelist?c.whitelist.split(","):!1,e="<select class='eo-fc-filter eo-fc-filter-"+c.type+"' data-filter-type='"+c.type+"'>";e+="<option value=''>"+c.select_none+"</option>";var f;for(var g in c.terms){if(f=c.terms[g],d){var h=!1;-1!==a.inArray(f.slug,d)&&(h=!0);for(var i=f;!h&&i.parent>0;)i=b(c.terms,"term_id",i.parent),-1!==a.inArray(i.slug,d)&&(h=!0);if(!h)continue}e+="<option value='"+f.slug+"'>"+f.name+"</option>"}e+="</select>";var j=a("<span class='fc-header-dropdown filter-"+c.type+"'></span>");return j.append(e),j}function d(b){var c="undefined"!=typeof b.whitelist&&b.whitelist.length>0?b.whitelist:!1,d="<select class='eo-fc-filter eo-fc-filter-organiser' data-filter-type='organiser'>";d+="<option value=''>"+b.select_none+"</option>";var e;for(var f in b.users)e=b.users[f],c&&-1==a.inArray(parseInt(f,10),c)||(d+="<option value='"+f+"'>"+e+"</option>");d+="</select>";var g=a("<span class='fc-header-dropdown filter-organiser'></span>");return g.append(d),g}function e(){return a("<span class='fc-header-goto'><input type='hidden' class='eo-mini-calendar'/></span>")}if(a(".eo-fullcalendar").on("change",".eo-fc-filter",function(){a(".eo-fullcalendar").fullCalendar("rerenderEvents")}),a(".eo-fullcalendar").length>0){var f,g,h=eventorganiser.calendars;g={agendaDay:"listDay",basicDay:"listDay",listDay:"listDay",agendaWeek:"listWeek",basicWeek:"listWeek",listWeek:"listWeek",month:"listMonth",listMonth:"listMonth"};for(var i=0;i<h.length;i++){var j="#eo_fullcalendar_"+(i+1);"undefined"==typeof h[i].category&&(h[i].category=""),"undefined"==typeof h[i].venue&&(h[i].venue="");var k={id:j,defaultDate:h[i].defaultdate?h[i].defaultdate:void 0,category:h[i].event_category,venue:h[i].event_venue,tag:h[i].event_tag,organiser:h[i].event_organiser,event_series:h[i].event_series,customButtons:{category:function(){return c({terms:eventorganiser.fullcal.categories,select_none:EOAjaxFront.locale.cat,whitelist:h[i].event_category,type:"category"})},venue:function(){return c({terms:eventorganiser.fullcal.venues,select_none:EOAjaxFront.locale.venue,whitelist:h[i].event_venue,type:"venue"})},tag:function(){return c({terms:eventorganiser.fullcal.tags,select_none:EOAjaxFront.locale.tag,whitelist:"",type:"tag"})},organiser:function(){return d({users:eventorganiser.fullcal.users,select_none:EOAjaxFront.locale.view_all_organisers,whitelist:h[i].event_organiser})},"goto":e},theme:h[i].theme,isRTL:h[i].isrtl,editable:!1,selectable:!1,weekMode:"variable",tooltip:h[i].tooltip,firstDay:parseInt(eventorganiser.fullcal.firstDay,10),weekends:h[i].weekends,hiddenDays:h[i].hiddendays,slotDuration:h[i].slotduration,allDaySlot:h[i].alldayslot,allDayText:h[i].alldaytext,axisFormat:h[i].axisformat,minTime:h[i].mintime,maxTime:h[i].maxtime,weekNumbers:h[i].weeknumbers,weekNumbersWithinDays:h[i].weeknumberswithindays,eventColor:"#1e8cbe",timeFormatphp:h[i].timeformatphp,timeFormat:h[i].timeformat,columnFormat:{month:h[i].columnformatmonth,week:h[i].columnformatweek,day:h[i].columnformatday},titleFormat:{month:h[i].titleformatmonth,week:h[i].titleformatweek,day:h[i].titleformatday},header:{left:h[i].headerleft,center:h[i].headercenter,right:h[i].headerright},eventRender:function(b,c,d){var e=a(d.calendar.options.id).find(".eo-fc-filter-category").val(),f=a(d.calendar.options.id).find(".eo-fc-filter-venue").val(),g=a(d.calendar.options.id).find(".eo-fc-filter-tag").val(),h=a(d.calendar.options.id).find(".eo-fc-filter-organiser").val(),i=!0;return"undefined"!=typeof e&&""!==e&&a.inArray(e,b.category)<0&&(i=!1),"undefined"!=typeof f&&""!==f&&f!==b.venue_slug&&(i=!1),"undefined"!=typeof g&&""!==g&&a.inArray(g,b.tags)<0&&(i=!1),"undefined"!=typeof h&&""!==h&&parseInt(h,10)!==b.organiser&&(i=!1),(i=wp.hooks.applyFilters("eventorganiser.fullcalendar_render_event",i,b,c,d))?void(d.calendar.options.tooltip&&a(c).qtip({content:{text:b.description,button:!1,title:b.title},position:{my:"top center",at:"bottom center",viewport:a(window),adjust:{method:"shift none"}},hide:{fixed:!0,delay:500,effect:function(b){a(this).fadeOut("50")}},border:{radius:4,width:3},style:{classes:"eo-event-toolip qtip-eo",tip:"topMiddle"}})):!1},buttonText:{today:EOAjaxFront.locale.today,month:EOAjaxFront.locale.month,week:EOAjaxFront.locale.week,day:EOAjaxFront.locale.day},monthNames:EOAjaxFront.locale.monthNames,monthNamesShort:EOAjaxFront.locale.monthAbbrev,dayNames:EOAjaxFront.locale.dayNames,dayNamesShort:EOAjaxFront.locale.dayAbbrev,height:h[i].aspectratio?!1:"auto",aspectRatio:h[i].aspectratio?h[i].aspectratio:!1,responsive:h[i].responsive,responsiveBreakpoint:h[i].responsivebreakpoint,defaultView:a(window).width()<514&&h[i].responsive?g[h[i].defaultview]:h[i].defaultview,previousView:h[i].defaultview,nextDayThreshold:h[i].nextdaythreshold,windowResize:function(b){b.calendar.options.responsive&&a(window).width()<b.calendar.options.responsiveBreakpoint?a(this).fullCalendar("changeView",g[b.calendar.options.previousView]):a(this).fullCalendar("changeView",b.calendar.options.previousView)},lazyFetching:"true",events:function(b,c,d,e){var f=this.options,g={start:b.format("YYYY-MM-DD"),end:c.format("YYYY-MM-DD"),timeformat:f.timeFormatphp,users_events:0};"undefined"!=typeof f.category&&""!==f.category&&(g.category=f.category),"undefined"!=typeof f.venue&&""!==f.venue&&(g.venue=f.venue),"undefined"!=typeof f.tag&&""!==f.tag&&(g.tag=f.tag),"undefined"!=typeof f.organiser&&0!==f.organiser&&(g.organiser=f.organiser),f.event_series&&(g.event_series=f.event_series),g=wp.hooks.applyFilters("eventorganiser.fullcalendar_request",g,b,c,d,f),a.ajax({url:eventorganiser.ajaxurl+"?action=eventorganiser-fullcal",dataType:"JSON",data:g,complete:function(a,b){},success:e})},loading:function(b){var c=a("#"+a(this).attr("id")+"_loading");b?(window.clearTimeout(f),f=window.setTimeout(function(){c.show()},1e3)):(window.clearTimeout(f),c.hide())}};k=wp.hooks.applyFilters("eventorganiser.fullcalendar_options",k,h[i]),a(j).fullCalendar(k)}}"undefined"!=typeof eventorganiser.fullcal&&a(".eo-mini-calendar").datepicker({dateFormat:"DD, d MM, yy",changeMonth:!0,changeYear:!0,firstDay:parseInt(eventorganiser.fullcal.firstDay,10),buttonText:EOAjaxFront.locale.gotodate,monthNamesShort:EOAjaxFront.locale.monthAbbrev,dayNamesMin:EOAjaxFront.locale.dayAbbrev,nextText:EOAjaxFront.locale.nextText,prevText:EOAjaxFront.locale.prevText,showOn:"button",beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker eo-fc-mini-calendar eo-fc-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker eo-fc-mini-calendar eo-fc-datepicker")},onSelect:function(b,c){var d=a(this).parents("div.eo-fullcalendar").attr("id");a("#"+d).fullCalendar("gotoDate",new Date(Date.parse(b)))}}),a("#eo-upcoming-dates, .eo-upcoming-dates").each(function(b,c){var d={el:a(this)};if(d.el.find("li:gt(4)").length>0){var e=5,f={more:EOAjaxFront.locale.ShowMore,less:EOAjaxFront.locale.ShowLess};d.less=a('<a class="eo-upcoming-dates-show-less" href="#"></a>').text(f.less),d.pipe=a('<span class="eo-upcoming-dates-pipe">|</span>'),d.more=a('<a class="eo-upcoming-dates-show-more" href="#"></a>').text(f.more),d.el.find("li:gt("+(e-1)+")").hide().end().after(d.less,d.pipe,d.more),d.pipe.hide(),d.less.hide().click(function(a){a.preventDefault();var b=Math.floor((d.el.find("li:visible").length-1)/e)*e-1;d.el.find("li:gt("+b+")").hide(),d.more.show(),d.pipe.show(),d.el.find("li:visible").length<=e&&(d.less.hide(),d.pipe.hide())}),d.more.click(function(b){b.preventDefault(),d.less.show(),d.pipe.show(),d.el.find("li:hidden:lt("+e+")").show();var c=d.pipe.offset();a("html, body").animate({scrollTop:Math.max(c.top+40-a(window).height(),a(window).scrollTop())}),0===d.el.find("li:hidden").length&&(d.more.hide(),d.pipe.hide())})}}),a(".eo-widget-cal-wrap").length>0&&a(".eo-widget-cal-wrap").on("click","tfoot a",function(b){if(b.preventDefault(),!a(this).data("eo-widget-cal-disabled")){var c=a(this).closest(".eo-widget-cal-wrap"),d=c.data("eo-widget-cal-id");c.find("tfoot a").data("eo-widget-cal-disabled",1);var e={showpastevents:1,"show-long":0,"link-to-single":0};"undefined"!=typeof eventorganiser.widget_calendars&&"undefined"!=typeof eventorganiser.widget_calendars[d]&&(e=eventorganiser.widget_calendars[d]),"undefined"!=typeof eo_widget_cal&&"undefined"!=typeof eo_widget_cal[d]&&(e=eo_widget_cal[d]),e.eo_month=eveorg_getParameterByName("eo_month",a(this).attr("href")),c.addClass("eo-widget-cal-loading"),a("#"+d+"_overlay").remove(),a("#"+d+"_content").prepend('<div class="eo-widget-cal-overlay" id="'+d+'_overlay"><div class="eo-widget-cal-spinner"/></div>'),a.getJSON(eventorganiser.add_query_arg("action","eo_widget_cal",EOAjaxFront.adminajax),e,function(b){a("#"+d+"_content").html(b),c.removeClass("eo-widget-cal-loading")})}})}),eventorganiser.add_query_arg=function(a,b,c){var d=new RegExp("([?&])"+a+"=.*?(&|$)","i"),e=-1!==c.indexOf("?")?"&":"?";return c.match(d)?c.replace(d,"$1"+a+"="+b+"$2"):c+e+a+"="+b},eventorganiser.template=function(b,c,d){var e=/\\|'|\r|\n|\t|\u2028|\u2029/g;d="undefined"!=typeof d?d:{},d=a.extend(!0,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g},d);var f,g={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},h=new RegExp([d.escape.source,d.interpolate.source,d.evaluate.source].join("|")+"|$","g"),i=0,j="__p+='";b.replace(h,function(a,c,d,f,h){return j+=b.slice(i,h).replace(e,function(a){return"\\"+g[a]}),c&&(j+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'"),d&&(j+="'+\n((__t=("+d+"))==null?'':__t)+\n'"),f&&(j+="';\n"+f+"\n__p+='"),i=h+a.length,a}),j+="';\n",d.variable||(j="with(obj||{}){\n"+j+"}\n"),j="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+j+"return __p;\n";try{f=new Function(d.variable||"obj","_",j)}catch(k){throw k.source=j,k}if(c)return f(c);var l=function(a){return f.call(this,a)};return l},eventorganiser.agenda_widget=function(b){this.param=b,moment.locale(EOAjaxFront.locale.locale,{months:EOAjaxFront.locale.monthNames,monthsShort:EOAjaxFront.locale.monthAbbrev,weekdays:EOAjaxFront.locale.dayNames,weekdaysShort:EOAjaxFront.locale.dayAbbrev,weekdaysMin:EOAjaxFront.locale.dayInitial}),this.start=moment().add(-1,"days"),this.end=moment().add(-1,"days"),this.$el=a("#"+this.param.id+"_container"),this.direction=1,this.eventTemplate=eventorganiser.template(a("#eo-tmpl-agenda-widget-item").html(),null,{variable:"event"}),this.groupTemplate=eventorganiser.template(a("#eo-tmpl-agenda-widget-group").html(),null,{variable:"group"})},eventorganiser.agenda_widget.prototype.group_change=function(a,b){return a===!1?!0:"day"!==this.param.mode?!1:a.format("YYYY-MM-DD")!==b.format("YYYY-MM-DD")},eventorganiser.agenda_widget.prototype.init=function(){this.$el.html(eventorganiser.template(a("#eo-tmpl-agenda-widget").html(),{},{variable:"data"})),this.$datesEl=this.$el.find(".dates"),this.load_events(),this.param.add_to_google&&this.$el.on("click",".event",function(){a(this).find(".meta").toggle("400")});var b=this;this.$el.on("click",".eo-agenda-widget-nav-prev,.eo-agenda-widget-nav-next",function(){a(this).hasClass("eo-agenda-widget-nav-prev")?b.direction=-1:b.direction=1,b.load_events()})},eventorganiser.agenda_widget.prototype.load_events=function(){var b=this;a.ajax({url:EOAjaxFront.adminajax,dataType:"JSON",data:{action:"eo_widget_agenda",instance_number:this.param.number,direction:this.direction,start:this.start.format("YYYY-MM-DD"),end:this.end.format("YYYY-MM-DD")},success:function(a){var c=a.length;if(0!==c){for(var d=0;c>d;d++)a[d].start=moment(a[d].start),a[d].end=moment(a[d].end);b.start=a[0].start,b.end=a[c-1].start,b.insert_events(a)}}})},eventorganiser.agenda_widget.prototype.insert_events=function(b){this.$datesEl.html("");for(var c=b.length,d=!1,e=!1,f=!1,g=0;c>g;g++){if(this.group_change(d,b[g].start)){this.$datesEl.append(e);var h={start:b[g].start};e=a(this.groupTemplate(h)),f=e.find(".a-date")}f.append(this.eventTemplate(b[g])),d=b[g].start}this.$datesEl.append(e)},jQuery(document).ready(function(a){if(a(".eo-agenda-widget").length>0)for(var b in eo_widget_agenda)agendaWidget=new eventorganiser.agenda_widget(eo_widget_agenda[b]),agendaWidget.init()})}(jQuery),eventorganiser.google_map=function(a){this.param=a,this.markers={},this.map=null},eventorganiser.google_map.prototype.load=function(){var a={zoom:this.param.zoom,scrollwheel:this.param.scrollwheel,zoomControl:this.param.zoomcontrol,rotateControl:this.param.rotatecontrol,panControl:this.param.pancontrol,overviewMapControl:this.param.overviewmapcontrol,streetViewControl:this.param.streetviewcontrol,draggable:this.param.draggable,mapTypeControl:this.param.maptypecontrol,mapTypeId:google.maps.MapTypeId[this.param.maptypeid],styles:this.param.styles,minZoom:this.param.minzoom,maxZoom:this.param.maxzoom};a=wp.hooks.applyFilters("eventorganiser.google_map_options",a,this.param),this.map=new google.maps.Map(document.getElementById(this.param.id),a);for(var b=new google.maps.LatLngBounds,c=[],d=0;d<this.param.locations.length;d++){var e=this.param.locations[d].lat,f=this.param.locations[d].lng;if(void 0!==e&&void 0!==f){c.push(new google.maps.LatLng(e,f)),b.extend(c[d]);var g=wp.hooks.applyFilters("eventorganiser.venue_marker_options",{venue_id:this.param.locations[d].venue_id,position:c[d],map:this.map,content:this.param.locations[d].tooltipContent,icon:this.param.locations[d].icon}),h=new google.maps.Marker(g);this.markers[this.param.locations[d].venue_id]=h,this.param.tooltip&&google.maps.event.addListener(h,"click",this.tooltip)}}this.param.locations.length>1?this.map.fitBounds(b):this.map.setCenter(c[0]),wp.hooks.doAction("eventorganiser.google_map_loaded",this)},eventorganiser.google_map.prototype.tooltip=function(){var a=this.getMap(),b=this.getMap().getProjection().fromLatLngToPoint(this.position),c=a.getProjection().fromLatLngToPoint(a.getBounds().getNorthEast()),d=a.getProjection().fromLatLngToPoint(a.getBounds().getSouthWest()),e=Math.pow(2,a.getZoom());b=new google.maps.Point((b.x-d.x)*e,(b.y-c.y)*e),wp.hooks.doAction("eventorganiser.venue_marker_clicked",this);var f=[b.x,b.y];return this.tooltip?(this.tooltip.qtip("api").set("position.target",f),void this.tooltip.qtip("show")):(jQuery(this.getMap().getDiv()).css({overflow:"visible"}),void(this.tooltip=jQuery("<div />").qtip({content:{text:this.content},border:{radius:4,width:3},style:{classes:"qtip-eo ui-tooltip-shadow",widget:!0},position:{at:"right center",my:"top center",target:f,container:jQuery(this.getMap().getDiv())},show:{ready:!0,event:!1,solo:!0},hide:{event:"mouseleave unfocus"}})))},jQuery(document).ready(function(){if("map"in eventorganiser)for(var a=eventorganiser.map,b=0;b<a.length;b++)if(null!==document.getElementById("eo_venue_map-"+(b+1))){var c=a[b];c.id="eo_venue_map-"+(b+1);var d=new eventorganiser.google_map(c);d.load(),eventorganiser.map[b].markers=d.markers}});
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
+ function eveorg_getParameterByName(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",d=new RegExp(c),e=d.exec(b);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))}var eventorganiser=eventorganiser||{};!function(a){jQuery(document).ready(function(){function b(a,b,c){var d;for(d in a)if(a[b]==c)return d;return!1}function c(c){var d="undefined"!=typeof c.whitelist&&c.whitelist?c.whitelist.split(","):!1,e="<select class='eo-fc-filter eo-fc-filter-"+c.type+"' data-filter-type='"+c.type+"'>";e+="<option value=''>"+c.select_none+"</option>";var f;for(var g in c.terms){if(f=c.terms[g],d){var h=!1;-1!==a.inArray(f.slug,d)&&(h=!0);for(var i=f;!h&&i.parent>0;)i=b(c.terms,"term_id",i.parent),-1!==a.inArray(i.slug,d)&&(h=!0);if(!h)continue}e+="<option value='"+f.slug+"'>"+f.name+"</option>"}e+="</select>";var j=a("<span class='fc-header-dropdown filter-"+c.type+"'></span>");return j.append(e),j}function d(b){var c="undefined"!=typeof b.whitelist&&b.whitelist.length>0?b.whitelist:!1,d="<select class='eo-fc-filter eo-fc-filter-organiser' data-filter-type='organiser'>";d+="<option value=''>"+b.select_none+"</option>";var e;for(var f in b.users)e=b.users[f],c&&-1==a.inArray(parseInt(f,10),c)||(d+="<option value='"+f+"'>"+e+"</option>");d+="</select>";var g=a("<span class='fc-header-dropdown filter-organiser'></span>");return g.append(d),g}function e(){return a("<span class='fc-header-goto'><input type='hidden' class='eo-mini-calendar'/></span>")}if(a(".eo-fullcalendar").on("change",".eo-fc-filter",function(){a(".eo-fullcalendar").fullCalendar("rerenderEvents")}),a(".eo-fullcalendar").length>0){var f,g,h=eventorganiser.calendars;g={agendaDay:"listDay",basicDay:"listDay",listDay:"listDay",agendaWeek:"listWeek",basicWeek:"listWeek",listWeek:"listWeek",month:"listMonth",listMonth:"listMonth"};for(var i=0;i<h.length;i++){var j="#eo_fullcalendar_"+(i+1);"undefined"==typeof h[i].category&&(h[i].category=""),"undefined"==typeof h[i].venue&&(h[i].venue="");var k={id:j,defaultDate:h[i].defaultdate?h[i].defaultdate:void 0,category:h[i].event_category,venue:h[i].event_venue,tag:h[i].event_tag,organiser:h[i].event_organiser,event_series:h[i].event_series,customButtons:{category:function(){return c({terms:eventorganiser.fullcal.categories,select_none:EOAjaxFront.locale.cat,whitelist:h[i].event_category,type:"category"})},venue:function(){return c({terms:eventorganiser.fullcal.venues,select_none:EOAjaxFront.locale.venue,whitelist:h[i].event_venue,type:"venue"})},tag:function(){return c({terms:eventorganiser.fullcal.tags,select_none:EOAjaxFront.locale.tag,whitelist:"",type:"tag"})},organiser:function(){return d({users:eventorganiser.fullcal.users,select_none:EOAjaxFront.locale.view_all_organisers,whitelist:h[i].event_organiser})},"goto":e},theme:h[i].theme,isRTL:h[i].isrtl,editable:!1,selectable:!1,weekMode:"variable",tooltip:h[i].tooltip,firstDay:parseInt(eventorganiser.fullcal.firstDay,10),weekends:h[i].weekends,hiddenDays:h[i].hiddendays,slotDuration:h[i].slotduration,allDaySlot:h[i].alldayslot,allDayText:h[i].alldaytext,axisFormat:h[i].axisformat,minTime:h[i].mintime,maxTime:h[i].maxtime,weekNumbers:h[i].weeknumbers,weekNumbersWithinDays:h[i].weeknumberswithindays,eventColor:"#1e8cbe",timeFormatphp:h[i].timeformatphp,timeFormat:h[i].timeformat,columnFormat:{month:h[i].columnformatmonth,week:h[i].columnformatweek,day:h[i].columnformatday},titleFormat:{month:h[i].titleformatmonth,week:h[i].titleformatweek,day:h[i].titleformatday},header:{left:h[i].headerleft,center:h[i].headercenter,right:h[i].headerright},eventRender:function(b,c,d){var e=a(d.calendar.options.id).find(".eo-fc-filter-category").val(),f=a(d.calendar.options.id).find(".eo-fc-filter-venue").val(),g=a(d.calendar.options.id).find(".eo-fc-filter-tag").val(),h=a(d.calendar.options.id).find(".eo-fc-filter-organiser").val(),i=!0;return"undefined"!=typeof e&&""!==e&&a.inArray(e,b.category)<0&&(i=!1),"undefined"!=typeof f&&""!==f&&f!==b.venue_slug&&(i=!1),"undefined"!=typeof g&&""!==g&&a.inArray(g,b.tags)<0&&(i=!1),"undefined"!=typeof h&&""!==h&&parseInt(h,10)!==b.organiser&&(i=!1),(i=wp.hooks.applyFilters("eventorganiser.fullcalendar_render_event",i,b,c,d))?void(d.calendar.options.tooltip&&a(c).qtip({content:{text:b.description,button:!1,title:b.title},position:{my:"top center",at:"bottom center",viewport:a(window),adjust:{method:"shift none"}},hide:{fixed:!0,delay:500,effect:function(b){a(this).fadeOut("50")}},border:{radius:4,width:3},style:{classes:"eo-event-toolip qtip-eo",tip:"topMiddle"}})):!1},buttonText:{today:EOAjaxFront.locale.today,month:EOAjaxFront.locale.month,week:EOAjaxFront.locale.week,day:EOAjaxFront.locale.day},monthNames:EOAjaxFront.locale.monthNames,monthNamesShort:EOAjaxFront.locale.monthAbbrev,dayNames:EOAjaxFront.locale.dayNames,dayNamesShort:EOAjaxFront.locale.dayAbbrev,height:h[i].aspectratio?!1:"auto",aspectRatio:h[i].aspectratio?h[i].aspectratio:!1,responsive:h[i].responsive,responsiveBreakpoint:h[i].responsivebreakpoint,defaultView:a(window).width()<view.calendar.options.responsiveBreakpoint&&h[i].responsive?g[h[i].defaultview]:h[i].defaultview,previousView:h[i].defaultview,nextDayThreshold:h[i].nextdaythreshold,windowResize:function(b){b.calendar.options.responsive&&a(window).width()<b.calendar.options.responsiveBreakpoint?a(this).fullCalendar("changeView",g[b.calendar.options.previousView]):a(this).fullCalendar("changeView",b.calendar.options.previousView)},lazyFetching:"true",events:function(b,c,d,e){var f=this.options,g={start:b.format("YYYY-MM-DD"),end:c.format("YYYY-MM-DD"),timeformat:f.timeFormatphp,users_events:0};"undefined"!=typeof f.category&&""!==f.category&&(g.category=f.category),"undefined"!=typeof f.venue&&""!==f.venue&&(g.venue=f.venue),"undefined"!=typeof f.tag&&""!==f.tag&&(g.tag=f.tag),"undefined"!=typeof f.organiser&&0!==f.organiser&&(g.organiser=f.organiser),f.event_series&&(g.event_series=f.event_series),g=wp.hooks.applyFilters("eventorganiser.fullcalendar_request",g,b,c,d,f),a.ajax({url:eventorganiser.ajaxurl+"?action=eventorganiser-fullcal",dataType:"JSON",data:g,complete:function(a,b){},success:e})},loading:function(b){var c=a("#"+a(this).attr("id")+"_loading");b?(window.clearTimeout(f),f=window.setTimeout(function(){c.show()},1e3)):(window.clearTimeout(f),c.hide())}};k=wp.hooks.applyFilters("eventorganiser.fullcalendar_options",k,h[i]),a(j).fullCalendar(k)}}"undefined"!=typeof eventorganiser.fullcal&&a(".eo-mini-calendar").datepicker({dateFormat:"DD, d MM, yy",changeMonth:!0,changeYear:!0,firstDay:parseInt(eventorganiser.fullcal.firstDay,10),buttonText:EOAjaxFront.locale.gotodate,monthNamesShort:EOAjaxFront.locale.monthAbbrev,dayNamesMin:EOAjaxFront.locale.dayAbbrev,nextText:EOAjaxFront.locale.nextText,prevText:EOAjaxFront.locale.prevText,showOn:"button",beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker eo-fc-mini-calendar eo-fc-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker eo-fc-mini-calendar eo-fc-datepicker")},onSelect:function(b,c){var d=a(this).parents("div.eo-fullcalendar").attr("id");a("#"+d).fullCalendar("gotoDate",new Date(Date.parse(b)))}}),a("#eo-upcoming-dates, .eo-upcoming-dates").each(function(b,c){var d={el:a(this)};if(d.el.find("li:gt(4)").length>0){var e=5,f={more:EOAjaxFront.locale.ShowMore,less:EOAjaxFront.locale.ShowLess};d.less=a('<a class="eo-upcoming-dates-show-less" href="#"></a>').text(f.less),d.pipe=a('<span class="eo-upcoming-dates-pipe">|</span>'),d.more=a('<a class="eo-upcoming-dates-show-more" href="#"></a>').text(f.more),d.el.find("li:gt("+(e-1)+")").hide().end().after(d.less,d.pipe,d.more),d.pipe.hide(),d.less.hide().click(function(a){a.preventDefault();var b=Math.floor((d.el.find("li:visible").length-1)/e)*e-1;d.el.find("li:gt("+b+")").hide(),d.more.show(),d.pipe.show(),d.el.find("li:visible").length<=e&&(d.less.hide(),d.pipe.hide())}),d.more.click(function(b){b.preventDefault(),d.less.show(),d.pipe.show(),d.el.find("li:hidden:lt("+e+")").show();var c=d.pipe.offset();a("html, body").animate({scrollTop:Math.max(c.top+40-a(window).height(),a(window).scrollTop())}),0===d.el.find("li:hidden").length&&(d.more.hide(),d.pipe.hide())})}}),a(".eo-widget-cal-wrap").length>0&&a(".eo-widget-cal-wrap").on("click","tfoot a",function(b){if(b.preventDefault(),!a(this).data("eo-widget-cal-disabled")){var c=a(this).closest(".eo-widget-cal-wrap"),d=c.data("eo-widget-cal-id");c.find("tfoot a").data("eo-widget-cal-disabled",1);var e={showpastevents:1,"show-long":0,"link-to-single":0};"undefined"!=typeof eventorganiser.widget_calendars&&"undefined"!=typeof eventorganiser.widget_calendars[d]&&(e=eventorganiser.widget_calendars[d]),"undefined"!=typeof eo_widget_cal&&"undefined"!=typeof eo_widget_cal[d]&&(e=eo_widget_cal[d]),e.eo_month=eveorg_getParameterByName("eo_month",a(this).attr("href")),c.addClass("eo-widget-cal-loading"),a("#"+d+"_overlay").remove(),a("#"+d+"_content").prepend('<div class="eo-widget-cal-overlay" id="'+d+'_overlay"><div class="eo-widget-cal-spinner"/></div>'),a.getJSON(eventorganiser.add_query_arg("action","eo_widget_cal",EOAjaxFront.adminajax),e,function(b){a("#"+d+"_content").html(b),c.removeClass("eo-widget-cal-loading")})}})}),eventorganiser.add_query_arg=function(a,b,c){var d=new RegExp("([?&])"+a+"=.*?(&|$)","i"),e=-1!==c.indexOf("?")?"&":"?";return c.match(d)?c.replace(d,"$1"+a+"="+b+"$2"):c+e+a+"="+b},eventorganiser.template=function(b,c,d){var e=/\\|'|\r|\n|\t|\u2028|\u2029/g;d="undefined"!=typeof d?d:{},d=a.extend(!0,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g},d);var f,g={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},h=new RegExp([d.escape.source,d.interpolate.source,d.evaluate.source].join("|")+"|$","g"),i=0,j="__p+='";b.replace(h,function(a,c,d,f,h){return j+=b.slice(i,h).replace(e,function(a){return"\\"+g[a]}),c&&(j+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'"),d&&(j+="'+\n((__t=("+d+"))==null?'':__t)+\n'"),f&&(j+="';\n"+f+"\n__p+='"),i=h+a.length,a}),j+="';\n",d.variable||(j="with(obj||{}){\n"+j+"}\n"),j="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+j+"return __p;\n";try{f=new Function(d.variable||"obj","_",j)}catch(k){throw k.source=j,k}if(c)return f(c);var l=function(a){return f.call(this,a)};return l},eventorganiser.agenda_widget=function(b){this.param=b,moment.locale(EOAjaxFront.locale.locale,{months:EOAjaxFront.locale.monthNames,monthsShort:EOAjaxFront.locale.monthAbbrev,weekdays:EOAjaxFront.locale.dayNames,weekdaysShort:EOAjaxFront.locale.dayAbbrev,weekdaysMin:EOAjaxFront.locale.dayInitial}),this.start=moment().add(-1,"days"),this.end=moment().add(-1,"days"),this.$el=a("#"+this.param.id+"_container"),this.direction=1,this.eventTemplate=eventorganiser.template(a("#eo-tmpl-agenda-widget-item").html(),null,{variable:"event"}),this.groupTemplate=eventorganiser.template(a("#eo-tmpl-agenda-widget-group").html(),null,{variable:"group"})},eventorganiser.agenda_widget.prototype.group_change=function(a,b){return a===!1?!0:"day"!==this.param.mode?!1:a.format("YYYY-MM-DD")!==b.format("YYYY-MM-DD")},eventorganiser.agenda_widget.prototype.init=function(){this.$el.html(eventorganiser.template(a("#eo-tmpl-agenda-widget").html(),{},{variable:"data"})),this.$datesEl=this.$el.find(".dates"),this.load_events(),this.param.add_to_google&&this.$el.on("click",".event",function(){a(this).find(".meta").toggle("400")});var b=this;this.$el.on("click",".eo-agenda-widget-nav-prev,.eo-agenda-widget-nav-next",function(){a(this).hasClass("eo-agenda-widget-nav-prev")?b.direction=-1:b.direction=1,b.load_events()})},eventorganiser.agenda_widget.prototype.load_events=function(){var b=this;a.ajax({url:EOAjaxFront.adminajax,dataType:"JSON",data:{action:"eo_widget_agenda",instance_number:this.param.number,direction:this.direction,start:this.start.format("YYYY-MM-DD"),end:this.end.format("YYYY-MM-DD")},success:function(a){var c=a.length;if(0!==c){for(var d=0;c>d;d++)a[d].start=moment(a[d].start),a[d].end=moment(a[d].end);b.start=a[0].start,b.end=a[c-1].start,b.insert_events(a)}}})},eventorganiser.agenda_widget.prototype.insert_events=function(b){this.$datesEl.html("");for(var c=b.length,d=!1,e=!1,f=!1,g=0;c>g;g++){if(this.group_change(d,b[g].start)){this.$datesEl.append(e);var h={start:b[g].start};e=a(this.groupTemplate(h)),f=e.find(".a-date")}f.append(this.eventTemplate(b[g])),d=b[g].start}this.$datesEl.append(e)},jQuery(document).ready(function(a){if(a(".eo-agenda-widget").length>0)for(var b in eo_widget_agenda)agendaWidget=new eventorganiser.agenda_widget(eo_widget_agenda[b]),agendaWidget.init()})}(jQuery),eventorganiser.google_map=function(a){this.param=a,this.markers={},this.map=null},eventorganiser.google_map.prototype.load=function(){var a={zoom:this.param.zoom,scrollwheel:this.param.scrollwheel,zoomControl:this.param.zoomcontrol,rotateControl:this.param.rotatecontrol,panControl:this.param.pancontrol,overviewMapControl:this.param.overviewmapcontrol,streetViewControl:this.param.streetviewcontrol,draggable:this.param.draggable,mapTypeControl:this.param.maptypecontrol,mapTypeId:google.maps.MapTypeId[this.param.maptypeid],styles:this.param.styles,minZoom:this.param.minzoom,maxZoom:this.param.maxzoom};a=wp.hooks.applyFilters("eventorganiser.google_map_options",a,this.param),this.map=new google.maps.Map(document.getElementById(this.param.id),a);for(var b=new google.maps.LatLngBounds,c=[],d=0;d<this.param.locations.length;d++){var e=this.param.locations[d].lat,f=this.param.locations[d].lng;if(void 0!==e&&void 0!==f){c.push(new google.maps.LatLng(e,f)),b.extend(c[d]);var g=wp.hooks.applyFilters("eventorganiser.venue_marker_options",{venue_id:this.param.locations[d].venue_id,position:c[d],map:this.map,content:this.param.locations[d].tooltipContent,icon:this.param.locations[d].icon}),h=new google.maps.Marker(g);this.markers[this.param.locations[d].venue_id]=h,this.param.tooltip&&google.maps.event.addListener(h,"click",this.tooltip)}}this.param.locations.length>1?this.map.fitBounds(b):this.map.setCenter(c[0]),wp.hooks.doAction("eventorganiser.google_map_loaded",this)},eventorganiser.google_map.prototype.tooltip=function(){var a=this.getMap(),b=this.getMap().getProjection().fromLatLngToPoint(this.position),c=a.getProjection().fromLatLngToPoint(a.getBounds().getNorthEast()),d=a.getProjection().fromLatLngToPoint(a.getBounds().getSouthWest()),e=Math.pow(2,a.getZoom());b=new google.maps.Point((b.x-d.x)*e,(b.y-c.y)*e),wp.hooks.doAction("eventorganiser.venue_marker_clicked",this);var f=[b.x,b.y];return this.tooltip?(this.tooltip.qtip("api").set("position.target",f),void this.tooltip.qtip("show")):void(this.tooltip=jQuery("<div />").qtip({content:{text:this.content},border:{radius:4,width:3},style:{classes:"qtip-eo ui-tooltip-shadow",widget:!0},position:{at:"right center",my:"top center",target:f,viewport:!0,container:jQuery(this.getMap().getDiv())},show:{ready:!0,event:!1,solo:!0},hide:{event:"mouseleave unfocus"}}))},jQuery(document).ready(function(){if("map"in eventorganiser)for(var a=eventorganiser.map,b=0;b<a.length;b++)if(null!==document.getElementById("eo_venue_map-"+(b+1))){var c=a[b];c.id="eo_venue_map-"+(b+1);var d=new eventorganiser.google_map(c);d.load(),eventorganiser.map[b].markers=d.markers}});
js/fullcalendar.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  !function(a){"function"==typeof define&&define.amd?define(["jquery","moment"],a):a(jQuery,moment)}(function(a,b){function c(a){d(za,a)}function d(b){function c(c,f){a.isPlainObject(f)&&a.isPlainObject(b[c])&&!e(c)?b[c]=d({},b[c],f):void 0!==f&&(b[c]=f)}for(var f=1;f<arguments.length;f++)a.each(arguments[f],c);return b}function e(a){return/(Time|Duration)$/.test(a)}function f(a){var c=b.localeData||b.langData;return c.call(b,a)||c.call(b,"en")}function g(a,b){b.left&&a.css({"border-left-width":1,"margin-left":b.left-1}),b.right&&a.css({"border-right-width":1,"margin-right":b.right-1})}function h(a){a.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function i(){a("body").addClass("fc-not-allowed")}function j(){a("body").removeClass("fc-not-allowed")}function k(a){return"pointerdown"==a.type||"pointerup"==a.type||"pointermove"==a.type?"touch"===a.originalEvent.pointerType?!0:!1:"touchstart"==a.type||"touchmove"==a.type||"touchend"==a.type||"touchcancel"==a.type?!0:!1}function l(a){var b={x:0,y:0};if("pointerdown"==a.type||"pointerup"==a.type||"pointermove"==a.type||"mousedown"==a.type||"mouseup"==a.type||"mousemove"==a.type||"mouseover"==a.type||"mouseout"==a.type||"mouseenter"==a.type||"mouseleave"==a.type)b.x=a.pageX,b.y=a.pageY;else if(k(a)){var c=a.originalEvent.touches[0]||a.originalEvent.changedTouches[0];b.x=c.pageX,b.y=c.pageY}return b}function m(){return window.navigator.msPointerEnabled?"pointerdown":!Ka&&"ontouchstart"in document.documentElement?"touchstart":"mousedown"}function n(){return window.navigator.msPointerEnabled?"pointerup":!Ka&&"ontouchstart"in document.documentElement?"touchend":"mouseup"}function o(){return window.navigator.msPointerEnabled?"pointermove":!Ka&&"ontouchstart"in document.documentElement?"touchmove":"mousemove"}function p(b,c,d){var e=Math.floor(c/b.length),f=Math.floor(c-e*(b.length-1)),g=[],h=[],i=[],j=0;q(b),b.each(function(c,d){var k=c===b.length-1?f:e,l=a(d).outerHeight(!0);k>l?(g.push(d),h.push(l),i.push(a(d).height())):j+=l}),d&&(c-=j,e=Math.floor(c/g.length),f=Math.floor(c-e*(g.length-1))),a(g).each(function(b,c){var d=b===g.length-1?f:e,j=h[b],k=i[b],l=d-(j-k);d>j&&a(c).height(l)})}function q(a){a.height("")}function r(b){var c=0;return b.find("> *").each(function(b,d){var e=a(d).outerWidth();e>c&&(c=e)}),c++,b.width(c),c}function s(a,b){return a.height(b).addClass("fc-scroller"),a[0].scrollHeight-1>a[0].clientHeight?!0:(t(a),!1)}function t(a){a.height("").removeClass("fc-scroller")}function u(b){var c=b.css("position"),d=b.parents().filter(function(){var b=a(this);return/(auto|scroll)/.test(b.css("overflow")+b.css("overflow-y")+b.css("overflow-x"))}).eq(0);return"fixed"!==c&&d.length?d:a(b[0].ownerDocument||document)}function v(a){var b=a.offset().left,c=b+a.width(),d=a.children(),e=d.offset().left,f=e+d.outerWidth();return{left:e-b,right:c-f}}function w(a){return k(a)?!0:1==a.which&&!a.ctrlKey}function x(a,b){var c,d,e,f,g=a.start,h=a.end,i=b.start,j=b.end;return h>i&&j>g?(g>=i?(c=g.clone(),e=!0):(c=i.clone(),e=!1),j>=h?(d=h.clone(),f=!0):(d=j.clone(),f=!1),{start:c,end:d,isStart:e,isEnd:f}):void 0}function y(a,b){if(a=a||{},void 0!==a[b])return a[b];for(var c,d=b.split(/(?=[A-Z])/),e=d.length-1;e>=0;e--)if(c=a[d[e].toLowerCase()],void 0!==c)return c;return a["default"]}function z(a,c){return b.duration({days:a.clone().stripTime().diff(c.clone().stripTime(),"days"),ms:a.time()-c.time()})}function A(a,c){return b.duration({days:a.clone().stripTime().diff(c.clone().stripTime(),"days")})}function B(a,b){var c,d,e;for(c=0;c<Na.length&&(d=Na[c],e=C(d,a,b),!(e>=1&&P(e)));c++);return d}function C(a,c,d){return null!=d?d.diff(c,a,!0):b.isDuration(c)?c.as(a):c.end.diff(c.start,a,!0)}function D(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function E(a){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(a)}function F(a){var b=function(){};return b.prototype=a,new b}function G(a,b){for(var c in a)H(a,c)&&(b[c]=a[c])}function H(a,b){return Oa.call(a,b)}function I(b){return/undefined|null|boolean|number|string/.test(a.type(b))}function J(b,c,d){if(a.isFunction(b)&&(b=[b]),b){var e,f;for(e=0;e<b.length;e++)f=b[e].apply(c,d)||f;return f}}function K(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]}function L(a){return(a+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function M(a){return a.replace(/&.*?;/g,"")}function N(a){return a.charAt(0).toUpperCase()+a.slice(1)}function O(a,b){return a-b}function P(a){return a%1===0}function Q(a,b){var c,d,e,f,g=function(){var h=+new Date-f;b>h&&h>0?c=setTimeout(g,b-h):(c=null,a.apply(e,d),c||(e=d=null))};return function(){e=this,d=arguments,f=+new Date,c||(c=setTimeout(g,b))}}function R(c,d,e){var f,g,h,i,j=c[0],k=1==c.length&&"string"==typeof j;return b.isMoment(j)?(i=b.apply(null,c),T(j,i)):D(j)||void 0===j?i=b.apply(null,c):(f=!1,g=!1,k?Pa.test(j)?(j+="-01",c=[j],f=!0,g=!0):(h=Qa.exec(j))&&(f=!h[5],g=!0):a.isArray(j)&&(g=!0),i=d||f?b.utc.apply(b,c):b.apply(null,c),f?(i._ambigTime=!0,i._ambigZone=!0):e&&(g?i._ambigZone=!0:k&&i.zone(j))),i._fullCalendar=!0,i}function S(a,c){var d,e,f=!1,g=!1,h=a.length,i=[];for(d=0;h>d;d++)e=a[d],b.isMoment(e)||(e=Ca.moment.parseZone(e)),f=f||e._ambigTime,g=g||e._ambigZone,i.push(e);for(d=0;h>d;d++)e=i[d],c||!f||e._ambigTime?g&&!e._ambigZone&&(i[d]=e.clone().stripZone()):i[d]=e.clone().stripTime();return i}function T(a,b){a._ambigTime?b._ambigTime=!0:b._ambigTime&&(b._ambigTime=!1),a._ambigZone?b._ambigZone=!0:b._ambigZone&&(b._ambigZone=!1)}function U(a,b){a.year(b[0]||0).month(b[1]||0).date(b[2]||0).hours(b[3]||0).minutes(b[4]||0).seconds(b[5]||0).milliseconds(b[6]||0)}function V(a,b){return Sa.format.call(a,b)}function W(a,b){return X(a,aa(b))}function X(a,b){var c,d="";for(c=0;c<b.length;c++)d+=Y(a,b[c]);return d}function Y(a,b){var c,d;return"string"==typeof b?b:(c=b.token)?Ta[c]?Ta[c](a):V(a,c):b.maybe&&(d=X(a,b.maybe),d.match(/[1-9]/))?d:""}function Z(a,b,c,d,e){var f;return a=Ca.moment.parseZone(a),b=Ca.moment.parseZone(b),f=(a.localeData||a.lang).call(a),c=f.longDateFormat(c)||c,d=d||" - ",$(a,b,aa(c),d,e)}function $(a,b,c,d,e){var f,g,h,i,j="",k="",l="",m="",n="";for(g=0;g<c.length&&(f=_(a,b,c[g]),f!==!1);g++)j+=f;for(h=c.length-1;h>g&&(f=_(a,b,c[h]),f!==!1);h--)k=f+k;for(i=g;h>=i;i++)l+=Y(a,c[i]),m+=Y(b,c[i]);return(l||m)&&(n=e?m+d+l:l+d+m),j+n+k}function _(a,b,c){var d,e;return"string"==typeof c?c:(d=c.token)&&(e=Ua[d.charAt(0)],e&&a.isSame(b,e))?V(a,d):!1}function aa(a){return a in Va?Va[a]:Va[a]=ba(a)}function ba(a){for(var b,c=[],d=/\[([^\]]*)\]|\(([^\)]*)\)|(LT|(\w)\4*o?)|([^\w\[\(]+)/g;b=d.exec(a);)b[1]?c.push(b[1]):b[2]?c.push({maybe:ba(b[2])}):b[3]?c.push({token:b[3]}):b[5]&&c.push(b[5]);return c}function ca(){}function da(a,b){return a||b?a&&b?a.grid===b.grid&&a.row===b.row&&a.col===b.col:!1:!0}function ea(a){var b=ga(a);return"background"===b||"inverse-background"===b}function fa(a){return"inverse-background"===ga(a)}function ga(a){return K((a.source||{}).rendering,a.rendering)}function ha(a){var b,c,d={};for(b=0;b<a.length;b++)c=a[b],(d[c._id]||(d[c._id]=[])).push(c);return d}function ia(a,b){return a.eventStartMS-b.eventStartMS}function ja(a,b){return a.eventStartMS-b.eventStartMS||b.eventDurationMS-a.eventDurationMS||b.event.allDay-a.event.allDay||(a.event.title||"").localeCompare(b.event.title)}function ka(c){var d,e,f,g,h=Ca.dataAttrPrefix;return h&&(h+="-"),d=c.data(h+"event")||null,d&&(d="object"==typeof d?a.extend({},d):{},e=d.start,null==e&&(e=d.time),f=d.duration,g=d.stick,delete d.start,delete d.time,delete d.duration,delete d.stick),null==e&&(e=c.data(h+"start")),null==e&&(e=c.data(h+"time")),null==f&&(f=c.data(h+"duration")),null==g&&(g=c.data(h+"stick")),e=null!=e?b.duration(e):null,f=null!=f?b.duration(f):null,g=Boolean(g),{eventProps:d,startTime:e,duration:f,stick:g}}function la(a,b){var c,d;for(c=0;c<b.length;c++)if(d=b[c],d.leftCol<=a.rightCol&&d.rightCol>=a.leftCol)return!0;return!1}function ma(a,b){return a.leftCol-b.leftCol}function na(a){var b,c,d;if(a.sort(ja),b=oa(a),pa(b),c=b[0]){for(d=0;d<c.length;d++)qa(c[d]);for(d=0;d<c.length;d++)ra(c[d],0,0)}}function oa(a){var b,c,d,e=[];for(b=0;b<a.length;b++){for(c=a[b],d=0;d<e.length&&sa(c,e[d]).length;d++);c.level=d,(e[d]||(e[d]=[])).push(c)}return e}function pa(a){var b,c,d,e,f;for(b=0;b<a.length;b++)for(c=a[b],d=0;d<c.length;d++)for(e=c[d],e.forwardSegs=[],f=b+1;f<a.length;f++)sa(e,a[f],e.forwardSegs)}function qa(a){var b,c,d=a.forwardSegs,e=0;if(void 0===a.forwardPressure){for(b=0;b<d.length;b++)c=d[b],qa(c),e=Math.max(e,1+c.forwardPressure);a.forwardPressure=e}}function ra(a,b,c){var d,e=a.forwardSegs;if(void 0===a.forwardCoord)for(e.length?(e.sort(ua),ra(e[0],b+1,c),a.forwardCoord=e[0].backwardCoord):a.forwardCoord=1,a.backwardCoord=a.forwardCoord-(a.forwardCoord-c)/(b+1),d=0;d<e.length;d++)ra(e[d],0,a.forwardCoord)}function sa(a,b,c){c=c||[];for(var d=0;d<b.length;d++)ta(a,b[d])&&c.push(b[d]);return c}function ta(a,b){return a.bottom>b.top&&a.top<b.bottom}function ua(a,b){return b.forwardPressure-a.forwardPressure||(a.backwardCoord||0)-(b.backwardCoord||0)||ja(a,b)}function va(c,e){function g(a){return(a.locale||a.lang).call(a,$.lang).humanize()}function h(a){da?k()&&(r(),l(a)):i()}function i(){ea=$.theme?"ui":"fc",c.addClass("fc"),$.isRTL?c.addClass("fc-rtl"):c.addClass("fc-ltr"),$.theme?c.addClass("ui-widget"):c.addClass("fc-unthemed"),da=a("<div class='fc-view-container'/>").prependTo(c),ba=new wa(Y,$),ca=ba.render(),ca&&c.prepend(ca),l($.defaultView),$.handleWindowResize&&(ha=Q(t,$.windowResizeDelay),a(window).resize(ha))}function j(){fa&&fa.destroyView(),ba.destroy(),da.remove(),c.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),a(window).unbind("resize",ha)}function k(){return c.is(":visible")}function l(b){na++,fa&&b&&fa.type!==b&&(ba.deactivateButton(fa.type),S(),fa.start&&fa.destroyView(),fa.el.remove(),fa=null),!fa&&b&&(fa=m(b),fa.el=a("<div class='fc-view fc-"+b+"-view' />").appendTo(da),ba.activateButton(b)),fa&&(ia=fa.massageCurrentDate(ia),fa.start&&ia.isWithin(fa.intervalStart,fa.intervalEnd)||k()&&(S(),fa.start&&fa.destroyView(),fa.setDate(ia),fa.renderView(),T(),C(),D(),x())),T(),na--}function m(a){var b=n(a);return new b["class"](Y,b.options,a)}function n(c){function d(b){"function"==typeof b?f=b:"object"==typeof b&&a.extend(e,b)}var e,f,h,i,j,k=$.defaultButtonText||{},l=$.buttonText||{},m=$.views||{},n=c,o=[],p=!1;if(ma[c])return ma[c];for(;n&&!f;)e={},d(Da[n]),d(m[n]),o.unshift(e),n=e.type;return o.unshift({}),e=a.extend.apply(a,o),f?(h=e.duration||f.duration,h&&(h=b.duration(h),i=B(h),p=1===h.as(i)),p&&m[i]&&(e=a.extend({},m[i],e)),j=l[c]||(p?l[i]:null)||k[c]||(p?k[i]:null)||e.buttonText||f.buttonText||(h?g(h):null)||c,ma[c]={"class":f,options:e,buttonText:j}):void 0}function o(a){return Boolean(n(a))}function p(a){var b=n(a);return b?b.buttonText:void 0}function q(a){return k()?(a&&s(),na++,fa.updateSize(!0),na--,!0):void 0}function r(){k()&&s()}function s(){ga="number"==typeof $.contentHeight?$.contentHeight:"number"==typeof $.height?$.height-(ca?ca.outerHeight(!0):0):"undefined"!=typeof $.height&&"parent"===$.height?a(la).parent().height()-(ca?ca.outerHeight(!0):0):Math.round(da.width()/Math.max($.aspectRatio,.5))}function t(a){!na&&a.target===window&&fa.start&&q(!0)&&fa.trigger("windowResize",la)}function u(){w(),y()}function v(){k()&&(S(),fa.destroyViewEvents(),fa.renderViewEvents(oa),T())}function w(){S(),fa.destroyViewEvents(),T()}function x(){!$.lazyFetching||ja(fa.start,fa.end)?y():v()}function y(){ka(fa.start,fa.end)}function z(a){oa=a,v()}function A(){v()}function C(){ba.updateTitle(fa.title)}function D(){var a=Y.getNow();a.isWithin(fa.intervalStart,fa.intervalEnd)?ba.disableButton("today"):ba.enableButton("today")}function E(a,b){a=Y.moment(a),b=b?Y.moment(b):a.hasTime()?a.clone().add(Y.defaultTimedEventDuration):a.clone().add(Y.defaultAllDayEventDuration),fa.select({start:a,end:b})}function G(){fa&&fa.unselect()}function H(){ia=fa.computePrevDate(ia),l()}function I(){ia=fa.computeNextDate(ia),l()}function J(){ia.add(-1,"years"),l()}function K(){ia.add(1,"years"),l()}function L(){ia=Y.getNow(),l()}function M(a){ia=Y.moment(a),l()}function O(a){ia.add(b.duration(a)),l()}function P(a,b){var c,d;b&&o(b)||(b=b||"day",c=ba.getViewsWithButtons().join(" "),d=c.match(new RegExp("\\w+"+N(b))),d||(d=c.match(/\w+Day/)),b=d?d[0]:"agendaDay"),ia=a,l(b)}function R(){return ia.clone()}function S(){da.css({width:"100%",height:da.height(),overflow:"hidden"})}function T(){da.css({width:"",height:"",overflow:""})}function U(){return Y}function V(){return fa}function W(a,b){return void 0===b?$[a]:void(("height"==a||"contentHeight"==a||"aspectRatio"==a)&&($[a]=b,q(!0)))}function X(a,b){return $[a]?$[a].apply(b||la,Array.prototype.slice.call(arguments,2)):void 0}var Y=this;e=e||{};var Z,$=d({},za,e);Z=$.lang in Ea?Ea[$.lang]:Ea[za.lang],Z&&($=d({},za,Z,e)),$.isRTL&&($=d({},za,Ba,Z||{},e)),Y.options=$,Y.render=h,Y.destroy=j,Y.refetchEvents=u,Y.reportEvents=z,Y.reportEventChange=A,Y.rerenderEvents=v,Y.changeView=l,Y.select=E,Y.unselect=G,Y.prev=H,Y.next=I,Y.prevYear=J,Y.nextYear=K,Y.today=L,Y.gotoDate=M,Y.incrementDate=O,Y.zoomTo=P,Y.getDate=R,Y.getCalendar=U,Y.getView=V,Y.option=W,Y.trigger=X,Y.isValidViewType=o,Y.getViewButtonText=p;var _=F(f($.lang));if($.monthNames&&(_._months=$.monthNames),$.monthNamesShort&&(_._monthsShort=$.monthNamesShort),$.dayNames&&(_._weekdays=$.dayNames),$.dayNamesShort&&(_._weekdaysShort=$.dayNamesShort),null!=$.firstDay){var aa=F(_._week);aa.dow=$.firstDay,_._week=aa}Y.defaultAllDayEventDuration=b.duration($.defaultAllDayEventDuration),Y.defaultTimedEventDuration=b.duration($.defaultTimedEventDuration),Y.moment=function(){var a;return"local"===$.timezone?(a=Ca.moment.apply(null,arguments),a.hasTime()&&a.local()):a="UTC"===$.timezone?Ca.moment.utc.apply(null,arguments):Ca.moment.parseZone.apply(null,arguments),"_locale"in a?a._locale=_:a._lang=_,a},Y.getIsAmbigTimezone=function(){return"local"!==$.timezone&&"UTC"!==$.timezone},Y.rezoneDate=function(a){return Y.moment(a.toArray())},Y.getNow=function(){var a=$.now;return"function"==typeof a&&(a=a()),Y.moment(a)},Y.calculateWeekNumber=function(a){var b=$.weekNumberCalculation;return"function"==typeof b?b(a):"local"===b?a.week():"ISO"===b.toUpperCase()?a.isoWeek():void 0},Y.getEventEnd=function(a){return a.end?a.end.clone():Y.getDefaultEventEnd(a.allDay,a.start)},Y.getDefaultEventEnd=function(a,b){var c=b.clone();return a?c.stripTime().add(Y.defaultAllDayEventDuration):c.add(Y.defaultTimedEventDuration),Y.getIsAmbigTimezone()&&c.stripZone(),c},xa.call(Y,$);var ba,ca,da,ea,fa,ga,ha,ia,ja=Y.isFetchNeeded,ka=Y.fetchEvents,la=c[0],ma={},na=0,oa=[];ia=null!=$.defaultDate?Y.moment($.defaultDate):Y.getNow(),Y.getSuggestedViewHeight=function(){return void 0===ga&&r(),ga},Y.isHeightAuto=function(){return"auto"===$.contentHeight||"auto"===$.height}}function wa(b,c){function d(){var b=c.header;return n=c.theme?"ui":"fc",b?o=a("<div class='fc-toolbar'/>").append(f("left")).append(f("right")).append(f("center")).append('<div class="fc-clear"/>'):void 0}function e(){o.remove()}function f(d){var e=a('<div class="fc-'+d+'"/>'),f=c.header[d];return f&&a.each(f.split(" "),function(d){var f,g=a(),h=!0;a.each(this.split(","),function(d,e){var f,i,j,k,l,m,o,q,r;if("title"==e)g=g.add(a('<h2 aria-live="polite">&nbsp;</h2>')),h=!1;else if(a.isFunction(c.customButtons[e])){var s=a(c.customButtons[e](c));g=g.add(s)}else b[e]?f=function(){b[e]()}:b.isValidViewType(e)&&(f=function(){b.changeView(e)},p.push(e),l=b.getViewButtonText(e)),f&&(i=y(c.themeButtonIcons,e),j=y(c.buttonIcons,e),k=y(c.defaultButtonText,e),m=y(c.buttonText,e),o=l||m?L(l||m):i&&c.theme?"<span class='ui-icon ui-icon-"+i+"'></span>":j&&!c.theme?"<span class='fc-icon fc-icon-"+j+"'></span>":L(k||e),q=["fc-"+e+"-button",n+"-button",n+"-state-default"],r=a('<button type="button" class="'+q.join(" ")+'">'+o+"</button>").click(function(){r.hasClass(n+"-state-disabled")||(f(),(r.hasClass(n+"-state-active")||r.hasClass(n+"-state-disabled"))&&r.removeClass(n+"-state-hover"))}).mousedown(function(){r.not("."+n+"-state-active").not("."+n+"-state-disabled").addClass(n+"-state-down")}).mouseup(function(){r.removeClass(n+"-state-down")}).hover(function(){r.not("."+n+"-state-active").not("."+n+"-state-disabled").addClass(n+"-state-hover")},function(){r.removeClass(n+"-state-hover").removeClass(n+"-state-down")}),g=g.add(r))}),h&&g.first().addClass(n+"-corner-left").end().last().addClass(n+"-corner-right").end(),g.length>1||h?(f=a("<div/>"),h&&f.addClass("fc-button-group"),f.append(g),e.append(f)):e.append(g)}),e}function g(a){o.find("h2").text(a)}function h(a){o.find(".fc-"+a+"-button").addClass(n+"-state-active")}function i(a){o.find(".fc-"+a+"-button").removeClass(n+"-state-active")}function j(a){o.find(".fc-"+a+"-button").attr("disabled","disabled").addClass(n+"-state-disabled")}function k(a){o.find(".fc-"+a+"-button").removeAttr("disabled").removeClass(n+"-state-disabled")}function l(){return p}var m=this;m.render=d,m.destroy=e,m.updateTitle=g,m.activateButton=h,m.deactivateButton=i,m.disableButton=j,m.enableButton=k,m.getViewsWithButtons=l;var n,o=a(),p=[]}function xa(c){function d(a,b){return!Q||a.clone().stripZone()<Q.clone().stripZone()||b.clone().stripZone()>R.clone().stripZone()}function e(a,b){Q=a,R=b,$=[];var c=++X,d=W.length;Y=d;for(var e=0;d>e;e++)f(W[e],c)}function f(b,c){g(b,function(d){var e,f,g,h=a.isArray(b.events);if(c==X){if(d)for(e=0;e<d.length;e++)f=d[e],g=h?f:u(f,b),g&&$.push.apply($,y(g));Y--,Y||U($)}})}function g(b,d){var e,f,h=Ca.sourceFetchers;for(e=0;e<h.length;e++){if(f=h[e].call(P,b,Q.clone(),R.clone(),c.timezone,d),f===!0)return;if("object"==typeof f)return void g(f,d)}var i=b.events;if(i)a.isFunction(i)?(s(),i.call(P,Q.clone(),R.clone(),c.timezone,function(a){d(a),t()})):a.isArray(i)?d(i):d();else{var j=b.url;if(j){var k,l=b.success,m=b.error,n=b.complete;k=a.isFunction(b.data)?b.data():b.data;var o=a.extend({},k||{}),p=K(b.startParam,c.startParam),q=K(b.endParam,c.endParam),r=K(b.timezoneParam,c.timezoneParam);p&&(o[p]=Q.format()),q&&(o[q]=R.format()),c.timezone&&"local"!=c.timezone&&(o[r]=c.timezone),s(),a.ajax(a.extend({},eb,b,{data:o,success:function(b){b=b||[];var c=J(l,this,arguments);a.isArray(c)&&(b=c),d(b)},error:function(){J(m,this,arguments),d()},complete:function(){J(n,this,arguments),t()}}))}else d()}}function h(a){var b=i(a);b&&(W.push(b),Y++,f(b,X))}function i(b){var c,d,e=Ca.sourceNormalizers;if(a.isFunction(b)||a.isArray(b)?c={events:b}:"string"==typeof b?c={url:b}:"object"==typeof b&&(c=a.extend({},b)),c){for(c.className?"string"==typeof c.className&&(c.className=c.className.split(/\s+/)):c.className=[],a.isArray(c.events)&&(c.origArray=c.events,c.events=a.map(c.events,function(a){return u(a,c)})),d=0;d<e.length;d++)e[d].call(P,c);return c}}function j(b){W=a.grep(W,function(a){return!k(a,b)}),$=a.grep($,function(a){return!k(a.source,b)}),U($)}function k(a,b){return a&&b&&l(a)==l(b)}function l(a){return("object"==typeof a?a.origArray||a.googleCalendarId||a.url||a.events:null)||a}function m(a){a.start=P.moment(a.start),a.end?a.end=P.moment(a.end):a.end=null,B(a,n(a)),U($)}function n(b){var c={};return a.each(b,function(a,b){o(a)&&void 0!==b&&I(b)&&(c[a]=b)}),c}function o(a){return!/^_|^(id|allDay|start|end)$/.test(a)}function p(a,b){var c,d,e,f=u(a);if(f){for(c=y(f),d=0;d<c.length;d++)e=c[d],e.source||(b&&(V.events.push(e),e.source=V),$.push(e));return U($),c}return[]}function q(b){var c,d;for(null==b?b=function(){return!0}:a.isFunction(b)||(c=b+"",b=function(a){return a._id==c}),$=a.grep($,b,!0),d=0;d<W.length;d++)a.isArray(W[d].events)&&(W[d].events=a.grep(W[d].events,b,!0));U($)}function r(b){return a.isFunction(b)?a.grep($,b):null!=b?(b+="",a.grep($,function(a){return a._id==b})):$}function s(){Z++||S("loading",null,!0,T())}function t(){--Z||S("loading",null,!1,T())}function u(d,e){var f,g,h,i={};if(c.eventDataTransform&&(d=c.eventDataTransform(d)),e&&e.eventDataTransform&&(d=e.eventDataTransform(d)),a.extend(i,d),e&&(i.source=e),i._id=d._id||(void 0===d.id?"_fc"+fb++:d.id+""),d.className?"string"==typeof d.className?i.className=d.className.split(/\s+/):i.className=d.className:i.className=[],f=d.start||d.date,g=d.end,E(f)&&(f=b.duration(f)),E(g)&&(g=b.duration(g)),d.dow||b.isDuration(f)||b.isDuration(g))i.start=f?b.duration(f):null,i.end=g?b.duration(g):null,i._recurring=!0;else{if(f&&(f=P.moment(f),!f.isValid()))return!1;g&&(g=P.moment(g),g.isValid()||(g=null)),h=d.allDay,void 0===h&&(h=K(e?e.allDayDefault:void 0,c.allDayDefault)),v(f,g,h,i)}return i}function v(a,b,c,d){d.start=a,d.end=b,d.allDay=c,w(d),ya(d)}function w(a){null==a.allDay&&(a.allDay=!(a.start.hasTime()||a.end&&a.end.hasTime())),a.allDay?(a.start.stripTime(),a.end&&a.end.stripTime()):(a.start.hasTime()||(a.start=P.rezoneDate(a.start)),a.end&&!a.end.hasTime()&&(a.end=P.rezoneDate(a.end))),a.end&&!a.end.isAfter(a.start)&&(a.end=null),a.end||(c.forceEventDuration?a.end=P.getDefaultEventEnd(a.allDay,a.start):a.end=null)}function x(a){var b;return a.end||(b=a.allDay,null==b&&(b=!a.start.hasTime()),a={start:a.start,end:P.getDefaultEventEnd(b,a.start)}),a}function y(b,c,d){var e,f,g,h,i,j,k,l,m,n=[];if(c=c||Q,d=d||R,b)if(b._recurring){if(f=b.dow)for(e={},g=0;g<f.length;g++)e[f[g]]=!0;for(h=c.clone().stripTime();h.isBefore(d);)(!e||e[h.day()])&&(i=b.start,j=b.end,k=h.clone(),l=null,i&&(k=k.time(i)),j&&(l=h.clone().time(j)),m=a.extend({},b),v(k,l,!i&&!j,m),n.push(m)),h.add(1,"days")}else n.push(b);return n}function B(b,c){var d,e,f,g,h={};return c=c||{},c.start||(c.start=b.start.clone()),void 0===c.end&&(c.end=b.end?b.end.clone():null),null==c.allDay&&(c.allDay=b.allDay),w(c),d=null!==b._end&&null===c.end,e=c.allDay?A(c.start,b._start):z(c.start,b._start),!d&&c.end&&(f=z(c.end,c.start).subtract(z(b._end||P.getDefaultEventEnd(b._allDay,b._start),b._start))),a.each(c,function(a,b){o(a)&&void 0!==b&&(h[a]=b)}),g=C(r(b._id),d,c.allDay,e,f,h),{dateDelta:e,durationDelta:f,undo:g}}function C(b,c,d,e,f,g){var h=P.getIsAmbigTimezone(),i=[];return e&&!e.valueOf()&&(e=null),f&&!f.valueOf()&&(f=null),a.each(b,function(b,j){var k,l;k={start:j.start.clone(),end:j.end?j.end.clone():null,allDay:j.allDay},a.each(g,function(a){k[a]=j[a]}),l={start:j._start,end:j._end,allDay:j._allDay},c&&(l.end=null),l.allDay=d,w(l),e&&(l.start.add(e),l.end&&l.end.add(e)),f&&(l.end||(l.end=P.getDefaultEventEnd(l.allDay,l.start)),l.end.add(f)),h&&!l.allDay&&(e||f)&&(l.start.stripZone(),l.end&&l.end.stripZone()),a.extend(j,g,l),ya(j),i.push(function(){a.extend(j,k),ya(j)})}),function(){for(var a=0;a<i.length;a++)i[a]()}}function D(){var b,d=c.businessHours,e={className:"fc-nonbusiness",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},f=P.getView();return d&&(b="object"==typeof d?a.extend({},e,d):e),b?y(u(b),f.start,f.end):[]}function F(a,b){var d=b.source||{},e=K(b.constraint,d.constraint,c.eventConstraint),f=K(b.overlap,d.overlap,c.eventOverlap);return a=x(a),L(a,e,f,b)}function G(a){return L(a,c.selectConstraint,c.selectOverlap)}function H(b,c){var d,e;return c&&(d=a.extend({},c,b),e=y(u(d))[0]),e?F(b,e):(b=x(b),G(b))}function L(a,b,c,d){var e,f,g,h,i;if(a={start:a.start.clone().stripZone(),end:a.end.clone().stripZone()},null!=b){for(e=M(b),f=!1,g=0;g<e.length;g++)if(N(e[g],a)){f=!0;break}if(!f)return!1}for(g=0;g<$.length;g++)if(h=$[g],(!d||d._id!==h._id)&&O(h,a)){if(c===!1)return!1;if("function"==typeof c&&!c(h,d))return!1;if(d){if(i=K(h.overlap,(h.source||{}).overlap),i===!1)return!1;if("function"==typeof i&&!i(d,h))return!1}}return!0}function M(a){return"businessHours"===a?D():"object"==typeof a?y(u(a)):r(a)}function N(a,b){var c=a.start.clone().stripZone(),d=P.getEventEnd(a).stripZone();return b.start>=c&&b.end<=d}function O(a,b){var c=a.start.clone().stripZone(),d=P.getEventEnd(a).stripZone();return b.start<d&&b.end>c}var P=this;P.isFetchNeeded=d,P.fetchEvents=e,P.addEventSource=h,P.removeEventSource=j,P.updateEvent=m,P.renderEvent=p,P.removeEvents=q,P.clientEvents=r,P.mutateEvent=B,P.normalizeEventDateProps=w,P.ensureVisibleEventRange=x;var Q,R,S=P.trigger,T=P.getView,U=P.reportEvents,V={events:[]},W=[V],X=0,Y=0,Z=0,$=[];a.each((c.events?[c.events]:[]).concat(c.eventSources||[]),function(a,b){var c=i(b);c&&W.push(c)}),P.getBusinessHoursEvents=D,P.isEventRangeAllowed=F,P.isSelectionRangeAllowed=G,P.isExternalDropRangeAllowed=H}function ya(a){a._allDay=a.allDay,a._start=a.start.clone(),a._end=a.end?a.end.clone():null}var za={titleRangeSeparator:" — ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,defaultButtonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200},Aa={dayPopoverFormat:"dddd, MMMM D"},Ba={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}},Ca=a.fullCalendar={version:"2.2.7"},Da=Ca.views={};a.fn.fullCalendar=function(b){var c=Array.prototype.slice.call(arguments,1),d=this;return this.each(function(e,f){var g,h=a(f),i=h.data("fullCalendar");"string"==typeof b?i&&a.isFunction(i[b])&&(g=i[b].apply(i,c),e||(d=g),"destroy"===b&&h.removeData("fullCalendar")):i||(i=new va(h,b),h.data("fullCalendar",i),i.render())}),d};var Ea=Ca.langs={};Ca.datepickerLang=function(b,c,d){var e=Ea[b]||(Ea[b]={});e.isRTL=d.isRTL,e.weekNumberTitle=d.weekHeader,a.each(Fa,function(a,b){e[a]=b(d)}),a.datepicker&&(a.datepicker.regional[c]=a.datepicker.regional[b]=d,a.datepicker.regional.en=a.datepicker.regional[""],a.datepicker.setDefaults(d))},Ca.lang=function(b,c){var e,g;e=Ea[b]||(Ea[b]={}),c&&d(e,c),g=f(b),a.each(Ga,function(a,b){void 0===e[a]&&(e[a]=b(g,e))}),za.lang=b};var Fa={defaultButtonText:function(a){return{prev:M(a.prevText),next:M(a.nextText),today:M(a.currentText)}},monthYearFormat:function(a){return a.showMonthAfterYear?"YYYY["+a.yearSuffix+"] MMMM":"MMMM YYYY["+a.yearSuffix+"]"}},Ga={dayOfMonthFormat:function(a,b){var c=a.longDateFormat("l");return c=c.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),b.isRTL?c+=" ddd":c="ddd "+c,c},smallTimeFormat:function(a){return a.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(a){return a.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},noMeridiemTimeFormat:function(a){return a.longDateFormat("LT").replace(/\s*a$/i,"")}};Ca.lang("en",Aa),Ca.intersectionToSeg=x,Ca.applyAll=J,Ca.debounce=Q;var Ha,Ia,Ja,Ka=-1!==navigator.userAgent.toLowerCase().indexOf("phantom"),La=!1,Ma=["sun","mon","tue","wed","thu","fri","sat"],Na=["year","month","week","day","hour","minute","second","millisecond"],Oa={}.hasOwnProperty,Pa=/^\s*\d{4}-\d\d$/,Qa=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,Ra=b.fn,Sa=a.extend({},Ra);Ca.moment=function(){return R(arguments)},Ca.moment.utc=function(){var a=R(arguments,!0);return a.hasTime()&&a.utc(),a},Ca.moment.parseZone=function(){return R(arguments,!0,!0)},Ra.clone=function(){var a=Sa.clone.apply(this,arguments);return T(this,a),this._fullCalendar&&(a._fullCalendar=!0),a},Ra.time=function(a){if(!this._fullCalendar)return Sa.time.apply(this,arguments);if(null==a)return b.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,b.isDuration(a)||b.isMoment(a)||(a=b.duration(a));var c=0;return b.isDuration(a)&&(c=24*Math.floor(a.asDays())),this.hours(c+a.hours()).minutes(a.minutes()).seconds(a.seconds()).milliseconds(a.milliseconds())},Ra.stripTime=function(){var a;return this._ambigTime||(a=this.toArray(),this.utc(),Ia(this,a.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this},Ra.hasTime=function(){return!this._ambigTime},Ra.stripZone=function(){var a,b;return this._ambigZone||(a=this.toArray(),b=this._ambigTime,this.utc(),Ia(this,a),this._ambigTime=b||!1,this._ambigZone=!0),this},Ra.hasZone=function(){return!this._ambigZone},Ra.local=function(){var a=this.toArray(),b=this._ambigZone;return Sa.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,b&&Ja(this,a),this},Ra.utc=function(){return Sa.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this},a.each(["zone","utcOffset"],function(a,b){Sa[b]&&(Ra[b]=function(a){return null!=a&&(this._ambigTime=!1,this._ambigZone=!1),Sa[b].apply(this,arguments)})}),Ra.format=function(){return this._fullCalendar&&arguments[0]?W(this,arguments[0]):this._ambigTime?V(this,"YYYY-MM-DD"):this._ambigZone?V(this,"YYYY-MM-DD[T]HH:mm:ss"):Sa.format.apply(this,arguments)},Ra.toISOString=function(){return this._ambigTime?V(this,"YYYY-MM-DD"):this._ambigZone?V(this,"YYYY-MM-DD[T]HH:mm:ss"):Sa.toISOString.apply(this,arguments)},Ra.isWithin=function(a,b){var c=S([this,a,b]);return c[0]>=c[1]&&c[0]<c[2]},Ra.isSame=function(a,b){var c;return this._fullCalendar?b?(c=S([this,a],!0),Sa.isSame.call(c[0],c[1],b)):(a=Ca.moment.parseZone(a),Sa.isSame.call(this,a)&&Boolean(this._ambigTime)===Boolean(a._ambigTime)&&Boolean(this._ambigZone)===Boolean(a._ambigZone)):Sa.isSame.apply(this,arguments)},a.each(["isBefore","isAfter"],function(a,b){Ra[b]=function(a,c){var d;return this._fullCalendar?(d=S([this,a]),Sa[b].call(d[0],d[1],c)):Sa[b].apply(this,arguments)}}),Ha="_d"in b()&&"updateOffset"in b,Ia=Ha?function(a,c){a._d.setTime(Date.UTC.apply(Date,c)),b.updateOffset(a,!1)}:U,Ja=Ha?function(a,c){a._d.setTime(+new Date(c[0]||0,c[1]||0,c[2]||0,c[3]||0,c[4]||0,c[5]||0,c[6]||0)),b.updateOffset(a,!1)}:U;var Ta={t:function(a){return V(a,"a").charAt(0)},T:function(a){return V(a,"A").charAt(0)}};Ca.formatRange=Z;var Ua={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"},Va={};Ca.Class=ca,ca.extend=function(a){var b,c=this;return a=a||{},H(a,"constructor")&&(b=a.constructor),"function"!=typeof b&&(b=a.constructor=function(){c.apply(this,arguments)}),b.prototype=F(c.prototype),G(a,b.prototype),G(c,b),b},ca.mixin=function(a){G(a.prototype||a,this.prototype)};var Wa=ca.extend({isHidden:!0,options:null,el:null,documentMousedownProxy:null,margin:10,constructor:function(a){this.options=a||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var b=this,c=this.options;this.el=a('<div class="fc-popover"/>').addClass(c.className||"").css({top:0,left:0}).append(c.content).appendTo(c.parentEl),this.el.on("click",".fc-close",function(){b.hide()}),c.autoHide&&a(document).on(m(),this.documentMousedownProxy=a.proxy(this,"documentMousedown"))},documentMousedown:function(b){this.el&&!a(b.target).closest(this.el).length&&(this.hide(),b.stopPropagation())},destroy:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),
3
  a(document).off(m(),this.documentMousedownProxy)},position:function(){var b,c,d,e,f,g=this.options,h=this.el.offsetParent().offset(),i=this.el.outerWidth(),j=this.el.outerHeight(),k=a(window),l=u(this.el);e=g.top||0,f=void 0!==g.left?g.left:void 0!==g.right?g.right-i:0,l.is(window)||l.is(document)?(l=k,b=0,c=0):(d=l.offset(),b=d.top,c=d.left),b+=k.scrollTop(),c+=k.scrollLeft(),g.viewportConstrain!==!1&&(e=Math.min(e,b+l.outerHeight()-j-this.margin),e=Math.max(e,b+this.margin),f=Math.min(f,c+l.outerWidth()-i-this.margin),f=Math.max(f,c+this.margin)),this.el.css({top:e-h.top,left:f-h.left})},trigger:function(a){this.options[a]&&this.options[a].apply(this,Array.prototype.slice.call(arguments,1))}}),Xa=ca.extend({grid:null,rowCoords:null,colCoords:null,containerEl:null,minX:null,maxX:null,minY:null,maxY:null,constructor:function(a){this.grid=a},build:function(){this.rowCoords=this.grid.computeRowCoords(),this.colCoords=this.grid.computeColCoords(),this.computeBounds()},clear:function(){this.rowCoords=null,this.colCoords=null},getCell:function(a,b){var c,d,e,f=this.rowCoords,g=this.colCoords,h=null,i=null;if(this.inBounds(a,b)){for(c=0;c<f.length;c++)if(d=f[c],b>=d.top&&b<d.bottom){h=c;break}for(c=0;c<g.length;c++)if(d=g[c],a>=d.left&&a<d.right){i=c;break}if(null!==h&&null!==i)return e=this.grid.getCell(h,i),e.grid=this.grid,e}return null},computeBounds:function(){var a;this.containerEl&&(a=this.containerEl.offset(),this.minX=a.left,this.maxX=a.left+this.containerEl.outerWidth(),this.minY=a.top,this.maxY=a.top+this.containerEl.outerHeight())},inBounds:function(a,b){return this.containerEl?a>=this.minX&&a<this.maxX&&b>=this.minY&&b<this.maxY:!0}}),Ya=ca.extend({coordMaps:null,constructor:function(a){this.coordMaps=a},build:function(){var a,b=this.coordMaps;for(a=0;a<b.length;a++)b[a].build()},getCell:function(a,b){var c,d=this.coordMaps,e=null;for(c=0;c<d.length&&!e;c++)e=d[c].getCell(a,b);return e},clear:function(){var a,b=this.coordMaps;for(a=0;a<b.length;a++)b[a].clear()}}),Za=ca.extend({coordMap:null,options:null,isListening:!1,isDragging:!1,origCell:null,cell:null,mouseX0:null,mouseY0:null,mousemoveProxy:null,mouseupProxy:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,constructor:function(a,b){this.coordMap=a,this.options=b||{}},mousedown:function(a){w(a)&&(k(a)||a.preventDefault(),this.startListening(a),this.options.distance||this.startDrag(a))},startListening:function(b){var c,d;this.isListening||(b&&this.options.scroll&&(c=u(a(b.target)),c.is(window)||c.is(document)||(this.scrollEl=c,this.scrollHandlerProxy=Q(a.proxy(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),this.computeCoords(),b&&(d=this.getCell(b),this.origCell=d,this.mouseX0=l(b).x,this.mouseY0=l(b).y),a(document).on(o(),this.mousemoveProxy=a.proxy(this,"mousemove")).on(n(),this.mouseupProxy=a.proxy(this,"mouseup")).on("selectstart",this.preventDefault),this.isListening=!0,this.trigger("listenStart",b))},computeCoords:function(){this.coordMap.build(),this.computeScrollBounds()},mousemove:function(a){var b,c;this.isDragging||(b=this.options.distance||1,c=Math.pow(l(a).x-this.mouseX0,2)+Math.pow(l(a).y-this.mouseY0,2),c>=b*b&&this.startDrag(a)),this.isDragging&&this.drag(a)},startDrag:function(a){var b;this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.trigger("dragStart",a),b=this.getCell(a),b&&this.cellOver(b))},drag:function(a){var b;this.isDragging&&(b=this.getCell(a),da(b,this.cell)||(this.cell&&this.cellOut(),!b||k(a)&&!La||this.cellOver(b)),this.dragScroll(a))},cellOver:function(a){this.cell=a,this.trigger("cellOver",a,da(a,this.origCell))},cellOut:function(){this.cell&&(this.trigger("cellOut",this.cell),this.cell=null)},mouseup:function(a){this.stopDrag(a),this.stopListening(a)},stopDrag:function(a){this.isDragging&&(this.stopScrolling(),this.trigger("dragStop",a),this.isDragging=!1)},stopListening:function(b){this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),a(document).off(o(),this.mousemoveProxy).off(n(),this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.trigger("listenStop",b),this.origCell=this.cell=null,this.coordMap.clear())},getCell:function(a){return this.coordMap.getCell(l(a).x,l(a).y)},trigger:function(a){this.options[a]&&this.options[a].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(a){a.preventDefault()},computeScrollBounds:function(){var a,b=this.scrollEl;b&&(a=b.offset(),this.scrollBounds={top:a.top,left:a.left,bottom:a.top+b.outerHeight(),right:a.left+b.outerWidth()})},dragScroll:function(a){var b,c,d,e,f=this.scrollSensitivity,g=this.scrollBounds,h=0,i=0;g&&(b=(f-(l(a).y-g.top))/f,c=(f-(g.bottom-l(a).y))/f,d=(f-(l(a).x-g.left))/f,e=(f-(g.right-l(a).x))/f,b>=0&&1>=b?h=b*this.scrollSpeed*-1:c>=0&&1>=c&&(h=c*this.scrollSpeed),d>=0&&1>=d?i=d*this.scrollSpeed*-1:e>=0&&1>=e&&(i=e*this.scrollSpeed)),this.setScrollVel(h,i)},setScrollVel:function(b,c){this.scrollTopVel=b,this.scrollLeftVel=c,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(a.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var a=this.scrollEl;this.scrollTopVel<0?a.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&a.scrollTop()+a[0].clientHeight>=a[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?a.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&a.scrollLeft()+a[0].clientWidth>=a[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var a=this.scrollEl,b=this.scrollIntervalMs/1e3;this.scrollTopVel&&a.scrollTop(a.scrollTop()+this.scrollTopVel*b),this.scrollLeftVel&&a.scrollLeft(a.scrollLeft()+this.scrollLeftVel*b),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.computeCoords())},scrollHandler:function(){this.scrollIntervalId||this.computeCoords()}}),$a=ca.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(b,c){this.options=c=c||{},this.sourceEl=b,this.parentEl=c.parentEl?a(c.parentEl):b.parent()},start:function(b){this.isFollowing||(this.isFollowing=!0,this.mouseY0=l(b).y,this.mouseX0=l(b).x,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),a(document).on(o(),this.mousemoveProxy=a.proxy(this,"mousemove")))},stop:function(b,c){function d(){this.isAnimating=!1,e.destroyEl(),this.top0=this.left0=null,c&&c()}var e=this,f=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,a(document).off(o(),this.mousemoveProxy),b&&f&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:f,complete:d})):d())},getEl:function(){var a=this.el;return a||(this.sourceEl.width(),a=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),a},destroyEl:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var a,b;this.getEl(),null===this.top0&&(this.sourceEl.width(),a=this.sourceEl.offset(),b=this.el.offsetParent().offset(),this.top0=a.top-b.top,this.left0=a.left-b.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(a){this.topDelta=l(a).y-this.mouseY0,this.leftDelta=l(a).x-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),_a=ca.extend({view:null,isRTL:null,cellHtml:"<td/>",constructor:function(a){this.view=a,this.isRTL=a.opt("isRTL")},rowHtml:function(a,b){var c,d,e=this.getHtmlRenderer("cell",a),f="";for(b=b||0,c=0;c<this.colCnt;c++)d=this.getCell(b,c),f+=e(d);return f=this.bookendCells(f,a,b),"<tr>"+f+"</tr>"},bookendCells:function(a,b,c){var d=this.getHtmlRenderer("intro",b)(c||0),e=this.getHtmlRenderer("outro",b)(c||0),f=this.isRTL?e:d,g=this.isRTL?d:e;return"string"==typeof a?f+a+g:a.prepend(f).append(g)},getHtmlRenderer:function(a,b){var c,d,e,f,g=this.view;return c=a+"Html",b&&(d=b+N(a)+"Html"),d&&(f=g[d])?e=g:d&&(f=this[d])?e=this:(f=g[c])?e=g:(f=this[c])&&(e=this),"function"==typeof f?function(){return f.apply(e,arguments)||""}:function(){return f||""}}}),ab=Ca.Grid=_a.extend({start:null,end:null,rowCnt:0,colCnt:0,rowData:null,colData:null,el:null,coordMap:null,elsByFill:null,documentDragStartProxy:null,colHeadFormat:null,eventTimeFormat:null,displayEventEnd:null,constructor:function(){_a.apply(this,arguments),this.coordMap=new Xa(this),this.elsByFill={},this.documentDragStartProxy=a.proxy(this,"documentDragStart")},render:function(){this.bindHandlers()},destroy:function(){this.unbindHandlers()},computeColHeadFormat:function(){},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventEnd:function(){return!1},setRange:function(a){var b=this.view;this.start=a.start.clone(),this.end=a.end.clone(),this.rowData=[],this.colData=[],this.updateCells(),this.colHeadFormat=b.opt("columnFormat")||this.computeColHeadFormat(),this.eventTimeFormat=b.opt("timeFormat")||this.computeEventTimeFormat(),this.displayEventEnd=b.opt("displayEventEnd"),null==this.displayEventEnd&&(this.displayEventEnd=this.computeDisplayEventEnd())},updateCells:function(){},rangeToSegs:function(a){},getCell:function(b,c){var d;return null==c&&("number"==typeof b?(c=b%this.colCnt,b=Math.floor(b/this.colCnt)):(c=b.col,b=b.row)),d={row:b,col:c},a.extend(d,this.getRowData(b),this.getColData(c)),a.extend(d,this.computeCellRange(d)),d},computeCellRange:function(a){},getRowData:function(a){return this.rowData[a]||{}},getColData:function(a){return this.colData[a]||{}},getRowEl:function(a){},getColEl:function(a){},getCellDayEl:function(a){return this.getColEl(a.col)||this.getRowEl(a.row)},computeRowCoords:function(){var a,b,c,d=[];for(a=0;a<this.rowCnt;a++)b=this.getRowEl(a),c={top:b.offset().top},a>0&&(d[a-1].bottom=c.top),d.push(c);return c.bottom=c.top+b.outerHeight(),d},computeColCoords:function(){var a,b,c,d=[];for(a=0;a<this.colCnt;a++)b=this.getColEl(a),c={left:b.offset().left},a>0&&(d[a-1].right=c.left),d.push(c);return c.right=c.left+b.outerWidth(),d},bindHandlers:function(){var b=this;this.el.on(m(),function(c){a(c.target).is(".fc-event-container *, .fc-more")||b.view.el.find(".fc-popover").length||a(c.target).closest(".fc-popover").length||b.dayMousedown(c)}),this.bindSegHandlers(),a(document).on("dragstart",this.documentDragStartProxy)},unbindHandlers:function(){a(document).off("dragstart",this.documentDragStartProxy)},dayMousedown:function(a){var b,c,d=this,e=this.view,f=e.opt("selectable"),g=new Za(this.coordMap,{scroll:e.opt("dragScroll"),dragStart:function(){e.unselect()},cellOver:function(a,e){var h=g.origCell;h&&(b=e?a:null,f&&(c=d.computeSelection(h,a),c?d.renderSelection(c):i()))},cellOut:function(a){b=null,c=null,d.destroySelection(),j()},listenStop:function(a){b&&(a.preventDefault(),e.trigger("dayClick",d.getCellDayEl(b),b.start,a)),c&&e.reportSelection(c,a),j()}});g.mousedown(a)},renderRangeHelper:function(a,b){var c;c=b?F(b.event):{},c.start=a.start.clone(),c.end=a.end?a.end.clone():null,c.allDay=null,this.view.calendar.normalizeEventDateProps(c),c.className=(c.className||[]).concat("fc-helper"),b||(c.editable=!1),this.renderHelper(c,b)},renderHelper:function(a,b){},destroyHelper:function(){},renderSelection:function(a){this.renderHighlight(a)},destroySelection:function(){this.destroyHighlight()},computeSelection:function(a,b){var c,d=[a.start,a.end,b.start,b.end];return d.sort(O),c={start:d[0].clone(),end:d[3].clone()},this.view.calendar.isSelectionRangeAllowed(c)?c:null},renderHighlight:function(a){this.renderFill("highlight",this.rangeToSegs(a))},destroyHighlight:function(){this.destroyFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderFill:function(a,b){},destroyFill:function(a){var b=this.elsByFill[a];b&&(b.remove(),delete this.elsByFill[a])},renderFillSegEls:function(b,c){var d,e=this,f=this[b+"SegEl"],g="",h=[];if(c.length){for(d=0;d<c.length;d++)g+=this.fillSegHtml(b,c[d]);a(g).each(function(b,d){var g=c[b],i=a(d);f&&(i=f.call(e,g,i)),i&&(i=a(i),i.is(e.fillSegTag)&&(g.el=i,h.push(g)))})}return h},fillSegTag:"div",fillSegHtml:function(a,b){var c=this[a+"SegClasses"],d=this[a+"SegStyles"],e=c?c.call(this,b):[],f=d?d.call(this,b):"";return"<"+this.fillSegTag+(e.length?' class="'+e.join(" ")+'"':"")+(f?' style="'+f+'"':"")+" />"},headHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.rowHtml("head")+"</thead></table></div>"},headCellHtml:function(a){var b=this.view,c=a.start;return'<th class="fc-day-header '+b.widgetHeaderClass+" fc-"+Ma[c.day()]+'">'+L(c.format(this.colHeadFormat))+"</th>"},bgCellHtml:function(a){var b=this.view,c=a.start,d=this.getDayClasses(c);return d.unshift("fc-day",b.widgetContentClass),'<td class="'+d.join(" ")+'" data-date="'+c.format("YYYY-MM-DD")+'"></td>'},getDayClasses:function(a){var b=this.view,c=b.calendar.getNow().stripTime(),d=["fc-"+Ma[a.day()]];return"month"===b.name&&a.month()!=b.intervalStart.month()&&d.push("fc-other-month"),a.isSame(c,"day")?d.push("fc-today",b.highlightStateClass):c>a?d.push("fc-past"):d.push("fc-future"),d}});ab.mixin({mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,segs:null,renderEvents:function(a){var b,c,d=this.eventsToSegs(a),e=[],f=[];for(b=0;b<d.length;b++)c=d[b],ea(c.event)?e.push(c):f.push(c);e=this.renderBgSegs(e)||e,f=this.renderFgSegs(f)||f,this.segs=e.concat(f)},destroyEvents:function(){this.triggerSegMouseout(),this.destroyFgSegs(),this.destroyBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(a){},destroyFgSegs:function(){},renderFgSegEls:function(b,c){var d,e=this.view,f="",g=[];if(b.length){for(d=0;d<b.length;d++)f+=this.fgSegHtml(b[d],c);a(f).each(function(c,d){var f=b[c],h=e.resolveEventEl(f.event,a(d));h&&(h.data("fc-seg",f),f.el=h,g.push(f))})}return g},fgSegHtml:function(a,b){},renderBgSegs:function(a){return this.renderFill("bgEvent",a)},destroyBgSegs:function(){this.destroyFill("bgEvent")},bgEventSegEl:function(a,b){return this.view.resolveEventEl(a.event,b)},bgEventSegClasses:function(a){var b=a.event,c=b.source||{};return["fc-bgevent"].concat(b.className,c.className||[])},bgEventSegStyles:function(a){var b=this.view,c=a.event,d=c.source||{},e=c.color,f=d.color,g=b.opt("eventColor"),h=c.backgroundColor||e||d.backgroundColor||f||b.opt("eventBackgroundColor")||g;return h?"background-color:"+h:""},businessHoursSegClasses:function(a){return["fc-nonbusiness","fc-bgevent"]},bindSegHandlers:function(){var b=this,c=this.view,d={};d.mouseenter=function(a,c){b.triggerSegMouseover(a,c)},d.mouseleave=function(a,c){b.triggerSegMouseout(a,c)},d.click=function(a,b){return c.trigger("eventClick",this,a.event,b)},d[m()]=function(d,e){a(e.target).is(".fc-resizer")&&c.isEventResizable(d.event)?b.segResizeMousedown(d,e):!c.isEventDraggable(d.event)||k(e)&&!La||b.segDragMousedown(d,e)},a.each(d,function(c,d){b.el.on(c,".fc-event-container > *",function(c){var e=a(this).data("fc-seg");return!e||b.isDraggingSeg||b.isResizingSeg?void 0:d.call(this,e,c)})})},triggerSegMouseover:function(a,b){this.mousedOverSeg||(this.mousedOverSeg=a,this.view.trigger("eventMouseover",a.el[0],a.event,b))},triggerSegMouseout:function(a,b){b=b||{},this.mousedOverSeg&&(a=a||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",a.el[0],a.event,b))},segDragMousedown:function(a,b){var c,d=this,e=this.view,f=a.el,g=a.event,h=new $a(a.el,{parentEl:e.el,opacity:e.opt("dragOpacity"),revertDuration:e.opt("dragRevertDuration"),zIndex:2}),k=new Za(e.coordMap,{distance:5,scroll:e.opt("dragScroll"),listenStart:function(a){h.hide(),h.start(a)},dragStart:function(b){d.triggerSegMouseout(a,b),d.isDraggingSeg=!0,e.hideEvent(g),e.trigger("eventDragStart",f[0],g,b,{})},cellOver:function(b,f){var j=a.cell||k.origCell;c=d.computeEventDrop(j,b,g),c?(e.renderDrag(c,a)?h.hide():h.show(),f&&(c=null)):(h.show(),i())},cellOut:function(){c=null,e.destroyDrag(),h.show(),j()},dragStop:function(a){h.stop(!c,function(){d.isDraggingSeg=!1,e.destroyDrag(),e.showEvent(g),e.trigger("eventDragStop",f[0],g,a,{}),c&&e.reportEventDrop(g,c,f,a)}),j()},listenStop:function(){h.stop()}});k.mousedown(b)},computeEventDrop:function(a,b,c){var d,e,f,g,h,i=a.start,j=b.start;return i.hasTime()===j.hasTime()?(d=z(j,i),e=c.start.clone().add(d),f=null===c.end?null:c.end.clone().add(d),g=c.allDay):(e=j.clone(),f=null,g=!j.hasTime()),h={start:e,end:f,allDay:g},this.view.calendar.isEventRangeAllowed(h,c)?h:null},documentDragStart:function(b,c){var d,e,f=this.view;f.opt("droppable")&&(d=a(b.target),e=f.opt("dropAccept"),(a.isFunction(e)?e.call(d[0],d):d.is(e))&&this.startExternalDrag(d,b,c))},startExternalDrag:function(b,c,d){var e,f,g=this,h=ka(b);e=new Za(this.coordMap,{cellOver:function(a){f=g.computeExternalDrop(a,h),f?g.renderDrag(f):i()},cellOut:function(){f=null,g.destroyDrag(),j()}}),a(document).one("dragstop",function(a,c){g.destroyDrag(),j(),f&&g.view.reportExternalDrop(h,f,b,a,c)}),e.startDrag(c)},computeExternalDrop:function(a,b){var c={start:a.start.clone(),end:null};return b.startTime&&!c.start.hasTime()&&c.start.time(b.startTime),b.duration&&(c.end=c.start.clone().add(b.duration)),this.view.calendar.isExternalDropRangeAllowed(c,b.eventProps)?c:null},renderDrag:function(a,b){},destroyDrag:function(){},segResizeMousedown:function(a,b){function c(){f.destroyEventResize(),g.showEvent(l),j()}var d,e,f=this,g=this.view,h=g.calendar,k=a.el,l=a.event,m=l.start,n=h.getEventEnd(l);e=new Za(this.coordMap,{distance:5,scroll:g.opt("dragScroll"),dragStart:function(b){f.triggerSegMouseout(a,b),f.isResizingSeg=!0,g.trigger("eventResizeStart",k[0],l,b,{})},cellOver:function(b){d=b.end,d.isAfter(m)||(d=m.clone().add(z(b.end,b.start))),d.isSame(n)?d=null:h.isEventRangeAllowed({start:m,end:d},l)?(f.renderEventResize({start:m,end:d},a),g.hideEvent(l)):(d=null,i())},cellOut:function(){d=null,c()},dragStop:function(a){f.isResizingSeg=!1,c(),g.trigger("eventResizeStop",k[0],l,a,{}),d&&g.reportEventResize(l,d,k,a)}}),e.mousedown(b)},renderEventResize:function(a,b){},destroyEventResize:function(){},getEventTimeText:function(a,b){return b=b||this.eventTimeFormat,a.end&&this.displayEventEnd?this.view.formatRange(a,b):a.start.format(b)},getSegClasses:function(a,b,c){var d=a.event,e=["fc-event",a.isStart?"fc-start":"fc-not-start",a.isEnd?"fc-end":"fc-not-end"].concat(d.className,d.source?d.source.className:[]);return b&&e.push("fc-draggable"),c&&e.push("fc-resizable"),e},getEventSkinCss:function(a){var b=this.view,c=a.source||{},d=a.color,e=c.color,f=b.opt("eventColor"),g=a.backgroundColor||d||c.backgroundColor||e||b.opt("eventBackgroundColor")||f,h=a.borderColor||d||c.borderColor||e||b.opt("eventBorderColor")||f,i=a.textColor||c.textColor||b.opt("eventTextColor"),j=[];return g&&j.push("background-color:"+g),h&&j.push("border-color:"+h),i&&j.push("color:"+i),j.join(";")},eventsToSegs:function(a,b){var c,d=this.eventsToRanges(a),e=[];for(c=0;c<d.length;c++)e.push.apply(e,this.eventRangeToSegs(d[c],b));return e},eventsToRanges:function(b){var c=this,d=ha(b),e=[];return a.each(d,function(a,b){b.length&&e.push.apply(e,fa(b[0])?c.eventsToInverseRanges(b):c.eventsToNormalRanges(b))}),e},eventsToNormalRanges:function(a){var b,c,d,e,f=this.view.calendar,g=[];for(b=0;b<a.length;b++)c=a[b],d=c.start.clone().stripZone(),e=f.getEventEnd(c).stripZone(),g.push({event:c,start:d,end:e,eventStartMS:+d,eventDurationMS:e-d});return g},eventsToInverseRanges:function(a){var b,c,d=this.view,e=d.start.clone().stripZone(),f=d.end.clone().stripZone(),g=this.eventsToNormalRanges(a),h=[],i=a[0],j=e;for(g.sort(ia),b=0;b<g.length;b++)c=g[b],c.start>j&&h.push({event:i,start:j,end:c.start}),j=c.end;return f>j&&h.push({event:i,start:j,end:f}),h},eventRangeToSegs:function(a,b){var c,d,e;for(c=b?b(a):this.rangeToSegs(a),d=0;d<c.length;d++)e=c[d],e.event=a.event,e.eventStartMS=a.eventStartMS,e.eventDurationMS=a.eventDurationMS;return c}}),Ca.compareSegs=ja,Ca.dataAttrPrefix="";var bb=ab.extend({numbersVisible:!1,bottomCoordPadding:0,breakOnWeeks:null,cellDates:null,dayToCellOffsets:null,rowEls:null,dayEls:null,helperEls:null,render:function(a){var b,c,d,e=this.view,f=this.rowCnt,g=this.colCnt,h=f*g,i="";for(b=0;f>b;b++)i+=this.dayRowHtml(b,a);for(this.el.html(i),this.rowEls=this.el.find(".fc-row"),this.dayEls=this.el.find(".fc-day"),c=0;h>c;c++)d=this.getCell(c),e.trigger("dayRender",null,d.start,this.dayEls.eq(c));ab.prototype.render.call(this)},destroy:function(){this.destroySegPopover(),ab.prototype.destroy.call(this)},dayRowHtml:function(a,b){var c=this.view,d=["fc-row","fc-week",c.widgetContentClass];return b&&d.push("fc-rigid"),'<div class="'+d.join(" ")+'"><div class="fc-bg"><table>'+this.rowHtml("day",a)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.rowHtml("number",a)+"</thead>":"")+"</table></div></div>"},dayCellHtml:function(a){return this.bgCellHtml(a)},computeColHeadFormat:function(){return this.rowCnt>1?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},updateCells:function(){var a,b,c,d;if(this.updateCellDates(),a=this.cellDates,this.breakOnWeeks){for(b=a[0].day(),d=1;d<a.length&&a[d].day()!=b;d++);c=Math.ceil(a.length/d)}else c=1,d=a.length;this.rowCnt=c,this.colCnt=d},updateCellDates:function(){for(var a=this.view,b=this.start.clone(),c=[],d=-1,e=[];b.isBefore(this.end);)a.isHiddenDay(b)?e.push(d+.5):(d++,e.push(d),c.push(b.clone())),b.add(1,"days");this.cellDates=c,this.dayToCellOffsets=e},computeCellRange:function(a){var b=this.colCnt,c=a.row*b+(this.isRTL?b-a.col-1:a.col),d=this.cellDates[c].clone(),e=d.clone().add(1,"day");return{start:d,end:e}},getRowEl:function(a){return this.rowEls.eq(a)},getColEl:function(a){return this.dayEls.eq(a)},getCellDayEl:function(a){return this.dayEls.eq(a.row*this.colCnt+a.col)},computeRowCoords:function(){var a=ab.prototype.computeRowCoords.call(this);return a[a.length-1].bottom+=this.bottomCoordPadding,a},rangeToSegs:function(a){var b,c,d,e,f,g,h,i,j,k,l=this.isRTL,m=this.rowCnt,n=this.colCnt,o=[];for(a=this.view.computeDayRange(a),b=this.dateToCellOffset(a.start),c=this.dateToCellOffset(a.end.subtract(1,"days")),d=0;m>d;d++)e=d*n,f=e+n-1,i=Math.max(e,b),j=Math.min(f,c),i=Math.ceil(i),j=Math.floor(j),j>=i&&(g=i===b,h=j===c,i-=e,j-=e,k={row:d,isStart:g,isEnd:h},l?(k.leftCol=n-j-1,k.rightCol=n-i-1):(k.leftCol=i,k.rightCol=j),o.push(k));return o},dateToCellOffset:function(a){var b=this.dayToCellOffsets,c=a.diff(this.start,"days");return 0>c?b[0]-1:c>=b.length?b[b.length-1]+1:b[c]},renderDrag:function(a,b){var c;return this.renderHighlight(this.view.calendar.ensureVisibleEventRange(a)),b&&!b.el.closest(this.el).length?(this.renderRangeHelper(a,b),c=this.view.opt("dragOpacity"),void 0!==c&&this.helperEls.css("opacity",c),!0):void 0},destroyDrag:function(){this.destroyHighlight(),this.destroyHelper()},renderEventResize:function(a,b){this.renderHighlight(a),this.renderRangeHelper(a,b)},destroyEventResize:function(){this.destroyHighlight(),this.destroyHelper()},renderHelper:function(b,c){var d,e=[],f=this.eventsToSegs([b]);f=this.renderFgSegEls(f),d=this.renderSegRows(f),this.rowEls.each(function(b,f){var g,h=a(f),i=a('<div class="fc-helper-skeleton"><table/></div>');g=c&&c.row===b?c.el.position().top:h.find(".fc-content-skeleton tbody").position().top,i.css("top",g).find("table").append(d[b].tbodyEl),h.append(i),e.push(i[0])}),this.helperEls=a(e)},destroyHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(b,c){var d,e,f,g=[];for(c=this.renderFillSegEls(b,c),d=0;d<c.length;d++)e=c[d],f=this.renderFillRow(b,e),this.rowEls.eq(e.row).append(f),g.push(f[0]);return this.elsByFill[b]=a(g),c},renderFillRow:function(b,c){var d,e,f=this.colCnt,g=c.leftCol,h=c.rightCol+1;return d=a('<div class="fc-'+b.toLowerCase()+'-skeleton"><table><tr/></table></div>'),e=d.find("tr"),g>0&&e.append('<td colspan="'+g+'"/>'),e.append(c.el.attr("colspan",h-g)),f>h&&e.append('<td colspan="'+(f-h)+'"/>'),this.bookendCells(e,b),d}});bb.mixin({rowStructs:null,destroyEvents:function(){this.destroySegPopover(),ab.prototype.destroyEvents.apply(this,arguments)},getEventSegs:function(){return ab.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(b){var c=a.grep(b,function(a){return a.event.allDay});return ab.prototype.renderBgSegs.call(this,c)},renderFgSegs:function(b){var c;return b=this.renderFgSegEls(b),c=this.rowStructs=this.renderSegRows(b),this.rowEls.each(function(b,d){a(d).find(".fc-content-skeleton > table").append(c[b].tbodyEl)}),b},destroyFgSegs:function(){for(var a,b=this.rowStructs||[];a=b.pop();)a.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(a){var b,c,d=[];for(b=this.groupSegRows(a),c=0;c<b.length;c++)d.push(this.renderSegRow(c,b[c]));return d},fgSegHtml:function(a,b){var c,d=this.view,e=a.event,f=d.isEventDraggable(e),g=!b&&e.allDay&&a.isEnd&&d.isEventResizable(e),h=this.getSegClasses(a,f,g),i=this.getEventSkinCss(e),j="";h.unshift("fc-day-grid-event"),!e.allDay&&a.isStart&&(j='<span class="fc-time">'+L(this.getEventTimeText(e))+"</span>");var k='<span class="eo-fullcalendar-screen-reader-text screen-reader-text"> '+L(this.getEventTimeText(e,"dddd, MMMM Do YYYY"))+" </span>";return c='<span class="fc-title">'+(L(e.title||"")||"&nbsp;")+"</span>",'<a class="'+h.join(" ")+'"'+(e.url?' href="'+L(e.url)+'"':"")+(i?' style="'+i+'"':"")+'><div class="fc-content">'+(this.isRTL?c+" "+j+k:k+j+" "+c)+"</div>"+(g?'<div class="fc-resizer"/>':"")+"</a>"},renderSegRow:function(b,c){function d(b){for(;b>g;)k=(r[e-1]||[])[g],k?k.attr("rowspan",parseInt(k.attr("rowspan")||1,10)+1):(k=a("<td/>"),h.append(k)),q[e][g]=k,r[e][g]=k,g++}var e,f,g,h,i,j,k,l=this.colCnt,m=this.buildSegLevels(c),n=Math.max(1,m.length),o=a("<tbody/>"),p=[],q=[],r=[];for(e=0;n>e;e++){if(f=m[e],g=0,h=a("<tr/>"),p.push([]),q.push([]),r.push([]),f)for(i=0;i<f.length;i++){for(j=f[i],d(j.leftCol),k=a('<td class="fc-event-container"/>').append(j.el),j.leftCol!=j.rightCol?k.attr("colspan",j.rightCol-j.leftCol+1):r[e][g]=k;g<=j.rightCol;)q[e][g]=k,p[e][g]=j,g++;h.append(k)}d(l),this.bookendCells(h,"eventSkeleton"),o.append(h)}return{row:b,tbodyEl:o,cellMatrix:q,segMatrix:p,segLevels:m,segs:c}},buildSegLevels:function(a){var b,c,d,e=[];for(a.sort(ja),b=0;b<a.length;b++){for(c=a[b],d=0;d<e.length&&la(c,e[d]);d++);c.level=d,(e[d]||(e[d]=[])).push(c)}for(d=0;d<e.length;d++)e[d].sort(ma);return e},groupSegRows:function(a){var b,c=[];for(b=0;b<this.rowCnt;b++)c.push([]);for(b=0;b<a.length;b++)c[a[b].row].push(a[b]);return c}}),bb.mixin({segPopover:null,popoverSegs:null,destroySegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(a){var b,c,d=this.rowStructs||[];for(b=0;b<d.length;b++)this.unlimitRow(b),c=a?"number"==typeof a?a:this.computeRowLevelLimit(b):!1,c!==!1&&this.limitRow(b,c)},computeRowLevelLimit:function(a){var b,c,d=this.rowEls.eq(a),e=d.height(),f=this.rowStructs[a].tbodyEl.children();for(b=0;b<f.length;b++)if(c=f.eq(b).removeClass("fc-limited"),c.position().top+c.outerHeight()>e)return b;return!1},limitRow:function(b,c){function d(d){for(;d>x;)e=u.getCell(b,x),k=u.getCellSegs(e,c),k.length&&(n=g[c-1][x],t=u.renderMoreLink(e,k),s=a("<div/>").append(t),n.append(s),w.push(s[0])),x++}var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u=this,v=this.rowStructs[b],w=[],x=0;if(c&&c<v.segLevels.length){for(f=v.segLevels[c-1],g=v.cellMatrix,h=v.tbodyEl.children().slice(c).addClass("fc-limited").get(),i=0;i<f.length;i++){for(j=f[i],d(j.leftCol),m=[],l=0;x<=j.rightCol;)e=this.getCell(b,x),k=this.getCellSegs(e,c),m.push(k),l+=k.length,x++;if(l){for(n=g[c-1][j.leftCol],o=n.attr("rowspan")||1,p=[],q=0;q<m.length;q++)r=a('<td class="fc-more-cell"/>').attr("rowspan",o),k=m[q],e=this.getCell(b,j.leftCol+q),t=this.renderMoreLink(e,[j].concat(k)),s=a("<div/>").append(t),r.append(s),p.push(r[0]),w.push(r[0]);n.addClass("fc-limited").after(a(p)),h.push(n[0])}}d(this.colCnt),v.moreEls=a(w),v.limitedEls=a(h)}},unlimitRow:function(a){var b=this.rowStructs[a];b.moreEls&&(b.moreEls.remove(),b.moreEls=null),b.limitedEls&&(b.limitedEls.removeClass("fc-limited"),b.limitedEls=null)},renderMoreLink:function(b,c){var d=this,e=this.view;return a('<a class="fc-more"/>').text(this.getMoreLinkText(c.length)).on("click",function(f){var g=e.opt("eventLimitClick"),h=b.start,i=a(this),j=d.getCellDayEl(b),k=d.getCellSegs(b),l=d.resliceDaySegs(k,h),m=d.resliceDaySegs(c,h);"function"==typeof g&&(g=e.trigger("eventLimitClick",null,{date:h,dayEl:j,moreEl:i,segs:l,hiddenSegs:m},f)),"popover"===g?d.showSegPopover(b,i,l):"string"==typeof g&&e.calendar.zoomTo(h,g)})},showSegPopover:function(a,b,c){var d,e,f=this,g=this.view,h=b.parent();d=1==this.rowCnt?g.el:this.rowEls.eq(a.row),e={className:"fc-more-popover",content:this.renderSegPopoverContent(a,c),parentEl:this.el,top:d.offset().top,autoHide:!0,viewportConstrain:g.opt("popoverViewportConstrain"),hide:function(){f.segPopover.destroy(),f.segPopover=null,f.popoverSegs=null}},this.isRTL?e.right=h.offset().left+h.outerWidth()+1:e.left=h.offset().left-1,this.segPopover=new Wa(e),this.segPopover.show()},renderSegPopoverContent:function(b,c){var d,e=this.view,f=e.opt("theme"),g=b.start.format(e.opt("dayPopoverFormat")),h=a('<div class="fc-header '+e.widgetHeaderClass+'"><span class="fc-close '+(f?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+L(g)+'</span><div class="fc-clear"/></div><div class="fc-body '+e.widgetContentClass+'"><div class="fc-event-container"></div></div>'),i=h.find(".fc-event-container");for(c=this.renderFgSegEls(c,!0),this.popoverSegs=c,d=0;d<c.length;d++)c[d].cell=b,i.append(c[d].el);return h},resliceDaySegs:function(b,c){var d=a.map(b,function(a){return a.event}),e=c.clone().stripTime(),f=e.clone().add(1,"days"),g={start:e,end:f};return this.eventsToSegs(d,function(a){var b=x(a,g);return b?[b]:[]})},getMoreLinkText:function(a){var b=this.view.opt("eventLimitText");return"function"==typeof b?b(a):"+"+a+" "+b},getCellSegs:function(a,b){for(var c,d=this.rowStructs[a.row].segMatrix,e=b||0,f=[];e<d.length;)c=d[e][a.col],c&&f.push(c),e++;return f}});var cb=ab.extend({slotDuration:null,snapDuration:null,minTime:null,maxTime:null,axisFormat:null,dayEls:null,slatEls:null,slatTops:null,helperEl:null,businessHourSegs:null,constructor:function(){ab.apply(this,arguments),this.processOptions()},render:function(){this.el.html(this.renderHtml()),this.dayEls=this.el.find(".fc-day"),this.slatEls=this.el.find(".fc-slats tr"),this.computeSlatTops(),this.renderBusinessHours(),ab.prototype.render.call(this)},renderBusinessHours:function(){var a=this.view.calendar.getBusinessHoursEvents();this.businessHourSegs=this.renderFill("businessHours",this.eventsToSegs(a),"bgevent")},renderHtml:function(){return'<div class="fc-bg"><table>'+this.rowHtml("slotBg")+'</table></div><div class="fc-slats"><table>'+this.slatRowHtml()+"</table></div>"},slotBgCellHtml:function(a){return this.bgCellHtml(a)},slatRowHtml:function(){for(var a,c,d,e=this.view,f=this.isRTL,g="",h=this.slotDuration.asMinutes()%15===0,i=b.duration(+this.minTime);i<this.maxTime;)a=this.start.clone().time(i),
4
  c=a.minutes(),d='<td class="fc-axis fc-time '+e.widgetContentClass+'" '+e.axisStyleAttr()+">"+(h&&c?"":"<span>"+L(a.format(this.axisFormat))+"</span>")+"</td>",g+="<tr "+(c?'class="fc-minor"':"")+">"+(f?"":d)+'<td class="'+e.widgetContentClass+'"/>'+(f?d:"")+"</tr>",i.add(this.slotDuration);return g},processOptions:function(){var a=this.view,c=a.opt("slotDuration"),d=a.opt("snapDuration");c=b.duration(c),d=d?b.duration(d):c,this.slotDuration=c,this.snapDuration=d,this.minTime=b.duration(a.opt("minTime")),this.maxTime=b.duration(a.opt("maxTime")),this.axisFormat=a.opt("axisFormat")||a.opt("smallTimeFormat")},computeColHeadFormat:function(){return this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},updateCells:function(){var a,b=this.view,c=[];for(a=this.start.clone();a.isBefore(this.end);)c.push({day:a.clone()}),a.add(1,"day"),a=b.skipHiddenDays(a);this.isRTL&&c.reverse(),this.colData=c,this.colCnt=c.length,this.rowCnt=Math.ceil((this.maxTime-this.minTime)/this.snapDuration)},computeCellRange:function(a){var b=this.computeSnapTime(a.row),c=this.view.calendar.rezoneDate(a.day).time(b),d=c.clone().add(this.snapDuration);return{start:c,end:d}},getColEl:function(a){return this.dayEls.eq(a)},computeSnapTime:function(a){return b.duration(this.minTime+this.snapDuration*a)},rangeToSegs:function(a){var b,c,d,e,f=this.colCnt,g=[];for(a={start:a.start.clone().stripZone(),end:a.end.clone().stripZone()},c=0;f>c;c++)d=this.colData[c].day,e={start:d.clone().time(this.minTime),end:d.clone().time(this.maxTime)},b=x(a,e),b&&(b.col=c,g.push(b));return g},resize:function(){this.computeSlatTops(),this.updateSegVerticals()},computeRowCoords:function(){var a,b,c=this.el.offset().top,d=[];for(a=0;a<this.rowCnt;a++)b={top:c+this.computeTimeTop(this.computeSnapTime(a))},a>0&&(d[a-1].bottom=b.top),d.push(b);return b.bottom=b.top+this.computeTimeTop(this.computeSnapTime(a)),d},computeDateTop:function(a,c){return this.computeTimeTop(b.duration(a.clone().stripZone()-c.clone().stripTime()))},computeTimeTop:function(a){var b,c,d,e,f=(a-this.minTime)/this.slotDuration;return f=Math.max(0,f),f=Math.min(this.slatEls.length,f),b=Math.floor(f),c=f-b,d=this.slatTops[b],c?(e=this.slatTops[b+1],d+(e-d)*c):d},computeSlatTops:function(){var b,c=[];this.slatEls.each(function(d,e){b=a(e).position().top,c.push(b)}),c.push(b+this.slatEls.last().outerHeight()),this.slatTops=c},renderDrag:function(a,b){var c;return b?(this.renderRangeHelper(a,b),c=this.view.opt("dragOpacity"),void 0!==c&&this.helperEl.css("opacity",c),!0):void this.renderHighlight(this.view.calendar.ensureVisibleEventRange(a))},destroyDrag:function(){this.destroyHelper(),this.destroyHighlight()},renderEventResize:function(a,b){this.renderRangeHelper(a,b)},destroyEventResize:function(){this.destroyHelper()},renderHelper:function(b,c){var d,e,f,g,h=this.eventsToSegs([b]);for(h=this.renderFgSegEls(h),d=this.renderSegTable(h),e=0;e<h.length;e++)f=h[e],c&&c.col===f.col&&(g=c.el,f.el.css({left:g.css("left"),right:g.css("right"),"margin-left":g.css("margin-left"),"margin-right":g.css("margin-right")}));this.helperEl=a('<div class="fc-helper-skeleton"/>').append(d).appendTo(this.el)},destroyHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(a){this.view.opt("selectHelper")?this.renderRangeHelper(a):this.renderHighlight(a)},destroySelection:function(){this.destroyHelper(),this.destroyHighlight()},renderFill:function(b,c,d){var e,f,g,h,i,j,k,l,m,n;if(c.length){for(c=this.renderFillSegEls(b,c),e=this.groupSegCols(c),d=d||b.toLowerCase(),f=a('<div class="fc-'+d+'-skeleton"><table><tr/></table></div>'),g=f.find("tr"),h=0;h<e.length;h++)if(i=e[h],j=a("<td/>").appendTo(g),i.length)for(k=a('<div class="fc-'+d+'-container"/>').appendTo(j),l=this.colData[h].day,m=0;m<i.length;m++)n=i[m],k.append(n.el.css({top:this.computeDateTop(n.start,l),bottom:-this.computeDateTop(n.end,l)}));this.bookendCells(g,b),this.el.append(f),this.elsByFill[b]=f}return c}});cb.mixin({eventSkeletonEl:null,renderFgSegs:function(b){return b=this.renderFgSegEls(b),this.el.append(this.eventSkeletonEl=a('<div class="fc-content-skeleton"/>').append(this.renderSegTable(b))),b},destroyFgSegs:function(a){this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null)},renderSegTable:function(b){var c,d,e,f,g,h,i=a("<table><tr/></table>"),j=i.find("tr");for(c=this.groupSegCols(b),this.computeSegVerticals(b),f=0;f<c.length;f++){for(g=c[f],na(g),h=a('<div class="fc-event-container"/>'),d=0;d<g.length;d++)e=g[d],e.el.css(this.generateSegPositionCss(e)),e.bottom-e.top<30&&e.el.addClass("fc-short"),h.append(e.el);j.append(a("<td/>").append(h))}return this.bookendCells(j,"eventSkeleton"),i},updateSegVerticals:function(){var a,b=(this.segs||[]).concat(this.businessHourSegs||[]);for(this.computeSegVerticals(b),a=0;a<b.length;a++)b[a].el.css(this.generateSegVerticalCss(b[a]))},computeSegVerticals:function(a){var b,c;for(b=0;b<a.length;b++)c=a[b],c.top=this.computeDateTop(c.start,c.start),c.bottom=this.computeDateTop(c.end,c.start)},fgSegHtml:function(a,b){var c,d,e,f=this.view,g=a.event,h=f.isEventDraggable(g),i=!b&&a.isEnd&&f.isEventResizable(g),j=this.getSegClasses(a,h,i),k=this.getEventSkinCss(g);return j.unshift("fc-time-grid-event"),f.isMultiDayEvent(g)?(a.isStart||a.isEnd)&&(c=this.getEventTimeText(a),d=this.getEventTimeText(a,"LT"),e=this.getEventTimeText({start:a.start})):(c=this.getEventTimeText(g),d=this.getEventTimeText(g,"LT"),e=this.getEventTimeText({start:g.start})),'<a class="'+j.join(" ")+'"'+(g.url?' href="'+L(g.url)+'"':"")+(k?' style="'+k+'"':"")+'><div class="fc-content">'+(c?'<div class="fc-time" data-start="'+L(e)+'" data-full="'+L(d)+'"><span>'+L(c)+"</span></div>":"")+(g.title?'<div class="fc-title">'+L(g.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(i?'<div class="fc-resizer"/>':"")+"</a>"},generateSegPositionCss:function(a){var b,c,d=this.view.opt("slotEventOverlap"),e=a.backwardCoord,f=a.forwardCoord,g=this.generateSegVerticalCss(a);return d&&(f=Math.min(1,e+2*(f-e))),this.isRTL?(b=1-f,c=e):(b=e,c=1-f),g.zIndex=a.level+1,g.left=100*b+"%",g.right=100*c+"%",d&&a.forwardPressure&&(g[this.isRTL?"marginLeft":"marginRight"]=20),g},generateSegVerticalCss:function(a){return{top:a.top,bottom:-a.bottom}},groupSegCols:function(a){var b,c=[];for(b=0;b<this.colCnt;b++)c.push([]);for(b=0;b<a.length;b++)c[a[b].col].push(a[b]);return c}});var db=Ca.View=ca.extend({type:null,name:null,title:null,calendar:null,options:null,coordMap:null,el:null,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isSelected:!1,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,documentMousedownProxy:null,constructor:function(c,d,e){this.calendar=c,this.options=d,this.type=this.name=e,this.nextDayThreshold=b.duration(this.opt("nextDayThreshold")),this.initTheming(),this.initHiddenDays(),this.documentMousedownProxy=a.proxy(this,"documentMousedown"),this.initialize()},initialize:function(){},opt:function(b){var c;return c=this.options[b],void 0!==c?c:(c=this.calendar.options[b],a.isPlainObject(c)&&!e(b)?y(c,this.type):c)},trigger:function(a,b){var c=this.calendar;return c.trigger.apply(c,[a,b||this].concat(Array.prototype.slice.call(arguments,2),[this]))},setDate:function(a){this.setRange(this.computeRange(a))},setRange:function(b){a.extend(this,b),this.updateTitle()},computeRange:function(a){var c,d,e=b.duration(this.opt("duration")||this.constructor.duration||{days:1}),f=B(e),g=a.clone().startOf(f),h=g.clone().add(e);return/year|month|week|day/.test(f)?(g.stripTime(),h.stripTime()):(g.hasTime()||(g=this.calendar.rezoneDate(g)),h.hasTime()||(h=this.calendar.rezoneDate(h))),c=g.clone(),c=this.skipHiddenDays(c),d=h.clone(),d=this.skipHiddenDays(d,-1,!0),{intervalDuration:e,intervalUnit:f,intervalStart:g,intervalEnd:h,start:c,end:d}},computePrevDate:function(a){return this.massageCurrentDate(a.clone().startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(a){return this.massageCurrentDate(a.clone().startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(a,c){return this.intervalDuration<=b.duration({days:1})&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,c),a.startOf("day")),a},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.intervalStart,end:this.intervalEnd},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.intervalUnit?"YYYY":"month"==this.intervalUnit?this.opt("monthYearFormat"):this.intervalDuration.as("days")>1?"ll":"LL"},formatRange:function(a,b,c){var d=a.end;return d.hasTime()||(d=d.clone().subtract(1)),Z(a.start,d,b,c,this.opt("isRTL"))},renderView:function(){this.render(),this.updateSize(),this.initializeScroll(),this.trigger("viewRender",this,this,this.el),a(document).on(m(),this.documentMousedownProxy)},render:function(){},destroyView:function(){this.unselect(),this.destroyViewEvents(),this.destroy(),this.trigger("viewDestroy",this,this,this.el),a(document).off(m(),this.documentMousedownProxy)},destroy:function(){this.el.empty()},initTheming:function(){var a=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=a+"-widget-header",this.widgetContentClass=a+"-widget-content",this.highlightStateClass=a+"-state-highlight"},updateSize:function(a){a&&this.recordScroll(),this.updateHeight(),this.updateWidth()},updateWidth:function(){},updateHeight:function(){var a=this.calendar;this.setHeight(a.getSuggestedViewHeight(),a.isHeightAuto())},setHeight:function(a,b){},computeScrollerHeight:function(a,b){var c,d;return b=b||this.scrollerEl,c=this.el.add(b),c.css({position:"relative",left:-1}),d=this.el.outerHeight()-b.height(),c.css({position:"",left:""}),a-d},initializeScroll:function(){},recordScroll:function(){this.scrollerEl&&(this.scrollTop=this.scrollerEl.scrollTop())},restoreScroll:function(){null!==this.scrollTop&&this.scrollerEl.scrollTop(this.scrollTop)},renderViewEvents:function(a){this.renderEvents(a),this.eventSegEach(function(a){this.trigger("eventAfterRender",a.event,a.event,a.el)}),this.trigger("eventAfterAllRender")},renderEvents:function(){},destroyViewEvents:function(){this.eventSegEach(function(a){this.trigger("eventDestroy",a.event,a.event,a.el)}),this.destroyEvents()},destroyEvents:function(){},resolveEventEl:function(b,c){var d=this.trigger("eventRender",b,b,c);return d===!1?c=null:d&&d!==!0&&(c=a(d)),c},showEvent:function(a){this.eventSegEach(function(a){a.el.css("visibility","")},a)},hideEvent:function(a){this.eventSegEach(function(a){a.el.css("visibility","hidden")},a)},eventSegEach:function(a,b){var c,d=this.getEventSegs();for(c=0;c<d.length;c++)b&&d[c].event._id!==b._id||a.call(this,d[c])},getEventSegs:function(){return[]},isEventDraggable:function(a){var b=a.source||{};return K(a.startEditable,b.startEditable,this.opt("eventStartEditable"),a.editable,b.editable,this.opt("editable"))},reportEventDrop:function(a,b,c,d){var e=this.calendar,f=e.mutateEvent(a,b),g=function(){f.undo(),e.reportEventChange()};this.triggerEventDrop(a,f.dateDelta,g,c,d),e.reportEventChange()},triggerEventDrop:function(a,b,c,d,e){this.trigger("eventDrop",d[0],a,b,c,e,{})},reportExternalDrop:function(b,c,d,e,f){var g,h,i=b.eventProps;i&&(g=a.extend({},i,c),h=this.calendar.renderEvent(g,b.stick)[0]),this.triggerExternalDrop(h,c,d,e,f)},triggerExternalDrop:function(a,b,c,d,e){this.trigger("drop",c[0],b.start,d,e),a&&this.trigger("eventReceive",null,a)},renderDrag:function(a,b){},destroyDrag:function(){},isEventResizable:function(a){var b=a.source||{};return K(a.durationEditable,b.durationEditable,this.opt("eventDurationEditable"),a.editable,b.editable,this.opt("editable"))},reportEventResize:function(a,b,c,d){var e=this.calendar,f=e.mutateEvent(a,{end:b}),g=function(){f.undo(),e.reportEventChange()};this.triggerEventResize(a,f.durationDelta,g,c,d),e.reportEventChange()},triggerEventResize:function(a,b,c,d,e){this.trigger("eventResize",d[0],a,b,c,e,{})},select:function(a,b){this.unselect(b),this.renderSelection(a),this.reportSelection(a,b)},renderSelection:function(a){},reportSelection:function(a,b){this.isSelected=!0,this.trigger("select",null,a.start,a.end,b)},unselect:function(a){this.isSelected&&(this.isSelected=!1,this.destroySelection(),this.trigger("unselect",null,a))},destroySelection:function(){},documentMousedown:function(b){var c;this.isSelected&&this.opt("unselectAuto")&&w(b)&&(c=this.opt("unselectCancel"),c&&a(b.target).closest(c).length||this.unselect(b))},initHiddenDays:function(){var b,c=this.opt("hiddenDays")||[],d=[],e=0;for(this.opt("weekends")===!1&&c.push(0,6),b=0;7>b;b++)(d[b]=-1!==a.inArray(b,c))||e++;if(!e)throw"invalid hiddenDays";this.isHiddenDayHash=d},isHiddenDay:function(a){return b.isMoment(a)&&(a=a.day()),this.isHiddenDayHash[a]},skipHiddenDays:function(a,b,c){var d=a.clone();for(b=b||1;this.isHiddenDayHash[(d.day()+(c?b:0)+7)%7];)d.add(b,"days");return d},computeDayRange:function(a){var b,c=a.start.clone().stripTime(),d=a.end,e=null;return d&&(e=d.clone().stripTime(),b=+d.time(),b&&b>=this.nextDayThreshold&&e.add(1,"days")),(!d||c>=e)&&(e=c.clone().add(1,"days")),{start:c,end:e}},isMultiDayEvent:function(a){var b=this.computeDayRange(a);return b.end.diff(b.start,"days")>1}});Ca.sourceNormalizers=[],Ca.sourceFetchers=[];var eb={dataType:"json",cache:!1},fb=1,gb=Da.basic=db.extend({dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headRowEl:null,initialize:function(){this.dayGrid=new bb(this),this.coordMap=this.dayGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(a)},computeRange:function(a){var b=db.prototype.computeRange.call(this,a);return/year|month/.test(b.intervalUnit)&&(b.start.startOf("week"),b.start=this.skipHiddenDays(b.start),b.end.weekday()&&(b.end.add(1,"week").startOf("week"),b.end=this.skipHiddenDays(b.end,-1,!0))),b},render:function(){this.dayNumbersVisible=this.dayGrid.rowCnt>1,this.weekNumbersVisible=this.opt("weekNumbers"),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(this.hasRigidRows())},destroy:function(){this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.dayGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){return this.weekNumbersVisible?'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span>"+L(this.opt("weekNumberTitle"))+"</span></th>":void 0},numberIntroHtml:function(a){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.calendar.calculateWeekNumber(this.dayGrid.getCell(a,0).start)+"</span></td>":void 0},dayIntroHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>":void 0},introHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>":void 0},numberCellHtml:function(a){var b,c=a.start;return this.dayNumbersVisible?(b=this.dayGrid.getDayClasses(c),b.unshift("fc-day-number"),'<td class="'+b.join(" ")+'" data-date="'+c.format()+'">'+c.date()+"</td>"):"<td/>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var a=this.opt("eventLimit");return a&&"number"!=typeof a},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=r(this.el.find(".fc-week-number")))},setHeight:function(a,b){var c,d=this.opt("eventLimit");t(this.scrollerEl),h(this.headRowEl),this.dayGrid.destroySegPopover(),d&&"number"==typeof d&&this.dayGrid.limitRows(d),c=this.computeScrollerHeight(a),this.setGridHeight(c,b),d&&"number"!=typeof d&&this.dayGrid.limitRows(d),!b&&s(this.scrollerEl,c)&&(g(this.headRowEl,v(this.scrollerEl)),c=this.computeScrollerHeight(a),this.scrollerEl.height(c),this.restoreScroll())},setGridHeight:function(a,b){b?q(this.dayGrid.rowEls):p(this.dayGrid.rowEls,a,!0)},renderEvents:function(a){this.dayGrid.renderEvents(a),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},destroyEvents:function(){this.recordScroll(),this.dayGrid.destroyEvents()},renderDrag:function(a,b){return this.dayGrid.renderDrag(a,b)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(a){this.dayGrid.renderSelection(a)},destroySelection:function(){this.dayGrid.destroySelection()}});c({fixedWeekCount:!0});var hb=Da.month=gb.extend({computeRange:function(a){var b,c=gb.prototype.computeRange.call(this,a);return this.isFixedWeeks()&&(b=Math.ceil(c.end.diff(c.start,"weeks",!0)),c.end.add(6-b,"weeks")),c},setGridHeight:function(a,b){b=b||"variable"===this.opt("weekMode"),b&&(a*=this.rowCnt/6),p(this.dayGrid.rowEls,a,!b)},isFixedWeeks:function(){var a=this.opt("weekMode");return a?"fixed"===a:this.opt("fixedWeekCount")}});hb.duration={months:1},Da.basicWeek={type:"basic",duration:{weeks:1}},Da.basicDay={type:"basic",duration:{days:1}},c({allDaySlot:!0,allDayText:"all-day",scrollTime:"06:00:00",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0});var ib=5;Da.agenda=db.extend({timeGrid:null,dayGrid:null,axisWidth:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=new cb(this),this.opt("allDaySlot")?(this.dayGrid=new bb(this),this.coordMap=new Ya([this.dayGrid.coordMap,this.timeGrid.coordMap])):this.coordMap=this.timeGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.timeGrid.setRange(a),this.dayGrid&&this.dayGrid.setRange(a)},render:function(){this.el.addClass("fc-agenda-view").html(this.renderHtml()),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.coordMap.containerEl=this.scrollerEl,this.timeGrid.el=this.el.find(".fc-time-grid"),this.timeGrid.render(),this.bottomRuleEl=a('<hr class="'+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},destroy:function(){this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.timeGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="'+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){var a,b,c,d;return this.opt("weekNumbers")?(a=this.timeGrid.getCell(0).start,b=this.calendar.calculateWeekNumber(a),c=this.opt("weekNumberTitle"),d=this.opt("isRTL")?b+c:c+b,'<th class="fc-axis fc-week-number '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"><span>"+L(d)+"</span></th>"):'<th class="fc-axis '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"></th>"},dayIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"><span>"+(this.opt("allDayHtml")||L(this.opt("allDayText")))+"</span></td>"},slotBgIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"></td>"},introHtml:function(){return'<td class="fc-axis" '+this.axisStyleAttr()+"></td>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(a){a&&this.timeGrid.resize(),db.prototype.updateSize.call(this,a)},updateWidth:function(){this.axisWidth=r(this.el.find(".fc-axis"))},setHeight:function(a,b){var c,d;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),t(this.scrollerEl),h(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.destroySegPopover(),c=this.opt("eventLimit"),c&&"number"!=typeof c&&(c=ib),c&&this.dayGrid.limitRows(c)),b||(d=this.computeScrollerHeight(a),s(this.scrollerEl,d)?(g(this.noScrollRowEls,v(this.scrollerEl)),d=this.computeScrollerHeight(a),this.scrollerEl.height(d),this.restoreScroll()):(this.scrollerEl.height(d).css("overflow","hidden"),this.bottomRuleEl.show()))},initializeScroll:function(){function a(){c.scrollerEl.scrollTop(e)}var c=this,d=b.duration(this.opt("scrollTime")),e=this.timeGrid.computeTimeTop(d);e=Math.ceil(e),e&&e++,a(),setTimeout(a,0)},renderEvents:function(a){var b,c,d=[],e=[],f=[];for(c=0;c<a.length;c++)a[c].allDay?d.push(a[c]):e.push(a[c]);b=this.timeGrid.renderEvents(e),this.dayGrid&&(f=this.dayGrid.renderEvents(d)),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},destroyEvents:function(){this.recordScroll(),this.timeGrid.destroyEvents(),this.dayGrid&&this.dayGrid.destroyEvents()},renderDrag:function(a,b){return a.start.hasTime()?this.timeGrid.renderDrag(a,b):this.dayGrid?this.dayGrid.renderDrag(a,b):void 0},destroyDrag:function(){this.timeGrid.destroyDrag(),this.dayGrid&&this.dayGrid.destroyDrag()},renderSelection:function(a){a.start.hasTime()||a.end.hasTime()?this.timeGrid.renderSelection(a):this.dayGrid&&this.dayGrid.renderSelection(a)},destroySelection:function(){this.timeGrid.destroySelection(),this.dayGrid&&this.dayGrid.destroySelection()}}),Da.agendaWeek={type:"agenda",duration:{weeks:1}},Da.agendaDay={type:"agenda",duration:{days:1}};var jb=Da.list=db.extend({dayGrid:null,weekNumberWidth:null,headRowEl:null,defultEventLimit:5,viewDateOnLeft:!1,initialize:function(){this.dayGrid=new bb(this),this.coordMap=this.dayGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(a)},render:function(){this.dayGrid.colCnt=1,this.dayGrid.rowCnt=this.dayGrid.cellDates.length,this.dayGrid.numbersVisible=!0,this.opt("viewDateOnLeft")?(this.viewDateOnLeft=this.opt("viewDateOnLeft"),this.el.removeClass("fc-display-date-above")):this.el.addClass("fc-display-date-above"),this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(this.hasRigidRows()),db.prototype.render.call(this)},destroy:function(){this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><tbody><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){return this.viewDateOnLeft===!0?'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span></span></th>":""},numberIntroHtml:function(a){return this.viewDateOnLeft===!0?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.dayGrid.getCell(a,0).start.format("ddd MMM D, YYYY")+"</span></td>":""},dayIntroHtml:function(){return this.viewDateOnLeft===!0?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>":""},introHtml:function(){return this.viewDateOnLeft===!0?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>":""},numberCellHtml:function(a){if(this.viewDateOnLeft===!0)return"<td/>";var b,c=a.start;return b=this.dayGrid.getDayClasses(c),b.unshift("fc-day-number"),'<td class="'+b.join(" ")+'" data-date="'+c.format()+'"><span class="fc-list-header-left">'+c.format("dddd")+'</span><span class="fc-list-header-right">'+c.format("MMM D")+"</span></td>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var a=this.opt("eventLimit");return a===!0&&(a=this.defultEventLimit),a&&"number"!=typeof a},updateWidth:function(){this.weekNumberWidth=r(this.el.find(".fc-week-number"))},setHeight:function(a,b){var c=this.opt("eventLimit");c===!0&&(c=this.defultEventLimit);var d;t(this.scrollerEl),h(this.headRowEl),this.dayGrid.destroySegPopover(),c&&"number"==typeof c&&this.dayGrid.limitRows(c),d=this.computeScrollerHeight(a),this.setGridHeight(d,b),c&&"number"!=typeof c&&this.dayGrid.limitRows(c),!b&&s(this.scrollerEl,d)&&(g(this.headRowEl,v(this.scrollerEl)),d=this.computeScrollerHeight(a),this.scrollerEl.height(d),this.restoreScroll())},setGridHeight:function(a,b){b?q(this.dayGrid.rowEls):p(this.dayGrid.rowEls,a,!0)},renderEvents:function(a){this.dayGrid.renderEvents(a),this.updateHeight(),db.prototype.renderEvents.call(this,a)},getSegs:function(){return this.dayGrid.getSegs()},destroyEvents:function(){db.prototype.destroyEvents.call(this),this.recordScroll(),this.dayGrid.destroyEvents()},renderDrag:function(a,b,c){return this.dayGrid.renderDrag(a,b,c)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(a,b){this.dayGrid.renderSelection(a,b)},destroySelection:function(){this.dayGrid.destroySelection()}});jb.duration={months:1},Da.listMonth={type:"list",duration:{months:1}},Da.listWeek={type:"list",duration:{weeks:1}},Da.listDay={type:"list",duration:{days:1}}});
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
  !function(a){"function"==typeof define&&define.amd?define(["jquery","moment"],a):a(jQuery,moment)}(function(a,b){function c(a){d(za,a)}function d(b){function c(c,f){a.isPlainObject(f)&&a.isPlainObject(b[c])&&!e(c)?b[c]=d({},b[c],f):void 0!==f&&(b[c]=f)}for(var f=1;f<arguments.length;f++)a.each(arguments[f],c);return b}function e(a){return/(Time|Duration)$/.test(a)}function f(a){var c=b.localeData||b.langData;return c.call(b,a)||c.call(b,"en")}function g(a,b){b.left&&a.css({"border-left-width":1,"margin-left":b.left-1}),b.right&&a.css({"border-right-width":1,"margin-right":b.right-1})}function h(a){a.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function i(){a("body").addClass("fc-not-allowed")}function j(){a("body").removeClass("fc-not-allowed")}function k(a){return"pointerdown"==a.type||"pointerup"==a.type||"pointermove"==a.type?"touch"===a.originalEvent.pointerType?!0:!1:"touchstart"==a.type||"touchmove"==a.type||"touchend"==a.type||"touchcancel"==a.type?!0:!1}function l(a){var b={x:0,y:0};if("pointerdown"==a.type||"pointerup"==a.type||"pointermove"==a.type||"mousedown"==a.type||"mouseup"==a.type||"mousemove"==a.type||"mouseover"==a.type||"mouseout"==a.type||"mouseenter"==a.type||"mouseleave"==a.type)b.x=a.pageX,b.y=a.pageY;else if(k(a)){var c=a.originalEvent.touches[0]||a.originalEvent.changedTouches[0];b.x=c.pageX,b.y=c.pageY}return b}function m(){return window.navigator.msPointerEnabled?"pointerdown":!Ka&&"ontouchstart"in document.documentElement?"touchstart":"mousedown"}function n(){return window.navigator.msPointerEnabled?"pointerup":!Ka&&"ontouchstart"in document.documentElement?"touchend":"mouseup"}function o(){return window.navigator.msPointerEnabled?"pointermove":!Ka&&"ontouchstart"in document.documentElement?"touchmove":"mousemove"}function p(b,c,d){var e=Math.floor(c/b.length),f=Math.floor(c-e*(b.length-1)),g=[],h=[],i=[],j=0;q(b),b.each(function(c,d){var k=c===b.length-1?f:e,l=a(d).outerHeight(!0);k>l?(g.push(d),h.push(l),i.push(a(d).height())):j+=l}),d&&(c-=j,e=Math.floor(c/g.length),f=Math.floor(c-e*(g.length-1))),a(g).each(function(b,c){var d=b===g.length-1?f:e,j=h[b],k=i[b],l=d-(j-k);d>j&&a(c).height(l)})}function q(a){a.height("")}function r(b){var c=0;return b.find("> *").each(function(b,d){var e=a(d).outerWidth();e>c&&(c=e)}),c++,b.width(c),c}function s(a,b){return a.height(b).addClass("fc-scroller"),a[0].scrollHeight-1>a[0].clientHeight?!0:(t(a),!1)}function t(a){a.height("").removeClass("fc-scroller")}function u(b){var c=b.css("position"),d=b.parents().filter(function(){var b=a(this);return/(auto|scroll)/.test(b.css("overflow")+b.css("overflow-y")+b.css("overflow-x"))}).eq(0);return"fixed"!==c&&d.length?d:a(b[0].ownerDocument||document)}function v(a){var b=a.offset().left,c=b+a.width(),d=a.children(),e=d.offset().left,f=e+d.outerWidth();return{left:e-b,right:c-f}}function w(a){return k(a)?!0:1==a.which&&!a.ctrlKey}function x(a,b){var c,d,e,f,g=a.start,h=a.end,i=b.start,j=b.end;return h>i&&j>g?(g>=i?(c=g.clone(),e=!0):(c=i.clone(),e=!1),j>=h?(d=h.clone(),f=!0):(d=j.clone(),f=!1),{start:c,end:d,isStart:e,isEnd:f}):void 0}function y(a,b){if(a=a||{},void 0!==a[b])return a[b];for(var c,d=b.split(/(?=[A-Z])/),e=d.length-1;e>=0;e--)if(c=a[d[e].toLowerCase()],void 0!==c)return c;return a["default"]}function z(a,c){return b.duration({days:a.clone().stripTime().diff(c.clone().stripTime(),"days"),ms:a.time()-c.time()})}function A(a,c){return b.duration({days:a.clone().stripTime().diff(c.clone().stripTime(),"days")})}function B(a,b){var c,d,e;for(c=0;c<Na.length&&(d=Na[c],e=C(d,a,b),!(e>=1&&P(e)));c++);return d}function C(a,c,d){return null!=d?d.diff(c,a,!0):b.isDuration(c)?c.as(a):c.end.diff(c.start,a,!0)}function D(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function E(a){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(a)}function F(a){var b=function(){};return b.prototype=a,new b}function G(a,b){for(var c in a)H(a,c)&&(b[c]=a[c])}function H(a,b){return Oa.call(a,b)}function I(b){return/undefined|null|boolean|number|string/.test(a.type(b))}function J(b,c,d){if(a.isFunction(b)&&(b=[b]),b){var e,f;for(e=0;e<b.length;e++)f=b[e].apply(c,d)||f;return f}}function K(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]}function L(a){return(a+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function M(a){return a.replace(/&.*?;/g,"")}function N(a){return a.charAt(0).toUpperCase()+a.slice(1)}function O(a,b){return a-b}function P(a){return a%1===0}function Q(a,b){var c,d,e,f,g=function(){var h=+new Date-f;b>h&&h>0?c=setTimeout(g,b-h):(c=null,a.apply(e,d),c||(e=d=null))};return function(){e=this,d=arguments,f=+new Date,c||(c=setTimeout(g,b))}}function R(c,d,e){var f,g,h,i,j=c[0],k=1==c.length&&"string"==typeof j;return b.isMoment(j)?(i=b.apply(null,c),T(j,i)):D(j)||void 0===j?i=b.apply(null,c):(f=!1,g=!1,k?Pa.test(j)?(j+="-01",c=[j],f=!0,g=!0):(h=Qa.exec(j))&&(f=!h[5],g=!0):a.isArray(j)&&(g=!0),i=d||f?b.utc.apply(b,c):b.apply(null,c),f?(i._ambigTime=!0,i._ambigZone=!0):e&&(g?i._ambigZone=!0:k&&i.zone(j))),i._fullCalendar=!0,i}function S(a,c){var d,e,f=!1,g=!1,h=a.length,i=[];for(d=0;h>d;d++)e=a[d],b.isMoment(e)||(e=Ca.moment.parseZone(e)),f=f||e._ambigTime,g=g||e._ambigZone,i.push(e);for(d=0;h>d;d++)e=i[d],c||!f||e._ambigTime?g&&!e._ambigZone&&(i[d]=e.clone().stripZone()):i[d]=e.clone().stripTime();return i}function T(a,b){a._ambigTime?b._ambigTime=!0:b._ambigTime&&(b._ambigTime=!1),a._ambigZone?b._ambigZone=!0:b._ambigZone&&(b._ambigZone=!1)}function U(a,b){a.year(b[0]||0).month(b[1]||0).date(b[2]||0).hours(b[3]||0).minutes(b[4]||0).seconds(b[5]||0).milliseconds(b[6]||0)}function V(a,b){return Sa.format.call(a,b)}function W(a,b){return X(a,aa(b))}function X(a,b){var c,d="";for(c=0;c<b.length;c++)d+=Y(a,b[c]);return d}function Y(a,b){var c,d;return"string"==typeof b?b:(c=b.token)?Ta[c]?Ta[c](a):V(a,c):b.maybe&&(d=X(a,b.maybe),d.match(/[1-9]/))?d:""}function Z(a,b,c,d,e){var f;return a=Ca.moment.parseZone(a),b=Ca.moment.parseZone(b),f=(a.localeData||a.lang).call(a),c=f.longDateFormat(c)||c,d=d||" - ",$(a,b,aa(c),d,e)}function $(a,b,c,d,e){var f,g,h,i,j="",k="",l="",m="",n="";for(g=0;g<c.length&&(f=_(a,b,c[g]),f!==!1);g++)j+=f;for(h=c.length-1;h>g&&(f=_(a,b,c[h]),f!==!1);h--)k=f+k;for(i=g;h>=i;i++)l+=Y(a,c[i]),m+=Y(b,c[i]);return(l||m)&&(n=e?m+d+l:l+d+m),j+n+k}function _(a,b,c){var d,e;return"string"==typeof c?c:(d=c.token)&&(e=Ua[d.charAt(0)],e&&a.isSame(b,e))?V(a,d):!1}function aa(a){return a in Va?Va[a]:Va[a]=ba(a)}function ba(a){for(var b,c=[],d=/\[([^\]]*)\]|\(([^\)]*)\)|(LT|(\w)\4*o?)|([^\w\[\(]+)/g;b=d.exec(a);)b[1]?c.push(b[1]):b[2]?c.push({maybe:ba(b[2])}):b[3]?c.push({token:b[3]}):b[5]&&c.push(b[5]);return c}function ca(){}function da(a,b){return a||b?a&&b?a.grid===b.grid&&a.row===b.row&&a.col===b.col:!1:!0}function ea(a){var b=ga(a);return"background"===b||"inverse-background"===b}function fa(a){return"inverse-background"===ga(a)}function ga(a){return K((a.source||{}).rendering,a.rendering)}function ha(a){var b,c,d={};for(b=0;b<a.length;b++)c=a[b],(d[c._id]||(d[c._id]=[])).push(c);return d}function ia(a,b){return a.eventStartMS-b.eventStartMS}function ja(a,b){return a.eventStartMS-b.eventStartMS||b.eventDurationMS-a.eventDurationMS||b.event.allDay-a.event.allDay||(a.event.title||"").localeCompare(b.event.title)}function ka(c){var d,e,f,g,h=Ca.dataAttrPrefix;return h&&(h+="-"),d=c.data(h+"event")||null,d&&(d="object"==typeof d?a.extend({},d):{},e=d.start,null==e&&(e=d.time),f=d.duration,g=d.stick,delete d.start,delete d.time,delete d.duration,delete d.stick),null==e&&(e=c.data(h+"start")),null==e&&(e=c.data(h+"time")),null==f&&(f=c.data(h+"duration")),null==g&&(g=c.data(h+"stick")),e=null!=e?b.duration(e):null,f=null!=f?b.duration(f):null,g=Boolean(g),{eventProps:d,startTime:e,duration:f,stick:g}}function la(a,b){var c,d;for(c=0;c<b.length;c++)if(d=b[c],d.leftCol<=a.rightCol&&d.rightCol>=a.leftCol)return!0;return!1}function ma(a,b){return a.leftCol-b.leftCol}function na(a){var b,c,d;if(a.sort(ja),b=oa(a),pa(b),c=b[0]){for(d=0;d<c.length;d++)qa(c[d]);for(d=0;d<c.length;d++)ra(c[d],0,0)}}function oa(a){var b,c,d,e=[];for(b=0;b<a.length;b++){for(c=a[b],d=0;d<e.length&&sa(c,e[d]).length;d++);c.level=d,(e[d]||(e[d]=[])).push(c)}return e}function pa(a){var b,c,d,e,f;for(b=0;b<a.length;b++)for(c=a[b],d=0;d<c.length;d++)for(e=c[d],e.forwardSegs=[],f=b+1;f<a.length;f++)sa(e,a[f],e.forwardSegs)}function qa(a){var b,c,d=a.forwardSegs,e=0;if(void 0===a.forwardPressure){for(b=0;b<d.length;b++)c=d[b],qa(c),e=Math.max(e,1+c.forwardPressure);a.forwardPressure=e}}function ra(a,b,c){var d,e=a.forwardSegs;if(void 0===a.forwardCoord)for(e.length?(e.sort(ua),ra(e[0],b+1,c),a.forwardCoord=e[0].backwardCoord):a.forwardCoord=1,a.backwardCoord=a.forwardCoord-(a.forwardCoord-c)/(b+1),d=0;d<e.length;d++)ra(e[d],0,a.forwardCoord)}function sa(a,b,c){c=c||[];for(var d=0;d<b.length;d++)ta(a,b[d])&&c.push(b[d]);return c}function ta(a,b){return a.bottom>b.top&&a.top<b.bottom}function ua(a,b){return b.forwardPressure-a.forwardPressure||(a.backwardCoord||0)-(b.backwardCoord||0)||ja(a,b)}function va(c,e){function g(a){return(a.locale||a.lang).call(a,$.lang).humanize()}function h(a){da?k()&&(r(),l(a)):i()}function i(){ea=$.theme?"ui":"fc",c.addClass("fc"),$.isRTL?c.addClass("fc-rtl"):c.addClass("fc-ltr"),$.theme?c.addClass("ui-widget"):c.addClass("fc-unthemed"),da=a("<div class='fc-view-container'/>").prependTo(c),ba=new wa(Y,$),ca=ba.render(),ca&&c.prepend(ca),l($.defaultView),$.handleWindowResize&&(ha=Q(t,$.windowResizeDelay),a(window).resize(ha))}function j(){fa&&fa.destroyView(),ba.destroy(),da.remove(),c.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),a(window).unbind("resize",ha)}function k(){return c.is(":visible")}function l(b){na++,fa&&b&&fa.type!==b&&(ba.deactivateButton(fa.type),S(),fa.start&&fa.destroyView(),fa.el.remove(),fa=null),!fa&&b&&(fa=m(b),fa.el=a("<div class='fc-view fc-"+b+"-view' />").appendTo(da),ba.activateButton(b)),fa&&(ia=fa.massageCurrentDate(ia),fa.start&&ia.isWithin(fa.intervalStart,fa.intervalEnd)||k()&&(S(),fa.start&&fa.destroyView(),fa.setDate(ia),fa.renderView(),T(),C(),D(),x())),T(),na--}function m(a){var b=n(a);return new b["class"](Y,b.options,a)}function n(c){function d(b){"function"==typeof b?f=b:"object"==typeof b&&a.extend(e,b)}var e,f,h,i,j,k=$.defaultButtonText||{},l=$.buttonText||{},m=$.views||{},n=c,o=[],p=!1;if(ma[c])return ma[c];for(;n&&!f;)e={},d(Da[n]),d(m[n]),o.unshift(e),n=e.type;return o.unshift({}),e=a.extend.apply(a,o),f?(h=e.duration||f.duration,h&&(h=b.duration(h),i=B(h),p=1===h.as(i)),p&&m[i]&&(e=a.extend({},m[i],e)),j=l[c]||(p?l[i]:null)||k[c]||(p?k[i]:null)||e.buttonText||f.buttonText||(h?g(h):null)||c,ma[c]={"class":f,options:e,buttonText:j}):void 0}function o(a){return Boolean(n(a))}function p(a){var b=n(a);return b?b.buttonText:void 0}function q(a){return k()?(a&&s(),na++,fa.updateSize(!0),na--,!0):void 0}function r(){k()&&s()}function s(){ga="number"==typeof $.contentHeight?$.contentHeight:"number"==typeof $.height?$.height-(ca?ca.outerHeight(!0):0):"undefined"!=typeof $.height&&"parent"===$.height?a(la).parent().height()-(ca?ca.outerHeight(!0):0):Math.round(da.width()/Math.max($.aspectRatio,.5))}function t(a){!na&&a.target===window&&fa.start&&q(!0)&&fa.trigger("windowResize",la)}function u(){w(),y()}function v(){k()&&(S(),fa.destroyViewEvents(),fa.renderViewEvents(oa),T())}function w(){S(),fa.destroyViewEvents(),T()}function x(){!$.lazyFetching||ja(fa.start,fa.end)?y():v()}function y(){ka(fa.start,fa.end)}function z(a){oa=a,v()}function A(){v()}function C(){ba.updateTitle(fa.title)}function D(){var a=Y.getNow();a.isWithin(fa.intervalStart,fa.intervalEnd)?ba.disableButton("today"):ba.enableButton("today")}function E(a,b){a=Y.moment(a),b=b?Y.moment(b):a.hasTime()?a.clone().add(Y.defaultTimedEventDuration):a.clone().add(Y.defaultAllDayEventDuration),fa.select({start:a,end:b})}function G(){fa&&fa.unselect()}function H(){ia=fa.computePrevDate(ia),l()}function I(){ia=fa.computeNextDate(ia),l()}function J(){ia.add(-1,"years"),l()}function K(){ia.add(1,"years"),l()}function L(){ia=Y.getNow(),l()}function M(a){ia=Y.moment(a),l()}function O(a){ia.add(b.duration(a)),l()}function P(a,b){var c,d;b&&o(b)||(b=b||"day",c=ba.getViewsWithButtons().join(" "),d=c.match(new RegExp("\\w+"+N(b))),d||(d=c.match(/\w+Day/)),b=d?d[0]:"agendaDay"),ia=a,l(b)}function R(){return ia.clone()}function S(){da.css({width:"100%",height:da.height(),overflow:"hidden"})}function T(){da.css({width:"",height:"",overflow:""})}function U(){return Y}function V(){return fa}function W(a,b){return void 0===b?$[a]:void(("height"==a||"contentHeight"==a||"aspectRatio"==a)&&($[a]=b,q(!0)))}function X(a,b){return $[a]?$[a].apply(b||la,Array.prototype.slice.call(arguments,2)):void 0}var Y=this;e=e||{};var Z,$=d({},za,e);Z=$.lang in Ea?Ea[$.lang]:Ea[za.lang],Z&&($=d({},za,Z,e)),$.isRTL&&($=d({},za,Ba,Z||{},e)),Y.options=$,Y.render=h,Y.destroy=j,Y.refetchEvents=u,Y.reportEvents=z,Y.reportEventChange=A,Y.rerenderEvents=v,Y.changeView=l,Y.select=E,Y.unselect=G,Y.prev=H,Y.next=I,Y.prevYear=J,Y.nextYear=K,Y.today=L,Y.gotoDate=M,Y.incrementDate=O,Y.zoomTo=P,Y.getDate=R,Y.getCalendar=U,Y.getView=V,Y.option=W,Y.trigger=X,Y.isValidViewType=o,Y.getViewButtonText=p;var _=F(f($.lang));if($.monthNames&&(_._months=$.monthNames),$.monthNamesShort&&(_._monthsShort=$.monthNamesShort),$.dayNames&&(_._weekdays=$.dayNames),$.dayNamesShort&&(_._weekdaysShort=$.dayNamesShort),null!=$.firstDay){var aa=F(_._week);aa.dow=$.firstDay,_._week=aa}Y.defaultAllDayEventDuration=b.duration($.defaultAllDayEventDuration),Y.defaultTimedEventDuration=b.duration($.defaultTimedEventDuration),Y.moment=function(){var a;return"local"===$.timezone?(a=Ca.moment.apply(null,arguments),a.hasTime()&&a.local()):a="UTC"===$.timezone?Ca.moment.utc.apply(null,arguments):Ca.moment.parseZone.apply(null,arguments),"_locale"in a?a._locale=_:a._lang=_,a},Y.getIsAmbigTimezone=function(){return"local"!==$.timezone&&"UTC"!==$.timezone},Y.rezoneDate=function(a){return Y.moment(a.toArray())},Y.getNow=function(){var a=$.now;return"function"==typeof a&&(a=a()),Y.moment(a)},Y.calculateWeekNumber=function(a){var b=$.weekNumberCalculation;return"function"==typeof b?b(a):"local"===b?a.week():"ISO"===b.toUpperCase()?a.isoWeek():void 0},Y.getEventEnd=function(a){return a.end?a.end.clone():Y.getDefaultEventEnd(a.allDay,a.start)},Y.getDefaultEventEnd=function(a,b){var c=b.clone();return a?c.stripTime().add(Y.defaultAllDayEventDuration):c.add(Y.defaultTimedEventDuration),Y.getIsAmbigTimezone()&&c.stripZone(),c},xa.call(Y,$);var ba,ca,da,ea,fa,ga,ha,ia,ja=Y.isFetchNeeded,ka=Y.fetchEvents,la=c[0],ma={},na=0,oa=[];ia=null!=$.defaultDate?Y.moment($.defaultDate):Y.getNow(),Y.getSuggestedViewHeight=function(){return void 0===ga&&r(),ga},Y.isHeightAuto=function(){return"auto"===$.contentHeight||"auto"===$.height}}function wa(b,c){function d(){var b=c.header;return n=c.theme?"ui":"fc",b?o=a("<div class='fc-toolbar'/>").append(f("left")).append(f("right")).append(f("center")).append('<div class="fc-clear"/>'):void 0}function e(){o.remove()}function f(d){var e=a('<div class="fc-'+d+'"/>'),f=c.header[d];return f&&a.each(f.split(" "),function(d){var f,g=a(),h=!0;a.each(this.split(","),function(d,e){var f,i,j,k,l,m,o,q,r;if("title"==e)g=g.add(a('<h2 aria-live="polite">&nbsp;</h2>')),h=!1;else if(a.isFunction(c.customButtons[e])){var s=a(c.customButtons[e](c));g=g.add(s)}else b[e]?f=function(){b[e]()}:b.isValidViewType(e)&&(f=function(){b.changeView(e)},p.push(e),l=b.getViewButtonText(e)),f&&(i=y(c.themeButtonIcons,e),j=y(c.buttonIcons,e),k=y(c.defaultButtonText,e),m=y(c.buttonText,e),o=l||m?L(l||m):i&&c.theme?"<span class='ui-icon ui-icon-"+i+"'></span>":j&&!c.theme?"<span class='fc-icon fc-icon-"+j+"'></span>":L(k||e),q=["fc-"+e+"-button",n+"-button",n+"-state-default"],r=a('<button type="button" class="'+q.join(" ")+'">'+o+"</button>").click(function(){r.hasClass(n+"-state-disabled")||(f(),(r.hasClass(n+"-state-active")||r.hasClass(n+"-state-disabled"))&&r.removeClass(n+"-state-hover"))}).mousedown(function(){r.not("."+n+"-state-active").not("."+n+"-state-disabled").addClass(n+"-state-down")}).mouseup(function(){r.removeClass(n+"-state-down")}).hover(function(){r.not("."+n+"-state-active").not("."+n+"-state-disabled").addClass(n+"-state-hover")},function(){r.removeClass(n+"-state-hover").removeClass(n+"-state-down")}),g=g.add(r))}),h&&g.first().addClass(n+"-corner-left").end().last().addClass(n+"-corner-right").end(),g.length>1||h?(f=a("<div/>"),h&&f.addClass("fc-button-group"),f.append(g),e.append(f)):e.append(g)}),e}function g(a){o.find("h2").text(a)}function h(a){o.find(".fc-"+a+"-button").addClass(n+"-state-active")}function i(a){o.find(".fc-"+a+"-button").removeClass(n+"-state-active")}function j(a){o.find(".fc-"+a+"-button").attr("disabled","disabled").addClass(n+"-state-disabled")}function k(a){o.find(".fc-"+a+"-button").removeAttr("disabled").removeClass(n+"-state-disabled")}function l(){return p}var m=this;m.render=d,m.destroy=e,m.updateTitle=g,m.activateButton=h,m.deactivateButton=i,m.disableButton=j,m.enableButton=k,m.getViewsWithButtons=l;var n,o=a(),p=[]}function xa(c){function d(a,b){return!Q||a.clone().stripZone()<Q.clone().stripZone()||b.clone().stripZone()>R.clone().stripZone()}function e(a,b){Q=a,R=b,$=[];var c=++X,d=W.length;Y=d;for(var e=0;d>e;e++)f(W[e],c)}function f(b,c){g(b,function(d){var e,f,g,h=a.isArray(b.events);if(c==X){if(d)for(e=0;e<d.length;e++)f=d[e],g=h?f:u(f,b),g&&$.push.apply($,y(g));Y--,Y||U($)}})}function g(b,d){var e,f,h=Ca.sourceFetchers;for(e=0;e<h.length;e++){if(f=h[e].call(P,b,Q.clone(),R.clone(),c.timezone,d),f===!0)return;if("object"==typeof f)return void g(f,d)}var i=b.events;if(i)a.isFunction(i)?(s(),i.call(P,Q.clone(),R.clone(),c.timezone,function(a){d(a),t()})):a.isArray(i)?d(i):d();else{var j=b.url;if(j){var k,l=b.success,m=b.error,n=b.complete;k=a.isFunction(b.data)?b.data():b.data;var o=a.extend({},k||{}),p=K(b.startParam,c.startParam),q=K(b.endParam,c.endParam),r=K(b.timezoneParam,c.timezoneParam);p&&(o[p]=Q.format()),q&&(o[q]=R.format()),c.timezone&&"local"!=c.timezone&&(o[r]=c.timezone),s(),a.ajax(a.extend({},eb,b,{data:o,success:function(b){b=b||[];var c=J(l,this,arguments);a.isArray(c)&&(b=c),d(b)},error:function(){J(m,this,arguments),d()},complete:function(){J(n,this,arguments),t()}}))}else d()}}function h(a){var b=i(a);b&&(W.push(b),Y++,f(b,X))}function i(b){var c,d,e=Ca.sourceNormalizers;if(a.isFunction(b)||a.isArray(b)?c={events:b}:"string"==typeof b?c={url:b}:"object"==typeof b&&(c=a.extend({},b)),c){for(c.className?"string"==typeof c.className&&(c.className=c.className.split(/\s+/)):c.className=[],a.isArray(c.events)&&(c.origArray=c.events,c.events=a.map(c.events,function(a){return u(a,c)})),d=0;d<e.length;d++)e[d].call(P,c);return c}}function j(b){W=a.grep(W,function(a){return!k(a,b)}),$=a.grep($,function(a){return!k(a.source,b)}),U($)}function k(a,b){return a&&b&&l(a)==l(b)}function l(a){return("object"==typeof a?a.origArray||a.googleCalendarId||a.url||a.events:null)||a}function m(a){a.start=P.moment(a.start),a.end?a.end=P.moment(a.end):a.end=null,B(a,n(a)),U($)}function n(b){var c={};return a.each(b,function(a,b){o(a)&&void 0!==b&&I(b)&&(c[a]=b)}),c}function o(a){return!/^_|^(id|allDay|start|end)$/.test(a)}function p(a,b){var c,d,e,f=u(a);if(f){for(c=y(f),d=0;d<c.length;d++)e=c[d],e.source||(b&&(V.events.push(e),e.source=V),$.push(e));return U($),c}return[]}function q(b){var c,d;for(null==b?b=function(){return!0}:a.isFunction(b)||(c=b+"",b=function(a){return a._id==c}),$=a.grep($,b,!0),d=0;d<W.length;d++)a.isArray(W[d].events)&&(W[d].events=a.grep(W[d].events,b,!0));U($)}function r(b){return a.isFunction(b)?a.grep($,b):null!=b?(b+="",a.grep($,function(a){return a._id==b})):$}function s(){Z++||S("loading",null,!0,T())}function t(){--Z||S("loading",null,!1,T())}function u(d,e){var f,g,h,i={};if(c.eventDataTransform&&(d=c.eventDataTransform(d)),e&&e.eventDataTransform&&(d=e.eventDataTransform(d)),a.extend(i,d),e&&(i.source=e),i._id=d._id||(void 0===d.id?"_fc"+fb++:d.id+""),d.className?"string"==typeof d.className?i.className=d.className.split(/\s+/):i.className=d.className:i.className=[],f=d.start||d.date,g=d.end,E(f)&&(f=b.duration(f)),E(g)&&(g=b.duration(g)),d.dow||b.isDuration(f)||b.isDuration(g))i.start=f?b.duration(f):null,i.end=g?b.duration(g):null,i._recurring=!0;else{if(f&&(f=P.moment(f),!f.isValid()))return!1;g&&(g=P.moment(g),g.isValid()||(g=null)),h=d.allDay,void 0===h&&(h=K(e?e.allDayDefault:void 0,c.allDayDefault)),v(f,g,h,i)}return i}function v(a,b,c,d){d.start=a,d.end=b,d.allDay=c,w(d),ya(d)}function w(a){null==a.allDay&&(a.allDay=!(a.start.hasTime()||a.end&&a.end.hasTime())),a.allDay?(a.start.stripTime(),a.end&&a.end.stripTime()):(a.start.hasTime()||(a.start=P.rezoneDate(a.start)),a.end&&!a.end.hasTime()&&(a.end=P.rezoneDate(a.end))),a.end&&!a.end.isAfter(a.start)&&(a.end=null),a.end||(c.forceEventDuration?a.end=P.getDefaultEventEnd(a.allDay,a.start):a.end=null)}function x(a){var b;return a.end||(b=a.allDay,null==b&&(b=!a.start.hasTime()),a={start:a.start,end:P.getDefaultEventEnd(b,a.start)}),a}function y(b,c,d){var e,f,g,h,i,j,k,l,m,n=[];if(c=c||Q,d=d||R,b)if(b._recurring){if(f=b.dow)for(e={},g=0;g<f.length;g++)e[f[g]]=!0;for(h=c.clone().stripTime();h.isBefore(d);)(!e||e[h.day()])&&(i=b.start,j=b.end,k=h.clone(),l=null,i&&(k=k.time(i)),j&&(l=h.clone().time(j)),m=a.extend({},b),v(k,l,!i&&!j,m),n.push(m)),h.add(1,"days")}else n.push(b);return n}function B(b,c){var d,e,f,g,h={};return c=c||{},c.start||(c.start=b.start.clone()),void 0===c.end&&(c.end=b.end?b.end.clone():null),null==c.allDay&&(c.allDay=b.allDay),w(c),d=null!==b._end&&null===c.end,e=c.allDay?A(c.start,b._start):z(c.start,b._start),!d&&c.end&&(f=z(c.end,c.start).subtract(z(b._end||P.getDefaultEventEnd(b._allDay,b._start),b._start))),a.each(c,function(a,b){o(a)&&void 0!==b&&(h[a]=b)}),g=C(r(b._id),d,c.allDay,e,f,h),{dateDelta:e,durationDelta:f,undo:g}}function C(b,c,d,e,f,g){var h=P.getIsAmbigTimezone(),i=[];return e&&!e.valueOf()&&(e=null),f&&!f.valueOf()&&(f=null),a.each(b,function(b,j){var k,l;k={start:j.start.clone(),end:j.end?j.end.clone():null,allDay:j.allDay},a.each(g,function(a){k[a]=j[a]}),l={start:j._start,end:j._end,allDay:j._allDay},c&&(l.end=null),l.allDay=d,w(l),e&&(l.start.add(e),l.end&&l.end.add(e)),f&&(l.end||(l.end=P.getDefaultEventEnd(l.allDay,l.start)),l.end.add(f)),h&&!l.allDay&&(e||f)&&(l.start.stripZone(),l.end&&l.end.stripZone()),a.extend(j,g,l),ya(j),i.push(function(){a.extend(j,k),ya(j)})}),function(){for(var a=0;a<i.length;a++)i[a]()}}function D(){var b,d=c.businessHours,e={className:"fc-nonbusiness",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},f=P.getView();return d&&(b="object"==typeof d?a.extend({},e,d):e),b?y(u(b),f.start,f.end):[]}function F(a,b){var d=b.source||{},e=K(b.constraint,d.constraint,c.eventConstraint),f=K(b.overlap,d.overlap,c.eventOverlap);return a=x(a),L(a,e,f,b)}function G(a){return L(a,c.selectConstraint,c.selectOverlap)}function H(b,c){var d,e;return c&&(d=a.extend({},c,b),e=y(u(d))[0]),e?F(b,e):(b=x(b),G(b))}function L(a,b,c,d){var e,f,g,h,i;if(a={start:a.start.clone().stripZone(),end:a.end.clone().stripZone()},null!=b){for(e=M(b),f=!1,g=0;g<e.length;g++)if(N(e[g],a)){f=!0;break}if(!f)return!1}for(g=0;g<$.length;g++)if(h=$[g],(!d||d._id!==h._id)&&O(h,a)){if(c===!1)return!1;if("function"==typeof c&&!c(h,d))return!1;if(d){if(i=K(h.overlap,(h.source||{}).overlap),i===!1)return!1;if("function"==typeof i&&!i(d,h))return!1}}return!0}function M(a){return"businessHours"===a?D():"object"==typeof a?y(u(a)):r(a)}function N(a,b){var c=a.start.clone().stripZone(),d=P.getEventEnd(a).stripZone();return b.start>=c&&b.end<=d}function O(a,b){var c=a.start.clone().stripZone(),d=P.getEventEnd(a).stripZone();return b.start<d&&b.end>c}var P=this;P.isFetchNeeded=d,P.fetchEvents=e,P.addEventSource=h,P.removeEventSource=j,P.updateEvent=m,P.renderEvent=p,P.removeEvents=q,P.clientEvents=r,P.mutateEvent=B,P.normalizeEventDateProps=w,P.ensureVisibleEventRange=x;var Q,R,S=P.trigger,T=P.getView,U=P.reportEvents,V={events:[]},W=[V],X=0,Y=0,Z=0,$=[];a.each((c.events?[c.events]:[]).concat(c.eventSources||[]),function(a,b){var c=i(b);c&&W.push(c)}),P.getBusinessHoursEvents=D,P.isEventRangeAllowed=F,P.isSelectionRangeAllowed=G,P.isExternalDropRangeAllowed=H}function ya(a){a._allDay=a.allDay,a._start=a.start.clone(),a._end=a.end?a.end.clone():null}var za={titleRangeSeparator:" — ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,defaultButtonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200},Aa={dayPopoverFormat:"dddd, MMMM D"},Ba={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}},Ca=a.fullCalendar={version:"2.2.7"},Da=Ca.views={};a.fn.fullCalendar=function(b){var c=Array.prototype.slice.call(arguments,1),d=this;return this.each(function(e,f){var g,h=a(f),i=h.data("fullCalendar");"string"==typeof b?i&&a.isFunction(i[b])&&(g=i[b].apply(i,c),e||(d=g),"destroy"===b&&h.removeData("fullCalendar")):i||(i=new va(h,b),h.data("fullCalendar",i),i.render())}),d};var Ea=Ca.langs={};Ca.datepickerLang=function(b,c,d){var e=Ea[b]||(Ea[b]={});e.isRTL=d.isRTL,e.weekNumberTitle=d.weekHeader,a.each(Fa,function(a,b){e[a]=b(d)}),a.datepicker&&(a.datepicker.regional[c]=a.datepicker.regional[b]=d,a.datepicker.regional.en=a.datepicker.regional[""],a.datepicker.setDefaults(d))},Ca.lang=function(b,c){var e,g;e=Ea[b]||(Ea[b]={}),c&&d(e,c),g=f(b),a.each(Ga,function(a,b){void 0===e[a]&&(e[a]=b(g,e))}),za.lang=b};var Fa={defaultButtonText:function(a){return{prev:M(a.prevText),next:M(a.nextText),today:M(a.currentText)}},monthYearFormat:function(a){return a.showMonthAfterYear?"YYYY["+a.yearSuffix+"] MMMM":"MMMM YYYY["+a.yearSuffix+"]"}},Ga={dayOfMonthFormat:function(a,b){var c=a.longDateFormat("l");return c=c.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),b.isRTL?c+=" ddd":c="ddd "+c,c},smallTimeFormat:function(a){return a.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(a){return a.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},noMeridiemTimeFormat:function(a){return a.longDateFormat("LT").replace(/\s*a$/i,"")}};Ca.lang("en",Aa),Ca.intersectionToSeg=x,Ca.applyAll=J,Ca.debounce=Q;var Ha,Ia,Ja,Ka=-1!==navigator.userAgent.toLowerCase().indexOf("phantom"),La=!1,Ma=["sun","mon","tue","wed","thu","fri","sat"],Na=["year","month","week","day","hour","minute","second","millisecond"],Oa={}.hasOwnProperty,Pa=/^\s*\d{4}-\d\d$/,Qa=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,Ra=b.fn,Sa=a.extend({},Ra);Ca.moment=function(){return R(arguments)},Ca.moment.utc=function(){var a=R(arguments,!0);return a.hasTime()&&a.utc(),a},Ca.moment.parseZone=function(){return R(arguments,!0,!0)},Ra.clone=function(){var a=Sa.clone.apply(this,arguments);return T(this,a),this._fullCalendar&&(a._fullCalendar=!0),a},Ra.time=function(a){if(!this._fullCalendar)return Sa.time.apply(this,arguments);if(null==a)return b.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,b.isDuration(a)||b.isMoment(a)||(a=b.duration(a));var c=0;return b.isDuration(a)&&(c=24*Math.floor(a.asDays())),this.hours(c+a.hours()).minutes(a.minutes()).seconds(a.seconds()).milliseconds(a.milliseconds())},Ra.stripTime=function(){var a;return this._ambigTime||(a=this.toArray(),this.utc(),Ia(this,a.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this},Ra.hasTime=function(){return!this._ambigTime},Ra.stripZone=function(){var a,b;return this._ambigZone||(a=this.toArray(),b=this._ambigTime,this.utc(),Ia(this,a),this._ambigTime=b||!1,this._ambigZone=!0),this},Ra.hasZone=function(){return!this._ambigZone},Ra.local=function(){var a=this.toArray(),b=this._ambigZone;return Sa.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,b&&Ja(this,a),this},Ra.utc=function(){return Sa.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this},a.each(["zone","utcOffset"],function(a,b){Sa[b]&&(Ra[b]=function(a){return null!=a&&(this._ambigTime=!1,this._ambigZone=!1),Sa[b].apply(this,arguments)})}),Ra.format=function(){return this._fullCalendar&&arguments[0]?W(this,arguments[0]):this._ambigTime?V(this,"YYYY-MM-DD"):this._ambigZone?V(this,"YYYY-MM-DD[T]HH:mm:ss"):Sa.format.apply(this,arguments)},Ra.toISOString=function(){return this._ambigTime?V(this,"YYYY-MM-DD"):this._ambigZone?V(this,"YYYY-MM-DD[T]HH:mm:ss"):Sa.toISOString.apply(this,arguments)},Ra.isWithin=function(a,b){var c=S([this,a,b]);return c[0]>=c[1]&&c[0]<c[2]},Ra.isSame=function(a,b){var c;return this._fullCalendar?b?(c=S([this,a],!0),Sa.isSame.call(c[0],c[1],b)):(a=Ca.moment.parseZone(a),Sa.isSame.call(this,a)&&Boolean(this._ambigTime)===Boolean(a._ambigTime)&&Boolean(this._ambigZone)===Boolean(a._ambigZone)):Sa.isSame.apply(this,arguments)},a.each(["isBefore","isAfter"],function(a,b){Ra[b]=function(a,c){var d;return this._fullCalendar?(d=S([this,a]),Sa[b].call(d[0],d[1],c)):Sa[b].apply(this,arguments)}}),Ha="_d"in b()&&"updateOffset"in b,Ia=Ha?function(a,c){a._d.setTime(Date.UTC.apply(Date,c)),b.updateOffset(a,!1)}:U,Ja=Ha?function(a,c){a._d.setTime(+new Date(c[0]||0,c[1]||0,c[2]||0,c[3]||0,c[4]||0,c[5]||0,c[6]||0)),b.updateOffset(a,!1)}:U;var Ta={t:function(a){return V(a,"a").charAt(0)},T:function(a){return V(a,"A").charAt(0)}};Ca.formatRange=Z;var Ua={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"},Va={};Ca.Class=ca,ca.extend=function(a){var b,c=this;return a=a||{},H(a,"constructor")&&(b=a.constructor),"function"!=typeof b&&(b=a.constructor=function(){c.apply(this,arguments)}),b.prototype=F(c.prototype),G(a,b.prototype),G(c,b),b},ca.mixin=function(a){G(a.prototype||a,this.prototype)};var Wa=ca.extend({isHidden:!0,options:null,el:null,documentMousedownProxy:null,margin:10,constructor:function(a){this.options=a||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var b=this,c=this.options;this.el=a('<div class="fc-popover"/>').addClass(c.className||"").css({top:0,left:0}).append(c.content).appendTo(c.parentEl),this.el.on("click",".fc-close",function(){b.hide()}),c.autoHide&&a(document).on(m(),this.documentMousedownProxy=a.proxy(this,"documentMousedown"))},documentMousedown:function(b){this.el&&!a(b.target).closest(this.el).length&&(this.hide(),b.stopPropagation())},destroy:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),
3
  a(document).off(m(),this.documentMousedownProxy)},position:function(){var b,c,d,e,f,g=this.options,h=this.el.offsetParent().offset(),i=this.el.outerWidth(),j=this.el.outerHeight(),k=a(window),l=u(this.el);e=g.top||0,f=void 0!==g.left?g.left:void 0!==g.right?g.right-i:0,l.is(window)||l.is(document)?(l=k,b=0,c=0):(d=l.offset(),b=d.top,c=d.left),b+=k.scrollTop(),c+=k.scrollLeft(),g.viewportConstrain!==!1&&(e=Math.min(e,b+l.outerHeight()-j-this.margin),e=Math.max(e,b+this.margin),f=Math.min(f,c+l.outerWidth()-i-this.margin),f=Math.max(f,c+this.margin)),this.el.css({top:e-h.top,left:f-h.left})},trigger:function(a){this.options[a]&&this.options[a].apply(this,Array.prototype.slice.call(arguments,1))}}),Xa=ca.extend({grid:null,rowCoords:null,colCoords:null,containerEl:null,minX:null,maxX:null,minY:null,maxY:null,constructor:function(a){this.grid=a},build:function(){this.rowCoords=this.grid.computeRowCoords(),this.colCoords=this.grid.computeColCoords(),this.computeBounds()},clear:function(){this.rowCoords=null,this.colCoords=null},getCell:function(a,b){var c,d,e,f=this.rowCoords,g=this.colCoords,h=null,i=null;if(this.inBounds(a,b)){for(c=0;c<f.length;c++)if(d=f[c],b>=d.top&&b<d.bottom){h=c;break}for(c=0;c<g.length;c++)if(d=g[c],a>=d.left&&a<d.right){i=c;break}if(null!==h&&null!==i)return e=this.grid.getCell(h,i),e.grid=this.grid,e}return null},computeBounds:function(){var a;this.containerEl&&(a=this.containerEl.offset(),this.minX=a.left,this.maxX=a.left+this.containerEl.outerWidth(),this.minY=a.top,this.maxY=a.top+this.containerEl.outerHeight())},inBounds:function(a,b){return this.containerEl?a>=this.minX&&a<this.maxX&&b>=this.minY&&b<this.maxY:!0}}),Ya=ca.extend({coordMaps:null,constructor:function(a){this.coordMaps=a},build:function(){var a,b=this.coordMaps;for(a=0;a<b.length;a++)b[a].build()},getCell:function(a,b){var c,d=this.coordMaps,e=null;for(c=0;c<d.length&&!e;c++)e=d[c].getCell(a,b);return e},clear:function(){var a,b=this.coordMaps;for(a=0;a<b.length;a++)b[a].clear()}}),Za=ca.extend({coordMap:null,options:null,isListening:!1,isDragging:!1,origCell:null,cell:null,mouseX0:null,mouseY0:null,mousemoveProxy:null,mouseupProxy:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,constructor:function(a,b){this.coordMap=a,this.options=b||{}},mousedown:function(a){w(a)&&(k(a)||a.preventDefault(),this.startListening(a),this.options.distance||this.startDrag(a))},startListening:function(b){var c,d;this.isListening||(b&&this.options.scroll&&(c=u(a(b.target)),c.is(window)||c.is(document)||(this.scrollEl=c,this.scrollHandlerProxy=Q(a.proxy(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),this.computeCoords(),b&&(d=this.getCell(b),this.origCell=d,this.mouseX0=l(b).x,this.mouseY0=l(b).y),a(document).on(o(),this.mousemoveProxy=a.proxy(this,"mousemove")).on(n(),this.mouseupProxy=a.proxy(this,"mouseup")).on("selectstart",this.preventDefault),this.isListening=!0,this.trigger("listenStart",b))},computeCoords:function(){this.coordMap.build(),this.computeScrollBounds()},mousemove:function(a){var b,c;this.isDragging||(b=this.options.distance||1,c=Math.pow(l(a).x-this.mouseX0,2)+Math.pow(l(a).y-this.mouseY0,2),c>=b*b&&this.startDrag(a)),this.isDragging&&this.drag(a)},startDrag:function(a){var b;this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.trigger("dragStart",a),b=this.getCell(a),b&&this.cellOver(b))},drag:function(a){var b;this.isDragging&&(b=this.getCell(a),da(b,this.cell)||(this.cell&&this.cellOut(),!b||k(a)&&!La||this.cellOver(b)),this.dragScroll(a))},cellOver:function(a){this.cell=a,this.trigger("cellOver",a,da(a,this.origCell))},cellOut:function(){this.cell&&(this.trigger("cellOut",this.cell),this.cell=null)},mouseup:function(a){this.stopDrag(a),this.stopListening(a)},stopDrag:function(a){this.isDragging&&(this.stopScrolling(),this.trigger("dragStop",a),this.isDragging=!1)},stopListening:function(b){this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),a(document).off(o(),this.mousemoveProxy).off(n(),this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.trigger("listenStop",b),this.origCell=this.cell=null,this.coordMap.clear())},getCell:function(a){return this.coordMap.getCell(l(a).x,l(a).y)},trigger:function(a){this.options[a]&&this.options[a].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(a){a.preventDefault()},computeScrollBounds:function(){var a,b=this.scrollEl;b&&(a=b.offset(),this.scrollBounds={top:a.top,left:a.left,bottom:a.top+b.outerHeight(),right:a.left+b.outerWidth()})},dragScroll:function(a){var b,c,d,e,f=this.scrollSensitivity,g=this.scrollBounds,h=0,i=0;g&&(b=(f-(l(a).y-g.top))/f,c=(f-(g.bottom-l(a).y))/f,d=(f-(l(a).x-g.left))/f,e=(f-(g.right-l(a).x))/f,b>=0&&1>=b?h=b*this.scrollSpeed*-1:c>=0&&1>=c&&(h=c*this.scrollSpeed),d>=0&&1>=d?i=d*this.scrollSpeed*-1:e>=0&&1>=e&&(i=e*this.scrollSpeed)),this.setScrollVel(h,i)},setScrollVel:function(b,c){this.scrollTopVel=b,this.scrollLeftVel=c,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(a.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var a=this.scrollEl;this.scrollTopVel<0?a.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&a.scrollTop()+a[0].clientHeight>=a[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?a.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&a.scrollLeft()+a[0].clientWidth>=a[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var a=this.scrollEl,b=this.scrollIntervalMs/1e3;this.scrollTopVel&&a.scrollTop(a.scrollTop()+this.scrollTopVel*b),this.scrollLeftVel&&a.scrollLeft(a.scrollLeft()+this.scrollLeftVel*b),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.computeCoords())},scrollHandler:function(){this.scrollIntervalId||this.computeCoords()}}),$a=ca.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(b,c){this.options=c=c||{},this.sourceEl=b,this.parentEl=c.parentEl?a(c.parentEl):b.parent()},start:function(b){this.isFollowing||(this.isFollowing=!0,this.mouseY0=l(b).y,this.mouseX0=l(b).x,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),a(document).on(o(),this.mousemoveProxy=a.proxy(this,"mousemove")))},stop:function(b,c){function d(){this.isAnimating=!1,e.destroyEl(),this.top0=this.left0=null,c&&c()}var e=this,f=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,a(document).off(o(),this.mousemoveProxy),b&&f&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:f,complete:d})):d())},getEl:function(){var a=this.el;return a||(this.sourceEl.width(),a=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),a},destroyEl:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var a,b;this.getEl(),null===this.top0&&(this.sourceEl.width(),a=this.sourceEl.offset(),b=this.el.offsetParent().offset(),this.top0=a.top-b.top,this.left0=a.left-b.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(a){this.topDelta=l(a).y-this.mouseY0,this.leftDelta=l(a).x-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),_a=ca.extend({view:null,isRTL:null,cellHtml:"<td/>",constructor:function(a){this.view=a,this.isRTL=a.opt("isRTL")},rowHtml:function(a,b){var c,d,e=this.getHtmlRenderer("cell",a),f="";for(b=b||0,c=0;c<this.colCnt;c++)d=this.getCell(b,c),f+=e(d);return f=this.bookendCells(f,a,b),"<tr>"+f+"</tr>"},bookendCells:function(a,b,c){var d=this.getHtmlRenderer("intro",b)(c||0),e=this.getHtmlRenderer("outro",b)(c||0),f=this.isRTL?e:d,g=this.isRTL?d:e;return"string"==typeof a?f+a+g:a.prepend(f).append(g)},getHtmlRenderer:function(a,b){var c,d,e,f,g=this.view;return c=a+"Html",b&&(d=b+N(a)+"Html"),d&&(f=g[d])?e=g:d&&(f=this[d])?e=this:(f=g[c])?e=g:(f=this[c])&&(e=this),"function"==typeof f?function(){return f.apply(e,arguments)||""}:function(){return f||""}}}),ab=Ca.Grid=_a.extend({start:null,end:null,rowCnt:0,colCnt:0,rowData:null,colData:null,el:null,coordMap:null,elsByFill:null,documentDragStartProxy:null,colHeadFormat:null,eventTimeFormat:null,displayEventEnd:null,constructor:function(){_a.apply(this,arguments),this.coordMap=new Xa(this),this.elsByFill={},this.documentDragStartProxy=a.proxy(this,"documentDragStart")},render:function(){this.bindHandlers()},destroy:function(){this.unbindHandlers()},computeColHeadFormat:function(){},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventEnd:function(){return!1},setRange:function(a){var b=this.view;this.start=a.start.clone(),this.end=a.end.clone(),this.rowData=[],this.colData=[],this.updateCells(),this.colHeadFormat=b.opt("columnFormat")||this.computeColHeadFormat(),this.eventTimeFormat=b.opt("timeFormat")||this.computeEventTimeFormat(),this.displayEventEnd=b.opt("displayEventEnd"),null==this.displayEventEnd&&(this.displayEventEnd=this.computeDisplayEventEnd())},updateCells:function(){},rangeToSegs:function(a){},getCell:function(b,c){var d;return null==c&&("number"==typeof b?(c=b%this.colCnt,b=Math.floor(b/this.colCnt)):(c=b.col,b=b.row)),d={row:b,col:c},a.extend(d,this.getRowData(b),this.getColData(c)),a.extend(d,this.computeCellRange(d)),d},computeCellRange:function(a){},getRowData:function(a){return this.rowData[a]||{}},getColData:function(a){return this.colData[a]||{}},getRowEl:function(a){},getColEl:function(a){},getCellDayEl:function(a){return this.getColEl(a.col)||this.getRowEl(a.row)},computeRowCoords:function(){var a,b,c,d=[];for(a=0;a<this.rowCnt;a++)b=this.getRowEl(a),c={top:b.offset().top},a>0&&(d[a-1].bottom=c.top),d.push(c);return c.bottom=c.top+b.outerHeight(),d},computeColCoords:function(){var a,b,c,d=[];for(a=0;a<this.colCnt;a++)b=this.getColEl(a),c={left:b.offset().left},a>0&&(d[a-1].right=c.left),d.push(c);return c.right=c.left+b.outerWidth(),d},bindHandlers:function(){var b=this;this.el.on(m(),function(c){a(c.target).is(".fc-event-container *, .fc-more")||b.view.el.find(".fc-popover").length||a(c.target).closest(".fc-popover").length||b.dayMousedown(c)}),this.bindSegHandlers(),a(document).on("dragstart",this.documentDragStartProxy)},unbindHandlers:function(){a(document).off("dragstart",this.documentDragStartProxy)},dayMousedown:function(a){var b,c,d=this,e=this.view,f=e.opt("selectable"),g=new Za(this.coordMap,{scroll:e.opt("dragScroll"),dragStart:function(){e.unselect()},cellOver:function(a,e){var h=g.origCell;h&&(b=e?a:null,f&&(c=d.computeSelection(h,a),c?d.renderSelection(c):i()))},cellOut:function(a){b=null,c=null,d.destroySelection(),j()},listenStop:function(a){b&&(a.preventDefault(),e.trigger("dayClick",d.getCellDayEl(b),b.start,a)),c&&e.reportSelection(c,a),j()}});g.mousedown(a)},renderRangeHelper:function(a,b){var c;c=b?F(b.event):{},c.start=a.start.clone(),c.end=a.end?a.end.clone():null,c.allDay=null,this.view.calendar.normalizeEventDateProps(c),c.className=(c.className||[]).concat("fc-helper"),b||(c.editable=!1),this.renderHelper(c,b)},renderHelper:function(a,b){},destroyHelper:function(){},renderSelection:function(a){this.renderHighlight(a)},destroySelection:function(){this.destroyHighlight()},computeSelection:function(a,b){var c,d=[a.start,a.end,b.start,b.end];return d.sort(O),c={start:d[0].clone(),end:d[3].clone()},this.view.calendar.isSelectionRangeAllowed(c)?c:null},renderHighlight:function(a){this.renderFill("highlight",this.rangeToSegs(a))},destroyHighlight:function(){this.destroyFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderFill:function(a,b){},destroyFill:function(a){var b=this.elsByFill[a];b&&(b.remove(),delete this.elsByFill[a])},renderFillSegEls:function(b,c){var d,e=this,f=this[b+"SegEl"],g="",h=[];if(c.length){for(d=0;d<c.length;d++)g+=this.fillSegHtml(b,c[d]);a(g).each(function(b,d){var g=c[b],i=a(d);f&&(i=f.call(e,g,i)),i&&(i=a(i),i.is(e.fillSegTag)&&(g.el=i,h.push(g)))})}return h},fillSegTag:"div",fillSegHtml:function(a,b){var c=this[a+"SegClasses"],d=this[a+"SegStyles"],e=c?c.call(this,b):[],f=d?d.call(this,b):"";return"<"+this.fillSegTag+(e.length?' class="'+e.join(" ")+'"':"")+(f?' style="'+f+'"':"")+" />"},headHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.rowHtml("head")+"</thead></table></div>"},headCellHtml:function(a){var b=this.view,c=a.start;return'<th class="fc-day-header '+b.widgetHeaderClass+" fc-"+Ma[c.day()]+'">'+L(c.format(this.colHeadFormat))+"</th>"},bgCellHtml:function(a){var b=this.view,c=a.start,d=this.getDayClasses(c);return d.unshift("fc-day",b.widgetContentClass),'<td class="'+d.join(" ")+'" data-date="'+c.format("YYYY-MM-DD")+'"></td>'},getDayClasses:function(a){var b=this.view,c=b.calendar.getNow().stripTime(),d=["fc-"+Ma[a.day()]];return"month"===b.name&&a.month()!=b.intervalStart.month()&&d.push("fc-other-month"),a.isSame(c,"day")?d.push("fc-today",b.highlightStateClass):c>a?d.push("fc-past"):d.push("fc-future"),d}});ab.mixin({mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,segs:null,renderEvents:function(a){var b,c,d=this.eventsToSegs(a),e=[],f=[];for(b=0;b<d.length;b++)c=d[b],ea(c.event)?e.push(c):f.push(c);e=this.renderBgSegs(e)||e,f=this.renderFgSegs(f)||f,this.segs=e.concat(f)},destroyEvents:function(){this.triggerSegMouseout(),this.destroyFgSegs(),this.destroyBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(a){},destroyFgSegs:function(){},renderFgSegEls:function(b,c){var d,e=this.view,f="",g=[];if(b.length){for(d=0;d<b.length;d++)f+=this.fgSegHtml(b[d],c);a(f).each(function(c,d){var f=b[c],h=e.resolveEventEl(f.event,a(d));h&&(h.data("fc-seg",f),f.el=h,g.push(f))})}return g},fgSegHtml:function(a,b){},renderBgSegs:function(a){return this.renderFill("bgEvent",a)},destroyBgSegs:function(){this.destroyFill("bgEvent")},bgEventSegEl:function(a,b){return this.view.resolveEventEl(a.event,b)},bgEventSegClasses:function(a){var b=a.event,c=b.source||{};return["fc-bgevent"].concat(b.className,c.className||[])},bgEventSegStyles:function(a){var b=this.view,c=a.event,d=c.source||{},e=c.color,f=d.color,g=b.opt("eventColor"),h=c.backgroundColor||e||d.backgroundColor||f||b.opt("eventBackgroundColor")||g;return h?"background-color:"+h:""},businessHoursSegClasses:function(a){return["fc-nonbusiness","fc-bgevent"]},bindSegHandlers:function(){var b=this,c=this.view,d={};d.mouseenter=function(a,c){b.triggerSegMouseover(a,c)},d.mouseleave=function(a,c){b.triggerSegMouseout(a,c)},d.click=function(a,b){return c.trigger("eventClick",this,a.event,b)},d[m()]=function(d,e){a(e.target).is(".fc-resizer")&&c.isEventResizable(d.event)?b.segResizeMousedown(d,e):!c.isEventDraggable(d.event)||k(e)&&!La||b.segDragMousedown(d,e)},a.each(d,function(c,d){b.el.on(c,".fc-event-container > *",function(c){var e=a(this).data("fc-seg");return!e||b.isDraggingSeg||b.isResizingSeg?void 0:d.call(this,e,c)})})},triggerSegMouseover:function(a,b){this.mousedOverSeg||(this.mousedOverSeg=a,this.view.trigger("eventMouseover",a.el[0],a.event,b))},triggerSegMouseout:function(a,b){b=b||{},this.mousedOverSeg&&(a=a||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",a.el[0],a.event,b))},segDragMousedown:function(a,b){var c,d=this,e=this.view,f=a.el,g=a.event,h=new $a(a.el,{parentEl:e.el,opacity:e.opt("dragOpacity"),revertDuration:e.opt("dragRevertDuration"),zIndex:2}),k=new Za(e.coordMap,{distance:5,scroll:e.opt("dragScroll"),listenStart:function(a){h.hide(),h.start(a)},dragStart:function(b){d.triggerSegMouseout(a,b),d.isDraggingSeg=!0,e.hideEvent(g),e.trigger("eventDragStart",f[0],g,b,{})},cellOver:function(b,f){var j=a.cell||k.origCell;c=d.computeEventDrop(j,b,g),c?(e.renderDrag(c,a)?h.hide():h.show(),f&&(c=null)):(h.show(),i())},cellOut:function(){c=null,e.destroyDrag(),h.show(),j()},dragStop:function(a){h.stop(!c,function(){d.isDraggingSeg=!1,e.destroyDrag(),e.showEvent(g),e.trigger("eventDragStop",f[0],g,a,{}),c&&e.reportEventDrop(g,c,f,a)}),j()},listenStop:function(){h.stop()}});k.mousedown(b)},computeEventDrop:function(a,b,c){var d,e,f,g,h,i=a.start,j=b.start;return i.hasTime()===j.hasTime()?(d=z(j,i),e=c.start.clone().add(d),f=null===c.end?null:c.end.clone().add(d),g=c.allDay):(e=j.clone(),f=null,g=!j.hasTime()),h={start:e,end:f,allDay:g},this.view.calendar.isEventRangeAllowed(h,c)?h:null},documentDragStart:function(b,c){var d,e,f=this.view;f.opt("droppable")&&(d=a(b.target),e=f.opt("dropAccept"),(a.isFunction(e)?e.call(d[0],d):d.is(e))&&this.startExternalDrag(d,b,c))},startExternalDrag:function(b,c,d){var e,f,g=this,h=ka(b);e=new Za(this.coordMap,{cellOver:function(a){f=g.computeExternalDrop(a,h),f?g.renderDrag(f):i()},cellOut:function(){f=null,g.destroyDrag(),j()}}),a(document).one("dragstop",function(a,c){g.destroyDrag(),j(),f&&g.view.reportExternalDrop(h,f,b,a,c)}),e.startDrag(c)},computeExternalDrop:function(a,b){var c={start:a.start.clone(),end:null};return b.startTime&&!c.start.hasTime()&&c.start.time(b.startTime),b.duration&&(c.end=c.start.clone().add(b.duration)),this.view.calendar.isExternalDropRangeAllowed(c,b.eventProps)?c:null},renderDrag:function(a,b){},destroyDrag:function(){},segResizeMousedown:function(a,b){function c(){f.destroyEventResize(),g.showEvent(l),j()}var d,e,f=this,g=this.view,h=g.calendar,k=a.el,l=a.event,m=l.start,n=h.getEventEnd(l);e=new Za(this.coordMap,{distance:5,scroll:g.opt("dragScroll"),dragStart:function(b){f.triggerSegMouseout(a,b),f.isResizingSeg=!0,g.trigger("eventResizeStart",k[0],l,b,{})},cellOver:function(b){d=b.end,d.isAfter(m)||(d=m.clone().add(z(b.end,b.start))),d.isSame(n)?d=null:h.isEventRangeAllowed({start:m,end:d},l)?(f.renderEventResize({start:m,end:d},a),g.hideEvent(l)):(d=null,i())},cellOut:function(){d=null,c()},dragStop:function(a){f.isResizingSeg=!1,c(),g.trigger("eventResizeStop",k[0],l,a,{}),d&&g.reportEventResize(l,d,k,a)}}),e.mousedown(b)},renderEventResize:function(a,b){},destroyEventResize:function(){},getEventTimeText:function(a,b){return b=b||this.eventTimeFormat,a.end&&this.displayEventEnd?this.view.formatRange(a,b):a.start.format(b)},getSegClasses:function(a,b,c){var d=a.event,e=["fc-event",a.isStart?"fc-start":"fc-not-start",a.isEnd?"fc-end":"fc-not-end"].concat(d.className,d.source?d.source.className:[]);return b&&e.push("fc-draggable"),c&&e.push("fc-resizable"),e},getEventSkinCss:function(a){var b=this.view,c=a.source||{},d=a.color,e=c.color,f=b.opt("eventColor"),g=a.backgroundColor||d||c.backgroundColor||e||b.opt("eventBackgroundColor")||f,h=a.borderColor||d||c.borderColor||e||b.opt("eventBorderColor")||f,i=a.textColor||c.textColor||b.opt("eventTextColor"),j=[];return g&&j.push("background-color:"+g),h&&j.push("border-color:"+h),i&&j.push("color:"+i),j.join(";")},eventsToSegs:function(a,b){var c,d=this.eventsToRanges(a),e=[];for(c=0;c<d.length;c++)e.push.apply(e,this.eventRangeToSegs(d[c],b));return e},eventsToRanges:function(b){var c=this,d=ha(b),e=[];return a.each(d,function(a,b){b.length&&e.push.apply(e,fa(b[0])?c.eventsToInverseRanges(b):c.eventsToNormalRanges(b))}),e},eventsToNormalRanges:function(a){var b,c,d,e,f=this.view.calendar,g=[];for(b=0;b<a.length;b++)c=a[b],d=c.start.clone().stripZone(),e=f.getEventEnd(c).stripZone(),g.push({event:c,start:d,end:e,eventStartMS:+d,eventDurationMS:e-d});return g},eventsToInverseRanges:function(a){var b,c,d=this.view,e=d.start.clone().stripZone(),f=d.end.clone().stripZone(),g=this.eventsToNormalRanges(a),h=[],i=a[0],j=e;for(g.sort(ia),b=0;b<g.length;b++)c=g[b],c.start>j&&h.push({event:i,start:j,end:c.start}),j=c.end;return f>j&&h.push({event:i,start:j,end:f}),h},eventRangeToSegs:function(a,b){var c,d,e;for(c=b?b(a):this.rangeToSegs(a),d=0;d<c.length;d++)e=c[d],e.event=a.event,e.eventStartMS=a.eventStartMS,e.eventDurationMS=a.eventDurationMS;return c}}),Ca.compareSegs=ja,Ca.dataAttrPrefix="";var bb=ab.extend({numbersVisible:!1,bottomCoordPadding:0,breakOnWeeks:null,cellDates:null,dayToCellOffsets:null,rowEls:null,dayEls:null,helperEls:null,render:function(a){var b,c,d,e=this.view,f=this.rowCnt,g=this.colCnt,h=f*g,i="";for(b=0;f>b;b++)i+=this.dayRowHtml(b,a);for(this.el.html(i),this.rowEls=this.el.find(".fc-row"),this.dayEls=this.el.find(".fc-day"),c=0;h>c;c++)d=this.getCell(c),e.trigger("dayRender",null,d.start,this.dayEls.eq(c));ab.prototype.render.call(this)},destroy:function(){this.destroySegPopover(),ab.prototype.destroy.call(this)},dayRowHtml:function(a,b){var c=this.view,d=["fc-row","fc-week",c.widgetContentClass];return b&&d.push("fc-rigid"),'<div class="'+d.join(" ")+'"><div class="fc-bg"><table>'+this.rowHtml("day",a)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.rowHtml("number",a)+"</thead>":"")+"</table></div></div>"},dayCellHtml:function(a){return this.bgCellHtml(a)},computeColHeadFormat:function(){return this.rowCnt>1?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},updateCells:function(){var a,b,c,d;if(this.updateCellDates(),a=this.cellDates,this.breakOnWeeks){for(b=a[0].day(),d=1;d<a.length&&a[d].day()!=b;d++);c=Math.ceil(a.length/d)}else c=1,d=a.length;this.rowCnt=c,this.colCnt=d},updateCellDates:function(){for(var a=this.view,b=this.start.clone(),c=[],d=-1,e=[];b.isBefore(this.end);)a.isHiddenDay(b)?e.push(d+.5):(d++,e.push(d),c.push(b.clone())),b.add(1,"days");this.cellDates=c,this.dayToCellOffsets=e},computeCellRange:function(a){var b=this.colCnt,c=a.row*b+(this.isRTL?b-a.col-1:a.col),d=this.cellDates[c].clone(),e=d.clone().add(1,"day");return{start:d,end:e}},getRowEl:function(a){return this.rowEls.eq(a)},getColEl:function(a){return this.dayEls.eq(a)},getCellDayEl:function(a){return this.dayEls.eq(a.row*this.colCnt+a.col)},computeRowCoords:function(){var a=ab.prototype.computeRowCoords.call(this);return a[a.length-1].bottom+=this.bottomCoordPadding,a},rangeToSegs:function(a){var b,c,d,e,f,g,h,i,j,k,l=this.isRTL,m=this.rowCnt,n=this.colCnt,o=[];for(a=this.view.computeDayRange(a),b=this.dateToCellOffset(a.start),c=this.dateToCellOffset(a.end.subtract(1,"days")),d=0;m>d;d++)e=d*n,f=e+n-1,i=Math.max(e,b),j=Math.min(f,c),i=Math.ceil(i),j=Math.floor(j),j>=i&&(g=i===b,h=j===c,i-=e,j-=e,k={row:d,isStart:g,isEnd:h},l?(k.leftCol=n-j-1,k.rightCol=n-i-1):(k.leftCol=i,k.rightCol=j),o.push(k));return o},dateToCellOffset:function(a){var b=this.dayToCellOffsets,c=a.diff(this.start,"days");return 0>c?b[0]-1:c>=b.length?b[b.length-1]+1:b[c]},renderDrag:function(a,b){var c;return this.renderHighlight(this.view.calendar.ensureVisibleEventRange(a)),b&&!b.el.closest(this.el).length?(this.renderRangeHelper(a,b),c=this.view.opt("dragOpacity"),void 0!==c&&this.helperEls.css("opacity",c),!0):void 0},destroyDrag:function(){this.destroyHighlight(),this.destroyHelper()},renderEventResize:function(a,b){this.renderHighlight(a),this.renderRangeHelper(a,b)},destroyEventResize:function(){this.destroyHighlight(),this.destroyHelper()},renderHelper:function(b,c){var d,e=[],f=this.eventsToSegs([b]);f=this.renderFgSegEls(f),d=this.renderSegRows(f),this.rowEls.each(function(b,f){var g,h=a(f),i=a('<div class="fc-helper-skeleton"><table/></div>');g=c&&c.row===b?c.el.position().top:h.find(".fc-content-skeleton tbody").position().top,i.css("top",g).find("table").append(d[b].tbodyEl),h.append(i),e.push(i[0])}),this.helperEls=a(e)},destroyHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(b,c){var d,e,f,g=[];for(c=this.renderFillSegEls(b,c),d=0;d<c.length;d++)e=c[d],f=this.renderFillRow(b,e),this.rowEls.eq(e.row).append(f),g.push(f[0]);return this.elsByFill[b]=a(g),c},renderFillRow:function(b,c){var d,e,f=this.colCnt,g=c.leftCol,h=c.rightCol+1;return d=a('<div class="fc-'+b.toLowerCase()+'-skeleton"><table><tr/></table></div>'),e=d.find("tr"),g>0&&e.append('<td colspan="'+g+'"/>'),e.append(c.el.attr("colspan",h-g)),f>h&&e.append('<td colspan="'+(f-h)+'"/>'),this.bookendCells(e,b),d}});bb.mixin({rowStructs:null,destroyEvents:function(){this.destroySegPopover(),ab.prototype.destroyEvents.apply(this,arguments)},getEventSegs:function(){return ab.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(b){var c=a.grep(b,function(a){return a.event.allDay});return ab.prototype.renderBgSegs.call(this,c)},renderFgSegs:function(b){var c;return b=this.renderFgSegEls(b),c=this.rowStructs=this.renderSegRows(b),this.rowEls.each(function(b,d){a(d).find(".fc-content-skeleton > table").append(c[b].tbodyEl)}),b},destroyFgSegs:function(){for(var a,b=this.rowStructs||[];a=b.pop();)a.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(a){var b,c,d=[];for(b=this.groupSegRows(a),c=0;c<b.length;c++)d.push(this.renderSegRow(c,b[c]));return d},fgSegHtml:function(a,b){var c,d=this.view,e=a.event,f=d.isEventDraggable(e),g=!b&&e.allDay&&a.isEnd&&d.isEventResizable(e),h=this.getSegClasses(a,f,g),i=this.getEventSkinCss(e),j="";h.unshift("fc-day-grid-event"),!e.allDay&&a.isStart&&(j='<span class="fc-time">'+L(this.getEventTimeText(e))+"</span>");var k='<span class="eo-fullcalendar-screen-reader-text screen-reader-text"> '+L(this.getEventTimeText(e,"dddd, MMMM Do YYYY"))+" </span>";return c='<span class="fc-title">'+(L(e.title||"")||"&nbsp;")+"</span>",'<a class="'+h.join(" ")+'"'+(e.url?' href="'+L(e.url)+'"':"")+(i?' style="'+i+'"':"")+'><div class="fc-content">'+(this.isRTL?c+" "+j+k:k+j+" "+c)+"</div>"+(g?'<div class="fc-resizer"/>':"")+"</a>"},renderSegRow:function(b,c){function d(b){for(;b>g;)k=(r[e-1]||[])[g],k?k.attr("rowspan",parseInt(k.attr("rowspan")||1,10)+1):(k=a("<td/>"),h.append(k)),q[e][g]=k,r[e][g]=k,g++}var e,f,g,h,i,j,k,l=this.colCnt,m=this.buildSegLevels(c),n=Math.max(1,m.length),o=a("<tbody/>"),p=[],q=[],r=[];for(e=0;n>e;e++){if(f=m[e],g=0,h=a("<tr/>"),p.push([]),q.push([]),r.push([]),f)for(i=0;i<f.length;i++){for(j=f[i],d(j.leftCol),k=a('<td class="fc-event-container"/>').append(j.el),j.leftCol!=j.rightCol?k.attr("colspan",j.rightCol-j.leftCol+1):r[e][g]=k;g<=j.rightCol;)q[e][g]=k,p[e][g]=j,g++;h.append(k)}d(l),this.bookendCells(h,"eventSkeleton"),o.append(h)}return{row:b,tbodyEl:o,cellMatrix:q,segMatrix:p,segLevels:m,segs:c}},buildSegLevels:function(a){var b,c,d,e=[];for(a.sort(ja),b=0;b<a.length;b++){for(c=a[b],d=0;d<e.length&&la(c,e[d]);d++);c.level=d,(e[d]||(e[d]=[])).push(c)}for(d=0;d<e.length;d++)e[d].sort(ma);return e},groupSegRows:function(a){var b,c=[];for(b=0;b<this.rowCnt;b++)c.push([]);for(b=0;b<a.length;b++)c[a[b].row].push(a[b]);return c}}),bb.mixin({segPopover:null,popoverSegs:null,destroySegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(a){var b,c,d=this.rowStructs||[];for(b=0;b<d.length;b++)this.unlimitRow(b),c=a?"number"==typeof a?a:this.computeRowLevelLimit(b):!1,c!==!1&&this.limitRow(b,c)},computeRowLevelLimit:function(a){var b,c,d=this.rowEls.eq(a),e=d.height(),f=this.rowStructs[a].tbodyEl.children();for(b=0;b<f.length;b++)if(c=f.eq(b).removeClass("fc-limited"),c.position().top+c.outerHeight()>e)return b;return!1},limitRow:function(b,c){function d(d){for(;d>x;)e=u.getCell(b,x),k=u.getCellSegs(e,c),k.length&&(n=g[c-1][x],t=u.renderMoreLink(e,k),s=a("<div/>").append(t),n.append(s),w.push(s[0])),x++}var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u=this,v=this.rowStructs[b],w=[],x=0;if(c&&c<v.segLevels.length){for(f=v.segLevels[c-1],g=v.cellMatrix,h=v.tbodyEl.children().slice(c).addClass("fc-limited").get(),i=0;i<f.length;i++){for(j=f[i],d(j.leftCol),m=[],l=0;x<=j.rightCol;)e=this.getCell(b,x),k=this.getCellSegs(e,c),m.push(k),l+=k.length,x++;if(l){for(n=g[c-1][j.leftCol],o=n.attr("rowspan")||1,p=[],q=0;q<m.length;q++)r=a('<td class="fc-more-cell"/>').attr("rowspan",o),k=m[q],e=this.getCell(b,j.leftCol+q),t=this.renderMoreLink(e,[j].concat(k)),s=a("<div/>").append(t),r.append(s),p.push(r[0]),w.push(r[0]);n.addClass("fc-limited").after(a(p)),h.push(n[0])}}d(this.colCnt),v.moreEls=a(w),v.limitedEls=a(h)}},unlimitRow:function(a){var b=this.rowStructs[a];b.moreEls&&(b.moreEls.remove(),b.moreEls=null),b.limitedEls&&(b.limitedEls.removeClass("fc-limited"),b.limitedEls=null)},renderMoreLink:function(b,c){var d=this,e=this.view;return a('<a class="fc-more"/>').text(this.getMoreLinkText(c.length)).on("click",function(f){var g=e.opt("eventLimitClick"),h=b.start,i=a(this),j=d.getCellDayEl(b),k=d.getCellSegs(b),l=d.resliceDaySegs(k,h),m=d.resliceDaySegs(c,h);"function"==typeof g&&(g=e.trigger("eventLimitClick",null,{date:h,dayEl:j,moreEl:i,segs:l,hiddenSegs:m},f)),"popover"===g?d.showSegPopover(b,i,l):"string"==typeof g&&e.calendar.zoomTo(h,g)})},showSegPopover:function(a,b,c){var d,e,f=this,g=this.view,h=b.parent();d=1==this.rowCnt?g.el:this.rowEls.eq(a.row),e={className:"fc-more-popover",content:this.renderSegPopoverContent(a,c),parentEl:this.el,top:d.offset().top,autoHide:!0,viewportConstrain:g.opt("popoverViewportConstrain"),hide:function(){f.segPopover.destroy(),f.segPopover=null,f.popoverSegs=null}},this.isRTL?e.right=h.offset().left+h.outerWidth()+1:e.left=h.offset().left-1,this.segPopover=new Wa(e),this.segPopover.show()},renderSegPopoverContent:function(b,c){var d,e=this.view,f=e.opt("theme"),g=b.start.format(e.opt("dayPopoverFormat")),h=a('<div class="fc-header '+e.widgetHeaderClass+'"><span class="fc-close '+(f?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+L(g)+'</span><div class="fc-clear"/></div><div class="fc-body '+e.widgetContentClass+'"><div class="fc-event-container"></div></div>'),i=h.find(".fc-event-container");for(c=this.renderFgSegEls(c,!0),this.popoverSegs=c,d=0;d<c.length;d++)c[d].cell=b,i.append(c[d].el);return h},resliceDaySegs:function(b,c){var d=a.map(b,function(a){return a.event}),e=c.clone().stripTime(),f=e.clone().add(1,"days"),g={start:e,end:f};return this.eventsToSegs(d,function(a){var b=x(a,g);return b?[b]:[]})},getMoreLinkText:function(a){var b=this.view.opt("eventLimitText");return"function"==typeof b?b(a):"+"+a+" "+b},getCellSegs:function(a,b){for(var c,d=this.rowStructs[a.row].segMatrix,e=b||0,f=[];e<d.length;)c=d[e][a.col],c&&f.push(c),e++;return f}});var cb=ab.extend({slotDuration:null,snapDuration:null,minTime:null,maxTime:null,axisFormat:null,dayEls:null,slatEls:null,slatTops:null,helperEl:null,businessHourSegs:null,constructor:function(){ab.apply(this,arguments),this.processOptions()},render:function(){this.el.html(this.renderHtml()),this.dayEls=this.el.find(".fc-day"),this.slatEls=this.el.find(".fc-slats tr"),this.computeSlatTops(),this.renderBusinessHours(),ab.prototype.render.call(this)},renderBusinessHours:function(){var a=this.view.calendar.getBusinessHoursEvents();this.businessHourSegs=this.renderFill("businessHours",this.eventsToSegs(a),"bgevent")},renderHtml:function(){return'<div class="fc-bg"><table>'+this.rowHtml("slotBg")+'</table></div><div class="fc-slats"><table>'+this.slatRowHtml()+"</table></div>"},slotBgCellHtml:function(a){return this.bgCellHtml(a)},slatRowHtml:function(){for(var a,c,d,e=this.view,f=this.isRTL,g="",h=this.slotDuration.asMinutes()%15===0,i=b.duration(+this.minTime);i<this.maxTime;)a=this.start.clone().time(i),
4
  c=a.minutes(),d='<td class="fc-axis fc-time '+e.widgetContentClass+'" '+e.axisStyleAttr()+">"+(h&&c?"":"<span>"+L(a.format(this.axisFormat))+"</span>")+"</td>",g+="<tr "+(c?'class="fc-minor"':"")+">"+(f?"":d)+'<td class="'+e.widgetContentClass+'"/>'+(f?d:"")+"</tr>",i.add(this.slotDuration);return g},processOptions:function(){var a=this.view,c=a.opt("slotDuration"),d=a.opt("snapDuration");c=b.duration(c),d=d?b.duration(d):c,this.slotDuration=c,this.snapDuration=d,this.minTime=b.duration(a.opt("minTime")),this.maxTime=b.duration(a.opt("maxTime")),this.axisFormat=a.opt("axisFormat")||a.opt("smallTimeFormat")},computeColHeadFormat:function(){return this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},updateCells:function(){var a,b=this.view,c=[];for(a=this.start.clone();a.isBefore(this.end);)c.push({day:a.clone()}),a.add(1,"day"),a=b.skipHiddenDays(a);this.isRTL&&c.reverse(),this.colData=c,this.colCnt=c.length,this.rowCnt=Math.ceil((this.maxTime-this.minTime)/this.snapDuration)},computeCellRange:function(a){var b=this.computeSnapTime(a.row),c=this.view.calendar.rezoneDate(a.day).time(b),d=c.clone().add(this.snapDuration);return{start:c,end:d}},getColEl:function(a){return this.dayEls.eq(a)},computeSnapTime:function(a){return b.duration(this.minTime+this.snapDuration*a)},rangeToSegs:function(a){var b,c,d,e,f=this.colCnt,g=[];for(a={start:a.start.clone().stripZone(),end:a.end.clone().stripZone()},c=0;f>c;c++)d=this.colData[c].day,e={start:d.clone().time(this.minTime),end:d.clone().time(this.maxTime)},b=x(a,e),b&&(b.col=c,g.push(b));return g},resize:function(){this.computeSlatTops(),this.updateSegVerticals()},computeRowCoords:function(){var a,b,c=this.el.offset().top,d=[];for(a=0;a<this.rowCnt;a++)b={top:c+this.computeTimeTop(this.computeSnapTime(a))},a>0&&(d[a-1].bottom=b.top),d.push(b);return b.bottom=b.top+this.computeTimeTop(this.computeSnapTime(a)),d},computeDateTop:function(a,c){return this.computeTimeTop(b.duration(a.clone().stripZone()-c.clone().stripTime()))},computeTimeTop:function(a){var b,c,d,e,f=(a-this.minTime)/this.slotDuration;return f=Math.max(0,f),f=Math.min(this.slatEls.length,f),b=Math.floor(f),c=f-b,d=this.slatTops[b],c?(e=this.slatTops[b+1],d+(e-d)*c):d},computeSlatTops:function(){var b,c=[];this.slatEls.each(function(d,e){b=a(e).position().top,c.push(b)}),c.push(b+this.slatEls.last().outerHeight()),this.slatTops=c},renderDrag:function(a,b){var c;return b?(this.renderRangeHelper(a,b),c=this.view.opt("dragOpacity"),void 0!==c&&this.helperEl.css("opacity",c),!0):void this.renderHighlight(this.view.calendar.ensureVisibleEventRange(a))},destroyDrag:function(){this.destroyHelper(),this.destroyHighlight()},renderEventResize:function(a,b){this.renderRangeHelper(a,b)},destroyEventResize:function(){this.destroyHelper()},renderHelper:function(b,c){var d,e,f,g,h=this.eventsToSegs([b]);for(h=this.renderFgSegEls(h),d=this.renderSegTable(h),e=0;e<h.length;e++)f=h[e],c&&c.col===f.col&&(g=c.el,f.el.css({left:g.css("left"),right:g.css("right"),"margin-left":g.css("margin-left"),"margin-right":g.css("margin-right")}));this.helperEl=a('<div class="fc-helper-skeleton"/>').append(d).appendTo(this.el)},destroyHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(a){this.view.opt("selectHelper")?this.renderRangeHelper(a):this.renderHighlight(a)},destroySelection:function(){this.destroyHelper(),this.destroyHighlight()},renderFill:function(b,c,d){var e,f,g,h,i,j,k,l,m,n;if(c.length){for(c=this.renderFillSegEls(b,c),e=this.groupSegCols(c),d=d||b.toLowerCase(),f=a('<div class="fc-'+d+'-skeleton"><table><tr/></table></div>'),g=f.find("tr"),h=0;h<e.length;h++)if(i=e[h],j=a("<td/>").appendTo(g),i.length)for(k=a('<div class="fc-'+d+'-container"/>').appendTo(j),l=this.colData[h].day,m=0;m<i.length;m++)n=i[m],k.append(n.el.css({top:this.computeDateTop(n.start,l),bottom:-this.computeDateTop(n.end,l)}));this.bookendCells(g,b),this.el.append(f),this.elsByFill[b]=f}return c}});cb.mixin({eventSkeletonEl:null,renderFgSegs:function(b){return b=this.renderFgSegEls(b),this.el.append(this.eventSkeletonEl=a('<div class="fc-content-skeleton"/>').append(this.renderSegTable(b))),b},destroyFgSegs:function(a){this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null)},renderSegTable:function(b){var c,d,e,f,g,h,i=a("<table><tr/></table>"),j=i.find("tr");for(c=this.groupSegCols(b),this.computeSegVerticals(b),f=0;f<c.length;f++){for(g=c[f],na(g),h=a('<div class="fc-event-container"/>'),d=0;d<g.length;d++)e=g[d],e.el.css(this.generateSegPositionCss(e)),e.bottom-e.top<30&&e.el.addClass("fc-short"),h.append(e.el);j.append(a("<td/>").append(h))}return this.bookendCells(j,"eventSkeleton"),i},updateSegVerticals:function(){var a,b=(this.segs||[]).concat(this.businessHourSegs||[]);for(this.computeSegVerticals(b),a=0;a<b.length;a++)b[a].el.css(this.generateSegVerticalCss(b[a]))},computeSegVerticals:function(a){var b,c;for(b=0;b<a.length;b++)c=a[b],c.top=this.computeDateTop(c.start,c.start),c.bottom=this.computeDateTop(c.end,c.start)},fgSegHtml:function(a,b){var c,d,e,f=this.view,g=a.event,h=f.isEventDraggable(g),i=!b&&a.isEnd&&f.isEventResizable(g),j=this.getSegClasses(a,h,i),k=this.getEventSkinCss(g);return j.unshift("fc-time-grid-event"),f.isMultiDayEvent(g)?(a.isStart||a.isEnd)&&(c=this.getEventTimeText(a),d=this.getEventTimeText(a,"LT"),e=this.getEventTimeText({start:a.start})):(c=this.getEventTimeText(g),d=this.getEventTimeText(g,"LT"),e=this.getEventTimeText({start:g.start})),'<a class="'+j.join(" ")+'"'+(g.url?' href="'+L(g.url)+'"':"")+(k?' style="'+k+'"':"")+'><div class="fc-content">'+(c?'<div class="fc-time" data-start="'+L(e)+'" data-full="'+L(d)+'"><span>'+L(c)+"</span></div>":"")+(g.title?'<div class="fc-title">'+L(g.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(i?'<div class="fc-resizer"/>':"")+"</a>"},generateSegPositionCss:function(a){var b,c,d=this.view.opt("slotEventOverlap"),e=a.backwardCoord,f=a.forwardCoord,g=this.generateSegVerticalCss(a);return d&&(f=Math.min(1,e+2*(f-e))),this.isRTL?(b=1-f,c=e):(b=e,c=1-f),g.zIndex=a.level+1,g.left=100*b+"%",g.right=100*c+"%",d&&a.forwardPressure&&(g[this.isRTL?"marginLeft":"marginRight"]=20),g},generateSegVerticalCss:function(a){return{top:a.top,bottom:-a.bottom}},groupSegCols:function(a){var b,c=[];for(b=0;b<this.colCnt;b++)c.push([]);for(b=0;b<a.length;b++)c[a[b].col].push(a[b]);return c}});var db=Ca.View=ca.extend({type:null,name:null,title:null,calendar:null,options:null,coordMap:null,el:null,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isSelected:!1,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,documentMousedownProxy:null,constructor:function(c,d,e){this.calendar=c,this.options=d,this.type=this.name=e,this.nextDayThreshold=b.duration(this.opt("nextDayThreshold")),this.initTheming(),this.initHiddenDays(),this.documentMousedownProxy=a.proxy(this,"documentMousedown"),this.initialize()},initialize:function(){},opt:function(b){var c;return c=this.options[b],void 0!==c?c:(c=this.calendar.options[b],a.isPlainObject(c)&&!e(b)?y(c,this.type):c)},trigger:function(a,b){var c=this.calendar;return c.trigger.apply(c,[a,b||this].concat(Array.prototype.slice.call(arguments,2),[this]))},setDate:function(a){this.setRange(this.computeRange(a))},setRange:function(b){a.extend(this,b),this.updateTitle()},computeRange:function(a){var c,d,e=b.duration(this.opt("duration")||this.constructor.duration||{days:1}),f=B(e),g=a.clone().startOf(f),h=g.clone().add(e);return/year|month|week|day/.test(f)?(g.stripTime(),h.stripTime()):(g.hasTime()||(g=this.calendar.rezoneDate(g)),h.hasTime()||(h=this.calendar.rezoneDate(h))),c=g.clone(),c=this.skipHiddenDays(c),d=h.clone(),d=this.skipHiddenDays(d,-1,!0),{intervalDuration:e,intervalUnit:f,intervalStart:g,intervalEnd:h,start:c,end:d}},computePrevDate:function(a){return this.massageCurrentDate(a.clone().startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(a){return this.massageCurrentDate(a.clone().startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(a,c){return this.intervalDuration<=b.duration({days:1})&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,c),a.startOf("day")),a},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.intervalStart,end:this.intervalEnd},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.intervalUnit?"YYYY":"month"==this.intervalUnit?this.opt("monthYearFormat"):this.intervalDuration.as("days")>1?"ll":"LL"},formatRange:function(a,b,c){var d=a.end;return d.hasTime()||(d=d.clone().subtract(1)),Z(a.start,d,b,c,this.opt("isRTL"))},renderView:function(){this.render(),this.updateSize(),this.initializeScroll(),this.trigger("viewRender",this,this,this.el),a(document).on(m(),this.documentMousedownProxy)},render:function(){},destroyView:function(){this.unselect(),this.destroyViewEvents(),this.destroy(),this.trigger("viewDestroy",this,this,this.el),a(document).off(m(),this.documentMousedownProxy)},destroy:function(){this.el.empty()},initTheming:function(){var a=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=a+"-widget-header",this.widgetContentClass=a+"-widget-content",this.highlightStateClass=a+"-state-highlight"},updateSize:function(a){a&&this.recordScroll(),this.updateHeight(),this.updateWidth()},updateWidth:function(){},updateHeight:function(){var a=this.calendar;this.setHeight(a.getSuggestedViewHeight(),a.isHeightAuto())},setHeight:function(a,b){},computeScrollerHeight:function(a,b){var c,d;return b=b||this.scrollerEl,c=this.el.add(b),c.css({position:"relative",left:-1}),d=this.el.outerHeight()-b.height(),c.css({position:"",left:""}),a-d},initializeScroll:function(){},recordScroll:function(){this.scrollerEl&&(this.scrollTop=this.scrollerEl.scrollTop())},restoreScroll:function(){null!==this.scrollTop&&this.scrollerEl.scrollTop(this.scrollTop)},renderViewEvents:function(a){this.renderEvents(a),this.eventSegEach(function(a){this.trigger("eventAfterRender",a.event,a.event,a.el)}),this.trigger("eventAfterAllRender")},renderEvents:function(){},destroyViewEvents:function(){this.eventSegEach(function(a){this.trigger("eventDestroy",a.event,a.event,a.el)}),this.destroyEvents()},destroyEvents:function(){},resolveEventEl:function(b,c){var d=this.trigger("eventRender",b,b,c);return d===!1?c=null:d&&d!==!0&&(c=a(d)),c},showEvent:function(a){this.eventSegEach(function(a){a.el.css("visibility","")},a)},hideEvent:function(a){this.eventSegEach(function(a){a.el.css("visibility","hidden")},a)},eventSegEach:function(a,b){var c,d=this.getEventSegs();for(c=0;c<d.length;c++)b&&d[c].event._id!==b._id||a.call(this,d[c])},getEventSegs:function(){return[]},isEventDraggable:function(a){var b=a.source||{};return K(a.startEditable,b.startEditable,this.opt("eventStartEditable"),a.editable,b.editable,this.opt("editable"))},reportEventDrop:function(a,b,c,d){var e=this.calendar,f=e.mutateEvent(a,b),g=function(){f.undo(),e.reportEventChange()};this.triggerEventDrop(a,f.dateDelta,g,c,d),e.reportEventChange()},triggerEventDrop:function(a,b,c,d,e){this.trigger("eventDrop",d[0],a,b,c,e,{})},reportExternalDrop:function(b,c,d,e,f){var g,h,i=b.eventProps;i&&(g=a.extend({},i,c),h=this.calendar.renderEvent(g,b.stick)[0]),this.triggerExternalDrop(h,c,d,e,f)},triggerExternalDrop:function(a,b,c,d,e){this.trigger("drop",c[0],b.start,d,e),a&&this.trigger("eventReceive",null,a)},renderDrag:function(a,b){},destroyDrag:function(){},isEventResizable:function(a){var b=a.source||{};return K(a.durationEditable,b.durationEditable,this.opt("eventDurationEditable"),a.editable,b.editable,this.opt("editable"))},reportEventResize:function(a,b,c,d){var e=this.calendar,f=e.mutateEvent(a,{end:b}),g=function(){f.undo(),e.reportEventChange()};this.triggerEventResize(a,f.durationDelta,g,c,d),e.reportEventChange()},triggerEventResize:function(a,b,c,d,e){this.trigger("eventResize",d[0],a,b,c,e,{})},select:function(a,b){this.unselect(b),this.renderSelection(a),this.reportSelection(a,b)},renderSelection:function(a){},reportSelection:function(a,b){this.isSelected=!0,this.trigger("select",null,a.start,a.end,b)},unselect:function(a){this.isSelected&&(this.isSelected=!1,this.destroySelection(),this.trigger("unselect",null,a))},destroySelection:function(){},documentMousedown:function(b){var c;this.isSelected&&this.opt("unselectAuto")&&w(b)&&(c=this.opt("unselectCancel"),c&&a(b.target).closest(c).length||this.unselect(b))},initHiddenDays:function(){var b,c=this.opt("hiddenDays")||[],d=[],e=0;for(this.opt("weekends")===!1&&c.push(0,6),b=0;7>b;b++)(d[b]=-1!==a.inArray(b,c))||e++;if(!e)throw"invalid hiddenDays";this.isHiddenDayHash=d},isHiddenDay:function(a){return b.isMoment(a)&&(a=a.day()),this.isHiddenDayHash[a]},skipHiddenDays:function(a,b,c){var d=a.clone();for(b=b||1;this.isHiddenDayHash[(d.day()+(c?b:0)+7)%7];)d.add(b,"days");return d},computeDayRange:function(a){var b,c=a.start.clone().stripTime(),d=a.end,e=null;return d&&(e=d.clone().stripTime(),b=+d.time(),b&&b>=this.nextDayThreshold&&e.add(1,"days")),(!d||c>=e)&&(e=c.clone().add(1,"days")),{start:c,end:e}},isMultiDayEvent:function(a){var b=this.computeDayRange(a);return b.end.diff(b.start,"days")>1}});Ca.sourceNormalizers=[],Ca.sourceFetchers=[];var eb={dataType:"json",cache:!1},fb=1,gb=Da.basic=db.extend({dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headRowEl:null,initialize:function(){this.dayGrid=new bb(this),this.coordMap=this.dayGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(a)},computeRange:function(a){var b=db.prototype.computeRange.call(this,a);return/year|month/.test(b.intervalUnit)&&(b.start.startOf("week"),b.start=this.skipHiddenDays(b.start),b.end.weekday()&&(b.end.add(1,"week").startOf("week"),b.end=this.skipHiddenDays(b.end,-1,!0))),b},render:function(){this.dayNumbersVisible=this.dayGrid.rowCnt>1,this.weekNumbersVisible=this.opt("weekNumbers"),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(this.hasRigidRows())},destroy:function(){this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.dayGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){return this.weekNumbersVisible?'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span>"+L(this.opt("weekNumberTitle"))+"</span></th>":void 0},numberIntroHtml:function(a){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.calendar.calculateWeekNumber(this.dayGrid.getCell(a,0).start)+"</span></td>":void 0},dayIntroHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>":void 0},introHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>":void 0},numberCellHtml:function(a){var b,c=a.start;return this.dayNumbersVisible?(b=this.dayGrid.getDayClasses(c),b.unshift("fc-day-number"),'<td class="'+b.join(" ")+'" data-date="'+c.format()+'">'+c.date()+"</td>"):"<td/>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var a=this.opt("eventLimit");return a&&"number"!=typeof a},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=r(this.el.find(".fc-week-number")))},setHeight:function(a,b){var c,d=this.opt("eventLimit");t(this.scrollerEl),h(this.headRowEl),this.dayGrid.destroySegPopover(),d&&"number"==typeof d&&this.dayGrid.limitRows(d),c=this.computeScrollerHeight(a),this.setGridHeight(c,b),d&&"number"!=typeof d&&this.dayGrid.limitRows(d),!b&&s(this.scrollerEl,c)&&(g(this.headRowEl,v(this.scrollerEl)),c=this.computeScrollerHeight(a),this.scrollerEl.height(c),this.restoreScroll())},setGridHeight:function(a,b){b?q(this.dayGrid.rowEls):p(this.dayGrid.rowEls,a,!0)},renderEvents:function(a){this.dayGrid.renderEvents(a),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},destroyEvents:function(){this.recordScroll(),this.dayGrid.destroyEvents()},renderDrag:function(a,b){return this.dayGrid.renderDrag(a,b)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(a){this.dayGrid.renderSelection(a)},destroySelection:function(){this.dayGrid.destroySelection()}});c({fixedWeekCount:!0});var hb=Da.month=gb.extend({computeRange:function(a){var b,c=gb.prototype.computeRange.call(this,a);return this.isFixedWeeks()&&(b=Math.ceil(c.end.diff(c.start,"weeks",!0)),c.end.add(6-b,"weeks")),c},setGridHeight:function(a,b){b=b||"variable"===this.opt("weekMode"),b&&(a*=this.rowCnt/6),p(this.dayGrid.rowEls,a,!b)},isFixedWeeks:function(){var a=this.opt("weekMode");return a?"fixed"===a:this.opt("fixedWeekCount")}});hb.duration={months:1},Da.basicWeek={type:"basic",duration:{weeks:1}},Da.basicDay={type:"basic",duration:{days:1}},c({allDaySlot:!0,allDayText:"all-day",scrollTime:"06:00:00",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0});var ib=5;Da.agenda=db.extend({timeGrid:null,dayGrid:null,axisWidth:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=new cb(this),this.opt("allDaySlot")?(this.dayGrid=new bb(this),this.coordMap=new Ya([this.dayGrid.coordMap,this.timeGrid.coordMap])):this.coordMap=this.timeGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.timeGrid.setRange(a),this.dayGrid&&this.dayGrid.setRange(a)},render:function(){this.el.addClass("fc-agenda-view").html(this.renderHtml()),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.coordMap.containerEl=this.scrollerEl,this.timeGrid.el=this.el.find(".fc-time-grid"),this.timeGrid.render(),this.bottomRuleEl=a('<hr class="'+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},destroy:function(){this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.timeGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="'+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){var a,b,c,d;return this.opt("weekNumbers")?(a=this.timeGrid.getCell(0).start,b=this.calendar.calculateWeekNumber(a),c=this.opt("weekNumberTitle"),d=this.opt("isRTL")?b+c:c+b,'<th class="fc-axis fc-week-number '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"><span>"+L(d)+"</span></th>"):'<th class="fc-axis '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"></th>"},dayIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"><span>"+(this.opt("allDayHtml")||L(this.opt("allDayText")))+"</span></td>"},slotBgIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"></td>"},introHtml:function(){return'<td class="fc-axis" '+this.axisStyleAttr()+"></td>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(a){a&&this.timeGrid.resize(),db.prototype.updateSize.call(this,a)},updateWidth:function(){this.axisWidth=r(this.el.find(".fc-axis"))},setHeight:function(a,b){var c,d;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),t(this.scrollerEl),h(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.destroySegPopover(),c=this.opt("eventLimit"),c&&"number"!=typeof c&&(c=ib),c&&this.dayGrid.limitRows(c)),b||(d=this.computeScrollerHeight(a),s(this.scrollerEl,d)?(g(this.noScrollRowEls,v(this.scrollerEl)),d=this.computeScrollerHeight(a),this.scrollerEl.height(d),this.restoreScroll()):(this.scrollerEl.height(d).css("overflow","hidden"),this.bottomRuleEl.show()))},initializeScroll:function(){function a(){c.scrollerEl.scrollTop(e)}var c=this,d=b.duration(this.opt("scrollTime")),e=this.timeGrid.computeTimeTop(d);e=Math.ceil(e),e&&e++,a(),setTimeout(a,0)},renderEvents:function(a){var b,c,d=[],e=[],f=[];for(c=0;c<a.length;c++)a[c].allDay?d.push(a[c]):e.push(a[c]);b=this.timeGrid.renderEvents(e),this.dayGrid&&(f=this.dayGrid.renderEvents(d)),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},destroyEvents:function(){this.recordScroll(),this.timeGrid.destroyEvents(),this.dayGrid&&this.dayGrid.destroyEvents()},renderDrag:function(a,b){return a.start.hasTime()?this.timeGrid.renderDrag(a,b):this.dayGrid?this.dayGrid.renderDrag(a,b):void 0},destroyDrag:function(){this.timeGrid.destroyDrag(),this.dayGrid&&this.dayGrid.destroyDrag()},renderSelection:function(a){a.start.hasTime()||a.end.hasTime()?this.timeGrid.renderSelection(a):this.dayGrid&&this.dayGrid.renderSelection(a)},destroySelection:function(){this.timeGrid.destroySelection(),this.dayGrid&&this.dayGrid.destroySelection()}}),Da.agendaWeek={type:"agenda",duration:{weeks:1}},Da.agendaDay={type:"agenda",duration:{days:1}};var jb=Da.list=db.extend({dayGrid:null,weekNumberWidth:null,headRowEl:null,defultEventLimit:5,viewDateOnLeft:!1,initialize:function(){this.dayGrid=new bb(this),this.coordMap=this.dayGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(a)},render:function(){this.dayGrid.colCnt=1,this.dayGrid.rowCnt=this.dayGrid.cellDates.length,this.dayGrid.numbersVisible=!0,this.opt("viewDateOnLeft")?(this.viewDateOnLeft=this.opt("viewDateOnLeft"),this.el.removeClass("fc-display-date-above")):this.el.addClass("fc-display-date-above"),this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(this.hasRigidRows()),db.prototype.render.call(this)},destroy:function(){this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><tbody><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){return this.viewDateOnLeft===!0?'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span></span></th>":""},numberIntroHtml:function(a){return this.viewDateOnLeft===!0?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.dayGrid.getCell(a,0).start.format("ddd MMM D, YYYY")+"</span></td>":""},dayIntroHtml:function(){return this.viewDateOnLeft===!0?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>":""},introHtml:function(){return this.viewDateOnLeft===!0?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>":""},numberCellHtml:function(a){if(this.viewDateOnLeft===!0)return"<td/>";var b,c=a.start;return b=this.dayGrid.getDayClasses(c),b.unshift("fc-day-number"),'<td class="'+b.join(" ")+'" data-date="'+c.format()+'"><span class="fc-list-header-left">'+c.format("dddd")+'</span><span class="fc-list-header-right">'+c.format("MMM D")+"</span></td>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var a=this.opt("eventLimit");return a===!0&&(a=this.defultEventLimit),a&&"number"!=typeof a},updateWidth:function(){this.weekNumberWidth=r(this.el.find(".fc-week-number"))},setHeight:function(a,b){var c=this.opt("eventLimit");c===!0&&(c=this.defultEventLimit);var d;t(this.scrollerEl),h(this.headRowEl),this.dayGrid.destroySegPopover(),c&&"number"==typeof c&&this.dayGrid.limitRows(c),d=this.computeScrollerHeight(a),this.setGridHeight(d,b),c&&"number"!=typeof c&&this.dayGrid.limitRows(c),!b&&s(this.scrollerEl,d)&&(g(this.headRowEl,v(this.scrollerEl)),d=this.computeScrollerHeight(a),this.scrollerEl.height(d),this.restoreScroll())},setGridHeight:function(a,b){b?q(this.dayGrid.rowEls):p(this.dayGrid.rowEls,a,!0)},renderEvents:function(a){this.dayGrid.renderEvents(a),this.updateHeight(),db.prototype.renderEvents.call(this,a)},getSegs:function(){return this.dayGrid.getSegs()},destroyEvents:function(){db.prototype.destroyEvents.call(this),this.recordScroll(),this.dayGrid.destroyEvents()},renderDrag:function(a,b,c){return this.dayGrid.renderDrag(a,b,c)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(a,b){this.dayGrid.renderSelection(a,b)},destroySelection:function(){this.dayGrid.destroySelection()}});jb.duration={months:1},Da.listMonth={type:"list",duration:{months:1}},Da.listWeek={type:"list",duration:{weeks:1}},Da.listDay={type:"list",duration:{days:1}}});
js/jquery-ui-eo-timepicker.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  !function($){function eoTimepicker(){this.debug=!0,this._curInst=null,this._disabledInputs=[],this._timepickerShowing=!1,this._inDialog=!1,this._dialogClass="ui-timepicker-dialog",this._mainDivId="ui-timepicker-div",this._inlineClass="ui-timepicker-inline",this._currentClass="ui-timepicker-current",this._dayOverClass="ui-timepicker-days-cell-over",this.regional=[],this.regional[""]={hourText:"Hour",minuteText:"Minute",amPmText:["AM","PM"],closeButtonText:"Done",nowButtonText:"Now",deselectButtonText:"Deselect"},this._defaults={showOn:"focus",button:null,showAnim:"fadeIn",showOptions:{},appendText:"",beforeShow:null,onSelect:null,onClose:null,timeSeparator:":",periodSeparator:" ",showPeriod:!1,showPeriodLabels:!0,showLeadingZero:!0,showMinutesLeadingZero:!0,altField:"",defaultTime:"now",myPosition:"left top",atPosition:"left bottom",onHourShow:null,onMinuteShow:null,hours:{starts:0,ends:23},minutes:{starts:0,ends:55,interval:5,manual:[]},rows:4,showHours:!0,showMinutes:!0,optionalMinutes:!1,showCloseButton:!1,showNowButton:!1,showDeselectButton:!1,maxTime:{hour:null,minute:null},minTime:{hour:null,minute:null}},$.extend(this._defaults,this.regional[""]),this.tpDiv=$('<div id="'+this._mainDivId+'" class="ui-timepicker ui-widget ui-helper-clearfix ui-corner-all " style="display: none"></div>')}function extendRemove(a,b){$.extend(a,b);for(var c in b)(null==b[c]||void 0==b[c])&&(a[c]=b[c]);return a}$.extend($.ui,{eotimepicker:{version:"0.3.3"}});var PROP_NAME="eotimepicker",tpuuid=(new Date).getTime();$.extend(eoTimepicker.prototype,{markerClassName:"hasTimepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetTimepicker:function(){return this.tpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachTimepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("time:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="tp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?(this._connectTimepicker(target,inst),this._setTimeFromField(inst)):inline&&this._inlineTimepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,inline:b,tpDiv:b?$('<div class="'+this._inlineClass+' ui-timepicker ui-widget ui-helper-clearfix"></div>'):this.tpDiv}},_connectTimepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]),c.hasClass(this.markerClassName)||(this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keyup(this._doKeyUp).bind("setData.eotimepicker",function(a,c,d){b.settings[c]=d}).bind("getData.eotimepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b))},_getHours:function(a){var b=Array(),c=this._get(a,"hours");for(h=c.starts;h<=c.ends;h++)b.push(h);return b},_getMinutes:function(a){var b=this._get(a,"minutes"),c=Array();for(b.starts||(b.starts=0),b.ends||(b.ends=59),b.manual||(b.manual=[]),m=b.starts;m<=b.ends;m+=b.interval)c.push(m);for(i=0;i<b.manual.length;i++){var d=b.manual[i];"number"!=typeof d||0>d||d>59||$.inArray(d,c)>=0||c.push(d)}return c.sort(function(a,b){return a-b}),c},_modulo:function(a,b){return(a%b+b)%b},_doKeyDown:function(a){var b=$.eotimepicker._getInst(a.target),c=!0;if(b._keyEvent=!0,$.eotimepicker._timepickerShowing){var d=a.ctrlKey||a.metaKey,e=a.shiftKey,f=$.eotimepicker._getHours(b),g=$.eotimepicker._getMinutes(b),h=$.eotimepicker._get(b,"rows"),i=Math.ceil(f.length/h),j=Math.round(g.length/h+.49);switch(a.keyCode){case 9:$.eotimepicker._hideTimepicker(),c=!1;break;case 13:return b.hours=b.hlHours,b.minutes=b.hlMinutes,$.eotimepicker._updateSelectedValue(b),$.eotimepicker._hideTimepicker(),!1;case 27:$.eotimepicker._hideTimepicker();break;case 37:c=d||e,e?$.eotimepicker._moveHighlight(b,-1,"minute"):d&&$.eotimepicker._moveHighlight(b,-1,"hour");break;case 38:c=d||e,e?$.eotimepicker._moveHighlight(b,-j,"minute"):d&&$.eotimepicker._moveHighlight(b,-i,"hour");break;case 39:c=d||e,e?$.eotimepicker._moveHighlight(b,1,"minute"):d&&$.eotimepicker._moveHighlight(b,1,"hour");break;case 40:c=d||e,e?$.eotimepicker._moveHighlight(b,j,"minute"):d&&$.eotimepicker._moveHighlight(b,i,"hour");break;default:c=!1}}else 36==a.keyCode&&a.ctrlKey?$.eotimepicker._showTimepicker(this):c=!1;c&&(a.preventDefault(),a.stopPropagation())},_moveHighlight:function(a,b,c){var d=this._getMinutes(a),e=this._getHours(a),f=this._get(a,"maxTime"),g=this._get(a,"minTime");if("hour"==c.toLowerCase()){var h=$.inArray(a.hlHours,e);a.hlHours=e[this._modulo(h+b,e.length)]}else{var h=$.inArray(a.hlMinutes,d);a.hlMinutes=d[this._modulo(h+b,d.length)]}g.hour&&(a.hlHours=Math.max(a.hlHours,g.hour)),f.hour&&(a.hlHours=Math.min(a.hlHours,f.hour)),g.minute&&a.hlHours<=g.hour&&(a.hlMinutes=Math.max(a.hlMinutes,g.minute)),f.minute&&a.hlHours>=f.hour&&(a.hlMinutes=Math.min(a.hlMinutes,f.minute))},_doKeyUp:function(a){var b=$.eotimepicker._getInst(a.target);$.eotimepicker._setTimeFromField(b),$.eotimepicker._updateTimepicker(b)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$('<span class="'+this._appendClass+'">'+c+"</span>"),a[d?"before":"after"](b.append)),a.unbind("focus.eotimepicker",this._showTimepicker),a.unbind("click.eotimepicker",this._adjustZIndex),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");if(("focus"==e||"both"==e)&&(a.bind("focus.eotimepicker",this._showTimepicker),a.bind("click.eotimepicker",this._adjustZIndex)),"button"==e||"both"==e){var f=this._get(b,"button");null==f&&(f=$('<button class="ui-timepicker-trigger" type="button">...</button>'),a.after(f)),$(f).bind("click.eotimepicker",function(){return $.eotimepicker._timepickerShowing&&$.eotimepicker._lastInput==a[0]?$.eotimepicker._hideTimepicker():b.input.is(":disabled")||$.eotimepicker._showTimepicker(a[0]),!1})}},_inlineTimepicker:function(a,b){var c=$(a);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(b.tpDiv).bind("setData.eotimepicker",function(a,c,d){b.settings[c]=d}).bind("getData.eotimepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setTimeFromField(b),this._updateTimepicker(b),b.tpDiv.show())},_adjustZIndex:function(a){a=a.target||a;var b=$.eotimepicker._getInst(a);b.tpDiv.css("zIndex",$.eotimepicker._getZIndex(a)+1)},_showTimepicker:function(a){if(a=a.target||a,"input"!=a.nodeName.toLowerCase()&&(a=$("input",a.parentNode)[0]),!$.eotimepicker._isDisabledTimepicker(a)&&$.eotimepicker._lastInput!=a){$.eotimepicker._hideTimepicker();var b=$.eotimepicker._getInst(a);$.eotimepicker._curInst&&$.eotimepicker._curInst!=b&&$.eotimepicker._curInst.tpDiv.stop(!0,!0);var c=$.eotimepicker._get(b,"beforeShow");extendRemove(b.settings,c?c.apply(a,[a,b]):{}),b.lastVal=null,$.eotimepicker._lastInput=a,$.eotimepicker._setTimeFromField(b),b.hlMinutes=b.minutes,b.hlHours=b.hours,$.eotimepicker._inDialog&&(a.value=""),$.eotimepicker._pos||($.eotimepicker._pos=$.eotimepicker._findPos(a),$.eotimepicker._pos[1]+=a.offsetHeight);var d=!1;$(a).parents().each(function(){return d|="fixed"==$(this).css("position"),!d});var e={left:$.eotimepicker._pos[0],top:$.eotimepicker._pos[1]};if($.eotimepicker._pos=null,b.tpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.eotimepicker._updateTimepicker(b),!b.inline&&"object"==typeof $.ui.position){b.tpDiv.position({of:b.input,my:$.eotimepicker._get(b,"myPosition"),at:$.eotimepicker._get(b,"atPosition"),collision:"flip"});var e=b.tpDiv.offset();$.eotimepicker._pos=[e.top,e.left]}if(b._hoursClicked=!1,b._minutesClicked=!1,e=$.eotimepicker._checkOffset(b,e,d),b.tpDiv.css({position:$.eotimepicker._inDialog&&$.blockUI?"static":d?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"}),!b.inline){var f=$.eotimepicker._get(b,"showAnim"),g=$.eotimepicker._get(b,"duration"),h=function(){$.eotimepicker._timepickerShowing=!0;var a=$.eotimepicker._getBorders(b.tpDiv);b.tpDiv.find("iframe.ui-timepicker-cover").css({left:-a[0],top:-a[1],width:b.tpDiv.outerWidth(),height:b.tpDiv.outerHeight()})};$.eotimepicker._adjustZIndex(a),$.effects&&$.effects[f]?b.tpDiv.show(f,$.eotimepicker._get(b,"showOptions"),g,h):b.tpDiv.show(f?g:null,h),f&&g||h(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.eotimepicker._curInst=b}}},_getZIndex:function(a){for(var b,c,d=$(a),e=0;d.length&&d[0]!==document;)b=d.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(d.css("zIndex"),10),isNaN(c)||0===c||c>e&&(e=c)),d=d.parent();return e},_refreshTimepicker:function(a){var b=this._getInst(a);b&&this._updateTimepicker(b)},_updateTimepicker:function(a){a.tpDiv.empty().append(this._generateHTML(a)),this._rebindDialogEvents(a)},_rebindDialogEvents:function(a){var b=$.eotimepicker._getBorders(a.tpDiv),c=this;a.tpDiv.find("iframe.ui-timepicker-cover").css({left:-b[0],top:-b[1],width:a.tpDiv.outerWidth(),height:a.tpDiv.outerHeight()}).end().find(".ui-timepicker-minute-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.eotimepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.eotimepicker.selectMinutes,this)).end().find(".ui-timepicker-hour-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.eotimepicker.selectHours,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.eotimepicker.selectHours,this)).end().find(".ui-timepicker td a").unbind().bind("mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).removeClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).removeClass("ui-timepicker-next-hover")}).bind("mouseover",function(){c._isDisabledTimepicker(a.inline?a.tpDiv.parent()[0]:a.input[0])||($(this).parents(".ui-timepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).addClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).addClass("ui-timepicker-next-hover"))}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end().find(".ui-timepicker-now").bind("click",function(a){$.eotimepicker.selectNow(a)}).end().find(".ui-timepicker-deselect").bind("click",function(a){$.eotimepicker.deselectTime(a)}).end().find(".ui-timepicker-close").bind("click",function(a){$.eotimepicker._hideTimepicker()}).end()},_generateHTML:function(a){var b,c,d,e=1==this._get(a,"showPeriod"),f=1==this._get(a,"showPeriodLabels"),g=1==this._get(a,"showLeadingZero"),h=1==this._get(a,"showHours"),i=1==this._get(a,"showMinutes"),j=this._get(a,"amPmText"),k=this._get(a,"rows"),l=0,m=0,n=0,o=0,p=0,q=0,r=Array(),s=null,t=0,u=this._get(a,"hourText"),v=this._get(a,"showCloseButton"),w=this._get(a,"closeButtonText"),x=this._get(a,"showNowButton"),y=this._get(a,"nowButtonText"),z=this._get(a,"showDeselectButton"),A=this._get(a,"deselectButtonText"),B=v||x||z;if(r=this._getHours(a),s=Math.ceil(r.length/k),f){for(t=0;t<r.length;t++)r[t]<12?n++:o++;t=0,l=Math.floor(n/r.length*k),m=Math.floor(o/r.length*k),k!=l+m&&(n&&(!o||!l||m&&n/l>=o/m)?l++:m++),p=Math.min(l,1),q=l+1,s=0==l?Math.ceil(o/m):0==m?Math.ceil(n/l):Math.ceil(Math.max(n/l,o/m))}if(d='<table class="ui-timepicker-table ui-widget-content ui-corner-all"><tr>',h){for(d+='<td class="ui-timepicker-hours"><div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+u+'</div><table class="ui-timepicker">',b=1;k>=b;b++){for(d+="<tr>",b==p&&f&&(d+='<th rowspan="'+l.toString()+'" class="periods" scope="row">'+j[0]+"</th>"),b==q&&f&&(d+='<th rowspan="'+m.toString()+'" class="periods" scope="row">'+j[1]+"</th>"),c=1;s>=c;c++)f&&q>b&&r[t]>=12?d+=this._generateHTMLHourCell(a,void 0,e,g):(d+=this._generateHTMLHourCell(a,r[t],e,g),t++);d+="</tr>"}d+="</table></td>"}if(i&&(d+='<td class="ui-timepicker-minutes">',d+=this._generateHTMLMinutes(a),d+="</td>"),d+="</tr>",B){var C='<tr><td colspan="3"><div class="ui-timepicker-buttonpane ui-widget-content">';x&&(C+='<button type="button" class="ui-timepicker-now ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+y+"</button>"),z&&(C+='<button type="button" class="ui-timepicker-deselect ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+A+"</button>"),v&&(C+='<button type="button" class="ui-timepicker-close ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+w+"</button>"),d+=C+"</div></td></tr>"}return d+="</table>"},_updateMinuteDisplay:function(a){var b=this._generateHTMLMinutes(a);a.tpDiv.find("td.ui-timepicker-minutes").html(b),this._rebindDialogEvents(a)},_generateHTMLMinutes:function(a){var b,c,d="",e=this._get(a,"rows"),f=Array(),g=null,h=0,i=1==this._get(a,"showMinutesLeadingZero"),j=this._get(a,"onMinuteShow"),k=this._get(a,"minuteText");if(f=this._getMinutes(a),g=Math.round(f.length/e+.49),j&&0==j.apply(a.input?a.input[0]:null,[a.hours,a.minutes]))for(h=0;h<f.length;h+=1)if(b=f[h],j.apply(a.input?a.input[0]:null,[a.hours,b])){a.minutes=b;break}for(d+='<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+k+'</div><table class="ui-timepicker">',h=0,c=1;e>=c;c++){for(d+="<tr>";c*g>h;){var b=f[h],l="";void 0!==b&&(l=10>b&&i?"0"+b.toString():b.toString()),d+=this._generateHTMLMinuteCell(a,b,l),h++}d+="</tr>"}return d+="</table>"},_generateHTMLHourCell:function(a,b,c,d){var e=b;b>12&&c&&(e=b-12),0==e&&c&&(e=12),10>e&&d&&(e="0"+e);var f="",g=!0,h=this._get(a,"onHourShow"),i=this._get(a,"maxTime"),j=this._get(a,"minTime");return void 0==b?f='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(h&&(g=h.apply(a.input?a.input[0]:null,[b])),g&&(!isNaN(parseInt(i.hour))&&b>i.hour&&(g=!1),!isNaN(parseInt(j.hour))&&b<j.hour&&(g=!1)),f=g?'<td class="ui-timepicker-hour-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-hour="'+b.toString()+'"><a href="#" class="ui-state-default '+(b==a.hours?"ui-state-active":"")+" "+(b==a.hlHours?"ui-state-hover":"")+'">'+e.toString()+"</a></td>":'<td><span class="ui-state-default ui-state-disabled '+(b==a.hours?" ui-state-active ":" ")+'">'+e.toString()+"</span></td>")},_generateHTMLMinuteCell:function(a,b,c){var d="",e=!0,f=a.hlHours,g=this._get(a,"onMinuteShow"),h=this._get(a,"maxTime"),i=this._get(a,"minTime");return g&&(e=g.apply(a.input?a.input[0]:null,[a.hours,b])),void 0==b?d='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(e&&null!==f&&(!isNaN(parseInt(h.hour))&&!isNaN(parseInt(h.minute))&&f>=h.hour&&b>h.minute&&(e=!1),!isNaN(parseInt(i.hour))&&!isNaN(parseInt(i.minute))&&f<=i.hour&&b<i.minute&&(e=!1)),d=e?'<td class="ui-timepicker-minute-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-minute="'+b.toString()+'" ><a href="#" class="ui-state-default '+(b==a.minutes?"ui-state-active":"")+" "+(b==a.hlMinutes?"ui-state-hover":"")+'" >'+c+"</a></td>":'<td><span class="ui-state-default ui-state-disabled" >'+c+"</span></td>")},_destroyTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),"input"==d?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus.eotimepicker",this._showTimepicker).unbind("click.eotimepicker",this._adjustZIndex)):("div"==d||"span"==d)&&b.removeClass(this.markerClassName).empty()}},_enableTimepicker:function(a){var b=$(a),c=b.attr("id"),d=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if("input"==e){a.disabled=!1;var f=this._get(d,"button");$(f).removeClass("ui-state-disabled").disabled=!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end()}else if("div"==e||"span"==e){var g=b.children("."+this._inlineClass);g.children().removeClass("ui-state-disabled"),g.find("button").each(function(){this.disabled=!1})}this._disabledInputs=$.map(this._disabledInputs,function(a){return a==c?null:a})}},_disableTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();if("input"==d){var e=this._get(c,"button");$(e).addClass("ui-state-disabled").disabled=!0,a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end()}else if("div"==d||"span"==d){var f=b.children("."+this._inlineClass);f.children().addClass("ui-state-disabled"),f.find("button").each(function(){this.disabled=!0})}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=b.attr("id")}},_isDisabledTimepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_checkOffset:function(a,b,c){var d=a.tpDiv.outerWidth(),e=a.tpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+$(document).scrollLeft(),i=document.documentElement.clientHeight+$(document).scrollTop();return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){for(var b=this._getInst(a),c=this._get(b,"isRTL");a&&("hidden"==a.type||1!=a.nodeType);)a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkExternalClick:function(a){if($.eotimepicker._curInst){var b=$(a.target);b[0].id==$.eotimepicker._mainDivId||0!=b.parents("#"+$.eotimepicker._mainDivId).length||b.hasClass($.eotimepicker.markerClassName)||b.hasClass($.eotimepicker._triggerClass)||!$.eotimepicker._timepickerShowing||$.eotimepicker._inDialog&&$.blockUI||$.eotimepicker._hideTimepicker()}},_hideTimepicker:function(a){var b=this._curInst;if(b&&(!a||b==$.data(a,PROP_NAME))&&this._timepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.eotimepicker._tidyDialog(b),this._curInst=null};$.effects&&$.effects[c]?b.tpDiv.hide(c,$.eotimepicker._get(b,"showOptions"),d,e):b.tpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?d:null,e),c||e(),this._timepickerShowing=!1,this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.tpDiv))),this._inDialog=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])}},_tidyDialog:function(a){a.tpDiv.removeClass(this._dialogClass).unbind(".ui-timepicker")},_getInst:function(a){try{return $.data(a,PROP_NAME)}catch(b){throw"Missing instance data for this timepicker"}},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setTimeFromField:function(a){if(a.input.val()!=a.lastVal){var b=this._get(a,"defaultTime"),c="now"==b?this._getCurrentTimeRounded(a):b;if(0==a.inline&&""!=a.input.val()&&(c=a.input.val()),c instanceof Date)a.hours=c.getHours(),a.minutes=c.getMinutes();else{var d=a.lastVal=c;if(""==c)a.hours=-1,a.minutes=-1;else{var e=this.parseTime(a,d);a.hours=e.hours,a.minutes=e.minutes}}$.eotimepicker._updateTimepicker(a)}},_optionTimepicker:function(a,b,c){var d=this._getInst(a);if(2==arguments.length&&"string"==typeof b)return"defaults"==b?$.extend({},$.eotimepicker._defaults):d?"all"==b?$.extend({},d.settings):this._get(d,b):null;var e=b||{};"string"==typeof b&&(e={},e[b]=c),d&&(extendRemove(d.settings,e),this._curInst==d&&(this._hideTimepicker(),this._updateTimepicker(d)),d.inline&&this._updateTimepicker(d))},_setTimeTimepicker:function(a,b){var c=this._getInst(a);c&&(this._setTime(c,b),this._updateTimepicker(c),this._updateAlternate(c,b))},_setTime:function(a,b,c){var d=a.hours,e=a.minutes;if(b instanceof Date)a.hours=b.getHours(),a.minutes=b.getMinutes();else{var b=this.parseTime(a,b);a.hours=b.hours,a.minutes=b.minutes}d==a.hours&&e==a.minutes||c||a.input.trigger("change"),this._updateTimepicker(a),this._updateSelectedValue(a)},_getCurrentTimeRounded:function(a){var b=new Date,c=b.getMinutes(),d=this._get(a,"minutes"),e=Math.round(c/d.interval)*d.interval;return b.setMinutes(e),b},parseTime:function(a,b){var c=new Object;if(c.hours=-1,c.minutes=-1,!b)return"";var d=this._get(a,"timeSeparator"),e=this._get(a,"amPmText"),f=this._get(a,"showHours"),g=this._get(a,"showMinutes"),h=this._get(a,"optionalMinutes"),i=1==this._get(a,"showPeriod"),j=b.indexOf(d);if(-1!=j?(c.hours=parseInt(b.substr(0,j),10),c.minutes=parseInt(b.substr(j+1),10)):!f||g&&!h?!f&&g&&(c.minutes=parseInt(b,10)):c.hours=parseInt(b,10),f){var k=b.toUpperCase();c.hours<12&&i&&-1!=k.indexOf(e[1].toUpperCase())&&(c.hours+=12),12==c.hours&&i&&-1!=k.indexOf(e[0].toUpperCase())&&(c.hours=0)}return c},selectNow:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]),e=new Date;d.hours=e.getHours(),d.minutes=e.getMinutes(),this._updateSelectedValue(d),this._updateTimepicker(d),this._hideTimepicker()},deselectTime:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]);d.hours=-1,d.minutes=-1,this._updateSelectedValue(d),this._hideTimepicker()},selectHours:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-hour")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showMinutes");if($.eotimepicker._isDisabledTimepicker(f.attr("id")))return!1;b.parents(".ui-timepicker-hours:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.hours=d;var i=this._get(g,"onMinuteShow"),j=this._get(g,"maxTime"),k=this._get(g,"minTime");return(i||j.minute||k.minute)&&this._updateMinuteDisplay(g),this._updateSelectedValue(g),g._hoursClicked=!0,(g._minutesClicked||e||0==h)&&$.eotimepicker._hideTimepicker(),!1},selectMinutes:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-minute")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showHours");return $.eotimepicker._isDisabledTimepicker(f.attr("id"))?!1:(b.parents(".ui-timepicker-minutes:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.minutes=d,this._updateSelectedValue(g),g._minutesClicked=!0,g._hoursClicked||e||0==h?($.eotimepicker._hideTimepicker(),!1):!1)},_updateSelectedValue:function(a){var b=this._getParsedTime(a);a.input&&(a.input.val(b),a.input.trigger("change"));var c=this._get(a,"onSelect");return c&&c.apply(a.input?a.input[0]:null,[b,a]),this._updateAlternate(a,b),b},_getParsedTime:function(a){if(-1==a.hours&&-1==a.minutes)return"";(a.hours<a.hours.starts||a.hours>a.hours.ends)&&(a.hours=0),(a.minutes<a.minutes.starts||a.minutes>a.minutes.ends)&&(a.minutes=0);var b="",c=1==this._get(a,"showPeriod"),d=1==this._get(a,"showLeadingZero"),e=1==this._get(a,"showHours"),f=1==this._get(a,"showMinutes"),g=1==this._get(a,"optionalMinutes"),h=this._get(a,"amPmText"),i=a.hours?a.hours:0,j=a.minutes?a.minutes:0,k=i?i:0,l="";-1==k&&(k=0),-1==j&&(j=0),c&&(0==a.hours&&(k=12),a.hours<12?b=h[0]:(b=h[1],k>12&&(k-=12)));var m=k.toString();d&&10>k&&(m="0"+m);var n=j.toString();return 10>j&&(n="0"+n),e&&(l+=m),!e||!f||g&&0==n||(l+=this._get(a,"timeSeparator")),!f||g&&0==n||(l+=n),e&&b.length>0&&(l+=this._get(a,"periodSeparator")+b),l},_updateAlternate:function(a,b){var c=this._get(a,"altField");c&&$(c).each(function(a,c){$(c).val(b)})},_getTimeAsDateTimepicker:function(a){var b=this._getInst(a);return-1==b.hours&&-1==b.minutes?"":((b.hours<b.hours.starts||b.hours>b.hours.ends)&&(b.hours=0),(b.minutes<b.minutes.starts||b.minutes>b.minutes.ends)&&(b.minutes=0),new Date(0,0,0,b.hours,b.minutes,0))},_getTimeTimepicker:function(a){var b=this._getInst(a);return this._getParsedTime(b)},_getHourTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.hours},_getMinuteTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.minutes}}),$.fn.eotimepicker=function(a){$.eotimepicker.initialized||($(document).mousedown($.eotimepicker._checkExternalClick),$.eotimepicker.initialized=!0),0===$("#"+$.eotimepicker._mainDivId).length&&$("body").append($.eotimepicker.tpDiv);var b=Array.prototype.slice.call(arguments,1);return"string"!=typeof a||"getTime"!=a&&"getTimeAsDate"!=a&&"getHour"!=a&&"getMinute"!=a?"option"==a&&2==arguments.length&&"string"==typeof arguments[1]?$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this[0]].concat(b)):this.each(function(){"string"==typeof a?$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this].concat(b)):$.eotimepicker._attachTimepicker(this,a)}):$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this[0]].concat(b))},$.eotimepicker=new eoTimepicker,$.eotimepicker.initialized=!1,$.eotimepicker.uuid=(new Date).getTime(),$.eotimepicker.version="0.3.3",window["TP_jQuery_"+tpuuid]=$}(jQuery);
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
  !function($){function eoTimepicker(){this.debug=!0,this._curInst=null,this._disabledInputs=[],this._timepickerShowing=!1,this._inDialog=!1,this._dialogClass="ui-timepicker-dialog",this._mainDivId="ui-timepicker-div",this._inlineClass="ui-timepicker-inline",this._currentClass="ui-timepicker-current",this._dayOverClass="ui-timepicker-days-cell-over",this.regional=[],this.regional[""]={hourText:"Hour",minuteText:"Minute",amPmText:["AM","PM"],closeButtonText:"Done",nowButtonText:"Now",deselectButtonText:"Deselect"},this._defaults={showOn:"focus",button:null,showAnim:"fadeIn",showOptions:{},appendText:"",beforeShow:null,onSelect:null,onClose:null,timeSeparator:":",periodSeparator:" ",showPeriod:!1,showPeriodLabels:!0,showLeadingZero:!0,showMinutesLeadingZero:!0,altField:"",defaultTime:"now",myPosition:"left top",atPosition:"left bottom",onHourShow:null,onMinuteShow:null,hours:{starts:0,ends:23},minutes:{starts:0,ends:55,interval:5,manual:[]},rows:4,showHours:!0,showMinutes:!0,optionalMinutes:!1,showCloseButton:!1,showNowButton:!1,showDeselectButton:!1,maxTime:{hour:null,minute:null},minTime:{hour:null,minute:null}},$.extend(this._defaults,this.regional[""]),this.tpDiv=$('<div id="'+this._mainDivId+'" class="ui-timepicker ui-widget ui-helper-clearfix ui-corner-all " style="display: none"></div>')}function extendRemove(a,b){$.extend(a,b);for(var c in b)(null==b[c]||void 0==b[c])&&(a[c]=b[c]);return a}$.extend($.ui,{eotimepicker:{version:"0.3.3"}});var PROP_NAME="eotimepicker",tpuuid=(new Date).getTime();$.extend(eoTimepicker.prototype,{markerClassName:"hasTimepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetTimepicker:function(){return this.tpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachTimepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("time:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="tp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?(this._connectTimepicker(target,inst),this._setTimeFromField(inst)):inline&&this._inlineTimepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,inline:b,tpDiv:b?$('<div class="'+this._inlineClass+' ui-timepicker ui-widget ui-helper-clearfix"></div>'):this.tpDiv}},_connectTimepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]),c.hasClass(this.markerClassName)||(this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keyup(this._doKeyUp).bind("setData.eotimepicker",function(a,c,d){b.settings[c]=d}).bind("getData.eotimepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b))},_getHours:function(a){var b=Array(),c=this._get(a,"hours");for(h=c.starts;h<=c.ends;h++)b.push(h);return b},_getMinutes:function(a){var b=this._get(a,"minutes"),c=Array();for(b.starts||(b.starts=0),b.ends||(b.ends=59),b.manual||(b.manual=[]),m=b.starts;m<=b.ends;m+=b.interval)c.push(m);for(i=0;i<b.manual.length;i++){var d=b.manual[i];"number"!=typeof d||0>d||d>59||$.inArray(d,c)>=0||c.push(d)}return c.sort(function(a,b){return a-b}),c},_modulo:function(a,b){return(a%b+b)%b},_doKeyDown:function(a){var b=$.eotimepicker._getInst(a.target),c=!0;if(b._keyEvent=!0,$.eotimepicker._timepickerShowing){var d=a.ctrlKey||a.metaKey,e=a.shiftKey,f=$.eotimepicker._getHours(b),g=$.eotimepicker._getMinutes(b),h=$.eotimepicker._get(b,"rows"),i=Math.ceil(f.length/h),j=Math.round(g.length/h+.49);switch(a.keyCode){case 9:$.eotimepicker._hideTimepicker(),c=!1;break;case 13:return b.hours=b.hlHours,b.minutes=b.hlMinutes,$.eotimepicker._updateSelectedValue(b),$.eotimepicker._hideTimepicker(),!1;case 27:$.eotimepicker._hideTimepicker();break;case 37:c=d||e,e?$.eotimepicker._moveHighlight(b,-1,"minute"):d&&$.eotimepicker._moveHighlight(b,-1,"hour");break;case 38:c=d||e,e?$.eotimepicker._moveHighlight(b,-j,"minute"):d&&$.eotimepicker._moveHighlight(b,-i,"hour");break;case 39:c=d||e,e?$.eotimepicker._moveHighlight(b,1,"minute"):d&&$.eotimepicker._moveHighlight(b,1,"hour");break;case 40:c=d||e,e?$.eotimepicker._moveHighlight(b,j,"minute"):d&&$.eotimepicker._moveHighlight(b,i,"hour");break;default:c=!1}}else 36==a.keyCode&&a.ctrlKey?$.eotimepicker._showTimepicker(this):c=!1;c&&(a.preventDefault(),a.stopPropagation())},_moveHighlight:function(a,b,c){var d=this._getMinutes(a),e=this._getHours(a),f=this._get(a,"maxTime"),g=this._get(a,"minTime");if("hour"==c.toLowerCase()){var h=$.inArray(a.hlHours,e);a.hlHours=e[this._modulo(h+b,e.length)]}else{var h=$.inArray(a.hlMinutes,d);a.hlMinutes=d[this._modulo(h+b,d.length)]}g.hour&&(a.hlHours=Math.max(a.hlHours,g.hour)),f.hour&&(a.hlHours=Math.min(a.hlHours,f.hour)),g.minute&&a.hlHours<=g.hour&&(a.hlMinutes=Math.max(a.hlMinutes,g.minute)),f.minute&&a.hlHours>=f.hour&&(a.hlMinutes=Math.min(a.hlMinutes,f.minute))},_doKeyUp:function(a){var b=$.eotimepicker._getInst(a.target);$.eotimepicker._setTimeFromField(b),$.eotimepicker._updateTimepicker(b)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$('<span class="'+this._appendClass+'">'+c+"</span>"),a[d?"before":"after"](b.append)),a.unbind("focus.eotimepicker",this._showTimepicker),a.unbind("click.eotimepicker",this._adjustZIndex),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");if(("focus"==e||"both"==e)&&(a.bind("focus.eotimepicker",this._showTimepicker),a.bind("click.eotimepicker",this._adjustZIndex)),"button"==e||"both"==e){var f=this._get(b,"button");null==f&&(f=$('<button class="ui-timepicker-trigger" type="button">...</button>'),a.after(f)),$(f).bind("click.eotimepicker",function(){return $.eotimepicker._timepickerShowing&&$.eotimepicker._lastInput==a[0]?$.eotimepicker._hideTimepicker():b.input.is(":disabled")||$.eotimepicker._showTimepicker(a[0]),!1})}},_inlineTimepicker:function(a,b){var c=$(a);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(b.tpDiv).bind("setData.eotimepicker",function(a,c,d){b.settings[c]=d}).bind("getData.eotimepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setTimeFromField(b),this._updateTimepicker(b),b.tpDiv.show())},_adjustZIndex:function(a){a=a.target||a;var b=$.eotimepicker._getInst(a);b.tpDiv.css("zIndex",$.eotimepicker._getZIndex(a)+1)},_showTimepicker:function(a){if(a=a.target||a,"input"!=a.nodeName.toLowerCase()&&(a=$("input",a.parentNode)[0]),!$.eotimepicker._isDisabledTimepicker(a)&&$.eotimepicker._lastInput!=a){$.eotimepicker._hideTimepicker();var b=$.eotimepicker._getInst(a);$.eotimepicker._curInst&&$.eotimepicker._curInst!=b&&$.eotimepicker._curInst.tpDiv.stop(!0,!0);var c=$.eotimepicker._get(b,"beforeShow");extendRemove(b.settings,c?c.apply(a,[a,b]):{}),b.lastVal=null,$.eotimepicker._lastInput=a,$.eotimepicker._setTimeFromField(b),b.hlMinutes=b.minutes,b.hlHours=b.hours,$.eotimepicker._inDialog&&(a.value=""),$.eotimepicker._pos||($.eotimepicker._pos=$.eotimepicker._findPos(a),$.eotimepicker._pos[1]+=a.offsetHeight);var d=!1;$(a).parents().each(function(){return d|="fixed"==$(this).css("position"),!d});var e={left:$.eotimepicker._pos[0],top:$.eotimepicker._pos[1]};if($.eotimepicker._pos=null,b.tpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.eotimepicker._updateTimepicker(b),!b.inline&&"object"==typeof $.ui.position){b.tpDiv.position({of:b.input,my:$.eotimepicker._get(b,"myPosition"),at:$.eotimepicker._get(b,"atPosition"),collision:"flip"});var e=b.tpDiv.offset();$.eotimepicker._pos=[e.top,e.left]}if(b._hoursClicked=!1,b._minutesClicked=!1,e=$.eotimepicker._checkOffset(b,e,d),b.tpDiv.css({position:$.eotimepicker._inDialog&&$.blockUI?"static":d?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"}),!b.inline){var f=$.eotimepicker._get(b,"showAnim"),g=$.eotimepicker._get(b,"duration"),h=function(){$.eotimepicker._timepickerShowing=!0;var a=$.eotimepicker._getBorders(b.tpDiv);b.tpDiv.find("iframe.ui-timepicker-cover").css({left:-a[0],top:-a[1],width:b.tpDiv.outerWidth(),height:b.tpDiv.outerHeight()})};$.eotimepicker._adjustZIndex(a),$.effects&&$.effects[f]?b.tpDiv.show(f,$.eotimepicker._get(b,"showOptions"),g,h):b.tpDiv.show(f?g:null,h),f&&g||h(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.eotimepicker._curInst=b}}},_getZIndex:function(a){for(var b,c,d=$(a),e=0;d.length&&d[0]!==document;)b=d.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(d.css("zIndex"),10),isNaN(c)||0===c||c>e&&(e=c)),d=d.parent();return e},_refreshTimepicker:function(a){var b=this._getInst(a);b&&this._updateTimepicker(b)},_updateTimepicker:function(a){a.tpDiv.empty().append(this._generateHTML(a)),this._rebindDialogEvents(a)},_rebindDialogEvents:function(a){var b=$.eotimepicker._getBorders(a.tpDiv),c=this;a.tpDiv.find("iframe.ui-timepicker-cover").css({left:-b[0],top:-b[1],width:a.tpDiv.outerWidth(),height:a.tpDiv.outerHeight()}).end().find(".ui-timepicker-minute-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.eotimepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.eotimepicker.selectMinutes,this)).end().find(".ui-timepicker-hour-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.eotimepicker.selectHours,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.eotimepicker.selectHours,this)).end().find(".ui-timepicker td a").unbind().bind("mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).removeClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).removeClass("ui-timepicker-next-hover")}).bind("mouseover",function(){c._isDisabledTimepicker(a.inline?a.tpDiv.parent()[0]:a.input[0])||($(this).parents(".ui-timepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).addClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).addClass("ui-timepicker-next-hover"))}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end().find(".ui-timepicker-now").bind("click",function(a){$.eotimepicker.selectNow(a)}).end().find(".ui-timepicker-deselect").bind("click",function(a){$.eotimepicker.deselectTime(a)}).end().find(".ui-timepicker-close").bind("click",function(a){$.eotimepicker._hideTimepicker()}).end()},_generateHTML:function(a){var b,c,d,e=1==this._get(a,"showPeriod"),f=1==this._get(a,"showPeriodLabels"),g=1==this._get(a,"showLeadingZero"),h=1==this._get(a,"showHours"),i=1==this._get(a,"showMinutes"),j=this._get(a,"amPmText"),k=this._get(a,"rows"),l=0,m=0,n=0,o=0,p=0,q=0,r=Array(),s=null,t=0,u=this._get(a,"hourText"),v=this._get(a,"showCloseButton"),w=this._get(a,"closeButtonText"),x=this._get(a,"showNowButton"),y=this._get(a,"nowButtonText"),z=this._get(a,"showDeselectButton"),A=this._get(a,"deselectButtonText"),B=v||x||z;if(r=this._getHours(a),s=Math.ceil(r.length/k),f){for(t=0;t<r.length;t++)r[t]<12?n++:o++;t=0,l=Math.floor(n/r.length*k),m=Math.floor(o/r.length*k),k!=l+m&&(n&&(!o||!l||m&&n/l>=o/m)?l++:m++),p=Math.min(l,1),q=l+1,s=0==l?Math.ceil(o/m):0==m?Math.ceil(n/l):Math.ceil(Math.max(n/l,o/m))}if(d='<table class="ui-timepicker-table ui-widget-content ui-corner-all"><tr>',h){for(d+='<td class="ui-timepicker-hours"><div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+u+'</div><table class="ui-timepicker">',b=1;k>=b;b++){for(d+="<tr>",b==p&&f&&(d+='<th rowspan="'+l.toString()+'" class="periods" scope="row">'+j[0]+"</th>"),b==q&&f&&(d+='<th rowspan="'+m.toString()+'" class="periods" scope="row">'+j[1]+"</th>"),c=1;s>=c;c++)f&&q>b&&r[t]>=12?d+=this._generateHTMLHourCell(a,void 0,e,g):(d+=this._generateHTMLHourCell(a,r[t],e,g),t++);d+="</tr>"}d+="</table></td>"}if(i&&(d+='<td class="ui-timepicker-minutes">',d+=this._generateHTMLMinutes(a),d+="</td>"),d+="</tr>",B){var C='<tr><td colspan="3"><div class="ui-timepicker-buttonpane ui-widget-content">';x&&(C+='<button type="button" class="ui-timepicker-now ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+y+"</button>"),z&&(C+='<button type="button" class="ui-timepicker-deselect ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+A+"</button>"),v&&(C+='<button type="button" class="ui-timepicker-close ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+w+"</button>"),d+=C+"</div></td></tr>"}return d+="</table>"},_updateMinuteDisplay:function(a){var b=this._generateHTMLMinutes(a);a.tpDiv.find("td.ui-timepicker-minutes").html(b),this._rebindDialogEvents(a)},_generateHTMLMinutes:function(a){var b,c,d="",e=this._get(a,"rows"),f=Array(),g=null,h=0,i=1==this._get(a,"showMinutesLeadingZero"),j=this._get(a,"onMinuteShow"),k=this._get(a,"minuteText");if(f=this._getMinutes(a),g=Math.round(f.length/e+.49),j&&0==j.apply(a.input?a.input[0]:null,[a.hours,a.minutes]))for(h=0;h<f.length;h+=1)if(b=f[h],j.apply(a.input?a.input[0]:null,[a.hours,b])){a.minutes=b;break}for(d+='<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+k+'</div><table class="ui-timepicker">',h=0,c=1;e>=c;c++){for(d+="<tr>";c*g>h;){var b=f[h],l="";void 0!==b&&(l=10>b&&i?"0"+b.toString():b.toString()),d+=this._generateHTMLMinuteCell(a,b,l),h++}d+="</tr>"}return d+="</table>"},_generateHTMLHourCell:function(a,b,c,d){var e=b;b>12&&c&&(e=b-12),0==e&&c&&(e=12),10>e&&d&&(e="0"+e);var f="",g=!0,h=this._get(a,"onHourShow"),i=this._get(a,"maxTime"),j=this._get(a,"minTime");return void 0==b?f='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(h&&(g=h.apply(a.input?a.input[0]:null,[b])),g&&(!isNaN(parseInt(i.hour))&&b>i.hour&&(g=!1),!isNaN(parseInt(j.hour))&&b<j.hour&&(g=!1)),f=g?'<td class="ui-timepicker-hour-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-hour="'+b.toString()+'"><a href="#" class="ui-state-default '+(b==a.hours?"ui-state-active":"")+" "+(b==a.hlHours?"ui-state-hover":"")+'">'+e.toString()+"</a></td>":'<td><span class="ui-state-default ui-state-disabled '+(b==a.hours?" ui-state-active ":" ")+'">'+e.toString()+"</span></td>")},_generateHTMLMinuteCell:function(a,b,c){var d="",e=!0,f=a.hlHours,g=this._get(a,"onMinuteShow"),h=this._get(a,"maxTime"),i=this._get(a,"minTime");return g&&(e=g.apply(a.input?a.input[0]:null,[a.hours,b])),void 0==b?d='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(e&&null!==f&&(!isNaN(parseInt(h.hour))&&!isNaN(parseInt(h.minute))&&f>=h.hour&&b>h.minute&&(e=!1),!isNaN(parseInt(i.hour))&&!isNaN(parseInt(i.minute))&&f<=i.hour&&b<i.minute&&(e=!1)),d=e?'<td class="ui-timepicker-minute-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-minute="'+b.toString()+'" ><a href="#" class="ui-state-default '+(b==a.minutes?"ui-state-active":"")+" "+(b==a.hlMinutes?"ui-state-hover":"")+'" >'+c+"</a></td>":'<td><span class="ui-state-default ui-state-disabled" >'+c+"</span></td>")},_destroyTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),"input"==d?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus.eotimepicker",this._showTimepicker).unbind("click.eotimepicker",this._adjustZIndex)):("div"==d||"span"==d)&&b.removeClass(this.markerClassName).empty()}},_enableTimepicker:function(a){var b=$(a),c=b.attr("id"),d=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if("input"==e){a.disabled=!1;var f=this._get(d,"button");$(f).removeClass("ui-state-disabled").disabled=!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end()}else if("div"==e||"span"==e){var g=b.children("."+this._inlineClass);g.children().removeClass("ui-state-disabled"),g.find("button").each(function(){this.disabled=!1})}this._disabledInputs=$.map(this._disabledInputs,function(a){return a==c?null:a})}},_disableTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();if("input"==d){var e=this._get(c,"button");$(e).addClass("ui-state-disabled").disabled=!0,a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end()}else if("div"==d||"span"==d){var f=b.children("."+this._inlineClass);f.children().addClass("ui-state-disabled"),f.find("button").each(function(){this.disabled=!0})}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=b.attr("id")}},_isDisabledTimepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_checkOffset:function(a,b,c){var d=a.tpDiv.outerWidth(),e=a.tpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+$(document).scrollLeft(),i=document.documentElement.clientHeight+$(document).scrollTop();return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){for(var b=this._getInst(a),c=this._get(b,"isRTL");a&&("hidden"==a.type||1!=a.nodeType);)a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkExternalClick:function(a){if($.eotimepicker._curInst){var b=$(a.target);b[0].id==$.eotimepicker._mainDivId||0!=b.parents("#"+$.eotimepicker._mainDivId).length||b.hasClass($.eotimepicker.markerClassName)||b.hasClass($.eotimepicker._triggerClass)||!$.eotimepicker._timepickerShowing||$.eotimepicker._inDialog&&$.blockUI||$.eotimepicker._hideTimepicker()}},_hideTimepicker:function(a){var b=this._curInst;if(b&&(!a||b==$.data(a,PROP_NAME))&&this._timepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.eotimepicker._tidyDialog(b),this._curInst=null};$.effects&&$.effects[c]?b.tpDiv.hide(c,$.eotimepicker._get(b,"showOptions"),d,e):b.tpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?d:null,e),c||e(),this._timepickerShowing=!1,this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.tpDiv))),this._inDialog=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])}},_tidyDialog:function(a){a.tpDiv.removeClass(this._dialogClass).unbind(".ui-timepicker")},_getInst:function(a){try{return $.data(a,PROP_NAME)}catch(b){throw"Missing instance data for this timepicker"}},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setTimeFromField:function(a){if(a.input.val()!=a.lastVal){var b=this._get(a,"defaultTime"),c="now"==b?this._getCurrentTimeRounded(a):b;if(0==a.inline&&""!=a.input.val()&&(c=a.input.val()),c instanceof Date)a.hours=c.getHours(),a.minutes=c.getMinutes();else{var d=a.lastVal=c;if(""==c)a.hours=-1,a.minutes=-1;else{var e=this.parseTime(a,d);a.hours=e.hours,a.minutes=e.minutes}}$.eotimepicker._updateTimepicker(a)}},_optionTimepicker:function(a,b,c){var d=this._getInst(a);if(2==arguments.length&&"string"==typeof b)return"defaults"==b?$.extend({},$.eotimepicker._defaults):d?"all"==b?$.extend({},d.settings):this._get(d,b):null;var e=b||{};"string"==typeof b&&(e={},e[b]=c),d&&(extendRemove(d.settings,e),this._curInst==d&&(this._hideTimepicker(),this._updateTimepicker(d)),d.inline&&this._updateTimepicker(d))},_setTimeTimepicker:function(a,b){var c=this._getInst(a);c&&(this._setTime(c,b),this._updateTimepicker(c),this._updateAlternate(c,b))},_setTime:function(a,b,c){var d=a.hours,e=a.minutes;if(b instanceof Date)a.hours=b.getHours(),a.minutes=b.getMinutes();else{var b=this.parseTime(a,b);a.hours=b.hours,a.minutes=b.minutes}d==a.hours&&e==a.minutes||c||a.input.trigger("change"),this._updateTimepicker(a),this._updateSelectedValue(a)},_getCurrentTimeRounded:function(a){var b=new Date,c=b.getMinutes(),d=this._get(a,"minutes"),e=Math.round(c/d.interval)*d.interval;return b.setMinutes(e),b},parseTime:function(a,b){var c=new Object;if(c.hours=-1,c.minutes=-1,!b)return"";var d=this._get(a,"timeSeparator"),e=this._get(a,"amPmText"),f=this._get(a,"showHours"),g=this._get(a,"showMinutes"),h=this._get(a,"optionalMinutes"),i=1==this._get(a,"showPeriod"),j=b.indexOf(d);if(-1!=j?(c.hours=parseInt(b.substr(0,j),10),c.minutes=parseInt(b.substr(j+1),10)):!f||g&&!h?!f&&g&&(c.minutes=parseInt(b,10)):c.hours=parseInt(b,10),f){var k=b.toUpperCase();c.hours<12&&i&&-1!=k.indexOf(e[1].toUpperCase())&&(c.hours+=12),12==c.hours&&i&&-1!=k.indexOf(e[0].toUpperCase())&&(c.hours=0)}return c},selectNow:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]),e=new Date;d.hours=e.getHours(),d.minutes=e.getMinutes(),this._updateSelectedValue(d),this._updateTimepicker(d),this._hideTimepicker()},deselectTime:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]);d.hours=-1,d.minutes=-1,this._updateSelectedValue(d),this._hideTimepicker()},selectHours:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-hour")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showMinutes");if($.eotimepicker._isDisabledTimepicker(f.attr("id")))return!1;b.parents(".ui-timepicker-hours:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.hours=d;var i=this._get(g,"onMinuteShow"),j=this._get(g,"maxTime"),k=this._get(g,"minTime");return(i||j.minute||k.minute)&&this._updateMinuteDisplay(g),this._updateSelectedValue(g),g._hoursClicked=!0,(g._minutesClicked||e||0==h)&&$.eotimepicker._hideTimepicker(),!1},selectMinutes:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-minute")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showHours");return $.eotimepicker._isDisabledTimepicker(f.attr("id"))?!1:(b.parents(".ui-timepicker-minutes:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.minutes=d,this._updateSelectedValue(g),g._minutesClicked=!0,g._hoursClicked||e||0==h?($.eotimepicker._hideTimepicker(),!1):!1)},_updateSelectedValue:function(a){var b=this._getParsedTime(a);a.input&&(a.input.val(b),a.input.trigger("change"));var c=this._get(a,"onSelect");return c&&c.apply(a.input?a.input[0]:null,[b,a]),this._updateAlternate(a,b),b},_getParsedTime:function(a){if(-1==a.hours&&-1==a.minutes)return"";(a.hours<a.hours.starts||a.hours>a.hours.ends)&&(a.hours=0),(a.minutes<a.minutes.starts||a.minutes>a.minutes.ends)&&(a.minutes=0);var b="",c=1==this._get(a,"showPeriod"),d=1==this._get(a,"showLeadingZero"),e=1==this._get(a,"showHours"),f=1==this._get(a,"showMinutes"),g=1==this._get(a,"optionalMinutes"),h=this._get(a,"amPmText"),i=a.hours?a.hours:0,j=a.minutes?a.minutes:0,k=i?i:0,l="";-1==k&&(k=0),-1==j&&(j=0),c&&(0==a.hours&&(k=12),a.hours<12?b=h[0]:(b=h[1],k>12&&(k-=12)));var m=k.toString();d&&10>k&&(m="0"+m);var n=j.toString();return 10>j&&(n="0"+n),e&&(l+=m),!e||!f||g&&0==n||(l+=this._get(a,"timeSeparator")),!f||g&&0==n||(l+=n),e&&b.length>0&&(l+=this._get(a,"periodSeparator")+b),l},_updateAlternate:function(a,b){var c=this._get(a,"altField");c&&$(c).each(function(a,c){$(c).val(b)})},_getTimeAsDateTimepicker:function(a){var b=this._getInst(a);return-1==b.hours&&-1==b.minutes?"":((b.hours<b.hours.starts||b.hours>b.hours.ends)&&(b.hours=0),(b.minutes<b.minutes.starts||b.minutes>b.minutes.ends)&&(b.minutes=0),new Date(0,0,0,b.hours,b.minutes,0))},_getTimeTimepicker:function(a){var b=this._getInst(a);return this._getParsedTime(b)},_getHourTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.hours},_getMinuteTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.minutes}}),$.fn.eotimepicker=function(a){$.eotimepicker.initialized||($(document).mousedown($.eotimepicker._checkExternalClick),$.eotimepicker.initialized=!0),0===$("#"+$.eotimepicker._mainDivId).length&&$("body").append($.eotimepicker.tpDiv);var b=Array.prototype.slice.call(arguments,1);return"string"!=typeof a||"getTime"!=a&&"getTimeAsDate"!=a&&"getHour"!=a&&"getMinute"!=a?"option"==a&&2==arguments.length&&"string"==typeof arguments[1]?$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this[0]].concat(b)):this.each(function(){"string"==typeof a?$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this].concat(b)):$.eotimepicker._attachTimepicker(this,a)}):$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this[0]].concat(b))},$.eotimepicker=new eoTimepicker,$.eotimepicker.initialized=!1,$.eotimepicker.uuid=(new Date).getTime(),$.eotimepicker.version="0.3.3",window["TP_jQuery_"+tpuuid]=$}(jQuery);
js/moment.min.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  (function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(a,b){return Ba.call(a,b)}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(a){va.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function f(a,b){var c=!0;return o(function(){return c&&(e(a),c=!1),b.apply(this,arguments)},b)}function g(a,b){sb[a]||(e(b),sb[a]=!0)}function h(a,b){return function(c){return r(a.call(this,c),b)}}function i(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function j(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return 0>b-f?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)}function k(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&12>b&&(b+=12),d||12!==b||(b=0),b):b}function l(){}function m(a,b){b!==!1&&H(a),p(this,a),this._d=new Date(+a._d),ub===!1&&(ub=!0,va.updateOffset(this),ub=!1)}function n(a){var b=A(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=va.localeData(),this._bubble()}function o(a,b){for(var d in b)c(b,d)&&(a[d]=b[d]);return c(b,"toString")&&(a.toString=b.toString),c(b,"valueOf")&&(a.valueOf=b.valueOf),a}function p(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=b._pf),"undefined"!=typeof b._locale&&(a._locale=b._locale),Ka.length>0)for(c in Ka)d=Ka[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function q(a){return 0>a?Math.ceil(a):Math.floor(a)}function r(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.length<b;)d="0"+d;return(e?c?"+":"":"-")+d}function s(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function t(a,b){var c;return b=M(b,a),a.isBefore(b)?c=s(a,b):(c=s(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function u(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(g(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=va.duration(c,d),v(this,e,a),this}}function v(a,b,c,d){var e=b._milliseconds,f=b._days,g=b._months;d=null==d?!0:d,e&&a._d.setTime(+a._d+e*c),f&&pa(a,"Date",oa(a,"Date")+f*c),g&&na(a,oa(a,"Month")+g*c),d&&va.updateOffset(a,f||g)}function w(a){return"[object Array]"===Object.prototype.toString.call(a)}function x(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function y(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&C(a[d])!==C(b[d]))&&g++;return g+f}function z(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=lb[a]||mb[b]||b}return a}function A(a){var b,d,e={};for(d in a)c(a,d)&&(b=z(d),b&&(e[b]=a[d]));return e}function B(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}va[b]=function(e,f){var g,h,i=va._locale[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=va().utc().set(d,a);return i.call(va._locale,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function C(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function D(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function E(a,b,c){return ja(va([a,11,31+b-c]),b,c).week}function F(a){return G(a)?366:365}function G(a){return a%4===0&&a%100!==0||a%400===0}function H(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[Da]<0||a._a[Da]>11?Da:a._a[Ea]<1||a._a[Ea]>D(a._a[Ca],a._a[Da])?Ea:a._a[Fa]<0||a._a[Fa]>24||24===a._a[Fa]&&(0!==a._a[Ga]||0!==a._a[Ha]||0!==a._a[Ia])?Fa:a._a[Ga]<0||a._a[Ga]>59?Ga:a._a[Ha]<0||a._a[Ha]>59?Ha:a._a[Ia]<0||a._a[Ia]>999?Ia:-1,a._pf._overflowDayOfYear&&(Ca>b||b>Ea)&&(b=Ea),a._pf.overflow=b)}function I(b){return null==b._isValid&&(b._isValid=!isNaN(b._d.getTime())&&b._pf.overflow<0&&!b._pf.empty&&!b._pf.invalidMonth&&!b._pf.nullInput&&!b._pf.invalidFormat&&!b._pf.userInvalidated,b._strict&&(b._isValid=b._isValid&&0===b._pf.charsLeftOver&&0===b._pf.unusedTokens.length&&b._pf.bigHour===a)),b._isValid}function J(a){return a?a.toLowerCase().replace("_","-"):a}function K(a){for(var b,c,d,e,f=0;f<a.length;){for(e=J(a[f]).split("-"),b=e.length,c=J(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=L(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&y(e,c,!0)>=b-1)break;b--}f++}return null}function L(a){var b=null;if(!Ja[a]&&La)try{b=va.locale(),require("./locale/"+a),va.locale(b)}catch(c){}return Ja[a]}function M(a,b){var c,d;return b._isUTC?(c=b.clone(),d=(va.isMoment(a)||x(a)?+a:+va(a))-+c,c._d.setTime(+c._d+d),va.updateOffset(c,!1),c):va(a).local()}function N(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function O(a){var b,c,d=a.match(Pa);for(b=0,c=d.length;c>b;b++)rb[d[b]]?d[b]=rb[d[b]]:d[b]=N(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function P(a,b){return a.isValid()?(b=Q(b,a.localeData()),nb[b]||(nb[b]=O(b)),nb[b](a)):a.localeData().invalidDate()}function Q(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Qa.lastIndex=0;d>=0&&Qa.test(a);)a=a.replace(Qa,c),Qa.lastIndex=0,d-=1;return a}function R(a,b){var c,d=b._strict;switch(a){case"Q":return _a;case"DDDD":return bb;case"YYYY":case"GGGG":case"gggg":return d?cb:Ta;case"Y":case"G":case"g":return eb;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?db:Ua;case"S":if(d)return _a;case"SS":if(d)return ab;case"SSS":if(d)return bb;case"DDD":return Sa;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Wa;case"a":case"A":return b._locale._meridiemParse;case"x":return Za;case"X":return $a;case"Z":case"ZZ":return Xa;case"T":return Ya;case"SSSS":return Va;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?ab:Ra;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Ra;case"Do":return d?b._locale._ordinalParse:b._locale._ordinalParseLenient;default:return c=new RegExp($(Z(a.replace("\\","")),"i"))}}function S(a){a=a||"";var b=a.match(Xa)||[],c=b[b.length-1]||[],d=(c+"").match(jb)||["-",0,0],e=+(60*d[1])+C(d[2]);return"+"===d[0]?e:-e}function T(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[Da]=3*(C(b)-1));break;case"M":case"MM":null!=b&&(e[Da]=C(b)-1);break;case"MMM":case"MMMM":d=c._locale.monthsParse(b,a,c._strict),null!=d?e[Da]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[Ea]=C(b));break;case"Do":null!=b&&(e[Ea]=C(parseInt(b.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=C(b));break;case"YY":e[Ca]=va.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[Ca]=C(b);break;case"a":case"A":c._meridiem=b;break;case"h":case"hh":c._pf.bigHour=!0;case"H":case"HH":e[Fa]=C(b);break;case"m":case"mm":e[Ga]=C(b);break;case"s":case"ss":e[Ha]=C(b);break;case"S":case"SS":case"SSS":case"SSSS":e[Ia]=C(1e3*("0."+b));break;case"x":c._d=new Date(C(b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=S(b);break;case"dd":case"ddd":case"dddd":d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=C(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=va.parseTwoDigitYear(b)}}function U(a){var c,d,e,f,g,h,i;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[Ca],ja(va(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,d=b(c.gg,a._a[Ca],ja(va(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=ka(d,e,f,h,g),a._a[Ca]=i.year,a._dayOfYear=i.dayOfYear}function V(a){var c,d,e,f,g=[];if(!a._d){for(e=X(a),a._w&&null==a._a[Ea]&&null==a._a[Da]&&U(a),a._dayOfYear&&(f=b(a._a[Ca],e[Ca]),a._dayOfYear>F(f)&&(a._pf._overflowDayOfYear=!0),d=fa(f,0,a._dayOfYear),a._a[Da]=d.getUTCMonth(),a._a[Ea]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=e[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];24===a._a[Fa]&&0===a._a[Ga]&&0===a._a[Ha]&&0===a._a[Ia]&&(a._nextDay=!0,a._a[Fa]=0),a._d=(a._useUTC?fa:ea).apply(null,g),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[Fa]=24)}}function W(a){var b;a._d||(b=A(a._i),a._a=[b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],V(a))}function X(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function Y(b){if(b._f===va.ISO_8601)return void aa(b);b._a=[],b._pf.empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=Q(b._f,b._locale).match(Pa)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(R(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&b._pf.unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),rb[f]?(d?b._pf.empty=!1:b._pf.unusedTokens.push(f),T(f,d,b)):b._strict&&!d&&b._pf.unusedTokens.push(f);b._pf.charsLeftOver=i-j,h.length>0&&b._pf.unusedInput.push(h),b._pf.bigHour===!0&&b._a[Fa]<=12&&(b._pf.bigHour=a),b._a[Fa]=k(b._locale,b._a[Fa],b._meridiem),V(b),H(b)}function Z(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function $(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _(a){var b,c,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(NaN));for(f=0;f<a._f.length;f++)g=0,b=p({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._pf=d(),b._f=a._f[f],Y(b),I(b)&&(g+=b._pf.charsLeftOver,g+=10*b._pf.unusedTokens.length,b._pf.score=g,(null==e||e>g)&&(e=g,c=b));o(a,c||b)}function aa(a){var b,c,d=a._i,e=fb.exec(d);if(e){for(a._pf.iso=!0,b=0,c=hb.length;c>b;b++)if(hb[b][1].exec(d)){a._f=hb[b][0]+(e[6]||" ");break}for(b=0,c=ib.length;c>b;b++)if(ib[b][1].exec(d)){a._f+=ib[b][0];break}d.match(Xa)&&(a._f+="Z"),Y(a)}else a._isValid=!1}function ba(a){aa(a),a._isValid===!1&&(delete a._isValid,va.createFromInputFallback(a))}function ca(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function da(b){var c,d=b._i;d===a?b._d=new Date:x(d)?b._d=new Date(+d):null!==(c=Ma.exec(d))?b._d=new Date(+c[1]):"string"==typeof d?ba(b):w(d)?(b._a=ca(d.slice(0),function(a){return parseInt(a,10)}),V(b)):"object"==typeof d?W(b):"number"==typeof d?b._d=new Date(d):va.createFromInputFallback(b)}function ea(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function fa(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function ga(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function ha(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function ia(a,b,c){var d=va.duration(a).abs(),e=Aa(d.as("s")),f=Aa(d.as("m")),g=Aa(d.as("h")),h=Aa(d.as("d")),i=Aa(d.as("M")),j=Aa(d.as("y")),k=e<ob.s&&["s",e]||1===f&&["m"]||f<ob.m&&["mm",f]||1===g&&["h"]||g<ob.h&&["hh",g]||1===h&&["d"]||h<ob.d&&["dd",h]||1===i&&["M"]||i<ob.M&&["MM",i]||1===j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,ha.apply({},k)}function ja(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=va(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function ka(a,b,c,d,e){var f,g,h=fa(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:F(a-1)+g}}function la(b){var c,d=b._i,e=b._f;return b._locale=b._locale||va.localeData(b._l),null===d||e===a&&""===d?va.invalid({nullInput:!0}):("string"==typeof d&&(b._i=d=b._locale.preparse(d)),va.isMoment(d)?new m(d,!0):(e?w(e)?_(b):Y(b):da(b),c=new m(b),c._nextDay&&(c.add(1,"d"),c._nextDay=a),c))}function ma(a,b){var c,d;if(1===b.length&&w(b[0])&&(b=b[0]),!b.length)return va();for(c=b[0],d=1;d<b.length;++d)b[d][a](c)&&(c=b[d]);return c}function na(a,b){var c;return"string"==typeof b&&(b=a.localeData().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),D(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function oa(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function pa(a,b,c){return"Month"===b?na(a,c):a._d["set"+(a._isUTC?"UTC":"")+b](c)}function qa(a,b){return function(c){return null!=c?(pa(this,a,c),va.updateOffset(this,b),this):oa(this,a)}}function ra(a){return 400*a/146097}function sa(a){return 146097*a/400}function ta(a){va.duration.fn[a]=function(){return this._data[a]}}function ua(a){"undefined"==typeof ender&&(wa=za.moment,a?za.moment=f("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",va):za.moment=va)}for(var va,wa,xa,ya="2.9.0",za="undefined"==typeof global||"undefined"!=typeof window&&window!==global.window?this:global,Aa=Math.round,Ba=Object.prototype.hasOwnProperty,Ca=0,Da=1,Ea=2,Fa=3,Ga=4,Ha=5,Ia=6,Ja={},Ka=[],La="undefined"!=typeof module&&module&&module.exports,Ma=/^\/?Date\((\-?\d+)/i,Na=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Oa=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Pa=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Qa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ra=/\d\d?/,Sa=/\d{1,3}/,Ta=/\d{1,4}/,Ua=/[+\-]?\d{1,6}/,Va=/\d+/,Wa=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Xa=/Z|[\+\-]\d\d:?\d\d/gi,Ya=/T/i,Za=/[\+\-]?\d+/,$a=/[\+\-]?\d+(\.\d{1,3})?/,_a=/\d/,ab=/\d\d/,bb=/\d{3}/,cb=/\d{4}/,db=/[+-]?\d{6}/,eb=/[+-]?\d+/,fb=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gb="YYYY-MM-DDTHH:mm:ssZ",hb=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ib=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],jb=/([\+\-]|\d\d)/gi,kb=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),lb={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},mb={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},nb={},ob={s:45,m:45,h:22,d:26,M:11},pb="DDD w W M D d".split(" "),qb="M D H h m s w W".split(" "),rb={M:function(){return this.month()+1},MMM:function(a){return this.localeData().monthsShort(this,a)},MMMM:function(a){return this.localeData().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.localeData().weekdaysMin(this,a)},ddd:function(a){return this.localeData().weekdaysShort(this,a)},dddd:function(a){return this.localeData().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return r(this.year()%100,2)},YYYY:function(){return r(this.year(),4)},YYYYY:function(){return r(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?"+":"-";return b+r(Math.abs(a),6)},gg:function(){return r(this.weekYear()%100,2)},gggg:function(){return r(this.weekYear(),4)},ggggg:function(){return r(this.weekYear(),5)},GG:function(){return r(this.isoWeekYear()%100,2)},GGGG:function(){return r(this.isoWeekYear(),4)},GGGGG:function(){return r(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return C(this.milliseconds()/100)},SS:function(){return r(C(this.milliseconds()/10),2)},SSS:function(){return r(this.milliseconds(),3)},SSSS:function(){return r(this.milliseconds(),3)},Z:function(){var a=this.utcOffset(),b="+";return 0>a&&(a=-a,b="-"),b+r(C(a/60),2)+":"+r(C(a)%60,2)},ZZ:function(){var a=this.utcOffset(),b="+";return 0>a&&(a=-a,b="-"),b+r(C(a/60),2)+r(C(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},sb={},tb=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],ub=!1;pb.length;)xa=pb.pop(),rb[xa+"o"]=i(rb[xa],xa);for(;qb.length;)xa=qb.pop(),rb[xa+xa]=h(rb[xa],2);rb.DDDD=h(rb.DDD,3),o(l.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=va.utc([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=va([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b,c){var d=this._calendar[a];return"function"==typeof d?d.apply(b,[c]):d},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(a){return a},postformat:function(a){return a},week:function(a){return ja(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),va=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=c,g._l=e,g._strict=f,g._isUTC=!1,g._pf=d(),la(g)},va.suppressDeprecationWarnings=!1,va.createFromInputFallback=f("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),va.min=function(){var a=[].slice.call(arguments,0);return ma("isBefore",a)},va.max=function(){var a=[].slice.call(arguments,0);return ma("isAfter",a)},va.utc=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=c,g._strict=f,g._pf=d(),la(g).utc()},va.unix=function(a){return va(1e3*a)},va.duration=function(a,b){var d,e,f,g,h=a,i=null;return va.isDuration(a)?h={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(h={},b?h[b]=a:h.milliseconds=a):(i=Na.exec(a))?(d="-"===i[1]?-1:1,h={y:0,d:C(i[Ea])*d,h:C(i[Fa])*d,m:C(i[Ga])*d,s:C(i[Ha])*d,ms:C(i[Ia])*d}):(i=Oa.exec(a))?(d="-"===i[1]?-1:1,f=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*d},h={y:f(i[2]),M:f(i[3]),d:f(i[4]),h:f(i[5]),m:f(i[6]),s:f(i[7]),w:f(i[8])}):null==h?h={}:"object"==typeof h&&("from"in h||"to"in h)&&(g=t(va(h.from),va(h.to)),h={},h.ms=g.milliseconds,h.M=g.months),e=new n(h),va.isDuration(a)&&c(a,"_locale")&&(e._locale=a._locale),e},va.version=ya,va.defaultFormat=gb,va.ISO_8601=function(){},va.momentProperties=Ka,va.updateOffset=function(){},va.relativeTimeThreshold=function(b,c){return ob[b]===a?!1:c===a?ob[b]:(ob[b]=c,!0)},va.lang=f("moment.lang is deprecated. Use moment.locale instead.",function(a,b){return va.locale(a,b)}),va.locale=function(a,b){var c;return a&&(c="undefined"!=typeof b?va.defineLocale(a,b):va.localeData(a),c&&(va.duration._locale=va._locale=c)),va._locale._abbr},va.defineLocale=function(a,b){return null!==b?(b.abbr=a,Ja[a]||(Ja[a]=new l),Ja[a].set(b),va.locale(a),Ja[a]):(delete Ja[a],null)},va.langData=f("moment.langData is deprecated. Use moment.localeData instead.",function(a){return va.localeData(a)}),va.localeData=function(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return va._locale;if(!w(a)){if(b=L(a))return b;a=[a]}return K(a)},va.isMoment=function(a){return a instanceof m||null!=a&&c(a,"_isAMomentObject")},va.isDuration=function(a){return a instanceof n};for(xa=tb.length-1;xa>=0;--xa)B(tb[xa]);va.normalizeUnits=function(a){return z(a)},va.invalid=function(a){var b=va.utc(NaN);return null!=a?o(b._pf,a):b._pf.userInvalidated=!0,b},va.parseZone=function(){return va.apply(null,arguments).parseZone()},va.parseTwoDigitYear=function(a){return C(a)+(C(a)>68?1900:2e3)},va.isDate=x,o(va.fn=m.prototype,{clone:function(){return va(this)},valueOf:function(){return+this._d-6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=va(this).utc();return 0<a.year()&&a.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():P(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):P(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return I(this)},isDSTShifted:function(){return this._a?this.isValid()&&y(this._a,(this._isUTC?va.utc(this._a):va(this._a)).toArray())>0:!1},parsingFlags:function(){return o({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(a){return this.utcOffset(0,a)},local:function(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(a){var b=P(this,a||va.defaultFormat);return this.localeData().postformat(b)},add:u(1,"add"),subtract:u(-1,"subtract"),diff:function(a,b,c){var d,e,f=M(a,this),g=6e4*(f.utcOffset()-this.utcOffset());return b=z(b),"year"===b||"month"===b||"quarter"===b?(e=j(this,f),"quarter"===b?e/=3:"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:q(e)},from:function(a,b){return va.duration({to:this,from:a}).locale(this.locale()).humanize(!b)},fromNow:function(a){return this.from(va(),a)},calendar:function(a){var b=a||va(),c=M(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.localeData().calendar(e,this,va(b)))},isLeapYear:function(){return G(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=ga(a,this.localeData()),this.add(a-b,"d")):b},month:qa("Month",!0),startOf:function(a){switch(a=z(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a?this.weekday(0):"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(b){return b=z(b),b===a||"millisecond"===b?this:this.startOf(b).add(1,"isoWeek"===b?"week":b).subtract(1,"ms")},isAfter:function(a,b){var c;return b=z("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+this>+a):(c=va.isMoment(a)?+a:+va(a),c<+this.clone().startOf(b))},isBefore:function(a,b){var c;return b=z("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+a>+this):(c=va.isMoment(a)?+a:+va(a),+this.clone().endOf(b)<c)},isBetween:function(a,b,c){return this.isAfter(a,c)&&this.isBefore(b,c)},isSame:function(a,b){var c;return b=z(b||"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+this===+a):(c=+va(a),+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))},min:f("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){return a=va.apply(null,arguments),this>a?this:a}),max:f("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){return a=va.apply(null,arguments),a>this?this:a}),zone:f("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}),utcOffset:function(a,b){var c,d=this._offset||0;return null!=a?("string"==typeof a&&(a=S(a)),Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(c=this._dateUtcOffset()),this._offset=a,this._isUTC=!0,null!=c&&this.add(c,"m"),d!==a&&(!b||this._changeInProgress?v(this,va.duration(a-d,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,va.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?d:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&0===this._offset},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(S(this._i)),this},hasAlignedHourOffset:function(a){return a=a?va(a).utcOffset():0,(this.utcOffset()-a)%60===0},daysInMonth:function(){return D(this.year(),this.month())},dayOfYear:function(a){var b=Aa((va(this).startOf("day")-va(this).startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=ja(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")},isoWeekYear:function(a){var b=ja(this,1,4).year;return null==a?b:this.add(a-b,"y")},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")},isoWeek:function(a){var b=ja(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return E(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return E(this.year(),a.dow,a.doy)},get:function(a){return a=z(a),this[a]()},set:function(a,b){var c;if("object"==typeof a)for(c in a)this.set(c,a[c]);else a=z(a),"function"==typeof this[a]&&this[a](b);return this},locale:function(b){var c;return b===a?this._locale._abbr:(c=va.localeData(b),null!=c&&(this._locale=c),this)},lang:f("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(b){return b===a?this.localeData():this.locale(b)}),localeData:function(){return this._locale},_dateUtcOffset:function(){return 15*-Math.round(this._d.getTimezoneOffset()/15)}}),va.fn.millisecond=va.fn.milliseconds=qa("Milliseconds",!1),va.fn.second=va.fn.seconds=qa("Seconds",!1),va.fn.minute=va.fn.minutes=qa("Minutes",!1),va.fn.hour=va.fn.hours=qa("Hours",!0),va.fn.date=qa("Date",!0),va.fn.dates=f("dates accessor is deprecated. Use date instead.",qa("Date",!0)),va.fn.year=qa("FullYear",!0),va.fn.years=f("years accessor is deprecated. Use year instead.",qa("FullYear",!0)),va.fn.days=va.fn.day,va.fn.months=va.fn.month,va.fn.weeks=va.fn.week,va.fn.isoWeeks=va.fn.isoWeek,va.fn.quarters=va.fn.quarter,va.fn.toJSON=va.fn.toISOString,va.fn.isUTC=va.fn.isUtc,o(va.duration.fn=n.prototype,{_bubble:function(){var a,b,c,d=this._milliseconds,e=this._days,f=this._months,g=this._data,h=0;g.milliseconds=d%1e3,a=q(d/1e3),g.seconds=a%60,b=q(a/60),g.minutes=b%60,c=q(b/60),g.hours=c%24,e+=q(c/24),h=q(ra(e)),e-=q(sa(h)),f+=q(e/30),e%=30,h+=q(f/12),f%=12,g.days=e,g.months=f,g.years=h},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return q(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*C(this._months/12);
3
  },humanize:function(a){var b=ia(this,!a,this.localeData());return a&&(b=this.localeData().pastFuture(+this,b)),this.localeData().postformat(b)},add:function(a,b){var c=va.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=va.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=z(a),this[a.toLowerCase()+"s"]()},as:function(a){var b,c;if(a=z(a),"month"===a||"year"===a)return b=this._days+this._milliseconds/864e5,c=this._months+12*ra(b),"month"===a?c:c/12;switch(b=this._days+Math.round(sa(this._months/12)),a){case"week":return b/7+this._milliseconds/6048e5;case"day":return b+this._milliseconds/864e5;case"hour":return 24*b+this._milliseconds/36e5;case"minute":return 24*b*60+this._milliseconds/6e4;case"second":return 24*b*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*b*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+a)}},lang:va.fn.lang,locale:va.fn.locale,toIsoString:f("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}}),va.duration.fn.toString=va.duration.fn.toISOString;for(xa in kb)c(kb,xa)&&ta(xa.toLowerCase());va.duration.fn.asMilliseconds=function(){return this.as("ms")},va.duration.fn.asSeconds=function(){return this.as("s")},va.duration.fn.asMinutes=function(){return this.as("m")},va.duration.fn.asHours=function(){return this.as("h")},va.duration.fn.asDays=function(){return this.as("d")},va.duration.fn.asWeeks=function(){return this.as("weeks")},va.duration.fn.asMonths=function(){return this.as("M")},va.duration.fn.asYears=function(){return this.as("y")},va.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===C(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),La?module.exports=va:"function"==typeof define&&define.amd?(define(function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(za.moment=wa),va}),ua(!0)):ua()}).call(this);
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
  (function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(a,b){return Ba.call(a,b)}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(a){va.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function f(a,b){var c=!0;return o(function(){return c&&(e(a),c=!1),b.apply(this,arguments)},b)}function g(a,b){sb[a]||(e(b),sb[a]=!0)}function h(a,b){return function(c){return r(a.call(this,c),b)}}function i(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function j(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return 0>b-f?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)}function k(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&12>b&&(b+=12),d||12!==b||(b=0),b):b}function l(){}function m(a,b){b!==!1&&H(a),p(this,a),this._d=new Date(+a._d),ub===!1&&(ub=!0,va.updateOffset(this),ub=!1)}function n(a){var b=A(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=va.localeData(),this._bubble()}function o(a,b){for(var d in b)c(b,d)&&(a[d]=b[d]);return c(b,"toString")&&(a.toString=b.toString),c(b,"valueOf")&&(a.valueOf=b.valueOf),a}function p(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=b._pf),"undefined"!=typeof b._locale&&(a._locale=b._locale),Ka.length>0)for(c in Ka)d=Ka[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function q(a){return 0>a?Math.ceil(a):Math.floor(a)}function r(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.length<b;)d="0"+d;return(e?c?"+":"":"-")+d}function s(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function t(a,b){var c;return b=M(b,a),a.isBefore(b)?c=s(a,b):(c=s(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function u(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(g(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=va.duration(c,d),v(this,e,a),this}}function v(a,b,c,d){var e=b._milliseconds,f=b._days,g=b._months;d=null==d?!0:d,e&&a._d.setTime(+a._d+e*c),f&&pa(a,"Date",oa(a,"Date")+f*c),g&&na(a,oa(a,"Month")+g*c),d&&va.updateOffset(a,f||g)}function w(a){return"[object Array]"===Object.prototype.toString.call(a)}function x(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function y(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&C(a[d])!==C(b[d]))&&g++;return g+f}function z(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=lb[a]||mb[b]||b}return a}function A(a){var b,d,e={};for(d in a)c(a,d)&&(b=z(d),b&&(e[b]=a[d]));return e}function B(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}va[b]=function(e,f){var g,h,i=va._locale[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=va().utc().set(d,a);return i.call(va._locale,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function C(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function D(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function E(a,b,c){return ja(va([a,11,31+b-c]),b,c).week}function F(a){return G(a)?366:365}function G(a){return a%4===0&&a%100!==0||a%400===0}function H(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[Da]<0||a._a[Da]>11?Da:a._a[Ea]<1||a._a[Ea]>D(a._a[Ca],a._a[Da])?Ea:a._a[Fa]<0||a._a[Fa]>24||24===a._a[Fa]&&(0!==a._a[Ga]||0!==a._a[Ha]||0!==a._a[Ia])?Fa:a._a[Ga]<0||a._a[Ga]>59?Ga:a._a[Ha]<0||a._a[Ha]>59?Ha:a._a[Ia]<0||a._a[Ia]>999?Ia:-1,a._pf._overflowDayOfYear&&(Ca>b||b>Ea)&&(b=Ea),a._pf.overflow=b)}function I(b){return null==b._isValid&&(b._isValid=!isNaN(b._d.getTime())&&b._pf.overflow<0&&!b._pf.empty&&!b._pf.invalidMonth&&!b._pf.nullInput&&!b._pf.invalidFormat&&!b._pf.userInvalidated,b._strict&&(b._isValid=b._isValid&&0===b._pf.charsLeftOver&&0===b._pf.unusedTokens.length&&b._pf.bigHour===a)),b._isValid}function J(a){return a?a.toLowerCase().replace("_","-"):a}function K(a){for(var b,c,d,e,f=0;f<a.length;){for(e=J(a[f]).split("-"),b=e.length,c=J(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=L(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&y(e,c,!0)>=b-1)break;b--}f++}return null}function L(a){var b=null;if(!Ja[a]&&La)try{b=va.locale(),require("./locale/"+a),va.locale(b)}catch(c){}return Ja[a]}function M(a,b){var c,d;return b._isUTC?(c=b.clone(),d=(va.isMoment(a)||x(a)?+a:+va(a))-+c,c._d.setTime(+c._d+d),va.updateOffset(c,!1),c):va(a).local()}function N(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function O(a){var b,c,d=a.match(Pa);for(b=0,c=d.length;c>b;b++)rb[d[b]]?d[b]=rb[d[b]]:d[b]=N(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function P(a,b){return a.isValid()?(b=Q(b,a.localeData()),nb[b]||(nb[b]=O(b)),nb[b](a)):a.localeData().invalidDate()}function Q(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Qa.lastIndex=0;d>=0&&Qa.test(a);)a=a.replace(Qa,c),Qa.lastIndex=0,d-=1;return a}function R(a,b){var c,d=b._strict;switch(a){case"Q":return _a;case"DDDD":return bb;case"YYYY":case"GGGG":case"gggg":return d?cb:Ta;case"Y":case"G":case"g":return eb;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?db:Ua;case"S":if(d)return _a;case"SS":if(d)return ab;case"SSS":if(d)return bb;case"DDD":return Sa;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Wa;case"a":case"A":return b._locale._meridiemParse;case"x":return Za;case"X":return $a;case"Z":case"ZZ":return Xa;case"T":return Ya;case"SSSS":return Va;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?ab:Ra;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Ra;case"Do":return d?b._locale._ordinalParse:b._locale._ordinalParseLenient;default:return c=new RegExp($(Z(a.replace("\\","")),"i"))}}function S(a){a=a||"";var b=a.match(Xa)||[],c=b[b.length-1]||[],d=(c+"").match(jb)||["-",0,0],e=+(60*d[1])+C(d[2]);return"+"===d[0]?e:-e}function T(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[Da]=3*(C(b)-1));break;case"M":case"MM":null!=b&&(e[Da]=C(b)-1);break;case"MMM":case"MMMM":d=c._locale.monthsParse(b,a,c._strict),null!=d?e[Da]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[Ea]=C(b));break;case"Do":null!=b&&(e[Ea]=C(parseInt(b.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=C(b));break;case"YY":e[Ca]=va.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[Ca]=C(b);break;case"a":case"A":c._meridiem=b;break;case"h":case"hh":c._pf.bigHour=!0;case"H":case"HH":e[Fa]=C(b);break;case"m":case"mm":e[Ga]=C(b);break;case"s":case"ss":e[Ha]=C(b);break;case"S":case"SS":case"SSS":case"SSSS":e[Ia]=C(1e3*("0."+b));break;case"x":c._d=new Date(C(b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=S(b);break;case"dd":case"ddd":case"dddd":d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=C(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=va.parseTwoDigitYear(b)}}function U(a){var c,d,e,f,g,h,i;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[Ca],ja(va(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,d=b(c.gg,a._a[Ca],ja(va(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=ka(d,e,f,h,g),a._a[Ca]=i.year,a._dayOfYear=i.dayOfYear}function V(a){var c,d,e,f,g=[];if(!a._d){for(e=X(a),a._w&&null==a._a[Ea]&&null==a._a[Da]&&U(a),a._dayOfYear&&(f=b(a._a[Ca],e[Ca]),a._dayOfYear>F(f)&&(a._pf._overflowDayOfYear=!0),d=fa(f,0,a._dayOfYear),a._a[Da]=d.getUTCMonth(),a._a[Ea]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=e[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];24===a._a[Fa]&&0===a._a[Ga]&&0===a._a[Ha]&&0===a._a[Ia]&&(a._nextDay=!0,a._a[Fa]=0),a._d=(a._useUTC?fa:ea).apply(null,g),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[Fa]=24)}}function W(a){var b;a._d||(b=A(a._i),a._a=[b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],V(a))}function X(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function Y(b){if(b._f===va.ISO_8601)return void aa(b);b._a=[],b._pf.empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=Q(b._f,b._locale).match(Pa)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(R(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&b._pf.unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),rb[f]?(d?b._pf.empty=!1:b._pf.unusedTokens.push(f),T(f,d,b)):b._strict&&!d&&b._pf.unusedTokens.push(f);b._pf.charsLeftOver=i-j,h.length>0&&b._pf.unusedInput.push(h),b._pf.bigHour===!0&&b._a[Fa]<=12&&(b._pf.bigHour=a),b._a[Fa]=k(b._locale,b._a[Fa],b._meridiem),V(b),H(b)}function Z(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function $(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _(a){var b,c,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(NaN));for(f=0;f<a._f.length;f++)g=0,b=p({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._pf=d(),b._f=a._f[f],Y(b),I(b)&&(g+=b._pf.charsLeftOver,g+=10*b._pf.unusedTokens.length,b._pf.score=g,(null==e||e>g)&&(e=g,c=b));o(a,c||b)}function aa(a){var b,c,d=a._i,e=fb.exec(d);if(e){for(a._pf.iso=!0,b=0,c=hb.length;c>b;b++)if(hb[b][1].exec(d)){a._f=hb[b][0]+(e[6]||" ");break}for(b=0,c=ib.length;c>b;b++)if(ib[b][1].exec(d)){a._f+=ib[b][0];break}d.match(Xa)&&(a._f+="Z"),Y(a)}else a._isValid=!1}function ba(a){aa(a),a._isValid===!1&&(delete a._isValid,va.createFromInputFallback(a))}function ca(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function da(b){var c,d=b._i;d===a?b._d=new Date:x(d)?b._d=new Date(+d):null!==(c=Ma.exec(d))?b._d=new Date(+c[1]):"string"==typeof d?ba(b):w(d)?(b._a=ca(d.slice(0),function(a){return parseInt(a,10)}),V(b)):"object"==typeof d?W(b):"number"==typeof d?b._d=new Date(d):va.createFromInputFallback(b)}function ea(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function fa(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function ga(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function ha(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function ia(a,b,c){var d=va.duration(a).abs(),e=Aa(d.as("s")),f=Aa(d.as("m")),g=Aa(d.as("h")),h=Aa(d.as("d")),i=Aa(d.as("M")),j=Aa(d.as("y")),k=e<ob.s&&["s",e]||1===f&&["m"]||f<ob.m&&["mm",f]||1===g&&["h"]||g<ob.h&&["hh",g]||1===h&&["d"]||h<ob.d&&["dd",h]||1===i&&["M"]||i<ob.M&&["MM",i]||1===j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,ha.apply({},k)}function ja(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=va(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function ka(a,b,c,d,e){var f,g,h=fa(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:F(a-1)+g}}function la(b){var c,d=b._i,e=b._f;return b._locale=b._locale||va.localeData(b._l),null===d||e===a&&""===d?va.invalid({nullInput:!0}):("string"==typeof d&&(b._i=d=b._locale.preparse(d)),va.isMoment(d)?new m(d,!0):(e?w(e)?_(b):Y(b):da(b),c=new m(b),c._nextDay&&(c.add(1,"d"),c._nextDay=a),c))}function ma(a,b){var c,d;if(1===b.length&&w(b[0])&&(b=b[0]),!b.length)return va();for(c=b[0],d=1;d<b.length;++d)b[d][a](c)&&(c=b[d]);return c}function na(a,b){var c;return"string"==typeof b&&(b=a.localeData().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),D(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function oa(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function pa(a,b,c){return"Month"===b?na(a,c):a._d["set"+(a._isUTC?"UTC":"")+b](c)}function qa(a,b){return function(c){return null!=c?(pa(this,a,c),va.updateOffset(this,b),this):oa(this,a)}}function ra(a){return 400*a/146097}function sa(a){return 146097*a/400}function ta(a){va.duration.fn[a]=function(){return this._data[a]}}function ua(a){"undefined"==typeof ender&&(wa=za.moment,a?za.moment=f("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",va):za.moment=va)}for(var va,wa,xa,ya="2.9.0",za="undefined"==typeof global||"undefined"!=typeof window&&window!==global.window?this:global,Aa=Math.round,Ba=Object.prototype.hasOwnProperty,Ca=0,Da=1,Ea=2,Fa=3,Ga=4,Ha=5,Ia=6,Ja={},Ka=[],La="undefined"!=typeof module&&module&&module.exports,Ma=/^\/?Date\((\-?\d+)/i,Na=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Oa=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Pa=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Qa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ra=/\d\d?/,Sa=/\d{1,3}/,Ta=/\d{1,4}/,Ua=/[+\-]?\d{1,6}/,Va=/\d+/,Wa=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Xa=/Z|[\+\-]\d\d:?\d\d/gi,Ya=/T/i,Za=/[\+\-]?\d+/,$a=/[\+\-]?\d+(\.\d{1,3})?/,_a=/\d/,ab=/\d\d/,bb=/\d{3}/,cb=/\d{4}/,db=/[+-]?\d{6}/,eb=/[+-]?\d+/,fb=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gb="YYYY-MM-DDTHH:mm:ssZ",hb=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ib=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],jb=/([\+\-]|\d\d)/gi,kb=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),lb={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},mb={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},nb={},ob={s:45,m:45,h:22,d:26,M:11},pb="DDD w W M D d".split(" "),qb="M D H h m s w W".split(" "),rb={M:function(){return this.month()+1},MMM:function(a){return this.localeData().monthsShort(this,a)},MMMM:function(a){return this.localeData().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.localeData().weekdaysMin(this,a)},ddd:function(a){return this.localeData().weekdaysShort(this,a)},dddd:function(a){return this.localeData().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return r(this.year()%100,2)},YYYY:function(){return r(this.year(),4)},YYYYY:function(){return r(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?"+":"-";return b+r(Math.abs(a),6)},gg:function(){return r(this.weekYear()%100,2)},gggg:function(){return r(this.weekYear(),4)},ggggg:function(){return r(this.weekYear(),5)},GG:function(){return r(this.isoWeekYear()%100,2)},GGGG:function(){return r(this.isoWeekYear(),4)},GGGGG:function(){return r(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return C(this.milliseconds()/100)},SS:function(){return r(C(this.milliseconds()/10),2)},SSS:function(){return r(this.milliseconds(),3)},SSSS:function(){return r(this.milliseconds(),3)},Z:function(){var a=this.utcOffset(),b="+";return 0>a&&(a=-a,b="-"),b+r(C(a/60),2)+":"+r(C(a)%60,2)},ZZ:function(){var a=this.utcOffset(),b="+";return 0>a&&(a=-a,b="-"),b+r(C(a/60),2)+r(C(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},sb={},tb=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],ub=!1;pb.length;)xa=pb.pop(),rb[xa+"o"]=i(rb[xa],xa);for(;qb.length;)xa=qb.pop(),rb[xa+xa]=h(rb[xa],2);rb.DDDD=h(rb.DDD,3),o(l.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=va.utc([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=va([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b,c){var d=this._calendar[a];return"function"==typeof d?d.apply(b,[c]):d},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(a){return a},postformat:function(a){return a},week:function(a){return ja(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),va=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=c,g._l=e,g._strict=f,g._isUTC=!1,g._pf=d(),la(g)},va.suppressDeprecationWarnings=!1,va.createFromInputFallback=f("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),va.min=function(){var a=[].slice.call(arguments,0);return ma("isBefore",a)},va.max=function(){var a=[].slice.call(arguments,0);return ma("isAfter",a)},va.utc=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=c,g._strict=f,g._pf=d(),la(g).utc()},va.unix=function(a){return va(1e3*a)},va.duration=function(a,b){var d,e,f,g,h=a,i=null;return va.isDuration(a)?h={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(h={},b?h[b]=a:h.milliseconds=a):(i=Na.exec(a))?(d="-"===i[1]?-1:1,h={y:0,d:C(i[Ea])*d,h:C(i[Fa])*d,m:C(i[Ga])*d,s:C(i[Ha])*d,ms:C(i[Ia])*d}):(i=Oa.exec(a))?(d="-"===i[1]?-1:1,f=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*d},h={y:f(i[2]),M:f(i[3]),d:f(i[4]),h:f(i[5]),m:f(i[6]),s:f(i[7]),w:f(i[8])}):null==h?h={}:"object"==typeof h&&("from"in h||"to"in h)&&(g=t(va(h.from),va(h.to)),h={},h.ms=g.milliseconds,h.M=g.months),e=new n(h),va.isDuration(a)&&c(a,"_locale")&&(e._locale=a._locale),e},va.version=ya,va.defaultFormat=gb,va.ISO_8601=function(){},va.momentProperties=Ka,va.updateOffset=function(){},va.relativeTimeThreshold=function(b,c){return ob[b]===a?!1:c===a?ob[b]:(ob[b]=c,!0)},va.lang=f("moment.lang is deprecated. Use moment.locale instead.",function(a,b){return va.locale(a,b)}),va.locale=function(a,b){var c;return a&&(c="undefined"!=typeof b?va.defineLocale(a,b):va.localeData(a),c&&(va.duration._locale=va._locale=c)),va._locale._abbr},va.defineLocale=function(a,b){return null!==b?(b.abbr=a,Ja[a]||(Ja[a]=new l),Ja[a].set(b),va.locale(a),Ja[a]):(delete Ja[a],null)},va.langData=f("moment.langData is deprecated. Use moment.localeData instead.",function(a){return va.localeData(a)}),va.localeData=function(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return va._locale;if(!w(a)){if(b=L(a))return b;a=[a]}return K(a)},va.isMoment=function(a){return a instanceof m||null!=a&&c(a,"_isAMomentObject")},va.isDuration=function(a){return a instanceof n};for(xa=tb.length-1;xa>=0;--xa)B(tb[xa]);va.normalizeUnits=function(a){return z(a)},va.invalid=function(a){var b=va.utc(NaN);return null!=a?o(b._pf,a):b._pf.userInvalidated=!0,b},va.parseZone=function(){return va.apply(null,arguments).parseZone()},va.parseTwoDigitYear=function(a){return C(a)+(C(a)>68?1900:2e3)},va.isDate=x,o(va.fn=m.prototype,{clone:function(){return va(this)},valueOf:function(){return+this._d-6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=va(this).utc();return 0<a.year()&&a.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():P(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):P(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return I(this)},isDSTShifted:function(){return this._a?this.isValid()&&y(this._a,(this._isUTC?va.utc(this._a):va(this._a)).toArray())>0:!1},parsingFlags:function(){return o({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(a){return this.utcOffset(0,a)},local:function(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(a){var b=P(this,a||va.defaultFormat);return this.localeData().postformat(b)},add:u(1,"add"),subtract:u(-1,"subtract"),diff:function(a,b,c){var d,e,f=M(a,this),g=6e4*(f.utcOffset()-this.utcOffset());return b=z(b),"year"===b||"month"===b||"quarter"===b?(e=j(this,f),"quarter"===b?e/=3:"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:q(e)},from:function(a,b){return va.duration({to:this,from:a}).locale(this.locale()).humanize(!b)},fromNow:function(a){return this.from(va(),a)},calendar:function(a){var b=a||va(),c=M(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.localeData().calendar(e,this,va(b)))},isLeapYear:function(){return G(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=ga(a,this.localeData()),this.add(a-b,"d")):b},month:qa("Month",!0),startOf:function(a){switch(a=z(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a?this.weekday(0):"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(b){return b=z(b),b===a||"millisecond"===b?this:this.startOf(b).add(1,"isoWeek"===b?"week":b).subtract(1,"ms")},isAfter:function(a,b){var c;return b=z("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+this>+a):(c=va.isMoment(a)?+a:+va(a),c<+this.clone().startOf(b))},isBefore:function(a,b){var c;return b=z("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+a>+this):(c=va.isMoment(a)?+a:+va(a),+this.clone().endOf(b)<c)},isBetween:function(a,b,c){return this.isAfter(a,c)&&this.isBefore(b,c)},isSame:function(a,b){var c;return b=z(b||"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+this===+a):(c=+va(a),+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))},min:f("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){return a=va.apply(null,arguments),this>a?this:a}),max:f("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){return a=va.apply(null,arguments),a>this?this:a}),zone:f("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}),utcOffset:function(a,b){var c,d=this._offset||0;return null!=a?("string"==typeof a&&(a=S(a)),Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(c=this._dateUtcOffset()),this._offset=a,this._isUTC=!0,null!=c&&this.add(c,"m"),d!==a&&(!b||this._changeInProgress?v(this,va.duration(a-d,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,va.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?d:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&0===this._offset},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(S(this._i)),this},hasAlignedHourOffset:function(a){return a=a?va(a).utcOffset():0,(this.utcOffset()-a)%60===0},daysInMonth:function(){return D(this.year(),this.month())},dayOfYear:function(a){var b=Aa((va(this).startOf("day")-va(this).startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=ja(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")},isoWeekYear:function(a){var b=ja(this,1,4).year;return null==a?b:this.add(a-b,"y")},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")},isoWeek:function(a){var b=ja(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return E(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return E(this.year(),a.dow,a.doy)},get:function(a){return a=z(a),this[a]()},set:function(a,b){var c;if("object"==typeof a)for(c in a)this.set(c,a[c]);else a=z(a),"function"==typeof this[a]&&this[a](b);return this},locale:function(b){var c;return b===a?this._locale._abbr:(c=va.localeData(b),null!=c&&(this._locale=c),this)},lang:f("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(b){return b===a?this.localeData():this.locale(b)}),localeData:function(){return this._locale},_dateUtcOffset:function(){return 15*-Math.round(this._d.getTimezoneOffset()/15)}}),va.fn.millisecond=va.fn.milliseconds=qa("Milliseconds",!1),va.fn.second=va.fn.seconds=qa("Seconds",!1),va.fn.minute=va.fn.minutes=qa("Minutes",!1),va.fn.hour=va.fn.hours=qa("Hours",!0),va.fn.date=qa("Date",!0),va.fn.dates=f("dates accessor is deprecated. Use date instead.",qa("Date",!0)),va.fn.year=qa("FullYear",!0),va.fn.years=f("years accessor is deprecated. Use year instead.",qa("FullYear",!0)),va.fn.days=va.fn.day,va.fn.months=va.fn.month,va.fn.weeks=va.fn.week,va.fn.isoWeeks=va.fn.isoWeek,va.fn.quarters=va.fn.quarter,va.fn.toJSON=va.fn.toISOString,va.fn.isUTC=va.fn.isUtc,o(va.duration.fn=n.prototype,{_bubble:function(){var a,b,c,d=this._milliseconds,e=this._days,f=this._months,g=this._data,h=0;g.milliseconds=d%1e3,a=q(d/1e3),g.seconds=a%60,b=q(a/60),g.minutes=b%60,c=q(b/60),g.hours=c%24,e+=q(c/24),h=q(ra(e)),e-=q(sa(h)),f+=q(e/30),e%=30,h+=q(f/12),f%=12,g.days=e,g.months=f,g.years=h},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return q(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*C(this._months/12);
3
  },humanize:function(a){var b=ia(this,!a,this.localeData());return a&&(b=this.localeData().pastFuture(+this,b)),this.localeData().postformat(b)},add:function(a,b){var c=va.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=va.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=z(a),this[a.toLowerCase()+"s"]()},as:function(a){var b,c;if(a=z(a),"month"===a||"year"===a)return b=this._days+this._milliseconds/864e5,c=this._months+12*ra(b),"month"===a?c:c/12;switch(b=this._days+Math.round(sa(this._months/12)),a){case"week":return b/7+this._milliseconds/6048e5;case"day":return b+this._milliseconds/864e5;case"hour":return 24*b+this._milliseconds/36e5;case"minute":return 24*b*60+this._milliseconds/6e4;case"second":return 24*b*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*b*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+a)}},lang:va.fn.lang,locale:va.fn.locale,toIsoString:f("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}}),va.duration.fn.toString=va.duration.fn.toISOString;for(xa in kb)c(kb,xa)&&ta(xa.toLowerCase());va.duration.fn.asMilliseconds=function(){return this.as("ms")},va.duration.fn.asSeconds=function(){return this.as("s")},va.duration.fn.asMinutes=function(){return this.as("m")},va.duration.fn.asHours=function(){return this.as("h")},va.duration.fn.asDays=function(){return this.as("d")},va.duration.fn.asWeeks=function(){return this.as("weeks")},va.duration.fn.asMonths=function(){return this.as("M")},va.duration.fn.asYears=function(){return this.as("y")},va.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===C(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),La?module.exports=va:"function"==typeof define&&define.amd?(define(function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(za.moment=wa),va}),ua(!0)):ua()}).call(this);
js/qtip2.js CHANGED
@@ -1,2 +1,2122 @@
1
- /* qTip2 v2.1.1 None | qtip2.com | Licensed MIT, GPL | Thu Jul 11 2013 14:03:06 */
2
- (function(t,e,i){(function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","imagesloaded"],t):jQuery&&!jQuery.fn.qtip&&t(jQuery)})(function(s){function o(t,e,i,o){this.id=i,this.target=t,this.tooltip=C,this.elements=elements={target:t},this._id=z+"-"+i,this.timers={img:{}},this.options=e,this.plugins={},this.cache=cache={event:{},target:s(),disabled:T,attr:o,onTooltip:T,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=T}function n(t){return t===C||"object"!==s.type(t)}function r(t){return!(s.isFunction(t)||t&&t.attr||t.length||"object"===s.type(t)&&(t.jquery||t.then))}function a(t){var e,i,o,a;return n(t)?T:(n(t.metadata)&&(t.metadata={type:t.metadata}),"content"in t&&(e=t.content,n(e)||e.jquery||e.done?e=t.content={text:i=r(e)?T:e}:i=e.text,"ajax"in e&&(o=e.ajax,a=o&&o.once!==T,delete e.ajax,e.text=function(t,e){var n=i||s(this).attr(e.options.content.attr)||"Loading...",r=s.ajax(s.extend({},o,{context:e})).then(o.success,C,o.error).then(function(t){return t&&a&&e.set("content.text",t),t},function(t,i,s){e.destroyed||0===t.status||e.set("content.text",i+": "+s)});return a?n:(e.set("content.text",n),r)}),"title"in e&&(n(e.title)||(e.button=e.title.button,e.title=e.title.text),r(e.title||T)&&(e.title=T))),"position"in t&&n(t.position)&&(t.position={my:t.position,at:t.position}),"show"in t&&n(t.show)&&(t.show=t.show.jquery?{target:t.show}:t.show===x?{ready:x}:{event:t.show}),"hide"in t&&n(t.hide)&&(t.hide=t.hide.jquery?{target:t.hide}:{event:t.hide}),"style"in t&&n(t.style)&&(t.style={classes:t.style}),s.each(B,function(){this.sanitize&&this.sanitize(t)}),t)}function h(t,e){for(var i,s=0,o=t,n=e.split(".");o=o[n[s++]];)n.length>s&&(i=o);return[i||t,n.pop()]}function d(t,e){var i,s,o;for(i in this.checks)for(s in this.checks[i])(o=RegExp(s,"i").exec(t))&&(e.push(o),("builtin"===i||this.plugins[i])&&this.checks[i][s].apply(this.plugins[i]||this,e))}function l(t){return A.concat("").join(t?"-"+t+" ":" ")}function c(t){if(this.tooltip.hasClass(M))return T;clearTimeout(this.timers.show),clearTimeout(this.timers.hide);var e=s.proxy(function(){this.toggle(x,t)},this);this.options.show.delay>0?this.timers.show=setTimeout(e,this.options.show.delay):e()}function u(t){if(this.tooltip.hasClass(M))return T;var e=s(t.relatedTarget),i=e.closest(F)[0]===this.tooltip[0],o=e[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==e[0]&&"mouse"===this.options.position.target&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(i||o))try{t.preventDefault(),t.stopImmediatePropagation()}catch(n){}else{var r=s.proxy(function(){this.toggle(T,t)},this);this.options.hide.delay>0?this.timers.hide=setTimeout(r,this.options.hide.delay):r()}}function p(t){return this.tooltip.hasClass(M)||!this.options.hide.inactive?T:(clearTimeout(this.timers.inactive),this.timers.inactive=setTimeout(s.proxy(function(){this.hide(t)},this),this.options.hide.inactive),i)}function f(t){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(t)}function g(t,i,o){s(e.body).delegate(t,(i.split?i:i.join(V+" "))+V,function(){var t=v.api[s.attr(this,k)];t&&!t.disabled&&o.apply(t,arguments)})}function m(t,i,n){var r,h,d,l,c,u=s(e.body),p=t[0]===e?u:t,f=t.metadata?t.metadata(n.metadata):C,g="html5"===n.metadata.type&&f?f[n.metadata.name]:C,m=t.data(n.metadata.name||"qtipopts");try{m="string"==typeof m?s.parseJSON(m):m}catch(y){}if(l=s.extend(x,{},v.defaults,n,"object"==typeof m?a(m):C,a(g||f)),h=l.position,l.id=i,"boolean"==typeof l.content.text){if(d=t.attr(l.content.attr),l.content.attr===T||!d)return T;l.content.text=d}if(h.container.length||(h.container=u),h.target===T&&(h.target=p),l.show.target===T&&(l.show.target=p),l.show.solo===x&&(l.show.solo=h.container.closest("body")),l.hide.target===T&&(l.hide.target=p),l.position.viewport===x&&(l.position.viewport=h.container),h.container=h.container.eq(0),h.at=new b(h.at,x),h.my=new b(h.my),t.data(z))if(l.overwrite)t.qtip("destroy");else if(l.overwrite===T)return T;return t.attr(L,i),l.suppress&&(c=t.attr("title"))&&t.removeAttr("title").attr(P,c).attr("title",""),r=new o(t,l,i,!!d),t.data(z,r),t.one("remove.qtip-"+i+" removeqtip.qtip-"+i,function(){var t;(t=s(this).data(z))&&t.destroy()}),r}var v,y,b,w,_,x=!0,T=!1,C=null,j="x",q="y",W="top",E="left",S="bottom",O="right",R="center",B={},z="qtip",L="data-hasqtip",k="data-qtip-id",A=["ui-widget","ui-tooltip"],F="."+z,D="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),X=z+"-fixed",$=z+"-default",Y=z+"-focus",I=z+"-hover",M=z+"-disabled",N="_replacedByqTip",P="oldtitle";BROWSER={ie:function(){for(var t=3,i=e.createElement("div");(i.innerHTML="<!--[if gt IE "+ ++t+"]><i></i><![endif]-->")&&i.getElementsByTagName("i")[0];);return t>4?t:0/0}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||T},y=o.prototype,y.render=function(t){if(this.rendered||this.destroyed)return this;var e=this,i=this.options,o=this.cache,n=this.elements,r=i.content.text,a=i.content.title,h=i.content.button,d=i.position,l="."+this._id+" ",c=[];return s.attr(this.target[0],"aria-describedby",this._id),this.tooltip=n.tooltip=tooltip=s("<div/>",{id:this._id,"class":[z,$,i.style.classes,z+"-pos-"+i.position.my.abbrev()].join(" "),width:i.style.width||"",height:i.style.height||"",tracking:"mouse"===d.target&&d.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":T,"aria-describedby":this._id+"-content","aria-hidden":x}).toggleClass(M,this.disabled).attr(k,this.id).data(z,this).appendTo(d.container).append(n.content=s("<div />",{"class":z+"-content",id:this._id+"-content","aria-atomic":x})),this.rendered=-1,this.positioning=x,a&&(this._createTitle(),s.isFunction(a)||c.push(this._updateTitle(a,T))),h&&this._createButton(),s.isFunction(r)||c.push(this._updateContent(r,T)),this.rendered=x,this._setWidget(),s.each(i.events,function(t,e){s.isFunction(e)&&tooltip.bind(("toggle"===t?["tooltipshow","tooltiphide"]:["tooltip"+t]).join(l)+l,e)}),s.each(B,function(t){var i;"render"===this.initialize&&(i=this(e))&&(e.plugins[t]=i)}),this._assignEvents(),s.when.apply(s,c).then(function(){e._trigger("render"),e.positioning=T,e.hiddenDuringWait||!i.show.ready&&!t||e.toggle(x,o.event,T),e.hiddenDuringWait=T}),v.api[this.id]=this,this},y.destroy=function(t){function e(){if(!this.destroyed){this.destroyed=x;var t=this.target,e=t.attr(P);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),s.each(this.plugins,function(){this.destroy&&this.destroy()}),clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this._unassignEvents(),t.removeData(z).removeAttr(k).removeAttr("aria-describedby"),this.options.suppress&&e&&t.attr("title",e).removeAttr(P),this._unbind(t),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=C,delete v.api[this.id]}}return this.destroyed?this.target:(t!==x&&this.rendered?(tooltip.one("tooltiphidden",s.proxy(e,this)),!this.triggering&&this.hide()):e.call(this),this.target)},w=y.checks={builtin:{"^id$":function(t,e,i,o){var n=i===x?v.nextid:i,r=z+"-"+n;n!==T&&n.length>0&&!s("#"+r).length?(this._id=r,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):t[e]=o},"^prerender":function(t,e,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(t,e,i){this._updateContent(i)},"^content.attr$":function(t,e,i,s){this.options.content.text===this.target.attr(s)&&this._updateContent(this.target.attr(i))},"^content.title$":function(t,e,s){return s?(s&&!this.elements.title&&this._createTitle(),this._updateTitle(s),i):this._removeTitle()},"^content.button$":function(t,e,i){this._updateButton(i)},"^content.title.(text|button)$":function(t,e,i){this.set("content."+e,i)},"^position.(my|at)$":function(t,e,i){"string"==typeof i&&(t[e]=new b(i,"at"===e))},"^position.container$":function(t,e,i){this.tooltip.appendTo(i)},"^show.ready$":function(t,e,i){i&&(!this.rendered&&this.render(x)||this.toggle(x))},"^style.classes$":function(t,e,i,s){this.tooltip.removeClass(s).addClass(i)},"^style.width|height":function(t,e,i){this.tooltip.css(e,i)},"^style.widget|content.title":function(){this._setWidget()},"^style.def":function(t,e,i){this.tooltip.toggleClass($,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(t,e,i){tooltip[(s.isFunction(i)?"":"un")+"bind"]("tooltip"+e,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var t=this.options.position;tooltip.attr("tracking","mouse"===t.target&&t.adjust.mouse),this._unassignEvents(),this._assignEvents()}}},y.get=function(t){if(this.destroyed)return this;var e=h(this.options,t.toLowerCase()),i=e[0][e[1]];return i.precedance?i.string():i};var H=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,Q=/^prerender|show\.ready/i;y.set=function(t,e){if(this.destroyed)return this;var o,n=this.rendered,r=T,l=this.options;return this.checks,"string"==typeof t?(o=t,t={},t[o]=e):t=s.extend({},t),s.each(t,function(e,o){if(!n&&!Q.test(e))return delete t[e],i;var a,d=h(l,e.toLowerCase());a=d[0][d[1]],d[0][d[1]]=o&&o.nodeType?s(o):o,r=H.test(e)||r,t[e]=[d[0],d[1],o,a]}),a(l),this.positioning=x,s.each(t,s.proxy(d,this)),this.positioning=T,this.rendered&&this.tooltip[0].offsetWidth>0&&r&&this.reposition("mouse"===l.position.target?C:this.cache.event),this},y._update=function(t,e){var i=this,o=this.cache;return this.rendered&&t?(s.isFunction(t)&&(t=t.call(this.elements.target,o.event,this)||""),s.isFunction(t.then)?(o.waiting=x,t.then(function(t){return o.waiting=T,i._update(t,e)},C,function(t){return i._update(t,e)})):t===T||!t&&""!==t?T:(t.jquery&&t.length>0?e.children().detach().end().append(t.css({display:"block"})):e.html(t),o.waiting=x,(s.fn.imagesLoaded?e.imagesLoaded():s.Deferred().resolve(s([]))).done(function(t){o.waiting=T,t.length&&i.rendered&&i.tooltip[0].offsetWidth>0&&i.reposition(o.event,!t.length)}).promise())):T},y._updateContent=function(t,e){this._update(t,this.elements.content,e)},y._updateTitle=function(t,e){this._update(t,this.elements.title,e)===T&&this._removeTitle(T)},y._createTitle=function(){var t=this.elements,e=this._id+"-title";t.titlebar&&this._removeTitle(),t.titlebar=s("<div />",{"class":z+"-titlebar "+(this.options.style.widget?l("header"):"")}).append(t.title=s("<div />",{id:e,"class":z+"-title","aria-atomic":x})).insertBefore(t.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(t){s(this).toggleClass("ui-state-active ui-state-focus","down"===t.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(t){s(this).toggleClass("ui-state-hover","mouseover"===t.type)}),this.options.content.button&&this._createButton()},y._removeTitle=function(t){var e=this.elements;e.title&&(e.titlebar.remove(),e.titlebar=e.title=e.button=C,t!==T&&this.reposition())},y.reposition=function(i,o){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=x;var n,r,a=this.cache,h=this.tooltip,d=this.options.position,l=d.target,c=d.my,u=d.at,p=d.viewport,f=d.container,g=d.adjust,m=g.method.split(" "),v=h.outerWidth(T),y=h.outerHeight(T),b=0,w=0,_=h.css("position"),C={left:0,top:0},j=h[0].offsetWidth>0,q=i&&"scroll"===i.type,z=s(t),L=f[0].ownerDocument,k=this.mouse;if(s.isArray(l)&&2===l.length)u={x:E,y:W},C={left:l[0],top:l[1]};else if("mouse"===l&&(i&&i.pageX||a.event.pageX))u={x:E,y:W},i=!k||!k.pageX||!g.mouse&&i&&i.pageX?(!i||"resize"!==i.type&&"scroll"!==i.type?i&&i.pageX&&"mousemove"===i.type?i:(!g.mouse||this.options.show.distance)&&a.origin&&a.origin.pageX?a.origin:i:a.event)||i||a.event||k||{}:k,"static"!==_&&(C=f.offset()),L.body.offsetWidth!==(t.innerWidth||L.documentElement.clientWidth)&&(r=s(L.body).offset()),C={left:i.pageX-C.left+(r&&r.left||0),top:i.pageY-C.top+(r&&r.top||0)},g.mouse&&q&&(C.left-=k.scrollX-z.scrollLeft(),C.top-=k.scrollY-z.scrollTop());else{if("event"===l&&i&&i.target&&"scroll"!==i.type&&"resize"!==i.type?a.target=s(i.target):"event"!==l&&(a.target=s(l.jquery?l:elements.target)),l=a.target,l=s(l).eq(0),0===l.length)return this;l[0]===e||l[0]===t?(b=BROWSER.iOS?t.innerWidth:l.width(),w=BROWSER.iOS?t.innerHeight:l.height(),l[0]===t&&(C={top:(p||l).scrollTop(),left:(p||l).scrollLeft()})):B.imagemap&&l.is("area")?n=B.imagemap(this,l,u,B.viewport?m:T):B.svg&&l[0].ownerSVGElement?n=B.svg(this,l,u,B.viewport?m:T):(b=l.outerWidth(T),w=l.outerHeight(T),C=l.offset()),n&&(b=n.width,w=n.height,r=n.offset,C=n.position),C=this.reposition.offset(l,C,f),(BROWSER.iOS>3.1&&4.1>BROWSER.iOS||BROWSER.iOS>=4.3&&4.33>BROWSER.iOS||!BROWSER.iOS&&"fixed"===_)&&(C.left-=z.scrollLeft(),C.top-=z.scrollTop()),(!n||n&&n.adjustable!==T)&&(C.left+=u.x===O?b:u.x===R?b/2:0,C.top+=u.y===S?w:u.y===R?w/2:0)}return C.left+=g.x+(c.x===O?-v:c.x===R?-v/2:0),C.top+=g.y+(c.y===S?-y:c.y===R?-y/2:0),B.viewport?(C.adjusted=B.viewport(this,C,d,b,w,v,y),r&&C.adjusted.left&&(C.left+=r.left),r&&C.adjusted.top&&(C.top+=r.top)):C.adjusted={left:0,top:0},this._trigger("move",[C,p.elem||p],i)?(delete C.adjusted,o===T||!j||isNaN(C.left)||isNaN(C.top)||"mouse"===l||!s.isFunction(d.effect)?h.css(C):s.isFunction(d.effect)&&(d.effect.call(h,this,s.extend({},C)),h.queue(function(t){s(this).css({opacity:"",height:""}),BROWSER.ie&&this.style.removeAttribute("filter"),t()})),this.positioning=T,this):this},y.reposition.offset=function(t,i,o){function n(t,e){i.left+=e*t.scrollLeft(),i.top+=e*t.scrollTop()}if(!o[0])return i;var r,a,h,d,l=s(t[0].ownerDocument),c=!!BROWSER.ie&&"CSS1Compat"!==e.compatMode,u=o[0];do"static"!==(a=s.css(u,"position"))&&("fixed"===a?(h=u.getBoundingClientRect(),n(l,-1)):(h=s(u).position(),h.left+=parseFloat(s.css(u,"borderLeftWidth"))||0,h.top+=parseFloat(s.css(u,"borderTopWidth"))||0),i.left-=h.left+(parseFloat(s.css(u,"marginLeft"))||0),i.top-=h.top+(parseFloat(s.css(u,"marginTop"))||0),r||"hidden"===(d=s.css(u,"overflow"))||"visible"===d||(r=s(u)));while(u=u.offsetParent);return r&&(r[0]!==l[0]||c)&&n(r,1),i};var U=(b=y.reposition.Corner=function(t,e){t=(""+t).replace(/([A-Z])/," $1").replace(/middle/gi,R).toLowerCase(),this.x=(t.match(/left|right/i)||t.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(t.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!e;var i=t.charAt(0);this.precedance="t"===i||"b"===i?q:j}).prototype;U.invert=function(t,e){this[t]=this[t]===E?O:this[t]===O?E:e||this[t]},U.string=function(){var t=this.x,e=this.y;return t===e?t:this.precedance===q||this.forceY&&"center"!==e?e+" "+t:t+" "+e},U.abbrev=function(){var t=this.string().split(" ");return t[0].charAt(0)+(t[1]&&t[1].charAt(0)||"")},U.clone=function(){return new b(this.string(),this.forceY)},y.toggle=function(t,i){var o=this.cache,n=this.options,r=this.tooltip;if(i){if(/over|enter/.test(i.type)&&/out|leave/.test(o.event.type)&&n.show.target.add(i.target).length===n.show.target.length&&r.has(i.relatedTarget).length)return this;o.event=s.extend({},i)}if(this.waiting&&!t&&(this.hiddenDuringWait=x),!this.rendered)return t?this.render(1):this;if(this.destroyed||this.disabled)return this;var a,h,d=t?"show":"hide",l=this.options[d],c=(this.options[t?"hide":"show"],this.options.position),u=this.options.content,p=this.tooltip.css("width"),f=this.tooltip[0].offsetWidth>0,g=t||1===l.target.length,m=!i||2>l.target.length||o.target[0]===i.target;return(typeof t).search("boolean|number")&&(t=!f),a=!r.is(":animated")&&f===t&&m,h=a?C:!!this._trigger(d,[90]),h!==T&&t&&this.focus(i),!h||a?this:(s.attr(r[0],"aria-hidden",!t),t?(o.origin=s.extend({},this.mouse),s.isFunction(u.text)&&this._updateContent(u.text,T),s.isFunction(u.title)&&this._updateTitle(u.title,T),!_&&"mouse"===c.target&&c.adjust.mouse&&(s(e).bind("mousemove."+z,this._storeMouse),_=x),p||r.css("width",r.outerWidth(T)),this.reposition(i,arguments[2]),p||r.css("width",""),l.solo&&("string"==typeof l.solo?s(l.solo):s(F,l.solo)).not(r).not(l.target).qtip("hide",s.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete o.origin,_&&!s(F+'[tracking="true"]:visible',l.solo).not(r).length&&(s(e).unbind("mousemove."+z),_=T),this.blur(i)),after=s.proxy(function(){t?(BROWSER.ie&&r[0].style.removeAttribute("filter"),r.css("overflow",""),"string"==typeof l.autofocus&&s(this.options.show.autofocus,r).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):r.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(t?"visible":"hidden")},this),l.effect===T||g===T?(r[d](),after()):s.isFunction(l.effect)?(r.stop(1,1),l.effect.call(r,this),r.queue("fx",function(t){after(),t()})):r.fadeTo(90,t?1:0,after),t&&l.target.trigger("qtip-"+this.id+"-inactive"),this)},y.show=function(t){return this.toggle(x,t)},y.hide=function(t){return this.toggle(T,t)},y.focus=function(t){if(!this.rendered||this.destroyed)return this;var e=s(F),i=this.tooltip,o=parseInt(i[0].style.zIndex,10),n=v.zindex+e.length;return i.hasClass(Y)||this._trigger("focus",[n],t)&&(o!==n&&(e.each(function(){this.style.zIndex>o&&(this.style.zIndex=this.style.zIndex-1)}),e.filter("."+Y).qtip("blur",t)),i.addClass(Y)[0].style.zIndex=n),this},y.blur=function(t){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(Y),this._trigger("blur",[this.tooltip.css("zIndex")],t),this)},y.disable=function(t){return this.destroyed?this:("boolean"!=typeof t&&(t=!(this.tooltip.hasClass(M)||this.disabled)),this.rendered&&this.tooltip.toggleClass(M,t).attr("aria-disabled",t),this.disabled=!!t,this)},y.enable=function(){return this.disable(T)},y._createButton=function(){var t=this,e=this.elements,i=e.tooltip,o=this.options.content.button,n="string"==typeof o,r=n?o:"Close tooltip";e.button&&e.button.remove(),e.button=o.jquery?o:s("<a />",{"class":"qtip-close "+(this.options.style.widget?"":z+"-icon"),title:r,"aria-label":r}).prepend(s("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"})),e.button.appendTo(e.titlebar||i).attr("role","button").click(function(e){return i.hasClass(M)||t.hide(e),T})},y._updateButton=function(t){if(!this.rendered)return T;var e=this.elements.button;t?this._createButton():e.remove()},y._setWidget=function(){var t=this.options.style.widget,e=this.elements,i=e.tooltip,s=i.hasClass(M);i.removeClass(M),M=t?"ui-state-disabled":"qtip-disabled",i.toggleClass(M,s),i.toggleClass("ui-helper-reset "+l(),t).toggleClass($,this.options.style.def&&!t),e.content&&e.content.toggleClass(l("content"),t),e.titlebar&&e.titlebar.toggleClass(l("header"),t),e.button&&e.button.toggleClass(z+"-icon",!t)},y._storeMouse=function(i){this.mouse={pageX:i.pageX,pageY:i.pageY,type:"mousemove",scrollX:t.pageXOffset||e.body.scrollLeft||e.documentElement.scrollLeft,scrollY:t.pageYOffset||e.body.scrollTop||e.documentElement.scrollTop}},y._bind=function(t,e,i,o,n){var r="."+this._id+(o?"-"+o:"");e.length&&s(t).bind((e.split?e:e.join(r+" "))+r,s.proxy(i,n||this))},y._unbind=function(t,e){s(t).unbind("."+this._id+(e?"-"+e:""))};var V="."+z;s(function(){g(F,["mouseenter","mouseleave"],function(t){var e="mouseenter"===t.type,i=s(t.currentTarget),o=s(t.relatedTarget||t.target),n=this.options;e?(this.focus(t),i.hasClass(X)&&!i.hasClass(M)&&clearTimeout(this.timers.hide)):"mouse"===n.position.target&&n.hide.event&&n.show.target&&!o.closest(n.show.target[0]).length&&this.hide(t),i.toggleClass(I,e)}),g("["+k+"]",D,p)}),y._trigger=function(t,e,i){var o=s.Event("tooltip"+t);return o.originalEvent=i&&s.extend({},i)||this.cache.event||C,this.triggering=x,this.tooltip.trigger(o,[this].concat(e||[])),this.triggering=T,!o.isDefaultPrevented()},y._assignEvents=function(){var o=this.options,n=o.position,r=this.tooltip,a=o.show.target,h=o.hide.target,d=n.container,l=n.viewport,g=s(e),m=(s(e.body),s(t)),y=o.show.event?s.trim(""+o.show.event).split(" "):[],b=o.hide.event?s.trim(""+o.hide.event).split(" "):[],w=[];/mouse(out|leave)/i.test(o.hide.event)&&"window"===o.hide.leave&&this._bind(g,["mouseout","blur"],function(t){/select|option/.test(t.target.nodeName)||t.relatedTarget||this.hide(t)}),o.hide.fixed?h=h.add(r.addClass(X)):/mouse(over|enter)/i.test(o.show.event)&&this._bind(h,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+o.hide.event).indexOf("unfocus")>-1&&this._bind(d.closest("html"),["mousedown","touchstart"],function(t){var e=s(t.target),i=this.rendered&&!this.tooltip.hasClass(M)&&this.tooltip[0].offsetWidth>0,o=e.parents(F).filter(this.tooltip[0]).length>0;e[0]===this.target[0]||e[0]===this.tooltip[0]||o||this.target.has(e[0]).length||!i||this.hide(t)}),"number"==typeof o.hide.inactive&&(this._bind(a,"qtip-"+this.id+"-inactive",p),this._bind(h.add(r),v.inactiveEvents,p,"-inactive")),b=s.map(b,function(t){var e=s.inArray(t,y);return e>-1&&h.add(a).length===h.length?(w.push(y.splice(e,1)[0]),i):t}),this._bind(a,y,c),this._bind(h,b,u),this._bind(a,w,function(t){(this.tooltip[0].offsetWidth>0?u:c).call(this,t)}),this._bind(a.add(r),"mousemove",function(t){if("number"==typeof o.hide.distance){var e=this.cache.origin||{},i=this.options.hide.distance,s=Math.abs;(s(t.pageX-e.pageX)>=i||s(t.pageY-e.pageY)>=i)&&this.hide(t)}this._storeMouse(t)}),"mouse"===n.target&&n.adjust.mouse&&(o.hide.event&&this._bind(a,["mouseenter","mouseleave"],function(t){this.cache.onTarget="mouseenter"===t.type}),this._bind(g,"mousemove",function(t){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(M)&&this.tooltip[0].offsetWidth>0&&this.reposition(t)})),(n.adjust.resize||l.length)&&this._bind(s.event.special.resize?l:m,"resize",f),n.adjust.scroll&&this._bind(m.add(n.container),"scroll",f)},y._unassignEvents=function(){var i=[this.options.show.target[0],this.options.hide.target[0],this.rendered&&this.tooltip[0],this.options.position.container[0],this.options.position.viewport[0],this.options.position.container.closest("html")[0],t,e];this.rendered?this._unbind(s([]).pushStack(s.grep(i,function(t){return"object"==typeof t}))):s(i[0]).unbind("."+this._id+"-create")},v=s.fn.qtip=function(t,e,o){var n=(""+t).toLowerCase(),r=C,h=s.makeArray(arguments).slice(1),d=h[h.length-1],l=this[0]?s.data(this[0],z):C;return!arguments.length&&l||"api"===n?l:"string"==typeof t?(this.each(function(){var t=s.data(this,z);if(!t)return x;if(d&&d.timeStamp&&(t.cache.event=d),!e||"option"!==n&&"options"!==n)t[n]&&t[n].apply(t,h);else{if(o===i&&!s.isPlainObject(e))return r=t.get(e),T;t.set(e,o)}}),r!==C?r:this):"object"!=typeof t&&arguments.length?i:(l=a(s.extend(x,{},t)),v.bind.call(this,l,d))},v.bind=function(t,e){return this.each(function(o){function n(t){function e(){l.render("object"==typeof t||r.show.ready),a.show.add(a.hide).unbind(d)}return l.disabled?T:(l.cache.event=s.extend({},t),l.cache.target=t?s(t.target):[i],r.show.delay>0?(clearTimeout(l.timers.show),l.timers.show=setTimeout(e,r.show.delay),h.show!==h.hide&&a.hide.bind(h.hide,function(){clearTimeout(l.timers.show)})):e(),i)}var r,a,h,d,l,c;return c=s.isArray(t.id)?t.id[o]:t.id,c=!c||c===T||1>c.length||v.api[c]?v.nextid++:c,d=".qtip-"+c+"-create",l=m(s(this),c,t),l===T?x:(v.api[c]=l,r=l.options,s.each(B,function(){"initialize"===this.initialize&&this(l)}),a={show:r.show.target,hide:r.hide.target},h={show:s.trim(""+r.show.event).replace(/ /g,d+" ")+d,hide:s.trim(""+r.hide.event).replace(/ /g,d+" ")+d},/mouse(over|enter)/i.test(h.show)&&!/mouse(out|leave)/i.test(h.hide)&&(h.hide+=" mouseleave"+d),a.show.bind("mousemove"+d,function(t){l._storeMouse(t),l.cache.onTarget=x}),a.show.bind(h.show,n),(r.show.ready||r.prerender)&&n(e),i)})},v.api={},s.each({attr:function(t,e){if(this.length){var i=this[0],o="title",n=s.data(i,"qtip");if(t===o&&n&&"object"==typeof n&&n.options.suppress)return 2>arguments.length?s.attr(i,P):(n&&n.options.content.attr===o&&n.cache.attr&&n.set("content.text",e),this.attr(P,e))}return s.fn["attr"+N].apply(this,arguments)},clone:function(t){var e=(s([]),s.fn["clone"+N].apply(this,arguments));return t||e.filter("["+P+"]").attr("title",function(){return s.attr(this,P)}).removeAttr(P),e}},function(t,e){if(!e||s.fn[t+N])return x;var i=s.fn[t+N]=s.fn[t];s.fn[t]=function(){return e.apply(this,arguments)||i.apply(this,arguments)}}),s.ui||(s["cleanData"+N]=s.cleanData,s.cleanData=function(t){for(var e,i=0;(e=s(t[i])).length;i++)if(e.attr(L))try{e.triggerHandler("removeqtip")}catch(o){}s["cleanData"+N].apply(this,arguments)}),v.version="2.1.1",v.nextid=0,v.inactiveEvents=D,v.zindex=15e3,v.defaults={prerender:T,id:T,overwrite:x,suppress:x,content:{text:x,attr:"title",title:T,button:T},position:{my:"top left",at:"bottom right",target:T,container:T,viewport:T,adjust:{x:0,y:0,mouse:x,scroll:x,resize:x,method:"flipinvert flipinvert"},effect:function(t,e){s(this).animate(e,{duration:200,queue:T})}},show:{target:T,event:"mouseenter",effect:x,delay:90,solo:T,ready:T,autofocus:T},hide:{target:T,event:"mouseleave",effect:x,delay:0,fixed:T,inactive:T,leave:"window",distance:T},style:{classes:"",widget:T,width:T,height:T,def:x},events:{render:C,move:C,show:C,hide:C,toggle:C,visible:C,hidden:C,focus:C,blur:C}}})})(window,document);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * qTip2 - Pretty powerful tooltips - v3.0.3
3
+ * http://qtip2.com
4
+ *
5
+ * Copyright (c) 2017
6
+ * Released under the MIT licenses
7
+ * http://jquery.org/license
8
+ *
9
+ * Date: Mon Aug 28 2017 05:13 EDT-0400
10
+ * Plugins: viewport
11
+ * Styles: core
12
+ */
13
+ /*global window: false, jQuery: false, console: false, define: false */
14
+
15
+ /* Cache window, document, undefined */
16
+ (function( window, document, undefined ) {
17
+
18
+ // Uses AMD or browser globals to create a jQuery plugin.
19
+ (function( factory ) {
20
+ "use strict";
21
+ if(typeof define === 'function' && define.amd) {
22
+ define(['jquery'], factory);
23
+ }
24
+ else if(jQuery && !jQuery.fn.qtip) {
25
+ factory(jQuery);
26
+ }
27
+ }
28
+ (function($) {
29
+ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
30
+ ;// Munge the primitives - Paul Irish tip
31
+ var TRUE = true,
32
+ FALSE = false,
33
+ NULL = null,
34
+
35
+ // Common variables
36
+ X = 'x', Y = 'y',
37
+ WIDTH = 'width',
38
+ HEIGHT = 'height',
39
+
40
+ // Positioning sides
41
+ TOP = 'top',
42
+ LEFT = 'left',
43
+ BOTTOM = 'bottom',
44
+ RIGHT = 'right',
45
+ CENTER = 'center',
46
+
47
+ // Position adjustment types
48
+ FLIP = 'flip',
49
+ FLIPINVERT = 'flipinvert',
50
+ SHIFT = 'shift',
51
+
52
+ // Shortcut vars
53
+ QTIP, PROTOTYPE, CORNER, CHECKS,
54
+ PLUGINS = {},
55
+ NAMESPACE = 'qtip',
56
+ ATTR_HAS = 'data-hasqtip',
57
+ ATTR_ID = 'data-qtip-id',
58
+ WIDGET = ['ui-widget', 'ui-tooltip'],
59
+ SELECTOR = '.'+NAMESPACE,
60
+ INACTIVE_EVENTS = 'click dblclick mousedown mouseup mousemove mouseleave mouseenter'.split(' '),
61
+
62
+ CLASS_FIXED = NAMESPACE+'-fixed',
63
+ CLASS_DEFAULT = NAMESPACE + '-default',
64
+ CLASS_FOCUS = NAMESPACE + '-focus',
65
+ CLASS_HOVER = NAMESPACE + '-hover',
66
+ CLASS_DISABLED = NAMESPACE+'-disabled',
67
+
68
+ replaceSuffix = '_replacedByqTip',
69
+ oldtitle = 'oldtitle',
70
+ trackingBound,
71
+
72
+ // Browser detection
73
+ BROWSER = {
74
+ /*
75
+ * IE version detection
76
+ *
77
+ * Adapted from: http://ajaxian.com/archives/attack-of-the-ie-conditional-comment
78
+ * Credit to James Padolsey for the original implemntation!
79
+ */
80
+ ie: (function() {
81
+ /* eslint-disable no-empty */
82
+ var v, i;
83
+ for (
84
+ v = 4, i = document.createElement('div');
85
+ (i.innerHTML = '<!--[if gt IE ' + v + ']><i></i><![endif]-->') && i.getElementsByTagName('i')[0];
86
+ v+=1
87
+ ) {}
88
+ return v > 4 ? v : NaN;
89
+ /* eslint-enable no-empty */
90
+ })(),
91
+
92
+ /*
93
+ * iOS version detection
94
+ */
95
+ iOS: parseFloat(
96
+ ('' + (/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent) || [0,''])[1])
97
+ .replace('undefined', '3_2').replace('_', '.').replace('_', '')
98
+ ) || FALSE
99
+ };
100
+ ;function QTip(target, options, id, attr) {
101
+ // Elements and ID
102
+ this.id = id;
103
+ this.target = target;
104
+ this.tooltip = NULL;
105
+ this.elements = { target: target };
106
+
107
+ // Internal constructs
108
+ this._id = NAMESPACE + '-' + id;
109
+ this.timers = { img: {} };
110
+ this.options = options;
111
+ this.plugins = {};
112
+
113
+ // Cache object
114
+ this.cache = {
115
+ event: {},
116
+ target: $(),
117
+ disabled: FALSE,
118
+ attr: attr,
119
+ onTooltip: FALSE,
120
+ lastClass: ''
121
+ };
122
+
123
+ // Set the initial flags
124
+ this.rendered = this.destroyed = this.disabled = this.waiting =
125
+ this.hiddenDuringWait = this.positioning = this.triggering = FALSE;
126
+ }
127
+ PROTOTYPE = QTip.prototype;
128
+
129
+ PROTOTYPE._when = function(deferreds) {
130
+ return $.when.apply($, deferreds);
131
+ };
132
+
133
+ PROTOTYPE.render = function(show) {
134
+ if(this.rendered || this.destroyed) { return this; } // If tooltip has already been rendered, exit
135
+
136
+ var self = this,
137
+ options = this.options,
138
+ cache = this.cache,
139
+ elements = this.elements,
140
+ text = options.content.text,
141
+ title = options.content.title,
142
+ button = options.content.button,
143
+ posOptions = options.position,
144
+ deferreds = [];
145
+
146
+ // Add ARIA attributes to target
147
+ $.attr(this.target[0], 'aria-describedby', this._id);
148
+
149
+ // Create public position object that tracks current position corners
150
+ cache.posClass = this._createPosClass(
151
+ (this.position = { my: posOptions.my, at: posOptions.at }).my
152
+ );
153
+
154
+ // Create tooltip element
155
+ this.tooltip = elements.tooltip = $('<div/>', {
156
+ 'id': this._id,
157
+ 'class': [ NAMESPACE, CLASS_DEFAULT, options.style.classes, cache.posClass ].join(' '),
158
+ 'width': options.style.width || '',
159
+ 'height': options.style.height || '',
160
+ 'tracking': posOptions.target === 'mouse' && posOptions.adjust.mouse,
161
+
162
+ /* ARIA specific attributes */
163
+ 'role': 'alert',
164
+ 'aria-live': 'polite',
165
+ 'aria-atomic': FALSE,
166
+ 'aria-describedby': this._id + '-content',
167
+ 'aria-hidden': TRUE
168
+ })
169
+ .toggleClass(CLASS_DISABLED, this.disabled)
170
+ .attr(ATTR_ID, this.id)
171
+ .data(NAMESPACE, this)
172
+ .appendTo(posOptions.container)
173
+ .append(
174
+ // Create content element
175
+ elements.content = $('<div />', {
176
+ 'class': NAMESPACE + '-content',
177
+ 'id': this._id + '-content',
178
+ 'aria-atomic': TRUE
179
+ })
180
+ );
181
+
182
+ // Set rendered flag and prevent redundant reposition calls for now
183
+ this.rendered = -1;
184
+ this.positioning = TRUE;
185
+
186
+ // Create title...
187
+ if(title) {
188
+ this._createTitle();
189
+
190
+ // Update title only if its not a callback (called in toggle if so)
191
+ if(!$.isFunction(title)) {
192
+ deferreds.push( this._updateTitle(title, FALSE) );
193
+ }
194
+ }
195
+
196
+ // Create button
197
+ if(button) { this._createButton(); }
198
+
199
+ // Set proper rendered flag and update content if not a callback function (called in toggle)
200
+ if(!$.isFunction(text)) {
201
+ deferreds.push( this._updateContent(text, FALSE) );
202
+ }
203
+ this.rendered = TRUE;
204
+
205
+ // Setup widget classes
206
+ this._setWidget();
207
+
208
+ // Initialize 'render' plugins
209
+ $.each(PLUGINS, function(name) {
210
+ var instance;
211
+ if(this.initialize === 'render' && (instance = this(self))) {
212
+ self.plugins[name] = instance;
213
+ }
214
+ });
215
+
216
+ // Unassign initial events and assign proper events
217
+ this._unassignEvents();
218
+ this._assignEvents();
219
+
220
+ // When deferreds have completed
221
+ this._when(deferreds).then(function() {
222
+ // tooltiprender event
223
+ self._trigger('render');
224
+
225
+ // Reset flags
226
+ self.positioning = FALSE;
227
+
228
+ // Show tooltip if not hidden during wait period
229
+ if(!self.hiddenDuringWait && (options.show.ready || show)) {
230
+ self.toggle(TRUE, cache.event, FALSE);
231
+ }
232
+ self.hiddenDuringWait = FALSE;
233
+ });
234
+
235
+ // Expose API
236
+ QTIP.api[this.id] = this;
237
+
238
+ return this;
239
+ };
240
+
241
+ PROTOTYPE.destroy = function(immediate) {
242
+ // Set flag the signify destroy is taking place to plugins
243
+ // and ensure it only gets destroyed once!
244
+ if(this.destroyed) { return this.target; }
245
+
246
+ function process() {
247
+ if(this.destroyed) { return; }
248
+ this.destroyed = TRUE;
249
+
250
+ var target = this.target,
251
+ title = target.attr(oldtitle),
252
+ timer;
253
+
254
+ // Destroy tooltip if rendered
255
+ if(this.rendered) {
256
+ this.tooltip.stop(1,0).find('*').remove().end().remove();
257
+ }
258
+
259
+ // Destroy all plugins
260
+ $.each(this.plugins, function() {
261
+ this.destroy && this.destroy();
262
+ });
263
+
264
+ // Clear timers
265
+ for (timer in this.timers) {
266
+ if (this.timers.hasOwnProperty(timer)) {
267
+ clearTimeout(this.timers[timer]);
268
+ }
269
+ }
270
+
271
+ // Remove api object and ARIA attributes
272
+ target.removeData(NAMESPACE)
273
+ .removeAttr(ATTR_ID)
274
+ .removeAttr(ATTR_HAS)
275
+ .removeAttr('aria-describedby');
276
+
277
+ // Reset old title attribute if removed
278
+ if(this.options.suppress && title) {
279
+ target.attr('title', title).removeAttr(oldtitle);
280
+ }
281
+
282
+ // Remove qTip events associated with this API
283
+ this._unassignEvents();
284
+
285
+ // Remove ID from used id objects, and delete object references
286
+ // for better garbage collection and leak protection
287
+ this.options = this.elements = this.cache = this.timers =
288
+ this.plugins = this.mouse = NULL;
289
+
290
+ // Delete epoxsed API object
291
+ delete QTIP.api[this.id];
292
+ }
293
+
294
+ // If an immediate destroy is needed
295
+ if((immediate !== TRUE || this.triggering === 'hide') && this.rendered) {
296
+ this.tooltip.one('tooltiphidden', $.proxy(process, this));
297
+ !this.triggering && this.hide();
298
+ }
299
+
300
+ // If we're not in the process of hiding... process
301
+ else { process.call(this); }
302
+
303
+ return this.target;
304
+ };
305
+ ;function invalidOpt(a) {
306
+ return a === NULL || $.type(a) !== 'object';
307
+ }
308
+
309
+ function invalidContent(c) {
310
+ return !($.isFunction(c) ||
311
+ c && c.attr ||
312
+ c.length ||
313
+ $.type(c) === 'object' && (c.jquery || c.then));
314
+ }
315
+
316
+ // Option object sanitizer
317
+ function sanitizeOptions(opts) {
318
+ var content, text, ajax, once;
319
+
320
+ if(invalidOpt(opts)) { return FALSE; }
321
+
322
+ if(invalidOpt(opts.metadata)) {
323
+ opts.metadata = { type: opts.metadata };
324
+ }
325
+
326
+ if('content' in opts) {
327
+ content = opts.content;
328
+
329
+ if(invalidOpt(content) || content.jquery || content.done) {
330
+ text = invalidContent(content) ? FALSE : content;
331
+ content = opts.content = {
332
+ text: text
333
+ };
334
+ }
335
+ else { text = content.text; }
336
+
337
+ // DEPRECATED - Old content.ajax plugin functionality
338
+ // Converts it into the proper Deferred syntax
339
+ if('ajax' in content) {
340
+ ajax = content.ajax;
341
+ once = ajax && ajax.once !== FALSE;
342
+ delete content.ajax;
343
+
344
+ content.text = function(event, api) {
345
+ var loading = text || $(this).attr(api.options.content.attr) || 'Loading...',
346
+
347
+ deferred = $.ajax(
348
+ $.extend({}, ajax, { context: api })
349
+ )
350
+ .then(ajax.success, NULL, ajax.error)
351
+ .then(function(newContent) {
352
+ if(newContent && once) { api.set('content.text', newContent); }
353
+ return newContent;
354
+ },
355
+ function(xhr, status, error) {
356
+ if(api.destroyed || xhr.status === 0) { return; }
357
+ api.set('content.text', status + ': ' + error);
358
+ });
359
+
360
+ return !once ? (api.set('content.text', loading), deferred) : loading;
361
+ };
362
+ }
363
+
364
+ if('title' in content) {
365
+ if($.isPlainObject(content.title)) {
366
+ content.button = content.title.button;
367
+ content.title = content.title.text;
368
+ }
369
+
370
+ if(invalidContent(content.title || FALSE)) {
371
+ content.title = FALSE;
372
+ }
373
+ }
374
+ }
375
+
376
+ if('position' in opts && invalidOpt(opts.position)) {
377
+ opts.position = { my: opts.position, at: opts.position };
378
+ }
379
+
380
+ if('show' in opts && invalidOpt(opts.show)) {
381
+ opts.show = opts.show.jquery ? { target: opts.show } :
382
+ opts.show === TRUE ? { ready: TRUE } : { event: opts.show };
383
+ }
384
+
385
+ if('hide' in opts && invalidOpt(opts.hide)) {
386
+ opts.hide = opts.hide.jquery ? { target: opts.hide } : { event: opts.hide };
387
+ }
388
+
389
+ if('style' in opts && invalidOpt(opts.style)) {
390
+ opts.style = { classes: opts.style };
391
+ }
392
+
393
+ // Sanitize plugin options
394
+ $.each(PLUGINS, function() {
395
+ this.sanitize && this.sanitize(opts);
396
+ });
397
+
398
+ return opts;
399
+ }
400
+
401
+ // Setup builtin .set() option checks
402
+ CHECKS = PROTOTYPE.checks = {
403
+ builtin: {
404
+ // Core checks
405
+ '^id$': function(obj, o, v, prev) {
406
+ var id = v === TRUE ? QTIP.nextid : v,
407
+ newId = NAMESPACE + '-' + id;
408
+
409
+ if(id !== FALSE && id.length > 0 && !$('#'+newId).length) {
410
+ this._id = newId;
411
+
412
+ if(this.rendered) {
413
+ this.tooltip[0].id = this._id;
414
+ this.elements.content[0].id = this._id + '-content';
415
+ this.elements.title[0].id = this._id + '-title';
416
+ }
417
+ }
418
+ else { obj[o] = prev; }
419
+ },
420
+ '^prerender': function(obj, o, v) {
421
+ v && !this.rendered && this.render(this.options.show.ready);
422
+ },
423
+
424
+ // Content checks
425
+ '^content.text$': function(obj, o, v) {
426
+ this._updateContent(v);
427
+ },
428
+ '^content.attr$': function(obj, o, v, prev) {
429
+ if(this.options.content.text === this.target.attr(prev)) {
430
+ this._updateContent( this.target.attr(v) );
431
+ }
432
+ },
433
+ '^content.title$': function(obj, o, v) {
434
+ // Remove title if content is null
435
+ if(!v) { return this._removeTitle(); }
436
+
437
+ // If title isn't already created, create it now and update
438
+ v && !this.elements.title && this._createTitle();
439
+ this._updateTitle(v);
440
+ },
441
+ '^content.button$': function(obj, o, v) {
442
+ this._updateButton(v);
443
+ },
444
+ '^content.title.(text|button)$': function(obj, o, v) {
445
+ this.set('content.'+o, v); // Backwards title.text/button compat
446
+ },
447
+
448
+ // Position checks
449
+ '^position.(my|at)$': function(obj, o, v){
450
+ if('string' === typeof v) {
451
+ this.position[o] = obj[o] = new CORNER(v, o === 'at');
452
+ }
453
+ },
454
+ '^position.container$': function(obj, o, v){
455
+ this.rendered && this.tooltip.appendTo(v);
456
+ },
457
+
458
+ // Show checks
459
+ '^show.ready$': function(obj, o, v) {
460
+ v && (!this.rendered && this.render(TRUE) || this.toggle(TRUE));
461
+ },
462
+
463
+ // Style checks
464
+ '^style.classes$': function(obj, o, v, p) {
465
+ this.rendered && this.tooltip.removeClass(p).addClass(v);
466
+ },
467
+ '^style.(width|height)': function(obj, o, v) {
468
+ this.rendered && this.tooltip.css(o, v);
469
+ },
470
+ '^style.widget|content.title': function() {
471
+ this.rendered && this._setWidget();
472
+ },
473
+ '^style.def': function(obj, o, v) {
474
+ this.rendered && this.tooltip.toggleClass(CLASS_DEFAULT, !!v);
475
+ },
476
+
477
+ // Events check
478
+ '^events.(render|show|move|hide|focus|blur)$': function(obj, o, v) {
479
+ this.rendered && this.tooltip[($.isFunction(v) ? '' : 'un') + 'bind']('tooltip'+o, v);
480
+ },
481
+
482
+ // Properties which require event reassignment
483
+ '^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)': function() {
484
+ if(!this.rendered) { return; }
485
+
486
+ // Set tracking flag
487
+ var posOptions = this.options.position;
488
+ this.tooltip.attr('tracking', posOptions.target === 'mouse' && posOptions.adjust.mouse);
489
+
490
+ // Reassign events
491
+ this._unassignEvents();
492
+ this._assignEvents();
493
+ }
494
+ }
495
+ };
496
+
497
+ // Dot notation converter
498
+ function convertNotation(options, notation) {
499
+ var i = 0, obj, option = options,
500
+
501
+ // Split notation into array
502
+ levels = notation.split('.');
503
+
504
+ // Loop through
505
+ while(option = option[ levels[i++] ]) {
506
+ if(i < levels.length) { obj = option; }
507
+ }
508
+
509
+ return [obj || options, levels.pop()];
510
+ }
511
+
512
+ PROTOTYPE.get = function(notation) {
513
+ if(this.destroyed) { return this; }
514
+
515
+ var o = convertNotation(this.options, notation.toLowerCase()),
516
+ result = o[0][ o[1] ];
517
+
518
+ return result.precedance ? result.string() : result;
519
+ };
520
+
521
+ function setCallback(notation, args) {
522
+ var category, rule, match;
523
+
524
+ for(category in this.checks) {
525
+ if (!this.checks.hasOwnProperty(category)) { continue; }
526
+
527
+ for(rule in this.checks[category]) {
528
+ if (!this.checks[category].hasOwnProperty(rule)) { continue; }
529
+
530
+ if(match = (new RegExp(rule, 'i')).exec(notation)) {
531
+ args.push(match);
532
+
533
+ if(category === 'builtin' || this.plugins[category]) {
534
+ this.checks[category][rule].apply(
535
+ this.plugins[category] || this, args
536
+ );
537
+ }
538
+ }
539
+ }
540
+ }
541
+ }
542
+
543
+ var rmove = /^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,
544
+ rrender = /^prerender|show\.ready/i;
545
+
546
+ PROTOTYPE.set = function(option, value) {
547
+ if(this.destroyed) { return this; }
548
+
549
+ var rendered = this.rendered,
550
+ reposition = FALSE,
551
+ options = this.options,
552
+ name;
553
+
554
+ // Convert singular option/value pair into object form
555
+ if('string' === typeof option) {
556
+ name = option; option = {}; option[name] = value;
557
+ }
558
+ else { option = $.extend({}, option); }
559
+
560
+ // Set all of the defined options to their new values
561
+ $.each(option, function(notation, val) {
562
+ if(rendered && rrender.test(notation)) {
563
+ delete option[notation]; return;
564
+ }
565
+
566
+ // Set new obj value
567
+ var obj = convertNotation(options, notation.toLowerCase()), previous;
568
+ previous = obj[0][ obj[1] ];
569
+ obj[0][ obj[1] ] = val && val.nodeType ? $(val) : val;
570
+
571
+ // Also check if we need to reposition
572
+ reposition = rmove.test(notation) || reposition;
573
+
574
+ // Set the new params for the callback
575
+ option[notation] = [obj[0], obj[1], val, previous];
576
+ });
577
+
578
+ // Re-sanitize options
579
+ sanitizeOptions(options);
580
+
581
+ /*
582
+ * Execute any valid callbacks for the set options
583
+ * Also set positioning flag so we don't get loads of redundant repositioning calls.
584
+ */
585
+ this.positioning = TRUE;
586
+ $.each(option, $.proxy(setCallback, this));
587
+ this.positioning = FALSE;
588
+
589
+ // Update position if needed
590
+ if(this.rendered && this.tooltip[0].offsetWidth > 0 && reposition) {
591
+ this.reposition( options.position.target === 'mouse' ? NULL : this.cache.event );
592
+ }
593
+
594
+ return this;
595
+ };
596
+ ;PROTOTYPE._update = function(content, element) {
597
+ var self = this,
598
+ cache = this.cache;
599
+
600
+ // Make sure tooltip is rendered and content is defined. If not return
601
+ if(!this.rendered || !content) { return FALSE; }
602
+
603
+ // Use function to parse content
604
+ if($.isFunction(content)) {
605
+ content = content.call(this.elements.target, cache.event, this) || '';
606
+ }
607
+
608
+ // Handle deferred content
609
+ if($.isFunction(content.then)) {
610
+ cache.waiting = TRUE;
611
+ return content.then(function(c) {
612
+ cache.waiting = FALSE;
613
+ return self._update(c, element);
614
+ }, NULL, function(e) {
615
+ return self._update(e, element);
616
+ });
617
+ }
618
+
619
+ // If content is null... return false
620
+ if(content === FALSE || !content && content !== '') { return FALSE; }
621
+
622
+ // Append new content if its a DOM array and show it if hidden
623
+ if(content.jquery && content.length > 0) {
624
+ element.empty().append(
625
+ content.css({ display: 'block', visibility: 'visible' })
626
+ );
627
+ }
628
+
629
+ // Content is a regular string, insert the new content
630
+ else { element.html(content); }
631
+
632
+ // Wait for content to be loaded, and reposition
633
+ return this._waitForContent(element).then(function(images) {
634
+ if(self.rendered && self.tooltip[0].offsetWidth > 0) {
635
+ self.reposition(cache.event, !images.length);
636
+ }
637
+ });
638
+ };
639
+
640
+ PROTOTYPE._waitForContent = function(element) {
641
+ var cache = this.cache;
642
+
643
+ // Set flag
644
+ cache.waiting = TRUE;
645
+
646
+ // If imagesLoaded is included, ensure images have loaded and return promise
647
+ return ( $.fn.imagesLoaded ? element.imagesLoaded() : new $.Deferred().resolve([]) )
648
+ .done(function() { cache.waiting = FALSE; })
649
+ .promise();
650
+ };
651
+
652
+ PROTOTYPE._updateContent = function(content, reposition) {
653
+ this._update(content, this.elements.content, reposition);
654
+ };
655
+
656
+ PROTOTYPE._updateTitle = function(content, reposition) {
657
+ if(this._update(content, this.elements.title, reposition) === FALSE) {
658
+ this._removeTitle(FALSE);
659
+ }
660
+ };
661
+
662
+ PROTOTYPE._createTitle = function()
663
+ {
664
+ var elements = this.elements,
665
+ id = this._id+'-title';
666
+
667
+ // Destroy previous title element, if present
668
+ if(elements.titlebar) { this._removeTitle(); }
669
+
670
+ // Create title bar and title elements
671
+ elements.titlebar = $('<div />', {
672
+ 'class': NAMESPACE + '-titlebar ' + (this.options.style.widget ? createWidgetClass('header') : '')
673
+ })
674
+ .append(
675
+ elements.title = $('<div />', {
676
+ 'id': id,
677
+ 'class': NAMESPACE + '-title',
678
+ 'aria-atomic': TRUE
679
+ })
680
+ )
681
+ .insertBefore(elements.content)
682
+
683
+ // Button-specific events
684
+ .delegate('.qtip-close', 'mousedown keydown mouseup keyup mouseout', function(event) {
685
+ $(this).toggleClass('ui-state-active ui-state-focus', event.type.substr(-4) === 'down');
686
+ })
687
+ .delegate('.qtip-close', 'mouseover mouseout', function(event){
688
+ $(this).toggleClass('ui-state-hover', event.type === 'mouseover');
689
+ });
690
+
691
+ // Create button if enabled
692
+ if(this.options.content.button) { this._createButton(); }
693
+ };
694
+
695
+ PROTOTYPE._removeTitle = function(reposition)
696
+ {
697
+ var elements = this.elements;
698
+
699
+ if(elements.title) {
700
+ elements.titlebar.remove();
701
+ elements.titlebar = elements.title = elements.button = NULL;
702
+
703
+ // Reposition if enabled
704
+ if(reposition !== FALSE) { this.reposition(); }
705
+ }
706
+ };
707
+ ;PROTOTYPE._createPosClass = function(my) {
708
+ return NAMESPACE + '-pos-' + (my || this.options.position.my).abbrev();
709
+ };
710
+
711
+ PROTOTYPE.reposition = function(event, effect) {
712
+ if(!this.rendered || this.positioning || this.destroyed) { return this; }
713
+
714
+ // Set positioning flag
715
+ this.positioning = TRUE;
716
+
717
+ var cache = this.cache,
718
+ tooltip = this.tooltip,
719
+ posOptions = this.options.position,
720
+ target = posOptions.target,
721
+ my = posOptions.my,
722
+ at = posOptions.at,
723
+ viewport = posOptions.viewport,
724
+ container = posOptions.container,
725
+ adjust = posOptions.adjust,
726
+ method = adjust.method.split(' '),
727
+ tooltipWidth = tooltip.outerWidth(FALSE),
728
+ tooltipHeight = tooltip.outerHeight(FALSE),
729
+ targetWidth = 0,
730
+ targetHeight = 0,
731
+ type = tooltip.css('position'),
732
+ position = { left: 0, top: 0 },
733
+ visible = tooltip[0].offsetWidth > 0,
734
+ isScroll = event && event.type === 'scroll',
735
+ win = $(window),
736
+ doc = container[0].ownerDocument,
737
+ mouse = this.mouse,
738
+ pluginCalculations, offset, adjusted, newClass;
739
+
740
+ // Check if absolute position was passed
741
+ if($.isArray(target) && target.length === 2) {
742
+ // Force left top and set position
743
+ at = { x: LEFT, y: TOP };
744
+ position = { left: target[0], top: target[1] };
745
+ }
746
+
747
+ // Check if mouse was the target
748
+ else if(target === 'mouse') {
749
+ // Force left top to allow flipping
750
+ at = { x: LEFT, y: TOP };
751
+
752
+ // Use the mouse origin that caused the show event, if distance hiding is enabled
753
+ if((!adjust.mouse || this.options.hide.distance) && cache.origin && cache.origin.pageX) {
754
+ event = cache.origin;
755
+ }
756
+
757
+ // Use cached event for resize/scroll events
758
+ else if(!event || event && (event.type === 'resize' || event.type === 'scroll')) {
759
+ event = cache.event;
760
+ }
761
+
762
+ // Otherwise, use the cached mouse coordinates if available
763
+ else if(mouse && mouse.pageX) {
764
+ event = mouse;
765
+ }
766
+
767
+ // Calculate body and container offset and take them into account below
768
+ if(type !== 'static') { position = container.offset(); }
769
+ if(doc.body.offsetWidth !== (window.innerWidth || doc.documentElement.clientWidth)) {
770
+ offset = $(document.body).offset();
771
+ }
772
+
773
+ // Use event coordinates for position
774
+ position = {
775
+ left: event.pageX - position.left + (offset && offset.left || 0),
776
+ top: event.pageY - position.top + (offset && offset.top || 0)
777
+ };
778
+
779
+ // Scroll events are a pain, some browsers
780
+ if(adjust.mouse && isScroll && mouse) {
781
+ position.left -= (mouse.scrollX || 0) - win.scrollLeft();
782
+ position.top -= (mouse.scrollY || 0) - win.scrollTop();
783
+ }
784
+ }
785
+
786
+ // Target wasn't mouse or absolute...
787
+ else {
788
+ // Check if event targetting is being used
789
+ if(target === 'event') {
790
+ if(event && event.target && event.type !== 'scroll' && event.type !== 'resize') {
791
+ cache.target = $(event.target);
792
+ }
793
+ else if(!event.target) {
794
+ cache.target = this.elements.target;
795
+ }
796
+ }
797
+ else if(target !== 'event'){
798
+ cache.target = $(target.jquery ? target : this.elements.target);
799
+ }
800
+ target = cache.target;
801
+
802
+ // Parse the target into a jQuery object and make sure there's an element present
803
+ target = $(target).eq(0);
804
+ if(target.length === 0) { return this; }
805
+
806
+ // Check if window or document is the target
807
+ else if(target[0] === document || target[0] === window) {
808
+ targetWidth = BROWSER.iOS ? window.innerWidth : target.width();
809
+ targetHeight = BROWSER.iOS ? window.innerHeight : target.height();
810
+
811
+ if(target[0] === window) {
812
+ position = {
813
+ top: (viewport || target).scrollTop(),
814
+ left: (viewport || target).scrollLeft()
815
+ };
816
+ }
817
+ }
818
+
819
+ // Check if the target is an <AREA> element
820
+ else if(PLUGINS.imagemap && target.is('area')) {
821
+ pluginCalculations = PLUGINS.imagemap(this, target, at, PLUGINS.viewport ? method : FALSE);
822
+ }
823
+
824
+ // Check if the target is an SVG element
825
+ else if(PLUGINS.svg && target && target[0].ownerSVGElement) {
826
+ pluginCalculations = PLUGINS.svg(this, target, at, PLUGINS.viewport ? method : FALSE);
827
+ }
828
+
829
+ // Otherwise use regular jQuery methods
830
+ else {
831
+ targetWidth = target.outerWidth(FALSE);
832
+ targetHeight = target.outerHeight(FALSE);
833
+ position = target.offset();
834
+ }
835
+
836
+ // Parse returned plugin values into proper variables
837
+ if(pluginCalculations) {
838
+ targetWidth = pluginCalculations.width;
839
+ targetHeight = pluginCalculations.height;
840
+ offset = pluginCalculations.offset;
841
+ position = pluginCalculations.position;
842
+ }
843
+
844
+ // Adjust position to take into account offset parents
845
+ position = this.reposition.offset(target, position, container);
846
+
847
+ // Adjust for position.fixed tooltips (and also iOS scroll bug in v3.2-4.0 & v4.3-4.3.2)
848
+ if(BROWSER.iOS > 3.1 && BROWSER.iOS < 4.1 ||
849
+ BROWSER.iOS >= 4.3 && BROWSER.iOS < 4.33 ||
850
+ !BROWSER.iOS && type === 'fixed'
851
+ ){
852
+ position.left -= win.scrollLeft();
853
+ position.top -= win.scrollTop();
854
+ }
855
+
856
+ // Adjust position relative to target
857
+ if(!pluginCalculations || pluginCalculations && pluginCalculations.adjustable !== FALSE) {
858
+ position.left += at.x === RIGHT ? targetWidth : at.x === CENTER ? targetWidth / 2 : 0;
859
+ position.top += at.y === BOTTOM ? targetHeight : at.y === CENTER ? targetHeight / 2 : 0;
860
+ }
861
+ }
862
+
863
+ // Adjust position relative to tooltip
864
+ position.left += adjust.x + (my.x === RIGHT ? -tooltipWidth : my.x === CENTER ? -tooltipWidth / 2 : 0);
865
+ position.top += adjust.y + (my.y === BOTTOM ? -tooltipHeight : my.y === CENTER ? -tooltipHeight / 2 : 0);
866
+
867
+ // Use viewport adjustment plugin if enabled
868
+ if(PLUGINS.viewport) {
869
+ adjusted = position.adjusted = PLUGINS.viewport(
870
+ this, position, posOptions, targetWidth, targetHeight, tooltipWidth, tooltipHeight
871
+ );
872
+
873
+ // Apply offsets supplied by positioning plugin (if used)
874
+ if(offset && adjusted.left) { position.left += offset.left; }
875
+ if(offset && adjusted.top) { position.top += offset.top; }
876
+
877
+ // Apply any new 'my' position
878
+ if(adjusted.my) { this.position.my = adjusted.my; }
879
+ }
880
+
881
+ // Viewport adjustment is disabled, set values to zero
882
+ else { position.adjusted = { left: 0, top: 0 }; }
883
+
884
+ // Set tooltip position class if it's changed
885
+ if(cache.posClass !== (newClass = this._createPosClass(this.position.my))) {
886
+ cache.posClass = newClass;
887
+ tooltip.removeClass(cache.posClass).addClass(newClass);
888
+ }
889
+
890
+ // tooltipmove event
891
+ if(!this._trigger('move', [position, viewport.elem || viewport], event)) { return this; }
892
+ delete position.adjusted;
893
+
894
+ // If effect is disabled, target it mouse, no animation is defined or positioning gives NaN out, set CSS directly
895
+ if(effect === FALSE || !visible || isNaN(position.left) || isNaN(position.top) || target === 'mouse' || !$.isFunction(posOptions.effect)) {
896
+ tooltip.css(position);
897
+ }
898
+
899
+ // Use custom function if provided
900
+ else if($.isFunction(posOptions.effect)) {
901
+ posOptions.effect.call(tooltip, this, $.extend({}, position));
902
+ tooltip.queue(function(next) {
903
+ // Reset attributes to avoid cross-browser rendering bugs
904
+ $(this).css({ opacity: '', height: '' });
905
+ if(BROWSER.ie) { this.style.removeAttribute('filter'); }
906
+
907
+ next();
908
+ });
909
+ }
910
+
911
+ // Set positioning flag
912
+ this.positioning = FALSE;
913
+
914
+ return this;
915
+ };
916
+
917
+ // Custom (more correct for qTip!) offset calculator
918
+ PROTOTYPE.reposition.offset = function(elem, pos, container) {
919
+ if(!container[0]) { return pos; }
920
+
921
+ var ownerDocument = $(elem[0].ownerDocument),
922
+ quirks = !!BROWSER.ie && document.compatMode !== 'CSS1Compat',
923
+ parent = container[0],
924
+ scrolled, position, parentOffset, overflow;
925
+
926
+ function scroll(e, i) {
927
+ pos.left += i * e.scrollLeft();
928
+ pos.top += i * e.scrollTop();
929
+ }
930
+
931
+ // Compensate for non-static containers offset
932
+ do {
933
+ if((position = $.css(parent, 'position')) !== 'static') {
934
+ if(position === 'fixed') {
935
+ parentOffset = parent.getBoundingClientRect();
936
+ scroll(ownerDocument, -1);
937
+ }
938
+ else {
939
+ parentOffset = $(parent).position();
940
+ parentOffset.left += parseFloat($.css(parent, 'borderLeftWidth')) || 0;
941
+ parentOffset.top += parseFloat($.css(parent, 'borderTopWidth')) || 0;
942
+ }
943
+
944
+ pos.left -= parentOffset.left + (parseFloat($.css(parent, 'marginLeft')) || 0);
945
+ pos.top -= parentOffset.top + (parseFloat($.css(parent, 'marginTop')) || 0);
946
+
947
+ // If this is the first parent element with an overflow of "scroll" or "auto", store it
948
+ if(!scrolled && (overflow = $.css(parent, 'overflow')) !== 'hidden' && overflow !== 'visible') { scrolled = $(parent); }
949
+ }
950
+ }
951
+ while(parent = parent.offsetParent);
952
+
953
+ // Compensate for containers scroll if it also has an offsetParent (or in IE quirks mode)
954
+ if(scrolled && (scrolled[0] !== ownerDocument[0] || quirks)) {
955
+ scroll(scrolled, 1);
956
+ }
957
+
958
+ return pos;
959
+ };
960
+
961
+ // Corner class
962
+ var C = (CORNER = PROTOTYPE.reposition.Corner = function(corner, forceY) {
963
+ corner = ('' + corner).replace(/([A-Z])/, ' $1').replace(/middle/gi, CENTER).toLowerCase();
964
+ this.x = (corner.match(/left|right/i) || corner.match(/center/) || ['inherit'])[0].toLowerCase();
965
+ this.y = (corner.match(/top|bottom|center/i) || ['inherit'])[0].toLowerCase();
966
+ this.forceY = !!forceY;
967
+
968
+ var f = corner.charAt(0);
969
+ this.precedance = f === 't' || f === 'b' ? Y : X;
970
+ }).prototype;
971
+
972
+ C.invert = function(z, center) {
973
+ this[z] = this[z] === LEFT ? RIGHT : this[z] === RIGHT ? LEFT : center || this[z];
974
+ };
975
+
976
+ C.string = function(join) {
977
+ var x = this.x, y = this.y;
978
+
979
+ var result = x !== y ?
980
+ x === 'center' || y !== 'center' && (this.precedance === Y || this.forceY) ?
981
+ [y,x] :
982
+ [x,y] :
983
+ [x];
984
+
985
+ return join !== false ? result.join(' ') : result;
986
+ };
987
+
988
+ C.abbrev = function() {
989
+ var result = this.string(false);
990
+ return result[0].charAt(0) + (result[1] && result[1].charAt(0) || '');
991
+ };
992
+
993
+ C.clone = function() {
994
+ return new CORNER( this.string(), this.forceY );
995
+ };
996
+
997
+ ;
998
+ PROTOTYPE.toggle = function(state, event) {
999
+ var cache = this.cache,
1000
+ options = this.options,
1001
+ tooltip = this.tooltip;
1002
+
1003
+ // Try to prevent flickering when tooltip overlaps show element
1004
+ if(event) {
1005
+ if((/over|enter/).test(event.type) && cache.event && (/out|leave/).test(cache.event.type) &&
1006
+ options.show.target.add(event.target).length === options.show.target.length &&
1007
+ tooltip.has(event.relatedTarget).length) {
1008
+ return this;
1009
+ }
1010
+
1011
+ // Cache event
1012
+ cache.event = $.event.fix(event);
1013
+ }
1014
+
1015
+ // If we're currently waiting and we've just hidden... stop it
1016
+ this.waiting && !state && (this.hiddenDuringWait = TRUE);
1017
+
1018
+ // Render the tooltip if showing and it isn't already
1019
+ if(!this.rendered) { return state ? this.render(1) : this; }
1020
+ else if(this.destroyed || this.disabled) { return this; }
1021
+
1022
+ var type = state ? 'show' : 'hide',
1023
+ opts = this.options[type],
1024
+ posOptions = this.options.position,
1025
+ contentOptions = this.options.content,
1026
+ width = this.tooltip.css('width'),
1027
+ visible = this.tooltip.is(':visible'),
1028
+ animate = state || opts.target.length === 1,
1029
+ sameTarget = !event || opts.target.length < 2 || cache.target[0] === event.target,
1030
+ identicalState, allow, after;
1031
+
1032
+ // Detect state if valid one isn't provided
1033
+ if((typeof state).search('boolean|number')) { state = !visible; }
1034
+
1035
+ // Check if the tooltip is in an identical state to the new would-be state
1036
+ identicalState = !tooltip.is(':animated') && visible === state && sameTarget;
1037
+
1038
+ // Fire tooltip(show/hide) event and check if destroyed
1039
+ allow = !identicalState ? !!this._trigger(type, [90]) : NULL;
1040
+
1041
+ // Check to make sure the tooltip wasn't destroyed in the callback
1042
+ if(this.destroyed) { return this; }
1043
+
1044
+ // If the user didn't stop the method prematurely and we're showing the tooltip, focus it
1045
+ if(allow !== FALSE && state) { this.focus(event); }
1046
+
1047
+ // If the state hasn't changed or the user stopped it, return early
1048
+ if(!allow || identicalState) { return this; }
1049
+
1050
+ // Set ARIA hidden attribute
1051
+ $.attr(tooltip[0], 'aria-hidden', !!!state);
1052
+
1053
+ // Execute state specific properties
1054
+ if(state) {
1055
+ // Store show origin coordinates
1056
+ this.mouse && (cache.origin = $.event.fix(this.mouse));
1057
+
1058
+ // Update tooltip content & title if it's a dynamic function
1059
+ if($.isFunction(contentOptions.text)) { this._updateContent(contentOptions.text, FALSE); }
1060
+ if($.isFunction(contentOptions.title)) { this._updateTitle(contentOptions.title, FALSE); }
1061
+
1062
+ // Cache mousemove events for positioning purposes (if not already tracking)
1063
+ if(!trackingBound && posOptions.target === 'mouse' && posOptions.adjust.mouse) {
1064
+ $(document).bind('mousemove.'+NAMESPACE, this._storeMouse);
1065
+ trackingBound = TRUE;
1066
+ }
1067
+
1068
+ // Update the tooltip position (set width first to prevent viewport/max-width issues)
1069
+ if(!width) { tooltip.css('width', tooltip.outerWidth(FALSE)); }
1070
+ this.reposition(event, arguments[2]);
1071
+ if(!width) { tooltip.css('width', ''); }
1072
+
1073
+ // Hide other tooltips if tooltip is solo
1074
+ if(!!opts.solo) {
1075
+ (typeof opts.solo === 'string' ? $(opts.solo) : $(SELECTOR, opts.solo))
1076
+ .not(tooltip).not(opts.target).qtip('hide', new $.Event('tooltipsolo'));
1077
+ }
1078
+ }
1079
+ else {
1080
+ // Clear show timer if we're hiding
1081
+ clearTimeout(this.timers.show);
1082
+
1083
+ // Remove cached origin on hide
1084
+ delete cache.origin;
1085
+
1086
+ // Remove mouse tracking event if not needed (all tracking qTips are hidden)
1087
+ if(trackingBound && !$(SELECTOR+'[tracking="true"]:visible', opts.solo).not(tooltip).length) {
1088
+ $(document).unbind('mousemove.'+NAMESPACE);
1089
+ trackingBound = FALSE;
1090
+ }
1091
+
1092
+ // Blur the tooltip
1093
+ this.blur(event);
1094
+ }
1095
+
1096
+ // Define post-animation, state specific properties
1097
+ after = $.proxy(function() {
1098
+ if(state) {
1099
+ // Prevent antialias from disappearing in IE by removing filter
1100
+ if(BROWSER.ie) { tooltip[0].style.removeAttribute('filter'); }
1101
+
1102
+ // Remove overflow setting to prevent tip bugs
1103
+ tooltip.css('overflow', '');
1104
+
1105
+ // Autofocus elements if enabled
1106
+ if('string' === typeof opts.autofocus) {
1107
+ $(this.options.show.autofocus, tooltip).focus();
1108
+ }
1109
+
1110
+ // If set, hide tooltip when inactive for delay period
1111
+ this.options.show.target.trigger('qtip-'+this.id+'-inactive');
1112
+ }
1113
+ else {
1114
+ // Reset CSS states
1115
+ tooltip.css({
1116
+ display: '',
1117
+ visibility: '',
1118
+ opacity: '',
1119
+ left: '',
1120
+ top: ''
1121
+ });
1122
+ }
1123
+
1124
+ // tooltipvisible/tooltiphidden events
1125
+ this._trigger(state ? 'visible' : 'hidden');
1126
+ }, this);
1127
+
1128
+ // If no effect type is supplied, use a simple toggle
1129
+ if(opts.effect === FALSE || animate === FALSE) {
1130
+ tooltip[ type ]();
1131
+ after();
1132
+ }
1133
+
1134
+ // Use custom function if provided
1135
+ else if($.isFunction(opts.effect)) {
1136
+ tooltip.stop(1, 1);
1137
+ opts.effect.call(tooltip, this);
1138
+ tooltip.queue('fx', function(n) {
1139
+ after(); n();
1140
+ });
1141
+ }
1142
+
1143
+ // Use basic fade function by default
1144
+ else { tooltip.fadeTo(90, state ? 1 : 0, after); }
1145
+
1146
+ // If inactive hide method is set, active it
1147
+ if(state) { opts.target.trigger('qtip-'+this.id+'-inactive'); }
1148
+
1149
+ return this;
1150
+ };
1151
+
1152
+ PROTOTYPE.show = function(event) { return this.toggle(TRUE, event); };
1153
+
1154
+ PROTOTYPE.hide = function(event) { return this.toggle(FALSE, event); };
1155
+ ;PROTOTYPE.focus = function(event) {
1156
+ if(!this.rendered || this.destroyed) { return this; }
1157
+
1158
+ var qtips = $(SELECTOR),
1159
+ tooltip = this.tooltip,
1160
+ curIndex = parseInt(tooltip[0].style.zIndex, 10),
1161
+ newIndex = QTIP.zindex + qtips.length;
1162
+
1163
+ // Only update the z-index if it has changed and tooltip is not already focused
1164
+ if(!tooltip.hasClass(CLASS_FOCUS)) {
1165
+ // tooltipfocus event
1166
+ if(this._trigger('focus', [newIndex], event)) {
1167
+ // Only update z-index's if they've changed
1168
+ if(curIndex !== newIndex) {
1169
+ // Reduce our z-index's and keep them properly ordered
1170
+ qtips.each(function() {
1171
+ if(this.style.zIndex > curIndex) {
1172
+ this.style.zIndex = this.style.zIndex - 1;
1173
+ }
1174
+ });
1175
+
1176
+ // Fire blur event for focused tooltip
1177
+ qtips.filter('.' + CLASS_FOCUS).qtip('blur', event);
1178
+ }
1179
+
1180
+ // Set the new z-index
1181
+ tooltip.addClass(CLASS_FOCUS)[0].style.zIndex = newIndex;
1182
+ }
1183
+ }
1184
+
1185
+ return this;
1186
+ };
1187
+
1188
+ PROTOTYPE.blur = function(event) {
1189
+ if(!this.rendered || this.destroyed) { return this; }
1190
+
1191
+ // Set focused status to FALSE
1192
+ this.tooltip.removeClass(CLASS_FOCUS);
1193
+
1194
+ // tooltipblur event
1195
+ this._trigger('blur', [ this.tooltip.css('zIndex') ], event);
1196
+
1197
+ return this;
1198
+ };
1199
+ ;PROTOTYPE.disable = function(state) {
1200
+ if(this.destroyed) { return this; }
1201
+
1202
+ // If 'toggle' is passed, toggle the current state
1203
+ if(state === 'toggle') {
1204
+ state = !(this.rendered ? this.tooltip.hasClass(CLASS_DISABLED) : this.disabled);
1205
+ }
1206
+
1207
+ // Disable if no state passed
1208
+ else if('boolean' !== typeof state) {
1209
+ state = TRUE;
1210
+ }
1211
+
1212
+ if(this.rendered) {
1213
+ this.tooltip.toggleClass(CLASS_DISABLED, state)
1214
+ .attr('aria-disabled', state);
1215
+ }
1216
+
1217
+ this.disabled = !!state;
1218
+
1219
+ return this;
1220
+ };
1221
+
1222
+ PROTOTYPE.enable = function() { return this.disable(FALSE); };
1223
+ ;PROTOTYPE._createButton = function()
1224
+ {
1225
+ var self = this,
1226
+ elements = this.elements,
1227
+ tooltip = elements.tooltip,
1228
+ button = this.options.content.button,
1229
+ isString = typeof button === 'string',
1230
+ close = isString ? button : 'Close tooltip';
1231
+
1232
+ if(elements.button) { elements.button.remove(); }
1233
+
1234
+ // Use custom button if one was supplied by user, else use default
1235
+ if(button.jquery) {
1236
+ elements.button = button;
1237
+ }
1238
+ else {
1239
+ elements.button = $('<a />', {
1240
+ 'class': 'qtip-close ' + (this.options.style.widget ? '' : NAMESPACE+'-icon'),
1241
+ 'title': close,
1242
+ 'aria-label': close
1243
+ })
1244
+ .prepend(
1245
+ $('<span />', {
1246
+ 'class': 'ui-icon ui-icon-close',
1247
+ 'html': '&times;'
1248
+ })
1249
+ );
1250
+ }
1251
+
1252
+ // Create button and setup attributes
1253
+ elements.button.appendTo(elements.titlebar || tooltip)
1254
+ .attr('role', 'button')
1255
+ .click(function(event) {
1256
+ if(!tooltip.hasClass(CLASS_DISABLED)) { self.hide(event); }
1257
+ return FALSE;
1258
+ });
1259
+ };
1260
+
1261
+ PROTOTYPE._updateButton = function(button)
1262
+ {
1263
+ // Make sure tooltip is rendered and if not, return
1264
+ if(!this.rendered) { return FALSE; }
1265
+
1266
+ var elem = this.elements.button;
1267
+ if(button) { this._createButton(); }
1268
+ else { elem.remove(); }
1269
+ };
1270
+ ;// Widget class creator
1271
+ function createWidgetClass(cls) {
1272
+ return WIDGET.concat('').join(cls ? '-'+cls+' ' : ' ');
1273
+ }
1274
+
1275
+ // Widget class setter method
1276
+ PROTOTYPE._setWidget = function()
1277
+ {
1278
+ var on = this.options.style.widget,
1279
+ elements = this.elements,
1280
+ tooltip = elements.tooltip,
1281
+ disabled = tooltip.hasClass(CLASS_DISABLED);
1282
+
1283
+ tooltip.removeClass(CLASS_DISABLED);
1284
+ CLASS_DISABLED = on ? 'ui-state-disabled' : 'qtip-disabled';
1285
+ tooltip.toggleClass(CLASS_DISABLED, disabled);
1286
+
1287
+ tooltip.toggleClass('ui-helper-reset '+createWidgetClass(), on).toggleClass(CLASS_DEFAULT, this.options.style.def && !on);
1288
+
1289
+ if(elements.content) {
1290
+ elements.content.toggleClass( createWidgetClass('content'), on);
1291
+ }
1292
+ if(elements.titlebar) {
1293
+ elements.titlebar.toggleClass( createWidgetClass('header'), on);
1294
+ }
1295
+ if(elements.button) {
1296
+ elements.button.toggleClass(NAMESPACE+'-icon', !on);
1297
+ }
1298
+ };
1299
+ ;function delay(callback, duration) {
1300
+ // If tooltip has displayed, start hide timer
1301
+ if(duration > 0) {
1302
+ return setTimeout(
1303
+ $.proxy(callback, this), duration
1304
+ );
1305
+ }
1306
+ else{ callback.call(this); }
1307
+ }
1308
+
1309
+ function showMethod(event) {
1310
+ if(this.tooltip.hasClass(CLASS_DISABLED)) { return; }
1311
+
1312
+ // Clear hide timers
1313
+ clearTimeout(this.timers.show);
1314
+ clearTimeout(this.timers.hide);
1315
+
1316
+ // Start show timer
1317
+ this.timers.show = delay.call(this,
1318
+ function() { this.toggle(TRUE, event); },
1319
+ this.options.show.delay
1320
+ );
1321
+ }
1322
+
1323
+ function hideMethod(event) {
1324
+ if(this.tooltip.hasClass(CLASS_DISABLED) || this.destroyed) { return; }
1325
+
1326
+ // Check if new target was actually the tooltip element
1327
+ var relatedTarget = $(event.relatedTarget),
1328
+ ontoTooltip = relatedTarget.closest(SELECTOR)[0] === this.tooltip[0],
1329
+ ontoTarget = relatedTarget[0] === this.options.show.target[0];
1330
+
1331
+ // Clear timers and stop animation queue
1332
+ clearTimeout(this.timers.show);
1333
+ clearTimeout(this.timers.hide);
1334
+
1335
+ // Prevent hiding if tooltip is fixed and event target is the tooltip.
1336
+ // Or if mouse positioning is enabled and cursor momentarily overlaps
1337
+ if(this !== relatedTarget[0] &&
1338
+ (this.options.position.target === 'mouse' && ontoTooltip) ||
1339
+ this.options.hide.fixed && (
1340
+ (/mouse(out|leave|move)/).test(event.type) && (ontoTooltip || ontoTarget))
1341
+ )
1342
+ {
1343
+ /* eslint-disable no-empty */
1344
+ try {
1345
+ event.preventDefault();
1346
+ event.stopImmediatePropagation();
1347
+ } catch(e) {}
1348
+ /* eslint-enable no-empty */
1349
+
1350
+ return;
1351
+ }
1352
+
1353
+ // If tooltip has displayed, start hide timer
1354
+ this.timers.hide = delay.call(this,
1355
+ function() { this.toggle(FALSE, event); },
1356
+ this.options.hide.delay,
1357
+ this
1358
+ );
1359
+ }
1360
+
1361
+ function inactiveMethod(event) {
1362
+ if(this.tooltip.hasClass(CLASS_DISABLED) || !this.options.hide.inactive) { return; }
1363
+
1364
+ // Clear timer
1365
+ clearTimeout(this.timers.inactive);
1366
+
1367
+ this.timers.inactive = delay.call(this,
1368
+ function(){ this.hide(event); },
1369
+ this.options.hide.inactive
1370
+ );
1371
+ }
1372
+
1373
+ function repositionMethod(event) {
1374
+ if(this.rendered && this.tooltip[0].offsetWidth > 0) { this.reposition(event); }
1375
+ }
1376
+
1377
+ // Store mouse coordinates
1378
+ PROTOTYPE._storeMouse = function(event) {
1379
+ (this.mouse = $.event.fix(event)).type = 'mousemove';
1380
+ return this;
1381
+ };
1382
+
1383
+ // Bind events
1384
+ PROTOTYPE._bind = function(targets, events, method, suffix, context) {
1385
+ if(!targets || !method || !events.length) { return; }
1386
+ var ns = '.' + this._id + (suffix ? '-'+suffix : '');
1387
+ $(targets).bind(
1388
+ (events.split ? events : events.join(ns + ' ')) + ns,
1389
+ $.proxy(method, context || this)
1390
+ );
1391
+ return this;
1392
+ };
1393
+ PROTOTYPE._unbind = function(targets, suffix) {
1394
+ targets && $(targets).unbind('.' + this._id + (suffix ? '-'+suffix : ''));
1395
+ return this;
1396
+ };
1397
+
1398
+ // Global delegation helper
1399
+ function delegate(selector, events, method) {
1400
+ $(document.body).delegate(selector,
1401
+ (events.split ? events : events.join('.'+NAMESPACE + ' ')) + '.'+NAMESPACE,
1402
+ function() {
1403
+ var api = QTIP.api[ $.attr(this, ATTR_ID) ];
1404
+ api && !api.disabled && method.apply(api, arguments);
1405
+ }
1406
+ );
1407
+ }
1408
+ // Event trigger
1409
+ PROTOTYPE._trigger = function(type, args, event) {
1410
+ var callback = new $.Event('tooltip'+type);
1411
+ callback.originalEvent = event && $.extend({}, event) || this.cache.event || NULL;
1412
+
1413
+ this.triggering = type;
1414
+ this.tooltip.trigger(callback, [this].concat(args || []));
1415
+ this.triggering = FALSE;
1416
+
1417
+ return !callback.isDefaultPrevented();
1418
+ };
1419
+
1420
+ PROTOTYPE._bindEvents = function(showEvents, hideEvents, showTargets, hideTargets, showCallback, hideCallback) {
1421
+ // Get tasrgets that lye within both
1422
+ var similarTargets = showTargets.filter( hideTargets ).add( hideTargets.filter(showTargets) ),
1423
+ toggleEvents = [];
1424
+
1425
+ // If hide and show targets are the same...
1426
+ if(similarTargets.length) {
1427
+
1428
+ // Filter identical show/hide events
1429
+ $.each(hideEvents, function(i, type) {
1430
+ var showIndex = $.inArray(type, showEvents);
1431
+
1432
+ // Both events are identical, remove from both hide and show events
1433
+ // and append to toggleEvents
1434
+ showIndex > -1 && toggleEvents.push( showEvents.splice( showIndex, 1 )[0] );
1435
+ });
1436
+
1437
+ // Toggle events are special case of identical show/hide events, which happen in sequence
1438
+ if(toggleEvents.length) {
1439
+ // Bind toggle events to the similar targets
1440
+ this._bind(similarTargets, toggleEvents, function(event) {
1441
+ var state = this.rendered ? this.tooltip[0].offsetWidth > 0 : false;
1442
+ (state ? hideCallback : showCallback).call(this, event);
1443
+ });
1444
+
1445
+ // Remove the similar targets from the regular show/hide bindings
1446
+ showTargets = showTargets.not(similarTargets);
1447
+ hideTargets = hideTargets.not(similarTargets);
1448
+ }
1449
+ }
1450
+
1451
+ // Apply show/hide/toggle events
1452
+ this._bind(showTargets, showEvents, showCallback);
1453
+ this._bind(hideTargets, hideEvents, hideCallback);
1454
+ };
1455
+
1456
+ PROTOTYPE._assignInitialEvents = function(event) {
1457
+ var options = this.options,
1458
+ showTarget = options.show.target,
1459
+ hideTarget = options.hide.target,
1460
+ showEvents = options.show.event ? $.trim('' + options.show.event).split(' ') : [],
1461
+ hideEvents = options.hide.event ? $.trim('' + options.hide.event).split(' ') : [];
1462
+
1463
+ // Catch remove/removeqtip events on target element to destroy redundant tooltips
1464
+ this._bind(this.elements.target, ['remove', 'removeqtip'], function() {
1465
+ this.destroy(true);
1466
+ }, 'destroy');
1467
+
1468
+ /*
1469
+ * Make sure hoverIntent functions properly by using mouseleave as a hide event if
1470
+ * mouseenter/mouseout is used for show.event, even if it isn't in the users options.
1471
+ */
1472
+ if(/mouse(over|enter)/i.test(options.show.event) && !/mouse(out|leave)/i.test(options.hide.event)) {
1473
+ hideEvents.push('mouseleave');
1474
+ }
1475
+
1476
+ /*
1477
+ * Also make sure initial mouse targetting works correctly by caching mousemove coords
1478
+ * on show targets before the tooltip has rendered. Also set onTarget when triggered to
1479
+ * keep mouse tracking working.
1480
+ */
1481
+ this._bind(showTarget, 'mousemove', function(moveEvent) {
1482
+ this._storeMouse(moveEvent);
1483
+ this.cache.onTarget = TRUE;
1484
+ });
1485
+
1486
+ // Define hoverIntent function
1487
+ function hoverIntent(hoverEvent) {
1488
+ // Only continue if tooltip isn't disabled
1489
+ if(this.disabled || this.destroyed) { return FALSE; }
1490
+
1491
+ // Cache the event data
1492
+ this.cache.event = hoverEvent && $.event.fix(hoverEvent);
1493
+ this.cache.target = hoverEvent && $(hoverEvent.target);
1494
+
1495
+ // Start the event sequence
1496
+ clearTimeout(this.timers.show);
1497
+ this.timers.show = delay.call(this,
1498
+ function() { this.render(typeof hoverEvent === 'object' || options.show.ready); },
1499
+ options.prerender ? 0 : options.show.delay
1500
+ );
1501
+ }
1502
+
1503
+ // Filter and bind events
1504
+ this._bindEvents(showEvents, hideEvents, showTarget, hideTarget, hoverIntent, function() {
1505
+ if(!this.timers) { return FALSE; }
1506
+ clearTimeout(this.timers.show);
1507
+ });
1508
+
1509
+ // Prerendering is enabled, create tooltip now
1510
+ if(options.show.ready || options.prerender) { hoverIntent.call(this, event); }
1511
+ };
1512
+
1513
+ // Event assignment method
1514
+ PROTOTYPE._assignEvents = function() {
1515
+ var self = this,
1516
+ options = this.options,
1517
+ posOptions = options.position,
1518
+
1519
+ tooltip = this.tooltip,
1520
+ showTarget = options.show.target,
1521
+ hideTarget = options.hide.target,
1522
+ containerTarget = posOptions.container,
1523
+ viewportTarget = posOptions.viewport,
1524
+ documentTarget = $(document),
1525
+ windowTarget = $(window),
1526
+
1527
+ showEvents = options.show.event ? $.trim('' + options.show.event).split(' ') : [],
1528
+ hideEvents = options.hide.event ? $.trim('' + options.hide.event).split(' ') : [];
1529
+
1530
+
1531
+ // Assign passed event callbacks
1532
+ $.each(options.events, function(name, callback) {
1533
+ self._bind(tooltip, name === 'toggle' ? ['tooltipshow','tooltiphide'] : ['tooltip'+name], callback, null, tooltip);
1534
+ });
1535
+
1536
+ // Hide tooltips when leaving current window/frame (but not select/option elements)
1537
+ if(/mouse(out|leave)/i.test(options.hide.event) && options.hide.leave === 'window') {
1538
+ this._bind(documentTarget, ['mouseout', 'blur'], function(event) {
1539
+ if(!/select|option/.test(event.target.nodeName) && !event.relatedTarget) {
1540
+ this.hide(event);
1541
+ }
1542
+ });
1543
+ }
1544
+
1545
+ // Enable hide.fixed by adding appropriate class
1546
+ if(options.hide.fixed) {
1547
+ hideTarget = hideTarget.add( tooltip.addClass(CLASS_FIXED) );
1548
+ }
1549
+
1550
+ /*
1551
+ * Make sure hoverIntent functions properly by using mouseleave to clear show timer if
1552
+ * mouseenter/mouseout is used for show.event, even if it isn't in the users options.
1553
+ */
1554
+ else if(/mouse(over|enter)/i.test(options.show.event)) {
1555
+ this._bind(hideTarget, 'mouseleave', function() {
1556
+ clearTimeout(this.timers.show);
1557
+ });
1558
+ }
1559
+
1560
+ // Hide tooltip on document mousedown if unfocus events are enabled
1561
+ if(('' + options.hide.event).indexOf('unfocus') > -1) {
1562
+ this._bind(containerTarget.closest('html'), ['mousedown', 'touchstart'], function(event) {
1563
+ var elem = $(event.target),
1564
+ enabled = this.rendered && !this.tooltip.hasClass(CLASS_DISABLED) && this.tooltip[0].offsetWidth > 0,
1565
+ isAncestor = elem.parents(SELECTOR).filter(this.tooltip[0]).length > 0;
1566
+
1567
+ if(elem[0] !== this.target[0] && elem[0] !== this.tooltip[0] && !isAncestor &&
1568
+ !this.target.has(elem[0]).length && enabled
1569
+ ) {
1570
+ this.hide(event);
1571
+ }
1572
+ });
1573
+ }
1574
+
1575
+ // Check if the tooltip hides when inactive
1576
+ if('number' === typeof options.hide.inactive) {
1577
+ // Bind inactive method to show target(s) as a custom event
1578
+ this._bind(showTarget, 'qtip-'+this.id+'-inactive', inactiveMethod, 'inactive');
1579
+
1580
+ // Define events which reset the 'inactive' event handler
1581
+ this._bind(hideTarget.add(tooltip), QTIP.inactiveEvents, inactiveMethod);
1582
+ }
1583
+
1584
+ // Filter and bind events
1585
+ this._bindEvents(showEvents, hideEvents, showTarget, hideTarget, showMethod, hideMethod);
1586
+
1587
+ // Mouse movement bindings
1588
+ this._bind(showTarget.add(tooltip), 'mousemove', function(event) {
1589
+ // Check if the tooltip hides when mouse is moved a certain distance
1590
+ if('number' === typeof options.hide.distance) {
1591
+ var origin = this.cache.origin || {},
1592
+ limit = this.options.hide.distance,
1593
+ abs = Math.abs;
1594
+
1595
+ // Check if the movement has gone beyond the limit, and hide it if so
1596
+ if(abs(event.pageX - origin.pageX) >= limit || abs(event.pageY - origin.pageY) >= limit) {
1597
+ this.hide(event);
1598
+ }
1599
+ }
1600
+
1601
+ // Cache mousemove coords on show targets
1602
+ this._storeMouse(event);
1603
+ });
1604
+
1605
+ // Mouse positioning events
1606
+ if(posOptions.target === 'mouse') {
1607
+ // If mouse adjustment is on...
1608
+ if(posOptions.adjust.mouse) {
1609
+ // Apply a mouseleave event so we don't get problems with overlapping
1610
+ if(options.hide.event) {
1611
+ // Track if we're on the target or not
1612
+ this._bind(showTarget, ['mouseenter', 'mouseleave'], function(event) {
1613
+ if(!this.cache) {return FALSE; }
1614
+ this.cache.onTarget = event.type === 'mouseenter';
1615
+ });
1616
+ }
1617
+
1618
+ // Update tooltip position on mousemove
1619
+ this._bind(documentTarget, 'mousemove', function(event) {
1620
+ // Update the tooltip position only if the tooltip is visible and adjustment is enabled
1621
+ if(this.rendered && this.cache.onTarget && !this.tooltip.hasClass(CLASS_DISABLED) && this.tooltip[0].offsetWidth > 0) {
1622
+ this.reposition(event);
1623
+ }
1624
+ });
1625
+ }
1626
+ }
1627
+
1628
+ // Adjust positions of the tooltip on window resize if enabled
1629
+ if(posOptions.adjust.resize || viewportTarget.length) {
1630
+ this._bind( $.event.special.resize ? viewportTarget : windowTarget, 'resize', repositionMethod );
1631
+ }
1632
+
1633
+ // Adjust tooltip position on scroll of the window or viewport element if present
1634
+ if(posOptions.adjust.scroll) {
1635
+ this._bind( windowTarget.add(posOptions.container), 'scroll', repositionMethod );
1636
+ }
1637
+ };
1638
+
1639
+ // Un-assignment method
1640
+ PROTOTYPE._unassignEvents = function() {
1641
+ var options = this.options,
1642
+ showTargets = options.show.target,
1643
+ hideTargets = options.hide.target,
1644
+ targets = $.grep([
1645
+ this.elements.target[0],
1646
+ this.rendered && this.tooltip[0],
1647
+ options.position.container[0],
1648
+ options.position.viewport[0],
1649
+ options.position.container.closest('html')[0], // unfocus
1650
+ window,
1651
+ document
1652
+ ], function(i) {
1653
+ return typeof i === 'object';
1654
+ });
1655
+
1656
+ // Add show and hide targets if they're valid
1657
+ if(showTargets && showTargets.toArray) {
1658
+ targets = targets.concat(showTargets.toArray());
1659
+ }
1660
+ if(hideTargets && hideTargets.toArray) {
1661
+ targets = targets.concat(hideTargets.toArray());
1662
+ }
1663
+
1664
+ // Unbind the events
1665
+ this._unbind(targets)
1666
+ ._unbind(targets, 'destroy')
1667
+ ._unbind(targets, 'inactive');
1668
+ };
1669
+
1670
+ // Apply common event handlers using delegate (avoids excessive .bind calls!)
1671
+ $(function() {
1672
+ delegate(SELECTOR, ['mouseenter', 'mouseleave'], function(event) {
1673
+ var state = event.type === 'mouseenter',
1674
+ tooltip = $(event.currentTarget),
1675
+ target = $(event.relatedTarget || event.target),
1676
+ options = this.options;
1677
+
1678
+ // On mouseenter...
1679
+ if(state) {
1680
+ // Focus the tooltip on mouseenter (z-index stacking)
1681
+ this.focus(event);
1682
+
1683
+ // Clear hide timer on tooltip hover to prevent it from closing
1684
+ tooltip.hasClass(CLASS_FIXED) && !tooltip.hasClass(CLASS_DISABLED) && clearTimeout(this.timers.hide);
1685
+ }
1686
+
1687
+ // On mouseleave...
1688
+ else {
1689
+ // When mouse tracking is enabled, hide when we leave the tooltip and not onto the show target (if a hide event is set)
1690
+ if(options.position.target === 'mouse' && options.position.adjust.mouse &&
1691
+ options.hide.event && options.show.target && !target.closest(options.show.target[0]).length) {
1692
+ this.hide(event);
1693
+ }
1694
+ }
1695
+
1696
+ // Add hover class
1697
+ tooltip.toggleClass(CLASS_HOVER, state);
1698
+ });
1699
+
1700
+ // Define events which reset the 'inactive' event handler
1701
+ delegate('['+ATTR_ID+']', INACTIVE_EVENTS, inactiveMethod);
1702
+ });
1703
+ ;// Initialization method
1704
+ function init(elem, id, opts) {
1705
+ var obj, posOptions, attr, config, title,
1706
+
1707
+ // Setup element references
1708
+ docBody = $(document.body),
1709
+
1710
+ // Use document body instead of document element if needed
1711
+ newTarget = elem[0] === document ? docBody : elem,
1712
+
1713
+ // Grab metadata from element if plugin is present
1714
+ metadata = elem.metadata ? elem.metadata(opts.metadata) : NULL,
1715
+
1716
+ // If metadata type if HTML5, grab 'name' from the object instead, or use the regular data object otherwise
1717
+ metadata5 = opts.metadata.type === 'html5' && metadata ? metadata[opts.metadata.name] : NULL,
1718
+
1719
+ // Grab data from metadata.name (or data-qtipopts as fallback) using .data() method,
1720
+ html5 = elem.data(opts.metadata.name || 'qtipopts');
1721
+
1722
+ // If we don't get an object returned attempt to parse it manualyl without parseJSON
1723
+ /* eslint-disable no-empty */
1724
+ try { html5 = typeof html5 === 'string' ? $.parseJSON(html5) : html5; }
1725
+ catch(e) {}
1726
+ /* eslint-enable no-empty */
1727
+
1728
+ // Merge in and sanitize metadata
1729
+ config = $.extend(TRUE, {}, QTIP.defaults, opts,
1730
+ typeof html5 === 'object' ? sanitizeOptions(html5) : NULL,
1731
+ sanitizeOptions(metadata5 || metadata));
1732
+
1733
+ // Re-grab our positioning options now we've merged our metadata and set id to passed value
1734
+ posOptions = config.position;
1735
+ config.id = id;
1736
+
1737
+ // Setup missing content if none is detected
1738
+ if('boolean' === typeof config.content.text) {
1739
+ attr = elem.attr(config.content.attr);
1740
+
1741
+ // Grab from supplied attribute if available
1742
+ if(config.content.attr !== FALSE && attr) { config.content.text = attr; }
1743
+
1744
+ // No valid content was found, abort render
1745
+ else { return FALSE; }
1746
+ }
1747
+
1748
+ // Setup target options
1749
+ if(!posOptions.container.length) { posOptions.container = docBody; }
1750
+ if(posOptions.target === FALSE) { posOptions.target = newTarget; }
1751
+ if(config.show.target === FALSE) { config.show.target = newTarget; }
1752
+ if(config.show.solo === TRUE) { config.show.solo = posOptions.container.closest('body'); }
1753
+ if(config.hide.target === FALSE) { config.hide.target = newTarget; }
1754
+ if(config.position.viewport === TRUE) { config.position.viewport = posOptions.container; }
1755
+
1756
+ // Ensure we only use a single container
1757
+ posOptions.container = posOptions.container.eq(0);
1758
+
1759
+ // Convert position corner values into x and y strings
1760
+ posOptions.at = new CORNER(posOptions.at, TRUE);
1761
+ posOptions.my = new CORNER(posOptions.my);
1762
+
1763
+ // Destroy previous tooltip if overwrite is enabled, or skip element if not
1764
+ if(elem.data(NAMESPACE)) {
1765
+ if(config.overwrite) {
1766
+ elem.qtip('destroy', true);
1767
+ }
1768
+ else if(config.overwrite === FALSE) {
1769
+ return FALSE;
1770
+ }
1771
+ }
1772
+
1773
+ // Add has-qtip attribute
1774
+ elem.attr(ATTR_HAS, id);
1775
+
1776
+ // Remove title attribute and store it if present
1777
+ if(config.suppress && (title = elem.attr('title'))) {
1778
+ // Final attr call fixes event delegatiom and IE default tooltip showing problem
1779
+ elem.removeAttr('title').attr(oldtitle, title).attr('title', '');
1780
+ }
1781
+
1782
+ // Initialize the tooltip and add API reference
1783
+ obj = new QTip(elem, config, id, !!attr);
1784
+ elem.data(NAMESPACE, obj);
1785
+
1786
+ return obj;
1787
+ }
1788
+
1789
+ // jQuery $.fn extension method
1790
+ QTIP = $.fn.qtip = function(options, notation, newValue)
1791
+ {
1792
+ var command = ('' + options).toLowerCase(), // Parse command
1793
+ returned = NULL,
1794
+ args = $.makeArray(arguments).slice(1),
1795
+ event = args[args.length - 1],
1796
+ opts = this[0] ? $.data(this[0], NAMESPACE) : NULL;
1797
+
1798
+ // Check for API request
1799
+ if(!arguments.length && opts || command === 'api') {
1800
+ return opts;
1801
+ }
1802
+
1803
+ // Execute API command if present
1804
+ else if('string' === typeof options) {
1805
+ this.each(function() {
1806
+ var api = $.data(this, NAMESPACE);
1807
+ if(!api) { return TRUE; }
1808
+
1809
+ // Cache the event if possible
1810
+ if(event && event.timeStamp) { api.cache.event = event; }
1811
+
1812
+ // Check for specific API commands
1813
+ if(notation && (command === 'option' || command === 'options')) {
1814
+ if(newValue !== undefined || $.isPlainObject(notation)) {
1815
+ api.set(notation, newValue);
1816
+ }
1817
+ else {
1818
+ returned = api.get(notation);
1819
+ return FALSE;
1820
+ }
1821
+ }
1822
+
1823
+ // Execute API command
1824
+ else if(api[command]) {
1825
+ api[command].apply(api, args);
1826
+ }
1827
+ });
1828
+
1829
+ return returned !== NULL ? returned : this;
1830
+ }
1831
+
1832
+ // No API commands. validate provided options and setup qTips
1833
+ else if('object' === typeof options || !arguments.length) {
1834
+ // Sanitize options first
1835
+ opts = sanitizeOptions($.extend(TRUE, {}, options));
1836
+
1837
+ return this.each(function(i) {
1838
+ var api, id;
1839
+
1840
+ // Find next available ID, or use custom ID if provided
1841
+ id = $.isArray(opts.id) ? opts.id[i] : opts.id;
1842
+ id = !id || id === FALSE || id.length < 1 || QTIP.api[id] ? QTIP.nextid++ : id;
1843
+
1844
+ // Initialize the qTip and re-grab newly sanitized options
1845
+ api = init($(this), id, opts);
1846
+ if(api === FALSE) { return TRUE; }
1847
+ else { QTIP.api[id] = api; }
1848
+
1849
+ // Initialize plugins
1850
+ $.each(PLUGINS, function() {
1851
+ if(this.initialize === 'initialize') { this(api); }
1852
+ });
1853
+
1854
+ // Assign initial pre-render events
1855
+ api._assignInitialEvents(event);
1856
+ });
1857
+ }
1858
+ };
1859
+
1860
+ // Expose class
1861
+ $.qtip = QTip;
1862
+
1863
+ // Populated in render method
1864
+ QTIP.api = {};
1865
+ ;$.each({
1866
+ /* Allow other plugins to successfully retrieve the title of an element with a qTip applied */
1867
+ attr: function(attr, val) {
1868
+ if(this.length) {
1869
+ var self = this[0],
1870
+ title = 'title',
1871
+ api = $.data(self, 'qtip');
1872
+
1873
+ if(attr === title && api && api.options && 'object' === typeof api && 'object' === typeof api.options && api.options.suppress) {
1874
+ if(arguments.length < 2) {
1875
+ return $.attr(self, oldtitle);
1876
+ }
1877
+
1878
+ // If qTip is rendered and title was originally used as content, update it
1879
+ if(api && api.options.content.attr === title && api.cache.attr) {
1880
+ api.set('content.text', val);
1881
+ }
1882
+
1883
+ // Use the regular attr method to set, then cache the result
1884
+ return this.attr(oldtitle, val);
1885
+ }
1886
+ }
1887
+
1888
+ return $.fn['attr'+replaceSuffix].apply(this, arguments);
1889
+ },
1890
+
1891
+ /* Allow clone to correctly retrieve cached title attributes */
1892
+ clone: function(keepData) {
1893
+ // Clone our element using the real clone method
1894
+ var elems = $.fn['clone'+replaceSuffix].apply(this, arguments);
1895
+
1896
+ // Grab all elements with an oldtitle set, and change it to regular title attribute, if keepData is false
1897
+ if(!keepData) {
1898
+ elems.filter('['+oldtitle+']').attr('title', function() {
1899
+ return $.attr(this, oldtitle);
1900
+ })
1901
+ .removeAttr(oldtitle);
1902
+ }
1903
+
1904
+ return elems;
1905
+ }
1906
+ }, function(name, func) {
1907
+ if(!func || $.fn[name+replaceSuffix]) { return TRUE; }
1908
+
1909
+ var old = $.fn[name+replaceSuffix] = $.fn[name];
1910
+ $.fn[name] = function() {
1911
+ return func.apply(this, arguments) || old.apply(this, arguments);
1912
+ };
1913
+ });
1914
+
1915
+ /* Fire off 'removeqtip' handler in $.cleanData if jQuery UI not present (it already does similar).
1916
+ * This snippet is taken directly from jQuery UI source code found here:
1917
+ * http://code.jquery.com/ui/jquery-ui-git.js
1918
+ */
1919
+ if(!$.ui) {
1920
+ $['cleanData'+replaceSuffix] = $.cleanData;
1921
+ $.cleanData = function( elems ) {
1922
+ for(var i = 0, elem; (elem = $( elems[i] )).length; i++) {
1923
+ if(elem.attr(ATTR_HAS)) {
1924
+ /* eslint-disable no-empty */
1925
+ try { elem.triggerHandler('removeqtip'); }
1926
+ catch( e ) {}
1927
+ /* eslint-enable no-empty */
1928
+ }
1929
+ }
1930
+ $['cleanData'+replaceSuffix].apply(this, arguments);
1931
+ };
1932
+ }
1933
+ ;// qTip version
1934
+ QTIP.version = '3.0.3';
1935
+
1936
+ // Base ID for all qTips
1937
+ QTIP.nextid = 0;
1938
+
1939
+ // Inactive events array
1940
+ QTIP.inactiveEvents = INACTIVE_EVENTS;
1941
+
1942
+ // Base z-index for all qTips
1943
+ QTIP.zindex = 15000;
1944
+
1945
+ // Define configuration defaults
1946
+ QTIP.defaults = {
1947
+ prerender: FALSE,
1948
+ id: FALSE,
1949
+ overwrite: TRUE,
1950
+ suppress: TRUE,
1951
+ content: {
1952
+ text: TRUE,
1953
+ attr: 'title',
1954
+ title: FALSE,
1955
+ button: FALSE
1956
+ },
1957
+ position: {
1958
+ my: 'top left',
1959
+ at: 'bottom right',
1960
+ target: FALSE,
1961
+ container: FALSE,
1962
+ viewport: FALSE,
1963
+ adjust: {
1964
+ x: 0, y: 0,
1965
+ mouse: TRUE,
1966
+ scroll: TRUE,
1967
+ resize: TRUE,
1968
+ method: 'flipinvert flipinvert'
1969
+ },
1970
+ effect: function(api, pos) {
1971
+ $(this).animate(pos, {
1972
+ duration: 200,
1973
+ queue: FALSE
1974
+ });
1975
+ }
1976
+ },
1977
+ show: {
1978
+ target: FALSE,
1979
+ event: 'mouseenter',
1980
+ effect: TRUE,
1981
+ delay: 90,
1982
+ solo: FALSE,
1983
+ ready: FALSE,
1984
+ autofocus: FALSE
1985
+ },
1986
+ hide: {
1987
+ target: FALSE,
1988
+ event: 'mouseleave',
1989
+ effect: TRUE,
1990
+ delay: 0,
1991
+ fixed: FALSE,
1992
+ inactive: FALSE,
1993
+ leave: 'window',
1994
+ distance: FALSE
1995
+ },
1996
+ style: {
1997
+ classes: '',
1998
+ widget: FALSE,
1999
+ width: FALSE,
2000
+ height: FALSE,
2001
+ def: TRUE
2002
+ },
2003
+ events: {
2004
+ render: NULL,
2005
+ move: NULL,
2006
+ show: NULL,
2007
+ hide: NULL,
2008
+ toggle: NULL,
2009
+ visible: NULL,
2010
+ hidden: NULL,
2011
+ focus: NULL,
2012
+ blur: NULL
2013
+ }
2014
+ };
2015
+ ;PLUGINS.viewport = function(api, position, posOptions, targetWidth, targetHeight, elemWidth, elemHeight)
2016
+ {
2017
+ var target = posOptions.target,
2018
+ tooltip = api.elements.tooltip,
2019
+ my = posOptions.my,
2020
+ at = posOptions.at,
2021
+ adjust = posOptions.adjust,
2022
+ method = adjust.method.split(' '),
2023
+ methodX = method[0],
2024
+ methodY = method[1] || method[0],
2025
+ viewport = posOptions.viewport,
2026
+ container = posOptions.container,
2027
+ adjusted = { left: 0, top: 0 },
2028
+ fixed, newMy, containerOffset, containerStatic,
2029
+ viewportWidth, viewportHeight, viewportScroll, viewportOffset;
2030
+
2031
+ // If viewport is not a jQuery element, or it's the window/document, or no adjustment method is used... return
2032
+ if(!viewport.jquery || target[0] === window || target[0] === document.body || adjust.method === 'none') {
2033
+ return adjusted;
2034
+ }
2035
+
2036
+ // Cach container details
2037
+ containerOffset = container.offset() || adjusted;
2038
+ containerStatic = container.css('position') === 'static';
2039
+
2040
+ // Cache our viewport details
2041
+ fixed = tooltip.css('position') === 'fixed';
2042
+ viewportWidth = viewport[0] === window ? viewport.width() : viewport.outerWidth(FALSE);
2043
+ viewportHeight = viewport[0] === window ? viewport.height() : viewport.outerHeight(FALSE);
2044
+ viewportScroll = { left: fixed ? 0 : viewport.scrollLeft(), top: fixed ? 0 : viewport.scrollTop() };
2045
+ viewportOffset = viewport.offset() || adjusted;
2046
+
2047
+ // Generic calculation method
2048
+ function calculate(side, otherSide, type, adjustment, side1, side2, lengthName, targetLength, elemLength) {
2049
+ var initialPos = position[side1],
2050
+ mySide = my[side],
2051
+ atSide = at[side],
2052
+ isShift = type === SHIFT,
2053
+ myLength = mySide === side1 ? elemLength : mySide === side2 ? -elemLength : -elemLength / 2,
2054
+ atLength = atSide === side1 ? targetLength : atSide === side2 ? -targetLength : -targetLength / 2,
2055
+ sideOffset = viewportScroll[side1] + viewportOffset[side1] - (containerStatic ? 0 : containerOffset[side1]),
2056
+ overflow1 = sideOffset - initialPos,
2057
+ overflow2 = initialPos + elemLength - (lengthName === WIDTH ? viewportWidth : viewportHeight) - sideOffset,
2058
+ offset = myLength - (my.precedance === side || mySide === my[otherSide] ? atLength : 0) - (atSide === CENTER ? targetLength / 2 : 0);
2059
+
2060
+ // shift
2061
+ if(isShift) {
2062
+ offset = (mySide === side1 ? 1 : -1) * myLength;
2063
+
2064
+ // Adjust position but keep it within viewport dimensions
2065
+ position[side1] += overflow1 > 0 ? overflow1 : overflow2 > 0 ? -overflow2 : 0;
2066
+ position[side1] = Math.max(
2067
+ -containerOffset[side1] + viewportOffset[side1],
2068
+ initialPos - offset,
2069
+ Math.min(
2070
+ Math.max(
2071
+ -containerOffset[side1] + viewportOffset[side1] + (lengthName === WIDTH ? viewportWidth : viewportHeight),
2072
+ initialPos + offset
2073
+ ),
2074
+ position[side1],
2075
+
2076
+ // Make sure we don't adjust complete off the element when using 'center'
2077
+ mySide === 'center' ? initialPos - myLength : 1E9
2078
+ )
2079
+ );
2080
+
2081
+ }
2082
+
2083
+ // flip/flipinvert
2084
+ else {
2085
+ // Update adjustment amount depending on if using flipinvert or flip
2086
+ adjustment *= type === FLIPINVERT ? 2 : 0;
2087
+
2088
+ // Check for overflow on the left/top
2089
+ if(overflow1 > 0 && (mySide !== side1 || overflow2 > 0)) {
2090
+ position[side1] -= offset + adjustment;
2091
+ newMy.invert(side, side1);
2092
+ }
2093
+
2094
+ // Check for overflow on the bottom/right
2095
+ else if(overflow2 > 0 && (mySide !== side2 || overflow1 > 0) ) {
2096
+ position[side1] -= (mySide === CENTER ? -offset : offset) + adjustment;
2097
+ newMy.invert(side, side2);
2098
+ }
2099
+
2100
+ // Make sure we haven't made things worse with the adjustment and reset if so
2101
+ if(position[side1] < viewportScroll[side1] && -position[side1] > overflow2) {
2102
+ position[side1] = initialPos; newMy = my.clone();
2103
+ }
2104
+ }
2105
+
2106
+ return position[side1] - initialPos;
2107
+ }
2108
+
2109
+ // Set newMy if using flip or flipinvert methods
2110
+ if(methodX !== 'shift' || methodY !== 'shift') { newMy = my.clone(); }
2111
+
2112
+ // Adjust position based onviewport and adjustment options
2113
+ adjusted = {
2114
+ left: methodX !== 'none' ? calculate( X, Y, methodX, adjust.x, LEFT, RIGHT, WIDTH, targetWidth, elemWidth ) : 0,
2115
+ top: methodY !== 'none' ? calculate( Y, X, methodY, adjust.y, TOP, BOTTOM, HEIGHT, targetHeight, elemHeight ) : 0,
2116
+ my: newMy
2117
+ };
2118
+
2119
+ return adjusted;
2120
+ };
2121
+ ;}));
2122
+ }( window, document ));
js/time-picker.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  !function($){function Timepicker(){this._curInst=null,this._disabledInputs=[],this._timepickerShowing=!1,this._inDialog=!1,this._dialogClass="ui-timepicker-dialog",this._mainDivId="ui-timepicker-div",this._inlineClass="ui-timepicker-inline",this._currentClass="ui-timepicker-current",this._dayOverClass="ui-timepicker-days-cell-over",this.regional=[],this.regional[""]={hourText:"Hour",minuteText:"Minute",amPmText:["AM","PM"],closeButtonText:"Done",nowButtonText:"Now",deselectButtonText:"Deselect"},this._defaults={showOn:"focus",button:null,showAnim:"fadeIn",showOptions:{},appendText:"",beforeShow:null,onSelect:null,onClose:null,timeSeparator:":",periodSeparator:" ",showPeriod:!1,showPeriodLabels:!0,showLeadingZero:!0,showMinutesLeadingZero:!0,altField:"",defaultTime:"now",myPosition:"left top",atPosition:"left bottom",onHourShow:null,onMinuteShow:null,hours:{starts:0,ends:23},minutes:{starts:0,ends:55,interval:5},rows:4,showHours:!0,showMinutes:!0,optionalMinutes:!1,showCloseButton:!1,showNowButton:!1,showDeselectButton:!1},$.extend(this._defaults,this.regional[""]),this.tpDiv=$('<div id="'+this._mainDivId+'" class="ui-timepicker ui-widget ui-helper-clearfix ui-corner-all " style="display: none"></div>')}function extendRemove(a,b){$.extend(a,b);for(var c in b)(null==b[c]||void 0==b[c])&&(a[c]=b[c]);return a}$.extend($.ui,{timepicker:{version:"0.3.1"}});var PROP_NAME="timepicker",tpuuid=(new Date).getTime();$.extend(Timepicker.prototype,{markerClassName:"hasTimepicker",log:function(){},_widgetTimepicker:function(){return this.tpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachTimepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("time:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="tp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?(this._connectTimepicker(target,inst),this._setTimeFromField(inst)):inline&&this._inlineTimepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,inline:b,tpDiv:b?$('<div class="'+this._inlineClass+' ui-timepicker ui-widget ui-helper-clearfix"></div>'):this.tpDiv}},_connectTimepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]),c.hasClass(this.markerClassName)||(this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keyup(this._doKeyUp).bind("setData.timepicker",function(a,c,d){b.settings[c]=d}).bind("getData.timepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b))},_doKeyDown:function(a){var b=$.timepicker._getInst(a.target),c=!0;if(b._keyEvent=!0,$.timepicker._timepickerShowing)switch(a.keyCode){case 9:$.timepicker._hideTimepicker(),c=!1;break;case 13:return $.timepicker._updateSelectedValue(b),$.timepicker._hideTimepicker(),!1;case 27:$.timepicker._hideTimepicker();break;default:c=!1}else 36==a.keyCode&&a.ctrlKey?$.timepicker._showTimepicker(this):c=!1;c&&(a.preventDefault(),a.stopPropagation())},_doKeyUp:function(a){var b=$.timepicker._getInst(a.target);$.timepicker._setTimeFromField(b),$.timepicker._updateTimepicker(b)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$('<span class="'+this._appendClass+'">'+c+"</span>"),a[d?"before":"after"](b.append)),a.unbind("focus.timepicker",this._showTimepicker),a.unbind("click.timepicker",this._adjustZIndex),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");if(("focus"==e||"both"==e)&&(a.bind("focus.timepicker",this._showTimepicker),a.bind("click.timepicker",this._adjustZIndex)),"button"==e||"both"==e){var f=this._get(b,"button");$(f).bind("click.timepicker",function(){return $.timepicker._timepickerShowing&&$.timepicker._lastInput==a[0]?$.timepicker._hideTimepicker():b.input.is(":disabled")||$.timepicker._showTimepicker(a[0]),!1})}},_inlineTimepicker:function(a,b){var c=$(a);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(b.tpDiv).bind("setData.timepicker",function(a,c,d){b.settings[c]=d}).bind("getData.timepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setTimeFromField(b),this._updateTimepicker(b),b.tpDiv.show())},_adjustZIndex:function(a){a=a.target||a;var b=$.timepicker._getInst(a);b.tpDiv.css("zIndex",$.timepicker._getZIndex(a)+1)},_showTimepicker:function(a){if(a=a.target||a,"input"!=a.nodeName.toLowerCase()&&(a=$("input",a.parentNode)[0]),!$.timepicker._isDisabledTimepicker(a)&&$.timepicker._lastInput!=a){$.timepicker._hideTimepicker();var b=$.timepicker._getInst(a);$.timepicker._curInst&&$.timepicker._curInst!=b&&$.timepicker._curInst.tpDiv.stop(!0,!0);var c=$.timepicker._get(b,"beforeShow");extendRemove(b.settings,c?c.apply(a,[a,b]):{}),b.lastVal=null,$.timepicker._lastInput=a,$.timepicker._setTimeFromField(b),$.timepicker._inDialog&&(a.value=""),$.timepicker._pos||($.timepicker._pos=$.timepicker._findPos(a),$.timepicker._pos[1]+=a.offsetHeight);var d=!1;$(a).parents().each(function(){return d|="fixed"==$(this).css("position"),!d}),d&&$.browser.opera&&($.timepicker._pos[0]-=document.documentElement.scrollLeft,$.timepicker._pos[1]-=document.documentElement.scrollTop);var e={left:$.timepicker._pos[0],top:$.timepicker._pos[1]};if($.timepicker._pos=null,b.tpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.timepicker._updateTimepicker(b),b.inline||"object"!=typeof $.ui.position||(b.tpDiv.position({of:b.input,my:$.timepicker._get(b,"myPosition"),at:$.timepicker._get(b,"atPosition"),collision:"flip"}),e=b.tpDiv.offset(),$.timepicker._pos=[e.top,e.left]),b._hoursClicked=!1,b._minutesClicked=!1,e=$.timepicker._checkOffset(b,e,d),b.tpDiv.css({position:$.timepicker._inDialog&&$.blockUI?"static":d?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"}),!b.inline){var f=$.timepicker._get(b,"showAnim"),g=$.timepicker._get(b,"duration"),h=function(){$.timepicker._timepickerShowing=!0;var a=$.timepicker._getBorders(b.tpDiv);b.tpDiv.find("iframe.ui-timepicker-cover").css({left:-a[0],top:-a[1],width:b.tpDiv.outerWidth(),height:b.tpDiv.outerHeight()})};$.timepicker._adjustZIndex(a),$.effects&&$.effects[f]?b.tpDiv.show(f,$.timepicker._get(b,"showOptions"),g,h):b.tpDiv[f||"show"](f?g:null,h),f&&g||h(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.timepicker._curInst=b}}},_getZIndex:function(a){for(var b,c,d=$(a);d.length&&d[0]!==document;){if(b=d.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(d.css("zIndex"),10),!isNaN(c)&&0!==c))return c;d=d.parent()}},_refreshTimepicker:function(a){var b=this._getInst(a);b&&this._updateTimepicker(b)},_updateTimepicker:function(a){a.tpDiv.empty().append(this._generateHTML(a)),this._rebindDialogEvents(a)},_rebindDialogEvents:function(a){var b=$.timepicker._getBorders(a.tpDiv),c=this;a.tpDiv.find("iframe.ui-timepicker-cover").css({left:-b[0],top:-b[1],width:a.tpDiv.outerWidth(),height:a.tpDiv.outerHeight()}).end().find(".ui-timepicker-minute-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.timepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.timepicker.selectMinutes,this)).end().find(".ui-timepicker-hour-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.timepicker.selectHours,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.timepicker.selectHours,this)).end().find(".ui-timepicker td a").unbind().bind("mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).removeClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).removeClass("ui-timepicker-next-hover")}).bind("mouseover",function(){c._isDisabledTimepicker(a.inline?a.tpDiv.parent()[0]:a.input[0])||($(this).parents(".ui-timepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).addClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).addClass("ui-timepicker-next-hover"))}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end().find(".ui-timepicker-now").bind("click",function(a){$.timepicker.selectNow(a)}).end().find(".ui-timepicker-deselect").bind("click",function(a){$.timepicker.deselectTime(a)}).end().find(".ui-timepicker-close").bind("click",function(a){$.timepicker._hideTimepicker()}).end()},_generateHTML:function(a){var b,c,d,e,f=1==this._get(a,"showPeriod"),g=1==this._get(a,"showPeriodLabels"),h=1==this._get(a,"showLeadingZero"),i=1==this._get(a,"showHours"),j=1==this._get(a,"showMinutes"),k=this._get(a,"amPmText"),l=this._get(a,"rows"),m=0,n=0,o=0,p=0,q=0,r=0,s=Array(),t=this._get(a,"hours"),u=null,v=0,w=this._get(a,"hourText"),x=this._get(a,"showCloseButton"),y=this._get(a,"closeButtonText"),z=this._get(a,"showNowButton"),A=this._get(a,"nowButtonText"),B=this._get(a,"showDeselectButton"),C=this._get(a,"deselectButtonText"),D=x||z||B;for(b=t.starts;b<=t.ends;b++)s.push(b);if(u=Math.ceil(s.length/l),g){for(v=0;v<s.length;v++)s[v]<12?o++:p++;v=0,m=Math.floor(o/s.length*l),n=Math.floor(p/s.length*l),l!=m+n&&(o&&(!p||!m||n&&o/m>=p/n)?m++:n++),q=Math.min(m,1),r=m+1,u=Math.ceil(Math.max(o/m,p/n))}if(e='<table class="ui-timepicker-table ui-widget-content ui-corner-all"><tr>',i){for(e+='<td class="ui-timepicker-hours"><div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+w+'</div><table class="ui-timepicker">',c=1;l>=c;c++){for(e+="<tr>",c==q&&g&&(e+='<th rowspan="'+m.toString()+'" class="periods" scope="row">'+k[0]+"</th>"),c==r&&g&&(e+='<th rowspan="'+n.toString()+'" class="periods" scope="row">'+k[1]+"</th>"),d=1;u>=d;d++)g&&r>c&&s[v]>=12?e+=this._generateHTMLHourCell(a,void 0,f,h):(e+=this._generateHTMLHourCell(a,s[v],f,h),v++);e+="</tr>"}e+="</tr></table></td>"}if(j&&(e+='<td class="ui-timepicker-minutes">',e+=this._generateHTMLMinutes(a),e+="</td>"),e+="</tr>",D){var E='<tr><td colspan="3"><div class="ui-timepicker-buttonpane ui-widget-content">';z&&(E+='<button type="button" class="ui-timepicker-now ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+A+"</button>"),B&&(E+='<button type="button" class="ui-timepicker-deselect ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+C+"</button>"),x&&(E+='<button type="button" class="ui-timepicker-close ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+y+"</button>"),e+=E+"</div></td></tr>"}return e+="</table>",e+=$.browser.msie&&parseInt($.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-timepicker-cover" frameborder="0"></iframe>':""},_updateMinuteDisplay:function(a){var b=this._generateHTMLMinutes(a);a.tpDiv.find("td.ui-timepicker-minutes").html(b),this._rebindDialogEvents(a)},_generateHTMLMinutes:function(a){var b,c,d="",e=this._get(a,"rows"),f=Array(),g=this._get(a,"minutes"),h=null,i=0,j=1==this._get(a,"showMinutesLeadingZero"),k=this._get(a,"onMinuteShow"),l=this._get(a,"minuteText");for(g.starts||(g.starts=0),g.ends||(g.ends=59),b=g.starts;b<=g.ends;b+=g.interval)f.push(b);if(h=Math.round(f.length/e+.49),k&&0==k.apply(a.input?a.input[0]:null,[a.hours,a.minutes]))for(i=0;i<f.length;i+=1)if(b=f[i],k.apply(a.input?a.input[0]:null,[a.hours,b])){a.minutes=b;break}for(d+='<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+l+'</div><table class="ui-timepicker">',i=0,c=1;e>=c;c++){for(d+="<tr>";c*h>i;){b=f[i];var m="";void 0!==b&&(m=10>b&&j?"0"+b.toString():b.toString()),d+=this._generateHTMLMinuteCell(a,b,m),i++}d+="</tr>"}return d+="</table>"},_generateHTMLHourCell:function(a,b,c,d){var e=b;b>12&&c&&(e=b-12),0==e&&c&&(e=12),10>e&&d&&(e="0"+e);var f="",g=!0,h=this._get(a,"onHourShow");return void 0==b?f='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(h&&(g=h.apply(a.input?a.input[0]:null,[b])),f=g?'<td class="ui-timepicker-hour-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-hour="'+b.toString()+'"><a class="ui-state-default '+(b==a.hours?"ui-state-active":"")+'">'+e.toString()+"</a></td>":'<td><span class="ui-state-default ui-state-disabled '+(b==a.hours?" ui-state-active ":" ")+'">'+e.toString()+"</span></td>")},_generateHTMLMinuteCell:function(a,b,c){var d="",e=!0,f=this._get(a,"onMinuteShow");return f&&(e=f.apply(a.input?a.input[0]:null,[a.hours,b])),d=void 0==b?'<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':e?'<td class="ui-timepicker-minute-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-minute="'+b.toString()+'" ><a class="ui-state-default '+(b==a.minutes?"ui-state-active":"")+'" >'+c+"</a></td>":'<td><span class="ui-state-default ui-state-disabled" >'+c+"</span></td>"},_destroyTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),"input"==d?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus.timepicker",this._showTimepicker).unbind("click.timepicker",this._adjustZIndex)):("div"==d||"span"==d)&&b.removeClass(this.markerClassName).empty()}},_enableTimepicker:function(a){var b=$(a),c=b.attr("id"),d=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if("input"==e){a.disabled=!1;var f=this._get(d,"button");$(f).removeClass("ui-state-disabled").disabled=!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end()}else if("div"==e||"span"==e){var g=b.children("."+this._inlineClass);g.children().removeClass("ui-state-disabled"),g.find("button").each(function(){this.disabled=!1})}this._disabledInputs=$.map(this._disabledInputs,function(a){return a==c?null:a})}},_disableTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();if("input"==d){var e=this._get(c,"button");$(e).addClass("ui-state-disabled").disabled=!0,a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end()}else if("div"==d||"span"==d){var f=b.children("."+this._inlineClass);f.children().addClass("ui-state-disabled"),f.find("button").each(function(){this.disabled=!0})}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=b.attr("id")}},_isDisabledTimepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_checkOffset:function(a,b,c){var d=a.tpDiv.outerWidth(),e=a.tpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+$(document).scrollLeft(),i=document.documentElement.clientHeight+$(document).scrollTop();return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){for(var b=this._getInst(a),c=this._get(b,"isRTL");a&&("hidden"==a.type||1!=a.nodeType);)a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkExternalClick:function(a){if($.timepicker._curInst){var b=$(a.target);b[0].id==$.timepicker._mainDivId||0!=b.parents("#"+$.timepicker._mainDivId).length||b.hasClass($.timepicker.markerClassName)||b.hasClass($.timepicker._triggerClass)||!$.timepicker._timepickerShowing||$.timepicker._inDialog&&$.blockUI||$.timepicker._hideTimepicker()}},_hideTimepicker:function(a){var b=this._curInst;if(b&&(!a||b==$.data(a,PROP_NAME))&&this._timepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.timepicker._tidyDialog(b),this._curInst=null};$.effects&&$.effects[c]?b.tpDiv.hide(c,$.timepicker._get(b,"showOptions"),d,e):b.tpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?d:null,e),c||e(),this._timepickerShowing=!1,this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.tpDiv))),this._inDialog=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])}},_tidyDialog:function(a){a.tpDiv.removeClass(this._dialogClass).unbind(".ui-timepicker")},_getInst:function(a){try{return $.data(a,PROP_NAME)}catch(b){throw"Missing instance data for this timepicker"}},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setTimeFromField:function(a){if(a.input.val()!=a.lastVal){var b=this._get(a,"defaultTime"),c="now"==b?this._getCurrentTimeRounded(a):b;if(0==a.inline&&""!=a.input.val()&&(c=a.input.val()),c instanceof Date)a.hours=c.getHours(),a.minutes=c.getMinutes();else{var d=a.lastVal=c;if(""==c)a.hours=-1,a.minutes=-1;else{var e=this.parseTime(a,d);a.hours=e.hours,a.minutes=e.minutes}}$.timepicker._updateTimepicker(a)}},_optionTimepicker:function(a,b,c){var d=this._getInst(a);if(2==arguments.length&&"string"==typeof b)return"defaults"==b?$.extend({},$.timepicker._defaults):d?"all"==b?$.extend({},d.settings):this._get(d,b):null;var e=b||{};"string"==typeof b&&(e={},e[b]=c),d&&(this._curInst==d&&this._hideTimepicker(),extendRemove(d.settings,e),this._updateTimepicker(d))},_setTimeTimepicker:function(a,b){var c=this._getInst(a);c&&(this._setTime(c,b),this._updateTimepicker(c),this._updateAlternate(c,b))},_setTime:function(a,b,c){var d=a.hours,e=a.minutes;b=this.parseTime(a,b),a.hours=b.hours,a.minutes=b.minutes,d==a.hours&&e==a.minuts||c||a.input.trigger("change"),this._updateTimepicker(a),this._updateSelectedValue(a)},_getCurrentTimeRounded:function(a){var b=new Date,c=b.getMinutes(),d=5*Math.round(c/5);return b.setMinutes(d),b},parseTime:function(a,b){var c=new Object;c.hours=-1,c.minutes=-1;var d=this._get(a,"timeSeparator"),e=this._get(a,"amPmText"),f=this._get(a,"showHours"),g=this._get(a,"showMinutes"),h=this._get(a,"optionalMinutes"),i=1==this._get(a,"showPeriod"),j=b.indexOf(d);if(-1!=j?(c.hours=parseInt(b.substr(0,j),10),c.minutes=parseInt(b.substr(j+1),10)):!f||g&&!h?!f&&g&&(c.minutes=parseInt(b,10)):c.hours=parseInt(b,10),f){var k=b.toUpperCase();c.hours<12&&i&&-1!=k.indexOf(e[1].toUpperCase())&&(c.hours+=12),12==c.hours&&i&&-1!=k.indexOf(e[0].toUpperCase())&&(c.hours=0)}return c},selectNow:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]),e=new Date;d.hours=e.getHours(),d.minutes=e.getMinutes(),this._updateSelectedValue(d),this._updateTimepicker(d),this._hideTimepicker()},deselectTime:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]);d.hours=-1,d.minutes=-1,this._updateSelectedValue(d),this._hideTimepicker()},selectHours:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-hour")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showMinutes");if($.timepicker._isDisabledTimepicker(f.attr("id")))return!1;b.parents(".ui-timepicker-hours:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.hours=d;var i=this._get(g,"onMinuteShow");return i&&this._updateMinuteDisplay(g),this._updateSelectedValue(g),g._hoursClicked=!0,(g._minutesClicked||e||0==h)&&$.timepicker._hideTimepicker(),!1},selectMinutes:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-minute")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showHours");return $.timepicker._isDisabledTimepicker(f.attr("id"))?!1:(b.parents(".ui-timepicker-minutes:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.minutes=d,this._updateSelectedValue(g),g._minutesClicked=!0,g._hoursClicked||e||0==h?($.timepicker._hideTimepicker(),!1):!1)},_updateSelectedValue:function(a){var b=this._getParsedTime(a);a.input&&(a.input.val(b),a.input.trigger("change"));var c=this._get(a,"onSelect");return c&&c.apply(a.input?a.input[0]:null,[b,a]),this._updateAlternate(a,b),b},_getParsedTime:function(a){if(-1==a.hours&&-1==a.minutes)return"";(a.hours<a.hours.starts||a.hours>a.hours.ends)&&(a.hours=0),(a.minutes<a.minutes.starts||a.minutes>a.minutes.ends)&&(a.minutes=0);var b="",c=1==this._get(a,"showPeriod"),d=1==this._get(a,"showLeadingZero"),e=1==this._get(a,"showHours"),f=1==this._get(a,"showMinutes"),g=1==this._get(a,"optionalMinutes"),h=this._get(a,"amPmText"),i=a.hours?a.hours:0,j=a.minutes?a.minutes:0,k=i?i:0,l="";c&&(0==a.hours&&(k=12),a.hours<12?b=h[0]:(b=h[1],k>12&&(k-=12)));var m=k.toString();d&&10>k&&(m="0"+m);var n=j.toString();return 10>j&&(n="0"+n),e&&(l+=m),!e||!f||g&&0==n||(l+=this._get(a,"timeSeparator")),!f||g&&0==n||(l+=n),e&&b.length>0&&(l+=this._get(a,"periodSeparator")+b),l},_updateAlternate:function(a,b){var c=this._get(a,"altField");c&&$(c).each(function(a,c){$(c).val(b)})},_getTimeTimepicker:function(a){var b=this._getInst(a);return this._getParsedTime(b)},_getHourTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.hours},_getMinuteTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.minutes}}),$.fn.timepicker=function(a){$.timepicker.initialized||($(document).mousedown($.timepicker._checkExternalClick).find("body").append($.timepicker.tpDiv),$.timepicker.initialized=!0);var b=Array.prototype.slice.call(arguments,1);return"string"!=typeof a||"getTime"!=a&&"getHour"!=a&&"getMinute"!=a?"option"==a&&2==arguments.length&&"string"==typeof arguments[1]?$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this[0]].concat(b)):this.each(function(){"string"==typeof a?$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this].concat(b)):$.timepicker._attachTimepicker(this,a)}):$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this[0]].concat(b))},$.timepicker=new Timepicker,$.timepicker.initialized=!1,$.timepicker.uuid=(new Date).getTime(),$.timepicker.version="0.3.1",window["TP_jQuery_"+tpuuid]=$}(jQuery);
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
  !function($){function Timepicker(){this._curInst=null,this._disabledInputs=[],this._timepickerShowing=!1,this._inDialog=!1,this._dialogClass="ui-timepicker-dialog",this._mainDivId="ui-timepicker-div",this._inlineClass="ui-timepicker-inline",this._currentClass="ui-timepicker-current",this._dayOverClass="ui-timepicker-days-cell-over",this.regional=[],this.regional[""]={hourText:"Hour",minuteText:"Minute",amPmText:["AM","PM"],closeButtonText:"Done",nowButtonText:"Now",deselectButtonText:"Deselect"},this._defaults={showOn:"focus",button:null,showAnim:"fadeIn",showOptions:{},appendText:"",beforeShow:null,onSelect:null,onClose:null,timeSeparator:":",periodSeparator:" ",showPeriod:!1,showPeriodLabels:!0,showLeadingZero:!0,showMinutesLeadingZero:!0,altField:"",defaultTime:"now",myPosition:"left top",atPosition:"left bottom",onHourShow:null,onMinuteShow:null,hours:{starts:0,ends:23},minutes:{starts:0,ends:55,interval:5},rows:4,showHours:!0,showMinutes:!0,optionalMinutes:!1,showCloseButton:!1,showNowButton:!1,showDeselectButton:!1},$.extend(this._defaults,this.regional[""]),this.tpDiv=$('<div id="'+this._mainDivId+'" class="ui-timepicker ui-widget ui-helper-clearfix ui-corner-all " style="display: none"></div>')}function extendRemove(a,b){$.extend(a,b);for(var c in b)(null==b[c]||void 0==b[c])&&(a[c]=b[c]);return a}$.extend($.ui,{timepicker:{version:"0.3.1"}});var PROP_NAME="timepicker",tpuuid=(new Date).getTime();$.extend(Timepicker.prototype,{markerClassName:"hasTimepicker",log:function(){},_widgetTimepicker:function(){return this.tpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachTimepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("time:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="tp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?(this._connectTimepicker(target,inst),this._setTimeFromField(inst)):inline&&this._inlineTimepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,inline:b,tpDiv:b?$('<div class="'+this._inlineClass+' ui-timepicker ui-widget ui-helper-clearfix"></div>'):this.tpDiv}},_connectTimepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]),c.hasClass(this.markerClassName)||(this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keyup(this._doKeyUp).bind("setData.timepicker",function(a,c,d){b.settings[c]=d}).bind("getData.timepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b))},_doKeyDown:function(a){var b=$.timepicker._getInst(a.target),c=!0;if(b._keyEvent=!0,$.timepicker._timepickerShowing)switch(a.keyCode){case 9:$.timepicker._hideTimepicker(),c=!1;break;case 13:return $.timepicker._updateSelectedValue(b),$.timepicker._hideTimepicker(),!1;case 27:$.timepicker._hideTimepicker();break;default:c=!1}else 36==a.keyCode&&a.ctrlKey?$.timepicker._showTimepicker(this):c=!1;c&&(a.preventDefault(),a.stopPropagation())},_doKeyUp:function(a){var b=$.timepicker._getInst(a.target);$.timepicker._setTimeFromField(b),$.timepicker._updateTimepicker(b)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$('<span class="'+this._appendClass+'">'+c+"</span>"),a[d?"before":"after"](b.append)),a.unbind("focus.timepicker",this._showTimepicker),a.unbind("click.timepicker",this._adjustZIndex),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");if(("focus"==e||"both"==e)&&(a.bind("focus.timepicker",this._showTimepicker),a.bind("click.timepicker",this._adjustZIndex)),"button"==e||"both"==e){var f=this._get(b,"button");$(f).bind("click.timepicker",function(){return $.timepicker._timepickerShowing&&$.timepicker._lastInput==a[0]?$.timepicker._hideTimepicker():b.input.is(":disabled")||$.timepicker._showTimepicker(a[0]),!1})}},_inlineTimepicker:function(a,b){var c=$(a);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(b.tpDiv).bind("setData.timepicker",function(a,c,d){b.settings[c]=d}).bind("getData.timepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setTimeFromField(b),this._updateTimepicker(b),b.tpDiv.show())},_adjustZIndex:function(a){a=a.target||a;var b=$.timepicker._getInst(a);b.tpDiv.css("zIndex",$.timepicker._getZIndex(a)+1)},_showTimepicker:function(a){if(a=a.target||a,"input"!=a.nodeName.toLowerCase()&&(a=$("input",a.parentNode)[0]),!$.timepicker._isDisabledTimepicker(a)&&$.timepicker._lastInput!=a){$.timepicker._hideTimepicker();var b=$.timepicker._getInst(a);$.timepicker._curInst&&$.timepicker._curInst!=b&&$.timepicker._curInst.tpDiv.stop(!0,!0);var c=$.timepicker._get(b,"beforeShow");extendRemove(b.settings,c?c.apply(a,[a,b]):{}),b.lastVal=null,$.timepicker._lastInput=a,$.timepicker._setTimeFromField(b),$.timepicker._inDialog&&(a.value=""),$.timepicker._pos||($.timepicker._pos=$.timepicker._findPos(a),$.timepicker._pos[1]+=a.offsetHeight);var d=!1;$(a).parents().each(function(){return d|="fixed"==$(this).css("position"),!d}),d&&$.browser.opera&&($.timepicker._pos[0]-=document.documentElement.scrollLeft,$.timepicker._pos[1]-=document.documentElement.scrollTop);var e={left:$.timepicker._pos[0],top:$.timepicker._pos[1]};if($.timepicker._pos=null,b.tpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.timepicker._updateTimepicker(b),b.inline||"object"!=typeof $.ui.position||(b.tpDiv.position({of:b.input,my:$.timepicker._get(b,"myPosition"),at:$.timepicker._get(b,"atPosition"),collision:"flip"}),e=b.tpDiv.offset(),$.timepicker._pos=[e.top,e.left]),b._hoursClicked=!1,b._minutesClicked=!1,e=$.timepicker._checkOffset(b,e,d),b.tpDiv.css({position:$.timepicker._inDialog&&$.blockUI?"static":d?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"}),!b.inline){var f=$.timepicker._get(b,"showAnim"),g=$.timepicker._get(b,"duration"),h=function(){$.timepicker._timepickerShowing=!0;var a=$.timepicker._getBorders(b.tpDiv);b.tpDiv.find("iframe.ui-timepicker-cover").css({left:-a[0],top:-a[1],width:b.tpDiv.outerWidth(),height:b.tpDiv.outerHeight()})};$.timepicker._adjustZIndex(a),$.effects&&$.effects[f]?b.tpDiv.show(f,$.timepicker._get(b,"showOptions"),g,h):b.tpDiv[f||"show"](f?g:null,h),f&&g||h(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.timepicker._curInst=b}}},_getZIndex:function(a){for(var b,c,d=$(a);d.length&&d[0]!==document;){if(b=d.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(d.css("zIndex"),10),!isNaN(c)&&0!==c))return c;d=d.parent()}},_refreshTimepicker:function(a){var b=this._getInst(a);b&&this._updateTimepicker(b)},_updateTimepicker:function(a){a.tpDiv.empty().append(this._generateHTML(a)),this._rebindDialogEvents(a)},_rebindDialogEvents:function(a){var b=$.timepicker._getBorders(a.tpDiv),c=this;a.tpDiv.find("iframe.ui-timepicker-cover").css({left:-b[0],top:-b[1],width:a.tpDiv.outerWidth(),height:a.tpDiv.outerHeight()}).end().find(".ui-timepicker-minute-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.timepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.timepicker.selectMinutes,this)).end().find(".ui-timepicker-hour-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.timepicker.selectHours,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.timepicker.selectHours,this)).end().find(".ui-timepicker td a").unbind().bind("mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).removeClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).removeClass("ui-timepicker-next-hover")}).bind("mouseover",function(){c._isDisabledTimepicker(a.inline?a.tpDiv.parent()[0]:a.input[0])||($(this).parents(".ui-timepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).addClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).addClass("ui-timepicker-next-hover"))}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end().find(".ui-timepicker-now").bind("click",function(a){$.timepicker.selectNow(a)}).end().find(".ui-timepicker-deselect").bind("click",function(a){$.timepicker.deselectTime(a)}).end().find(".ui-timepicker-close").bind("click",function(a){$.timepicker._hideTimepicker()}).end()},_generateHTML:function(a){var b,c,d,e,f=1==this._get(a,"showPeriod"),g=1==this._get(a,"showPeriodLabels"),h=1==this._get(a,"showLeadingZero"),i=1==this._get(a,"showHours"),j=1==this._get(a,"showMinutes"),k=this._get(a,"amPmText"),l=this._get(a,"rows"),m=0,n=0,o=0,p=0,q=0,r=0,s=Array(),t=this._get(a,"hours"),u=null,v=0,w=this._get(a,"hourText"),x=this._get(a,"showCloseButton"),y=this._get(a,"closeButtonText"),z=this._get(a,"showNowButton"),A=this._get(a,"nowButtonText"),B=this._get(a,"showDeselectButton"),C=this._get(a,"deselectButtonText"),D=x||z||B;for(b=t.starts;b<=t.ends;b++)s.push(b);if(u=Math.ceil(s.length/l),g){for(v=0;v<s.length;v++)s[v]<12?o++:p++;v=0,m=Math.floor(o/s.length*l),n=Math.floor(p/s.length*l),l!=m+n&&(o&&(!p||!m||n&&o/m>=p/n)?m++:n++),q=Math.min(m,1),r=m+1,u=Math.ceil(Math.max(o/m,p/n))}if(e='<table class="ui-timepicker-table ui-widget-content ui-corner-all"><tr>',i){for(e+='<td class="ui-timepicker-hours"><div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+w+'</div><table class="ui-timepicker">',c=1;l>=c;c++){for(e+="<tr>",c==q&&g&&(e+='<th rowspan="'+m.toString()+'" class="periods" scope="row">'+k[0]+"</th>"),c==r&&g&&(e+='<th rowspan="'+n.toString()+'" class="periods" scope="row">'+k[1]+"</th>"),d=1;u>=d;d++)g&&r>c&&s[v]>=12?e+=this._generateHTMLHourCell(a,void 0,f,h):(e+=this._generateHTMLHourCell(a,s[v],f,h),v++);e+="</tr>"}e+="</tr></table></td>"}if(j&&(e+='<td class="ui-timepicker-minutes">',e+=this._generateHTMLMinutes(a),e+="</td>"),e+="</tr>",D){var E='<tr><td colspan="3"><div class="ui-timepicker-buttonpane ui-widget-content">';z&&(E+='<button type="button" class="ui-timepicker-now ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+A+"</button>"),B&&(E+='<button type="button" class="ui-timepicker-deselect ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+C+"</button>"),x&&(E+='<button type="button" class="ui-timepicker-close ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+y+"</button>"),e+=E+"</div></td></tr>"}return e+="</table>",e+=$.browser.msie&&parseInt($.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-timepicker-cover" frameborder="0"></iframe>':""},_updateMinuteDisplay:function(a){var b=this._generateHTMLMinutes(a);a.tpDiv.find("td.ui-timepicker-minutes").html(b),this._rebindDialogEvents(a)},_generateHTMLMinutes:function(a){var b,c,d="",e=this._get(a,"rows"),f=Array(),g=this._get(a,"minutes"),h=null,i=0,j=1==this._get(a,"showMinutesLeadingZero"),k=this._get(a,"onMinuteShow"),l=this._get(a,"minuteText");for(g.starts||(g.starts=0),g.ends||(g.ends=59),b=g.starts;b<=g.ends;b+=g.interval)f.push(b);if(h=Math.round(f.length/e+.49),k&&0==k.apply(a.input?a.input[0]:null,[a.hours,a.minutes]))for(i=0;i<f.length;i+=1)if(b=f[i],k.apply(a.input?a.input[0]:null,[a.hours,b])){a.minutes=b;break}for(d+='<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+l+'</div><table class="ui-timepicker">',i=0,c=1;e>=c;c++){for(d+="<tr>";c*h>i;){b=f[i];var m="";void 0!==b&&(m=10>b&&j?"0"+b.toString():b.toString()),d+=this._generateHTMLMinuteCell(a,b,m),i++}d+="</tr>"}return d+="</table>"},_generateHTMLHourCell:function(a,b,c,d){var e=b;b>12&&c&&(e=b-12),0==e&&c&&(e=12),10>e&&d&&(e="0"+e);var f="",g=!0,h=this._get(a,"onHourShow");return void 0==b?f='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(h&&(g=h.apply(a.input?a.input[0]:null,[b])),f=g?'<td class="ui-timepicker-hour-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-hour="'+b.toString()+'"><a class="ui-state-default '+(b==a.hours?"ui-state-active":"")+'">'+e.toString()+"</a></td>":'<td><span class="ui-state-default ui-state-disabled '+(b==a.hours?" ui-state-active ":" ")+'">'+e.toString()+"</span></td>")},_generateHTMLMinuteCell:function(a,b,c){var d="",e=!0,f=this._get(a,"onMinuteShow");return f&&(e=f.apply(a.input?a.input[0]:null,[a.hours,b])),d=void 0==b?'<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':e?'<td class="ui-timepicker-minute-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-minute="'+b.toString()+'" ><a class="ui-state-default '+(b==a.minutes?"ui-state-active":"")+'" >'+c+"</a></td>":'<td><span class="ui-state-default ui-state-disabled" >'+c+"</span></td>"},_destroyTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),"input"==d?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus.timepicker",this._showTimepicker).unbind("click.timepicker",this._adjustZIndex)):("div"==d||"span"==d)&&b.removeClass(this.markerClassName).empty()}},_enableTimepicker:function(a){var b=$(a),c=b.attr("id"),d=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if("input"==e){a.disabled=!1;var f=this._get(d,"button");$(f).removeClass("ui-state-disabled").disabled=!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end()}else if("div"==e||"span"==e){var g=b.children("."+this._inlineClass);g.children().removeClass("ui-state-disabled"),g.find("button").each(function(){this.disabled=!1})}this._disabledInputs=$.map(this._disabledInputs,function(a){return a==c?null:a})}},_disableTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();if("input"==d){var e=this._get(c,"button");$(e).addClass("ui-state-disabled").disabled=!0,a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end()}else if("div"==d||"span"==d){var f=b.children("."+this._inlineClass);f.children().addClass("ui-state-disabled"),f.find("button").each(function(){this.disabled=!0})}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=b.attr("id")}},_isDisabledTimepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_checkOffset:function(a,b,c){var d=a.tpDiv.outerWidth(),e=a.tpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+$(document).scrollLeft(),i=document.documentElement.clientHeight+$(document).scrollTop();return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){for(var b=this._getInst(a),c=this._get(b,"isRTL");a&&("hidden"==a.type||1!=a.nodeType);)a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkExternalClick:function(a){if($.timepicker._curInst){var b=$(a.target);b[0].id==$.timepicker._mainDivId||0!=b.parents("#"+$.timepicker._mainDivId).length||b.hasClass($.timepicker.markerClassName)||b.hasClass($.timepicker._triggerClass)||!$.timepicker._timepickerShowing||$.timepicker._inDialog&&$.blockUI||$.timepicker._hideTimepicker()}},_hideTimepicker:function(a){var b=this._curInst;if(b&&(!a||b==$.data(a,PROP_NAME))&&this._timepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.timepicker._tidyDialog(b),this._curInst=null};$.effects&&$.effects[c]?b.tpDiv.hide(c,$.timepicker._get(b,"showOptions"),d,e):b.tpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?d:null,e),c||e(),this._timepickerShowing=!1,this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.tpDiv))),this._inDialog=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])}},_tidyDialog:function(a){a.tpDiv.removeClass(this._dialogClass).unbind(".ui-timepicker")},_getInst:function(a){try{return $.data(a,PROP_NAME)}catch(b){throw"Missing instance data for this timepicker"}},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setTimeFromField:function(a){if(a.input.val()!=a.lastVal){var b=this._get(a,"defaultTime"),c="now"==b?this._getCurrentTimeRounded(a):b;if(0==a.inline&&""!=a.input.val()&&(c=a.input.val()),c instanceof Date)a.hours=c.getHours(),a.minutes=c.getMinutes();else{var d=a.lastVal=c;if(""==c)a.hours=-1,a.minutes=-1;else{var e=this.parseTime(a,d);a.hours=e.hours,a.minutes=e.minutes}}$.timepicker._updateTimepicker(a)}},_optionTimepicker:function(a,b,c){var d=this._getInst(a);if(2==arguments.length&&"string"==typeof b)return"defaults"==b?$.extend({},$.timepicker._defaults):d?"all"==b?$.extend({},d.settings):this._get(d,b):null;var e=b||{};"string"==typeof b&&(e={},e[b]=c),d&&(this._curInst==d&&this._hideTimepicker(),extendRemove(d.settings,e),this._updateTimepicker(d))},_setTimeTimepicker:function(a,b){var c=this._getInst(a);c&&(this._setTime(c,b),this._updateTimepicker(c),this._updateAlternate(c,b))},_setTime:function(a,b,c){var d=a.hours,e=a.minutes;b=this.parseTime(a,b),a.hours=b.hours,a.minutes=b.minutes,d==a.hours&&e==a.minuts||c||a.input.trigger("change"),this._updateTimepicker(a),this._updateSelectedValue(a)},_getCurrentTimeRounded:function(a){var b=new Date,c=b.getMinutes(),d=5*Math.round(c/5);return b.setMinutes(d),b},parseTime:function(a,b){var c=new Object;c.hours=-1,c.minutes=-1;var d=this._get(a,"timeSeparator"),e=this._get(a,"amPmText"),f=this._get(a,"showHours"),g=this._get(a,"showMinutes"),h=this._get(a,"optionalMinutes"),i=1==this._get(a,"showPeriod"),j=b.indexOf(d);if(-1!=j?(c.hours=parseInt(b.substr(0,j),10),c.minutes=parseInt(b.substr(j+1),10)):!f||g&&!h?!f&&g&&(c.minutes=parseInt(b,10)):c.hours=parseInt(b,10),f){var k=b.toUpperCase();c.hours<12&&i&&-1!=k.indexOf(e[1].toUpperCase())&&(c.hours+=12),12==c.hours&&i&&-1!=k.indexOf(e[0].toUpperCase())&&(c.hours=0)}return c},selectNow:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]),e=new Date;d.hours=e.getHours(),d.minutes=e.getMinutes(),this._updateSelectedValue(d),this._updateTimepicker(d),this._hideTimepicker()},deselectTime:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]);d.hours=-1,d.minutes=-1,this._updateSelectedValue(d),this._hideTimepicker()},selectHours:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-hour")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showMinutes");if($.timepicker._isDisabledTimepicker(f.attr("id")))return!1;b.parents(".ui-timepicker-hours:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.hours=d;var i=this._get(g,"onMinuteShow");return i&&this._updateMinuteDisplay(g),this._updateSelectedValue(g),g._hoursClicked=!0,(g._minutesClicked||e||0==h)&&$.timepicker._hideTimepicker(),!1},selectMinutes:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-minute")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showHours");return $.timepicker._isDisabledTimepicker(f.attr("id"))?!1:(b.parents(".ui-timepicker-minutes:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.minutes=d,this._updateSelectedValue(g),g._minutesClicked=!0,g._hoursClicked||e||0==h?($.timepicker._hideTimepicker(),!1):!1)},_updateSelectedValue:function(a){var b=this._getParsedTime(a);a.input&&(a.input.val(b),a.input.trigger("change"));var c=this._get(a,"onSelect");return c&&c.apply(a.input?a.input[0]:null,[b,a]),this._updateAlternate(a,b),b},_getParsedTime:function(a){if(-1==a.hours&&-1==a.minutes)return"";(a.hours<a.hours.starts||a.hours>a.hours.ends)&&(a.hours=0),(a.minutes<a.minutes.starts||a.minutes>a.minutes.ends)&&(a.minutes=0);var b="",c=1==this._get(a,"showPeriod"),d=1==this._get(a,"showLeadingZero"),e=1==this._get(a,"showHours"),f=1==this._get(a,"showMinutes"),g=1==this._get(a,"optionalMinutes"),h=this._get(a,"amPmText"),i=a.hours?a.hours:0,j=a.minutes?a.minutes:0,k=i?i:0,l="";c&&(0==a.hours&&(k=12),a.hours<12?b=h[0]:(b=h[1],k>12&&(k-=12)));var m=k.toString();d&&10>k&&(m="0"+m);var n=j.toString();return 10>j&&(n="0"+n),e&&(l+=m),!e||!f||g&&0==n||(l+=this._get(a,"timeSeparator")),!f||g&&0==n||(l+=n),e&&b.length>0&&(l+=this._get(a,"periodSeparator")+b),l},_updateAlternate:function(a,b){var c=this._get(a,"altField");c&&$(c).each(function(a,c){$(c).val(b)})},_getTimeTimepicker:function(a){var b=this._getInst(a);return this._getParsedTime(b)},_getHourTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.hours},_getMinuteTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.minutes}}),$.fn.timepicker=function(a){$.timepicker.initialized||($(document).mousedown($.timepicker._checkExternalClick).find("body").append($.timepicker.tpDiv),$.timepicker.initialized=!0);var b=Array.prototype.slice.call(arguments,1);return"string"!=typeof a||"getTime"!=a&&"getHour"!=a&&"getMinute"!=a?"option"==a&&2==arguments.length&&"string"==typeof arguments[1]?$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this[0]].concat(b)):this.each(function(){"string"==typeof a?$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this].concat(b)):$.timepicker._attachTimepicker(this,a)}):$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this[0]].concat(b))},$.timepicker=new Timepicker,$.timepicker.initialized=!1,$.timepicker.uuid=(new Date).getTime(),$.timepicker.version="0.3.1",window["TP_jQuery_"+tpuuid]=$}(jQuery);
js/venue-admin.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  var eo_venue=eo_venue||{marker:!1};jQuery(document).ready(function(a){postboxes.add_postbox_toggles(pagenow);var b=a("#eo_venue_Lat").val(),c=a("#eo_venue_Lng").val(),d=15;if(0===b&&0===c){var e=[];a(".eo_addressInput").each(function(){e.push(a(this).val())}),e.join("")||(d=1)}eovenue.init_map("venuemap",{lat:b,lng:c,zoom:d,draggable:!0,onDrag:function(b){this.dragging=!0;var c=b.latLng.lat().toFixed(6)+", "+b.latLng.lng().toFixed(6);a("#eo-venue-latllng-text").text(c)},onDragend:function(a){this.dragging=!1,this.setPosition(this.position)},onPositionchanged:function(){if(!this.dragging){var b=this.getPosition(),c=b.lat().toFixed(6)+", "+b.lng().toFixed(6);a("#eo_venue_Lat").val(b.lat().toFixed(6)),a("#eo_venue_Lng").val(b.lng().toFixed(6)),a("#eo-venue-latllng-text").text(c),this.getMap().setCenter(b),this.getMap().setZoom(15)}}}),a(".eo_addressInput").change(function(){var b=[];a(".eo_addressInput").each(function(){b.push(a(this).val())}),eovenue.geocode(b.join(", "),function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)})}),a("#eo-venue-latllng-text").blur(function(){var b=a(this).text().trim().replace(/ /g,""),c=b.match(/^(-?[0-9]{1,3}\.[0-9]+),(-?[0-9]{1,3}\.[0-9]+)$/),d=a(this).data("eo-lat"),e=a(this).data("eo-lng");if(c){var f=c[1],g=c[2];if(f!=d||g!=e){a(this).data("eo-lat",f),a(this).data("eo-lng",g);var h=new google.maps.LatLng(f,g);eovenue.get_map("venuemap").marker[0].setPosition(h)}}else a(this).text(d+", "+e)}),a("#eo-venue-latllng-text").keydown(function(b){13===b.which&&a(this).blur()})});
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
  var eo_venue=eo_venue||{marker:!1};jQuery(document).ready(function(a){postboxes.add_postbox_toggles(pagenow);var b=a("#eo_venue_Lat").val(),c=a("#eo_venue_Lng").val(),d=15;if(0===b&&0===c){var e=[];a(".eo_addressInput").each(function(){e.push(a(this).val())}),e.join("")||(d=1)}eovenue.init_map("venuemap",{lat:b,lng:c,zoom:d,draggable:!0,onDrag:function(b){this.dragging=!0;var c=b.latLng.lat().toFixed(6)+", "+b.latLng.lng().toFixed(6);a("#eo-venue-latllng-text").text(c)},onDragend:function(a){this.dragging=!1,this.setPosition(this.position)},onPositionchanged:function(){if(!this.dragging){var b=this.getPosition(),c=b.lat().toFixed(6)+", "+b.lng().toFixed(6);a("#eo_venue_Lat").val(b.lat().toFixed(6)),a("#eo_venue_Lng").val(b.lng().toFixed(6)),a("#eo-venue-latllng-text").text(c),this.getMap().setCenter(b),this.getMap().setZoom(15)}}}),a(".eo_addressInput").change(function(){var b=[];a(".eo_addressInput").each(function(){b.push(a(this).val())}),eovenue.geocode(b.join(", "),function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)})}),a("#eo-venue-latllng-text").blur(function(){var b=a(this).text().trim().replace(/ /g,""),c=b.match(/^(-?[0-9]{1,3}\.[0-9]+),(-?[0-9]{1,3}\.[0-9]+)$/),d=a(this).data("eo-lat"),e=a(this).data("eo-lng");if(c){var f=c[1],g=c[2];if(f!=d||g!=e){a(this).data("eo-lat",f),a(this).data("eo-lng",g);var h=new google.maps.LatLng(f,g);eovenue.get_map("venuemap").marker[0].setPosition(h)}}else a(this).text(d+", "+e)}),a("#eo-venue-latllng-text").keydown(function(b){13===b.which&&a(this).blur()})});
js/venue-util.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  !function(a){eovenue={maps:{},init_map:function(a,b){if("undefined"!=typeof google){var c=b.hasOwnProperty("fieldID")?b.fieldID:a,d=b.hasOwnProperty("draggable")?b.draggable:!1,e=b.hasOwnProperty("markerIcon")?b.markerIcon:null,f=b.hasOwnProperty("lat")?b.lat:0,g=b.hasOwnProperty("lng")?b.lng:0,h=new google.maps.LatLng(f,g),i={zoom:b.hasOwnProperty("zoom")?b.zoom:15,center:h,mapTypeId:google.maps.MapTypeId.ROADMAP},j=new google.maps.Map(document.getElementById(c),i),k=new google.maps.Marker({position:h,map:j,draggable:d,icon:e});this.maps[a]={map:j,marker:[k]},b.hasOwnProperty("onDrag")&&b.onDrag&&google.maps.event.addListener(k,"drag",b.onDrag),b.hasOwnProperty("onDragend")&&b.onDragend&&google.maps.event.addListener(k,"dragend",b.onDragend),b.hasOwnProperty("onPositionchanged")&&b.onPositionchanged&&google.maps.event.addListener(k,"position_changed",b.onPositionchanged)}},geocode:function(a,b){if("undefined"!=typeof google){var c=new google.maps.Geocoder;c.geocode({address:a},function(a,c){return c!=google.maps.GeocoderStatus.OK?b.call(this,!1):void b.call(this,a[0].geometry.location)})}},get_map:function(a){return this.maps[a]}}}(jQuery);
1
+ /*! event-organiser 3.6.1-0-g14eccc5 2018-01-04 22:51 */
2
  !function(a){eovenue={maps:{},init_map:function(a,b){if("undefined"!=typeof google){var c=b.hasOwnProperty("fieldID")?b.fieldID:a,d=b.hasOwnProperty("draggable")?b.draggable:!1,e=b.hasOwnProperty("markerIcon")?b.markerIcon:null,f=b.hasOwnProperty("lat")?b.lat:0,g=b.hasOwnProperty("lng")?b.lng:0,h=new google.maps.LatLng(f,g),i={zoom:b.hasOwnProperty("zoom")?b.zoom:15,center:h,mapTypeId:google.maps.MapTypeId.ROADMAP},j=new google.maps.Map(document.getElementById(c),i),k=new google.maps.Marker({position:h,map:j,draggable:d,icon:e});this.maps[a]={map:j,marker:[k]},b.hasOwnProperty("onDrag")&&b.onDrag&&google.maps.event.addListener(k,"drag",b.onDrag),b.hasOwnProperty("onDragend")&&b.onDragend&&google.maps.event.addListener(k,"dragend",b.onDragend),b.hasOwnProperty("onPositionchanged")&&b.onPositionchanged&&google.maps.event.addListener(k,"position_changed",b.onPositionchanged)}},geocode:function(a,b){if("undefined"!=typeof google){var c=new google.maps.Geocoder;c.geocode({address:a},function(a,c){return c!=google.maps.GeocoderStatus.OK?b.call(this,!1):void b.call(this,a[0].geometry.location)})}},get_map:function(a){return this.maps[a]}}}(jQuery);
languages/eventorganiser-af.mo CHANGED
Binary file
languages/eventorganiser-af.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:10:48+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:10:48+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-ar.mo CHANGED
Binary file
languages/eventorganiser-ar.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:42+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:42+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-bg_BG.mo CHANGED
Binary file
languages/eventorganiser-bg_BG.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:38+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:38+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-ca.mo CHANGED
Binary file
languages/eventorganiser-ca.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:21:14+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:21:14+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-cs_CZ.mo CHANGED
Binary file
languages/eventorganiser-cs_CZ.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-10-09T20:46:49+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-10-09T20:46:49+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-da_DK.mo CHANGED
Binary file
languages/eventorganiser-da_DK.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:27:45+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:27:45+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-de_DE.mo CHANGED
Binary file
languages/eventorganiser-de_DE.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:01:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:01:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-el.mo CHANGED
Binary file
languages/eventorganiser-el.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:02:23+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:02:23+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-en_CA.mo CHANGED
Binary file
languages/eventorganiser-en_CA.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:15+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:15+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-en_GB.mo CHANGED
Binary file
languages/eventorganiser-en_GB.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-26T14:51:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-26T14:51:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-es_ES.mo CHANGED
Binary file
languages/eventorganiser-es_ES.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:01:00+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:01:00+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-es_PE.mo CHANGED
Binary file
languages/eventorganiser-es_PE.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-09-11T22:37:13+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-09-11T22:37:13+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-et.mo CHANGED
Binary file
languages/eventorganiser-et.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:05+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:05+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-fa_IR.mo CHANGED
Binary file
languages/eventorganiser-fa_IR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:02+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:02+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-fi.mo CHANGED
Binary file
languages/eventorganiser-fi.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-08-31T14:17:32+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-08-31T14:17:32+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-fr_FR.mo CHANGED
Binary file
languages/eventorganiser-fr_FR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-10-31T18:44:38+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-10-31T18:44:38+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-he_IL.mo CHANGED
Binary file
languages/eventorganiser-he_IL.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:48+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:48+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-hi_IN.mo CHANGED
Binary file
languages/eventorganiser-hi_IN.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:43+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:43+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-hr.mo CHANGED
Binary file
languages/eventorganiser-hr.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-14T22:58:58+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-14T22:58:58+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-hu_HU.mo CHANGED
Binary file
languages/eventorganiser-hu_HU.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-17T13:13:03+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-17T13:13:03+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-id_ID.mo CHANGED
Binary file
languages/eventorganiser-id_ID.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-08-19T03:46:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-08-19T03:46:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-is_IS.mo CHANGED
Binary file
languages/eventorganiser-is_IS.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-12-06T20:43:36+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-12-06T20:43:36+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-it_IT.mo CHANGED
Binary file
languages/eventorganiser-it_IT.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-08-23T05:39:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-08-23T05:39:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-ja.mo CHANGED
Binary file
languages/eventorganiser-ja.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-05-02T14:20:11+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-05-02T14:20:11+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-lt_LT.mo CHANGED
Binary file
languages/eventorganiser-lt_LT.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:11+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:11+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-lv.mo CHANGED
Binary file
languages/eventorganiser-lv.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:21:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:21:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-mk_MK.mo CHANGED
Binary file
languages/eventorganiser-mk_MK.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:03+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:03+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-nb_NO.mo CHANGED
Binary file
languages/eventorganiser-nb_NO.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:00+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:00+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-nl_NL.mo CHANGED
Binary file
languages/eventorganiser-nl_NL.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-11-03T23:42:56+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-11-03T23:42:56+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-nn_NO.mo CHANGED
Binary file
languages/eventorganiser-nn_NO.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-19T20:43:50+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-19T20:43:50+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-pl_PL.mo CHANGED
Binary file
languages/eventorganiser-pl_PL.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:47+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:47+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-pt_BR.mo CHANGED
Binary file
languages/eventorganiser-pt_BR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-05-20T02:33:43+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-05-20T02:33:43+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-pt_PT.mo CHANGED
Binary file
languages/eventorganiser-pt_PT.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-16T22:56:42+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-16T22:56:42+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-ro_RO.mo CHANGED
Binary file
languages/eventorganiser-ro_RO.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:34+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:34+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-ru_RU.mo CHANGED
Binary file
languages/eventorganiser-ru_RU.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:29:26+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:29:26+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-sk_SK.mo CHANGED
Binary file
languages/eventorganiser-sk_SK.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:26+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:26+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-sl_SI.mo CHANGED
Binary file
languages/eventorganiser-sl_SI.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-06-24T09:29:56+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-06-24T09:29:56+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-sv_SE.mo CHANGED
Binary file
languages/eventorganiser-sv_SE.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-07-05T19:32:07+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2017-07-05T19:32:07+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-th.mo CHANGED
Binary file
languages/eventorganiser-th.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:15+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:15+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-uk.mo CHANGED
Binary file
languages/eventorganiser-uk.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:05+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:05+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-zh_CN.mo CHANGED
Binary file
languages/eventorganiser-zh_CN.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:02+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:02+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser-zh_HK.mo CHANGED
Binary file
languages/eventorganiser-zh_HK.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:14:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:14:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/eventorganiser.pot CHANGED
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: event-organiser\n"
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2017-11-25 22:52+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
8
  msgstr ""
9
  "Project-Id-Version: event-organiser\n"
10
  "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2018-01-04 22:51+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: stephenharris
3
  Donate link: http://www.wp-event-organiser.com/donate
4
  Tags: events, event, event categories, event organizer, events calendar, event management, ical, locations, google map, widget, venues, maps, gigs, shows,
5
  Requires at least: 3.8.0
6
- Tested up to: 4.9.0
7
- Stable tag: 3.6.0
8
  License: GPLv3
9
 
10
  Create and maintain events, including complex reoccurring patterns, venue management (with Google maps), calendars and customisable event lists
@@ -222,6 +222,12 @@ More information on shortcodes is [available here](http://wp-event-organiser.com
222
 
223
  == Changelog ==
224
 
 
 
 
 
 
 
225
  = 3.6.0 25th November 2017
226
 
227
  * added: Ability to specify multiple event authors (organiser) in the fullcalendar author/author_name attribute
3
  Donate link: http://www.wp-event-organiser.com/donate
4
  Tags: events, event, event categories, event organizer, events calendar, event management, ical, locations, google map, widget, venues, maps, gigs, shows,
5
  Requires at least: 3.8.0
6
+ Tested up to: 4.9.1
7
+ Stable tag: 3.6.1
8
  License: GPLv3
9
 
10
  Create and maintain events, including complex reoccurring patterns, venue management (with Google maps), calendars and customisable event lists
222
 
223
  == Changelog ==
224
 
225
+ = 3.6.1 4th January 2018
226
+
227
+ * bugfix: Bug where static value is used for calendar breakpoint on initial load
228
+ * bugfix: Ensure venue tooltip is moved to fit within viewport
229
+ * bugfix: Bug where clicking on the venue tooltip could cause the map to overflow the container
230
+
231
  = 3.6.0 25th November 2017
232
 
233
  * added: Ability to specify multiple event authors (organiser) in the fullcalendar author/author_name attribute