text: (function($,undefined){var ajax_loaded_scripts={};function AceAjax(contentArea,options){var $contentArea=$(contentArea);var self=this;var content_url=options.content_url||false;var default_url=options.default_url||false;var loading_icon=options.loading_icon||"fa-spinner fa-2x orange";var loading_text=options.loading_text||"";var update_breadcrumbs=options.update_breadcrumbs||options.update_breadcrumbs===undefined;var update_title=options.update_title||options.update_breadcrumbs===undefined;var update_active=options.update_active||options.update_breadcrumbs===undefined;var close_active=options.close_active||false;var max_load_wait=options.max_load_wait||false;var working=false;this.loadUrl=function(hash){var url=false;hash=hash.replace(/^(\#\!)?\#/,"");if(typeof content_url==="function"){url=content_url(hash)}if(typeof url==="string"){this.getUrl(url,hash,false)}};this.getUrl=function(url,hash,manual_trigger){if(working){return}var event;$contentArea.trigger(event=$.Event("ajaxloadstart"),{url:url,hash:hash});if(event.isDefaultPrevented()){return}self.startLoading();$.ajax({"url":url}).error(function(){$contentArea.trigger("ajaxloaderror",{url:url,hash:hash});self.stopLoading(true)}).done(function(result){$contentArea.trigger("ajaxloaddone",{url:url,hash:hash});var link_element=null,link_text="";if(typeof update_active==="function"){link_element=update_active.call(null,hash,url)}else{if(update_active===true){link_element=$('a[data-url="'+hash+'"]');if(link_element.length>0){var nav=link_element.closest(".nav");if(nav.length>0){nav.find(".active").each(function(){var $class="active";if($(this).hasClass("hover")||close_active){$class+=" open"}$(this).removeClass($class);if(close_active){$(this).find(" > .submenu").css("display","")}});var active_li=link_element.closest("li").addClass("active").parents(".nav li").addClass("active open");nav.closest(".sidebar[data-sidebar-scroll=true]").each(function(){var $this=$(this);$this.ace_sidebar_scroll("reset");if(manual_trigger){$this.ace_sidebar_scroll("scroll_to_active")
  }})}}}}if(typeof update_breadcrumbs==="function"){link_text=update_breadcrumbs.call(null,hash,url,link_element)}else{if(update_breadcrumbs===true&&link_element!=null&&link_element.length>0){link_text=updateBreadcrumbs(link_element)}}result=String(result).replace(/<(title|link)([\s\>])/gi,'<div class="hidden ajax-append-$1"$2').replace(/<\/(title|link)\>/gi,"</div>");$contentArea.empty().html(result);$contentArea.css("opacity",0.6);setTimeout(function(){$("head").find("link.ace-ajax-stylesheet").remove();var main_selectors=["link.ace-main-stylesheet","link#main-ace-style",'link[href*="/ace.min.css"]','link[href*="/ace.css"]'];var ace_style=[];for(var m=0;m<main_selectors.length;m++){ace_style=$("head").find(main_selectors[m]).first();if(ace_style.length>0){break}}$contentArea.find(".ajax-append-link").each(function(e){var $link=$(this);if($link.attr("href")){var new_link=jQuery("<link />",{type:"text/css",rel:"stylesheet","class":"ace-ajax-stylesheet"});if(ace_style.length>0){new_link.insertBefore(ace_style)}else{new_link.appendTo("head")}new_link.attr("href",$link.attr("href"))}$link.remove()})},10);if(typeof update_title==="function"){update_title.call(null,hash,url,link_text)}else{if(update_title===true){updateTitle(link_text)}}if(!manual_trigger){$("html,body").animate({scrollTop:0},250)}$contentArea.trigger("ajaxloadcomplete",{url:url,hash:hash});self.stopLoading()})};var loadTimer=null;this.startLoading=function(){if(working){return}working=true;$contentArea.css("opacity",0.25).prevAll(".ajax-loading-overlay").remove();$('<div class="ajax-loading-overlay"><i class="ajax-loading-icon fa fa-spin '+loading_icon+'"></i> '+loading_text+"</div>").insertBefore(contentArea);if(max_load_wait!==false){loadTimer=setTimeout(function(){loadTimer=null;if(!working){return}var event;$contentArea.trigger(event=$.Event("ajaxloadlong"));if(event.isDefaultPrevented()){return}self.stopLoading(true)},max_load_wait*1000)}};this.stopLoading=function(stopNow){if(stopNow===true){working=false;
  $contentArea.css("opacity",1).prevAll(".ajax-loading-overlay").remove();if(loadTimer!=null){clearTimeout(loadTimer);loadTimer=null}}else{$contentArea.css("opacity",0.75);$contentArea.one("ajaxscriptsloaded",function(){self.stopLoading(true)})}};function updateBreadcrumbs(link_element){var link_text="";var breadcrumbs=$(".breadcrumb");if(breadcrumbs.length>0&&breadcrumbs.is(":visible")){breadcrumbs.find("> li:not(:first-child)").remove();var i=0;link_element.parents(".nav li").each(function(){var link=$(this).find("> a");var link_clone=link.clone();link_clone.find("i,.fa,.glyphicon,.ace-icon,.menu-icon,.badge,.label").remove();var text=link_clone.text();link_clone.remove();var href=link.attr("href");if(i==0){var li=$('<li class="active"></li>').appendTo(breadcrumbs);li.text(text);link_text=text}else{var li=$("<li><a /></li>").insertAfter(breadcrumbs.find("> li:first-child"));li.find("a").attr("href",href).text(text)}i++})}return link_text}function updateTitle(link_text){var $title=$contentArea.find(".ajax-append-title");if($title.length>0){document.title=$title.text();$title.remove()}else{if(link_text.length>0){var extra=$.trim(String(document.title).replace(/^(.*)[\-]/,""));if(extra){extra=" - "+extra}link_text=$.trim(link_text)+extra}}}this.loadScripts=function(scripts,callback){$.ajaxPrefilter("script",function(opts){opts.cache=true});setTimeout(function(){function finishLoading(){if(typeof callback==="function"){callback()}$('.btn-group[data-toggle="buttons"] > .btn').button();$contentArea.trigger("ajaxscriptsloaded")}var deferred_count=0;var resolved=0;for(var i=0;i<scripts.length;i++){if(scripts[i]){(function(){var script_name="js-"+scripts[i].replace(/[^\w\d\-]/g,"-").replace(/\-\-/g,"-");if(ajax_loaded_scripts[script_name]!==true){deferred_count++}})()}}function nextScript(index){index+=1;if(index<scripts.length){loadScript(index)}else{finishLoading()}}function loadScript(index){index=index||0;if(!scripts[index]){return nextScript(index)}var script_name="js-"+scripts[index].replace(/[^\w\d\-]/g,"-").replace(/\-\-/g,"-");
  if(ajax_loaded_scripts[script_name]!==true){$.getScript(scripts[index]).done(function(){ajax_loaded_scripts[script_name]=true}).complete(function(){resolved++;if(resolved>=deferred_count&&working){finishLoading()}else{nextScript(index)}})}else{nextScript(index)}}if(deferred_count>0){loadScript()}else{finishLoading()}},10)};$(window).off("hashchange.ace_ajax").on("hashchange.ace_ajax",function(e,manual_trigger){var hash=$.trim(window.location.hash);if(!hash||hash.length==0){return}self.loadUrl(hash)}).trigger("hashchange.ace_ajax",[true]);var hash=$.trim(window.location.hash);if(!hash&&default_url){window.location.hash=default_url}}$.fn.aceAjax=$.fn.ace_ajax=function(option,value,value2){var method_call;var $set=this.each(function(){var $this=$(this);var data=$this.data("ace_ajax");var options=typeof option==="object"&&option;if(!data){$this.data("ace_ajax",(data=new AceAjax(this,options)))}if(typeof option==="string"&&typeof data[option]==="function"){if(value2!=undefined){method_call=data[option](value,value2)}else{method_call=data[option](value)}}});return(method_call===undefined)?$set:method_call}})(window.jQuery);
  (function($,undefined){if(ace.vars["very_old_ie"]){return}var hasTouch=ace.vars["touch"];var nativeScroll=ace.vars["old_ie"]||hasTouch;var is_element_pos="getComputedStyle" in window?function(el,pos){el.offsetHeight;return window.getComputedStyle(el).position==pos}:function(el,pos){el.offsetHeight;return $(el).css("position")==pos};$(window).on("resize.sidebar.ace_hover",function(){$(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("update_vars").ace_sidebar_hover("reset")});$(document).on("settings.ace.ace_hover",function(e,event_name,event_val){if(event_name=="sidebar_collapsed"){$(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("reset")}else{if(event_name=="navbar_fixed"){$(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("update_vars")}}});var sidebars=[];function Sidebar_Hover(sidebar,settings){var self=this;var $sidebar=$(sidebar),nav_list=$sidebar.find(".nav-list").get(0);$sidebar.attr("data-sidebar-hover","true");sidebars.push($sidebar);var sidebar_vars={};var old_ie=ace.vars["old_ie"];var hover_delay=settings.sub_hover_delay||ace.helper.intAttr(sidebar,"data-sub-hover-delay")||750;var scroll_style=settings.sub_scroll_style||$sidebar.attr("data-sub-scroll-style")||"no-track scroll-thin";var scroll_right=false;if(hasTouch){hover_delay=parseInt(Math.max(hover_delay,2500))}var $window=$(window);var $navbar=$(".navbar").eq(0);var navbar_fixed=$navbar.css("position")=="fixed";this.update_vars=function(){navbar_fixed=$navbar.css("position")=="fixed"};self.dirty=false;this.reset=function(){if(self.dirty==false){return}self.dirty=false;$sidebar.find(".submenu").each(function(){var $sub=$(this),li=$sub.parent();$sub.css({"top":"","bottom":"","max-height":""});if($sub.hasClass("ace-scroll")){$sub.ace_scroll("disable")}else{$sub.removeClass("sub-scroll")}if(is_element_pos(this,"absolute")){$sub.addClass("can-scroll")}else{$sub.removeClass("can-scroll")}li.removeClass("pull_up").find(".menu-text:first").css("margin-top","")});$sidebar.find(".hover-show").removeClass("hover-show hover-shown hover-flip")
  };this.updateStyle=function(newStyle){scroll_style=newStyle;$sidebar.find(".submenu.ace-scroll").ace_scroll("update",{styleClass:newStyle})};this.changeDir=function(dir){scroll_right=(dir==="right")};var lastScrollHeight=-1;if(!nativeScroll){$sidebar.on("hide.ace.submenu.sidebar_hover",".submenu",function(e){if(lastScrollHeight<1){return}e.stopPropagation();var $sub=$(this).closest(".ace-scroll.can-scroll");if($sub.length==0||!is_element_pos($sub[0],"absolute")){return}if($sub[0].scrollHeight-this.scrollHeight<lastScrollHeight){$sub.ace_scroll("disable")}})}if(!nativeScroll){$sidebar.on("shown.ace.submenu.sidebar_hover hidden.ace.submenu.sidebar_hover",".submenu",function(e){if(lastScrollHeight<1){return}var $sub=$(this).closest(".ace-scroll.can-scroll");if($sub.length==0||!is_element_pos($sub[0],"absolute")){return}var sub_h=$sub[0].scrollHeight;if(lastScrollHeight>14&&sub_h-lastScrollHeight>4){$sub.ace_scroll("enable").ace_scroll("reset")}else{$sub.ace_scroll("disable")}})}var currentScroll=-1;var event_1=!hasTouch?"mouseenter.sub_hover":"touchstart.sub_hover";var event_2=!hasTouch?"mouseleave.sub_hover":"touchend.sub_hover touchcancel.sub_hover";$sidebar.on(event_1,".nav-list li, .sidebar-shortcuts",function(e){sidebar_vars=$sidebar.ace_sidebar("vars");if(sidebar_vars["collapsible"]){return}var $this=$(this);var shortcuts=false;var has_hover=$this.hasClass("hover");var sub=$this.find("> .submenu").get(0);if(!(sub||((this.parentNode==nav_list||has_hover||(shortcuts=$this.hasClass("sidebar-shortcuts")))))){if(sub){$(sub).removeClass("can-scroll")}return}var target_element=sub,is_abs=false;if(!target_element&&this.parentNode==nav_list){target_element=$this.find("> a > .menu-text").get(0)}if(!target_element&&shortcuts){target_element=$this.find(".sidebar-shortcuts-large").get(0)}if((!target_element||!(is_abs=is_element_pos(target_element,"absolute")))&&!has_hover){if(sub){$(sub).removeClass("can-scroll")}return}var sub_hide=getSubHide(this);if(sub){if(is_abs){self.dirty=true;
  var newScroll=ace.helper.scrollTop();if(!sub_hide.is_visible()||(!hasTouch&&newScroll!=currentScroll)||old_ie){$(sub).addClass("can-scroll");if(!old_ie&&!hasTouch){adjust_submenu.call(this,sub)}else{var that=this;setTimeout(function(){adjust_submenu.call(that,sub)},0)}}currentScroll=newScroll}else{$(sub).removeClass("can-scroll")}}sub_hide.show()}).on(event_2,".nav-list li, .sidebar-shortcuts",function(e){sidebar_vars=$sidebar.ace_sidebar("vars");if(sidebar_vars["collapsible"]){return}if(!$(this).hasClass("hover-show")){return}getSubHide(this).hideDelay()});function subHide(li_sub){var self=li_sub,$self=$(self);var timer=null;var visible=false;this.show=function(){if(timer!=null){clearTimeout(timer)}timer=null;$self.addClass("hover-show hover-shown");visible=true;for(var i=0;i<sidebars.length;i++){sidebars[i].find(".hover-show").not(".hover-shown").each(function(){getSubHide(this).hide()})}};this.hide=function(){visible=false;$self.removeClass("hover-show hover-shown hover-flip");if(timer!=null){clearTimeout(timer)}timer=null;var sub=$self.find("> .submenu").get(0);if(sub){getSubScroll(sub,"hide")}};this.hideDelay=function(callback){if(timer!=null){clearTimeout(timer)}$self.removeClass("hover-shown");timer=setTimeout(function(){visible=false;$self.removeClass("hover-show hover-flip");timer=null;var sub=$self.find("> .submenu").get(0);if(sub){getSubScroll(sub,"hide")}if(typeof callback==="function"){callback.call(this)}},hover_delay)};this.is_visible=function(){return visible}}function getSubHide(el){var sub_hide=$(el).data("subHide");if(!sub_hide){$(el).data("subHide",(sub_hide=new subHide(el)))}return sub_hide}function getSubScroll(el,func){var sub_scroll=$(el).data("ace_scroll");if(!sub_scroll){return false}if(typeof func==="string"){sub_scroll[func]();return true}return sub_scroll}function adjust_submenu(sub){var $li=$(this);var $sub=$(sub);sub.style.top="";sub.style.bottom="";var menu_text=null;if(sidebar_vars["minimized"]&&(menu_text=$li.find(".menu-text").get(0))){menu_text.style.marginTop=""
  }var scroll=ace.helper.scrollTop();var navbar_height=0;var $scroll=scroll;if(navbar_fixed){navbar_height=sidebar.offsetTop;$scroll+=navbar_height+1}var off=$li.offset();off.top=parseInt(off.top);var extra=0,parent_height;sub.style.maxHeight="";var sub_h=sub.scrollHeight;var parent_height=$li.height();if(menu_text){extra=parent_height;off.top+=extra}var sub_bottom=parseInt(off.top+sub_h);var move_up=0;var winh=$window.height();var top_space=parseInt(off.top-$scroll-extra);var win_space=winh;var horizontal=sidebar_vars["horizontal"],horizontal_sub=false;if(horizontal&&this.parentNode==nav_list){move_up=0;off.top+=$li.height();horizontal_sub=true}if(!horizontal_sub&&(move_up=(sub_bottom-(winh+scroll)))>=0){move_up=move_up<top_space?move_up:top_space;if(move_up==0){move_up=20}if(top_space-move_up>10){move_up+=parseInt(Math.min(25,top_space-move_up))}if(off.top+(parent_height-extra)>(sub_bottom-move_up)){move_up-=(off.top+(parent_height-extra)-(sub_bottom-move_up))}if(move_up>0){sub.style.top=-(move_up)+"px";if(menu_text){menu_text.style.marginTop=-(move_up)+"px"}}}if(move_up<0){move_up=0}var pull_up=move_up>0&&move_up>parent_height-20;if(pull_up){$li.addClass("pull_up")}else{$li.removeClass("pull_up")}if(horizontal){if($li.parent().parent().hasClass("hover-flip")){$li.addClass("hover-flip")}else{var sub_off=$sub.offset();var sub_w=$sub.width();var win_w=$window.width();if(sub_off.left+sub_w>win_w){$li.addClass("hover-flip")}}}var has_hover=$li.hasClass("hover")&&!sidebar_vars["mobile_view"];if(has_hover&&$sub.find("> li > .submenu").length>0){return}var scroll_height=(win_space-(off.top-scroll))+(move_up);var tmp=move_up-scroll_height;if(tmp>0&&tmp<parent_height){scroll_height+=parseInt(Math.max(parent_height,parent_height-tmp))}scroll_height-=5;if(scroll_height<90){return}var ace_scroll=false;if(!nativeScroll){ace_scroll=getSubScroll(sub);if(ace_scroll==false){$sub.ace_scroll({observeContent:true,detached:true,updatePos:false,reset:true,mouseWheelLock:true,styleClass:scroll_style});
  ace_scroll=getSubScroll(sub);var track=ace_scroll.get_track();if(track){$sub.after(track)}}ace_scroll.update({size:scroll_height})}else{$sub.addClass("sub-scroll").css("max-height",(scroll_height)+"px")}lastScrollHeight=scroll_height;if(!nativeScroll&&ace_scroll){if(scroll_height>14&&sub_h-scroll_height>4){ace_scroll.enable();ace_scroll.reset()}else{ace_scroll.disable()}var track=ace_scroll.get_track();if(track){track.style.top=-(move_up-extra-1)+"px";var off=$sub.position();var left=off.left;if(!scroll_right){left+=($sub.outerWidth()-ace_scroll.track_size())}else{left+=2}track.style.left=parseInt(left)+"px";if(horizontal_sub){track.style.left=parseInt(left-2)+"px";track.style.top=parseInt(off.top)+(menu_text?extra-2:0)+"px"}}}if(ace.vars["safari"]){ace.helper.redraw(sub)}}}$.fn.ace_sidebar_hover=function(option,value){var method_call;var $set=this.each(function(){var $this=$(this);var data=$this.data("ace_sidebar_hover");var options=typeof option==="object"&&option;if(!data){$this.data("ace_sidebar_hover",(data=new Sidebar_Hover(this,options)))}if(typeof option==="string"&&typeof data[option]==="function"){method_call=data[option](value)}});return(method_call===undefined)?$set:method_call}})(window.jQuery);
  (function($,undefined){var old_safari=ace.vars["safari"]&&navigator.userAgent.match(/version\/[1-5]/i);var is_element_pos="getComputedStyle" in window?function(el,pos){el.offsetHeight;return window.getComputedStyle(el).position==pos}:function(el,pos){el.offsetHeight;return $(el).css("position")==pos};function Sidebar_Scroll(sidebar,settings){var self=this;var $window=$(window);var $sidebar=$(sidebar),$nav=$sidebar.find(".nav-list"),$toggle=$sidebar.find(".sidebar-toggle").eq(0),$shortcuts=$sidebar.find(".sidebar-shortcuts").eq(0);var ace_sidebar=$sidebar.ace_sidebar("ref");$sidebar.attr("data-sidebar-scroll","true");var nav=$nav.get(0);if(!nav){return}var scroll_div=null,scroll_content=null,scroll_content_div=null,bar=null,track=null,ace_scroll=null;var scroll_to_active=settings.scroll_to_active||ace.helper.boolAttr(sidebar,"data-scroll-to-active")||false,include_shortcuts=settings.include_shortcuts||ace.helper.boolAttr(sidebar,"data-scroll-include-shortcuts")||false,include_toggle=settings.include_toggle||ace.helper.boolAttr(sidebar,"data-scroll-include-toggle")||false,smooth_scroll=settings.smooth_scroll||ace.helper.intAttr(sidebar,"data-scroll-smooth")||false,scrollbars_outside=settings.outside||ace.helper.boolAttr(sidebar,"data-scroll-outside")||false,scroll_style=settings.scroll_style||$sidebar.attr("data-scroll-style")||"",only_if_fixed=true;var lockAnyway=settings.mousewheel_lock||ace.helper.boolAttr(sidebar,"data-mousewheel-lock")||false;this.is_scrolling=false;var _initiated=false;this.sidebar_fixed=is_element_pos(sidebar,"fixed");var $avail_height,$content_height;var available_height=function(){var offset=$nav.parent().offset();if(self.sidebar_fixed){offset.top-=ace.helper.scrollTop()}return $window.innerHeight()-offset.top-(include_toggle?0:$toggle.outerHeight())};var content_height=function(){return nav.clientHeight};var initiate=function(on_page_load){if(_initiated){return}if(!self.sidebar_fixed){return}$nav.wrap('<div class="nav-wrap-up pos-rel" />');$nav.after("<div><div></div></div>");
  $nav.wrap('<div class="nav-wrap" />');if(!include_toggle){$toggle.css({"z-index":1})}if(!include_shortcuts){$shortcuts.css({"z-index":99})}scroll_div=$nav.parent().next().ace_scroll({size:available_height(),mouseWheelLock:true,hoverReset:false,dragEvent:true,styleClass:scroll_style,touchDrag:false}).closest(".ace-scroll").addClass("nav-scroll");ace_scroll=scroll_div.data("ace_scroll");scroll_content=scroll_div.find(".scroll-content").eq(0);scroll_content_div=scroll_content.find(" > div").eq(0);track=$(ace_scroll.get_track());bar=track.find(".scroll-bar").eq(0);if(include_shortcuts&&$shortcuts.length!=0){$nav.parent().prepend($shortcuts).wrapInner("<div />");$nav=$nav.parent()}if(include_toggle&&$toggle.length!=0){$nav.append($toggle);$nav.closest(".nav-wrap").addClass("nav-wrap-t")}$nav.css({position:"relative"});if(scrollbars_outside===true){scroll_div.addClass("scrollout")}nav=$nav.get(0);nav.style.top=0;scroll_content.on("scroll.nav",function(){nav.style.top=(-1*this.scrollTop)+"px"});$nav.on(!!$.event.special.mousewheel?"mousewheel.ace_scroll":"mousewheel.ace_scroll DOMMouseScroll.ace_scroll",function(event){if(!self.is_scrolling||!ace_scroll.is_active()){return !lockAnyway}return scroll_div.trigger(event)});$nav.on("mouseenter.ace_scroll",function(){track.addClass("scroll-hover")}).on("mouseleave.ace_scroll",function(){track.removeClass("scroll-hover")});var content=scroll_content.get(0);$nav.on("ace_drag.nav",function(event){if(!self.is_scrolling||!ace_scroll.is_active()){event.retval.cancel=true;return}if($(event.target).closest(".can-scroll").length!=0){event.retval.cancel=true;return}if(event.direction=="up"||event.direction=="down"){ace_scroll.move_bar(true);var distance=event.dy;distance=parseInt(Math.min($avail_height,distance));if(Math.abs(distance)>2){distance=distance*2}if(distance!=0){content.scrollTop=content.scrollTop+distance;nav.style.top=(-1*content.scrollTop)+"px"}}});if(smooth_scroll){$nav.on("touchstart.nav MSPointerDown.nav pointerdown.nav",function(event){$nav.css("transition-property","none");
  bar.css("transition-property","none")}).on("touchend.nav touchcancel.nav MSPointerUp.nav MSPointerCancel.nav pointerup.nav pointercancel.nav",function(event){$nav.css("transition-property","top");bar.css("transition-property","top")})}if(old_safari&&!include_toggle){var toggle=$toggle.get(0);if(toggle){scroll_content.on("scroll.safari",function(){ace.helper.redraw(toggle)})}}_initiated=true;if(on_page_load==true){self.reset();if(scroll_to_active){self.scroll_to_active()}scroll_to_active=false}if(typeof smooth_scroll==="number"&&smooth_scroll>0){$nav.css({"transition-property":"top","transition-duration":(smooth_scroll/1000).toFixed(2)+"s"});bar.css({"transition-property":"top","transition-duration":(smooth_scroll/1500).toFixed(2)+"s"});scroll_div.on("drag.start",function(e){e.stopPropagation();$nav.css("transition-property","none")}).on("drag.end",function(e){e.stopPropagation();$nav.css("transition-property","top")})}if(ace.vars["android"]){var val=ace.helper.scrollTop();if(val<2){window.scrollTo(val,0);setTimeout(function(){self.reset()},20)}var last_height=ace.helper.winHeight(),new_height;$(window).on("scroll.ace_scroll",function(){if(self.is_scrolling&&ace_scroll.is_active()){new_height=ace.helper.winHeight();if(new_height!=last_height){last_height=new_height;self.reset()}}})}};this.scroll_to_active=function(){if(!ace_scroll||!ace_scroll.is_active()){return}try{var $active;var vars=ace_sidebar["vars"]();var nav_list=$sidebar.find(".nav-list");if(vars["minimized"]&&!vars["collapsible"]){$active=nav_list.find("> .active")}else{$active=$nav.find("> .active.hover");if($active.length==0){$active=$nav.find(".active:not(.open)")}}var top=$active.outerHeight();nav_list=nav_list.get(0);var active=$active.get(0);while(active!=nav_list){top+=active.offsetTop;active=active.parentNode}var scroll_amount=top-scroll_div.height();if(scroll_amount>0){nav.style.top=-scroll_amount+"px";scroll_content.scrollTop(scroll_amount)}}catch(e){}};this.reset=function(recalc){if(recalc===true){this.sidebar_fixed=is_element_pos(sidebar,"fixed")
  }if(!this.sidebar_fixed){this.disable();return}if(!_initiated){initiate()}var vars=ace_sidebar["vars"]();var enable_scroll=!vars["collapsible"]&&!vars["horizontal"]&&($avail_height=available_height())<($content_height=nav.clientHeight);this.is_scrolling=true;if(enable_scroll){scroll_content_div.css({height:$content_height,width:8});scroll_div.prev().css({"max-height":$avail_height});ace_scroll.update({size:$avail_height});ace_scroll.enable();ace_scroll.reset()}if(!enable_scroll||!ace_scroll.is_active()){if(this.is_scrolling){this.disable()}}else{$sidebar.addClass("sidebar-scroll")}};this.disable=function(){this.is_scrolling=false;if(scroll_div){scroll_div.css({"height":"","max-height":""});scroll_content_div.css({height:"",width:""});scroll_div.prev().css({"max-height":""});ace_scroll.disable()}if(parseInt(nav.style.top)<0&&smooth_scroll&&$.support.transition.end){$nav.one($.support.transition.end,function(){$sidebar.removeClass("sidebar-scroll");$nav.off(".trans")})}else{$sidebar.removeClass("sidebar-scroll")}nav.style.top=0};this.prehide=function(height_change){if(!this.is_scrolling||ace_sidebar.get("minimized")){return}if(content_height()+height_change<available_height()){this.disable()}else{if(height_change<0){var scroll_top=scroll_content.scrollTop()+height_change;if(scroll_top<0){return}nav.style.top=(-1*scroll_top)+"px"}}};this._reset=function(recalc){if(recalc===true){this.sidebar_fixed=is_element_pos(sidebar,"fixed")}if(ace.vars["webkit"]){setTimeout(function(){self.reset()},0)}else{this.reset()}};this.set_hover=function(){if(track){track.addClass("scroll-hover")}};this.get=function(name){if(this.hasOwnProperty(name)){return this[name]}};this.set=function(name,value){if(this.hasOwnProperty(name)){this[name]=value}};this.ref=function(){return this};this.updateStyle=function(styleClass){if(ace_scroll==null){return}ace_scroll.update({styleClass:styleClass})};$sidebar.on("hidden.ace.submenu.sidebar_scroll shown.ace.submenu.sidebar_scroll",".submenu",function(e){e.stopPropagation();
  if(!ace_sidebar.get("minimized")){self._reset();if(e.type=="shown"){self.set_hover()}}});initiate(true)}$(document).on("settings.ace.sidebar_scroll",function(ev,event_name,event_val){$(".sidebar[data-sidebar-scroll=true]").each(function(){var $this=$(this);var sidebar_scroll=$this.ace_sidebar_scroll("ref");if(event_name=="sidebar_collapsed"&&is_element_pos(this,"fixed")){if($this.attr("data-sidebar-hover")=="true"){$this.ace_sidebar_hover("reset")}sidebar_scroll._reset()}else{if(event_name==="sidebar_fixed"||event_name==="navbar_fixed"){var is_scrolling=sidebar_scroll.get("is_scrolling");var sidebar_fixed=is_element_pos(this,"fixed");sidebar_scroll.set("sidebar_fixed",sidebar_fixed);if(sidebar_fixed&&!is_scrolling){sidebar_scroll._reset()}else{if(!sidebar_fixed){sidebar_scroll.disable()}}}}})});$(window).on("resize.ace.sidebar_scroll",function(){$(".sidebar[data-sidebar-scroll=true]").each(function(){var $this=$(this);if($this.attr("data-sidebar-hover")=="true"){$this.ace_sidebar_hover("reset")}var sidebar_scroll=$(this).ace_sidebar_scroll("ref");var sidebar_fixed=is_element_pos(this,"fixed");sidebar_scroll.set("sidebar_fixed",sidebar_fixed);sidebar_scroll._reset()})});if(!$.fn.ace_sidebar_scroll){$.fn.ace_sidebar_scroll=function(option,value){var method_call;var $set=this.each(function(){var $this=$(this);var data=$this.data("ace_sidebar_scroll");var options=typeof option==="object"&&option;if(!data){$this.data("ace_sidebar_scroll",(data=new Sidebar_Scroll(this,options)))}if(typeof option==="string"&&typeof data[option]==="function"){method_call=data[option](value)}});return(method_call===undefined)?$set:method_call}}})(window.jQuery);
  (function($,undefined){var sidebar_count=0;function Sidebar(sidebar,options){var self=this;this.$sidebar=$(sidebar);this.$sidebar.attr("data-sidebar","true");if(!this.$sidebar.attr("id")){this.$sidebar.attr("id","id-sidebar-"+(++sidebar_count))}var duration=options.duration||ace.helper.intAttr(sidebar,"data-submenu-duration")||300;this.minimized=false;this.collapsible=false;this.horizontal=false;this.mobile_view=false;this.vars=function(){return{"minimized":this.minimized,"collapsible":this.collapsible,"horizontal":this.horizontal,"mobile_view":this.mobile_view}};this.get=function(name){if(this.hasOwnProperty(name)){return this[name]}};this.set=function(name,value){if(this.hasOwnProperty(name)){this[name]=value}};this.ref=function(){return this};var toggleIcon=function(minimized){var icon=$(this).find(ace.vars[".icon"]),icon1,icon2;if(icon.length>0){icon1=icon.attr("data-icon1");icon2=icon.attr("data-icon2");if(minimized!==undefined){if(minimized){icon.removeClass(icon1).addClass(icon2)}else{icon.removeClass(icon2).addClass(icon1)}}else{icon.toggleClass(icon1).toggleClass(icon2)}}};var findToggleBtn=function(){var toggle_btn=self.$sidebar.find(".sidebar-collapse");if(toggle_btn.length==0){toggle_btn=$('.sidebar-collapse[data-target="#'+(self.$sidebar.attr("id")||"")+'"]')}if(toggle_btn.length!=0){toggle_btn=toggle_btn[0]}else{toggle_btn=null}return toggle_btn};this.toggleMenu=function(toggle_btn,save){if(this.collapsible){return}this.minimized=!this.minimized;try{ace.settings.sidebar_collapsed(sidebar,this.minimized,!(toggle_btn===false||save===false))}catch(e){if(this.minimized){this.$sidebar.addClass("menu-min")}else{this.$sidebar.removeClass("menu-min")}}if(!toggle_btn){toggle_btn=findToggleBtn()}if(toggle_btn){toggleIcon.call(toggle_btn,this.minimized)}if(ace.vars["old_ie"]){ace.helper.redraw(sidebar)}};this.collapse=function(toggle_btn,save){if(this.collapsible){return}this.minimized=false;this.toggleMenu(toggle_btn,save)};this.expand=function(toggle_btn,save){if(this.collapsible){return
  }this.minimized=true;this.toggleMenu(toggle_btn,save)};this.toggleResponsive=function(toggle_btn){if(!this.mobile_view||this.mobile_style!=3){return}if(this.$sidebar.hasClass("menu-min")){this.$sidebar.removeClass("menu-min");var btn=findToggleBtn();if(btn){toggleIcon.call(btn)}}this.minimized=!this.$sidebar.hasClass("responsive-min");this.$sidebar.toggleClass("responsive-min responsive-max");if(!toggle_btn){toggle_btn=this.$sidebar.find(".sidebar-expand");if(toggle_btn.length==0){toggle_btn=$('.sidebar-expand[data-target="#'+(this.$sidebar.attr("id")||"")+'"]')}if(toggle_btn.length!=0){toggle_btn=toggle_btn[0]}else{toggle_btn=null}}if(toggle_btn){var icon=$(toggle_btn).find(ace.vars[".icon"]),icon1,icon2;if(icon.length>0){icon1=icon.attr("data-icon1");icon2=icon.attr("data-icon2");icon.toggleClass(icon1).toggleClass(icon2)}}$(document).triggerHandler("settings.ace",["sidebar_collapsed",this.minimized])};this.is_collapsible=function(){var toggle;return(this.$sidebar.hasClass("navbar-collapse"))&&((toggle=$('.navbar-toggle[data-target="#'+(this.$sidebar.attr("id")||"")+'"]').get(0))!=null)&&toggle.scrollHeight>0};this.is_mobile_view=function(){var toggle;return((toggle=$('.menu-toggler[data-target="#'+(this.$sidebar.attr("id")||"")+'"]').get(0))!=null)&&toggle.scrollHeight>0};this.$sidebar.on(ace.click_event+".ace.submenu",".nav-list",function(ev){var nav_list=this;var link_element=$(ev.target).closest("a");if(!link_element||link_element.length==0){return}var minimized=self.minimized&&!self.collapsible;if(!link_element.hasClass("dropdown-toggle")){if(ace.click_event=="tap"&&minimized&&link_element.get(0).parentNode.parentNode==nav_list){var text=link_element.find(".menu-text").get(0);if(text!=null&&ev.target!=text&&!$.contains(text,ev.target)){ev.preventDefault();return false}}if(ace.vars["ios_safari"]&&link_element.attr("data-link")!=="false"){document.location=link_element.attr("href");ev.preventDefault();return false}return}ev.preventDefault();var sub=link_element.siblings(".submenu").get(0);
  if(!sub){return false}var $sub=$(sub);var height_change=0;var parent_ul=sub.parentNode.parentNode;if((minimized&&parent_ul==nav_list)||(($sub.parent().hasClass("hover")&&$sub.css("position")=="absolute")&&!self.collapsible)){return false}var sub_hidden=(sub.scrollHeight==0);if(sub_hidden){$(parent_ul).find("> .open > .submenu").each(function(){if(this!=sub&&!$(this.parentNode).hasClass("active")){height_change-=this.scrollHeight;self.hide(this,duration,false)}})}if(sub_hidden){self.show(sub,duration);if(height_change!=0){height_change+=sub.scrollHeight}}else{self.hide(sub,duration);height_change-=sub.scrollHeight}if(height_change!=0){if(self.$sidebar.attr("data-sidebar-scroll")=="true"&&!self.minimized){self.$sidebar.ace_sidebar_scroll("prehide",height_change)}}return false});var submenu_working=false;this.show=function(sub,$duration,wait){if(wait!==false){if(submenu_working){return false}submenu_working=true}$duration=$duration||duration;var $sub=$(sub);var event;$sub.trigger(event=$.Event("show.ace.submenu"));if(event.isDefaultPrevented()){return false}$sub.css({height:0,overflow:"hidden",display:"block"}).removeClass("nav-hide").addClass("nav-show").parent().addClass("open");sub.scrollTop=0;if($duration>0){$sub.css({height:sub.scrollHeight,"transition-property":"height","transition-duration":($duration/1000)+"s"})}var complete=function(ev,trigger){ev&&ev.stopPropagation();$sub.css({"transition-property":"","transition-duration":"",overflow:"",height:""});if(trigger!==false){$sub.trigger($.Event("shown.ace.submenu"))}if(wait!==false){submenu_working=false}};if($duration>0&&!!$.support.transition.end){$sub.one($.support.transition.end,complete)}else{complete()}if(ace.vars["android"]){setTimeout(function(){complete(null,false);ace.helper.redraw(sub)},$duration+20)}return true};this.hide=function(sub,$duration,wait){if(wait!==false){if(submenu_working){return false}submenu_working=true}$duration=$duration||duration;var $sub=$(sub);var event;$sub.trigger(event=$.Event("hide.ace.submenu"));
  if(event.isDefaultPrevented()){return false}$sub.css({height:sub.scrollHeight,overflow:"hidden",display:"block"}).parent().removeClass("open");sub.offsetHeight;if($duration>0){$sub.css({"height":0,"transition-property":"height","transition-duration":($duration/1000)+"s"})}var complete=function(ev,trigger){ev&&ev.stopPropagation();$sub.css({display:"none",overflow:"",height:"","transition-property":"","transition-duration":""}).removeClass("nav-show").addClass("nav-hide");if(trigger!==false){$sub.trigger($.Event("hidden.ace.submenu"))}if(wait!==false){submenu_working=false}};if($duration>0&&!!$.support.transition.end){$sub.one($.support.transition.end,complete)}else{complete()}if(ace.vars["android"]){setTimeout(function(){complete(null,false);ace.helper.redraw(sub)},$duration+20)}return true};this.toggle=function(sub,$duration){$duration=$duration||duration;if(sub.scrollHeight==0){if(this.show(sub,$duration)){return 1}}else{if(this.hide(sub,$duration)){return -1}}return 0};var minimized_menu_class="menu-min";var responsive_min_class="responsive-min";var horizontal_menu_class="h-sidebar";var sidebar_mobile_style=function(){this.mobile_style=1;if(this.$sidebar.hasClass("responsive")&&!$('.menu-toggler[data-target="#'+this.$sidebar.attr("id")+'"]').hasClass("navbar-toggle")){this.mobile_style=2}else{if(this.$sidebar.hasClass(responsive_min_class)){this.mobile_style=3}else{if(this.$sidebar.hasClass("navbar-collapse")){this.mobile_style=4}}}};sidebar_mobile_style.call(self);function update_vars(){this.mobile_view=this.mobile_style<4&&this.is_mobile_view();this.collapsible=!this.mobile_view&&this.is_collapsible();this.minimized=(!this.collapsible&&this.$sidebar.hasClass(minimized_menu_class))||(this.mobile_style==3&&this.mobile_view&&this.$sidebar.hasClass(responsive_min_class));this.horizontal=!(this.mobile_view||this.collapsible)&&this.$sidebar.hasClass(horizontal_menu_class)}$(window).on("resize.sidebar.vars",function(){update_vars.call(self)}).triggerHandler("resize.sidebar.vars")
  }$(document).on(ace.click_event+".ace.menu",".menu-toggler",function(e){var btn=$(this);var sidebar=$(btn.attr("data-target"));if(sidebar.length==0){return}e.preventDefault();sidebar.toggleClass("display");btn.toggleClass("display");var click_event=ace.click_event+".ace.autohide";var auto_hide=sidebar.attr("data-auto-hide")==="true";if(btn.hasClass("display")){if(auto_hide){$(document).on(click_event,function(ev){if(sidebar.get(0)==ev.target||$.contains(sidebar.get(0),ev.target)){ev.stopPropagation();return}sidebar.removeClass("display");btn.removeClass("display");$(document).off(click_event)})}if(sidebar.attr("data-sidebar-scroll")=="true"){sidebar.ace_sidebar_scroll("reset")}}else{if(auto_hide){$(document).off(click_event)}}return false}).on(ace.click_event+".ace.menu",".sidebar-collapse",function(e){var target=$(this).attr("data-target"),$sidebar=null;if(target){$sidebar=$(target)}if($sidebar==null||$sidebar.length==0){$sidebar=$(this).closest(".sidebar")}if($sidebar.length==0){return}e.preventDefault();$sidebar.ace_sidebar("toggleMenu",this)}).on(ace.click_event+".ace.menu",".sidebar-expand",function(e){var target=$(this).attr("data-target"),$sidebar=null;if(target){$sidebar=$(target)}if($sidebar==null||$sidebar.length==0){$sidebar=$(this).closest(".sidebar")}if($sidebar.length==0){return}var btn=this;e.preventDefault();$sidebar.ace_sidebar("toggleResponsive",this);var click_event=ace.click_event+".ace.autohide";if($sidebar.attr("data-auto-hide")==="true"){if($sidebar.hasClass("responsive-max")){$(document).on(click_event,function(ev){if($sidebar.get(0)==ev.target||$.contains($sidebar.get(0),ev.target)){ev.stopPropagation();return}$sidebar.ace_sidebar("toggleResponsive",btn);$(document).off(click_event)})}else{$(document).off(click_event)}}});$.fn.ace_sidebar=function(option,value){var method_call;var $set=this.each(function(){var $this=$(this);var data=$this.data("ace_sidebar");var options=typeof option==="object"&&option;if(!data){$this.data("ace_sidebar",(data=new Sidebar(this,options)))
  }if(typeof option==="string"&&typeof data[option]==="function"){if(value instanceof Array){method_call=data[option].apply(data,value)}else{method_call=data[option](value)}}});return(method_call===undefined)?$set:method_call}})(window.jQuery);
  (function($,undefined){$(document).on("reload.ace.widget",".widget-box",function(ev){var $box=$(this);setTimeout(function(){$box.trigger("reloaded.ace.widget")},parseInt(Math.random()*1000+1000))})})(window.jQuery);
  (function($,undefined){try{$("#skin-colorpicker").ace_colorpicker({"auto_pos":false})}catch(e){}$("#skin-colorpicker").on("change",function(){var skin_class=$(this).find("option:selected").data("skin");if($("#ace-skins-stylesheet").length==0){var ace_style=$("head").find("link.ace-main-stylesheet");if(ace_style.length==0){ace_style=$("head").find('link[href*="/ace.min.css"],link[href*="/ace-part2.min.css"]');if(ace_style.length==0){ace_style=$("head").find('link[href*="/ace.css"],link[href*="/ace-part2.css"]')}}var stylesheet_url=ace_style.first().attr("href").replace(/(\.min)?\.css$/i,"-skins$1.css");$.ajax({"url":stylesheet_url}).done(function(){var new_link=jQuery("<link />",{type:"text/css",rel:"stylesheet","id":"ace-skins-stylesheet"});if(ace_style.length>0){new_link.insertAfter(ace_style.last())}else{new_link.appendTo("head")}new_link.attr("href",stylesheet_url);applyChanges(skin_class)})}else{applyChanges(skin_class)}function applyChanges(skin_class){var body=$(document.body);body.removeClass("no-skin skin-1 skin-2 skin-3");body.addClass(skin_class);ace.data.set("skin",skin_class);var skin3_colors=["red","blue","green",""];$(".ace-nav > li.grey").removeClass("dark");$(".ace-nav > li").removeClass("no-border margin-1");$(".ace-nav > li:not(:last-child)").removeClass("light-pink").find("> a > "+ace.vars[".icon"]).removeClass("pink").end().eq(0).find(".badge").removeClass("badge-warning");$(".sidebar-shortcuts .btn").removeClass("btn-pink btn-white").find(ace.vars[".icon"]).removeClass("white");$(".ace-nav > li.grey").removeClass("red").find(".badge").removeClass("badge-yellow");$(".sidebar-shortcuts .btn").removeClass("btn-primary btn-white");var i=0;$(".sidebar-shortcuts .btn").each(function(){$(this).find(ace.vars[".icon"]).removeClass(skin3_colors[i++])});var skin0_buttons=["btn-success","btn-info","btn-warning","btn-danger"];if(skin_class=="no-skin"){var i=0;$(".sidebar-shortcuts .btn").each(function(){$(this).attr("class","btn "+skin0_buttons[i++%4])});$(".sidebar[data-sidebar-scroll=true]").ace_sidebar_scroll("updateStyle","");
  $(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("updateStyle","no-track scroll-thin")}else{if(skin_class=="skin-1"){$(".ace-nav > li.grey").addClass("dark");var i=0;$(".sidebar-shortcuts").find(".btn").each(function(){$(this).attr("class","btn "+skin0_buttons[i++%4])});$(".sidebar[data-sidebar-scroll=true]").ace_sidebar_scroll("updateStyle","scroll-white no-track");$(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("updateStyle","no-track scroll-thin scroll-white")}else{if(skin_class=="skin-2"){$(".ace-nav > li").addClass("no-border margin-1");$(".ace-nav > li:not(:last-child)").addClass("light-pink").find("> a > "+ace.vars[".icon"]).addClass("pink").end().eq(0).find(".badge").addClass("badge-warning");$(".sidebar-shortcuts .btn").attr("class","btn btn-white btn-pink").find(ace.vars[".icon"]).addClass("white");$(".sidebar[data-sidebar-scroll=true]").ace_sidebar_scroll("updateStyle","scroll-white no-track");$(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("updateStyle","no-track scroll-thin scroll-white")}else{if(skin_class=="skin-3"){body.addClass("no-skin");$(".ace-nav > li.grey").addClass("red").find(".badge").addClass("badge-yellow");var i=0;$(".sidebar-shortcuts .btn").each(function(){$(this).attr("class","btn btn-primary btn-white");$(this).find(ace.vars[".icon"]).addClass(skin3_colors[i++])});$(".sidebar[data-sidebar-scroll=true]").ace_sidebar_scroll("updateStyle","scroll-dark no-track");$(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("updateStyle","no-track scroll-thin")}}}}$(".sidebar[data-sidebar-scroll=true]").ace_sidebar_scroll("reset");if(ace.vars["old_ie"]){ace.helper.redraw(document.body,true)}}})})(jQuery);
  (function($,undefined){var Widget_Box=function(box,options){this.$box=$(box);var that=this;this.reload=function(){var $box=this.$box;var $remove_position=false;if($box.css("position")=="static"){$remove_position=true;$box.addClass("position-relative")}$box.append('<div class="widget-box-overlay"><i class="'+ace.vars["icon"]+'loading-icon fa fa-spinner fa-spin fa-2x white"></i></div>');$box.one("reloaded.ace.widget",function(){$box.find(".widget-box-overlay").remove();if($remove_position){$box.removeClass("position-relative")}})};this.close=function(){var $box=this.$box;var closeSpeed=300;$box.fadeOut(closeSpeed,function(){$box.trigger("closed.ace.widget");$box.remove()})};this.toggle=function(type,button){var $box=this.$box;var $body=$box.find(".widget-body");var $icon=null;var event_name=typeof type!=="undefined"?type:($box.hasClass("collapsed")?"show":"hide");var event_complete_name=event_name=="show"?"shown":"hidden";if(typeof button==="undefined"){button=$box.find("> .widget-header a[data-action=collapse]").eq(0);if(button.length==0){button=null}}if(button){$icon=button.find(ace.vars[".icon"]).eq(0);var $match;var $icon_down=null;var $icon_up=null;if(($icon_down=$icon.attr("data-icon-show"))){$icon_up=$icon.attr("data-icon-hide")}else{if($match=$icon.attr("class").match(/fa\-(.*)\-(up|down)/)){$icon_down="fa-"+$match[1]+"-down";$icon_up="fa-"+$match[1]+"-up"}}}var expandSpeed=250;var collapseSpeed=200;if(event_name=="show"){if($icon){$icon.removeClass($icon_down).addClass($icon_up)}$body.hide();$box.removeClass("collapsed");$body.slideDown(expandSpeed,function(){$box.trigger(event_complete_name+".ace.widget")})}else{if($icon){$icon.removeClass($icon_up).addClass($icon_down)}$body.slideUp(collapseSpeed,function(){$box.addClass("collapsed");$box.trigger(event_complete_name+".ace.widget")})}};this.hide=function(){this.toggle("hide")};this.show=function(){this.toggle("show")};this.fullscreen=function(){var $icon=this.$box.find("> .widget-header a[data-action=fullscreen]").find(ace.vars[".icon"]).eq(0);
  var $icon_expand=null;var $icon_compress=null;if(($icon_expand=$icon.attr("data-icon1"))){$icon_compress=$icon.attr("data-icon2")}else{$icon_expand="fa-expand";$icon_compress="fa-compress"}if(!this.$box.hasClass("fullscreen")){$icon.removeClass($icon_expand).addClass($icon_compress);this.$box.addClass("fullscreen");applyScrollbars(this.$box,true)}else{$icon.addClass($icon_expand).removeClass($icon_compress);this.$box.removeClass("fullscreen");applyScrollbars(this.$box,false)}this.$box.trigger("fullscreened.ace.widget")}};$.fn.widget_box=function(option,value){var method_call;var $set=this.each(function(){var $this=$(this);var data=$this.data("widget_box");var options=typeof option==="object"&&option;if(!data){$this.data("widget_box",(data=new Widget_Box(this,options)))}if(typeof option==="string"){method_call=data[option](value)}});return(method_call===undefined)?$set:method_call};$(document).on("click.ace.widget",".widget-header a[data-action]",function(ev){ev.preventDefault();var $this=$(this);var $box=$this.closest(".widget-box");if($box.length==0||$box.hasClass("ui-sortable-helper")){return}var $widget_box=$box.data("widget_box");if(!$widget_box){$box.data("widget_box",($widget_box=new Widget_Box($box.get(0))))}var $action=$this.data("action");if($action=="collapse"){var event_name=$box.hasClass("collapsed")?"show":"hide";var event;$box.trigger(event=$.Event(event_name+".ace.widget"));if(event.isDefaultPrevented()){return}$widget_box.toggle(event_name,$this)}else{if($action=="close"){var event;$box.trigger(event=$.Event("close.ace.widget"));if(event.isDefaultPrevented()){return}$widget_box.close()}else{if($action=="reload"){$this.blur();var event;$box.trigger(event=$.Event("reload.ace.widget"));if(event.isDefaultPrevented()){return}$widget_box.reload()}else{if($action=="fullscreen"){var event;$box.trigger(event=$.Event("fullscreen.ace.widget"));if(event.isDefaultPrevented()){return}$widget_box.fullscreen()}else{if($action=="settings"){$box.trigger("setting.ace.widget")
  }}}}}});function applyScrollbars($widget,enable){var $main=$widget.find(".widget-main");$(window).off("resize.widget.scroll");var nativeScrollbars=ace.vars["old_ie"]||ace.vars["touch"];if(enable){var ace_scroll=$main.data("ace_scroll");if(ace_scroll){$main.data("save_scroll",{size:ace_scroll["size"],lock:ace_scroll["lock"],lock_anyway:ace_scroll["lock_anyway"]})}var size=$widget.height()-$widget.find(".widget-header").height()-10;size=parseInt(size);$main.css("min-height",size);if(!nativeScrollbars){if(ace_scroll){$main.ace_scroll("update",{"size":size,"mouseWheelLock":true,"lockAnyway":true})}else{$main.ace_scroll({"size":size,"mouseWheelLock":true,"lockAnyway":true})}$main.ace_scroll("enable").ace_scroll("reset")}else{if(ace_scroll){$main.ace_scroll("disable")}$main.css("max-height",size).addClass("overflow-scroll")}$(window).on("resize.widget.scroll",function(){var size=$widget.height()-$widget.find(".widget-header").height()-10;size=parseInt(size);$main.css("min-height",size);if(!nativeScrollbars){$main.ace_scroll("update",{"size":size}).ace_scroll("reset")}else{$main.css("max-height",size).addClass("overflow-scroll")}})}else{$main.css("min-height","");var saved_scroll=$main.data("save_scroll");if(saved_scroll){$main.ace_scroll("update",{"size":saved_scroll["size"],"mouseWheelLock":saved_scroll["lock"],"lockAnyway":saved_scroll["lock_anyway"]}).ace_scroll("enable").ace_scroll("reset")}if(!nativeScrollbars){if(!saved_scroll){$main.ace_scroll("disable")}}else{$main.css("max-height","").removeClass("overflow-scroll")}}}})(window.jQuery);
  (function($,undefined){$("#ace-settings-rtl").removeAttr("checked").on("click",function(){switch_direction()});var switch_direction=function(){if($("#ace-rtl-stylesheet").length==0){var ace_style=$("head").find("link.ace-main-stylesheet");if(ace_style.length==0){ace_style=$("head").find('link[href*="/ace.min.css"],link[href*="/ace-part2.min.css"]');if(ace_style.length==0){ace_style=$("head").find('link[href*="/ace.css"],link[href*="/ace-part2.css"]')}}var ace_skins=$("head").find("link#ace-skins-stylesheet");var stylesheet_url=ace_style.first().attr("href").replace(/(\.min)?\.css$/i,"-rtl$1.css");$.ajax({"url":stylesheet_url}).done(function(){var new_link=jQuery("<link />",{type:"text/css",rel:"stylesheet","id":"ace-rtl-stylesheet"});if(ace_skins.length>0){new_link.insertAfter(ace_skins)}else{if(ace_style.length>0){new_link.insertAfter(ace_style.last())}else{new_link.appendTo("head")}}new_link.attr("href",stylesheet_url);applyChanges()})}else{applyChanges()}function applyChanges(){var $body=$(document.body);$body.toggleClass("rtl").find(".dropdown-menu:not(.datepicker-dropdown,.colorpicker)").toggleClass("dropdown-menu-right").end().find(".pull-right:not(.dropdown-menu,blockquote,.profile-skills .pull-right)").removeClass("pull-right").addClass("tmp-rtl-pull-right").end().find(".pull-left:not(.dropdown-submenu,.profile-skills .pull-left)").removeClass("pull-left").addClass("pull-right").end().find(".tmp-rtl-pull-right").removeClass("tmp-rtl-pull-right").addClass("pull-left").end().find(".chosen-select").toggleClass("chosen-rtl").next().toggleClass("chosen-rtl");function swap_classes(class1,class2){$body.find("."+class1).removeClass(class1).addClass("tmp-rtl-"+class1).end().find("."+class2).removeClass(class2).addClass(class1).end().find(".tmp-rtl-"+class1).removeClass("tmp-rtl-"+class1).addClass(class2)}swap_classes("align-left","align-right");swap_classes("no-padding-left","no-padding-right");swap_classes("arrowed","arrowed-right");swap_classes("arrowed-in","arrowed-in-right");
  swap_classes("tabs-left","tabs-right");swap_classes("messagebar-item-left","messagebar-item-right");$(".modal.aside-vc").ace_aside("flip").ace_aside("insideContainer");$(".fa").each(function(){if(this.className.match(/ui-icon/)||$(this).closest(".fc-button").length>0){return}var l=this.attributes.length;for(var i=0;i<l;i++){var val=this.attributes[i].value;if(val.match(/fa\-(?:[\w\-]+)\-left/)){this.attributes[i].value=val.replace(/fa\-([\w\-]+)\-(left)/i,"fa-$1-right")}else{if(val.match(/fa\-(?:[\w\-]+)\-right/)){this.attributes[i].value=val.replace(/fa\-([\w\-]+)\-(right)/i,"fa-$1-left")}}}});var rtl=$body.hasClass("rtl");if(rtl){$(".scroll-hz").addClass("make-ltr").find(".scroll-content").wrapInner('<div class="make-rtl" />');$(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("changeDir","right")}else{$(".scroll-hz").removeClass("make-ltr").find(".make-rtl").children().unwrap();$(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("changeDir","left")}if($.fn.ace_scroll){$(".scroll-hz").ace_scroll("reset")}try{var placeholder=$("#piechart-placeholder");if(placeholder.length>0){var pos=$(document.body).hasClass("rtl")?"nw":"ne";placeholder.data("draw").call(placeholder.get(0),placeholder,placeholder.data("chart"),pos)}}catch(e){}ace.helper.redraw(document.body,true)}}})(jQuery);
  (function($,undefined){if(!ace.vars["touch"]){return}var touchStartEvent="touchstart MSPointerDown pointerdown",touchStopEvent="touchend touchcancel MSPointerUp MSPointerCancel pointerup pointercancel",touchMoveEvent="touchmove MSPointerMove MSPointerHover pointermove";$.event.special.ace_drag={setup:function(){var min_threshold=0;var $this=$(this);$this.on(touchStartEvent,function(event){var data=event.originalEvent.touches?event.originalEvent.touches[0]:event,start={coords:[data.pageX,data.pageY],origin:$(event.target)},stop;var direction=false,dx=0,dy=0;function moveHandler(event){if(!start){return}var data=event.originalEvent.touches?event.originalEvent.touches[0]:event;stop={coords:[data.pageX,data.pageY]};if(start&&stop){dx=0;dy=0;direction=(Math.abs(dy=start.coords[1]-stop.coords[1])>min_threshold&&Math.abs(dx=start.coords[0]-stop.coords[0])<=Math.abs(dy))?(dy>0?"up":"down"):(Math.abs(dx=start.coords[0]-stop.coords[0])>min_threshold&&Math.abs(dy)<=Math.abs(dx))?(dx>0?"left":"right"):false;if(direction!==false){var retval={cancel:false};start.origin.trigger({"type":"ace_drag","direction":direction,"dx":dx,"dy":dy,"retval":retval});if(retval.cancel==false){event.preventDefault()}}}start.coords[0]=stop.coords[0];start.coords[1]=stop.coords[1]}$this.on(touchMoveEvent,moveHandler).one(touchStopEvent,function(event){$this.off(touchMoveEvent,moveHandler);start=stop=undefined})})}}})(window.jQuery);
  (function($,undefined){$("#ace-settings-btn").on(ace.click_event,function(e){e.preventDefault();$(this).toggleClass("open");$("#ace-settings-box").toggleClass("open")});$("#ace-settings-navbar").on("click",function(){ace.settings.navbar_fixed(null,this.checked)}).each(function(){this.checked=ace.settings.is("navbar","fixed")});$("#ace-settings-sidebar").on("click",function(){ace.settings.sidebar_fixed(null,this.checked)}).each(function(){this.checked=ace.settings.is("sidebar","fixed")});$("#ace-settings-breadcrumbs").on("click",function(){ace.settings.breadcrumbs_fixed(null,this.checked)}).each(function(){this.checked=ace.settings.is("breadcrumbs","fixed")});$("#ace-settings-add-container").on("click",function(){ace.settings.main_container_fixed(null,this.checked)}).each(function(){this.checked=ace.settings.is("main-container","fixed")});$("#ace-settings-compact").on("click",function(){if(this.checked){$("#sidebar").addClass("compact");var hover=$("#ace-settings-hover");if(hover.length>0){hover.removeAttr("checked").trigger("click")}}else{$("#sidebar").removeClass("compact");$("#sidebar[data-sidebar-scroll=true]").ace_sidebar_scroll("reset")}if(ace.vars["old_ie"]){ace.helper.redraw($("#sidebar")[0],true)}});$("#ace-settings-highlight").on("click",function(){if(this.checked){$("#sidebar .nav-list > li").addClass("highlight")}else{$("#sidebar .nav-list > li").removeClass("highlight")}if(ace.vars["old_ie"]){ace.helper.redraw($("#sidebar")[0])}});$("#ace-settings-hover").on("click",function(){if($("#sidebar").hasClass("h-sidebar")){return}if(this.checked){$("#sidebar li").addClass("hover").filter(".open").removeClass("open").find("> .submenu").css("display","none")}else{$("#sidebar li.hover").removeClass("hover");var compact=$("#ace-settings-compact");if(compact.length>0&&compact.get(0).checked){compact.trigger("click")}}$(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("reset");$(".sidebar[data-sidebar-scroll=true]").ace_sidebar_scroll("reset");if(ace.vars["old_ie"]){ace.helper.redraw($("#sidebar")[0])
  }})})(jQuery);
  (function($,undefined){ace.vars["US_STATES"]=["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"];try{$("#nav-search-input").bs_typeahead({source:ace.vars["US_STATES"],updater:function(item){$("#nav-search-input").focus();return item}})}catch(e){}})(window.jQuery);
  jQuery(function($){var help=null;var page_settings={};var before_enable_help=function(){$("#btn-scroll-up").css("z-index",1000000);page_settings["navbar"]=ace.settings.is("navbar","fixed");page_settings["sidebar"]=ace.settings.is("sidebar","fixed");page_settings["breadcrumbs"]=ace.settings.is("breadcrumbs","fixed");ace.settings.navbar_fixed(null,false,false)};var after_disable_help=function(){$("#btn-scroll-up").css("z-index","");if(page_settings["breadcrumbs"]){ace.settings.breadcrumbs_fixed(null,true,false)}if(page_settings["sidebar"]){ace.settings.sidebar_fixed(null,true,false)}if(page_settings["navbar"]){ace.settings.navbar_fixed(null,true,false)}};var get_file_url=function(url,language){return this.settings.base+"/"+url};var get_section_url=function(section_name){section_name=section_name||"";var url=section_name.replace(/\..*$/g,"");var parts=url.split("/");if(parts.length==1){if(url.length==0){url="intro"}url=url+"/index.html"}else{if(parts.length>1){url=url+".html"}}return this.settings.base+"/docs/sections/"+url};var get_img_url=function(src){return this.settings.base+"/docs/"+src};function startHelp(){if(help!==null){return}help=new Onpage_Help({"include_all":false,"base":ace.vars["base"]||"../..","file_url":get_file_url,"section_url":get_section_url,"img_url":get_img_url,"before_enable":before_enable_help,"after_disable":after_disable_help});var help_container=$("#onpage-help-container");help_container.append('<div class="ace-settings-container onpage-help-toggle-container">			<div id="onpage-help-toggle-btn" class="btn btn-app btn-xs btn-info ace-settings-btn onpage-help-toggle-btn">				<i class="onpage-help-toggle-text ace-icon fa fa-question bigger-150"></i>			</div>		</div>');$("#onpage-help-toggle-btn").on("click",function(e){e.preventDefault();toggleHelp()});$(document).on("settings.ace.help",function(ev,event_name,fixed){if(event_name=="main_container_fixed"){if(fixed){help_container.addClass("container")}else{help_container.removeClass("container")
  }}}).triggerHandler("settings.ace.help",["main_container_fixed",$(".main-container").hasClass("container")]);$(document).on("ajaxloadcomplete.ace.help",function(){help.update_sections()})}function toggleHelp(){help.toggle();var toggle_btn=$("#onpage-help-toggle-btn");toggle_btn.find(".onpage-help-toggle-text").removeClass("onpage-help-toggle-text");toggle_btn.toggleClass("btn-grey btn-info").parent().toggleClass("active")}$(window).on("hashchange.start_help",function(e){if(help==null&&window.location.hash=="#help"){startHelp();$(document).on("click.start_help",".sidebar .nav-list a",function(){var href=$(this).attr("href");if(!href.match(/\#help$/)){$(this).attr("href",href+"#help")}})}}).triggerHandler("hashchange.start_help");$(document).on("click",".btn-display-help",function(e){e.preventDefault();startHelp();if(!help.is_active()){toggleHelp()}var section=$(this).attr("href");help.show_section_help(section)})});
  