UNPKG

siftal

Version:

CSS Framework, not bad ;)

1 lines 550 kB
function logy(_val,_type){if(window.console&&window.console.log){if(!allowLogy())return!1;switch(_type){case"info":console.info(_val);break;case"warn":console.warn(_val);break;case"debug":console.debug(_val);break;case"error":console.error(_val);break;case"log":default:console.log(_val)}}return!0}function allowLogy(){var $html=document.getElementsByTagName("html")[0];return!(!$html||null===$html.getAttribute("data-develop"))}function toggleLogy(){var $html=document.getElementsByTagName("html")[0];$html&&(console.log($html.getAttribute("data-develop")),null===$html.getAttribute("data-develop")?$html.setAttribute("data-develop",""):$html.removeAttribute("data-develop"))}function modalOpenClose(){$(".modal").on("close",function(_e,_obj){var scrollTop=parseInt($("html").css("top"));$("html").removeClass("noscroll"),$("html,body").scrollTop(-scrollTop);var $this=$(this);$this.removeClass("visible"),$.each($this.data(),function(key){"modal"!==key&&$this.attr("data-"+key,null)})}),$(".modal").on("open",function(){if($(document).height()>$(window).height()){var scrollTop=$("html").scrollTop()?$("html").scrollTop():$("body").scrollTop();$("html").addClass("noscroll").css("top",-scrollTop)}$(this).addClass("visible");var $send=$("[data-ajaxify]",this);$send.length&&($.each($send.data(),function(key){"modal"!==key&&$send.attr(key,!1)}),$send.copyData(this,["modal"]))})}function runClockPicker(){$(".clockpicker").clockpicker()}function runDatePicker(){$(".datepicker").each(function(){var $mydatePicker=$(this),mydateOpt={};$mydatePicker.attr("maxlength",10),mydateOpt.toolbox={calendarSwitch:{enabled:!1}},mydateOpt.calendarType=$mydatePicker.attr("data-type"),mydateOpt.calendarType||("fa"===$("html").attr("lang")?mydateOpt.calendarType="persian":mydateOpt.calendarType="gregorian"),mydateOpt.format=$mydatePicker.attr("data-format"),mydateOpt.format||(mydateOpt.format="YYYY/MM/DD"),$mydatePicker.attr("data-alt")&&(mydateOpt.altField=$mydatePicker.attr("data-alt"),mydateOpt.altFormat=$mydatePicker.attr("data-altFormat")),$mydatePicker.attr("data-view")&&(mydateOpt.viewMode=$mydatePicker.attr("data-view")),mydateOpt.inline=void 0!==$mydatePicker.attr("data-inline"),mydateOpt.observer=void 0===$mydatePicker.attr("data-off"),mydateOpt.autoClose=void 0===$mydatePicker.attr("data-open"),mydateOpt.position=[36,0],void 0!==$mydatePicker.attr("data-en")&&(mydateOpt.calendar={persian:{locale:"en"}}),$mydatePicker.val()?mydateOpt.initialValue=!0:mydateOpt.initialValue=!1,mydateOpt.inline&&(mydateOpt.autoClose=!1),$mydatePicker.persianDatepicker(mydateOpt),$mydatePicker.on("keydown",function(_e){console.log(_e.which),9==_e.which&&$mydatePicker.pDatePicker&&$mydatePicker.pDatePicker.model.view.hide()})})}function runDataResponse(){$(document).on("change","input:not([data-response-realtime]), select",function(){checkInputResponse(this,!1),checkCheckboxResponse(this,!1)}),$(document).on("input","input[data-response-realtime]",function(){checkInputResponse(this,!1)})}function getInputValue(_el){var elValue;switch($(_el).attr("type")){case"checkbox":elValue=$(_el).is(":checked");break;case"radio":elValue=$(_el).val();break;case"text":default:elValue=$(_el).val()}return elValue}function checkCheckboxResponse(_this,_firstTime){var myRequire=$(_this).attr("data-require");!0===$(_this).is(":checked")&&myRequire&&(myRequire=myRequire.split("|"),$.each(myRequire,function(index,val){$("#"+val).prop("checked",!0)}))}function checkInputResponse(_this,_firstTime){var elResult,elGroup=!1,elID=$(_this).attr("id"),elName=$(_this).attr("name"),elType=$(_this).attr("type"),elGroupEl=$(_this).parents("[data-respnse-group]"),elGet=$(_this).attr("data-response-get"),elValue=getInputValue($(_this),elType),elSelector=elName;"id"==elGet&&(elSelector=elID);var childrens=$('[data-response="'+elSelector+'"]');childrens.length<1&&(elSelector=elID,childrens=$('[data-response="'+elSelector+'"]')),childrens.length<1&&(elSelector=elID,childrens=$('[data-response*="'+elSelector+'"]')),elGroupEl.length&&elGroupEl.each(function(index,el){var myGroup=$(this).attr("data-respnse-group");elGroup=myGroup,childrens=childrens.add('[data-response*="'+myGroup+'"]')}),childrens.each(function(){var effect=$(this).attr("data-response-effect"),transition=$(this).attr("data-response-transition"),timing=$(this).attr("data-response-timing"),where=$(this).attr("data-response-where"),whereNot=$(this).attr("data-response-where-not"),toggle=$(this).attr("data-response-toggle"),disable=$(this).attr("data-response-disable"),classTrue=$(this).attr("data-response-class"),classFalse=$(this).attr("data-response-class-false"),callFn=$(this).attr("data-response-call"),repeat=$(this).attr("data-response-repeat");if(!disable&&$(this).attr("disabled")&&(disable=$(this).attr("disabled"),$(this).attr("data-response-disable","disabled-manual")),effect="slide"==effect?{name:"slide",toggle:"slideToggle",open:"slideDown",close:"slideUp"}:{name:"fade",toggle:"fadeToggle",open:"fadeIn",close:"fadeOut"},timing||(timing="fast"),elGroup){var groupWhere=elGroupEl.attr("data-response-where"),groupWhereNot=elGroupEl.attr("data-response-where-not"),groupWhereResult=!0;groupWhereNot&&(groupWhereResult=!1),elGroupEl.find("input").each(function(index,el){groupWhereNot?getInputValue(el).toString()!==groupWhereNot&&(groupWhereResult=!0):groupWhere&&getInputValue(el).toString()!==groupWhere&&(groupWhereResult=!1)}),where=groupWhereResult}else where?($.each(where.split("|"),function(index,whereValue){whereValue==elValue.toString()&&(where=!0)}),!0!==where&&(where=!1)):whereNot?($.each(whereNot.split("|"),function(index,whereNotValue){whereNotValue!==elValue.toString()&&(where=!0)}),!0!==where&&(where=!1)):0!=elValue&&(where=!0);if(toggle?transition?$(this).transition("stop all").transition(transition):$(this)[effect.effect](timing):where?(disable?$(this).prop("disabled",!1):void 0!==classTrue?($(this).addClass(classTrue),$(this).removeClass(classFalse)):void 0!=repeat||(transition?$(this).transition("stop all").transition(transition):($(this).attr("data-response-hide",null),$(this)[effect.open](timing))),$(this).find("[data-response-focus]").length?$(this).find("[data-response-focus]").trigger("focus"):$(this).closest("[data-response-focus]").trigger("focus"),elResult="open"):(disable?$(this).prop("disabled",!0):void 0!==classTrue?($(this).addClass(classFalse),$(this).removeClass(classTrue)):void 0!=repeat||(transition?$(this).transition("stop all").transition(transition):$(this)[effect.close](timing,function(){$(this).attr("data-response-hide","")})),elResult="close"),void 0!=repeat){var parentValue="";switch(elType){case"checkbox":parentValue=$(_this).is(":checked"),$(this).prop("checked",parentValue);break;case"radio":case"text":default:parentValue=$(_this).val(),$(this).val(parentValue)}}callFn&&(elResult=1==elResult,"function"==typeof window[callFn]&&window[callFn](elResult,$(this),$(_this)))}),$(window).trigger("response:open",[elSelector,elResult])}function fixSlideJumping(){$('[data-response-hide][data-response-effect="slide"]:not([data-response-notfix])',this).css("height",function(i,h){return $(this).hide(),h})}function runSortable(){var el=$(".sortable");el.length>0&&(el=el[0],Sortable.create(el,{handle:".handle",animation:300,filter:".fix",chosenClass:"isChoosen",onUpdate:function(e){e.item;"function"==typeof rearrangeSortable&&rearrangeSortable()}}))}function runCounterUp(){$(".counter").counterUp({delay:20,time:1e3})}function notif(_type,_msg,_title,_timeout,_opt){var notifOpt={};switch(_type){case"true":case"success":case"okay":case"ok":_type="success",notifOpt.transitionIn="fadeInLeft";break;case"warn":case"warning":_type="warning",notifOpt.transitionIn="bounceInLeft";break;case"fatal":case"danger":case"error":_type="error",notifOpt.transitionIn="bounceInUp";break;default:_type="info",notifOpt.transitionIn="flipInX"}return notifOpt.transitionOut="fadeOutRight",$("body").hasClass("rtl")&&(notifOpt.rtl=!0,notifOpt.transitionOut="fadeOutLeft",notifOpt.transitionIn="error"==_type?"bounceInUp":"warning"==_type?"bounceInRight":"fadeInRight"),_msg&&(notifOpt.message=_msg),_title&&(notifOpt.title=_title),$.isNumeric(_timeout)?notifOpt.timeout=_timeout:0!=_timeout&&"false"!==_timeout||(notifOpt.timeout=!1),_opt&&(_opt.position&&(notifOpt.position=_opt.position),_opt.target&&(notifOpt.target=_opt.target),_opt.icon&&(notifOpt.icon=_opt.icon),_opt.image&&(notifOpt.image=_opt.image),_opt.theme&&(notifOpt.theme=_opt.theme),_opt.iconColor&&(notifOpt.iconColor=_opt.iconColor),_opt.displayMode&&(notifOpt.displayMode=_opt.displayMode),_opt.transitionIn&&(notifOpt.transitionIn=_opt.transitionIn),_opt.timeout&&$.isNumeric(_opt.timeout)?notifOpt.timeout=_opt.timeout:0!=_opt.timeout&&"false"!==_opt.timeout||(notifOpt.timeout=!1)),notifOpt.layout=2,"function"!=typeof iziToast[_type]?(logy("where is notif!?"),!1):(iziToast[_type](notifOpt),!0)}function runHtmlNotif(){$("[data-notif][data-notif-autorun]").each(function(_el){getNotifData($(this))}),$("[data-notif]").off("click"),$("[data-notif]").on("click",function(_el){getNotifData($(this))})}function getNotifData(_el){var notifOpt={};notifOpt.alerty=_el.attr("data-alerty"),notifOpt.type=_el.attr("data-notif-type"),notifOpt.message=_el.attr("data-notif"),notifOpt.title=_el.attr("data-notif-title"),notifOpt.timeout=_el.attr("data-notif-timeout"),notifOpt.target=_el.attr("data-notif-target"),notifOpt.position=_el.attr("data-notif-pos"),notifOpt.icon=_el.attr("data-notif-icon"),notifOpt.image=_el.attr("data-notif-image"),void 0===notifOpt.alerty?notif(notifOpt.type,notifOpt.message,notifOpt.title,notifOpt.timeout,notifOpt):notifAlerty(notifOpt.type,notifOpt.message,notifOpt.title,notifOpt.timeout,notifOpt)}function notifGenerator(_data,$_form){var result={error:!1};if($_form&&$_form.find("input").removeClass("error warn"),!_data||!_data.msg)return!1;for(var recordId in _data=_data.msg){var recordData=_data[recordId],recordDataMeta=recordData.meta,recordTitle=null,delay=void 0;if($_form&&$_form.attr("data-delay")&&(delay=$_form.attr("data-delay")),recordDataMeta&&recordDataMeta.title&&(recordTitle=recordDataMeta.title),(recordData.text||recordTitle)&&(recordDataMeta&&recordDataMeta.alerty?notifAlerty(recordData.type,recordData.text,recordTitle,delay,recordDataMeta):notif(recordData.type,recordData.text,recordTitle,delay,recordDataMeta)),"error"==recordData.type&&(result.error=!0),$_form&&($_form.find("input").removeClass("error warn ok").parent().removeClass("error warn ok"),$_form.find("select").removeClass("error warn ok"),$_form.find("textarea").removeClass("error warn ok"),recordDataMeta)){var myElementHighlight=recordDataMeta.element;if(myElementHighlight)try{myElementHighlight=JSON.parse(myElementHighlight)}catch(e){}else _.isArray(recordDataMeta)||(myElementHighlight=recordDataMeta);myElementHighlight&&(_.isArray(myElementHighlight)?myElementHighlight:[myElementHighlight]).forEach(function(_e){var $el=$_form.find('input[name="'+_e+'"]');$el.parent().is(".input")&&($el=$el.parent()),0===$el.length&&($el=$_form.find('select[name="'+_e+'"]')),0===$el.length&&($el=$_form.find('textarea[name="'+_e+'"]')),$el.addClass(recordData.type)})}}return result}function notifConfirm(_this,_data,_msg,_title,_okayBtn,_closeBtn){if(void 0!==_this&&(_data=_this.attr("data-data"),_msg=_this.attr("data-msg"),_title=_this.attr("data-title"),_okayBtn=_this.attr("data-okayBtn"),_closeBtn=_this.attr("data-closeBtn")),!_data)return logy("data not sended!"),!1;void 0===_msg&&(_msg="Do you confirm?"),void 0===_title&&(_title=""),void 0===_okayBtn&&(_okayBtn="Ok"),void 0===_closeBtn&&(_closeBtn="Close"),iziToast.show({theme:"dark",icon:"question-circle",title:_title,message:_msg,position:"center",progressBarColor:"rgb(0, 255, 184)",buttons:[["<button data-ajaxify data-method='post' data-data='"+_data+"'>"+_okayBtn+"</button>",function(instance,toast){instance.hide({transitionOut:"flipOutX"},toast,"buttonName")},!0],["<button>"+_closeBtn+"</button>",function(instance,toast){instance.hide({transitionOut:"fadeOutUp"},toast,"buttonName")}]]})}function setSelectionRange(_input,_selectionStart,_selectionEnd){if(_input.setSelectionRange)_input.focus(),_input.setSelectionRange(_selectionStart,_selectionEnd);else if(_input.createTextRange){var range=_input.createTextRange();range.collapse(!0),range.moveEnd("character",_selectionEnd),range.moveStart("character",_selectionStart),range.select()}}function setCaretToPos(_input,_pos){setSelectionRange(_input,_pos,_pos)}function runTagDetector(){$(document).on("keypress",".tagDetector .tagInput",function(e){switch(e.which){case 13:case 44:case 59:return addNewTags(this),!1}}),$(document).on("click",".tagDetector .tagAdd",function(){return addNewTags(this),$(this).closest(".tagDetector").find(".tagInput").trigger("focus"),!1}),$(document).on("click",".tagDetector .tagBox span",function(){var $this=$(this),clickedTagText=$this.text().trim(),clickedTagVal=clickedTagText,myDetector=$this.closest(".tagDetector"),attrData=getTagLists(myDetector),elInput=myDetector.find(".tagInput");"list"===myDetector.attr("data-restrict")&&(clickedTagVal=$this.attr("data-val").trim()),attrData.splice(attrData.indexOf(clickedTagVal),1),setTagList(myDetector,attrData),elInput.val(clickedTagText).trigger("focus"),$this.remove()}),$(document).on("click",".tagDetector .specialTags span",function(){var myVal=$(this).attr("data-val"),myInput=$(this).closest(".tagDetector").find(".tagInput");return myInput.val(myVal),addNewTags(this),myInput.trigger("focus"),!1})}function initTagDetector(){var myDetector=$(".tagDetector");myDetector.each(function(_el){var myTags=getTagLists(myDetector),$Detector=$(this);$.each(myTags,function(_key,_val){addNewTagsEl($Detector,_val)})})}function addNewTags(_elChilds){var myDetector=$(_elChilds).closest(".tagDetector");if(1!=myDetector.length)return null;var elInput=myDetector.find(".tagInput"),elBox=myDetector.find(".tagBox"),attrBindInput=myDetector.attr("data-bind-input"),attrBindBox=myDetector.attr("data-bind-box"),attrRestrict=myDetector.attr("data-restrict"),attrLimit=parseInt(myDetector.attr("data-limit")),attrData=getTagLists(myDetector);if(attrData.length>=attrLimit)return"reach limit";attrBindInput&&(elInput=myDetector.find(attrBindInput)),attrBindBox&&(elBox=myDetector.find(attrBindBox));var inputText=elInput.val();if(elInput.val(""),inputText&&(inputText=inputText.trim()),!inputText)return!1;var myNewTag=inputText;if("list"===attrRestrict)return elInput.addClass("isDisallow"),void setTimeout(function(){elInput.removeClass("isDisallow")},500);if(attrData.indexOf(myNewTag)>=0){var elTagExist=elBox.find('[data-val="'+myNewTag+'"]');elTagExist.addClass("isExist"),setTimeout(function(){elTagExist.removeClass("isExist")},500)}else attrData.push(myNewTag),setTagList(myDetector,attrData),addNewTagsEl(myDetector,inputText)}function addNewTagsEl(_detector,_tag){var elBox=_detector.find(".tagBox"),attrBindBoxFormat=_detector.attr("data-box-format");attrBindBoxFormat||(attrBindBoxFormat="<span>:tag</span>");var elNewTag=attrBindBoxFormat.replace(":tag",_tag);elNewTag=$(elNewTag).attr("data-val",_tag),elBox.append(elNewTag)}function getTagLists(_detector){var attrData=_detector.find(".tagVals").val();return attrData=void 0!=attrData&&""!=attrData.trim()?attrData.split(","):[]}function setTagList(_detector,_data){var elVals=_detector.find(".tagVals"),attrBindVal=_detector.attr("data-bind-val");attrBindVal&&(elVals=_detector.find(attrBindVal)),elVals.val(_data.join())}var myTippy,lastKeyPressed;function runTippy(){void 0===$("html").attr("data-app")&&(tippy.hideAll({duration:0}),myTippy=tippy("[title]",{arrow:!0,animation:"scale",content(reference){var title=reference.getAttribute("title");return reference.removeAttribute("title"),title||(title=null),title}}))}function removeTippy(){document.querySelectorAll("[data-tippy]").forEach(function(_el){_el._tippy&&_el._tippy.hide()})}function bindUploader(){$("#gallery").uploader({url:window.location.href,dataType:"json",method:"POST",dropzone:".dropzone",done:function(e,data){},progress:function(e){var myPercentage=Math.round(e.loaded/e.total*100);myProgress=$(".dropzone .progress"),myProgress&&(myProgress.removeClass("shadow").attr("data-percent",myPercentage),myProgress.find(".detail").text(myPercentage+"%"))},uploaded:function(e){logy("All files uploaded"),Navigate({url:window.location.href})}})}function bindHtmlShortkey(){$(document).on("keydown",function(_e){shortkey_corridor.call(this,_e)})}function shortkey_corridor(_e,_self,_key){_key||(_key=_e.which),_self=$(_self);var ctrl=_e.ctrlKey?"ctrl":"",shift=_e.shiftKey?"shift":"",alt=_e.altKey?"alt":"",mytxt=String(_key)+ctrl+alt+shift;if("16"===String(_key))return null;if("17"===String(_key))return null;if("18"===String(_key))return null;var elShortkey=$('[data-shortkey="'+mytxt+'"]');if(0==elShortkey.length){var $focused=$(":focus");if(lastKeyPressed&&!$focused.is("input"))elShortkey=$('[data-shortkey="'+(lastKeyPressed+"+"+mytxt)+'"]')}1==elShortkey.length?$focused&&($focused.is("input")||$focused.is("textarea")||$focused.is("select")||$focused.hasClass("medium-editor-element"))&&(String(_key)>48||String(_key)<90)||(void 0!==elShortkey.attr("data-shortkey-prevent")&&_e.preventDefault(),shortkeyCallFunc(elShortkey,_e)?_e.preventDefault():shortkeyDo(elShortkey)):"112"===mytxt&&(_e.preventDefault(),shortkeySupport()),lastKeyPressed=mytxt}function shortkeyDo(_elShortkey){var effectTimeout=0;if(_elShortkey.attr("data-shortkey-timeout")&&(effectTimeout=_elShortkey.attr("data-shortkey-timeout")),_elShortkey.is("a[href], a[href] *, button, input[type=submit]")){var myInputClickable=_elShortkey[0];return myInputClickable?(effectTimeout?($(myInputClickable).addClass("clicked"),setTimeout(function(){$(myInputClickable).removeClass("clicked"),myInputClickable.click()},effectTimeout)):myInputClickable.click(),!0):(effectTimeout?($(_elShortkey).addClass("clicked"),setTimeout(function(){$(_elShortkey).removeClass("clicked"),_elShortkey.trigger("click")},effectTimeout)):_elShortkey.trigger("click"),!0)}return _elShortkey.is("input, select, textarea")?(effectTimeout?($(_elShortkey).addClass("clicked"),setTimeout(function(){$(_elShortkey).removeClass("clicked"),_elShortkey.trigger("focus")},effectTimeout)):_elShortkey.trigger("focus"),!0):null}function shortkeyCallFunc(_elShortkey,_e){var myFuncCall=_elShortkey.attr("data-shortkey-call");if(void 0!==myFuncCall){if(callFunc(myFuncCall="shortkey_"+myFuncCall,null,!0))return callFunc(myFuncCall,_e),!0;logy("shortkey func is not exist!")}return!1}function shortkeySupport(){var supportURL="support";void 0!==$("html").attr("lang")&&(supportURL="/"+$("html").attr("lang")+"/"+supportURL),window.open(supportURL,"_blank")}function pingi(){pingiWebsite(!0)}function pingiWebsite(_firstTime){$.ajax({url:window.location.protocol+"//"+window.location.hostname,cache:!1,timeout:500,processData:!1,contentType:!1,data:{cmd:"ping"}}).done(function(data,status,xhr){console.log("We are okay!"),$("body").trigger("pingi:website:ok",_firstTime)}).fail(function(_result,_textStatus,_error){console.log("fail get website with ping :|"),$("body").trigger("pingi:website:fail",_firstTime)})}function pingiRunner(){$("body").on("pingi:website:fail",function(_e,_firstTime){"fa"===$("html").attr("lang")?notif("fatal","ما نمی‌توانیم "+window.location.hostname+" را ببینیم","ارتباط از دست رفت!",8e3,{position:"topCenter",icon:"sf-plug",displayMode:1}):notif("fatal","We can't see "+window.location.hostname,"Connection is lost",8e3,{position:"topCenter",icon:"sf-plug",displayMode:1}),_firstTime?void 0===$("body").attr("data-offline")&&(setTimeout(pingiWebsite,1e4),$("body").attr("data-offline","")):setTimeout(pingiWebsite,1e4)}),$("body").on("pingi:website:ok",function(_e,_firstTime){void 0===$("body").attr("data-offline")||("fa"===$("html").attr("lang")?notif("okay","ما روی "+window.location.hostname+" آنلاین هستیم","اتصال برقرار شد",5e3,{position:"topCenter",icon:"sf-link",displayMode:1}):notif("okay","We are online on "+window.location.hostname,"Connection is re-established",5e3,{position:"topCenter",icon:"sf-link",displayMode:1})),$("body").attr("data-offline",null)})}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in v)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var w=function(e,t){return new w.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function C(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:"Ermile",constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&w.isPlainObject(n)?n:{},a[t]=w.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},w.extend({expando:"jQuery"+("Ermile"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e)||(t=i(e))&&("function"!=typeof(n=f.call(t,"constructor")&&t.constructor)||p.call(n)!==d))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){m(e)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?w.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var i=[],o=0,a=e.length,s=!n;o<a;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,n){var r,i,o=0,s=[];if(C(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var E=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,y,v,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ae(),k=ae(),S=ae(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,q=A.push,L=A.push,H=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",I="\\["+M+"*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",W=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),F=new RegExp("^"+M+"*,"+M+"*"),_=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),z=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),X=new RegExp(W),U=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){p()},ie=me(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{L.apply(A=H.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){L={apply:A.length?function(e,t){q.apply(e,H.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,i){var o,s,l,c,f,h,v,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=J.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!S[e+" "]&&(!y||!y.test(e))){if(1!==T)m=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=b),s=(h=a(e)).length;s--;)h[s]="#"+c+" "+ve(h[s]);v=h.join(","),m=K.test(e)&&ge(t.parentNode)||t}if(v)try{return L.apply(r,m.querySelectorAll(v)),r}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ae(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function se(e){return e[b]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function de(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(h=(d=a).documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],y=[],(n.qsa=Q.test(d.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||y.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(n.matchesSelector=Q.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),v.push("!=",W)}),y=y.length&&new RegExp(y.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(h.compareDocumentPosition),x=t||Q.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return ce(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ce(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!S[t+" "]&&(!v||!v.test(t))&&(!y||!y.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,d,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",y=t.parentNode,v=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(y){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?y.firstChild:y.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=y)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&y.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=O(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?se(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return U.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ye(){}function ve(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function me(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function xe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Te(e,t,n,r,i,o){return r&&!r[b]&&(r=Te(r)),i&&!i[b]&&(i=Te(i,o)),se(function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),y=!e||!o&&t?g:we(g,p,e,s,u),v=n?i||(o?e:h||r)?[]:a:y;if(n&&n(y,v,s,u),r)for(l=we(v,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(v[d[c]]=!(y[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=v.length;c--;)(f=v[c])&&l.push(y[c]=f);i(null,v=[],l,u)}for(c=v.length;c--;)(f=v[c])&&(l=i?O(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else v=we(v===a?v.splice(h,v.length):v),i?i(null,a,v,u):L.apply(a,v)})}function Ce(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=me(function(e){return e===t},s,!0),f=me(function(e){return O(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[me(xe(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return Te(u>1&&xe(p),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),n,u<i&&Ce(e.slice(u,i)),i<o&&Ce(e=e.slice(i)),i<o&&ve(e))}p.push(n)}return xe(p)}function Ee(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,y,v=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){for(h=0,a||f.ownerDocument===d||(p(f),s=!g);y=e[h++];)if(y(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!y&&f)&&v--,o&&x.push(f))}if(v+=m,n&&m!==v){for(h=0;y=t[h++];)y(x,b,a,s);if(o){if(v>0)for(;m--;)x[m]||b[m]||(b[m]=j.call(u));b=we(b)}L.apply(u,b),c&&!o&&b.length>0&&v+t.length>1&&oe.uniqueSort(u)}return c&&(T=E,l=w),x};return n?se(o):o}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=oe.tokenize=function(e,t){var n,i,o,a,s,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=F.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=_.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=V[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):k(e,u).slice(0)},s=oe.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){for(t||(t=a(e)),n=t.length;n--;)(o=Ce(t[n]))[b]?r.push(o):i.push(o);(o=S(e,Ee(i,r))).selector=e}return o},u=oe.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(Z,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=V.needsContext.test(e)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(Z,ee),K.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&ve(u)))return L.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||K.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split("").sort(D).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(e);w.find=E,w.expr=E.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=E.uniqueSort,w.text=E.getText,w.isXMLDoc=E.isXML,w.contains=E.contains,w.escapeSelector=E.escape;var k=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=w.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return g(t)?w.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return u.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<r;t++)if(w.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,i[t],n);return r>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&D.test(e)?w(e):e||[],!1).length}});var q,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),A.test(i[1])&&w.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,q=w(r);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&w(e);if(!D.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(w(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,n){return k(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,n){return k(e,"nextSibling",n)},prevUntil:function(e,t,n){return k(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return N(e,"iframe")?e.contentDocument:(N(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=w.filter(r,i)),this.length>1&&(O[e]||w.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function I(e){return e}function W(e){throw e}function $(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(M)||[],function(e,n){t[n]=!0}),t}(e):w.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){w.each(n,function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return w.each(arguments,function(e,t){for(var n;(n=w.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,g(l)?i?l.call(e,a(o,n,I,i),a(o,n,W,i)):(o++,l.call(e,a(o,n,I,i),a(o,n,W,i),a(o,n,I,n.notifyWith))):(r!==I&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(r!==W&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(a(0,e,g(i)?i:I,e.notifyWith