text: /*!
   * remark (http://getbootstrapadmin.com/remark)
   * Copyright 2015 amazingsurge
   * Licensed under the Themeforest Standard Licenses
   */
  $.components.register("ace",{mode:"init",defaults:{},init:function(context){"undefined"!=typeof ace&&(ace.config.loadModule("ace/ext/language_tools"),$('[data-plugin="ace"]',context).each(function(){var id=$(this).attr("id"),mode=$(this).data("mode"),theme=$(this).data("theme"),editor=ace.edit(id);editor.container.style.opacity="",mode&&editor.session.setMode("ace/mode/"+mode),theme&&editor.setTheme("ace/theme/"+theme),editor.setOption("maxLines",40),editor.setAutoScrollEditorIntoView(!0),ace.config.loadModule("ace/ext/language_tools",function(){editor.setOptions({enableSnippets:!0,enableBasicAutocompletion:!0})})}))}}),$.components.register("alertify",{mode:"api",defaults:{type:"alert",delay:5e3,theme:"bootstrap"},api:function(){if("undefined"!=typeof alertify){var defaults=$.components.getDefaults("alertify");$(document).on("click.site.alertify",'[data-plugin="alertify"]',function(){var $this=$(this),options=$.extend(!0,{},defaults,$this.data());switch(options.labelOk&&(options.okBtn=options.labelOk),options.labelCancel&&(options.cancelBtn=options.labelCancel),"undefined"!=typeof options.delay&&alertify.delay(options.delay),"undefined"!=typeof options.theme&&alertify.theme(options.theme),"undefined"!=typeof options.cancelBtn&&alertify.cancelBtn(options.cancelBtn),"undefined"!=typeof options.okBtn&&alertify.okBtn(options.okBtn),"undefined"!=typeof options.placeholder&&alertify.delay(options.placeholder),"undefined"!=typeof options.defaultValue&&alertify.delay(options.defaultValue),"undefined"!=typeof options.maxLogItems&&alertify.delay(options.maxLogItems),"undefined"!=typeof options.closeLogOnClick&&alertify.delay(options.closeLogOnClick),options.type){case"alert":alertify.alert(options.alertMessage);break;case"confirm":alertify.confirm(options.confirmTitle,function(){alertify.success(options.successMessage)},function(){alertify.error(options.errorMessage)});break;case"prompt":alertify.prompt(options.promptTitle,function(str,ev){var message=options.successMessage.replace("%s",str);alertify.success(message)},function(ev){alertify.error(options.errorMessage)});break;case"log":alertify.log(options.logMessage);break;case"success":alertify.success(options.successMessage);break;case"error":alertify.error(options.errorMessage)}})}}}),$.components.register("animate-list",{mode:"init",defaults:{child:".panel",duration:250,delay:50,animate:"scale-up",fill:"backwards"},init:function(){var self=this;$("[data-plugin=animateList]").each(function(){var $this=$(this),options=$.extend({},self.defaults,$this.data(),!0),animatedBox=function($el,opts){this.options=opts,this.$children=$el.find(opts.child),this.$children.addClass("animation-"+opts.animate),this.$children.css("animation-fill-mode",opts.fill),this.$children.css("animation-duration",opts.duration+"ms");var delay=0,self=this;this.$children.each(function(){$(this).css("animation-delay",delay+"ms"),delay+=self.options.delay})};animatedBox.prototype={run:function(type){var self=this;this.$children.removeClass("animation-"+this.options.animate),"undefined"!=typeof type&&(this.options.animate=type),setTimeout(function(){self.$children.addClass("animation-"+self.options.animate)},0)}},$this.data("animateList",new animatedBox($this,options))})}}),$.components.register("animsition",{mode:"manual",defaults:{inClass:"fade-in",outClass:"fade-out",inDuration:800,outDuration:500,linkElement:".animsition-link",loading:!0,loadingParentElement:"body",loadingClass:"loader",loadingType:"default",timeout:!1,timeoutCountdown:5e3,onLoadEvent:!0,browser:["animation-duration","-webkit-animation-duration"],overlay:!1,overlayClass:"animsition-overlay-slide",overlayParentElement:"body",inDefaults:["fade-in","fade-in-up-sm","fade-in-up","fade-in-up-lg","fade-in-down-sm","fade-in-down","fade-in-down-lg","fade-in-left-sm","fade-in-left","fade-in-left-lg","fade-in-right-sm","fade-in-right","fade-in-right-lg","zoom-in-sm","zoom-in","zoom-in-lg"],outDefaults:["fade-out","fade-out-up-sm","fade-out-up","fade-out-up-lg","fade-out-down-sm","fade-out-down","fade-out-down-lg","fade-out-left-sm","fade-out-left","fade-out-left-lg","fade-out-right-sm","fade-out-right","fade-out-right-lg","zoom-out-sm","zoom-out","zoom-out-lg"]},init:function(context,callback){var options=$.components.getDefaults("animsition");if(options.random){var li=options.inDefaults.length,lo=options.outDefaults.length,ni=parseInt(li*Math.random(),0),no=parseInt(lo*Math.random(),0);options.inClass=options.inDefaults[ni],options.outClass=options.outDefaults[no]}var $this=$(".animsition",context);return $this.animsition(options),$("."+options.loadingClass).addClass("loader-"+options.loadingType),$this.animsition("supportCheck",options)?($.isFunction(callback)&&$this.one("animsition.end",function(){callback.call()}),!0):($.isFunction(callback)&&callback.call(),!1)}}),$.components.register("breadcrumb",{mode:"init",defaults:{namespace:"breadcrumb"},init:function(context){if($.fn.asBreadcrumbs){var defaults=$.components.getDefaults("breadcrumb");$('[data-plugin="breadcrumb"]',context).each(function(){var options=$.extend({},defaults,$(this).data());$(this).asBreadcrumbs(options)})}}}),$.components.register("asColorPicker",{defaults:{namespace:"colorInputUi"},mode:"default"}),$.components.register("paginator",{mode:"init",defaults:{namespace:"pagination",currentPage:1,itemsPerPage:10,disabledClass:"disabled",activeClass:"active",visibleNum:{0:3,480:5},tpl:function(){return"{{prev}}{{lists}}{{next}}"},components:{prev:{tpl:function(){return'<li class="'+this.namespace+'-prev"><a href="javascript:void(0)"><span class="icon wb-chevron-left-mini"></span></a></li>'}},next:{tpl:function(){return'<li class="'+this.namespace+'-next"><a href="javascript:void(0)"><span class="icon wb-chevron-right-mini"></span></a></li>'}},lists:{tpl:function(){var lists="",remainder=this.currentPage>=this.visible?this.currentPage%this.visible:this.currentPage;remainder=0===remainder?this.visible:remainder;for(var k=1;remainder>k;k++)lists+='<li class="'+this.namespace+'-items" data-value="'+(this.currentPage-remainder+k)+'"><a href="javascript:void(0)">'+(this.currentPage-remainder+k)+"</a></li>";lists+='<li class="'+this.namespace+"-items "+this.classes.active+'" data-value="'+this.currentPage+'"><a href="javascript:void(0)">'+this.currentPage+"</a></li>";for(var i=this.currentPage+1,limit=i+this.visible-remainder-1>this.totalPages?this.totalPages:i+this.visible-remainder-1;limit>=i;i++)lists+='<li class="'+this.namespace+'-items" data-value="'+i+'"><a href="javascript:void(0)">'+i+"</a></li>";return lists}}}},init:function(context){if($.fn.asPaginator){var defaults=$.components.getDefaults("paginator");$('[data-plugin="paginator"]',context).each(function(){var $this=$(this),options=$this.data(),total=$this.data("total");options=$.extend({},defaults,options),$this.asPaginator(total,options)})}}}),$.components.register("pieProgress",{mode:"init",defaults:{namespace:"pie-progress",speed:30,classes:{svg:"pie-progress-svg",element:"pie-progress",number:"pie-progress-number",content:"pie-progress-content"}},init:function(context){if($.fn.asPieProgress){var defaults=$.components.getDefaults("pieProgress");$('[data-plugin="pieProgress"]',context).each(function(){var $this=$(this),options=$this.data();options=$.extend(!0,{},defaults,options),$this.asPieProgress(options)})}}}),$.components.register("progress",{mode:"init",defaults:{bootstrap:!0,onUpdate:function(n){var per=(n-this.min)/(this.max-this.min);.5>per?this.$target.addClass("progress-bar-success").removeClass("progress-bar-warning progress-bar-danger"):per>=.5&&.8>per?this.$target.addClass("progress-bar-warning").removeClass("progress-bar-success progress-bar-danger"):this.$target.addClass("progress-bar-danger").removeClass("progress-bar-success progress-bar-warning")},labelCallback:function(n){var label,labelType=this.$element.data("labeltype");if("percentage"===labelType){var percentage=this.getPercentage(n);label=percentage+"%"}else if("steps"===labelType){var total=this.$element.data("totalsteps");total||(total=10);var step=Math.round(total*(n-this.min)/(this.max-this.min));label=step+" / "+total}else label=n;return this.$element.parent().hasClass("contextual-progress")&&this.$element.parent().find(".progress-label").html(label),label}},init:function(context){if($.fn.asProgress){var defaults=$.components.getDefaults("progress");$('[data-plugin="progress"]',context).each(function(){var $this=$(this),options=$this.data();options=$.extend({},defaults,options),$this.asProgress(options)})}}}),$.components.register("asRange",{mode:"default",defaults:{tip:!1,scale:!1}}),$.components.register("scrollable",{mode:"init",defaults:{namespace:"scrollable",contentSelector:"> [data-role='content']",containerSelector:"> [data-role='container']"},init:function(context){if($.fn.asScrollable){var defaults=$.components.getDefaults("scrollable");$('[data-plugin="scrollable"]',context).each(function(){var options=$.extend({},defaults,$(this).data());$(this).asScrollable(options)})}}}),$.components.register("asSpinner",{mode:"default",defaults:{namespace:"spinnerUi",skin:null,min:"-10",max:100,mousewheel:!0}}),$.components.register("bootbox",{mode:"api",defaults:{message:""},api:function(){if("undefined"!=typeof bootbox){var defaults=$.components.getDefaults("bootbox");$(document).on("click.site.bootbox",'[data-plugin="bootbox"]',function(){var $btn=$(this),options=$btn.data();if(options=$.extend(!0,{},defaults,options),options.classname&&(options.className=options.classname),"string"==typeof options.callback&&$.isFunction(window[options.callback])&&(options.callback=window[options.callback]),options.type)switch(options.type){case"alert":bootbox.alert(options);break;case"confirm":bootbox.confirm(options);break;case"prompt":bootbox.prompt(options);break;default:bootbox.dialog(options)}else bootbox.dialog(options)})}}}),$.components.register("datepicker",{mode:"default",defaults:{autoclose:!0}}),$.components.register("maxlength",{mode:"default",defaults:{}}),$.components.register("selectpicker",{mode:"default",defaults:{style:"btn-select",iconBase:"icon",tickIcon:"wb-check"}}),$.components.register("sweetalert",{mode:"api",api:function(){if("undefined"!=typeof swal){var defaults=$.components.getDefaults("sweetalert");$(document).on("click.site.sweetalert",'[data-plugin="sweetalert"]',function(){var options=$.extend(!0,{},defaults,$(this).data());swal(options)})}}}),$.components.register("tagsinput",{defaults:{tagClass:"label label-default"},mode:"default"}),$.components.register("tokenfield",{mode:"default",defaults:{}}),$.components.register("TouchSpin",{mode:"default",defaults:{verticalupclass:"wb-plus",verticaldownclass:"wb-minus",buttondown_class:"btn btn-outline btn-default",buttonup_class:"btn btn-outline btn-default"}}),$.components.register("treeview",{mode:"init",defaults:{injectStyle:!1,expandIcon:"icon wb-plus",collapseIcon:"icon wb-minus",emptyIcon:"icon",nodeIcon:"icon wb-folder",showBorder:!1,borderColor:$.colors("blue-grey",200),onhoverColor:$.colors("blue-grey",100),selectedColor:"#ffffff",selectedBackColor:$.colors("primary",600),searchResultColor:$.colors("primary",600),searchResultBackColor:"#ffffff"},init:function(context){if($.fn.treeview){var defaults=$.components.getDefaults("treeview");$('[data-plugin="treeview"]',context).each(function(){var $this=$(this),options=$this.data();"string"==typeof options.source&&$.isFunction(window[options.source])?(options.data=window[options.source](),delete options.source):$.isFunction(options.souce)&&(options.data=options.source(),delete options.source),options=$.extend(!0,{},defaults,options),$this.treeview(options)})}}}),$.components.register("buttons",{mode:"api",defaults:{},api:function(){$(document).on("click.site.loading","[data-loading-text]",function(){var $btn=$(this),text=$btn.text(),i=20,loadingText=$btn.data("loadingText");$btn.text(loadingText+"("+i+")").css("opacity",".6");var timeout=setInterval(function(){$btn.text(loadingText+"("+--i+")"),0===i&&(clearInterval(timeout),$btn.text(text).css("opacity","1"))},1e3)}),$(document).on("click.site.morebutton","[data-more]",function(){var $target=$($(this).data("more"));$target.toggleClass("show")})}}),$.components.register("card",{mode:"init",defaults:{},init:function(context){if($.fn.card){var defaults=$.components.getDefaults("card");$('[data-plugin="card"]',context).each(function(){var options=$.extend({},defaults,$(this).data());options.target&&(options.container=$(options.target)),$(this).card(options)})}}}),$.components.register("clockpicker",{mode:"default",defaults:{donetext:"Done"}}),$.components.register("dataTable",{defaults:{responsive:!0,language:{sSearchPlaceholder:"Search..",lengthMenu:"_MENU_",search:"_INPUT_",paginate:{previous:'<i class="icon wb-chevron-left-mini"></i>',next:'<i class="icon wb-chevron-right-mini"></i>'}}},api:function(){$.fn.dataTable&&$.fn.dataTable.TableTools&&$.extend(!0,$.fn.dataTable.TableTools.classes,{container:"DTTT btn-group btn-group pull-left",buttons:{normal:"btn btn-outline btn-default",disabled:"disabled"},print:{body:"site-print DTTT_Print"}})},init:function(context){if($.fn.dataTable){var defaults=$.components.getDefaults("dataTable");$('[data-plugin="dataTable"]',context).each(function(){var options=$.extend(!0,{},defaults,$(this).data());$(this).dataTable(options)})}}}),$.components.register("datepair",{mode:"default",defaults:{startClass:"datepair-start",endClass:"datepair-end",timeClass:"datepair-time",dateClass:"datepair-date"}}),$.components.register("editableTable",{mode:"init",init:function(context){if($.fn.editableTableWidget){var defaults=$.components.getDefaults("editableTable");$('[data-plugin="editableTable"]',context).each(function(){var options=$.extend(!0,{},defaults,$(this).data());$(this).editableTableWidget(options)})}}}),$.components.register("filterable",{mode:"init",defaults:{animationOptions:{duration:750,easing:"linear",queue:!1}},init:function(context){if("undefined"!=typeof $.fn.isotope){var defaults=$.components.getDefaults("filterable"),callback=function(){$("[data-filterable]",context).each(function(){var $this=$(this),options=$.extend(!0,{},defaults,$this.data(),{filter:"*"});$this.isotope(options)}),$("[data-filter]",context).click(function(e){var $this=$(this),target=$this.data("target"),$li=$this.parent("li");target||(target=$this.attr("href"),target=target&&target.replace(/.*(?=#[^\s]*$)/,"")),$li.siblings(".active").each(function(){$(this).find("a").attr("aria-expanded",!1),$(this).removeClass("active")}),$li.addClass("active"),$this.attr("aria-expanded",!0);var $list=$(target,context),filter=$this.attr("data-filter");"*"!==filter&&(filter='[data-type="'+filter+'"]'),$list.isotope({filter:filter}),e.preventDefault()})};context!==document?callback():$(window).on("load",function(){callback()})}}}),$.components.register("formatter",{mode:"init",defaults:{persistent:!0},init:function(context){if($.fn.formatter){var ieOptions,defaults=$.components.getDefaults("formatter"),browserName=navigator.userAgent.toLowerCase();ieOptions=/msie/i.test(browserName)&&!/opera/.test(browserName)?{persistent:!1}:{},$('[data-plugin="formatter"]',context).each(function(){var options=$.extend({},defaults,ieOptions,$(this).data());options.pattern&&(options.pattern=options.pattern.replace(/\[\[/g,"{{").replace(/\]\]/g,"}}")),$(this).formatter(options)})}}}),$.components.register("gauge",{mode:"init",defaults:{lines:12,angle:.12,lineWidth:.4,pointer:{length:.68,strokeWidth:.03,color:$.colors("blue-grey",400)},limitMax:!0,colorStart:$.colors("blue-grey",200),colorStop:$.colors("blue-grey",200),strokeColor:$.colors("primary",500),generateGradient:!0},init:function(context){if(Gauge){var defaults=$.components.getDefaults("gauge");$('[data-plugin="gauge"]',context).each(function(){var $this=$(this),options=$this.data(),$text=$this.find(".gauge-label"),$canvas=$this.find("canvas");if(options=$.extend(!0,{},defaults,options),0!==$canvas.length){var gauge=new Gauge($canvas[0]).setOptions(options);$this.data("gauge",gauge),gauge.animationSpeed=50,gauge.maxValue=$this.data("max-value"),gauge.set($this.data("value")),$text.length>0&&gauge.setTextField($text[0])}})}}}),$.components.register("donut",{mode:"init",defaults:{lines:12,angle:.3,lineWidth:.08,pointer:{length:.9,strokeWidth:.035,color:$.colors("blue-grey",400)},limitMax:!1,colorStart:$.colors("blue-grey",200),colorStop:$.colors("blue-grey",200),strokeColor:$.colors("primary",500),generateGradient:!0},init:function(context){if(Gauge){var defaults=$.components.getDefaults("donut");$('[data-plugin="donut"]',context).each(function(){var $this=$(this),options=$this.data(),$text=$this.find(".donut-label"),$canvas=$this.find("canvas");if(options=$.extend(!0,{},defaults,options),0!==$canvas.length){var donut=new Donut($canvas[0]).setOptions(options);$this.data("donut",donut),donut.animationSpeed=50,donut.maxValue=$this.data("max-value"),donut.set($this.data("value")),$text.length>0&&donut.setTextField($text[0])}})}}}),$.components.register("gmaps",{styles:[{featureType:"landscape",elementType:"all",stylers:[{color:"#ffffff"}]},{featureType:"poi",elementType:"all",stylers:[{color:"#ffffff"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:$.colors("blue-grey","700")}]},{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:$.colors("blue-grey","500")}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:$.colors("blue-grey","300")}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#e0e0e0"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:$.colors("blue-grey","200")}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#000000"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:$.colors("blue-grey","500")}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"all",stylers:[{color:$.colors("blue-grey","200")},{weight:.5}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:$.colors("blue-grey","300")}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{visibility:"off"},{color:"#000000"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"},{color:"#000000"}]},{featureType:"poi",elementType:"labels.text",stylers:[{visibility:"on"},{color:$.colors("blue-grey","700")}]},{featureType:"road.local",elementType:"labels.text",stylers:[{color:$.colors("blue-grey","700")}]},{featureType:"transit",elementType:"all",stylers:[{color:$.colors("blue-grey","100")}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:$.colors("blue-grey","500")}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:$.colors("blue-grey","600")}]},{featureType:"administrative.neighborhood",elementType:"labels.text",stylers:[{color:$.colors("blue-grey","700")}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#ffffff"}]},{featureType:"road.highway",elementType:"labels.icon",stylers:[{visibility:"on"},{hue:"#ffffff"},{saturation:-100},{lightness:50}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"}]},{featureType:"administrative.neighborhood",elementType:"labels.text.stroke",stylers:[{color:"#ffffff"}]},{featureType:"administrative",elementType:"labels.text.stroke",stylers:[{color:"#ffffff"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:$.colors("blue-grey","600")}]}]}),$.components.register("gridstack",{mode:"init",defaults:{cell_height:80,vertical_margin:20},init:function(context){if($.fn.gridstack){var defaults=$.components.getDefaults("gridstack");$('[data-plugin="gridstack"]',context).each(function(){var options=$.extend(!0,{},defaults,$(this).data());$(this).gridstack(options)})}}}),$.components.register("highlight",{mode:"init",defaults:{},init:function(context){if("undefined"!=typeof $.fn.hightlight){$.components.getDefaults("highlight");$('[data-plugin="highlight"]',context).each(function(i,block){hljs.highlightBlock(block)})}}}),$.components.register("sortable",{defaults:{},mode:"default"}),$.components.register("iCheck",{mode:"default",defaults:{}}),$.components.register("input-group-file",{api:function(){$(document).on("change",".input-group-file [type=file]",function(){var $this=$(this),$text=$(this).parents(".input-group-file").find(".form-control"),value="";$.each($this[0].files,function(i,file){value+=file.name+", "}),value=value.substring(0,value.length-2),$text.val(value)})}}),$.components.register("isotope",{mode:"init",defaults:{},init:function(context){if("undefined"!=typeof $.fn.isotope){var defaults=$.components.getDefaults("isotope"),callback=function(){$('[data-plugin="isotope"]',context).each(function(){var $this=$(this),options=$.extend(!0,{},defaults,$this.data());$this.isotope(options)})};context!==document?callback():$(window).on("load",function(){callback()})}}}),$.components.register("appear",{defaults:{},api:function(context){$.fn.appear&&($(document).on("appear",'[data-plugin="appear"]',function(){var $item=$(this),animate=$item.data("animate");$item.hasClass("appear-no-repeat")||($item.removeClass("invisible").addClass("animation-"+animate),$item.data("repeat")===!1&&$item.addClass("appear-no-repeat"))}),$(document).on("disappear",'[data-plugin="appear"]',function(){var $item=$(this),animate=$item.data("animate");$item.hasClass("appear-no-repeat")||$item.addClass("invisible").removeClass("animation-"+animate)}))},init:function(context){if($.fn.appear){var defaults=$.components.getDefaults("appear");$('[data-plugin="appear"]',context).appear(defaults),$('[data-plugin="appear"]',context).not(":appeared").addClass("invisible")}}}),$.components.register("floatThead",{mode:"default",defaults:{top:function(){return $(".site-navbar").outerHeight()},position:"absolute"}}),$.components.register("knob",{mode:"default",defaults:{min:-50,max:50,width:120,height:120,thickness:".1"}}),$.components.register("labelauty",{mode:"default",defaults:{same_width:!0}}),$.components.register("placeholder",{mode:"init",init:function(context){$.fn.placeholder&&$("input, textarea",context).placeholder()}}),$.components.register("strength",{mode:"default",defaults:{showMeter:!0,showToggle:!1,templates:{toggle:'<div class="checkbox-custom checkbox-primary show-password-wrap"><input type="checkbox" class="{toggleClass}" title="Show/Hide Password" id="show_password" /><label for="show_password">Show Password</label></div>',meter:'<div class="{meterClass}">{score}</div>',score:'<div class="{scoreClass}"></div>',main:'<div class="{containerClass}">{input}{meter}{toggle}</div>'},classes:{container:"strength-container",status:"strength-{status}",input:"strength-input",toggle:"strength-toggle",meter:"strength-meter",score:"strength-score"},scoreLables:{invalid:"Invalid",weak:"Weak",good:"Good",strong:"Strong"},scoreClasses:{invalid:"strength-invalid",weak:"strength-weak",good:"strength-good",strong:"strength-strong"}}}),$.components.register("wizard",{mode:"default",defaults:{step:".steps .step, .pearls .pearl",templates:{buttons:function(){var options=this.options;return'<div class="wizard-buttons"><a class="btn btn-default btn-outline" href="#'+this.id+'" data-wizard="back" role="button">'+options.buttonLabels.back+'</a><a class="btn btn-primary btn-outline pull-right" href="#'+this.id+'" data-wizard="next" role="button">'+options.buttonLabels.next+'</a><a class="btn btn-success btn-outline pull-right" href="#'+this.id+'" data-wizard="finish" role="button">'+options.buttonLabels.finish+"</a></div>"}}}}),$.components.register("timepicker",{mode:"default",defaults:{}}),$.components.register("vectorMap",{mode:"default",defaults:{map:"world_mill_en",backgroundColor:"#fff",zoomAnimate:!0,regionStyle:{initial:{fill:$.colors("primary",600)},hover:{fill:$.colors("primary",500)},selected:{fill:$.colors("primary",800)},selectedHover:{fill:$.colors("primary",500)}},markerStyle:{initial:{r:8,fill:$.colors("red",600),"stroke-width":0},hover:{r:12,stroke:$.colors("red",600),"stroke-width":0}}}}),$.components.register("ladda",{mode:"init",defaults:{timeout:2e3},init:function(){if("undefined"!=typeof Ladda){var defaults=$.components.getDefaults("ladda");Ladda.bind('[data-plugin="ladda"]',defaults)}}}),$.components.register("laddaProgress",{mode:"init",defaults:{init:function(instance){var progress=0,interval=setInterval(function(){progress=Math.min(progress+.1*Math.random(),1),instance.setProgress(progress),1===progress&&(instance.stop(),clearInterval(interval))},200)}},init:function(){if("undefined"!=typeof Ladda){var defaults=$.components.getDefaults("laddaProgress");Ladda.bind('[data-plugin="laddaProgress"]',defaults)}}}),$.components.register("magnificPopup",{mode:"default",defaults:{type:"image",closeOnContentClick:!0,image:{verticalFit:!0}}}),$.components.register("masonry",{mode:"init",defaults:{itemSelector:".masonry-item"},init:function(context){if("undefined"!=typeof $.fn.masonry){var defaults=$.components.getDefaults("masonry"),callback=function(){$('[data-plugin="masonry"]',context).each(function(){var $this=$(this),options=$.extend(!0,{},defaults,$this.data());$this.masonry(options)})};context!==document?callback():$(window).on("load",function(){callback()})}}}),$.components.register("matchHeight",{mode:"init",defaults:{},init:function(context){if("undefined"!=typeof $.fn.matchHeight){var defaults=$.components.getDefaults("matchHeight");$('[data-plugin="matchHeight"]',context).each(function(){var $this=$(this),options=$.extend(!0,{},defaults,$this.data()),matchSelector=$this.data("matchSelector");matchSelector?$this.find(matchSelector).matchHeight(options):$this.children().matchHeight(options)})}}}),$.components.register("material",{init:function(context){$(".form-material",context).each(function(){var $this=$(this);if($this.data("material")!==!0){var $control=$this.find(".form-control");if($control.attr("data-hint")&&$control.after("<div class=hint>"+$control.attr("data-hint")+"</div>"),$this.hasClass("floating")){if($control.hasClass("floating-label")){var placeholder=$control.attr("placeholder");$control.attr("placeholder",null).removeClass("floating-label"),$control.after("<div class=floating-label>"+placeholder+"</div>")}(null===$control.val()||"undefined"==$control.val()||""===$control.val())&&$control.addClass("empty")}$control.next().is("[type=file]")&&$this.addClass("form-material-file"),$this.data("material",!0)}})},api:function(){function _isChar(e){return"undefined"==typeof e.which?!0:"number"==typeof e.which&&e.which>0?!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!=e.which&&9!=e.which:!1}$(document).on("keydown.site.material paste.site.material",".form-control",function(e){_isChar(e)&&$(this).removeClass("empty")}).on("keyup.site.material change.site.material",".form-control",function(){var $this=$(this);""===$this.val()&&"undefined"!=typeof $this[0].checkValidity&&$this[0].checkValidity()?$this.addClass("empty"):$this.removeClass("empty")}).on("focus",".form-material-file",function(){$(this).find("input").addClass("focus")}).on("blur",".form-material-file",function(){$(this).find("input").removeClass("focus")}).on("change",".form-material-file [type=file]",function(){var $this=$(this),value="";$.each($this[0].files,function(i,file){value+=file.name+", "}),value=value.substring(0,value.length-2),value?$this.prev().removeClass("empty"):$this.prev().addClass("empty"),$this.prev().val(value)})}}),$.components.register("multiSelect",{mode:"default",defaults:{}}),$.components.register("nestable",{mode:"default"}),$.components.register("nprogress",{mode:"init",defaults:{minimum:.15,trickleRate:.07,trickleSpeed:360,showSpinner:!1,template:'<div class="bar" role="bar"></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'},init:function(){if("undefined"!=typeof NProgress){var defaults=$.components.getDefaults("nprogress");NProgress.configure(defaults)}}}),$.components.register("owlCarousel",{mode:"default",defaults:{loop:!0,nav:!0,dots:!1,dotsClass:"owl-dots owl-dots-fall",responsive:{0:{items:1},600:{items:3}}}}),$.components.register("panel",{api:function(){$(document).on("click.site.panel",'[data-toggle="panel-fullscreen"]',function(e){e.preventDefault();var $this=$(this),$panel=$this.closest(".panel"),api=$panel.data("panel-api");api.toggleFullscreen()}),$(document).on("click.site.panel",'[data-toggle="panel-collapse"]',function(e){e.preventDefault();var $this=$(this),$panel=$this.closest(".panel"),api=$panel.data("panel-api");api.toggleContent()}),$(document).on("click.site.panel",'[data-toggle="panel-close"]',function(e){e.preventDefault();var $this=$(this),$panel=$this.closest(".panel"),api=$panel.data("panel-api");api.close()}),$(document).on("click.site.panel",'[data-toggle="panel-refresh"]',function(e){e.preventDefault();var $this=$(this),$panel=$this.closest(".panel"),api=$panel.data("panel-api"),callback=$this.data("loadCallback");$.isFunction(window[callback])?api.load(window[callback]):api.load()})},init:function(context){$(".panel",context).each(function(){var $loading,$this=$(this),isFullscreen=!1,isClose=!1,isCollapse=!1,isLoading=!1,$fullscreen=$this.find('[data-toggle="panel-fullscreen"]'),$collapse=$this.find('[data-toggle="panel-collapse"]'),self=this;$this.hasClass("is-collapse")&&(isCollapse=!0);var api={load:function(callback){var type=$this.data("loader-type");type||(type="default"),$loading=$('<div class="panel-loading"><div class="loader loader-'+type+'"></div></div>'),$loading.appendTo($this),$this.addClass("is-loading"),$this.trigger("loading.uikit.panel"),isLoading=!0,$.isFunction(callback)&&callback.call(self,this.done)},done:function(){isLoading===!0&&($loading.remove(),$this.removeClass("is-loading"),$this.trigger("loading.done.uikit.panel"))},toggleContent:function(){isCollapse?this.showContent():this.hideContent()},showContent:function(){isCollapse!==!1&&($this.removeClass("is-collapse"),$collapse.hasClass("wb-plus")&&$collapse.removeClass("wb-plus").addClass("wb-minus"),$this.trigger("shown.uikit.panel"),isCollapse=!1)},hideContent:function(){isCollapse!==!0&&($this.addClass("is-collapse"),$collapse.hasClass("wb-minus")&&$collapse.removeClass("wb-minus").addClass("wb-plus"),$this.trigger("hidden.uikit.panel"),isCollapse=!0)},toggleFullscreen:function(){isFullscreen?this.leaveFullscreen():this.enterFullscreen()},enterFullscreen:function(){isFullscreen!==!0&&($this.addClass("is-fullscreen"),$fullscreen.hasClass("wb-expand")&&$fullscreen.removeClass("wb-expand").addClass("wb-contract"),$this.trigger("enter.fullscreen.uikit.panel"),isFullscreen=!0)},leaveFullscreen:function(){isFullscreen!==!1&&($this.removeClass("is-fullscreen"),$fullscreen.hasClass("wb-contract")&&$fullscreen.removeClass("wb-contract").addClass("wb-expand"),$this.trigger("leave.fullscreen.uikit.panel"),isFullscreen=!1)},toggle:function(){isClose?this.open():this.close()},open:function(){isClose!==!1&&($this.removeClass("is-close"),$this.trigger("open.uikit.panel"),isClose=!1)},close:function(){isClose!==!0&&($this.addClass("is-close"),$this.trigger("close.uikit.panel"),isClose=!0)}};$this.data("panel-api",api)})}}),$.components.register("peityBar",{mode:"init",defaults:{delimiter:",",fill:[$.colors("primary",400)],height:22,max:null,min:0,padding:.1,width:44},init:function(context){if($.fn.peity){var defaults=$.components.getDefaults("peityBar");$('[data-plugin="peityBar"]',context).each(function(){var $this=$(this),options=$this.data();if(options.skin&&$.colors(options.skin)){var skinColors=$.colors(options.skin);
  defaults.fill=[skinColors[400]]}options=$.extend(!0,{},defaults,options),$this.peity("bar",options)})}}}),$.components.register("peityDonut",{mode:"init",defaults:{delimiter:null,fill:[$.colors("primary",700),$.colors("primary",400),$.colors("primary",200)],height:null,innerRadius:null,radius:11,width:null},init:function(context){if($.fn.peity){var defaults=$.components.getDefaults("peityDonut");$('[data-plugin="peityDonut"]',context).each(function(){var $this=$(this),options=$this.data();if(options.skin&&$.colors(options.skin)){var skinColors=$.colors(options.skin);defaults.fill=[skinColors[700],skinColors[400],skinColors[200]]}options=$.extend(!0,{},defaults,options),$this.peity("donut",options)})}}}),$.components.register("peityLine",{mode:"init",defaults:{delimiter:",",fill:[$.colors("primary",200)],height:22,max:null,min:0,stroke:$.colors("primary",600),strokeWidth:1,width:44},init:function(context){if($.fn.peity){var defaults=$.components.getDefaults("peityLine");$('[data-plugin="peityLine"]',context).each(function(){var $this=$(this),options=$this.data();if(options.skin&&$.colors(options.skin)){var skinColors=$.colors(options.skin);defaults.fill=[skinColors[200]],defaults.stroke=skinColors[600]}options=$.extend(!0,{},defaults,options),$this.peity("line",options)})}}}),$.components.register("peityPie",{mode:"init",defaults:{delimiter:null,fill:[$.colors("primary",700),$.colors("primary",400),$.colors("primary",200)],height:null,radius:11,width:null},init:function(context){if($.fn.peity){var defaults=$.components.getDefaults("peityPie");$('[data-plugin="peityPie"]',context).each(function(){var $this=$(this),options=$this.data();if(options.skin&&$.colors(options.skin)){var skinColors=$.colors(options.skin);defaults.fill=[skinColors[700],skinColors[400],skinColors[200]]}options=$.extend(!0,{},defaults,options),$this.peity("pie",options)})}}}),$.components.register("plyr",{mode:"init",init:function(){"undefined"!=typeof plyr&&(!function(d,u){var a=new XMLHttpRequest,b=d.body;"withCredentials"in a&&(a.open("GET",u,!0),a.send(),a.onload=function(){var c=d.createElement("div");c.style.display="none",c.innerHTML=a.responseText,b.insertBefore(c,b.childNodes[0])})}(document,"https://cdn.plyr.io/1.1.5/sprite.svg"),plyr.setup())}}),$.components.register("rating",{mode:"init",defaults:{targetKeep:!0,icon:"font",starType:"i",starOff:"icon wb-star",starOn:"icon wb-star orange-600",cancelOff:"icon wb-minus-circle",cancelOn:"icon wb-minus-circle orange-600",starHalf:"icon wb-star-half orange-500"},init:function(context){if($.fn.raty){var defaults=$.components.getDefaults("rating");$('[data-plugin="rating"]',context).each(function(){var $this=$(this),options=$.extend(!0,{},defaults,$this.data());options.hints&&(options.hints=options.hints.split(",")),$this.raty(options)})}}}),$.components.register("select2",{mode:"default",defaults:{width:"style"}}),$.components.register("selectable",{mode:"init",defaults:{allSelector:".selectable-all",itemSelector:".selectable-item",rowSelector:"tr",rowSelectable:!1,rowActiveClass:"active",onChange:null},init:function(context){if($.fn.asSelectable){var defaults=$.components.getDefaults("selectable");$('[data-plugin="selectable"], [data-selectable="selectable"]',context).each(function(){var options=$.extend({},defaults,$(this).data());$(this).asSelectable(options)})}}}),$.components.register("slidePanel",{mode:"manual",defaults:{closeSelector:".slidePanel-close",mouseDragHandler:".slidePanel-handler",loading:{template:function(options){return'<div class="'+options.classes.loading+'"><div class="loader loader-default"></div></div>'},showCallback:function(options){this.$el.addClass(options.classes.loading+"-show")},hideCallback:function(options){this.$el.removeClass(options.classes.loading+"-show")}}}}),$.components.register("summernote",{mode:"default",defaults:{height:300}}),$.components.register("switchery",{mode:"init",defaults:{color:$.colors("primary",600)},init:function(context){if("undefined"!=typeof Switchery){var defaults=$.components.getDefaults("switchery");$('[data-plugin="switchery"]',context).each(function(){var options=$.extend({},defaults,$(this).data());new Switchery(this,options)})}}}),$.components.register("table",{mode:"api",api:function(context){$(document).on("click",".table-section",function(e){"checkbox"===e.target.type||"button"===e.target.type||"a"===e.target.tagName.toLowerCase()||$(e.target).parent("div.checkbox-custom").length||($(this).hasClass("active")?$(this).removeClass("active"):($(this).siblings(".table-section").removeClass("active"),$(this).addClass("active")))})}}),$.components.register("verticalTab",{mode:"init",init:function(context){$.fn.matchHeight&&$(".nav-tabs-vertical",context).each(function(){$(this).children().matchHeight()})}}),$.components.register("horizontalTab",{mode:"init",init:function(context){$.fn.responsiveHorizontalTabs&&$(".nav-tabs-horizontal",context).responsiveHorizontalTabs()}}),$.components.register("taskList",{mode:"api",api:function(){$(document).on("change.site.task",'[data-role="task"]',function(){var $list=$(this),$checkbox=$list.find('[type="checkbox"]');$checkbox.is(":checked")?$list.addClass("task-done"):$list.removeClass("task-done")}),$('[data-role="task"]').trigger("change.site.task")}}),$.components.register("toastr",{mode:"api",api:function(){if("undefined"!=typeof toastr){var defaults=$.components.getDefaults("toastr");$(document).on("click.site.toastr",'[data-plugin="toastr"]',function(e){e.preventDefault();var $this=$(this),options=$.extend(!0,{},defaults,$this.data()),message=options.message||"",type=options.type||"info",title=options.title||void 0;switch(type){case"success":toastr.success(message,title,options);break;case"warning":toastr.warning(message,title,options);break;case"error":toastr.error(message,title,options);break;case"info":toastr.info(message,title,options);break;default:toastr.info(message,title,options)}})}}}),$.components.register("toolbar",{mode:"init",init:function(context){if($.fn.toolbar){var defaults=$.components.getDefaults("toolbar");$('[data-plugin="toolbar"]',context).each(function(){var $this=$(this),content=$this.data("toolbar"),options=$.extend(!0,{},defaults);content&&(options.content=content),$this.toolbar(options)})}}}),$.components.register("webuiPopover",{mode:"default",defaults:{trigger:"click",width:320,multi:!0,cloaseable:!1,style:"",delay:300,padding:!0}});