PageSourceSearch

https://airesis.eu/_assets/dc37d2013377.js

js airesis.eu collected 2026-10-04 21:51:37 UTC 1,235,637 bytes, 38 lines download raw bytes

1function switchText(t){t.each(function(){var t=$(this).data("other"),e=$(this).text();$(this).data("other",e),$(this).text(t)})}function scrollToElement(t,e){return Airesis.viewport.animate({scrollTop:t.offset().top-160},2e3,"swing",e),Airesis.viewport.bind("scroll mousedown DOMMouseScroll mousewheel keyup",function(t){(0<t.which||"mousedown"===t.type||"mousewheel"===t.type)&&Airesis.viewport.stop().unbind("scroll mousedown DOMMouseScroll mousewheel keyup")}),!1}function mybox_animate(){$(".mybox .mybox_button").click(function(){0==$(this).data("menu2show")?($(this).data("menu2show",1),$(this).parent().find(".mycont").slideDown(),$(this).removeClass("close")):($(this).data("menu2show",0),$(this).parent().find(".mycont").slideUp(),$(this).addClass("close"))})}function sticky_relocate(){var t=$(window).scrollTop();$(".sticky-anchor").each(function(){$(this).offset().top-90<t?$(".sticky").addClass("stick"):$(".sticky").removeClass("stick")})}function disegnaProgressBar(){$(".timeline").each(function(){if("true"!=$(this).attr("data-initialized")){var t=$(".time",this),e=$(".good",this),i=$(".cur.quorum",this),n=$(".cur.bad.quorum",this);t.animate({width:t.data("percentage")+"%"},2e3),e.animate({width:e.data("percentage")+"%"},2e3),i.css("left",i.data("percentage")+"%"),n.css("left",n.data("percentage")+"%"),$(this).attr("data-initialized","true")}}),$(".timeline .cur").qtip({position:{at:"bottom center",my:"top center",viewport:$(window)},style:{classes:"qtip-light qtip-shadow",tip:{corner:!0,width:5,height:5}}}),$(".proposal_bottom .contributes, .proposal_bottom .timeleft, .proposal_bottom .rankDescription").qtip({position:{at:"bottom center",my:"top center"},style:{classes:"qtip-light qtip-shadow",tip:{corner:!0,width:5,height:5}}}),$('.alert.notify[data-load="true"]').each(function(){$(this).qtip({content:{text:"Loading...",ajax:{url:"/alerts/proposal",type:"GET",data:"proposal_id="+$(this).data("proposal-id"),success:function(t){this.set("content.text",t)}}},position:{my:"bottom center",at:"top center",viewport:$(window),effect:!1},style:{classes:"qtip-light qtip-shadow"},hide:{fixed:!0,delay:500}})})}function hideDisableButton(t){t.hide();var e=$('<div class="waitDiv"><%=image_tag "facebook-loader.gif", :alt => "loading..."%> </div>');e.width(t.outerWidth(!0)),e.height(t.outerHeight(!0)),t.after(e)}function showDisableButton(t){t.show(),$(".waitDiv").remove()}function hideDisableGButton(t){var e=t.html(),i=$('<div class="load"><span>LOADING</span><%=image_tag "gloading.gif", :alt => ""%></div>');t.width(t.width()),t.height(t.height()),t.empty(),t.append($('<span class="hidden">').append(e)),t.append(i),t.attr("disabled","disabled"),t.bind("click.killlink",function(t){return t.preventDefault(),!1})}function showDisableGButton(t){var e=$(".hidden",t).html();$(".load",t).remove(),t.html(e),t.removeAttr("disabled"),t.unbind("click.killlink")}function calculate_event_times(){et.est=$("#event_starttime"),et.eet=$("#event_endtime"),et.eventStartTime=et.est.datetimepicker("getDate"),et.eventEndTime=et.eet.datetimepicker("getDate"),et.eventStartDate=new Date(et.eventStartTime),et.eventEndDate=new Date(et.eventEndTime),et.get=$("#groups_end_time"),et.cet=$("#candidates_end_time"),et.groupTime=et.get.datetimepicker("getDate"),et.candidatesTime=et.cet.datetimepicker("getDate"),et.groupDate=new Date(et.groupTime),et.candidatesDate=new Date(et.candidatesTime)}function addMinutes(t,e){return new Date(t.getTime()+6e4*e)}function upperMinutes(t,e){return addMinutes(t,e-t.getMinutes()%e)}function dateToString(t){var e=t.getDate(),i=t.getMonth()+1,n=t.getFullYear(),s=t.getHours(),a=t.getMinutes();return a<10&&(a="0"+a),e+"/"+i+"/"+n+" "+s+":"+a}function startTimeChanged(){if(!(et.eventEndDate.getTime()>et.eventStartDate.getTime())){var t=addMinutes(et.eventStartTime,15);et.eet.datetimepicker("setDate",t)}et.groupDate.getTime()>et.eventStartDate.getTime()||et.get.datetimepicker("setDate",et.eventStartTime),et.candidatesDate.getTime()>et.eventStartDate.getTime()||et.cet.datetimepicker("setDate",et.eventStartTime);
1Math.floor((et.eventStartDate-new Date)/864e5)}function endTimeChanged(){if(!(et.eventEndDate.getTime()>et.eventStartDate.getTime())){var t=addMinutes(et.eventStartTime,-15);et.est.datetimepicker("setDate",t)}}function groupsTimeChanged(){et.candidatesDate.getTime()>et.groupDate.getTime()||$("#candidates_end_time").datetimepicker("setDate",et.groupTime),et.eventEndDate.getTime()>et.groupDate.getTime()||et.eet.datetimepicker("setDate",et.groupTime);var t=Math.floor((et.groupDate-new Date)/864e5);$("#candidates_end_time").datetimepicker("option","minDate",t)}function candidatesTimeChanged(){if(et.candidatesDate.getTime()>et.groupDate.getTime()||$("#groups_end_time").datetimepicker("setDate",et.candidatesTime),!(et.eventEndDate.getTime()>et.candidatesDate.getTime())){var t=addMinutes(et.candidatesTime,15);et.eet.datetimepicker("setDate",t)}}function start_end_fdatetimepicker(t,s,a,r){a=void 0!==a?a:5,r=void 0!==r?r:a,t.fdatetimepicker().on("hide",function(t){$field=$(t.currentTarget);$field.closest("form").data("formValidation");$field.closest("form").formValidation("revalidateField",$field);var e=$field.fdatetimepicker("getDate"),i=addMinutes(e,a),n=s.fdatetimepicker("getDate");s.fdatetimepicker("setStartDate",i),n<i&&(s.fdatetimepicker("setDate",addMinutes(e,r)),showOnField(s,Airesis.i18n.datepicker.changed))});var e=t.fdatetimepicker("getDate");s.fdatetimepicker({startDate:e}).on("hide",function(t){$field=$(t.currentTarget);$field.closest("form").data("formValidation");$field.closest("form").formValidation("revalidateField",$field)})}function fdatetimepicker_only_date(t,e){t.fdatetimepicker("pickOnlyDate"),t.fdatetimepicker("setBeginOfDay"),e.fdatetimepicker("pickOnlyDate"),e.fdatetimepicker("setEndOfDay")}function fdatetimepicker_date_and_time(t,e){t.fdatetimepicker("pickDateAndTime"),e.fdatetimepicker("pickDateAndTime")}function disegnaCountdown(){$("div[data-countdown]").each(function(){$(this).countdown($.extend({since:new Date($(this).data("time")),significant:1,format:"ms",layout:Airesis.i18n.countdown.layout1},$.countdown.regionalOptions[Airesis.i18n.locale]))})}function getURLParameter(t){return decodeURIComponent((location.search.match(RegExp("[?|&]"+t+"=(.+?)(&|$)"))||[,null])[1])}
1function array2dToJson(t,e,i){var n,s='{"'+e+'":[';for(i=i||"",n=0;n<t.length;++n)s+=i+array1dToJson(t[n]),n<t.length-1&&(s+=",");return s+=i+"]}"}function array1dToJson(t,e){var i,n="[";for(i=0;i<t.length;++i)"string"==typeof t[i]?n+='"'+t[i]+'"':n+=t[i],i<t.length-1&&(n+=",");return n+="]",e?'{"'+e+'":'+n+"}":n}function stripScripts(t){var e=document.createElement("div");e.innerHTML=t;for(var i=e.getElementsByTagName("script"),n=i.length;n--;)i[n].parentNode.removeChild(i[n]);return e.innerHTML}function poll_if_not_recent(){var t=(new Date).getTime()/1e3;last_poll_start<last_poll_end&&last_poll_end<t-5&&poll()}function set_alerts_number(t){$(".alert.notify.boxed").append(t),document.title="("+t+") "+document_title}function reset_alerts_number(){$(".alert.notify.boxed").remove(),document.title=document_title}function decrease_box_number(t){var e=parseInt(t.html());1<e?(e-=1,t.html(e)):t.remove()}function decrease_alerts_number(){var t=$(".alert.notify.boxed"),e=parseInt(t.html());1<e?(e-=1,t.html(e),document.title="("+e+") "+document_title):reset_alerts_number()}function read_notifica(t){var e=$(t).parent();e.addClass("old").removeClass("new");var i=e.attr("href");$(t).data("type_id");decrease_alerts_number();var n=e.data("proposal-id");n&&$(".alert.notify[data-proposal-id="+n+"]").each(function(){decrease_box_number($(this))}),$.ajax({dataType:"script",type:"get",url:i})}function sign_all_as_read(t){$.ajax({url:"/alerts/check_all/",type:"post",dataType:"script",data:{id:t},complete:function(){reset_alerts_number(),$(".card.mess").each(function(){$(this).addClass("old");var t=$(this).data("proposal-id");t&&$(".alert.notify[data-proposal-id="+t+"]").each(function(){decrease_box_number($(this))})})}})}function poll(){last_poll_start=(new Date).getTime()/1e3,$.ajax({dataType:"JSON",type:"GET",url:"/alerts",success:function(t){0<t.count&&($("#alerts_link").append($('<button class="alert notify boxed">').append(t.count)),document.title="("+t.count+") "+document.title);var e=$("#alert_cont");e.empty();var i=$('<div class="read_all">');i.append($('<a href="#" onclick="sign_all_as_read('+t.id+');return false;">'+Airesis.i18n.alerts_sign_has_read+"</a>")),i.append(" \xb7 ");var n="/users/alarm_preferences";""!==Airesis.i18n.l&&(n+="?l="+Airesis.i18n.l),i.append($('<a href="'+n+'">'+Airesis.i18n.alarm_settings+"</a>"));var s=$('<div class="cont1">');e.append(i).append(s);for(var a=0;a<t.alerts.length;a++){var r=t.alerts[a],o=$("<li></li>"),l=$('<a class="card mess" href="'+r.path+'">');o.append(l),l.addClass(r.checked?"old":"new"),r.proposal_id&&l.attr("data-proposal-id",r.proposal_id);var h=$('<div class="row"></div>'),d=$('<div class="columns small-2"></div>'),c=$('<div class="columns small-10"></div>');h.append(d).append(c),c.append($('<p class="p2">'+r.text+"</p>")),c.append($('<div class="p1">'+r.created_at+"</div>")),d.append($('<img src="'+r.image+'"/>')),l.append(h),l.append('<div class="clearboth"></div>'),r.checked||l.append($('<i class="fa fa-circle-o read" title="'+Airesis.i18n.alert_read+'" data-type_id="'+t.id+'" onclick="read_notifica(this);return false;"></i>')),s.append(o)}0==t.alerts.length&&s.append($("<span>"+Airesis.i18n.no_alerts+"</span>")),$(".cont1").bind("mousewheel DOMMouseScroll",function(t){Airesis.scrollLock(this,t)}),disegnaCountdown()},error:function(t){console.error(t)},complete:function(){last_poll_end=(new Date).getTime()/1e3}})}function set_noise_data(){$("#comments_active").val($("#active .noise_element").map(function(){return $(this).data("id")}).get()),$("#comments_inactive").val($("#inactive .noise_element").map(function(){return $(this).data("id")}).get())}function secondsToString(t){var e=Math.floor(t/31536e3),i=5,n=0,s="";e&&n<i&&(s+=e+" anni ",n++);var a=Math.floor((t%=31536e3)/86400);a&&n<i&&(s+=a+" giorni ",n++);var r=Math.floor((t%=86400)/3600);r&&n<i&&(s+=r+" ore ",n++);var o=Math.floor((t%=3600)/60);return o&&n<i&&(s+=o+" minuti ",n++),(t=t%60)&&n<i&&(s+=t+" secondi ",n++),s}function getQueryParam(t){var e=window.location.search.match(new RegExp("(\\?|&)"+t+"(\\[\\])?=([^&]*)"));return!!e&&e[3]}function addQueryParam(t,e,i){var n=t.match(/([^?#]+)(\?[^#]*)?(\#.*)?/),s=(t=n[1],n[2]||""),a=n[3]||"";if(s){var r,o=s.substr(1).split("&");for(r=0;r<o.length;r++){if(o[r].split("=")[0]==e){o[r]=e+"="+encodeURIComponent(i);break}}return r==o.length&&o.push(e+"="+encodeURIComponent(i)),t+"?"+o.join("&")+a}return t+"?"+e+"="+encodeURIComponent(i)+a}function hideLeftPanel(){$("#menu-left").addClass("contributes_shown"),$("#centerpanelextended").addClass("contributes_shown")}function showLeftPanel(){$("#menu-left").removeClass("contributes_shown"),$("#centerpanelextended").removeClass("contributes_shown")}function fitRightMenu(t){t.addClass("contributes_shown"),t.css("display",""),matchMedia(Foundation.media_queries.medium).matches&&t.height($(window).height()-110),$(window).resize(function(){matchMedia(Foundation.media_queries.medium).matches&&t.height($(window).height()-110)})}function formatCategory(t){return t.id?'<img src="'+$(t.element).data("imagesrc")+'"/> '+t.text:t.text}function formatQuorum(t){var e=t.element;return t.id?'<div> <div class="quorum_title">'+t.text+'</div> <div class="quorum_desc">'+$(e).data("description")+"</div></div>":t.text}function formatQuorumSelection(t){t.element;return t.id?'<div><div class="quorum_title">'+t.text+"</div></div>":t.text}
1function formatPeriod(t){var e=t.element;return t.id?'<div> <div class="period_title">'+t.text+'</div> <div class="period_desc">'+$(e).data("title")+"</div></div>":t.text}function initTextAreaTag(){$(".reply_textarea[data-initialized!=1]").each(function(){$(this).textntags({triggers:{"@":{uniqueTags:!1}},onDataRequest:function(t,e,i,n){var s=ProposalsShow.nicknames;e=e.toLowerCase();var a=_.filter(s,function(t){return-1<t.name.toLowerCase().indexOf(e)});n.call(this,a)}}),$(this).attr("data-initialized",1)})}function airesis_close_reveal(){$(".reveal-modal:visible").foundation("reveal","close")}function airesis_reveal(t,e){e=void 0===e||e,t.foundation().foundation("reveal","open"),e&&$(document).on("closed.fndtn.reveal",t,function(){t.remove()}),airesis_reveal_refresh(t)}function airesis_reveal_refresh(t){t.append('<a class="close-reveal-modal">&#215;</a>'),t.find("[data-reveal-close]").click(function(){t.foundation().foundation("reveal","close")})}function search_stuff(){delay(function(){var t=$("#search_q").val();null!=t&&""!=t&&$.ajax({url:"/searches",data:{"search[q]":t},method:"POST"})},600)}function showOnField(t,e){var i=$('<small class="warning">'+e+"</small>");t.parent().after(i),t.addClass("warning"),setTimeout(function(){t.removeClass("warning"),i.slideUp()},1e4)}function close_all_dropdown(){$(".f-dropdown").foundation("dropdown","close",$(".f-dropdown"))}function execute_page_js(t){"object"==typeof window[t]&&window[t].init()}function hiddenHeight(t){if(0<t.height())return t.height();var e=t.clone().attr("id",!1).css({visibility:"hidden",display:"block",position:"absolute"});$("body").append(e);var i=e.height();return e.remove(),i}function resetCounter(){currentPage=0}function nearBottomOfPage(){return scrollDistanceFromBottom()<150}function scrollDistanceFromBottom(){return $(document).height()-($(window).height()+$(window).scrollTop())}function pageHeight(){return Math.max(document.body.scrollHeight,document.body.offsetHeight)}function buildPrivatePub(doc){var self={connecting:!1,fayeClient:null,fayeCallbacks:[],subscriptions:{},subscriptionCallbacks:{},faye:function(t){if(self.fayeClient)t(self.fayeClient);else if(self.fayeCallbacks.push(t),self.subscriptions.server&&!self.connecting){self.connecting=!0;var e=doc.createElement("script");e.type="text/javascript",e.src=self.subscriptions.server+".js",e.onload=self.connectToFaye,doc.documentElement.appendChild(e)}},connectToFaye:function(){self.fayeClient=new Faye.Client(self.subscriptions.server),self.fayeClient.addExtension(self.fayeExtension);for(var t=0;t<self.fayeCallbacks.length;t++)self.fayeCallbacks[t](self.fayeClient)},fayeExtension:{outgoing:function(t,e){if("/meta/subscribe"==t.channel){var i=self.subscriptions[t.subscription];t.ext||(t.ext={}),t.ext.private_pub_signature=i.signature,t.ext.private_pub_timestamp=i.timestamp}e(t)}},sign:function(e){self.subscriptions.server||(self.subscriptions.server=e.server),self.subscriptions[e.channel]=e,self.faye(function(t){t.subscribe(e.channel,self.handleResponse)})},handleResponse:function(message){message.eval&&eval(message.eval),(callback=self.subscriptionCallbacks[message.channel])&&callback(message.data,message.channel)},subscribe:function(t,e){self.subscriptionCallbacks[t]=e}};return self}(function(){var i;window.Airesis={i18n:{},scrollLock:function(t,e){var i;("up"===(i=0<(e.originalEvent.wheelDelta||-e.originalEvent.detail)?"up":"down")&&0===t.scrollTop||"down"===i&&t.scrollTop===t.scrollHeight-t.offsetHeight)&&e.preventDefault()},development:function(){return"development"===this.environment},log:function(t){if(Airesis.development())return console.log(t)},select2town:function(t){return t.select2({placeholder:Airesis.i18n.type_for_town,ajax:{url:"/municipalities",dataType:"json",data:function(t){return{q:t.term}},processResults:function(t){return{results:t}},cache:!0},escapeMarkup:function(t){return t}})},delay:(i=0,function(t,e){clearTimeout(i),i=setTimeout(t,e)})}}).call(this),function(){Airesis.Searcher=function(){function t(){var t,n;n={},0<(t=$("#search_q")).length&&(t.autocomplete({minLength:1,source:function(t,e){var i;return(i=t.term)in n&&e(n[i]),$.getJSON("/searches",t,function(t){return n[i]=t,e(t)})},focus:function(t){return t.preventDefault()},select:function(t,e){return window.location.href=e.item.url,t.preventDefault()}}),t.data("uiAutocomplete")._renderMenu=function(i,t){var n;return n=this,$.each(t,function(t,e){"Divider"===e.type?i.append($("<li class='ui-autocomplete-category'>"+e.value+"</li>")):n._renderItemData(i,e)}),$(i).addClass("f-dropdown").addClass("medium").css("z-index",1005).css("width","400px")},t.data("uiAutocomplete")._renderItem=function(t,e){var i,n,s,a,r,o;return s=$("<li>"),r=$("<a></a>"),i=$('<div class="search_result_container"></div>'),a=$('<div class="search_result_image"></div>'),i.append(a),(n=$('<div class="search_result_description"></div>')).append('<div class="search_result_title">'+e.label+"</div>"),o=$('<div class="search_result_text"></div>'),"Blog"===e.type?(a.append(e.image),o.append('<a href="'+e.user_url+'">'+e.username+"</a>")):("Group"===e.type&&(o.append('<div class="groupDescription"><img src="'+Airesis.assets.group_participants+'"><span class="count">'+e.participants_num+"</span></div>"),o.append('<div class="groupDescription"><img src="'+Airesis.assets.group_proposals+'"><span class="count">'+e.proposals_num+"</span></div>")),a.append('<img src="'+e.image+'"/>')),n.append(o),i.append(n),i.append('<div class="clearboth"></div>'),r.attr("href",e.url),r.append(i),s.append(r),s.appendTo(t),s},t.on("keypress",function(t){if(13===(t.keyCode?t.keyCode:t.which))return!1}))}return t.prototype.searchcache={},t}()}.call(this),function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(C,t){function o(t){var e=!!t&&"length"in t&&t.length,i=ft.type(t);
1return"function"!==i&&!ft.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}function e(t,i,n){if(ft.isFunction(i))return ft.grep(t,function(t,e){return!!i.call(t,e,t)!==n});if(i.nodeType)return ft.grep(t,function(t){return t===i!==n});if("string"==typeof i){if(St.test(i))return ft.filter(i,t,n);i=ft.filter(i,t)}return ft.grep(t,function(t){return-1<ft.inArray(t,i)!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function d(t){var i={};return ft.each(t.match(Mt)||[],function(t,e){i[e]=!0}),i}function s(){st.addEventListener?(st.removeEventListener("DOMContentLoaded",a),C.removeEventListener("load",a)):(st.detachEvent("onreadystatechange",a),C.detachEvent("onload",a))}function a(){(st.addEventListener||"load"===C.event.type||"complete"===st.readyState)&&(s(),ft.ready())}function l(t,e,i){if(i===undefined&&1===t.nodeType){var n="data-"+e.replace(Rt,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:Pt.test(i)?ft.parseJSON(i):i)}catch(s){}ft.data(t,e,i)}else i=undefined}return i}function h(t){var e;for(e in t)if(("data"!==e||!ft.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function n(t,e,i,n){if(jt(t)){var s,a,r=ft.expando,o=t.nodeType,l=o?ft.cache:t,h=o?t[r]:t[r]&&r;if(h&&l[h]&&(n||l[h].data)||i!==undefined||"string"!=typeof e)return h||(h=o?t[r]=nt.pop()||ft.guid++:r),l[h]||(l[h]=o?{}:{toJSON:ft.noop}),"object"!=typeof e&&"function"!=typeof e||(n?l[h]=ft.extend(l[h],e):l[h].data=ft.extend(l[h].data,e)),a=l[h],n||(a.data||(a.data={}),a=a.data),i!==undefined&&(a[ft.camelCase(e)]=i),"string"==typeof e?null==(s=a[e])&&(s=a[ft.camelCase(e)]):s=a,s}}function r(t,e,i){if(jt(t)){var n,s,a=t.nodeType,r=a?ft.cache:t,o=a?t[ft.expando]:ft.expando;if(r[o]){if(e&&(n=i?r[o]:r[o].data)){s=(e=ft.isArray(e)?e.concat(ft.map(e,ft.camelCase)):e in n?[e]:(e=ft.camelCase(e))in n?[e]:e.split(" ")).length;for(;s--;)delete n[e[s]];if(i?!h(n):!ft.isEmptyObject(n))return}(i||(delete r[o].data,h(r[o])))&&(a?ft.cleanData([t],!0):ut.deleteExpando||r!=r.window?delete r[o]:r[o]=undefined)}}}function c(t,e,i,n){var s,a=1,r=20,o=n?function(){return n.cur()}:function(){return ft.css(t,e,"")},l=o(),h=i&&i[3]||(ft.cssNumber[e]?"":"px"),d=(ft.cssNumber[e]||"px"!==h&&+l)&&$t.exec(ft.css(t,e));if(d&&d[3]!==h)for(h=h||d[3],i=i||[],d=+l||1;d/=a=a||".5",ft.style(t,e,d+h),a!==(a=o()/l)&&1!==a&&--r;);return i&&(d=+d||+l||0,s=i[1]?d+(i[1]+1)*i[2]:+i[2],n&&(n.unit=h,n.start=d,n.end=s)),s}function m(t){var e=Yt.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}function v(t,e){var i,n,s=0,a="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):undefined;if(!a)for(a=[],i=t.childNodes||t;null!=(n=i[s]);s++)!e||ft.nodeName(n,e)?a.push(n):ft.merge(a,v(n,e));return e===undefined||e&&ft.nodeName(t,e)?ft.merge([t],a):a}function b(t,e){for(var i,n=0;null!=(i=t[n]);n++)ft._data(i,"globalEval",!e||ft._data(e[n],"globalEval"))}function y(t){Bt.test(t.type)&&(t.defaultChecked=t.checked)}function g(t,e,i,n,s){for(var a,r,o,l,h,d,c,u=t.length,p=m(e),f=[],g=0;g<u;g++)if((r=t[g])||0===r)if("object"===ft.type(r))ft.merge(f,r.nodeType?[r]:r);else if(Zt.test(r)){for(l=l||p.appendChild(e.createElement("div")),h=(Wt.exec(r)||["",""])[1].toLowerCase(),c=Qt[h]||Qt._default,l.innerHTML=c[1]+ft.htmlPrefilter(r)+c[2],a=c[0];a--;)l=l.lastChild;if(!ut.leadingWhitespace&&Gt.test(r)&&f.push(e.createTextNode(Gt.exec(r)[0])),!ut.tbody)for(a=(r="table"!==h||Xt.test(r)?"<table>"!==c[1]||Xt.test(r)?0:l:l.firstChild)&&r.childNodes.length;a--;)ft.nodeName(d=r.childNodes[a],"tbody")&&!d.childNodes.length&&r.removeChild(d);for(ft.merge(f,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=p.lastChild}else f.push(e.createTextNode(r));for(l&&p.removeChild(l),ut.appendChecked||ft.grep(v(f,"input"),y),g=0;r=f[g++];)if(n&&-1<ft.inArray(r,n))s&&s.push(r);else if(o=ft.contains(r.ownerDocument,r),l=v(p.appendChild(r),"script"),o&&b(l),i)for(a=0;r=l[a++];)Ut.test(r.type||"")&&i.push(r);return l=null,p}function u(){return!0}function p(){return!1}function f(){try{return st.activeElement}catch(t){}}function w(t,e,i,n,s,a){var r,o;
1if("object"==typeof e){for(o in"string"!=typeof i&&(n=n||i,i=undefined),e)w(t,o,i,n,e[o],a);return t}if(null==n&&null==s?(s=i,n=i=undefined):null==s&&("string"==typeof i?(s=n,n=undefined):(s=n,n=i,i=undefined)),!1===s)s=p;else if(!s)return t;return 1===a&&(r=s,(s=function(t){return ft().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=ft.guid++)),t.each(function(){ft.event.add(this,e,s,n,i)})}function x(t,e){return ft.nodeName(t,"table")&&ft.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function S(t){return t.type=(null!==ft.find.attr(t,"type"))+"/"+t.type,t}function k(t){var e=le.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function T(t,e){if(1===e.nodeType&&ft.hasData(t)){var i,n,s,a=ft._data(t),r=ft._data(e,a),o=a.events;if(o)for(i in delete r.handle,r.events={},o)for(n=0,s=o[i].length;n<s;n++)ft.event.add(e,i,o[i][n]);r.data&&(r.data=ft.extend({},r.data))}}function D(t,e){var i,n,s;if(1===e.nodeType){if(i=e.nodeName.toLowerCase(),!ut.noCloneEvent&&e[ft.expando]){for(n in(s=ft._data(e)).events)ft.removeEvent(e,n,s.handle);e.removeAttribute(ft.expando)}"script"===i&&e.text!==t.text?(S(e).text=t.text,k(e)):"object"===i?(e.parentNode&&(e.outerHTML=t.outerHTML),ut.html5Clone&&t.innerHTML&&!ft.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===i&&Bt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===i?e.defaultSelected=e.selected=t.defaultSelected:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}}function A(i,n,s,a){n=rt.apply([],n);var t,e,r,o,l,h,d=0,c=i.length,u=c-1,p=n[0],f=ft.isFunction(p);if(f||1<c&&"string"==typeof p&&!ut.checkClone&&oe.test(p))return i.each(function(t){var e=i.eq(t);f&&(n[0]=p.call(this,t,e.html())),A(e,n,s,a)});if(c&&(t=(h=g(n,i[0].ownerDocument,!1,i,a)).firstChild,1===h.childNodes.length&&(h=t),t||a)){for(r=(o=ft.map(v(h,"script"),S)).length;d<c;d++)e=h,d!==u&&(e=ft.clone(e,!0,!0),r&&ft.merge(o,v(e,"script"))),s.call(i[d],e,d);if(r)for(l=o[o.length-1].ownerDocument,ft.map(o,k),d=0;d<r;d++)e=o[d],Ut.test(e.type||"")&&!ft._data(e,"globalEval")&&ft.contains(l,e)&&(e.src?ft._evalUrl&&ft._evalUrl(e.src):ft.globalEval((e.text||e.textContent||e.innerHTML||"").replace(he,"")));h=t=null}return i}function I(t,e,i){for(var n,s=e?ft.filter(e,t):t,a=0;null!=(n=s[a]);a++)i||1!==n.nodeType||ft.cleanData(v(n)),n.parentNode&&(i&&ft.contains(n.ownerDocument,n)&&b(v(n,"script")),n.parentNode.removeChild(n));return t}function E(t,e){var i=ft(e.createElement(t)).appendTo(e.body),n=ft.css(i[0],"display");return i.detach(),n}function M(t){var e=st,i=ue[t];return i||("none"!==(i=E(t,e))&&i||((e=((ce=(ce||ft("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||ce[0].contentDocument).document).write(),e.close(),i=E(t,e),ce.detach()),ue[t]=i),i}function F(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function j(t){if(t in De)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=Te.length;i--;)if((t=Te[i]+e)in De)return t}function P(t,e){for(var i,n,s,a=[],r=0,o=t.length;r<o;r++)(n=t[r]).style&&(a[r]=ft._data(n,"olddisplay"),i=n.style.display,e?(a[r]||"none"!==i||(n.style.display=""),""===n.style.display&&zt(n)&&(a[r]=ft._data(n,"olddisplay",M(n.nodeName)))):(s=zt(n),(i&&"none"!==i||!s)&&ft._data(n,"olddisplay",s?i:ft.css(n,"display"))));for(r=0;r<o;r++)(n=t[r]).style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?a[r]||"":"none"));return t}function R(t,e,i){var n=Ce.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function H(t,e,i,n,s){for(var a=i===(n?"border":"content")?4:"width"===e?1:0,r=0;a<4;a+=2)"margin"===i&&(r+=ft.css(t,i+Ot[a],!0,s)),n?("content"===i&&(r-=ft.css(t,"padding"+Ot[a],!0,s)),"margin"!==i&&(r-=ft.css(t,"border"+Ot[a]+"Width",!0,s))):(r+=ft.css(t,"padding"+Ot[a],!0,s),"padding"!==i&&(r+=ft.css(t,"border"+Ot[a]+"Width",!0,s)));return r}function L(t,e,i){var n=!0,s="width"===e?t.offsetWidth:t.offsetHeight,a=ve(t),r=ut.boxSizing&&"border-box"===ft.css(t,"boxSizing",!1,a);
1if(s<=0||null==s){if(((s=_e(t,e,a))<0||null==s)&&(s=t.style[e]),fe.test(s))return s;n=r&&(ut.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+H(t,e,i||(r?"border":"content"),n,a)+"px"}function N(t,e,i,n,s){return new N.prototype.init(t,e,i,n,s)}function q(){return C.setTimeout(function(){Ae=undefined}),Ae=ft.now()}function $(t,e){var i,n={height:t},s=0;for(e=e?1:0;s<4;s+=2-e)n["margin"+(i=Ot[s])]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}function O(t,e,i){for(var n,s=(B.tweeners[e]||[]).concat(B.tweeners["*"]),a=0,r=s.length;a<r;a++)if(n=s[a].call(i,e,t))return n}function z(e,t,i){var n,s,a,r,o,l,h,d=this,c={},u=e.style,p=e.nodeType&&zt(e),f=ft._data(e,"fxshow");for(n in i.queue||(null==(o=ft._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,l=o.empty.fire,o.empty.fire=function(){o.unqueued||l()}),o.unqueued++,d.always(function(){d.always(function(){o.unqueued--,ft.queue(e,"fx").length||o.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[u.overflow,u.overflowX,u.overflowY],"inline"===("none"===(h=ft.css(e,"display"))?ft._data(e,"olddisplay")||M(e.nodeName):h)&&"none"===ft.css(e,"float")&&(ut.inlineBlockNeedsLayout&&"inline"!==M(e.nodeName)?u.zoom=1:u.display="inline-block")),i.overflow&&(u.overflow="hidden",ut.shrinkWrapBlocks()||d.always(function(){u.overflow=i.overflow[0],u.overflowX=i.overflow[1],u.overflowY=i.overflow[2]})),t)if(s=t[n],Re.exec(s)){if(delete t[n],a=a||"toggle"===s,s===(p?"hide":"show")){if("show"!==s||!f||f[n]===undefined)continue;p=!0}c[n]=f&&f[n]||ft.style(e,n)}else h=undefined;if(ft.isEmptyObject(c))"inline"===("none"===h?M(e.nodeName):h)&&(u.display=h);else for(n in f?"hidden"in f&&(p=f.hidden):f=ft._data(e,"fxshow",{}),a&&(f.hidden=!p),p?ft(e).show():d.done(function(){ft(e).hide()}),d.done(function(){var t;for(t in ft._removeData(e,"fxshow"),c)ft.style(e,t,c[t])}),c)r=O(p?f[n]:0,n,d),n in f||(f[n]=r.start,p&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}function V(t,e){var i,n,s,a,r;for(i in t)if(s=e[n=ft.camelCase(i)],a=t[i],ft.isArray(a)&&(s=a[1],a=t[i]=a[0]),i!==n&&(t[n]=a,delete t[i]),(r=ft.cssHooks[n])&&"expand"in r)for(i in a=r.expand(a),delete t[n],a)i in t||(t[i]=a[i],e[i]=s);else e[n]=s}function B(a,t,e){var i,r,n=0,s=B.prefilters.length,o=ft.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Ae||q(),e=Math.max(0,h.startTime+h.duration-t),i=1-(e/h.duration||0),n=0,s=h.tweens.length;n<s;n++)h.tweens[n].run(i);return o.notifyWith(a,[h,i,e]),i<1&&s?e:(o.resolveWith(a,[h]),!1)},h=o.promise({elem:a,props:ft.extend({},t),opts:ft.extend(!0,{specialEasing:{},easing:ft.easing._default},e),originalProperties:t,originalOptions:e,startTime:Ae||q(),duration:e.duration,tweens:[],createTween:function(t,e){var i=ft.Tween(a,h.opts,t,e,h.opts.specialEasing[t]||h.opts.easing);return h.tweens.push(i),i},stop:function(t){var e=0,i=t?h.tweens.length:0;if(r)return this;for(r=!0;e<i;e++)h.tweens[e].run(1);return t?(o.notifyWith(a,[h,1,0]),o.resolveWith(a,[h,t])):o.rejectWith(a,[h,t]),this}}),d=h.props;for(V(d,h.opts.specialEasing);n<s;n++)if(i=B.prefilters[n].call(h,a,d,h.opts))return ft.isFunction(i.stop)&&(ft._queueHooks(h.elem,h.opts.queue).stop=ft.proxy(i.stop,i)),i;return ft.map(d,O,h),ft.isFunction(h.opts.start)&&h.opts.start.call(a,h),ft.fx.timer(ft.extend(l,{elem:a,anim:h,queue:h.opts.queue})),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}function W(t){return ft.attr(t,"class")||""}function U(a){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,n=0,s=t.toLowerCase().match(Mt)||[];if(ft.isFunction(e))for(;i=s[n++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(a[i]=a[i]||[]).unshift(e)):(a[i]=a[i]||[]).push(e)}}function G(e,s,a,r){function o(t){var n;return l[t]=!0,ft.each(e[t]||[],function(t,e){var i=e(s,a,r);return"string"!=typeof i||h||l[i]?h?!(n=i):void 0:(s.dataTypes.unshift(i),o(i),!1)}),n}var l={},h=e===ri;return o(s.dataTypes[0])||!l["*"]&&o("*")}function Y(t,e){var i,n,s=ft.ajaxSettings.flatOptions||{};for(n in e)e[n]!==undefined&&((s[n]?t:i||(i={}))[n]=e[n]);return i&&ft.extend(!0,t,i),t}function Q(t,e,i){for(var n,s,a,r,o=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),s===undefined&&(s=t.mimeType||e.getResponseHeader("Content-Type"));if(s)for(r in o)if(o[r]&&o[r].test(s)){l.unshift(r);break}if(l[0]in i)a=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){a=r;break}n||(n=r)}a=a||n}if(a)return a!==l[0]&&l.unshift(a),i[a]}
1function Z(t,e,i,n){var s,a,r,o,l,h={},d=t.dataTypes.slice();if(d[1])for(r in t.converters)h[r.toLowerCase()]=t.converters[r];for(a=d.shift();a;)if(t.responseFields[a]&&(i[t.responseFields[a]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=d.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(r=h[l+" "+a]||h["* "+a]))for(s in h)if((o=s.split(" "))[1]===a&&(r=h[l+" "+o[0]]||h["* "+o[0]])){!0===r?r=h[s]:!0!==h[s]&&(a=o[0],d.unshift(o[1]));break}if(!0!==r)if(r&&t["throws"])e=r(e);else try{e=r(e)}catch(c){return{state:"parsererror",error:r?c:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}function X(t){return t.style&&t.style.display||ft.css(t,"display")}function J(t){if(!ft.contains(t.ownerDocument||st,t))return!0;for(;t&&1===t.nodeType;){if("none"===X(t)||"hidden"===t.type)return!0;t=t.parentNode}return!1}function K(i,t,n,s){var e;if(ft.isArray(t))ft.each(t,function(t,e){n||ci.test(i)?s(i,e):K(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,n,s)});else if(n||"object"!==ft.type(t))s(i,t);else for(e in t)K(i+"["+e+"]",t[e],n,s)}function tt(){try{return new C.XMLHttpRequest}catch(t){}}function et(){try{return new C.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function it(t){return ft.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var nt=[],st=C.document,at=nt.slice,rt=nt.concat,ot=nt.push,lt=nt.indexOf,ht={},dt=ht.toString,ct=ht.hasOwnProperty,ut={},pt="1.12.4",ft=function(t,e){return new ft.fn.init(t,e)},gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,mt=/^-ms-/,vt=/-([\da-z])/gi,_t=function(t,e){return e.toUpperCase()};ft.fn=ft.prototype={jquery:pt,constructor:ft,selector:"",length:0,toArray:function(){return at.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:at.call(this)},pushStack:function(t){var e=ft.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ft.each(this,t)},map:function(i){return this.pushStack(ft.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return this.pushStack(at.apply(this,arguments))},first:function(){return this.eq(0)},
2last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(0<=i&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:ot,sort:nt.sort,splice:nt.splice},ft.extend=ft.fn.extend=function(t){var e,i,n,s,a,r,o=t||{},l=1,h=arguments.length,d=!1;for("boolean"==typeof o&&(d=o,o=arguments[l]||{},l++),"object"==typeof o||ft.isFunction(o)||(o={}),l===h&&(o=this,l--);l<h;l++)if(null!=(a=arguments[l]))for(s in a)e=o[s],o!==(n=a[s])&&(d&&n&&(ft.isPlainObject(n)||(i=ft.isArray(n)))?(i?(i=!1,r=e&&ft.isArray(e)?e:[]):r=e&&ft.isPlainObject(e)?e:{},o[s]=ft.extend(d,r,n)):n!==undefined&&(o[s]=n));return o},ft.extend({expando:"jQuery"+(pt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ft.type(t)},isArray:Array.isArray||function(t){return"array"===ft.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!ft.isArray(t)&&0<=e-parseFloat(e)+1},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==ft.type(t)||t.nodeType||ft.isWindow(t))return!1;try{if(t.constructor&&!ct.call(t,"constructor")&&!ct.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}if(!ut.ownFirst)for(e in t)return ct.call(t,e);for(e in t);return e===undefined||ct.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?ht[dt.call(t)]||"object":typeof t},globalEval:function(t){t&&ft.trim(t)&&(C.execScript||function(t){C.eval.call(C,t)})(t)},camelCase:function(t){return t.replace(mt,"ms-").replace(vt,_t)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,n=0;if(o(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(gt,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(o(Object(t))?ft.merge(i,"string"==typeof t?[t]:t):ot.call(i,t)),i}
vendor: 4,524 bytes, line 2
2,inArray:function(t,e,i){var n;if(e){if(lt)return lt.call(e,t,i);for(n=e.length,i=i?i<0?Math.max(0,n+i):i:0;i<n;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;)t[s++]=e[n++];if(i!=i)for(;e[n]!==undefined;)t[s++]=e[n++];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,a=t.length,r=!i;s<a;s++)!e(t[s],s)!==r&&n.push(t[s]);return n},map:function(t,e,i){var n,s,a=0,r=[];if(o(t))for(n=t.length;a<n;a++)null!=(s=e(t[a],a,i))&&r.push(s);else for(a in t)null!=(s=e(t[a],a,i))&&r.push(s);return rt.apply([],r)},guid:1,proxy:function(t,e){var i,n,s;return"string"==typeof e&&(s=t[e],e=t,t=s),ft.isFunction(t)?(i=at.call(arguments,2),(n=function(){return t.apply(e||this,i.concat(at.call(arguments)))}).guid=t.guid=t.guid||ft.guid++,n):undefined},now:function(){return+new Date},support:ut}),"function"==typeof Symbol&&(ft.fn[Symbol.iterator]=nt[Symbol.iterator]),ft.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){ht["[object "+e+"]"]=e.toLowerCase()});var bt=function(i){function y(t,e,i,n){var s,a,r,o,l,h,d,c,u=e&&e.ownerDocument,p=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return i;if(!n&&((e?e.ownerDocument||e:$)!==F&&M(e),e=e||F,P)){if(11!==p&&(h=vt.exec(t)))if(s=h[1]){if(9===p){if(!(r=e.getElementById(s)))return i;if(r.id===s)return i.push(r),i}else if(u&&(r=u.getElementById(s))&&N(e,r)&&r.id===s)return i.push(r),i}else{if(h[2])return J.apply(i,e.getElementsByTagName(t)),i;if((s=h[3])&&v.getElementsByClassName&&e.getElementsByClassName)return J.apply(i,e.getElementsByClassName(s)),i}if(v.qsa&&!W[t+" "]&&(!R||!R.test(t))){if(1!==p)u=e,c=t;else if("object"!==e.nodeName.toLowerCase()){for((o=e.getAttribute("id"))?o=o.replace(bt,"\\$&"):e.setAttribute("id",o=q),a=(d=k(t)).length,l=ut.test(o)?"#"+o:"[id='"+o+"']";a--;)d[a]=l+" "+m(d[a]);c=d.join(","),u=_t.test(t)&&g(e.parentNode)||e}if(c)try{return J.apply(i,u.querySelectorAll(c)),i}catch(f){}finally{o===q&&e.removeAttribute("id")}}}return D(t.replace(ot,"$1"),e,i,n)}function t(){function i(t,e){return n.push(t+" ")>x.cacheLength&&delete i[n.shift()],i[t+" "]=e}var n=[];return i}function l(t){return t[q]=!0,t}function s(t){var e=F.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function e(t,e){for(var i=t.split("|"),n=i.length;n--;)x.attrHandle[i[n]]=e}function h(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||G)-(~t.sourceIndex||G);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function n(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function a(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}function r(r){return l(function(a){return a=+a,l(function(t,e){for(var i,n=r([],t.length,a),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function g(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function o(){}function m(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function c(o,t,e){var l=t.dir,h=e&&"parentNode"===l,d=z++;return t.first?function(t,e,i){for(;t=t[l];)if(1===t.nodeType||h)return o(t,e,i)}:function(t,e,i){var n,s,a,r=[O,d];if(i){for(;t=t[l];)if((1===t.nodeType||h)&&o(t,e,i))return!0}else for(;t=t[l];)if(1===t.nodeType||h){if((n=(s=(a=t[q]||(t[q]={}))[t.uniqueID]||(a[t.uniqueID]={}))[l])&&n[0]===O&&n[1]===d)return r[2]=n[2];if((s[l]=r)[2]=o(t,e,i))return!0}}}function u(s){return 1<s.length?function(t,e,i){for(var n=s.length;n--;)if(!s[n](t,e,i))return!1;return!0}:s[0]}function _(t,e,i){for(var n=0,s=e.length;n<s;n++)y(t,e[n],i);return i}function w(t,e,i,n,s){for(var a,r=[],o=0,l=t.length,h=null!=e;o<l;o++)(a=t[o])&&(i&&!i(a,n,s)||(r.push(a),h&&e.push(o)));return r}function b(p,f,g,m,v,t){return m&&!m[q]&&(m=b(m)),v&&!v[q]&&(v=b(v,t)),l(function(t,e,i,n){var s,a,r,o=[],l=[],h=e.length,d=t||_(f||"*",i.nodeType?[i]:i,[]),c=!p||!t&&f?d:w(d,o,p,i,n),u=g?v||(t?p:h||m)?[]:e:c;if(g&&g(c,u,i,n),m)for(s=w(u,l),m(s,[],i,n),a=s.length;a--;)(r=s[a])&&(u[l[a]]=!(c[l[a]]=r));if(t){if(v||p){if(v){for(s=[],a=u.length;a--;)(r=u[a])&&s.push(c[a]=r);v(null,u=[],s,n)}for(a=u.length;a--;)(r=u[a])&&-1<(s=v?tt(t,r):o[a])&&(t[s]=!(e[s]=r))}}else u=w(u===e?u.splice(h,u.length):u),v?v(null,e,u,n):J.apply(e,u)})}function p(t){for(var s,e,i,n=t.length,a=x.relative[t[0].type],r=a||x.relative[" "],o=a?1:0,l=c(function(t){return t===s},r,!0),h=c(function(t){return-1<tt(s,t)}
vendor: 5,331 bytes, line 2
2,r,!0),d=[function(t,e,i){var n=!a&&(i||e!==A)||((s=e).nodeType?l(t,e,i):h(t,e,i));return s=null,n}];o<n;o++)if(e=x.relative[t[o].type])d=[c(u(d),e)];else{if((e=x.filter[t[o].type].apply(null,t[o].matches))[q]){for(i=++o;i<n&&!x.relative[t[i].type];i++);return b(1<o&&u(d),1<o&&m(t.slice(0,o-1).concat({value:" "===t[o-2].type?"*":""})).replace(ot,"$1"),e,o<i&&p(t.slice(o,i)),i<n&&p(t=t.slice(i)),i<n&&m(t))}d.push(e)}return u(d)}function d(m,v){var _=0<v.length,b=0<m.length,t=function(t,e,i,n,s){var a,r,o,l=0,h="0",d=t&&[],c=[],u=A,p=t||b&&x.find.TAG("*",s),f=O+=null==u?1:Math.random()||.1,g=p.length;for(s&&(A=e===F||e||s);h!==g&&null!=(a=p[h]);h++){if(b&&a){for(r=0,e||a.ownerDocument===F||(M(a),i=!P);o=m[r++];)if(o(a,e||F,i)){n.push(a);break}s&&(O=f)}_&&((a=!o&&a)&&l--,t&&d.push(a))}if(l+=h,_&&h!==l){for(r=0;o=v[r++];)o(d,c,e,i);if(t){if(0<l)for(;h--;)d[h]||c[h]||(c[h]=Z.call(n));c=w(c)}J.apply(n,c),s&&!t&&0<c.length&&1<l+v.length&&y.uniqueSort(n)}return s&&(O=f,A=u),d};return _?l(t):t}var f,v,x,C,S,k,T,D,A,I,E,M,F,j,P,R,H,L,N,q="sizzle"+1*new Date,$=i.document,O=0,z=0,V=t(),B=t(),W=t(),U=function(t,e){return t===e&&(E=!0),0},G=1<<31,Y={}.hasOwnProperty,Q=[],Z=Q.pop,X=Q.push,J=Q.push,K=Q.slice,tt=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+it+"*\\]",at=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",rt=new RegExp(it+"+","g"),ot=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),lt=new RegExp("^"+it+"*,"+it+"*"),ht=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),dt=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),ct=new RegExp(at),ut=new RegExp("^"+nt+"$"),pt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},ft=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_t=/[+~]/,bt=/'|\\/g,yt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),wt=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},xt=function(){M()};try{J.apply(Q=K.call($.childNodes),$.childNodes),Q[$.childNodes.length].nodeType}catch(Ct){J={apply:Q.length?function(t,e){X.apply(t,K.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}for(f in v=y.support={},S=y.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},M=y.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:$;return n!==F&&9===n.nodeType&&n.documentElement&&(j=(F=n).documentElement,P=!S(F),(i=F.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",xt,!1):i.attachEvent&&i.attachEvent("onunload",xt)),v.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),v.getElementsByTagName=s(function(t){return t.appendChild(F.createComment("")),!t.getElementsByTagName("*").length}),v.getElementsByClassName=mt.test(F.getElementsByClassName),v.getById=s(function(t){return j.appendChild(t).id=q,!F.getElementsByName||!F.getElementsByName(q).length}),v.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&P){var i=e.getElementById(t);return i?[i]:[]}},x.filter.ID=function(t){var e=t.replace(yt,wt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var i=t.replace(yt,wt);return function(t){var e="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===i}}),x.find.TAG=v.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):v.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,a=e.getElementsByTagName(t);if("*"!==t)return a;for(;i=a[s++];)1===i.nodeType&&n.push(i);return n},x.find.CLASS=v.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&P)return e.getElementsByClassName(t)},H=[],R=[],(v.qsa=mt.test(F.querySelectorAll))&&(s(function(t){j.appendChild(t).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||R.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+q+"-]").length||R.push("~="),t.querySelectorAll(":checked").length||R.push(":checked"),t.querySelectorAll("a#"+q+"+*").length||R.push(".#.+[+~]")}),s(function(t){var e=F.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&R.push("name"+it
vendor: 4,277 bytes, line 2
2+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||R.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),R.push(",.*:")})),(v.matchesSelector=mt.test(L=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&s(function(t){v.disconnectedMatch=L.call(t,"div"),L.call(t,"[s!='']:x"),H.push("!=",at)}),R=R.length&&new RegExp(R.join("|")),H=H.length&&new RegExp(H.join("|")),e=mt.test(j.compareDocumentPosition),N=e||mt.test(j.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=e?function(t,e){if(t===e)return E=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!v.sortDetached&&e.compareDocumentPosition(t)===i?t===F||t.ownerDocument===$&&N($,t)?-1:e===F||e.ownerDocument===$&&N($,e)?1:I?tt(I,t)-tt(I,e):0:4&i?-1:1)}:function(t,e){if(t===e)return E=!0,0;var i,n=0,s=t.parentNode,a=e.parentNode,r=[t],o=[e];if(!s||!a)return t===F?-1:e===F?1:s?-1:a?1:I?tt(I,t)-tt(I,e):0;if(s===a)return h(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)o.unshift(i);for(;r[n]===o[n];)n++;return n?h(r[n],o[n]):r[n]===$?-1:o[n]===$?1:0}),F},y.matches=function(t,e){return y(t,null,null,e)},y.matchesSelector=function(t,e){if((t.ownerDocument||t)!==F&&M(t),e=e.replace(dt,"='$1']"),v.matchesSelector&&P&&!W[e+" "]&&(!H||!H.test(e))&&(!R||!R.test(e)))try{var i=L.call(t,e);if(i||v.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(Ct){}return 0<y(e,F,null,[t]).length},y.contains=function(t,e){return(t.ownerDocument||t)!==F&&M(t),N(t,e)},y.attr=function(t,e){(t.ownerDocument||t)!==F&&M(t);var i=x.attrHandle[e.toLowerCase()],n=i&&Y.call(x.attrHandle,e.toLowerCase())?i(t,e,!P):undefined;return n!==undefined?n:v.attributes||!P?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},y.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},y.uniqueSort=function(t){var e,i=[],n=0,s=0;if(E=!v.detectDuplicates,I=!v.sortStable&&t.slice(0),t.sort(U),E){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return I=null,t},C=y.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=C(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=C(e);return i},(x=y.selectors={cacheLength:50,createPseudo:l,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(yt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(yt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||y.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&y.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ct.test(i)&&(e=k(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(yt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=V[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&V(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(t){var e=y.attr(t,i);return null==e?"!="===n:!n||(e+="","="===n?e===s:"!="===n?e!==s:"^="===n?s&&0===e.indexOf(s):"*="===n?s&&-1<e.indexOf(s):"$="===n?s&&e.slice(-s.length)===s:"~="===n?-1<(" "+e.replace(rt," ")+" ").indexOf(s):"|="===n&&(e===s||e.slice(0,s.length+1)===s+"-"))}},CHILD:function(f,t,e,g,m){var v="nth"!==f.slice(0,3),_="last"!==f.slice(-4),b="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}
vendor: 1,214 bytes, line 2
2:function(t,e,i){var n,s,a,r,o,l,h=v!==_?"nextSibling":"previousSibling",d=t.parentNode,c=b&&t.nodeName.toLowerCase(),u=!i&&!b,p=!1;if(d){if(v){for(;h;){for(r=t;r=r[h];)if(b?r.nodeName.toLowerCase()===c:1===r.nodeType)return!1;l=h="only"===f&&!l&&"nextSibling"}return!0}if(l=[_?d.firstChild:d.lastChild],_&&u){for(p=(o=(n=(s=(a=(r=d)[q]||(r[q]={}))[r.uniqueID]||(a[r.uniqueID]={}))[f]||[])[0]===O&&n[1])&&n[2],r=o&&d.childNodes[o];r=++o&&r&&r[h]||(p=o=0)||l.pop();)if(1===r.nodeType&&++p&&r===t){s[f]=[O,o,p];break}}else if(u&&(p=o=(n=(s=(a=(r=t)[q]||(r[q]={}))[r.uniqueID]||(a[r.uniqueID]={}))[f]||[])[0]===O&&n[1]),!1===p)for(;(r=++o&&r&&r[h]||(p=o=0)||l.pop())&&((b?r.nodeName.toLowerCase()!==c:1!==r.nodeType)||!++p||(u&&((s=(a=r[q]||(r[q]={}))[r.uniqueID]||(a[r.uniqueID]={}))[f]=[O,p]),r!==t)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(t,a){var e,r=x.pseudos[t]||x.setFilters[t.toLowerCase()]||y.error("unsupported pseudo: "+t);return r[q]?r(a):1<r.length?(e=[t,t,"",a],x.setFilters.hasOwnProperty(t.toLowerCase())?l(function(t,e){for(var i,n=r(t,a),s=n.length;s--;)t[i=tt(t,n[s])]=!(e[i]=n[s])}):function(t){return r(t,0,e)}):r}},pseudos:{not:l(function(t){var n=[],s=[],o=T(t.replace(ot,"$1"));
vendor: 4,135 bytes, line 2
2return o[q]?l(function(t,e,i,n){for(var s,a=o(t,null,n,[]),r=t.length;r--;)(s=a[r])&&(t[r]=!(e[r]=s))}):function(t,e,i){return n[0]=t,o(n,null,i,s),n[0]=null,!s.pop()}}),has:l(function(e){return function(t){return 0<y(e,t).length}}),contains:l(function(e){return e=e.replace(yt,wt),function(t){return-1<(t.textContent||t.innerText||C(t)).indexOf(e)}}),lang:l(function(i){return ut.test(i||"")||y.error("unsupported lang: "+i),i=i.replace(yt,wt).toLowerCase(),function(t){var e;do{if(e=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===j},focus:function(t){return t===F.activeElement&&(!F.hasFocus||F.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return ft.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:r(function(){return[0]}),last:r(function(t,e){return[e-1]}),eq:r(function(t,e,i){return[i<0?i+e:i]}),even:r(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:r(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:r(function(t,e,i){for(var n=i<0?i+e:i;0<=--n;)t.push(n);return t}),gt:r(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[f]=n(f);for(f in{submit:!0,reset:!0})x.pseudos[f]=a(f);return o.prototype=x.filters=x.pseudos,x.setFilters=new o,k=y.tokenize=function(t,e){var i,n,s,a,r,o,l,h=B[t+" "];if(h)return e?0:h.slice(0);for(r=t,o=[],l=x.preFilter;r;){for(a in i&&!(n=lt.exec(r))||(n&&(r=r.slice(n[0].length)||r),o.push(s=[])),i=!1,(n=ht.exec(r))&&(i=n.shift(),s.push({value:i,type:n[0].replace(ot," ")}),r=r.slice(i.length)),x.filter)!(n=pt[a].exec(r))||l[a]&&!(n=l[a](n))||(i=n.shift(),s.push({value:i,type:a,matches:n}),r=r.slice(i.length));if(!i)break}return e?r.length:r?y.error(t):B(t,o).slice(0)},T=y.compile=function(t,e){var i,n=[],s=[],a=W[t+" "];if(!a){for(e||(e=k(t)),i=e.length;i--;)(a=p(e[i]))[q]?n.push(a):s.push(a);(a=W(t,d(s,n))).selector=t}return a},D=y.select=function(t,e,i,n){var s,a,r,o,l,h="function"==typeof t&&t,d=!n&&k(t=h.selector||t);if(i=i||[],1===d.length){if(2<(a=d[0]=d[0].slice(0)).length&&"ID"===(r=a[0]).type&&v.getById&&9===e.nodeType&&P&&x.relative[a[1].type]){if(!(e=(x.find.ID(r.matches[0].replace(yt,wt),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(s=pt.needsContext.test(t)?0:a.length;s--&&(r=a[s],!x.relative[o=r.type]);)if((l=x.find[o])&&(n=l(r.matches[0].replace(yt,wt),_t.test(a[0].type)&&g(e.parentNode)||e))){if(a.splice(s,1),!(t=n.length&&m(a)))return J.apply(i,n),i;break}}return(h||T(t,d))(n,e,!P,i,!e||_t.test(t)&&g(e.parentNode)||e),i},v.sortStable=q.split("").sort(U).join("")===q,v.detectDuplicates=!!E,M(),v.sortDetached=s(function(t){return 1&t.compareDocumentPosition(F.createElement("div"))}),s(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||e("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),v.attributes&&s(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||e("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")}
2)||e(et,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),y}(C);ft.find=bt,ft.expr=bt.selectors,ft.expr[":"]=ft.expr.pseudos,ft.uniqueSort=ft.unique=bt.uniqueSort,ft.text=bt.getText,ft.isXMLDoc=bt.isXML,ft.contains=bt.contains;var yt=function(t,e,i){for(var n=[],s=i!==undefined;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&ft(t).is(i))break;n.push(t)}return n},wt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},xt=ft.expr.match.needsContext,Ct=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,St=/^.[^:#\[\.,]*$/;ft.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?ft.find.matchesSelector(n,t)?[n]:[]:ft.find.matches(t,ft.grep(e,function(t){return 1===t.nodeType}))},ft.fn.extend({find:function(t){var e,i=[],n=this,s=n.length;if("string"!=typeof t)return this.pushStack(ft(t).filter(function(){for(e=0;e<s;e++)if(ft.contains(n[e],this))return!0}));for(e=0;e<s;e++)ft.find(t,n[e],i);return(i=this.pushStack(1<s?ft.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(e(this,t||[],!1))},not:function(t){return this.pushStack(e(this,t||[],!0))},is:function(t){return!!e(this,"string"==typeof t&&xt.test(t)?ft(t):t||[],!1).length}});var kt,Tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ft.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||kt,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):ft.isFunction(t)?"undefined"!=typeof i.ready?i.ready(t):t(ft):(t.selector!==undefined&&(this.selector=t.selector,this.context=t.context),ft.makeArray(t,this));if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:Tt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof ft?e[0]:e,ft.merge(this,ft.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:st,!0)),Ct.test(n[1])&&ft.isPlainObject(e))for(n in e)ft.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((s=st.getElementById(n[2]))&&s.parentNode){if(s.id!==n[2])return kt.find(t);this.length=1,this[0]=s}return this.context=st,this.selector=t,this}).prototype=ft.fn,kt=ft(st);var Dt=/^(?:parents|prev(?:Until|All))/,At={children:!0,contents:!0,next:!0,prev:!0};ft.fn.extend({has:function(t){var e,i=ft(t,this),n=i.length;return this.filter(function(){for(e=0;e<n;e++)if(ft.contains(this,i[e]))return!0})},closest:function(t,e){for(var i,n=0,s=this.length,a=[],r=xt.test(t)||"string"!=typeof t?ft(t,e||this.context):0;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&ft.find.matchesSelector(i,t))){a.push(i);break}return this.pushStack(1<a.length?ft.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?ft.inArray(this[0],ft(t)):ft.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ft.uniqueSort(ft.merge(this.get(),ft(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ft.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return yt(t,"parentNode")},parentsUntil:function(t,e,i){return yt(t,"parentNode",i)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return yt(t,"nextSibling")},prevAll:function(t){return yt(t,"previousSibling")},nextUntil:function(t,e,i){return yt(t,"nextSibling",i)},prevUntil:function(t,e,i){return yt(t,"previousSibling",i)},siblings:function(t){return wt((t.parentNode||{}).firstChild,t)},children:function(t){return wt(t.firstChild)},contents:function(t){return ft.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ft.merge([],t.childNodes)}},function(n,s){ft.fn[n]=function(t,e){var i=ft.map(this,s,t);return"Until"!==n.slice(-5)&&(e=t),e&&"string"==typeof e&&(i=ft.filter(e,i)),1<this.length&&(At[n]||(i=ft.uniqueSort(i)),Dt.test(n)&&(i=i.reverse())),this.pushStack(i)}});var It,Et,Mt=/\S+/g;for(Et in ft.Callbacks=function(n){n="string"==typeof n?d(n):ft.extend({},n);var s,t,e,i,a=[],r=[],o=-1,l=function(){for(i=n.once,e=s=!0;r.length;o=-1)for(t=r.shift();++o<a.length;)!1===a[o].apply(t[0],t[1])&&n.stopOnFalse&&(o=a.length,t=!1);n.memory||(t=!1),s=!1,i&&(a=t?[]:"")},h={add:function(){return a&&(t&&!s&&(o=a.length-1,r.push(t)),function i(t){ft.each(t,function(t,e){ft.isFunction(e)?n.unique&&h.has(e)||a.push(e):e&&e.length&&"string"!==ft.type(e)&&i(e)})}(arguments),t&&!s&&l()),this},remove:function(){return ft.each(arguments,function(t,e){for(var i;-1<(i=ft.inArray(e,a,i));)a.splice(i,1),i<=o&&o--}),this},has:function(t){return t?-1<ft.inArray(t,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return i=r=[],a=t="",this},disabled:function(){return!a},lock:function(){return i=!0,t||h.disable(),this},locked:function(){return!!i}
2,fireWith:function(t,e){return i||(e=[t,(e=e||[]).slice?e.slice():e],r.push(e),s||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!e}};return h},ft.extend({Deferred:function(t){var a=[["resolve","done",ft.Callbacks("once memory"),"resolved"],["reject","fail",ft.Callbacks("once memory"),"rejected"],["notify","progress",ft.Callbacks("memory")]],s="pending",r={state:function(){return s},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var s=arguments;return ft.Deferred(function(n){ft.each(a,function(t,e){var i=ft.isFunction(s[t])&&s[t];o[e[1]](function(){var t=i&&i.apply(this,arguments);t&&ft.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[e[0]+"With"](this===r?n.promise():this,i?[t]:arguments)})}),s=null}).promise()},promise:function(t){return null!=t?ft.extend(t,r):r}},o={};return r.pipe=r.then,ft.each(a,function(t,e){var i=e[2],n=e[3];r[e[1]]=i.add,n&&i.add(function(){s=n},a[1^t][2].disable,a[2][2].lock),o[e[0]]=function(){return o[e[0]+"With"](this===o?r:this,arguments),this},o[e[0]+"With"]=i.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var s,e,i,n=0,a=at.call(arguments),r=a.length,o=1!==r||t&&ft.isFunction(t.promise)?r:0,l=1===o?t:ft.Deferred(),h=function(e,i,n){return function(t){i[e]=this,n[e]=1<arguments.length?at.call(arguments):t,n===s?l.notifyWith(i,n):--o||l.resolveWith(i,n)}};if(1<r)for(s=new Array(r),e=new Array(r),i=new Array(r);n<r;n++)a[n]&&ft.isFunction(a[n].promise)?a[n].promise().progress(h(n,e,s)).done(h(n,i,a)).fail(l.reject):--o;return o||l.resolveWith(i,a),l.promise()}}),ft.fn.ready=function(t){return ft.ready.promise().done(t),this},ft.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ft.readyWait++:ft.ready(!0)},ready:function(t){(!0===t?--ft.readyWait:ft.isReady)||(ft.isReady=!0)!==t&&0<--ft.readyWait||(It.resolveWith(st,[ft]),ft.fn.triggerHandler&&(ft(st).triggerHandler("ready"),ft(st).off("ready")))}}),ft.ready.promise=function(t){if(!It)if(It=ft.Deferred(),"complete"===st.readyState||"loading"!==st.readyState&&!st.documentElement.doScroll)C.setTimeout(ft.ready);else if(st.addEventListener)st.addEventListener("DOMContentLoaded",a),C.addEventListener("load",a);else{st.attachEvent("onreadystatechange",a),C.attachEvent("onload",a);var e=!1;try{e=null==C.frameElement&&st.documentElement}catch(i){}e&&e.doScroll&&function n(){if(!ft.isReady){try{e.doScroll("left")}catch(i){return C.setTimeout(n,50)}s(),ft.ready()}}()}return It.promise(t)},ft.ready.promise(),ft(ut))break;ut.ownFirst="0"===Et,ut.inlineBlockNeedsLayout=!1,ft(function(){var t,e,i,n;(i=st.getElementsByTagName("body")[0])&&i.style&&(e=st.createElement("div"),(n=st.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ut.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(i.style.zoom=1)),i.removeChild(n))}),function(){var t=st.createElement("div");ut.deleteExpando=!0;try{delete t.test}catch(e){ut.deleteExpando=!1}t=null}();var Ft,jt=function(t){var e=ft.noData[(t.nodeName+" ").toLowerCase()],i=+t.nodeType||1;return(1===i||9===i)&&(!e||!0!==e&&t.getAttribute("classid")===e)},Pt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Rt=/([A-Z])/g;ft.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?ft.cache[t[ft.expando]]:t[ft.expando])&&!h(t)},data:function(t,e,i){return n(t,e,i)},removeData:function(t,e){return r(t,e)},_data:function(t,e,i){return n(t,e,i,!0)},_removeData:function(t,e){return r(t,e,!0)}}),ft.fn.extend({data:function(t,e){var i,n,s,a=this[0],r=a&&a.attributes;if(t!==undefined)return"object"==typeof t?this.each(function(){ft.data(this,t)}):1<arguments.length?this.each(function(){ft.data(this,t,e)}):a?l(a,t,ft.data(a,t)):undefined;if(this.length&&(s=ft.data(a),1===a.nodeType&&!ft._data(a,"parsedAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&l(a,n=ft.camelCase(n.slice(5)),s[n]);ft._data(a,"parsedAttrs",!0)}return s},removeData:function(t){return this.each(function(){ft.removeData(this,t)})}}
2),ft.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=ft._data(t,e),i&&(!n||ft.isArray(i)?n=ft._data(t,e,ft.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=ft.queue(t,e),n=i.length,s=i.shift(),a=ft._queueHooks(t,e),r=function(){ft.dequeue(t,e)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete a.stop,s.call(t,r,a)),!n&&a&&a.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return ft._data(t,i)||ft._data(t,i,{empty:ft.Callbacks("once memory").add(function(){ft._removeData(t,e+"queue"),ft._removeData(t,i)})})}}),ft.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?ft.queue(this[0],e):i===undefined?this:this.each(function(){var t=ft.queue(this,e,i);ft._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&ft.dequeue(this,e)})},dequeue:function(t){return this.each(function(){ft.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=ft.Deferred(),a=this,r=this.length,o=function(){--n||s.resolveWith(a,[a])};for("string"!=typeof t&&(e=t,t=undefined),t=t||"fx";r--;)(i=ft._data(a[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(o));return o(),s.promise(e)}}),ut.shrinkWrapBlocks=function(){return null!=Ft?Ft:(Ft=!1,(e=st.getElementsByTagName("body")[0])&&e.style?(t=st.createElement("div"),(i=st.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(st.createElement("div")).style.width="5px",Ft=3!==t.offsetWidth),e.removeChild(i),Ft):void 0);var t,e,i};var Ht,Lt,Nt,qt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,$t=new RegExp(
3"^(?:([+-])=|)("+qt+")([a-z%]*)$","i"),Ot=["Top","Right","Bottom","Left"],zt=function(t,e){return t=e||t,"none"===ft.css(t,"display")||!ft.contains(t.ownerDocument,t)},Vt=function(t,e,i,n,s,a,r){var o=0,l=t.length,h=null==i;if("object"===ft.type(i))for(o in s=!0,i)Vt(t,e,o,i[o],!0,a,r);else if(n!==undefined&&(s=!0,ft.isFunction(n)||(r=!0),h&&(r?(e.call(t,n),e=null):(h=e,e=function(t,e,i){return h.call(ft(t),i)})),e))for(;o<l;o++)e(t[o],i,r?n:n.call(t[o],o,e(t[o],i)));return s?t:h?e.call(t):l?e(t[0],i):a},Bt=/^(?:checkbox|radio)$/i,Wt=/<([\w:-]+)/,Ut=/^$|\/(?:java|ecma)script/i,Gt=/^\s+/,Yt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";Ht=st.createElement("div"),Lt=st.createDocumentFragment(),Nt=st.createElement("input"),Ht.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ut.leadingWhitespace=3===Ht.firstChild.nodeType,ut.tbody=!Ht.getElementsByTagName("tbody").length,ut.htmlSerialize=!!Ht.getElementsByTagName("link").length,ut.html5Clone="<:nav></:nav>"!==st.createElement("nav").cloneNode(!0).outerHTML,Nt.type="checkbox",Nt.checked=!0,Lt.appendChild(Nt),ut.appendChecked=Nt.checked,Ht.innerHTML="<textarea>x</textarea>",ut.noCloneChecked=!!Ht.cloneNode(!0).lastChild.defaultValue,Lt.appendChild(Ht),(Nt=st.createElement("input")).setAttribute("type","radio"),Nt.setAttribute("checked","checked"),Nt.setAttribute("name","t"),Ht.appendChild(Nt),ut.checkClone=Ht.cloneNode(!0).cloneNode(!0).lastChild.checked,ut.noCloneEvent=!!Ht.addEventListener,Ht[ft.expando]=1,ut.attributes=!Ht.getAttribute(ft.expando);var Qt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ut.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Qt.optgroup=Qt.option,Qt.tbody=Qt.tfoot=Qt.colgroup=Qt.caption=Qt.thead,Qt.th=Qt.td;var Zt=/<|&#?\w+;/,Xt=/<tbody/i;!function(){var t,e,i=st.createElement("div");
3for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(ut[t]=e in C)||(i.setAttribute(e,"t"),ut[t]=!1===i.attributes[e].expando);i=null}();var Jt=/^(?:input|select|textarea)$/i,Kt=/^key/,te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ee=/^(?:focusinfocus|focusoutblur)$/,ie=/^([^.]*)(?:\.(.+)|)/;ft.event={global:{},add:function(t,e,i,n,s){var a,r,o,l,h,d,c,u,p,f,g,m=ft._data(t);if(m){for(i.handler&&(i=(l=i).handler,s=l.selector),i.guid||(i.guid=ft.guid++),(r=m.events)||(r=m.events={}),(d=m.handle)||((d=m.handle=function(t){return void 0===ft||t&&ft.event.triggered===t.type?undefined:ft.event.dispatch.apply(d.elem,arguments)}).elem=t),o=(e=(e||"").match(Mt)||[""]).length;o--;)p=g=(a=ie.exec(e[o])||[])[1],f=(a[2]||"").split(".").sort(),p&&(h=ft.event.special[p]||{},p=(s?h.delegateType:h.bindType)||p,h=ft.event.special[p]||{},c=ft.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&ft.expr.match.needsContext.test(s),namespace:f.join(".")},l),(u=r[p])||((u=r[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,n,f,d)||(t.addEventListener?t.addEventListener(p,d,!1):t.attachEvent&&t.attachEvent("on"+p,d))),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),s?u.splice(u.delegateCount++,0,c):u.push(c),ft.event.global[p]=!0);t=null}},remove:function(t,e,i,n,s){var a,r,o,l,h,d,c,u,p,f,g,m=ft.hasData(t)&&ft._data(t);if(m&&(d=m.events)){for(h=(e=(e||"").match(Mt)||[""]).length;h--;)if(p=g=(o=ie.exec(e[h])||[])[1],f=(o[2]||"").split(".").sort(),p){for(c=ft.event.special[p]||{},u=d[p=(n?c.delegateType:c.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=a=u.length;a--;)r=u[a],!s&&g!==r.origType||i&&i.guid!==r.guid||o&&!o.test(r.namespace)||n&&n!==r.selector&&("**"!==n||!r.selector)||(u.splice(a,1),r.selector&&u.delegateCount--,c.remove&&c.remove.call(t,r));l&&!u.length&&(c.teardown&&!1!==c.teardown.call(t,f,m.handle)||ft.removeEvent(t,p,m.handle),delete d[p])}else for(p in d)ft.event.remove(t,p+e[h],i,n,!0);ft.isEmptyObject(d)&&(delete m.handle,ft._removeData(t,"events"))}},trigger:function(t,e,i,n){var s,a,r,o,l,h,d,c=[i||st],u=ct.call(t,"type")?t.type:t,p=ct.call(t,"namespace")?t.namespace.split("."):[];if(r=h=i=i||st,3!==i.nodeType&&8!==i.nodeType&&!ee.test(u+ft.event.triggered)&&(-1<u.indexOf(".")&&(u=(p=u.split(".")).shift(),p.sort()),a=u.indexOf(":")<0&&"on"+u,(t=t[ft.expando]?t:new ft.Event(u,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=i),e=null==e?[t]:ft.makeArray(e,[t]),l=ft.event.special[u]||{},n||!l.trigger||!1!==l.trigger.apply(i,e))){if(!n&&!l.noBubble&&!ft.isWindow(i)){for(o=l.delegateType||u,ee.test(o+u)||(r=r.parentNode);r;r=r.parentNode)c.push(r),h=r;h===(i.ownerDocument||st)&&c.push(h.defaultView||h.parentWindow||C)}for(d=0;(r=c[d++])&&!t.isPropagationStopped();)t.type=1<d?o:l.bindType||u,(s=(ft._data(r,"events")||{})[t.type]&&ft._data(r,"handle"))&&s.apply(r,e),(s=a&&r[a])&&s.apply&&jt(r)&&(t.result=s.apply(r,e),!1===t.result&&t.preventDefault());if(t.type=u,!n&&!t.isDefaultPrevented()&&(!l._default||!1===l._default.apply(c.pop(),e))&&jt(i)&&a&&i[u]&&!ft.isWindow(i)){(h=i[a])&&(i[a]=null),ft.event.triggered=u;try{i[u]()}catch(f){}ft.event.triggered=undefined,h&&(i[a]=h)}return t.result}},dispatch:function(t){t=ft.event.fix(t);var e,i,n,s,a,r=[],o=at.call(arguments),l=(ft._data(this,"events")||{})[t.type]||[],h=ft.event.special[t.type]||{};if((o[0]=t).delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,t)){for(r=ft.event.handlers.call(this,t,l),e=0;(s=r[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(a=s.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(a.namespace)||(t.handleObj=a,t.data=a.data,(n=((ft.event.special[a.origType]||{}).handle||a.handler).apply(s.elem,o))!==undefined&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,a,r=[],o=e.delegateCount,l=t.target;if(o&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(n=[],i=0;i<o;i++)n[s=(a=e[i]).selector+" "]===undefined&&(n[s]=a.needsContext?-1<ft(s,this).index(l):ft.find(s,this,null,[l]).length),n[s]&&n.push(a);n.length&&r.push({elem:l,handlers:n})}return o<e.length&&r.push({elem:this,handlers:e.slice(o)}),r},fix:function(t){if(t[ft.expando])return t;var e,i,n,s=t.type,a=t,r=this.fixHooks[s];for(r||(this.fixHooks[s]=r=te.test(s)?this.mouseHooks:Kt.test(s)?this.keyHooks:{}),n=r.props?this.props.concat(r.props):this.props,t=new ft.Event(a),e=n.length;e--;)t[i=n[e]]=a[i];return t.target||(t.target=a.srcElement||st),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,r.filter?r.filter(t,a):t},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{}
3,keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,s,a=e.button,r=e.fromElement;return null==t.pageX&&null!=e.clientX&&(s=(n=t.target.ownerDocument||st).documentElement,i=n.body,t.pageX=e.clientX+(s&&s.scrollLeft||i&&i.scrollLeft||0)-(s&&s.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(s&&s.scrollTop||i&&i.scrollTop||0)-(s&&s.clientTop||i&&i.clientTop||0)),!t.relatedTarget&&r&&(t.relatedTarget=r===t.target?e.toElement:r),t.which||a===undefined||(t.which=1&a?1:2&a?3:4&a?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==f()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===f()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(ft.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return ft.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==undefined&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i){var n=ft.extend(new ft.Event,i,{type:t,isSimulated:!0});ft.event.trigger(n,null,e),n.isDefaultPrevented()&&i.preventDefault()}},ft.removeEvent=st.removeEventListener?function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)}:function(t,e,i){var n="on"+e;t.detachEvent&&("undefined"==typeof t[n]&&(t[n]=null),t.detachEvent(n,i))},ft.Event=function(t,e){if(!(this instanceof ft.Event))return new ft.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.defaultPrevented===undefined&&!1===t.returnValue?u:p):this.type=t,e&&ft.extend(this,e),this.timeStamp=t&&t.timeStamp||ft.now(),this[ft.expando]=!0},ft.Event.prototype={constructor:ft.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=u,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=u,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=u,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}}
vendor: 5,688 bytes, line 3
3,ft.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,a){ft.event.special[t]={delegateType:a,bindType:a,handle:function(t){var e,i=this,n=t.relatedTarget,s=t.handleObj;return n&&(n===i||ft.contains(i,n))||(t.type=s.origType,e=s.handler.apply(this,arguments),t.type=a),e}}}),ut.submit||(ft.event.special.submit={setup:function(){if(ft.nodeName(this,"form"))return!1;ft.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,i=ft.nodeName(e,"input")||ft.nodeName(e,"button")?ft.prop(e,"form"):undefined;i&&!ft._data(i,"submit")&&(ft.event.add(i,"submit._submit",function(t){t._submitBubble=!0}),ft._data(i,"submit",!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&ft.event.simulate("submit",this.parentNode,t))},teardown:function(){if(ft.nodeName(this,"form"))return!1;ft.event.remove(this,"._submit")}}),ut.change||(ft.event.special.change={setup:function(){if(Jt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(ft.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._justChanged=!0)}),ft.event.add(this,"click._change",function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),ft.event.simulate("change",this,t)})),!1;ft.event.add(this,"beforeactivate._change",function(t){var e=t.target;Jt.test(e.nodeName)&&!ft._data(e,"change")&&(ft.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||ft.event.simulate("change",this.parentNode,t)}),ft._data(e,"change",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return ft.event.remove(this,"._change"),!Jt.test(this.nodeName)}}),ut.focusin||ft.each({focus:"focusin",blur:"focusout"},function(i,n){var s=function(t){ft.event.simulate(n,t.target,ft.event.fix(t))};ft.event.special[n]={setup:function(){var t=this.ownerDocument||this,e=ft._data(t,n);e||t.addEventListener(i,s,!0),ft._data(t,n,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=ft._data(t,n)-1;e?ft._data(t,n,e):(t.removeEventListener(i,s,!0),ft._removeData(t,n))}}}),ft.fn.extend({on:function(t,e,i,n){return w(this,t,e,i,n)},one:function(t,e,i,n){return w(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,ft(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=undefined),!1===i&&(i=p),this.each(function(){ft.event.remove(this,t,i,e)});for(s in t)this.off(s,e,t[s]);return this},trigger:function(t,e){return this.each(function(){ft.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return ft.event.trigger(t,e,i,!0)}});var ne=/ jQuery\d+="(?:null|\d+)"/g,se=new RegExp("<(?:"+Yt+")[\\s/>]","i"),ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,re=/<script|<style|<link/i,oe=/checked\s*(?:[^=]|=\s*.checked.)/i,le=/^true\/(.*)/,he=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,de=m(st).appendChild(st.createElement("div"));ft.extend({htmlPrefilter:function(t){return t.replace(ae,"<$1></$2>")},clone:function(t,e,i){var n,s,a,r,o,l=ft.contains(t.ownerDocument,t);if(ut.html5Clone||ft.isXMLDoc(t)||!se.test("<"+t.nodeName+">")?a=t.cloneNode(!0):(de.innerHTML=t.outerHTML,de.removeChild(a=de.firstChild)),!(ut.noCloneEvent&&ut.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ft.isXMLDoc(t)))for(n=v(a),o=v(t),r=0;null!=(s=o[r]);++r)n[r]&&D(s,n[r]);if(e)if(i)for(o=o||v(t),n=n||v(a),r=0;null!=(s=o[r]);r++)T(s,n[r]);else T(t,a);return 0<(n=v(a,"script")).length&&b(n,!l&&v(t,"script")),n=o=s=null,a},cleanData:function(t,e){for(var i,n,s,a,r=0,o=ft.expando,l=ft.cache,h=ut.attributes,d=ft.event.special;null!=(i=t[r]);r++)if((e||jt(i))&&(a=(s=i[o])&&l[s])){if(a.events)for(n in a.events)d[n]?ft.event.remove(i,n):ft.removeEvent(i,n,a.handle);l[s]&&(delete l[s],h||"undefined"==typeof i.removeAttribute?i[o]=undefined:i.removeAttribute(o),nt.push(s))}}}),ft.fn.extend({domManip:A,detach:function(t){return I(this,t,!0)},remove:function(t){return I(this,t)},text:function(t){return Vt(this,function(t){return t===undefined?ft.text(this):this.empty().append((this[0]&&this[0].ownerDocument||st).createTextNode(t))},null,t,arguments.length)},append:function(){return A(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||x(this,t).appendChild(t)})},prepend:function(){return A(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=x(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return A(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return A(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&ft.cleanData(v(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&ft.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ft.clone(this,t,e)})},html:function(t){return Vt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(t===undefined)return 1===e.nodeType?e.innerHTML.replace(ne,""):undefined;if("string"==typeof t&&!re.test(t)&&(ut.htmlSerialize||!se.test(t))&&(ut.leadingWhitespace||!Gt.test(t))&&!Qt[(Wt.exec(t)||["",""])[1].toLowerCase()]){t=ft.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}
3).nodeType&&(ft.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(s){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return A(this,arguments,function(t){var e=this.parentNode;ft.inArray(this,i)<0&&(ft.cleanData(v(this)),e&&e.replaceChild(t,this))},i)}}),ft.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,r){ft.fn[t]=function(t){for(var e,i=0,n=[],s=ft(t),a=s.length-1;i<=a;i++)e=i===a?this:this.clone(!0),ft(s[i])[r](e),ot.apply(n,e.get());return this.pushStack(n)}});var ce,ue={HTML:"block",BODY:"block"},pe=/^margin/,fe=new RegExp("^("+qt+")(?!px)[a-z%]+$","i"),ge=function(t,e,i,n){var s,a,r={};for(a in e)r[a]=t.style[a],t.style[a]=e[a];for(a in s=i.apply(t,n||[]),e)t.style[a]=r[a];return s},me=st.documentElement;!function(){function t(){var t,e,i=st.documentElement;i.appendChild(h),d.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=a=l=!1,s=o=!0,C.getComputedStyle&&(e=C.getComputedStyle(d),n="1%"!==(e||{}).top,l="2px"===(e||{}).marginLeft,a="4px"===(e||{width:"4px"}).width,d.style.marginRight="50%",s="4px"===(e||{marginRight:"4px"}).marginRight,(t=d.appendChild(st.createElement("div"))).style.cssText=d.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",d.style.width="1px",o=!parseFloat((C.getComputedStyle(t)||{}).marginRight),d.removeChild(t)),d.style.display="none",(r=0===d.getClientRects().length)&&(d.style.display="",d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",d.childNodes[0].style.borderCollapse="separate",(t=d.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(r=0===t[0].offsetHeight)&&(t[0].style.display="",t[1].style.display="none",r=0===t[0].offsetHeight)),i.removeChild(h)}var n,s,a,r,o,l,h=st.createElement("div"),d=st.createElement("div");d.style&&(d.style.cssText="float:left;opacity:.5",ut.opacity="0.5"===d.style.opacity,ut.cssFloat=!!d.style.cssFloat,d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",ut.clearCloneStyle="content-box"===d.style.backgroundClip,(h=st.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",d.innerHTML="",h.appendChild(d),ut.boxSizing=""===d.style.boxSizing||""===d.style.MozBoxSizing||""===d.style.WebkitBoxSizing,ft.extend(ut,{reliableHiddenOffsets:function(){return null==n&&t(),r},boxSizingReliable:function(){return null==n&&t(),a},pixelMarginRight:function(){return null==n&&t(),s},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),o},reliableMarginLeft:function(){return null==n&&t(),l}}))}();var ve,_e,be=/^(top|right|bottom|left)$/;C.getComputedStyle?(ve=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=C),e.getComputedStyle(t)},_e=function(t,e,i){var n,s,a,r,o=t.style;return""!==(r=(i=i||ve(t))?i.getPropertyValue(e)||i[e]:undefined)&&r!==undefined||ft.contains(t.ownerDocument,t)||(r=ft.style(t,e)),i&&!ut.pixelMarginRight()&&fe.test(r)&&pe.test(e)&&(n=o.width,s=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=i.width,o.width=n,o.minWidth=s,o.maxWidth=a),r===undefined?r:r+""}):me.currentStyle&&(ve=function(t){return t.currentStyle},_e=function(t,e,i){var n,s,a,r,o=t.style;return null==(r=(i=i||ve(t))?i[e]:undefined)&&o&&o[e]&&(r=o[e]),fe.test(r)&&!be.test(e)&&(n=o.left,(a=(s=t.runtimeStyle)&&s.left)&&(s.left=t.currentStyle.left),o.left="fontSize"===e?"1em":r,r=o.pixelLeft+"px",o.left=n,a&&(s.left=a)),r===undefined?r:r+""||"auto"});var ye=/alpha\([^)]*\)/i,we=/opacity\s*=\s*([^)]*)/i,xe=/^(none|table(?!-c[ea]).+)/,Ce=new RegExp("^("+qt+")(.*)$","i"),Se={position:"absolute",visibility:"hidden",display:"block"},ke={letterSpacing:"0",fontWeight:"400"},Te=["Webkit","O","Moz","ms"],De=st.createElement("div").style;ft.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=_e(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ut.cssFloat?"cssFloat":"styleFloat"}
vendor: 4,485 bytes, line 3
3,style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,a,r,o=ft.camelCase(e),l=t.style;if(e=ft.cssProps[o]||(ft.cssProps[o]=j(o)||o),r=ft.cssHooks[e]||ft.cssHooks[o],i===undefined)return r&&"get"in r&&(s=r.get(t,!1,n))!==undefined?s:l[e];if("string"===(a=typeof i)&&(s=$t.exec(i))&&s[1]&&(i=c(t,e,s),a="number"),null!=i&&i==i&&("number"===a&&(i+=s&&s[3]||(ft.cssNumber[o]?"":"px")),ut.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),!(r&&"set"in r&&(i=r.set(t,i,n))===undefined)))try{l[e]=i}catch(h){}}},css:function(t,e,i,n){var s,a,r,o=ft.camelCase(e);return e=ft.cssProps[o]||(ft.cssProps[o]=j(o)||o),(r=ft.cssHooks[e]||ft.cssHooks[o])&&"get"in r&&(a=r.get(t,!0,i)),a===undefined&&(a=_e(t,e,n)),"normal"===a&&e in ke&&(a=ke[e]),""===i||i?(s=parseFloat(a),!0===i||isFinite(s)?s||0:a):a}}),ft.each(["height","width"],function(t,s){ft.cssHooks[s]={get:function(t,e,i){if(e)return xe.test(ft.css(t,"display"))&&0===t.offsetWidth?ge(t,Se,function(){return L(t,s,i)}):L(t,s,i)},set:function(t,e,i){var n=i&&ve(t);return R(t,e,i?H(t,s,i,ut.boxSizing&&"border-box"===ft.css(t,"boxSizing",!1,n),n):0)}}}),ut.opacity||(ft.cssHooks.opacity={get:function(t,e){return we.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,s=ft.isNumeric(e)?"alpha(opacity="+100*e+")":"",a=n&&n.filter||i.filter||"";((i.zoom=1)<=e||""===e)&&""===ft.trim(a.replace(ye,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===e||n&&!n.filter)||(i.filter=ye.test(a)?a.replace(ye,s):a+" "+s)}}),ft.cssHooks.marginRight=F(ut.reliableMarginRight,function(t,e){if(e)return ge(t,{display:"inline-block"},_e,[t,"marginRight"])}),ft.cssHooks.marginLeft=F(ut.reliableMarginLeft,function(t,e){if(e)return(parseFloat(_e(t,"marginLeft"))||(ft.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-ge(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px"}),ft.each({margin:"",padding:"",border:"Width"},function(s,a){ft.cssHooks[s+a]={expand:function(t){for(var e=0,i={},n="string"==typeof t?t.split(" "):[t];e<4;e++)i[s+Ot[e]+a]=n[e]||n[e-2]||n[0];return i}},pe.test(s)||(ft.cssHooks[s+a].set=R)}),ft.fn.extend({css:function(t,e){return Vt(this,function(t,e,i){var n,s,a={},r=0;if(ft.isArray(e)){for(n=ve(t),s=e.length;r<s;r++)a[e[r]]=ft.css(t,e[r],!1,n);return a}return i!==undefined?ft.style(t,e,i):ft.css(t,e)},t,e,1<arguments.length)},show:function(){return P(this,!0)},hide:function(){return P(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){zt(this)?ft(this).show():ft(this).hide()})}}),(ft.Tween=N).prototype={constructor:N,init:function(t,e,i,n,s,a){this.elem=t,this.prop=i,this.easing=s||ft.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=a||(ft.cssNumber[i]?"":"px")},cur:function(){var t=N.propHooks[this.prop];return t&&t.get?t.get(this):N.propHooks._default.get(this)},run:function(t){var e,i=N.propHooks[this.prop];return this.options.duration?this.pos=e=ft.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):N.propHooks._default.set(this),this}},N.prototype.init.prototype=N.prototype,N.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ft.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){ft.fx.step[t.prop]?ft.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ft.cssProps[t.prop]]&&!ft.cssHooks[t.prop]?t.elem[t.prop]=t.now:ft.style(t.elem,t.prop,t.now+t.unit)}}},N.propHooks.scrollTop=N.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ft.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ft.fx=N.prototype.init,ft.fx.step={};var Ae,Ie,Ee,Me,Fe,je,Pe,Re=/^(?:toggle|show|hide)$/,He=/queueHooks$/;ft.Animation=ft.extend(B,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return c(i.elem,t,$t.exec(e),i),i}]},tweener:function(t,e){ft.isFunction(t)?(e=t,t=["*"]):t=t.match(Mt);for(var i,n=0,s=t.length;n<s;n++)i=t[n],B.tweeners[i]=B.tweeners[i]||[],B.tweeners[i].unshift(e)},prefilters:[z],prefilter:function(t,e){e?B.prefilters.unshift(t):B.prefilters.push(t)}}
vendor: 4,614 bytes, line 3
3),ft.speed=function(t,e,i){var n=t&&"object"==typeof t?ft.extend({},t):{complete:i||!i&&e||ft.isFunction(t)&&t,duration:t,easing:i&&e||e&&!ft.isFunction(e)&&e};return n.duration=ft.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in ft.fx.speeds?ft.fx.speeds[n.duration]:ft.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){ft.isFunction(n.old)&&n.old.call(this),n.queue&&ft.dequeue(this,n.queue)},n},ft.fn.extend({fadeTo:function(t,e,i,n){return this.filter(zt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(e,t,i,n){var s=ft.isEmptyObject(e),a=ft.speed(t,i,n),r=function(){var t=B(this,ft.extend({},e),a);(s||ft._data(this,"finish"))&&t.stop(!0)};return r.finish=r,s||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(s,t,a){var r=function(t){var e=t.stop;delete t.stop,e(a)};return"string"!=typeof s&&(a=t,t=s,s=undefined),t&&!1!==s&&this.queue(s||"fx",[]),this.each(function(){var t=!0,e=null!=s&&s+"queueHooks",i=ft.timers,n=ft._data(this);if(e)n[e]&&n[e].stop&&r(n[e]);else for(e in n)n[e]&&n[e].stop&&He.test(e)&&r(n[e]);for(e=i.length;e--;)i[e].elem!==this||null!=s&&i[e].queue!==s||(i[e].anim.stop(a),t=!1,i.splice(e,1));!t&&a||ft.dequeue(this,s)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var t,e=ft._data(this),i=e[r+"queue"],n=e[r+"queueHooks"],s=ft.timers,a=i?i.length:0;for(e.finish=!0,ft.queue(this,r,[]),n&&n.stop&&n.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===r&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),ft.each(["toggle","show","hide"],function(t,n){var s=ft.fn[n];ft.fn[n]=function(t,e,i){return null==t||"boolean"==typeof t?s.apply(this,arguments):this.animate($(n,!0),t,e,i)}}),ft.each({slideDown:$("show"),slideUp:$("hide"),slideToggle:$("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){ft.fn[t]=function(t,e,i){return this.animate(n,t,e,i)}}),ft.timers=[],ft.fx.tick=function(){var t,e=ft.timers,i=0;for(Ae=ft.now();i<e.length;i++)(t=e[i])()||e[i]!==t||e.splice(i--,1);e.length||ft.fx.stop(),Ae=undefined},ft.fx.timer=function(t){ft.timers.push(t),t()?ft.fx.start():ft.timers.pop()},ft.fx.interval=13,ft.fx.start=function(){Ie||(Ie=C.setInterval(ft.fx.tick,ft.fx.interval))},ft.fx.stop=function(){C.clearInterval(Ie),Ie=null},ft.fx.speeds={slow:600,fast:200,_default:400},ft.fn.delay=function(n,t){return n=ft.fx&&ft.fx.speeds[n]||n,t=t||"fx",this.queue(t,function(t,e){var i=C.setTimeout(t,n);e.stop=function(){C.clearTimeout(i)}})},Me=st.createElement("input"),Fe=st.createElement("div"),je=st.createElement("select"),Pe=je.appendChild(st.createElement("option")),(Fe=st.createElement("div")).setAttribute("className","t"),Fe.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",Ee=Fe.getElementsByTagName("a")[0],Me.setAttribute("type","checkbox"),Fe.appendChild(Me),(Ee=Fe.getElementsByTagName("a")[0]).style.cssText="top:1px",ut.getSetAttribute="t"!==Fe.className,ut.style=/top/.test(Ee.getAttribute("style")),ut.hrefNormalized="/a"===Ee.getAttribute("href"),ut.checkOn=!!Me.value,ut.optSelected=Pe.selected,ut.enctype=!!st.createElement("form").enctype,je.disabled=!0,ut.optDisabled=!Pe.disabled,(Me=st.createElement("input")).setAttribute("value",""),ut.input=""===Me.getAttribute("value"),Me.value="t",Me.setAttribute("type","radio"),ut.radioValue="t"===Me.value;var Le=/\r/g,Ne=/[\x20\t\r\n\f]+/g;ft.fn.extend({val:function(i){var n,t,s,e=this[0];return arguments.length?(s=ft.isFunction(i),this.each(function(t){var e;1===this.nodeType&&(null==(e=s?i.call(this,t,ft(this).val()):i)?e="":"number"==typeof e?e+="":ft.isArray(e)&&(e=ft.map(e,function(t){return null==t?"":t+""})),(n=ft.valHooks[this.type]||ft.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,e,"value")!==undefined||(this.value=e))})):e?(n=ft.valHooks[e.type]||ft.valHooks[e.nodeName.toLowerCase()])&&"get"in n&&(t=n.get(e,"value"))!==undefined?t:"string"==typeof(t=e.value)?t.replace(Le,""):null==t?"":t:void 0}}),ft.extend({valHooks:{option:{get:function(t){var e=ft.find.attr(t,"value");return null!=e?e:ft.trim(ft.text(t)).replace(Ne," ")}},select:{get:function(t){for(var e,i,n=t.options,s=t.selectedIndex,a="select-one"===t.type||s<0,r=a?null:[],o=a?s+1:n.length,l=s<0?o:a?s:0;l<o;l++)if(((i=n[l]).selected||l===s)&&(ut.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!ft.nodeName(i.parentNode,"optgroup"))){if(e=ft(i).val(),a)return e;r.push(e)}return r}
3,set:function(t,e){for(var i,n,s=t.options,a=ft.makeArray(e),r=s.length;r--;)if(n=s[r],-1<ft.inArray(ft.valHooks.option.get(n),a))try{n.selected=i=!0}catch(_){n.scrollHeight}else n.selected=!1;return i||(t.selectedIndex=-1),s}}}}),ft.each(["radio","checkbox"],function(){ft.valHooks[this]={set:function(t,e){if(ft.isArray(e))return t.checked=-1<ft.inArray(ft(t).val(),e)}},ut.checkOn||(ft.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var qe,$e,Oe=ft.expr.attrHandle,ze=/^(?:checked|selected)$/i,Ve=ut.getSetAttribute,Be=ut.input;ft.fn.extend({attr:function(t,e){return Vt(this,ft.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){ft.removeAttr(this,t)})}}),ft.extend({attr:function(t,e,i){var n,s,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof t.getAttribute?ft.prop(t,e,i):(1===a&&ft.isXMLDoc(t)||(e=e.toLowerCase(),s=ft.attrHooks[e]||(ft.expr.match.bool.test(e)?$e:qe)),i!==undefined?null===i?void ft.removeAttr(t,e):s&&"set"in s&&(n=s.set(t,i,e))!==undefined?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:null==(n=ft.find.attr(t,e))?undefined:n)},attrHooks:{type:{set:function(t,e){if(!ut.radioValue&&"radio"===e&&ft.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n,s=0,a=e&&e.match(Mt);if(a&&1===t.nodeType)for(;i=a[s++];)n=ft.propFix[i]||i,ft.expr.match.bool.test(i)?Be&&Ve||!ze.test(i)?t[n]=!1:t[ft.camelCase("default-"+i)]=t[n]=!1:ft.attr(t,i,""),t.removeAttribute(Ve?i:n)}}),$e={set:function(t,e,i){return!1===e?ft.removeAttr(t,i):Be&&Ve||!ze.test(i)?t.setAttribute(!Ve&&ft.propFix[i]||i,i):t[ft.camelCase("default-"+i)]=t[i]=!0,i}},ft.each(ft.expr.match.bool.source.match(/\w+/g),function(t,e){var a=Oe[e]||ft.find.attr;Be&&Ve||!ze.test(e)?Oe[e]=function(t,e,i){var n,s;return i||(s=Oe[e],Oe[e]=n,n=null!=a(t,e,i)?e.toLowerCase():null,Oe[e]=s),n}:Oe[e]=function(t,e,i){if(!i)return t[ft.camelCase("default-"+e)]?e.toLowerCase():null}}),Be&&Ve||(ft.attrHooks.value={set:function(t,e,i){if(!ft.nodeName(t,"input"))return qe&&qe.set(t,e,i);t.defaultValue=e}}),Ve||(qe={set:function(t,e,i){var n=t.getAttributeNode(i);if(n||t.setAttributeNode(n=t.ownerDocument.createAttribute(i)),n.value=e+="","value"===i||e===t.getAttribute(i))return e}},Oe.id=Oe.name=Oe.coords=function(t,e,i){var n;if(!i)return(n=t.getAttributeNode(e))&&""!==n.value?n.value:null},ft.valHooks.button={get:function(t,e){var i=t.getAttributeNode(e);if(i&&i.specified)return i.value},set:qe.set},ft.attrHooks.contenteditable={set:function(t,e,i){qe.set(t,""!==e&&e,i)}},ft.each(["width","height"],function(t,i){ft.attrHooks[i]={set:function(t,e){if(""===e)return t.setAttribute(i,"auto"),e}}})),ut.style||(ft.attrHooks.style={get:function(t){return t.style.cssText||undefined},set:function(t,e){return t.style.cssText=e+""}});var We=/^(?:input|select|textarea|button|object)$/i,Ue=/^(?:a|area)$/i;ft.fn.extend({prop:function(t,e){return Vt(this,ft.prop,t,e,1<arguments.length)},removeProp:function(e){return e=ft.propFix[e]||e,this.each(function(){try{this[e]=undefined,delete this[e]}catch(t){}})}}),ft.extend({prop:function(t,e,i){var n,s,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&ft.isXMLDoc(t)||(e=ft.propFix[e]||e,s=ft.propHooks[e]),i!==undefined?s&&"set"in s&&(n=s.set(t,i,e))!==undefined?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=ft.find.attr(t,"tabindex");return e?parseInt(e,10):We.test(t.nodeName)||Ue.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ut.hrefNormalized||ft.each(["href",
4"src"],function(t,e){ft.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),ut.optSelected||(ft.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ft.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ft.propFix[this.toLowerCase()]=this}),ut.enctype||(ft.propFix.enctype="encoding");var Ge=/[\t\r\n\f]/g;ft.fn.extend({addClass:function(e){var t,i,n,s,a,r,o,l=0;if(ft.isFunction(e))return this.each(function(t){ft(this).addClass(e.call(this,t,W(this)))});if("string"==typeof e&&e)for(t=e.match(Mt)||[];i=this[l++];)if(s=W(i),n=1===i.nodeType&&(" "+s+" ").replace(Ge," ")){for(r=0;a=t[r++];)n.indexOf(" "+a+" ")<0&&(n+=a+" ");s!==(o=ft.trim(n))&&ft.attr(i,"class",o)}return this},removeClass:function(e){var t,i,n,s,a,r,o,l=0;if(ft.isFunction(e))return this.each(function(t){ft(this).removeClass(e.call(this,t,W(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Mt)||[];i=this[l++];)if(s=W(i),n=1===i.nodeType&&(" "+s+" ").replace(Ge," ")){for(r=0;a=t[r++];)for(;-1<n.indexOf(" "+a+" ");)n=n.replace(" "+a+" "," ");s!==(o=ft.trim(n))&&ft.attr(i,"class",o)}return this},toggleClass:function(s,e){var a=typeof s;return"boolean"==typeof e&&"string"===a?e?this.addClass(s):this.removeClass(s):ft.isFunction(s)?this.each(function(t){ft(this).toggleClass(s.call(this,t,W(this),e),e)}):this.each(function(){var t,e,i,n;if("string"===a)for(e=0,i=ft(this),n=s.match(Mt)||[];t=n[e++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else s!==undefined&&"boolean"!==a||((t=W(this))&&ft._data(this,"__className__",t),ft.attr(this,"class",t||!1===s?"":ft._data(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+W(i)+" ").replace(Ge," ").indexOf(e))return!0;return!1}}),ft.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,i){ft.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}}),ft.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var Ye=C.location,Qe=ft.now(),Ze=/\?/,Xe=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ft.parseJSON=function(t){if(C.JSON&&C.JSON.parse)return C.JSON.parse(t+"");var s,a=null,e=ft.trim(t+"");
4return e&&!ft.trim(e.replace(Xe,function(t,e,i,n){return s&&e&&(a=0),0===a?t:(s=i||e,a+=!n-!i,"")}))?Function("return "+e)():ft.error("Invalid JSON: "+t)},ft.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{C.DOMParser?e=(new C.DOMParser).parseFromString(t,"text/xml"):((e=new C.ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t))}catch(i){e=undefined}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||ft.error("Invalid XML: "+t),e};var Je=/#.*$/,Ke=/([?&])_=[^&]*/,ti=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ei=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ii=/^(?:GET|HEAD)$/,ni=/^\/\//,si=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ai={},ri={},oi="*/".concat("*"),li=Ye.href,hi=si.exec(li.toLowerCase())||[];ft.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:li,type:"GET",isLocal:ei.test(hi[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":oi,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ft.parseJSON,"text xml":ft.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Y(Y(t,ft.ajaxSettings),e):Y(ft.ajaxSettings,t)},ajaxPrefilter:U(ai),ajaxTransport:U(ri),ajax:function(t,e){function i(t,e,i,n){var s,a,r,o,l,h=e;2!==w&&(w=2,u&&C.clearTimeout(u),f=undefined,c=n||"",x.readyState=0<t?4:0,s=200<=t&&t<300||304===t,i&&(o=Q(g,x,i)),o=Z(g,o,x,s),s?(g.ifModified&&((l=x.getResponseHeader("Last-Modified"))&&(ft.lastModified[d]=l),(l=x.getResponseHeader("etag"))&&(ft.etag[d]=l)),204===t||"HEAD"===g.type?h="nocontent":304===t?h="notmodified":(h=o.state,a=o.data,s=!(r=o.error))):(r=h,!t&&h||(h="error",t<0&&(t=0))),x.status=t,x.statusText=(e||h)+"",s?_.resolveWith(m,[a,h,x]):_.rejectWith(m,[x,h,r]),x.statusCode(y),y=undefined,p&&v.trigger(s?"ajaxSuccess":"ajaxError",[x,g,s?a:r]),b.fireWith(m,[x,h]),p&&(v.trigger("ajaxComplete",[x,g]),--ft.active||ft.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=undefined),e=e||{};var n,s,d,c,u,p,f,a,g=ft.ajaxSetup({},e),m=g.context||g,v=g.context&&(m.nodeType||m.jquery)?ft(m):ft.event,_=ft.Deferred(),b=ft.Callbacks("once memory"),y=g.statusCode||{},r={},o={},w=0,l="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!a)for(a={};e=ti.exec(c);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?c:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return w||(t=o[i]=o[i]||t,r[t]=e),this},overrideMimeType:function(t){return w||(g.mimeType=t),this},statusCode:function(t){var e;if(t)if(w<2)for(e in t)y[e]=[y[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||l;return f&&f.abort(e),i(0,e),this}};if(_.promise(x).complete=b.add,x.success=x.done,x.error=x.fail,g.url=((t||g.url||li)+"").replace(Je,"").replace(ni,hi[1]+"//"),g.type=e.method||e.type||g.method||g.type,g.dataTypes=ft.trim(g.dataType||"*").toLowerCase().match(Mt)||[""],null==g.crossDomain&&(n=si.exec(g.url.toLowerCase()),g.crossDomain=!(!n||n[1]===hi[1]&&n[2]===hi[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(hi[3]||("http:"===hi[1]?"80":"443")))),g.data&&g.processData&&"string"!=typeof g.data&&(g.data=ft.param(g.data,g.traditional)),G(ai,g,e,x),2===w)return x;for(s in(p=ft.event&&g.global)&&0==ft.active++&&ft.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!ii.test(g.type),d=g.url,g.hasContent||(g.data&&(d=g.url+=(Ze.test(d)?"&":"?")+g.data,delete g.data),!1===g.cache&&(g.url=Ke.test(d)?d.replace(Ke,"$1_="+Qe++):d+(Ze.test(d)?"&":"?")+"_="+Qe++)),g.ifModified&&(ft.lastModified[d]&&x.setRequestHeader("If-Modified-Since",ft.lastModified[d]),ft.etag[d]&&x.setRequestHeader("If-None-Match",ft.etag[d])),(g.data&&g.hasContent&&!1!==g.contentType||e.contentType)&&x.setRequestHeader("Content-Type",g.contentType),x.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+oi+"; q=0.01":""):g.accepts["*"]),g.headers)x.setRequestHeader(s,g.headers[s]);
4if(g.beforeSend&&(!1===g.beforeSend.call(m,x,g)||2===w))return x.abort();for(s in l="abort",{success:1,error:1,complete:1})x[s](g[s]);if(f=G(ri,g,e,x)){if(x.readyState=1,p&&v.trigger("ajaxSend",[x,g]),2===w)return x;g.async&&0<g.timeout&&(u=C.setTimeout(function(){x.abort("timeout")},g.timeout));try{w=1,f.send(r,i)}catch(h){if(!(w<2))throw h;i(-1,h)}}else i(-1,"No Transport");return x},getJSON:function(t,e,i){return ft.get(t,e,i,"json")},getScript:function(t,e){return ft.get(t,undefined,e,"script")}}),ft.each(["get","post"],function(t,s){ft[s]=function(t,e,i,n){return ft.isFunction(e)&&(n=n||i,i=e,e=undefined),ft.ajax(ft.extend({url:t,type:s,dataType:n,data:e,success:i},ft.isPlainObject(t)&&t))}}),ft._evalUrl=function(t){return ft.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},ft.fn.extend({wrapAll:function(e){if(ft.isFunction(e))return this.each(function(t){ft(this).wrapAll(e.call(this,t))});if(this[0]){var t=ft(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(i){return ft.isFunction(i)?this.each(function(t){ft(this).wrapInner(i.call(this,t))}):this.each(function(){var t=ft(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=ft.isFunction(e);return this.each(function(t){ft(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){ft.nodeName(this,"body")||ft(this).replaceWith(this.childNodes)}).end()}}),ft.expr.filters.hidden=function(t){return ut.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:J(t)},ft.expr.filters.visible=function(t){return!ft.expr.filters.hidden(t)};var di=/%20/g,ci=/\[\]$/,ui=/\r?\n/g,pi=/^(?:submit|button|image|reset|file)$/i,fi=/^(?:input|select|textarea|keygen)/i;ft.param=function(t,e){var i,n=[],s=function(t,e){e=ft.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(e===undefined&&(e=ft.ajaxSettings&&ft.ajaxSettings.traditional),ft.isArray(t)||t.jquery&&!ft.isPlainObject(t))ft.each(t,function(){s(this.name,this.value)});else for(i in t)K(i,t[i],e,s);return n.join("&").replace(di,"+")},ft.fn.extend({serialize:function(){return ft.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ft.prop(this,"elements");return t?ft.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ft(this).is(":disabled")&&fi.test(this.nodeName)&&!pi.test(t)&&(this.checked||!Bt.test(t))}).map(function(t,e){var i=ft(this).val();return null==i?null:ft.isArray(i)?ft.map(i,function(t){return{name:e.name,value:t.replace(ui,"\r\n")}}):{name:e.name,value:i.replace(ui,"\r\n")}}).get()}}),ft.ajaxSettings.xhr=C.ActiveXObject!==undefined?function(){return this.isLocal?et():8<st.documentMode?tt():/^(get|post|head|put|delete|options)$/i.test(this.type)&&tt()||et()}:tt;var gi=0,mi={},vi=ft.ajaxSettings.xhr();C.attachEvent&&C.attachEvent("onunload",function(){for(var t in mi)mi[t](undefined,!0)}),ut.cors=!!vi&&"withCredentials"in vi,(vi=ut.ajax=!!vi)&&ft.ajaxTransport(function(h){var d;if(!h.crossDomain||ut.cors)return{send:function(t,r){var e,o=h.xhr(),l=++gi;if(o.open(h.type,h.url,h.async,h.username,h.password),h.xhrFields)for(e in h.xhrFields)o[e]=h.xhrFields[e];for(e in h.mimeType&&o.overrideMimeType&&o.overrideMimeType(h.mimeType),h.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)t[e]!==undefined&&o.setRequestHeader(e,t[e]+"");o.send(h.hasContent&&h.data||null),d=function(t,e){var i,n,s;if(d&&(e||4===o.readyState))if(delete mi[l],d=undefined,o.onreadystatechange=ft.noop,e)4!==o.readyState&&o.abort();else{s={},i=o.status,"string"==typeof o.responseText&&(s.text=o.responseText);try{n=o.statusText}catch(a){n=""}i||!h.isLocal||h.crossDomain?1223===i&&(i=204):i=s.text?200:404}s&&r(i,n,s,o.getAllResponseHeaders())},h.async?4===o.readyState?C.setTimeout(d):o.onreadystatechange=mi[l]=d:d()}
4,abort:function(){d&&d(undefined,!0)}}}),ft.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ft.globalEval(t),t}}}),ft.ajaxPrefilter("script",function(t){t.cache===undefined&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ft.ajaxTransport("script",function(e){if(e.crossDomain){var n,s=st.head||ft("head")[0]||st.documentElement;return{send:function(t,i){(n=st.createElement("script")).async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(t,e){(e||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,e||i(200,"success"))},s.insertBefore(n,s.firstChild)},abort:function(){n&&n.onload(undefined,!0)}}}});var _i=[],bi=/(=)\?(?=&|$)|\?\?/;ft.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=_i.pop()||ft.expando+"_"+Qe++;return this[t]=!0,t}}),ft.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,a,r=!1!==t.jsonp&&(bi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&bi.test(t.data)&&"data");if(r||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=ft.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(bi,"$1"+n):!1!==t.jsonp&&(t.url+=(Ze.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return a||ft.error(n+" was not called"),a[0]},t.dataTypes[0]="json",s=C[n],C[n]=function(){a=arguments},i.always(function(){s===undefined?ft(C).removeProp(n):C[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,_i.push(n)),a&&ft.isFunction(s)&&s(a[0]),a=s=undefined}),"script"}),ft.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||st;var n=Ct.exec(t),s=!i&&[];return n?[e.createElement(n[1])]:(n=g([t],e,s),s&&s.length&&ft(s).remove(),ft.merge([],n.childNodes))};var yi=ft.fn.load;ft.fn.load=function(t,e,i){if("string"!=typeof t&&yi)return yi.apply(this,arguments);var n,s,a,r=this,o=t.indexOf(" ");return-1<o&&(n=ft.trim(t.slice(o,t.length)),t=t.slice(0,o)),ft.isFunction(e)?(i=e,e=undefined):e&&"object"==typeof e&&(s="POST"),0<r.length&&ft.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){a=arguments,r.html(n?ft("<div>").append(ft.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,a||[t.responseText,e,t])})}),this},ft.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ft.fn[e]=function(t){return this.on(e,t)}}),ft.expr.filters.animated=function(e){return ft.grep(ft.timers,function(t){return e===t.elem}).length},ft.offset={setOffset:function(t,e,i){var n,s,a,r,o,l,h=ft.css(t,"position"),d=ft(t),c={};"static"===h&&(t.style.position="relative"),o=d.offset(),a=ft.css(t,"top"),l=ft.css(t,"left"),("absolute"===h||"fixed"===h)&&-1<ft.inArray("auto",[a,l])?(r=(n=d.position()).top,s=n.left):(r=parseFloat(a)||0,s=parseFloat(l)||0),ft.isFunction(e)&&(e=e.call(t,i,ft.extend({},o))),null!=e.top&&(c.top=e.top-o.top+r),null!=e.left&&(c.left=e.left-o.left+s),"using"in e?e.using.call(t,c):d.css(c)}},ft.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){ft.offset.setOffset(this,e,t)});var t,i,n={top:0,left:0},s=this[0],a=s&&s.ownerDocument;return a?(t=a.documentElement,ft.contains(t,s)?("undefined"!=typeof s.getBoundingClientRect&&(n=s.getBoundingClientRect()),i=it(a),{top:n.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var t,e,i={top:0,left:0},n=this[0];return"fixed"===ft.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ft.nodeName(t[0],"html")||(i=t.offset()),i.top+=ft.css(t[0],"borderTopWidth",!0),i.left+=ft.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-ft.css(n,"marginTop",!0),left:e.left-i.left-ft.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&!ft.nodeName(t,"html")&&"static"===ft.css(t,"position");)t=t.offsetParent;return t||me})}}),ft.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var a=/Y/.test(s);
4ft.fn[e]=function(t){return Vt(this,function(t,e,i){var n=it(t);if(i===undefined)return n?s in n?n[s]:n.document.documentElement[e]:t[e];n?n.scrollTo(a?ft(n).scrollLeft():i,a?i:ft(n).scrollTop()):t[e]=i},e,t,arguments.length,null)}}),ft.each(["top","left"],function(t,i){ft.cssHooks[i]=F(ut.pixelPosition,function(t,e){if(e)return e=_e(t,i),fe.test(e)?ft(t).position()[i]+"px":e})}),ft.each({Height:"height",Width:"width"},function(a,r){ft.each({padding:"inner"+a,content:r,"":"outer"+a},function(n,t){ft.fn[t]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");return Vt(this,function(t,e,i){var n;return ft.isWindow(t)?t.document.documentElement["client"+a]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+a],n["scroll"+a],t.body["offset"+a],n["offset"+a],n["client"+a])):i===undefined?ft.css(t,e,s):ft.style(t,e,i,s)},r,i?t:undefined,i,null)}})}),ft.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),ft.fn.size=function(){return this.length},ft.fn.andSelf=ft.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ft});var wi=C.jQuery,xi=C.$;return ft.noConflict=function(t){return C.$===ft&&(C.$=xi),t&&C.jQuery===ft&&(C.jQuery=wi),ft},t||(C.jQuery=C.$=ft),ft}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(A){function n(t,e){var i,n,s,a=t.nodeName.toLowerCase();return"area"===a?(n=(i=t.parentNode).name,!(!t.href||!n||"map"!==i.nodeName.toLowerCase())&&(!!(s=A("img[usemap='#"+n+"']")[0])&&r(s))):(/^(input|select|textarea|button|object)$/.test(a)?!t.disabled:"a"===a&&t.href||e)&&r(t)}function r(t){return A.expr.filters.visible(t)&&!A(t).parents().addBack().filter(function(){return"hidden"===A.css(this,"visibility")}).length}var t,e,i,s;A.ui=A.ui||{},A.extend(A.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),A.fn.extend({scrollParent:function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var t=A(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&s.length?s:A(this[0].ownerDocument||document)},uniqueId:(t=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&A(this).removeAttr("id")})}}),A.extend(A.expr[":"],{data:A.expr.createPseudo?A.expr.createPseudo(function(e){return function(t){return!!A.data(t,e)}}):function(t,e,i){return!!A.data(t,i[3])},focusable:function(t){return n(t,!isNaN(A.attr(t,"tabindex")))},tabbable:function(t){var e=A.attr(t,"tabindex"),i=isNaN(e);return(i||0<=e)&&n(t,!i)}}),A("<a>").outerWidth(1).jquery||A.each(["Width","Height"],function(t,i){function n(t,e,i,n){return A.each(s,function(){e-=parseFloat(A.css(t,"padding"+this))||0,i&&(e-=parseFloat(A.css(t,"border"+this+"Width"))||0),n&&(e-=parseFloat(A.css(t,"margin"+this))||0)}),e}var s="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),r={innerWidth:A.fn.innerWidth,innerHeight:A.fn.innerHeight,outerWidth:A.fn.outerWidth,outerHeight:A.fn.outerHeight};A.fn["inner"+i]=function(t){return t===undefined?r["inner"+i].call(this):this.each(function(){A(this).css(a,n(this,t)+"px")})},A.fn["outer"+i]=function(t,e){return"number"!=typeof t?r["outer"+i].call(this,t):this.each(function(){A(this).css(a,n(this,t,!0,e)+"px")})}}),A.fn.addBack||(A.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),A("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(A.fn.removeData=(e=A.fn.removeData,function(t){return arguments.length?e.call(this,A.camelCase(t)):e.call(this)})),A.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),A.fn.extend({focus:(s=A.fn.focus,function(e,i){return"number"==typeof e?this.each(function(){var t=this;setTimeout(function(){A(t).focus(),i&&i.call(t)},e)}):s.apply(this,arguments)}),disableSelection:(i="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(i+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(t!==undefined)return this.css("zIndex",t);if(this.length)for(var e,i,n=A(this[0]);n.length&&n[0]!==document;){if(("absolute"===(e=n.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&0!==i))return i;n=n.parent()}return 0}}
4),A.ui.plugin={add:function(t,e,i){var n,s=A.ui[t].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var s,a=t.plugins[e];if(a&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s<a.length;s++)t.options[a[s][0]]&&a[s][1].apply(t.element,i)}};var a,o=0,l=Array.prototype.slice;A.cleanData=(a=A.cleanData,function(t){var e,i,n;for(n=0;null!=(i=t[n]);n++)try{(e=A._data(i,"events"))&&e.remove&&A(i).triggerHandler("remove")}catch(s){}a(t)}),A.widget=function(t,i,e){var n,s,a,r,o={},l=t.split(".")[0];return t=t.split(".")[1],n=l+"-"+t,e||(e=i,i=A.Widget),A.expr[":"][n.toLowerCase()]=function(t){return!!A.data(t,n)},A[l]=A[l]||{},s=A[l][t],a=A[l][t]=function(t,e){if(!this._createWidget)return new a(t,e);arguments.length&&this._createWidget(t,e)},A.extend(a,s,{version:e.version,_proto:A.extend({},e),_childConstructors:[]}),(r=new i).options=A.widget.extend({},r.options),A.each(e,function(e,n){var s,a;A.isFunction(n)?o[e]=(s=function(){return i.prototype[e].apply(this,arguments)},a=function(t){return i.prototype[e].apply(this,t)},function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=a,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}):o[e]=n}),a.prototype=A.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},o,{constructor:a,namespace:l,widgetName:t,widgetFullName:n}),s?(A.each(s._childConstructors,function(t,e){var i=e.prototype;A.widget(i.namespace+"."+i.widgetName,a,e._proto)}),delete s._childConstructors):i._childConstructors.push(a),A.widget.bridge(t,a),a},A.widget.extend=function(t){for(var e,i,n=l.call(arguments,1),s=0,a=n.length;s<a;s++)for(e in n[s])i=n[s][e],n[s].hasOwnProperty(e)&&i!==undefined&&(A.isPlainObject(i)?t[e]=A.isPlainObject(t[e])?A.widget.extend({},t[e],i):A.widget.extend({},i):t[e]=i);return t},A.widget.bridge=function(a,e){var r=e.prototype.widgetFullName||a;A.fn[a]=function(i){var t="string"==typeof i,n=l.call(arguments,1),s=this;return t?this.each(function(){var t,e=A.data(this,r);return"instance"===i?(s=e,!1):e?A.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,n))!==e&&t!==undefined?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void 0:A.error("no such method '"+i+"' for "+a+" widget instance"):A.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+i+"'")}):(n.length&&(i=A.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=A.data(this,r);t?(t.option(i||{}),t._init&&t._init()):A.data(this,r,new e(i,this))})),s}},A.Widget=function(){},A.Widget._childConstructors=[],A.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,e){e=A(e||this.defaultElement||this)[0],this.element=A(e),this.uuid=o++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=A(),this.hoverable=A(),this.focusable=A(),e!==this&&(A.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=A(e.style?e.ownerDocument:e.document||e),this.window=A(this.document[0].defaultView||this.document[0].parentWindow)),this.options=A.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:A.noop,_getCreateEventData:A.noop,_create:A.noop,_init:A.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(A.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:A.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,a=t;if(0===arguments.length)return A.widget.extend({},this.options);if("string"==typeof t)if(a={},t=(i=t.split(".")).shift(),i.length){for(n=a[t]=A.widget.extend({},this.options[t]),s=0;s<i.length-1;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(t=i.pop(),1===arguments.length)return n[t]===undefined?null:n[t];n[t]=e}else{if(1===arguments.length)return this.options[t]===undefined?null:this.options[t];a[t]=e}return this._setOptions(a),this},_setOptions:function(t){var e;
vendor: 5,472 bytes, line 4
4for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(r,o,t){var l,h=this;"boolean"!=typeof r&&(t=o,o=r,r=!1),t?(o=l=A(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,l=this.widget()),A.each(t,function(t,e){function i(){if(r||!0!==h.options.disabled&&!A(this).hasClass("ui-state-disabled"))return("string"==typeof e?h[e]:e).apply(h,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||A.guid++);var n=t.match(/^([\w:-]*)\s*(.*)$/),s=n[1]+h.eventNamespace,a=n[2];a?l.delegate(a,s,i):o.bind(s,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e),this.bindings=A(this.bindings.not(t).get()),this.focusable=A(this.focusable.not(t).get()),this.hoverable=A(this.hoverable.not(t).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){A(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){A(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){A(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){A(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,e,i){var n,s,a=this.options[t];if(i=i||{},(e=A.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],s=e.originalEvent)for(n in s)n in e||(e[n]=s[n]);return this.element.trigger(e,i),!(A.isFunction(a)&&!1===a.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},A.each({show:"fadeIn",hide:"fadeOut"},function(a,r){A.Widget.prototype["_"+a]=function(e,t,i){"string"==typeof t&&(t={effect:t});var n,s=t?!0===t||"number"==typeof t?r:t.effect||r:a;"number"==typeof(t=t||{})&&(t={duration:t}),n=!A.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&A.effects&&A.effects.effect[s]?e[a](t):s!==a&&e[s]?e[s](t.duration,t.easing,i):e.queue(function(t){A(this)[a](),i&&i.call(e[0]),t()})}});A.widget;var h=!1;A(document).mouseup(function(){h=!1});A.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(t){if(!0===A.data(t.target,e.widgetName+".preventClickEvent"))return A.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!h){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,i=1===t.which,n=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&A(t.target).closest(this.options.cancel).length;return!(i&&!n&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===A.data(t.target,this.widgetName+".preventClickEvent")&&A.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),h=!0))}},_mouseMove:function(t){if(this._mouseMoved){if(A.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&A.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),h=!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});!function(){function x(t,e,i){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?i/100:1)]}function C(t,e){return parseInt(A.css(t,e),10)||0}function e(t){var e=t[0];
vendor: 4,493 bytes, lines 4-5
4return 9===e.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:A.isWindow(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}A.ui=A.ui||{};var s,S,k=Math.max,T=Math.abs,D=Math.round,n=/left|center|right/,a=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,o=/^\w+/,l=/%$/,i=A.fn.position;A.position={scrollbarWidth:function(){if(s!==undefined)return s;var t,e,i=A("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),n=i.children()[0];return A("body").append(i),t=n.offsetWidth,i.css("overflow","scroll"),t===(e=n.offsetWidth)&&(e=i[0].clientWidth),i.remove(),s=t-e},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),n="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?A.position.scrollbarWidth():0,height:n?A.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=A(t||window),i=A.isWindow(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:e.offset()||{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:i||n?e.width():e.outerWidth(),height:i||n?e.height():e.outerHeight()}}},A.fn.position=function(c){if(!c||!c.of)return i.apply(this,arguments);c=A.extend({},c);var u,p,f,g,m,t,v=A(c.of),_=A.position.getWithinInfo(c.within),b=A.position.getScrollInfo(_),y=(c.collision||"flip").split(" "),w={};return t=e(v),v[0].preventDefault&&(c.at="left top"),p=t.width,f=t.height,g=t.offset,m=A.extend({},g),A.each(["my","at"],function(){var t,e,i=(c[this]||"").split(" ");1===i.length&&(i=n.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]),i[0]=n.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],c[this]=[o.exec(i[0])[0],o.exec(i[1])[0]]}),1===y.length&&(y[1]=y[0]),"right"===c.at[0]?m.left+=p:"center"===c.at[0]&&(m.left+=p/2),"bottom"===c.at[1]?m.top+=f:"center"===c.at[1]&&(m.top+=f/2),u=x(w.at,p,f),m.left+=u[0],m.top+=u[1],this.each(function(){var i,t,r=A(this),o=r.outerWidth(),l=r.outerHeight(),e=C(this,"marginLeft"),n=C(this,"marginTop"),s=o+e+C(this,"marginRight")+b.width,a=l+n+C(this,"marginBottom")+b.height,h=A.extend({},m),d=x(w.my,r.outerWidth()
5,r.outerHeight());"right"===c.my[0]?h.left-=o:"center"===c.my[0]&&(h.left-=o/2),"bottom"===c.my[1]?h.top-=l:"center"===c.my[1]&&(h.top-=l/2),h.left+=d[0],h.top+=d[1],S||(h.left=D(h.left),h.top=D(h.top)),i={marginLeft:e,marginTop:n},A.each(["left","top"],function(t,e){A.ui.position[y[t]]&&A.ui.position[y[t]][e](h,{targetWidth:p,targetHeight:f,elemWidth:o,elemHeight:l,collisionPosition:i,collisionWidth:s,collisionHeight:a,offset:[u[0]+d[0],u[1]+d[1]],my:c.my,at:c.at,within:_,elem:r})}),c.using&&(t=function(t){var e=g.left-h.left,i=e+p-o,n=g.top-h.top,s=n+f-l,a={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:r,left:h.left,top:h.top,width:o,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:s<0?"top":0<n?"bottom":"middle"};p<o&&T(e+i)<p&&(a.horizontal="center"),f<l&&T(n+s)<f&&(a.vertical="middle"),k(T(e),T(i))>k(T(n),T(s))?a.important="horizontal":a.important="vertical",c.using.call(this,t,a)}),r.offset(A.extend(h,{using:t}))})},A.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,r=t.left-e.collisionPosition.marginLeft,o=s-r,l=r+e.collisionWidth-a-s;e.collisionWidth>a?0<o&&l<=0?(i=t.left+o+e.collisionWidth-a-s,t.left+=o-i):t.left=0<l&&o<=0?s:l<o?s+a-e.collisionWidth:s:0<o?t.left+=o:0<l?t.left-=l:t.left=k(t.left-r,t.left)},top:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollTop:n.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,o=s-r,l=r+e.collisionHeight-a-s;e.collisionHeight>a?0<o&&l<=0?(i=t.top+o+e.collisionHeight-a-s,t.top+=o-i):t.top=0<l&&o<=0?s:l<o?s+a-e.collisionHeight:s:0<o?t.top+=o:0<l?t.top-=l:t.top=k(t.top-r,t.top)}},flip:{left:function(t,e){var i,n,s=e.within,a=s.offset.left+s.scrollLeft,r=s.width,o=s.isWindow?s.scrollLeft:s.offset.left,l=t.left-e.collisionPosition.marginLeft,h=l-o,d=l+e.collisionWidth-r-o,c="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,u="left"
5===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];h<0?((i=t.left+c+u+p+e.collisionWidth-r-a)<0||i<T(h))&&(t.left+=c+u+p):0<d&&(0<(n=t.left-e.collisionPosition.marginLeft+c+u+p-o)||T(n)<d)&&(t.left+=c+u+p)},top:function(t,e){var i,n,s=e.within,a=s.offset.top+s.scrollTop,r=s.height,o=s.isWindow?s.scrollTop:s.offset.top,l=t.top-e.collisionPosition.marginTop,h=l-o,d=l+e.collisionHeight-r-o,c="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,u="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,p=-2*e.offset[1];h<0?((n=t.top+c+u+p+e.collisionHeight-r-a)<0||n<T(h))&&(t.top+=c+u+p):0<d&&(0<(i=t.top-e.collisionPosition.marginTop+c+u+p-o)||T(i)<d)&&(t.top+=c+u+p)}},flipfit:{left:function(){A.ui.position.flip.left.apply(this,arguments),A.ui.position.fit.left.apply(this,arguments)},top:function(){A.ui.position.flip.top.apply(this,arguments),A.ui.position.fit.top.apply(this,arguments)}}},function(){var t,e,i,n,s,a=document.getElementsByTagName("body")[0],r=document.createElement("div");for(s in t=document.createElement(a?"div":"body"),i={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&A.extend(i,{position:"absolute",left:"-1000px",top:"-1000px"}),i)t.style[s]=i[s];t.appendChild(r),(e=a||document.documentElement).insertBefore(t,e.firstChild),r.style.cssText="position: absolute; left: 10.7432222px;",n=A(r).offset().left,S=10<n&&n<11,t.innerHTML="",e.removeChild(t)}()}();A.ui.position;A.widget("ui.draggable",A.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return this._blurActiveElement(t),!(this.helper||e.disabled||0<A(t.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=A(this);return A("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=this.document[0];if(this.handleElement.is(t.target))try{e.activeElement&&"body"!==e.activeElement.nodeName.toLowerCase()&&A(e.activeElement).blur()}catch(i){}},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),A.ui.ddmanager&&(A.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===A(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),A.ui.ddmanager&&!e.dropBehaviour&&A.ui.ddmanager.prepareOffsets(this,t),this._normalizeRightBottom(),this._mouseDrag(t,!0),A.ui.ddmanager&&A.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left
vendor: 3,230 bytes, line 5
5:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp({}),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",A.ui.ddmanager&&A.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return A.ui.ddmanager&&!this.options.dropBehaviour&&(i=A.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||A.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?A(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),A.ui.ddmanager&&A.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.focus(),A.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!A(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(t){var e=this.options,i=A.isFunction(e.helper),n=i?A(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),A.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&A.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRo
vendor: 4,335 bytes, line 5
5otNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i,n=this.options,s=this.document[0];this.relativeContainer=null,n.containment?"window"!==n.containment?"document"!==n.containment?n.containment.constructor!==Array?("parent"===n.containment&&(n.containment=this.helper[0].parentNode),(i=(e=A(n.containment))[0])&&(t=/(scroll|auto)/.test(e.css("overflow")),this.containment=[(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("paddingLeft"),10)||0),(parseInt(e.css("borderTopWidth"),10)||0)+(parseInt(e.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(e.css("borderRightWidth"),10)||0)-(parseInt(e.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(e.css("borderBottomWidth"),10)||0)-(parseInt(e.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=e)):this.containment=n.containment:this.containment=[0,0,A(s).width()-this.helperProportions.width-this.margins.left,(A(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[A(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,A(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,A(window).scrollLeft()+A(window).width()-this.helperProportions.width-this.margins.left,A(window).scrollTop()+(A(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,s,a,r=this.options,o=this._isRootNode(this.scrollParent[0]),l=t.pageX,h=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,a=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-r.grid[0]:a+r.grid[0]:a),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left
vendor: 4,184 bytes, line 5
5:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(t,e,i){return i=i||this._uiHash(),A.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),A.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),A.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var n=A.extend({},t,{item:i.element});i.sortables=[],A(i.options.connectToSortable).each(function(){var t=A(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,n))})},stop:function(e,t,i){var n=A.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,A.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,n))})},drag:function(i,n,s){A.each(s.sortables,function(){var t=!1,e=this;e.positionAbs=s.positionAbs,e.helperProportions=s.helperProportions,e.offset.click=s.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,A.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==e&&this._intersectsWith(this.containerCache)&&A.contains(e.element[0],this.element[0])&&(t=!1),t})),t?(e.isOver||(e.isOver=1,s._parent=n.helper.parent(),e.currentItem=n.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return n.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=s.offset.click.top,e.offset.click.left=s.offset.click.left,e.offset.parent.left-=s.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=s.offset.parent.top-e.offset.parent.top,s._trigger("toSortable",i),s.dropped=e.element,A.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,e.fromOutside=s),e.currentItem&&(e._mouseDrag(i),n.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),n.helper.appendTo(s._parent),s._refreshOffsets(i),n.position=s._generatePosition(i,!0),s._trigger("fromSortable",i),s.dropped=!1,A.each(s.sortables,function(){this.refreshPositions()}))})}}),A.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var n=A("body"),s=i.options;n.css("cursor")&&(s._cursor=n.css("cursor")),n.css("cursor",s.cursor)},stop:function(t,e,i){var n=i.options;n._cursor&&A("body").css("cursor",n._cursor)}}),A.ui.plugin.add("draggable","opacity",{start:function(t,e,i){var n=A(e.helper),s=i.options;n.css("opacity")&&(s._opacity=n.css("opacity")),n.css("opacity",s.opacity)},stop:function(t,e,i){var n=i.options;n._opacity&&A(e.helper).css("opacity",n._opacity)}}),A.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())}
vendor: 6,774 bytes, line 5
5,drag:function(t,e,i){var n=i.options,s=!1,a=i.scrollParentNotHidden[0],r=i.document[0];a!==r&&"HTML"!==a.tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+a.offsetHeight-t.pageY<n.scrollSensitivity?a.scrollTop=s=a.scrollTop+n.scrollSpeed:t.pageY-i.overflowOffset.top<n.scrollSensitivity&&(a.scrollTop=s=a.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+a.offsetWidth-t.pageX<n.scrollSensitivity?a.scrollLeft=s=a.scrollLeft+n.scrollSpeed:t.pageX-i.overflowOffset.left<n.scrollSensitivity&&(a.scrollLeft=s=a.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(t.pageY-A(r).scrollTop()<n.scrollSensitivity?s=A(r).scrollTop(A(r).scrollTop()-n.scrollSpeed):A(window).height()-(t.pageY-A(r).scrollTop())<n.scrollSensitivity&&(s=A(r).scrollTop(A(r).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(t.pageX-A(r).scrollLeft()<n.scrollSensitivity?s=A(r).scrollLeft(A(r).scrollLeft()-n.scrollSpeed):A(window).width()-(t.pageX-A(r).scrollLeft())<n.scrollSensitivity&&(s=A(r).scrollLeft(A(r).scrollLeft()+n.scrollSpeed)))),!1!==s&&A.ui.ddmanager&&!n.dropBehaviour&&A.ui.ddmanager.prepareOffsets(i,t)}}),A.ui.plugin.add("draggable","snap",{start:function(t,e,i){var n=i.options;i.snapElements=[],A(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var t=A(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){var n,s,a,r,o,l,h,d,c,u,p=i.options,f=p.snapTolerance,g=e.offset.left,m=g+i.helperProportions.width,v=e.offset.top,_=v+i.helperProportions.height;for(c=i.snapElements.length-1;0<=c;c--)l=(o=i.snapElements[c].left-i.margins.left)+i.snapElements[c].width,d=(h=i.snapElements[c].top-i.margins.top)+i.snapElements[c].height,m<o-f||l+f<g||_<h-f||d+f<v||!A.contains(i.snapElements[c].item.ownerDocument,i.snapElements[c].item)?(i.snapElements[c].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,A.extend(i._uiHash(),{snapItem:i.snapElements[c].item})),i.snapElements[c].snapping=!1):("inner"!==p.snapMode&&(n=Math.abs(h-_)<=f,s=Math.abs(d-v)<=f,a=Math.abs(o-m)<=f,r=Math.abs(l-g)<=f,n&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),s&&(e.position.top=i._convertPositionTo("relative",{top:d,left:0}).top),a&&(e.position.left=i._convertPositionTo("relative",{top:0,left:o-i.helperProportions.width}).left),r&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),u=n||s||a||r,"outer"!==p.snapMode&&(n=Math.abs(h-v)<=f,s=Math.abs(d-_)<=f,a=Math.abs(o-g)<=f,r=Math.abs(l-m)<=f,n&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),s&&(e.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top),a&&(e.position.left=i._convertPositionTo("relative",{top:0,left:o}).left),r&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[c].snapping&&(n||s||a||r||u)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,A.extend(i._uiHash(),{snapItem:i.snapElements[c].item})),i.snapElements[c].snapping=n||s||a||r||u)}}),A.ui.plugin.add("draggable","stack",{start:function(t,e,i){var n,s=i.options,a=A.makeArray(A(s.stack)).sort(function(t,e){return(parseInt(A(t).css("zIndex"),10)||0)-(parseInt(A(e).css("zIndex"),10)||0)});a.length&&(n=parseInt(A(a[0]).css("zIndex"),10)||0,A(a).each(function(t){A(this).css("zIndex",n+t)}),this.css("zIndex",n+a.length))}}),A.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){var n=A(e.helper),s=i.options;n.css("zIndex")&&(s._zIndex=n.css("zIndex")),n.css("zIndex",s.zIndex)},stop:function(t,e,i){var n=i.options;n._zIndex&&A(e.helper).css("zIndex",n._zIndex)}});A.ui.draggable;A.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept=A.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(t){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=t},this._addToManager(t.scope),t.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(t){A.ui.ddmanager.droppables[t]=A.ui.ddmanager.droppables[t]||[],A.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=A.ui.ddmanager.droppables[this.options.scope];this._splice(t),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,e){if("accept"===t)this.accept=A.isFunction(e)?e:function(t){return t.is(e)};else if("scope"===t){var i=A.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(e)}this._super(t,e)},_activate:function(t){var e=A.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=A.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=A.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=A.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||A.ui.ddmanager.current,n=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=A(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&A.ui.intersect(i,A.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(n=!0)}),!n&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(i)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),A.ui.intersect=function(){function u(t,e,i){return e<=t&&t<e+i}
vendor: 18,982 bytes, lines 5-6
5return function(t,e,i,n){if(!e.offset)return!1;var s=(t.positionAbs||t.position.absolute).left+t.margins.left,a=(t.positionAbs||t.position.absolute).top+t.margins.top,r=s+t.helperProportions.width,o=a+t.helperProportions.height,l=e.offset.left,h=e.offset.top,d=l+e.proportions().width,c=h+e.proportions().height;switch(i){case"fit":return l<=s&&r<=d&&h<=a&&o<=c;case"intersect":return l<s+t.helperProportions.width/2&&r-t.helperProportions.width/2<d&&h<a+t.helperProportions.height/2&&o-t.helperProportions.height/2<c;case"pointer":return u(n.pageY,h,e.proportions().height)&&u(n.pageX,l,e.proportions().width);case"touch":return(h<=a&&a<=c||h<=o&&o<=c||a<h&&c<o)&&(l<=s&&s<=d||l<=r&&r<=d||s<l&&d<r);default:return!1}}}(),A.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,e){var i,n,s=A.ui.ddmanager.droppables[t.options.scope]||[],a=e?e.type:null,r=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<s.length;i++)if(!(s[i].options.disabled||t&&!s[i].accept.call(s[i].element[0],t.currentItem||t.element))){for(n=0;n<r.length;n++)if(r[n]===s[i].element[0]){s[i].proportions().height=0;continue t}s[i].visible="none"!==s[i].element.css("display"),s[i].visible&&("mousedown"===a&&s[i]._activate.call(s[i],e),s[i].offset=s[i].element.offset(),s[i].proportions({width:s[i].element[0].offsetWidth,height:s[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return A.each((A.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&A.ui.intersect(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e)))}),i},dragStart:function(t,e){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||A.ui.ddmanager.prepareOffsets(t,e)})},drag:function(a,r){a.options.refreshPositions&&A.ui.ddmanager.prepareOffsets(a,r),A.each(A.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var t,e,i,n=A.ui.intersect(a,this,this.options.tolerance,r),s=!n&&this.isover?"isout":n&&!this.isover?"isover":null;s&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return A(this).droppable("instance").options.scope===e})).length&&((t=A(i[0]).droppable("instance")).greedyChild="isover"===s)),t&&"isover"===s&&(t.isover=!1,t.isout=!0,t._out.call(t,r)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,r),t&&"isout"===s&&(t.isout=!1,t.isover=!0,t._over.call(t,r)))}})},dragStop:function(t,e){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||A.ui.ddmanager.prepareOffsets(t,e)}};A.ui.droppable;A.widget("ui.resizable",A.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseInt(t,10)||0},_isNumber:function(t){return!isNaN(parseInt(t,10))},_hasScroll:function(t,e){if("hidden"===A(t).css("overflow"))return!1;var i=e&&"left"===e?"scrollLeft":"scrollTop",n=!1;return 0<t[i]||(t[i]=1,n=0<t[i],t[i]=0,n)},_create:function(){var t,e,i,n,a=this,s=this.options;if(this.element.addClass("ui-resizable"),A.extend(this,{_aspectRatio:!!s.aspectRatio,aspectRatio:s.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:s.helper||s.ghost||s.animate?s.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(A("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=s.handles||(A(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=A(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},e=0;e<t.length;e++)i=A.trim(t[e]),(n=A("<div class='ui-resizable-handle "+("ui-resizable-"+i)+"'></div>")).css({zIndex:s.zIndex}),"se"===i&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[i]=".ui-resizable-"+i,this.element.append(n);this._renderAxis=function(t){var e,i,n,s;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=A(this.handles[e]),this._on(this.handles[e],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=A(this.handles[e],this.element),s=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),n=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(n,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover(function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")}),s.autoHide&&(this._handles.hide(),A(this.element).addClass("ui-resizable-autohide").mouseenter(function(){s.disabled||(A(this).removeClass("ui-resizable-autohide"),a._handles.show())}).mouseleave(function(){s.disabled||a.resizing||(A(this).addClass("ui-resizable-autohide"),a._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,e=function(t){A(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(e(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_mouseCapture:function(t){var e,i,n=!1;for(e in this.handles)((i=A(this.handles[e])[0])===t.target||A.contains(i,t.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(t){var e,i,n,s=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(e+=A(s.containment).scrollLeft()||0,i+=A(s.containment).scrollTop()||0),this.offset=this.helper.offset(),
6this.position={left:e,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=A(".ui-resizable-"+this.axis).css("cursor"),A("body").css("cursor","auto"===n?this.axis+"-resize":n),a.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e,i,n=this.originalMousePosition,s=this.axis,a=t.pageX-n.left||0,r=t.pageY-n.top||0,o=this._change[s];return this._updatePrevProperties(),o&&(e=o.apply(this,[t,a,r]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),A.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,n,s,a,r,o,l=this.options,h=this;return this._helper&&(n=(i=(e=this._proportionallyResizeElements).length&&/textarea/i.test(e[0].nodeName))&&this._hasScroll(e[0],"left")?0:h.sizeDiff.height,s=i?0:h.sizeDiff.width,a={width:h.helper.width()-s,height:h.helper.height()-n},r=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||null,o=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null,l.animate||this.element.css(A.extend(a,{top:o,left:r})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!l.animate&&this._proportionallyResize()),A("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,s,a,r=this.options;a={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:Infinity,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:Infinity},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,n=a.minWidth/this.aspectRatio,i=a.maxHeight*this.aspectRatio,s=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),n>a.minHeight&&(a.minHeight=n),i<a.maxWidth&&(a.maxWidth=i),s<a.maxHeight&&(a.maxHeight=s)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,a=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,o=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,h=/sw|nw|w/.test(i),d=/nw|ne|n/.test(i);return a&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),a&&h&&(t.left=o-e.minWidth),n&&h&&(t.left=o-e.maxWidth),r&&d&&(t.top=l-e.minHeight),s&&d&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseInt(n[e],10)||0,i[e]+=parseInt(s[e],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||A("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return A.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return A.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return A.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return A.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){A.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),A.ui.plugin.add("resizable","animate",{stop:function(e){var i=A(this).resizable("instance"),t=i.options,n=i._proportionallyResizeElements,s=n.length&&/textarea/i.test(n[0].nodeName),a=s&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=s?0:i.sizeDiff.width,o={width:i.size.width-r,height:i.size.height-a},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(A.extend(o,h&&l?{top:h,left:l}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.length&&A(n[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),A.ui.plugin.add("resizable","containment",{start:function(){var i,n,t,e,s,a,r,o=A(this).resizable("instance"),l=o.options,h=o.element,d=l.containment,c=d instanceof A?d.get(0):/parent/.test(d)?h.parent().get(0):d;c&&(o.containerElement=A(c),/document/.test(d)||d===document?(o.containerOffset={left:0,top:0},o.containerPosition={left:0,top:0},o.parentData={element:A(document),left:0,top:0,width:A(document).width(),height:A(document).height()||document.body.parentNode.scrollHeight}):(i=A(c),n=[],A(["Top","Right","Left","Bottom"]).each(function(t,e){n[t]=o._num(i.css("padding"+e))}),o.containerOffset=i.offset(),o.containerPosition=i.position(),o.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},t=o.containerOffset,e=o.containerSize.height,s=o.containerSize.width,a=o._hasScroll(c,"left")?c.scrollWidth:s,r=o._hasScroll(c)?c.scrollHeight:e,o.parentData={element:c,left:t.left,top:t.top,width:a,height:r}))},resize:function(t){var e,i,n,s,a=A(this).resizable("instance"),r=a.options,o=a.containerOffset,l=a.position,h=a._aspectRatio||t.shiftKey,d={top:0,left:0},c=a.containerElement,u=!0;c[0]!==document&&/static/.test(c.css("position"))&&(d=o),l.left<(a._helper?o.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-o.left:a.position.left-d.left),h&&(a.size.height=a.size.width/a.aspectRatio,u=!1),a.position.left=r.helper?o.left:0),l.top<(a._helper?o.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-o.top:a.position.top),h&&(a.size.width=a.size.height*a.aspectRatio,u=!1),a.position.top=a._helper?o.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),s=/relative|absolute/.test(a.containerElement.css("position")),n&&s?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),e=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-d.left:a.offset.left-o.left)),i=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-d.top:a.offset.top-o.top)),e+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-e,h&&(a.size.height=a.size.width/a.aspectRatio,u=!1)),i+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-i,h&&(a.size.width=a.size.height*a.aspectRatio,u=!1)),u||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var t=A(this).resizable("instance"),e=t.options,i=t.containerOffset,n=t.containerPosition,s=t.containerElement,a=A(t.helper),r=a.offset(),o=a.outerWidth()-t.sizeDiff.width,l=a.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(s.css("position"))&&A(this).css({left:r.left-n.left-i.left,width:o,height:l}),t._helper&&!e.animate&&/static/.test(s.css("position"))&&A(this).css({left:r.left-n.left-i.left,width:o,height:l})}}),A.ui.plugin.add("resizable","alsoResize",{start:function(){var t=A(this).resizable("instance").options;A(t.alsoResize).each(function(){var t=A(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})},resize:function(t,i){var e=A(this).resizable("instance"),n=e.options,s=e.originalSize,a=e.originalPosition,r={height:e.size.height-s.height||0,width:e.size.width-s.width||0,top:e.position.top-a.top||0,left
vendor: 1,424 bytes, line 6
6:e.position.left-a.left||0};A(n.alsoResize).each(function(){var t=A(this),n=A(this).data("ui-resizable-alsoresize"),s={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];A.each(e,function(t,e){var i=(n[e]||0)+(r[e]||0);i&&0<=i&&(s[e]=i||null)}),t.css(s)})},stop:function(){A(this).removeData("resizable-alsoresize")}}),A.ui.plugin.add("resizable","ghost",{start:function(){var t=A(this).resizable("instance"),e=t.options,i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof e.ghost?e.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=A(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=A(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),A.ui.plugin.add("resizable","grid",{resize:function(){var t,e=A(this).resizable("instance"),i=e.options,n=e.size,s=e.originalSize,a=e.originalPosition,r=e.axis,o="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=o[0]||1,h=o[1]||1,d=Math.round((n.width-s.width)/l)*l,c=Math.round((n.height-s.height)/h)*h,u=s.width+d,p=s.height+c,f=i.maxWidth&&i.maxWidth<u,g=i.maxHeight&&i.maxHeight<p,m=i.minWidth&&i.minWidth>u,v=i.minHeight&&i.minHeight>p;
6i.grid=o,m&&(u+=l),v&&(p+=h),f&&(u-=l),g&&(p-=h),/^(se|s|e)$/.test(r)?(e.size.width=u,e.size.height=p):/^(ne)$/.test(r)?(e.size.width=u,e.size.height=p,e.position.top=a.top-c):/^(sw)$/.test(r)?(e.size.width=u,e.size.height=p,e.position.left=a.left-d):((p-h<=0||u-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<p-h?(e.size.height=p,e.position.top=a.top-c):(p=h-t.height,e.size.height=p,e.position.top=a.top+s.height-p),0<u-l?(e.size.width=u,e.position.left=a.left-d):(u=l-t.width,e.size.width=u,e.position.left=a.left+s.width-u))}});A.ui.resizable,A.widget("ui.selectable",A.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,e=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(t=A(e.options.filter,e.element[0])).addClass("ui-selectee"),t.each(function(){var t=A(this),e=t.offset();A.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=A("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(i){var n=this,t=this.options;this.opos=[i.pageX,i.pageY],this.options.disabled||(this.selectees=A(t.filter,this.element[0]),this._trigger("start",i),A(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=A.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(t.$element.removeClass("ui-selected"),t.selected=!1,t.$element.addClass("ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",i,{unselecting:t.element}))}),A(i.target).parents().addBack().each(function(){var t,e=A.data(this,"selectable-item");if(e)return t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),e.$element.removeClass(t?"ui-unselecting":"ui-selected").addClass(t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?n._trigger("selecting",i,{selecting:e.element}):n._trigger("unselecting",i,{unselecting:e.element}),!1}))},_mouseDrag:function(i){if(this.dragged=!0,!this.options.disabled){var t,n=this,s=this.options,a=this.opos[0],r=this.opos[1],o=i.pageX,l=i.pageY;return o<a&&(t=o,o=a,a=t),l<r&&(t=l,l=r,r=t),this.helper.css({left:a,top:r,width:o-a,height:l-r}),this.selectees.each(function(){var t=A.data(this,"selectable-item"),e=!1;t&&t.element!==n.element[0]&&("touch"===s.tolerance?e=!(t.left>o||t.right<a||t.top>l||t.bottom<r):"fit"===s.tolerance&&(e=t.left>a&&t.right<o&&t.top>r&&t.bottom<l),e?(t.selected&&(t.$element.removeClass("ui-selected"),t.selected=!1),t.unselecting&&(t.$element.removeClass("ui-unselecting"),t.unselecting=!1),t.selecting||(t.$element.addClass("ui-selecting"),t.selecting=!0,n._trigger("selecting",i,{selecting:t.element}))):(t.selecting&&((i.metaKey||i.ctrlKey)&&t.startselected?(t.$element.removeClass("ui-selecting"),t.selecting=!1,t.$element.addClass("ui-selected"),t.selected=!0):(t.$element.removeClass("ui-selecting"),t.selecting=!1,t.startselected&&(t.$element.addClass("ui-unselecting"),t.unselecting=!0),n._trigger("unselecting",i,{unselecting:t.element}))),t.selected&&(i.metaKey||i.ctrlKey||t.startselected||(t.$element.removeClass("ui-selected"),t.selected=!1,t.$element.addClass("ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",i,{unselecting:t.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,A(".ui-unselecting",this.element[0]).each(function(){var t=A.data(this,"selectable-item");t.$element.removeClass("ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),A(".ui-selecting",this.element[0]).each(function(){var t=A.data(this,"selectable-item");t.$element.removeClass("ui-selecting").addClass("ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),A.widget("ui.sortable",A.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null}
vendor: 8,001 bytes, line 6
6,_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),A.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,n=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),A(t.target).parents().each(function(){if(A.data(this,s.widgetName+"-item")===s)return i=A(this),!1}),A.data(t.target,s.widgetName+"-item")===s&&(i=A(t.target)),!!i&&(!(this.options.handle&&!e&&(A(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(n=!0)}),!n))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,e,i){var n,s,a=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},A.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",a.cursor),this.storedStylesheet=A("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(s)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return A.ui.ddmanager&&(A.ui.ddmanager.current=this),A.ui.ddmanager&&!a.dropBehaviour&&A.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,i,n,s,a=this.options,r=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+a.scrollSpeed:t.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+a.scrollSpeed:t.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(t.pageY-this.document.scrollTop()<a.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<a.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),t.pageX-this.document.scrollLeft()<a.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),!1!==r&&A.ui.ddmanager&&!a.dropBehaviour&&A.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;0<=e;e--)if(n=(i=this.items[e]).item[0],(s=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(n===this.currentItem[0]||this.placeholder[1===s?"next":"prev"]()[0]===n||A.contains(this.placeholder[0],n)||"semi-dynamic"===this.options.type&&A.contains(this.element[0],n))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),A.ui.ddmanager&&A.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){if(t){if(A.ui.ddmanager&&!this.options.dropBehaviour&&A.ui.ddmanager.drop(this,t),this.options.revert){var i=this,n=this.placeholder.offset(),s=this.options.axis,a={};s&&"x"!==s||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,A(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){i._clear(t)})}else this._clear(t,e);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),A.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?A(this.domPosition.prev).after(this.currentItem):A(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},A(t).each(function(){var t=(A(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(A(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,a=t.left,r=a+t.width,o=t.to
6p,l=o+t.height,h=this.offset.click.top,d=this.offset.click.left,c="x"===this.options.axis||o<n+h&&n+h<l,u="y"===this.options.axis||a<e+d&&e+d<r,p=c&&u;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:a<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),n=e&&i,s=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return!!n&&(this.floating?a&&"right"===a||"down"===s?2:1:s&&("down"===s?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){function e(){r.push(this)}var i,n,s,a,r=[],o=[],l=this._connectWith();if(l&&t)for(i=l.length-1;0<=i;i--)for(n=(s=A(l[i],this.document[0])).length-1;0<=n;n--)(a=A.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&o.push([A.isFunction(a.options.items)?a.options.items.call(a.element):A(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(o.push([A.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):A(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;0<=i;i--)o[i][0].each(e);return A(r)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=A.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,n,s,a,r,o,l,h=this.items,d=[[A.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):A(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready)for(e=c.length-1;0<=e;e--)for(i=(n=A(c[e],this.document[0])).length-1;0<=i;i--)(s=A.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&(d.push([A.isFunction(s.options.items)?s.options.items.call(s.element[0],t,{item:this.currentItem}):A(s.options.items,s.element),s]),this.containers.push(s));for(e=d.length-1;0<=e;e--)for(a=d[e][1],i=0,l=(r=d[e][0]).length;i<l;i++)(o=A(r[i])).data(this.widgetName+"-item",a),h.push({item:o,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var e,i,n,s;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),e=this.items.length-1;0<=e;e--)(i=this.items[e]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?A(this.options.toleranceElement,i.item):i.item,t||(i.width=n.outerWidth(),i.height=n.outerHeight()),s=n.offset(),i.left=s.left,i.top=s.top);
vendor: 12,191 bytes, lines 6-7
6if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)s=this.containers[e].element.offset(),this.containers[e].containerCache.left=s.left,this.containers[e].containerCache.top=s.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var n,s=(i=i||this).options;s.placeholder&&s.placeholder.constructor!==String||(n=s.placeholder,s.placeholder={element:function(){var t=i.currentItem[0].nodeName.toLowerCase(),e=A("<"+t+">",i.document[0]).addClass(n||i.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===t?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),A("<tr>",i.document[0]).appendTo(e)):"tr"===t?i._createTrPlaceholder(i.currentItem,e):"img"===t&&e.attr("src",i.currentItem.attr("src")),n||e.css("visibility","hidden"),e},update:function(t,e){n&&!s.forcePlaceholderSize||(e.height()||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=A(s.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),s.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){A("<td>&#160;</td>",i.document[0]).attr("colspan",A(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){var e,i,n,s,a,r,o,l,h,d,c=null,u=null;for(e=this.containers.length-1;0<=e;e--)if(!A.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(c&&A.contains(this.containers[e].element[0],c.element[0]))continue;c=this.containers[e],u=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",t,this._uiHash(this)),this.containers[e].containerCache.over=0);if(c)if(1===this.containers.length)this.containers[u].containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1);else{for(n=1e4,s=null,a=(h=c.floating||this._isFloating(this.currentItem))?"left":"top",r=h?"width":"height",d=h?"clientX":"clientY",i=this.items.length-1;0<=i;i--)A.contains(this.containers[u].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(o=this.items[i].item.offset()[a],l=!1,t[d]-o>this.items[i][r]/2&&(l=!0),Math.abs(t[d]-o)<n&&(n=Math.abs(t[d]-o),s=this.items[i],this.direction=l?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[u])return void(this.currentContainer.containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[u].element,!0),this._trigger("change",t,this._uiHash()),this.containers[u]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[u],
7this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1}},_createHelper:function(t){var e=this.options,i=A.isFunction(e.helper)?A(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||A("parent"!==e.appendTo?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),i[0].style.width&&!e.forceHelperSize||i.width(this.currentItem.width()),i[0].style.height&&!e.forceHelperSize||i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),A.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&A.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&A.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),"document"!==n.containment&&"window"!==n.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(t=A(n.containment)[0],e=A(n.containment).offset(),i="hidden"!==A(t).css("overflow"),this.containment=[e.left+(parseInt(A(t).css("borderLeftWidth"),10)||0)+(parseInt(A(t).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(A(t).css("borderTopWidth"),10)||0)+(parseInt(A(t).css("paddingTop"),10)||0)-this.margins.top,e.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(A(t).css("borderLeftWidth"),10)||0)-(parseInt(A(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(A(t).css("borderTopWidth"),10)||0)-(parseInt(A(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&A.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(n[0].tagName);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:n.scrollTop())*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:n.scrollLeft())*i}},_generatePosition:function(t){var e,i,n=this.options,s=t.pageX,a=t.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&A.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(e=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?e-this.offset.click.top>=this.containment[1]&&e-this.offset.click.top<=this.containment[3]?e:e-this.offset.click.top>=this.containment[1]?e-n.grid[1]:e+n.grid[1]:e,i=this.originalPageX+Math.round((s-this.originalPageX)/n.grid[0])*n.grid[0],s=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-n.grid[0]:i+n.grid[0]:i)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){function i(e,i,n){return function(t){n._trigger(e,t,i._uiHash(i))}}this.reverting=!1;var n,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;0<=n;n--)e||s.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;n<s.length;n++)s[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===A.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||A([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),A.widget("ui.menu",{version:"1.11.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"}
vendor: 6,717 bytes, line 7
7,role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=A(t.target);!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&A(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var e=A(t.currentTarget);e.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(t,e)}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(t){this._delay(function(){A.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=A(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){var e,i,n,s,a=!0;switch(t.keyCode){case A.ui.keyCode.PAGE_UP:this.previousPage(t);break;case A.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case A.ui.keyCode.HOME:this._move("first","first",t);break;case A.ui.keyCode.END:this._move("last","last",t);break;case A.ui.keyCode.UP:this.previous(t);break;case A.ui.keyCode.DOWN:this.next(t);break;case A.ui.keyCode.LEFT:this.collapse(t);break;case A.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case A.ui.keyCode.ENTER:case A.ui.keyCode.SPACE:this._activate(t);break;case A.ui.keyCode.ESCAPE:this.collapse(t);break;default:a=!1,i=this.previousFilter||"",n=String.fromCharCode(t.keyCode),s=!1,clearTimeout(this.filterTimer),n===i?s=!0:n=i+n,e=this._filterMenuItems(n),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(n=String.fromCharCode(t.keyCode),e=this._filterMenuItems(n)),e.length?(this.focus(t,e),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&t.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var t,e=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),i.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=A(this),e=t.parent(),i=A("<span>").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=A(this);e._isDivider(t)&&t.addClass("ui-widget-content ui-menu-divider")}),t.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!A.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,n,s,a,r;this._hasScroll()&&(e=parseFloat(A.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(A.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-e-i,s=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=t.outerHeight(),n<0?this.activeMenu.scrollTop(s+n):a<n+r&&this.activeMenu.scrollTop(s+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=A.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:A(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this.activeMenu=t},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
7se").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(t){return!A(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(t){var e,i,n;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(e=A(this)).offset().top-i-n<0}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,i,n;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=A(this)).offset().top-i+n}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||A(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var e=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(A.trim(A(this).text()))})}});A.widget("ui.autocomplete",{version:"1.11.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,n,s,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,a="input"===t;this.isMultiLine=!!e||!a&&this.element.prop("isContentEditable"),this.valueMethod=this.element[e||a?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var e=A.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:n=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!n){var e=A.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(s)return s=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=A("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];A(t.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(t){t.target===e.element[0]||t.target===i||A.contains(i,t.target)||e.close()})})},menufocus:function(t,e){var i,n;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){A(t.target).trigger(t.originalEvent)});n=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n}
vendor: 5,103 bytes, line 7
7)&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),(i=e.item.attr("aria-label")||n.value)&&A.trim(i).length&&(this.liveRegion.children().hide(),A("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=A("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?A(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,n,s=this;A.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(A.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,e){s.xhr&&s.xhr.abort(),s.xhr=A.ajax({url:n,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(!t||e||i)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return A.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:A.map(t,function(t){return"string"==typeof t?{label:t,value:t}:A.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(A.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var n=this;A.each(t,function(t,e){n._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return A("<li>").text(e.label).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),A.extend(A.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(A.ui.autocomplete.escapeRegex(e),"i");return A.grep(t,function(t){return i.test(t.label||t.value||t)})}}),A.widget("ui.autocomplete",A.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),A("<
7div>").text(e).appendTo(this.liveRegion))}});A.ui.autocomplete;var d,c="ui-effects-",u=A;A.effects={effect:{}},function(d,c){function u(t,e,i){var n=m[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:t<0?0:n.max<t?n.max:t)}function o(r){var o=f(),l=o._rgba=[];return r=r.toLowerCase(),_(e,function(t,e){var i,n=e.re.exec(r),s=n&&e.parse(n),a=e.space||"rgba";if(s)return i=o[a](s),o[g[a].cache]=i[g[a].cache],l=o._rgba=i._rgba,!1}),l.length?("0,0,0,0"===l.join()&&d.extend(l,h.transparent),o):h[r]}function l(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}var h,t="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",p=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],f=d.Color=function(t,e,i,n){return new d.Color.fn.parse(t,e,i,n)},g={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},m={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},v=f.support={},i=d("<p>")[0],_=d.each;i.style.cssText="background-color:rgba(1,1,1,.5)",v.rgba=-1<i.style.backgroundColor.indexOf("rgba"),_(g,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),f.fn=d.extend(f.prototype,{parse:function(s,t,e,i){if(s===c)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=d(s).css(t),t=c);var a=this,n=d.type(s),r=this._rgba=[];return t!==c&&(s=[s,t,e,i],n="array"),"string"===n?this.parse(o(s)||h._default):"array"===n?(_(g.rgba.props,function(t,e){r[e.idx]=u(s[e.idx],e)}),this):"object"===n?(_(g,s instanceof f?function(t,e){s[e.cache]&&(a[e.cache]=s[e.cache].slice())}:function(t,i){var n=i.cache;_(i.props,function(t,e){if(!a[n]&&i.to){if("alpha"===t||null==s[t])return;a[n]=i.to(a._rgba)}a[n][e.idx]=u(s[t],e,!0)}),a[n]&&d.inArray(null,a[n].slice(0,3))<0&&(a[n][3]=1,i.from&&(a._rgba=i.from(a[n])))}),this):void 0},is:function(t){var s=f(t),a=!0,r=this;return _(g,function(t,e){var i,n=s[e.cache];return n&&(i=r[e.cache]||e.to&&e.to(r._rgba)||[],_(e.props,function(t,e){if(null!=n[e.idx])return a=n[e.idx]===i[e.idx]})),a}),a},_space:function(){var i=[],n=this;return _(g,function(t,e){n[e.cache]&&i.push(t)}),i.pop()},transition:function(t,r){var o=f(t),e=o._space(),i=g[e],n=0===this.alpha()?f("transparent"):this,l=n[i.cache]||i.to(n._rgba),h=l.slice();return o=o[i.cache],_(i.props,function(t,e){var i=e.idx,n=l[i],s=o[i],a=m[e.type]||{};null!==s&&(null===n?h[i]=s:(a.mod&&(s-n>a.mod/2?n+=a.mod:n-s>a.mod/2&&(n-=a.mod)),h[i]=u((s-n)*r+n,e)))}),this[e](h)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),n=f(t)._rgba;return f(d.map(e,function(t,e){return(1-i)*n[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=d.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=d.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+d.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),f.fn.parse.prototype=f.fn,g.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,
vendor: 4,138 bytes, lines 7-8
7null,null,t[3]];var e,i,n=t[0]/255,s=t[1]/255,a=t[2]/255,r=t[3],o=Math.max(n,s,a),l=Math.min(n,s,a),h=o-l,d=o+l,c=.5*d;return e=l===o?0:n===o?60*(s-a)/h+360:s===o?60*(a-n)/h+120:60*(n-s)/h+240,i=0===h?0:c<=.5?h/d:h/(2-d),[Math.round(e)%360,i,c,null==r?1:r]},g.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],s=t[3],a=n<=.5?n*(1+i):n+i-n*i,r=2*n-a;return[Math.round(255*l(r,a,e+1/3)),Math.round(255*l(r,a,e)),Math.round(255*l(r,a,e-1/3)),s]},_(g,function(l,t){var i=t.props,r=t.cache,o=t.to,h=t.from;f.fn[l]=function(t){if(o&&!this[r]&&(this[r]=o(this._rgba)),t===c)return this[r].slice();var e,n=d.type(t),s="array"===n||"object"===n?t:arguments,a=this[r].slice();return _(i,function(t,e){var i=s["object"===n?t:e.idx];null==i&&(i=a[e.idx]),a[e.idx]=u(i,e)}),h?((e=f(h(a)))[r]=a,e):f(a)},_(i,function(r,o){f.fn[r]||(f.fn[r]=function(t){var e,i=d.type(t),n="alpha"===r?this._hsla?"hsla":"rgba":l,s=this[n](),a=s[o.idx];return"undefined"===i?a:("function"===i&&(t=t.call(this,a),i=d.type(t)),null==t&&o.empty?this:("string"===i&&(e=p.exec(t))&&(t=a+parseFloat(e[2])*("+"===e[1]?1:-1)),s[o.idx]=t,this[n](s)))})})}),f.hook=function(t){var e=t.split(" ");_(e,function(t,r){d.cssHooks[r]={set:function(t,e){var i,n,s="";if("transparent"!==e&&("string"!==d.type(e)||(i=o(e)))){if(e=f(i||e),!v.rgba&&1!==e._rgba[3]){for(n="backgroundColor"===r?t.parentNode:t;(""===s||"transparent"===s)&&n&&n.style;)try{s=d.css(n,"backgroundColor"),n=n.parentNode}catch(a){}e=e.blend(s&&"transparent"!==s?s:"_default")}e=e.toRgbaString()}try{t.style[r]=e}catch(a){}}},d.fx.step[r]=function(t){t.colorInit||(t.start=f(t.elem,r),t.end=f(t.end),t.colorInit=!0),d.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})},f.hook(t),d.cssHooks.borderColor={expand:function(i){var n={};return _(["Top","Right","Bottom","Left"],function(t,e){n["border"+e+"Color"]=i}),n}},h=d.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(u),function(){function r(t){var e,i,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[e=n[i]]&&(s[A.camelCase(e)]=n[e]);else for(e in n)"string"==typeof n[e]&&(s[e]=n[e]);return s}function o(t,e){var i,n,s={};for(i in e)n=e[i],t[i]!==n&&(d[i]||!A.fx.step[i]&&isNaN(parseFloat(n))||(s[i]=n));return s}var a,s,
8l,h=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};A.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){A.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(u.style(t.elem,e,t.end),t.setAttr=!0)}}),A.fn.addBack||(A.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),A.effects.animateClass=function(s,t,e,i){var a=A.speed(t,e,i);return this.queue(function(){var t,i=A(this),e=i.attr("class")||"",n=a.children?i.find("*").addBack():i;n=n.map(function(){return{el:A(this),start:r(this)}}),(t=function(){A.each(h,function(t,e){s[e]&&i[e+"Class"](s[e])})})(),n=n.map(function(){return this.end=r(this.el[0]),this.diff=o(this.start,this.end),this}),i.attr("class",e),n=n.map(function(){var t=this,e=A.Deferred(),i=A.extend({},a,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),A.when.apply(A,n.get()).done(function(){t(),A.each(arguments,function(){var e=this.el;A.each(this.diff,function(t){e.css(t,"")})}),a.complete.call(i[0])})})},A.fn.extend({addClass:(l=A.fn.addClass,function(t,e,i,n){return e?A.effects.animateClass.call(this,{add:t},e,i,n):l.apply(this,arguments)}),removeClass:(s=A.fn.removeClass,function(t,e,i,n){return 1<arguments.length?A.effects.animateClass.call(this,{remove:t},e,i,n):s.apply(this,arguments)}
8),toggleClass:(a=A.fn.toggleClass,function(t,e,i,n,s){return"boolean"==typeof e||e===undefined?i?A.effects.animateClass.call(this,e?{add:t}:{remove:t},i,n,s):a.apply(this,arguments):A.effects.animateClass.call(this,{toggle:t},e,i,n)}),switchClass:function(t,e,i,n,s){return A.effects.animateClass.call(this,{add:e,remove:t},i,n,s)}})}(),function(){function n(t,e,i,n){return A.isPlainObject(t)&&(t=(e=t).effect),t={effect:t},null==e&&(e={}),A.isFunction(e)&&(n=e,i=null,e={}),("number"==typeof e||A.fx.speeds[e])&&(n=i,i=e,e={}),A.isFunction(i)&&(n=i,i=null),e&&A.extend(t,e),i=i||e.duration,t.duration=A.fx.off?0:"number"==typeof i?i:i in A.fx.speeds?A.fx.speeds[i]:A.fx.speeds._default,t.complete=n||e.complete,t}function i(t){return!(t&&"number"!=typeof t&&!A.fx.speeds[t])||("string"==typeof t&&!A.effects.effect[t]||(!!A.isFunction(t)||"object"==typeof t&&!t.effect))}var s,a,r;A.extend(A.effects,{version:"1.11.4",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data(c+e[i],t[0].style[e[i]])},restore:function(t,e){var i,n;for(n=0;n<e.length;n++)null!==e[n]&&((i=t.data(c+e[n]))===undefined&&(i=""),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var n={width:i.outerWidth(!0),height:i.outerHeight(!0),"float":i.css("float")},t=A("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},s=document.activeElement;try{s.id}catch(a){s=document.body}return i.wrap(t),(i[0]===s||A.contains(i[0],s))&&A(s).focus(),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(A.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),A.each(["top","left","bottom","right"],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===e||A.contains(t[0],e))&&A(e).focus()),t},setTransition:function(n,t,s,a){return a=a||{},A.each(t,function(t,e){var i=n.cssUnit(e);0<i[0]&&(a[e]=i[0]*s+i[1])}),a}}),A.fn.extend({effect:function(){function t(t){function e(){A.isFunction(n)&&n.call(i[0]),A.isFunction(t)&&t()}var i=A(this),n=a.complete,s=a.mode;(i.is(":hidden")?"hide"===s:"show"===s)?(i[s](),e()):r.call(i[0],a,e)}var a=n.apply(this,arguments),e=a.mode,i=a.queue,r=A.effects.effect[a.effect];return A.fx.off||!r?e?this[e](a.duration,a.complete):this.each(function(){a.complete&&a.complete.call(this)}):!1===i?this.each(t):this.queue(i||"fx",t)},show:(r=A.fn.show,function(t){if(i(t))return r.apply(this,arguments);var e=n.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}),hide:(a=A.fn.hide,function(t){if(i(t))return a.apply(this,arguments);var e=n.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}),toggle:(s=A.fn.toggle,function(t){if(i(t)||"boolean"==typeof t)return s.apply(this,arguments);var e=n.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}),cssUnit:function(t){var i=this.css(t),n=[];return A.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(n=[parseFloat(i),e])}),n}})}(),d={},A.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){d[t]=function(t){return Math.pow(t,e+2)}}),A.extend(d,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),A.each(d,function(t,e){A.easing["easeIn"+t]=e,A.easing["easeOut"+t]=function(t){return 1-e(1-t)},A.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});A.effects,A.effects.effect.blind=function(t,e){var i,n,s,a=A(this),r=/up|down|vertical/,o=/up|left|vertical|horizontal/,l=["position","top","bottom","left","right","height","width"],h=A.effects.setMode(a,t.mode||"hide"),d=t.direction||"up",c=r.test(d),u=c?"height":"width",p=c?"top":"left",f=o.test(d),g={},m="show"===h;a.parent().is(".ui-effects-wrapper")?A.effects.save(a.parent(),l):A.effects.save(a,l),a.show(),n=(i=A.effects.createWrapper(a).css({overflow:"hidden"}))[u](),s=parseFloat(i.css(p))||0,g[u]=m?n:0,f||(a.css(c?"bottom":"right",0).css(c?"top":"left","auto").css({position:"absolute"}),g[p]=m?s:n+s),m&&(i.css(u,0),f||i.css(p,s+n)),i.animate(g,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===h&&a.hide(),A.effects.restore(a,l),A.effects.removeWrapper(a),e()}})},A.effects.effect.bounce=function(t,e){var i,n,s,a=A(this),r=["position","top","bottom","left","right","height","width"],o=A.effects.setMode(a,t.mode||"effect"),l="hide"===o,h="show"===o,d=t.direction||"up",c=t.distance,u=t.times||5,p=2*u+(h||l?1:0),f=t.duration/p,g=t.easing,m="up"===d||"down"===d?"top":"left",v="up"===d||"left"===d,_=a.queue(),b=_.length;for((h||l)&&r.push("opacity"),A.effects.save(a,r),a.show(),A.effects.createWrapper(a),c||
vendor: 10,844 bytes, line 8
8(c=a["top"===m?"outerHeight":"outerWidth"]()/3),h&&((s={opacity:1})[m]=0,a.css("opacity",0).css(m,v?2*-c:2*c).animate(s,f,g)),l&&(c/=Math.pow(2,u-1)),i=(s={})[m]=0;i<u;i++)(n={})[m]=(v?"-=":"+=")+c,a.animate(n,f,g).animate(s,f,g),c=l?2*c:c/2;l&&((n={opacity:0})[m]=(v?"-=":"+=")+c,a.animate(n,f,g)),a.queue(function(){l&&a.hide(),A.effects.restore(a,r),A.effects.removeWrapper(a),e()}),1<b&&_.splice.apply(_,[1,0].concat(_.splice(b,p+1))),a.dequeue()},A.effects.effect.clip=function(t,e){var i,n,s,a=A(this),r=["position","top","bottom","left","right","height","width"],o="show"===A.effects.setMode(a,t.mode||"hide"),l="vertical"===(t.direction||"vertical"),h=l?"height":"width",d=l?"top":"left",c={};A.effects.save(a,r),a.show(),i=A.effects.createWrapper(a).css({overflow:"hidden"}),s=(n="IMG"===a[0].tagName?i:a)[h](),o&&(n.css(h,0),n.css(d,s/2)),c[h]=o?s:0,c[d]=o?0:s/2,n.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){o||a.hide(),A.effects.restore(a,r),A.effects.removeWrapper(a),e()}})},A.effects.effect.drop=function(t,e){var i,n=A(this),s=["position","top","bottom","left","right","opacity","height","width"],a=A.effects.setMode(n,t.mode||"hide"),r="show"===a,o=t.direction||"left",l="up"===o||"down"===o?"top":"left",h="up"===o||"left"===o?"pos":"neg",d={opacity:r?1:0};A.effects.save(n,s),n.show(),A.effects.createWrapper(n),i=t.distance||n["top"===l?"outerHeight":"outerWidth"](!0)/2,r&&n.css("opacity",0).css(l,"pos"===h?-i:i),d[l]=(r?"pos"===h?"+=":"-=":"pos"===h?"-=":"+=")+i,n.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===a&&n.hide(),A.effects.restore(n,s),A.effects.removeWrapper(n),e()}})},A.effects.effect.explode=function(t,e){function i(){v.push(this),v.length===d*c&&n()}function n(){u.css({visibility:"visible"}),A(v).remove(),p||u.hide(),e()}var s,a,r,o,l,h,d=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=d,u=A(this),p="show"===A.effects.setMode(u,t.mode||"hide"),f=u.show().css("visibility","hidden").offset(),g=Math.ceil(u.outerWidth()/c),m=Math.ceil(u.outerHeight()/d),v=[];for(s=0;s<d;s++)for(o=f.top+s*m,h=s-(d-1)/2,a=0;a<c;a++)r=f.left+a*g,l=a-(c-1)/2,u.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-a*g,top:-s*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g,height:m,left:r+(p?l*g:0),top:o+(p?h*m:0),opacity:p?0:1}).animate({left:r+(p?0:l*g),top:o+(p?0:h*m),opacity:p?1:0},t.duration||500,t.easing,i)},A.effects.effect.fade=function(t,e){var i=A(this),n=A.effects.setMode(i,t.mode||"toggle");i.animate({opacity:n},{queue:!1,duration:t.duration,easing:t.easing,complete:e})},A.effects.effect.fold=function(t,e){var i,n,s=A(this),a=["position","top","bottom","left","right","height","width"],r=A.effects.setMode(s,t.mode||"hide"),o="show"===r,l="hide"===r,h=t.size||15,d=/([0-9]+)%/.exec(h),c=!!t.horizFirst,u=o!==c,p=u?["width","height"]:["height","width"],f=t.duration/2,g={},m={};A.effects.save(s,a),s.show(),i=A.effects.createWrapper(s).css({overflow:"hidden"}),n=u?[i.width(),i.height()]:[i.height(),i.width()],d&&(h=parseInt(d[1],10)/100*n[l?0:1]),o&&i.css(c?{height:0,width:h}:{height:h,width:0}),g[p[0]]=o?n[0]:h,m[p[1]]=o?n[1]:0,i.animate(g,f,t.easing).animate(m,f,t.easing,function(){l&&s.hide(),A.effects.restore(s,a),A.effects.removeWrapper(s),e()})},A.effects.effect.highlight=function(t,e){var i=A(this),n=["backgroundImage","backgroundColor","opacity"],s=A.effects.setMode(i,t.mode||"show"),a={backgroundColor:i.css("backgroundColor")};"hide"===s&&(a.opacity=0),A.effects.save(i,n),i.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===s&&i.hide(),A.effects.restore(i,n),e()}})},A.effects.effect.size=function(i,t){var e,n,s,a=A(this),r=["position","top","bottom","left","right","width","height","overflow","opacity"],o=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],h=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=A.effects.setMode(a,i.mode||"effect"),p=i.restore||"effect"!==u,f=i.scale||"both",g=i.origin||["middle","center"],m=a.css("position"),v=p?r:o,_={height:0,width:0,outerHeight:0,outerWidth:0};"show"===u&&a.show(),e={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},"toggle"===i.mode&&"show"===u?(a.from=i.to||_,a.to=i.from||e):(a.from=i.from||("show"===u?_:e),a.to=i.to||("hide"===u?_:e)),s={from:{y:a.from.height/e.height,x:a.from.width/e.width},to:{y:a.to.height/e.height,x:a.to.width/e.width}},"box"!==f&&"both"!==f||(s.from.y!==s.to.y&&(v=v.concat(d),a.from=A.effects.setTransition(a,d,s.from.y,a.from),a.to=A.effects.setTransition(a,d,s.to.y,a.to)),s.from.x!==s.to.x&&(v=v.concat(c),a.from=A.effects.setTransition(a,c,s.from.x,a.from),a.to=A.effects.setTransition(a,c,s.to.x,a.to))),"content"!==f&&"both"!==f||s.from.y!==s.to.y&&(v=v.concat(h).concat(l),a.from=A.effects.setTransition(a,h,s.from.y,a.from),a.to=A.effects.setTransition(a,h,s.to.y,a.to)),A.effects.save(a,v),a.show(),A.effects.createWrapper(a),a.css("overflow","hidden").css(a.from),g&&(n=A.effects.getBaseline(g,e),a.from.top=(e.outerHeight-a.outerHeight())*n.y,a.from.left=(e.outerWidth-a.outerWidth())*n.x,a.to.top=(e.outerHeight-a.to.outerHeight)*n.y,a.to.left=(e.outerWidth-a.to.outerWidth)*n.x),a.css(a.from),"content"!==f&&"both"!==f||(d=d.concat(["marginTop","marginBottom"]).concat(h),c=c.concat(["marginLeft","marginRight"]),l=r.concat(d).concat(c),a.find("*[width]").each(function(){var t=A(this),e={height:t.height(),width:t.width(),outerHeight:t.outerHeight(),outerWidth:t.outerWidth()};p&&A.effects.save(t,l),t.from={height:e.height*s.from.y,width:e.width*s.from.x,outerHeight:e.outerHeight*s.from.y,outerWidth:e.outerWidth*s.from.x},t.to={height:e.height*s.to.y,width:e.width*s.to.x,outerHeight:e.height*s.to.y,outerWidth:e.width*s.to.x},s.from.y!==s.to.y&&(t.from=A.effects.setTransition(t,d,s.from.y,t.from),t.to=A.effects.setTransition(t,d,s.to.y,t.to)),s.from.x!==s.to.x&&(t.from=A.effects.setTransition(t,c,s.from.x,t.from),t.to=A.effects.setTransition(t,c,s.to.x,t.to)),t.css(t.from),t.animate(t.to,i.duration,i.easing,function(){p&&A.effects.restore(t,l)})})),a.animate(a.to,{queue:!1,duration:i.duration,easing:i.easing,complete:function(){0===a.to.opacity&&a.css("opacity",a.from.opacity),"hide"===u&&a.hide(),A.effects.restore(a,v),p||("static"===m?a.css({position:"relative",top:a.to.top,left:a.to.left}):A.each(["top","left"],function(s,t){a.css(t,function(t,e){var i=parseInt(e,10),n=s?a.to.left:a.to.top;return"auto"===e?n+"px":i+n+"px"})})),A.effects.removeWrapper(a),t()}})},A.effects.effect.scale=function(t,e){var i=A(this),n=A.extend(!0,{},t),s=A.effects.setMode(i,t.mode||"effect"),a=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===s?0:100),r=t.direction||"both",o=t.origin,l={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()},h={y:"horizontal"!==r?a/100:1,x:"vertical"!==r?a/100:1};n.effect="size",n.queue=!1,n.complete=e,"effect"!==s&&(n.origin=o||["middle","center"],n.restore=!0),n.from=t.from||("show"===s?{height:0,width:0,outerHeight:0,outerWidth:0}:l),n.to={height:l.height*h.y,width:l.width*h.x,outerHeight:l.outerHeight*h.y,outerWidth:l.outerWidth*h.x},n.fade&&("show"===s&&(n.from.opacity=0,n.to.opacity=1),"hide"===s&&(n.from.opacity=1,n.to.opacity=0)),i.effect(n)},A.effects.effect.puff=function(t,e){var i=A(this),n=A.effects.setMode(i,t.mode||"hide"),s="hide"===n,a=parseInt(t.percent,10)||150,r=a/100,o={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};A.extend(t,{effect:"scale",queue:!1,fade:!0,mode:n,complete:e,percent:s?a:100,from:s?o:{height:o.height*r,width:o.width*r,outerHeight:o.outerHeight*r,outerWidth:o.outerWidth*r}}),i.effect(t)},A.effects.effect.pulsate=function(t,e){var i,n=A(this),s=A.effects.setMode(n,t.mode||"show"),a="show"===s,r="hide"===s,o=a||"hide"===s,l=2*(t.times||5)+(o?1:0),h=t.duration/l,d=0,c=n.queue(),u=c.length;for(!a&&n.is(":visible")||(n.css("opacity",0).show(),d=1),i=1;i<l;i++)n.animate({opacity:d},h,t.easing),d=1-d;n.animate({opacity:d},h,t.easing),n.queue(function(){r&&n.hide(),e()}),1<u&&c.splice.apply(c,[1,0].concat(c.splice(u,l+1))),n.dequeue()},A.effects.effect.shake=function(t,e){var i,n=A(this),s=["position","top","bottom","left","right","height","width"],a=A.effects.setMode(n,t.mode||"effect"),r=t.direction||"left",o=t.distance||20,l=t.times||3,h=2*l+1,d=Math.round(t.duration/h),c="up"===r||"down"===r?"top":"left",u="up"===r||"left"===r,p={},f={},g={},m=n.queue(),v=m.length;for(A.effects.save(n,s),n.show(),A.effects.createWrapper(n),p[c]=(u?"-=":"+=")+o,f[c]=(u?"+=":"-=")+2*o,g[c]=(u?"-=":"+=")+2*o,n.animate(p,d,t.easing),i=1;i<l;i++)n.animate(f,d,t.easing).animate(g,d,t.easing);n.animate(f,d,t.easing).animate(p,d/2,t.easing).queue(function(){"hide"===a&&n.hide(),A.effects.restore(n,s),A.effects.removeWrapper(n),e()}),1<v&&m.splice.apply(m,[1,0].concat(m.splice(v,h+1))),n.dequeue()},A.effects.effect.slide=function(t,e){var i,n=A(this),s=["position","top","bottom","left","right","width","height"],a=A.effects.setMode(n,t.mode||"show"),r="show"===a,o=t.direction||"left",l="up"===o||"down"===o?"top":"left",h="up"===o||"left"===o,d={};A.effects.save(n,s),n.show(),i=t.distance||n["top"===l?"outerHeight":"outerWidth"](!0),A.effects.createWrapper(n).css({overflow:"hidden"}),r&&n.css(l,h?isNaN(i)?"-"+i:-i:i),d[l]=(r?h?"+=":"-=":h?"-=":"+=")+i,n.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===a&&n.hide(),A.effects.restore(n,s),A.effects.removeWrapper(n),e()}})},A.effects.effect.transfer=function(t,e){var i=A(this),n=A(t.to),s="fixed"===n.css("position"),a=A("body"),r=s?a.scrollTop():0,o=s?a.scrollLeft():0,l=n.offset(),h={top:l.top-r,left:l.left-o,height:n.innerHeight(),width:n.innerWidth()},d=i.offset(),c=A("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(t.className).css({top:d.top-r,left:d.left-o,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(h,t.duration,t.easing,function(){c.remove(),e()})}}),function(a){a.fn.extend({sliderAccess:function(s){return(s=s||{}).touchonly=s.touchonly===undefined||s.touchonly,!0!==s.touchonly||"ontouchend"in document?a(this).each(function(){var h=a(this),t=a.extend({},{where:"after",step:h.slider("option","step"),upIcon:"ui-icon-plus",downIcon:"ui-icon-minus",text:!1,upText:"+",downText:"-",buttonset:!0,buttonsetTag:"span",isRTL:!1},s),e=a("<"+t.buttonsetTag+' class="ui-slider-access"><button data-icon="'+t.downIcon+'" data-step="'+(t.isRTL?t.step:-1*t.step)+'">'+t.downText+'</button>
8<button data-icon="'+t.upIcon+'" data-step="'+(t.isRTL?-1*t.step:t.step)+'">'+t.upText+"</button></"+t.buttonsetTag+">");e.children("button").each(function(){var l=a(this);l.button({text:t.text,icons:{primary:l.data("icon")}}).click(function(t){var e=l.data("step"),i=h.slider("value"),n=i+=1*e,s=h.slider("option","min"),a=h.slider("option","max"),r=h.slider("option","slide")||function(){},o=h.slider("option","stop")||function(){};t.preventDefault(),n<s||a<n||(h.slider("value",n),r.call(h,null,{value:n}),o.call(h,null,{value:n}))})}),h[t.where](e),t.buttonset&&(e.removeClass("ui-corner-right").removeClass("ui-corner-left").buttonset(),e.eq(0).addClass("ui-corner-left"),e.eq(1).addClass("ui-corner-right"));var i=e.css({marginLeft:"after"==t.where&&!t.isRTL||"before"==t.where&&t.isRTL?10:0,marginRight:"before"==t.where&&!t.isRTL||"after"==t.where&&t.isRTL?10:0}).outerWidth(!0)+5,n=h.outerWidth(!0);h.css("display","inline-block").width(n-i)}):a(this)}})}(jQuery),function(d,l){"use strict";var h;d.rails!==l&&d.error("jquery-ujs has already been loaded!");var t=d(document);d.rails=h={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return d("meta[name=csrf-token]").attr("content")},csrfParam:function(){return d("meta[name=csrf-param]").attr("content")},CSRFProtection:function(t){var e=h.csrfToken();e&&t.setRequestHeader("X-CSRF-Token",e)},refreshCSRFTokens:function(){d('form input[name="'+h.csrfParam()+'"]').val(h.csrfToken())},fire:function(t,e,i){var n=d.Event(e);return t.trigger(n,i),!1!==n.result},confirm:function(t){return confirm(t)},ajax:function(t){return d.ajax(t)},href:function(t){return t[0].href},isRemote:function(t){return t.data("remote")!==l&&!1!==t.data("remote")},handleRemote:function(n){var t,e,i,s,a,r;if(h.fire(n,"ajax:before")){if(s=n.data("with-credentials")||null,a=n.data("type")||d.ajaxSettings&&d.ajaxSettings.dataType,n.is("form")){t=n.data("ujs:submit-button-formmethod")||n.attr("method"),e=n.data("ujs:submit-button-formaction")||n.attr("action"),i=d(n[0]).serializeArray();var o=n.data("ujs:submit-button");o&&(i.push(o),n.data("ujs:submit-button",null)),n.data("ujs:submit-button-formmethod",null),n.data("ujs:submit-button-formaction",null)}else n.is(h.inputChangeSelector)?(t=n.data("method"),e=n.data("url"),i=n.serialize(),n.data("params")&&(i=i+"&"+n.data("params"))):n.is(h.buttonClickSelector)?(t=n.data("method")||"get",e=n.data("url"),i=n.serialize(),n.data("params")&&(i=i+"&"+n.data("params"))):(t=n.data("method"),e=h.href(n),i=n.data("params")||null);return r={type:t||"GET",data:i,dataType:a,beforeSend:function(t,e){if(e.dataType===l&&t.setRequestHeader("accept","*/*;q=0.5, "+e.accepts.script),!h.fire(n,"ajax:beforeSend",[t,e]))return!1;n.trigger("ajax:send",t)},success:function(t,e,i){n.trigger("ajax:success",[t,e,i])},complete:function(t,e){n.trigger("ajax:complete",[t,e])}
8,error:function(t,e,i){n.trigger("ajax:error",[t,e,i])},crossDomain:h.isCrossDomain(e)},s&&(r.xhrFields={withCredentials:s}),e&&(r.url=e),h.ajax(r)}return!1},isCrossDomain:function(t){var e=document.createElement("a");e.href=location.href;var i=document.createElement("a");try{return i.href=t,i.href=i.href,!((!i.protocol||":"===i.protocol)&&!i.host||e.protocol+"//"+e.host==i.protocol+"//"+i.host)}catch(n){return!0}},handleMethod:function(t){var e=h.href(t),i=t.data("method"),n=t.attr("target"),s=h.csrfToken(),a=h.csrfParam(),r=d('<form method="post" action="'+e+'"></form>'),o='<input name="_method" value="'+i+'" type="hidden" />';a===l||s===l||h.isCrossDomain(e)||(o+='<input name="'+a+'" value="'+s+'" type="hidden" />'),n&&r.attr("target",n),r.hide().append(o).appendTo("body"),r.submit()},formElements:function(t,e){return t.is("form")?d(t[0].elements).filter(e):t.find(e)},disableFormElements:function(t){h.formElements(t,h.disableSelector).each(function(){h.disableFormElement(d(this))})},disableFormElement:function(t){var e,i;e=t.is("button")?"html":"val",(i=t.data("disable-with"))!==l&&(t.data("ujs:enable-with",t[e]()),t[e](i)),t.prop("disabled",!0),t.data("ujs:disabled",!0)},enableFormElements:function(t){h.formElements(t,h.enableSelector).each(function(){h.enableFormElement(d(this))})},enableFormElement:function(t){var e=t.is("button")?"html":"val";t.data("ujs:enable-with")!==l&&(t[e](t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.prop("disabled",!1),t.removeData("ujs:disabled")},allowAction:function(t){var e,i=t.data("confirm"),n=!1;if(!i)return!0;if(h.fire(t,"confirm")){try{n=h.confirm(i)}catch(s){(console.error||console.log).call(console,s.stack||s)}e=h.fire(t,"confirm:complete",[n])}return n&&e},blankInputs:function(t,e,i){var n,s,a,r=d(),o=e||"input,textarea",l=t.find(o),h={};return l.each(function(){(n=d(this)).is("input[type=radio]")?(a=n.attr("name"),h[a]||(0===t.find('input[type=radio]:checked[name="'+a+'"]').length&&(s=t.find('input[type=radio][name="'+a+'"]'),r=r.add(s)),h[a]=a)):(n.is("input[type=checkbox],input[type=radio]")?n.is(":checked"):!!n.val())===i&&(r=r.add(n))}),!!r.length&&r},nonBlankInputs:function(t,e){return h.blankInputs(t,e,!0)},stopEverything:function(t){return d(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(t){var e=t.data("disable-with");e!==l&&(t.data("ujs:enable-with",t.html()),t.html(e)),t.bind("click.railsDisable",function(t){return h.stopEverything(t)}),t.data("ujs:disabled",!0)},enableElement:function(t){t.data("ujs:enable-with")!==l&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.unbind("click.railsDisable"),t.removeData("ujs:disabled")}},h.fire(t,"rails:attachBindings")&&(d.ajaxPrefilter(function(t,e,i){t.crossDomain||h.CSRFProtection(i)}),d(window).on("pageshow.rails",function(){d(d.rails.enableSelector).each(function(){var t=d(this);t.data("ujs:disabled")&&d.rails.enableFormElement(t)}),d(d.rails.linkDisableSelector).each(function(){var t=d(this);t.data("ujs:disabled")&&d.rails.enableElement(t)})}),t.on("ajax:complete",h.linkDisableSelector,function(){h.enableElement(d(this))}),t.on("ajax:complete",h.buttonDisableSelector,function(){h.enableFormElement(d(this))}),t.on("click.rails",h.linkClickSelector,function(t){var e=d(this),i=e.data("method"),n=e.data("params"),s=t.metaKey||t.ctrlKey;if(!h.allowAction(e))return h.stopEverything(t);if(!s&&e.is(h.linkDisableSelector)&&h.disableElement(e),h.isRemote(e)){if(s&&(!i||"GET"===i)&&!n)return!0;var a=h.handleRemote(e);return!1===a?h.enableElement(e):a.fail(function(){h.enableElement(e)}),!1}return i?(h.handleMethod(e),!1):void 0}),t.on("click.rails",h.buttonClickSelector,function(t){var e=d(this);if(!h.allowAction(e)||!h.isRemote(e))return h.stopEverything(t);e.is(h.buttonDisableSelector)&&h.disableFormElement(e);var i=h.handleRemote(e);return!1===i?h.enableFormElement(e):i.fail(function(){h.enableFormElement(e)}),!1}),t.on("change.rails",h.inputChangeSelector,function(t){var e=d(this);return h.allowAction(e)&&h.isRemote(e)?(h.handleRemote(e),!1):h.stopEverything(t)}),t.on("submit.rails",h.formSubmitSelector,function(t){var e,i,n=d(this),s=h.isRemote(n);if(!h.allowAction(n))return h.stopEverything(t);if(n.attr("novalidate")===l)if(n.data("ujs:formnovalidate-button")===l){if((e=h.blankInputs(n,h.requiredInputSelector,!1))&&h.fire(n,"ajax:aborted:required",[e]))return h.stopEverything(t)}else n.data("ujs:formnovalidate-button",l);if(s){if(i=h.nonBlankInputs(n,h.fileInputSelector)){setTimeout(function(){h.disableFormElements(n)},13);var a=h.fire(n,"ajax:aborted:file",[i]);return a||setTimeout(function(){h.enableFormElements(n)},13),a}return h.handleRemote(n),!1}setTimeout(function(){h.disableFormElements(n)},13)}),t.on("click.rails",h.formInputClickSelector,function(t){var e=d(this);if(!h.allowAction(e))return h.stopEverything(t);var i=e.attr("name"),n=i?{name:i,value:e.val()}:null,s=e.closest("form");0===s.length&&(s=d("#"+e.attr("form"))),s.data("ujs:submit-button",n),s.data("ujs:formnovalidate-button",e.attr("formnovalidate")),s.data("ujs:submit-button-formaction",e.attr("formaction")),s.data("ujs:submit-button-formmethod",e.attr("formmethod"))}),t.on("ajax:send.rails",h.formSubmitSelector,function(t){this===t.target&&h.disableFormElements(d(this))}),t.on("ajax:complete.rails",h.formSubmitSelector,function(t){this===t.target&&h.enableFormElements(d(this))}),d(function(){h.refreshCSRFTokens()}))}(jQuery),function(Y){function e(t){return String(null===t||t===undefined?"":t)}function Q(t){return e(t).replace(s,function(t){return i[t]})}var n={method:"GET",queryParam:"q",searchDelay:300,minChars:1,propertyToSearch:"name",jsonContainer:null,contentType:"json",prePopulate:null,processPrePopulate:!1,hintText:"Type in a search term",noResultsText:"No results",searchingText:"Searching...",deleteText:"&times;",animateDropdown:!0,placeholder:null,theme:null,zindex:1004,resultsLimit:null,enableHTML:!1,resultsFormatter:function(t){var e=t[this.propertyToSearch];return"<li>"+(this.enableHTML?e:Q(e))+"</li>"},tokenFormatter:function(t){var e=t[this.propertyToSearch];return"<li><p>"+(this.enableHTML?e:Q(e))+"</p></li>"},tokenLimit:null,tokenDelimiter:",",preventDuplicates:!1,tokenValue:"id",tokenValidation:null,invali
8dTokenText:"Token non valido.",allowFreeTagging:!1,allowTabOut:!1,onResult:null,onCachedResult:null,onAdd:null,onFreeTaggingAdd:null,onDelete:null,onReady:null,idPrefix:"token-input-",disabled:!1},Z={tokenList:"token-input-list",token:"token-input-token",tokenReadOnly:"token-input-token-readonly",tokenDelete:"token-input-delete-token",selectedToken:"token-input-selected-token",highlightedToken:"token-input-highlighted-token",dropdown:"token-input-dropdown",dropdownItem:"token-input-dropdown-item",dropdownItem2:"token-input-dropdown-item2",selectedDropdownItem:"token-input-selected-dropdown-item",inputToken:"token-input-input-token",focused:"token-input-focused",disabled:"token-input-disabled"},X={BEFORE:0,AFTER:1,END:2},J={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUMPAD_ENTER:108,COMMA:188},i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"},s=/[&<>"'\/]/g,a={init:function(t,e){var i=Y.extend({},n,e||{});return this.each(function(){Y(this).data("settings",i),Y(this).data("tokenInputObject",new Y.TokenList(this,t,i))})},clear:function(){return this.data("tokenInputObject").clear(),this},add:function(t){return this.data("tokenInputObject").add(t),this},remove:function(t){return this.data("tokenInputObject").remove(t),this},get:function(){return this.data("tokenInputObject").getTokens()},toggleDisabled:function(t){return this.data("tokenInputObject").toggleDisabled(t),this},setOptions:function(t){return Y(this).data("settings",Y.extend({},Y(this).data("settings"),t||{})),this},destroy:function(){if(this.data("tokenInputObject")){this.data("tokenInputObject").clear();var t=this,e=this.parent();return e.empty(),t.show(),e.append(t),t}}};Y.fn.tokenInput=function(t){return a[t]?a[t].apply(this,Array.prototype.slice.call(arguments,1)):a.init.apply(this,arguments)},Y.TokenList=function(l,t,s){function i(t){return Y(l).data("settings").enableHTML?t:Q(t)}function e(t){Y(l).data("settings").disabled="boolean"==typeof t?t:!Y(l).data("settings").disabled,H.attr("disabled",Y(l).data("settings").disabled),z.toggleClass(Y(l).data("settings").classes.disabled,Y(l).data("settings").disabled),N&&c(Y(N),X.END),L.attr("disabled",Y(l).data("settings").disabled)}function a(){if(null!==Y(l).data("settings").tokenLimit&&P>=Y(l).data("settings").tokenLimit)return H.hide(),void g()}function n(){if(F!==(F=H.val())){var t=z.width()-H.offset().left-z.offset().left;W.html(Q(F)),H.width(Math.min(z.width(),Math.max(t,W.width()+30)))}}function r(){var t=Y.trim(H.val()).split(Y(l).data("settings").tokenDelimiter);Y.each(t,function(t,e){if(e=Y.trim(e)){Y.isFunction(Y(l).data("settings").onFreeTaggingAdd)&&(e=Y(l).data("settings").onFreeTaggingAdd.call(L,e));var i={};i[Y(l).data("settings").tokenValue]=i[Y(l).data("settings").propertyToSearch]=e,h(i)}})}function o(t){var e=Y(Y(l).data("settings").tokenFormatter(t)),i=!0===t.readonly;i&&e.addClass(Y(l).data("settings").classes.tokenReadOnly),e.addClass(Y(l).data("settings").classes.token).insertBefore(V),i||Y("<span>"+Y(l).data("settings").deleteText+"</span>").addClass(Y(l).data("settings").classes.tokenDelete).appendTo(e).click(function(){if(!Y(l).data("settings").disabled)return p(Y(this).parent()),L.change(),!1});var n=t;return Y.data(e.get(0),"tokeninput",t),j=j.slice(0,q).concat([n]).concat(j.slice(q)),q++,f(j,L),P+=1,null!==Y(l).data("settings").tokenLimit&&P>=Y(l).data("settings").tokenLimit&&(H.hide(),g()),e}function h(i){var t=Y(l).data("settings").onAdd,e=s.tokenValidation;if(Y.isFunction(e)&&!e.call(L,i))return v(),!1;if(0<P&&Y(l).data("settings").preventDuplicates){var n=null;if(z.children().each(function(){var t=Y(this),e=Y.data(t.get(0),"tokeninput");if(e&&e[s.tokenValue]===i[s.tokenValue])return n=t,!1}),n)return d(n),V.insertAfter(n),void I(H)}H.width(0),(null==Y(l).data("settings").tokenLimit||P<Y(l).data("settings").tokenLimit)&&(o(i),H.attr("placeholder",null),a()),H.val(""),g(),Y.isFunction(t)&&t.call(L,i)}function d(t){Y(l).data("settings").disabled||(t.addClass(Y(l).data("settings").classes.selectedToken),N=t.get(0),H.val(""),g())}function c(t,e){t.removeClass(Y(l).data("settings").classes.selectedToken),N=null,e===X.BEFORE?(V.insertBefore(t),q--):e===X.AFTER?(V.insertAfter(t),q++):(V.appendTo(z),q=P),I(H)}function u(t){var e=N;N&&c(Y(N),X.END),e===t.get(0)?c(t,X.END):d(t)}function p(t){var e=Y.data(t.get(0),"tokeninput"),i=Y(l).data(
9"settings").onDelete,n=t.prevAll().length;q<n&&n--,t.remove(),N=null,I(H),0==(j=j.slice(0,n).concat(j.slice(n+1))).length&&H.attr("placeholder",s.placeholder),n<q&&q--,f(j,L),P-=1,null!==Y(l).data("settings").tokenLimit&&(H.show().val(""),I(H)),Y.isFunction(i)&&i.call(L,e)}function f(t,e){var i=Y.map(t,function(t){return"function"==typeof Y(l).data("settings").tokenValue?Y(l).data("settings").tokenValue.call(this,t):t[Y(l).data("settings").tokenValue]});e.val(i.join(Y(l).data("settings").tokenDelimiter))}function g(){B.hide().empty(),$=null}function m(){B.css({position:"absolute",top:z.offset().top+z[0].getBoundingClientRect().height,left:z.offset().left,width:z.width()+2,"z-index":Y(l).data("settings").zindex}).show()}function v(){s.tokenValidation&&(B.html("<p>"+s.invalidTokenText+"</p>"),m())}function _(){Y(l).data("settings").searchingText&&(B.html("<p>"+i(Y(l).data("settings").searchingText)+"</p>"),m())}function b(){Y(l).data("settings").hintText&&(B.html("<p>"+i(Y(l).data("settings").hintText)+"</p>"),m())}function y(t){return t.replace(G,"\\$&")}function w(t,e){return t.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+y(e)+")(?![^<>]*>)(?![^&;]+;)","gi"),function(t,e){return"<b>"+i(e)+"</b>"})}function x(t,e,i){return t.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+y(e)+")(?![^<>]*>)(?![^&;]+;)","g"),w(e,i))}function C(n,t){if(t&&t.length){B.empty();var s=Y("<ul>").appendTo(B).mouseover(function(t){S(Y(t.target).closest("li"))}).mousedown(function(t){return h(Y(t.target).closest("li").data("tokeninput")),L.change(),!1}).hide();Y(l).data("settings").resultsLimit&&t.length>Y(l).data("settings").resultsLimit&&(t=t.slice(0,Y(l).data("settings").resultsLimit)),Y.each(t,function(t,e){var i=Y(l).data("settings").resultsFormatter(e);i=x(i,e[Y(l).data("settings").propertyToSearch],n),i=Y(i).appendTo(s),t%2?i.addClass(Y(l).data("settings").classes.dropdownItem):i.addClass(Y(l).data("settings").classes.dropdownItem2),0===t&&(Y(l).data("settings").allowFreeTagging?O=i:S(i)),Y.data(i.get(0),"tokeninput",e)}),m(),Y(l).data("settings").animateDropdown?s.slideDown("fast"):s.show()}else Y(l).data("settings").allowFreeTagging||Y(l).data("settings").noResultsText&&(B.html("<p>"+i(Y(l).data("settings").noResultsText)+"</p>"),m())}function S(t){t&&($&&k(Y($)),t.addClass(Y(l).data("settings").classes.selectedDropdownItem),$=t.get(0))}function k(t){t.removeClass(Y(l).data("settings").classes.selectedDropdownItem),$=null}function T(){var t=H.val();t&&t.length&&(N&&c(Y(N),X.AFTER),t.length>
9=Y(l).data("settings").minChars?(_(),clearTimeout(M),M=setTimeout(function(){D(t)},Y(l).data("settings").searchDelay)):g())}function D(e){var i=e+A(),t=R.get(i);if(t)Y.isFunction(Y(l).data("settings").onCachedResult)&&(t=Y(l).data("settings").onCachedResult.call(L,t)),C(e,t);else if(Y(l).data("settings").url){var n=A(),s={data:{}};if(-1<n.indexOf("?")){var a=n.split("?");s.url=a[0];var r=a[1].split("&");Y.each(r,function(t,e){var i=e.split("=");s.data[i[0]]=i[1]})}else s.url=n;s.data[Y(l).data("settings").queryParam]=e,s.type=Y(l).data("settings").method,s.dataType=Y(l).data("settings").contentType,Y(l).data("settings").crossDomain&&(s.dataType="jsonp"),s.success=function(t){R.add(i,Y(l).data("settings").jsonContainer?t[Y(l).data("settings").jsonContainer]:t),Y.isFunction(Y(l).data("settings").onResult)&&(t=Y(l).data("settings").onResult.call(L,t)),H.val()===e&&C(e,Y(l).data("settings").jsonContainer?t[Y(l).data("settings").jsonContainer]:t)},Y.ajax(s)}else if(Y(l).data("settings").local_data){var o=Y.grep(Y(l).data("settings").local_data,function(t){return-1<t[Y(l).data("settings").propertyToSearch].toLowerCase().indexOf(e.toLowerCase())});R.add(i,o),Y.isFunction(Y(l).data("settings").onResult)&&(o=Y(l).data("settings").onResult.call(L,o)),C(e,o)}}function A(){var t=Y(l).data("settings").url;return"function"==typeof Y(l).data("settings").url&&(t=Y(l).data("settings").url.call(Y(l).data("settings"))),t}function I(t){setTimeout(function(){t.focus()},50)}if("string"===Y.type(t)||"function"===Y.type(t)){Y(l).data("settings").url=t;var E=A();Y(l).data("settings").crossDomain===undefined&&"string"==typeof E&&(-1===E.indexOf("://")?Y(l).data("settings").crossDomain=!1:Y(l).data("settings").crossDomain=location.href.split(/\/+/g)[1]!==E.split(/\/+/g)[1])}else"object"==typeof t&&(Y(l).data("settings").local_data=t);Y(l).data("settings").classes?Y(l).data("settings").classes=Y.extend({},Z,Y(l).data("settings").classes):Y(l).data("settings").theme?(Y(l).data("settings").classes={},Y.each(Z,function(t,e){Y(l).data("settings").classes[t]=e+"-"+Y(l).data("settings").theme})):Y(l).data("settings").classes=Z;var M,F,j=[],P=0,R=new Y.TokenList.Cache,H=Y('<input type="text"  autocomplete="off" autocapitalize="off">').css({outline:"none"}).attr("id",Y(l).data("settings").idPrefix+l.id).focus(function(){if(Y(l).data("settings").disabled)return!1;null!==Y(l).data("settings").tokenLimit&&Y(l).data("settings").tokenLimit===P||b(),z.addClass(Y(l).data("settings").classes.focused)}).blur(function(){g(),Y(l).data("settings").allowFreeTagging&&r(),Y(this).val(""),z.removeClass(Y(l).data("settings").classes.focused)}).bind("keyup keydown blur update",n).keydown(function(t){var e,i;switch(t.keyCode){case J.LEFT:case J.RIGHT:case J.UP:case J.DOWN:if(Y(this).val()){var n=null;t.keyCode===J.DOWN||t.keyCode===J.RIGHT?null==$?S(O):n=Y($).next():null!=$&&(n=Y($).prev()),null!=n&&n.length&&S(n)}else e=V.prev(),i=V.next(),e.length&&e.get(0)===N||i.length&&i.get(0)===N?t.keyCode===J.LEFT||t.keyCode===J.UP?c(Y(N),X.BEFORE):c(Y(N),X.AFTER):t.keyCode!==J.LEFT&&t.keyCode!==J.UP||!e.length?t.keyCode!==J.RIGHT&&t.keyCode!==J.DOWN||!i.length||d(Y(i.get(0))):d(Y(e.get(0)));return!1;case J.BACKSPACE:if(e=V.prev(),!Y(this).val().length)return N?(p(Y(N)),L.change()):e.length&&d(Y(e.get(0))),!1;1===Y(this).val().length?g():setTimeout(function(){T()},5);break;case J.TAB:case J.ENTER:case J.NUMPAD_ENTER:case J.COMMA:if($)h(Y($).data("tokeninput")),L.change();else{if(Y(l).data("settings").allowFreeTagging){if(Y(l).data("settings").allowTabOut&&""===Y(this).val())return!0;r()}else if(Y(this).val(""),Y(l).data("settings").allowTabOut)return!0;t.stopPropagation(),t.preventDefault()}return!1;case J.ESCAPE:return g(),!0;default:String.fromCharCode(t.which)&&setTimeout(function(){T()},5)}});s.placeholder&&H.attr("placeholder",s.placeholder);var L=Y(l).hide().val("").focus(function(){I(H)}).blur(function(){return H.blur(),L}),N=null,q=0,$=null,O=null,z=Y("<ul />").addClass(Y(l).data("settings").classes.tokenList).click(function(t){var e=Y(t.target).closest("li");e&&e.get(0)&&Y.data(e.get(0),"tokeninput")?u(e):(N&&c(Y(N),X.END),I(H))}).mouseover(function(t){var e=Y(t.target).closest("li");e&&N!==this&&e.addClass(Y(l).data("settings").classes.highlightedToken)}).mouseout(function(t){var e=Y(t.target).closest("li");e&&N!==this&&e.removeClass(Y(l).data("settings").classes.highlightedToken)}).insertBefore(L),V=Y("<li />").addClass(Y(l).data("settings").classes.inputToken).appendTo(z).append(H),B=Y("<div>").addClass(Y(l).data("settings").classes.dropdown).appendTo("body").hide(),W=Y("<tester/>").insertAfter(H).css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:H.css("fontSize"),fontFamily:H.css("fontFamily"),fontWeight:H.css("fontWeight"),letterSpacing:H.css("letterSpacing"),whiteSpace:"nowrap"});L.val("");var U=Y(l).data("settings").prePopulate||L.data("pre");Y(l).data("settings").processPrePopulate&&Y.isFunction(Y(l).data("settings").onResult)&&(U=Y(l).data("settings").onResult.call(L,U)),U&&U.length&&Y.each(U,function(t,e){o(e),a(),H.attr("placeholder",null)}),Y(l).data("settings").disabled&&e(!0),Y.isFunction(Y(l).data("settings").onReady)&&Y(l).data("settings").onReady.call(),this.clear=function(){z.children("li").each(function(){0===Y(this).children("input").length&&p(Y(this))})},this.add=function(t){h(t)},this.remove=function(n){z.children("li").each(function(){if(0===Y(this).children("input").length){var t=Y(this).data("tokeninput"),e=!0;for(var i in n)if(n[i]!==t[i]){e=!1;break}e&&p(Y(this))}})},this.getTokens=function(){return j},this.toggleDisabled=function(t){e(t)},n();var G=new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g")},Y.TokenList.Cache=function(t){var i=Y.extend({max_size:500},t),n={},s=0,a=function(){n={},s=0};this.add=function(t,e){s>i.max_size&&a(),n[t]||(s+=1),n[t]=e},this.get=function(t){return n[t]}}}(jQuery),!window.console&&(console={log:function(){}});var et={},datePickerOptions={changeMonth:!1,changeYear:!1,yearRange:"c:c+10",minDate:-2,maxDate:"+10Y",duration:"",showTime:!0,constrainInput:!0,stepMinute:5,stepHour:1,altTimeField:"alt"},last_poll_start=(new Date).getTime()/1e3,last_poll_end=(new Date).getTime()/1e3,document_title=document.title;jQuery.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},jQuery.browser||(matched=jQuery.uaMatch(navigator.userAgent),browser={},matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),jQuery.browser=browser);var rails=$.rails;rails.handleRemote=function(n){var t,e,i,s,a=n.data("cross-domain")||null,r=n.data("type")||$.ajaxSettings&&$.ajaxSettings.dataType;if(rails.fire(n,"ajax:before")){if(n.is("form")){t=n.attr("method"),e=n.attr("action"),i=n.serializeArray();var o=n.data("ujs:submit-button");o&&(i.push(o),n.data("ujs:submit-button",null))}else if(n.is(rails.inputChangeSelector))t=n.data("method"),e=n.data("url"),i=n.serialize(),n.data("params")&&(i=i+"&"+n.data("params"));else if(t=n.data("method"),e=n.attr("href"),i=n.data("params")||null,!t&&$(window).width()<=768)return!0;return s={type:t||"GET",data:i,dataType:r,crossDomain:a,beforeSend:function(t,e){return e.dataType===undefined&&t.setRequestHeader("accept","*/*;q=0.5, "+e.accepts.script),rails.fire(n,"ajax:beforeSend",[t,e])}
9,success:function(t,e,i){n.trigger("ajax:success",[t,e,i])},complete:function(t,e){n.trigger("ajax:complete",[t,e])},error:function(t,e,i){n.trigger("ajax:error",[t,e,i])}},e&&(s.url=e),rails.ajax(s)}return!1},function(h){function l(t,e,i){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:i;default:throw new Error("Implement me")}}function d(t,e){return Dt.call(t,e)}function r(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function n(t){!1===wt.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function e(t,e){var i=!0;return f(function(){return i&&(n(t),i=!1),e.apply(this,arguments)},e)}function a(t,e){_e[t]||(n(e),_e[t]=!0)}function t(e,i){return function(t){return v(e.call(this,t),i)}}function i(e,i){return function(t){return this.localeData().ordinal(e.call(this,t),i)}}function o(t,e){var i,n=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(n,"months");return e-s<0?i=(e-s)/(s-t.clone().add(n-1,"months")):i=(e-s)/(t.clone().add(n+1,"months")-s),-(n+i)}function c(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):(null!=t.isPM&&((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0)),e)}function s(){}function u(t,e){!1!==e&&j(t),g(this,t),this._d=new Date(+t._d),!1===ye&&(ye=!0,wt.updateOffset(this),ye=!1)}function p(t){var e=T(t),i=e.year||0,n=e.quarter||0,s=e.month||0,a=e.week||0,r=e.day||0,o=e.hour||0,l=e.minute||0,h=e.second||0,d=e.millisecond||0;this._milliseconds=+d+1e3*h+6e4*l+36e5*o,this._days=+r+7*a,this._months=+s+3*n+12*i,this._data={},this._locale=wt.localeData(),this._bubble()}function f(t,e){for(var i in e)d(e,i)&&(t[i]=e[i]);return d(e,"toString")&&(t.toString=e.toString),d(e,"valueOf")&&(t.valueOf=e.valueOf),t}function g(t,e){var i,n,s;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=e._pf),"undefined"!=typeof e._locale&&(t._locale=e._locale),0<Ht.length)for(i in Ht)void 0!==(s=e[n=Ht[i]])&&(t[n]=s);return t}function m(t){return t<0?Math.ceil(t):Math.floor(t)}function v(t,e,i){for(var n=""+Math.abs(t),s=0<=t;n.length<e;)n="0"+n;return(s?i?"+":"":"-")+n}function _(t,e){var i={milliseconds:0,months:0};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function b(t,e){var i;return e=N(e,t),t.isBefore(e)?i=_(t,e):((i=_(e,t)).milliseconds=-i.milliseconds,i.months=-i.months),i}function y(n,s){return function(t,e){var i;return null===e||isNaN(+e)||(a(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period)."),i=t,t=e,e=i),t="string"==typeof t?+t:t,w(this,wt.duration(t,e),n),this}}function w(t,e,i,n){var s=e._milliseconds,a=e._days,r=e._months;n=null==n||n,s&&t._d.setTime(+t._d+s*i),a&&gt(t,"Date",ft(t,"Date")+a*i),r&&pt(t,ft(t,"Month")+r*i),n&&wt.updateOffset(t,a||r)}function x(t){return"[object Array]"===Object.prototype.toString.call(t)}function C(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function S(t,e,i){var n,s=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0;for(n=0;n<s;n++)(i&&t[n]!==e[n]||!i&&A(t[n])!==A(e[n]))&&r++;return r+a}function k(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=ce[t]||ue[e]||e}return t}function T(t){var e,i,n={};for(i in t)d(t,i)&&((e=k(i))&&(n[e]=t[i]));return n}function D(r){var o,l;if(0===r.indexOf("week"))o=7,l="day";else{if(0!==r.indexOf("month"))return;o=12,l="month"}wt[r]=function(i,t){var e,n,s=wt._locale[r],a=[];if("number"==typeof i&&(t=i,i=h),n=function(t){var e=wt().utc().set(l,t);return s.call(wt._locale,e,i||"")},null!=t)return n(t);for(e=0;e<o;e++)a.push(n(e));return a}}function A(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=0<=e?Math.floor(e):Math.ceil(e)),i}function I(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function E(t,e,i){return ht(wt([t,11,31+e-i]),e,i).week}function M(t){return F(t)?366:365}function F(t){return t%4==0&&t%100!=0||t%400==0}function j(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[It]<0||11<t._a[It]?It:t._a[Et]<1||t._a[Et]>I(t._a[At],t._a[It])?Et:t._a[Mt]<0||24<t._a[Mt]||24===t._a[Mt]&&(0!==t._a[Ft]||
90!==t._a[jt]||0!==t._a[Pt])?Mt:t._a[Ft]<0||59<t._a[Ft]?Ft:t._a[jt]<0||59<t._a[jt]?jt:t._a[Pt]<0||999<t._a[Pt]?Pt:-1,t._pf._overflowDayOfYear&&(e<At||Et<e)&&(e=Et),t._pf.overflow=e)}function P(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length&&t._pf.bigHour===h)),t._isValid}function R(t){return t?t.toLowerCase().replace("_","-"):t}function H(t){for(var e,i,n,s,a=0;a<t.length;){for(e=(s=R(t[a]).split("-")).length,i=(i=R(t[a+1]))?i.split("-"):null;0<e;){if(n=L(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&S(s,i,!0)>=e-1)break;e--}a++}return null}function L(t){var e=null;if(!Rt[t]&&Lt)try{e=wt.locale(),require("./locale/"+t),wt.locale(e)}catch(d){}return Rt[t]}function N(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(wt.isMoment(t)||C(t)?+t:+wt(t))-+i,i._d.setTime(+i._d+n),wt.updateOffset(i,!1),i):wt(t).local()}function q(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function $(i){var n,s,a=i.match(Ot);for(n=0,s=a.length;n<s;n++)a[n]=ve[a[n]]?ve[a[n]]:q(a[n]);return function(t){var e="";for(n=0;n<s;n++)e+=a[n]instanceof Function?a[n].call(t,i):a[n];return e}}function O(t,e){return t.isValid()?(e=z(e,t.localeData()),pe[e]||(pe[e]=$(e)),pe[e](t)):t.localeData().invalidDate()}function z(t,e){function i(t){return e.longDateFormat(t)||t}var n=5;for(zt.lastIndex=0;0<=n&&zt.test(t);)t=t.replace(zt,i),zt.lastIndex=0,n-=1;return t}function V(t,e){var i=e._strict;switch(t){case"Q":return Kt;case"DDDD":return ee;case"YYYY":case"GGGG":case"gggg":return i?ie:Wt;case"Y":case"G":case"g":return se;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?ne:Ut;case"S":if(i)return Kt;case"SS":if(i)return te;case"SSS":if(i)return ee;case"DDD":return Bt;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Yt;case"a":case"A":return e._locale._meridiemParse;case"x":return Xt;case"X":return Jt;case"Z":case"ZZ":return Qt;case"T":return Zt;case"SSSS":return Gt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?te:Vt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Vt;case"Do":return i?e._locale._ordinalParse:e._locale._ordinalParseLenient;default:return new RegExp(J(X(t.replace("\\","")),"i"))}}function B(t){var e=(t=t||"").match(Qt)||[],i=((e[e.length-1]||[])+"").match(he)||["-",0,0],n=60*i[1]+A(i[2]);return"+"===i[0]?n:-n}function W(t,e,i){var n,s=i._a;switch(t){case"Q":null!=e&&(s[It]=3*(A(e)-1));break;case"M":case"MM":null!=e&&(s[It]=A(e)-1);break;case"MMM":case"MMMM":null!=(n=i._locale.monthsParse(e,t,i._strict))?s[It]=n:i._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(s[Et]=A(e));break;case"Do":null!=e&&(s[Et]=A(parseInt(e.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=e&&(i._dayOfYear=A(e));break;case"YY":s[At]=wt.parseTwoDigitYear(e);break;case"YYYY":case"YYYYY":case"YYYYYY":s[At]=A(e);break;case"a":case"A":i._meridiem=e;break;case"h":case"hh":i._pf.bigHour=!0;case"H":case"HH":s[Mt]=A(e);break;case"m":case"mm":s[Ft]=A(e);break;case"s":case"ss":s[jt]=A(e);break;case"S":case"SS":case"SSS":case"SSSS":s[Pt]=A(1e3*("0."+e));break;case"x":i._d=new Date(A(e));break;case"X":i._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":i._useUTC=!0,i._tzm=B(e);break;case"dd":case"ddd":case"dddd":null!=(n=i._locale.weekdaysParse(e))?(i._w=i._w||{},i._w.d=n):i._pf.invalidWeekday=e;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(i._w=i._w||{},i._w[t]=A(e));break;case"gg":case"GG":i._w=i._w||{},i._w[t]=wt.parseTwoDigitYear(e)}}function U(t){var e,i,n,s,a,r,o;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,r=4,i=l(e.GG,t._a[At],ht(wt(),1,4).year),n=l(e.W,1),s=l(e.E,1)):(a=t._locale._week.dow,r=t._locale._week.doy,i=l(e.gg,t._a[At],ht(wt(),a,r).year),n=l(e.w,1),null!=e.d?(s=e.d)<a&&++n:s=null!=e.e?e.e+a:a),o=dt(i,n,s,r,a),t._a[At]=o.year,t._dayOfYear=o.dayOfYear}function G(t){var e,i,n,s,a=[];if(!t._d){for(n=Q(t),t._w&&null==t._a[Et]&&null==t._a[It]&&U(t),t._dayOfYear&&(s=l(t._a[At],n[At]),t._dayOfYear>M(s)&&(t._pf._overflowDayOfYear=!0),i=at(s,0,t._dayOfYear),t._a[It]=i.getUTCMonth(),t._a[Et]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];
924===t._a[Mt]&&0===t._a[Ft]&&0===t._a[jt]&&0===t._a[Pt]&&(t._nextDay=!0,t._a[Mt]=0),t._d=(t._useUTC?at:st).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Mt]=24)}}function Y(t){var e;t._d||(e=T(t._i),t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],G(t))}function Q(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Z(t){if(t._f!==wt.ISO_8601){t._a=[],t._pf.empty=!0;var e,i,n,s,a,r=""+t._i,o=r.length,l=0;for(n=z(t._f,t._locale).match(Ot)||[],e=0;e<n.length;e++)s=n[e],(i=(r.match(V(s,t))||[])[0])&&(0<(a=r.substr(0,r.indexOf(i))).length&&t._pf.unusedInput.push(a),r=r.slice(r.indexOf(i)+i.length),l+=i.length),ve[s]?(i?t._pf.empty=!1:t._pf.unusedTokens.push(s),W(s,i,t)):t._strict&&!i&&t._pf.unusedTokens.push(s);t._pf.charsLeftOver=o-l,0<r.length&&t._pf.unusedInput.push(r),!0===t._pf.bigHour&&t._a[Mt]<=12&&(t._pf.bigHour=h),t._a[Mt]=c(t._locale,t._a[Mt],t._meridiem),G(t),j(t)}else tt(t)}function X(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s})}function J(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(t){var e,i,n,s,a;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;s<t._f.length;s++)a=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._pf=r(),e._f=t._f[s],Z(e),P(e)&&(a+=e._pf.charsLeftOver,a+=10*e._pf.unusedTokens.length,e._pf.score=a,(null==n||a<n)&&(n=a,i=e));f(t,i||e)}function tt(t){var e,i,n=t._i,s=ae.exec(n);if(s){for(t._pf.iso=!0,e=0,i=oe.length;e<i;e++)if(oe[e][1].exec(n)){t._f=oe[e][0]+(s[6]||" ");break}for(e=0,i=le.length;e<i;e++)if(le[e][1].exec(n)){t._f+=le[e][0];break}n.match(Qt)&&(t._f+="Z"),Z(t)}else t._isValid=!1}function et(t){tt(t),!1===t._isValid&&(delete t._isValid,wt.createFromInputFallback(t))}function it(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function nt(t){var e,i=t._i;i===h?t._d=new Date:C(i)?t._d=new Date(+i):null!==(e=Nt.exec(i))?t._d=new Date(+e[1]):"string"==typeof i?et(t):x(i)?(t._a=it(i.slice(0),function(t){return parseInt(t,10)}),G(t)):"object"==typeof i?Y(t):"number"==typeof i?t._d=new Date(i):wt.createFromInputFallback(t)}function st(t,e,i,n,s,a,r){var o=new Date(t,e,i,n,s,a,r);return t<1970&&o.setFullYear(t),o}function at(t){var e=new Date(Date.UTC.apply(null,arguments));return t<1970&&e.setUTCFullYear(t),e}function rt(t,e){if("string"==typeof t)if(isNaN(t)){if("number"!=typeof(t=e.weekdaysParse(t)))return null}else t=parseInt(t,10);return t}function ot(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}function lt(t,e,i){var n=wt.duration(t).abs(),s=Tt(n.as("s")),a=Tt(n.as("m")),r=Tt(n.as("h")),o=Tt(n.as("d")),l=Tt(n.as("M")),h=Tt(n.as("y")),d=s<fe.s&&["s",s]||1===a&&["m"]||a<fe.m&&["mm",a]||1===r&&["h"]||r<fe.h&&["hh",r]||1===o&&["d"]||o<fe.d&&["dd",o]||1===l&&["M"]||l<fe.M&&["MM",l]||1===h&&["y"]||["yy",h];return d[2]=e,d[3]=0<+t,d[4]=i,ot.apply({},d)}function ht(t,e,i){var n,s=i-e,a=i-t.day();return s<a&&(a-=7),a<s-7&&(a+=7),n=wt(t).add(a,"d"),{week:Math.ceil(n.dayOfYear()/7),year:n.year()}}function dt(t,e,i,n,s){var a,r=at(t,0,1).getUTCDay();return{year:0<(a=7*(e-1)+((i=null!=i?i:s)-s)+(s-(r=0===r?7:r)+(n<r?7:0)-(r<s?7:0))+1)?t:t-1,dayOfYear:0<a?a:M(t-1)+a}}function ct(t){var e,i=t._i,n=t._f;return t._locale=t._locale||wt.localeData(t._l),null===i||n===h&&""===i?wt.invalid({nullInput:!0}):("string"==typeof i&&(t._i=i=t._locale.preparse(i)),wt.isMoment(i)?new u(i,!0):(n?x(n)?K(t):Z(t):nt(t),(e=new u(t))._nextDay&&(e.add(1,"d"),e._nextDay=h),e))}function ut(t,e){var i,n;if(1===e.length&&x(e[0])&&(e=e[0]),!e.length)return wt();for(i=e[0],n=1;n<e.length;++n)e[n][t](i)&&(i=e[n]);return i}function pt(t,e){var i;return"string"==typeof e&&"number"!=typeof(e=t.localeData().monthsParse(e))||(i=Math.min(t.date(),I(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i)),t}function ft(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function gt(t,e,i){return"Month"===e?pt(t,i):t._d["set"+(t._isUTC?"UTC":"")+e](i)}function mt(e,i){return function(t){return null!=t?(gt(this,e,t),wt.updateOffset(this,i),this):ft(this,e)}}function vt(t){return 400*t/146097}function _t(t){return 146097*t/400}function bt(t){wt.duration.fn[t]=function(){return this._data[t]}}function yt(t){"undefined"==typeof ender&&(xt=kt.moment,kt.moment=t?e("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",wt):wt)}for(var wt,xt,Ct,St="2.9.0",kt="undefined"==typeof global||"undefined"!=typeof window&&window!==global.window?this:global,Tt=Math.round,Dt=Object.prototype.hasOwnProperty,At=0,It=1,Et=2,Mt=3,Ft=4,jt=5,Pt=6,Rt={},Ht=[],Lt="undefined"!=typeof module&&module&&module.exports,Nt=/^\/?Date\((\-?\d+)/i,qt=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,$t=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Ot=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}
9|x|X|zz?|ZZ?|.)/g,zt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Vt=/\d\d?/,Bt=/\d{1,3}/,Wt=/\d{1,4}/,Ut=/[+\-]?\d{1,6}/,Gt=/\d+/,Yt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Qt=/Z|[\+\-]\d\d:?\d\d/gi,Zt=/T/i,Xt=/[\+\-]?\d+/,Jt=/[\+\-]?\d+(\.\d{1,3})?/,Kt=/\d/,te=/\d\d/,ee=/\d{3}/,ie=/\d{4}/,ne=/[+-]?\d{6}/,se=/[+-]?\d+/,ae=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,re="YYYY-MM-DDTHH:mm:ssZ",oe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],le=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],he=/([\+\-]|\d\d)/gi,de=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),ce={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},ue={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},pe={},fe={s:45,m:45,h:22,d:26,M:11},ge="DDD w W M D d".split(" "),me="M D H h m s w W".split(" "),ve={M:function(){return this.month()+1},MMM:function(t){return this.localeData().monthsShort(this,t)},MMMM:function(t){return this.localeData().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.localeData().weekdaysMin(this,t)},ddd:function(t){return this.localeData().weekdaysShort(this,t)},dddd:function(t){return this.localeData().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return v(this.year()%100,2)},YYYY:function(){return v(this.year(),4)},YYYYY:function(){return v(this.year(),5)},YYYYYY:function(){var t=this.year();return(0<=t?"+":"-")+v(Math.abs(t),6)},gg:function(){return v(this.weekYear()%100,2)},gggg:function(){return v(this.weekYear(),4)},ggggg:function(){return v(this.weekYear(),5)},GG:function(){return v(this.isoWeekYear()%100,2)},GGGG:function(){return v(this.isoWeekYear(),4)},GGGGG:function(){return v(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return A(this.milliseconds()/100)},SS:function(){return v(A(this.milliseconds()/10),2)},SSS:function(){return v(this.milliseconds(),3)},SSSS:function(){return v(this.milliseconds(),3)},Z:function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+v(A(t/60),2)+":"+v(A(t)%60,2)},ZZ:function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+v(A(t/60),2)+v(A(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},_e={},be=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],ye=!1;ge.length;)Ct=ge.pop(),ve[Ct+"o"]=i(ve[Ct],Ct);for(;me.length;)Ct=me.pop(),ve[Ct+Ct]=t(ve[Ct],2);for(ve.DDDD=t(ve.DDD,3),f(s.prototype,{set:function(t){var e,i;for(i in t)"function"==typeof(e=t[i])?this[i]=e:this["_"+i]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]}
9,monthsParse:function(t,e,i){var n,s,a;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=wt.utc([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,i,n;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;e<7;e++)if(this._weekdaysParse[e]||(i=wt([2e3,1]).day(e),n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[e]=new RegExp(n.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,i){return 11<t?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e,i){var n=this._calendar[t];return"function"==typeof n?n.apply(e,[i]):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,i,n){var s=this._relativeTime[i];return"function"==typeof s?s(t,e,i,n):s.replace(/%d/i,t)},pastFuture:function(t,e){var i=this._relativeTime[0<t?"future":"past"];return"function"==typeof i?i(e):i.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(t){return t},postformat:function(t){return t},week:function(t){return ht(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),(wt=function(t,e,i,n){var s;return"boolean"==typeof i&&(n=i,i=h),(s={_isAMomentObject:!0})._i=t,s._f=e,s._l=i,s._strict=n,s._isUTC=!1,s._pf=r(),ct(s)}).suppressDeprecationWarnings=!1,wt.createFromInputFallback=e("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),wt.min=function(){return ut("isBefore",[].slice.call(arguments,0))},wt.max=function(){return ut("isAfter",[].slice.call(arguments,0))},wt.utc=function(t,e,i,n){var s;return"boolean"==typeof i&&(n=i,i=h),(s={_isAMomentObject:!0,_useUTC:!0,_isUTC:!0})._l=i,s._i=t,s._f=e,s._strict=n,s._pf=r(),ct(s).utc()},wt.unix=function(t){return wt(1e3*t)},wt.duration=function(t,e){var i,n,s,a,r=t,o=null;return wt.isDuration(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(r={},e?r[e]=t:r.milliseconds=t):(o=qt.exec(t))?(i="-"===o[1]?-1:1,r={y:0,d:A(o[Et])*i,h:A(o[Mt])*i,m:A(o[Ft])*i,s:A(o[jt])*i,ms:A(o[Pt])*i}):(o=$t.exec(t))?(i="-"===o[1]?-1:1,r={y:(s=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*i})(o[2]),M:s(o[3]),d:s(o[4]),h:s(o[5]),m:s(o[6]),s:s(o[7]),w:s(o[8])}
10):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(a=b(wt(r.from),wt(r.to)),(r={}).ms=a.milliseconds,r.M=a.months),n=new p(r),wt.isDuration(t)&&d(t,"_locale")&&(n._locale=t._locale),n},wt.version=St,wt.defaultFormat=re,wt.ISO_8601=function(){},wt.momentProperties=Ht,wt.updateOffset=function(){},wt.relativeTimeThreshold=function(t,e){return fe[t]!==h&&(e===h?fe[t]:(fe[t]=e,!0))},wt.lang=e("moment.lang is deprecated. Use moment.locale instead.",function(t,e){return wt.locale(t,e)}),wt.locale=function(t,e){var i;return t&&((i=void 0!==e?wt.defineLocale(t,e):wt.localeData(t))&&(wt.duration._locale=wt._locale=i)),wt._locale._abbr},wt.defineLocale=function(t,e){return null!==e?(e.abbr=t,Rt[t]||(Rt[t]=new s),Rt[t].set(e),wt.locale(t),Rt[t]):(delete Rt[t],null)},wt.langData=e("moment.langData is deprecated. Use moment.localeData instead.",function(t){return wt.localeData(t)}),wt.localeData=function(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return wt._locale;if(!x(t)){if(e=L(t))return e;t=[t]}return H(t)},wt.isMoment=function(t){return t instanceof u||null!=t&&d(t,"_isAMomentObject")},wt.isDuration=function(t){return t instanceof p},Ct=be.length-1;0<=Ct;--Ct)D(be[Ct]);for(Ct in wt.normalizeUnits=function(t){return k(t)}
10,wt.invalid=function(t){var e=wt.utc(NaN);return null!=t?f(e._pf,t):e._pf.userInvalidated=!0,e},wt.parseZone=function(){return wt.apply(null,arguments).parseZone()},wt.parseTwoDigitYear=function(t){return A(t)+(68<A(t)?1900:2e3)},wt.isDate=C,f(wt.fn=u.prototype,{clone:function(){return wt(this)},valueOf:function(){return+this._d-6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=wt(this).utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():O(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):O(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return P(this)},isDSTShifted:function(){return!!this._a&&(this.isValid()&&0<S(this._a,(this._isUTC?wt.utc(this._a):wt(this._a)).toArray()))},parsingFlags:function(){return f({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(t){return this.utcOffset(0,t)},local:function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(t){var e=O(this,t||wt.defaultFormat);return this.localeData().postformat(e)},add:y(1,"add"),subtract:y(-1,"subtract"),diff:function(t,e,i){var n,s,a=N(t,this),r=6e4*(a.utcOffset()-this.utcOffset());return"year"===(e=k(e))||"month"===e||"quarter"===e?(s=o(this,a),"quarter"===e?s/=3:"year"===e&&(s/=12)):(n=this-a,s="second"===e?n/1e3:"minute"===e?n/6e4:"hour"===e?n/36e5:"day"===e?(n-r)/864e5:"week"===e?(n-r)/6048e5:n),i?s:m(s)},from:function(t,e){return wt.duration({to:this,from:t}).locale(this.locale()).humanize(!e)},fromNow:function(t){return this.from(wt(),t)},calendar:function(t){var e=t||wt(),i=N(e,this).startOf("day"),n=this.diff(i,"days",!0),s=n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(s,this,wt(e)))},isLeapYear:function(){return F(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=rt(t,this.localeData()),this.add(t-e,"d")):e},month:mt("Month",!0),startOf:function(t){switch(t=k(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t?this.weekday(0):"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(t){return(t=k(t))===h||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},isAfter:function(t,e){return"millisecond"===(e=k(void 0!==e?e:"millisecond"))?+(t=wt.isMoment(t)?t:wt(t))<+this:(wt.isMoment(t)?+t:+wt(t))<+this.clone().startOf(e)},isBefore:function(t,e){var i;return"millisecond"===(e=k(void 0!==e?e:"millisecond"))?+this<+(t=wt.isMoment(t)?t:wt(t)):(i=wt.isMoment(t)?+t:+wt(t),+this.clone().endOf(e)<i)},isBetween:function(t,e,i){return this.isAfter(t,i)&&this.isBefore(e,i)},isSame:function(t,e){var i;return"millisecond"===(e=k(e||"millisecond"))?+this==+(t=wt.isMoment(t)?t:wt(t)):(i=+wt(t),+this.clone().startOf(e)<=i&&i<=+this.clone().endOf(e))},min:e("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(t){return(t=wt.apply(null,arguments))<this?this:t}),max:e("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(t){return this<(t=wt.apply(null,arguments))?this:t}),zone:e("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),utcOffset:function(t,e){var i,n=this._offset||0;return null!=t?("string"==typeof t&&(t=B(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&e&&(i=this._dateUtcOffset()),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),n!==t&&(!e||this._changeInProgress?w(this,wt.duration(t-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,wt.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?n:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&0===this._offset},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(B(this._i)),this},hasAlignedHourOffset:function(t){return t=t?wt(t).utcOffset():0,(this.utcOffset()-t)%60==0},daysInMonth:function(){return I(this.year(),this.month())},dayOfYear:function(t){var e=Tt((wt(this).startOf("day")-wt(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=ht(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},isoWeekYear:function(t){var e=ht(this,1,4).year;return null==t?e:this.add(t-e,"y")},week:function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},isoWeek:function(t){var e=ht(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},weekday:function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return E(this.year(),1,4)},weeksInYear:function(){var t=this.localeData()._week;return E(this.year(),t.dow,t.doy)},get:function(t){return this[t=k(t)]()},set:function(t,e){var i;if("object"==typeof t)for(i in t)this.set(i,t[i]);else"function"==typeof this[t=k(t)]&&this[t](e);return this},locale:function(t){var e;return t===h?this._locale._abbr:(null!=(e=wt.localeData(t))&&(this._locale=e),this)},lang:e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===h?this.localeData():this.locale(t)}),localeData:function(){return this._locale}
10,_dateUtcOffset:function(){return 15*-Math.round(this._d.getTimezoneOffset()/15)}}),wt.fn.millisecond=wt.fn.milliseconds=mt("Milliseconds",!1),wt.fn.second=wt.fn.seconds=mt("Seconds",!1),wt.fn.minute=wt.fn.minutes=mt("Minutes",!1),wt.fn.hour=wt.fn.hours=mt("Hours",!0),wt.fn.date=mt("Date",!0),wt.fn.dates=e("dates accessor is deprecated. Use date instead.",mt("Date",!0)),wt.fn.year=mt("FullYear",!0),wt.fn.years=e("years accessor is deprecated. Use year instead.",mt("FullYear",!0)),wt.fn.days=wt.fn.day,wt.fn.months=wt.fn.month,wt.fn.weeks=wt.fn.week,wt.fn.isoWeeks=wt.fn.isoWeek,wt.fn.quarters=wt.fn.quarter,wt.fn.toJSON=wt.fn.toISOString,wt.fn.isUTC=wt.fn.isUtc,f(wt.duration.fn=p.prototype,{_bubble:function(){var t,e,i,n=this._milliseconds,s=this._days,a=this._months,r=this._data,o=0;r.milliseconds=n%1e3,t=m(n/1e3),r.seconds=t%60,e=m(t/60),r.minutes=e%60,i=m(e/60),r.hours=i%24,s+=m(i/24),a+=m((s-=m(_t(o=m(vt(s)))))/30),s%=30,o+=m(a/12),a%=12,r.days=s,r.months=a,r.years=o},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return m(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*A(this._months/12)},humanize:function(t){var e=lt(this,!t,this.localeData());return t&&(e=this.localeData().pastFuture(+this,e)),this.localeData().postformat(e)},add:function(t,e){var i=wt.duration(t,e);return this._milliseconds+=i._milliseconds,this._days+=i._days,this._months+=i._months,this._bubble(),this},subtract:function(t,e){var i=wt.duration(t,e);return this._milliseconds-=i._milliseconds,this._days-=i._days,this._months-=i._months,this._bubble(),this},get:function(t){return this[(t=k(t)).toLowerCase()+"s"]()},as:function(t){var e,i;if("month"===(t=k(t))||"year"===t)return e=this._days+this._milliseconds/864e5,i=this._months+12*vt(e),"month"===t?i:i/12;switch(e=this._days+Math.round(_t(this._months/12)),t){case"week":return e/7+this._milliseconds/6048e5;case"day":return e+this._milliseconds/864e5;case"hour":return 24*e+this._milliseconds/36e5;case"minute":return 24*e*60+this._milliseconds/6e4;case"second":return 24*e*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*e*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+t)}},lang:wt.fn.lang,locale:wt.fn.locale,toIsoString:e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),i=Math.abs(this.days()),n=Math.abs(this.hours()),s=Math.abs(this.minutes()),a=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(i?i+"D":"")+(n||s||a?"T":"")+(n?n+"H":"")+(s?s+"M":"")+(a?a+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}}),wt.duration.fn.toString=wt.duration.fn.toISOString,de)d(de,Ct)&&bt(Ct.toLowerCase());wt.duration.fn.asMilliseconds=function(){return this.as("ms")},wt.duration.fn.asSeconds=function(){return this.as("s")},wt.duration.fn.asMinutes=function(){return this.as("m")},wt.duration.fn.asHours=function(){return this.as("h")},wt.duration.fn.asDays=function(){return this.as("d")},wt.duration.fn.asWeeks=function(){return this.as("weeks")},wt.duration.fn.asMonths=function(){return this.as("M")},wt.duration.fn.asYears=function(){return this.as("y")},wt.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===A(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),Lt?module.exports=wt:"function"==typeof define&&define.amd?(define(function(t,e,i){return i.config&&i.config()&&!0===i.config().noGlobal&&(kt.moment=xt),wt}),yt(!0)):yt()}.call(this),function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):"object"==typeof exports?module.exports=t(require("jquery"),require("moment")):t(jQuery,moment)}(function(et,it){function d(t){return I(t,Lt)}function s(t){var n,s={views:t.views||{}};return et.each(t,function(i,t){"views"!=i&&(et.isPlainObject(t)&&!/(time|duration|interval)$/i.test(i)&&-1==et.inArray(i,Lt)?(n=null,et.each(t,function(t,e){/^(month|week|day|default|basic(Week|Day)?|agenda(Week|Day)?)$/.test(t)?(s.views[t]||(s.views[t]={}),s.views[t][i]=e):(n||(n={}),n[t]=e)}),n&&(s[i]=n)):s[i]=t)}),s}function a(t,e){e.left&&t.css({"border-left-width":1,"margin-left":e.left-1}),e.right&&t.css({"border-right-width":1,"margin-right":e.right-1})}function r(t){t.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function c(){et("body").addClass("fc-not-allowed")}function u(){et("body").removeClass("fc-not-allowed")}
10function i(s,t,e){var a=Math.floor(t/s.length),r=Math.floor(t-a*(s.length-1)),o=[],l=[],h=[],d=0;n(s),s.each(function(t,e){var i=t===s.length-1?r:a,n=et(e).outerHeight(!0);n<i?(o.push(e),l.push(n),h.push(et(e).height())):d+=n}),e&&(t-=d,a=Math.floor(t/o.length),r=Math.floor(t-a*(o.length-1))),et(o).each(function(t,e){var i=t===o.length-1?r:a,n=l[t],s=i-(n-h[t]);n<i&&et(e).height(s)})}function n(t){t.height("")}function t(t){var n=0;return t.find("> *").each(function(t,e){var i=et(e).outerWidth();n<i&&(n=i)}),n++,t.width(n),n}function o(t,e){return t.height(e).addClass("fc-scroller"),t[0].scrollHeight-1>t[0].clientHeight||(l(t),!1)}function l(t){t.height("").removeClass("fc-scroller")}function p(t){var e=t.css("position"),i=t.parents().filter(function(){var t=et(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&i.length?i:et(t[0].ownerDocument||document)}function h(t){var e=t.offset();return{left:e.left,right:e.left+t.outerWidth(),top:e.top,bottom:e.top+t.outerHeight()}}function e(t){var e=t.offset(),i=g(t),n=e.left+_(t,"border-left-width")+i.left,s=e.top+_(t,"border-top-width")+i.top;return{left:n,right:n+t[0].clientWidth,top:s,bottom:s+t[0].clientHeight}}function f(t){var e=t.offset(),i=e.left+_(t,"border-left-width")+_(t,"padding-left"),n=e.top+_(t,"border-top-width")+_(t,"padding-top");return{left:i,right:i+t.width(),top:n,bottom:n+t.height()}}function g(t){var e=t.innerWidth()-t[0].clientWidth,i={left:0,right:0,top:0,bottom:t.innerHeight()-t[0].clientHeight};return m()&&"rtl"==t.css("direction")?i.left=e:i.right=e,i}function m(){return null===Nt&&(Nt=v()),Nt}function v(){var t=et("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),e=t.children().offset().left>t.offset().left;return t.remove(),e}function _(t,e){return parseFloat(t.css(e))||0}function b(t){return 1==t.which&&!t.ctrlKey}function y(t,e){var i={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return i.left<i.right&&i.top<i.bottom&&i}function w(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function x(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function C(t,e){return{left:t.left-e.left,top:t.top-e.top}}function S(t,e){var i,n,s,a,r=t.start,o=t.end,l=e.start,h=e.end;if(l<o&&r<h)return l<=r?(i=r.clone(),s=!0):(i=l.clone(),s=!1),o<=h?(n=o.clone(),a=!0):(n=h.clone(),a=!1),{start:i,end:n,isStart:s,isEnd:a}}function O(t,e){return it.duration({days:t.clone().stripTime().diff(e.clone().stripTime(),"days"),ms:t.time()-e.time()})}function z(t,e){return it.duration({days:t.clone().stripTime().diff(e.clone().stripTime(),"days")})}function V(t,e,i){return it.duration(Math.round(t.diff(e,i,!0)),i)}function k(t,e){var i,n,s;for(i=0;i<Vt.length&&!(1<=(s=T(n=Vt[i],t,e))&&N(s));i++);return n}function T(t,e,i){return null!=i?i.diff(e,t,!0):it.isDuration(e)?e.as(t):e.end.diff(e.start,t,!0)}function D(t){return Boolean(t.hours()||t.minutes()||t.seconds()||t.milliseconds())}function A(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function B(t){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(t)}function I(t,e){var i,n,s,a,r,o,l={};if(e)for(i=0;i<e.length;i++){for(n=e[i],s=[],a=t.length-1;0<=a;a--)if("object"==typeof(r=t[a][n]))s.unshift(r);else if(r!==undefined){l[n]=r;break}s.length&&(l[n]=I(s))}for(i=t.length-1;0<=i;i--)for(n in o=t[i])n in l||(l[n]=o[n]);return l}function nt(t){var e=function(){};return e.prototype=t,new e}function E(t,e){for(var i in t)F(t,i)&&(e[i]=t[i])}function M(t,e){var i,n,s=["constructor","toString","valueOf"];for(i=0;i<s.length;i++)t[n=s[i]]!==Object.prototype[n]&&(e[n]=t[n])}function F(t,e){return Bt.call(t,e)}function W(t){return/undefined|null|boolean|number|string/.test(et.type(t))}function U(t,e,i){if(et.isFunction(t)&&(t=[t]),t){var n,s;for(n=0;n<t.length;n++)s=t[n].apply(e,i)||s;return s}}function G(){for(var t=0;t<arguments.length;t++)if(arguments[t]!==undefined)return arguments[t]}function j(t){return(t+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function P(t){return t.replace(/&.*?;/g,"")}function R(t){var i=[];return et.each(t,function(t,e){null!=e&&i.push(t+":"+e)}
10),i.join(";")}function H(t){return t.charAt(0).toUpperCase()+t.slice(1)}function L(t,e){return t-e}function N(t){return t%1==0}function q(t,e){var i=t[e];return function(){return i.apply(t,arguments)}}function st(e,i){var n,s,a,r,o=function(){var t=+new Date-r;t<i&&0<t?n=setTimeout(o,i-t):(n=null,e.apply(a,s),n||(a=s=null))};return function(){a=this,s=arguments,r=+new Date,n||(n=setTimeout(o,i))}}function $(t,e,i){var n,s,a,r,o=t[0],l=1==t.length&&"string"==typeof o;return it.isMoment(o)?Q(o,r=it.apply(null,t)):A(o)||o===undefined?r=it.apply(null,t):(s=n=!1,l?Wt.test(o)?(t=[o+="-01"],s=n=!0):(a=Ut.exec(o))&&(n=!a[5],s=!0):et.isArray(o)&&(s=!0),r=e||n?it.utc.apply(it,t):it.apply(null,t),n?(r._ambigTime=!0,r._ambigZone=!0):i&&(s?r._ambigZone=!0:l&&(r.utcOffset?r.utcOffset(o):r.zone(o)))),r._fullCalendar=!0,r}function Y(t,e){var i,n,s=!1,a=!1,r=t.length,o=[];for(i=0;i<r;i++)n=t[i],it.isMoment(n)||(n=Rt.moment.parseZone(n)),s=s||n._ambigTime,a=a||n._ambigZone,o.push(n);for(i=0;i<r;i++)n=o[i],e||!s||n._ambigTime?a&&!n._ambigZone&&(o[i]=n.clone().stripZone()):o[i]=n.clone().stripTime();return o}function Q(t,e){t._ambigTime?e._ambigTime=!0:e._ambigTime&&(e._ambigTime=!1),t._ambigZone?e._ambigZone=!0:e._ambigZone&&(e._ambigZone=!1)}function Z(t,e){t.year(e[0]||0).month(e[1]||0).date(e[2]||0).hours(e[3]||0).minutes(e[4]||0).seconds(e[5]||0).milliseconds(e[6]||0)}function X(t,e){return Yt.format.call(t,e)}function J(t,e){return K(t,lt(e))}function K(t,e){var i,n="";for(i=0;i<e.length;i++)n+=tt(t,e[i]);return n}function tt(t,e){var i,n;return"string"==typeof e?e:(i=e.token)?Qt[i]?Qt[i](t):X(t,i):e.maybe&&(n=K(t,e.maybe)).match(/[1-9]/)?n:""}function at(t,e,i,n,s){return n=n||" - ",rt(t=Rt.moment.parseZone(t),e=Rt.moment.parseZone(e),lt(i=(t.localeData||t.lang).call(t).longDateFormat(i)||i),n,s)}function rt(t,e,i,n,s){var a,r,o,l,h="",d="",c="",u="",p="";for(r=0;r<i.length&&!1!==(a=ot(t,e,i[r]));r++)h+=a;for(o=i.length-1;r<o&&!1!==(a=ot(t,e,i[o]));o--)d=a+d;for(l=r;l<=o;l++)c+=tt(t,i[l]),u+=tt(e,i[l]);return(c||u)&&(p=s?u+n+c:c+n+u),h+p+d}function ot(t,e,i){var n,s;return"string"==typeof i?i:!!((n=i.token)&&(s=Zt[n.charAt(0)])&&t.isSame(e,s))&&X(t,n)}function lt(t){return t in Xt?Xt[t]:Xt[t]=ht(t)}function ht(t){for(var e,i=[],n=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;e=n.exec(t);)e[1]?i.push(e[1]):e[2]?i.push({maybe:ht(e[2])}):e[3]?i.push({token:e[3]}):e[5]&&i.push(e[5]);return i}function dt(){}function ct(t,e){return!t&&!e||!(!t||!e)&&(t.grid===e.grid&&t.row===e.row&&t.col===e.col)}function ut(t){var e=ft(t);return"background"===e||"inverse-background"===e}function pt(t){return"inverse-background"===ft(t)}function ft(t){return G((t.source||{}).rendering,t.rendering)}function gt(t){var e,i,n={};for(e=0;e<t.length;e++)(n[(i=t[e])._id]||(n[i._id]=[])).push(i);return n}function mt(t,e){return t.eventStartMS-e.eventStartMS}function vt(t,e){return t.eventStartMS-e.eventStartMS||e.eventDurationMS-t.eventDurationMS||e.event.allDay-t.event.allDay||(t.event.title||"").localeCompare(e.event.title)}function _t(t){var e,i,n,s,a=Rt.dataAttrPrefix;return a&&(a+="-"),(e=t.data(a+"event")||null)&&(null==(i=(e="object"==typeof e?et.extend({},e):{}).start)&&(i=e.time),n=e.duration,s=e.stick,delete e.start,delete e.time,delete e.duration,delete e.stick),null==i&&(i=t.data(a+"start")),null==i&&(i=t.data(a+"time")),null==n&&(n=t.data(a+"duration")),null==s&&(s=t.data(a+"stick")),{eventProps:e,startTime:i=null!=i?it.duration(i):null,duration:n=null!=n?it.duration(n):null,stick:s=Boolean(s)}}function bt(t,e){var i,n;for(i=0;i<e.length;i++)if((n=e[i]).leftCol<=t.rightCol&&n.rightCol>=t.leftCol)return!0;return!1}function yt(t,e){return t.leftCol-e.leftCol}function wt(t){var e,i,n;if(t.sort(vt),Ct(e=xt(t)),i=e[0]){for(n=0;n<i.length;n++)St(i[n]);for(n=0;n<i.length;n++)kt(i[n],0,0)}}function xt(t){var e,i,n,s=[];for(e=0;e<t.length;e++){for(i=t[e],n=0;n<s.length&&Tt(i,s[n]).length;n++);(s[i.level=n]||(s[n]=[])).push(i)}return s}function Ct(t){var e,i,n,s,a;for(e=0;e<t.length;e++)for(i=t[e],n=0;n<i.length;n++)for((s=i[n]).forwardSegs=[],a=e+1;a<t.length;a++)Tt(s,t[a],s.forwardSegs)}function St(t){var e,i,n=t.forwardSegs,s=0;if(t.forwardPressure===undefined){for(e=0;e<n.length;e++)St(i=n[e]),s=Math.max(s,1+i.forwardPressure);t.forwardPressure=s}}function kt(t,e,i){var n,s=t.forwardSegs;if(t.forwardCoord===undefined)for(s.length?(s.sort(At),kt(s[0],e+1,i),t.forwardCoord=s[0].backwardCoord):t.forwardCoord=1,t.backwardCoord=t.forwardCoord-(t.forwardCoord-i)/(e+1),n=0;n<s.length;n++)kt(s[n],0,t.forwardCoord)}function Tt(t,e,i){i=i||[];for(var n=0;n<e.length;n++)Dt(t,e[n])&&i.push(e[n]);return i}function Dt(t,e){return t.bottom>e.top&&t.top<e.bottom}function At(t,e){return e.forwardPressure-t.forwardPressure||(t.backwardCoord||0)-(e.backwardCoord||0)||vt(t,e)}function It(t,e){function i(){B?a()&&(l(),r()):n()}function n(){N.theme?"ui":"fc",t.addClass("fc"),N.isRTL?t.addClass("fc-rtl"):t.addClass("fc-ltr"),N.theme?t.addClass("ui-widget"):t.addClass("fc-unthemed"),B=et("<div class='fc-view-container'/>").prependTo(t),z=L.header=new Ft(L,N),(V=z.render())&&t.prepend(V),r(N.defaultView),N.handleWindowResize&&(G=st(d,N.windowResizeDelay),et(window).resize(G))}function s(){W&&W.removeElement(),z.removeElement(),B.remove(),t.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),G&&et(window).unbind("resize",G)}function a(){return t.is(":visible")}function r(t){K++,W&&t&&W.type!==t&&(z.deactivateButton(W.type),M(),W.removeElement(),W=L.view=null),!W&&t&&((W=L.view=J[t]||(J[t]=L.instantiateView(t))).setElement(et("<div class='fc-view fc-"+t+"-view' />").appendTo(B)),z.activateButton(t)),W&&(Y=W.massageCurrentDate(Y),W.displaying&&Y.isWithin(W.intervalStart,W.intervalEnd)||a()&&(M(),W.display(Y),F(),_(),b(),f())),F(),K--}function o(t){if(a())return t&&h(),K++,W.updateSize(!0),K--,!0}function l(){a()&&h()}
10function h(){U="number"==typeof N.contentHeight?N.contentHeight:"number"==typeof N.height?N.height-(V?V.outerHeight(!0):0):Math.round(B.width()/Math.max(N.aspectRatio,.5))}function d(t){!K&&t.target===window&&W.start&&o(!0)&&W.trigger("windowResize",X)}function c(){p(),g()}function u(){a()&&(M(),W.displayEvents(tt),F())}function p(){M(),W.clearEvents(),F()}function f(){!N.lazyFetching||Q(W.start,W.end)?g():u()}function g(){Z(W.start,W.end)}function m(t){tt=t,u()}function v(){u()}function _(){z.updateTitle(W.title)}function b(){L.getNow().isWithin(W.intervalStart,W.intervalEnd)?z.disableButton("today"):z.enableButton("today")}function y(t,e){W.select(L.buildSelectRange.apply(L,arguments))}function w(){W&&W.unselect()}function x(){Y=W.computePrevDate(Y),r()}function C(){Y=W.computeNextDate(Y),r()}function S(){Y.add(-1,"years"),r()}function k(){Y.add(1,"years"),r()}function T(){Y=L.getNow(),r()}function D(t){Y=L.moment(t),r()}function A(t){Y.add(it.duration(t)),r()}function I(t,e){var i;e=e||"day",i=L.getViewSpec(e)||L.getUnitViewSpec(e),Y=t,r(i?i.type:null)}function E(){return Y.clone()}function M(){B.css({width:"100%",height:B.height(),overflow:"hidden"})}function F(){B.css({width:"",height:"",overflow:""})}function j(){return L}function P(){return W}function R(t,e){if(e===undefined)return N[t];"height"!=t&&"contentHeight"!=t&&"aspectRatio"!=t||(N[t]=e,o(!0))}function H(t,e){if(N[t])return N[t].apply(e||X,Array.prototype.slice.call(arguments,2))}var L=this;L.initOptions(e||{});var N=this.options;L.render=i,L.destroy=s,L.refetchEvents=c,L.reportEvents=m,L.reportEventChange=v,L.rerenderEvents=u,L.changeView=r,L.select=y,L.unselect=w,L.prev=x,L.next=C,L.prevYear=S,L.nextYear=k,L.today=T,L.gotoDate=D,L.incrementDate=A,L.zoomTo=I,L.getDate=E,L.getCalendar=j,L.getView=P,L.option=R,L.trigger=H;var q,$=nt(Mt(N.lang));if(N.monthNames&&($._months=N.monthNames),N.monthNamesShort&&($._monthsShort=N.monthNamesShort),N.dayNames&&($._weekdays=N.dayNames),N.dayNamesShort&&($._weekdaysShort=N.dayNamesShort),null!=N.firstDay){var O=nt($._week);O.dow=N.firstDay,$._week=O}$._fullCalendar_weekCalc="function"==typeof(q=N.weekNumberCalculation)?q:"local"===q?q:"iso"===q||"ISO"===q?"ISO":void 0,L.defaultAllDayEventDuration=it.duration(N.defaultAllDayEventDuration),L.defaultTimedEventDuration=it.duration(N.defaultTimedEventDuration),L.moment=function(){var t;return"local"===N.timezone?(t=Rt.moment.apply(null,arguments)).hasTime()&&t.local():t="UTC"===N.timezone?Rt.moment.utc.apply(null,arguments):Rt.moment.parseZone.apply(null,arguments),"_locale"in t?t._locale=$:t._lang=$,t},L.getIsAmbigTimezone=function(){return"local"!==N.timezone&&"UTC"!==N.timezone},L.rezoneDate=function(t){return L.moment(t.toArray())},L.getNow=function(){var t=N.now;return"function"==typeof t&&(t=t()),L.moment(t)},L.getEventEnd=function(t){return t.end?t.end.clone():L.getDefaultEventEnd(t.allDay,t.start)},L.getDefaultEventEnd=function(t,e){var i=e.clone();return t?i.stripTime().add(L.defaultAllDayEventDuration):i.add(L.defaultTimedEventDuration),L.getIsAmbigTimezone()&&i.stripZone(),i},L.humanizeDuration=function(t){return(t.locale||t.lang).call(t,N.lang).humanize()},jt.call(L,N);var z,V,B,W,U,G,Y,Q=L.isFetchNeeded,Z=L.fetchEvents,X=t[0],J={},K=0,tt=[];Y=null!=N.defaultDate?L.moment(N.defaultDate):L.getNow(),L.getSuggestedViewHeight=function(){return U===undefined&&l(),U},L.isHeightAuto=function(){return"auto"===N.contentHeight||"auto"===N.height},L.initialize()}function Et(i){et.each(pe,function(t,e){null==i[t]&&(i[t]=e(i))})}function Mt(t){var e=it.localeData||it.langData;return e.call(it,t)||e.call(it,"en")}function Ft(u,p){function t(){var t=p.header;if(f=p.theme?"ui":"fc",t)return d=et("<div class='fc-toolbar'/>").append(i("left")).append(i("right")).append(i("center")).append('<div class="fc-clear"/>')}function e(){d.remove(),d=et()}function i(t){var e=et('<div class="fc-'+t+'"/>'),i=p.header[t];return i&&et.each(i.split(" "),function(){var t,d=et(),c=!0;et.each(this.split(","),function(t,e){var i,n,s,a,r,o,l,h;"title"==e?(d=d.add(et("<h2>&nbsp;</h2>")),c=!1):((i=u.getViewSpec(e))?(n=function(){u.changeView(e)}
10,g.push(e),s=i.buttonTextOverride,a=i.buttonTextDefault):u[e]&&(n=function(){u[e]()},s=(u.overrides.buttonText||{})[e],a=p.buttonText[e]),n&&(r=p.themeButtonIcons[e],o=p.buttonIcons[e],l=s?j(s):r&&p.theme?"<span class='ui-icon ui-icon-"+r+"'></span>":o&&!p.theme?"<span class='fc-icon fc-icon-"+o+"'></span>":j(a),h=et('<button type="button" class="'+["fc-"+e+"-button",f+"-button",f+"-state-default"].join(" ")+'">'+l+"</button>").click(function(){h.hasClass(f+"-state-disabled")||(n(),(h.hasClass(f+"-state-active")||h.hasClass(f+"-state-disabled"))&&h.removeClass(f+"-state-hover"))}).mousedown(function(){h.not("."+f+"-state-active").not("."+f+"-state-disabled").addClass(f+"-state-down")}).mouseup(function(){h.removeClass(f+"-state-down")}).hover(function(){h.not("."+f+"-state-active").not("."+f+"-state-disabled").addClass(f+"-state-hover")},function(){h.removeClass(f+"-state-hover").removeClass(f+"-state-down")}),d=d.add(h)))}),c&&d.first().addClass(f+"-corner-left").end().last().addClass(f+"-corner-right").end(),1<d.length?(t=et("<div/>"),c&&t.addClass("fc-button-group"),t.append(d),e.append(t)):e.append(d)}),e}function n(t){d.find("h2").text(t)}function s(t){d.find(".fc-"+t+"-button").addClass(f+"-state-active")}function a(t){d.find(".fc-"+t+"-button").removeClass(f+"-state-active")}function r(t){d.find(".fc-"+t+"-button").attr("disabled","disabled").addClass(f+"-state-disabled")}function o(t){d.find(".fc-"+t+"-button").removeAttr("disabled").removeClass(f+"-state-disabled")}function l(){return g}var h=this;h.render=t,h.removeElement=e,h.updateTitle=n,h.activateButton=s,h.deactivateButton=a,h.disableButton=r,h.enableButton=o,h.getViewsWithButtons=l;var f,d=et(),g=[]}function jt(f){function t(t,e){return!j||t.clone().stripZone()<j.clone().stripZone()||e.clone().stripZone()>P.clone().stripZone()}function e(t,e){j=t,P=e,$=[];var i=++N,n=L.length;q=n;for(var s=0;s<n;s++)a(L[s],i)}function a(a,r){g(a,function(t){var e,i,n,s=et.isArray(a.events);if(r==N){if(t)for(e=0;e<t.length;e++)i=t[e],(n=s?i:m(i,a))&&$.push.apply($,w(n));--q||R($)}})}function g(t,i){var e,n,s=Rt.sourceFetchers;for(e=0;e<s.length;e++){if(!0===(n=s[e].call(F,t,j.clone(),P.clone(),f.timezone,i)))return;if("object"==typeof n)return void g(n,i)}var a=t.events;if(a)et.isFunction(a)?(F.pushLoading(),a.call(F,j.clone(),P.clone(),f.timezone,function(t){i(t),F.popLoading()})):et.isArray(a)?i(a):i();else if(t.url){var r,o=t.success,l=t.error,h=t.complete;r=et.isFunction(t.data)?t.data():t.data;var d=et.extend({},r||{}),c=G(t.startParam,f.startParam),u=G(t.endParam,f.endParam),p=G(t.timezoneParam,f.timezoneParam);c&&(d[c]=j.format()),u&&(d[u]=P.format()),f.timezone&&"local"!=f.timezone&&(d[p]=f.timezone),F.pushLoading(),et.ajax(et.extend({},fe,t,{data:d,success:function(t){t=t||[];var e=U(o,this,arguments);et.isArray(e)&&(t=e),i(t)},error:function(){U(l,this,arguments),i()},complete:function(){U(h,this,arguments),F.popLoading()}}))}else i()}function i(t){var e=n(t);e&&(L.push(e),q++,a(e,N))}function n(t){var e,i,n=Rt.sourceNormalizers;if(et.isFunction(t)||et.isArray(t)?e={events:t}:"string"==typeof t?e={url:t}:"object"==typeof t&&(e=et.extend({},t)),e){for(e.className?"string"==typeof e.className&&(e.className=e.className.split(/\s+/)):e.className=[],et.isArray(e.events)&&(e.origArray=e.events,e.events=et.map(e.events,function(t){return m(t,e)})),i=0;i<n.length;i++)n[i].call(F,e);return e}}function s(e){L=et.grep(L,function(t){return!r(t,e)}),$=et.grep($,function(t){return!r(t.source,e)}),R($)}function r(t,e){return t&&e&&o(t)==o(e)}function o(t){return("object"==typeof t?t.origArray||t.googleCalendarId||t.url||t.events:null)||t}function l(t){t.start=F.moment(t.start),t.end?t.end=F.moment(t.end):t.end=null,x(t,h(t)),R($)}function h(t){var i={};return et.each(t,function(t,e){d(t)&&e!==undefined&&W(e)&&(i[t]=e)}),i}function d(t){return!/^_|^(id|allDay|start|end)$/.test(t)}function c(t,e){var i,n,s,a=m(t);if(a){for(i=w(a),n=0;n<i.length;n++)(s=i[n]).source||(e&&(H.events.push(s),s.source=H),$.push(s));return R($),i}return[]}function u(t){var e,i;for(null==t?t=function(){return!0}:et.isFunction(t)||(e=t+"",t=function(t){return t._id==e}),$=et.grep($,t,!0),i=0;i<L.length;i++)et.isArray(L[i].events)&&(L[i].events=et.grep(L[i].events,t,!0));R($)}function p(e){return et.isFunction(e)?et.grep($,e):null!=e?(e+="",et.grep($,function(t){return t._id==e})):$}function m(t,e){var i,n,s,a={};if(f.eventDataTransform&&(t=f.eventDataTransform(t)),e&&e.eventDataTransform&&(t=e.eventDataTransform(t)),et.extend(a,t),e&&(a.source=e),a._id=t._id||(t.id===un
10defined?"_fc"+ge++:t.id+""),t.className?"string"==typeof t.className?a.className=t.className.split(/\s+/):a.className=t.className:a.className=[],i=t.start||t.date,n=t.end,B(i)&&(i=it.duration(i)),B(n)&&(n=it.duration(n)),t.dow||it.isDuration(i)||it.isDuration(n))a.start=i?it.duration(i):null,a.end=n?it.duration(n):null,a._recurring=!0;else{if(i&&!(i=F.moment(i)).isValid())return!1;n&&((n=F.moment(n)).isValid()||(n=null)),(s=t.allDay)===undefined&&(s=G(e?e.allDayDefault:undefined,f.allDayDefault)),v(i,n,s,a)}return a}function v(t,e,i,n){n.start=t,n.end=e,n.allDay=i,_(n),Pt(n)}function _(t){b(t),t.end&&!t.end.isAfter(t.start)&&(t.end=null),t.end||(f.forceEventDuration?t.end=F.getDefaultEventEnd(t.allDay,t.start):t.end=null)}function b(t){null==t.allDay&&(t.allDay=!(t.start.hasTime(
11)||t.end&&t.end.hasTime())),t.allDay?(t.start.stripTime(),t.end&&t.end.stripTime()):(t.start.hasTime()||(t.start=F.rezoneDate(t.start)),t.end&&!t.end.hasTime()&&(t.end=F.rezoneDate(t.end)))}function y(t){var e;return t.end||(null==(e=t.allDay)&&(e=!t.start.hasTime()),(t=et.extend({},t)).end=F.getDefaultEventEnd(e,t.start)),t}function w(t,e,i){var n,s,a,r,o,l,h,d,c,u=[];
11if(e=e||j,i=i||P,t)if(t._recurring){if(s=t.dow)for(n={},a=0;a<s.length;a++)n[s[a]]=!0;for(r=e.clone().stripTime();r.isBefore(i);)n&&!n[r.day()]||(o=t.start,l=t.end,h=r.clone(),d=null,o&&(h=h.time(o)),l&&(d=r.clone().time(l)),v(h,d,!o&&!l,c=et.extend({},t)),u.push(c)),r.add(1,"days")}else u.push(t);return u}function x(t,i,n){function e(t,e){return n?V(t,e,n):i.allDay?z(t,e):O(t,e)}var s,a,r,o,l={};return(i=i||{}).start||(i.start=t.start.clone()),i.end===undefined&&(i.end=t.end?t.end.clone():null),null==i.allDay&&(i.allDay=t.allDay),_(i),_(s={start:t._start.clone(),end:t._end?t._end.clone():F.getDefaultEventEnd(t._allDay,t._start),allDay:i.allDay}),a=null!==t._end&&null===i.end,r=e(i.start,s.start),o=i.end?e(i.end,s.end).subtract(r):null,et.each(i,function(t,e){d(t)&&e!==undefined&&(l[t]=e)}),{dateDelta:r,durationDelta:o,undo:C(p(t._id),a,i.allDay,r,o,l)}}function C(t,s,a,r,o,l){var h=F.getIsAmbigTimezone(),d=[];return r&&!r.valueOf()&&(r=null),o&&!o.valueOf()&&(o=null),et.each(t,function(t,e){var i,n;i={start:e.start.clone(),end:e.end?e.end.clone():null,allDay:e.allDay},et.each(l,function(t){i[t]=e[t]}),_(n={start:e._start,end:e._end,allDay:a}),s?n.end=null:o&&!n.end&&(n.end=F.getDefaultEventEnd(n.allDay,n.start)),r&&(n.start.add(r),n.end&&n.end.add(r)),o&&n.end.add(o),h&&!n.allDay&&(r||o)&&(n.start.stripZone(),n.end&&n.end.stripZone()),et.extend(e,l,n),Pt(e),d.push(function(){et.extend(e,i),Pt(e)})}),function(){for(var t=0;t<d.length;t++)d[t]()}}function S(t){var e,i=f.businessHours,n={className:"fc-nonbusiness",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},s=F.getView();return i&&(e=et.extend({},n,"object"==typeof i?i:{})),e?(t&&(e.start=null,e.end=null),w(m(e),s.start,s.end)):[]}function k(t,e){var i=e.source||{},n=G(e.constraint,i.constraint,f.eventConstraint),s=G(e.overlap,i.overlap,f.eventOverlap);return A(t=y(t),n,s,e)}function T(t){return A(t,f.selectConstraint,f.selectOverlap)}function D(t,e){var i;return e&&(i=w(m(et.extend({},e,t)))[0]),i?k(t,i):T(t=y(t))}function A(t,e,i,n){var s,a,r,o,l,h;if((t=et.extend({},t)).start=t.start.clone().stripZone(),t.end=t.end.clone().stripZone(),null!=e){for(s=I(e),a=!1,o=0;o<s.length;o++)if(E(s[o],t)){a=!0;break}if(!a)return!1}for(r=F.getPeerEvents(n,t),o=0;o<r.length;o++)if(M(l=r[o],t)){if(!1===i)return!1;if("function"==typeof i&&!i(l,n))return!1;if(n){if(!1===(h=G(l.overlap,(l.source||{}).overlap)))return!1;if("function"==typeof h&&!h(n,l))return!1}}return!0}function I(t){return"businessHours"===t?S():"object"==typeof t?w(m(t)):p(t)}function E(t,e){var i=t.start.clone().stripZone(),n=F.getEventEnd(t).stripZone();return e.start>=i&&e.end<=n}function M(t,e){var i=t.start.clone().stripZone(),n=F.getEventEnd(t).stripZone();return e.start<n&&e.end>i}var F=this;F.isFetchNeeded=t,F.fetchEvents=e,F.addEventSource=i,F.removeEventSource=s,F.updateEvent=l,F.renderEvent=c,F.removeEvents=u,F.clientEvents=p,F.mutateEvent=x,F.normalizeEventRange=_,F.normalizeEventRangeTimes=b,F.ensureVisibleEventRange=y;var j,P,R=F.reportEvents,H={events:[]},L=[H],N=0,q=0,$=[];et.each((f.events?[f.events]:[]).concat(f.eventSources||[]),function(t,e){var i=n(e);i&&L.push(i)}),F.getBusinessHoursEvents=S,F.isEventRangeAllowed=k,F.isSelectionRangeAllowed=T,F.isExternalDropRangeAllowed=D,F.getEventCache=function(){return $}}function Pt(t){t._allDay=t.allDay,t._start=t.start.clone(),t._end=t.end?t.end.clone():null}var Rt=et.fullCalendar={version:"2.3.2"},Ht=Rt.views={};et.fn.fullCalendar=function(a){var r=Array.prototype.slice.call(arguments,1),o=this;return this.each(function(t,e){var i,n=et(e),s=n.data("fullCalendar");"string"==typeof a?s&&et.isFunction(s[a])&&(i=s[a].apply(s,r),t||(o=i),"destroy"===a&&n.removeData("fullCalendar")):s||(s=new he(n,a),n.data("fullCalendar",s),s.render())}),o};var Lt=["header","buttonText","buttonIcons","themeButtonIcons"];Rt.intersectionToSeg=S,Rt.applyAll=U,Rt.debounce=st,Rt.isInt=N,Rt.htmlEscape=j,Rt.cssToStr=R,Rt.proxy=q,Rt.capitaliseFirstLetter=H,Rt.getClientRect=e,Rt.getContentRect=f,Rt.getScrollbarWidths=g;var Nt=null;Rt.computeIntervalUnit=k,Rt.durationHasTime=D;var qt,$t,Ot,zt=["sun","mon","tue","wed","thu","fri","sat"],Vt=["year","month","week","day","hour","minute","second","millisecond"],Bt={}
11.hasOwnProperty,Wt=/^\s*\d{4}-\d\d$/,Ut=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,Gt=it.fn,Yt=et.extend({},Gt);Rt.moment=function(){return $(arguments)},Rt.moment.utc=function(){var t=$(arguments,!0);return t.hasTime()&&t.utc(),t},Rt.moment.parseZone=function(){return $(arguments,!0,!0)},Gt.clone=function(){var t=Yt.clone.apply(this,arguments);return Q(this,t),this._fullCalendar&&(t._fullCalendar=!0),t},Gt.week=Gt.weeks=function(t){var e=(this._locale||this._lang)._fullCalendar_weekCalc;return null==t&&"function"==typeof e?e(this):"ISO"===e?Yt.isoWeek.apply(this,arguments):Yt.week.apply(this,arguments)},Gt.time=function(t){if(!this._fullCalendar)return Yt.time.apply(this,arguments);if(null==t)return it.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,it.isDuration(t)||it.isMoment(t)||(t=it.duration(t));var e=0;return it.isDuration(t)&&(e=24*Math.floor(t.asDays())),this.hours(e+t.hours()).minutes(t.minutes()).seconds(t.seconds()).milliseconds(t.milliseconds())},Gt.stripTime=function(){var t;return this._ambigTime||(t=this.toArray(),this.utc(),$t(this,t.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this},Gt.hasTime=function(){return!this._ambigTime},Gt.stripZone=function(){var t,e;return this._ambigZone||(t=this.toArray(),e=this._ambigTime,this.utc(),$t(this,t),this._ambigTime=e||!1,this._ambigZone=!0),this},Gt.hasZone=function(){return!this._ambigZone},Gt.local=function(){var t=this.toArray(),e=this._ambigZone;return Yt.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,e&&Ot(this,t),this},Gt.utc=function(){return Yt.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this},et.each(["zone","utcOffset"],function(t,e){Yt[e]&&(Gt[e]=function(t){return null!=t&&(this._ambigTime=!1,this._ambigZone=!1),Yt[e].apply(this,arguments)})}),Gt.format=function(t){return this._fullCalendar&&t?J(this,t):this._ambigTime?X(this,"YYYY-MM-DD"):this._ambigZone?X(this,"YYYY-MM-DD[T]HH:mm:ss"):Yt.format.apply(this,arguments)},Gt.toISOString=function(){return this._ambigTime?X(this,"YYYY-MM-DD"):this._ambigZone?X(this,"YYYY-MM-DD[T]HH:mm:ss"):Yt.toISOString.apply(this,arguments)},Gt.isWithin=function(t,e){var i=Y([this,t,e]);return i[0]>=i[1]&&i[0]<i[2]},Gt.isSame=function(t,e){var i;return this._fullCalendar?e?(i=Y([this,t],!0),Yt.isSame.call(i[0],i[1],e)):(t=Rt.moment.parseZone(t),Yt.isSame.call(this,t)&&Boolean(this._ambigTime)===Boolean(t._ambigTime)&&Boolean(this._ambigZone)===Boolean(t._ambigZone)):Yt.isSame.apply(this,arguments)},et.each(["isBefore","isAfter"],function(t,n){Gt[n]=function(t,e){var i;return this._fullCalendar?(i=Y([this,t]),Yt[n].call(i[0],i[1],e)):Yt[n].apply(this,arguments)}}),qt="_d"in it()&&"updateOffset"in it,$t=qt?function(t,e){t._d.setTime(Date.UTC.apply(Date,e)),it.updateOffset(t,!1)}:Z,Ot=qt?function(t,e){t._d.setTime(+new Date(e[0]||0,e[1]||0,e[2]||0,e[3]||0,e[4]||0,e[5]||0,e[6]||0)),it.updateOffset(t,!1)}:Z;var Qt={t:function(t){return X(t,"a").charAt(0)},T:function(t){return X(t,"A").charAt(0)}};Rt.formatRange=at;var Zt={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"},Xt={};(Rt.Class=dt).extend=function(t){var e,i=this;return F(t=t||{},"constructor")&&(e=t.constructor),"function"!=typeof e&&(e=t.constructor=function(){i.apply(this,arguments)}),e.prototype=nt(i.prototype),E(t,e.prototype),M(t,e.prototype),E(i,e),e},dt.mixin=function(t){E(t.prototype||t,this.prototype)};var Jt=dt.extend({isHidden:!0,options:null,el:null,documentMousedownProxy:null,margin:10,constructor:function(t){this.options=t||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var t=this,e=this.options;this.el=et('<div class="fc-popover"/>').addClass(e.className||"").css({top:0,left:0}).append(e.content).appendTo(e.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),e.autoHide&&et(document).on("mousedown",this.documentMousedownProxy=q(this,"documentMousedown"))},documentMousedown:function(t){this.el&&!et(t.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),et(document).off("mousedown",this.documentMousedownProxy)},position:function(){var t,e,i,n,s,a=this.options,r=this.el.offsetParent().offset(),o=this.el.outerWidth(),l=this.el.outerHeight(),h=et(window),d=p(this.el);n=a.top||0,s=a.left!==undefined?a.left:a.right!==undefined?a.right-o:0,d.is(window)||d.is(document)?(d=h,e=t=0):(t=(i=d.offset()).top,e=i.left),t+=h.scrollTop(),e+=h.scrollLeft(),!1!==a.viewportConstrain&&(n=Math.min(n,t+d.outerHeight()-l-this.margin),n=Math.max(n,t+this.margin),s=Math.min(s,e+d.outerWidth()-o-this.margin),s=Math.max(s,e+this.margin)),this.el.css({top:n-r.top,left
11:s-r.left})},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))}}),Kt=dt.extend({grid:null,rowCoords:null,colCoords:null,containerEl:null,bounds:null,constructor:function(t){this.grid=t},build:function(){this.grid.build(),this.rowCoords=this.grid.computeRowCoords(),this.colCoords=this.grid.computeColCoords(),this.computeBounds()},clear:function(){this.grid.clear(),this.rowCoords=null,this.colCoords=null},getCell:function(t,e){var i,n,s,a=this.rowCoords,r=a.length,o=this.colCoords,l=o.length,h=null,d=null;if(this.inBounds(t,e)){for(i=0;i<r;i++)if(e>=(n=a[i]).top&&e<n.bottom){h=i;break}for(i=0;i<l;i++)if(t>=(n=o[i]).left&&t<n.right){d=i;break}if(null!==h&&null!==d)return(s=this.grid.getCell(h,d)).grid=this.grid,et.extend(s,a[h],o[d]),s}return null},computeBounds:function(){this.bounds=this.containerEl?e(this.containerEl):null},inBounds:function(t,e){var i=this.bounds;return!i||t>=i.left&&t<i.right&&e>=i.top&&e<i.bottom}}),te=dt.extend({coordMaps:null,constructor:function(t){this.coordMaps=t},build:function(){var t,e=this.coordMaps;for(t=0;t<e.length;t++)e[t].build()},getCell:function(t,e){var i,n=this.coordMaps,s=null;for(i=0;i<n.length&&!s;i++)s=n[i].getCell(t,e);return s},clear:function(){var t,e=this.coordMaps;for(t=0;t<e.length;t++)e[t].clear()}}),ee=Rt.DragListener=dt.extend({options:null,isListening:!1,isDragging:!1,originX:null,originY:null,mousemoveProxy:null,mouseupProxy:null,subjectEl:null,subjectHref:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,constructor:function(t){t=t||{},this.options=t,this.subjectEl=t.subjectEl},mousedown:function(t){b(t)&&(t.preventDefault(),this.startListening(t),this.options.distance||this.startDrag(t))},startListening:function(t){var e;this.isListening||(t&&this.options.scroll&&((e=p(et(t.target))).is(window)||e.is(document)||(this.scrollEl=e,this.scrollHandlerProxy=st(q(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),et(document).on("mousemove",this.mousemoveProxy=q(this,"mousemove")).on("mouseup",this.mouseupProxy=q(this,"mouseup")).on("selectstart",this.preventDefault),t?(this.originX=t.pageX,this.originY=t.pageY):(this.originX=0,this.originY=0),this.isListening=!0,this.listenStart(t))},listenStart:function(t){this.trigger("listenStart",t)},mousemove:function(t){var e,i=t.pageX-this.originX,n=t.pageY-this.originY;this.isDragging||(e=this.options.distance||1)*e<=i*i+n*n&&this.startDrag(t),this.isDragging&&this.drag(i,n,t)},startDrag:function(t){this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.dragStart(t))},dragStart:function(t){var e=this.subjectEl;this.trigger("dragStart",t),(this.subjectHref=e?e.attr("href"):null)&&e.removeAttr("href")},drag:function(t,e,i){this.trigger("drag",t,e,i),this.updateScroll(i)},mouseup:function(t){this.stopListening(t)},stopDrag:function(t){this.isDragging&&(this.stopScrolling(),this.dragStop(t),this.isDragging=!1)},dragStop:function(t){var e=this;this.trigger("dragStop",t),setTimeout(function(){e.subjectHref&&e.subjectEl.attr("href",e.subjectHref)},0)},stopListening:function(t){this.stopDrag(t),this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),et(document).off("mousemove",this.mousemoveProxy).off("mouseup",this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.listenStop(t))},listenStop:function(t){this.trigger("listenStop",t)},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(t){t.preventDefault()},computeScrollBounds:function(){var t=this.scrollEl;this.scrollBounds=t?h(t):null},updateScroll:function(t){var e,i,n,s,a=this.scrollSensitivity,r=this.scrollBounds,o=0,l=0;r&&(e=(a-(t.pageY-r.top))/a,i=(a-(r.bottom-t.pageY))/a,n=(a-(t.pageX-r.left))/a,s=(a-(r.right-t.pageX))/a,0<=e&&e<=1?o=e*this.scrollSpeed*-1:0<=i&&i<=1&&(o=i*this.scrollSpeed),0<=n&&n<=1?l=n*this.scrollSpeed*-1:0<=s&&s<=1&&(l=s*this.scrollSpeed)),this.setScrollVel(o,l)},setScrollVel:function(t,e){this.scrollTopVel=t,this.scrollLeftVel=e,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(q(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var t=this.scrollEl;this.scrollTopVel<0?t.scrollTop()<=0&&(this.scrollTopVel=0):0<this.scrollTopVel&&t.scrollTop()+t[0].clientHeight>=t[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?t.scrollLeft()<=0&&(this.scrollLeftVel=0):0<this.scrollLeftVel&&t.scrollLeft()+t[0].clientWidth>=t[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var t=this.scrollEl,e=this.scrollIntervalMs/1e3;this.scrollTopVel&&t.scrollTop(t.scrollTop()+this.scrollTopVel*e),this.scrollLeftVel&&t.scrollLeft(t.scrollLeft()+this.scrollLeftVel*e),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.scrollStop())},scrollHandler:function(){this.scrollIntervalId||this.scrollStop()},scrollStop:function(){}}),ie=ee.extend({coordMap:null,origCell:null,cell:null,coordAdjust:null,constructor:function(t,e){ee.prototype.constructor.call(this,e),this.coordMap=t},listenStart:function(t){var e,i,n,s=this.subjectEl;ee.prototype.listenStart.apply(this,arguments),this.computeCoords(),t?(n=i={left:t.pageX,top:t.pageY},s&&(n=w(n,e=h(s))),this.origCell=this.getCell(n.left,n.top),s&&this.options.subjectCenter&&(this.origCell&&(e=y(this.origCell,e)||e),n=x(e)),this.coordAdjust=C(n,i)):(this.origCell=null,this.coordAdjust=null)},computeCoords:function(){this.coordMap.build(),this.computeScrollBounds()},dragStart:function(t){var e;ee.prototype.dragStart.apply(this,arguments),(e=this.getCell(t.pageX,t.pageY))&&this.cellOver(e)}
11,drag:function(t,e,i){var n;ee.prototype.drag.apply(this,arguments),ct(n=this.getCell(i.pageX,i.pageY),this.cell)||(this.cell&&this.cellOut(),n&&this.cellOver(n))},dragStop:function(){this.cellDone(),ee.prototype.dragStop.apply(this,arguments)},cellOver:function(t){this.cell=t,this.trigger("cellOver",t,ct(t,this.origCell),this.origCell)},cellOut:function(){this.cell&&(this.trigger("cellOut",this.cell),this.cellDone(),this.cell=null)},cellDone:function(){this.cell&&this.trigger("cellDone",this.cell)},listenStop:function(){ee.prototype.listenStop.apply(this,arguments),this.origCell=this.cell=null,this.coordMap.clear()},scrollStop:function(){ee.prototype.scrollStop.apply(this,arguments),this.computeCoords()},getCell:function(t,e){return this.coordAdjust&&(t+=this.coordAdjust.left,e+=this.coordAdjust.top),this.coordMap.getCell(t,e)}}),ne=dt.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(t,e){this.options=e=e||{},this.sourceEl=t,this.parentEl=e.parentEl?et(e.parentEl):t.parent()},start:function(t){this.isFollowing||(this.isFollowing=!0,this.mouseY0=t.pageY,this.mouseX0=t.pageX,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),et(document).on("mousemove",this.mousemoveProxy=q(this,"mousemove")))},stop:function(t,e){function i(){this.isAnimating=!1,n.removeElement(),this.top0=this.left0=null,e&&e()}var n=this,s=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,et(document).off("mousemove",this.mousemoveProxy),t&&s&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:s,complete:i})):i())},getEl:function(){var t=this.el;return t||(this.sourceEl.width(),t=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),t},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var t,e;this.getEl(),null===this.top0&&(this.sourceEl.width(),t=this.sourceEl.offset(),e=this.el.offsetParent().offset(),this.top0=t.top-e.top,this.left0=t.left-e.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(t){this.topDelta=t.pageY-this.mouseY0,this.leftDelta=t.pageX-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),se=dt.extend({view:null,isRTL:null,cellHtml:"<td/>",constructor:function(t){this.view=t,this.isRTL=t.opt("isRTL")},rowHtml:function(t,e){var i,n=this.getHtmlRenderer("cell",t),s="";for(e=e||0,i=0;i<this.colCnt;i++)s+=n(this.getCell(e,i));return"<tr>"+(s=this.bookendCells(s,t,e))+"</tr>"},bookendCells:function(t,e,i){var n=this.getHtmlRenderer("intro",e)(i||0),s=this.getHtmlRenderer("outro",e)(i||0),a=this.isRTL?s:n,r=this.isRTL?n:s;return"string"==typeof t?a+t+r:t.prepend(a).append(r)},getHtmlRenderer:function(t,e){var i,n,s,a,r=this.view;return i=t+"Html",e&&(n=e+H(t)+"Html"),n&&(a=r[n])?s=r:n&&(a=this[n])?s=this:(a=r[i])?s=r:(a=this[i])&&(s=this),"function"==typeof a?function(){return a.apply(s,arguments)||""}:function(){return a||""}}}),ae=Rt.Grid=se.extend({start:null,end:null,rowCnt:0,colCnt:0,el:null,coordMap:null,elsByFill:null,externalDragStartProxy:null,colHeadFormat:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,cellDuration:null,largeUnit:null,constructor:function(){se.apply(this,arguments),this.coordMap=new Kt(this),this.elsByFill={},this.externalDragStartProxy=q(this,"externalDragStart")},computeColHeadFormat:function(){},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(t){this.start=t.start.clone(),this.end=t.end.clone(),this.rangeUpdated(),this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var t,e,i=this.view;this.colHeadFormat=i.opt("columnFormat")||this.computeColHeadFormat(),this.eventTimeFormat=i.opt("eventTimeFormat")||i.opt("timeFormat")||this.computeEventTimeFormat(),null==(t=i.opt("displayEventTime"))&&(t=this.computeDisplayEventTime()),null==(e=i.opt("displayEventEnd"))&&(e=this.computeDisplayEventEnd()),this.displayEventTime=t,this.displayEventEnd=e},build:function(){},clear:function(){},rangeToSegs:function(){},diffDates:function(t,e){return this.largeUnit?V(t,e,this.largeUnit):O(t,e)},getCell:function(t,e){var i;return null==e&&("number"==typeof t?(e=t%this.colCnt,t=Math.floor(t/this.colCnt)):(e=t.col,t=t.row)),i={row:t,col:e},et.extend(i,this.getRowData(t),this.getColData(e)),et.extend(i,this.computeCellRange(i)),i},computeCellRange:function(t){var e=this.computeCellDate(t);return{start:e,end:e.clone().add(this.cellDuration)}},computeCellDate:function(){},getRowData:function(){return{}},getColData:function(){return{}},getRowEl:function(){},getColEl:function(){},getCellDayEl:function(t){return this.getColEl(t.col)||this.getRowEl(t.row)},computeRowCoords:function(){var t,e,i,n=[];for(t=0;t<this.rowCnt;t++)i=(e=this.getRowEl(t)).offset().top,n.push({top:i,bottom:i+e.outerHeight()});return n},computeColCoords:function(){var t,e,i,n=[];for(t=0;t<this.colCnt;t++)i=(e=this.getColEl(t)).offset().left,n.push({left:i,right:i+e.outerWidth()});return n},setElement:function(t){var e=this;(this.el=t).on("mousedown",function(t){et(t.target).is(".fc-event-container *, .fc-more")||et(t.target).closest(".fc-popover").length||e.dayMousedown(t)}),this.bindSegHandlers(),this.bindGlobalHandlers()},removeElement:function(){this.unbindGlobalHandlers(),this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){et(document).on("dragstart sortstart",this.externalDragStartProxy)},unbindGlobalHandlers:function(){et(document).off("dragstart sortstart",this.externalDragStartProxy)},dayMousedown:function(t){var n,s,a=this,e=this.view,r=e.opt("selectable");new ie(this.coordMap,{scroll:e.opt("dragScroll"),dragStart:function(){e.unselect()}
11,cellOver:function(t,e,i){i&&(n=e?t:null,r&&((s=a.computeSelection(i,t))?a.renderSelection(s):c()))},cellOut:function(){s=n=null,a.unrenderSelection(),u()},listenStop:function(t){n&&e.triggerDayClick(n,a.getCellDayEl(n),t),s&&e.reportSelection(s,t),u()}}).mousedown(t)},renderRangeHelper:function(t,e){var i=this.fabricateHelperEvent(t,e);this.renderHelper(i,e)},fabricateHelperEvent:function(t,e){var i=e?nt(e.event):{};return i.start=t.start.clone(),i.end=t.end?t.end.clone():null,i.allDay=null,this.view.calendar.normalizeEventRange(i),i.className=(i.className||[]).concat("fc-helper"),e||(i.editable=!1),i},renderHelper:function(){},unrenderHelper:function(){},renderSelection:function(t){this.renderHighlight(this.selectionRangeToSegs(t))},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(t,e){var i,n=[t.start,t.end,e.start,e.end];return n.sort(L),i={start:n[0].clone(),end:n[3].clone()},this.view.calendar.isSelectionRangeAllowed(i)?i:null},selectionRangeToSegs:function(t){return this.rangeToSegs(t)},renderHighlight:function(t){this.renderFill("highlight",t)},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderFill:function(){},unrenderFill:function(t){var e=this.elsByFill[t];e&&(e.remove(),delete this.elsByFill[t])},renderFillSegEls:function(t,s){var e,a=this,r=this[t+"SegEl"],i="",o=[];if(s.length){for(e=0;e<s.length;e++)i+=this.fillSegHtml(t,s[e]);et(i).each(function(t,e){var i=s[t],n=et(e);r&&(n=r.call(a,i,n)),n&&(n=et(n)).is(a.fillSegTag)&&(i.el=n,o.push(i))})}return o},fillSegTag:"div",fillSegHtml:function(t,e){var i=this[t+"SegClasses"],n=this[t+"SegCss"],s=i?i.call(this,e):[],a=R(n?n.call(this,e):{});return"<"+this.fillSegTag+(s.length?' class="'+s.join(" ")+'"':"")+(a?' style="'+a+'"':"")+" />"},headHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.rowHtml("head")+"</thead></table></div>"},headCellHtml:function(t){var e=this.view,i=t.start;return'<th class="fc-day-header '+e.widgetHeaderClass+" fc-"+zt[i.day()]+'">'+j(i.format(this.colHeadFormat))+"</th>"},bgCellHtml:function(t){var e=this.view,i=t.start,n=this.getDayClasses(i);return n.unshift("fc-day",e.widgetContentClass),'<td class="'+n.join(" ")+'" data-date="'+i.format("YYYY-MM-DD")+'"></td>'},getDayClasses:function(t){var e=this.view,i=e.calendar.getNow().stripTime(),n=["fc-"+zt[t.day()]];return 1==e.intervalDuration.as("months")&&t.month()!=e.intervalStart.month()&&n.push("fc-other-month"),t.isSame(i,"day")?n.push("fc-today",e.highlightStateClass):t<i?n.push("fc-past"):n.push("fc-future"),n}});ae.mixin({mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExter
11nal:!1,segs:null,renderEvents:function(t){var e,i,n=this.eventsToSegs(t),s=[],a=[];for(e=0;e<n.length;e++)ut((i=n[e]).event)?s.push(i):a.push(i);s=this.renderBgSegs(s)||s,a=this.renderFgSegs(a)||a,this.segs=s.concat(a)},unrenderEvents:function(){this.triggerSegMouseout(),this.unrenderFgSegs(),this.unrenderBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(){},unrenderFgSegs:function(){},renderFgSegEls:function(s,t){var e,a=this.view,i="",r=[];if(s.length){for(e=0;e<s.length;e++)i+=this.fgSegHtml(s[e],t);et(i).each(function(t,e){var i=s[t],n=a.resolveEventEl(i.event,et(e));n&&(n.data("fc-seg",i),i.el=n,r.push(i))})}return r},fgSegHtml:function(){},renderBgSegs:function(t){return this.renderFill("bgEvent",t)},unrenderBgSegs:function(){this.unrenderFill("bgEvent")},bgEventSegEl:function(t,e){return this.view.resolveEventEl(t.event,e)},bgEventSegClasses:function(t){var e=t.event,i=e.source||{};return["fc-bgevent"].concat(e.className,i.className||[])},bgEventSegCss:function(t){var e=this.view,i=t.event,n=i.source||{};return{"background-color":i.backgroundColor||i.color||n.backgroundColor||n.color||e.opt("eventBackgroundColor")||e.opt("eventColor")}},businessHoursSegClasses:function(){return["fc-nonbusiness","fc-bgevent"]},bindSegHandlers:function(){var n=this,i=this.view;et.each({mouseenter:function(t,e){n.triggerSegMouseover(t,e)},mouseleave:function(t,e){n.triggerSegMouseout(t,e)},click:function(t,e){return i.trigger("eventClick",this,t.event,e)},mousedown:function(t,e){et(e.target).is(".fc-resizer")&&i.isEventResizable(t.event)?n.segResizeMousedown(t,e,et(e.target).is(".fc-start-resizer")):i.isEventDraggable(t.event)&&n.segDragMousedown(t,e)}},function(t,i){n.el.on(t,".fc-event-container > *",function(t){var e=et(this).data("fc-seg");if(e&&!n.isDraggingSeg&&!n.isResizingSeg)return i.call(this,e,t)})})},triggerSegMouseover:function(t,e){this.mousedOverSeg||(this.mousedOverSeg=t,this.view.trigger("eventMouseover",t.el[0],t.event,e))},triggerSegMouseout:function(t,e){e=e||{},this.mousedOverSeg&&(t=t||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",t.el[0],t.event,e))},segDragMousedown:function(n,t){var s,a=this,r=this.view,o=r.calendar,e=n.el,l=n.event,h=new ne(n.el,{parentEl:r.el,opacity:r.opt("dragOpacity"),revertDuration:r.opt("dragRevertDuration"),zIndex:2});new ie(r.coordMap,{distance:5,scroll:r.opt("dragScroll"),subjectEl:e,subjectCenter:!0,listenStart:function(t){h.hide(),h.start(t)},dragStart:function(t){a.triggerSegMouseout(n,t),a.segDragStart(n,t),r.hideEvent(l)},cellOver:function(t,e,i){n.cell&&(i=n.cell),(s=a.computeEventDrop(i,t,l))&&!o.isEventRangeAllowed(s,l)&&(c(),s=null),s&&r.renderDrag(s,n)?h.hide():h.show(),e&&(s=null)},cellOut:function(){r.unrenderDrag(),h.show(),s=null},cellDone:function(){u()},dragStop:function(t){h.stop(!s,function(){r.unrenderDrag(),r.showEvent(l),a.segDragStop(n,t),s&&r.reportEventDrop(l,s,this.largeUnit,e,t)})},listenStop:function(){h.stop()}}).mousedown(t)},segDragStart:function(t,e){this.isDraggingSeg=!0,this.view.trigger("eventDragStart",t.el[0],t.event,e,{})},segDragStop:function(t,e){this.isDraggingSeg=!1,this.view.trigger("eventDragStop",t.el[0],t.event,e,{})},computeEventDrop:function(t,e,i){var n,s,a=this.view.calendar,r=t.start,o=e.start;return r.hasTime()===o.hasTime()?(n=this.diffDates(o,r),i.allDay&&D(n)?(s={start:i.start.clone(),end:a.getEventEnd(i),allDay:!1},a.normalizeEventRangeTimes(s)):s={start:i.start.clone(),end:i.end?i.end.clone():null,allDay:i.allDay},s.start.add(n),s.end&&s.end.add(n)):s={start:o.clone(),end:null,allDay:!o.hasTime()},s},applyDragOpacity:function(t){var i=this.view.opt("dragOpacity");null!=i&&t.each(function(t,e){e.style.opacity=i})},externalDragStart:function(t,e){var i,n,s=this.view;s.opt("droppable")&&(i=et((e?e.item:null)||t.target),n=s.opt("dropAccept"),(et.isFunction(n)?n.call(i[0],i):i.is(n))&&(this.isDraggingExter
11nal||this.listenToExternalDrag(i,t,e)))},listenToExternalDrag:function(t,e,i){var n,s=this,a=_t(t);new ie(this.coordMap,{listenStart:function(){s.isDraggingExternal=!0},cellOver:function(t){(n=s.computeExternalDrop(t,a))?s.renderDrag(n):c()},cellOut:function(){n=null,s.unrenderDrag(),u()},dragStop:function(){s.unrenderDrag(),u(),n&&s.view.reportExternalDrop(a,n,t,e,i)},listenStop:function(){s.isDraggingExternal=!1}}).startDrag(e)},computeExternalDrop:function(t,e){var i={start:t.start.clone(),end:null};return e.startTime&&!i.start.hasTime()&&i.start.time(e.startTime),e.duration&&(i.end=i.start.clone().add(e.duration)),this.view.calendar.isExternalDropRangeAllowed(i,e.eventProps)?i:null},renderDrag:function(){},unrenderDrag:function(){},segResizeMousedown:function(n,t,s){var a,r=this,o=this.view,l=o.calendar,e=n.el,h=n.event,d=l.getEventEnd(h);new ie(this.coordMap,{distance:5,scroll:o.opt("dragScroll"),subjectEl:e,dragStart:function(t){r.triggerSegMouseout(n,t),r.segResizeStart(n,t)},cellOver:function(t,e,i){(a=s?r.computeEventStartResize(i,t,h):r.computeEventEndResize(i,t,h))&&(l.isEventRangeAllowed(a,h)?a.start.isSame(h.start)&&a.end.isSame(d)&&(a=null):(c(),a=null)),a&&(o.hideEvent(h),r.renderEventResize(a,n))},cellOut:function(){a=null},cellDone:function(){r.unrenderEventResize(),o.showEvent(h),u()},dragStop:function(t){r.segResizeStop(n,t),a&&o.reportEventResize(h,a,this.largeUnit,e,t)}}).mousedown(t)},segResizeStart:function(t,e){this.isResizingSeg=!0,this.view.trigger("eventResizeStart",t.el[0],t.event,e,{})},segResizeStop:function(t,e){this.isResizingSeg=!1,this.view.trigger("eventResizeStop",t.el[0],t.event,e,{})},computeEventStartResize:function(t,e,i){return this.computeEventResize("start",t,e,i)},computeEventEndResize:function(t,e,i){return this.computeEventResize("end",t,e,i)},computeEventResize:function(t,e,i,n){var s,a,r=this.view.calendar,o=this.diffDates(i[t],e[t]);return(s={start:n.start.clone(),end:r.getEventEnd(n),allDay:n.allDay}).allDay&&D(o)&&(s.allDay=!1,r.normalizeEventRangeTimes(s)),s[t].add(o),s.start.isBefore(s.end)||(a=n.allDay?r.defaultAllDayEventDuration:r.defaultTimedEventDuration,this.cellDuration&&this.cellDuration<a&&(a=this.cellDuration),"start"==t?s.start=s.end.clone().subtract(a):s.end=s.start.clone().add(a)),s},renderEventResize:function(){},unrenderEventResize:function(){},getEventTimeText:function(t,e,i){return null==e&&(e=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&t.start.hasTime()?i&&t.end?this.view.formatRange(t,e):t.start.format(e):""},getSegClasses:function(t,e,i){var n=t.event,s=["fc-event",t.isStart?"fc-start":"fc-not-start",t.isEnd?"fc-end":"fc-not-end"].concat(n.className,n.source?n.source.className:[]);return e&&s.push("fc-draggable"),i&&s.push("fc-resizable"),s},getEventSkinCss:function(t){var e=this.view,i=t.source||{},n=t.color,s=i.color,a=e.opt("eventColor");return{"background-color":t.backgroundColor||n||i.backgroundColor||s||e.opt("eventBackgroundColor")||a,"border-color":t.borderColor||n||i.borderColor||s||e.opt("eventBorderColor")||a,color:t.textColor||i.textColor||e.opt("eventTextColor")}},eventsToSegs:function(t,e){var i,n=this.eventsToRanges(t),s=[];for(i=0;i<n.length;i++)s.push.apply(s,this.eventRangeToSegs(n[i],e));return s},eventsToRanges:function(t){var i=this,e=gt(t),n=[];return et.each(e,function(t,e){e.length&&n.push.apply(n,pt(e[0])?i.eventsToInverseRanges(e):i.eventsToNormalRanges(e))}),n},eventsToNormalRanges:function(t){var e,i,n,s,a=this.view.calendar,r=[];for(e=0;e<t.length;e++)n=(i=t[e]).start.clone().stripZone(),s=a.getEventEnd(i).stripZone(),r.push({event:i,start:n,end:s,eventStartMS:+n,eventDurationMS:s-n});return r},eventsToInverseRanges:function(t){var e,i,n=this.view,s=n.start.clone().stripZone(),a=n.end.clone().stripZone(),r=this.eventsToNormalRanges(t),o=[],l=t[0],h=s;for(r.sort(mt),e=0;e<r.length;e++)(i=r[e]).start>h&&o.push({event:l,start:h,end:i.start}),h=i.end
12;return h<a&&o.push({event:l,start:h,end:a}),o},eventRangeToSegs:function(t,e){var i,n,s;for(t=this.view.calendar.ensureVisibleEventRange(t),i=e?e(t):this.rangeToSegs(t),n=0;n<i.length;n++)(s=i[n]).event=t.event,s.eventStartMS=t.eventStartMS,s.eventDurationMS=t.eventDurationMS;return i}}),Rt.compareSegs=vt,Rt.dataAttrPrefix="";var re=ae.extend({numbersVisible:!1,bottomCoordPadding:0,breakOnWeeks:null,cellDates:null,dayToCellOffsets:null,rowEls:null,dayEls:null,helperEls:null,constructor:function(){ae.apply(this,arguments),this.cellDuration=it.duration(1,"day")},renderDates:function(t){var e,i,n,s=this.view,a=this.rowCnt,r=a*this.colCnt,o="";for(e=0;e<a;e++)o+=this.dayRowHtml(e,t);for(this.el.html(o),this.rowEls=this.el.find(".fc-row"),this.dayEls=this.el.find(".fc-day"),i=0;i<r;i++)n=this.getCell(i),s.trigger("dayRender",null,n.start,this.dayEls.eq(i))},unrenderDates:function(){this.removeSegPopover()},renderBusinessHours:function(){var t=this.view.calendar.getBusinessHoursEvents(!0),e=this.eventsToSegs(t);this.renderFill("businessHours",e,"bgevent")},dayRowHtml:function(t,e){var i=["fc-row","fc-week",this.view.widgetContentClass];return e&&i.push("fc-rigid"),'<div class="'+i.join(" ")+'"><div class="fc-bg"><table>'+this.rowHtml("day",t)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.rowHtml("number",t)+"</thead>":"")+"</table></div></div>"},dayCellHtml:function(t){return this.bgCellHtml(t)},computeColHeadFormat:function(){return 1<this.rowCnt?"ddd":1<this.colCnt?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){var t,e,i,n;if(this.updateCellDates(),t=this.cellDates,this.breakOnWeeks){for(e=t[0].day(),n=1;n<t.length&&t[n].day()!=e;n++);i=Math.ceil(t.length/n)}else i=1,n=t.length;this.rowCnt=i,this.colCnt=n},updateCellDates:function(){for(var t=this.view,e=this.start.clone(),i=[],n=-1,s=[];e.isBefore(this.end);
12)t.isHiddenDay(e)?s.push(n+.5):(n++,s.push(n),i.push(e.clone())),e.add(1,"days");this.cellDates=i,this.dayToCellOffsets=s},computeCellDate:function(t){var e=this.colCnt,i=t.row*e+(this.isRTL?e-t.col-1:t.col);return this.cellDates[i].clone()},getRowEl:function(t){return this.rowEls.eq(t)},getColEl:function(t){return this.dayEls.eq(t)},getCellDayEl:function(t){return this.dayEls.eq(t.row*this.colCnt+t.col)},computeRowCoords:function(){var t=ae.prototype.computeRowCoords.call(this);return t[t.length-1].bottom+=this.bottomCoordPadding,t},rangeToSegs:function(t){var e,i,n,s,a,r,o,l,h,d,c=this.isRTL,u=this.rowCnt,p=this.colCnt,f=[];for(t=this.view.computeDayRange(t),e=this.dateToCellOffset(t.start),i=this.dateToCellOffset(t.end.subtract(1,"days")),n=0;n<u;n++)a=(s=n*p)+p-1,l=Math.max(s,e),h=Math.min(a,i),(l=Math.ceil(l))<=(h=Math.floor(h))&&(r=l===e,o=h===i,l-=s,h-=s,d={row:n,isStart:r,isEnd:o},c?(d.leftCol=p-h-1,d.rightCol=p-l-1):(d.leftCol=l,d.rightCol=h),f.push(d));return f},dateToCellOffset:function(t){var e=this.dayToCellOffsets,i=t.diff(this.start,"days");return i<0?e[0]-1:i>=e.length?e[e.length-1]+1:e[i]},renderDrag:function(t,e){if(this.renderHighlight(this.eventRangeToSegs(t)),e&&!e.el.closest(this.el).length)return this.renderRangeHelper(t,e),this.applyDragOpacity(this.helperEls),!0},unrenderDrag:function(){this.unrenderHighlight(),this.unrenderHelper()},renderEventResize:function(t,e){this.renderHighlight(this.eventRangeToSegs(t)),this.renderRangeHelper(t,e)},unrenderEventResize:function(){this.unrenderHighlight(),this.unrenderHelper()},renderHelper:function(t,a){var r,o=[],e=this.eventsToSegs([t]);e=this.renderFgSegEls(e),r=this.renderSegRows(e),this.rowEls.each(function(t,e){var i,n=et(e),s=et('<div class="fc-helper-skeleton"><table/></div>');i=a&&a.row===t?a.el.position().top:n.find(".fc-content-skeleton tbody").position().top,s.css("top",i).find("table").append(r[t].tbodyEl),n.append(s),o.push(s[0])}),this.helperEls=et(o)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(t,e,i){var n,s,a,r=[];for(e=this.renderFillSegEls(t,e),n=0;n<e.length;n++)s=e[n],a=this.renderFillRow(t,s,i),this.rowEls.eq(s.row).append(a),r.push(a[0]);return this.elsByFill[t]=et(r),e},renderFillRow:function(t,e,i){var n,s,a=this.colCnt,r=e.leftCol,o=e.rightCol+1;return i=i||t.toLowerCase(),s=(n=et('<div class="fc-'+i+'-skeleton"><table><tr/></table></div>')).find("tr"),0<r&&s.append('<td colspan="'+r+'"/>'),s.append(e.el.attr("colspan",o-r)),o<a&&s.append('<td colspan="'+(a-o)+'"/>'),this.bookendCells(s,t),n}});re.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover(),ae.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return ae.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(t){var e=et.grep(t,function(t){return t.event.allDay});return ae.prototype.renderBgSegs.call(this,e)},renderFgSegs:function(t){var i;return t=this.renderFgSegEls(t),i=this.rowStructs=this.renderSegRows(t),this.rowEls.each(function(t,e){et(e).find(".fc-content-skeleton > table").append(i[t].tbodyEl)}),t},unrenderFgSegs:function(){for(var t,e=this.rowStructs||[];t=e.pop();)t.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(t){var e,i,n=[];for(e=this.groupSegRows(t),i=0;i<e.length;i++)n.push(this.renderSegRow(i,e[i]));return n},fgSegHtml:function(t,e){var i,n,s=this.view,a=t.event,r=s.isEventDraggable(a),o=!e&&a.allDay&&t.isStart&&s.isEventResizableFromStart(a),l=!e&&a.allDay&&t.isEnd&&s.isEventResizableFromEnd(a),h=this.getSegClasses(t,r,o||l),d=R(this.getEventSkinCss(a)),c="";return h.unshift("fc-day-grid-event","fc-h-event"),t.isStart&&(i=this.getEventTimeText(a))&&(c='<span class="fc-time">'+j(i)+"</span>"),n='<span class="fc-title">'+(j(a.title||"")||"&nbsp;")+"</span>",'<a class="'+h.join(" ")+'"'+(a.url?' href="'+j(a.url)+'"':"")+(d?' style="'+d+'"':"")+'><div class="fc-content">'+(this.isRTL?n+" "+c:c+" "+n)+"</div>"+(o?'<div class="fc-resizer fc-start-resizer" />':"")+(l?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},renderSegRow:function(t,e){function i(t){for(;a<t;)(h=(m[n-1]||[])[a])?h.attr("rowspan",parseInt(h.attr("rowspan")||1,10)+1):(h=et("<td/>"),r.append(h)),g[n][a]=h,m[n][a]=h,a++}var n,s,a,r,o,l,h,d=this.colCnt,c=this.buildSegLevels(e),u=Math.max(1,c.length),p=et("<tbody/>"),f=[],g=[],m=[];for(n=0;n<u;n++){if(s=c[n],a=0,r=et("<tr/>"),f.push([]),g.push([]),m.push([]),s)for(o=0;o<s.length;o++){for(i((l=s[o]).leftCol),h=et('<td class="fc-event-container"/>').append(l.el),l.leftCol!=l.rightCol?h.attr("colspan",l.rightCol-l.leftCol+1):m[n][a]=h;a<=l.rightCol;)g[n][a]=h,f[n][a]=l,a++;r.append(h)}i(d),this.bookendCells(r,"eventSkeleton"),p.append(r)}return{row:t,tbodyEl:p,cellMatrix:g,segMatrix:f,segLevels:c,segs:e}},buildSegLevels:function(t){var e,i,n,s=[];for(t.sort(vt),e=0;e<t.length;e++){for(i=t[e],n=0;n<s.length&&bt(i,s[n]);n++);(s[i.level=n]||(s[n]=[])).push(i)}for(n=0;n<s.length;n++)s[n].sort(yt);return s},groupSegRows:function(t){var e,i=[];for(e=0;e<this.rowCnt;e++)i.push([]);for(e=0;e<t.length;e++)i[t[e].row].push(t[e]);return i}}),re.mixin({segPopover:null,popoverSegs:null,removeSegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(t){var e,i,n=this.rowStructs||[];for(e=0;e<n.length;e++)this.unlimitRow(e),!1!==(i=!!t&&("number"==typeof t?t:this.computeRowLevelLimit(e)))&&this.limitRow(e,i)},computeRowLevelLimit:function(t){function e(t,e){s=Math.max(s,et(e).outerHeight())}var i,n,s,a=this.rowEls.eq(t).height(),r=this.rowStructs[t].tbodyEl.children();for(i=0;i<r.length;i++)if(n=r.eq(i).removeClass("fc-limited"),s=0,n.find("> td > :first-child").each(e),n.position().top+s>a)return i;return!1},limitRow:function(e,i){function t(t){for(;x<t;)n=b.getCell(e,x),(h=b.getCellSegs(n,i)).length&&(u=a[i-1][x],_=b.renderMoreLink(n,h),v=et("<div/>").append(_),u.append(v),w.push(v[0])),x++}var n,s,a,r,o,l,h,d,c,u,p,f,g,m,v,_,b=this,y=this.rowStructs[e],w=[],x=0;if(i&&i<y.segLevels.length){for(s=y.segLevels[i-1],a=y.cellMatrix,r=y.tbodyEl.children().slice(i).addClass("fc-limited").get(),o=0;o<s.length;o++){for(t((l=s[o]).leftCol),c=[],d=0;x<=l.rightCol;)n=this.getCell(e,x),h=this.getCellSegs(n,i),c.push(h),d+=h.length,x++;if(d){for(p=(u=a[i-1][l.leftCol]).attr("rowspan")||1,f=[],g=0;g<c.length;g++)m=et('<td class="fc-more-cell"/>').attr("rowspan",p),h=c[g],n=this.getCell(e,l.leftCol+g),_=this.renderMoreLink(n,[l].concat(h)),v=et("<div/>").append(_),m.append(v),f.push(m[0]),w.push(m[0]);u.addClass("fc-limited").after(et(f)),r.push(u[0])}}t(this.colCnt),y.moreEls=et(w),y.limitedEls=et(r)}},unlimitRow:function(t){var e=this.rowStructs[t];e.moreEls&&(e.moreEls.remove(),e.moreEls=null),e.limitedEls&&(e.limitedEls.removeClass("fc-limited"),e.limitedEls=null)},renderMoreLink:function(l,h){var d=this,c=this.view;return et('<a class="fc-more"/>').text(this.getMoreLinkText(h.length)).on("click",function(t){var e=c.opt("eventLimitClick"),i=l.start,n=et(this),s=d.getCellDayEl(l),a=d.getCellSegs(l),r=d.resliceDaySeg
12s(a,i),o=d.resliceDaySegs(h,i);"function"==typeof e&&(e=c.trigger("eventLimitClick",null,{date:i,dayEl:s,moreEl:n,segs:r,hiddenSegs:o},t)),"popover"===e?d.showSegPopover(l,n,r):"string"==typeof e&&c.calendar.zoomTo(i,e)})},showSegPopover:function(t,e,i){var n,s,a=this,r=this.view,o=e.parent();n=1==this.rowCnt?r.el:this.rowEls.eq(t.row),s={className:"fc-more-popover",content:this.renderSegPopoverContent(t,i),parentEl:this.el,top:n.offset().top,autoHide:!0,viewportConstrain:r.opt("popoverViewportConstrain"),hide:function(){a.segPopover.removeElement(),a.segPopover=null,a.popoverSegs=null}},this.isRTL?s.right=o.offset().left+o.outerWidth()+1:s.left=o.offset().left-1,this.segPopover=new Jt(s),this.segPopover.show()},renderSegPopoverContent:function(t,e){var i,n=this.view,s=n.opt("theme"),a=t.start.format(n.opt("dayPopoverFormat")),r=et('<div class="fc-header '+n.widgetHeaderClass+'"><span class="fc-close '+(s?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+j(a)+'</span><div class="fc-clear"/></div><div class="fc-body '+n.widgetContentClass+'"><div class="fc-event-container"></div></div>'),o=r.find(".fc-event-container");for(e=this.renderFgSegEls(e,!0),this.popoverSegs=e,i=0;i<e.length;i++)e[i].cell=t,o.append(e[i].el);return r},resliceDaySegs:function(t,e){var i=et.map(t,function(t){return t.event}),n=e.clone().stripTime(),s=n.clone().add(1,"days"),a={start:n,end:s};return(t=this.eventsToSegs(i,function(t){var e=S(t,a);return e?[e]:[]})).sort(vt),t},getMoreLinkText:function(t){var e=this.view.opt("eventLimitText");return"function"==typeof e?e(t):"+"+t+" "+e},getCellSegs:function(t,e){for(var i,n=this.rowStructs[t.row].segMatrix,s=e||0,a=[];s<n.length;)(i=n[s][t.col])&&a.push(i),s++;return a}});var oe=ae.extend({slotDuration:null,snapDuration:null,minTime:null,maxTime:null,colDates:null,axisFormat:null,dayEls:null,slatEls:null,slatTops:null,helperEl:null,businessHourSegs:null,constructor:function(){ae.apply(this,arguments),this.processOptions()},renderDates:function(){this.el.html(this.renderHtml()),this.dayEls=this.el.find(".fc-day"),this.slatEls=this.el.find(".fc-slats tr")},renderBusinessHours:function(){var t=this.view.calendar.getBusinessHoursEvents();this.businessHourSegs=this.renderFill("businessHours",this.eventsToSegs(t),"bgevent")},renderHtml:function(){return'<div class="fc-bg"><table>'+this.rowHtml("slotBg")+'</table></div><div class="fc-slats"><table>'+this.slatRowHtml()+"</table></div>"},slotBgCellHtml:function(t){return this.bgCellHtml(t)},slatRowHtml:function(){for(var t,e,i,n=this.view,s=this.isRTL,a="",r=this.slotDuration.asMinutes()%15==0,o=it.duration(+this.minTime);o<this.maxTime;)e=(t=this.start.clone().time(o)).minutes(),i='<td class="fc-axis fc-time '+n.widgetContentClass+'" '+n.axisStyleAttr()+">"+(r&&e?"":"<span>"+j(t.format(this.axisFormat))+"</span>")+"</td>",a+="<tr "+(e?'class="fc-minor"':"")+">"+(s?"":i)+'<td class="'+n.widgetContentClass+'"/>'+(s?i:"")+"</tr>",o.add(this.slotDuration);return a},processOptions:function(){var t=this.view,e=t.opt("slotDuration"),i=t.opt("snapDuration");e=it.duration(e),i=i?it.duration(i):e,this.slotDuration=e,this.snapDuration=i,this.cellDuration=i,this.minTime=it.duration(t.opt("minTime")),this.maxTime=it.duration(t.opt("maxTime")),this.axisFormat=t.opt("axisFormat")||t.opt("smallTimeFormat")},computeColHeadFormat:function(){return 1<this.colCnt?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},rangeUpdated:function(){var t,e=this.view,i=[];for(t=this.start.clone();t.isBefore(this.end);)i.push(t.clone()),t.add(1,"day"),t=e.skipHiddenDays(t);this.isRTL&&i.reverse(),this.colDates=i,this.colCnt=i.length,this.rowCnt=Math.ceil((this.maxTime-this.minTime)/this.snapDuration)},computeCellDate:function(t){var e=this.colDates[t.col],i=this.computeSnapTime(t.row);return(e=this.view.calendar.rezoneDate(e)).time(i),e},getColEl:function(t){return this.dayEls.eq(t)},computeSnapTime:function(t){return it.duration(this.minTime+this.snapDuration*t)},rangeToSegs:function(t){var e,i,n,s=this.colCnt,a=[];for(t={start:t.start.clone().stripZone(),end:t.end.clone().stripZone()},i=0;i<s;i++)(e=S(t,{start:(n=this.colDates[i]).clone().time(this.minTime),end:n.clone().time(this.maxTime)}))&&(e.col=i,a.push(e));return a},updateSize:function(t){this.computeSlatTops(),t&&this.updateSegVerticals()},computeRowCoords:function(){var t,e,i=this.el.offset().top,n=[];for(t=0;t<this.rowCnt;t++)e={top:i+this.computeTimeTop(this.computeSnapTime(t))},0<t&&(n[t-1].bottom=e.top),n.push(e);return e.bottom=e.top+this.computeTimeTop(this.computeSnapTime(t)),n},computeDateTop:function(t,e){return this.computeTimeTop(it.duration(t.clone().stripZone()-e.clone().stripTime()))},computeTimeTop:function(t){var e,i,n,s=(t-this.minTime)/this.slotDuration;return s=Math.max(0,s),i=(s=Math.min(this.slatEls.length,s))-(e=Math.floor(s)),n=this.slatTops[e],i?n+(this.slatTops[e+1]-n)*i:n},computeSlatTops:function(){var i,n=[];this.slatEls.each(function(t,e){i=et(e).position().top,n.push(i)}),n.push(i+this.slatEls.last().outerHeight()),this.slatTops=n},renderDrag:function(t,e){if(e)return this.renderRangeHelper(t,e),this.applyDragOpacity(this.helperEl),!0;this.renderHighlight(this.eventRangeToSegs(t))},unrenderDrag:function(){this.unrenderHelper(),this.unrenderHighlight()},renderEventResize:function(t,e){this.renderRangeHelper(t,e)},unrenderEventResize:function(){this.unrenderHelper()},renderHelper:function(t,e){var i,n,s,a,r=this.eventsToSegs([t]);for(r=this.renderFgSegEls(r),i=this.renderSegTable(r),n=0;n<r.length;n++)s=r[n],e&&e.col===s.col&&(a=e.el,s.el.css({left:a.css("left"),right:a.css("right"),"margin-left":a.css("margin-left"),"margin-right":a.css("margin-right")}));this.helperEl=et('<div class="fc-helper-skeleton"/>').append(i).appendTo(this.el)},unrenderHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(t){this.view.opt("selectHelper")?this.renderRangeHelper(t):this.renderHighlight(this.selectionRangeToSegs(t))},unrenderSelection:function(){this.unrenderHelper(),this.unrenderHighlight()}
12,renderFill:function(t,e,i){var n,s,a,r,o,l,h,d,c,u;if(e.length){for(e=this.renderFillSegEls(t,e),n=this.groupSegCols(e),i=i||t.toLowerCase(),a=(s=et('<div class="fc-'+i+'-skeleton"><table><tr/></table></div>')).find("tr"),r=0;r<n.length;r++)if(o=n[r],l=et("<td/>").appendTo(a),o.length)for(h=et('<div class="fc-'+i+'-container"/>').appendTo(l),d=this.colDates[r],c=0;c<o.length;c++)u=o[c],h.append(u.el.css({top:this.computeDateTop(u.start,d),bottom:-this.computeDateTop(u.end,d)}));this.bookendCells(a,t),this.el.append(s),this.elsByFill[t]=s}return e}});oe.mixin({eventSkeletonEl:null,renderFgSegs:function(t){return t=this.renderFgSegEls(t),this.el.append(this.eventSkeletonEl=et('<div class="fc-content-skeleton"/>').append(this.renderSegTable(t))),t},unrenderFgSegs:function(){this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null)},renderSegTable:function(t){var e,i,n,s,a,r,o=et("<table><tr/></table>"),l=o.find("tr");for(e=this.groupSegCols(t),this.computeSegVerticals(t),s=0;s<e.length;s++){for(wt(a=e[s]),r=et('<div class="fc-event-container"/>'),i=0;i<a.length;i++)(n=a[i]).el.css(this.generateSegPositionCss(n)),n.bottom-n.top<30&&n.el.addClass("fc-short"),r.append(n.el);l.append(et("<td/>").append(r))}return this.bookendCells(l,"eventSkeleton"),o},updateSegVerticals:function(){var t,e=(this.segs||[]).concat(this.businessHourSegs||[]);for(this.computeSegVerticals(e),t=0;t<e.length;t++)e[t].el.css(this.generateSegVerticalCss(e[t]))},computeSegVerticals:function(t){var e,i;for(e=0;e<t.length;e++)(i=t[e]).top=this.computeDateTop(i.start,i.start),i.bottom=this.computeDateTop(i.end,i.start)},fgSegHtml:function(t,e){var i,n,s,a=this.view,r=t.event,o=a.isEventDraggable(r),l=!e&&t.isStart&&a.isEventResizableFromStart(r),h=!e&&t.isEnd&&a.isEventResizableFromEnd(r),d=this.getSegClasses(t,o,l||h),c=R(this.getEventSkinCss(r));return d.unshift("fc-time-grid-event","fc-v-event"),a.isMultiDayEvent(r)?(t.isStart||t.isEnd)&&(i=this.getEventTimeText(t),n=this.getEventTimeText(t,"LT"),s=this.getEventTimeText(t,null,!1)):(i=this.getEventTimeText(r),n=this.getEventTimeText(r,"
12LT"),s=this.getEventTimeText(r,null,!1)),'<a class="'+d.join(" ")+'"'+(r.url?' href="'+j(r.url)+'"':"")+(c?' style="'+c+'"':"")+'><div class="fc-content">'+(i?'<div class="fc-time" data-start="'+j(s)+'" data-full="'+j(n)+'"><span>'+j(i)+"</span></div>":"")+(r.title?'<div class="fc-title">'+j(r.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(h?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},generateSegPositionCss:function(t){var e,i,n=this.view.opt("slotEventOverlap"),s=t.backwardCoord,a=t.forwardCoord,r=this.generateSegVerticalCss(t);return n&&(a=Math.min(1,s+2*(a-s))),this.isRTL?(e=1-a,i=s):(e=s,i=1-a),r.zIndex=t.level+1,r.left=100*e+"%",r.right=100*i+"%",n&&t.forwardPressure&&(r[this.isRTL?"marginLeft":"marginRight"]=20),r},generateSegVerticalCss:function(t){return{top:t.top,bottom:-t.bottom}},groupSegCols:function(t){var e,i=[];for(e=0;e<this.colCnt;e++)i.push([]);for(e=0;e<t.length;e++)i[t[e].col].push(t[e]);return i}});var le=Rt.View=dt.extend({type:null,name:null,title:null,calendar:null,options:null,coordMap:null,el:null,displaying:null,isSkeletonRendered:!1,isEventsRendered:!1,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isRTL:!1,isSelected:!1,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,documentMousedownProxy:null,constructor:function(t,e,i,n){this.calendar=t,this.type=this.name=e,this.options=i,this.intervalDuration=n||it.duration(1,"day"),this.nextDayThreshold=it.duration(this.opt("nextDayThreshold")),this.initThemingProps(),this.initHiddenDays(),this.isRTL=this.opt("isRTL"),this.documentMousedownProxy=q(this,"documentMousedown"),this.initialize()},initialize:function(){},opt:function(t){return this.options[t]},trigger:function(t,e){var i=this.calendar;return i.trigger.apply(i,[t,e||this].concat(Array.prototype.slice.call(arguments,2),[this]))},setDate:function(t){this.setRange(this.computeRange(t))},setRange:function(t){et.extend(this,t),this.updateTitle()},computeRange:function(t){var e,i,n=k(this.intervalDuration),s=t.clone().startOf(n),a=s.clone().add(this.intervalDuration);return/year|month|week|day/.test(n)?(s.stripTime(),a.stripTime()):(s.hasTime()||(s=this.calendar.rezoneDate(s)),a.hasTime()||(a=this.calendar.rezoneDate(a))),e=s.clone(),e=this.skipHiddenDays(e),i=a.clone(),{intervalUnit:n,intervalStart:s,intervalEnd:a,start:e,end:i=this.skipHiddenDays(i,-1,!0)}},computePrevDate:function(t){return this.massageCurrentDate(t.clone().startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(t){return this.massageCurrentDate(t.clone().startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(t,e){return this.intervalDuration.as("days")<=1&&this.isHiddenDay(t)&&(t=this.skipHiddenDays(t,e)).startOf("day"),t},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.intervalStart,end:this.intervalEnd},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.intervalUnit?"YYYY":"month"==this.intervalUnit?this.opt("monthYearFormat"):1<this.intervalDuration.as("days")?"ll":"LL"},formatRange:function(t,e,i){var n=t.end;return n.hasTime()||(n=n.clone().subtract(1)),at(t.start,n,e,i,this.opt("isRTL"))},setElement:function(t){this.el=t,this.bindGlobalHandlers()},removeElement:function(){this.clear(),this.isSkeletonRendered&&(this.unrenderSkeleton(),this.isSkeletonRendered=!1),this.unbindGlobalHandlers(),this.el.remove()},display:function(t){var e=this,i=null;return this.displaying&&(i=this.queryScroll()),this.clear().then(function(){return e.displaying=et.when(e.displayView(t)).then(function(){e.forceScroll(e.computeInitialScroll(i)),e.triggerRender()})})},clear:function(){var t=this,e=this.displaying;return e?e.then(function(){return t.displaying=null,t.clearEvents(),t.clearView()}):et.when()},displayView:function(t){this.isSkeletonRendered||(this.renderSkeleton(),this.isSkeletonRendered=!0),this.setDate(t),this.render&&this.render(),this.renderDates(),this.updateSize(),this.renderBusinessHours()},clearView:function(){this.unselect(),this.triggerUnrender(),this.unrenderBusinessHours(),this.unrenderDates(),this.destroy&&this.destroy()},renderSkeleton:function(){},unrenderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},renderBusinessHours:function(){},unrenderBusinessHours:function(){}
12,triggerRender:function(){this.trigger("viewRender",this,this,this.el)},triggerUnrender:function(){this.trigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){et(document).on("mousedown",this.documentMousedownProxy)},unbindGlobalHandlers:function(){et(document).off("mousedown",this.documentMousedownProxy)},initThemingProps:function(){var t=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=t+"-widget-header",this.widgetContentClass=t+"-widget-content",this.highlightStateClass=t+"-state-highlight"},updateSize:function(t){var e;t&&(e=this.queryScroll()),this.updateHeight(t),this.updateWidth(t),t&&this.setScroll(e)},updateWidth:function(){},updateHeight:function(){var t=this.calendar;this.setHeight(t.getSuggestedViewHeight(),t.isHeightAuto())},setHeight:function(){},computeScrollerHeight:function(t){var e,i,n=this.scrollerEl;return(e=this.el.add(n)).css({position:"relative",left:-1}),i=this.el.outerHeight()-n.height(),e.css({position:"",left:""}),t-i},computeInitialScroll:function(){return 0},queryScroll:function(){if(this.scrollerEl)return this.scrollerEl.scrollTop()},setScroll:function(t){if(this.scrollerEl)return this.scrollerEl.scrollTop(t)},forceScroll:function(t){var e=this;this.setScroll(t),setTimeout(function(){e.setScroll(t)},0)},displayEvents:function(t){var e=this.queryScroll();this.clearEvents(),this.renderEvents(t),this.isEventsRendered=!0,this.setScroll(e),this.triggerEventRender()},clearEvents:function(){this.isEventsRendered&&(this.triggerEventUnrender(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.isEventsRendered=!1)},renderEvents:function(){},unrenderEvents:function(){},triggerEventRender:function(){this.renderedEventSegEach(function(t){this.trigger("eventAfterRender",t.event,t.event,t.el)}),this.trigger("eventAfterAllRender")},triggerEventUnrender:function(){this.renderedEventSegEach(function(t){this.trigger("eventDestroy",t.event,t.event,t.el)})},resolveEventEl:function(t,e){var i=this.trigger("eventRender",t,t,e);return!1===i?e=null:i&&!0!==i&&(e=et(i)),e},showEvent:function(t){this.renderedEventSegEach(function(t){t.el.css("visibility","")},t)},hideEvent:function(t){this.renderedEventSegEach(function(t){t.el.css("visibility","hidden")},t)},renderedEventSegEach:function(t,e){var i,n=this.getEventSegs();for(i=0;i<n.length;i++)e&&n[i].event._id!==e._id||n[i].el&&t.call(this,n[i])},getEventSegs:function(){return[]},isEventDraggable:function(t){var e=t.source||{};return G(t.startEditable,e.startEditable,this.opt("eventStartEditable"),t.editable,e.editable,this.opt("editable"))},reportEventDrop:function(t,e,i,n,s){var a=this.calendar,r=a.mutateEvent(t,e,i),o=function(){r.undo(),a.reportEventChange()};this.triggerEventDrop(t,r.dateDelta,o,n,s),a.reportEventChange()},triggerEventDrop:function(t,e,i,n,s){this.trigger("eventDrop",n[0],t,e,i,s,{})},reportExternalDrop:function(t,e,i,n,s){var a,r,o=t.eventProps;o&&(a=et.extend({},o,e),r=this.calendar.renderEvent(a,t.stick)[0]),this.triggerExternalDrop(r,e,i,n,s)},triggerExternalDrop:function(t,e,i,n,s){this.trigger("drop",i[0],e.start,n,s),t&&this.trigger("eventReceive",null,t)},renderDrag:function(){},unrenderDrag:function(){},isEventResizableFromStart:function(t){return this.opt("eventResizableFromStart")&&this.isEventResizable(t)},isEventResizableFromEnd:function(t){return this.isEventResizable(t)},isEventResizable:function(t){var e=t.source||{};return G(t.durationEditable,e.durationEditable,this.opt("eventDurationEditable"),t.editable,e.editable,this.opt("editable"))},reportEventResize:function(t,e,i,n,s){var a=this.calendar,r=a.mutateEvent(t,e,i),o=function(){r.undo(),a.reportEventChange()};this.triggerEventResize(t,r.durationDelta,o,n,s),a.reportEventChange()},triggerEventResize:function(t,e,i,n,s){this.trigger("eventResize",n[0],t,e,i,s,{})},select:function(t,e){this.unselect(e),this.renderSelection(t),this.reportSelection(t,e)},renderSelection:function(){},reportSelection:function(t,e){this.isSelected=!0,this.triggerSelect(t,e)},triggerSelect:function(t,e){this.trigger("select",null,t.start,t.end,e)},unselect:function(t){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.trigger("unselect",null,t))},unrenderSelection:function(){},documentMousedown:function(t){var e;this.isSelected&&this.opt("unselectAuto")&&b(t)&&((e=this.opt("unselectCancel"))&&et(t.target).closest(e).length||this.unselect(t))}
12,triggerDayClick:function(t,e,i){this.trigger("dayClick",e,t.start,i)},initHiddenDays:function(){var t,e=this.opt("hiddenDays")||[],i=[],n=0;for(!1===this.opt("weekends")&&e.push(0,6),t=0;t<7;t++)(i[t]=-1!==et.inArray(t,e))||n++;if(!n)throw"invalid hiddenDays";this.isHiddenDayHash=i},isHiddenDay:function(t){return it.isMoment(t)&&(t=t.day()),this.isHiddenDayHash[t]},skipHiddenDays:function(t,e,i){var n=t.clone();for(e=e||1;this.isHiddenDayHash[(n.day()+(i?e:0)+7)%7];)n.add(e,"days");return n},computeDayRange:function(t){var e,i=t.start.clone().stripTime(),n=t.end,s=null;return n&&(s=n.clone().stripTime(),(e=+n.time())&&e>=this.nextDayThreshold&&s.add(1,"days")),(!n||s<=i)&&(s=i.clone().add(1,"days")),{start:i,end:s}},isMultiDayEvent:function(t){var e=this.computeDayRange(t);return 1<e.end.diff(e.start,"days")}}),he=Rt.Calendar=dt.extend({dirDefaults:null,langDefaults:null,overrides:null,options:null,viewSpecCache:null,view:null,header:null,loadingLevel:0,constructor:It,initialize:function(){},initOptions:function(t){var e,i,n;e=(t=s(t)).lang,(i=de[e])||(e=he.defaults.lang,i=de[e]||{}),n=G(t.isRTL,i.isRTL,he.defaults.isRTL)?he.rtlDefaults:{},this.dirDefaults=n,this.langDefaults=i,this.overrides=t,this.options=d([he.defaults,n,i,t]),Et(this.options),this.viewSpecCache={}},getViewSpec:function(t){var e=this.viewSpecCache;return e[t]||(e[t]=this.buildViewSpec(t))},getUnitViewSpec:function(t){var e,i,n;if(-1!=et.inArray(t,Vt))for(e=this.header.getViewsWithButtons(),et.each(Rt.views,function(t){e.push(t)}),i=0;i<e.length;i++)if((n=this.getViewSpec(e[i]))&&n.singleUnit==t)return n},buildViewSpec:function(t){for(var e,i,n,s,a=this.overrides.views||{},r=[],o=[],l=[],h=t;h;)e=Ht[h],i=a[h],h=null,"function"==typeof e&&(e={"class":e}),e&&(r.unshift(e),o.unshift(e.defaults||{}),n=n||e.duration,h=h||e.type),i&&(l.unshift(i),n=n||i.duration,h=h||i.type);return(e=I(r)).type=t,!!e["class"]&&(n&&(n=it.duration(n)).valueOf()&&(s=k(e.duration=n),1===n.as(s)&&(e.singleUnit=s,l.unshift(a[s]||{}))),e.defaults=d(o),e.overrides=d(l),this.buildViewSpecOptions(e),this.buildViewSpecButtonText(e,t),e)},buildViewSpecOptions:function(t){t.options=d([he.defaults,t.defaults,this.dirDefaults,this.langDefaults,this.overrides,t.overrides]),Et(t.options)},buildViewSpecButtonText:function(i,n){function t(t){var e=t.buttonText||{};return e[n]||(i.singleUnit?e[i.singleUnit]:null)}i.buttonTextOverride=t(this.overrides)||i.overrides.buttonText,i.buttonTextDefault=t(this.langDefaults)||t(this.dirDefaults)||i.defaults.buttonText||t(he.defaults)||(i.duration?this.humanizeDuration(i.duration):null)||n},instantiateView:function(t){var e=this.getViewSpec(t);return new e["class"](this,t,e.options,e.duration)},isValidViewType:function(t){return Boolean(this.getViewSpec(t))},pushLoading:function(){this.loadingLevel++||this.trigger("loading",null,!0,this.view)},popLoading:function(){--this.loadingLevel||this.trigger("loading",null,!1,this.view)},buildSelectRange:function(t,e){return t=this.moment(t),e=e?this.moment(e):t.hasTime()?t.clone().add(this.defaultTimedEventDuration):t.clone().add(this.defaultAllDayEventDuration),{start:t,end:e}}});he.defaults={titleRangeSeparator:" \u2014 ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200},he.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},he.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var de=Rt.langs={};
12Rt.datepickerLang=function(t,e,i){var n=de[t]||(de[t]={});n.isRTL=i.isRTL,n.weekNumberTitle=i.weekHeader,et.each(ce,function(t,e){n[t]=e(i)}),et.datepicker&&(et.datepicker.regional[e]=et.datepicker.regional[t]=i,et.datepicker.regional.en=et.datepicker.regional[""],et.datepicker.setDefaults(i))},Rt.lang=function(t,e){var i,n;i=de[t]||(de[t]={}),e&&(i=de[t]=d([i,e])),n=Mt(t),et.each(ue,function(t,e){null==i[t]&&(i[t]=e(n,i))}),he.defaults.lang=t};var ce={buttonText:function(t){return{prev:P(t.prevText),next:P(t.nextText),today:P(t.currentText)}},monthYearFormat:function(t){return t.showMonthAfterYear?"YYYY["+t.yearSuffix+"] MMMM":"MMMM YYYY["+t.yearSuffix+"]"}},ue={dayOfMonthFormat:function(t,e){var i=t.longDateFormat("l");return i=i.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),e.isRTL?i+=" ddd":i="ddd "+i,i},mediumTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(t){return t.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"")}},pe={smallDayDateFormat:function(t){return t.isRTL?"D dd":"dd D"},weekFormat:function(t){return t.isRTL?"w[ "+t.weekNumberTitle+"]":"["+t.weekNumberTitle+" ]w"},smallWeekFormat:function(t){return t.isRTL?"w["+t.weekNumberTitle+"]":"["+t.weekNumberTitle+"]w"}};Rt.lang("en",he.englishDefaults),Rt.sourceNormalizers=[];var fe={dataType:"json",cache:!(
13Rt.sourceFetchers=[])},ge=1;he.prototype.getPeerEvents=function(t){var e,i,n=this.getEventCache(),s=[];for(e=0;e<n.length;e++)i=n[e],t&&t._id===i._id||s.push(i);return s};var me=le.extend({dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headRowEl:null,initialize:function(){this.dayGrid=new re(this),this.coordMap=this.dayGrid.coordMap},setRange:function(t){le.prototype.setRange.call(this,t),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(t)},computeRange:function(t){var e=le.prototype.computeRange.call(this,t);return/year|month/.test(e.intervalUnit)&&(e.start.startOf("week"),e.start=this.skipHiddenDays(e.start),e.end.weekday()&&(e.end.add(1,"week").startOf("week"),e.end=this.skipHiddenDays(e.end,-1,!0))),e},renderDates:function(){this.dayNumbersVisible=1<this.dayGrid.rowCnt,this.weekNumbersVisible=this.opt("weekNumbers"),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(this.hasRigidRows())},unrenderDates:function(){this.dayGrid.unrenderDates(),this.dayGrid.removeElement()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},renderHtml:function(){return'<table><thead class="fc-head"><tr><td class="'+this.widgetHeaderClass+'">'+this.dayGrid.headHtml()+'</td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){if(this.weekNumbersVisible)return'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span>"+j(this.opt("weekNumberTitle"))+"</span></th>"},numberIntroHtml:function(t){if(this.weekNumbersVisible)return'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.dayGrid.getCell(t,0).start.format("w")+"</span></td>"},dayIntroHtml:function(){if(this.weekNumbersVisible)return'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>"},introHtml:function(){if(this.weekNumbersVisible)return'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>"},numberCellHtml:function(t){var e,i=t.start;return this.dayNumbersVisible?((e=this.dayGrid.getDayClasses(i)).unshift("fc-day-number"),'<td class="'+e.join(" ")+'" data-date="'+i.format()+'">'+i.date()+"</td>"):"<td/>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var t=this.opt("eventLimit");return t&&"number"!=typeof t},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=t(this.el.find(".fc-week-number")))},setHeight:function(t,e){var i,n=this.opt("eventLimit");l(this.scrollerEl),r(this.headRowEl),this.dayGrid.removeSegPopover(),n&&"number"==typeof n&&this.dayGrid.limitRows(n),i=this.computeScrollerHeight(t),this.setGridHeight(i,e),n&&"number"!=typeof n&&this.dayGrid.limitRows(n),!e&&o(this.scrollerEl,i)&&(a(this.headRowEl,g(this.scrollerEl)),i=this.computeScrollerHeight(t),this.scrollerEl.height(i))},setGridHeight:function(t,e){e?n(this.dayGrid.rowEls):i(this.dayGrid.rowEls,t,!0)},renderEvents:function(t){this.dayGrid.renderEvents(t),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(t,e){return this.dayGrid.renderDrag(t,e)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(t){this.dayGrid.renderSelection(t)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),ve=me.extend({computeRange:function(t){var e,i=me.prototype.computeRange.call(this,t);return this.isFixedWeeks()&&(e=Math.ceil(i.end.diff(i.start,"weeks",!0)),i.end.add(6-e,"weeks")),i},setGridHeight:function(t,e){(e=e||"variable"===this.opt("weekMode"))&&(t*=this.rowCnt/6),i(this.dayGrid.rowEls,t,!e)},isFixedWeeks:function(){var t=this.opt("weekMode");return t?"fixed"===t:this.opt("fixedWeekCount")}});Ht.basic={"class":me},Ht.basicDay={type:"basic",duration:{days:1}},Ht.basicWeek={type:"basic",duration:{weeks:1}},Ht.month={"class":ve,duration:{months:1},defaults:{fixedWeekCount:!0}};var _e=le.extend({timeGrid:null,dayGrid:null,axisWidth:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=new oe(this),this.opt("allDaySlot")?(this.dayGrid=new re(this),this.coordMap=new te([this.dayGrid.coordMap,this.timeGrid.coordMap])):this.coordMap=this.timeGrid.coordMap},setRange:function(t){le.prototype.setRange.call(this,t),this.timeGrid.setRange(t),this.dayGrid&&this.dayGrid.setRange(t)},renderDates:function(){this.el.addClass("fc-agenda-view").html(this.renderHtml()),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.coordMap.c
13ontainerEl=this.scrollerEl,this.timeGrid.setElement(this.el.find(".fc-time-grid")),this.timeGrid.renderDates(),this.bottomRuleEl=et('<hr class="fc-divider '+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},unrenderDates:function(){this.timeGrid.unrenderDates(),this.timeGrid.removeElement(),this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement())},renderBusinessHours:function(){this.timeGrid.renderBusinessHours(),this.dayGrid&&this.dayGrid.renderBusinessHours()},renderHtml:function(){return'<table><thead class="fc-head"><tr><td class="'+this.widgetHeaderClass+'">'+this.timeGrid.headHtml()+'</td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){var t;return this.opt("weekNumbers")?(t=this.timeGrid.getCell(0).start.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"><span>"+j(t)+"</span></th>"):'<th class="fc-axis '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"></th>"},dayIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"><span>"+(this.opt("allDayHtml")||j(this.opt("allDayText")))+"</span></td>"},slotBgIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"></td>"},introHtml:function(){return'<td class="fc-axis" '+this.axisStyleAttr()+"></td>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(t){this.timeGrid.updateSize(t),le.prototype.updateSize.call(this,t)},updateWidth:function(){this.axisWidth=t(this.el.find(".fc-axis"))},setHeight:function(t,e){var i,n;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),l(this.scrollerEl),r(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.removeSegPopover(),(i=this.opt("eventLimit"))&&"number"!=typeof i&&(i=be),i&&this.dayGrid.limitRows(i)),e||(n=this.computeScrollerHeight(t),o(this.scrollerEl,n)?(a(this.noScrollRowEls,g(this.scrollerEl)),n=this.computeScrollerHeight(t),this.scrollerEl.height(n)):(this.scrollerEl.height(n).css("overflow","hidden"),this.bottomRuleEl.show()))},computeInitialScroll:function(){var t=it.duration(this.opt("scrollTime")),e=this.timeGrid.computeTimeTop(t);return(e=Math.ceil(e))&&e++,e},renderEvents:function(t){var e,i=[],n=[];for(e=0;e<t.length;e++)t[e].allDay?i.push(t[e]):n.push(t[e]);this.timeGrid.renderEvents(n),this.dayGrid&&this.dayGrid.renderEvents(i),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},unrenderEvents:function(){this.timeGrid.unrenderEvents(),this.dayGrid&&this.dayGrid.unrenderEvents()},renderDrag:function(t,e){return t.start.hasTime()?this.timeGrid.renderDrag(t,e):this.dayGrid?this.dayGrid.renderDrag(t,e):void 0},unrenderDrag:function(){this.timeGrid.unrenderDrag(),this.dayGrid&&this.dayGrid.unrenderDrag()},renderSelection:function(t){t.start.hasTime()||t.end.hasTime()?this.timeGrid.renderSelection(t):this.dayGrid&&this.dayGrid.renderSelection(t)},unrenderSelection:function(){this.timeGrid.unrenderSelection(),this.dayGrid&&this.dayGrid.unrenderSelection()}}),be=5;return Ht.agenda={"class":_e,defaults:{allDaySlot:!0,allDayText:"all-day",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0}},Ht.agendaDay={type:"agenda",duration:{days:1}},Ht.agendaWeek={type:"agenda",duration:{weeks:1}},Rt}),function(h){function n(t,e,i){var n=t.success,s=h.extend({},t.data||{},{"start-min":a(e,"u"),"start-max":a(i,"u"),singleevents:!0,"max-results":9999}),l=t.currentTimezone;return l&&(s.ctz=l=l.replace(" ","_")),h.extend({},t,{url:t.url.replace(/\/basic$/,"/full")+"?alt=json-in-script&callback=?",dataType:"jsonp",data:s,startParam:!1,endParam:!1,success:function(t){var o=[];t.feed.entry&&h.each(t.feed.entry,function(t,e){var i,n=e.gd$when[0].startTime,s=d(n,!0),a=d(e.gd$when[0].endTime,!0),r=-1==n.indexOf("T");h.each(e.link,function(t,e){"text/html"==e.type&&(i=e.href,l&&(i+=(-1==i.indexOf("?")?"?":"&")+"ctz="+l))}),r&&c(a,-1),o.push({id:e.gCal$uid.value,title:e.title.$t,url:i,start:s,end:a,allDay:r,location:e.gd$where[0].valueString,description:e.content.$t})});
13var e=[o].concat(Array.prototype.slice.call(arguments,1)),i=r(n,this,e);return h.isArray(i)?i:o}})}var t=h.fullCalendar,a=t.formatDate,d=t.parseISO8601,c=t.addDays,r=t.applyAll;t.sourceNormalizers.push(function(t){("gcal"==t.dataType||t.dataType===undefined&&(t.url||"").match(/^(http|https):\/\/www.google.com\/calendar\/feeds\//))&&(t.dataType="gcal",t.editable===undefined&&(t.editable=!1))}),t.sourceFetchers.push(function(t,e,i){if("gcal"==t.dataType)return n(t,e,i)}),t.gcalFeed=function(t,e){return h.extend({},e,{url:t,dataType:"gcal"})}}(jQuery),function(a){a.fn.charCount=function(s){function t(t){var e=a(t).val().length,i=a(".counter",a(t).parent()),n=s.allowed-e;n<=s.warning&&0<=n?i.addClass(s.cssWarning):i.removeClass(s.cssWarning),n<0?i.addClass(s.cssExceeded):i.removeClass(s.cssExceeded),i.html(s.counterText+n)}var e={allowed:140,warning:25,css:"counter",counterElement:"span",cssWarning:"warning",cssExceeded:"exceeded",counterText:"Caratteri disponibili: "};s=a.extend(e,s);this.each(function(){a(this).after("<"+s.counterElement+' class="'+s.css+'">'+s.counterText+"</"+s.counterElement+">"),t(this),a(this).keyup(function(){t(this)}),a(this).change(function(){t(this)})})}}(jQuery),function(i,aa,k,l){var j=function(e){function o(t,e){var n=j.defaults.columns,s=t.aoColumns.length;n=i.extend({},j.models.oColumn,n,{sSortingClass:t.oClasses.sSortable,sSortingClassJUI:t.oClasses.sSortJUI,nTh:e||k.createElement("th"),sTitle:n.sTitle?n.sTitle:e?e.innerHTML:"",aDataSort:n.aDataSort?n.aDataSort:[s],mDataProp:n.mDataProp?n.oDefaults:s});t.aoColumns.push(n),t.aoPreSearchCols[s]===l||null===t.aoPreSearchCols[s]?t.aoPreSearchCols[s]=i.extend({},j.models.oSearch):((n=t.aoPreSearchCols[s]).bRegex===l&&(n.bRegex=!0),n.bSmart===l&&(n.bSmart=!0),n.bCaseInsensitive===l&&(n.bCaseInsensitive=!0)),E(t,s,null)}function E(t,e,s){e=t.aoColumns[e],s!==l&&null!==s&&(s.sType!==l&&(e.sType=s.sType,e._bAutoType=!1),i.extend(e,s),n(e,s,"sWidth","sWidthOrig"),s.iDataSort!==l&&(e.aDataSort=[s.iDataSort]),n(e,s,"aDataSort")),e.fnGetData=V(e.mDataProp),e.fnSetData=sa(e.mDataProp),t.oFeatures.bSort||(e.bSortable=!1),!e.bSortable||-1==i.inArray("asc",e.asSorting)&&-1==i.inArray("desc",e.asSorting)?(e.sSortingClass=t.oClasses.sSortableNone,e.sSortingClassJUI=""):e.bSortable||-1==i.inArray("asc",e.asSorting)&&-1==i.inArray("desc",e.asSorting)?(e.sSortingClass=t.oClasses.sSortable,e.sSortingClassJUI=t.oClasses.sSortJUI):-1!=i.inArray("asc",e.asSorting)&&-1==i.inArray("desc",e.asSorting)?(e.sSortingClass=t.oClasses.sSortableAsc,e.sSortingClassJUI=t.oClasses.sSortJUIAscAllowed):-1==i.inArray("asc",e.asSorting)&&-1!=i.inArray("desc",e.asSorting)&&(e.sSortingClass=t.oClasses.sSortableDesc,e.sSortingClassJUI=t.oClasses.sSortJUIDescAllowed)}function r(t){if(!1===t.oFeatures.bAutoWidth)return!1;ba(t);for(var e=0,i=t.aoColumns.length;e<i;e++)t.aoColumns[e].nTh.style.width=t.aoColumns[e].sWidth}function s(t,e){for(var i=-1,n=0;n<t.aoColumns.length;n++)if(!0===t.aoColumns[n].bVisible&&i++,i==e)return n;return null}function t(t,e){for(var i=-1,n=0;n<t.aoColumns.length;n++)if(!0===t.aoColumns[n].bVisible&&i++,n==e)return!0===t.aoColumns[n].bVisible?i:null;return null}function v(t){for(var e=0,i=0;i<t.aoColumns.length;i++)!0===t.aoColumns[i].bVisible&&e++;return e}function B(t){for(var e=j.ext.aTypes,i=e.length,n=0;n<i;n++){var s=e[n](t);if(null!==s)return s}return"string"}function D(t,e){for(var i=e.split(","),n=[],s=0,a=t.aoColumns.length;s<a;s++)for(var r=0;r<a;r++)if(t.aoColumns[s].sName==i[r]){n.push(r);break}return n}function x(t){for(var e="",i=0,n=t.aoColumns.length;i<n;i++)e+=t.aoColumns[i].sName+",";return e.length==n?"":e.slice(0,-1)}function I(t,e,n,s){var a,r,l,h,d;if(e)for(a=e.length-1;0<=a;a--){var c=e[a].aTargets;for(i.isArray(c)||F(t,1,"aTargets must be an array of targets, not a "+typeof c),r=0,l=c.length;r<l;r++)if("number"==typeof c[r]&&0<=c[r]){for(;t.aoColumns.length<=c[r];)o(t);s(c[r],e[a])}else if("number"==typeof c[r]&&c[r]<0)s(t.aoColumns.length+c[r],e[a]);else if("string"==typeof c[r])for(h=0,d=t.aoColumns.length;h<d;h++)("_all"==c[r]||i(t.aoColumns[h].nTh).hasClass(c[r]))&&s(h,e[a])}if(n)for(a=0,t=n.length;a<t;a++)s(a,n[a])}function G(t,e){var n;n=i.isArray(e)?e.slice():i.extend(!0,{},e);var s=t.aoData.length;n=i.extend(!0,{},j.models.oRow,{_aData:n}),t.aoData.push(n);for(var a,r=0,o=t.aoColumns.length;r<o;
13r++)"function"==typeof(n=t.aoColumns[r]).fnRender&&n.bUseRendered&&null!==n.mDataProp&&J(t,s,r,R(t,s,r)),n._bAutoType&&"string"!=n.sType&&(null!==(a=w(t,s,r,"type"))&&""!==a)&&(a=B(a),null===n.sType?n.sType=a:n.sType!=a&&"html"!=n.sType&&(n.sType="string"));return t.aiDisplayMaster.push(s),t.oFeatures.bDeferRender||ca(t,s),s}function ta(t){var e,n,s,a,r,o,l,h,d;if(t.bDeferLoading||null===t.sAjaxSource)for(e=0,n=(l=t.nTBody.childNodes).length;e<n;e++)if("TR"==l[e].nodeName.toUpperCase())for(h=t.aoData.length,l[e]._DT_RowIndex=h,t.aoData.push(i.extend(!0,{},j.models.oRow,{nTr:l[e]})),t.aiDisplayMaster.push(h),s=r=0,a=(o=l[e].childNodes).length;s<a;s++)("TD"==(d=o[s].nodeName.toUpperCase())||"TH"==d)&&(J(t,h,r,i.trim(o[s].innerHTML)),r++);for(o=[],e=0,n=(l=S(t)).length;e<n;e++)for(s=0,a=l[e].childNodes.length;s<a;s++)("TD"==(d=(r=l[e].childNodes[s]).nodeName.toUpperCase())||"TH"==d)&&o.push(r);for(a=0,l=t.aoColumns.length;a<l;a++){null===(d=t.aoColumns[a]).sTitle&&(d.sTitle=d.nTh.innerHTML),r=d._bAutoType,h="function"==typeof d.fnRender;var c,u,p=null!==d.sClass,f=d.bVisible;if(r||h||p||!f)for(e=0,n=t.aoData.length;e<n;e++)s=t.aoData[e],c=o[e*l+a],r&&"string"!=d.sType&&""!==(u=w(t,e,a,"type"))&&(u=B(u),null===d.sType?d.sType=u:d.sType!=u&&"html"!=d.sType&&(d.sType="string")),"function"==typeof d.mDataProp&&(c.innerHTML=w(t,e,a,"display")),h&&(u=R(t,e,a),c.innerHTML=u,d.bUseRendered&&J(t,e,a,u)),p&&(c.className+=" "+d.sClass),f?s._anHidden[a]=null:(s._anHidden[a]=c).parentNode.removeChild(c),d.fnCreatedCell&&d.fnCreatedCell.call(t.oInstance,c,w(t,e,a,"display"),s._aData,e,a)}if(0!==t.aoRowCreatedCallback.length)for(e=0,n=t.aoData.length;e<n;e++)C(t,"aoRowCreatedCallback",null,[(s=t.aoData[e]).nTr,s._aData,e])}function K(t,e){return e._DT_RowIndex!==l?e._DT_RowIndex:null}function da(t,e,i){e=L(t,e);var n=0;for(t=t.aoColumns.length;n<t;n++)if(e[n]===i)return n;return-1}function W(t,e,i){for(var n=[],s=0,a=t.aoColumns.length;s<a;s++)n.push(w(t,e,s,i));return n}function w(t,e,i,n){var s=t.aoColumns[i];if((i=s.fnGetData(t.aoData[e]._aData,n))===l)return t.iDrawError!=t.iDraw&&null===s.sDefaultContent&&(F(t,0,"Requested unknown parameter '"+s.mDataProp+"' from the data source for row "+e),t.iDrawError=t.iDraw),s.sDefaultContent;if(null===i&&null!==s.sDefaultContent)i=s.sDefaultContent;else if("function"==typeof i)return i();return"display"==n&&null===i?"":i}function J(t,e,i,n){t.aoColumns[i].fnSetData(t.aoData[e]._aData,n)}function V(i){if(null===i)return function(){return null};if("function"==typeof i)return function(t,e){return i(t,e)};if("string"!=typeof i||-1==i.indexOf("."))return function(t){return t[i]};var n=i.split(".");return function(t){for(var e=0,i=n.length;e<i;e++)if((t=t[n[e]])===l)return l;return t}}function sa(i){if(null===i)return function(){};if("function"==typeof i)return function(t,e){i(t,"set",e)};if("string"!=typeof i||-1==i.indexOf("."))return function(t,e){t[i]=e};var s=i.split(".");return function(t,e){for(var i=0,n=s.length-1;i<n;i++)t=t[s[i]];t[s[s.length-1]]=e}}function X(t){for(var e=[],i=t.aoData.length,n=0;n<i;n++)e.push(t.aoData[n]._aData);return e}function ea(t){t.aoData.splice(0,t.aoData.length),t.aiDisplayMaster.splice(0,t.aiDisplayMaster.length),t.aiDisplay.splice(0,t.aiDisplay.length),z(t)}function fa(t,e){for(var i=-1,n=0,s=t.length;n<s;n++)t[n]==e?i=n:t[n]>e&&t[n]--;-1!=i&&t.splice(i,1)}function R(t,e,i){var n=t.aoColumns[i];return n.fnRender({iDataRow:e,iDataColumn:i,oSettings:t,aData:t.aoData[e]._aData,mDataProp:n.mDataProp},w(t,e,i,"display"))}function ca(t,e){var n,s=t.aoData[e];if(null===s.nTr){s.nTr=k.createElement("tr"),s.nTr._DT_RowIndex=e,s._aData.DT_RowId&&(s.nTr.id=s._aData.DT_RowId),s._aData.DT_RowClass&&i(s.nTr).addClass(s._aData.DT_RowClass);for(var a=0,r=t.aoColumns.length;a<r;a++){var o=t.aoColumns[a];(n=k.createElement("td")).innerHTML="function"!=typeof o.fnRender||o.bUseRendered&&null!==o.mDataProp?w(t,e,a,"display"):R(t,e,a),null!==o.sClass&&(n.className=o.sClass),o.bVisible?(s.nTr.appendChild(n),s._anHidden[a]=null):s._anHidden[a]=n,o.fnCreatedCell&&o.fnCreatedCell.call(t.oInstance,n,w(t,e,a,"display"),s._aData,e,a)}C(t,"aoRowCreatedCallback",null,[s.nTr,s._aData,e])}}function ua(t){var e,n,s;if(0!==t.nTHead.getElementsByTagName("th").length)for(e=0,s=t.aoColumns.length;e<s;e++)(n=t.aoColumns[e].nTh).setAttribute("role","columnheader"),t.aoColumns[e].bSortable&&(n.setAttribute("tabindex",t.iTabIndex),n.setAttribute("aria-controls",t.sTableId)),null!==t.aoColumns[e].sClass&&i(n).addClass(t.aoColumns[e].sClass),t.aoColumns[e].sTitle!=n.innerHTML&&(n.innerHTML=t.aoColumns[e].sTitle);else{var a=k.createElement("tr");for(e=0,s=t.aoColumns.length;e<s;e++)(n=t.aoColumns[e].nTh).innerHTML=t.aoColumns[e].sTitle,n.setAttribute("tabindex","0"),null!==t.aoColumns[e].sClass&&i(n).addClass(t.aoColumns[e].sClass),a.appendChild(n);i(t.nTHead).html("")[0].appendChild(a),T(t.aoHeader,t.nTHead)}if(i(t.nTHead).children("tr").attr("role","row"),t.bJUI)for(e=0,s=t.aoColumns.length;e<s;e++){n=t.aoColumns[e].nTh,(a=k.createElement("div")).className=t.oClasse
13s.sSortJUIWrapper,i(n).contents().appendTo(a);var r=k.createElement("span");r.className=t.oClasses.sSortIcon,a.appendChild(r),n.appendChild(a)}if(t.oFeatures.bSort)for(e=0;e<t.aoColumns.length;e++)!1!==t.aoColumns[e].bSortable?ga(t,t.aoColumns[e].nTh,e):i(t.aoColumns[e].nTh).addClass(t.oClasses.sSortableNone);if(""!==t.oClasses.sFooterTH&&i(t.nTFoot).children("tr").children("th").addClass(t.oClasses.sFooterTH),null!==t.nTFoot)for(n=O(t,null,t.aoFooter),e=0,s=t.aoColumns.length;e<s;e++)n[e]&&(t.aoColumns[e].nTf=n[e],t.aoColumns[e].sClass&&i(n[e]).addClass(t.aoColumns[e].sClass))}function U(t,e,i){var n,s,a,r,o=[],h=[],d=t.aoColumns.length;for(i===l&&(i=!1),n=0,s=e.length;n<s;n++){for(o[n]=e[n].slice(),o[n].nTr=e[n].nTr,a=d-1;0<=a;a--)!t.aoColumns[a].bVisible&&!i&&o[n].splice(a,1);h.push([])}for(n=0,s=o.length;n<s;n++){if(t=o[n].nTr)for(;a=t.firstChild;)t.removeChild(a);for(a=0,e=o[n].length;a<e;a++)if(r=d=1,h[n][a]===l){for(t.appendChild(o[n][a].cell),h[n][a]=1;o[n+d]!==l&&o[n][a].cell==o[n+d][a].cell;)h[n+d][a]=1,d++;for(;o[n][a+r]!==l&&o[n][a].cell==o[n][a+r].cell;){for(i=0;i<d;i++)h[n+i][a+r]=1;r++}o[n][a].cell.rowSpan=d,o[n][a].cell.colSpan=r}}}function y(t){var e,n,s=[],a=0,r=t.asStripeClasses.length;if(e=t.aoOpenRows.length,n=C(t,"aoPreDrawCallback","preDraw",[t]),-1===i.inArray(!1,n)){if(t.bDrawing=!0,t.iInitDisplayStart!==l&&-1!=t.iInitDisplayStart&&(t._iDisplayStart=t.oFeatures.bServerSide?t.iInitDisplayStart:t.iInitDisplayStart>=t.fnRecordsDisplay()?0:t.iInitDisplayStart,t.iInitDisplayStart=-1,z(t)),t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++;else if(t.oFeatures.bServerSide){if(!t.bDestroying&&!va(t))return}else t.iDraw++;if(0!==t.aiDisplay.length){var o=t._iDisplayStart;for(n=t._iDisplayEnd,t.oFeatures.bServerSide&&(o=0,n=t.aoData.length);o<n;o++){var h=t.aoData[t.aiDisplay[o]];null===h.nTr&&ca(t,t.aiDisplay[o]);var d=h.nTr;if(0!==r){var c=t.asStripeClasses[a%r];h._sRowStripe!=c&&(i(d).removeClass(h._sRowStripe).addClass(c),h._sRowStripe=c)}if(C(t,"aoRowCallback",null,[d,t.aoData[t.aiDisplay[o]]._aData,a,o]),s.push(d),a++,0!==e)for(h=0;h<e;h++)if(d==t.aoOpenRows[h].nParent){s.push(t.aoOpenRows[h].nTr);break}}}else s[0]=k.createElement("tr"),t.asStripeClasses[0]&&(s[0].className=t.asStripeClasses[0]),r=t.oLanguage.sZeroRecords.replace("_MAX_",t.fnFormatNumber(t.fnRecordsTotal())),1!=t.iDraw||null===t.sAjaxSource||t.oFeatures.bServerSide?t.oLanguage.sEmptyTable&&0===t.fnRecordsTotal()&&(r=t.oLanguage.sEmptyTable):r=t.oLanguage.sLoadingRecords,(e=k.createElement("td")).setAttribute("valign","top"),e.colSpan=v(t),e.className=t.oClasses.sRowEmpty,e.innerHTML=r,s[a].appendChild(e);if(C(t,"aoHeaderCallback","header",[i(t.nTHead).children("tr")[0],X(t),t._iDisplayStart,t.fnDisplayEnd(),t.aiDisplay]),C(t,"aoFooterCallback","footer",[i(t.nTFoot).children("tr")[0],X(t),t._iDisplayStart,t.fnDisplayEnd(),t.aiDisplay]),a=k.createDocumentFragment(),e=k.createDocumentFragment(),t.nTBody){if(r=t.nTBody.parentNode,e.appendChild(t.nTBody),!t.oScroll.bInfinite||!t._bInitComplete||t.bSorted||t.bFiltered)for(;e=t.nTBody.firstChild;)t.nTBody.removeChild(e);for(e=0,n=s.length;e<n;e++)a.appendChild(s[e]);t.nTBody.appendChild(a),null!==r&&r.appendChild(t.nTBody)}C(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1,t.oFeatures.bServerSide&&(H(t,!1),t._bInitComplete||Y(t))}}function Z(t){t.oFeatures.bSort?P(t,t.oPreviousSearch):t.oFeatures.bFilter?M(t,t.oPreviousSearch):(z(t),y(t))}function wa(t){var e=i("<div></div>")[0];t.nTable.parentNode.insertBefore(e,t.nTable),t.nTableWrapper=i('<div id="'+t.sTableId+'_wrapper" class="'+t.oClasses.sWrapper+'" role="grid"></div>')[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var n,s,a,r,o,l,h,d=t.nTableWrapper,c=t.sDom.split(""),u=0;u<c.length;u++){if(s=0,"<"==(a=c[u])){if(r=i("<div></div>")[0],"'"==(o=c[u+1])||'"'==o){for(l="",h=2;c[u+h]!=o;)l+=c[u+h],h++;"H"==l?l="fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix":"F"==l&&(l="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"),-1!=l.indexOf(".")?(o=l.split("."),r.id=o[0].substr(1,o[0].length-1),r.className=o[1]):"#"==l.charAt(0)?r.id=l.substr(1,l.length-1):r.className=l,u+=h}d.appendChild(r),d=r}else if(">"==a)d=d.parentNode;else if("l"==a&&t.oFeatures.bPaginate&&t.oFeatures.bLengthChange)n=xa(t),s=1;else if("f"==a&&t.oFeatures.bFilter)n=ya(t),s=1;else if("r"==a&&t.oFeatures.bProcessing)n=za(t),s=1;else if("t"==a)n=Aa(t),s=1;else if("i"==a&&t.oFeatures.bInfo)n=Ba(t),s=1;else if("p"==a&&t.oFeatures.bPaginate)n=Ca(t),s=1;else if(0!==j.ext.aoFeatures.length)for(h=0,o=(r=j.ext.aoFeatures).length;h<o;h++)if(a==r[h].cFeature){(n=r[h].fnInit(t))&&(s=1);break}1==s&&null!==n&&("object"!=typeof t.aanFeatures[a]&&(t.aanFeatures[a]=[]),t.aanFeatures[a].push(n),d.appendChild(n))}e.parentNode.replaceChild(t.nTableWrapper,e)}function T(t,e){var n,s,a,r,o,l,h,d,c=i(e).children("tr");for(t.splice(0,t.length),s=0,l=c.length;s<l;s++)t.push([]);for(s=0,l=c.length;s<l;s++)for(a=0,h=c[s].childNodes.length;a<h;a++)if("TD"==(n=c[s].childNodes[a]).nodeName.toUpperCase()||"TH"==n.nodeName.toUpperCase()){var u=(u=1*n.getAttribute("colspan"))&&0!==u&&1!==u?u:1,p=(p=1*n.getAttribute("rowspan"))&&0!==p&&1!==p?p:1;for(r=0;t[s][r];)r++;for(d=r,o=0;o<u;o++)for(r=0;r<p;r++)t[s+r][d+o]={cell:n,unique:1==u},t[s+r].nTr=c[s]}}function O(t,e,i){var n=[];i||(i=t.aoHeader,e&&T(i=[],e));e=0;for(var s=i.length;e<s;e++)for(var a=0,r=i[e].length;a<r;a++)!i[e][a].unique||n[a]&&t.bSortCellsTop||(n[a]=i[e][a].cell);return n}function va(e){if(e.bAjaxDataGet){e.iDraw++,H(e,!0);var t=Da(e);return ha(e,t),e.fnServerData.call(e.oInstance,e.sAjaxSource,t,function(t){Ea(e,t)},e),!1}return!0}function Da(t){var e,i,n=t.aoColumns.length,s=[];for(s.push({name:"sEcho",value:t.iDraw}),s.push({name:"iColumns",value:n}),s.push({name:"sColumns",value:x(t)}),s.push({name:"iDisplayStart",value:t._iDisplayStart}),s.push({name:"iDisplayLength",value:!1!==t.oFeatures.bPaginate?t._iDisplayLength:-1}),i=0;i<n;i++)e=t.aoColumns[i].mDataProp,s.push({name:"mDataProp_"+i,value:"function"==typeof e?"function":e});if(!1!==t.oFeatures.bFilter)for(s.push({name:"sSearch",value:t.oPreviousSearch.sSearch}),s.push({name:"bRegex",value:t.oPreviousSearch.bRegex}),i=0;i<n;i++)s.push({name:"sSearch_"+i,value:t.aoPreSearchCols[i].sSearch}),s.push({name:"bRegex_"+i,value:t.aoPreSearchCols[i].bRegex}),s.push({name:"bSearchable_"+i,value:t.aoColumns[i].bSearchable});if(!1!==t.oFeatures.bSort){e=null!==t.aaSortingFixed?t.aaSortingFixed.length:0;var a=t.aaSorting.length;for(s.push({name:"iSortingCols",value:e+a}),i=0;i<e;i++)s.push({name:"iSortCol_"+i,value:t.aaSortingFixed[i][0]}),s.push({name:"sSortDir_"+i,value:t.aaSortingFixed[i][1]});for(i=0;i<a;i++)s.push({name:"iSortCol_"+(i+e),value:t.aaSorting[i][0]}),s.push({name:"sSortDir_"+(i+e),value:t.aaSorting[i][1]});for(i=0;i<n;i++)s.push({name:"bSortable_"+i,value:t.aoColumns[i].bSortable})}return s}function ha(t,e){C(t,"aoServerParams","serverParams",[e])}function Ea(t,e){if(e.sEcho!==l){if(1*e.sEcho<t.iDraw)return;t.iDraw=1*e.sEcho}(!t.oScroll.bInfinite||t.oScroll.bInfinite&&(t.bSorted||t.bFiltered))&&ea(t),t._iRecordsTotal=parseInt(e.iTotalRecords,10),t._iRecordsDisplay=parseInt(e.iTotalDisplayRecords,10);var i,n=x(t);(n=e.sColumns!==l&&""!==n&&e.sColumns!=n)&&(i=D(t,e.sColumns));for(var s=V(t.sAjaxDataProp)(e),a=0,r=s.length;a<r;a++)if(n){for(var o=[],h=0,d=t.aoColumns.length;h<d;h++)o.push(s[a][i[h]]);G(t,o)}else G(t,s[a]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,y(t),t.bAjaxDataGet=!0,H(t,!1)}function ya(s){var a=s.oPreviousSearch,t=-1!==(t=s.oLanguage.sSearch).indexOf("_INPUT_")?t.replace("_INPUT_",'<input type="text" />'):""===t?'<input type="text" />':t+' <input type="text" />',e=k.createElement("div");return e.className=s.oClasses.sFilter,e.innerHTML="<label>"+t+"</label>",s.aanFeatures.f||(e.id=s.sTableId+"_filter"),(t=i("input",e)).val(a.sSearch.replace('"',"&quot;")),t.bind("keyup.DT",function(){for(var t=s.aanFeatures.f,e=0,n=t.length;e<n;e++)t[e]!=i(this).parents("div.dataTables_filter")[0]&&i("input",t[e]).val(this.value);this.value!=a.sSearch&&M(s,{sSearch:this.value,bRegex:a.bRegex,bSmart:a.b
13Smart,bCaseInsensitive:a.bCaseInsensitive})}),t.attr("aria-controls",s.sTableId).bind("keypress.DT",function(t){if(13==t.keyCode)return!1}),e}function M(t,e,n){var s=t.oPreviousSearch,a=t.aoPreSearchCols,r=function(t){s.sSearch=t.sSearch,s.bRegex=t.bRegex,s.bSmart=t.bSmart,s.bCaseInsensitive=t.bCaseInsensitive};if(t.oFeatures.bServerSide)r(e);else{for(Fa(t,e.sSearch,n,e.bRegex,e.bSmart,e.bCaseInsensitive),r(e),e=0;e<t.aoPreSearchCols.length;e++)Ga(t,a[e].sSearch,e,a[e].bRegex,a[e].bSmart,a[e].bCaseInsensitive);Ha(t)}t.bFiltered=!0,i(t.oInstance).trigger("filter",t),t._iDisplayStart=0,z(t),y(t),ia(t,0)}function Ha(t){for(var e=j.ext.afnFiltering,i=0,n=e.length;i<n;i++)for(var s=0,a=0,r=t.aiDisplay.length;a<r;a++){var o=t.aiDisplay[a-s];e[i](t,W(t,o,"filter"),o)||(t.aiDisplay.splice(a-s,1),s++)}}function Ga(t,e,i,n,s,a){if(""!==e)for(e=ja(e,n,s,a),n=t.aiDisplay.length-1;0<=n;n--)s=ka(w(t,t.aiDisplay[n],i,"filter"),t.aoColumns[i].sType),e.test(s)||(t.aiDisplay.splice(n,1),0)}function Fa(t,e,i,n,s,a){if(n=ja(e,n,s,a),s=t.oPreviousSearch,i||(i=0),0!==j.ext.afnFiltering.length&&(i=1),e.length<=0)t.aiDisplay.splice(0,t.aiDisplay.length),t.aiDisplay=t.aiDisplayMaster.slice();else if(t.aiDisplay.length==t.aiDisplayMaster.length||s.sSearch.length>e.length||1==i||0!==e.indexOf(s.sSearch))for(t.aiDisplay.splice(0,t.aiDisplay.length),ia(t,1),e=0;e<t.aiDisplayMaster.length;e++)n.test(t.asDataSearch[e])&&t.aiDisplay.push(t.aiDisplayMaster[e]);else for(e=i=0;e<t.asDataSearch.length;e++)n.test(t.asDataSearch[e])||(t.aiDisplay.splice(e-i,1),i++)}function ia(t,e){if(!t.oFeatures.bServerSide){t.asDataSearch.splice(0,t.asDataSearch.length);for(var i=e&&1===e?t.aiDisplayMaster:t.aiDisplay,n=0,s=i.length;n<s;n++)t.asDataSearch[n]=la(t,W(t,i[n],"filter"))}}function la(t,e){var i="";t.__nTmpFilter===l&&(t.__nTmpFilter=k.createElement("div"));for(var n=t.__nTmpFilter,s=0,a=t.aoColumns.length;s<a;s++)t.aoColumns[s].bSearchable&&(i+=ka(e[s],t.aoColumns[s].sType)+"  ");return-1!==i.indexOf("&")&&(n.innerHTML=i,i=(i=n.textContent?n.textContent:n.innerText).replace(/\n/g," ").replace(/\r/g,"")),i}function ja(t,e,i,n){return t=i?"^(?=.*?"+(t=e?t.split(" "):ma(t).split(" ")).join(")(?=.*?")+").*$":e?t:ma(t),RegExp(t,n?"i":"")}function ka(t,e){return"function"==typeof j.ext.ofnSearch[e]?j.ext.ofnSearch[e](t):"html"==e?t.replace(/[\r\n]/g," ").replace(/<.*?>/g,""):"string"==typeof t?t.replace(/[\r\n]/g," "):null===t?"":t}function ma(t){return t.replace(RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^)","g"),"\\$1")}function Ba(t){var e=k.createElement("div");return e.className=t.oClasses.sInfo,t.aanFeatures.i||(t.aoDrawCallback.push({fn:Ia,sName:"information"}),e.id=t.sTableId+"_info"),t.nTable.setAttribute("aria-describedby",t.sTableId+"_info"),e}function Ia(t){if(t.oFeatures.bInfo&&0!==t.aanFeatures.i.length){var e=t._iDisplayStart+1,n=t.fnDisplayEnd(),s=t.fnRecordsTotal(),a=t.fnRecordsDisplay(),r=t.fnFormatNumber(e),o=t.fnFormatNumber(n),l=t.fnFormatNumber(s),h=t.fnFormatNumber(a);for(t.oScroll.bInfinite&&(r=t.fnFormatNumber(1)),r=0===t.fnRecordsDisplay()&&t.fnRecordsDisplay()==t.fnRecordsTotal()?t.oLanguage.sInfoEmpty+t.oLanguage.sInfoPostFix:0===t.fnRecordsDisplay()?t.oLanguage.sInfoEmpty+" "+t.oLanguage.sInfoFiltered.replace("_MAX_",l)+t.oLanguage.sInfoPostFix:t.fnRecordsDisplay()==t.fnRecordsTotal()?t.oLanguage.sInfo.replace("_START_",r).replace("_END_",o).replace("_TOTAL_",h)+t.oLanguage.sInfoPostFix:t.oLanguage.sInfo.replace("_START_",r).replace("_END_",o).replace("_TOTAL_",h)+" "+t.oLanguage.sInfoFiltered.replace("_MAX_",t.fnFormatNumber(t.fnRecordsTotal()))+t.oLanguage.sInfoPostFix,null!==t.oLanguage.fnInfoCallback&&(r=t.oLanguage.fnInfoCallback.call(t.oInstance,t,e,n,s,a,r)),e=0,n=(t=t.aanFeatures.i).length;e<n;e++)i(t[e]).html(r)}}function $(i){var n,t,s=i.iInitDisplayStart;if(!1===i.bInitialised)setTimeout(function(){$(i)},200);else{for(wa(i),ua(i),U(i,i.aoHeader),i.nTFoot&&U(i,i.aoFooter),H(i,!0),i.oFeatures.bAutoWidth&&ba(i),n=0,t=i.aoColumns.length;n<t;n++)null!==i.aoColumns[n].sWidth&&(i.aoColumns[n].nTh.style.width=p(i.aoColumns[n].sWidth));i.oFeatures.bSort?P(i):i.oFeatures.bFilter?M(i,i.oPreviousSearch):(i.aiDisplay=i.aiDisplayMaster.slice(),z(i),y(i)),null===i.sAjaxSource||i.oFeatures.bServerSide?i.oFeatures.bServerSide||(H(i,!1),Y(i)):(ha(i,t=[]),i.fnServerData.call(i.oInstance,i.sAjaxSource,t,function(t){var e=""!==i.sAjaxDataProp?V(i.sAjaxDataProp)(t):t;for(n=0;n<e.length;n++)G(i,e[n]);i.iInitDisplayStart=s,i.oFeatures.bSort?P(i):(i.aiDisplay=i.aiDisplayMaster.slice(),z(i),y(i)),H(i,!1),Y(i,t)},i))}}
13function Y(t,e){t._bInitComplete=!0,C(t,"aoInitComplete","init",[t,e])}function na(t){!t.sEmptyTable&&t.sZeroRecords&&n(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&t.sZeroRecords&&n(t,t,"sZeroRecords","sLoadingRecords")}function xa(n){if(n.oScroll.bInfinite)return null;var s,a,t='<select size="1" name="'+n.sTableId+'_length">',e=n.aLengthMenu;if(2==e.length&&"object"==typeof e[0]&&"object"==typeof e[1])for(a=e[s=0].length;s<a;s++)t+='<option value="'+e[0][s]+'">'+e[1][s]+"</option>";else for(s=0,a=e.length;s<a;s++)t+='<option value="'+e[s]+'">'+e[s]+"</option>";return t+="</select>",e=k.createElement("div"),n.aanFeatures.l||(e.id=n.sTableId+"_length"),e.className=n.oClasses.sLength,
14e.innerHTML="<label>"+n.oLanguage.sLengthMenu.replace("_MENU_",t)+"</label>",i('select option[value="'+n._iDisplayLength+'"]',e).attr("selected",!0),i("select",e).bind("change.DT",function(){var t=i(this).val(),e=n.aanFeatures.l;for(s=0,a=e.length;s<a;s++)e[s]!=this.parentNode&&i("select",e[s]).val(t);n._iDisplayLength=parseInt(t,10),z(n),n.fnDisplayEnd()==n.fnRecordsDisplay()&&(n._iDisplayStart=n.fnDisplayEnd()-n._iDisplayLength,n._iDisplayStart<0)&&(n._iDisplayStart=0),-1==n._iDisplayLength&&(n._iDisplayStart=0),y(n)}),i("select",e).attr("aria-controls",n.sTableId),e}function z(t){t._iDisplayEnd=!1===t.oFeatures.bPaginate?t.aiDisplay.length:t._iDisplayStart+t._iDisplayLength>t.aiDisplay.length||-1==t._iDisplayLength?t.aiDisplay.length:t._iDisplayStart+t._iDisplayLength}function Ca(t){if(t.oScroll.bInfinite)return null;var e=k.createElement("div");return e.className=t.oClasses.sPaging+t.sPaginationType,j.ext.oPagination[t.sPaginationType].fnInit(t,e,function(t){z(t),y(t)}),t.aanFeatures.p||t.aoDrawCallback.push({fn:function(t){j.ext.oPagination[t.sPaginationType].fnUpdate(t,function(t){z(t),y(t)})},sName:"pagination"}),e}function oa(t,e){var n=t._iDisplayStart;if("number"==typeof e)t._iDisplayStart=e*t._iDisplayLength,t._iDisplayStart>t.fnRecordsDisplay()&&(t._iDisplayStart=0);else if("first"==e)t._iDisplayStart=0;else if("previous"==e)t._iDisplayStart=0<=t._iDisplayLength?t._iDisplayStart-t._iDisplayLength:0,t._iDisplayStart<0&&(t._iDisplayStart=0);else if("next"==e)0<=t._iDisplayLength?t._iDisplayStart+t._iDisplayLength<t.fnRecordsDisplay()&&(t._iDisplayStart+=t._iDisplayLength):t._iDisplayStart=0;else if("last"==e)if(0<=t._iDisplayLength){var s=parseInt((t.fnRecordsDisplay()-1)/t._iDisplayLength,10)+1;t._iDisplayStart=(s-1)*t._iDisplayLength}else t._iDisplayStart=0;else F(t,0,"Unknown paging action: "+e);return i(t.oInstance).trigger("page",t),n!=t._iDisplayStart}function za(t){var e=k.createElement("div");return t.aanFeatures.r||(e.id=t.sTableId+"_processing"),e.innerHTML=t.oLanguage.sProcessing,e.className=t.oClasses.sProcessing,t.nTable.parentNode.insertBefore(e,t.nTable),e}function H(t,e){if(t.oFeatures.bProcessing)for(var n=t.aanFeatures.r,s=0,a=n.length;s<a;s++)n[s].style.visibility=e?"visible":"hidden";i(t.oInstance).trigger("processing",[t,e])}function Aa(t){if(""===t.oScroll.sX&&""===t.oScroll.sY)return t.nTable;var e=k.createElement("div"),n=k.createElement("div"),s=k.createElement("div"),a=k.createElement("div"),r=k.createElement("div"),o=k.createElement("div"),l=t.nTable.cloneNode(!1),h=t.nTable.cloneNode(!1),d=t.nTable.getElementsByTagName("thead")[0],c=0===t.nTable.getElementsByTagName("tfoot").length?null:t.nTable.getElementsByTagName("tfoot")[0],u=t.oClasses;for(n.appendChild(s),r.appendChild(o),a.appendChild(t.nTable),e.appendChild(n),e.appendChild(a),s.appendChild(l),l.appendChild(d),null!==c&&(e.appendChild(r),o.appendChild(h),h.appendChild(c)),e.className=u.sScrollWrapper,n.className=u.sScrollHead,s.className=u.sScrollHeadInner,a.className=u.sScrollBody,r.className=u.sScrollFoot,o.className=u.sScrollFootInner,t.oScroll.bAutoCss&&(n.style.overflow="hidden",n.style.position="relative",r.style.overflow="hidden",a.style.overflow="auto"),n.style.border="0",n.style.width="100%",r.style.border="0",s.style.width="150%",l.removeAttribute("id"),l.style.marginLeft="0",t.nTable.style.marginLeft="0",null!==c&&(h.removeAttribute("id"),h.style.marginLeft="0"),o=0,h=(s=i(t.nTable).children("caption")).length;o<h;o++)l.appendChild(s[o]);return""!==t.oScroll.sX&&(n.style.width=p(t.oScroll.sX),a.style.width=p(t.oScroll.sX),null!==c&&(r.style.width=p(t.oScroll.sX)),i(a).scroll(function(){n.scrollLeft=this.scrollLeft,null!==c&&(r.scrollLeft=this.scrollLeft)})),""!==t.oScroll.sY&&(a.style.height=p(t.oScroll.sY)),t.aoDrawCallback.push({fn:Ja,sName:"scrolling"}),t.oScroll.bInfinite&&i(a).scroll(function(){!t.bDrawing&&0!==i(this).scrollTop()&&i(this).scrollTop()+i(this).height()>i(t.nTable).height()-t.oScroll.iLoadGap&&t.fnDisplayEnd()<t.fnRecordsDisplay()&&(oa(t,"next"),z(t),y(t))}),t.nScrollHead=n,t.nScrollFoot=r,e}function Ja(t){var e,n,a,r,o,l,h,d,c=t.nScrollHead.getElementsByTagName("div")[0],u=c.getElementsByTagName("table")[0],f=t.nTable.parentNode,g=[],m=null!==t.nTFoot?t.nScrollFoot.getElementsByTagName("div")[0]:null,v=null!==t.nTFoot?m.getElementsByTagName("table")[0]:null,_=i.browser.msie&&i.browser.version<=7;0<(a=t.nTable.getElementsByTagName("thead")).length&&t.nTable.removeChild(a[0]),null!==t.nTFoot&&(0<(o=t.nTable.getElementsByTagName("tfoot")).length&&t.nTable.removeChild(o[0])),a=t.nTHead.cloneNode(!0),t.nTable.insertBefore(a,t.nTable.childNodes[0]),null!==t.nTFoot&&(o=t.nTFoot.cloneNode(!0),t.nTable.insertBefore(o,t.nTable.childNodes[1])),""===t.oScroll.sX&&(f.style.width="100%",c.parentNode.style.width="100%");var b=O(t,a);for(e=0,n=b.length;e<n;e++)h=s(t,e),b[e].style.width=t.aoColumns[h].sWidth;null!==t.nTFoot&&N(function(t){t.style.width=""},o.getElementsByTagName("tr")),e=i(t.nTable).outerWidth(),""===t.oScroll.sX?(t.nTable.style.width="100%",_&&(i("tbody",f).height()>f.offsetHeight||"scroll"==i(f).css("overflow-y"))&&(t.nTable.style.width=p(i(t.nTable).outerWidth()-t.oScroll.iBarWidth))):""!==t.oScroll.sXInner?t.nTable.style.width=p(t.oScroll.sXInner):e==i(f).width()&&i(f).height()<i(t.nTable).height()?(t.nTable.style.width=p(e-t.oScroll.iBarWidth),i(t.nTable).outerWidth()>e-t.oScroll.iBarWidth&&(t.nTable.style.width=p(e))):t.nTable.style.width=p(e),e=i(t.nTable).outerWidth(),n=t.nTHead.getElementsByTagName("tr"),N(function(t,e){(l=t.style).paddingTop="0",l.paddingBottom="0",l.borderTopWidth="0",l.borderBottomWidth="0",l.height=0,d=i(t).width(),e.style.width=p(d),g.pu
14sh(d)},a=a.getElementsByTagName("tr"),n),i(a).height(0),null!==t.nTFoot&&(N(function(t,e){(l=t.style).paddingTop="0",l.paddingBottom="0",l.borderTopWidth="0",l.borderBottomWidth="0",l.height=0,d=i(t).width(),e.style.width=p(d),g.push(d)},r=o.getElementsByTagName("tr"),o=t.nTFoot.getElementsByTagName("tr")),i(r).height(0)),N(function(t){t.innerHTML="",t.style.width=p(g.shift())},a),null!==t.nTFoot&&N(function(t){t.innerHTML="",t.style.width=p(g.shift())},r),i(t.nTable).outerWidth()<e?(r=f.scrollHeight>f.offsetHeight||"scroll"==i(f).css("overflow-y")?e+t.oScroll.iBarWidth:e,_&&(f.scrollHeight>f.offsetHeight||"scroll"==i(f).css("overflow-y"))&&(t.nTable.style.width=p(r-t.oScroll.iBarWidth)),f.style.width=p(r),c.parentNode.style.width=p(r),null!==t.nTFoot&&(m.parentNode.style.width=p(r)),""===t.oScroll.sX?F(t,1,"The table cannot fit into the current element which will cause column misalignment. The table has been drawn at its minimum possible width."):""!==t.oScroll.sXInner&&F(t,1,"The table cannot fit into the current element which will cause column misalignment. Increase the sScrollXInner value or remove it to allow automatic calculation")):(f.style.width=p("100%"),c.parentNode.style.width=p("100%"),null!==t.nTFoot&&(m.parentNode.style.width=p("100%"))),""===t.oScroll.sY&&_&&(f.style.height=p(t.nTable.offsetHeight+t.oScroll.iBarWidth)),""!==t.oScroll.sY&&t.oScroll.bCollapse&&(f.style.height=p(t.oScroll.sY),_=""!==t.oScroll.sX&&t.nTable.offsetWidth>f.offsetWidth?t.oScroll.iBarWidth:0,t.nTable.offsetHeight<f.offsetHeight)&&(f.style.height=p(i(t.nTable).height()+_)),_=i(t.nTable).outerWidth(),u.style.width=p(_),c.style.width=p(_),null!==t.nTFoot&&(m.style.width=p(t.nTable.offsetWidth),v.style.width=p(t.nTable.offsetWidth)),(t.bSorted||t.bFiltered)&&(f.scrollTop=0)}function N(t,e,i){for(var n=0,s=e.length;n<s;n++)for(var a=0,r=e[n].childNodes.length;a<r;a++)1==e[n].childNodes[a].nodeType&&(i?t(e[n].childNodes[a],i[n].childNodes[a]):t(e[n].childNodes[a]))}function Ka(t,e){if(!t||null===t||""===t)return 0;e||(e=k.getElementsByTagName("body")[0]);var i,n=k.createElement("div");return n.style.width=p(t),e.appendChild(n),i=n.offsetWidth,e.removeChild(n),i}function ba(t){var e,n,s=0,a=0,r=t.aoColumns.length,o=i("th",t.nTHead),l=t.nTable.getAttribute("width");for(n=0;n<r;n++)t.aoColumns[n].bVisible&&(a++,null!==t.aoColumns[n].sWidth)&&(null!==(e=Ka(t.aoColumns[n].sWidthOrig,t.nTable.parentNode))&&(t.aoColumns[n].sWidth=p(e)),s++);if(r==o.length&&0===s&&a==r&&""===t.oScroll.sX&&""===t.oScroll.sY)for(n=0;n<t.aoColumns.length;n++)null!==(e=i(o[n]).width())&&(t.aoColumns[n].sWidth=p(e));else{for(s=t.nTable.cloneNode(!1),n=t.nTHead.cloneNode(!0),a=k.createElement("tbody"),e=k.createElement("tr"),s.removeAttribute("id"),s.appendChild(n),null!==t.nTFoot&&(s.appendChild(t.nTFoot.cloneNode(!0)),N(function(t){t.style.width=""},s.getElementsByTagName("tr"))),s.appendChild(a),a.appendChild(e),0===(a=i("thead th",s)).length&&(a=i("tbody tr:eq(0)>td",s)),o=O(t,n),n=a=0;n<r;n++){var h=t.aoColumns[n];h.bVisible&&null!==h.sWidthOrig&&""!==h.sWidthOrig?o[n-a].style.width=p(h.sWidthOrig):h.bVisible?o[n-a].style.width="":a++}for(n=0;n<r;n++)t.aoColumns[n].bVisible&&(null!==(a=La(t,n))&&(a=a.cloneNode(!0),""!==t.aoColumns[n].sContentPadding&&(a.innerHTML+=t.aoColumns[n].sContentPadding),e.appendChild(a)));if((r=t.nTable.parentNode).appendChild(s),""!==t.oScroll.sX&&""!==t.oScroll.sXInner?s.style.width=p(t.oScroll.sXInner):""!==t.oScroll.sX?(s.style.width="",i(s).width()<r.offsetWidth&&(s.style.width=p(r.offsetWidth))):""!==t.oScroll.sY?s.style.width=p(r.offsetWidth):l&&(s.style.width=p(l)),s.style.visibility="hidden",Ma(t,s),0===(r=i("tbody tr:eq(0)",s).children()).length&&(r=O(t,i("thead",s)[0])),""!==t.oScroll.sX){for(n=a=e=0;n<t.aoColumns.length;n++)t.aoColumns[n].bVisible&&(e=null===t.aoColumns[n].sWidthOrig?e+i(r[a]).outerWidth():e+(parseInt(t.aoColumns[n].sWidth.replace("px",""),10)+(i(r[a]).outerWidth()-i(r[a]).width())),a++);s.style.width=p(e),t.nTable.style.width=p(e)}for(n=a=0;n<t.aoColumns.length;n++)t.aoColumns[n].bVisible&&(null!==(e=i(r[a]).width())&&0<e&&(t.aoColumns[n].sWidth=p(e)),a++);r=i(s).css("width"),t.nTable.style.width=-1!==r.indexOf("%")?r:p(i(s).outerWidth()),s.parentNode.removeChild(s)}l&&(t.nTable.style.width=p(l))}function Ma(t,e){""===t.oScroll.sX&&""!==t.oScroll.sY?(i(e).width(),e.style.width=p(i(e).outerWidth()-t.oScroll.iBarWidth)):""!==t.oScroll.sX&&(e.style.width=p(i(e).outerWidth()))}function La(t,e){var i=Na(t,e);if(i<0)return null;if(null!==t.aoData[i].nTr)return L(t,i)[e];var n=k.createElement("td");return n.innerHTML=w(t,i,e,""),n}function Na(t,e){for(var i=-1,n=-1,s=0;s<t.aoData.length;s++){var a;(a=(a=w(t,s,e,"display")+"").replace(/<.*?>/g,"")).length>i&&(i=a.length,n=s)}return n}function p(t){if(null===t)return"0px";if("number"==typeof t)return t<0?"0px":t+"px";var e=t.charCodeAt(t.length-1);return e<48||57<e?t:t+"px"}function Oa(){var t=k.createElement("p");(e=t.style).width="100%",e.height="200px",e.padding="0px";var e,i=k.createElement("div");return(e=i.style).position="absolute",e.top="0px",e.left="0px",e.visibility="hidden",e.width="200px",e.height="150px",e.padding="0px",e.overflow="hidden",i.appendChild(t),k.body.appendChild(i),e=t.offsetWidth,i.style.overflow="scroll",e==(t=t.offsetWidth)&&(t=i.clientWidth),k.body.removeChild(i),e-t}function P(e,n){var s,a,r,o,h,d,c=[],u=[],p=j.ext.oSort,f=e.aoData,g=e.aoColumns,m=e.oLanguage.oAria;if(!e.oFeatures.bServerSide&&(0!==e.aaSorting.length||null!==e.aaSortingFixed)){for(c=null!==e.aaSortingFixed?e.aaSortingFixed.concat(e.aaSorting):e.aaSorting.slice(),s=0;s<c.length;s++)if(r=t(e,a=c[s][0]),o=e.aoColumns[a].sSortDataType,j.ext.afnSortData[o])for(h=j.ext.afnSortData[o](e,a,r),r=0,o=f.length;r<o;r++)J(e,r,a,h[r]);for(s=0,a=e.aiDisplayMaster.length;s<a;s++)u[e.aiDisplayMaster[s]]=s;var v,_=c.length;for(s=0,a=f.length;s<a;s++)for(r=0;r<_;r++)for(h=0,d=(v=g[c[r][0]].aDataSort).length;h<d;h++)o=g[v[h]].sType,o=p[(o||"string")+"-pre"],f[s]._aSortData[v[h]]=o?o(w(e,s,v[h],"sort")):w(e,s,v[h],"sort");e.aiDisplayMaster.sort(function(t,e){var i,n,s,a,r;for(i=0;i<_;i++)for(n=0,s=(r=g[c[i][0]].aDataSort).length;n<s;
14n++)if(a=g[r[n]].sType,0!==(a=p[(a||"string")+"-"+c[i][1]](f[t]._aSortData[r[n]],f[e]._aSortData[r[n]])))return a;return p["numeric-asc"](u[t],u[e])})}for((n===l||n)&&!e.oFeatures.bDeferRender&&Q(e),s=0,a=e.aoColumns.length;s<a;s++)(r=g[s].nTh).removeAttribute("aria-sort"),r.removeAttribute("aria-label"),g[s].bSortable?0<c.length&&c[0][0]==s?(r.setAttribute("aria-sort","asc"==c[0][1]?"ascending":"descending"),r.setAttribute("aria-label",g[s].sTitle+("asc"==(g[s].asSorting[c[0][2]+1]?g[s].asSorting[c[0][2]+1]:g[s].asSorting[0])?m.sSortAscending:m.sSortDescending))):r.setAttribute("aria-label",g[s].sTitle+("asc"==g[s].asSorting[0]?m.sSortAscending:m.sSortDescending)):r.setAttribute("aria-label",g[s].sTitle);e.bSorted=!0,i(e.oInstance).trigger("sort",e),e.oFeatures.bFilter?M(e,e.oPreviousSearch,1):(e.aiDisplay=e.aiDisplayMaster.slice(),e._iDisplayStart=0,z(e),y(e))}function ga(a,t,r,e){Pa(t,{},function(s){if(!1!==a.aoColumns[r].bSortable){var t=function(){var t,e;if(s.shiftKey){for(var i=!1,n=0;n<a.aaSorting.length;n++)if(a.aaSorting[n][0]==r){i=!0,t=a.aaSorting[n][0],e=a.aaSorting[n][2]+1,a.aoColumns[t].asSorting[e]?(a.aaSorting[n][1]=a.aoColumns[t].asSorting[e],a.aaSorting[n][2]=e):a.aaSorting.splice(n,1);break}!1===i&&a.aaSorting.push([r,a.aoColumns[r].asSorting[0],0])}else 1==a.aaSorting.length&&a.aaSorting[0][0]==r?(t=a.aaSorting[0][0],e=a.aaSorting[0][2]+1,a.aoColumns[t].asSorting[e]||(e=0),a.aaSorting[0][1]=a.aoColumns[t].asSorting[e],a.aaSorting[0][2]=e):(a.aaSorting.splice(0,a.aaSorting.length),a.aaSorting.push([r,a.aoColumns[r].asSorting[0],0]));P(a)};a.oFeatures.bProcessing?(H(a,!0),setTimeout(function(){t(),a.oFeatures.bServerSide||H(a,!1)},0)):t(),"function"==typeof e&&e(a)}})}function Q(t){var e,n,s,a,r,o=t.aoColumns.length,l=t.oClasses;for(e=0;e<o;e++)t.aoColumns[e].bSortable&&i(t.aoColumns[e].nTh).removeClass(l.sSortAsc+" "+l.sSortDesc+" "+t.aoColumns[e].sSortingClass);for(a=null!==t.aaSortingFixed?t.aaSortingFixed.concat(t.aaSorting):t.aaSorting.slice(),e=0;e<t.aoColumns.length;e++)if(t.aoColumns[e].bSortable){for(r=t.aoColumns[e].sSortingClass,s=-1,n=0;n<a.length;n++)if(a[n][0]==e){r="asc"==a[n][1]?l.sSortAsc:l.sSortDesc,s=n;break}i(t.aoColumns[e].nTh).addClass(r),t.bJUI&&((n=i("span."+l.sSortIcon,t.aoColumns[e].nTh)).removeClass(l.sSortJUIAsc+" "+l.sSortJUIDesc+" "+l.sSortJUI+" "+l.sSortJUIAscAllowed+" "+l.sSortJUIDescAllowed),n.addClass(-1==s?t.aoColumns[e].sSortingClassJUI:"asc"==a[s][1]?l.sSortJUIAsc:l.sSortJUIDesc))}else i(t.aoColumns[e].nTh).addClass(t.aoColumns[e].sSortingClass);if(r=l.sSortColumn,t.oFeatures.bSort&&t.oFeatures.bSortClasses){if(s=L(t),t.oFeatures.bDeferRender)i(s).removeClass(r+"1 "+r+"2 "+r+"3");else if(s.length>=o)for(e=0;e<o;e++)if(-1!=s[e].className.indexOf(r+"1"))for(n=0,t=s.length/o;n<t;n++)s[o*n+e].className=i.trim(s[o*n+e].className.replace(r+"1",""));else if(-1!=s[e].className.indexOf(r+"2"))for(n=0,t=s.length/o;n<t;n++)s[o*n+e].className=i.trim(s[o*n+e].className.replace(r+"2",""));else if(-1!=s[e].className.indexOf(r+"3"))for(n=0,t=s.length/o;n<t;n++)s[o*n+e].className=i.trim(s[o*n+e].className.replace(" "+r+"3",""));var h;l=1;for(e=0;e<a.length;e++){for(h=parseInt(a[e][0],10),n=0,t=s.length/o;n<t;n++)s[o*n+h].className+=" "+r+l;l<3&&l++}}}function pa(t){if(t.oFeatures.bStateSave&&!t.bDestroying){var e,n;e=t.oScroll.bInfinite;var s={iCreate:(new Date).getTime(),iStart:e?0:t._iDisplayStart,iEnd:e?t._iDisplayLength:t._iDisplayEnd,iLength:t._iDisplayLength,aaSorting:i.extend(!0,[],t.aaSorting),oSearch:i.extend(!0,{},t.oPreviousSearch),aoSearchCols:i.extend(!0,[],t.aoPreSearchCols),abVisCols:[]};for(e=0,n=t.aoColumns.length;e<n;e++)s.abVisCols.push(t.aoColumns[e].bVisible);C(t,"aoStateSaveParams","stateSaveParams",[t,s]),t.fnStateSave.call(t.oInstance,t,s)}}function Qa(t,e){if(t.oFeatures.bStateSave){var n=t.fnStateLoad.call(t.oInstance,t);if(n){var s=C(t,"aoStateLoadParams","stateLoadParams",[t,n]);if(-1===i.inArray(!1,s)){for(t.oLoadedState=i.extend(!0,{},n),t._iDisplayStart=n.iStart,t.iInitDisplayStart=n.iStart,t._iDisplayEnd=n.iEnd,t._iDisplayLength=n.iLength,t.aaSorting=n.aaSorting.slice(),t.saved_aaSorting=n.aaSorting.slice(),i.extend(t.oPreviousSearch,n.oSearch),i.extend(!0,t.aoPreSearchCols,n.aoSearchCols),e.saved_aoColumns=[],s=0;s<n.abVisCols.length;s++)e.saved_aoColumns[s]={},e.saved_aoColumns[s].bVisible=n.abVisCols[s];C(t,"aoStateLoaded","stateLoaded",[t,n])}}}}function Ra(t){t=t+"_"+(e=aa.location.pathname.split("/"))[e.length-1].replace(/[\/:]/g,"").toLowerCase()+"=";for(var e=k.cookie.split(";"),i=0;i<e.length;i++){for(var n=e[i];" "==n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}return null}function u(t){for(var e=0;e<j.settings.length;e++)if(j.settings[e].nTable===t)return j.settings[e];return null}function S(t){for(var e=[],i=0,n=(t=t.aoData).length;i<n;i++)null!==t[i].nTr&&e.push(t[i].nTr);return e}function L(t,e){var i,n,s,a,r,o,h=[];n=0;var d=t.aoData.length;for(e!==l&&(d=(n=e)+1),s=n;s<d;s++)if(null!==(o=t.aoData[s]).nTr){for(n=[],a=0,r=o.nTr.childNodes.length;a<r;a++)("td"==(i=o.nTr.childNodes[a].nodeName.toLowerCase())||"th"==i)&&n.push(o.nTr.childNodes[a]);for(a=i=0,r=t.aoColumns.length;a<r;a++)t.aoColumns[a].bVisible?h.push(n[a-i]):(h.push(o._anHidden[a]),i++)}return h}function F(t,e,i){if(t=null===t?"DataTables warning: "+i:"DataTables warning (table id = '"+t.sTableId+"'): "+i,0===e){if("alert"!=j.ext.sErrMode)throw t;alert(t)}else console!==l&&console.log&&console.log(t)}function n(t,e,i,n){n===l&&(n=i),e[i]!==l&&(t[n]=e[i])}function Sa(t,n){for(var s in t)t.hasOwnProperty(s)&&n[s]!==l&&("object"==typeof e[s]&&!1===i.isArray(n[s])?i.extend(!0,t[s],n[s]):t[s]=n[s]);return t}function Pa(e,t,n){i(e).bind("click.DT",t,function(t){n(t),e.blur()}).bind("keypress.DT",t,function(t){13===t.which&&n(t)}).bind("selectstart.DT",function(){return!1})}function A(t,e,i,n){i&&t[e].push({fn:i,sName:n})}function C(t,e,n,s){for(var a=[],r=(e=t[e]).length-1;0<=r;r--)a.push(e[r].fn.apply(t.oInstance,s));return null!==n&&i(t.oInstance).trigger(n,s),a}function Ta(e){return function(){var t=[u(this[j.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return j.ext.oApi[e].apply(this,t)}}var Ua=aa.JSON?JSON.stringify:function(t){var e=typeof t;if("object"!==e||null===t)return"string"===e&&(t='"'+t+'"'),t+"";var n,s,a=[],r=i.isArray(t);for(n in t)"string"===(e=typeof(s=t[n]))?s='"'+s+'"':"object"===e&&null!==s&&(s=Ua(s)),a.push((r?"":'"'+n+'":')+s);return(r?"[":"{")+a+(r?"]":"}")};for(var qa in this.$=function(t,e){var n,s,a=[],r=u(this[j.ext.iApiIndex]);if(e||(e={}),"current"==(e=i.extend({},{filter:"none",order:"current",page:"all"},e)).page)for(n=r._iDisplayStart,s=r.fnDisplayEnd();n<s;n++)a.push(r.aoData[r.aiDisplay[n]].nTr);else if("current"==e.order&&"none"==e.filter)for(n=0,s=r.aiDisplayMaster.length;n<s;n++)a.push(r.aoData[r.aiDisplayMaster[n]].nTr);else if("current"==e.order&&"applied"==e.filter)for(n=0,s=r.aiDisplay.length;n<s;n++)a.push(r.aoData[r.aiDisplay[n]].nTr);else if("original"==e.order&&"none"==e.filter)for(n=0,s=r.aoData.length;n<s;n++)a.push(r.aoData[n].nTr);else if("original"==e.order&&"applied"==e.filter)for(n=0,s=r.aoData.length;n<s;n++)-1!==i.inArray(n,r.aiDisplay)&&a.push(r.aoData[n].nTr);else F(r,1,"Unknown selection options");return n=(s=i(a)).filter(t),s=s.find(t),i([].concat(i.makeArray(n),i.makeArray(s))
14)},this._=function(t,e){var i,n,s=[],a=this.$(t,e);for(i=0,n=a.length;i<n;i++)s.push(this.fnGetData(a[i]));return s},this.fnAddData=function(t,e){if(0===t.length)return[];var i,n=[],s=u(this[j.ext.iApiIndex]);if("object"==typeof t[0]&&null!==t[0])for(var a=0;a<t.length;a++){if(-1==(i=G(s,t[a])))return n;n.push(i)}else{if(-1==(i=G(s,t)))return n;n.push(i)}return s.aiDisplay=s.aiDisplayMaster.slice(),(e===l||e)&&Z(s),n},this.fnAdjustColumnSizing=function(t){var e=u(this[j.ext.iApiIndex]);r(e),t===l||t?this.fnDraw(!1):(""!==e.oScroll.sX||""!==e.oScroll.sY)&&this.oApi._fnScrollDraw(e)},this.fnClearTable=function(t){var e=u(this[j.ext.iApiIndex]);ea(e),(t===l||t)&&y(e)},this.fnClose=function(t){for(var e=u(this[j.ext.iApiIndex]),i=0;i<e.aoOpenRows.length;i++)if(e.aoOpenRows[i].nParent==t)return(t=e.aoOpenRows[i].nTr.parentNode)&&t.removeChild(e.aoOpenRows[i].nTr),e.aoOpenRows.splice(i,1),0;return 1},this.fnDeleteRow=function(t,e,n){var s,a,r=u(this[j.ext.iApiIndex]),o=(t="object"==typeof t?K(r,t):t,r.aoData.splice(t,1));for(s=0,a=r.aoData.length;s<a;s++)null!==r.aoData[s].nTr&&(r.aoData[s].nTr._DT_RowIndex=s);return s=i.inArray(t,r.aiDisplay),r.asDataSearch.splice(s,1),fa(r.aiDisplayMaster,t),fa(r.aiDisplay,t),"function"==typeof e&&e.call(this,r,o),r._iDisplayStart>=r.aiDisplay.length&&(r._iDisplayStart-=r._iDisplayLength,r._iDisplayStart<0)&&(r._iDisplayStart=0),(n===l||n)&&(z(r),y(r)),o},this.fnDestroy=function(t){var e,n,s=u(this[j.ext.iApiIndex]),a=s.nTableWrapper.parentNode,r=s.nTBody;t=t!==l;for(s.bDestroying=!0,e=0,n=s.aoDestroyCallback.length;e<n;e++)s.aoDestroyCallback[e].fn();for(e=0,n=s.aoColumns.length;e<n;e++)!1===s.aoColumns[e].bVisible&&this.fnSetColumnVis(e,!0);for(i(s.nTableWrapper).find("*").andSelf().unbind(".DT"),i("tbody>tr>td."+s.oClasses.sRowEmpty,s.nTable).parent().remove(),s.nTable!=s.nTHead.parentNode&&(i(s.nTable).children("thead").remove(),s.nTable.appendChild(s.nTHead)),s.nTFoot&&s.nTable!=s.nTFoot.parentNode&&(i(s.nTable).children("tfoot").remove(),s.nTable.appendChild(s.nTFoot)),s.nTable.parentNode.removeChild(s.nTable),i(s.nTableWrapper).remove(),s.aaSorting=[],s.aaSortingFixed=[],Q(s),i(S(s)).removeClass(s.asStripeClasses.join(" ")),i("th, td",s.nTHead).removeClass([s.oClasses.sSortable,s.oClasses.sSortableAsc,s.oClasses.sSortableDesc,s.oClasses.sSortableNone].join(" ")),s.bJUI&&(i("th span."+s.oClasses.sSortIcon+", td span."+s.oClasses.sSortIcon,s.nTHead).remove(),i("th, td",s.nTHead).each(function(){var t=i("div."+s.oClasses.sSortJUIWrapper,this),e=t.contents();i(this).append(e),t.remove()})),!t&&s.nTableReinsertBefore?a.insertBefore(s.nTable,s.nTableReinsertBefore):t||a.appendChild(s.nTable),e=0,n=s.aoData.length;e<n;e++)null!==s.aoData[e].nTr&&r.appendChild(s.aoData[e].nTr);for(!0===s.oFeatures.bAutoWidth&&(s.nTable.style.width=p(s.sDestroyWidth)),i(r).children("tr:even").addClass(s.asDestroyStripes[0]),i(r).children("tr:odd").addClass(s.asDestroyStripes[1]),e=0,n=j.settings.length;e<n;e++)j.settings[e]==s&&j.settings.splice(e,1);s=null},this.fnDraw=function(t){var e=u(this[j.ext.iApiIndex]);t?(z(e),y(e)):Z(e)},this.fnFilter=function(t,e,n,s,a,r){var o=u(this[j.ext.iApiIndex]);if(o.oFeatures.bFilter)if(n!==l&&null!==n||(n=!1),s!==l&&null!==s||(s=!0),a!==l&&null!==a||(a=!0),r!==l&&null!==r||(r=!0),e===l||null===e){if(M(o,{sSearch:t+"",bRegex:n,bSmart:s,bCaseInsensitive:r},1),a&&o.aanFeatures.f)for(n=0,s=(e=o.aanFeatures.f).length;n<s;n++)i("input",e[n]).val(t)}else i.extend(o.aoPreSearchCols[e],{sSearch:t+"",bRegex:n,bSmart:s,bCaseInsensitive:r}),M(o,o.oPreviousSearch,1)},this.fnGetData=function(t,e){var i=u(this[j.ext.iApiIndex]);if(t===l)return X(i);var n=t;if("object"==typeof t){var s=t.nodeName.toLowerCase();"tr"===s?n=K(i,t):"td"===s&&(e=da(i,n=K(i,t.parentNode),t))}return e!==l?w(i,n,e,""):i.aoData[n]!==l?i.aoData[n]._aData:null},this.fnGetNodes=function(t){var e=u(this[j.ext.iApiIndex]);return t!==l?e.aoData[t]!==l?e.aoData[t].nTr:null:S(e)},this.fnGetPosition=function(e){var i=u(this[j.ext.iApiIndex]),n=e.nodeName.toUpperCase();return"TR"==n?K(i,e):"TD"==n||"TH"==n?[n=K(i,e.parentNode),t(i,e=da(i,n,e)),e]:null},this.fnIsOpen=function(t){for(var e=u(this[j.ext.iApiIndex]),i=0;i<e.aoOpenRows.length;i++)if(e.aoOpenRows[i].nParent==t)return!0;return!1},this.fnOpen=function(t,e,n){var s=u(this[j.ext.iApiIndex]),a=S(s);if(-1!==i.inArray(t,a)){this.fnClose(t);a=k.createElement("tr");var r=k.createElement("td");return a.appendChild(r),r.className=n,r.colSpan=v(s),"string"==typeof e?r.innerHTML=e:i(r).html(e),e=i("tr",s.nTBody),-1!=i.inArray(t,e)&&i(a).insertAfter(t),s.aoOpenRows.push({nTr:a,nParent:t}),a}},this.fnPageChange=function(t,e){var i=u(this[j.ext.iApiIndex]);oa(i,t),z(i),(e===l||e)&&y(i)}
14,this.fnSetColumnVis=function(t,e,i){var n,s,a,o,h=u(this[j.ext.iApiIndex]),d=h.aoColumns,c=h.aoData;if(d[t].bVisible!=e){if(e){for(n=s=0;n<t;n++)d[n].bVisible&&s++;if(!(o=s>=v(h)))for(n=t;n<d.length;n++)if(d[n].bVisible){a=n;break}for(n=0,s=c.length;n<s;n++)null!==c[n].nTr&&(o?c[n].nTr.appendChild(c[n]._anHidden[t]):c[n].nTr.insertBefore(c[n]._anHidden[t],L(h,n)[a]))}else for(n=0,s=c.length;n<s;n++)null!==c[n].nTr&&(a=L(h,n)[t],(c[n]._anHidden[t]=a).parentNode.removeChild(a));for(d[t].bVisible=e,U(h,h.aoHeader),h.nTFoot&&U(h,h.aoFooter),n=0,s=h.aoOpenRows.length;n<s;n++)h.aoOpenRows[n].nTr.colSpan=v(h);(i===l||i)&&(r(h),y(h)),pa(h)}},this.fnSettings=function(){return u(this[j.ext.iApiIndex])},this.fnSort=function(t){var e=u(this[j.ext.iApiIndex]);e.aaSorting=t,P(e)},this.fnSortListener=function(t,e,i){ga(u(this[j.ext.iApiIndex]),t,e,i)},this.fnUpdate=function(t,e,n,s,a){var o=u(this[j.ext.iApiIndex]);e="object"==typeof e?K(o,e):e;if(o.__fnUpdateDeep===l&&i.isArray(t)&&"object"==typeof t){for(o.aoData[e]._aData=t.slice(),o.__fnUpdateDeep=!0,n=0;n<o.aoColumns.length;n++)this.fnUpdate(w(o,e,n),e,n,!1,!1);o.__fnUpdateDeep=l}else if(o.__fnUpdateDeep===l&&null!==t&&"object"==typeof t){for(o.aoData[e]._aData=i.extend(!0,{},t),o.__fnUpdateDeep=!0,n=0;n<o.aoColumns.length;n++)this.fnUpdate(w(o,e,n),e,n,!1,!1);o.__fnUpdateDeep=l}else{J(o,e,n,t);t=w(o,e,n,"display");var h=o.aoColumns[n];null!==h.fnRender&&(t=R(o,e,n),h.bUseRendered&&J(o,e,n,t)),null!==o.aoData[e].nTr&&(L(o,e)[n].innerHTML=t)}return n=i.inArray(e,o.aiDisplay),o.asDataSearch[n]=la(o,W(o,e,"filter")),(a===l||a)&&r(o),(s===l||s)&&Z(o),0},this.fnVersionCheck=j.ext.fnVersionCheck,this.oApi={_fnExternApiFunc:Ta,_fnInitialise:$,_fnInitComplete:Y,_fnLanguageCompat:na,_fnAddColumn:o,_fnColumnOptions:E,_fnAddData:G,_fnCreateTr:ca,_fnGatherData:ta,_fnBuildHead:ua,_fnDrawHead:U,_fnDraw:y,_fnReDraw:Z,_fnAjaxUpdate:va,_fnAjaxParameters:Da,_fnAjaxUpdateDraw:Ea,_fnServerParams:ha,_fnAddOptionsHtml:wa,_fnFeatureHtmlTable:Aa,_fnScrollDraw:Ja,_fnAdjustColumnSizing:r,_fnFeatureHtmlFilter:ya,_fnFilterComplete:M,_fnFilterCustom:Ha,_fnFilterColumn:Ga,_fnFilter:Fa,_fnBuildSearchArray:ia,_fnBuildSearchRow:la,_fnFilterCreateSearch:ja,_fnDataToSearch:ka,_fnSort:P,_fnSortAttachListener:ga,_fnSortingClasses:Q,_fnFeatureHtmlPaginate:Ca,_fnPageChange:oa,_fnFeatureHtmlInfo:Ba,_fnUpdateInfo:Ia,_fnFeatureHtmlLength:xa,_fnFeatureHtmlProcessing:za,_fnProcessingDisplay:H,_fnVisibleToColumnIndex:s,_fnColumnIndexToVisible:t,_fnNodeToDataIndex:K,_fnVisbleColumns:v,_fnCalculateEnd:z,_fnConvertToWidth:Ka,_fnCalculateColumnWidths:ba,_fnScrollingWidthAdjust:Ma,_fnGetWidestNode:La,_fnGetMaxLenString:Na,_fnStringToCss:p,_fnDetectType:B,_fnSettingsFromNode:u,_fnGetDataMaster:X,_fnGetTrNodes:S,_fnGetTdNodes:L,_fnEscapeRegex:ma,_fnDeleteIndex:fa,_fnReOrderIndex:D,_fnColumnOrdering:x,_fnLog:F,_fnClearTable:ea,_fnSaveState:pa,_fnLoadState:Qa,_fnCreateCookie
14:function(a,b,c,d,e){var h=new Date;h.setTime(h.getTime()+1e3*c);var c=aa.location.pathname.split("/"),a=a+"_"+c.pop().replace(/[\/:]/g,"").toLowerCase(),g;if(null!==e?(g="function"==typeof i.parseJSON?i.parseJSON(b):eval("("+b+")"),b=e(a,g,h.toGMTString(),c.join("/")+"/")):b=a+"="+encodeURIComponent(b)+"; expires="+h.toGMTString()+"; path="+c.join("/")+"/",e="",h=9999999999999,4096<(null!==Ra(a)?k.cookie.length:b.length+k.cookie.length)+10){for(var a=k.cookie.split(";"),j=0,o=a.length;j<o;j++)if(-1!=a[j].indexOf(d)){var m=a[j].split("=");try{g=eval("("+decodeURIComponent(m[1])+")")}catch(l){continue}g.iCreate&&g.iCreate<h&&(e=m[0],h=g.iCreate)}""!==e&&(k.cookie=e+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+c.join("/")+"/")}k.cookie=b},_fnReadCookie:Ra,_fnDetectHeader:T,_fnGetUniqueThs:O,_fnScrollBarWidth:Oa,_fnApplyToChildren:N,_fnMap:n,_fnGetRowData:W,_fnGetCellData:w,_fnSetCellData:J,_fnGetObjectDataFn:V,_fnSetObjectDataFn:sa,_fnApplyColumnDefs:I,_fnBindAction:Pa,_fnExtend:Sa,_fnCallbackReg:A,_fnCallbackFire:C,_fnJsonString:Ua,_fnRender:R,_fnNodeToColumnIndex:da},i.extend(j.ext.oApi,this.oApi),j.ext.oApi)qa&&(this[qa]=Ta(qa));var ra=this;return this.each(function(){var t,s,a,r=0;s=this.getAttribute("id");var h=!1,d=!1;if("table"!=this.nodeName.toLowerCase())F(null,0,"Attempted to initialise DataTables on a node which is not a table: "+this.nodeName);else{for(r=0,t=j.settings.length;r<t;r++){if(j.settings[r].nTable==this){if(e===l||e.bRetrieve)return j.settings[r].oInstance;if(e.bDestroy){j.settings[r].oInstance.fnDestroy();break}return void F(j.settings[r],0,"Cannot reinitialise DataTable.\n\nTo retrieve the DataTables object for this table, pass no arguments or see the docs for bRetrieve and bDestroy")}if(j.settings[r].sTableId==this.id){j.settings.splice(r,1);break}}null===s&&(this.id=s="DataTables_Table_"+j.ext._oExternConfig.iNextUnique++);var c=i.extend(!0,{},j.models.oSettings,{nTable:this,oApi:ra.oApi,oInit:e,sDestroyWidth:i(this).width(),sInstance:s,sTableId:s});for(j.settings.push(c),c.oInstance=1===ra.length?ra:i(this).dataTable(),e||(e={}),e.oLanguage&&na(e.oLanguage),e=Sa(i.extend(!0,{},j.defaults),e),n(c.oFeatures,e,"bPaginate"),n(c.oFeatures,e,"bLengthChange"),n(c.oFeatures,e,"bFilter"),n(c.oFeatures,e,"bSort"),n(c.oFeatures,e,"bInfo"),n(c.oFeatures,e,"bProcessing"),n(c.oFeatures,e,"bAutoWidth"),n(c.oFeatures,e,"bSortClasses"),n(c.oFeatures,e,"bServerSide"),n(c.oFeatures,e,"bDeferRender"),n(c.oScroll,e,"sScrollX","sX"),n(c.oScroll,e,"sScrollXInner","sXInner"),n(c.oScroll,e,"sScrollY","sY"),n(c.oScroll,e,"bScrollC
14ollapse","bCollapse"),n(c.oScroll,e,"bScrollInfinite","bInfinite"),n(c.oScroll,e,"iScrollLoadGap","iLoadGap"),n(c.oScroll,e,"bScrollAutoCss","bAutoCss"),n(c,e,"asStripClasses","asStripeClasses"),n(c,e,"asStripeClasses"),n(c,e,"fnServerData"),n(c,e,"fnFormatNumber"),n(c,e,"sServerMethod"),n(c,e,"aaSorting"),n(c,e,"aaSortingFixed"),n(c,e,"aLengthMenu"),n(c,e,"sPaginationType"),n(c,e,"sAjaxSource"),n(c,e,"sAjaxDataProp"),n(c,e,"iCookieDuration"),n(c,e,"sCookiePrefix"),n(c,e,"sDom"),n(c,e,"bSortCellsTop"),n(c,e,"iTabIndex"),n(c,e,"oSearch","oPreviousSearch"),n(c,e,"aoSearchCols","aoPreSearchCols"),n(c,e,"iDisplayLength","_iDisplayLength"),n(c,e,"bJQueryUI","bJUI"),n(c,e,"fnCookieCallback"),n(c,e,"fnStateLoad"),n(c,e,"fnStateSave"),n(c.oLanguage,e,"fnInfoCallback"),A(c,"aoDrawCallback",e.fnDrawCallback,"user"),A(c,"aoServerParams",e.fnServerParams,"user"),A(c,"aoStateSaveParams",e.fnStateSaveParams,"user"),A(c,"aoStateLoadParams",e.fnStateLoadParams,"user"),A(c,"aoStateLoaded",e.fnStateLoaded,"user"),A(c,"aoRowCallback",e.fnRowCallback,"user"),A(c,"aoRowCreatedCallback",e.fnCreatedRow,"user"),A(c,"aoHeaderCallback",e.fnHeaderCallback,"user"),A(c,"aoFooterCallback",e.fnFooterCallback,"user"),A(c,"aoInitComplete",e.fnInitComplete,"user"),A(c,"aoPreDrawCallback",e.fnPreDrawCallback,"user"),c.oFeatures.bServerSide&&c.oFeatures.bSort&&c.oFeatures.bSortClasses?A(c,"aoDrawCallback",Q,"server_side_sort_classes"):c.oFeatures.bDeferRender&&A(c,"aoDrawCallback",Q,"defer_sort_classes"),e.bJQueryUI?(i.extend(c.oClasses,j.ext.oJUIClasses),e.sDom===j.defaults.sDom&&"lfrtip"===j.defaults.sDom&&(c.sDom='<"H"lfr>t<"F"ip>')):i.extend(c.oClasses,j.ext.oStdClasses),i(this).addClass(c.oClasses.sTable),""===c.oScroll.sX&&""===c.oScroll.sY||(c.oScroll.iBarWidth=Oa()),c.iInitDisplayStart===l&&(c.iInitDisplayStart=e.iDisplayStart,c._iDisplayStart=e.iDisplayStart),e.bStateSave&&(c.oFeatures.bStateSave=!0,Qa(c,e),A(c,"aoDrawCallback",pa,"state_save")),null!==e.iDeferLoading&&(c.bDeferLoading=!0,c._iRecordsTotal=e.iDeferLoading,c._iRecordsDisplay=e.iDeferLoading),null!==e.aaData&&(d=!0),""!==e.oLanguage.sUrl?(c.oLanguage.sUrl=e.oLanguage.sUrl,i.getJSON(c.oLanguage.sUrl,null,function(t){n
14a(t),i.extend(!0,c.oLanguage,e.oLanguage,t),$(c)}),h=!0):i.extend(!0,c.oLanguage,e.oLanguage),s=!1,a=i(this).children("tbody").children("tr"),r=0,t=c.asStripeClasses.length;r<t;r++)if(a.filter(":lt(2)").hasClass(c.asStripeClasses[r])){s=!0;break}if(s&&(c.asDestroyStripes=["",""],i(a[0]).hasClass(c.oClasses.sStripeOdd)&&(c.asDestroyStripes[0]+=c.oClasses.sStripeOdd+" "),i(a[0]).hasClass(c.oClasses.sStripeEven)&&(c.asDestroyStripes[0]+=c.oClasses.sStripeEven),i(a[1]).hasClass(c.oClasses.sStripeOdd)&&(c.asDestroyStripes[1]+=c.oClasses.sStripeOdd+" "),i(a[1]).hasClass(c.oClasses.sStripeEven)&&(c.asDestroyStripes[1]+=c.oClasses.sStripeEven),a.removeClass(c.asStripeClasses.join(" "))),s=[],0!==(r=this.getElementsByTagName("thead")).length&&(T(c.aoHeader,r[0]),s=O(c)),null===e.aoColumns)for(a=[],r=0,t=s.length;r<t;r++)a.push(null);else a=e.aoColumns;for(r=0,t=a.length;r<t;r++)e.saved_aoColumns!==l&&e.saved_aoColumns.length==t&&(null===a[r]&&(a[r]={}),a[r].bVisible=e.saved_aoColumns[r].bVisible),o(c,s?s[r]:null);for(I(c,e.aoColumnDefs,a,function(t,e){E(c,t,e)}),r=0,
15t=c.aaSorting.length;r<t;r++){c.aaSorting[r][0]>=c.aoColumns.length&&(c.aaSorting[r][0]=0);var u=c.aoColumns[c.aaSorting[r][0]];for(c.aaSorting[r][2]===l&&(c.aaSorting[r][2]=0),e.aaSorting===l&&c.saved_aaSorting===l&&(c.aaSorting[r][1]=u.asSorting[0]),s=0,a=u.asSorting.length;s<a;s++)if(c.aaSorting[r][1]==u.asSorting[s]){c.aaSorting[r][2]=s;break}}if(Q(c),0===(r=i(this).children("thead")).length&&(r=[k.createElement("thead")],this.appendChild(r[0])),c.nTHead=r[0],0===(r=i(this).children("tbody")).length&&(r=[k.createElement("tbody")],this.appendChild(r[0])),c.nTBody=r[0],c.nTBody.setAttribute("role","alert"),c.nTBody.setAttribute("aria-live","polite"),c.nTBody.setAttribute("aria-relevant","all"),0<(r=i(this).children("tfoot")).length&&(c.nTFoot=r[0],T(c.aoFooter,c.nTFoot)),d)for(r=0;r<e.aaData.length;r++)G(c,e.aaData[r]);else ta(c);c.aiDisplay=c.aiDisplayMaster.slice(),!(c.bInitialised=!0)===h&&$(c)}})};j.version="1.9.0",j.settings=[],j.models={},j.models.ext={afnFiltering:[],afnSortData:[],aoFeatures:[],aTypes:[],fnVersionCheck:function(t){for(var e=function(t,e){for(;t.length<e;)t+="0";return t},i=j.ext.sVersion.split("."),n="",s="",a=0,r=(t=t.split(".")).length;a<r;a++)n+=e(i[a],3),s+=e(t[a],3);return parseInt(n,10)>=parseInt(s,10)},iApiIndex:0,ofnSearch:{},oApi:{},oStdClasses:{},oJUIClasses:{},oPagination:{},oSort:{},sVersion:j.version,sErrMode:"alert",_oExternConfig:{iNextUnique:0}},j.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},j.models.oRow={nTr:null,_aData:[],_aSortData:[],_anHidden:[],_sRowStripe:""},j.models.oColumn={aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bUseRendered:null,bVisible:null,_bAutoType:!0,fnCreatedCell:null,fnGetData:null,fnRender:null,fnSetData:null,mDataProp:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},j.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:["odd","even"],bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollAutoCss:!0,bScrollCollapse:!1,bScrollInfinite:!1,bServerSide:!1,bSort:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCookieCallback:null,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){if(t<1e3)return t;t=(i=t+"").split("");for(var e="",i=i.length,n=0;n<i;n++)0==n%3&&0!==n&&(e=this.oLanguage.sInfoThousands+e),e=t[i-n-1]+e;return e},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:function(t,e,n,s){s.jqXHR=i.ajax({url:t,data:e,success:function(t){i(s.oInstance).trigger("xhr",s),n(t)},dataType:"json",cache:!1,type:s.sServerMethod,error:function(t,e){"parsererror"==e&&alert("DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.")}})},fnServerParams:null,fnStateLoad:function(e){var e=this.oApi._fnReadCookie(e.sCookiePrefix+e.sInstance),j;try{j="function"==typeof i.parseJSON?i.parseJSON(e):eval("("+e+")")}catch(l){j=null}return j}
15,fnStateLoadParams:null,fnStateLoaded:null,fnStateSave:function(t,e){this.oApi._fnCreateCookie(t.sCookiePrefix+t.sInstance,this.oApi._fnJsonString(e),t.iCookieDuration,t.sCookiePrefix,t.fnCookieCallback)},fnStateSaveParams:null,iCookieDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iScrollLoadGap:100,iTabIndex:0,oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sInfoThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sUrl:"",sZeroRecords:"No matching records found"},oSearch:i.extend({},j.models.oSearch),sAjaxDataProp:"aaData",sAjaxSource:null,sCookiePrefix:"SpryMedia_DataTables_",sDom:"lfrtip",sPaginationType:"two_button",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET"},j.defaults.columns={aDataSort:null,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bUseRendered:!0,bVisible:!0,fnCreatedCell:null,fnRender:null,iDataSort:-1,mDataProp:null,sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},j.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortClasses:null,bStateSave:null},oScroll:{bAutoCss:null,bCollapse:null,bInfinite:null,iBarWidth:0,iLoadGap:null,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],asDataSearch:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:null,asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,sPaginationType:"two_button",iCookieDuration:0,sCookiePrefix:"",fnCookieCallback:null,aoStateSave:[],aoStateLoad:[],oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iDisplayEnd:10,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return this.oFeatures.bServerSide?parseInt(this._iRecordsTotal,10):this.aiDisplayMaster.length},fnRecordsDisplay:function(){return this.oFeatures.bServerSide?parseInt(this._iRecordsDisplay,10):this.aiDisplay.length},fnDisplayEnd:function(){return this.oFeatures.bServerSide?!1===this.oFeatures.bPaginate||-1==this._iDisplayLength?this._iDisplayStart+this.aiDisplay.length:Math.min(this._iDisplayStart+this._iDisplayLength,this._iRecordsDisplay):this._iDisplayEnd},oInstance:null,sInstance:null,iTabIndex:0},j.ext=i.extend(!0,{},j.models.ext),i.extend(j.ext.oStdClasses,{sTable:"dataTable",sPagePrevEnabled:"paginate_enabled_previous",sPagePrevDisabled:"paginate_disabled_previous",sPageNextEnabled:"paginate_enabled_next",sPageNextDisabled:"paginate_disabled_next",sPageJUINext:"",sPageJUIPrev:"",sPageButton:"paginate_button",sPageButtonActive:"paginate_active",sPageButtonStaticDisabled:"paginate_button paginate_button_disabled",sPageFirst:"first",sPagePrevious:"previous",sPageNext:"next",sPageLast:"last",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sFooterTH:""}),i.extend(j.ext.oJUIClasses,j.ext.oStdClasses,{sPagePrevEnabled:"fg-button ui-button ui-state-default ui-corner-left",sPagePrevDisabled:"fg-button ui-button ui-state-default ui-corner-left ui-state-disabled",sPageNextEnabled:"fg-button ui-button ui-state-default ui-corner-right",sPageNextDisabled:"fg-button ui-button ui-state-default ui-corner-right ui-state-disabled",sPageJUINext:"ui-icon ui-icon-circle-arrow-e",sPageJUIPrev:"ui-icon ui-icon-circle-arrow-w",sPageButton:"fg-button ui-button ui-state-default",sPageButtonActive:"fg-button ui-button ui-state-default ui-state-disabled",sPageButtonStaticDisabled:"fg-button ui-button ui-state-default ui-state-disabled",sPageFirst:"first ui-corner-tl ui-corner-bl",sPageLast:"last ui-corner-tr ui-corner-br",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:"ui-state-default",sSortDesc:"ui-state-default",sSortable:"ui-state-default",sSortableAsc:"ui-state-default",sSortableDesc:"ui-state-default",sSortableNone:"ui-state-default",sSortJUIAsc:"css_right ui-icon ui-icon-triangle-1-n",sSortJUIDesc:"css_right ui-icon ui-icon-triangle-1-s",sSortJUI:"css_right ui-icon ui-icon-carat-2-n-s",sSortJUIAscAllowed:"css_right ui-icon ui-icon-carat-1-n",sSortJUIDescAllowed:"css_right ui-icon ui-icon-carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead ui-state-default",sScrollFoot:"dataTables_scrollFoot ui-state-default",sFooterTH:"ui-state-default"}),i.extend(j.ext.oPagination,{two_button:{fnInit:function(e,t,n){var s=e.oLanguage.oPaginate,a=function(t){e.oApi._fnPageChange(e,t.data.action)&&n(e)};
15s=e.bJUI?'<a class="'+e.oClasses.sPagePrevDisabled+'" tabindex="'+e.iTabIndex+'" role="button"><span class="'+e.oClasses.sPageJUIPrev+'"></span></a><a class="'+e.oClasses.sPageNextDisabled+'" tabindex="'+e.iTabIndex+'" role="button"><span class="'+e.oClasses.sPageJUINext+'"></span></a>':'<a class="'+e.oClasses.sPagePrevDisabled+'" tabindex="'+e.iTabIndex+'" role="button">'+s.sPrevious+'</a><a class="'+e.oClasses.sPageNextDisabled+'" tabindex="'+e.iTabIndex+'" role="button">'+s.sNext+"</a>";i(t).append(s);s=(r=i("a",t))[0];var r=r[1];e.oApi._fnBindAction(s,{action:"previous"},a),e.oApi._fnBindAction(r,{action:"next"},a),e.aanFeatures.p||(t.id=e.sTableId+"_paginate",s.id=e.sTableId+"_previous",r.id=e.sTableId+"_next",s.setAttribute("aria-controls",e.sTableId),r.setAttribute("aria-controls",e.sTableId))},fnUpdate:function(t){if(t.aanFeatures.p)for(var e=t.oClasses,i=t.aanFeatures.p,n=0,s=i.length;n<s;n++)0!==i[n].childNodes.length&&(i[n].childNodes[0].className=0===t._iDisplayStart?e.sPagePrevDisabled:e.sPagePrevEnabled,i[n].childNodes[1].className=t.fnDisplayEnd()==t.fnRecordsDisplay()?e.sPageNextDisabled:e.sPageNextEnabled)}},iFullNumbersShowPages:5,full_numbers:{fnInit:function(e,t,n){var s=e.oLanguage.oPaginate,a=e.oClasses,r=function(t){e.oApi._fnPageChange(e,t.data.action)&&n(e)};i(t).append('<a  tabindex="'+e.iTabIndex+'" class="'+a.sPageButton+" "+a.sPageFirst+'">'+s.sFirst+'</a><a  tabindex="'+e.iTabIndex+'" class="'+a.sPageButton+" "+a.sPagePrevious+'">'+s.sPrevious+'</a><span></span><a tabindex="'+e.iTabIndex+'" class="'+a.sPageButton+" "+a.sPageNext+'">'+s.sNext+'</a><a tabindex="'+e.iTabIndex+'" class="'+a.sPageButton+" "+a.sPageLast+'">'+s.sLast+"</a>");s=(l=i("a",t))[0],a=l[1];var o=l[2],l=l[3];e.oApi._fnBindAction(s,{action:"first"},r),e.oApi._fnBindAction(a,{action:"previous"},r),e.oApi._fnBindAction(o,{action:"next"},r),e.oApi._fnBindAction(l,{action:"last"},r),e.aanFeatures.p||(t.id=e.sTableId+"_paginate",s.id=e.sTableId+"_first",a.id=e.sTableId+"_previous",o.id=e.sTableId+"_next",l.id=e.sTableId+"_last")},fnUpdate:function(e,n){if(e.aanFeatures.p){var s,t,a=j.ext.oPagination.iFullNumbersShowPages,r=Math.floor(a/2),o=Math.ceil(e.fnRecordsDisplay()/e._iDisplayLength),l=Math.ceil(e._iDisplayStart/e._iDisplayLength)+1,h="",d=e.oClasses,c=e.aanFeatures.p,u=function(t){e.oApi._fnBindAction(this,{page:t+s-1},function(t){e.oApi._fnPageChange(e,t.data.page),n(e),t.preventDefault()})};for(o<a?(s=1,r=o):l<=r?(s=1,r=a):o-r<=l?(s=o-a+1,r=o):r=(s=l-Math.ceil(a/2)+1)+a-1,a=s;a<=r;a++)h+=l!==a?'<a tabindex="'+e.iTabIndex+'" class="'+d.sPageButton+'">'+e.fnFormatNumber(a)+"</a>":'<a tabindex="'+e.iTabIndex+'" class="'+d.sPageButtonActive+'">'+e.fnFormatNumber(a)+"</a>";for(a=0,r=c.length;a<r;a++)0!==c[a].childNodes.length&&(i("span:eq(0)",c[a]).html(h).children("a").each(u),t=[(t=c[a].getElementsByTagName("a"))[0],t[1],t[t.length-2],t[t.length-1]],i(t).removeClass(d.sPageButton+" "+d.sPageButtonActive+" "+d.sPageButtonStaticDisabled),i([t[0],t[1]]).addClass(1==l?d.sPageButtonStaticDisabled:d.sPageButton),i([t[2],t[3]]).addClass(0===o||l===o||-1===e._iDisplayLength?d.sPageButtonStaticDisabled:d.sPageButton))}}}}),i.extend(j.ext.oSort,{"string-pre":function(t){return"string"!=typeof t&&(t=""),t.toLowerCase()},"string-asc":function(t,e){return t<e?-1:e<t?1:0},"string-desc":function(t,e){return t<e?1:e<t?-1:0},"html-pre":function(t){return t.replace(/<.*?>/g,"").toLowerCase()},"html-asc":function(t,e){return t<e?-1:e<t?1:0},"html-desc":function(t,e){return t<e?1:e<t?-1:0},"date-pre":function(t){return t=Date.parse(t),(isNaN(t)||""===t)&&(t=Date.parse("01/01/1970 00:00:00")),t},"date-asc":function(t,e){return t-e},"date-desc":function(t,e){return e-t},"numeric-pre":function(t){return"-"==t||""===t?0:1*t},"numeric-asc":function(t,e){return t-e},"numeric-desc":function(t,e){return e-t}}),i.extend(j.ext.aTypes,[function(t){if("number"==typeof t)return"numeric";if("string"!=typeof t)return null;var e,i=!1;if(e=t.charAt(0),-1=="0123456789-".indexOf(e))return null;for(var n=1;n<t.length;n++){if(e=t.charAt(n),-1=="0123456789.".indexOf(e))return null;if("."==e){if(i)return null;i=!0}}return"numeric"},function(t){var e=Date.parse(t);return null!==e&&!isNaN(e)||"string"==typeof t&&0===t.length?"date":null},function(t){return"string"==typeof t&&-1!=t.indexOf("<")&&-1!=t.indexOf(">")?"html":null}]),i.fn.DataTable=j,i.fn.dataTable=j,i.fn.dataTableSettings=j.settings,i.fn.dataTableExt=j.ext}(jQuery,window,document,void 0),function(S){S.fn.columnFilter=function(t){function b(t,e,i,n,s){if(void 0===e)return new Array;var a;void 0===i&&(i=!0),void 0===n&&(n=!0),void 0===s&&(s=!0),a=1==n?t.aiDisplay:t.aiDisplayMaster;for(var r=new Array,o=0,l=a.length;o<l;o++){iRow=a[o];var h=oTable.fnGetData(iRow)[e];1==s&&0==h.length||(1==i&&-1<jQuery.inArray(h,r)||r.push(h))}return r.sort()}function u(t){return properties.bUseColVis?t:oTable.fnSettings().oApi._fnVisibleToColumnIndex(oTable.fnSettings(),t)}function i(i,n,s,t,a,e){var r="text_filter";t&&(r="number_filter"),w=w.replace(/(^\s*)|(\s*$)/g,"");var o=i.fnSettings().aoPreSearchCols[y].sSearch,l="search_init ",h=w;""!=o&&"^"!=o&&(h=t&&"^"==o.charAt(0)?o.substr(1):o,l="");var d=S('<input type="text" class="'+l+r+'" value="'+h+'"/>');e!=undefined&&-1!=e&&d.attr("maxlength",e),x.html(d),t?x.wrapInner('<span class="filter_column filter_number" />'):x.wrapInner('<span class="filter_column filter_text" />'),p[y]=w;var c=y;t&&!i.fnSettings().oFeatures.bServerSide?d.keyup(function(){i.fnFilter("^"+this.value,u(c),!0,!1),C()}):d.keyup(function(){if(i.fnSettings().oFeatures.bServerSide&&0!=a){i.fnSettings().aoPreSearchCols[
15c].sSearch;var t=S(this).data("dt-iLastFilterLength");void 0===t&&(t=0);var e=this.value.length;if(Math.abs(e-t)<a)return;S(this).data("dt-iLastFilterLength",e)}i.fnFilter(this.value,u(c),n,s),C()}),d.focus(function(){S(this).hasClass("search_init")&&(S(this).removeClass("search_init"),this.value="")}),d.blur(function(){""==this.value&&(S(this).addClass("search_init"),this.value=p[c])})}function n(a){x.html(d(0));var r=a.attr("id")+"_range_from_"+y,t=S('<input type="text" class="number_range_filter" id="'+r+'" rel="'+y+'"/>');x.append(t),x.append(d(1));var o=a.attr("id")+"_range_to_"+y,e=S('<input type="text" class="number_range_filter" id="'+o+'" rel="'+y+'"/>');x.append(e),x.append(d(2)),x.wrapInner('<span class="filterColumn filter_number_range" />');var l=y;f.push(y),a.dataTableExt.afnFiltering.push(function(t,e){if(a.attr("id")!=t.sTableId)return!0;if(null==document.getElementById(r))return!0;var i=1*document.getElementById(r).value,n=1*document.getElementById(o).value,s="-"==e[u(l)]?0:1*e[u(l)];return""==i&&""==n||(""==i&&s<=n||(i<=s&&""==n||i<=s&&s<=n))}),S("#"+r+",#"+o,x).keyup(function(){var t=1*document.getElementById(r).value,e=1*document.getElementById(o).value;0!=t&&0!=e&&e<t||(a.fnDraw(),C())})}function s(r){x.html(d(0));var t=r.attr("id")+"_range_from_"+y,o=S('<input type="text" class="date_range_filter" id="'+t+'" rel="'+y+'"/>');o.datepicker(),x.append(o),x.append(d(1));var e=r.attr("id")+"_range_to_"+y,l=S('<input type="text" class="date_range_filter" id="'+e+'" rel="'+y+'"/>');x.append(l),x.append(d(2)),x.wrapInner('<span class="filterColumn filter_date_range" />'),l.datepicker();var h=y;f.push(y),r.dataTableExt.afnFiltering.push(function(t,e){if(r.attr("id")!=t.sTableId)return!0;var i=o.datepicker("getDate"),n=l.datepicker("getDate");if(null==i&&null==n)return!0;var s=null;try{if(null==e[u(h)]||""==e[u(h)])return!1;s=S.datepicker.parseDate(S.datepicker.regional[""].dateFormat,e[u(h)])}catch(a){return!1}return null!=s&&(null==i&&s<=n||(i<=s&&null==n||i<=s&&s<=n))}),S("#"+t+",#"+e,x).change(function(){r.fnDraw(),C()})}function o(t,e,i,n,s,a){null==e&&(e=b(t.fnSettings(),i,!0,!1,!0));var r=t.fnSettings().aoPreSearchCols[y].sSearch,o='<select class="search_init select_filter"><option value="" class="search_init">'+s+"</option>",l=0,h=e.length;for(l=0;l<h;l++)if("object"!=typeof e[l]){var d="";escape(e[l])==r&&(d="selected "),o+="<option "+d+' value="'+escape(e[l])+'">'+e[l]+"</option>"}else{d="";a?(e[l].value==r&&(d="selected "),o+="<option "+d+'value="'+e[l].value+'">'+e[l].label+"</option>"):(escape(e[l].value)==r&&(d="selected "),o+="<option "+d+'value="'+escape(e[l].value)+'">'+e[l].label+"</option>")}var c=S(o+"</select>");n.html(c),n.wrapInner('<span class="filterColumn filter_select" />'),c.change(function(){""!=S(this).val()?S(this).removeClass("search_init"):S(this).addClass("search_init"),a?t.fnFilter(S(this).val(),i,a):t.fnFilter(unescape(S(this).val()),i),C()})}function r(t,e,i){var n,s,a,r=t.fnSettings();null!=e||""==r.sAjaxSource||r.oFeatures.bServerSide||r.aoDrawCallback.push({fn:(n=y,s=x,a=w,function(){if(2==r.iDraw&&null!=r.sAjaxSource&&""!=r.sAjaxSource&&!r.oFeatures.bServerSide)return o(t,null,u(n),s,a,i)}),sName:"column_filter_"+y}),o(t,e,u(y),x,w,i)}function l(s,a){null==a&&(a=b(s.fnSettings(),y,!0,!0,!0));var t,r=y,e="",o=a.length,l=w.replace("%","Perc").replace("&","AND").replace("$","DOL").replace("\xa3","STERL").replace("@","AT").replace(/\s/g,"_");l=l.replace(/[^a-zA-Z 0-9]+/g,""),null!=properties.sFilterButtonText||properties.sFilterButtonText!=undefined?labelBtn=properties.sFilterButtonText:labelBtn=w;var i=10,n=12,h=Math.floor(o/n);0<o%n&&(h+=1);var d=100/h-2,c=i*h;1==h&&(d=20);var u='<div style="float:left; min-width: '+d+'%; " >',p="</div>",f=s.attr("id")+l,g="chkBtnOpen"+f,m=f+"-flt-toggle";for(e+='<button id="'+g+'" class="checkbox_filter" > '+labelBtn+"</button>",e+='<div id="'+m+'" title="'+w+'" class="toggle-check ui-widget-content ui-corner-all"  style="width: '+c+'%; " >',e+=u,t=0;t<o;t++){t%n==0&&0!=t&&(e+=p+u),e+='<input class="search_init checkbox_filter" type="checkbox" id= "'+a[t]+'" name= "'+l+'" value="'+a[t]+'" >'+a[t]+"<br/>";var v=S(e);x.html(v),x.wrapInner('<span class="filterColumn filter_checkbox" />'),v.change(function(){var e="",i="|",n=S('input:checkbox[name="'+l+'"]:checked').size();
15S('input:checkbox[name="'+l+'"]:checked').each(function(t){(0==t&&1==n||0!=t&&t==n-1)&&(i=""),e=(e=e.replace(/^\s+|\s+$/g,""))+S(this).val()+i,i="|"});for(var t=0;t<o;t++)""!=e?S("#"+a[t]).removeClass("search_init"):S("#"+a[t]).addClass("search_init");s.fnFilter(e,r,!0,!1),C()})}S("#"+g).button(),S("#"+m).dialog({autoOpen:!1,hide:"blind",buttons:[{text:"Reset",click:function(){return S('input:checkbox[name="'+l+'"]:checked').each(function(){S(this).attr("checked",!1),S(this).addClass("search_init")}),s.fnFilter("",r,!0,!1),C(),!1}},{text:"Close",click:function(){S(this).dialog("close")}}]}),S("#"+g).click(function(){S("#"+m).dialog("open");var t=S(this);return S("#"+m).dialog("widget").position({my:"top",at:"bottom",of:t}),!1});var _=C;C=function(){var t=S("#"+g);S("#"+m).dialog("widget").position({my:"top",at:"bottom",of:t}),_()}}function d(t){switch(t){case 0:return h.substring(0,h.indexOf("{from}"));case 1:return h.substring(h.indexOf("{from}")+6,h.indexOf("{to}"));default:return h.substring(h.indexOf("{to}")+4)}}var p,y,w,x,h="From {from} to {to}",c=new Array,f=new Array,C=function(){};oTable=this;var e={sPlaceHolder:"foot",sRangeSeparator:"~",iFilteringDelay:500,aoColumns:null,sRangeFormat:"From {from} to {to}"};return properties=S.extend(e,t),this.each(function(){if(oTable.fnSettings().oFeatures.bFilter){p=new Array,aoFilterCells=oTable.fnSettings().aoFooter[0];oTable.fnSettings().nTFoot;if("head:after"==properties.sPlaceHolder){var t=S("tr:first",oTable.fnSettings().nTHead).detach();oTable.fnSettings().bSortCellsTop?(t.prependTo(S(oTable.fnSettings().nTHead)),aoFilterCells=oTable.fnSettings().aoHeader[1]):(t.appendTo(S(oTable.fnSettings().nTHead)),aoFilterCells=oTable.fnSettings().aoHeader[0]),"tr:last",oTable.fnSettings().nTHead}else if("head:before"==properties.sPlaceHolder){if(oTable.fnSettings().bSortCellsTop)(t=S("tr:first",oTable.fnSettings().nTHead).detach()).appendTo(S(oTable.fnSettings().nTHead)),aoFilterCells=oTable.fnSettings().aoHeader[1];else aoFilterCells=oTable.fnSettings().aoHeader[0];"tr:first",oTable.fnSettings().nTHead}for(S(aoFilterCells).each(function(t){y=t;var e={type:"text",bRegex:!1,bSmart:!0,iMaxLenght:-1,iFilterLength:0};if(null!=properties.aoColumns){if(properties.aoColumns.length<y||null==properties.aoColumns[y])return;e=properties.aoColumns[y]}if(w=S(S(this)[0].cell).text(),null==e.sSelector?x=S(S(this)[0].cell):0==(x=S(e.sSelector)).length&&(x=S(S(this)[0].cell)),null!=e)switch(h=null!=e.sRangeFormat?e.sRangeFormat:properties.sRangeFormat,e.type){case"null":break;case"number":i(oTable,!0,!1,!0,e.iFilterLength,e.iMaxLenght);break;case"select":1!=e.bRegex&&(e.bRegex=!1),r(oTable,e.values,e.bRegex);break;case"number-range":n(oTable);break;case"date-range":s(oTable);break;case"checkbox":l(oTable,e.values);break;case"text":default:bRegex=null!=e.bRegex&&e.bRegex,bSmart=null!=e.bSmart&&e.bSmart,i(oTable,bRegex,bSmart,!1,e.iFilterLength,e.iMaxLenght)}}),j=0;j<f.length;j++){var e=function(){var t=oTable.attr("id");return S("#"+t+"_range_from_"+f[j]).val()+properties.sRangeSeparator+S("#"+t+"_range_to_"+f[j]).val()};c.push(e)}if(oTable.fnSettings().oFeatures.bServerSide){var a=oTable.fnSettings().fnServerData;oTable.fnSettings().fnServerData=function(t,e,i){for(j=0;j<f.length;j++){var n=f[j];for(k=0;k<e.length;k++)e[k].name=="sSearch_"+n&&(e[k].value=c[j]())}if(e.push({name:"sRangeSeparator",value:properties.sRangeSeparator}),null!=a)try{a(t,e,i,oTable.fnSettings())}catch(s){a(t,e,i)}else S.getJSON(t,e,function(t){i(t)})}}}})}}(jQuery),function(m,d){function c(t,e){f(t).push(e)}function n(l,t,e){var i=l.children(t.headerTag),h=l.children(t.bodyTag);i.length>h.length?V(X,"contents"):i.length<h.length&&V(X,"titles");var n=t.startIndex;if(e.stepCount=i.length,t.saveState&&m.cookie){var s=m.cookie(U+_(l)),a=parseInt(s,0);!isNaN(a)&&a<e.stepCount&&(n=a)}e.currentIndex=n,i.each(function(t){var e=m(this),i=h.eq(t),n=i.data("mode"),s=null==n?J.html:b(J,/^\s*$/.test(n)||isNaN(n)?n:parseInt(n,0)),a=s===J.html||i.data("url")===d?"":i.data("url"),r=s!==J.html&&"1"===i.data("loaded"),o=m.extend({},et,{title:e.html(),content:s===J.html?i.html():"",contentUrl:a,contentMode:s,contentLoaded:r});c(l,o)})}function r(t){t.triggerHandler("canceled")}function s(t,e){return t.currentIndex-e}function t(t,e){var i=u(t);t.unbind(i).removeData("uid").removeData("options").removeData("state").removeData("steps").removeData("eventNamespace").find(".actions a").unbind(i),t.removeClass(e.clearFixCssClass+" vertical");var n=t.find(".content > *");n.removeData("loaded").removeData("mode").removeData("url"),n.removeAttr("id").removeAttr("role").removeAttr("tabindex").removeAttr("class").removeAttr("style")._removeAria("labelledby")._removeAria("hidden"),t.find(".content > [data-mode='async'],.content > [data-mode='iframe']").empty();var s=m('<{0} class="{1}"></{0}>'.format(t.get(0).tagName,t.attr("class"))),a=t._id();return null!=a&&""!==a&&s._id(a),s.html(t.find(".content").html()),t.after(s),t.remove(),s}function o(t,e){var i=t.find(".steps li").eq(e.currentIndex);t.triggerHandler("finishing",[e.currentIndex])?(i.addClass("done").removeClass("error"),t.triggerHandler("finished",[e.currentIndex])):i.addClass("error")}function u(t){var e=t.data("eventNamespace");return null==e&&(e="."+_(t),t.data("eventNamespace",e)),e}function l(t,e){var i=_(t);return t.find("#"+i+G+e)}function h(t,e){var i=_(t);return t.find("#"+i+Y+e)}function a(t,e){var i=_(t);return t.find("#"+i+Q+e)}function p(t){return t.data("options")}function v(t){return t.data("state")}function f(t){return t.data("steps")}function g(t,e){var i=f(t);return(e<0||e>=i.length)&&V(Z),i[e]}function _(t){var e=t.data("uid");return null==e&&(null==(e=t._id())&&(e="steps-uid-".concat(W),t._id(e)),W++,t.data("uid",e)),e}function b(t,e){if(B("enumType",t),B("keyOrValue",e),"string"==typeof e){var i=t[e];return i===d&&V("The enum key '{0}' does not exist.",e),i}if("number"==typeof e){for(var n in t)if(t[n]===e)return e;V("Invalid enum value '{0}'.",e)}else V("Invalid key or value type.")}function y(t,e,i){return D(t,e,i,C(i,1))}function w(t,e,i){return D(t,e,i,s(i,1))}function x(t,e,i,n){if((n<0||n>=i.stepCount)&&V(Z),!(e.forceMoveForward&&n<i.currentIndex)){var s=i.currentIndex;return t.triggerHandler("stepChanging",[i.currentIndex,n])?(i.currentIndex=n,$(t,e,i),E(t,e,i,s),I(t,e,
15i),T(t,e,i),O(t,e,i,n,s,function(){t.triggerHandler("stepChanged",[n,s])})):t.find(".steps li").eq(s).addClass("error"),!0}}function C(t,e){return t.currentIndex+e}function e(t){var i=m.extend(!0,{},it,t);return this.each(function(){var t=m(this),e={currentIndex:i.startIndex,currentStep:null,stepCount:0,transitionElement:null};t.data("options",i),t.data("state",e),t.data("steps",[]),n(t,i,e),R(t,i,e),F(t,i),i.autoFocus&&0===W&&l(t,i.startIndex).focus(),t.triggerHandler("init",[i.startIndex])})}function i(t,e,i,n,s){(n<0||n>i.stepCount)&&V(Z),S(t,n,s=m.extend({},et,s)),i.currentIndex!==i.stepCount&&i.currentIndex>=n&&(i.currentIndex++,$(t,e,i)),i.stepCount++;var a=t.find(".content"),r=m("<{0}>{1}</{0}>".format(e.headerTag,s.title)),o=m("<{0}></{0}>".format(e.bodyTag));return(null==s.contentMode||s.contentMode===J.html)&&o.html(s.content),0===n?a.prepend(o).prepend(r):h(t,n-1).after(o).after(r),H(t,i,o,n),q(t,e,i,r,n),M(t,e,i,n),n===i.currentIndex&&E(t,e,i),I(t,e,i),t}function S(t,e,i){f(t).splice(e,0,i)}function k(t){var e=m(this),i=p(e),n=v(e);if(i.suppressPaginationOnFocus&&e.find(":focus").is(":input"))return t.preventDefault(),!1;var s={left:37,right:39};t.keyCode===s.left?(t.preventDefault(),w(e,i,n)):t.keyCode===s.right&&(t.preventDefault(),y(e,i,n))}function T(e,t,i){if(0<i.stepCount){var n=i.currentIndex,s=g(e,n);if(!t.enableContentCache||!s.contentLoaded)switch(b(J,s.contentMode)){case J.iframe:e.find(".content > .body").eq(i.currentIndex).empty().html('<iframe src="'+s.contentUrl+'" frameborder="0" scrolling="no" />').data("loaded","1");break;case J.async:var a=h(e,n)._aria("busy","true").empty().append(N(t.loadingTemplate,{text:t.labels.loading}));m.ajax({url:s.contentUrl,cache:!1}).done(function(t){a.empty().html(t)._aria("busy","false").data("loaded","1"),e.triggerHandler("contentLoaded",[n])})}}}function D(t,e,i,n){var s=i.currentIndex;if(!(0<=n&&n<i.stepCount)||e.forceMoveForward&&n<i.currentIndex)return!1;var a=l(t,n),r=a.parent(),o=r.hasClass("disabled");return r._enableAria(),a.click(),s!==i.currentIndex||!o||(r._enableAria(!1),!1)}function A(t){t.preventDefault();var e=m(this),i=e.parent().parent().parent().parent(),n=p(i),s=v(i),a=e.attr("href");switch(a.substring(a.lastIndexOf("#")+1)){case"cancel":r(i);break;case"finish":o(i,s);break;case"next":y(i,n,s);break;case"previous":w(i,n,s)}}function I(t,e,i){if(e.enablePagination){var n=t.find(".actions a[href$='#finish']").parent(),s=t.find(".actions a[href$='#next']").parent();if(!e.forceMoveForward)t.find(".actions a[href$='#previous']").parent()._enableAria(0<i.currentIndex);e.enableFinishButton&&e.showFinishButtonAlways?(n._enableAria(0<i.stepCount),s._enableAria(1<i.stepCount&&i.stepCount>i.currentIndex+1)):(n._showAria(e.enableFinishButton&&i.stepCount===i.currentIndex+1),s._showAria(0===i.stepCount||i.stepCount>i.currentIndex+1)._enableAria(i.stepCount>i.currentIndex+1||!e.enableFinishButton))}}function E(t,e,i,n){var s=l(t,i.currentIndex),a=m('<span class="current-info audible">'+e.labels.current+" </span>"),r=t.find(".content > .title");if(null!=n){var o=l(t,n);o.parent().addClass("done").removeClass("error")._selectAria(!1),r.eq(n).removeClass("current").next(".body").removeClass("current"),a=o.find(".current-info"),s.focus()}s.prepend(a).parent()._selectAria().removeClass("done")._enableAria(),r.eq(i.currentIndex).addClass("current").next(".body").addClass("current")}function M(t,e,i,n){for(var s=_(t),a=n;a<i.stepCount;a++){var r=s+G+a,o=s+Y+a,l=s+Q+a,h=t.find(".title").eq(a)._id(l);t.find(".steps a").eq(a)._id(r)._aria("controls",o).attr("href","#"+l).html(N(e.titleTemplate,{index:a+1,title:h.html()})),t.find(".body").eq(a)._id(o)._aria("labelledby",l)}}function F(t,e){var i=u(t);t.bind("canceled"+i,e.onCanceled),t.bind("contentLoaded"+i,e.onContentLoaded),t.bind("finishing"+i,e.onFinishing),t.bind("finished"+i,e.onFinished),t.bind("init"+i,e.onInit),t.bind("stepChanging"+i,e.onStepChanging),t.bind("stepChanged"+i,e.onStepChanged),e.enableKeyNavigation&&t.bind("keyup"+i,k),t.find(".actions a").bind("click"+i,A)}function j(t,e,i,n){return!(n<0||n>=i.stepCount||i.currentIndex===n)&&(P(t,n),i.currentIndex>n&&(i.currentIndex--,$(t,e,i)),i.stepCount--,a(t,n).remove(),h(t,n).remove(),l(t,n).parent().remove(),0===n&&t.find(".steps li").first().addClass("first"),n===i.stepCount&&t.find(".steps li").eq(n).addClass("last"),M(t,e,i,n),I(t,e,
15i),!0)}function P(t,e){f(t).splice(e,1)}function R(e,i,n){var t='<{0} class="{1}">{2}</{0}>',s=b(K,i.stepsOrientation)===K.vertical?" vertical":"",a=m(t.format(i.contentContainerTag,"content "+i.clearFixCssClass,e.html())),r=m(t.format(i.stepsContainerTag,"steps "+i.clearFixCssClass,'<ul role="tablist"></ul>')),o=a.children(i.headerTag),l=a.children(i.bodyTag);e.attr("role","application").empty().append(r).append(a).addClass(i.cssClass+" "+i.clearFixCssClass+s),l.each(function(t){H(e,n,m(this),t)}),o.each(function(t){q(e,i,n,m(this),t)}),E(e,i,n),L(e,i,n)}function H(t,e,i,n){var s=_(t),a=s+Y+n,r=s+Q+n;i._id(a).attr("role","tabpanel")._aria("labelledby",r).addClass("body")._showAria(e.currentIndex===n)}function L(t,e,i){if(e.enablePagination){var n='<{0} class="actions {1}"><ul role="menu" aria-label="{2}">{3}</ul></{0}>',s='<li><a href="#{0}" role="menuitem">{1}</a></li>',a="";e.forceMoveForward||(a+=s.format("previous",e.labels.previous)),a+=s.format("next",e.labels.next),e.enableFinishButton&&(a+=s.format("finish",e.labels.finish)),e.enableCancelButton&&(a+=s.format("cancel",e.labels.cancel)),t.append(n.format(e.actionContainerTag,e.clearFixCssClass,e.labels.pagination,a)),I(t,e,i),T(t,e,i)}}function N(t,e){for(var i=t.match(/#([a-z]*)#/gi),n=0;n<i.length;n++){var s=i[n],a=s.substring(1,s.length-1);e[a]===d&&V("The key '{0}' does not exist in the substitute collection!",a),t=t.replace(s,e[a])}return t}function q(t,e,i,n,s){var a=_(t),r=a+G+s,o=a+Y+s,l=a+Q+s,h=t.find(".steps > ul"),d=N(e.titleTemplate,{index:s+1,title:n.html()}),c=m('<li role="tab"><a id="'+r+'" href="#'+l+'" aria-controls="'+o+'">'+d+"</a></li>");c._enableAria(e.enableAllSteps||i.currentIndex>s),i.currentIndex>s&&c.addClass("done"),n._id(l).attr("tabindex","-1").addClass("title"),0===s?h.prepend(c):h.find("li").eq(s-1).after(c),0===s&&h.find("li").removeClass("first").eq(s).addClass("first"),s===i.stepCount-1&&h.find("li").removeClass("last").eq(s).addClass("last"),c.children("a").bind("click"+u(t),z)}function $(t,e,i){e.saveState&&m.cookie&&m.cookie(U+_(t),i.currentIndex)}function O(t,e,i,n,s,a){var r=t.find(".content > .body"),o=b(tt,e.transitionEffect),l=e.transitionEffectSpeed,h=r.eq(n),d=r.eq(s);switch(o){case tt.fade:case tt.slide:var c=o===tt.fade?"fadeOut":"slideUp",u=o===tt.fade?"fadeIn":"slideDown";i.transitionElement=h,d[c](l,function(){var t=v(m(this)._showAria(!1).parent().parent())
16;t.transitionElement&&(t.transitionElement[u](l,function(){m(this)._showAria()}).promise().done(a),t.transitionElement=null)});break;case tt.slideLeft:var p=d.outerWidth(!0),f=s<n?-p:p,g=s<n?p:-p;m.when(d.animate({left:f},l,function(){m(this)._showAria(!1)}),h.css("left",g+"px")._showAria().animate({left:0},l)).done(a);break;default:m.when(d._showAria(!1),h._showAria()).done(a)}}function z(t){t.preventDefault();var e=m(this),i=e.parent().parent().parent().parent(),n=p(i),s=v(i),a=s.currentIndex;if(e.parent().is(":not(.disabled):not(.current)")){var r=e.attr("href");x(i,n,s,parseInt(r.substring(r.lastIndexOf("-")+1),0))}return a===s.currentIndex?(l(i,a).focus(),!1):void 0}function V(t){throw 1<arguments.length&&(t=t.format(Array.prototype.slice.call(arguments,1))),new Error(t)}function B(t,e){null==e&&V("The argument '{0}' is null or undefined.",t)}m.fn.extend({_aria:function(t,e){return this.attr("aria-"+t,e)},_removeAria:function(t){return this.removeAttr("aria-"+t)},_enableAria:function(t){return null==t||t?this.removeClass("disabled")._aria("disabled","false"):this.addClass("disabled")._aria("disabled","true")},_showAria:function(t){return null==t||t?this.show()._aria("hidden","false"):this.hide()._aria("hidden","true")},_selectAria:function(t){return null==t||t?this.addClass("current")._aria("selected","true"):this.removeClass("current")._aria("selected","false")},_id:function(t){return t?this.attr("id",t):this.attr("id")}}),String.prototype.format||(String.prototype.format=function(t){for(var e=1===arguments.length&&m.isArray(t)?t:arguments,i=this,n=0;n<e.length;n++){var s=new RegExp("\\{"+n+"\\}","gm");i=i.replace(s,e[n])}return i});var W=0,U="jQu3ry_5teps_St@te_",G="-t-",Y="-p-",Q="-h-",Z="Index out of range.",X="One or more corresponding step {0} are missing.";m.fn.steps=function(t){return m.fn.steps[t]?m.fn.steps[t].apply(this,Array.prototype.slice.call(arguments,1
16)):"object"!=typeof t&&t?void m.error("Method "+t+" does not exist on jQuery.steps"):e.apply(this,arguments)},m.fn.steps.add=function(t){var e=v(this);return i(this,p(this),e,e.stepCount,t)},m.fn.steps.destroy=function(){return t(this,p(this))},m.fn.steps.finish=function(){o(this,v(this))},m.fn.steps.getCurrentIndex=function(){return v(this).currentIndex},m.fn.steps.getCurrentStep=function(){return g(this,v(this).currentIndex)},m.fn.steps.getStep=function(t){return g(this,t)},m.fn.steps.insert=function(t,e){return i(this,p(this),v(this),t,e)},m.fn.steps.next=function(){return y(this,p(this),v(this))},m.fn.steps.previous=function(){return w(this,p(this),v(this))},m.fn.steps.remove=function(t){return j(this,p(this),v(this),t)},m.fn.steps.setStep=function(){throw new Error("Not yet implemented!")},m.fn.steps.skip=function(){throw new Error("Not yet implemented!")};var J=m.fn.steps.contentMode={html:0,iframe:1,async:2},K=m.fn.steps.stepsOrientation={horizontal:0,vertical:1},tt=m.fn.steps.transitionEffect={none:0,fade:1,slide:2,slideLeft:3},et=m.fn.steps.stepModel={title:"",content:"",contentUrl:"",contentMode:J.html,contentLoaded:!1},it=m.fn.steps.defaults={headerTag:"h1",bodyTag:"div",contentContainerTag:"div",actionContainerTag:"div",stepsContainerTag:"div",cssClass:"wizard",clearFixCssClass:"clearfix",stepsOr
16ientation:K.horizontal,titleTemplate:'<span class="number">#index#.</span> #title#',loadingTemplate:'<span class="spinner"></span> #text#',autoFocus:!1,enableAllSteps:!1,enableKeyNavigation:!0,enablePagination:!0,suppressPaginationOnFocus:!0,enableContentCache:!0,enableCancelButton:!1,enableFinishButton:!0,preloadContent:!1,showFinishButtonAlways:!1,forceMoveForward:!1,saveState:!1,startIndex:0,transitionEffect:tt.none,transitionEffectSpeed:200,onStepChanging:function(){return!0},onStepChanged:function(){},onCanceled:function(){},onFinishing:function(){return!0},onFinished:function(){},onContentLoaded:function(){},onInit:function(){},labels:{cancel:"Cancel",current:"current step:",pagination:"Pagination",finish:"Finish",next:"Next",previous:"Previous",loading:"Loading ..."}}}(jQuery),function(s){s.fn.elastic=function(){return this.each(function(){var t=s(this),e=s('<div class="autogrow-textarea-mirror"></div>'),i=hiddenHeight(s(this));t.after(e);var n=function(){t=s(this),(e=t.next(".autogrow-textarea-mirror")).html(stripScripts(t.val().replace(/\n/g,"<br/>")+"<br/>")),e.height()<i?t.height(i):e.height()<1e4?t.height(e.height()):(t.height(1e4),t.css({overflow:"visible"}))};e.css({overflow:"visible",display:"none","word-wrap":"break-word",padding:t.css("padding"),width:t.css("width"),"font-family":t.css("font-family"),"font-size":t.css("font-size"),"line-height":t.css("line-height")}),t.css({overflow:"hidden"}),t.keyup(n)})}}(jQuery),function(Q){function f(t){Q.jqplot.ElemContainer.call(this),this.name=t,this._series=[],this.show=!1,this.tickRenderer=Q.jqplot.AxisTickRenderer,this.tickOptions={},this.labelRenderer=Q.jqplot.AxisLabelRenderer,this.labelOptions={},this.label=null,this.showLabel=!0,this.min=null,this.max=null,this.autoscale=!1,this.pad=1.2,this.padMax=null,this.padMin=null,this.ticks=[],this.numberTicks,this.tickInterval,this.renderer=Q.jqplot.LinearAxisRenderer,this.rendererOptions={},this.showTicks=!0,this.showTickMarks=!0,this.showMinorTicks=!0,this.drawMajorGridlines=!0,this.drawMinorGridlines=!1,this.drawMajorTickMarks=!0,this.drawMinorTickMarks=!0,this.useSeriesColor=!1,this.borderWidth=null,this.borderColor=null,this.scaleToHiddenSeries=!1,this._dataBounds={min:null,max:null},this._intervalStats=[],this._offsets={min:null,max:null},this._ticks=[],this._label=null,this.syncTicks=null,this.tickSpacing=75,this._min=null,this._max=null,this._tickInterval=null,this._numberTicks=null,this.__ticks=null,this._options={}}function i(t){Q.jqplot.ElemContainer.call(this),this.show=!1,this.location="ne",this.labels=[],this.showLabels=!0,this.showSwatches=!0,this.placement="insideGrid",this.xoffset=0,this.yoffset=0,this.border,this.background,this.textColor,this.fontFamily,this.fontSize,this.rowSpacing="0.5em",this.renderer=Q.jqplot.TableLegendRenderer,this.rendererOptions={},this.preDraw=!1,this.marginTop=null,this.marginRight=null,this.marginBottom=null,this.marginLeft=null,this.escapeHtml=!1,this._series=[],Q.extend(!0,this,t)}function n(t){Q.jqplot.ElemContainer.call(this),this.text=t,this.show=!0,this.fontFamily,this.fontSize,this.textAlign,this.textColor,this.renderer=Q.jqplot.DivTitleRenderer,this.rendererOptions={},this.escapeHtml=!1}function u(t){t=t||{},Q.jqplot.ElemContainer.call(this),this.show=!0,this.xaxis="xaxis",this._xaxis,this.yaxis="yaxis",this._yaxis,this.gridBorderWidth=2,this.renderer=Q.jqplot.LineRenderer,this.rendererOptions={},this.data=[],this.gridData=[],this.label="",this.showLabel=!0,this.color,this.negativeColor,this.lineWidth=2.5,this.lineJoin="round",this.lineCap="round",this.linePattern="solid",this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1.25,this.shadowDepth=3,this.shadowAlpha="0.1",this.breakOnNull=!1,this.markerRenderer=Q.jqplot.MarkerRenderer,this.markerOptions={}
16,this.showLine=!0,this.showMarker=!0,this.index,this.fill=!1,this.fillColor,this.fillAlpha,this.fillAndStroke=!1,this.disableStack=!1,this._stack=!1,this.neighborThreshold=4,this.fillToZero=!1,this.fillToValue=0,this.fillAxis="y",this.useNegativeColors=!0,this._stackData=[],this._plotData=[],this._plotValues={x:[],y:[]},this._intervals={x:{},y:{}},this._prevPlotData=[],this._prevGridData=[],this._stackAxis="y",this._primaryAxis="_xaxis",this.canvas=new Q.jqplot.GenericCanvas,this.shadowCanvas=new Q.jqplot.GenericCanvas,this.plugins={},this._sumy=0,this._sumx=0,this._type=""}function s(){Q.jqplot.ElemContainer.call(this),this.drawGridlines=!0,this.gridLineColor="#cccccc",this.gridLineWidth=1,this.background="#fffdf6",this.borderColor="#999999",this.borderWidth=2,this.drawBorder=!0,this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1.5,this.shadowWidth=3,this.shadowDepth=3,this.shadowColor=null,this.shadowAlpha="0.07",this._left,this._top,this._right,this._bottom,this._width,this._height,this._axes=[],this.renderer=Q.jqplot.CanvasGridRenderer,this.rendererOptions={},this._offsets={top:null,bottom:null,left:null,right:null}}function l(){function p(t){for(var e,i=0;i<t.length;i++)for(var n,s=[t[i].data,t[i]._stackData,t[i]._plotData,t[i]._prevPlotData],a=0;a<4;a++)if(n=!0,e=s[a],"x"==t[i]._stackAxis){for(var r=0;r<e.length;r++)if("number"!=typeof e[r][1]){n=!1;break}n&&e.sort(function(t,e){return t[1]-e[1]})}else{for(r=0;r<e.length;r++)if("number"!=typeof e[r][0]){n=!1;break}n&&e.sort(function(t,e){return t[0]-e[0]})}}function a(t){var e,i,n=t.data.plot,s=n.eventCanvas._elem.offset(),a={x:t.pageX-s.left,y:t.pageY-s.top},r={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null},o=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],l=n.axes;for(e=11;0<e;e--)l[i=o[e-1]].show&&(r[i]=l[i].series_p2u(a[i.charAt(0)]));return{offsets:s,gridPos:a,dataPos:r}}function r(t,e){function i(t,e,i){var n=(e[1]-i[1])/(e[0]-i[0]),s=e[1]-n*e[0],a=t+e[1];return[(a-s)/n,a]}var n,s,a,r,o,l,h,d,c,u,p,f,g,m,v,_,b,y,w=e.series;for(s=e.seriesStack.length-1;0<=s;s--)switch(_=(a=w[n=e.seriesStack[s]])._highlightThreshold,a.renderer.constructor){case Q.jqplot.BarRenderer:for(o=t.x,l=t.y,C=0;C<a._barPoints.length;C++)if(v=a._barPoints[C],m=a.gridData[C],o>v[0][0]&&o<v[2][0]&&l>v[2][1]&&l<v[0][1])return{seriesIndex:a.index,pointIndex:C,gridData:m,data:a.data[C],points:a._barPoints[C]};break;case Q.jqplot.PyramidRenderer:for(o=t.x,l=t.y,C=0;C<a._barPoints.length;C++)if(v=a._barPoints[C],m=a.gridData[C],o>v[0][0]+_[0][0]&&o<v[2][0]+_[2][0]&&l>v[2][1]&&l<v[0][1])return{seriesIndex:a.index,pointIndex:C,gridData:m,data:a.data[C],points:a._barPoints[C]};break;case Q.jqplot.DonutRenderer:if(c=a.startAngle/180*Math.PI,o=t.x-a._center[0],l=t.y-a._center[1],r=Math.sqrt(Math.pow(o,2)+Math.pow(l,2)),0<o&&0<=-l?h=2*Math.PI-Math.atan(-l/o):0<o&&-l<0?h=-Math.atan(-l/o):o<0?h=Math.PI-Math.atan(-l/o):0==o&&0<-l?h=3*Math.PI/2:0==o&&-l<0?h=Math.PI/2:0==o&&0==l&&(h=0),c&&((h-=c)<0?h+=2*Math.PI:h>2*Math.PI&&(h-=2*Math.PI)),d=a.sliceMargin/180*Math.PI,r<a._radius&&r>a._innerRadius)for(C=0;C<a.gridData.length;C++)if(u=0<C?a.gridData[C-1][1]+d:d,p=a.gridData[C][1],u<h&&h<p)return{seriesIndex:a.index,pointIndex:C,gridData:a.gridData[C],data:a.data[C]};break;case Q.jqplot.PieRenderer:if(c=a.startAngle/180*Math.PI,o=t.x-a._center[0],l=t.y-a._center[1],r=Math.sqrt(Math.pow(o,2)+Math.pow(l,2)),0<o&&0<=-l?h=2*Math.PI-Math.atan(-l/o):0<o&&-l<0?h=-Math.atan(-l/o):o<0?h=Math.PI-Math.atan(-l/o):0==o&&0<-l?h=3*Math.PI/2:0==o&&-l<0?h=Math.PI/2:0==o&&0==l&&(h=0),c&&((h-=c)<0?h+=2*Math.PI:h>2*Math.PI&&(h-=2*Math.PI)),d=a.sliceMargin/180*Math.PI,r<a._radius)for(C=0;C<a.gridData.length;C++)if(u=0<C?a.gridData[C-1][1]+d:d,p=a.gridData[C][1],u<h&&h<p)return{seriesIndex:a.index,pointIndex:C,gridData:a.gridData[C],data:a.data[C]};break;case Q.jqplot.BubbleRenderer:o=t.x,l=t.y;var x=null;if(a.show){for(var C=0;C<a.gridData.length;C++)m=a.gridData[C],(g=Math.sqrt((o-m[0])*(o-m[0])+(l-m[1])*(l-m[1])))<=m[2]&&(g<=f||null==f)&&(f=g,x={seriesIndex:n,pointIndex:C,gridData:m,data:a.data[C]});if(null!=x)return x}break;case Q.jqplot.FunnelRenderer:o=t.x,l=t.y;var S,k,T,D=a._vertices,A=D[0],I=D[D.length-1];for(S=i(l,A[0],I[3]),k=i(l,A[1],I[2]),C=0;C<D.length;C++)if(l>=(T=D[C])[0][1]&&l<=T[3][1]&&o>=S[0]&&o<=k[0])return{seriesIndex:a.index,pointIndex:C,gridData:null,data:a.data[C]};break;case Q.jqplot.LineRenderer:if(o=t.x,l=t.y,r=a.renderer,a.show){if(!(!(a.fill||a.renderer.bands.show&&a.renderer.bands.fill)||e.plugins.highlighter&&e.plugins.highlighter.show)){var E=!1;if(o>a._boundingBox[0][0]&&o<a._boundingBox[1][0]&&l>a._boundingBox[1][1]&&l<a._boundingBox[0][1])for(var M=a._areaPoints.length,F=(C=M-1,0);F<M;F++){var j=[a._areaPoints[F][0],a._areaPoints[F][1]],P=[a._areaPoints[C][0],a._areaPoints[C][1]];(j[1]<l&&P[1]>=l||P[1]<l&&j[1]>=l)&&j[0]+(l-j[1])/(P[1]-j[1])*(P[0]-j[0])<o&&(E=!E),C=F}if(E)return{seriesIndex:n,pointIndex:null,gridData:a.gridData,data:a.data,points:a._areaPoints};break}b=0<(y=a.markerRenderer.size/2+a.neighborThreshold)?y:0;for(C=0;C<a.gridData.length;C++)if(m=a.gridData[C],r.constructor==Q.jqplot.OHLCRenderer)if(r.candleStick){var R=a._yaxis.series_u2p;if(o>=m[0]-r._bodyWidth/2&&o<=m[0]+r._bodyWidth/2&&l>=R(a.data[C][2])&&l<=R(a.data[C][3]))return{seriesIndex:n,pointIndex:C,gridData:m,data:a.data[C]}}else if(r.hlc){R=a._yaxis.series_u2p;if(o>=m[0]-r._tickLength&&o<=m[0]+r._tickLength&&l>=R(a.data[C][1])&&l<=R(a.data[C][2]))return{seriesIndex:n,pointIndex:C,gridData:m,data:a.data[C]}}else{var R=a._yaxis.series_u2p;if(o>=m[0]-r._tickLength&&o<=m[0]+r._tickLength&&l>=R(a.data[C][2])&&l<=R(a.data[C][3]))return{seriesIndex:n,pointIndex:C,gridData:m,data:a.data[C]}}else if(null!=m[0]&&null!=m[1]&&(g=Math.sqrt((o-m[0])*(o-m[0])+(l-m[1])*(l-m[1])))<=b&&(g<=f||null==f))return f=g,{seriesIndex:n,pointIndex:C,gridData:m,data:a.data[C]}}break;default:if(o=t.x,l=t.y,r=a.renderer,a.show){b=0<(y=a.markerRenderer.size/2+a.neighborThreshold)?y:0;for(C=0;C<a.gridData.length;C++)if(m=a.gridData[C],r.constructor==Q.jqplot.OHLCRenderer)if(r.candleStick){R=a._yaxis.series_u2p;if(o>=m[0]-r._bodyWidth/2&&o<=m[0]+r._bodyWidth/2&&l>=R(a.data[C][2])&&l<=R(a.data[C][3]))return{seriesIndex:n,pointIndex:C,gridData:m,data:a.data[C]}}else if(r.hlc){R=a._yaxis.series_u2p;if(o>=m[0]-r._tickLength&&o<=m[0]+r._tickLength&&l>=R(a.data[C][1])&&l<=R(a.data[C][2]))return{seriesIndex:n,pointIndex:C,gridData:m,data:a.data[C]}}else{R=a._yaxis.series_u2p;if(o>=m[0]-r._tickLength&&o<=m[0]+r._tickLength&&l>=R(a.data[C][2])&&l<=R(a.data[C][3]))return{seriesIndex:n,pointIndex:C,gridData:m,data:a.data[C]}}else if((g=Math.sqrt((o-m[0])*(o-m[0])+(l-m[1])*(l-m[1])))<=b&&(g<=f||null==f))return f=g,{seriesIndex:n,pointIndex:C,gridData:m,data:a.data[C]}}}return null}this.animate=!1,this.animateReplot=!1,this.axes={xaxis:new f("xaxis"),yaxis:new f("yaxis"),x2axis:new f("x2axis"),y2axis:new f("y2axis"),y3axis:new f("y3axis"),y4axis:new f("y4axis"),y5axis:new f("y5axis"),y6axis:new f("y6axis"),y7axis:new f("y7axis"),y8axis:new f("y8axis"),y9axis:new f("y9axis"),yMidAxis:new f("yMidAxis")},this.baseCanvas=new Q.jqplot.GenericCanvas,this.captureRightClick=!1,this.data=[],this.dataRenderer,this.dataRendererOptions,this.defaults={axesDefaults:{},axes:{xaxis:{},yaxis:{},x2axis:{},y2axis:{},y3axis:{},y4axis:{},y5axis:{},y6axis:{},y7axis:{},y8axis:{},y9axis:{},yMidAxis:{}},seriesDefaults:{},series:[]},this.defaultAxisStart=1,this.drawIfHidden=!1,this.eventCanvas=new Q.jqplot.GenericCanvas,this.fillBetween={series1:null,series2:null,color:null,baseSeries:0,fill:!0},this.fontFamily,this.fontSize,this.grid=new s,this.legend=new i,this.negativeSeriesColors=Q.jqplot.config.defaultNegativeColors,this.noDataIndicator={show:!1,indicator:"Loading Data...",axes:{xaxis:{min:0,max:10,tickInterval:2,show:!0},yaxis:{min:0,max:12,tickInterval:3,show:!0}}},this.options={},this.previousSeriesStack=[],this.plugins={},this.series=[],this.seriesStack=[],this.seriesColors=Q.jqplot.config.defaultColors,this.sortData=!0,this.stackSeries=!1,this.syncXTicks=!0,this.syncYTicks=!0,this.target=null,this.targetId=null,this.textColor,this.title=new n,this._drawCount=0,this._sumy=0,this._sumx=0,this._stackData=[],this._plotData=[],this._width=null,this._height=null,this._plotDimensions={height:null,width:null},this._gridPadding={top:null,right:null,bottom:null,left:null},this._defaultGridPadding={top:10,right:10,bottom:23,left:10},this._addDomReference=Q.jqplot.config.addDomReference,this.preInitHooks=new Q.jqplot.HooksManager,this.postInitHooks=new Q.jqplot.HooksManager,this.preParseOptionsHooks=new Q.jqplot.HooksManager,this.postParseOptionsHooks=new Q.jqplot.HooksManager,this.preDrawHooks=new Q.jqplot.HooksManager,this.postDrawHooks=new Q.jqplot.HooksManager,this.preDrawSeriesHooks=new Q.jqplot.HooksManager,this.postDrawSeriesHooks=new Q.jqplot.HooksManager,this.preDrawLegendHooks=new Q.jqplot.HooksManager,this.addLegendRowHooks=new Q.jqplot.HooksManager,this.preSeriesInitHooks=new Q.jqplot.HooksManager,this.postSeriesInitHooks=new Q.jqplot.HooksManager,this.preParseSeriesOptionsHooks=new Q.jqplot.HooksManager,this.postParseSeriesOptionsHooks=new Q.jqplot.HooksManager,this.eventListenerHooks=new Q.jqplot.EventListenerManager,this.preDrawSeriesShadowHooks=new Q.jqplot.HooksManager,this.postDrawSeriesShadowHooks=new Q.jqplot.HooksManager,this.colorGenerator=new Q.jqplot.ColorGenerator,this.negativeColorGenerator=new Q.jqplot.ColorGenerator,this.canvasManager=new Q.jqplot.CanvasManager,this.themeEngine=new Q.jqplot.ThemeEngine;var t,e;
16this.init=function(t,e,i){i=i||{};for(var n=0;n<Q.jqplot.preInitHooks.length;n++)Q.jqplot.preInitHooks[n].call(this,t,e,i);for(n=0;n<this.preInitHooks.hooks.length;n++)this.preInitHooks.hooks[n].call(this,t,e,i);if(this.targetId="#"+t,this.target=Q("#"+t),this._addDomReference&&this.target.data("jqplot",this),this.target.removeClass("jqplot-error"),!this.target.get(0))throw"No plot target specified";var s,a,r,o;("static"==this.target.css("position")&&this.target.css("position","relative"),this.target.hasClass("jqplot-target")||this.target.addClass("jqplot-target"),this.target.height())?this._height=s=this.target.height():(s=i&&i.height?parseInt(i.height,10):this.target.attr("data-height")?parseInt(this.target.attr("data-height"),10):parseInt(Q.jqplot.config.defaultHeight,10),this._height=s,this.target.css("height",s+"px"));this.target.width()?this._width=a=this.target.width():(a=i&&i.width?parseInt(i.width,10):this.target.attr("data-width")?parseInt(this.target.attr("data-width"),10):parseInt(Q.jqplot.config.defaultWidth,10),this._width=a,this.target.css("width",a+"px"));n=0;for(var l=I.length;n<l;n++)this.axes[I[n]]=new f(I[n]);if(this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions,this._height<=0||this._width<=0||!this._height||!this._width)throw"Canvas dimension not set";if(i.dataRenderer&&Q.isFunction(i.dataRenderer)&&(i.dataRendererOptions&&(this.dataRendererOptions=i.dataRendererOptions),this.dataRenderer=i.dataRenderer,e=this.dataRenderer(e,this,this.dataRendererOptions)),i.noDataIndicator&&Q.isPlainObject(i.noDataIndicator)&&Q.extend(!0,this.noDataIndicator,i.noDataIndicator),null==e||0==Q.isArray(e)||0==e.length||0==Q.isArray(e[0])||0==e[0].length){if(0==this.noDataIndicator.show)throw"No Data";for(var h in this.noDataIndicator.axes)for(var d in this.noDataIndicator.axes[h])this.axes[h][d]=this.noDataIndicator.axes[h][d];this.postDrawHooks.add(function(){var t=this.eventCanvas.getHeight(),e=this.eventCanvas.getWidth(),i=Q('<div class="jqplot-noData-container" style="position:absolute;"></div>');this.target.append(i),i.height(t),i.width(e),i.css("top",this.eventCanvas._offsets.top),i.css("left",this.eventCanvas._offsets.left);var n=Q('<div class="jqplot-noData-contents" style="text-align:center; position:relative; margin-left:auto; margin-right:auto;"></div>');i.append(n),n.html(this.noDataIndicator.indicator);var s=n.height(),a=n.width();n.height(s),n.width(a),n.css("top",(t-s)/2+"px")})}this.data=Q.extend(!0,[],e),this.parseOptions(i),this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this.title.init(),this.legend.init(),this._sumy=0,this._sumx=0,this.computePlotData();for(n=0;n<this.series.length;n++){this.seriesStack.push(n),this.previousSeriesStack.push(n),this.series[n].shadowCanvas._plotDimensions=this._plotDimensions,this.series[n].canvas._plotDimensions=this._plotDimensions;for(var c=0;c<Q.jqplot.preSeriesInitHooks.length;c++)Q.jqplot.preSeriesInitHooks[c].call(this.series[n],t,this.data,this.options.seriesDefaults,this.options.series[n],this);for(c=0;c<this.preSeriesInitHooks.hooks.length;c++)this.preSeriesInitHooks.hooks[c].call(this.series[n],t,this.data,this.options.seriesDefaults,this.options.series[n],this);this.series[n]._plotDimensions=this._plotDimensions,this.series[n].init(n,this.grid.borderWidth,this);for(c=0;c<Q.jqplot.postSeriesInitHooks.length;c++)Q.jqplot.postSeriesInitHooks[c].call(this.series[n],t,this.data,this.options.seriesDefaults,this.options.series[n],this);for(c=0;c<this.postSeriesInitHooks.hooks.length;c++)this.postSeriesInitHooks.hooks[c].call(this.series[n],t,this.data,this.options.seriesDefaults,this.options.series[n],this);this._sumy+=this.series[n]._sumy,this._sumx+=this.series[n]._sumx}
16for(n=0,l=I.length;n<l;n++)r=I[n],(o=this.axes[r])._plotDimensions=this._plotDimensions,o.init(),null==this.axes[r].borderColor&&("x"!==r.charAt(0)&&!0===o.useSeriesColor&&o.show?o.borderColor=o._series[0].color:o.borderColor=this.grid.borderColor);this.sortData&&p(this.series),this.grid.init(),this.grid._axes=this.axes,this.legend._series=this.series;for(n=0;n<Q.jqplot.postInitHooks.length;n++)Q.jqplot.postInitHooks[n].call(this,t,this.data,i);for(n=0;n<this.postInitHooks.hooks.length;n++)this.postInitHooks.hooks[n].call(this,t,this.data,i)},this.resetAxesScale=function(t,e){var i=e||{},n=t||this.axes;if(!0===n&&(n=this.axes),Q.isArray(n))for(var s=0;s<n.length;s++)this.axes[n[s]].resetScale(i[n[s]]);else if("object"==typeof n)for(var a in n)this.axes[a].resetScale(i[a])},this.reInitialize=function(t,e){for(var i,n,s,a=Q.extend(!0,{},this.options,e),r=this.targetId.substr(1),o=null==t?this.data:t,l=0;l<Q.jqplot.preInitHooks.length;l++)Q.jqplot.preInitHooks[l].call(this,r,o,a);for(l=0;l<this.preInitHooks.hooks.length;l++)this.preInitHooks.hooks[l].call(this,r,o,a);if(this._height=this.target.height(),this._width=this.target.width(),this._height<=0||this._width<=0||!this._height||!this._width)throw"Target dimension not set";this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions;l=0;for(var h=I.length;l<h;l++){i=I[l];for(var d=0,c=(n=(s=this.axes[i])._ticks).length;d<c;d++){var u=n[d]._elem;u&&(Q.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==A&&window.G_vmlCanvasManager.uninitElement(u.get(0)),u.emptyForce(),u=null,n._elem=null)}n=null,delete s.ticks,delete s._ticks,this.axes[i]=new f(i),this.axes[i]._plotWidth=this._width,this.axes[i]._plotHeight=this._height}t&&(a.dataRenderer&&Q.isFunction(a.dataRenderer)&&(a.dataRendererOptions&&(this.dataRendererOptions=a.dataRendererOptions),this.dataRenderer=a.dataRenderer,t=this.dataRenderer(t,this,this.dataRendererOptions)),this.data=Q.extend(!0,[],t)),e&&this.parseOptions(a),this.title._plotWidth=this._width,this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this.title.init(),this.legend.init(),this._sumy=0,this._sumx=0,this.seriesStack=[],this.previousSeriesStack=[],this.computePlotData();for(l=0,h=this.series.length;l<h;l++){this.seriesStack.push(l),this.previousSeriesStack.push(l),this.series[l].shadowCanvas._plotDimensions=this._plotDimensions,this.series[l].canvas._plotDimensions=this._plotDimensions;for(d=0;d<Q.jqplot.preSeriesInitHooks.length;d++)Q.jqplot.preSeriesInitHooks[d].call(this.series[l],r,this.data,this.options.seriesDefaults,this.options.series[l],this);for(d=0;d<this.preSeriesInitHooks.hooks.length;d++)this.preSeriesInitHooks.hooks[d].call(this.series[l],r,this.data,this.options.seriesDefaults,this.options.series[l],this);this.series[l]._plotDimensions=this._plotDimensions,this.series[l].init(l,this.grid.borderWidth,this);for(d=0;d<Q.jqplot.postSeriesInitHooks.length;d++)Q.jqplot.postSeriesInitHooks[d].call(this.series[l],r,this.data,this.options.seriesDefaults,this.options.series[l],this);for(d=0;d<this.postSeriesInitHooks.hooks.length;d++)this.postSeriesInitHooks.hooks[d].call(this.series[l],r,this.data,this.options.seriesDefaults,this.options.series[l],this);this._sumy+=this.series[l]._sumy,this._sumx+=this.series[l]._sumx}for(l=0,h=I.length;l<h;l++)i=I[l],(s=this.axes[i])._plotDimensions=this._plotDimensions,s.init(),null==s.borderColor&&("x"!==i.charAt(0)&&!0===s.useSeriesColor&&s.show?s.borderColor=s._series[0].color:s.borderColor=this.grid.borderColor);this.sortData&&p(this.series),this.grid.init(),this.grid._axes=this.axes,this.legend._series=this.series;for(l=0,h=Q.jqplot.postInitHooks.length;l<h;l++)Q.jqplot.postInitHooks[l].call(this,r,this.data,a);for(l=0,h=this.postInitHooks.hooks.length;l<h;l++)this.postInitHooks.hooks[l].call(this,r,this.data,a)},this.quickInit=function(){if(this._height=this.target.height(),this._width=this.target.width(),this._height<=0||this._width<=0||!this._height||!this._width)throw"Target dimension not set";for(var t in this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions,this.axes)this.axes[t]._plotWidth=this._width,this.axes[t]._plotHeight=this._height;this.title._plotWidth=this._width,this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this._sumy=0,this._sumx=0,this.computePlotData();for(var e=0;e<this.series.length;e++)"line"===this.series[e]._type&&this.series[e].renderer.bands.show&&this.series[e].renderer.initBands.call(this.series[e],this.series[e].renderer.options,this),this.series[e]._plotDimensions=this._plotDimensions,this.series[e].canvas._plotDimensions=this._plotDimensions,this._sumy+=this.series[e]._sumy,this._sumx+=this.series[e]._sumx;for(var i,n=0;n<12;n++){i=I[n];var s=this.axes[i]._ticks;for(e=0;e<s.length;e++){var a=s[e]._elem;a&&(Q.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==A&&window.G_vmlCanvasManager.uninitElement(a.get(0)),a.emptyForce(),a=null,s._elem=null)}s=null,this.axes[i]._plotDimensions=this._plotDimensions,this.axes[i]._ticks=[]}this.sortData&&p(this.series),this.grid._axes=this.axes,this.legend._series=this.series},this.computePlotData=function(){var t,e,i;for(this._plotData=[],this._stackData=[],e=0,i=this.series.length;e<i;e++){t=this.series[e],this._plotData.push([]),this._stackData.push([]);var n=t.data;this._plotData[e]=Q.extend(!0,[],n),this._stackData[e]=Q.extend(!0,[],n),t._plotData=this._plotData[e],t._stackData=this._stackData[e];var s={x:[],y:[]};if(this.stackSeries&&!t.disableStack){t._stack=!0;for(var a="x"===t._stackAxis?0:1,r=0,o=n.length;r<o;r++){var l=n[r][a];if(null==l&&(l=0),this._plotData[e][r][a]=l,this._stackData[e][r][a]=l,0<e)for(var h=e;h--;){var d=this._plotData[h][r][a];if(0<=l*d){this._plotData[e][r][a]+=d,this._stackData[e][r][a]+=d;break}}}}else{for(var c=0;c<t.data.length;c++)s.x.push(t.data[c][0]),s.y.push(t.data[c][1]);this._stackData.push(t.data),this.series[e]._stackData=t.data,this._plotData.push(t.data),t._plotData=t.data,t._plotValues=s}for(0<e&&(t._prevPlotData=this.series[e-1]._plotData),t._sumy=0,t._sumx=0,c=t.data.length-1;-1<c;c--)t._sumy+=t.data[c][1],t._sumx+=t.data[c][0]}},this.populatePlotData=function(t,e){this._plotData=[],this._stackData=[],t._stackData=[],t._plotData=[];var i={x:[],y:[]};if(this.stackSeries&&!t.disableStack){t._stack=!0;for(var n,s,a,r,o="x"===t._stackAxis?0:1,l=Q.extend(!0,[],t.data),h=Q.extend(!0,[],t.data),d=0;d<e;d++)for(var c=this.series[d].data,u=0;u<c.length;u++)n=null!=(a=c[u])[0]?a[0]:0,s=null!=a[1]?a[1]:0,l[u][0]+=n,l[u][1]+=s,r=o?s:n,0<=t.data[u][o]*r&&(h[u][o]+=r);for(var p=0;p<h.length;p++)i.x.push(h[p][0]),i.y.push(h[p][1]);this._plotData.push(h),this._stackData.push(l),t._stackData=l,t._plotData=h,t._plotValues=i}else{for(p=0;p<t.data.length;p++)i.x.push(t.data[p][0]),i.y.push(t.data[p][1]);this._stackData.push(t.data),this.series[e]._stackData=t.data,this._plotData.push(t.data),t._plotData=t.data,t._plotValues=i}for(0<e&&(t._prevPlotData=this.series[e-1]._plotData),t._sumy=0,t._sumx=0,p=t.data.length-1;-1<p;p--)t._sumy+=t.data[p][1],t._sumx+=t.data[p][0]},this.getNextSeriesColor=(t=0,e=this.seriesColors,function(){return t<e.length||(t=0),e[t++]}),this.parseOptions=function(t){for(var e=0;e<this.preParseOptionsHooks.hooks.length;e++)this.preParseOptionsHooks.hooks[e].call(this,t);for(e=0;e<Q.jqplot.preParseOptionsHooks.length;e++)Q.jqplot.preParseOptionsHooks[e].call(this,t);this.options=Q.extend(!0,{},this.defaults,t);var i=this.options;if(this.animate=i.animate,this.animateReplot=i.animateReplot,this.stackSeries=i.stackSeries,Q.isPlainObject(i.fillBetween)){e=0;for(var n,s=(l=["series1","series2","color","baseSeries","fill"]).length;e<s;e++)n=l[e],null!=i.fillBetween[n]&&(this.fillBetween[n]=i.fillBetween[n])}i.seriesColors&&(this.seriesColors=i.seriesColors),i.negativeSeriesColors&&(this.negativeSeriesColors=i.negativeSeriesColors),i.captureRightClick&&(this.captureRightClick=i.captureRightClick),this.defaultAxisStart=t&&null!=t.defaultAxisStart?t.defaultAxisStart:this.defaultAxisStart,this.colorGenerator.setColors(this.seriesColors),this.negativeColorGenerator.setColors(this.negativeSeriesColors),Q.extend(!0,this._gridPadding,i.gridPadding),this.sortData=null!=i.sortData?i.sortData:this.sortData;for(e=0;e<12;e++){var a=I[e];(c=this.axes[a])._options=Q.extend(!0,{},i.axesDefaults,i.axes[a]),Q.extend(!0,c,i.axesDefaults,i.axes[a]),c._plotWidth=this._width,c._plotHeight=this._height}
vendor: 5,241 bytes, lines 16-17
16var r=function(t,e,i){var n,s,a=[];if(e=e||"vertical",Q.isArray(t[0]))Q.extend(!0,a,t);else for(n=0,s=t.length;n<s;n++)"vertical"==e?a.push([i+n,t[n]]):a.push([t[n],i+n]);return a};this.series=[];for(e=0;e<this.data.length;e++){for(var o=Q.extend(!0,{index:e},{seriesColors:this.seriesColors,negativeSeriesColors:this.negativeSeriesColors},this.options.seriesDefaults,this.options.series[e],{rendererOptions:{animation:{show:this.animate}}}),l=new u(o),h=0;h<Q.jqplot.preParseSeriesOptionsHooks.length;h++)Q.jqplot.preParseSeriesOptionsHooks[h].call(l,this.options.seriesDefaults,this.options.series[e]);for(h=0;h<this.preParseSeriesOptionsHooks.hooks.length;h++)this.preParseSeriesOptionsHooks.hooks[h].call(l,this.options.seriesDefaults,this.options.series[e]);Q.extend(!0,l,o);var d="vertical";switch(l.renderer===Q.jqplot.BarRenderer&&l.rendererOptions&&"horizontal"==l.rendererOptions.barDirection&&(d="horizontal",l._stackAxis="x",l._primaryAxis="_yaxis"),l.data=r(this.data[e],d,this.defaultAxisStart),l.xaxis){case"xaxis":l._xaxis=this.axes.xaxis;break;case"x2axis":l._xaxis=this.axes.x2axis}l._yaxis=this.axes[l.yaxis],l._xaxis._series.push(l),l._yaxis._series.push(l),l.show?(l._xaxis.show=!0,l._yaxis.show=!0):(l._xaxis.scaleToHiddenSeries&&(l._xaxis.show=!0),l._yaxis.scaleToHiddenSeries&&(l._yaxis.show=!0)),l.label||(l.label="Series "+(e+1).toString()),this.series.push(l);for(h=0;h<Q.jqplot.postParseSeriesOptionsHooks.length;h++)Q.jqplot.postParseSeriesOptionsHooks[h].call(this.series[e],this.options.seriesDefaults,this.options.series[e]);for(h=0;h<this.postParseSeriesOptionsHooks.hooks.length;h++)this.postParseSeriesOptionsHooks.hooks[h].call(this.series[e],this.options.seriesDefaults,this.options.series[e])}Q.extend(!0,this.grid,this.options.grid);for(e=0,s=I.length;e<s;e++){var c;a=I[e];null==(c=this.axes[a]).borderWidth&&(c.borderWidth=this.grid.borderWidth)}"string"==typeof this.options.title?this.title.text=this.options.title:"object"==typeof this.options.title&&Q.extend(!0,this.title,this.options.title),this.title._plotWidth=this._width,this.legend.setOptions(this.options.legend);for(e=0;e<Q.jqplot.postParseOptionsHooks.length;e++)Q.jqplot.postParseOptionsHooks[e].call(this,t);for(e=0;e<this.postParseOptionsHooks.hooks.length;e++)this.postParseOptionsHooks.hooks[e].call(this,t)},this.destroy=function(){this.canvasManager.freeAllCanvases(),this.eventCanvas&&this.eventCanvas._elem&&this.eventCanvas._elem.unbind(),this.target.empty(),this.target[0].innerHTML=""},this.replot=function(t){var e=t||{},i=e.data||null,n=!1!==e.clear,s=e.resetAxes||!1;delete e.data,delete e.clear,delete e.resetAxes,this.target.trigger("jqplotPreReplot"),n&&this.destroy(),i||!Q.isEmptyObject(e
17)?this.reInitialize(i,e):this.quickInit(),s&&this.resetAxesScale(s,e.axes),this.draw(),this.target.trigger("jqplotPostReplot")},this.redraw=function(t){for(var e in t=null==t||t,this.target.trigger("jqplotPreRedraw"),t&&(this.canvasManager.freeAllCanvases(),this.eventCanvas._elem.unbind(),this.target.empty()),this.axes)this.axes[e]._ticks=[];this.computePlotData(),this._sumy=0;for(var i=this._sumx=0,n=this.series.length;i<n;i++)this._sumy+=this.series[i]._sumy,this._sumx+=this.series[i]._sumx;this.draw(),this.target.trigger("jqplotPostRedraw")},this.draw=function(){if(this.drawIfHidden||this.target.is(":visible")){var t;for(this.target.trigger("jqplotPreDraw"),_=0,b=Q.jqplot.preDrawHooks.length;_<b;_++)Q.jqplot.preDrawHooks[_].call(this);for(_=0,b=this.preDrawHooks.length;_<b;_++)this.preDrawHooks.hooks[_].apply(this,this.preDrawSeriesHooks.args[_]);this.target.append(this.baseCanvas.createElement({left:0,right:0,top:0,bottom:0},"jqplot-base-canvas",null,this)),this.baseCanvas.setContext(),this.target.append(this.title.draw()),this.title.pack({top:0,left:0});var e=this.legend.draw({},this),i={top:0,left:0,bottom:0,right:0};if("outsideGrid"==this.legend.placement){switch(this.target.append(e),this.legend.location){case"n":i.top+=this.legend.getHeight();break;case"s":i.bottom+=this.legend.getHeight();break;case"ne":case"e":case"se":i.right+=this.legend.getWidth();break;case"nw":case"w":case"sw":i.left+=this.legend.getWidth();break;default:i.right+=this.legend.getWidth()}e=e.detach()}var n,s=this.axes;for(_=0;_<12;_++)n=I[_],this.target.append(s[n].draw(this.baseCanvas._ctx,this)),s[n].set();s.yaxis.show&&(i.left+=s.yaxis.getWidth());var a=["y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"],r=[0,0,0,0,0,0,0,0],o=0;for(p=0;p<8;p++)s[a[p]].show&&(o+=s[a[p]].getWidth(),r[p]=o);if(i.right+=o,s.x2axis.show&&(i.top+=s.x2axis.getHeight()),this.title.show&&(i.top+=this.title.getHeight()),s.xaxis.show&&(i.bottom+=s.xaxis.getHeight()),this.options.gridDimensions&&Q.isPlainObject(this.options.gridDimensions)){var l=parseInt(this.options.gridDimensions.width,10)||0,h=parseInt(this.options.gridDimensions.height,10)||0,d=(this._width-i.left-i.right-l)/2,c=(this._height-i.top-i.bottom-h)/2;0<=c&&0<=d&&(i.top+=c,i.bottom+=c,i.left+=d,i.right+=d)}var u=["top","bottom","left","right"];for(var p in u)null==this._gridPadding[u[p]]&&0<i[u[p]]?this._gridPadding[u[p]]=i[u[p]]:null==this._gridPadding[u[p]]&&(this._gridPadding[u[p]]=this._defaultGridPadding[u[p]]);var f=this._gridPadding;
17for("outsideGrid"===this.legend.placement&&(f={top:this.title.getHeight(),left:0,right:0,bottom:0},"s"===this.legend.location&&(f.left=this._gridPadding.left,f.right=this._gridPadding.right)),s.xaxis.pack({position:"absolute",bottom:this._gridPadding.bottom-s.xaxis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right}),s.yaxis.pack({position:"absolute",top:0,left:this._gridPadding.left-s.yaxis.getWidth(),height:this._height},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top}),s.x2axis.pack({position:"absolute",top:this._gridPadding.top-s.x2axis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right}),_=8;0<_;_--)s[a[_-1]].pack({position:"absolute",top:0,right:this._gridPadding.right-r[_-1]},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});var g=(this._width-this._gridPadding.left-this._gridPadding.right)/2+this._gridPadding.left-s.yMidAxis.getWidth()/2;s.yMidAxis.pack({position:"absolute",top:0,left:g,zIndex:9,textAlign:"center"},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top}),this.target.append(this.grid.createElement(this._gridPadding,this)),this.grid.draw();var m=this.series,v=m.length;for(_=0,b=v;_<b;_++)t=this.seriesStack[_],this.target.append(m[t].shadowCanvas.createElement(this._gridPadding,"jqplot-series-shadowCanvas",null,this)),m[t].shadowCanvas.setContext(),m[t].shadowCanvas._elem.data("seriesIndex",t);for(_=0,b=v;_<b;_++)t=this.seriesStack[_],this.target.append(m[t].canvas.createElement(this._gridPadding,"jqplot-series-canvas",null,this)),m[t].canvas.setContext(),m[t].canvas._elem.data("seriesIndex",t);this.target.append(this.eventCanvas.createElement(this._gridPadding,"jqplot-event-canvas",null,this)),this.eventCanvas.setContext(),this.eventCanvas._ctx.fillStyle="rgba(0,0,0,0)",this.eventCanvas._ctx.fillRect(0,0,this.eventCanvas._ctx.canvas.width,this.eventCanvas._ctx.canvas.height),this.bindCustomEvents(),this.legend.preDraw?(this.eventCanvas._elem.before(e),this.legend.pack(f),this.legend._elem?this.drawSeries({legendInfo:{location:this.legend.location,placement:this.legend.placement,width:this.legend.getWidth(),height:this.legend.getHeight(),xoffset:this.legend.xoffset,yoffset:this.legend.yoffset}}):this.drawSeries()):(this.drawSeries(),v&&Q(m[v-1].canvas._elem).after(e),this.legend.pack(f));for(var _=0,b=Q.jqplot.eventListenerHooks.length;_<b;_++)this.eventCanvas._elem.bind(Q.jqplot.eventListenerHooks[_][0],{plot:this},Q.jqplot.eventListenerHooks[_][1]);for(_=0,b=this.eventListenerHooks.hooks.length;_<b;_++)this.eventCanvas._elem.bind(this.eventListenerHooks.hooks[_][0],{plot:this},this.eventListenerHooks.hooks[_][1]);var y,w,x,C,S=this.fillBetween;S.fill&&S.series1!==S.series2&&S.series1<v&&S.series2<v&&"line"===m[S.series1]._type&&"line"===m[S.series2]._type&&this.doFillBetweenLines();for(_=0,b=Q.jqplot.postDrawHooks.length;_<b;_++)Q.jqplot.postDrawHooks[_].call(this);for(_=0,b=this.postDrawHooks.hooks.length;_<b;_++)this.postDrawHooks.hooks[_].apply(this,this.postDrawHooks.args[_]);for(this.target.is(":visible")&&(this._drawCount+=1),_=0,b=v;_<b;_++)x=".jqplot-point-label.jqplot-series-"+_,(w=(y=m[_]).renderer).animation&&w.animation._supported&&w.animation.show&&(this._drawCount<2||this.animateReplot)&&((C=this.target.find(x)).stop(!0,!0).hide(),y.canvas._elem.stop(!0,!0).hide(),y.shadowCanvas._elem.stop(!0,!0).hide(),y.canvas._elem.jqplotEffect("blind",{mode:"show",direction:w.animation.direction},w.animation.speed),y.shadowCanvas._elem.jqplotEffect("blind",{mode:"show",direction:w.animation.direction},w.animation.speed),C.fadeIn(.8*w.animation.speed));C=null,this.target.trigger("jqplotPostDraw",[this])}},l.prototype.doFillBetweenLines=function(){var t=this.fillBetween,e=t.series1,i=t.series2,n=e<i?e:i,s=e<i?i:e,a=this.series[n],r=this.series[s];if(r.renderer.smooth)var o=r.renderer._smoothedData.slice(0).reverse();else o=r.gridData.slice(0).reverse();if(a.renderer.smooth)var l=a.renderer._smoothedData.concat(o);else l=a.gridData.concat(o);var h=null!==t.color?t.color:this.series[e].fillColor,d=null!==t.baseSeries?t.baseSeries:n,c={fillStyle:h,fill:!0,closePath:!0};this.series[d].renderer.shapeRenderer.draw(a.shadowCanvas._ctx,l,c)},this.bindCustomEvents=function(){this.eventCanvas._elem.bind("click",{plot:this},this.onClick),this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick),this.eventCanvas._elem.bind("mousedown",{plot:this},this.onMouseDown),this.eventCanvas._elem.bind("mousemove",{plot:this},this.onMouseMove),this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter),this.eventCanvas._elem.bind("mouseleave",{plot:this},this.onMouseLeave),this.captureRightClick?(this.eventCanvas._elem.bind("mouseup",{plot:this},this.onRightClick),this.eventCanvas._elem.get(0).oncontextmenu=function(){return!1}):this.eventCanvas._elem.bind("mouseup",{plot:this},this.onMouseUp)},this.onClick=function(t){var e=a(t),i=t.data.plot,n=r(e.gridPos,i),s=Q.Event("jqplotClick");s.pageX=t.pageX,s.pageY=t.pageY,Q(this).trigger(s,[e.gridPos,e.dataPos,n,i])},this.onDblClick=function(t){var e=a(t),i=t.data.plot,n=r(e.gridPos,i),s=Q.Event("jqplotDblClick");s.pageX=t.pageX,s.pageY=t.pageY,Q(this).trigger(s,[e.gridPos,e.dataPos,n,i])},this.onMouseDown=function(t){var e=a(t),i=t.data.plot,n=r(e.gridPos,i),s=Q.Event("jqplotMouseDown");s.pageX=t.pageX,s.pageY=t.pageY,Q(this).trigger(s,[e.gridPos,e.dataPos,n,i])},this.onMouseUp=function(t){var e=a(t),i=Q.Event("jqplotMouseUp");i.pageX=t.pageX,i.pageY=t.pageY,Q(this).trigger(i,[e.gridPos,e.dataPos,null,t.data.plot])},this.onRightClick=function(t){var e,i=a(t),n=t.data.plot,s=r(i.gridPos,n);n.captureRightClick&&(3==t.which?(e=Q.Event("jqplotRightClick")).pageX=t.pageX:(e=Q.Event("jqplotMouseUp")).pageX=t.pageX,e.pageY=t.pageY,Q(this).trigger(e,[i.gridPos,i.dataPos,s,n]))},this.onMouseMove=function(t){var e=a(t),i=t.data.plot,n=r(e.gridPos,i),s=Q.Event("jqplotMouseMove");s.pageX=t.pageX,s.pageY=t.pageY,Q(this).trigger(s,[e.gridPos,e.dataPos,n,i])},this.onMouseEnter=function(t){var e=a(t),i=t.data.plot,n=Q.Event("jqplotMouseEnter");n.pageX=t.pageX,n.pageY=t.pageY,n.relatedTarget=t.relatedTarget,Q(this).trigger(n,[e.gridPos,e.dataPos,null,i])},this.onMouseLeave=function(t){var e=a(t),i=t.data.plot,n=Q.Event("jqplotMouseLeave");n.pageX=t.pageX,n.pageY=t.pageY,n.relatedTarget=t.relatedTarget,Q(this).trigger(n,[e.gridPos,e.dataPos,null,i])},this.drawSeries=function(t,e){var i,n,s;if(e="number"==typeof t&&null==e?t:e,t="object"==typeof t?t:{},e!=A)(s=(n=this.series[e]).shadowCanvas._ctx).clearRect(0,0,s.canvas.width,s.canvas.height),n.drawShadow(s,t,this),(s=n.canvas._ctx).clearRect(0,0,s.canvas.width,s.canvas.height),n.draw(s,t,this),n.renderer.constructor==Q.jqplot.BezierCurveRenderer&&e<this.series.length-1&&this.drawSeries(e+1);else for(i=0;i<this.series.length;i++)(s=(n=this.series[i]).shadowCanvas._ctx).clearRect(0,0,s.canvas.width,s.canvas.height),n.drawShadow(s,t,this),(s=n.canvas._ctx).clearRect(0,0,s.canvas.width,s.canvas.height),n.draw(s,t,this);t=e=i=n=s=null},this.moveSeriesToFront=function(t){t=parseInt(t,10);var e=Q.inArray(t,this.seriesStack);if(-1!=e)if(e!=this.seriesStack.length-1){var i=this.seriesStack[this.seriesStack.length-1],n=this.series[t].canvas._elem.detach(),s=this.series[t].shadowCanvas._elem.detach();this.series[i].shadowCanvas._elem.after(s),this.series[i].canvas._elem.after(n),this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack.splice(e,1),this.seriesStack.push(t)}else this.previousSeriesStack=this.seriesStack.slice(0)},this.moveSeriesToBack=function(t){t=parseInt(t,10);var e=Q.inArray(t,this.seriesStack);if(0!=e&&-1!=e){var i=this.seriesStack[0],n=this.series[t].canvas._elem.detach(),s=this.series[t].shadowCanvas._elem.detach();this.series[i].shadowCanvas._elem.before(s),this.series[i].canvas._elem.before(n),this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack.splice(e,1),this.seriesStack.unshift(t)}},this.restorePreviousSeriesOrder=function(){var t,e,i,n,s,a;if(this.seriesStack!=this.previousSeriesStack){for(t=1;t<this.previousSeriesStack.length;t++)s=this.previousSeriesStack[t],a=this.previousSeriesStack[t-1],e=this.series[s].canvas._elem.detach(),i=this.series[s].shadowCanvas._elem.detach(),this.series[a].shadowCanvas._elem.after(i),this.series[a].canvas._elem.after(e);n=this.seriesStack.slice(0),this.seriesStack=this.previousSeriesStack.slice(0),this.previousSeriesStack=n}},this.restoreOriginalSeriesOrder=function(){var t,e,i,n=[];for(t=0;t<this.series.length;t++)n.push(t);if(this.seriesStack!=n)for(this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack=n,t=1;t<this.seriesStack.length;t++)e=this.series[t].canvas._elem.detach(),i=this.series[t].shadowCanvas._elem.detach(),this.series[t-1].shadowCanvas._elem.after(i),this.series[t-1].canvas._elem.after(e)},this.activateTheme=function(t){this.themeEngine.activate(this,t)}}function F(t,e){return(3.4182054+e)*Math.pow(t,-.3534992)}function j(t){return(Math.exp(2*t)-1)/(Math.exp(2*t)+1)}function h(t){function e(t,e){return t-e==0?Math.pow(10,10):t-e}var i=this.renderer.smooth,n=this.canvas.getWidth(),s=this._xaxis.series_p2u,a=this._yaxis.series_p2u,r=null,o=t.length/n,l=[],h=[];r=isNaN(parseFloat(i))?F(o,.5):parseFloat(i);for(var d,c,u,p,f=[],g=[],m=0,v=t.length;m<v;
17m++)f.push(t[m][1]),g.push(t[m][0]);for(var _=t.length-1,b=1,y=t.length;b<y;b++){for(var w=[],x=[],C=0;C<2;C++){0==(m=b-1+C)||m==_?w[C]=Math.pow(10,10):f[m+1]-f[m]==0||f[m]-f[m-1]==0?w[C]=0:(g[m+1]-g[m])/(f[m+1]-f[m])+(g[m]-g[m-1])/(f[m]-f[m-1])==0?w[C]=0:(f[m+1]-f[m])*(f[m]-f[m-1])<0?w[C]=0:w[C]=2/(e(g[m+1],g[m])/(f[m+1]-f[m])+e(g[m],g[m-1])/(f[m]-f[m-1]))}1==b?w[0]=1.5*(f[1]-f[0])/e(g[1],g[0])-w[1]/2:b==_&&(w[1]=1.5*(f[_]-f[_-1])/e(g[_],g[_-1])-w[0]/2),x[0]=-2*(w[1]+2*w[0])/e(g[b],g[b-1])+6*(f[b]-f[b-1])/Math.pow(e(g[b],g[b-1]),2),x[1]=2*(2*w[1]+w[0])/e(g[b],g[b-1])-6*(f[b]-f[b-1])/Math.pow(e(g[b],g[b-1]),2),p=1/6*(x[1]-x[0])/e(g[b],g[b-1]),u=.5*(g[b]*x[0]-g[b-1]*x[1])/e(g[b],g[b-1]),c=(f[b]-f[b-1]-u*(Math.pow(g[b],2)-Math.pow(g[b-1],2))-p*(Math.pow(g[b],3)-Math.pow(g[b-1],3)))/e(g[b],g[b-1]),d=f[b-1]-c*g[b-1]-u*Math.pow(g[b-1],2)-p*Math.pow(g[b-1],3);var S,k,T=(g[b]-g[b-1])/r;for(C=0,v=r;C<v;C++)S=[],k=g[b-1]+C*T,S.push(k),S.push(d+c*k+u*Math.pow(k,2)+p*Math.pow(k,3)),l.push(S),h.push([s(S[0]),a(S[1])])}return l.push(t[m]),h.push([s(t[m][0]),a(t[m][1])]),[l,h]}function d(t){var e,i,n,s,a,r,o,l,h,d,c,u,p,f,g,m,v,_=this.renderer.smooth,b=this.renderer.tension,y=this.canvas.getWidth(),w=this._xaxis.series_p2u,x=this._yaxis.series_p2u,C=null,S=null,k=null,T=null,D=t.length/y,A=[],I=[];C=isNaN(parseFloat(_))?F(D,.5):parseFloat(_),isNaN(parseFloat(b))||(b=parseFloat(b));for(var E=0,M=t.length-1;E<M;E++)for(null===b?(k=(g=(.6-(f=.3))/2)*j(Math.abs((t[E+1][1]-t[E][1])/(t[E+1][0]-t[E][0]))/(m=2.5)+(v=-1.4))-g*j(v)+f,0<E&&(T=Math.abs((t[E][1]-t[E-1][1])/(t[E][0]-t[E-1][0]))),S=(k+(g*j(T/m+v)-g*j(v)+f))/2):S=b,e=0;e<C;e++)n=(1+2*(i=e/C))*Math.pow(1-i,2),s=i*Math.pow(1-i,2),a=Math.pow(i,2)*(3-2*i),r=Math.pow(i,2)*(i-1),t[E-1]?(o=S*(t[E+1][0]-t[E-1][0]),l=S*(t[E+1][1]-t[E-1][1])):(o=S*(t[E+1][0]-t[E][0]),l=S*(t[E+1][1]-t[E][1])),t[E+2]?(h=S*(t[E+2][0]-t[E][0]),d=S*(t[E+2][1]-t[E][1])):(h=S*(t[E+1][0]-t[E][0]),d=S*(t[E+1][1]-t[E][1])),p=[c=n*t[E][0]+a*t[E+1][0]+s*o+r*h,u=n*t[E][1]+a*t[E+1][1]+s*l+r*d],A.push(p),I.push([w(c),x(u)]);return A.push(t[M]),I.push([w(t[M][0]),x(t[M][1])]),[A,I]}function o(){for(var t=0;t<this.series.length;t++)this.series[t].renderer.constructor==Q.jqplot.LineRenderer&&this.series[t].highlightMouseOver&&(this.series[t].highlightMouseDown=!1)}function c(){this.plugins.lineRenderer&&this.plugins.lineRenderer.highlightCanvas&&(this.plugins.lineRenderer.highlightCanvas.resetCanvas(),this.plugins.lineRenderer.highlightCanvas=null),this.plugins.lineRenderer.highlightedSeriesIndex=null,this.plugins.lineRenderer.highlightCanvas=new Q.jqplot.GenericCanvas,this.eventCanvas._elem.before(this.plugins.lineRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-lineRenderer-highlight-canvas",this._plotDimensions,this)),this.plugins.lineRenderer.highlightCanvas.setContext(),this.eventCanvas._elem.bind("mouseleave",{plot:this},function(t){g(t.data.plot)})}function p(t,e,i,n){var s=t.series[e],a=t.plugins.lineRenderer.highlightCanvas;a._ctx.clearRect(0,0,a._ctx.canvas.width,a._ctx.canvas.height),s._highlightedPoint=i,t.plugins.lineRenderer.highlightedSeriesIndex=e;var r={fillStyle:s.highlightColor};"line"===s.type&&s.renderer.bands.show&&(r.fill=!0,r.closePath=!0),s.renderer.shapeRenderer.draw(a._ctx,n,r),a=null}function g(t){var e=t.plugins.lineRenderer.highlightCanvas;e._ctx.clearRect(0,0,e._ctx.canvas.width,e._ctx.canvas.height);for(var i=0;i<t.series.length;i++)t.series[i]._highlightedPoint=null;t.plugins.lineRenderer.highlightedSeriesIndex=null,t.target.trigger("jqplotDataUnhighlight"),e=null}function m(t,e,i,n,s){if(n){var a=[n.seriesIndex,n.pointIndex,n.data],r=jQuery.Event("jqplotDataMouseOver");if(r.pageX=t.pageX,r.pageY=t.pageY,s.target.trigger(r,a),s.series[a[0]].highlightMouseOver&&a[0]!=s.plugins.lineRenderer.highlightedSeriesIndex){var o=jQuery.Event("jqplotDataHighlight");o.which=t.which,o.pageX=t.pageX,o.pageY=t.pageY,s.target.trigger(o,a),p(s,n.seriesIndex,n.pointIndex,n.points)}}else null==n&&g(s)}function v(t,e,i,n,s){if(n){var a=[n.seriesIndex,n.pointIndex,n.data];if(s.series[a[0]].highlightMouseDown&&a[0]!=s.plugins.lineRenderer.highlightedSeriesIndex){var r=jQuery.Event("jqplotDataHighlight");r.which=t.which,r.pageX=t.pageX,r.pageY=t.pageY,s.target.trigger(r,a),p(s,n.seriesIndex,n.pointIndex,n.points)}}else null==n&&g(s)}function _(t,e,i,n,s){var a=s.plugins.lineRenderer.highlightedSeriesIndex;null!=a&&s.series[a].highlightMouseDown&&g(s)}function b(t,e,i,n,s){if(n){var a=[n.seriesIndex,n.pointIndex,n.data],r=jQuery.Event("jqplotDataClick");r.which=t.which,r.pageX=t.pageX,r.pageY=t.pageY,s.target.trigger(r,a)}}function y(t,e,i,n,s){if(n){var a=[n.seriesIndex,n.pointIndex,n.data],r=s.plugins.lineRenderer.highlightedSeriesIndex;null!=r&&s.series[r].highlightMouseDown&&g(s);var o=jQuery.Event("jqplotDataRightClick");o.which=t.which,o.pageX=t.pageX,o.pageY=t.pageY,s.target.trigger(o,a)}}function w(t){var e;if(10<=(t=Math.abs(t)))e="%d";else if(1<t)e=t===parseInt(t,10)?"%d":"%.1f";else{e="%."+-Math.floor(Math.log(t)/Math.LN10)+"f"}return e}function t(t,e,i){for(var n,s,a,r,o,l,h=Math.floor(i/2),d=Math.ceil(1.5*i),c=Number.MAX_VALUE,u=e-t,p=Q.jqplot.getSignificantFigures,f=0,g=d-h+1;f<g;f++)s=p(n=u/((o=h+f)-1)),(n=Math.abs(i-o)+s.digitsRight)<c?(c=n,a=o,l=s.digitsRight):n===c&&s.digitsRight<l&&(a=o,l=s.digitsRight);return[t,e,a,0===(r=Math.max(l,Math.max(p(t).digitsRight,p(e).digitsRight)))?"%d":"%."+r+"f",n=u/(a-1)]}function x(t,e){var i=t/((e=e||7)-1),n=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),s=i/n;return n<1?5<s?10*n:2<s?5*n:1<s?2*n:n:5<s?10*n:4<s?5*n:3<s?4*n:2<s?3*n:1<s?2*n:n}function C(t,e){e=e||1;var i=Math.floor(Math.log(t)/Math.LN10),n=Math.pow(10,i),s=t/n;return((s/=e)<=.38?.1:s<=1.6?.2:s<=4?.5:s<=8?1:s<=16?2:5)*n}function e(t,e){var i,n=Math.floor(Math.log(t)/Math.LN10),s=Math.pow(10,n),a=t/s;return[(i=(a/=e)<=.38?.1:a<=1.6?.2:a<=4?.5:a<=8?1:a<=16?2:5)*s,i,s]}function a(t,e){return t-e}function r(t){if(null==t||"object"!=typeof t)return t;var e=new t.constructor;for(var i in t)e[i]=r(t[i]);return e}function S(t,e){if(null!=e&&"object"==typeof e)for(var i in e)"highlightColors"==i&&(t[i]=r(e[i])),null!=e[i]&&"object"==typeof e[i]?(t.hasOwnProperty(i)||(t[i]={}),S(t[i],e[i])):t[i]=e[i]}function k(t,e){if(e.indexOf)return e.indexOf(t);for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}function T(t){return null===t?"[object Null]":Object.prototype.toString.call(t)}function D(t,e,i,n){return Q.isPlainObject(t)||(t={effect:t},e===A&&(e={}),Q.isFunction(e)&&(n=e,i=null,e={}),("number"===Q.type(e)||Q.fx.speeds[e])&&(n=i,i=e,e={}),Q.isFunction(i)&&(n=i,i=null),e&&Q.extend(t,e),i=i||e.duration,t.duration=Q.fx.off?0:"number"==typeof i?i:i in Q.fx.speeds?Q.fx.speeds[i]:Q.fx.speeds._default,t.complete=n||e.complete),t}var A;Q.fn.emptyForce=function(){for(var t,e=0;null!=(t=Q(this)[e]);e++){if(1===t.nodeType&&Q.cleanData(t.getElementsByTagName("*")),Q.jqplot.use_excanvas)t.outerHTML="";else for(;t.firstChild;)t.removeChild(t.firstChild);t=null}return Q(this)},Q.fn.removeChildForce=function(t){for(;t.firstChild;)this.removeChildForce(t.firstChild),t.removeChild(t.firstChild)},Q.fn.jqplot=function(){for(var l=[],h=[],t=0,e=arguments.length;t<e;t++)Q.isArray(arguments[t])?l.push(arguments[t]):Q.isPlainObject(arguments[t])&&h.push(arguments[t]);return this.each(function(t){var e,i,n,s,a=Q(this),r=l.length,o=h.length;
vendor: 10,924 bytes, line 17
17n=t<r?l[t]:r?l[r-1]:null,s=t<o?h[t]:o?h[o-1]:null,(e=a.attr("id"))===A&&(e="jqplot_target_"+Q.jqplot.targetCounter++,a.attr("id",e)),i=Q.jqplot(e,n,s),a.data("jqplot",i)})},Q.jqplot=function(t,e,i){var n=null,s=null;3===arguments.length?(n=e,s=i):2===arguments.length&&(Q.isArray(e)?n=e:Q.isPlainObject(e)&&(s=e)),null===n&&null!==s&&s.data&&(n=s.data);var a=new l;if(Q("#"+t).removeClass("jqplot-error"),!Q.jqplot.config.catchErrors)return a.init(t,n,s),a.draw(),a.themeEngine.init.call(a),a;try{return a.init(t,n,s),a.draw(),a.themeEngine.init.call(a),a}catch(o){var r=Q.jqplot.config.errorMessage||o.message;Q("#"+t).append('<div class="jqplot-error-message">'+r+"</div>"),Q("#"+t).addClass("jqplot-error"),document.getElementById(t).style.background=Q.jqplot.config.errorBackground,document.getElementById(t).style.border=Q.jqplot.config.errorBorder,document.getElementById(t).style.fontFamily=Q.jqplot.config.errorFontFamily,document.getElementById(t).style.fontSize=Q.jqplot.config.errorFontSize,document.getElementById(t).style.fontStyle=Q.jqplot.config.errorFontStyle,document.getElementById(t).style.fontWeight=Q.jqplot.config.errorFontWeight}},Q.jqplot.version="1.0.6",Q.jqplot.revision="1138",Q.jqplot.targetCounter=1,Q.jqplot.CanvasManager=function(){"undefined"==typeof Q.jqplot.CanvasManager.canvases&&(Q.jqplot.CanvasManager.canvases=[],Q.jqplot.CanvasManager.free=[]);var s=[];this.getCanvas=function(){var t,e=!0;if(!Q.jqplot.use_excanvas)for(var i=0,n=Q.jqplot.CanvasManager.canvases.length;i<n;i++)if(!0===Q.jqplot.CanvasManager.free[i]){e=!1,t=Q.jqplot.CanvasManager.canvases[i],Q.jqplot.CanvasManager.free[i]=!1,s.push(i);break}return e&&(t=document.createElement("canvas"),s.push(Q.jqplot.CanvasManager.canvases.length),Q.jqplot.CanvasManager.canvases.push(t),Q.jqplot.CanvasManager.free.push(!1)),t},this.initCanvas=function(t){return Q.jqplot.use_excanvas?window.G_vmlCanvasManager.initElement(t):t},this.freeAllCanvases=function(){for(var t=0,e=s.length;t<e;t++)this.freeCanvas(s[t]);s=[]},this.freeCanvas=function(t){if(Q.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==A)window.G_vmlCanvasManager.uninitElement(Q.jqplot.CanvasManager.canvases[t]),Q.jqplot.CanvasManager.canvases[t]=null;else{var e=Q.jqplot.CanvasManager.canvases[t];e.getContext("2d").clearRect(0,0,e.width,e.height),Q(e).unbind().removeAttr("class").removeAttr("style"),Q(e).css({left:"",top:"",position:""}),e.width=0,e.height=0,Q.jqplot.CanvasManager.free[t]=!0}}},Q.jqplot.log=function(){window.console&&window.console.log.apply(window.console,arguments)},Q.jqplot.config={addDomReference:!1,enablePlugins:!1,defaultHeight:300,defaultWidth:400,UTCAdjust:!1,timezoneOffset:new Date(6e4*(new Date).getTimezoneOffset()),errorMessage:"",errorBackground:"",errorBorder:"",errorFontFamily:"",errorFontSize:"",errorFontStyle:"",errorFontWeight:"",catchErrors:!1,defaultTickFormatString:"%.1f",defaultColors:["#4bb2c5","#EAA228","#c5b47f","#579575","#839557","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc","#c747a3","#cddf54","#FBD178","#26B4E3","#bd70c7"],defaultNegativeColors:["#498991","#C08840","#9F9274","#546D61","#646C4A","#6F6621","#6E3F5F","#4F64B0","#A89050","#C45923","#187399","#945381","#959E5C","#C7AF7B","#478396","#907294"],dashLength:4,gapLength:4,dotGapLength:2.5,srcLocation:"jqplot/src/",pluginLocation:"jqplot/src/plugins/"},Q.jqplot.arrayMax=function(t){return Math.max.apply(Math,t)},Q.jqplot.arrayMin=function(t){return Math.min.apply(Math,t)},Q.jqplot.enablePlugins=Q.jqplot.config.enablePlugins,Q.jqplot.support_canvas=function(){return"undefined"==typeof Q.jqplot.support_canvas.result&&(Q.jqplot.support_canvas.result=!!document.createElement("canvas").getContext),Q.jqplot.support_canvas.result},Q.jqplot.support_canvas_text=function(){return"undefined"==typeof Q.jqplot.support_canvas_text.result&&(window.G_vmlCanvasManager!==A&&887<window.G_vmlCanvasManager._version?Q.jqplot.support_canvas_text.result=!0:Q.jqplot.support_canvas_text.result=!(!document.createElement("canvas").getContext||"function"!=typeof document.createElement("canvas").getContext("2d").fillText)),Q.jqplot.support_canvas_text.result},Q.jqplot.use_excanvas=!(Q.support.boxModel&&Q.support.objectAll&&$support.leadingWhitespace||Q.jqplot.support_canvas()),Q.jqplot.preInitHooks=[],Q.jqplot.postInitHooks=[],Q.jqplot.preParseOptionsHooks=[],Q.jqplot.postParseOptionsHooks=[],Q.jqplot.preDrawHooks=[],Q.jqplot.postDrawHooks=[],Q.jqplot.preDrawSeriesHooks=[],Q.jqplot.postDrawSeriesHooks=[],Q.jqplot.preDrawLegendHooks=[],Q.jqplot.addLegendRowHooks=[],Q.jqplot.preSeriesInitHooks=[],Q.jqplot.postSeriesInitHooks=[],Q.jqplot.preParseSeriesOptionsHooks=[],Q.jqplot.postParseSeriesOptionsHooks=[],Q.jqplot.eventListenerHooks=[],Q.jqplot.preDrawSeriesShadowHooks=[],Q.jqplot.postDrawSeriesShadowHooks=[],Q.jqplot.ElemContainer=function(){this._elem,this._plotWidth,this._plotHeight,this._plotDimensions={height:null,width:null}},Q.jqplot.ElemContainer.prototype.createElement=function(t,e,i,n,s){this._offsets=e;var a=i||"jqplot",r=document.createElement(t);return this._elem=Q(r),this._elem.addClass(a),this._elem.css(n),this._elem.attr(s),r=null,this._elem},Q.jqplot.ElemContainer.prototype.getWidth=function(){return this._elem?this._elem.outerWidth(!0):null},Q.jqplot.ElemContainer.prototype.getHeight=function(){return this._elem?this._elem.outerHeight(!0):null},Q.jqplot.ElemContainer.prototype.getPosition=function(){return this._elem?this._elem.position():{top:null,left:null,bottom:null,right:null}},Q.jqplot.ElemContainer.prototype.getTop=function(){return this.getPosition().top},Q.jqplot.ElemContainer.prototype.getLeft=function(){return this.getPosition().left},Q.jqplot.ElemContainer.prototype.getBottom=function(){return this._elem.css("bottom")},Q.jqplot.ElemContainer.prototype.getRight=function(){return this._elem.css("right")},f.prototype=new Q.jqplot.ElemContainer,(f.prototype.constructor=f).prototype.init=function(){Q.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.tickOptions.axis=this.name,null==this.tickOptions.showMark&&(this.tickOptions.showMark=this.showTicks),null==this.tickOptions.showMark&&(this.tickOptions.showMark=this.showTickMarks),null==this.tickOptions.showLabel&&(this.tickOptions.showLabel=this.showTicks),null==this.label||""==this.label?this.showLabel=!1:this.labelOptions.label=this.label,0==this.showLabel&&(this.labelOptions.show=!1),0==this.pad&&(this.pad=1),0==this.padMax&&(this.padMax=1),0==this.padMin&&(this.padMin=1),null==this.padMax&&(this.padMax=(this.pad-1)/2+1),null==this.padMin&&(this.padMin=(this.pad-1)/2+1),this.pad=this.padMax+this.padMin-1,null==this.min&&null==this.max||(this.autoscale=!1),null==this.syncTicks&&-1<this.name.indexOf("y")?this.syncTicks=!0:null==this.syncTicks&&(this.syncTicks=!1),this.renderer.init.call(this,this.rendererOptions)},f.prototype.draw=function(t,e){return this.__ticks&&(this.__ticks=null),this.renderer.draw.call(this,t,e)},f.prototype.set=function(){this.renderer.set.call(this)},f.prototype.pack=function(t,e){this.show&&this.renderer.pack.call(this,t,e),null==this._min&&(this._min=this.min,this._max=this.max,this._tickInterval=this.tickInterval,this._numberTicks=this.numberTicks,this.__ticks=this._ticks)},f.prototype.reset=function(){this.renderer.reset.call(this)},f.prototype.resetScale=function(t){Q.extend(!0,this,{min:null,max:null,numberTicks:null,tickInterval:null,_ticks:[],ticks:[]},t),this.resetDataBounds()},f.prototype.resetDataBounds=function(){var t,e,i=this._dataBounds;i.min=null,i.max=null;for(var n=!!this.show,s=0;s<this._series.length;s++)if((t=this._series[s]).show||this.scaleToHiddenSeries){e=t._plotData,"line"===t._type&&t.renderer.bands.show&&"x"!==this.name.charAt(0)&&(e=[[0,t.renderer.bands._min],[1,t.renderer.bands._max]]);var a=1,r=1;null!=t._type&&"ohlc"==t._type&&(a=3,r=2);for(var o=0,l=e.length;o<l;o++)"xaxis"==this.name||"x2axis"==this.name?((null!=e[o][0]&&e[o][0]<i.min||null==i.min)&&(i.min=e[o][0]),(null!=e[o][0]&&e[o][0]>i.max||null==i.max)&&(i.max=e[o][0])):((null!=e[o][a]&&e[o][a]<i.min||null==i.min)&&(i.min=e[o][a]),(null!=e[o][r]&&e[o][r]>i.max||null==i.max)&&(i.max=e[o][r]));n&&t.renderer.constructor!==Q.jqplot.BarRenderer?n=!1:n&&this._options.hasOwnProperty("forceTickAt0")&&0==this._options.forceTickAt0?n=!1:n&&t.renderer.constructor===Q.jqplot.BarRenderer&&("vertical"==t.barDirection&&"xaxis"!=this.name&&"x2axis"!=this.name?null==this._options.pad&&null==this._options.padMin||(n=!1):"horizontal"!=t.barDirection||"xaxis"!=this.name&&"x2axis"!=this.name||null==this._options.pad&&null==this._options.padMin||(n=!1))}n&&this.renderer.constructor===Q.jqplot.LinearAxisRenderer&&0<=i.min&&(this.padMin=1,this.forceTickAt0=!0)},i.prototype=new Q.jqplot.ElemContainer,(i.prototype.constructor=i).prototype.setOptions=function(t){if(Q.extend(!0,this,t),"inside"==this.placement&&(this.placement="insideGrid"),0<this.xoffset){if("insideGrid"==this.placement)switch(this.location){case"nw":case"w":case"sw":null==this.marginLeft&&(this.marginLeft=this.xoffset+"px"),this.marginRight="0px";break;case"ne":case"e":case"se":default:null==this.marginRight&&(this.marginRight=this.xoffset+"px"),this.marginLeft="0px"}else if("outside"==this.placement)switch(this.location){case"nw":case"w":case"sw":null==this.marginRight&&(this.marginRight=this.xoffset+"px"),this.marginLeft="0px";break;case"ne":case"e":case"se":default:null==this.marginLeft&&(this.marginLeft=this.xoffset+"px"),this.marginRight="0px"}this.xoffset=0}if(0<this.yoffset){if("outside"==this.placement)switch(this.location){case"sw":case"s":case"se":null==this.marginTop&&(this.marginTop=this.yoffset+"px"),this.marginBottom="0px";break;case"ne":case"n":case"nw":default:null==this.marginBottom&&(this.marginBottom=this.yoffset+"px"),this.marginTop="0px"}else if("insideGrid"==this.placement)switch(this.location){case"sw":case"s":case"se":null==this.marginBottom&&(this.marginBottom=this.yoffset+"px"),this.marginTop="0px";break;case"ne":case"n":case"nw":default:null==this.marginTop&&(this.marginTop=this.yoffset+"px"),this.marginBottom="0px"}this.yoffset=0}},i.prototype.init=function(){Q.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},i.prototype.draw=function(t,e){for(var i=0;i<Q.jqplot.preDrawLegendHooks.length;i++)Q.jqplot.preDrawLegendHooks[i].call(this,t);return this.renderer.draw.call(this,t,e)},i.prototype.pack=function(t){this.renderer.pack.call(this,t)},n.prototype=new Q.jqplot.ElemContainer,(n.prototype.constructor=n).prototype.init=function(){Q.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},n.prototype.draw=function(t){return this.renderer.draw.call(this,t)},n.prototype.pack=function(){this.renderer.pack.call(this)},u.prototype=new Q.jqplot.ElemContainer,(u.prototype.constructor=u).prototype.init=function(t,e,
17i){this.index=t,this.gridBorderWidth=e;var n,s,a=this.data,r=[];for(n=0,s=a.length;n<s;n++)if(this.breakOnNull)r.push(a[n]);else{if(null==a[n]||null==a[n][0]||null==a[n][1])continue;r.push(a[n])}if(this.data=r,this.color||(this.color=i.colorGenerator.get(this.index)),this.negativeColor||(this.negativeColor=i.negativeColorGenerator.get(this.index)),this.fillColor||(this.fillColor=this.color),this.fillAlpha){var o=Q.jqplot.normalize2rgb(this.fillColor);o=Q.jqplot.getColorComponents(o);this.fillColor="rgba("+o[0]+","+o[1]+","+o[2]+","+this.fillAlpha+")"}Q.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions,i),this.markerRenderer=new this.markerRenderer,this.markerOptions.color||(this.markerOptions.color=this.color),null==this.markerOptions.show&&(this.markerOptions.show=this.showMarker),this.showMarker=this.markerOptions.show,this.markerRenderer.init(this.markerOptions)},u.prototype.draw=function(t,e,i){var n,s,a,r=e==A?{}:e;for(t=t==A?this.canvas._ctx:t,n=0;n<Q.jqplot.preDrawSeriesHooks.length;n++)Q.jqplot.preDrawSeriesHooks[n].call(this,t,r);for(this.show&&(this.renderer.setGridData.call(this,i),r.preventJqPlotSeriesDrawTrigger||Q(t.canvas).trigger("jqplotSeriesDraw",[this.data,this.gridData]),s=[],s=r.data?r.data:this._stack?this._plotData:this.data,a=r.gridData||this.renderer.makeGridData.call(this,s,i),"line"===this._type&&this.renderer.smooth&&this.renderer._smoothedData.length&&(a=this.renderer._smoothedData),this.renderer.draw.call(this,t,a,r,i)),n=0;n<Q.jqplot.postDrawSeriesHooks.length;n++)Q.jqplot.postDrawSeriesHooks[n].call(this,t,r,i);t=e=i=n=s=a=null},u.prototype.drawShadow=function(t,e,i){var n,s,a,r=e==A?{}:e;for(t=t==A?this.shadowCanvas._ctx:t,n=0;n<Q.jqplot.preDrawSeriesShadowHooks.length;n++)Q.jqplot.preDrawSeriesShadowHooks[n].call(this,t,r);for(this.shadow&&(this.renderer.setGridData.call(this,i),s=[],s=r.data?r.data:this._stack?this._plotData:this.data,a=r.gridData||this.renderer.makeGridData.call(this,s,i),this.renderer.drawShadow.call(this,t,a,r,i)),n=0;n<Q.jqplot.postDrawSeriesShadowHooks.length;n++)Q.jqplot.postDrawSeriesShadowHooks[n].call(this,t,r);t=e=i=n=s=a=null},u.prototype.toggleDisplay=function(t,e){var i,n;i=t.data.series?t.data.series:this,t.data.speed&&(n=t.data.speed),n?i.canvas._elem.is(":hidden")||!i.show?(i.show=!0,i.canvas._elem.removeClass("jqplot-series-hidden"),i.shadowCanvas._elem&&i.shadowCanvas._elem.fadeIn(n),i.canvas._elem.fadeIn(n,e),i.canvas._elem.nextAll(
18".jqplot-point-label.jqplot-series-"+i.index).fadeIn(n)):(i.show=!1,i.canvas._elem.addClass("jqplot-series-hidden"),i.shadowCanvas._elem&&i.shadowCanvas._elem.fadeOut(n),i.canvas._elem.fadeOut(n,e),i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).fadeOut(n)):i.canvas._elem.is(":hidden")||!i.show?(i.show=!0,i.canvas._elem.removeClass("jqplot-series-hidden"),i.shadowCanvas._elem&&i.shadowCanvas._elem.show(),i.canvas._elem.show(0,e),i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).show()):(i.show=!1,i.canvas._elem.addClass("jqplot-series-hidden"),i.shadowCanvas._elem&&i.shadowCanvas._elem.hide(),i.canvas._elem.hide(0,e),i.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+i.index).hide())},s.prototype=new Q.jqplot.ElemContainer,(s.prototype.constructor=s).prototype.init=function(){Q.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},s.prototype.createElement=function(t,e){return this._offsets=t,this.renderer.createElement.call(this,e)},s.prototype.draw=function(){this.renderer.draw.call(this)},Q.jqplot.GenericCanvas=function(){Q.jqplot.ElemContainer.call(this),this._ctx},Q.jqplot.GenericCanvas.prototype=new Q.jqplot.ElemContainer,Q.jqplot.GenericCanvas.prototype.constructor=Q.jqplot.GenericCanvas,Q.jqplot.GenericCanvas.prototype.createElement=function(t,e,i,n){this._offsets=t;var s,a="jqplot";return e!=A&&(a=e),s=n.canvasManager.getCanvas(),null!=i&&(this._plotDimensions=i),s.width=this._plotDimensions.width-this._offsets.left-this._offsets.right,s.height=this._plotDimensions.height-this._offsets.top-this._offsets.bottom,this._elem=Q(s),this._elem.css({position:"absolute",left:this._offsets.left,top:this._offsets.top}),this._elem.addClass(a),s=n.canvasManager.initCanvas(s),s=null,this._elem},Q.jqplot.GenericCanvas.prototype.setContext=function(){return this._ctx=this._elem.get(0).getContext("2d"),this._ctx},Q.jqplot.GenericCanvas.prototype.resetCanvas=function(){this._elem&&(Q.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==A&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce()),this._ctx=null},Q.jqplot.HooksManager=function(){this.hooks=[],this.args=[]},Q.jqplot.HooksManager.prototype.addOnce=function(t,e){e=e||[];for(var i=!1,n=0,s=this.hooks.length;n<s;n++)this.hooks[n]==t&&(i=!0);i||(this.hooks.push(t),this.args.push(e))},Q.jqplot.HooksManager.prototype.add=function(t,e){e=e||[],this.hooks.push(t),this.args.push(e)},Q.jqplot.EventListenerManager=function(){this.hooks=[]},Q.jqplot.EventListenerManager.prototype.addOnce=function(t,e){for(var i,n=!1,s=0,a=this.hooks.length;s<a;s++)(i=this.hooks[s])[0]==t&&i[1]==e&&(n=!0);n||this.hooks.push([t,e])},Q.jqplot.EventListenerManager.prototype.add=function(t,e){this.hooks.push([t,e])};var I=["yMidAxis","xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];Q.jqplot.computeHighlightColors=function(t){var e;if(Q.isArray(t)){e=[];for(var i=0;i<t.length;i++){for(var n=(r=[(a=Q.jqplot.getColorComponents(t[i]))[0],a[1],a[2]])[0]+r[1]+r[2],s=0;s<3;s++)r[s]=660<n?.85*r[s]:.73*r[s]+90,r[s]=parseInt(r[s],10),255<r[s]||r[s];r[3]=.3+.35*a[3],e.push("rgba("+r[0]+","+r[1]+","+r[2]+","+r[3]+")")}}else{var a,r;for(n=(r=[(a=Q.jqplot.getColorComponents(t))[0],a[1],a[2]])[0]+r[1]+r[2],s=0;s<3;s++)r[s]=660<n?.85*r[s]:.73*r[s]+90,r[s]=parseInt(r[s],10),255<r[s]||r[s];r[3]=.3+.35*a[3],e="rgba("+r[0]+","+r[1]+","+r[2]+","+r[3]+")"}return e},Q.jqplot.ColorGenerator=function(i){i=i||Q.jqplot.config.defaultColors;var e=0;this.next=function(){return e<i.length||(e=0),i[e++]},this.previous=function(){return 0<e?i[e--]:(e=i.length-1,i[e])},this.get=function(t){var e=t-i.length*Math.floor(t/i.length);return i[e]},this.setColors=function(t){i=t},this.reset=function(){e=0},this.getIndex=function(){return e},this.setIndex=function(t){e=t}},Q.jqplot.hex2rgb=function(t,e){var i;return 3==(t=t.replace("#","")).length&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),i="rgba("+parseInt(t.slice(0,2),16)+", "+parseInt(t.slice(2,4),16)+", "+parseInt(t.slice(4,6),16),e&&(i+=", "+e),i+=")"},Q.jqplot.rgb2hex=function(t){for(var e=/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *(?:, *[0-9.]*)?\)/,i=t.match(e),n="#",s=1;s<4;s++){var a;-1!=i[s].search(/%/)?1==(a=parseInt(255*i[s]/100,10).toString(16)).length&&(a="0"+a):1==(a=parseInt(i[s],10).toString(16)).length&&(a="0"+a),n+=a}return n},Q.jqplot.normalize2rgb=function(t,e){if(-1!=t.search(/^ *rgba?\(/))return t;if(-1!=t.search(/^ *#?[0-9a-fA-F]?[0-9a-fA-F]/))return Q.jqplot.hex2rgb(t,e);throw"invalid color spec"},Q.jqplot.getColorComponents=function(t){t=Q.jqplot.colorKeywordMap[t]||t;for(var e=/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *,? *([0-9.]* *)?\)/,i=Q.jqplot.normalize2rgb(t).match(e),n=[],s=1;s<4;s++)-1!=i[s].search(/%/)?n[s-1]=parseInt(255*i[s]/100,10):n[s-1]=parseInt(i[s],10);return n[3]=parseFloat(i[4])?parseFloat(i[4]):1,n},Q.jqplot.colorKeywordMap={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb( 0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb( 0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb( 0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",burlywood:"rgb(222, 184, 135)",cadetblue:"rgb( 95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(220, 20, 60)",cyan:"rgb( 0, 255, 255)",darkblue:"rgb( 0, 0, 139)",darkcyan:"rgb( 0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",dar
18kgray:"rgb(169, 169, 169)",darkgreen:"rgb( 0, 100, 0)",darkgrey:"rgb(169, 169, 169)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",darkolivegreen:"rgb( 85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb( 72, 61, 139)",darkslategray:"rgb( 47, 79, 79)",darkslategrey:"rgb( 47, 79, 79)",darkturquoise:"rgb( 0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb( 0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb( 30, 144, 255)",firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb( 34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb( 0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb( 75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgray:"rgb(211, 211, 211)",lightgreen:"rgb(144, 238, 144)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb( 32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb( 0, 255, 0)",limegreen:"rgb( 50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0
18)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb( 0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb( 60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb( 0, 250, 154)",mediumturquoise:"rgb( 72, 209, 204)",mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb( 25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb( 0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb( 65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb( 46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb( 0, 255, 127)",steelblue:"rgb( 70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb( 0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb( 64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)"},Q.jqplot.AxisLabelRenderer=function(t){Q.jqplot.ElemContainer.call(this),this.axis,this.show=!0,this.label="",this.fontFamily=null,this.fontSize=null,this.textColor=null,this._elem,this.escapeHTML=!1,Q.extend(!0,this,t)},Q.jqplot.AxisLabelRenderer.prototype=new Q.jqplot.ElemContainer,Q.jqplot.AxisLabelRenderer.prototype.constructor=Q.jqplot.AxisLabelRenderer,Q.jqplot.AxisLabelRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.AxisLabelRenderer.prototype.draw=function(){return this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=Q('<div style="position:absolute;" class="jqplot-'+this.axis+'-label"></div>'),Number(this.label)&&this._elem.css("white-space","nowrap"),this.escapeHTML?this._elem.text(this.label):this._elem.html(this.label),this.fontFamily&&this._elem.css("font-family",this.fontFamily),this.fontSize&&this._elem.css("font-size",this.fontSize),this.textColor&&this._elem.css("color",this.textColor),this._elem},Q.jqplot.AxisLabelRenderer.prototype.pack=function(){},Q.jqplot.AxisTickRenderer=function(t){Q.jqplot.ElemContainer.call(this),this.mark="outside",this.axis,this.showMark=!0,this.showGridline=!0,this.isMinorTick=!1,this.size=4,this.markSize=6,this.show=!0,this.showLabel=!0,this.label=null,this.value=null,this._styles={},this.formatter=Q.jqplot.DefaultTickFormatter,this.prefix="",this.suffix="",this.formatString="",this.fontFamily,this.fontSize,this.textColor,this.escapeHTML=!1,this._elem,this._breakTick=!1,Q.extend(!0,this,t)},Q.jqplot.AxisTickRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.AxisTickRenderer.prototype=new Q.jqplot.ElemContainer,Q.jqplot.AxisTickRenderer.prototype.constructor=Q.jqplot.AxisTickRenderer,Q.jqplot.AxisTickRenderer.prototype.setTick=function(t,e,i){return this.value=t,this.axis=e,i&&(this.isMinorTick=!0),this},Q.jqplot.AxisTickRenderer.prototype.draw=function(){null===this.label&&(this.label=this.prefix+this.formatter(this.formatString,this.value)+this.suffix);var t={position:"absolute"};for(var e in Number(this.label)&&(t.whitSpace="nowrap"),this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=Q(document.createElement("div")),this._elem.addClass("jqplot-"+this.axis+"-tick"),this.escapeHTML?this._elem.text(this.label):this._elem.html(this.label),this._elem.css(t),this._styles)this._elem.css(e,this._styles[e]);return this.fontFamily&&this._elem.css("font-family",this.fontFamily),this.fontSize&&this._elem.css("font-size",this.fontSize),this.textColor&&this._elem.css("color",this.textColor),this._breakTick&&this._elem.addClass("jqplot-breakTick"),this._elem},Q.jqplot.DefaultTickFormatter=function(t,e){return"number"==typeof e?(t||(t=Q.jqplot.config.defaultTickFormatString),Q.jqplot.sprintf(t,e)):String(e)},Q.jqplot.PercentTickFormatter=function(t,e){return"number"==typeof e?(e*=100,t||(t=Q.jqplot.config.defaultTickFormatString),Q.jqplot.sprintf(t,e)):String(e)},Q.jqplot.AxisTickRenderer.prototype.pack=function(){},Q.jqplot.CanvasGridRenderer=function(){this.shadowRenderer=new Q.jqplot.ShadowRenderer},Q.jqplot.CanvasGridRenderer.prototype.init=function(t){this._ctx,Q.extend(!0,this,t);var e={lineJoin:"miter",lineCap:"round",fill:!1,isarc:!1,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.shadowWidth,closePath:!1,strokeStyle:this.shadowColor};this.renderer.shadowRenderer.init(e)},Q.jqplot.CanvasGridRenderer.prototype.createElement=function(t){var e;this._elem&&(Q.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==A&&(e=this._elem.get(0),window.G_vmlCanvasManager.uninitElement(e),e=null),this._elem.emptyForce(),this._elem=null),e=t.canvasManager.getCanvas();var i=this._plotDimensions.width,n=this._plotDimensions.height;return e.width=i,e.height=n,this._elem=Q(e),this._elem.addClass("jqplot-grid-canvas"),this._elem.css({position:"absolute",left:0,top:0}),e=t.canvasManager.initCanvas(e),this._top=this._offsets.top,this._bottom=n-this._offsets.bottom,this._left=this._offsets.left,this._right=i-this._offsets.right,this._width=this._right-this._left,this._height=this._bottom-this._top,e=null,this._elem},Q.jqplot.CanvasGridRenderer.prototype.draw=function(){function t(t,e,i,n,s){a.save(),null!=(s=s||{}).lineWidth&&0==s.lineWidth||(Q.extend(!0,a,s),a.beginPath(),a.moveTo(t,e),a.lineTo(i,n),a.stroke(),a.restore(
18))}this._ctx=this._elem.get(0).getContext("2d");var e,i,n,s,a=this._ctx,r=this._axes;a.save(),a.clearRect(0,0,this._plotDimensions.width,this._plotDimensions.height),a.fillStyle=this.backgroundColor||this.background,a.fillRect(this._left,this._top,this._width,this._height),a.save(),a.lineJoin="miter",a.lineCap="butt",a.lineWidth=this.gridLineWidth,a.strokeStyle=this.gridLineColor;for(var o=["xaxis","yaxis","x2axis","y2axis"],l=4;0<l;l--){var h=o[l-1],d=(g=(f=r[h])._ticks).length;if(f.show){if(f.drawBaseline){var c={};switch(null!==f.baselineWidth&&(c.lineWidth=f.baselineWidth),null!==f.baselineColor&&(c.strokeStyle=f.baselineColor),h){case"xaxis":t(this._left,this._bottom,this._right,this._bottom,c);break;case"yaxis":t(this._left,this._bottom,this._left,this._top,c);break;case"x2axis":t(this._left,this._bottom,this._right,this._bottom,c);break;case"y2axis":t(this._right,this._bottom,this._right,this._top,c)}}for(var u=d;0<u;u--){if((y=g[u-1]).show){var p=Math.round(f.u2p(y.value))+.5;switch(h){case"xaxis":if(y.showGridline&&this.drawGridlines&&(!y.isMinorTick&&f.drawMajorGridlines||y.isMinorTick&&f.drawMinorGridlines)&&t(p,this._top,p,this._bottom),y.showMark&&y.mark&&(!y.isMinorTick&&f.drawMajorTickMarks||y.isMinorTick&&f.drawMinorTickMarks)){n=y.markSize,s=y.mark;p=Math.round(f.u2p(y.value))+.5;switch(s){case"outside":e=this._bottom,i=this._bottom+n;break;case"inside":e=this._bottom-n,i=this._bottom;break;case"cross":e=this._bottom-n,i=this._bottom+n;break;default:e=this._bottom,i=this._bottom+n}this.shadow&&this.renderer.shadowRenderer.draw(a,[[p,e],[p,i]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:.75*this.gridLineWidth,depth:2,fill:!1,closePath:!1}),t(p,e,p,i)}break;case"yaxis":if(y.showGridline&&this.drawGridlines&&(!y.isMinorTick&&f.drawMajorGridlines||y.isMinorTick&&f.drawMinorGridlines)&&t(this._right,p,this._left,p),y.showMark&&y.mark&&(!y.isMinorTick&&f.drawMajorTickMarks||y.isMinorTick&&f.drawMinorTickMarks)){n=y.markSize,s=y.mark;p=Math.round(f.u2p(y.value))+.5;switch(s){case"outside":e=this._left-n,i=this._left;break;case"inside":e=this._left,i=this._left+n;break;case"cross":e=this._left-n,i=this._left+n;break;default:e=this._left-n,i=this._left}this.shadow&&this.renderer.shadowRenderer.draw(a,[[e,p],[i,p]],{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),t(e,p,i,p,{strokeStyle:f.borderColor})}break;case"x2axis":if(y.showGridline&&this.drawGridlines&&(!y.isMinorTick&&f.drawMajorGridlines||y.isMinorTick&&f.drawMinorGridlines)&&t(p,this._bottom,p,this._top),y.showMark&&y.mark&&(!y.isMinorTick&&f.drawMajorTickMarks||y.isMinorTick&&f.drawMinorTickMarks)){n=y.markSize,s=y.mark;p=Math.round(f.u2p(y.value))+.5;switch(s){case"outside":e=this._top-n,i=this._top;break;case"inside":e=this._top,i=this._top+n;break;case"cross":e=this._top-n,i=this._top+n;break;default:e=this._top-n,i=this._top}this.shadow&&this.renderer.shadowRenderer.draw(a,[[p,e],[p,i]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:.75*this.gridLineWidth,depth:2,fill:!1,closePath:!1}),t(p,e,p,i)}break;case"y2axis":if(y.showGridline&&this.drawGridlines&&(!y.isMinorTick&&f.drawMajorGridlines||y.isMinorTick&&f.drawMinorGridlines)&&t(this._left,p,this._right,p),y.showMark&&y.mark&&(!y.isMinorTick&&f.drawMajorTickMarks||y.isMinorTick&&f.drawMinorTickMarks)){n=y.markSize,s=y.mark;p=Math.round(f.u2p(y.value))+.5;switch(s){case"outside":e=this._right,i=this._right+n;break;case"inside":e=this._right-n,i=this._right;break;case"cross":e=this._right-n,i=this._right+n;break;default:e=this._right,i=this._right+n}this.shadow&&this.renderer.shadowRenderer.draw(a,[[e,p],[i,p]],{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),t(e,p,i,p,{strokeStyle:f.borderColor})}}}}y=null}g=f=null}o=["y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"];for(l=7;0<l;l--){var f,g=(f=r[o[l-1]])._ticks;if(f.show){var m=g[f.numberTicks-1],v=g[0],_=f.getLeft(),b=[[_,m.getTop()+m.getHeight()/2],[_,v.getTop()+v.getHeight()/2+1]];this.shadow&&this.renderer.shadowRenderer.draw(a,b,{lineCap:"butt",fill:!1,closePath:!1}),t(b[0][0],b[0][1],b[1][0],b[1][1],{lineCap:"butt",strokeStyle:f.borderColor,lineWidth:f.borderWidth});for(u=g.length;0<u;u--){var y;n=(y=g[u-1]).markSize,s=y.mark;p=Math.round(f.u2p(y.value))+.5;if(y.showMark&&y.mark){switch(s){case"outside":i=(e=_)+n;break;case"inside":e=_-n,i=_;break;case"cross":e=_-n,i=_+n;break;default:i=(e=_)+n}b=[[e,p],[i,p]],this.shadow&&this.renderer.shadowRenderer.draw(a,b,{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),t(e,p,i,p,{strokeStyle:f.borderColor})}y=null}v=null}g=f=null}
18if(a.restore(),this.shadow){b=[[this._left,this._bottom],[this._right,this._bottom],[this._right,this._top]];this.renderer.shadowRenderer.draw(a,b)}0!=this.borderWidth&&this.drawBorder&&(t(this._left,this._top,this._right,this._top,{lineCap:"round",strokeStyle:r.x2axis.borderColor,lineWidth:r.x2axis.borderWidth}),t(this._right,this._top,this._right,this._bottom,{lineCap:"round",strokeStyle:r.y2axis.borderColor,lineWidth:r.y2axis.borderWidth}),t(this._right,this._bottom,this._left,this._bottom,{lineCap:"round",strokeStyle:r.xaxis.borderColor,lineWidth:r.xaxis.borderWidth}),t(this._left,this._bottom,this._left,this._top,{lineCap:"round",strokeStyle:r.yaxis.borderColor,lineWidth:r.yaxis.borderWidth})),a.restore(),r=a=null},Q.jqplot.DivTitleRenderer=function(){},Q.jqplot.DivTitleRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.DivTitleRenderer.prototype.draw=function(){this._elem&&(this._elem.emptyForce(),this._elem=null);this.renderer;var t=document.createElement("div");if(this._elem=Q(t),this._elem.addClass("jqplot-title"),this.text){if(this.text){var e;this.color?e=this.color:this.textColor&&(e=this.textColor);var i={position:"absolute",top:"0px",left:"0px"};this._plotWidth&&(i.width=this._plotWidth+"px"),this.fontSize&&(i.fontSize=this.fontSize),"string"==typeof this.textAlign?i.textAlign=this.textAlign:i.textAlign="center",e&&(i.color=e),this.paddingBottom&&(i.paddingBottom=this.paddingBottom),this.fontFamily&&(i.fontFamily=this.fontFamily),this._elem.css(i),this.escapeHtml?this._elem.text(this.text):this._elem.html(this.text)}}else this.show=!1,this._elem.height(0),this._elem.width(0);return t=null,this._elem},Q.jqplot.DivTitleRenderer.prototype.pack=function(){};var E=.1;Q.jqplot.LinePattern=function(o,l){var t={dotted:[E,Q.jqplot.config.dotGapLength],dashed:[Q.jqplot.config.dashLength,Q.jqplot.config.gapLength],solid:null};if("string"==typeof l)if("."===l[0]||"-"===l[0]){var e=l;l=[];for(var i=0,n=e.length;i<n;i++){if("."===e[i])l.push(E);else{if("-"!==e[i])continue;l.push(Q.jqplot.config.dashLength)}l.push(Q.jqplot.config.gapLength)}}else l=t[l];if(!l||!l.length)return o;var h=0,d=l[0],c=0,u=0,s=0,a=0,r=function(t,e){var i=o.lineWidth,n=t-c,s=e-u,a=Math.sqrt(n*n+s*s);if(0<a&&0<i)for(n/=a,s/=a;;){var r=i*d;if(!(r<a)){c=t,u=e,0==(1&h)?o.lineTo(c,u):o.moveTo(c,u),d-=a/i;break}c+=r*n,u+=r*s,0==(1&h)?o.lineTo(c,u):o.moveTo(c,u),a-=r,++h>=l.length&&(h=0),d=l[h]}},p=function(){r(s,a)};return{moveTo:function(t,e){o.moveTo(t,e),s=c=t,a=u=e},lineTo:r,beginPath:function(){o.beginPath()},closePath:p}},Q.jqplot.LineRenderer=function(){this.shapeRenderer=new Q.jqplot.ShapeRenderer,this.shadowRenderer=new Q.jqplot.ShadowRenderer},Q.jqplot.LineRenderer.prototype.init=function(t,e){t=t||{},this._type="line",this.renderer.animation={show:!1,direction:"left",speed:2500,_supported:!0},this.renderer.smooth=!1,this.renderer.tension=null,this.renderer.constrainSmoothing=!0,this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[],this.renderer.bandData=[],this.renderer.bands={show:!1,hiData:[],lowData:[],color:this.color,showLines:!1,fill:!0,fillColor:null,_min:null,_max:null,interval:"3%"};var i={highlightMouseOver:t.highlightMouseOver,highlightMouseDown:t.highlightMouseDown,highlightColor:t.highlightColor};delete t.highlightMouseOver,delete t.highlightMouseDown,delete t.highlightColor,Q.extend(!0,this.renderer,t),this.renderer.options=t,1<this.renderer.bandData.length&&(!t.bands||null==t.bands.show)?this.renderer.bands.show=!0:t.bands&&null==t.bands.show&&null!=t.bands.interval&&(this.renderer.bands.show=!0),this.fill&&(this.renderer.bands.show=!1),this.renderer.bands.show&&this.renderer.initBands.call(this,this.renderer.options,e),this._stack&&(this.renderer.smooth=!1);var n={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:!1,strokeStyle:this.color,fillStyle:this.fillColor,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill};this.renderer.shapeRenderer.init(n);var s=t.shadowOffset;null==s&&(s=2.5<this.lineWidth?1.25*(1+.6*(Math.atan(this.lineWidth/2.5)/.785398163-1)):1.25*Math.atan(this.lineWidth/2.5)/.785398163);var a={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:!1,angle:this.shadowAngle,offset:s,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill};if(this.renderer.shadowRenderer.init(a),this._areaPoints=[],this._boundingBox=[[],[]],!this.isTrendline&&this.fill||this.renderer.bands.show){if(this.highlightMouseOver=!0,this.highlightMouseDown=!1,this.highlightColor=null,i.highlightMouseDown&&null==i.highlightMouseOver&&(i.highlightMouseOver=!1),Q.extend(!0,this,{highlightMouseOver:i.highlightMouseOver,highlightMouseDown:i.highlightMouseDown,highlightColor:i.highlightColor}),!this.highlightColor){var r=this.renderer.bands.show?this.renderer.bands.fillColor:this.fillColor;this.highlightColor=Q.jqplot.computeHighlightColors(r)}this.highlighter&&(this.highlighter.show=!1)}!this.isTrendline&&e&&(e.plugins.lineRenderer={},e.postInitHooks.addOnce(o),e.postDrawHooks.addOnce(c),e.eventListenerHooks.addOnce("jqplotMouseMove",m),e.eventListenerHooks.addOnce("jqplotMouseDown",v),e.eventListenerHooks.addOnce("jqplotMouseUp",_),e.eventListenerHooks.addOnce("jqplotClick",b),e.eventListenerHooks.addOnce("jqplotRightClick",y))},Q.jqplot.LineRenderer.prototype.initBands=function(t){var e=t.bandData||[],i=this.renderer.bands;i.hiData=[],i.lowData=[];var n=this.data;if(i._max=null,i._min=null,2==e.length)if(Q.isArray(e[0][0])){for(var s,a=0,r=0,o=0,l=e[0].length;o<l;o++)(null!=(s=e[0][o])[1]&&s[1]>i._max||null==i._max)&&(i._max=s[1]),(null!=s[1]&&s[1]<i._min||null==i._min)&&(i._min=s[1]);for(o=0,l=e[1].length;o<l;o++)(null!=(s=e[1][o])[1]&&s[1]>i._max||null==i._max)&&(i._max=s[1],r=1),(null!=s[1]&&s[1]<i._min||null==i._min)&&(i._min=s[1],a=1);r===a&&(i.show=!1),i.hiData=e[r],i.lowData=e[a]}else if(e[0].length===n.length&&e[1].length===n.length){var h=(d=e[0][0]>e[1][0]?0:1)?0:1;for(o=0,l=n.length;o<l;o++)i.hiData.push([n[o][0],e[d][o]]),i.lowData.push([n[o][0],e[h][o]])}else i.show=!1;else if(2<e.length&&!Q.isArray(e[0][0])){var d;for(h=(d=e[0][0]>e[0][1]?0:1)?0:1,o=0,l=e.length;o<l;o++)i.hiData.push([n[o][0],e[o][d]]),i.lowData.push([n[o][0],e[o][h
18]])}else{var c=i.interval,u=null,p=null,f=null,g=null;if(Q.isArray(c)?(u=c[0],p=c[1]):u=c,isNaN(u)?"%"===u.charAt(u.length-1)&&(f="multiply",u=parseFloat(u)/100+1):(u=parseFloat(u),f="add"),null!==p&&isNaN(p)?"%"===p.charAt(p.length-1)&&(g="multiply",p=parseFloat(p)/100+1):null!==p&&(p=parseFloat(p),g="add"),null!==u){if(null===p&&(p=-u,"multiply"===(g=f)&&(p+=2)),u<p){var m=u;u=p,p=m,m=f,f=g,g=m}for(o=0,l=n.length;o<l;o++){switch(f){case"add":i.hiData.push([n[o][0],n[o][1]+u]);break;case"multiply":i.hiData.push([n[o][0],n[o][1]*u])}switch(g){case"add":i.lowData.push([n[o][0],n[o][1]+p]);break;case"multiply":i.lowData.push([n[o][0],n[o][1]*p])}}}else i.show=!1}var v=i.hiData,_=i.lowData;for(o=0,l=v.length;o<l;o++)(null!=v[o][1]&&v[o][1]>i._max||null==i._max)&&(i._max=v[o][1]);for(o=0,l=_.length;o<l;o++)(null!=_[o][1]&&_[o][1]<i._min||null==i._min)&&(i._min=_[o][1]);if(null===i.fillColor){var b=Q.jqplot.getColorComponents(i.color);b[3]=.5*b[3],i.fillColor="rgba("+b[0]+", "+b[1]+", "+b[2]+", "+b[3]+")"}},Q.jqplot.LineRenderer.prototype.setGridData=function(){var t=this._xaxis.series_u2p,e=this._yaxis.series_u2p,i=this._plotData,n=this._prevPlotData;this.gridData=[],this._prevGridData=[],this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[];for(var s,a=this.renderer.bands,r=!1,o=0,l=i.length;o<l;o++)null!=i[o][0]&&null!=i[o][1]?this.gridData.push([t.call(this._xaxis,i[o][0]),e.call(this._yaxis,i[o][1])]):null==i[o][0]?(r=!0,this.gridData.push([null,e.call(this._yaxis,i[o][1])])):null==i[o][1]&&(r=!0,this.gridData.push([t.call(this._xaxis,i[o][0]),null])),null!=n[o]&&null!=n[o][0]&&null!=n[o][1]?this._prevGridData.push([t.call(this._xaxis,n[o][0]),e.call(this._yaxis,n[o][1])]):null!=n[o]&&null==n[o][0]?this._prevGridData.push([null,e.call(this._yaxis,n[o][1])]):null!=n[o]&&null!=n[o][0]&&null==n[o][1]&&this._prevGridData.push([t.call(this._xaxis,n[o][0]),null]);if(r&&(this.renderer.smooth=!1,"line"===this._type&&(a.show=!1)),"line"===this._type&&a.show){for(o=0,l=a.hiData.length;o<l;o++)this.renderer._hiBandGridData.push([t.call(this._xaxis,a.hiData[o][0]),e.call(this._yaxis,a.hiData[o][1])]);for(o=0,l=a.lowData.length;o<l;o++)this.renderer._lowBandGridData.push([t.call(this._xaxis,a.lowData[o][0]),e.call(this._yaxis,a.lowData[o][1])])}"line"===this._type&&this.renderer.smooth&&2<this.gridData.length&&(this.renderer.constrainSmoothing?(s=h.call(this,this.gridData),this.renderer._smoothedData=s[0],this.renderer._smoothedPlotData=s[1],a.show&&(s=h.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=s[0],s=h.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=s[0])):(s=d.call(this,this.gridData),this.renderer._smoothedData=s[0],this.renderer._smoothedPlotData=s[1],a.show&&(s=d.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=s[0],s=d.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=s[0])),s=null)},Q.jqplot.LineRenderer.prototype.makeGridData=function(t){var e=this._xaxis.series_u2p,i=this._yaxis.series_u2p,n=[];this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[];for(var s,a=this.renderer.bands,r=!1,o=0;o<t.length;o++)null!=t[o][0]&&null!=t[o][1]?n.push([e.call(this._xaxis,t[o][0]),i.call(this._yaxis,t[o][1])]):null==t[o][0]?(r=!0,n.push([null,i.call(this._yaxis,t[o][1])])):null==t[o][1]&&(r=!0,n.push([e.call(this._xaxis,t[o][0]),null]));if(r&&(this.renderer.smooth=!1,"line"===this._type&&(a.show=!1)),"line"===this._type&&a.show){o=0;for(var l=a.hiData.length;o<l;o++)this.renderer._hiBandGridData.push([e.call(this._xaxis,a.hiData[o][0]),i.call(this._yaxis,a.hiData[o][1])]);for(o=0,l=a.lowData.length;o<l;o++)this.renderer._lowBandGridData.push([e.call(this._xaxis,a.lowData[o][0]),i.call(this._yaxis,a.lowData[o][1])])}"line"===this._type&&this.renderer.smooth&&2<n.length&&(this.renderer.constrainSmoothing?(s=h.c
vendor: 6,122 bytes, lines 18-19
18all(this,n),this.renderer._smoothedData=s[0],this.renderer._smoothedPlotData=s[1],a.show&&(s=h.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=s[0],s=h.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=s[0])):(s=d.call(this,n),this.renderer._smoothedData=s[0],this.renderer._smoothedPlotData=s[1],a.show&&(s=d.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=s[0],s=d.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=s[0])),s=null);return n},Q.jqplot.LineRenderer.prototype.draw=function(t,e,i){var n,s,a,r=Q.extend(!0,{},i),o=r.shadow!=A?r.shadow:this.shadow,l=r.showLine!=A?r.showLine:this.showLine,h=r.fill!=A?r.fill:this.fill,d=r.fillAndStroke!=A?r.fillAndStroke:this.fillAndStroke;if(t.save(),e.length){if(l)if(h){if(this.fillToZero){var c=this.negativeColor;this.useNegativeColors||(c=r.fillStyle);var u=r.fillStyle;if(d)var p=e.slice(0);if(0!=this.index&&this._stack){for(v=(b=this._prevGridData).length;0<v;v--)e.push(b[v-1]);o&&this.renderer.shadowRenderer.draw(t,e,r),this._areaPoints=e,this.renderer.shapeRenderer.draw(t,e,r)}else{var f=[],g=this.renderer.smooth?this.renderer._smoothedPlotData:this._plotData;this._areaPoints=[];var m=this._yaxis.series_u2p(this.fillToValue);this._xaxis.series_u2p(this.fillToValue);if(r.closePath=!0,"y"==this.fillAxis){f.push([e[0][0],m]),this._areaPoints.push([e[0][0],m]);for(var v=0;v<e.length-1;v++)if(f.push(e[v]),this._areaPoints.push(e[v]),g[v][1]*g[v+1][1]<0){g[v][1]<0?(!0,r.fillStyle=c):(!1,r.fillStyle=u);var _=e[v][0]+(e[v+1][0]-e[v][0])*(m-e[v][1])/(e[v+1][1]-e[v][1]);f.push([_,m]),this._areaPoints.push([_,m]),o&&this.renderer.shadowRenderer.draw(t,f,r),this.renderer.shapeRenderer.draw(t,f,r),f=[[_,m]]}g[e.length-1][1]<0?(!0,r.fillStyle=c):(!1,r.fillStyle=u),f.push(e[e.length-1]),this._areaPoints.push(e[e.length-1]),f.push([e[e.length-1][0],m]),this._areaPoints.push([e[e.length-1][0],m])}o&&this.renderer.shadowRenderer.draw(t,f,r),this.renderer.shapeRenderer.draw(t,f,r)}}else{if(d)p=e.slice(0);if(0!=this.index&&this._stack){var b;for(v=(b=this._prevGridData).length;0<v;v--)e.push(b[v-1])}else{var y=t.canvas.height;e.unshift([e[0][0],y]);var w=e.length;e.push([e[w-1][0],y])}this._areaPoints=e,o&&this.renderer.shadowRenderer.draw(t,e,r),this.renderer.shapeRenderer.draw(t,e,r)}if(d){var x=Q.extend(!0,{},r,{fill:!1,closePath:!1});if(this.renderer.shapeRenderer.draw(t,p,x),this.markerRenderer.show)for(this.renderer.smooth&&(p=this.gridData),v=0;v<p.length;v++)this.markerRenderer.draw(p[v][0],p[v][1],t,r.markerOptions)}}else{if(this.renderer.bands.show){var C,S=Q.extend(!0,{},r);this.renderer.bands.showLines&&(C=this.renderer.smooth?this.renderer._hiBandSmoothedData:this.renderer._hiBandGridData,this.renderer.shapeRenderer.draw(t,C,r),C=this.renderer.smooth?this.renderer._lowBandSmoothedData:this.renderer._lowBandGridData,this.renderer.shapeRenderer.draw(t,C,S)),this.renderer.bands.fill&&(C=this.renderer.smooth?this.renderer._hiBandSmoothedData.concat(this.renderer._lowBandSmoothedData.reverse()):this.renderer._hiBandGridData.concat(this.renderer._lowBandGridData.reverse()),this._areaPoints=C,S.closePath=!0,S.fill=!0,S.fillStyle=this.renderer.bands.fillColor,this.renderer.shapeRenderer.draw(t,C,S))}o&&this.renderer.shadowRenderer.draw(t,e,r),this.renderer.shapeRenderer.draw(t,e,r)}var k=s=n=a=null;for(v=0;v<this._areaPoints.length;v++){var T=this._areaPoints[v];(k>T[0]||null==k)&&(k=T[0]),(a<T[1]||null==a)&&(a=T[1]),(s<T[0]||null==s)&&(
19s=T[0]),(n>T[1]||null==n)&&(n=T[1])}if("line"===this.type&&this.renderer.bands.show&&(a=this._yaxis.series_u2p(this.renderer.bands._min),n=this._yaxis.series_u2p(this.renderer.bands._max)),this._boundingBox=[[k,a],[s,n]],this.markerRenderer.show&&!h)for(this.renderer.smooth&&(e=this.gridData),v=0;v<e.length;v++)null!=e[v][0]&&null!=e[v][1]&&this.markerRenderer.draw(e[v][0],e[v][1],t,r.markerOptions)}t.restore()},Q.jqplot.LineRenderer.prototype.drawShadow=function(){},Q.jqplot.LinearAxisRenderer=function(){},Q.jqplot.LinearAxisRenderer.prototype.init=function(t){this.breakPoints=null,this.breakTickLabel="&asymp;",this.drawBaseline=!0,this.baselineWidth=null,this.baselineColor=null,this.forceTickAt0=!1,this.forceTickAt100=!1,this.tickInset=0,this.minorTicks=0,this.alignTicks=!1,this._autoFormatString="",this._overrideFormatString=!1,this._scalefact=1,Q.extend(!0,this,t),this.breakPoints&&(Q.isArray(this.breakPoints)?(this.breakPoints.length<2||this.breakPoints[1]<=this.breakPoints[0])&&(this.breakPoints=null):this.breakPoints=null),null!=this.numberTicks&&this.numberTicks<2&&(this.numberTicks=2),this.resetDataBounds()},Q.jqplot.LinearAxisRenderer.prototype.draw=function(t,e){if(this.show){this.renderer.createTicks.call(this,e);if(this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=Q(document.createElement("div")),this._elem.addClass("jqplot-axis jqplot-"+this.name),this._elem.css("position","absolute"),"xaxis"==this.name||"x2axis"==this.name?this._elem.width(this._plotDimensions.width):this._elem.height(this._plotDimensions.height),this.labelOptions.axis=this.name,this._label=new this.labelRenderer(this.labelOptions),this._label.show){var i=this._label.draw(t,e);i.appendTo(this._elem),i=null}for(var n,s=this._ticks,a=0;a<s.length;a++)(n=s[a]).show&&n.showLabel&&(!n.isMinorTick||this.showMinorTicks)&&this._elem.append(n.draw(t,e));s=n=null}return this._elem},Q.jqplot.LinearAxisRenderer.prototype.reset=function(){this.min=this._options.min,this.max=this._options.max,this.tickInterval=this._options.tickInterval,this.numberTicks=this._options.numberTicks,this._autoFormatString="",this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString&&(this.tickOptions.formatString="")},Q.jqplot.LinearAxisRenderer.prototype.set=function(){var t,e=0,i=0,n=0,s=null!=this._label&&this._label.show;if(this.show){for(var a,r=this._ticks,o=0;o<r.length;o++)(a=r[o])._breakTick||!a.show||!a.showLabel||a.isMinorTick&&!this.showMinorTicks||e<(t="xaxis"==this.name||"x2axis"==this.name?a._elem.outerHeight(!0):a._elem.outerWidth(!0))&&(e=t);
19r=a=null,s&&(i=this._label._elem.outerWidth(!0),n=this._label._elem.outerHeight(!0)),"xaxis"==this.name?(e+=n,this._elem.css({height:e+"px",left:"0px",bottom:"0px"})):"x2axis"==this.name?(e+=n,this._elem.css({height:e+"px",left:"0px",top:"0px"})):("yaxis"==this.name?(e+=i,this._elem.css({width:e+"px",left:"0px",top:"0px"})):(e+=i,this._elem.css({width:e+"px",right:"0px",top:"0px"})),s&&this._label.constructor==Q.jqplot.AxisLabelRenderer&&this._label._elem.css("width",i+"px"))}},Q.jqplot.LinearAxisRenderer.prototype.createTicks=function(t){this._ticks;var e,i,n,s=this.ticks,a=this.name,r=this._dataBounds,o="x"===this.name.charAt(0)?this._plotDimensions.width:this._plotDimensions.height,l=this.min,h=this.max,d=this.numberTicks,c=this.tickInterval,u=30;if(this._scalefact=(Math.max(o,u+1)-u)/300,s.length){for(M=0;M<s.length;M++){var p=s[M],f=new this.tickRenderer(this.tickOptions);Q.isArray(p)?(f.value=p[0],this.breakPoints?p[0]==this.breakPoints[0]?(f.label=this.breakTickLabel,f._breakTick=!0,f.showGridline=!1,f.showMark=!1):(p[0]>this.breakPoints[0]&&p[0]<=this.breakPoints[1]&&(f.show=!1,f.showGridline=!1),f.label=p[1]):f.label=p[1],f.setTick(p[0],this.name)):Q.isPlainObject(p)?(Q.extend(!0,f,p),f.axis=this.name):(f.value=p,this.breakPoints&&(p==this.breakPoints[0]?(f.label=this.breakTickLabel,f._breakTick=!0,f.showGridline=!1,f.showMark=!1):p>this.breakPoints[0]&&p<=this.breakPoints[1]&&(f.show=!1,f.showGridline=!1)),f.setTick(p,this.name)),this._ticks.push(f)}this.numberTicks=s.length,this.min=this._ticks[0].value,this.max=this._ticks[this.numberTicks-1].value,this.tickInterval=(this.max-this.min)/(this.numberTicks-1)}else{o="xaxis"==a||"x2axis"==a?this._plotDimensions.width:this._plotDimensions.height;var g=this.numberTicks;this.alignTicks&&("x2axis"===this.name&&t.axes.xaxis.show?g=t.axes.xaxis.numberTicks:"y"===this.name.charAt(0)&&"yaxis"!==this.name&&"yMidAxis"!==this.name&&t.axes.yaxis.show&&(g=t.axes.yaxis.numberTicks)),e=null!=this.min?this.min:r.min;var m,v,_,b=(i=null!=this.max?this.max:r.max)-e;if(null!=this.tickOptions&&this.tickOptions.formatString||(this._overrideFormatString=!0),null==this.min||null==this.max&&null==this.tickInterval&&!this.autoscale){this.forceTickAt0&&(0<e&&(e=0),i<0&&(i=0)),this.forceTickAt100&&(100<e&&(e=100),i<100&&(i=100));var y=!1,w=!1;null!=this.min?y=!0:null!=this.max&&(w=!0);var x=Q.jqplot.LinearTickGenerator(e,i,this._scalefact,g,y,w),C=null!=this.min?e:e+b*(this.padMin-1),S=null!=this.max?i:i-b*(this.padMax-1);(e<C||S<i)&&(C=null!=this.min?e:e-b*(this.padMin-1),S=null!=this.max?i:i+b*(this.padMax-1),x=Q.jqplot.LinearTickGenerator(C,S,this._scalefact,g,y,w)),this.min=x[0],this.max=x[1],this.numberTicks=x[2],this._autoFormatString=x[3],this.tickInterval=x[4]}else{if(e==i){var k=.05;0<e&&(k=Math.max(Math.log(e)/Math.LN10,.05)),e-=k,i+=k}if(this.autoscale&&null==this.min&&null==this.max){for(var T,D,A,I=!1,E=!1,M=0;M<this._series.length;M++){var F=this._series[M],j="x"==F.fillAxis?F._xaxis.name:F._yaxis.name;if(this.name==j){for(var P=F._plotValues[F.fillAxis],R=P[0],H=P[0],L=1;L<P.length;L++)P[L]<R?R=P[L]:P[L]>H&&(H=P[L]);var N=(H-R)/H;F.renderer.constructor==Q.jqplot.BarRenderer?0<=R&&(F.fillToZero||.1<N)?I=!0:(I=!1,E=!!(F.fill&&F.fillToZero&&R<0&&0<H)):F.fill?0<=R&&(F.fillToZero||.1<N)?I=!0:E=R<0&&0<H&&F.fillToZero?!(I=!1):I=!1:R<0&&(I=!1)}}if(I)this.numberTicks=2+Math.ceil((o-(this.tickSpacing-1))/this.tickSpacing),l=this.min=0,(D=i/(this.numberTicks-1))/(O=Math.pow(10,Math.abs(Math.floor(Math.log(D)/Math.LN10))))==parseInt(D/O,10)&&(D+=O),this.tickInterval=Math.ceil(D/O)*O,this.max=this.tickInterval*(this.numberTicks-1);else if(E){this.numberTicks=2+Math.ceil((o-(this.tickSpacing-1))/this.tickSpacing);var q=Math.ceil(Math.abs(e)/b*(this.numberTicks-1)),$=this.numberTicks-1-q;D=Math.max(Math.abs(e/q),Math.abs(i/$)),O=Math.pow(10,Math.abs(Math.floor(Math.log(D)/Math.LN10))),this.tickInterval=Math.ceil(D/O)*O,this.max=this.tickInterval*$,this.min=-this.tickInterval*q}else null==this.numberTicks&&(this.tickInterval?this.numberTicks=3+Math.ceil(b/this.tickInterval):this.numberTicks=2+Math.ceil((o-(this.tickSpacing-1))/this.tickSpacing)),null==this.tickInterval?(O=(D=b/(this.numberTicks-1))<1?Math.pow(10,Math.abs(Math.floor(Math.log(D)/Math.LN10))):1,this.tickInterval=Math.ceil(D*O*this.pad)/O):O=1/this.tickInterval,A=((T=this.tickInterval*(this.numberTicks-1))-b)/2,null==this.min&&(this.min=Math.floor(O*(e-A))/O),null==this.max&&(this.max=this.min+T);if((z=Q.jqplot.getSignificantFigures(this.tickInterval)).digitsLeft>=z.significantDigits)V="%d";
19else{var O=Math.max(0,5-z.digitsLeft);V="%."+(O=Math.min(O,z.digitsRight))+"f"}this._autoFormatString=V}else{var z,V;if(m=null!=this.min?this.min:e-b*(this.padMin-1),b=(v=null!=this.max?this.max:i+b*(this.padMax-1))-m,null==this.numberTicks&&(null!=this.tickInterval?this.numberTicks=Math.ceil((v-m)/this.tickInterval)+1:this.numberTicks=100<o?parseInt(3+(o-100)/75,10):2),null==this.tickInterval&&(this.tickInterval=b/(this.numberTicks-1)),null==this.max&&(v=m+this.tickInterval*(this.numberTicks-1)),null==this.min&&(m=v-this.tickInterval*(this.numberTicks-1)),(z=Q.jqplot.getSignificantFigures(this.tickInterval)).digitsLeft>=z.significantDigits)V="%d";else{O=Math.max(0,5-z.digitsLeft);V="%."+(O=Math.min(O,z.digitsRight))+"f"}this._autoFormatString=V,this.min=m,this.max=v}if(this.renderer.constructor==Q.jqplot.LinearAxisRenderer&&""==this._autoFormatString){b=this.max-this.min;var B,W=0;if(B=(B=new this.tickRenderer(this.tickOptions).formatString||Q.jqplot.config.defaultTickFormatString).match(Q.jqplot.sprintf.regex)[0]){if(-1<B.search(/[fFeEgGpP]/)){var U=B.match(/\%\.(\d{0,})?[eEfFgGpP]/);W=U?parseInt(U[1],10):6}else-1<B.search(/[di]/)&&(W=0);var G=Math.pow(10,-W);if(this.tickInterval<G)if(null==d&&null==c)if(this.tickInterval=G,null==h&&null==l)this.min=Math.floor(this._dataBounds.min/G)*G,this.min==this._dataBounds.min&&(this.min=this._dataBounds.min-this.tickInterval),this.max=Math.ceil(this._dataBounds.max/G)*G,this.max==this._dataBounds.max&&(this.max=this._dataBounds.max+this.tickInterval),Y=(Y=(this.max-this.min)/this.tickInterval).toFixed(11),Y=Math.ceil(Y),this.numberTicks=Y+1;else if(null==h){Y=(Y=(this._dataBounds.max-this.min)/this.tickInterval).toFixed(11),this.numberTicks=Math.ceil(Y)+2,this.max=this.min+this.tickInterval*(this.numberTicks-1)}else if(null==l){var Y;Y=(Y=(this.max-this._dataBounds.min)/this.tickInterval).toFixed(11),this.numberTicks=Math.ceil(Y)+2,this.min=this.max-this.tickInterval*(this.numberTicks-1)}else this.numberTicks=Math.ceil((h-l)/this.tickInterval)+1,this.min=Math.floor(l*Math.pow(10,W))/Math.pow(10,W),this.max=Math.ceil(h*Math.pow(10,W))/Math.pow(10,W),this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1}}}this._overrideFormatString&&""!=this._autoFormatString&&(this.tickOptions=this.tickOptions||{},this.tickOptions.formatString=this._autoFormatString);for(M=0;M<this.numberTicks;M++){if(n=this.min+M*this.tickInterval,(f=new this.tickRenderer(this.tickOptions)).setTick(n,this.name),this._ticks.push(f),M<this.numberTicks-1)for(L=0;L<this.minorTicks;L++)n+=this.tickInterval/(this.minorTicks+1),_=Q.extend(!0,{},this.tickOptions,{name:this.name,value:n,label:"",isMinorTick:!0}),f=new this.tickRenderer(_),this._ticks.push(f);f=null}}this.tickInset&&(this.min=this.min-this.tickInset*this.tickInterval,this.max=this.max+this.tickInset*this.tickInterval)},Q.jqplot.LinearAxisRenderer.prototype.resetTickValues=function(t){if(Q.isArray(t)&&t.length==this._ticks.length){for(var e,i=0;i<t.length;i++)(e=this._ticks[i]).value=t[i],e.label=e.formatter(e.formatString,t[i]),e.label=e.prefix+e.label,e._elem.html(e.label);e=null,this.min=Q.jqplot.arrayMin(t),this.max=Q.jqplot.arrayMax(t),this.pack()}},Q.jqplot.LinearAxisRenderer.prototype.pack=function(t,e){t=t||{},e=e||this._offsets;var i=this._ticks,n=this.max,s=this.min,a=e.max,r=e.min,o=null!=this._label&&this._label.show;for(var l in t)this._elem.css(l,t[l]);this._offsets=e;var h=a-r,d=n-s;if(this.breakPoints?(d=d-this.breakPoints[1]+this.breakPoints[0],this.p2u=function(t){return(t-r)*d/h+s},this.u2p=function(t){return t>this.breakPoints[0]&&t<this.breakPoints[1]&&(t=this.breakPoints[0]),t<=this.breakPoints[0]?(t-s)*h/d+r:(t-this.breakPoints[1]+this.breakPoints[0]-s)*h/d+r},"x"==this.name.charAt(0)?(this.series_u2p=function(t){return t>this.breakPoints[0]&&t<this.breakPoints[1]&&(t=this.breakPoints[0]),t<=this.breakPoints[0]?(t-s)*h/d:(t-this.breakPoints[1]+this.breakPoints[0]-s)*h/d},this.series_p2u=function(t){return t*d/h+s}):(this.series_u2p=function(t){return t>this.breakPoints[0]&&t<this.breakPoints[1]&&(t=this.breakPoints[0]),t>=this.breakPoints[1]?(t-n)*h/d:(t+this.breakPoints[1]-this.breakPoints[0]-n)*h/d},this.series_p2u=function(t){return t*d/h+n})):(this.p2u=function(t){return(t-r)*d/h+s},this.u2p=function(t){return(t-s)*h/d+r},"xaxis"==this.name||"x2axis"==this.name?(this.series_u2p=function(t){return(t-s)*h/d},this.series_p2u=function(t){return t*d/h+s}):(this.series_u2p=function(t){return(t-n)*h/d},this.series_p2u=function(t){return t*d/h+n})),this.show)if("xaxis"==this.name||"x2axis"==this.name){for(var c=0;c<i.length;c++){if((g=i[c]).show&&g.showLabel){if(g.constructor==Q.jqplot.CanvasAxisTickRenderer&&g.angle){var u="xaxis"==this.name?1:-1;switch(g.labelPosition){case"auto":m=u*g.angle<0?-g.getWidth()+g._textRenderer.height*Math.sin(-g._textRenderer.angle)/2:-g._textRenderer.height*Math.sin(g._textRenderer.angle)/2;break;case"end":m=-g.getWidth()+g._textRenderer.height*Math.sin(-g._textRenderer.angle)/2;break;case"start":m=-g._textRenderer.height*Math.sin(g._textRenderer.angle)/2;break;case"middle":default:m=-g.getWidth()/2+g._textRenderer.height*Math.sin(-g._textRenderer.angle)/2}}else m=-g.getWidth()/2;var p=this.u2p(g.value)+m+"px";g._elem.css("left",p),g.pack()}}if(o){var f=this._label._elem.outerWidth(!0);this._label._elem.css("left",r+h/2-f/2+"px"),"xaxis"==this.name?this._label._elem.css("bottom","0px"):this._label._elem.css("top","0px"),this._label.pack()}}else{for(c=0;c<i.length;c++){var g;if((g=i[c]).show&&g.showLabel){var m;if(g.constructor==Q.jqplot.CanvasAxisTickRenderer&&g.angle){u="yaxis"==this.name?1:-1;switch(g.labelPosition){case"auto":case"end":m=u*g.angle<0?-g._textRenderer.height*Math.cos(-g._textRenderer.angle)/2:-g.getHeight()+g._textRenderer.height*Math.cos(g._textRenderer.angle)/2;break;case"start":m=0<g.angle?-g._textRenderer.height*Math.cos(-g._textRenderer.angle)/2:-g.getHeight()+g._textRenderer.height*Math.cos(g._textRenderer.angle)/2;break;case"middle":default:m=-g.getHeight()/2}}else m=-g.getHeight()/2;p=this.u2p(g.value)+m+"px";g._elem.css("top",p),g.pack()}}if(o){var v=this._label._elem.outerHeight(!0);this._label._elem.css("top",a-h/2-v/2+"px"),"yaxis"==this.name?this._label._elem.css("left","0px"):this._label._elem.css("right","0px"),this._label.pack()}}i=null};
19Q.jqplot.LinearTickGenerator=function(t,e,i,n,s,a){if(s=null!==s&&s,a=null!==a&&!s&&a,t===e&&(e=e?0:1),e<t){var r=e;e=t,t=r}var o=[],l=C(e-t,i=i||1),h=Q.jqplot.getSignificantFigures;if(null==n)if(s||a){if(s){o[0]=t,o[2]=Math.ceil((e-t)/l+1),o[1]=t+(o[2]-1)*l;var d=h(t).digitsRight,c=h(l).digitsRight;o[3]=d<c?w(l):"%."+d+"f",o[4]=l}else if(a){o[1]=e,o[2]=Math.ceil((e-t)/l+1),o[0]=e-(o[2]-1)*l;var u=h(e).digitsRight;c=h(l).digitsRight;o[3]=u<c?w(l):"%."+u+"f",o[4]=l}}else o[0]=Math.floor(t/l)*l,o[1]=Math.ceil(e/l)*l,o[2]=Math.round((o[1]-o[0])/l+1),o[3]=w(l),o[4]=l;else{var p=[];if(p[0]=Math.floor(t/l)*l,p[1]=Math.ceil(e/l)*l,p[2]=Math.round((p[1]-p[0])/l+1),p[3]=w(l),p[4]=l,p[2]===n)o=p;else{var f=x(p[1]-p[0],n);o[0]=p[0],o[2]=n,o[4]=f,o[3]=w(f),o[1]=o[0]+(o[2]-1)*o[4]}}return o},Q.jqplot.LinearTickGenerator.bestLinearInterval=C,Q.jqplot.LinearTickGenerator.bestInterval=x,Q.jqplot.LinearTickGenerator.bestLinearComponents=e,Q.jqplot.LinearTickGenerator.bestConstrainedInterval=t,Q.jqplot.MarkerRenderer=function(t){this.show=!0,this.style="filledCircle",this.lineWidth=2,this.size=9,this.color="#666666",this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1,this.shadowDepth=3,this.shadowAlpha="0.07",this.shadowRenderer=new Q.jqplot.ShadowRenderer,this.shapeRenderer=new Q.jqplot.ShapeRenderer,Q.extend(!0,this,t)},Q.jqplot.MarkerRenderer.prototype.init=function(t){Q.extend(!0,this,t);var e={angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,lineWidth:this.lineWidth,depth:this.shadowDepth,closePath:!0};-1!=this.style.indexOf("filled")&&(e.fill=!0),-1!=this.style.indexOf("ircle")&&(e.isarc=!0,e.closePath=!1),this.shadowRenderer.init(e);var i={fill:!1,isarc:!1,strokeStyle:this.color,fillStyle:this.color,lineWidth:this.lineWidth,closePath:!0};-1!=this.style.indexOf("filled")&&(i.fill=!0),-1!=this.style.indexOf("ircle")&&(i.isarc=!0,i.closePath=!1),this.shapeRenderer.init(i)},Q.jqplot.MarkerRenderer.prototype.drawDiamond=function(t,e,i,n,s){var a=1.2,r=this.size/2/a,o=this.size/2*a,l=[[t-r,e],[t,e+o],[t+r,e],[t,e-o]];this.shadow&&this.shadowRenderer.draw(i,l),this.shapeRenderer.draw(i,l,s)},Q.jqplot.MarkerRenderer.prototype.drawPlus=function(t,e,i){var n=1,s=this.size/2*n,a=this.size/2*n,r=[[t,e-a],[t,e+a]],o=[[t+s,e],[t-s,e]],l=Q.extend(!0,{},this.options,{closePath:!1});this.shadow&&(this.shadowRenderer.draw(i,r,{closePath:!1}),this.shadowRenderer.draw(i,o,{closePath:!1})),this.shapeRenderer.draw(i,r,l),this.shapeRenderer.draw(i,o,l)},Q.jqplot.MarkerRenderer.prototype.drawX=function(t,e,i){var n=1,s=this.size/2*n,a=this.size/2*n,r=Q.extend(!0,{},this.options,{closePath:!1}),o=[[t-s,e-a],[t+s,e+a]],l=[[t-s,e+a],[t+s,e-a]];this.shadow&&(this.shadowRenderer.draw(i,o,{closePath:!1}),this.shadowRenderer.draw(i,l,{closePath:!1})),this.shapeRenderer.draw(i,o,r),this.shapeRenderer.draw(i,l,r)},Q.jqplot.MarkerRenderer.prototype.drawDash=function(t,e,i,n,s){var a=1,r=this.size/2*a,o=(this.size,[[t-r,e],[t+r,e]]);this.shadow&&this.shadowRenderer.draw(i,o),this.shapeRenderer.draw(i,o,s)},Q.jqplot.MarkerRenderer.prototype.drawLine=function(t,e,i,n,s){var a=[t,e];this.shadow&&this.shadowRenderer.draw(i,a),this.shapeRenderer.draw(i,a,s)},Q.jqplot.MarkerRenderer.prototype.drawSquare=function(t,e,i,n,s){var a=1,r=this.size/2/a,o=this.size/2*a,l=[[t-r,e-o],[t-r,e+o],[t+r,e+o],[t+r,e-o]];this.shadow&&this.shadowRenderer.draw(i,l),this.shapeRenderer.draw(i,l,s)},Q.jqplot.MarkerRenderer.prototype.drawCircle=function(t,e,i,n,s){var a=[t,e,this.size/2,0,2*Math.PI,!0];this.shadow&&this.shadowRenderer.draw(i,a),this.shapeRenderer.draw(i,a,s)},Q.jqplot.MarkerRenderer.prototype.draw=function(t,e,i,n){if(null==(n=n||{}).show||0!=n.show)switch(n.color&&!n.fillStyle&&(n.fillStyle=n.color),n.color&&!n.strokeStyle&&(n.strokeStyle=n.color),this.style){case"diamond":this.drawDiamond(t,e,i,!1,n);break;case"filledDiamond":this.drawDiamond(t,e,i,!0,n);break;case"circle":this.drawCircle(t,e,i,!1,n);break;case"filledCircle":this.drawCircle(t,e,i,!0,n);break;case"square":this.drawSquare(t,e,i,!1,n);break;case"filledSquare":this.drawSquare(t,e,i,!0,n);break;case"x":this.drawX(t,e,i,!0,n);break;case"plus":this.drawPlus(t,e,i,!0,n);break;case"dash":this.drawDash(t,e,i,!0,n);break;case"line":this.drawLine(t,e,i,!1,n);break;default:this.drawDiamond(t,e,i,!1,n)}},Q.jqplot.ShadowRenderer=function(t){this.angle=45,this.offset=1,this.alpha=.07,this.lineWidth=1.5,this.lineJoin="miter",this.lineCap="round",this.closePath=!1,this.fill=!1,this.depth=3,this.strokeStyle="rgba(0,0,0,0.1)",this.isarc=!1,Q.extend(!0,this,t)},Q.jqplot.ShadowRenderer.prototype.init=function(t){Q.extend(!0,this,t)}
vendor: 7,224 bytes, line 19
19,Q.jqplot.ShadowRenderer.prototype.draw=function(t,e,i){t.save();var n=null!=i?i:{},s=null!=n.fill?n.fill:this.fill,a=null!=n.fillRect?n.fillRect:this.fillRect,r=null!=n.closePath?n.closePath:this.closePath,o=null!=n.offset?n.offset:this.offset,l=null!=n.alpha?n.alpha:this.alpha,h=null!=n.depth?n.depth:this.depth,d=null!=n.isarc?n.isarc:this.isarc,c=null!=n.linePattern?n.linePattern:this.linePattern;t.lineWidth=null!=n.lineWidth?n.lineWidth:this.lineWidth,t.lineJoin=null!=n.lineJoin?n.lineJoin:this.lineJoin,t.lineCap=null!=n.lineCap?n.lineCap:this.lineCap,t.strokeStyle=n.strokeStyle||this.strokeStyle||"rgba(0,0,0,"+l+")",t.fillStyle=n.fillStyle||this.fillStyle||"rgba(0,0,0,"+l+")";for(var u=0;u<h;u++){var p=Q.jqplot.LinePattern(t,c);if(t.translate(Math.cos(this.angle*Math.PI/180)*o,Math.sin(this.angle*Math.PI/180)*o),p.beginPath(),d)t.arc(e[0],e[1],e[2],e[3],e[4],!0);else if(a)a&&t.fillRect(e[0],e[1],e[2],e[3]);else if(e&&e.length)for(var f=!0,g=0;g<e.length;g++)null!=e[g][0]&&null!=e[g][1]?f?(p.moveTo(e[g][0],e[g][1]),f=!1):p.lineTo(e[g][0],e[g][1]):f=!0;r&&p.closePath(),s?t.fill():t.stroke()}t.restore()},Q.jqplot.ShapeRenderer=function(t){this.lineWidth=1.5,this.linePattern="solid",this.lineJoin="miter",this.lineCap="round",this.closePath=!1,this.fill=!1,this.isarc=!1,this.fillRect=!1,this.strokeRect=!1,this.clearRect=!1,this.strokeStyle="#999999",this.fillStyle="#999999",Q.extend(!0,this,t)},Q.jqplot.ShapeRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.ShapeRenderer.prototype.draw=function(t,e,i){t.save();var n=null!=i?i:{},s=null!=n.fill?n.fill:this.fill,a=null!=n.closePath?n.closePath:this.closePath,r=null!=n.fillRect?n.fillRect:this.fillRect,o=null!=n.strokeRect?n.strokeRect:this.strokeRect,l=null!=n.clearRect?n.clearRect:this.clearRect,h=null!=n.isarc?n.isarc:this.isarc,d=null!=n.linePattern?n.linePattern:this.linePattern,c=Q.jqplot.LinePattern(t,d);if(t.lineWidth=n.lineWidth||this.lineWidth,t.lineJoin=n.lineJoin||this.lineJoin,t.lineCap=n.lineCap||this.lineCap,t.strokeStyle=n.strokeStyle||n.color||this.strokeStyle,t.fillStyle=n.fillStyle||this.fillStyle,t.beginPath(),h)return t.arc(e[0],e[1],e[2],e[3],e[4],!0),a&&t.closePath(),s?t.fill():t.stroke(),void t.restore();if(l)return t.clearRect(e[0],e[1],e[2],e[3]),void t.restore();if(r||o){if(r&&t.fillRect(e[0],e[1],e[2],e[3]),o)return t.strokeRect(e[0],e[1],e[2],e[3]),void t.restore()}else if(e&&e.length){for(var u=!0,p=0;p<e.length;p++)null!=e[p][0]&&null!=e[p][1]?u?(c.moveTo(e[p][0],e[p][1]),u=!1):c.lineTo(e[p][0],e[p][1]):u=!0;a&&c.closePath(),s?t.fill():t.stroke()}t.restore()},Q.jqplot.TableLegendRenderer=function(){},Q.jqplot.TableLegendRenderer.prototype.init=function(t){Q.extend(!0,this,t)},Q.jqplot.TableLegendRenderer.prototype.addrow=function(t,e,i,n){var s,a,r,o,l,h=i?this.rowSpacing+"px":"0px";r=document.createElement("tr"),(s=Q(r)).addClass("jqplot-table-legend"),r=null,n?s.prependTo(this._elem):s.appendTo(this._elem),this.showSwatches&&((a=Q(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-swatch"),a.css({textAlign:"center",paddingTop:h}),(o=Q(document.createElement("div"))).addClass("jqplot-table-legend-swatch-outline"),(l=Q(document.createElement("div"))).addClass("jqplot-table-legend-swatch"),l.css({backgroundColor:e,borderColor:e}),s.append(a.append(o.append(l)))),this.showLabels&&((a=Q(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-label"),a.css("paddingTop",h),s.append(a),this.escapeHtml?a.text(t):a.html(t)),r=s=l=o=a=null},Q.jqplot.TableLegendRenderer.prototype.draw=function(){if(this._elem&&(this._elem.emptyForce(),this._elem=null),this.show){var t=this._series,e=document.createElement("table");this._elem=Q(e),this._elem.addClass("jqplot-table-legend");var i={position:"absolute"};this.background&&(i.background=this.background),this.border&&(i.border=this.border),this.fontSize&&(i.fontSize=this.fontSize),this.fontFamily&&(i.fontFamily=this.fontFamily),this.textColor&&(i.textColor=this.textColor),null!=this.marginTop&&(i.marginTop=this.marginTop),null!=this.marginBottom&&(i.marginBottom=this.marginBottom),null!=this.marginLeft&&(i.marginLeft=this.marginLeft),null!=this.marginRight&&(i.marginRight=this.marginRight);for(var n,s=!1,a=!1,r=0;r<t.length;r++)if(((n=t[r])._stack||n.renderer.constructor==Q.jqplot.BezierCurveRenderer)&&(a=!0),n.show&&n.showLabel){var o=this.labels[r]||n.label.toString();if(o){var l=n.color;a&&r<t.length-1?s=!0:a&&r==t.length-1&&(s=!1),this.renderer.addrow.call(this,o,l,s,a),s=!0}for(var h=0;h<Q.jqplot.addLegendRowHooks.length;h++){var d=Q.jqplot.addLegendRowHooks[h].call(this,n);d&&(this.renderer.addrow.call(this,d.label,d.color,s),s=!0)}o=null}}return this._elem},Q.jqplot.TableLegendRenderer.prototype.pack=function(t){if(this.show)if("insideGrid"==this.placement)switch(this.location){case"nw":var e=t.left,i=t.top;this._elem.css("left",e),this._elem.css("top",i);break;case"n":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,i=t.top;this._elem.css("left",e),this._elem.css("top",i);break;case"ne":e=t.right,i=t.top;this._elem.css({right:e,top:i});break;case"e":e=t.right,i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({right:e,top:i});break;case"se":e=t.right,i=t.bottom;this._elem.css({right:e,bottom:i});break;case"s":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,i=t.bottom;this._elem.css({left:e,bottom:i});break;case"sw":e=t.left,i=t.bottom;this._elem.css({left:e,bottom:i});break;case"w":e=t.left,i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({left:e,top:i});break;default:e=t.right,i=t.bottom;this._elem.css({right:e,bottom:i})}else if("outside"==this.placement)switch(this.location){case"nw":e=this._plotDimensions.width-t.left,i=t.top;this._elem.css("right",e),this._elem.css("top",i);break;case"n":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,i=this._plotDimensions.height-t.top;this._elem.css("left",e),this._elem.css("bottom",i);break;case"ne":e=this._plotDimensions.width-t.right,i=t.top;this._elem.css({left:e,top:i});break;case"e":e=this._plotDimensions.width-t.right,i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({left:e,top:i});break;case"se":e=this._plotDimensions.width-t.right,i=t.bottom;this._elem.css({left:e,bottom:i});break;case"s":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,i=this._plotDimensions.height-t.bottom;this._elem.css({left:e,top:i});break;case"sw":e=this._plotDimensions.width-t.left,i=t.bottom;this._elem.css({right:e,bottom:i});break;case"w":e=this._plotDimensions.width-t.left,i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({right:e,top:i});break;default:e=t.right,i=t.bottom;this._elem.css({right:e,bottom:i})}else switch(this.location){case"nw":this._elem.css({left:0,top:t.top});break;case"n":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2;this._elem.css({left:e,top:t.top});break;case"ne":this._elem.css({right:0,top:t.top});break;case"e":i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({right:t.right,top:i}
19);break;case"se":this._elem.css({right:t.right,bottom:t.bottom});break;case"s":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2;this._elem.css({left:e,bottom:t.bottom});break;case"sw":this._elem.css({left:t.left,bottom:t.bottom});break;case"w":i=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({left:t.left,top:i});break;default:this._elem.css({right:t.right,bottom:t.bottom})}},Q.jqplot.ThemeEngine=function(){this.themes={},this.activeTheme=null},Q.jqplot.ThemeEngine.prototype.init=function(){var t,e,i,n,s,a,r=new Q.jqplot.Theme({_name:"Default"});for(t in r.target)r.target[t]="textColor"==t?this.target.css("color"):this.target.css(t);if(this.title.show&&this.title._elem)for(t in r.title)r.title[t]="textColor"==t?this.title._elem.css("color"):this.title._elem.css(t);for(t in r.grid)r.grid[t]=this.grid[t];if(null==r.grid.backgroundColor&&null!=this.grid.background&&(r.grid.backgroundColor=this.grid.background),this.legend.show&&this.legend._elem)for(t in r.legend)r.legend[t]="textColor"==t?this.legend._elem.css("color"):this.legend._elem.css(t);for(e=0;e<this.series.length;e++)for(t in(n=this.series[e]).renderer.constructor==Q.jqplot.LineRenderer?r.series.push(new H):n.renderer.constructor==Q.jqplot.BarRenderer?r.series.push(new N):n.renderer.constructor==Q.jqplot.PieRenderer?r.series.push(new q):n.renderer.constructor==Q.jqplot.DonutRenderer?r.series.push(new $):n.renderer.constructor==Q.jqplot.FunnelRenderer?r.series.push(new O):n.renderer.constructor==Q.jqplot.MeterGaugeRenderer?r.series.push(new z):r.series.push({}),r.series[e])r.series[e][t]=n[t];for(t in this.axes){if(a=this.axes[t],(s=r.axes[t]=new M).borderColor=a.borderColor,s.borderWidth=a.borderWidth,a._ticks&&a._ticks[0])for(i in s.ticks)a._ticks[0].hasOwnProperty(i)?s.ticks[i]=a._ticks[0][i]:a._ticks[0]._elem&&(s.ticks[i]=a._ticks[0]._elem.css(i));if(a._label&&a._label.show)for(i in s.label)a._label[i]?s.label[i]=a._label[i]:a._label._elem&&(s.label[i]="textColor"==i?a._label._elem.css("color"):a._label._elem.css(i))}this.themeEngine._add(r),this.themeEngine.activeTheme=this.themeEngine.themes[r._name]},Q.jqplot.ThemeEngine.prototype.get=function(t){return t?this.themes[t]:this.activeTheme},Q.jqplot.ThemeEngine.prototype.getThemeNames=function(){var t=[];for(var e in this.themes)t.push(e);return t.sort(a)},Q.jqplot.ThemeEngine.prototype.getThemes=function(){var t=[],e=[];for(var i in this.themes)t.push(i);t.sort(a);for(var n=0;n<t.length;n++)e.push(this.themes[t[n]]);return e},Q.jqplot.ThemeEngine.prototype.activate=function(t,e){var i=!1;if(!e&&this.activeTheme&&this.activeTheme._name&&(e=this.activeTheme._name),!this.themes.hasOwnProperty(e))throw new Error("No theme of that name");var n=this.themes[e];this.activeTheme=n;var s,a,r=["xaxis","x2axis","yaxis","y2axis"];for(a=0;a<r.length;a++){var o=r[a];null!=n.axesStyles.borderColor&&(t.axes[o].borderColor=n.axesStyles.borderColor),null!=n.axesStyles.borderWidth&&(t.axes[o].borderWidth=n.axesStyles.borderWidth)}for(var l in t.axes){var h=t.axes[l];if(h.show){var d=n.axes[l]||{},c=n.axesStyles,u=Q.jqplot.extend(!0,{},d,c);if(s=null!=n.axesStyles.borderColor?n.axesStyles.borderColor:u.borderColor,null!=u.borderColor&&(h.borderColor=u.borderColor,i=!0),s=null!=n.axesStyles.borderWidth?n.axesStyles.borderWidth:u.borderWidth,null!=u.borderWidth&&(h.borderWidth=u.borderWidth,i=!0),h._ticks&&h._ticks[0])for(var p in u.ticks)null!=(s=u.ticks[p])&&(h.tickOptions[p]=s,h._ticks=[],i=!0);if(h._label&&h._label.show)for(var p in u.label)null!=(s=u.label[p])&&(h.labelOptions[p]=s,i=!0)}}for(var f in n.grid)null!=n.grid[f]&&(t.grid[f]=n.grid[f]);if(i||t.grid.draw(),t.legend.show)for(f in n.legend)null!=n.legend[f]&&(t.legend[f]=n.legend[f]);if(t.title.show)for(f in n.title)null!=n.title[f]&&(t.title[f]=n.title[f]);for(a=0;a<n.series.length;a++){var g={};for(f in n.series[a])null!=(s=null!=n.seriesStyles[f]?n.seriesStyles[f]:n.series[a][f])&&(g[f]=s,"color"==f?(t.series[a].renderer.shapeRenderer.fillStyle=s,t.series[a].renderer.shapeRenderer.strokeStyle=s,t.series[a][f]=s):"lineWidth"==f||"linePattern"==f?(t.series[a].renderer.shapeRenderer[f]=s,t.series[a][f]=s):"markerOptions"==f?(S(t.series[a].markerOptions,s),S(t.series[a].markerRenderer,s)):t.series[a][f]=s,i=!0)}for(f in i&&(t.target.empty(),t.draw()),n.target)null!=n.target[f]&&t.target.css(f,n.target[f])},Q.jqplot.ThemeEngine.prototype._add=function(t,e){if(e&&(t._name=e),t._name||(t._name=Date.parse(new Date)),this.themes.hasOwnProperty(t._name))throw new Error("jqplot.ThemeEngine Error: Theme already in use");this.themes[t._name]=t},Q.jqplot.ThemeEngine.prototype.remove=function(t){return"Default"!=t&&delete this.themes[t]},Q.jqplot.ThemeEngine.prototype.newTheme=function(t,e){"object"==typeof t&&(e=e||t,t=null),t=e&&e._name?e._name:t||Date.parse(new Date);var i=this.copy(this.themes.Default._name,t);return Q.jqplot.extend(i,e),i},Q.jqplot.clone=r,Q.jqplot.merge=S,Q.jqplot.extend=function(t,e){var i,n=t||{},s=1,a=arguments.length,r=!1;for("boolean"==typeof n&&(r=n,n=e||{},s=2),"object"!=typeof n&&"[object Function]"===!toString.call(n)&&(n={});s<a;s++)if(null!=(i=arguments[s]))for(var o in i){var l=n[o],h=i[o];n!==h&&(r&&h&&"object"==typeof h&&!h.nodeType?n[o]=Q.jqplot.extend(r,l||(null!=h.length?[]:{}),h):h!==A&&(n[o]=h))}return n},Q.jqplot.ThemeEngine.prototype.rename=function(t,e){if("Default"==t||"Default"==e)throw new Error("jqplot.ThemeEngine Error: Cannot rename from/to Default");if(this.themes.hasOwnProperty(e))throw new Error("jqplot.ThemeEngine Error: New name already in use.");if(this.themes.hasOwnProperty(t)){var i=this.copy(t,e);return this.remove(t),i}throw new Error("jqplot.ThemeEngine Error: Old name or new name invalid")}
vendor: 13,830 bytes, lines 19-20
19,Q.jqplot.ThemeEngine.prototype.copy=function(t,e,i){if("Default"==e)throw new Error("jqplot.ThemeEngine Error: Cannot copy over Default theme");if(!this.themes.hasOwnProperty(t)){var n="jqplot.ThemeEngine Error: Source name invalid";throw new Error(n)}if(this.themes.hasOwnProperty(e)){n="jqplot.ThemeEngine Error: Target name invalid";throw new Error(n)}var s=r(this.themes[t]);return s._name=e,Q.jqplot.extend(!0,s,i),this._add(s),s},Q.jqplot.Theme=function(t,e){"object"==typeof t&&(e=e||t,t=null),t=t||Date.parse(new Date),this._name=t,this.target={backgroundColor:null},this.legend={textColor:null,fontFamily:null,fontSize:null,border:null,background:null},this.title={textColor:null,fontFamily:null,fontSize:null,textAlign:null},this.seriesStyles={},this.series=[],this.grid={drawGridlines:null,gridLineColor:null,gridLineWidth:null,backgroundColor:null,borderColor:null,borderWidth:null,shadow:null},this.axesStyles={label:{},ticks:{}},this.axes={},"string"==typeof e?this._name=e:"object"==typeof e&&Q.jqplot.extend(!0,this,e)};var M=function(){this.borderColor=null,this.borderWidth=null,this.ticks=new P,this.label=new R},P=function(){this.show=null,this.showGridline=null,this.showLabel=null,this.showMark=null,this.size=null,this.textColor=null,this.whiteSpace=null,this.fontSize=null,this.fontFamily=null},R=function(){this.textColor=null,this.whiteSpace=null,this.fontSize=null,this.fontFamily=null,this.fontWeight=null},H=function(){this.color=null,this.lineWidth=null,this.linePattern=null,this.shadow=null,this.fillColor=null,this.showMarker=null,this.markerOptions=new L},L=function(){this.show=null,this.style=null,this.lineWidth=null,this.size=null,this.color=null
20,this.shadow=null},N=function(){this.color=null,this.seriesColors=null,this.lineWidth=null,this.shadow=null,this.barPadding=null,this.barMargin=null,this.barWidth=null,this.highlightColors=null},q=function(){this.seriesColors=null,this.padding=null,this.sliceMargin=null,this.fill=null,this.shadow=null,this.startAngle=null,this.lineWidth=null,this.highlightColors=null},$=function(){this.seriesColors=null,this.padding=null,this.sliceMargin=null,this.fill=null,this.shadow=null,this.startAngle=null,this.lineWidth=null,this.innerDiameter=null,this.thickness=null,this.ringMargin=null,this.highlightColors=null},O=function(){this.color=null,this.lineWidth=null,this.shadow=null,this.padding=null,this.sectionMargin=null,this.seriesColors=null,this.highlightColors=null},z=function(){this.padding=null,this.backgroundColor=null,this.ringColor=null,this.tickColor=null,this.ringWidth=null,this.intervalColors=null,this.intervalInnerRadius=null,this.intervalOuterRadius=null,this.hubRadius=null,this.needleThickness=null,this.needlePad=null};Q.fn.jqplotChildText=function(){return Q(this).contents().filter(function(){return 3==this.nodeType}).text()},Q.fn.jqplotGetComputedFontStyle=function(){for(var t=window.getComputedStyle?window.getComputedStyle(this[0],""):this[0].currentStyle,e=t["font-style"]?["font-style","font-weight","font-size","font-family"]:["fontStyle","fontWeight","fontSize","fontFamily"],i=[],n=0;n<e.length;++n){var s=String(t[e[n]]);s&&"normal"!=s&&i.push(s)}return i.join(" ")},Q.fn.jqplotToImageCanvas=function(t){function m(t){var e=parseInt(Q(t).css("line-height"),10);return isNaN(e)&&(e=1.2*parseInt(Q(t).css("font-size"),10)),e}function d(t,e,i,n,s,a){for(var r=m(t),o=Q(t).innerWidth(),l=(Q(t).innerHeight(),i.split(/\s+/)),h=l.length,d="",c=[],u=s,p=n,f=0;f<h;f++)d+=l[f],e.measureText(d).width>o&&(c.push(f),d="",f--);if(0===c.length)"center"===Q(t).css("textAlign")&&(p=n+(a-e.measureText(d).width)/2-v),e.fillText(i,p,s);else{d=l.slice(0,c[0]).join(" "),"center"===Q(t).css("textAlign")&&(p=n+(a-e.measureText(d).width)/2-v),e.fillText(d,p,u),u+=r;f=1;for(var g=c.length;f<g;f++)d=l.slice(c[f-1],c[f]).join(" "),"center"===Q(t).css("textAlign")&&(p=n+(a-e.measureText(d).width)/2-v),e.fillText(d,p,u),u+=r;d=l.slice(c[f-1],l.length).join(" "),"center"===Q(t).css("textAlign")&&(p=n+(a-e.measureText(d).width)/2-v),e.fillText(d,p,u)}}function c(t,e,i){var n=t.tagName.toLowerCase(),s=Q(t).position(),a=window.getComputedStyle?window.getComputedStyle(t,""):t.currentStyle,r=e+s.left+parseInt(a.marginLeft,10)+parseInt(a.borderLeftWidth,10)+parseInt(a.paddingLeft,10),o=i+s.top+parseInt(a.marginTop,10)+parseInt(a.borderTopWidth,10)+parseInt(a.paddingTop,10),l=u.width;if("div"!=n&&"span"!=n||Q(t).hasClass("jqplot-highlighter-tooltip"))if("table"===n&&Q(t).hasClass("jqplot-table-legend")){w.strokeStyle=Q(t).css("border-top-color"),w.fillStyle=Q(t).css("background-color"),w.fillRect(r,o,Q(t).innerWidth(),Q(t).innerHeight()),0<parseInt(Q(t).css("border-top-width"),10)&&w.strokeRect(r,o,Q(t).innerWidth(),Q(t).innerHeight()),Q(t).find("div.jqplot-table-legend-swatch-outline").each(function(){var t=Q(this);w.strokeStyle=t.css("border-top-color");var e=r+t.position().left,i=o+t.position().top;w.strokeRect(e,i,t.innerWidth(),t.innerHeight()),e+=parseInt(t.css("padding-left"),10),i+=parseInt(t.css("padding-top"),10);var n=t.innerHeight()-2*parseInt(t.css("padding-top"),10),s=t.innerWidth()-2*parseInt(t.css("padding-left"),10),a=t.children("div.jqplot-table-legend-swatch");w.fillStyle=a.css("background-color"),w.fillRect(e,i,s,n)}),Q(t).find("td.jqplot-table-legend-label").each(function(){var t=Q(this),e=r+t.position().left,i=o+t.position().top+parseInt(t.css("padding-top"),10);w.font=t.jqplotGetComputedFontStyle(),w.fillStyle=t.css("color"),d(t,w,t.text(),e,i,l)})}else"canvas"==n&&w.drawImage(t,r,o);else{Q(t).children().each(function(){c(this,r,o)});var h=Q(t).jqplotChildText();h&&(w.font=Q(t).jqplotGetComputedFontStyle(),w.fillStyle=Q(t).css("color"),d(t,w,h,r,o,l))}}var e=null==(t=t||{}).x_offset?0:t.x_offset,i=null==t.y_offset?0:t.y_offset,n=null==t.backgroundColor?"rgb(255,255,255)":t.backgroundColor;if(0==Q(this).width()||0==Q(this).height())return null;if(Q.jqplot.use_excanvas)return null;for(var s,a,r,o,u=document.createElement("canvas"),l=Q(this).outerHeight(!0),h=Q(this).outerWidth(!0),p=Q(this).offset(),f=p.left,g=p.top,v=0,_=0,b=["jqplot-table-legend","jqplot-xaxis-tick","jqplot-x2axis-tick","jqplot-yaxis-tick","jqplot-y2axis-tick","jqplot-y3axis-tick","jqplot-y4axis-tick","jqplot-y5axis-tick","jqplot-y6axis-tick","jqplot-y7axis-tick","jqplot-y8axis-tick","jqplot-y9axis-tick","jqplot-xaxis-label","jqplot-x2axis-label","jqplot-yaxis-label","jqplot-y2axis-label","jqplot-y3axis-label","jqplot-y4axis-label","jqplot-y5axis-label","jqplot-y6axis-label","jqplot-y7axis-label","jqplot-y8axis-label","jqplot-y9axis-label"],y=0;y<b.length;y++)Q(this).find("."+b[y]).each(function(){s=Q(this).offset().top-g,a=Q(this).offset().left-f,o=a+Q(this).outerWidth(!0)+v,r=s+Q(this).outerHeight(!0)+_,a<-v&&(h=h-v-a,v=-a),s<-_&&(l=l-_-s,_=-s),h<o&&(h=o),l<r&&(l=r)});u.width=h+Number(e),u.height=l+Number(i);var w=u.getContext("2d");return w.save(),w.fillStyle=n,w.fillRect(0,0,u.width,u.height),w.restore(),w.translate(v,_),w.textAlign="left",w.textBaseline="top",Q(this).children().each(function(){c(this,e,i)}),u},Q.fn.jqplotToImageStr=function(t){var e=Q(this).jqplotToImageCanvas(t);return e?e.toDataURL("image/png"):null},Q.fn.jqplotToImageElem=function(t){var e=document.createElement("img"),i=Q(this).jqplotToImageStr(t);return e.src=i,e},Q.fn.jqplotToImageElemStr=function(t){return"<img src="+Q(this).jqplotToImageStr(t)+" />"},Q.fn.jqplotSaveImage=function(){var t=Q(this).jqplotToImageStr({});t&&(window.location.href=t.replace("image/png","image/octet-stream"))},Q.fn.jqplotViewImage=function(){var t=Q(this).jqplotToImageElemStr({});Q(this).jqplotToImageStr({});if(t){var e=window.open("");e.document.open("image/png"),e.document.write(t),e.document.close(),e=null}};var V=function(t){switch(this.syntax=V.config.syntax,this._type="jsDate",this.proxy=new Date,this.options={},this.locale=V.regional.getLocale(),this.formatString="",this.defaultCentury=V.config.defaultCentury,arguments.length){case 0:break;case 1:if("[object Object]"==T(t)&&"jsDate"!=t._type){var e=this.options=t;this.syntax=e.syntax||this.syntax,this.defaultCentury=e.defaultCentury||this.defaultCentury,this.proxy=V.createDate(e.date)}else this.proxy=V.createDate(t);break;default:for(var i=[],n=0;n<arguments.length;n++)i.push(arguments[n]);this.proxy=new Date,this.proxy.setFullYear.apply(this.proxy,i.slice(0,3)),i.slice(3).length&&this.proxy.setHours.apply(this.proxy,i.slice(3))}};V.config={defaultLocale:"en",syntax:"perl",defaultCentury:1900},V.prototype.add=function(t,e){var i=U[e]||U.day;return"number"==typeof i?this.proxy.setTime(this.proxy.getTime()+i*t):i.add(this,t),this},V.prototype.clone=function(){return new V(this.proxy.getTime())},V.prototype.getUtcOffset=function(){return 6e4*this.proxy.getTimezoneOffset()},V.prototype.diff=function(t,e,i){if(null===(t=new V(t)))return null;var n=U[e]||U.day;if("number"==typeof n)var s=(this.proxy.getTime()-t.proxy.getTime())/n;else s=n.diff(this.proxy,t.proxy);return i?s:Math[0<s?"floor":"ceil"](s)},V.prototype.getAbbrDayName=function(){return V.regional[this.locale].dayNamesShort[this.proxy.getDay()]},V.prototype.getAbbrMonthName=function(){return V.regional[this.locale].monthNamesShort[this.proxy.getMonth()]},V.prototype.getAMPM=function(){return 12<=this.proxy.getHours()?"PM":"AM"},V.prototype.getAmPm=function(){return 12<=this.proxy.getHours()?"pm":"am"},V.prototype.getCentury=function(){return parseInt(this.proxy.getFullYear()/100,10)},V.prototype.getDate=function(){return this.proxy.getDate()},V.prototype.getDay=function(){return this.proxy.getDay()},V.prototype.getDayOfWeek=function(){var t=this.proxy.getDay();return 0===t?7:t},V.prototype.getDayOfYear=function(){var t=this.proxy,e=t-new Date(t.getFullYear()+"/1/1 GMT");return e+=6e4*t.getTimezoneOffset(),t=null,parseInt(e/6e4/60/24,10)+1},V.prototype.getDayName=function(){return V.regional[this.locale].dayNames[this.proxy.getDay()]},V.prototype.getFullWeekOfYear=function(){var t=this.proxy,e=this.getDayOfYear(),i=6-t.getDay();return parseInt((e+i)/7,10)},V.prototype.getFullYear=function(){return this.proxy.getFullYear()},V.prototype.getGmtOffset=function(){var t=this.proxy.getTimezoneOffset()/60,e=t<0?"+":"-";return t=Math.abs(t),e+W(Math.floor(t),2)+":"+W(t%1*60,2)},V.prototype.getHours=function(){return this.proxy.getHours()},V.prototype.getHours12=function(){var t=this.proxy.getHours();return 12<t?t-12:0==t?12:t},V.prototype.getIsoWeek=function(){var t=this.proxy,e=t.getWeekOfYear(),i=new Date(t.getFullYear()+"/1/1").getDay(),n=e+(4<i||i<=1?0:1);return 53==n&&new Date(t.getFullYear()+"/12/31").getDay()<4?n=1:0===n&&(n=(t=new V(new Date(t.getFullYear()-1+"/12/31"))).getIsoWeek()),t=null,n},V.prototype.getMilliseconds=function(){return this.proxy.getMilliseconds()},V.prototype.getMinutes=function(){return this.proxy.getMinutes()},V.prototype.getMonth=function(){return this.proxy.getMonth()},V.prototype.getMonthName=function(){return V.regional[this.locale].monthNames[this.proxy.getMonth()]},V.prototype.getMonthNumber=function(){return this.proxy.getMonth()+1},V.prototype.getSeconds=function(){return this.proxy.getSeconds()},V.prototype.getShortYear=function(){return this.proxy.getYear()%100},V.prototype.getTime=function(){return this.proxy.getTime()},V.prototype.getTimezoneAbbr=function(){return this.proxy.toString().replace(/^.*\(([^)]+)\)$/,"$1")},V.prototype.getTimezoneName=function(){var t=/(?:\((.+)\)$| ([A-Z]{3}) )/.exec(this.toString());return t[1]||t[2]||"GMT"+this.getGmtOffset()},V.prototype.getTimezoneOffset=function(){return this.proxy.getTimezoneOffset()},V.prototype.getWeekOfYear=function(){var t=this.getDayOfYear(),e=7-this.getDayOfWeek();return parseInt((t+e)/7,10)},V.prototype.getUnix=function(){return Math.round(this.proxy.getTime()/1e3,0)},V.prototype.getYear=function(){return this.proxy.getYear()},V.prototype.next=function(t){return t=t||"day",this.clone().add(1,t)},V.prototype.set=function(t){switch(arguments.length){case 0:this.proxy=new Date;break;case 1:if("[object Object]"==T(t)&&"jsDate"!=t._type){var e=this.options=t;this.syntax=e.syntax||this.syntax,this.defaultCentury=e.defaultCentury||this.defaultCentury,this.proxy=V.createDate(e.date)}else this.proxy=V.createDate(t);break;default:for(var i=[],n=0;n<arguments.length;n++)i.push(arguments[n]);this.proxy=new Date,this.proxy.setFullYear.apply(this.proxy,i.slice(0,3)),i.slice(3).length&&this.proxy.setHours.apply(this.proxy,i.slice(3))}return this},V.prototype.setDate=function(t){return this.proxy.setDate(t),this},V.prototype.setFullYear=function(){return this.proxy.setFullYear.apply(this.proxy,arguments),this},V.prototype.setHours=function(){return this.proxy.setHours.apply(this.proxy,arguments),this},V.prototype.setMilliseconds=function(t){return this.proxy.setMilliseconds(t),this},V.prototype.setMinutes=function(){return this.proxy.setMinutes.apply(this.proxy,arguments),this},V.prototype.setMonth=function(){return this.proxy.setMonth.apply(this.proxy,arguments),this},V.prototype.setSeconds=function(){return this.proxy.setSeconds.apply(this.proxy,arguments),this},V.prototype.setTime=function(t){return this.proxy.setTime(t),this},V.prototype.setYear=function(){return this.proxy.setYear.apply(this.proxy,arguments),this},V.prototype.strftime=function(t){return t=t||this.formatString||V.regional[this.locale].formatString,V.strftime(this,t,this.syntax)},V.prototype.toString=function(){return this.proxy.toString()},V.prototype.toYmdInt=function(){return 1e4*this.proxy.getFullYear()+100*this.getMonthNumber()+this.proxy.getDate()},V.regional={en:{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
20ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],formatString:"%Y-%m-%d %H:%M:%S"},fr:{monthNames:["Janvier","F\xe9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\xfbt","Septembre","Octobre","Novembre","D\xe9cembre"],monthNamesShort:["Jan","F\xe9v","Mar","Avr","Mai","Jun","Jul","Ao\xfb","Sep","Oct","Nov","D\xe9c"],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],formatString:"%Y-%m-%d %H:%M:%S"},de:{monthNames:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],formatString:"%Y-%m-%d %H:%M:%S"},es:{monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],dayNames:["Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado"],dayNamesShort:["Dom","Lun","Mar","Mi&eacute;","Juv","Vie","S&aacute;b"],formatString:"%Y-%m-%d %H:%M:%S"},ru:{monthNames:["\u042f\u043d\u0432\u0430\u0440\u044c","\u0424\u0435\u0432\u0440\u0430\u043b\u044c","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440\u0435\u043b\u044c","\u041c\u0430\u0439","\u0418\u044e\u043d\u044c","\u0418\u044e\u043b\u044c","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u041e\u043a\u0442\u044f\u0431\u0440\u044c","\u041d\u043e\u044f\u0431\u0440\u044c","\u0414\u0435\u043a\u0430\u0431\u0440\u044c"],monthNamesShort:["\u042f\u043d\u0432","\u0424\u0435\u0432","\u041c\u0430\u0440","\u0410\u043f\u0440","\u041c\u0430\u0439","\u0418\u044e\u043d","\u0418\u044e\u043b","\u0410\u0432\u0433","\u0421\u0435\u043d","\u041e\u043a\u0442","\u041d\u043e\u044f","\u0414\u0435\u043a"],dayNames:["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"],dayNamesShort:["\u0432\u0441\u043a","\u043f\u043d\u0434","\u0432\u0442\u0440","\u0441\u0440\u0434","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0431\u0442"],formatString:"%Y-%m-%d %H:%M:%S"},ar:{monthNames:["\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a","\u0634\u0628\u0627\u0637","\u0622\u0630\u0627\u0631","\u0646\u064a\u0633\u0627\u0646","\u0622\u0630\u0627\u0631","\u062d\u0632\u064a\u0631\u0627\u0646","\u062a\u0645\u0648\u0632","\u0622\u0628","\u0623\u064a\u0644\u0648\u0644","\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644","\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a","\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["\u0627\u0644\u0633\u0628\u062a","\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629"],dayNamesShort:["\u0633\u0628\u062a","\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629"],formatString:"%Y-%m-%d %H:%M:%S"},pt:{monthNames:["Janeiro","Fevereiro","Mar&ccedil;o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Ter&ccedil;a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S&aacute;bado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","S&aacute;b"],formatString:"%Y-%m-%d %H:%M:%S"},"pt-BR":{monthNames:["Janeiro","Fevereiro","Mar&ccedil;o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Ter&ccedil;a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S&aacute;bado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","S&aacute;b"],formatString:"%Y-%m-%d %H:%M:%S"},pl:{monthNames:["Stycze\u0144","Luty","Marzec","Kwiecie\u0144","Maj","Czerwiec","Lipiec","Sierpie\u0144","Wrzesie\u0144","Pa\u01
207adziernik","Listopad","Grudzie\u0144"],monthNamesShort:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Pa\u017a","Lis","Gru"],dayNames:["Niedziela","Poniedzia\u0142ek","Wtorek","\u015aroda","Czwartek","Pi\u0105tek","Sobota"],dayNamesShort:["Ni","Pn","Wt","\u015ar","Cz","Pt","Sb"],formatString:"%Y-%m-%d %H:%M:%S"}},V.regional["en-US"]=V.regional["en-GB"]=V.regional.en,V.regional.getLocale=function(){var t=V.config.defaultLocale;return document&&document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang&&(t=document.getElementsByTagName("html")[0].lang,V.regional.hasOwnProperty(t)||(t=V.config.defaultLocale)),t};var B=864e5,W=function(t,e){var i=e-(t=String(t)).length;return String(Math.pow(10,i)).slice(1).concat(t)},U={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:B,week:7*B,month:{add:function(t,e){U.year.add(t,Math[0<e?"floor":"ceil"](e/12));var i=t.getMonth()+e%12;12==i?(i=0,t.setYear(t.getFullYear()+1)):-1==i&&(i=11,t.setYear(t.getFullYear()-1)),t.setMonth(i)},diff:function(t,e){var i=t.getFullYear()-e.getFullYear();return t.getMonth()-e.getMonth()+12*i+(t.getDate()-e.getDate())/30}},year:{add:function(t,e){t.setYear(t.getFullYear()+Math[0<e?"floor":"ceil"](e))},diff:function(t,e){return U.month.diff(t,e)/12}}};for(var G in U)"s"!=G.substring(G.length-1)&&(U[G+"s"]=U[G]);var Y=function(t,e,i){if(V.formats[i].shortcuts[e])return V.strftime(t,V.formats[i].shortcuts[e],i);var n=(V.formats[i].codes[e]||"").split("."),s=t["get"+n[0]]?t["get"+n[0]]():"";return n[1]&&(s=W(s,n[1])),s};V.strftime=function(t,e,i,n){var s="perl",a=V.regional.getLocale();i&&V.formats.hasOwnProperty(i)?s=i:i&&V.regional.hasOwnProperty(i)&&(a=i),n&&V.formats.hasOwnProperty(n)?s=n:n&&V.regional.hasOwnProperty(n)&&(a=n),"[object Object]"==T(t)&&"jsDate"==t._type||((t=new V(t)).locale=a),e||(e=t.formatString||V.regional[a].formatString);for(var r,o=e||"%Y-%m-%d",l="";0<o.length;)(r=o.match(V.formats[s].codes.matcher))?(l+=o.slice(0,r.index),l+=(r[1]||"")+Y(t,r[2],s),o=o.slice(r.index+r[0].length)):(l+=o,o="");return l},V.formats={ISO:"%Y-%m-%dT%H:%M:%S.%N%G",SQL:"%Y-%m-%d %H:%M:%S"},V.formats.perl={codes:{matcher:/()%(#?(%|[a-z]))/i,Y:"FullYear",y:"ShortYear.2",m:"MonthNumber.2","#m":"MonthNumber",B:"MonthName",b:"AbbrMonthName",d:"Date.2","#d":"Date",e:"Date",A:"DayName",a:"AbbrDayName",w:"Day",H:"Hours.2","#H":"Hours",I:"Hours12.2","#I":"Hours12",p:"AMPM",M:"Minutes.2","#M":"Minutes",S:"Seconds.2","#S":"Seconds",s:"Unix",N:"Milliseconds.3","#N":"Milliseconds",O:"TimezoneOffset",Z:"TimezoneName",G:"GmtOffset"},shortcuts:{F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",D:"%m/%d/%y","#c":"%a %b %e %H:%M:%S %Y",v:"%e-%b-%Y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}},V.formats.php={codes:{matcher:/()%((%|[a-z]))/i,a:"AbbrDayName",A:"DayName",d:"Date.2",e:"Date",j:"DayOfYear.3",u:"DayOfWeek",w:"Day",U:"FullWeekOfYear.2",V:"IsoWeek.2",W:"WeekOfYear.2",b:"AbbrMonthName",B:"MonthName",m:"MonthNumber.2",h:"AbbrMonthName",C:"Century.2",y:"ShortYear.2",Y:"FullYear",H:"Hours.2",I:"Hours12.2",l:"Hours12",p:"AMPM",P:"AmPm",M:"Minutes.2",S:"Seconds.2",s:"Unix",O:"TimezoneOffset",z:"GmtOffset",Z:"TimezoneAbbr"},shortcuts:{D:"%m/%d/%y",F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}},V.createDate=function(t){function e(t,e){var i,n,s,a,r=parseFloat(e[1]),o=parseFloat(e[2]),l=parseFloat(e[3]),h=V.config.defaultCentury;return 31<r?(n=l,s=o,i=h+r):(n=o,s=r,i=h+l),a=s+"/"+n+"/"+i,t.replace(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})/,a)}if(null==t)return new Date;if(t instanceof Date)return t;if("number"==typeof t)return new Date(t);var i,n=String(t).replace(/^\s*(.+)\s*$/g,"$1");if((i=(n=(n=n.replace(/^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,4})/,"$1/$2/$3")).replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{4})/i,"$1 $2 $3")).match(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i))&&3<i.length){var s=parseFloat(i[3]),a=V.config.defaultCentury+s;a=String(a),n=n.replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i,i[1]+" "+i[2]+" "+a)}(i=n.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})[^0-9]/))&&3<i.length&&(n=e(n,i)),(i=n.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})$/))&&3<i.length&&(n=e(n,i));for(var r,o,l,h=0,d=V.matchers.length,c=n;h<d;){if(o=Date.parse(c),!isNaN(o))return new Date(o);if("function"==typeof(r=V.matchers[h])){if((l=r.call(V,c))instanceof Date)return l}else c=n.replace(r[0],r[1]);h++}return NaN},V.daysInMonth=function(t,e){return 2==e?29==new Date(t,1,29).getDate()?29:28:[A,31,A,31,30,31,30,31,31,30,31,30,31][e]},V.matchers=[[/(3[01]|[0-2]\d)\s*\.\s*(1[0-2]|0\d)\s*\.\s*([1-9]\d{3})/,"$2/$1/$3"],[/([1-9]\d{3})\s*-\s*(1[0-2]|0\d)\s*-\s*(3[01]|[0-2]\d)/,"$2/$3/$1"],function(t){var e=t.match(/^(?:(.+)\s+)?([012]?\d)(?:\s*\:\s*(\d\d))?(?:\s*\:\s*(\d\d(\.\d*)?))?\s*(am|pm)?\s*$/i);if(e){if(e[1]){var i=this.createDate(e[1]);if(isNaN(i))return}else{(i=new Date).setMilliseconds(0)}var n=parseFloat(e[2]);return e[6]&&(n="am"==e[6].toLowerCase()?12==n?0:n:12==n?12:n+12),i.setHours(n,parseInt(e[3]||0,10),parseInt(e[4]||0,10),1e3*(parseFloat(e[5]||0)||0)),i}return t}
20,function(t){var e=t.match(/^(?:(.+))[T|\s+]([012]\d)(?:\:(\d\d))(?:\:(\d\d))(?:\.\d+)([\+\-]\d\d\:\d\d)$/i);if(e){if(e[1]){var i=this.createDate(e[1]);if(isNaN(i))return}else{(i=new Date).setMilliseconds(0)}var n=parseFloat(e[2]);return i.setHours(n,parseInt(e[3],10),parseInt(e[4],10),1e3*parseFloat(e[5])),i}return t},function(t){var e=t.match(/^([0-3]?\d)\s*[-\/.\s]{1}\s*([a-zA-Z]{3,9})\s*[-\/.\s]{1}\s*([0-3]?\d)$/);if(e){var i,n,s,a=new Date,r=V.config.defaultCentury,o=parseFloat(e[1]),l=parseFloat(e[3]);return 31<o?(n=l,i=r+o):(n=o,i=r+l),-1==(s=k(e[2],V.regional[V.regional.getLocale()].monthNamesShort))&&(s=k(e[2],V.regional[V.regional.getLocale()].monthNames)),a.setFullYear(i,s,n),a.setHours(0,0,0,0),a}return t}],Q.jsDate=V,Q.jqplot.sprintf=function(){function k(t,e,i,n){var s=t.length>=e?"":Array(1+e-t.length>>>0).join(i);return n?t+s:s+t}function T(t){for(var e=new String(t),i=10;0<i&&e!=(e=e.replace(/^(\d+)(\d{3})/,"$1"+Q.jqplot.sprintf.thousandsSeparator+"$2"));i--);return e}function D(t,e,i,n,s,a){var r=n-t.length;if(0<r){var o=" ";a&&(o="&nbsp;"),t=i||!s?k(t,n,o,i):t.slice(0,e.length)+k("",r,"0",!0)+t.slice(e.length)}return t}function A(t,e,i,n,s,a,r,o){var l=t>>>0;return D(t=(i=i&&l&&{2:"0b",8:"0",16:"0x"}[e]||"")+k(l.toString(e),a||0,"0",!1),i,n,s,r,o)}function I(t,e,i,n,s,a){return null!=n&&(t=t.slice(0,n)),D(t,"",e,i,s,a)}var E=arguments,M=0;return E[M++].replace(Q.jqplot.sprintf.regex,function(t,e,i,n,s,a,r){if("%%"==t)return"%";for(var o=!1,l="",h=!1,d=!1,c=!1,u=!1,p=0;i&&p<i.length;p++)switch(i.charAt(p)){case" ":l=" ";break;case"+":l="+";break;case"-":o=!0;break;case"0":h=!0;break;case"#":d=!0;break;case"&":c=!0;break;case"'":u=!0}if((n=n?"*"==n?+E[M++]:"*"==n.charAt(0)?+E[n.slice(1,-1)]:+n:0)<0&&(n=-n,o=!0),!isFinite(n))throw new Error("$.jqplot.sprintf: (minimum-)width must be finite");a=a?"*"==a?+E[M++]:"*"==a.charAt(0)?+E[a.slice(1,-1)]:+a:-1<"fFeE".indexOf(r)?6:"d"==r?0:void 0;var f=e?E[e.slice(0,-1)]:E[M++];switch(r){case"s":return null==f?"":I(String(f),o,n,a,h,c);case"c":return I(String.fromCharCode(+f),o,n,a,h,c);case"b":return A(f,2,d,o,n,a,h,c);case"o":return A(f,8,d,o,n,a,h,c);case"x":return A(f,16,d,o,n,a,h,c);case"X":return A(f,16,d,o,n,a,h,c).toUpperCase();case"u":return A(f,10,d,o,n,a,h,c);case"i":var g=parseInt(+f,10);return isNaN(g)?"":D(f=(m=g<0?"-":l)+k(b=u?T(String(Math.abs(g))):String(Math.abs(g)),a,"0",!1),m,o,n,h,c);case"d":g=Math.round(+f);return isNaN(g)?"":D(f=(m=g<0?"-":l)+k(b=u?T(String(Math.abs(g))):String(Math.abs(g)),a,"0",!1),m,o,n,h,c);case"e":case"E":case"f":case"F":case"g":case"G":g=+f;if(isNaN(g))return"";var m=g<0?"-":l,v=["toExponential","toFixed","toPrecision"]["efg".indexOf(r.toLowerCase())],_=["toString","toUpperCase"]["eEfFgG".indexOf(r)%2],b=Math.abs(g)[v](a),y=D(f=m+(b=u?T(b):b),m,o,n,h,c)[_]();return"."!==Q.jqplot.sprintf.decimalMark&&Q.jqplot.sprintf.decimalMark!==Q.jqplot.sprintf.thousandsSeparator?y.replace(/\./,Q.jqplot.sprintf.decimalMark):y;case"p":case"P":g=+f;if(isNaN(g))return"";m=g<0?"-":l;var w=String(Number(Math.abs(g)).toExponential()).split(/e|E/),x=-1!=w[0].indexOf(".")?w[0].length-1:w[0].length,C=w[1]<0?-w[1]-1:0;if(Math.abs(g)<1)f=x+C<=a?m+Math.abs(g).toPrecision(x):x<=a-1?m+Math.abs(g).toExponential(x-1):m+Math.abs(g).toExponential(a-1);else{var S=x<=a?x:a;f=m+Math.abs(g).toPrecision(S)}_=["toString","toUpperCase"]["pP".indexOf(r)%2];return D(f,m,o,n,h,c)[_]();case"n":return"";default:return t}})},Q.jqplot.sprintf.thousandsSeparator=",",Q.jqplot.sprintf.decimalMark=".",Q.jqplot.sprintf.regex=/%%|%(\d+\$)?([-+#0&\' ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([nAscboxXuidfegpEGP])/g,Q.jqplot.getSignificantFigures=function(t){var e=String(Number(Math.abs(t)).toExponential()).split(/e|E/),i=-1!=e[0].indexOf(".")?e[0].length-1:e[0].length,n=e[1]<0?-e[1]-1:0,s=parseInt(e[1],10),a=0<s+1?s+1:0;return{significantDigits:i,digitsLeft:a,digitsRight:i<=a?0:i-s-1,zeros:n,exponent:s}};var Z=!(Q.jqplot.getPrecision=function(t){return Q.jqplot.getSignificantFigures(t).digitsRight})!==Q.uiBackCompat;Q.jqplot.effects={effect:{}};var X="jqplot.storage.";Q.extend(Q.jqplot.effects,{version:"1.9pre",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data(X+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.css(e[i],t.data(X+e[i]))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var n={width:i.outerWidth(!0),height:i.outerHeight(!0),"float":i.css("float")},t=Q("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},s=document.activeElement;return i.wrap(t),(i[0]===s||Q.contains(i[0],s))&&Q(s).focus(),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(Q.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),Q.each(["top","left","bottom","right"],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===e||Q.contains(t[0],e))&&Q(e).focus()),t}}
20),Q.fn.extend({jqplotEffect:function(t,e,i,n){function s(t){function e(){Q.isFunction(n)&&n.call(i[0]),Q.isFunction(t)&&t()}var i=Q(this),n=a.complete,s=a.mode;(i.is(":hidden")?"hide"===s:"show"===s)?e():l.call(i[0],a,e)}var a=D.apply(this,arguments),r=a.mode,o=a.queue,l=Q.jqplot.effects.effect[a.effect],h=!l&&Z&&Q.jqplot.effects[a.effect];return Q.fx.off||!l&&!h?r?this[r](a.duration,a.complete):this.each(function(){a.complete&&a.complete.call(this)}):l?!1===o?this.each(s):this.queue(o||"fx",s):h.call(this,{options:a,duration:a.duration,callback:a.complete,mode:a.mode})}});var J=/up|down|vertical/,K=/up|left|vertical|horizontal/;Q.jqplot.effects.effect.blind=function(t,e){var i,n,s,a=Q(this),r=["position","top","bottom","left","right","height","width"],o=Q.jqplot.effects.setMode(a,t.mode||"hide"),l=t.direction||"up",h=J.test(l),d=h?"height":"width",c=h?"top":"left",u=K.test(l),p={},f="show"===o;a.parent().is(".ui-effects-wrapper")?Q.jqplot.effects.save(a.parent(),r):Q.jqplot.effects.save(a,r),a.show(),s=parseInt(a.css("top"),10),i=Q.jqplot.effects.createWrapper(a).css({overflow:"hidden"}),n=h?i[d]()+s:i[d](),p[d]=f?String(n):"0",u||(a.css(h?"bottom":"right",0).css(h?"top":"left","").css({position:"absolute"}),p[c]=f?"0":String(n)),f&&(i.css(d,0),u||i.css(c,n)),i.animate(p,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===o&&a.hide(),Q.jqplot.effects.restore(a,r),Q.jqplot.effects.removeWrapper(a),e()}})}}(jQuery),function(E){function h(t){return Math.sin((t-(t-Math.PI)/8/Math.PI)/2)}function M(t,e,i,n,s){var a=0,r=e-t,o=Math.abs(r),l=i;return 0==n&&(l+=s),0<l&&.01<o&&o<6.282&&(a=parseFloat(l)/2/h(r)),a}function t(t,e,i){(i=i||{}).axesDefaults=i.axesDefaults||{},i.legend=i.legend||{},i.seriesDefaults=i.seriesDefaults||{};var n=!1;if(i.seriesDefaults.renderer==E.jqplot.PieRenderer)n=!0;else if(i.series)for(var s=0;s<i.series.length;s++)i.series[s].renderer==E.jqplot.PieRenderer&&(n=!0);n&&(i.axesDefaults.renderer=E.jqplot.PieAxisRenderer,i.legend.renderer=E.jqplot.PieLegendRenderer,i.legend.preDraw=!0,i.seriesDefaults.pointLabels={show:!1})}function o(){for(var t=0;t<this.series.length;t++)this.series[t].renderer.constructor==E.jqplot.PieRenderer&&this.series[t].highlightMouseOver&&(this.series[t].highlightMouseDown=!1)}function l(){for(var t=0;t<this.series.length;t++)this.series[t].seriesColors=this.seriesColors,this.series[t].colorGenerator=E.jqplot.colorGenerator}function d(t,e,i){var n=t.series[e],s=t.plugins.pieRenderer.highlightCanvas;s._ctx.clearRect(0,0,s._ctx.canvas.width,s._ctx.canvas.height),n._highlightedPoint=i,t.plugins.pieRenderer.highlightedSeriesIndex=e,n.renderer.drawSlice.call(n,s._ctx,n._sliceAngles[i][0],n._sliceAngles[i][1],n.highlightColorGenerator.get(i),!1)}function c(t){var e=t.plugins.pieRenderer.highlightCanvas;e._ctx.clearRect(0,0,e._ctx.canvas.width,e._ctx.canvas.height);for(var i=0;i<t.series.length;i++)t.series[i]._highlightedPoint=null;t.plugins.pieRenderer.highlightedSeriesIndex=null,t.target.trigger("jqplotDataUnhighlight")}function u(t,e,i,n,s){if(n){var a=[n.seriesIndex,n.pointIndex,n.data],r=jQuery.Event("jqplotDataMouseOver");if(r.pageX=t.pageX,r.pageY=t.pageY,s.target.trigger(r,a),s.series[a[0]].highlightMouseOver&&(a[0]!=s.plugins.pieRenderer.highlightedSeriesIndex||a[1]!=s.series[a[0]]._highlightedPoint)){var o=jQuery.Event("jqplotDataHighlight");o.which=t.which,o.pageX=t.pageX,o.pageY=t.pageY,s.target.trigger(o,a),d(s,a[0],a[1])}}else null==n&&c(s)}function p(t,e,i,n,s){if(n){var a=[n.seriesIndex,n.pointIndex,n.data];if(s.series[a[0]].highlightMouseDown&&(a[0]!=s.plugins.pieRenderer.highlightedSeriesIndex||a[1]!=s.series[a[0]]._highlightedPoint)){var r=jQuery.Event("jqplotDataHighlight");r.which=t.which,r.pageX=t.pageX,r.pageY=t.pageY,s.target.trigger(r,a),d(s,a[0],a[1])}}else null==n&&c(s)}function f(t,e,i,n,s){var a=s.plugins.pieRenderer.highlightedSeriesIndex;null!=a&&s.series[a].highlightMouseDown&&c(s)}function g(t,e,i,n,s){if(n){var a=[n.seriesIndex,n.pointIndex,n.data],r=jQuery.Event("jqplotDataClick");r.which=t.which,r.pageX=t.pageX,r.pageY=t.pageY,s.target.trigger(r,a)}}function m(t,e,i,n,s){if(n){var a=[n.seriesIndex,n.pointIndex,n.data],r=s.plugins.pieRenderer.highlightedSeriesIndex;null!=r&&s.series[r].highlightMouseDown&&c(s);var o=jQuery.Event("jqplotDataRightClick");o.which=t.which,o.pageX=t.pageX,o.pageY=t.pageY,s.target.trigger(o,a)}}function v(){this.plugins.pieRenderer&&this.plugins.pieRenderer.highlightCanvas&&(this.plugins.pieRenderer.highlightCanvas.resetCanvas(),this.plugins.pieRenderer.highlightCanvas=null),this.plugins.pieRenderer={highlightedSeriesIndex:null},this.plugins.pieRenderer.highlightCanvas=new E.jqplot.GenericCanvas;var t=E(this.targetId+" .jqplot-data-label");t.length?E(t[0]).before(this.plugins.pieRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-pieRenderer-highlight-canvas",this._plotDimensions,this)):this.eventCanvas._elem.before(this.plugins.pieRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-pieRenderer-highlight-canvas",this._plotDimensions,this));this.plugins.pieRenderer.highlightCanvas.setContext();this.eventCanvas._elem.bind("mouseleave",{plot:this},function(t){c(t.data.plot)})}E.jqplot.PieRenderer=function(){E.jqplot.LineRenderer.call(this)},E.jqplot.PieRenderer.prototype=new E.jqplot.LineRenderer,
21E.jqplot.PieRenderer.prototype.constructor=E.jqplot.PieRenderer,E.jqplot.PieRenderer.prototype.init=function(t,e){if(this.diameter=null,this.padding=20,this.sliceMargin=0,this.fill=!0,this.shadowOffset=2,this.shadowAlpha=.07,this.shadowDepth=5,this.highlightMouseOver=!0,this.highlightMouseDown=!1,this.highlightColors=[],this.dataLabels="percent",this.showDataLabels=!1,this.dataLabelFormatString=null,this.dataLabelThreshold=3,this.dataLabelPositionFactor=.52,this.dataLabelNudge=2,this.dataLabelCenterOn=!0,this.startAngle=0,this.tickRenderer=E.jqplot.PieTickRenderer,this._drawData=!0,this._type="pie",t.highlightMouseDown&&null==t.highlightMouseOver&&(t.highlightMouseOver=!1),E.extend(!0,this,t),this.sliceMargin<0&&(this.sliceMargin=0),this._diameter=null,this._radius=null,this._sliceAngles=[],this._highlightedPoint=null,0==this.highlightColors.length)for(var i=0;i<this.seriesColors.length;i++){for(var n=E.jqplot.getColorComponents(this.seriesColors[i]),s=[n[0],n[1],n[2]],a=s[0]+s[1]+s[2],r=0;r<3;r++)s[r]=570<a?.8*s[r]:s[r]+.3*(255-s[r]),s[r]=parseInt(s[r],10);this.highlightColors.push("rgb("+s[0]+","+s[1]+","+s[2]+")")}this.highlightColorGenerator=new E.jqplot.ColorGenerator(this.highlightColors),e.postParseOptionsHooks.addOnce(l),e.postInitHooks.addOnce(o),e.eventListenerHooks.addOnce("jqplotMouseMove",u),e.eventListenerHooks.addOnce("jqplotMouseDown",p),e.eventListenerHooks.addOnce("jqplotMouseUp",f),e.eventListenerHooks.addOnce("jqplotClick",g),e.eventListenerHooks.addOnce("jqplotRightClick",m),e.postDrawHooks.addOnce(v)},E.jqplot.PieRenderer.prototype.setGridData=function(){var t=[],e=[],i=(this.startAngle,Math.PI,0);this._drawData=!1;for(var n=0;n<this.data.length;n++)0!=this.data[n][1]&&(this._drawData=!0),t.push(this.data[n][1]),e.push([this.data[n][0]]),0<n&&(t[n]+=t[n-1]),i+=this.data[n][1];var s=2*Math.PI/t[t.length-1];for(n=0;n<t.length;n++)e[n][1]=t[n]*s,e[n][2]=this.data[n][1]/i;this.gridData=e},E.jqplot.PieRenderer.prototype.makeGridData=function(t){var e=[],i=[],n=0;this.startAngle,Math.PI;this._drawData=!1;for(var s=0;s<t.length;s++)0!=this.data[s][1]&&(this._drawData=!0),e.push(t[s][1]),i.push([t[s][0]]),0<s&&(e[s]+=e[s-1]),n+=t[s][1];var a=2*Math.PI/e[e.length-1];for(s=0;s<e.length;s++)i[s][1]=e[s]*a,i[s][2]=t[s][1]/n;return i},E.jqplot.PieRenderer.prototype.drawSlice=function(e,i,n,s,t){function a(t){n>6.282+this.startAngle&&(n=6.282+this.startAngle)<i&&(i=6.281+this.startAngle),n<=i||(e.beginPath(),e.fillStyle=s,e.strokeStyle=s,e.lineWidth=l,e.arc(0,0,t,i,n,!1),e.lineTo(0,0),e.closePath(),o?e.fill():e.stroke())}if(this._drawData){var r=this._radius,o=this.fill,l=this.lineWidth;this.sliceMargin;0==this.fill&&this.lineWidth,e.save(),e.translate(this._center[0],this._center[1]);var h=M(i,n,this.sliceMargin,this.fill,this.lineWidth),d=h*Math.cos((i+n)/2),c=h*Math.sin((i+n)/2);if(n-i<=Math.PI?r-=h:r+=h,e.translate(d,c),t){for(var u=0,p=this.shadowDepth;u<p;
21u++)e.save(),e.translate(this.shadowOffset*Math.cos(this.shadowAngle/180*Math.PI),this.shadowOffset*Math.sin(this.shadowAngle/180*Math.PI)),a(r);for(u=0,p=this.shadowDepth;u<p;u++)e.restore()}else a(r);e.restore()}},E.jqplot.PieRenderer.prototype.draw=function(t,e,i,n){var s=i!=undefined?i:{},a=0,r=0,o=1,l=new E.jqplot.ColorGenerator(this.seriesColors);if(i.legendInfo&&"insideGrid"==i.legendInfo.placement){var h=i.legendInfo;switch(h.location){case"nw":case"w":case"sw":a=h.width+h.xoffset;break;case"ne":case"e":case"se":a=h.width+h.xoffset,o=-1;break;case"n":r=h.height+h.yoffset;break;case"s":r=h.height+h.yoffset,o=-1}}s.shadow!=undefined?s.shadow:this.shadow,s.fill!=undefined?s.fill:this.fill;var d=t.canvas.width,c=t.canvas.height,u=d-a-2*this.padding,p=c-r-2*this.padding,f=Math.min(u,p);this._sliceAngles=[];var g;this.sliceMargin;0==this.fill&&this.lineWidth;for(var m,v,_,b=0,y=this.startAngle/180*Math.PI,w=0,x=e.length;w<x;w++)m=0==w?y:e[w-1][1]+y,v=e[w][1]+y,this._sliceAngles.push([m,v]),g=M(m,v,this.sliceMargin,this.fill,this.lineWidth),Math.abs(v-m)>Math.PI&&(b=Math.max(g,b));if(null!=this.diameter&&0<this.diameter?this._diameter=this.diameter-2*b:this._diameter=f-2*b,this._diameter<6)E.jqplot.log("Diameter of pie too small, not rendering.");else{this._radius=this._diameter/2;if(this._center=[(d-o*a)/2+o*a+b*Math.cos(y),(c-o*r)/2+o*r+b*Math.sin(y)],this.shadow)for(w=0,x=e.length;w<x;w++)_="rgba(0,0,0,"+this.shadowAlpha+")",this.renderer.drawSlice.call(this,t,this._sliceAngles[w][0],this._sliceAngles[w][1],_,!0);for(w=0;w<e.length;w++)if(this.renderer.drawSlice.call(this,t,this._sliceAngles[w][0],this._sliceAngles[w][1],l.next(),!1),this.showDataLabels&&100*e[w][2]>=this.dataLabelThreshold){var C,S,k=(this._sliceAngles[w][0]+this._sliceAngles[w][1])/2;"label"==this.dataLabels?(C=this.dataLabelFormatString||"%s",S=E.jqplot.sprintf(C,e[w][0])):"value"==this.dataLabels?(C=this.dataLabelFormatString||"%d",S=E.jqplot.sprintf(C,this.data[w][1])):"percent"==this.dataLabels?(C=this.dataLabelFormatString||"%d%%",S=E.jqplot.sprintf(C,100*e[w][2])):this.dataLabels.constructor==Array&&(C=this.dataLabelFormatString||"%s",S=E.jqplot.sprintf(C,this.dataLabels[w]));var T=this._radius*this.dataLabelPositionFactor+this.sliceMargin+this.dataLabelNudge,D=this._center[0]+Math.cos(k)*T+this.canvas._offsets.left,A=this._center[1]+Math.sin(k)*T+this.canvas._offsets.top,I=E('<div class="jqplot-pie-series jqplot-data-label" style="position:absolute;">'+S+"</div>").insertBefore(n.eventCanvas._elem);this.dataLabelCenterOn?D-=I.width()/2:D-=I.width()*Math.sin(k/2),A-=I.height()/2,D=Math.round(D),A=Math.round(A),I.css({left:D,top:A})}}},E.jqplot.PieAxisRenderer=function(){E.jqplot.LinearAxisRenderer.call(this)},E.jqplot.PieAxisRenderer.prototype=new E.jqplot.LinearAxisRenderer,E.jqplot.PieAxisRenderer.prototype.constructor=E.jqplot.PieAxisRenderer,E.jqplot.PieAxisRenderer.prototype.init=function(t){this.tickRenderer=E.jqplot.PieTickRenderer,E.extend(!0,this,t),this._dataBounds={min:0,max:100},this.min=0,this.max=100,this.showTicks=!1,this.ticks=[],this.showMark=!1,this.show=!1},E.jqplot.PieLegendRenderer=function(){E.jqplot.TableLegendRenderer.call(this)},E.jqplot.PieLegendRenderer.prototype=new E.jqplot.TableLegendRenderer,E.jqplot.PieLegendRenderer.prototype.constructor=E.jqplot.PieLegendRenderer,E.jqplot.PieLegendRenderer.prototype.init=function(t){this.numberRows=null,this.numberColumns=null,E.extend(!0,this,t)},E.jqplot.PieLegendRenderer.prototype.draw=function(){if(this.show){var t=this._series;this._elem=E(document.createElement("table")),this._elem.addClass("jqplot-table-legend");var e={position:"absolute"};this.background&&(e.background=this.background),this.border&&(e.border=this.border),this.fontSize&&(e.fontSize=this.fontSize),this.fontFamily&&(e.fontFamily=this.fontFamily),this.textColor&&(e.textColor=this.textColor),null!=this.marginTop&&(e.marginTop=this.marginTop),null!=this.marginBottom&&(e.marginBottom=this.marginBottom),null!=this.marginLeft&&(e.marginLeft=this.marginLeft),null!=this.marginRight&&(e.marginRight=this.marginRight),this._elem.css(e);var i,n,s=!1,a=t[0],r=new E.jqplot.ColorGenerator(a.seriesColors);if(a.show){var o,l,h,d,c,u,p,f,g=a.data;this.numberRows?(i=this.numberRows,n=this.numberColumns?this.numberColumns:Math.ceil(g.length/i)):this.numberColumns?(n=this.numberColumns,i=Math.ceil(g.length/this.numberColumns)):(i=g.length,n=1);var m,v,_=0;for(o=0;o<i;o++)for((h=E(document.createElement("tr"))).addClass("jqplot-table-legend"),s?h.prependTo(this._elem):h.appendTo(this._elem),l=0;l<n;l++)_<g.length&&(u=this.labels[_]||g[_][0].toString(),f=r.next(),p=(s?o!=i-1:0<o)?this.rowSpacing:"0",(d=E(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-swatch"),d.css({textAlign:"center",paddingTop:p}),(m=E(document.createElement("div"))).addClass("jqplot-table-legend-swatch-outline"),(v=E(document.createElement("div"))).addClass("jqplot-table-legend-swatch"),v.css({backgroundColor:f,borderColor:f}),d.append(m.append(v)),(c=E(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-label"),c.css("paddingTop",p),this.escapeHtml?c.text(u):c.html(u),s?(c.prependTo(h),d.prependTo(h)):(d.appendTo(h),c.appendTo(h)),!0),_++}}return this._elem}
21,E.jqplot.PieRenderer.prototype.handleMove=function(t,e,i,n,s){if(n){var a=[n.seriesIndex,n.pointIndex,n.data];s.target.trigger("jqplotDataMouseOver",a),!s.series[a[0]].highlightMouseOver||a[0]==s.plugins.pieRenderer.highlightedSeriesIndex&&a[1]==s.series[a[0]]._highlightedPoint||(s.target.trigger("jqplotDataHighlight",a),d(s,a[0],a[1]))}else null==n&&c(s)},E.jqplot.preInitHooks.push(t),E.jqplot.PieTickRenderer=function(){E.jqplot.AxisTickRenderer.call(this)},E.jqplot.PieTickRenderer.prototype=new E.jqplot.AxisTickRenderer,E.jqplot.PieTickRenderer.prototype.constructor=E.jqplot.PieTickRenderer}(jQuery),function(R){function H(t,e,i){for(var n,s,a,r=Number.MAX_VALUE,o=0,l=d.length;o<l;o++)(n=Math.abs(i-d[o]))<r&&(r=n,s=d[o],a=h[o]);return[s,a]}R.jqplot.DateAxisRenderer=function(){R.jqplot.LinearAxisRenderer.call(this),this.date=new R.jsDate};var t=1e3,e=60*t,i=60*e,L=24*i,n=7*L,N=30.4368499*L,q=365.242199*L,h=["%M:%S.%#N","%M:%S.%#N","%M:%S.%#N","%M:%S","%M:%S","%M:%S","%M:%S","%H:%M:%S","%H:%M:%S","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%a %H:%M","%a %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%v","%v","%v","%v","%v","%v","%v"],d=[.1*t,.2*t,.5*t,t,2*t,5*t,10*t,15*t,30*t,e,2*e,5*e,10*e,15*e,30*e,i,2*i,4*i,6*i,8*i,12*i,L,2*L,3*L,4*L,5*L,n,2*n];R.jqplot.DateAxisRenderer.prototype=new R.jqplot.LinearAxisRenderer,R.jqplot.DateAxisRenderer.prototype.constructor=R.jqplot.DateAxisRenderer,R.jqplot.DateTickFormatter=function(t,e){return t||(t="%Y/%m/%d"),R.jsDate.strftime(e,t)},R.jqplot.DateAxisRenderer.prototype.init=function(t){this.tickOptions.formatter=R.jqplot.DateTickFormatter,this.tickInset=0,this.drawBaseline=!0,this.baselineWidth=null,this.baselineColor=null,this.daTickInterval=null,this._daTickInterval=null,R.extend(!0,this,t);for(var e,i,n,s,a,r,o,l=this._dataBounds,h=0;h<this._series.length;h++){e={intervals:[],frequencies:{},sortedIntervals:[],min:null,max:null,mean:null},i=0,s=(n=this._series[h]).data,a=n._plotData,r=n._stackData;for(var d=o=0;d<s.length;d++)"xaxis"==this.name||"x2axis"==this.name?(s[d][0]=new R.jsDate(s[d][0]).getTime(),a[d][0]=new R.jsDate(s[d][0]).getTime(),r[d][0]=new R.jsDate(s[d][0]).getTime(),(null!=s[d][0]&&s[d][0]<l.min||null==l.min)&&(l.min=s[d][0]),(null!=s[d][0]&&s[d][0]>l.max||null==l.max)&&(l.max=s[d][0]),0<d&&(o=Math.abs(s[d][0]-s[d-1][0]),e.intervals.push(o),e.frequencies.hasOwnProperty(o)?e.frequencies[o]+=1:e.frequencies[o]=1),i+=o):(s[d][1]=new R.jsDate(s[d][1]).getTime(),a[d][1]=new R.jsDate(s[d][1]).getTime(),r[d][1]=new R.jsDate(s[d][1]).getTime(),(null!=s[d][1]&&s[d][1]<l.min||null==l.min)&&(l.min=s[d][1]),(null!=s[d][1]&&s[d][1]>l.max||null==l.max)&&(l.max=s[d][1]),0<d&&(o=Math.abs(s[d][1]-s[d-1][1]),e.intervals.push(o),e.frequencies.hasOwnProperty(o)?e.frequencies[o]+=1:e.frequencies[o]=1)),i+=o;if(n.renderer.bands){if(n.renderer.bands.hiData.length){d=0;for(var c=(u=n.renderer.bands.hiData).length;d<c;d++)"xaxis"===this.name||"x2axis"===this.name?(u[d][0]=new R.jsDate(u[d][0]).getTime(),(null!=u[d][0]&&u[d][0]>l.max||null==l.max)&&(l.max=u[d][0])):(u[d][1]=new R.jsDate(u[d][1]).getTime(),(null!=u[d][1]&&u[d][1]>l.max||null==l.max)&&(l.max=u[d][1]))}if(n.renderer.bands.lowData.length){var u;for(d=0,c=(u=n.renderer.bands.lowData).length;d<c;d++)"xaxis"===this.name||"x2axis"===this.name?(u[d][0]=new R.jsDate(u[d][0]).getTime(),(null!=u[d][0]&&u[d][0]<l.min||null==l.min)&&(l.min=u[d][0])):(u[d][1]=new R.jsDate(u[d][1]).getTime(),(null!=u[d][1]&&u[d][1]<l.min||null==l.min)&&(l.min=u[d][1]))}}for(var p in e.frequencies)e.sortedIntervals.push({interval:p,frequency:e.frequencies[p]});e.sortedIntervals.sort(function(t,e){return e.frequency-t.frequency}),e.min=R.jqplot.arrayMin(e.intervals),e.max=R.jqplot.arrayMax(e.intervals),e.mean=i/s.length,this._intervalStats.push(e),e=i=n=s=a=r=null}l=null},R.jqplot.DateAxisRenderer.prototype.reset=function(){this.min=this._options.min,this.max=this._options.max,this.tickInterval=this._options.tickInterval,this.numberTicks=this._options.numberTicks,this._autoFormatString="",this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString&&(this.tickOptions.formatString=""),this.daTickInterval=this._daTickInterval},R.jqplot.DateAxisRenderer.prototype.createTicks=function(t){this._ticks;var e,i,n=this.ticks,s=this.name,a=this._dataBounds,r=(this._intervalStats,"x"===this.name.charAt(0)?this._plotDimensions.width:this._plotDimensions.height),o=30,l=1;this.tickInterval;P=null!=this.min?new R.jsDate(this.min).getTime():a.min,e=null!=this.max?new R.jsDate(this.max).getTime():a.max;var h=t.plugins.cursor;h&&h._zoom&&h._zoom.zooming&&(this.min=null,this.max=null);var d=e-P;if(null!=this.tickOptions&&this.tickOptions.formatString||(this._overrideFormatString=!0),n.length){for(g=0;g<n.length;g++){var c=n[g],u=new this.tickRenderer(this.tickOptions);c.constructor==Array?(u.value=new R.jsDate(c[0]).getTime(),u.label=c[1]):u.value=new R.jsDate(c).getTime(),this.showTicks?this.showTickMarks||(u.showMark=!1):(u.showLabel=!1,u.showMark=!1),u.setTick(u.value,this.name),this._ticks.push(u)}this.numberTicks=n.length,this.min=this._ticks[0].value,this.max=this._ticks[this.numberTicks-1].value,this.daTickInterval=[(this.max-this.min)/(this.numberTicks-1)/1e3,"seconds"]}else if(null==this.min&&null==this.max&&a.min==a.max){var p=R.extend(!0,{},this.tickOptions,{name:this.name,value:null}),f=3e5;this.min=a.min-f,this.max=a.max+f,this.numberTicks=3;for(var g=this.min;g<=this.max;g+=f){p.value=g;u=new this.tickRenderer(p);this._overrideFormatString&&""!=this._autoFormatString&&(u.formatString=this._autoFormatString),u.showLabel=!1,u.showMark=!1,this._ticks.push(u)}this.showTicks&&(this._ticks[1].showLabel=!0),this.showTickMarks&&(this._ticks[1].showTickMarks=!0)}else if(null==this.min&&null==this.max){var m,v,_=R.extend(!0,{},this.tickOptions,{name:this.name,value:null});if(this.tickInterval||this.numberTicks)this.tickInterval?v=this.tickInterval:this.numberTicks&&(v=(e-P)/((m=this.numberTicks)-1));else{var b=Math.max(r,o+1),y=115;this.tickRenderer===R.jqplot.CanvasAxisTickRenderer&&this.tickOptions.angle&&(y=115-40*Math.abs(Math.sin(this.tickOptions.angle/180*Math.PI))),v=(e-P)/((m=M
21ath.ceil((b-o)/y+1))-1)}if(v<=19*L){var w=H(P,e,v),x=w[0];this._autoFormatString=w[1],P=Math.floor(P/x)*x,P=(P=new R.jsDate(P)).getTime()+P.getUtcOffset(),m=Math.ceil((e-P)/x)+1,this.min=P,this.max=P+(m-1)*x,this.max<e&&(this.max+=x,m+=1),this.tickInterval=x,this.numberTicks=m;for(g=0;g<m;g++)_.value=this.min+g*x,u=new this.tickRenderer(_),this._overrideFormatString&&""!=this._autoFormatString&&(u.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(u.showMark=!1):(u.showLabel=!1,u.showMark=!1),this._ticks.push(u);l=this.tickInterval}else if(v<=9*N){this._autoFormatString="%v",(D=Math.round(v/N))<1?D=1:6<D&&(D=6);var C=new R.jsDate(P).setDate(1).setHours(0,0,0,0),S=new R.jsDate(e),k=new R.jsDate(e).setDate(1).setHours(0,0,0,0);S.getTime()!==k.getTime()&&(k=k.add(1,"month"));var T=k.diff(C,"month");m=Math.ceil(T/D)+1,this.min=C.getTime(),this.max=C.clone().add((m-1)*D,"month").getTime(),this.numberTicks=m;for(g=0;g<m;g++)_.value=0===g?C.getTime():C.add(D,"month").getTime(),u=new this.tickRenderer(_),this._overrideFormatString&&""!=this._autoFormatString&&(u.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(u.showMark=!1):(u.showLabel=!1,u.showMark=!1),this._ticks.push(u);l=D*N}else{var D;this._autoFormatString="%v",(D=Math.round(v/q))<1&&(D=1);C=new R.jsDate(P).setMonth(0,1).setHours(0,0,0,0);var A=(k=new R.jsDate(e).add(1,"year").setMonth(0,1).setHours(0,0,0,0)).diff(C,"year");m=Math.ceil(A/D)+1,this.min=C.getTime(),this.max=C.clone().add((m-1)*D,"year").getTime(),this.numberTicks=m;for(g=0;g<m;g++)_.value=0===g?C.getTime():C.add(D,"year").getTime(),u=new this.tickRenderer(_),this._overrideFormatString&&""!=this._autoFormatString&&(u.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(u.showMark=!1):(u.showLabel=!1,u.showMark=!1),this._ticks.push(u);l=D*q}}else{if(r="xaxis"==s||"x2axis"==s?this._plotDimensions.width:this._plotDimensions.height,null!=this.min&&null!=this.max&&null!=this.numberTicks&&(this.tickInterval=null),null!=this.tickInterval)if(Number(this.tickInterval))this.daTickInterval=[Number(this.tickInterval),"seconds"];else if("string"==typeof this.tickInterval){var I=this.tickInterval.split(" ");1==I.length?this.daTickInterval=[1,I[0]]:2==I.length&&(this.daTickInterval=[I[0],I[1]])}if(P==e){var E=432e5;P-=E,e+=E}d=e-P;var M,F;parseInt(Math.max(0,r-100)/100,10);if(M=null!=this.min?new R.jsDate(this.min).getTime():P-d/2*(this.padMin-1),F=null!=this.max?new R.jsDate(this.max).getTime():e+d/2*(this.padMax-1),this.min=M,this.max=F,d=this.max-this.min,null==this.numberTicks)if(null!=this.daTickInterval){var j=new R.jsDate(this.max).diff(this.min,this.daTickInterval[1],!0);this.numberTicks=Math.ceil(j/this.daTickInterval[0])+1,this.max=new R.jsDate(this.min).add((this.numberTicks-1)*this.daTickInterval[0],this.daTickInterval[1]).getTime()}else this.numberTicks=200<r?parseInt(3+(r-200)/100,10):2;l=d/(this.numberTicks-1)/1e3,null==this.daTickInterval&&(this.daTickInterval=[l,"seconds"]);for(g=0;g<this.numberTicks;g++){var P;i=(P=new R.jsDate(this.min)).add(g*this.daTickInterval[0],this.daTickInterval[1]).getTime();u=new this.tickRenderer(this.tickOptions);this.showTicks?this.showTickMarks||(u.showMark=!1):(u.showLabel=!1,u.showMark=!1),u.setTick(i,this.name),this._ticks.push(u)}}this.tickInset&&(this.min=this.min-this.tickInset*l,this.max=this.max+this.tickInset*l),null==this._daTickInterval&&(this._daTickInterval=this.daTickInterval)}}(jQuery),function(w){function u(t,e,i){var n=i.plugins.cursor,s="",a=!1;if(n.showTooltipGridPosition&&(s=t.x+", "+t.y,a=!0),n.showTooltipUnitPosition)for(var r,o=0;o<n.tooltipAxisGroups.length;o++){if(r=n.tooltipAxisGroups[o],a&&(s+="<br />"),n.useAxesFormatters)for(var l=0;l<r.length;l++){l&&(s+=", "),s+=(0,i.axes[r[l]]._ticks[0].formatter)(i.axes[r[l]]._ticks[0].formatString,e[r[l]])}else s+=w.jqplot.sprintf(n.tooltipFormatString,e[r[0]],e[r[1]]);a=!0}if(n.showTooltipDataPosition){var h=i.series,d=x(i,t.x,t.y);for(a=!1,o=0;o<h.length;o++)if(h[o].show){var c=h[o].index,u=h[o].label.toString(),p=w.inArray(c,d.indices),f=undefined,g=undefined;if(-1!=p){var m=d.data[p].data;if(n.useAxesFormatters){var v=h[o]._xaxis._ticks[0].formatter,_=h[o]._yaxis._ticks[0].formatter,b=h[o]._xaxis._ticks[0].formatString,y=h[o]._yaxis._ticks[0].formatString;f=v(b,m[0]),g=_(y,m[1])}else f=m[0],g=m[1];a&&(s+="<br />"),s+=w.jqplot.sprintf(n.tooltipFormatString,u,f,g),a=!0}}}n._tooltipElem.html(s)}function r(t,e){var i=e.plugins.cursor,n=i.cursorCanvas._ctx;n.clearRect(0,0,n.canvas.width,n.canvas.height),i.showVerticalLine&&i.shapeRenderer.draw(n,[[t.x,0],[t.x,n.canvas.height]]),i.showHorizontalLine&&i.shapeRenderer.draw(n,[[0,t.y],[n.canvas.width,t.y]]);var s=x(e,t.x,t.y);if(i.showCursorLegend)for(var a=w(e.targetId+" td.jqplot-cursor-legend-label"),r=0;r<a.length;r++){var o=w(a[r]).data("seriesIndex"),l=e.series[o],h=l.label.toString(),d=w.inArray(o,s.indices),c=undefined,u=undefined;if(-1!=d){var p=s.data[d].data;if(i.useAxesFormatters){var f=l._xaxis._ticks[0].formatter,g=l._yaxis._ticks[0].formatter,m=l._xaxis._ticks[0].formatString,v=l._yaxis._ticks[0].formatString;c=f(m,p[0]),u=g(v,p[1])}else c=p[0],u=p[1]}e.legend.escapeHtml?w(a[r]).text(w.jqplot.sprintf(i.cursorLegendFormatString,h,c,u)):w(a[r]).html(w.jqplot.sprintf(i.cursorLegendFormatString,h,c,u))}n=null}function x(t,e){for(var i,n,s,a={indices:[],data:[]},r=t.plugins.cursor,o=0;o<t.series.length;o++)if((i=t.series[o]).renderer,i.show){s=r.intersectionThreshold,i.showMarker&&(s+=i.markerRenderer.size/2);for(var l=0;l<i.gridData.length;l++)n=i.gridData[l],r.showVerticalLine&&Math.abs(e-n[0])<=s&&(a.indices.push(o),a.data.push({seriesIndex:o,pointIndex:l,gridData:n,data:i.data[l]}))}return a}function p(t,e){var i=e.plugins.cursor,n=i._tooltipElem;switch(i.tooltipLocation){case"nw":var s=t.x+e._gridPadding.left-n.outerWidth(!0)-i.tooltipOffset,a=t.y+e._gridPadding.top-i.tooltipOffset-n.outerHeight(!0);break;case"n":s=t.x+e._gridPadding.left-n.outerWidth(!0)/2,a=t.y+e._gridPadding.top-i.tooltipOffset-n.outerHeight(!0);break;case"ne":s=t.x+e._gridPadding.left+i.tooltipOffset,a=t.y+e._gridPadding.top-i.tooltipOffset-n.outerHeight(!0);break;case"e":s=t.x+e._gridPadding.left+i.tooltipOffset,a=t.y+e._gridPadding.top-n.outerHeight(!0)/2;break;case"se":s=t.x+e._gridPadding.left+i.tooltipOffset,a=t.y+e._gridPadding.top+i.tooltipOffset;break;case"s":s=t.x+e._gridPadding.left-n.outerWidth(!0)/2,a=t.y+e._gridPadding.top+i.tooltipOffset;break;case"sw":s=t.x+e._gridPadding.left-n.outerWidth(!0)-i.tooltipOffset,a=t.y+e._gridPadding.top+i.tooltipOffset;break;case"w":s=t.x+e._gridPadding.left-n.outerWidth(!0)-i.tooltipOffset,a=t.y+e._gridPadding.top-n.outerHeight(!0)/2;break;default:s=t.x+e._gridPadding.left+i.tooltipOffset,a=t.y+e._gridPadding.top+i.tooltipOffset}n.css("left",s),n.css("top",a),n=null}function o(t){var e=t._gridPadding,i=t.plugins.cursor,n=i._tooltipElem;switch(i.tooltipLocation){case"nw":var s=e.left+i.tooltipOffset,a=e.top+i.tooltipOffset;n.css("left",s),n.css("top",a);break;case"n":s=(e.left+(t._plotDimensions.width-e.right))/2-n.outerWidth(!0)/2,a=e.top+i.tooltipOffset;n.css("left",s),n.css("top",a);break;case"ne":s=e.right+i.tooltipOffset,a=e.top+i.tooltipOffset;n.css({right:s,top:a});break;case"e":s=e.right+i.tooltipOffset,a=(e.top+(t._plotDimensions.height-e.bottom))/2-n.outerHeight(!0)/2;n.css({right:s,top:a});break;case"se":s=e.right+i.tooltipOffset,a=e.bottom+i.tooltipOffset;n.css({right:s,bottom:a});break;case"s":s=(e.left+(t._plotDimensions.width-e.right))/2-n.outerWidth(!0)/2,a=e.bottom+i.tooltipOffset;n.css({left:s,bottom:a});break;case"sw":s=e.left+i.tooltipOffset,a=e.bottom+i.tooltipOffset;n.css({left:s,bottom:a});break;case"w":s=e.left+i.tooltipOffset,a=(e.top+(t._plotDimensions.height-e.bottom))/2-n.outerHeight(!0)/2;n.css({left:s,top:a});break;default:s=e.right-i.tooltipOffset,a=e.bottom+i.tooltipOffset;n.css({right:s,bottom:a})}n=null}function a(t,e,i,n,s){t.preventDefault(),t.stopImmediatePropagation();var a=s.plugins.cursor;a.clickReset&&a.resetZoom(s,a);var r=window.getSelection;return document.selection&&document.selection.empty?document.selection.empty():r&&!r().isCollapsed&&r().collapse(),!1}function l(t,e,i,n,s){t.preventDefault(),t.stopImmediatePropagation();var a=s.plugins.cursor;a.dblClickReset&&a.resetZoom(s,a);var r=window.getSelection;return document.selection&&document.selection.empty?document.selection.empty():r&&!r().isCollapsed&&r().collapse(),!1}
21function h(t,e,i,n,s){var a=s.plugins.cursor;if(a.onGrid=!1,a.show){if(w(t.target).css("cursor",a.previousCursor),!a.showTooltip||a._zoom.zooming&&a.showTooltipOutsideZoom&&!a.constrainOutsideZoom||(a._tooltipElem.empty(),a._tooltipElem.hide()),a.zoom&&(a._zoom.gridpos=e,a._zoom.datapos=i),a.showVerticalLine||a.showHorizontalLine){var r=a.cursorCanvas._ctx;r.clearRect(0,0,r.canvas.width,r.canvas.height),r=null}if(a.showCursorLegend)for(var o=w(s.targetId+" td.jqplot-cursor-legend-label"),l=0;l<o.length;l++){var h=w(o[l]).data("seriesIndex"),d=s.series[h].label.toString();s.legend.escapeHtml?w(o[l]).text(w.jqplot.sprintf(a.cursorLegendFormatString,d,undefined,undefined)):w(o[l]).html(w.jqplot.sprintf(a.cursorLegendFormatString,d,undefined,undefined))}}}function d(t,e,i,n,s){var a=s.plugins.cursor;a.onGrid=!0,a.show&&(a.previousCursor=t.target.style.cursor,t.target.style.cursor=a.style,a.showTooltip&&(u(e,i,s),a.followMouse?p(e,s):o(s),a._tooltipElem.show()),(a.showVerticalLine||a.showHorizontalLine)&&r(e,s))}function c(t,e,i,n,s){var a=s.plugins.cursor;a.show&&(a.showTooltip&&(u(e,i,s),a.followMouse&&p(e,s)),(a.showVerticalLine||a.showHorizontalLine)&&r(e,s))}function f(t){var e,i,n=t.data.plot,s=n.eventCanvas._elem.offset(),a={x:t.pageX-s.left,y:t.pageY-s.top},r={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null},o=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],l=n.axes;for(e=11;0<e;e--)l[i=o[e-1]].show&&(r[i]=l[i].series_p2u(a[i.charAt(0)]));return{offsets:s,gridPos:a,dataPos:r}}function g(t){var e=t.data.plot,i=e.plugins.cursor;if(i.show&&i.zoom&&i._zoom.started&&!i.zoomTarget){t.preventDefault();var n=i.zoomCanvas._ctx,s=f(t),a=s.gridPos,r=s.dataPos;i._zoom.gridpos=a,i._zoom.datapos=r,i._zoom.zooming=!0;var o=a.x,l=a.y,h=n.canvas.height,d=n.canvas.width;i.showTooltip&&!i.onGrid&&i.showTooltipOutsideZoom&&(u(a,r,e),i.followMouse&&p(a,e)),"x"==i.constrainZoomTo?i._zoom.end=[o,h]:"y"==i.constrainZoomTo?i._zoom.end=[d,l]:i._zoom.end=[o,l];var c=window.getSelection;document.selection&&document.selection.empty?document.selection.empty():c&&!c().isCollapsed&&c().collapse(),_.call(i),n=null}}function m(t,e,i,n,s){var a=s.plugins.cursor;s.plugins.mobile?w(document).one("vmouseup.jqplot_cursor",{plot:s},v):w(document).one("mouseup.jqplot_cursor",{plot:s},v);s.axes;if(document.onselectstart!=undefined&&(a._oldHandlers.onselectstart=document.onselectstart,document.onselectstart=function(){return!1}),document.ondrag!=undefined&&(a._oldHandlers.ondrag=document.ondrag,document.ondrag=function(){return!1}),document.onmousedown!=undefined&&(a._oldHandlers.onmousedown=document.onmousedown,document.onmousedown=function(){return!1}),a.zoom){if(!a.zoomProxy){var r=a.zoomCanvas._ctx;r.clearRect(0,0,r.canvas.width,r.canvas.height),r=null}for(var o in"x"==a.constrainZoomTo?a._zoom.start=[e.x,0]:"y"==a.constrainZoomTo?a._zoom.start=[0,e.y]:a._zoom.start=[e.x,e.y],a._zoom.started=!0,i)a._zoom.axes.start[o]=i[o];s.plugins.mobile?w(document).bind("vmousemove.jqplotCursor",{plot:s},g):w(document).bind("mousemove.jqplotCursor",{plot:s},g)}}function v(t){var e=t.data.plot,i=e.plugins.cursor;if(i.zoom&&i._zoom.zooming&&!i.zoomTarget){var n=i._zoom.gridpos.x,s=i._zoom.gridpos.y,a=i._zoom.datapos,r=i.zoomCanvas._ctx.canvas.height,o=i.zoomCanvas._ctx.canvas.width,l=e.axes;if(i.constrainOutsideZoom&&!i.onGrid)for(var h in n<0?n=0:o<n&&(n=o),s<0?s=0:r<s&&(s=r),a)a[h]&&("x"==h.charAt(0)?a[h]=l[h].series_p2u(n):a[h]=l[h].series_p2u(s));"x"==i.constrainZoomTo?s=r:"y"==i.constrainZoomTo&&(n=o),i._zoom.end=[n,s],i._zoom.gridpos={x:n,y:s},i.doZoom(i._zoom.gridpos,a,e,i)}i._zoom.started=!1,i._zoom.zooming=!1,w(document).unbind("mousemove.jqplotCursor",g),document.onselectstart!=undefined&&null!=i._oldHandlers.onselectstart&&(document.onselectstart=i._oldHandlers.onselectstart,i._oldHandlers.onselectstart=null),document.ondrag!=undefined&&null!=i._oldHandlers.ondrag&&(document.ondrag=i._oldHandlers.ondrag,i._oldHandlers.ondrag=null),document.onmousedown!=undefined&&null!=i._oldHandlers.onmousedown&&(document.onmousedown=i._oldHandlers.onmousedown,i._oldHandlers.onmousedown=null)}function _(){var t,e,i,n,s=this._zoom.start,a=this._zoom.end,r=this.zoomCanvas._ctx;a[0]>s[0]?(t=s[0],n=a[0]-s[0]):(t=a[0],n=s[0]-a[0]),a[1]>s[1]?(e=s[1],i=a[1]-s[1]):(e=a[1],i=s[1]-a[1]),r.fillStyle="rgba(0,0,0,0.2)",r.strokeStyle="#999999",r.lineWidth=1,r.clearRect(0,0,r.canvas.width,r.canvas.height),r.fillRect(0,0,r.canvas.width,r.canvas.height),r.clearRect(t,e,n,i),r.strokeRect(t,e,n,i),r=null}
21w.jqplot.Cursor=function(t){this.style="crosshair",this.previousCursor="auto",this.show=w.jqplot.config.enablePlugins,this.showTooltip=!0,this.followMouse=!1,this.tooltipLocation="se",this.tooltipOffset=6,this.showTooltipGridPosition=!1,this.showTooltipUnitPosition=!0,this.showTooltipDataPosition=!1,this.tooltipFormatString="%.4P, %.4P",this.useAxesFormatters=!0,this.tooltipAxisGroups=[],this.zoom=!1,this.zoomProxy=!1,this.zoomTarget=!1,this.looseZoom=!0,this.clickReset=!1,this.dblClickReset=!0,this.showVerticalLine=!1,this.showHorizontalLine=!1,this.constrainZoomTo="none",this.shapeRenderer=new w.jqplot.ShapeRenderer,this._zoom={start:[],end:[],started:!1,zooming:!1,isZoomed:!1,axes:{start:{},end:{}},gridpos:{},datapos:{}},this._tooltipElem,this.zoomCanvas,this.cursorCanvas,this.intersectionThreshold=2,this.showCursorLegend=!1,this.cursorLegendFormatString=w.jqplot.Cursor.cursorLegendFormatString,this._oldHandlers={onselectstart:null,ondrag:null,onmousedown:null},this.constrainOutsideZoom=!0,this.showTooltipOutsideZoom=!1,this.onGrid=!1,w.extend(!0,this,t)},w.jqplot.Cursor.cursorLegendFormatString="%s x:%s, y:%s",w.jqplot.Cursor.init=function(t,e,i){var n=i||{};this.plugins.cursor=new w.jqplot.Cursor(n.cursor);var s=this.plugins.cursor;s.show&&(w.jqplot.eventListenerHooks.push(["jqplotMouseEnter",d]),w.jqplot.eventListenerHooks.push(["jqplotMouseLeave",h]),w.jqplot.eventListenerHooks.push(["jqplotMouseMove",c]),s.showCursorLegend&&(i.legend=i.legend||{},i.legend.renderer=w.jqplot.CursorLegendRenderer,i.legend.formatString=this.plugins.cursor.cursorLegendFormatString,i.legend.show=!0),s.zoom&&(w.jqplot.eventListenerHooks.push(["jqplotMouseDown",m]),s.clickReset&&w.jqplot.eventListenerHooks.push(["jqplotClick",a]),s.dblClickReset&&w.jqplot.eventListenerHooks.push(["jqplotDblClick",l])),this.resetZoom=function(){var t=this.axes;if(s.zoomProxy){var e=this.plugins.cursor.zoomCanvas._ctx;e.clearRect(0,0,e.canvas.width,e.canvas.height),e=null}else{for(var i in t)t[i].reset(),t[i]._ticks=[],s._zoom.axes[i]!==undefined&&(t[i]._autoFormatString=s._zoom.axes[i].tickFormatString);this.redraw()}this.plugins.cursor._zoom.isZoomed=!1,this.target.trigger("jqplotResetZoom",[this,this.plugins.cursor])},s.showTooltipDataPosition&&(s.showTooltipUnitPosition=!1,s.showTooltipGridPosition=!1,n.cursor.tooltipFormatString==undefined&&(s.tooltipFormatString=w.jqplot.Cursor.cursorLegendFormatString)))},w.jqplot.Cursor.postDraw=function(){var t=this.plugins.cursor;t.zoomCanvas&&(t.zoomCanvas.resetCanvas(),t.zoomCanvas=null),t.cursorCanvas&&(t.cursorCanvas.resetCanvas(),t.cursorCanvas=null),t._tooltipElem&&(t._tooltipElem.emptyForce(),t._tooltipElem=null),t.zoom&&(t.zoomCanvas=new w.jqplot.GenericCanvas,this.eventCanvas._elem.before(t.zoomCanvas.createElement(this._gridPadding,"jqplot-zoom-canvas",this._plotDimensions,this)),t.zoomCanvas.setContext());var e=document.createElement("div");if(t._tooltipElem=w(e),e=null,t._tooltipElem.addClass("jqplot-cursor-tooltip"),t._tooltipElem.css({position:"absolute",display:"none"}),t.zoomCanvas?t.zoomCanvas._elem.before(t._tooltipElem):this.eventCanvas._elem.before(t._tooltipElem),(t.showVerticalLine||t.showHorizontalLine)&&(t.cursorCanvas=new w.jqplot.GenericCanvas,this.eventCanvas._elem.before(t.cursorCanvas.createElement(this._gridPadding,"jqplot-cursor-canvas",this._plotDimensions,this)),t.cursorCanvas.setContext()),t.showTooltipUnitPosition&&0===t.tooltipAxisGroups.length){for(var i,n=this.series,s=[],a=0;a<n.length;a++){var r=(i=n[a]).xaxis+","+i.yaxis;-1==w.inArray(r,s)&&s.push(r)}for(a=0;a<s.length;a++)t.tooltipAxisGroups.push(s[a].split(","))}},w.jqplot.Cursor.zoomProxy=function(a,t){function e(t,e,i,n,s){r.doZoom(e,i,a,s)}function i(){a.resetZoom()}var r=a.plugins.cursor,n=t.plugins.cursor;r.zoomTarget=!0,r.zoom=!0,r.style="auto",r.dblClickReset=!1,n.zoom=!0,n.zoomProxy=!0,t.target.bind("jqplotZoom",e),t.target.bind("jqplotResetZoom",i)},w.jqplot.Cursor.prototype.resetZoom=function(t,e){var i=t.axes,n=e._zoom.axes;if(!t.plugins.cursor.zoomProxy&&e._zoom.isZoomed){for(var s in i)i[s].reset(),i[s]._ticks=[],i[s]._autoFormatString=n[s].tick
21FormatString;t.redraw(),e._zoom.isZoomed=!1}else{var a=e.zoomCanvas._ctx;a.clearRect(0,0,a.canvas.width,a.canvas.height),a=null}t.target.trigger("jqplotResetZoom",[t,e])},w.jqplot.Cursor.resetZoom=function(t){t.resetZoom()},w.jqplot.Cursor.prototype.doZoom=function(t,e,i,n){var s,a,r,o,l,h,d=n,c=i.axes,u=d._zoom.axes,p=u.start,f=(u.end,i.plugins.cursor.zoomCanvas._ctx);if("none"==d.constrainZoomTo&&6<Math.abs(t.x-d._zoom.start[0])&&6<Math.abs(t.y-d._zoom.start[1])||"x"==d.constrainZoomTo&&6<Math.abs(t.x-d._zoom.start[0])||"y"==d.constrainZoomTo&&6<Math.abs(t.y-d._zoom.start[1])){if(!i.plugins.cursor.zoomProxy){for(var g in e)d._zoom.axes[g]==undefined&&(d._zoom.axes[g]={},d._zoom.axes[g].numberTicks=c[g].numberTicks,d._zoom.axes[g].tickInterval=c[g].tickInterval,d._zoom.axes[g].daTickInterval=c[g].daTickInterval,d._zoom.axes[g].min=c[g].min,d._zoom.axes[g].max=c[g].max,d._zoom.axes[g].tickFormatString=null!=c[g].tickOptions?c[g].tickOptions.formatString:""),("none"==d.constrainZoomTo||"x"==d.constrainZoomTo&&"x"==g.charAt(0)||"y"==d.constrainZoomTo&&"y"==g.charAt(0)
22)&&null!=(s=e[g])&&(s>p[g]?(a=p[g],r=s):(p[g]-s,a=s,r=p[g]),l=null,(o=c[g]).alignTicks&&("x2axis"===o.name&&i.axes.xaxis.show?l=i.axes.xaxis.numberTicks:"y"===o.name.charAt(0)&&"yaxis"!==o.name&&"yMidAxis"!==o.name&&i.axes.yaxis.show&&(l=i.axes.yaxis.numberTicks)),!this.looseZoom||c[g].renderer.constructor!==w.jqplot.LinearAxisRenderer&&c[g].renderer.constructor!==w.jqplot.LogAxisRenderer?(c[g].min=a,c[g].max=r,c[g].tickInterval=null,c[g].numberTicks=null,c[g].daTickInterval=null):(h=w.jqplot.LinearTickGenerator(a,r,o._scalefact,l),c[g].tickInset&&h[0]<c[g].min+c[g].tickInset*c[g].tickInterval&&(h[0]+=h[4],h[2]-=1),c[g].tickInset&&h[1]>c[g].max-c[g].tickInset*c[g].tickInterval&&(h[1]-=h[4],h[2]-=1),c[g].renderer.constructor===w.jqplot.LogAxisRenderer&&h[0]<c[g].min&&(h[0]+=h[4],h[2]-=1),c[g].min=h[0],c[g].max=h[1],c[g]._autoFormatString=h[3],c[g].numberTicks=h[2],c[g].tickInterval=h[4],c[g].daTickInterval=[h[4]/1e3,"seconds"]),c[g]._ticks=[]);f.clearRect(0,0,f.canvas.width,f.canvas.height),i.redraw(),d._zoom.isZoomed=!0,f=null}i.target.trigger("jqplotZoom",[t,e,i,n])}},w.jqplot.preInitHooks.push(w.jqplot.Cursor.init),w.jqplot.postDrawHooks.push(w.jqplot.Cursor.postDraw),w.jqplot.CursorLegendRenderer=function(t){w.jqplot.TableLegendRenderer.call(this,t),this.formatString="%s"},w.jqplot.CursorLegendRenderer.prototype=new w.jqplot.TableLegendRenderer,w.jqplot.CursorLegendRenderer.prototype.constructor=w.jqplot.CursorLegendRenderer,w.jqplot.CursorLegendRenderer.prototype.draw=function(){function t(t,e,i,n){var s=i?this.rowSpacing:"0",a=w('<tr class="jqplot-legend jqplot-cursor-legend"></tr>').appendTo(this._elem);a.data("seriesIndex",n),w('<td class="jqplot-legend jqplot-cursor-legend-swatch" style="padding-top:'+s+';"><div style="border:1px solid #cccccc;padding:0.2em;"><div class="jqplot-cursor-legend-swatch" style="background-color:'+e+';"></div></div></td>').appendTo(a);var r=w('<td class="jqplot-legend jqplot-cursor-legend-label" style="vertical-align:middle;padding-top:'+s+';"></td>');r.appendTo(a),r.data("seriesIndex",n),this.escapeHtml?r.text(t):r.html(t),r=a=null}if(this._elem&&(this._elem.emptyForce(),this._elem=null),this.show){var e,i=this._series,n=document.createElement("div");this._elem=w(n),n=null,this._elem.addClass("jqplot-legend jqplot-cursor-legend"),this._elem.css("position","absolute");for(var s=!1,a=0;a<i.length;a++)if((e=i[a]).show&&e.showLabel){var r=w.jqplot.sprintf(this.formatString,e.label.toString());if(r){var o=e.color;e._stack&&!e.fill&&(o=""),t.call(this,r,o,s,a),s=!0}for(var l=0;l<w.jqplot.addLegendRowHooks.length;l++){var h=w.jqplot.addLegendRowHooks[l].call(this,e);h&&(t.call(this,h.label,h.color,s),s=!0)}}i=e=null,delete i,delete e}return this._elem}}(jQuery),function(w){function d(t,e){var i=t.plugins.highlighter,n=t.series[e.seriesIndex],s=n.markerRenderer,a=i.markerRenderer;a.style=s.style,a.lineWidth=s.lineWidth+i.lineWidthAdjust,a.size=s.size+i.sizeAdjust;var r=w.jqplot.getColorComponents(s.color),o=[r[0],r[1],r[2]],l=.6<=r[3]?.6*r[3]:r[3]*(2-r[3]);a.color="rgba("+o[0]+","+o[1]+","+o[2]+","+l+")",a.init(),a.draw(n.gridData[e.pointIndex][0],n.gridData[e.pointIndex][1],i.highlightCanvas._ctx)}function c(t,e,i){var n=t.plugins.highlighter,s=n._tooltipElem,a=e.highlighter||{},r=w.extend(!0,{},n,a);if(r.useAxesFormatters){for(var o=e._xaxis._ticks[0].formatter,l=e._yaxis._ticks[0].formatter,h=e._xaxis._ticks[0].formatString,d=e._yaxis._ticks[0].formatString,c=o(h,i.data[0]),u=[],p=1;p<r.yvalues+1;p++)u.push(l(d,i.data[p]));if("string"==typeof r.formatString)switch(r.tooltipAxes){case"both":case"xy":u.unshift(c),u.unshift(r.formatString),f=w.jqplot.sprintf.apply(w.jqplot.sprintf,u);break;case"yx":u.push(c),u.unshift(r.formatString),f=w.jqplot.sprintf.apply(w.jqplot.sprintf,u);break;case"x":f=w.jqplot.sprintf.apply(w.jqplot.sprintf,[r.formatString,c]);break;case"y":u.unshift(r.formatString),f=w.jqplot.sprintf.apply(w.jqplot.sprintf,u);break;default:u.unshift(c),u.unshift(r.formatString),f=w.jqplot.sprintf.apply(w.jqplot.sprintf,u)}else switch(r.tooltipAxes){case"both":case"xy":f=c;for(p=0;p<u.length;p++)f+=r.tooltipSeparator+u[p];break;case"yx":f="";for(p=0;p<u.length;p++)f+=u[p]+r.tooltipSeparator;f+=c;break;case"x":f=c;break;case"y":f=u.join(r.tooltipSeparator);break;default:f=c;for(p=0;p<u.length;p++)f+=r.tooltipSeparator+u[p]}}else{var f;"string"==typeof r.formatString?f=w.jqplot.sprintf.apply(w.jqplot.sprintf,[r.formatString].concat(i.data)):"both"==r.tooltipAxes||"xy"==r.tooltipAxes?f=w.jqplot.sprintf(r.tooltipFormatString,i.data[0])+r.tooltipSeparator+w.jqplot.sprintf(r.tooltipFormatString,i.data[1]):"yx"==r.tooltipAxes?f=w.jqplot.sprintf(r.tooltipFormatString,i.data[1])+r.tooltipSeparator+w.jqplot.sprintf(r.tooltipFormatString,i.data[0]):"x"==r.tooltipAxes?f=w.jqplot.sprintf(r.tooltipFormatString,i.data[0]):"y"==r.tooltipAxes&&(f=w.jqplot.sprintf(r.tooltipFormatString,i.data[1]))}w.isFunction(r.tooltipContentEditor)&&(f=r.tooltipContentEditor(f,i.seriesIndex,i.pointIndex,t)),s.html(f);var g={x:i.gridData[0],y:i.gridData[1]},m=0,v=.707;1==e.markerRenderer.show&&(m=(e.markerRenderer.size+r.sizeAdjust)/2);var _=x;switch(e.fillToZero&&e.fill&&i.data[1]<0&&(_=S),_[C[r.tooltipLocation]]){case"nw":var b=g.x+t._gridPadding.left-s.outerWidth(!0)-r.tooltipOffset-v*m,y=g.y+t._gridPadding.top-r.tooltipOffset-s.outerHeight(!0)-v*m;break;case"n":b=g.x+t._gridPadding.left-s.outerWidth(!0)/2,y=g.y+t._gridPadding.top-r.tooltipOffset-s.outerHeight(!0)-m;break;case"ne":b=g.x+t._gridPadding.left+r.tooltipOffset+v*m,y=g.y+t._gridPadding.top-r.tooltipOffset-s.outerHeight(!0)-v*m;break;case"e":b=g.x+t._gridPadding.left+r.tooltipOffset+m,y=g.y+t._gridPadding.top-s.outerHeight(!0)/2;break;case"se":b=g.x+t._gridPadding.left+r.tooltipOffset+v*m,y=g.y+t._gridPadding.top+r.tooltipOffset+v*m;break;case"s":b=g.x+t._gridPadding.left-s.outerWidth(!0)/2,y=g.y+t._gridPadding.top+r.tooltipOffset+m;break;case"sw":b=g.x+t._gridPadding.left-s.outerWidth(!0)-r.tooltipOffset-v*m,y=g.y+t._gridPadding.top+r.tooltipOffset+v*m;break;case"w":b=g.x+t._gridPadding.left-s.outerWidth(!0)-r.tooltipOffset-m,y=g.y+t._gridPadding.top-s.outerHeight(!0)/2;break;default:b=g.x+t._gridPadding.left-s.outerWidth(!0)-r.tooltipOffset-v*m,y=g.y+t._gridPadding.top-r.tooltipOffset-s.outerHeight(!0)-v*m}s.css("left",b),s.css("top",y),r.fadeTooltip?s.stop(!0,!0).fadeIn(r.tooltipFadeSpeed):s.show(),s=null}function t(t,e,i,n,s){var a=s.plugins.highlighter,r=s.plugins.cursor;if(a.show)if(null==n&&a.isHighlighting){var o=jQuery.Event("jqplotHighlighterUnhighlight");s.target.trigger(o),(h=a.highlightCanvas._ctx).clearRect(0,0,h.canvas.width,h.canvas.height),a.fadeTooltip?a._tooltipElem.fadeOut(a.tooltipFadeSpeed):a._tooltipElem.hide(),a.bringSeriesToFront&&s.restorePreviousSeriesOrder(),a.isHighlighting=!1,h=a.currentNeighbor=null}else if(null!=n&&s.series[n.seriesIndex].showHighlight&&!a.isHighlighting){(o=jQuery.Event("jqplotHighlighterHighlight")).which=t.which,o.pageX=t.pageX,o.pageY=t.pageY;var l=[n.seriesIndex,n.pointIndex,n.data,s];s.target.trigger(o,l),a.isHighlighting=!0,a.currentNeighbor=n,a.showMarker&&d(s,n),!a.showTooltip||r&&r._zoom.started||c(s,s.series[n.seriesIndex],n),a.bringSeriesToFront&&s.moveSeriesToFront(n.seriesIndex)}else{var h;if(null!=n&&a.isHighlighting&&a.currentNeighbor!=n)if(s.series[n.seriesIndex].showHighlight)(h=a.highlightCanvas._ctx).clearRect(0,0,h.canvas.width,h.canvas.height),a.isHighlighting=!0,a.currentNeighbor=n,a.showMarker&&d(s,n),!a.showTooltip||r&&r._zoom.started||c(s,s.series[n.seriesIndex],n),a.bringSeriesToFront&&s.moveSeriesToFront(n.seriesIndex)}}w.jqplot.eventListenerHooks.push(["jqplotMouseMove",t]),w.jqplot.Highlighter=function(t){this.show=w.jqplot.config.enablePlugins,this.markerRenderer=new w.jqplot.MarkerRenderer({shadow:!1}),this.showMarker=!0,this.lineWidthAdjust=2.5,this.sizeAdjust=5,this.showTooltip=!0,this.tooltipLocation="nw",this.fadeTooltip=!0,this.tooltipFadeSpeed="fast",this.tooltipOffset=2,this.tooltipAxes="both",this.tooltipSeparator=", ",this.tooltipContentEditor=null,this.useAxesFormatters=!0,this.tooltipFormatString="%.5P",this.formatString=null,this.yvalues=1,this.bringSeriesToFront=!1,this._tooltipElem,this.isHighlighting=!1,this.currentNeighbor=null,w.extend(!0,this,t)};var x=["nw","n","ne","e","se","s","sw","w"],C={nw:0,n:1,ne:2,e:3,se:4,s:5,sw:6,w:7},S=["se","s","sw","w","nw","n","ne","e"];
22w.jqplot.Highlighter.init=function(t,e,i){var n=i||{};this.plugins.highlighter=new w.jqplot.Highlighter(n.highlighter)},w.jqplot.Highlighter.parseOptions=function(){this.showHighlight=!0},w.jqplot.Highlighter.postPlotDraw=function(){this.plugins.highlighter&&this.plugins.highlighter.highlightCanvas&&(this.plugins.highlighter.highlightCanvas.resetCanvas(),this.plugins.highlighter.highlightCanvas=null),this.plugins.highlighter&&this.plugins.highlighter._tooltipElem&&(this.plugins.highlighter._tooltipElem.emptyForce(),this.plugins.highlighter._tooltipElem=null),this.plugins.highlighter.highlightCanvas=new w.jqplot.GenericCanvas,this.eventCanvas._elem.before(this.plugins.highlighter.highlightCanvas.createElement(this._gridPadding,"jqplot-highlight-canvas",this._plotDimensions,this)),this.plugins.highlighter.highlightCanvas.setContext();var t=document.createElement("div");this.plugins.highlighter._tooltipElem=w(t),t=null,this.plugins.highlighter._tooltipElem.addClass("jqplot-highlighter-tooltip"),this.plugins.highlighter._tooltipElem.css({position:"absolute",display:"none"}),this.eventCanvas._elem.before(this.plugins.highlighter._tooltipElem)},w.jqplot.preInitHooks.push(w.jqplot.Highlighter.init),w.jqplot.preParseSeriesOptionsHooks.push(w.jqplot.Highlighter.parseOptions),w.jqplot.postDrawHooks.push(w.jqplot.Highlighter.postPlotDraw)}(jQuery);var currentPage=0;!function(mt,vt,_t){!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.qtip&&t(jQuery)}(function(D){"use strict";function f(t,e,i,n){this.id=i,this.target=t,this.tooltip=C,this.elements={target:t},this._id=S+"-"+i,this.timers={img:{}},this.options=e,this.plugins={},this.cache={event:{},target:D(),disabled:I,attr:n,onTooltip:I,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=I}function i(t){return t===C||"object"!==D.type(t)}function n(t){return!(D.isFunction(t)||t&&t.attr||t.length||"object"===D.type(t)&&(t.jquery||t.then))}function g(t){var e,s,a,r;return i(t)?I:(i(t.metadata)&&(t.metadata={type:t.metadata}),"content"in t&&(i(e=t.content)||e.jquery||e.done?e=t.content={text:s=n(e)?I:e}:s=e.text,"ajax"in e&&(a=e.ajax,r=a&&a.once!==I,delete e.ajax,e.text=function(t,n){var e=s||D(this).attr(n.options.content.attr)||"Loading...",i=D.ajax(D.extend({},a,{context:n})).then(a.success,C,a.error).then(function(t){return t&&r&&n.set("content.text",t),t},function(t,e,i){n.destroyed||0===t.status||n.set("content.text",e+": "+i)});return r?e:(n.set("content.text",e),i)}),"title"in e&&(D.isPlainObject(e.title)&&(e.button=e.title.button,e.title=e.title.text),n(e.title||I)&&(e.title=I))),"position"in t&&i(t.position)&&(t.position={my:t.position,at:t.position}),"show"in t&&i(t.show)&&(t.show=t.show.jquery?{target:t.show}:t.show===A?{ready:A}:{event:t.show}),"hide"in t&&i(t.hide)&&(t.hide=t.hide.jquery?{target:t.hide}:{event:t.hide}),"style"in t&&i(t.style)&&(t.style={classes:t.style}),D.each(O,function(){this.sanitize&&this.sanitize(t)}),t)}function l(t,e){for(var i,n=0,s=t,a=e.split(".");s=s[a[n++]];)n<a.length&&(i=s);return[i||t,a.pop()]}function h(t,e){var i,n,s;for(i in this.checks)for(n in this.checks[i])(s=new RegExp(n,"i").exec(t))&&(e.push(s),("builtin"===i||this.plugins[i])&&this.checks[i][n].apply(this.plugins[i]||this,e))}function s(t){return z.concat("").join(t?"-"+t+" ":" ")}function o(t,e){if(0<e)return setTimeout(D.proxy(t,this),e);t.call(this)}function u(t){this.tooltip.hasClass(Q)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=o.call(this,function(){this.toggle(A,t)},this.options.show.delay))}function p(t){if(!this.tooltip.hasClass(Q)&&!this.destroyed){var e=D(t.relatedTarget),i=e.closest(V)[0]===this.tooltip[0],n=e[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==e[0]&&"mouse"===this.options.position.target&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(i||n))try{t.preventDefault(),t.stopImmediatePropagation()}catch(s){}else this.timers.hide=o.call(this,function(){this.toggle(I,t)},this.options.hide.delay,this)}}function m(t){!this.tooltip.hasClass(Q)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=o.call(this,function(){this.hide(t)},this.options.hide.inactive))}function v(t){this.rendered&&0<this.tooltip[0].offsetWidth&&this.reposition(t)}function t(t,e,i){D(vt.body).delegate(t,(e.split?e:e.join("."+S+" "))+"."+S,function(){var t=_.api[D.attr(this,T)];t&&!t.disabled&&i.apply(t,arguments)})}function d(t,e,i){var n,s,a,r,o,l=D(vt.body),h=t[0]===vt?l:t,d=t.metadata?t.metadata(i.metadata):C,c="html5"===i.metadata.type&&d?d[i.metadata.name]:C,u=t.data(i.metadata.name||"qtipopts");try{u="string"==typeof u?D.parseJSON(u):u}catch(p){}if(s=(r=D.extend(A,{},_.defaults,i,"object"==typeof u?g(u):C,g(c||d))).position,r.id=e,"boolean"==typeof r.content.text){if(a=t.attr(r.content.attr),r.content.attr===I||!a)return I;r.content.text=a}if(s.container.length||(s.container=l),s.target===I&&(s.target=h),r.show.target===I&&(r.show.target=h),r.show.solo===A&&(r.show.solo=s.container.closest("body")),r.hide.target===I&&(r.hide.target=h),r.position.viewport===A&&(r.position.viewport=s.container),s.container=s.container.eq(0),s.at=new y(s.at,A),s.my=new y(s.my),t.data(S))if(r.overwrite)t.qtip("destroy",!0);else if(r.overwrite===I)return I;return t.attr(k,e),r.suppress&&(o=t.attr("title"))&&t.removeAttr("title").attr(X,o).attr("title",""),n=new f(t,r,e,!!a),t.data(S,n),n}function c(t){return t.charAt(0).toUpperCase()+t.slice(1)}function a(t,e){var i,n,s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+pt.join(s+" ")+s).split(" "),r=0;if(ut[e])return t.css(ut[e]);for(;i=a[r++];)if((n=t.css(i))!==_t)return ut[e]=i,n}function r(t,e){return Math.ceil(parseFloat(a(t,e)))}function e(t,e){this._ns="tip",this.options=e,this.offset=e.offset,this.size=[e.width,e.height],this.init(this.qtip=t)}var _,b,y,w,x,A=!0,I=!1,C=null,E="x",M="y",F="width",j="height",P="top",R="left",H="bottom",L="right",N="center",q="flipinvert",$="shift",O={},S="qtip",k="data-hasqtip",T="data-qtip-id",z=["ui-widget","ui-tooltip"],V="."+S,B="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),W=S+"-fixed",U=S+"-default",G=S+"-focus",Y=S+"-hover",Q=S+"-disabled",Z="_replacedByqTip",X="oldtitle",J={ie:function(){for(var t=4,e=vt.createElement("div");(e.innerHTML="<!--[if gt IE "+t+"]><i></i><![endif]-->")&&e.getElementsByTagName("i")[0];t+=1);return 4<t?t:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5}
vendor: 17,540 bytes, line 22
22)|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||I};(b=f.prototype)._when=function(t){return D.when.apply(D,t)},b.render=function(t){if(this.rendered||this.destroyed)return this;var i=this,e=this.options,n=this.cache,s=this.elements,a=e.content.text,r=e.content.title,o=e.content.button,l=e.position,h=(this._id,[]);return D.attr(this.target[0],"aria-describedby",this._id),n.posClass=this._createPosClass((this.position={my:l.my,at:l.at}).my),this.tooltip=s.tooltip=D("<div/>",{id:this._id,"class":[S,U,e.style.classes,n.posClass].join(" "),width:e.style.width||"",height:e.style.height||"",tracking:"mouse"===l.target&&l.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":I,"aria-describedby":this._id+"-content","aria-hidden":A}).toggleClass(Q,this.disabled).attr(T,this.id).data(S,this).appendTo(l.container).append(s.content=D("<div />",{"class":S+"-content",id:this._id+"-content","aria-atomic":A})),this.rendered=-1,this.positioning=A,r&&(this._createTitle(),D.isFunction(r)||h.push(this._updateTitle(r,I))),o&&this._createButton(),D.isFunction(a)||h.push(this._updateContent(a,I)),this.rendered=A,this._setWidget(),D.each(O,function(t){var e;"render"===this.initialize&&(e=this(i))&&(i.plugins[t]=e)}),this._unassignEvents(),this._assignEvents(),this._when(h).then(function(){i._trigger("render"),i.positioning=I,i.hiddenDuringWait||!e.show.ready&&!t||i.toggle(A,n.event,I),i.hiddenDuringWait=I}),_.api[this.id]=this},b.destroy=function(t){function e(){if(!this.destroyed){this.destroyed=A;var t,e=this.target,i=e.attr(X);for(t in this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),D.each(this.plugins,function(){this.destroy&&this.destroy()}),this.timers)clearTimeout(this.timers[t]);e.removeData(S).removeAttr(T).removeAttr(k).removeAttr("aria-describedby"),this.options.suppress&&i&&e.attr("title",i).removeAttr(X),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=C,delete _.api[this.id]}}return this.destroyed||(t===A&&"hide"!==this.triggering||!this.rendered?e.call(this):(this.tooltip.one("tooltiphidden",D.proxy(e,this)),!this.triggering&&this.hide())),this.target},w=b.checks={builtin:{"^id$":function(t,e,i,n){var s=i===A?_.nextid:i,a=S+"-"+s;s!==I&&0<s.length&&!D("#"+a).length?(this._id=a,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):t[e]=n},"^prerender":function(t,e,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(t,e,i){this._updateContent(i)},"^content.attr$":function(t,e,i,n){this.options.content.text===this.target.attr(n)&&this._updateContent(this.target.attr(i))},"^content.title$":function(t,e,i){if(!i)return this._removeTitle();i&&!this.elements.title&&this._createTitle(),this._updateTitle(i)},"^content.button$":function(t,e,i){this._updateButton(i)},"^content.title.(text|button)$":function(t,e,i){this.set("content."+e,i)},"^position.(my|at)$":function(t,e,i){"string"==typeof i&&(this.position[e]=t[e]=new y(i,"at"===e))},"^position.container$":function(t,e,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(t,e,i){i&&(!this.rendered&&this.render(A)||this.toggle(A))},"^style.classes$":function(t,e,i,n){this.rendered&&this.tooltip.removeClass(n).addClass(i)},"^style.(width|height)":function(t,e,i){this.rendered&&this.tooltip.css(e,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(t,e,i){this.rendered&&this.tooltip.toggleClass(U,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(t,e,i){this.rendered&&this.tooltip[(D.isFunction(i)?"":"un")+"bind"]("tooltip"+e,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var t=this.options.position;this.tooltip.attr("tracking","mouse"===t.target&&t.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},b.get=function(t){if(this.destroyed)return this;var e=l(this.options,t.toLowerCase()),i=e[0][e[1]];return i.precedance?i.string():i};var K=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,tt=/^prerender|show\.ready/i;b.set=function(s,t){if(this.destroyed)return this;var e,a=this.rendered,r=I,o=this.options;this.checks;return"string"==typeof s?(e=s,(s={})[e]=t):s=D.extend({},s),D.each(s,function(t,e){if(a&&tt.test(t))delete s[t];else{var i,n=l(o,t.toLowerCase());i=n[0][n[1]],n[0][n[1]]=e&&e.nodeType?D(e):e,r=K.test(t)||r,s[t]=[n[0],n[1],e,i]}}),g(o),this.positioning=A,D.each(s,D.proxy(h,this)),this.positioning=I,this.rendered&&0<this.tooltip[0].offsetWidth&&r&&this.reposition("mouse"===o.position.target?C:this.cache.event),this},b._update=function(t,e){var i=this,n=this.cache;return this.rendered&&t?(D.isFunction(t)&&(t=t.call(this.elements.target,n.event,this)||""),D.isFunction(t.then)?(n.waiting=A,t.then(function(t){return n.waiting=I,i._update(t,e)},C,function(t){return i._update(t,e)})):t===I||!t&&""!==t?I:(t.jquery&&0<t.length?e.empty().append(t.css({display:"block",visibility:"visible"})):e.html(t),this._waitForContent(e).then(function(t){i.rendered&&0<i.tooltip[0].offsetWidth&&i.reposition(n.event,!t.length)}))):I},b._waitForContent=function(t){var e=this.cache;return e.waiting=A,(D.fn.imagesLoaded?t.imagesLoaded():D.Deferred().resolve([])).done(function(){e.waiting=I}).promise()},b._updateContent=function(t,e){this._update(t,this.elements.content,e)},b._updateTitle=function(t,e){this._update(t,this.elements.title,e)===I&&this._removeTitle(I)},b._createTitle=function(){var t=this.elements,e=this._id+"-title";t.titlebar&&this._removeTitle(),t.titlebar=D("<div />",{"class":S+"-titlebar "+(this.options.style.widget?s("header"):"")}).append(t.title=D("<div />",{id:e,"class":S+"-title","aria-atomic":A})).insertBefore(t.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(t){D(this).toggleClass("ui-state-active ui-state-focus","down"===t.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(t){D(this).toggleClass("ui-state-hover","mouseover"===t.type)}),this.options.content.button&&this._createButton()},b._removeTitle=function(t){var e=this.elements;e.title&&(e.titlebar.remove(),e.titlebar=e.title=e.button=C,t!==I&&this.reposition())},b._createPosClass=function(t){return S+"-pos-"+(t||this.options.position.my).abbrev()},b.reposition=function(t,e){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=A;var i,n,s,a,r=this.cache,o=this.tooltip,l=this.options.position,h=l.target,d=l.my,c=l.at,u=l.viewport,p=l.container,f=l.adjust,g=f.method.split(" "),m=o.outerWidth(I),v=o.outerHeight(I),_=0,b=0,y=o.css("position"),w={left:0,top:0},x=0<o[0].offsetWidth,C=t&&"scroll"===t.type,S=D(mt),k=p[0].ownerDocument,T=this.mouse;if(D.isArray(h)&&2===h.length)c={x:R,y:P},w={left:h[0],top:h[1]};else if("mouse"===h)c={x:R,y:P},(!f.mouse||this.options.hide.distance)&&r.origin&&r.origin.pageX?t=r.origin:!t||t&&("resize"===t.type||"scroll"===t.type)?t=r.event:T&&T.pageX&&(t=T),"static"!==y&&(w=p.offset()),k.body.offsetWidth!==(mt.innerWidth||k.documentElement.clientWidth)&&(n=D(vt.body).offset()),w={left:t.pageX-w.left+(n&&n.left||0),top:t.pageY-w.top+(n&&n.top||0)},f.mouse&&C&&T&&(w.left-=(T.scrollX||0)-S.scrollLeft(),w.top-=(T.scrollY||0)-S.scrollTop());else{if("event"===h?t&&t.target&&"scroll"!==t.type&&"resize"!==t.type?r.target=D(t.target):t.target||(r.target=this.elements.target):"event"!==h&&(r.target=D(h.jquery?h:this.elements.target)),h=r.target,0===(h=D(h).eq(0)).length)return this;h[0]===vt||h[0]===mt?(_=J.iOS?mt.innerWidth:h.width(),b=J.iOS?mt.innerHeight:h.height(),h[0]===mt&&(w={top:(u||h).scrollTop(),left:(u||h).scrollLeft()})):O.imagemap&&h.is("area")?i=O.imagemap(this,h,c,O.viewport?g:I):O.svg&&h&&h[0].ownerSVGElement?i=O.svg(this,h,c,O.viewport?g:I):(_=h.outerWidth(I),b=h.outerHeight(I),w=h.offset()),i&&(_=i.width,b=i.height,n=i.offset,w=i.position),w=this.reposition.offset(h,w,p),(3.1<J.iOS&&J.iOS<4.1||4.3<=J.iOS&&J.iOS<4.33||!J.iOS&&"fixed"===y)&&(w.left-=S.scrollLeft(),w.top-=S.scrollTop()),(!i||i&&i.adjustable!==I)&&(w.left+=c.x===L?_:c.x===N?_/2:0,w.top+=c.y===H?b:c.y===N?b/2:0)}return w.left+=f.x+(d.x===L?-m:d.x===N?-m/2:0),w.top+=f.y+(d.y===H?-v:d.y===N?-v/2:0),O.viewport?(s=w.adjusted=O.viewport(this,w,l,_,b,m,v),n&&s.left&&(w.left+=n.left),n&&s.top&&(w.top+=n.top),s.my&&(this.position.my=s.my)):w.adjusted={left:0,top:0},r.posClass!==(a=this._createPosClass(this.position.my))&&o.removeClass(r.posClass).addClass(r.posClass=a),this._trigger("move",[w,u.elem||u],t)&&(delete w.adjusted,e===I||!x||isNaN(w.left)||isNaN(w.top)||"mouse"===h||!D.isFunction(l.effect)?o.css(w):D.isFunction(l.effect)&&(l.effect.call(o,this,D.extend({},w)),o.queue(function(t){D(this).css({opacity:"",height:""}),J.ie&&this.style.removeAttribute("filter"),t()})),this.positioning=I),this},b.reposition.offset=function(t,i,e){function n(t,e){i.left+=e*t.scrollLeft(),i.top+=e*t.scrollTop()}if(!e[0])return i;for(var s,a,r,o,l=D(t[0].ownerDocument),h=!!J.ie&&"CSS1Compat"!==vt.compatMode,d=e[0];"static"!==(a=D.css(d,"position"))&&("fixed"===a?(r=d.getBoundingClientRect(),n(l,-1)):((r=D(d).position()).left+=parseFloat(D.css(d,"borderLeftWidth"))||0,r.top+=parseFloat(D.css(d,"borderTopWidth"))||0),i.left-=r.left+(parseFloat(D.css(d,"marginLeft"))||0),i.top-=r.top+(parseFloat(D.css(d,"marginTop"))||0),s||"hidden"===(o=D.css(d,"overflow"))||"visible"===o||(s=D(d))),d=d.offsetParent;);return s&&(s[0]!==l[0]||h)&&n(s,1),i};var et=(y=b.reposition.Corner=function(t,e){t=(""+t).replace(/([A-Z])/," $1").replace(/middle/gi,N).toLowerCase(),this.x=(t.match(/left|right/i)||t.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(t.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!e;var i=t.charAt(0);this.precedance="t"===i||"b"===i?M:E}).prototype;et.invert=function(t,e){this[t]=this[t]===R?L:this[t]===L?R:e||this[t]},et.string=function(t){var e=this.x,i=this.y,n=e!==i?"center"===e||"center"!==i&&(this.precedance===M||this.forceY)?[i,e]:[e,i]:[e];return!1!==t?n.join(" "):n},et.abbrev=function(){var t=this.string(!1);return t[0].charAt(0)+(t[1]&&t[1].charAt(0)||"")},et.clone=function(){return new y(this.string(),this.forceY)},b.toggle=function(t,e,i){var n=this.cache,s=this.options,a=this.tooltip;if(e){if(/over|enter/.test(e.type)&&n.event&&/out|leave/.test(n.event.type)&&s.show.target.add(e.target).length===s.show.target.length&&a.has(e.relatedTarget).length)return this;n.event=D.event.fix(e)}if(this.waiting&&!t&&(this.hiddenDuringWait=A),!this.rendered)return t?this.render(1):this;if(this.destroyed||this.disabled)return this;var r,o,l,h=t?"show":"hide",d=this.options[h],c=(this.options[t?"hide":"show"],this.options.position),u=this.options.content,p=this.tooltip.css("width"),f=this.tooltip.is(":visible"),g=t||1===d.target.length,m=!e||d.target.length<2||n.target[0]===e.target;return(typeof t).search("boolean|number")&&(t=!f),o=(r=!a.is(":animated")&&f===t&&m)?C:!!this._trigger(h,[90]),this.destroyed?this:(o!==I&&t&&this.focus(e),!o||r||(D.attr(a[0],"aria-hidden",!t),t?(this.mouse&&(n.origin=D.event.fix(this.mouse)),D.isFunction(u.text)&&this._updateContent(u.text,I),D.isFunction(u.title)&&this._updateTitle(u.title,I),!x&&"mouse"===c.target&&c.adjust.mouse&&(D(vt).bind("mousemove."+S,this._storeMouse),x=A),p||a.css("width",a.outerWidth(I)),this.reposition(e,i),p||a.css("width",""),d.solo&&("string"==typeof d.solo?D(d.solo):D(V,d.solo)).not(a).not(d.target).qtip("hide",D.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete n.origin,x&&!D(V+'[tracking="true"]:visible',d.solo).not(a).length&&(D(vt).unbind("mousemove."+S),x=I),this.blur(e)),l=D.proxy(function(){t?(J.ie&&a[0].style.removeAttribute("filter"),a.css("overflow",""),"string"==typeof d.autofocus&&D(this.options.show.autofocus,a).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):a.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(t?"visible":"hidden")},this),d.effect===I||g===I?(a[h](),l()):D.isFunction(d.effect)?(a.stop(1,1),d.effect.call(a,this),a.queue("fx",function(t){l(),t()})):a.fadeTo(90,t?1:0,l),t&&d.target.trigger("qtip-"+this.id+"-inactive")),this)},b.show=function(t){return this.toggle(A,t)},b.hide=function(t){return this.toggle(I,t)},b.focus=function(t){if(!this.rendered||this.destroyed)return this;var e=D(V),i=this.tooltip,n=parseInt(i[0].style.zIndex,10),s=_.zindex+e.length;return i.hasClass(G)||this._trigger("focus",[s],t)&&(n!==s&&(e.each(function(){this.style.zIndex>n&&(this.style.zIndex=this.style.zIndex-1)}),e.filter("."+G).qtip("blur",t)),i.addClass(G)[0].style.zIndex=s),this},b.blur=function(t){return!this.rendered||this.destroyed||(this.tooltip.removeClass(G),this._trigger("blur",[this.tooltip.css("zIndex")],t)),this},b.disable=function(t){return this.destroyed||("toggle"===t?t=!(this.rendered?this.tooltip.hasClass(Q):this.disabled):"boolean"!=typeof t&&(t=A),this.rendered&&this.tooltip.toggleClass(Q,t).attr("aria-disabled",t),this.disabled=!!t),this},b.enable=function(){return this.disable(I)},b._createButton=function(){var e=this,t=this.elements,i=t.tooltip,n=this.options.content.button,s="string"==typeof n?n:"Close tooltip";t.button&&t.button.remove(),n.jquery?t.button=n:t.button=D("<a />",{"class":"qtip-close "+(this.options.style.widget?"":S+"-icon"),title:s,"aria-label":s}).prepend(D("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"})),t.button.appendTo(t.titlebar||i).attr("role","button").click(function(t){return i.hasClass(Q)||e.hide(t),I})},b._updateButton=function(t){if(!this.rendered)return I;var e=this.elements.button;t?this._createButton():e.remove()},b._setWidget=function(){var t=this.options.style.widget,e=this.elements,i=e.tooltip,n=i.hasClass(Q);i.removeClass(Q),Q=t?"ui-state-disabled":"qtip-disabled",i.toggleClass(Q,n),i.toggleClass("ui-helper-reset "+s(),t).toggleClass(U,this.options.style.def&&!t),e.content&&e.content.toggleClass(s("content"),t),e.titlebar&&e.titlebar.toggleClass(s("header"),t),e.button&&e.button.toggleClass(S+"-icon",!t)},b._storeMouse=function(t){return(this.mouse=D.event.fix(t)).type="mousemove",this},b._bind=function(t,e,i,n,s){if(t&&i&&e.length){var a="."+this._id+(n?"-"+n:"");return D(t).bind((e.split?e:e.join(a+" "))+a,D.proxy(i,s||this)),this}},b._unbind=function(t,e){return t&&D(t).unbind("."+this._id+(e?"-"+e:"")),this},b._trigger=function(t,e,i){var n=D.Event("tooltip"+t);return n.originalEvent=i&&D.extend({},i)||this.cache.event||C,this.triggering=t,this.tooltip.trigger(n,[this].concat(e||[])),this.triggering=I,!n.isDefaultPrevented()},b._bindEvents=function(n,t,e,i,s,a){var r=e.filter(i).add(i.filter(e)),o=[];r.length&&(D.each(t,function(t,e){var i=D.inArray(e,n);-1<i&&o.push(n.splice(i,1)[0])}),o.length&&(this._bind(r,o,function(t){(!!this.rendered&&0<this.tooltip[0].offsetWidth?a:s).call(this,t)}),e=e.not(r),i=i.not(r))),this._bind(e,n,s),this._bind(i,t,a)},b._assignInitialEvents=function(t){function e(t){if(this.disabled||this.destroyed)return I;this.cache.event=t&&D.event.fix(t),this.cache.target=t&&D(t.target),clearTimeout(this.timers.show),this.timers.show=o.call(this,function(){this.render("object"==typeof t||i.show.ready)},i.prerender?0:i.show.delay)}var i=this.options,n=i.show.target,s=i.hide.target,a=i.show.event?D.trim(""+i.show.event).split(" "):[],r=i.hide.event?D.trim(""+i.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(i.show.event)&&!/mouse(out|leave)/i.test(i.hide.event)&&r.push("mouseleave"),this._bind(n,"mousemove",function(t){this._storeMouse(t),this.cache.onTarget=A}),this._bindEvents(a,r,n,s,e,function(){if(!this.timers)return I;clearTimeout(this.timers.show)}),(i.show.ready||i.prerender)&&e.call(this,t)},b._assignEvents=function(){var i=this,s=this.options,t=s.position,n=this.tooltip,e=s.show.target,a=s.hide.target,r=t.container,o=t.viewport,l=D(vt),h=(D(vt.body),D(mt)),d=s.show.event?D.trim(""+s.show.event).split(" "):[],c=s.hide.event?D.trim(""+s.hide.event).split(" "):[];D.each(s.events,function(t,e){i._bind(n,"toggle"===t?["tooltipshow","tooltiphide"]:["tooltip"+t],e,null,n)}),/mouse(out|leave)/i.test(s.hide.event)&&"window"===s.hide.leave&&this._bind(l,["mouseout","blur"],function(t){/select|option/.test(t.target.nodeName)||t.relatedTarget||this.hide(t)}),s.hide.fixed?a=a.add(n.addClass(W)):/mouse(over|enter)/i.test(s.show.event)&&this._bind(a,"mouseleave",function(){clearTimeout(this.timers.show)}),-1<(""+s.hide.event).indexOf("unfocus")&&this._bind(r.closest("html"),["mousedown","touchstart"],function(t){var e=D(t.target),i=this.rendered&&!this.tooltip.hasClass(Q)&&0<this.tooltip[0].offsetWidth,n=0<e.parents(V).filter(this.tooltip[0]).length;e[0]===this.target[0]||e[0]===this.tooltip[0]||n||this.target.has(e[0]).length||!i||this.hide(t)}),"number"==typeof s.hide.inactive&&(this._bind(e,"qtip-"+this.id+"-inactive",m,"inactive"),this._bind(a.add(n),_.inactiveEvents,m)),this._bindEvents(d,c,e,a,u,p),this._bind(e.add(n),"mousemove",function(t){if("number"==typeof s.hide.distance){var e=this.cache.origin||{},i=this.options.hide.distance,n=Math.abs;(n(t.pageX-e.pageX)>=i||n(t.pageY-e.pageY)>=i)&&this.hide(t)}this._storeMouse(t)}),"mouse"===t.target&&t.adjust.mouse&&(s.hide.event&&this._bind(e,["mouseenter","mouseleave"],function(t){if(!this.cache)return I;
vendor: 5,038 bytes, lines 22-23
22this.cache.onTarget="mouseenter"===t.type}),this._bind(l,"mousemove",function(t){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(Q)&&0<this.tooltip[0].offsetWidth&&this.reposition(t)})),(t.adjust.resize||o.length
23)&&this._bind(D.event.special.resize?o:h,"resize",v),t.adjust.scroll&&this._bind(h.add(t.container),"scroll",v)},b._unassignEvents=function(){var t=this.options,e=t.show.target,i=t.hide.target,n=D.grep([this.elements.target[0],this.rendered&&this.tooltip[0],t.position.container[0],t.position.viewport[0],t.position.container.closest("html")[0],mt,vt],function(t){return"object"==typeof t});e&&e.toArray&&(n=n.concat(e.toArray())),i&&i.toArray&&(n=n.concat(i.toArray())),this._unbind(n)._unbind(n,"destroy")._unbind(n,"inactive")},D(function(){t(V,["mouseenter","mouseleave"],function(t){var e="mouseenter"===t.type,i=D(t.currentTarget),n=D(t.relatedTarget||t.target),s=this.options;e?(this.focus(t),i.hasClass(W)&&!i.hasClass(Q)&&clearTimeout(this.timers.hide)):"mouse"===s.position.target&&s.position.adjust.mouse&&s.hide.event&&s.show.target&&!n.closest(s.show.target[0]).length&&this.hide(t),i.toggleClass(Y,e)}),t("["+T+"]",B,m)}),_=D.fn.qtip=function(t,e,i){var n=(""+t).toLowerCase(),s=C,a=D.makeArray(arguments).slice(1),r=a[a.length-1],o=this[0]?D.data(this[0],S):C;return!arguments.length&&o||"api"===n?o:"string"==typeof t?(this.each(function(){var t=D.data(this,S);if(!t)return A;if(r&&r.timeStamp&&(t.cache.event=r),!e||"option"!==n&&"options"!==n)t[n]&&t[n].apply(t,a);else{if(i===_t&&!D.isPlainObject(e))return s=t.get(e),I;t.set(e,i)}}),s!==C?s:this):"object"!=typeof t&&arguments.length?void 0:(o=g(D.extend(A,{},t)),this.each(function(t){var e,i;if(i=!(i=D.isArray(o.id)?o.id[t]:o.id)||i===I||i.length<1||_.api[i]?_.nextid++:i,(e=d(D(this),i,o))===I)return A;_.api[i]=e,D.each(O,function(){"initialize"===this.initialize&&this(e)}),e._assignInitialEvents(r)}))},D.qtip=f,_.api={},D.each({attr:function(t,e){if(this.length){var i=this[0],n="title",s=D.data(i,"qtip");if(t===n&&s&&"object"==typeof s&&s.options.suppress)return arguments.length<2?D.attr(i,X):(s&&s.options.content.attr===n&&s.cache.attr&&s.set("content.text",e),this.attr(X,e))}return D.fn["attr"+Z].apply(this,arguments)},clone:function(t){D([]);var e=D.fn["clone"+Z].apply(this,arguments);return t||e.filter("["+X+"]").attr("title",function(){return D.attr(this,X)}).removeAttr(X),e}},function(t,e){if(!e||D.fn[t+Z])return A;var i=D.fn[t+Z]=D.fn[t];D.fn[t]=function(){return e.apply(this,arguments)||i.apply(this,arguments)}}),D.ui||(D["cleanData"+Z]=D.cleanData,D.cleanData=function(t){for(var e,i=0;(e=D(t[i])).length;i++)if(e.attr(k))try{e.triggerHandler("removeqtip")}catch(n){}D["cleanData"+Z].apply(this,arguments)}),_.version="2.2.1",_.nextid=0,_.inactiveEvents=B,_.zindex=15e3,_.defaults={prerender:I,id:I,overwrite:A,suppress:A,content:{text:A,attr:"title",title:I,button:I},position:{my:"top left",at:"bottom right",target:I,container:I,viewport:I,adjust:{x:0,y:0,mouse:A,scroll:A,resize:A,method:"flipinvert flipinvert"},effect:function(t,e){D(this).animate(e,{duration:200,queue:I})}},show:{target:I,event:"mouseenter",effect:A,delay:90,solo:I,ready:I,autofocus:I},hide:{target:I,event:"mouseleave",effect:A,delay:0,fixed:I,inactive:I,leave:"window",distance:I},style:{classes:"",widget:I,width:I,height:I,def:A},events:{render:C,move:C,show:C,hide:C,toggle:C,visible:C,hidden:C,focus:C,blur:C}};var it,nt,st="margin",at="border",rt="color",ot="background-color",lt="transparent",ht=" !important",dt=!!vt.createElement("canvas").getContext,ct=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,ut={},pt=["Webkit","O","Moz","ms"];if(dt)var ft=(mt.devicePixelRatio||1)/((nt=vt.createElement("canvas").getContext("2d")).backingStorePixelRatio||nt.webkitBackingStorePixelRatio||nt.mozBackingStorePixelRatio||nt.msBackingStorePixelRatio||nt.oBackingStorePixelRatio||1);else var gt=function(t,e,i){return"<qtipvml:"+t+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(e||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'};D.extend(e.prototype,{init:function(t){var e,i;i=this.element=t.elements.tip=D("<div />",{"class":S+"-tip"}).prependTo(t.tooltip),dt?((e=D("<canvas />").appendTo(this.element)[0].getContext("2d")).lineJoin="miter",e.miterLimit=1e5,e.save()):(e=gt("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(e+e),t._bind(D("*",i).add(i),["click","mousedown"],function(t){t.stopPropagation()},this._ns)),t._bind(t.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(t){var e=this.qtip.elements.titlebar;return e&&(t.y===P||t.y===N&&this.element.position().top+this.size[1]/2+this.options.offset<e.outerHeight(A))},_parseCorner:function(t){var e=this.qtip.options.position.my;return t===I||e===I?t=I:t===A?t=new y(e.string()):t.string||((t=new y(t)).fixed=A),t}
vendor: 6,652 bytes, line 23
23,_parseWidth:function(t,e,i){var n=this.qtip.elements,s=at+c(e)+"Width";return(i?r(i,s):r(n.content,s)||r(this._useTitle(t)&&n.titlebar||n.content,s)||r(n.tooltip,s))||0},_parseRadius:function(t){var e=this.qtip.elements,i=at+c(t.y)+c(t.x)+"Radius";return J.ie<9?0:r(this._useTitle(t)&&e.titlebar||e.content,i)||r(e.tooltip,i)||0},_invalidColour:function(t,e,i){var n=t.css(e);return!n||i&&n===t.css(i)||ct.test(n)?I:n},_parseColours:function(t){var e=this.qtip.elements,i=this.element.css("cssText",""),n=at+c(t[t.precedance])+c(rt),s=this._useTitle(t)&&e.titlebar||e.content,a=this._invalidColour,r=[];return r[0]=a(i,ot)||a(s,ot)||a(e.content,ot)||a(e.tooltip,ot)||i.css(ot),r[1]=a(i,n,rt)||a(s,n,rt)||a(e.content,n,rt)||a(e.tooltip,n,rt)||e.tooltip.css(n),D("*",i).add(i).css("cssText",ot+":"+lt+ht+";"+at+":0"+ht+";"),r},_calculateSize:function(t){var e,i,n=t.precedance===M,s=this.options.width,a=this.options.height,r="c"===t.abbrev(),o=(n?s:a)*(r?.5:1),l=Math.pow,h=Math.round,d=Math.sqrt(l(o,2)+l(a,2)),c=[this.border/o*d,this.border/a*d];return c[2]=Math.sqrt(l(c[0],2)-l(this.border,2)),c[3]=Math.sqrt(l(c[1],2)-l(this.border,2)),i=[h((e=(d+c[2]+c[3]+(r?0:c[0]))/d)*s),h(e*a)],n?i:i.reverse()},_calculateTip:function(t,e,i){i=i||1;var n=(e=e||this.size)[0]*i,s=e[1]*i,a=Math.ceil(n/2),r=Math.ceil(s/2),o={br:[0,0,n,s,n,0],bl:[0,0,n,0,0,s],tr:[0,s,n,0,n,s],tl:[0,0,0,s,n,s],tc:[0,s,a,0,n,s],bc:[0,0,n,0,a,s],rc:[0,0,n,r,0,s],lc:[n,0,n,s,0,r]};return o.lt=o.br,o.rt=o.bl,o.lb=o.tr,o.rb=o.tl,o[t.abbrev()]},_drawCoords:function(t,e){t.beginPath(),t.moveTo(e[0],e[1]),t.lineTo(e[2],e[3]),t.lineTo(e[4],e[5]),t.closePath()},create:function(){var t=this.corner=(dt||J.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&"c"!==this.corner.abbrev())&&(this.qtip.cache.corner=t.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(t,e){if(!this.enabled)return this;var i,n,s,a,r,o,l,h,d=this.qtip.elements,c=this.element,u=c.children(),p=this.options,f=this.size,g=p.mimic,m=Math.round;t||(t=this.qtip.cache.corner||this.corner),g===I?g=t:((g=new y(g)).precedance=t.precedance,"inherit"===g.x?g.x=t.x:"inherit"===g.y?g.y=t.y:g.x===g.y&&(g[t.precedance]=t[t.precedance])),n=g.precedance,t.precedance===E?this._swapDimensions():this._resetDimensions(),(i=this.color=this._parseColours(t))[1]!==lt?(h=this.border=this._parseWidth(t,t[t.precedance]),p.border&&h<1&&!ct.test(i[1])&&(i[0]=i[1]),this.border=h=p.border!==A?p.border:h):this.border=h=0,l=this.size=this._calculateSize(t),c.css({width:l[0],height:l[1],lineHeight:l[1]+"px"}),o=t.precedance===M?[m(g.x===R?h:g.x===L?l[0]-f[0]-h:(l[0]-f[0])/2),m(g.y===P?l[1]-f[1]:0)]:[m(g.x===R?l[0]-f[0]:0),m(g.y===P?h:g.y===H?l[1]-f[1]-h:(l[1]-f[1])/2)],dt?((s=u[0].getContext("2d")).restore(),s.save(),s.clearRect(0,0,6e3,6e3),a=this._calculateTip(g,f,ft),r=this._calculateTip(g,this.size,ft),u.attr(F,l[0]*ft).attr(j,l[1]*ft),u.css(F,l[0]).css(j,l[1]),this._drawCoords(s,r),s.fillStyle=i[1],s.fill(),s.translate(o[0]*ft,o[1]*ft),this._drawCoords(s,a),s.fillStyle=i[0],s.fill()):(a="m"+(a=this._calculateTip(g))[0]+","+a[1]+" l"+a[2]+","+a[3]+" "+a[4]+","+a[5]+" xe",o[2]=h&&/^(r|b)/i.test(t.string())?8===J.ie?2:1:0,u.css({coordsize:l[0]+h+" "+(l[1]+h),antialias:""+(-1<g.string().indexOf(N)),left:o[0]-o[2]*Number(n===E),top:o[1]-o[2]*Number(n===M),width:l[0]+h,height:l[1]+h}).each(function(t){var e=D(this);e[e.prop?"prop":"attr"]({coordsize:l[0]+h+" "+(l[1]+h),path:a,fillcolor:i[0],filled:!!t,stroked:!t}).toggle(!(!h&&!t)),!t&&e.html(gt("stroke",'weight="'+2*h+'px" color="'+i[1]+'" miterlimit="1000" joinstyle="miter"'))})),mt.opera&&setTimeout(function(){d.tip.css({display:"inline-block",visibility:"visible"})},1),e!==I&&this.calculate(t,l)},calculate:function(a,r){if(!this.enabled)return I;var o,t,l=this,h=this.qtip.elements,e=this.element,d=this.options.offset,c=(h.tooltip.hasClass("ui-widget"),{});return a=a||this.corner,o=a.precedance,r=r||this._calculateSize(a),t=[a.x,a.y],o===E&&t.reverse(),D.each(t,function(t,e){var i,n,s;e===N?(c[i=o===M?R:P]="50%",c[st+"-"+i]=-Math.round(r[o===M?0:1]/2)+d):(i=l._parseWidth(a,e,h.tooltip),n=l._parseWidth(a,e,h.content),s=l._parseRadius(a),c[e]=Math.max(-l.border,t?n:d+(i<s?s:-i)))}),c[a[o]]-=r[o===E?0:1],e.css({margin:"",top:"",bottom:"",left:"",right:""}).css(c),c},reposition:function(t,e,n){function i(t,e,i,n,s){t===$&&l.precedance===e&&h[n]&&l[i]!==N?l.precedance=l.precedance===E?M:E:t!==$&&h[n]&&(l[e]=l[e]===N?0<h[n]?n:s:l[e]===n?s:n)}function s(t,e,i){l[t]===N?f[st+"-"+e]=p[t]=a[st+"-"+e]-h[e]:(r=a[i]!==_t?[h[e],-a[e]]:[-h[e],a[e]],(p[t]=Math.max(r[0],r[1]))>r[0]&&(n[e]-=h[e],p[e]=I),f[a[i]!==_t?i:e]=p[t])}if(this.enabled){var a,r,o=e.cache,l=this.corner.clone(),h=n.adjusted,d=e.options.position.adjust.method.split(" "),c=d[0],u=d[1]||d[0],p={left:I,top:I,x:0,y:0},f={};this.corner.fixed!==A&&(i(c,E,M,R,L),i(u,M,E,P,H),l.string()===o.corner.string()&&o.cornerTop===h.top&&o.cornerLeft===h.left||this.update(l,I)),(a=this.calculate(l)).right!==_t&&(a.left=-a.right),a.bottom!==_t&&(a.top=-a.bottom),a.user=this.offset,(p.left=c===$&&!!h.left)&&s(E,R,L),(p.top=u===$&&!!h.top)&&s(M,P,H),this.element.css(f).toggle(!(p.x&&p.y||l.x===N&&p.y||l.y===N&&p.x)),n.left-=a.left.charAt?a.user:c!==$||p.top||!p.left&&!p.top?a.left+this.border:0,n.top-=a.top.charAt?a.user:u!==$||p.left||!p.left&&!p.top?a.top+this.border:0,o.cornerLeft=h.left,o.cornerTop=h.top,o.corner=l.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),(it=O.tip=function(t){return new e(t,t.options.style.tip)}).initialize="render",it.sanitize=function(t){if(t.style&&"tip"in t.style){var e=t.style.tip;"object"!=typeof e&&(e=t.style.tip={corner:e}),/string|boolean/i.test(typeof e.corner)||(e.corner=A)}},w.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(t){this.size=[t.width,t.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},D.extend(A,_.defaults,{style:{tip:{corner:A,mimic:I,width:6,height:6,border:A,offset:0}}}),O.viewport=function(t,b,e,i,n,s,a){function r(t,e,i,n,s,a,r,o,l){var h=b[s],d=D[t],c=A[t],u=i===$,p=d===s?l:d===a?-l:-l/2,f=c===s?o:c===a?-o:-o/2,g=k[s]+T[s]-(x?0:w[s]),m=g-h,v=h+l-(r===F?C:S)-g,_=p-(D.precedance===t||d===D[e]?f:0)-(c===N?o/2:0);return u?(_=(d===s?1:-1)*p,b[s]+=0<m?m:0<v?-v:0,b[s]=Math.max(-w[s]+T[s],h-_,Math.min(Math.max(-w[s]+T[s]+(r===F?C:S),h+_),b[s],"center"===d?h-p:1e9))):(n*=i===q?2:0,0<m&&(d!==s||
230<v)?(b[s]-=_+n,y.invert(t,s)):0<v&&(d!==a||0<m)&&(b[s]-=(d===N?-_:_)+n,y.invert(t,a)),b[s]<k&&-b[s]>v&&(b[s]=h,y=D.clone())),b[s]-h}var o,y,w,x,C,S,k,T,l=e.target,h=t.elements.tooltip,D=e.my,A=e.at,d=e.adjust,c=d.method.split(" "),u=c[0],p=c[1]||c[0],f=e.viewport,g=e.container,m=(t.cache,{left:0,top:0});return f.jquery&&l[0]!==mt&&l[0]!==vt.body&&"none"!==d.method?(w=g.offset()||m,x="static"===g.css("position"),o="fixed"===h.css("position"),C=f[0]===mt?f.width():f.outerWidth(I),S=f[0]===mt?f.height():f.outerHeight(I),k={left:o?0:f.scrollLeft(),top:o?0:f.scrollTop()},T=f.offset()||m,"shift"===u&&"shift"===p||(y=D.clone()),m={left:"none"!==u?r(E,M,u,d.x,R,L,F,i,s):0,top:"none"!==p?r(M,E,p,d.y,P,H,j,n,a):0,my:y}):m}})}(window,document),function(k,T,D){if(k.Feedback===D){var d,c,a=function(t){k.console.log(t)},i=function(t){for(var e=0,i=t.length;e<i;e++){var n=Array.prototype.pop.call(t);n!==D&&null!==n.parentNode&&n.parentNode.removeChild(n)}},A=function(){var t=T.createElement("div"),e=3;for(t.className="feedback-loader";e--;)t.appendChild(T.createElement("span"));return t},I=function(t){return t.getBoundingClientRect()},E=function(t){for(var e;null!==(e=t.firstChild)&&t.removeChild(e););},M=function(t,e){var i=T.createElement(t);return i.appendChild(T.createTextNode(e)),i},r=function(t,e){if(t.onload!==D)return e;if(t.onreadystatechange!==D){var i=function(){"loaded"!==t.readyState&&"complete"!==t.readyState?k.setTimeout(i,250):e()};k.setTimeout(i,250)}else a("ERROR: We can't track when script is loaded")},u="data-html2canvas-ignore",p=T.createElement("div");k.Feedback=function(r){(r=r||{}).label=r.label||"Send Feedback",r.header=r.header||"Send Feedback",r.url=r.url||"/",r.adapter=r.adapter||new k.Feedback.XHR(r.url),r.nextLabel=r.nextLabel||"Continue",r.reviewLabel=r.reviewLabel||"Review",r.sendLabel=r.sendLabel||"Send",r.closeLabel=r.closeLabel||"Close",r.messageSuccess=r.messageSuccess||"Your feedback was sent successfully.",r.messageError=r.messageError||"There was an error sending your feedback to the server.",r.blackoutButtonMessage=r.blackoutButtonMessage||"Blackout",r.highlightButtonMessage=r.highlightButtonMessage||"Highlight",r.highlightOrBlackout=r.highlightOrBlackout||"Highlight or blackout important information",r.pages===D&&(r.pages=[new k.Feedback.Form,new k.Feedback.Screenshot(r),new k.Feedback.Review]);var s,a,o,l=T.createElement("div"),h={open:function(){var t=r.pages.length;for(o=0;o<t;o++)r.pages[o]instanceof k.Feedback.Review||r.pages[o].render();var e=M("a","\xd7"),i=T.createElement("div"),n=T.createElement("div");a=T.createElement("div"),T.body.appendChild(l),e.className="feedback-close",e.onclick=h.close,e.href="#",s.disabled=!0,i.appendChild(e),i.appendChild(M("h3",r.header)),i.className="feedback-header",p.className="feedback-body",E(p),o=0,p.appendChild(r.pages[o++].dom),(c=M("button",r.sendLabel)).onclick=function(){0<o&&!1===r.pages[o-1].end(a)||(E(p),h.send(r.adapter))},c.className="feedback-btn",(d=M("button",r.nextLabel)).className="feedback-btn",d.onclick=function(){0<o&&!1===r.pages[o-1].end(a)||(E(p),o===t?h.send(r.adapter):(r.pages[o].start(a,i,n,d),r.pages[o]instanceof k.Feedback.Review&&r.pages[o].render(r.pages),p.appendChild(r.pages[o++].dom),o===t&&(d.firstChild.nodeValue=r.sendLabel),r.pages[o]instanceof k.Feedback.Review&&(d.firstChild.nodeValue=r.reviewLabel,c.style.display="none")))},n.className="feedback-footer",n.appendChild(c),n.appendChild(d),a.className="feedback-modal",a.setAttribute(u,!0),a.appendChild(i),a.appendChild(p),a.appendChild(n),T.body.appendChild(a)},close:function(){s.disabled=!1,i([a,l]),0<o&&r.pages[o-1].end(a);for(var t=0,e=r.pages.length;t<e;t++)r.pages[t].close();return!1},send:function(t){if(!(t instanceof k.Feedback.Send))throw new Error("Adapter is not an instance of Feedback.Send");for(var e,i=0,n=r.pages.length,s=[],a=0;i<n;i++)!1!==(e=r.pages[i].data())&&(s[a++]=e);d.disabled=!0,c.style.display="none",E(p),p.appendChild(A()),t.send(s,function(t){E(p),d.disabled=!1,d.firstChild.nodeValue=r.closeLabel,d.onclick=function(){return h.close(),!1},!0===t?p.appendChild(T.createTextNode(r.messageSuccess)):p.appendChild(T.createTextNode(r.messageError))})}};return l.className="feedback-glass",l.style.pointerEvents="none",l.setAttribute(u,!0),s=M("a",(r=r||{}).label),null!==r.btnClass&&(s.className=r.btnClass),s.setAttribute(u,!0),s.onclick=h.open,null!==r.appendTo&&(r.appendTo!==D?r.appendTo:T.body).appendChild(s),h},k.Feedback.Page=function(){},k.Feedback.Page.prototype={render:function(t){this.dom=t},start:function(){},close:function(){},data:function(){return!1},review:function(){return null},end:function(){return!0}},k.Feedback.Send=function(){},k.Feedback.Send.prototype={send:function(){}},k.Feedback.Form=function(t){this.elements=t||[{type:"textarea",
23name:"Issue",label:"Please describe the issue you are experiencing",required:!1}],this.dom=T.createElement("div")},k.Feedback.Form.prototype=new k.Feedback.Page,k.Feedback.Form.prototype.render=function(){var t,e=0,i=this.elements.length;for(E(this.dom);e<i;e++)switch((t=this.elements[e]).type){case"textarea":this.dom.appendChild(M("label",t.label+":"+(!0===t.required?" *":""))),this.dom.appendChild(t.element=T.createElement("textarea"));break;case"input":this.dom.appendChild(M("label",t.label+":"+(!0===t.required?" *":""))),this.dom.appendChild(t.element=T.createElement("input"))}return this},k.Feedback.Form.prototype.end=function(){for(var t,e=0,i=this.elements.length;e<i;e++){if(!0===(t=this.elements[e]).required&&0===t.element.value.length)return!(t.element.className="feedback-error");t.element.className=""}return!0},k.Feedback.Form.prototype.data=function(){if(this._data!==D)return this._data;for(var t,e=0,i=this.elements.length,n={};e<i;e++)n[(t=this.elements[e]).name]=t.element.value;return this._data=n},k.Feedback.Form.prototype.review=function(t){for(var e,i=0,n=this.elements.length;i<n;i++)0<(e=this.elements[i]).element.value.length&&(t.appendChild(M("label",e.name+":")),t.appendChild(T.createTextNode(e.element.value.length)),t.appendChild(T.createElement("hr")));return t},k.Feedback.Review=function(){this.dom=T.createElement("div"),this.dom.className="feedback-review"},k.Feedback.Review.prototype=new k.Feedback.Page,k.Feedback.Review.prototype.render=function(t){var e=0,i=t.length;for(E(this.dom);e<i;e++)t[e].review(this.dom);return this},k.Feedback.Screenshot=function(t){this.options=t||{},this.options.blackoutClass=this.options.blackoutClass||"feedback-blackedout",this.options.highlightClass=this.options.highlightClass||"feedback-highlighted",this.h2cDone=!1},k.Feedback.Screenshot.prototype=new k.Feedback.Page,k.Feedback.Screenshot.prototype.end=function(t){t.className=t.className.replace(/feedback\-animate\-toside/,""),T.body.removeEventListener("mousemove",this.mouseMoveEvent,!1),T.body.removeEventListener("click",this.mouseClickEvent,!1),i([this.h2cCanvas]),this.h2cDone=!1},k.Feedback.Screenshot.prototype.close=function(){i([this.blackoutBox,this.highlightContainer,this.highlightBox,this.highlightClose]),i(T.getElementsByClassName(this.options.blackoutClass)),i(T.getElementsByClassName(this.options.highlightClass))},k.Feedback.Screenshot.prototype.start=function(n,s,t,a){if(this.h2cDone){E(this.dom),a.disabled=!1;var r=this,i="feedback-highlight-element",o="data-exclude",l=!0;this.mouseMoveEvent=function(t){if(t.target!==c&&(-1!==t.target.className.indexOf(r.options.blackoutClass)||-1!==t.target.className.indexOf(r.options.highlightClass))){var e=parseInt(t.target.style.left,10)+parseInt(t.target.style.width,10);e=Math.max(e,10),e=Math.min(e,k.innerWidth-15);var i=parseInt(t.target.style.top,10);return i=Math.max(i,10),u.style.left=e+"px",u.style.top=i+"px",d=t.target,v(),void(c=D)}if("BODY"===t.target.nodeName||t.target===u||t.target===n||t.target===a||t.target.parentNode===n||t.target.parentNode===s)return v(),void(c=t.target);b(),t.target!==c&&(c=t.target,k.clearTimeout(h),h=k.setTimeout(function(){var t,e=I(c);!1===l?t=f:((t=p).width=e.width,t.height=e.height,g.drawImage(r.h2cCanvas,k.pageXOffset+e.left,k.pageYOffset+e.top,e.width,e.height,0,0,e.width,e.height)),t.setAttribute(o,!1),t.style.left=k.pageXOffset+e.left+"px",t.style.top=k.pageYOffset+e.top+"px",t.style.width=e.width+"px",t.style.height=e.height+"px"},100))},this.mouseClickEvent=function(t){if(t.preventDefault(),!1===l){if("false"===f.getAttribute(o)){var e=T.createElement("div");e.className=r.options.blackoutClass,e.style.left=f.style.left,e.style.top=f.style.top,e.style.width=f.style.width,e.style.height=f.style.height,T.body.appendChild(e),c=D}}else"false"===p.getAttribute(o)&&(p.className+=" "+r.options.highlightClass,p.className=p.className.replace(/feedback\-highlight\-element/g,""),r.highlightBox=p=T.createElement("canvas"),g=p.getContext("2d"),p.className+=" "+i,T.body.appendChild(p),v(),c=D)},this.highlightClose=M("div","\xd7"),this.blackoutBox=T.createElement("div"),this.highlightBox=T.createElement("canvas"),this.highlightContainer=T.createElement("div");var h,d,c,u=this.highlightClose,p=this.highlightBox,f=this.blackoutBox,e=this.highlightContainer,g=p.getContext("2d"),m=function(t){t.preventDefault(),-1===y.
23className.indexOf("active")?(y.className+=" active",w.className=w.className.replace(/active/g,"")):(w.className+=" active",y.className=y.className.replace(/active/g,"")),l=!l},v=function(){_(f),_(p),k.clearTimeout(h)},_=function(t){t.style.left="-5px",t.style.top="-5px",t.style.width="0px",t.style.height="0px",t.setAttribute(o,!0)},b=function(){u.style.left="-50px",u.style.top="-50px"},y=M("a",this.options.blackoutButtonMessage),w=M("a",this.options.highlightButtonMessage);n.className+=" feedback-animate-toside",u.id="feedback-highlight-close",u.addEventListener("click",function(){d.parentNode.removeChild(d),b()},!1),T.body.appendChild(u),this.h2cCanvas.className="feedback-canvas",T.body.appendChild(this.h2cCanvas);var x=[w,y];this.dom.appendChild(M("p",this.options.highlightOrBlackout));for(var C=0;C<2;C++)x[C].className="feedback-btn feedback-btn-small "+(0===C?"active":"feedback-btn-inverse"),x[C].href="#",x[C].onclick=m,this.dom.appendChild(x[C]),this.dom.appendChild(T.createTextNode(" "));e.id="feedback-highlight-container",e.style.width=this.h2cCanvas.width+"px",e.style.height=this.h2cCanvas.height+"px",this.highlightBox.className+=" "+i,this.blackoutBox.id="feedback-blackout-element",T.body.appendChild(this.highlightBox),e.appendChild(this.blackoutBox),T.body.appendChild(e),T.body.addEventListener("mousemove",this.mouseMoveEvent,!1),T.body.addEventListener("click",this.mouseClickEvent,!1)}else{var S=arguments;r=this;!0!==a.disabled&&this.dom.appendChild(A()),a.disabled=!0,k.setTimeout(function(){r.start.apply(r,S)},500)}},k.Feedback.Screenshot.prototype.render=function(){this.dom=T.createElement("div");var t,e=this,i=this.options,n=function(){try{i.onrendered=i.onrendered||function(t){e.h2cCanvas=t,e.h2cDone=!0},k.html2canvas([T.body],i)}catch(t){e.h2cDone=!0,a("Error in html2canvas: "+t.message)}};if(k.html2canvas===D&&t===D){(t=T.createElement("script")).src=i.h2cPath||"libs/html2canvas.js",t.onerror=function(){a("Failed to load html2canvas library, check that the path is correctly defined")},t.onload=r(t,function(){k.html2canvas!==D?(k.html2canvas.logging=k.Feedback.debug,n()):a("Loaded html2canvas, but library not found")});var s=T.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}else n();return this},k.Feedback.Screenshot.prototype.data=function(){if(this._data!==D)return this._data;if(this.h2cCanvas!==D){var t,e,a=this.h2cCanvas.getContext("2d"),r=5;a.fillStyle="#000",Array.prototype.slice.call(T.getElementsByClassName("feedback-blackedout"),0).forEach(function(t){var e=I(t);a.fillRect(e.left,e.top,e.width,e.height)});var i=Array.prototype.slice.call(T.getElementsByClassName("feedback-highlighted"),0);0<i.length&&(e=(t=T.createElement("canvas")).getContext("2d"),t.width=this.h2cCanvas.width,t.height=this.h2cCanvas.height,e.drawImage(this.h2cCanvas,0,0),a.fillStyle="#777",a.globalAlpha=.5,a.fillRect(0,0,this.h2cCanvas.width,this.h2cCanvas.height),a.beginPath(),i.forEach(function(t){var e=parseInt(t.style.left,10),i=parseInt(t.style.top,10),n=parseInt(t.style.width,10),s=parseInt(t.style.height,10);a.moveTo(e+r,i),a.lineTo(e+n-r,i),a.quadraticCurveTo(e+n,i,e+n,i+r),a.lineTo(e+n,i+s-r),a.quadraticCurveTo(e+n,i+s,e+n-r,i+s),a.lineTo(e+r,i+s),a.quadraticCurveTo(e,i+s,e,i+s-r),a.lineTo(e,i+r),a.quadraticCurveTo(e,i,e+r,i)}),a.closePath(),a.clip(),a.globalAlpha=1,a.drawImage(t,0,0));try{return this._data=this.h2cCanvas.toDataURL()}catch(n){}}},k.Feedback.Screenshot.prototype.review=function(t){var e=this.data();if(e!==D){var i=new Image;i.src=e,i.style.width="300px",t.appendChild(i)}},k.Feedback.XHR=function(t){this.xhr=new XMLHttpRequest,this.url=t},k.Feedback.XHR.prototype=new k.Feedback.Send,k.Feedback.XHR.prototype.send=function(t,e){var i=this.xhr;i.onreadystatechange=function(){4==i.readyState&&e(200===i.status)},i.open("POST",this.url,!0),i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),i.setRequestHeader("X-CSRF-Token",$('meta[name="csrf-token"]').attr("content")),i.send("data="+encodeURIComponent(k.JSON.stringify(t)))}}}(window,document);var PrivatePub=buildPrivatePub(document);if(("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require(t[0])
23):window.toastr=e(window.jQuery)})(["jquery"],function(v){return function(){function c(t){e&&e(t)}function n(t){function e(){if(!(0<v(":focus",o).length))return o.fadeOut(s.fadeOut,function(){f(o),s.onFadeOut&&s.onFadeOut(),d.state="hidden",d.endTime=new Date,c(d)})}function i(){(0<s.timeOut||0<s.extendedTimeOut)&&(r=setTimeout(e,s.extendedTimeOut))}function n(){clearTimeout(r),o.stop(!0,!0).fadeIn(s.fadeIn)}var s=p(),a=t.iconClass||s.iconClass;"undefined"!=typeof t.optionsOverride&&(s=v.extend(s,t.optionsOverride),a=t.optionsOverride.iconClass||a),m++,g=u(s);var r=null,o=v("<div/>"),l=v("<div/>"),h=v("<div/>"),d={toastId:m,state:"visible",startTime:new Date,options:s,map:t};return t.iconClass&&o.addClass(s.toastClass).addClass(a),t.title&&(l.append(t.title).addClass(s.titleClass),o.append(l)),t.message&&(h.append(t.message).addClass(s.messageClass),o.append(h)),o.hide(),s.newestOnTop?g.prepend(o):g.append(o),o.fadeIn(s.fadeIn,s.onFadeIn),0<s.timeOut&&(r=setTimeout(e,s.timeOut)),o.hover(n,i),!s.onclick&&s.tapToDismiss&&o.click(e),s.tapToDismiss||g.addClass("sticky"),s.onclick&&o.click(function(){s.onclick()&&e()}),c(d),s.debug&&console&&console.log(d),o}function u(t){return t||(t=p()),(g=v("#"+t.containerId)).length||(g=v("<div/>").attr("id",t.containerId).addClass(t.positionClass)).appendTo(v(t.target)),g}function p(){return v.extend({},t,i.options)}function f(t){g||(g=u()),t.is(":visible")||(t.remove(),t=null,0===g.children().length&&g.remove())}var g,e,s={error:"error",info:"info",success:"success",warning:"warning"},m=0,t={tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,fadeIn:300,onFadeIn:undefined,fadeOut:1e3,onFadeOut:undefined,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",newestOnTop:!0},i={clear:function(t){var e=p();g||u(e),t&&0===v(":focus",t).length?t.fadeOut(e.fadeOut,function(){f(t)}):g.children().length&&g.fadeOut(e.fadeOut,function(){g.remove()})},error:function(t,e,i){return n({type:s.error,iconClass:p().iconClasses.error,message:t,optionsOverride:i,title:e})},getContainer:u,info:function(t,e,i){return n({type:s.info,iconClass:p().iconClasses.info,message:t,optionsOverride:i,title:e})},options:{},subscribe:function(t){e=t},success:function(t,e,i){return n({type:s.success,iconClass:p().iconClasses.success,message:t,optionsOverride:i,title:e})},version:"1.3.1",warning:function(t,e,i){return n({type:s.warning,iconClass:p().iconClasses.warning,message:t,optionsOverride:i,title:e})}};return i}()}),function(){"use strict";var h=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function d(t){function e(){!h&&this._init&&this._init.apply(this,arguments)}var s=this.prototype;h=!0;var i=new this;for(var n in h=!1,t)if("function"==typeof t[n]&&"function"==typeof s[n])i[n]=function(i,n){return function(){var t=this._super;this._super=function(t){return s[i].apply(this,t||[])};var e=n.apply(this,arguments);return this._super=t,e}}(n,t[n]);else if("object"==typeof t[n]&&"object"==typeof s[n]&&"defaultOptions"===n){var a,r=s[n],o=t[n],l={};for(a in r)l[a]=r[a];for(a in o)l[a]=o[a];i[n]=l}else i[n]=t[n];return e.prototype=i,(e.prototype.constructor=e).extend=d,e}}(),function($){"use strict";function camelCase(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},deepMerge:!0,_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var a=camelCase(this.name);$[a]=this,$.fn[a]=function(e){var i=Array.prototype.slice.call(arguments,1),n=this,s=this;return this.each(function(){if("string"==typeof e){if("_"===e[0]||!$[a][e])throw"Unknown method: "+e;var t=$[a][e].apply($[a],[this].concat(i));if(t!==n&&t!==undefined)return s=t,!1}else $[a]._attach(this,e)}),s}},setDefaults:function(t){$.extend(this.defaultOptions,t||{})},_attach:function(t,e){if(!(t=$(t)).hasClass(this._getMarker())){t.addClass(this._getMarker()),e=$.extend(this.deepMerge,{},this.defaultOptions,this._getMetadata(t),e||{});var i=$.extend({name:this.name,elem:t,options:e},this._instSettings(t,e));t.data(this.name,i),this._postAttach(t,i),this.option(t,e)}},_instSettings:function(){return{}},_postAttach:function(){},_getMetadata:function(elem){try{var data=elem.data(this.name.toLowerCase())||"";for(var key in data=data.replace(/(\\?)'/g,function(t,e){return e?"'":'"'}
23).replace(/([a-zA-Z0-9]+):/g,function(t,e,i){var n=data.substring(0,i).match(/"/g);return n&&n.length%2!=0?e+":":'"'+e+'":'}).replace(/\\:/g,":"),data=$.parseJSON("{"+data+"}"),data)if(data.hasOwnProperty(key)){var value=data[key];"string"==typeof value&&value.match(/^new Date\(([-0-9,\s]*)\)$/)&&(data[key]=eval(value))}return data}catch(e){return{}}},_getInst:function(t){return $(t).data(this.name)||{}},option:function(t,e,i){var n=(t=$(t)).data(this.name),s=e||{};if(!e||"string"==typeof e&&void 0===i)return(s=(n||{}).options)&&e?s[e]:s;t.hasClass(this._getMarker())&&("string"==typeof e&&((s={})[e]=i),this._optionsChanged(t,n,s),$.extend(n.options,s))},_optionsChanged:function(){},destroy:function(t){(t=$(t)).hasClass(this._getMarker())&&(this._preDestroy(t,this._getInst(t)),t.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(){}}),$.JQPlugin={createPlugin:function(t,e){"object"==typeof t&&(e=t,t="JQPlugin"),t=camelCase(t);var i=camelCase(e.name);JQClass.classes[i]=JQClass.classes[t].extend(e),new JQClass.classes[i]}}}(jQuery),function(g){"use strict";var t="countdown",b=0,y=1,w=2,x=3,C=4,S=5,k=6;g.JQPlugin.createPlugin({name:t,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_rtlClass:t+"-rtl",_sectionClass:t+"-section",_amountClass:t+"-amount",_periodClass:t+"-period",_rowClass:t+"-row",_holdingClass:t+"-holding",_showClass:t+"-show",_descrClass:t+"-descr",_timerElems:[],_init:function(){function i(t){var e=t<1e12?a?window.performance.now()+window.performance.timing.navigationStart:s():t||s();1e3<=e-o&&(n._updateElems(),o=e),r(i)}var n=this;this._super(),this._serverSyncs=[];var s="function"==typeof Date.now?Date.now:function(){return(new Date).getTime()},a=window.performance&&"function"==typeof window.performance.now,r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,o=0;!r||g.noRequestAnimationFrame?(g.noRequestAnimationFrame=null,g.countdown._timer=setInterval(function(){n._updateElems()},1e3)):(o=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||s(),r(i))},UTCDate:function(t,e,i,n,s,a,r,o){"object"==typeof e&&e instanceof Date&&(o=e.getMilliseconds(),r=e.getSeconds(),a=e.getMinutes(),s=e.getHours(),n=e.getDate(),i=e.getMonth(),e=e.getFullYear());var l=new Date;return l.setUTCFullYear(e),l.setUTCDate(1),l.setUTCMonth(i||0),l.setUTCDate(n||1),l.setUTCHours(s||0),l.setUTCMinutes((a||0)-(Math.abs(t)<30?60*t:t)),l.setUTCSeconds(r||0),l.setUTCMilliseconds(o||0),l},periodsToSeconds:function(t){
24return 31557600*t[0]+2629800*t[1]+604800*t[2]+86400*t[3]+3600*t[4]+60*t[5]+t[6]},resync:function(){var s=this;g("."+this._getMarker()).each(function(){var t=g.data(this,s.name);if(t.options.serverSync){for(var e=null,i=0;i<s._serverSyncs.length;i++)if(s._serverSyncs[i][0]===t.options.serverSync){e=s._serverSyncs[i];break}if(s._eqNull(e[2])){var n=g.isFunction(t.options.serverSync)?t.options.serverSync.apply(this,[]):null;e[2]=(n?(new Date).getTime()-n.getTime():0)-e[1]}t._since&&t._since.setMilliseconds(t._since.getMilliseconds()+e[2]),t._until.setMilliseconds(t._until.getMilliseconds()+e[2])}});for(var t=0;t<s._serverSyncs.length;t++)s._eqNull(s._serverSyncs[t][2])||(s._serverSyncs[t][1]+=s._serverSyncs[t][2],delete s._serverSyncs[t][2])},_instSettings:function(){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(t){this._hasElem(t)||this._timerElems.push(t)},_hasElem:function(t){return-1<g.inArray(t,this._timerElems)},_removeElem:function(e){this._timerElems=g.map(this._timerElems,function(t){return t===e?null:t})},_updateElems:function(){for(var t=this._timerElems.length-1;0<=t;t--)this._updateCountdown(this._timerElems[t])}
24,_optionsChanged:function(t,e,i){i.layout&&(i.layout=i.layout.replace(/&lt;/g,"<").replace(/&gt;/g,">")),this._resetExtraLabels(e.options,i);var n=e.options.timezone!==i.timezone;g.extend(e.options,i),this._adjustSettings(t,e,!this._eqNull(i.until)||!this._eqNull(i.since)||n);var s=new Date;(e._since&&e._since<s||e._until&&e._until>s)&&this._addElem(t[0]),this._updateCountdown(t,e)},_updateCountdown:function(t,e){if(t=t.jquery?t:g(t),e=e||this._getInst(t)){if(t.html(this._generateHTML(e)).toggleClass(this._rtlClass,e.options.isRTL),"pause"!==e._hold&&g.isFunction(e.options.onTick)){var i="lap"!==e._hold?e._periods:this._calculatePeriods(e,e._show,e.options.significant,new Date);1!==e.options.tickInterval&&this.periodsToSeconds(i)%e.options.tickInterval!=0||e.options.onTick.apply(t[0],[i])}if("pause"!==e._hold&&(e._since?e._now.getTime()<e._since.getTime():e._now.getTime()>=e._until.getTime())&&!e._expiring){if(e._expiring=!0,this._hasElem(t[0])||e.options.alwaysExpire){if(this._removeElem(t[0]),g.isFunction(e.options.onExpiry)&&e.options.onExpiry.apply(t[0],[]),e.options.expiryText){var n=e.options.layout;e.options.layout=e.options.expiryText,this._updateCountdown(t[0],e),e.options.layout=n}e.options.expiryUrl&&(window.location=e.options.expiryUrl)}e._expiring=!1}else"pause"===e._hold&&this._removeElem(t[0])}},_resetExtraLabels:function(t,e){var i=null;for(i in e)i.match(/[Ll]abels[02-9]|compactLabels1/)&&(t[i]=e[i]);for(i in t)i.match(/[Ll]abels[02-9]|compactLabels1/)&&"undefined"==typeof e[i]&&(t[i]=null)},_eqNull:function(t){return null==t},_adjustSettings:function(t,e,i){for(var n=null,s=0;s<this._serverSyncs.length;s++)if(this._serverSyncs[s][0]===e.options.serverSync){n=this._serverSyncs[s][1];break}var a=null,r=null;if(this._eqNull(n)){var o=g.isFunction(e.options.serverSync)?e.options.serverSync.apply(t[0],[]):null;a=new Date,r=o?a.getTime()-o.getTime():0,this._serverSyncs.push([e.options.serverSync,r])}else a=new Date,r=e.options.serverSync?n:0;var l=e.options.timezone;l=this._eqNull(l)?-a.getTimezoneOffset():l,(i||!i&&this._eqNull(e._until)&&this._eqNull(e._since))&&(e._since=e.options.since,this._eqNull(e._since)||(e._since=this.UTCDate(l,this._determineTime(e._since,null)),e._since&&r&&e._since.setMilliseconds(e._since.getMilliseconds()+r)),e._until=this.UTCDate(l,this._determineTime(e.options.until,a)),r&&e._until.setMilliseconds(e._until.getMilliseconds()+r)),e._show=this._determineShow(e)},_preDestroy:function(t){this._removeElem(t[0]),t.empty()},pause:function(t){this._hold(t,"pause")},lap:function(t){this._hold(t,"lap")},resume:function(t){this._hold(t,null)},toggle:function(t){this[(g.data(t,this.name)||{})._hold?"resume":"pause"](t)},toggleLap:function(t){this[(g.data(t,this.name)||{})._hold?"resume":"lap"](t)},_hold:function(t,e){var i=g.data(t,this.name);if(i){if("pause"===i._hold&&!e){i._periods=i._savePeriods;var n=i._since?"-":"+";i[i._since?"_since":"_until"]=this._determineTime(n+i._periods[0]+"y"+n+i._periods[1]+"o"+n+i._periods[2]+"w"+n+i._periods[3]+"d"+n+i._periods[4]+"h"+n+i._periods[5]+"m"+n+i._periods[6]+"s"),this._addElem(t)}i._hold=e,i._savePeriods="pause"===e?i._periods:null,g.data(t,this.name,i),this._updateCountdown(t,i)}},getTimes:function(t){var e=g.data(t,this.name);return e?"pause"===e._hold?e._savePeriods:e._hold?this._calculatePeriods(e,e._show,e.options.significant,new Date):e._periods:null},_determineTime:function(t,e){var d=this,i=function(t){var e=new Date;return e.setTime(e.getTime()+1e3*t),e},n=function(t){t=t.toLowerCase();for(var e=new Date,i=e.getFullYear(),n=e.getMonth(),s=e.getDate(),a=e.getHours(),r=e.getMinutes(),o=e.getSeconds(),l=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,h=l.exec(t);h;){switch(h[2]||"s"){case"s":o+=parseInt(h[1],10);break;case"m":r+=parseInt(h[1],10);break;case"h":a+=parseInt(h[1],10);break;case"d":s+=parseInt(h[1],10);break;case"w":s+=7*parseInt(h[1],10);break;case"o":n+=parseInt(h[1],10),s=Math.min(s,d._getDaysInMonth(i,n));break;case"y":i+=parseInt(h[1],10),s=Math.min(s,d._getDaysInMonth(i,n))}h=l.exec(t)}return new Date(i,n,s,a,r,o,0)},s=this._eqNull(t)?e:"string"==typeof t?n(t):"number"==typeof t?i(t):t;return s&&s.setMilliseconds(0),s},_getDaysInMonth:function(t,e){return 32-new Date(t,e,32).getDate()},_normalLabels:function(t){return t},_generateHTML:function(i){var n=this;
24i._periods=i._hold?i._periods:this._calculatePeriods(i,i._show,i.options.significant,new Date);var t=!1,e=0,s=i.options.significant,a=g.extend({},i._show),r=null;for(r=b;r<=k;r++)t=t||"?"===i._show[r]&&0<i._periods[r],a[r]="?"!==i._show[r]||t?i._show[r]:null,e+=a[r]?1:0,s-=0<i._periods[r]?1:0;var o=[!1,!1,!1,!1,!1,!1,!1];for(r=k;b<=r;r--)i._show[r]&&(i._periods[r]?o[r]=!0:(o[r]=0<s,s--));var l=i.options.compact?i.options.compactLabels:i.options.labels,h=i.options.whichLabels||this._normalLabels,d=function(t){var e=i.options["compactLabels"+h(i._periods[t])];return a[t]?n._translateDigits(i,i._periods[t])+(e?e[t]:l[t])+" ":""},c=i.options.padZeroes?2:1,u=function(t){var e=i.options["labels"+h(i._periods[t])];return!i.options.significant&&a[t]||i.options.significant&&o[t]?'<span class="'+n._sectionClass+'"><span class="'+n._amountClass+'">'+n._minDigits(i,i._periods[t],c)+'</span><span class="'+n._periodClass+'">'+(e?e[t]:l[t])+"</span></span>":""};return i.options.layout?this._buildLayout(i,a,i.options.layout,i.options.compact,i.options.significant,o):(i.options.compact?'<span class="'+this._rowClass+" "+this._amountClass+(i._hold?" "+this._holdingClass:"")+'">'+d(b)+d(y)+d(w)+d(x)+(a[C]?this._minDigits(i,i._periods[C],2):"")+(a[S]?(a[C]?i.options.timeSeparator:"")+this._minDigits(i,i._periods[S],2):"")+(a[k]?(a[C]||a[S]?i.options.timeSeparator:"")+this._minDigits(i,i._periods[k],2):""):'<span class="'+this._rowClass+" "+this._showClass+(i.options.significant||e)+(i._hold?" "+this._holdingClass:"")+'">'+u(b)+u(y)+u(w)+u(x)+u(C)+u(S)+u(k))+"</span>"+(i.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+i.options.description+"</span>":"")},_buildLayout:function(i,t,e,n,s,a){for(var r=i.options[n?"compactLabels":"labels"],o=i.options.whichLabels||this._normalLabels,l=function(t){return(i.options[(n?"compactLabels":"labels")+o(i._periods[t])]||r)[t]},h=function(t,e){return i.options.digits[Math.floor(t/e)%10]},d={desc:i.options.description,sep:i.options.timeSeparator,yl:l(b),yn:this._minDigits(i,i._periods[b],1),ynn:this._minDigits(i,i._periods[b],2),ynnn:this._minDigits(i,i._periods[b],3),y1:h(i._periods[b],1),y10:h(i._periods[b],10),y100:h(i._periods[b],100),y1000:h(i._periods[b],1e3),ol:l(y),on:this._minDigits(i,i._periods[y],1),onn:this._minDigits(i,i._periods[y],2),onnn:this._minDigits(i,i._periods[y],3),o1:h(i._periods[y],1),o10:h(i._periods[y],10),o100:h(i._periods[y],100),o1000:h(i._periods[y],1e3),wl:l(w),wn:this._minDigits(i,i._periods[w],1),wnn:this._minDigits(i,i._periods[w],2),wnnn:this._minDigits(i,i._periods[w],3),w1:h(i._periods[w],1),w10:h(i._periods[w],10),w100:h(i._periods[w],100),w1000:h(i._periods[w],1e3),dl:l(x),dn:this._minDigits(i,i._periods[x],1),dnn:this._minDigits(i,i._periods[x],2),dnnn:this._minDigits(i,i._periods[x],3),d1:h(i._periods[x],1),d10:h(i._periods[x],10),d100:h(i._periods[x],100),d1000:h(i._periods[x],1e3),hl:l(C),hn:this._minDigits(i,i._periods[C],1),hnn:this._minDigits(i,i._periods[C],2),hnnn:this._minDigits(i,i._periods[C],3),h1:h(i._periods[C],1),h10:h(i._periods[C],10),h100:h(i._periods[C],100),h1000:h(i._periods[C],1e3),ml:l(S),mn:this._minDigits(i,i._periods[S],1),mnn:this._minDigits(i,i._periods[S],2),mnnn:this._minDigits(i,i._periods[S],3),m1:h(i._periods[S],1),m10:h(i._periods[S],10),m100:h(i._periods[S],100),m1000:h(i._periods[S],1e3),sl:l(k),sn:this._minDigits(i,i._periods[k],1),snn:this._minDigits(i,i._periods[k],2),snnn:this._minDigits(i,i._periods[k],3),s1:h(i._periods[k],1),s10:h(i._periods[k],10),s100:h(i._periods[k],100),s1000:h(i._periods[k],1e3)},c=e,u=b;u<=k;u++){var p="yowdhms".charAt(u),f=new RegExp("\\{"+p+"<\\}([\\s\\S]*)\\{"+p+">\\}","g");c=c.replace(f,!s&&t[u]||s&&a[u]?"$1":"")}return g.each(d,function(t,e){var i=new RegExp("\\{"+t+"\\}","g");c=c.replace(i,e)}),c},_minDigits:function(t,e,i){return(e=""+e).length>=i?this._translateDigits(t,e):(e="0000000000"+e,this._translateDigits(t,e.substr(e.length-i)))},_translateDigits:function(e,t){return(""+t).replace(/[0-9]/g,function(t){return e.options.digits[t]})},_determineShow:function(t){var e=t.options.format,i=[];return i[b]=e.match("y")?"?":e.match("Y")?"!":null,i[y]=e.match("o")?"?":e.match("O")?"!":null,i[w]=e.match("w")?"?":e.match("W")?"!":null,i[x]=e.match("d")?"?":e.match("D")?"!":null,i[C]=e.match("h")?"?":e.match("H")?"!":null,i[S]=e.match("m")?"?":e.match("M")?"!":null,i[k]=e.match("s")?"?":e.match("S")?"!":null,i}
24,_calculatePeriods:function(t,i,e,n){t._now=n,t._now.setMilliseconds(0);var s=new Date(t._now.getTime());t._since?n.getTime()<t._since.getTime()?t._now=n=s:n=t._since:(s.setTime(t._until.getTime()),n.getTime()>t._until.getTime()&&(t._now=n=s));var a=[0,0,0,0,0,0,0];if(i[b]||i[y]){var r=this._getDaysInMonth(n.getFullYear(),n.getMonth()),o=this._getDaysInMonth(s.getFullYear(),s.getMonth()),l=s.getDate()===n.getDate()||s.getDate()>=Math.min(r,o)&&n.getDate()>=Math.min(r,o),h=function(t){return 60*(60*t.getHours()+t.getMinutes())+t.getSeconds()},d=Math.max(0,12*(s.getFullYear()-n.getFullYear())+s.getMonth()-n.getMonth()+(s.getDate()<n.getDate()&&!l||l&&h(s)<h(n)?-1:0));a[b]=i[b]?Math.floor(d/12):0,a[y]=i[y]?d-12*a[b]:0;var c=(n=new Date(n.getTime())).getDate()===r,u=this._getDaysInMonth(n.getFullYear()+a[b],n.getMonth()+a[y]);n.getDate()>u&&n.setDate(u),n.setFullYear(n.getFullYear()+a[b]),n.setMonth(n.getMonth()+a[y]),c&&n.setDate(u)}var p=Math.floor((s.getTime()-n.getTime())/1e3),f=null,g=function(t,e){a[t]=i[t]?Math.floor(p/e):0,p-=a[t]*e};if(g(w,604800),g(x,86400),g(C,3600),g(S,60),g(k,1),0<p&&!t._since){var m=[1,12,4.3482,7,24,60,60],v=k,_=1;for(f=k;b<=f;f--)i[f]&&(a[v]>=_&&(a[v]=0,p=1),0<p&&(a[f]++,p=0,v=f,_=1)),_*=m[f]}if(e)for(f=b;f<=k;f++)e&&a[f]?e--:e||(a[f]=0);return a}})}(jQuery),function(o){"use strict";var l=function(t,e){return t-e},a=function(t){4===t.length&&(t=t.replace(/(\w)(\w)(\w)/gi,"$1$1$2$2$3$3"));var e=/(\w{2})(\w{2})(\w{2})/.exec(t);return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]},i=function(t){return"#"+jQuery.map(t,function(t){var e=t.toString(16);return e=1===e.length?"0"+e:e}).join("")},h=function(i,n){return jQuery.map(a(i.end),function(t,e){return(t-a(i.start)[e])/n})},d=function(t,n,s){var e=jQuery.map(a(t.start),function(t,e){var i=Math.round(t+n[e]*s);return 255<i?i=255:i<0&&(i=0),i});return i(e)};o.fn.tagcloud=function(t){var e,i,n=o.extend({},o.fn.tagcloud.defaults,t),s=this.map(function(){return o(this).attr("rel")}),a=(s=jQuery.makeArray(s).sort(l))[0],r=s.pop()-a;return 0===r&&(r=1),n.size&&(e=(n.size.end-n.size.start)/r),n.color&&(i=h(n.color,r)),this.each(function(){var t=o(this).attr("rel")-a;n.size&&o(this).css({"font-size":n.size.start+t*e+n.size.unit}),n.color&&o(this).css({color:d(n.color,i,t)})})},o.fn.tagcloud.defaults={size:{start:14,end:18,unit:"pt"}}}(jQuery),function(t){t.widget("sylightsUI.switchButton",{options:{checked:undefined,show_labels:!0,labels_placement:"both",on_label:"ON",off_label:"OFF",width:25,height:11,button_width:12,clear:!0,clear_after:null},_create:function(){this.options.checked===undefined&&(this.options.checked=this.element.prop("checked")),this._initLayout(),this._initEvents()},_initLayout:function(){this.element.hide(),this.off_label=t("<span>").addClass("switch-button-label").attr("title",this.options.off_title||this.options.off_label),this.on_label=t("<span>").addClass("switch-button-label").attr("title",this.options.on_title||this.options.on_label),this.button_bg=t("<div>").addClass("switch-button-background"),this.button=t("<div>").addClass("switch-button-button"),this.off_label.insertAfter(this.element),this.button_bg.insertAfter(this.off_label),this.on_label.insertAfter(this.button_bg),this.button_bg.append(this.button),this.options.clear&&(null===this.options.clear_after&&(this.options.clear_after=this.on_label),t("<div>").css({clear:"left"}).insertAfter(this.options.clear_after)),this._refresh(),this.options.checked=!this.options.checked,this._toggleSwitch()},_refresh:function(){switch(this.options.show_labels?(this.off_label.show(),this.on_label.show()):(this.off_label.hide(),this.on_label.hide()),this.options.labels_placement){case"both":this.button_bg.prev()===this.off_label&&this.button_bg.next()===this.on_label||(this.off_label.detach(),this.on_label.detach(),this.off_label.insertBefore(this.button_bg),this.on_label.insertAfter(this.button_bg),this.on_label.addClass(this.options.checked?"on":"off").removeClass(this.options.checked?"off":"on"),this.off_label.addClass(this.options.checked?"off":"on").removeClass(this.options.checked?"on":"off"));break;case"left":this.button_bg.prev()===this.on_label&&this.on_label.prev()===this.off_label||(this.off_label.detach(),this.on_label.detach(),this.off_label.insertBefore(this.button_bg),this.on_label.insertBefore(this.button_bg),this.on_label.addClass("on").removeClass("off"),this.off_label.addClass("off").removeClass("on"));break;case"right":this.button_bg.next()===this.off_label&&this.off_label.next()===this.on_label||(this.off_label.detach(),this.on_label.detach(),this.off_label.insertAfter(this.button_bg),this.on_label.insertAfter(this.off_label),this.on_label.addClass("on").removeClass("off"),this.off_label.addClass("off").removeClass("on"))}this.on_label.append(this.options.on_label),this.off_label.append(this.options.off_label),this.button_bg.width(this.options.width),this.button_bg.height(this.options.height),this.button.width(this.options.button_width),this.button.height(this.options.height)},_initEvents:function(){var e=this;this.button_bg.click(function(t){return t.preventDefault(),t.stopPropagation(),e._toggleSwitch(),!1}),this.button.click(function(t){return t.preventDefault(),t.stopPropagation(),e._toggleSwitch(),!1}),this.on_label.click(function(){return e.options.checked&&"both"===e.options.labels_placement||e._toggleSwitch(),!1}),this.off_label.click(function(){return(e.options.checked||"both"!==e.options.labels_placement)&&e._toggleSwitch(),!1})},_setOption:function(t,e){"checked"!==t?(this.options[t]=e,this._refresh()):this._setChecked(e)},_setChecked:function(t){t!==this.options.checked&&(this.options.checked=!t,this._toggleSwitch())},_toggleSwitch:function(){this.options.checked=!this.options.checked;var t="";this.options.checked?(this.element.prop("checked",!0),this.element.change(),t="+="+(this.options.width-this.options.button_width),"both"==this.options.labels_placement?(this.off_label.removeClass("on").addClass("off"),this.on_label.removeClass("off").addClass("on")):(this.off_label.hide(),this.on_label.show())):(this.element.prop("checked",!1),this.element.change(),t="-1px","both"==this.options.labels_placement?(this.off_label.removeClass("off").addClass("on"),this.on_label.removeClass("on").addClass("off")):(this.off_label.show(),this.on_label.hide()));this.button.animate({left:t},250,"easeInOutCubic")}})}(jQuery),function(t,e){"object"==typeof exports?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t)}(this,function(t){function e(t){this._targetElement=t,this._options={nextLabel:"Next &rarr;",prevLabel:"&larr; Back",skipLabel:"Skip",doneLabel:"Done",tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1}}function i(i){var t=[],n=this;if(this._options.steps)for(var e=0,s=this._options.steps.length;e<s;e++){var a=l(this._options.steps[e]);if(a.step=t.length+1,"string"==typeof a.element&&(a.element=document.querySelector(a.element)),"undefined"==typeof a.element||null==a.element)null==(r=document.querySelector(".introjsFloatingElement"))&&((r=document.createElement("div")).className="introjsFloatingElement",document.body.appendChild(r)),a.element=r,a.position="floating";null!=a.element&&t.push(a)}else{if((s=i.querySelectorAll("*[data-intro]")).length<1)return!1;for(e=0,a=s.length;e<a;e++){var r=s[e],o=parseInt(r.getAttribute("data-step"),10);0<o&&(t[o-1]={element:r,intro:r.getAttribute("data-intro"),step:parseInt(r.getAttribute("data-step"),10),tooltipClass:r.getAttribute("data-tooltipClass"),highlightClass:r.getAttribute("data-highlightClass"),position:r.getAttribute("data-position")||this._options.tooltipPosition})}for(e=o=0,a=s.length;e<a;e++)if(null==(r=s[e]).getAttribute("data-step")){for(;"undefined"!=typeof t[o];)o++;t[o]={element:r,intro:r.getAttribute("data-intro"),step:o+1,tooltipClass:r.getAttribute("data-tooltipClass"),highlightClass:r.getAttribute("data-highlightClass"),position:r.getAttribute("data-position")||this._options.tooltipPosition}}}for(e=[],s=0;s<t.length;s++)t[s]&&e.push(t[s]);return(t=e).sort(function(t,e){return t.step-e.step}),n._introItems=t,h.call(n,i)&&(x.call(n),i.querySelector(".introjs-skipbutton"),i.querySelector(".introjs-nextbutton"),n._onKeyDown=function(t){if(27===t.keyCode&&1==n._options.exitOnEsc)null!=n._introExitCallback&&n._introExitCallback.call(n),S.call(n,i);else if(37===t.keyCode)C.call(n);else if(39===t.keyCode)x.call(n);else if(13===t.keyCode){var e=t.target||t.srcElement;e&&0<e.className.indexOf("introjs-prevbutton")?C.call(n):e&&0<e.className.indexOf("introjs-skipbutton")?(n._introItems.length-1==n._currentStep&&"function"==typeof n._introCompleteCallback&&n._introCompleteCallback.call(n),null!=n._introExitCallback&&n._introExitCallback.call(n),S.call(n,i)):x.call(n),t.preventDefault?t.preventDefault():t.returnValue=!1}},n._onResize=function(){T.call(n,document.querySelector(".introjs-helperLayer")),T.call(n,document.querySelector(".introjs-tooltipReferenceLayer"))},window.addEventListener?(this._options.keyboardNavigation&&window.addEventListener("keydown",n._onKeyDown,!0),window.addEventListener("resize",n._onResize,!0)):document.attachEvent&&(this._options.keyboardNavigation&&document.attachEvent("onkeydown",n._onKeyDown),document.attachEvent("onresize",n._onResize))),!1}function l(t){if(null==t||"object"!=typeof t||"undefined"!=typeof t.nodeType)return t;var e,i={};for(e in t)i[e]="undefined"!=typeof jQuery&&t[e]instanceof jQuery?t[e]:l(t[e]);return i}function x(){if(this._direction="forward","undefined"==typeof this._currentStep?this._currentStep=0:++this._currentStep,this._introItems.length<=this._currentStep)"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),S.call(this,this._targetElement);else{var t=this._introItems[this._currentStep];"undefined"!=typeof this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,t.element),n.call(this,t)}}function C(){if(this._direction="backward",0===this._currentStep)return!1;var t=this._introItems[--this._currentStep];"undefined"!=typeof this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,t.element),n.call(this,t)}function S(t){var e=t.querySelector(".introjs-overlay");if(null!=e){e.style.opacity=0,setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},500);var i=t.querySelector(".introjs-helperLayer");if(i&&i.parentNode.removeChild(i),(i=t.querySelector(".introjs-tooltipReferenceLayer"))&&i.parentNode.removeChild(i),(t=t.querySelector(".introjs-disableInteraction"))&&t.parentNode.removeChild(t),(t=document.querySelector(".introjsFloatingElement"))&&t.parentNode.removeChild(t),(t=document.querySelector(".introjs-showElement"))&&(t.className=t.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,"")),(t=document.querySelectorAll(".introjs-fixParent"))&&0<t.length)for(i=t.length-1;0<=i;i--)t[i].className=t[i].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");window.removeEventListener?window.removeEventListener("keydown",this._onKeyDown,!0):document.detachEvent&&document.detachEvent("onkeydown",this._onKeyDown),this._currentStep=void 0}}function k(t,e,i,n){var s,a,r="";if(e.style.top=null,e.style.right=null,e.style.bottom=null,e.style.left=null,e.style.marginLeft=null,e.style.marginTop=null,i.style.display="inherit",void 0!==n&&null!=n&&(n.style.top=null,n.style.left=null),this._introItems[this._currentStep]){if(r="string"==typeof(r=this._introItems[this._currentStep]).tooltipClass?r.tooltipClass:this._options.tooltipClass,e.className=("introjs-tooltip "+r).replace(/^\s+|\s+$/g,""),("auto"==(a=this._introItems[this._currentStep].position)||"auto"==this._options.tooltipPosition)&&"floating"!=a){r=a,s=this._options.positionPrecedence.slice(),a=I();var o=M(e).height+10,l=M(e).width+20,h=M(t),d="floating";h.left+l>a.width||h.left+h.width/2-l<0?(p(s,"bottom"),p(s,"top")):(h.height+h.top+o>a.height&&p(s,"bottom"),h.top-o<0&&p(s,"top")),h.width+h.left+l>a.width&&p(s,"right"),h.left-l<0&&p(s,"left"),0<s.length&&(d=s[0]),r&&"auto"!=r&&-1<s.indexOf(r)&&(d=r),a=d}switch(r=M(t),t=M(e),s=I(),a){case"top":i.className="introjs-arrow bottom",c(r,15,t,s,e),e.style.bottom=r.height+20+"px";break;case"right":e.style.left=r.width+20+"px",r.top+t.height>s.height?(i.className="introjs-arrow left-bottom",e.style.top="-"+(t.height-r.height-20)+"px"):i.className="introjs-arrow left";break;
24case"left":1==this._options.showStepNumbers&&(e.style.top="15px"),r.top+t.height>s.height?(e.style.top="-"+(t.height-r.height-20)+"px",i.className="introjs-arrow right-bottom"):i.className="introjs-arrow right",e.style.right=r.width+20+"px";break;case"floating":i.style.display="none",e.style.left="50%",e.style.top="50%",e.style.marginLeft="-"+t.width/2+"px",e.style.marginTop="-"+t.height/2+"px",void 0!==n&&null!=n&&(n.style.left="-"+(t.width/2+18)+"px",n.style.top="-"+(t.height/2+18)+"px");break;case"bottom-right-aligned":i.className="introjs-arrow top-right",u(r,0,t,e),e.style.top=r.height+20+"px";break;case"bottom-middle-aligned":i.className="introjs-arrow top-middle",u(r,i=r.width/2-t.width/2,t,e)&&(e.style.right=null,c(r,i,t,s,e)),e.style.top=r.height+20+"px";break;default:i.className="introjs-arrow top",c(r,0,t,s,e),e.style.top=r.height+20+"px"}}}function c(t,e,i,n,s){return t.left+e+i.width>n.width?(s.style.left=n.width-i.width-t.left+"px",!1):(s.style.left=e+"px",!0)}function u(t,e,i,n){return t.left+t.width-e-i.width<0?(n.style.left=-t.left+"px",!1):(n.style.right=e+"px",!0)}function p(t,e){-1<t.indexOf(e)&&t.splice(t.indexOf(e),1)}function T(t){if(t&&this._introItems[this._currentStep]){var e=this._introItems[this._currentStep],i=M(e.element),n=10;"floating"==e.position&&(n=0),t.setAttribute("style","width: "+(i.width+n)+"px; height:"+(i.height+n)+"px; top:"+(i.top-5)+"px;left: "+(i.left-5)+"px;")}}function D(){var t=document.querySelector(".introjs-disableInteraction");null===t&&((t=document.createElement("div")).className="introjs-disableInteraction",this._targetElement.appendChild(t)),T.call(this,t)}function n(t){"undefined"!=typeof this._introChangeCallback&&this._introChangeCallback.call(this,t.element);var e=this,i=document.querySelector(".introjs-helperLayer"),n=document.querySelector(".introjs-tooltipReferenceLayer"),s="introjs-helperLayer";if(M(t.element),"string"==typeof t.highlightClass&&(s+=" "+t.highlightClass),"string"==typeof this._options.highlightClass&&(s+=" "+this._options.highlightClass),null!=i){var a=n.querySelector(".introjs-helperNumberLayer"),r=n.querySelector(".introjs-tooltiptext"),o=n.querySelector(".introjs-arrow"),l=n.querySelector(".introjs-tooltip"),h=n.querySelector(".introjs-skipbutton"),d=n.querySelector(".introjs-prevbutton"),c=n.querySelector(".introjs-nextbutton");if(i.className=s,l.style.opacity=0,l.style.display="none",null!=a){var u=this._introItems[0<=t.step-2?t.step-2:0];(null!=u&&"forward"==this._direction&&"floating"==u.position||"backward"==this._direction&&"floating"==t.position)&&(a.style.opacity=0)}if(T.call(e,i),T.call(e,n),(u=document.querySelectorAll(".introjs-fixParent"))&&0<u.length)for(s=u.length-1;0<=s;s--)u[s].className=u[s].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");(u=document.querySelector(".introjs-showElement")).className=u.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,""),e._lastShowElementTimer&&clearTimeout(e._lastShowElementTimer),e._lastShowElementTimer=setTimeout(function(){null!=a&&(a.innerHTML=t.step),r.innerHTML=t.intro,l.style.display="block",k.call(e,t.element,l,o,a),n.querySelector(".introjs-bullets li > a.active").className="",n.querySelector('.introjs-bullets li > a[data-stepnumber="'+t.step+'"]').className="active",n.querySelector(".introjs-progress .introjs-progressbar").setAttribute("style","width:"+F.call(e)+"%;"),l.style.opacity=1,a&&(a.style.opacity=1),-1===c.tabIndex?h.focus():c.focus()},350)}else{var p=document.createElement("div"),f=(d=document.createElement("div"),i=document.createElement("div"),document.createElement("div")),g=document.createElement("div"),m=document.createElement("div"),v=document.createElement("div"),_=document.createElement("div");p.className=s,d.className="introjs-tooltipReferenceLayer",T.call(e,p),T.call(e,d),this._targetElement.appendChild(p),this._targetElement.appendChild(d),i.className="introjs-arrow",g.className="introjs-tooltiptext",g.innerHTML=t.intro,!(m.className="introjs-bullets")===this._options.showBullets&&(m.style.display="none");p=document.createElement("ul"),s=0;for(var b=this._introItems.length;s<b;s++){var y=document.createElement("li"),w=document.createElement("a");
24w.onclick=function(){e.goToStep(this.getAttribute("data-stepnumber"))},s===t.step-1&&(w.className="active"),w.href="javascript:void(0);",w.innerHTML="&nbsp;",w.setAttribute("data-stepnumber",this._introItems[s].step),y.appendChild(w),p.appendChild(y)}m.appendChild(p),!(v.className="introjs-progress")===this._options.showProgress&&(v.style.display="none"),(s=document.createElement("div")).className="introjs-progressbar",s.setAttribute("style","width:"+F.call(this)+"%;"),v.appendChild(s),!(_.className="introjs-tooltipbuttons")===this._options.showButtons&&(_.style.display="none"),f.className="introjs-tooltip",f.appendChild(g),f.appendChild(m),f.appendChild(v),1==this._options.showStepNumbers&&((u=document.createElement("span")).className="introjs-helperNumberLayer",u.innerHTML=t.step,d.appendChild(u)),f.appendChild(i),d.appendChild(f),(c=document.createElement("a")).onclick=function(){e._introItems.length-1!=e._currentStep&&x.call(e)},c.href="javascript:void(0);",c.innerHTML=this._options.nextLabel,(d=document.createElement("a")).onclick=function(){0!=e._currentStep&&C.call(e)},d.href="javascript:void(0);",d.innerHTML=this._options.prevLabel,(h=document.createElement("a")).className="introjs-button introjs-skipbutton",h.href="javascript:void(0);",h.innerHTML=this._options.skipLabel,h.onclick=function(){e._introItems.length-1==e._currentStep&&"function"==typeof e._introCompleteCallback&&e._introCompleteCallback.call(e),e._introItems.length-1!=e._currentStep&&"function"==typeof e._introExitCallback&&e._introExitCallback.call(e),S.call(e,e._targetElement)},_.appendChild(h),1<this._introItems.length&&(_.appendChild(d),_.appendChild(c)),f.appendChild(_),k.call(e,t.element,f,i,u)}for(!0===this._options.disableInteraction&&D.call(e),d.removeAttribute("tabIndex"),c.removeAttribute("tabIndex"),0==this._currentStep&&1<this._introItems.length?(d.className="introjs-button introjs-prevbutton introjs-disabled",d.tabIndex="-1",c.className="introjs-button introjs-nextbutton",h.innerHTML=this._options.skipLabel):this._introItems.length-1==this._currentStep||1==this._introItems.length?(h.innerHTML=this._options.doneLabel,d.className="introjs-button introjs-prevbutton",c.className="introjs-button introjs-nextbutton introjs-disabled",c.tabIndex="-1"):(d.className="introjs-button introjs-prevbutton",c.className="introjs-button introjs-nextbutton",h.innerHTML=this._options.skipLabel),c.focus(),t.element.className+=" introjs-showElement","absolute"!==(u=A(t.element,"position"))&&"relative"!==u&&(t.element.className+=" introjs-relativePosition"),u=t.element.parentNode;null!=u&&"body"!==u.tagName.toLowerCase();)i=A(u,"z-index"),f=parseFloat(A(u,"opacity")),_=A(u,"transform")||A(u,"-webkit-transform")||A(u,"-moz-transform")||A(u,"-ms-transform")||A(u,"-o-transform"),(/[0-9]+/.test(i)||f<1||"none"!==_&&void 0!==_)&&(u.className+=" introjs-fixParent"),u=u.parentNode;E(t.element)||!0!==this._options.scrollToElement||(f=t.element.getBoundingClientRect(),u=I().height,i=f.bottom-(f.bottom-f.top),f=f.bottom-u,i<0||t.element.clientHeight>u?window.scrollBy(0,i-30):window.scrollBy(0,f+100)),"undefined"!=typeof this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,t.element)}function A(t,e){var i="";return t.currentStyle?i=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(i=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),i&&i.toLowerCase?i.toLowerCase():i}function I(){if(null!=window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function E(t){return 0<=(t=t.getBoundingClientRect()).top&&0<=t.left&&t.bottom+80<=window.innerHeight&&t.right<=window.innerWidth}function h(t){var e=document.createElement("div"),i="",n=this;if(e.className="introjs-overlay","body"===t.tagName.toLowerCase())i+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",e.setAttribute("style",i);else{var s=M(t);s&&(i+="width: "+s.width+"px; height:"+s.height+"px; top:"+s.top+"px;left: "+s.left+"px;",e.setAttribute("style",i))}return t.appendChild(e),e.onclick=function(){1==n._options.exitOnOverlayClick&&(null!=n._introExitCallback&&n._introExitCallback.call(n),S.call(n,t))},setTimeout(function(){i+="opacity: "+n._options.overlayOpacity.toString()+";",e.setAttribute("style",i)},10),!0}function M(t){var e={};e.width=t.offsetWidth,e.height=t.offsetHeight;for(var i=0,n=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)i+=t.offsetLeft,n+=t.offsetTop,t=t.offsetParent;return e.top=n,e.left=i,e}function F(){return parseInt(this._currentStep+1,10)/this._introItems.length*100}var s=function(t){if("object"==typeof t)return new e(t);if("string"!=typeof t)return new e(document.body);if(t=document.querySelector(t))return new e(t);throw Error("There is no element with given selector.")};return s.version="1.1.1",s.fn=e.prototype={clone:function(){return new e(this)},setOption:function(t,e){return this._options[t]=e,this},setOptions:function(t){var e,i=this._options,n={};for(e in i)n[e]=i[e];for(e in t)n[e]=t[e];return this._options=n,this},start:function(){return i.call(this,this._targetElement),this},goToStep:function(t){return this._currentStep=t-2,"undefined"!=typeof this._introItems&&x.call(this),this},nextStep:function(){return x.call(this),this},previousStep:function(){return C.call(this),this},exit:function(){return S.call(this,this._targetElement),this},refresh:function(){return T.call(this,document.querySelector(".introjs-helperLayer")),T.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),this},onbeforechange:function(t){if("function"!=typeof t)throw Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=t,this},onchange:function(t){if("function"!=typeof t)throw Error("Provided callback for onchange was not a function.");return this._introChangeCallback=t,this},onafterchange:function(t){if("function"!=typeof t)throw Error(
25"Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=t,this},oncomplete:function(t){if("function"!=typeof t)throw Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=t,this},onexit:function(t){if("function"!=typeof t)throw Error("Provided callback for onexit was not a function.");return this._introExitCallback=t,this}},t.introJs=s}),function(){var t=this,e=t._,r={},s=Array.prototype,i=Object.prototype,n=Function.prototype,c=Date.now||function(){return(new Date).getTime()},a=s.push,o=s.slice,l=s.concat,u=i.toString,h=i.hasOwnProperty,d=s.forEach,p=s.map,f=s.reduce,g=s.reduceRight,m=s.filter,v=s.every,_=s.some,b=s.indexOf,
25y=s.lastIndexOf,w=Array.isArray,x=Object.keys,C=n.bind,S=function(t){return t instanceof S?t:this instanceof S?void(this._wrapped=t):new S(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=S),exports._=S):t._=S,S.VERSION="1.5.2";var k=S.each=S.forEach=function(t,e,i){if(null!=t)if(d&&t.forEach===d)t.forEach(e,i);else if(t.length===+t.length){for(var n=0,s=t.length;n<s;n++)if(e.call(i,t[n],n,t)===r)return}else{var a=S.keys(t);for(n=0,s=a.length;n<s;n++)if(e.call(i,t[a[n]],a[n],t)===r)return}};S.map=S.collect=function(t,n,s){var a=[];return null==t?a:p&&t.map===p?t.map(n,s):(k(t,function(t,e,i){a.push(n.call(s,t,e,i))}),a)};var T="Reduce of empty array with no initial value";S.reduce=S.foldl=S.inject=function(t,n,s,a){var r=2<arguments.length;if(null==t&&(t=[]),f&&t.reduce===f)return a&&(n=S.bind(n,a)),r?t.reduce(n,s):t.reduce(n);if(k(t,function(t,e,i){r?s=n.call(a,s,t,e,i):(s=t,r=!0)}),!r)throw new TypeError(T);return s},S.reduceRight=S.foldr=function(n,s,a,r){var o=2<arguments.length;if(null==n&&(n=[]),g&&n.reduceRight===g)return r&&(s=S.bind(s,r)),o?n.reduceRight(s,a):n.reduceRight(s);var l=n.length;if(l!==+l){var h=S.keys(n);l=h.length}if(k(n,function(t,e,i){e=h?h[--l]:--l,o?a=s.call(r,a,n[e],e,i):(a=n[e],o=!0)}),!o)throw new TypeError(T);return a},S.find=S.detect=function(t,n,s){var a;return D(t,function(t,e,i){if(n.call(s,t,e,i))return a=t,!0}),a},S.filter=S.select=function(t,n,s){var a=[];return null==t?a:m&&t.filter===m?t.filter(n,s):(k(t,function(t,e,i){n.call(s,t,e,i)&&a.push(t)}),a)},S.reject=function(t,n,s){return S.filter(t,function(t,e,i){return!n.call(s,t,e,i)},s)},S.every=S.all=function(t,n,s){n||(n=S.identity);var a=!0;return null==t?a:v&&t.every===v?t.every(n,s):(k(t,function(t,e,i){if(!(a=a&&n.call(s,t,e,i)))return r}),!!a)};var D=S.some=S.any=function(t,n,s){n||(n=S.identity);var a=!1;return null==t?a:_&&t.some===_?t.some(n,s):(k(t,function(t,e,i){if(a||(a=n.call(s,t,e,i)))return r}),!!a)};S.contains=S.include=function(t,e){return null!=t&&(b&&t.indexOf===b?-1!=t.indexOf(e):D(t,function(t){return t===e}))},S.invoke=function(t,e){var i=o.call(arguments,2),n=S.isFunction(e);return S.map(t,function(t){return(n?e:t[e]).apply(t,i)})},S.pluck=function(t,e){return S.map(t,function(t){return t[e]})},S.where=function(t,i,e){return S.isEmpty(i)?e?void 0:[]:S[e?"find":"filter"](t,function(t){for(var e in i)if(i[e]!==t[e])return!1;return!0})},S.findWhere=function(t,e){return S.where(t,e,!0)},S.max=function(t,s,a){if(!s&&S.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);if(!s&&S.isEmpty(t))return-Infinity;var r={computed:-Infinity,value:-Infinity};return k(t,function(t,e,i){var n=s?s.call(a,t,e,i):t;n>r.computed&&(r={value:t,computed:n})}),r.value},S.min=function(t,s,a){if(!s&&S.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);if(!s&&S.isEmpty(t))return Infinity;var r={computed:Infinity,value:Infinity};return k(t,function(t,e,i){var n=s?s.call(a,t,e,i):t;n<r.computed&&(r={value:t,computed:n})}),r.value},S.shuffle=function(t){var e,i=0,n=[];return k(t,function(t){e=S.random(i++),n[i-1]=n[e],n[e]=t}),n},S.sample=function(t,e,i){return null==e||i?(t.length!==+t.length&&(t=S.values(t)),t[S.random(t.length-1)]):S.shuffle(t).slice(0,Math.max(0,e))};var A=function(e){return S.isFunction(e)?e:function(t){return t[e]}};S.sortBy=function(t,e,n){var s=null==e?S.identity:A(e);return S.pluck(S.map(t,function(t,e,i){return{value:t,index:e,criteria:s.call(n,t,e,i)}}).sort(function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(n<i||void 0===i)return 1;if(i<n||void 0===n)return-1}return t.index-e.index}),"value")};var I=function(o){return function(n,t,s){var a={},r=null==t?S.identity:A(t);return k(n,function(t,e){var i=r.call(s,t,e,n);o(a,i,t)}),a}};S.groupBy=I(function(t,e,i){(S.has(t,e)?t[e]:t[e]=[]).push(i)}),S.indexBy=I(function(t,e,i){t[e]=i}),S.countBy=I(function(t,e){S.has(t,e)?t[e]++:t[e]=1}),S.sortedIndex=function(t,e,i,n){for(var s=(i=null==i?S.identity:A(i)).call(n,e),a=0,r=t.length;a<r;){var o=a+r>>>1;i.call(n,t[o])<s?a=o+1:r=o}return a},S.toArray=function(t){return t?S.isArray(t)?o.call(t):t.length===+t.length?S.map(t,S.identity):S.values(t):[]},S.size=function(t){return null==t?0:t.length===+t.length?t.length:S.keys(t).length}
25,S.first=S.head=S.take=function(t,e,i){if(null!=t)return null==e||i?t[0]:o.call(t,0,e)},S.initial=function(t,e,i){return o.call(t,0,t.length-(null==e||i?1:e))},S.last=function(t,e,i){if(null!=t)return null==e||i?t[t.length-1]:o.call(t,Math.max(t.length-e,0))},S.rest=S.tail=S.drop=function(t,e,i){return o.call(t,null==e||i?1:e)},S.compact=function(t){return S.filter(t,S.identity)};var E=function(t,e,i){return e&&S.every(t,S.isArray)?l.apply(i,t):(k(t,function(t){S.isArray(t)||S.isArguments(t)?e?a.apply(i,t):E(t,e,i):i.push(t)}),i)};S.flatten=function(t,e){return E(t,e,[])},S.without=function(t){return S.difference(t,o.call(arguments,1))},S.uniq=S.unique=function(i,n,t,e){S.isFunction(n)&&(e=t,t=n,n=!1);var s=t?S.map(i,t,e):i,a=[],r=[];return k(s,function(t,e){(n?e&&r[r.length-1]===t:S.contains(r,t))||(r.push(t),a.push(i[e]))}),a},S.union=function(){return S.uniq(S.flatten(arguments,!0))},S.intersection=function(t){var i=o.call(arguments,1);return S.filter(S.uniq(t),function(e){return S.every(i,function(t){return 0<=S.indexOf(t,e)})})},S.difference=function(t){var e=l.apply(s,o.call(arguments,1));return S.filter(t,function(t){return!S.contains(e,t)})},S.zip=function(){for(var t=S.max(S.pluck(arguments,"length").concat(0)),e=new Array(t),i=0;i<t;i++)e[i]=S.pluck(arguments,""+i);return e},S.object=function(t,e){if(null==t)return{};for(var i={},n=0,s=t.length;n<s;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i},S.indexOf=function(t,e,i){if(null==t)return-1;var n=0,s=t.length;if(i){if("number"!=typeof i)return t[n=S.sortedIndex(t,e)]===e?n:-1;n=i<0?Math.max(0,s+i):i}if(b&&t.indexOf===b)return t.indexOf(e,i);for(;n<s;n++)if(t[n]===e)return n;return-1},S.lastIndexOf=function(t,e,i){if(null==t)return-1;var n=null!=i;if(y&&t.lastIndexOf===y)return n?t.lastIndexOf(e,i):t.lastIndexOf(e);for(var s=n?i:t.length;s--;)if(t[s]===e)return s;return-1},S.range=function(t,e,i){arguments.length<=1&&(e=t||0,t=0),i=i||1;for(var n=Math.max(Math.ceil((e-t)/i),0),s=0,a=new Array(n);s<n;)a[s++]=t,t+=i;return a};var M=function(){};S.bind=function(i,n){var s,a;if(C&&i.bind===C)return C.apply(i,o.call(arguments,1));if(!S.isFunction(i))throw new TypeError;return s=o.call(arguments,2),a=function(){if(!(this instanceof a))return i.apply(n,s.concat(o.call(arguments)));M.prototype=i.prototype;var t=new M;M.prototype=null;var e=i.apply(t,s.concat(o.call(arguments)));return Object(e)===e?e:t}},S.partial=function(t){var e=o.call(arguments,1);return function(){return t.apply(this,e.concat(o.call(arguments)))}},S.bindAll=function(e){var t=o.call(arguments,1);if(0===t.length)throw new Error("bindAll must be passed function names");return k(t,function(t){e[t]=S.bind(e[t],e)}),e},S.memoize=function(e,i){var n={};return i||(i=S.identity),function(){var t=i.apply(this,arguments);return S.has(n,t)?n[t]:n[t]=e.apply(this,arguments)}},S.delay=function(t,e){var i=o.call(arguments,2);return setTimeout(function(){return t.apply(null,i)},e)},S.defer=function(t){return S.delay.apply(S,[t,1].concat(o.call(arguments,1)))},S.throttle=function(i,n,s){var a,r,o,l=null,h=0;s||(s={});var d=function(){h=!1===s.leading?0:c(),l=null,o=i.apply(a,r)};return function(){var t=c();h||!1!==s.leading||(h=t);var e=n-(t-h);return a=this,r=arguments,e<=0?(clearTimeout(l),l=null,h=t,o=i.apply(a,r)):l||!1===s.trailing||(l=setTimeout(d,e)),o}},S.debounce=function(i,n,s){var a,r,o,l,h;return function(){o=this,r=arguments,l=c();var e=function(){var t=c()-l;t<n?a=setTimeout(e,n-t):(a=null,s||(h=i.apply(o,r)))},t=s&&!a;return a||(a=setTimeout(e,n)),t&&(h=i.apply(o,r)),h}},S.once=function(t){var e,i=!1;return function(){return i||(i=!0,e=t.apply(this,arguments),t=null),e}},S.wrap=function(e,i){return function(){var t=[e];return a.apply(t,arguments),i.apply(this,t)}},S.compose=function(){var i=arguments;return function(){for(var t=arguments,e=i.length-1;0<=e;e--)t=[i[e].apply(this,t)];return t[0]}},S.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},S.keys=x||function(t){if(t!==Object(t))throw new TypeError("Invalid object");var e=[];for(var i in t)S.has(t,i)&&e.push(i);return e},S.values=function(t){for(var e=S.keys(t),i=e.length,n=new Array(i),s=0;s<i;s++)n[s]=t[e[s]];return n},S.pairs=function(t){for(var e=S.keys(t),i=e.length,n=new Array(i),s=0;s<i;s++)n[s]=[e[s],t[e[s]]];return n},S.invert=function(t){for(var e={},i=S.keys(t),n=0,s=i.length;n<s;n++)e[t[i[n]]]=i[n];return e},S.functions=S.methods=function(t){var e=[];for(var i in t)S.isFunction(t[i])&&e.push(i);return e.sort()}
25,S.extend=function(i){return k(o.call(arguments,1),function(t){if(t)for(var e in t)i[e]=t[e]}),i},S.pick=function(e){var i={},t=l.apply(s,o.call(arguments,1));return k(t,function(t){t in e&&(i[t]=e[t])}),i},S.omit=function(t){var e={},i=l.apply(s,o.call(arguments,1));for(var n in t)S.contains(i,n)||(e[n]=t[n]);return e},S.defaults=function(i){return k(o.call(arguments,1),function(t){if(t)for(var e in t)void 0===i[e]&&(i[e]=t[e])}),i},S.clone=function(t){return S.isObject(t)?S.isArray(t)?t.slice():S.extend({},t):t},S.tap=function(t,e){return e(t),t};var F=function(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof S&&(t=t._wrapped),e instanceof S&&(e=e._wrapped);var s=u.call(t);if(s!=u.call(e))return!1;switch(s){case"[object String]":return t==String(e);case"[object Number]":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object RegExp]":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if("object"!=typeof t||"object"!=typeof e)return!1;for(var a=i.length;a--;)if(i[a]==t)return n[a]==e;var r=t.constructor,o=e.constructor;if(r!==o&&!(S.isFunction(r)&&r instanceof r&&S.isFunction(o)&&o instanceof o))return!1;i.push(t),n.push(e);var l=0,h=!0;if("[object Array]"==s){if(h=(l=t.length)==e.length)for(;l--&&(h=F(t[l],e[l],i,n)););}else{for(var d in t)if(S.has(t,d)&&(l++,!(h=S.has(e,d)&&F(t[d],e[d],i,n))))break;if(h){for(d in e)if(S.has(e,d)&&!l--)break;h=!l}}return i.pop(),n.pop(),h};S.isEqual=function(t,e){return F(t,e,[],[])},S.isEmpty=function(t){if(null==t)return!0;if(S.isArray(t)||S.isString(t))return 0===t.length;for(var e in t)if(S.has(t,e))return!1;return!0},S.isElement=function(t){return!(!t||1!==t.nodeType)},S.isArray=w||function(t){return"[object Array]"==u.call(t)},S.isObject=function(t){return t===Object(t)},k(["Arguments","Function","String","Number","Date","RegExp"],function(e){S["is"+e]=function(t){return u.call(t)=="[object "+e+"]"}}),S.isArguments(arguments)||(S.isArguments=function(t){return!(!t||!S.has(t,"callee"))}),"function"!=typeof/./&&(S.isFunction=function(t){return"function"==typeof t}),S.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},S.isNaN=function(t){return S.isNumber(t)&&t!=+t},S.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"==u.call(t)},S.isNull=function(t){return null===t},S.isUndefined=function(t){return void 0===t},S.has=function(t,e){return h.call(t,e)},S.noConflict=function(){return t._=e,this},S.identity=function(t){return t},S.times=function(t,e,i){for(var n=Array(Math.max(0,t)),s=0;s<t;s++)n[s]=e.call(i,s);return n},S.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))};var j={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};j.unescape=S.invert(j.escape);var P={escape:new RegExp("["+S.keys(j.escape).join("")+"]","g"),unescape:new RegExp("("+S.keys(j.unescape).join("|")+")","g")};S.each(["escape","unescape"],function(e){S[e]=function(t){return null==t?"":(""+t).replace(P[e],function(t){return j[e][t]})}}),S.result=function(t,e){if(null!=t){var i=t[e];return S.isFunction(i)?i.call(t):i}},S.mixin=function(i){k(S.functions(i),function(t){var e=S[t]=i[t];S.prototype[t]=function(){var t=[this._wrapped];return a.apply(t,arguments),q.call(this,e.apply(S,t))}})};var R=0;S.uniqueId=function(t){var e=++R+"";return t?t+e:e},S.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var H=/(.)^/,L={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},N=/\\|'|\r|\n|\t|\u2028|\u2029/g;S.template=function(a,t,e){var i;e=S.defaults({},e,S.templateSettings);var n=new RegExp([(e.escape||H).source,(e.interpolate||H).source,(e.evaluate||H).source].join("|")+"|$","g"),r=0,o="__p+='";a.replace(n,function(t,e,i,n,s){return o+=a.slice(r,s).replace(N,function(t){return"\\"+L[t]}),e&&(o+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'"),i&&(o+="'+\n((__t=("+i+"))==null?'':__t)+\n'"),n&&(o+="';\n"+n+"\n__p+='"),r=s+t.length,t}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{i=new Function(e.variable||"obj","_",o)}catch(l){throw l.source=o,l}if(t)return i(t,S);var s=function(t){return i.call(this,t,S)};return s.source="function("+(e.variable||"obj")+"){\n"+o+"}",s},S.chain=function(t){return S(t).chain()};var q=function(t){return this._chain?S(t).chain():t};S.mixin(S),k(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var i=s[e];S.prototype[e]=function(){var t=this._wrapped;return i.apply(t,arguments),"shift"!=e&&"splice"!=e||0!==t.length||delete t[0],q.call(this,t)}}),k(["concat","join","slice"],function(t){var e=s[t];S.prototype[t]=function(){return q.call(this,e.apply(this._wrapped,arguments))}}),S.extend(S.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this),function(V,B){function t(e){return function(i,t){var n={};return t?B.each(e,function(t,e){n[t]=i[e]}):B.each(e,function(t,e){n[e]=i[t]}),n}}var W={V:86,Z:90,BACKSPACE:8,TAB:9,RETURN:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,COMMA:188,SPACE:32,HOME:36,END:35,DELETE:46},U={onDataRequest:V.noop,realValOnSubmit:!0,triggers:{"@":{}},templates:{wrapper:B.template('<div class="textntags-wrapper"></div>'),beautifier:B.template('<div class="textntags-beautifier"><div></div></div>'),tagHighlight:B.template('<strong class="<%= class_name %>"><span>$<%= idx %></span></strong>'),tagList:B.template('<div class="textntags-tag-list"></div>'),tagsListItem:B.template("<li><%= title %></li>"),tagsListItemImage:B.template('<img src="<%= img %>" />'),tagsListItemIcon:B.template('<div class="icon <%= no_img_class %>"></div>')}},G={minChars:2,uniqueTags:!0,showImageOrIcon:!0,keys_map:{id:"id",t
25itle:"name",description:"",img:"avatar",no_img_class:"icon",type:"type"},syntax:B.template("@[[<%= id %>:<%= type %>:<%= title %>]]"),parser:/(@)\[\[(\d+):([\w\s\.\-]+):([\w\s@\.,-\/#!$%\^&\*;:{}=\-_`~()]+)\]\]/gi,parserGroups:{id:2,type:3,title:4},classes:{tagsDropDown:"",tagActiveDropDown:"active",tagHighlight:""}},Y=B.memoize(t),Q={htmlEncode:function(t){return B.escape(t)},highlightTerm:function(t,e){return e||e.length?t.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+e+")(?![^<>]*>)(?![^&;]+;)","gi"),"<b>$1</b>"):t},setCaratPosition:function(t,e){if(t.createTextRange){var i=t.createTextRange();i.move("character",e),i.select()}else t.selectionStart?(t.focus(),t.setSelectionRange(e,e)):t.focus()}},s=function(t){function e(t){return null==R&&(delete(R=V.extend(!0,{},U,t)).triggers[""],B.each(R.triggers,function(t,e){R.triggers[e]=V.extend(!0,{},G,t),R.triggers[e].finder=new RegExp(e+"\\w+(\\s+\\w+)?\\s?$","gi")}),T=R.templates,!0)}function i(){A=V(t).bind({click:u,keydown:p,keypress:f,keyup:g,input:m,blur:v}),D=A.wrapAll(V(T.wrapper())).parent(),R.realValOnSubmit&&A.closest("form").bind("submit.textntags",function(){D.css("visibility","hidden"),A.val(o())}).bind("ajax:complete",function(){V(".textntags-wrapper",this).css("visibility","visible")})}function n(){(E=V(T.tagList())).appendTo(D)}function s(){(I=V(T.beautifier())).prependTo(D)}function a(){var t=l(d());if(F=t.tagsCollection,A.val(t.plain_text),c(),0<F.length){var e=B.uniq(B.map(F,function(t){return t[3]}));A.trigger("tagsAdded.textntags",[e])}}function d(){return A.val()}function r(t){var i=t||o();return i=i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),B.each(R.triggers,function(t){var e=T.tagHighlight({idx:t.parserGroups.title,class_name:t.classes.tagHighlight});i=i.replace(t.parser,e)}),i=(i=i.replace(/\n/g,"<br />&shy;")).replace(/ {2}/g," &nbsp;")+"&shy;"}function o(){var a=d(),r=0,o=R.triggers;return B.map(F,function(t){var e=t[0]-r,i=0<e?a.substr(r,e):"",n=Y(o[t[2]].keys_map),s=o[t[2]].syntax(n(t[3],!1));return r=t[0]+t[1],i+s}).join("")+a.substr(r)}function l(d){if(0==B.isString(d))return null;var e=""+d,c=[],t=R.triggers;return B.each(t,function(i,t){for(var n,s,e,a=d.split(i.parser),r=0,o=0,l=a.length,h=B.max(i.parserGroups);r<l;)a[r]==t?(n={},B.each(i.parserGroups,function(t,e){n[i.keys_map[e]]=a[r+t-1],"title"==e&&(s=a[r+t-1].length)}),c.push([o,s,t,n]),e=s,r+=h):(e=a[r].length,r+=1),o+=e}),c=B.sortBy(c,function(t){return t[0]}),B.each(t,function(t){e=e.replace(t.parser,"$"+t.parserGroups.title)}),{plain_text:e,tagged_text:d,tagsCollection:c}}function c(){I.find("div").html(r()),A.css("height",I.outerHeight()+"px")}function h(t){t=t||0;var e,n,i=V.browser.webkit?0:-1,s=A[0].selectionStart+i,a=A.val().substr(0,s+t),r=null;a&&a.length&&(e=B.find(R.triggers,function(t,e){var i=a.match(t.finder);return!!i&&(r=e,n=i[0].substr(e.length),!0)}),!r||e&&n.length<e.minChars?_():(P=n,j=r,B.defer(B.bind(k,this,P,r))))}function u(){h(0)}function p(t){var e=W,i=A[0].selectionStart,n=A[0].selectionEnd,s=A.val();switch(H=n-i,L=s.length,N=t.keyCode,t.keyCode){case e.UP:case e.DOWN:if(!E.is(":visible"))return!0;return C(t.keyCode==e.DOWN?M&&M.length?M.next():E.find("li").first():M&&M.length?M.prev():E.find("li").last(),R.triggers[j].classes.tagActiveDropDown),!1;case e.RETURN:case e.TAB:return!M||!M.length||(q=!0,M.click(),!1);case e.BACKSPACE:case e.DELETE:return t.keyCode==e.BACKSPACE&&i==n&&0<i&&(i-=1),i<n&&(y(i,n),w(i,i-n)),!0;case e.LEFT:case e.RIGHT:case e.HOME:case e.END:B.defer(function(){h.call(this,0)});break;case e.V:t.ctrlKey&&($=!0,z=n-(O=i),y(i,n));break;case e.Z:if(t.ctrlKey)return!1}return!0}function f(t){t.keyCode==W.RETURN&&c(A.val()),q&&(t.keyCode!=W.RETURN&&t.keyCode!=W.TAB||t.preventDefault(),q=!1)}function g(){if($){if($=!1,0<H)return;A[0].selectionStart;var t=A[0].selectionEnd;w(O,t-O-z),c()}}function m(){var t=V.browser.webkit?0:-1;if(N!=W.BACKSPACE&&N!=W.DELETE)if(0<H){var e=(n=A[0].selectionStart+t)+H,i=A.val().length-L;y(n,e),w(e,i)}else if(!$){var n=A[0].selectionStart+t;e=A[0].selectionEnd+t;N==W.RETURN?(w(n-1,1),y(n,n)):(w(n,1),y(n,n+1))}c(),h(1)}function v(){B.delay(_,300)}function _(){M=null,E.hide().empty()}function b(){return x(V(this).data("tag")),!1}function y(s,a){var r=[];
25F=B.filter(F,function(t){var e=t[0],i=e+t[1],n=s<=e&&e<a||s<i&&i<=a||e<s&&a<i;return n&&r.push(t[3]),!n}),0<r.length&&A.trigger("tagsRemoved.textntags",[r])}function w(e,i){F=B.map(F,function(t){return t[0]>=e&&(t[0]+=i),t})}function x(t){var e=R.triggers[j],i=Y(e.keys_map)(t,!1),n=d(),s=A[0].selectionStart,a=s-j.length-P.length,r=a+i.title.length,o=n.substr(0,a),l=n.substr(s),h=o+i.title+l;w(s,r-s),t[e.keys_map.id]=""+t[e.keys_map.id],F.push([a,i.title.length,j,t]),F=B.sortBy(F,function(t){return t[0]}),P=j="",_(),A.val(h),c(),A.focus(),Q.setCaratPosition(A[0],r),A.trigger("tagsAdded.textntags",[[t]])}function C(t,e){t&&t.length?(t.addClass(e),t.siblings().removeClass(e),M=t):(M.removeClass(e),M=null)}function S(s,t,e){var a=R.triggers[t];if(a.uniqueTags){var i=a.keys_map.id,n=B.map(F,function(t){return t[3][i]});e=B.reject(e,function(t){return B.include(n,""+t[i])})}if(e.length){var r=V("<ul />").addClass(a.classes.tagsDropDown).appendTo(E),o=a.showImageOrIcon?T.tagsListItemImage:T.tagsListItemIcon,l=Y(a.keys_map);B.each(e,function(t,e){var i,n=l(t,!1);n.title=Q.highlightTerm(Q.htmlEncode(n.title),s),i=(i=V(T.tagsListItem(n)).data("tag",t)).prepend(o(n)).appendTo(r),0===e&&C(i,a.classes.tagActiveDropDown),i.click(b)}),E.show()}}function k(e,i){_(),R.onDataRequest.call(this,"search",e,i,function(t){S(e,i,t)})}var T,D,A,I,E,M,F,j,P,R=null,H=0,L=0,N=0,q=!1,$=!1,O=0,z=0;return{init:function(t){e(t)&&(i(),n(),s(),a())},val:function(t){if(B.isString(t)){var e=B.uniq(B.map(F,function(t){return t[3]}));return A.trigger("tagsRemoved.textntags",[e]),A.val(t),void a()}if(B.isFunction(t)){var i=F.length?o():d();t.call(this,i)}},reset:function(){var t=B.uniq(B.map(F,function(t){return t[3]}));A.trigger("tagsRemoved.textntags",[t]),A.val(""),F=[],c()},getTags:function(t){if(B.isFunction(t)){var e=B.map(F,function(t){return t[3]});t.call(this,B.uniq(e))}},getTagsMap:function(t){B.isFunction(t)&&t.call(this,F)},getTagsMapFacebook:function(t){if(B.isFunction(t)){var i={},n=R.triggers;B.each(F,function(t){var e=Y(n[t[2]].keys_map)(t[3],!1);i[t[0]]=[{id:e.id,name:e.title,type:e.type,offset:t[0],length:t[1]}]}),t.call(this,i)}},parseTaggedText:function(t,e){B.isFunction(e)&&e.call(this,l(t))}}};V.fn.textntags=function(i){var n=arguments;return this.each(function(){var t=i,e=V.data(this,"textntags")||V.data(this,"textntags",new s(this));return B.isFunction(e[t])?e[t].apply(this,Array.prototype.slice.call(n,1)):"object"!=typeof t&&t?void V.error("Method "+t+" does not exist"):e.init.call(this,t)})}}(jQuery,_),void 0===PAYPAL||!PAYPAL)var PAYPAL={};if(PAYPAL.apps=PAYPAL.apps||{},function(g){"use strict";function l(){var t,e,i,n;g.getElementById("paypal-button")||(t="",t+=(i=".paypal-button")+" { white-space: nowrap; }",t+=(n=i+" button")+' { white-space: nowrap; overflow: hidden; border-radius: 13px; font-family: "Arial", bold, italic; font-weight: bold; font-style: italic; border: 1px solid #ffa823; color: #0E3168; background: #ffa823; position: relative; text-shadow: 0 1px 0 rgba(255,255,255,.5); cursor: pointer; z-index: 0; }',t+=n+':before { content: " "; position: absolute; width: 100%; height: 100%; border-radius: 11px; top: 0; left: 0; background: #ffa823; background: -webkit-linear-gradient(top, #FFAA00 0%,#FFAA00 80%,#FFF8FC 100%); background: -moz-linear-gradient(top, #FFAA00 0%,#FFAA00 80%,#FFF8FC 100%); background: -ms-linear-gradient(top, #FFAA00 0%,#FFAA00 80%,#FFF8FC 100%); background: linear-gradient(top, #FFAA00 0%,#FFAA00 80%,#FFF8FC 100%); z-index: -2; }',t+=n+':after { content: " "; position: absolute; width: 98%; height: 60%; border-radius: 40px 40px 38px 38px; top: 0; left: 0; background: -webkit-linear-gradient(top, #fefefe 0%, #fed994 100%); background: -moz-linear-gradient(top, #fefefe 0%, #fed994 100%); background: -ms-linear-gradient(top, #fefefe 0%, #fed994 100%); background: linear-gradient(top, #fefefe 0%, #fed994 100%); z-index: -1; -webkit-transform: translateX(1%);-moz-transform: translateX(1%); -ms-transform: translateX(1%); transform: translateX(1%); }',t+=n+".small { padding: 3px 15px; font-size: 12px; }",t+=n+".large { padding: 4px 19px; font-size: 14px; }",(e=g.createElement("style")).type="text/css",e.id="paypal-button",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(g.createTextNode(t)),g.getElementsByTagName("head")[0].appendChild(e))}function h(t,e){var i,n,s,a,r,o,l,h,d,c=g.createElement("form"),u=g.createElement("button"),p=g.createElement("input"),f=t.items;for(r in c.method="post",c.action=v.replace("{env}",t.items.env.value),c.className="paypal-button",c.target="_top",p.type="hidden",o=f.size&&f.size.value||"large",l=f.lc&&f.lc.value||"en_US",h=_[l]||_.en_US,f)(i=f[r]).isEditable?((a=g.createElement("input")).type="text",a.className="paypal-input",a.name=i.key,a.value=i.value,(s=g.createElement("label")).className="paypal-label",s.appendChild(g.createTextNode(m.config.labels[i.key]||h[i.key])),s.appendChild(a),(n=g.createElement("p")).className="paypal-group",n.appendChild(s)):((a=n=p.cloneNode(!0)).name=i.key,a.value=i.value),
25c.appendChild(n);try{u.type="submit"}catch(b){u.setAttribute("type","submit")}return u.className="paypal-button "+o,u.appendChild(g.createTextNode(h[e])),c.appendChild(u),(d=PAYPAL.apps.MiniCart)&&"_cart"===t.items.cmd.value&&(d.UI.itemList||d.render(),d.bindForm(c)),c}function d(t,e){var i,n,s=v.replace("{env}",t.items.env.value),a=g.createElement("img"),r=s+"?",o=13,l=t.items;for(n in e=e&&e.value||250,l)r+=(i=l[n]).key+"="+encodeURIComponent(i.value)+"&";return r=encodeURIComponent(r),a.src=u.replace("{env}",t.items.env.value).replace("{url}",r).replace("{pattern}",o).replace("{size}",e),a}function t(t){var e,i,n,s,a,r={};if(e=t.attributes)for(a=0,s=e.length;a<s;a++)(n=(i=e[a]).name.match(/^data-([a-z0-9_]+)(-editable)?/i))&&(r[n[1]]={value:i.value,isEditable:!!n[2]});return r}function c(){this.items={},this.add=function(t,e,i){this.items[t]={key:t,value:e,isEditable:i}},this.remove=function(t){delete this.items[t]}}var m={},v="https://{env}.paypal.com/cgi-bin/webscr",u="https://{env}.paypal.com/webapps/ppint/qrcode?data={url}&pattern={pattern}&height={size}",p="JavaScriptButton_{type}",f={name:"item_name",number:"item_number",locale:"lc",currency:"currency_code",recurrence:"p3",period:"t3",callback:"notify_url"},_={da_DK:{buynow:"K\xf8b nu",cart:"L\xe6g i indk\xf8bsvogn",donate:"Doner",subscribe:"Abonner",item_name:"Vare",number:"Nummer",amount:"Pris",quantity:"Antal"},de_DE:{buynow:"Jetzt kaufen",cart:"In den Warenkorb",donate:"Spenden",subscribe:"Abonnieren",item_name:"Artikel",number:"Nummer",amount:"Betrag",quantity:"Menge"},en_AU:{buynow:"Buy Now",cart:"Add to Cart",donate:"Donate",subscribe:"Subscribe",item_name:"Item",number:"Number",amount:"Amount",quantity:"Quantity"},en_GB:{buynow:"Buy Now",cart:"Add to Cart",donate:"Donate",subscribe:"Subscribe",item_name:"Item",number:"Number",amount:"Amount",quantity:"Quantity"},en_US:{buynow:"Buy Now",cart:"Add to Cart",donate:"Donate",subscribe:"Subscribe",item_name:"Item",number:"Number",amount:"Amount",quantity:"Quantity"},es_ES:{buynow:"Comprar ahora",cart:"A\xf1adir al carro",donate:"Donar",subscribe:"Suscribirse",item_name:"Art\xedculo",number:"N\xfamero",amount:"Importe",quantity:"Cantidad"},es_XC:{buynow:"Comprar ahora",cart:"A\xf1adir al carrito",donate:"Donar",subscribe:"Suscribirse",item_name:"Art\xedculo",number:"N\xfamero",amount:"Importe",quantity:"Cantidad"},fr_CA:{buynow:"Acheter",cart:"Ajouter au panier",donate:"Faire un don",subscribe:"Souscrire",item_name:"Objet",number:"Num\xe9ro",amount:"Montant",quantity:"Quantit\xe9"},fr:{buynow:"Acheter",cart:"Ajouter au panier",donate:"Faire un don",subscribe:"Souscrire",item_name:"Objet",number:"Num\xe9ro",amount:"Montant",quantity:"Quantit\xe9"},fr_XC:{buynow:"Acheter",cart:"Ajouter au panier",donate:"Faire un don",subscribe:"Souscrire",item_name:"Objet",number:"Num\xe9ro",amount:"Montant",quantity:"Quantit\xe9"},he_IL:{buynow:"\u05d5\u05d9\u05e9\u05db\u05e2 \u05d4\u05e0\u05e7",cart:"\u05ea\u05d5\u05d9\u05e0\u05e7\u05d4 \u05dc\u05e1\u05dc \u05e3\u05e1\u05d5\u05d4",donate:"\u05dd\u05d5\u05e8\u05ea",subscribe:"\u05d9\u05d5\u05e0\u05de\u05db \u05e3\u05e8\u05d8\u05e6\u05d4",item_name:"\u05d8\u05d9\u05e8\u05e4",number:"\u05e8\u05e4\u05e1\u05de",amount:"\u05dd\u05d5\u05db\u05e1",quantity:"\u05de\u05d5\u05ea\u05db"},id_ID:{buynow:"Beli Sekarang",cart:"Tambah ke Keranjang",donate:"Donasikan",subscribe:"Berlangganan",item_name:"Barang",number:"Nomor",amount:"Harga",quantity:"Kuantitas"},"it-IT":{buynow:"Paga adesso",cart:"Aggiungi al carrello",donate:"Donazione",subscribe:"Iscriviti",item_name:"Oggetto",number:"Numero",amount:"Importo",quantity:"Quantit\xe0"},ja_JP:{buynow:"\u4eca\u3059\u3050\u8cfc\u5165",cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",donate:"\u5bc4\u4ed8",subscribe:"\u8cfc\u8aad",item_name:"\u5546\u54c1",number:"\u756a\u53f7",amount:"\u4fa1\u683c",quantity:"\u6570\u91cf"},nl_NL:{buynow:"Nu kopen",cart:"Aan winkelwagentje toevoegen",donate:"Doneren",subscribe:"Abonneren",item_name:"Item",number:"Nummer",amount:"Bedrag",quantity:"Hoeveelheid"},no_NO:{buynow:"Kj\xf8p n\xe5",cart:"Legg til i kurv",donate:"Doner",subscribe:"Abonner",item_name:"Vare",number:"Nummer",amount:"Bel\xf8p",quantity:"Antall"},pl_PL:{buynow:"Kup teraz",cart:"Dodaj do koszyka",donate:"Przeka\u017c darowizn\u0119",subscribe:"Subskrybuj",item_name:"Przedmiot",number:"Numer",amount:"Kwota",quantity:"Ilo\u015b\u
250107"},pt_BR:{buynow:"Comprar agora",cart:"Adicionar ao carrinho",donate:"Doar",subscribe:"Assinar",item_name:"Produto",number:"N\xfamero",amount:"Valor",quantity:"Quantidade"},ru_RU:{buynow:"\u041a\u0443\u043f\u0438\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441",cart:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443",donate:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u0442\u044c",subscribe:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f",item_name:"\u0422\u043e\u0432\u0430\u0440",number:"\u041d\u043e\u043c\u0435\u0440",amount:"\u0421\u0443\u043c\u043c\u0430",quantity:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e"},sv_SE:{buynow:"K\xf6p nu",cart:"L\xe4gg till i kundvagn",donate:"Donera",subscribe:"Abonnera",item_name:"Objekt",number:"Nummer",amount:"Belopp",quantity:"Antal"},th_TH:{buynow:"\u0e0b\u0e37\u0e49\u0e2d\u0e17\u0e31\u0e19\u0e17\u0e35",cart:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e25\u0e07\u0e15\u0e30\u0e01\u0e23\u0e49\u0e32",donate:"\u0e1a\u0e23\u0e34\u0e08\u0e32\u0e04",subscribe:"\u0e1a\u0e2d\u0e01\u0e23\u0e31\u0e1a\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01",item_name:"\u0e0a\u0e37\u0e48\u0e2d\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32",number:"\u0e23\u0e2b\u0e31\u0e2a\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32",amount:"\u0e23\u0e32\u0e04\u0e32",quantity:"\u0e08\u0e33\u0e19\u0e27\u0e19"},tr_TR:{buynow:"Hemen Al\u0131n",cart:"Sepete Ekleyin",donate:"Ba\u011f\u0131\u015f Yap\u0131n",subscribe:"Abone Olun",item_name:"\xdcr\xfcn",number:"Numara",amount:"Tutar",quantity:"Miktar"},zh_CN:{buynow:"\u7acb\u5373\u8d2d\u4e70",cart:"\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66",donate:"\u6350\u8d60",subscribe:"\u79df\u7528",item_name:"\u7269\u54c1",number:"\u7f16\u53f7",amount:"\u91d1\u989d",quantity:"\u6570\u91cf"},zh_HK:{buynow:"\u7acb\u5373\u8cb7",cart:"\u52a0\u5165\u8cfc\u7269\u8eca",donate:"\u6350\u6b3e",subscribe:"\u8a02\u7528",item_name:"\u9805\u76ee",number:"\u865f\u78bc",amount:"\u91d1\u984d",quantity:"\u6578\u91cf"},zh_TW:{buynow:"\u7acb\u5373\u8cfc",cart:"\u52a0\u5230\u8cfc\u7269\u8eca",donate:"\u6350\u6b3e",subscribe:"\u8a02\u95b1",item_name:"\u5546\u54c1",number:"\u5546\u54c1\u7de8\u865f",amount:"\u55ae\u50f9",quantity:"\u6578\u91cf"},zh_XC:{buynow:"\u7acb\u5373\u8d2d\u4e70",cart:"\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66",donate:"\u6350\u8d60",subscribe:"\u79df\u7528",item_name:"\u7269\u54c1",number:"\u7f16\u53f7",amount:"\u91d1\u989d",quantity:"\u6570\u91cf"}};if(PAYPAL.apps.ButtonFactory||(m.config={labels:{}},m.buttons={buynow:0,cart:0,donate:0,qr:0,subscribe:0},m.create=function(t,e,i,n){var s,a,r,o=new c;if(!t)return!1;for(a in e)o.add(f[a]||a,e[a].value,e[a].isEditable);return i=i||"buynow",r="www",o.items.env&&o.items.env.value&&(r+="."+o.items.env.value),"cart"===i?(o.add("cmd","_cart"),o.add("add",!0)):"donate"===i?o.add("cmd","_donations"):"subscribe"===i?(o.add("cmd","_xclick-subscriptions"),o.items.amount&&!o.items.a3&&o.add("a3",o.items.amount.value)):o.add("cmd","_xclick"),o.add("business",t),o.add("bn",p.replace(/\{type\}/,i)),o.add("env",r),"qr"===i?(s=d(o,o.items.size),o.remove("size")):s=h(o,i),l(),this.buttons[i]+=1,n&&n.appendChild(s),s},PAYPAL.apps.ButtonFactory=m),void 0!==g){var e,i,n,s,a,r,o=PAYPAL.apps.ButtonFactory,b=g.getElementsByTagName("script");for(a=0,r=b.length;a<r;a++)(e=b[a])&&e.src&&(n=(i=e&&t(e))&&i.button&&i.button.value,(s=e.src.split("?merchant=")[1])&&(o.create(s,i,n,e.parentNode),e.parentNode.removeChild(e)))}}(document),"object"==typeof module&&"object"==typeof module.exports&&(module.exports=PAYPAL),function(h,l,s,a){"use strict"
26;function i(t){return("string"==typeof t||t instanceof String)&&(t=t.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g,"")),t}function t(t){this.selector=t,this.query=""}(function(t){var e=h("head");e.prepend(h.map(t,function(t){if(0===e.has("."+t).length)return'<meta class="'+t+'" />'}))})(["foundation-mq-small","foundation-mq-small-only","foundation-mq-medium","foundation-mq-medium-only","foundation-mq-large","foundation-mq-large-only","foundation-mq-xlarge","foundation-mq-xlarge-only","foun
26dation-mq-xxlarge","foundation-data-attribute-namespace"]),h(function(){"undefined"!=typeof FastClick&&"undefined"!=typeof s.body&&FastClick.attach(s.body)});var d=function(t,e){if("string"!=typeof t)return h(t,e);if(e){var i;if(e.jquery){if(!(i=e[0]))return e}else i=e;return h(i.querySelectorAll(t))}return h(s.querySelectorAll(t))},e=function(t){var e=[];return t||e.push("data"),0<this.namespace.length&&e.push(this.namespace),e.push(this.name),e.join("-")},n=function(t){for(var e=t.split("-"),i=e.length,n=[];i--;)0!==i?n.push(e[i]):0<this.namespace.length?n.push(this.namespace,e[i]):n.push(e[i]);return n.reverse().join("-")},r=function(i,n){var s=this,t=function(){var t=d(this),e=!t.data(s.attr_name(!0)+"-init");t.data(s.attr_name(!0)+"-init",h.extend({},s.settings,n||i,s.data_options(t))),e&&s.events(this)};if(d(this.scope).is("["+this.attr_name()+"]")?t.call(this.scope):d("["+this.attr_name()+"]",this.scope).each(t),"string"==typeof i)return this[i].call(this,n)},o=function(t,e){function i(){e(t[0])}function n(){if(this.one("load",i),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var t=this.attr("src"),e=t.match(/\?/)?"&":"?";e+="random="+(new Date).getTime(),this.attr("src",t+e)}}t.attr("src")?t[0].complete||4===t[0].readyState?i():n.call(t):i()};l.matchMedia||(l.matchMedia=function(){var e=l.styleMedia||l.media;if(!e){var i=s.createElement("style"),t=s.getElementsByTagName("script")[0],n=null;i.type="text/css",i.id="matchmediajs-test",t.parentNode.insertBefore(i,t),n="getComputedStyle"in l&&l.getComputedStyle(i,null)||i.currentStyle,e={matchMedium:function(t){var e="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return i.styleSheet?i.styleSheet.cssText=e:i.textContent=e,"1px"===n.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(e){function i(){n&&(a(i),o&&e.fx.tick())}for(var n,s=0,t=["webkit","moz"],a=l.requestAnimationFrame,r=l.cancelAnimationFrame,o="undefined"!=typeof e.fx;s<t.length&&!a;s++)a=l[t[s]+"RequestAnimationFrame"],r=r||l[t[s]+"CancelAnimationFrame"]||l[t[s]+"CancelRequestAnimationFrame"];a?(l.requestAnimationFrame=a,l.cancelAnimationFrame=r,o&&(e.fx.timer=function(t){t()&&e.timers.push(t)&&!n&&(n=!0,i())},e.fx.stop=function(){n=!1})):(l.requestAnimationFrame=function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-s)),n=l.setTimeout(function(){t(e+i)},i);return s=e+i,n},l.cancelAnimationFrame=function(t){clearTimeout(t)})}(h),t.prototype.toString=function(){return this.query||(this.query=d(this.selector).css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""))},l.Foundation={name:"Foundation",version:"5.5.3",media_queries:{small:new t(".foundation-mq-small"),"small-only":new t(".foundation-mq-small-only"),medium:new t(".foundation-mq-medium"),"medium-only":new t(".foundation-mq-medium-only"),large:new t(".foundation-mq-large"),"large-only":new t(".foundation-mq-large-only"),xlarge:new t(".foundation-mq-xlarge"),"xlarge-only":new t(".foundation-mq-xlarge-only"),xxlarge:new t(".foundation-mq-xxlarge")},stylesheet:h("<style></style>").appendTo("head")[0].sheet,global:{namespace:a},init:function(t,e,i,n,s){var a=[t,i,n,s],r=[];if(this.rtl=/rtl/i.test(d("html").attr("dir")),this.scope=t||this.scope,this.set_namespace(),e&&"string"==typeof e&&!/reflow/i.test(e))this.libs.hasOwnProperty(e)&&r.push(this.init_lib(e,a));else for(var o in this.libs)r.push(this.init_lib(o,e));return d(l).load(function(){d(l).trigger("resize.fndtn.clearing").trigger("resize.fndtn.dropdown").trigger("resize.fndtn.equalizer").trigger("resize.fndtn.interchange").trigger("resize.fndtn.joyride").trigger("resize.fndtn.magellan").trigger("resize.fndtn.topbar").trigger("resize.fndtn.slider")}),t},init_lib:function(t,e){return this.libs.hasOwnProperty(t)?(this.patch(this.libs[t]),e&&e.hasOwnProperty(t)?("undefined"!=typeof this.libs[t].settings?h.extend(!0,this.libs[t].settings,e[t]):"undefined"!=typeof this.libs[t].defaults&&h.extend(!0,this.libs[t].defaults,e[t]),this.libs[t].init.apply(this.libs[t],[this.scope,e[t]])):(e=e instanceof Array?e:new Array(e),this.libs[t].init.apply(this.libs[t],e))):function(){}},patch:function(t){t.scope=this.scope,t.namespace=this.global.namespace,t.rtl=this.rtl,t.data_options=this.utils.data_options,t.attr_name=e,t.add_namespace=n,t.bindings=r,t.S=this.utils.S},inherit:function(t,e){for(var i=e.split(" "),n=i.length;n--;)this.utils.hasOwnProperty(i[n])&&(t[i[n]]=this.utils[i[n]])},set_namespace:function(){var t=this.global.namespace===a?h(".foundation-data-attribute-namespace").css("font-family"):this.global.namespace;this.global.namespace=t===a||/false/i.test(t)?"":t},libs:{},utils:{S:d,throttle:function(i,n){var s=null;return function(){var t=this,e=arguments;null==s&&(s=setTimeout(function(){i.apply(t,e),s=null},n))}},debounce:function(s,a,r){var o,l;return function(){var t=this,e=arguments,i=function(){o=null,r||(l=s.apply(t,e))},n=r&&!o;return clearTimeout(o),o=setTimeout(i,a),n&&(l=s.apply(t,e)),l}},data_options:function(t,i){function e(t){return!isNaN(t-0)&&null!==t&&""!==t&&!1!==t&&!0!==t}function n(t){return"string"==typeof t?h.trim(t):t}i=i||"options";var s,a,r,o={},l=function(t){var e=Foundation.global.namespace;return 0<e.length?t.data(e+"-"+i):t.data(i)}(t);if("object"==typeof l)return l;for(s=(r=(l||":").split(";")).length;s--;)a=[(a=r[s].split(":"))[0],a.slice(1).join(":")],/true/i.test(a[1])&&(a[1]=!0),/false/i.test(a[1])&&(a[1]=!1),e(a[1])&&(-1===a[1].indexOf(".")?a[1]=parseInt(a[1],10):a[1]=parseFloat(a[1])),2===a.length&&0<a[0].length&&(o[n(a[0])]=n(a[1]));return o},register_media:function(t,e){Foundation.media_queries[t]===a&&(h("head").append('<meta class="'+e+'"/>'),Foundation.media_queries[t]=i(h("."+e).css("font-family")))},add_custom_rule:function(t,e){e===a&&Foundation.stylesheet?Foundation.stylesheet.insertRule(t,Foundation.stylesheet.cssRules.length):Foundation.media_queries[e]!==a&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[e]+"{ "+t+" }",Foundation.stylesheet.cssRules.length)},image_loaded:function(t,e){function i(t){for(var e=t.length-1;0<=e;e--)if(t.attr("height")===a)return!1;return!0}var n=this,s=t.length;(0===s||i(t))&&e(t),t.each(function(){o(n.S(this),function(){0===(s-=1)&&e(t)})})},random_str:function(){return this.fidx||(this.fidx=0),this.prefix=this.prefix||[this.name||"F",(+new Date).toString(36)].join("-"),this.prefix+(this.fidx++).toString(36)},match:function(t){return l.matchMedia(t).matches},is_small_up:function(){return this.match(Foundation.media_queries.small)},is_medium_up:function(){return this.match(Foundation.media_queries.medium)},is_large_up:function(){return this.match(Foundation.media_queries.large)},is_xlarge_up:function(){return this.match(Foundation.media_queries.xlarge)},is_xxlarge_up:function(){return this.match(Foundation.media_queries.xxlarge)},is_small_only:function(){return!(this.is_medium_up()||this.is_large_up()||this.is_xlarge_up()||this.is_xxlarge_up())},is_medium_only:function(){return this.is_medium_up()&&!this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up()},is_large_only:function(){return this.is_medium_up()&&this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up()},is_xlarge_only:function(){return this.is_medium_up()&&this.is_large_up()&&this.is_xlarge_up()&&!this.is_xxlarge_up()},is_xxlarge_only:function(){return this.is_medium_up()&&this.is_large_up()&&this.is_xlarge_up()&&this.is_xxlarge_up()}}},h.fn.foundation=function(){var t=Array.prototype.slice.call(arguments,0);
26return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(t)),this})}}(jQuery,window,window.document),function(w,t,s){"use strict";Foundation.libs.abide={name:"abide",version:"5.5.3",settings:{live_validate:!0,validate_on_blur:!0,focus_on_invalid:!0,error_labels:!0,error_class:"error",timeout:1e3,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:[\.\,]\d+)?$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,url:/^(https?|ftp|file|ssh):\/\/([-;:&=\+\$,\w]+@{1})?([-A-Za-z0-9\.]+)+:?(\d+)?((\/[-\+~%\/\.\w]+)?\??([-\+=&;%@\.\w]+)?#?([\w]+)?)?/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,day_month_year:/^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/},validators:{equalTo:function(t){return s.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value===t.value}}},timer:null,init:function(t,e,i){this.bindings(e,i)},events:function(t){function n(t,e){clearTimeout(i.timer),i.timer=setTimeout(function(){i.validate([t],e)}.bind(t),a.timeout)}var i=this,s=i.S(t).attr("novalidate","novalidate"),a=s.data(this.attr_name(!0)+"-init")||{};this.invalid_attr=this.add_namespace("data-invalid"),s.off(".abide").on("submit.fndtn.abide",function(t){var e=/ajax/i.test(i.S(this).attr(i.attr_name()));return i.validate(i.S(this).find("input, textarea, select").not(":hidden, [data-abide-ignore]").get(),t,e)}).on("validate.fndtn.abide",function(t){"manual"===a.validate_on&&i.validate([t.target],t)}).on("reset",function(t){return i.reset(w(this),t)}).find("input, textarea, select").not(":hidden, [data-abide-ignore]").off(".abide").on("blur.fndtn.abide change.fndtn.abide",function(t){var e=this.getAttribute("id"),i=s.find('[data-equalto="'+e+'"]');a.validate_on_blur&&!0===a.validate_on_blur&&n(this,t),void 0!==i.get(0)&&i.val().length&&n(i.get(0),t),"change"===a.validate_on&&n(this,t)}).on("keydown.fndtn.abide",function(t){var e=this.getAttribute("id"),i=s.find('[data-equalto="'+e+'"]');a.live_validate&&!0===a.live_validate&&9!=t.which&&n(this,t),void 0!==i.get(0)&&i.val().length&&n(i.get(0),t),"tab"===a.validate_on&&9===t.which?n(this,t):"change"===a.validate_on&&n(this,t)}
26).on("focus",function(t){navigator.userAgent.match(/iPad|iPhone|Android|BlackBerry|Windows Phone|webOS/i)&&w("html, body").animate({scrollTop:w(t.target).offset().top},100)})},reset:function(t){var e=this;t.removeAttr(e.invalid_attr),w("["+e.invalid_attr+"]",t).removeAttr(e.invalid_attr),w("."+e.settings.error_class,t).not("small").removeClass(e.settings.error_class),w(":input",t).not(":button, :submit, :reset, :hidden, [data-abide-ignore]").val("").removeAttr(e.invalid_attr)},validate:function(t,e,i){for(var n=this.parse_patterns(t),s=n.length,a=this.S(t[0]).closest("form"),r=/submit/.test(e.type),o=0;o<s;o++)if(!n[o]&&(r||i))return this.settings.focus_on_invalid&&t[o].focus(),a.trigger("invalid.fndtn.abide"),this.S(t[o]).closest("form").attr(this.invalid_attr,""),!1;return(r||i)&&a.trigger("valid.fndtn.abide"),a.removeAttr(this.invalid_attr),!i},parse_patterns:function(t){for(var e=t.length,i=[];e--;)i.push(this.pattern(t[e]));return this.check_validation_and_apply_styles(i)},pattern:function(t){var e=t.getAttribute("type"),i="string"==typeof t.getAttribute("required"),n=t.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(n)&&0<n.length?[t,this.settings.patterns[n],i]:0<n.length?[t,new RegExp(n),i]:this.settings.patterns.hasOwnProperty(e)?[t,this.settings.patterns[e],i]:[t,n=/.*/,i]},check_validation_and_apply_styles:function(t){var e=t.length,i=[];if(0==e)return i;for(this.S(t[0][0]).closest("[data-"+this.attr_name(!0)+"]").data(this.attr_name(!0)+"-init");e--;){var n,s,a=t[e][0],r=t[e][2],o=a.value.trim(),l=this.S(a).parent(),h=a.getAttribute(this.add_namespace("data-abide-validator")),d="radio"===a.type,c="checkbox"===a.type,u=this.S('label[for="'+a.getAttribute("id")+'"]'),p=!r||0<a.value.length,f=[];if(a.getAttribute(this.add_namespace("data-equalto"))&&(h="equalTo"),n=l.is("label")?l.parent():l,d&&r)f.push(this.valid_radio(a,r));else if(c&&r)f.push(this.valid_checkbox(a,r));else if(h){for(var g=h.split(" "),m=!0,v=!0,_=0;_<g.length;_++)s=this.settings.validators[g[_]].apply(this,[a,r,n]),f.push(s),v=s&&m,m=s;v?(this.S(a).removeAttr(this.invalid_attr),n.removeClass("error"),0<u.length&&this.settings.error_labels&&u.removeClass(this.settings.error_class).removeAttr("role"),w(a).triggerHandler("valid")):(this.S(a).attr(this.invalid_attr,""),n.addClass("error"),0<u.length&&this.settings.error_labels&&u.addClass(this.settings.error_class).attr("role","alert"),w(a).triggerHandler("invalid"))}else if(t[e][1].test(o)&&p||!r&&a.value.length<1||w(a).attr("disabled")?f.push(!0):f.push(!1),(f=[f.every(function(t){return t})])[0])this.S(a).removeAttr(this.invalid_attr),a.setAttribute("aria-invalid","false"),a.removeAttribute("aria-describedby"),n.removeClass(this.settings.error_class),0<u.length&&this.settings.error_labels&&u.removeClass(this.settings.error_class).removeAttr("role"),w(a).triggerHandler("valid");else{this.S(a).attr(this.invalid_attr,""),a.setAttribute("aria-invalid","true");var b=n.find("small."+this.settings.error_class,"span."+this.settings.error_class),y=0<b.length?b[0].id:"";0<y.length&&a.setAttribute("aria-describedby",y),n.addClass(this.settings.error_class),0<u.length&&this.settings.error_labels&&u.addClass(this.settings.error_class).attr("role","alert"),w(a).triggerHandler("invalid")}i=i.concat(f)}return i},valid_checkbox:function(t,e){var i=(t=this.S(t)).is(":checked")||!e||t.get(0).getAttribute("disabled");return i?(t.removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class),w(t).triggerHandler("valid")):(t.attr(this.invalid_attr,"").parent().addClass(this.settings.error_class),w(t).triggerHandler("invalid")),i},valid_radio:function(t){for(var e=t.getAttribute("name"),i=this.S(t).closest("[data-"+this.attr_name(!0)+"]").find("[name='"+e+"']"),n=i.length,s=!1,a=!1,r=0;r<n;r++)i[r].getAttribute("disabled")?s=a=!0:i[r].checked?s=!0:a&&(s=!1);for(r=0;r<n;r++)s?(this.S(i[r]).removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class),w(i[r]).triggerHandler("valid")):(this.S(i[r]).attr(this.invalid_attr,"").parent().addClass(this.settings.error_class),w(i[r]).triggerHandler("invalid"));return s}
26,valid_equal:function(t,e,i){var n=s.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value===t.value;return n?(this.S(t).removeAttr(this.invalid_attr),i.removeClass(this.settings.error_class),0<label.length&&settings.error_labels&&label.removeClass(this.settings.error_class)):(this.S(t).attr(this.invalid_attr,""),i.addClass(this.settings.error_class),0<label.length&&settings.error_labels&&label.addClass(this.settings.error_class)),n},valid_oneof:function(t,e,i,n){t=this.S(t);var s=this.S("["+this.add_namespace("data-oneof")+"]"),a=0<s.filter(":checked").length;if(a?t.removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class):t.attr(this.invalid_attr,"").parent().addClass(this.settings.error_class),!n){var r=this;s.each(function(){r.valid_oneof.call(r,this,null,null,!0)})}return a},reflow:function(){var i=this,t=i.S("["+this.attr_name()+"]").attr("novalidate","novalidate");i.S(t).each(function(t,e){i.events(e)})}}}(jQuery,window,window.document),function(d,r){"use strict";Foundation.libs.accordion={name:"accordion",version:"5.5.3",settings:{content_class:"content",active_class:"active",multi_expand:!1,toggleable:!0,callback:function(){}},init:function(t,e,i){this.bindings(e,i)},events:function(t){var l=this,h=this.S;l.create(this.S(t)),h(this.scope).off(".fndtn.accordion").on("click.fndtn.accordion","["+this.attr_name()+"] > dd > a, ["+this.attr_name()+"] > li > a",function(t){var e=h(this).closest("["+l.attr_name()+"]"),i=l.attr_name()+"="+e.attr(l.attr_name()),n=e.data(l.attr_name(!0)+"-init")||l.settings,s=h("#"+this.href.split("#")[1]),a=d("> dd, > li",e),r=a.children("."+n.content_class),o=r.filter("."+n.active_class);if(t.preventDefault(),e.attr(l.attr_name())&&(r=r.add("["+i+"] dd > ."+n.content_class+", ["+i+"] li > ."+n.content_class),a=a.add("["+i+"] dd, ["+i+"] li")),n.toggleable&&s.is(o))return s.parent("dd, li").toggleClass(n.active_class,!1),s.toggleClass(n.active_class,!1),h(this).attr("aria-expanded",function(t,e){return"true"===e?"false":"true"}),n.callback(s),s.triggerHandler("toggled",[e]),void e.triggerHandler("toggled",[s]);n.multi_expand||(r.removeClass(n.active_class),a.removeClass(n.active_class),a.children("a").attr("aria-expanded","false")),s.addClass(n.active_class).parent().addClass(n.active_class),n.callback(s),s.triggerHandler("toggled",[e]),e.triggerHandler("toggled",[s]),h(this).attr("aria-expanded","true")})},create:function(t){var e=this,i=t,n=d("> .accordion-navigation",i),s=i.data(e.attr_name(!0)+"-init")||e.settings;n.children("a").attr("aria-expanded","false"),n.has("."+s.content_class+"."+s.active_class).addClass(s.active_class).children("a").attr("aria-expanded","true"),s.multi_expand&&t.attr("aria-multiselectable","true")},toggle:function(t){var e="undefined"!=typeof(t=void 0!==t?t:{}).selector?t.selector:"",i="undefined"!=typeof t.toggle_state?t.toggle_state:"",n=("undefined"!=typeof t.$accordion?t.$accordion:this.S(this.scope).closest("["+this.attr_name()+"]")).find("> dd"+e+", > li"+e);if(n.length<1)return r.console&&console.error("Selection not found.",e),!1;var s=this.S,a=this.settings.active_class;n.each(function(){var t=s(this),e=t.hasClass(a);(e&&"close"===i||!e&&"open"===i||""===i)&&t.find("> a").trigger("click.fndtn.accordion")})},open:function(t){(t=void 0!==t?t:{}).toggle_state="open",this.toggle(t)},close:function(t){(t=void 0!==t?t:{}).toggle_state="close",this.toggle(t)},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(t){"use strict";Foundation.libs.alert={name:"alert",version:"5.5.3",settings:{callback:function(){}},init:function(t,e,i){this.bindings(e,i)},events:function(){var n=this,s=this.S;t(this.scope).off(".alert").on("click.fndtn.alert","["+this.attr_name()+"] .close",function(t){var e=s(this).closest("["+n.attr_name()+"]"),i=e.data(n.attr_name(!0)+"-init")||n.settings;t.preventDefault(),Modernizr.csstransitions?(e.addClass("alert-close"),e.on("transitionend webkitTransitionEnd oTransitionEnd",function(){s(this).trigger("close.fndtn.alert").remove(),i.callback()})):e.fadeOut(300,function(){s(this).trigger("close.fndtn.alert").remove(),i.callback()})})},reflow:function(){}}}(jQuery,window,window.document),function(f,i,g,a){"use strict";Foundation.libs.clearing={name:"clearing",version:"5.5.3",settings:{templates:{viewing:'<a href="#" class="clearing-close">&times;</a><div class="visible-img" style="display: none"><div class="clearing-touch-label"></div><img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" /><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div><img class="clearing-preload-next" style="display: none" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" /><img class="clearing-preload-prev" style="display: none" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" />'},close_selectors:".clearing-close, div.clearing-blackout",open_selectors:"",skip_selector:"",touch_label:"",init:!1,locked:!1}
26,init:function(t,e,i){var n=this;Foundation.inherit(this,"throttle image_loaded"),this.bindings(e,i),n.S(this.scope).is("["+this.attr_name()+"]")?this.assemble(n.S("li",this.scope)):n.S("["+this.attr_name()+"]",this.scope).each(function(){n.assemble(n.S("li",this))})},events:function(t){var r=this,o=r.S,e=f(".scroll-container");0<e.length&&(this.scope=e),o(this.scope).off(".clearing").on("click.fndtn.clearing","ul["+this.attr_name()+"] li "+this.settings.open_selectors,function(t,e,i){e=e||o(this),i=i||e;var n=e.next("li"),s=e.closest("["+r.attr_name()+"]").data(r.attr_name(!0)+"-init"),a=o(t.target);t.preventDefault(),s||(r.init(),s=e.closest("["+r.attr_name()+"]").data(r.attr_name(!0)+"-init")),i.hasClass("visible")&&e[0]===i[0]&&0<n.length&&r.is_open(e)&&(a=o("img",i=n)),r.open(a,e,i),r.update_paddles(i)}).on("click.fndtn.clearing",".clearing-main-next",function(t){r.nav(t,"next")}).on("click.fndtn.clearing",".clearing-main-prev",function(t){r.nav(t,"prev")}).on("click.fndtn.clearing",this.settings.close_selectors,function(t){Foundation.libs.clearing.close(t,this)}),f(g).on("keydown.fndtn.clearing",function(t){r.keydown(t)}),o(i).off(".clearing").on("resize.fndtn.clearing",function(){r.resize()}),this.swipe_events(t)},swipe_events:function(){var n=this,s=n.S;s(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(t){t.touches||(t=t.originalEvent);var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:a};s(this).data("swipe-transition",e),t.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(t){if(t.touches||(t=t.originalEvent),!(1<t.touches.length||t.scale&&1!==t.scale)){var e=s(this).data("swipe-transition");if(void 0===e&&(e={}),e.delta_x=t.touches[0].pageX-e.start_page_x,Foundation.rtl&&(e.delta_x=-e.delta_x),"undefined"==typeof e.is_scrolling&&(e.is_scrolling=!!(e.is_scrolling||Math.abs(e.delta_x)<Math.abs(t.touches[0].pageY-e.start_page_y))),!e.is_scrolling&&!e.active){t.preventDefault();var i=e.delta_x<0?"next":"prev";e.active=!0,n.nav(t,i)}}}).on("touchend.fndtn.clearing",".visible-img",function(t){s(this).data("swipe-transition",{}),t.stopPropagation()})},assemble:function(t){var e=t.parent();if(!e.parent().hasClass("carousel")){e.after('<div id="foundationClearingHolder"></div>');var i=e.detach(),n="";if(null!=i[0]){n=i[0].outerHTML;var s=this.S("#foundationClearingHolder"),a={grid:'<div class="carousel">'+n+"</div>",viewing:e.data(this.attr_name(!0)+"-init").templates.viewing},r='<div class="clearing-assembled"><div>'+a.viewing+a.grid+"</div></div>",o=this.settings.touch_label;Modernizr.touch&&(r=f(r).find(".clearing-touch-label").html(o).end()),s.after(r).remove()}}},open:function(t,i,n){function e(){setTimeout(function(){this.image_loaded(d,function(){1!==d.outerWidth()||u?s.call(this,d):e.call(this)}.bind(this))}.bind(this),100)}function s(t){var e=f(t);e.css("visibility","visible"),e.trigger("imageVisible"),r.css("overflow","hidden"),o.addClass("clearing-blackout"),l.addClass("clearing-container"),h.show(),this.fix_height(n).caption(a.S(".clearing-caption",h),a.S("img",n)).center_and_label(t,c).shift(i,n,function(){n.closest("li").siblings().removeClass("visible"),n.closest("li").addClass("visible")}),h.trigger("opened.fndtn.clearing")}var a=this,r=f(g.body),o=n.closest(".clearing-assembled"),l=a.S("div",o).first(),h=a.S(".visible-img",l),d=a.S("img",h).not(t),c=a.S(".clearing-touch-label",l),u=!1,p={};f("body").on("touchmove",function(t){t.preventDefault()}),d.error(function(){u=!0}),this.locked()||(h.trigger("open.fndtn.clearing"),(p=this.load(t)).interchange?d.attr("data-interchange",p.interchange).foundation("interchange","reflow"):d.attr("src",p.src).attr("data-interchange",""),d.css("visibility","hidden"),e.call(this))},close:function(t,e){t.preventDefault();var i,n,s,a=(s=f(e),/blackout/.test(s.selector)?s:s.closest(".clearing-blackout")),r=f(g.body);return e===t.target&&a&&(r.css("overflow",""),i=f("div",a).first(),(n=f(".visible-img",i)).trigger("close.fndtn.clearing"),this.settings.prev_index=0,f("ul["+this.attr_name()+"]",a).attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),i.removeClass("clearing-container"),n.hide(),n.trigger("closed.fndtn.clearing")),f("body").off("touchmove"),!1},is_open:function(t){return 0<t.parent().prop("style").length},keydown:function(t){var e=f(".clearing-blackout ul["+this.attr_name()+"]"),i=this.rtl?37:39,n=this.rtl?39:37,s=27;t.which===i&&this.go(e,"next"),t.which===n&&this.go(e,"prev"),t.which===s&&this.S("a.clearing-close").trigger("click.fndtn.clearing")},nav:function(t,e){var i=f("ul["+this.attr_name()+"]",".clearing-blackout");t.preventDefault(),this.go(i,e)},resize:function(){var t=f("img",".clearing-blackout .visible-img"),e=f(".clearing-touch-label",".clearing-blackout");t.length&&(this.center_and_label(t,e),t.trigger("resized.fndtn.clearing"))},fix_height:function(t){var e=t.parent().children(),i=this;return e.each(function(){var t=i.S(this),e=t.find("img");t.height()>e.outerHeight()&&t.addClass("fix-height")}).closest("ul").width(100*e.length+"%"),this},update_paddles:function(t){var e=(t=t.closest("li")).closest(".carousel").siblings(".visible-img");0<t.next().length?this.S(".clearing-main-next",e).removeClass("disabled"):this.S(".clearing-main-next",e).addClass("disabled"),0<t.prev().length?this.S(".clearing-main-prev",e).removeClass("disabled"):this.S(".clearing-main-prev",e).addClass("disabled")},center_and_label:function(t,e){return!this.rtl&&0<e.length?e.css({marginLeft:-e.outerWidth()/2,marginTop:-t.outerHeight()/2-e.outerHeight()-10}):e.css({marginRight:-e.outerWidth()/2,marginTop:-t.outerHeight()/2-e.outerHeight()-10,left:"auto",right:"50%"}),this},load:function(t){var e,i,n;return"A"===t[0].nodeName?(e=t.attr("href"),i=t.data("clearing-interchange")):(e=(n=t.closest("a")).attr("href"),i=n.data("clearing-interchange")),this.preload(t),{src:e||t.attr("src"),interchange:e?i:t.data("clearing-interchange")}},preload:function(t){this.img(t.closest("li").next(),"next").img(t.closest("li").prev(),"prev")},img:function(t,e){if(t.length){var i,n,s,a=f(".clearing-preload-"+e),r=this.S("a",t);r.length?(i=r.attr("href"),n=r.data("clearing-interchange")):(i=(s=this.S("img",t)).attr("src"),n=s.data("clearing-interchange")),n?a.attr("data-interchange",n):(a.attr("src",i),a.attr("data-interchange",""))}return this},caption:function(t,e){var i=e.attr("data-caption");i?(t.get(0).innerHTML=i,t.show()):t.text("").hide();return this},go:function(t,e){var i=this.S(".visible",t),n=i[e]();this.settings.skip_selector&&0!=n.find(this.settings.skip_selector).length&&(n=n[e]()),n.length&&this.S("img",n).trigger("click.fndtn.clearing",[i,n]).trigger("change.fndtn.clearing")}
vendor: 9,282 bytes, lines 26-27
26,shift:function(t,e,i){var n,s=e.parent(),a=this.settings.prev_index||e.index(),r=this.direction(s,t,e),o=this.rtl?"right":"left",l=parseInt(s.css("left"),10),h=e.outerWidth(),d={};e.index()===a||/skip/.test(r)?/skip/.test(r)&&(n=e.index()-this.settings.up_count,this.lock(),d[o]=0<n?-n*h:0,s.animate(d,300,this.unlock())):/left/.test(r)?(this.lock(),d[o]=l+h,s.animate(d,300,this.unlock())):/right/.test(r)&&(this.lock(),d[o]=l-h,s.animate(d,300,this.unlock())),i()},direction:function(t,e,i){var n,s=this.S("li",t),a=s.outerWidth()+s.outerWidth()/4,r=Math.floor(this.S(".clearing-container").outerWidth()/a)-1,o=s.index(i);return this.settings.up_count=r,n=this.adjacent(this.settings.prev_index,o)?r<o&&o>this.settings.prev_index?"right":r-1<o&&o<=this.settings.prev_index&&"left":"skip",this.settings.prev_index=o,n},adjacent:function(t,e){for(var i=e+1;e-1<=i;i--)if(i===t)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},off:function(){this.S(this.scope).off(".fndtn.clearing"),this.S(i).off(".fndtn.clearing")},reflow:function(){this.init()}}}(jQuery,window,window.document),function(s,l,h){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"5.5.3",settings:{active_class:"open",disabled_class:"disabled",mega_class:"mega",align:"bottom",is_hover:!1,hover_timeout:150,opened:function(){},closed:function(){}},init:function(t,e,i){Foundation.inherit(this,"throttle"),s.extend(!0,this.settings,e,i),this.bindings(e,i)},events:function(){var a=this,r=a.S;r(this.scope).off(".dropdown").on("click.fndtn.dropdown","["+this.attr_name()+"]",function(t){(r(this).data(a.attr_name(!0)+"-init")||a.settings).is_hover&&!Modernizr.touch||(t.preventDefault(),r(this).parent("[data-reveal-id]").length&&t.stopPropagation(),a.toggle(s(this)))}).on("mouseenter.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(t){var e,i,n=r(this);clearTimeout(a.timeout),n.data(a.data_attr())?(e=r("#"+n.data(a.data_attr())),i=n):(e=n,i=r("["+a.attr_name()+'="'+e.attr("id")+'"]'));var s=i.data(a.attr_name(!0)+"-init")||a.settings;r(t.currentTarget).data(a.data_attr())&&s.is_hover&&a.closeall.call(a),s.is_hover&&a.open.apply(a,[e,i])}).on("mouseleave.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(){var t=r(this);if(t.data(a.data_attr()))e=t.data(a.data_attr(!0)+"-init")||a.settings;else var e=r("["+a.attr_name()+'="'+r(this).attr("id")+'"]').data(a.attr_name(!0)+"-init")||a.settings;a.timeout=setTimeout(function(){t.data(a.data_attr())?e.is_hover&&a.close.call(a,r("#"+t.data(a.data_attr()))):e.is_hover&&a.close.call(a,t)}.bind(this),e.hover_timeout)}).on("click.fndtn.dropdown",function(t){var e=r(t.target).closest("["+a.attr_name()+"-content]");0<e.find("a").length&&"false"!==e.attr("aria-autoclose")&&a.close.call(a,r("["+a.attr_name()+"-content]")),(t.target===h||s.contains(h.documentElement,t.target))&&(0<r(t.target).closest("["+a.attr_name()+"]").length||(!r(t.target).data("revealId")&&0<e.length&&(r(t.target).is("["+a.attr_name()+"-content]")||s.contains(e.first()[0],t.target))?t.stopPropagation():a.close.call(a,r("["+a.attr_name()+"-content]"))))}).on("opened.fndtn.dropdown","["+a.attr_name()+"-content]",function(){a.settings.opened.call(this)}).on("closed.fndtn.dropdown","["+a.attr_name()+"-content]",function(){a.settings.closed.call(this)}),r(l).off(".dropdown").on("resize.fndtn.dropdown",a.throttle(function(){a.resize.call(a)},50)),this.resize()},close:function(e){var i=this;e.each(function(t){(s("["+i.attr_name()+"="+e[t].id+"]")||s("aria-controls="+e[t].id+"]")).attr("aria-expanded","false"),i.S(this).hasClass(i.settings.active_class)&&(i.S(this).css(Foundation.rtl?"right":"left","-99999px").attr("aria-hidden","true").removeClass(i.settings.active_class).prev("["+i.attr_name()+"]").removeClass(i.settings.active_class).removeData("target"),i.S(this).trigger("closed.fndtn.dropdown",[e]))}),e.removeClass("f-open-"+this.attr_name(!0))},closeall:function(){var t=this;s.each(t.S(".f-open-"+this.attr_name(!0)),function(){t.close.call(t,t.S(this))})},open:function(t,e){this.css(t.addClass(this.settings.active_class),e),t.prev("["+this.attr_name()+"]").addClass(this.settings.active_class),t.data("target",e.get(0)).trigger("opened.fndtn.dropdown",[t,e]),t.attr("aria-hidden","false"),e.attr("aria-expanded","true"),t.focus(),t.addClass("f-open-"+this.attr_name(!0))},data_attr:function(){return 0<this.namespace.length?this.namespace+"-"+this.name:this.name},toggle:function(t){if(!t.hasClass(this.settings.disabled_class)){var e=this.S("#"+t.data(this.data_attr()));0!==e.length&&(this.close.call(this,this.S("["+this.attr_name()+"-content]").not(e)),e.hasClass(this.settings.active_class)?(this.close.call(this,e),e.data("target")!==t.get(0)&&this.open.call(this,e,t)):this.open.call(this,e,t))}},resize:function(){var t=this.S("["+this.attr_name()+"-content].open"),e=s(t.data("target"));t.length&&e.length&&this.css(t,e)},css:function(t,e){var i=Math.max((e.width()-t.width())/2,8),n=e.data(this.attr_name(!0)+"-init")||this.settings,s=t.parent().css("overflow-y")||t.parent().css("overflow");if(this.clear_idx(),this.small()){var a=this.dirs.bottom.call(t,e,n);t.attr("style","").removeClass("drop-left drop-right drop-top").css({position:"absolute",width:"95%","max-width":"none",top:a.top}),t.css(Foundation.rtl?"right":"left",i)}else if("visible"!==s){var r=e[0].offsetTop+e[0].offsetHeight;t.attr("style","").css({position:"absolute",top:r}),t.css(Foundation.rtl?"right":"left",i)}else this.style(t,e,n);return t},style:function(t,e,i){var n=s.extend({position:"absolute"},this.dirs[i.align].call(t,e,i));t.attr("style","").css(n)},dirs:{_base:function(t,e){var i=this.offsetParent(
27).offset(),n=t.offset();n.top-=i.top,n.left-=i.left,n.missRight=!1,n.missTop=!1,n.missLeft=!1,n.leftRightFlag=!1;var s=l.innerWidth,a=(s-(h.getElementsByClassName("row")[0]?h.getElementsByClassName("row")[0].clientWidth:s))/2;if(!this.hasClass("mega")&&!e.ignore_repositioning){var r=this.outerWidth(),o=t.offset().left;t.offset().top<=this.outerHeight()&&(n.missTop=!0,s-a,n.leftRightFlag=!0),o+a<o+r&&r<o-a&&(n.missRight=!0,n.missLeft=!1),o-r<=0&&(n.missLeft=!0,n.missRight=!1)}return n},top:function(t,e){var i=Foundation.libs.dropdown,n=i.dirs._base.call(this,t,e);return this.addClass("drop-top"),1==n.missTop&&(n.top=n.top+t.outerHeight()+this.outerHeight(),this.removeClass("drop-top")),1==n.missRight&&(n.left=n.left-this.outerWidth()+t.outerWidth()),(t.outerWidth()<this.outerWidth()||i.small()||this.hasClass(e.mega_menu))&&i.adjust_pip(this,t,e,n),Foundation.rtl?{left:n.left-this.outerWidth()+t.outerWidth(),top:n.top-this.outerHeight()}:{left:n.left,top:n.top-this.outerHeight()}},bottom:function(t,e){var i=Foundation.libs.dropdown,n=i.dirs._base.call(this,t,e);return 1==n.missRight&&(n.left=n.left-this.outerWidth()+t.outerWidth()),(t.outerWidth()<this.outerWidth()||i.small()||this.hasClass(e.mega_menu))&&i.adjust_pip(this,t,e,n),i.rtl?{left:n.left-this.outerWidth()+t.outerWidth(),top:n.top+t.outerHeight()}:{left:n.left,top:n.top+t.outerHeight()}},left:function(t,e){var i=Foundation.libs.dropdown.dirs._base.call(this,t,e);return this.addClass("drop-left"),1==i.missLeft&&(i.left=i.left+this.outerWidth(),i.top=i.top+t.outerHeight(),this.removeClass("drop-left")),{left:i.left-this.outerWidth(),top:i.top}},right:function(t,e){var i=Foundation.libs.dropdown.dirs._base.call(this,t,e);this.addClass("drop-right"),1==i.missRight?(i.left=i.left-this.outerWidth(),i.top=i.top+t.outerHeight(),this.removeClass("drop-right")):i.triggeredRight=!0;var n=Foundation.libs.dropdown;return(t.outerWidth()<this.outerWidth()||n.small()||this.hasClass(e.mega_menu))&&n.adjust_pip(this,t,e,i),{left:i.left+t.outerWidth(),top:i.top}}},adjust_pip:function(t,e,i,n){var s=Foundation.stylesheet,a=8;t.hasClass(i.mega_class)?a=n.left+e.outerWidth()/2-8:this.small()&&(a+=n.left-8),this.rule_idx=s.cssRules.length;var r=".f-dropdown.open:before",o=".f-dropdown.open:after",l="left: "+a+"px;",h="left: "+(a-1)+"px;";1==n.missRight&&(r=".f-dropdown.open:before",o=".f-dropdown.open:after",l="left: "+(a=t.outerWidth()-23)+"px;",h="left: "+(a-1)+"px;"),1==n.triggeredRight&&(r=".f-dropdown.open:before",o=".f-dropdown.open:after",l="left:-12px;",h="left:-14px;"),s.insertRule?(s.insertRule([r,"{",l,"}"].join(" "),this.rule_idx),s.insertRule([o,"{",h,"}"].join(" "),this.rule_idx+1)):(s.addRule(r,l,this.rule_idx),s.addRule(o,h,this.rule_idx+1))},clear_idx:function(){var t=Foundation.stylesheet;"undefined"!=typeof this.rule_idx&&(t.deleteRule(this.rule_idx),t.deleteRule(this.rule_idx),delete this.rule_idx)},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},off:function(){this.S(this.scope).off(".fndtn.dropdown"),this.S("html, body").off(".fndtn.dropdown"),this.S(l).off(".fndtn.dropdown"),this.S("[data-dropdown-content]").off(".fndtn.dropdown")},reflow:function(){}}}(jQuery,window,window.document),function(h,t){"use strict";Foundation.libs.equalizer={name:"equalizer",version:"5.5.3",settings:{use_tallest:!0,before_height_change:h.noop,after_height_change:h.noop,equalize_on_stack:!1,act_on_hidden_el:!1}
27,init:function(t,e,i){Foundation.inherit(this,"image_loaded"),this.bindings(e,i),this.reflow()},events:function(){this.S(t).off(".equalizer").on("resize.fndtn.equalizer",function(){this.reflow()}.bind(this))},equalize:function(t){var e,i,n=!1,s=t.data("equalizer"),a=t.data(this.attr_name(!0)+"-init")||this.settings;if(0!==(e=a.act_on_hidden_el?s?t.find("["+this.attr_name()+'-watch="'+s+'"]'):t.find("["+this.attr_name()+"-watch]"):s?t.find("["+this.attr_name()+'-watch="'+s+'"]:visible'):t.find("["+this.attr_name()+"-watch]:visible")).length&&(a.before_height_change(),t.trigger("before-height-change.fndth.equalizer"),e.height("inherit"),!1!==a.equalize_on_stack||(i=e.first().offset().top,e.each(function(){if(h(this).offset().top!==i)return!(n=!0)}),!n))){var r=e.map(function(){return h(this).outerHeight(!1)}).get();if(a.use_tallest){var o=Math.max.apply(null,r);e.css("height",o)}else{var l=Math.min.apply(null,r);e.css("height",l)}a.after_height_change(),t.trigger("after-height-change.fndtn.equalizer")}},reflow:function(){var n=this;this.S("["+this.attr_name()+"]",this.scope).each(function(){var t=h(this),e=t.data("equalizer-mq"),i=!0;e&&(e="is_"+e.replace(/-/g,"_"),Foundation.utils.hasOwnProperty(e)&&(i=!1)),n.image_loaded(n.S("img",this),function(){i||Foundation.utils[e]()?n.equalize(t):t.find("["+n.attr_name()+"-watch]:visible").css("height","auto")})})}}}(jQuery,window,window.document),function(r,n){"use strict";Foundation.libs.interchange={name:"interchange",version:"5.5.3",cache:{},images_loaded:!1,nodes_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":"only screen",small:Foundation.media_queries.small,"small-only":Foundation.media_queries["small-only"],medium:Foundation.media_queries.medium,"medium-only":Foundation.media_queries["medium-only"],large:Foundation.media_queries.large,"large-only":Foundation.media_queries["large-only"],xlarge:Foundation.media_queries.xlarge,"xlarge-only":Foundation.media_queries["xlarge-only"],xxlarge:Foundation.media_queries.xxlarge,landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(e,i,n){if(null!==e&&/IMG/.test(e[0].nodeName)){var t=r.each(e,function(){this.src=i});if(new RegExp(i,"i").test(t))return;return e.attr("src",i),n(e[0].src)}var s=e.data(this.data_attr+"-last-path"),a=this;if(s!=i)return/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i.test(i)?(r(e).css("background-image","url("+i+")"),e.data("interchange-last-path",i),n(i)):r.get(i,function(t){e.html(t),e.data(a.data_attr+"-last-path",i),n()})}}},init:function(t,e,i){Foundation.inherit(this,"throttle random_str"),this.data_attr=this.set_data_attr(),r.extend(!0,this.settings,e,i),this.bindings(e,i),this.reflow()},get_media_hash:function(){var t="";for(var e in this.settings.named_queries)t+=matchMedia(this.settings.named_queries[e]).matches.toString();return t},events:function(){var e,i=this;return r(n).off(".interchange").on("resize.fndtn.interchange",i.throttle(function(){var t=i.get_media_hash();t!==e&&i.resize(),e=t},50)),this},resize:function(){var t=this.cache;if(this.images_loaded&&this.nodes_loaded){for(var e in t)if(t.hasOwnProperty(e)){var i=this.results(e,t[e]);i&&this.settings.directives[i.scenario[1]].call(this,i.el,i.scenario[0],function(t){if(arguments[0]instanceof Array)var e=arguments[0];else e=Array.prototype.slice.call(arguments,0);return function(){t.el.trigger(t.scenario[1],e)}}(i))}}else setTimeout(r.proxy(this.resize,this),50)},results:function(t,e){var i=e.length;if(0<i)for(var n=this.S("["+this.add_namespace("data-uuid")+'="'+t+'"]');i--;){var s=e[i][2];if((this.settings.named_queries.hasOwnProperty(s)?matchMedia(this.settings.named_queries[s]):matchMedia(s)).matches)return{el:n,scenario:e[i]}}return!1},load:function(t,e){return("undefined"==typeof this["cached_"+t]||e)&&this["update_"+t](),this["cached_"+t]},update_images:function(){var t=this.S("img["+this.data_attr+"]"),e=t.length,i=e,n=0,s=this.data_attr;for(this.cache={},this.cached_images=[],this.images_loaded=0===e;i--;){if(n++,t[i])0<(t[i].getAttribute(s)||"").length&&this.cached_images.push(t[i]);n===e&&(this.images_loaded=!0,this.enhance("images"))}return this},update_nodes:function(){var t=this.S("["+this.data_attr+"]").not("img"),e=t.length,i=e,n=0,s=this.data_attr;for(this.cached_nodes=[],this.nodes_loaded=0===e;i--;
27){n++,0<(t[i].getAttribute(s)||"").length&&this.cached_nodes.push(t[i]),n===e&&(this.nodes_loaded=!0,this.enhance("nodes"))}return this},enhance:function(t){for(var e=this["cached_"+t].length;e--;)this.object(r(this["cached_"+t][e]));return r(n).trigger("resize.fndtn.interchange")},convert_directive:function(t){var e=this.trim(t);return 0<e.length?e:"replace"},parse_scenario:function(t){var e=t[0].match(/(.+),\s*(\w+)\s*$/),i=t[1].match(/(.*)\)/);if(e)var n=e[1],s=e[2];else n=t[0].split(/,\s*$/)[0],s="";return[this.trim(n),this.convert_directive(s),this.trim(i[1])]},object:function(t){var e=this.parse_data_attr(t),i=[],n=e.length;if(0<n)for(;n--;){var s=e[n].split(/,\s?\(/);if(1<s.length){var a=this.parse_scenario(s);i.push(a)}}return this.store(t,i)},store:function(t,e){var i=this.random_str(),n=t.data(this.add_namespace("uuid",!0));return this.cache[n]?this.cache[n]:(t.attr(this.add_namespace("data-uuid"),i),this.cache[i]=e)},trim:function(t){return"string"==typeof t?r.trim(t):t},set_data_attr:function(t){return t?0<this.namespace.length?this.namespace+"-"+this.settings.load_attr:this.settings.load_attr:0<this.namespace.length?"data-"+this.namespace+"-"+this.settings.load_attr:"data-"+this.settings.load_attr},parse_data_attr:function(t){for(var e=t.attr(this.attr_name()).split(/\[(.*?)\]/),i=e.length,n=[];i--;)4<e[i].replace(/[\W\d]+/,"").length&&n.push(e[i]);return n},reflow:function(){this.load("images",!0),this.load("nodes",!0)}}}(jQuery,window,window.document),function(l,h,n,s){"use strict";Foundation.libs.joyride={name:"joyride",version:"5.5.3",defaults:{expose:!1,modal:!0,keyboard:!0,tip_location:"bottom",nub_position:"auto",scroll_speed:1500,scroll_animation:"linear",timer:0,start_timer_on_click:!0,start_offset:0,next_button:!0,prev_button:!0,tip_animation:"fade",pause_after:[],exposed:[],tip_animation_fade_speed:300,cookie_monster:!1,cookie_name:"joyride",cookie_domain:!1,cookie_expires:365,tip_container:"body",abort_on_close:!0,tip_location_patterns:{top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},post_ride_callback:function(){},post_step_callback:function(){},pre_step_callback:function(){},pre_ride_callback:function(){},post_expose_callback:function(){},template:{link:'<a href="#close" class="joyride-close-tip">&times;</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="small button joyride-next-tip"></a>',prev_button:'<a href="#" class="small button joyride-prev-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',expose_cover:'<div class="joyride-expose-cover"></div>'},expose_add_class:""},init:function(t,e,i){Foundation.inherit(this,"throttle random_str"),this.settings=this.settings||l.extend({},this.defaults,i||e),this.bindings(e,i)},go_next:function(){this.settings.$li.next().length<1?this.end():0<this.settings.timer?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())},go_prev:function(){this.settings.$li.prev().length<1||(0<this.settings.timer?(clearTimeout(this.settings.automate),this.hide(),this.show(null,!0),this.startTimer()):(this.hide(),this.show(null,!0)))},events:function(){var e=this;l(this.scope).off(".joyride").on("click.fndtn.joyride",".joyride-next-tip, .joyride-modal-bg",function(t){t.preventDefault(),this.go_next()}.bind(this)).on("click.fndtn.joyride",".joyride-prev-tip",function(t){t.preventDefault(),this.go_prev()}.bind(this)).on("click.fndtn.joyride",".joyride-close-tip",function(t){t.preventDefault(),this.end(this.settings.abort_on_close)}.bind(this)).on("keyup.fndtn.joyride",function(t){if(this.settings.keyboard&&this.settings.riding)switch(t.which){case 39:t.preventDefault(),this.go_next();break;case 37:t.preventDefault(),this.go_prev();break;case 27:t.preventDefault(),this.end(this.settings.abort_on_close)}}.bind(this)),l(h).off(".joyride").on("resize.fndtn.joyride",e.throttle(function(){if(0<l("["+e.attr_name()+"]").length&&e.settings.$next_tip&&e.settings.ri
vendor: 35,161 bytes, lines 27-28
27ding){if(0<e.settings.exposed.length)l(e.settings.exposed).each(function(){var t=l(this);e.un_expose(t),e.expose(t)});e.is_phone()?e.pos_phone():e.pos_default(!1)}},100))},start:function(){var n=this,t=l("["+this.attr_name()+"]",this.scope),s=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],a=s.length;0<!t.length||(this.settings.init||this.events(),this.settings=t.data(this.attr_name(!0)+"-init"),this.settings.$content_el=t,this.settings.$body=l(this.settings.tip_container),this.settings.body_offset=l(this.settings.tip_container).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,this.settings.riding=!0,"function"!=typeof l.cookie&&(this.settings.cookie_monster=!1),(!this.settings.cookie_monster||this.settings.cookie_monster&&!l.cookie(this.settings.cookie_name))&&(this.settings.$tip_content.each(function(t){var e=l(this);this.settings=l.extend({},n.defaults,n.data_options(e));for(var i=a;i--;)n.settings[s[i]]=parseInt(n.settings[s[i]],10);n.create({$li:e,index:t})}),!this.settings.start_timer_on_click&&0<this.settings.timer?(this.show("init"),this.startTimer()):this.show("init")))},resume:function(){this.set_li(),this.show()},tip_template:function(t){var e,i;return t.tip_class=t.tip_class||"",e=l(this.settings.template.tip).addClass(t.tip_class),i=l.trim(l(t.li).html())+this.prev_button_text(t.prev_button_text,t.index)+this.button_text(t.button_text)+this.settings.template.link+this.timer_instance(t.index),e.append(l(this.settings.template.wrapper)),e.first().attr(this.add_namespace("data-index"),t.index),l(".joyride-content-wrapper",e).append(i),e[0]},timer_instance:function(t){return 0===t&&this.settings.start_timer_on_click&&0<this.settings.timer||0===this.settings.timer?"":l(this.settings.template.timer)[0].outerHTML},button_text:function(t){return this.settings.tip_settings.next_button?(t=l.trim(t)||"Next",t=l(this.settings.template.button).append(t)[0].outerHTML):t="",t},prev_button_text:function(t,e){return this.settings.tip_settings.prev_button?(t=l.trim(t)||"Previous",t=0==e?l(this.settings.template.prev_button).append(t).addClass("disabled")[0].outerHTML:l(this.settings.template.prev_button).append(t)[0].outerHTML):t="",t},create:function(t){this.settings.tip_settings=l.extend({},this.settings,this.data_options(t.$li));var e=t.$li.attr(this.add_namespace("data-button"))||t.$li.attr(this.add_namespace("data-text")),i=t.$li.attr(this.add_namespace("data-button-prev"))||t.$li.attr(this.add_namespace("data-prev-text")),n=t.$li.attr("class"),s=l(this.tip_template({tip_class:n,index:t.index,button_text:e,prev_button_text:i,li:t.$li}));l(this.settings.tip_container).append(s)},show:function(t,e){var i=null;if(this.settings.$li===s||-1===l.inArray(this.settings.$li.index(),this.settings.pause_after))if(this.settings.paused?this.settings.paused=!1:this.set_li(t,e),this.settings.attempts=0,this.settings.$li.length&&0<this.settings.$target.length){if(t&&(this.settings.pre_ride_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.pre_step_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tip_settings=l.extend({},this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tip_settings.tip_location_pattern=this.settings.tip_location_patterns[this.settings.tip_settings.tip_location],!/body/i.test(this.settings.$target.selector)&&!this.settings.expose){var n=l(".joyride-modal-bg");/pop/i.test(this.settings.tipAnimation)?n.hide():n.fadeOut(this.settings.tipAnimationFadeSpeed),this.scroll_to()}this.is_phone()?this.pos_phone(!0):this.pos_default(!0),i=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tip_animation)?(i.width(0),0<this.settings.timer?(this.settings.$next_tip.show(),setTimeout(function(){i.animate({width:i.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fade_speed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tip_animation)&&(i.width(0),0<this.settings.timer?(this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed).show(),setTimeout(function(){i.animate({width:i.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fade_speed)):this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed)),this.settings.$current_tip=this.settings.$next_tip}else this.settings.$li&&this.settings.$target.length<1?this.show(t,e):this.end();else this.settings.paused=!0},is_phone:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||l(".joyride-modal-bg").hide(),this.settings.$current_tip.css("visibility","hidden"),setTimeout(l.proxy(function(){this.hide(),this.css("visibility","visible")},this.settings.$current_tip),0),this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(t,e){t?(this.settings.$li=this.settings.$tip_content.eq(this.settings.start_offset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=e?this.settings.$li.prev():this.settings.$li.next(),this.set_next_tip()),this.set_target()},set_next_tip:function(){this.settings.$next_tip=l(".joyride-tip-guide").eq(this.settings.$li.index()),this.settings.$next_tip.data("closed","")},set_target:function(){var t=this.settings.$li.attr(this.add_namespace("data-class")),e=this.settings.$li.attr(this.add_namespace("data-id")),i=function(){return e?l(n.getElementById(e)):t?l("."+t).first():l("body")};this.settings.$target=i()},scroll_to:function(){var t,e;t=l(h).height()/2,0!=(e=Math.ceil(this.settings.$target.offset().top-t+this.settings.$next_tip.outerHeight()))&&l("html, body").stop().animate({scrollTop:e},this.settings.scroll_speed,"swing")},paused:function(){return-1===l.inArray(this.settings.$li.index()+1,this.settings.pause_after)},restart:function(){this.hide(),this.settings.$li=s,this.show("init")},pos_default:function(t){var e=this.settings.$next_tip.find(".joyride-nub"),i=Math.ceil(e.outerWidth()/2),n=Math.ceil(e.outerHeight()/2),s=t||!1;if(s&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector))this.settings.$li.length&&this.pos_modal(e);else{var a=this.settings.tip_settings.tipAdjustmentY?parseInt(this.settings.tip_settings.tipAdjustmentY):0,r=this.settings.tip_settings.tipAdjustmentX?parseInt(this.settings.tip_settings.tipAdjustmentX):0;this.bottom()?(this.rtl?this.settings.$next_tip.css({top:this.settings.$target.offset().top+n+this.settings.$target.outerHeight()+a,left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()+r}):this.settings.$next_tip.css({top:this.settings.$target.offset().top+n+this.settings.$target.outerHeight()+a,left:this.settings.$target.offset().left+r}),this.nub_position(e,this.settings.tip_settings.nub_position,"top")):this.top()?(this.rtl?this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-n+a,left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()}):this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-n+a,left:this.settings.$target.offset().left+r}),this.nub_position(e,this.settings.tip_settings.nub_position,"bottom")):this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top+a,left:this.settings.$target.outerWidth()+this.settings.$target.offset().left+i+r}),this.nub_position(e,this.settings.tip_settings.nub_position,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top+a,left:this.settings.$target.offset().left-this.settings.$next_tip.outerWidth()-i+r}),this.nub_position(e,this.settings.tip_settings.nub_position,"right")),!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tip_settings.tip_location_pattern.length&&(e.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tip_settings.tip_location=this.settings.tip_settings.tip_location_pattern[this.settings.attempts],this.settings.attempts++,this.pos_default())}s&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(t){var e=this.settings.$next_tip.outerHeight(),i=(this.settings.$next_tip.offset(),this.settings.$target.outerHeight()),n=l(".joyride-nub",this.settings.$next_tip),s=Math.ceil(n.outerHeight()/2),a=t||!1;n.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),a&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(n):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-e-s}),n.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+i+s}),n.addClass("top")),a&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_modal:function(t){this.center(),t.hide(),this.show_modal()},show_modal:function(){if(!this.settings.$next_tip.data("closed")){var t;if((t=l(".joyride-modal-bg")).length<1)(t=l(this.settings.template.modal)).appendTo("body");/pop/i.test(this.settings.tip_animation)?t.show():t.fadeIn(this.settings.tip_animation_fade_speed)}},expose:function(t){var e,i,n,s,a,r="expose-"+this.random_str(6);if(0<arguments.length&&t instanceof l)n=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;n=this.settings.$target}if(n.length<1)return h.console&&console.error("element not valid",n),!1;e=l(this.settings.template.expose),this.settings.$body.append(e),e.css({top:n.offset().top,left:n.offset().left,width:n.outerWidth(!0),height:n.outerHeight(!0)}),i=l(this.settings.template.expose_cover),s={zIndex:n.css("z-index"),position:n.css("position")},a=null==n.attr("class")?"":n.attr("class"),n.css("z-index",parseInt(e.css("z-index"))+1),"static"==s.position&&n.css("position","relative"),n.data("expose-css",s),n.data("orig-class",a),n.attr("class",a+" "+this.settings.expose_add_class),i.css({top:n.offset().top,left:n.offset().left,width:n.outerWidth(!0),height:n.outerHeight(!0)}),this.settings.modal&&this.show_modal(),this.settings.$body.append(i),e.addClass(r),i.addClass(r),n.data("expose",r),this.settings.post_expose_callback(this.settings.$li.index(),this.settings.$next_tip,n),this.add_exposed(n)},un_expose:function(t,e){var i,n,s,a,r,o=!1;if(0<arguments.length&&t instanceof l)n=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;n=this.settings.$target}if(n.length<1)return h.console&&console.error("element not valid",n),!1;i=n.data("expose"),s=l("."+i),1<arguments.length&&(o=e),!0===o?l(".joyride-expose-wrapper,.joyride-expose-cover").remove():s.remove(),"auto"==(a=n.data("expose-css")).zIndex?n.css("z-index",""):n.css("z-index",a.zIndex),a.position!=n.css("position")&&("static"==a.position?n.css("position",""):n.css("position",a.position)),r=n.data("orig-class"),n.attr("class",r),n.removeData("orig-classes"),n.removeData("expose"),n.removeData("expose-z-index"),this.remove_exposed(n)},add_exposed:function(t){this.settings.exposed=this.settings.exposed||[],t instanceof l||"object"==typeof t?this.settings.exposed.push(t[0]):"string"==typeof t&&this.settings.exposed.push(t)},remove_exposed:function(t){var e,i;for(t instanceof l?e=t[0]:"string"==typeof t&&(e=t),this.settings.exposed=this.settings.exposed||[],i=this.settings.exposed.length;i--;)if(this.settings.exposed[i]==e)return void this.settings.exposed.splice(i,1)},center:function(){var t=l(h);return this.settings.$next_tip.css({top:(t.height()-this.settings.$next_tip.outerHeight())/2+t.scrollTop(),left:(t.width()-this.settings.$next_tip.outerWidth())/2+t.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(this.settings.tip_settings.tip_location)},top:function(){return/top/i.test(this.settings.tip_settings.tip_location)},right:function(){return/right/i.test(this.settings.tip_settings.tip_location)},left:function(){return/left/i.test(this.settings.tip_settings.tip_location)},corners:function(t){if(0===t.length)return[!1,!1,!1,!1];var e=l(h),i=e.height()/2,n=Math.ceil(this.settings.$target.offset().top-i+this.settings.$next_tip.outerHeight()),s=e.width()+e.scrollLeft(),a=e.height()+n,r=e.height()+e.scrollTop(),o=e.scrollTop();return n<o&&(o=n<0?0:n),r<a&&(r=a),[t.offset().top<o,s<t.offset().left+t.outerWidth(),r<t.offset().top+t.outerHeight(),e.scrollLeft()>t.offset().left]},visible:function(t){for(var e=t.length;e--;)if(t[e])return!1;return!0},nub_position:function(t,e,i){"auto"===e?t.addClass(i):t.addClass(e)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide(),this.show(),this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(t){this.settings.cookie_monster&&l.cookie(this.settings.cookie_name,"ridden",{expires:this.settings.cookie_expires,domain:this.settings.cookie_domain}),0<this.settings.timer&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),l(this.scope).off("keyup.joyride"),this.settings.$next_tip.data("closed",!0),this.settings.riding=!1,l(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),void 0!==t&&!1!==t||(this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip),this.settings.post_ride_callback(this.settings.$li.index(),this.settings.$current_tip)),l(".joyride-tip-guide").remove()},off:function(){l(this.scope).off(".joyride"),l(h).off(".joyride"),l(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),l(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate)},reflow:function(){}}}(jQuery,window,window.document),function(c,t){"use strict";Foundation.libs["magellan-expedition"]={name:"magellan-expedition",version:"5.5.3",settings:{active_class:"active",threshold:0,destination_threshold:20,throttle_delay:30,fixed_top:0,offset_by_height:!0,duration:700,easing:"swing"},init:function(t,e,i){Foundation.inherit(this,"throttle"),this.bindings(e,i)},events:function(){var d=this,t=d.S,e=d.settings;d.set_expedition_position(),t(d.scope).off(".magellan").on("click.fndtn.magellan","["+d.add_namespace("data-magellan-arrival")+"] a[href*=#]",function(t){var e=this.hostname===location.hostname||!this.hostname,i=d.filterPathname(location.pathname)===d.filterPathname(this.pathname),n=this.hash.replace(/(:|\.|\/)/g,"\\$1"),s=this;if(e&&i&&n){t.preventDefault();var a=c(this).closest("["+d.attr_name()+"]"),r=a.data("magellan-expedition-init"),o=this.hash.split("#").join(""),l=c('a[name="'+o+'"]');0===l.length&&(l=c("#"+o));var h=l.offset().top-r.destination_threshold+1;r.offset_by_height&&(h-=a.outerHeight()),c("html, body").stop().animate({scrollTop:h},r.duration,r.easing,function(){history.pushState?history.pushState(null,null,s.pathname+s.search+"#"+o):location.hash=s.pathname+s.search+"#"+o})}}).on("scroll.fndtn.magellan",d.throttle(this.check_for_arrivals.bind(this),e.throttle_delay))},check_for_arrivals:function(){var t=this;t.update_arrivals(),t.update_expedition_positions()},set_expedition_position:function(){var a=this;c("["+this.attr_name()+"=fixed]",a.scope).each(function(){var t,e,i=c(this),n=i.data("magellan-expedition-init"),s=i.attr("styles");i.attr("style",""),t=i.offset().top+n.threshold,e=parseInt(i.data("magellan-fixed-top")),isNaN(e)||(a.settings.fixed_top=e),i.data(a.data_attr("magellan-top-offset"),t),i.attr("style",s)})},update_expedition_positions:function(){var a=this,r=c(t).scrollTop();c("["+this.attr_name()+"=fixed]",a.scope).each(function(){var t=c(this),e=t.data("magellan-expedition-init"),i=t.attr("style"),n=t.data("magellan-top-offset");if(r+a.settings.fixed_top>=n){var s=t.prev("["+a.add_namespace("data-magellan-expedition-clone")+"]");0===s.length&&((s=t.clone()).removeAttr(a.attr_name()),s.attr(a.add_namespace("data-magellan-expedition-clone"),""),t.before(s)),t.css({position:"fixed",top:e.fixed_top}).addClass("fixed")}else t.prev("["+a.add_namespace("data-magellan-expedition-clone")+"]").remove(),t.attr("style",i).css("position","").css("top","").removeClass("fixed")})},update_arrivals:function(){var a=this,r=c(t).scrollTop();c("["+this.attr_name()+"]",a.scope).each(function(){var i=c(this),n=i.data(a.attr_name(!0)+"-init"),t=a.offsets(i,r),e=i.find("["+a.add_namespace("data-magellan-arrival")+"]"),s=!1;t.each(function(t,e){if(e.viewport_offset>=e.top_offset)return i.find("["+a.add_namespace("data-magellan-arrival")+"]").not(e.arrival).removeClass(n.active_class),e.arrival.addClass(n.active_class),s=!0}),s||e.removeClass(n.active_class)})},offsets:function(n,t){var s=this,a=n.data(s.attr_name(!0)+"-init"),r=t;return n.find("["+s.add_namespace("data-magellan-arrival")+"]").map(function(){var t=c(this).data(s.data_attr("magellan-arrival")),e=c("["+s.add_namespace("data-magellan-destination")+"="+t+"]");if(0<e.length){var i=e.offset().top-a.destination_threshold;return a.offset_by_height&&(i-=n.outerHeight()),i=Math.floor(i),{destination:e,arrival:c(this),top_offset:i,viewport_offset:r}}}).sort(function(t,e){return t.top_offset<e.top_offset?-1:t.top_offset>e.top_offset?1:0})},data_attr:function(t){return 0<this.namespace.length?this.namespace+"-"+t:t},off:function(){this.S(this.scope).off(".magellan"),this.S(t).off(".magellan")},filterPathname:function(t){return(t=t||"").replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},reflow:function(){var t=this;c("["+t.add_namespace("data-magellan-expedition-clone")+"]",t.scope).remove()}}}(jQuery,window,window.document),function(d){"use strict";Foundation.libs.offcanvas={name:"offcanvas",version:"5.5.3",settings:{open_method:"move",close_on_click:!1},init:function(t,e,i){this.bindings(e,i)},events:function(){var n=this,s=n.S,a="",r="",o="",l="",h="";"move"===this.settings.open_method?(a="move-",r="right",o="left",l="top",h="bottom"):"overlap_single"===this.settings.open_method?(a="offcanvas-overlap-",r="right",o="left",l="top",h="bottom"):"overlap"===this.settings.open_method&&(a="offcanvas-overlap"),s(this.scope).off(".offcanvas").on("click.fndtn.offcanvas",".left-off-canvas-toggle",function(t){n.click_toggle_class(t,a+r),"overlap"!==n.settings.open_method&&s(".left-submenu").removeClass(a+r),d(".left-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".left-off-canvas-menu a",function(t){var e=n.get_settings(t),i=s(this).parent();!e.close_on_click||i.hasClass("has-submenu")||i.hasClass("back")?s(this).parent().hasClass("has-submenu")?(t.preventDefault(),s(this).siblings(".left-submenu").toggleClass(a+r)):i.hasClass("back")&&(t.preventDefault(),i.parent().removeClass(a+r)):(n.hide.call(n,a+r,n.get_wrapper(t)),i.parent().removeClass(a+r)),d(".left-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".right-off-canvas-toggle",function(t){n.click_toggle_class(t,a+o),"overlap"!==n.settings.open_method&&s(".right-submenu").removeClass(a+o),d(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".right-off-canvas-menu a",function(t){var e=n.get_settings(t),i=s(this).parent();!e.close_on_click||i.hasClass("has-submenu")||i.hasClass("back")?s(this).parent().hasClass("has-submenu")?(t.preventDefault(),s(this).siblings(".right-submenu").toggleClass(a+o)):i.hasClass("back")&&(t.preventDefault(),i.parent().removeClass(a+o)):(n.hide.call(n,a+o,n.get_wrapper(t)),i.parent().removeClass(a+o)),d(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".top-off-canvas-toggle",function(t){n.click_toggle_class(t,a+h),"overlap"!==n.settings.open_method&&s(".top-submenu").removeClass(a+h),d(".top-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",
28".top-off-canvas-menu a",function(t){var e=n.get_settings(t),i=s(this).parent();!e.close_on_click||i.hasClass("has-submenu")||i.hasClass("back")?s(this).parent().hasClass("has-submenu")?(t.preventDefault(),s(this).siblings(".top-submenu").toggleClass(a+h)):i.hasClass("back")&&(t.preventDefault(),i.parent().removeClass(a+h)):(n.hide.call(n,a+h,n.get_wrapper(t)),i.parent().removeClass(a+h)),d(".top-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".bottom-off-canvas-toggle",function(t){n.click_toggle_class(t,a+l),"overlap"!==n.settings.open_method&&s(".bottom-submenu").removeClass(a+l),d(".bottom-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".bottom-off-canvas-menu a",function(t){var e=n.get_settings(t),i=s(this).parent();!e.close_on_click||i.hasClass("has-submenu")||i.hasClass("back")?s(this).parent().hasClass("has-submenu")?(t.preventDefault(),s(this).siblings(".bottom-submenu").toggleClass(a+l)):i.hasClass("back")&&(t.preventDefault(),i.parent().removeClass(a+l)):(n.hide.call(n,a+l,n.get_wrapper(t)),i.parent().removeClass(a+l)),d(".bottom-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(t){n.click_remove_class(t,a+o),s(".right-submenu").removeClass(a+o),r&&(n.click_remove_class(t,a+r),s(".left-submenu").removeClass(a+o)),d(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(t){n.click_remove_class(t,a+o),d(".left-off-canvas-toggle").attr("aria-expanded","false"),r&&(n.click_remove_class(t,a+r),d(".right-off-canvas-toggle").attr("aria-expanded","false"))}).on("click.fndtn.offcanvas",".exit-off-canvas",function(t){n.click_remove_class(t,a+l),s(".bottom-submenu").removeClass(a+l),h&&(n.click_remove_class(t,a+h),s(".top-submenu").removeClass(a+l)),d(".bottom-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(t){n.click_remove_class(t,a+l),d(".top-off-canvas-toggle").attr("aria-expanded","false"),h&&(n.click_remove_class(t,a+h),d(".bottom-off-canvas-toggle").attr("aria-expanded","false"))})},toggle:function(t,e){(e=e||this.get_wrapper()).is("."+t)?this.hide(t,e):this.show(t,e)},show:function(t,e){(e=e||this.get_wrapper()).trigger("open.fndtn.offcanvas"),e.addClass(t)},hide:function(t,e){(e=e||this.get_wrapper()).trigger("close.fndtn.offcanvas"),e.removeClass(t)},click_toggle_class:function(t,e){t.preventDefault();var i=this.get_wrapper(t);this.toggle(e,i)},click_remove_class:function(t,e){t.preventDefault();var i=this.get_wrapper(t);this.hide(e,i)},get_settings:function(t){return this.S(t.target).closest("["+this.attr_name()+"]").data(this.attr_name(!0)+"-init")||this.settings},get_wrapper:function(t){var e=this.S(t?t.target:this.scope).closest(".off-canvas-wrap");return 0===e.length&&(e=this.S(".off-canvas-wrap")),e},reflow:function(){}}}(jQuery,window,window.document),function(f,a,r,o){"use strict";var t=function(){},i=function(t,l){if(t.hasClass(l.slides_container_class))return this;var n,e,i,s,h,d,c=this,u=t,p=0;c.slides=function(){return u.children(l.slide_selector)},c.slides().first().addClass(l.active_slide_class),c.update_slide_number=function(t){l.slide_number&&(e.find("span:first").text(parseInt(t)+1),e.find("span:last").text(c.slides().length)),l.bullets&&(i.children().removeClass(l.bullets_active_class),f(i.children().get(t)).addClass(l.bullets_active_class))},c.update_active_link=function(t){var e=f('[data-orbit-link="'+c.slides().eq(t).attr("data-orbit-slide")+'"]');e.siblings().removeClass(l.bullets_active_class),e.addClass(l.bullets_active_class)},c.build_markup=function(){u.wrap('<div class="'+l.container_class+'"></div>'),n=u.parent(),u.addClass(l.slides_container_class),l.stack_on_small&&n.addClass(l.stack_on_small_class),l.navigation_arrows&&(n.append(f('<a href="#"><span></span></a>').addClass(l.prev_class)),n.append(f('<a href="#"><span></span></a>').addClass(l.next_class))),l.timer&&((s=f("<div>").addClass(l.timer_container_class)).append("<span>"),s.append(f("<div>").addClass(l.timer_progress_class)),s.addClass(l.timer_paused_class),n.append(s)),l.slide_number&&((e=f("<div>").addClass(l.slide_number_class)).append("<span></span> "+l.slide_number_text+" <span></span>"),n.append(e)),l.bullets&&(i=f("<ol>").addClass(l.bullets_container_class),n.append(i),i.wrap('<div class="orbit-bullets-container"></div>'),c.slides().each(function(t){var e=f("<li>").attr("data-orbit-slide",t).on("click",c.link_bullet);i.append(e)}))},c._goto=function(e,i){if(e===p)return!1;"object"==typeof d&&d.restart();var n=c.slides(),t="next";if(!0,e<p&&(t="prev"),e>=n.length){if(!l.circular)return!1;e=0}else if(e<0){if(!l.circular)return!1;e=n.length-1}var s=f(n.get(p)),a=f(n.get(e));s.css("zIndex",2),s.removeClass(l.active_slide_class),a.css("zIndex",4).addClass(l.active_slide_class),u.trigger("before-slide-change.fndtn.orbit"),l.before_slide_change(),c.update_active_link(e);var r=function(){var t=function(){p=e,!!1===i&&(d=c.create_timer()).start(),c.update_slide_number(p),u.trigger("after-slide-change.fndtn.orbit",[{slide_number:p,total_slides:n.length}]),l.after_slide_change(p,n.length)};u.outerHeight()!=a.outerHeight()&&l.variable_height?u.animate({height:a.outerHeight()},250,"linear",t):t()};if(1===n.length)return r(),!1;var o=function(){"next"===t&&h.next(s,a,r),"prev"===t&&h.prev(s,a,r)};a.outerHeight()>u.outerHeight()&&l.variable_height?u.animate({height:a.outerHeight()},250,"linear",o):o()},c.next=function(t){t.stopImmediatePropagation(),t.preventDefault(),c._goto(p+1)},c.prev=function(t){t.stopImmediatePropagation(),t.preventDefault(),c._goto(p-1)},c.link_custom=function(t){t.preventDefault();var e=f(this).attr("data-orbit-link");if("string"==typeof e&&""!=(e=f.trim(e))){var i=n.find("[data-orbit-slide="+e+"]");-1!=i.index()&&c._goto(i.index())}},c.link_bullet=function(){var t=f(this).attr("data-orbit-slide");if("string"==typeof t&&""!=(t=f.trim(t)))if(isNaN(parseInt(t))){var e=n.find("[data-orbit-slide="+t+"]");-1!=e.index()&&c._goto(e.index()+1)}else c._goto(parseInt(t))},c.timer_callback=function(){c._goto(p+1,!0)},c.compute_dimensions=function(){var t=f(c.slides().get(p)).outerHeight();l.variable_height||c.slides().each(function(){f(this).outerHeight()>t&&(t=f(this).outerHeight())}),u.height(t)},c.create_timer=function(){return new g(n.find("."+l.timer_container_class),l,c.timer_callback)},c.stop_timer=function(){"object"==typeof d&&d.stop()},c.toggle_timer=function(){n.find("."+l.timer_container_class).hasClass(l.timer_paused_class)?(void 0===d&&(d=c.create_timer()),d.start()):"object"==typeof d&&d.stop()},c.init=function(){c.build_markup(),l.timer&&(d=c.create_timer(),Foundation.utils.image_loaded(this.slides().children("img"),d.start)),h=new v(l,u),"slide"===l.animation&&(h=new m(l,u)),n.on("click","."+l.next_class,c.next),n.on("click","."+l.prev_class,c.prev),l.next_on_click&&n.on("click","."+l.slides_container_class+" [data-orbit-slide]",c.link_bullet),n.on("click",c.toggle_timer),l.swipe&&n.on("touchstart.fndtn.orbit",function(t){t.touches||(t=t.originalEvent);var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:o};n.data("swipe-transition",e),t.stopPropagation()}).on("touchmove.fndtn.orbit",function(t){if(t.touches||(t=t.originalEvent),!(1<t.touches.length||t.scale&&1!==t.scale)){var e=n.data("swipe-transition");if(void 0===e&&(e={}),e.delta_x=t.touches[0].pageX-e.start_page_x,"undefined"==typeof e.is_scrolling&&(e.is_scrolling=!!(e.is_scrolling||Math.abs(e.delta_x)<Math.abs(t.touches[0].pageY-e.start_page_y))),!e.is_scrolling&&!e.active){t.preventDefault();var i=e.delta_x<0?p+1:p-1;e.active=!0,c._goto(i)}}}).on("touchend.fndtn.orbit",function(t){n.data("swipe-transition",{}),t.stopPropagation()}),n.on("mouseenter.fndtn.orbit",function(){l.timer&&l.pause_on_hover&&c.stop_timer()}).on("mouseleave.fndtn.orbit",function(){l.timer&&l.resume_on_mouseout&&d.start()}),f(r).on("click","[data-orbit-link]",c.link_custom),f(a).on("load resize",c.compute_dimensions),Foundation.utils.image_loaded(this.slides().children("img"),c.compute_dimensions),Foundation.utils.image_loaded(this.slides().children("img"),function(){n.prev("."+l.preloader_class).css("display","none"),c.update_slide_number(0),c.update_active_link(0),u.trigger("ready.fndtn.orbit")})},c.init()},g=function(i,n,t){var s,a,r=this,o=n.timer_speed,l=i.find("."+n.timer_progress_class),h=-1;this.update_progress=function(t){var e=l.clone();e.attr("style",""),e.css("width",t+"%"),l.replaceWith(e),l=e},this.restart=function(){clearTimeout(a),i.addClass(n.timer_paused_class),h=-1,r.update_progress(0)},this.start=function(){if(!i.hasClass(n.timer_paused_class))return!0;h=-1===h?o:h,i.removeClass(n.timer_paused_class),s=(new Date).getTime(),l.animate({width:"100%"},h,"linear"),a=setTimeout(function(){r.restart(),t()},h),i.trigger("timer-started.fndtn.orbit")},this.stop=function(){if(i.hasClass(n.timer_paused_class))return!0;clearTimeout(a),i.addClass(n.timer_paused_class);var t=(new Date).getTime(),e=100-(h-=t-s)/o*100;r.update_progress(e),i.trigger("timer-stopped.fndtn.orbit")}},m=function(t){var n=t.animation_speed,s=1===f("html[dir=rtl]").length?"marginRight":"marginLeft",a={};a[s]="0%",this.next=function(t,e,i){t.animate({marginLeft:"-100%"},n),e.animate(a,n,function(){t.css(s,"100%"),i()})},this.prev=function(t,e,i){t.animate({marginLeft:"100%"},n),e.css(s,"-100%"),e.animate(a,n,function(){t.css(s,"100%"),i()})}},v=function(t){var n=t.animation_speed;f("html[dir=rtl]").length;this.next=function(t,e,i){e.css({margin:"0%",opacity:"0.01"}),e.animate({opacity:"1"},n,"linear",function(){t.css("margin","100%"),i()})},this.prev=function(t,e,i){e.css({margin:"0%",opacity:"0.01"}),e.animate({opacity:"1"},n,"linear",function(){t.css("margin","100%"),i()})}};Foundation.libs=Foundation.libs||{},Foundation.libs.orbit={name:"orbit",version:"5.5.3",settings:{animation:"slide",timer_speed:1e4,pause_on_hover:!0,resume_on_mouseout:!1,next_on_click:!0,animation_speed:500,stack_on_small:!1,navigation_arrows:!0,slide_number:!0,slide_number_text:"of",container_class:"orbit-container",stack_on_small_class:"orbit-stack-on-small",next_class:"orbit-next",prev_class:"orbit-prev",timer_container_class:"orbit-timer",timer_paused_class:"paused",timer_progress_class:"orbit-progress",slides_container_class:"orbit-slides-container",preloader_class:"preloader",slide_selector:"*",bullets_container_class:"orbit-bullets",bullets_active_class:"active",slide_number_class:"orbit-slide-number",caption_class:"orbit-caption",active_slide_class:"active",orbit_transition_class:"orbit-transitioning",bullets:!0,circular:!0,timer:!0,variable_height:!1,swipe:!0,before_slide_change:t,after_slide_change:t},init:function(t,e,i){this.bindings(e,i)},events:function(t){var e=new i(this.S(t),this.S(t).data("orbit-init"));this.S(t).data(this.name+"-instance",e)},reflow:function(){var n=this;n.S(n.scope).is("[data-orbit]")?n.S(n.scope).data(n.name+"-instance").compute_dimensions():n.S("[data-orbit]",n.scope).each(function(t,e){var i=n.S(e);n.data_options(i);i.data(n.name+"-instance").compute_dimensions()})}}}(jQuery,window,window.document),function(l,h,t,d){"use strict";function c(t){var e=/fade/i.test(t),i=/pop/i.test(t);return{animate:e||i,pop:i,fade:e}}var u=[];Foundation.libs.reveal={name:"reveal",version:"5.5.3",locked:!1,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:!0,close_on_esc:!0,dismiss_modal_class:"close-reveal-modal",multiple_opened:!1,bg_class:"reveal-modal-bg",root_element:"body",open:function(){},opened:function(){},close:function(){},closed:function(){},on_ajax_error:l.noop,bg:l(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(t,e,i){l.extend(!0,this.settings,e,i),this.bindings(e,i)},events:function(){var a=this,r=a.S;return r(this.scope).off(".reveal").on("click.fndtn.reveal","["+this.add_namespace("data-reveal-id")+"]:not([disabled])",function(t){if(t.preventDefault(),!a.locked){var e=r(this),i=e.data(a.data_attr("reveal-ajax")),n=e.data(a.data_attr("reveal-replace-content"));if(a.locked=!0,void 0===i)a.open.call(a,e);else{var s=!0===i?e.attr("href"):i;a.open.call(a,e,{url:s},{replaceContentSel:n})}}}),r(t).on("click.fndtn.reveal",this.close_targets(),function(t){if(t.preventDefault(),!a.locked){var e=r("["+a.attr_name()+"].open").data(a.attr_name(!0)+"-init")||a.settings,i=r(t.target)[0]===r("."+e.bg_class)[0];if(i){if(!e.close_on_background_click)return;t.stopPropagation()}a.locked=!0,a.close.call(a,i?r("["+a.attr_name()+"].open:not(.toback)"):r(this).closest("["+a.attr_name()+"]"))}}),0<r("["+a.attr_name()+"]",this.scope).length?r(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video):r(this.scope).on("open.fndtn.reveal","["+a.attr_name()+"]",this.settings.open).on("opened.fndtn.reveal","["+a.attr_name()+"]",this.settings.opened).on("opened.fndtn.reveal","["+a.attr_name()+"]",this.open_video).on("close.fndtn.reveal","["+a.attr_name()+"]",this.settings.close).on("closed.fndtn.reveal","["+a.attr_name()+"]",this.settings.closed).on("closed.fndtn.reveal","["+a.attr_name()+"]",this.close_video),!0},key_up_on:function(){var n=this;return n.S("body").off("keyup.fndtn.reveal").on("keyup.fndtn.reveal",function(t){var e=n.S("["+n.attr_name()+"].open"),i=e.data(n.attr_name(!0)+"-init")||n.settings;i&&27===t.which&&i.close_on_esc&&!n.locked&&n.close.call(n,e)}),!0},key_up_off:function(){return this.S("body").off("keyup.fndtn.reveal"),!0},open:function(t,e){var s,a=this;t?"undefined"!=typeof t.selector?s=a.S("#"+t.data(a.data_attr("reveal-id"))).first():(s=a.S(this.scope),e=t):s=a.S(this.scope);var i=s.data(a.attr_name(!0)+"-init");if(i=i||this.settings,s.hasClass("open")&&t!==d&&t.attr("data-reveal-id")==s.attr("id"))return a.close(s);if(!s.hasClass("open")){var n=a.S("["+a.attr_name()+"].open");void 0===s.data("css-top")&&s.data("css-top",parseInt(s.css("top"),10)).data("offset",this.cache_offset(s)),s.attr("tabindex","0").attr("aria-hidden","false"),this.key_up_on(s),s.on("open.fndtn.reveal",function(t){t.namespace}),s.on("open.fndtn.reveal").trigger("open.fndtn.reveal"),n.length<1&&this.toggle_bg(s,!0),"string"==typeof e&&(e={url:e});var r=function(){0<n.length&&(i.multiple_opened?a.to_back(n):a.hide(n,i.css.close)),i.multiple_opened&&u.push(s),a.show(s,i.css.open)};if(void 0!==e&&e.url){var o="undefined"!=typeof e.success?e.success:null;
28l.extend(e,{success:function(t,e,i){if(l.isFunction(o)){var n=o(t,e,i);"string"==typeof n&&(t=n)}"undefined"!=typeof options&&"undefined"!=typeof options.replaceContentSel?s.find(options.replaceContentSel).html(t):s.html(t),a.S(s).foundation("section","reflow"),a.S(s).children().foundation(),r()}}),i.on_ajax_error!==l.noop&&l.extend(e,{error:i.on_ajax_error}),l.ajax(e)}else r()}a.S(h).trigger("resize")},close:function(i){i=i&&i.length?i:this.S(this.scope);var t=this.S("["+this.attr_name()+"].open"),e=i.data(this.attr_name(!0)+"-init")||this.settings,n=this;if(0<t.length)if(i.removeAttr("tabindex","0").attr("aria-hidden","true"),this.locked=!0,this.key_up_off(i),i.trigger("close.fndtn.reveal"),(e.multiple_opened&&1===t.length||!e.multiple_opened||1<i.length)&&(n.toggle_bg(i,!1),n.to_front(i)),e.multiple_opened){var s=i.is(":not(.toback)");n.hide(i,e.css.close,e),s?u.pop():u=l.grep(u,function(t){var e=t[0]===i[0];return e&&n.to_front(i),!e}),0<u.length&&n.to_front(u[u.length-1])}else n.hide(t,e.css.close,e)},close_targets:function(){var t="."+this.settings.dismiss_modal_class;return this.settings.close_on_background_click?t+", ."+this.settings.bg_class:t},toggle_bg:function(t,e){0===this.S("."+this.settings.bg_class).length&&(this.settings.bg=l("<div />",{"class":this.settings.bg_class}).appendTo("body").hide());var i=0<this.settings.bg.filter(":visible").length;e!=i&&((e==d?i:!e)?this.hide(this.settings.bg):this.show(this.settings.bg))},show:function(t,e){if(e){var i=(o=t.data(this.attr_name(!0)+"-init")||this.settings).root_element,n=this;if(0===t.parent(i).length){var s=t.wrap('<div style="display: none;" />').parent();t.on("closed.fndtn.reveal.wrapped",function(){t.detach().appendTo(s),t.unwrap().unbind("closed.fndtn.reveal.wrapped")}),t.detach().appendTo(i)}var a=c(o.animation);if(a.animate||(this.locked=!1),a.pop){e.top=l(h).scrollTop()-t.data("offset")+"px";var r={top:l(h).scrollTop()+t.data("css-top")+"px",opacity:1};return setTimeout(function(){return t.css(e).animate(r,o.animation_speed,"linear",function(){n.locked=!1,t.trigger("opened.fndtn.reveal")}).addClass("open")},o.animation_speed/2)}if(e.top=l(h).scrollTop()+t.data("css-top")+"px",a.fade){r={opacity:1};return setTimeout(function(){return t.css(e).animate(r,o.animation_speed,"linear",function(){n.locked=!1,t.trigger("opened.fndtn.reveal")}).addClass("open")},o.animation_speed/2)}return t.css(e).show().css({opacity:1}).addClass("open").trigger("opened.fndtn.reveal")}var o;return c((o=this.settings).animation).fade?t.fadeIn(o.animation_speed/2):(this.locked=!1,t.show())},to_back:function(t){t.addClass("toback")},to_front:function(t){t.removeClass("toback")},hide:function(t,e){if(e){var i=t.data(this.attr_name(!0)+"-init"),n=this,s=c((i=i||this.settings).animation);if(s.animate||(this.locked=!1),s.pop){var a={top:-l(h).scrollTop()-t.data("offset")+"px",opacity:0};return setTimeout(function(){return t.animate(a,i.animation_speed,"linear",function(){n.locked=!1,t.css(e).trigger("closed.fndtn.reveal")}).removeClass("open")},i.animation_speed/2)}if(s.fade){a={opacity:0};return setTimeout(function(){return t.animate(a,i.animation_speed,"linear",function(){n.locked=!1,t.css(e).trigger("closed.fndtn.reveal")}).removeClass("open")},i.animation_speed/2)}return t.hide().css(e).removeClass("open").trigger("closed.fndtn.reveal")}return c((i=this.settings).animation).fade?t.fadeOut(i.animation_speed/2):t.hide()},close_video:function(t){var e=l(".flex-video",t.target),i=l("iframe",e);0<i.length&&(i.attr("data-src",i[0].src),i.attr("src",i.attr("src")),e.hide())},open_video:function(t){var e=l(".flex-video",t.target),i=e.find("iframe");if(0<i.length){if("string"==typeof i.attr("data-src"))i[0].src=i.attr("data-src");else{var n=i[0].src;i[0].src=d,i[0].src=n}e.show()}},data_attr:function(t){return 0<this.namespace.length?this.namespace+"-"+t:t},cache_offset:function(t){var e=t.show().height()+parseInt(t.css("top"),10)+t.scrollY;return t.hide(),e},off:function(){l(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(jQuery,window,window.document),function(d,s){"use strict";Foundation.libs.slider={name:"slider",version:"5.5.3",settings:{start:0,end:100,step:1,precision:2,initial:null,display_selector:"",vertical:!1,trigger_input_change:!1,on_change:function(){}},cache:{}
28,init:function(t,e,i){Foundation.inherit(this,"throttle"),this.bindings(e,i),this.reflow()},events:function(){var n=this;d(this.scope).off(".slider").on("mousedown.fndtn.slider touchstart.fndtn.slider pointerdown.fndtn.slider","["+n.attr_name()+"]:not(.disabled, [disabled]) .range-slider-handle",function(t){n.cache.active||(t.preventDefault(),n.set_active_slider(d(t.target)))}).on("mousemove.fndtn.slider touchmove.fndtn.slider pointermove.fndtn.slider",function(t){if(n.cache.active)if(t.preventDefault(),d.data(n.cache.active[0],"settings").vertical){var e=0;t.pageY||(e=s.scrollY),n.calculate_position(n.cache.active,n.get_cursor_position(t,"y")+e)}else n.calculate_position(n.cache.active,n.get_cursor_position(t,"x"))}).on("mouseup.fndtn.slider touchend.fndtn.slider pointerup.fndtn.slider",function(t){if(!n.cache.active){var e="slider"===d(t.target).attr("role")?d(t.target):d(t.target).closest(".range-slider").find("[role='slider']");if(e.length&&!e.parent().hasClass("disabled")&&!e.parent().attr("disabled"))if(n.set_active_slider(e),d.data(n.cache.active[0],"settings").vertical){var i=0;t.pageY||(i=s.scrollY),n.calculate_position(n.cache.active,n.get_cursor_position(t,"y")+i)}else n.calculate_position(n.cache.active,n.get_cursor_position(t,"x"))}n.remove_active_slider()}).on("change.fndtn.slider",function(){n.settings.on_change()}),n.S(s).on("resize.fndtn.slider",n.throttle(function(){n.reflow()},300)),this.S("["+this.attr_name()+"]").each(function(){var t=d(this),e=t.children(".range-slider-handle")[0],i=n.initialize_settings(e);""!=i.display_selector&&d(i.display_selector).each(function(){d(this).attr("value")&&d(this).off("change").on("change",function(){t.foundation("slider","set_value",d(this).val())})})})},get_cursor_position:function(t,e){var i,n="page"+e.toUpperCase(),s="client"+e.toUpperCase();return"undefined"!=typeof t[n]?i=t[n]:"undefined"!=typeof t.originalEvent[s]?i=t.originalEvent[s]:t.originalEvent.touches&&t.originalEvent.touches[0]&&"undefined"!=typeof t.originalEvent.touches[0][s]?i=t.originalEvent.touches[0][s]:t.currentPoint&&"undefined"!=typeof t.currentPoint[e]&&(i=t.currentPoint[e]),i},set_active_slider:function(t){this.cache.active=t},remove_active_slider:function(){this.cache.active=null},calculate_position:function(i,n){var s=this,a=d.data(i[0],"settings"),r=(d.data(i[0],"handle_l"),d.data(i[0],"handle_o"),d.data(i[0],"bar_l")),o=d.data(i[0],"bar_o");requestAnimationFrame(function(){var t;t=Foundation.rtl&&!a.vertical?s.limit_to((o+r-n)/r,0,1):s.limit_to((n-o)/r,0,1),t=a.vertical?1-t:t;var e=s.normalized_value(t,a.start,a.end,a.step,a.precision);s.set_ui(i,e)})},set_ui:function(t,e){var i=d.data(t[0],"settings"),n=d.data(t[0],"handle_l"),s=d.data(t[0],"bar_l"),a=this.normalized_percentage(e,i.start,i.end),r=a*(s-n)-1,o=100*a,l=t.parent(),h=t.parent().children("input[type=hidden]");Foundation.rtl&&!i.vertical&&(r=-r),r=i.vertical?-r+s-n+1:r,this.set_translate(t,r,i.vertical),i.vertical?t.siblings(".range-slider-active-segment").css("height",o+"%"):t.siblings(".range-slider-active-segment").css("width",o+"%"),l.attr(this.attr_name(),e).trigger("change.fndtn.slider"),h.val(e),i.trigger_input_change&&h.trigger("change.fndtn.slider"),t[0].hasAttribute("aria-valuemin")||t.attr({"aria-valuemin":i.start,"aria-valuemax":i.end}),t.attr("aria-valuenow",e),""!=i.display_selector&&d(i.display_selector).each(function(){this.hasAttribute("value")?d(this).val(e):d(this).text(e)})},normalized_percentage:function(t,e,i){return Math.min(1,(t-e)/(i-e))},normalized_value:function(t,e,i,n,s){var a=t*(i-e);return((a-a%n)/n*n+(.5*n<=a%n?n:0)+e).toFixed(s)},set_translate:function(t,e,i){i?d(t).css("-webkit-transform","translateY("+e+"px)").css("-moz-transform","translateY("+e+"px)").css("-ms-transform","translateY("+e+"px)").css("-o-transform","translateY("+e+"px)").css("transform","translateY("+e+"px)"):d(t).css("-webkit-transform","translateX("+e+"px)").css("-moz-transform","translateX("+e+"px)").css("-ms-transform","translateX("+e+"px)").css("-o-transform","translateX("+e+"px)").css("transform","translateX("+e+"px)")}
vendor: 4,953 bytes, line 28
28,limit_to:function(t,e,i){return Math.min(Math.max(t,e),i)},initialize_settings:function(t){var e,i=d.extend({},this.settings,this.data_options(d(t).parent()));return null===i.precision&&(e=(""+i.step).match(/\.([\d]*)/),i.precision=e&&e[1]?e[1].length:0),i.vertical?(d.data(t,"bar_o",d(t).parent().offset().top),d.data(t,"bar_l",d(t).parent().outerHeight()),d.data(t,"handle_o",d(t).offset().top),d.data(t,"handle_l",d(t).outerHeight())):(d.data(t,"bar_o",d(t).parent().offset().left),d.data(t,"bar_l",d(t).parent().outerWidth()),d.data(t,"handle_o",d(t).offset().left),d.data(t,"handle_l",d(t).outerWidth())),d.data(t,"bar",d(t).parent()),d.data(t,"settings",i)},set_initial_position:function(t){var e=d.data(t.children(".range-slider-handle")[0],"settings"),i="number"!=typeof e.initial||isNaN(e.initial)?Math.floor(.5*(e.end-e.start)/e.step)*e.step+e.start:e.initial,n=t.children(".range-slider-handle");this.set_ui(n,i)},set_value:function(t){var e=this;d("["+e.attr_name()+"]",this.scope).each(function(){d(this).attr(e.attr_name(),t)}),d(this.scope).attr(e.attr_name())&&d(this.scope).attr(e.attr_name(),t),e.reflow()},reflow:function(){var i=this;i.S("["+this.attr_name()+"]").each(function(){var t=d(this).children(".range-slider-handle")[0],e=d(this).attr(i.attr_name());i.initialize_settings(t),e?i.set_ui(d(t),parseFloat(e)):i.set_initial_position(d(this))})}}}(jQuery,window,window.document),function(p,f,g,m){"use strict";Foundation.libs.tab={name:"tab",version:"5.5.3",settings:{active_class:"active",callback:function(){},deep_linking:!1,scroll_to_content:!0,is_hover:!1},default_tab_hashes:[],init:function(t,e,i){var n=this;(0,this.S)("["+this.attr_name()+"] > .active > a",this.scope).each(function(){n.default_tab_hashes.push(this.hash)}),this.bindings(e,i),this.handle_location_hash_change()},events:function(){var i=this,n=this.S,s=function(t,e){n(e).closest("["+i.attr_name()+"]").data(i.attr_name(!0)+"-init").is_hover&&!Modernizr.touch||(9!==(t.keyCode||t.which)&&(t.preventDefault(),t.stopPropagation()),i.toggle_active_tab(n(e).parent()))};n(this.scope).off(".tab").on("keydown.fndtn.tab","["+this.attr_name()+"] > * > a",function(t){var e=t.keyCode||t.which;13!==e&&32!==e||s(t,this)}).on("click.fndtn.tab","["+this.attr_name()+"] > * > a",function(t){s(t,this)}).on("mouseenter.fndtn.tab","["+this.attr_name()+"] > * > a",function(){n(this).closest("["+i.attr_name()+"]").data(i.attr_name(!0)+"-init").is_hover&&i.toggle_active_tab(n(this).parent())}),n(f).on("hashchange.fndtn.tab",function(t){t.preventDefault(),i.handle_location_hash_change()})},handle_location_hash_change:function(){var a=this,r=this.S;r("["+this.attr_name()+"]",this.scope).each(function(){var t,e=r(this).data(a.attr_name(!0)+"-init");if(e.deep_linking)if(""!=(t=e.scroll_to_content?a.scope.location.hash:a.scope.location.hash.replace("fndtn-",""))){var i=r(t);if(i.hasClass("content")&&i.parent().hasClass("tabs-content"))a.toggle_active_tab(p("["+a.attr_name()+"] > * > a[href="+t+"]").parent());else{var n=i.closest(".content").attr("id");n!=m&&a.toggle_active_tab(p("["+a.attr_name()+"] > * > a[href=#"+n+"]").parent(),t)}}else for(var s=0;s<a.default_tab_hashes.length;s++)a.toggle_active_tab(p("["+a.attr_name()+"] > * > a[href="+a.default_tab_hashes[s]+"]").parent())})},toggle_active_tab:function(t,e){var i=this,n=i.S,s=t.closest("["+this.attr_name()+"]"),a=t.find("a"),r=t.children("a").first(),o="#"+r.attr("href").split("#")[1],l=n(o),h=t.siblings(),d=s.data(this.attr_name(!0)+"-init"),c=function(t){var e,i=p(this),n=p(this).parents("li").prev().children('[role="tab"]'),s=p(this).parents("li").next().children('[role="tab"]');switch(t.keyCode){case 37:e=n;break;case 39:e=s;break;default:e=!1}e.length&&(i.attr({tabindex:"-1","aria-selected":null}),e.attr({tabindex:"0","aria-selected":!0}).focus()),p('[role="tabpanel"]').attr("aria-hidden","true"),p("#"+p(g.activeElement).attr("href").substring(1)).attr("aria-hidden",null)},u=function(t){(t!==(d.scroll_to_content?i.default_tab_hashes[0]:"fndtn-"+i.default_tab_hashes[0].replace("#",""))||f.location.hash)&&(f.location.hash=t)};r.data("tab-content")&&(l=n(o="#"+r.data("tab-content").split("#")[1])),d.deep_linking&&(d.scroll_to_content?(u(e||o),e==m||e==o?t.parent()[0].scrollIntoView():n(o)[0].scrollIntoView()):u(e!=m?"fndtn-"+e.replace("#",""):"fndtn-"+o.replace("#",""))),t.addClass(d.active_class).triggerHandler("opened"),a.attr({"aria-selected":"true",tabindex:0}),h.removeClass(d.active_class),h.find("a").attr({"aria-selected":"false"}),l.siblings().removeClass(d.active_class).attr({"aria-hidden":"true"}),l.addClass(d.active_class).attr("aria-hidden","false").removeAttr("tabindex"),d.callback(t),l.triggerHandler("toggled",[l]),s.triggerHandler("toggled",[t]),a.off("keydown").on("keydown",c)},data_attr:function(t){return 0<this.namespace.length?this.namespace+"-"+t:t},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(c,r){"use strict";
28Foundation.libs.tooltip={name:"tooltip",version:"5.5.3",settings:{additional_inheritable_classes:[],tooltip_class:".tooltip",append_to:"body",touch_close_text:"Tap To Close",disable_for_touch:!1,hover_delay:200,fade_in_duration:150,fade_out_duration:150,show_on:"all",tip_template:function(t,e){return'<span data-selector="'+t+'" id="'+t+'" class="'+Foundation.libs.tooltip.settings.tooltip_class.substring(1)+'" role="tooltip">'+e+'<span class="nub"></span></span>'}},cache:{},init:function(t,e,i){Foundation.inherit(this,"random_str"),this.bindings(e,i)},should_show:function(t){var e=c.extend({},this.settings,this.data_options(t));return"all"===e.show_on||(!(!this.small()||"small"!==e.show_on)||(!(!this.medium()||"medium"!==e.show_on)||!(!this.large()||"large"!==e.show_on)))},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},events:function(t){function s(t,e,i){t.timer||(i?(t.timer=null,r.showTip(e)):t.timer=setTimeout(function(){t.timer=null,r.showTip(e)}.bind(t),r.settings.hover_delay))}function a(t,e){t.timer&&(clearTimeout(t.timer),t.timer=null),r.hide(e)}var r=this,o=r.S;r.create(this.S(t)),c(this.scope).off(".tooltip").on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"]",function(t){var e=o(this),i=c.extend({},r.settings,r.data_options(e));if(Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type)&&o(t.target).is("a"))return!1;if(/mouse/i.test(t.type)&&r.ie_touch(t))return!1;if(e.hasClass("open"))Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type)&&t.preventDefault(),r.hide(e);else{if(i.disable_for_touch&&Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type))return;if(!i.disable_for_touch&&Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type)&&(t.preventDefault(),o(i.tooltip_class+".open").hide(),!0,0<c(".open["+r.attr_name()+"]").length)){var n=o(c(".open["+r.attr_name()+"]")[0]);r.hide(n)}/enter|over/i.test(t.type)?s(this,e):"mouseout"===t.type||"mouseleave"===t.type?a(this,e):s(this,e,!0)}}).on("mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"].open",function(t){if(/mouse/i.test(t.type)&&r.ie_touch(t))return!1;"touch"==c(this).data("tooltip-open-event-type")&&"mouseleave"==t.type||("mouse"==c(this).data("tooltip-open-event-type")&&/MSPointerDown|touchstart/i.test(t.type)?r.convert_to_touch(c(this)):a(this,c(this)))}).on("DOMNodeRemoved DOMAttrModified","["+this.attr_name()+"]:not(a)",function(){a(this,o(this))})},ie_touch:function(){return!1},showTip:function(t){var e=this.getTip(t);if(this.should_show(t,e))return this.show(t)},getTip:function(t){var e=this.selector(t),i=c.extend({},this.settings,this.data_options(t)),n=null;return e&&(n=this.S('span[data-selector="'+e+'"]'+i.tooltip_class)),"object"==typeof n&&n},selector:function(t){var e=t.attr(this.attr_name())||t.attr("data-selector");return"string"!=typeof e&&(e=this.random_str(6),t.attr("data-selector",e).attr("aria-describedby",e)),e},create:function(t){var e=this,i=c.extend({},this.settings,this.data_options(t)),n=this.settings.tip_template;"string"==typeof i.tip_template&&r.hasOwnProperty(i.tip_template)&&(n=r[i.tip_template]);var s=c(n(this.selector(t),c("<div></div>").html(t.attr("title")).html())),a=this.inheritable_classes(t);s.addClass(a).appendTo(i.append_to),Modernizr.touch&&(s.append('<span class="tap-to-close">'+i.touch_close_text+"</span>"),s.on("touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip",function(){e.hide(t)})),t.removeAttr("title").attr("title","")},reposition:function(t,e,i){var n,s,a,r;e.css("visibility","hidden").show(),n=t.data("width"),a=(s=e.children(".nub")).outerHeight(),s.outerWidth(),this.small()?e.css({width:"100%"}):e.css({width:n||"auto"}),r=function(t,e,i,n,s){return t.css({top:e||"auto",bottom:n||"auto",left:s||"auto",right:i||"auto"}).end()};var o=t.offset().top,l=t.offset().left,h=t.outerHeight();if(r(e,o+h+10,"auto","auto",l),this.small())r(e,o+h+10,"auto","auto",12.5,c(this.scope).width()),e.addClass("tip-override"),r(s,-a,"auto","auto",l);else{Foundation.rtl&&(s.addClass("rtl"),l=l+t.outerWidth()-e.outerWidth()),r(e,o+h+10,"auto","auto",l),s.attr("style")&&s.removeAttr("style"),e.removeClass("tip-override");var d=e.outerHeight();i&&-1<i.indexOf("tip-top")?(Foundation.rtl&&s.addClass("rtl"),r(e,o-d,"auto","auto",l).removeClass("tip-override")):i&&-1<i.indexOf("tip-left")?(r(e,o+h/2-d/2,"auto","auto",l-e.outerWidth()-a).removeClass("tip-override"),s.removeClass("rtl")):i&&-1<i.indexOf(
29"tip-right")&&(r(e,o+h/2-d/2,"auto","auto",l+t.outerWidth()+a).removeClass("tip-override"),s.removeClass("rtl"))}e.css("visibility","visible").hide()},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},inheritable_classes:function(t){var e=c.extend({},this.settings,this.data_options(t)),i=["tip-top","tip-left","tip-bottom","tip-right","radius","round"].concat(e.additional_inheritable_classes),n=t.attr("class"),s=n?c.map(n.split(" "),function(t){if(-1!==c.inArray(t,i))return t}).join(" "):"";return c.trim(s)},convert_to_touch:function(t){var e=this,i=e.getTip(t),n=c.extend({},e.settings,e.data_options(t));0===i.find(".tap-to-close").length&&(i.append('<span class="tap-to-close">'+n.touch_close_text+"</span>"),i.on("click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tooltip.tapclose",function(){e.hide(t)})),t.data("tooltip-open-event-type","touch")},show:function(t){var e=this.getTip(t);"touch"==t.data("tooltip-open-event-type")&&this.convert_to_touch(t),this.reposition(t,e,t.attr("class")),t.addClass("open"),e.fadeIn(this.settings.fade_in_duration)},hide:function(t){var e=this.getTip(t);e.fadeOut(this.settings.fade_out_duration,function(){e.find(".tap-to-close").remove(),e.off("click.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose"),t.removeClass("open")})},off:function(){var e=this;this.S(this.scope).off(".fndtn.tooltip"),this.S(this.settings.tooltip_class).each(function(t){c("["+e.attr_name()+"]").eq(t).attr("title",c(this).text())}).remove()},reflow:function(){}}}(jQuery,window,window.document),function(l,a,r){"use strict";Foundation.libs.topbar={name:"topbar",version:"5.5.3",settings:{index:0,start_offset:0,sticky_class:"sticky",custom_back_text:!0,back_text:"Back",mobile_show_parent_link:!0,is_hover:!0,scrolltop:!0,sticky_on:"all",dropdown_autoclose:!0}
29,init:function(t,e,i){Foundation.inherit(this,"add_custom_rule register_media throttle");var n=this;n.register_media("topbar","foundation-mq-topbar"),this.bindings(e,i),n.S("["+this.attr_name()+"]",this.scope).each(function(){var t=l(this),e=t.data(n.attr_name(!0)+"-init");n.S("section, .top-bar-section",this);t.data("index",0);var i=t.parent();i.hasClass("fixed")||n.is_sticky(t,i,e)?(n.settings.sticky_class=e.sticky_class,(n.settings.sticky_topbar=t).data("height",i.outerHeight()),t.data("stickyoffset",i.offset().top)):t.data("height",t.outerHeight()),e.assembled||n.assemble(t),e.is_hover?n.S(".has-dropdown",t).addClass("not-click"):n.S(".has-dropdown",t).removeClass("not-click"),n.add_custom_rule(".f-topbar-fixed { padding-top: "+t.data("height")+"px }"),i.hasClass("fixed")&&n.S("body").addClass("f-topbar-fixed")})},is_sticky:function(t,e,i){var n=e.hasClass(i.sticky_class),s=matchMedia(Foundation.media_queries.small).matches,a=matchMedia(Foundation.media_queries.medium).matches,r=matchMedia(Foundation.media_queries.large).matches;return!(!n||"all"!==i.sticky_on)||(!(!(n&&this.small()&&-1!==i.sticky_on.indexOf("small")&&s)||a||r)||(!(!(n&&this.medium()&&-1!==i.sticky_on.indexOf("medium")&&s&&a)||r)||!!(n&&this.large()&&-1!==i.sticky_on.indexOf("large")&&s&&a&&r)))},toggle:function(t){var e,i=this,n=(e=t?i.S(t).closest("["+this.attr_name()+"]"):i.S("["+this.attr_name()+"]")).data(this.attr_name(!0)+"-init"),s=i.S("section, .top-bar-section",e);i.breakpoint()&&(i.rtl?(s.css({right:"0%"}),l(">.name",s).css({right:"100%"})):(s.css({left:"0%"}),l(">.name",s).css({left:"100%"})),i.S("li.moved",s).removeClass("moved"),e.data("index",0),e.toggleClass("expanded").css("height","")),n.scrolltop?e.hasClass("expanded")?e.parent().hasClass("fixed")&&(n.scrolltop?(e.parent().removeClass("fixed"),e.addClass("fixed"),i.S("body").removeClass("f-topbar-fixed"),a.scrollTo(0,0)):e.parent().removeClass("expanded")):e.hasClass("fixed")&&(e.parent().addClass("fixed"),e.removeClass("fixed"),i.S("body").addClass("f-topbar-fixed")):(i.is_sticky(e,e.parent(),n)&&e.parent().addClass("fixed"),e.parent().hasClass("fixed")&&(e.hasClass("expanded")?(e.addClass("fixed"),e.parent().addClass("expanded"),i.S("body").addClass("f-topbar-fixed")):(e.removeClass("fixed"),e.parent().removeClass("expanded"),i.update_sticky_positioning())))},timer:null,events:function(){var r=this,o=this.S;o(this.scope).off(".topbar").on("click.fndtn.topbar","["+this.attr_name()+"] .toggle-topbar",function(t){t.preventDefault(),r.toggle(this)}).on("click.fndtn.topbar contextmenu.fndtn.topbar",'.top-bar .top-bar-section li a[href^="#"],['+this.attr_name()+'] .top-bar-section li a[href^="#"]',function(){var t=l(this).closest("li"),e=t.closest("["+r.attr_name()+"]").data(r.attr_name(!0)+"-init");e.dropdown_autoclose&&e.is_hover&&l(this).closest(".hover").removeClass("hover");!r.breakpoint()||t.hasClass("back")||t.hasClass("has-dropdown")||r.toggle()}).on("click.fndtn.topbar","["+this.attr_name()+"] li.has-dropdown",function(t){var e=o(this),i=o(t.target),n=e.closest("["+r.attr_name()+"]").data(r.attr_name(!0)+"-init");i.data("revealId")?r.toggle():r.breakpoint()||n.is_hover&&!Modernizr.touch||(t.stopImmediatePropagation(),e.hasClass("hover")?(e.removeClass("hover").find("li").removeClass("hover"),e.parents("li.hover").removeClass("hover")):(e.addClass("hover"),l(e).siblings().removeClass("hover"),"A"===i[0].nodeName&&i.parent().hasClass("has-dropdown")&&t.preventDefault()))}).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown>a",function(t){if(r.breakpoint()){t.preventDefault();var e=o(this),i=e.closest("["+r.attr_name()+"]"),n=i.find("section, .top-bar-section"),s=(e.next(".dropdown").outerHeight(),e.closest("li"));i.data("index",i.data("index")+1),s.addClass("moved"),r.rtl?(n.css({right:-100*i.data("index")+"%"}),n.find(">.name").css({right:100*i.data("index")+"%"})):(n.css({left:-100*i.data("index")+"%"}),n.find(">.name").css({left:100*i.data("index")+"%"})),i.css("height",e.siblings("ul").outerHeight(!0)+i.data("height"))}}),o(a).off(".topbar").on("resize.fndtn.topbar",r.throttle(function(){r.resize.call(r)},50)).trigger("resize.fndtn.topbar").load(function(){o(this).trigger("resize.fndtn.topbar")}
29),o("body").off(".topbar").on("click.fndtn.topbar",function(t){0<o(t.target).closest("li").closest("li.hover").length||o("["+r.attr_name()+"] li.hover").removeClass("hover")}),o(this.scope).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown .back",function(t){t.preventDefault();var e=o(this),i=e.closest("["+r.attr_name()+"]"),n=i.find("section, .top-bar-section"),s=(i.data(r.attr_name(!0)+"-init"),e.closest("li.moved")),a=s.parent();i.data("index",i.data("index")-1),r.rtl?(n.css({right:-100*i.data("index")+"%"}),n.find(">.name").css({right:100*i.data("index")+"%"})):(n.css({left:-100*i.data("index")+"%"}),n.find(">.name").css({left:100*i.data("index")+"%"})),0===i.data("index")?i.css("height",""):i.css("height",a.outerHeight(!0)+i.data("height")),setTimeout(function(){s.removeClass("moved")},300)}),o(this.scope).find(".dropdown a").focus(function(){l(this).parents(".has-dropdown").addClass("hover")}).blur(function(){l(this).parents(".has-dropdown").removeClass("hover")})},resize:function(){var a=this;a.S("["+this.attr_name()+"]").each(function(){var t,e=a.S(this),i=e.data(a.attr_name(!0)+"-init"),n=e.parent("."+a.settings.sticky_class);if(!a.breakpoint()){var s=e.hasClass("expanded");e.css("height","").removeClass("expanded").find("li").removeClass("hover"),s&&a.toggle(e)}a.is_sticky(e,n,i)&&(n.hasClass("fixed")?(n.removeClass("fixed"),t=n.offset().top,a.S(r.body).hasClass("f-topbar-fixed")&&(t-=e.data("height")),e.data("stickyoffset",t),n.addClass("fixed")):(t=n.offset().top,e.data("stickyoffset",t)))})},breakpoint:function(){return!matchMedia(Foundation.media_queries.topbar).matches},small:function(){return matchMedia(Foundation.media_queries.small).matches},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},assemble:function(t){var s=this,a=t.data(this.attr_name(!0)+"-init"),e=s.S("section, .top-bar-section",t);e.detach(),s.S(".has-dropdown>a",e).each(function(){var t,e=s.S(this),i=e.siblings(".dropdown"),n=e.attr("href");i.find(".title.back").length||(t=1==a.mobile_show_parent_link&&n?l('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li class="parent-link hide-for-medium-up"><a class="parent-link js-generated" href="'+n+'">'+e.html()+"</a></li>"):l('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5>'),1==a.custom_back_text?l("h5>a",t).html(a.back_text):l("h5>a",t).html("&laquo; "+e.html()),i.prepend(t))}),e.appendTo(t),this.sticky(),this.assembled(t)},assembled:function(t){t.data(this.attr_name(!0),l.extend({},t.data(this.attr_name(!0)),{assembled:!0}))},height:function(t){var e=0,i=this;return l("> li",t).each(function(){e+=i.S(this).outerHeight(!0)}),e},sticky:function(){var t=this;this.S(a).on("scroll",function(){t.update_sticky_positioning()})},update_sticky_positioning:function(){var t="."+this.settings.sticky_class,e=this.S(a),i=this;if(i.settings.sticky_topbar&&i.is_sticky(this.settings.sticky_topbar,this.settings.sticky_topbar.parent(),this.settings)){var n=this.settings.sticky_topbar.data("stickyoffset")+this.settings.start_offset;i.S(t).hasClass("expanded")||(e.scrollTop()>n?i.S(t).hasClass("fixed")||(i.S(t).addClass("fixed"),i.S("body").addClass("f-topbar-fixed")):e.scrollTop()<=n&&i.S(t).hasClass("fixed")&&(i.S(t).removeClass("fixed"),i.S("body").removeClass("f-topbar-fixed")))}},off:function(){this.S(this.scope).off(".fndtn.topbar"),this.S(a).off(".fndtn.topbar")},reflow:function(){}}}(jQuery,window,window.document),function(I){function E(){return new Date(Date.UTC.apply(Date,arguments))}var v=function(t,e){var i=this;this.element=I(t),this.language=e.language||this.element.data("date-language")||"en",this.language=this.language in M?this.language:"en",this.isRTL=M[this.language].rtl||!1,this.formatType=e.formatType||this.element.data("format-type")||"standard",this.format=F.parseFormat(e.format||this.element.data("date-format")||M[this.language].format||F.getDefaultFormat(this.formatType,"input"),this.formatType),this.isInline=!1,this.isVisible=!1,this.isInput=this.element.is("input"),this.bootcssVer=this.isInput?this.element.is(".form-control")?3:2:this.bootcssVer=this.element.is(".input-group")?3:2,this.component=!!this.element.is(".date")&&(3==this.bootcssVer?this.element.find(".
29input-group-addon .glyphicon-th, .input-group-addon .glyphicon-time, .input-group-addon .glyphicon-calendar").parent():this.element.find(".add-on .icon-th, .add-on .icon-time, .add-on .icon-calendar").parent()),this.componentReset=!!this.element.is(".date")&&(3==this.bootcssVer?this.element.find(".input-group-addon .glyphicon-remove").parent():this.element.find(".add-on .icon-remove").parent()),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.linkField=e.linkField||this.element.data("link-field")||!1,this.linkFormat=F.parseFormat(e.linkFormat||this.element.data("link-format")||F.getDefaultFormat(this.formatType,"link"),this.formatType),this.minuteStep=e.minuteStep||this.element.data("minute-step")||5,this.pickerPosition=e.pickerPosition||this.element.data("picker-position")||"bottom-right",this.showMeridian=e.showMeridian||this.element.data("show-meridian")||!1,this.initialDate=e.initialDate||new Date,this._attachEvents(),this.formatViewType="datetime","formatViewType"in e?this.formatViewType=e.formatViewType:"formatViewType"in this.element.data()&&(this.formatViewType=this.element.data("formatViewType")),this.minView=0,"minView"in e?this.minView=e.minView:"minView"in this.element.data()&&(this.minView=this.element.data("min-view")),this.minView=F.convertViewMode(this.minView),this.maxView=F.modes.length-1,"maxView"in e?this.maxView=e.maxView:"maxView"in this.element.data()&&(this.maxView=this.element.data("max-view")),this.maxView=F.convertViewMode(this.maxView),this.wheelViewModeNavigation=!1,"wheelViewModeNavigation"in e?this.wheelViewModeNavigation=e.wheelViewModeNavigation:"wheelViewModeNavigation"in this.element.data()&&(this.wheelViewModeNavigation=this.element.data("view-mode-wheel-navigation")),this.wheelViewModeNavigationInverseDirection=!1,"wheelViewModeNavigationInverseDirection"in e?this.wheelViewModeNavigationInverseDirection=e.wheelViewModeNavigationInverseDirection:"wheelViewModeNavigationInverseDirection"in this.element.data()&&(this.wheelViewModeNavigationInverseDirection=this.element.data("view-mode-wheel-navigation-inverse-dir")),this.wheelViewModeNavigationDelay=100,"wheelViewModeNavigationDelay"in e?this.wheelViewModeNavigationDelay=e.wheelViewModeNavigationDelay:"wheelViewModeNavigationDelay"in this.element.data()&&(this.wheelViewModeNavigationDelay=this.element.data("view-mode-wheel-navigation-delay")),this.startViewMode=2,"startView"in e?this.startViewMode=e.startView:"startView"in this.element.data()&&(this.startViewMode=this.element.data("start-view")),this.startViewMode=F.convertViewMode(this.startViewMode),this.viewMode=this.startViewMode,this.viewSelect=this.minView,"viewSelect"in e?this.viewSelect=e.viewSelect:"viewSelect"in this.element.data()&&(this.viewSelect=this.element.data("view-select")),this.viewSelect=F.convertViewMode(this.viewSelect),this.forceParse=!0,"forceParse"in e?this.forceParse=e.forceParse:"dateForceParse"in this.element.data()&&(this.forceParse=this.element.data("date-force-parse")),this.picker=I(3==this.bootcssVer?F.templateV3:F.template).appendTo(this.isInline?this.element:"body").on({click:I.proxy(this.click,this),mousedown:I.proxy(this.mousedown,this)}),this.wheelViewModeNavigation&&(I.fn.mousewheel?this.picker.on({mousewheel:I.proxy(this.mousewheel,this)}):console.log("Mouse Wheel event is not supported. Please include the jQuery Mouse Wheel plugin before enabling this option")),this.isInline?this.picker.addClass("datetimepicker-inline"):this.picker.addClass("datetimepicker-dropdown-"+this.pickerPosition+" dropdown-menu"),this.isRTL&&(this.picker.addClass("datetimepicker-rtl"),3==this.bootcssVer?this.picker.find(".prev span, .next span").toggleClass("fa fa-arrow-left fa-arrow-right"):this.picker.find(".prev i, .next i").toggleClass("fa fa-arrow-left fa-arrow-right")),I(document).on("mousedown",function(t){0===I(t.target).closest(".datetimepicker").length&&i.hide()}),this.autoclose=!1,"autoclose"in e?this.autoclose=e.autoclose:"dateAutoclose"in this.element.data()&&(this.autoclose=this.element.data("date-autoclose")),this.keyboardNavigation=!0,"keyboardNavigation"in e?this.keyboardNavigation=e.keyboardNavigation:"dateKeyboardNavigation"in this.element.data()&&(this.keyboardNavigation=this.element.data("date-keyboard-navigation")),this.todayBtn=e.todayBtn||this.element.data("date-today-btn")||!1,this.todayHighlight=e.todayHighlight||this.element.data("date-today-highlight")||!1,this.weekStart=(e.weekStart||this.element.data("date-weekstart")||M[this.language].weekStart||0)%7,this.weekEnd=(this.weekStart+6)%7,this.startDate=-Infinity,this.endDate=Infinity,this.daysOfWeekDisabled=[],this.setStartDate(e.startDate||this.element.data("date-startdate")),this.setEndDate(e.endDate||this.element.data("date-enddate")),this.setDaysOfWeekDisabled(e.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled")),this.fillDow(),this.fillMonths(),this.update(),this.showMode(),this.isInline&&this.show()};v.prototype={constructor:v,_events:[],_attachEvents:function(){this._detachEvents(),this.isInput?this._events=[[this.element,{focus:I.proxy(this.show,this),keyup:I.proxy(this.update,this),keydown:I.proxy(this.keydown,this)}]]:this.component&&this.hasInput?(this._events=[[this.element.find("input"),{focus:I.proxy(this.show,this),keyup:I.proxy(this.update,this),keydown:I.proxy(this.keydown,this)}],[this.component,{click:I.proxy(this.show,this)}]],this.componentReset&&this._events.push([this.componentReset,{click:I.proxy(this.reset,this)}])):this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:I.proxy(this.show,this)}]];for(var t,e,i=0;i<this._events.length;i++)t=this._events[i][0],e=this._events[i][1],t.on(e)},_detachEvents:function(){for(var t,e,i=0;i<this._events.length;i++)t=this._events[i][0],e=this._events[i][1],t.off(e);this._events=[]},show:function(t){this.picker.show(),this.height=this.component?this.component.outerHeight():this.element.outerHeight(),this.forceParse&&this.update(),this.place(),I(window).on("resize",I.proxy(this.place,this)),t&&(t.stopPropagation(),t.preventDefault()),this.isVisible=!0,this.element.trigger({type:"show",date:this.date})},hide:function(){this.isVisible&&(this.isInline||(this.picker.hide(),I(window).off("resize",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||I(document).off("mousedown",this.hide),this.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this.isVisible=!1,this.element.trigger({type:"hide",date:this.date})))},pickOnlyDate:function(){this.minView=2,this.viewSelect=2,this.setFormat(Airesis.i18n.datepicker.dateformat)},pickDateAndTime:function(){this.minView=0,this.viewSelect=0,this.setFormat(Airesis.i18n.datepicker.datetimeformat)},setBeginOfDay:function(){this.date.setUTCHours(0),this.date.setUTCMinutes(0),this._setDate(this.date)},setEndOfDay:function(){this.date.setUTCHours(23),this.date.setUTCMinutes(59),this._setDate(this.date)},remove:function(){this._detachEvents(),this.picker.remove(),delete this.picker,delete this.element.data().datetimepicker},getDate:function(){var t=this.getUTCDate();return new Date(t.getTime()+6e4*t.getTimezoneOffset())},getUTCDate:function(){return this.date},setDate:function(t){this.setUTCDate(new Date(t.getTime()-6e4*t.getTimezoneOffset()))},setUTCDate:function(t){t>=this.startDate&&t<=this.endDate?(this.date=t,this.setValue(),this.viewDate=this.date,this.fill()):this.element.trigger({type:"outOfRange",date:t,startDate:this.startDate,endD
29ate:this.endDate})},setFormat:function(t){var e;this.format=F.parseFormat(t,this.formatType),this.isInput?e=this.element:this.component&&(e=this.element.find("input")),e&&e.val()&&this.setValue()},setValue:function(){var t=this.getFormattedDate();this.isInput?this.element.val(t):(this.component&&this.element.find("input").val(t),this.element.data("date",t)),this.linkField&&I("#"+this.linkField).val(this.getFormattedDate(this.linkFormat))},getFormattedDate:function(t){return t==undefined&&(t=this.format),F.formatDate(this.date,t,this.language,this.formatType)},setStartDate:function(t){this.startDate=t||-Infinity,this.startDate!==-Infinity&&(this.startDate=F.parseDate(this.startDate,this.format,this.language,this.formatType)),this.update(),this.updateNavArrows()},setEndDate:function(t){this.endDate=t||Infinity,this.endDate!==Infinity&&(this.endDate=F.parseDate(this.endDate,this.format,this.language,this.formatType)),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(t){this.daysOfWeekDisabled=t||[],I.isArray(this.daysOfWeekDisabled)||(this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/)),this.daysOfWeekDisabled=I.map(this.daysOfWeekDisabled,function(t){return parseInt(t,10)}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){var e=0;I("div").each(function(){var t=parseInt(I(this).css("zIndex"),10);e<t&&(e=t)});var t,i,n,s=e+10;this.component?(n=(t=this.component.offset()).left,"bottom-left"!=this.pickerPosition&&"top-left"!=this.pickerPosition||(n+=this.component.outerWidth()-this.picker.outerWidth())):n=(t=this.element.offset()).left,i="top-left"==this.pickerPosition||"top-right"==this.pickerPosition?t.top-this.picker.outerHeight():t.top+this.height,this.picker.css({top:i,left:n,zIndex:s})}},update:function(t){var e,i=!1;arguments&&arguments.length&&("string"==typeof t||t instanceof Date)?(e=t,i=!0):("string"==typeof(e=this.element.data("date")||(this.isInput?this.element.val():this.element.find("input").val())||this.initialDate)||e instanceof String)&&(e=e.replace(/^\s+|\s+$/g,"")),e||(e=new Date,i=!1),this.date=F.parseDate(e,this.format,this.language,this.formatType),i&&this.setValue(),this.date<this.startDate?this.viewDate=new Date(this.startDate):this.date>this.endDate?this.viewDate=new Date(this.endDate):this.viewDate=new Date(this.date),this.fill()},fillDow:function(){for(var t=this.weekStart,e="<tr>";t<this.weekStart+7;)e+='<th class="dow">'+M[this.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datetimepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+='<span class="month">'+M[this.language].monthsShort[e++]+"</span>";this.picker.find(".datetimepicker-months td").html(t)},fill:function(){if(null!=this.date&&null!=this.viewDate){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth(),n=t.getUTCDate(),s=t.getUTCHours(),a=t.getUTCMinutes(),r=this.startDate!==-Infinity?this.startDate.getUTCFullYear():-Infinity,o=this.startDate!==-Infinity?this.startDate.getUTCMonth():-Infinity,l=this.endDate!==Infinity?this.endDate.getUTCFullYear():Infinity,h=this.endDate!==Infinity?this.endDate.getUTCMonth():Infinity,d=new E(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate()).valueOf(),c=new Date;if(this.picker.find(".datetimepicker-days thead th:eq(1)").text(M[this.language].months[i]+" "+e),"time"==this.formatViewType){var u=s%12?s%12:12,p=(u<10?"0":"")+u,f=(a<10?"0":"")+a,g=M[this.language].meridiem[s<12?0:1];this.picker.find(".datetimepicker-hours thead th:eq(1)").text(p+":"+f+" "+g.toUpperCase()),this.picker.find(".datetimepicker-minutes thead th:eq(1)").text(p+":"+f+" "+g.toUpperCase())}else this.picker.find(".datetimepicker-hours thead th:eq(1)").text(n+" "+M[this.language].months[i]+" "+e),this.picker.find(".datetimepicker-minutes thead th:eq(1)").text(n+" "+M[this.language].months[i]+" "+e);this.picker.find("tfoot th.today").text(M[this.language].today).toggle(!1!==this.todayBtn),this.updateNavArrows(),this.fillMonths();var m=E(e,i-1,28,0,0,0,0),v=F.getDaysInMonth(m.getUTCFullYear(),m.getUTCMonth());m.setUTCDate(v),m.setUTCDate(v-(m.getUTCDay()-this.weekStart+7)%7);var _=new Date(m);_.setUTCDate(_.getUTCDate()+42),_=_.valueOf();for(var b,y=[];m.valueOf()<_;)m.getUTCDay()==this.weekStart&&y.push("<tr>"),b="",m.getUTCFullYear()<e||m.getUTCFullYear()==e&&m.getUTCMonth()<i?b+=" old":(m.getUTCFullYear()>e||m.getUTCFullYear()==e&&m.getUTCMonth()>i)&&(b+=" new"),this.todayHighlight&&m.getUTCFullYear()==c.getFullYear()&&m.getUTCMonth()==c.getMonth()&&m.getUTCDate()==c.getDate()&&(b+=" today"),m.valueOf()==d&&(b+=" active"),(m.valueOf()+864e5<=this.startDate||m.valueOf()>this.endDate||-1!==I.inArray(m.getUTCDay(),this.daysOfWeekDisabled))&&(b+=" disabled"),y.push('<td class="day'+b+'">'+m.getUTCDate()+"</td>"),m.getUTCDay()==this.weekEnd&&y.push("</tr>"),m.setUTCDate(m.getUTCDate()+1);this.picker.find(".datetimepicker-days tbody").empty().append(y.join("")),y=[];for(var w="",x="",C="",S=0;S<24;S++){b="",(k=E(e,i,n,S)).valueOf()+36e5<=this.startDate||k.valueOf()>this.endDate?b+=" disabled":s==S&&(b+=" active"),this.showMeridian&&2==M[this.language].meridiem.length?((x=S<12?M[this.language].meridiem[0]:M[this.language].meridiem[1])!=C&&(""!=C&&y.push("</fieldset>"),y.push('<fieldset class="hour"><legend>'+x.toUpperCase()+"</legend>")),C=x,w=S%12?S%12:12,y.push('<span class="hour'+b+" hour_"+(S<12?"am":"pm")+'">'+w+"</span>"),23==S&&y.push("</fieldset>")):(w=S+":00",y.push('<span class="hour'+b+'">'+w+"</span>"))}this.picker.find(".datetimepicker-hours td").html(y.join("")),y=[],C=x=w="";for(S=0;S<60;S+=this.minuteStep){var k;b="",(k=E(e,i,n,s,S,0)).valueOf()<this.startDate||k.valueOf()>this.endDate?b+=" disabled":Math.floor(a/this.minuteStep)==Math.floor(S/this.minuteStep)&&(b+=" active"),this.showMeridian&&2==M[this.language].meridiem.length?((x=s<12?M[this.language].meridiem[0]:M[this.language].meridiem[1])!=C&&(""!=C&&y.push("</fieldset>"),y.push('<fieldset class="minute"><legend>'+x.toUpperCase()+"</legend>")),C=x,w=s%12?s%12:12,y.push('<span class="minute'+b+'">'+w+":"+(S<10?"0"+S:S)+"</span>"),59==S&&y.push("</fieldset>")):(w=S+":00",y.push('<span class="minute'+b+'">'+s+":"+(S<10?"0"+S:S)+"</span>"))}this.picker.find(".datetimepicker-minutes td").html(y.join(""));var T=this.date.getUTCFullYear(),D=this.picker.find(".datetimepicker-months").find("th:eq(1)").text(e).end().find("span").removeClass("active");T==e&&D.eq(this.date.getUTCMonth()).addClass("active"),(e<r||l<e)&&D.addClass("disabled"),e==r&&D.slice(0,o).addClass("disabled"),e==l&&D.slice(h+1).addClass("disabled"),y="",e=10*parseInt(e/10,10);var A=this.picker.find(".datetimepicker-years").find("th:eq(1)").text(e+"-"+(e+9)).end().find("td");e-=1;for(S=-1;S<11;S++)y+='<span class="year'+(-1==S||10==S?" old":"")+(T==e?" active":"")+(e<r||l<e?" disabled":"")+'">'+e+"</span>",e+=1;A.html(y),this.place()}},updateNavArrows:function(){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth(),n=t.getUTCDate(),s=t.getUTCHours();switch(this.viewMode){case 0:this.startDate!==-Infinity&&e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()&&n<=this.startDate.getUTCDate()&&s<=this.startDate.getUTCHours()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==Infinity&&e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()&&n>=this.endDate.getUTCDate()&&s>=this.endDate.getUTCHours()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:this.startDate!==-Infinity&&e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()&&n<=this.startDate.getUTCDate()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==Infinity&&e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()&&n>=this.endDate.getUTCDate()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 2:this.startDate!==-Infinity&&e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==Infinity&&e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 3:case 4:this.startDate!==-Infinity&&e<=this.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==Infinity&&e>=this.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},mousewheel:function(t){if(t.preventDefault(),t.stopPropagation(),!this.wheelPause){this.wheelPause=!0;var e=t.originalEvent.wheelDelta,i=0<e?1:0===e?0:-1;this.wheelViewModeNavigationInverseDirection&&(i=-i),this.showMode(i),setTimeout(I.proxy(function(){this.wheelPause=!1},this),this.wheelViewModeNavigationDelay)}},click:function(t){t.stopPropagation(),t.preventDefault();var e=I(t.target).closest("span, td, th, legend");if(1==e.length){if(e.is(".disabled"))return void this.element.trigger({type:"outOfRange",date:this.viewDate,startDate:this.startDate,endD
29ate:this.endDate});switch(e[0].nodeName.toLowerCase()){case"th":switch(e[0].className){case"switch":this.showMode(1);break;case"prev":case"next":var i=F.modes[this.viewMode].navStep*("prev"==e[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveHour(this.viewDate,i);break;case 1:this.viewDate=this.moveDate(this.viewDate,i);break;case 2:this.viewDate=this.moveMonth(this.viewDate,i);break;case 3:case 4:this.viewDate=this.moveYear(this.viewDate,i)}this.fill();break;case"today":var n=new Date;(n=E(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),0))<this.startDate?n=this.startDate:n>this.endDate&&(n=this.endDate),this.viewMode=this.startViewMode,this.showMode(0),this._setDate(n),this.fill(),this.autoclose&&this.hide()}break;case"span":if(!e.is(".disabled")){var s=this.viewDate.getUTCFullYear(),a=this.viewDate.getUTCMonth(),r=this.viewDate.getUTCDate(),o=this.viewDate.getUTCHours(),l=this.viewDate.getUTCMinutes(),h=this.viewDate.getUTCSeconds();if(e.is(".month")?(this.viewDate.setUTCDate(1),a=e.parent().find("span").index(e),r=this.viewDate.getUTCDate(),this.viewDate.setUTCMonth(a),this.element.trigger({type:"changeMonth",date:this.viewDate}),3<=this.viewSelect&&this._setDate(E(s,a,r,o,l,h,0))):e.is(".year")?(this.viewDate.setUTCDate(1),s=parseInt(e.text(),10)||0,this.viewDate.setUTCFullYear(s),this.element.trigger({type:"changeYear",date:this.viewDate}),4<=this.viewSelect&&this._setDate(E(s,a,r,o,l,h,0))):e.is(".hour")?(o=parseInt(e.text(),10)||0,(e.hasClass("hour_am")||e.hasClass("hour_pm"))&&(12==o&&e.hasClass("hour_am")?o=0:12!=o&&e.hasClass("hour_pm")&&(o+=12)),this.viewDate.setUTCHours(o),this.element.trigger({type:"changeHour",date:this.viewDate}),1<=this.viewSelect&&this._setDate(E(s,a,r,o,l,h,0))):e.is(".minute")&&(l=parseInt(e.text().substr(e.text().indexOf(":")+1),10)||0,this.viewDate.setUTCMinutes(l),this.element.trigger({type:"changeMinute",date:this.viewDate}),0<=this.viewSelect&&this._setDate(E(s,a,r,o,l,h,0))),0!=this.viewMode){var d=this.viewMode;this.showMode(-1),this.fill(),d==this.viewMode&&this.autoclose&&this.hide()}else this.fill(),this.autoclose&&this.hide()}break;case"td":if(e.is(".day")&&!e.is(".disabled")){r=parseInt(e.text(),10)||1,s=this.viewDate.getUTCFullYear(),a=this.viewDate.getUTCMonth(),o=this.viewDate.getUTCHours(),l=this.viewDate.getUTCMinutes(),h=this.viewDate.getUTCSeconds();e.is(".old")?0===a?(a=11,s-=1):a-=1:e.is(".new")&&(11==a?(a=0,s+=1):a+=1),this.viewDate.setUTCFullYear(s),this.viewDate.setUTCMonth(a,r),this.element.trigger({type:"changeDay",date:this.viewDate}),2<=this.viewSelect&&this._setDate(E(s,a,r,o,l,h,0))}d=this.viewMode;this.showMode(-1),this.fill(),d==this.viewMode&&this.autoclose&&this.hide()}}},_setDate:function(t,e){var i;e&&"date"!=e||(this.date=t),e&&"view"!=e||(this.viewDate=t),this.fill(),this.setValue(),this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&(i.change(),this.autoclose),this.element.trigger({type:"changeDate",date:this.date})},moveMinute:function(t,e){if(!e)return t;var i=new Date(t.valueOf());return i.setUTCMinutes(i.getUTCMinutes()+e*this.minuteStep),i},moveHour:function(t,e){if(!e)return t;var i=new Date(t.valueOf());return i.setUTCHours(i.getUTCHours()+e),i},moveDate:function(t,e){if(!e)return t;var i=new Date(t.valueOf());return i.setUTCDate(i.getUTCDate()+e),i},moveMonth:function(t,e){if(!e)return t;var i,n,s=new Date(t.valueOf()),a=s.getUTCDate(),r=s.getUTCMonth(),o=Math.abs(e);if(e=0<e?1:-1,1==o)n=-1==e?function(){return s.getUTCMonth()==r}:function(){return s.getUTCMonth()!=i},i=r+e,s.setUTCMonth(i),(i<0||11<i)&&(i=(i+12)%12);else{for(var l=0;l<o;l++)s=this.moveMonth(s,e);i=s.getUTCMonth(),s.setUTCDate(a),n=function(){return i!=s.getUTCMonth()}}for(;n();)s.setUTCDate(--a),s.setUTCMonth(i);return s},moveYear:function(t,e){return this.moveMonth(t,12*e)},dateWithinRange:function(t){return t>=this.startDate&&t<=this.endDate},keydown:function(t){if(this.picker.is(":not(:visible)"))27==t.keyCode&&this.show();else{var e,i,n,s,a=!1;switch(t.keyCode){case 27:this.hide(),t.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation)break;e=37==t.keyCode?-1:1,viewMode=this.viewMode,t.ctrlKey?viewMode+=2:t.shiftKey&&(viewMode+=1),4==viewMode?(i=this.moveYear(this.date,e),n=this.moveYear(this.viewDate,e)):3==viewMode?(i=this.moveMonth(this.date,e),n=this.moveMonth(this.viewDate,e)):2==viewMode?(i=this.moveDate(this.date,e),n=this.moveDate(this.viewDate,e)):1==viewMode?(i=this.moveHour(this.date,e),n=this.moveHour(this.viewDate,e)):0==viewMode&&(i=this.moveMinute(this.date,e),n=this.moveMinute(this.viewDate,e)),this.dateWithinRange(i)&&(this.date=i,this.viewDate=n,this.setValue(),this.update(),t.preventDefault(),a=!0);break;case 38:case 40:if(!this.keyboardNavigation)break;e=38==t.keyCode?-1:1,viewMode=this.viewMode,t.ctrlKey?viewMode+=2:t.shiftKey&&(viewMode+=1),4==viewMode?(i=this.moveYear(this.date,e),n=this.moveYear(this.viewDate,e)):3==viewMode?(i=this.moveMonth(this.date,e),n=this.moveMonth(this.viewDate,e)):2==viewMode?(i=this.moveDate(this.date,7*e),n=this.moveDate(this.viewDate,7*e)):1==viewMode?this.showMeridian?(i=this.moveHour(this.date,6*e),n=this.moveHour(this.viewDate,6*e)):(i=this.moveHour(this.date,4*e),n=this.moveHour(
30this.viewDate,4*e)):0==viewMode&&(i=this.moveMinute(this.date,4*e),n=this.moveMinute(this.viewDate,4*e)),this.dateWithinRange(i)&&(this.date=i,this.viewDate=n,this.setValue(),this.update(),t.preventDefault(),a=!0);break;case 13:if(0!=this.viewMode){var r=this.viewMode;this.showMode(-1),this.fill(),r==this.viewMode&&this.autoclose&&this.hide()}else this.fill(),this.autoclose&&this.hide();t.preventDefault();break;case 9:this.hide()}if(a)this.isInput?s=this.element:this.component&&(s=this.element.find("input")),s&&s.change(),this.element.trigger({type:"changeDate",date:this.date})}},showMode:function(t){if(t){var e=Math.max(0,Math.min(F.modes.length-1,this.viewMode+t));e>=this.minView&&e<=this.maxView&&(this.element.trigger({type:"changeMode",date:this.viewDate,oldViewMode:this.viewMode,newViewMode:e}),this.viewMode=e)}this.picker.find(">div").hide().filter(".datetimepicker-"+F.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()},reset:function(){this._setDate(null,"date")}},I.fn.fdatetimepicker=function(n){var s,a=Array.apply(null,arguments);return a.shift(),this.each(function(){var t=I(this),e=t.data("datetimepicker"),i="object"==typeof n&&n;if(e||t.data("datetimepicker",e=new v(this,I.extend({}
30,I.fn.fdatetimepicker.defaults,i))),"string"==typeof n&&"function"==typeof e[n]&&(s=e[n].apply(e,a))!==undefined)return!1}),s!==undefined?s:this},I.fn.fdatetimepicker.defaults={},I.fn.fdatetimepicker.Constructor=v;var M=I.fn.fdatetimepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"Today"}},F={modes:[{clsName:"minutes",navFnc:"Hours",navStep:1},{clsName:"hours",navFnc:"Date",navStep:1},{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,F.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},getDefaultFormat:function(t,e){if("standard"==t)return"input"==e?"yyyy-mm-dd hh:ii":"yyyy-mm-dd hh:ii:ss";if("php"==t)return"input"==e?"Y-m-d H:i":"Y-m-d H:i:s";throw new Error("Invalid format type.")},validParts:function(t){if("standard"==t)return/hh?|HH?|p|P|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g;if("php"==t)return/[dDjlNwzFmMnStyYaABgGhHis]/g;throw new Error("Invalid format type.")},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,parseFormat:function(t,e){var i=t.replace(this.validParts(e),"\0").split("\0"),n=t.match(this.validParts(e));if(!i||!i.length||!n||0==n.length)throw new Error("Invalid date format.");return{separators:i,parts:n}},parseDate:function(t,e,i,n){if(t instanceof Date){var s=new Date(t.valueOf()-6e4*t.getTimezoneOffset());return s.setMilliseconds(0),s}if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(t)&&(e=this.parseFormat("yyyy-mm-dd",n)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(t)&&(e=this.parseFormat("yyyy-mm-dd hh:ii",n)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(t)&&(e=this.parseFormat("yyyy-mm-dd hh:ii:ss",n)),/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(t)){var a,r=/([-+]\d+)([dmwy])/,o=t.match(/([-+]\d+)([dmwy])/g);t=new Date;for(var l=0;l<o.length;l++)switch(c=r.exec(o[l]),a=parseInt(c[1]),c[2]){case"d":t.setUTCDate(t.getUTCDate()+a);break;case"m":t=v.prototype.moveMonth.call(v.prototype,t,a);break;case"w":t.setUTCDate(t.getUTCDate()+7*a);break;case"y":t=v.prototype.moveYear.call(v.prototype,t,a)}return E(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0)}o=t&&t.match(this.nonpunctuation)||[],t=new Date(0,0,0,0,0,0,0);var h,d,c,u={},p=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P"],f={hh:function(t,e){return t.setUTCHours(e)},h:function(t,e){return t.setUTCHours(e)},HH:function(t,e){return t.setUTCHours(12==e?0:e)},H:function(t,e){return t.setUTCHours(12==e?0:e)},ii:function(t,e){return t.setUTCMinutes(e)},i:function(t,e){return t.setUTCMinutes(e)},ss:function(t,e){return t.setUTCSeconds(e)},s:function(t,e){return t.setUTCSeconds(e)},yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!=e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)},p:function(t,e){return t.setUTCHours(1==e?t.getUTCHours()+12:t.getUTCHours())}};if(f.M=f.MM=f.mm=f.m,f.dd=f.d,f.P=f.p,t=E(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()),o.length==e.parts.length){l=0;for(var g=e.parts.length;l<g;l++){if(h=parseInt(o[l],10),c=e.parts[l],isNaN(h))switch(c){case"MM":d=I(M[i].months).filter(function(){var t=this.slice(0,o[l].length);return t==o[l].slice(0,t.length)}),h=I.inArray(d[0],M[i].months)+1;break;case"M":d=I(M[i].monthsShort).filter(function(){var t=this.slice(0,o[l].length);return t==o[l].slice(0,t.length)}),h=I.inArray(d[0],M[i].monthsShort)+1;break;case"p":case"P":h=I.inArray(o[l].toLowerCase(),M[i].meridiem)}u[c]=h}var m;for(l=0;l<p.length;l++)(m=p[l])in u&&!isNaN(u[m])&&f[m](t,u[m])}return t}
30,formatDate:function(t,e,i,n){if(null==t)return"";var s;if("standard"==n)s={yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear(),m:t.getUTCMonth()+1,M:M[i].monthsShort[t.getUTCMonth()],MM:M[i].months[t.getUTCMonth()],d:t.getUTCDate(),D:M[i].daysShort[t.getUTCDay()],DD:M[i].days[t.getUTCDay()],p:2==M[i].meridiem.length?M[i].meridiem[t.getUTCHours()<12?0:1]:"",h:t.getUTCHours(),i:t.getUTCMinutes(),s:t.getUTCSeconds()},2==M[i].meridiem.length?s.H=s.h%12==0?12:s.h%12:s.H=s.h,s.HH=(s.H<10?"0":"")+s.H,s.P=s.p.toUpperCase(),s.hh=(s.h<10?"0":"")+s.h,s.ii=(s.i<10?"0":"")+s.i,s.ss=(s.s<10?"0":"")+s.s,s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m;else{if("php"!=n)throw new Error("Invalid format type.");(s={y:t.getUTCFullYear().toString().substring(2),Y:t.getUTCFullYear(),F:M[i].months[t.getUTCMonth()],M:M[i].monthsShort[t.getUTCMonth()],n:t.getUTCMonth()+1,t:F.getDaysInMonth(t.getUTCFullYear(),t.getUTCMonth()),j:t.getUTCDate(),l:M[i].days[t.getUTCDay()],D:M[i].daysShort[t.getUTCDay()],w:t.getUTCDay(),N:0==t.getUTCDay()?7:t.getUTCDay(),S:t.getUTCDate()%10<=M[i].suffix.length?M[i].suffix[t.getUTCDate()%10-1]:"",a:2==M[i].meridiem.length?M[i].meridiem[t.getUTCHours()<12?0:1]:"",g:t.getUTCHours()%12==0?12:t.getUTCHours()%12,G:t.getUTCHours(),i:t.getUTCMinutes(),s:t.getUTCSeconds()}).m=(s.n<10?"0":"")+s.n,s.d=(s.j<10?"0":"")+s.j,s.A=s.a.toString().toUpperCase(),s.h=(s.g<10?"0":"")+s.g,s.H=(s.G<10?"0":"")+s.G,s.i=(s.i<10?"0":"")+s.i,s.s=(s.s<10?"0":"")+s.s}t=[];for(var a=I.extend([],e.separators),r=0,o=e.parts.length;r<o;r++)a.length&&t.push(a.shift()),t.push(s[e.parts[r]]);return a.length&&t.push(a.shift()),t.join("")},convertViewMode:function(t){switch(t){case 4:case"decade":t=4;break;case 3:case"year":t=3;break;case 2:case"month":t=2;break;case 1:case"day":t=1;break;case 0:case"hour":t=0}return t},headTemplate:'<thead><tr><th class="prev"><i class="fa fa-arrow-left"/></th><th colspan="5" class="switch"></th><th class="next"><i class="fa fa-arrow-right"/></th></tr></thead>',headTemplateV3:'<thead><tr><th class="prev"><i class="fa fa-arrow-left"></i> </th><th colspan="5" class="switch"></th><th class="next"><i class="fa fa-arrow-right"></i> </th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr></tfoot>'};F.template='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+F.headTemplate+F.contTemplate+F.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+F.headTemplate+F.contTemplate+F.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+F.headTemplate+"<tbody></tbody>"+F.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+F.headTemplate+F.contTemplate+F.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+F.headTemplate+F.contTemplate+F.footTemplate+"</table></div></div>",F.templateV3='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+F.headTemplateV3+F.contTemplate+F.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+F.headTemplateV3+F.contTemplate+F.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+F.headTemplateV3+"<tbody></tbody>"+F.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+F.headTemplateV3+F.contTemplate+F.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+F.headTemplateV3+F.contTemplate+F.footTemplate+"</table></div></div>",I.fn.fdatetimepicker.DPGlobal=F,I.fn.fdatetimepicker.noConflict=function(){return I.fn.fdatetimepicker=old,this},I(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',function(t){var e=I(this);e.data("datetimepicker")||(t.preventDefault(),e.fdatetimepicker("show"))}),I(function(){I('[data-provide="datetimepicker-inline"]').fdatetimepicker()})}(window.jQuery),function(){"use strict";Foundation.libs.offcanvas={name:"offcanvas",version:"5.1.1",settings:{},init:function(){this.events()},events:function(){var e=this.S;e(this.scope).off(".offcanvas").on("click.fndtn.offcanvas",".left-off-canvas-toggle",function(t){t.preventDefault(),e(".off-canvas-wrap").toggleClass("move-right")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(t){t.preventDefault(),e(".off-canvas-wrap").removeClass("move-right")}).on("click.fndtn.offcanvas",".right-off-canvas-toggle",function(t){t.preventDefault(),e(this).closest(".off-canvas-wrap").toggleClass("move-left")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(t){t.preventDefault(),e(".off-canvas-wrap").removeClass("move-left")})},reflow:function(){}}}(jQuery,this.document),function(s,o){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"{{VERSION}}",settings:{active_class:"open",disabled_class:"disabled",mega_class:"mega",align:"bottom",is_hover:!1,opened:function(){},closed:function(){}}
30,init:function(t,e,i){Foundation.inherit(this,"throttle"),this.bindings(e,i)},events:function(){var a=this,r=a.S;r(this.scope).off(".dropdown").on("click.fndtn.dropdown","["+this.attr_name()+"]",function(t){(r(this).data(a.attr_name(!0)+"-init")||a.settings).is_hover&&!Modernizr.touch||(t.preventDefault(),a.toggle(s(this)))}).on("mouseenter.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(t){var e,i,n=r(this);clearTimeout(a.timeout),n.data(a.data_attr())?(e=r("#"+n.data(a.data_attr())),i=n):(e=n,i=r("["+a.attr_name()+"='"+e.attr("id")+"']"));var s=i.data(a.attr_name(!0)+"-init")||a.settings;r(t.currentTarget).data(a.data_attr())&&s.is_hover&&a.closeall.call(a),s.is_hover&&a.open.apply(a,[e,i])}).on("mouseleave.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(){var t=r(this);a.timeout=setTimeout(function(){t.data(a.data_attr())?(t.data(a.data_attr(!0)+"-init")||a.settings).is_hover&&a.close.call(a,r("#"+t.data(a.data_attr()))):(r("["+a.attr_name()+'="'+r(this).attr("id")+'"]').data(a.attr_name(!0)+"-init")||a.settings).is_hover&&a.close.call(a,t)}.bind(this),150)}).on("click.fndtn.dropdown",function(t){var e=r(t.target).closest("["+a.attr_name()+"-content]");0<r(t.target).closest("["+a.attr_name()+"]").length||(!r(t.target).data("revealId")&&0<e.length&&(r(t.target).is("["+a.attr_name()+"-content]")||s.contains(e.first()[0],t.target))?t.stopPropagation():a.close.call(a,r("["+a.attr_name()+"-content]")))}).on("opened.fndtn.dropdown","["+a.attr_name()+"-content]",function(){a.settings.opened.call(this)}).on("closed.fndtn.dropdown","["+a.attr_name()+"-content]",function(){a.settings.closed.call(this)}),r(o).off(".dropdown").on("resize.fndtn.dropdown",a.throttle(function(){a.resize.call(a)},50)),this.resize()},close:function(t){var e=this;t.each(function(){(s("["+e.attr_name()+"="+t[0].id+"]")||s("aria-controls="+t[0].id+"]")).attr("aria-expanded","false"),e.S(this).hasClass(e.settings.active_class)&&(e.S(this).css(Foundation.rtl?"right":"left","-99999px").attr("aria-hidden","true").removeClass(e.settings.active_class).prev("["+e.attr_name()+"]").removeClass(e.settings.active_class).removeData("target"),e.S(this).trigger("closed").trigger("closed.fndtn.dropdown",[t]))}),t.removeClass("f-open-"+this.attr_name(!0))},closeall:function(){var t=this;s.each(t.S(".f-open-"+this.attr_name(!0)),function(){t.close.call(t,t.S(this))})},open:function(t,e){this.css(t.addClass(this.settings.active_class),e),t.prev("["+this.attr_name()+"]").addClass(this.settings.active_class),t.data("target",e.get(0)).trigger("opened").trigger("opened.fndtn.dropdown",[t,e]),t.attr("aria-hidden","false"),e.attr("aria-expanded","true"),t.focus(),t.addClass("f-open-"+this.attr_name(!0))},data_attr:function(){return 0<this.namespace.length?this.namespace+"-"+this.name:this.name},toggle:function(t){if(!t.hasClass(this.settings.disabled_class)){var e=this.S("#"+t.data(this.data_attr()));0!==e.length&&(this.close.call(this,this.S("["+this.attr_name()+"-content]").not(e)),e.hasClass(this.settings.active_class)?(this.close.call(this,e),e.data("target")!==t.get(0)&&this.open.call(this,e,t)):this.open.call(this,e,t))}},resize:function(){var t=this.S("["+this.attr_name()+"-content].open"),e=this.S("["+this.attr_name()+"='"+t.attr("id")+"']");t.length&&e.length&&this.css(t,e)},css:function(t,e){var i=Math.max((e.width()-t.width())/2,8),n=e.data(this.attr_name(!0)+"-init")||this.settings;if(this.clear_idx(),this.small()){var s=this.dirs.bottom.call(t,e,n);t.attr("style","").removeClass("drop-left drop-right drop-top").css({position:"absolute",width:"95%","max-width":"none",top:s.top}),t.css(Foundation.rtl?"right":"left",i)}else this.style(t,e,n);return t},style:function(t,e,i){var n=s.extend({position:"absolute"},this.dirs[i.align].call(t,e,i));t.attr("style","").css(n)},dirs:{_base:function(t){var e=this.offsetParent().offset(),i=t.offset();
vendor: 6,455 bytes, line 30
30i.top-=e.top,i.left-=e.left,i.missRight=!1,i.missTop=!1,i.missLeft=!1,i.leftRightFlag=!1;var n=o.outerWidth,s=(o.outerWidth-n)/2;return this.hasClass("mega")||(t.offset().top<=this.outerHeight()&&(i.missTop=!0,o.outerWidth-s,i.leftRightFlag=!0),t.offset().left+this.outerWidth()>t.offset().left+s&&t.offset().left-s>this.outerWidth()&&(i.missRight=!0,i.missLeft=!1),t.offset().left-this.outerWidth()<=0&&(i.missLeft=!0,i.missRight=!1)),i},top:function(t,e){var i=Foundation.libs.dropdown,n=i.dirs._base.call(this,t);return this.addClass("drop-top"),1==n.missTop&&(n.top=n.top+t.outerHeight()+this.outerHeight(),this.removeClass("drop-top")),1==n.missRight&&(n.left=n.left-this.outerWidth()+t.outerWidth()),(t.outerWidth()<this.outerWidth()||i.small()||this.hasClass(e.mega_menu))&&i.adjust_pip(this,t,e,n),Foundation.rtl?{left:n.left-this.outerWidth()+t.outerWidth(),top:n.top-this.outerHeight()}:{left:n.left,top:n.top-this.outerHeight()}},bottom:function(t,e){var i=Foundation.libs.dropdown,n=i.dirs._base.call(this,t);return 1==n.missRight&&(n.left=n.left-this.outerWidth()+t.outerWidth()),(t.outerWidth()<this.outerWidth()||i.small()||this.hasClass(e.mega_menu))&&i.adjust_pip(this,t,e,n),i.rtl?{left:n.left-this.outerWidth()+t.outerWidth(),top:n.top+t.outerHeight()}:{left:n.left,top:n.top+t.outerHeight()}},left:function(t){var e=Foundation.libs.dropdown.dirs._base.call(this,t);return this.addClass("drop-left"),1==e.missLeft&&(e.left=e.left+this.outerWidth(),e.top=e.top+t.outerHeight(),this.removeClass("drop-left")),{left:e.left-this.outerWidth(),top:e.top}},right:function(t,e){var i=Foundation.libs.dropdown.dirs._base.call(this,t);this.addClass("drop-right"),1==i.missRight?(i.left=i.left-this.outerWidth(),i.top=i.top+t.outerHeight(),this.removeClass("drop-right")):i.triggeredRight=!0;var n=Foundation.libs.dropdown;return(t.outerWidth()<this.outerWidth()||n.small()||this.hasClass(e.mega_menu))&&n.adjust_pip(this,t,e,i),{left:i.left+t.outerWidth(),top:i.top}}},adjust_pip:function(t,e,i,n){var s=Foundation.stylesheet,a=8;t.hasClass(i.mega_class)?a=n.left+e.outerWidth()/2-8:this.small()&&(a+=n.left-8),this.rule_idx=s.cssRules.length;var r=".f-dropdown.open:before",o=".f-dropdown.open:after",l="left: "+a+"px;",h="left: "+(a-1)+"px;";1==n.missRight&&(r=".f-dropdown.open:before",o=".f-dropdown.open:after",l="left: "+(a=t.outerWidth()-23)+"px;",h="left: "+(a-1)+"px;"),1==n.triggeredRight&&(r=".f-dropdown.open:before",o=".f-dropdown.open:after",l="left:-12px;",h="left:-14px;"),s.insertRule?(s.insertRule([r,"{",l,"}"].join(" "),this.rule_idx),s.insertRule([o,"{",h,"}"].join(" "),this.rule_idx+1)):(s.addRule(r,l,this.rule_idx),s.addRule(o,h,this.rule_idx+1))},clear_idx:function(){var t=Foundation.stylesheet;"undefined"!=typeof this.rule_idx&&(t.deleteRule(this.rule_idx),t.deleteRule(this.rule_idx),delete this.rule_idx)},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},off:function(){this.S(this.scope).off(".fndtn.dropdown"),this.S("html, body").off(".fndtn.dropdown"),this.S(o).off(".fndtn.dropdown"),this.S("[data-dropdown-content]").off(".fndtn.dropdown")},reflow:function(){}}}(jQuery,window,window.document),function(d,i){"use strict";Foundation.libs.slider={name:"slider",version:"{{VERSION}}",settings:{start:0,end:100,step:1,precision:null,initial:null,display_selector:"",vertical:!1,trigger_input_change:!1,on_change:function(){}},cache:{},init:function(t,e,i){Foundation.inherit(this,"throttle"),this.bindings(e,i),this.reflow()},events:function(){var n=this;d(this.scope).off(".slider").on("mousedown.fndtn.slider touchstart.fndtn.slider pointerdown.fndtn.slider","["+n.attr_name()+"]:not(.disabled, [disabled]) .range-slider-handle",function(t){n.cache.active||(t.preventDefault(),n.set_active_slider(d(t.target)))}).on("mousemove.fndtn.slider touchmove.fndtn.slider pointermove.fndtn.slider",function(t){if(n.cache.active)if(t.preventDefault(),d.data(n.cache.active[0],"settings").vertical){var e=0;t.pageY||(e=i.scrollY),n.calculate_position(n.cache.active,n.get_cursor_position(t,"y")+e)}else n.calculate_position(n.cache.active,n.get_cursor_position(t,"x"))}).on("mouseup.fndtn.slider touchend.fndtn.slider pointerup.fndtn.slider",function(){n.remove_active_slider()}).on("change.fndtn.slider",function(){n.settings.on_change()}),n.S(i).on("resize.fndtn.slider",n.throttle(function(){n.reflow()},300)),this.S("["+this.attr_name()+"]").each(function(){var t=d(this),e=t.children(".range-slider-handle")[0],i=n.initialize_settings(e);""!=i.display_selector&&d(i.display_selector).each(function(){d(this).attr("value")&&d(this).off("change").on("change",function(){t.foundation("slider","set_value",d(this).val())})})})},get_cursor_position:function(t,e){var i,n="page"+e.toUpperCase(),s="client"+e.toUpperCase();return"undefined"!=typeof t[n]?i=t[n]:"undefined"!=typeof t.originalEvent[s]?i=t.originalEvent[s]:t.originalEvent.touches&&t.originalEvent.touches[0]&&"undefined"!=typeof t.originalEvent.touches[0][s]?i=t.originalEvent.touches[0][s]:t.currentPoint&&"undefined"!=typeof t.currentPoint[e]&&(i=t.currentPoint[e]),i},set_active_slider:function(t){this.cache.active=t},remove_active_slider:function(){this.cache.active=null},calculate_position:function(i,n){var s=this,a=d.data(i[0],"settings"),r=(d.data(i[0],"handle_l"),d.data(i[0],"handle_o"),d.data(i[0],"bar_l")),o=d.data(i[0],"bar_o");requestAnimationFrame(function(){var t;t=Foundation.rtl&&!a.vertical?s.limit_to((o+r-n)/r,0,1):s.limit_to((n-o)/r,0,1),t=a.vertical?1-t:t;var e=s.normalized_value(t,a.start,a.end,a.step,a.precision);s.set_ui(i,e)})},set_ui:function(t,e){var i=d.data(t[0],"settings"),n=d.data(t[0],"handle_l"),s=d.data(t[0],"bar_l"),a=this.normalized_percentage(e,i.start,i.end),r=a*(s-n)-1,o=100*a,l=t.parent(),h=t.parent().children("input[type=hidden]");Foundation.rtl&&!i.vertical&&(r=-r),r=i.vertical?-r+s-n+1:r,this.set_translate(t,r,i.vertical),i.vertical?t.siblings(".range-slider-active-segment").css("height",o+"%"):t.siblings(".range-slider-active-segment").css("width",o+"%"),l.attr(this.attr_name(),e).trigger("change.fndtn.slider"),h.val(e),i.trigger_input_change&&h.trigger("change.fndtn.slider"),t[0].hasAttribute("aria-valuemin")||t.attr({"aria-valuemin":i.start,"aria-valuemax":i.end}),t.attr("aria-valuenow",e),""!=i.display_selector&&d(i.display_selector).each(function(){this.hasAttribute("value")?d(this).val(e):d(this).text(e)})}
30,normalized_percentage:function(t,e,i){return Math.min(1,(t-e)/(i-e))},normalized_value:function(t,e,i,n,s){var a=t*(i-e);return((a-a%n)/n*n+(.5*n<=a%n?n:0)+e).toFixed(s)},set_translate:function(t,e,i){i?d(t).css("-webkit-transform","translateY("+e+"px)").css("-moz-transform","translateY("+e+"px)").css("-ms-transform","translateY("+e+"px)").css("-o-transform","translateY("+e+"px)").css("transform","translateY("+e+"px)"):d(t).css("-webkit-transform","translateX("+e+"px)").css("-moz-transform","translateX("+e+"px)").css("-ms-transform","translateX("+e+"px)").css("-o-transform","translateX("+e+"px)").css("transform","translateX("+e+"px)")},limit_to:function(t,e,i){return Math.min(Math.max(t,e),i)},initialize_settings:function(t){var e,i=d.extend({},this.settings,this.data_options(d(t).parent()));return null===i.precision&&(e=(""+i.step).match(/\.([\d]*)/),i.precision=e&&e[1]?e[1].length:0),i.vertical?(d.data(t,"bar_o",d(t).parent().offset().top),d.data(t,"bar_l",d(t).parent().outerHeight()),d.data(t,"handle_o",d(t).offset().top),d.data(t,"handle_l",d(t).outerHeight())):(d.data(t,"bar_o",d(t).parent().offset().left),d.data(t,"bar_l",d(t).parent().outerWidth()),d.data(t,"handle_o",d(t).offset().left),d.data(t,"handle_l",d(t).outerWidth())),d.data(t,"bar",d(t).parent()),d.data(t,"settings",i)},set_initial_position:function(t){var e=d.data(t.children(".range-slider-handle")[0],"settings"),i="number"!=typeof e.initial||isNaN(e.initial)?Math.floor(.5*(e.end-e.start)/e.step)*e.step+e.start:e.initial,n=t.children(".range-slider-handle");this.set_ui(n,i)},set_value:function(t){var e=this;d("["+e.attr_name()+"]",this.scope).each(function(){d(this).attr(e.attr_name(),t)}),d(this.scope).attr(e.attr_name())&&d(this.scope).attr(e.attr_name(),t),e.reflow()},reflow:function(){var i=this;i.S("["+this.attr_name()+"]").each(function(){var t=d(this).children(".range-slider-handle")[0],e=d(this).attr(i.attr_name());i.initialize_settings(t),e?i.set_ui(d(t),parseFloat(e)):i.set_initial_position(d(this))})}}}(jQuery,window,window.document),function(){function o(t,e,i){var n=o.resolve(t);if(null==n){i=i||t,e=e||"root";var s=new Error('Failed to require "'+i+'" from "'+e+'"');throw s.path=i,s.parent=e,s.require=!0,s}var a=o.modules[n];if(!a._resolving&&!a.exports){var r={exports:{}};r.client=r.component=!0,a._resolving=!0,a.call(this,r.exports,o.relative(n),r),delete a._resolving,a.exports=r.exports}return a.exports}o.modules={},o.aliases={},o.resolve=function(t){"/"===t.charAt(0)&&(t=t.slice(1));for(var e=[t,t+".js",t+".json",t+"/index.js",t+"/index.json"],i=0;i<e.length;i++){t=e[i];if(o.modules.hasOwnProperty(t))return t;if(o.aliases.hasOwnProperty(t))return o.aliases[t]}},o.normalize=function(t,e){var i=[];if("."!=e.charAt(0))return e;t=t.split("/"),e=e.split("/");for(var n=0;n<e.length;++n)".."==e[n]?t.pop():"."!=e[n]&&""!=e[n]&&i.push(e[n]);return t.concat(i).join("/")},o.register=function(t,e){o.modules[t]=e},o.alias=function(t,e){if(!o.modules.hasOwnProperty(t))throw new Error('Failed to alias "'+t+'", it does not exist');o.aliases[e]=t},o.relative=function(s){function a(t,e){for(var i=t.length;i--;)if(t[i]===e)return i;return-1}function e(t){return o(e.resolve(t),s,t)}var r=o.normalize(s,"..");return e.resolve=function(t){var e=t.charAt(0);if("/"==e)return t.slice(1);if("."==e)return o.normalize(r,t);var i=s.split("/"),n=a(i,"deps")+1;return n||(n=0),i.slice(0,n+1).join("/")+"/deps/"+t},e.exists=function(t){return o.modules.hasOwnProperty(e.resolve(t))},e},o.register("component-classes/index.js",function(t,e,i){function n(t){if(!t)throw new Error("A DOM element reference is required");this.el=t,this.list=t.classList}var s=e("indexof"),a=/\s+/,r=Object.prototype.toString;i.exports=function(t){return new n(t)},n.prototype.add=function(t){if(this.list)return this.list.add(t),this;var e=this.array();return~s(e,t)||e.push(t),this.el.className=e.join(" "),this},n.prototype.remove=function(t){if("[object RegExp]"==r.call(t))return this.removeMatching(t);if(this.list)return this.list.remove(t),this;var e=this.array(),i=s(e,t);return~i&&e.splice(i,1),this.el.className=e.join(" "),this},n.prototype.removeMatching=function(t){for(var e=this.array(),i=0;i<e.length;i++)t.test(e[i])&&this.remove(e[i]);return this},n.prototype.toggle=function(t){return this.list?this.list.toggle(t):this.has(t)?this.remove(t):this.add(t),this},n.prototype.array=function(){var t=this.el.className.replace(/^\s+|\s+$/g,"").split(a);return""===t[0]&&t.shift(),t},n.prototype.has=n.prototype.contains=function(t){return this.list?this.list.contains(t):!!~s(this.array(),t)}}
30),o.register("segmentio-extend/index.js",function(t,e,i){i.exports=function(t){for(var e,i=Array.prototype.slice.call(arguments,1),n=0;e=i[n];n++)if(e)for(var s in e)t[s]=e[s];return t}}),o.register("component-indexof/index.js",function(t,e,i){i.exports=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i<t.length;++i)if(t[i]===e)return i;return-1}}),o.register("component-event/index.js",function(t){var s=void 0!==window.addEventListener?"addEventListener":"attachEvent",a=void 0!==window.removeEventListener?"removeEventListener":"detachEvent",r="addEventListener"!==s?"on":"";t.bind=function(t,e,i,n){return t[s](r+e,i,n||!1),i},t.unbind=function(t,e,i,n){return t[a](r+e,i,n||!1),i}}),o.register("timoxley-is-collection/index.js",function(t,e,i){function n(t){return"object"==typeof t&&/^\[object (NodeList)\]$/.test(Object.prototype.toString.call(t))&&t.hasOwnProperty("length")&&(0==t.length||"object"==typeof t[0]&&0<t[0].nodeType)}var s=e("type");i.exports=function(t){var e=s(t);if("array"===e)return 1;switch(e){case"arguments":return 2;case"object":if(n(t))return 2;try{if("length"in t&&!t.tagName&&(!t.scrollTo||!t.document)&&!t.apply)return 2}catch(i){}default:return 0}}}),o.register("javve-events/index.js",function(t,e){var a=e("event"),r=e("is-collection");t.bind=function(t,e,i,n){if(r(t)){if(t&&void 0!==t[0])for(var s=0;s<t.length;s++)a.bind(t[s],e,i,n)}else a.bind(t,e,i,n)},t.unbind=function(t,e,i,n){if(r(t)){if(t&&void 0!==t[0])for(var s=0;s<t.length;s++)a.unbind(t[s],e,i,n)}else a.unbind(t,e,i,n)}}),o.register("javve-get-by-class/index.js",function(t,e,i){i.exports=document.getElementsByClassName?function(t,e,i){return i?t.getElementsByClassName(e)[0]:t.getElementsByClassName(e)}:document.querySelector?function(t,e,i){return i?t.querySelector(e):t.querySelectorAll(e)}:function(t,e,i){var n=[],s="*";null==t&&(t=document);for(var a=t.getElementsByTagName(s),r=a.length,o=new RegExp("(^|\\s)"+e+"(\\s|$)"),l=0,h=0;l<r;l++)if(o.test(a[l].className)){if(i)return a[l];n[h]=a[l],h++}return n}}),o.register("javve-get-attribute/index.js",function(t,e,i){i.exports=function(t,e){var i=t.getAttribute&&t.getAttribute(e)||null;if(!i)for(var n=t.attributes.length,s=0;s<n;s++)void 0!==e[s]&&e[s].nodeName===e&&(i=e[s].nodeValue);return i}}),o.register("javve-natural-sort/index.js",function(t,e,i){i.exports=function(t,e,i){var n,s,a=/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?$|^0x[0-9a-f]+$|[0-9]+)/gi,r=/(^[ ]*|[ ]*$)/g,o=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,l=/^0x[0-9a-f]+$/i,h=/^0/,d=(i=i||{},function(t){return i.insensitive&&(""+t).toLowerCase()||""+t}),c=d(t).replace(r,"")||"",u=d(e).replace(r,"")||"",p=c.replace(a,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),f=u.replace(a,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),g=parseInt(c.match(l))||1!=p.length&&c.match(o)&&Date.parse(c),m=parseInt(u.match(l))||g&&u.match(o)&&Date.parse(u)||null,v=i.desc?-1:1;if(m){if(g<m)return-1*v;if(m<g)return 1*v}for(var _=0,b=Math.max(p.length,f.length);_<b;_++){if(n=!(p[_]||"").match(h)&&parseFloat(p[_])||p[_]||0,s=!(f[_]||"").match(h)&&parseFloat(f[_])||f[_]||0,isNaN(n)!==isNaN(s))return isNaN(n)?1:-1;if(typeof n!=typeof s&&(n+="",s+=""),n<s)return-1*v;if(s<n)return 1*v}return 0}}),o.register("javve-to-string/index.js",function(t,e,i){i.exports=function(t){return(t=null===(t=void 0===t?"":t)?"":t).toString()}}),o.register("component-type/index.js",function(t,e,i){var n=Object.prototype.toString;i.exports=function(t){switch(n.call(t)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object String]":return"string"}return null===t?"null":void 0===t?"undefined":t&&1===t.nodeType?"element":t===Object(t)?"object":typeof t}}),o.register("list.js/index.js",function(t,p,i){!function(t,d){"use strict";var a=window.document,r=(p("events"),p("get-by-class")),c=p("extend"),u=p("indexof"),e=function(t,e,i){var n,o=this,l=p("./src/item")(o),h=p("./src/add-async")(o),s=p("./src/parse")(o);this.listClass="list",this.searchClass="search",this.sortClass="sort",this.page=200,this.i=1,this.items=[],this.visibleItems=[],this.matchingItems=[],this.searched=!1,this.filtered=!1,this.handlers={updated:[]},this.plugins={},c(this,e),this.listContainer="string"==typeof t?a.getElementById(t):t,this.listContainer&&(this.list=r(this.listContainer,this.listClass,!0),this.templater=p("./src/templater")(o),this.sort=p("./src/sort")(o),this.search=p("./src/search")(o),this.filter=p("./src/filter")(o),n={start:function(t){s(o.list),t!==d&&o.add(t),o.update(),this.plugins()},plugins:function(){for(var t=0;t<o.plugins.length;t++){var e=o.plugins[t];(o[e.name]=e).init(o)}}},this.add=function(t,e){if(!e){var i=[],n=!1;t[0]===d&&(t=[t]);for(var s=0,a=t.length;s<a;s++){var r=null;t[s]instanceof l?(r=t[s]).reload():(n=o.items.length>o.page,r=new l(t[s],d,n)),o.items.push(r),i.push(r)}return o.update(),i}h(t,e)},this.show=function(t,e){return this.i=t,this.page=e,o.update(),o}
30,this.remove=function(t,e,i){for(var n=0,s=0,a=o.items.length;s<a;s++)o.items[s].values()[t]==e&&(o.templater.remove(o.items[s],i),o.items.splice(s,1),a--,s--,n++);return o.update(),n},this.get=function(t,e){for(var i=[],n=0,s=o.items.length;n<s;n++){var a=o.items[n];a.values()[t]==e&&i.push(a)}return i},this.size=function(){return o.items.length},this.clear=function(){return o.templater.clear(),o.items=[],o},this.on=function(t,e){return o.handlers[t].push(e),o},this.off=function(t,e){var i=o.handlers[t],n=u(i,e);return-1<n&&i.splice(n,1),o},this.trigger=function(t){for(var e=o.handlers[t].length;e--;)o.handlers[t][e](o);return o},this.reset={filter:function(){for(var t=o.items,e=t.length;e--;)t[e].filtered=!1;return o},search:function(){for(var t=o.items,e=t.length;e--;)t[e].found=!1;return o}},this.update=function(){var t=o.items,e=t.length;o.visibleItems=[],o.matchingItems=[],o.templater.clear();for(var i=0;i<e;i++)t[i].matching()&&o.matchingItems.length+1>=o.i&&o.visibleItems.length<o.page?(t[i].show(),o.visibleItems.push(t[i]),o.matchingItems.push(t[i])):(t[i].matching()&&o.matchingItems.push(t[i]),t[i].hide());return o.trigger("updated"),o},n.start(i))};i.exports=e}()}),o.register("list.js/src/search.js",function(t,e,i){var h=e("events"),d=e("get-by-class"),c=e("to-string");i.exports=function(i){var n,s,a,e,r={resetList:function(){i.i=1,i.templater.clear(),e=void 0},setOptions:function(t){2==t.length&&t[1]instanceof Array?s=t[1]:2==t.length&&"function"==typeof t[1]?e=t[1]:3==t.length&&(s=t[1],e=t[2])},setColumns:function(){s=void 0===s?r.toArray(i.items[0].values()):s},setSearchString:function(t){t=(t=c(t).toLowerCase()).replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),a=t},toArray:function(t){var e=[];for(var i in t)e.push(i);return e}},o={list:function(){for(var t=0,e=i.items.length;t<e;t++)o.item(i.items[t])},item:function(t){t.found=!1;for(var e=0,i=s.length;e<i;e++)if(o.values(t.values(),s[e]))return void(t.found=!0)},values:function(t,e){
31return!!(t.hasOwnProperty(e)&&(n=c(t[e]).toLowerCase(),""!==a&&-1<n.search(a)))},reset:function(){i.reset.search(),i.searched=!1}},l=function(t){return i.trigger("searchStart"),r.resetList(),r.setSearchString(t),r.setOptions(arguments),r.setColumns(),""===a?o.reset():(i.searched=!0,e?e(a,s):o.list()),i.update(),i.trigger("searchComplete"),i.visibleItems};return i.handlers.searchStart=i.handlers.searchStart||[],i.handlers.searchComplete=i.handlers.searchComplete||[],h.bind(d(i.listContainer,i.searchClass),"keyup",function(t){var e=t.target||t.srcElement;l(e.value)}),l}}),o.register("list.js/src/sort.js",function(t,e,i){var n,l=e("natural-sort"),h=e("classes"),s=e("events"),a=e("get-by-class"),d=e("get-attribute"),c=function(){for(var t=0,e=n.length;t<e;t++)h(n[t]).remove("asc"),h(n[t]).remove("desc")};i.exports=function(o){var t=function(t,e){var i,n={};if(t.currentTarget||t.srcElement){var s,a=t,r=a.currentTarget||a.srcElement;i=d(r,"data-sort"),h(r).has("desc")?(n.desc=!1,s="asc"):h(r).has("asc")?(n.desc=!0,s="desc"):(n.desc=!1,s="asc"),
31c(),h(r).add(s)}else i=t,n=e||n;n.insensitive="undefined"==typeof n.insensitive||n.insensitive,n.sortFunction=n.sortFunction||function(t,e){return l(t.values()[i],e.values()[i],n)},o.trigger("sortStart"),o.items.sort(n.sortFunction),o.update(),o.trigger("sortComplete")};return o.handlers.sortStart=o.handlers.sortStart||[],o.handlers.sortComplete=o.handlers.sortComplete||[],n=a(o.listContainer,o.sortClass),s.bind(n,"click",t),t}}),o.register("list.js/src/item.js",function(t,e,i){i.exports=function(a){return function(t,e,i){var s=this;this._values={},this.found=!1,this.filtered=!1;var n=function(t,e,i){if(void 0===e)i?s.values(t,i):s.values(t);else{s.elm=e;var n=a.templater.get(s,t);s.values(n)}};this.values=function(t,e){if(void 0===t)return s._values;for(var i in t)s._values[i]=t[i];!0!==e&&a.templater.set(s,s.values())},this.show=function(){a.templater.show(s)},this.hide=function(){a.templater.hide(s)},this.matching=function(){return a.filtered&&a.searched&&s.found&&s.filtered||a.filtered&&!a.searched&&s.filtered||!a.filtered&&a.searched&&s.found||!a.filtered&&!a.searched},this.visible=function(){return s.elm.parentNode==a.list},n(t,e,i)}}}),o.register("list.js/src/templater.js",function(t,e,i){var o=e("get-by-class"),n=function(a){function t(t){if(void 0===t){for(var e=a.list.childNodes,i=0,n=e.length;i<n;i++)if(void 0===e[i].data)return e[i];return null}if(-1===t.indexOf("<"))return document.getElementById(a.item);var s=document.createElement("div");return s.innerHTML=t,s.firstChild}var i=t(a.item),r=this;this.get=function(t,e){r.create(t);for(var i={},n=0,s=e.length;n<s;n++){var a=o(t.elm,e[n],!0);i[e[n]]=a?a.innerHTML:""}return i},this.set=function(t,e){if(!r.create(t))for(var i in e)if(e.hasOwnProperty(i)){var n=o(t.elm,i,!0);n&&("IMG"===n.tagName&&""!==e[i]?n.src=e[i]:n.innerHTML=e[i])}},this.create=function(t){if(void 0!==t.elm)return!1;var e=i.cloneNode(!0);return e.removeAttribute("id"),t.elm=e,r.set(t,t.values()),!0},this.remove=function(t){a.list.removeChild(t.elm)},this.show=function(t){r.create(t),a.list.appendChild(t.elm)},this.hide=function(t){void 0!==t.elm&&t.elm.parentNode===a.list&&a.list.removeChild(t.elm)},this.clear=function(){if(a.list.hasChildNodes())for(;1<=a.list.childNodes.length;)a.list.removeChild(a.list.firstChild)}};i.exports=function(t){return new n(t)}}),o.register("list.js/src/filter.js",function(t,e,i){i.exports=function(a){return a.handlers.filterStart=a.handlers.filterStart||[],a.handlers.filterComplete=a.handlers.filterComplete||[],function(t){if(a.trigger("filterStart"),a.i=1,a.reset.filter(),void 0===t)a.filtered=!1;else{a.filtered=!0;for(var e=a.items,i=0,n=e.length;i<n;i++){var s=e[i];s.filtered=!!t(s)}}return a.update(),a.trigger("filterComplete"),a.visibleItems}}}),o.register("list.js/src/add-async.js",function(t,e,i){i.exports=function(s){return function(t,e,i){var n=t.splice(0,100);i=(i=i||[]).concat(s.add(n)),0<t.length?setTimeout(function(){addAsync(t,e,i)},10):(s.update(),e(i))}}}),o.register("list.js/src/parse.js",function(t,e,i){i.exports=function(s){var a=e("./item")(s),i=function(t){for(var e=t.childNodes,i=[],n=0,s=e.length;n<s;n++)void 0===e[n].data&&i.push(e[n]);return i},n=function(t,e){for(var i=0,n=t.length;i<n;i++)s.items.push(new a(e,t[i]))},r=function(t,e){var i=t.splice(0,100);n(i,e),0<t.length?setTimeout(function(){init.items.indexAsync(t,e)},10):s.update()};return function(){var t=i(s.list),e=s.valueNames;s.indexAsync?r(t,e):n(t,e)}}}),o.alias("component-classes/index.js","list.js/deps/classes/index.js"),o.alias("component-classes/index.js","classes/index.js"),o.alias("component-indexof/index.js","component-classes/deps/indexof/index.js"),o.alias("segmentio-extend/index.js","list.js/deps/extend/index.js"),o.alias("segmentio-extend/index.js","extend/index.js"),o.alias("component-indexof/index.js","list.js/deps/indexof/index.js"),o.alias("component-indexof/index.js","indexof/index.js"),o.alias("javve-events/index.js","list.js/deps/events/index.js"),o.alias("javve-events/index.js","events/index.js"),o.alias("component-event/index.js","javve-events/deps/event/index.js"),o.alias("timoxley-is-collection/index.js","javve-events/deps/is-collection/index.js"),o.alias("component-type/index.js","timoxley-is-collection/deps/type/index.js"),o.alias("javve-get-by-class/index.js","list.js/deps/get-by-class/index.js"),o.alias("javve-get-by-class/index.js","get-by-class/index.js"),o.alias("javve-get-attribute/index.js","list.js/deps/get-attribute/index.js"),o.alias("javve-get-attribute/index.js","get-attribute/index.js"),o.alias("javve-natural-sort/index.js","list.js/deps/natural-sort/index.js"),o.alias("javve-natural-sort/index.js","natural-sort/index.js"),o.alias("javve-to-string/index.js","list.js/deps/to-string/index.js"),o.alias("javve-to-string/index.js","list.js/deps/to-string/index.js"),o.alias("javve-to-string/index.js","to-string/index.js"),o.alias("javve-to-string/index.js","javve-to-string/index.js"),o.alias("component-type/index.js","list.js/deps/type/index.js"),o.alias("component-type/index.js","type/index.js"),"object"==typeof exports?module.exports=o("list.js"):"function"==typeof define&&define.amd?define(function(){return o("list.js")}):this.List=o("list.js")}(),function(){function c(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}
31c.prototype.diff_main=function(t,e,i,n){if(void 0===n&&(n=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout),null==t||null==e)throw Error("Null input. (diff_main)");if(t==e)return t?[[0,t]]:[];void 0===i&&(i=!0);var s=i,a=this.diff_commonPrefix(t,e);i=t.substring(0,a),t=t.substring(a),e=e.substring(a);a=this.diff_commonSuffix(t,e);var r=t.substring(t.length-a);return t=t.substring(0,t.length-a),e=e.substring(0,e.length-a),t=this.diff_compute_(t,e,s,n),i&&t.unshift([0,i]),r&&t.push([0,r]),this.diff_cleanupMerge(t),t},c.prototype.diff_compute_=function(t,e,i,n){if(!t)return[[1,e]];if(!e)return[[-1,t]];var s=t.length>e.length?t:e,a=t.length>e.length?e:t,r=s.indexOf(a);return-1!=r?(i=[[1,s.substring(0,r)],[0,a],[1,s.substring(r+a.length)]],t.length>e.length&&(i[0][0]=i[2][0]=-1),i):1==a.length?[[-1,t],[1,e]]:(s=this.diff_halfMatch_(t,e))?(a=s[0],t=s[1],r=s[2],e=s[3],s=s[4],a=this.diff_main(a,r,i,n),i=this.diff_main(t,e,i,n),a.concat([[0,s]],i)):i&&100<t.length&&100<e.length?this.diff_lineMode_(t,e,n):this.diff_bisect_(t,e,n)},c.prototype.diff_lineMode_=function(t,e,i){var n=this.diff_linesToChars_(t,e);t=n.chars1,e=n.chars2,n=n.lineArray,t=this.diff_main(t,e,!1,i),this.diff_charsToLines_(t,n),this.diff_cleanupSemantic(t),t.push([0,""]);for(var s=n=e=0,a="",r="";e<t.length;){switch(t[e][0]){case 1:s++,r+=t[e][1];break;case-1:n++,a+=t[e][1];break;case 0:if(1<=n&&1<=s){for(t.splice(e-n-s,n+s),e=e-n-s,s=(n=this.diff_main(a,r,!1,i)).length-1;0<=s;s--)t.splice(e,0,n[s]);e+=n.length}n=s=0,r=a=""}e++}return t.pop(),t},c.prototype.diff_bisect_=function(t,e,i){for(var n=t.length,s=e.length,a=Math.ceil((n+s)/2),r=a,o=2*a,l=Array(o),h=Array(o),d=0;d<o;d++)l[d]=-1,h[d]=-1;l[r+1]=0;for(var c=(h[r+1]=0)!=(d=n-s)%2,u=0,p=0,f=0,g=0,m=0;m<a&&!((new Date).getTime()>i);m++){for(var v=-m+u;v<=m-p;v+=2){for(var _,b=r+v,y=(_=v==-m||v!=m&&l[b-1]<l[b+1]?l[b+1]:l[b-1]+1)-v;_<n&&y<s&&t.charAt(_)==e.charAt(y);)_++,y++;if(n<(l[b]=_))p+=2;else if(s<y)u+=2;else if(c&&(0<=(b=r+d-v)&&b<o&&-1!=h[b])){var w=n-h[b];if(w<=_)return this.diff_bisectSplit_(t,e,_,y,i)}}for(v=-m+f;v<=m-g;v+=2){for(b=r+v,_=(w=v==-m||v!=m&&h[b-1]<h[b+1]?h[b+1]:h[b-1]+1)-v;w<n&&_<s&&t.charAt(n-w-1)==e.charAt(s-_-1);)w++,_++;if(n<(h[b]=w))g+=2;else if(s<_)f+=2;else if(!c&&(0<=(b=r+d-v)&&b<o&&-1!=l[b]&&(y=r+(_=l[b])-b,(w=n-w)<=_)))return this.diff_bisectSplit_(t,e,_,y,i)}}return[[-1,t],[1,e]]},c.prototype.diff_bisectSplit_=function(t,e,i,n,s){var a=t.substring(0,i),r=e.substring(0,n);return t=t.substring(i),e=e.substring(n),a=this.diff_main(a,r,!1,s),s=this.diff_main(t,e,!1,s),a.concat(s)},c.prototype.diff_linesToChars_=function(t,e){function i(t){for(var e="",i=0,n=-1,s=r.length;n<t.length-1;){-1==(n=t.indexOf("\n",i))&&(n=t.length-1);var a=t.substring(i,n+1);i=n+1;(o.hasOwnProperty?o.hasOwnProperty(a):void 0!==o[a])?e+=String.fromCharCode(o[a]):(e+=String.fromCharCode(s),o[a]=s,r[s++]=a)}return e}var r=[],o={};return r[0]="",{chars1:i(t),chars2:i(e),lineArray:r}},c.prototype.diff_charsToLines_=function(t,e){for(var i=0;i<t.length;i++){for(var n=t[i][1],s=[],a=0;a<n.length;
31a++)s[a]=e[n.charCodeAt(a)];t[i][1]=s.join("")}},c.prototype.diff_commonPrefix=function(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var i=0,n=Math.min(t.length,e.length),s=n,a=0;i<s;)t.substring(a,s)==e.substring(a,s)?a=i=s:n=s,s=Math.floor((n-i)/2+i);return s},c.prototype.diff_commonSuffix=function(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var i=0,n=Math.min(t.length,e.length),s=n,a=0;i<s;)t.substring(t.length-s,t.length-a)==e.substring(e.length-s,e.length-a)?a=i=s:n=s,s=Math.floor((n-i)/2+i);return s},c.prototype.diff_commonOverlap_=function(t,e){var i=t.length,n=e.length;if(0==i||0==n)return 0;if(n<i?t=t.substring(i-n):i<n&&(e=e.substring(0,i)),i=Math.min(i,n),t==e)return i;n=0;for(var s=1;;){var a=t.substring(i-s);if(-1==(a=e.indexOf(a)))return n;s+=a,0!=a&&t.substring(i-s)!=e.substring(0,s)||(n=s,s++)}},c.prototype.diff_halfMatch_=function(t,e){function i(t,e,i){for(var n,s,a,r,o=t.substring(i,i+Math.floor(t.length/4)),l=-1,h="";-1!=(l=e.indexOf(o,l+1));){var d=u.diff_commonPrefix(t.substring(i),e.substring(l)),c=u.diff_commonSuffix(t.substring(0,i),e.substring(0,l));h.length<c+d&&(h=e.substring(l-c,l)+e.substring(l,l+d),n=t.substring(0,i-c),s=t.substring(i+d),a=e.substring(0,l-c),r=e.substring(l+d))}return 2*h.length>=t.length?[n,s,a,r,h]:null}if(this.Diff_Timeout<=0)return null;var n=t.length>e.length?t:e,s=t.length>e.length?e:t;if(n.length<4||2*s.length<n.length)return null;var a,r,u=this,o=i(n,s,Math.ceil(n.length/4));n=i(n,s,Math.ceil(n.length/2));return o||n?(a=n?o&&o[4].length>n[4].length?o:n:o,t.length>e.length?(o=a[0],n=a[1],s=a[2],r=a[3]):(s=a[0],r=a[1],o=a[2],n=a[3]),[o,n,s,r,a=a[4]]):null},c.prototype.diff_cleanupSemantic=function(t){for(var e=!1,i=[],n=0,s=null,a=0,r=0,o=0,l=0,h=0;a<t.length;)0==t[a][0]?(r=l,o=h,h=l=0,s=t[i[n++]=a][1]):(1==t[a][0]?l+=t[a][1].length:h+=t[a][1].length,s&&s.length<=Math.max(r,o)&&s.length<=Math.max(l,h)&&(t.splice(i[n-1],0,[-1,s]),t[i[n-1]+1][0]=1,n--,a=0<--n?i[n-1]:-1,h=l=o=r=0,e=!(s=null))),a++;for(e&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),a=1;a<t.length;)-1==t[a-1][0]&&1==t[a][0]&&(e=t[a-1][1],i=t[a][1],n=this.diff_commonOverlap_(e,i),(s=this.diff_commonOverlap_(i,e))<=n?(n>=e.length/2||n>=i.length/2)&&(t.splice(a,0,[0,i.substring(0,n)]),t[a-1][1]=e.substring(0,e.length-n),t[a+1][1]=i.substring(n),a++):(s>=e.length/2||s>=i.length/2)&&(t.splice(a,0,[0,e.substring(0,s)]),t[a-1][0]=1,t[a-1][1]=i.substring(0,i.length-s),t[a+1][0]=-1,t[a+1][1]=e.substring(s),a++),a++),a++},c.prototype.diff_cleanupSemanticLossless=function(t){function e(t,e){if(!t||!e)return 6;var i=t.charAt(t.length-1),n=e.charAt(0),s=i.match(c.nonAlphaNumericRegex_),a=n.match(c.nonAlphaNumericRegex_),r=s&&i.match(c.whitespaceRegex_),o=a&&n.match(c.whitespaceRegex_),l=(i=r&&i.match(c.linebreakRegex_),n=o&&n.match(c.linebreakRegex_),i&&t.match(c.blanklineEndRegex_)),h=n&&e.match(c.blanklineStartRegex_);return l||h?5:i||n?4:s&&!r&&o?3:r||o?2:s||a?1:0}for(var i=1;i<t.length-1;){if(0==t[i-1][0]&&0==t[i+1][0]){var n=t[i-1][1],s=t[i][1],a=t[i+1][1];if(o=this.diff_commonSuffix(n,s)){var r=s.substring(s.length-o);n=n.substring(0,n.length-o),s=r+s.substring(0,s.length-o),a=r+a}for(var o=n,l=(r=s,a),h=e(n,s)+e(s,a);s.charAt(0)===a.charAt(0);){n=n+s.charAt(0),s=s.substring(1)+a.charAt(0),a=a.substring(1);var d=e(n,s)+e(s,a);h<=d&&(h=d,o=n,r=s,l=a)}t[i-1][1]!=o&&(o?t[i-1][1]=o:(t.splice(i-1,1),i--),t[i][1]=r,l?t[i+1][1]=l:(t.splice(i+1,1),i--))}i++}},c.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,c.whitespaceRegex_=/\s/,c.linebreakRegex_=/[\r\n]/,c.blanklineEndRegex_=/\n\r?\n$/,c.blanklineStartRegex_=/^\r?\n\r?\n/,c.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,i=[],n=0,s=null,a=0,r=!1,o=!1,l=!1,h=!1;a<t.length;)0==t[a][0]?(t[a][1].length<this.Diff_EditCost&&(l||h)?(r=l,o=h,s=t[i[n++]=a][1]):(n=0,s=null),l=h=!1):(-1==t[a][0]?h=!0:l=!0,s&&(r&&o&&l&&h||s.length<this.Diff_EditCost/2&&3==r+o+l+h)&&(t.splice(i[n-1],0,[-1,s]),t[i[n-1]+1][0]=1,n--,s=null,r&&o?(l=h=!0,n=0):(a=0<--n?i[n-1]:-1,l=h=!1),e=!0)),a++;e&&this.diff_cleanupMerge(t)},c.prototype.diff_cleanupMerge=function(t){t.push([0,""]);for(var e,i=0,n=0,s=0,a="",r="";i<t.length;)switch(t[i][0]){case 1:s++,r+=t[i][1],i++;break;case-1:n++,a+=t[i][1],i++;break;case 0:1<n+s?(0!==n&&0!==s&&(0!==(e=this.diff_commonPrefix(r,a))&&(0<i-n-s&&0==t[i-n-s-1][0]?t[i-n-s-1][1]+=r.substring(0,e):(t.splice(0,0,[0,r.substring(0,e)]),i++),r=r.substring(e),a=a.substring(e)),0!==(e=this.diff_commonSuffix(r,a))&&(t[i][1]=r.substring(r.length-e)+t[i][1],r=r.substring(0,r.length-e),a=a.substring(0,a.length-e))),0===n?t.splice(i-s,n+s,[1,r]):0===s?t.splice(i-n,n+s,[-1,a]):t.splice(i-n-s,n+s,[-1,a],[1,r]),i=i-n-s+(n?1:0)+(s?1:0)+1):0!==i&&0==t[i-1][0]?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,n=s=0,r=a=""}for(""===t[t.length-1][1]&&t.pop(),n=!1,i=1;i<t.length-1;)0==t[i-1][0]&&0==t[i+1][0]&&(t[i][1].substring(t[i][1].length-t[i-1][1].length)==t[i-1][1]?(t[i][1]=t[i-1][1]+t[i][1].substring(0,t[i][1].length-t[i-1][1].length),t[i+1][1]=t[i-1][1]+t[i+1][1],t.splice(i-1,1),n=!0):t[i][1].substring(0,t[i+1][1].length)==t[i+1][1]&&(t[i-1][1]+=t[i+1][1],t[i][1]=t[i][1].substring(t[i+1][1].length)+t[i+1][1],t.splice(i+1,1),n=!0)),i++;n&&this.diff_cleanupMerge(t)},c.prototype.diff_xIndex=function(t,e){var i,n=0,s=0,a=0,r=0;for(i=0;i<t.length&&(1!==t[i][0]&&(n+=t[i][1].length),-1!==t[i][0]&&(s+=t[i][1].length),!(e<n));i++)a=n,r=s;return t.length!=i&&-1===t[i][0]?r:r+(e-a)},c.prototype.diff_prettyHtml=function(t){for(var e=[],i=/&/g,n=/</g,s=/>/g,a=/\n/g,r=0;r<t.length;r++){var o=t[r][0],l=(l=t[r][1]).replace(i,"&amp;").replace(n,"&lt;").replace(s,"&gt;").replace(a,"&para;<br>");switch(o){case 1:e[r]='<ins style="background:#e6ffe6;">'+l+"</ins>";break;case-1:e[r]='<del style="background:#ffe6e6;">'+l+"</del>";break;case 0:e[r]="<span>"+l+"</span>"}}return e.join("")},c.prototype.diff_text1=function(t){for(var e=[],i=0;i<t.length;i++)1!==t[i][0]&&(e[i]=t[i][1]);return e.join("")},c.prototype.diff_text2=function(t){for(var e=[],i=0;i<t.length;i++)-1!==t[i][0]&&(e[i]=t[i][1]);return e.join("")},c.prototype.diff_levenshtein=function(t){for(var e=0,i=0,n=0,s=0;s<t.length;s++){var a=t[s][0],r=t[s][1];switch(a){case 1:i+=r.length;break;case-1:n+=r.length;break;case 0:e+=Math.max(i,n),n=i=0}}return e+Math.max(i,n)},c.prototype.diff_toDelta=function(t){for(var e=[],i=0;i<t.length;i++)switch(t[i][0]){case 1:e[i]="+"+encodeURI(t[i][1]);break;
31case-1:e[i]="-"+t[i][1].length;break;case 0:e[i]="="+t[i][1].length}return e.join("\t").replace(/%20/g," ")},c.prototype.diff_fromDelta=function(t,e){for(var i=[],n=0,s=0,a=e.split(/\t/g),r=0;r<a.length;r++){var o=a[r].substring(1);switch(a[r].charAt(0)){case"+":try{i[n++]=[1,decodeURI(o)]}catch(j){throw Error("Illegal escape in diff_fromDelta: "+o)}break;case"-":case"=":var l=parseInt(o,10);if(isNaN(l)||l<0)throw Error("Invalid number in diff_fromDelta: "+o);o=t.substring(s,s+=l),"="==a[r].charAt(0)?i[n++]=[0,o]:i[n++]=[-1,o];break;default:if(a[r])throw Error("Invalid diff operation in diff_fromDelta: "+a[r])}}if(s!=t.length)throw Error("Delta length ("+s+") does not equal source text length ("+t.length+").");return i},c.prototype.match_main=function(t,e,i){if(null==t||null==e||null==i)throw Error("Null input. (match_main)");return i=Math.max(0,Math.min(i,t.length)),t==e?0:t.length?t.substring(i,i+e.length)==e?i:this.match_bitap_(t,e,i):-1},c.prototype.match_bitap_=function(t,s,a){function e(t,e){var i=t/s.length,n=Math.abs(a-e);return r.Match_Distance?i+n/r.Match_Distance:n?1:i}if(s.length>this.Match_MaxBits)throw Error("Pattern too long for this browser.");var i=this.match_alphabet_(s),r=this,n=this.Match_Threshold;-1!=(c=t.indexOf(s,a))&&(n=Math.min(e(0,c),n),-1!=(c=t.lastIndexOf(s,a+s.length))&&(n=Math.min(e(0,c),n)));for(var o,l,h,d=1<<s.length-1,c=-1,u=s.length+t.length,p=0;p<s.length;p++){for(o=0,l=u;o<l;)e(p,a+l)<=n?o=l:u=l,l=Math.floor((u-o)/2+o);u=l,o=Math.max(1,a-l+1);var f=Math.min(a+l,t.length)+s.length;for((l=Array(f+2))[f+1]=(1<<p)-1;o<=f;f--){var g=i[t.charAt(f-1)];if(l[f]=0===p?(l[f+1]<<1|1)&g:(l[f+1]<<1|1)&g|(h[f+1]|h[f])<<1|1|h[f+1],l[f]&d&&(g=e(p,f-1))<=n){if(n=g,!(a<(c=f-1)))break;o=Math.max(1,2*a-c)}}if(e(p+1,a)>n)break;h=l}return c},c.prototype.match_alphabet_=function(t){for(var e={},i=0;i<t.length;i++)e[t.charAt(i)]=0;for(i=0;i<t.length;i++)e[t.charAt(i)]|=1<<t.length-i-1;return e},c.prototype.patch_addContext_=function(t,e){if(0!=e.length){for(var i=e.substring(t.start2,t.start2+t.length1),n=0;e.indexOf(i)!=e.lastIndexOf(i)&&i.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)n+=this.Patch_Margin,i=e.substring(t.start2-n,t.start2+t.length1+n);n+=this.Patch_Margin,(i=e.substring(t.start2-n,t.start2))&&t.diffs.unshift([0,i]),(n=e.substring(t.start2+t.length1,t.start2+t.length1+n))&&t.diffs.push([0,n]),t.start1-=i.length,t.start2-=i.length,t.length1+=i.length+n.length,t.length2+=i.length+n.length}},c.prototype.patch_make=function(t,e,i){var n;if("string"==typeof t&&"string"==typeof e&&void 0===i)n=t,2<(e=this.diff_main(n,e,!0)).length&&(this.diff_cleanupSemantic(e),this.diff_cleanupEfficiency(e));else if(t&&"object"==typeof t&&void 0===e&&void 0===i)e=t,n=this.diff_text1(e);else if("string"==typeof t&&e&&"object"==typeof e&&void 0===i)n=t;else{if("string"!=typeof t||"string"!=typeof e||!i||"object"!=typeof i)throw Error("Unknown call format to patch_make.");
31n=t,e=i}if(0===e.length)return[];i=[],t=new c.patch_obj;for(var s=0,a=0,r=0,o=n,l=0;l<e.length;l++){var h=e[l][0],d=e[l][1];switch(!s&&0!==h&&(t.start1=a,t.start2=r),h){case 1:t.diffs[s++]=e[l],t.length2+=d.length,n=n.substring(0,r)+d+n.substring(r);break;case-1:t.length1+=d.length,t.diffs[s++]=e[l],n=n.substring(0,r)+n.substring(r+d.length);break;case 0:d.length<=2*this.Patch_Margin&&s&&e.length!=l+1?(t.diffs[s++]=e[l],t.length1+=d.length,t.length2+=d.length):d.length>=2*this.Patch_Margin&&s&&(this.patch_addContext_(t,o),i.push(t),t=new c.patch_obj,s=0,o=n,a=r)}1!==h&&(a+=d.length),-1!==h&&(r+=d.length)}return s&&(this.patch_addContext_(t,o),i.push(t)),i},c.prototype.patch_deepCopy=function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i],s=new c.patch_obj;s.diffs=[];for(var a=0;a<n.diffs.length;a++)s.diffs[a]=n.diffs[a].slice();s.start1=n.start1,s.start2=n.start2,s.length1=n.length1,s.length2=n.length2,e[i]=s}return e},c.prototype.patch_apply=function(t,e){if(0==t.length)return[e,[]];t=this.patch_deepCopy(t);var i=this.patch_addPadding(t);e=i+e+i,this.patch_splitMax(t);for(var n=0,s=[],a=0;a<t.length;a++){var r,o=t[a].start2+n,l=-1;if((d=this.diff_text1(t[a].diffs)).length>this.Match_MaxBits?-1!=(r=this.match_main(e,d.substring(0,this.Match_MaxBits),o))&&(-1==(l=this.match_main(e,d.substring(d.length-this.Match_MaxBits),o+d.length-this.Match_MaxBits))||l<=r)&&(r=-1):r=this.match_main(e,d,o),-1==r)s[a]=!1,n-=t[a].length2-t[a].length1;else if(s[a]=!0,n=r-o,d==(o=-1==l?e.substring(r,r+d.length):e.substring(r,l+this.Match_MaxBits)))e=e.substring(0,r)+this.diff_text2(t[a].diffs)+e.substring(r+d.length);else if(o=this.diff_main(d,o,!1),d.length>this.Match_MaxBits&&this.diff_levenshtein(o)/d.length>this.Patch_DeleteThreshold)s[a]=!1;else{this.diff_cleanupSemanticLossless(o);var h,d=0;for(l=0;l<t[a].diffs.length;l++){var c=t[a].diffs[l];0!==c[0]&&(h=this.diff_xIndex(o,d)),1===c[0]?e=e.substring(0,r+h)+c[1]+e.substring(r+h):-1===c[0]&&(e=e.substring(0,r+h)+e.substring(r+this.diff_xIndex(o,d+c[1].length))),-1!==c[0]&&(d+=c[1].length)}}}return[e=e.substring(i.length,e.length-i.length),s]},c.prototype.patch_addPadding=function(t){for(var e=this.Patch_Margin,i="",n=1;n<=e;n++)i+=String.fromCharCode(n);for(n=0;n<t.length;n++)t[n].start1+=e,t[n].start2+=e;var s=(n=t[0]).diffs;if(0==s.length||0!=s[0][0])s.unshift([0,i]),n.start1-=e,n.start2-=e,n.length1+=e,n.length2+=e;else if(e>s[0][1].length){var a=e-s[0][1].length;s[0][1]=i.substring(s[0][1].length)+s[0][1],n.start1-=a,n.start2-=a,n.length1+=a,n.length2+=a}return 0==(s=(n=t[t.length-1]).diffs).length||0!=s[s.length-1][0]?(s.push([0,i]),n.length1+=e,n.length2+=e):e>s[s.length-1][1].length&&(a=e-s[s.length-1][1].length,s[s.length-1][1]+=i.substring(0,a),n.length1+=a,n.length2+=a),i},c.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,i=0;i<t.length;i++)if(!(t[i].length1<=e)){var n=t[i];t.splice(i--,1);for(var s=n.start1,a=n.start2,r="";0!==n.diffs.length;){var o=new c.patch_obj,l=!0;for(o.start1=s-r.length,o.start2=a-r.length,""!==r&&(o.length1=o.length2=r.length,o.diffs.push([0,r]));0!==n.diffs.length&&o.length1<e-this.Patch_Margin;){r=n.diffs[0][0];var h=n.diffs[0][1];1===r?(o.length2+=h.length,a+=h.length,o.diffs.push(n.diffs.shift()),l=!1):-1===r&&1==o.diffs.length&&0==o.diffs[0][0]&&h.length>2*e?(o.length1+=h.length,s+=h.length,l=!1,o.diffs.push([r,h]),n.diffs.shift()):(h=h.substring(0,e-o.length1-this.Patch_Margin),o.length1+=h.length,s+=h.length,0===r?(o.length2+=h.length,a+=h.length):l=!1,o.diffs.push([r,h]),h==n.diffs[0][1]?n.diffs.shift():n.diffs[0][1]=n.diffs[0][1].substring(h.length))}r=(r=this.diff_text2(o.diffs)).substring(r.length-this.Patch_Margin),""!==(h=this.diff_text1(n.diffs).substring(0,this.Patch_Margin))&&(o.length1+=h.length,o.length2+=h.length,0!==o.diffs.length&&0===o.diffs[o.diffs.length-1][0]?o.diffs[o.diffs.length-1][1]+=h:o.diffs.push([0,h])),l||t.splice(++i,0,o)}}},c.prototype.patch_toText=function(t){for(var e=[],i=0;i<t.length;i++)e[i]=t[i];return e.join("")},c.prototype.patch_fromText=function(t){var e=[];if(!t)return e;t=t.split("\n");for(var i=0,n=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<t.length;){var s=t[i].match(n);if(!s)throw Error("Invalid patch string: "+t[i]);var a=new c.patch_obj;for(e.push(a),a.start1=parseInt(s[1],10),""===s[2]?(a.start1--,a.length1=1):"0"==s[2]?a.length1=0:(a.start1--,a.length1=parseInt(s[2],10)),a.start2=parseInt(s[3],10),""===s[4]?(a.start2--,a.length2=1):"0"==s[4]?a.length2=0:(a.start2--,a.length2=parseInt(s[4],10)),i++;i<t.length;){s=t[i].charAt(0);try{var r=decodeURI(t[i].substring(1))}catch(o){throw Error("Illegal escape in patch_fromText: "+r)}if("-"==s)a.diffs.push([-1,r]);else if("+"==s)a.diffs.push([1,r]);else if(" "==s)a.diffs.push([0,r]);else{if("@"==s)break;if(""!==s)throw Error('Invalid patch mode "'+s+'" in: '+r)}i++}}return e},c.patch_obj=function(){this.diffs=[],this.start2=this.start1=null,this.length2=this.length1=0},c.patch_obj.prototype.toString=function(){var t,e,i;for(t=["@@ -"+(t=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(e=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],e=0;e<this.diffs.length;e++){switch(this.diffs[e][0]){case 1:i="+";break;case-1:i="-";break;case 0:i=" "}t[e+1]=i+encodeURI(this.diffs[e][1])+"\n"}return t.join("").replace(/%20/g," ")}
31,this.diff_match_patch=c,this.DIFF_DELETE=-1,this.DIFF_INSERT=1,this.DIFF_EQUAL=0}(),function(o){function s(){l=!1;for(var t=0;t<a.length;t++){var e=o(a[t]).filter(function(){return o(this).is(":appeared")});if(e.trigger("appear",[e]),n){var i=n.not(e);i.trigger("disappear",[i])}n=e}}var n,a=[],r=!1,l=!1,h={interval:250,force_process:!1},d=o(window);o.expr[":"].appeared=function(t){var e=o(t);if(!e.is(":visible"))return!1;var i=d.scrollLeft(),n=d.scrollTop(),s=e.offset(),a=s.left,r=s.top;return r+e.height()>=n&&r-(e.data("appear-top-offset")||0)<=n+d.height()&&a+e.width()>=i&&a-(e.data("appear-left-offset")||0)<=i+d.width()},o.fn.extend({appear:function(t){var e=o.extend({},h,t||{}),i=this.selector||this;if(!r){var n=function(){l||(l=!0,setTimeout(s,e.interval))};o(window).scroll(n).resize(n),r=!0}return e.force_process&&setTimeout(s,e.interval),a.push(i),o(i)}}),o.extend({force_appear:function(){return!!r&&(s(),!0)}})}(jQuery),window.FormValidation={AddOn:{},Framework:{},I18n:{},Validator:{}},"undefined"==typeof jQuery)throw new Error("FormValidation requires jQuery");!function(){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(+t[0]<2&&+t[1]<9||1==+t[0]&&9==+t[1]&&+t[2]<1)throw new Error("FormValidation requires jQuery version 1.9.1 or higher")}(),function(x){FormValidation.Base=function(t,e,i){this.$form=x(t),this.options=x.extend({},x.fn.formValidation.DEFAULT_OPTIONS,e),this._namespace=i||"fv",this.$invalidFields=x([]),this.$submitButton=null,this.$hiddenButton=null,this.STATUS_NOT_VALIDATED="NOT_VALIDATED",this.STATUS_VALIDATING="VALIDATING",this.STATUS_INVALID="INVALID",this.STATUS_VALID="VALID",this.STATUS_IGNORED="IGNORED",this.DEFAULT_MESSAGE=x.fn.formValidation.DEFAULT_MESSAGE,this._ieVersion=function(){for(var t=3,e=document.createElement("div"),i=e.all||[];e.innerHTML="<!--[if gt IE "+ ++t+"]><br><![endif]-->",i[0];);return 4<t?t:document.documentMode}();var n=document.createElement("div");this._changeEvent=9!==this._ieVersion&&"oninput"in n?"input":"keyup",this._submitIfValid=null,this._cacheFields={},this._init()},FormValidation.Base.prototype={constructor:FormValidation.Base,_exceedThreshold:function(t){var e=this._namespace,i=t.attr("data-"+e+"-field"),n=this.options.fields[i].threshold||this.options.threshold;return!n||(-1!==x.inArray(t.attr("type"),["button","checkbox","file","hidden","image","radio","reset","submit"])||t.val().length>=n)},_init:function(){var n=this,s=this._namespace,a={addOns:{},autoFocus:this.$form.attr("data-"+s+"-autofocus"),button:{selector:this.$form.attr("data-"+s+"-button-selector")||this.$form.attr("data-"+s+"-submitbuttons"),disabled:this.$form.attr("data-"+s+"-button-disabled")},control:{valid:this.$form.attr("data-"+s+"-control-valid"),invalid:this.$form.attr("data-"+s+"-control-invalid")},err:{clazz:this.$form.attr("data-"+s+"-err-clazz"),container:this.$form.attr("data-"+s+"-err-container")||this.$form.attr("data-"+s+"-container"),parent:this.$form.attr("data-"+s+"-err-parent")},events:{formInit:this.$form.attr("data-"+s+"-events-form-init"),formPreValidate:this.$form.attr("data-"+s+"-events-form-prevalidate"),formError:this.$form.attr("data-"+s+"-events-form-error"),formSuccess:this.$form.attr("data-"+s+"-events-form-success"),fieldAdded:this.$form.attr("data-"+s+"-events-field-added"),fieldRemoved:this.$form.attr("data-"+s+"-events-field-removed"),fieldInit:this.$form.attr("data-"+s+"-events-field-init"),fieldError:this.$form.attr("data-"+s+"-events-field-error"),fieldSuccess:this.$form.attr("data-"+s+"-events-field-success"),fieldStatus:this.$form.attr("data-"+s+"-events-field-status"),localeChanged:this.$form.attr("data-"+s+"-events-locale-changed"),validatorError:this.$form.attr("data-"+s+"-events-validator-error"),validatorSuccess:this.$form.attr("data-"+s+"-events-validator-success"),validatorIgnored:this.$form.attr("data-"+s+"-events-validator-ignored")},excluded:this.$form.attr("data-"+s+"-excluded"),icon:{valid:this.$form.attr("data-"+s+"-icon-valid")||this.$form.attr("data-"+s+"-feedbackicons-valid"),invalid:this.$form.attr("data-"+s+"-icon-invalid")||this.$form.attr("data-"+s+"-feedbackicons-invalid"),validating:this.$form.attr("data-"+s+"-icon-validating")||this.$form.attr("data-"+s+"-feedbackicons-validating"),feedback:this.$form.attr("data-"+s+"-icon-feedback")},live:this.$form.attr("data-"+s+"-live"),locale:this.$form.attr("data-"+s+"-locale"),message:this.$form.attr("data-"+s+"-message"),onPreValidate:this.$form.attr("data-"+s+"-onprevalidate"),onError:this.$form.attr("data-"+s+"-onerror"),onSuccess:this.$form.attr("data-"+s+"-onsuccess"),row:{selector:this.$form.attr("data-"+s+"-row-selector")||this.$form.attr("data-"+s+"-group"),valid:this.$form.attr("data-"+s+"-row-valid"),invalid:this.$form.attr("data-"+s+"-row-invalid"),feedback:this.$form.attr("data-"+s+"-row-feedback")},threshold:this.$form.attr("data-"+s+"-threshold"),trigger:this.$form.attr("data-"+s+"-trigger"),verbose
vendor: 4,856 bytes, lines 31-32
31:this.$form.attr("data-"+s+"-verbose"),fields:{}};for(var t in this.$form.attr("novalidate","novalidate").addClass(this.options.elementClass).on("submit."+s,function(t){t.preventDefault(),n.validate()}).on("click."+s,this.options.button.selector,function(){n.$submitButton=x(this),n._submitIfValid=!0}),!0!==this.options.declarative&&"true"!==this.options.declarative||this.$form.find("[name], [data-"+s+"-field]").each(function(){var t=x(this),e=t.attr("name")||t.attr("data-"+s+"-field"),i=n._parseOptions(t);i&&(t.attr("data-"+s+"-field",e),a.fields[e]=x.extend({},i,a.fields[e]))}),this.options=x.extend(!0,this.options,a),"string"==typeof this.options.err.parent&&(this.options.err.parent=new RegExp(this.options.err.parent)),this.options.container&&(this.options.err.container=this.options.container,delete this.options.container),this.options.feedbackIcons&&(this.options.icon=x.extend(!0,this.options.icon,this.options.feedbackIcons),delete this.options.feedbackIcons),this.options.group&&(this.options.row.selector=this.options.group,delete this.options.group),this.options.submitButtons&&(this.options.button.selector=this.options.submitButtons,delete this.options.submitButtons),FormValidation.I18n[this.options.locale]||(this.options.locale=x.fn.formValidation.DEFAULT_OPTIONS.locale),!0!==this.options.declarative&&"true"!==this.options.declarative||(this.options=x.extend(!0,this.options,{addOns:this._parseAddOnOptions()})),this.$hiddenButton=x("<button/>").attr("type","submit").prependTo(this.$form).addClass("fv-hidden-submit").css({display:"none",width:0,height:0}),this.$form.on("click."+this._namespace,'[type="submit"]',function(t){if(!t.isDefaultPrevented()){var e=x(t.target),i=e.is('[type="submit"]')?e.eq(0):e.parent('[type="submit"]').eq(0);!n.options.button.selector||i.is(n.options.button.selector)||i.is(n.$hiddenButton)||n.$form.off("submit."+n._namespace).submit()}}),this.options.fields)this._initField(t);for(var e in this.options.addOns)"function"==typeof FormValidation.AddOn[e].init&&FormValidation.AddOn[e].init(this,this.options.addOns[e]);this.$form.trigger(x.Event(this.options.events.formInit),{bv:this,fv:this,options:this.options}),this.options.onPreValidate&&this.$form.on(this.options.events.formPreValidate,function(t){FormValidation.Helper.call(n.options.onPreValidate,[t])}),this.options.onSuccess&&this.$form.on(this.options.events.formSuccess,function(t){FormValidation.Helper.call(n.options.onSuccess,[t])}),this.options.onError&&this.$form.on(this.options.events.formError,function(t){FormValidation.Helper.call(n.options.onError,[t])})},_initField:function(t){var e=this._namespace,i=x([]);switch(typeof t){case"object":t=(i=t).attr("data-"+e+"-field");break;case"string":(i=this.getFieldElements(t)).attr("data-"+e+"-field",t)}if(0!==i.length&&null!==this.options.fields[t]&&null!==this.options.fields[t].validators){var n,s,a=this.options.fields[t].validators;for(n in a)s=a[n].alias||n,FormValidation.Validator[s]||delete this.options.fields[t].validators[n];null===this.options.fields[t].enabled&&(this.options.fields[t].enabled=!0);for(var r=this,o=i.length,l=i.attr("type"),h=1===o||"radio"===l||"checkbox"===l,d=this._getFieldTrigger(i.eq(0)),c=x.map(d,function(t){return t+".update."+e}).join(" "),u=0;u<o;u++){var p=i.eq(u),f=this.options.fields[t].row||this.options.row.selector,g=p.closest(f),m="function"==typeof(this.options.fields[t].container||this.options.fields[t].err||this.options.err.container)?(
32this.options.fields[t].container||this.options.fields[t].err||this.options.err.container).call(this,p,this):this.options.fields[t].container||this.options.fields[t].err||this.options.err.container,v=m&&"tooltip"!==m&&"popover"!==m?x(m):this._getMessageContainer(p,f);for(n in m&&"tooltip"!==m&&"popover"!==m&&v.addClass(this.options.err.clazz),v.find("."+this.options.err.clazz.split(" ").join(".")+"[data-"+e+"-validator][data-"+e+'-for="'+t+'"]').remove(),g.find("i[data-"+e+'-icon-for="'+t+'"]').remove(),p.off(c).on(c,function(){r.updateStatus(x(this),r.STATUS_NOT_VALIDATED)}),p.data(e+".messages",v),a)p.data(e+".result."+n,this.STATUS_NOT_VALIDATED),h&&u!==o-1||x("<small/>").css("display","none").addClass(this.options.err.clazz).attr("data-"+e+"-validator",n).attr("data-"+e+"-for",t).attr("data-"+e+"-result",this.STATUS_NOT_VALIDATED).html(this._getMessage(t,n)).appendTo(v),s=a[n].alias||n,"function"==typeof FormValidation.Validator[s].init&&FormValidation.Validator[s].init(this,p,this.options.fields[t].validators[n],n);if(!1!==this.options.fields[t].icon&&"false"!==this.options.fields[t].icon&&this.options.icon&&this.options.icon.valid&&this.options.icon.invalid&&this.options.icon.validating&&(!h||u===o-1)){g.addClass(this.options.row.feedback);var _=x("<i/>").css("display","none").addClass(this.options.icon.feedback).attr("data-"+e+"-icon-for",t).insertAfter(p);
32(h?i:p).data(e+".icon",_),"tooltip"!==m&&"popover"!==m||((h?i:p).on(this.options.events.fieldError,function(){g.addClass("fv-has-tooltip")}).on(this.options.events.fieldSuccess,function(){g.removeClass("fv-has-tooltip")}),p.off("focus.container."+e).on("focus.container."+e,function(){r._showTooltip(x(this),m)}).off("blur.container."+e).on("blur.container."+e,function(){r._hideTooltip(x(this),m)})),"string"==typeof this.options.fields[t].icon&&"true"!==this.options.fields[t].icon?_.appendTo(x(this.options.fields[t].icon)):this._fixIcon(p,_)}}i.on(this.options.events.fieldSuccess,function(t,e){var i=r.getOptions(e.field,null,"onSuccess");i&&FormValidation.Helper.call(i,[t,e])}).on(this.options.events.fieldError,function(t,e){var i=r.getOptions(e.field,null,"onError");i&&FormValidation.Helper.call(i,[t,e])}).on(this.options.events.fieldStatus,function(t,e){var i=r.getOptions(e.field,null,"onStatus");i&&FormValidation.Helper.call(i,[t,e])}).on(this.options.events.validatorError,function(t,e){var i=r.getOptions(e.field,e.validator,"onError");i&&FormValidation.Helper.call(i,[t,e])}).on(this.options.events.validatorIgnored,function(t,e){var i=r.getOptions(e.field,e.validator,"onIgnored");i&&FormValidation.Helper.call(i,[t,e])}).on(this.options.events.validatorSuccess,function(t,e){var i=r.getOptions(e.field,e.validator,"onSuccess");i&&FormValidation.Helper.call(i,[t,e])}),this.onLiveChange(i,"live",function(){r._exceedThreshold(x(this))&&r.validateField(x(this))}),i.trigger(x.Event(this.options.events.fieldInit),{bv:this,fv:this,field:t,element:i})}},_isExcluded:function(t){var e=this._namespace,i=t.attr("data-"+e+"-excluded"),n=t.attr("data-"+e+"-field")||t.attr("name");switch(!0){case!!n&&this.options.fields&&this.options.fields[n]&&("true"===this.options.fields[n].excluded||!0===this.options.fields[n].excluded):case"true"===i:case""===i:return!0;case!!n&&this.options.fields&&this.options.fields[n]&&("false"===this.options.fields[n].excluded||!1===this.options.fields[n].excluded):case"false"===i:return!1;case!!n&&this.options.fields&&this.options.fields[n]&&"function"==typeof this.options.fields[n].excluded:return this.options.fields[n].excluded.call(this,t,this);case!!n&&this.options.fields&&this.options.fields[n]&&"string"==typeof this.options.fields[n].excluded:case i:return FormValidation.Helper.call(this.options.fields[n].excluded,[t,this]);default:if(this.options.excluded){"string"==typeof this.options.excluded&&(this.options.excluded=x.map(this.options.excluded.split(","),function(t){return x.trim(t)}));for(var s=this.options.excluded.length,a=0;a<s;a++)if("string"==typeof this.options.excluded[a]&&t.is(this.options.excluded[a])||"function"==typeof this.options.excluded[a]&&!0===this.options.excluded[a].call(this,t,this))return!0}return!1}},_getFieldTrigger:function(t){var e=this._namespace,i=t.data(e+".trigger");if(i)return i;var n=t.attr("type"),s=t.attr("data-"+e+"-field"),a="radio"===n||"checkbox"===n||"file"===n||"SELECT"===t.get(0).tagName?"change":10<=this._ieVersion&&t.attr("placeholder")?"keyup":this._changeEvent;return i=((this.options.fields[s]?this.options.fields[s].trigger:null)||this.options.trigger||a).split(" "),t.data(e+".trigger",i),i},_getMessage:function(t,e){if(!this.options.fields[t]||!this.options.fields[t].validators)return"";var i=this.options.fields[t].validators,n=i[e]&&i[e].alias?i[e].alias:e;if(!FormValidation.Validator[n])return"";switch(!0){case!!i[e].message:return i[e].message;case!!this.options.fields[t].message:return this.options.fields[t].message;case!!this.options.message:return this.options.message;case!!FormValidation.I18n[this.options.locale]&&!!FormValidation.I18n[this.options.locale][n]&&!!FormValidation.I18n[this.options.locale][n]["default"]:return FormValidation.I18n[this.options.locale][n]["default"];default:return this.DEFAULT_MESSAGE}},_getMessageContainer:function(t,e){if(!this.options.err.parent)throw new Error("The err.parent option is not defined");var i=t.parent();if(i.is(e))return i;var n=i.attr("class");return n&&this.options.err.parent.test(n)?i:this._getMessageContainer(i,e)},_parseAddOnOptions:function(){var t,e,i,n,s=this._namespace,a=this.$form.attr("data-"+s+"-addons"),r=this.options.addOns||{};if(a){a=a.replace(/\s/g,"").split(",");for(var o=0;o<a.length;o++)r[a[o]]||(r[a[o]]={})}for(t in r)if(FormValidation.AddOn[t]){if(e=FormValidation.AddOn[t].html5Attributes)for(i in e)(n=this.$form.attr("data-"+s+"-addons-"+t.toLowerCase()+"-"+i.toLowerCase()))&&
32(r[t][e[i]]=n)}else delete r[t];return r},_parseOptions:function(t){var e,i,n,s,a,r,o,l,h,d=this._namespace,c=t.attr("name")||t.attr("data-"+d+"-field"),u={},p=new RegExp("^data-"+d+"-([a-z]+)-alias$"),f=x.extend({},FormValidation.Validator);for(i in x.each(t.get(0).attributes,function(t,e){e.value&&p.test(e.name)&&(i=e.name.split("-")[2],f[e.value]&&(f[i]=f[e.value],f[i].alias=e.value))}),f)if(e=f[i],n="data-"+d+"-"+i.toLowerCase(),s=t.attr(n)+"",(h="function"==typeof e.enableByHtml5?e.enableByHtml5(t):null)&&"false"!==s||!0!==h&&(""===s||"true"===s||n===s.toLowerCase()))for(l in e.html5Attributes=x.extend({},{message:"message",onerror:"onError",onsuccess:"onSuccess",transformer:"transformer"},e.html5Attributes),u[i]=x.extend({},!0===h?{}:h,u[i]),e.alias&&(u[i].alias=e.alias),e.html5Attributes)a=e.html5Attributes[l],r="data-"+d+"-"+i.toLowerCase()+"-"+l,(o=t.attr(r))&&("true"===o||r===o.toLowerCase()?o=!0:"false"===o&&(o=!1),u[i][a]=o);var g={autoFocus:t.attr("data-"+d+"-autofocus"),err:t.attr("data-"+d+"-err-container")||t.attr("data-"+d+"-container"),enabled:t.attr("data-"+d+"-enabled"),excluded:t.attr("data-"+d+"-excluded"),icon:t.attr("data-"+d+"-icon")||t.attr("data-"+d+"-feedbackicons")||(this.options.fields&&this.options.fields[c]?this.options.fields[c].feedbackIcons:null),message:t.attr("data-"+d+"-message"),onError:t.attr("data-"+d+"-onerror"),onStatus:t.attr("data-"+d+"-onstatus"),onSuccess:t.attr("data-"+d+"-onsuccess"),row:t.attr("data-"+d+"-row")||t.attr("data-"+d+"-group")||(this.options.fields&&this.options.fields[c]?this.options.fields[c].group:null),selector:t.attr("data-"+d+"-selector"),threshold:t.attr("data-"+d+"-threshold"),transformer:t.attr("data-"+d+"-transformer"),trigger:t.attr("data-"+d+"-trigger"),verbose:t.attr("data-"+d+"-verbose"),validators:u},m=x.isEmptyObject(g);return!x.isEmptyObject(u)||!m&&this.options.fields&&this.options.fields[c]?g:null},_submit:function(){var t=this.isValid();if(null!==t){var e=t?this.options.events.formSuccess:this.options.events.formError,i=x.Event(e);this.$form.trigger(i),this.$submitButton&&(t?this._onSuccess(i):this._onError(i))}},_onError:function(t){if(!t.isDefaultPrevented()){if("submitted"===this.options.live){this.options.live="enabled";var e=this;for(var i in this.options.fields)n=i,s=void 0,(s=e.getFieldElements(n)).length&&e.onLiveChange(s,"live",function(){e._exceedThreshold(x(this))&&e.validateField(x(this))})}for(var n,s,a=this._namespace,r=0;r<this.$invalidFields.length;r++){var o=this.$invalidFields.eq(r);if(this.isOptionEnabled(o.attr("data-"+a+"-field"),"autoFocus")){o.focus();break}}}},_onFieldValidated:function(t,e){var i=this._namespace,n=t.attr("data-"+i+"-field"),s=this.options.fields[n].val
32idators,a={},r=0,o={bv:this,fv:this,field:n,element:t,validator:e,result:t.data(i+".response."+e)};if(e)switch(t.data(i+".result."+e)){case this.STATUS_INVALID:t.trigger(x.Event(this.options.events.validatorError),o);break;case this.STATUS_VALID:t.trigger(x.Event(this.options.events.validatorSuccess),o);break;case this.STATUS_IGNORED:t.trigger(x.Event(this.options.events.validatorIgnored),o)}for(var l in a[this.STATUS_NOT_VALIDATED]=0,a[this.STATUS_VALIDATING]=0,a[this.STATUS_INVALID]=0,a[this.STATUS_VALID]=0,a[this.STATUS_IGNORED]=0,s)if(!1!==s[l].enabled){r++;var h=t.data(i+".result."+l);h&&a[h]++}a[this.STATUS_VALID]+a[this.STATUS_IGNORED]===r?(this.$invalidFields=this.$invalidFields.not(t),t.trigger(x.Event(this.options.events.fieldSuccess),o)):(0===a[this.STATUS_NOT_VALIDATED]||!this.isOptionEnabled(n,"verbose"))&&0===a[this.STATUS_VALIDATING]&&0<a[this.STATUS_INVALID]&&(this.$invalidFields=this.$invalidFields.add(t),t.trigger(x.Event(this.options.events.fieldError),o))},_onSuccess:function(t){t.isDefaultPrevented()||this.disableSubmitButtons(!0).defaultSubmit()},_fixIcon:function(){},_createTooltip:function(){},_destroyTooltip:function(){},_hideTooltip:function(){},_showTooltip:function(){},defaultSubmit:function(){var t=this._namespace;this.$submitButton&&x("<input/>").attr({type:"hidden",name:this.$submitButton.attr("name")}).attr("data-"+t+"-submit-hidden","").val(this.$submitButton.val()).appendTo(this.$form),this.$form.off("submit."+t).submit()},disableSubmitButtons:function(t){return t?"disabled"!==this.options.live&&this.$form.find(this.options.button.selector).attr("disabled","disabled").addClass(this.options.button.disabled):this.$form.find(this.options.button.selector).removeAttr("disabled").removeClass(this.options.button.disabled),this},getFieldElements:function(t){if(!this._cacheFields[t])if(this.options.fields[t]&&this.options.fields[t].selector){var e=this.$form.find(this.options.fields[t].selector);this._cacheFields[t]=e.length?e:x(this.options.fields[t].selector)}else this._cacheFields[t]=this.$form.find('[name="'+t+'"]');return this._cacheFields[t]},getFieldValue:function(t,e){var i,n=this._namespace;if("string"==typeof t){if(0===(i=this.getFieldElements(t)).length)return null}else t=(i=t).attr("data-"+n+"-field");if(!t||!this.options.fields[t])return i.val();var s=(this.options.fields[t].validators&&this.options.fields[t].validators[e]?this.options.fields[t].validators[e].transformer:null)||this.options.fields[t].transformer;return s?FormValidation.Helper.call(s,[i,e,this]):i.val()},getNamespace:function(){return this._namespace},getOptions:function(t,e,i){var n=this._namespace;if(!t)return i?this.options[i]:this.options;if("object"==typeof t&&(t=t.attr("data-"+n+"-field")),!this.options.fields[t])return null;var s=this.options.fields[t];return e?s.validators&&s.validators[e]?i?s.validators[e][i]:s.validators[e]:null:i?s[i]:s},getStatus:function(t,e){var i=this._namespace;switch(typeof t){case"object":return t.data(i+".result."+e);case"string":default:return this.getFieldElements(t).eq(0).data(i+".result."+e)}},isOptionEnabled:function(t,e){return!(!this.options.fields[t]||"true"!==this.options.fields[t][e]&&!0!==this.options.fields[t][e])||(!this.options.fields[t]||"false"!==this.options.fields[t][e]&&!1!==this.options.fields[t][e])&&("true"===this.options[e]||!0===this.options[e])},isValid:function(){for(var t in this.options.fields){var e=this.isValidField(t);if(null===e)return null;if(!1===e)return!1}return!0},isValidContainer:function(t){var e=this,i=this._namespace,n=[],s="string"==typeof t?x(t):t;if(0===s.length)return!0;s.find("[data-"+i+"-field]").each(function(){var t=x(this);e._isExcluded(t)||n.push(t)});for(var a=n.length,r=0;r<a;r++){var o=n[r],l=o.attr("data-"+i+"-field"),h=o.data(i+".messages").find("."+this.options.err.clazz.split(" ").join(".")+"[data-"+i+"-validator][data-"+i+'-for="'+l+'"]');if(!this.options.fields||!this.options.fields[l]||"false"!==this.options.fields[l].enabled&&!1!==this.options.fields[l].enabled){if(0<h.filter("[data-"+i+'-result="'+this.STATUS_INVALID+'"]').length)return!1;if(0<h.filter("[data-"+i+'-result="'+this.STATUS_NOT_VALIDATED+'"]').length||0<h.filter("[data-"+i+'-result="'+this.STATUS_VALIDATING+'"]').length)return null}}return!0},isValidField:function(t){var e=this._namespace,i=x([]);switch(typeof t){case"object":t=(i=t).attr("data-"+e+"-field");break;case"string":i=this.getFieldElements(t)}if(0===i.length||!this.options.fields[t]||"false"===this.options.fields[t].enabled||!1===this.options.fields[t].enabled)return!0;for(var n,s,a,r=i.attr("type"),o="radio"===r||"checkbox"===r?1:i.length,l=0;l<o;l++)if(n=i.eq(l),!this._isExcluded(n))for(s in this.options.fields[t].validators)if(!1!==this.options.fields[t].validators[s].enabled){if((a=n.data(e+".result."+s))===this.STATUS_VALIDATING||a===this.STATUS_NOT_VALIDATED)return null;if(a===this.STATUS_INVALID)return!1}return!0},offLiveChange:function(t,e){if(null===t||0===t.length)return this;var i=this._namespace,n=this._getFieldTrigger(t.eq(0)),s=x.map(n,function(t){return t+"."+e+"."+i}).join(" ");return t.off(s),this}
32,onLiveChange:function(t,e,i){if(null===t||0===t.length)return this;var n=this._namespace,s=this._getFieldTrigger(t.eq(0)),a=x.map(s,function(t){return t+"."+e+"."+n}).join(" ");switch(this.options.live){case"submitted":break;case"disabled":t.off(a);break;case"enabled":default:t.off(a).on(a,function(t){i.apply(this,arguments)})}return this},updateMessage:function(t,e,i){var n=this,s=this._namespace,a=x([]);switch(typeof t){case"object":t=(a=t).attr("data-"+s+"-field");break;case"string":a=this.getFieldElements(t)}return a.each(function(){x(this).data(s+".messages").find("."+n.options.err.clazz+"[data-"+s+'-validator="'+e+'"][data-'+s+'-for="'+t+'"]').html(i)}),this},updateStatus:function(t,e,i){var n=this._namespace,s=x([]);switch(typeof t){case"object":t=(s=t).attr("data-"+n+"-field");break;case"string":s=this.getFieldElements(t)}if(!t||!this.options.fields[t])return this;e===this.STATUS_NOT_VALIDATED&&(this._submitIfValid=!1);for(var a=this,r=s.attr("type"),o=this.options.fields[t].row||this.options.row.selector,l="radio"===r||"checkbox"===r?1:s.length,h=0;h<l;h++){var d=s.eq(h);if(!this._isExcluded(d)){var c,u,p=d.closest(o),f=d.data(n+".messages").find("."+this.options.err.clazz.split(" ").join(".")+"[data-"+n+"-validator][data-"+n+'-for="'+t+'"]'),g=i?f.filter("[data-"+n+'-validator="'+i+'"]'):f,m=d.data(n+".icon"),v="function"==typeof(this.options.fields[t].container||this.options.fields[t].err||this.options.err.container)?(this.options.fields[t].container||this.options.fields[t].err||this.options.err.container).call(this,d,this):this.options.fields[t].container||this.options.fields[t].err||this.options.err.container,_=null;if(i)d.data(n+".result."+i,e);else for(var b in this.options.fields[t].validators)d.data(n+".result."+b,e);switch(g.attr("data-"+n+"-result",e),e){case this.STATUS_VALIDATING:_=null,this.disableSubmitButtons(!0),d.removeClass(this.options.control.valid).removeClass(this.options.control.invalid),p.removeClass(this.options.row.valid).removeClass(this.options.row.invalid),m&&m.removeClass(this.options.icon.valid).removeClass(this.options.icon.invalid).addClass(this.options.icon.validating).show();break;case this.STATUS_INVALID:_=!1,this.disableSubmitButtons(!0),d.removeClass(this.options.control.valid).addClass(this.options.control.invalid),p.removeClass(this.options.row.valid).addClass(this.options.row.invalid),m&&m.removeClass(this.options.icon.valid).removeClass(this.options.icon.validating).addClass(this.options.icon.invalid).show();break;case this.STATUS_IGNORED:case this.STATUS_VALID:c=0<f.filter("[data-"+n+'-result="'+this.STATUS_VALIDATING+'"]').length,u=0<f.filter("[data-"+n+'-result="'+this.STATUS_NOT_VALIDATED+'"]').length;var y=f.filter("[data-"+n+'-result="'+this.STATUS_IGNORED+'"]').length;_=c||u?null:f.filter("[data-"+n+'-result="'+this.STATUS_VALID+'"]').length+y===f.length,d.removeClass(this.options.control.valid).removeClass(this.options.control.invalid),!0===_?(this.disableSubmitButtons(!1===this.isValid()),e===this.STATUS_VALID&&d.addClass(this.options.control.valid)):!1===_&&(this.disableSubmitButtons(!0),e===this.STATUS_VALID&&d.addClass(this.options.control.invalid)),m&&(m.removeClass(this.options.icon.invalid).removeClass(this.options.icon.validating).removeClass(this.options.icon.valid),e!==this.STATUS_VALID&&y===f.length||m.addClass(c?this.options.icon.validating:null===_?"":_?this.options.icon.valid:this.options.icon.invalid).show());var w=this.isValidContainer(p);null!==w&&(p.removeClass(this.options.row.valid).removeClass(this.options.row.invalid),e!==this.STATUS_VALID&&y===f.length||p.addClass(w?this.options.row.valid:this.options.row.invalid));break;case this.STATUS_NOT_VALIDATED:default:_=null,this.disableSubmitButtons(!1),d.removeClass(this.options.control.valid).removeClass(this.options.control.invalid),p.removeClass(this.options.row.valid).removeClass(this.options.row.invalid),m&&m.removeClass(this.options.icon.valid).removeClass(this.options.icon.invalid).removeClass(this.options.icon.validating).hide()}!m||"tooltip"!==v&&"popover"!==v?e===this.STATUS_INVALID?g.show():g.hide():!1===_?this._createTooltip(d,f.filter("[data-"+n+'-result="'+a.STATUS_INVALID+'"]').eq(0).html(),v):this._destroyTooltip(d,v),d.trigger(x.Event(this.options.events.fieldStatus),{bv:this,fv:this,field:t,element:d,status:e}),this._onFieldValidated(d,i)}}return this},validate:function(){if(x.isEmptyObject(this.options.fields))return this._submit(),this;for(var t in this.$form.trigger(x.Event(this.options.events.formPreValidate)),this.disableSubmitButtons(!0),this._submitIfValid=!1,this.options.fields)this.validateField(t);return this._submit(),this._submitIfValid=!0,this},validateField:function(t){var n=this._namespace,e=x([]);switch(typeof t){case"object":t=(e=t).attr("data-"+n+"-field");break;case"string":e=this.getFieldElements(t)}if(0===e.length||!this.options.fields[t]||"false"===this.options.fields[t].enabled||!1===this.options.fields[t].enabled)return this;for(var i,s,a,r=this,o=e.attr("type"),l="radio"===o||"checkbox"===o?1:e.length,h="radio"===o||"checkbox"===o,d=this.options.fields[t].validators,c=this.isOptionEnabled(t,"verbose"),u=0;u<l;u++){var p=e.eq(u);if(!this._isExcluded(p)){var f=!1;for(i in d){if(p.data(n+".dfs."+i)&&p.data(n+".dfs."+i).reject(),f)break;var g=p.data(n+".result."+i);if(g!==this.STATUS_VALID&&g!==this.STATUS_INVALID)if(!1!==d[i].enabled)if(p.data(n+".result."+i,this.STATUS_VALIDATING),s=d[i].alias||i,"object"==typeof(a=FormValidation.Validator[s].validate(this,p,d[i],i))&&a.resolve)this.updateStatus(h?t:p,this.STATUS_VALIDATING,i),p.data(n+".dfs."+i,a),a.done(function(t,e,
32i){t.removeData(n+".dfs."+e).data(n+".response."+e,i),i.message&&r.updateMessage(t,e,i.message),r.updateStatus(h?t.attr("data-"+n+"-field"):t,!0===i.valid?r.STATUS_VALID:!1===i.valid?r.STATUS_INVALID:r.STATUS_IGNORED,e),i.valid&&!0===r._submitIfValid?r._submit():!1!==i.valid||c||(f=!0)});else if("object"==typeof a&&a.valid!==undefined){if(p.data(n+".response."+i,a),a.message&&this.updateMessage(h?t:p,i,a.message),this.updateStatus(h?t:p,!0===a.valid?this.STATUS_VALID:!1===a.valid?this.STATUS_INVALID:this.STATUS_IGNORED,i),!1===a.valid&&!c)break}else if("boolean"==typeof a){if(p.data(n+".response."+i,a),this.updateStatus(h?t:p,a?this.STATUS_VALID:this.STATUS_INVALID,i),!a&&!c)break}else null===a&&(p.data(n+".response."+i,a),this.updateStatus(h?t:p,this.STATUS_IGNORED,i));else this.updateStatus(h?t:p,this.STATUS_IGNORED,i);else this._onFieldValidated(p,i)}}}return this},addField:function(t,e){var i=this._namespace,n=x([]);switch(typeof t){case"object":t=(n=t).attr("data-"+i+"-field")||t.attr("name");break;case"string":delete this._cacheFields[t],n=this.getFieldElements(t)}n.attr("data-"+i+"-field",t);for(var s=n.attr("type"),a="radio"===s||"checkbox"===s?1:n.length,r=0;r<a;r++){var o=n.eq(r),l=this._parseOptions(o);l=null===l?e:x.extend(!0,l,e),this.options.fields[t]=x.extend(!0,this.options.fields[t],l),this._cacheFields[t]=this._cacheFields[t]?this._cacheFields[t].add(o):o,this._initField("checkbox"===s||"radio"===s?t:o)}return this.disableSubmitButtons(!1),this.$form.trigger(x.Event(this.options.events.fieldAdded),{field:t,element:n,options:this.options.fields[t]}),this},destroy:function(){var t,e,i,n,s,a,r,o,l=this._namespace;for(e in this.options.fields)for(i=this.getFieldElements(e),t=0;t<i.length;t++)for(s in n=i.eq(t),this.options.fields[e].validators)n.data(l+".dfs."+s)&&n.data(l+".dfs."+s).reject(),n.removeData(l+".result."+s).removeData(l+".response."+s).removeData(l+".dfs."+s),o=this.options.fields[e].validators[s].alias||s,"function"==typeof FormValidation.Validator[o].destroy&&FormValidation.Validator[o].destroy(this,n,this.options.fields[e].validators[s],s);for(e in this.options.fields)for(i=this.getFieldElements(e),r=this.options.fields[e].row||this.options.row.selector,t=0;t<i.length;t++){(n=i.eq(t)).data(l+".messages").find("."+this.options.err.clazz.split(" ").join(".")+"[data-"+l+"-validator][data-"+l+'-for="'+e+'"]').remove().end().end().removeData(l+".messages").closest(r).removeClass(this.options.row.valid).removeClass(this.options.row.invalid).removeClass(this.options.row.feedback).end().off("."+l).removeAttr("data-"+l+"-field");var h="function"==typeof(this.options.fields[e].container||this.options.fields[e].err||this.options.err.container)?(this.options.fields[e].container||this.options.fields[e].err||this.options.err.container).call(this,n,this):this.options.fields[e].container||this.options.fields[e].err||this.options.err.container;"tooltip"!==h&&"popover"!==h||this._destroyTooltip(n,h),(a=n.data(l+".icon"))&&a.remove(),n.removeData(l+".icon").removeData(l+".trigger")}for(var d in this.options.addOns)"function"==typeof FormValidation.AddOn[d].destroy&&FormValidation.AddOn[d].destroy(this,this.options.addOns[d]);this.disableSubmitButtons(!1),this.$hiddenButton.remove(),this.$form.removeClass(this.options.elementClass).off("."+l).removeData("bootstrapValidator").removeData("formValidation").find("[data-"+l+"-submit-hidden]").remove().end().find('[type="submit"]').off("
32click."+l)},enableFieldValidators:function(t,e,i){var n=this.options.fields[t].validators;if(i&&n&&n[i]&&n[i].enabled!==e)this.options.fields[t].validators[i].enabled=e,this.updateStatus(t,this.STATUS_NOT_VALIDATED,i);else if(!i&&this.options.fields[t].enabled!==e)for(var s in this.options.fields[t].enabled=e,n)this.enableFieldValidators(t,e,s);return this},getDynamicOption:function(t,e){var i="string"==typeof t?this.getFieldElements(t):t,n=i.val();if("function"==typeof e)return FormValidation.Helper.call(e,[n,this,i]);if("string"!=typeof e)return null;var s=this.getFieldElements(e);return s.length?s.val():FormValidation.Helper.call(e,[n,this,i])||e},getForm:function(){return this.$form},getInvalidFields:function(){return this.$invalidFields},getLocale:function(){return this.options.locale},getMessages:function(t,e){var i=this,n=this._namespace,s=[],a=x([]);switch(!0){case t&&"object"==typeof t:a=t;break;case t&&"string"==typeof t:var r=this.getFieldElements(t);if(0<r.length){var o=r.attr("type");a="radio"===o||"checkbox"===o?r.eq(0):r}break;default:a=this.$invalidFields}var l=e?"[data-"+n+'-validator="'+e+'"]':"";return a.each(function(){s=s.concat(x(this).data(n+".messages").find("."+i.options.err.clazz+"[data-"+n+'-for="'+x(this).attr("data-"+n+"-field")+'"][data-'+n+'-result="'+i.STATUS_INVALID+'"]'+l).map(function(){var t=x(this).attr("data-"+n+"-validator"),e=x(this).attr("data-"+n+"-for");return!1===i.options.fields[e].validators[t].enabled?"":x(this).html()}).get())}),s},getSubmitButton:function(){return this.$submitButton},removeField:function(t){var e=this._namespace,i=x([]);switch(typeof t){case"object":t=(i=t).attr("data-"+e+"-field")||t.attr("name"),i.attr("data-"+e+"-field",t);break;case"string":i=this.getFieldElements(t)}if(0===i.length)return this;for(var n=i.attr("type"),s="radio"===n||"checkbox"===n?1:i.length,a=0;a<s;a++){var r=i.eq(a);this.$invalidFields=this.$invalidFields.not(r),this._cacheFields[t]=this._cacheFields[t].not(r)}return this._cacheFields[t]&&0!==this._cacheFields[t].length||delete this.options.fields[t],"checkbox"!==n&&"radio"!==n||this._initField(t),this.disableSubmitButtons(!1),this.$form.trigger(x.Event(this.options.events.fieldRemoved),{field:t,element:i}),this},resetField:function(t,e){var i=this._namespace,n=x([]);switch(typeof t){case"object":t=(n=t).attr("data-"+i+"-field");break;case"string":n=this.getFieldElements(t)}var s=n.length;if(this.options.fields[t])for(var a=0;a<s;a++)for(var r in this.options.fields[t].validators)n.eq(a).removeData(i+".dfs."+r);if(e){var o=n.attr("type");"radio"===o||"checkbox"===o?n.prop("checked",!1).removeAttr("selected"):n.val("")}return this.updateStatus(t,this.STATUS_NOT_VALIDATED),this},resetForm:function(t){for(var e in this.options.fields)this.resetField(e,t);return this.$invalidFields=x([]),this.$submitButton=null,this.disableSubmitButtons(!1),this},revalidateField:function(t){return this.updateStatus(t,this.STATUS_NOT_VALIDATED).validateField(t),this},setLocale:function(t){return this.options.locale=t,this.$form.trigger(x.Event(this.options.events.localeChanged),{locale:t,bv:this,fv:this}),this},updateOption:function(t,e,i,n){var s=this._namespace;return"object"==typeof t&&(t=t.attr("data-"+s+"-field")),this.options.fields[t]&&this.options.fields[t].validators[e]&&(this.options.fields[t].validators[e][i]=n,this.updateStatus(t,this.STATUS_NOT_VALIDATED,e)),this},validateContainer:function(t){var e=this,i=this._namespace,n=[],s="string"==typeof t?x(t):t;if(0===s.length)return this;s.find("[data-"+i+"-field]").each(function(){var t=x(this);e._isExcluded(t)||n.push(t)});for(var a=n.length,r=0;r<a;r++)this.validateField(n[r]);return this}},x.fn.formValidation=function(a){var r=arguments;return this.each(function(){var t=x(this),e=t.data("formValidation"),i="object"==typeof a&&a;if(!e){var n=(i.framework||t.attr("data-fv-framework")||"foundation").toLowerCase(),s=n.substr(0,1).toUpperCase()+n.substr(1);if("undefined"==typeof FormValidation.Framework[s])throw new Error("The class FormValidation.Framework."+s+" is not implemented");e=new FormValidation.Framework[s](this,i),t.addClass("fv-form-"+n).data("formValidation",e)}"string"==typeof a&&e[a].apply(e,Array.prototype.slice.call(r,1))})},x.fn.formValidation.Constructor=FormValidation.Base,x.fn.formValidation.DEFAULT_MESSAGE="This value is not val
32id",x.fn.formValidation.DEFAULT_OPTIONS={autoFocus:!0,declarative:!0,elementClass:"fv-form",events:{formInit:"init.form.fv",formPreValidate:"prevalidate.form.fv",formError:"err.form.fv",formSuccess:"success.form.fv",fieldAdded:"added.field.fv",fieldRemoved:"removed.field.fv",fieldInit:"init.field.fv",fieldError:"err.field.fv",fieldSuccess:"success.field.fv",fieldStatus:"status.field.fv",localeChanged:"changed.locale.fv",validatorError:"err.validator.fv",validatorSuccess:"success.validator.fv",validatorIgnored:"ignored.validator.fv"},excluded:[":disabled",":hidden",":not(:visible)"],fields:null,live:"enabled",locale:"en_US",message:null,threshold:null,verbose:!0,button:{selector:'[type="submit"]:not([formnovalidate])',disabled:""},control:{valid:"",invalid:""},err:{clazz:"",container:null,parent:null},icon:{valid:null,invalid:null,validating:null,feedback:""},row:{selector:null,valid:"",invalid:"",feedback:""}}}(jQuery),function(n){FormValidation.Helper={call:function(t,e){if("function"==typeof t)return t.apply(this,e);if("string"==typeof t){"()"===t.substring(t.length-2)&&(t=t.substring(0,t.length-2));for(var i=t.split("."),n=i.pop(),s=window,a=0;a<i.length;a++)s=s[i[a]];return"undefined"==typeof s[n]?null:s[n].apply(this,e)}},date:function(t,e,i,n){if(isNaN(t)||isNaN(e)||isNaN(i))return!1;if(2<i.length||2<e.length||4<t.length)return!1;if(i=parseInt(i,10),e=parseInt(e,10),(t=parseInt(t,10))<1e3||9999<t||e<=0||12<e)return!1;var s=[31,28,31,30,31,30,31,31,30,31,30,31];if((t%400==0||t%100!=0&&t%4==0)&&(s[1]=29),i<=0||i>s[e-1])return!1;if(!0!==n)return!0;var a=new Date,r=a.getFullYear(),o=a.getMonth(),l=a.getDate();return t<r||t===r&&e-1<o||t===r&&e-1===o&&i<l},format:function(t,e){for(var i in n.isArray(e)||(e=[e]),e)t=t.replace("%s",e[i]);return t},luhn:function(t){for(var e=t.length,i=0,n=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],s=0;e--;)s+=n[i][parseInt(t.charAt(e),10)],i^=1;return s%10==0&&0<s},mod11And10:function(t){for(var e=5,i=t.length,n=0;n<i;n++)e=(2*(e||10)%11+parseInt(t.charAt(n),10))%10;return 1===e},mod37And36:function(t,e){for(var i=(e=e||"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ").length,n=t.length,s=Math.floor(i/2),a=0;a<n;a++)s=(2*(s||i)%(i+1)+e.indexOf(t.charAt(a)))%i;return 1===s}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{base64:{"default":"Please enter a valid base 64 encoded"}}}),FormValidation.Validator.base64={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);return""===s||/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/.test(s)}}}(jQuery),function(d){FormValidation.I18n=d.extend(!0,FormValidation.I18n||{},{en_US:{between:{"default":"Please enter a value between %s and %s",notInclusive:"Please enter a value between %s and %s strictly"}}}),FormValidation.Validator.between={html5Attributes:{message:"message",min:"min",max:"max",inclusive:"inclusive"},enableByHtml5:function(t){return"range"===t.attr("type")&&{min:t.attr("min"),max:t.attr("max")}},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;s=this._format(s);var a=t.getLocale(),r=d.isNumeric(i.min)?i.min:t.getDynamicOption(e,i.min),o=d.isNumeric(i.max)?i.max:t.getDynamicOption(e,i.max),l=this._format(r),h=this._format(
32o);return!0===i.inclusive||i.inclusive===undefined?{valid:d.isNumeric(s)&&parseFloat(s)>=l&&parseFloat(s)<=h,message:FormValidation.Helper.format(i.message||FormValidation.I18n[a].between["default"],[r,o])}:{valid:d.isNumeric(s)&&parseFloat(s)>l&&parseFloat(s)<h,message:FormValidation.Helper.format(i.message||FormValidation.I18n[a].between.notInclusive,[r,o])}},_format:function(t){return(t+"").replace(",",".")}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{bic:{"default":"Please enter a valid BIC number"}}}),FormValidation.Validator.bic={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);return""===s||/^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$/.test(s)}}}(jQuery),jQuery,FormValidation.Validator.blank={validate:function(){return!0}},function(l){FormValidation.I18n=l.extend(!0,FormValidation.I18n||{},{en_US:{callback:{"default":"Please enter a valid value"}}}),FormValidation.Validator.callback={html5Attributes:{message:"message",callback:"callback"},validate:function(t,e,i,n){var s=t.getFieldValue(e,n),a=new l.Deferred,r={valid:!0};if(i.callback){var o=FormValidation.Helper.call(i.callback,[s,t,e]);r="boolean"==typeof o||null===o?{valid:o}:o}return a.resolve(e,n,r),a}}}(jQuery),function(d){FormValidation.I18n=d.extend(!0,FormValidation.I18n||{},{en_US:{choice:{"default":"Please enter a valid value",less:"Please choose %s options at minimum",more:"Please choose %s options at maximum",between:"Please choose %s - %s options"}}}),FormValidation.Validator.choice={html5Attributes:{message:"message",min:"min",max:"max"},validate:function(t,e,i){var n=t.getLocale(),s=t.getNamespace(),a=e.is("select")?t.getFieldElements(e.attr("data-"+s+"-field")).find("option").filter(":selected").length:t.getFieldElements(e.attr("data-"+s+"-field")).filter(":checked").length,r=i.min?d.isNumeric(i.min)?i.min:t.getDynamicOption(e,i.min):null,o=i.max?d.isNumeric(i.max)?i.max:t.getDynamicOption(e,i.max):null,l=!0,h=i.message||FormValidation.I18n[n].choice["default"];switch((r&&a<parseInt(r,10)||o&&a>parseInt(o,10))&&(l=!1),!0){case!!r&&!!o:h=FormValidation.Helper.format(i.message||FormValidation.I18n[n].choice.between,[parseInt(r,10),parseInt(o,10)]);break;case!!r:h=FormValidation.Helper.format(i.message||FormValidation.I18n[n].choice.less,parseInt(r,10));break;case!!o:
33h=FormValidation.Helper.format(i.message||FormValidation.I18n[n].choice.more,parseInt(o,10))}return{valid:l,message:h}}}}(jQuery),function(h){FormValidation.I18n=h.extend(!0,FormValidation.I18n||{},{en_US:{color:{"default":"Please enter a valid color"}}}),FormValidation.Validator.color={html5Attributes:{message:"message",type:"type"},enableByHtml5:function(t){return"color"===t.attr("type")},SUPPORTED_TYPES:["hex","rgb","rgba","hsl","hsla","keyword"],KEYWORD_COLORS:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],validate:function(t,e,
33i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(this.enableByHtml5(e))return/^#[0-9A-F]{6}$/i.test(s);var a=i.type||this.SUPPORTED_TYPES;h.isArray(a)||(a=a.replace(/s/g,"").split(","));for(var r,o=!1,l=0;l<a.length;l++)if(r="_"+a[l].toLowerCase(),o=o||this[r](s))return!0;return!1},_hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},_hsl:function(t){return/^hsl\((\s*(-?\d+)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/.test(t)},_hsla:function(t){return/^hsla\((\s*(-?\d+)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(t)},_keyword:function(t){return 0<=h.inArray(t,this.KEYWORD_COLORS)},_rgb:function(t){var e=/^rgb\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/;return/^rgb\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){2}(\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*)\)$/.test(t)||e.test(t)},_rgba:function(t){var e=/^rgba\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/;return/^rgba\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(t)||e.test(t)}}}(jQuery),function(l){FormValidation.I18n=l.extend(!0,FormValidation.I18n||{},{en_US:{creditCard:{"default":"Please enter a valid credit card number"}}}),FormValidation.Validator.creditCard={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(/[^0-9-\s]+/.test(s))return!1;if(s=s.replace(/\D/g,""),!FormValidation.Helper.luhn(s))return!1;var a,r,o={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]}};for(a in o)for(r in o[a].prefix)if(s.substr(0,o[a].prefix[r].length)===o[a].prefix[r]&&-1!==l.inArray(s.length,o[a].length))return{valid:!0,type:a};return!1}}}(jQuery),function(d){FormValidation.I18n=d.extend(!0,FormValidation.I18n||{},{en_US:{cusip:{"default":"Please enter a valid CUSIP number"}}}),FormValidation.Validator.cusip={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(s=s.toUpperCase(),!/^[0-9A-Z]{9}$/.test(s))return!1;for(var a=d.map(s.split(""),function(t){var e=t.charCodeAt(0);return e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)?e-"A".charCodeAt(0)+10:t}),r=a.length,o=0,l=0;l<r-1;l++){var h=parseInt(a[l],10);l%2!=0&&(h*=2),9<h&&(h-=9),o+=h}return(o=(10-o%10)%10)===parseInt(a[r-1],10)}}}(jQuery),function(d){FormValidation.I18n=d.extend(!0,FormValidation.I18n||{},{en_US:{cvv:{"default":"Please enter a valid CVV number"}}}),FormValidation.Validator.cvv={html5Attributes:{message:"message",ccfield:"creditCardField"},init:function(t,e,i,n){if(i.creditCardField){var s=t.getFieldElements(i.creditCardField);t.onLiveChange(s,"live_"+n,function(){t.getStatus(e,n)!==t.STATUS_NOT_VALIDATED&&t.revalidateField(e)})}},destroy:function(t,e,i,n){if(i.creditCardField){var s=t.getFieldElements(i.creditCardField);t.offLiveChange(s,"live_"+n)}},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(!/^[0-9]{3,4}$/.test(s))return!1;if(!i.creditCardField)return!0;var a=t.getFieldElements(i.creditCardField).val();if(""===a)return!0;a=a.replace(/\D/g,"");var r,o,l={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","6304","6759","6761","6762","6763","6764","6765","6766"]}
33,MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]}},h=null;for(r in l)for(o in l[r].prefix)if(a.substr(0,l[r].prefix[o].length)===l[r].prefix[o]&&-1!==d.inArray(a.length,l[r].length)){h=r;break}return null!==h&&("AMERICAN_EXPRESS"===h?4===s.length:3===s.length)}}}(jQuery),function(T){FormValidation.I18n=T.extend(!0,FormValidation.I18n||{},{en_US:{date:{"default":"Please enter a valid date",min:"Please enter a date after %s",max:"Please enter a date before %s",range:"Please enter a date in the range %s - %s"}}}),FormValidation.Validator.date={html5Attributes:{message:"message",format:"format",min:"min",max:"max",separator:"separator"},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;i.format=i.format||"MM/DD/YYYY","date"===e.attr("type")&&(i.format="YYYY-MM-DD");var a=t.getLocale(),r=i.message||FormValidation.I18n[a].date["default"],o=i.format.split(" "),l=o[0],h=1<o.length?o[1]:null,d=2<o.length?o[2]:null,c=s.split(" "),u=c[0],p=1<c.length?c[1]:null;if(o.length!==c.length)return{valid:!1,message:r};var f=i.separator;if(f||(f=-1!==u.indexOf("/")?"/":-1!==u.indexOf("-")?"-":-1!==u.indexOf(".")?".":null),null===f||-1===u.indexOf(f))return{valid:!1,message:r};if(u=u.split(f),l=l.split(f),u.length!==l.length)return{valid:!1,message:r};var g=u[T.inArray("YYYY",l)],m=u[T.inArray("MM",l)],v=u[T.inArray("DD",l)];if(!g||!m||!v||4!==g.length)return{valid:!1,message:r};var _=null,b=null,y=null;if(h){if(h=h.split(":"),p=p.split(":"),h.length!==p.length)return{valid:!1,message:r};if(b=0<p.length?p[0]:null,_=1<p.length?p[1]:null,y=2<p.length?p[2]:null,""===b||""===_||""===y)return{valid:!1,message:r};if(y){if(isNaN(y)||2<y.length)return{valid:!1,message:r};if((y=parseInt(y,10))<0||60<y)return{valid:!1,message:r}}if(b){if(isNaN(b)||2<b.length)return{valid:!1,message:r};if((b=parseInt(b,10))<0||24<=b||d&&12<b)return{valid:!1,message:r}}if(_){if(isNaN(_)||2<_.length)return{valid:!1,message:r};if((_=parseInt(_,10))<0||59<_)return{valid:!1,message:r}}}var w=FormValidation.Helper.date(g,m,v),x=null,C=null,S=i.min,k=i.max;switch(S&&(isNaN(Date.parse(S))&&(S=t.getDynamicOption(e,S)),x=S instanceof Date?S:this._parseDate(S,l,f),S=S instanceof Date?this._formatDate(S,i.format):S),k&&(isNaN(Date.parse(k))&&(k=t.getDynamicOption(e,k)),C=k instanceof Date?k:this._parseDate(k,l,f),k=k instanceof Date?this._formatDate(k,i.format):k),u=new Date(g,m-1,v,b,_,y),!0){case S&&!k&&w:w=u.getTime()>=x.getTime(),r=i.message||FormValidation.Helper.format(FormValidation.I18n[a].date.min,S);break;case k&&!S&&w:w=u.getTime()<=C.getTime(),r=i.message||FormValidation.Helper.format(FormValidation.I18n[a].date.max,k);break;case k&&S&&w:w=u.getTime()<=C.getTime()&&u.getTime()>=x.getTime(),r=i.message||FormValidation.Helper.format(FormValidation.I18n[a].date.range,[S,k])}return{valid:w,date:u,message:r}},_parseDate:function(t,e,i){var n=0,s=0,a=0,r=t.split(" "),o=r[0],l=1<r.length?r[1]:null,h=(o=o.split(i))[T.inArray("YYYY",e)],d=o[T.inArray("MM",e)],c=o[T.inArray("DD",e)];return l&&(s=0<(l=l.split(":")).length?l[0]:null,n=1<l.length?l[1]:null,a=2<l.length?l[2]:null),new Date(h,d-1,c,s,n,a)},_formatDate:function(e,t){t=t.replace(/Y/g,"y").replace(/M/g,"m").replace(/D/g,"d").replace(/:m/g,":M").replace(/:mm/g,":MM").replace(/:S/,":s").replace(/:SS/,":ss");var i={d:function(t){return t.getDate()},dd:function(t){var e=t.getDate();return e<10?"0"+e:e},m:function(t){return t.getMonth()+1},mm:function(t){var e=t.getMonth()+1;return e<10?"0"+e:e},yy:function(t){return(""+t.getFullYear()).substr(2)},yyyy:function(t){return t.getFullYear()},h:function(t){return t.getHours()%12||12},hh:function(t){var e=t.getHours()%12||12;return e<10?"0"+e:e},H:function(t){return t.getHours()},HH:function(t){var e=t.getHours();return e<10?"0"+e:e},M:function(t){return t.getMinutes()},MM:function(t){var e=t.getMinutes();return e<10?"0"+e:e},s:function(t){return t.getSeconds()},ss:function(t){var e=t.getSeconds();return e<10?"0"+e:e}};return t.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMs])\1?|"[^"]*"|'[^']*'/g,function(t){return i[t]?i[t](e):t.slice(1,t.length-1)})}}}
33(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{different:{"default":"Please enter a different value"}}}),FormValidation.Validator.different={html5Attributes:{message:"message",field:"field"},init:function(t,e,i,n){for(var s=i.field.split(","),a=0;a<s.length;a++){var r=t.getFieldElements(s[a]);t.onLiveChange(r,"live_"+n,function(){t.getStatus(e,n)!==t.STATUS_NOT_VALIDATED&&t.revalidateField(e)})}},destroy:function(t,e,i,n){for(var s=i.field.split(","),a=0;a<s.length;a++){var r=t.getFieldElements(s[a]);t.offLiveChange(r,"live_"+n)}},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;for(var a=i.field.split(","),r=!0,o=0;o<a.length;o++){var l=t.getFieldElements(a[o]);if(null!=l&&0!==l.length){var h=t.getFieldValue(l,n);s===h?r=!1:""!==h&&t.updateStatus(l,t.STATUS_VALID,n)}}return r}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{digits:{"default":"Please enter only digits"}}}),FormValidation.Validator.digits={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);return""===s||/^\d+$/.test(s)}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{ean:{"default":"Please enter a valid EAN number"}}}),FormValidation.Validator.ean={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(!/^(\d{8}|\d{12}|\d{13})$/.test(s))return!1;for(var a=s.length,r=0,o=8===a?[3,1]:[1,3],l=0;l<a-1;l++)r+=parseInt(s.charAt(l),10)*o[l%2];return(r=(10-r%10)%10)+""===s.charAt(a-1)}}}(jQuery),function(o){FormValidation.I18n=o.extend(!0,FormValidation.I18n||{},{en_US:{ein:{"default":"Please enter a valid EIN number"}}}),FormValidation.Validator.ein={CAMPUS:{ANDOVER:["10","12"],ATLANTA:["60","67"],AUSTIN:["50","53"],BROOKHAVEN:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],CINCINNATI:["30","32","35","36","37","38","61"],FRESNO:["15","24"],KANSAS_CITY:["40","44"],MEMPHIS:["94","95"],OGDEN:["80","90"],PHILADELPHIA:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],INTERNET:["20","26","27","45","46"],SMALL_BUSINESS_ADMINISTRATION:["31"]},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(!/^[0-9]{2}-?[0-9]{7}$/.test(s))return!1;var a=s.substr(0,2)+"";for(var r in this.CAMPUS)if(-1!==o.inArray(a,this.CAMPUS[r]))return{valid:!0,campus:r};return!1}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{emailAddress:{"default":"Please enter a valid email address"}}}),FormValidation.Validator.emailAddress={html5Attributes:{message:"message",multiple:"multiple",separator:"separator"},enableByHtml5:function(t){return"email"===t.attr("type")},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;var a=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;if(!0!==i.multiple&&"true"!==i.multiple)return a.test(s);for(var r=i.separator||/[,;]/,o=this._splitEmailAddresses(s,r),l=0;l<o.length;l++)if(!a.test(o[l]))return!1;return!0},_splitEmailAddresses:function(t,e){for(var i=t.split(/"/),n=i.length,s=[],a="",r=0;r<n;r++)if(r%2==0){var o=i[r].split(e),l=o.length;if(1===l)a+=o[0];else{s.push(a+o[0]);for(var h=1;h<l-1;h++)s.push(o[h]);a=o[l-1]}}else a+='"'+i[r],r<n-1&&(a+='"');return s.push(a),s}}}(jQuery),function(u){FormValidation.I18n=u.extend(!0,FormValidation.I18n||{},{en_US:{file:{"default":"Please choose a valid file"}}}),FormValidation.Validator.file={html5Attributes:{extension:"extension",maxfiles:"maxFiles",minfiles:"minFiles",maxsize:"maxSize",minsize:"minSize",maxtotalsize:"maxTotalSize",mintotalsize:"minTotalSize",message:"message",type:"type"},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;var a,r=i.extension?i.extension.toLowerCase().split(","):null,o=i.type?i.type.toLowerCase().split(","):null;if(window.File&&window.FileList&&window.FileReader){var l=e.get(0).files,h=l.length,d=0;if(i.maxFiles&&h>parseInt(i.maxFiles,10)||i.minFiles&&h<parseInt(i.minFiles,10))return!1;for(var c=0;c<h;c++)if(d+=l[c].size,a=l[c].name.substr(l[c].name.lastIndexOf(".")+1),i.minSize&&l[c].size<parseInt(i.minSize,10)||i.maxSize&&l[c].size>parseInt(i.maxSize,10)||r&&-1===u.inArray(a.toLowerCase(),r)||l[c].type&&o&&-1===u.inArray(l[c].type.toLowerCase(),o))return!1;if(i.maxTotalSize&&d>parseInt(i.maxTotalSize,10)||i.minTotalSize&&d<parseInt(i.minTotalSize,10))return!1}else if(a=s.substr(s.lastIndexOf(".")+1),r&&-1===u.inArray(a.toLowerCase(),r))return!1;return!0}}}
33(jQuery),function(l){FormValidation.I18n=l.extend(!0,FormValidation.I18n||{},{en_US:{greaterThan:{"default":"Please enter a value greater than or equal to %s",notInclusive:"Please enter a value greater than %s"}}}),FormValidation.Validator.greaterThan={html5Attributes:{message:"message",value:"value",inclusive:"inclusive"},enableByHtml5:function(t){var e=t.attr("type"),i=t.attr("min");return!(!i||"date"===e)&&{value:i}},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;s=this._format(s);var a=t.getLocale(),r=l.isNumeric(i.value)?i.value:t.getDynamicOption(e,i.value),o=this._format(r);return!0===i.inclusive||i.inclusive===undefined?{valid:l.isNumeric(s)&&parseFloat(s)>=o,message:FormValidation.Helper.format(i.message||FormValidation.I18n[a].greaterThan["default"],r)}:{valid:l.isNumeric(s)&&parseFloat(s)>o,message:FormValidation.Helper.format(i.message||FormValidation.I18n[a].greaterThan.notInclusive,r)}},_format:function(t){return(t+"").replace(",",".")}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{grid:{"default":"Please enter a valid GRId number"}}}),FormValidation.Validator.grid={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);return""===s||(s=s.toUpperCase(),!!/^[GRID:]*([0-9A-Z]{2})[-\s]*([0-9A-Z]{5})[-\s]*([0-9A-Z]{10})[-\s]*([0-9A-Z]{1})$/g.test(s)&&("GRID:"===(s=s.replace(/\s/g,"").replace(/-/g,"")).substr(0,5)&&(s=s.substr(5)),FormValidation.Helper.mod37And36(s)))}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{hex:{"default":"Please enter a valid hexadecimal number"}}}),FormValidation.Validator.hex={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);return""===s||/^[0-9a-fA-F]+$/.test(s)}}}(jQuery),function(c){FormValidation.I18n=c.extend(!0,FormValidation.I18n||{},{en_US:{iban:{"default":"Please enter a valid IBAN number",country:"Please enter a valid IBAN number in %s",countries:{AD:"Andorra",AE:"United Arab Emirates",AL:"Albania",AO:"Angola",AT:"Austria",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BR:"Brazil",CH:"Switzerland",CI:"Ivory Coast",CM:"Cameroon",CR:"Costa Rica",CV:"Cape Verde",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DO:"Dominican Republic",DZ:"Algeria",EE:"Estonia",ES:"Spain",FI:"Finland",FO:"Faroe Islands",FR:"France",GB:"United Kingdom",GE:"Georgia",GI:"Gibraltar",GL:"Greenland",GR:"Greece",GT:"Guatemala",HR:"Croatia",HU:"Hungary",IE:"Ireland",IL:"Israel",IR:"Iran",IS:"Iceland",IT:"Italy",JO:"Jordan",KW:"Kuwait",KZ:"Kazakhstan",LB:"Lebanon",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MR:"Mauritania",MT:"Malta",MU:"Mauritius",MZ:"Mozambique",NL:"Netherlands",NO:"Norway",PK:"Pakistan",PL:"Poland",PS:"Palestine",PT:"Portugal",QA:"Qatar",RO:"Romania",RS:"Serbia",SA:"Saudi Arabia",SE:"Sweden",SI:"Slovenia",SK:"Slovakia",SM:"San Marino",SN:"Senegal",TL:"East Timor",TN:"Tunisia",TR:"Turkey",VG:"Virgin Islands, British",XK:"Republic of Kosovo"}}}}),FormValidation.Validator.iban={html5Attributes:{message:"message",country:"country",sepa:"sepa"},REGEX:{AD:"AD[0-9]{2}[0-9]{4}[0-9]{4}[A-Z0-9]{12}",AE:"AE[0-9]{2}[0-9]{3}[0-9]{16}",AL:"AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}",AO:"AO[0-9]{2}[0-9]{21}",AT:"AT[0-9]{2}[0-9]{5}[0-9]{11}",AZ:"AZ[0-9]{2}[A-Z]{4}[A-Z0-9]{20}",BA:"BA[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{8}[0-9]{2}",BE:"BE[0-9]{2}[0-9]{3}[0-9]{7}[0-9]{2}",BF:"BF[0-9]{2}[0-9]{23}",BG:"BG[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{2}[A-Z0-9]{8}",BH:"BH[0-9]{2}[A-Z]{4}[A-Z0-9]{14}",BI:"BI[0-9]{2}[0-9]{12}",BJ:"BJ[0-9]{2}[A-Z]{1}[0-9]{23}",BR:"BR[0-9]{2}[0-9]{8}[0-9]{5}[0-9]{10}[A-Z][A-Z0-9]",CH:"CH[0-9]{2}[0-9]{5}[A-Z0-9]{12}",CI:"CI[0-9]{2}[A-Z]{1}[0-9]{23}",CM:"CM[0-9]{2}[0-9]{23}",CR:"CR[0-9]{2}[0-9]{3}[0-9]{14}",CV:"CV[0-9]{2}[0-9]{21}",CY:"CY[0-9]{2}[0-9]{3}[0-9]{5}[A-Z0-9]{16}",CZ:"CZ[0-9]{2}[0-9]{20}",DE:"DE[0-9]{2}[0-9]{8}[0-9]{10}",DK:"DK[0-9]{2}[0-9]{14}",DO:"DO[0-9]{2}[A-Z0-9]{4}[0-9]{20}",DZ:"DZ[0-9]{2}[0-9]{20}",EE:"EE[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{11}[0-9]{1}",ES:"ES[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{1}[0-9]{1}[0-9]{10}",FI:"FI[0-9]{2}[0-9]{6}[0-9]{7}
33[0-9]{1}",FO:"FO[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",FR:"FR[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",GB:"GB[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",GE:"GE[0-9]{2}[A-Z]{2}[0-9]{16}",GI:"GI[0-9]{2}[A-Z]{4}[A-Z0-9]{15}",GL:"GL[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",GR:"GR[0-9]{2}[0-9]{3}[0-9]{4}[A-Z0-9]{16}",GT:"GT[0-9]{2}[A-Z0-9]{4}[A-Z0-9]{20}",HR:"HR[0-9]{2}[0-9]{7}[0-9]{10}",HU:"HU[0-9]{2}[0-9]{3}[0-9]{4}[0-9]{1}[0-9]{15}[0-9]{1}",IE:"IE[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",IL:"IL[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{13}",IR:"IR[0-9]{2}[0-9]{22}",IS:"IS[0-9]{2}[0-9]{4}[0-9]{2}[0-9]{6}[0-9]{10}",IT:"IT[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",JO:"JO[0-9]{2}[A-Z]{4}[0-9]{4}[0]{8}[A-Z0-9]{10}",KW:"KW[0-9]{2}[A-Z]{4}[0-9]{22}",KZ:"KZ[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LB:"LB[0-9]{2}[0-9]{4}[A-Z0-9]{20}",LI:"LI[0-9]{2}[0-9]{5}[A-Z0-9]{12}",LT:"LT[0-9]{2}[0-9]{5}[0-9]{11}",LU:"LU[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LV:"LV[0-9]{2}[A-Z]{4}[A-Z0-9]{13}",MC:"MC[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",MD:"MD[0-9]{2}[A-Z0-9]{20}",ME:"ME[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",MG:"MG[0-9]{2}[0-9]{23}",MK:"MK[0-9]{2}[0-9]{3}[A-Z0-9]{10}[0-9]{2}",ML:"ML[0-9]{2}[A-Z]{1}[0-9]{23}",MR:"MR13[0-9]{5}[0-9]{5}[0-9]{11}[0-9]{2}",MT:"MT[0-9]{2}[A-Z]{4}[0-9]{5}[A-Z0-9]{18}",MU:"MU[0-9]{2}[A-Z]{4}[0-9]{2}[0-9]{2}[0-9]{12}[0-9]{3}[A-Z]{3}",MZ:"MZ[0-9]{2}[0-9]{21}",NL:"NL[0-9]{2}[A-Z]{4}[0-9]{10}",NO:"NO[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{1}",PK:"PK[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",PL:"PL[0-9]{2}[0-9]{8}[0-9]{16}",PS:"PS[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",PT:"PT[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{11}[0-9]{2}",QA:"QA[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",RO:"RO[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",RS:"RS[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",SA:"SA[0-9]{2}[0-9]{2}[A-Z0-9]{18}",SE:"SE[0-9]{2}[0-9]{3}[0-9]{16}[0-9]{1}",SI:"SI[0-9]{2}[0-9]{5}[0-9]{8}[0-9]{2}",SK:"SK[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{10}",SM:"SM[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",SN:"SN[0-9]{2}[A-Z]{1}[0-9]{23}",TL:"TL38[0-9]{3}[0-9]{14}[0-9]{2}",TN:"TN59[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",TR:"TR[0-9]{2}[0-9]{5}[A-Z0-9]{1}[A-Z0-9]{16}",VG:"VG[0-9]{2}[A-Z]{4}[0-9]{16}",XK:"XK[0-9]{2}[0-9]{4}[0-9]{10}[0-9]{2}"},SEPA_COUNTRIES:["AT","BE","BG","CH","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GI","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MC","MT","NL","NO","PL","PT","RO","SE","SI","SK","SM"],validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;s=s.replace(/[^a-zA-Z0-9]/g,"").toUpperCase();var a=i.country;a?"string"==typeof a&&this.REGEX[a]||(a=t.getDynamicOption(e,a)):a=s.substr(0,2);var r=t.getLocale();if(!this.REGEX[a])return!1;if(typeof i.sepa!==undefined){var o=-1!==c.inArray(a,this.SEPA_COUNTRIES);if(("true"===i.sepa||!0===i.sepa)&&!o||("false"===i.sepa||!1===i.sepa)&&o)return!1}if(!new RegExp("^"+this.REGEX[a]+"$").test(s))return{valid:!1,message:FormValidation.Helper.format(i.message||FormValidation.I18n[r].iban.country,FormValidation.I18n[r].iban.countries[a])};s=s.substr(4)+s.substr(0,4),s=(s=c.map(s.split(""),function(t){var e=t.charCodeAt(0);return e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)?e-"A".charCodeAt(0)+10:t})).join("");for(var l=parseInt(s.substr(0,1),10),h=s.length,d=1;d<h;++d)l=(10*l+parseInt(s.substr(d,1),10))%97;return{valid:1===l,message:FormValidation.Helper.format(i.message||FormValidation.I18n[r].iban.country,FormValidation.I18n[r].iban.countries[a])}}}}(jQuery),function(f){FormValidation.I18n=f.extend(!0,FormValidation.I18n||{},{en_US:{id:{"default":"Please enter a valid identification number",country:"Please enter a valid identification number in %s",countries:{BA:"Bosnia and Herzegovina",BG:"Bulgaria",BR:"Brazil",CH:"Switzerland",CL:"Chile",CN:"China",CZ:"Czech Republic",DK:"Denmark",EE:"Estonia",ES:"Spain",FI:"Finland",HR:"Croatia",IE:"Ireland",IS:"Iceland",LT:"Lithuania",LV:"Latvia",ME:"Montenegro",MK:"Macedonia",NL:"Netherlands",PL:"Poland",RO:"Romania",RS:"Serbia",SE:"Sweden",SI:"Slovenia",SK:"Slovakia",SM:"San Marino",TH:"Thailand",ZA:"South Africa"}}}}),FormValidation.Validator.id={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["BA","BG","BR","CH","CL","CN","CZ","DK","EE","ES","FI","HR","IE","IS","LT","LV","ME","MK","NL","PL","RO","RS","SE","SI","SK","SM","TH","ZA"],validate:function(t,e,
33i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;var a=t.getLocale(),r=i.country;if(r?"string"==typeof r&&-1!==f.inArray(r.toUpperCase(),this.COUNTRY_CODES)||(r=t.getDynamicOption(e,r)):r=s.substr(0,2),-1===f.inArray(r,this.COUNTRY_CODES))return!0;var o=this[["_",r.toLowerCase()].join("")](s);return(o=!0===o||!1===o?{valid:o}:o).message=FormValidation.Helper.format(i.message||FormValidation.I18n[a].id.country,FormValidation.I18n[a].id.countries[r.toUpperCase()]),o},_validateJMBG:function(t,e){if(!/^\d{13}$/.test(t))return!1;var i=parseInt(t.substr(0,2),10),n=parseInt(t.substr(2,2),10),s=(parseInt(t.substr(4,3),10),parseInt(t.substr(7,2),10)),a=parseInt(t.substr(12,1),10);if(31<i||12<n)return!1;for(var r=0,o=0;o<6;o++)r+=(7-o)*(parseInt(t.charAt(o),10)+parseInt(t.charAt(o+6),10));if(10!==(r=11-r%11)&&11!==r||(r=0),r!==a)return!1;switch(e.toUpperCase()){case"BA":return 10<=s&&s<=19;case"MK":return 41<=s&&s<=49;case"ME":return 20<=s&&s<=29;case"RS":return 70<=s&&s<=99;case"SI":return 50<=s&&s<=59;default:return!0}},_ba:function(t){return this._validateJMBG(t,"BA")},_mk:function(t){return this._validateJMBG(t,"MK")},_me:function(t){return this._validateJMBG(t,"ME")},_rs:function(t){return this._validateJMBG(t,"RS")},_si:function(t){return this._validateJMBG(t,"SI")},_bg:function(t){if(!/^\d{10}$/.test(t)&&!/^\d{6}\s\d{3}\s\d{1}$/.test(t))return!1;t=t.replace(/\s/g,"");var e=parseInt(t.substr(0,2),10)+1900,i=parseInt(t.substr(2,2),10),n=parseInt(t.substr(4,2),10);if(40<i?(e+=100,i-=40):20<i&&(e-=100,i-=20),!FormValidation.Helper.date(e,i,n))return!1;for(var s=0,a=[2,4,8,5,10,9,7,3,6],r=0;r<9;r++)s+=parseInt(t.charAt(r),10)*a[r];return(s=s%11%10)+""===t.substr(9,1)},_br:function(t){if(t=t.replace(/\D/g,""),!/^\d{11}$/.test(t)||/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(t))return!1;for(var e=0,i=0;i<9;i++)e+=(10-i)*parseInt(t.charAt(i),10);if(10!==(e=11-e%11)&&11!==e||(e=0),e+""!==t.charAt(9))return!1;var n=0;for(i=0;i<10;i++)n+=(11-i)*parseInt(t.charAt(i),10);return 10!==(n=11-n%11)&&11!==n||(n=0),n+""===t.charAt(10)},_ch:function(t){if(!/^756[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{2}$/.test(t))return!1;for(var e=(t=t.replace(/\D/g,"").substr(3)).length,i=0,n=8===e?[3,1]:[1,3],s=0;s<e-1;s++)i+=parseInt(t.charAt(s),10)*n[s%2];return(i=10-i%10)+""===t.charAt(e-1)},_cl:function(t){if(!/^\d{7,8}[-]{0,1}[0-9K]$/i.test(t))return!1;for(t=t.replace(/\-/g,"");t.length<9;)t="0"+t;for(var e=0,i=[3,2,7,6,5,4,3,2],n=0;n<8;n++)e+=parseInt(t.charAt(n),10)*i[n];return 11===(e=11-e%11)?e=0:10===e&&(e="K"),e+""===t.charAt(8).toUpperCase()},_cn:function(t){if(t=t.trim(),!/^\d{15}$/.test(t)&&!/^\d{17}[\dXx]{1}$/.test(t))return!1;var e={11:{0:[0],1:[[0,9],[11,17]],2:[0,28,29]},12:{0:[0],1:[[0,16]],2:[0,21,23,25]},13:{0:[0],1:[[0,5],7,8,21,[23,33],[81,85]],2:[[0,5],[7,9],[23,25],27,29,30,81,83],3:[[0,4],[21,24]],4:[[0,4],6,21,[23,35],81],5:[[0,3],[21,35],81,82],6:[[0,4],[21,38],[81,84]],7:[[0,3],5,6,[21,33]],8:[[0,4],[21,28]],9:[[0,3],[21,30],[81,84]],10:[[0,3],[22,26],28,81,82],11:[[0,2],[21,28],81,82]},14:{0:[0],1:[0,1,[5,10],[21,23],81],2:[[0,3],11,12,[21,27]],3:[[0,3],11,21,22],4:[[0,2],11,21,[23,31],81],5:[[0,2],21,22,24,25,81],6:[[0,3],[21,24]],7:[[0,2],[21,29],81],8:[[0,2],[21,30],81,82],9:[[0,2],[21,32],81],10:[[0,2],[21,34],81,82],11:[[0,2],[21,30],81,82],23:[[0,3],22,23,[25,30],32,33]},15:{0:[0],1:[[0,5],[21,25]],2:[[0,7],[21,23]],3:[[0,4]],4:[[0,4],[21,26],[28,30]],5:[[0,2],[21,26],81],6:[[0,2],[21,27]],7:[[0,3],[21,27],[81,85]],8:[[0,2],[21,26]],9:[[0,2],[21,29],81],22:[[0,2],[21,24]],25:[[0,2],[22,31]],26:[[0,2],[24,27],[29,32],34],28:[0,1,[22,27]],29:[0,[21,23]]},21:{0:[0],1:[[0,6],[11,14],[22,24],81],2:[[0,4],[11,13],24,[81,83]],3:[[0,4],11,21,23,81],4:[[0,4],11,[21,23]],5:[[0,5],21,22],6:[[0,4],24,81,82],7:[[0,3],11,26,27,81,82],8:[[0,4],11,81,82],9:[[0,5],11,21,22],10:[[0,5],11,21,81],11:[[0,3],21,22],12:[[0,2],4,21,23,24,81,82],13:[[0,3],21,22,24,81,82],14:[[0,4],21,22,81]},22:{0:[0],1:[[0,6],12,22,[81,83]],2:[[0,4],11,21,[81,84]],3:[[0,3],22,23,81,82],4:[[0,3],21,22],5:[[0,3],21,23,24,81,82],6:[[0,2],4,5,[21,23],25,81],7:[[0,2],[21,24],81],8:[[0,2],21,22,81,82],24:[[0,6],24,26]},23:{0:[0],1:[[0,12],21,[23,29],[81,84]],2:[[0,8],21,[23,25],27,[29,31],81],3:[[0,7],21,81,82],4:[[0,7],21,22],5:[[0,3],5,6,[21,24]],6:[[0,6],[21,24]],7:[[0,16],22,81],8:[[0,5],11,22,26,28,33,81,82],9:[[0,4],21],10:[[0,5],24,25,81,[83,85]],11:[[0,2],21,23,24,81,82],12:[[0,2],[21,26],[81,83]],27:[[0,4],[21,23]]},31:{0:[0],1:[0,1,[3,10],[12,20]],2:[0,30]},32:{0:[0],1:[[0,7],11,[13,18],24,25],2:[[0,6],11,81,82],3:[[0,5],11,12,[21,24],81,82],4:[[0,2],4,5,11,12,81,82],5:[[0,9],[81,85]],6:[[0,2],11,12,21,23,[8
vendor: 6,272 bytes, lines 33-34
331,84]],7:[0,1,3,5,6,[21,24]],8:[[0,4],11,26,[29,31]],9:[[0,3],[21,25],28,81,82],10:[[0,3],11,12,23,81,84,88],11:[[0,2],11,12,[81,83]],12:[[0,4],[81,84]],13:[[0,2],11,[21,24]]},33:{0:[0],1:[[0,6],[8,10],22,27,82,83,85],2:[0,1,[3,6],11,12,25,26,[81,83]],3:[[0,4],22,24,[26,29],81,82],4:[[0,2],11,21,24,[81,83]],5:[[0,3],[21,23]],6:[[0,2],21,24,[81,83]],7:[[0,3],23,26,27,[81,84]],8:[[0,3],22,24,25,81],9:[[0,3],21,22],10:[[0,4],[21,24],81,82],11:[[0,2],[21,27],81]},34:{0:[0],1:[[0,4],11,[21,24],81],2:[[0,4],7,8,[21,23],25],3:[[0,4],11,[21,23]],4:[[0,6],21],5:[[0,4],6,[21,23]],6:[[0,4],21],7:[[0,3],11,21],8:[[0,3],11,[22,28],81],10:[[0,4],[21,24]],11:[[0,3],22,[24,26],81,82],12:[[0,4],21,22,25,26,82],13:[[0,2],[21,24]],14:[[0,2],[21,24]],15:[[0,3],[21,25]],16:[[0,2],[21,23]],17:[[0,2],[21,23]],18:[[0,2],[21,25],81]},35:{0:[0],1:[[0,5],11,[21,25],28,81,82],2:[[0,6],[11,13]],3:[[0,5],22],4:[[0,3],21,[23,30],81],5:[[0,5],21,[24,27],[81,83]],6:[[0,3],[22,29],81],7:[[0,2],[21,25],[81,84]],8:[[0,2],[21,25],81],9:[[0,2],[21,26],81,82]},36:{0:[0],1:[[0,5],11,[21,24]],2:[[0,3],22,81],3:[[0,2],13,[21,23]],4:[[0,3],21,[23,30],81,82],5:[[0,2],21],6:[[0,2],22,81],7:[[0,2],[21,35],81,82],8:[[0,3],[21,30],81],9:[[0,2],[21,26],[81,83]],10:[[0,2],[21,30]],11:[[0,2],[21,30],81]},37:{0:[0],1:[[0,5],12,13,[24,26],81],2:[[0,3],5,[11,14],[81,85]],3:[[0,6],[21,23]],4:[[0,6],81],5:[[0,3],[21,23]],6:[[0,2],[11,13],34,[81,87]],7:[[0,5],24,25,[81,86]],8:[[0,2],11,[26,32],[81,83]],9:[[0,3],11,21,23,82,83],10:[[0,2],[81,83]],11:[[0,3],21,22],12:[[0,3]],13:[[0,2],11,12,[21,29]],14:[[0,2],[21,28],81,82],15:[[0,2],[21,26],81],16:[[0,2],[21,26]],17:[[0,2],[21,28]]},41:{0:[0],1:[[0,6],8,22,[81,85]],2:[[0,5],11,[21,25]],3:[[0,7],11,[22,29],81],4:[[0,4],11,[21,23],25,81,82],5:[[0,3],5,6,22,23,26,27,81],6:[[0,3],11,21,22],7:[[0,4],11,21,[24,28],81,82],8:[[0,4],11,[21,23],25,[81,83]],9:[[0,2],22,23,[26,28]],10:[[0,2],[23,25],81,82],11:[[0,4],[21,23]],12:[[0,2],21,22,24,81,82],13:[[0,3],[21,30],81],14:[[0,3],[21,26],81],15:[[0,3],[21,28]],16:[[0,2],[21,28],81],17:[[0,2],[21,29]],90:[0,1]},42:{0:[0],1:[[0,7],[11,17]],2:[[0,5],22,81],3:[[0,3],[21,25],81],5:[[0,6],[25,29],[81,83]],6:[[0,2],6,7,[24,26],[82,84]],7:[[0,4]],8:[[0,2],4,21,22,81],9:[[0,2],[21,23],81,82,84],10:[[0,3],[22,24],81,83,87],11:[[0,2],[21,27],81,82],12:[[0,2],[21,24],81],13:[[0,3],21,81],28:[[0,2],22,23,[25,28]],90:[0,[4,6],21]},43:{0:[0],1:[[0,5],11,12,21,22,24,81],2:[[0,4],11,21,[23,25],81],3:[[0,2],4,21,81,82],4:[0,1,[5,8],12,[21,24],26,81,82],5:[[0,3],11,[21,25],[27,29],81],6:[[0,3],11,21,23,24,26,81,82],7:[[0,3],[21,26],81],8:[[0,2],11,21,22],9:[[0,3],[21,23],81],10:[[0,3],[21,28],81],11:[[0,3],[21,29]],12:[[0,2],[21,30],81],13:[[0,2],21,22,81,82],31:[0,1,[22,27],30]},44:{0:[0],1:[[0,7],[11,16],83,84],2:[[0,5],21,22,24,29,32,33,81,82],3:[0,1,[3,8]],4:[[0,4]],5:[0,1,[6,15],23,82,83],6:[0,1,[4,8]],7:[0,1,[3,5],81,[83,85]],8:[[0,4],11,23,25,[81,83]],9:[[0,3],23,[81,83]],12:[[0,3],[23,26],83,84],13:[[0,3],[22,24],81],14:[[0,2],[21,24],26,27,81],15:[[0,2],21,23,81],16:[[0,2],[21,25]],17:[[0,2],21,23,81],18:[[0,3],21,23,[25,27],81,82],19:[0],20:[0],51:[[0,3],21,22],52:[[0,3],21,22,24,81],53:[[0,2],[21,23],81]},45:{0:[0],1:[[0,9],[21,27]],2:[[0,5],[21,26]],3:[[0,5],11,12,[21,32]],4:[0,1,[3,6],11,[21,23],81],5:[[0,3],12,21],6:[[0,3],21,81],7:[[0,3],21,22],8:[[0,4],
3421,81],9:[[0,3],[21,24],81],10:[[0,2],[21,31]],11:[[0,2],[21,23]],12:[[0,2],[21,29],81],13:[[0,2],[21,24],81],14:[[0,2],[21,25],81]},46:{0:[0],1:[0,1,[5,8]],2:[0,1],3:[0,[21,23]],90:[[0,3],[5,7],[21,39]]},50:{0:[0],1:[[0,19]],2:[0,[22,38],[40,43]],3:[0,[81,84]]},51:{0:[0],1:[0,1,[4,8],[12,15],[21,24],29,31,32,[81,84]],3:[[0,4],11,21,22],4:[[0,3],11,21,22],5:[[0,4],21,22,24,25],6:[0,1,3,23,26,[81,83]],7:[0,1,3,4,[22,27],81],8:[[0,2],11,12,[21,24]],9:[[0,4],[21,23]],10:[[0,2],11,24,25,28],11:[[0,2],[11,13],23,24,26,29,32,33,81],13:[[0,4],[21,25],81],14:[[0,2],[21,25]],15:[[0,3],[21,29]],16:[[0,3],[21,23],81],17:[[0,3],[21,25],81],18:[[0,3],[21,27]],19:[[0,3],[21,23]],20:[[0,2],21,22,81],32:[0,[21,33]],33:[0,[21,38]],34:[0,1,[22,37]]},52:{0:[0],1:[[0,3],[11,15],[21,23],81],2:[0,1,3,21,22],3:[[0,3],[21,30],81,82],4:[[0,2],[21,25]],5:[[0,2],[21,27]],6:[[0,3],[21,28]],22:[0,1,[22,30]],23:[0,1,[22,28]],24:[0,1,[22,28]],26:[0,1,[22,36]],27:[[0,2],22,23,[25,32]]},53:{0:[0],1:[[0,3],[11,14],21,22,[24,29],81],3:[[0,2],[21,26],28,81],4:[[0,2],[21,28]],5:[[0,2],[21,24]],6:[[0,2],[21,30]],7:[[0,2],[21,24]],8:[[0,2],[21,29]],9:[[0,2],[21,27]],23:[0,1,[22,29],31],25:[[0,4],[22,32]],26:[0,1,[21,28]],27:[0,1,[22,30]],28:[0,1,22,23],29:[0,1,[22,32]],31:[0,2,3,[22,24]],34:[0,[21,23]],33:[0,21,[23,25]],35:[0,[21,28]]},54:{0:[0],1:[[0,2],[21,27]],21:[0,[21,29],32,33],22:[0,[21,29],[31,33]],23:[0,1,[22,38]],24:[0,[21,31]],25:[0,[21,27]],26:[0,[21,27]]},61:{0:[0],1:[[0,4],[11,16],22,[24,26]],2:[[0,4],22],3:[[0,4],[21,24],[26,31]],4:[[0,4],[22,31],81],5:[[0,2],[21,28],81,82],6:[[0,2],[21,32]],7:[[0,2],[21,30]],8:[[0,2],[21,31]],9:[[0,2],[21,29]],10:[[0,2],[21,26]]},62:{0:[0],1:[[0,5],11,[21,23]],2:[0,1],3:[[0,2],21],4:[[0,3],[21,23]],5:[[0,3],[21,25]],6:[[0,2],[21,23]],7:[[0,2],[21,25]],8:[[0,2],[21,26]],9:[[0,2],[21,24],81,82],10:[[0,2],[21,27]],11:[[0,2],[21,26]],12:[[0,2],[21,28]],24:[0,21,[24,29]],26:[0,21,[23,30]],29:[0,1,[21,27]],30:[0,1,[21,27]]},63:{0:[0],1:[[0,5],[21,23]],2:[0,2,[21,25]],21:[0,[21,23],[26,28]],22:[0,[21,24]],23:[0,[21,24]],25:[0,[21,25]],26:[0,[21,26]],27:[0,1,[21,26]],28:[[0,2],[21,23]]},64:{0:[0],1:[0,1,[4,6],21,22,81],2:[[0,3],5,[21,23]],3:[[0,3],[21,24],81],4:[[0,2],[21,25]],5:[[0,2],21,22]},65:{0:[0],1:[[0,9],21],2:[[0,5]],21:[0,1,22,23],22:[0,1,22,23],23:[[0,3],[23,25],27,28],28:[0,1,[22,29]],29:[0,1,[22,29]],30:[0,1,[22,24]],31:[0,1,[21,31]],32:[0,1,[21,27]],40:[0,2,3,[21,28]],42:[[0,2],21,[23,26]],43:[0,1,[21,26]],90:[[0,4]],27:[[0,2],22,23]},71:{0:[0]},81:{0:[0]},82:{0:[0]}},i=parseInt(t.substr(0,2),10),n=parseInt(t.substr(2,2),10),s=parseInt(t.substr(4,2),10);if(!e[i]||!e[i][n])return!1;for(var a,r=!1,o=e[i][n],l=0;l<o.length;l++)if(f.isArray(o[l])&&o[l][0]<=s&&s<=o[l][1]||!f.isArray(o[l])&&s===o[l]){r=!0;break}if(!r)return!1;a=18===t.length?t.substr(6,8):"19"+t.substr(6,6);var h=parseInt(a.substr(0,4),10),d=parseInt(a.substr(4,2),10),c=parseInt(a.substr(6,2),10);
34if(!FormValidation.Helper.date(h,d,c))return!1;if(18!==t.length)return!0;var u=0,p=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];for(l=0;l<17;l++)u+=parseInt(t.charAt(l),10)*p[l];return u=(12-u%11)%11,("X"!==t.charAt(17).toUpperCase()?parseInt(t.charAt(17),10):10)===u},_cz:function(t){if(!/^\d{9,10}$/.test(t))return!1;var e=1900+parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10)%50%20,n=parseInt(t.substr(4,2),10);if(9===t.length){if(1980<=e&&(e-=100),1953<e)return!1}else e<1954&&(e+=100);if(!FormValidation.Helper.date(e,i,n))return!1;if(10!==t.length)return!0;var s=parseInt(t.substr(0,9),10)%11;return e<1985&&(s%=10),s+""===t.substr(9,1)},_dk:function(t){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(t))return!1;t=t.replace(/-/g,"");var e=parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10),n=parseInt(t.substr(4,2),10);switch(!0){case-1!=="5678".indexOf(t.charAt(6))&&58<=n:n+=1800;break;case-1!=="0123".indexOf(t.charAt(6)):case-1!=="49".indexOf(t.charAt(6))&&37<=n:n+=1900;break;default:n+=2e3}return FormValidation.Helper.date(n,i,e)},_ee:function(t){return this._lt(t)},_es:function(t){var e=/^[0-9]{8}[-]{0,1}[A-HJ-NP-TV-Z]$/.test(t),i=/^[XYZ][-]{0,1}[0-9]{7}[-]{0,1}[A-HJ-NP-TV-Z]$/.test(t),n=/^[A-HNPQS][-]{0,1}[0-9]{7}[-]{0,1}[0-9A-J]$/.test(t);if(!e&&!i&&!n)return!1;t=t.replace(/-/g,"");var s,a;if(e||i){a="DNI";var r="XYZ".indexOf(t.charAt(0));return-1!==r&&(t=r+t.substr(1)+"",a="NIE"),{valid:(s="TRWAGMYFPDXBNJZSQVHLCKE"[(s=parseInt(t.substr(0,8),10))%23])===t.substr(8,1),type:a}}s=t.substr(1,7),a="CIF";for(var o=t[0],l=t.substr(-1),h=0,d=0;d<s.length;d++)if(d%2!=0)h+=parseInt(s[d],10);else{var c=""+2*parseInt(s[d],10);h+=parseInt(c[0],10),2===c.length&&(h+=parseInt(c[1],10))}var u=h-10*Math.floor(h/10);return 0!==u&&(u=10-u),{valid:-1!=="KQS".indexOf(o)?l==="JABCDEFGHI"[u]:-1!=="ABEH".indexOf(o)?l===""+u:l===""+u||l==="JABCDEFGHI"[u],type:a}},_fi:function(t){if(!/^[0-9]{6}[-+A][0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/.test(t))return!1;var e=parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10),n=parseInt(t.substr(4,2),10);if(n={"+":1800,"-":1900,A:2e3}[t.charAt(6)]+n,!FormValidation.Helper.date(n,i,e))return!1;if(parseInt(t.substr(7,3),10)<2)return!1;var s=t.substr(0,6)+t.substr(7,3)+"";return s=parseInt(s,10),"0123456789ABCDEFHJKLMNPRSTUVWXY".charAt(s%31)===t.charAt(10)},_hr:function(t){return!!/^[0-9]{11}$/.test(t)&&FormValidation.Helper.mod11And10(t)},_ie:function(t){if(!/^\d{7}[A-W][AHWTX]?$/.test(t))return!1;var e=function(t){for(;t.length<7;)t="0"+t;for(var e="WABCDEFGHIJKLMNOPQRSTUV",i=0,n=0;n<7;n++)i+=parseInt(t.charAt(n),10)*(8-n);return i+=9*e.indexOf(t.substr(7)),e[i%23]};return 9!==t.length||"A"!==t.charAt(8)&&"H"!==t.charAt(8)?t.charAt(7)===e(t.substr(0,7)):t.charAt(7)===e(t.substr(0,7)+t.substr(8)+"")},_is:function(t){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(t))return!1;t=t.replace(/-/g,"");var e=parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10),n=parseInt(t.substr(4,2),10),s=parseInt(t.charAt(9),10);if(n=9===s?1900+n:100*(20+s)+n,!FormValidation.Helper.date(n,i,e,!0))return!1;for(var a=0,r=[3,2,7,6,5,4,3,2],o=0;o<8;o++)a+=parseInt(t.charAt(o),10)*r[o];return(a=11-a%11)+""===t.charAt(8)},_lt:function(t){if(!/^[0-9]{11}$/.test(t))return!1;var e=parseInt(t.charAt(0),10),i=parseInt(t.substr(1,2),10),n=parseInt(t.substr(3,2),10),s=parseInt(t.substr(5,2),10);if(i=100*(e%2==0?17+e/2:17+(e+1)/2)+i,!FormValidation.Helper.date(i,n,s,!0))return!1;for(var a=0,r=[1,2,3,4,5,6,7,8,9,1],o=0;o<10;o++)a+=parseInt(t.charAt(o),10)*r[o];if(10!==(a%=11))return a+""===t.charAt(10);for(r=[3,4,5,6,7,8,9,1,2,3],o=a=0;o<10;o++)a+=parseInt(t.charAt(o),10)*r[o];return 10===(a%=11)&&(a=0),a+""===t.charAt(10)},_lv:function(t){if(!/^[0-9]{6}[-]{0,1}[0-9]{5}$/.test(t))return!1;t=t.replace(/\D/g,"");var e=parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10),n=parseInt(t.substr(4,2),10);if(n=n+1800+100*parseInt(t.charAt(6),10),!FormValidation.Helper.date(n,i,e,!0))return!1;for(var s=0,a=[10,5,8,4,2,1,6,3,7,9],r=0;r<10;r++)s+=parseInt(t.charAt(r),10)*a[r];return(s=(s+1)%11%10)+""===t.charAt(10)},_nl:function(t){if(t.length<8)return!1;if(8===t.length&&(t="0"+t),!/^[0-9]{4}[.]{0,1}[0-9]{2}[.]{0,1}[0-9]{3}$/.test(t))return!1;if(t=t.replace(/\./g,""),0===parseInt(t,10))return!1;for(var e=0,i=t.length,n=0;n<i-1;n++)e+=(9-n)*parseInt(t.charAt(n),10);return 10===(e%=11)&&(e=0),e+""===t.charAt(i-1)},_pl:function(t){if(!/^[0-9]{11}$/.test(t))return!1;for(var e=0,i=t.length,n=[1,3,7,9,1,3,7,9,1,3,7],s=0;s<i-1;s++)e+=n[s]*parseInt(t.charAt(s),10);return 0===(e%=10)&&(e=10),(e=10-e)+""===t.charAt(i-1)},_ro:function(t){if(!/^[0-9]{13}$/.test(t))return!1;var e=parseInt(t.charAt(0),10);if(0===e||7===e||8===e)return!1;var i=parseInt(t.substr(1,2),10),n=parseInt(t.substr(3,2),10),s=parseInt(t.substr(5,2),10);if(31<s&&12<n)return!1;if(9!==e&&(i={1:1900,2:1900,3:1800,4:1800,5:2e3,6:2e3}[e+""]+i,!FormValidation.Helper.date(i,n,s)))return!1;for(var a=0,r=[2,7,9,1,4,6,3,5,8,2,7,9],o=t.length,l=0;l<o-1;l++)a+=parseInt(t.charAt(l),10)*r[l];return 10===(a%=11)&&(a=1),a+""===t.charAt(o-1)},_se:function(t){if(!/^[0-9]{10}$/.test(t)&&!/^[0-9]{6}[-|+][0-9]{4}$/.test(t))return!1;t=t.replace(/[^0-9]/g,"");var e=parseInt(t.substr(0,2),10)+1900,i=parseInt(t.substr(2,2),10),n=parseInt(t.substr(4,2),10);return!!FormValidation.Helper.date(e,i,n)&&FormValidation.Helper.luhn(t)},_sk:function(t){return this._cz(t)},_sm:function(t){return/^\d{5}$/.test(t)},_th:function(t){if(13!==t.length)return!1;for(var e=0,i=0;i<12;i++)e+=parseInt(t.charAt(i),10)*(13-i);return(11-e%11)%10===parseInt(t.charAt(12),10)},_za:function(t){if(!/^[0-9]{10}[0|1][8|9][0-9]$/.test(t))return!1;var e=parseInt(t.substr(0,2),10),i=(new Date).getFullYear()%100,n=parseInt(t.substr(2,2),10),s=parseInt(t.substr(4,2),10);return e=i<=e?e+1900:e+2e3,!!FormValidation.Helper.date(e,n,s)&&FormValidation.Helper.luhn(t)}}}
34(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{identical:{"default":"Please enter the same value"}}}),FormValidation.Validator.identical={html5Attributes:{message:"message",field:"field"},init:function(t,e,i,n){var s=t.getFieldElements(i.field);t.onLiveChange(s,"live_"+n,function(){t.getStatus(e,n)!==t.STATUS_NOT_VALIDATED&&t.revalidateField(e)})},destroy:function(t,e,i,n){var s=t.getFieldElements(i.field);t.offLiveChange(s,"live_"+n)},validate:function(t,e,i,n){var s=t.getFieldValue(e,n),a=t.getFieldElements(i.field);return null===a||0===a.length||s===t.getFieldValue(a,n)&&(t.updateStatus(a,t.STATUS_VALID,n),!0)}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{imei:{"default":"Please enter a valid IMEI number"}}}),FormValidation.Validator.imei={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;switch(!0){case/^\d{15}$/.test(s):case/^\d{2}-\d{6}-\d{6}-\d{1}$/.test(s):case/^\d{2}\s\d{6}\s\d{6}\s\d{1}$/.test(s):return s=s.replace(/[^0-9]/g,""),FormValidation.Helper.luhn(s);case/^\d{14}$/.test(s):case/^\d{16}$/.test(s):case/^\d{2}-\d{6}-\d{6}(|-\d{2})$/.test(s):case/^\d{2}\s\d{6}\s\d{6}(|\s\d{2})$/.test(s):return!0;default:return!1}}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{imo:{"default":"Please enter a valid IMO number"}}}),FormValidation.Validator.imo={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(!/^IMO \d{7}$/i.test(s))return!1;for(var a=0,r=s.replace(/^.*(\d{7})$/,"$1"),o=6;1<=o;o--)a+=r.slice(6-o,-o)*(o+1);return a%10===parseInt(r.charAt(6),10)}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{integer:{"default":"Please enter a valid number"}}}),FormValidation.Validator.integer={html5Attributes:{message:"message",thousandsseparator:"thousandsSeparator",decimalseparator:"decimalSeparator"},enableByHtml5:function(t){return"number"===t.attr("type")&&(t.attr("step")===undefined||t.attr("step")%1==0)},validate:function(t,e,i,n){if(this.enableByHtml5(e)&&e.get(0).validity&&!0===e.get(0).validity.badInput)return!1;var s=t.getFieldValue(e,n);if(""===s)return!0;var a=i.decimalSeparator||".",r=i.thousandsSeparator||"";a="."===a?"\\.":a,r="."===r?"\\.":r;var o=new RegExp("^-?[0-9]{1,3}("+r+"[0-9]{3})*("+a+"[0-9]+)?$"),l=new RegExp(r,"g");return!!o.test(s)&&(r&&(s=s.replace(l,"")),a&&(s=s.replace(a,".")),!(isNaN(s)||!isFinite(s))&&(s=parseFloat(s),Math.floor(s)===s))}}}(jQuery),function(d){FormValidation.I18n=d.extend(!0,FormValidation.I18n||{},{en_US:{ip:{"default":"Please enter a valid IP address",ipv4:"Please enter a valid IPv4 address",ipv6:"Please enter a valid IPv6 address"}}}),FormValidation.Validator.ip={html5Attributes:{message:"message",ipv4:"ipv4",ipv6:"ipv6"},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;i=d.extend({},{ipv4:!0,ipv6:!0},i);var a,r=t.getLocale(),o=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,l=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,h=!1;switch(!0){case i.ipv4&&!i.ipv6:h=o.test(s),a=i.message||FormValidation.I18n[r].ip.ipv4;break;case!i.ipv4&&i.ipv6:h=l.test(s),a=i.message||FormValidation.I18n[r].ip.ipv6;break;case i.ipv4&&i.ipv6:default:h=o.test(s)||l.test(s),a=i.message||FormValidation.I18n[r].ip["default"]}return{valid:h,message:a}}}}
34(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{isbn:{"default":"Please enter a valid ISBN number"}}}),FormValidation.Validator.isbn={validate:function(t,e,i,n){var s,a=t.getFieldValue(e,n);if(""===a)return!0;switch(!0){case/^\d{9}[\dX]$/.test(a):case 13===a.length&&/^(\d+)-(\d+)-(\d+)-([\dX])$/.test(a):case 13===a.length&&/^(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(a):s="ISBN10";break;case/^(978|979)\d{9}[\dX]$/.test(a):case 17===a.length&&/^(978|979)-(\d+)-(\d+)-(\d+)-([\dX])$/.test(a):case 17===a.length&&/^(978|979)\s(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(a):s="ISBN13";break;default:return!1}var r,o,l=(a=a.replace(/[^0-9X]/gi,"")).split(""),h=l.length,d=0;switch(s){case"ISBN10":for(r=d=0;r<h-1;r++)d+=parseInt(l[r],10)*(10-r);return 11===(o=11-d%11)?o=0:10===o&&(o="X"),{type:s,valid:o+""===l[h-1]};case"ISBN13":for(r=d=0;r<h-1;r++)d+=r%2==0?parseInt(l[r],10):3*parseInt(l[r],10);return 10===(o=10-d%10)&&(o="0"),{type:s,valid:o+""===l[h-1]};default:return!1}}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{isin:{"default":"Please enter a valid ISIN number"}}}),FormValidation.Validator.isin={COUNTRY_CODES:"AF|AX|AL|DZ|AS|AD|AO|AI|AQ|AG|AR|AM|AW|AU|AT|AZ|BS|BH|BD|BB|BY|BE|BZ|BJ|BM|BT|BO|BQ|BA|BW|BV|BR|IO|BN|BG|BF|BI|KH|CM|CA|CV|KY|CF|TD|CL|CN|CX|CC|CO|KM|CG|CD|CK|CR|CI|HR|CU|CW|CY|CZ|DK|DJ|DM|DO|EC|EG|SV|GQ|ER|EE|ET|FK|FO|FJ|FI|FR|GF|PF|TF|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GU|GT|GG|GN|GW|GY|HT|HM|VA|HN|HK|HU|IS|IN|ID|IR|IQ|IE|IM|IL|IT|JM|JP|JE|JO|KZ|KE|KI|KP|KR|KW|KG|LA|LV|LB|LS|LR|LY|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MH|MQ|MR|MU|YT|MX|FM|MD|MC|MN|ME|MS|MA|MZ|MM|NA|NR|NP|NL|NC|NZ|NI|NE|NG|NU|NF|MP|NO|OM|PK|PW|PS|PA|PG|PY|PE|PH|PN|PL|PT|PR|QA|RE|RO|RU|RW|BL|SH|KN|LC|MF|PM|VC|WS|SM|ST|SA|SN|RS|SC|SL|SG|SX|SK|SI|SB|SO|ZA|GS|SS|ES|LK|SD|SR|SJ|SZ|SE|CH|SY|TW|TJ|TZ|TH|TL|TG|TK|TO|TT|TN|TR|TM|TC|TV|UG|UA|AE|GB|US|UM|UY|UZ|VU|VE|VN|VG|VI|WF|EH|YE|ZM|ZW",validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(s=s.toUpperCase(),!new RegExp("^("+this.COUNTRY_CODES+")[0-9A-Z]{10}$").test(s))return!1;for(var a="",r=s.length,o=0;o<r-1;o++){var l=s.charCodeAt(o);a+=57<l?(l-55).toString():s.charAt(o)}var h="",d=a.length,c=d%2!=0?0:1;for(o=0;o<d;o++)h+=parseInt(a[o],10)*(o%2===c?2:1)+"";var u=0;for(o=0;o<h.length;o++)u+=parseInt(h.charAt(o),10);return(u=(10-u%10)%10)+""===s.charAt(r-1)}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{ismn:{"default":"Please enter a valid ISMN number"}}}),FormValidation.Validator.ismn={validate:function(t,e,i,n){var s,a=t.getFieldValue(e,n);if(""===a)return!0;switch(!0){case/^M\d{9}$/.test(a):case/^M-\d{4}-\d{4}-\d{1}$/.test(a):case/^M\s\d{4}\s\d{4}\s\d{1}$/.test(a):s="ISMN10";break;case/^9790\d{9}$/.test(a):case/^979-0-\d{4}-\d{4}-\d{1}$/.test(a):case/^979\s0\s\d{4}\s\d{4}\s\d{1}$/.test(a):s="ISMN13";break;default:return!1}"ISMN10"===s&&(a="9790"+a.substr(1));for(var r=(a=a.replace(/[^0-9]/gi,"")).length,o=0,l=[1,3],h=0;h<r-1;h++)o+=parseInt(a.charAt(h),10)*l[h%2];return{type:s,valid:(o=10-o%10)+""===a.charAt(r-1)}}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{issn:{"default":"Please enter a valid ISSN number"}}}),FormValidation.Validator.issn={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(!/^\d{4}\-\d{3}[\dX]$/.test(s))return!1;var a=(s=s.replace(/[^0-9X]/gi,"")).split(""),r=a.length,o=0;"X"===a[7]&&(a[7]=10);for(var l=0;l<r;l++)o+=parseInt(a[l],10)*(8-l);return o%11==0}}}(jQuery),function(l){FormValidation.I18n=l.extend(!0,FormValidation.I18n||{},{en_US:{lessThan:{"default":"Please enter a value less than or equal to %s",notInclusive:"Please enter a value less than %s"}}}),FormValidation.Validator.lessThan={html5Attributes:{message:"message",value:"value",inclusive:"inclusive"},enableByHtml5:function(t){var e=t.attr("type"),i=t.attr("max");return!(!i||"date"===e)&&{value:i}},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;s=this._format(s);var a=t.getLocale(),r=l.isNumeric(i.value)?i.value:t.getDynamicOption(e,i.value),o=this._format(r);return!0===i.inclusive||i.inclusive===undefined?{valid:l.isNumeric(s)&&parseFloat(s)<=o,message:FormValidation.Helper.format(i.message||FormValidation.I18n[a].lessThan["default"],r)}:{valid:l.isNumeric(s)&&parseFloat(s)<o,message:FormValidation.Helper.format(i.message||FormValidation.I18n[a].lessThan.notInclusive,r)}},_format:function(t){return(t+"").replace(",",".")}}}
34(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{mac:{"default":"Please enter a valid MAC address"}}}),FormValidation.Validator.mac={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);return""===s||/^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$/.test(s)}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{meid:{"default":"Please enter a valid MEID number"}}}),FormValidation.Validator.meid={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;switch(!0){case/^[0-9A-F]{15}$/i.test(s):case/^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}[- ][0-9A-F]$/i.test(s):case/^\d{19}$/.test(s):case/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}[- ]\d$/.test(s):var a=s.charAt(s.length-1);if((s=s.replace(/[- ]/g,"")).match(/^\d*$/i))return FormValidation.Helper.luhn(s);s=s.slice(0,-1);for(var r="",o=1;o<=13;o+=2)r+=(2*parseInt(s.charAt(o),16)).toString(16);var l=0;for(o=0;o<r.length;o++)l+=parseInt(r.charAt(o),16);return l%10==0?"0"===a:a===(2*(10*Math.floor((l+10)/10)-l)).toString(16);case/^[0-9A-F]{14}$/i.test(s):case/^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}$/i.test(s):case/^\d{18}$/.test(s):case/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}$/.test(s):return!0;default:return!1}}}}(jQuery),function(o){FormValidation.I18n=o.extend(!0,FormValidation.I18n||{},{en_US:{notEmpty:{"default":"Please enter a value"}}}),FormValidation.Validator.notEmpty={enableByHtml5:function(t){var e=t.attr("required")+"";return"required"===e||"true"===e},validate:function(t,e,i,n){var s=e.attr("type");if("radio"===s||"checkbox"===s){var a=t.getNamespace();return 0<t.getFieldElements(e.attr("data-"+a+"-field")).filter(":checked").length}if("number"===s&&e.get(0).validity&&!0===e.get(0).validity.badInput)return!0;var r=t.getFieldValue(e,n);return""!==o.trim(r)}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{numeric:{"default":"Please enter a valid float number"}}}),FormValidation.Validator.numeric={html5Attributes:{message:"message",separator:"separator",thousandsseparator:"thousandsSeparator",decimalseparator:"decimalSeparator"},enableByHtml5:function(t){return"number"===t.attr("type")&&t.attr("step")!==undefined&&t.attr("step")%1!=0},validate:function(t,e,i,n){if(this.enableByHtml5(e)&&e.get(0).validity&&!0===e.get(0).validity.badInput)return!1;var s=t.getFieldValue(e,n);if(""===s)return!0;var a=i.separator||i.decimalSeparator||".",r=i.thousandsSeparator||"";a="."===a?"\\.":a,r="."===r?"\\.":r;var o=new RegExp("^-?[0-9]{1,3}("+r+"[0-9]{3})*("+a+"[0-9]+)?$"),l=new RegExp(r,"g");return!!o.test(s)&&(r&&(s=s.replace(l,"")),a&&(s=s.replace(a,".")),!isNaN(parseFloat(s))&&isFinite(s))}}}(jQuery),function(l){FormValidation.I18n=l.extend(!0,FormValidation.I18n||{},{en_US:{phone:{"default":"Please enter a valid phone number",country:"Please enter a valid phone number in %s",countries:{AE:"United Arab Emirates",BG:"Bulgaria",BR:"Brazil",CN:"China",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",ES:"Spain",FR:"France",GB:"United Kingdom",IN:"India",MA:"Morocco",NL:"Netherlands",PK:"Pakistan",RO:"Romania",RU:"Russia",SK:"Slovakia",TH:"Thailand",US:"USA",VE:"Venezuela"}}}}),FormValidation.Validator.phone={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["AE","BG","BR","CN","CZ","DE","DK","ES","FR","GB","IN","MA","NL","PK","RO","RU","SK","TH","US","VE"],validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;var a=t.getLocale(),r=i.country;if("string"==typeof r&&-1!==l.inArray(r,this.COUNTRY_CODES)||(r=t.getDynamicOption(e,r)),!r||-1===l.inArray(r.toUpperCase(),this.COUNTRY_CODES))return!0;var o=!0;switch(r.toUpperCase()){case"AE":s=l.trim(s),o=/^(((\+|00)?971[\s\.-]?(\(0\)[\s\.-]?)?|0)(\(5(0|2|5|6)\)|5(0|2|5|6)|2|3|4|6|7|9)|60)([\s\.-]?[0-9]){7}$/.test(s);break;case"BG":s=s.replace(/\+|\s|-|\/|\(|\)/gi,""),o=/^(0|359|00)(((700|900)[0-9]{5}|((800)[0-9]{5}|(800)[0-9]{4}))|(87|88|89)([0-9]{7})|((2[0-9]{7})|(([3-9][0-9])(([0-9]{6})|([0-9]{5})))))$/.test(s);break;case"BR":s=l.trim(s),o=/^(([\d]{4}[-.\s]{1}[\d]{2,3}[-.\s]{1}[\d]{2}[-.\s]{1}[\d]{2})|([\d]{4}[-.\s]{1}[\d]{3}[-.\s]{1}[\d]{4})|((\(?\+?[0-9]{2}\)?\s?)?(\(?\d{2}\)?\s?)?\d{4,5}[-.\s]?\d{4}))$/.test(s);break;case"CN":s=l.trim(s),o=/^((00|\+)?(86(?:-| )))?((\d{11})|(\d{3}[- ]{1}\d{4}[- ]{1}\d{4})|((\d{2,4}[- ]){1}(\d{7,8}|(\d{3,4}[- ]{1}\d{4}))([- ]{1}\d{1,4})?))$/.test(s);break;case"CZ":o=/^(((00)([- ]?)|\+)(420)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(s);break;case"DE":s=l.trim(s),o=/^(((((((00|\+)49[ \-/]?)|0)[1-9][0-9]{1,4})[ \-/]?)|((((00|\+)49\()|\(0)[1-9][0-9]{1,4}\)[ \-/]?))[0-9]{1,7}([ \-/]?[0-9]{1,5})?)$/.test(s);break;case"DK":s=l.trim(s),o=/^(\+45|0045|\(45\))?\s?[2-9](\s?\d){7}$/.test(s);break;
34case"ES":s=l.trim(s),o=/^(?:(?:(?:\+|00)34\D?))?(?:5|6|7|8|9)(?:\d\D?){8}$/.test(s);break;case"FR":s=l.trim(s),o=/^(?:(?:(?:\+|00)33[ ]?(?:\(0\)[ ]?)?)|0){1}[1-9]{1}([ .-]?)(?:\d{2}\1?){3}\d{2}$/.test(s);break;case"GB":s=l.trim(s),o=/^\(?(?:(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}|\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4}|\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3})|\d{5}\)?[\s-]?\d{4,5}|8(?:00[\s-]?11[\s-]?11|45[\s-]?46[\s-]?4\d))(?:(?:[\s-]?(?:x|ext\.?\s?|\#)\d+)?)$/.test(s);break;case"IN":s=l.trim(s),o=/((\+?)((0[ -]+)*|(91 )*)(\d{12}|\d{10}))|\d{5}([- ]*)\d{6}/.test(s);break;case"MA":s=l.trim(s),o=/^(?:(?:(?:\+|00)212[\s]?(?:[\s]?\(0\)[\s]?)?)|0){1}(?:5[\s.-]?[2-3]|6[\s.-]?[13-9]){1}[0-9]{1}(?:[\s.-]?\d{2}){3}$/.test(s);break;case"NL":s=l.trim(s),o=/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9])((\s|\s?-\s?)?[0-9])((\s|\s?-\s?)?[0-9])\s?[0-9]\s?[0-9]\s?[0-9]\s?[0-9]\s?[0-9]$/gm.test(s);break;case"PK":s=l.trim(s),o=/^0?3[0-9]{2}[0-9]{7}$/.test(s);break;case"RO":o=/^(\+4|)?(07[0-8]{1}[0-9]{1}|02[0-9]{2}|03[0-9]{2}){1}?(\s|\.|\-)?([0-9]{3}(\s|\.|\-|)){2}$/g.test(s);break;case"RU":o=/^((8|\+7|007)[\-\.\/ ]?)?([\(\/\.]?\d{3}[\)\/\.]?[\-\.\/ ]?)?[\d\-\.\/ ]{7,10}$/g.test(s);break;case"SK":o=/^(((00)([- ]?)|\+)(421)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(s);break;case"TH":o=/^0\(?([6|8-9]{2})*-([0-9]{3})*-([0-9]{4})$/.test(s);break;case"VE":s=l.trim(s),o=/^0(?:2(?:12|4[0-9]|5[1-9]|6[0-9]|7[0-8]|8[1-35-8]|9[1-5]|3[45789])|4(?:1[246]|2[46]))\d{7}$/.test(s);break;case"US":default:o=/^(?:(1\-?)|(\+1 ?))?\(?(\d{3})[\)\-\.]?(\d{3})[\-\.]?(\d{4})$/.test(s)}return{valid:o,message:FormValidation.Helper.format(i.message||FormValidation.I18n[a].phone.country,FormValidation.I18n[a].phone.countries[r])}}}}(jQuery),function(r){FormValidation.I18n=r.extend(!0,FormValidation.I18n||{},{en_US:{promise:{"default":"Please enter a valid value"}}}),FormValidation.Validator.promise={html5Attributes:{message:"message",promise:"promise"},validate:function(t,e,i,n){var s=t.getFieldValue(e,n),a=new r.Deferred;return FormValidation.Helper.call(i.promise,[s,t,e]).done(function(t){a.resolve(e,n,t)}).fail(function(t){(t=t||{}).valid=!1,a.resolve(e,n,t)}),a}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{regexp:{"default":"Please enter a value matching the pattern"}}}),FormValidation.Validator.regexp={html5Attributes:{message:"message",regexp:"regexp"},enableByHtml5:function(t){var e=t.attr("pattern");return!!e&&{regexp:e}},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);return""===s||("string"==typeof i.regexp?new RegExp(i.regexp):i.regexp).test(s)}}}(jQuery),function(p){FormValidation.I18n=p.extend(!0,FormValidation.I18n||{},{en_US:{remote:{"default":"Please enter a valid value"}}}),FormValidation.Validator.remote={html5Attributes:{crossdomain:"crossDomain",data:"data",datatype:"dataType",delay:"delay",message:"message",name:"name",type:"type",url:"url",validkey:"validKey"},destroy:function(t,e,i,n){var s=t.getNamespace(),a=e.data(s+"."+n+".timer");a&&(clearTimeout(a),e.removeData(s+"."+n+".timer"))},validate:function(t,e,i,n){function s(){var t=p.ajax(u);return t.success(function(t){t.valid=!0===t[c]||"true"===t[c]||!1!==t[c]&&"false"!==t[c]&&null,o.resolve(e,n,t)}).error(function(){o.resolve(e,n,{valid:!1})}),o.fail(function(){t.abort()}),o}var a=t.getNamespace(),r=t.getFieldValue(e,n),o=new p.Deferred;if(""===r)return o.resolve(e,n,{valid:!0}),o;var l=e.attr("data-"+a+"-field"),h=i.data||{},d=i.url,c=i.validKey||"valid";"function"==typeof h&&(h=h.call(this,t,e,r)),"string"==typeof h&&(h=JSON.parse(h)),"function"==typeof d&&(d=d.call(this,t,e,r)),h[i.name||l]=r;var u={data:h,dataType:i.dataType||"json",headers:i.headers||{},type:i.type||"GET",url:d};return null!==i.crossDomain&&(u.crossDomain=!0===i.crossDomain||"true"===i.crossDomain),i.delay?(e.data(a+"."+n+".timer")&&clearTimeout(e.data(a+"."+n+".timer")),e.data(a+"."+n+".timer",setTimeout(s,i.delay)),o):s()}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{rtn:{"default":"Please enter a valid RTN number"}}}
34),FormValidation.Validator.rtn={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(!/^\d{9}$/.test(s))return!1;for(var a=0,r=0;r<s.length;r+=3)a+=3*parseInt(s.charAt(r),10)+7*parseInt(s.charAt(r+1),10)+parseInt(s.charAt(r+2),10);return 0!==a&&a%10==0}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{sedol:{"default":"Please enter a valid SEDOL number"}}}),FormValidation.Validator.sedol={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(s=s.toUpperCase(),!/^[0-9A-Z]{7}$/.test(s))return!1;for(var a=0,r=[1,3,1,7,3,9,1],o=s.length,l=0;l<o-1;l++)a+=r[l]*parseInt(s.charAt(l),36);return(a=(10-a%10)%10)+""===s.charAt(o-1)}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{siren:{"default":"Please enter a valid SIREN number"}}}),FormValidation.Validator.siren={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);return""===s||!!/^\d{9}$/.test(s)&&FormValidation.Helper.luhn(s)}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{siret:{"default":"Please enter a valid SIRET number"}}}),FormValidation.Validator.siret={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;for(var a,r=0,o=s.length,l=0;l<o;l++)a=parseInt(s.charAt(l),10),l%2==0&&9<(a*=2)&&(a-=9),r+=a;return r%10==0}}}(jQuery),function(h){FormValidation.I18n=h.extend(!0,FormValidation.I18n||{},{en_US:{step:{"default":"Please enter a valid step of %s"}}}),FormValidation.Validator.step={html5Attributes:{message:"message",base:"baseValue",step:"step"},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(i=h.extend({},{baseValue:0,step:1},i),s=parseFloat(s),!h.isNumeric(s))return!1;var a=function(t,e){var i=Math.pow(10,e),n=0<(t*=i)|-(t<0);return t%1==.5*n?(Math.floor(t)+(0<n))/i:Math.round(t)/i},r=function(t,e){if(0===e)return 1;var i=(t+"").split("."),n=(e+"").split("."),s=(1===i.length?0:i[1].length)+(1===n.length?0:n[1].length);return a(t-e*Math.floor(t/e),s)},o=t.getLocale(),l=r(s-i.baseValue,i.step);return{valid:0===l||l===i.step,message:FormValidation.Helper.format(i.message||FormValidation.I18n[o].step["default"],[i.step])}}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{stringCase:{"default":"Please enter only lowercase characters",upper:"Please enter only uppercase characters"}}}),FormValidation.Validator.stringCase={html5Attributes:{message:"message","case":"case"},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;var a=t.getLocale(),r=(i["case"]||"lower").toLowerCase();return{valid:"upper"===r?s===s.toUpperCase():s===s.toLowerCase(),message:i.message||("upper"===r?FormValidation.I18n[a].stringCase.upper:FormValidation.I18n[a].stringCase["default"])}}}}(jQuery),function(u){FormValidation.I18n=u.extend(!0,FormValidation.I18n||{},{en_US:{stringLength:{"default":"Please enter a value with valid length",less:"Please enter less than %s characters",more:"Please enter more than %s characters",between:"Please enter value between %s and %s characters long"}}}),FormValidation.Validator.stringLength={html5Attributes:{message:"message",min:"min",max:"max",trim:"trim",utf8bytes:"utf8Bytes"},enableByHtml5:function(t){var e={},i=t.attr("maxlength"),n=t.attr("minlength");return i&&(e.max=parseInt(i,10)),n&&(e.min=parseInt(n,10)),!u.isEmptyObject(e)&&e},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(!0!==i.trim&&"true"!==i.trim||(s=u.trim(s)),""===s)return!0;var a=t.getLocale(),r=u.isNumeric(i.min)?i.min:t.getDynamicOption(e,i.min),o=u.isNumeric(i.max)?i.max:t.getDynamicOption(e,i.max),l=function(t){for(var e=t.length,i=t.length-1;0<=i;i--){var n=t.charCodeAt(i);127<n&&n<=2047?e++:2047<n&&n<=65535&&(e+=2),56320<=n&&n<=57343&&i--}return e},h=i.utf8Bytes?l(s):s.length,d=!0,c=i.message||FormValidation.I18n[a].stringLength["default"];switch((r&&h<parseInt(r,10)||o&&h>parseInt(o,10))&&(d=!1),!0){case!!r&&!!o:c=FormValidation.Helper.format(i.message||FormValidation.I18n[a].stringLength.between,[parseInt(r,10),parseInt(o,10)]);break;case!!r:c=FormValidation.Helper.format(i.message||FormValidation.I18n[a].stringLength.more,parseInt(r,10)-1);break;case!!o:c=FormValidation.Helper.format(i.message||FormValidation.I18n[a].stringLength.less,parseInt(o,10)+1)}return{valid:d,message:c}}}}
34(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{uri:{"default":"Please enter a valid URI"}}}),FormValidation.Validator.uri={html5Attributes:{message:"message",allowlocal:"allowLocal",allowemptyprotocol:"allowEmptyProtocol",protocol:"protocol"},enableByHtml5:function(t){return"url"===t.attr("type")},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;var a=!0===i.allowLocal||"true"===i.allowLocal,r=!0===i.allowEmptyProtocol||"true"===i.allowEmptyProtocol,o=(i.protocol||"http, https, ftp").split(",").join("|").replace(/\s/g,"");return new RegExp("^(?:(?:"+o+")://)"+(r?"?":"")+"(?:\\S+(?::\\S*)?@)?(?:"+(a?"":"(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})")+"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9])*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))"+(a?"?":"")+")(?::\\d{2,5})?(?:/[^\\s]*)?$","i").test(s)}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{uuid:{"default":"Please enter a valid UUID number",version:"Please enter a valid UUID version %s number"}}}),FormValidation.Validator.uuid={html5Attributes:{message:"message",version:"version"},validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;var a=t.getLocale(),r={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i
35},o=i.version?i.version+"":"all";return{valid:null===r[o]||r[o].test(s),message:i.version?FormValidation.Helper.format(i.message||FormValidation.I18n[a].uuid.version,i.version):i.message||FormValidation.I18n[a].uuid["default"]}}}}(jQuery),function(l){FormValidation.I18n=l.extend(!0,FormValidation.I18n||{},{en_US:{vat:{"default":"Please enter a valid VAT number",country:"Please enter a valid VAT number in %s",countries:{AT:"Austria",BE:"Belgium",BG:"Bulgaria",BR:"Brazil",CH:"Switzerland",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",EE:"Estonia",ES:"Spain",FI:"Finland",FR:"France",GB:"United Kingdom",GR:"Greek",EL:"Greek",HU:"Hungary",HR:"Croatia",IE:"Ireland",IS:"Iceland",IT:"Italy",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MT:"Malta",NL:"Netherlands",NO:"Norway",PL:"Poland",PT:"Portugal",RO:"Romania",RU:"Russia",RS:"Serbia",SE:"Sweden",SI:"Slovenia",SK:"Slovakia",VE:"Venezuela",ZA:"South Africa"}}}}),FormValidation.Validator.vat={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["AT","BE","BG","BR","CH","CY","CZ","DE","DK","EE","EL","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LT","LU","LV","MT","NL","NO","PL","PT","RO","RU","RS","SE","SK","SI","VE","ZA"],validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;var a=t.getLocale(),r=i.country;if(r?"string"==typeof r&&-1!==l.inArray(r.toUpperCase(),this.COUNTRY_CODES)||(r=t.getDynamicOption(e,r)):r=s.substr(0,2),-1===l.inArray(r,this.COUNTRY_CODES))return!0;var o=this[["_",r.toLowerCase()].join("")](s);return(o=!0===o||!1===o?{valid:o}:o).message=FormValidation.Helper.format(i.message||FormValidation.I18n[a].vat.country,FormValidation.I18n[a].vat.countries[r.toUpperCase()]),o},_at:function(t){if(/^ATU[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^U[0-9]{8}$/.test(t))return!1;t=t.substr(1);for(var e=0,i=[1,2,1,2,1,2,1],n=0,s=0;s<7;s++)9<(n=parseInt(t.charAt(s),10)*i[s])&&(n=Math.floor(n/10)+n%10),e+=n;return 10===(e=10-(e+4)%10)&&(e=0),e+""===t.substr(7,1)},_be:function(t){return/^BE[0]{0,1}[0-9]{9}$/.test(t)&&(t=t.substr(2)),!!/^[0]{0,1}[0-9]{9}$/.test(t)&&(9===t.length&&(t="0"+t),"0"!==t.substr(1,1)&&(parseInt(t.substr(0,8),10)+parseInt(t.substr(8,2),10))%97==0)},_bg:function(t){if(/^BG[0-9]{9,10}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9,10}$/.test(t))return!1;var e=0,i=0;if(9===t.length){for(i=0;i<8;i++)e+=parseInt(t.charAt(i),10)*(i+1);if(10===(e%=11))for(i=e=0;i<8;i++)e+=parseInt(t.charAt(i),10)*(i+3);return(e%=10)+""===t.substr(8)}if(10!==t.length)return!1;var n=function(t){for(var e=0,i=[21,19,17,13,11,9,7,3,1],n=0;n<9;n++)e+=parseInt(t.charAt(n),10)*i[n];return(e%=10)+""===t.substr(9,1)},s=function(t){for(var e=0,i=[4,3,2,7,6,5,4,3,2],n=0;n<9;n++)e+=parseInt(t.charAt(n),10)*i[n];return 10!=(e=11-e%11)&&(11===e&&(e=0),e+""===t.substr(9,1))};return function(t){var e=parseInt(t.substr(0,2),10)+1900,i=parseInt(t.substr(2,2),10),n=parseInt(t.substr(4,2),10);if(40<i?(e+=100,i-=40):20<i&&(e-=100,i-=20),!FormValidation.Helper.date(e,i,n))return!1;for(var s=0,a=[2,4,8,5,10,9,7,3,6],r=0;r<9;r++)s+=parseInt(t.charAt(r),10)*a[r];return(s=s%11%10)+""===t.substr(9,1)}(t)||n(t)||s(t)},_br:function(t){if(""===t)return!0;var e=t.replace(/[^\d]+/g,"");if(""===e||14!==e.length)return!1;if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var i=e.length-2,n=e.substring(0,i),s=e.substring(i),a=0,r=i-7,o=i;1<=o;o--)a+=parseInt(n.charAt(i-o),10)*r--,r<2&&(r=9);var l=a%11<2?0:11-a%11;if(l!==parseInt(s.charAt(0),10))return!1;for(i+=1,n=e.substring(0,i),a=0,r=i-7,o=i;1<=o;o--)a+=parseInt(n.charAt(i-o),10)*r--,r<2&&(r=9);return(l=a%11<2?0:11-a%11)===parseInt(s.charAt(1),10)},_ch:function(t){if(/^CHE[0-9]{9}
35(MWST)?$/.test(t)&&(t=t.substr(2)),!/^E[0-9]{9}(MWST)?$/.test(t))return!1;t=t.substr(1);for(var e=0,i=[5,4,3,2,7,6,5,4],n=0;n<8;n++)e+=parseInt(t.charAt(n),10)*i[n];return 10!=(e=11-e%11)&&(11===e&&(e=0),e+""===t.substr(8,1))},_cy:function(t){if(/^CY[0-5|9]{1}[0-9]{7}[A-Z]{1}$/.test(t)&&(t=t.substr(2)),!/^[0-5|9]{1}[0-9]{7}[A-Z]{1}$/.test(t))return!1;if("12"===t.substr(0,2))return!1;for(var e=0,i={0:1,1:0,2:5,3:7,4:9,5:13,6:15,7:17,8:19,9:21},n=0;n<8;n++){var s=parseInt(t.charAt(n),10);n%2==0&&(s=i[s+""]),e+=s}return(e="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[e%26])+""===t.substr(8,1)},_cz:function(t){if(/^CZ[0-9]{8,10}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8,10}$/.test(t))return!1;var e=0,i=0;if(8===t.length){if(t.charAt(0)+""=="9")return!1;for(i=e=0;i<7;i++)e+=parseInt(t.charAt(i),10)*(8-i);return 10===(e=11-e%11)&&(e=0),11===e&&(e=1),e+""===t.substr(7,1)}if(9===t.length&&t.charAt(0)+""=="6"){for(i=e=0;i<7;i++)e+=parseInt(t.charAt(i+1),10)*(8-i);return 10===(e=11-e%11)&&(e=0),11===e&&(e=1),(e=[8,7,6,5,4,3,2,1,0,9,10][e-1])+""===t.substr(8,1)}if(9!==t.length&&10!==t.length)return!1;var n=1900+parseInt(t.substr(0,2),10),s=parseInt(t.substr(2,2),10)%50%20,a=parseInt(t.substr(4,2),10);if(9===t.length){if(1980<=n&&(n-=100),1953<n)return!1}else n<1954&&(n+=100);if(!FormValidation.Helper.date(n,s,a))return!1;if(10!==t.length)return!0;var r=parseInt(t.substr(0,9),10)%11;return n<1985&&(r%=10),r+""===t.substr(9,1)},_de:function(t){return/^DE[0-9]{9}$/.test(t)&&(t=t.substr(2)),!!/^[0-9]{9}$/.test(t)&&FormValidation.Helper.mod11And10(t)},_dk:function(t){if(/^DK[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return!1;for(var e=0,i=[2,7,6,5,4,3,2,1],n=0;n<8;n++)e+=parseInt(t.charAt(n),10)*i[n];return e%11==0},_ee:function(t){if(/^EE[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return!1;for(var e=0,i=[3,7,1,3,7,1,3,7,1],n=0;n<9;n++)e+=parseInt(t.charAt(n),10)*i[n];return e%10==0},_es:function(t){if(/^ES[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(t)&&(t=t.substr(2)),!/^[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(t))return!1;var e=function(t){var e=parseInt(t.substr(0,8),10);return(e="TRWAGMYFPDXBNJZSQVHLCKE"[e%23])+""===t.substr(8,1)},i=function(t){var e=["XYZ".indexOf(t.charAt(0)),t.substr(1)].join("");return(e="TRWAGMYFPDXBNJZSQVHLCKE"[(e=parseInt(e,10))%23])+""===t.substr(8,1)},n=function(t){var e=t.charAt(0);if(-1!=="KLM".indexOf(e))return"TRWAGMYFPDXBNJZSQVHLCKE"[parseInt(t.substr(1,8),10)%23]+""===t.substr(8,1);if(-1==="ABCDEFGHJNPQRSUVW".indexOf(e))return!1;for(var i=0,n=[2,1,2,1,2,1,2],s=0,a=0;a<7;a++)9<(s=parseInt(t.charAt(a+1),10)*n[a])&&(s=Math.floor(s/10)+s%10),i+=s;return 10===(i=10-i%10)&&(i=0),i+""===t.substr(8,1)||"JABCDEFGHI"[i]===t.substr(8,1)},s=t.charAt(0);return/^[0-9]$/.test(s)?{valid:e(t),type:"DNI"}:/^[XYZ]$/.test(s)?{valid:i(t),type:"NIE"}:{valid:n(t),type:"CIF"}},_fi:function(t){if(/^FI[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return!1;for(var e=0,i=[7,9,10,5,8,4,2,1],n=0;n<8;n++)e+=parseInt(t.charAt(n),10)*i[n];return e%11==0},_fr:function(t){if(/^FR[0-9A-Z]{2}[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9A-Z]{2}[0-9]{9}$/.test(t))return!1;if(!FormValidation.Helper.luhn(t.substr(2)))return!1;if(/^[0-9]{2}$/.test(t.substr(0,2)))return t.substr(0,2)===parseInt(t.substr(2)+"12",10)%97+"";var e,i="0123456789ABCDEFGHJKLMNPQRSTUVWXYZ";return e=/^[0-9]{1}$/.test(t.charAt(0))?24*i.indexOf(t.charAt(0))+i.indexOf(t.charAt(1))-10:34*i.indexOf(t.charAt(0))+i.indexOf(t.charAt(1))-100,(parseInt(t.substr(2),10)+1+Math.floor(e/11))%11==e%11},_gb:function(t){if((/^GB[0-9]{9}$/.test(t)||/^GB[0-9]{12}$/.test(t)||/^GBGD[0-9]{3}$/.test(t)||/^GBHA[0-9]{3}$/.test(t)||/^GB(GD|HA)8888[0-9]{5}$/.test(t))&&(t=t.substr(2)),!(/^[0-9]{9}$/.test(t)||/^[0-9]{12}$/.test(t)||/^GD[0-9]{3}$/.test(t)||/^HA[0-9]{3}$/.test(t)||/^(GD|HA)8888[0-9]{5}$/.test(t)))return!1;var e=t.length;if(5===e){var i=t.substr(0,2),n=parseInt(t.substr(2),10);return"GD"===i&&n<500||"HA"===i&&500<=n}if(11===e&&("GD8888"===t.substr(0,6)||"HA8888"===t.substr(0,6)))return!("GD"===t.substr(0,2)&&500<=parseInt(t.substr(6,3),10)||"HA"===t.substr(0,2)&&parseInt(t.substr(6,3),10)<500)&&parseInt(t.substr(6,3),10)%97===parseInt(t.substr(9,2),10);if(9!==e&&12!==e)return!0;for(var s=0,a=[8,7,6,5,4,3,2,10,1],r=0;r<9;r++)s+=parseInt(t.charAt(r),10)*a[r];return s%=97,100<=parseInt(t.substr(0,3),10)?0===s||42===s||55===s:0===s},_gr:function(t){if(/^(GR|EL)[0-9]{9}
35$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return!1;8===t.length&&(t="0"+t);for(var e=0,i=[256,128,64,32,16,8,4,2],n=0;n<8;n++)e+=parseInt(t.charAt(n),10)*i[n];return(e=e%11%10)+""===t.substr(8,1)},_el:function(t){return this._gr(t)},_hu:function(t){if(/^HU[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return!1;for(var e=0,i=[9,7,3,1,9,7,3,1],n=0;n<8;n++)e+=parseInt(t.charAt(n),10)*i[n];return e%10==0},_hr:function(t){return/^HR[0-9]{11}$/.test(t)&&(t=t.substr(2)),!!/^[0-9]{11}$/.test(t)&&FormValidation.Helper.mod11And10(t)},_ie:function(t){if(/^IE[0-9]{1}[0-9A-Z\*\+]{1}[0-9]{5}[A-Z]{1,2}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{1}[0-9A-Z\*\+]{1}[0-9]{5}[A-Z]{1,2}$/.test(t))return!1;var e=function(t){for(;t.length<7;)t="0"+t;for(var e="WABCDEFGHIJKLMNOPQRSTUV",i=0,n=0;n<7;n++)i+=parseInt(t.charAt(n),10)*(8-n);return i+=9*e.indexOf(t.substr(7)),e[i%23]};return/^[0-9]+$/.test(t.substr(0,7))?t.charAt(7)===e(t.substr(0,7)+t.substr(8)+""):-1==="ABCDEFGHIJKLMNOPQRSTUVWXYZ+*".indexOf(t.charAt(1))||t.charAt(7)===e(t.substr(2,5)+t.substr(0,1)+"")},_is:function(t){return/^IS[0-9]{5,6}$/.test(t)&&(t=t.substr(2)),/^[0-9]{5,6}$/.test(t)},_it:function(t){if(/^IT[0-9]{11}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{11}$/.test(t))return!1;if(0===parseInt(t.substr(0,7),10))return!1;var e=parseInt(t.substr(7,3),10);return!(e<1||201<e&&999!==e&&888!==e)&&FormValidation.Helper.luhn(t)},_lt:function(t){if(/^LT([0-9]{7}1[0-9]{1}|[0-9]{10}1[0-9]{1})$/.test(t)&&(t=t.substr(2)),!/^([0-9]{7}1[0-9]{1}|[0-9]{10}1[0-9]{1})$/.test(t))return!1;var e,i=t.length,n=0;for(e=0;e<i-1;e++)n+=parseInt(t.charAt(e),10)*(1+e%9);var s=n%11;if(10===s)for(e=n=0;e<i-1;e++)n+=parseInt(t.charAt(e),10)*(1+(e+2)%9);return(s=s%11%10)+""===t.charAt(i-1)},_lu:function(t){return/^LU[0-9]{8}$/.test(t)&&(t=t.substr(2)),!!/^[0-9]{8}$/.test(t)&&parseInt(t.substr(0,6),10)%89+""===t.substr(6,2)},_lv:function(t){if(/^LV[0-9]{11}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{11}$/.test(t))return!1;var e,i=parseInt(t.charAt(0),10),n=0,s=[],a=t.length;if(3<i){for(s=[9,1,4,8,3,10,2,5,7,6,1],e=n=0;e<a;e++)n+=parseInt(t.charAt(e),10)*s[e];return 3===(n%=11)}var r=parseInt(t.substr(0,2),10),o=parseInt(t.substr(2,2),10),l=parseInt(t.substr(4,2),10);if(l=l+1800+100*parseInt(t.charAt(6),10),!FormValidation.Helper.date(l,o,r))return!1;for(s=[10,5,8,4,2,1,6,3,7,9],e=n=0;e<a-1;e++)n+=parseInt(t.charAt(e),10)*s[e];return(n=(n+1)%11%10)+""===t.charAt(a-1)},_mt:function(t){if(/^MT[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return!1;for(var e=0,i=[3,4,6,7,8,9,10,1],n=0;n<8;n++)e+=parseInt(t.charAt(n),10)*i[n];return e%37==0},_nl:function(t){if(/^NL[0-9]{9}B[0-9]{2}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}B[0-9]{2}$/.test(t))return!1;for(var e=0,i=[9,8,7,6,5,4,3,2],n=0;n<8;n++)e+=parseInt(t.charAt(n),10)*i[n];return 9<(e%=11)&&(e=0),e+""===t.substr(8,1)},_no:function(t){if(/^NO[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return!1;for(var e=0,i=[3,2,7,6,5,4,3,2],n=0;n<8;n++)e+=parseInt(t.charAt(n),10)*i[n];return 11===(e=11-e%11)&&(e=0),e+""===t.substr(8,1)},_pl:function(t){if(/^PL[0-9]{10}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{10}$/.test(t))return!1;for(var e=0,i=[6,5,7,2,3,4,5,6,7,-1],n=0;n<10;n++)e+=parseInt(t.charAt(n),10)*i[n];return e%11==0},_pt:function(t){if(/^PT[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return!1;for(var e=0,i=[9,8,7,6,5,4,3,2],n=0;n<8;n++)e+=parseInt(t.charAt(n),10)*i[n];return 9<(e=11-e%11)&&(e=0),e+""===t.substr(8,1)},_ro:function(t){if(/^RO[1-9][0-9]{1,9}$/.test(t)&&(t=t.substr(2)),!/^[1-9][0-9]{1,9}$/.test(t))return!1;for(var e=t.length,i=[7,5,3,2,1,7,5,3,2].slice(10-e),n=0,s=0;s<e-1;s++)n+=parseInt(t.charAt(s),10)*i[s];return(n=10*n%11%10)+""===t.substr(e-1,1)},_ru:function(t){if(/^RU([0-9]{10}|[0-9]{12})$/.test(t)&&(t=t.substr(2)),!/^([0-9]{10}|[0-9]{12})$/.test(t))return!1;var e=0;if(10===t.length){var i=0,n=[2,4,10,3,5,9,4,6,8,0];for(e=0;e<10;e++)i+=parseInt(t.charAt(e),10)*n[e];return 9<(i%=11)&&(i%=10),i+""===t.substr(9,1)}if(12!==t.length)return!1;var s=0,a=[7,2,4,10,3,5,9,4,6,8,0],r=0,o=[3,7,2,4,10,3,5,9,4,6,8,0];for(e=0;e<11;e++)s+=parseInt(t.charAt(e),10)*a[e],r+=parseInt(t.charAt(e),10)*o[e];return 9<(s%=11)&&(s%=10),9<(r%=11)&&(r%=10),s+""===t.substr(10,1)&&r+""===t.substr(11,1)},_rs:function(t){if(/^RS[0-9]{9}
35$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return!1;for(var e=10,i=0,n=0;n<8;n++)0===(i=(parseInt(t.charAt(n),10)+e)%10)&&(i=10),e=2*i%11;return(e+parseInt(t.substr(8,1),10))%10==1},_se:function(t){return/^SE[0-9]{10}01$/.test(t)&&(t=t.substr(2)),!!/^[0-9]{10}01$/.test(t)&&(t=t.substr(0,10),FormValidation.Helper.luhn(t))},_si:function(t){var e=t.match(/^(SI)?([1-9][0-9]{7})$/);if(!e)return!1;e[1]&&(t=t.substr(2));for(var i=0,n=[8,7,6,5,4,3,2],s=0;s<7;s++)i+=parseInt(t.charAt(s),10)*n[s];return 10===(i=11-i%11)&&(i=0),i+""===t.substr(7,1)},_sk:function(t){return/^SK[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(t)&&(t=t.substr(2)),!!/^[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(t)&&parseInt(t,10)%11==0},_ve:function(t){if(/^VE[VEJPG][0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[VEJPG][0-9]{9}$/.test(t))return!1;for(var e={V:4,E:8,J:12,P:16,G:20}[t.charAt(0)],i=[3,2,7,6,5,4,3,2],n=0;n<8;n++)e+=parseInt(t.charAt(n+1),10)*i[n];return 11!==(e=11-e%11)&&10!==e||(e=0),e+""===t.substr(9,1)},_za:function(t){return/^ZA4[0-9]{9}$/.test(t)&&(t=t.substr(2)),/^4[0-9]{9}$/.test(t)}}}(jQuery),function(t){FormValidation.I18n=t.extend(!0,FormValidation.I18n||{},{en_US:{vin:{"default":"Please enter a valid VIN number"}}}),FormValidation.Validator.vin={validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s)return!0;if(!/^[a-hj-npr-z0-9]{8}[0-9xX][a-hj-npr-z0-9]{8}$/i.test(s))return!1;for(var a={A:1,B:2,C:3,D:4,E:5,F:6,G:7,H:8,J:1,K:2,L:3,M:4,N:5,P:7,R:9,
35S:2,T:3,U:4,V:5,W:6,X:7,Y:8,Z:9,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,0:0},r=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],o=0,l=(s=s.toUpperCase()).length,h=0;h<l;h++)o+=a[s.charAt(h)+""]*r[h];var d=o%11;return 10===d&&(d="X"),d+""===s.charAt(8)}}}(jQuery),function(l){FormValidation.I18n=l.extend(!0,FormValidation.I18n||{},{en_US:{zipCode:{"default":"Please enter a valid postal code",country:"Please enter a valid postal code in %s",countries:{AT:"Austria",BG:"Bulgaria",BR:"Brazil",CA:"Canada",CH:"Switzerland",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",ES:"Spain",FR:"France",GB:"United Kingdom",IE:"Ireland",IN:"India",IT:"Italy",MA:"Morocco",NL:"Netherlands",PL:"Poland",PT:"Portugal",RO:"Romania",RU:"Russia",SE:"Sweden",SG:"Singapore",SK:"Slovakia",US:"USA"}}}}),FormValidation.Validator.zipCode={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["AT","BG","BR","CA","CH","CZ","DE","DK","ES","FR","GB","IE","IN","IT","MA","NL","PL","PT","RO","RU","SE","SG","SK","US"],validate:function(t,e,i,n){var s=t.getFieldValue(e,n);if(""===s||!i.country)return!0;var a=t.getLocale(),r=i.country;if("string"==typeof r&&-1!==l.inArray(r,this.COUNTRY_CODES)||(r=t.getDynamicOption(e,r)),!r||-1===l.inArray(r.toUpperCase(),this.COUNTRY_CODES))return!0;var o=!1;switch(r=r.toUpperCase()){case"AT":o=/^([1-9]{1})(\d{3})$/.test(s);break;case"BG":o=/^([1-9]{1}[0-9]{3})$/.test(l.trim(s));break;case"BR":o=/^(\d{2})([\.]?)(\d{3})([\-]?)(\d{3})$/.test(s);break;case"CA":o=/^(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}\s?[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}[0-9]{1}$/i.test(s);break;case"CH":o=/^([1-9]{1})(\d{3})$/.test(s);break;case"CZ":o=/^(\d{3})([ ]?)(\d{2})$/.test(s);break;case"DE":o=/^(?!01000|99999)(0[1-9]\d{3}|[1-9]\d{4})$/.test(s);break;case"DK":o=/^(DK(-|\s)?)?\d{4}$/i.test(s);break;case"ES":o=/^(?:0[1-9]|[1-4][0-9]|5[0-2])\d{3}$/.test(s);break;case"FR":o=/^[0-9]{5}$/i.test(s);break;case"GB":o=this._gb(s);break;case"IN":o=/^\d{3}\s?\d{3}$/.test(s);break;case"IE":o=/^(D6W|[ACDEFHKNPRTVWXY]\d{2})\s[0-9ACDEFHKNPRTVWXY]{4}$/.test(s);break;case"IT":o=/^(I-|IT-)?\d{5}$/i.test(s);break;case"MA":o=/^[1-9][0-9]{4}$/i.test(s);break;case"NL":o=/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(s);break;case"PL":o=/^[0-9]{2}\-[0-9]{3}$/.test(s);break;case"PT":o=/^[1-9]\d{3}-\d{3}$/.test(s);break;case"RO":o=/^(0[1-8]{1}|[1-9]{1}[0-5]{1})?[0-9]{4}$/i.test(s);break;case"RU":o=/^[0-9]{6}$/i.test(s);break;case"SE":o=/^(S-)?\d{3}\s?\d{2}$/i.test(s);break;case"SG":o=/^([0][1-9]|[1-6][0-9]|[7]([0-3]|[5-9])|[8][0-2])(\d{4})$/i.test(s);break;case"SK":o=/^(\d{3})([ ]?)(\d{2})$/.test(s);break;case"US":default:o=/^\d{4,5}([\-]?\d{4})?$/.test(s)}return{valid:o,message:FormValidation.Helper.format(i.message||FormValidation.I18n[a].zipCode.country,FormValidation.I18n[a].zipCode.countries[r])}},_gb:function(t){for(var e="[ABCDEFGHIJKLMNOPRSTUWYZ]",i="[ABCDEFGHKLMNOPQRSTUVWXY]",n="[ABCDEFGHJKPMNRSTUVWXY]",s="[ABEHMNPRVWXY]",a="[ABDEFGHJLNPQRSTUWXYZ]",r=[new RegExp("^("+e+"{1}"+i+"?[0-9]{1,2})(\\s*)([0-9]{1}"+a+"{2})$","i"),new RegExp("^("+e+"{1}[0-9]{1}"+n+"{1})(\\s*)([0-9]{1}"+a+"{2})$","i"),new RegExp("^("+e+"{1}"+i+"{1}?[0-9]{1}"+s+"{1})(\\s*)([0-9]{1}"+a+"{2})$","i"),new RegExp("^(BF1)(\\s*)([0-6]{1}[ABDEFGHJLNPQRST]{1}[ABDEFGHJLNPQRSTUWZYZ]{1})$","i"),/^(GIR)(\s*)(0AA)$/i,/^(BFPO)(\s*)([0-9]{1,4})$/i,/^(BFPO)(\s*)(c\/o\s*[0-9]{1,3})$/i,/^([A-Z]{4}
35)(\s*)(1ZZ)$/i,/^(AI-2640)$/i],o=0;o<r.length;o++)if(r[o].test(t))return!0;return!1}}}(jQuery),function(i){FormValidation.Framework.Foundation=function(t,e){e=i.extend(!0,{button:{selector:'[type="submit"]:not([formnovalidate])',disabled:"disabled"},err:{clazz:"error",parent:"^.*((small|medium|large)-[0-9]+)\\s.*(columns).*$"},icon:{valid:null,invalid:null,validating:null,feedback:"fv-control-feedback"},row:{selector:".row",valid:"fv-has-success",invalid:"error",feedback:"fv-has-feedback"}},e),FormValidation.Base.apply(this,[t,e])},FormValidation.Framework.Foundation.prototype=i.extend({},FormValidation.Base.prototype,{_fixIcon:function(t,e){var i=this._namespace,n=t.attr("type"),s=t.attr("data-"+i+"-field"),a=this.options.fields[s].row||this.options.row.selector,r=t.closest(a);if("checkbox"===n||"radio"===n){var o=e.next();o.is("label")&&e.insertAfter(o)}0===r.find("label").length&&e.addClass("fv-icon-no-label")},_createTooltip:function(t,e,i){var n=this,s=t.data("fv.icon");s&&(s.attr("title",e).css({cursor:"pointer"}).off("mouseenter.container.fv focusin.container.fv").on("mouseenter.container.fv",function(){n._showTooltip(t,i)}).off("mouseleave.container.fv focusout.container.fv").on("mouseleave.container.fv focusout.container.fv",function(){n._hideTooltip(t,i)}),Foundation.libs.tooltip.create(s),s.data("fv.foundation.tooltip",s))},_destroyTooltip:function(t){var e=t.data("fv.icon");if(e){e.css({cursor:""});var i=e.data("fv.foundation.tooltip");i&&(i.off(".fndtn.tooltip"),Foundation.libs.tooltip.hide(i),e.removeData("fv.foundation.tooltip"))}},_hideTooltip:function(t){var e=t.data("fv.icon");if(e){e.css({cursor:""});var i=e.data("fv.foundation.tooltip");i&&Foundation.libs.tooltip.hide(i)}},_showTooltip:function(t){var e=t.data("fv.icon");if(e){var i=e.data("fv.foundation.tooltip");i&&(e.css({cursor:"pointer"}),Foundation.libs.tooltip.show(i))}}})}(jQuery),function(){this.AiresisFormValidation=function(){function t(t){var e,i;e={excluded:!1,validators:{callback:{message:Airesis.i18n.validationMessages.notEmpty["default"],callback:function(t){var e;return""!==t&&0<((e=$("<div/>").html(t).get(0)).textContent||e.innerText).length}}}},(i={})[Airesis.i18n.locale]=Airesis.i18n.validationMessages,FormValidation.I18n=$.extend(!0,FormValidation.I18n||{},i),t.formValidation({locale:Airesis.i18n.locale,framework:"foundation",icon:{valid:"fa fa-check",invalid:"fa fa-times",validating:"fa fa-refresh"},trigger:"blur",row:{selector:".inputs"},fields:{"proposal[title]":{trigger:"change",validators:{remote:{message:Airesis.i18n.validationMessages.alreadyTaken["default"],url:function(){return $('a[href="#next"]').addClass("disabled"),"/validators/uniqueness/proposal"},data:function(t,e,i){return{"proposal[title]":i,"proposal[id]":e.data("fv-remote-id")}},type:"GET",delay:200}}},"user[email]":{validators:{remote:{enabled:!1,message:Airesis.i18n.validationMessages.alreadyTaken["default"],url:"/validators/uniqueness/user",type:"GET",delay:1e3}}},"group[name]":{validators:{remote:{message:Airesis.i18n.validationMessages.alreadyTaken["default"],url:"/validators/uniqueness/group",data:function(t,e,i){return{"group[name]":i,"group[id]":e.data("fv-remote-id")}},type:"GET",delay:1e3}}},"proposal[proposal_category_id]":{excluded:!1},"proposal[sections_attributes][0][seq]":{excluded:!1,validators:{callback:{message:Airesis.i18n.validationMessages.notEmpty["default"],callback:function(t){var e;return""!==t&&0<((e=$("<div/>").html(t).get(0)).textContent||e.innerText).length}}}},"group[interest_border_tkn]":{excluded:!1},"event[meeting_attributes][place_attributes][municipality_id]":{excluded:!1},"group[description]":e,"blog_post[body]":e,"frm_post[text]":e,"frm_topic[posts_attributes][0][text]":e}}).on("success.validator.fv",function(t,e){if("proposal[title]"===e.field&&"remote"===e.validator)return $('a[href="#next"]').removeClass("disabled")}),t.filter("[data-remote=true]").on("success.form.fv",function(t){if($(t.target).data("remote"))return t.preventDefault(),!1}),t.filter("[data-remote=true]").on("submit",function(t){var e;if((e=$(t.target)).data("remote")&&e.data("formValidation").getInvalidFields().length)return t.preventDefault(),!1})}return t}()}.call(this),function(){$(function(){var n;return n=function(t){var e;return e=$(this).nextAll(".search-by-text"),1<t.val().length?(e.removeAttr("disabled"),!0):(e.attr("disabled","disabled"),!1)},$(document).foundation(),new AiresisFormValidation($('form:not("[data-disable-form-validator]")')),Facebook.load(),"production"===Airesis.environment&&GoogleAnalytics.load(),"test"===Airesis.environment&&($.fx.off=!0),$.ajaxPrefilter(function(t,e){return""!==Airesis.i18n.l&&(t.data=$.param($.extend(e.data,{l:Airesis.i18n.l}))),!0}),Airesis.signed_in&&(PrivatePub.subscribe("/notifications/"+Airesis.id,function(){Airesis.resource_viewable?$.ajax({url:window.location,complete:poll_if_not_recent}):poll_if_not_recent()}),poll()),Feedback({h2cPath:Airesis.i18n.feedback.h2cPath,url:"/send_feedback",label:Airesis.i18n.feedback.label,header:Airesis.i18n.feedback.header,nextLabel:Airesis.i18n.feedback.nextLabel,reviewLabel:Airesis.i18n.feedback.reviewLabel,sendLabel:Airesis.i18n.feedback.sendLabel,closeLabel:Airesis.i18n.feedback.closeLabel,messageSuccess:Airesis.i18n.feedback.messageSuccess,messageError:Airesis.i18n.feedback.messageError,appendTo:$("footer .feedback_space")[0],btnClass:"feedbackBtn",pages:[new window.Feedback.Form([{type:"textarea",
35name:"message",label:Airesis.i18n.feedback.describeProblem,required:!0}]),new window.Feedback.Screenshot({h2cPath:Airesis.i18n.feedback.h2cPath,blackoutButtonMessage:Airesis.i18n.feedback.blackoutButtonMessage,highlightButtonMessage:Airesis.i18n.feedback.highlightButtonMessage,highlightOrBlackout:Airesis.i18n.feedback.highlightOrBlackout}),new window.Feedback.Review]}),$("aside [data-ijs]").removeAttr("data-ijs"),$.fn.qtip.defaults=$.extend(!0,{},$.fn.qtip.defaults,{style:{classes:"qtip-light qtip-shadow"}}),Airesis.viewport=$("html, body"),disegnaProgressBar(),0<$(".sticky-anchor").length&&($(window).scroll(sticky_relocate),sticky_relocate()),$("#menu-group .menu-activator").click(function(){var t;return"true"===(t=$("#menu-left")).attr("data-expshow")?(t.removeClass("small-show"),t.attr("data-expshow",!1)):(t.addClass("small-show"),t.attr("data-expshow",!0))}),mybox_animate(),new Airesis.Searcher,$(".submenu a div").qtip({position:{at:"bottom center",my:"top center",effect:!1}}),$(".cur.love").qtip({position:{at:"bottom center",my:"top center",viewport:$(window),effect:!1,adjust:{method:"shift",x:0,y:0}},style:{classes:"qtip-light qtip-shadow qtip-cur"},show:{solo:!0}}),$("[data-qtip]").qtip({style:{classes:"qtip-light qtip-shadow"}}),$(document).on("focus","[data-datetimepicker]",function(){return $(this).fdatetimepicker()}),$("input[data-datepicker]").fdatetimepicker({format:$.fn.fdatetimepicker.defaults.dateFormat}),$(document).on("click","[data-reveal-close]",function(){return $(".reveal-modal:visible").foundation("reveal","close")}),$(document).on("click","[data-login]",function(){return $("#login-panel").foundation("reveal","open")}),$(".create_proposal").on("click",function(){var i,n;return n=$(this),(i=$('<div class="dynamic_container reveal-modal large" data-reveal></div>')).append($(this).next(".choose_model").clone().show()),$(".proposal_model_option",i).click(function(){var t,e;return e=$(this).data("id"),window.location.href=n.attr("href")+"?proposal_type_id="+e,(t=$(".choose_model",i)).hide(500,function(){return t.remove(),i.append($("#loading-fragment").clone())})}),airesis_reveal(i),!1}),$.fn.tagcloud.defaults={size:{start:12,end:24,unit:"pt"},color:{start:"#fff",end:"#fff"}},$("[data-tag-cloud] a").tagcloud(),$(".search-by-text").on("click",function(){var t,e,i;return e=$(this).prevAll(".field-by-text"),t=$(this).prevAll(".condition-for-text:checked"),n(e)&&(i=addQueryParam(location.href,"search",e.val()),i=0<t.length?addQueryParam(i,"or",t.val()):addQueryParam(i,"or",""),window.location=i),!1}),$(document).on("focus","[data-textntags]",function(){if(1!==$(this).data("textntags"))return $(this).textntags({triggers:{"@":{uniqueTags:!1}},onDataRequest:function(t,e,i,n){var s,a;return s=ProposalsShow.nicknames,e=e.toLowerCase(),a=_.filter(s,function(t){return-1<t.name.toLowerCase().indexOf(e)}),n.call(this,a)}}),$(this).data("textntags",1),$(this).focus()}),execute_page_js($("body").data("page")),$(document).on("change","#event_all_day",function(){return $(this).is(":checked")?fdatetimepicker_only_date($("#event_starttime"),$("#event_endtime")):fdatetimepicker_date_and_time($("#event_starttime"),$("#event_endtime"))})})}.call(this),function(){this.Facebook=function(){function n(){}return null,!1,n.load=function(){var t,e,i;return 0<$("#fb-root").size()||(i=$("<div>").attr("id","fb-root"),$("body").prepend(i)),0<$("#facebook-jssdk").size()||((t=document.createElement("script")).id="facebook-jssdk",t.async=1,t.src="//connect.facebook.net/"+n.locale()+"/sdk.js#xfbml=1&appId="+n.appId()+"&version=v2.0",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e)),n.eventsBound||n.bindEvents(),n.subscriptions()},n.subscriptions=function(){},n.bindEvents=function(){return"undefined"!=typeof Turbolinks&&Turbolinks.supported&&$(document).on("page:fetch",n.saveRoot).on("page:change",n.restoreRoot).on("page:load",function(){return"undefined"!=typeof FB&&null!==FB?FB.XFBML.parse():void 0}),n.eventsBound=!0},n.saveRoot=function(){return n.rootElement=$("#fb-root").detach()},n.restoreRoot=function(){return 0<$("#fb-root").length?$("#fb-root").replaceWith(n.rootElement):$("body").append(n.rootElement)},n.appId=function(){return $("#fb-root").data("app-id")},n.locale=function(){return $("#fb-root").data("locale")},n}(),window.fbAsyncInit=function(){return FB.Event.subscribe("edge.create",function(t,e){var i,n;if(n=$(e).data("likeable_type"),i=$(e).data("likeable_id"),n&&i)return $.ajax({headers:{"X-CSRF-Token":$('meta[name="csrf-token"]').attr("content")},data:{"user_like[likeable_id]":i,"user_like[likeable_type]":n},url:$("#fb-root").data("user-like-url"),type:"post"})}),FB.Event.subscribe("edge.remove",function(t,e){var i,n;if(n=$(e).data("likeable_type"),i=$(e).data("likeable_id"),n&&i)return $.ajax({headers:{"X-CSRF-Token":$('meta[name="csrf-token"]').attr("content")},data:{"user_like[likeable_id]":i,"user_like[likeable_type]":n},url:$("#fb-root").data("user-like-url")+"/"+i,type:"delete"})})}}.call(this),function(){this.GoogleAnalytics=function(){function o(){}return o.load=function(){var t,e,i,n,s,a,r;if(""!==Airesis.googleAnalyticsId)return t=window,e=document,i="script",n="//www.google-analytics.com/analytics.js",s="ga",t.GoogleAnalyticsObject=s,t[s]=t[s]||function(){return(t[s].q=t[s].q||[]).push(arguments)}
35,t[s].l=1*new Date,a=e.createElement(i),r=e.getElementsByTagName(i)[0],a.async=1,a.src=n,r.parentNode.insertBefore(a,r),"undefined"!=typeof Turbolinks&&Turbolinks.supported?document.addEventListener("page:change",function(){return o.trackPageview()},!0):o.trackPageview()},o.trackPageview=function(t){if(!o.isLocalRequest())return t?window.ga("send","pageview",window.location.pathname):(window.ga("create",Airesis.googleAnalyticsId,"auto"),window.ga("send","pageview"))},o.isLocalRequest=function(){return o.documentDomainIncludes("local")},o.documentDomainIncludes=function(t){return-1!==document.domain.indexOf(t)},o}()}.call(this),function(){var t,e,i,n;n=!1,$(function(){if(e(),!n)return t()}),t=function(){return $(document).on("page:load",i),n=!0},i=function(){return $(".twitter-share-button").each(function(){var t;if(null==(t=$(this)).data("url")&&t.attr("data-url",document.location.href),null==t.data("text"))return t.attr("data-text",document.title)}),twttr.widgets.load()},e=function(){return $.getScript("//platform.twitter.com/widgets.js")}}.call(this),function(t,e){"use strict";"object"==typeof exports?module.exports=e(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"==typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],e):t.URI=e(t.punycode,t.IPv6,t.SecondLevelDomains,t)}(this,function(o,e,h,i){"use strict";function p(t,e){var i=1<=arguments.length,n=2<=arguments.length;if(!(this instanceof p))return i?n?new p(t,e):new p(t):new p;if(t===undefined){if(i)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}return this.href(t),e!==undefined?this.absoluteTo(e):this}function l(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function r(t){return t===undefined?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function d(t){return"Array"===r(t)}function c(t,e){var i,n,s={};if("RegExp"===r(e))s=null;else if(d(e))for(i=0,n=e.length;i<n;i++)s[e[i]]=!0;else s[e]=!0;for(i=0,n=t.length;i<n;i++){(s&&s[t[i]]!==undefined||!s&&e.test(t[i]))&&(t.splice(i,1),n--,i--)}return t}function a(t,e){var i,n;if(d(e)){for(i=0,n=e.length;i<n;i++)if(!a(t,e[i]))return!1;return!0}var s=r(e);for(i=0,n=t.length;i<n;i++)if("RegExp"===s){if("string"==typeof t[i]&&t[i].match(e))return!0}else if(t[i]===e)return!0;return!1}function u(t,e){if(!d(t)||!d(e))return!1;if(t.length!==e.length)return!1;t.sort(),e.sort();for(var i=0,n=t.length;i<n;i++)if(t[i]!==e[i])return!1;return!0}function n(t){return escape(t)}function s(t){return encodeURIComponent(t).replace(/[!'()*]/g,n).replace(/\*/g,"%2A")}function t(i){return function(t,e){return t===undefined?this._parts[i]||"":(this._parts[i]=t||null,this.build(!e),this)}}function f(i,n){return function(t,e){return t===undefined?this._parts[i]||"":(null!==t&&(t+="").charAt(0)===n&&(t=t.substring(1)),this._parts[i]=t,this.build(!e),this)}}var g=i&&i.URI;p.version="1.15.2";var m=p.prototype,v=Object.prototype.hasOwnProperty;p._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:p.duplicateQueryParameters,escapeQuerySpace:p.escapeQuerySpace}},p.duplicateQueryParameters=!1,p.escapeQuerySpace=!0,p.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,p.idn_expression=/[^a-z0-9\.-]/i,p.punycode_expression=/(xn--)/i,p.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,p.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,
36p.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))/gi,p.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u201e\u2018\u2019]+$/},p.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},p.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/,p.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},p.getDomAttribute=function(t){if(!t||!t.nodeName)return undefined;var e=t.nodeName.toLowerCase();return"input"===e&&"image"!==t.type?undefined:p.domAttributes[e]},p.encode=s,p.decode=decodeURIComponent,p.iso8859=function(){p.encode=escape,p.decode=unescape},p.unicode=function(){p.encode=s,p.decode=decodeURIComponent},p.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},p.encodeQuery=function(t,e){var i=p.encode(t+"");return e===undefined&&(e=p.escapeQuerySpace),e?i.replace(/%20/g,"+"):i},p.decodeQuery=function(t,e){t+="",e===undefined&&(e=p.escapeQuerySpace);try{return p.decode(e?t.replace(/\+/g,"%20"):t)}catch(i){return t}};var _,b={encode:"encode",decode:"decode"},y=function(i,n){return function(t){try{return p[n](t+"").replace(p.characters[i][n].expression,function(t){return p.characters[i][n].map[t]})}catch(e){return t}}};for(_ in b)p[_+"PathSegment"]=y("pathname",b[_]),p[_+"UrnPathSegment"]=y("urnpath",b[_]);var w=function(a,r,o){return function(t){var e;e=o?function(t){return p[r](p[o](t))}:p[r];for(var i=(t+"").split(a),n=0,s=i.length;n<s;n++)i[n]=e(i[n]);return i.join(a)}};p.decodePath=w("/","decodePathSegment"),p.decodeUrnPath=w(":","decode
36UrnPathSegment"),p.recodePath=w("/","encodePathSegment","decode"),p.recodeUrnPath=w(":","encodeUrnPathSegment","decode"),p.encodeReserved=y("reserved","encode"),p.parse=function(t,e){var i;return e||(e={}),-1<(i=t.indexOf("#"))&&(e.fragment=t.substring(i+1)||null,t=t.substring(0,i)),-1<(i=t.indexOf("?"))&&(e.query=t.substring(i+1)||null,t=t.substring(0,i)),"//"===t.substring(0,2)?(e.protocol=null,t=t.substring(2),t=p.parseAuthority(t,e)):-1<(i=t.indexOf(":"))&&(e.protocol=t.substring(0,i)||null,e.protocol&&!e.protocol.match(p.protocol_expression)?e.protocol=undefined:"//"===t.substring(i+1,i+3)?(t=t.substring(i+3),t=p.parseAuthority(t,e)):(t=t.substring(i+1),e.urn=!0)),e.path=t,e},p.parseHost=function(t,e){var i,n,s=t.indexOf("/");if(-1===s&&(s=t.length),"["===t.charAt(0))i=t.indexOf("]"),e.hostname=t.substring(1,i)||null,e.port=t.substring(i+2,s)||null,"/"===e.port&&(e.port=null);else{var a=t.indexOf(":"),r=t.indexOf("/"),o=t.indexOf(":",a+1);-1!==o&&(-1===r||o<r)?(e.hostname=t.substring(0,s)||null,e.port=null):(n=t.substring(0,s).split(":"),e.hostname=n[0]||null,e.port=n[1]||null)}return e.hostname&&"/"!==t.substring(s).charAt(0)&&(s++,t="/"+t),t.substring(s)||"/"},p.parseAuthority=function(t,e){return t=p.parseUserinfo(t,e),p.parseHost(t,e)},p.parseUserinfo=function(t,e){var i,n=t.indexOf("/"),s=t.lastIndexOf("@",-1<n?n:t.length-1);return-1<s&&(-1===n||s<n)?(i=t.substring(0,s).split(":"),e.username=i[0]?p.decode(i[0]):null,i.shift(),e.password=i[0]?p.decode(i.join(":")):null,t=t.substring(s+1)):(e.username=null,e.password=null),t},p.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var i,n,s,a={},r=t.split("&"),o=r.length,l=0;l<o;l++)i=r[l].split("="),n=p.decodeQuery(i.shift(),e),s=i.length?p.decodeQuery(i.join("="),e):null,v.call(a,n)?("string"!=typeof a[n]&&null!==a[n]||(a[n]=[a[n]]),a[n].push(s)):a[n]=s;return a},p.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=p.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&"string"==typeof t.hostname&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},p.buildHost=function(t){var e="";return t.hostname?(p.ip6_expression.test(t.hostname)?e+="["+t.hostname+"]":e+=t.hostname,t.port&&(e+=":"+t.port),e):""},p.buildAuthority=function(t){return p.buildUserinfo(t)+p.buildHost(t)},p.buildUserinfo=function(t){var e="";return t.username&&(e+=p.encode(t.username),t.password&&(e+=":"+p.encode(t.password)),e+="@"),e},p.buildQuery=function(t,e,i){var n,s,a,r,o="";for(s in t)if(v.call(t,s)&&s)if(d(t[s]))for(n={},a=0,r=t[s].length;a<r;a++)t[s][a]!==undefined&&n[t[s][a]+""]===undefined&&(o+="&"+p.buildQueryParameter(s,t[s][a],i),!0!==e&&(n[t[s][a]+""]=!0));else t[s]!==undefined&&(o+="&"+p.buildQueryParameter(s,t[s],i));return o.substring(1)},p.buildQueryParameter=function(t,e,i){return p.encodeQuery(t,i)+(null!==e?"="+p.encodeQuery(e,i):"")},p.addQuery=function(t,e,i){if("object"==typeof e)for(var n in e)v.call(e,n)&&p.addQuery(t,n,e[n]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(t[e]===undefined)return void(t[e]=i);"string"==typeof t[e]&&(t[e]=[t[e]]),d(i)||(i=[i]),t[e]=(t[e]||[]).concat(i)}},p.removeQuery=function(t,e,i){var n,s,a;if(d(e))for(n=0,s=e.length;n<s;n++)t[e[n]]=undefined;else if("RegExp"===r(e))for(a in t)e.test(a)&&(t[a]=undefined);else if("object"==typeof e)for(a in e)v.call(e,a)&&p.removeQuery(t,a,e[a
36]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");i!==undefined?"RegExp"===r(i)?!d(t[e])&&i.test(t[e])?t[e]=undefined:t[e]=c(t[e],i):t[e]===i?t[e]=undefined:d(t[e])&&(t[e]=c(t[e],i)):t[e]=undefined}},p.hasQuery=function(t,e,i,n){if("object"==typeof e){for(var s in e)if(v.call(e,s)&&!p.hasQuery(t,s,e[s]))return!1;return!0}if("string"!=typeof e)throw new TypeError("URI.hasQuery() accepts an object, string as the name parameter");switch(r(i)){case"Undefined":return e in t;case"Boolean":return i===Boolean(d(t[e])?t[e].length:t[e]);case"Function":return!!i(t[e],e,t);case"Array":return!!d(t[e])&&(n?a:u)(t[e],i);case"RegExp":return d(t[e])?!!n&&a(t[e],i):Boolean(t[e]&&t[e].match(i));case"Number":i=String(i);case"String":return d(t[e])?!!n&&a(t[e],i):t[e]===i;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},p.commonPath=function(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i++)if(t.charAt(i)!==e.charAt(i)){i--;break}return i<1?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(i)&&"/"===e.charAt(i)||(i=t.substring(0,i).lastIndexOf("/")),t.substring(0,i+1))},p.withinString=function(t,e,i){i||(i={});var n=i.start||p.findUri.start,s=i.end||p.findUri.end,a=i.trim||p.findUri.trim,r=/[a-z0-9-]=["']?$/i;for(n.lastIndex=0;;){var o=n.exec(t);if(!o)break;var l=o.index;if(i.ignoreHtml){var h=t.slice(Math.max(l-3,0),l);if(h&&r.test(h))continue}var d=l+t.slice(l).search(s),c=t.slice(l,d).replace(a,"");if(!i.ignore||!i.ignore.test(c)){var u=e(c,l,d=l+c.length,t);t=t.slice(0,l)+u+t.slice(d),n.lastIndex=l+u.length}}return n.lastIndex=0,t},p.ensureValidHostname=function(t){if(t.match(p.invalid_hostname_characters)){if(!o)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available');if(o.toASCII(t).match(p.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]')}},p.noConflict=function(t){if(t){var e={URI:this.noConflict()};return i.URITemplate&&"function"==typeof i.URITemplate.noConflict&&(e.URITemplate=i.URITemplate.noConflict()),i.IPv6&&"function"==typeof i.IPv6.noConflict&&(e.IPv6=i.IPv6.noConflict()),i.SecondLevelDomains&&"function"==typeof i.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=i.SecondLevelDomains.noConflict()),e}return i.URI===this&&(i.URI=g),this},m.build=function(t){return!0===t?this._deferred_build=!0:(t===undefined||this._deferred_build)&&(this._string=p.build(this._parts),this._deferred_build=!1),this},m.clone=function(){return new p(this)},m.valueOf=m.toString=function(){return this.build(!1)._string},m.protocol=t("protocol"),m.username=t("username"),m.password=t("password"),m.hostname=t("hostname"),m.port=t("port"),m.query=f("query","?"),m.fragment=f("fragment","#"),m.search=function(t,e){var i=this.query(t,e);return"string"==typeof i&&i.length?"?"+i:i},m.hash=function(t,e){var i=this.fragment(t,e);return"string"==typeof i&&i.length?"#"+i:i},m.pathname=function(t,e){if(t!==undefined&&!0!==t)return this._parts.urn?this._parts.path=t?p.recodeUrnPath(t):"":this._parts.path=t?p.recodePath(t):"/",this.build(!e),this;var i=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?p.decodeUrnPath:p.decodePath)(i):i},m.path=m.pathname,m.href=function(t,e){var i;if(t===undefined)return this.toString();this._string="",this._parts=p._parts();var n=t instanceof p,s="object"==typeof t&&(t.hostname||t.path||t.pathname);t.nodeName&&(t=t[p.getDomAttribute(t)]||"",s=!1);if(!n&&s&&t.pathname!==undefined&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=p.parse(String(t),this._parts);else{if(!n&&!s)throw new TypeError("invalid input");var a=n?t._parts:t;for(i in a)v.call(this._parts,i)&&(this._parts[i]=a[i])}return this.build(!e),this},m.is=function(t){var e=!1,i=!1,n=!1,s=!1,a=!1,r=!1,o=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,i=p.ip4_expression.test(this._parts.hostname),n=p.ip6_expression.test(this._parts.hostname),a=(s=!(e=i||n))&&h&&h.has(this._parts.hostname),r=s&&p.idn_expression.test(this._parts.hostname),o=s&&p.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return s;case"sld":return a;case"ip":return e;case"ip4":case"ipv4":case"inet4":return i;case"ip6":case"ipv6":case"inet6":return n;case"idn":return r;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return o}return null};var x=m.protocol,C=m.port,S=m.hostname;m.protocol=function(t,e){if(t!==undefined&&t&&!(t=t.replace(/:(\/\/)?$/,"")).match(p.protocol_expression))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,t,e)},m.scheme=m.protocol,m.port=function(t,e){if(this._parts.urn)return t===undefined?"":this;if(t!==undefined&&(0===t&&(t=null),t&&(":"===(t+="").charAt(0)&&(t=t.substring(1)),t.match(/[^0-9]/))))throw new TypeError('Port "'+t+'" contains characters other than [0-9]');return C.call(this,t,e)},m.hostname=function(t,e){if(this._parts.urn)return t===undefined?"":this;if(t!==undefined){var i={};p.parseHost(t,i),t=i.hostname}return S.call(this,t,e)},m.host=function(t,e){return this._parts.urn?t===undefined?"":this:t===undefined?this._parts.hostname?p.buildHost(this._parts):"":(p.parseHost(t,this._parts),this.build(!e),this)},m.authority=function(t,e){return this._parts.urn?t===undefined?"":this:t===undefined?this._parts.hostname?p.buildAuthority(this._parts):"":(p.parseAuthority(t,this._parts),this.build(!e),this)},m.userinfo=function(t,e){if(this._parts.urn)return t===undefined?"":this;if(t!==undefined)return"@"!==t[t.length-1]&&(t+="@"),p.parseUserinfo(t,this._parts),this.build(!e),this;if(!this._parts.username)return"";var i=p.buildUserinfo(this._parts);return i.substring(0,i.length-1)},m.resource=function(t,e){var i;return t===undefined?this.path()+this.search()+this.hash():(i=p.parse(t),this._parts.path=i.path,this._parts.query=i.query,this._parts.fragment=i.fragment,this.build(!e),this)},m.subdomain=function(t,e){if(this._parts.urn)return t===undefined?"":this;if(t===undefined){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,i)||""}var n=this._parts.hostname.length-this.domain().length,s=this._parts.hostname.substring(0,n),a=new RegExp("^"+l(s));return t&&"."!==t.charAt(t.length-1)&&(t+="."),t&&p.ensureValidHostname(t),this._parts.hostname=this._parts.hostname.replace(a,t),this.build(!e),this},m.domain=function(t,e){if(this._parts.urn)return t===undefined?"":this;if("boolean"==typeof t&&(e=t,t=undefined),t===undefined){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.match(/\./g);if(i&&i.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(e).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!t)throw new TypeError("cannot set domain empty");if(p.ensureValidHostname(t),!this._parts.hostname||this.is("IP"))this._parts.hostname=t;else{var s=new RegExp(l(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(s,t)}return this.build(!e),this},m.tld=function(t,e){if(this._parts.urn)return t===undefined?"":this;if("boolean"==typeof t&&(e=t,t=undefined),t===undefined){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.lastIndexOf("."),n=this._parts.hostname.substring(i+1);return!0!==e&&h&&h.list[n.toLowerCase()]&&h.get(this._parts.hostname)||n}var s;if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!h||!h.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');s=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(s,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");s=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(s,t)}return this.build(!e),this},m.directory=function(t,e){if(this._parts.urn)return t===undefined?"":this;if(t===undefined||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var i=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,i)||
36(this._parts.hostname?"/":"");return t?p.decodePath(n):n}var s=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,s),r=new RegExp("^"+l(a));return this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=p.recodePath(t),this._parts.path=this._parts.path.replace(r,t),this.build(!e),this},m.filename=function(t,e){if(this._parts.urn)return t===undefined?"":this;if(t===undefined||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var i=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(i+1);return t?p.decodePathSegment(n):n}var s=!1;"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(s=!0);var a=new RegExp(l(this.filename())+"$");return t=p.recodePath(t),this._parts.path=this._parts.path.replace(a,t),s?this.normalizePath(e):this.build(!e),this},m.suffix=function(t,e){if(this._parts.urn)return t===undefined?"":this;if(t===undefined||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var i,n,s=this.filename(),a=s.lastIndexOf(".");return-1===a?"":(i=s.substring(a+1),n=/^[a-z0-9%]+$/i.test(i)?i:"",t?p.decodePathSegment(n):n)}"."===t.charAt(0)&&(t=t.substring(1));var r,o=this.suffix();if(o)r=t?new RegExp(l(o)+"$"):new RegExp(l("."+o)+"$");else{if(!t)return this;this._parts.path+="."+p.recodePath(t)}return r&&(t=p.recodePath(t),this._parts.path=this._parts.path.replace(r,t)),this.build(!e),this},m.segment=function(t,e,i){var n=this._parts.urn?":":"/",s=this.path(),a="/"===s.substring(0,1),r=s.split(n);if(t!==undefined&&"number"!=typeof t&&(i=e,e=t,t=undefined),t!==undefined&&"number"!=typeof t)throw new Error('Bad segment "'+t+'", must be 0-based integer');if(a&&r.shift(),t<0&&(t=Math.max(r.length+t,0)),e===undefined)return t===undefined?r:r[t];if(null===t||r[t]===undefined)if(d(e)){r=[];for(var o=0,l=e.length;o<l;o++)(e[o].length||r.length&&r[r.length-1].length)&&(r.length&&!r[r.length-1].length&&r.pop(),r.push(e[o]))}else(e||"string"==typeof e)&&(""===r[r.length-1]?r[r.length-1]=e:r.push(e));else e?r[t]=e:r.splice(t,1);return a&&r.unshift(""),this.path(r.join(n),i)},m.segmentCoded=function(t,e,i){var n,s,a;if("number"!=typeof t&&(i=e,e=t,t=undefined),e===undefined){if(d(n=this.segment(t,e,i)))for(s=0,a=n.length;s<a;s++)n[s]=p.decode(n[s]);else n=n!==undefined?p.decode(n):undefined;return n}if(d(e))for(s=0,a=e.length;s<a;s++)e[s]=p.encode(e[s]);else e="string"==typeof e||e instanceof String?p.encode(e):e;return this.segment(t,e,i)};var k=m.query;return m.query=function(t,e){if(!0===t)return p.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"!=typeof t)return t!==undefined&&"string"!=typeof t?(this._parts.query=p.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):k.call(this,t,e);var i=p.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=t.call(this,i);return this._parts.query=p.buildQuery(n||i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this},m.setQuery=function(t,e,i){var n=p.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)n[t]=e!==undefined?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var s in t)v.call(t,s)&&(n[s]=t[s])}return this._parts.query=p.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(i=e),this.build(!i),this},m.addQuery=function(t,e,i){var n=p.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return p.addQuery(n,t,e===undefined?null:e),this._parts.query=p.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(i=e),this.build(!i),this},m.removeQuery=function(t,e,i){var n=p.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return p.removeQuery(n,t,e),this._parts.query=p.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(i=e),this.build(!i),this},m.hasQuery=function(t,e,i){var n=p.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return p.hasQuery(n,t,e,i)},m.setSearch=m.setQuery,m.addSearch=m.addQuery,m.removeSearch=m.removeQuery,m.hasSearch=m.hasQuery,m.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},m.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},m.normalizeHostname=function(t){return this._parts.hostname&&(this.is("IDN")&&o?this._parts.hostname=o.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!t)),this},m.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===p.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},m.normalizePath=function(t){var e,i=this._parts.path;if(!i)return this;if(this._parts.urn)return this._parts.path=p.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;var n,s,a="";for("/"!==i.charAt(0)&&(e=!0,i="/"+i),"/.."!==i.slice(-3)&&"/."!==i.slice(-2)||(i+="/"),i=i.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),e&&(a=i.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(n=i.indexOf("/.."));)0!==n?(-1===(s=i.substring(0,n).lastIndexOf("/"))&&(s=n),i=i.substring(0,s)+i.substring(n+3)):i=i.substring(3);return e&&this.is("relative")&&(i=a+i.substring(1)),i=p.recodePath(i),this._parts.path=i,this.build(!t),this},m.normalizePathname=m.normalizePath,m.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(p.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},m.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},m.normalizeSearch=m.normalizeQuery,m.normalizeHash=m.normalizeFragment,m.iso8859=function(){var t=p.encode,e=p.decode;p.encode=escape,p.decode=decodeURIComponent;try{this.normalize()}finally{p.encode=t,p.decode=e}return this},m.unicode=function(){var t=p.encode,e=p.decode;p.encode=s,p.decode=unescape;try{this.normalize()}finally{p.encode=t,p.decode=e}return this},m.readable=function(){var t=this.clone();t.username("").password("").normalize();var e="";if(t._parts.protocol&&(e+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&o?(e+=o.toUnicode(t._parts.hostname),t._parts.port&&(e+=":"+t._parts.port)):e+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.
36charAt(0)&&(e+="/"),e+=t.path(!0),t._parts.query){for(var i="",n=0,s=t._parts.query.split("&"),a=s.length;n<a;n++){var r=(s[n]||"").split("=");i+="&"+p.decodeQuery(r[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),r[1]!==undefined&&(i+="="+p.decodeQuery(r[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}e+="?"+i.substring(1)}return e+=p.decodeQuery(t.hash(),!0)},m.absoluteTo=function(t){var e,i,n,s=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t instanceof p||(t=new p(t)),s._parts.protocol||(s._parts.protocol=t._parts.protocol),this._parts.hostname)return s;for(i=0;n=a[i];i++)s._parts[n]=t._parts[n];return s._parts.path?".."===s._parts.path.substring(-2)&&(s._parts.path+="/"):(s._parts.path=t._parts.path,s._parts.query||(s._parts.query=t._parts.query)),"/"!==s.path().charAt(0)&&(e=(e=t.directory())||(0===t.path().indexOf("/")?"/":""),s._parts.path=(e?e+"/":"")+s._parts.path,s.normalizePath()),s.build(),s},m.relativeTo=function(t){var e,i,n,s,a,r=this.clone().normalize();if(r._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t=new p(t).normalize(),e=r._parts,i=t._parts,s=r.path(),a=t.path(),"/"!==s.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(e.protocol===i.protocol&&(e.protocol=null),e.username!==i.username||e.password!==i.password)return r.build();if(null!==e.protocol||null!==e.username||null!==e.password)return r.build();if(e.hostname!==i.hostname||e.port!==i.port)return r.build();if(e.hostname=null,e.port=null,s===a)return e.path="",r.build();if(!(n=p.commonPath(s,a)))return r.build();var o=i.path.substring(n.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return e.path=o+e.path.substring(n.length)||"./",r.build()},m.equals=function(t){var e,i,n,s=this.clone(),a=new p(t),r={},o={},l={};if(s.normalize(),a.normalize(),s.toString()===a.toString())return!0;if(e=s.query(),i=a.query(),s.query(""),a.query(""),s.toString()!==a.toString())return!1;if(e.length!==i.length)return!1;for(n in r=p.parseQuery(e,this._parts.escapeQuerySpace),o=p.parseQuery(i,this._parts.escapeQuerySpace),r)if(v.call(r,n)){if(d(r[n])){if(!u(r[n],o[n]))return!1}else if(r[n]!==o[n])return!1;l[n]=!0}for(n in o)if(v.call(o,n)&&!l[n])return!1;return!0},m.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},m.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},p}),function(t,e){"use strict";"object"==typeof exports?module.exports=e(require("jquery","./URI")):"function"==typeof define&&define.amd?define(["jquery","./URI"],e):e(t.jQuery,t.URI)}(this,function(a,r){"use strict";function n(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function o(t){var e=t.nodeName.toLowerCase(),i=r.domAttributes[e];return"input"===e&&"image"!==t.type?undefined:i}function i(i){return{get:function(t){return a(t).uri()[i]()},set:function(t,e){return a(t).uri()[i](e),e}}}function s(t,e){var i,n,s;return!(!o(t)||!e)&&(!(!(i=e.match(c))||!i[5]&&":"!==i[2]&&!h[i[2]])&&(s=a(t).uri(),i[5]?s.is(i[5]):":"===i[2]?(n=i[1].toLowerCase()+":",!!h[n]&&h[n](s,i[4])):(n=i[1].toLowerCase(),!!l[n]&&h[i[2]](s[n](),i[4],n))))}var l={},h={"=":function(t,e){return t===e},"^=":function(t,e){return!!(t+"").match(new RegExp("^"+n(e),"i"))},"$=":function(t,e){return!!(t+"").match(new RegExp(n(e)+"$","i"))},"*=":function(t,e,i){return"directory"===i&&(t+="/"),!!(t+"").match(new RegExp(n(e),"i"))},"equals:":function(t,e){return t.equals(e)},"is:":function(t,e){return t.is(e)}};a.each("authority directory domain filename fragment hash host hostname href password path pathname port protocol query resource scheme search subdomain suffix tld username".split(" "),function(t,e){l[e]=!0,a.attrHooks["uri:"+e]=i(e)});var t,d={get:function(t){return a(t).uri()},set:function(t,e){return a(t).uri().href(e).toString()}};a.each(["src","href","action","uri","cite"],function(t,e){a.attrHooks[e]={set:d.set}}),a.attrHooks.uri.get=d.get,a.fn.uri=function(t){var e=this.first(),i=e.get(0),n=o(i);if(!n)throw new Error('Element "'+i.nodeName+'" does not have either property: href, src, action, cite');if(t!==undefined){var s=e.data("uri");if(s)return s.href(t);t instanceof r||(t=r(t||""))}else{if(t=e.data("uri"))return t;t=r(e.attr(n)||"")}return t._dom_element=i,t._dom_attribute=n,t.normalize(),e.data("uri",t),t},r.prototype.build=function(t){return this._dom_element?(this._string=r.build(this._parts),this._deferred_build=!1,this._dom_element.setAttribute(this._dom_attribute,this._string),this._dom_element[this._dom_attribute]=this._string):!0===t?this._deferred_build=!0:(t===undefined||this._deferred_build)&&(this._string=r.build(this._parts),this._deferred_build=!1),this};var c=/^([a-zA-Z]+)\s*([\^\$*]?=|:)\s*(['"]?)(.+)\3|^\s*([a-zA-Z0-9]+)\s*$/;return t=a.expr.createPseudo?a.expr.createPseudo(function(e){return function(t){return s(t,e)}}
36):function(t,e,i){return s(t,i[3])},a.expr[":"].uri=t,a}),function(){var i;window.EventsEdit={init:function(){if(start_end_fdatetimepicker($("#event_starttime"),$("#event_endtime")),this.initMunicipalityInput(),this.initClientSideValidation(),this.initMapManager(),EventsEdit.votation&&this.showPlace("2"),$("#event_all_day").is(":checked"))return fdatetimepicker_only_date($("#event_starttime"),$("#event_endtime"))},showPlace:function(t){switch(t){case"2":return $("#luogo").hide(),$("#create_map_canvas").hide();default:return $("#luogo").show(),$("#create_map_canvas").show()}},initClientSideValidation:function(){return new AiresisFormValidation($("#edit_event_"+EventsEdit.eventId))},initMunicipalityInput:function(){var t;return t=$("#event_meeting_attributes_place_attributes_municipality_id"),Airesis.select2town(t),t.change(function(){return $("#edit_event_"+EventsEdit.eventId).formValidation("revalidateField",t)})},initMapManager:(i=this,function(){var t,e;return EventsEdit.placeDefined?(e=new google.maps.LatLng(EventsEdit.latitudeOriginal,EventsEdit.longitudeOriginal),t=new google.maps.LatLng(EventsEdit.latitudeCenter,EventsEdit.longitudeCenter),EventsEdit.mapManager=new Airesis.MapManager("edit_map_canvas",e,t,i.zoom)):EventsEdit.mapManager=new Airesis.MapManager("edit_map_canvas")})}}.call(this),function(){window.EventsIndex={init:function(){var t;if($(".create_event").on("click",function(){var i;return(i=$("#create_event_dialog")).empty(),i.append($(".choose_event_type").clone().show()),$(".event_model_option",i).click(function(){var t,e;t=$(".choose_event_type",i),e=$(this).data("id"),t.hide(1e3,function(){t.remove(),i.append(EventsIndex.loadingFragment),$.ajax({url:EventsIndex.newEventUrl,data:{event_type_id:e},dataType:"script"})})}),i.foundation("reveal","open",{closeOnBackgroundClick:!1,closeOnEsc:!1}),!1}),$(window).resize(function(){$("#calendar").fullCalendar("option","height",$(window).height()-170)}),t={editable:!0,height:$(window).height()-185,header:{left:"today prev,next",center:"title",right:"list,month,agendaWeek,agendaDay"},eventLimit:!0,views:{month:{eventLimit:4}},defaultView:"month",slotMinutes:15,events:EventsIndex.eventsUrl,columnFormat:{month:"ddd",week:"ddd M/D",day:"dddd"},axisFormat:"H:mm",dragOpacity:"0.5",eventDrop:function(t,e){return jQuery.ajax({data:{day_delta:e.days(),minute_delta:e.minutes()},dataType:"script",type:"post",url:"/events/"+t.id+"/move"})},eventResize:function(t,e){return jQuery.ajax({data:{day_delta:e.days(),minute_delta:e.minutes()},dataType:"script",type:"post",url:"/events/"+t.id+"/resize"})},eventClick:function(t){return window.location=t.url},eventRender:function(t,e){t.editable&&e.css("cursor","pointer")}},t=$.extend(t,EventsIndex.calendarI18n),t=EventsIndex.createEvent?$.extend(t,{dayClick:function(t){$.ajax({data:{starttime:t.valueOf(),has_time:t.hasTime(),event_type_id:EventsIndex.defaultEventType},url:EventsIndex.newEventUrlClick,dataType:"script"})}}):$.extend(t,{disableDragging:!0,disableResizing:!0}),$("#calendar").fullCalendar(t),EventsIndex.autoOpen)return $.ajax({url:EventsIndex.autoOpenUrl,dataType:"script"})}}}.call(this),function(){var r=function(t,e){return function(){return t.apply(e,arguments)}};Airesis.MapManager=function(){function t(t,e,i,n){var s,a;this.putMarker=r(this.putMarker,this),this.mapField=r(this.mapField,this),this.listenZoomChanged=r(this.listenZoomChanged,this),this.listenCenterChanged=r(this.listenCenterChanged,this),this.listenMarkerPosition=r(this.listenMarkerPosition,this),this.basename="event_meeting_attributes_place_attributes_",this.geocoder=new google.maps.Geocoder,this.latlng=null!=e?e:new google.maps.LatLng(42.407235,14.260254),this.center=null!=i?i:this.latlng,this.zoom=null!=n?n:8,this.mapCanvasId=t,this.myOptions={zoom:this.zoom,center:this.center,mapTypeId:google.maps.MapTypeId.ROADMAP,panControl:!0,streetViewControl:!1,mapTypeControl:!1},this.map=new google.maps.Map(document.getElementById(this.mapCanvasId),this.myOptions),this.markerCache={},this.marker=new google.maps.Marker({map:this.map,position:this.latlng,draggable:!0}),google.maps.event.addListener(this.marker,"dragend",this.listenMarkerPosition),google.maps.event.addListener(this.map,"center_changed",this.listenCenterChanged),google.maps.event.addListener(this.map,"zoom_changed",this.listenZoomChanged),this.mapField("municipality_id").on("change",(s=this,function(){return s.codeAddress()})),this.mapField("address").on("keyup",(a=this,function(){return a.codeAddress()}))}return t.prototype.listenMarkerPosition=function(){var t;return t=this.marker.getPosition(),this.mapField("latitude_original").val(t.lat()),this.mapField("longitude_original").val(t.lng())},t.prototype.listenCenterChanged=function(){var t;return t=this.map.getCenter(),this.mapField("latitude_center").val(t.lat()),this.mapField("longitude_center").val(t.lng())},t.prototype.listenZoomChanged=function(){return this.mapField("zoom").val(this.map.getZoom())},t.prototype.mapField=function(t){return $("#"+this.basename+t)},t.prototype.putMarker=function(i){var n;void 0===this.markerCache[i]?($(".loading_place").show(),this.geocoder.geocode({address:i},(n=this,function(t,e){if(e===google.maps.GeocoderStatus.OK)return n.markerCache[i]=t,n.posizionaMappa(t[0].geometry.location,t[0].geometry.viewport),n.listenMarkerPosition(),$(".loading_place").hide()}))):this.listenMarkerPosition()},t.prototype.codeAddress=function(){var i;Airesis.delay((i=this,function(){var t,e;null!==(e=$("#event_meeting_attributes_place_attributes_municipality_id").find(":selected").text())&&(t=e+", "+i.mapField("address").val(),i.putMarker(t))}),600)},t.prototype.posizionaMappa=function(t,e){return this.map.setCenter(t),this.marker.setPosition(t),this.map.fitBounds(e)},t.prototype.refresh=function(){return google.maps.event.trigger(this.map,"resize"),this.map.setCenter(this.latlng)},t}()}.call(this),function(){window.EventsNew={init:function(){var n;return(n=$("#new_event")).steps({headerTag:".legend",bodyTag:".step",autoFocus:!0,labels:{
37previous:'<i class="fa fa-arrow-left"></i>'+Airesis.i18n.buttons.goBack,next:Airesis.i18n.buttons.next+'<i class="fa fa-arrow-right"></i>',finish:Airesis.i18n.buttons.eventsFinish},onStepChanging:function(){var t,e,i;return e=n.data("formValidation"),t=n.find(".step.current"),e.validateContainer(t),!(!1===(i=e.isValidContainer(t))||null===i)},onStepChanged:function(){return setTimeout(function(){EventsEdit.votation||EventsNew.mapManager.refresh()},1e3)},onFinishing:function(){var t,e,i;return e=n.data("formValidation"),t=n.find(".step.current"),e.validateContainer(t),!(!1===(i=e.isValidContainer(t))||null===i)},onFinished:function(){return n.formValidation("defaultSubmit")},onInit:function(){return n.find('[role="menuitem"]').addClass("btn").addClass("blue")}}),$('#create_event_dialog:not(".open")').foundation("reveal","open",{closeOnBackgroun
37dClick:!1,closeOnEsc:!1}),start_end_fdatetimepicker($("#event_starttime"),$("#event_endtime")),this.initMunicipalityInput(),this.initMapManager(),new AiresisFormValidation(n)},initMunicipalityInput:function(){var t;return t=$("#event_meeting_attributes_place_attributes_municipality_id"),Airesis.select2town(t),t.change(function(){return $("#new_event").formValidation("revalidateField",t)})},initMapManager:function(){if(!EventsEdit.votation)return EventsNew.mapManager=new Airesis.MapManager("create_map_canvas")}}}.call(this),function(){window.EventsShow={init:function(){if(!this.votation)return this.latlng=new google.maps.LatLng(EventsShow.latitudeOriginal,EventsShow.longitudeOriginal),this.center=this.latlng,this.myOptions={zoom:this.zoom,center:this.center,mapTypeId:google.maps.MapTypeId.ROADMAP,panControl:!1,streetViewControl:!1,mapTypeControl:!0,draggable:!0},this.map=new google.maps.Map(document.getElementById("map_canvas"),this.myOptions),this.marker=new google.maps.Marker({map:this.map,position:this.latlng,draggable:!1})}}}.call(this),function(){window.ModsShow={init:function(){return $("#frm_user_id").select2({ajax:{url:ModsShow.autocompleteUrl,dataType:"json",data:function(t){return{term:t.term,l:Airesis.i18n.locale,pp:"disable"}},processResults:function(t){return{results:t}},cache:!0},templateResult:ModsShow.format,templateSelection:ModsShow.format})},format:function(t){return t.id?$("<span>"+t.image_path+t.identifier+"</span>"):t.text}},window.MembersAdd=window.ModsShow}.call(this),function(){window.PostsEdit={init:function(){var t,e;return t="frm_post_text",(e=CKEDITOR.instances[t]).on("change",function(){return e.updateElement(),$(t).closest("form").formValidation("revalidateField","frm_post[text]")})}},window.PostsUpdate=window.PostsEdit}.call(this),function(){window.PostsNew={init:function(){var t;return(t=CKEDITOR.instances.frm_post_text).on("change",function(){return t.updateElement(),console.log("init"),$("form").formValidation("revalidateField","frm_post[text]")})}},window.PostsCreate=window.PostsNew}.call(this),function(){window.TopicsNew={init:function(){var t,e;return t=$("#new_frm_topic"),(e=CKEDITOR.instances.frm_topic_posts_attributes_0_text).on("change",function(){return e.updateElement(),t.formValidation("revalidateField","frm_topic[posts_attributes][0][text]")})}},window.TopicsCreate=window.TopicsNew}.call(this),function(){window.GroupsIndex={init:function(){return GroupsIndex.everPushedSomething=!1,GroupsIndex.initialUrl=location.href,this.initInterestBorder(),$(window).bind("popstate",function(){var t;t=!GroupsIndex.everPushedSomething&&location.href===GroupsIndex.initialUrl,GroupsIndex.everPushedSomething=!0,t||$.getScript(addQueryParam(location.href,"back","true"))}),this.initSwitchButtons()},checkCharacters:function(){return 2<$("#search").val().length||""!==$("#interest_border").val()||(alert(Airesis.i18n.groups.queryOrPlace),!1)},initSwitchButtons:function(){return $("#area").switchButton({checked:GroupsIndex.areaParam,on_label:$('<div class="switch_opt s_circle"></div>'),off_label:$('<div class="switch_opt s_circle"><div class="i_circle"></div></div>'),on_title:Airesis.i18n.groups.exactBorder,off_title:Airesis.i18n.groups.areaBorder}),$("#and").switchButton({checked:GroupsIndex.andParam,on_label:$('<div class="switch_opt">&</div>'),off_label:$('<div class="switch_opt">||</div>'),on_title:Airesis.i18n.groups.allWords,off_title:Airesis.i18n.groups.oneWord}),$(".switch-button-label.on, .switch-button-label.off").qtip({prerender:!0,position:{at:"top center",my:"bottom center",viewport:$(window),effect:!1},style:{classes:"qtip-dark"}})},initInterestBorder:function(){var t;return(t=$("#interest_border")).tokenInput("/interest_borders.json",{propertyToSearch:"text",crossDomain:!1,prePopulate:t.data("pre"),hintText:Airesis.i18n.interestBorders.hintText,noResultsText:Airesis.i18n.interestBorders.noResultsText,searchingText:Airesis.i18n.interestBorders.searchingText,preventDuplicates:!0,tokenLimit:1,allowTabOut:!0})}}}.call(this),function(){window.ParticipationRolesIndex={init:function(){return $(document).on("click","[data-action-abilitation]",function(){return $(this).closest("form").submit()})}}}.call(this),function(){window.ProposalsEdit={integrated_contributes:[],safe_exit:!1,currentPage:0,currentView:3,contributes:[],checkActive:!1,ckedstoogle_:{},init:function(){var t,i,e,n,s,a,r,o,l,h,d,c;for(n in!(ProposalsEdit.integrated_contributes=[]),window.onbeforeunload=this.check_before_exit,$(document).on("keyup",".solution_main h3 .tit1 .tit2 input",function(){var t,e;t=$(this).closest(".solution_main").attr("data-solution_id"),e=$(this).val()?$(this).val():"&nbsp;",$(".navigator li[data-solution_id="+t+"] span.sol_title").html(e)}
37),$(document).on("keyup","input.edit_label",function(){var t;t=$(this).closest(".section_container").attr("data-section_id"),$(".navigator li[data-section_id="+t+"] a.sec_title").text($(this).val())}),$("#menu-left, #centerpanelextended").addClass("editing"),$("#proposal_proposal_category_id").select2({minimumResultsForSearch:-1,templateResult:formatCategory,templateSelection:formatCategory,escapeMarkup:function(t){return t}}),s=$("#proposal_vote_starts_at"),i=$("#proposal_vote_ends_at"),s.fdatetimepicker($.fn.fdatetimepicker.dates[Airesis.i18n.locale]).on("hide",function(t){var e;e=t.date,i.fdatetimepicker("setStartDate",e),i.fdatetimepicker("setDate",addMinutes(e,2880))}),i.fdatetimepicker($.fn.fdatetimepicker.dates[Airesis.i18n.locale]),s.fdatetimepicker("setStartDate",ProposalsEdit.voteStartsAt),i.fdatetimepicker("setStartDate",ProposalsEdit.voteEndsAt),(e=$("#proposal_interest_borders_tkn")).tokenInput("/interest_borders.json",{propertyToSearch:"text",crossDomain:!1,prePopulate:e.data("pre"),hintText:Airesis.i18n.interestBorders.hintText,noResultsText:Airesis.i18n.interestBorders.noResultsText,searchingText:Airesis.i18n.interestBorders.searchingText,preventDuplicates:!0}),(e=$("#proposal_tags_list"))&&e.tokenInput("/tags.json",{theme:"facebook",crossDomain:!1,prePopulate:ProposalsEdit.tags,allowFreeTagging:!0,minChars:3,hintText:Airesis.i18n.tags.hintText,searchingText:Airesis.i18n.tags.searchingText,preventDuplicates:!0,allowTabOut:!0,tokenValue:"name"}),$("[data-add-section]").on("click",(r=this,function(){return r.addSection(),!1})),$(document).on("click","[data-add-solution-section]",(o=this,function(){var t;return t=$(this).data("solution_id"),o.addSolutionSection(t),!1})),$("[data-add-solution]").on("click",(l=this,function(){return l.addSolution(),!1})),$(document).on("click","[data-remove-solution]",(h=this,function(){var t;return t=$(this).data("solution_id"),h.navigator.removeSolution(t),!1})),$(Airesis.SectionContainer.selector).each(function(){return new Airesis.SectionContainer(this).initCkEditor()}),CKEDITOR.instances)ProposalsEdit.ckedstoogle_[n]={first:!0},t=CKEDITOR.instances[n],ProposalsEdit.addEditorEvents(t);return $("[data-clean-fields=true]").on("click",(d=this,function(t){return d.updateSolutionSequences(),d.fillCleanFields(),d.setSubaction(t)}
37)),fitRightMenu(a=$(".suggestion_right")),a.bind("mousewheel DOMMouseScroll",function(t){if(matchMedia(Foundation.media_queries.medium).matches)return Airesis.scrollLock(a,t)}),this.fetchContributes(),$(document).on("click","[data-integrate-contribute]",function(){return ProposalsEdit.integrate_contribute(this)}),$(document).on("click","[data-close-edit-right-section]",(c=this,function(){return c.hideContributes(),!1})),$(document).on("click","[data-update-and-exit-proposal]",function(){return ProposalsEdit.updateProposal()}),$(document).on("click","[data-update-proposal]",function(){return ProposalsEdit.updateAndContinueProposal()}),this.navigator=new Airesis.ProposalNavigator},addEditorEvents:function(t){t.on("lite:init",function(t){var e;ProposalsEdit.ckedstoogle_[t.editor.name].first=!1,e=t.data.lite,(ProposalsEdit.ckedstoogle_[t.editor.name].editor=e).toggleShow(ProposalsEdit.ckedstoogle_[t.editor.name].state),e.setUserInfo({id:Airesis.id,name:Airesis.fullName})}),t.on("lite:showHide",function(t){ProposalsEdit.ckedstoogle_[t.editor.name].first||(ProposalsEdit.ckedstoogle_[t.editor.name].state=t.data.show)})},addEditor:function(t){var e;CKEDITOR.remove(CKEDITOR.instances[t]),e=CKEDITOR.replace(t,{toolbar:"proposal",language:Airesis.i18n.locale,customConfig:Airesis.assets.ckeditor.config_lite}),ProposalsEdit.ckedstoogle_[t]={first:!0},ProposalsEdit.addEditorEvents(e)},setSubaction:function(t){return $('[name="subaction"]').val($(t.target).data("type"))},fillCleanFields:function(){var t,e,i,n,s,a;if(n=$("#proposal_integrated_contributes_ids_list").val(),0<ProposalsEdit.contributesCount&&""===n&&!confirm(Airesis.i18n.proposals.edit.updateConfirm))return!1;try{for(i in i=void 0,CKEDITOR.instances)i=i,CKEDITOR.instances[i],a=$("#"+i),t=ProposalsEdit.getCleanContent(i),s=a.attr("name").replace("_dirty","").replace(/\[/g,"\\[").replace(/\]/g,"\\]"),$("[name="+s+"]").val(t)}catch(r){return e=r,console.error(e),console.error("error in parsing "+name),!1}return $(".update2").attr("disabled","disabled"),ProposalsEdit.safe_exit=!0},integrate_contribute:function(t){var e,i,n;i=$(t).data("integrate-contribute"),e=$("#comment"+i),n=e.find(".proposal_comment"),$(t).is(":checked")?(ProposalsEdit.integrated_contributes.push(i),e.fadeTo(400,.3),n.attr("data-height",n.outerHeight()),n.css("overflow","hidden"),n.animate({height:"52px"},400),e.find("[id^=reply]").each(function(){$(this).attr("data-height",$(this).outerHeight()),$(this).css("overflow","hidden"),$(this).animate({height:"0px"},400)})):(ProposalsEdit.integrated_contributes.splice(ProposalsEdit.integrated_contributes.indexOf(i),1),e.fadeTo(400,1),n.animate({height:n.attr("data-height")},400,"swing",function(){n.css("overflow","auto",function(){})}),e.find("[id^=reply]").each(function(){$(this).animate({height:$(this).attr("data-height")},400,"swing",function(){$(this).css("overflow","auto",function(){})})})),$("#proposal_integrated_contributes_ids_list").val(ProposalsEdit.integrated_contributes)},fetchContributes:function(){return ProposalsEdit.currentPage++,$.ajax({url:ProposalsEdit.contributesUrl,data:{disable_limit:!0,page:ProposalsEdit.currentPage,view:ProposalsEdit.currentView,contributes:ProposalsEdit.contributes,all:!0},type:"get",dataType:"script",complete:function(){return $("#loading_contributes").hide()}})},hideContributes:function(){var t;return(t=$(".suggestion_right")).hasClass("contributes_shown")?(t.removeClass("contributes_shown"),t.hide(),$("#centerpanelextended").removeClass("contributes_shown"),$("#menu-left").removeClass("contributes_shown")):(t.addClass("contributes_shown"),t.show(),$("#centerpanelextended").addClass("contributes_shown"),$("#menu-left").addClass("contributes_shown")),switchText($(".contributes:visible")),!1},updateProposal:function(){return"disabled"!==$(".update2").attr("disabled")&&$("form input:submit[data-type='save']").click(),!1},updateAndContinueProposal:function(){return"disabled"!==$(".update3").attr("disabled")&&$("form input:submit[data-type='continue']").click(),!1},scrollToSection:function(t){return scrollToElement($(".section_container[data-section_id="+$(t).parent().parent().attr("data-section_id")+"]")),!1},toggleSolutions:function(t){return $(".solution_main").each(function(){return new Airesis.SolutionContainer($(this)).toggle(t)}),!1},check_before_exit:function(){if(!ProposalsEdit.safe_exit)return"Tutte le modifiche alla proposta andranno perse."},getCleanContent:function(t){var e;return(e=CKEDITOR.instances[t]).plugins.lite.findPlugin(e)._tracker.getCleanContent()},calculateDataId:function(t,e){return 100*(t+1)+e},updateSequences:function(){return $(".sections_column, .solutions_column").each(function(){var t;
37return t=0,$(this).find(Airesis.SectionContainer.selector).each(function(){return new Airesis.SectionContainer($(this)).setSeq(t++)})})},updateSolutionSequences:function(){var t;return t=0,$(".solution_main").each(function(){return new Airesis.SolutionContainer($(this)).setSeq(t++)})},addSection:function(){var t,e,i;i=Airesis.i18n.proposals.edit.paragraph+" "+(ProposalsEdit.sectionsCount+1),e=ProposalsEdit.sectionsCount,t=$(Mustache.render($("#section_template").html(),{section:{id:e,seq:e+1,removeSection:Airesis.i18n.proposals.edit.removeSection,title:i,paragraphId:"",content:"",contentDirty:"",persisted:!1}})),$(".sections_column").append(t),t.fadeIn(),new Airesis.SectionContainer(t).initCkEditor(),this.navigator.addSectionNavigator(e,i),ProposalsEdit.sectionsCount+=1},addSolutionSection:function(t){var e,i,n,s;return i=ProposalsEdit.numSolutionSections[t],s=Airesis.i18n.proposals.edit.paragraph+" "+(i+1),e=ProposalsEdit.calculateDataId(parseInt(t),i),n=$(Mustache.render($("#solution_section_template").html(),{section:{idx:i,data_id:e,seq:i+1,removeSection:Airesis.i18n.proposals.edit.removeSection,title:s,paragraphId:"",content:"",contentDirty:"",persisted:!1},solution:{id:t}})),$(".solutions_column[data-solution_id="+t+"]").append(n),$(".solution_main[data-solution_id="+t+"]").css("height",""),n.fadeIn(),new Airesis.SectionContainer(n).initCkEditor(),this.navigator.addSolutionSectionNavigator(t,e,s),ProposalsEdit.numSolutionSections[t]+=1},addSolution:function(){var t,e;return jQuery.each(ProposalsEdit.mustacheSections,function(t,e){return e.solution.id=ProposalsEdit.solutionsCount,e.section.data_id=ProposalsEdit.calculateDataId(ProposalsEdit.solutionsCount,e.section.idx)}),t={solution:{id:ProposalsEdit.solutionsCount,seq:ProposalsEdit.fakeSolutionsCount,persisted:!0,title_placeholder:Airesis.i18n.proposals.edit.titlePlaceholder,solution_title:Airesis.i18n.proposals.edit.solutionTitle,title:"",removeSolution:Airesis.i18n.proposals.edit.removeSolution,addParagraph:Airesis.i18n.proposals.edit.addParagraph,sections:ProposalsEdit.mustacheSections}},(e=$(Mustache.render($("#solution_template").html(),t,{"proposals/_solution_section":$("#solution_section_template").html()}))).find(".title_placeholder .num").html(ProposalsEdit.fakeSolutionsCount+1),$("[data-hook='new-solution']").before(e),e.fadeIn(),e.find(Airesis.SectionContainer.selector).each(function(t,e){return new Airesis.SectionContainer(e).initCkEditor()}),this.navigator.addSolutionNavigator(ProposalsEdit.solutionsCount),ProposalsEdit.numSolutionSections[ProposalsEdit.solutionsCount]=e.find(".section_container").length,ProposalsEdit.solutionsCount++,ProposalsEdit.fakeSolutionsCount++},geocode_panel:function(){}},window.ProposalsUpdate=window.ProposalsEdit}.call(this),function(){window.ProposalsIndex={init:function(){return $('[name="time[start_w]"],[name="time[end_w]"]').fdatetimepicker({format:$.fn.fdatetimepicker.defaults.dateFormat}),$(".creation_date").each(function(){var t,e;return null!=ProposalsIndex.timeFilter?(t=$(this).find(".hidden_menu a[data-type="+ProposalsIndex.timeFilter.type+"]"),e="f"===ProposalsIndex.timeFilter.type?ProposalsIndex.timeFilter.start_w+" - "+ProposalsIndex.timeFilter.end_w:t.text()):e=(t=$(this).find(".hidden_menu a[data-type=w]")).text(),$(this).find(".hidden_link b").text(e),t.addClass("checked")}),$("html").click(function(){return $(".hidden_menu").hide(),$(".hidden_link.visible").removeClass("visible")}),$(".hidden_link").click(function(t){return $(this).addClass("visible"),$(this).next().show().position({my:"right top",at:"right bottom",of:$(this)}),t.stopPropagation()}),$(".interest_borders").select2({placeholder:Airesis.i18n.interestBorders.hintText,allowClear:!0,ajax:{url:"/interest_borders",dataType:"json",delay:250,data:function(t){return{q:t.term,l:Airesis.i18n.locale,pp:"disable"}},processResults:function(t){return{results:t}},cache:!0},escapeMarkup:function(t){return t},minimumInputLength:1}).on("change",function(){return this.closest("form").submit()})}}}.call(this),function(){Airesis.ProposalNavigator=function(){function t(){var t,e,i,n,s,a,r,o,l,h,d;this.navigators=$(".navigator"),this.solution_navigators=this.navigators.find(".sol_nav"),this.section_navigators=this.navigators.find(".sec_nav"),this.solution_section_navigators=this.navigators.find(".sec_nav.sol"),this.move_up_selector=".move_up",this.move_down_selector=".move_down",this.remove_selector=".remove",$(document).on("click","[data-scroll-to-section]",function(){return ProposalsEdit.scrollToSection(this)}),this.solution_navigators.on("click",function(t){var e;if(this===t.target)return $(this).toggleClass("expanded"),$(this).children("ul").toggle(),(e=new Airesis.SolutionContainer($(this).data("solution_id"))).toggle(!e.element.data("compressed"))}
37),$("[data-navigator-expand]").click((t=this,function(){return t.toggleSolutionNavigators(!0)})),$("[data-navigator-collapse]").click((e=this,function(){return e.toggleSolutionNavigators(!1)})),this.navigators.on("click",".sec_nav:not(.sol) "+this.move_up_selector,(i=this,function(){return i.moveUpSection($(this))})),this.navigators.on("click",".sec_nav:not(.sol) "+this.move_down_selector,(n=this,function(){return n.moveDownSection($(this))})),this.navigators.on("click",".sec_nav:not(.sol) "+this.remove_selector,(s=this,function(){return s.removeSection($(this))})),this.navigators.on("click",".sec_nav.sol "+this.move_up_selector,(a=this,function(){return a.moveUpSection($(this))})),this.navigators.on("click",".sec_nav.sol "+this.move_down_selector,(r=this,function(){return r.moveDownSection($(this))})),this.navigators.on("click",".sec_nav.sol "+this.remove_selector,(o=this,function(){return o.removeSection($(this))})),this.navigators.on("click",".sol_nav .sol.move_up",(l=this,function(){return l.moveUpSolution($(this))})),this.navigators.on("click",".sol_nav .sol.move_down",(h=this,function(){return h.moveDownSolution($(this))})),this.navigators.on("click",".sol_nav .sol.remove",(d=this,function(){return d.removeSolution($(this).parent().data("solution_id"))}))}return t.prototype.collapsed_solution_navigators=function(){return this.solution_navigators.filter(".collapsed")},t.prototype.toggleSolutionNavigators=function(t){return this.collapsed_solution_navigators().toggleClass("expanded",t),this.collapsed_solution_navigators().children("ul").toggle(t),ProposalsEdit.toggleSolutions(!t)},t.prototype.getSectionActionSubject=function(t){var e;return e=t.data("section_id"),new Airesis.SectionContainer(e)},t.prototype.getSolutionActionSubject=function(t){var e;return e=t.data("solution_id"),new Airesis.SolutionContainer(e)},t.prototype.moveDownNavigatorElement=function(t){var e;return e=t.next(),t.before(e)},t.prototype.moveUpNavigatorElement=function(t){var e;return e=t.prev(),t.after(e)},t.prototype.moveUpSection=function(t){var e;return e=t.parent(),this.moveUpNavigatorElement(e),this.getSectionActionSubject(e).moveUp()},t.prototype.moveDownSection=function(t){var e;return e=t.parent(),this.moveDownNavigatorElement(e),this.getSectionActionSubject(e).moveDown()},t.prototype.removeSection=function(t){var e;if(e=t.parent(),this.getSectionActionSubject(e).remove())return e.remove()},t.prototype.moveUpSolution=function(t){var e;return e=t.parent(),this.moveUpNavigatorElement(e),this.getSolutionActionSubject(e).moveUp()},t.prototype.moveDownSolution=function(t){var e;return e=t.parent(),this.moveDownNavigatorElement(e),this.getSolutionActionSubject(e).moveDown()},t.prototype.removeSolution=function(t){if(new Airesis.SolutionContainer(t).remove())return this.solution_navigators.filter("[data-solution_id="+t+"]").remove()},t.prototype.addSectionNavigator=function(t,e){var i;return i=$(Mustache.render($("#section_navigator_template").html(),{i:t,title:e})),$(".navigator .sec_nav:not(.sol)").last().after(i)},t.prototype.addSolutionSectionNavigator=function(t,e,i){var n;return n=$(Mustache.render($("#section_navigator_template").html(),{classes:"sol",i:e,title:i})),$(".navigator li[data-solution_id="+t+"]").find(".sub_navigator").append(n)},t.prototype.addSolutionNavigator=function(t){var e,i,n,s,a,r,o;for(r=[],e=0,i=(n=new Airesis.SolutionContainer(t).sections).length;e<i;e++)s=n[e],a=new Airesis.SectionContainer(s),r.push({id:a.id,title:a.title,classes:"sol"});return o=$(Mustache.render($("#solution_navigator_template").html(),{classes:"sol",i:t,title:"&nbsp;",sections:r},{"proposals/_section_navigator":$("#section_navigator_template").html()})),$(".navigator.navsolutions").append(o)},t}()}
37.call(this),function(){window.ProposalsNew={skippedSuggestionStep:!1,groupId:null,init:function(){var t,e;return(e=$("#proposal_interest_borders_tkn")).tokenInput(Airesis.paths.interest_borders.index,{propertyToSearch:"text",crossDomain:!1,prePopulate:e.data("pre"),hintText:Airesis.i18n.interestBorders.hintText,noResultsText:Airesis.i18n.interestBorders.noResultsText,searchingText:Airesis.i18n.interestBorders.searchingText,preventDuplicates:!0,allowTabOut:!0}),(e=$("#proposal_tags_list")).tokenInput(Airesis.paths.tags.index,{theme:"facebook",crossDomain:!1,allowFreeTagging:!0,minChars:3,hintText:Airesis.i18n.tags.hintText,searchingText:Airesis.i18n.tags.searchingText,preventDuplicates:!0,allowTabOut:!0,tokenValue:"name"}),$("#proposal_proposal_category_id").select2({minimumResultsForSearch:-1,templateResult:formatCategory,templateSelection:formatCategory,escapeMarkup:function(t){return t}}).on("select2:close",function(){return $("#new_proposal").formValidation("revalidateField","proposal[proposal_category_id]")}),t="proposal_sections_attributes_0_paragraphs_attributes_0_content",void 0===CKEDITOR.instances[t]&&CKEDITOR.replace(t,{toolbar:"proposal",language:Airesis.i18n.locale}),new Airesis.QuorumSelector}}
37,window.ProposalsCreate=window.ProposalsNew}.call(this),function(){Airesis.SectionContainer=function(){function t(t){t instanceof HTMLElement?this.element=$(t):t instanceof jQuery?this.element=t:this.element=$(Airesis.SectionContainer.selector).filter("[data-section_id="+t+"]"),this.id=this.element.data("section_id"),this.seqField=this.element.find("[data-section-seq]"),this.titleField=this.element.find("[name$='[title]']"),this.title=this.titleField.val(),this.destroyField=this.element.find("[data-section-destroy]"),this.editor=this.element.find("textarea[name$='[content_dirty]']")}return t.selector=".section_container",t.prototype.persisted=function(){return this.element.data("persisted")},t.prototype.destroyCkEditor=function(){return CKEDITOR.instances[this.editor.attr("id")].destroy()},t.prototype.initCkEditor=function(){var t;return t=CKEDITOR.replace(this.editor.attr("id"),{toolbar:"proposal",language:Airesis.i18n.locale,customConfig:Airesis.assets.ckeditor.config_lite}),this.addEditorEvents(t)},t.prototype.addEditorEvents=function(t){t.on("lite:init",function(t){var e;(e=t.data.lite).toggleShow(!0),e.setUserInfo({id:Airesis.id,name:Airesis.fullName})}),t.on("lite:showHide",function(){})},t.prototype.exchange=function(t,e){var i;return(i=new Airesis.SectionContainer(t)).destroyCkEditor(),this.destroyCkEditor(),e.apply(),this.initCkEditor(),i.initCkEditor(),ProposalsEdit.updateSequences()},t.prototype.moveUp=function(){var t,e;return t=this.element.prevAll(Airesis.SectionContainer.selector).first(),this.exchange(t,(e=this,function(){return e.element.after(t)}))},t.prototype.moveDown=function(){var t,e;return t=this.element.nextAll(Airesis.SectionContainer.selector).first(),this.exchange(t,(e=this,function(){return e.element.before(t)}))},t.prototype.remove=function(){return!!confirm(Airesis.i18n.proposals.edit.removeSectionConfirm)&&(this.persisted()?(this.destroyField.val(1),this.element.fadeOut()):this.element.fadeOut(function(){return this.element.remove()}),ProposalsEdit.updateSequences(),!0)},t.prototype.setSeq=function(t){return this.seqField.val(t)},t}()}
37.call(this),function(){window.ProposalsShow={voting:!1,abandoned:!1,contributesUrl:"",rightlistUrl:"",clicked:null,contributes:[],nicknames:[],checkActive:!1,currentView:3,currentPage:0,proposalId:null,openShare:!1,contributeMaxLength:0,times:{},firstCheck:!1,init:function(){if(this.currentView=Airesis.signed_in?1:3,$('[data-scroll-to="vote_panel"]').on("click",function(){return ProposalsShow.scroll_to_vote_panel()}),$(document).on("click","[data-cancel-edit-comment]",function(){return ProposalsShow.cancel_edit_comment($(this).data("cancel-edit-comment")),!1}),$(document).on("click","[data-edit-contribute]",function(){return ProposalsShow.edit_contribute($(this).data("edit-contribute")),!1}),$(document).on("click","[data-history-contribute]",function(){return ProposalsShow.history_contribute($(this).data("history-contribute")),!1}),$(document).on("click","[data-report-contribute]",function(){return ProposalsShow.report_contribute($(this).data("report-contribute")),!1}),$(document).on("click","[data-close-section-id]",function(){return ProposalsShow.close_right_contributes($(".contribute-button[data-section_id="+$(this).data("close-section-id")+"]")),!1}),$(document).on("click","[data-close-edit-right-section]",function(){return hideContributes(),!1}),$(document).on("ajax:beforeSend",".vote_comment",function(){return $(this).parent().find(".vote_comment").hide(),$(this).parent().find(".loading").show()}),$(document).on("ajax:beforeSend",".icon-sad-change",function(){var t;return t=$(this).data("id"),$(this).parent().find(".vote_comment").hide(),$(this).parent().find(".loading").show(),$(".reply_textarea[data-id="+t+"]").focus().attr("placeholder",Airesis.i18n.rankdown_reason).effect("highlight",{},3e3)}),$(document).ajaxError(function(t,e){if(401===e.status)return window.location.replace(Airesis.new_user_session_path)}),this.voting?new Airesis.ProposalVotationManager:(this.currentPage++,$.ajax({url:this.contributesUrl,dataType:"script",data:{page:this.currentPage,view:this.currentView,contributes:this.contributes,comment_id:Airesis.show_comment_id},type:"get",complete:function(){return $("#loading_contributes").hide()}})),this.voted&&matchMedia(Foundation.media_queries.medium).matches&&$(".results-button")[0].click(),$("img.cke_iframe").each(function(){var t;return t=$(this).data("cke-realelement"),$(this).after($(unescape(t))),$(this).remove()}),this.init_text_areas(),this.init_contributes_button(),this.init_countdowns(),this.initVotePeriodSelect(),this.abandoned&&new Airesis.QuorumSelector,Airesis.show_section_id&&$(".contribute-button[data-section_id="+Airesis.show_section_id+"]").trigger("click",[Airesis.show_comment_id]),""!==this.openShare)return $("#promote_proposal").click()},init_text_areas:function(){return $("[data-contribute-area]").each(function(){if(1!==$(this).attr("data-initialized"))return $(this).textntags({triggers:{"@":{uniqueTags:!1}},onDataRequest:function(t,e,i,n){var s,a;return s=ProposalsShow.nicknames,e=e.toLowerCase(),a=_.filter(s,function(t){return-1<t.name.toLowerCase().indexOf(e)}),n.call(this,a)}}),$(this).charCount({allowed:ProposalsShow.contributeMaxLength,warning:100,counterText:Airesis.i18n.proposals.charactersLeft}),$(this).attr("data-initialized",1)})},scroll_to_vote_panel:function(){return scrollToElement($(".vote_panel")),!1},contribute:function(t){return $("#proposal_comment_section_id").val(t),Airesis.viewport.animate({scrollTop:$("#proposal_comment_content").offset().top-150},2e3,function(){return $("#proposal_comment_content").focus(),$("#comment-form-comment").effect("highlight",{},3e3)}),Airesis.viewport.bind("scroll mousedown DOMMouseScroll mousewheel keyup",function(t){if(matchMedia(Foundation.media_queries.medium).matches&&0<t.which||"mousedown"===t.type||"mousewheel"===t.type)return Airesis.viewport.stop().unbind("scroll mousedown DOMMouseScroll mousewheel keyup")}),!1},edit_contribute:function(t){return close_all_dropdown(),$.ajax({dataType:"script",type:"get",url:"/proposals/"+this.proposalId+"/proposal_comments/"+t+"/edit"}),!1},cancel_edit_comment:function(t){if(confirm("Are you sure?"))return $(".proposalComment[data-id="+t+"] .edit_panel").fadeOut(function(){return $(this).remove(),$(".proposalComment[data-id="+t+"] .baloon-content").fadeIn()})},history_contribute:function(t){return close_all_dropdown(),$.ajax({dataType:"script",type:"get",url:"/proposals/"+this.proposalId+"/proposal_comments/"+t+"/history"}),!1},report_contribute:function(t){return $("#report_contribute_id").val(t),$("input[name=reason]").removeAttr("checked"),$("#report_contribute").foundation("reveal","open"),close_all_dropdown()},checkScroll:function(){if(!this.voting)return nearBottomOfPage()&&this.checkActive?(this.checkActive=!1,this.currentPage++,$.ajax({url:this.contributesUrl,dataType:"script",data:{page:this.currentPage,view:this.currentView,contributes:this.contributes},type:"get"}
37)):setTimeout("ProposalsShow.checkScroll()",250)},open_right_contributes:function(t,e){var i,n,s;if(s=t.attr("data-section_id"),t.attr("data-status",1),$("#suggest").show(),t.parent().find(".tria").show(),t.parent().addClass("sel"),$(".text",t).text(Airesis.i18n.proposals.closeContributes),hideLeftPanel(),fitRightMenu(n=$(".suggestion_right[data-section_id="+s+"]")),$(".suggestion_right[data-section_id="+s+"]").fadeIn(),t.next().show(),e)return i=$("#comment"+e+" .proposal_comment"),n.animate({scrollTop:i.offset().top-100},2e3),i.effect("highlight",{},3e3)},close_right_contributes:function(t){var e;return e=t.attr("data-section_id"),t.attr("data-status",2),$(".suggestion_right[data-section_id="+e+"]").hide(),t.parent().find(".tria").hide(),$(".text",t).text(Airesis.i18n.proposals.showGiveContributes).append(" ("+t.attr("data-unread_contributes_num")+"/"+t.attr("data-contributes_num")+")"),$("#menu-left").removeClass("contributes_shown"),$("#centerpanelextended").removeClass("contributes_shown"),$(".suggestion_right[data-section_id="+e+"]").removeClass("contributes_shown"),t.next().hide()},reload_page:function(){return toastr.options={tapToDismiss:!1,extendedTimeOut:0,timeOut:0},toastr.info('<div>This page is outdate.<br/>Please reload the page.<br/><a href="" class="btn" style="color: #444">Reload</a></div>')},init_contributes_button:function(){return $(".contribute-button").click(function(t,e){var i,n,s,a;return n=(s=$(this)).attr("data-section_id"),a=s.attr("data-status"),$(".contribute-button").each(function(){var t,e;if(e=$(this).attr("data-status"),t=$(this).attr("data-section_id"),s[0]!==this&&"1"===e)return $(this).attr("data-status","2"),$(".suggestion_right[data-section_id="+t+"]").hide(),$(this).parent().find(".tria").hide(),$(".text",this).text(Airesis.i18n.proposals.showGiveContributes).append(" ("+$(this).attr("data-unread_contributes_num")+"/"+$(this).attr("data-contributes_num")+")"),$(this).next().hide()}),$(".suggest .tria").hide(),$(".suggest").removeClass("sel"),"0"===a?($(this).attr("data-status","1"),$("#suggest").show(),$(this).parent().find(".tria").show(),$(this).parent().addClass("sel"),$(".text",this).text(Airesis.i18n.proposals.closeContributes),hideLeftPanel(),(i=$('<div data-section_id="'+n+'"class="suggestion_right"></div>')).append('<div style="margin:auto;text-align:center;">'+Airesis.loadingImageTag+"<br/><b>"+Airesis.i18n.proposals.loadingContributes+"</b></div>"),$("#centerpanelextended").append(i),fitRightMenu(i),$(this).next().show(),$.ajax({url:ProposalsShow.rightListUrl,data:{comment_id:e,section_id:n,disable_limit:!0,view:Airesis.signed_in?1:3},type:"get",dataType:"script",complete:function(){return $(".loading",i).hide()},error:function(t){if($(".loading",i).hide(),"404"===t.status)return $(i).html(Airesis.i18n.proposals.errorLoadingParagraph)}}),$(".suggestion_right").bind("mousewheel DOMMouseScroll",function(t){if(matchMedia(Foundation.media_queries.medium).matches)return Airesis.scrollLock(this,t)}),scrollToElement($(".proposal_main[data-section_id="+n+"]"))):"2"===a?(ProposalsShow.open_right_contributes($(this),e),scrollToElement($(".proposal_main[data-section_id="+n+"]"))):null!=e?($("#comment"+e+" .proposal_comment"),n=$(this).attr("data-section_id"),scrollToElement($(".proposal_main[data-section_id="+n+"]"))):ProposalsShow.close_right_contributes($(this)),!1})},
38destroy_countdowns:function(){return $(".date-creation").each(function(){return $(this).countdown("destroy")}),$(".date-update").countdown("destroy"),$(".end-debate").countdown("destroy"),$(".end-vote").countdown("destroy")},init_countdowns:function(){var t,e,i,n;if(t=new Date(1e3*ProposalsShow.times.created_at),$(".date-creation").each(function(){return $(this).countdown($.extend({since:t,significant:1,format:"YODHMS",layout:"{y<}{yn} {yl}{y>} {o<}{on} {ol}{o>} {d<}{dn} {dl}{d>} {h<}{hn} {hl}{h>} {m<}{mn} {ml}{m>}"},$.countdown.regionalOptions[Airesis.i18n.locale]))}),n=new Date(1e3*ProposalsShow.times.updated_at),$(".date-update").countdown($.extend({since:n,significant:1,format:"YODHMS",layout:Airesis.i18n.countdown.layout2},$.countdown.regionalOptions[Airesis.i18n.locale])),e=new Date(1e3*ProposalsSh
38ow.times.ends_at),$(".end-debate").countdown($.extend({until:e,significant:3,onExpiry:ProposalsShow.reload_page,description:ProposalsShow.times.descriptions.ends_at},$.countdown.regionalOptions[Airesis.i18n.locale])),ProposalsShow.voting)return i=new Date(1e3*ProposalsShow.times.vote_ends_at),$(".end-vote").countdown($.extend({until:i,significant:3,description:ProposalsShow.times.descriptions.vote_ends_at},$.countdown.regionalOptions[Airesis.i18n.locale]))},initVotePeriodSelect:function(){return $("#proposal_vote_period_id").select2({minimumResultsForSearch:-1,templateResult:formatPeriod,templateSelection:formatPeriod,escapeMarkup:function(t){return t}})}}}.call(this),function(){Airesis.SolutionContainer=function(){function t(t){this.id=t,this.id instanceof jQuery?(this.element=this.id,this.id=this.element.data("solution_id")):this.element=$(Airesis.SolutionContainer.selector).filter("[data-solution_id='"+this.id+"']"),this.destroyField=this.element.find("[data-solution-destroy]"),this.seqField=this.element.find("[name='proposal[solutions_attributes]["+this.id+"][seq]']"),this.titleField=this.element.find("[name$='proposal[solutions_attributes]["+this.id+"][title]']"),this.sections=this.element.find(Airesis.SectionContainer.selector)}return t.selector=".solution_main",t.prototype.persisted=function(){return this.element.data("persisted")},t.prototype.moveUp=function(){var t;return t=this.element.prevAll(Airesis.SolutionContainer.selector).first(),this.element.after(t),ProposalsEdit.updateSolutionSequences()},t.prototype.moveDown=function(){var t;return t=this.element.nextAll(Airesis.SolutionContainer.selector).first(),this.element.before(t),ProposalsEdit.updateSolutionSequences()},t.prototype.remove=function(){return!!confirm(Airesis.i18n.proposals.edit.removeSolutionConfirm)&&(this.persisted?(this.destroyField.val(1),this.element.fadeOut()):this.element.fadeOut(function(){return this.element.remove()}),this.element.nextUntil(null,Airesis.SolutionContainer.selector).each(function(){var t,e,i;return i=$(this).attr("data-solution_id"),$(this).find("textarea").attr("id"),e=$("[name^='proposal[solutions_attributes]["+i+"][seq]']"),t=parseInt(e.val()),$(this).find(".title_placeholder .num").html(t-1)}),ProposalsEdit.fakeSolutionsCount--,!0)},t.prototype.setSeq=function(t){return this.seqField.val(t)},t.prototype.isCompressed=function(){return!0===this.element.data("compressed")},t.prototype.toggle=function(t){return!this.element.is(":animated")&&(t?this.hide():this.show())},t.prototype.show=function(){var t,e;return t=500,e="swing",!this.element.is(":animated")&&(this.isCompressed()?(this.element.data("compressed",!1),this.element.animate({height:this.element.attr("data-height")},t,e,function(){}),this.element.find(".sol_content").show()):void 0)},t.prototype.hide=function(){var t,e,i;return t=500,e="swing",i=100,!this.element.is(":animated")&&(this.isCompressed()?void 0:(this.element.data("compressed",!0),this.element.attr("data-height",this.element.height()),this.element.find(".sol_content").hide(),this.element.animate({height:i},t,e,function(){})))},t}()}.call(this),function(){Airesis.ProposalVotationManager=function(){function t(){this._initSolutionScrollAndTips(),this._initSchulzeVoteButton(),this._initVoteButton(),this._initSortable()}return t.prototype._initVoteButton=function(){return $(".votebutton").on("click",function(){var t,e;return t=(e=$(this).data("vote-type"))===Airesis.i18n.proposals.vote.positive?Airesis.i18n.proposals.vote.confirm_positive:e===Airesis.i18n.proposals.vote.neutral?Airesis.i18n.proposals.vote.confirm_neutral:Airesis.i18n.proposals.vote.confirm_negative,confirm(t)&&($("#data_vote_type").val(e),$(".votebutton").fadeOut(),$(".vote_panel form").fadeOut(),$(".loading_vote").show(),$(".vote_panel form").submit()),!1})},t.prototype._initSchulzeVoteButton=function(){return $("#schulze-submit").on("click",function(){var n;return n="",$(".vote-items").each(function(t,e){var i;return!(i=$(e).find(".vote-item")).length||(""!==n&&(n+=";"),i.each(function(t,e){return 0!==t&&(n+=","),n+=$(e).data("id")}))}),$("#data_votes").val(n),!0})},t.prototype._initSolutionScrollAndTips=function(){return $(".vote_solution_title").each(function(){return $(this).on("click",function(){return scrollToElement($(".solution_main[data-solution_id="+$(this).parent().data("id")+"]")),!1}),$(this).qtip({content:$(".proposal_content[data-id="+$(this).parent().data("id")+"]").clone()})})},t.prototype._initSortable=function(){return $(".vote-items").each((i=this,function(t,e){return i._checkBoxSiblings($(e).parent()),i._initSortableBox(e)}));var i},t.prototype._checkBoxSiblings=function(t){var e,i,n;return i=t.nextAll(".vote-items-external"),n=t.prevAll(".vote-items-external"),i.length?this._destroyBoxes(i):(e=this._buildBox(),t.after(e),this._initSortableBox(e.find(".vote-items")[0])),n.length?this._destroyBoxes(n):(e=this._buildBox(),t.before(e),this._initSortableBox(e.find(".vote-items")[0])),this._countBoxes()},t.prototype._initSortableBox=function(t){var i;return Sortable.create(t,{group:"vote",animation:150,onAdd:(i=this,function(t){var e;return e=$(t.to).parent(),i._checkBoxSiblings(e)})})},t.prototype._buildBox=function(){var t,e;return(e=$("<div>").attr("class","vote-items-external")).append('<span class="label primary">'),t=$("<div>
38").attr("class","vote-items"),e.append(t),e},t.prototype._destroyBoxes=function(t){var i;return i=!0,t.each(function(t,e){return $(e).find(".vote-items").find(".vote-item").length?i=!0:i?!(i=!1):$(e).remove()})},t.prototype._countBoxes=function(){var t;return t=$(".vote-items-external"),$(t.get(-1)).find(".label").html("-"),t.splice(t.length-1,1),$(t.get(0)).find(".label").html("+"),t.splice(0,1),t.each(function(t,e){return $(e).find(".label").html(t+1)})},t}()}.call(this),function(){window.ProposalsVoteResults={init:function(){return this.showVoteResults,$("[data-plot]").each(function(){var t;return t=[[ProposalsVoteResults.positive,$(this).data("positive")],[ProposalsVoteResults.neutral,$(this).data("neutral")],[ProposalsVoteResults.negative,$(this).data("negative")]],ProposalsVoteResults.plot1=$.jqplot("vote-results-chart",[t],{seriesColors:["#4bb2c5","#c5b47f","#EAA228"],seriesDefaults:{renderer:jQuery.jqplot.PieRenderer,rendererOptions:{showDataLabels:!0}},legend:{show:!1,location:"e"}}),$(document).on("opened.fndtn.reveal","[data-reveal]",function(){return ProposalsVoteResults.plot1.replot()})})},showVoteResults:function(){return $("#votes_table").dataTable({oLanguage:{sLengthMenu:"Mostra _MENU_ utenti per pagina",sSearch:"Cerca:",sZeroRecords:"Nessun utente, spiacente..",sInfo:"Sto mostrando da _START_ a _END_ di _TOTAL_ utenti",sInfoEmpty:"Sto mostrando 0 utenti",sInfoFiltered:"(filtrati da un totale di _MAX_ utenti)",oPaginate:{sPrevious:"Pagina precedente",sNext:"Pagina successiva"}}}),$("#votes_table_wrapper label").css("font-weight","normal").css("font-size","12px"),$("#cast_table").dataTable({oLanguage:{sLengthMenu:"Mostra _MENU_ voti per pagina",sSearch:"Cerca:",sZeroRecords:"Nessun voto, spiacente..",sInfo:"Sto mostrando da _START_ a _END_ di _TOTAL_ voti",sInfoEmpty:"Sto mostrando 0 voti",sInfoFiltered:"(filtrati da un totale di _MAX_ voti)",oPaginate:{sPrevious:"Pagina precedente",sNext:"Pagina successiva"}},bFilter:!1}),$("#cast_table_wrapper label").css("font-weight","normal").css("font-size","12px")}}}.call(this),function(){window.QuorumsDates={init:function(){return $("[data-start-votation]").on("dblclick",function(){return QuorumsDates.changeStart()}),$('[name="proposal[votation][choise]"]').change(function(){return"preset"===$(this).val()?($(".choise_b .inner").css("opacity",.6),$(".choise_a .inner").css("opacity",1)):($(".choise_b .inner").css("opacity",1),$(".choise_a .inner").css("opacity",.6))}),$(".radiolabel").click(function(){return $("#"+$(this).attr("for")).click()}),$("#proposal_votation_vote_period_id").select2({minimumResultsForSearch:-1,templateResult:formatPeriod,templateSelection:formatPeriod,escapeMarkup:function(t){return t}}),$("#proposal_votation_vote_period_id").on("select2-focus",function(){return $("#proposal_votation_choise_preset").click()}),$("#proposal_votation_end").fdatetimepicker(),$("#proposal_votation_start").fdatetimepicker().on("hide",function(t){var e;return e=t.date,$("#proposal_votation_end").fdatetimepicker("setStartDate",e),$("#proposal_votation_end").fdatetimepicker("setDate",addMinutes(e,2880)),showOnField($("#proposal_votation_end"),Airesis.i18n.datepicker.changed),$("#proposal_votation_choise_new").click()}),$("#choose_votation .cancel_action").click(function(){return $("#start_preset").show(),$("#start_choose").hide(),$("#proposal_votation_start_edited").val(null)}),$("#later").click(function(){var t;return"true"===(t=$("#proposal_votation_later")).val()?($("#choose_votation .inner").show(),t.val("false")):($("#choose_votation .inner").hide(),t.val("true")),switchText($(this)),!1})},changeStart:function(){return $("#start_preset").hide(),$("#start_choose").show(),$("#proposal_votation_start_edited").val("true")}}}.call(this),function(){window.QuorumsIndex={init:function(){return $("[data-quorum-check]").on("click",function(){return QuorumsIndex.switchOption($(this),"/groups/"+QuorumsIndex.groupId+"/quorums/"+$(this).data("quorum-check")+"/change_status")}),$("[data-change-default-anonimity]").on("click",function(){return QuorumsIndex.switchOption($(this),QuorumsIndex.changeDefaultAnonimityUrl)}),$("[data-change-default-visible-outside]").on("click",function(){return QuorumsIndex.switchOption($(this),QuorumsIndex.changeDefaultVisibleOutsideUrl)}),$("[data-change-default-secret-vote]").on("click",function(){return QuorumsIndex.switchOption($(this),QuorumsIndex.changeDefaultSecretVoteUrl)}),$("[data-change-default-advanced-options]").on("click",function(){return QuorumsIndex.switchOption($(this),QuorumsIndex.changeDefaultAdvancedOptionsUrl)})},switchOption:function(t,e){var i;return i=t.is(":checked"),$.ajax({data:{active:i},url:e,dataType:"script",type:"post"})}}}.call(this),function(){Airesis.QuorumSelector=function(){function t(){var l;(l=$("#proposal_quorum_id")).select2({minimumResultsForSearch:-1,templateResult:formatQuorum,templateSelection:formatQuorumSelection,escapeMarkup:function(t){return t}}),l.on("change",function(t){var a,e,i,n,r,s,o;return(i=$(t.currentTarget)).closest("form").formValidation("revalidateField",i),e=(s=l.find("option:selected")).data("explanation"),o=s.data("time_fixed"),r=s.data("minutes"),n=s.val(),e?$("#quorum_explanation").html(e).show():$("#quorum_explanation").hide(),a=$("#choose_votation"),o?$.ajax({url:Airesis.paths.quorums.dates,data:{id:n,group_id:Airesis.groupId},success:function(){var t,e,i,n,s;return a.show(),e=addMinutes(n=upperMinutes(addMinutes(new Date,parseInt(r)+Airesis.debateVoteDifference),5),10),s=addMinutes(n,2880),i=$("#proposal_votation_start"),t=$("#proposal_votation_end"),a.find(".start_vot").html(Airesis.i18n.proposals.debate.end+" ("+dateToString(n)+")"),i.fdatetimepicker("setStartDate",n),i.fdatetimepicker("setDate",n),t.fdatetimepicker("setStartDate",e),t.fdatetimepicker("setDate",s)}}):a.hide()})}return t}()}.call(this),function(){window.TagsIndex={init:function(){return $("[data-tag-cloud] a").qtip({position:{at:"bottom center",my:"top center"},style:{classes:"qtip-light qtip-shadow"}})}}}.call(this),function(){window.TutorialsIndex={init:function(){return $("#table").dataTable()}}}.call(this),function(){window.UsersAlarmPreferences={init:function(){return $("[data-change-notification-block]").on("click",function(){return UsersAlarmPreferences.change_notification_block(this)}),$("[data-change-email-notification-block]").on("click",function(){return UsersAlarmPreferences.change_email_notification_block(this)}),$("[data-change-email-block]").on("click",function(){return UsersAlarmPreferences.change_email_block(this)})},change_notification_block:function(t){var e;return e=!t.checked,$.ajax({url:"/notifications/change_notification_block",dataType:"script",data:{id:t.value,block:e},type:"post"}),t.checked?$("#block_email_"+t.value).removeAttr("disabled").removeAttr("title"):$("#block_email_"+t.value).attr("disabled",!0).attr("title","Devi attivare la notifica per ricevere l'email")},change_email_notification_block:function(t){var e;return e=!t.checked,$.ajax({url:"/notifications/change_email_notification_block",dataType:"script",data:{id:t.value,block:e},type:"post"})},change_email_block:function(t){var e;return e=!t.checked,$.ajax({url:"/notifications/change_email_block",dataType:"script",data:{block:e},type:"post"})}}}.call(this),function(){window.UsersBorderPreferences={init:function(){var t;return(t=$("#user_interest_borders_tokens")).tokenInput("/interest_borders.json",{propertyToSearch:"text",crossDomain:!1,prePopulate:t.data("pre"),hintText:Airesis.i18n.interestBorders.hintText,noResultsText:Airesis.i18n.interestBorders.noResultsText,searchingText:Airesis.i18n.interestBorders.searchingText,preventDuplicates:!0})}}}.call(this),function(){window.UsersShow={init:function(){return $("[data-participation-tooltip]").each(function(){return $(this).qtip({content:$(this).next("[data-participation-tooltip-text]"),position:{viewport:$("#main-copy")}})}),$("#participation_table").dataTable({bPaginate:!1,bFilter:!1,bSearchable:!1,bInfo:!1,aaSorting:[[2,"desc"]],aoColumns:[null,null,{iDataSort:3},{bVisible:!1},null]})}}}.call(this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Mustache=e()}(this,function(){"use strict";function d(t){return"function"==typeof t}function s(t){return I(t)?"array":typeof t}function S(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function l(t,e){return null!=t&&"object"==typeof t&&e in t}function h(t,e){return null!=t&&"object"!=typeof t&&t.hasOwnProperty&&t.hasOwnProperty(e)}function e(t,e){return a.call(t,e)}function k(t){return!e(c,t)}function t(t){return String(t).replace(/[&<>"'`=\/]/g,function e(t){return u[t]})}function r(t,e){function i(){if(c&&!u)for(;d.length;)delete h[d.pop()];else d=[];u=c=!1}function n(t){if("string"==typeof t&&(t=t.split(M,2)),!I(t)||2!==t.length)throw new Error("Invalid tags: "+t);s=new RegExp(S(t[0])+"\\s*"),a=new RegExp("\\s*"+S(t[1])),r=new RegExp("\\s*"+S("}"+t[1]))}if(!t)return[];var s,a,r,o=!1,l=[],h=[],d=[],c=!1,u=!1,p="",f=0;n(e||R.tags);for(var g,m,v,_,b,y,w=new A(t);!w.eos();){if(g=w.pos,v=w.scanUntil(s))for(var x=0,C=v.length;x<C;++x)k(_=v.charAt(x))?(d.push(h.length),p+=_):(o=u=!0,p+=" "),h.push(["text",_,g,g+1]),g+=1,"\n"===_&&(i(),p="",f=0,o=!1);if(!w.scan(s))break;if(c=!0,m=w.scan(P)||"name",w.scan(E),"="===m?(v=w.scanUntil(F),w.scan(F),w.scanUntil(a)):"{"===m?(v=w.scanUntil(r),w.scan(j),w.scanUntil(a),m="&"):v=w.scanUntil(a),!w.scan(a))throw new Error("Unclosed tag at "+w.pos);if(b=">"==m?[m,v,g,w.pos,p,f,o]:[m,v,g,w.pos],f++,h.push(b),"#"===m||"^"===m)l.push(b);else if("/"===m){if(!(y=l.pop()))throw new Error('Unopened section "'+v+'" at '+g);if(y[1]!==v)throw new Error('Unclosed section "'+y[1]+'" at '+g)}else"name"===m||"{"===m||"&"===m?u=!0:"="===m&&n(v)}if(i(),y=l.pop())throw new Error('Unclosed section "'+y[1]+'" at '+w.pos);return D(T(h))}function T(t){for(var e,i,n=[],s=0,a=t.length;s<a;++s)(e=t[s])&&("text"===e[0]&&i&&"text"===i[0]?(i[1]+=e[1],i[3]=e[3]):(n.push(e),i=e));return n}function D(t){for(var e,i=[],n=i,s=[],a=0,r=t.length;a<r;++a)switch((e=t[a])[0]){case"#":case"^":n.push(e),s.push(e),n=e[4]=[];break;case"/":s.pop()[5]=e[2],n=0<s.length?s[s.length-1][4]:i;break;default:n.push(e)}return i}function A(t){this.string=t,this.tail=t,this.pos=0}function o(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function i(){this.templateCache={_cache:{},set:function i(t,e){this._cache[t]=e},get:function e(t){return this._cache[t]},clear:function t(){this._cache={}}}}var n=Object.prototype.toString,I=Array.isArray||function f(t){return"[object Array]"===n.call(t)},a=RegExp.prototype.test,c=/\S/,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},E=/\s*/,M=/\s+/,F=/\s*=/,j=/\s*\}/,P=/#|\^|\/|>|\{|&|=|!/;A.prototype.eos=function g(){return""===this.tail},A.prototype.scan=function m(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var i=e[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},A.prototype.scanUntil=function v(t){var e,i=this.tail.search(t);switch(i){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,i),this.tail=this.tail.substring(i)}return this.pos+=e.length,e},o.prototype.push=function _(t){return new o(t,this)},o.prototype.lookup=function b(t){var e,i=this.cache;if(i.hasOwnProperty(t))e=i[t];else{for(var n,s,a,r=this,o=!1;r;){if(0<t.indexOf("."))for(n=r.view,s=t.split("."),a=0;null!=n&&a<s.length;)a===s.length-1&&(o=l(n,s[a])||h(n,s[a])),n=n[s[a++]];else n=r.view[t],o=l(r.view,t);if(o){e=n;break}r=r.parent}i[t]=e}return d(e)&&(e=e.call(this.view)),e},i.prototype.clearCache=function y(){"undefined"!=typeof this.templateCache&&this.templateCache.clear()},i.prototype.parse=function w(t,e){var i=this.templateCache,n=t+":"+(e||R.tags).join(":"),s=void 0!==i,a=s?i.get(n):undefined;return a==undefined&&(a=r(t,e),s&&i.set(n,a)),a},i.prototype.render=function x(t,e,i,n){var s=this.parse(t,n),a=e instanceof o?e:ne
38w o(e,undefined);return this.renderTokens(s,a,i,t,n)},i.prototype.renderTokens=function C(t,e,i,n,s){for(var a,r,o,l="",h=0,d=t.length;h<d;++h)o=undefined,"#"===(r=(a=t[h])[0])?o=this.renderSection(a,e,i,n):"^"===r?o=this.renderInverted(a,e,i,n):">"===r?o=this.renderPartial(a,e,i,s):"&"===r?o=this.unescapedValue(a,e):"name"===r?o=this.escapedValue(a,e):"text"===r&&(o=this.rawValue(a)),o!==undefined&&(l+=o);return l},i.prototype.renderSection=function H(t,e,i,n){function s(t){return a.render(t,e,i)}var a=this,r="",o=e.lookup(t[1]);if(o){if(I(o))for(var l=0,h=o.length;l<h;++l)r+=this.renderTokens(t[4],e.push(o[l]),i,n);else if("object"==typeof o||"string"==typeof o||"number"==typeof o)r+=this.renderTokens(t[4],e.push(o),i,n);else if(d(o)){if("string"!=typeof n)throw new Error("Cannot use higher-order sections without the original template");null!=(o=o.call(e.view,n.slice(t[3],t[5]),s))&&(r+=o)}else r+=this.renderTokens(t[4],e,i,n);return r}},i.prototype.renderInverted=function L(t,e,i,n){var s=e.lookup(t[1]);if(!s||I(s)&&0===s.length)return this.renderTokens(t[4],e,i,n)},i.prototype.indentPartial=function N(t,e,i){for(var n=e.replace(/[^ \t]/g,""),s=t.split("\n"),a=0;a<s.length;a++)s[a].length&&(0<a||!i)&&(s[a]=n+s[a]);return s.join("\n")},i.prototype.renderPartial=function q(t,e,i,n){if(i){var s=d(i)?i(t[1]):i[t[1]];if(null!=s){var a=t[6],r=t[5],o=t[4],l=s;return 0==r&&o&&(l=this.indentPartial(s,o,a)),this.renderTokens(this.parse(l,n),e,i,l,n)}}},i.prototype.unescapedValue=function $(t,e){var i=e.lookup(t[1]);if(null!=i)return i},i.prototype.escapedValue=function O(t,e){var i=e.lookup(t[1]);if(null!=i)return R.escape(i)},i.prototype.rawValue=function z(t){return t[1]};var R={name:"mustache.js",version:"4.0.1",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(t){p.templateCache=t},get templateCache(){return p.templateCache}},p=new i;return R.clearCache=function y(){return p.clearCache()},R.parse=function w(t,e){return p.parse(t,e)},R.render=function x(t,e,i,n){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+s(t)+'" was given as the first argument for mustache#render(template, view, partials)');return p.render(t,e,i,n)},R.escape=t,R.Scanner=A,R.Context=o,R.Writer=i,R}),function(){$(function(){return $(".language.footer").qtip({position:{at:"top center",my:"bottom center",viewport:$(window)},style:{classes:"qtip-shadow qtip-light"},show:{event:"click mouseenter",solo:!0},hide:{event:"click mouseleave"}}),$("#language").on("opened",function(){return $(this).find(".row a").qtip({style:{classes:"qtip-shadow qtip-light"},position:{at:"left center",my:"right center"}}),$(this).foundation("section","reflow")})})}.call(this),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var i=window.Cookies,n=window.Cookies=t();n.noConflict=function(){return window.Cookies=i,n}}}(function(){function m(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}function t(f){function g(t,e,i){var n;if("undefined"!=typeof document){if(1<arguments.length){if("number"==typeof(i=m({path:"/"},g.defaults,i)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():"";try{n=JSON.stringify(e),/^[\{\[]/.test(n)&&(e=n)}catch(p){}e=f.write?f.write(e,t):encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var a="";for(var r in i)i[r]&&(a+="; "+r,!0!==i[r]&&(a+="="+i[r]));return document.cookie=t+"="+e+a}t||(n={});for(var o=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,h=0;h<o.length;h++){var d=o[h].split("="),c=d.slice(1).join("=");this.json||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=d[0].replace(l,decodeURIComponent);if(c=f.read?f.read(c,u):f(c,u)||c.replace(l,decodeURIComponent),this.json)try{c=JSON.parse(c)}catch(p){}if(t===u){n=c;break}t||(n[u]=c)}catch(p){}}return n}}return(g.set=g).get=function(t){return g.call(g,t)},g.getJSON=function(){return g.apply({json:!0},[].slice.call(arguments))},g.defaults={},g.remove=function(t,e){g(t,"",m(e,{expires:-1}))},g.withConverter=t,g}return t(function(){})});var windowIsTurbolinked="Turbolinks"in window,cookiesEu={init:function(){var t=document.querySelector(".js-cookies-eu-ok");t&&(this.addListener(t),windowIsTurbolinked&&window.Turbolinks.clearCache())},addListener:function(t){t.attachEvent?t.attachEvent("onclick",this.setCookie):t.addEventListener("click",this.setCookie,!1)}
38,setCookie:function(){var t="https:"===location.protocol;Cookies.set("cookie_eu_consented",!0,{path:"/",expires:365,secure:t});var e=document.querySelector(".js-cookies-eu");e.parentNode.removeChild(e)}};!function(){function t(t){return windowIsTurbolinked?"turbolinks:load":t}function e(){i&&!windowIsTurbolinked||(i=!0,cookiesEu.init())}var i=!1;if(document.addEventListener)return document.addEventListener(t("DOMContentLoaded"),e,!1);window.addEventListener?window.addEventListener(t("load"),e,!1):window.attachEvent&&window.attachEvent(t("onload"),e)}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.