(window.webpackJsonp=window.webpackJsonp||[]).push([["app_book_page_js"],{"+2oP":function(t,e,i){"use strict";var n=i("I+eb"),s=i("hh1v"),o=i("6LWA"),r=i("I8vh"),a=i("UMSQ"),l=i("/GqU"),c=i("hBjN"),u=i("tiKp"),h=i("Hd5f"),d=i("rkAj"),p=h("slice"),f=d("slice",{ACCESSORS:!0,0:0,1:2}),m=u("species"),g=[].slice,v=Math.max;n({target:"Array",proto:!0,forced:!p||!f},{slice:function(t,e){var i,n,u,h=l(this),d=a(h.length),p=r(t,d),f=r(void 0===e?d:e,d);if(o(h)&&("function"!=typeof(i=h.constructor)||i!==Array&&!o(i.prototype)?s(i)&&null===(i=i[m])&&(i=void 0):i=void 0,i===Array||void 0===i))return g.call(h,p,f);for(n=new(void 0===i?Array:i)(v(f-p,0)),u=0;p1?arguments[1]:void 0)}))},"0jCd":function(t,e,i){(function(t){i("yXV3"),i("toAj"),i("rB9j"),i("UxlC"),t(document).ready((function(){t(document).on("click",".changeFormat",(function(e){e.preventDefault();var i=t(this).attr("ids"),n=t(this).attr("idspanel")?t(this).attr("idspanel"):i,s=t(this).attr("troya"),o=t(this).attr("status"),r=parseFloat(t(this).attr("price")),a=parseFloat(t(this).attr("constprice")),l=t(this).attr("termin_end"),c=t(this).attr("punkty"),u=(parseFloat(a.toFixed(2)-r.toFixed(2)).toFixed(2)/parseFloat(a.toFixed(2))*100).toFixed(0),h=t("."+n+"-link p.cover"),d=t("img[ident="+n+"]"),p=t(this).attr("xfory_active");if(0==(f=t(".tags-special-"+n)).length)var f=t(".tags-special-"+i);var m=t(this).attr("termin_promo");1==p?(d.addClass("cover-xfory"),f&&f.addClass("tags-special-xfory")):(d.removeClass("cover-xfory"),f&&f.removeClass("tags-special-xfory"));var g=t(this).attr("shared_cover_ebook"),v=t(this).attr("shared_cover_audio"),y=t(this).parent("ul"),b=t(".isTester").html(),_="/zakupy/add.cgi?troya=",w=t(this).attr("temat"),x="",k="",C="";t("#"+n).siblings(".powiadomMnie").replaceWith(C),0==o?(x="Niedostępna",k="price"):1==o?r '+r.toFixed(2)+" zł \n"+a.toFixed(2)+"zł (-"+u+"%)":' '+r.toFixed(2)+" zł \n"+a.toFixed(2)+"zł (-"+u+"%)",k="price price-incart"):(_+=s,w&&(_+="&helion_utm=1&type=tematy&utm_id="+w+"&ident="+i),x=1==b?' '+a.toFixed(2)+" zł ":' '+r.toFixed(2)+" zł \n",k="price price-add"):7==o&&""!=l||2==o&&""!=l?(_+=s,w&&(_+="&helion_utm=1&type=tematy&utm_id="+w+"&ident="+i),7==o&&(_=""),x=1==b?' '+r.toFixed(2)+" zł \n":' '+r.toFixed(2)+" zł \n",x+='",k="price price-time price-time-incart"):2==o?(x="W przygotowaniu",k="price",C='0?arguments[0]:void 0,u=this,p=[];if(S(u,{type:"URLSearchParams",entries:p,updateURL:function(){},updateSearchParams:F}),void 0!==c)if(g(c))if("function"==typeof(t=_(c)))for(i=(e=t.call(c)).next;!(n=i.call(e)).done;){if((r=(o=(s=b(m(n.value))).next).call(s)).done||(a=o.call(s)).done||!o.call(s).done)throw TypeError("Expected sequence with length 2");p.push({key:r.value+"",value:a.value+""})}else for(l in c)d(c,l)&&p.push({key:l,value:c[l]+""});else N(p,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},W=H.prototype;a(W,{append:function(t,e){z(arguments.length,2);var i=T(this);i.entries.push({key:t+"",value:e+""}),i.updateURL()},delete:function(t){z(arguments.length,1);for(var e=T(this),i=e.entries,n=t+"",s=0;st.key){s.splice(e,0,t);break}e===i&&s.push(t)}n.updateURL()},forEach:function(t){for(var e,i=T(this).entries,n=p(t,arguments.length>1?arguments[1]:void 0,3),s=0;s1&&(g(e=arguments[1])&&(i=e.body,"URLSearchParams"===f(i)&&((n=e.headers?new k(e.headers):new k).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=v(e,{body:y(0,String(i)),headers:y(0,n)}))),s.push(e)),x.apply(this,s)}}),t.exports={URLSearchParams:H,getState:T}},"4mDm":function(t,e,i){"use strict";var n=i("/GqU"),s=i("RNIs"),o=i("P4y1"),r=i("afO8"),a=i("fdAy"),l=r.set,c=r.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){l(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,s("keys"),s("values"),s("entries")},"4syw":function(t,e,i){var n=i("busE");t.exports=function(t,e,i){for(var s in e)n(t,s,e[s],i);return t}},"5/td":function(t,e,i){var n=i("apSV").f,s=i("O1gm"),o=i("E3GT")("toStringTag");t.exports=function(t,e,i){t&&!s(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},"529G":function(t,e,i){"use strict";i.r(e),function(t,e){i("QWBl"),i("yXV3"),i("oVuX"),i("+2oP"),i("toAj"),i("rB9j"),i("UxlC"),i("EnZy"),i("FZtP"),i("SxSM"),i("zljt"),i("d0Ka"),i("VMWx");var n=i("Q9e/"),s=(i("e+nV"),i("0jCd"),i("jcms"),i("SnCB"),i("Qsl/"),i("Hf46"),i("ZhaE"),i("IM5k")),o=i("6Qg/");i("4iyW"),i("V7j+"),i("86pE"),i("p8Vz"),i("wXAc"),i("SkcH"),i("i2Lv");function r(t,e){for(var i=0;i '+n.toFixed(2)+" zł \n"+s.toFixed(2)+" zł("+r.toFixed(2)+" zł najniższa cena z 30 dni)"):(o+=i,content=''+s.toFixed(2)+" zł "),t("#changePolishPrice").html(content)}))},window.pokaz_spistresci=function(){e(".header-link").removeClass("active"),e("#header-link-spistresci").addClass("active"),e(".center-body").hide(),e("#center-body-spistresci").show()},window.przesun=l,window.opinions=function(t){e(".stars").click((function(){window.location="/user/opinie/"+t})),e(".icon-help").click((function(){window.open("https://videopoint.pl/videopoint_przewodnik_kadry.phtml","_blank")})),e(".header-link").click((function(){e(".header-link").removeClass("active"),e(this).addClass("active")})),e("#header-link-opis").click((function(){e(".center-body").hide(),e("#center-body-opis").show()})),e("#header-link-szczegoly").click((function(){e(".center-body").hide(),e("#center-body-szczegoly").show()})),e("#pokaz_recenzje").click((function(t){t.preventDefault(),e("#pokaz_recenzje").hide(),e("#ukryj_recenzje").show(),e("#section5 .slide-down").show()})),e("#ukryj_recenzje").click((function(t){t.preventDefault(),e("#pokaz_recenzje").show(),e("#ukryj_recenzje").hide(),e("#section5 .slide-down").hide(),window.location.href="#section5"})),e("#pokaz_opinie").click((function(t){t.preventDefault(),e("#pokaz_opinie").hide(),e("#ukryj_opinie").show(),e("#section4 .slide-down").show()})),e("#ukryj_opinie").click((function(t){t.preventDefault(),e("#pokaz_opinie").show(),e("#ukryj_opinie").hide(),e("#section4 .slide-down").hide(),window.location.href="#section4"}))},window.checkemail=function(t){if(!validEmail(t.email.value))return t.email.value&&alert("Należy wpisać poprawny adres e-mail."),t.email.focus(),t.email.select(),!1},window.livechat=function(t){img=window.open("https://helion.pl/livechat.html","Livechat","status=no,toolbar=no,scrollbars=yes,width=980,height=650"),t.preventDefault()},window.footer=function(){t("p:contains('@helion')").each((function(){if(-1==t(this).html().indexOf("href"));}))},window.bookVideo=function(i,n){var s=new jPlayerPlaylist({jPlayer:"#jquery_jplayer_TOP",cssSelectorAncestor:"#jp_container_TOP"},[{title:"Zwiastun",artist:i,m4v:"https://dwl01.helion.pl/trailers/trailer/"+n+"/video",poster:"https://dwl01.helion.pl/trailers/trailer/"+n+"/cover"}],{playlistOptions:{enableRemoveControls:!0},swfPath:"/jplayer/dist/jplayer",supplied:"webmv, ogv, m4v, oga, mp3",size:{width:"100%",height:"90%"},useStateClassSkin:!0,autoBlur:!1,smoothPlayBar:!0,keyEnabled:!0,audioFullScreen:!0,ended:function(){e(".play").show(),e(".header").css("z-index",40),e(".movie-description").show(),e("#main-video").css("opacity",.9),e(".movie-kurtyna").css("opacity",.2),e("#jp_container_TOP").hide()},click:function(){t.jPlayer.event.play&&(e(".play").show(),e(".header").css("z-index",40),e(".movie-description").show(),e("#main-video").css("opacity",.9),e(".movie-kurtyna").css("opacity",.2),e("#jp_container_TOP").hide(),t.jPlayer.pause())}});s.select(0),e("#play").click((function(){e(".play").hide(),e(".header").css("z-index",0),e(".movie-description").hide(),e("#main-video").css("opacity",1),e(".movie-kurtyna").css("opacity",1),e("#jp_container_TOP").css("z-index",98),e("#jp_container_TOP").show(),s.play(0)})),e("#jp_container_TOP .jp-stop").click((function(){e(".play").show(),e(".header").css("z-index",40),e(".movie-description").show(),e("#main-video").css("opacity",.9),e(".movie-kurtyna").css("opacity",.2),e("#jp_container_TOP").hide(),s.stop()}))},window.blik=n.a,window.Fingerprint2=o,window.change=s,document.addEventListener("DOMContentLoaded",(function(e){c=setTimeout((function(){t(".link-menu a").on("click",(function(e){if(t(".main-menu-container").hasClass("showed"))t(".main-menu-container").removeClass("showed"),t(".main-menu-container").animate({left:-480},(function(){t(document).hide()}));else{t(".main-menu-container").addClass("showed");t(".main-menu-container").css({height:1100}),t(".main-menu-container").show(),t(".main-menu-container").animate({left:-200}),e.stopPropagation()}e.preventDefault()})),t(document).click((function(){t(".main-menu-container").hasClass("showed")&&(t(".main-menu-container").removeClass("showed"),t(".main-menu-container").animate({left:-600},(function(){t(this).hide()})))}))}),1e3),a.update_checkboxes(),document.addEventListener("change",(function(t){if(t.target.matches(".sets-border .set-generated input")){a.update_checkboxes();var e=t.target.dataset.format;a.change_set_data(t.target,e)}}))})),t(".page-tools .link-search a").click((function(e){t(".page-tools form").addClass("active"),t("#inputSearch")[0].focus(),e.preventDefault()})),t(".page-tools .link-closesearch a").click((function(e){t(".page-tools form").removeClass("active"),e.preventDefault()})),window.innerWidth<1160&&t(".your-profile p a").click((function(e){t(".user-tools").toggleClass("active"),e.preventDefault()})),t(".user-tools").click((function(t){t.stopPropagation()})),t(document).click((function(){t(".user-tools").removeClass("active")}));var c=null;1==(t(".isTester").html()?t(".isTester").html():0)&&t(".cart").attr("id","modalBtn");t(".subpage-toolbar-right #modalBtn").hover((function(){!0;var e=t(".isTester").html()?t(".isTester").html():0,i=document.getElementById("modalCart");if(window.innerWidth>1100){var n=(t("header").width()-t("header #headerContainer").width())/2-41;i.style.width=n+"px"}else 1==e&&(document.getElementById("szukanie").style.display="none");1==e&&troyas.length>0&&-1==window.location.href.indexOf("/zakupy/")&&(i.style.display="block")}),(function(){var t=document.getElementById("modalCart");c=setTimeout((function(){t.style.display="none"}),5e3)})),t("#modalCart").hover((function(){c&&clearTimeout(c);for(var t=setTimeout(";"),e=0;e1400?i.style.top="45px":i.style.top="0px"}),800)})),"undefined"!=typeof zestd&&zestd.oblCene(),"undefined"!=typeof zeste&&zeste.oblCene(),"undefined"!=typeof zestw&&zestw.oblCene(),"undefined"!=typeof zest3&&zest3.oblCene(),t("#bookRotate").click((function(e){t("#mainBookCover").toggle("100"),t("#mainBookCoverTwo").toggle("100"),e.preventDefault()})),e(".zawartosccd,.wysylka24,#beta a").fancybox({autoScale:!0,type:"iframe"}),e(".uwagiDoKursu").click((function(t){t.preventDefault(),e(".layerPowiadom").css("display","block"),e(".popupLayerUwagiDK").css("display","block")})),e(".drukOnDemand").click((function(i){i.preventDefault();var n=e(this).attr("data-top_margin"),s=e(this).attr("data-bottom_margin");n=parseInt(n),s=parseInt(s),0==n?(e(".popupLayerOnDemand").css("top","50px"),e(".popupLayerOnDemand").css("bottom",s)):e(".popupLayerOnDemand").css("top",n),t(window).scrollTop(0),e(".layerPowiadom").css("display","block"),e(".popupLayerOnDemand").css("display","block")})),document.addEventListener("touchstart",(function(t){var e=function(t){return t.touches||t.originalEvent.touches}(t)[0];u=e.clientX,h=e.clientY}),!1),document.addEventListener("touchmove",(function(e){if(!u||!h)return;var i=e.touches[0].clientX,n=e.touches[0].clientY,s=window.innerWidth,o=e.touches[0].target.closest(".showed"),r=u-i,a=h-n;Math.abs(r)>Math.abs(a)&&r>0&&o&&o.classList.contains("showed")&&s<700&&(t(".main-menu-container").removeClass("showed"),t(".main-menu-container").animate({left:-600},(function(){t(document).hide()})));u=null,h=null}),!1);var u=null,h=null}.call(this,i("EVdn"),i("EVdn"))},"529Z":function(t,e,i){var n=i("dMHt"),s=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?s(i+e,0):o(i,e)}},"5DmW":function(t,e,i){var n=i("I+eb"),s=i("0Dky"),o=i("/GqU"),r=i("Bs8V").f,a=i("g6v/"),l=s((function(){r(1)}));n({target:"Object",stat:!0,forced:!a||l,sham:!a},{getOwnPropertyDescriptor:function(t,e){return r(o(t),e)}})},"5NP/":function(t,e,i){var n=i("huUE"),s=i("uTd1"),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(s(o))},"5ORi":function(t,e,i){var n=i("huUE"),s=i("1Vse"),o=i("A5TO"),r=i("pgCt"),a=i("E3GT"),l=a("iterator"),c=a("toStringTag"),u=o.values;for(var h in s){var d=n[h],p=d&&d.prototype;if(p){if(p[l]!==u)try{r(p,l,u)}catch(t){p[l]=u}if(p[c]||r(p,c,h),s[h])for(var f in o)if(p[f]!==o[f])try{r(p,f,o[f])}catch(t){p[f]=o[f]}}}},"5Re+":function(t,e,i){var n=i("huUE"),s=i("pgCt");t.exports=function(t,e){try{s(n,t,e)}catch(i){n[t]=e}return e}},"5Tg+":function(t,e,i){var n=i("tiKp");e.f=n},"5Yz+":function(t,e,i){"use strict";var n=i("/GqU"),s=i("ppGB"),o=i("UMSQ"),r=i("pkCn"),a=i("rkAj"),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,h=r("lastIndexOf"),d=a("indexOf",{ACCESSORS:!0,1:0}),p=u||!h||!d;t.exports=p?function(t){if(u)return c.apply(this,arguments)||0;var e=n(this),i=o(e.length),r=i-1;for(arguments.length>1&&(r=l(r,s(arguments[1]))),r<0&&(r=i+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}:c},"5ggy":function(t,e,i){"use strict";i("HnYJ");var n,s=i("Cjdr"),o=i("35oP"),r=i("hU18"),a=i("huUE"),l=i("wv+u"),c=i("JNGO"),u=i("NMyJ"),h=i("O1gm"),d=i("mFgU"),p=i("cwcO"),f=i("cY7b").codeAt,m=i("6Azs"),g=i("5/td"),v=i("4m+E"),y=i("uL4R"),b=a.URL,_=v.URLSearchParams,w=v.getState,x=y.set,k=y.getterFor("URL"),C=Math.floor,S=Math.pow,T=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,E=/\d/,A=/^(0x|0X)/,D=/^[0-7]+$/,j=/^\d+$/,M=/^[\dA-Fa-f]+$/,I=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,O=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,R=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,L=/[\u0009\u000A\u000D]/g,N=function(t,e){var i,n,s;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(i=z(e.slice(1,-1))))return"Invalid host";t.host=i}else if(Y(t)){if(e=m(e),I.test(e))return"Invalid host";if(null===(i=F(e)))return"Invalid host";t.host=i}else{if(O.test(e))return"Invalid host";for(i="",n=p(e),s=0;s4)return t;for(i=[],n=0;n1&&"0"==s.charAt(0)&&(o=A.test(s)?16:8,s=s.slice(8==o?1:2)),""===s)r=0;else{if(!(10==o?j:8==o?D:M).test(s))return t;r=parseInt(s,o)}i.push(r)}for(n=0;n=S(256,5-e))return null}else if(r>255)return null;for(a=i.pop(),n=0;n6)return;for(n=0;d();){if(s=null,n>0){if(!("."==d()&&n<4))return;h++}if(!E.test(d()))return;for(;E.test(d());){if(o=parseInt(d(),10),null===s)s=o;else{if(0==s)return;s=10*s+o}if(s>255)return;h++}l[c]=256*l[c]+s,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[c++]=e}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(r=c-u,c=7;0!=c&&r>0;)a=l[c],l[c--]=l[u+r-1],l[u+--r]=a;else if(8!=c)return;return l},B=function(t){var e,i,n,s;if("number"==typeof t){for(e=[],i=0;i<4;i++)e.unshift(t%256),t=C(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,i=1,n=null,s=0,o=0;o<8;o++)0!==t[o]?(s>i&&(e=n,i=s),n=null,s=0):(null===n&&(n=o),++s);return s>i&&(e=n,i=s),e}(t),i=0;i<8;i++)s&&0===t[i]||(s&&(s=!1),n===i?(e+=i?":":"::",s=!0):(e+=t[i].toString(16),i<7&&(e+=":")));return"["+e+"]"}return t},H={},W=d({},H,{" ":1,'"':1,"<":1,">":1,"`":1}),q=d({},W,{"#":1,"?":1,"{":1,"}":1}),U=d({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),V=function(t,e){var i=f(t,0);return i>32&&i<127&&!h(e,t)?t:encodeURIComponent(t)},G={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(t){return h(G,t.scheme)},K=function(t){return""!=t.username||""!=t.password},X=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Z=function(t,e){var i;return 2==t.length&&T.test(t.charAt(0))&&(":"==(i=t.charAt(1))||!e&&"|"==i)},$=function(t){var e;return t.length>1&&Z(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},J=function(t){var e=t.path,i=e.length;!i||"file"==t.scheme&&1==i&&Z(e[0],!0)||e.pop()},Q=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},it={},nt={},st={},ot={},rt={},at={},lt={},ct={},ut={},ht={},dt={},pt={},ft={},mt={},gt={},vt={},yt={},bt={},_t={},wt=function(t,e,i,s){var o,r,a,l,c,u=i||tt,d=0,f="",m=!1,g=!1,v=!1;for(i||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(R,"")),e=e.replace(L,""),o=p(e);d<=o.length;){switch(r=o[d],u){case tt:if(!r||!T.test(r)){if(i)return"Invalid scheme";u=it;continue}f+=r.toLowerCase(),u=et;break;case et:if(r&&(P.test(r)||"+"==r||"-"==r||"."==r))f+=r.toLowerCase();else{if(":"!=r){if(i)return"Invalid scheme";f="",u=it,d=0;continue}if(i&&(Y(t)!=h(G,f)||"file"==f&&(K(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=f,i)return void(Y(t)&&G[t.scheme]==t.port&&(t.port=null));f="","file"==t.scheme?u=pt:Y(t)&&s&&s.scheme==t.scheme?u=nt:Y(t)?u=at:"/"==o[d+1]?(u=st,d++):(t.cannotBeABaseURL=!0,t.path.push(""),u=yt)}break;case it:if(!s||s.cannotBeABaseURL&&"#"!=r)return"Invalid scheme";if(s.cannotBeABaseURL&&"#"==r){t.scheme=s.scheme,t.path=s.path.slice(),t.query=s.query,t.fragment="",t.cannotBeABaseURL=!0,u=_t;break}u="file"==s.scheme?pt:ot;continue;case nt:if("/"!=r||"/"!=o[d+1]){u=ot;continue}u=lt,d++;break;case st:if("/"==r){u=ct;break}u=vt;continue;case ot:if(t.scheme=s.scheme,r==n)t.username=s.username,t.password=s.password,t.host=s.host,t.port=s.port,t.path=s.path.slice(),t.query=s.query;else if("/"==r||"\\"==r&&Y(t))u=rt;else if("?"==r)t.username=s.username,t.password=s.password,t.host=s.host,t.port=s.port,t.path=s.path.slice(),t.query="",u=bt;else{if("#"!=r){t.username=s.username,t.password=s.password,t.host=s.host,t.port=s.port,t.path=s.path.slice(),t.path.pop(),u=vt;continue}t.username=s.username,t.password=s.password,t.host=s.host,t.port=s.port,t.path=s.path.slice(),t.query=s.query,t.fragment="",u=_t}break;case rt:if(!Y(t)||"/"!=r&&"\\"!=r){if("/"!=r){t.username=s.username,t.password=s.password,t.host=s.host,t.port=s.port,u=vt;continue}u=ct}else u=lt;break;case at:if(u=lt,"/"!=r||"/"!=f.charAt(d+1))continue;d++;break;case lt:if("/"!=r&&"\\"!=r){u=ct;continue}break;case ct:if("@"==r){m&&(f="%40"+f),m=!0,a=p(f);for(var y=0;y65535)return"Invalid port";t.port=Y(t)&&w===G[t.scheme]?null:w,f=""}if(i)return;u=gt;continue}return"Invalid port"}f+=r;break;case pt:if(t.scheme="file","/"==r||"\\"==r)u=ft;else{if(!s||"file"!=s.scheme){u=vt;continue}if(r==n)t.host=s.host,t.path=s.path.slice(),t.query=s.query;else if("?"==r)t.host=s.host,t.path=s.path.slice(),t.query="",u=bt;else{if("#"!=r){$(o.slice(d).join(""))||(t.host=s.host,t.path=s.path.slice(),J(t)),u=vt;continue}t.host=s.host,t.path=s.path.slice(),t.query=s.query,t.fragment="",u=_t}}break;case ft:if("/"==r||"\\"==r){u=mt;break}s&&"file"==s.scheme&&!$(o.slice(d).join(""))&&(Z(s.path[0],!0)?t.path.push(s.path[0]):t.host=s.host),u=vt;continue;case mt:if(r==n||"/"==r||"\\"==r||"?"==r||"#"==r){if(!i&&Z(f))u=vt;else if(""==f){if(t.host="",i)return;u=gt}else{if(l=N(t,f))return l;if("localhost"==t.host&&(t.host=""),i)return;f="",u=gt}continue}f+=r;break;case gt:if(Y(t)){if(u=vt,"/"!=r&&"\\"!=r)continue}else if(i||"?"!=r)if(i||"#"!=r){if(r!=n&&(u=vt,"/"!=r))continue}else t.fragment="",u=_t;else t.query="",u=bt;break;case vt:if(r==n||"/"==r||"\\"==r&&Y(t)||!i&&("?"==r||"#"==r)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(J(t),"/"==r||"\\"==r&&Y(t)||t.path.push("")):Q(f)?"/"==r||"\\"==r&&Y(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Z(f)&&(t.host&&(t.host=""),f=f.charAt(0)+":"),t.path.push(f)),f="","file"==t.scheme&&(r==n||"?"==r||"#"==r))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==r?(t.query="",u=bt):"#"==r&&(t.fragment="",u=_t)}else f+=V(r,q);break;case yt:"?"==r?(t.query="",u=bt):"#"==r?(t.fragment="",u=_t):r!=n&&(t.path[0]+=V(r,H));break;case bt:i||"#"!=r?r!=n&&("'"==r&&Y(t)?t.query+="%27":t.query+="#"==r?"%23":V(r,H)):(t.fragment="",u=_t);break;case _t:r!=n&&(t.fragment+=V(r,W))}d++}},xt=function(t){var e,i,n=u(this,xt,"URL"),s=arguments.length>1?arguments[1]:void 0,r=String(t),a=x(n,{type:"URL"});if(void 0!==s)if(s instanceof xt)e=k(s);else if(i=wt(e={},String(s)))throw TypeError(i);if(i=wt(a,r,null,e))throw TypeError(i);var l=a.searchParams=new _,c=w(l);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(l)||null},o||(n.href=Ct.call(n),n.origin=St.call(n),n.protocol=Tt.call(n),n.username=Pt.call(n),n.password=Et.call(n),n.host=At.call(n),n.hostname=Dt.call(n),n.port=jt.call(n),n.pathname=Mt.call(n),n.search=It.call(n),n.searchParams=Ot.call(n),n.hash=Rt.call(n))},kt=xt.prototype,Ct=function(){var t=k(this),e=t.scheme,i=t.username,n=t.password,s=t.host,o=t.port,r=t.path,a=t.query,l=t.fragment,c=e+":";return null!==s?(c+="//",K(t)&&(c+=i+(n?":"+n:"")+"@"),c+=B(s),null!==o&&(c+=":"+o)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):"",null!==a&&(c+="?"+a),null!==l&&(c+="#"+l),c},St=function(){var t=k(this),e=t.scheme,i=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Y(t)?e+"://"+B(t.host)+(null!==i?":"+i:""):"null"},Tt=function(){return k(this).scheme+":"},Pt=function(){return k(this).username},Et=function(){return k(this).password},At=function(){var t=k(this),e=t.host,i=t.port;return null===e?"":null===i?B(e):B(e)+":"+i},Dt=function(){var t=k(this).host;return null===t?"":B(t)},jt=function(){var t=k(this).port;return null===t?"":String(t)},Mt=function(){var t=k(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},It=function(){var t=k(this).query;return t?"?"+t:""},Ot=function(){return k(this).searchParams},Rt=function(){var t=k(this).fragment;return t?"#"+t:""},Lt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&l(kt,{href:Lt(Ct,(function(t){var e=k(this),i=String(t),n=wt(e,i);if(n)throw TypeError(n);w(e.searchParams).updateSearchParams(e.query)})),origin:Lt(St),protocol:Lt(Tt,(function(t){var e=k(this);wt(e,String(t)+":",tt)})),username:Lt(Pt,(function(t){var e=k(this),i=p(String(t));if(!X(e)){e.username="";for(var n=0;n>1,t+=r(t/e);t>455;n+=36)t=r(t/35);return r(n+36*t/(t+38))},u=function(t){var e,i,n=[],s=(t=function(t){for(var e=[],i=0,n=t.length;i=55296&&s<=56319&&i=u&&ir((2147483647-h)/g))throw RangeError(o);for(h+=(m-u)*g,u=m,e=0;e2147483647)throw RangeError(o);if(i==u){for(var v=h,y=36;;y+=36){var b=y<=d?1:y>=d+26?26:y-d;if(v=51||!s((function(){var t=[];return t[f]=!1,t.concat()[0]!==t})),g=h("concat"),v=function(t){if(!r(t))return!1;var e=t[f];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!m||!g},{concat:function(t){var e,i,n,s,o,r=a(this),h=u(r,0),d=0;for(e=-1,n=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(h,d++,o)}return h.length=d,h}})},"6Qg/":function(t,e,i){i("pNMO"),i("4Brf"),i("ma9I"),i("yyme"),i("QWBl"),i("yXV3"),i("4mDm"),i("oVuX"),i("2B1R"),i("+2oP"),i("sMBO"),i("5DmW"),i("07d7"),i("rB9j"),i("JfAA"),i("Rm1S"),i("z8NH"),i("moxL"),i("qXVe"),i("c162"),i("waxf"),i("0TkE"),i("Onu3"),i("1dYe"),i("gvgV"),i("6R/c"),i("YL0P"),i("X5Zq"),i("MoCz"),i("P8wP"),i("ypFw"),i("JaFt"),i("zSZm"),i("PF2M"),i("KVSy"),i("ZJ55"),i("IZzc"),i("Fwt+"),i("s5qe"),i("cvf0"),i("FZtP"),function(e,i,n){"use strict";"function"==typeof window.define&&window.define.amd?window.define(n):t.exports?t.exports=n():i.exports?i.exports=n():i.Fingerprint2=n()}(0,this,(function(){"use strict";var t=function t(e){if(!(this instanceof t))return new t(e);this.options=this.extend(e,{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",detectScreenOrientation:!0,sortPluginsFor:[/palemoon/i],userDefinedFonts:[]}),this.nativeForEach=Array.prototype.forEach,this.nativeMap=Array.prototype.map};return t.prototype={extend:function(t,e){if(null==t)return e;for(var i in t)null!=t[i]&&e[i]!==t[i]&&(e[i]=t[i]);return e},get:function(t){var e=this,i={data:[],addPreprocessedComponent:function(t){var i=t.value;"function"==typeof e.options.preprocessor&&(i=e.options.preprocessor(t.key,i)),this.data.push({key:t.key,value:i})}};i=this.userAgentKey(i),i=this.languageKey(i),i=this.colorDepthKey(i),i=this.pixelRatioKey(i),i=this.hardwareConcurrencyKey(i),i=this.screenResolutionKey(i),i=this.availableScreenResolutionKey(i),i=this.timezoneOffsetKey(i),i=this.sessionStorageKey(i),i=this.localStorageKey(i),i=this.indexedDbKey(i),i=this.addBehaviorKey(i),i=this.openDatabaseKey(i),i=this.cpuClassKey(i),i=this.platformKey(i),i=this.doNotTrackKey(i),i=this.pluginsKey(i),i=this.canvasKey(i),i=this.webglKey(i),i=this.webglVendorAndRendererKey(i),i=this.adBlockKey(i),i=this.hasLiedLanguagesKey(i),i=this.hasLiedResolutionKey(i),i=this.hasLiedOsKey(i),i=this.hasLiedBrowserKey(i),i=this.touchSupportKey(i),i=this.customEntropyFunction(i),this.fontsKey(i,(function(i){var n=[];e.each(i.data,(function(t){var e=t.value;void 0!==t.value.join&&(e=t.value.join(";")),n.push(e)}));var s=e.x64hash128(n.join("~~~"),31);return t(s,i.data)}))},customEntropyFunction:function(t){return"function"==typeof this.options.customFunction&&t.addPreprocessedComponent({key:"custom",value:this.options.customFunction()}),t},userAgentKey:function(t){return this.options.excludeUserAgent||t.addPreprocessedComponent({key:"user_agent",value:this.getUserAgent()}),t},getUserAgent:function(){return navigator.userAgent},languageKey:function(t){return this.options.excludeLanguage||t.addPreprocessedComponent({key:"language",value:navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||""}),t},colorDepthKey:function(t){return this.options.excludeColorDepth||t.addPreprocessedComponent({key:"color_depth",value:window.screen.colorDepth||-1}),t},pixelRatioKey:function(t){return this.options.excludePixelRatio||t.addPreprocessedComponent({key:"pixel_ratio",value:this.getPixelRatio()}),t},getPixelRatio:function(){return window.devicePixelRatio||""},screenResolutionKey:function(t){return this.options.excludeScreenResolution?t:this.getScreenResolution(t)},getScreenResolution:function(t){var e;return void 0!==(e=this.options.detectScreenOrientation&&window.screen.height>window.screen.width?[window.screen.height,window.screen.width]:[window.screen.width,window.screen.height])&&t.addPreprocessedComponent({key:"resolution",value:e}),t},availableScreenResolutionKey:function(t){return this.options.excludeAvailableScreenResolution?t:this.getAvailableScreenResolution(t)},getAvailableScreenResolution:function(t){var e;return window.screen.availWidth&&window.screen.availHeight&&(e=this.options.detectScreenOrientation?window.screen.availHeight>window.screen.availWidth?[window.screen.availHeight,window.screen.availWidth]:[window.screen.availWidth,window.screen.availHeight]:[window.screen.availHeight,window.screen.availWidth]),void 0!==e&&t.addPreprocessedComponent({key:"available_resolution",value:e}),t},timezoneOffsetKey:function(t){return this.options.excludeTimezoneOffset||t.addPreprocessedComponent({key:"timezone_offset",value:(new Date).getTimezoneOffset()}),t},sessionStorageKey:function(t){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&t.addPreprocessedComponent({key:"session_storage",value:1}),t},localStorageKey:function(t){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&t.addPreprocessedComponent({key:"local_storage",value:1}),t},indexedDbKey:function(t){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&t.addPreprocessedComponent({key:"indexed_db",value:1}),t},addBehaviorKey:function(t){return document.body&&!this.options.excludeAddBehavior&&document.body.addBehavior&&t.addPreprocessedComponent({key:"add_behavior",value:1}),t},openDatabaseKey:function(t){return!this.options.excludeOpenDatabase&&window.openDatabase&&t.addPreprocessedComponent({key:"open_database",value:1}),t},cpuClassKey:function(t){return this.options.excludeCpuClass||t.addPreprocessedComponent({key:"cpu_class",value:this.getNavigatorCpuClass()}),t},platformKey:function(t){return this.options.excludePlatform||t.addPreprocessedComponent({key:"navigator_platform",value:this.getNavigatorPlatform()}),t},doNotTrackKey:function(t){return this.options.excludeDoNotTrack||t.addPreprocessedComponent({key:"do_not_track",value:this.getDoNotTrack()}),t},canvasKey:function(t){return!this.options.excludeCanvas&&this.isCanvasSupported()&&t.addPreprocessedComponent({key:"canvas",value:this.getCanvasFp()}),t},webglKey:function(t){return!this.options.excludeWebGL&&this.isWebGlSupported()&&t.addPreprocessedComponent({key:"webgl",value:this.getWebglFp()}),t},webglVendorAndRendererKey:function(t){return!this.options.excludeWebGLVendorAndRenderer&&this.isWebGlSupported()&&t.addPreprocessedComponent({key:"webgl_vendor",value:this.getWebglVendorAndRenderer()}),t},adBlockKey:function(t){return this.options.excludeAdBlock||t.addPreprocessedComponent({key:"adblock",value:this.getAdBlock()}),t},hasLiedLanguagesKey:function(t){return this.options.excludeHasLiedLanguages||t.addPreprocessedComponent({key:"has_lied_languages",value:this.getHasLiedLanguages()}),t},hasLiedResolutionKey:function(t){return this.options.excludeHasLiedResolution||t.addPreprocessedComponent({key:"has_lied_resolution",value:this.getHasLiedResolution()}),t},hasLiedOsKey:function(t){return this.options.excludeHasLiedOs||t.addPreprocessedComponent({key:"has_lied_os",value:this.getHasLiedOs()}),t},hasLiedBrowserKey:function(t){return this.options.excludeHasLiedBrowser||t.addPreprocessedComponent({key:"has_lied_browser",value:this.getHasLiedBrowser()}),t},fontsKey:function(t,e){return this.options.excludeJsFonts?this.flashFontsKey(t,e):this.jsFontsKey(t,e)},flashFontsKey:function(t,e){return this.options.excludeFlashFonts?e(t):this.hasSwfObjectLoaded()&&this.hasMinFlashInstalled()?void 0===this.options.swfPath?e(t):void this.loadSwfAndDetectFonts((function(i){t.addPreprocessedComponent({key:"swf_fonts",value:i.join(";")}),e(t)})):e(t)},jsFontsKey:function(t,e){var i=this;return setTimeout((function(){var n=["monospace","sans-serif","serif"],s=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Garamond","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];i.options.extendedJsFonts&&(s=s.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),s=s.concat(i.options.userDefinedFonts);var o=document.getElementsByTagName("body")[0],r=document.createElement("div"),a=document.createElement("div"),l={},c={},u=function(){var t=document.createElement("span");return t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="72px",t.style.lineHeight="normal",t.innerHTML="mmmmmmmmmmlli",t},h=function(t,e){var i=u();return i.style.fontFamily="'"+t+"',"+e,i},d=function(t){for(var e=!1,i=0;ie.name?1:t.name=0?"Windows Phone":e.indexOf("win")>=0?"Windows":e.indexOf("android")>=0?"Android":e.indexOf("linux")>=0?"Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?"iOS":e.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==t&&"Android"!==t&&"iOS"!==t&&"Other"!==t)return!0;if(void 0!==i){if((i=i.toLowerCase()).indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t)return!0;if(i.indexOf("linux")>=0&&"Linux"!==t&&"Android"!==t)return!0;if(i.indexOf("mac")>=0&&"Mac"!==t&&"iOS"!==t)return!0;if((-1===i.indexOf("win")&&-1===i.indexOf("linux")&&-1===i.indexOf("mac"))!=("Other"===t))return!0}return n.indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t||((n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==t&&"Android"!==t||((n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==t&&"iOS"!==t||((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===t)||void 0===navigator.plugins&&"Windows"!==t&&"Windows Phone"!==t)))},getHasLiedBrowser:function(){var t,e=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(("Chrome"===(t=e.indexOf("firefox")>=0?"Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?"Opera":e.indexOf("chrome")>=0?"Chrome":e.indexOf("safari")>=0?"Safari":e.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===t||"Opera"===t)&&"20030107"!==i)return!0;var n,s=eval.toString().length;if(37===s&&"Safari"!==t&&"Firefox"!==t&&"Other"!==t)return!0;if(39===s&&"Internet Explorer"!==t&&"Other"!==t)return!0;if(33===s&&"Chrome"!==t&&"Opera"!==t&&"Other"!==t)return!0;try{throw"a"}catch(t){try{t.toSource(),n=!0}catch(t){n=!1}}return!(!n||"Firefox"===t||"Other"===t)},isCanvasSupported:function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},isWebGlSupported:function(){if(!this.isCanvasSupported())return!1;var t=this.getWebglCanvas();return!!window.WebGLRenderingContext&&!!t},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},hasSwfObjectLoaded:function(){return void 0!==window.swfobject},hasMinFlashInstalled:function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},addFlashDivNode:function(){var t=document.createElement("div");t.setAttribute("id",this.options.swfContainerId),document.body.appendChild(t)},loadSwfAndDetectFonts:function(t){window.___fp_swf_loaded=function(e){t(e)};var e=this.options.swfContainerId;this.addFlashDivNode();var i={onReady:"___fp_swf_loaded"};window.swfobject.embedSWF(this.options.swfPath,e,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})},getWebglCanvas:function(){var t=document.createElement("canvas"),e=null;try{e=t.getContext("webgl")||t.getContext("experimental-webgl")}catch(t){}return e||(e=null),e},each:function(t,e,i){if(null!==t)if(this.nativeForEach&&t.forEach===this.nativeForEach)t.forEach(e,i);else if(t.length===+t.length){for(var n=0,s=t.length;n>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var i=[0,0,0,0];return i[3]+=t[3]+e[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]+e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]+e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]+e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Multiply:function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var i=[0,0,0,0];return i[3]+=t[3]*e[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]*e[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=t[3]*e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]*e[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[2]*e[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[3]*e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Rotl:function(t,e){return 32===(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:(e-=32,[t[1]<>>32-e,t[0]<>>32-e])},x64LeftShift:function(t,e){return 0===(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=this.x64Multiply(t,[4283543511,3981806797]),t=this.x64Xor(t,[0,t[0]>>>1]),t=this.x64Multiply(t,[3301882366,444984403]),t=this.x64Xor(t,[0,t[0]>>>1])},x64hash128:function(t,e){e=e||0;for(var i=(t=t||"").length%16,n=t.length-i,s=[0,e],o=[0,e],r=[0,0],a=[0,0],l=[2277735313,289559509],c=[1291169091,658871167],u=0;u>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}},t.VERSION="1.5.1",t}))},"6R/c":function(t,e,i){"use strict";var n=i("67WC"),s=i("TWQb").indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(t){return s(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"6VoE":function(t,e,i){var n=i("tiKp"),s=i("P4y1"),o=n("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||r[o]===t)}},"7alY":function(t,e,i){"use strict";var n={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,o=s&&!n.call({1:2},1);e.f=o?function(t){var e=s(this,t);return!!e&&e.enumerable}:n},"83IY":function(t,e,i){var n,s,o=i("huUE"),r=i("2iHE"),a=o.process,l=a&&a.versions,c=l&&l.v8;c?s=(n=c.split("."))[0]+n[1]:r&&(!(n=r.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=r.match(/Chrome\/(\d+)/))&&(s=n[1]),t.exports=s&&+s},"86pE":function(t,e,i){(function(t){ /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ var e,n,s,o,r,a,l,c,u,h,d,p,f,m,g,v;i("TeQF"),i("fbCW"),i("yXV3"),i("4mDm"),i("+2oP"),i("07d7"),i("rB9j"),i("Rm1S"),i("UxlC"),i("EnZy"),i("SYor"),i("x83w"),i("3bBZ"),e=window,n=document,r=(s=t)("html"),a=s(e),l=s(n),c=s.fancybox=function(){c.open.apply(this,arguments)},u=navigator.userAgent.match(/msie/i),h=null,d=n.createTouch!==o,p=function(t){return t&&t.hasOwnProperty&&t instanceof s},f=function(t){return t&&"string"===s.type(t)},m=function(t){return f(t)&&0
',image:'',iframe:'",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:s.noop,beforeLoad:s.noop,afterLoad:s.noop,beforeShow:s.noop,afterShow:s.noop,beforeChange:s.noop,beforeClose:s.noop,afterClose:s.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(s.isPlainObject(e)||(e={}),!1!==c.close(!0)))return s.isArray(t)||(t=p(t)?s(t).get():[t]),s.each(t,(function(i,n){var r,a,l,u,h,d={};"object"===s.type(n)&&(n.nodeType&&(n=s(n)),p(n)?(d={href:n.data("fancybox-href")||n.attr("href"),title:s("
").text(n.data("fancybox-title")||n.attr("title")).html(),isDom:!0,element:n},s.metadata&&s.extend(!0,d,n.metadata())):d=n),r=e.href||d.href||(f(n)?n:null),a=e.title!==o?e.title:d.title||"",!(u=(l=e.content||d.content)?"html":e.type||d.type)&&d.isDom&&((u=n.data("fancybox-type"))||(u=(u=n.prop("class").match(/fancybox\.(\w+)/))?u[1]:null)),f(r)&&(u||(c.isImage(r)?u="image":c.isSWF(r)?u="swf":"#"===r.charAt(0)?u="inline":f(n)&&(u="html",l=n)),"ajax"===u&&(h=r.split(/\s+/,2),r=h.shift(),h=h.shift())),l||("inline"===u?r?l=s(f(r)?r.replace(/.*(?=#[^\s]+$)/,""):r):d.isDom&&(l=n):"html"===u?l=r:u||r||!d.isDom||(u="inline",l=n)),s.extend(d,{href:r,type:u,content:l,title:a,selector:h}),t[i]=d})),c.opts=s.extend(!0,{},c.defaults,e),e.keys!==o&&(c.opts.keys=!!e.keys&&s.extend({},c.defaults.keys,e.keys)),c.group=t,c._start(c.opts.index)},cancel:function(){var t=c.coming;t&&!1===c.trigger("onCancel")||(c.hideLoading(),t&&(c.ajaxLoad&&c.ajaxLoad.abort(),c.ajaxLoad=null,c.imgPreload&&(c.imgPreload.onload=c.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),c.coming=null,c.current||c._afterZoomOut(t)))},close:function(t){c.cancel(),!1!==c.trigger("beforeClose")&&(c.unbindEvents(),c.isActive&&(c.isOpen&&!0!==t?(c.isOpen=c.isOpened=!1,c.isClosing=!0,s(".fancybox-item, .fancybox-nav").remove(),c.wrap.stop(!0,!0).removeClass("fancybox-opened"),c.transitions[c.current.closeMethod]()):(s(".fancybox-wrap").stop(!0).trigger("onReset").remove(),c._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(c.player.timer)},i=function(){e(),c.current&&c.player.isActive&&(c.player.timer=setTimeout(c.next,c.current.playSpeed))},n=function(){e(),l.unbind(".player"),c.player.isActive=!1,c.trigger("onPlayEnd")};!0===t||!c.player.isActive&&!1!==t?c.current&&(c.current.loop||c.current.index=n.index?"next":"prev"],c.router=i||"jumpto",n.loop&&(0>t&&(t=n.group.length+t%n.group.length),t%=n.group.length),n.group[t]!==o&&(c.cancel(),c._start(t)))},reposition:function(t,e){var i,n=c.current,o=n?n.wrap:null;o&&(i=c._getPosition(e),t&&"scroll"===t.type?(delete i.position,o.stop(!0,!0).animate(i,200)):(o.css(i),n.pos=s.extend({},n.dim,i)))},update:function(t){var e=t&&t.originalEvent&&t.originalEvent.type,i=!e||"orientationchange"===e;i&&(clearTimeout(h),h=null),c.isOpen&&!h&&(h=setTimeout((function(){var n=c.current;n&&!c.isClosing&&(c.wrap.removeClass("fancybox-tmp"),(i||"load"===e||"resize"===e&&n.autoResize)&&c._setDimension(),"scroll"===e&&n.canShrink||c.reposition(t),c.trigger("onUpdate"),h=null)}),i&&!d?0:300))},toggle:function(t){c.isOpen&&(c.current.fitToView="boolean"===s.type(t)?t:!c.current.fitToView,d&&(c.wrap.removeAttr("style").addClass("fancybox-tmp"),c.trigger("onUpdate")),c.update())},hideLoading:function(){l.unbind(".loading"),s("#fancybox-loading").remove()},showLoading:function(){var t,e;c.hideLoading(),t=s('
').click(c.cancel).appendTo("body"),l.bind("keydown.loading",(function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),c.cancel())})),c.defaults.fixed||(e=c.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x})),c.trigger("onLoading")},getViewport:function(){var t=c.current&&c.current.locked||!1,i={x:a.scrollLeft(),y:a.scrollTop()};return t&&t.length?(i.w=t[0].clientWidth,i.h=t[0].clientHeight):(i.w=d&&e.innerWidth?e.innerWidth:a.width(),i.h=d&&e.innerHeight?e.innerHeight:a.height()),i},unbindEvents:function(){c.wrap&&p(c.wrap)&&c.wrap.unbind(".fb"),l.unbind(".fb"),a.unbind(".fb")},bindEvents:function(){var t,e=c.current;e&&(a.bind("orientationchange.fb"+(d?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),c.update),(t=e.keys)&&l.bind("keydown.fb",(function(i){var n=i.which||i.keyCode,r=i.target||i.srcElement;if(27===n&&c.coming)return!1;i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||r&&(r.type||s(r).is("[contenteditable]"))||s.each(t,(function(t,r){return 1r[0].clientWidth||r[0].clientHeight&&r[0].scrollHeight>r[0].clientHeight),r=s(r).parent();0!==i&&!a&&1o||0>n)&&c.next(0>o?"up":"right"),t.preventDefault())})))},trigger:function(t,e){var i,n=e||c.coming||c.current;if(n){if(s.isFunction(n[t])&&(i=n[t].apply(n,Array.prototype.slice.call(arguments,1))),!1===i)return!1;n.helpers&&s.each(n.helpers,(function(e,i){i&&c.helpers[e]&&s.isFunction(c.helpers[e][t])&&c.helpers[e][t](s.extend(!0,{},c.helpers[e].defaults,i),n)}))}l.trigger(t)},isImage:function(t){return f(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return f(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,i,n={};if(t=g(t),!(e=c.group[t]||null))return!1;if(e=(n=s.extend(!0,{},c.opts,e)).margin,i=n.padding,"number"===s.type(e)&&(n.margin=[e,e,e,e]),"number"===s.type(i)&&(n.padding=[i,i,i,i]),n.modal&&s.extend(!0,n,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),n.autoSize&&(n.autoWidth=n.autoHeight=!0),"auto"===n.width&&(n.autoWidth=!0),"auto"===n.height&&(n.autoHeight=!0),n.group=c.group,n.index=t,c.coming=n,!1===c.trigger("beforeLoad"))c.coming=null;else{if(i=n.type,e=n.href,!i)return c.coming=null,!(!c.current||!c.router||"jumpto"===c.router)&&(c.current.index=t,c[c.router](c.direction));if(c.isActive=!0,"image"!==i&&"swf"!==i||(n.autoHeight=n.autoWidth=!1,n.scrolling="visible"),"image"===i&&(n.aspectRatio=!0),"iframe"===i&&d&&(n.scrolling="scroll"),n.wrap=s(n.tpl.wrap).addClass("fancybox-"+(d?"mobile":"desktop")+" fancybox-type-"+i+" fancybox-tmp "+n.wrapCSS).appendTo(n.parent||"body"),s.extend(n,{skin:s(".fancybox-skin",n.wrap),outer:s(".fancybox-outer",n.wrap),inner:s(".fancybox-inner",n.wrap)}),s.each(["Top","Right","Bottom","Left"],(function(t,e){n.skin.css("padding"+e,v(n.padding[t]))})),c.trigger("onReady"),"inline"===i||"html"===i){if(!n.content||!n.content.length)return c._error("content")}else if(!e)return c._error("href");"image"===i?c._loadImage():"ajax"===i?c._loadAjax():"iframe"===i?c._loadIframe():c._afterLoad()}},_error:function(t){s.extend(c.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:c.coming.tpl.error}),c._afterLoad()},_loadImage:function(){var t=c.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,c.coming.width=this.width/c.opts.pixelRatio,c.coming.height=this.height/c.opts.pixelRatio,c._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,c._error("image")},t.src=c.coming.href,!0!==t.complete&&c.showLoading()},_loadAjax:function(){var t=c.coming;c.showLoading(),c.ajaxLoad=s.ajax(s.extend({},t.ajax,{url:t.href,error:function(t,e){c.coming&&"abort"!==e?c._error("ajax",t):c.hideLoading()},success:function(e,i){"success"===i&&(t.content=e,c._afterLoad())}}))},_loadIframe:function(){var t=c.coming,e=s(t.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",d?"auto":t.iframe.scrolling).attr("src",t.href);s(t.wrap).bind("onReset",(function(){try{s(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}})),t.iframe.preload&&(c.showLoading(),e.one("load",(function(){s(this).data("ready",1),d||s(this).bind("load.fb",c.update),s(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),c._afterLoad()}))),t.content=e.appendTo(t.inner),t.iframe.preload||c._afterLoad()},_preloadImages:function(){var t,e,i=c.group,n=c.current,s=i.length,o=n.preload?Math.min(n.preload,s-1):0;for(e=1;e<=o;e+=1)"image"===(t=i[(n.index+e)%s]).type&&t.href&&((new Image).src=t.href)},_afterLoad:function(){var t,e,i,n,o,r=c.coming,a=c.current;if(c.hideLoading(),r&&!1!==c.isActive)if(!1===c.trigger("afterLoad",r,a))r.wrap.stop(!0).trigger("onReset").remove(),c.coming=null;else{switch(a&&(c.trigger("beforeChange",a),a.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),c.unbindEvents(),t=r.content,e=r.type,i=r.scrolling,s.extend(c,{wrap:r.wrap,skin:r.skin,outer:r.outer,inner:r.inner,current:r,previous:a}),n=r.href,e){case"inline":case"ajax":case"html":r.selector?t=s("
").html(t).find(r.selector):p(t)&&(t.data("fancybox-placeholder")||t.data("fancybox-placeholder",s('
').insertAfter(t).hide()),t=t.show().detach(),r.wrap.bind("onReset",(function(){s(this).find(t).length&&t.hide().replaceAll(t.data("fancybox-placeholder")).data("fancybox-placeholder",!1)})));break;case"image":t=r.tpl.image.replace(/\{href\}/g,n);break;case"swf":t='',o="",s.each(r.swf,(function(e,i){t+='',o+=" "+e+'="'+i+'"'})),t+='"}p(t)&&t.parent().is(r.inner)||r.inner.append(t),c.trigger("beforeShow"),r.inner.css("overflow","yes"===i?"scroll":"no"===i?"hidden":i),c._setDimension(),c.reposition(),c.isOpen=!1,c.coming=null,c.bindEvents(),c.isOpened?a.prevMethod&&c.transitions[a.prevMethod]():s(".fancybox-wrap").not(r.wrap).stop(!0).trigger("onReset").remove(),c.transitions[c.isOpened?r.nextMethod:r.openMethod](),c._preloadImages()}},_setDimension:function(){var t,e,i,n,o,r,a,l,u,h=c.getViewport(),d=0,p=!1,f=!1,y=(p=c.wrap,c.skin),b=c.inner,_=c.current,w=(f=_.width,_.height),x=_.minWidth,k=_.minHeight,C=_.maxWidth,S=_.maxHeight,T=_.scrolling,P=_.scrollOutside?_.scrollbarWidth:0,E=_.margin,A=g(E[1]+E[3]),D=g(E[0]+E[2]);if(p.add(y).add(b).width("auto").height("auto").removeClass("fancybox-tmp"),e=A+(E=g(y.outerWidth(!0)-y.width())),i=D+(t=g(y.outerHeight(!0)-y.height())),n=m(f)?(h.w-e)*g(f)/100:f,o=m(w)?(h.h-i)*g(w)/100:w,"iframe"===_.type){if(u=_.content,_.autoHeight&&1===u.data("ready"))try{u[0].contentWindow.document.location&&(b.width(n).height(9999),r=u.contents().find("body"),P&&r.css("overflow-x","hidden"),o=r.outerHeight(!0))}catch(t){}}else(_.autoWidth||_.autoHeight)&&(b.addClass("fancybox-tmp"),_.autoWidth||b.width(n),_.autoHeight||b.height(o),_.autoWidth&&(n=b.width()),_.autoHeight&&(o=b.height()),b.removeClass("fancybox-tmp"));if(f=g(n),w=g(o),l=n/o,x=g(m(x)?g(x,"w")-e:x),C=g(m(C)?g(C,"w")-e:C),k=g(m(k)?g(k,"h")-i:k),r=C,a=S=g(m(S)?g(S,"h")-i:S),_.fitToView&&(C=Math.min(h.w-e,C),S=Math.min(h.h-i,S)),e=h.w-A,D=h.h-D,_.aspectRatio?(f>C&&(w=g((f=C)/l)),w>S&&(f=g((w=S)*l)),fe||A>D)&&f>x&&w>k&&!(19C&&(w=g((f=C)/l)),b.width(f).height(w),p.width(f+E),h=p.width(),A=p.height();else f=Math.max(x,Math.min(f,f-(h-e))),w=Math.max(k,Math.min(w,w-(A-D)));P&&"auto"===T&&we||A>D)&&f>x&&w>k,f=_.aspectRatio?fk&&w
').appendTo(e&&e.lenth?e:"body"),this.fixed=!1,t.fixed&&c.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=s.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(a.bind("resize.overlay",s.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",(function(t){if(s(t.target).hasClass("fancybox-overlay"))return c.isActive?c.close():e.close(),!1})),this.overlay.css(t.css).show()},close:function(){a.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(s(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),a.scrollTop(this.scrollV).scrollLeft(this.scrollH)),s(".fancybox-overlay").remove().hide(),s.extend(this,{overlay:null,fixed:!1})},update:function(){var t,e="100%";this.overlay.width(e).height("100%"),u?(t=Math.max(n.documentElement.offsetWidth,n.body.offsetWidth),l.width()>t&&(e=l.width())):l.width()>a.width()&&(e=l.width()),this.overlay.width(e).height(l.height())},onReady:function(t,e){var i=this.overlay;s(".fancybox-overlay").stop(!0,!0),i||this.create(t),t.locked&&this.fixed&&e.fixed&&(e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){e.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&s("*").filter((function(){return"fixed"===s(this).css("position")&&!s(this).hasClass("fancybox-overlay")&&!s(this).hasClass("fancybox-wrap")})).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=a.scrollTop(),this.scrollH=a.scrollLeft(),this.el.addClass("fancybox-lock"),a.scrollTop(this.scrollV).scrollLeft(this.scrollH)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!c.coming&&this.overlay.fadeOut(t.speedOut,s.proxy(this.close,this))}},c.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e=c.current,i=e.title,n=t.type;if(s.isFunction(i)&&(i=i.call(e.element,e)),f(i)&&""!==s.trim(i)){switch(e=s('
'+i+"
"),n){case"inside":n=c.skin;break;case"outside":n=c.wrap;break;case"over":n=c.inner;break;default:n=c.skin,e.appendTo("body"),u&&e.width(e.width()),e.wrapInner(''),c.current.margin[2]+=Math.abs(g(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](n)}}},s.fn.fancybox=function(t){var e,i=s(this),n=this.selector||"",o=function(o){var r,a,l=s(this).blur(),u=e;o.ctrlKey||o.altKey||o.shiftKey||o.metaKey||l.is(".fancybox-wrap")||(r=t.groupAttr||"data-fancybox-group",(a=l.attr(r))||(r="rel",a=l.get(0)[r]),a&&""!==a&&"nofollow"!==a&&(u=(l=(l=n.length?s(n):i).filter("["+r+'="'+a+'"]')).index(this)),t.index=u,!1!==c.open(l,t)&&o.preventDefault())};return e=(t=t||{}).index||0,n&&!1!==t.live?l.undelegate(n,"click.fb-start").delegate(n+":not('.fancybox-item, .fancybox-nav')","click.fb-start",o):i.unbind("click.fb-start").bind("click.fb-start",o),this.filter("[data-fancybox-start=1]").trigger("click"),this},l.ready((function(){var t,i;s.scrollbarWidth===o&&(s.scrollbarWidth=function(){var t=s('
').appendTo("body"),e=(e=t.children()).innerWidth()-e.height(99).innerWidth();return t.remove(),e}),s.support.fixedPosition===o&&(s.support.fixedPosition=function(){var t=s('
').appendTo("body"),e=20===t[0].offsetTop||15===t[0].offsetTop;return t.remove(),e}()),s.extend(c.defaults,{scrollbarWidth:s.scrollbarWidth(),fixed:s.support.fixedPosition,parent:s("body")}),t=s(e).width(),r.addClass("fancybox-lock-test"),i=s(e).width(),r.removeClass("fancybox-lock-test"),s("").appendTo("head")}))}).call(this,i("EVdn"))},"8JII":function(t,e,i){"use strict";var n=i("Cjdr"),s=i("5ltZ"),o=i("Jgdq"),r=i("AB5y"),a=i("5/td"),l=i("pgCt"),c=i("JNGO"),u=i("E3GT"),h=i("PaWS"),d=i("ZFZo"),p=i("FAhn"),f=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v=function(){return this};t.exports=function(t,e,i,u,p,y,b){s(i,e,u);var _,w,x,k=function(t){if(t===p&&E)return E;if(!m&&t in T)return T[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},C=e+" Iterator",S=!1,T=t.prototype,P=T[g]||T["@@iterator"]||p&&T[p],E=!m&&P||k(p),A="Array"==e&&T.entries||P;if(A&&(_=o(A.call(new t)),f!==Object.prototype&&_.next&&(h||o(_)===f||(r?r(_,f):"function"!=typeof _[g]&&l(_,g,v)),a(_,C,!0,!0),h&&(d[C]=v))),"values"==p&&P&&"values"!==P.name&&(S=!0,E=function(){return P.call(this)}),h&&!b||T[g]===E||l(T,g,E),d[e]=E,p)if(w={values:k("values"),keys:y?E:k("keys"),entries:k("entries")},b)for(x in w)(m||S||!(x in T))&&c(T,x,w[x]);else n({target:e,proto:!0,forced:m||S},w);return w}},"8W5O":function(t,e,i){var n=i("JNGO");t.exports=function(t,e,i){for(var s in e)n(t,s,e[s],i);return t}},"8xiD":function(t,e,i){"use strict";var n=i("cY7b").charAt;t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},"9CWV":function(t,e,i){var n=i("yted");t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},"9c1O":function(t,e,i){var n=i("huUE"),s=i("5Re+"),o=n["__core-js_shared__"]||s("__core-js_shared__",{});t.exports=o},"9d/t":function(t,e,i){var n=i("AO7/"),s=i("xrYK"),o=i("tiKp")("toStringTag"),r="Arguments"==s(function(){return arguments}());t.exports=n?s:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?i:r?s(e):"Object"==(n=s(e))&&"function"==typeof e.callee?"Arguments":n}},A5TO:function(t,e,i){"use strict";var n=i("Dw5a"),s=i("S0Fv"),o=i("ZFZo"),r=i("uL4R"),a=i("8JII"),l=r.set,c=r.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){l(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,s("keys"),s("values"),s("entries")},AB5y:function(t,e,i){var n=i("yted"),s=i("X38w");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,o){return n(i),s(o),e?t.call(i,o):i.__proto__=o,i}}():void 0)},"AO7/":function(t,e,i){var n={};n[i("tiKp")("toStringTag")]="z",t.exports="[object z]"===String(n)},AkTH:function(t,e,i){var n=i("k80W"),s=/#|\.prototype\./,o=function(t,e){var i=a[r(t)];return i==c||i!=l&&("function"==typeof e?n(e):!!e)},r=o.normalize=function(t){return String(t).replace(s,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},BRSW:function(t,e,i){"use strict";var n=i("DIkK"),s=i("yted"),o=i("2ZuC"),r=i("TvX3"),a=i("WEnT");n("search",1,(function(t,e,i){return[function(e){var i=o(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var o=s(t),l=String(this),c=o.lastIndex;r(c,0)||(o.lastIndex=0);var u=a(o,l);return r(o.lastIndex,c)||(o.lastIndex=c),null===u?-1:u.index}]}))},BTwx:function(t,e,i){var n=i("a2tZ"),s=i("huUE"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(s[t]):n[t]&&n[t][e]||s[t]&&s[t][e]}},"BX/b":function(t,e,i){var n=i("/GqU"),s=i("JBy8").f,o={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return r&&"[object Window]"==o.call(t)?function(t){try{return s(t)}catch(t){return r.slice()}}(t):s(n(t))}},Cent:function(t,e,i){var n=i("yted"),s=i("I/CG"),o=i("E3GT")("species");t.exports=function(t,e){var i,r=n(t).constructor;return void 0===r||null==(i=n(r)[o])?e:s(i)}},Cjdr:function(t,e,i){var n=i("huUE"),s=i("bnuW").f,o=i("pgCt"),r=i("JNGO"),a=i("5Re+"),l=i("aha4"),c=i("AkTH");t.exports=function(t,e){var i,u,h,d,p,f=t.target,m=t.global,g=t.stat;if(i=m?n:g?n[f]||a(f,{}):(n[f]||{}).prototype)for(u in e){if(d=e[u],h=t.noTargetGet?(p=s(i,u))&&p.value:i[u],!c(m?u:f+(g?".":"#")+u,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),r(i,u,d,t)}}},CyXQ:function(t,e,i){var n=i("ppGB"),s=i("UMSQ");t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=s(e);if(e!==i)throw RangeError("Wrong length or index");return i}},D6kV:function(t,e,i){var n=i("k80W"),s=i("m5ii"),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?o.call(t,""):Object(t)}:Object},DIkK:function(t,e,i){"use strict";i("urq1");var n=i("JNGO"),s=i("k80W"),o=i("E3GT"),r=i("TQoE"),a=i("pgCt"),l=o("species"),c=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),u="$0"==="a".replace(/./,"$0"),h=o("replace"),d=!!/./[h]&&""===/./[h]("a","$0"),p=!s((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}));t.exports=function(t,e,i,h){var f=o(t),m=!s((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=m&&!s((function(){var e=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[l]=function(){return i},i.flags="",i[f]=/./[f]),i.exec=function(){return e=!0,null},i[f](""),!e}));if(!m||!g||"replace"===t&&(!c||!u||d)||"split"===t&&!p){var v=/./[f],y=i(f,""[t],(function(t,e,i,n,s){return e.exec===r?m&&!s?{done:!0,value:v.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],_=y[1];n(String.prototype,t,b),n(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}h&&a(RegExp.prototype[f],"sham",!0)}},DTth:function(t,e,i){var n=i("0Dky"),s=i("tiKp"),o=i("xDBR"),r=s("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,i="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),i+=n+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[r]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},DYDg:function(t,e,i){var n=i("dMHt"),s=Math.min;t.exports=function(t){return t>0?s(n(t),9007199254740991):0}},Dw5a:function(t,e,i){var n=i("D6kV"),s=i("2ZuC");t.exports=function(t){return n(s(t))}},E3GT:function(t,e,i){var n=i("huUE"),s=i("gsCu"),o=i("O1gm"),r=i("k0/g"),a=i("Kw4T"),l=i("sNrQ"),c=s("wks"),u=n.Symbol,h=l?u:u&&u.withoutSetter||r;t.exports=function(t){return o(c,t)||(a&&o(u,t)?c[t]=u[t]:c[t]=h("Symbol."+t)),c[t]}},ECI1:function(t,e,i){"use strict";var n=i("DIkK"),s=i("OoLz"),o=i("yted"),r=i("2ZuC"),a=i("Cent"),l=i("8xiD"),c=i("DYDg"),u=i("WEnT"),h=i("TQoE"),d=i("k80W"),p=[].push,f=Math.min,m=!d((function(){return!RegExp(4294967295,"y")}));n("split",2,(function(t,e,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var n=String(r(this)),o=void 0===i?4294967295:i>>>0;if(0===o)return[];if(void 0===t)return[n];if(!s(t))return e.call(n,t,o);for(var a,l,c,u=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,m=new RegExp(t.source,d+"g");(a=h.call(m,n))&&!((l=m.lastIndex)>f&&(u.push(n.slice(f,a.index)),a.length>1&&a.index=o));)m.lastIndex===a.index&&m.lastIndex++;return f===n.length?!c&&m.test("")||u.push(""):u.push(n.slice(f)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,i){var s=r(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,s,i):n.call(String(s),e,i)},function(t,s){var r=i(n,t,this,s,n!==e);if(r.done)return r.value;var h=o(t),d=String(this),p=a(h,RegExp),g=h.unicode,v=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(m?"y":"g"),y=new p(m?h:"^(?:"+h.source+")",v),b=void 0===s?4294967295:s>>>0;if(0===b)return[];if(0===d.length)return null===u(y,d)?[d]:[];for(var _=0,w=0,x=[];w0;(o>>>=1)&&(e+=e))1&o&&(i+=e);return i}},Ep9I:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},"F+6m":function(t,e,i){var n=i("O1gm"),s=i("Dw5a"),o=i("z2BG").indexOf,r=i("YxNY");t.exports=function(t,e){var i,a=s(t),l=0,c=[];for(i in a)!n(r,i)&&n(a,i)&&c.push(i);for(;e.length>l;)n(a,i=e[l++])&&(~o(c,i)||c.push(i));return c}},FAhn:function(t,e,i){"use strict";var n,s,o,r=i("Jgdq"),a=i("pgCt"),l=i("O1gm"),c=i("E3GT"),u=i("PaWS"),h=c("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(s=r(r(o)))!==Object.prototype&&(n=s):d=!0),null==n&&(n={}),u||l(n,h)||a(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},FF6l:function(t,e,i){"use strict";var n=i("ewvW"),s=i("I8vh"),o=i("UMSQ"),r=Math.min;t.exports=[].copyWithin||function(t,e){var i=n(this),a=o(i.length),l=s(t,a),c=s(e,a),u=arguments.length>2?arguments[2]:void 0,h=r((void 0===u?a:s(u,a))-c,a-l),d=1;for(c0;)c in i?i[l]=i[c]:delete i[l],l+=d,c+=d;return i}},Fb7I:function(t,e,i){"use strict";var n=i("k80W");t.exports=function(t,e){var i=[][t];return!!i&&n((function(){i.call(null,e||function(){throw 1},1)}))}},"Fwt+":function(t,e,i){"use strict";var n=i("67WC"),s=i("UMSQ"),o=i("I8vh"),r=i("SEBh"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(t,e){var i=a(this),n=i.length,l=o(t,n);return new(r(i,i.constructor))(i.buffer,i.byteOffset+l*i.BYTES_PER_ELEMENT,s((void 0===e?n:o(e,n))-l))}))},GC2F:function(t,e,i){var n=i("+M1K");t.exports=function(t,e){var i=n(t);if(i%e)throw RangeError("Wrong offset");return i}},GarU:function(t,e){t.exports=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t}},HH4o:function(t,e,i){var n=i("tiKp")("iterator"),s=!1;try{var o=0,r={next:function(){return{done:!!o++}},return:function(){s=!0}};r[n]=function(){return this},Array.from(r,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!s)return!1;var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}},Hd5f:function(t,e,i){var n=i("0Dky"),s=i("tiKp"),o=i("LQDL"),r=s("species");t.exports=function(t){return o>=51||!n((function(){var e=[];return(e.constructor={})[r]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},Hf46:function(t,e,i){(function(t){function e(e){var i=["1","2","4","8"],n={ident:e};t.get("/api/votes/info",n).done((function(e){var n=e.formats,s=e.is_gadget,o=e.contests;""!=e.name&&t(".add-opinion-data").val(e.name),e.newsletter&&t(".add-opinion-checkbox-line-newsletter").css("display","none"),e.acceptance&&(t("#add-opinion-accept").addClass("add-opinion-no-validate"),t(".add-opinion-checkbox-line-regulamin").css("display","none")),t(".add-opinion-format").prop("disabled",!1),t(".add-opinion-format").css("display","block"),i.forEach((function(e,i){-1==n.indexOf(e)&&(t(".add-opinion-format-"+e).prop("disabled",!0),t(".add-opinion-format-"+e).css("display","none"))})),-1==n.indexOf("4")&&0==n.indexOf("3")&&1==n.length&&(t(".add-opinion-format-4").prop("disabled",!1),t(".add-opinion-format-4").css("display","block"),t(".add-opinion-format-select").val("4")),s&&t(".add-opinion-format-1").html("Gadżet");var r=t(".add-opinion-format-select option:not([disabled]):first").val();if(t(".add-opinion-format-select").val(r).change(),o.length>0){var a=t(".opinion-contests");a.html(""),o.forEach((function(t,e){var i='');a.append(i)}))}}))}i("6D7I"),i("1kfW"),i("fQSX"),i("nmy3"),i("A5TO"),i("+GoA"),i("3h4v"),i("urq1"),i("HnYJ"),i("UYHQ"),i("BRSW"),i("ECI1"),i("O+t3"),i("5ORi"),i("5ggy"),t(document).ready((function(){t(".make-vote .vote").hover((function(){t(this).parent().addClass("make-vote-tmp");var e=t(this).attr("data-index");t(".make-vote.make-vote-tmp .vote").each((function(){var i=t(this).attr("data-index");e>=i&&t(this).children().addClass("vote-make-on")}))}),(function(){t(".make-vote.make-vote-tmp .vote").each((function(){t(this).children().removeClass("vote-make-on")})),t(this).parent().removeClass("make-vote-tmp")})),t(".make-vote .vote").click((function(i){i.preventDefault();var s=t(this),o=t(this).parent().attr("data-ident"),r=s.parent().attr("data-title"),a=s.parent().attr("data-troya"),l={ident:o};t.get("/api/votes/check",l).done((function(t){if(0==t.uid)return window.location.href="/users/login",!1;if(n.setUpTtitleAndIdent(r,o),t.added>0)n.setUpVote(t.voteData.vote),e(o),n.setAddedData(t.voteData);else{var i=s.attr("data-index");n.setUpVote(i),e(o),n.setUpLibraryFormat(a)}n.showPopupAndLayer()}))})),t(".make-vote-open-popup").click((function(i){i.preventDefault();var s=t(this).attr("data-ident"),o=t(this).attr("data-title"),r={ident:s};t.get("/api/votes/check",r).done((function(i){if(0==i.uid)return window.location.href="/users/login",!1;n.setUpTtitleAndIdent(o,s),i.added>0?(n.setUpVote(i.voteData.vote),e(s),n.setAddedData(i.voteData)):(e(s),t(".add-opinion-vote-line .vote span").removeClass("vote-make-on")),n.showPopupAndLayer()}))})),t(".add-opinion-vote-line .vote").click((function(e){e.preventDefault();var i=t(this).attr("data-index");n.setUpVote(i)})),t("#close-popup-layer-add-opinion a").click((function(e){e.preventDefault(),t(".layerPowiadom").fadeOut(),t(".popup-layer-add-opinion").fadeOut()})),t(".add-opinion-send").click((function(){var e=t(".add-opinion-review").val(),i=t(".add-opinion-ident").val(),n=t(".add-opinion-vote").val(),s=t(".add-opinion-data").val(),o=t("#accept-imie-nazwisko").is(":checked")?1:0,r=t("#add-opinion-accept").is(":checked")?1:0,a=t("#add-opinion-accept-newsletter").is(":checked")?1:0,l=t("#vote-token").val(),c=t("#add-opinion-hash").val(),u=t(".add-opinion-format-select").val(),h=t(".opinion_contest_input"),d=0;h.is(":checked")&&(d=h.val());var p=0;if(""==n?(t(".add-opinion-vote-error-text").css("display","block"),p+=1):t(".add-opinion-vote-error-text").css("display","none"),""==e?(t(".add-opinion-review").addClass("error"),t(".add-opinion-review-error-text").css("display","inline-block"),p+=1):(t(".add-opinion-review").removeClass("error"),t(".add-opinion-review-error-text").css("display","none")),r||t("#add-opinion-accept").hasClass("add-opinion-no-validate")?t(".accept-opinion-error-text").css("display","none"):(t(".accept-opinion-error-text").css("display","inline-block"),p+=1),p>0)return!1;t(".add-opinion-loader").css("display","block"),t(this).prop("disabled",!0),t(this).css("background","#eeeeee"),e=e.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,"");var f={ident:i,review:e,vote:n,user_data:s,user_data_accept:o,vote_accept:r,newsletter_accept:a,vote_token:l,opinion_hash:c,format_type:u,contest:d};t.get("/api/votes/add",f).done((function(e){return e.result>0?("undefined"!=typeof ga&&ga("send",{hitType:"event",eventCategory:"Ocena",eventAction:"add",eventLabel:i,eventValue:n}),t(".popup-layer-add-opinion .text.form").html('
Dziękujemy za Twoją opinię.
Zostanie ona opublikowana po zatwierdzeniu przez administratora.
')):t(".popup-layer-add-opinion .text.form").html('
Ups! Coś poszło nie tak! Sprawdź, czy nie wpisujesz znaków specjalnych lub emotikon. Twoja opinia może zawierać wyłącznie tekst.
'),t(".add-opinion-loader").css("display","none"),!1})).fail((function(e,i,n){t(".add-opinion-loader").css("display","none"),t(".popup-layer-add-opinion .text.form").html('
Ups! Coś poszło nie tak! Sprawdź, czy nie wpisujesz znaków specjalnych lub emotikon. Twoja opinia może zawierać wyłącznie tekst.
')}))}));var i=window.location.search,s=new URLSearchParams(i).get("opinionhash");if(s&&""!=s){var o={opinion_hash:s};t.get("/api/votes/check-opinion-hash",o).done((function(i){1==i.ok&&(e(t(".popup-layer-add-opinion .add-opinion-ident").val()),n.showPopupAndLayer(),t("#add-opinion-hash").val(s))}))}t("#add-opinion-zgoda-regulamin").tooltip({items:"a.add-opinion-polityka-prywatnosci",content:'Administratorem danych osobowych jest Helion.pl Sp. z o.o.z siedzibą w Gliwicach (GRUPA HELION). Dane osobowe Użytkownika są przetwarzane w celu realizacji zamówienia, w celach analitycznych i statystycznych, realizacji obowiązków ustawowych, w celach marketingowych. Podanie danych osobowych jest dobrowolne, ale niezbędne dla celów świadczenia usług i realizacji umowy. Użytkownik ma prawo dostępu do treści swoich danych, w tym uzyskania ich kopii oraz prawo sprostowania, usunięcia, ograniczenia przetwarzania, prawo do przenoszenia danych, prawo wniesienia sprzeciwu. Więcej w Polityce Prywatności',position:{my:"left+15 center",at:"right center"},close:function(e,i){i.tooltip.hover((function(){t(this).stop(!0).fadeTo(500,1)}),(function(){t(this).fadeOut("500",(function(){t(this).remove()}))}))}}),t("#tp-add-opinion-accept-newsletter").tooltip({items:"a.tp-add-opinion-accept-personal-newsletter",content:'Zgodę mogę wycofać w każdej chwili, a jej wycofanie nie wpływa na zgodność z prawem przetwarzania dokonanego przed jej wycofaniem. Administratorem danych osobowych jest Helion.pl Sp. z o.o.z siedzibą w Gliwicach (GRUPA HELION). Użytkownik ma prawo dostępu do treści swoich danych, w tym uzyskania ich kopii oraz prawo sprostowania, usunięcia, ograniczenia przetwarzania, prawo do przenoszenia danych, prawo wniesienia sprzeciwu. Więcej w Polityce Prywatności »',position:{my:"left+15 center",at:"right center"},close:function(e,i){i.tooltip.hover((function(){t(this).stop(!0).fadeTo(500,1)}),(function(){t(this).fadeOut("500",(function(){t(this).remove()}))}))}})}));var n={setUpTtitleAndIdent:function(e,i){t(".popup-layer-add-opinion .add-opinion-title").html(e),t(".popup-layer-add-opinion .add-opinion-ident").val(i)},showPopupAndLayer:function(){t(".layerPowiadom").fadeIn(),t(".popup-layer-add-opinion").fadeIn()},setUpVote:function(e){t(".add-opinion-vote-line .vote span").removeClass("vote-make-on"),t(".add-opinion-vote-line .vote").each((function(){var i=t(this).attr("data-index");e>=i&&t(this).children().addClass("vote-make-on")})),t(".add-opinion-vote").val(e)},setAddedData:function(e){t(".add-opinion-review").val(e.review);var i=t(".add-opinion-format-select"),n=t(i).find('option[value="'+e.format+'"]');setTimeout((function(){t(".add-opinion-data").prop("disabled",!0),n.length>0&&(i.prop("selectedIndex",n.index()),i.change()),e.verified>0?i.prop("disabled",!0):i.prop("disabled",!1)}),600)},setUpLibraryFormat:function(e){if(e&&""!=e){endFormat=e.toLowerCase().split("_")[1]||null,libraryFormat={ebook:2,3:4,w:8}[endFormat];var i=t(".add-opinion-format-select"),n=t(i).find('option[value="'+libraryFormat+'"]');setTimeout((function(){n.length>0&&"none"!==n.css("display")&&(i.prop("selectedIndex",n.index()),i.change())}),500)}}}}).call(this,i("k+N4"))},HnYJ:function(t,e,i){"use strict";var n=i("cY7b").charAt,s=i("uL4R"),o=i("8JII"),r=s.set,a=s.getterFor("String Iterator");o(String,"String",(function(t){r(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=a(this),i=e.string,s=e.index;return s>=i.length?{value:void 0,done:!0}:(t=n(i,s),e.index+=t.length,{value:t,done:!1})}))},"I/CG":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},IM5k:function(t,e,i){"use strict";i.r(e),function(t){i.d(e,"default",(function(){return n})),i.d(e,"createCookie",(function(){return s})),i.d(e,"readCookie",(function(){return o})),i.d(e,"toggleMobileFullSite",(function(){return r})),i.d(e,"toggleFullSiteToMobile",(function(){return a}));i("yXV3"),i("rB9j"),i("EnZy");function n(){}function s(t,e,i){if(i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var s="; expires="+n.toGMTString()}else s="";document.cookie=t+"="+e+s+"; path=/"}function o(t){for(var e=t+"=",i=document.cookie.split(";"),n=0;n'),t(document).ready((function(){"true"===o("nomobile")?t(".change-device-not-mobily").show():t(".change-device-not-mobily").hide()}))}.call(this,i("EVdn"))},IZzc:function(t,e,i){"use strict";var n=i("67WC"),s=n.aTypedArray,o=n.exportTypedArrayMethod,r=[].sort;o("sort",(function(t){return r.call(s(this),t)}))},JNGO:function(t,e,i){var n=i("huUE"),s=i("pgCt"),o=i("O1gm"),r=i("5Re+"),a=i("uTd1"),l=i("uL4R"),c=l.get,u=l.enforce,h=String(String).split("String");(t.exports=function(t,e,i,a){var l,c=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||o(i,"name")||s(i,"name",e),(l=u(i)).source||(l.source=h.join("string"==typeof e?e:""))),t!==n?(c?!p&&t[e]&&(d=!0):delete t[e],d?t[e]=i:s(t,e,i)):d?t[e]=i:r(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},JTJg:function(t,e,i){"use strict";var n=i("I+eb"),s=i("WjRb"),o=i("HYAF");n({target:"String",proto:!0,forced:!i("qxPZ")("includes")},{includes:function(t){return!!~String(o(this)).indexOf(s(t),arguments.length>1?arguments[1]:void 0)}})},JaFt:function(t,e,i){"use strict";var n=i("67WC"),s=i("1Y/n").right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(t){return s(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},JfAA:function(t,e,i){"use strict";var n=i("busE"),s=i("glrk"),o=i("0Dky"),r=i("rW0t"),a=RegExp.prototype,l=a.toString,c=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),u="toString"!=l.name;(c||u)&&n(RegExp.prototype,"toString",(function(){var t=s(this),e=String(t.source),i=t.flags;return"/"+e+"/"+String(void 0===i&&t instanceof RegExp&&!("flags"in a)?r.call(t):i)}),{unsafe:!0})},Jgdq:function(t,e,i){var n=i("O1gm"),s=i("t0Mh"),o=i("XoZo"),r=i("wjo8"),a=o("IE_PROTO"),l=Object.prototype;t.exports=r?Object.getPrototypeOf:function(t){return t=s(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},KVSy:function(t,e,i){"use strict";var n=i("67WC"),s=i("SEBh"),o=i("0Dky"),r=n.aTypedArray,a=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod,c=[].slice;l("slice",(function(t,e){for(var i=c.call(r(this),t,e),n=s(this,this.constructor),o=0,l=i.length,u=new(a(n))(l);l>o;)u[o]=i[o++];return u}),o((function(){new Int8Array(1).slice()})))},KmKo:function(t,e,i){var n=i("glrk");t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},Kv4v:function(t,e,i){var n=i("iouN");t.exports=function(t,e){if(!n(t))return t;var i,s;if(e&&"function"==typeof(i=t.toString)&&!n(s=i.call(t)))return s;if("function"==typeof(i=t.valueOf)&&!n(s=i.call(t)))return s;if(!e&&"function"==typeof(i=t.toString)&&!n(s=i.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},Kw4T:function(t,e,i){var n=i("k80W");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},Kz25:function(t,e,i){"use strict";i("PKPk");var n,s=i("I+eb"),o=i("g6v/"),r=i("DTth"),a=i("2oRo"),l=i("N+g0"),c=i("busE"),u=i("GarU"),h=i("UTVS"),d=i("YNrV"),p=i("TfTi"),f=i("ZUd8").codeAt,m=i("X7LM"),g=i("1E5z"),v=i("mGGf"),y=i("afO8"),b=a.URL,_=v.URLSearchParams,w=v.getState,x=y.set,k=y.getterFor("URL"),C=Math.floor,S=Math.pow,T=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,E=/\d/,A=/^(0x|0X)/,D=/^[0-7]+$/,j=/^\d+$/,M=/^[\dA-Fa-f]+$/,I=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,O=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,R=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,L=/[\u0009\u000A\u000D]/g,N=function(t,e){var i,n,s;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(i=z(e.slice(1,-1))))return"Invalid host";t.host=i}else if(Y(t)){if(e=m(e),I.test(e))return"Invalid host";if(null===(i=F(e)))return"Invalid host";t.host=i}else{if(O.test(e))return"Invalid host";for(i="",n=p(e),s=0;s4)return t;for(i=[],n=0;n1&&"0"==s.charAt(0)&&(o=A.test(s)?16:8,s=s.slice(8==o?1:2)),""===s)r=0;else{if(!(10==o?j:8==o?D:M).test(s))return t;r=parseInt(s,o)}i.push(r)}for(n=0;n=S(256,5-e))return null}else if(r>255)return null;for(a=i.pop(),n=0;n6)return;for(n=0;d();){if(s=null,n>0){if(!("."==d()&&n<4))return;h++}if(!E.test(d()))return;for(;E.test(d());){if(o=parseInt(d(),10),null===s)s=o;else{if(0==s)return;s=10*s+o}if(s>255)return;h++}l[c]=256*l[c]+s,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[c++]=e}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(r=c-u,c=7;0!=c&&r>0;)a=l[c],l[c--]=l[u+r-1],l[u+--r]=a;else if(8!=c)return;return l},B=function(t){var e,i,n,s;if("number"==typeof t){for(e=[],i=0;i<4;i++)e.unshift(t%256),t=C(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,i=1,n=null,s=0,o=0;o<8;o++)0!==t[o]?(s>i&&(e=n,i=s),n=null,s=0):(null===n&&(n=o),++s);return s>i&&(e=n,i=s),e}(t),i=0;i<8;i++)s&&0===t[i]||(s&&(s=!1),n===i?(e+=i?":":"::",s=!0):(e+=t[i].toString(16),i<7&&(e+=":")));return"["+e+"]"}return t},H={},W=d({},H,{" ":1,'"':1,"<":1,">":1,"`":1}),q=d({},W,{"#":1,"?":1,"{":1,"}":1}),U=d({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),V=function(t,e){var i=f(t,0);return i>32&&i<127&&!h(e,t)?t:encodeURIComponent(t)},G={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(t){return h(G,t.scheme)},K=function(t){return""!=t.username||""!=t.password},X=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Z=function(t,e){var i;return 2==t.length&&T.test(t.charAt(0))&&(":"==(i=t.charAt(1))||!e&&"|"==i)},$=function(t){var e;return t.length>1&&Z(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},J=function(t){var e=t.path,i=e.length;!i||"file"==t.scheme&&1==i&&Z(e[0],!0)||e.pop()},Q=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},it={},nt={},st={},ot={},rt={},at={},lt={},ct={},ut={},ht={},dt={},pt={},ft={},mt={},gt={},vt={},yt={},bt={},_t={},wt=function(t,e,i,s){var o,r,a,l,c,u=i||tt,d=0,f="",m=!1,g=!1,v=!1;for(i||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(R,"")),e=e.replace(L,""),o=p(e);d<=o.length;){switch(r=o[d],u){case tt:if(!r||!T.test(r)){if(i)return"Invalid scheme";u=it;continue}f+=r.toLowerCase(),u=et;break;case et:if(r&&(P.test(r)||"+"==r||"-"==r||"."==r))f+=r.toLowerCase();else{if(":"!=r){if(i)return"Invalid scheme";f="",u=it,d=0;continue}if(i&&(Y(t)!=h(G,f)||"file"==f&&(K(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=f,i)return void(Y(t)&&G[t.scheme]==t.port&&(t.port=null));f="","file"==t.scheme?u=pt:Y(t)&&s&&s.scheme==t.scheme?u=nt:Y(t)?u=at:"/"==o[d+1]?(u=st,d++):(t.cannotBeABaseURL=!0,t.path.push(""),u=yt)}break;case it:if(!s||s.cannotBeABaseURL&&"#"!=r)return"Invalid scheme";if(s.cannotBeABaseURL&&"#"==r){t.scheme=s.scheme,t.path=s.path.slice(),t.query=s.query,t.fragment="",t.cannotBeABaseURL=!0,u=_t;break}u="file"==s.scheme?pt:ot;continue;case nt:if("/"!=r||"/"!=o[d+1]){u=ot;continue}u=lt,d++;break;case st:if("/"==r){u=ct;break}u=vt;continue;case ot:if(t.scheme=s.scheme,r==n)t.username=s.username,t.password=s.password,t.host=s.host,t.port=s.port,t.path=s.path.slice(),t.query=s.query;else if("/"==r||"\\"==r&&Y(t))u=rt;else if("?"==r)t.username=s.username,t.password=s.password,t.host=s.host,t.port=s.port,t.path=s.path.slice(),t.query="",u=bt;else{if("#"!=r){t.username=s.username,t.password=s.password,t.host=s.host,t.port=s.port,t.path=s.path.slice(),t.path.pop(),u=vt;continue}t.username=s.username,t.password=s.password,t.host=s.host,t.port=s.port,t.path=s.path.slice(),t.query=s.query,t.fragment="",u=_t}break;case rt:if(!Y(t)||"/"!=r&&"\\"!=r){if("/"!=r){t.username=s.username,t.password=s.password,t.host=s.host,t.port=s.port,u=vt;continue}u=ct}else u=lt;break;case at:if(u=lt,"/"!=r||"/"!=f.charAt(d+1))continue;d++;break;case lt:if("/"!=r&&"\\"!=r){u=ct;continue}break;case ct:if("@"==r){m&&(f="%40"+f),m=!0,a=p(f);for(var y=0;y65535)return"Invalid port";t.port=Y(t)&&w===G[t.scheme]?null:w,f=""}if(i)return;u=gt;continue}return"Invalid port"}f+=r;break;case pt:if(t.scheme="file","/"==r||"\\"==r)u=ft;else{if(!s||"file"!=s.scheme){u=vt;continue}if(r==n)t.host=s.host,t.path=s.path.slice(),t.query=s.query;else if("?"==r)t.host=s.host,t.path=s.path.slice(),t.query="",u=bt;else{if("#"!=r){$(o.slice(d).join(""))||(t.host=s.host,t.path=s.path.slice(),J(t)),u=vt;continue}t.host=s.host,t.path=s.path.slice(),t.query=s.query,t.fragment="",u=_t}}break;case ft:if("/"==r||"\\"==r){u=mt;break}s&&"file"==s.scheme&&!$(o.slice(d).join(""))&&(Z(s.path[0],!0)?t.path.push(s.path[0]):t.host=s.host),u=vt;continue;case mt:if(r==n||"/"==r||"\\"==r||"?"==r||"#"==r){if(!i&&Z(f))u=vt;else if(""==f){if(t.host="",i)return;u=gt}else{if(l=N(t,f))return l;if("localhost"==t.host&&(t.host=""),i)return;f="",u=gt}continue}f+=r;break;case gt:if(Y(t)){if(u=vt,"/"!=r&&"\\"!=r)continue}else if(i||"?"!=r)if(i||"#"!=r){if(r!=n&&(u=vt,"/"!=r))continue}else t.fragment="",u=_t;else t.query="",u=bt;break;case vt:if(r==n||"/"==r||"\\"==r&&Y(t)||!i&&("?"==r||"#"==r)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(J(t),"/"==r||"\\"==r&&Y(t)||t.path.push("")):Q(f)?"/"==r||"\\"==r&&Y(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Z(f)&&(t.host&&(t.host=""),f=f.charAt(0)+":"),t.path.push(f)),f="","file"==t.scheme&&(r==n||"?"==r||"#"==r))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==r?(t.query="",u=bt):"#"==r&&(t.fragment="",u=_t)}else f+=V(r,q);break;case yt:"?"==r?(t.query="",u=bt):"#"==r?(t.fragment="",u=_t):r!=n&&(t.path[0]+=V(r,H));break;case bt:i||"#"!=r?r!=n&&("'"==r&&Y(t)?t.query+="%27":t.query+="#"==r?"%23":V(r,H)):(t.fragment="",u=_t);break;case _t:r!=n&&(t.fragment+=V(r,W))}d++}},xt=function(t){var e,i,n=u(this,xt,"URL"),s=arguments.length>1?arguments[1]:void 0,r=String(t),a=x(n,{type:"URL"});if(void 0!==s)if(s instanceof xt)e=k(s);else if(i=wt(e={},String(s)))throw TypeError(i);if(i=wt(a,r,null,e))throw TypeError(i);var l=a.searchParams=new _,c=w(l);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(l)||null},o||(n.href=Ct.call(n),n.origin=St.call(n),n.protocol=Tt.call(n),n.username=Pt.call(n),n.password=Et.call(n),n.host=At.call(n),n.hostname=Dt.call(n),n.port=jt.call(n),n.pathname=Mt.call(n),n.search=It.call(n),n.searchParams=Ot.call(n),n.hash=Rt.call(n))},kt=xt.prototype,Ct=function(){var t=k(this),e=t.scheme,i=t.username,n=t.password,s=t.host,o=t.port,r=t.path,a=t.query,l=t.fragment,c=e+":";return null!==s?(c+="//",K(t)&&(c+=i+(n?":"+n:"")+"@"),c+=B(s),null!==o&&(c+=":"+o)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):"",null!==a&&(c+="?"+a),null!==l&&(c+="#"+l),c},St=function(){var t=k(this),e=t.scheme,i=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Y(t)?e+"://"+B(t.host)+(null!==i?":"+i:""):"null"},Tt=function(){return k(this).scheme+":"},Pt=function(){return k(this).username},Et=function(){return k(this).password},At=function(){var t=k(this),e=t.host,i=t.port;return null===e?"":null===i?B(e):B(e)+":"+i},Dt=function(){var t=k(this).host;return null===t?"":B(t)},jt=function(){var t=k(this).port;return null===t?"":String(t)},Mt=function(){var t=k(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},It=function(){var t=k(this).query;return t?"?"+t:""},Ot=function(){return k(this).searchParams},Rt=function(){var t=k(this).fragment;return t?"#"+t:""},Lt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&l(kt,{href:Lt(Ct,(function(t){var e=k(this),i=String(t),n=wt(e,i);if(n)throw TypeError(n);w(e.searchParams).updateSearchParams(e.query)})),origin:Lt(St),protocol:Lt(Tt,(function(t){var e=k(this);wt(e,String(t)+":",tt)})),username:Lt(Pt,(function(t){var e=k(this),i=p(String(t));if(!X(e)){e.username="";for(var n=0;n=74)&&(n=r.match(/Chrome\/(\d+)/))&&(s=n[1]),t.exports=s&&+s},LSYs:function(t,e,i){var n=i("iouN"),s=i("aoh3"),o=i("E3GT")("species");t.exports=function(t,e){var i;return s(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!s(i.prototype)?n(i)&&null===(i=i[o])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)}},LWhJ:function(t,e,i){var n=i("F+6m"),s=i("p8bu");t.exports=Object.keys||function(t){return n(t,s)}},MoCz:function(t,e,i){"use strict";var n=i("67WC"),s=i("5Yz+"),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(t){return s.apply(o(this),arguments)}))},"NC/Y":function(t,e,i){var n=i("0GbY");t.exports=n("navigator","userAgent")||""},NMyJ:function(t,e){t.exports=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t}},NaFW:function(t,e,i){var n=i("9d/t"),s=i("P4y1"),o=i("tiKp")("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||s[n(t)]}},"O+t3":function(t,e,i){var n=i("huUE"),s=i("1Vse"),o=i("Z8op"),r=i("pgCt");for(var a in s){var l=n[a],c=l&&l.prototype;if(c&&c.forEach!==o)try{r(c,"forEach",o)}catch(t){c.forEach=o}}},O1gm:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},OM9Z:function(t,e,i){i("I+eb")({target:"String",proto:!0},{repeat:i("EUja")})},Onu3:function(t,e,i){"use strict";var n=i("67WC"),s=i("tycR").findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(t){return s(o(this),t,arguments.length>1?arguments[1]:void 0)}))},OoLz:function(t,e,i){var n=i("iouN"),s=i("m5ii"),o=i("E3GT")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==s(t))}},P4y1:function(t,e){t.exports={}},P64T:function(t,e,i){var n=i("zH2X"),s=i("m5ii"),o=i("E3GT")("toStringTag"),r="Arguments"==s(function(){return arguments}());t.exports=n?s:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?i:r?s(e):"Object"==(n=s(e))&&"function"==typeof e.callee?"Arguments":n}},P8wP:function(t,e,i){"use strict";var n=i("67WC"),s=i("tycR").map,o=i("SEBh"),r=n.aTypedArray,a=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",(function(t){return s(r(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(o(t,t.constructor)))(e)}))}))},PF2M:function(t,e,i){"use strict";var n=i("67WC"),s=i("UMSQ"),o=i("GC2F"),r=i("ewvW"),a=i("0Dky"),l=n.aTypedArray;(0,n.exportTypedArrayMethod)("set",(function(t){l(this);var e=o(arguments.length>1?arguments[1]:void 0,1),i=this.length,n=r(t),a=s(n.length),c=0;if(a+e>i)throw RangeError("Wrong length");for(;c=i.length?{value:void 0,done:!0}:(t=n(i,s),e.index+=t.length,{value:t,done:!1})}))},PaWS:function(t,e){t.exports=!1},"Q9e/":function(t,e,i){"use strict";(function(t,n){i.d(e,"a",(function(){return s}));i("QWBl"),i("oVuX"),i("sMBO"),i("rB9j"),i("UxlC"),i("FZtP");var s={token:!1,addT6:function(){t("#content .container").append(''),s.setupClose(),s.setupInputs(),s.setupPayClickT6()},addTokenBlik:function(){t("#content .container").append('

Zamknij

Blik

P�atno�� tokenem blik

ZAPŁAĆ


'),s.setupClose(),s.setupPayClickToken()},setupClose:function(){t("#t6-popup-close").click((function(){t("#t6-popup").hide(),t(".layerPowiadom").hide()})),t("#blik-token-popup-close").click((function(){t("#blik-token-popup").hide(),t(".layerPowiadom").hide()})),t("#blik-token-popup-alt-close").click((function(){t("#blik-token-alt-popup").hide(),t(".layerPowiadom").hide()}))},setupInputs:function(){t(".tinput").bind("input",(function(){var e=t(this)[0].name;e=e.replace("t","");var i=++e;i>6?t("#plackodblik").focus():t(".tinput[name=t"+i+"]").focus()}))},setupPayClickToken:function(){t("#plackodbliktoken").click((function(){post_data={},post_data.payuTroya=t("#payuTroya").val(),post_data.fingerprint=t("#fingerprint").val(),post_data.payMethod="blik",post_data.trybliktoken=!0,t("#blik-token-popup").hide(),t("#loader").show(),t.get("/payu/order.php",post_data).done((function(e){if((e=JSON.parse(e)).blikData&&e.blikData.alternatives)return s.injectAlternativesForm(e.blikData.alternatives),t("#blik-token-popup").hide(),void t("#loader").hide();e.single&&e.redirectUrl&&(window.location.href=e.redirectUrl)}))}))},setupPayClickT6:function(){t("#plackodblik").click((function(){var e=[t(".tinput[name=t1]").val(),t(".tinput[name=t2]").val(),t(".tinput[name=t3]").val(),t(".tinput[name=t4]").val(),t(".tinput[name=t5]").val(),t(".tinput[name=t6]").val()];t("#T6").val(e.join("")),t("#paymethods-popup-form").submit(),t("#t6-popup").hide(),t("#loader").show()}))},showT6:function(){t(".layerPowiadom").show(),n("#t6-popup").css("top",window.scrollY).show(),t(".tinput[name=t1]").focus()},showBlikToken:function(){t("#plackodbliktoken").click()},injectAlternativesForm:function(e){t("#content .container").append('

Zamknij

Blik

Wybierz aplikację z listy płatności.





ZAPŁAĆ


'),t("#blik-token-alt-popup .alternatives").html(""),e.forEach((function(e,i,n){t("#blik-token-alt-popup .alternatives").append("
"+e.appLabel+"
")})),s.setupClose(),s.setupAlternativeClicks(),s.setupPayClickAlternatives(),n("#blik-token-alt-popup").css("top",window.scrollY).show()},setupPayClickAlternatives:function(){t("#placaltbliktoken").unbind("click"),t("#placaltbliktoken").click((function(){post_data={},post_data.payuTroya=t("#payuTroya").val(),post_data.fingerprint=t("#fingerprint").val(),post_data.payMethod="blik",post_data.trybliktoken=!0,post_data.alternative=!0,post_data.appKey=t("input[name=appKey]:checked").val(),t("#loader").show(),t("#blik-token-alt-popup").hide(),t.get("/payu/order.php",post_data).done((function(t){(t=JSON.parse(t)).single&&t.redirectUrl&&(window.location.href=t.redirectUrl)}))}))},setupAlternativeClicks:function(){t(".alternative-line").click((function(){t(".alternative-line").each((function(t,e,i){e.style.background="white",e.style.color="black"})),t(".alternative-line input").each((function(t,e,i){e.checked=!1}));var e=t(this);e[0].style.background="#0a3f5c",e[0].style.color="white",e.children()[0].checked=!0}))}}}).call(this,i("EVdn"),i("EVdn"))},QIpd:function(t,e,i){var n=i("xrYK");t.exports=function(t){if("number"!=typeof t&&"Number"!=n(t))throw TypeError("Incorrect invocation");return+t}},"Qc/9":function(t,e,i){var n=i("y26h"),s=i("D6kV"),o=i("t0Mh"),r=i("DYDg"),a=i("LSYs"),l=[].push,c=function(t){var e=1==t,i=2==t,c=3==t,u=4==t,h=6==t,d=5==t||h;return function(p,f,m,g){for(var v,y,b=o(p),_=s(b),w=n(f,m,3),x=r(_.length),k=0,C=g||a,S=e?C(p,x):i?C(p,0):void 0;x>k;k++)if((d||k in _)&&(y=w(v=_[k],k,b),t))if(e)S[k]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return k;case 2:l.call(S,v)}else if(u)return!1;return h?-1:c||u?u:S}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},"Qsl/":function(t,e,i){(function(t){i("fbCW"),t(document).ready((function(){t(".powiadomMnie, .powiadomMniePL").click((function(e){e.preventDefault();var i=t(this).attr("data-powiadom-info"),n=t(this).attr("data-powiadom-troya"),s=t(this).attr("data-powiadom-status")||1,o=(document.querySelector("#notify-form"),document.querySelector("#notify-form-troya")),r=document.querySelector("#notify-form-info-text"),a=document.querySelector("#notify-form-accept-text"),l=document.querySelector("#notify-form-status"),c=document.querySelector("#notify-form-type"),u="Chcę otrzymać informację o dostępności książki.";"infoemail"==i&&(r.innerHTML="Jeżeli chcesz otrzymać e-mailem informację jak książka będzie dostępna, wpisz poniżej swój adres e-mail.",a.innerHTML=u),"wyczerpemail"==i&&(r.innerHTML="Jeżeli chcesz otrzymać e-mailem informację jak książka będzie dostępna, wpisz poniżej swój adres e-mail.",a.innerHTML=u),"audio_request"==i&&(r.innerHTML="Jeżeli chcesz otrzymać e-mailem informację o dostępności audiobooka, wpisz poniżej swój adres e-mail.",a.innerHTML="Chcę otrzymać mailową informację o dostępności audiobooka."),"info_pl"==i&&(r.innerHTML="Jeżeli chcesz otrzymać e-mailem informację, gdy książka będzie dostępna w języku polskim, wpisz poniżej swój adres e-mail.",a.innerHTML=u),c.value=i,""!=n&&(o.value=n),""!=s&&(l.value=s),t(".layerPowiadom").css("display","block"),t(".popupLayerPowiadom").css("display","block")})),t(".button_send_popup").on("click",(function(e){e.preventDefault();var i=t("#notify-form #notify-form-troya").val(),n=t("#notify-form #notify-form-email").val(),s=t("#notify-form #notify-form-status").val(),o=t("#notify-form #notify-form-type").val();s=parseInt(s);var r,a,l=t("#recaptcha_token").val();return r=t("#notify-form #accept_rodo").is(":checked"),a=t("#notify-form #accept_newsletter").is(":checked")?1:0,""==n?(alert("Pole e-mail nie może być puste!"),!1):r?void t.get("/api/email-notify",{ident:i,email:n,newsletter:a,status:s,notify_type:o,recaptcha_token:l},(function(e){e.result>0&&(t("#popup-container").find(".form").remove(),t("#popup-container").append('
Dziękujemy za zgłoszenie. Otrzymasz e-mailem informację, kiedy książka będzie dostępna.
'))})):(alert("Zaznacz zgodę na informację o dostępności!"),!1)})),t("#tp_accept_personal_data").tooltip({items:"a.tp_accept_personal_data_target",content:'Administratorem danych osobowych jest Helion.pl Sp. z o.o.z siedzibą w Gliwicach (GRUPA HELION). Dane osobowe Użytkownika są przetwarzane w celu realizacji zamówienia, w celach analitycznych i statystycznych, realizacji obowiązków ustawowych, w celach marketingowych. Podanie danych osobowych jest dobrowolne, ale niezbędne dla celów świadczenia usług i realizacji umowy. Użytkownik ma prawo dostępu do treści swoich danych, w tym uzyskania ich kopii oraz prawo sprostowania, usunięcia, ograniczenia przetwarzania, prawo do przenoszenia danych, prawo wniesienia sprzeciwu. Więcej w Polityce Prywatności »',position:{my:"left+15 center",at:"right center"},close:function(e,i){i.tooltip.hover((function(){t(this).stop(!0).fadeTo(500,1)}),(function(){t(this).fadeOut("500",(function(){t(this).remove()}))}))}}),t("#tp_accept_newsletter").tooltip({items:"a.tp_accept_newsletter_target",content:'Zgodę mogę wycofać w każdej chwili, a jej wycofanie nie wpływa na zgodność z prawem przetwarzania dokonanego przed jej wycofaniem. Administratorem danych osobowych jest Helion.pl Sp. z o.o.z siedzibą w Gliwicach (GRUPA HELION). Użytkownik ma prawo dostępu do treści swoich danych, w tym uzyskania ich kopii oraz prawo sprostowania, usunięcia, ograniczenia przetwarzania, prawo do przenoszenia danych, prawo wniesienia sprzeciwu. Więcej w Polityce Prywatności »',position:{my:"left+15 center",at:"right center"},close:function(e,i){i.tooltip.hover((function(){t(this).stop(!0).fadeTo(500,1)}),(function(){t(this).fadeOut("500",(function(){t(this).remove()}))}))}})}))}).call(this,i("EVdn"))},Rm1S:function(t,e,i){"use strict";var n=i("14Sl"),s=i("glrk"),o=i("UMSQ"),r=i("HYAF"),a=i("iqWW"),l=i("FMNM");n("match",1,(function(t,e,i){return[function(e){var i=r(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var r=s(t),c=String(this);if(!r.global)return l(r,c);var u=r.unicode;r.lastIndex=0;for(var h,d=[],p=0;null!==(h=l(r,c));){var f=String(h[0]);d[p]=f,""===f&&(r.lastIndex=a(c,o(r.lastIndex),u)),p++}return 0===p?null:d}]}))},S0Fv:function(t,e,i){var n=i("E3GT"),s=i("iOm5"),o=i("apSV"),r=n("unscopables"),a=Array.prototype;null==a[r]&&o.f(a,r,{configurable:!0,value:s(null)}),t.exports=function(t){a[r][t]=!0}},SF7i:function(t,e,i){var n=i("E3GT"),s=i("ZFZo"),o=n("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||r[o]===t)}},SWun:function(t,e){e.f=Object.getOwnPropertySymbols},SYor:function(t,e,i){"use strict";var n=i("I+eb"),s=i("WKiH").trim;n({target:"String",proto:!0,forced:i("yNLB")("trim")},{trim:function(){return s(this)}})},SkcH:function(t,e,i){(function(t){i("fbCW"),i("yXV3"),i("oVuX"),i("+2oP"),i("rB9j"),i("hByQ"),i("EnZy"),t(document).ready((function(){"use strict";t(".checkbox-line input, .radio-line input,.vote-line input, .radio-group input, .checkbox-line-filters input").change((function(){o()})),o(),t(".link-filter a").on("click",(function(e){e.preventDefault(),t("#content").addClass("show-filter"),t(".your-profile").css("display","none")})),t(".christmas-ico-gift-link").on("click",(function(e){e.preventDefault(),t(".popupLayerWysylkiSwiateczne").css("display","block"),t("#layer").css("display","block"),t("#layer").css("opacity","0.5")})),t(".popupLayerWysylkiSwiateczneClose").on("click",(function(e){e.preventDefault(),t(".popupLayerWysylkiSwiateczne").css("display","none"),t("#layer").css("display","none")})),t(".fixed-section-presale-text-first-druk img").hover((function(){t(".fixed-section-presale-info-druk").css("display","block")}),(function(){t(".fixed-section-presale-info-druk").css("display","none")})),t(".fixed-section-presale-text-first-ebook img").hover((function(){t(".fixed-section-presale-info-ebook").css("display","block")}),(function(){t(".fixed-section-presale-info-ebook").css("display","none")})),t(".filter-form .header span").on("click",(function(e){e.preventDefault(),t("#content").removeClass("show-filter"),t(".your-profile").css("display","block")})),t(".deploy-corresp-add").on("click",(function(e){e.preventDefault(),t(".deploy-corresp-add").css("display","none"),t(".deploy-corresp-add-display").css("display","block")})),t(".link-sorter a").on("click",(function(e){e.preventDefault(),t("#content").addClass("show-sorter")})),t("#sortowanie .header span").on("click",(function(e){e.preventDefault(),t("#content").removeClass("show-sorter")})),t("#promoAngSort .header span").on("click",(function(e){e.preventDefault(),t("#content").removeClass("show-sorter")})),t("#categoryReadMore").on("click",(function(e){t("#categoryDescription").css("max-height","unset"),t("#categoryDescription").css("overflow","unset"),t(this).css("display","none")})),t(document).width()>=1e3&&(t("#mainBookCover").mouseover((function(e){t("#mainBookCoverBig").css("display","block")})),t("#mainBookCoverBig").mouseout((function(e){t(this).css("display","none")})),t("#mainBookCoverTwo").mouseover((function(e){t("#mainBookCoverBigTwo").css("display","block")})),t("#mainBookCoverBigTwo").mouseout((function(e){t(this).css("display","none")}))),t(document).width()<=600&&(t("#mainBookCover").on("click",(function(e){t("#mainBookCoverBig").addClass("big-cover-mobile"),t("#layer").css("display","block"),t("#mainBookCoverBig").css("z-index",100)})),t("#mainBookCoverBig").on("click",(function(e){t(this).removeClass("big-cover-mobile"),t("#layer").css("display","none"),t("#mainBookCoverBig").css("z-index",1)})),t("#mainBookCoverTwo").on("click",(function(e){t("#mainBookCoverBigTwo").addClass("big-cover-mobile"),t("#layer").css("display","block"),t("#mainBookCoverBigTwo").css("z-index",100)})),t("#mainBookCoverBigTwo").on("click",(function(e){t(this).removeClass("big-cover-mobile"),t("#layer").css("display","none"),t("#mainBookCoverBigTwo").css("z-index",1)})),t("#mainBookCoverAudio").on("click",(function(e){t(this).hasClass("big-cover-audio-mobile")?(t(this).removeClass("big-cover-audio-mobile"),t("#layer").css("display","none"),t(this).css("z-index",1)):(t(this).addClass("big-cover-audio-mobile"),t("#layer").css("display","block"),t(this).css("z-index",100))}))),t("#cookie-wrapper .button a").click((function(e){t("#cookie-wrapper").animate({bottom:-80}),e.preventDefault()})),t(".book-type-price fieldset .price").click((function(e){t(".book-type-price fieldset.active").removeClass("active"),t(this).parent("fieldset").addClass("active")})),t(".book-type-price .button .one-click").click((function(e){e.preventDefault(),e.stopPropagation(),t(this).parent().toggleClass("show")})),t(document).click((function(){t(".book-type-price .button .show").removeClass("show")})),t(".book-type-price fieldset").click((function(e){t(".book-type-price fieldset.active").removeClass("active"),t(this).addClass("active")})),t(".search-link a").click((function(e){t(this).parents(".page-tools form").hasClass("show-popup")||(t(this).parents(".page-tools form").addClass("show-popup"),e.stopPropagation()),e.preventDefault()})),t(".page-tools .popup").click((function(t){t.stopPropagation()})),t(document).click((function(){t(".show-popup").removeClass("show-popup")})),t(".page-menu a").click((function(e){var i=t(this).attr("href");i=i.slice(i.indexOf("#")),t("html, body").animate({scrollTop:t(i).offset().top})})),t(document).width()<599&&t(".user-tools").on("click",(function(e){t(this).hasClass("showed")?(t(".login-links").css("display","none"),t(this).removeClass("showed")):(t(".login-links").css("display","block"),t(this).addClass("showed"))})),t(".book-list-group").length&&(t(".book-list-group .checkbox-line input").change((function(){s()})),s()),t("#section7 .grey-button a.more").click((function(e){t("#spisTresci").css("height","auto"),t(this).parent().hide(),e.preventDefault()})),t(".play-icon a").click((function(e){t("video",t(this).closest(".clip-object"))[0].play(),t(this).closest(".play-icon").hide(),e.preventDefault()})),t(".link-catalog a").click((function(e){t(".left-col").removeClass("show-series"),t(".menu-catalog").slideDown(),t(".menu-series").slideUp(),e.preventDefault(),e.stopPropagation()})),t(".link-series a").click((function(e){t(".left-col").addClass("show-series"),t(".menu-catalog").slideUp(),t(".menu-series").slideDown(),t("html, body").animate({scrollTop:0},"slow"),e.preventDefault(),e.stopPropagation()})),t(document).on("click",".close-link-menu a",(function(t){zamknijPopup(this)})),t(".main-promotion .promotion-book .bubble .bubble-title").click((function(e){return t(".main-promotion .promotion-book").fadeOut(),t(".main-promotion .promotion-video").fadeIn(),!1})),t("#coverPromotionBubble .bubble-title").click((function(e){return t(".main-promotion .promotion-book").fadeIn(),t(".main-promotion .promotion-video").fadeOut(),!1})),t(".subpage-toolbar .left-col .link-catalog a").on("click",(function(e){(0===t("body.main").length||t("#content").width()<1160)&&(t(".subpage-toolbar .left-col").toggleClass("active"),e.stopPropagation(),e.preventDefault())})),t(".page-menu li a").on("click",(function(e){t("#content").width()<768&&t(".page-menu").addClass("page-menu-not-hover")})),t(".subpage-toolbar .left-col").click((function(t){t.stopPropagation()})),t(document).click((function(){t(".subpage-toolbar .left-col").removeClass("active")})),t(".your-profile p a").click((function(e){t(".user-tools").toggleClass("active"),e.preventDefault()})),t(".user-tools").click((function(t){t.stopPropagation()})),t(document).click((function(){t(".user-tools").removeClass("active")})),t(".page-tools .link-search a").click((function(e){t(".page-tools form").addClass("active"),t("#inputSearch")[0].focus(),e.preventDefault()})),t(".page-tools .link-closesearch a").click((function(e){t(".page-tools form").removeClass("active"),e.preventDefault()})),t(".page-tools .search-line input").focus((function(){})),t(".page-tools .search-line input").blur((function(){t(".page-tools").removeClass("focus")})),t(".main-banner .banners li").click((function(){t("h2 a",this)[0].click()})),t(".my-list h1 a").click((function(e){t(this).parents(".my-list").toggleClass("active"),e.preventDefault()})),t(".usermenu-box p a").click((function(e){t("ul",t(this).parents(".usermenu-box")).length&&(t(this).parents(".usermenu-box").toggleClass("active"),e.preventDefault())})),t(".fixed-section").length?(t(window).scroll((function(){n(!0)})),n(!0)):(t(window).scroll((function(){n(!1)})),n(!1)),function(){var e,i=[];if(t(".page-menu").length){e=t(".menu-section-item");for(var n=t(".page-menu li a"),s=0;si.length-1?e=0:e<0&&(e=i.length-1);var s=e;e!=n&&(t(".main-banner .banners li").eq(n).css({zIndex:1}),t(".main-banner .navigator li.active").removeClass("active"),t(".main-banner .navigator li").eq(e).addClass("active"),t(".main-banner .banners li").eq(e).show().css({opacity:0,zIndex:2}),t(".main-banner .banners li").eq(e).animate({opacity:1},(function(){t(".main-banner .banners li").eq(n).hide(),n=s})))};if(i.length>1){t(".main-banner").append('');for(var r=0;r'+(r+1)+"");t(".main-banner .banners li").hide(),t(".main-banner .banners li:first-child").show(),t(".main-banner .navigator li:first-child").addClass("active"),t(".main-banner .navigator li a").click((function(e){o(t(this).parent().index()),e.preventDefault()})),t(".main-banner .navigator-prev-next .next a").click((function(t){o(n+1),t.preventDefault()})),t(".main-banner .navigator-prev-next .prev a").click((function(t){o(n-1),t.preventDefault()})),t(".main-banner").hover((function(){clearInterval(e)}),(function(){s()})),s()}else t(".main-banner .navigator-prev-next").hide()}(),function(){var e=t(".book-list-container");function i(e){if(0===t(".list:animated",e).length){var i,n,s,o,r=0,a=0;e.width()<=320?(t(e).parents(".col-right").length?(i=t(".list > li",e).width()+6,a=-57):i=t(".list > li",e).width()+4,n=2):e.width()>=940?(i=t(".list > li",e).width()-4,a=0,r=30,n=15):e.width()>=920?(i=t(".list > li",e).width()+3,a=-57,n=5):e.width()>=860?(i=t(".list > li",e).width()-4,a=-57,n=5):(i=t(".list li",e).width()+18,n=4,r=4);var l=t(".list",e).position().left;s=e.width()<=320&&t(e).parents(".col-right").length?177:e.width()<=320?160:e.width()>=920?183:e.width()>=860?176:174,e.hasClass("filter-list")?o=0===l?-t(".list > li:visible",e).length*i+e.width()-r:Math.min(0,l+n*i+a):(l>=-5*s&&(l-=(t(".list > li",e).length-10)*s,t(".list",e).css({left:l+"px"})),o=l+n*i+a),t(".list > li",e).removeClass("first-visible"),t(".list > li:visible",e).eq(Math.floor(-o/s)+1).addClass("first-visible"),t(".list",e).animate({left:o},500)}}function n(e){if(0===t(".list:animated",e).length){var i,n,s,o,r=0,a=0;e.width()<=320?(t(e).parents(".col-right").length?(i=t(".list > li",e).width()+6,a=3):i=t(".list > li",e).width()+4,n=2):e.width()>=940?(i=t(".list > li",e).width()-4,a=0,r=30,n=5):e.width()>=920?(i=t(".list > li",e).width()+3,a=3,n=5):e.width()>=860?(i=t(".list > li",e).width()-4,a=3,n=5):(i=t(".list > li",e).width()+18,n=4,r=4);t(".list > li:visible",e).length;var l=t(".list",e).position().left;s=e.width()<=320&&t(e).parents(".col-right").length?177:e.width()<=320?160:e.width()>=920?183:e.width()>=860?176:174,e.hasClass("filter-list")?o=l==-t(".list > li:visible",e).length*i+e.width()-r?0:Math.max(-t(".list > li:visible",e).length*i+e.width()-r,l-n*i+a):(l<=-(t(".list > li",e).length-10)*s&&(l-=27,l+=(t(".list > li",e).length-10)*s,t(".list",e).css({left:l+"px"}),a+=27),o=l-n*i+a),t(".list > li",e).removeClass("first-visible"),t(".list > li:visible",e).eq(Math.floor(-o/s)+1).addClass("first-visible"),t(".list",e).animate({left:o},500)}}for(var s=0;s li",e.eq(s)),r=0;r<5;r++)t(o[r]).addClass("copy").appendTo(t(".list",e.eq(s)));for(r=o.length-1;r>=o.length-5;r--)t(o[r]).addClass("copy").prependTo(t(".list",e.eq(s)));var a=-5*o.width();e.width()<=320&&t(e).parents(".col-right").length?a+=45:e.width()<=320?a-=20:e.width()>=920?a+=17:e.width()>=860?a+=50:a-=89,o.removeClass("first-visible"),o.eq(0).addClass("first-visible"),t(".list",e.eq(s)).css({width:(o.length+10)*o.width()+"px",left:a+"px"})}e.eq(s).append('');var l=t(".list > li",e.eq(s));for(r=0;r li");t("#layer").show().css({opacity:0}).animate({opacity:.4}),t("#add-to-board").css({left:i.offset().left-70,top:i.offset().top}).show(),t(".box-scroll").tinyscrollbar()})),t(".book-list-container .list .board-link a").click((function(e){e.preventDefault();var i=t(this).parents(".book-list-container .list > li");t("#layer").show().css({opacity:0}).animate({opacity:.4}),t("#add-to-board").css({left:i.offset().left-70,top:i.offset().top}).show(),t(".box-scroll").tinyscrollbar()})),t("#text-popup .close a").click((function(e){e.preventDefault(),e.stopPropagation(),t("#layer").fadeOut(),t("#text-popup").hide(),t(".popupLayerUwagiDK").hide(),t(".popupLayerOnDemand").hide(),t(".popupLayerWysylkiSwiateczne").hide()})),t(document).click((function(){t(".book-list-container .list .read").removeClass("show")})),t(".bank-transfer").click((function(e){var i=t(this).parents(".choose-line");t("#layer").show().css({opacity:0}).animate({opacity:.4}),t("#payment-popup").css({top:i.offset().top-230}).show()})),t("#payment-popup .close a").click((function(e){e.preventDefault(),e.stopPropagation(),t("#layer").fadeOut(),t("#payment-popup").hide()})),t("#payment-popup input").bind("change, click",(function(e){t(".bank-transfer .name").html(t(this).attr("data-name")),t(".bank-transfer img").attr("src",t(this).attr("data-image")),t(".bank-transfer .link").addClass("show"),t(".bank-transfer input").val(t(this).val()).attr("checked",!0),t(".bank-transfer").addClass("active"),t("#layer").fadeOut(),t("#payment-popup").hide()})),t(".book-list-filter").length&&(t("#selectType").change((function(){r("list1","selectType","bookType1","bookType2","bookType3","bookType4"),t(".book-list-filter .reset").show()})),t(".book-list-filter .checkbox-line input").change((function(){r("list1","selectType","bookType1","bookType2","bookType3","bookType4"),t(".book-list-filter .reset").show()})),t(".book-list-filter .reset a").click((function(e){e.preventDefault(),t(".book-list-filter form")[0].reset(),t(".book-list-filter select").change(),o(),r("list1","selectType","bookType1","bookType2","bookType3","bookType4"),t(".book-list-filter .reset").hide()})),t(".book-list-filter .reset").hide()),t(".select select").change((function(){t(this).prev().html(t(t(this)[0].options[t(this)[0].selectedIndex]).html())})),t(document).width()<600&&t(".group-mobile .col .title").click((function(){t(this).next().toggle()}))}));var e=0;function n(i){var n=Math.max(t("html").scrollTop(),t("body").scrollTop());if(i){var s=t(".fixed-section").parent(),o=t(".fixed-section").attr("data-link");o&&(s=t("#"+o)),n>t(".fixed-section").parent().offset().top+s.height()-t(".fixed-section > *").height()?t(".fixed-section").addClass("isFixedBottom"):n>t(".fixed-section").offset().top?(t(".fixed-section").removeClass("isFixedBottom").addClass("isFixed"),t(".fixed-section").css({height:""})):(t(".fixed-section").removeClass("isFixedBottom").removeClass("isFixed"),t(".fixed-section").css({height:""}))}e<=250&&n>250?(t("body").addClass("fixed-header"),t(".fixed-header .subpage-toolbar-right").css({top:-100}).animate({top:0}),t(".fixed-header .logo").css({top:-100}).animate({top:0}),t(".fixed-header header.header .user-tools").css({top:-80}).animate({top:23})):e>250&&n<=250&&(t(".fixed-header .subpage-toolbar-right").stop().css({top:""}),t(".fixed-header .logo").stop().css({top:""}),t(".fixed-header header.header .user-tools").stop().css({top:""}),t("body").removeClass("fixed-header")),e=n}function s(){for(var e=t(".book-list-group .checkbox-line input"),i=t(".book-list-group .list li"),n=0;n0&&(p=".category-"+a),l&&(d[d.length]="li"+p+".class-book"),c&&(d[d.length]="li"+p+".class-ebook"),u&&(d[d.length]="li"+p+".class-audio"),h&&(d[d.length]="li"+p+".class-video"),t("#"+e).find(d.join(", ")).show(),t("#"+e).animate({left:0})}}).call(this,i("EVdn"))},SnCB:function(t,e,i){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i("pNMO"),i("4Brf"),i("0oug"),i("yXV3"),i("4mDm"),i("sMBO"),i("07d7"),i("rB9j"),i("PKPk"),i("UxlC"),i("3bBZ");var n=function(i){if(data=i,"object"!==("undefined"==typeof data?"undefined":e(data))&&(data=JSON.parse(data)),window._users=data,data.ile>0&&(t("#koszykbox").html(data.ile),t("#koszykboxFixedHeader").html('

KOSZYK '+data.suma+' (

'+data.ile+'

)

')),t("#ile-n-archiwum-ebook").html(" ("+data.biblioteka.ebooks+")"),t("#ile-n-archiwum-audiobook").html(" ("+data.biblioteka.audiobooks+")"),t("#ile-n-archiwum-kurs").html(" ("+data.biblioteka.courses+")"),t("#ile-kurs-dodatki").html(" ("+data.biblioteka.addition+")"),t(".ile-archiwum-ebook").html(" ("+data.archiwum.ebooks+")"),t(".ile-archiwum-audiobook").html(" ("+data.archiwum.audiobooks+")"),t(".ile-archiwum-kursy").html(" ("+data.archiwum.courses+")"),t("#ile-prezenty").html(" ("+data.prezenty+")"),t("#ile-kurs-materialy").html(" ("+data.materialy+")"),t("#ile-sample").html(" ("+data.sample+")"),data.login){data.sample>0&&""!=data.last_sample&&!t.cookie("hidesampleinfo")&&(t(".sample-info .sample-info-title").html(data.last_sample),t(".sample-info").show()),"undefined"!=typeof ga&&(ga("set","&uid",data.uid),ga("set","dimension1",data.uid)),t("#userAccount").show();var n=data.name?data.name:"";t("#helloUser").html("Witaj "+n+""),t(".your-profile-account").addClass("logged-in"),t(".login-links p").html(""),t("#logOnMobile").html(""),t("#userTwojeBiblioteka").html("Twoja biblioteka"),t("#userArchiwum").html("Archiwum"),t("#userPrezenty").html("Prezenty "),t("#ile-prezenty-mobile").html("("+data.prezenty+")"),t("#userTwojePolki").html("Twoje półki"),t("#userTwojeKonto").html("Twoje konto"),t("#userEdycjaKonta").html("Edycja konta"),data.biblioteka&&(0==data.biblioteka.ebooks&&t("#ile-n-archiwum-ebook2").closest("li").addClass("disable"),t("#ile-n-archiwum-ebook2").html("("+data.biblioteka.ebooks+")"),0==data.biblioteka.audiobooks&&t("#ile-n-archiwum-audiobook2").closest("li").addClass("disable"),t("#ile-n-archiwum-audiobook2").html("("+data.biblioteka.audiobooks+")"),0==data.biblioteka.courses&&t("#ile-n-archiwum-kurs2").closest("li").addClass("disable"),t("#ile-n-archiwum-kurs2").html("("+data.biblioteka.courses+")")),0==data.prezenty&&t("#ile-prezenty2").closest("li").addClass("disable"),t("#ile-prezenty2").html("("+data.prezenty+")"),data.sample?t("#ile-sample2").html("("+data.sample+")"):t("#ile-sample2").closest("li").addClass("disable")}};"_users"in window?n(window._users):t.ajax({url:"/api/users/info",method:"get",success:n});var s=window._bookstore;t("p:contains('@"+s+"')").each((function(){if(-1==t(this).html().indexOf("href")){t(this).html(t(this).html().replace(/\w+@\w+\.\w{2}/,"$&"))}}));t('a[href^="mailto:"]').each((function(){t(this).text(t(this).text().replace(/(.{0})(.*)(?=@)/,(function(t,e,i){for(var n=0;n-1?t(this).text()!=t(this).attr("href").substring(7,t(this).attr("href").indexOf("?"))&&(t(this).text(t(this).attr("href").substring(7,t(this).attr("href").indexOf("?"))),e.preventDefault(),e.stopPropagation()):t(this).text()!=t(this).attr("href").substring(7)&&(t(this).text(t(this).attr("href").substring(7)),e.preventDefault(),e.stopPropagation())}))}))}).call(this,i("EVdn"))},SxSM:function(t,e,i){var n,s,o;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)} /*! jPlayer 2.9.2 for jQuery ~ (c) 2009-2014 Happyworm Ltd ~ MIT License */i("pNMO"),i("4Brf"),i("0oug"),i("ma9I"),i("yXV3"),i("4mDm"),i("oVuX"),i("+2oP"),i("pDQq"),i("qePV"),i("07d7"),i("rB9j"),i("PKPk"),i("OM9Z"),i("UxlC"),i("EnZy"),i("3bBZ"),s=[i("EVdn")],void 0===(o="function"==typeof(n=function(t,e){t.fn.jPlayer=function(i){var n="jPlayer",s="string"==typeof i,o=Array.prototype.slice.call(arguments,1),r=this;return i=!s&&o.length?t.extend.apply(null,[!0,i].concat(o)):i,s&&"_"===i.charAt(0)||this.each(s?function(){var s=t(this).data(n),a=s&&t.isFunction(s[i])?s[i].apply(s,o):s;return a!==s&&a!==e?(r=a,!1):void 0}:function(){var e=t(this).data(n);e?e.option(i||{}):t(this).data(n,new t.jPlayer(i,this))}),r},t.jPlayer=function(e,i){if(arguments.length){this.element=t(i),this.options=t.extend(!0,{},this.options,e);var n=this;this.element.bind("remove.jPlayer",(function(){n.destroy()})),this._init()}},"function"!=typeof t.fn.stop&&(t.fn.stop=function(){}),t.jPlayer.emulateMethods="load play pause",t.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",t.jPlayer.emulateOptions="muted volume",t.jPlayer.reservedEvent="ready flashreset resize repeat error warning",t.jPlayer.event={},t.each(["ready","setmedia","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],(function(){t.jPlayer.event[this]="jPlayer_"+this})),t.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","canplay","canplaythrough"],t.jPlayer.pause=function(){t.jPlayer.prototype.destroyRemoved(),t.each(t.jPlayer.prototype.instances,(function(t,e){e.data("jPlayer").status.srcSet&&e.jPlayer("pause")}))},t.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var i=function(){this.init()};i.prototype={init:function(){this.options={timeFormat:t.jPlayer.timeFormat}},time:function(t){t=t&&"number"==typeof t?t:0;var e=new Date(1e3*t),i=e.getUTCHours(),n=this.options.timeFormat.showHour?e.getUTCMinutes():e.getUTCMinutes()+60*i,s=this.options.timeFormat.showMin?e.getUTCSeconds():e.getUTCSeconds()+60*n,o=this.options.timeFormat.padHour&&10>i?"0"+i:i,r=this.options.timeFormat.padMin&&10>n?"0"+n:n,a=this.options.timeFormat.padSec&&10>s?"0"+s:s,l="";return l+=this.options.timeFormat.showHour?o+this.options.timeFormat.sepHour:"",(l+=this.options.timeFormat.showMin?r+this.options.timeFormat.sepMin:"")+(this.options.timeFormat.showSec?a+this.options.timeFormat.sepSec:"")}};var n=new i;t.jPlayer.convertTime=function(t){return n.time(t)},t.jPlayer.uaBrowser=function(t){var e=t.toLowerCase(),i=/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}},t.jPlayer.uaPlatform=function(t){var e=t.toLowerCase(),i=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(e)||[],n=/(ipad|playbook)/.exec(e)||!/(mobile)/.exec(e)&&/(android)/.exec(e)||[];return i[1]&&(i[1]=i[1].replace(/\s/g,"_")),{platform:i[1]||"",tablet:n[1]||""}},t.jPlayer.browser={},t.jPlayer.platform={};var s=t.jPlayer.uaBrowser(navigator.userAgent);s.browser&&(t.jPlayer.browser[s.browser]=!0,t.jPlayer.browser.version=s.version);var o=t.jPlayer.uaPlatform(navigator.userAgent);o.platform&&(t.jPlayer.platform[o.platform]=!0,t.jPlayer.platform.mobile=!o.tablet,t.jPlayer.platform.tablet=!!o.tablet),t.jPlayer.getDocMode=function(){var e;return t.jPlayer.browser.msie&&(document.documentMode?e=document.documentMode:(e=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(e=7))),e},t.jPlayer.browser.documentMode=t.jPlayer.getDocMode(),t.jPlayer.nativeFeatures={init:function(){var t,e,i,n=document,s=n.createElement("video"),o={w3c:["fullscreenEnabled","fullscreenElement","requestFullscreen","exitFullscreen","fullscreenchange","fullscreenerror"],moz:["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],webkit:["","webkitCurrentFullScreenElement","webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange",""],webkitVideo:["webkitSupportsFullscreen","webkitDisplayingFullscreen","webkitEnterFullscreen","webkitExitFullscreen","",""],ms:["","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError"]},r=["w3c","moz","webkit","webkitVideo","ms"];for(this.fullscreen=t={support:{w3c:!!n[o.w3c[0]],moz:!!n[o.moz[0]],webkit:"function"==typeof n[o.webkit[3]],webkitVideo:"function"==typeof s[o.webkitVideo[2]],ms:"function"==typeof s[o.ms[2]]},used:{}},e=0,i=r.length;i>e;e++){var a=r[e];if(t.support[a]){t.spec=a,t.used[a]=!0;break}}if(t.spec){var l=o[t.spec];t.api={fullscreenEnabled:!0,fullscreenElement:function(t){return(t=t||n)[l[1]]},requestFullscreen:function(t){return t[l[2]]()},exitFullscreen:function(t){return(t=t||n)[l[3]]()}},t.event={fullscreenchange:l[4],fullscreenerror:l[5]}}else t.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},t.event={}}},t.jPlayer.nativeFeatures.init(),t.jPlayer.focus=null,t.jPlayer.keyIgnoreElementNames="A INPUT TEXTAREA SELECT BUTTON";var a=function(e){var i,n=t.jPlayer.focus;n&&(t.each(t.jPlayer.keyIgnoreElementNames.split(/\s+/g),(function(t,n){return e.target.nodeName.toUpperCase()===n.toUpperCase()?(i=!0,!1):void 0})),i||t.each(n.options.keyBindings,(function(i,s){return s&&t.isFunction(s.fn)&&("number"==typeof s.key&&e.which===s.key||"string"==typeof s.key&&e.key===s.key)?(e.preventDefault(),s.fn(n),!1):void 0})))};t.jPlayer.keys=function(e){var i="keydown.jPlayer";t(document.documentElement).unbind(i),e&&t(document.documentElement).bind(i,a)},t.jPlayer.keys(!0),t.jPlayer.prototype={count:0,version:{script:"2.9.2",needFlash:"2.9.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",auroraFormats:"wav",preload:"metadata",volume:.8,muted:!1,remainingDuration:!1,toggleDuration:!1,captureDuration:!0,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",title:".jp-title",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},stateClass:{playing:"jp-state-playing",seeking:"jp-state-seeking",muted:"jp-state-muted",looped:"jp-state-looped",fullScreen:"jp-state-full-screen",noVolume:"jp-state-no-volume"},useStateClassSkin:!1,autoBlur:!0,smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(e){e.jPlayer.options.loop?t(this).unbind(".jPlayerRepeat").bind(t.jPlayer.event.ended+".jPlayer.jPlayerRepeat",(function(){t(this).jPlayer("play")})):t(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/(?=.*android)(?!.*chrome)(?=.*mobile)/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:80,fn:function(t){t.status.paused?t.play():t.pause()}},fullScreen:{key:70,fn:function(t){(t.status.video||t.options.audioFullScreen)&&t._setOption("fullScreen",!t.options.fullScreen)}},muted:{key:77,fn:function(t){t._muted(!t.options.muted)}},volumeUp:{key:190,fn:function(t){t.volume(t.options.volume+.1)}},volumeDown:{key:188,fn:function(t){t.volume(t.options.volume-.1)}},loop:{key:76,fn:function(t){t._loop(!t.options.loop)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,remaining:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,aurora:!0,flash:!0},format:{mp3:{codec:"audio/mpeg",flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var i=this;if(this.element.empty(),this.status=t.extend({},this.status),this.internal=t.extend({},this.internal),this.options.timeFormat=t.extend({},t.jPlayer.timeFormat,this.options.timeFormat),this.internal.cmdsIgnored=t.jPlayer.platform.ipad||t.jPlayer.platform.iphone||t.jPlayer.platform.ipod,this.internal.domNode=this.element.get(0),this.options.keyEnabled&&!t.jPlayer.focus&&(t.jPlayer.focus=this),this.androidFix={setMedia:!1,play:!1,pause:!1,time:NaN},t.jPlayer.platform.android&&(this.options.preload="auto"!==this.options.preload?"metadata":"auto"),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.aurora={},this.aurora.formats=[],this.aurora.properties=[],this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=this._limitValue(this.options.volume,0,1),t.each(this.options.supplied.toLowerCase().split(","),(function(e,n){var s=n.replace(/^\s+|\s+$/g,"");if(i.format[s]){var o=!1;t.each(i.formats,(function(t,e){return s===e?(o=!0,!1):void 0})),o||i.formats.push(s)}})),t.each(this.options.solution.toLowerCase().split(","),(function(e,n){var s=n.replace(/^\s+|\s+$/g,"");if(i.solution[s]){var o=!1;t.each(i.solutions,(function(t,e){return s===e?(o=!0,!1):void 0})),o||i.solutions.push(s)}})),t.each(this.options.auroraFormats.toLowerCase().split(","),(function(e,n){var s=n.replace(/^\s+|\s+$/g,"");if(i.format[s]){var o=!1;t.each(i.aurora.formats,(function(t,e){return s===e?(o=!0,!1):void 0})),o||i.aurora.formats.push(s)}})),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=t.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=t.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:e}),this.internal.video=t.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:e}),this.internal.flash=t.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:e,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"jquery.jplayer.swf":"")}),this.internal.poster=t.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:e}),t.each(t.jPlayer.event,(function(t,n){i.options[t]!==e&&(i.element.bind(n+".jPlayer",i.options[t]),i.options[t]=e)})),this.require.audio=!1,this.require.video=!1,t.each(this.formats,(function(t,e){i.require[i.format[e].media]=!0})),this.options=this.require.video?t.extend(!0,{},this.optionsVideo,this.options):t.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this.status.noVolume=this._uaBlocklist(this.options.noVolume),t.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners(),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){(!i.status.video||i.status.waitForPlay)&&i.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=t("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",(function(){i._trigger(t.jPlayer.event.click)})),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10.1),this.html.canPlay={},this.aurora.canPlay={},this.flash.canPlay={},t.each(this.formats,(function(e,n){i.html.canPlay[n]=i.html[i.format[n].media].available&&""!==i.htmlElement[i.format[n].media].canPlayType(i.format[n].codec),i.aurora.canPlay[n]=t.inArray(n,i.aurora.formats)>-1,i.flash.canPlay[n]=i.format[n].flashCanPlay&&i.flash.available})),this.html.desired=!1,this.aurora.desired=!1,this.flash.desired=!1,t.each(this.solutions,(function(e,n){if(0===e)i[n].desired=!0;else{var s=!1,o=!1;t.each(i.formats,(function(t,e){i[i.solutions[0]].canPlay[e]&&("video"===i.format[e].media?o=!0:s=!0)})),i[n].desired=i.require.audio&&!s||i.require.video&&!o}})),this.html.support={},this.aurora.support={},this.flash.support={},t.each(this.formats,(function(t,e){i.html.support[e]=i.html.canPlay[e]&&i.html.desired,i.aurora.support[e]=i.aurora.canPlay[e]&&i.aurora.desired,i.flash.support[e]=i.flash.canPlay[e]&&i.flash.desired})),this.html.used=!1,this.aurora.used=!1,this.flash.used=!1,t.each(this.solutions,(function(e,n){t.each(i.formats,(function(t,e){return i[n].support[e]?(i[n].used=!0,!1):void 0}))})),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.aurora.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:t.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:t.jPlayer.errorMsg.NO_SOLUTION,hint:t.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var n,s="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(t.jPlayer.browser.msie&&(Number(t.jPlayer.browser.version)<9||t.jPlayer.browser.documentMode<9)){var o='',r=['','','','',''];n=document.createElement(o);for(var a=0;a0&&(n.internal.cmdsIgnored=!1),n._getHtmlStatus(e),n._updateInterface(),n._trigger(t.jPlayer.event.progress))}),!1),e.addEventListener("loadeddata",(function(){i.gate&&(n.androidFix.setMedia=!1,n.androidFix.play&&(n.androidFix.play=!1,n.play(n.androidFix.time)),n.androidFix.pause&&(n.androidFix.pause=!1,n.pause(n.androidFix.time)),n._trigger(t.jPlayer.event.loadeddata))}),!1),e.addEventListener("timeupdate",(function(){i.gate&&(n._getHtmlStatus(e),n._updateInterface(),n._trigger(t.jPlayer.event.timeupdate))}),!1),e.addEventListener("durationchange",(function(){i.gate&&(n._getHtmlStatus(e),n._updateInterface(),n._trigger(t.jPlayer.event.durationchange))}),!1),e.addEventListener("play",(function(){i.gate&&(n._updateButtons(!0),n._html_checkWaitForPlay(),n._trigger(t.jPlayer.event.play))}),!1),e.addEventListener("playing",(function(){i.gate&&(n._updateButtons(!0),n._seeked(),n._trigger(t.jPlayer.event.playing))}),!1),e.addEventListener("pause",(function(){i.gate&&(n._updateButtons(!1),n._trigger(t.jPlayer.event.pause))}),!1),e.addEventListener("waiting",(function(){i.gate&&(n._seeking(),n._trigger(t.jPlayer.event.waiting))}),!1),e.addEventListener("seeking",(function(){i.gate&&(n._seeking(),n._trigger(t.jPlayer.event.seeking))}),!1),e.addEventListener("seeked",(function(){i.gate&&(n._seeked(),n._trigger(t.jPlayer.event.seeked))}),!1),e.addEventListener("volumechange",(function(){i.gate&&(n.options.volume=e.volume,n.options.muted=e.muted,n._updateMute(),n._updateVolume(),n._trigger(t.jPlayer.event.volumechange))}),!1),e.addEventListener("ratechange",(function(){i.gate&&(n.options.defaultPlaybackRate=e.defaultPlaybackRate,n.options.playbackRate=e.playbackRate,n._updatePlaybackRate(),n._trigger(t.jPlayer.event.ratechange))}),!1),e.addEventListener("suspend",(function(){i.gate&&(n._seeked(),n._trigger(t.jPlayer.event.suspend))}),!1),e.addEventListener("ended",(function(){i.gate&&(t.jPlayer.browser.webkit||(n.htmlElement.media.currentTime=0),n.htmlElement.media.pause(),n._updateButtons(!1),n._getHtmlStatus(e,!0),n._updateInterface(),n._trigger(t.jPlayer.event.ended))}),!1),e.addEventListener("error",(function(){i.gate&&(n._updateButtons(!1),n._seeked(),n.status.srcSet&&(clearTimeout(n.internal.htmlDlyCmdId),n.status.waitForLoad=!0,n.status.waitForPlay=!0,n.status.video&&!n.status.nativeVideoControls&&n.internal.video.jq.css({width:"0px",height:"0px"}),n._validString(n.status.media.poster)&&!n.status.nativeVideoControls&&n.internal.poster.jq.show(),n.css.jq.videoPlay.length&&n.css.jq.videoPlay.show(),n._error({type:t.jPlayer.error.URL,context:n.status.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL})))}),!1),t.each(t.jPlayer.htmlEvent,(function(s,o){e.addEventListener(this,(function(){i.gate&&n._trigger(t.jPlayer.event[o])}),!1)}))},_addAuroraEventListeners:function(e,i){var n=this;e.volume=100*this.options.volume,e.on("progress",(function(){i.gate&&(n.internal.cmdsIgnored&&this.readyState>0&&(n.internal.cmdsIgnored=!1),n._getAuroraStatus(e),n._updateInterface(),n._trigger(t.jPlayer.event.progress),e.duration>0&&n._trigger(t.jPlayer.event.timeupdate))}),!1),e.on("ready",(function(){i.gate&&n._trigger(t.jPlayer.event.loadeddata)}),!1),e.on("duration",(function(){i.gate&&(n._getAuroraStatus(e),n._updateInterface(),n._trigger(t.jPlayer.event.durationchange))}),!1),e.on("end",(function(){i.gate&&(n._updateButtons(!1),n._getAuroraStatus(e,!0),n._updateInterface(),n._trigger(t.jPlayer.event.ended))}),!1),e.on("error",(function(){i.gate&&(n._updateButtons(!1),n._seeked(),n.status.srcSet&&(n.status.waitForLoad=!0,n.status.waitForPlay=!0,n.status.video&&!n.status.nativeVideoControls&&n.internal.video.jq.css({width:"0px",height:"0px"}),n._validString(n.status.media.poster)&&!n.status.nativeVideoControls&&n.internal.poster.jq.show(),n.css.jq.videoPlay.length&&n.css.jq.videoPlay.show(),n._error({type:t.jPlayer.error.URL,context:n.status.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL})))}),!1)},_getHtmlStatus:function(t,e){var i=0,n=0,s=0,o=0;isFinite(t.duration)&&(this.status.duration=t.duration),i=t.currentTime,n=this.status.duration>0?100*i/this.status.duration:0,"object"==r(t.seekable)&&t.seekable.length>0?(s=this.status.duration>0?100*t.seekable.end(t.seekable.length-1)/this.status.duration:100,o=this.status.duration>0?100*t.currentTime/t.seekable.end(t.seekable.length-1):0):(s=100,o=n),e&&(i=0,o=0,n=0),this.status.seekPercent=s,this.status.currentPercentRelative=o,this.status.currentPercentAbsolute=n,this.status.currentTime=i,this.status.remaining=this.status.duration-this.status.currentTime,this.status.videoWidth=t.videoWidth,this.status.videoHeight=t.videoHeight,this.status.readyState=t.readyState,this.status.networkState=t.networkState,this.status.playbackRate=t.playbackRate,this.status.ended=t.ended},_getAuroraStatus:function(t,e){var i=0,n=0,s=0,o=0;this.status.duration=t.duration/1e3,i=t.currentTime/1e3,n=this.status.duration>0?100*i/this.status.duration:0,t.buffered>0?(s=this.status.duration>0?t.buffered*this.status.duration/this.status.duration:100,o=this.status.duration>0?i/(t.buffered*this.status.duration):0):(s=100,o=n),e&&(i=0,o=0,n=0),this.status.seekPercent=s,this.status.currentPercentRelative=o,this.status.currentPercentAbsolute=n,this.status.currentTime=i,this.status.remaining=this.status.duration-this.status.currentTime,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_resetStatus:function(){this.status=t.extend({},this.status,t.jPlayer.prototype.status)},_trigger:function(e,i,n){var s=t.Event(e);s.jPlayer={},s.jPlayer.version=t.extend({},this.version),s.jPlayer.options=t.extend(!0,{},this.options),s.jPlayer.status=t.extend(!0,{},this.status),s.jPlayer.html=t.extend(!0,{},this.html),s.jPlayer.aurora=t.extend(!0,{},this.aurora),s.jPlayer.flash=t.extend(!0,{},this.flash),i&&(s.jPlayer.error=t.extend({},i)),n&&(s.jPlayer.warning=t.extend({},n)),this.element.trigger(s)},jPlayerFlashEvent:function(e,i){if(e===t.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var n=this.status.currentTime,s=this.status.paused;this.setMedia(this.status.media),this.volumeWorker(this.options.volume),n>0&&(s?this.pause(n):this.play(n))}this._trigger(t.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=i.version,this.version.needFlash!==this.version.flash&&this._error({type:t.jPlayer.error.VERSION,context:this.version.flash,message:t.jPlayer.errorMsg.VERSION+this.version.flash,hint:t.jPlayer.errorHint.VERSION}),this._trigger(t.jPlayer.event.repeat),this._trigger(e);if(this.flash.gate)switch(e){case t.jPlayer.event.progress:case t.jPlayer.event.timeupdate:this._getFlashStatus(i),this._updateInterface(),this._trigger(e);break;case t.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(e);break;case t.jPlayer.event.pause:case t.jPlayer.event.ended:this._updateButtons(!1),this._trigger(e);break;case t.jPlayer.event.click:this._trigger(e);break;case t.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:t.jPlayer.error.URL,context:i.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL});break;case t.jPlayer.event.seeking:this._seeking(),this._trigger(e);break;case t.jPlayer.event.seeked:this._seeked(),this._trigger(e);break;case t.jPlayer.event.ready:break;default:this._trigger(e)}return!1},_getFlashStatus:function(t){this.status.seekPercent=t.seekPercent,this.status.currentPercentRelative=t.currentPercentRelative,this.status.currentPercentAbsolute=t.currentPercentAbsolute,this.status.currentTime=t.currentTime,this.status.duration=t.duration,this.status.remaining=t.duration-t.currentTime,this.status.videoWidth=t.videoWidth,this.status.videoHeight=t.videoHeight,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(t){t===e?t=!this.status.paused:this.status.paused=!t,t?this.addStateClass("playing"):this.removeStateClass("playing"),!this.status.noFullWindow&&this.options.fullWindow?this.addStateClass("fullScreen"):this.removeStateClass("fullScreen"),this.options.loop?this.addStateClass("looped"):this.removeStateClass("looped"),this.css.jq.play.length&&this.css.jq.pause.length&&(t?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide())),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%")),this.css.jq.currentTime.length&&this._convertTime(this.status.currentTime)!==this.css.jq.currentTime.text()&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime));var t="",e=this.status.duration,i=this.status.remaining;this.css.jq.duration.length&&("string"==typeof this.status.media.duration?t=this.status.media.duration:("number"==typeof this.status.media.duration&&(i=(e=this.status.media.duration)-this.status.currentTime),t=this.options.remainingDuration?(i>0?"-":"")+this._convertTime(i):this._convertTime(e)),t!==this.css.jq.duration.text()&&this.css.jq.duration.text(t))},_convertTime:i.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg"),this.addStateClass("seeking")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg"),this.removeStateClass("seeking")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.aurora.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.aurora.active=!1,this.flash.active=!1},_escapeHtml:function(t){return t.split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")},_qualifyURL:function(t){var e=document.createElement("div");return e.innerHTML='x',e.firstChild.href},_absoluteMediaUrls:function(e){var i=this;return t.each(e,(function(t,n){n&&i.format[t]&&"data:"!==n.substr(0,5)&&(e[t]=i._qualifyURL(n))})),e},addStateClass:function(t){this.ancestorJq.length&&this.ancestorJq.addClass(this.options.stateClass[t])},removeStateClass:function(t){this.ancestorJq.length&&this.ancestorJq.removeClass(this.options.stateClass[t])},setMedia:function(e){var i=this,n=!1,s=this.status.media.poster!==e.poster;this._resetMedia(),this._resetGate(),this._resetActive(),this.androidFix.setMedia=!1,this.androidFix.play=!1,this.androidFix.pause=!1,e=this._absoluteMediaUrls(e),t.each(this.formats,(function(s,o){var r="video"===i.format[o].media;return t.each(i.solutions,(function(s,a){if(i[a].support[o]&&i._validString(e[o])){var l="html"===a,c="aurora"===a;return r?(l?(i.html.video.gate=!0,i._html_setVideo(e),i.html.active=!0):(i.flash.gate=!0,i._flash_setVideo(e),i.flash.active=!0),i.css.jq.videoPlay.length&&i.css.jq.videoPlay.show(),i.status.video=!0):(l?(i.html.audio.gate=!0,i._html_setAudio(e),i.html.active=!0,t.jPlayer.platform.android&&(i.androidFix.setMedia=!0)):c?(i.aurora.gate=!0,i._aurora_setAudio(e),i.aurora.active=!0):(i.flash.gate=!0,i._flash_setAudio(e),i.flash.active=!0),i.css.jq.videoPlay.length&&i.css.jq.videoPlay.hide(),i.status.video=!1),n=!0,!1}})),!n&&void 0})),n?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(e.poster)&&(s?this.htmlElement.poster.src=e.poster:this.internal.poster.jq.show()),"string"==typeof e.title&&(this.css.jq.title.length&&this.css.jq.title.html(e.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",e.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",e.title)),this.status.srcSet=!0,this.status.media=t.extend({},e),this._updateButtons(!1),this._updateInterface(),this._trigger(t.jPlayer.event.setmedia)):this._error({type:t.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:t.jPlayer.errorMsg.NO_SUPPORT,hint:t.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.aurora.active?this._aurora_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.aurora.active?this._aurora_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.aurora.active?this._aurora_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(t.jPlayer.focus=this)},play:function(t){"object"==r(t)&&this.options.useStateClassSkin&&!this.status.paused?this.pause(t):(t="number"==typeof t?t:NaN,this.status.srcSet?(this.focus(),this.html.active?this._html_play(t):this.aurora.active?this._aurora_play(t):this.flash.active&&this._flash_play(t)):this._urlNotSetError("play"))},videoPlay:function(){this.play()},pause:function(t){t="number"==typeof t?t:NaN,this.status.srcSet?this.html.active?this._html_pause(t):this.aurora.active?this._aurora_pause(t):this.flash.active&&this._flash_pause(t):this._urlNotSetError("pause")},tellOthers:function(e,i){var n=this,s="function"==typeof i,o=Array.prototype.slice.call(arguments);"string"==typeof e&&(s&&o.splice(1,1),t.jPlayer.prototype.destroyRemoved(),t.each(this.instances,(function(){n.element!==this&&(!s||i.call(this.data("jPlayer"),n))&&this.jPlayer.apply(this,o)})))},pauseOthers:function(t){this.tellOthers("pause",(function(){return this.status.srcSet}),t)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.aurora.active?this._aurora_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(t){t=this._limitValue(t,0,100),this.status.srcSet?this.html.active?this._html_playHead(t):this.aurora.active?this._aurora_playHead(t):this.flash.active&&this._flash_playHead(t):this._urlNotSetError("playHead")},_muted:function(t){this.mutedWorker(t),this.options.globalVolume&&this.tellOthers("mutedWorker",(function(){return this.options.globalVolume}),t)},mutedWorker:function(e){this.options.muted=e,this.html.used&&this._html_setProperty("muted",e),this.aurora.used&&this._aurora_mute(e),this.flash.used&&this._flash_mute(e),this.html.video.gate||this.html.audio.gate||(this._updateMute(e),this._updateVolume(this.options.volume),this._trigger(t.jPlayer.event.volumechange))},mute:function(t){"object"==r(t)&&this.options.useStateClassSkin&&this.options.muted?this._muted(!1):(t=t===e||!!t,this._muted(t))},unmute:function(t){t=t===e||!!t,this._muted(!t)},_updateMute:function(t){t===e&&(t=this.options.muted),t?this.addStateClass("muted"):this.removeStateClass("muted"),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):t?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(t){this.volumeWorker(t),this.options.globalVolume&&this.tellOthers("volumeWorker",(function(){return this.options.globalVolume}),t)},volumeWorker:function(e){e=this._limitValue(e,0,1),this.options.volume=e,this.html.used&&this._html_setProperty("volume",e),this.aurora.used&&this._aurora_volume(e),this.flash.used&&this._flash_volume(e),this.html.video.gate||this.html.audio.gate||(this._updateVolume(e),this._trigger(t.jPlayer.event.volumechange))},volumeBar:function(e){if(this.css.jq.volumeBar.length){var i=t(e.currentTarget),n=i.offset(),s=e.pageX-n.left,o=i.width(),r=i.height()-e.pageY+n.top,a=i.height();this.volume(this.options.verticalVolume?r/a:s/o)}this.options.muted&&this._muted(!1)},_updateVolume:function(t){t===e&&(t=this.options.volume),t=this.options.muted?0:t,this.status.noVolume?(this.addStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.removeStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*t+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(e){var i=this;this.options.cssSelectorAncestor=e,this._removeUiClass(),this.ancestorJq=e?t(e):[],e&&1!==this.ancestorJq.length&&this._warning({type:t.jPlayer.warning.CSS_SELECTOR_COUNT,context:e,message:t.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:t.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),t.each(this.options.cssSelector,(function(t,e){i._cssSelector(t,e)})),this._updateInterface(),this._updateButtons(),this._updateAutohide(),this._updateVolume(),this._updateMute()},_cssSelector:function(e,i){var n=this;"string"==typeof i?t.jPlayer.prototype.options.cssSelector[e]?(this.css.jq[e]&&this.css.jq[e].length&&this.css.jq[e].unbind(".jPlayer"),this.options.cssSelector[e]=i,this.css.cs[e]=this.options.cssSelectorAncestor+" "+i,this.css.jq[e]=i?t(this.css.cs[e]):[],this.css.jq[e].length&&this[e]&&this.css.jq[e].bind("click.jPlayer",(function(i){i.preventDefault(),n[e](i),n.options.autoBlur?t(this).blur():t(this).focus()})),i&&1!==this.css.jq[e].length&&this._warning({type:t.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[e],message:t.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[e].length+" found for "+e+" method.",hint:t.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:t.jPlayer.warning.CSS_SELECTOR_METHOD,context:e,message:t.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:t.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:t.jPlayer.warning.CSS_SELECTOR_STRING,context:i,message:t.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:t.jPlayer.warningHint.CSS_SELECTOR_STRING})},duration:function(t){this.options.toggleDuration&&(this.options.captureDuration&&t.stopPropagation(),this._setOption("remainingDuration",!this.options.remainingDuration))},seekBar:function(e){if(this.css.jq.seekBar.length){var i=t(e.currentTarget),n=i.offset(),s=100*(e.pageX-n.left)/i.width();this.playHead(s)}},playbackRate:function(t){this._setOption("playbackRate",t)},playbackRateBar:function(e){if(this.css.jq.playbackRateBar.length){var i,n=t(e.currentTarget),s=n.offset(),o=e.pageX-s.left,r=n.width(),a=n.height()-e.pageY+s.top,l=n.height();i=(this.options.verticalPlaybackRate?a/l:o/r)*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate,this.playbackRate(i)}},_updatePlaybackRate:function(){var t=(this.options.playbackRate-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*t+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(t){var e="object"==r(t);this._loop(!(e&&this.options.useStateClassSkin&&this.options.loop))},repeatOff:function(){this._loop(!1)},_loop:function(e){this.options.loop!==e&&(this.options.loop=e,this._updateButtons(),this._trigger(t.jPlayer.event.repeat))},option:function(i,n){var s=i;if(0===arguments.length)return t.extend(!0,{},this.options);if("string"==typeof i){var o=i.split(".");if(n===e){for(var r=t.extend(!0,{},this.options),a=0;a0||Math.floor(n)>0):s=!0,t.internal.mouse={x:e.pageX,y:e.pageY},s&&t.css.jq.gui.fadeIn(t.options.autohide.fadeIn,(function(){clearTimeout(t.internal.autohideId),t.internal.autohideId=setTimeout((function(){t.css.jq.gui.fadeOut(t.options.autohide.fadeOut)}),t.options.autohide.hold)}))};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),delete this.internal.mouse,this.element.unbind(e),this.css.jq.gui.unbind(e),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind(i,n),this.css.jq.gui.bind(i,n),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(t){"object"==r(t)&&this.options.useStateClassSkin&&this.options.fullScreen?this._setOption("fullScreen",!1):this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var e=this,i=t.jPlayer.nativeFeatures.fullscreen;i.api.fullscreenEnabled&&i.event.fullscreenchange&&("function"!=typeof this.internal.fullscreenchangeHandler&&(this.internal.fullscreenchangeHandler=function(){e._fullscreenchange()}),document.addEventListener(i.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var e=t.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.removeEventListener(e.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!t.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&&this._setOption("fullScreen",!1)},_requestFullscreen:function(){var e=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],i=t.jPlayer.nativeFeatures.fullscreen;i.used.webkitVideo&&(e=this.htmlElement.video),i.api.fullscreenEnabled&&i.api.requestFullscreen(e)},_exitFullscreen:function(){var e,i=t.jPlayer.nativeFeatures.fullscreen;i.used.webkitVideo&&(e=this.htmlElement.video),i.api.fullscreenEnabled&&i.api.exitFullscreen(e)},_html_initMedia:function(e){var i=t(this.htmlElement.media).empty();t.each(e.track||[],(function(t,e){var n=document.createElement("track");n.setAttribute("kind",e.kind?e.kind:""),n.setAttribute("src",e.src?e.src:""),n.setAttribute("srclang",e.srclang?e.srclang:""),n.setAttribute("label",e.label?e.label:""),e.def&&n.setAttribute("default",e.def),i.append(n)})),this.htmlElement.media.src=this.status.src,"none"!==this.options.preload&&this._html_load(),this._trigger(t.jPlayer.event.timeupdate)},_html_setFormat:function(e){var i=this;t.each(this.formats,(function(t,n){return i.html.support[n]&&e[n]?(i.status.src=e[n],i.status.format[n]=!0,i.status.formatType=n,!1):void 0}))},_html_setAudio:function(t){this._html_setFormat(t),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia(t)},_html_setVideo:function(t){this._html_setFormat(t),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(t.poster)?t.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia(t)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!==this.internal.video.id||this.status.nativeVideoControls||this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(t){var e=this,i=this.htmlElement.media;if(this.androidFix.pause=!1,this._html_load(),this.androidFix.setMedia)this.androidFix.play=!0,this.androidFix.time=t;else if(isNaN(t))i.play();else{this.internal.cmdsIgnored&&i.play();try{if(i.seekable&&!("object"==r(i.seekable)&&i.seekable.length>0))throw 1;i.currentTime=t,i.play()}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout((function(){e.play(t)}),250))}}this._html_checkWaitForPlay()},_html_pause:function(t){var e=this,i=this.htmlElement.media;if(this.androidFix.play=!1,t>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),i.pause(),this.androidFix.setMedia)this.androidFix.pause=!0,this.androidFix.time=t;else if(!isNaN(t))try{if(i.seekable&&!("object"==r(i.seekable)&&i.seekable.length>0))throw 1;i.currentTime=t}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout((function(){e.pause(t)}),250))}t>0&&this._html_checkWaitForPlay()},_html_playHead:function(t){var e=this,i=this.htmlElement.media;this._html_load();try{if("object"==r(i.seekable)&&i.seekable.length>0)i.currentTime=t*i.seekable.end(i.seekable.length-1)/100;else{if(!(i.duration>0)||isNaN(i.duration))throw"e";i.currentTime=t*i.duration/100}}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout((function(){e.playHead(t)}),250))}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_setProperty:function(t,e){this.html.audio.available&&(this.htmlElement.audio[t]=e),this.html.video.available&&(this.htmlElement.video[t]=e)},_aurora_setAudio:function(e){var i=this;t.each(this.formats,(function(t,n){return i.aurora.support[n]&&e[n]?(i.status.src=e[n],i.status.format[n]=!0,i.status.formatType=n,!1):void 0})),this.aurora.player=new AV.Player.fromURL(this.status.src),this._addAuroraEventListeners(this.aurora.player,this.aurora),"auto"===this.options.preload&&(this._aurora_load(),this.status.waitForLoad=!1)},_aurora_resetMedia:function(){this.aurora.player&&this.aurora.player.stop()},_aurora_clearMedia:function(){},_aurora_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.aurora.player.preload())},_aurora_play:function(e){this.status.waitForLoad||isNaN(e)||this.aurora.player.seek(e),this.aurora.player.playing||this.aurora.player.play(),this.status.waitForLoad=!1,this._aurora_checkWaitForPlay(),this._updateButtons(!0),this._trigger(t.jPlayer.event.play)},_aurora_pause:function(e){isNaN(e)||this.aurora.player.seek(1e3*e),this.aurora.player.pause(),e>0&&this._aurora_checkWaitForPlay(),this._updateButtons(!1),this._trigger(t.jPlayer.event.pause)},_aurora_playHead:function(t){this.aurora.player.duration>0&&this.aurora.player.seek(t*this.aurora.player.duration/100),this.status.waitForLoad||this._aurora_checkWaitForPlay()},_aurora_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1)},_aurora_volume:function(t){this.aurora.player.volume=100*t},_aurora_mute:function(t){t?(this.aurora.properties.lastvolume=this.aurora.player.volume,this.aurora.player.volume=0):this.aurora.player.volume=this.aurora.properties.lastvolume,this.aurora.properties.muted=t},_flash_setAudio:function(e){var i=this;try{t.each(this.formats,(function(t,n){if(i.flash.support[n]&&e[n]){switch(n){case"m4a":case"fla":i._getMovie().fl_setAudio_m4a(e[n]);break;case"mp3":i._getMovie().fl_setAudio_mp3(e[n]);break;case"rtmpa":i._getMovie().fl_setAudio_rtmp(e[n])}return i.status.src=e[n],i.status.format[n]=!0,i.status.formatType=n,!1}})),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(t){this._flashError(t)}},_flash_setVideo:function(e){var i=this;try{t.each(this.formats,(function(t,n){if(i.flash.support[n]&&e[n]){switch(n){case"m4v":case"flv":i._getMovie().fl_setVideo_m4v(e[n]);break;case"rtmpv":i._getMovie().fl_setVideo_rtmp(e[n])}return i.status.src=e[n],i.status.format[n]=!0,i.status.formatType=n,!1}})),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(t){this._flashError(t)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(t){this._flashError(t)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(t){this._flashError(t)}this.status.waitForLoad=!1},_flash_play:function(t){try{this._getMovie().fl_play(t)}catch(t){this._flashError(t)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(t){try{this._getMovie().fl_pause(t)}catch(t){this._flashError(t)}t>0&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(t){try{this._getMovie().fl_play_head(t)}catch(t){this._flashError(t)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(t){try{this._getMovie().fl_volume(t)}catch(t){this._flashError(t)}},_flash_mute:function(t){try{this._getMovie().fl_mute(t)}catch(t){this._flashError(t)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var t,e=0;if(window.ActiveXObject)try{if(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var i=t.GetVariable("$version");i&&(i=i.split(" ")[1].split(","),e=parseInt(i[0],10)+"."+parseInt(i[1],10))}}catch(t){}else navigator.plugins&&navigator.mimeTypes.length>0&&(t=navigator.plugins["Shockwave Flash"])&&(e=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1"));return 1*e},_checkForFlash:function(t){var e=!1;return this._getFlashPluginVersion()>=t&&(e=!0),e},_validString:function(t){return t&&"string"==typeof t},_limitValue:function(t,e,i){return e>t?e:t>i?i:t},_urlNotSetError:function(e){this._error({type:t.jPlayer.error.URL_NOT_SET,context:e,message:t.jPlayer.errorMsg.URL_NOT_SET,hint:t.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(e){var i;i=this.internal.ready?"FLASH_DISABLED":"FLASH",this._error({type:t.jPlayer.error[i],context:this.internal.flash.swf,message:t.jPlayer.errorMsg[i]+e.message,hint:t.jPlayer.errorHint[i]}),this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(e){this._trigger(t.jPlayer.event.error,e),this.options.errorAlerts&&this._alert("Error!"+(e.message?"\n"+e.message:"")+(e.hint?"\n"+e.hint:"")+"\nContext: "+e.context)},_warning:function(i){this._trigger(t.jPlayer.event.warning,e,i),this.options.warningAlerts&&this._alert("Warning!"+(i.message?"\n"+i.message:"")+(i.hint?"\n"+i.hint:"")+"\nContext: "+i.context)},_alert:function(t){var e="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+t;this.options.consoleAlerts?window.console&&window.console.log&&window.console.log(e):alert(e)},_emulateHtmlBridge:function(){var e=this;t.each(t.jPlayer.emulateMethods.split(/\s+/g),(function(t,i){e.internal.domNode[i]=function(t){e[i](t)}})),t.each(t.jPlayer.event,(function(i,n){var s=!0;t.each(t.jPlayer.reservedEvent.split(/\s+/g),(function(t,e){return e===i?(s=!1,!1):void 0})),s&&e.element.bind(n+".jPlayer.jPlayerHtml",(function(){e._emulateHtmlUpdate();var t=document.createEvent("Event");t.initEvent(i,!1,!0),e.internal.domNode.dispatchEvent(t)}))}))},_emulateHtmlUpdate:function(){var e=this;t.each(t.jPlayer.emulateStatus.split(/\s+/g),(function(t,i){e.internal.domNode[i]=e.status[i]})),t.each(t.jPlayer.emulateOptions.split(/\s+/g),(function(t,i){e.internal.domNode[i]=e.options[i]}))},_destroyHtmlBridge:function(){var e=this;this.element.unbind(".jPlayerHtml");var i=t.jPlayer.emulateMethods+" "+t.jPlayer.emulateStatus+" "+t.jPlayer.emulateOptions;t.each(i.split(/\s+/g),(function(t,i){delete e.internal.domNode[i]}))}},t.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},t.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+t.jPlayer.prototype.version.script+" needs Jplayer.swf version "+t.jPlayer.prototype.version.needFlash+" but found "},t.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},t.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},t.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},t.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}})?n.apply(e,s):n)||(t.exports=o)},TQoE:function(t,e,i){"use strict";var n,s,o=i("eOSo"),r=i("ozo3"),a=RegExp.prototype.exec,l=String.prototype.replace,c=a,u=(n=/a/,s=/b*/g,a.call(n,"a"),a.call(s,"a"),0!==n.lastIndex||0!==s.lastIndex),h=r.UNSUPPORTED_Y||r.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(u||d||h)&&(c=function(t){var e,i,n,s,r=this,c=h&&r.sticky,p=o.call(r),f=r.source,m=0,g=t;return c&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=String(t).slice(r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&"\n"!==t[r.lastIndex-1])&&(f="(?: "+f+")",g=" "+g,m++),i=new RegExp("^(?:"+f+")",p)),d&&(i=new RegExp("^"+f+"$(?!\\s)",p)),u&&(e=r.lastIndex),n=a.call(c?i:r,g),c?n?(n.input=n.input.slice(m),n[0]=n[0].slice(m),n.index=r.lastIndex,r.lastIndex+=n[0].length):r.lastIndex=0:u&&n&&(r.lastIndex=r.global?n.index+n[0].length:e),d&&n&&n.length>1&&l.call(n[0],i,(function(){for(s=1;s-1)&&(e=e.replace(/y/g,""));var a=r(w?new v(t,e):v(t,e),n?this:y,k);return x&&i&&f(a,{sticky:i}),a},C=function(t){t in k||a(k,t,{configurable:!0,get:function(){return v[t]},set:function(e){v[t]=e}})},S=l(v),T=0;S.length>T;)C(S[T++]);y.constructor=k,k.prototype=y,d(s,"RegExp",k)}m("RegExp")},TeQF:function(t,e,i){"use strict";var n=i("I+eb"),s=i("tycR").filter,o=i("Hd5f"),r=i("rkAj"),a=o("filter"),l=r("filter");n({target:"Array",proto:!0,forced:!a||!l},{filter:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},TfTi:function(t,e,i){"use strict";var n=i("A2ZE"),s=i("ewvW"),o=i("m92n"),r=i("6VoE"),a=i("UMSQ"),l=i("hBjN"),c=i("NaFW");t.exports=function(t){var e,i,u,h,d,p,f=s(t),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,b=c(f),_=0;if(y&&(v=n(v,g>2?arguments[2]:void 0,2)),null==b||m==Array&&r(b))for(i=new m(e=a(f.length));e>_;_++)p=y?v(f[_],_):f[_],l(i,_,p);else for(d=(h=b.call(f)).next,i=new m;!(u=d.call(h)).done;_++)p=y?o(h,v,[u.value,_],!0):u.value,l(i,_,p);return i.length=_,i}},TrCO:function(t,e,i){"use strict";var n=i("Kv4v"),s=i("apSV"),o=i("bcGU");t.exports=function(t,e,i){var r=n(e);r in t?s.f(t,r,o(0,i)):t[r]=i}},TvX3:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},UYHQ:function(t,e,i){"use strict";var n=i("DIkK"),s=i("yted"),o=i("t0Mh"),r=i("DYDg"),a=i("dMHt"),l=i("2ZuC"),c=i("8xiD"),u=i("WEnT"),h=Math.max,d=Math.min,p=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(t,e,i,n){var g=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=n.REPLACE_KEEPS_$0,y=g?"$":"$0";return[function(i,n){var s=l(this),o=null==i?void 0:i[t];return void 0!==o?o.call(i,s,n):e.call(String(s),i,n)},function(t,n){if(!g&&v||"string"==typeof n&&-1===n.indexOf(y)){var o=i(e,t,this,n);if(o.done)return o.value}var l=s(t),p=String(this),f="function"==typeof n;f||(n=String(n));var m=l.global;if(m){var _=l.unicode;l.lastIndex=0}for(var w=[];;){var x=u(l,p);if(null===x)break;if(w.push(x),!m)break;""===String(x[0])&&(l.lastIndex=c(p,r(l.lastIndex),_))}for(var k,C="",S=0,T=0;T=S&&(C+=p.slice(S,E)+I,S=E+P.length)}return C+p.slice(S)}];function b(t,i,n,s,r,a){var l=n+t.length,c=s.length,u=m;return void 0!==r&&(r=o(r),u=f),e.call(a,u,(function(e,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return i.slice(0,n);case"'":return i.slice(l);case"<":a=r[o.slice(1,-1)];break;default:var u=+o;if(0===u)return e;if(u>c){var h=p(u/10);return 0===h?e:h<=c?void 0===s[h-1]?o.charAt(1):s[h-1]+o.charAt(1):e}a=s[u-1]}return void 0===a?"":a}))}}))},"V7j+":function(t,e,i){(function(t){i("TeQF"),i("+2oP"),i("sMBO"),i("rB9j"),i("EnZy"),i("SYor"),function(e,i){"use strict";function n(t,n,s,r,l){function c(){k=e.devicePixelRatio>1,s=u(s),n.delay>=0&&setTimeout((function(){h(!0)}),n.delay),(n.delay<0||n.combined)&&(r.e=function(e,i){var s,o=0;return function(r,a){function l(){o=+new Date,i.call(t,r)}var c=+new Date-o;s&&clearTimeout(s),c>e||!n.enableThrottle||a?l():s=setTimeout(l,e-c)}}(n.throttle,(function(t){"resize"===t.type&&(w=x=-1),h(t.all)})),r.a=function(t){t=u(t),s.push.apply(s,t)},r.g=function(){return s=o(s).filter((function(){return!o(this).data(n.loadedName)}))},r.f=function(t){for(var e=0;ee.top&&-se.left&&-s=0?w:w=o(e).width()}function m(){return x>=0?x:x=o(e).height()}function g(t){return t.tagName.toLowerCase()}function v(t,e){if(e){var i=t.split(",");t="";for(var n=0,s=i.length;n
"))}function s(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).delegate(i,"mouseover",o)}function o(){t.datepicker._isDisabledDatepicker(p.inline?p.dpDiv.parent()[0]:p.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}function l(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var i=this.css("position"),n="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},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.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])},focusable:function(i){return e(i,!isNaN(t.attr(i,"tabindex")))},tabbable:function(i){var n=t.attr(i,"tabindex"),s=isNaN(n);return(s||n>=0)&&e(i,!s)}}),t("").outerWidth(1).jquery||t.each(["Width","Height"],(function(e,i){function n(e,i,n,o){return t.each(s,(function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)})),i}var s="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?r["inner"+i].call(this):this.each((function(){t(this).css(o,n(this,e)+"px")}))},t.fn["outer"+i]=function(e,s){return"number"!=typeof e?r["outer"+i].call(this,e):this.each((function(){t(this).css(o,n(this,e,!0,s)+"px")}))}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each((function(){var e=this;setTimeout((function(){t(e).focus(),n&&n.call(e)}),i)})):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(t+".ui-disableSelection",(function(t){t.preventDefault()}))}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,n,s=t(this[0]);s.length&&s[0]!==document;){if(("absolute"===(i=s.css("position"))||"relative"===i||"fixed"===i)&&(n=parseInt(s.css("zIndex"),10),!isNaN(n)&&0!==n))return n;s=s.parent()}return 0}}),t.ui.plugin={add:function(e,i,n){var s,o=t.ui[e].prototype;for(s in n)o.plugins[s]=o.plugins[s]||[],o.plugins[s].push([i,n[s]])},call:function(t,e,i,n){var s,o=t.plugins[e];if(o&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;o.length>s;s++)t.options[o[s][0]]&&o[s][1].apply(t.element,i)}};var c=0,u=Array.prototype.slice;t.cleanData=function(e){return function(i){var n,s,o;for(o=0;null!=(s=i[o]);o++)try{(n=t._data(s,"events"))&&n.remove&&t(s).triggerHandler("remove")}catch(t){}e(i)}}(t.cleanData),t.widget=function(e,i,n){var s,o,r,a,l={},c=e.split(".")[0];return e=e.split(".")[1],s=c+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][s.toLowerCase()]=function(e){return!!t.data(e,s)},t[c]=t[c]||{},o=t[c][e],r=t[c][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new r(t,e)},t.extend(r,o,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(n,(function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},s=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=s,e=n.apply(this,arguments),this._super=i,this._superApply=o,e}}()):void(l[e]=n)})),r.prototype=t.widget.extend(a,{widgetEventPrefix:o&&a.widgetEventPrefix||e},l,{constructor:r,namespace:c,widgetName:e,widgetFullName:s}),o?(t.each(o._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)})),delete o._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r),r},t.widget.extend=function(e){for(var i,n,s=u.call(arguments,1),o=0,r=s.length;r>o;o++)for(i in s[o])n=s[o][i],s[o].hasOwnProperty(i)&&void 0!==n&&(e[i]=t.isPlainObject(n)?t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(s){var o="string"==typeof s,r=u.call(arguments,1),a=this;return o?this.each((function(){var i,o=t.data(this,n);return"instance"===s?(a=o,!1):o?t.isFunction(o[s])&&"_"!==s.charAt(0)?(i=o[s].apply(o,r))!==o&&void 0!==i?(a=i&&i.jquery?a.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+s+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")})):(r.length&&(s=t.widget.extend.apply(null,[s].concat(r))),this.each((function(){var e=t.data(this,n);e?(e.option(s||{}),e._init&&e._init()):t.data(this,n,new i(s,this))}))),a}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,s,o,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(s=r[e]=t.widget.extend({},this.options[e]),o=0;n.length-1>o;o++)s[n[o]]=s[n[o]]||{},s=s[n[o]];if(e=n.pop(),1===arguments.length)return void 0===s[e]?null:s[e];s[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 this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,i,n){var s,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,(function(n,r){function a(){return e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof r?o[r]:r).apply(o,arguments):void 0}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,u=l[2];u?s.delegate(u,c,a):i.bind(c,a)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(i).undelegate(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){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var s,o,r=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!(t.isFunction(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,s,o){"string"==typeof s&&(s={effect:s});var r,a=s?!0===s||"number"==typeof s?i:s.effect||i:e;"number"==typeof(s=s||{})&&(s={duration:s}),r=!t.isEmptyObject(s),s.complete=o,s.delay&&n.delay(s.delay),r&&t.effects&&t.effects.effect[a]?n[e](s):a!==e&&n[a]?n[a](s.duration,s.easing,o):n.queue((function(i){t(this)[e](),o&&o.call(n[0]),i()}))}})),t.widget;var h=!1;t(document).mouseup((function(){h=!1})),t.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).bind("click."+this.widgetName,(function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!h){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,s=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(n&&!s&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),h=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),h=!1,!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function(){function e(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var s,o,r=Math.max,a=Math.abs,l=Math.round,c=/left|center|right/,u=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,i,n=t("
"),o=n.children()[0];return t("body").append(n),e=o.offsetWidth,n.css("overflow","scroll"),e===(i=o.offsetWidth)&&(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"),s="scroll"===i||"auto"===i&&e.widthi?"left":e>0?"right":"center",vertical:0>o?"top":n>0?"bottom":"middle"};h>m&&m>a(e+i)&&(l.horizontal="center"),d>g&&g>a(n+o)&&(l.vertical="middle"),l.important=r(a(e),a(i))>r(a(n),a(o))?"horizontal":"vertical",s.using.call(this,t,l)}),u.offset(t.extend(P,{using:c}))}))},t.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,a=t.left-e.collisionPosition.marginLeft,l=s-a,c=a+e.collisionWidth-o-s;e.collisionWidth>o?l>0&&0>=c?(i=t.left+l+e.collisionWidth-o-s,t.left+=l-i):t.left=c>0&&0>=l?s:l>c?s+o-e.collisionWidth:s: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,s=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,a=t.top-e.collisionPosition.marginTop,l=s-a,c=a+e.collisionHeight-o-s;e.collisionHeight>o?l>0&&0>=c?(i=t.top+l+e.collisionHeight-o-s,t.top+=l-i):t.top=c>0&&0>=l?s:l>c?s+o-e.collisionHeight:s: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,s=e.within,o=s.offset.left+s.scrollLeft,r=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,c=t.left-e.collisionPosition.marginLeft,u=c-l,h=c+e.collisionWidth-r-l,d="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];0>u?(0>(i=t.left+d+p+f+e.collisionWidth-r-o)||a(u)>i)&&(t.left+=d+p+f):h>0&&((n=t.left-e.collisionPosition.marginLeft+d+p+f-l)>0||h>a(n))&&(t.left+=d+p+f)},top:function(t,e){var i,n,s=e.within,o=s.offset.top+s.scrollTop,r=s.height,l=s.isWindow?s.scrollTop:s.offset.top,c=t.top-e.collisionPosition.marginTop,u=c-l,h=c+e.collisionHeight-r-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];0>u?(0>(n=t.top+d+p+f+e.collisionHeight-r-o)||a(u)>n)&&(t.top+=d+p+f):h>0&&((i=t.top-e.collisionPosition.marginTop+d+p+f-l)>0||h>a(i))&&(t.top+=d+p+f)}},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)}}},function(){var e,i,n,s,r,a=document.getElementsByTagName("body")[0],l=document.createElement("div");for(r in e=document.createElement(a?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"}),n)e.style[r]=n[r];e.appendChild(l),(i=a||document.documentElement).insertBefore(e,i.firstChild),l.style.cssText="position: absolute; left: 10.7432222px;",s=t(l).offset().left,o=s>10&&11>s,e.innerHTML="",i.removeChild(e)}()}(),t.ui.position,t.widget("ui.draggable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return this._blurActiveElement(e),!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle||(this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0)))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("
").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=this.document[0];if(this.handleElement.is(e.target))try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()&&t(i.activeElement).blur()}catch(t){}},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._normalizeRightBottom(),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp({}),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.focus(),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper),s=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options,o=this.document[0];return this.relativeContainer=null,s.containment?"window"===s.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===s.containment?void(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):s.containment.constructor===Array?void(this.containment=s.containment):("parent"===s.containment&&(s.containment=this.helper[0].parentNode),void((n=(i=t(s.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,s,o,r=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.lefti[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,o=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-r.grid[0]:o+r.grid[0]:o),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var s=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,s))}))},stop:function(e,i,n){var s=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,(function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))}))},drag:function(e,i,n){t.each(n.sortables,(function(){var s=!1,o=this;o.positionAbs=n.positionAbs,o.helperProportions=n.helperProportions,o.offset.click=n.offset.click,o._intersectsWith(o.containerCache)&&(s=!0,t.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(s=!1),s}))),s?(o.isOver||(o.isOver=1,n._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=n.offset.click.top,o.offset.click.left=n.offset.click.left,o.offset.parent.left-=n.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=n.offset.parent.top-o.offset.parent.top,n._trigger("toSortable",e),n.dropped=o.element,t.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,o.fromOutside=n),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var s=t("body"),o=n.options;s.css("cursor")&&(o._cursor=s.css("cursor")),s.css("cursor",o.cursor)},stop:function(e,i,n){var s=n.options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var s=t(i.helper),o=n.options;s.css("opacity")&&(o._opacity=s.css("opacity")),s.css("opacity",o.opacity)},stop:function(e,i,n){var s=n.options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var s=n.options,o=!1,r=n.scrollParentNotHidden[0],a=n.document[0];r!==a&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+r.offsetHeight-e.pageY=0;d--)c=(l=n.snapElements[d].left-n.margins.left)+n.snapElements[d].width,h=(u=n.snapElements[d].top-n.margins.top)+n.snapElements[d].height,l-m>v||g>c+m||u-m>b||y>h+m||!t.contains(n.snapElements[d].item.ownerDocument,n.snapElements[d].item)?(n.snapElements[d].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(s=m>=Math.abs(u-b),o=m>=Math.abs(h-y),r=m>=Math.abs(l-v),a=m>=Math.abs(c-g),s&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),p=s||o||r||a,"outer"!==f.snapMode&&(s=m>=Math.abs(u-y),o=m>=Math.abs(h-b),r=m>=Math.abs(l-g),a=m>=Math.abs(c-v),s&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[d].snapping&&(s||o||r||a||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=s||o||r||a||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var s,o=n.options,r=t.makeArray(t(o.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));r.length&&(s=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each((function(e){t(this).css("zIndex",s+e)})),this.css("zIndex",s+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var s=t(i.helper),o=n.options;s.css("zIndex")&&(o._zIndex=s.css("zIndex")),s.css("zIndex",o.zIndex)},stop:function(e,i,n){var s=n.options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(i.scope),i.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var n=t.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,s=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(s=!0,!1):void 0})),!s&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,n,s){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,a=o+e.helperProportions.width,l=r+e.helperProportions.height,c=i.offset.left,u=i.offset.top,h=c+i.proportions().width,d=u+i.proportions().height;switch(n){case"fit":return o>=c&&h>=a&&r>=u&&d>=l;case"intersect":return o+e.helperProportions.width/2>c&&h>a-e.helperProportions.width/2&&r+e.helperProportions.height/2>u&&d>l-e.helperProportions.height/2;case"pointer":return t(s.pageY,u,i.proportions().height)&&t(s.pageX,c,i.proportions().width);case"touch":return(r>=u&&d>=r||l>=u&&d>=l||u>r&&l>d)&&(o>=c&&h>=o||a>=c&&h>=a||c>o&&a>h);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,s,o=t.ui.ddmanager.droppables[e.options.scope]||[],r=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;o.length>n;n++)if(!(o[n].options.disabled||e&&!o[n].accept.call(o[n].element[0],e.currentItem||e.element))){for(s=0;a.length>s;s++)if(a[s]===o[n].element[0]){o[n].proportions().height=0;continue t}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===r&&o[n]._activate.call(o[n],i),o[n].offset=o[n].element.offset(),o[n].proportions({width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}))},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,s,o,r=t.ui.intersect(e,this,this.options.tolerance,i),a=!r&&this.isover?"isout":r&&!this.isover?"isover":null;a&&(this.options.greedy&&(s=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===s}))).length&&((n=t(o[0]).droppable("instance")).greedyChild="isover"===a)),n&&"isover"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&&"isout"===a&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}}))},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},t.ui.droppable,t.widget("ui.resizable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseInt(t,10)||0},_isNumber:function(t){return!isNaN(parseInt(t,10))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return e[n]>0||(e[n]=1,s=e[n]>0,e[n]=0,s)},_create:function(){var e,i,n,s,o=this,r=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=r.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;e.length>i;i++)n=t.trim(e[i]),(s=t("
")).css({zIndex:r.zIndex}),"se"===n&&s.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(s);this._renderAxis=function(e){var i,n,s,r;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),r=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(s,r),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover((function(){o.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=s&&s[1]?s[1]:"se")})),r.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter((function(){r.disabled||(t(this).removeClass("ui-resizable-autohide"),o._handles.show())})).mouseleave((function(){r.disabled||o.resizing||(t(this).addClass("ui-resizable-autohide"),o._handles.hide())}))),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,s=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(e){var i,n,s,o=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,n+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),r.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n,s=this.originalMousePosition,o=this.axis,r=e.pageX-s.left||0,a=e.pageY-s.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,r,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,s,o,r,a,l,c=this.options,u=this;return this._helper&&(s=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:u.sizeDiff.height,o=n?0:u.sizeDiff.width,r={width:u.helper.width()-o,height:u.helper.height()-s},a=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,l=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,c.animate||this.element.css(t.extend(r,{top:l,left:a})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,s,o,r=this.options;o={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,s=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),n>o.minHeight&&(o.minHeight=n),o.maxWidth>i&&(o.maxWidth=i),o.maxHeight>s&&(o.maxHeight=s)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidtht.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,c=/sw|nw|w/.test(i),u=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),o&&c&&(t.left=a-e.minWidth),n&&c&&(t.left=a-e.maxWidth),r&&u&&(t.top=l-e.minHeight),s&&u&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseInt(n[e],10)||0,i[e]+=parseInt(s[e],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("
"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize,s=this.originalPosition;return{top:s.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,s=i._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),r=o&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-r},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,u&&c?{top:u,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};s&&s.length&&t(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,s,o,r,a,l=t(this).resizable("instance"),c=l.options,u=l.element,h=c.containment,d=h instanceof t?h.get(0):/parent/.test(h)?u.parent().get(0):h;d&&(l.containerElement=t(d),/document/.test(h)||h===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,n){i[t]=l._num(e.css("padding"+n))})),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=l.containerOffset,s=l.containerSize.height,o=l.containerSize.width,r=l._hasScroll(d,"left")?d.scrollWidth:o,a=l._hasScroll(d)?d.scrollHeight:s,l.parentData={element:d,left:n.left,top:n.top,width:r,height:a}))},resize:function(e){var i,n,s,o,r=t(this).resizable("instance"),a=r.options,l=r.containerOffset,c=r.position,u=r._aspectRatio||e.shiftKey,h={top:0,left:0},d=r.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(h=l),c.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-h.left),u&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=a.helper?l.left:0),c.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),u&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?l.top:0),s=r.containerElement.get(0)===r.element.parent().get(0),o=/relative|absolute/.test(r.containerElement.css("position")),s&&o?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),i=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-h.left:r.offset.left-l.left)),n=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-h.top:r.offset.top-l.top)),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,u&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),n+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-n,u&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,s=e.containerPosition,o=e.containerElement,r=t(e.helper),a=r.offset(),l=r.outerWidth()-e.sizeDiff.width,c=r.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:c}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})}))},resize:function(e,i){var n=t(this).resizable("instance"),s=n.options,o=n.originalSize,r=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0};t(s.alsoResize).each((function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),s={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,(function(t,e){var i=(n[e]||0)+(a[e]||0);i&&i>=0&&(s[e]=i||null)})),e.css(s)}))},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,s=i.size,o=i.originalSize,r=i.originalPosition,a=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,c=l[0]||1,u=l[1]||1,h=Math.round((s.width-o.width)/c)*c,d=Math.round((s.height-o.height)/u)*u,p=o.width+h,f=o.height+d,m=n.maxWidth&&p>n.maxWidth,g=n.maxHeight&&f>n.maxHeight,v=n.minWidth&&n.minWidth>p,y=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=c),y&&(f+=u),m&&(p-=c),g&&(f-=u),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.top=r.top-d):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.left=r.left-h):((0>=f-u||0>=p-c)&&(e=i._getPaddingPlusBorderDimensions(this)),f-u>0?(i.size.height=f,i.position.top=r.top-d):(f=u-e.height,i.size.height=f,i.position.top=r.top+o.height-f),p-c>0?(i.size.width=p,i.position.left=r.left-h):(p=c-e.width,i.size.width=p,i.position.left=r.left+o.width-p))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each((function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})}))},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))})),t(e.target).parents().addBack().each((function(){var n,s=t.data(this,"selectable-item");return s?(n=!e.metaKey&&!e.ctrlKey||!s.$element.hasClass("ui-selected"),s.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,s.selected=n,n?i._trigger("selecting",e,{selecting:s.element}):i._trigger("unselecting",e,{unselecting:s.element}),!1):void 0})))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,s=this.options,o=this.opos[0],r=this.opos[1],a=e.pageX,l=e.pageY;return o>a&&(i=a,a=o,o=i),r>l&&(i=l,l=r,r=i),this.helper.css({left:o,top:r,width:a-o,height:l-r}),this.selectees.each((function(){var i=t.data(this,"selectable-item"),c=!1;i&&i.element!==n.element[0]&&("touch"===s.tolerance?c=!(i.left>a||o>i.right||i.top>l||r>i.bottom):"fit"===s.tolerance&&(c=i.left>o&&a>i.right&&i.top>r&&l>i.bottom),c?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))})),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each((function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})})),t(".ui-selecting",this.element[0]).each((function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})})),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),t.each(this.items,(function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")}))},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){return t.data(this,o.widgetName+"-item")===o?(n=t(this),!1):void 0})),t.data(e.target,o.widgetName+"-item")===o&&(n=t(e.target)),!n||this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(s=!0)})),!s)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,n){var s,o,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=t("").appendTo(o)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,s,o,r=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--)if(s=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&s!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==s&&!t.contains(this.placeholder[0],s)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),o=this.options.axis,r={};o&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=t.left,r=o+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,u=this.offset.click.left,h="x"===this.options.axis||n+c>a&&l>n+c,d="y"===this.options.axis||e+u>o&&r>e+u,p=h&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>o&&r>i-this.helperProportions.width/2&&n+this.helperProportions.height/2>a&&l>s-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),n=e&&i,s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return!!n&&(this.floating?o&&"right"===o||"down"===s?2:1:s&&("down"===s?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){a.push(this)}var n,s,o,r,a=[],l=[],c=this._connectWith();if(c&&e)for(n=c.length-1;n>=0;n--)for(s=(o=t(c[n],this.document[0])).length-1;s>=0;s--)(r=t.data(o[s],this.widgetFullName))&&r!==this&&!r.options.disabled&&l.push([t.isFunction(r.options.items)?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,o,r,a,l,c,u=this.items,h=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=(s=t(d[i],this.document[0])).length-1;n>=0;n--)(o=t.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(h.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=h.length-1;i>=0;i--)for(r=h[i][1],n=0,c=(a=h[i][0]).length;c>n;n++)(l=t(a[n])).data(this.widgetName+"-item",r),u.push({item:l,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,s,o;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),o=s.offset(),n.left=o.left,n.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),s=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,s){(!i||n.forcePlaceholderSize)&&(s.height()||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t(" ",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,s,o,r,a,l,c,u,h,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,o=null,r=(u=d.floating||this._isFloating(this.currentItem))?"left":"top",a=u?"width":"height",h=u?"clientX":"clientY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[r],c=!1,e[h]-l>this.items[n][a]/2&&(c=!0),s>Math.abs(e[h]-l)&&(s=Math.abs(e[h]-l),o=this.items[n],this.direction=c?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),("document"===s.containment||"window"===s.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],i=t(s.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*n}},_generatePosition:function(e){var i,n,s=this.options,o=e.pageX,r=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.leftthis.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay((function(){s===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)("auto"===this._storedCSS[n]||"static"===this._storedCSS[n])&&(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&s.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(s.push((function(t){this._trigger("remove",t,this._uiHash())})),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||s.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;s.length>n;n++)s[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.accordion",{version:"1.11.4",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===t&&(this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e))))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,s=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(s+1)%n];break;case i.LEFT:case i.UP:o=this.headers[(s-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[n-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),o.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,n=i.heightStyle,s=this.element.parent();this.active=this._findActive(i.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each((function(){var e=t(this),i=e.uniqueId().attr("id"),n=e.next(),s=n.uniqueId().attr("id");e.attr("aria-controls",s),n.attr("aria-labelledby",i)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===n?(e=s.height(),this.element.siblings(":visible").each((function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))})),this.headers.each((function(){e-=t(this).outerHeight(!0)})),this.headers.next().each((function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===n&&(e=0,this.headers.next().each((function(){e=Math.max(e,t(this).css("height","").height())})).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),(function(t,e){i[e]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,n=this.active,s=t(e.currentTarget),o=s[0]===n[0],r=o&&i.collapsible,a=r?t():s.next(),l=n.next(),c={oldHeader:n,oldPanel:l,newHeader:r?t():s,newPanel:a};e.preventDefault(),o&&!i.collapsible||!1===this._trigger("beforeActivate",e,c)||(i.active=!r&&this.headers.index(s),this.active=o?t():s,this._toggle(c),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),o||(s.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),s.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter((function(){return 0===parseInt(t(this).attr("tabIndex"),10)})).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var n,s,o,r=this,a=0,l=t.css("box-sizing"),c=t.length&&(!e.length||t.index()",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target);!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")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.currentTarget);i.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay((function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each((function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()})),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var i,n,s,o,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=String.fromCharCode(e.keyCode),o=!1,clearTimeout(this.filterTimer),s===n?o=!0:s=n+s,i=this._filterMenuItems(s),(i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(s=String.fromCharCode(e.keyCode),i=this._filterMenuItems(s)),i.length?(this.focus(e,i),this.previousFilter=s,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}r&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var e,i=this,n=this.options.icons.submenu,s=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),s.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),i=e.parent(),s=t("").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))})),(e=s.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var e=t(this);i._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")})),e.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=e.children(".ui-menu")).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,s,o,r,a;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,s=e.offset().top-this.activeMenu.offset().top-i-n,o=this.activeMenu.scrollTop(),r=this.activeMenu.height(),a=e.outerHeight(),0>s?this.activeMenu.scrollTop(o+s):s+a>r&&this.activeMenu.scrollTop(o+s-r+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_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.activeMenu=n}),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").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_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.active.children(".ui-menu ").find(this.options.items).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},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,s;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.height(),this.active.nextAll(".ui-menu-item").each((function(){return 0>(i=t(this)).offset().top-n-s})),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,s;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.height(),this.active.prevAll(".ui-menu-item").each((function(){return(i=t(this)).offset().top-n+s>0})),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,s=this.element[0].nodeName.toLowerCase(),o="textarea"===s,r="input"===s;this.isMultiLine=!!o||!r&&this.element.prop("isContentEditable"),this.valueMethod=this.element[o||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var o=t.ui.keyCode;switch(s.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",s);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",s);break;case o.UP:e=!0,this._keyEvent("previous",s);break;case o.DOWN:e=!0,this._keyEvent("next",s);break;case o.ENTER:this.menu.active&&(e=!0,s.preventDefault(),this.menu.select(s));break;case o.TAB:this.menu.active&&this.menu.select(s);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&n.preventDefault());if(!i){var s=t.ui.keyCode;switch(n.keyCode){case s.PAGE_UP:this._move("previousPage",n);break;case s.PAGE_DOWN:this._move("nextPage",n);break;case s.UP:this._keyEvent("previous",n);break;case s.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("