Editorial Calendar - Version 3.6.5

Version Description

The calendar will no longer prompt new users to collect data about how they use the calendar. We have all the data we need for now.

The calendar has now been updated and tested for WordPress version 4.9.1.

Download this release

Release Info

Developer zgrossbart
Plugin Icon wp plugin Editorial Calendar
Version 3.6.5
Comparing to
See all releases

Code changes from version 3.6.4 to 3.6.5

Files changed (5) hide show
  1. edcal.js +6 -6
  2. edcal.min.js +51 -47
  3. edcal.php +1 -1
  4. lib/edcallib.min.js +67 -52
  5. readme.txt +8 -2
edcal.js CHANGED
@@ -236,7 +236,7 @@ var edcal = {
236
  return;
237
  }
238
 
239
- edcal.addFeedbackSection();
240
 
241
  var draftsDrawerVisible = jQuery.cookie('edcal_drafts_drawer');
242
  if (draftsDrawerVisible === 'true') {
@@ -1168,7 +1168,7 @@ var edcal = {
1168
  return false;
1169
  }
1170
 
1171
- edcal.output('savePost(' + post.date + ', ' + post.title + ')');
1172
 
1173
  jQuery('#edit-slug-buttons').addClass('tiploading');
1174
 
@@ -1455,7 +1455,7 @@ var edcal = {
1455
  * Removes a post from the HTML and the posts cache.
1456
  */
1457
  removePostItem: function(/*string*/ dayobjId, /*string*/ postId) {
1458
- edcal.output('removePostItem(' + dayobjId + ', ' + postId + ')');
1459
  if (edcal.findPostForId(dayobjId, postId)) {
1460
  for (var i = 0; i < edcal.posts[dayobjId].length; i++) {
1461
  if (edcal.posts[dayobjId][i] && 'post-' + edcal.posts[dayobjId][i].id === postId) {
@@ -2123,7 +2123,7 @@ var edcal = {
2123
  the specified post on the server.
2124
  */
2125
  changeDate: function(/*string*/ newdate, /*Post*/ post, /*function*/ callback) {
2126
- edcal.output('changeDate(' + newdate + ', ' + post + ')');
2127
  var move_to_drawer = newdate === edcal.NO_DATE;
2128
  var move_from_drawer = post.date_gmt === edcal.NO_DATE;
2129
  var newdateFormatted = move_to_drawer ? '0000-00-00' : edcal.getDayFromDayId(newdate).toString(edcal.wp_dateFormat);
@@ -2153,8 +2153,8 @@ var edcal = {
2153
  // dataType: 'text',
2154
  dataType: 'json',
2155
  success: function(res) {
2156
- edcal.output('res.post.date='+res.post.date);
2157
- edcal.output(res.post);
2158
  // console.log(res.post);
2159
  if (res.error) {
2160
  /*
236
  return;
237
  }
238
 
239
+ //edcal.addFeedbackSection();
240
 
241
  var draftsDrawerVisible = jQuery.cookie('edcal_drafts_drawer');
242
  if (draftsDrawerVisible === 'true') {
1168
  return false;
1169
  }
1170
 
1171
+ //edcal.output('savePost(' + post.date + ', ' + post.title + ')');
1172
 
1173
  jQuery('#edit-slug-buttons').addClass('tiploading');
1174
 
1455
  * Removes a post from the HTML and the posts cache.
1456
  */
1457
  removePostItem: function(/*string*/ dayobjId, /*string*/ postId) {
1458
+ //edcal.output('removePostItem(' + dayobjId + ', ' + postId + ')');
1459
  if (edcal.findPostForId(dayobjId, postId)) {
1460
  for (var i = 0; i < edcal.posts[dayobjId].length; i++) {
1461
  if (edcal.posts[dayobjId][i] && 'post-' + edcal.posts[dayobjId][i].id === postId) {
2123
  the specified post on the server.
2124
  */
2125
  changeDate: function(/*string*/ newdate, /*Post*/ post, /*function*/ callback) {
2126
+ //edcal.output('changeDate(' + newdate + ', ' + post + ')');
2127
  var move_to_drawer = newdate === edcal.NO_DATE;
2128
  var move_from_drawer = post.date_gmt === edcal.NO_DATE;
2129
  var newdateFormatted = move_to_drawer ? '0000-00-00' : edcal.getDayFromDayId(newdate).toString(edcal.wp_dateFormat);
2153
  // dataType: 'text',
2154
  dataType: 'json',
2155
  success: function(res) {
2156
+ //edcal.output('res.post.date='+res.post.date);
2157
+ //edcal.output(res.post);
2158
  // console.log(res.post);
2159
  if (res.error) {
2160
  /*
edcal.min.js CHANGED
@@ -1,64 +1,68 @@
1
- var edcal={NO_DATE:"00000000",weeksPref:3,statusPref:!0,authorPref:!1,timePref:!0,doFeedbackPref:!0,isMoving:!1,inDrag:!1,isDragScrolling:!1,internalDateFormat:"ddMMyyyy",position:null,firstDayOfMonth:null,firstDayOfNextMonth:null,wp_dateFormat:"yyyy-MM-dd",cacheDates:[],tID:null,steps:0,CONCURRENCY_ERROR:4,PERMISSION_ERROR:5,NONCE_ERROR:6,currentDirection:!0,_wDate:Date.today(),moveDate:null,startOfWeek:null,posts:[],windowHeight:0,ltr:"ltr",isDraftsDrawerVisible:!1,init:function(){if(0!==jQuery("#edcal_scrollable").length){edcal.addFeedbackSection();
2
- "true"===jQuery.cookie("edcal_drafts_drawer")&&(edcal.isDraftsDrawerVisible=!0,edcal.setDraftsDrawerVisible(edcal.isDraftsDrawerVisible));jQuery("#loading").hide();jQuery("#edcal_scrollable").css("height",edcal.getCalHeight()+"px");edcal.windowHeight=jQuery(window).height();edcal.createDaysHeader();jQuery("#edcal_scrollable").scrollable({vertical:!0,size:edcal.weeksPref,keyboard:!1,keyboardSteps:1,speed:100,easing:"linear"});var a=jQuery("#edcal_scrollable").scrollable();a.getConf().keyboard=!1;var b=
3
- jQuery.cookie("edcal_date");b?(b=Date.parseExact(b,"yyyy-dd-MM"),edcal.output("Resetting to date from the edcal_Date cookie: "+b)):b=Date.today();edcal.moveTo(b.clone());jQuery("#edcal_scrollable").bind("mousewheel",function(a,b){var e=0<b?!1:!0,f=Math.abs(b);edcal.output(e+" at a velocity of "+f);!edcal.isMoving&&.2<f&&edcal.move(1,e);return!1});a.onBeforeSeek(function(a,b){return!1});jQuery(document).bind("keydown",function(a){if(27===a.keyCode)return!1;if(!jQuery("#edcal_quickedit").is(":visible"))if(40!==
4
- a.keyCode||a.altKey||a.ctrlKey)if(38!==a.keyCode||a.altKey||a.ctrlKey){if(34===a.keyCode&&!a.altKey&&!a.ctrlKey||40===a.keyCode&&a.ctrlKey)return edcal.move(edcal.weeksPref,!0),!1;if(33===a.keyCode&&!a.altKey&&!a.ctrlKey||38===a.keyCode&&a.ctrlKey)return edcal.move(edcal.weeksPref,!1),!1}else return edcal.move(1,!1),!1;else return edcal.move(1,!0),!1});edcal.getPosts(edcal.nextStartOfWeek(b).add(-3).weeks(),edcal.nextStartOfWeek(b).add(edcal.weeksPref+3).weeks());jQuery("#moveToToday").click(function(){edcal.moveTo(Date.today());
 
 
 
 
5
  edcal.getPosts(edcal.nextStartOfWeek(Date.today()).add(-3).weeks(),edcal.nextStartOfWeek(Date.today()).add(edcal.weeksPref+3).weeks());return!1});jQuery("#moveToLast").click(function(){if("-1"!==edcal.lastPostDate){var a=Date.parseExact(edcal.lastPostDate,"ddMMyyyy");edcal.moveTo(a);edcal.getPosts(edcal.nextStartOfWeek(a).add(-3).weeks(),edcal.nextStartOfWeek(a).add(edcal.weeksPref+3).weeks());return!1}});jQuery("#prevmonth").click(function(){edcal.move(edcal.weeksPref,!1);return!1});jQuery("#nextmonth").click(function(){edcal.move(edcal.weeksPref,
6
  !0);return!1});jQuery("#newPostScheduleButton").on("click",function(a){if(jQuery(this).hasClass("disabled"))return!1;jQuery(this).addClass("disabled");return edcal.savePost(null,!1,!0)});jQuery("#edcal-title-new-field").bind("keyup",function(a){0<jQuery("#edcal-title-new-field").val().length&&(!jQuery("#edcal-time").is(":visible")||0<jQuery("#edcal-time").val().length)?jQuery("#newPostScheduleButton").removeClass("disabled"):jQuery("#newPostScheduleButton").addClass("disabled");if(13===a.keyCode)return edcal.savePost(null,
7
  !0)});jQuery("#edcal-status").bind("change",function(a){edcal.updatePublishButton()});jQuery("#edcal_weeks_pref").on("keyup",function(a){0<jQuery("#edcal_weeks_pref").val().length?jQuery("#edcal_applyoptions").removeClass("disabled"):jQuery("#edcal_applyoptions").addClass("disabled");13===a.keyCode&&edcal.saveOptions()});edcal.savePosition();edcal.addOptionsSection();jQuery("#edcal-time").timePicker({show24Hours:"H:i"===edcal.timeFormat,separator:":",step:30});jQuery("#showdraftsdrawer").click(function(){edcal.setDraftsDrawerVisible(!edcal.isDraftsDrawerVisible)})}},
8
  setDraftsDrawerVisible:function(a,b){var c=jQuery("#showdraftsdrawer");c.hasClass("isLoaded")?b&&b():(c.addClass("isLoaded"),edcal.setupDraftsdrawer(b));a?(jQuery("#cal_cont").css({"margin-right":"13.5%"}),jQuery("#draftsdrawer_cont").css({display:"block",width:"13%"}),c.html(edcal.str_hidedrafts)):(jQuery("#cal_cont").css({"margin-right":"0"}),jQuery("#draftsdrawer_cont").css({display:"none",width:"0"}),c.html(edcal.str_showdrafts));edcal.isDraftsDrawerVisible=a;jQuery.cookie("edcal_drafts_drawer",
9
- a,{expires:2060})},setupDraftsdrawer:function(a){jQuery("#draftsdrawer_loading").css({display:"block"});edcal.getPosts(edcal.NO_DATE,null,function(){edcal.initDraftsdrawer();a&&a()})},initDraftsdrawer:function(){var a;a=""+('<a href="#" adddate="'+edcal.NO_DATE+'" class="daynewlink" style="margin-top: 5px;"title="'+edcal.str_newdraft+'" id="unscheduledNewLink" onclick="edcal.addDraft(); return false;">'+edcal.str_addDraftLink+"</a>");a=a+'<ul class="postlist">'+edcal.getPostItems(edcal.NO_DATE);a+=
10
  "</ul>";edcal.draggablePost("#row"+edcal._wDate.toString(edcal.internalDateFormat)+" li.post");edcal.makeDroppable(jQuery("#draftsdrawer div.day"));jQuery("#unscheduled").append(a);jQuery("#draftsdrawer_loading").css({display:"none"});a=jQuery("#cal_cont");jQuery("#unscheduled ul.postlist").css("min-height",a.height()-10-jQuery("#draftsdrawer .draftsdrawerheadcont").height()-jQuery("#unscheduledNewLink").outerHeight());jQuery("#unscheduled").mouseout(function(){jQuery("#unscheduledNewLink").hide()}).mouseover(function(){jQuery("#unscheduledNewLink").show()})},
11
- alignGrid:function(a,b,c,d,e){if("draftsdrawer"!==jQuery(a).parent().attr("id")){var f=0,g=0,k=1;jQuery(a).each(function(){jQuery(this).css("position","relative");var a=jQuery(this).children("div");if(1===b||"ltr"===edcal.ltr)for(var l=0;l<a.length;l++)a.eq(l).css({width:c+"%",height:d+"%",position:"absolute",left:f+"%",top:g+"%"}),0===k%b?(f=0,g+=d+e):f+=c+e,k++;else for(l=a.length-1;-1<l;l--)a.eq(l).css({width:c+"%",height:d+"%",position:"absolute",left:f+"%",top:g+"%"}),0===k%b?(f=0,g+=d+e):f+=
12
- c+e,k++})}},alignCal:function(){edcal.alignGrid("#cal",1,100,100/edcal.weeksPref-1,1)},createDaysHeader:function(){var a=Date.today().next().sunday();edcal.nextStartOfWeek(a);var b='<div class="dayheadcont"><div class="dayhead firstday">'+a.add(edcal.startOfWeek).days().toString("dddd")+"</div>",b=b+('<div class="dayhead">'+a.add(1).days().toString("dddd")+"</div>"),b=b+('<div class="dayhead">'+a.add(1).days().toString("dddd")+"</div>"),b=b+('<div class="dayhead">'+a.add(1).days().toString("dddd")+
13
- "</div>"),b=b+('<div class="dayhead">'+a.add(1).days().toString("dddd")+"</div>"),b=b+('<div class="dayhead">'+a.add(1).days().toString("dddd")+"</div>"),b=b+('<div class="dayhead lastday">'+a.add(1).days().toString("dddd")+"</div>");jQuery("#cal_cont").prepend(b);edcal.alignGrid(".dayheadcont",7,13.8,100,.5)},getDateClass:function(a){var b,c;c=-1===a.compareTo(Date.today())?"beforeToday":"todayAndAfter";edcal.firstDayOfMonth||(edcal.firstDayOfMonth=Date.today().moveToFirstDayOfMonth().clearTime(),
14
  edcal.firstDayOfNextMonth=Date.today().moveToLastDayOfMonth().clearTime());a.between(edcal.firstDayOfMonth,edcal.firstDayOfNextMonth)?b="month-present":1===a.compareTo(edcal.firstDayOfMonth)?b="month-future":-1===a.compareTo(edcal.firstDayOfNextMonth)&&(b="month-past");"01"===a.toString("dd")&&(c+=" firstOfMonth");return b+" "+c},showAddPostLink:function(a){edcal.inDrag||(a=jQuery("#"+a+" a.daynewlink"),a.css("display","block"),a.bind("click",edcal.addPost))},hideAddPostLink:function(a){jQuery("#"+
15
  a+" a.daynewlink").hide().unbind("click",edcal.addPost)},createRow:function(a,b){for(var c=edcal._wDate.clone(),d='<div class="rowcont" id="row'+edcal._wDate.toString(edcal.internalDateFormat)+'"><div id="row'+edcal._wDate.toString(edcal.internalDateFormat)+'row" class="edcal_row">',e=0;7>e;e++)d+="<div onmouseover=\"edcal.showAddPostLink('"+c.toString(edcal.internalDateFormat)+"');\" onmouseout=\"edcal.hideAddPostLink('"+c.toString(edcal.internalDateFormat)+'\');" id="'+c.toString(edcal.internalDateFormat)+
16
  '" class="day '+edcal.getDateClass(c)+" "+c.toString("dddd").toLowerCase()+" month-"+c.toString("MM").toLowerCase()+'">',d+='<div class="dayobj">',d+='<a href="#" adddate="'+c.toString("MMMM d")+'" class="daynewlink" title="'+sprintf(edcal.str_newpost,edcal.chineseAposWorkaround(c.toString(Date.CultureInfo.formatPatterns.monthDay)))+'" onclick="return false;">'+edcal.str_addPostLink+"</a>",d="01"===c.toString("dd")?d+('<div class="daylabel">'+c.toString("MMM d")):d+('<div class="daylabel">'+c.toString("d")),
17
  d+="</div>",d+='<ul class="postlist">',d+=edcal.getPostItems(c.toString(edcal.internalDateFormat)),d+="</ul>",d+="</div>",d+="</div>",c.add(1).days();d+="</div></div>";b?a.append(d):a.prepend(d);edcal.alignGrid("#row"+edcal._wDate.toString(edcal.internalDateFormat)+"row",7,13.9,100,.5);edcal.draggablePost("#row"+edcal._wDate.toString(edcal.internalDateFormat)+" li.post");edcal.makeDroppable(jQuery("#row"+edcal._wDate.toString(edcal.internalDateFormat)+" > div > div.day"));return jQuery("row"+edcal._wDate.toString(edcal.internalDateFormat))},
18
- makeDroppable:function(a){a.droppable({hoverClass:"day-active",accept:function(a){return jQuery(this).hasClass("beforeToday")?a.hasClass("draft")?!0:!1:!0},greedy:!0,tolerance:"pointer",drop:function(a,c){var d=c.draggable.parent().parent().parent().attr("id");edcal.doDrop(d,c.draggable.attr("id"),jQuery(this).attr("id"))}})},doDrop:function(a,b,c,d){var e=edcal.findPostForId(a,b);edcal.removePostFromMap(a,b);var f=jQuery("#"+b);f.detach();setTimeout(function(){f.remove()},500);jQuery("#"+c+" .postlist").append(edcal.createPostItem(e,
19
  c));a===c?edcal.draggablePost("#"+c+" .post"):edcal.changeDate(c,e,d)},draggablePost:function(a){jQuery(a).each(function(){var a=edcal.findPostForId(jQuery(this).parent().parent().parent().attr("id"),jQuery(this).attr("id"));edcal.isPostMovable(a)&&(jQuery(this).draggable({revert:"invalid",appendTo:"body",helper:"clone",distance:1,addClasses:!1,start:function(){edcal.inDrag=!0},stop:function(){edcal.inDrag=!1},drag:function(a,b){edcal.handleDrag(a,b)},scroll:!1,refreshPositions:!0}),jQuery(this).addClass("draggable"))})},
20
  handleDrag:function(a,b){edcal.isMoving||edcal.isDragScrolling||(edcal.isDragScrolling=!0,a.pageY<edcal.position.top+10?edcal.move(1,!1):a.pageY>edcal.position.bottom-10&&edcal.move(1,!0),setTimeout(function(){edcal.isDragScrolling=!1},300))},removePostFromMap:function(a,b){if(edcal.posts[a])for(var c=0;c<edcal.posts[a].length;c++)if(edcal.posts[a][c]&&"post-"+edcal.posts[a][c].id===b)return edcal.posts[a][c]=null,!0;return!1},addPostItem:function(a,b){jQuery("#"+b+" > div > ul").append(edcal.createPostItem(a,
21
- b))},addPostItemDragAndToolltip:function(a){edcal.draggablePost("#"+a+" > div > ul > li")},deletePost:function(a,b){var c=edcal.ajax_url()+"&action=edcal_deletepost&postid="+a;jQuery.ajax({url:c,type:"POST",processData:!1,timeout:1E5,dataType:"json",success:function(a){a.post.date_gmt===edcal.NO_DATE?edcal.removePostItem(a.post.date_gmt,"post-"+a.post.id):edcal.removePostItem(a.post.date,"post-"+a.post.id);a.error?a.error===edcal.NONCE_ERROR&&edcal.showError(edcal.checksum_error):edcal.output('Finished deleting the post: "'+
22
  a.post.title+'" with id:'+a.post.id);b&&b(a)},error:function(a){edcal.showError(edcal.general_error);a.responseText&&edcal.output("deletePost xhr.responseText: "+a.responseText)}})},confirmDelete:function(a){return confirm(edcal.str_del_msg1+a+edcal.str_del_msg2)?!0:!1},ajax_url:function(){return ajaxurl+"?_wpnonce="+edcal.wp_nonce},getMediaBar:function(){return jQuery("#cal_mediabar").html()},addPost:function(){jQuery("#newPostScheduleButton").addClass("disabled");var a=jQuery(this).parent().parent().attr("id"),
23
  b=edcal.defaultTime;"H:i"!==edcal.timeFormat&&"G:i"!==edcal.timeFormat&&(b+=" AM");a={id:0,date:a,formatteddate:edcal.getDayFromDayId(a).toString(edcal.previewDateFormat),time:b};edcal.showForm(a);return!1},addDraft:function(){jQuery("#newPostScheduleButton").addClass("disabled");var a={id:0,date:Date.today(),formatteddate:edcal.NO_DATE,time:edcal.NO_DATE,status:"draft"};edcal.showForm(a);return!1},editPost:function(a){jQuery("#newPostScheduleButton").removeClass("disabled");edcal.getPost(a,edcal.showForm);
24
- return!1},savePost:function(a,b,c,d){if("undefined"===typeof a||null===a)a=edcal.serializePost();if(!a.title||""===a.title)return!1;edcal.output("savePost("+a.date+", "+a.title+")");jQuery("#edit-slug-buttons").addClass("tiploading");var e=a.time.toUpperCase();"12"===e.slice(0,2)&&"PM"===e.slice(e.length-2,e.length)?a.time="12:"+e.slice(3,5):"12"===e.slice(0,2)&&"AM"===e.slice(a.time.length-2,a.time.length)&&(a.time="00:"+e.slice(3,5));var e=""!==a.time?Date.parse(a.time):Date.parse(edcal.defaultTime),
25
- f;if(null!==e&&e!==edcal.NO_DATE){var g=e.format("H:i:s");f=encodeURIComponent(edcal.getDayFromDayId(a.date).toString(edcal.wp_dateFormat)+" "+g)}else f=encodeURIComponent(a.date.toString(edcal.wp_dateFormat+" H:i:s"));g=edcal.ajax_url()+"&action=edcal_savepost";a="date="+f+"&title="+encodeURIComponent(a.title)+"&content="+encodeURIComponent(a.content)+"&id="+encodeURIComponent(a.id)+"&status="+encodeURIComponent(a.status)+"&orig_status="+encodeURIComponent(a.orig_status);if(null===e||e===edcal.NO_DATE)a+=
26
- "&date_gmt="+encodeURIComponent("0000-00-00 00:00:00");edcal.getUrlVars().post_type&&(a+="&post_type="+encodeURIComponent(edcal.getUrlVars().post_type));c&&(a+="&dopublish="+encodeURIComponent("future"));jQuery.ajax({url:g,type:"POST",processData:!1,data:a,timeout:1E5,dataType:"json",success:function(a){jQuery("#edit-slug-buttons").removeClass("tiploading");jQuery("#edcal_quickedit").hide();jQuery("#edcal_scrollable").data("scrollable").getConf().keyboard=!0;if(a.error)return a.error===edcal.NONCE_ERROR&&
27
- edcal.showError(edcal.checksum_error),!1;if(a.post)if(b)window.location=a.post.editlink.replace("&amp;","&");else{var c=a.post.date;a.post.date_gmt===edcal.NO_DATE&&(c=a.post.date_gmt);a.post.id&&edcal.removePostItem(c,"post-"+a.post.id);edcal.addPostItem(a.post,c);edcal.addPostItemDragAndToolltip(c)}else edcal.showError("There was an error creating a new post for your blog.");d&&d(a);return!0},error:function(a){jQuery("#edit-slug-buttons").removeClass("tiploading");jQuery("#edcal_quickedit").hide();
28
- jQuery("#edcal_scrollable").data("scrollable").getConf().keyboard=!0;edcal.showError(edcal.general_error);a.responseText&&edcal.output("savePost xhr.responseText: "+a.responseText)}});return!1},serializePost:function(){var a={};jQuery("#edcal_quickedit").find("input, textarea, select").each(function(){a[this.name]=this.value});return a},showForm:function(a){edcal.resetForm();a.formatteddate===edcal.NO_DATE||a.date_gmt===edcal.NO_DATE?jQuery("#timeEditControls").hide():jQuery("#timeEditControls").show();
29
- jQuery("#edcal_quickedit").center().show();jQuery("#edcal_scrollable").data("scrollable").getConf().keyboard=!1;a.id?(jQuery("#tooltiptitle").text(sprintf(edcal.str_edit_post_title,a.typeTitle,edcal.getDayFromDayId(a.date).toString(edcal.previewDateFormat))),jQuery("#edcal-title-new-field").val(a.title),jQuery("#content").val(a.content)):a.formatteddate===edcal.NO_DATE?jQuery("#tooltiptitle").text(edcal.str_newdraft_title):jQuery("#tooltiptitle").text(edcal.str_newpost_title+a.formatteddate);"future"===
30
- a.status&&jQuery("#newPostScheduleButton").text(edcal.str_update);a.status?(jQuery("#edcal-status").val(a.status),edcal.updatePublishButton()):(0!=jQuery("#edcal-status option[value="+edcal.defaultStatus+"]").length?jQuery("#edcal-status").val(edcal.defaultStatus):jQuery("#edcal-status").val("draft"),jQuery("#newPostScheduleButton").text(edcal.str_save));a.status&&"draft"!==a.status&&"future"!==a.status&&"pending"!==a.status&&(jQuery("#edcal-status").attr("disabled","true"),jQuery("#edcal-status").append('<option class="temp" value="'+
31
- a.status+'">'+a.status+"</option>"),jQuery("#edcal-status").val(a.status));a.formatteddate!==edcal.NO_DATE&&-1===edcal.getDayFromDayId(a.date).compareTo(Date.today())&&jQuery("#edcal-status").attr("disabled","true");var b=a.time;jQuery("#edcal-time").val(b);jQuery("#edcal-date").val(a.date);jQuery("#edcal-id").val(a.id);jQuery("#edcal-title-new-field").focus();jQuery("#edcal-title-new-field").select()},hideForm:function(){jQuery("#edcal_quickedit").hide();jQuery("#edcal_scrollable").data("scrollable").getConf().keyboard=
32
- !0;edcal.resetForm()},resetForm:function(){jQuery("#edcal_quickedit").find("input, textarea, select").each(function(){this.value=""});jQuery("#edcal-status").removeAttr("disabled");jQuery("#newPostScheduleButton").text(edcal.str_publish);jQuery("#tooltiptitle").text("");jQuery("#edcal-status").removeAttr("disabled");jQuery("#edcal-status .temp").remove()},createPostItem:function(a,b){edcal.posts[b]||(edcal.posts[b]=[]);edcal.posts[b][edcal.posts[b].length]=a;return edcal.getPostItemString(a)},findPostForId:function(a,
33
- b){if(edcal.posts[a])for(var c=0;c<edcal.posts[a].length;c++)if(edcal.posts[a][c]&&"post-"+edcal.posts[a][c].id===b)return edcal.posts[a][c];return null},removePostItem:function(a,b){edcal.output("removePostItem("+a+", "+b+")");if(edcal.findPostForId(a,b))for(var c=0;c<edcal.posts[a].length;c++)edcal.posts[a][c]&&"post-"+edcal.posts[a][c].id===b&&(edcal.posts[a][c]=null);jQuery("#"+b).remove()},getPostItems:function(a){var b="";if(edcal.posts[a]){var c=edcal.posts[a];if(50>c.length)for(a=0;a<c.length;a++)c[a]&&
34
- (b+=edcal.getPostItemString(c[a]));else edcal.addPostItems(a,0,50)}return b},addPostItems:function(a,b,c){var d=edcal.posts[a],e="";setTimeout(function(){for(var f=b;f<b+c&&f<d.length;f++)d[f]&&(e+=edcal.getPostItemString(d[f]));jQuery("#"+a+" ul").append(e);b+c<d.length&&edcal.addPostItems(a,b+c,50)},100)},showActionLinks:function(a){edcal.actionTimer&&clearTimeout(edcal.actionTimer);var b=edcal.findPostForId(jQuery("#"+a).parent().parent().parent().attr("id"),a);if(!edcal.inDrag&&edcal.isPostEditable(b)){var c=
35
- jQuery("#"+a+" > div.postactions");edcal.actionLinksElem&&edcal.actionLinksElem.get(0)!==c.get(0)&&edcal.actionLinksElem.slideUp();edcal.actionLinksElem=c;edcal.actionTimer=setTimeout(function(){c.slideDown();if(c.parent().position().top+c.parent().height()>c.parent().parent().height()){var b=jQuery("#"+a+" > div.postactions").parent().parent();b.scrollTop(b.scrollTop()+45)}},250)}},hideActionLinks:function(a){edcal.actionTimer&&clearTimeout(edcal.actionTimer);edcal.actionTimer=setTimeout(function(){jQuery("#"+
36
- a+" > div.postactions").slideUp();edcal.actionLinksElem=null},1E3)},isPostMovable:function(a){return a.editlink&&"publish"!==a.status},isPostEditable:function(a){return a.editlink},getPostEditableClass:function(a){return a.editlink?"":"readonly"},getPostItemString:function(a){var b=a.title;""===b&&(b="[No Title]");edcal.statusPref&&("draft"===a.status&&"1"===a.sticky?b+=edcal.str_draft_sticky:"pending"===a.status&&"1"===a.sticky?b+=edcal.str_pending_sticky:"1"===a.sticky?b+=edcal.str_sticky:"pending"===
37
- a.status?b+=edcal.str_pending:"draft"===a.status?b+=edcal.str_draft:"publish"!==a.status&&"future"!==a.status&&"pending"!==a.status&&(b+=" ["+a.status+"]"));edcal.timePref&&(b='<span class="posttime">'+a.formattedtime+"</span> "+b);edcal.authorPref&&(b=sprintf(edcal.str_by,b,'<span class="postauthor">'+a.author+"</span>"));return edcal.isPostMovable(a)?"<li onmouseover=\"edcal.showActionLinks('post-"+a.id+"');\" onmouseout=\"edcal.hideActionLinks('post-"+a.id+'\');" id="post-'+a.id+'" class="post '+
38
- a.status+" "+edcal.getPostEditableClass(a)+a.slugs+'"><div class="postlink "><span>'+b+'</span></div><div class="postactions"><a href="'+a.editlink+'">'+edcal.str_edit+'</a> | <a href="#" onclick="edcal.editPost('+a.id+'); return false;">'+edcal.str_quick_edit+'</a> | <a href="'+a.dellink+'" onclick="return edcal.confirmDelete(\''+a.title+"');\">"+edcal.str_del+'</a> | <a href="'+a.permalink+'">'+edcal.str_view+"</a></div></li>":"<li onmouseover=\"edcal.showActionLinks('post-"+a.id+"');\" onmouseout=\"edcal.hideActionLinks('post-"+
39
- a.id+'\');" id="post-'+a.id+'" class="post '+a.status+" "+edcal.getPostEditableClass(a)+'"><div class="postlink "><span>'+b+'</span></div><div class="postactions"><a href="'+a.editlink+'">'+edcal.str_republish+'</a> | <a href="'+a.permalink+'">'+edcal.str_view+"</a></div></li>"},setClassforToday:function(){jQuery("#"+Date.today().toString(edcal.internalDateFormat)).addClass("today")},getCalHeight:function(){var a=jQuery(window).height()-jQuery("#footer").height()-jQuery("#wphead").height()-150;return Math.max(a,
40
- 500)},move:function(a,b,c){if(!jQuery("#edcal_quickedit").is(":visible")){edcal.currentDirection!==b&&(edcal._wDate=b?edcal._wDate.add(7*(edcal.weeksPref+7)).days():edcal._wDate.add(-(7*(edcal.weeksPref+7))).days(),edcal.steps=0,edcal.moveDate=edcal._wDate);edcal.currentDirection=b;var d;if(b)for(d=0;d<a;d++)jQuery("#cal > div:first").remove(),edcal.createRow(jQuery("#cal"),!0),edcal._wDate.add(7).days();else for(d=0;d<a;d++)jQuery("#cal > div:last").remove(),edcal.createRow(jQuery("#cal"),!1),edcal._wDate.add(-7).days();
41
- edcal.alignCal();edcal.setClassforToday();edcal.setDateLabel();edcal.steps+=a;edcal.tID?clearTimeout(edcal.tID):edcal.moveDate=edcal._wDate;edcal.tID=setTimeout(function(){b?edcal.getPosts(edcal._wDate.clone().add(-7*(edcal.steps+1)).days(),edcal._wDate.clone(),c):edcal.getPosts(edcal._wDate.clone(),edcal._wDate.clone().add(7*(edcal.steps+1)).days(),c);edcal.steps=0;edcal.tID=null;edcal.moveDate=edcal._wDate},1E3);b?jQuery.cookie("edcal_date",edcal._wDate.clone().add(-(edcal.weeksPref+4)).weeks().toString("yyyy-dd-MM")):
42
- jQuery.cookie("edcal_date",edcal._wDate.clone().add(3).weeks().toString("yyyy-dd-MM"))}},getDayFromDayId:function(a){return Date.parseExact(a.substring(2,4)+"/"+a.substring(0,2)+"/"+a.substring(4),"MM/dd/yyyy")},setDateLabel:function(a){var b=jQuery("#edcal_scrollable").scrollable().getVisibleItems();a=edcal.getDayFromDayId(b.eq(0).children(".edcal_row").children(".day:first").attr("id"));b=edcal.getDayFromDayId(b.eq(edcal.weeksPref-1).children(".edcal_row").children(".day:last").attr("id"));jQuery("#currentRange").text(edcal.chineseAposWorkaround(a.toString(Date.CultureInfo.formatPatterns.yearMonth))+
43
- " - "+edcal.chineseAposWorkaround(b.toString(Date.CultureInfo.formatPatterns.yearMonth)))},nextStartOfWeek:function(a){a=a.clone();if(null===edcal.startOfWeek)if(edcal.locale){var b=edcal.locale.toUpperCase();edcal.endsWith(b,"AS")||edcal.endsWith(b,"AZ")||edcal.endsWith(b,"BW")||edcal.endsWith(b,"CA")||edcal.endsWith(b,"CN")||edcal.endsWith(b,"FO")||edcal.endsWith(b,"GB")||edcal.endsWith(b,"GE")||edcal.endsWith(b,"GL")||edcal.endsWith(b,"GU")||edcal.endsWith(b,"HK")||edcal.endsWith(b,"IE")||edcal.endsWith(b,
44
- "IL")||edcal.endsWith(b,"IN")||edcal.endsWith(b,"IS")||edcal.endsWith(b,"JM")||edcal.endsWith(b,"JP")||edcal.endsWith(b,"KG")||edcal.endsWith(b,"KR")||edcal.endsWith(b,"LA")||edcal.endsWith(b,"MH")||edcal.endsWith(b,"MN")||edcal.endsWith(b,"MO")||edcal.endsWith(b,"MP")||edcal.endsWith(b,"MT")||edcal.endsWith(b,"NZ")||edcal.endsWith(b,"PH")||edcal.endsWith(b,"PK")||edcal.endsWith(b,"SG")||edcal.endsWith(b,"SY")||edcal.endsWith(b,"TH")||edcal.endsWith(b,"TT")||edcal.endsWith(b,"TW")||edcal.endsWith(b,
45
- "UM")||edcal.endsWith(b,"US")||edcal.endsWith(b,"UZ")||edcal.endsWith(b,"VI")||edcal.endsWith(b,"ZW")?edcal.startOfWeek=0:edcal.endsWith(b,"MV")?edcal.startOfWeek=5:edcal.endsWith(b,"AF")||edcal.endsWith(b,"BH")||edcal.endsWith(b,"DJ")||edcal.endsWith(b,"DZ")||edcal.endsWith(b,"EG")||edcal.endsWith(b,"ER")||edcal.endsWith(b,"ET")||edcal.endsWith(b,"IQ")||edcal.endsWith(b,"IR")||edcal.endsWith(b,"JO")||edcal.endsWith(b,"KE")||edcal.endsWith(b,"KW")||edcal.endsWith(b,"LY")||edcal.endsWith(b,"MA")||
46
- edcal.endsWith(b,"OM")||edcal.endsWith(b,"QA")||edcal.endsWith(b,"SA")||edcal.endsWith(b,"SD")||edcal.endsWith(b,"SO")||edcal.endsWith(b,"TN")||edcal.endsWith(b,"YE")?edcal.startOfWeek=6:edcal.startOfWeek=1}else edcal.startOfWeek=0;return a.next().sunday().add(edcal.startOfWeek).days()},endsWith:function(a,b){return a.match(b+"$")===b},moveTo:function(a){edcal.isMoving=!0;jQuery("#cal").empty();jQuery.cookie("edcal_date",a.toString("yyyy-dd-MM"));edcal._wDate=edcal.nextStartOfWeek(a).add(-21).days();
47
- edcal.currentDirection=!0;a=edcal.weeksPref+6;for(var b=0;b<a;b++)edcal.createRow(jQuery("#cal"),!0),edcal._wDate.add(7).days();edcal.alignCal();jQuery("#edcal_scrollable").scrollable().move(2);edcal.setDateLabel();edcal.setClassforToday();edcal.isMoving=!1},savePosition:function(){var a=jQuery("#edcal_scrollable"),b=jQuery("#cal_cont");edcal.position={top:a.offset().top,bottom:a.offset().top+a.height()};jQuery("#edcal_poststyle").remove();a=jQuery(".rowcont:eq(2) .dayobj:first").height()-jQuery(".rowcont:eq(2) .daylabel:first").height()-
48
- 6;jQuery("head").append('<style id="edcal_poststyle" type="text/css">.ui-draggable-dragging {width: '+(jQuery(".rowcont:eq(2) .day:first").width()-5)+"px;}.postlist {height: "+a+"px;}</style>");jQuery("#draftsdrawer").css("height",b.height());jQuery("#draftsdrawer .day").css("min-height",b.height()-10-jQuery("#draftsdrawer .draftsdrawerheadcont").height())},addFeedbackSection:function(){3<edcal.visitCount&&edcal.doFeedbackPref&&jQuery("#edcal_main_title").after(edcal.str_feedbackmsg)},doFeedback:function(){jQuery.getScript("http://www.zackgrossbart.com/edcal/mint/?js",
49
- function(){edcal.saveFeedbackPref()})},noFeedback:function(){jQuery("#feedbacksection").hide("fast");edcal.saveFeedbackPref()},saveFeedbackPref:function(){var a=edcal.ajax_url()+"&action=edcal_saveoptions&dofeedback="+encodeURIComponent("done");jQuery.ajax({url:a,type:"POST",processData:!1,timeout:1E5,dataType:"text",success:function(a){jQuery("#feedbacksection").html(edcal.str_feedbackdone);setTimeout(function(){jQuery("#feedbacksection").hide("slow")},5E3)},error:function(a){edcal.showError(edcal.general_error);
50
- a.responseText&&edcal.output("saveOptions xhr.responseText: "+a.responseText)}})},updatePublishButton:function(){"future"===jQuery("#edcal-status").val()&&jQuery("#newPostScheduleButton").text(edcal.str_publish);"pending"===jQuery("#edcal-status").val()?jQuery("#newPostScheduleButton").text(edcal.str_review):jQuery("#newPostScheduleButton").text(edcal.str_save)},changeDate:function(a,b,c){edcal.output("changeDate("+a+", "+b+")");var d=a===edcal.NO_DATE,e=b.date_gmt===edcal.NO_DATE,f=d?"0000-00-00":
51
- edcal.getDayFromDayId(a).toString(edcal.wp_dateFormat),g=e?b.date_gmt:edcal.getDayFromDayId(b.date).toString(edcal.wp_dateFormat);d&&(b.status="draft");f=edcal.ajax_url()+"&action=edcal_changedate&postid="+b.id+"&postStatus="+b.status+"&newdate="+f+"&olddate="+g;jQuery("#post-"+b.id).addClass("loadingclass");jQuery.ajax({url:f,type:"POST",processData:!1,timeout:1E5,dataType:"json",success:function(b){edcal.output("res.post.date="+b.post.date);edcal.output(b.post);b.error&&(edcal.removePostItem(a,
52
- "post-"+b.post.id),b.error===edcal.CONCURRENCY_ERROR?edcal.displayMessage(edcal.concurrency_error+"<br />"+b.post.title):b.error===edcal.PERMISSION_ERROR?edcal.displayMessage(edcal.permission_error):b.error===edcal.NONCE_ERROR&&edcal.displayMessage(edcal.checksum_error));var f=d?"00000000":b.post.date,g=e?a:f;edcal.removePostItem(f,"post-"+b.post.id);edcal.addPostItem(b.post,g);edcal.addPostItemDragAndToolltip(g);c&&c(b)},error:function(a,b,c){edcal.showError(edcal.general_error);edcal.output("textStatus: "+
53
- b);edcal.output("error: "+c);a.responseText&&edcal.output("changeDate xhr.responseText: "+a.responseText)}})},getPosts:function(a,b,c){b||(b="");edcal.cacheDates[a]?c&&c():(edcal.cacheDates[a]=!0,b=edcal.ajax_url()+"&action=edcal_posts&from="+a.toString("yyyy-MM-dd")+"&to="+b.toString("yyyy-MM-dd"),edcal.getUrlVars().post_type&&(b+="&post_type="+encodeURIComponent(edcal.getUrlVars().post_type)),jQuery("#loading").show(),jQuery.ajax({url:b,type:"GET",processData:!1,timeout:1E5,dataType:"text",success:function(b){jQuery("#loading").hide();
54
- var e=null;try{e=JSON.parseIt(b)}catch(f){edcal.showFatalError(edcal.str_fatal_parse_error+f.message);window.console&&console.error(f);return}if(e.error)e.error===edcal.NONCE_ERROR&&edcal.showError(edcal.checksum_error);else{for(var g=[],k=e.length;0<=k;k--){var h=e[k];h&&"trash"!==h.status&&(h.date=h.date.replace(h.date.substring(2,3),h.date.substring(2,3).toUpperCase()),"00000000"===a&&(h.date=a),edcal.removePostItem(h.date,"post-"+h.id),edcal.addPostItem(h,h.date),g[g.length]=h.date)}setTimeout(function(){jQuery.each(g,
55
- function(a,b){edcal.addPostItemDragAndToolltip(b)})},300);c&&c(b)}},error:function(a){edcal.showError(edcal.general_error);a.responseText&&edcal.output("getPosts xhr.responseText: "+a.responseText)}}))},getPost:function(a,b){if(0===a)return!1;jQuery("#loading").show();var c=edcal.ajax_url()+"&action=edcal_getpost&postid="+a;edcal.getUrlVars().post_type&&(c+="&post_type="+encodeURIComponent(edcal.getUrlVars().post_type));jQuery.ajax({url:c,type:"GET",processData:!1,timeout:1E5,dataType:"json",success:function(a){jQuery("#loading").hide();
56
- edcal.output("xhr for getPost returned: "+a);if(a.error)return a.error===edcal.NONCE_ERROR&&edcal.showError(edcal.checksum_error),!1;"function"===typeof b&&b(a.post);return a.post},error:function(a){jQuery("#loading").hide();edcal.showError(edcal.general_error);a.responseText&&edcal.output("getPost xhr.responseText: "+a.responseText);return!1}});return!0},addOptionsSection:function(){var a='<div class="hide-if-no-js screen-meta-toggle" id="screen-options-link-wrap"><a class="show-settings" id="show-edcal-settings-link" onclick="edcal.toggleOptions(); return false;" href="#" >'+
57
- edcal.str_screenoptions+"</a></div>";0===jQuery("#screen-meta-links").length&&jQuery("#screen-meta").after('<div id="screen-meta-links"></div>');jQuery("#screen-meta-links").append(a)},toggleOptions:function(){if(edcal.helpMeta)jQuery("#contextual-help-wrap").slideUp("fast"),jQuery("#contextual-help-wrap").html(edcal.helpMeta),edcal.helpMeta=null,jQuery("#show-edcal-settings-link").removeClass("screen-meta-active"),jQuery("#contextual-help-link-wrap").css("visibility","");else{edcal.helpMeta=jQuery("#contextual-help-wrap").html();
58
- for(var a='<div class="metabox-prefs" id="calendar-fields-prefs"><h5>'+edcal.str_show_opts+'</h5><label for="author-hide"><input type="checkbox" '+edcal.isPrefChecked(edcal.authorPref)+'value="true" id="author-hide" name="author-hide" class="hide-column-tog" />'+edcal.str_opt_author+'</label><label for="status-hide"><input type="checkbox" '+edcal.isPrefChecked(edcal.statusPref)+'value="true" id="status-hide" name="status-hide" class="hide-column-tog" />'+edcal.str_opt_status+'</label><label for="time-hide"><input type="checkbox" '+
59
- edcal.isPrefChecked(edcal.timePref)+'value="true" id="time-hide" name="time-hide" class="hide-column-tog" />'+edcal.str_opt_time+"</label></div>",a=a+('<div class="metabox-prefs"><h5>'+edcal.str_show_title+'</h5><select id="edcal_weeks_pref" class="screen-per-page" title="'+edcal.str_weekstt+'"> '),b=parseInt(edcal.weeksPref,10),c=1;9>c;c++)a=c===b?a+('<option selected="true">'+c+"</option>"):a+("<option>"+c+"</option>");a+="</select>"+edcal.str_opt_weeks+"</div>";a+='<br /><button id="edcal_applyoptions" onclick="edcal.saveOptions(); return false;" class="save button">'+
60
  edcal.str_apply+"</button>";jQuery("#contextual-help-wrap").html(a);jQuery("#contextual-help-link-wrap").css("visibility","hidden");jQuery("#contextual-help-wrap").slideDown("normal");jQuery("#screen-meta").show();jQuery("#show-edcal-settings-link").addClass("screen-meta-active")}},generateColorPicker:function(a,b,c){a='<div id="'+b+'" class="optionscolorrow">'+('<span style="background-color: '+c+';" class="colorlabel"> '+a+"</span> ");var d="lightred orange yellow lightgreen lightblue purple lightgray".split(" ");
61
- edcal.output("colors.length: "+d.length);for(var e=0;e<d.length;e++)a+='<a href="#" class="optionscolor ',d[e]===c&&(a+="colorselected"),a+='" class='+b+d[e]+'" style="background-color: '+d[e]+"; left: "+(20*e+50)+'px" onclick="edcal.selectColor(\''+b+"', '"+d[e]+"'); return false;\"></a>";return a+="</div>"},selectColor:function(a,b){edcal.output("selectColor("+a+", "+b+")");jQuery("#"+a+" .colorlabel").css("background-color",b);jQuery("#"+a+" .colorselected").removeClass("colorselected");jQuery("#"+
62
  a+"value").addClass("colorselected")},isPrefChecked:function(a){return a?' checked="checked" ':""},saveOptions:function(){var a=parseInt(jQuery("#edcal_weeks_pref").val(),10);if(1>a||8<a)humanMsg.displayMsg(edcal.str_weekserror);else{var b=edcal.ajax_url()+"&action=edcal_saveoptions&weeks="+encodeURIComponent(jQuery("#edcal_weeks_pref").val());jQuery("#calendar-fields-prefs").find("input, textarea, select").each(function(){b+="&"+encodeURIComponent(this.name)+"="+encodeURIComponent(this.checked)});
63
  jQuery.ajax({url:b,type:"POST",processData:!1,timeout:1E5,dataType:"text",success:function(a){window.location.href=window.location.href},error:function(a){edcal.showError(edcal.general_error);a.responseText&&edcal.output("saveOptions xhr.responseText: "+a.responseText)}})}},output:function(a){window.console&&console.log(a)},showError:function(a){window.console&&console.error(a);edcal.displayMessage(a)},displayMessage:function(a){humanMsg.displayMsg(a)},getUrlVars:function(){for(var a=[],b,c=window.location.href.slice(window.location.href.indexOf("?")+
64
  1).split("&"),d=0;d<c.length;d++)b=c[d].split("="),a.push(b[0]),a[b[0]]=b[1];return a},showFatalError:function(a){jQuery("#edcal_main_title").after('<div class="error below-h2" id="message"><p>'+edcal.str_fatal_error+a+"<br></p></div>");window.console&&console.error(a)},chineseAposWorkaround:function(a){return 0===Date.CultureInfo.name.indexOf("zh")||0===Date.CultureInfo.name.indexOf("ja")?a.replace(/'/g,""):a}};
1
+ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
2
+ $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,b,c,d){if(b){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};
3
+ $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6-impl","es3");$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
4
+ $jscomp.polyfill("String.prototype.endsWith",function(a){return a?a:function(a,c){var b=$jscomp.checkStringArgs(this,a,"endsWith");a+="";void 0===c&&(c=b.length);c=Math.max(0,Math.min(c|0,b.length));for(var e=a.length;0<e&&0<c;)if(b[--c]!=a[--e])return!1;return 0>=e}},"es6-impl","es3");
5
+ var edcal={NO_DATE:"00000000",weeksPref:3,statusPref:!0,authorPref:!1,timePref:!0,doFeedbackPref:!0,isMoving:!1,inDrag:!1,isDragScrolling:!1,internalDateFormat:"ddMMyyyy",position:null,firstDayOfMonth:null,firstDayOfNextMonth:null,wp_dateFormat:"yyyy-MM-dd",cacheDates:[],tID:null,steps:0,CONCURRENCY_ERROR:4,PERMISSION_ERROR:5,NONCE_ERROR:6,currentDirection:!0,_wDate:Date.today(),moveDate:null,startOfWeek:null,posts:[],windowHeight:0,ltr:"ltr",isDraftsDrawerVisible:!1,init:function(){if(0!==jQuery("#edcal_scrollable").length){"true"===
6
+ jQuery.cookie("edcal_drafts_drawer")&&(edcal.isDraftsDrawerVisible=!0,edcal.setDraftsDrawerVisible(edcal.isDraftsDrawerVisible));jQuery("#loading").hide();jQuery("#edcal_scrollable").css("height",edcal.getCalHeight()+"px");edcal.windowHeight=jQuery(window).height();edcal.createDaysHeader();jQuery("#edcal_scrollable").scrollable({vertical:!0,size:edcal.weeksPref,keyboard:!1,keyboardSteps:1,speed:100,easing:"linear"});var a=jQuery("#edcal_scrollable").scrollable();a.getConf().keyboard=!1;var b=jQuery.cookie("edcal_date");
7
+ b?(b=Date.parseExact(b,"yyyy-dd-MM"),edcal.output("Resetting to date from the edcal_Date cookie: "+b)):b=Date.today();edcal.moveTo(b.clone());jQuery("#edcal_scrollable").bind("mousewheel",function(a,b){a=0<b?!1:!0;b=Math.abs(b);edcal.output(a+" at a velocity of "+b);!edcal.isMoving&&.2<b&&edcal.move(1,a);return!1});a.onBeforeSeek(function(a,b){return!1});jQuery(document).bind("keydown",function(a){if(27===a.keyCode)return!1;if(!jQuery("#edcal_quickedit").is(":visible"))if(40!==a.keyCode||a.altKey||
8
+ a.ctrlKey)if(38!==a.keyCode||a.altKey||a.ctrlKey){if(34===a.keyCode&&!a.altKey&&!a.ctrlKey||40===a.keyCode&&a.ctrlKey)return edcal.move(edcal.weeksPref,!0),!1;if(33===a.keyCode&&!a.altKey&&!a.ctrlKey||38===a.keyCode&&a.ctrlKey)return edcal.move(edcal.weeksPref,!1),!1}else return edcal.move(1,!1),!1;else return edcal.move(1,!0),!1});edcal.getPosts(edcal.nextStartOfWeek(b).add(-3).weeks(),edcal.nextStartOfWeek(b).add(edcal.weeksPref+3).weeks());jQuery("#moveToToday").click(function(){edcal.moveTo(Date.today());
9
  edcal.getPosts(edcal.nextStartOfWeek(Date.today()).add(-3).weeks(),edcal.nextStartOfWeek(Date.today()).add(edcal.weeksPref+3).weeks());return!1});jQuery("#moveToLast").click(function(){if("-1"!==edcal.lastPostDate){var a=Date.parseExact(edcal.lastPostDate,"ddMMyyyy");edcal.moveTo(a);edcal.getPosts(edcal.nextStartOfWeek(a).add(-3).weeks(),edcal.nextStartOfWeek(a).add(edcal.weeksPref+3).weeks());return!1}});jQuery("#prevmonth").click(function(){edcal.move(edcal.weeksPref,!1);return!1});jQuery("#nextmonth").click(function(){edcal.move(edcal.weeksPref,
10
  !0);return!1});jQuery("#newPostScheduleButton").on("click",function(a){if(jQuery(this).hasClass("disabled"))return!1;jQuery(this).addClass("disabled");return edcal.savePost(null,!1,!0)});jQuery("#edcal-title-new-field").bind("keyup",function(a){0<jQuery("#edcal-title-new-field").val().length&&(!jQuery("#edcal-time").is(":visible")||0<jQuery("#edcal-time").val().length)?jQuery("#newPostScheduleButton").removeClass("disabled"):jQuery("#newPostScheduleButton").addClass("disabled");if(13===a.keyCode)return edcal.savePost(null,
11
  !0)});jQuery("#edcal-status").bind("change",function(a){edcal.updatePublishButton()});jQuery("#edcal_weeks_pref").on("keyup",function(a){0<jQuery("#edcal_weeks_pref").val().length?jQuery("#edcal_applyoptions").removeClass("disabled"):jQuery("#edcal_applyoptions").addClass("disabled");13===a.keyCode&&edcal.saveOptions()});edcal.savePosition();edcal.addOptionsSection();jQuery("#edcal-time").timePicker({show24Hours:"H:i"===edcal.timeFormat,separator:":",step:30});jQuery("#showdraftsdrawer").click(function(){edcal.setDraftsDrawerVisible(!edcal.isDraftsDrawerVisible)})}},
12
  setDraftsDrawerVisible:function(a,b){var c=jQuery("#showdraftsdrawer");c.hasClass("isLoaded")?b&&b():(c.addClass("isLoaded"),edcal.setupDraftsdrawer(b));a?(jQuery("#cal_cont").css({"margin-right":"13.5%"}),jQuery("#draftsdrawer_cont").css({display:"block",width:"13%"}),c.html(edcal.str_hidedrafts)):(jQuery("#cal_cont").css({"margin-right":"0"}),jQuery("#draftsdrawer_cont").css({display:"none",width:"0"}),c.html(edcal.str_showdrafts));edcal.isDraftsDrawerVisible=a;jQuery.cookie("edcal_drafts_drawer",
13
+ a,{expires:2060})},setupDraftsdrawer:function(a){jQuery("#draftsdrawer_loading").css({display:"block"});edcal.getPosts(edcal.NO_DATE,null,function(){edcal.initDraftsdrawer();a&&a()})},initDraftsdrawer:function(){var a=""+('<a href="#" adddate="'+edcal.NO_DATE+'" class="daynewlink" style="margin-top: 5px;"title="'+edcal.str_newdraft+'" id="unscheduledNewLink" onclick="edcal.addDraft(); return false;">'+edcal.str_addDraftLink+"</a>");a=a+'<ul class="postlist">'+edcal.getPostItems(edcal.NO_DATE);a+=
14
  "</ul>";edcal.draggablePost("#row"+edcal._wDate.toString(edcal.internalDateFormat)+" li.post");edcal.makeDroppable(jQuery("#draftsdrawer div.day"));jQuery("#unscheduled").append(a);jQuery("#draftsdrawer_loading").css({display:"none"});a=jQuery("#cal_cont");jQuery("#unscheduled ul.postlist").css("min-height",a.height()-10-jQuery("#draftsdrawer .draftsdrawerheadcont").height()-jQuery("#unscheduledNewLink").outerHeight());jQuery("#unscheduled").mouseout(function(){jQuery("#unscheduledNewLink").hide()}).mouseover(function(){jQuery("#unscheduledNewLink").show()})},
15
+ alignGrid:function(a,b,c,d,e){if("draftsdrawer"!==jQuery(a).parent().attr("id")){var f=0,h=0,g=1;jQuery(a).each(function(){jQuery(this).css("position","relative");var a=jQuery(this).children("div");if(1===b||"ltr"===edcal.ltr)for(var k=0;k<a.length;k++)a.eq(k).css({width:c+"%",height:d+"%",position:"absolute",left:f+"%",top:h+"%"}),0===g%b?(f=0,h+=d+e):f+=c+e,g++;else for(k=a.length-1;-1<k;k--)a.eq(k).css({width:c+"%",height:d+"%",position:"absolute",left:f+"%",top:h+"%"}),0===g%b?(f=0,h+=d+e):f+=
16
+ c+e,g++})}},alignCal:function(){edcal.alignGrid("#cal",1,100,100/edcal.weeksPref-1,1)},createDaysHeader:function(){var a=Date.today().next().sunday();edcal.nextStartOfWeek(a);var b='<div class="dayheadcont"><div class="dayhead firstday">'+a.add(edcal.startOfWeek).days().toString("dddd")+"</div>",b=b+('<div class="dayhead">'+a.add(1).days().toString("dddd")+"</div>"),b=b+('<div class="dayhead">'+a.add(1).days().toString("dddd")+"</div>"),b=b+('<div class="dayhead">'+a.add(1).days().toString("dddd")+
17
+ "</div>"),b=b+('<div class="dayhead">'+a.add(1).days().toString("dddd")+"</div>"),b=b+('<div class="dayhead">'+a.add(1).days().toString("dddd")+"</div>"),b=b+('<div class="dayhead lastday">'+a.add(1).days().toString("dddd")+"</div>");jQuery("#cal_cont").prepend(b);edcal.alignGrid(".dayheadcont",7,13.8,100,.5)},getDateClass:function(a){var b;var c=-1===a.compareTo(Date.today())?"beforeToday":"todayAndAfter";edcal.firstDayOfMonth||(edcal.firstDayOfMonth=Date.today().moveToFirstDayOfMonth().clearTime(),
18
  edcal.firstDayOfNextMonth=Date.today().moveToLastDayOfMonth().clearTime());a.between(edcal.firstDayOfMonth,edcal.firstDayOfNextMonth)?b="month-present":1===a.compareTo(edcal.firstDayOfMonth)?b="month-future":-1===a.compareTo(edcal.firstDayOfNextMonth)&&(b="month-past");"01"===a.toString("dd")&&(c+=" firstOfMonth");return b+" "+c},showAddPostLink:function(a){edcal.inDrag||(a=jQuery("#"+a+" a.daynewlink"),a.css("display","block"),a.bind("click",edcal.addPost))},hideAddPostLink:function(a){jQuery("#"+
19
  a+" a.daynewlink").hide().unbind("click",edcal.addPost)},createRow:function(a,b){for(var c=edcal._wDate.clone(),d='<div class="rowcont" id="row'+edcal._wDate.toString(edcal.internalDateFormat)+'"><div id="row'+edcal._wDate.toString(edcal.internalDateFormat)+'row" class="edcal_row">',e=0;7>e;e++)d+="<div onmouseover=\"edcal.showAddPostLink('"+c.toString(edcal.internalDateFormat)+"');\" onmouseout=\"edcal.hideAddPostLink('"+c.toString(edcal.internalDateFormat)+'\');" id="'+c.toString(edcal.internalDateFormat)+
20
  '" class="day '+edcal.getDateClass(c)+" "+c.toString("dddd").toLowerCase()+" month-"+c.toString("MM").toLowerCase()+'">',d+='<div class="dayobj">',d+='<a href="#" adddate="'+c.toString("MMMM d")+'" class="daynewlink" title="'+sprintf(edcal.str_newpost,edcal.chineseAposWorkaround(c.toString(Date.CultureInfo.formatPatterns.monthDay)))+'" onclick="return false;">'+edcal.str_addPostLink+"</a>",d="01"===c.toString("dd")?d+('<div class="daylabel">'+c.toString("MMM d")):d+('<div class="daylabel">'+c.toString("d")),
21
  d+="</div>",d+='<ul class="postlist">',d+=edcal.getPostItems(c.toString(edcal.internalDateFormat)),d+="</ul>",d+="</div>",d+="</div>",c.add(1).days();d+="</div></div>";b?a.append(d):a.prepend(d);edcal.alignGrid("#row"+edcal._wDate.toString(edcal.internalDateFormat)+"row",7,13.9,100,.5);edcal.draggablePost("#row"+edcal._wDate.toString(edcal.internalDateFormat)+" li.post");edcal.makeDroppable(jQuery("#row"+edcal._wDate.toString(edcal.internalDateFormat)+" > div > div.day"));return jQuery("row"+edcal._wDate.toString(edcal.internalDateFormat))},
22
+ makeDroppable:function(a){a.droppable({hoverClass:"day-active",accept:function(a){return jQuery(this).hasClass("beforeToday")?a.hasClass("draft")?!0:!1:!0},greedy:!0,tolerance:"pointer",drop:function(a,c){a=c.draggable.parent().parent().parent().attr("id");edcal.doDrop(a,c.draggable.attr("id"),jQuery(this).attr("id"))}})},doDrop:function(a,b,c,d){var e=edcal.findPostForId(a,b);edcal.removePostFromMap(a,b);var f=jQuery("#"+b);f.detach();setTimeout(function(){f.remove()},500);jQuery("#"+c+" .postlist").append(edcal.createPostItem(e,
23
  c));a===c?edcal.draggablePost("#"+c+" .post"):edcal.changeDate(c,e,d)},draggablePost:function(a){jQuery(a).each(function(){var a=edcal.findPostForId(jQuery(this).parent().parent().parent().attr("id"),jQuery(this).attr("id"));edcal.isPostMovable(a)&&(jQuery(this).draggable({revert:"invalid",appendTo:"body",helper:"clone",distance:1,addClasses:!1,start:function(){edcal.inDrag=!0},stop:function(){edcal.inDrag=!1},drag:function(a,b){edcal.handleDrag(a,b)},scroll:!1,refreshPositions:!0}),jQuery(this).addClass("draggable"))})},
24
  handleDrag:function(a,b){edcal.isMoving||edcal.isDragScrolling||(edcal.isDragScrolling=!0,a.pageY<edcal.position.top+10?edcal.move(1,!1):a.pageY>edcal.position.bottom-10&&edcal.move(1,!0),setTimeout(function(){edcal.isDragScrolling=!1},300))},removePostFromMap:function(a,b){if(edcal.posts[a])for(var c=0;c<edcal.posts[a].length;c++)if(edcal.posts[a][c]&&"post-"+edcal.posts[a][c].id===b)return edcal.posts[a][c]=null,!0;return!1},addPostItem:function(a,b){jQuery("#"+b+" > div > ul").append(edcal.createPostItem(a,
25
+ b))},addPostItemDragAndToolltip:function(a){edcal.draggablePost("#"+a+" > div > ul > li")},deletePost:function(a,b){a=edcal.ajax_url()+"&action=edcal_deletepost&postid="+a;jQuery.ajax({url:a,type:"POST",processData:!1,timeout:1E5,dataType:"json",success:function(a){a.post.date_gmt===edcal.NO_DATE?edcal.removePostItem(a.post.date_gmt,"post-"+a.post.id):edcal.removePostItem(a.post.date,"post-"+a.post.id);a.error?a.error===edcal.NONCE_ERROR&&edcal.showError(edcal.checksum_error):edcal.output('Finished deleting the post: "'+
26
  a.post.title+'" with id:'+a.post.id);b&&b(a)},error:function(a){edcal.showError(edcal.general_error);a.responseText&&edcal.output("deletePost xhr.responseText: "+a.responseText)}})},confirmDelete:function(a){return confirm(edcal.str_del_msg1+a+edcal.str_del_msg2)?!0:!1},ajax_url:function(){return ajaxurl+"?_wpnonce="+edcal.wp_nonce},getMediaBar:function(){return jQuery("#cal_mediabar").html()},addPost:function(){jQuery("#newPostScheduleButton").addClass("disabled");var a=jQuery(this).parent().parent().attr("id"),
27
  b=edcal.defaultTime;"H:i"!==edcal.timeFormat&&"G:i"!==edcal.timeFormat&&(b+=" AM");a={id:0,date:a,formatteddate:edcal.getDayFromDayId(a).toString(edcal.previewDateFormat),time:b};edcal.showForm(a);return!1},addDraft:function(){jQuery("#newPostScheduleButton").addClass("disabled");var a={id:0,date:Date.today(),formatteddate:edcal.NO_DATE,time:edcal.NO_DATE,status:"draft"};edcal.showForm(a);return!1},editPost:function(a){jQuery("#newPostScheduleButton").removeClass("disabled");edcal.getPost(a,edcal.showForm);
28
+ return!1},savePost:function(a,b,c,d){if("undefined"===typeof a||null===a)a=edcal.serializePost();if(!a.title||""===a.title)return!1;jQuery("#edit-slug-buttons").addClass("tiploading");var e=a.time.toUpperCase();"12"===e.slice(0,2)&&"PM"===e.slice(e.length-2,e.length)?a.time="12:"+e.slice(3,5):"12"===e.slice(0,2)&&"AM"===e.slice(a.time.length-2,a.time.length)&&(a.time="00:"+e.slice(3,5));var e=""!==a.time?Date.parse(a.time):Date.parse(edcal.defaultTime);if(null!==e&&e!==edcal.NO_DATE){var f=e.format("H:i:s");
29
+ var h=encodeURIComponent(edcal.getDayFromDayId(a.date).toString(edcal.wp_dateFormat)+" "+f)}else h=encodeURIComponent(a.date.toString(edcal.wp_dateFormat+" H:i:s"));f=edcal.ajax_url()+"&action=edcal_savepost";a="date="+h+"&title="+encodeURIComponent(a.title)+"&content="+encodeURIComponent(a.content)+"&id="+encodeURIComponent(a.id)+"&status="+encodeURIComponent(a.status)+"&orig_status="+encodeURIComponent(a.orig_status);if(null===e||e===edcal.NO_DATE)a+="&date_gmt="+encodeURIComponent("0000-00-00 00:00:00");
30
+ edcal.getUrlVars().post_type&&(a+="&post_type="+encodeURIComponent(edcal.getUrlVars().post_type));c&&(a+="&dopublish="+encodeURIComponent("future"));jQuery.ajax({url:f,type:"POST",processData:!1,data:a,timeout:1E5,dataType:"json",success:function(a){jQuery("#edit-slug-buttons").removeClass("tiploading");jQuery("#edcal_quickedit").hide();jQuery("#edcal_scrollable").data("scrollable").getConf().keyboard=!0;if(a.error)return a.error===edcal.NONCE_ERROR&&edcal.showError(edcal.checksum_error),!1;if(a.post)if(b)window.location=
31
+ a.post.editlink.replace("&amp;","&");else{var c=a.post.date;a.post.date_gmt===edcal.NO_DATE&&(c=a.post.date_gmt);a.post.id&&edcal.removePostItem(c,"post-"+a.post.id);edcal.addPostItem(a.post,c);edcal.addPostItemDragAndToolltip(c)}else edcal.showError("There was an error creating a new post for your blog.");d&&d(a);return!0},error:function(a){jQuery("#edit-slug-buttons").removeClass("tiploading");jQuery("#edcal_quickedit").hide();jQuery("#edcal_scrollable").data("scrollable").getConf().keyboard=!0;
32
+ edcal.showError(edcal.general_error);a.responseText&&edcal.output("savePost xhr.responseText: "+a.responseText)}});return!1},serializePost:function(){var a={};jQuery("#edcal_quickedit").find("input, textarea, select").each(function(){a[this.name]=this.value});return a},showForm:function(a){edcal.resetForm();a.formatteddate===edcal.NO_DATE||a.date_gmt===edcal.NO_DATE?jQuery("#timeEditControls").hide():jQuery("#timeEditControls").show();jQuery("#edcal_quickedit").center().show();jQuery("#edcal_scrollable").data("scrollable").getConf().keyboard=
33
+ !1;a.id?(jQuery("#tooltiptitle").text(sprintf(edcal.str_edit_post_title,a.typeTitle,edcal.getDayFromDayId(a.date).toString(edcal.previewDateFormat))),jQuery("#edcal-title-new-field").val(a.title),jQuery("#content").val(a.content)):a.formatteddate===edcal.NO_DATE?jQuery("#tooltiptitle").text(edcal.str_newdraft_title):jQuery("#tooltiptitle").text(edcal.str_newpost_title+a.formatteddate);"future"===a.status&&jQuery("#newPostScheduleButton").text(edcal.str_update);a.status?(jQuery("#edcal-status").val(a.status),
34
+ edcal.updatePublishButton()):(0!==jQuery("#edcal-status option[value="+edcal.defaultStatus+"]").length?jQuery("#edcal-status").val(edcal.defaultStatus):jQuery("#edcal-status").val("draft"),jQuery("#newPostScheduleButton").text(edcal.str_save));a.status&&"draft"!==a.status&&"future"!==a.status&&"pending"!==a.status&&(jQuery("#edcal-status").attr("disabled","true"),jQuery("#edcal-status").append('<option class="temp" value="'+a.status+'">'+a.status+"</option>"),jQuery("#edcal-status").val(a.status));
35
+ a.formatteddate!==edcal.NO_DATE&&-1===edcal.getDayFromDayId(a.date).compareTo(Date.today())&&jQuery("#edcal-status").attr("disabled","true");var b=a.time;jQuery("#edcal-time").val(b);jQuery("#edcal-date").val(a.date);jQuery("#edcal-id").val(a.id);jQuery("#edcal-title-new-field").focus();jQuery("#edcal-title-new-field").select()},hideForm:function(){jQuery("#edcal_quickedit").hide();jQuery("#edcal_scrollable").data("scrollable").getConf().keyboard=!0;edcal.resetForm()},resetForm:function(){jQuery("#edcal_quickedit").find("input, textarea, select").each(function(){this.value=
36
+ ""});jQuery("#edcal-status").removeAttr("disabled");jQuery("#newPostScheduleButton").text(edcal.str_publish);jQuery("#tooltiptitle").text("");jQuery("#edcal-status").removeAttr("disabled");jQuery("#edcal-status .temp").remove()},createPostItem:function(a,b){edcal.posts[b]||(edcal.posts[b]=[]);edcal.posts[b][edcal.posts[b].length]=a;return edcal.getPostItemString(a)},findPostForId:function(a,b){if(edcal.posts[a])for(var c=0;c<edcal.posts[a].length;c++)if(edcal.posts[a][c]&&"post-"+edcal.posts[a][c].id===
37
+ b)return edcal.posts[a][c];return null},removePostItem:function(a,b){if(edcal.findPostForId(a,b))for(var c=0;c<edcal.posts[a].length;c++)edcal.posts[a][c]&&"post-"+edcal.posts[a][c].id===b&&(edcal.posts[a][c]=null);jQuery("#"+b).remove()},getPostItems:function(a){var b="";if(edcal.posts[a]){var c=edcal.posts[a];if(50>c.length)for(a=0;a<c.length;a++)c[a]&&(b+=edcal.getPostItemString(c[a]));else edcal.addPostItems(a,0,50)}return b},addPostItems:function(a,b,c){var d=edcal.posts[a],e="";setTimeout(function(){for(var f=
38
+ b;f<b+c&&f<d.length;f++)d[f]&&(e+=edcal.getPostItemString(d[f]));jQuery("#"+a+" ul").append(e);b+c<d.length&&edcal.addPostItems(a,b+c,50)},100)},showActionLinks:function(a){edcal.actionTimer&&clearTimeout(edcal.actionTimer);var b=edcal.findPostForId(jQuery("#"+a).parent().parent().parent().attr("id"),a);if(!edcal.inDrag&&edcal.isPostEditable(b)){var c=jQuery("#"+a+" > div.postactions");edcal.actionLinksElem&&edcal.actionLinksElem.get(0)!==c.get(0)&&edcal.actionLinksElem.slideUp();edcal.actionLinksElem=
39
+ c;edcal.actionTimer=setTimeout(function(){c.slideDown();if(c.parent().position().top+c.parent().height()>c.parent().parent().height()){var b=jQuery("#"+a+" > div.postactions").parent().parent();b.scrollTop(b.scrollTop()+45)}},250)}},hideActionLinks:function(a){edcal.actionTimer&&clearTimeout(edcal.actionTimer);edcal.actionTimer=setTimeout(function(){jQuery("#"+a+" > div.postactions").slideUp();edcal.actionLinksElem=null},1E3)},isPostMovable:function(a){return a.editlink&&"publish"!==a.status},isPostEditable:function(a){return a.editlink},
40
+ getPostEditableClass:function(a){return a.editlink?"":"readonly"},getPostItemString:function(a){var b=a.title;""===b&&(b="[No Title]");edcal.statusPref&&("draft"===a.status&&"1"===a.sticky?b+=edcal.str_draft_sticky:"pending"===a.status&&"1"===a.sticky?b+=edcal.str_pending_sticky:"1"===a.sticky?b+=edcal.str_sticky:"pending"===a.status?b+=edcal.str_pending:"draft"===a.status?b+=edcal.str_draft:"publish"!==a.status&&"future"!==a.status&&"pending"!==a.status&&(b+=" ["+a.status+"]"));edcal.timePref&&(b=
41
+ '<span class="posttime">'+a.formattedtime+"</span> "+b);edcal.authorPref&&(b=sprintf(edcal.str_by,b,'<span class="postauthor">'+a.author+"</span>"));return edcal.isPostMovable(a)?"<li onmouseover=\"edcal.showActionLinks('post-"+a.id+"');\" onmouseout=\"edcal.hideActionLinks('post-"+a.id+'\');" id="post-'+a.id+'" class="post '+a.status+" "+edcal.getPostEditableClass(a)+a.slugs+'"><div class="postlink "><span>'+b+'</span></div><div class="postactions"><a href="'+a.editlink+'">'+edcal.str_edit+'</a> | <a href="#" onclick="edcal.editPost('+
42
+ a.id+'); return false;">'+edcal.str_quick_edit+'</a> | <a href="'+a.dellink+'" onclick="return edcal.confirmDelete(\''+a.title+"');\">"+edcal.str_del+'</a> | <a href="'+a.permalink+'">'+edcal.str_view+"</a></div></li>":"<li onmouseover=\"edcal.showActionLinks('post-"+a.id+"');\" onmouseout=\"edcal.hideActionLinks('post-"+a.id+'\');" id="post-'+a.id+'" class="post '+a.status+" "+edcal.getPostEditableClass(a)+'"><div class="postlink "><span>'+b+'</span></div><div class="postactions"><a href="'+a.editlink+
43
+ '">'+edcal.str_republish+'</a> | <a href="'+a.permalink+'">'+edcal.str_view+"</a></div></li>"},setClassforToday:function(){jQuery("#"+Date.today().toString(edcal.internalDateFormat)).addClass("today")},getCalHeight:function(){var a=jQuery(window).height()-jQuery("#footer").height()-jQuery("#wphead").height()-150;return Math.max(a,500)},move:function(a,b,c){if(!jQuery("#edcal_quickedit").is(":visible")){edcal.currentDirection!==b&&(edcal._wDate=b?edcal._wDate.add(7*(edcal.weeksPref+7)).days():edcal._wDate.add(-(7*
44
+ (edcal.weeksPref+7))).days(),edcal.steps=0,edcal.moveDate=edcal._wDate);edcal.currentDirection=b;var d;if(b)for(d=0;d<a;d++)jQuery("#cal > div:first").remove(),edcal.createRow(jQuery("#cal"),!0),edcal._wDate.add(7).days();else for(d=0;d<a;d++)jQuery("#cal > div:last").remove(),edcal.createRow(jQuery("#cal"),!1),edcal._wDate.add(-7).days();edcal.alignCal();edcal.setClassforToday();edcal.setDateLabel();edcal.steps+=a;edcal.tID?clearTimeout(edcal.tID):edcal.moveDate=edcal._wDate;edcal.tID=setTimeout(function(){b?
45
+ edcal.getPosts(edcal._wDate.clone().add(-7*(edcal.steps+1)).days(),edcal._wDate.clone(),c):edcal.getPosts(edcal._wDate.clone(),edcal._wDate.clone().add(7*(edcal.steps+1)).days(),c);edcal.steps=0;edcal.tID=null;edcal.moveDate=edcal._wDate},1E3);b?jQuery.cookie("edcal_date",edcal._wDate.clone().add(-(edcal.weeksPref+4)).weeks().toString("yyyy-dd-MM")):jQuery.cookie("edcal_date",edcal._wDate.clone().add(3).weeks().toString("yyyy-dd-MM"))}},getDayFromDayId:function(a){return Date.parseExact(a.substring(2,
46
+ 4)+"/"+a.substring(0,2)+"/"+a.substring(4),"MM/dd/yyyy")},setDateLabel:function(a){var b=jQuery("#edcal_scrollable").scrollable().getVisibleItems();a=edcal.getDayFromDayId(b.eq(0).children(".edcal_row").children(".day:first").attr("id"));b=edcal.getDayFromDayId(b.eq(edcal.weeksPref-1).children(".edcal_row").children(".day:last").attr("id"));jQuery("#currentRange").text(edcal.chineseAposWorkaround(a.toString(Date.CultureInfo.formatPatterns.yearMonth))+" - "+edcal.chineseAposWorkaround(b.toString(Date.CultureInfo.formatPatterns.yearMonth)))},
47
+ nextStartOfWeek:function(a){a=a.clone();if(null===edcal.startOfWeek)if(edcal.locale){var b=edcal.locale.toUpperCase();edcal.endsWith(b,"AS")||edcal.endsWith(b,"AZ")||edcal.endsWith(b,"BW")||edcal.endsWith(b,"CA")||edcal.endsWith(b,"CN")||edcal.endsWith(b,"FO")||edcal.endsWith(b,"GB")||edcal.endsWith(b,"GE")||edcal.endsWith(b,"GL")||edcal.endsWith(b,"GU")||edcal.endsWith(b,"HK")||edcal.endsWith(b,"IE")||edcal.endsWith(b,"IL")||edcal.endsWith(b,"IN")||edcal.endsWith(b,"IS")||edcal.endsWith(b,"JM")||
48
+ edcal.endsWith(b,"JP")||edcal.endsWith(b,"KG")||edcal.endsWith(b,"KR")||edcal.endsWith(b,"LA")||edcal.endsWith(b,"MH")||edcal.endsWith(b,"MN")||edcal.endsWith(b,"MO")||edcal.endsWith(b,"MP")||edcal.endsWith(b,"MT")||edcal.endsWith(b,"NZ")||edcal.endsWith(b,"PH")||edcal.endsWith(b,"PK")||edcal.endsWith(b,"SG")||edcal.endsWith(b,"SY")||edcal.endsWith(b,"TH")||edcal.endsWith(b,"TT")||edcal.endsWith(b,"TW")||edcal.endsWith(b,"UM")||edcal.endsWith(b,"US")||edcal.endsWith(b,"UZ")||edcal.endsWith(b,"VI")||
49
+ edcal.endsWith(b,"ZW")?edcal.startOfWeek=0:edcal.endsWith(b,"MV")?edcal.startOfWeek=5:edcal.endsWith(b,"AF")||edcal.endsWith(b,"BH")||edcal.endsWith(b,"DJ")||edcal.endsWith(b,"DZ")||edcal.endsWith(b,"EG")||edcal.endsWith(b,"ER")||edcal.endsWith(b,"ET")||edcal.endsWith(b,"IQ")||edcal.endsWith(b,"IR")||edcal.endsWith(b,"JO")||edcal.endsWith(b,"KE")||edcal.endsWith(b,"KW")||edcal.endsWith(b,"LY")||edcal.endsWith(b,"MA")||edcal.endsWith(b,"OM")||edcal.endsWith(b,"QA")||edcal.endsWith(b,"SA")||edcal.endsWith(b,
50
+ "SD")||edcal.endsWith(b,"SO")||edcal.endsWith(b,"TN")||edcal.endsWith(b,"YE")?edcal.startOfWeek=6:edcal.startOfWeek=1}else edcal.startOfWeek=0;return a.next().sunday().add(edcal.startOfWeek).days()},endsWith:function(a,b){return a.match(b+"$")===b},moveTo:function(a){edcal.isMoving=!0;jQuery("#cal").empty();jQuery.cookie("edcal_date",a.toString("yyyy-dd-MM"));edcal._wDate=edcal.nextStartOfWeek(a).add(-21).days();edcal.currentDirection=!0;a=edcal.weeksPref+6;for(var b=0;b<a;b++)edcal.createRow(jQuery("#cal"),
51
+ !0),edcal._wDate.add(7).days();edcal.alignCal();jQuery("#edcal_scrollable").scrollable().move(2);edcal.setDateLabel();edcal.setClassforToday();edcal.isMoving=!1},savePosition:function(){var a=jQuery("#edcal_scrollable"),b=jQuery("#cal_cont");edcal.position={top:a.offset().top,bottom:a.offset().top+a.height()};jQuery("#edcal_poststyle").remove();a=jQuery(".rowcont:eq(2) .dayobj:first").height()-jQuery(".rowcont:eq(2) .daylabel:first").height()-6;jQuery("head").append('<style id="edcal_poststyle" type="text/css">.ui-draggable-dragging {width: '+
52
+ (jQuery(".rowcont:eq(2) .day:first").width()-5)+"px;}.postlist {height: "+a+"px;}</style>");jQuery("#draftsdrawer").css("height",b.height());jQuery("#draftsdrawer .day").css("min-height",b.height()-10-jQuery("#draftsdrawer .draftsdrawerheadcont").height())},addFeedbackSection:function(){3<edcal.visitCount&&edcal.doFeedbackPref&&jQuery("#edcal_main_title").after(edcal.str_feedbackmsg)},doFeedback:function(){jQuery.getScript("http://www.zackgrossbart.com/edcal/mint/?js",function(){edcal.saveFeedbackPref()})},
53
+ noFeedback:function(){jQuery("#feedbacksection").hide("fast");edcal.saveFeedbackPref()},saveFeedbackPref:function(){var a=edcal.ajax_url()+"&action=edcal_saveoptions&dofeedback="+encodeURIComponent("done");jQuery.ajax({url:a,type:"POST",processData:!1,timeout:1E5,dataType:"text",success:function(a){jQuery("#feedbacksection").html(edcal.str_feedbackdone);setTimeout(function(){jQuery("#feedbacksection").hide("slow")},5E3)},error:function(a){edcal.showError(edcal.general_error);a.responseText&&edcal.output("saveOptions xhr.responseText: "+
54
+ a.responseText)}})},updatePublishButton:function(){"future"===jQuery("#edcal-status").val()&&jQuery("#newPostScheduleButton").text(edcal.str_publish);"pending"===jQuery("#edcal-status").val()?jQuery("#newPostScheduleButton").text(edcal.str_review):jQuery("#newPostScheduleButton").text(edcal.str_save)},changeDate:function(a,b,c){var d=a===edcal.NO_DATE,e=b.date_gmt===edcal.NO_DATE,f=d?"0000-00-00":edcal.getDayFromDayId(a).toString(edcal.wp_dateFormat),h=e?b.date_gmt:edcal.getDayFromDayId(b.date).toString(edcal.wp_dateFormat);
55
+ d&&(b.status="draft");f=edcal.ajax_url()+"&action=edcal_changedate&postid="+b.id+"&postStatus="+b.status+"&newdate="+f+"&olddate="+h;jQuery("#post-"+b.id).addClass("loadingclass");jQuery.ajax({url:f,type:"POST",processData:!1,timeout:1E5,dataType:"json",success:function(b){b.error&&(edcal.removePostItem(a,"post-"+b.post.id),b.error===edcal.CONCURRENCY_ERROR?edcal.displayMessage(edcal.concurrency_error+"<br />"+b.post.title):b.error===edcal.PERMISSION_ERROR?edcal.displayMessage(edcal.permission_error):
56
+ b.error===edcal.NONCE_ERROR&&edcal.displayMessage(edcal.checksum_error));var f=d?"00000000":b.post.date,g=e?a:f;edcal.removePostItem(f,"post-"+b.post.id);edcal.addPostItem(b.post,g);edcal.addPostItemDragAndToolltip(g);c&&c(b)},error:function(a,b,c){edcal.showError(edcal.general_error);edcal.output("textStatus: "+b);edcal.output("error: "+c);a.responseText&&edcal.output("changeDate xhr.responseText: "+a.responseText)}})},getPosts:function(a,b,c){b||(b="");edcal.cacheDates[a]?c&&c():(edcal.cacheDates[a]=
57
+ !0,b=edcal.ajax_url()+"&action=edcal_posts&from="+a.toString("yyyy-MM-dd")+"&to="+b.toString("yyyy-MM-dd"),edcal.getUrlVars().post_type&&(b+="&post_type="+encodeURIComponent(edcal.getUrlVars().post_type)),jQuery("#loading").show(),jQuery.ajax({url:b,type:"GET",processData:!1,timeout:1E5,dataType:"text",success:function(b){jQuery("#loading").hide();var d=null;try{d=JSON.parseIt(b)}catch(l){edcal.showFatalError(edcal.str_fatal_parse_error+l.message);window.console&&console.error(l);return}if(d.error)d.error===
58
+ edcal.NONCE_ERROR&&edcal.showError(edcal.checksum_error);else{for(var f=[],h=d.length;0<=h;h--){var g=d[h];g&&"trash"!==g.status&&(g.date=g.date.replace(g.date.substring(2,3),g.date.substring(2,3).toUpperCase()),"00000000"===a&&(g.date=a),edcal.removePostItem(g.date,"post-"+g.id),edcal.addPostItem(g,g.date),f[f.length]=g.date)}setTimeout(function(){jQuery.each(f,function(a,b){edcal.addPostItemDragAndToolltip(b)})},300);c&&c(b)}},error:function(a){edcal.showError(edcal.general_error);a.responseText&&
59
+ edcal.output("getPosts xhr.responseText: "+a.responseText)}}))},getPost:function(a,b){if(0===a)return!1;jQuery("#loading").show();a=edcal.ajax_url()+"&action=edcal_getpost&postid="+a;edcal.getUrlVars().post_type&&(a+="&post_type="+encodeURIComponent(edcal.getUrlVars().post_type));jQuery.ajax({url:a,type:"GET",processData:!1,timeout:1E5,dataType:"json",success:function(a){jQuery("#loading").hide();edcal.output("xhr for getPost returned: "+a);if(a.error)return a.error===edcal.NONCE_ERROR&&edcal.showError(edcal.checksum_error),
60
+ !1;"function"===typeof b&&b(a.post);return a.post},error:function(a){jQuery("#loading").hide();edcal.showError(edcal.general_error);a.responseText&&edcal.output("getPost xhr.responseText: "+a.responseText);return!1}});return!0},addOptionsSection:function(){var a='<div class="hide-if-no-js screen-meta-toggle" id="screen-options-link-wrap"><a class="show-settings" id="show-edcal-settings-link" onclick="edcal.toggleOptions(); return false;" href="#" >'+edcal.str_screenoptions+"</a></div>";0===jQuery("#screen-meta-links").length&&
61
+ jQuery("#screen-meta").after('<div id="screen-meta-links"></div>');jQuery("#screen-meta-links").append(a)},toggleOptions:function(){if(edcal.helpMeta)jQuery("#contextual-help-wrap").slideUp("fast"),jQuery("#contextual-help-wrap").html(edcal.helpMeta),edcal.helpMeta=null,jQuery("#show-edcal-settings-link").removeClass("screen-meta-active"),jQuery("#contextual-help-link-wrap").css("visibility","");else{edcal.helpMeta=jQuery("#contextual-help-wrap").html();for(var a='<div class="metabox-prefs" id="calendar-fields-prefs"><h5>'+
62
+ edcal.str_show_opts+'</h5><label for="author-hide"><input type="checkbox" '+edcal.isPrefChecked(edcal.authorPref)+'value="true" id="author-hide" name="author-hide" class="hide-column-tog" />'+edcal.str_opt_author+'</label><label for="status-hide"><input type="checkbox" '+edcal.isPrefChecked(edcal.statusPref)+'value="true" id="status-hide" name="status-hide" class="hide-column-tog" />'+edcal.str_opt_status+'</label><label for="time-hide"><input type="checkbox" '+edcal.isPrefChecked(edcal.timePref)+
63
+ 'value="true" id="time-hide" name="time-hide" class="hide-column-tog" />'+edcal.str_opt_time+"</label></div>",a=a+('<div class="metabox-prefs"><h5>'+edcal.str_show_title+'</h5><select id="edcal_weeks_pref" class="screen-per-page" title="'+edcal.str_weekstt+'"> '),b=parseInt(edcal.weeksPref,10),c=1;9>c;c++)a=c===b?a+('<option selected="true">'+c+"</option>"):a+("<option>"+c+"</option>");a+="</select>"+edcal.str_opt_weeks+"</div>";a+='<br /><button id="edcal_applyoptions" onclick="edcal.saveOptions(); return false;" class="save button">'+
64
  edcal.str_apply+"</button>";jQuery("#contextual-help-wrap").html(a);jQuery("#contextual-help-link-wrap").css("visibility","hidden");jQuery("#contextual-help-wrap").slideDown("normal");jQuery("#screen-meta").show();jQuery("#show-edcal-settings-link").addClass("screen-meta-active")}},generateColorPicker:function(a,b,c){a='<div id="'+b+'" class="optionscolorrow">'+('<span style="background-color: '+c+';" class="colorlabel"> '+a+"</span> ");var d="lightred orange yellow lightgreen lightblue purple lightgray".split(" ");
65
+ edcal.output("colors.length: "+d.length);for(var e=0;e<d.length;e++)a+='<a href="#" class="optionscolor ',d[e]===c&&(a+="colorselected"),a+='" class='+b+d[e]+'" style="background-color: '+d[e]+"; left: "+(20*e+50)+'px" onclick="edcal.selectColor(\''+b+"', '"+d[e]+"'); return false;\"></a>";return a+"</div>"},selectColor:function(a,b){edcal.output("selectColor("+a+", "+b+")");jQuery("#"+a+" .colorlabel").css("background-color",b);jQuery("#"+a+" .colorselected").removeClass("colorselected");jQuery("#"+
66
  a+"value").addClass("colorselected")},isPrefChecked:function(a){return a?' checked="checked" ':""},saveOptions:function(){var a=parseInt(jQuery("#edcal_weeks_pref").val(),10);if(1>a||8<a)humanMsg.displayMsg(edcal.str_weekserror);else{var b=edcal.ajax_url()+"&action=edcal_saveoptions&weeks="+encodeURIComponent(jQuery("#edcal_weeks_pref").val());jQuery("#calendar-fields-prefs").find("input, textarea, select").each(function(){b+="&"+encodeURIComponent(this.name)+"="+encodeURIComponent(this.checked)});
67
  jQuery.ajax({url:b,type:"POST",processData:!1,timeout:1E5,dataType:"text",success:function(a){window.location.href=window.location.href},error:function(a){edcal.showError(edcal.general_error);a.responseText&&edcal.output("saveOptions xhr.responseText: "+a.responseText)}})}},output:function(a){window.console&&console.log(a)},showError:function(a){window.console&&console.error(a);edcal.displayMessage(a)},displayMessage:function(a){humanMsg.displayMsg(a)},getUrlVars:function(){for(var a=[],b,c=window.location.href.slice(window.location.href.indexOf("?")+
68
  1).split("&"),d=0;d<c.length;d++)b=c[d].split("="),a.push(b[0]),a[b[0]]=b[1];return a},showFatalError:function(a){jQuery("#edcal_main_title").after('<div class="error below-h2" id="message"><p>'+edcal.str_fatal_error+a+"<br></p></div>");window.console&&console.error(a)},chineseAposWorkaround:function(a){return 0===Date.CultureInfo.name.indexOf("zh")||0===Date.CultureInfo.name.indexOf("ja")?a.replace(/'/g,""):a}};
edcal.php CHANGED
@@ -18,7 +18,7 @@
18
  /*
19
  Plugin Name: WordPress Editorial Calendar
20
  Description: The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
21
- Version: 3.6.4
22
  Author: Colin Vernon, Justin Evans, Joachim Kudish, Mary Vogt, and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  Plugin URI: http://stresslimitdesign.com/editorial-calendar-plugin
18
  /*
19
  Plugin Name: WordPress Editorial Calendar
20
  Description: The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
21
+ Version: 3.6.5
22
  Author: Colin Vernon, Justin Evans, Joachim Kudish, Mary Vogt, and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  Plugin URI: http://stresslimitdesign.com/editorial-calendar-plugin
lib/edcallib.min.js CHANGED
@@ -1,62 +1,77 @@
 
 
 
1
  var humanMsg={setup:function(a,f,g){humanMsg.msgID="humanMsg";humanMsg.logID="humanMsgLog";a="body";void 0==f&&(f=void 0==humanMsg.logTitle?"Message Log":humanMsg.logTitle);humanMsg.logTop=jQuery("#"+humanMsg.logID).css("top");humanMsg.msgOpacity=.9;void 0!=g&&(humanMsg.msgOpacity=parseFloat(g));jQuery(a).prepend('<div id="'+humanMsg.msgID+'" class="humanMsg"><div class="round"></div><p></p><div class="round"></div></div>');jQuery(a).append('<div id="'+humanMsg.logID+'"><p>'+f+'</p><a href="#" id="humanMsgClose">x</a><ul></ul></div>');
2
  jQuery("#humanMsgClose").click(function(){jQuery("#"+humanMsg.logID+" p").addClass("minimized");jQuery("#humanMsgClose").hide();return!1});jQuery("#"+humanMsg.logID+" p").click(function(){humanMsg.activateLog();jQuery("#"+humanMsg.logID+" p").hasClass("minimized")?(jQuery("#humanMsgClose").show(),jQuery("#"+humanMsg.logID+" p").removeClass("minimized")):"none"!=jQuery(this).siblings("ul").css("display")?(jQuery("#"+humanMsg.logID).css("top",humanMsg.logTop),jQuery(this).siblings("ul").hide(),jQuery("#humanMsgClose").show()):
3
  (humanMsg.setLogHeight(),jQuery(this).siblings("ul").slideToggle(),jQuery("#humanMsgClose").slideToggle())})},setLogTitle:function(a){humanMsg.logTitle=a;jQuery("#"+humanMsg.logID+" > p").text(a)},displayMsg:function(a,f){""!=a&&(humanMsg.activateLog(),clearTimeout(humanMsg.t2),jQuery("#"+humanMsg.msgID).css("top",jQuery(window).scrollTop()+75+"px"),jQuery("#"+humanMsg.msgID+" p").html(a),jQuery("#"+humanMsg.msgID+"").show().animate({opacity:humanMsg.msgOpacity},200,function(){f&&humanMsg.log(a)}),
4
  humanMsg.t1&&clearTimeout(humanMsg.t1),humanMsg.t2&&clearTimeout(humanMsg.t2),humanMsg.t1=setTimeout(function(){humanMsg.bindEvents()},3E3),humanMsg.t2=setTimeout(function(){humanMsg.removeMsg()},5E3))},log:function(a){jQuery("#"+humanMsg.logID).show().children("ul").prepend("<li>"+a+"</li>").children("li:first").slideDown(200);"none"==jQuery("#"+humanMsg.logID+" ul").css("display")?jQuery("#"+humanMsg.logID+" p").animate({bottom:40},200,"linear",function(){jQuery(this).animate({bottom:0},300,"swing",
5
  function(){jQuery(this).css({bottom:0})})}):humanMsg.setLogHeight();jQuery("#humanMsgClose").show();jQuery("#"+humanMsg.logID+" p").removeClass("minimized")},activateLog:function(){jQuery("#"+humanMsg.logID+" p").removeClass("faded");clearTimeout(humanMsg.t3);humanMsg.t3=setTimeout(humanMsg.fadeLog,15E3)},setLogHeight:function(){if("Microsoft Internet Explorer"===navigator.appName){var a=Math.min(48*jQuery("#"+humanMsg.logID+" ul").children("li").length,112);jQuery("#"+humanMsg.logID+" ul").css("height",
6
  a+10+"px");jQuery("#"+humanMsg.logID).css("top","-"+(a+56+humanMsg.logTop)+"px")}else a=Math.min(14*jQuery("#"+humanMsg.logID+" ul").children("li").length,56),jQuery("#"+humanMsg.logID+" ul").css("height",a+10+"px"),jQuery("#"+humanMsg.logID).css("top","-"+(a+112+humanMsg.logTop)+"px")},bindEvents:function(){jQuery(window).mousemove(humanMsg.removeMsg).click(humanMsg.removeMsg).keypress(humanMsg.removeMsg)},removeMsg:function(){jQuery(window).unbind("mousemove",humanMsg.removeMsg).unbind("click",
7
- humanMsg.removeMsg).unbind("keypress",humanMsg.removeMsg);jQuery("#"+humanMsg.msgID).fadeOut()},fadeLog:function(){"none"===jQuery("#"+humanMsg.logID+" ul").css("display")&&jQuery("#"+humanMsg.logID+" p").addClass("faded")}};jQuery(document).ready(function(){humanMsg.setup()});(function(a){function f(e){var d=e||window.event,b=[].slice.call(arguments,1),c=0,g=0,f=0;e=a.event.fix(d);e.type="mousewheel";d.wheelDelta&&(c=d.wheelDelta/120);d.detail&&(c=-d.detail/3);f=c;void 0!==d.axis&&d.axis===d.HORIZONTAL_AXIS&&(f=0,g=-1*c);void 0!==d.wheelDeltaY&&(f=d.wheelDeltaY/120);void 0!==d.wheelDeltaX&&(g=-1*d.wheelDeltaX/120);b.unshift(e,c,g,f);return(a.event.dispatch||a.event.handle).apply(this,b)}var g=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=g.length;c;)a.event.fixHooks[g[--c]]=
8
- a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=g.length;a;)this.addEventListener(g[--a],f,!1);else this.onmousewheel=f},teardown:function(){if(this.removeEventListener)for(var a=g.length;a;)this.removeEventListener(g[--a],f,!1);else this.onmousewheel=null}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);var sprintf=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}var f=function(){f.cache.hasOwnProperty(arguments[0])||(f.cache[arguments[0]]=f.parse(arguments[0]));return f.format.call(null,f.cache[arguments[0]],arguments)};f.format=function(g,c){var e=1,d=g.length,b="",s=[],f,m,h,k;for(f=0;f<d;f++)if(b=a(g[f]),"string"===b)s.push(g[f]);else if("array"===b){h=g[f];if(h[2])for(b=c[e],m=0;m<h[2].length;m++){if(!b.hasOwnProperty(h[2][m]))throw sprintf('[sprintf] property "%s" does not exist',
9
- h[2][m]);b=b[h[2][m]]}else b=h[1]?c[h[1]]:c[e++];if(/[^s]/.test(h[8])&&"number"!=a(b))throw sprintf("[sprintf] expecting number but found %s",a(b));switch(h[8]){case "b":b=b.toString(2);break;case "c":b=String.fromCharCode(b);break;case "d":b=parseInt(b,10);break;case "e":b=h[7]?b.toExponential(h[7]):b.toExponential();break;case "f":b=h[7]?parseFloat(b).toFixed(h[7]):parseFloat(b);break;case "o":b=b.toString(8);break;case "s":b=(b=String(b))&&h[7]?b.substring(0,h[7]):b;break;case "u":b=Math.abs(b);
10
- break;case "x":b=b.toString(16);break;case "X":b=b.toString(16).toUpperCase()}b=/[def]/.test(h[8])&&h[3]&&0<=b?"+"+b:b;m=h[4]?"0"==h[4]?"0":h[4].charAt(1):" ";k=h[6]-String(b).length;if(h[6]){for(var t=[];0<k;t[--k]=m);m=t.join("")}else m="";s.push(h[5]?b+m:m+b)}return s.join("")};f.cache={};f.parse=function(a){for(var c=[],e=[],d=0;a;){if(null!==(c=/^[^\x25]+/.exec(a)))e.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(a)))e.push("%");else if(null!==(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(a))){if(c[2]){var d=
11
- d|1,b=[],f=c[2],p=[];if(null!==(p=/^([a-z_][a-z_\d]*)/i.exec(f)))for(b.push(p[1]);""!==(f=f.substring(p[0].length));)if(null!==(p=/^\.([a-z_][a-z_\d]*)/i.exec(f)))b.push(p[1]);else if(null!==(p=/^\[(\d+)\]/.exec(f)))b.push(p[1]);else throw"[sprintf] huh?";else throw"[sprintf] huh?";c[2]=b}else d|=2;if(3===d)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";e.push(c)}else throw"[sprintf] huh?";a=a.substring(c[0].length)}return e};return f}(),vsprintf=function(a,f){f.unshift(a);
12
- return sprintf.apply(null,f)};jQuery.cookie=function(a,f,g){if("undefined"!=typeof f){g=g||{};null===f&&(f="",g.expires=-1);var c="";g.expires&&("number"==typeof g.expires||g.expires.toUTCString)&&("number"==typeof g.expires?(c=new Date,c.setTime(c.getTime()+864E5*g.expires)):c=g.expires,c="; expires="+c.toUTCString());var e=g.path?"; path="+g.path:"",d=g.domain?"; domain="+g.domain:"";g=g.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(f),c,e,d,g].join("")}else{f=null;if(document.cookie&&""!=document.cookie)for(g=
13
- document.cookie.split(";"),c=0;c<g.length;c++)if(e=jQuery.trim(g[c]),e.substring(0,a.length+1)==a+"="){f=decodeURIComponent(e.substring(a.length+1));break}return f}};(function(a){a.fn.bgIframe=a.fn.bgiframe=function(f){if(a.browser.msie&&6>=parseInt(a.browser.version)){f=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:!0,src:"javascript:false;"},f||{});var g=function(a){return a&&a.constructor==Number?a+"px":a},c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+f.src+'"style="display:block;position:absolute;z-index:-1;'+(!1!==f.opacity?"filter:Alpha(Opacity='0');":"")+"top:"+("auto"==f.top?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
14
- g(f.top))+";left:"+("auto"==f.left?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":g(f.left))+";width:"+("auto"==f.width?"expression(this.parentNode.offsetWidth+'px')":g(f.width))+";height:"+("auto"==f.height?"expression(this.parentNode.offsetHeight+'px')":g(f.height))+';"/>';return this.each(function(){0==a("> iframe.bgiframe",this).length&&this.insertBefore(document.createElement(c),this.firstChild)})}return this};a.browser.version||(a.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1])})(jQuery);(function(a){a.each({focus:"focusin",blur:"focusout"},function(f,g){a.event.special[g]={setup:function(){if(a.browser.msie)return!1;this.addEventListener(f,a.event.special[g].handler,!0)},teardown:function(){if(a.browser.msie)return!1;this.removeEventListener(f,a.event.special[g].handler,!0)},handler:function(c){arguments[0]=a.event.fix(c);arguments[0].type=g;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{delegate:function(f,g,c){return this.bind(f,function(e){var d=a(e.target);if(d.is(g))return c.apply(d,
15
- arguments)})},triggerEvent:function(f,g){return this.triggerHandler(f,[a.event.fix({type:f,target:g})])}})})(jQuery);(function(a){function f(c,e){function d(b){var d=a(b);return e.globalNav?d:c.parent().find(b)}var b=this,f=a(this),p=!e.vertical,m=c.children(),h=0,k;g||(g=b);a.each(e,function(b,e){a.isFunction(e)&&f.bind(b,e)});1<m.length&&(m=a(e.items,c));c.data("finder",d);var t=d(e.prev),l=d(e.next),r=d(e.prevPage),u=d(e.nextPage);a.extend(b,{getIndex:function(){return h},getClickIndex:function(){var a=b.getItems();return a.index(a.filter("."+e.activeClass))},getConf:function(){return e},getSize:function(){return b.getItems().size()},
16
- getPageAmount:function(){return Math.ceil(this.getSize()/e.size)},getPageIndex:function(){return Math.ceil(h/e.size)},getNaviButtons:function(){return t.add(l).add(r).add(u)},getRoot:function(){return c},getItemWrap:function(){return m},getItems:function(){return m.children(e.item)},getVisibleItems:function(){return b.getItems().slice(h,h+e.size)},seekTo:function(d,c,k){function q(){k&&k.call(b,d);f.trigger("onSeek",[d])}0>d&&(d=0);if(h===d)return b;a.isFunction(c)&&(k=c);if(d>b.getSize()-e.size)return e.loop?
17
- b.begin():this.end();var n=b.getItems().eq(d);if(!n.length)return b;var v=a.Event("onBeforeSeek");f.trigger(v,[d]);if(v.isDefaultPrevented())return b;if(void 0===c||a.isFunction(c))c=e.speed;p?m.animate({left:-n.position().left},c,e.easing,q):m.animate({top:-n.position().top},c,e.easing,q);g=b;h=d;v=a.Event("onStart");f.trigger(v,[d]);if(v.isDefaultPrevented())return b;t.add(r).toggleClass(e.disabledClass,0===d);l.add(u).toggleClass(e.disabledClass,d>=b.getSize()-e.size);return b},move:function(a,
18
- b,e){k=0<a;return this.seekTo(h+a,b,e)},next:function(a,b){return this.move(1,a,b)},prev:function(a,b){return this.move(-1,a,b)},movePage:function(a,b,d){k=0<a;var c=e.size*a,f=h%e.size;0<f&&(c+=0<a?-f:e.size-f);return this.move(c,b,d)},prevPage:function(a,b){return this.movePage(-1,a,b)},nextPage:function(a,b){return this.movePage(1,a,b)},setPage:function(a,b,d){return this.seekTo(a*e.size,b,d)},begin:function(a,b){k=!1;return this.seekTo(0,a,b)},end:function(a,d){k=!0;var c=this.getSize()-e.size;
19
- return 0<c?this.seekTo(c,a,d):b},reload:function(){f.trigger("onReload");return b},focus:function(){return g=b},click:function(a){var d=b.getItems().eq(a),c=e.activeClass,f=e.size;if(0>a||a>=b.getSize())return b;if(1==f){if(e.loop)return b.next();if(0===a||a==b.getSize()-1)k=void 0===k?!0:!k;return!1===k?b.prev():b.next()}return 2==f?(a==h&&a--,b.getItems().removeClass(c),d.addClass(c),b.seekTo(a,time,fn)):d.hasClass(c)||(b.getItems().removeClass(c),d.addClass(c),d=a-Math.floor(f/2),d>b.getSize()-
20
- f&&(d=b.getSize()-f),d===a)?b:b.seekTo(d)},bind:function(a,d){f.bind(a,d);return b},unbind:function(a){f.unbind(a);return b}});a.each(["onBeforeSeek","onStart","onSeek","onReload"],function(a,d){b[d]=function(a){return b.bind(d,a)}});t.addClass(e.disabledClass).click(function(){b.prev()});l.click(function(){b.next()});u.click(function(){b.nextPage()});b.getSize()<e.size&&l.add(u).addClass(e.disabledClass);r.addClass(e.disabledClass).click(function(){b.prevPage()});var q=e.hoverClass,n="keydown."+
21
- Math.random().toString().substring(10);b.onReload(function(){q&&b.getItems().hover(function(){a(this).addClass(q)},function(){a(this).removeClass(q)});e.clickable&&b.getItems().each(function(d){a(this).unbind("click.scrollable").bind("click.scrollable",function(e){if(!a(e.target).is("a"))return b.click(d)})});e.keyboard?a(document).unbind(n).bind(n,function(a){if(!(a.altKey||a.ctrlKey||"static"!=e.keyboard&&g!=b)){var d=e.keyboardSteps;return!p||37!=a.keyCode&&39!=a.keyCode?p||38!=a.keyCode&&40!=
22
- a.keyCode?!0:(b.move(38==a.keyCode?-d:d),a.preventDefault()):(b.move(37==a.keyCode?-d:d),a.preventDefault())}}):a(document).unbind(n)});b.reload()}a.tools=a.tools||{};a.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:!1,speed:400,keyboard:!0,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:!0,activeClass:"active",easing:"swing",loop:!1,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:!1}};var g;a.fn.scrollable=function(c){var e=
23
- this.eq("number"==typeof c?c:0).data("scrollable");if(e)return e;var d=a.extend({},a.tools.scrollable.conf);c=a.extend(d,c);c.keyboardSteps=c.keyboardSteps||c.size;this.each(function(){e=new f(a(this),c);a(this).data("scrollable",e)});return c.api?e:this}})(jQuery);
24
- (function(a){var f=a.tools.scrollable;f.plugins=f.plugins||{};f.plugins.autoscroll={version:"1.0.1",conf:{autoplay:!0,interval:3E3,autopause:!0,steps:1,api:!1}};a.fn.autoscroll=function(g){"number"==typeof g&&(g={interval:g});var c=a.extend({},f.plugins.autoscroll.conf),e;a.extend(c,g);this.each(function(){var d=a(this).scrollable();d&&(e=d);var b,f,g=!0;d.play=function(){b||(g=!1,b=setInterval(function(){d.move(c.steps)},c.interval),d.move(c.steps))};d.pause=function(){b=clearInterval(b)};d.stop=
25
- function(){d.pause();g=!0};c.autopause&&d.getRoot().add(d.getNaviButtons()).hover(function(){d.pause();clearInterval(f)},function(){g||(f=setTimeout(d.play,c.interval))});c.autoplay&&setTimeout(d.play,c.interval)});return c.api?e:this}})(jQuery);
26
- (function(a){var f=a.tools.scrollable;f.plugins=f.plugins||{};f.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:!1,api:!1,idPrefix:null}};a.fn.navigator=function(g){var c=a.extend({},f.plugins.navigator.conf),e;"string"==typeof g&&(g={navi:g});g=a.extend(c,g);this.each(function(){function d(){if(c.children().length&&c.data("navi")!=b)f=g.naviItem?c.find(g.naviItem):c.children(),f.each(function(d){a(this).click(function(a){b.setPage(d);return a.preventDefault()})});
27
- else{c.empty();c.data("navi",b);for(var d=0;d<b.getPageAmount();d++)c.append(a("<"+(g.naviItem||"a")+"/>"));f=c.children().each(function(d){var e=a(this);e.click(function(a){b.setPage(d);return a.preventDefault()});g.indexed&&e.text(d);g.idPrefix&&e.attr("id",g.idPrefix+d)})}f.eq(0).addClass(g.activeClass)}var b=a(this).scrollable(),c=b.getRoot().data("finder").call(null,g.navi),f=null,m=b.getNaviButtons();b&&(e=b);b.getNaviButtons=function(){return m.add(c)};b.onStart(function(a,d){var e=g.activeClass;
28
- f.removeClass(e).eq(b.getPageIndex()).addClass(e)});b.onReload(function(){d()});d();var h=f.filter("[href="+location.hash+"]");h.length&&b.move(f.index(h))});return g.api?e:this}})(jQuery);
29
- (function(a){function f(e){switch(e.type){case "mousemove":return a.extend(e.data,{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY});case "DOMMouseScroll":a.extend(e,e.data);e.delta=-e.detail/3;break;case "mousewheel":e.delta=e.wheelDelta/120}e.type="wheel";return a.event.handle.call(this,e,e.delta)}a.fn.wheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};a.event.special.wheel={setup:function(){a.event.add(this,g,f,{})},teardown:function(){a.event.remove(this,g,f)}};var g=
30
- a.browser.mozilla?"DOMMouseScroll"+("1.9">a.browser.version?" mousemove":""):"mousewheel",c=a.tools.scrollable;c.plugins=c.plugins||{};c.plugins.mousewheel={version:"1.0.1",conf:{api:!1,speed:50}};a.fn.mousewheel=function(e){var d=a.extend({},c.plugins.mousewheel.conf),b;"number"==typeof e&&(e={speed:e});e=a.extend(d,e);this.each(function(){var d=a(this).scrollable();d&&(b=d);d.getRoot().wheel(function(a,b){d.move(0>b?1:-1,e.speed||50);return!1})});return e.api?b:this}})(jQuery);(function(a){function f(a,b){var e=a.getHours(),c=b.show24Hours?e:(e+11)%12+1;b.show24Hours&&(c=(10>c?"0":"")+c);var f=a.getMinutes();a=b.timeFormat;a=a.replace("hh",c);a=a.replace("h",c);a=a.replace("mm",(10>f?"0":"")+f);return a=b.show24Hours?a.replace(" tt",""):a.replace("tt",12>e?b.amDesignator:b.pmDesignator)}function g(a,b){return"object"==typeof a?e(a):c(a,b)}function c(a,b){if(a){var c=a.split(b.separator),f=parseFloat(c[0]),c=parseFloat(c[1]);b.show24Hours||(12===f&&-1!==a.substr(b.amDesignator)?
31
- f=0:12!==f&&-1!==a.indexOf(b.pmDesignator)&&(f+=12));return e(new Date(0,0,0,f,c,0))}return null}function e(a){a.setFullYear(2001);a.setMonth(0);a.setDate(0);return a}a.fn.timePicker=function(e){var b=a.extend({},a.fn.timePicker.defaults,e);return this.each(function(){a.timePicker(this,b)})};a.timePicker=function(e,b){var c=a(e)[0];return c.timePicker||(c.timePicker=new jQuery._timePicker(c,b))};a._timePicker=function(d,b){var s=!1,p=!1,m=g(b.startTime,b),h=g(b.endTime,b);a(d).attr("autocomplete",
32
- "OFF");for(var k=[],t=new Date(m);t<=h;)k[k.length]=f(t,b),t=new Date(t.setMinutes(t.getMinutes()+b.step));for(var l=a("<div "+(b.tpDivId?'id="'+b.tpDivId+'" ':"")+'class="time-picker'+(b.show24Hours?"":" time-picker-12hours")+'"></div>'),r=a("<ul></ul>"),t=0;t<k.length;t++)r.append("<li>"+k[t]+"</li>");l.append(r);k=a(d).offset();l.appendTo("body").css({top:k.top-48+"px",left:k.left,width:a(d).width()+5+"px"}).hide();l.mouseover(function(){s=!0}).mouseout(function(){s=!1});a("li",r).mouseover(function(){p||
33
- (a("li.selected",l).removeClass("selected"),a(this).addClass("selected"))}).mousedown(function(){s=!0}).click(function(){d.value=a(this).text();a(d).change();a.browser.msie||d.focus();l.hide();s=!1});var u=function(){if(l.is(":visible"))return!1;a("li",l).removeClass("selected");var g=a(d).offset();l.css({top:g.top+a(d).height()+10+"px",left:g.left,width:a(d).width()+5+"px"});l.show();var k=d.value?c(d.value,b):m,g=60*m.getHours()+m.getMinutes(),k=60*k.getHours()+k.getMinutes()-g,k=Math.round(k/b.step),
34
- g=e(new Date(0,0,0,0,k*b.step+g,0)),g=m<g&&g<=h?g:m,g=a("li:contains("+f(g,b)+")",l);g.length&&(g.addClass("selected"),l[0].scrollTop=g[0].offsetTop);return!0};a(d).focus(u).click(u);a(d).blur(function(){s||l.hide()});k=a.browser.opera||a.browser.mozilla?"keypress":"keydown";a(d)[k](function(b){p=!0;var e=l[0].scrollTop;switch(b.keyCode){case 38:if(u())return!1;b=a("li.selected",r);var c=b.prev().addClass("selected")[0];c?(b.removeClass("selected"),c.offsetTop<e&&(l[0].scrollTop=e-c.offsetHeight)):
35
- (b.removeClass("selected"),c=a("li:last",r).addClass("selected")[0],l[0].scrollTop=c.offsetTop-c.offsetHeight);return!1;case 40:if(u())return!1;b=a("li.selected",r);(c=b.next().addClass("selected")[0])?(b.removeClass("selected"),c.offsetTop+c.offsetHeight>e+l[0].offsetHeight&&(l[0].scrollTop=e+c.offsetHeight)):(b.removeClass("selected"),a("li:first",r).addClass("selected"),l[0].scrollTop=0);return!1;case 13:return l.is(":visible")&&(e=a("li.selected",r)[0],d.value=a(e).text(),a(d).change(),a.browser.msie||
36
- d.focus(),l.hide()),!1;case 27:return l.hide(),!1}return!0});a(d).keyup(function(a){p=!1});this.getTime=function(){return c(d.value,b)};this.setTime=function(c){d.value=f(e(c),b);a(d).change()}};a.fn.timePicker.defaults={step:30,startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,23,30,0),separator:":",show24Hours:!0,timeFormat:"hh:mm tt",amDesignator:"AM",pmDesignator:"PM"}})(jQuery);this.JSON||(this.JSON={});
37
- (function(){function a(a){return 10>a?"0"+a:a}function f(a){e.lastIndex=0;return e.test(a)?'"'+a.replace(e,function(a){var b=s[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function g(a,e){var c,s,l,r,u=d,q,n=e[a];n&&"object"===typeof n&&"function"===typeof n.toJSON&&(n=n.toJSON(a));"function"===typeof p&&(n=p.call(e,a,n));switch(typeof n){case "string":return f(n);case "number":return isFinite(n)?String(n):"null";case "boolean":case "null":return String(n);case "object":if(!n)return"null";
38
- d+=b;q=[];if("[object Array]"===Object.prototype.toString.apply(n)){r=n.length;for(c=0;c<r;c+=1)q[c]=g(c,n)||"null";l=0===q.length?"[]":d?"[\n"+d+q.join(",\n"+d)+"\n"+u+"]":"["+q.join(",")+"]";d=u;return l}if(p&&"object"===typeof p)for(r=p.length,c=0;c<r;c+=1)s=p[c],"string"===typeof s&&(l=g(s,n))&&q.push(f(s)+(d?": ":":")+l);else for(s in n)Object.hasOwnProperty.call(n,s)&&(l=g(s,n))&&q.push(f(s)+(d?": ":":")+l);l=0===q.length?"{}":d?"{\n"+d+q.join(",\n"+d)+"\n"+u+"}":"{"+q.join(",")+"}";d=u;return l}}
39
- "function"!==typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(b){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var c=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=
40
- /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d,b,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},p;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,e,c){var f;b=d="";if("number"===typeof c)for(f=0;f<c;f+=1)b+=" ";else"string"===typeof c&&(b=c);if((p=e)&&"function"!==typeof e&&("object"!==typeof e||"number"!==typeof e.length))throw Error("JSON.stringify");return g("",{"":a})});
41
- "function"!==typeof JSON.parseIt&&(JSON.parseIt=function(a,b){function e(a,c){var d,f,g=a[c];if(g&&"object"===typeof g)for(d in g)Object.hasOwnProperty.call(g,d)&&(f=e(g,d),void 0!==f?g[d]=f:delete g[d]);return b.call(a,c,g)}var d;c.lastIndex=0;c.test(a)&&(a=a.replace(c,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,
42
- "")))return d=eval("("+a+")"),"function"===typeof b?e({"":d},""):d;throw new SyntaxError("JSON.parseIt");})})();(function(a){function f(c,e){function d(b){var d=a(b);return e.globalNav?d:c.parent().find(b)}var b=this,f=a(this),p=!e.vertical,m=c.children(),h=0,k;g||(g=b);a.each(e,function(b,e){a.isFunction(e)&&f.bind(b,e)});1<m.length&&(m=a(e.items,c));c.data("finder",d);var t=d(e.prev),l=d(e.next),r=d(e.prevPage),u=d(e.nextPage);a.extend(b,{getIndex:function(){return h},getClickIndex:function(){var a=b.getItems();return a.index(a.filter("."+e.activeClass))},getConf:function(){return e},getSize:function(){return b.getItems().size()},
43
- getPageAmount:function(){return Math.ceil(this.getSize()/e.size)},getPageIndex:function(){return Math.ceil(h/e.size)},getNaviButtons:function(){return t.add(l).add(r).add(u)},getRoot:function(){return c},getItemWrap:function(){return m},getItems:function(){return m.children(e.item)},getVisibleItems:function(){return b.getItems().slice(h,h+e.size)},seekTo:function(c,d,k){function n(){k&&k.call(b,c);f.trigger("onSeek",[c])}0>c&&(c=0);if(h===c)return b;a.isFunction(d)&&(k=d);if(c>b.getSize()-e.size)return e.loop?
44
- b.begin():this.end();var q=b.getItems().eq(c);if(!q.length)return b;var v=a.Event("onBeforeSeek");f.trigger(v,c>h);if(v.isDefaultPrevented())return b;if(void 0===d||a.isFunction(d))d=e.speed;p?m.animate({left:-q.position().left},d,e.easing,n):m.animate({top:-q.position().top},d,e.easing,n);g=b;h=c;v=a.Event("onStart");f.trigger(v,[c]);if(v.isDefaultPrevented())return b;t.add(r).toggleClass(e.disabledClass,0===c);l.add(u).toggleClass(e.disabledClass,c>=b.getSize()-e.size);return b},move:function(a,
45
- b,c){k=0<a;return this.seekTo(h+a,b,c)},next:function(a,b){return this.move(1,a,b)},prev:function(a,b){return this.move(-1,a,b)},movePage:function(a,b,c){k=0<a;var d=e.size*a,f=h%e.size;0<f&&(d+=0<a?-f:e.size-f);return this.move(d,b,c)},prevPage:function(a,b){return this.movePage(-1,a,b)},nextPage:function(a,b){return this.movePage(1,a,b)},setPage:function(a,b,c){return this.seekTo(a*e.size,b,c)},begin:function(a,b){k=!1;return this.seekTo(0,a,b)},end:function(a,c){k=!0;var d=this.getSize()-e.size;
46
- return 0<d?this.seekTo(d,a,c):b},reload:function(){f.trigger("onReload");return b},focus:function(){return g=b},click:function(a){var c=b.getItems().eq(a),d=e.activeClass,f=e.size;if(0>a||a>=b.getSize())return b;if(1==f){if(e.loop)return b.next();if(0===a||a==b.getSize()-1)k=void 0===k?!0:!k;return!1===k?b.prev():b.next()}return 2==f?(a==h&&a--,b.getItems().removeClass(d),c.addClass(d),b.seekTo(a,time,fn)):c.hasClass(d)||(b.getItems().removeClass(d),c.addClass(d),c=a-Math.floor(f/2),c>b.getSize()-
47
- f&&(c=b.getSize()-f),c===a)?b:b.seekTo(c)},bind:function(a,c){f.bind(a,c);return b},unbind:function(a){f.unbind(a);return b}});a.each(["onBeforeSeek","onStart","onSeek","onReload"],function(a,c){b[c]=function(a){return b.bind(c,a)}});t.addClass(e.disabledClass).click(function(){b.prev()});l.click(function(){b.next()});u.click(function(){b.nextPage()});b.getSize()<e.size&&l.add(u).addClass(e.disabledClass);r.addClass(e.disabledClass).click(function(){b.prevPage()});var q=e.hoverClass,n="keydown."+
48
- Math.random().toString().substring(10);b.onReload(function(){q&&b.getItems().hover(function(){a(this).addClass(q)},function(){a(this).removeClass(q)});e.clickable&&b.getItems().each(function(c){a(this).unbind("click.scrollable").bind("click.scrollable",function(d){if(!a(d.target).is("a"))return b.click(c)})});e.keyboard?a(document).unbind(n).bind(n,function(a){if(!(a.altKey||a.ctrlKey||"static"!=e.keyboard&&g!=b)){var c=e.keyboardSteps;return!p||37!=a.keyCode&&39!=a.keyCode?p||38!=a.keyCode&&40!=
49
- a.keyCode?!0:(b.move(38==a.keyCode?-c:c),a.preventDefault()):(b.move(37==a.keyCode?-c:c),a.preventDefault())}}):a(document).unbind(n)});b.reload()}a.tools=a.tools||{};a.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:!1,speed:400,keyboard:!0,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:!0,activeClass:"active",easing:"swing",loop:!1,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:!1}};var g;a.fn.scrollable=function(c){var e=
50
- this.eq("number"==typeof c?c:0).data("scrollable");if(e)return e;var d=a.extend({},a.tools.scrollable.conf);c=a.extend(d,c);c.keyboardSteps=c.keyboardSteps||c.size;this.each(function(){e=new f(a(this),c);a(this).data("scrollable",e)});return c.api?e:this}})(jQuery);(function(a){function f(c){switch(c.type){case "mousemove":return a.extend(c.data,{clientX:c.clientX,clientY:c.clientY,pageX:c.pageX,pageY:c.pageY});case "DOMMouseScroll":a.extend(c,c.data);c.delta=-c.detail/3;break;case "mousewheel":c.delta=c.wheelDelta/120}var e=a(this).scrollable();c.preventDefault();e.move(0>c.delta?1:-1,50);return!1}a.fn.wheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};a.event.special.wheel={setup:function(){this.addEventListener("DOMMouseScroll",f,!1);this.addEventListener("mousewheel",
51
- f,!1)},teardown:function(){this.removeEventListener("DOMMouseScroll",f,!1);this.removeEventListener("mousewheel",f,!1)}};var g=a.tools.scrollable;g.plugins=g.plugins||{};g.plugins.mousewheel={version:"1.0.1",conf:{api:!1,speed:50}};a.fn.mousewheel=function(c){var e=a.extend({},g.plugins.mousewheel.conf),d;"number"==typeof c&&(c={speed:c});c=a.extend(e,c);this.each(function(){var b=a(this).scrollable();b&&(d=b);b.getRoot().wheel(function(a,d){b.move(0>d?1:-1,c.speed||50);return!1})});return c.api?
52
- d:this}})(jQuery);/*
 
 
 
 
 
 
 
 
 
 
 
 
53
  : Copyright (c) 2006-2008, Coolite Inc. (http://www.coolite.com/). All rights reserved.
54
  @license: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
55
  @website: http://www.datejs.com/
56
  */
57
- (function(){var a=Date,f=a.prototype,g=[],c=function(a,c){c||(c=2);return("000"+a).slice(-1*c)};a.normalizeFormat=function(a){g=[];(new Date).$format(a);return g.join("")};a.strftime=function(a,c){return(new Date(1E3*c)).$format(a)};a.strtotime=function(c){c=a.parse(c);c.addMinutes(-1*c.getTimezoneOffset());return Math.round(a.UTC(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds())/1E3)};f.$format=function(e){var d=this,b,f=
58
- function(a){g.push(a);return d.toString(a)};return e?e.replace(/(%|\\)?.|%%/g,function(e){if("\\"===e.charAt(0)||"%%"===e.substring(0,2))return e.replace("\\","").replace("%%","%");switch(e){case "d":case "%d":return f("dd");case "D":case "%a":return f("ddd");case "j":case "%e":return f("d");case "l":case "%A":return f("dddd");case "N":case "%u":return d.getDay()+1;case "S":return f("S");case "w":case "%w":return d.getDay();case "z":return d.getOrdinalNumber();case "%j":return c(d.getOrdinalNumber(),
59
- 3);case "%U":e=d.clone().set({month:0,day:1}).addDays(-1).moveToDayOfWeek(0);var m=d.clone().addDays(1).moveToDayOfWeek(0,-1);return m<e?"00":c((m.getOrdinalNumber()-e.getOrdinalNumber())/7+1);case "W":case "%V":return d.getISOWeek();case "%W":return c(d.getWeek());case "F":case "%B":return f("MMMM");case "m":case "%m":return f("MM");case "M":case "%b":case "%h":return f("MMM");case "n":return f("M");case "t":return a.getDaysInMonth(d.getFullYear(),d.getMonth());case "L":return a.isLeapYear(d.getFullYear())?
60
- 1:0;case "o":case "%G":return d.setWeek(d.getISOWeek()).toString("yyyy");case "%g":return d.$format("%G").slice(-2);case "Y":case "%Y":return f("yyyy");case "y":case "%y":return f("yy");case "a":case "%p":return f("tt").toLowerCase();case "A":return f("tt").toUpperCase();case "g":case "%I":return f("h");case "G":return f("H");case "h":return f("hh");case "H":case "%H":return f("HH");case "i":case "%M":return f("mm");case "s":case "%S":return f("ss");case "u":return c(d.getMilliseconds(),3);case "I":return d.isDaylightSavingTime()?
61
- 1:0;case "O":return d.getUTCOffset();case "P":return b=d.getUTCOffset(),b.substring(0,b.length-2)+":"+b.substring(b.length-2);case "e":case "T":case "%z":case "%Z":return d.getTimezone();case "Z":return-60*d.getTimezoneOffset();case "B":return e=new Date,Math.floor((3600*e.getHours()+60*e.getMinutes()+e.getSeconds()+60*(e.getTimezoneOffset()+60))/86.4);case "c":return d.toISOString().replace(/\"/g,"");case "U":return a.strtotime("now");case "%c":return f("d")+" "+f("t");case "%C":return Math.floor(d.getFullYear()/
62
- 100+1);case "%D":return f("MM/dd/yy");case "%n":return"\\n";case "%t":return"\\t";case "%r":return f("hh:mm tt");case "%R":return f("H:mm");case "%T":return f("H:mm:ss");case "%x":return f("d");case "%X":return f("t");default:return g.push(e),e}}):this._toString()};f.format||(f.format=f.$format)})();
1
+ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,f,g){a instanceof String&&(a=String(a));for(var c=a.length,b=0;b<c;b++){var e=a[b];if(f.call(g,e,b,a))return{i:b,v:e}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,g){a!=Array.prototype&&a!=Object.prototype&&(a[f]=g.value)};
2
+ $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,f,g,c){if(f){g=$jscomp.global;a=a.split(".");for(c=0;c<a.length-1;c++){var b=a[c];b in g||(g[b]={});g=g[b]}a=a[a.length-1];c=g[a];f=f(c);f!=c&&null!=f&&$jscomp.defineProperty(g,a,{configurable:!0,writable:!0,value:f})}};
3
+ $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,g){return $jscomp.findInternal(this,a,g).v}},"es6-impl","es3");
4
  var humanMsg={setup:function(a,f,g){humanMsg.msgID="humanMsg";humanMsg.logID="humanMsgLog";a="body";void 0==f&&(f=void 0==humanMsg.logTitle?"Message Log":humanMsg.logTitle);humanMsg.logTop=jQuery("#"+humanMsg.logID).css("top");humanMsg.msgOpacity=.9;void 0!=g&&(humanMsg.msgOpacity=parseFloat(g));jQuery(a).prepend('<div id="'+humanMsg.msgID+'" class="humanMsg"><div class="round"></div><p></p><div class="round"></div></div>');jQuery(a).append('<div id="'+humanMsg.logID+'"><p>'+f+'</p><a href="#" id="humanMsgClose">x</a><ul></ul></div>');
5
  jQuery("#humanMsgClose").click(function(){jQuery("#"+humanMsg.logID+" p").addClass("minimized");jQuery("#humanMsgClose").hide();return!1});jQuery("#"+humanMsg.logID+" p").click(function(){humanMsg.activateLog();jQuery("#"+humanMsg.logID+" p").hasClass("minimized")?(jQuery("#humanMsgClose").show(),jQuery("#"+humanMsg.logID+" p").removeClass("minimized")):"none"!=jQuery(this).siblings("ul").css("display")?(jQuery("#"+humanMsg.logID).css("top",humanMsg.logTop),jQuery(this).siblings("ul").hide(),jQuery("#humanMsgClose").show()):
6
  (humanMsg.setLogHeight(),jQuery(this).siblings("ul").slideToggle(),jQuery("#humanMsgClose").slideToggle())})},setLogTitle:function(a){humanMsg.logTitle=a;jQuery("#"+humanMsg.logID+" > p").text(a)},displayMsg:function(a,f){""!=a&&(humanMsg.activateLog(),clearTimeout(humanMsg.t2),jQuery("#"+humanMsg.msgID).css("top",jQuery(window).scrollTop()+75+"px"),jQuery("#"+humanMsg.msgID+" p").html(a),jQuery("#"+humanMsg.msgID+"").show().animate({opacity:humanMsg.msgOpacity},200,function(){f&&humanMsg.log(a)}),
7
  humanMsg.t1&&clearTimeout(humanMsg.t1),humanMsg.t2&&clearTimeout(humanMsg.t2),humanMsg.t1=setTimeout(function(){humanMsg.bindEvents()},3E3),humanMsg.t2=setTimeout(function(){humanMsg.removeMsg()},5E3))},log:function(a){jQuery("#"+humanMsg.logID).show().children("ul").prepend("<li>"+a+"</li>").children("li:first").slideDown(200);"none"==jQuery("#"+humanMsg.logID+" ul").css("display")?jQuery("#"+humanMsg.logID+" p").animate({bottom:40},200,"linear",function(){jQuery(this).animate({bottom:0},300,"swing",
8
  function(){jQuery(this).css({bottom:0})})}):humanMsg.setLogHeight();jQuery("#humanMsgClose").show();jQuery("#"+humanMsg.logID+" p").removeClass("minimized")},activateLog:function(){jQuery("#"+humanMsg.logID+" p").removeClass("faded");clearTimeout(humanMsg.t3);humanMsg.t3=setTimeout(humanMsg.fadeLog,15E3)},setLogHeight:function(){if("Microsoft Internet Explorer"===navigator.appName){var a=Math.min(48*jQuery("#"+humanMsg.logID+" ul").children("li").length,112);jQuery("#"+humanMsg.logID+" ul").css("height",
9
  a+10+"px");jQuery("#"+humanMsg.logID).css("top","-"+(a+56+humanMsg.logTop)+"px")}else a=Math.min(14*jQuery("#"+humanMsg.logID+" ul").children("li").length,56),jQuery("#"+humanMsg.logID+" ul").css("height",a+10+"px"),jQuery("#"+humanMsg.logID).css("top","-"+(a+112+humanMsg.logTop)+"px")},bindEvents:function(){jQuery(window).mousemove(humanMsg.removeMsg).click(humanMsg.removeMsg).keypress(humanMsg.removeMsg)},removeMsg:function(){jQuery(window).unbind("mousemove",humanMsg.removeMsg).unbind("click",
10
+ humanMsg.removeMsg).unbind("keypress",humanMsg.removeMsg);jQuery("#"+humanMsg.msgID).fadeOut()},fadeLog:function(){"none"===jQuery("#"+humanMsg.logID+" ul").css("display")&&jQuery("#"+humanMsg.logID+" p").addClass("faded")}};jQuery(document).ready(function(){humanMsg.setup()});/*
11
+ Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
12
+ Licensed under the MIT License (LICENSE.txt).
13
+
14
+ Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
15
+ Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
16
+ Thanks to: Seamus Leahy for adding deltaX and deltaY
17
+
18
+ Version: 3.0.6
19
+
20
+ Requires: 1.2.2+
21
+ */
22
+ (function(a){function f(b){var e=b||window.event,d=[].slice.call(arguments,1),c=0,g=0;b=a.event.fix(e);b.type="mousewheel";e.wheelDelta&&(c=e.wheelDelta/120);e.detail&&(c=-e.detail/3);var h=c;void 0!==e.axis&&e.axis===e.HORIZONTAL_AXIS&&(h=0,g=-1*c);void 0!==e.wheelDeltaY&&(h=e.wheelDeltaY/120);void 0!==e.wheelDeltaX&&(g=-1*e.wheelDeltaX/120);d.unshift(b,c,g,h);return(a.event.dispatch||a.event.handle).apply(this,d)}var g=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=g.length;c;)a.event.fixHooks[g[--c]]=
23
+ a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=g.length;a;)this.addEventListener(g[--a],f,!1);else this.onmousewheel=f},teardown:function(){if(this.removeEventListener)for(var a=g.length;a;)this.removeEventListener(g[--a],f,!1);else this.onmousewheel=null}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);var sprintf=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}var f=function(){f.cache.hasOwnProperty(arguments[0])||(f.cache[arguments[0]]=f.parse(arguments[0]));return f.format.call(null,f.cache[arguments[0]],arguments)};f.format=function(g,c){var b=1,e=g.length,d=[],f,m;for(f=0;f<e;f++){var h=a(g[f]);if("string"===h)d.push(g[f]);else if("array"===h){var k=g[f];if(k[2])for(h=c[b],m=0;m<k[2].length;m++){if(!h.hasOwnProperty(k[2][m]))throw sprintf('[sprintf] property "%s" does not exist',
24
+ k[2][m]);h=h[k[2][m]]}else h=k[1]?c[k[1]]:c[b++];if(/[^s]/.test(k[8])&&"number"!=a(h))throw sprintf("[sprintf] expecting number but found %s",a(h));switch(k[8]){case "b":h=h.toString(2);break;case "c":h=String.fromCharCode(h);break;case "d":h=parseInt(h,10);break;case "e":h=k[7]?h.toExponential(k[7]):h.toExponential();break;case "f":h=k[7]?parseFloat(h).toFixed(k[7]):parseFloat(h);break;case "o":h=h.toString(8);break;case "s":h=(h=String(h))&&k[7]?h.substring(0,k[7]):h;break;case "u":h=Math.abs(h);
25
+ break;case "x":h=h.toString(16);break;case "X":h=h.toString(16).toUpperCase()}h=/[def]/.test(k[8])&&k[3]&&0<=h?"+"+h:h;m=k[4]?"0"==k[4]?"0":k[4].charAt(1):" ";var l=k[6]-String(h).length;if(k[6]){for(var q=[];0<l;q[--l]=m);m=q.join("")}else m="";d.push(k[5]?h+m:m+h)}}return d.join("")};f.cache={};f.parse=function(a){for(var c,b=[],e=0;a;){if(null!==(c=/^[^\x25]+/.exec(a)))b.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(a)))b.push("%");else if(null!==(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(a))){if(c[2]){var e=
26
+ e|1,d=[],g=c[2],f;if(null!==(f=/^([a-z_][a-z_\d]*)/i.exec(g)))for(d.push(f[1]);""!==(g=g.substring(f[0].length));)if(null!==(f=/^\.([a-z_][a-z_\d]*)/i.exec(g)))d.push(f[1]);else if(null!==(f=/^\[(\d+)\]/.exec(g)))d.push(f[1]);else throw"[sprintf] huh?";else throw"[sprintf] huh?";c[2]=d}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";b.push(c)}else throw"[sprintf] huh?";a=a.substring(c[0].length)}return b};return f}(),vsprintf=function(a,f){f.unshift(a);
27
+ return sprintf.apply(null,f)};jQuery.cookie=function(a,f,g){if("undefined"!=typeof f){g=g||{};null===f&&(f="",g.expires=-1);var c="";g.expires&&("number"==typeof g.expires||g.expires.toUTCString)&&("number"==typeof g.expires?(c=new Date,c.setTime(c.getTime()+864E5*g.expires)):c=g.expires,c="; expires="+c.toUTCString());var b=g.path?"; path="+g.path:"",e=g.domain?"; domain="+g.domain:"";g=g.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(f),c,b,e,g].join("")}else{f=null;if(document.cookie&&""!=document.cookie)for(g=
28
+ document.cookie.split(";"),c=0;c<g.length;c++)if(b=jQuery.trim(g[c]),b.substring(0,a.length+1)==a+"="){f=decodeURIComponent(b.substring(a.length+1));break}return f}};(function(a){a.fn.bgIframe=a.fn.bgiframe=function(f){if(a.browser.msie&&6>=parseInt(a.browser.version)){f=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:!0,src:"javascript:false;"},f||{});var g=function(a){return a&&a.constructor==Number?a+"px":a},c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+f.src+'"style="display:block;position:absolute;z-index:-1;'+(!1!==f.opacity?"filter:Alpha(Opacity='0');":"")+"top:"+("auto"==f.top?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
29
+ g(f.top))+";left:"+("auto"==f.left?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":g(f.left))+";width:"+("auto"==f.width?"expression(this.parentNode.offsetWidth+'px')":g(f.width))+";height:"+("auto"==f.height?"expression(this.parentNode.offsetHeight+'px')":g(f.height))+';"/>';return this.each(function(){0==a("> iframe.bgiframe",this).length&&this.insertBefore(document.createElement(c),this.firstChild)})}return this};a.browser.version||(a.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1])})(jQuery);(function(a){a.each({focus:"focusin",blur:"focusout"},function(f,g){a.event.special[g]={setup:function(){if(a.browser.msie)return!1;this.addEventListener(f,a.event.special[g].handler,!0)},teardown:function(){if(a.browser.msie)return!1;this.removeEventListener(f,a.event.special[g].handler,!0)},handler:function(c){arguments[0]=a.event.fix(c);arguments[0].type=g;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{delegate:function(f,g,c){return this.bind(f,function(b){var e=a(b.target);if(e.is(g))return c.apply(e,
30
+ arguments)})},triggerEvent:function(f,g){return this.triggerHandler(f,[a.event.fix({type:f,target:g})])}})})(jQuery);(function(a){function f(c,b){function e(d){var e=a(d);return b.globalNav?e:c.parent().find(d)}var d=this,f=a(this),m=!b.vertical,h=c.children(),k=0,l;g||(g=d);a.each(b,function(d,b){a.isFunction(b)&&f.bind(d,b)});1<h.length&&(h=a(b.items,c));c.data("finder",e);var q=e(b.prev),n=e(b.next),t=e(b.prevPage),p=e(b.nextPage);a.extend(d,{getIndex:function(){return k},getClickIndex:function(){var a=d.getItems();return a.index(a.filter("."+b.activeClass))},getConf:function(){return b},getSize:function(){return d.getItems().size()},
31
+ getPageAmount:function(){return Math.ceil(this.getSize()/b.size)},getPageIndex:function(){return Math.ceil(k/b.size)},getNaviButtons:function(){return q.add(n).add(t).add(p)},getRoot:function(){return c},getItemWrap:function(){return h},getItems:function(){return h.children(b.item)},getVisibleItems:function(){return d.getItems().slice(k,k+b.size)},seekTo:function(e,c,r){function x(){r&&r.call(d,e);f.trigger("onSeek",[e])}0>e&&(e=0);if(k===e)return d;a.isFunction(c)&&(r=c);if(e>d.getSize()-b.size)return b.loop?
32
+ d.begin():this.end();var u=d.getItems().eq(e);if(!u.length)return d;var l=a.Event("onBeforeSeek");f.trigger(l,[e]);if(l.isDefaultPrevented())return d;if(void 0===c||a.isFunction(c))c=b.speed;m?h.animate({left:-u.position().left},c,b.easing,x):h.animate({top:-u.position().top},c,b.easing,x);g=d;k=e;l=a.Event("onStart");f.trigger(l,[e]);if(l.isDefaultPrevented())return d;q.add(t).toggleClass(b.disabledClass,0===e);n.add(p).toggleClass(b.disabledClass,e>=d.getSize()-b.size);return d},move:function(a,
33
+ b,d){l=0<a;return this.seekTo(k+a,b,d)},next:function(a,b){return this.move(1,a,b)},prev:function(a,b){return this.move(-1,a,b)},movePage:function(a,d,e){l=0<a;var c=b.size*a,g=k%b.size;0<g&&(c+=0<a?-g:b.size-g);return this.move(c,d,e)},prevPage:function(a,b){return this.movePage(-1,a,b)},nextPage:function(a,b){return this.movePage(1,a,b)},setPage:function(a,d,e){return this.seekTo(a*b.size,d,e)},begin:function(a,b){l=!1;return this.seekTo(0,a,b)},end:function(a,e){l=!0;var c=this.getSize()-b.size;
34
+ return 0<c?this.seekTo(c,a,e):d},reload:function(){f.trigger("onReload");return d},focus:function(){return g=d},click:function(a){var e=d.getItems().eq(a),c=b.activeClass,g=b.size;if(0>a||a>=d.getSize())return d;if(1==g){if(b.loop)return d.next();if(0===a||a==d.getSize()-1)l=void 0===l?!0:!l;return!1===l?d.prev():d.next()}return 2==g?(a==k&&a--,d.getItems().removeClass(c),e.addClass(c),d.seekTo(a,time,fn)):e.hasClass(c)||(d.getItems().removeClass(c),e.addClass(c),e=a-Math.floor(g/2),e>d.getSize()-
35
+ g&&(e=d.getSize()-g),e===a)?d:d.seekTo(e)},bind:function(a,b){f.bind(a,b);return d},unbind:function(a){f.unbind(a);return d}});a.each(["onBeforeSeek","onStart","onSeek","onReload"],function(a,b){d[b]=function(a){return d.bind(b,a)}});q.addClass(b.disabledClass).click(function(){d.prev()});n.click(function(){d.next()});p.click(function(){d.nextPage()});d.getSize()<b.size&&n.add(p).addClass(b.disabledClass);t.addClass(b.disabledClass).click(function(){d.prevPage()});var v=b.hoverClass,w="keydown."+
36
+ Math.random().toString().substring(10);d.onReload(function(){v&&d.getItems().hover(function(){a(this).addClass(v)},function(){a(this).removeClass(v)});b.clickable&&d.getItems().each(function(b){a(this).unbind("click.scrollable").bind("click.scrollable",function(e){if(!a(e.target).is("a"))return d.click(b)})});b.keyboard?a(document).unbind(w).bind(w,function(a){if(!(a.altKey||a.ctrlKey||"static"!=b.keyboard&&g!=d)){var e=b.keyboardSteps;return!m||37!=a.keyCode&&39!=a.keyCode?m||38!=a.keyCode&&40!=
37
+ a.keyCode?!0:(d.move(38==a.keyCode?-e:e),a.preventDefault()):(d.move(37==a.keyCode?-e:e),a.preventDefault())}}):a(document).unbind(w)});d.reload()}a.tools=a.tools||{};a.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:!1,speed:400,keyboard:!0,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:!0,activeClass:"active",easing:"swing",loop:!1,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:!1}};var g;a.fn.scrollable=function(c){var b=
38
+ this.eq("number"==typeof c?c:0).data("scrollable");if(b)return b;var e=a.extend({},a.tools.scrollable.conf);c=a.extend(e,c);c.keyboardSteps=c.keyboardSteps||c.size;this.each(function(){b=new f(a(this),c);a(this).data("scrollable",b)});return c.api?b:this}})(jQuery);
39
+ (function(a){var f=a.tools.scrollable;f.plugins=f.plugins||{};f.plugins.autoscroll={version:"1.0.1",conf:{autoplay:!0,interval:3E3,autopause:!0,steps:1,api:!1}};a.fn.autoscroll=function(g){"number"==typeof g&&(g={interval:g});var c=a.extend({},f.plugins.autoscroll.conf),b;a.extend(c,g);this.each(function(){var e=a(this).scrollable();e&&(b=e);var d,g,f=!0;e.play=function(){d||(f=!1,d=setInterval(function(){e.move(c.steps)},c.interval),e.move(c.steps))};e.pause=function(){d=clearInterval(d)};e.stop=
40
+ function(){e.pause();f=!0};c.autopause&&e.getRoot().add(e.getNaviButtons()).hover(function(){e.pause();clearInterval(g)},function(){f||(g=setTimeout(e.play,c.interval))});c.autoplay&&setTimeout(e.play,c.interval)});return c.api?b:this}})(jQuery);
41
+ (function(a){var f=a.tools.scrollable;f.plugins=f.plugins||{};f.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:!1,api:!1,idPrefix:null}};a.fn.navigator=function(g){var c=a.extend({},f.plugins.navigator.conf),b;"string"==typeof g&&(g={navi:g});g=a.extend(c,g);this.each(function(){function e(){if(c.children().length&&c.data("navi")!=d)f=g.naviItem?c.find(g.naviItem):c.children(),f.each(function(b){a(this).click(function(a){d.setPage(b);return a.preventDefault()})});
42
+ else{c.empty();c.data("navi",d);for(var b=0;b<d.getPageAmount();b++)c.append(a("<"+(g.naviItem||"a")+"/>"));f=c.children().each(function(b){var e=a(this);e.click(function(a){d.setPage(b);return a.preventDefault()});g.indexed&&e.text(b);g.idPrefix&&e.attr("id",g.idPrefix+b)})}f.eq(0).addClass(g.activeClass)}var d=a(this).scrollable(),c=d.getRoot().data("finder").call(null,g.navi),f=null,h=d.getNaviButtons();d&&(b=d);d.getNaviButtons=function(){return h.add(c)};d.onStart(function(a,b){a=g.activeClass;
43
+ f.removeClass(a).eq(d.getPageIndex()).addClass(a)});d.onReload(function(){e()});e();var k=f.filter("[href="+location.hash+"]");k.length&&d.move(f.index(k))});return g.api?b:this}})(jQuery);
44
+ (function(a){function f(b){switch(b.type){case "mousemove":return a.extend(b.data,{clientX:b.clientX,clientY:b.clientY,pageX:b.pageX,pageY:b.pageY});case "DOMMouseScroll":a.extend(b,b.data);b.delta=-b.detail/3;break;case "mousewheel":b.delta=b.wheelDelta/120}b.type="wheel";return a.event.handle.call(this,b,b.delta)}a.fn.wheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};a.event.special.wheel={setup:function(){a.event.add(this,g,f,{})},teardown:function(){a.event.remove(this,g,f)}};var g=
45
+ a.browser.mozilla?"DOMMouseScroll"+("1.9">a.browser.version?" mousemove":""):"mousewheel",c=a.tools.scrollable;c.plugins=c.plugins||{};c.plugins.mousewheel={version:"1.0.1",conf:{api:!1,speed:50}};a.fn.mousewheel=function(b){var e=a.extend({},c.plugins.mousewheel.conf),d;"number"==typeof b&&(b={speed:b});b=a.extend(e,b);this.each(function(){var e=a(this).scrollable();e&&(d=e);e.getRoot().wheel(function(a,d){e.move(0>d?1:-1,b.speed||50);return!1})});return b.api?d:this}})(jQuery);(function(a){function f(a,b){var e=a.getHours(),d=b.show24Hours?e:(e+11)%12+1;b.show24Hours&&(d=(10>d?"0":"")+d);var c=a.getMinutes();a=b.timeFormat;a=a.replace("hh",d);a=a.replace("h",d);a=a.replace("mm",(10>c?"0":"")+c);return a=b.show24Hours?a.replace(" tt",""):a.replace("tt",12>e?b.amDesignator:b.pmDesignator)}function g(a,d){return"object"==typeof a?b(a):c(a,d)}function c(a,d){if(a){var e=a.split(d.separator),c=parseFloat(e[0]),e=parseFloat(e[1]);d.show24Hours||(12===c&&-1!==a.substr(d.amDesignator)?
46
+ c=0:12!==c&&-1!==a.indexOf(d.pmDesignator)&&(c+=12));return b(new Date(0,0,0,c,e,0))}return null}function b(a){a.setFullYear(2001);a.setMonth(0);a.setDate(0);return a}a.fn.timePicker=function(b){var d=a.extend({},a.fn.timePicker.defaults,b);return this.each(function(){a.timePicker(this,d)})};a.timePicker=function(b,d){b=a(b)[0];return b.timePicker||(b.timePicker=new jQuery._timePicker(b,d))};a._timePicker=function(e,d){var r=!1,m=!1,h=g(d.startTime,d),k=g(d.endTime,d);a(e).attr("autocomplete","OFF");
47
+ for(var l=[],q=new Date(h);q<=k;)l[l.length]=f(q,d),q=new Date(q.setMinutes(q.getMinutes()+d.step));for(var n=a("<div "+(d.tpDivId?'id="'+d.tpDivId+'" ':"")+'class="time-picker'+(d.show24Hours?"":" time-picker-12hours")+'"></div>'),t=a("<ul></ul>"),q=0;q<l.length;q++)t.append("<li>"+l[q]+"</li>");n.append(t);l=a(e).offset();n.appendTo("body").css({top:l.top-48+"px",left:l.left,width:a(e).width()+5+"px"}).hide();n.mouseover(function(){r=!0}).mouseout(function(){r=!1});a("li",t).mouseover(function(){m||
48
+ (a("li.selected",n).removeClass("selected"),a(this).addClass("selected"))}).mousedown(function(){r=!0}).click(function(){e.value=a(this).text();a(e).change();a.browser.msie||e.focus();n.hide();r=!1});var p=function(){if(n.is(":visible"))return!1;a("li",n).removeClass("selected");var g=a(e).offset();n.css({top:g.top+a(e).height()+10+"px",left:g.left,width:a(e).width()+5+"px"});n.show();var m=e.value?c(e.value,d):h,g=60*h.getHours()+h.getMinutes(),m=60*m.getHours()+m.getMinutes()-g,g=b(new Date(0,0,
49
+ 0,0,Math.round(m/d.step)*d.step+g,0)),g=h<g&&g<=k?g:h,g=a("li:contains("+f(g,d)+")",n);g.length&&(g.addClass("selected"),n[0].scrollTop=g[0].offsetTop);return!0};a(e).focus(p).click(p);a(e).blur(function(){r||n.hide()});l=a.browser.opera||a.browser.mozilla?"keypress":"keydown";a(e)[l](function(b){m=!0;var d=n[0].scrollTop;switch(b.keyCode){case 38:if(p())return!1;b=a("li.selected",t);var c=b.prev().addClass("selected")[0];c?(b.removeClass("selected"),c.offsetTop<d&&(n[0].scrollTop=d-c.offsetHeight)):
50
+ (b.removeClass("selected"),c=a("li:last",t).addClass("selected")[0],n[0].scrollTop=c.offsetTop-c.offsetHeight);return!1;case 40:if(p())return!1;b=a("li.selected",t);(c=b.next().addClass("selected")[0])?(b.removeClass("selected"),c.offsetTop+c.offsetHeight>d+n[0].offsetHeight&&(n[0].scrollTop=d+c.offsetHeight)):(b.removeClass("selected"),a("li:first",t).addClass("selected"),n[0].scrollTop=0);return!1;case 13:return n.is(":visible")&&(d=a("li.selected",t)[0],e.value=a(d).text(),a(e).change(),a.browser.msie||
51
+ e.focus(),n.hide()),!1;case 27:return n.hide(),!1}return!0});a(e).keyup(function(a){m=!1});this.getTime=function(){return c(e.value,d)};this.setTime=function(c){e.value=f(b(c),d);a(e).change()}};a.fn.timePicker.defaults={step:30,startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,23,30,0),separator:":",show24Hours:!0,timeFormat:"hh:mm tt",amDesignator:"AM",pmDesignator:"PM"}})(jQuery);this.JSON||(this.JSON={});
52
+ (function(){function a(a){return 10>a?"0"+a:a}function f(a){b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(a){var b=r[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function g(a,b){var c=e,h=b[a];h&&"object"===typeof h&&"function"===typeof h.toJSON&&(h=h.toJSON(a));"function"===typeof m&&(h=m.call(b,a,h));switch(typeof h){case "string":return f(h);case "number":return isFinite(h)?String(h):"null";case "boolean":case "null":return String(h);case "object":if(!h)return"null";
53
+ e+=d;var k=[];if("[object Array]"===Object.prototype.toString.apply(h)){var r=h.length;for(a=0;a<r;a+=1)k[a]=g(a,h)||"null";b=0===k.length?"[]":e?"[\n"+e+k.join(",\n"+e)+"\n"+c+"]":"["+k.join(",")+"]";e=c;return b}if(m&&"object"===typeof m)for(r=m.length,a=0;a<r;a+=1){var p=m[a];"string"===typeof p&&(b=g(p,h))&&k.push(f(p)+(e?": ":":")+b)}else for(p in h)Object.hasOwnProperty.call(h,p)&&(b=g(p,h))&&k.push(f(p)+(e?": ":":")+b);b=0===k.length?"{}":e?"{\n"+e+k.join(",\n"+e)+"\n"+c+"}":"{"+k.join(",")+
54
+ "}";e=c;return b}}"function"!==typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(b){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var c=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
55
+ b=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e,d,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},m;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,c){var f;d=e="";if("number"===typeof c)for(f=0;f<c;f+=1)d+=" ";else"string"===typeof c&&(d=c);if((m=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return g("",{"":a})});
56
+ "function"!==typeof JSON.parseIt&&(JSON.parseIt=function(a,b){function d(a,c){var e,g=a[c];if(g&&"object"===typeof g)for(e in g)if(Object.hasOwnProperty.call(g,e)){var f=d(g,e);void 0!==f?g[e]=f:delete g[e]}return b.call(a,c,g)}c.lastIndex=0;c.test(a)&&(a=a.replace(c,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,
57
+ "")))return a=eval("("+a+")"),"function"===typeof b?d({"":a},""):a;throw new SyntaxError("JSON.parseIt");})})();(function(a){function f(c,b){function e(d){var e=a(d);return b.globalNav?e:c.parent().find(d)}var d=this,f=a(this),m=!b.vertical,h=c.children(),k=0,l;g||(g=d);a.each(b,function(b,d){a.isFunction(d)&&f.bind(b,d)});1<h.length&&(h=a(b.items,c));c.data("finder",e);var q=e(b.prev),n=e(b.next),t=e(b.prevPage),p=e(b.nextPage);a.extend(d,{getIndex:function(){return k},getClickIndex:function(){var a=d.getItems();return a.index(a.filter("."+b.activeClass))},getConf:function(){return b},getSize:function(){return d.getItems().size()},
58
+ getPageAmount:function(){return Math.ceil(this.getSize()/b.size)},getPageIndex:function(){return Math.ceil(k/b.size)},getNaviButtons:function(){return q.add(n).add(t).add(p)},getRoot:function(){return c},getItemWrap:function(){return h},getItems:function(){return h.children(b.item)},getVisibleItems:function(){return d.getItems().slice(k,k+b.size)},seekTo:function(c,e,r){function x(){r&&r.call(d,c);f.trigger("onSeek",[c])}0>c&&(c=0);if(k===c)return d;a.isFunction(e)&&(r=e);if(c>d.getSize()-b.size)return b.loop?
59
+ d.begin():this.end();var u=d.getItems().eq(c);if(!u.length)return d;var l=a.Event("onBeforeSeek");f.trigger(l,c>k);if(l.isDefaultPrevented())return d;if(void 0===e||a.isFunction(e))e=b.speed;m?h.animate({left:-u.position().left},e,b.easing,x):h.animate({top:-u.position().top},e,b.easing,x);g=d;k=c;l=a.Event("onStart");f.trigger(l,[c]);if(l.isDefaultPrevented())return d;q.add(t).toggleClass(b.disabledClass,0===c);n.add(p).toggleClass(b.disabledClass,c>=d.getSize()-b.size);return d},move:function(a,
60
+ b,c){l=0<a;return this.seekTo(k+a,b,c)},next:function(a,b){return this.move(1,a,b)},prev:function(a,b){return this.move(-1,a,b)},movePage:function(a,c,d){l=0<a;var e=b.size*a,g=k%b.size;0<g&&(e+=0<a?-g:b.size-g);return this.move(e,c,d)},prevPage:function(a,b){return this.movePage(-1,a,b)},nextPage:function(a,b){return this.movePage(1,a,b)},setPage:function(a,c,d){return this.seekTo(a*b.size,c,d)},begin:function(a,b){l=!1;return this.seekTo(0,a,b)},end:function(a,c){l=!0;var e=this.getSize()-b.size;
61
+ return 0<e?this.seekTo(e,a,c):d},reload:function(){f.trigger("onReload");return d},focus:function(){return g=d},click:function(a){var c=d.getItems().eq(a),e=b.activeClass,g=b.size;if(0>a||a>=d.getSize())return d;if(1==g){if(b.loop)return d.next();if(0===a||a==d.getSize()-1)l=void 0===l?!0:!l;return!1===l?d.prev():d.next()}return 2==g?(a==k&&a--,d.getItems().removeClass(e),c.addClass(e),d.seekTo(a,time,fn)):c.hasClass(e)||(d.getItems().removeClass(e),c.addClass(e),c=a-Math.floor(g/2),c>d.getSize()-
62
+ g&&(c=d.getSize()-g),c===a)?d:d.seekTo(c)},bind:function(a,b){f.bind(a,b);return d},unbind:function(a){f.unbind(a);return d}});a.each(["onBeforeSeek","onStart","onSeek","onReload"],function(a,b){d[b]=function(a){return d.bind(b,a)}});q.addClass(b.disabledClass).click(function(){d.prev()});n.click(function(){d.next()});p.click(function(){d.nextPage()});d.getSize()<b.size&&n.add(p).addClass(b.disabledClass);t.addClass(b.disabledClass).click(function(){d.prevPage()});var v=b.hoverClass,w="keydown."+
63
+ Math.random().toString().substring(10);d.onReload(function(){v&&d.getItems().hover(function(){a(this).addClass(v)},function(){a(this).removeClass(v)});b.clickable&&d.getItems().each(function(b){a(this).unbind("click.scrollable").bind("click.scrollable",function(c){if(!a(c.target).is("a"))return d.click(b)})});b.keyboard?a(document).unbind(w).bind(w,function(a){if(!(a.altKey||a.ctrlKey||"static"!=b.keyboard&&g!=d)){var c=b.keyboardSteps;return!m||37!=a.keyCode&&39!=a.keyCode?m||38!=a.keyCode&&40!=
64
+ a.keyCode?!0:(d.move(38==a.keyCode?-c:c),a.preventDefault()):(d.move(37==a.keyCode?-c:c),a.preventDefault())}}):a(document).unbind(w)});d.reload()}a.tools=a.tools||{};a.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:!1,speed:400,keyboard:!0,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:!0,activeClass:"active",easing:"swing",loop:!1,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:!1}};var g;a.fn.scrollable=function(c){var b=
65
+ this.eq("number"==typeof c?c:0).data("scrollable");if(b)return b;var e=a.extend({},a.tools.scrollable.conf);c=a.extend(e,c);c.keyboardSteps=c.keyboardSteps||c.size;this.each(function(){b=new f(a(this),c);a(this).data("scrollable",b)});return c.api?b:this}})(jQuery);(function(a){function f(c){switch(c.type){case "mousemove":return a.extend(c.data,{clientX:c.clientX,clientY:c.clientY,pageX:c.pageX,pageY:c.pageY});case "DOMMouseScroll":a.extend(c,c.data);c.delta=-c.detail/3;break;case "mousewheel":c.delta=c.wheelDelta/120}var b=a(this).scrollable();c.preventDefault();b.move(0>c.delta?1:-1,50);return!1}a.fn.wheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};a.event.special.wheel={setup:function(){this.addEventListener("DOMMouseScroll",f,!1);this.addEventListener("mousewheel",
66
+ f,!1)},teardown:function(){this.removeEventListener("DOMMouseScroll",f,!1);this.removeEventListener("mousewheel",f,!1)}};var g=a.tools.scrollable;g.plugins=g.plugins||{};g.plugins.mousewheel={version:"1.0.1",conf:{api:!1,speed:50}};a.fn.mousewheel=function(c){var b=a.extend({},g.plugins.mousewheel.conf),e;"number"==typeof c&&(c={speed:c});c=a.extend(b,c);this.each(function(){var b=a(this).scrollable();b&&(e=b);b.getRoot().wheel(function(a,e){b.move(0>e?1:-1,c.speed||50);return!1})});return c.api?
67
+ e:this}})(jQuery);/*
68
  : Copyright (c) 2006-2008, Coolite Inc. (http://www.coolite.com/). All rights reserved.
69
  @license: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
70
  @website: http://www.datejs.com/
71
  */
72
+ (function(){var a=Date,f=a.prototype,g=[],c=function(a,c){c||(c=2);return("000"+a).slice(-1*c)};a.normalizeFormat=function(a){g=[];(new Date).$format(a);return g.join("")};a.strftime=function(a,c){return(new Date(1E3*c)).$format(a)};a.strtotime=function(b){b=a.parse(b);b.addMinutes(-1*b.getTimezoneOffset());return Math.round(a.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes(),b.getUTCSeconds(),b.getUTCMilliseconds())/1E3)};f.$format=function(b){var e=this,d,f=
73
+ function(a){g.push(a);return e.toString(a)};return b?b.replace(/(%|\\)?.|%%/g,function(b){if("\\"===b.charAt(0)||"%%"===b.substring(0,2))return b.replace("\\","").replace("%%","%");switch(b){case "d":case "%d":return f("dd");case "D":case "%a":return f("ddd");case "j":case "%e":return f("d");case "l":case "%A":return f("dddd");case "N":case "%u":return e.getDay()+1;case "S":return f("S");case "w":case "%w":return e.getDay();case "z":return e.getOrdinalNumber();case "%j":return c(e.getOrdinalNumber(),
74
+ 3);case "%U":b=e.clone().set({month:0,day:1}).addDays(-1).moveToDayOfWeek(0);var h=e.clone().addDays(1).moveToDayOfWeek(0,-1);return h<b?"00":c((h.getOrdinalNumber()-b.getOrdinalNumber())/7+1);case "W":case "%V":return e.getISOWeek();case "%W":return c(e.getWeek());case "F":case "%B":return f("MMMM");case "m":case "%m":return f("MM");case "M":case "%b":case "%h":return f("MMM");case "n":return f("M");case "t":return a.getDaysInMonth(e.getFullYear(),e.getMonth());case "L":return a.isLeapYear(e.getFullYear())?
75
+ 1:0;case "o":case "%G":return e.setWeek(e.getISOWeek()).toString("yyyy");case "%g":return e.$format("%G").slice(-2);case "Y":case "%Y":return f("yyyy");case "y":case "%y":return f("yy");case "a":case "%p":return f("tt").toLowerCase();case "A":return f("tt").toUpperCase();case "g":case "%I":return f("h");case "G":return f("H");case "h":return f("hh");case "H":case "%H":return f("HH");case "i":case "%M":return f("mm");case "s":case "%S":return f("ss");case "u":return c(e.getMilliseconds(),3);case "I":return e.isDaylightSavingTime()?
76
+ 1:0;case "O":return e.getUTCOffset();case "P":return d=e.getUTCOffset(),d.substring(0,d.length-2)+":"+d.substring(d.length-2);case "e":case "T":case "%z":case "%Z":return e.getTimezone();case "Z":return-60*e.getTimezoneOffset();case "B":return b=new Date,Math.floor((3600*b.getHours()+60*b.getMinutes()+b.getSeconds()+60*(b.getTimezoneOffset()+60))/86.4);case "c":return e.toISOString().replace(/\"/g,"");case "U":return a.strtotime("now");case "%c":return f("d")+" "+f("t");case "%C":return Math.floor(e.getFullYear()/
77
+ 100+1);case "%D":return f("MM/dd/yy");case "%n":return"\\n";case "%t":return"\\t";case "%r":return f("hh:mm tt");case "%R":return f("H:mm");case "%T":return f("H:mm:ss");case "%x":return f("d");case "%X":return f("t");default:return g.push(b),b}}):this._toString()};f.format||(f.format=f.$format)})();
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: cvernon, justinstresslimit, jkudish, MaryVogt, zgrossbart
3
  Tags: posts, post, calendar, AJAX, admin, administration
4
  Requires at least: 3.0
5
- Tested up to: 4.8
6
- Stable tag: 3.6.4
7
 
8
  The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
9
 
@@ -195,6 +195,12 @@ The `edcal_default_status` property controls the default status for new posts in
195
 
196
  == Changelog ==
197
 
 
 
 
 
 
 
198
  = 3.6.4 =
199
 
200
  The calendar has now been updated and tested for WordPress version 4.8.
2
  Contributors: cvernon, justinstresslimit, jkudish, MaryVogt, zgrossbart
3
  Tags: posts, post, calendar, AJAX, admin, administration
4
  Requires at least: 3.0
5
+ Tested up to: 4.9.1
6
+ Stable tag: 3.6.5
7
 
8
  The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
9
 
195
 
196
  == Changelog ==
197
 
198
+ = 3.6.5 =
199
+
200
+ The calendar will no longer prompt new users to collect data about how they use the calendar. We have all the data we need for now.
201
+
202
+ The calendar has now been updated and tested for WordPress version 4.9.1.
203
+
204
  = 3.6.4 =
205
 
206
  The calendar has now been updated and tested for WordPress version 4.8.