/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */
function historep(t,e,i){window.history&&history.replaceState&&history.replaceState(t,e||"",i||location.href)}function historyst(t,e){window.history&&history.pushState&&history.pushState(e,"",t)}function historyHasState(t){return history&&history.state&&history.state[t]}function modalHistoryBack(t){historyHasState("modal")&&!t.data("popstate")&&history.back(),t.data("popstate",!1)}function modalHistoryTrigger(t){if(history){var t=t||history
if(t.state&&t.state.modal)if("gallery"==t.state.modal)$("#"+t.state.datah).data("popstate",!0).click().data("popstate",!1)
else if("pagination"==t.state.modal)pageAjax.currentUrl!==t.state.datah&&(_gVar.cacheList&&_gVar.cacheList[t.state.datah]?(pageAjax.setPage(_gVar.cacheList[t.state.datah]),pageAjax.currentUrl=t.state.datah):window.location=t.state.datah)
else if(t.state.datah)try{var e=JSON.parse(t.state.datah)
if(e.length){var i=$("*["+e.join("][")+"]")
i.length||_gVar.user&&"reg1"==t.state.modal||(i=$('<a class="hidden historytrigger" '+e.join(" ")+"></a>"),$("body").append(i)),i.first().data("popstate",!0).click().data("popstate",!1)}}catch(t){}}}function renderAutocompleteItem(t,e){return $("<li></li>").data("item.autocomplete",e).append("<div>"+e.label+(e.adderlabel?"<small>"+e.adderlabel+"</small>":"")+"</div>").appendTo(t)}function scrollE(){var t=$(window),e=t.scrollTop(),i=$("body>header")
moreLinePos.length&&!moreLineWas&&e+t.height()+400>moreLinePos.offset().top&&moreLinePos.click(),i.toggleClass("min",e>50&&(t.width()>600||e>_gVar.lastScrollTop&&!i.find(".open").length)),_gVar.lastScrollTop=e||_gVar.lastScrollTop,$("#AdvBlock").toggleClass("adv-fix",endAside&&e>endAside),lazyLoad()}function lazyLoad(t){t=t||{},(t.el||$("body")).find(".lazy[data-lazy]").each(function(){var e=$(this)
if(t.show||e.inView(300)){var i=e.data("lazy")
if(e.hasClass("script"))if("function"==typeof _gVar[e.data("var")])_gVar[e.data("var")]()
else{var n=document.createElement("script"),o=document.getElementsByTagName("script")[0],s=e.data("style")
if(n.async=1,e.data("onload")&&(n.onload=function(){functionRun[functionRun.length-1]()}),n.src=i,o.parentNode.insertBefore(n,o),s){var r=document.createElement("link")
r.rel="stylesheet",r.href=s,o.parentNode.insertBefore(r,o)}}else e.hasClass("iframe")?e.attr("src",i):e.hasClass("object")&&e.attr("data",i)
e.removeAttr("data-lazy").addClass("done")}}),_gVar.isMobile&&$(".img-cover[data-imgset]").each(function(){$(this).inView(-.3*$(window).height())?$(".img-cover.runset[data-imgset]").length||$(this).rotateImg().start():$(this).hasClass("runset")&&$(this).rotateImg().stop()})}function loader(t){return $(".progress.alles").is(":visible")?1:(t||($(".progress.alles").show(),$(".modal-dialog:visible>.modal-backdrop.formap").removeClass("hide")),0)}function killloader(){$(".progress.alles").hide(),$(".modal-dialog>.modal-backdrop.formap").addClass("hide")}function reloadPage(){window.location.href=datatToReloadPage()}function datatToReloadPage(){var t=(window.location,"#"+window.location.hash.substr(1))
return window.location.href.replace(t,"")}function movie(t){t=t||[],$(".dropdown.open button.position-auto").positionAuto(),t.gallery||gallery(),$(".alert-info-cls").each(function(){var t=$(this),e=t.attr("id")
t.removeClass("alert-info-cls").addClass("alert alert-warning alert-dismissible fade in "+("1"!==lstorage(e)?"alert-cls":"alert-opn")).prepend('<button type="button" class="close">&times;</button>'),$(this).find(">div:first-of-type a, .close").on("click",function(){t.toggleClass("alert-cls").toggleClass("alert-opn"),lstorage(e,t.hasClass("alert-cls")?0:1)})}),$(".open-t").not("[was]").each(function(){var t=$(this)
if(t.attr("was","2"),t[0].scrollHeight-t.height()>50&&t.is(":visible")){var e=t.attr("data-session"),i=$('<a class="scrBotIA color-grey">'+_gText.showMore+"</a>")
if(e&&sstorage(e))return void t.css({"max-height":"none"})
i.click(function(){var t=$(this),e=t.prev(),i=e.attr("data-session"),n=$("#asideFin:visible")
i&&sstorage(i,"1"),e.css({"max-height":"none"}),t.remove(),n.length&&(endAside=n.offset().top)}),t.after(i)}else t.css({"max-height":"none"})}),_gVar.user&&!t.nottrack&&wss.trackOnline()}function gallery(t){$("#blueimp-gallery").length||$("body").append('<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls"><div class="slides"></div><div class="slides-description full-gallery"><p class="title"></p><p class="description"></p></div><a class="prev">‹</a><a class="next">›</a><a class="close">×</a><a class="play-pause"></a><ol class="indicator"></ol></div>'),$(".links:not(.was)").each(function(){var t=this,e=$(t),i=e.find(".img-cover"),n="blueimp-gallery-carousel-"+e.data("containerid")
$("#"+n).length&&(n=n+"-"+$("#"+n).length),e.addClass("was").parent().find(".blueimp-gallery").attr("id",n)
var o=blueimp.Gallery(i.get(),{container:"#"+n,urlProperty:"imgd",hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,preloadRange:1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,onslideend:function(t){i.length>1&&(i.removeClass("active"),e.find(".img-cover:eq("+t+")").addClass("active"))},onslide:function(t,e){var i=this.list[t].getAttribute("data-description"),n=this.container.find(".slides-description")
n.empty(),-1==this.list[t].className.indexOf("video-cover")?$(this.container.find(".slide")[t]).toggleClass("senscont",-1!==this.list[t].className.indexOf("senscont")):$(this.container.find(".slide")[t]).find("video").attr("poster",-1==this.list[t].className.indexOf("senscont")?"":"/style/img/sens.svg"),i&&n[0].appendChild(document.createTextNode(rawurldecode(i)))}})
$("#"+n).click(function(t){if(!o.list[o.getIndex()].type){var s={index:o.getIndex(),event:t||window.event,urlProperty:"imgd",titleElement:".title",continuous:!0,onclose:function(){modalHistoryBack($(this.container))},onslide:function(t,n){var s=this.list[t].getAttribute("data-description"),r=this.container.find(".description")
r.empty(),s&&r[0].appendChild(document.createTextNode(rawurldecode(s))),i.length>1&&(i.removeClass("active"),e.find(".img-cover:eq("+t+")").addClass("active"),o.slide(t))}},r=blueimp.Gallery(i.get(),s)
$("#blueimp-gallery").data("gallery",r),$(this).data("popstate")||historyst(null,{modal:"gallery",datah:n})}}),i.click(function(t){var e=$(this)
i.removeClass("active"),e.addClass("active"),o.slide(e.index())})})}function rawurldecode(t){return decodeURIComponent((t+"").replace(/%(?![\da-f]{2})/gi,function(){return"%25"}))}function sstorage(t,e){return!!window.sessionStorage&&(void 0===e?window.sessionStorage[t]:void(window.sessionStorage[t]=e))}function lstorage(t,e){return!!window.localStorage&&(void 0===e?window.localStorage[t]:void(window.localStorage[t]=e))}function voice(){var t=$(".poll :button.voice"),e="1"==t.data("global")
if($(".voice,.result").unbind().click(function(){var t=$(this).parent().parent(),i=t.find(".voice").attr("poll")
sendData={poll:t.find("input[name='voice']:checked").length>0&&$(this).hasClass("voice")?t.find("input[name='voice']:checked").val():"0",pollID:i,linkStat:67!=_gVar.page&&e?t.find("b a").attr("href"):"",lang:lng},gtag("event","Poll",{event_category:$(this).hasClass("voice")?"voice":"result",event_label:i}),$._ajax({url:"/plugins/poll/ajax.php",data:sendData,success:function(e){t.find(".oprr").after('<div class="resultblock">'+e+"</div>"),t.find(".oprr").hide(),t.find(".voice, .result").hide(),t.find(".back-voice").click(function(){t.find(".oprr, .voice, .result").show(),t.find(".resultblock, .back-voice").hide()})
var i=$("#asideFin:visible")
i.length&&(endAside=i.offset().top)}})}),(e||"1"==t.data("globalcity")&&_gVar.district)&&67!=_gVar.page&&39!=_gVar.page&&!$("aside").is(":visible")){var i=t.closest(".open-t.poll").addClass("breadcrumb").removeClass("open-t").css({"margin-top":"-5px"})
i.find(">div").addClass("hidden").end().find("b>a").css({color:"#d43f3a"}).prepend('<span class="glyphicon glyphicon-stats"></span> '),i.find(">b").click(function(t){t.preventDefault(),$(this).parent().find(">div").toggleClass("hidden")}),i.insertAfter($(".selectT1:first"))}}function resColm(){var t=$("aside")
if(_gVar.isMobile=window.innerWidth<767,_gVar.showAside=_gVar.showAside||$(window).width()>1e3,lazyLoad(),(39==_gVar.page||2==_gVar.page)&&t.length&&!t.is(":visible")){var e=$("#aside-container")
e.hasClass("done")||(e.addClass("done"),$("aside>div").clone(!0,!0).appendTo(e),e.carouselInit(),e.find(".aside-neighbor").insertAfter(e.find(".aside-weather")),e.find("ul.nav-tabs a").each(function(){$(this).attr("href",$(this).attr("href")+"-clone")}),e.find("div.tab-pane").each(function(){$(this).attr("id",$(this).attr("id")+"-clone")}))}}function evChangeCity(t){_gVar.regionID&&t&&"1"!=t&&_gVar.regionID!=t&&t!=_gVar.district&&t!=_gVar.region&&gtag("event","ChangeCity",{event_category:t,event_label:_gVar.regionID})}function getUrl(t){var e=window&&window.location&&window.location.href?window.location.href:""
return e?(/%/.test(e)||(e=encodeURI(e)),t&&window.location.hash&&(e=e.replace(window.location.hash,"")),e):""}if(function(t,e){"use strict"
"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document")
return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict"
function i(t,e,i){i=i||wt
var n,o,s=i.createElement("script")
if(s.text=t,e)for(n in xt)(o=e[n]||e.getAttribute&&e.getAttribute(n))&&s.setAttribute(n,o)
i.head.appendChild(s).parentNode.removeChild(s)}function n(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?ht[pt.call(t)]||"object":typeof t}function o(t){var e=!!t&&"length"in t&&t.length,i=n(t)
return!yt(t)&&!bt(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function s(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function r(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function a(t,e,i){return yt(e)?$t.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?$t.grep(t,function(t){return t===e!==i}):"string"!=typeof e?$t.grep(t,function(t){return ut.call(e,t)>-1!==i}):$t.filter(e,t,i)}function l(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){var e={}
return $t.each(t.match(Vt)||[],function(t,i){e[i]=!0}),e}function d(t){return t}function u(t){throw t}function h(t,e,i,n){var o
try{t&&yt(o=t.promise)?o.call(t).done(e).fail(i):t&&yt(o=t.then)?o.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}function p(){wt.removeEventListener("DOMContentLoaded",p),t.removeEventListener("load",p),$t.ready()}function f(t,e){return e.toUpperCase()}function m(t){return t.replace(Ut,"ms-").replace(zt,f)}function g(){this.expando=$t.expando+g.uid++}function v(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Xt.test(t)?JSON.parse(t):t)}function y(t,e,i){var n
if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Gt,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=v(i)}catch(t){}Qt.set(t,e,i)}else i=void 0
return i}function b(t,e,i,n){var o,s,r=20,a=n?function(){return n.cur()}:function(){return $t.css(t,e,"")},l=a(),c=i&&i[3]||($t.cssNumber[e]?"":"px"),d=t.nodeType&&($t.cssNumber[e]||"px"!==c&&+l)&&Kt.exec($t.css(t,e))
if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;r--;)$t.style(t,e,d+c),(1-s)*(1-(s=a()/l||.5))<=0&&(r=0),d/=s
d*=2,$t.style(t,e,d+c),i=i||[]}return i&&(d=+d||+l||0,o=i[1]?d+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=d,n.end=o)),o}function w(t){var e,i=t.ownerDocument,n=t.nodeName,o=oe[n]
return o||(e=i.body.appendChild(i.createElement(n)),o=$t.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),oe[n]=o,o)}function x(t,e){for(var i,n,o=[],s=0,r=t.length;s<r;s++)n=t[s],n.style&&(i=n.style.display,e?("none"===i&&(o[s]=Yt.get(n,"display")||null,o[s]||(n.style.display="")),""===n.style.display&&ne(n)&&(o[s]=w(n))):"none"!==i&&(o[s]="none",Yt.set(n,"display",i)))
for(s=0;s<r;s++)null!=o[s]&&(t[s].style.display=o[s])
return t}function C(t,e){var i
return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&s(t,e)?$t.merge([t],i):i}function $(t,e){for(var i=0,n=t.length;i<n;i++)Yt.set(t[i],"globalEval",!e||Yt.get(e[i],"globalEval"))}function k(t,e,i,o,s){for(var r,a,l,c,d,u,h=e.createDocumentFragment(),p=[],f=0,m=t.length;f<m;f++)if((r=t[f])||0===r)if("object"===n(r))$t.merge(p,r.nodeType?[r]:r)
else if(ce.test(r)){for(a=a||h.appendChild(e.createElement("div")),l=(re.exec(r)||["",""])[1].toLowerCase(),c=le[l]||le._default,a.innerHTML=c[1]+$t.htmlPrefilter(r)+c[2],u=c[0];u--;)a=a.lastChild
$t.merge(p,a.childNodes),a=h.firstChild,a.textContent=""}else p.push(e.createTextNode(r))
for(h.textContent="",f=0;r=p[f++];)if(o&&$t.inArray(r,o)>-1)s&&s.push(r)
else if(d=ee(r),a=C(h.appendChild(r),"script"),d&&$(a),i)for(u=0;r=a[u++];)ae.test(r.type||"")&&i.push(r)
return h}function T(){return!0}function _(){return!1}function E(t,e,i,n,o,s){var r,a
if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0)
for(a in e)E(t,a,i,n,e[a],s)
return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=_
else if(!o)return t
return 1===s&&(r=o,o=function(t){return $t().off(t),r.apply(this,arguments)},o.guid=r.guid||(r.guid=$t.guid++)),t.each(function(){$t.event.add(this,e,o,n,i)})}function S(t,e,i){if(!i)return void(void 0===Yt.get(t,e)&&$t.event.add(t,e,T))
Yt.set(t,e,!1),$t.event.add(t,e,{namespace:!1,handler:function(t){var i,n=Yt.get(this,e)
if(1&t.isTrigger&&this[e]){if(n)($t.event.special[e]||{}).delegateType&&t.stopPropagation()
else if(n=lt.call(arguments),Yt.set(this,e,n),this[e](),i=Yt.get(this,e),Yt.set(this,e,!1),n!==i)return t.stopImmediatePropagation(),t.preventDefault(),i}else n&&(Yt.set(this,e,$t.event.trigger(n[0],n.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=T)}})}function P(t,e){return s(t,"table")&&s(11!==e.nodeType?e:e.firstChild,"tr")?$t(t).children("tbody")[0]||t:t}function D(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function A(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function I(t,e){var i,n,o,s,r,a,l
if(1===e.nodeType){if(Yt.hasData(t)&&(s=Yt.get(t),l=s.events)){Yt.remove(e,"handle events")
for(o in l)for(i=0,n=l[o].length;i<n;i++)$t.event.add(e,o,l[o][i])}Qt.hasData(t)&&(r=Qt.access(t),a=$t.extend({},r),Qt.set(e,a))}}function j(t,e){var i=e.nodeName.toLowerCase()
"input"===i&&se.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function O(t,e,n,o){e=ct(e)
var s,r,a,l,c,d,u=0,h=t.length,p=h-1,f=e[0],m=yt(f)
if(m||h>1&&"string"==typeof f&&!vt.checkClone&&he.test(f))return t.each(function(i){var s=t.eq(i)
m&&(e[0]=f.call(this,i,s.html())),O(s,e,n,o)})
if(h&&(s=k(e,t[0].ownerDocument,!1,t,o),r=s.firstChild,1===s.childNodes.length&&(s=r),r||o)){for(a=$t.map(C(s,"script"),D),l=a.length;u<h;u++)c=s,u!==p&&(c=$t.clone(c,!0,!0),l&&$t.merge(a,C(c,"script"))),n.call(t[u],c,u)
if(l)for(d=a[a.length-1].ownerDocument,$t.map(a,A),u=0;u<l;u++)c=a[u],ae.test(c.type||"")&&!Yt.access(c,"globalEval")&&$t.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?$t._evalUrl&&!c.noModule&&$t._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):i(c.textContent.replace(pe,""),c,d))}return t}function L(t,e,i){for(var n,o=e?$t.filter(e,t):t,s=0;null!=(n=o[s]);s++)i||1!==n.nodeType||$t.cleanData(C(n)),n.parentNode&&(i&&ee(n)&&$(C(n,"script")),n.parentNode.removeChild(n))
return t}function N(t,e,i){var n,o,s,r,a=me.test(e),l=t.style
return i=i||ge(t),i&&(r=i.getPropertyValue(e)||i[e],a&&r&&(r=r.replace(St,"$1")||void 0),""!==r||ee(t)||(r=$t.style(t,e)),!vt.pixelBoxStyles()&&fe.test(r)&&ye.test(e)&&(n=l.width,o=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=r,r=i.width,l.width=n,l.minWidth=o,l.maxWidth=s)),void 0!==r?r+"":r}function R(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function M(t){for(var e=t[0].toUpperCase()+t.slice(1),i=be.length;i--;)if((t=be[i]+e)in we)return t}function F(t){var e=$t.cssProps[t]||xe[t]
return e||(t in we?t:xe[t]=M(t)||t)}function V(t,e,i){var n=Kt.exec(e)
return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function W(t,e,i,n,o,s){var r="width"===e?1:0,a=0,l=0,c=0
if(i===(n?"border":"content"))return 0
for(;r<4;r+=2)"margin"===i&&(c+=$t.css(t,i+Zt[r],!0,o)),n?("content"===i&&(l-=$t.css(t,"padding"+Zt[r],!0,o)),"margin"!==i&&(l-=$t.css(t,"border"+Zt[r]+"Width",!0,o))):(l+=$t.css(t,"padding"+Zt[r],!0,o),"padding"!==i?l+=$t.css(t,"border"+Zt[r]+"Width",!0,o):a+=$t.css(t,"border"+Zt[r]+"Width",!0,o))
return!n&&s>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-a-.5))||0),l+c}function H(t,e,i){var n=ge(t),o=!vt.boxSizingReliable()||i,r=o&&"border-box"===$t.css(t,"boxSizing",!1,n),a=r,l=N(t,e,n),c="offset"+e[0].toUpperCase()+e.slice(1)
if(fe.test(l)){if(!i)return l
l="auto"}return(!vt.boxSizingReliable()&&r||!vt.reliableTrDimensions()&&s(t,"tr")||"auto"===l||!parseFloat(l)&&"inline"===$t.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===$t.css(t,"boxSizing",!1,n),(a=c in t)&&(l=t[c])),(l=parseFloat(l)||0)+W(t,e,i||(r?"border":"content"),a,n,l)+"px"}function q(t,e,i,n,o){return new q.prototype.init(t,e,i,n,o)}function U(){_e&&(!1===wt.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(U):t.setTimeout(U,$t.fx.interval),$t.fx.tick())}function z(){return t.setTimeout(function(){Te=void 0}),Te=Date.now()}function B(t,e){var i,n=0,o={height:t}
for(e=e?1:0;n<4;n+=2-e)i=Zt[n],o["margin"+i]=o["padding"+i]=t
return e&&(o.opacity=o.width=t),o}function Y(t,e,i){for(var n,o=(G.tweeners[e]||[]).concat(G.tweeners["*"]),s=0,r=o.length;s<r;s++)if(n=o[s].call(i,e,t))return n}function Q(t,e,i){var n,o,s,r,a,l,c,d,u="width"in e||"height"in e,h=this,p={},f=t.style,m=t.nodeType&&ne(t),g=Yt.get(t,"fxshow")
i.queue||(r=$t._queueHooks(t,"fx"),null==r.unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,h.always(function(){h.always(function(){r.unqueued--,$t.queue(t,"fx").length||r.empty.fire()})}))
for(n in e)if(o=e[n],Ee.test(o)){if(delete e[n],s=s||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[n])continue
m=!0}p[n]=g&&g[n]||$t.style(t,n)}if((l=!$t.isEmptyObject(e))||!$t.isEmptyObject(p)){u&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],c=g&&g.display,null==c&&(c=Yt.get(t,"display")),d=$t.css(t,"display"),"none"===d&&(c?d=c:(x([t],!0),c=t.style.display||c,d=$t.css(t,"display"),x([t]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===$t.css(t,"float")&&(l||(h.done(function(){f.display=c}),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1
for(n in p)l||(g?"hidden"in g&&(m=g.hidden):g=Yt.access(t,"fxshow",{display:c}),s&&(g.hidden=!m),m&&x([t],!0),h.done(function(){m||x([t]),Yt.remove(t,"fxshow")
for(n in p)$t.style(t,n,p[n])})),l=Y(m?g[n]:0,n,h),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}}function X(t,e){var i,n,o,s,r
for(i in t)if(n=m(i),o=e[n],s=t[i],Array.isArray(s)&&(o=s[1],s=t[i]=s[0]),i!==n&&(t[n]=s,delete t[i]),(r=$t.cssHooks[n])&&"expand"in r){s=r.expand(s),delete t[n]
for(i in s)i in t||(t[i]=s[i],e[i]=o)}else e[n]=o}function G(t,e,i){var n,o,s=0,r=G.prefilters.length,a=$t.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1
for(var e=Te||z(),i=Math.max(0,c.startTime+c.duration-e),n=i/c.duration||0,s=1-n,r=0,l=c.tweens.length;r<l;r++)c.tweens[r].run(s)
return a.notifyWith(t,[c,s,i]),s<1&&l?i:(l||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:$t.extend({},e),opts:$t.extend(!0,{specialEasing:{},easing:$t.easing._default},i),originalProperties:e,originalOptions:i,startTime:Te||z(),duration:i.duration,tweens:[],createTween:function(e,i){var n=$t.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing)
return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0
if(o)return this
for(o=!0;i<n;i++)c.tweens[i].run(1)
return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),d=c.props
for(X(d,c.opts.specialEasing);s<r;s++)if(n=G.prefilters[s].call(c,t,d,c.opts))return yt(n.stop)&&($t._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n
return $t.map(d,Y,c),yt(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),$t.fx.timer($t.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}function J(t){return(t.match(Vt)||[]).join(" ")}function K(t){return t.getAttribute&&t.getAttribute("class")||""}function Z(t){return Array.isArray(t)?t:"string"==typeof t?t.match(Vt)||[]:[]}function tt(t,e,i,o){var s
if(Array.isArray(e))$t.each(e,function(e,n){i||Fe.test(t)?o(t,n):tt(t+"["+("object"==typeof n&&null!=n?e:"")+"]",n,i,o)})
else if(i||"object"!==n(e))o(t,e)
else for(s in e)tt(t+"["+s+"]",e[s],i,o)}function et(t){return function(e,i){"string"!=typeof e&&(i=e,e="*")
var n,o=0,s=e.toLowerCase().match(Vt)||[]
if(yt(i))for(;n=s[o++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function it(t,e,i,n){function o(a){var l
return s[a]=!0,$t.each(t[a]||[],function(t,a){var c=a(e,i,n)
return"string"!=typeof c||r||s[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)}),l}var s={},r=t===Je
return o(e.dataTypes[0])||!s["*"]&&o("*")}function nt(t,e){var i,n,o=$t.ajaxSettings.flatOptions||{}
for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i])
return n&&$t.extend(!0,t,n),t}function ot(t,e,i){for(var n,o,s,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"))
if(n)for(o in a)if(a[o]&&a[o].test(n)){l.unshift(o)
break}if(l[0]in i)s=l[0]
else{for(o in i){if(!l[0]||t.converters[o+" "+l[0]]){s=o
break}r||(r=o)}s=s||r}if(s)return s!==l[0]&&l.unshift(s),i[s]}function st(t,e,i,n){var o,s,r,a,l,c={},d=t.dataTypes.slice()
if(d[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r]
for(s=d.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=d.shift())if("*"===s)s=l
else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if(a=o.split(" "),a[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],d.unshift(a[1]))
break}if(!0!==r)if(r&&t.throws)e=r(e)
else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}var rt=[],at=Object.getPrototypeOf,lt=rt.slice,ct=rt.flat?function(t){return rt.flat.call(t)}:function(t){return rt.concat.apply([],t)},dt=rt.push,ut=rt.indexOf,ht={},pt=ht.toString,ft=ht.hasOwnProperty,mt=ft.toString,gt=mt.call(Object),vt={},yt=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},bt=function(t){return null!=t&&t===t.window},wt=t.document,xt={type:!0,src:!0,nonce:!0,noModule:!0},Ct=/HTML$/i,$t=function(t,e){return new $t.fn.init(t,e)}
$t.fn=$t.prototype={jquery:"3.7.1",constructor:$t,length:0,toArray:function(){return lt.call(this)},get:function(t){return null==t?lt.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=$t.merge(this.constructor(),t)
return e.prevObject=this,e},each:function(t){return $t.each(this,t)},map:function(t){return this.pushStack($t.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(lt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack($t.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack($t.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,i=+t+(t<0?e:0)
return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:dt,sort:rt.sort,splice:rt.splice},$t.extend=$t.fn.extend=function(){var t,e,i,n,o,s,r=arguments[0]||{},a=1,l=arguments.length,c=!1
for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||yt(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(c&&n&&($t.isPlainObject(n)||(o=Array.isArray(n)))?(i=r[e],s=o&&!Array.isArray(i)?[]:o||$t.isPlainObject(i)?i:{},o=!1,r[e]=$t.extend(c,s,n)):void 0!==n&&(r[e]=n))
return r},$t.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i
return!(!t||"[object Object]"!==pt.call(t))&&(!(e=at(t))||"function"==typeof(i=ft.call(e,"constructor")&&e.constructor)&&mt.call(i)===gt)},isEmptyObject:function(t){var e
for(e in t)return!1
return!0},globalEval:function(t,e,n){i(t,{nonce:e&&e.nonce},n)},each:function(t,e){var i,n=0
if(o(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break
return t},text:function(t){var e,i="",n=0,o=t.nodeType
if(!o)for(;e=t[n++];)i+=$t.text(e)
return 1===o||11===o?t.textContent:9===o?t.documentElement.textContent:3===o||4===o?t.nodeValue:i},makeArray:function(t,e){var i=e||[]
return null!=t&&(o(Object(t))?$t.merge(i,"string"==typeof t?[t]:t):dt.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:ut.call(e,t,i)},isXMLDoc:function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement
return!Ct.test(e||i&&i.nodeName||"HTML")},merge:function(t,e){for(var i=+e.length,n=0,o=t.length;n<i;n++)t[o++]=e[n]
return t.length=o,t},grep:function(t,e,i){for(var n=[],o=0,s=t.length,r=!i;o<s;o++)!e(t[o],o)!==r&&n.push(t[o])
return n},map:function(t,e,i){var n,s,r=0,a=[]
if(o(t))for(n=t.length;r<n;r++)null!=(s=e(t[r],r,i))&&a.push(s)
else for(r in t)null!=(s=e(t[r],r,i))&&a.push(s)
return ct(a)},guid:1,support:vt}),"function"==typeof Symbol&&($t.fn[Symbol.iterator]=rt[Symbol.iterator]),$t.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){ht["[object "+e+"]"]=e.toLowerCase()})
var kt=rt.pop,Tt=rt.sort,_t=rt.splice,Et="[\\x20\\t\\r\\n\\f]",St=new RegExp("^"+Et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Et+"+$","g")
$t.contains=function(t,e){var i=e&&e.parentNode
return t===i||!(!i||1!==i.nodeType||!(t.contains?t.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}
var Pt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g
$t.escapeSelector=function(t){return(t+"").replace(Pt,r)}
var Dt=wt,At=dt
!function(){function e(){try{return S.activeElement}catch(t){}}function i(t,e,n,o){var s,r,a,l,u,f,m,g=e&&e.ownerDocument,v=e?e.nodeType:9
if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n
if(!o&&(d(e),e=e||S,D)){if(11!==v&&(u=et.exec(t)))if(s=u[1]){if(9===v){if(!(a=e.getElementById(s)))return n
if(a.id===s)return j.call(n,a),n}else if(g&&(a=g.getElementById(s))&&i.contains(e,a)&&a.id===s)return j.call(n,a),n}else{if(u[2])return j.apply(n,e.getElementsByTagName(t)),n
if((s=u[3])&&e.getElementsByClassName)return j.apply(n,e.getElementsByClassName(s)),n}if(!(V[t+" "]||A&&A.test(t))){if(m=t,g=e,1===v&&(X.test(t)||Q.test(t))){for(g=it.test(t)&&c(e.parentNode)||e,g==e&&vt.scope||((l=e.getAttribute("id"))?l=$t.escapeSelector(l):e.setAttribute("id",l=O)),f=h(t),r=f.length;r--;)f[r]=(l?"#"+l:":scope")+" "+p(f[r])
m=f.join(",")}try{return j.apply(n,g.querySelectorAll(m)),n}catch(e){V(t,!0)}finally{l===O&&e.removeAttribute("id")}}}return C(t.replace(St,"$1"),e,n,o)}function n(){function t(i,n){return e.push(i+" ")>k.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[]
return t}function o(t){return t[O]=!0,t}function r(t){var e=S.createElement("fieldset")
try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function l(t){return o(function(e){return e=+e,o(function(i,n){for(var o,s=t([],i.length,e),r=s.length;r--;)i[o=s[r]]&&(i[o]=!(n[o]=i[o]))})})}function c(t){return t&&void 0!==t.getElementsByTagName&&t}function d(t){var e,n=t?t.ownerDocument||t:Dt
return n!=S&&9===n.nodeType&&n.documentElement?(S=n,P=S.documentElement,D=!$t.isXMLDoc(S),I=P.matches||P.webkitMatchesSelector||P.msMatchesSelector,P.msMatchesSelector&&Dt!=S&&(e=S.defaultView)&&e.top!==e&&e.addEventListener("unload",st),vt.getById=r(function(t){return P.appendChild(t).id=$t.expando,!S.getElementsByName||!S.getElementsByName($t.expando).length}),vt.disconnectedMatch=r(function(t){return I.call(t,"*")}),vt.scope=r(function(){return S.querySelectorAll(":scope")}),vt.cssHas=r(function(){try{return S.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),vt.getById?(k.filter.ID=function(t){var e=t.replace(nt,ot)
return function(t){return t.getAttribute("id")===e}},k.find.ID=function(t,e){if(void 0!==e.getElementById&&D){var i=e.getElementById(t)
return i?[i]:[]}}):(k.filter.ID=function(t){var e=t.replace(nt,ot)
return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id")
return i&&i.value===e}},k.find.ID=function(t,e){if(void 0!==e.getElementById&&D){var i,n,o,s=e.getElementById(t)
if(s){if((i=s.getAttributeNode("id"))&&i.value===t)return[s]
for(o=e.getElementsByName(t),n=0;s=o[n++];)if((i=s.getAttributeNode("id"))&&i.value===t)return[s]}return[]}}),k.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},k.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&D)return e.getElementsByClassName(t)},A=[],r(function(t){var e
P.appendChild(t).innerHTML="<a id='"+O+"' href='' disabled='disabled'></a><select id='"+O+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||A.push("\\["+Et+"*(?:value|"+H+")"),t.querySelectorAll("[id~="+O+"-]").length||A.push("~="),t.querySelectorAll("a#"+O+"+*").length||A.push(".#.+[+~]"),t.querySelectorAll(":checked").length||A.push(":checked"),e=S.createElement("input"),e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),P.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&A.push(":enabled",":disabled"),e=S.createElement("input"),e.setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||A.push("\\["+Et+"*name"+Et+"*="+Et+"*(?:''|\"\")")}),vt.cssHas||A.push(":has"),A=A.length&&new RegExp(A.join("|")),W=function(t,e){if(t===e)return E=!0,0
var n=!t.compareDocumentPosition-!e.compareDocumentPosition
return n||(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!vt.sortDetached&&e.compareDocumentPosition(t)===n?t===S||t.ownerDocument==Dt&&i.contains(Dt,t)?-1:e===S||e.ownerDocument==Dt&&i.contains(Dt,e)?1:_?ut.call(_,t)-ut.call(_,e):0:4&n?-1:1)},S):S}function u(){}function h(t,e){var n,o,s,r,a,l,c,d=M[t+" "]
if(d)return e?0:d.slice(0)
for(a=t,l=[],c=k.preFilter;a;){n&&!(o=Y.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(s=[])),n=!1,(o=Q.exec(a))&&(n=o.shift(),s.push({value:n,type:o[0].replace(St," ")}),a=a.slice(n.length))
for(r in k.filter)!(o=K[r].exec(a))||c[r]&&!(o=c[r](o))||(n=o.shift(),s.push({value:n,type:r,matches:o}),a=a.slice(n.length))
if(!n)break}return e?a.length:a?i.error(t):M(t,l).slice(0)}function p(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value
return n}function f(t,e,i){var n=e.dir,o=e.next,r=o||n,a=i&&"parentNode"===r,l=N++
return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||a)return t(e,i,o)
return!1}:function(e,i,c){var d,u,h=[L,l]
if(c){for(;e=e[n];)if((1===e.nodeType||a)&&t(e,i,c))return!0}else for(;e=e[n];)if(1===e.nodeType||a)if(u=e[O]||(e[O]={}),o&&s(e,o))e=e[n]||e
else{if((d=u[r])&&d[0]===L&&d[1]===l)return h[2]=d[2]
if(u[r]=h,h[2]=t(e,i,c))return!0}return!1}}function m(t){return t.length>1?function(e,i,n){for(var o=t.length;o--;)if(!t[o](e,i,n))return!1
return!0}:t[0]}function g(t,e,n){for(var o=0,s=e.length;o<s;o++)i(t,e[o],n)
return n}function v(t,e,i,n,o){for(var s,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(s=t[a])&&(i&&!i(s,n,o)||(r.push(s),c&&e.push(a)))
return r}function y(t,e,i,n,s,r){return n&&!n[O]&&(n=y(n)),s&&!s[O]&&(s=y(s,r)),o(function(o,r,a,l){var c,d,u,h,p=[],f=[],m=r.length,y=o||g(e||"*",a.nodeType?[a]:a,[]),b=!t||!o&&e?y:v(y,p,t,a,l)
if(i?(h=s||(o?t:m||n)?[]:r,i(b,h,a,l)):h=b,n)for(c=v(h,f),n(c,[],a,l),d=c.length;d--;)(u=c[d])&&(h[f[d]]=!(b[f[d]]=u))
if(o){if(s||t){if(s){for(c=[],d=h.length;d--;)(u=h[d])&&c.push(b[d]=u)
s(null,h=[],c,l)}for(d=h.length;d--;)(u=h[d])&&(c=s?ut.call(o,u):p[d])>-1&&(o[c]=!(r[c]=u))}}else h=v(h===r?h.splice(m,h.length):h),s?s(null,r,h,l):j.apply(r,h)})}function b(t){for(var e,i,n,o=t.length,s=k.relative[t[0].type],r=s||k.relative[" "],a=s?1:0,l=f(function(t){return t===e},r,!0),c=f(function(t){return ut.call(e,t)>-1},r,!0),d=[function(t,i,n){var o=!s&&(n||i!=T)||((e=i).nodeType?l(t,i,n):c(t,i,n))
return e=null,o}];a<o;a++)if(i=k.relative[t[a].type])d=[f(m(d),i)]
else{if(i=k.filter[t[a].type].apply(null,t[a].matches),i[O]){for(n=++a;n<o&&!k.relative[t[n].type];n++);return y(a>1&&m(d),a>1&&p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(St,"$1"),i,a<n&&b(t.slice(a,n)),n<o&&b(t=t.slice(n)),n<o&&p(t))}d.push(i)}return m(d)}function w(t,e){var i=e.length>0,n=t.length>0,s=function(o,s,r,a,l){var c,u,h,p=0,f="0",m=o&&[],g=[],y=T,b=o||n&&k.find.TAG("*",l),w=L+=null==y?1:Math.random()||.1,x=b.length
for(l&&(T=s==S||s||l);f!==x&&null!=(c=b[f]);f++){if(n&&c){for(u=0,s||c.ownerDocument==S||(d(c),r=!D);h=t[u++];)if(h(c,s||S,r)){j.call(a,c)
break}l&&(L=w)}i&&((c=!h&&c)&&p--,o&&m.push(c))}if(p+=f,i&&f!==p){for(u=0;h=e[u++];)h(m,g,s,r)
if(o){if(p>0)for(;f--;)m[f]||g[f]||(g[f]=kt.call(a))
g=v(g)}j.apply(a,g),l&&!o&&g.length>0&&p+e.length>1&&$t.uniqueSort(a)}return l&&(L=w,T=y),m}
return i?o(s):s}function x(t,e){var i,n=[],o=[],s=F[t+" "]
if(!s){for(e||(e=h(t)),i=e.length;i--;)s=b(e[i]),s[O]?n.push(s):o.push(s)
s=F(t,w(o,n)),s.selector=t}return s}function C(t,e,i,n){var o,s,r,a,l,d="function"==typeof t&&t,u=!n&&h(t=d.selector||t)
if(i=i||[],1===u.length){if(s=u[0]=u[0].slice(0),s.length>2&&"ID"===(r=s[0]).type&&9===e.nodeType&&D&&k.relative[s[1].type]){if(!(e=(k.find.ID(r.matches[0].replace(nt,ot),e)||[])[0]))return i
d&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(o=K.needsContext.test(t)?0:s.length;o--&&(r=s[o],!k.relative[a=r.type]);)if((l=k.find[a])&&(n=l(r.matches[0].replace(nt,ot),it.test(s[0].type)&&c(e.parentNode)||e))){if(s.splice(o,1),!(t=n.length&&p(s)))return j.apply(i,n),i
break}}return(d||x(t,u))(n,e,!D,i,!e||it.test(t)&&c(e.parentNode)||e),i}var $,k,T,_,E,S,P,D,A,I,j=At,O=$t.expando,L=0,N=0,R=n(),M=n(),F=n(),V=n(),W=function(t,e){return t===e&&(E=!0),0},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",q="(?:\\\\[\\da-fA-F]{1,6}"+Et+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+Et+"*("+q+")(?:"+Et+"*([*^$|!~]?=)"+Et+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+Et+"*\\]",z=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",B=new RegExp(Et+"+","g"),Y=new RegExp("^"+Et+"*,"+Et+"*"),Q=new RegExp("^"+Et+"*([>+~]|"+Et+")"+Et+"*"),X=new RegExp(Et+"|>"),G=new RegExp(z),J=new RegExp("^"+q+"$"),K={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Et+"*(even|odd|(([+-]|)(\\d*)n|)"+Et+"*(?:([+-]|)"+Et+"*(\\d+)|))"+Et+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+Et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Et+"*((?:-\\d)?\\d*)"+Et+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,it=/[+~]/,nt=new RegExp("\\\\[\\da-fA-F]{1,6}"+Et+"?|\\\\([^\\r\\n\\f])","g"),ot=function(t,e){var i="0x"+t.slice(1)-65536
return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},st=function(){d()},at=f(function(t){return!0===t.disabled&&s(t,"fieldset")},{dir:"parentNode",next:"legend"})
try{j.apply(rt=lt.call(Dt.childNodes),Dt.childNodes),rt[Dt.childNodes.length].nodeType}catch(t){j={apply:function(t,e){At.apply(t,lt.call(e))},call:function(t){At.apply(t,lt.call(arguments,1))}}}i.matches=function(t,e){return i(t,null,null,e)},i.matchesSelector=function(t,e){if(d(t),D&&!V[e+" "]&&(!A||!A.test(e)))try{var n=I.call(t,e)
if(n||vt.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){V(e,!0)}return i(e,S,null,[t]).length>0},i.contains=function(t,e){return(t.ownerDocument||t)!=S&&d(t),$t.contains(t,e)},i.attr=function(t,e){(t.ownerDocument||t)!=S&&d(t)
var i=k.attrHandle[e.toLowerCase()],n=i&&ft.call(k.attrHandle,e.toLowerCase())?i(t,e,!D):void 0
return void 0!==n?n:t.getAttribute(e)},i.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},$t.uniqueSort=function(t){var e,i=[],n=0,o=0
if(E=!vt.sortStable,_=!vt.sortStable&&lt.call(t,0),Tt.call(t,W),E){for(;e=t[o++];)e===t[o]&&(n=i.push(o))
for(;n--;)_t.call(t,i[n],1)}return _=null,t},$t.fn.uniqueSort=function(){return this.pushStack($t.uniqueSort(lt.apply(this)))},k=$t.expr={cacheLength:50,createPseudo:o,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,ot),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,ot),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||i.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&i.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2]
return K.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&G.test(i)&&(e=h(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,ot).toLowerCase()
return"*"===t?function(){return!0}:function(t){return s(t,e)}},CLASS:function(t){var e=R[t+" "]
return e||(e=new RegExp("(^|"+Et+")"+t+"("+Et+"|$)"))&&R(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(o){var s=i.attr(o,t)
return null==s?"!="===e:!e||(s+="","="===e?s===n:"!="===e?s!==n:"^="===e?n&&0===s.indexOf(n):"*="===e?n&&s.indexOf(n)>-1:"$="===e?n&&s.slice(-n.length)===n:"~="===e?(" "+s.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,o){var r="nth"!==t.slice(0,3),a="last"!==t.slice(-4),l="of-type"===e
return 1===n&&0===o?function(t){return!!t.parentNode}:function(e,i,c){var d,u,h,p,f,m=r!==a?"nextSibling":"previousSibling",g=e.parentNode,v=l&&e.nodeName.toLowerCase(),y=!c&&!l,b=!1
if(g){if(r){for(;m;){for(h=e;h=h[m];)if(l?s(h,v):1===h.nodeType)return!1
f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(u=g[O]||(g[O]={}),d=u[t]||[],p=d[0]===L&&d[1],b=p&&d[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(b=p=0)||f.pop();)if(1===h.nodeType&&++b&&h===e){u[t]=[L,p,b]
break}}else if(y&&(u=e[O]||(e[O]={}),d=u[t]||[],p=d[0]===L&&d[1],b=p),!1===b)for(;(h=++p&&h&&h[m]||(b=p=0)||f.pop())&&((l?!s(h,v):1!==h.nodeType)||!++b||(y&&(u=h[O]||(h[O]={}),u[t]=[L,b]),h!==e)););return(b-=o)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var n,s=k.pseudos[t]||k.setFilters[t.toLowerCase()]||i.error("unsupported pseudo: "+t)
return s[O]?s(e):s.length>1?(n=[t,t,"",e],k.setFilters.hasOwnProperty(t.toLowerCase())?o(function(t,i){for(var n,o=s(t,e),r=o.length;r--;)n=ut.call(t,o[r]),t[n]=!(i[n]=o[r])}):function(t){return s(t,0,n)}):s}},pseudos:{not:o(function(t){var e=[],i=[],n=x(t.replace(St,"$1"))
return n[O]?o(function(t,e,i,o){for(var s,r=n(t,null,o,[]),a=t.length;a--;)(s=r[a])&&(t[a]=!(e[a]=s))}):function(t,o,s){return e[0]=t,n(e,null,s,i),e[0]=null,!i.pop()}}),has:o(function(t){return function(e){return i(t,e).length>0}}),contains:o(function(t){return t=t.replace(nt,ot),function(e){return(e.textContent||$t.text(e)).indexOf(t)>-1}}),lang:o(function(t){return J.test(t||"")||i.error("unsupported lang: "+t),t=t.replace(nt,ot).toLowerCase(),function(e){var i
do{if(i=D?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType)
return!1}}),target:function(e){var i=t.location&&t.location.hash
return i&&i.slice(1)===e.id},root:function(t){return t===P},focus:function(t){return t===e()&&S.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(t){return s(t,"input")&&!!t.checked||s(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1
return!0},parent:function(t){return!k.pseudos.empty(t)},header:function(t){return tt.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){return s(t,"input")&&"button"===t.type||s(t,"button")},text:function(t){var e
return s(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,i){return[i<0?i+e:i]}),even:l(function(t,e){for(var i=0;i<e;i+=2)t.push(i)
return t}),odd:l(function(t,e){for(var i=1;i<e;i+=2)t.push(i)
return t}),lt:l(function(t,e,i){var n
for(n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n)
return t}),gt:l(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n)
return t})}},k.pseudos.nth=k.pseudos.eq
for($ in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[$]=function(t){return function(e){return s(e,"input")&&e.type===t}}($)
for($ in{submit:!0,reset:!0})k.pseudos[$]=function(t){return function(e){return(s(e,"input")||s(e,"button"))&&e.type===t}}($)
u.prototype=k.filters=k.pseudos,k.setFilters=new u,vt.sortStable=O.split("").sort(W).join("")===O,d(),vt.sortDetached=r(function(t){return 1&t.compareDocumentPosition(S.createElement("fieldset"))}),$t.find=i,$t.expr[":"]=$t.expr.pseudos,$t.unique=$t.uniqueSort,i.compile=x,i.select=C,i.setDocument=d,i.tokenize=h,i.escape=$t.escapeSelector,i.getText=$t.text,i.isXML=$t.isXMLDoc,i.selectors=$t.expr,i.support=$t.support,i.uniqueSort=$t.uniqueSort}()
var It=function(t,e,i){for(var n=[],o=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&$t(t).is(i))break
n.push(t)}return n},jt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t)
return i},Ot=$t.expr.match.needsContext,Lt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i
$t.filter=function(t,e,i){var n=e[0]
return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?$t.find.matchesSelector(n,t)?[n]:[]:$t.find.matches(t,$t.grep(e,function(t){return 1===t.nodeType}))},$t.fn.extend({find:function(t){var e,i,n=this.length,o=this
if("string"!=typeof t)return this.pushStack($t(t).filter(function(){for(e=0;e<n;e++)if($t.contains(o[e],this))return!0}))
for(i=this.pushStack([]),e=0;e<n;e++)$t.find(t,o[e],i)
return n>1?$t.uniqueSort(i):i},filter:function(t){return this.pushStack(a(this,t||[],!1))},not:function(t){return this.pushStack(a(this,t||[],!0))},is:function(t){return!!a(this,"string"==typeof t&&Ot.test(t)?$t(t):t||[],!1).length}})
var Nt,Rt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;($t.fn.init=function(t,e,i){var n,o
if(!t)return this
if(i=i||Nt,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Rt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t)
if(n[1]){if(e=e instanceof $t?e[0]:e,$t.merge(this,$t.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:wt,!0)),Lt.test(n[1])&&$t.isPlainObject(e))for(n in e)yt(this[n])?this[n](e[n]):this.attr(n,e[n])
return this}return o=wt.getElementById(n[2]),o&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):yt(t)?void 0!==i.ready?i.ready(t):t($t):$t.makeArray(t,this)}).prototype=$t.fn,Nt=$t(wt)
var Mt=/^(?:parents|prev(?:Until|All))/,Ft={children:!0,contents:!0,next:!0,prev:!0}
$t.fn.extend({has:function(t){var e=$t(t,this),i=e.length
return this.filter(function(){for(var t=0;t<i;t++)if($t.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,o=this.length,s=[],r="string"!=typeof t&&$t(t)
if(!Ot.test(t))for(;n<o;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&$t.find.matchesSelector(i,t))){s.push(i)
break}return this.pushStack(s.length>1?$t.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?ut.call($t(t),this[0]):ut.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack($t.uniqueSort($t.merge(this.get(),$t(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),$t.each({parent:function(t){var e=t.parentNode
return e&&11!==e.nodeType?e:null},parents:function(t){return It(t,"parentNode")},parentsUntil:function(t,e,i){return It(t,"parentNode",i)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return It(t,"nextSibling")},prevAll:function(t){return It(t,"previousSibling")},nextUntil:function(t,e,i){return It(t,"nextSibling",i)},prevUntil:function(t,e,i){return It(t,"previousSibling",i)},siblings:function(t){return jt((t.parentNode||{}).firstChild,t)},children:function(t){return jt(t.firstChild)},contents:function(t){return null!=t.contentDocument&&at(t.contentDocument)?t.contentDocument:(s(t,"template")&&(t=t.content||t),$t.merge([],t.childNodes))}},function(t,e){$t.fn[t]=function(i,n){var o=$t.map(this,e,i)
return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=$t.filter(n,o)),this.length>1&&(Ft[t]||$t.uniqueSort(o),Mt.test(t)&&o.reverse()),this.pushStack(o)}})
var Vt=/[^\x20\t\r\n\f]+/g
$t.Callbacks=function(t){t="string"==typeof t?c(t):$t.extend({},t)
var e,i,o,s,r=[],a=[],l=-1,d=function(){for(s=s||t.once,o=e=!0;a.length;l=-1)for(i=a.shift();++l<r.length;)!1===r[l].apply(i[0],i[1])&&t.stopOnFalse&&(l=r.length,i=!1)
t.memory||(i=!1),e=!1,s&&(r=i?[]:"")},u={add:function(){return r&&(i&&!e&&(l=r.length-1,a.push(i)),function e(i){$t.each(i,function(i,o){yt(o)?t.unique&&u.has(o)||r.push(o):o&&o.length&&"string"!==n(o)&&e(o)})}(arguments),i&&!e&&d()),this},remove:function(){return $t.each(arguments,function(t,e){for(var i;(i=$t.inArray(e,r,i))>-1;)r.splice(i,1),i<=l&&l--}),this},has:function(t){return t?$t.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return s=a=[],r=i="",this},disabled:function(){return!r},lock:function(){return s=a=[],i||e||(r=i=""),this},locked:function(){return!!s},fireWith:function(t,i){return s||(i=i||[],i=[t,i.slice?i.slice():i],a.push(i),e||d()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}}
return u},$t.extend({Deferred:function(e){var i=[["notify","progress",$t.Callbacks("memory"),$t.Callbacks("memory"),2],["resolve","done",$t.Callbacks("once memory"),$t.Callbacks("once memory"),0,"resolved"],["reject","fail",$t.Callbacks("once memory"),$t.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments
return $t.Deferred(function(e){$t.each(i,function(i,n){var o=yt(t[n[4]])&&t[n[4]]
s[n[1]](function(){var t=o&&o.apply(this,arguments)
t&&yt(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(e,n,o){function s(e,i,n,o){return function(){var a=this,l=arguments,c=function(){var t,c
if(!(e<r)){if((t=n.apply(a,l))===i.promise())throw new TypeError("Thenable self-resolution")
c=t&&("object"==typeof t||"function"==typeof t)&&t.then,yt(c)?o?c.call(t,s(r,i,d,o),s(r,i,u,o)):(r++,c.call(t,s(r,i,d,o),s(r,i,u,o),s(r,i,d,i.notifyWith))):(n!==d&&(a=void 0,l=[t]),(o||i.resolveWith)(a,l))}},h=o?c:function(){try{c()}catch(t){$t.Deferred.exceptionHook&&$t.Deferred.exceptionHook(t,h.error),e+1>=r&&(n!==u&&(a=void 0,l=[t]),i.rejectWith(a,l))}}
e?h():($t.Deferred.getErrorHook?h.error=$t.Deferred.getErrorHook():$t.Deferred.getStackHook&&(h.error=$t.Deferred.getStackHook()),t.setTimeout(h))}}var r=0
return $t.Deferred(function(t){i[0][3].add(s(0,t,yt(o)?o:d,t.notifyWith)),i[1][3].add(s(0,t,yt(e)?e:d)),i[2][3].add(s(0,t,yt(n)?n:u))}).promise()},promise:function(t){return null!=t?$t.extend(t,o):o}},s={}
return $t.each(i,function(t,e){var r=e[2],a=e[5]
o[e[1]]=r.add,a&&r.add(function(){n=a},i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),r.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=r.fireWith}),o.promise(s),e&&e.call(s,s),s},when:function(t){var e=arguments.length,i=e,n=Array(i),o=lt.call(arguments),s=$t.Deferred(),r=function(t){return function(i){n[t]=this,o[t]=arguments.length>1?lt.call(arguments):i,--e||s.resolveWith(n,o)}}
if(e<=1&&(h(t,s.done(r(i)).resolve,s.reject,!e),"pending"===s.state()||yt(o[i]&&o[i].then)))return s.then()
for(;i--;)h(o[i],r(i),s.reject)
return s.promise()}})
var Wt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/
$t.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&Wt.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},$t.readyException=function(e){t.setTimeout(function(){throw e})}
var Ht=$t.Deferred()
$t.fn.ready=function(t){return Ht.then(t).catch(function(t){$t.readyException(t)}),this},$t.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--$t.readyWait:$t.isReady)||($t.isReady=!0,!0!==t&&--$t.readyWait>0||Ht.resolveWith(wt,[$t]))}}),$t.ready.then=Ht.then,"complete"===wt.readyState||"loading"!==wt.readyState&&!wt.documentElement.doScroll?t.setTimeout($t.ready):(wt.addEventListener("DOMContentLoaded",p),t.addEventListener("load",p))
var qt=function(t,e,i,o,s,r,a){var l=0,c=t.length,d=null==i
if("object"===n(i)){s=!0
for(l in i)qt(t,e,l,i[l],!0,r,a)}else if(void 0!==o&&(s=!0,yt(o)||(a=!0),d&&(a?(e.call(t,o),e=null):(d=e,e=function(t,e,i){return d.call($t(t),i)})),e))for(;l<c;l++)e(t[l],i,a?o:o.call(t[l],l,e(t[l],i)))
return s?t:d?e.call(t):c?e(t[0],i):r},Ut=/^-ms-/,zt=/-([a-z])/g,Bt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}
g.uid=1,g.prototype={cache:function(t){var e=t[this.expando]
return e||(e={},Bt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,o=this.cache(t)
if("string"==typeof e)o[m(e)]=i
else for(n in e)o[m(n)]=e[n]
return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][m(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando]
if(void 0!==n){if(void 0!==e){Array.isArray(e)?e=e.map(m):(e=m(e),e=e in n?[e]:e.match(Vt)||[]),i=e.length
for(;i--;)delete n[e[i]]}(void 0===e||$t.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando]
return void 0!==e&&!$t.isEmptyObject(e)}}
var Yt=new g,Qt=new g,Xt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Gt=/[A-Z]/g
$t.extend({hasData:function(t){return Qt.hasData(t)||Yt.hasData(t)},data:function(t,e,i){return Qt.access(t,e,i)},removeData:function(t,e){Qt.remove(t,e)},_data:function(t,e,i){return Yt.access(t,e,i)},_removeData:function(t,e){Yt.remove(t,e)}}),$t.fn.extend({data:function(t,e){var i,n,o,s=this[0],r=s&&s.attributes
if(void 0===t){if(this.length&&(o=Qt.get(s),1===s.nodeType&&!Yt.get(s,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&(n=r[i].name,0===n.indexOf("data-")&&(n=m(n.slice(5)),y(s,n,o[n])))
Yt.set(s,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each(function(){Qt.set(this,t)}):qt(this,function(e){var i
if(s&&void 0===e){if(void 0!==(i=Qt.get(s,t)))return i
if(void 0!==(i=y(s,t)))return i}else this.each(function(){Qt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Qt.remove(this,t)})}}),$t.extend({queue:function(t,e,i){var n
if(t)return e=(e||"fx")+"queue",n=Yt.get(t,e),i&&(!n||Array.isArray(i)?n=Yt.access(t,e,$t.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx"
var i=$t.queue(t,e),n=i.length,o=i.shift(),s=$t._queueHooks(t,e),r=function(){$t.dequeue(t,e)}
"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete s.stop,o.call(t,r,s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks"
return Yt.get(t,i)||Yt.access(t,i,{empty:$t.Callbacks("once memory").add(function(){Yt.remove(t,[e+"queue",i])})})}}),$t.fn.extend({queue:function(t,e){var i=2
return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?$t.queue(this[0],t):void 0===e?this:this.each(function(){var i=$t.queue(this,t,e)
$t._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&$t.dequeue(this,t)})},dequeue:function(t){return this.each(function(){$t.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,o=$t.Deferred(),s=this,r=this.length,a=function(){--n||o.resolveWith(s,[s])}
for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=Yt.get(s[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a))
return a(),o.promise(e)}})
var Jt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Kt=new RegExp("^(?:([+-])=|)("+Jt+")([a-z%]*)$","i"),Zt=["Top","Right","Bottom","Left"],te=wt.documentElement,ee=function(t){return $t.contains(t.ownerDocument,t)},ie={composed:!0}
te.getRootNode&&(ee=function(t){return $t.contains(t.ownerDocument,t)||t.getRootNode(ie)===t.ownerDocument})
var ne=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&ee(t)&&"none"===$t.css(t,"display")},oe={}
$t.fn.extend({show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ne(this)?$t(this).show():$t(this).hide()})}})
var se=/^(?:checkbox|radio)$/i,re=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ae=/^$|^module$|\/(?:java|ecma)script/i
!function(){var t=wt.createDocumentFragment(),e=t.appendChild(wt.createElement("div")),i=wt.createElement("input")
i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),vt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",vt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",vt.option=!!e.lastChild}()
var le={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]}
le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td,vt.option||(le.optgroup=le.option=[1,"<select multiple='multiple'>","</select>"])
var ce=/<|&#?\w+;/,de=/^([^.]*)(?:\.(.+)|)/
$t.event={global:{},add:function(t,e,i,n,o){var s,r,a,l,c,d,u,h,p,f,m,g=Yt.get(t)
if(Bt(t))for(i.handler&&(s=i,i=s.handler,o=s.selector),o&&$t.find.matchesSelector(te,o),i.guid||(i.guid=$t.guid++),(l=g.events)||(l=g.events=Object.create(null)),(r=g.handle)||(r=g.handle=function(e){return void 0!==$t&&$t.event.triggered!==e.type?$t.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Vt)||[""],c=e.length;c--;)a=de.exec(e[c])||[],p=m=a[1],f=(a[2]||"").split(".").sort(),p&&(u=$t.event.special[p]||{},p=(o?u.delegateType:u.bindType)||p,u=$t.event.special[p]||{},d=$t.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&$t.expr.match.needsContext.test(o),namespace:f.join(".")},s),(h=l[p])||(h=l[p]=[],h.delegateCount=0,u.setup&&!1!==u.setup.call(t,n,f,r)||t.addEventListener&&t.addEventListener(p,r)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),o?h.splice(h.delegateCount++,0,d):h.push(d),$t.event.global[p]=!0)},remove:function(t,e,i,n,o){var s,r,a,l,c,d,u,h,p,f,m,g=Yt.hasData(t)&&Yt.get(t)
if(g&&(l=g.events)){for(e=(e||"").match(Vt)||[""],c=e.length;c--;)if(a=de.exec(e[c])||[],p=m=a[1],f=(a[2]||"").split(".").sort(),p){for(u=$t.event.special[p]||{},p=(n?u.delegateType:u.bindType)||p,h=l[p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=h.length;s--;)d=h[s],!o&&m!==d.origType||i&&i.guid!==d.guid||a&&!a.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(h.splice(s,1),d.selector&&h.delegateCount--,u.remove&&u.remove.call(t,d))
r&&!h.length&&(u.teardown&&!1!==u.teardown.call(t,f,g.handle)||$t.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)$t.event.remove(t,p+e[c],i,n,!0)
$t.isEmptyObject(l)&&Yt.remove(t,"handle events")}},dispatch:function(t){var e,i,n,o,s,r,a=new Array(arguments.length),l=$t.event.fix(t),c=(Yt.get(this,"events")||Object.create(null))[l.type]||[],d=$t.event.special[l.type]||{}
for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e]
if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(r=$t.event.handlers.call(this,l,c),e=0;(o=r[e++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,i=0;(s=o.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(n=(($t.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()))
return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,o,s,r,a=[],l=e.delegateCount,c=t.target
if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(s=[],r={},i=0;i<l;i++)n=e[i],o=n.selector+" ",void 0===r[o]&&(r[o]=n.needsContext?$t(o,this).index(c)>-1:$t.find(o,this,null,[c]).length),r[o]&&s.push(n)
s.length&&a.push({elem:c,handlers:s})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty($t.Event.prototype,t,{enumerable:!0,configurable:!0,get:yt(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[$t.expando]?t:new $t.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t
return se.test(e.type)&&e.click&&s(e,"input")&&S(e,"click",!0),!1},trigger:function(t){var e=this||t
return se.test(e.type)&&e.click&&s(e,"input")&&S(e,"click"),!0},_default:function(t){var e=t.target
return se.test(e.type)&&e.click&&s(e,"input")&&Yt.get(e,"click")||s(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},$t.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},$t.Event=function(t,e){if(!(this instanceof $t.Event))return new $t.Event(t,e)
t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?T:_,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&$t.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[$t.expando]=!0},$t.Event.prototype={constructor:$t.Event,isDefaultPrevented:_,isPropagationStopped:_,isImmediatePropagationStopped:_,isSimulated:!1,preventDefault:function(){var t=this.originalEvent
this.isDefaultPrevented=T,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent
this.isPropagationStopped=T,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent
this.isImmediatePropagationStopped=T,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},$t.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},$t.event.addProp),$t.each({focus:"focusin",blur:"focusout"},function(t,e){function i(t){if(wt.documentMode){var i=Yt.get(this,"handle"),n=$t.event.fix(t)
n.type="focusin"===t.type?"focus":"blur",n.isSimulated=!0,i(t),n.target===n.currentTarget&&i(n)}else $t.event.simulate(e,t.target,$t.event.fix(t))}$t.event.special[t]={setup:function(){var n
if(S(this,t,!0),!wt.documentMode)return!1
n=Yt.get(this,e),n||this.addEventListener(e,i),Yt.set(this,e,(n||0)+1)},trigger:function(){return S(this,t),!0},teardown:function(){var t
if(!wt.documentMode)return!1
t=Yt.get(this,e)-1,t?Yt.set(this,e,t):(this.removeEventListener(e,i),Yt.remove(this,e))},_default:function(e){return Yt.get(e.target,t)},delegateType:e},$t.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,o=wt.documentMode?this:n,s=Yt.get(o,e)
s||(wt.documentMode?this.addEventListener(e,i):n.addEventListener(t,i,!0)),Yt.set(o,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,o=wt.documentMode?this:n,s=Yt.get(o,e)-1
s?Yt.set(o,e,s):(wt.documentMode?this.removeEventListener(e,i):n.removeEventListener(t,i,!0),Yt.remove(o,e))}}}),$t.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){$t.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,o=t.relatedTarget,s=t.handleObj
return o&&(o===n||$t.contains(n,o))||(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}}),$t.fn.extend({on:function(t,e,i,n){return E(this,t,e,i,n)},one:function(t,e,i,n){return E(this,t,e,i,n,1)},off:function(t,e,i){var n,o
if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,$t(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this
if("object"==typeof t){for(o in t)this.off(o,e,t[o])
return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=_),this.each(function(){$t.event.remove(this,t,i,e)})}})
var ue=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,pe=/^\s*<!\[CDATA\[|\]\]>\s*$/g
$t.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,o,s,r,a=t.cloneNode(!0),l=ee(t)
if(!(vt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||$t.isXMLDoc(t)))for(r=C(a),s=C(t),n=0,o=s.length;n<o;n++)j(s[n],r[n])
if(e)if(i)for(s=s||C(t),r=r||C(a),n=0,o=s.length;n<o;n++)I(s[n],r[n])
else I(t,a)
return r=C(a,"script"),r.length>0&&$(r,!l&&C(t,"script")),a},cleanData:function(t){for(var e,i,n,o=$t.event.special,s=0;void 0!==(i=t[s]);s++)if(Bt(i)){if(e=i[Yt.expando]){if(e.events)for(n in e.events)o[n]?$t.event.remove(i,n):$t.removeEvent(i,n,e.handle)
i[Yt.expando]=void 0}i[Qt.expando]&&(i[Qt.expando]=void 0)}}}),$t.fn.extend({detach:function(t){return L(this,t,!0)},remove:function(t){return L(this,t)},text:function(t){return qt(this,function(t){return void 0===t?$t.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return O(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){P(this,t).appendChild(t)}})},prepend:function(){return O(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=P(this,t)
e.insertBefore(t,e.firstChild)}})},before:function(){return O(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return O(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&($t.cleanData(C(t,!1)),t.textContent="")
return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return $t.clone(this,t,e)})},html:function(t){return qt(this,function(t){var e=this[0]||{},i=0,n=this.length
if(void 0===t&&1===e.nodeType)return e.innerHTML
if("string"==typeof t&&!ue.test(t)&&!le[(re.exec(t)||["",""])[1].toLowerCase()]){t=$t.htmlPrefilter(t)
try{for(;i<n;i++)e=this[i]||{},1===e.nodeType&&($t.cleanData(C(e,!1)),e.innerHTML=t)
e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[]
return O(this,arguments,function(e){var i=this.parentNode
$t.inArray(this,t)<0&&($t.cleanData(C(this)),i&&i.replaceChild(e,this))},t)}}),$t.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){$t.fn[t]=function(t){for(var i,n=[],o=$t(t),s=o.length-1,r=0;r<=s;r++)i=r===s?this:this.clone(!0),$t(o[r])[e](i),dt.apply(n,i.get())
return this.pushStack(n)}})
var fe=new RegExp("^("+Jt+")(?!px)[a-z%]+$","i"),me=/^--/,ge=function(e){var i=e.ownerDocument.defaultView
return i&&i.opener||(i=t),i.getComputedStyle(e)},ve=function(t,e,i){var n,o,s={}
for(o in e)s[o]=t.style[o],t.style[o]=e[o]
n=i.call(t)
for(o in e)t.style[o]=s[o]
return n},ye=new RegExp(Zt.join("|"),"i")
!function(){function e(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",te.appendChild(c).appendChild(d)
var e=t.getComputedStyle(d)
n="1%"!==e.top,l=12===i(e.marginLeft),d.style.right="60%",r=36===i(e.right),o=36===i(e.width),d.style.position="absolute",s=12===i(d.offsetWidth/3),te.removeChild(c),d=null}}function i(t){return Math.round(parseFloat(t))}var n,o,s,r,a,l,c=wt.createElement("div"),d=wt.createElement("div")
d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",vt.clearCloneStyle="content-box"===d.style.backgroundClip,$t.extend(vt,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),r},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),s},reliableTrDimensions:function(){var e,i,n,o
return null==a&&(e=wt.createElement("table"),i=wt.createElement("tr"),n=wt.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",i.style.cssText="box-sizing:content-box;border:1px solid",i.style.height="1px",n.style.height="9px",n.style.display="block",te.appendChild(e).appendChild(i).appendChild(n),o=t.getComputedStyle(i),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===i.offsetHeight,te.removeChild(e)),a}}))}()
var be=["Webkit","Moz","ms"],we=wt.createElement("div").style,xe={},Ce=/^(none|table(?!-c[ea]).+)/,$e={position:"absolute",visibility:"hidden",display:"block"},ke={letterSpacing:"0",fontWeight:"400"}
$t.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=N(t,"opacity")
return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,r,a=m(e),l=me.test(e),c=t.style
if(l||(e=F(a)),r=$t.cssHooks[e]||$t.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(o=r.get(t,!1,n))?o:c[e]
s=typeof i,"string"===s&&(o=Kt.exec(i))&&o[1]&&(i=b(t,e,o),s="number"),null!=i&&i===i&&("number"!==s||l||(i+=o&&o[3]||($t.cssNumber[a]?"":"px")),vt.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var o,s,r,a=m(e)
return me.test(e)||(e=F(a)),r=$t.cssHooks[e]||$t.cssHooks[a],r&&"get"in r&&(o=r.get(t,!0,i)),void 0===o&&(o=N(t,e,n)),"normal"===o&&e in ke&&(o=ke[e]),""===i||i?(s=parseFloat(o),!0===i||isFinite(s)?s||0:o):o}}),$t.each(["height","width"],function(t,e){$t.cssHooks[e]={get:function(t,i,n){if(i)return!Ce.test($t.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?H(t,e,n):ve(t,$e,function(){return H(t,e,n)})},set:function(t,i,n){var o,s=ge(t),r=!vt.scrollboxSize()&&"absolute"===s.position,a=r||n,l=a&&"border-box"===$t.css(t,"boxSizing",!1,s),c=n?W(t,e,n,l,s):0
return l&&r&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-W(t,e,"border",!1,s)-.5)),c&&(o=Kt.exec(i))&&"px"!==(o[3]||"px")&&(t.style[e]=i,i=$t.css(t,e)),V(t,i,c)}}}),$t.cssHooks.marginLeft=R(vt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(N(t,"marginLeft"))||t.getBoundingClientRect().left-ve(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),$t.each({margin:"",padding:"",border:"Width"},function(t,e){$t.cssHooks[t+e]={expand:function(i){for(var n=0,o={},s="string"==typeof i?i.split(" "):[i];n<4;n++)o[t+Zt[n]+e]=s[n]||s[n-2]||s[0]
return o}},"margin"!==t&&($t.cssHooks[t+e].set=V)}),$t.fn.extend({css:function(t,e){return qt(this,function(t,e,i){var n,o,s={},r=0
if(Array.isArray(e)){for(n=ge(t),o=e.length;r<o;r++)s[e[r]]=$t.css(t,e[r],!1,n)
return s}return void 0!==i?$t.style(t,e,i):$t.css(t,e)},t,e,arguments.length>1)}}),$t.Tween=q,q.prototype={constructor:q,init:function(t,e,i,n,o,s){this.elem=t,this.prop=i,this.easing=o||$t.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||($t.cssNumber[i]?"":"px")},cur:function(){var t=q.propHooks[this.prop]
return t&&t.get?t.get(this):q.propHooks._default.get(this)},run:function(t){var e,i=q.propHooks[this.prop]
return this.options.duration?this.pos=e=$t.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):q.propHooks._default.set(this),this}},q.prototype.init.prototype=q.prototype,q.propHooks={_default:{get:function(t){var e
return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=$t.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){$t.fx.step[t.prop]?$t.fx.step[t.prop](t):1!==t.elem.nodeType||!$t.cssHooks[t.prop]&&null==t.elem.style[F(t.prop)]?t.elem[t.prop]=t.now:$t.style(t.elem,t.prop,t.now+t.unit)}}},q.propHooks.scrollTop=q.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},$t.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},$t.fx=q.prototype.init,$t.fx.step={}
var Te,_e,Ee=/^(?:toggle|show|hide)$/,Se=/queueHooks$/
$t.Animation=$t.extend(G,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e)
return b(i.elem,t,Kt.exec(e),i),i}]},tweener:function(t,e){yt(t)?(e=t,t=["*"]):t=t.match(Vt)
for(var i,n=0,o=t.length;n<o;n++)i=t[n],G.tweeners[i]=G.tweeners[i]||[],G.tweeners[i].unshift(e)},prefilters:[Q],prefilter:function(t,e){e?G.prefilters.unshift(t):G.prefilters.push(t)}}),$t.speed=function(t,e,i){var n=t&&"object"==typeof t?$t.extend({},t):{complete:i||!i&&e||yt(t)&&t,duration:t,easing:i&&e||e&&!yt(e)&&e}
return $t.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in $t.fx.speeds?n.duration=$t.fx.speeds[n.duration]:n.duration=$t.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){yt(n.old)&&n.old.call(this),n.queue&&$t.dequeue(this,n.queue)},n},$t.fn.extend({fadeTo:function(t,e,i,n){return this.filter(ne).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var o=$t.isEmptyObject(t),s=$t.speed(e,i,n),r=function(){var e=G(this,$t.extend({},t),s);(o||Yt.get(this,"finish"))&&e.stop(!0)}
return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop
delete t.stop,e(i)}
return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",s=$t.timers,r=Yt.get(this)
if(o)r[o]&&r[o].stop&&n(r[o])
else for(o in r)r[o]&&r[o].stop&&Se.test(o)&&n(r[o])
for(o=s.length;o--;)s[o].elem!==this||null!=t&&s[o].queue!==t||(s[o].anim.stop(i),e=!1,s.splice(o,1))
!e&&i||$t.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=Yt.get(this),n=i[t+"queue"],o=i[t+"queueHooks"],s=$t.timers,r=n?n.length:0
for(i.finish=!0,$t.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1))
for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this)
delete i.finish})}}),$t.each(["toggle","show","hide"],function(t,e){var i=$t.fn[e]
$t.fn[e]=function(t,n,o){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(B(e,!0),t,n,o)}}),$t.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){$t.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),$t.timers=[],$t.fx.tick=function(){var t,e=0,i=$t.timers
for(Te=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1)
i.length||$t.fx.stop(),Te=void 0},$t.fx.timer=function(t){$t.timers.push(t),$t.fx.start()},$t.fx.interval=13,$t.fx.start=function(){_e||(_e=!0,U())},$t.fx.stop=function(){_e=null},$t.fx.speeds={slow:600,fast:200,_default:400},$t.fn.delay=function(e,i){return e=$t.fx?$t.fx.speeds[e]||e:e,i=i||"fx",this.queue(i,function(i,n){var o=t.setTimeout(i,e)
n.stop=function(){t.clearTimeout(o)}})},function(){var t=wt.createElement("input"),e=wt.createElement("select"),i=e.appendChild(wt.createElement("option"))
t.type="checkbox",vt.checkOn=""!==t.value,vt.optSelected=i.selected,t=wt.createElement("input"),t.value="t",t.type="radio",vt.radioValue="t"===t.value}()
var Pe,De=$t.expr.attrHandle
$t.fn.extend({attr:function(t,e){return qt(this,$t.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){$t.removeAttr(this,t)})}}),$t.extend({attr:function(t,e,i){var n,o,s=t.nodeType
if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?$t.prop(t,e,i):(1===s&&$t.isXMLDoc(t)||(o=$t.attrHooks[e.toLowerCase()]||($t.expr.match.bool.test(e)?Pe:void 0)),void 0!==i?null===i?void $t.removeAttr(t,e):o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(n=o.get(t,e))?n:(n=$t.find.attr(t,e),null==n?void 0:n))},attrHooks:{type:{set:function(t,e){if(!vt.radioValue&&"radio"===e&&s(t,"input")){var i=t.value
return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,o=e&&e.match(Vt)
if(o&&1===t.nodeType)for(;i=o[n++];)t.removeAttribute(i)}}),Pe={set:function(t,e,i){return!1===e?$t.removeAttr(t,i):t.setAttribute(i,i),i}},$t.each($t.expr.match.bool.source.match(/\w+/g),function(t,e){var i=De[e]||$t.find.attr
De[e]=function(t,e,n){var o,s,r=e.toLowerCase()
return n||(s=De[r],De[r]=o,o=null!=i(t,e,n)?r:null,De[r]=s),o}})
var Ae=/^(?:input|select|textarea|button)$/i,Ie=/^(?:a|area)$/i
$t.fn.extend({prop:function(t,e){return qt(this,$t.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[$t.propFix[t]||t]})}}),$t.extend({prop:function(t,e,i){var n,o,s=t.nodeType
if(3!==s&&8!==s&&2!==s)return 1===s&&$t.isXMLDoc(t)||(e=$t.propFix[e]||e,o=$t.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=$t.find.attr(t,"tabindex")
return e?parseInt(e,10):Ae.test(t.nodeName)||Ie.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),vt.optSelected||($t.propHooks.selected={get:function(t){var e=t.parentNode
return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode
e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),$t.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){$t.propFix[this.toLowerCase()]=this}),$t.fn.extend({addClass:function(t){var e,i,n,o,s,r
return yt(t)?this.each(function(e){$t(this).addClass(t.call(this,e,K(this)))}):(e=Z(t),e.length?this.each(function(){if(n=K(this),i=1===this.nodeType&&" "+J(n)+" "){for(s=0;s<e.length;s++)o=e[s],i.indexOf(" "+o+" ")<0&&(i+=o+" ")
r=J(i),n!==r&&this.setAttribute("class",r)}}):this)},removeClass:function(t){var e,i,n,o,s,r
return yt(t)?this.each(function(e){$t(this).removeClass(t.call(this,e,K(this)))}):arguments.length?(e=Z(t),e.length?this.each(function(){if(n=K(this),i=1===this.nodeType&&" "+J(n)+" "){for(s=0;s<e.length;s++)for(o=e[s];i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ")
r=J(i),n!==r&&this.setAttribute("class",r)}}):this):this.attr("class","")},toggleClass:function(t,e){var i,n,o,s,r=typeof t,a="string"===r||Array.isArray(t)
return yt(t)?this.each(function(i){$t(this).toggleClass(t.call(this,i,K(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(i=Z(t),this.each(function(){if(a)for(s=$t(this),o=0;o<i.length;o++)n=i[o],s.hasClass(n)?s.removeClass(n):s.addClass(n)
else void 0!==t&&"boolean"!==r||(n=K(this),n&&Yt.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":Yt.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0
for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+J(K(i))+" ").indexOf(e)>-1)return!0
return!1}})
var je=/\r/g
$t.fn.extend({val:function(t){var e,i,n,o=this[0]
{if(arguments.length)return n=yt(t),this.each(function(i){var o
1===this.nodeType&&(o=n?t.call(this,i,$t(this).val()):t,null==o?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=$t.map(o,function(t){return null==t?"":t+""})),(e=$t.valHooks[this.type]||$t.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})
if(o)return(e=$t.valHooks[o.type]||$t.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(o,"value"))?i:(i=o.value,"string"==typeof i?i.replace(je,""):null==i?"":i)}}}),$t.extend({valHooks:{option:{get:function(t){var e=$t.find.attr(t,"value")
return null!=e?e:J($t.text(t))}},select:{get:function(t){var e,i,n,o=t.options,r=t.selectedIndex,a="select-one"===t.type,l=a?null:[],c=a?r+1:o.length
for(n=r<0?c:a?r:0;n<c;n++)if(i=o[n],(i.selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!s(i.parentNode,"optgroup"))){if(e=$t(i).val(),a)return e
l.push(e)}return l},set:function(t,e){for(var i,n,o=t.options,s=$t.makeArray(e),r=o.length;r--;)n=o[r],(n.selected=$t.inArray($t.valHooks.option.get(n),s)>-1)&&(i=!0)
return i||(t.selectedIndex=-1),s}}}}),$t.each(["radio","checkbox"],function(){$t.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=$t.inArray($t(t).val(),e)>-1}},vt.checkOn||($t.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})
var Oe=t.location,Le={guid:Date.now()},Ne=/\?/
$t.parseXML=function(e){var i,n
if(!e||"string"!=typeof e)return null
try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return n=i&&i.getElementsByTagName("parsererror")[0],i&&!n||$t.error("Invalid XML: "+(n?$t.map(n.childNodes,function(t){return t.textContent}).join("\n"):e)),i}
var Re=/^(?:focusinfocus|focusoutblur)$/,Me=function(t){t.stopPropagation()}
$t.extend($t.event,{trigger:function(e,i,n,o){var s,r,a,l,c,d,u,h,p=[n||wt],f=ft.call(e,"type")?e.type:e,m=ft.call(e,"namespace")?e.namespace.split("."):[]
if(r=h=a=n=n||wt,3!==n.nodeType&&8!==n.nodeType&&!Re.test(f+$t.event.triggered)&&(f.indexOf(".")>-1&&(m=f.split("."),f=m.shift(),m.sort()),c=f.indexOf(":")<0&&"on"+f,e=e[$t.expando]?e:new $t.Event(f,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:$t.makeArray(i,[e]),u=$t.event.special[f]||{},o||!u.trigger||!1!==u.trigger.apply(n,i))){if(!o&&!u.noBubble&&!bt(n)){for(l=u.delegateType||f,Re.test(l+f)||(r=r.parentNode);r;r=r.parentNode)p.push(r),a=r
a===(n.ownerDocument||wt)&&p.push(a.defaultView||a.parentWindow||t)}for(s=0;(r=p[s++])&&!e.isPropagationStopped();)h=r,e.type=s>1?l:u.bindType||f,d=(Yt.get(r,"events")||Object.create(null))[e.type]&&Yt.get(r,"handle"),d&&d.apply(r,i),(d=c&&r[c])&&d.apply&&Bt(r)&&(e.result=d.apply(r,i),!1===e.result&&e.preventDefault())
return e.type=f,o||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),i)||!Bt(n)||c&&yt(n[f])&&!bt(n)&&(a=n[c],a&&(n[c]=null),$t.event.triggered=f,e.isPropagationStopped()&&h.addEventListener(f,Me),n[f](),e.isPropagationStopped()&&h.removeEventListener(f,Me),$t.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(t,e,i){var n=$t.extend(new $t.Event,i,{type:t,isSimulated:!0})
$t.event.trigger(n,null,e)}}),$t.fn.extend({trigger:function(t,e){return this.each(function(){$t.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0]
if(i)return $t.event.trigger(t,e,i,!0)}})
var Fe=/\[\]$/,Ve=/\r?\n/g,We=/^(?:submit|button|image|reset|file)$/i,He=/^(?:input|select|textarea|keygen)/i
$t.param=function(t,e){var i,n=[],o=function(t,e){var i=yt(e)?e():e
n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)}
if(null==t)return""
if(Array.isArray(t)||t.jquery&&!$t.isPlainObject(t))$t.each(t,function(){o(this.name,this.value)})
else for(i in t)tt(i,t[i],e,o)
return n.join("&")},$t.fn.extend({serialize:function(){return $t.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=$t.prop(this,"elements")
return t?$t.makeArray(t):this}).filter(function(){var t=this.type
return this.name&&!$t(this).is(":disabled")&&He.test(this.nodeName)&&!We.test(t)&&(this.checked||!se.test(t))}).map(function(t,e){var i=$t(this).val()
return null==i?null:Array.isArray(i)?$t.map(i,function(t){return{name:e.name,value:t.replace(Ve,"\r\n")}}):{name:e.name,value:i.replace(Ve,"\r\n")}}).get()}})
var qe=/%20/g,Ue=/#.*$/,ze=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ye=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Qe=/^(?:GET|HEAD)$/,Xe=/^\/\//,Ge={},Je={},Ke="*/".concat("*"),Ze=wt.createElement("a")
Ze.href=Oe.href,$t.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oe.href,type:"GET",isLocal:Ye.test(Oe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ke,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":$t.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?nt(nt(t,$t.ajaxSettings),e):nt($t.ajaxSettings,t)},ajaxPrefilter:et(Ge),ajaxTransport:et(Je),ajax:function(e,i){function n(e,i,n,a){var c,h,p,w,x,C=i
d||(d=!0,l&&t.clearTimeout(l),o=void 0,r=a||"",$.readyState=e>0?4:0,c=e>=200&&e<300||304===e,n&&(w=ot(f,$,n)),!c&&$t.inArray("script",f.dataTypes)>-1&&$t.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=st(f,w,$,c),c?(f.ifModified&&(x=$.getResponseHeader("Last-Modified"),x&&($t.lastModified[s]=x),(x=$.getResponseHeader("etag"))&&($t.etag[s]=x)),204===e||"HEAD"===f.type?C="nocontent":304===e?C="notmodified":(C=w.state,h=w.data,p=w.error,c=!p)):(p=C,!e&&C||(C="error",e<0&&(e=0))),$.status=e,$.statusText=(i||C)+"",c?v.resolveWith(m,[h,C,$]):v.rejectWith(m,[$,C,p]),$.statusCode(b),b=void 0,u&&g.trigger(c?"ajaxSuccess":"ajaxError",[$,f,c?h:p]),y.fireWith(m,[$,C]),u&&(g.trigger("ajaxComplete",[$,f]),--$t.active||$t.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=void 0),i=i||{}
var o,s,r,a,l,c,d,u,h,p,f=$t.ajaxSetup({},i),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?$t(m):$t.event,v=$t.Deferred(),y=$t.Callbacks("once memory"),b=f.statusCode||{},w={},x={},C="canceled",$={readyState:0,getResponseHeader:function(t){var e
if(d){if(!a)for(a={};e=Be.exec(r);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2])
e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return d?r:null},setRequestHeader:function(t,e){return null==d&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==d&&(f.mimeType=t),this},statusCode:function(t){var e
if(t)if(d)$.always(t[$.status])
else for(e in t)b[e]=[b[e],t[e]]
return this},abort:function(t){var e=t||C
return o&&o.abort(e),n(0,e),this}}
if(v.promise($),f.url=((e||f.url||Oe.href)+"").replace(Xe,Oe.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Vt)||[""],null==f.crossDomain){c=wt.createElement("a")
try{c.href=f.url,c.href=c.href,f.crossDomain=Ze.protocol+"//"+Ze.host!=c.protocol+"//"+c.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=$t.param(f.data,f.traditional)),it(Ge,f,i,$),d)return $
u=$t.event&&f.global,u&&0==$t.active++&&$t.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Qe.test(f.type),s=f.url.replace(Ue,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(qe,"+")):(p=f.url.slice(s.length),f.data&&(f.processData||"string"==typeof f.data)&&(s+=(Ne.test(s)?"&":"?")+f.data,delete f.data),!1===f.cache&&(s=s.replace(ze,"$1"),p=(Ne.test(s)?"&":"?")+"_="+Le.guid+++p),f.url=s+p),f.ifModified&&($t.lastModified[s]&&$.setRequestHeader("If-Modified-Since",$t.lastModified[s]),$t.etag[s]&&$.setRequestHeader("If-None-Match",$t.etag[s])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&$.setRequestHeader("Content-Type",f.contentType),$.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ke+"; q=0.01":""):f.accepts["*"])
for(h in f.headers)$.setRequestHeader(h,f.headers[h])
if(f.beforeSend&&(!1===f.beforeSend.call(m,$,f)||d))return $.abort()
if(C="abort",y.add(f.complete),$.done(f.success),$.fail(f.error),o=it(Je,f,i,$)){if($.readyState=1,u&&g.trigger("ajaxSend",[$,f]),d)return $
f.async&&f.timeout>0&&(l=t.setTimeout(function(){$.abort("timeout")},f.timeout))
try{d=!1,o.send(w,n)}catch(t){if(d)throw t
n(-1,t)}}else n(-1,"No Transport")
return $},getJSON:function(t,e,i){return $t.get(t,e,i,"json")},getScript:function(t,e){return $t.get(t,void 0,e,"script")}}),$t.each(["get","post"],function(t,e){$t[e]=function(t,i,n,o){return yt(i)&&(o=o||n,n=i,i=void 0),$t.ajax($t.extend({url:t,type:e,dataType:o,data:i,success:n},$t.isPlainObject(t)&&t))}}),$t.ajaxPrefilter(function(t){var e
for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),$t._evalUrl=function(t,e,i){return $t.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){$t.globalEval(t,e,i)}})},$t.fn.extend({wrapAll:function(t){var e
return this[0]&&(yt(t)&&(t=t.call(this[0])),e=$t(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild
return t}).append(this)),this},wrapInner:function(t){return yt(t)?this.each(function(e){$t(this).wrapInner(t.call(this,e))}):this.each(function(){var e=$t(this),i=e.contents()
i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=yt(t)
return this.each(function(i){$t(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){$t(this).replaceWith(this.childNodes)}),this}}),$t.expr.pseudos.hidden=function(t){return!$t.expr.pseudos.visible(t)},$t.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},$t.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}}
var ti={0:200,1223:204},ei=$t.ajaxSettings.xhr()
vt.cors=!!ei&&"withCredentials"in ei,vt.ajax=ei=!!ei,$t.ajaxTransport(function(e){var i,n
if(vt.cors||ei&&!e.crossDomain)return{send:function(o,s){var r,a=e.xhr()
if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r]
e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest")
for(r in o)a.setRequestHeader(r,o[r])
i=function(t){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(ti[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),n=a.onerror=a.ontimeout=i("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){i&&n()})},i=i("abort")
try{a.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}}),$t.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),$t.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return $t.globalEval(t),t}}}),$t.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),$t.ajaxTransport("script",function(t){if(t.crossDomain||t.scriptAttrs){var e,i
return{send:function(n,o){e=$t("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&o("error"===t.type?404:200,t.type)}),wt.head.appendChild(e[0])},abort:function(){i&&i()}}}})
var ii=[],ni=/(=)\?(?=&|$)|\?\?/
$t.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ii.pop()||$t.expando+"_"+Le.guid++
return this[t]=!0,t}}),$t.ajaxPrefilter("json jsonp",function(e,i,n){var o,s,r,a=!1!==e.jsonp&&(ni.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(e.data)&&"data")
if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=yt(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(ni,"$1"+o):!1!==e.jsonp&&(e.url+=(Ne.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return r||$t.error(o+" was not called"),r[0]},e.dataTypes[0]="json",s=t[o],t[o]=function(){r=arguments},n.always(function(){void 0===s?$t(t).removeProp(o):t[o]=s,e[o]&&(e.jsonpCallback=i.jsonpCallback,ii.push(o)),r&&yt(s)&&s(r[0]),r=s=void 0}),"script"}),vt.createHTMLDocument=function(){var t=wt.implementation.createHTMLDocument("").body
return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),$t.parseHTML=function(t,e,i){if("string"!=typeof t)return[]
"boolean"==typeof e&&(i=e,e=!1)
var n,o,s
return e||(vt.createHTMLDocument?(e=wt.implementation.createHTMLDocument(""),n=e.createElement("base"),n.href=wt.location.href,e.head.appendChild(n)):e=wt),o=Lt.exec(t),s=!i&&[],o?[e.createElement(o[1])]:(o=k([t],e,s),s&&s.length&&$t(s).remove(),$t.merge([],o.childNodes))},$t.fn.load=function(t,e,i){var n,o,s,r=this,a=t.indexOf(" ")
return a>-1&&(n=J(t.slice(a)),t=t.slice(0,a)),yt(e)?(i=e,e=void 0):e&&"object"==typeof e&&(o="POST"),r.length>0&&$t.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){s=arguments,r.html(n?$t("<div>").append($t.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,s||[t.responseText,e,t])})}),this},$t.expr.pseudos.animated=function(t){return $t.grep($t.timers,function(e){return t===e.elem}).length},$t.offset={setOffset:function(t,e,i){var n,o,s,r,a,l,c,d=$t.css(t,"position"),u=$t(t),h={}
"static"===d&&(t.style.position="relative"),a=u.offset(),s=$t.css(t,"top"),l=$t.css(t,"left"),c=("absolute"===d||"fixed"===d)&&(s+l).indexOf("auto")>-1,c?(n=u.position(),r=n.top,o=n.left):(r=parseFloat(s)||0,o=parseFloat(l)||0),yt(e)&&(e=e.call(t,i,$t.extend({},a))),null!=e.top&&(h.top=e.top-a.top+r),null!=e.left&&(h.left=e.left-a.left+o),"using"in e?e.using.call(t,h):u.css(h)}},$t.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){$t.offset.setOffset(this,t,e)})
var e,i,n=this[0]
if(n)return n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var t,e,i,n=this[0],o={top:0,left:0}
if("fixed"===$t.css(n,"position"))e=n.getBoundingClientRect()
else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===$t.css(t,"position");)t=t.parentNode
t&&t!==n&&1===t.nodeType&&(o=$t(t).offset(),o.top+=$t.css(t,"borderTopWidth",!0),o.left+=$t.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-$t.css(n,"marginTop",!0),left:e.left-o.left-$t.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===$t.css(t,"position");)t=t.offsetParent
return t||te})}}),$t.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e
$t.fn[t]=function(n){return qt(this,function(t,n,o){var s
if(bt(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===o)return s?s[e]:t[n]
s?s.scrollTo(i?s.pageXOffset:o,i?o:s.pageYOffset):t[n]=o},t,n,arguments.length)}}),$t.each(["top","left"],function(t,e){$t.cssHooks[e]=R(vt.pixelPosition,function(t,i){if(i)return i=N(t,e),fe.test(i)?$t(t).position()[e]+"px":i})}),$t.each({Height:"height",Width:"width"},function(t,e){$t.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){$t.fn[n]=function(o,s){var r=arguments.length&&(i||"boolean"!=typeof o),a=i||(!0===o||!0===s?"margin":"border")
return qt(this,function(e,i,o){var s
return bt(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===o?$t.css(e,i,a):$t.style(e,i,o,a)},e,r?o:void 0,r)}})}),$t.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){$t.fn[e]=function(t){return this.on(e,t)}}),$t.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),$t.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){$t.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}})
var oi=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g
$t.proxy=function(t,e){var i,n,o
if("string"==typeof e&&(i=t[e],e=t,t=i),yt(t))return n=lt.call(arguments,2),o=function(){return t.apply(e||this,n.concat(lt.call(arguments)))},o.guid=t.guid=t.guid||$t.guid++,o},$t.holdReady=function(t){t?$t.readyWait++:$t.ready(!0)},$t.isArray=Array.isArray,$t.parseJSON=JSON.parse,$t.nodeName=s,$t.isFunction=yt,$t.isWindow=bt,$t.camelCase=m,$t.type=n,$t.now=Date.now,$t.isNumeric=function(t){var e=$t.type(t)
return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},$t.trim=function(t){return null==t?"":(t+"").replace(oi,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return $t})
var si=t.jQuery,ri=t.$
return $t.noConflict=function(e){return t.$===$t&&(t.$=ri),e&&t.jQuery===$t&&(t.jQuery=si),$t},void 0===e&&(t.jQuery=t.$=$t),$t}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){"use strict"
t.ui=t.ui||{}
var e=(t.ui.version="1.13.2",0),i=Array.prototype.hasOwnProperty,n=Array.prototype.slice
t.cleanData=function(e){return function(i){var n,o,s
for(s=0;null!=(o=i[s]);s++)(n=t._data(o,"events"))&&n.remove&&t(o).triggerHandler("remove")
e(i)}}(t.cleanData),t.widget=function(e,i,n){var o,s,r,a={},l=e.split(".")[0]
e=e.split(".")[1]
var c=l+"-"+e
return n||(n=i,i=t.Widget),Array.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr.pseudos[c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},o=t[l][e],s=t[l][e]=function(t,e){if(!this||!this._createWidget)return new s(t,e)
arguments.length&&this._createWidget(t,e)},t.extend(s,o,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),r=new i,r.options=t.widget.extend({},r.options),t.each(n,function(t,e){if("function"!=typeof e)return void(a[t]=e)
a[t]=function(){function n(){return i.prototype[t].apply(this,arguments)}function o(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,s=this._superApply
return this._super=n,this._superApply=o,t=e.apply(this,arguments),this._super=i,this._superApply=s,t}}()}),s.prototype=t.widget.extend(r,{widgetEventPrefix:o?r.widgetEventPrefix||e:e},a,{constructor:s,namespace:l,widgetName:e,widgetFullName:c}),o?(t.each(o._childConstructors,function(e,i){var n=i.prototype
t.widget(n.namespace+"."+n.widgetName,s,i._proto)}),delete o._childConstructors):i._childConstructors.push(s),t.widget.bridge(e,s),s},t.widget.extend=function(e){for(var o,s,r=n.call(arguments,1),a=0,l=r.length;a<l;a++)for(o in r[a])s=r[a][o],i.call(r[a],o)&&void 0!==s&&(t.isPlainObject(s)?e[o]=t.isPlainObject(e[o])?t.widget.extend({},e[o],s):t.widget.extend({},s):e[o]=s)
return e},t.widget.bridge=function(e,i){var o=i.prototype.widgetFullName||e
t.fn[e]=function(s){var r="string"==typeof s,a=n.call(arguments,1),l=this
return r?this.length||"instance"!==s?this.each(function(){var i,n=t.data(this,o)
return"instance"===s?(l=n,!1):n?"function"!=typeof n[s]||"_"===s.charAt(0)?t.error("no such method '"+s+"' for "+e+" widget instance"):(i=n[s].apply(n,a),i!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")}):l=void 0:(a.length&&(s=t.widget.extend.apply(null,[s].concat(a))),this.each(function(){var e=t.data(this,o)
e?(e.option(s||{}),e._init&&e._init()):t.data(this,o,new i(s,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this
this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,o,s,r=e
if(0===arguments.length)return t.widget.extend({},this.options)
if("string"==typeof e)if(r={},n=e.split("."),e=n.shift(),n.length){for(o=r[e]=t.widget.extend({},this.options[e]),s=0;s<n.length-1;s++)o[n[s]]=o[n[s]]||{},o=o[n[s]]
if(e=n.pop(),1===arguments.length)return void 0===o[e]?null:o[e]
o[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e]
r[e]=i}return this._setOptions(r),this},_setOptions:function(t){var e
for(e in t)this._setOption(e,t[e])
return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,o
for(i in e)o=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&o&&o.length&&(n=t(o.get()),this._removeClass(o,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(){var i=[]
e.element.each(function(e,n){t.map(s.classesElementLookup,function(t){return t}).some(function(t){return t.is(n)})||i.push(n)}),s._on(t(i),{remove:"_untrackClassesElement"})}function n(n,r){var a,l
for(l=0;l<n.length;l++)a=s.classesElementLookup[n[l]]||t(),e.add?(i(),a=t(t.uniqueSort(a.get().concat(e.element.get())))):a=t(a.not(e.element).get()),s.classesElementLookup[n[l]]=a,o.push(n[l]),r&&e.classes[n[l]]&&o.push(e.classes[n[l]])}var o=[],s=this
return e=t.extend({element:this.element,classes:this.options.classes||{}},e),e.keys&&n(e.keys.match(/\S+/g)||[],!0),e.extra&&n(e.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(e){var i=this
t.each(i.classesElementLookup,function(n,o){-1!==t.inArray(e.target,o)&&(i.classesElementLookup[n]=t(o.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i
var o="string"==typeof t||null===t,s={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n}
return s.element.toggleClass(this._classes(s),n),this},_on:function(e,i,n){var o,s=this
"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=o=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,o=this.widget()),t.each(n,function(n,r){function a(){if(e||!0!==s.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?s[r]:r).apply(s,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++)
var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+s.eventNamespace,d=l[2]
d?o.on(c,d,a):i.on(c,a)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this
return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var o,s,r=this.options[e]
if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(o in s)o in i||(i[o]=s[o])
return this.element.trigger(i,n),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,o,s){"string"==typeof o&&(o={effect:o})
var r,a=o?!0===o||"number"==typeof o?i:o.effect||i:e
o=o||{},"number"==typeof o?o={duration:o}:!0===o&&(o={}),r=!t.isEmptyObject(o),o.complete=s,o.delay&&n.delay(o.delay),r&&t.effects&&t.effects.effect[a]?n[e](o):a!==e&&n[a]?n[a](o.duration,o.easing,s):n.queue(function(i){t(this)[e](),s&&s.call(n[0]),i()})}})
t.widget
!function(){function e(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function n(t){return null!=t&&t===t.window}function o(t){var e=t[0]
return 9===e.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:n(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}var s,r=Math.max,a=Math.abs,l=/left|center|right/,c=/top|center|bottom/,d=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,h=/%$/,p=t.fn.position
t.position={scrollbarWidth:function(){if(void 0!==s)return s
var e,i,n=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=n.children()[0]
return t("body").append(n),e=o.offsetWidth,n.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=n[0].clientWidth),n.remove(),s=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth
return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),o=n(i[0]),s=!!i[0]&&9===i[0].nodeType
return{element:i,isWindow:o,isDocument:s,offset:o||s?{left:0,top:0}:t(e).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return p.apply(this,arguments)
n=t.extend({},n)
var s,h,f,m,g,v,y="string"==typeof n.of?t(document).find(n.of):t(n.of),b=t.position.getWithinInfo(n.within),w=t.position.getScrollInfo(b),x=(n.collision||"flip").split(" "),C={}
return v=o(y),y[0].preventDefault&&(n.at="left top"),h=v.width,f=v.height,m=v.offset,g=t.extend({},m),t.each(["my","at"],function(){var t,e,i=(n[this]||"").split(" ")
1===i.length&&(i=l.test(i[0])?i.concat(["center"]):c.test(i[0])?["center"].concat(i):["center","center"]),i[0]=l.test(i[0])?i[0]:"center",i[1]=c.test(i[1])?i[1]:"center",t=d.exec(i[0]),e=d.exec(i[1]),C[this]=[t?t[0]:0,e?e[0]:0],n[this]=[u.exec(i[0])[0],u.exec(i[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===n.at[0]?g.left+=h:"center"===n.at[0]&&(g.left+=h/2),"bottom"===n.at[1]?g.top+=f:"center"===n.at[1]&&(g.top+=f/2),s=e(C.at,h,f),g.left+=s[0],g.top+=s[1],this.each(function(){var o,l,c=t(this),d=c.outerWidth(),u=c.outerHeight(),p=i(this,"marginLeft"),v=i(this,"marginTop"),$=d+p+i(this,"marginRight")+w.width,k=u+v+i(this,"marginBottom")+w.height,T=t.extend({},g),_=e(C.my,c.outerWidth(),c.outerHeight())
"right"===n.my[0]?T.left-=d:"center"===n.my[0]&&(T.left-=d/2),"bottom"===n.my[1]?T.top-=u:"center"===n.my[1]&&(T.top-=u/2),T.left+=_[0],T.top+=_[1],o={marginLeft:p,marginTop:v},t.each(["left","top"],function(e,i){t.ui.position[x[e]]&&t.ui.position[x[e]][i](T,{targetWidth:h,targetHeight:f,elemWidth:d,elemHeight:u,collisionPosition:o,collisionWidth:$,collisionHeight:k,offset:[s[0]+_[0],s[1]+_[1]],my:n.my,at:n.at,within:b,elem:c})}),n.using&&(l=function(t){var e=m.left-T.left,i=e+h-d,o=m.top-T.top,s=o+f-u,l={target:{element:y,left:m.left,top:m.top,width:h,height:f},element:{element:c,left:T.left,top:T.top,width:d,height:u},horizontal:i<0?"left":e>0?"right":"center",vertical:s<0?"top":o>0?"bottom":"middle"}
h<d&&a(e+i)<h&&(l.horizontal="center"),f<u&&a(o+s)<f&&(l.vertical="middle"),r(a(e),a(i))>r(a(o),a(s))?l.important="horizontal":l.important="vertical",n.using.call(this,t,l)}),c.offset(t.extend(T,{using:l}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,a=t.left-e.collisionPosition.marginLeft,l=o-a,c=a+e.collisionWidth-s-o
e.collisionWidth>s?l>0&&c<=0?(i=t.left+l+e.collisionWidth-s-o,t.left+=l-i):t.left=c>0&&l<=0?o:l>c?o+s-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=r(t.left-a,t.left)},top:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=o-a,c=a+e.collisionHeight-s-o
e.collisionHeight>s?l>0&&c<=0?(i=t.top+l+e.collisionHeight-s-o,t.top+=l-i):t.top=c>0&&l<=0?o:l>c?o+s-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=r(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,o=e.within,s=o.offset.left+o.scrollLeft,r=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,d=c-l,u=c+e.collisionWidth-r-l,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0]
d<0?((i=t.left+h+p+f+e.collisionWidth-r-s)<0||i<a(d))&&(t.left+=h+p+f):u>0&&((n=t.left-e.collisionPosition.marginLeft+h+p+f-l)>0||a(n)<u)&&(t.left+=h+p+f)},top:function(t,e){var i,n,o=e.within,s=o.offset.top+o.scrollTop,r=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,d=c-l,u=c+e.collisionHeight-r-l,h="top"===e.my[1],p=h?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1]
d<0?((n=t.top+p+f+m+e.collisionHeight-r-s)<0||n<a(d))&&(t.top+=p+f+m):u>0&&((i=t.top-e.collisionPosition.marginTop+p+f+m-l)>0||a(i)<u)&&(t.top+=p+f+m)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}()
t.ui.position,t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.fn.extend({uniqueId:function(){var t=0
return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.safeActiveElement=function(t){var e
try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(e){var i=t(e.target),n=t(t.ui.safeActiveElement(this.document[0]))
!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first()
e||this.focus(t,i)},blur:function(e){this._delay(function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(e){if(!this.previousFilter&&(e.clientX!==this.lastMousePosition.x||e.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:e.clientX,y:e.clientY}
var i=t(e.target).closest(".ui-menu-item"),n=t(e.currentTarget)
i[0]===n[0]&&(n.is(".ui-state-active")||(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,n)))}},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup")
this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this)
e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,n,o,s,r=!0
switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e)
break
case t.ui.keyCode.PAGE_DOWN:this.nextPage(e)
break
case t.ui.keyCode.HOME:this._move("first","first",e)
break
case t.ui.keyCode.END:this._move("last","last",e)
break
case t.ui.keyCode.UP:this.previous(e)
break
case t.ui.keyCode.DOWN:this.next(e)
break
case t.ui.keyCode.LEFT:this.collapse(e)
break
case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e)
break
case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e)
break
case t.ui.keyCode.ESCAPE:this.collapse(e)
break
default:r=!1,n=this.previousFilter||"",s=!1,o=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),o===n?s=!0:o=n+o,i=this._filterMenuItems(o),i=s&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(o=String.fromCharCode(e.keyCode),i=this._filterMenuItems(o)),i.length?(this.focus(e,i),this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,n,o,s,r=this,a=this.options.icons.submenu,l=this.element.find(this.options.menus)
this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),n=t("<span>").data("ui-menu-submenu-caret",!0)
r._addClass(n,"ui-menu-icon","ui-icon "+a),i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this)
r._isDivider(e)&&r._addClass(e,"ui-menu-divider","ui-widget-content")}),o=i.not(".ui-menu-item, .ui-menu-divider"),s=o.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(o,"ui-menu-item")._addClass(s,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon")
this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,n,o
this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,o,s,r,a
this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-i-n,s=this.activeMenu.scrollTop(),r=this.activeMenu.height(),a=e.outerHeight(),o<0?this.activeMenu.scrollTop(s+o):o+a>r&&this.activeMenu.scrollTop(s+o-r+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position)
clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"))
n.length||(n=this.element),this._close(n),this.blur(e),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n},i?0:this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element)
e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first()
e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var n
this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first()),n&&n.length&&this.active||(n=this._menuItems(this.activeMenu)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,o
if(!this.active)return void this.next(e)
this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.innerHeight(),0===t.fn.jquery.indexOf("3.2.")&&(o+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n-o<0}),this.focus(e,i)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]()))},previousPage:function(e){var i,n,o
if(!this.active)return void this.next(e)
this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.innerHeight(),0===t.fn.jquery.indexOf("3.2.")&&(o+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+o>0}),this.focus(e,i)):this.focus(e,this._menuItems(this.activeMenu).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item")
var i={item:this.active}
this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+i,"i")
return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return n.test(String.prototype.trim.call(t(this).children(".ui-menu-item-wrapper").text()))})}})
t.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var e,i,n,o=this.element[0].nodeName.toLowerCase(),s="textarea"===o,r="input"===o
this.isMultiLine=s||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[s||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0)
e=!1,n=!1,i=!1
var s=t.ui.keyCode
switch(o.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",o)
break
case s.PAGE_DOWN:e=!0,this._move("nextPage",o)
break
case s.UP:e=!0,this._keyEvent("previous",o)
break
case s.DOWN:e=!0,this._keyEvent("next",o)
break
case s.ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o))
break
case s.TAB:this.menu.active&&this.menu.select(o)
break
case s.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault())
break
default:i=!0,this._searchTimeout(o)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault())
if(!i){var o=t.ui.keyCode
switch(n.keyCode){case o.PAGE_UP:this._move("previousPage",n)
break
case o.PAGE_DOWN:this._move("nextPage",n)
break
case o.UP:this._keyEvent("previous",n)
break
case o.DOWN:this._keyEvent("next",n)}}},input:function(t){if(n)return n=!1,void t.preventDefault()
this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(e,i){var n,o
if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)})
o=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:o})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(o.value),(n=i.item.attr("aria-label")||o.value)&&String.prototype.trim.call(n).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(t("<div>").text(n))},100))},menuselect:function(e,i){var n=i.item.data("ui-autocomplete-item"),o=this.previous
this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=o,this._delay(function(){this.previous=o,this.selectedItem=n})),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0]
return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo
return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this
Array.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,o){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){o(t)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey
e&&(!e||i||n)||(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=++this.requestIndex
return function(e){t===this.requestIndex&&this.__response(e),--this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty()
this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element
t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this
t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1
var e=t.prop("contentEditable")
return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i")
return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i
this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(t("<div>").text(i))},100))}})
t.ui.autocomplete}),!_gVar.isTest){var a=document.createElement("script"),m=document.getElementsByTagName("script")[0]
if(a.async=1,a.src="//www.googletagmanager.com/gtag/js?id="+_gVar.ga,m.parentNode.insertBefore(a,m),-1==["2","69","41","46","72"].indexOf(_gVar.page)){(adsbygoogle=window.adsbygoogle||[]).push({google_ad_client:"ca-pub-3096674315255993",enable_page_level_ads:!_gVar.user,overlays:{bottom:!0}})
var a=document.createElement("script"),m=document.getElementsByTagName("script")[0]
a.defer=1,a.setAttribute("crossorigin","anonymous"),a.src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",m.parentNode.insertBefore(a,m)}}if(_gVar.isMobile=window.innerWidth<767,_gVar.isSecure="https:"==location.protocol,"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict"
function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"}
for(var i in e)if(void 0!==t.style[i])return{end:e[i]}
return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this
t(this).one("bsTransitionEnd",function(){i=!0})
var o=function(){i||t(n).trigger(t.support.transition.end)}
return setTimeout(o,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var i=t(this),o=i.data("bs.alert")
o||i.data("bs.alert",o=new n(this)),"string"==typeof e&&o[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)}
n.VERSION="3.2.0",n.prototype.close=function(e){function i(){s.detach().trigger("closed.bs.alert").remove()}var n=t(this),o=n.attr("data-target")
o||(o=n.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""))
var s=t(o)
e&&e.preventDefault(),s.length||(s=n.hasClass("alert")?n:n.parent()),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(150):i())}
var o=t.fn.alert
t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.button"),s="object"==typeof e&&e
o||n.data("bs.button",o=new i(this,s)),"toggle"==e?o.toggle():e&&o.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1}
i.VERSION="3.2.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,o=n.is("input")?"val":"html",s=n.data()
e+="Text",null==s.resetText&&n.data("resetText",n[o]()),n[o](null==s[e]?this.options[e]:s[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]')
if(e.length){var i=this.$element.find("input")
"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")}
var n=t.fn.button
t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target)
n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),i.preventDefault()})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.carousel"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),r="string"==typeof e?e:s.slide
o||n.data("bs.carousel",o=new i(this,s)),"number"==typeof e?o.to(e):r?o[r]():s.interval&&o.pause().cycle()})}var i=function(e,i){this.$element=t(e).on("keydown.bs.carousel",t.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))}
i.VERSION="3.2.0",i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},i.prototype.keydown=function(t){switch(t.which){case 37:this.prev()
break
case 39:this.next()
break
default:return}t.preventDefault()},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.to=function(e){var i=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"))
return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",t(this.$items[e]))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,i){var n=this.$element.find(".item.active"),o=i||n[e](),s=this.interval,r="next"==e?"left":"right",a="next"==e?"first":"last",l=this
if(!o.length){if(!this.options.wrap)return
o=this.$element.find(".item")[a]()}if(o.hasClass("active"))return this.sliding=!1
var c=o[0],d=t.Event("slide.bs.carousel",{relatedTarget:c,direction:r})
if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active")
var u=t(this.$indicators.children()[this.getItemIndex(o)])
u&&u.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:c,direction:r})
return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,n.addClass(r),o.addClass(r),n.one("bsTransitionEnd",function(){o.removeClass([e,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(600)):(n.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}}
var n=t.fn.carousel
t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(i){var n,o=t(this),s=t(o.attr("data-target")||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""))
if(s.hasClass("carousel")){var r=t.extend({},s.data(),o.data()),a=o.attr("data-slide-to")
a&&(r.interval=!1),e.call(s,r),a&&s.data("bs.carousel").to(a),i.preventDefault()}}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this)
e.call(i,i.data())})})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.collapse"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e)
!o&&s.toggle&&"show"==e&&(e=!e),o||n.data("bs.collapse",o=new i(this,s)),"string"==typeof e&&o[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()}
i.VERSION="3.2.0",i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i=t.Event("show.bs.collapse")
if(this.$element.trigger(i),!i.isDefaultPrevented()){var n=this.$parent&&this.$parent.find("> .panel > .in")
if(n&&n.length){var o=n.data("bs.collapse")
if(o&&o.transitioning)return
e.call(n,"hide"),o||n.data("bs.collapse",null)}var s=this.dimension()
this.$element.removeClass("collapse").addClass("collapsing")[s](0),this.transitioning=1
var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")}
if(!t.support.transition)return r.call(this)
var a=t.camelCase(["scroll",s].join("-"))
this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(350)[s](this.$element[0][a])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse")
if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension()
this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1
var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")}
return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(n,this)).emulateTransitionEnd(350):n.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()}
var n=t.fn.collapse
t.fn.collapse=e,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var n,o=t(this),s=o.attr("data-target")||i.preventDefault()||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),r=t(s),a=r.data("bs.collapse"),l=a?"toggle":o.data(),c=o.attr("data-parent"),d=c&&t(c)
a&&a.transitioning||(d&&d.find('[data-toggle="collapse"][data-parent="'+c+'"]').not(o).addClass("collapsed"),o[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),e.call(r,l)})}(jQuery),function(t){"use strict"
function e(e){e&&3===e.which||(t(o).remove(),t(s).each(function(){var n=i(t(this)),o={relatedTarget:this}
n.hasClass("open")&&(n.trigger(e=t.Event("hide.bs.dropdown",o)),e.isDefaultPrevented()||n.removeClass("open").trigger("hidden.bs.dropdown",o))}))}function i(e){var i=e.attr("data-target")
i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""))
var n=i&&t(i)
return n&&n.length?n:e.parent()}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown")
n||i.data("bs.dropdown",n=new r(this)),"string"==typeof e&&n[e].call(i)})}var o=".dropdown-backdrop",s='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)}
r.VERSION="3.2.0",r.prototype.toggle=function(n){var o=t(this)
if(!o.is(".disabled, :disabled")){var s=i(o),r=s.hasClass("open")
if(e(),!r){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e)
var a={relatedTarget:this}
if(s.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return
o.trigger("focus"),s.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},r.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var n=t(this)
if(e.preventDefault(),e.stopPropagation(),!n.is(".disabled, :disabled")){var o=i(n),r=o.hasClass("open")
if(!r||r&&27==e.keyCode)return 27==e.which&&o.find(s).trigger("focus"),n.trigger("click")
var a=" li:not(.divider):visible a",l=o.find('[role="menu"]'+a+', [role="listbox"]'+a)
if(l.length){var c=l.index(l.filter(":focus"))
38==e.keyCode&&c>0&&c--,40==e.keyCode&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}}
var a=t.fn.dropdown
t.fn.dropdown=n,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",s,r.prototype.toggle).on("keydown.bs.dropdown.data-api",s+', [role="menu"], [role="listbox"]',r.prototype.keydown)}(jQuery),function(t){"use strict"
function e(e,n){return this.each(function(){var o=t(this),s=o.data("bs.modal"),r=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e)
s||o.data("bs.modal",s=new i(this,r)),"string"==typeof e?s[e](n):r.show&&s.show(n)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}
i.VERSION="3.2.0",i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var i=this,n=t.Event("show.bs.modal",{relatedTarget:e})
this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var n=t.support.transition&&i.$element.hasClass("fade")
i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),n&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus()
var o=t.Event("shown.bs.modal",{relatedTarget:e})
n?i.$element.find(".modal-dialog").one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(300):i.$element.trigger("focus").trigger(o)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},i.prototype.hideModal=function(){var t=this
this.$element.hide(),this.backdrop(function(){t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var i=this,n=this.$element.hasClass("fade")?"fade":""
if(this.isShown&&this.options.backdrop){var o=t.support.transition&&n
if(this.$backdrop=t('<div class="modal-backdrop '+n+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return
o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(150):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in")
var s=function(){i.removeBackdrop(),e&&e()}
t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(150):s()}else e&&e()},i.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10)
this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth),$("header>*").css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",""),$("header>*").css("padding-right","")},i.prototype.measureScrollbar=function(){var t=document.createElement("div")
t.className="modal-scrollbar-measure",this.$body.append(t)
var e=t.offsetWidth-t.clientWidth
return this.$body[0].removeChild(t),e}
var n=t.fn.modal
t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var n=t(this),o=n.attr("href"),s=t(n.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),r=s.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},s.data(),n.data())
n.is("a")&&i.preventDefault(),s.one("show.bs.modal",function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(s,r,this)})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.tooltip"),s="object"==typeof e&&e;(o||"destroy"!=e)&&(o||n.data("bs.tooltip",o=new i(this,s)),"string"==typeof e&&o[e]())})}var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)}
i.VERSION="3.2.0",i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport)
for(var o=this.options.trigger.split(" "),s=o.length;s--;){var r=o[s]
if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this))
else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout"
this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults()
return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type)
return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show()},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type)
return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type)
if(this.hasContent()&&this.enabled){this.$element.trigger(e)
var i=t.contains(document.documentElement,this.$element[0])
if(e.isDefaultPrevented()||!i)return
var n=this,o=this.tip(),s=this.getUID(this.type)
this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade")
var r="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(r)
l&&(r=r.replace(a,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element)
var c=this.getPosition(),d=o[0].offsetWidth,u=o[0].offsetHeight
if(l){var h=r,p=this.$element.parent(),f=this.getPosition(p)
r="bottom"==r&&c.top+c.height+u-f.scroll>f.height?"top":"top"==r&&c.top-f.scroll-u<0?"bottom":"right"==r&&c.right+d>f.width?"left":"left"==r&&c.left-d<f.left?"right":r,o.removeClass(h).addClass(r)}var m=this.getCalculatedOffset(r,c,d,u)
this.applyPlacement(m,r)
var g=function(){n.$element.trigger("shown.bs."+n.type),n.hoverState=null}
t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(150):g()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),o=n[0].offsetWidth,s=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10)
isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top=e.top+r,e.left=e.left+a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in")
var l=n[0].offsetWidth,c=n[0].offsetHeight
"top"==i&&c!=s&&(e.top=e.top+s-c)
var d=this.getViewportAdjustedDelta(i,e,l,c)
d.left?e.left+=d.left:e.top+=d.top
var u=d.left?2*d.left-o+l:2*d.top-s+c,h=d.left?"left":"top",p=d.left?"offsetWidth":"offsetHeight"
n.offset(e),this.replaceArrow(u,n[0][p],h)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle()
t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(){function e(){"in"!=i.hoverState&&n.detach(),i.$element.trigger("hidden.bs."+i.type)}var i=this,n=this.tip(),o=t.Event("hide.bs."+this.type)
return this.$element.removeAttr("aria-describedby"),this.$element.trigger(o),o.isDefaultPrevented()?void 0:(n.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",e).emulateTransitionEnd(150):e(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element
var i=e[0],n="BODY"==i.tagName
return t.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():null,{scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop(),width:n?t(window).width():e.outerWidth(),height:n?t(window).height():e.outerHeight()},n?{top:0,left:0}:e.offset())},i.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,n){var o={top:0,left:0}
if(!this.$viewport)return o
var s=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport)
if(/right|left/.test(t)){var a=e.top-s-r.scroll,l=e.top+s-r.scroll+n
a<r.top?o.top=r.top-a:l>r.top+r.height&&(o.top=r.top+r.height-l)}else{var c=e.left-s,d=e.left+s+i
c<r.left?o.left=r.left-c:d>r.width&&(o.left=r.left+r.width-d)}return o},i.prototype.getTitle=function(){var t=this.$element,e=this.options
return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t))
return t},i.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this
e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)}
var n=t.fn.tooltip
t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.popover"),s="object"==typeof e&&e;(o||"destroy"!=e)&&(o||n.data("bs.popover",o=new i(this,s)),"string"==typeof e&&o[e]())})}var i=function(t,e){this.init("popover",t,e)}
if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js")
i.VERSION="3.2.0",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent()
t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").empty()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options
return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip}
var n=t.fn.popover
t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict"
function e(i,n){var o=t.proxy(this.process,this)
this.$body=t("body"),this.$scrollElement=t(t(i).is("body")?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),o=n.data("bs.scrollspy"),s="object"==typeof i&&i
o||n.data("bs.scrollspy",o=new e(this,s)),"string"==typeof i&&o[i]()})}e.VERSION="3.2.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",i=0
t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight()
var n=this
this.$body.find(this.selector).map(function(){var n=t(this),o=n.data("target")||n.attr("href"),s=/^#./.test(o)&&t(o)
return s&&s.length&&s.is(":visible")&&[[s[e]().top+i,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),o=this.offsets,s=this.targets,r=this.activeTarget
if(this.scrollHeight!=i&&this.refresh(),e>=n)return r!=(t=s[s.length-1])&&this.activate(t)
if(r&&e<=o[0])return r!=(t=s[0])&&this.activate(t)
for(t=o.length;t--;)r!=s[t]&&e>=o[t]&&(!o[t+1]||e<=o[t+1])&&this.activate(s[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")
var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active")
n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")}
var n=t.fn.scrollspy
t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this)
i.call(e,e.data())})})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.tab")
o||n.data("bs.tab",o=new i(this)),"string"==typeof e&&o[e]()})}var i=function(e){this.element=t(e)}
i.VERSION="3.2.0",i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target")
if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=i.find(".active:last a")[0],s=t.Event("show.bs.tab",{relatedTarget:o})
if(e.trigger(s),!s.isDefaultPrevented()){var r=t(n)
this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:o})})}}},i.prototype.activate=function(e,i,n){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),n&&n()}var s=i.find("> .active"),r=n&&t.support.transition&&s.hasClass("fade")
r?s.one("bsTransitionEnd",o).emulateTransitionEnd(150):o(),s.removeClass("in")}
var n=t.fn.tab
t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(i){i.preventDefault(),e.call(t(this),"show")})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.affix"),s="object"==typeof e&&e
o||n.data("bs.affix",o=new i(this,s)),"string"==typeof e&&o[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()}
i.VERSION="3.2.0",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset
this.$element.removeClass(i.RESET).addClass("affix")
var t=this.$target.scrollTop(),e=this.$element.offset()
return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=t(document).height(),n=this.$target.scrollTop(),o=this.$element.offset(),s=this.options.offset,r=s.top,a=s.bottom
"object"!=typeof s&&(a=r=s),"function"==typeof r&&(r=s.top(this.$element)),"function"==typeof a&&(a=s.bottom(this.$element))
var l=!(null!=this.unpin&&n+this.unpin<=o.top)&&(null!=a&&o.top+this.$element.height()>=e-a?"bottom":null!=r&&r>=n&&"top")
if(this.affixed!==l){null!=this.unpin&&this.$element.css("top","")
var c="affix"+(l?"-"+l:""),d=t.Event(c+".bs.affix")
this.$element.trigger(d),d.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(c).trigger(t.Event(c.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:e-this.$element.height()-a}))}}}
var n=t.fn.affix
t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data()
n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(t){return a.raw?t:encodeURIComponent(t)}function i(t){return a.raw?t:decodeURIComponent(t)}function n(t){return e(a.json?JSON.stringify(t):String(t))}function o(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"))
try{t=decodeURIComponent(t.replace(r," "))}catch(t){return}try{return a.json?JSON.parse(t):t}catch(t){}}function s(e,i){var n=a.raw?e:o(e)
return t.isFunction(i)?i(n):n}var r=/\+/g,a=t.cookie=function(o,r,l){if(void 0!==r&&!t.isFunction(r)){if(l=t.extend({},a.defaults,l),"number"==typeof l.expires){var c=l.expires,d=l.expires=new Date
d.setDate(d.getDate()+c)}return document.cookie=[e(o),"=",n(r),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var u=o?void 0:{},h=document.cookie?document.cookie.split("; "):[],p=0,f=h.length;p<f;p++){var m=h[p].split("="),g=i(m.shift()),v=m.join("=")
if(o&&o===g){u=s(v,r)
break}o||void 0===(v=s(v))||(u[g]=v)}return u}
a.defaults={},t.removeCookie=function(e,i){return void 0!==t.cookie(e)&&(t.cookie(e,"",t.extend({},i,{expires:-1})),!0)}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=global.window&&global.window.$?t(global.window.$):function(e){if(!e.$&&!e.fn)throw new Error("Tokenfield requires a window object with jQuery or a jQuery instance")
return t(e.$||e)}:t(jQuery,window)}(function(t,e){"use strict"
var i=function(i,n){var o=this
this.$element=t(i),this.textDirection=this.$element.css("direction"),this.options=t.extend(!0,{},t.fn.tokenfield.defaults,{tokens:this.$element.val()},this.$element.data(),n),this._delimiters="string"==typeof this.options.delimiter?[this.options.delimiter]:this.options.delimiter,this._triggerKeys=t.map(this._delimiters,function(t){return t.charCodeAt(0)}),this._firstDelimiter=this._delimiters[0]
var s=t.inArray(" ",this._delimiters),r=t.inArray("-",this._delimiters)
s>=0&&(this._delimiters[s]="\\s"),r>=0&&(delete this._delimiters[r],this._delimiters.unshift("-"))
var a=["\\","$","[","{","^",".","|","?","*","+","(",")"]
t.each(this._delimiters,function(e,i){t.inArray(i,a)>=0&&(o._delimiters[e]="\\"+i)})
var l,c=e&&"function"==typeof e.getMatchedCSSRules?e.getMatchedCSSRules(i):null,d=i.style.width,u=this.$element.width()
c&&t.each(c,function(t,e){e.style.width&&(l=e.style.width)})
var h="rtl"===t("body").css("direction")?"right":"left",p={position:this.$element.css("position")}
p[h]=this.$element.css(h),this.$element.data("original-styles",p).data("original-tabindex",this.$element.prop("tabindex")).css("position","absolute").css(h,"-10000px").prop("tabindex",-1),this.$wrapper=t('<div class="tokenfield form-control" />'),this.$element.hasClass("input-lg")&&this.$wrapper.addClass("input-lg"),this.$element.hasClass("input-sm")&&this.$wrapper.addClass("input-sm"),"rtl"===this.textDirection&&this.$wrapper.addClass("rtl")
var f=this.$element.prop("id")||(new Date).getTime()+""+Math.floor(100*(1+Math.random()))
this.$input=t('<input type="'+this.options.inputType+'" class="token-input" autocomplete="off" />').appendTo(this.$wrapper).prop("placeholder",this.$element.prop("placeholder")).prop("id",f+"-tokenfield").prop("tabindex",this.$element.data("original-tabindex"))
var m=t('label[for="'+this.$element.prop("id")+'"]')
if(m.length&&m.prop("for",this.$input.prop("id")),this.$copyHelper=t('<input type="text" />').css("position","absolute").css(h,"-10000px").prop("tabindex",-1).prependTo(this.$wrapper),d?this.$wrapper.css("width",d):l?this.$wrapper.css("width",l):this.$element.parents(".form-inline").length&&this.$wrapper.width(u),(this.$element.prop("disabled")||this.$element.parents("fieldset[disabled]").length)&&this.disable(),this.$element.prop("readonly")&&this.readonly(),this.$mirror=t('<span style="position:absolute; top:-999px; left:0; white-space:pre;"/>'),this.$input.css("min-width",this.options.minWidth),t.each(["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],function(t,e){o.$mirror[0].style[e]=o.$input.css(e)}),this.$mirror.appendTo("body"),this.$wrapper.insertBefore(this.$element),this.$element.prependTo(this.$wrapper),this.update(),this.setTokens(this.options.tokens,!1,!this.$element.val()&&this.options.tokens),this.listen(),!t.isEmptyObject(this.options.autocomplete)){var g="rtl"===this.textDirection?"right":"left",v=t.extend({minLength:this.options.showAutocompleteOnFocus?0:null,position:{my:g+" top",at:g+" bottom",of:this.$wrapper}},this.options.autocomplete)
this.$input.autocomplete(v)}if(!t.isEmptyObject(this.options.typeahead)){var y=this.options.typeahead,b={minLength:this.options.showAutocompleteOnFocus?0:null},w=t.isArray(y)?y:[y,y]
w[0]=t.extend({},b,w[0]),this.$input.typeahead.apply(this.$input,w),this.typeahead=!0}}
i.prototype={constructor:i,createToken:function(e,i){var n=this
if(e="string"==typeof e?{value:e,label:e}:t.extend({},e),void 0===i&&(i=!0),e.value=t.trim(e.value.toString()),e.label=e.label&&e.label.length?t.trim(e.label):e.value,!(!e.value.length||!e.label.length||e.label.length<=this.options.minLength||this.options.limit&&this.getTokens().length>=this.options.limit)){var o=t.Event("tokenfield:createtoken",{attrs:e})
if(this.$element.trigger(o),o.attrs&&!o.isDefaultPrevented()){var s=t('<div class="token" />').append('<span class="token-label" />').append('<a href="#" class="close" tabindex="-1">&times;</a>').data("attrs",e)
this.$input.hasClass("tt-input")?this.$input.parent().before(s):this.$input.before(s),this.$input.css("width",this.options.minWidth)
var r=s.find(".token-label"),a=s.find(".close")
return this.maxTokenWidth||(this.maxTokenWidth=this.$wrapper.width()-a.outerWidth()-parseInt(a.css("margin-left"),10)-parseInt(a.css("margin-right"),10)-parseInt(s.css("border-left-width"),10)-parseInt(s.css("border-right-width"),10)-parseInt(s.css("padding-left"),10)-parseInt(s.css("padding-right"),10),parseInt(r.css("border-left-width"),10),parseInt(r.css("border-right-width"),10),parseInt(r.css("padding-left"),10),parseInt(r.css("padding-right"),10),parseInt(r.css("margin-left"),10),parseInt(r.css("margin-right"),10)),r.text(e.label).css("max-width",this.maxTokenWidth),s.on("mousedown",function(){return!n._disabled&&!n._readonly&&void(n.preventDeactivation=!0)}).on("click",function(t){return!n._disabled&&!n._readonly&&(n.preventDeactivation=!1,t.ctrlKey||t.metaKey?(t.preventDefault(),n.toggle(s)):void n.activate(s,t.shiftKey,t.shiftKey))}).on("dblclick",function(){return!(n._disabled||n._readonly||!n.options.allowEditing)&&void n.edit(s)}),a.on("click",t.proxy(this.remove,this)),this.$element.trigger(t.Event("tokenfield:createdtoken",{attrs:e,relatedTarget:s.get(0)})),i&&this.$element.val(this.getTokensList()).trigger(t.Event("change",{initiator:"tokenfield"})),this.update(),this.$element.get(0)}}},setTokens:function(e,i,n){if(e){i||this.$wrapper.find(".token").remove(),void 0===n&&(n=!0),"string"==typeof e&&(e=this._delimiters.length?e.split(new RegExp("["+this._delimiters.join("")+"]")):[e])
var o=this
return t.each(e,function(t,e){o.createToken(e,n)}),this.$element.get(0)}},getTokenData:function(e){var i=e.map(function(){return t(this).data("attrs")}).get()
return 1==i.length&&(i=i[0]),i},getTokens:function(e){var i=this,n=[],o=e?".active":""
return this.$wrapper.find(".token"+o).each(function(){n.push(i.getTokenData(t(this)))}),n},getTokensList:function(e,i,n){e=e||this._firstDelimiter,i=void 0!==i&&null!==i?i:this.options.beautify
var o=e+(i&&" "!==e?" ":"")
return t.map(this.getTokens(n),function(t){return t.value}).join(o)},getInput:function(){return this.$input.val()},listen:function(){var i=this
this.$element.on("change",t.proxy(this.change,this)),this.$wrapper.on("mousedown",t.proxy(this.focusInput,this)),this.$input.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("paste",t.proxy(this.paste,this)).on("keydown",t.proxy(this.keydown,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.$copyHelper.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keydown",t.proxy(this.keydown,this)).on("keyup",t.proxy(this.keyup,this)),this.$input.on("keypress",t.proxy(this.update,this)).on("keyup",t.proxy(this.update,this)),this.$input.on("autocompletecreate",function(){var e=t(this).data("ui-autocomplete").menu.element,n=i.$wrapper.outerWidth()-parseInt(e.css("border-left-width"),10)-parseInt(e.css("border-right-width"),10)
e.css("min-width",n+"px")}).on("autocompleteselect",function(t,e){return i.createToken(e.item)&&(i.$input.val(""),i.$input.data("edit")&&i.unedit(!0)),!1}).on("typeahead:selected typeahead:autocompleted",function(t,e){i.createToken(e)&&(i.$input.typeahead("val",""),i.$input.data("edit")&&i.unedit(!0))}),t(e).on("resize",t.proxy(this.update,this))},keydown:function(e){function i(t){if(o.$input.is(document.activeElement)){if(o.$input.val().length>0)return
t+="All"
var i=o.$input.hasClass("tt-input")?o.$input.parent()[t](".token:first"):o.$input[t](".token:first")
if(!i.length)return
o.preventInputFocus=!0,o.preventDeactivation=!0,o.activate(i),e.preventDefault()}else o[t](e.shiftKey),e.preventDefault()}function n(i){if(e.shiftKey){if(o.$input.is(document.activeElement)){if(o.$input.val().length>0)return
var n=o.$input.hasClass("tt-input")?o.$input.parent()[i+"All"](".token:first"):o.$input[i+"All"](".token:first")
if(!n.length)return
o.activate(n)}var s="prev"===i?"next":"prev",r="prev"===i?"first":"last"
o.$firstActiveToken[s+"All"](".token").each(function(){o.deactivate(t(this))}),o.activate(o.$wrapper.find(".token:"+r),!0,!0),e.preventDefault()}}if(this.focused){var o=this
switch(e.keyCode){case 8:if(!this.$input.is(document.activeElement))break
this.lastInputValue=this.$input.val()
break
case 37:i("rtl"===this.textDirection?"next":"prev")
break
case 38:n("prev")
break
case 39:i("rtl"===this.textDirection?"prev":"next")
break
case 40:n("next")
break
case 65:if(this.$input.val().length>0||!e.ctrlKey&&!e.metaKey)break
this.activateAll(),e.preventDefault()
break
case 9:case 13:if(this.$input.data("ui-autocomplete")&&this.$input.data("ui-autocomplete").menu.element.find("li:has(a.ui-state-focus), li.ui-state-focus").length)break
if(this.$input.hasClass("tt-input")&&this.$wrapper.find(".tt-cursor").length)break
if(this.$input.hasClass("tt-input")&&this.$wrapper.find(".tt-hint").val()&&this.$wrapper.find(".tt-hint").val().length)break
if(this.$input.is(document.activeElement)&&this.$input.val().length||this.$input.data("edit"))return this.createTokensFromInput(e,this.$input.data("edit"))
if(13===e.keyCode){if(!this.$copyHelper.is(document.activeElement)||1!==this.$wrapper.find(".token.active").length)break
if(!o.options.allowEditing)break
this.edit(this.$wrapper.find(".token.active"))}}this.lastKeyDown=e.keyCode}},keypress:function(e){return-1!==t.inArray(e.which,this._triggerKeys)&&this.$input.is(document.activeElement)?(this.$input.val()&&this.createTokensFromInput(e),!1):void 0},keyup:function(t){if(this.preventInputFocus=!1,this.focused){switch(t.keyCode){case 8:if(this.$input.is(document.activeElement)){if(this.$input.val()&&this.$input.val().length||this.lastInputValue&&this.lastInputValue.length&&8===this.lastKeyDown)break
this.preventDeactivation=!0
var e=this.$input.hasClass("tt-input")?this.$input.parent().prevAll(".token:first"):this.$input.prevAll(".token:first")
if(!e.length)break
this.activate(e)}else this.remove(t)
break
case 46:this.remove(t,"next")}this.lastKeyUp=t.keyCode}},focus:function(){this.focused=!0,this.$wrapper.addClass("focus"),this.$input.is(document.activeElement)&&(this.$wrapper.find(".active").removeClass("active"),this.$firstActiveToken=null,this.options.showAutocompleteOnFocus&&this.search())},blur:function(t){this.focused=!1,this.$wrapper.removeClass("focus"),this.preventDeactivation||this.$element.is(document.activeElement)||(this.$wrapper.find(".active").removeClass("active"),this.$firstActiveToken=null),!this.preventCreateTokens&&(this.$input.data("edit")&&!this.$input.is(document.activeElement)||this.options.createTokensOnBlur)&&this.createTokensFromInput(t),this.preventDeactivation=!1,this.preventCreateTokens=!1},paste:function(t){var e=this
e.options.allowPasting&&setTimeout(function(){e.createTokensFromInput(t)},1)},change:function(t){"tokenfield"!==t.initiator&&this.setTokens(this.$element.val())},createTokensFromInput:function(t,e){if(!(this.$input.val().length<this.options.minLength)){var i=this.getTokensList()
return this.setTokens(this.$input.val(),!0),(i!=this.getTokensList()||!this.$input.val().length)&&(this.$input.hasClass("tt-input")?this.$input.typeahead("val",""):this.$input.val(""),this.$input.data("edit")&&this.unedit(e),!1)}},next:function(t){if(t){var e=this.$wrapper.find(".active:first")
if(!(!e||!this.$firstActiveToken)&&e.index()<this.$firstActiveToken.index())return this.deactivate(e)}var i=this.$wrapper.find(".active:last"),n=i.nextAll(".token:first")
return n.length?void this.activate(n,t):void this.$input.focus()},prev:function(t){if(t){var e=this.$wrapper.find(".active:last")
if(!(!e||!this.$firstActiveToken)&&e.index()>this.$firstActiveToken.index())return this.deactivate(e)}var i=this.$wrapper.find(".active:first"),n=i.prevAll(".token:first")
return n.length||(n=this.$wrapper.find(".token:first")),n.length||t?void this.activate(n,t):void this.$input.focus()},activate:function(e,i,n,o){if(e){if(void 0===o)var o=!0
if(n)var i=!0
if(this.$copyHelper.focus(),i||(this.$wrapper.find(".active").removeClass("active"),o?this.$firstActiveToken=e:delete this.$firstActiveToken),n&&this.$firstActiveToken){var s=this.$firstActiveToken.index()-2,r=e.index()-2,a=this
this.$wrapper.find(".token").slice(Math.min(s,r)+1,Math.max(s,r)).each(function(){a.activate(t(this),!0)})}e.addClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select()}},activateAll:function(){var e=this
this.$wrapper.find(".token").each(function(i){e.activate(t(this),0!==i,!1,!1)})},deactivate:function(t){t&&(t.removeClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select())},toggle:function(t){t&&(t.toggleClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select())},edit:function(e){if(e){var i=e.data("attrs"),n={attrs:i,relatedTarget:e.get(0)},o=t.Event("tokenfield:edittoken",n)
if(this.$element.trigger(o),!o.isDefaultPrevented()){e.find(".token-label").text(i.value)
var s=e.outerWidth(),r=this.$input.hasClass("tt-input")?this.$input.parent():this.$input
e.replaceWith(r),this.preventCreateTokens=!0,this.$input.val(i.value).select().data("edit",!0).width(s),this.update(),this.$element.trigger(t.Event("tokenfield:editedtoken",n))}}},unedit:function(t){if((this.$input.hasClass("tt-input")?this.$input.parent():this.$input).appendTo(this.$wrapper),this.$input.data("edit",!1),this.$mirror.text(""),this.update(),t){var e=this
setTimeout(function(){e.$input.focus()},1)}},remove:function(e,i){if(!(this.$input.is(document.activeElement)||this._disabled||this._readonly)){var n="click"===e.type?t(e.target).closest(".token"):this.$wrapper.find(".token.active")
if("click"!==e.type){if(!i)var i="prev"
if(this[i](),"prev"===i)var o=0===n.first().prevAll(".token:first").length}var s={attrs:this.getTokenData(n),relatedTarget:n.get(0)},r=t.Event("tokenfield:removetoken",s)
if(this.$element.trigger(r),!r.isDefaultPrevented()){var a=t.Event("tokenfield:removedtoken",s),l=t.Event("change",{initiator:"tokenfield"})
n.remove(),this.$element.val(this.getTokensList()).trigger(a).trigger(l),(!this.$wrapper.find(".token").length||"click"===e.type||o)&&this.$input.focus(),this.$input.css("width",this.options.minWidth),this.update(),e.preventDefault(),e.stopPropagation()}}},update:function(){var t=this.$input.val(),e=parseInt(this.$input.css("padding-left"),10),i=parseInt(this.$input.css("padding-right"),10),n=e+i
if(this.$input.data("edit")){if(t||(t=this.$input.prop("placeholder")),t===this.$mirror.text())return
this.$mirror.text(t)
var o=this.$mirror.width()+10
if(o>this.$wrapper.width())return this.$input.width(this.$wrapper.width())
this.$input.width(o)}else{var s="rtl"===this.textDirection?this.$input.offset().left+this.$input.outerWidth()-this.$wrapper.offset().left-parseInt(this.$wrapper.css("padding-left"),10)-n-1:this.$wrapper.offset().left+this.$wrapper.width()+parseInt(this.$wrapper.css("padding-left"),10)-this.$input.offset().left-n
isNaN(s)||"100%"==this.options.minWidth?this.$input.width("100%"):this.$input.width(s)}},focusInput:function(e){if(!(t(e.target).closest(".token").length||t(e.target).closest(".token-input").length||t(e.target).closest(".tt-dropdown-menu").length)){var i=this
setTimeout(function(){i.$input.focus()},0)}},search:function(){this.$input.data("ui-autocomplete")&&this.$input.autocomplete("search")},disable:function(){this.setProperty("disabled",!0)},enable:function(){this.setProperty("disabled",!1)},readonly:function(){this.setProperty("readonly",!0)},writeable:function(){this.setProperty("readonly",!1)},setProperty:function(t,e){this["_"+t]=e,this.$input.prop(t,e),this.$element.prop(t,e),this.$wrapper[e?"addClass":"removeClass"](t)},destroy:function(){this.$element.val(this.getTokensList()),this.$element.css(this.$element.data("original-styles")),this.$element.prop("tabindex",this.$element.data("original-tabindex"))
var e=t('label[for="'+this.$input.prop("id")+'"]')
return e.length&&e.prop("for",this.$element.prop("id")),this.$element.insertBefore(this.$wrapper),this.$element.removeData("original-styles").removeData("original-tabindex").removeData("bs.tokenfield"),this.$wrapper.remove(),this.$mirror.remove(),this.$element}}
var n=t.fn.tokenfield
return t.fn.tokenfield=function(e,n){var o,s=[]
Array.prototype.push.apply(s,arguments)
var r=this.each(function(){var r=t(this),a=r.data("bs.tokenfield"),l="object"==typeof e&&e
"string"==typeof e&&a&&a[e]?(s.shift(),o=a[e].apply(a,s)):a||"string"==typeof e||n||(r.data("bs.tokenfield",a=new i(this,l)),r.trigger("tokenfield:initialize"))})
return void 0!==o?o:r},t.fn.tokenfield.defaults={minWidth:"60px",minLength:0,allowEditing:!0,allowPasting:!0,limit:0,autocomplete:{},typeahead:{},showAutocompleteOnFocus:!1,createTokensOnBlur:!1,delimiter:",",beautify:!0,inputType:"text"},t.fn.tokenfield.Constructor=i,t.fn.tokenfield.noConflict=function(){return t.fn.tokenfield=n,this},i}),function(){"use strict"
function t(t,e){var i
for(i in e)e.hasOwnProperty(i)&&(t[i]=e[i])
return t}function e(t){if(!this||this.find!==e.prototype.find)return new e(t)
if(this.length=0,t)if("string"==typeof t&&(t=this.find(t)),t.nodeType||t===t.window)this.length=1,this[0]=t
else{var i=t.length
for(this.length=i;i;)i-=1,this[i]=t[i]}}e.extend=t,e.contains=function(t,e){do{if((e=e.parentNode)===t)return!0}while(e)
return!1},e.parseJSON=function(t){return window.JSON&&JSON.parse(t)},t(e.prototype,{find:function(t){var i=this[0]||document
return"string"==typeof t&&(t=i.querySelectorAll?i.querySelectorAll(t):"#"===t.charAt(0)?i.getElementById(t.slice(1)):i.getElementsByTagName(t)),new e(t)},hasClass:function(t){return!!this[0]&&new RegExp("(^|\\s+)"+t+"(\\s+|$)").test(this[0].className)},addClass:function(t){for(var e,i=this.length;i;){if(i-=1,e=this[i],!e.className)return e.className=t,this
if(this.hasClass(t))return this
e.className+=" "+t}return this},removeClass:function(t){for(var e,i=new RegExp("(^|\\s+)"+t+"(\\s+|$)"),n=this.length;n;)n-=1,e=this[n],e.className=e.className.replace(i," ")
return this},on:function(t,e){for(var i,n,o=t.split(/\s+/);o.length;)for(t=o.shift(),i=this.length;i;)i-=1,n=this[i],n.addEventListener?n.addEventListener(t,e,!1):n.attachEvent&&n.attachEvent("on"+t,e)
return this},off:function(t,e){for(var i,n,o=t.split(/\s+/);o.length;)for(t=o.shift(),i=this.length;i;)i-=1,n=this[i],n.removeEventListener?n.removeEventListener(t,e,!1):n.detachEvent&&n.detachEvent("on"+t,e)
return this},empty:function(){for(var t,e=this.length;e;)for(e-=1,t=this[e];t.hasChildNodes();)t.removeChild(t.lastChild)
return this},first:function(){return new e(this[0])}}),"function"==typeof define&&define.amd?define(function(){return e}):(window.blueimp=window.blueimp||{},window.blueimp.helper=e)}(),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper"],t):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=t(window.blueimp.helper||window.jQuery))}(function(t){"use strict"
function e(t,i){return void 0===document.body.style.maxHeight?null:this&&this.options===e.prototype.options?t&&t.length?(this.list=t,this.num=t.length,this.initOptions(i),void this.initialize()):void this.console.log("blueimp Gallery: No or empty list provided as first argument.",t):new e(t,i)}return t.extend(e.prototype,{options:{container:"#blueimp-gallery",slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",controlsClass:"blueimp-gallery-controls",singleClass:"blueimp-gallery-single",leftEdgeClass:"blueimp-gallery-left",rightEdgeClass:"blueimp-gallery-right",playingClass:"blueimp-gallery-playing",slideClass:"slide",slideLoadingClass:"slide-loading",slideErrorClass:"slide-error",slideContentClass:"slide-content",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",urlProperty:"href",displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,index:0,preloadRange:2,transitionSpeed:400,slideshowTransitionSpeed:void 0,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&"function"==typeof window.console.log?window.console:{log:function(){}},support:function(e){var i={touch:void 0!==window.ontouchstart||window.DocumentTouch&&document instanceof DocumentTouch},n={webkitTransition:{end:"webkitTransitionEnd",prefix:"-webkit-"},MozTransition:{end:"transitionend",prefix:"-moz-"},OTransition:{end:"otransitionend",prefix:"-o-"},transition:{end:"transitionend",prefix:""}},o=function(){var t,n,o=i.transition
document.body.appendChild(e),o&&(t=o.name.slice(0,-9)+"ransform",void 0!==e.style[t]&&(e.style[t]="translateZ(0)",n=window.getComputedStyle(e).getPropertyValue(o.prefix+"transform"),i.transform={prefix:o.prefix,name:t,translate:!0,translateZ:!!n&&"none"!==n})),void 0!==e.style.backgroundSize&&(i.backgroundSize={},e.style.backgroundSize="contain",i.backgroundSize.contain="contain"===window.getComputedStyle(e).getPropertyValue("background-size"),e.style.backgroundSize="cover",i.backgroundSize.cover="cover"===window.getComputedStyle(e).getPropertyValue("background-size")),document.body.removeChild(e)}
return function(t,i){var n
for(n in i)if(i.hasOwnProperty(n)&&void 0!==e.style[n]){t.transition=i[n],t.transition.name=n
break}}(i,n),document.body?o():t(document).on("DOMContentLoaded",o),i}(document.createElement("div")),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,initialize:function(){return this.initStartIndex(),!1!==this.initWidget()&&(this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),void(this.options.startSlideshow&&this.play()))},slide:function(t,e){window.clearTimeout(this.timeout)
var i,n,o,s=this.index
if(s!==t&&1!==this.num){if(e||(e=this.options.transitionSpeed),this.support.transform){for(this.options.continuous||(t=this.circle(t)),i=Math.abs(s-t)/(s-t),this.options.continuous&&(n=i,(i=-this.positions[this.circle(t)]/this.slideWidth)!==n&&(t=-i*this.num+t)),o=Math.abs(s-t)-1;o;)o-=1,this.move(this.circle((t>s?t:s)-o-1),this.slideWidth*i,0)
t=this.circle(t),this.move(s,this.slideWidth*i,e),this.move(t,0,e),this.options.continuous&&this.move(this.circle(t-i),-this.slideWidth*i,0)}else t=this.circle(t),this.animate(s*-this.slideWidth,t*-this.slideWidth,e)
this.onslide(t)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1)},play:function(t){var e=this
window.clearTimeout(this.timeout),this.interval=t||this.options.slideshowInterval,this.elements[this.index]>1&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(t,i){e.animationFrameId=e.requestAnimationFrame.call(window,function(){e.slide(t,i)})},[this.index+1,this.options.slideshowTransitionSpeed],this.interval)),this.container.addClass(this.options.playingClass)},pause:function(){window.clearTimeout(this.timeout),this.interval=null,this.container.removeClass(this.options.playingClass)},add:function(t){var e
for(t.concat||(t=Array.prototype.slice.call(t)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(t),this.num=this.list.length,this.num>2&&null===this.options.continuous&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),e=this.num-t.length;e<this.num;e+=1)this.addSlide(e),this.positionSlide(e)
this.positions.length=this.num,this.initSlides(!0)},resetSlides:function(){this.slidesContainer.empty(),this.slides=[]},handleClose:function(){var t=this.options
this.destroyEventListeners(),this.pause(),this.container[0].style.display="none",this.container.removeClass(t.displayClass).removeClass(t.singleClass).removeClass(t.leftEdgeClass).removeClass(t.rightEdgeClass),t.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle),this.options.clearSlides&&this.resetSlides(),this.options.onclosed&&this.options.onclosed.call(this)},close:function(){var t=this,e=function(i){i.target===t.container[0]&&(t.container.off(t.support.transition.end,e),t.handleClose())}
this.options.onclose&&this.options.onclose.call(this),this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,e),this.container.removeClass(this.options.displayClass)):this.handleClose()},circle:function(t){return(this.num+t%this.num)%this.num},move:function(t,e,i){this.translateX(t,e,i),this.positions[t]=e},translate:function(t,e,i,n){var o=this.slides[t].style,s=this.support.transition,r=this.support.transform
o[s.name+"Duration"]=n+"ms",o[r.name]="translate("+e+"px, "+i+"px)"+(r.translateZ?" translateZ(0)":"")},translateX:function(t,e,i){this.translate(t,e,0,i)},translateY:function(t,e,i){this.translate(t,0,e,i)},animate:function(t,e,i){if(!i)return void(this.slidesContainer[0].style.left=e+"px")
var n=this,o=(new Date).getTime(),s=window.setInterval(function(){var r=(new Date).getTime()-o
return r>i?(n.slidesContainer[0].style.left=e+"px",n.ontransitionend(),void window.clearInterval(s)):void(n.slidesContainer[0].style.left=(e-t)*(Math.floor(r/i*100)/100)+t+"px")},4)},preventDefault:function(t){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onmousedown:function(t){t.which&&1===t.which&&"VIDEO"!==t.target.nodeName&&(t.preventDefault(),(t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchstart(t))},onmousemove:function(t){this.touchStart&&((t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchmove(t))},onmouseup:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},onmouseout:function(e){if(this.touchStart){var i=e.target,n=e.relatedTarget;(!n||n!==i&&!t.contains(i,n))&&this.onmouseup(e)}},ontouchstart:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t)
var e=(t.originalEvent||t).touches[0]
this.touchStart={x:e.pageX,y:e.pageY,time:Date.now()},this.isScrolling=void 0,this.touchDelta={}},ontouchmove:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t)
var e,i,n=(t.originalEvent||t).touches[0],o=(t.originalEvent||t).scale,s=this.index
if(!(n.length>1||o&&1!==o))if(this.options.disableScroll&&t.preventDefault(),this.touchDelta={x:n.pageX-this.touchStart.x,y:n.pageY-this.touchStart.y},e=this.touchDelta.x,void 0===this.isScrolling&&(this.isScrolling=this.isScrolling||Math.abs(e)<Math.abs(this.touchDelta.y)),this.isScrolling)this.options.closeOnSwipeUpOrDown&&this.translateY(s,this.touchDelta.y+this.positions[s],0)
else for(t.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?i=[this.circle(s+1),s,this.circle(s-1)]:(this.touchDelta.x=e/=!s&&e>0||s===this.num-1&&0>e?Math.abs(e)/this.slideWidth+1:1,i=[s],s&&i.push(s-1),s<this.num-1&&i.unshift(s+1));i.length;)s=i.pop(),this.translateX(s,e+this.positions[s],0)},ontouchend:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t)
var e,i,n,o,s,r=this.index,a=this.options.transitionSpeed,l=this.slideWidth,c=Number(Date.now()-this.touchStart.time)<250,d=c&&this.touchDelta&&Math.abs(this.touchDelta.x)>20||this.touchDelta&&Math.abs(this.touchDelta.x)>l/2,u=!r&&this.touchDelta&&this.touchDelta.x>0||r===this.num-1&&this.touchDelta&&this.touchDelta.x<0,h=!d&&this.options.closeOnSwipeUpOrDown&&this.touchDelta&&(c&&Math.abs(this.touchDelta.y)>20||Math.abs(this.touchDelta.y)>this.slideHeight/2)
this.options.continuous&&(u=!1),e=this.touchDelta&&this.touchDelta.x<0?-1:1,this.isScrolling?h?this.close():this.translateY(r,0,a):d&&!u?(i=r+e,n=r-e,o=l*e,s=-l*e,this.options.continuous?(this.move(this.circle(i),o,0),this.move(this.circle(r-2*e),s,0)):i>=0&&i<this.num&&this.move(i,o,0),this.move(r,this.positions[r]+o,a),this.move(this.circle(n),this.positions[this.circle(n)]+o,a),r=this.circle(n),this.onslide(r)):this.options.continuous?(this.move(this.circle(r-1),-l,a),this.move(r,0,a),this.move(this.circle(r+1),l,a)):(r&&this.move(r-1,-l,a),this.move(r,0,a),r<this.num-1&&this.move(r+1,l,a))},ontouchcancel:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},ontransitionend:function(t){var e=this.slides[this.index]
t&&e!==t.target||(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,e]))},oncomplete:function(e){var i,n=e.target||e.srcElement,o=n&&n.parentNode
n&&o&&(i=this.getNodeIndex(o),t(o).removeClass(this.options.slideLoadingClass),"error"===e.type?(t(o).addClass(this.options.slideErrorClass),this.elements[i]=3):this.elements[i]=2,n.clientHeight>this.container[0].clientHeight&&(n.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===o&&this.play(),this.setTimeout(this.options.onslidecomplete,[i,o]))},onload:function(t){this.oncomplete(t)},onerror:function(t){this.oncomplete(t)},onkeydown:function(t){switch(t.which||t.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(t),this.toggleControls())
break
case 27:this.options.closeOnEscape&&this.close()
break
case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(t),this.toggleSlideshow())
break
case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.prev())
break
case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.next())}},handleClick:function(e){var i=this.options,n=e.target||e.srcElement,o=n.parentNode,s=function(e){return t(n).hasClass(e)||t(o).hasClass(e)}
s(i.toggleClass)?(this.preventDefault(e),this.toggleControls()):s(i.prevClass)?(this.preventDefault(e),this.prev()):s(i.nextClass)?(this.preventDefault(e),this.next()):s(i.closeClass)?(this.preventDefault(e),this.close()):s(i.playPauseClass)?(this.preventDefault(e),this.toggleSlideshow()):o===this.slidesContainer[0]?(this.preventDefault(e),i.closeOnSlideClick?this.close():this.toggleControls()):o.parentNode&&o.parentNode===this.slidesContainer[0]&&(this.preventDefault(e),this.toggleControls())},onclick:function(t){return this.options.emulateTouchEvents&&this.touchDelta&&this.touchDelta.x&&(Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.y)>20)?void delete this.touchDelta:this.handleClick(t)},updateEdgeClasses:function(t){t?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass),t===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass)},handleSlide:function(t){this.options.continuous||this.updateEdgeClasses(t),this.loadElements(t),this.options.unloadElements&&this.unloadElements(t),this.setTitle(t)},onslide:function(t){this.index=t,this.handleSlide(t),this.setTimeout(this.options.onslide,[t,this.slides[t]])},setTitle:function(t){var e=this.slides[t].firstChild.title,i=this.titleElement
i.length&&(this.titleElement.empty(),e&&i[0].appendChild(document.createTextNode(e)))},setTimeout:function(t,e,i){var n=this
return t&&window.setTimeout(function(){t.apply(n,e||[])},i||0)},imageFactory:function(e,i){var n,o,s,r=this,a=this.imagePrototype.cloneNode(!1),l=e,c=this.options.stretchImages,d=function(e){if(!n){if(e={type:e.type,target:o},!o.parentNode)return r.setTimeout(d,[e])
n=!0,t(a).off("load error",d),c&&"load"===e.type&&(o.style.background='url("'+l+'") center no-repeat',o.style.backgroundSize=c),i(e)}}
return"string"!=typeof l&&(l=this.getItemProperty(e,this.options.urlProperty),s=this.getItemProperty(e,this.options.titleProperty)),!0===c&&(c="contain"),c=this.support.backgroundSize&&this.support.backgroundSize[c]&&c,c?o=this.elementPrototype.cloneNode(!1):(o=a,a.draggable=!1),s&&(o.title=s),t(a).on("load error",d),a.src=l,o},createElement:function(e,i){var n=e&&this.getItemProperty(e,this.options.typeProperty),o=n&&this[n.split("/")[0]+"Factory"]||this.imageFactory,s=e&&o.call(this,e,i)
return s||(s=this.elementPrototype.cloneNode(!1),this.setTimeout(i,[{type:"error",target:s}])),t(s).addClass(this.options.slideContentClass),s},loadElement:function(e){this.elements[e]||(this.slides[e].firstChild?this.elements[e]=t(this.slides[e]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[e]=1,t(this.slides[e]).addClass(this.options.slideLoadingClass),this.slides[e].appendChild(this.createElement(this.list[e],this.proxyListener))))},loadElements:function(t){var e,i=Math.min(this.num,2*this.options.preloadRange+1),n=t
for(e=0;i>e;e+=1)n+=e*(e%2==0?-1:1),n=this.circle(n),this.loadElement(n)},unloadElements:function(t){var e,i,n
for(e in this.elements)this.elements.hasOwnProperty(e)&&(n=Math.abs(t-e))>this.options.preloadRange&&n+this.options.preloadRange<this.num&&(i=this.slides[e],i.removeChild(i.firstChild),delete this.elements[e])},addSlide:function(t){var e=this.slidePrototype.cloneNode(!1)
e.setAttribute("data-index",t),this.slidesContainer[0].appendChild(e),this.slides.push(e)},positionSlide:function(t){var e=this.slides[t]
e.style.width=this.slideWidth+"px",this.support.transform&&(e.style.left=t*-this.slideWidth+"px",this.move(t,this.index>t?-this.slideWidth:this.index<t?this.slideWidth:0,0))},initSlides:function(e){var i,n
for(e||(this.positions=[],this.positions.length=this.num,this.elements={},this.imagePrototype=document.createElement("img"),this.elementPrototype=document.createElement("div"),this.slidePrototype=document.createElement("div"),t(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,i=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].offsetWidth,this.slideHeight=this.container[0].offsetHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+"px",i&&this.resetSlides(),n=0;n<this.num;n+=1)i&&this.addSlide(n),this.positionSlide(n)
this.options.continuous&&this.support.transform&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0)),this.support.transform||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+"px")},toggleControls:function(){var t=this.options.controlsClass
this.container.hasClass(t)?this.container.removeClass(t):this.container.addClass(t)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(t){return parseInt(t.getAttribute("data-index"),10)},getNestedProperty:function(t,e){return e.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(e,i,n,o,s){var r=s||i||n||o&&parseInt(o,10)
e&&t&&(t=t[r])}),t},getDataProperty:function(e,i){if(e.getAttribute){var n=e.getAttribute("data-"+i.replace(/([A-Z])/g,"-$1").toLowerCase())
if("string"==typeof n){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(n))try{return t.parseJSON(n)}catch(t){}return n}}},getItemProperty:function(t,e){var i=t[e]
return void 0===i&&void 0===(i=this.getDataProperty(t,e))&&(i=this.getNestedProperty(t,e)),i},initStartIndex:function(){var t,e=this.options.index,i=this.options.urlProperty
if(e&&"number"!=typeof e)for(t=0;t<this.num;t+=1)if(this.list[t]===e||this.getItemProperty(this.list[t],i)===this.getItemProperty(e,i)){e=t
break}this.index=this.circle(parseInt(e,10)||0)},initEventListeners:function(){var e=this,i=this.slidesContainer,n=function(t){var i=e.support.transition&&e.support.transition.end===t.type?"transitionend":t.type
e["on"+i]&&e["on"+i](t)}
t(window).on("resize",n),t(document.body).on("keydown",n),this.container.on("click",n),this.support.touch?i.on("touchstart touchmove touchend touchcancel",n):this.options.emulateTouchEvents&&this.support.transition&&i.on("mousedown mousemove mouseup mouseout",n),this.support.transition&&i.on(this.support.transition.end,n),this.proxyListener=n},destroyEventListeners:function(){var e=this.slidesContainer,i=this.proxyListener
t(window).off("resize",i),t(document.body).off("keydown",i),this.container.off("click",i),this.support.touch?e.off("touchstart touchmove touchend touchcancel",i):this.options.emulateTouchEvents&&this.support.transition&&e.off("mousedown mousemove mouseup mouseout",i),this.support.transition&&e.off(this.support.transition.end,i)},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this)},initWidget:function(){var e=this,i=function(t){t.target===e.container[0]&&(e.container.off(e.support.transition.end,i),e.handleOpen())}
return this.container=t(this.options.container),this.container.length?(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),this.slidesContainer.length?(this.titleElement=this.container.find(this.options.titleElement).first(),1===this.num&&this.container.addClass(this.options.singleClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,i):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflow,document.body.style.overflow="hidden"),this.container[0].style.display="block",this.initSlides(),void this.container.addClass(this.options.displayClass)):(this.console.log("blueimp Gallery: Slides container not found.",this.options.slidesContainer),!1)):(this.console.log("blueimp Gallery: Widget container not found.",this.options.container),!1)},initOptions:function(e){this.options=t.extend({},this.options),(e&&e.carousel||this.options.carousel&&(!e||!1!==e.carousel))&&t.extend(this.options,this.carouselOptions),t.extend(this.options,e),this.num<3&&(this.options.continuous=!!this.options.continuous&&null),this.support.transition||(this.options.emulateTouchEvents=!1),this.options.event&&this.preventDefault(this.options.event)}}),e}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict"
t.extend(e.prototype.options,{fullScreen:!1})
var i=e.prototype.initialize,n=e.prototype.close
return t.extend(e.prototype,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){i.call(this),this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen(),n.call(this)}}),e}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict"
t.extend(e.prototype.options,{indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0})
var i=e.prototype.initSlides,n=e.prototype.addSlide,o=e.prototype.resetSlides,s=e.prototype.handleClick,r=e.prototype.handleSlide,a=e.prototype.handleClose
return t.extend(e.prototype,{createIndicator:function(e){var i,n,o=this.indicatorPrototype.cloneNode(!1),s=this.getItemProperty(e,this.options.titleProperty),r=this.options.thumbnailProperty
return this.options.thumbnailIndicators&&(n=e.getElementsByTagName&&t(e).find("img")[0],n?i=n.src:r&&(i=this.getItemProperty(e,r)),i&&(o.style.backgroundImage='url("'+i+'")')),s&&(o.title=s),o},addIndicator:function(t){if(this.indicatorContainer.length){var e=this.createIndicator(this.list[t])
e.setAttribute("data-index",t),this.indicatorContainer[0].appendChild(e),this.indicators.push(e)}},setActiveIndicator:function(e){this.indicators&&(this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),this.activeIndicator=t(this.indicators[e]),this.activeIndicator.addClass(this.options.activeIndicatorClass))},initSlides:function(t){t||(this.indicatorContainer=this.container.find(this.options.indicatorContainer),this.indicatorContainer.length&&(this.indicatorPrototype=document.createElement("li"),this.indicators=this.indicatorContainer[0].children)),i.call(this,t)},addSlide:function(t){n.call(this,t),this.addIndicator(t)},resetSlides:function(){o.call(this),this.indicatorContainer.empty(),this.indicators=[]},handleClick:function(t){var e=t.target||t.srcElement,i=e.parentNode
if(i===this.indicatorContainer[0])this.preventDefault(t),this.slide(this.getNodeIndex(e))
else{if(i.parentNode!==this.indicatorContainer[0])return s.call(this,t)
this.preventDefault(t),this.slide(this.getNodeIndex(i))}},handleSlide:function(t){r.call(this,t),this.setActiveIndicator(t)},handleClose:function(){this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),a.call(this)}}),e}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict"
t.extend(e.prototype.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoPosterProperty:"poster",videoSourcesProperty:"sources"})
var i=e.prototype.handleSlide
return t.extend(e.prototype,{handleSlide:function(t){i.call(this,t),this.playingVideo&&this.playingVideo.pause()},videoFactory:function(e,i,n){var o,s,r,a,l,c=this,d=this.options,u=this.elementPrototype.cloneNode(!1),h=t(u),p=[{type:"error",target:u}],f=n||document.createElement("video"),m=this.getItemProperty(e,d.urlProperty),g=this.getItemProperty(e,d.typeProperty),v=this.getItemProperty(e,d.titleProperty),y=this.getItemProperty(e,d.videoPosterProperty),b=this.getItemProperty(e,d.videoSourcesProperty)
if(f.preload="metadata",h.addClass(d.videoContentClass),v&&(u.title=v),f.canPlayType)if(m&&g&&f.canPlayType(g))f.src=m
else for(;b&&b.length;)if(s=b.shift(),m=this.getItemProperty(s,d.urlProperty),g=this.getItemProperty(s,d.typeProperty),m&&g&&f.canPlayType(g)){f.src=m
break}return y&&(f.poster=y,o=this.imagePrototype.cloneNode(!1),t(o).addClass(d.toggleClass),o.src=y,o.draggable=!1,u.appendChild(o)),r=document.createElement("a"),r.setAttribute("target","_blank"),n||r.setAttribute("download",v),r.href=m,f.src&&(f.controls=!0,(n||t(f)).on("error",function(){c.setTimeout(i,p)}).on("pause",function(){a=!1,h.removeClass(c.options.videoLoadingClass).removeClass(c.options.videoPlayingClass),l&&c.container.addClass(c.options.controlsClass),delete c.playingVideo,c.interval&&c.play()}).on("playing",function(){a=!1,h.removeClass(c.options.videoLoadingClass).addClass(c.options.videoPlayingClass),c.container.hasClass(c.options.controlsClass)?(l=!0,c.container.removeClass(c.options.controlsClass)):l=!1}).on("play",function(){window.clearTimeout(c.timeout),a=!0,h.addClass(c.options.videoLoadingClass),c.playingVideo=f}),t(r).on("click",function(t){c.preventDefault(t),a?f.pause():f.play()}),u.appendChild(n&&n.element||f)),u.appendChild(r),this.setTimeout(i,[{type:"load",target:u}]),u}}),e}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict"
if(!window.postMessage)return e
t.extend(e.prototype.options,{vimeoVideoIdProperty:"vimeo",vimeoPlayerUrl:"//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID",vimeoPlayerIdPrefix:"vimeo-player-",vimeoClickToPlay:!0})
var i=e.prototype.textFactory||e.prototype.imageFactory,n=function(t,e,i,n){this.url=t,this.videoId=e,this.playerId=i,this.clickToPlay=n,this.element=document.createElement("div"),this.listeners={}},o=0
return t.extend(n.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){for(var e,i,n=this,o="//"+("https"===location.protocol?"secure-":"")+"a.vimeocdn.com/js/froogaloop2.min.js",s=document.getElementsByTagName("script"),r=s.length,a=function(){!i&&n.playOnReady&&n.play(),i=!0};r;)if(r-=1,s[r].src===o){e=s[r]
break}e||(e=document.createElement("script"),e.src=o),t(e).on("load",a),s[0].parentNode.insertBefore(e,s[0]),/loaded|complete/.test(e.readyState)&&a()},onReady:function(){var t=this
this.ready=!0,this.player.addEvent("play",function(){t.hasPlayed=!0,t.onPlaying()}),this.player.addEvent("pause",function(){t.onPause()}),this.player.addEvent("finish",function(){t.onPause()}),this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause(),delete this.playStatus},insertIframe:function(){var t=document.createElement("iframe")
t.src=this.url.replace("VIDEO_ID",this.videoId).replace("PLAYER_ID",this.playerId),t.id=this.playerId,this.element.parentNode.replaceChild(t,this.element),this.element=t},play:function(){var t=this
this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api("play"):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent("ready",function(){t.onReady()})):this.loadAPI())},pause:function(){this.ready?this.player.api("pause"):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{VimeoPlayer:n,textFactory:function(t,e){var s=this.options,r=this.getItemProperty(t,s.vimeoVideoIdProperty)
return r?(void 0===this.getItemProperty(t,s.urlProperty)&&(t[s.urlProperty]="//vimeo.com/"+r),o+=1,this.videoFactory(t,e,new n(s.vimeoPlayerUrl,r,s.vimeoPlayerIdPrefix+o,s.vimeoClickToPlay))):i.call(this,t,e)}}),e}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict"
if(!window.postMessage)return e
t.extend(e.prototype.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!0})
var i=e.prototype.textFactory||e.prototype.imageFactory,n=function(t,e,i){this.videoId=t,this.playerVars=e,this.clickToPlay=i,this.element=document.createElement("div"),this.listeners={}}
return t.extend(n.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){var t,e=this,i=window.onYouTubeIframeAPIReady,n="//www.youtube.com/iframe_api",o=document.getElementsByTagName("script"),s=o.length
for(window.onYouTubeIframeAPIReady=function(){i&&i.apply(this),e.playOnReady&&e.play()};s;)if(s-=1,o[s].src===n)return
t=document.createElement("script"),t.src=n,o[0].parentNode.insertBefore(t,o[0])},onReady:function(){this.ready=!0,this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){e.prototype.setTimeout.call(this,this.checkSeek,null,2e3)},checkSeek:function(){(this.stateChange===YT.PlayerState.PAUSED||this.stateChange===YT.PlayerState.ENDED)&&(this.listeners.pause(),delete this.playStatus)},onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0,this.onPlaying()
break
case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause()}this.stateChange=t.data},onError:function(t){this.listeners.error(t)},play:function(){var t=this
this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){t.onReady()},onStateChange:function(e){t.onStateChange(e)},onError:function(e){t.onError(e)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{YouTubePlayer:n,textFactory:function(t,e){var o=this.options,s=this.getItemProperty(t,o.youTubeVideoIdProperty)
return s?(void 0===this.getItemProperty(t,o.urlProperty)&&(t[o.urlProperty]="//www.youtube.com/watch?v="+s),void 0===this.getItemProperty(t,o.videoPosterProperty)&&(t[o.videoPosterProperty]="//img.youtube.com/vi/"+s+"/maxresdefault.jpg"),this.videoFactory(t,e,new n(s,o.youTubePlayerVars,o.youTubeClickToPlay))):i.call(this,t,e)}}),e}),function(t,e){if("function"==typeof define&&define.amd)define(["module","exports"],e)
else if("undefined"!=typeof exports)e(module,exports)
else{var i={exports:{}}
e(i,i.exports),t.autosize=i.exports}}(this,function(t,e){"use strict"
function i(t){function e(e){var i=t.style.width
t.style.width="0px",t.offsetWidth,t.style.width=i,t.style.overflowY=e}function i(){if(0!==t.scrollHeight){var e=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode
return e}(t),i=document.documentElement&&document.documentElement.scrollTop
t.style.height="",t.style.height=t.scrollHeight+s+"px",r=t.clientWidth,e.forEach(function(t){t.node.scrollTop=t.scrollTop}),i&&(document.documentElement.scrollTop=i)}}function n(){i()
var n=Math.round(parseFloat(t.style.height)),o=window.getComputedStyle(t,null),s="content-box"===o.boxSizing?Math.round(parseFloat(o.height)):t.offsetHeight
if(s<n?"hidden"===o.overflowY&&(e("scroll"),i(),s="content-box"===o.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==o.overflowY&&(e("hidden"),i(),s="content-box"===o.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),c!==s){c=s
var r=l("autosize:resized")
try{t.dispatchEvent(r)}catch(n){}}}if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!a.has(t)){var o,s=null,r=null,c=null,d=function(){t.clientWidth!==r&&n()},u=function(e){window.removeEventListener("resize",d,!1),t.removeEventListener("input",n,!1),t.removeEventListener("keyup",n,!1),t.removeEventListener("autosize:destroy",u,!1),t.removeEventListener("autosize:update",n,!1),Object.keys(e).forEach(function(i){t.style[i]=e[i]}),a.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap})
t.addEventListener("autosize:destroy",u,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",n,!1),window.addEventListener("resize",d,!1),t.addEventListener("input",n,!1),t.addEventListener("autosize:update",n,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",a.set(t,{destroy:u,update:n}),"vertical"===(o=window.getComputedStyle(t,null)).resize?t.style.resize="none":"both"===o.resize&&(t.style.resize="horizontal"),s="content-box"===o.boxSizing?-(parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)):parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),isNaN(s)&&(s=0),n()}}function n(t){var e=a.get(t)
e&&e.destroy()}function o(t){var e=a.get(t)
e&&e.update()}var s,r,a="function"==typeof Map?new Map:(s=[],r=[],{has:function(t){return-1<s.indexOf(t)},get:function(t){return r[s.indexOf(t)]},set:function(t,e){-1===s.indexOf(t)&&(s.push(t),r.push(e))},delete:function(t){var e=s.indexOf(t);-1<e&&(s.splice(e,1),r.splice(e,1))}}),l=function(t){return new Event(t,{bubbles:!0})}
try{new Event("test")}catch(t){l=function(t){var e=document.createEvent("Event")
return e.initEvent(t,!0,!1),e}}var c=null
"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(t){return t}).destroy=function(t){return t},c.update=function(t){return t}):((c=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return i(t)}),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],n),t},c.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],o),t}),e.default=c,t.exports=e.default}),jQuery.fn.bsmodal=jQuery.fn.modal.noConflict(),$.ajaxSetup({type:"POST",timeout:15e3,converters:{"text json":function(t){var e={}
if(t)try{e=JSON.parse(t)}catch(t){e={error:_gText.error}}return e}}}),jQuery._ajax=function(t){return t.error=t.error||function(){$.alrt(_gText.error,"error")},t.wss?(t.data.wssID=Date.now(),wss._ajax[t.data.wssID]=t.success,void wss.send(t.data)):!loader()&&(t.complete=t.complete||killloader,$.ajax(t))},jQuery.helper={decodeURI:function(t){try{t=decodeURIComponent(t)}catch(t){}return t}},jQuery.alrt=function(t,e,i){function n(){this&&($(this).addClass("gone").parent(".modal-backdrop.for-dialog").remove(),function(t){setTimeout(function(){t.remove()},225)}($(this)))}function o(){c.height()>.7*d&&(n.apply(c.find(".alert:not(.alert-dismiss):first")),setTimeout(o,500))}function s(t){r=$('<div class="alert alert-'+(e||"default")+' matShadow gone" role="alert">'+t+"</div>"),function(t){setTimeout(function(){t.removeClass("gone")},10)}(r)}var r,e=e||"",i=i||{}
if("dialog"==e)$.when(function(){return i.ajax?$._ajax({url:i.ajax,data:i.ajaxData}):t}()).then(function(t){s(t),i.buttonYes=i.buttonYes||{}
var e=$('<button type="button" class="btn btn-material">'+_gText.skas+"</button>"),o=$(i.hideYes?"":'<button type="button" class="btn btn-material btn-'+(i.buttonYes.type?i.buttonYes.type:"delete")+'"><span class="glyphicon glyphicon-'+(i.buttonYes.icon?i.buttonYes.icon:"trash")+'"></span> '+(i.buttonYes.text?i.buttonYes.text:_gText.del)+"</button>"),a=$(".modal:visible");(a.length?a:$("body")).find(".modal-backdrop.for-dialog").remove().end().append(r),r.addClass("modal-content color-grey").wrap('<div class="modal-backdrop for-dialog fade in"></div>'),r.append("<div>",o,e,"</div>"),e.one("click",function(){"function"==typeof i.callbackNo&&i.callbackNo(),n.apply(r)}),o.one("click",function(){"function"==typeof i.callbackYes&&i.callbackYes(),n.apply(r)})})
else{s(t)
var a,l="",c=$(".alerts-box"),d=$(window).height(),u=r
switch(e){case"error":l="exclamation-sign"
break
case"warn":l="alert"
break
case"success":l="check"}if(l&&r.prepend('<span class="glyphicon glyphicon-'+l+'"></span> '),i.dismissible){if(c.find(".alert-dismiss").length)return
if(u=$('<button type="button" class="close"><span aria-hidden="true">&times;</span></button>'),void 0!==i.dismissible.timesToShow){var h=r.text().hashCode(),p=sstorage("alrt_"+h)||0,f=0===i.dismissible.timesToShow
if(f){if(p)return}else{if(p&&p<i.dismissible.timesToShow)return void sstorage("alrt_"+h,++p)
p=0,sstorage("alrt_"+h,++p)}}r.addClass("alert-dismiss").prepend(u),u=u.add(r.find(".btn-add")),f&&u.click(function(){sstorage("alrt_"+h,"1")})}else if(!i.eternal){var m=70*t.length
a=setTimeout(n.bind(r),m<4e3?4e3:m)}r.addClass("alert-message"),u.click(function(){n.apply(r),clearTimeout(a)}),c.append(r),o()}}
var commentsObj={init:function(){var t=$(this),e=t.parents(".comment"),i={p:"comment",var1:$(this).data("var1"),descr:$(this).data("descr"),city:$(this).data("city"),category:$(this).data("cat"),edit:$(this).data("edit")},n=$("#comment_form_"+i.var1+i.descr),o=$("#comment_"+i.var1+i.descr),s=n.clone(),r=s.find(".fileUploadContainer .img-container"),a=s.find("textarea")
i.var1&&i.descr&&(i.category&&t.removeAttr("data-comment"),i.edit?$._ajax({data:i,wss:!0,success:function(t){t&&(a.val(t.text),r.html(t.foto),s.find('input[name="city"]').val(i.city),s.find('input[name="edit_attr"]').val(i.edit),delete i.edit,e.html(s),commentsObj.commInit(e,i,n,o,s,a,r))}}):(e.length?t.after(s):n.addClass("hidden").after(s),commentsObj.commInit(e,i,n,o,s,a,r)))},commInit:function(t,e,i,n,o,s,r){o.attr("id","comment").removeAttr("data-comment").removeClass("hidden").addClass("init"),s.removeClass("comment-root"),s.focus(),lazyLoad(),o.addF({noTrackChanges:!0,wss:!0,nosendMessage:!0,storagePrefix:"_"+e.var1+e.descr+"_"+e.category,init:function(){commentsObj.textAreaInit(s)},callback:function(r){r.responce.withFile&&wss.send({p:"comment",var1:r.responce.var1,prm:r.responce.codeID,descr:e.descr,fileShow:!0}),r.wasSave&&n.trigger("reloadContent"),commentsObj.emojiUse(s.val()),t.length||(i.removeClass("hidden"),o.remove())},afterAdd:function(i){if(n.length){var o=!1
if(e.category){if(t.length&&t.index()===n.find(".comment").length-1){var s=n.find("ul.pagination")
if(s.length){var r=s.find("a.selected")
r.parents("li").index()!==s.find("li").length-1&&(o=r.text(),$(window).scrollTop(n.offset().top-50))}}}else o="0"
if(o){var a=n.data("set")
a&&a.data&&(a.data[e.var1+e.descr+"edPG"]=o)}}},beforeSave:function(t){return t.withFile=!r.is(":empty"),(s.val().trim()||t.withFile)&&!loader()},send:e}),autosize.update(s),gtag("event","Modal",{event_category:"comment",event_label:"open"})},textAreaInit:function(t){var e=["😀","😄","🤭","😁","😆","😅","😂","🤣","😊","😇","😉","😏","😍","🤩","😚","😘","🥰","😋","😝","😜","🤗","😎","😬","🙃","😒","😖","😤","😡","😞","😔","😩","😢","😭","🤔","🙄","😮","😲","😵","😱","😴","🤐","😷","🤒","🤑","😈","🙈","😻","💩","👋","👍","👎","👈","👉","👇","☝️","💪","👌","👏","🙏","☝️","✌️","🙌","✋","👊","👀","🤦","🤷","🙋","💃","🏃","💋","❤️","💘","💕","💔","🎉","🎁","🎂","💐","🌹","🌸","🌷","🌻","🍀","✨","🔥","⭐","💥","☀️","🌛","🌈","🏆","👑","🎯","⛔️","💯","✅","✔️","❓","❗️","🆘"],i=$('<div class="smile-mess"><div data-toggle="dropdown" class="dropdown-toggle img-smile position-auto position-height bg-svg"></div><div class="dropdown-menu pull-right"><div><div class="used">'+commentsObj.emojiUseUpdate()+"</div>"+e.map(function(t){return"<span>"+t+"</span>"}).join("")+"</div></div></div>")
autosize(t),i.find(".img-smile").mouseup(function(){t.focus()}),i.on("click",".dropdown-menu > div span",function(e){if(e.stopPropagation(),t[0].setRangeText){var i=$(this).text()
t[0].setRangeText(i),t[0].selectionStart=t[0].selectionStart+i.length}else t.val(t.val()+$(this).text())
t.focus(),autosize.update(t)}),t.parents("form").find('button[type="submit"]').before(i)},emojiUse:function(t){if(t&&RegExp.prototype.hasOwnProperty("unicode")){var e
try{(e=t.match(new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{Emoji_Modifier}+|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})","gu")))&&(lstorage("emoji",e.concat((lstorage("emoji")||"").split(",")).filter(function(t,e,i){return t&&i.indexOf(t)==e}).slice(0,13).join(",")),$(".smile-mess .used").html(commentsObj.emojiUseUpdate()))}catch(t){}}},emojiUseUpdate:function(){return lstorage("emoji")?lstorage("emoji").split(",").map(function(t){return"<span>"+t+"</span>"}).join(""):""},publickMess:function(t){var e=$(t).closest(".modal-content"),i=(e.length?e:$("article")).find(".comment-form:visible:first")
$(e.length?e:document).scrollTop(i.offset().top-150),i.addClass("highlight").click().find("textarea").focus()}},addJsFile={fileupload:function(t){void 0===_gVar.flagFileUpload?($(".fileUploadContainer .modal-backdrop.formap").removeClass("hide"),$.ajax({url:"/style/js/fileupload.js",dataType:"script",cache:!0,success:function(){$(".fileUploadContainer .modal-backdrop.formap").addClass("hide"),_gVar.flagFileUpload=!0,t()}})):t()}}
jQuery.fn.fileLoad=function(t){function e(t,e){$.alrt(t,"error"),e.customErrorThrown=t,e.abort()}function i(e,i,o){if(loader())return!1
var s=i.closest(".item"),a=s.attr("data-number"),l=i.closest("form")
if(e.identF=r.attr("name"),l.length&&(e.city=l.find(':hidden[name="city"]').val()||""),i.hasClass("rotate"))e.rotate=a,e.direction=i.attr("data-rotate")
else if(i.hasClass("btn-remove"))e.delete_img=a
else if(i.hasClass("img-desc-save"))e.descrNUM=a,e.descrText=s.find("textarea").val()
else if(i.hasClass("make-main"))e.makemain=a
else{if(!i.hasClass("wrng-nsfw"))return killloader(),!1
e.nsfw=a}$.ajax({url:r.attr("data-alturl"),data:e,error:function(t,e){killloader(),$.alrt(_gText.error,"error")},success:function(e){killloader(),t.formSetting.flagEdit=!0,o(s,e),void 0!==t.del&&t.del(),n()}}),delete e.descrNUM,delete e.descrText,delete e.identF,delete e.rotate,delete e.direction,delete e.delete_img,delete e.makemain,delete e.city,delete e.nsfw}function n(){l.find(".make-main.hide").removeClass("hide"),l.find(".make-main:first").addClass("hide")}function o(t){t.remove(),c--,s()}function s(){var t=c>=d
u.toggleClass("hide",t),a.find(".manage-cont").toggleClass("ishide",t).find(".file-count").text(c?" ("+c+" "+_gText.fromt+" "+d+")":""),a.find(":file").trigger("fileChange",c)}if("add"!=t){var r=$(this),a=r.closest(".fileUploadContainer"),l=a.find(".img-container"),c=l.find(".item[data-number]").length,d=r.attr("multiple")?r.attr("data-maxfile")?r.attr("data-maxfile"):10:1,u=r.data("addbutton")?a.parent().find(r.data("addbutton")).removeClass("hide"):a.find(".item.adder"),h=($("body"),void 0!==t.formSetting.autoUpload?t.formSetting.autoUpload:!r.attr("data-autoupload"))
u.click(function(){a.find(":file").click()}),a.on("click",".img-desc-save",function(e){i(t.send,$(this),function(t){$.alrt(_gText.saved,"success")})}).on("click",".btn-remove",function(){var e=$(this),n=e.closest(".item"),s=n.attr("data-id")
void 0!==s&&t.line[s]?(t.line[s].abort(),$("#"+$(this).attr("aria-describedby")).remove()):$.alrt(_gText.del+"?","dialog",{callbackYes:function(){i(t.send,e,function(t,e){"error"==e?$.alrt(_gText.error,"error"):o(t)}),gtag("event","File",{event_category:"delete"})}})}).on("click",".wrng-nsfw",function(){var e=$(this)
$.alrt("Wrong NSFW image?","dialog",{callbackYes:function(){i(t.send,e,function(t,e){"error"==e&&$.alrt(_gText.error,"error")})}})}).on("click",".rotate",function(){i(t.send,$(this),function(t){var e=t.find("img.img-cover")
e.attr("src",e.parent().attr("data-url")+"?"+Math.random())})}).on("click",".make-main",function(){i(t.send,$(this),function(t,e){if("success"==e){var i=l.find(".item.adder")
i.length?i.after(t.clone(!0,!0)):l.prepend(t.clone(!0,!0)),t.remove()}else $.alrt(_gText.error,"error")})}),t.add=function(e){if(h)void 0===t.done||t.lineCount||t.done()
else{if(t.lineCount)for(var i in t.line)t.line[i].formData=e,t.line[i].submit()
else void 0!==t.done&&t.done()
a.find(".btn-group:not(.ready)").addClass("hide")}},r.fileupload({formData:t.send,previewMaxWidth:100,previewMaxHeight:100,previewCrop:!0,pasteZone:null,dropZone:d>1&&!r.data("nodrop")?$(t.dropArea||"body"):null,autoUpload:h,dataType:"json",disableImageResize:/Android(?!.*Chrome)|Opera/.test(window.navigator.userAgent),imageMaxWidth:800,imageMaxHeight:800,sequentialUploads:!0,xhrFields:{withCredentials:!0},done:function(e,i){var s=(i.files[0].name+i.files[0].size).hashCode(),r=a.find('.item[data-id="'+s+'"]')
i.result.data?(r.after($(i.result.data)),r.remove(),gtag("event","File",{event_category:"add"})):(gtag("event","File",{event_category:"error",event_label:i.result.error}),$.alrt(_gText.fileErr+" "+i.files[0].name+". "+(i.result.error||""),"error"),o(r)),n(),delete t.line[s],--t.lineCount||void 0===t.done||t.done()}}).on("fileuploadadd",function(i,n){t.lineCount++,n.index=(n.files[0].name+n.files[0].size).hashCode(),n.files[0].size>15e6?e(_gText.sizeMax+" 15Mb ["+n.files[0].name+"]",n):c>=d?e(_gText.fileMax,n):"image/*,.heic"!=r.attr("accept")||/\.(gif|jpg|jpeg|png|webp|heic|bmp)$/i.test(n.files[0].name)?t.line[n.index]?n.abort():(h!=t.formSetting.autoUpload&&($(this).fileupload("option","autoUpload",!0),h=t.formSetting.autoUpload,t.send.prm=h,$(this).fileupload("option","formData",t.send)),h&&(loader(),t.formSetting.flagEdit=!0),c++,s()):e(_gText.fileType+"  ["+n.files[0].name+"]",n)}).on("fileuploadprogress",function(t,e){a.find('.item[data-id="'+(e.files[0].name+e.files[0].size).hashCode()+'"]').find(".progress-bar").css({width:parseInt(e.loaded/e.total*100,10)+"%"})}).on("fileuploadprocessalways",function(e,i){i.index=(i.files[0].name+i.files[0].size).hashCode(),i.el=$('<div data-id="'+i.index+'" class="item matShadow"></div>'),l.length?l.append(i.el):a.append(i.el),t.line[i.index]=i,i.el.append('<div class="progress"><div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" style="width:0%"></div></div>'),t.formSetting.autoUpload||i.el.prepend('<div class="btn-group ready"><div class="btn btn-default btn-xs btn-remove"><span class="glyphicon glyphicon-trash"></span></div></div>'),i.el.prepend(i.files[0].preview?i.files[0].preview:'<div class="img-cover"><div class="filetype ellips"><span class="glyphicon glyphicon-file"></span> '+(i.files[0].name?i.files[0].name.match(/[^\.]+$/i)[0]+"</div>"+i.files[0].name:"</div>")+"</div>")}).on("fileuploadsubmit",function(e,i){t.send.city=a.parents("form").find(':hidden[name="city"]').val()||"",i.formData=t.send}).on("fileuploadfail",function(e,i){var s=(i.files[0].name+i.files[0].size).hashCode(),r=a.find('.item[data-id="'+s+'"]')
r.length&&(o(r),h&&$.alrt(_gText.fileErr+" "+i.files[0].name,"error")),t.formSetting.autoUpload&&n(),delete t.line[s],t.lineCount--,!t.lineCount&&void 0!==t.done&&t.formSetting.autoUpload&&t.done(),gtag("event","File",{event_category:"fail",event_label:i.customErrorThrown||i.errorThrown})}).on("resetCount",function(){c=0,l.html("")}),s(),n()}}
var siteFilters={coreLocation:_gVar.coreLocation,isOneRow:!1,data:{withfilter:1},init:function(t){var e=this,i={}
e.conparnt=$(".selectT1"),e.container=e.conparnt.find(".filter-container"),e.isOneRow=e.container.hasClass("oneRow"),e.container.length&&(e.container.find(".dropdown .dropdown-cat").fcategory(),$("*[data-unset]").click(function(t){var i=$(this).data("unset"),n=$(this).data("href"),o=$(this).data("unsetkey")
if(e.data.unsetname=i,i&&_gVar.filter)if("all"==i){var s=_gVar.filter.sort
delete _gVar.filter,s&&Array.isArray(s)&&(_gVar.filter={sort:s}),_gVar.set&&_gVar.set.f&&_gVar.set.f[_gVar.page]&&(_gVar.filter?_gVar.set.f[_gVar.page]=_gVar.filter:delete _gVar.set.f[_gVar.page],siteSetting._set()),e.coreLocation=_gVar.rootLocation}else if(n)e.coreLocation=n
else if(o){if(_gVar.filter[i]){var r=_gVar.filter[i].indexOf(o);-1!==r&&(_gVar.filter[i].splice(r,1),jQuery.isEmptyObject(_gVar.filter[i])&&delete _gVar.filter[i])}}else{i=i.split(","),e.data.unsetname=i[0]
for(var a=i.length-1;a>=0;a--)delete _gVar.filter[i[a]]}e.createUrl(),delete e.data.unsetname}),e.container.find(".dropdown-toggle.with-input-select input").change(function(t){var e=$(this),i=parseInt(e.val()),n=e.next(":radio"),o=e.parent();(i<parseInt(e.attr("min"))||i>parseInt(e.attr("max")))&&(e.val(""),i=""),n.val(i||"").prop("checked",!0),setTimeout(function(){o.find("input:focus").not(e).length?o.one("focusout",function(t){n.trigger("change")}):n.trigger("change")},300)}).on("keypress",function(t){t.stopPropagation(),13==t.which&&$(this).trigger("change")}).on("click",function(t){$(this).closest(".dropdown").removeClass("open"),t.stopPropagation()}),e.container.find(".dropdown").on("shown.bs.dropdown",function(){e.container.find(".close-on-hover.butsearchresult").removeClass("close-on-hover").end().find("li.searchresult").addClass("hide")}),e.conparnt.find("#allfilter").on("click",function(t){t.stopPropagation(),$(this).parent().removeClass("expand")}),e.container.find("#filterCityMenu").on("shown.bs.dropdown",function(){var t=$(this).find(".city-search")
t.focus(),_gVar.isMobile&&$(window).scrollTop(t.offset().top-50)}),e.container.find(".openCityFilter").on("click",function(t){t.stopPropagation(),$(this).parent().find("#filterCityMenu").addClass("open").find(".searchresult").removeClass("hide"),"openCityFilter1"==$(this).attr("id")&&$(this).closest(".selectT1").find("#allfilter").click()}),e.isOneRow||e.container.on("click","*[href]",function(t){t.preventDefault(),e.coreLocation=$(this).attr("href"),e.data.withfilter="cat",e.createUrl()}),e.container.find(".searchresult button span").text(e.container.find("#searchresult").text()),e.container.find("li.searchresult").on("click",function(t){$(this).closest(".dropdown-menu").addClass("close-on-hover butsearchresult").closest(".dropdown").removeClass("open").trigger("hidden.bs.dropdown"),$(window).scrollTop(e.conparnt.offset().top+e.conparnt.height())}),e.container.find(":checkbox,:radio,:text.ffinder").change(function(t){if(t.preventDefault(),_gVar.filter=_gVar.filter||{},i[$(this).attr("name")]=[],$(this).data("group")){var n=e.container.find('*[name="'+$(this).attr("name")+'"]'),o=e.container.find('*[name="'+$(this).data("group")+'"]'),s=!n.filter(":not(:checked)").length
o.filter('[value="'+$(this).data("groupval")+'"]').prop("checked",s),n.data("skip",s),o.filter(":not(:checked)").length||o.prop("checked",!1),o.filter(":checked").length||delete _gVar.filter[$(this).data("group")]}if($(this).data("range"))for(var r,a=$(this).data("range").split(","),l=a.length-1;l>=0;l--)a[l]&&(r=a[l].split(":"),r[0]&&r[1]&&(i[r[0]]=[r[1]],$(':radio[name="'+r[0]+'"]:checked').data("skip",1)))
e.container.find(":checkbox:checked, :radio:checked, :text.ffinder").each(function(){var t=$(this).attr("name"),e=$(this).val(),n=i[t]=i[t]||[]
t&&e&&-1===n.indexOf(e)&&!$(this).data("skip")&&n.push($(this).is(":text")?e.slice(0,30):parseInt(e))})
for(var c in i)i[c].length?_gVar.filter[c]=i[c]:delete _gVar.filter[c]
e.data.withfilter=$(this).attr("name"),e.createUrl()}))},cityFilter:function(t){var e=_gVar.filter||{},i=parseInt(t.id)
1==i?e.city=[1]:e.city&&e.city.length>1&&!siteFilters.isOneRow?-1===e.city.indexOf(i)&&(e.city.unshift(i),e.city=e.city.slice(0,10)):e.city=[i],(e.city.length>1||t.fcl)&&delete e.radius,siteFilters.data.withfilter="city",siteFilters.createUrl()},createUrl:function(){var t=this.coreLocation,e={city:[1]},i=""
if(jQuery.isEmptyObject(_gVar.filter)?delete _gVar.filter:e=$.extend({},_gVar.filter),_gVar.filterData)for(var n in _gVar.filterData)if(e[n]){var o=_gVar.filterData[n].data[e[n][0]]
o&&o[lng+"_url"]&&(t=this.coreLocation.replace("/?",o[lng+"_url"]+"/?"),e[n].shift(),jQuery.isEmptyObject(e[n])&&delete e[n])}if(e.city){for(var s=[],r=0;r<e.city.length;r++)e.city[r]&&-1===s.indexOf(e.city[r])&&s.push(e.city[r])
s.length&&(e.city=s)}e.city||(e.city=[1]),e.radius&&(e.city.length>1||1==e.city[0])&&delete e.radius,this.data.expand=this.conparnt.hasClass("expand")?"":"1",-1===e.city.indexOf(parseInt(_gVar.regionID))&&(t=t.replace(/setcity\=\d+/g,"setcity="+e.city[0]),evChangeCity(e.city[0]),this.isOneRow||(this.isOneRow=!0,"city"==this.data.withfilter?i="#openCityFilter"+this.data.expand:this.data.expand&&_gVar.isMobile&&(i="#allfilter"))),1==e.city.length&&delete e.city,this.container.find(".btn,input").attr("disabled","disabled"),t=t+(jQuery.isEmptyObject(e)?"":(-1==t.indexOf("/?")?"/?":"&")+"filter="+encodeURIComponent(JSON.stringify(e)))+i,this.isOneRow?window.location.href=t:pageAjax.load(t,void 0,this.data),this.data.withfilter="1"}}
jQuery.fn.fcategory=function(){var t=$(this)
t.find("li:not(.final):not(.hide)>a").click(function(e){if(_gVar.isMobile||!window.matchMedia("(hover: hover)").matches)if(e.stopPropagation(),$(this).hasClass("backto"))t.removeClass("levelopen"),$(this).closest(".open").removeClass("open")
else{var i=t.offset().top,n=$(window).scrollTop()
$(this).removeAttr("href"),t.addClass("levelopen"),$(this).parent().addClass("open"),n>i&&$(window).scrollTop(i)}})}
var siteFiltersCityChange=siteFilters.cityFilter
window.addEventListener&&(window.addEventListener("popstate",function(t){var e=$("#blueimp-gallery:visible")
if(e.length&&e.data("gallery"))e.data("popstate",!0).data("gallery").close()
else if(!history.state||"gallery"!=history.state.modal){var i=$(".modal.in")
i.data("popstate",!0),historyHasState("modal")!==i.attr("id")&&i.removeClass("fade").bsmodal("hide")}modalHistoryTrigger(t)}),_gVar.user&&addEventListener("visibilitychange",function(){document.hidden||(document.title=document.title.replace(/^📩\(\d+\) /g,""))})),jQuery.fn.addF=function(t){function e(){var t="textarea:not(.img-descr, .not-listen), input:not(.not-listen, .ui-autocomplete-input, :input[type=file])",e="select:not(.not-listen),:checkbox,:radio:not(.not-listen)"
i.on("input",t,function e(n){d.wasChange=!0,i.off("input",t,e),i.data("bs.modal")&&(i.data("bs.modal").options.backdrop="static")}),i.on("change",e,function t(){d.wasChange=!0,i.off("change",e,t),i.data("bs.modal")&&(i.data("bs.modal").options.backdrop="static")})}t.send=t.send||{}
var i=$(this),n=i.attr("id"),o=i.find('input[type="file"]'),s=i.find("form:not(.notmodaltrack)"),r=s.find('button[type="submit"]'),a=r.attr("data-text"),l=i.find('input[name="edit_attr"]'),c=!1,d={wasChange:!1,flagEdit:!1,storagePrefix:t.storagePrefix||"",autoUpload:l.val()||!1},u={done:function(){killloader(),e(),d.flagEdit=!0,i.data("bs.modal")&&(i.data("bs.modal").options.backdrop=!0),c&&i.bsmodal("hide"),t.nosendMessage||$.alrt(t.sendMessage?t.sendMessage:_gText.saved,"success"),void 0!==t.callback&&d.wasSave&&t.callback(d)},send:t.send,formSetting:d,lineCount:0,line:Array()}
window.onbeforeunload||(window.onbeforeunload=function(){if(i.trigger("sessionSave"),d&&d.wasChange&&!t.noTrackChanges)return!0}),"function"==typeof t.init&&t.init(d),t.alertParent=void 0===t.alertParent?i:t.alertParent,e(),i.on("hide.bs.modal",function(e){return!loader(!0)&&($(".alert-success").remove(),d.wasChange&&!t.noTrackChanges?(d.wasChange=!1,$.alrt(_gText.saveChanges,"dialog",{callbackYes:function(){r.click(),c=!0},callbackNo:function(){i.bsmodal("hide")},buttonYes:{text:_gText.save,type:"ok",icon:"check"}}),!1):(d.flagEdit&&(void 0!==t.update?window[t.update]():setTimeout(function(){d.redirectURL?window.location.href=d.redirectURL:reloadPage()},100)),void i.trigger("sessionSave")))}).on("hidden.bs.modal",function(e){autosize.destroy(i.find("textarea")),i.remove(),void 0!==t.afterClose&&t.afterClose(),window.onbeforeunload=null}).on("shown.bs.modal",function(){var t=i.find(".modal-dialog"),e=i.find("textarea:not(.not-resize)")
if(e.attr("data-autosize","true"),autosize(e),i.find('a[data-toggle="tab"]').one("shown.bs.tab",function(t){var e=i.find($(t.target).attr("href")).find("textarea")
e.length&&autosize.update(e)}),d.autoUpload&&t.height()-window.innerHeight>50&&r.length&&!isOperaMini){var n=t.width()
r.addClass("iosfixbottom").css({position:"fixed",bottom:"0",left:"50%",width:n,"margin-left":(n+(i[0].offsetWidth-i[0].clientWidth))/-2,"border-radius":"0"}).on("click",function(){s.find(":submit").click()}),i.find(".modal-dialog").css({"margin-bottom":"32px"}),i.append(r),s.append('<input class="hide" type="submit">')}}),d.autoUpload?(r.html(a||_gText.save),t.send.prm=d.autoUpload):(r.html(a||_gText.add),i.find("h4.modal-title small").hide()),o.length&&addJsFile.fileupload(function(){o.each(function(){$(this).fileLoad(u)})}),i.find(".dropdown.category").category(),i.find(".mapPOL").length&&(_gVar.mapMarherChange=function(t,e,n){i.find('input[name="lat'+n+'"]').val(t),i.find('input[name="lng'+n+'"]').val(e),d.wasChange=!0},i.find(".mapPOL").each(function(){$(this).click(function(){var t=$(this),e=$(this).closest(".map-container"),i=e.find("iframe")
if(i.length)i.toggleClass("hide")
else{var n=$(this).closest(".modal-body").find('input[name="city"], select[name="city"]').val()
$.when(function(){return loader(),n&&_gVar.city!=n?$.post("/ajax/small.php",{getcityinfo:n,lang:lng},function(){},"json"):{}}()).then(function(i){var n=t.attr("data-data")
killloader(),i&&i.lng&&(n=n.replace(/lat=[^&]+/,"lat="+i.lat),n=n.replace(/lng=[^&]+/,"lng="+i.lng),n=n.replace(/np=[^&]+/,"np="+encodeURIComponent(i.label))),e.append('<iframe name="'+e.data("index")+'" style="width:100%" height="400" scrolling="no" frameborder="0" src="/ajax/mapModal.php?'+n+"&skas="+encodeURIComponent(_gText.skas)+"&addr="+encodeURIComponent(e.find(":text").val())+'"></iframe>')})}})})),i.find("textarea[data-inline]").keydown(function(t){13!=t.keyCode||t.shiftKey||(t.preventDefault(),_gVar.isMobile||s.submit())}),s.submit(function(){if(!loader(!0)){var e=0
if($(this).find("*[data-required], *[required]").each(function(){e+=i.check($(this).attr("name"))}),e>0)$.alrt(_gText.obpol,"warn")
else{var o={}
i.find('textarea, input:not([type="file"]), select').each(function(){$(this).is(":checkbox, :radio")?$(this).is(":checked")&&(o[$(this).attr("name")]=$(this).val()):o[$(this).attr("name")]=$(this).val()})
for(var s in t.send)o[s]=t.send[s]
if(o.lang=lng,void 0!==t.beforeSave&&!t.beforeSave(o))return!1
d.wasChange=!1,d.wasSave=!0,$._ajax({url:t.wss?"":t.url.replace(".php","_ajax.php"),data:o,dataType:"json",wss:t.wss,error:function(){killloader(),d.responce=!1,$.alrt(_gText.error,"error")},complete:function(){},success:function(e){if(r.attr("data-text")||r.text(_gText.save),d.responce=e,gtag("event","Modal",{event_category:n,event_label:d.autoUpload?"edit":"add"}),e){if(e.error)return $.alrt(e.error,"warn"),killloader(),void("function"==typeof t.errorCallback&&t.errorCallback(e))
e.url&&(d.redirectURL=e.url),d.autoUpload||("function"==typeof t.afterAdd&&t.afterAdd(d),d.autoUpload=e.codeID,l.val(e.codeID),i.find("h4 small").show()),i.find("*[data-notchanged]").closest(".form-group").find("button,select,input").attr("disabled","disabled"),i.find(".city-change-container:not(.allow-edit) .ui-autocomplete-input").attr("disabled","disabled").removeClass("ui-autocomplete-input").nextAll().addClass("hidden").parent().removeClass("input-group")}d.autoUpload&&(t.send.prm=d.autoUpload),void 0!==t.ajaxCallback&&t.ajaxCallback(e),void 0!==u.add?u.add(t.send):u.done()}})}sstorage(n+d.storagePrefix,"")}}),i.on("sessionSave",function(){if(!d.autoUpload&&void 0!==window.sessionStorage){var t={}
if(s.find(':text, input[type="url"], input[type="number"], input[type="email"], textarea, .session-storage').each(function(){var e=$(this)
e.attr("name")&&!e.is(".no-session-storage, :disabled")&&(t[e.attr("name")]=e.val())}),!$.isEmptyObject(t))try{sstorage(n+d.storagePrefix,JSON.stringify(t))}catch(t){}}}).on("sessionPopulate",function(){if(!d.autoUpload&&sstorage(n+d.storagePrefix))try{var t=JSON.parse(sstorage(n+d.storagePrefix))
$.each(t||{},function(t,e){s.find('*[name="'+t+'"]').val(e)})}catch(t){}}),i.trigger("sessionPopulate")},jQuery.fn.check=function(t,e){var i=$(this).find('*[name="'+t+'"]'),n=i.val()
n&&(n=n.trim()),i.attr("data-parent")?(i=i.parent(),iconW=""):iconW='<span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>'
var o=i.parent(".has-warning")
return""==n||e?(o.length||i.is("textarea:hidden")||i.wrap('<div class="form-group has-warning has-feedback"></div>').after(iconW).show(),1):(o.length&&(o.find("label, span.glyphicon").remove(),i.unwrap()),0)},jQuery.fn.category=function(){var t=$(this),e="",i=t.find("input"),n=t.find(">.dropdown-menu")
t.on("show.bs.dropdown",function(){n.find(".level1").show().end().find(">.level2, .backto").remove()}),t.on("click","li",function(o){var s=$(this)
if(s.data("value"))i.val(s.attr("data-value")).trigger("keydown"),t.removeClass("open").trigger("onchange",s).find("button .text").html(e+s.text())
else{var r=$(s.find(".dropdown-menu").html()),a=$('<li class="backto"><a><span class="glyphicon glyphicon-menu-left"></span></a></li>')
a.click(function(t){n.find(".level1").show().end().find(">.level2").remove(),$(this).remove(),t.stopPropagation()}),e='<small class="hidden-xs">'+s.find(">a").text()+" > </small>",t.find("li").hide(),s.parent().append(r).prepend(a).find(".level2").show(),n.scrollTop(0),o.stopPropagation()}}),i.val()&&t.trigger("onchange",t.find('li[data-value="'+i.val()+'"]'))},jQuery.fn.passInputCheck=function(t){var e=$(this).find('input[name="pass"]'),i=$('<span class="glyphicon glyphicon-eye-open" style="float: right; padding: 10px; margin-top: -35px; cursor:pointer;"></span>')
return t=t||{},t.empty||$(this).submit(function(t){if($(this).check("pass"))return $.alrt(_gText.obpol,"warn"),t.stopPropagation(),t.preventDefault(),!1
e.attr("type","password")}),t.notset||e.keyup(function(){var t=$(this).val()
$(this).parent().find(".no-spaces-text").toggleClass("hide",!(/  +/.test(t)||/^\s/.test(t)||/\s$/.test(t)||/\\/.test(t)))}).attr("minlength","5").attr("autocomplete","new-password"),e.attr("maxlength","40").css({"padding-right":"30px"}).after(i),i.click(function(){var t="password"==e.attr("type")
e.attr("type",t?"text":"password"),i.toggleClass("glyphicon-eye-open").toggleClass("glyphicon-eye-close")}),this},jQuery.fn.recaptureCheck=function(){var t="undefined"!=typeof grecaptcha&&grecaptcha.getResponse()
return $(this).find(".g-recaptcha").toggleClass("error-not-checked",!t),t||$.alrt(_gText.recaptureFail,"warn"),t}
var pageNum={init:function(){$("body").on("focus","form.gotopage input",function(t){$(this).val()||$(this).data("saveplaceholder",$(this).attr("placeholder")).attr("placeholder","")}).on("focusout","form.gotopage input",function(t){$(this).val()?!_gVar.isMobile&&$(this).inView()&&$(this).closest(".gotopage").submit():$(this).attr("placeholder",$(this).data("saveplaceholder"))}).on("submit","form.gotopage",function(t){var e=$(this).data("pagename"),i=$(this).data("iswwww"),n=$(this).find("input"),o=parseInt(n.val()),s=$(this).closest("li")
if(firstPage=!!s.length&&s.prev("li"),t.preventDefault(),!(!o||o<1||!firstPage||!firstPage.length||o>n.attr("max"))){o-=1
var r=e+"=\\d+"
if(i){o||(r+="&?")
var a=firstPage.find("a").attr("href").replace(new RegExp(r),o?e+"="+o:"")
firstPage.find("a").data("ajax")?pageAjax.load(a,".container-fluid.main .adver:first"):window.location.href=a}else{var l=firstPage.find("a[data-pages]")
l.attr("data-pages",l.attr("data-pages").replace(new RegExp(r),e+"="+o)).click()}return!1}})}},pageAjax={articleEl:null,currentUrl:jQuery.helper.decodeURI(window.location.pathname)+window.location.search,load:function(t,e,i){var n=this,o=$(window).scrollTop()
t&&!loader()&&(i=i||{},i.reload="ajax",$.ajax({type:"POST",url:t,data:i,error:function(e,i){window.location.href=t},success:function(i){killloader(),n.articleEl=$("article"),(_gVar.cacheList=_gVar.cacheList||{})[t]=i,_gVar.cacheList[n.currentUrl]||historep({modal:"pagination",datah:n.currentUrl},"",n.currentUrl),n.currentUrl=t,historyst(t,{modal:"pagination",datah:t}),n.setPage(i),$("#cngLangLink").attr("href",_gVar.changeLangUrl),$(window).scrollTop(void 0===e?o:$(e).filter(":visible").length?$(e).offset().top-45:0)}}))},setPage:function(t){this.articleEl.html(t),this.articleEl.find(".city-search").each(citSearchF),siteFilters.init(),movie(),lazyLoad(),moreLinePos=$('a[kolrow][dbn!="act"]:last')}}
jQuery.fn.content=function(t){var e=$(this),i=function(t){t=t||{},t.data=t.data||{},$(".tooltip.fade").remove(),function(e){var i=e.data("set")||{}
i.url&&($.each(t.data,function(t,e){void 0!==i.data[t]&&(i.data[t]=e)}),$._ajax({url:i.url,data:$.param($.extend({},i.data||{},t.data))+"&lang="+lng,success:function(n){e.html(n),t.scroll&&("bottom"==i.scrollParentContent?setTimeout(function(){e.animate({scrollTop:e.prop("scrollHeight")},500)},100):"top"==i.scrollParentContent?e.parent().scrollTop(0):e.scrlTo()),i.callback&&i.callback(e),t.callback&&t.callback(e),movie(),lazyLoad()}}))}(e)}
t.firstReload=void 0===t.firstReload||t.firstReload,t&&e.data("set",$.extend(e.data("set")||{},t)),e.bind("reloadContent",function(t,e){i(e)}),t.firstReload&&i(),e.on("click","a[data-pages]",function(t){var n=$(this).attr("data-pages"),o=e.data("set")
return t.preventDefault(),"?"==n&&(n+=o.data.get_comment+o.data.descr+"edPG=0"),o.data=$.extend(o.data,JSON.parse('{"'+n.replace("?","").replace("=",'":"')+'"}')),i({scroll:!0}),!1}).on("click","span[data-share-comment]",function(t){var i=$(this).data("share-comment"),n=$(this).next(".dropdown-menu"),o=e.data("regurl"),s=o?location.origin+o:getUrl(!0).replace(/(&|\/\?)SAC=\d+/,"")
n.find(".share-comment").length||n.append($(".share-comment.hidden:first").clone(!0).removeClass("hidden")),n.find(".share-link-input :text").val(s+(-1===s.indexOf("/?")?"/?":"&")+"SAC="+i+"#comm"+i)})},jQuery.fn.mark=function(){var t=$(this)
$(this).find('.glyphicon-star-empty[data-val="'+$(this).data("active")+'"]').addClass("active"),$(this).mouseout(function(){$(this).find(".active").removeClass("active"),$(this).find('.glyphicon-star-empty[data-val="'+$(this).data("active")+'"]').addClass("active")}).find("span[data-val]").tooltip({container:!1}).hover(function(){t.find(".active").removeClass("active"),$(this).addClass("active")}).click(function(){if(!_gVar.user)return void t.data("action",$(this).attr("id"))
var e=$(this).data("val")
t.data("active",e==t.data("active")?"":$(this).data("val")),t.trigger("mouseout"),$._ajax({wss:!0,data:{p:"mark",DB:t.data("db"),descr:t.data("descr"),val:e},success:function(i){if(i.error)$.alrt(i.error,"error"),t.data("active",""),t.trigger("mouseout")
else{var n=Math.abs(i.val)-.001
t.find(".average, .p1, .p2, .p3, .p4").removeClass("average p1 p2 p3 p4"),t.find("."+(i.val>0?"up":"down")+" .glyphicon-star-empty:eq("+(4-Math.floor(n/2))+")").addClass(" average p"+Math.round(n%2*2)),"delete"==i.action&&t.find(".tooltip").tooltip("hide"),gtag("event","SetMark",{event_category:i.action,event_label:("edit"==i.action?i.mark+">":"")+e.toString()})}}})})},jQuery.fn.socialCheck=function(){var t=$(this).val()
if(t){socialLinks=t.split(", ")
for(var e=0;e<socialLinks.length;e++)if(-1===socialLinks[e].indexOf("http"))return $.alrt(_gText.nourl+" (URL)","warn"),$('.token .token-label:contains("'+socialLinks[e]+'")').parent().css({"background-color":"#ef5350"}),!1}return!0},jQuery.fn.socialShare=function(){$(this).click(function(){var t=$(this).attr("id"),e=$(this).closest("ul.share"),i="",n=e.prev(".share-link-input").find(":text"),o=encodeURIComponent(n.length?n.val():getUrl()),s=encodeURIComponent($("head title").text())
switch(t){case"s-facebook":i="https://www.facebook.com/sharer/sharer.php?u="
break
case"s-vkontakte":i="https://vk.com/share.php?url="
break
case"s-messenger":i="http://www.facebook.com/dialog/send?app_id=285744658215956&link="+o+"&redirect_uri="
break
case"s-telegram":i="https://telegram.me/share/url?url="
break
case"s-mail":i="mailto:?subject="+s+"&body=",o+="%0D%0A%0D%0A"
break
case"s-twitter":i="https://twitter.com/intent/tweet?text="+s+"&url="
break
case"s-viber":i="viber://forward?text=",o=location.origin+jQuery.helper.decodeURI(location.pathname)+encodeURIComponent(location.search+location.hash)}gtag("event","SocialShare",{event_category:t,event_label:e.data("type")}),window.open(i+o,"_blank")})}
var wss={hasError:!1,timerReconnect:0,timerPing:0,reConnectTry:1,idle:0,buffer:[],trackUserStatus:[],callback:{},_ajax:{},msCount:0,socket:{readyState:3},send:function(t,e){var t=JSON.stringify(t)
if(e=e||{},1==this.socket.readyState)return void this.socket.send(t)
e.nobuff||this.buffer.push(t),this.socket.readyState>1&&this.connect()},connect:function(t){var e=this
e.socket.readyState<2||(e.socket=new WebSocket("ws"+(_gVar.isSecure?"s":"")+"://"+location.host+":9272/"),e.socket.addEventListener("open",function(t){for(var i=e.buffer.length-1;i>=0;i--)e.socket.send(e.buffer[i])
e.buffer=[],e.reConnectTry=1,e.hasError=!1,clearTimeout(e.timerReconnect),window.removeEventListener("online",e.connect.bind(e)),e.timerPing=setInterval(function(){e.send({p:"ping"})},18e4),e._idle()}),e.socket.addEventListener("message",function(t){try{var i=JSON.parse(t.data)}catch(t){return}if(i.closeError)return e.hasError=!0,console.dir("Error "+i.closeError),void gtag("event","WebSocket",{event_category:"closeError",event_label:i.closeError})
if(i.error)$.alrt(i.error,"error")
else{switch(i.p){case"chat":if(void 0!==i.messcount)return void e.setMessCount(i)
if(i.messadd&&e.setMessCount(i),i.owner||i.withFile||!i.mid)i.messadd<0&&i.mess_from&&$('.alerts-box .mess-alert[data-from="'+i.mess_from+'"]').parent().remove()
else if("hidden"==document.visibilityState&&_gVar.serviceWorkerRegistration&&"Notification"in window&&"granted"===Notification.permission){var n={mid:i.mid,title:_gText.messTitle+i.name,tag:"mess"+i.mess_from,icon:i.icon,silent:"off"==_gVar.set.sound,body:i.body}
i.block||(n.actions=[{action:"answer",title:_gText.answer}],n.data={url:i.url}),_gVar.serviceWorkerRegistration.active.postMessage(n),gtag("event","Alert",{event_category:"push"})}else $('#mess1.send input[name="mess_to"][value="'+i.mess_from+'"]').length||(_gVar.isMobile&&$("#mess1.send #mess_form textarea").is(":focus")||$.alrt('<div class="mess-alert" data-from="'+i.mess_from+'"><div class="useradd"><img class="img-cover" src="'+i.icon+'"></div><div><h4 class="ellips">📩 '+i.name+"</h4>"+i.body+(i.block?"":' <button type="button" class="btn btn-material'+(1==i.type?"":" btn-www")+'" www="'+i.url+'"><span class="glyphicon glyphicon-send"></span> '+_gText.answer+"</button>"+(1==i.type?"":'<button type="button" class="btn btn-material btn-open" data-open="mess1" data-data="send='+i.mess_from+'&focus=true"><span class="glyphicon glyphicon-send"></span> '+_gText.answer+"</button>"))+"</div></div>","",{eternal:!0}),e.sound(i,"notify"),gtag("event","Alert",{event_category:"mess"}))
break
case"online":for(var o in i.status){var s=_gText.onlineStatus,r=$('span[data-trackonlinetext="'+o+'"]')
if($('.online[data-trackonline="'+o+'"]').toggleClass("hide",!i.status[o]),r.length){if(!i.status[o]){var a=new Date,l=a.getMonth()+1,c=a.getDate(),d=a.getHours(),u=a.getMinutes()
s=(c<10?"0":"")+c+"."+(l<10?"0":"")+l+"."+a.getFullYear()+" "+(d<10?"0":"")+d+":"+(u<10?"0":"")+u}r.text(s)}}break
case"view":_gVar.isMobile&&$("#mess1.send #mess_form textarea").is(":focus")||$.alrt('<div class="mess-alert"><div class="useradd"><img class="img-cover" src="'+i.icon+'"></div><div><h4 class="ellips">👀 '+i.name+"</h4>"+i.body+" «"+i.title+'» <button type="button" class="btn btn-material btn-www" www="'+i.url+'"><span class="glyphicon glyphicon-new-window"></span> '+_gText.viewProfile+'</button><button type="button" class="btn btn-material btn-open" '+i.dataOpen+'><span class="glyphicon glyphicon-new-window"></span> '+_gText.viewProfile+"</button></div></div>"),e.sound(i,"view"),gtag("event","Alert",{event_category:"view"})}"function"==typeof e.callback[i.p]&&e.callback[i.p](i)}i.wssID&&"function"==typeof e._ajax[i.wssID]&&(delete i.error,e._ajax[i.wssID](i),delete e._ajax[i.wssID])}),e.socket.addEventListener("close",function(t){console.dir("Close "+t.code+":"+t.reason),clearInterval(e.timerPing),e.idle||(e.idle=Date.now()),1e3==t.code||e.hasError||(gtag("event","WebSocket",{event_category:"close",event_label:t.code+":"+t.reason}),navigator.onLine?(console.dir("Reconnect "+e.reConnectTry),e.timerReconnect=setTimeout(e.connect.bind(e),1e3*e.reConnectTry),e.reConnectTry*=2):window.addEventListener("online",e.connect.bind(e)))}),e.socket.addEventListener("error",function(t){gtag("event","WebSocket",{event_category:"error"}),e.socket.close()}))},_idle:function(){this.idle&&(this.idle=Math.round((Date.now()-this.idle)/1e3),this.idle>10&&this.send({p:"ping",hard:!0}),"function"==typeof this.idleEvent&&this.idleEvent(this.idle),gtag("event","WebSocket",{event_category:"idle",event_label:this.idle}),this.idle=0)},trackOnline:function(){var t=this,e=t.trackUserStatus.slice()
t.trackUserStatus=[],$(".useradd .online[data-trackonline]").each(function(){t.trackUserStatus.push($(this).data("trackonline"))}),t.trackUserStatus=t.trackUserStatus.filter(function(t,e,i){return i.indexOf(t)===e}),Array.prototype.includes&&e.length&&!t.trackUserStatus.filter(function(t){return!e.includes(t)}).length||t.send({p:"online",status:t.trackUserStatus})},setMessCount:function(t){if(!t){if(!(t=sstorage("_cm")))return
t=JSON.parse(t)}var e=$("header #mess-menu"),i=e.find(".badge.mcount");(t.messadd=parseInt(t.messadd))?(this.msCount=this.msCount+t.messadd,this.msCount<0&&(this.msCount=0)):this.msCount=parseInt(t.messcount),i.text(""),document.title=document.title.replace(/^📩\(\d+\) /g,""),this.msCount&&(i.text(this.msCount),document.hidden&&(document.title="📩("+this.msCount+") "+document.title)),sstorage("_cm",JSON.stringify({messcount:this.msCount}))},sound:function(t,e){var i=this
if("off"!=_gVar.set.sound){var n=function(t){_gVar.isIOS?i.soundIOS("/style/sound/"+t+".aac"):new Audio("/style/sound/"+t+".aac").addEventListener("canplaythrough",function(){this.volume=_gVar.set.sound||.5,this.play()})}
n(t.owner?"send":t.block?"block":e||"receive")}},soundIOSFix:function(){if(window.AudioContext=window.AudioContext||window.webkitAudioContext,window.AudioContext){window.audioContext=new window.AudioContext
var t=function(e){var i=window.audioContext.createBuffer(1,1,22050),n=window.audioContext.createBufferSource()
n.buffer=i,n.connect(window.audioContext.destination),n.start?n.start(0):n.play?n.play(0):n.noteOn&&n.noteOn(0),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}
document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}},soundIOS:function(t){var e=window.audioContext,i=new XMLHttpRequest
e&&(i.open("GET",t,!0),i.responseType="arraybuffer",i.addEventListener("load",function(t){e.decodeAudioData(this.response,function(t){var i=e.createGain(),n=e.createBufferSource()
i.gain.value=_gVar.set.sound||.5,i.connect(e.destination),n.buffer=t,n.connect(i),n.start(0)})},!1),i.send())}}
_gVar.isIOS=/iPhone|iPad|iPod/.test(navigator.userAgent)
var siteSetting={_set:function(t,e,i){i=i||{},i.callBack=i.callBack||function(){},e?_gVar.set[t]=e:t&&delete _gVar.set[t],$.cookie("set",!_gVar.set||jQuery.isEmptyObject(_gVar.set)?"":JSON.stringify(_gVar.set),{path:"/",domain:"."+location.hostname,expires:9999}),_gVar.user&&t&&!i.notSave?$.ajax({url:"/addform/user1_ajax.php",complete:i.callBack,data:{setting:t,setto:e}}):i.callBack()}},endAside=!1,moreLinePos=!1,moreLineWas=!$('a#moreH[dbn!="act"]').length,isOperaMini=navigator.userAgent.indexOf("Opera Mini")>-1,addButtonEl=$(".btn-add"),citSearchF=function(){!function(t){var e=t.attr("id"),i=t.data("url"),n=t.data("region"),o=t.attr("data-done"),s=t.next("input"),r=t.data("fixed"),a=t.val(),l=$('<div class="loader hide"></div>'),c=t.data("noselect"),d=$("<div "+(r?'data-fixed="'+r+'"':"")+' data-size="lg" data-open="city-'+t.attr("id")+'" data-openparent="true" data-url="/addform/city.php" data-data="name=city-'+e+(i?"&url="+i:"")+(n?"&region=1":"")+(r?"&isFixed=1":"")+(t.data("detail")?"&detail=1":"")+(o?"&func="+o:"")+'" class="select flex"><span class="glyphicon-dropdown"></span></div>'),u={source:function(t,e){var o={term:t.term,lang:lng}
i&&(o.url=i),n&&(o.withRegions=n),$.post("/ajax/small.php",o,e,"json")},minLength:2,appendTo:t.parent(),search:function(t){l.removeClass("hide"),d.addClass("hide")},response:function(t,e){l.addClass("hide"),d.removeClass("hide")},open:function(){if(r){var t=$(this).parent().parent().find("ul.ui-autocomplete")
t.length&&t.css({"overflow-y":"auto","max-height":$(r).height()-35-t.position().top})}},select:function(e,i){if(0==i.item.id)return e.stopPropagation(),!1
$(e.target).next()
o?(void 0===window[o]?(t.val(i.item.label),s.val(i.item.id)):window[o](i.item,t),a=i.item.label):(evChangeCity(i.item.id),window.location=i.item.url)}}
t.change(function(){$(this).val(a)}),t.attr("id","select"==o?"changeonselect-city-"+e:"").on("click",function(){$(this).select()}),t.wrap('<div class="input-loader"></div>').after(l),c||t.after(d),t.data("token")?t.tokenfield({tokens:_gVar.filterSet,autocomplete:u,limit:10,minWidth:"100%"}).on("tokenfield:edittoken",function(t){t.preventDefault()}).on("tokenfield:createtoken",function(t){parseInt(t.attrs.value)||(t.preventDefault(),$(t.currentTarget).parent().find(".token-input").val(""))}):t.autocomplete(u)
var h=t.parent().find(".ui-autocomplete-input"),p=h.data("ui-autocomplete")
p&&(p._renderItem=renderAutocompleteItem),_gVar.isMobile&&t.data("scroll")&&h.on("focus",function(){var t=$(this),e=$(this).closest(".modal")
setTimeout(function(){e.length?e.scrollTop(t.parent().position().top):$(window).scrollTop(t.offset().top-50)},500)})}($(this))}
jQuery.fn.mainSearch=function(){function t(){73==_gVar.page&&_gVar.googleSearchEl&&_gVar.searchText?_gVar.googleSearchEl.execute(_gVar.searchText):$("#modal-search").click()}var e=$(this),i=e.find("input:text")
i.autocomplete({source:function(t,i){var n={term:t.term,withRegions:!0,lang:lng,city:_gVar.regionID,url:e.data("url")}
$.post("/addform/search_ajax.php",n,i,"json")},minLength:2,appendTo:e,open:function(){var t=e.find("ul.ui-autocomplete")
t.length&&t.css({"overflow-y":"auto","max-height":window.innerHeight-35-t.position().top})},select:function(e,i){"googlesearch"==i.item.id?(_gVar.searchText=i.item.label,t()):i.item.url&&(i.item.id&&evChangeCity(i.item.id),window.location=i.item.url)}}).data("ui-autocomplete")._renderItem=renderAutocompleteItem,e.submit(function(){return(_gVar.searchText=i.val())&&t(),!1})},jQuery.fn.rotateImg=function(){var t=$(this)
return{start:function(){if(t.length){var e=t.addClass("runset").data("imgset").split(","),i=1
clearTimeout(_gVar.imageRotateTimer),_gVar.imageRotateTimer=setTimeout(function n(){_gVar.imageRotateTimerLoadImg=$("<img/>"),_gVar.imageRotateTimerLoadImg.attr("src",e[i]).on("load",function(){$(this).remove(),_gVar.imageRotateTimerLoadImg=!1,t.css({opacity:0}),_gVar.imageRotateTimer=setTimeout(function(){t.attr("src",e[i]).css({opacity:1}),i++,i>=e.length&&(i=0),clearTimeout(_gVar.imageRotateTimer),_gVar.imageRotateTimer=setTimeout(n,1700)},600)})},850)}},stop:function(){if(t.length){var e=t.data("imgset").split(",")
_gVar.imageRotateTimerLoadImg&&(_gVar.imageRotateTimerLoadImg.remove(),_gVar.imageRotateTimerLoadImg.off("load"),_gVar.imageRotateTimerLoadImg=!1),t.removeClass("runset").attr("src",e[0]).css({opacity:1}),clearTimeout(_gVar.imageRotateTimer)}}}},jQuery.fn.carouselInit=function(){return $(this).find(".carousel").carousel({interval:_gVar.isMobile?0:13e3}).on("swiperight",function(){$(this).carousel("prev")}).on("swipeleft",function(){$(this).carousel("next")}),this},$(document).ready(function(){function t(t){_gVar.IOSpendingUpdate||(_gVar.IOSpendingUpdate=!0,requestAnimationFrame(function(){_gVar.IOSpendingUpdate=!1,$(".iosfixtop").css({transform:"translateY("+Math.max(0,visualViewport.offsetTop)+"px)"}),visualViewport.offsetTop>=0&&$(".iosfixbottom").css({transform:"translateY(-"+Math.max(0,innerHeight-visualViewport.height-visualViewport.offsetTop)+"px)"})}))}$(window).bind("resize",resColm).bind("scroll",function(){_gVar.scrollTimer||(_gVar.scrollTimer=setTimeout(function(){clearTimeout(_gVar.scrollTimer),_gVar.scrollTimer=null,scrollE()},100))}).bind("load",function(){scrollE(),resColm(),$("#asideFin:visible").length&&(endAside=$("#asideFin:visible").offset().top)}),$("#m-search").mainSearch(),$("#header-mobile-search-city").on("shown.bs.dropdown",function(){$(this).find(":text").focus()}),$("#header-mobile-search-city :text").focus(function(){$(this).parent().find(".open").removeClass("open")}),$(".nav.nav-tabs>li>a").click(function(t){t.preventDefault(),$(this).tab("show")}),$("#selectColorTheme .dropdown-menu a").click(function(t){var e=$(this).data("setval")
t.preventDefault(),$("body").removeClass("color1"),$("#selectColorTheme .color-text").text($(this).text()),"0"!==e&&$("body").addClass("color"+e)}),pageNum.init(),$("ul.share a").socialShare(),cookieCheck(),$(".city-search").each(citSearchF),siteFilters.init(),$("#cngLangLink").click(function(t){var e=$(this)
t.preventDefault(),gtag("event","ChangeLang",{event_category:e.data("setval")}),siteSetting._set("lang",e.data("setval"),{callBack:function(){window.location.href=e.attr("href")}})}),_gVar.user&&(wss.connect(),wss.setMessCount(),_gVar.isIOS&&wss.soundIOSFix()),"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js",{scope:"/"}).then(function(t){navigator.serviceWorker.ready.then(function(t){_gVar.serviceWorkerRegistration=t,t.active.postMessage({setUser:_gVar.user})})}),$("body").carouselInit().on("click","a[data-protectemail],button[data-protectemail]",function(t){var e=$(this).data("protectemail").split("").reverse().join(""),i=$(this).data("regurl"),n=$(this).data("mailtoname")
e&&(gtag("event","Contact",{event_category:"mail"}),window.location.href="mailto:"+e+"?subject="+rawurldecode(_gText.protMailHeader+" ⏩ "+_gText.siteName)+"&body="+(n?n+", ":"")+encodeURIComponent(_gText.protMailBody+(i?location.origin+i:getUrl()))+"%0D%0A%0D%0A")}).on("click","a[data-protecttel]",function(t){var e=$(this).data("protecttel").toString().split("").reverse().join("")
e&&(gtag("event","Contact",{event_category:"tel"}),window.location.href="tel:"+e)}).on("click",".card .hover",function(t){if(!$(t.target).hasClass("zag")){var e=$(this).find(".title a.zag").attr("href")
e&&(window.location.href=e)}}).on("click",".pdf-viewer",function(){var t=$(this).find("object")
"function"==typeof Element.prototype.requestFullscreen?t[0].requestFullscreen():window.open(t.attr("data"),"_blank")}).on("click","a#moreH:visible",function(){var t=$(this),e=t.attr("kolrow")
t.length&&(moreLineWas=!0,porNum=parseInt(t.attr("numM")),t.attr("numM",porNum+1),t.hide(),moreLinePos=t,$._ajax({url:"/ajax/small.php",data:"queryMore1="+encodeURIComponent(t.prev().find(">span:eq(0)").text())+"&queryOrder="+encodeURIComponent(t.prev().find(">span:eq(1)").text())+"&kolrow="+e+"&dbn="+t.attr("dbn")+"&city="+(t.attr("data-city")?1:0)+"&ava="+(t.attr("data-ava")?1:0)+"&perelM="+t.attr("perelM")+"&lang="+lng+"&numM="+porNum,success:function(e){if(e){var i=$(e)
t.prev().before(i),40==i.find(".media-text").length?(moreLineWas=!1,t.show()):(moreLinePos=$("a[kolrow]:last"),moreLinePos.length&&(moreLineWas=!1)),lazyLoad()}}}))}).on("click","a[data-city-chage-ev]",function(){evChangeCity($(this).data("city-chage-ev"))}).on("click",".share-link-input :text",function(){$(this).select(),document.execCommand&&(document.execCommand("copy"),$.alrt(_gText.buffCopy))}).on("click","*[data-setname]",function(){siteSetting._set($(this).data("setname"),$(this).data("setval"))}).on("click",".dropdown-toggle.position-auto",function(){$(this).positionAuto()}).on("click","*[data-comment]",commentsObj.init).tooltip({selector:'[data-toggle="tooltip"]'}),$(".mark").mark()
var e=$('a[kolrow][dbn!="act"]:last')
e.length&&(moreLinePos=e,moreLinePos.offset().top<$(window).scrollTop()+$(window).height()&&e.click()),1==addButtonEl.length&&_gVar.user&&$("#user-menu-top li:eq(2)").after('<li><a class="addbutclick">'+addButtonEl.html()+'</a></li><li class="divider"></li>'),$("body").on("click","*[data-delete]:not(.disabled),*[data-up]",function(){function t(t){var e
t.attr("data-data")&&(e=JSON.parse('{"'+decodeURIComponent(t.attr("data-data").replace(/&/g,'","').replace(/=/g,'":"'))+'"}'),e.lang=lng),$._ajax({url:"/addform/"+e.db+"_ajax.php",data:e,wss:t.attr("data-wss"),dataType:"json",success:function(i){if(killloader(),i.error)return void $.alrt(i.error,"error")
if(gtag("event",t.attr("data-gmodal")||"Modal",{event_category:e.db,event_label:t.attr("data-ganame")||(t.attr("data-delete")?"delete":"up")}),e.update&&window[e.update])window[e.update](i,t)
else if("comment1"==e.db)$("#comment_"+e.var1+e.descr).trigger("reloadContent")
else{if(t.attr("data-wss"))return
reloadPage()}}})}!function(e){e.attr("data-delete")?$.alrt((e.attr("data-text")||_gText.del)+"?","dialog",{buttonYes:{text:e.data("yestext")||"",type:e.data("yestype")||"",icon:e.data("yesicon")||""},callbackYes:function(){t(e)}}):t(e)}($(this))}).on("click","*[www]",function(t){var e=$(this).attr("www")
if(e)if(t.stopPropagation(),-1!=e.indexOf("mailto"))window.open(e,"_parent")
else{e=e.replace(/^:?\/\//,"")
var i="/"==e.charAt(0),n=i&&!$(this).attr("data-blank")?"_parent":"_blank"
window.open((i||-1!=e.toLowerCase().indexOf("http://")||-1!=e.toLowerCase().indexOf("https://")?"":"https://")+e,n)}}).on("click","*[data-open]",function(t){t.preventDefault()
var e=$(this),i=!0,n=e.attr("data-open"),o=e.data("action")||"",s=e.data("regurl")||"",r=e.data("popstate"),a=e.data("openparent"),l=e.data("fixed"),c=e.attr("data-size")||"md",d=e.attr("data-url")||"/addform/"+n+".php",u=e.attr("data-data"),h=u?u+"&":"",p=$("#"+n),f=$(".modal:visible"),m=f.length,g=e.closest(".modal"),v=r||a&&g.length,y=function(){f.each(function(){$(this).data("popstate",!0).data("scroll",$(this).scrollTop()).removeClass("fade").bsmodal("hide")})}
p.length?p.is(":visible")||(m&&y(),p.bsmodal("show"),$(".tooltip.fade").remove(),r&&p.data("scroll")&&p.scrollTop(p.data("scroll"))):i=$._ajax({url:d,data:h+"lang="+lng,success:function(t){var e
if("error"===t)return void $.alrt(_gText.error,"error")
if(m){if(a){var i=$('<button type="button" class="close"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>')
return g.find(".modal-content").append('<div class="sub-modal-content">'+t+"</div>"),$("#"+n).find(".modal-header").prepend(i),void i.click(function(){g.find(".sub-modal-content").remove()})}y()}$(l||"body").append('<div id="'+n+'" class="modal'+(m?"":" fade")+'" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog modal-'+c+'"><div class="modal-backdrop formap hide"></div><div class="modal-content">'+t+"</div></div></div>"),e=$("#"+n),e.on("shown.bs.modal",function(){var t=$(window)
topPos=t.scrollTop(),_gVar.isMobile&&topPos&&(_gVar.modalFixPosition=topPos,setTimeout(function(){t.scrollTop(0)},30))}).on("hide.bs.modal",function(){_gVar.isMobile&&_gVar.modalFixPosition&&($(window).scrollTop(_gVar.modalFixPosition),_gVar.modalFixPosition=0)}).bsmodal("show").find(".modal-header").prepend('<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'),$(".tooltip.fade").remove(),movie({gallery:!0}),$("*[data-toggle='popover']").each(function(){var t=$(this),e=t.find(".popover-text"),i={trigger:t.data("trigger")||"hover",placement:t.data("placement")||function(){var t="top"
return this.$element.after(this.$tip),this.$element.offset().top-window.scrollY<this.$tip.height()&&(t="bottom"),this.$tip.remove(),t}}
e.length&&(i.content=e.html(),i.html=!0),t.popover(i)})}}),$.when(i).then(function(){if(!v&&i){var t=[],o=e.data()
for(var s in o)s&&-1!==["open","data","action","regurl","size","url","ganame"].indexOf(s)&&t.push("data-"+s+'="'+o[s]+'"')
historyst(null,{modal:n,datah:JSON.stringify(t)}),gtag("event","Modal",{event_category:e.data("ganame")||n,event_label:"open"})}}),"reg1"==n&&(_gVar.regAction=o,_gVar.regUrl=s)}).on("click",".descr-menu",function(t){t.stopPropagation()}).on("click",".descr-open",function(t){var e=$(this).find(".descr-menu textarea")
$(this).find(".descr-menu").toggleClass("hide"),e.data("autosize")||(e.data("autosize",!0),autosize(e)),e.focus(),t.stopPropagation()}).on("click",".addbutclick",function(t){var e=$(".btn-add[data-open]")
e.length&&(e.click(),t.preventDefault())}).on("click","*[data-ajax]",function(t){pageAjax.load($(this).attr("href"),".container-fluid.main .adver:first"),t.preventDefault()}).on("hide.bs.modal",".modal",function(t){modalHistoryBack($(this))}).on("show.bs.modal",".modal",function(t){$(".adsbygoogle.adsbygoogle-noablate:visible").css({"z-index":1e3})}),_gVar.isMobile||$("body").on("mouseenter","#listshow .card",function(){$(this).find(".img-cover[data-imgset]").rotateImg().start()}).on("mouseleave","#listshow .card",function(){$(this).find(".img-cover[data-imgset]").rotateImg().stop()})
var i=window.location.hash
if(i&&/^#[a-z0-9\-\_]*$/i.test(i)){var n=$(i)
history&&history.replaceState&&!$('*[name="'+i.replace("#","")+'"]').length&&history.replaceState(history.state,document.title,window.location.href.replace(i,"")),n.length&&n.click()}_gVar.isIOS&&window.visualViewport&&(visualViewport.addEventListener("scroll",t),visualViewport.addEventListener("resize",t)),window.addEventListener("offline",function(){_gVar.timerOffline=setTimeout(function(){$.alrt(_gText.offline,"error"),delete _gVar.timerOffline},3e3)}),window.addEventListener("online",function(){_gVar.timerOffline?clearTimeout(_gVar.timerOffline):$.alrt(_gText.online,"success")}),movie(),modalHistoryTrigger()}),jQuery.fn.scrlTo=function(){var t=$(".modal.in:visible"),e=$(this)
e.length&&(t.length||(t=$("html, body")),t.animate({scrollTop:e.position().top},500))},jQuery.fn.inView=function(t){var e="function"==typeof Element.prototype.getBoundingClientRect&&$(this)[0].getBoundingClientRect(),i=$(window).height(),t=t||0
return isOperaMini||!e||i+t>e.top&&-t<e.bottom},jQuery.fn.positionAuto=function(){if("function"==typeof Element.prototype.getBoundingClientRect&&$(this).length){var t=$(this),e=t[0].getBoundingClientRect(),i=$(window)
t.hasClass("position-height")||t.parent().find(".dropdown-menu").toggleClass("pull-right",e.left>i.width()/2),t.parent().toggleClass("dropup",i.height()-e.top<i.height()/4)}}
for(var i=0;i<functionRun.length;i++)functionRun[i]()
$.widget("custom.combobox",{_create:function(){this.wrapper=$("<div>").addClass("input-loader ui-front").insertAfter(this.element),this.element.hide(),this._createAutocomplete(),this._createShowAllButton()},_createAutocomplete:function(){var t=this.element.children(":selected"),e=t.val()?t.text():""
this.input=$("<input>").appendTo(this.wrapper).val(e).attr("title","").addClass("form-control").autocomplete({delay:0,minLength:0,source:$.proxy(this,"_source")}).focus(function(){$(this).select()}),this._on(this.input,{autocompleteselect:function(t,e){var i=this
e.item.option.selected=!0,this._trigger("select",t,{item:e.item.option}),this.input.val(e.item.label).prop("disabled",!0),setTimeout(function(){i.input.prop("disabled",!1)},100)},autocompletechange:"_removeIfInvalid"})},_createShowAllButton:function(){var t=this.input,e=!1
$("<div>").attr("tabIndex",-1).html('<span class="glyphicon-dropdown"></span>').appendTo(this.wrapper).addClass("select flex").on("mousedown",function(){e=t.autocomplete("widget").is(":visible")}).on("click",function(){e||t.autocomplete("search","")})},_source:function(t,e){var i=new RegExp($.ui.autocomplete.escapeRegex(t.term),"i")
this.input.autocomplete("widget").scrollTop(0),e(this.element.children("option").map(function(){var e=$(this).text()
if(this.value&&(!t.term||i.test(e)))return{label:e,value:e,option:this}}))},_removeIfInvalid:function(t,e){if(!e.item){var i=this.input.val().toLowerCase(),n=!1
this.element.children("option").each(function(){if($(this).text().toLowerCase()===i)return this.selected=n=!0,!1}),n||(this.input.val(this.element.find(":selected").text()),this.input.autocomplete("instance").term="")}},_destroy:function(){this.wrapper.remove(),this.element.show()}}),String.prototype.hashCode=function(){var t=0
if(0==this.length)return t
for(i=0;i<this.length;i++)char=this.charCodeAt(i),t=(t<<5)-t+char,t&=t
return t}
