function arrayToUrl(e){var t,i=[];for(t in e)i.push(t+"="+encodeURIComponent(e[t]));var n=i.join("&");if(""!=n)return"?"+n}function getObjectSize(e){let t=0;for(var i in e)t++;return t}function str_random(e){return Math.random().toString(36).substring(2,e+2)}function inArray(e,t){if(t)for(var i=t.length,n=0;n/g,">").replace(/"/g,""").replace(/'/g,"'")}function htmlSpecialCharsDecode(e){var t={"&":"&","&":"&","<":"<",">":">",""":'"',"'":"'","’":"’","‘":"‘","–":"–","—":"—","…":"…","”":"”"};return e.replace(/\&[\w\d\#]{2,5}\;/g,function(e){return t[e]})}function number_format(e,t,i,n){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var s,o,a,e=isFinite(+e)?+e:0,t=isFinite(+t)?Math.abs(t):0,n=void 0===n?",":n,i=void 0===i?".":i,r="";return 3<(r=(t?(o=t,(-1===(""+(s=e)).indexOf("e")?+(Math.round(s+"e+"+o)+"e-"+o):(0<+(s=((a="")+s).split("e"))[1]+o&&(a="+"),(+(Math.round(+s[0]+"e"+a+(+s[1]+o))+"e-"+o)).toFixed(o))).toString()):""+Math.round(e)).split("."))[0].length&&(r[0]=r[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,n)),(r[1]||"").length=i?$(t).parent().find(".sign_count").addClass("err_txt"):$(t).parent().find(".sign_count").removeClass("err_txt")}0+~]|"+i+")"+i+"*"),be=new RegExp(i+"|>"),we=new RegExp(o),xe=new RegExp("^"+e+"$"),ke={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+s),PSEUDO:new RegExp("^"+o),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+ge+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},Me=/^(?:input|select|textarea|button)$/i,De=/^h\d$/i,Te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Se=/[+~]/,h=new RegExp("\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\([^\\r\\n\\f])","g"),p=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},Ce=function(){Ee()},Le=Fe(function(e){return!0===e.disabled&&b(e,"fieldset")},{dir:"parentNode",next:"legend"});try{S.apply(t=r.call(n.childNodes),n.childNodes),t[n.childNodes.length].nodeType}catch(ne){S={apply:function(e,t){de.apply(e,r.call(t))},call:function(e){de.apply(e,r.call(arguments,1))}}}function Y(e,t,i,n){var s,o,a,r,l,d,u=t&&t.ownerDocument,h=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return i;if(!n&&(Ee(t),t=t||D,T)){if(11!==h&&(r=Te.exec(e)))if(s=r[1]){if(9===h){if(!(d=t.getElementById(s)))return i;if(d.id===s)return S.call(i,d),i}else if(u&&(d=u.getElementById(s))&&Y.contains(t,d)&&d.id===s)return S.call(i,d),i}else{if(r[2])return S.apply(i,t.getElementsByTagName(e)),i;if((s=r[3])&&t.getElementsByClassName)return S.apply(i,t.getElementsByClassName(s)),i}if(!(fe[e+" "]||c&&c.test(e))){if(d=e,u=t,1===h&&(be.test(e)||ye.test(e))){for((u=Se.test(e)&&Ie(t.parentNode)||t)==t&&m.scope||((a=t.getAttribute("id"))?a=M.escapeSelector(a):t.setAttribute("id",a=C)),o=(l=ze(e)).length;o--;)l[o]=(a?"#"+a:":scope")+" "+je(l[o]);d=l.join(",")}try{return S.apply(i,u.querySelectorAll(d)),i}catch(t){fe(e,!0)}finally{a===C&&t.removeAttribute("id")}}}return Be(e.replace(ee,"$1"),t,i,n)}function Ye(){var n=[];return function e(t,i){return n.push(t+" ")>w.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function A(e){return e[C]=!0,e}function Ae(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Le(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Oe(a){return A(function(o){return o=+o,A(function(e,t){for(var i,n=a([],e.length,o),s=n.length;s--;)e[i=n[s]]&&(e[i]=!(t[i]=e[i]))})})}function Ie(e){return e&&void 0!==e.getElementsByTagName&&e}function Ee(e){var e=e?e.ownerDocument||e:n;return e!=D&&9===e.nodeType&&e.documentElement&&(re=(D=e).documentElement,T=!M.isXMLDoc(D),le=re.matches||re.webkitMatchesSelector||re.msMatchesSelector,n!=D&&(e=D.defaultView)&&e.top!==e&&e.addEventListener("unload",Ce),m.getById=Ae(function(e){return re.appendChild(e).id=M.expando,!D.getElementsByName||!D.getElementsByName(M.expando).length}),m.disconnectedMatch=Ae(function(e){return le.call(e,"*")}),m.scope=Ae(function(){return D.querySelectorAll(":scope")}),m.cssHas=Ae(function(){try{return D.querySelector(":has(*,:jqfake)"),0}catch(e){return 1}}),m.getById?(w.filter.ID=function(e){var t=e.replace(h,p);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&T)return(t=t.getElementById(e))?[t]:[]}):(w.filter.ID=function(e){var t=e.replace(h,p);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var i,n,s,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(s=t.getElementsByName(e),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),w.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},w.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&T)return t.getElementsByClassName(e)},c=[],Ae(function(e){var t;re.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||c.push("\\["+i+"*(?:value|"+ge+")"),e.querySelectorAll("[id~="+C+"-]").length||c.push("~="),e.querySelectorAll("a#"+C+"+*").length||c.push(".#.+[+~]"),e.querySelectorAll(":checked").length||c.push(":checked"),(t=D.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),re.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&c.push(":enabled",":disabled"),(t=D.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||c.push("\\["+i+"*name"+i+"*="+i+"*(?:''|\"\")")}),m.cssHas||c.push(":has"),c=c.length&&new RegExp(c.join("|")),me=function(e,t){var i;return e===t?(ae=!0,0):!e.compareDocumentPosition-!t.compareDocumentPosition||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===i?e===D||e.ownerDocument==n&&Y.contains(n,e)?-1:t===D||t.ownerDocument==n&&Y.contains(n,t)?1:oe?y.call(oe,e)-y.call(oe,t):0:4&i?-1:1)}),D}for(ne in Y.matches=function(e,t){return Y(e,null,null,t)},Y.matchesSelector=function(e,t){if(Ee(e),T&&!fe[t+" "]&&(!c||!c.test(t)))try{var i=le.call(e,t);if(i||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){fe(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(h,p),e[3]=(e[3]||e[4]||e[5]||"").replace(h,p),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Y.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Y.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return ke.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&we.test(i)&&(t=(t=ze(i,!0))&&i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(h,p).toLowerCase();return"*"===e?function(){return!0}:function(e){return b(e,t)}},CLASS:function(e){var t=he[e+" "];return t||(t=new RegExp("(^|"+i+")"+e+"("+i+"|$)"))&&he(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(e){e=Y.attr(e,t);return null==e?"!="===i:!i||(e+="","="===i?e===n:"!="===i?e!==n:"^="===i?n&&0===e.indexOf(n):"*="===i?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Je(e,i,n){return v(i)?M.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?M.grep(e,function(e){return e===i!==n}):"string"!=typeof i?M.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/,Qe=((M.fn.init=function(e,t,i){if(e){if(i=i||Xe,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==i.ready?i.ready(e):e(M):M.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Ke.exec(e))||!n[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof M?t[0]:t,M.merge(this,M.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),Ge.test(n[1])&&M.isPlainObject(t))for(var n in t)v(this[n])?this[n](t[n]):this.attr(n,t[n])}else(i=k.getElementById(n[2]))&&(this[0]=i,this.length=1)}return this}).prototype=M.fn,Xe=M(k),/^(?:parents|prev(?:Until|All))/),Ze={children:!0,contents:!0,next:!0,prev:!0};function et(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}M.fn.extend({has:function(e){var t=M(e,this),i=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Dt=/^$|^module$|\/(?:java|ecma)script/i,s=k.createDocumentFragment().appendChild(k.createElement("div")),g=((o=k.createElement("input")).setAttribute("type","radio"),o.setAttribute("checked","checked"),o.setAttribute("name","t"),s.appendChild(o),m.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,s.innerHTML="",m.noCloneChecked=!!s.cloneNode(!0).lastChild.defaultValue,s.innerHTML="",m.option=!!s.lastChild,{thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]});function I(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&b(e,t)?M.merge([e],i):i}function Tt(e,t){for(var i=0,n=e.length;i",""]);var St=/<|&#?\w+;/;function Ct(e,t,i,n,s){for(var o,a,r,l,d,u=t.createDocumentFragment(),h=[],c=0,p=e.length;c\s*$/g;function zt(e,t){return b(e,"table")&&b(11!==t.nodeType?t:t.firstChild,"tr")&&M(e).children("tbody")[0]||e}function jt(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ft(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Nt(e,t){var i,n,s,o;if(1===t.nodeType){if(_.hasData(e)&&(o=_.get(e).events))for(s in _.remove(t,"handle events"),o)for(i=0,n=o[s].length;i").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(e){n.remove(),s=null,e&&t("error"===e.type?404:200,e.type)}),k.head.appendChild(n[0])},abort:function(){s&&s()}}});var tn=[],nn=/(=)\?(?=&|$)|\?\?/,sn=(M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||M.expando+"_"+Oi.guid++;return this[e]=!0,e}}),M.ajaxPrefilter("json jsonp",function(e,t,i){var n,s,o,a=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(nn,"$1"+n):!1!==e.jsonp&&(e.url+=(Ii.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return o||M.error(n+" was not called"),o[0]},e.dataTypes[0]="json",s=x[n],x[n]=function(){o=arguments},i.always(function(){void 0===s?M(x).removeProp(n):x[n]=s,e[n]&&(e.jsonpCallback=t.jsonpCallback,tn.push(n)),o&&v(s)&&s(o[0]),o=s=void 0}),"script"}),m.createHTMLDocument=((e=k.implementation.createHTMLDocument("").body).innerHTML="
",2===e.childNodes.length),M.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(m.createHTMLDocument?((n=(t=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,t.head.appendChild(n)):t=k),n=!i&&[],(i=Ge.exec(e))?[t.createElement(i[1])]:(i=Ct([e],t,n),n&&n.length&&M(n).remove(),M.merge([],i.childNodes)));var n},M.fn.load=function(e,t,i){var n,s,o,a=this,r=e.indexOf(" ");return-1").append(M.parseHTML(e)).find(n):e)}).always(i&&function(e,t){a.each(function(){i.apply(this,o||[e.responseText,t,e])})}),this},M.expr.pseudos.animated=function(t){return M.grep(M.timers,function(e){return t===e.elem}).length},M.offset={setOffset:function(e,t,i){var n,s,o,a,r=M.css(e,"position"),l=M(e),d={};"static"===r&&(e.style.position="relative"),o=l.offset(),n=M.css(e,"top"),a=M.css(e,"left"),r=("absolute"===r||"fixed"===r)&&-1<(n+a).indexOf("auto")?(s=(r=l.position()).top,r.left):(s=parseFloat(n)||0,parseFloat(a)||0),null!=(t=v(t)?t.call(e,i,M.extend({},o)):t).top&&(d.top=t.top-o.top+s),null!=t.left&&(d.left=t.left-o.left+r),"using"in t?t.using.call(e,d):l.css(d)}},M.fn.extend({offset:function(t){var e,i;return arguments.length?void 0===t?this:this.each(function(e){M.offset.setOffset(this,t,e)}):(i=this[0])?i.getClientRects().length?(e=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],s={top:0,left:0};if("fixed"===M.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===M.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((s=M(e).offset()).top+=M.css(e,"borderTopWidth",!0),s.left+=M.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-M.css(n,"marginTop",!0),left:t.left-s.left-M.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===M.css(e,"position");)e=e.offsetParent;return e||_t})}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,s){var o="pageYOffset"===s;M.fn[t]=function(e){return u(this,function(e,t,i){var n;if(z(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i)return n?n[s]:e[t];n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):e[t]=i},t,e,arguments.length)}}),M.each(["top","left"],function(e,i){M.cssHooks[i]=ii(m.pixelPosition,function(e,t){if(t)return t=ti(e,i),Qt.test(t)?M(e).position()[i]+"px":t})}),M.each({Height:"height",Width:"width"},function(a,r){M.each({padding:"inner"+a,content:r,"":"outer"+a},function(n,o){M.fn[o]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),s=n||(!0===e||!0===t?"margin":"border");return u(this,function(e,t,i){var n;return z(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+a],n["scroll"+a],e.body["offset"+a],n["offset"+a],n["client"+a])):void 0===i?M.css(e,t,s):M.style(e,t,i,s)},r,i?e:void 0,i)}})}),M.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){M.fn[t]=function(e){return this.on(t,e)}}),M.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),M.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){M.fn[i]=function(e,t){return 0 ul"),t=$(".carousel_arrs .arr_left img"),i=$(".carousel_arrs .arr_right img"),n=$(".carousel_content > ul > li").length,s=window.innerWidth;3e%2,this.disableLoopCheck=function(e){d.current_first_elem="left"===e?$(d.HTML_elements).first():$(d.HTML_elements).first().next(),$(d.current_first_elem).hasClass("first_element")?d.disable_loop_disable_arrows?$(d.HTML_arr_left).attr("disabled",!0).addClass("disabled"):$(d.HTML_arr_left).hide():d.disable_loop_disable_arrows?$(d.HTML_arr_left).attr("disabled",!1).removeClass("disabled"):$(d.HTML_arr_left).show(),!$(d.HTML_elements[1d.touch_start+60&&(d.turnLeft(),d.touch_clicked=0))}),$(d.HTML_box).on("mousemove",function(e){1==d.touch_clicked&&(e.clientXd.touch_start+60&&(d.turnLeft(),d.touch_clicked=0))})},this.pausePlayEvent=function(){d.pausePlayButtonEngine(),0d.dots_elements.length?0:d.current_dot++),d.move_block=1,clearTimeout(d.auto_move_timeout);let e=0,t=[];for(var n in d.HTML_elements)nd.dots_elements.length?d.dots_elements.length:d.current_dot--),d.move_block=1,clearTimeout(d.auto_move_timeout);let e=0,t=[];var n,s,o,a,r=d.HTML_elements.length,l=[];for(n in d.HTML_elements)n>=r-d.move_elements_count&&(s=d.HTML_elements[n],e+=$(s).outerWidth(),l.push(s),s=$(s).clone(),t.push(s));for(o in l.reverse())$(d.HTML_elements_parent).prepend(l[o]);for(a in t)$(d.HTML_elements_parent).append(t[a]);$(".page .tooltip_content").removeClass("active"),$(d.HTML_elements_parent).css({left:-1*e+"px"}),$(d.HTML_elements_parent).animate({left:0},500,function(){for(var e in t)$(t[e]).remove();d.prepareHtml(),d.move_block=0,d.touch_clicked=0,d.autoMoveTimer(),d.disableLoopCheck("left")}),d.changCurrentDot(),d.move_elements_count=i,d.click_dot=null}},this.autoMoveTimer=function(){!isNaN(d.auto_move_time_in_ms)&&0slajd numer '):$(d.HTML_box_dots).append('')}},this.getDotsElements=function(){d.HTML_box_dots&&(d.dots_elements=d.HTML_box_dots.find("button"),d.dots_elements.click(function(){d.click_dot=$(this).attr("slide-num"),d.getCurrentDot(),d.scrollElementToDot()}))},this.getCurrentDot=function(){d.HTML_box_dots&&(d.current_dot=d.HTML_box_dots.find(".on").attr("slide-num"))},this.scrollElementToDot=function(){d.click_dot>d.current_dot&&d.turnRight(),d.click_dot ul > li").length*$(this).find(".element_list > ul > li").outerWidth()<=$(this).find(".carousel_elements_parent").width()&&$(this).addClass("no_carousel")}),e.each(function(){$(this).find(".element_list > ul > li").length*$(this).find(".element_list > ul > li").outerWidth()<=$(this).find(".carousel_elements_parent").width()&&$(this).addClass("no_carousel")}),i.each(function(){$(this).find(".element_list > ul > li").length*$(this).find(".element_list > ul > li").outerWidth()<=$(this).find(".carousel_elements_parent").width()&&$(this).addClass("no_carousel")})}function Timer(e,t){var i,n,s=arguments,o=this;this.clear=function(){clearTimeout(i)},this.pause=function(){this.clear(),t-=new Date-n},this.resume=function(){n=new Date,i=setTimeout(function(){e.apply(o,Array.prototype.slice.call(s,2,s.length))},t)},this.resume()}function slider(e,t,i,n,s,o,a,r){var l=this;this.dot=o,this.dom_list=e,this.dom_left=n,this.dom_right=s,this.time=t,this.play=!0,this.anim_time=i,this.act=0,this.slides_count=0,this.anim_block=0,this.time_timer,this.init=function(){l.ustaw_slide(),l.arrow_click(),l.dot_click(),l.pauseAndPlayEvents()},this.arrow_click=function(){l.dom_left&&$(l.dom_left).click(function(){l.slajd_change(0)}),l.dom_right&&$(l.dom_right).click(function(){l.slajd_change(1)})},this.dot_click=function(){l.dot&&($(l.dot).eq(0).addClass("on"),$(l.dot).click(function(){var e=$(this).index();0==l.anim_block&&e!=l.act&&(l.slajd_timer(),l.anim_block=1,l.animSlajd(e))}))},this.pauseAndPlayEvents=function(){null!=r&&r&&null!=a&&a&&($(a).show(),$(r).hide(),$(a).click(function(){l.play=!1,l.time_timer.pause(),$(a).hide(),$(r).show()}),$(r).click(function(){l.play=!0,l.time_timer.resume(),$(a).show(),$(r).hide()}))},this.ustaw_slide=function(){l.slides_count=$(l.dom_list).length,l.slajd_timer()},this.slajd_timer=function(){void 0!==l.time_timer&&l.time_timer.clear(),l.time_timer=new Timer(function(){l.play?l.slajd_change(0):l.slajd_timer()},l.time)},this.slajd_change=function(e){var t;0==l.anim_block&&(l.slajd_timer(),l.anim_block=1,0==e?t=l.act==l.slides_count-1?0:l.act+1:1==e&&(t=0==l.act?l.slides_count-1:l.act-1),l.animSlajd(t))},$(l.dom_list).eq(0).addClass("active"),this.animSlajd=function(e){$(l.dot).eq(l.act).removeClass("on"),$(l.dot).eq(e).addClass("on"),$(l.dom_list).eq(l.act).removeClass("active").fadeOut(l.anim_time),$(l.dom_list).eq(e).addClass("active").fadeIn(l.anim_time,function(){l.act=e,l.anim_block=0})},l.init()}!function(){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||3this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):i==e?this.pause().cycle():this.slide(idocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var e,t=window.innerWidth;t||(t=(e=document.documentElement.getBoundingClientRect()).right-Math.abs(e.left)),this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},d.prototype.init=function(e,t,i){if(this.enabled=!0,this.type=e,this.$element=l(t),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&l(l.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var o,a=n[s];"click"==a?this.$element.on("click."+this.type,this.options.selector,l.proxy(this.toggle,this)):"manual"!=a&&(o="hover"==a?"mouseleave":"focusout",this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,l.proxy(this.leave,this)))}this.options.selector?this._options=l.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.getOptions=function(e){return(e=l.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},d.prototype.getDelegateOptions=function(){var i={},n=this.getDefaults();return this._options&&l.each(this._options,function(e,t){n[e]!=t&&(i[e]=t)}),i},d.prototype.enter=function(e){var t=e instanceof this.constructor?e:l(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),l(e.currentTarget).data("bs."+this.type,t)),e instanceof l.Event&&(t.inState["focusin"==e.type?"focus":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState)t.hoverState="in";else{if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)}},d.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},d.prototype.leave=function(e){var t=e instanceof this.constructor?e:l(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),l(e.currentTarget).data("bs."+this.type,t)),e instanceof l.Event&&(t.inState["focusout"==e.type?"focus":"hover"]=!1),!t.isInStateTrue()){if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)}},d.prototype.show=function(){var t,e,i,n,s,o,a,r=l.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(r),s=l.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!r.isDefaultPrevented())&&s&&(r=(t=this).tip(),s=this.getUID(this.type),this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade"),s="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,(a=(e=/\s?auto?\s?/i).test(s))&&(s=s.replace(e,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),e=this.getPosition(),i=r[0].offsetWidth,n=r[0].offsetHeight,a&&(a=s,o=this.getPosition(this.$viewport),s="bottom"==s&&e.bottom+n>o.bottom?"top":"top"==s&&e.top-no.width?"left":"left"==s&&e.left-io.top+o.height&&(a.top=o.top+o.height-n)):(e=t.left-s,n=t.left+s+i,eo.right&&(a.left=o.left+o.width-n))),a},d.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},d.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},d.prototype.tip=function(){if(this.$tip||(this.$tip=l(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},d.prototype.enable=function(){this.enabled=!0},d.prototype.disable=function(){this.enabled=!1},d.prototype.toggleEnabled=function(){this.enabled=!this.enabled},d.prototype.toggle=function(e){var t=this;e&&!(t=l(e.currentTarget).data("bs."+this.type))&&(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),l(e.currentTarget).data("bs."+this.type,t)),e?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},d.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var e=l.fn.tooltip;l.fn.tooltip=function(n){return this.each(function(){var e=l(this),t=e.data("bs.tooltip"),i="object"==typeof n&&n;!t&&/destroy|hide/.test(n)||(t||e.data("bs.tooltip",t=new d(this,i)),"string"==typeof n&&t[n]())})},l.fn.tooltip.Constructor=d,l.fn.tooltip.noConflict=function(){return l.fn.tooltip=e,this}}(jQuery),!function(s){"use strict";function o(e,t){this.init("popover",e,t)}if(!s.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.7",o.DEFAULTS=s.extend({},s.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((o.prototype=s.extend({},s.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),i=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=s.fn.popover;s.fn.popover=function(n){return this.each(function(){var e=s(this),t=e.data("bs.popover"),i="object"==typeof n&&n;!t&&/destroy|hide/.test(n)||(t||e.data("bs.popover",t=new o(this,i)),"string"==typeof n&&t[n]())})},s.fn.popover.Constructor=o,s.fn.popover.noConflict=function(){return s.fn.popover=e,this}}(jQuery),!function(s){"use strict";function n(e,t){this.$body=s(document.body),this.$scrollElement=s(e).is(document.body)?s(window):s(e),this.options=s.extend({},n.DEFAULTS,t),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s.proxy(this.process,this)),this.refresh(),this.process()}function t(i){return this.each(function(){var e=s(this),t=e.data("bs.scrollspy");t||e.data("bs.scrollspy",t=new n(this,"object"==typeof i&&i)),"string"==typeof i&&t[i]()})}n.VERSION="3.3.7",n.DEFAULTS={offset:10},n.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},n.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),s.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=s(this),e=e.data("target")||e.attr("href"),t=/^#./.test(e)&&s(e);return t&&t.length&&t.is(":visible")?[[t[i]().top+n,e]]:null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},n.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),n<=t)return a!=(e=o[o.length-1])&&this.activate(e);if(a&&t=s[e]&&(void 0===s[e+1]||t .active"),s=i&&a.support.transition&&(n.length&&n.hasClass("fade")||!!t.find("> .fade").length);function o(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}n.length&&s?n.one("bsTransitionEnd",o).emulateTransitionEnd(r.TRANSITION_DURATION):o(),n.removeClass("in")};function e(e){e.preventDefault(),t.call(a(this),"show")}var i=a.fn.tab;a.fn.tab=t,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=i,this};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),!function(a){"use strict";function r(e,t){this.options=a.extend({},r.DEFAULTS,t),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}function i(i){return this.each(function(){var e=a(this),t=e.data("bs.affix");t||e.data("bs.affix",t=new r(this,"object"==typeof i&&i)),"string"==typeof i&&t[i]()})}r.VERSION="3.3.7",r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0,target:window},r.prototype.getState=function(e,t,i,n){var s,o=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();return null!=i&&"top"==this.affixed?o>>0,n=0;nLe(e)?(o=e+1,t-Le(e)):(o=e,t);return{year:o,dayOfYear:i}}function Ve(e,t,i){var n,s,o=qe(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+Ge(s=e.year()-1,t,i):o>Ge(e.year(),t,i)?(n=o-Ge(e.year(),t,i),s=e.year()+1):(s=e.year(),n=o),{week:n,year:s}}function Ge(e,t,i){var n=qe(e,t,i),t=qe(e+1,t,i);return(Le(e)-n+t)/7}n("w",["ww",2],"wo","week"),n("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),i("week",5),i("isoWeek",5),w("w",y),w("ww",y,v),w("W",y),w("WW",y,v),De(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=h(e)}),n("d",0,"do","day"),n("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),n("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),n("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),n("e",0,0,"weekday"),n("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),i("day",11),i("weekday",11),i("isoWeekday",11),w("d",y),w("e",y),w("E",y),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),De(["dd","ddd","dddd"],function(e,t,i,n){n=i._locale.weekdaysParse(e,n,i._strict);null!=n?t.d=n:m(i).invalidWeekday=e}),De(["d","e","E"],function(e,t,i,n){t[n]=h(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qe=b,Ze=b,et=b;function tt(){function e(e,t){return t.length-e.length}for(var t,i,n,s=[],o=[],a=[],r=[],l=0;l<7;l++)n=d([2e3,1]).day(l),t=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),n=this.weekdays(n,""),s.push(t),o.push(i),a.push(n),r.push(t),r.push(i),r.push(n);for(s.sort(e),o.sort(e),a.sort(e),r.sort(e),l=0;l<7;l++)o[l]=ke(o[l]),a[l]=ke(a[l]),r[l]=ke(r[l]);this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function it(){return this.hours()%12||12}function nt(e,t){n(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}n("H",["HH",2],0,"hour"),n("h",["hh",2],0,it),n("k",["kk",2],0,function(){return this.hours()||24}),n("hmm",0,0,function(){return""+it.apply(this)+_(this.minutes(),2)}),n("hmmss",0,0,function(){return""+it.apply(this)+_(this.minutes(),2)+_(this.seconds(),2)}),n("Hmm",0,0,function(){return""+this.hours()+_(this.minutes(),2)}),n("Hmmss",0,0,function(){return""+this.hours()+_(this.minutes(),2)+_(this.seconds(),2)}),nt("a",!0),nt("A",!1),t("hour","h"),i("hour",13),w("a",st),w("A",st),w("H",y),w("h",y),w("k",y),w("HH",y,v),w("hh",y,v),w("kk",y,v),w("hmm",pe),w("hmmss",fe),w("Hmm",pe),w("Hmmss",fe),x(["H","HH"],T),x(["k","kk"],function(e,t,i){e=h(e);t[T]=24===e?0:e}),x(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),x(["h","hh"],function(e,t,i){t[T]=h(e),m(i).bigHour=!0}),x("hmm",function(e,t,i){var n=e.length-2;t[T]=h(e.substr(0,n)),t[S]=h(e.substr(n)),m(i).bigHour=!0}),x("hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[T]=h(e.substr(0,n)),t[S]=h(e.substr(n,2)),t[C]=h(e.substr(s)),m(i).bigHour=!0}),x("Hmm",function(e,t,i){var n=e.length-2;t[T]=h(e.substr(0,n)),t[S]=h(e.substr(n))}),x("Hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[T]=h(e.substr(0,n)),t[S]=h(e.substr(n,2)),t[C]=h(e.substr(s))});var ot,b=Pe("Hours",!0),at={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},months:ze,monthsShort:je,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Ke,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},Y={},rt={};function lt(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){var t;if(!Y[e]&&void 0!==gi&&gi&&gi.exports)try{t=ot._abbr,mi("./locale/"+e),ut(t)}catch(e){}return Y[e]}function ut(e,t){return(ot=e&&(e=o(t)?ct(e):ht(e,t))?e:ot)._abbr}function ht(e,t){if(null===t)return delete Y[e],null;var i=at;if(t.abbr=e,null!=Y[e])K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Y[e]._config;else if(null!=t.parentLocale){if(null==Y[t.parentLocale])return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;i=Y[t.parentLocale]._config}return Y[e]=new Z(Q(i,t)),rt[e]&&rt[e].forEach(function(e){ht(e.name,e.config)}),ut(e),Y[e]}function ct(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ot;if(!l(e)){if(t=dt(e))return t;e=[e]}for(var i,n,s,o,a=e,r=0;r=i&&G(o,n,!0)>=i-1)break;i--}r++}return null}function pt(e){var t=e._a;return t&&-2===m(e).overflow&&(t=t[M]<0||11Ee(t[k],t[M])?D:t[T]<0||24Ge(r,s,o)?m(u)._overflowWeeks=!0:null!=n?m(u)._overflowWeekday=!0:(a=Ue(r,l,i,s,o),u._a[k]=a.year,u._dayOfYear=a.dayOfYear)),null!=e._dayOfYear&&(h=ft(e._a[k],c[k]),(e._dayOfYear>Le(h)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Be(h,0,e._dayOfYear),e._a[M]=n.getUTCMonth(),e._a[D]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=c[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[T]&&0===e._a[S]&&0===e._a[C]&&0===e._a[Te]&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?Be:function(e,t,i,n,s,o,a){t=new Date(e,t,i,n,s,o,a);return e<100&&0<=e&&isFinite(t.getFullYear())&&t.setFullYear(e),t}).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((\-?\d+)/i;function xt(e){var t,i,n,s,o,a,r=e._i,l=gt.exec(r)||_t.exec(r);if(l){for(m(e).iso=!0,t=0,i=yt.length;t(o=Ge(e,n,s))&&(t=o),function(e,t,i,n,s){e=Ue(e,t,i,n,s),t=Be(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,i,n,s))}n(0,["gg",2],0,function(){return this.weekYear()%100}),n(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Jt("gggg","weekYear"),Jt("ggggg","weekYear"),Jt("GGGG","isoWeekYear"),Jt("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),i("weekYear",1),i("isoWeekYear",1),w("G",ye),w("g",ye),w("GG",y,v),w("gg",y,v),w("GGGG",ge,he),w("gggg",ge,he),w("GGGGG",_e,ce),w("ggggg",_e,ce),De(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=h(e)}),De(["gg","GG"],function(e,t,i,n){t[n]=p.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),w("Q",s),x("Q",function(e,t){t[M]=3*(h(e)-1)}),n("D",["DD",2],"Do","date"),t("date","D"),i("date",9),w("D",y),w("DD",y,v),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],D),x("Do",function(e,t){t[D]=h(e.match(y)[0])});ge=Pe("Date",!0),n("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),w("DDD",me),w("DDDD",ue),x(["DDD","DDDD"],function(e,t,i){i._dayOfYear=h(e)}),n("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),w("m",y),w("mm",y,v),x(["m","mm"],S),he=Pe("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),i("second",15),w("s",y),w("ss",y,v),x(["s","ss"],C);var Kt,_e=Pe("Seconds",!1);for(n("S",0,0,function(){return~~(this.millisecond()/100)}),n(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),n(0,["SSS",3],0,"millisecond"),n(0,["SSSS",4],0,function(){return 10*this.millisecond()}),n(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),n(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),n(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),n(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),n(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),w("S",me,s),w("SS",me,v),w("SSS",me,ue),Kt="SSSS";Kt.length<=9;Kt+="S")w(Kt,ve);function Qt(e,t){t[Te]=h(1e3*("0."+e))}for(Kt="S";Kt.length<=9;Kt+="S")x(Kt,Qt);ce=Pe("Milliseconds",!1),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName"),s=V.prototype;function Zt(e){return e}s.add=ze,s.calendar=function(e,t){var e=e||A(),i=zt(e,this).startOf("day"),i=p.calendarFormat(this,i)||"sameElse",t=t&&(c(t[i])?t[i].call(this,e):t[i]);return this.format(t||this.localeData().calendar(i,this,A(e)))},s.clone=function(){return new V(this)},s.diff=function(e,t,i){var n,s,o;if(!this.isValid())return NaN;if(!(n=zt(e,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),t=g(t)){case"year":o=Ut(this,n)/12;break;case"month":o=Ut(this,n);break;case"quarter":o=Ut(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-s)/864e5;break;case"week":o=(this-n-s)/6048e5;break;default:o=this-n}return i?o:u(o)},s.endOf=function(e){return void 0===(e=g(e))||"millisecond"===e?this:this.startOf(e="date"===e?"day":e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},s.format=function(e){e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat);e=le(this,e);return this.localeData().postformat(e)},s.from=function(e,t){return this.isValid()&&(a(e)&&e.isValid()||A(e).isValid())?P({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},s.fromNow=function(e){return this.from(A(),e)},s.to=function(e,t){return this.isValid()&&(a(e)&&e.isValid()||A(e).isValid())?P({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},s.toNow=function(e){return this.to(A(),e)},s.get=function(e){return c(this[e=g(e)])?this[e]():this},s.invalidAt=function(){return m(this).overflow},s.isAfter=function(e,t){e=a(e)?e:A(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=g(o(t)?"millisecond":t))?this.valueOf()>e.valueOf():e.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},s.isLocal=function(){return!!this.isValid()&&!this._isUTC},s.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},s.isUtc=Ft,s.isUTC=Ft,s.zoneAbbr=function(){return this._isUTC?"UTC":""},s.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},s.dates=e("dates accessor is deprecated. Use date instead.",ge),s.months=e("months accessor is deprecated. Use month instead",Ne),s.years=e("years accessor is deprecated. Use year instead",Ae),s.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),s.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return o(this._isDSTShifted)&&(q(e={},this),(e=St(e))._a?(t=(e._isUTC?d:A)(e._a),this._isDSTShifted=this.isValid()&&0'),e.data),i=e.datasets,n=e.labels;if(i.length)for(var s=0;s'),n[s]&&t.push(n[s]),t.push("");return t.push(""),t.join("")},legend:{labels:{generateLabels:function(r){var l=r.data;return l.labels.length&&l.datasets.length?l.labels.map(function(e,t){var i=r.getDatasetMeta(0),n=l.datasets[0],s=i.data[t],s=s&&s.custom||{},o=v.valueAtIndexOrDefault,a=r.options.elements.arc;return{text:e,fillStyle:s.backgroundColor||o(n.backgroundColor,t,a.backgroundColor),strokeStyle:s.borderColor||o(n.borderColor,t,a.borderColor),lineWidth:s.borderWidth||o(n.borderWidth,t,a.borderWidth),hidden:isNaN(n.data[t])||i.data[t].hidden,index:t}}):[]}},onClick:function(e,t){for(var i,n=t.index,s=this.chart,o=0,a=(s.data.datasets||[]).length;o=Math.PI?-1:h<-Math.PI?1:0))+_,r=Math.cos(h),e=Math.sin(h),t=Math.cos(_),n=Math.sin(_),a=h<=0&&0<=_||h<=2*Math.PI&&2*Math.PI<=_,s=h<=.5*Math.PI&&.5*Math.PI<=_||h<=2.5*Math.PI&&2.5*Math.PI<=_,o=h<=-Math.PI&&-Math.PI<=_||h<=Math.PI&&Math.PI<=_,h=h<=.5*-Math.PI&&.5*-Math.PI<=_||h<=1.5*Math.PI&&1.5*Math.PI<=_,_=g/100,o=o?-1:Math.min(r*(r<0?1:_),t*(t<0?1:_)),h=h?-1:Math.min(e*(e<0?1:_),n*(n<0?1:_)),a=a?1:Math.max(r*(0(n=n'),e.data),i=e.datasets,n=e.labels;if(i.length)for(var s=0;s'),n[s]&&t.push(n[s]),t.push("");return t.push(""),t.join("")},legend:{labels:{generateLabels:function(r){var l=r.data;return l.labels.length&&l.datasets.length?l.labels.map(function(e,t){var i=r.getDatasetMeta(0),n=l.datasets[0],s=i.data[t].custom||{},o=_.valueAtIndexOrDefault,a=r.options.elements.arc;return{text:e,fillStyle:s.backgroundColor||o(n.backgroundColor,t,a.backgroundColor),strokeStyle:s.borderColor||o(n.borderColor,t,a.borderColor),lineWidth:s.borderWidth||o(n.borderWidth,t,a.borderWidth),hidden:isNaN(n.data[t])||i.data[t].hidden,index:t}}):[]}},onClick:function(e,t){for(var i,n=t.index,s=this.chart,o=0,a=(s.data.datasets||[]).length;o=t.numSteps?(o.callback(t.onAnimationComplete,[t],i),i.animating=!1,n.splice(s,1)):++s}},Object.defineProperty(e.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(e.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}})}},{25:25,26:26,45:45}],23:[function(e,t,i){"use strict";var a=e(25),h=e(45),n=e(28),s=e(30),r=e(48),l=e(31);t.exports=function(d){function u(e){return"top"===e||"bottom"===e}d.types={},d.instances={},d.controllers={},h.extend(d.prototype,{construct:function(e,t){var i=this,n=((n=(s=t||{}).data=s.data||{}).datasets=n.datasets||[],n.labels=n.labels||[],s.options=h.configMerge(a.global,a[s.type],s.options||{}),t=s,r.acquireContext(e,t)),s=n&&n.canvas,e=s&&s.height,o=s&&s.width;i.id=h.uid(),i.ctx=n,i.canvas=s,i.config=t,i.width=o,i.height=e,i.aspectRatio=e?o/e:null,i.options=t.options,i._bufferedRender=!1,(i.chart=i).controller=i,d.instances[i.id]=i,Object.defineProperty(i,"data",{get:function(){return i.config.data},set:function(e){i.config.data=e}}),n&&s?(i.initialize(),i.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return l.notify(e,"beforeInit"),h.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),l.notify(e,"afterInit"),e},clear:function(){return h.canvas.clear(this),this},stop:function(){return d.animationService.cancelAnimation(this),this},resize:function(e){var t=this,i=t.options,n=t.canvas,s=i.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(h.getMaximumWidth(n))),s=Math.max(0,Math.floor(s?o/s:h.getMaximumHeight(n)));t.width===o&&t.height===s||(n.width=t.width=o,n.height=t.height=s,n.style.width=o+"px",n.style.height=s+"px",h.retinaScale(t,i.devicePixelRatio),e)||(l.notify(t,"resize",[n={width:o,height:s}]),t.options.onResize&&t.options.onResize(t,n),t.stop(),t.update(t.options.responsiveAnimationDuration))},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},e=e.scale;h.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),h.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),e&&(e.id=e.id||"scale")},buildOrUpdateScales:function(){var a=this,e=a.options,r=a.scales||{},t=[],l=Object.keys(r).reduce(function(e,t){return e[t]=!1,e},{});e.scales&&(t=t.concat((e.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),e.scale&&t.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),h.each(t,function(e){var t=e.options,i=t.id,n=h.valueOrDefault(t.type,e.dtype),s=(u(t.position)!==u(e.dposition)&&(t.position=e.dposition),l[i]=!0,null);if(i in r&&r[i].type===n)(s=r[i]).options=t,s.ctx=a.ctx,s.chart=a;else{var o=d.scaleService.getScaleConstructor(n);if(!o)return;s=new o({id:i,type:n,options:t,ctx:a.ctx,chart:a}),r[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(a.scale=s)}),h.each(l,function(e,t){e||delete r[t]}),a.scales=r,d.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var n=this,s=[],o=[];return h.each(n.data.datasets,function(e,t){var i=n.getDatasetMeta(t),e=e.type||n.config.type;if(i.type&&i.type!==e&&(n.destroyDatasetMeta(t),i=n.getDatasetMeta(t)),i.type=e,s.push(i.type),i.controller)i.controller.updateIndex(t),i.controller.linkScales();else{e=d.controllers[i.type];if(void 0===e)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new e(n,t),o.push(i.controller)}},n),o},resetElements:function(){var i=this;h.each(i.data.datasets,function(e,t){i.getDatasetMeta(t).controller.reset()},i)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,i,n=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),i=(t=n).options,h.each(t.scales,function(e){s.removeBox(t,e)}),i=h.configMerge(d.defaults.global,d.defaults[t.config.type],i),t.options=t.config.options=i,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=i.tooltips,t.tooltip.initialize(),l._invalidate(n),!1!==l.notify(n,"beforeUpdate")&&(n.tooltip._data=n.data,i=n.buildOrUpdateControllers(),h.each(n.data.datasets,function(e,t){n.getDatasetMeta(t).controller.buildOrUpdateElements()},n),n.updateLayout(),n.options.animation&&n.options.animation.duration&&h.each(i,function(e){e.reset()}),n.updateDatasets(),n.tooltip.initialize(),n.lastActive=[],l.notify(n,"afterUpdate"),n._bufferedRender?n._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:n.render(e))},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(s.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e=t[e].length&&t[e].push({}),!t[e][s].type||a.type&&a.type!==t[e][s].type?c.merge(t[e][s],[l.scaleService.getScaleDefaults(o),a]):c.merge(t[e][s],a)}else c._merger(e,t,i,n)}})},c.where=function(e,t){var i;return c.isArray(e)&&Array.prototype.filter?e.filter(t):(i=[],c.each(e,function(e){t(e)&&i.push(e)}),i)},c.findIndex=Array.prototype.findIndex?function(e,t,i){return e.findIndex(t,i)}:function(e,t,i){i=void 0===i?e:i;for(var n=0,s=e.length;n=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},c.previousItem=function(e,t,i){return i?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},c.niceNum=function(e,t){var i=Math.floor(c.log10(e)),e=e/Math.pow(10,i);return(t?e<1.5?1:e<3?2:e<7?5:10:e<=1?1:e<=2?2:e<=5?5:10)*Math.pow(10,i)},c.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},c.getRelativePosition=function(e,t){var i,n=e.originalEvent||e,e=e.currentTarget||e.srcElement,s=e.getBoundingClientRect(),o=n.touches,o=(o&&0i.length){for(var l=0;lt&&(t=e.length)}),t},c.color=n?function(e){return e instanceof CanvasGradient&&(e=s.global.defaultColor),n(e)}:function(e){return console.error("Color.js not found!"),e},c.getHoverColor=function(e){return e instanceof CanvasPattern?e:c.color(e).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(e,t,i){"use strict";var n=e(45);function a(e,t){return e.native?{x:e.x,y:e.y}:n.getRelativePosition(e,t)}function r(e,t){for(var i,n,s,o=0,a=e.data.datasets.length;oe.maxHeight){o--;break}o++,r=u*a}e.labelRotation=o},afterCalculateTickRotation:function(){j.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){j.callback(this.options.beforeFit,[this])},fit:function(){var e,t=this,i=t.minSize={width:0,height:0},n=p(t._ticks),s=t.options,o=s.ticks,a=s.scaleLabel,r=s.gridLines,l=s.display,d=t.isHorizontal(),u=f(o),h=s.gridLines.tickMarkLength;i.width=d?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:l&&r.drawTicks?h:0,i.height=d?l&&r.drawTicks?h:0:t.maxHeight,a.display&&l&&(r=m(a)+j.options.toPadding(a.padding).height,d?i.height+=r:i.width+=r),o.display&&l&&(h=j.longestText(t.ctx,u.font,n,t.longestTextCache),a=j.numberOfLabelLines(n),r=.5*u.size,l=t.options.ticks.padding,d?(t.longestLabelWidth=h,d=j.toRadians(t.labelRotation),e=Math.cos(d),d=Math.sin(d)*h+u.size*a+r*(a-1)+r,i.height=Math.min(t.maxHeight,i.height+d+l),t.ctx.font=u.font,a=c(t.ctx,n[0],u.font),d=c(t.ctx,n[n.length-1],u.font),0!==t.labelRotation?(t.paddingLeft="bottom"===s.position?e*a+3:e*r+3,t.paddingRight="bottom"===s.position?e*r+3:e*d+3):(t.paddingLeft=a/2+3,t.paddingRight=d/2+3)):(o.mirror?h=0:h+=l+r,i.width=Math.min(t.maxWidth,i.width+h),t.paddingTop=u.size/2,t.paddingBottom=u.size/2)),t.handleMargins(),t.width=i.width,t.height=i.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){j.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(j.isNullOrUndef(e))return NaN;if("number"==typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:j.noop,getPixelForValue:j.noop,getValueForPixel:j.noop,getPixelForTick:function(e){var t,i,n=this,s=n.options.offset;return n.isHorizontal()?(i=(t=(n.width-(n.paddingLeft+n.paddingRight))/Math.max(n._ticks.length-(s?0:1),1))*e+n.paddingLeft,s&&(i+=t/2),n.left+Math.round(i)+(n.isFullWidth()?n.margins.left:0)):(s=n.height-(n.paddingTop+n.paddingBottom),n.top+e*(s/(n._ticks.length-1)))},getPixelForDecimal:function(e){var t,i=this;return i.isHorizontal()?(t=(i.width-(i.paddingLeft+i.paddingRight))*e+i.paddingLeft,i.left+Math.round(t)+(i.isFullWidth()?i.margins.left:0)):i.top+e*i.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:0o.width-(o.paddingLeft+o.paddingRight)&&(t=1+Math.floor((d+r.autoSkipPadding)*l/(o.width-(o.paddingLeft+o.paddingRight)))),s)&&sl.height-a.height&&(y="bottom"),d=(v.left+v.right)/2,u=(v.top+v.bottom)/2,v="center"===y?(h=function(e){return e<=d},function(e){return d=l.width-a.width/2}),b=function(e){return e+a.width+r.caretSize+r.caretPadding>l.width},w=function(e){return e-a.width-r.caretSize-r.caretPadding<0},g=function(e){return e<=u?"top":"bottom"},h(r.x)?(_="left",b(r.x)&&(_="center",y=g(r.y))):v(r.x)&&(_="right",w(r.x))&&(_="center",y=g(r.y)),x=P,p=Y={xAlign:(h=o._options).xAlign||_,yAlign:h.yAlign||y},c=M._chart,b=S.x,v=S.y,g=S.caretSize+(w=S.caretPadding),o=S.cornerRadius+w,"right"===(_=p.xAlign)?b-=x.width:"center"===_&&(b=(b-=x.width/2)+x.width>c.width?c.width-x.width:b)<0&&(b=0),"top"===(y=p.yAlign)?v+=g:v-="bottom"===y?x.height+g:x.height/2,"center"===y?"left"===_?b+=g:"right"===_&&(b-=g):"left"===_?b-=o:"right"===_&&(b+=o),A={x:b,y:v}}else S.opacity=0;function E(e){m=Math.max(m,f.measureText(e).width+k)}return S.xAlign=Y.xAlign,S.yAlign=Y.yAlign,S.x=A.x,S.y=A.y,S.width=P.width,S.height=P.height,S.caretX=T.x,S.caretY=T.y,M._model=S,H&&D.custom&&D.custom.call(M,S),M},drawCaret:function(e,t){var i=this._chart.ctx,n=this._view,e=this.getCaretPosition(e,t,n);i.lineTo(e.x1,e.y1),i.lineTo(e.x2,e.y2),i.lineTo(e.x3,e.y3)},getCaretPosition:function(e,t,i){var n,s,o,a,r,l,d=i.caretSize,u=i.cornerRadius,h=i.xAlign,c=i.yAlign,p=e.x,e=e.y,f=t.width,t=t.height;return"center"===c?(o=e+t/2,a="left"===h?(n=(l=p)-d,r=l,s=o+d,o-d):(n=(l=p+f)+d,r=l,s=o-d,o+d)):(r=(l="left"===h?(n=p+u+d)-d:"right"===h?(n=p+f-u-d)-d:(n=i.caretX)-d,n+d),"top"===c?(o=(s=e)-d,a=s):(o=(s=e+t)+d,a=s,h=r,r=l,l=h)),{x1:l,x2:n,x3:r,y1:s,y2:o,y3:a}},drawTitle:function(e,t,i,n){var s=t.title;if(s.length){i.textAlign=t._titleAlign,i.textBaseline="top";var o,a,r=t.titleFontSize,l=t.titleSpacing;for(i.fillStyle=h(t.titleFontColor,n),i.font=$.fontString(r,t._titleFontStyle,t._titleFontFamily),o=0,a=s.length;o=i.innerRadius&&t<=i.outerRadius;return s<=n&&n<=o&&e}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,i=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*i,y:e.y+Math.sin(t)*i}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,i=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*i,y:e.y+Math.sin(t)*i}},draw:function(){var e=this._chart.ctx,t=this._view,i=t.startAngle,n=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,i,n),e.arc(t.x,t.y,t.innerRadius,n,i,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})},{25:25,26:26,45:45}],37:[function(e,t,i){"use strict";var n=e(25),s=e(26),u=e(45),h=n.global;n._set("global",{elements:{line:{tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),t.exports=s.extend({draw:function(){var e,t,i,n,s=this._view,o=this._chart.ctx,a=s.spanGaps,r=this._children.slice(),l=h.elements.line,d=-1;for(this._loop&&r.length&&r.push(r[0]),o.save(),o.lineCap=s.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(s.borderDash||l.borderDash),o.lineDashOffset=s.borderDashOffset||l.borderDashOffset,o.lineJoin=s.borderJoinStyle||l.borderJoinStyle,o.lineWidth=s.borderWidth||l.borderWidth,o.strokeStyle=s.borderColor||h.defaultColor,o.beginPath(),d=-1,e=0;ei?1:-1,u.borderSkipped||"bottom"),p=(h&&(a=(h=(a=Math.min(Math.abs(e-t),Math.abs(i-n)))=(i=s(this)).left&&e<=i.right&&t>=i.top&&t<=i.bottom:n},inLabelRange:function(e,t){var i;return!!this._view&&(i=s(this),o(this)?e>=i.left&&e<=i.right:t>=i.top&&t<=i.bottom)},inXRange:function(e){var t=s(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=s(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t=this._view,t=o(this)?(e=t.x,(t.y+t.base)/2):(e=(t.x+t.base)/2,t.y);return{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},{25:25,26:26}],40:[function(e,t,i){"use strict";t.exports={},t.exports.Arc=e(36),t.exports.Line=e(37),t.exports.Point=e(38),t.exports.Rectangle=e(39)},{36:36,37:37,38:38,39:39}],41:[function(e,t,i){"use strict";e=e(42);i=t.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,i,n,s,o){var a;o?(a=Math.min(o,n/2),o=Math.min(o,s/2),e.moveTo(t+a,i),e.lineTo(t+n-a,i),e.quadraticCurveTo(t+n,i,t+n,i+o),e.lineTo(t+n,i+s-o),e.quadraticCurveTo(t+n,i+s,t+n-a,i+s),e.lineTo(t+a,i+s),e.quadraticCurveTo(t,i+s,t,i+s-o),e.lineTo(t,i+o),e.quadraticCurveTo(t,i,t+a,i)):e.rect(t,i,n,s)},drawPoint:function(e,t,i,n,s){var o,a,r,l;if(!t||"object"!=typeof t||"[object HTMLImageElement]"!==(o=t.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(i)||i<=0)){switch(t){default:e.beginPath(),e.arc(n,s,i,0,2*Math.PI),e.closePath(),e.fill();break;case"triangle":e.beginPath(),u=(d=3*i/Math.sqrt(3))*Math.sqrt(3)/2,e.moveTo(n-d/2,s+u/3),e.lineTo(n+d/2,s+u/3),e.lineTo(n,s-2*u/3),e.closePath(),e.fill();break;case"rect":l=1/Math.SQRT2*i,e.beginPath(),e.fillRect(n-l,s-l,2*l,2*l),e.strokeRect(n-l,s-l,2*l,2*l);break;case"rectRounded":var d=i/Math.SQRT2,u=n-d,d=s-d,h=Math.SQRT2*i;e.beginPath(),this.roundedRect(e,u,d,h,h,i/2),e.closePath(),e.fill();break;case"rectRot":l=1/Math.SQRT2*i,e.beginPath(),e.moveTo(n-l,s),e.lineTo(n,s+l),e.lineTo(n+l,s),e.lineTo(n,s-l),e.closePath(),e.fill();break;case"cross":e.beginPath(),e.moveTo(n,s+i),e.lineTo(n,s-i),e.moveTo(n-i,s),e.lineTo(n+i,s),e.closePath();break;case"crossRot":e.beginPath(),a=Math.cos(Math.PI/4)*i,r=Math.sin(Math.PI/4)*i,e.moveTo(n-a,s-r),e.lineTo(n+a,s+r),e.moveTo(n-a,s+r),e.lineTo(n+a,s-r),e.closePath();break;case"star":e.beginPath(),e.moveTo(n,s+i),e.lineTo(n,s-i),e.moveTo(n-i,s),e.lineTo(n+i,s),a=Math.cos(Math.PI/4)*i,r=Math.sin(Math.PI/4)*i,e.moveTo(n-a,s-r),e.lineTo(n+a,s+r),e.moveTo(n-a,s+r),e.lineTo(n+a,s-r),e.closePath();break;case"line":e.beginPath(),e.moveTo(n-i,s),e.lineTo(n+i,s),e.closePath();break;case"dash":e.beginPath(),e.moveTo(n,s),e.lineTo(n+i,s),e.closePath()}e.stroke()}}else e.drawImage(t,n-t.width/2,s-t.height/2,t.width,t.height)},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,i,n){i.steppedLine?("after"===i.steppedLine&&!n||"after"!==i.steppedLine&&n?e.lineTo(t.x,i.y):e.lineTo(i.x,t.y),e.lineTo(i.x,i.y)):i.tension?e.bezierCurveTo(n?t.controlPointPreviousX:t.controlPointNextX,n?t.controlPointPreviousY:t.controlPointNextY,n?i.controlPointNextX:i.controlPointPreviousX,n?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):e.lineTo(i.x,i.y)}},e.clear=i.clear,e.drawRoundedRectangle=function(e){e.beginPath(),i.roundedRect.apply(i,arguments),e.closePath()}},{42:42}],42:[function(e,t,i){"use strict";var n,u={noop:function(){},uid:(n=0,function(){return n++}),isNullOrUndef:function(e){return null==e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,i){return u.valueOrDefault(u.isArray(e)?e[t]:e,i)},callback:function(e,t,i){if(e&&"function"==typeof e.call)return e.apply(i,t)},each:function(e,t,i,n){var s,o,a;if(u.isArray(e))if(o=e.length,n)for(s=o-1;0<=s;s--)t.call(i,e[s],s);else for(s=0;s
',i.childNodes[0]),a=i.childNodes[1];i._reset=function(){o.scrollLeft=1e6,o.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6};return M(o,"scroll",t.bind(o,"expand")),M(a,"scroll",t.bind(a,"shrink")),i}((a=function(){if(h.resizer)return s(D("resize",o))},l=!1,function(){d=Array.prototype.slice.call(arguments),r=r||this,l||(l=!0,_.requestAnimFrame.call(window,function(){l=!1,a.apply(r,d)}))})),p=function(){var e;h.resizer&&((e=t.parentNode)&&e!==c.parentNode&&e.insertBefore(c,e.firstChild),c._reset())},f=(u=t)[v]||(u[v]={}),m=f.renderProxy=function(e){e.animationName===w&&p()},_.each(x,function(e){M(u,e,m)}),f.reflow=!!u.offsetParent,u.classList.add(b))},removeEventListener:function(e,t,i){var n,s,o=e.canvas;"resize"!==t?(i=((i[v]||{}).proxies||{})[e.id+"_"+t])&&a(o,t,i):(t=(e=o)[v]||{},i=t.resizer,delete t.resizer,t=(n=e)[v]||{},(s=t.renderProxy)&&(_.each(x,function(e){a(n,e,s)}),delete t.renderProxy),n.classList.remove(b),i&&i.parentNode&&i.parentNode.removeChild(i))}},_.addEvent=M,_.removeEvent=a},{45:45}],48:[function(e,t,i){"use strict";var n=e(45),s=e(46),e=e(47),e=e._enabled?e:s;t.exports=n.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},e)},{45:45,46:46,47:47}],49:[function(e,t,i){"use strict";t.exports={},t.exports.filler=e(50),t.exports.legend=e(51),t.exports.title=e(52)},{50:50,51:51,52:52}],50:[function(e,t,i){"use strict";var k=e(25),c=e(40),M=e(45),p=(k._set("global",{plugins:{filler:{propagate:!0}}}),{dataset:function(e){var t=e.fill,e=e.chart,i=e.getDatasetMeta(t),n=i&&e.isDatasetVisible(t)&&i.dataset._children||[],s=n.length||0;return s?function(e,t){return t');for(var i=0;i'),e.data.datasets[i].label&&t.push(e.data.datasets[i].label),t.push("");return t.push(""),t.join("")}});var o=n.extend({initialize:function(e){C.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:e,update:function(e,t,i){var n=this;return n.beforeUpdate(),n.maxWidth=e,n.maxHeight=t,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:e,beforeSetDimensions:e,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:e,beforeBuildLabels:e,buildLabels:function(){var t=this,i=t.options.labels||{},e=C.callback(i.generateLabels,[t.chart],t)||[];i.filter&&(e=e.filter(function(e){return i.filter(e,t.chart.data)})),t.options.reverse&&e.reverse(),t.legendItems=e},afterBuildLabels:e,beforeFit:e,fit:function(){var i,n,s,o,a,r,l,d=this,e=d.options,u=e.labels,e=e.display,h=d.ctx,t=S.global,c=C.valueOrDefault,p=c(u.fontSize,t.defaultFontSize),f=c(u.fontStyle,t.defaultFontStyle),c=c(u.fontFamily,t.defaultFontFamily),t=C.fontString(p,f,c),m=d.legendHitBoxes=[],g=d.minSize,f=d.isHorizontal();f?(g.width=d.maxWidth,g.height=e?10:0):(g.width=e?10:0,g.height=d.maxHeight),e&&(h.font=t,f?(i=d.lineWidths=[0],n=d.legendItems.length?p+u.padding:0,h.textAlign="left",h.textBaseline="top",C.each(d.legendItems,function(e,t){e=L(u,p)+p/2+h.measureText(e.text).width;i[i.length-1]+e+u.padding>=d.width&&(n+=p+u.padding,i[i.length]=d.left),m[t]={left:0,top:0,width:e,height:p},i[i.length-1]+=e+u.padding}),g.height+=n):(c=u.padding,s=d.columnWidths=[],o=u.padding,r=a=0,l=p+c,C.each(d.legendItems,function(e,t){e=L(u,p)+p/2+h.measureText(e.text).width;r+l>g.height&&(o+=a+u.padding,s.push(a),r=a=0),a=Math.max(a,e),r+=l,m[t]={left:0,top:0,width:e,height:p}}),o+=a,s.push(a),g.width+=o)),d.width=g.width,d.height=g.height},afterFit:e,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var c,p,e,f,t,i,m,g,_,v,y,b=this,w=b.options,x=w.labels,k=S.global,M=k.elements.line,D=b.width,T=b.lineWidths;w.display&&(c=b.ctx,e=(p=C.valueOrDefault)(x.fontColor,k.defaultFontColor),f=p(x.fontSize,k.defaultFontSize),i=p(x.fontStyle,k.defaultFontStyle),t=p(x.fontFamily,k.defaultFontFamily),i=C.fontString(f,i,t),c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=e,c.fillStyle=e,c.font=i,m=L(x,f),g=b.legendHitBoxes,_=b.isHorizontal(),v=_?{x:b.left+(D-T[0])/2,y:b.top+x.padding,line:0}:{x:b.left+x.padding,y:b.top+x.padding,line:0},y=f+x.padding,C.each(b.legendItems,function(e,t){var i,n,s,o,a,r,l=c.measureText(e.text).width,d=m+f/2+l,u=v.x,h=v.y;_?D<=u+d&&(h=v.y+=y,v.line++,u=v.x=b.left+(D-T[v.line])/2):h+y>b.bottom&&(u=v.x=u+b.columnWidths[v.line]+x.padding,h=v.y=b.top+x.padding,v.line++),i=u,n=h,s=e,isNaN(m)||m<=0||(c.save(),c.fillStyle=p(s.fillStyle,k.defaultColor),c.lineCap=p(s.lineCap,M.borderCapStyle),c.lineDashOffset=p(s.lineDashOffset,M.borderDashOffset),c.lineJoin=p(s.lineJoin,M.borderJoinStyle),c.lineWidth=p(s.lineWidth,M.borderWidth),c.strokeStyle=p(s.strokeStyle,k.defaultColor),o=0===p(s.lineWidth,M.borderWidth),c.setLineDash&&c.setLineDash(p(s.lineDash,M.borderDash)),w.labels&&w.labels.usePointStyle?(r=(a=f*Math.SQRT2/2)/Math.SQRT2,C.canvas.drawPoint(c,s.pointStyle,a,i+r,n+r)):(o||c.strokeRect(i,n,m,f),c.fillRect(i,n,m,f)),c.restore()),g[t].left=u,g[t].top=h,s=l,r=m+(a=f/2)+u,c.fillText((o=e).text,r,i=h+a),o.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(r,i),c.lineTo(r+s,i),c.stroke()),_?v.x+=d+x.padding:v.y+=y}))},handleEvent:function(e){var t=this,i=t.options,n="mouseup"===e.type?"click":e.type,s=!1;if("mousemove"===n){if(!i.onHover)return}else{if("click"!==n)return;if(!i.onClick)return}var o=e.x,a=e.y;if(o>=t.left&&o<=t.right&&a>=t.top&&a<=t.bottom)for(var r=t.legendHitBoxes,l=0;l=d.left&&o<=d.left+d.width&&a>=d.top&&a<=d.top+d.height){if("click"===n){i.onClick.call(t,e.native,t.legendItems[l]),s=!0;break}if("mousemove"===n){i.onHover.call(t,e.native,t.legendItems[l]),s=!0;break}}}return s}});function a(e,t){var i=new o({ctx:e.ctx,options:t,chart:e});s.configure(e,i,t),s.addBox(e,i),e.legend=i}t.exports={id:"legend",_element:o,beforeInit:function(e){var t=e.options.legend;t&&a(e,t)},beforeUpdate:function(e){var t=e.options.legend,i=e.legend;t?(C.mergeIf(t,S.global.legend),i?(s.configure(e,i,t),i.options=t):a(e,t)):i&&(s.removeBox(e,i),delete e.legend)},afterEvent:function(e,t){e=e.legend;e&&e.handleEvent(t)}}},{25:25,26:26,30:30,45:45}],52:[function(e,t,i){"use strict";var v=e(25),n=e(26),y=e(45),s=e(30),e=y.noop,o=(v._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),n.extend({initialize:function(e){y.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:e,update:function(e,t,i){var n=this;return n.beforeUpdate(),n.maxWidth=e,n.maxHeight=t,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:e,beforeSetDimensions:e,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:e,beforeBuildLabels:e,buildLabels:e,afterBuildLabels:e,beforeFit:e,fit:function(){var e=y.valueOrDefault,t=this.options,i=t.display,e=e(t.fontSize,v.global.defaultFontSize),n=this.minSize,s=y.isArray(t.text)?t.text.length:1,e=y.options.toLineHeight(t.lineHeight,e),i=i?s*e+2*t.padding:0;this.isHorizontal()?(n.width=this.maxWidth,n.height=i):(n.width=i,n.height=this.maxHeight),this.width=n.width,this.height=n.height},afterFit:e,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this.ctx,t=y.valueOrDefault,i=this.options,n=v.global;if(i.display){var s,o,a,r=t(i.fontSize,n.defaultFontSize),l=t(i.fontStyle,n.defaultFontStyle),d=t(i.fontFamily,n.defaultFontFamily),l=y.fontString(r,l,d),u=y.options.toLineHeight(i.lineHeight,r),d=u/2+i.padding,r=0,h=this.top,c=this.left,p=this.bottom,f=this.right,m=(e.fillStyle=t(i.fontColor,n.defaultFontColor),e.font=l,this.isHorizontal()?(o=c+(f-c)/2,a=h+d,s=f-c):(o="left"===i.position?c+d:f-d,a=h+(p-h)/2,s=p-h,r=Math.PI*("left"===i.position?-.5:.5)),e.save(),e.translate(o,a),e.rotate(r),e.textAlign="center",e.textBaseline="middle",i.text);if(y.isArray(m))for(var g=0,_=0;_a.max)&&(a.max=e)})}),a.min=isFinite(a.min)&&!isNaN(a.min)?a.min:0,a.max=isFinite(a.max)&&!isNaN(a.max)?a.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this.options.ticks;return this.isHorizontal()?Math.min(t.maxTicksLimit||11,Math.ceil(this.width/50)):(e=h.valueOrDefault(t.fontSize,n.global.defaultFontSize),Math.min(t.maxTicksLimit||11,Math.ceil(this.height/(2*e))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this.start,e=+this.getRightValue(e),i=this.end-t;return this.isHorizontal()?this.left+this.width/i*(e-t):this.bottom-this.height/i*(e-t)},getValueForPixel:function(e){var t=this.isHorizontal(),i=t?this.width:this.height,t=(t?e-this.left:this.bottom-e)/i;return this.start+(this.end-this.start)*t},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});e.scaleService.registerScaleType("linear",i,t)}},{25:25,34:34,45:45}],55:[function(e,t,i){"use strict";var d=e(45);t.exports=function(t){var e=d.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,i=(t.beginAtZero&&(i=d.sign(e.min),n=d.sign(e.max),i<0&&n<0?e.max=0:0=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var e=this,t=e.options.ticks,i=e.getTickLimit(),i={maxTicks:Math.max(2,i),min:t.min,max:t.max,stepSize:d.valueOrDefault(t.fixedStepSize,t.stepSize)},i=e.ticks=function(e,t){var i,n=[],s=(i=e.stepSize&&0o.max)&&(o.max=e),0!=e&&(null===o.minNotZero||eo.r&&(o.r=c.end,a.r=u),h.starto.b&&(o.b=h.end,a.b=u)}i.setReductions(s,o,a)}else e=Math.min(this.height/2,this.width/2),this.drawingArea=Math.round(e),this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,i){var n=t.l/Math.sin(i.l),s=Math.max(t.r-this.width,0)/Math.sin(i.r),o=-t.t/Math.cos(i.t),t=-Math.max(t.b-this.height,0)/Math.cos(i.b),n=a(n),s=a(s),o=a(o),t=a(t);this.drawingArea=Math.min(Math.round(e-(n+s)/2),Math.round(e-(o+t)/2)),this.setCenterPoint(n,s,o,t)},setCenterPoint:function(e,t,i,n){var s=this,t=s.width-t-s.drawingArea,e=e+s.drawingArea,i=i+s.drawingArea,n=s.height-n-s.drawingArea;s.xCenter=Math.round((e+t)/2+s.left),s.yCenter=Math.round((i+n)/2+s.top)},getIndexAngle:function(e){return e*(2*Math.PI/L(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t;return null===e?0:(t=this.drawingArea/(this.max-this.min),this.options.ticks.reverse?(this.max-e)*t:(e-this.min)*t)},getPointPosition:function(e,t){e=this.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(e)*t)+this.xCenter,y:Math.round(Math.sin(e)*t)+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:0>1)-1]||null,o=e[n],!s)return{lo:null,hi:o};if(o[t]i))return{lo:s,hi:o};r=n-1}}return{lo:o,hi:null}}(e,t,i),o=s.lo?s.hi?s.lo:e[e.length-2]:e[0],s=s.lo?s.hi||e[e.length-1]:e[1],e=s[t]-o[t],i=e?(i-o[t])/e:0,t=(s[n]-o[n])*i;return o[n]+t}function A(e,t){var i=t.parser,t=t.parser||t.format;return"function"==typeof i?i(e):"string"==typeof e&&"string"==typeof t?D(e,t):!(e=e instanceof D?e:D(e)).isValid()&&"function"==typeof t?t(e):e}function P(e,t){var i;return!T.isNullOrUndef(e)&&(i=t.options.time,(t=A(t.getRightValue(e),i)).isValid())?(i.round&&t.startOf(i.round),t.valueOf()):null}function O(e){for(var t=L.indexOf(e)+1,i=L.length;t=c&&i<=p&&_.push(i);h.min=c,h.max=p,h._unit=m.unit||function(e,t,i,n){for(var s,o=D.duration(D(n).diff(D(i))),a=L.length-1;a>=L.indexOf(t);a--)if(s=L[a],C[s].common&&o.as(s)>=e.length)return s;return L[t?L.indexOf(t):0]}(_,m.minUnit,h.min,h.max),h._majorUnit=O(h._unit),h._table=function(e,t,i){if("linear"===f.distribution||!e.length)return[{time:t,pos:0},{time:i,pos:1}];for(var n,s,o,a=[],r=[t],l=0,d=e.length;lt&&s'),this.element.appendChild(t)),(i=t.getElementsByTagName("span")[0])&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,i={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height;return i.optWidth=this.options.thumbnailWidth,i.optHeight=this.options.thumbnailHeight,null==i.optWidth&&null==i.optHeight?(i.optWidth=i.srcWidth,i.optHeight=i.srcHeight):null==i.optWidth?i.optWidth=n*i.optHeight:null==i.optHeight&&(i.optHeight=1/n*i.optWidth),t=i.optWidth/i.optHeight,e.height'+this.options.dictRemoveFile+""),t.previewElement.appendChild(t._removeLink)),p=this,e=function(e){return e.preventDefault(),e.stopPropagation(),t.status===z.UPLOADING?z.confirm(p.options.dictCancelUploadConfirmation,function(){return p.removeFile(t)}):p.options.dictRemoveFileConfirmation?z.confirm(p.options.dictRemoveFileConfirmation,function(){return p.removeFile(t)}):p.removeFile(t)},c=[],o=0,l=(h=t.previewElement.querySelectorAll("[data-dz-remove]")).length;o\n
\n
\n
\n
\n
\n
\n
\n
\n \n Check\n \n \n \n \n \n
\n
\n \n Error\n \n \n \n \n \n \n \n
\n'},E=function(){for(var e,t,i,n=arguments[0],s=2<=arguments.length?d.call(arguments,1):[],o=0,a=s.length;o'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(r=this,(s=function(){return r.hiddenFileInput&&r.hiddenFileInput.parentNode.removeChild(r.hiddenFileInput),r.hiddenFileInput=document.createElement("input"),r.hiddenFileInput.setAttribute("type","file"),(null==r.options.maxFiles||1',this.options.dictFallbackText&&(e+="

"+this.options.dictFallbackText+"

"),e+='',e=z.createElement(e),"FORM"!==this.element.tagName?(t=z.createElement('
')).appendChild(e):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:e)},z.prototype.getExistingFallback=function(){for(var e,t=function(e){for(var t,i=0,n=e.length;i"+a+" "+r},z.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},z.prototype.drop=function(e){var t;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length)&&((e=e.dataTransfer.items)&&e.length&&null!=e[0].webkitGetAsEntry?this._addFilesFromItems(e):this.handleFiles(t))},z.prototype.paste=function(e){var t;if(null!=(null!=e&&null!=(t=e.clipboardData)?t.items:void 0))return this.emit("paste",e),(t=e.clipboardData.items).length?this._addFilesFromItems(t):void 0},z.prototype.handleFiles=function(e){for(var t,i=[],n=0,s=e.length;n1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):z.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)},z.prototype.addFile=function(t){return t.upload={progress:0,total:t.size,bytesSent:0},this.files.push(t),t.status=z.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(i=this,function(e){return e?(t.accepted=!1,i._errorProcessing([t],e)):(t.accepted=!0,i.options.autoQueue&&i.enqueueFile(t)),i._updateMaxFilesReachedClass()}));var i},z.prototype.enqueueFiles=function(e){for(var t,i=0,n=e.length;i>1;return 0==(e=n/o)?1:e},r=function(e,t,i,n,s,o,a,r,l,d){var u=h(t);return e.drawImage(t,i,n,s,o,a,r,l,d/u)},e=function(t,i){var n=!1,e=!0,s=t.document,o=s.documentElement,a=s.addEventListener?"addEventListener":"attachEvent",r=s.addEventListener?"removeEventListener":"detachEvent",l=s.addEventListener?"":"on",d=function(e){if("readystatechange"!==e.type||"complete"===s.readyState)return("load"===e.type?t:s)[r](l+e.type,d,!1),!n&&(n=!0)?i.call(t,e.type||e):void 0},u=function(){try{o.doScroll("left")}catch(e){return void setTimeout(u,50)}return d("poll")};if("complete"!==s.readyState){if(s.createEventObject&&o.doScroll){try{e=!t.frameElement}catch(e){}e&&u()}return s[a](l+"DOMContentLoaded",d,!1),s[a](l+"readystatechange",d,!1),t[a](l+"load",d,!1)}},a._autoDiscoverFunction=function(){if(a.autoDiscover)return a.discover()},e(window,a._autoDiscoverFunction)}.call(this),$(function(){jQuery("img.svg").each(function(){var t=jQuery(this),i=t.attr("id"),n=t.attr("class"),e=t.attr("src");jQuery.get(e,function(e){e=jQuery(e).find("svg");void 0!==i&&(e=e.attr("id",i)),!(e=(e=void 0!==n?e.attr("class",n+" replaced-svg"):e).removeAttr("xmlns:a")).attr("viewBox")&&e.attr("height")&&e.attr("width")&&e.attr("viewBox","0 0 "+e.attr("height")+" "+e.attr("width")),$(t).hasClass("white")&&(e=convertToWhite(e)),t.replaceWith(e)},"xml")})}),!function(s){s.fn.easyView=function(t,e){var i=s(this.selector);if(void 0===i.data("easyView")){"string"==typeof t&&(t={});let e=100;var n=getCookie("font_size");!isNaN(n)&&80<=n&&n<=120&&(e=n),(n={selector:i,currentRatio:e,normalContrast:!0,defaults:{container:"body",tags:["h1","h2","h3","h4","h5","h6","div","p","a","span","strong","em","ul","ol","li"],step:10,bootstrap:!0,defaultMarkup:'Decrease font sizeNormal font sizeIncrease font sizeChange contrast',increaseSelector:".increase-text",decreaseSelector:".decrease-text",normalSelector:".reset-text",contrastSelector:".contrast-text",persist:!1},options:{},affectedTags:new Array,mergeOptions:function(e){s.extend(this.options,this.defaults,e),s.extend(this,this,e),this.changeFontSize()},storeDefaults:function(){s.each(this.affectedTags,function(e,t){s(t).each(function(){var e=s(this),t=e.css("font-size");-1>>0,n=0;nze(e)?(o=e+1,t-ze(e)):(o=e,t);return{year:o,dayOfYear:i}}function tt(e,t,i){var n,s,o=Ze(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+it(s=e.year()-1,t,i):o>it(e.year(),t,i)?(n=o-it(e.year(),t,i),s=e.year()+1):(s=e.year(),n=o),{week:n,year:s}}function it(e,t,i){var n=Ze(e,t,i),t=Ze(e+1,t,i);return(ze(e)-n+t)/7}n("w",["ww",2],"wo","week"),n("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),i("week",5),i("isoWeek",5),v("w",c),v("ww",c,d),v("W",c),v("WW",c,d),Ce(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=h(e)}),n("d",0,"do","day"),n("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),n("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),n("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),n("e",0,0,"weekday"),n("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),i("day",11),i("weekday",11),i("isoWeekday",11),v("d",c),v("e",c),v("E",c),v("dd",function(e,t){return t.weekdaysMinRegex(e)}),v("ddd",function(e,t){return t.weekdaysShortRegex(e)}),v("dddd",function(e,t){return t.weekdaysRegex(e)}),Ce(["dd","ddd","dddd"],function(e,t,i,n){n=i._locale.weekdaysParse(e,n,i._strict);null!=n?t.d=n:m(i).invalidWeekday=e}),Ce(["d","e","E"],function(e,t,i,n){t[n]=h(e)});var nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),st="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ot="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),at=_,rt=_,lt=_;function dt(){function e(e,t){return t.length-e.length}for(var t,i,n,s=[],o=[],a=[],r=[],l=0;l<7;l++)n=$([2e3,1]).day(l),t=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),n=this.weekdays(n,""),s.push(t),o.push(i),a.push(n),r.push(t),r.push(i),r.push(n);for(s.sort(e),o.sort(e),a.sort(e),r.sort(e),l=0;l<7;l++)o[l]=Te(o[l]),a[l]=Te(a[l]),r[l]=Te(r[l]);this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function ut(){return this.hours()%12||12}function ht(e,t){n(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ct(e,t){return t._meridiemParse}n("H",["HH",2],0,"hour"),n("h",["hh",2],0,ut),n("k",["kk",2],0,function(){return this.hours()||24}),n("hmm",0,0,function(){return""+ut.apply(this)+re(this.minutes(),2)}),n("hmmss",0,0,function(){return""+ut.apply(this)+re(this.minutes(),2)+re(this.seconds(),2)}),n("Hmm",0,0,function(){return""+this.hours()+re(this.minutes(),2)}),n("Hmmss",0,0,function(){return""+this.hours()+re(this.minutes(),2)+re(this.seconds(),2)}),ht("a",!0),ht("A",!1),t("hour","h"),i("hour",13),v("a",ct),v("A",ct),v("H",c),v("h",c),v("k",c),v("HH",c,d),v("hh",c,d),v("kk",c,d),v("hmm",_e),v("hmmss",ve),v("Hmm",_e),v("Hmmss",ve),y(["H","HH"],b),y(["k","kk"],function(e,t,i){e=h(e);t[b]=24===e?0:e}),y(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),y(["h","hh"],function(e,t,i){t[b]=h(e),m(i).bigHour=!0}),y("hmm",function(e,t,i){var n=e.length-2;t[b]=h(e.substr(0,n)),t[Pe]=h(e.substr(n)),m(i).bigHour=!0}),y("hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[b]=h(e.substr(0,n)),t[Pe]=h(e.substr(n,2)),t[Oe]=h(e.substr(s)),m(i).bigHour=!0}),y("Hmm",function(e,t,i){var n=e.length-2;t[b]=h(e.substr(0,n)),t[Pe]=h(e.substr(n))}),y("Hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[b]=h(e.substr(0,n)),t[Pe]=h(e.substr(n,2)),t[Oe]=h(e.substr(s))});var pt,_=Ne("Hours",!0),ft={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},months:qe,monthsShort:Ue,week:{dow:0,doy:6},weekdays:nt,weekdaysMin:ot,weekdaysShort:st,meridiemParse:/[ap]\.?m?\.?/i},x={},mt={};function gt(e){return e&&e.toLowerCase().replace("_","-")}function _t(e){var t;if(!x[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=pt._abbr,require("./locale/"+e),vt(t)}catch(e){}return x[e]}function vt(e,t){return e&&((t=o(t)?bt(e):yt(e,t))?pt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),pt._abbr}function yt(e,t){if(null===t)return delete x[e],null;var i,n=ft;if(t.abbr=e,null!=x[e])ee("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=x[e]._config;else if(null!=t.parentLocale)if(null!=x[t.parentLocale])n=x[t.parentLocale]._config;else{if(null==(i=_t(t.parentLocale)))return mt[t.parentLocale]||(mt[t.parentLocale]=[]),mt[t.parentLocale].push({name:e,config:t}),null;n=i._config}return x[e]=new ie(te(n,t)),mt[e]&&mt[e].forEach(function(e){yt(e.name,e.config)}),vt(e),x[e]}function bt(e){var t;if(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e){if(!l(e)){if(t=_t(e))return t;e=[e]}for(var i,n,s,o,a=e,r=0;r=i&&K(o,n,!0)>=i-1)break;i--}r++}}return pt}function wt(e){var t=e._a;return t&&-2===m(e).overflow&&(t=t[Ye]<0||11Re(t[Le],t[Ye])?Ae:t[b]<0||24it(r,s,o)?m(u)._overflowWeeks=!0:null!=n?m(u)._overflowWeekday=!0:(a=et(r,l,i,s,o),u._a[Le]=a.year,u._dayOfYear=a.dayOfYear)),null!=e._dayOfYear&&(h=xt(e._a[Le],c[Le]),(e._dayOfYear>ze(h)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Qe(h,0,e._dayOfYear),e._a[Ye]=n.getUTCMonth(),e._a[Ae]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=c[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[b]&&0===e._a[Pe]&&0===e._a[Oe]&&0===e._a[Ie]&&(e._nextDay=!0,e._a[b]=0),e._d=(e._useUTC?Qe:function(e,t,i,n,s,o,a){t=new Date(e,t,i,n,s,o,a);return e<100&&0<=e&&isFinite(t.getFullYear())&&t.setFullYear(e),t}).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[b]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}var Mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tt=/Z|[+-]\d\d(?::?\d\d)?/,St=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ct=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Lt=/^\/?Date\((\-?\d+)/i;function Yt(e){var t,i,n,s,o,a,r=e._i,l=Mt.exec(r)||Dt.exec(r);if(l){for(m(e).iso=!0,t=0,i=St.length;te.valueOf():e.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},s.isLocal=function(){return!!this.isValid()&&!this._isUTC},s.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},s.isUtc=Vt,s.isUTC=Vt,s.zoneAbbr=function(){return this._isUTC?"UTC":""},s.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},s.dates=e("dates accessor is deprecated. Use date instead.",ye),s.months=e("months accessor is deprecated. Use month instead",Ge),s.years=e("years accessor is deprecated. Use year instead",Fe),s.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),s.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return o(this._isDSTShifted)&&(V(e={},this),(e=Et(e))._a?(t=(e._isUTC?$:k)(e._a),this._isDSTShifted=this.isValid()&&0"))}function i(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(t,"mouseout",function(){x(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).removeClass("ui-datepicker-next-hover")}).delegate(t,"mouseover",o)}function o(){x.datepicker._isDisabledDatepicker((_.inline?_.dpDiv.parent():_.input)[0])||(x(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),x(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).addClass("ui-datepicker-next-hover"))}function l(e,t){for(var i in x.extend(e,t),t)null==t[i]&&(e[i]=t[i])}function t(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}x.ui=x.ui||{},x.extend(x.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}}),x.fn.extend({scrollParent:function(e){var t=this.css("position"),i="absolute"===t,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,e=this.parents().filter(function(){var e=x(this);return(!i||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&e.length?e:x(this[0].ownerDocument||document)},uniqueId:(z=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++z)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}}),x.extend(x.expr[":"],{data:x.expr.createPseudo?x.expr.createPseudo(function(t){return function(e){return!!x.data(e,t)}}):function(e,t,i){return!!x.data(e,i[3])},focusable:function(e){return n(e,!isNaN(x.attr(e,"tabindex")))},tabbable:function(e){var t=x.attr(e,"tabindex"),i=isNaN(t);return(i||0<=t)&&n(e,!i)}}),x("").outerWidth(1).jquery||x.each(["Width","Height"],function(e,i){function n(e,t,i,n){return x.each(s,function(){t-=parseFloat(x.css(e,"padding"+this))||0,i&&(t-=parseFloat(x.css(e,"border"+this+"Width"))||0),n&&(t-=parseFloat(x.css(e,"margin"+this))||0)}),t}var s="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:x.fn.innerWidth,innerHeight:x.fn.innerHeight,outerWidth:x.fn.outerWidth,outerHeight:x.fn.outerHeight};x.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each(function(){x(this).css(o,n(this,e)+"px")})},x.fn["outer"+i]=function(e,t){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){x(this).css(o,n(this,e,!0,t)+"px")})}}),x.fn.addBack||(x.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),x("").data("a-b","a").removeData("a-b").data("a-b")&&(x.fn.removeData=(r=x.fn.removeData,function(e){return arguments.length?r.call(this,x.camelCase(e)):r.call(this)})),x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),x.fn.extend({focus:(H=x.fn.focus,function(t,i){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){x(e).focus(),i&&i.call(e)},t)}):H.apply(this,arguments)}),disableSelection:(s="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(s+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var t,i=x(this[0]);i.length&&i[0]!==document;){if(("absolute"===(t=i.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(i.css("zIndex"),10),!isNaN(t))&&0!==t)return t;i=i.parent()}return 0}}),x.ui.plugin={add:function(e,t,i){var n,s=x.ui[e].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([t,i[n]])},call:function(e,t,i,n){var s,o=e.plugins[t];if(o&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;o.length>s;s++)e.options[o[s][0]]&&o[s][1].apply(e.element,i)}};var s,H,r,z,j,F=0,N=Array.prototype.slice,d=(x.cleanData=(j=x.cleanData,function(e){for(var t,i,n=0;null!=(i=e[n]);n++)try{(t=x._data(i,"events"))&&t.remove&&x(i).triggerHandler("remove")}catch(e){}j(e)}),x.widget=function(e,i,t){var n,s,o,a,r={},l=e.split(".")[0];return e=e.split(".")[1],n=l+"-"+e,t||(t=i,i=x.Widget),x.expr[":"][n.toLowerCase()]=function(e){return!!x.data(e,n)},x[l]=x[l]||{},s=x[l][e],o=x[l][e]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new o(e,t)},x.extend(o,s,{version:t.version,_proto:x.extend({},t),_childConstructors:[]}),(a=new i).options=x.widget.extend({},a.options),x.each(t,function(t,n){return x.isFunction(n)?void(r[t]=function(){var e,t=this._super,i=this._superApply;return this._super=s,this._superApply=o,e=n.apply(this,arguments),this._super=t,this._superApply=i,e}):void(r[t]=n);function s(){return i.prototype[t].apply(this,arguments)}function o(e){return i.prototype[t].apply(this,e)}}),o.prototype=x.widget.extend(a,{widgetEventPrefix:s&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:n}),s?(x.each(s._childConstructors,function(e,t){var i=t.prototype;x.widget(i.namespace+"."+i.widgetName,o,t._proto)}),delete s._childConstructors):i._childConstructors.push(o),x.widget.bridge(e,o),o},x.widget.extend=function(e){for(var t,i,n=N.call(arguments,1),s=0,o=n.length;s",options:{disabled:!1,create:null},_createWidget:function(e,t){t=x(t||this.defaultElement||this)[0],this.element=x(t),this.uuid=F++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),t!==this&&(x.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=x(t.style?t.ownerDocument:t.document||t),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:x.noop,_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(x.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:x.noop,widget:function(){return this.element},option:function(e,t){var i,n,s,o=e;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof e)if(o={},e=(i=e.split(".")).shift(),i.length){for(n=o[e]=x.widget.extend({},this.options[e]),s=0;i.length-1>s;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(e=i.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=t}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];o[e]=t}return this._setOptions(o),this},_setOptions:function(e){for(var t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t)&&(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(s,o,e){var a,r=this;"boolean"!=typeof s&&(e=o,o=s,s=!1),e?(o=a=x(o),this.bindings=this.bindings.add(o)):(e=o,o=this.element,a=this.widget()),x.each(e,function(e,t){function i(){return s||!0!==r.options.disabled&&!x(this).hasClass("ui-state-disabled")?("string"==typeof t?r[t]:t).apply(r,arguments):void 0}"string"!=typeof t&&(i.guid=t.guid=t.guid||i.guid||x.guid++);var e=e.match(/^([\w:-]*)\s*(.*)$/),n=e[1]+r.eventNamespace,e=e[2];e?a.delegate(e,n,i):o.bind(n,i)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t),this.bindings=x(this.bindings.not(e).get()),this.focusable=x(this.focusable.not(e).get()),this.hoverable=x(this.hoverable.not(e).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){x(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){x(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){x(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){x(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,t,i){var n,s,o=this.options[e];if(i=i||{},(t=x.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],s=t.originalEvent)for(n in s)n in t||(t[n]=s[n]);return this.element.trigger(t,i),!(x.isFunction(o)&&!1===o.apply(this.element[0],[t].concat(i))||t.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(o,a){x.Widget.prototype["_"+o]=function(t,e,i){var n=(e="string"==typeof e?{effect:e}:e)?!0!==e&&"number"!=typeof e&&e.effect||a:o,s=!x.isEmptyObject(e="number"==typeof(e=e||{})?{duration:e}:e);e.complete=i,e.delay&&t.delay(e.delay),s&&x.effects&&x.effects.effect[n]?t[o](e):n!==o&&t[n]?t[n](e.duration,e.easing,i):t.queue(function(e){x(this)[o](),i&&i.call(t[0]),e()})}}),x.widget,!1);function W(e,t,i){return[parseFloat(e[0])*(G.test(e[0])?t/100:1),parseFloat(e[1])*(G.test(e[1])?i/100:1)]}function k(e,t){return parseInt(x.css(e,t),10)||0}x(document).mouseup(function(){d=!1}),x.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(e){return!0===x.data(e.target,t.widgetName+".preventClickEvent")?(x.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1):void 0}),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(e){var t,i,n;if(!d)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),i=1===(this._mouseDownEvent=e).which,n=!("string"!=typeof(t=this).options.cancel||!e.target.nodeName)&&x(e.target).closest(this.options.cancel).length,i&&!n&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===x.data(e.target,this.widgetName+".preventClickEvent")&&x.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),d=!0)),!0},_mouseMove:function(e){if(this._mouseMoved){if(x.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&x.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),d=!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),x.ui=x.ui||{};var u,$,M=Math.max,D=Math.abs,R=Math.round,B=/left|center|right/,q=/top|center|bottom/,U=/[\+\-]\d+(\.[\d]+)?%?/,V=/^\w+/,G=/%$/,J=x.fn.position;x.position={scrollbarWidth:function(){var e,t,i;return void 0!==u?u:(i=(t=x("
")).children()[0],x("body").append(t),e=i.offsetWidth,t.css("overflow","scroll"),e===(i=i.offsetWidth)&&(i=t[0].clientWidth),t.remove(),u=e-i)},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),t="scroll"===t||"auto"===t&&e.widthD(t+i)&&(o.horizontal="center"),fD(n+s)&&(o.vertical="middle"),o.important=M(D(t),D(i))>M(D(n),D(s))?"horizontal":"vertical",h.using.call(this,e,o)}),a.offset(x.extend(d,{using:e}))})},x.ui.position={fit:{left:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,o=e.left-t.collisionPosition.marginLeft,a=s-o,r=o+t.collisionWidth-n-s;t.collisionWidth>n?0s?0s)&&(e.left+=r+l+d):0D(n))&&(e.left+=r+l+d)},top:function(e,t){var i=t.within,n=i.offset.top+i.scrollTop,s=i.height,i=i.isWindow?i.scrollTop:i.offset.top,o=e.top-t.collisionPosition.marginTop,a=o-i,o=o+t.collisionHeight-s-i,r="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,l="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,d=-2*t.offset[1];a<0?((s=e.top+r+l+d+t.collisionHeight-s-n)<0||D(a)>s)&&(e.top+=r+l+d):0D(n))&&(e.top+=r+l+d)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}};var h,c=document.getElementsByTagName("body")[0],p=document.createElement("div"),f=document.createElement(c?"div":"body"),m={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(h in c&&x.extend(m,{position:"absolute",left:"-1000px",top:"-1000px"}),m)f.style[h]=m[h];function X(e,t,i){return t<=e&&e").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var t=this.document[0];if(this.handleElement.is(e.target))try{t.activeElement&&"body"!==t.activeElement.nodeName.toLowerCase()&&x(t.activeElement).blur()}catch(e){}},_mouseStart:function(e){var t=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),x.ui.ddmanager&&(x.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=0i[2]&&(o=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3])&&(a=i[3]+this.offset.click.top),n.grid&&(t=n.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY,a=!i||t-this.offset.click.top>=i[1]||t-this.offset.click.top>i[3]?t:t-this.offset.click.top>=i[1]?t-n.grid[1]:t+n.grid[1],e=n.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0]:this.originalPageX,o=!i||e-this.offset.click.left>=i[0]||e-this.offset.click.left>i[2]?e:e-this.offset.click.left>=i[0]?e-n.grid[0]:e+n.grid[0]),"y"===n.axis&&(o=this.originalPageX),"x"===n.axis)?this.originalPageY:a)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?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(e,t,i){return i=i||this._uiHash(),x.ui.plugin.call(this,e,[t,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),x.Widget.prototype._trigger.call(this,e,t,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),x.ui.plugin.add("draggable","connectToSortable",{start:function(t,e,i){var n=x.extend({},e,{item:i.element});i.sortables=[],x(i.options.connectToSortable).each(function(){var e=x(this).sortable("instance");e&&!e.options.disabled&&(i.sortables.push(e),e.refreshPositions(),e._trigger("activate",t,n))})},stop:function(t,e,i){var n=x.extend({},e,{item:i.element});i.cancelHelperRemoval=!1,x.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,n))})},drag:function(i,n,s){x.each(s.sortables,function(){var e=!1,t=this;t.positionAbs=s.positionAbs,t.helperProportions=s.helperProportions,t.offset.click=s.offset.click,t._intersectsWith(t.containerCache)&&(e=!0,x.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,e=this!==t&&this._intersectsWith(this.containerCache)&&x.contains(t.element[0],this.element[0])?!1:e})),e?(t.isOver||(t.isOver=1,s._parent=n.helper.parent(),t.currentItem=n.helper.appendTo(t.element).data("ui-sortable-item",!0),t.options._helper=t.options.helper,t.options.helper=function(){return n.helper[0]},i.target=t.currentItem[0],t._mouseCapture(i,!0),t._mouseStart(i,!0,!0),t.offset.click.top=s.offset.click.top,t.offset.click.left=s.offset.click.left,t.offset.parent.left-=s.offset.parent.left-t.offset.parent.left,t.offset.parent.top-=s.offset.parent.top-t.offset.parent.top,s._trigger("toSortable",i),s.dropped=t.element,x.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,t.fromOutside=s),t.currentItem&&(t._mouseDrag(i),n.position=t.position)):t.isOver&&(t.isOver=0,t.cancelHelperRemoval=!0,t.options._revert=t.options.revert,t.options.revert=!1,t._trigger("out",i,t._uiHash(t)),t._mouseStop(i,!0),t.options.revert=t.options._revert,t.options.helper=t.options._helper,t.placeholder&&t.placeholder.remove(),n.helper.appendTo(s._parent),s._refreshOffsets(i),n.position=s._generatePosition(i,!0),s._trigger("fromSortable",i),s.dropped=!1,x.each(s.sortables,function(){this.refreshPositions()}))})}}),x.ui.plugin.add("draggable","cursor",{start:function(e,t,i){var n=x("body"),i=i.options;n.css("cursor")&&(i._cursor=n.css("cursor")),n.css("cursor",i.cursor)},stop:function(e,t,i){i=i.options;i._cursor&&x("body").css("cursor",i._cursor)}}),x.ui.plugin.add("draggable","opacity",{start:function(e,t,i){t=x(t.helper),i=i.options;t.css("opacity")&&(i._opacity=t.css("opacity")),t.css("opacity",i.opacity)},stop:function(e,t,i){i=i.options;i._opacity&&x(t.helper).css("opacity",i._opacity)}}),x.ui.plugin.add("draggable","scroll",{start:function(e,t,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())},drag:function(e,t,i){var n=i.options,s=!1,o=i.scrollParentNotHidden[0],a=i.document[0];o!==a&&"HTML"!==o.tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+o.offsetHeight-e.pageY=Math.abs(d-_),s=p>=Math.abs(u-g),o=p>=Math.abs(r-m),a=p>=Math.abs(l-f),n&&(t.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top),s&&(t.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),o&&(t.position.left=i._convertPositionTo("relative",{top:0,left:r-i.helperProportions.width}).left),a)&&(t.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),h=n||s||o||a,"outer"!==c.snapMode&&(n=p>=Math.abs(d-g),s=p>=Math.abs(u-_),o=p>=Math.abs(r-f),a=p>=Math.abs(l-m),n&&(t.position.top=i._convertPositionTo("relative",{top:d,left:0}).top),s&&(t.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),o&&(t.position.left=i._convertPositionTo("relative",{top:0,left:r}).left),a)&&(t.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),!i.snapElements[v].snapping&&(n||s||o||a||h)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,x.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=n||s||o||a||h)}}),x.ui.plugin.add("draggable","stack",{start:function(e,t,i){var n,i=i.options,i=x.makeArray(x(i.stack)).sort(function(e,t){return(parseInt(x(e).css("zIndex"),10)||0)-(parseInt(x(t).css("zIndex"),10)||0)});i.length&&(n=parseInt(x(i[0]).css("zIndex"),10)||0,x(i).each(function(e){x(this).css("zIndex",n+e)}),this.css("zIndex",n+i.length))}}),x.ui.plugin.add("draggable","zIndex",{start:function(e,t,i){t=x(t.helper),i=i.options;t.css("zIndex")&&(i._zIndex=t.css("zIndex")),t.css("zIndex",i.zIndex)},stop:function(e,t,i){i=i.options;i._zIndex&&x(t.helper).css("zIndex",i._zIndex)}}),x.ui.draggable,x.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=x.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e=e||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(t.scope),t.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){x.ui.ddmanager.droppables[e]=x.ui.ddmanager.droppables[e]||[],x.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var t=0;e.length>t;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var e=x.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,t){var i;"accept"===e?this.accept=x.isFunction(t)?t:function(e){return e.is(t)}:"scope"===e&&(i=x.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(t)),this._super(e,t)},_activate:function(e){var t=x.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),t&&this._trigger("activate",e,this.ui(t))},_deactivate:function(e){var t=x.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),t&&this._trigger("deactivate",e,this.ui(t))},_over:function(e){var t=x.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(t)))},_out:function(e){var t=x.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(t)))},_drop:function(t,e){var i=e||x.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 e=x(this).droppable("instance");return e.options.greedy&&!e.options.disabled&&e.options.scope===i.options.scope&&e.accept.call(e.element[0],i.currentItem||i.element)&&x.ui.intersect(i,x.extend(e,{offset:e.element.offset()}),e.options.tolerance,t)?!(n=!0):void 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",t,this.ui(i)),this.element)},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),x.ui.intersect=function(e,t,i,n){if(!t.offset)return!1;var s=(e.positionAbs||e.position.absolute).left+e.margins.left,o=(e.positionAbs||e.position.absolute).top+e.margins.top,a=s+e.helperProportions.width,r=o+e.helperProportions.height,l=t.offset.left,d=t.offset.top,u=l+t.proportions().width,h=d+t.proportions().height;switch(i){case"fit":return l<=s&&a<=u&&d<=o&&r<=h;case"intersect":return s+e.helperProportions.width/2>l&&u>a-e.helperProportions.width/2&&o+e.helperProportions.height/2>d&&h>r-e.helperProportions.height/2;case"pointer":return X(n.pageY,d,t.proportions().height)&&X(n.pageX,l,t.proportions().width);case"touch":return(d<=o&&o<=h||d<=r&&r<=h||oi;i++)if(!(s[i].options.disabled||e&&!s[i].accept.call(s[i].element[0],e.currentItem||e.element))){for(n=0;a.length>n;n++)if(a[n]===s[i].element[0]){s[i].proportions().height=0;continue e}s[i].visible="none"!==s[i].element.css("display"),s[i].visible&&("mousedown"===o&&s[i]._activate.call(s[i],t),s[i].offset=s[i].element.offset(),s[i].proportions({width:s[i].element[0].offsetWidth,height:s[i].element[0].offsetHeight}))}},drop:function(e,t){var i=!1;return x.each((x.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&x.ui.intersect(e,this,this.options.tolerance,t)&&(i=this._drop.call(this,t)||i),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,t))}),i},dragStart:function(e,t){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||x.ui.ddmanager.prepareOffsets(e,t)})},drag:function(s,o){s.options.refreshPositions&&x.ui.ddmanager.prepareOffsets(s,o),x.each(x.ui.ddmanager.droppables[s.options.scope]||[],function(){var e,t,i,n;this.options.disabled||this.greedyChild||!this.visible||(n=!(n=x.ui.intersect(s,this,this.options.tolerance,o))&&this.isover?"isout":n&&!this.isover?"isover":null)&&(this.options.greedy&&(t=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return x(this).droppable("instance").options.scope===t})).length)&&((e=x(i[0]).droppable("instance")).greedyChild="isover"===n),e&&"isover"===n&&(e.isover=!1,e.isout=!0,e._out.call(e,o)),this[n]=!0,this["isout"===n?"isover":"isout"]=!1,this["isover"===n?"_over":"_out"].call(this,o),e)&&"isout"===n&&(e.isout=!1,e.isover=!0,e._over.call(e,o))})},dragStop:function(e,t){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||x.ui.ddmanager.prepareOffsets(e,t)}},x.ui.droppable,x.widget("ui.resizable",x.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(e){return parseInt(e,10)||0},_isNumber:function(e){return!isNaN(parseInt(e,10))},_hasScroll:function(e,t){var i;return"hidden"!==x(e).css("overflow")&&(i=!1,0").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=o.handles||(x(".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=x(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},t=0;e.length>t;t++)i=x.trim(e[t]),(n=x("
")).css({zIndex:o.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(e){var t,i,n;for(t in e=e||this.element,this.handles)this.handles[t].constructor===String?this.handles[t]=this.element.children(this.handles[t]).first().show():(this.handles[t].jquery||this.handles[t].nodeType)&&(this.handles[t]=x(this.handles[t]),this._on(this.handles[t],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=x(this.handles[t],this.element),n=/sw|ne|nw|se|n|s/.test(t)?n.outerHeight():n.outerWidth(),i=["padding",/ne|nw|n/.test(t)?"Top":/se|sw|s/.test(t)?"Bottom":/^e$/.test(t)?"Right":"Left"].join(""),e.css(i,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[t])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover(function(){s.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),x(this.element).addClass("ui-resizable-autohide").mouseenter(function(){o.disabled||(x(this).removeClass("ui-resizable-autohide"),s._handles.show())}).mouseleave(function(){o.disabled||s.resizing||(x(this).addClass("ui-resizable-autohide"),s._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();function e(e){x(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()}var t;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(e){var t,i,n=!1;for(t in this.handles)i=x(this.handles[t])[0],i!==e.target&&!x.contains(i,e.target)||(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var t,i,n=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),t=this._num(this.helper.css("top")),n.containment&&(i+=x(n.containment).scrollLeft()||0,t+=x(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:t},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:i,top:t},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1,i=x(".ui-resizable-"+this.axis).css("cursor"),x("body").css("cursor","auto"===i?this.axis+"-resize":i),s.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var t=this.originalMousePosition,i=this.axis,n=e.pageX-t.left||0,t=e.pageY-t.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(i=i.apply(this,[e,n,t]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),x.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var t,i,n,s=this.options,o=this;return this._helper&&(i=(t=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,t=t?0:o.sizeDiff.width,t={width:o.helper.width()-t,height:o.helper.height()-i},i=parseInt(o.element.css("left"),10)+(o.position.left-o.originalPosition.left)||null,n=parseInt(o.element.css("top"),10)+(o.position.top-o.originalPosition.top)||null,s.animate||this.element.css(x.extend(t,{top:n,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper)&&!s.animate&&this._proportionallyResize(),x("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),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 e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n,s=this.options,s={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1/0,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1/0};(this._aspectRatio||e)&&(e=s.minHeight*this.aspectRatio,i=s.minWidth/this.aspectRatio,t=s.maxHeight*this.aspectRatio,n=s.maxWidth/this.aspectRatio,s.minWidthe.width,a=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,r=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,d=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(e.width=t.minWidth),a&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),o&&d&&(e.left=r-t.minWidth),n&&d&&(e.left=r-t.maxWidth),a&&i&&(e.top=l-t.minHeight),s&&i&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],s=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseInt(n[t],10)||0,i[t]+=parseInt(s[t],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;this._proportionallyResizeElements.length>t;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,t=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||x("
"),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:++t.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(e,t,i){return x.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},sw:function(e,t,i){return x.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,t,i]))},ne:function(e,t,i){return x.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},nw:function(e,t,i){return x.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,t,i]))}},_propagate:function(e,t){x.ui.plugin.call(this,e,[t,this.ui()]),"resize"!==e&&this._trigger(e,t,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}}}),x.ui.plugin.add("resizable","animate",{stop:function(t){var i=x(this).resizable("instance"),e=i.options,n=i._proportionallyResizeElements,s=n.length&&/textarea/i.test(n[0].nodeName),o=s&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,s=s?0:i.sizeDiff.width,s={width:i.size.width-s,height:i.size.height-o},o=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,a=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(x.extend(s,a&&o?{top:a,left:o}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var e={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&&x(n[0]).css({width:e.width,height:e.height}),i._updateCache(e),i._propagate("resize",t)}})}}),x.ui.plugin.add("resizable","containment",{start:function(){var i,n,e,t,s=x(this).resizable("instance"),o=s.options,a=s.element,o=o.containment,a=o instanceof x?o.get(0):/parent/.test(o)?a.parent().get(0):o;a&&(s.containerElement=x(a),/document/.test(o)||o===document?(s.containerOffset={left:0,top:0},s.containerPosition={left:0,top:0},s.parentData={element:x(document),left:0,top:0,width:x(document).width(),height:x(document).height()||document.body.parentNode.scrollHeight}):(i=x(a),n=[],x(["Top","Right","Left","Bottom"]).each(function(e,t){n[e]=s._num(i.css("padding"+t))}),s.containerOffset=i.offset(),s.containerPosition=i.position(),s.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},o=s.containerOffset,t=s.containerSize.height,e=s.containerSize.width,e=s._hasScroll(a,"left")?a.scrollWidth:e,t=s._hasScroll(a)?a.scrollHeight:t,s.parentData={element:a,left:o.left,top:o.top,width:e,height:t}))},resize:function(e){var t=x(this).resizable("instance"),i=t.options,n=t.containerOffset,s=t.position,e=t._aspectRatio||e.shiftKey,o={top:0,left:0},a=t.containerElement,r=!0;a[0]!==document&&/static/.test(a.css("position"))&&(o=n),s.left<(t._helper?n.left:0)&&(t.size.width=t.size.width+(t._helper?t.position.left-n.left:t.position.left-o.left),e&&(t.size.height=t.size.width/t.aspectRatio,r=!1),t.position.left=i.helper?n.left:0),s.top<(t._helper?n.top:0)&&(t.size.height=t.size.height+(t._helper?t.position.top-n.top:t.position.top),e&&(t.size.width=t.size.height*t.aspectRatio,r=!1),t.position.top=t._helper?n.top:0),a=t.containerElement.get(0)===t.element.parent().get(0),i=/relative|absolute/.test(t.containerElement.css("position")),a&&i?(t.offset.left=t.parentData.left+t.position.left,t.offset.top=t.parentData.top+t.position.top):(t.offset.left=t.element.offset().left,t.offset.top=t.element.offset().top),s=Math.abs(t.sizeDiff.width+(t._helper?t.offset.left-o.left:t.offset.left-n.left)),a=Math.abs(t.sizeDiff.height+(t._helper?t.offset.top-o.top:t.offset.top-n.top)),s+t.size.width>=t.parentData.width&&(t.size.width=t.parentData.width-s,e)&&(t.size.height=t.size.width/t.aspectRatio,r=!1),a+t.size.height>=t.parentData.height&&(t.size.height=t.parentData.height-a,e)&&(t.size.width=t.size.height*t.aspectRatio,r=!1),r||(t.position.left=t.prevPosition.left,t.position.top=t.prevPosition.top,t.size.width=t.prevSize.width,t.size.height=t.prevSize.height)},stop:function(){var e=x(this).resizable("instance"),t=e.options,i=e.containerOffset,n=e.containerPosition,s=e.containerElement,o=x(e.helper),a=o.offset(),r=o.outerWidth()-e.sizeDiff.width,o=o.outerHeight()-e.sizeDiff.height;e._helper&&!t.animate&&/relative/.test(s.css("position"))&&x(this).css({left:a.left-n.left-i.left,width:r,height:o}),e._helper&&!t.animate&&/static/.test(s.css("position"))&&x(this).css({left:a.left-n.left-i.left,width:r,height:o})}}),x.ui.plugin.add("resizable","alsoResize",{start:function(){var e=x(this).resizable("instance").options;x(e.alsoResize).each(function(){var e=x(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})},resize:function(e,i){var t=x(this).resizable("instance"),n=t.options,s=t.originalSize,o=t.originalPosition,a={height:t.size.height-s.height||0,width:t.size.width-s.width||0,top:t.position.top-o.top||0,left:t.position.left-o.left||0};x(n.alsoResize).each(function(){var e=x(this),n=x(this).data("ui-resizable-alsoresize"),s={},t=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];x.each(t,function(e,t){var i=(n[t]||0)+(a[t]||0);i&&0<=i&&(s[t]=i||null)}),e.css(s)})},stop:function(){x(this).removeData("resizable-alsoresize")}}),x.ui.plugin.add("resizable","ghost",{start:function(){var e=x(this).resizable("instance"),t=e.options,i=e.size;e.ghost=e.originalElement.clone(),e.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 t.ghost?t.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=x(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=x(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),x.ui.plugin.add("resizable","grid",{resize:function(){var e,t=x(this).resizable("instance"),i=t.options,n=t.size,s=t.originalSize,o=t.originalPosition,a=t.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=r[0]||1,d=r[1]||1,u=Math.round((n.width-s.width)/l)*l,n=Math.round((n.height-s.height)/d)*d,h=s.width+u,c=s.height+n,p=i.maxWidth&&h>i.maxWidth,f=i.maxHeight&&c>i.maxHeight,m=i.minWidth&&i.minWidth>h,g=i.minHeight&&i.minHeight>c;i.grid=r,m&&(h+=l),g&&(c+=d),p&&(h-=l),f&&(c-=d),/^(se|s|e)$/.test(a)?(t.size.width=h,t.size.height=c):/^(ne)$/.test(a)?(t.size.width=h,t.size.height=c,t.position.top=o.top-n):/^(sw)$/.test(a)?(t.size.width=h,t.size.height=c,t.position.left=o.left-u):((c-d<=0||h-l<=0)&&(e=t._getPaddingPlusBorderDimensions(this)),0")},_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,e=this.options;this.opos=[i.pageX,i.pageY],this.options.disabled||(this.selectees=x(e.filter,this.element[0]),this._trigger("start",i),x(e.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),e.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var e=x.data(this,"selectable-item");e.startselected=!0,i.metaKey||i.ctrlKey||(e.$element.removeClass("ui-selected"),e.selected=!1,e.$element.addClass("ui-unselecting"),e.unselecting=!0,n._trigger("unselecting",i,{unselecting:e.element}))}),x(i.target).parents().addBack().each(function(){var e,t=x.data(this,"selectable-item");return t?(e=!i.metaKey&&!i.ctrlKey||!t.$element.hasClass("ui-selected"),t.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting"),t.unselecting=!e,t.selecting=e,(t.selected=e)?n._trigger("selecting",i,{selecting:t.element}):n._trigger("unselecting",i,{unselecting:t.element}),!1):void 0}))},_mouseDrag:function(i){var e,n,s,o,a,r,l;if(this.dragged=!0,!this.options.disabled)return s=(n=this).options,o=this.opos[0],a=this.opos[1],r=i.pageX,l=i.pageY,rr||o>e.right||e.top>l||a>e.bottom):"fit"===s.tolerance&&(t=e.left>o&&r>e.right&&e.top>a&&l>e.bottom),t?(e.selected&&(e.$element.removeClass("ui-selected"),e.selected=!1),e.unselecting&&(e.$element.removeClass("ui-unselecting"),e.unselecting=!1),e.selecting||(e.$element.addClass("ui-selecting"),e.selecting=!0,n._trigger("selecting",i,{selecting:e.element}))):(e.selecting&&((i.metaKey||i.ctrlKey)&&e.startselected?(e.$element.removeClass("ui-selecting"),e.selecting=!1,e.$element.addClass("ui-selected"),e.selected=!0):(e.$element.removeClass("ui-selecting"),e.selecting=!1,e.startselected&&(e.$element.addClass("ui-unselecting"),e.unselecting=!0),n._trigger("unselecting",i,{unselecting:e.element}))),!e.selected||i.metaKey||i.ctrlKey||e.startselected||(e.$element.removeClass("ui-selected"),e.selected=!1,e.$element.addClass("ui-unselecting"),e.unselecting=!0,n._trigger("unselecting",i,{unselecting:e.element}))))}),!1},_mouseStop:function(t){var i=this;return this.dragged=!1,x(".ui-unselecting",this.element[0]).each(function(){var e=x.data(this,"selectable-item");e.$element.removeClass("ui-unselecting"),e.unselecting=!1,e.startselected=!1,i._trigger("unselected",t,{unselected:e.element})}),x(".ui-selecting",this.element[0]).each(function(){var e=x.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected"),e.selecting=!1,e.selected=!0,e.startselected=!0,i._trigger("selected",t,{selected:e.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),x.widget("ui.sortable",x.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},_isOverAxis:function(e,t,i){return t<=e&&e*{ cursor: "+o.cursor+" !important; }").appendTo(s)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return x.ui.ddmanager&&(x.ui.ddmanager.current=this),x.ui.ddmanager&&!o.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var t,i,n,s,o=this.options,a=!1;for(this.position=this._generatePosition(e),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-e.pageYe[this.floating?"width":"height"]?d&&u:t+this.helperProportions.width/2>o&&a>i-this.helperProportions.width/2&&n+this.helperProportions.height/2>r&&l>s-this.helperProportions.height/2},_intersectsWithPointer:function(e){var t="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),e="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),t=t&&e,e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return!!t&&(this.floating?i&&"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),e=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),i=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?"right"===n&&e||"left"===n&&!e:i&&("down"===i&&t||"up"===i&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!=e&&(0t;t++)if(i[t]===e.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var t,i,n,s,o,a,r,l,d=this.items,u=[[x.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):x(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(t=h.length-1;0<=t;t--)for(i=(n=x(h[t],this.document[0])).length-1;0<=i;i--)(s=x.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&(u.push([x.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):x(s.options.items,s.element),s]),this.containers.push(s));for(t=u.length-1;0<=t;t--)for(o=u[t][1],l=(a=u[t][i=0]).length;i",i.document[0]).addClass(n||i.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===e?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),x("",i.document[0]).appendTo(t)):"tr"===e?i._createTrPlaceholder(i.currentItem,t):"img"===e&&t.attr("src",i.currentItem.attr("src")),n||t.css("visibility","hidden"),t},update:function(e,t){n&&!s.forcePlaceholderSize||(t.height()||t.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),t.width())||t.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=x(s.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),s.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(e,t){var i=this;e.children().each(function(){x(" ",i.document[0]).attr("colspan",x(this).attr("colspan")||1).appendTo(t)})},_contactContainers:function(e){for(var t,i,n,s,o,a,r,l,d,u=null,h=null,c=this.containers.length-1;0<=c;c--)if(!x.contains(this.currentItem[0],this.containers[c].element[0]))if(this._intersectsWith(this.containers[c].containerCache)){if(u&&x.contains(this.containers[c].element[0],u.element[0]))continue;u=this.containers[c],h=c}else this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",e,this._uiHash(this)),this.containers[c].containerCache.over=0);if(u)if(1===this.containers.length)this.containers[h].containerCache.over||(this.containers[h]._trigger("over",e,this._uiHash(this)),this.containers[h].containerCache.over=1);else{for(i=1e4,n=null,s=(l=u.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",d=l?"clientX":"clientY",t=this.items.length-1;0<=t;t--)x.contains(this.containers[h].element[0],this.items[t].item[0])&&this.items[t].item[0]!==this.currentItem[0]&&(a=this.items[t].item.offset()[s],r=!1,e[d]-a>this.items[t][o]/2&&(r=!0),i>Math.abs(e[d]-a))&&(i=Math.abs(e[d]-a),n=this.items[t],this.direction=r?"up":"down");(n||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[h]?this.currentContainer.containerCache.over||(this.containers[h]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1):(n?this._rearrange(e,n,null,!0):this._rearrange(e,null,this.containers[h].element,!0),this._trigger("change",e,this._uiHash()),this.containers[h]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[h],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[h]._trigger("over",e,this._uiHash(this)),this.containers[h].containerCache.over=1))}},_createHelper:function(e){var t=this.options,e=x.isFunction(t.helper)?x(t.helper.apply(this.element[0],[e,this.currentItem])):"clone"===t.helper?this.currentItem.clone():this.currentItem;return e.parents("body").length||x("parent"!==t.appendTo?t.appendTo:this.currentItem[0].parentNode)[0].appendChild(e[0]),e[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")}),e[0].style.width&&!t.forceHelperSize||e.width(this.currentItem.width()),e[0].style.height&&!t.forceHelperSize||e.height(this.currentItem.height()),e},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),"left"in(e=x.isArray(e)?{left:+e[0],top:+e[1]||0}:e)&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),{top:(e=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&x.ui.ie?{top:0,left:0}:e).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var e;return"relative"===this.cssPosition?{top:(e=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_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 e,t,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(e=x(i.containment)[0],i=x(i.containment).offset(),t="hidden"!==x(e).css("overflow"),this.containment=[i.left+(parseInt(x(e).css("borderLeftWidth"),10)||0)+(parseInt(x(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(x(e).css("borderTopWidth"),10)||0)+(parseInt(x(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(x(e).css("borderLeftWidth"),10)||0)-(parseInt(x(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(x(e).css("borderTopWidth"),10)||0)-(parseInt(x(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,t){t=t||this.position;var e="absolute"===e?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,n=/(html|body)/i.test(i[0].tagName);return{top:t.top+this.offset.relative.top*e+this.offset.parent.top*e-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():n?0:i.scrollTop())*e,left:t.left+this.offset.relative.left*e+this.offset.parent.left*e-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():n?0:i.scrollLeft())*e}},_generatePosition:function(e){var t=this.options,i=e.pageX,n=e.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[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&&(e.pageX-this.offset.click.leftthis.containment[2]&&(i=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3])&&(n=this.containment[3]+this.offset.click.top),t.grid)&&(e=this.originalPageY+Math.round((n-this.originalPageY)/t.grid[1])*t.grid[1],n=!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-t.grid[1]:e+t.grid[1],e=this.originalPageX+Math.round((i-this.originalPageX)/t.grid[0])*t.grid[0],i=!this.containment||e-this.offset.click.left>=this.containment[0]&&e-this.offset.click.left<=this.containment[2]?e:e-this.offset.click.left>=this.containment[0]?e-t.grid[0]:e+t.grid[0]),{top:n-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.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(e,t){function i(t,i,n){return function(e){n._trigger(t,e,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&&!t&&s.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||s.push(function(e){this._trigger("update",e,this._uiHash())}),this===this.currentContainer||t||(s.push(function(e){this._trigger("remove",e,this._uiHash())}),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer))),n=this.containers.length-1;0<=n;n--)t||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,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=x(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():x()}},_createIcons:function(){var e=this.options.icons;e&&(x("").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){return"active"===e?void this._activate(t):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t)&&this._createIcons(),void("disabled"===e&&(this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t))))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var t=x.ui.keyCode,i=this.headers.length,n=this.headers.index(e.target),s=!1;switch(e.keyCode){case t.RIGHT:case t.DOWN:s=this.headers[(n+1)%i];break;case t.LEFT:case t.UP:s=this.headers[(n-1+i)%i];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:s=this.headers[0];break;case t.END:s=this.headers[i-1]}s&&(x(e.target).attr("tabIndex",-1),x(s).attr("tabIndex",0),s.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===x.ui.keyCode.UP&&e.ctrlKey&&x(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=x()):!1===e.active?this._activate(0):this.active.length&&!x.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=x()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var i,e=this.options,t=e.heightStyle,n=this.element.parent();this.active=this._findActive(e.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var e=x(this),t=e.uniqueId().attr("id"),i=e.next(),n=i.uniqueId().attr("id");e.attr("aria-controls",n),i.attr("aria-labelledby",t)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(e.event),"fill"===t?(i=n.height(),this.element.siblings(":visible").each(function(){var e=x(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=x(this).outerHeight(!0)}),this.headers.next().each(function(){x(this).height(Math.max(0,i-x(this).innerHeight()+x(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.headers.next().each(function(){i=Math.max(i,x(this).css("height","").height())}).height(i))},_activate:function(e){e=this._findActive(e)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:x.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):x()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&x.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var t=this.options,i=this.active,n=x(e.currentTarget),s=n[0]===i[0],o=s&&t.collapsible,a=o?x():n.next(),r=i.next(),r={oldHeader:i,oldPanel:r,newHeader:o?x():n,newPanel:a};e.preventDefault(),s&&!t.collapsible||!1===this._trigger("beforeActivate",e,r)||(t.active=!o&&this.headers.index(n),this.active=s?x():n,this._toggle(r),i.removeClass("ui-accordion-header-active ui-state-active"),t.icons&&i.children(".ui-accordion-header-icon").removeClass(t.icons.activeHeader).addClass(t.icons.header),s)||(n.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),t.icons&&n.children(".ui-accordion-header-icon").removeClass(t.icons.header).addClass(t.icons.activeHeader),n.next().addClass("ui-accordion-content-active"))},_toggle:function(e){var t=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=t,this.prevHide=i,this.options.animate?this._animate(t,i,e):(i.hide(),t.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),t.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):t.length&&this.headers.filter(function(){return 0===parseInt(x(this).attr("tabIndex"),10)}).attr("tabIndex",-1),t.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,i,t){function n(){o._toggleComplete(t)}var s,o=this,a=0,r=e.css("box-sizing"),l=e.length&&(!i.length||e.index()",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},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(e){e.preventDefault()},"click .ui-menu-item":function(e){var t=x(e.target);!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&x(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(e){var t;this.previousFilter||((t=x(e.currentTarget)).siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,t))},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,i)},blur:function(e){this._delay(function(){x.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),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 e=x(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var t,i,n,s=!0;switch(e.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(e);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case x.ui.keyCode.HOME:this._move("first","first",e);break;case x.ui.keyCode.END:this._move("last","last",e);break;case x.ui.keyCode.UP:this.previous(e);break;case x.ui.keyCode.DOWN:this.next(e);break;case x.ui.keyCode.LEFT:this.collapse(e);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(e);break;case x.ui.keyCode.ESCAPE:this.collapse(e);break;default:s=!1,t=this.previousFilter||"",i=String.fromCharCode(e.keyCode),n=!1,clearTimeout(this.filterTimer),i===t?n=!0:i=t+i,t=this._filterMenuItems(i),(t=n&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}s&&e.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(e):this.select(e))},refresh:function(){var t=this,n=this.options.icons.submenu,e=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),e.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 e=x(this),t=e.parent(),i=x("").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),(e=e.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=x(this);t._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")}),e.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons"===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,n;this._hasScroll()&&(t=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-t-i,i=this.activeMenu.scrollTop(),n=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):n",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,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this.element.prop("isContentEditable"),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var t=x.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:n=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!n){var t=x.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){return s?(s=!1,void e.preventDefault()):void this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),void this._change(e))}}),this._initSource(),this.menu=x("