1/* Plugins.js is meant to hold all of a sites plugin code. Instead of linking to many different files, we can improve performance by including plugin code directly in this one file. There can and should be exceptions to this usage. An extremely large plugin only used on one rarely visited page, for example, might be better off in a separate file and called through AJAX within the pages function call in 'mvscreen'. Most of the time, however, it's safe to just paste in minified versions of all your plugins here for easy access. make sure to leave all copyright information in tact. When minifying your scripts, use this service on the "Simple" setting: http://closure-compiler.appspot.com/home */ 2 3/* PLUGIN DIRECTORY 4What you can find in this file [listed in order they appear] 5 6 1) Avoid 'console' errors in browsers that lack a console. 7 8 2) CSS Browser Selector [http://ridjohansen.github.com/css_browser_selector/index_en.html] 9 By: Rafael Lima [http://rafael.adm.br] 10 Version : 0.7 [https://github.com/ridjohansen/css_browser_selector/] 11 License: Attribution 2.5 Generic [http://creativecommons.org/licenses/by/2.5/] 12 * Platform sniffing code added by Matt Zimmermann 13 * Set the browser width to a cookie through JavaScript and reset the cookie on browser resize added by Matt Zimmermann 14 15 3) CSS Feature Detect 16 17 4) Email Address RegEx Validator 18 19 5) HTML5 Placeholder Fix 20 21 6) Fix IE 10 on Windows Phone 8 Viewport [http://css-tricks.com/snippets/javascript/fix-ie-10-on-windows-phone-8-viewport/] 22 23 7) Cookie Monster 24 25 8) Custom ScrollTo 26 27 9) Toggle Disabled Property 28 29 10) Add "last-child" support for IE <= 8 30 31 11) Mobile Navigation Functions 32 33 12) Responsive iFrames 34 35 13) Closable Messages 36 37 14) Create Social Networking Pop-Ups 38 39 15) Stuck - On Scroll, add a class that fixes an elements position to the top 40 41 16) Mini-Basket Function with 'isOnScreen' Detection 42 43 17) debouncedresize: special jQuery event that happens once after a window resize [https://github.com/louisremi/jquery-smartresize] 44 By: Louis-Rémi Babé [https://github.com/louisremi] 45 Version : 1.0 [https://github.com/louisremi/jquery-smartresize] 46 License: MIT 47 48 18) Magnific Popup [http://dimsemenov.com/plugins/magnific-popup/] 49 By: Dmitry Semenov [http://dimsemenov.com/] 50 Version : 0.9.9 [https://github.com/dimsemenov/Magnific-Popup/] 51 License: MIT 52 53 19) jQuery Conformity Plugin [http://codekipple.com/conformity/] 54 Plugin adapted from this code:- http://codepen.io/micahgodbolt/details/FgqLc 55 Pass conformity a jquery collection of blocks inside a container, conformity will make sure each row is 56 equal heights, call conformity on window resize for responsive equal heights using debounce. 57 Supports CommonJS, AMD or browser globals. 58 By: codekipple [http://www.codekipple.com/] 59 Version : 0.2.3 [https://github.com/codekipple/conformity] 60 License: MIT 61*/ 62 63// ---- Avoid 'console' errors in browsers that lack a console. ---- // 64 (function(){for(var a,e=function(){},b="assert clear count debug dir dirxml error exception group groupCollapsed groupEnd info log markTimeline profile profileEnd table time timeEnd timeStamp trace warn".split(" "),c=b.length,d=window.console=window.console||{};c--;)a=b[c],d[a]||(d[a]=e)})(); 65 66// ---- CSS Browser Selector ---- // 67 Array.prototype.filter||(Array.prototype.filter=function(a){if(void 0===this||null===this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!==typeof a)throw new TypeError;for(var d=[],e=2<=arguments.length?arguments[1]:void 0,f=0;f<c;f++)if(f in b){var g=b[f];a.call(e,g,f,b)&&d.push(g)}return d}); var uaInfo={ua:"",is:function(a){return RegExp(a,"i").test(uaInfo.ua)},version:function(a,b){b=b.replace(".","_");for(var c=b.indexOf("_"),d="";0<c;)d+=" "+a+b.substring(0,c),c=b.indexOf("_",c+1);return d+(" "+a+b)},getBrowser:function(){var a=uaInfo.ua,b=uaInfo.is;return[!/opera|webtv/i.test(a)&&/msie\s(\d+)/.test(a)?"ie ie"+(/trident\/4\.0/.test(a)?"8":RegExp.$1):b("trident/")?"ie ie"+(/trident\/.+rv:(\d+)/i.test(a)?RegExp.$1:""):b("firefox/")?"gecko firefox"+(/firefox\/((\d+)(\.(\d+))(\.\d+)*)/.test(a)? " firefox"+RegExp.$2+" firefox"+RegExp.$2+"_"+RegExp.$4:""):b("gecko/")?"gecko":b("opera")?"opera"+(/version\/((\d+)(\.(\d+))(\.\d+)*)/.test(a)?" opera"+RegExp.$2+" opera"+RegExp.$2+"_"+RegExp.$4:/opera(\s|\/)(\d+)\.(\d+)/.test(a)?" opera"+RegExp.$2+" opera"+RegExp.$2+"_"+RegExp.$3:""):b("konqueror")?"konqueror":b("blackberry")?"blackberry"+(/Version\/(\d+)(\.(\d+)+)/i.test(a)?" blackberry"+RegExp.$1+" blackberry"+RegExp.$1+RegExp.$2.replace(".","_"):/Blackberry ?(([0-9]+)([a-z]?))[\/|;]/gi.test(a)? " blackberry"+RegExp.$2+(RegExp.$3?" blackberry"+RegExp.$2+RegExp.$3:""):""):b("android")?"android"+(/Version\/(\d+)(\.(\d+))+/i.test(a)?" android"+Reg
67Exp.$1+" android"+RegExp.$1+RegExp.$2.replace(".","_"):"")+(/Android (.+); (.+) Build/i.test(a)?" device_"+RegExp.$2.replace(/ /g,"_").replace(/-/g,"_"):""):b("chrome")?"webkit chrome"+(/chrome\/((\d+)(\.(\d+))(\.\d+)*)/.test(a)?" chrome"+RegExp.$2+(0<RegExp.$4?" chrome"+RegExp.$2+"_"+RegExp.$4:""):""):b("iron")?"webkit iron":b("applewebkit/")?"webkit safari"+ (/version\/((\d+)(\.(\d+))(\.\d+)*)/.test(a)?" safari"+RegExp.$2+" safari"+RegExp.$2+RegExp.$3.replace(".","_"):/ Safari\/(\d+)/i.test(a)?"419"==RegExp.$1||"417"==RegExp.$1||"416"==RegExp.$1||"412"==RegExp.$1?" safari2_0":"312"==RegExp.$1?" safari1_3":"125"==RegExp.$1?" safari1_2":"85"==RegExp.$1?" safari1_0":"":""):b("mozilla/")?"gecko":""]},getPlatform:function(){var a=uaInfo.ua,b=uaInfo.version,c=uaInfo.is;return[c("j2me")?"j2me":c("ipad|ipod|iphone")?(/CPU( iPhone)? OS (\d+[_|\.]\d+([_|\.]\d+)*)/i.test(a)? "ios"+b("ios",RegExp.$2):"")+" "+(/(ip(ad|od|hone))/gi.test(a)?RegExp.$1:""):c("playbook")?"playbook":c("kindle|silk")?"kindle":c("playbook")?"playbook":c("mac")?"mac"+(/mac os x ((\d+)[.|_](\d+))/.test(a)?" mac"+RegExp.$2+" mac"+RegExp.$1.replace(".","_"):""):c("win")?"win"+(c("windows nt 6.2")?" win8":c("windows nt 6.1")?" win7":c("windows nt 6.0")?" vista":c("windows nt 5.2")||c("windows nt 5.1")?" win_xp":c("windows nt 5.0")?" win_2k":c("windows nt 4.0")||c("WinNT4.0")?" win_nt":""):c("freebsd")? "freebsd":c("x11|linux")?"linux":""]},getMobile:function(){var a=uaInfo.is;return[a("android|mobi|mobile|j2me|iphone|ipod|ipad|blackberry|playbook|kindle|silk")?"mobile":""]},getIpadApp:function(){var a=uaInfo.is;return[a("ipad|iphone|ipod")&&!a("safari")?"ipad_app":""]},getLang:function(){return[/[; |\[](([a-z]{2})(\-[a-z]{2})?)[)|;|\]]/i.test(uaInfo.ua)?("lang_"+RegExp.$2).replace("-","_")+(""!=RegExp.$3?(" lang_"+RegExp.$1).replace("-","_"):""):""]}};"undefined"==typeof html&&(html=document.documentElement); var screenInfo={width:(window.outerWidth||html.clientWidth)-15,height:window.outerHeight||html.clientHeight,screens:[0,768,980,1200],screenSize:function(){screenInfo.width=(window.outerWidth||html.clientWidth)-15;screenInfo.height=window.outerHeight||html.clientHeight;for(var a=screenInfo.screens,b=a.length,c=[];b--;)if(screenInfo.width>=a[b]){b&&c.push("minw_"+a[b]);2>=b&&c.push("maxw_"+(a[b+1]-1));break}return c},getOrientation:function(){return screenInfo.width<screenInfo.height?["orientation_portrait"]: ["orientation_landscape"]},getInfo:function(){var a=[],a=a.concat(screenInfo.screenSize());return a=a.concat(screenInfo.getOrientation())},getPixelRatio:function(){var a=[],b=window.devicePixelRatio?window.devicePixelRatio:1;1<b?(a.push("retina_"+parseInt(b)+"x"),a.push("hidpi")):a.push("no-hidpi");return a}},dataUriInfo={data:new Image,div:document.createElement("div"),isIeLessThan9:!1,getImg:function(){dataUriInfo.data.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="; dataUriInfo.div.innerHTML="\x3c!--[if lt IE 9]><i></i><![endif]--\x3e";dataUriInfo.isIeLessThan9=1==dataUriInfo.div.getElementsByTagName("i").length;return dataUriInfo.data},checkSupport:function(){return 1!=dataUriInfo.data.width||1!=dataUriInfo.data.height||dataUriInfo.isIeLessThan9?["no-datauri"]:["datauri"]}}; function css_browser_selector(a,b){var c=document.documentElement,d=[];b=b?b:"";addEvent=window.attachEvent||window.addEventListener;touchscreen="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch?"touch":"no-touch";uaInfo.ua=a.toLowerCase();var d=d.concat(uaInfo.getBrowser()),d=d.concat(uaInfo.getPlatform()),d=d.concat(uaInfo.getMobile()),d=d.concat(uaInfo.getIpadApp()),d=d.concat(uaInfo.getLang()),d=d.concat(["js"]),d=d.concat([touchscreen]),d=d.concat(screenInfo.getPixelRatio()), d=d.concat(screenInfo.getInfo()),e=function(){c.className=c.className.replace(/ ?orientation_\w+/g,"").replace(/ [min|max|cl]+[w|h]_\d+/g,"");c.className=c.className+" "+screenInfo.getInfo().join(" ")};addEvent("resize",e);addEvent("orientationchange",e);e=dataUriInfo.getImg();e.onload=e.onerror=function(){c.className+=" "+dataUriInfo.checkSupport().join(" ")};d=d.filter(function(a){return a});d[0]=b?b+d[0]:d[0];c.className=d.join(" "+b);return c.className} var css_browser_selector_ns=css_browser_selector_ns||"";css_browser_selector(navigator.userAgent,css_browser_selector_ns); 68 function platformSniffer(){var a=document.documentElement;a.setAttribute("data-platform",navigator.platform);a.setAttribute("data-touch","ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch?"touch":"no-touch")}
68var platformSniffer=new platformSniffer,hasTouch="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch?"true":""; 69 RESS={};RESS.resize=function(){var a;return function(){clearTimeout(a);a=setTimeout(function(){a=null;RESS.storeSizes()},250)}};RESS.writeCookie=function(a,b){document.cookie=a+"="+b+"; path=/"};RESS.storeSizes=function(){RESS.writeCookie("RESS_width",window.innerWidth)};RESS.storeSizes();if(window.getComputedStyle){window.addEventListener("resize",RESS.resize());var screenWidth=window.getComputedStyle(document.body,":after").getPropertyValue("content");}; 70 71// ---- CSS Feature Detect ---- // 72 function detectCSSFeature(a){var b=!1,c="Webkit webkit Moz ms O Khtml".split(" "),d=document.createElement("div"),e=null;a=a.toLowerCase();void 0!==d.style[a]&&(b=!0);if(!1===b)for(e=a.charAt(0).toUpperCase()+a.substr(1),a=0;a<c.length;a++)if(void 0!==d.style[c[a]+e]){b=!0;break}return b}; 73 74// ---- Email Address RegEx Validator ---- // 75 function isValidEmailAddress(emailAddress){var emailPattern=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);return emailPattern.test(emailAddress);}; 76 77// ---- HTML5 Placeholder Fix ---- // 78 (function(b){b(function(){if(!("placeholder"in document.createElement("input")))b("[placeholder]").on({focus:function(){var a=b(this);a.val()===a.attr("placeholder")&&a.val("").removeClass("placeholder")},blur:function(){var a=b(this);""!==a.val()&&a.val()!==a.attr("placeholder")||a.addClass("placeholder").val(a.attr("placeholder"))}}).blur().parents("form").on("submit",function(){b(this).find("[placeholder]").each(function(){var a=b(this);a.val()===a.attr("placeholder")&&a.val("")})})})})(jQuery); 79 80// ---- Fix IE 10 on Windows Phone 8 Viewport ---- // 81 (function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){var a=document.createElement("style");a.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}"));document.getElementsByTagName("head")[0].appendChild(a)}})(); 82 83// ---- Cookie Monster ---- // 84 function createCookie(c,d,a){if(a){var b=new Date;b.setTime(b.getTime()+864E5*a);a="; expires="+b.toGMTString()}else a="";document.cookie=c+"="+d+a+"; path=/"}; 85 function readCookie(b){for(var b=b+"=",d=document.cookie.split(";"),c=0;c<d.length;c++){for(var a=d[c];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(b))return a.substring(b.length,a.length)}return null}; 86 function eraseCookie(a){createCookie(a,"",-1)}; 87 88// ---- Custom ScrollTo ---- // 89 function scrollToDiv(a,b){var c=a.offset().top-b;$("html, body").stop().animate({scrollTop:c},800,"swing")}; 90 91// ---- Toggle Disabled Property ---- // 92 (function(a){a.fn.toggleDisabled=function(){return this.each(function(){this.disabled=!this.disabled})}})(jQuery); 93 94// ---- Add "last-child" support for IE <= 8 ---- // 95 function lastChild(){/msie [1-8]{1}[^0-9]/.test(navigator.userAgent.toLowerCase())&&$("*:last-child").addClass("last-child")}lastChild=new lastChild; 96 97// ---- Mobile Navigation Functions ---- // 98 (function(f){if(Array.prototype.forEach){var b=document.body;f=document.querySelector("#js-site-overlay");var g=document.querySelectorAll(".toggle-slide-top"),h=document.querySelectorAll(".toggle-slide-right"),a=document.querySelectorAll(".toggle-slide-bottom"),c=document.querySelectorAll(".toggle-slide-left");document.querySelector(".mobile-menu-top");document.querySelector(".mobile-menu-right");document.querySelector(".mobile-menu-bottom");document.querySelector(".mobile-menu-left");var d;[].slice.call(g).forEach(function(a, c){a.addEventListener("click",function(e){e.stopPropagation();e.preventDefault();e.stopImmediatePropagation();b.className+=" mobile-menu-active mobile-menu-top-open";d="mobile-menu-active mobile-menu-top-open"})});[].slice.call(h).forEach(function(a,c){a.addEventListener("click",function(e){e.stopPropagation();e.preventDefault();e.stopImmediatePropagation();b.className+=" mobile-menu-active mobile-menu-right-open";d="mobile-menu-active mobile-menu-right-open"})});
98[].slice.call(a).forEach(function(a, c){a.addEventListener("click",function(a){a.stopPropagation();a.preventDefault();a.stopImmediatePropagation();b.className+=" mobile-menu-active mobile-menu-bottom-open";d="mobile-menu-active mobile-menu-bottom-open"})});[].slice.call(c).forEach(function(a,c){a.addEventListener("click",function(a){a.stopPropagation();a.preventDefault();a.stopImmediatePropagation();b.className+=" mobile-menu-active mobile-menu-left-open";d="mobile-menu-active mobile-menu-left-open"})});f.addEventListener("click",function(a){a.stopPropagation(); a.preventDefault();a.stopImmediatePropagation();b.className=b.className.replace(" "+d,"").replace(d,"");d=""});[].slice.call(document.querySelectorAll(".close-mobile-menu")).forEach(function(a,c){a.addEventListener("click",function(a){a.stopPropagation();a.preventDefault();a.stopImmediatePropagation();b.className=b.className.replace(" "+d,"").replace(d,"");d=""})})}})(window); function mobileNavigation(){function f(){960>=$(window).innerWidth()?0==$("#js-mobile-navigation ul").length&&(g.show(),$(b).append(h),$("#js-mobile-navigation ul li span").each(function(){if("0"!=$(this).next().length){$(this).addClass("parent");var a=$(this).children("a").text();$(this).parent("li").append('<span data-name="'+a+'" data-rt-icon="d" class="next"></span>')}})):0==$("#js-navigation-bar ul").length&&(g.hide(),$("#js-mobile-navigation").find($(".clone").remove()),$("#js-navigation-bar").append(h.removeClass("hide")), $(".next").remove())}var b=$("#js-mobile-navigation"),g=$("#js-mobile-menu-button"),h=$("#js-navigation-set");$(window).on("load resize",function(){f()});b.on("click","span.next",function(a){a.stopPropagation();a.preventDefault();a.stopImmediatePropagation();$(this).siblings("span").closest("ul").addClass("hide");$parent=$(this).text();$new=$(this).prev("ul").clone().addClass("clone").appendTo(b);a=$(this).attr("data-name");$('<li><span class="back"><a>◄ Back</a></span></li>').prependTo($new); if($(".navigation-trail").length)c=$(this).parent("li").siblings(".navigation-trail").clone(),$(c).children("span").append(" / "+a),c.prependTo($new);else{var c=$('<li class="navigation-trail"><span>Home</span></li>').prependTo($new);$(c).children("span").append(" / "+a)}});b.on("click","span.back",function(a){a.stopPropagation();a.preventDefault();a.stopImmediatePropagation();$(this).closest("ul").prev("ul").removeClass("hide");breadcrumb=$("a.root").text();last=breadcrumb.substr(breadcrumb.lastIndexOf(" / ")+ 1);$old=$(this).closest("ul");$old.remove();$("a.root").html(function(a,b){return b.replace(last,"")})})}mobileNavigation=new mobileNavigation; 99 100// ---- Responsive iFrames ---- // 101 function responsiveIframes(){$.contains(document.body,"iframe")&&$("iframe").each(function(){var a=$(this),b=a.data("proportion"),c=a.attr("width"),d=a.width();b||(b=a.attr("height")/c,a.data("proportion",b));d!=c&&a.css("height",Math.round(d*b)+"px")})}responsiveIframes=new responsiveIframes;$(window).on("debouncedresize",responsiveIframes); 102 103// ---- Closable Messages ---- // 104 function closableMessages(){$(".message.closable").each(function(){var a=$(this);a.on("click",".close",function(b){b.preventDefault();a.fadeOut()})})}closableMessages=new closableMessages; 105 106// ---- Create Social Networking Pop-Ups ---- // 107 (function(){$("a.share").each(function(){var a=$(this),b=a.attr("href"),c=a.attr("target");a.on("click",function(a){a.preventDefault();(a=window.open(b,c,"width=500, height=500, left="+Math.floor(((screen.availWidth||1024)-500)/2)+", top="+Math.floor(((screen.availHeight||700)-500)/2)+', location="0", menubar="0", toolbar="0", status="0", scrollbars="1", resizable="1"'))&&a.focus()})})})(); 108 109// ---- Stuck ---- // 110 (function(b){b.fn.stuck=function(){var a=this,d=this.height(),e=this.position().top,c=b(window);c.scroll(function(){var f=c.scrollTop();b(document).height();c.height();f>d+e?a.hasClass("stuck")||(a.addClass("stuck"),a.next().css("margin-top",d)):a.hasClass("stuck")&&f<=e&&(a.next().css("margin-top",0),a.removeClass("stuck"))});return this}})(jQuery); 111 112// ---- Mini-Basket Functions ---- // 113 $.fn.isOnScreen=function(){var a=$(window),b=a.scrollTop(),d=a.scrollLeft(),e,c=this.offset();e=d+a.width();a=b+a.height();c.right=c.left+this.outerWidth();c.bottom=c.top+this.outerHeight();return!(e<c.left||d>c.right||a<c.top||b>c.bottom)}; 114 function MiniBasket(){var a=$("#js-mini-basket, #js-mobile-basket-button, #js-mobile-footer-basket"),b=$("#js-mini-basket-container"),d=$("body");a&&b&&($(a).on("click",function(a){b.toggleClass("open");0!=d.scrollTop&&$("html, body").animate({scrollTop: '0px'}, 400);a.preventDefault()}),d.on("click","#js-continue-shopping",function(a){a.preventDefault();b.removeClass("open")}),d.on("click",function(){b.hasClass("open")&&b.isOnScreen()&&window.matchMedia&&b.removeClass("open")}),b.removeClass("open"))}var minibasket=new MiniBasket; 115
116// ---- debouncedresize ---- // 117 (function(a){var d=a.event,b,c;b=d.special.debouncedresize={setup:function(){a(this).on("resize",b.handler)},teardown:function(){a(this).off("resize",b.handler)},handler:function(a,f){var g=this,h=arguments,e=function(){a.type="debouncedresize";d.dispatch.apply(g,h)};c&&clearTimeout(c);f?e():c=setTimeout(e,b.threshold)},threshold:150}})(jQuery); 118 119// ---- Magnific Popup ---- // 120 (function(a){var b="Close",c="BeforeClose",d="AfterClose",e="BeforeAppend",f="MarkupParse",g="Open",h="Change",i="mfp",j="."+i,k="mfp-ready",l="mfp-removing",m="mfp-prevent-close",n,o=function(){},p=!!window.jQuery,q,r=a(window),s,t,u,v,w,x=function(a,b){n.ev.on(i+a+j,b)},y=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},z=function(b,c){n.ev.triggerHandler(i+b,c),n.st.callbacks&&(b=b.charAt(0).toLowerCase()+b.slice(1),n.st.callbacks[b]&&n.st.callbacks[b].apply(n,a.isArray(c)?c:[c]))},A=function(b){if(b!==w||!n.currTemplate.closeBtn)n.currTemplate.closeBtn=a(n.st.closeMarkup.replace("%title%",n.st.tClose)),w=b;return n.currTemplate.closeBtn},B=function(){a.magnificPopup.instance||(n=new o,n.init(),a.magnificPopup.instance=n)},C=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(a.transition!==undefined)return!0;while(b.length)if(b.pop()+"Transition"in a)return!0;return!1};o.prototype={constructor:o,init:function(){var b=navigator.appVersion;n.isIE7=b.indexOf("MSIE 7.")!==-1,n.isIE8=b.indexOf("MSIE 8.")!==-1,n.isLowIE=n.isIE7||n.isIE8,n.isAndroid=/android/gi.test(b),n.isIOS=/iphone|ipad|ipod/gi.test(b),n.supportsTransition=C(),n.probablyMobile=n.isAndroid||n.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),t=a(document),n.popupsCache={}},open:function(b){s||(s=a(document.body));var c;if(b.isObj===!1){n.items=b.items.toArray(),n.index=0;var d=b.items,e;for(c=0;c<d.length;c++){e=d[c],e.parsed&&(e=e.el[0]);if(e===b.el[0]){n.index=c;break}}}else n.items=a.isArray(b.items)?b.items:[b.items],n.index=b.index||0;if(n.isOpen){n.updateItemHTML();return}n.types=[],v="",b.mainEl&&b.mainEl.length?n.ev=b.mainEl.eq(0):n.ev=t,b.key?(n.popupsCache[b.key]||(n.popupsCache[b.key]={}),n.currTemplate=n.popupsCache[b.key]):n.currTemplate={},n.st=a.extend(!0,{},a.magnificPopup.defaults,b),n.fixedContentPos=n.st.fixedContentPos==="auto"?!n.probablyMobile:n.st.fixedContentPos,n.st.modal&&(n.st.closeOnContentClick=!1,n.st.closeOnBgClick=!1,n.st.showCloseBtn=!1,n.st.enableEscapeKey=!1),n.bgOverlay||(n.bgOverlay=y("bg").on("click"+j,function(){n.close()}),n.wrap=y("wrap").attr("tabindex",-1).on("click"+j,function(a){n._checkIfClose(a.target)&&n.close()}),n.container=y("container",n.wrap)),n.contentContainer=y("content"),n.st.preloader&&(n.preloader=y("preloader",n.container,n.st.tLoading));var h=a.magnificPopup.modules;for(c=0;c<h.length;c++){var i=h[c];i=i.charAt(0).toUpperCase()+i.slice(1),n["init"+i].call(n)}z("BeforeOpen"),n.st.showCloseBtn&&(n.st.closeBtnInside?(x(f,function(a,b,c,d){c.close_replaceWith=A(d.type)}),v+=" mfp-close-btn-in"):n.wrap.append(A())),n.st.alignTop&&(v+=" mfp-align-top"),n.fixedContentPos?n.wrap.css({overflow:n.st.overflowY,overflowX:"hidden",overflowY:n.st.overflowY}):n.wrap.css({top:r.scrollTop(),position:"absolute"}),(n.st.fixedBgPos===!1||n.st.fixedBgPos==="auto"&&!n.fixedContentPos)&&n.bgOverlay.css({height:t.height(),position:"absolute"}),n.st.enableEscapeKey&&t.on("keyup"+j,function(a){a.keyCode===27&&n.close()}),r.on("resize"+j,function(){n.updateSize()}),n.st.closeOnContentClick||(v+=" mfp-auto-cursor"),v&&n.wrap.addClass(v);var l=n.wH=r.height(),m={};if(n.fixedContentPos&&n._hasScrollBar(l)){var o=n._getScrollbarSize();o&&(m.marginRight=o)}n.fixedContentPos&&(n.isIE7?a("body, html").css("overflow","hidden"):m.overflow="hidden");var p=n.st.mainClass;return n.isIE7&&(p+=" mfp-ie7"),p&&n._addClassToMFP(p),n.updateItemHTML(),z("BuildControls"),a("html").css(m),n.bgOverlay.add(n.wrap).prependTo(n.st.prependTo||s),n._lastFocusedEl=document.activeElement,setTimeout(function(){n.content?(n._addClassToMFP(k),n._setFocus()):n.bgOverlay.addClass(k),t.on("focusin"+j,n._onFocusIn)},16),n.isOpen=!0,n.updateSize(l),z(g),b},close:function(){if(!n.isOpen)return;z(c),n.isOpen=!1,n.st.removalDelay&&!n.isLowIE&&n.supportsTransition?(n._addClassToMFP(l),setTimeout(function(){n._close()},n.st.removalDelay)):n._close()},_close:function(){z(b);var c=l+" "+k+" ";n.bgOverlay.detach(),n.wrap.detach(),n.container.empty(),n.st.mainClass&&(c+=n.st.mainClass+" "),n._removeClassFromMFP(c);if(n.fixedContentPos){var e={marginRight:""};n.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}t.off("keyup"+j+" focusin"+j),n.ev.off(j),n.wrap.attr("class","mfp-wrap").removeAttr("style"),n.bgOverlay.attr("class","mfp-bg"),n.container.attr("class","mfp-container"),n.st.showCloseBtn&&(!n.st.closeBtnInside||n.currTemplate[n.currItem.type]===!0)&&n.currTemplate.closeBtn&&n.currTemplate.closeBtn.detach(),n._lastFocusedEl&&a(n._lastFocusedEl).focus(),n.currItem=null,n.content=null,n.currTemplate=null,n.prevHeight=0,z(d)}
120,updateSize:function(a){if(n.isIOS){var b=document.documentElement.clientWidth/window.innerWidth,c=window.innerHeight*b;n.wrap.css("height",c),n.wH=c}else n.wH=a||r.height();n.fixedContentPos||n.wrap.css("height",n.wH),z("Resize")},updateItemHTML:function(){var b=n.items[n.index];n.contentContainer.detach(),n.content&&n.content.detach(),b.parsed||(b=n.parseEl(n.index));var c=b.type;z("BeforeChange",[n.currItem?n.currItem.type:"",c]),n.currItem=b;if(!n.currTemplate[c]){var d=n.st[c]?n.st[c].markup:!1;z("FirstMarkupParse",d),d?n.currTemplate[c]=a(d):n.currTemplate[c]=!0}u&&u!==b.type&&n.container.removeClass("mfp-"+u+"-holder");var e=n["get"+c.charAt(0).toUpperCase()+c.slice(1)](b,n.currTemplate[c]);n.appendContent(e,c),b.preloaded=!0,z(h,b),u=b.type,n.container.prepend(n.contentContainer),z("AfterChange")},appendContent:function(a,b){n.content=a,a?n.st.showCloseBtn&&n.st.closeBtnInside&&n.currTemplate[b]===!0?n.content.find(".mfp-close").length||n.content.append(A()):n.content=a:n.content="",z(e),n.container.addClass("mfp-"+b+"-holder"),n.contentContainer.append(n.content)},parseEl:function(b){var c=n.items[b],d;c.tagName?c={el:a(c)}:(d=c.type,c={data:c,src:c.src});if(c.el){var e=n.types;for(var f=0;f<e.length;f++)if(c.el.hasClass("mfp-"+e[f])){d=e[f];break}c.src=c.el.attr("data-mfp-src"),c.src||(c.src=c.el.attr("href"))}return c.type=d||n.st.type||"inline",c.index=b,c.parsed=!0,n.items[b]=c,z("ElementParse",c),n.items[b]},addGroup:function(a,b){var c=function(c){c.mfpEl=this,n._openClick(c,a,b)};b||(b={});var d="click.magnificPopup";b.mainEl=a,b.items?(b.isObj=!0,a.off(d).on(d,c)):(b.isObj=!1,b.delegate?a.off(d).on(d,b.delegate,c):(b.items=a,a.off(d).on(d,c)))},_openClick:function(b,c,d){var e=d.midClick!==undefined?d.midClick:a.magnificPopup.defaults.midClick;if(!e&&(b.which===2||b.ctrlKey||b.metaKey))return;var f=d.disableOn!==undefined?d.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(n))return!0}else if(r.width()<f)return!0;b.type&&(b.preventDefault(),n.isOpen&&b.stopPropagation()),d.el=a(b.mfpEl),d.delegate&&(d.items=c.find(d.delegate)),n.open(d)},updateStatus:function(a,b){if(n.preloader){q!==a&&n.container.removeClass("mfp-s-"+q),!b&&a==="loading"&&(b=n.st.tLoading);var c={status:a,text:b};z("UpdateStatus",c),a=c.status,b=c.text,n.preloader.html(b),n.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),n.container.addClass("mfp-s-"+a),q=a}},_checkIfClose:function(b){if(a(b).hasClass(m))return;var c=n.st.closeOnContentClick,d=n.st.closeOnBgClick;if(c&&d)return!0;if(!n.content||a(b).hasClass("mfp-close")||n.preloader&&b===n.preloader[0])return!0;if(b!==n.content[0]&&!a.contains(n.content[0],b)){if(d&&a.contains(document,b))return!0}else if(c)return!0;return!1},_addClassToMFP:function(a){n.bgOverlay.addClass(a),n.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),n.wrap.removeClass(a)},_hasScrollBar:function(a){return(n.isIE7?t.height():document.body.scrollHeight)>(a||r.height())},_setFocus:function(){(n.st.focus?n.content.find(n.st.focus).eq(0):n.wrap).focus()},_onFocusIn:function(b){if(b.target!==n.wrap[0]&&!a.contains(n.wrap[0],b.target))return n._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),z(f,[b,c,d]),a.each(c,function(a,c){if(c===undefined||c===!1)return!0;e=a.split("_");if(e.length>1){var d=b.find(j+"-"+e[0]);if(d.length>0){var f=e[1];f==="replaceWith"?d[0]!==c[0]&&d.replaceWith(c):f==="img"?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(j+"-"+a).html(c)})},_getScrollbarSize:function(){if(n.scrollbarSize===undefined){var a=document.createElement("div");a.id="mfp-sbm",a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),n.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return n.scrollbarSize}},a.magnificPopup={instance:null,proto:o.prototype,modules:[],open:function(b,c){return B(),b?b=a.extend(!0,{},b):b={},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(b){B();var c=a(this);if(typeof b=="string")if(b==="open"){var d,e=p?c.data("magnificPopup"):c[0].magnificPopup,f=parseInt(arguments[1],10)||0;e.items?d=e.items[f]:(d=c,e.delegate&&(d=d.find(e.delegate)),d=d.eq(f)),n._openClick({mfpEl:d},c,e)}else n.isOpen&&n[b].apply(n,Array.prototype.slice.call(arguments,1
120));else b=a.extend(!0,{},b),p?c.data("magnificPopup",b):c[0].magnificPopup=b,n.addGroup(c,b);return c};var D="inline",E,F,G,H=function(){G&&(F.after(G.addClass(E)).detach(),G=null)};a.magnificPopup.registerModule(D,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){n.types.push(D),x(b+"."+D,function(){H()})},getInline:function(b,c){H();if(b.src){var d=n.st.inline,e=a(b.src);if(e.length){var f=e[0].parentNode;f&&f.tagName&&(F||(E=d.hiddenClass,F=y(E),E="mfp-"+E),G=e.after(F).detach().removeClass(E)),n.updateStatus("ready")}else n.updateStatus("error",d.tNotFound),e=a("<div>");return b.inlineElement=e,e}return n.updateStatus("ready"),n._parseMarkup(c,{},b),c}}});var I="ajax",J,K=function(){J&&s.removeClass(J)},L=function(){K(),n.req&&n.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){n.types.push(I),J=n.st.ajax.cursor,x(b+"."+I,L),x("BeforeChange."+I,L)},getAjax:function(b){J&&s.addClass(J),n.updateStatus("loading");var c=a.extend({url:b.src,success:function(c,d,e){var f={data:c,xhr:e};z("ParseAjax",f),n.appendContent(a(f.data),I),b.finished=!0,K(),n._setFocus(),setTimeout(function(){n.wrap.addClass(k)},16),n.updateStatus("ready"),z("AjaxContentAdded")},error:function(){K(),b.finished=b.loadError=!0,n.updateStatus("error",n.st.ajax.tError.replace("%url%",b.src))}},n.st.ajax.settings);return n.req=a.ajax(c),""}}});var M,N=function(b){if(b.data&&b.data.title!==undefined)return b.data.title;var c=n.st.image.titleSrc;if(c){if(a.isFunction(c))return c.call(n,b);if(b.el)return b.el.attr(c)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var a=n.st.image,c=".image";n.types.push("image"),x(g+c,function(){n.currItem.type==="image"&&a.cursor&&s.addClass(a.cursor)}),x(b+c,function(){a.cursor&&s.removeClass(a.cursor),r.off("resize"+j)}),x("Resize"+c,n.resizeImage),n.isLowIE&&x("AfterChange",n.resizeImage)},resizeImage:function(){var a=n.currItem;if(!a||!a.img)return;if(n.st.image.verticalFit){var b=0;n.isLowIE&&(b=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",n.wH-b)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,M&&clearInterval(M),a.isCheckingImgSize=!1,z("ImageHasSize",a),a.imgHidden&&(n.content&&n.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var b=0,c=a.img[0],d=function(e){M&&clearInterval(M),M=setInterval(function(){if(c.naturalWidth>0){n._onImageHasSize(a);return}b>200&&clearInterval(M),b++,b===3?d(10):b===40?d(50):b===100&&d(500)},e)};d(1)},getImage:function(b,c){var d=0,e=function(){b&&(b.img[0].complete?(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("ready")),b.hasSize=!0,b.loaded=!0,z("ImageLoadComplete")):(d++,d<200?setTimeout(e,100):f()))},f=function(){b&&(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("error",g.tError.replace("%url%",b.src))),b.hasSize=!0,b.loaded=!0,b.loadError=!0)},g=n.st.image,h=c.find(".mfp-img");if(h.length){var i=document.createElement("img");i.className="mfp-img",b.img=a(i).on("load.mfploader",e).on("error.mfploader",f),i.src=b.src,h.is("img")&&(b.img=b.img.clone()),i=b.img[0],i.naturalWidth>0?b.hasSize=!0:i.width||(b.hasSize=!1)}return n._parseMarkup(c,{title:N(b),img_replaceWith:b.img},b),n.resizeImage(),b.hasSize?(M&&clearInterval(M),b.loadError?(c.addClass("mfp-loading"),n.updateStatus("error",g.tError.replace("%url%",b.src))):(c.removeClass("mfp-loading"),n.updateStatus("ready")),c):(n.updateStatus("loading"),b.loading=!0,b.hasSize||(b.imgHidden=!0,c.addClass("mfp-loading"),n.findImageSize(b)),c)}}});var O,P=function(){return O===undefined&&(O=document.createElement("p").style.MozTransform!==undefined),O};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a=n.st.zoom,d=".zoom",e;if(!a.enabled||!n.supportsTransition)return;var f=a.duration,g=function(b){var c=b.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+a.duration/1e3+"s "+a.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,c.css(e),c},h=function(){n.content.css("visibility","visible")},i,j;x("BuildControls"+d,function(){if(n._allowZoom()){clearTimeout(i),n.content.css("visibility","hidden"),e=n._getItemToZoom();if(!e){h();return}j=g(e),j.css(n._getOffset()),n.wrap.append(j),i=setTimeout(function(){j.css(n._getOffset(!0)),i=setTimeout(function(){h(),setTimeout(function(){j.remove(),e=j=null,z("ZoomAnimationEnded")},16)},f)},16)}}),x(c+d,function(){if(n._allowZoom()){clearTimeout(i),n.st.removalDelay=f;if(!e){e=n._getItemToZoom();if(!e)return;j=g(e)}j.css(n._getOffset(!0)),n.wrap.append(j),n.content.css("visibility","hidden"),setTimeout(function(){j.css(n._getOffset())},16)}}),x(b+d,function(){n._allowZoom()&&(h(),j&&j.remove(),e=null)})},_allowZoom:function(){return n.currItem.type==="image"},_getItemToZoom:function(){return n.currItem.hasSize?n.currItem.img:!1},_getOffset:function(b){var c;b?c=n.currItem.img:c=n.st.zoom.opener(n.currItem.el||n.currItem);var d=c.offset(),e=parseInt(c.css("padding-top"),10),f=parseInt(c.css("padding-bottom"),10);d.top-=a(window).scrollTop()-e;var g={width:c.width(),height:(p?c.innerHeight():c[0].offsetHeight)-f-e};return P()?g["-moz-transform"]=g.transform="translate("+d.left+"px,"+d.top+"px)":(g.left=d.left,g.top=d.top),g}}});
120var Q="iframe",R="//about:blank",S=function(a){if(n.currTemplate[Q]){var b=n.currTemplate[Q].find("iframe");b.length&&(a||(b[0].src=R),n.isIE8&&b.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(Q,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){n.types.push(Q),x("BeforeChange",function(a,b,c){b!==c&&(b===Q?S():c===Q&&S(!0))}),x(b+"."+Q,function(){S()})},getIframe:function(b,c){var d=b.src,e=n.st.iframe;a.each(e.patterns,function(){if(d.indexOf(this.index)>-1)return this.id&&(typeof this.id=="string"?d=d.substr(d.lastIndexOf(this.id)+this.id.length,d.length):d=this.id.call(this,d)),d=this.src.replace("%id%",d),!1});var f={};return e.srcAction&&(f[e.srcAction]=d),n._parseMarkup(c,f,b),n.updateStatus("ready"),c}}});var T=function(a){var b=n.items.length;return a>b-1?a-b:a<0?b+a:a},U=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=n.st.gallery,d=".mfp-gallery",e=Boolean(a.fn.mfpFastClick);n.direction=!0;if(!c||!c.enabled)return!1;v+=" mfp-gallery",x(g+d,function(){c.navigateByImgClick&&n.wrap.on("click"+d,".mfp-img",function(){if(n.items.length>1)return n.next(),!1}),t.on("keydown"+d,function(a){a.keyCode===37?n.prev():a.keyCode===39&&n.next()})}),x("UpdateStatus"+d,function(a,b){b.text&&(b.text=U(b.text,n.currItem.index,n.items.length))}),x(f+d,function(a,b,d,e){var f=n.items.length;d.counter=f>1?U(c.tCounter,e.index,f):""}),x("BuildControls"+d,function(){if(n.items.length>1&&c.arrows&&!n.arrowLeft){var b=c.arrowMarkup,d=n.arrowLeft=a(b.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(m),f=n.arrowRight=a(b.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(m),g=e?"mfpFastClick":"click";d[g](function(){n.prev()}),f[g](function(){n.next()}),n.isIE7&&(y("b",d[0],!1,!0),y("a",d[0],!1,!0),y("b",f[0],!1,!0),y("a",f[0],!1,!0)),n.container.append(d.add(f))}}),x(h+d,function(){n._preloadTimeout&&clearTimeout(n._preloadTimeout),n._preloadTimeout=setTimeout(function(){n.preloadNearbyImages(),n._preloadTimeout=null},16)}),x(b+d,function(){t.off(d),n.wrap.off("click"+d),n.arrowLeft&&e&&n.arrowLeft.add(n.arrowRight).destroyMfpFastClick(),n.arrowRight=n.arrowLeft=null})},next:function(){n.direction=!0,n.index=T(n.index+1),n.updateItemHTML()},prev:function(){n.direction=!1,n.index=T(n.index-1),n.updateItemHTML()},goTo:function(a){n.direction=a>=n.index,n.index=a,n.updateItemHTML()},preloadNearbyImages:function(){var a=n.st.gallery.preload,b=Math.min(a[0],n.items.length),c=Math.min(a[1],n.items.length),d;for(d=1;d<=(n.direction?c:b);d++)n._preloadItem(n.index+d);for(d=1;d<=(n.direction?b:c);d++)n._preloadItem(n.index-d)},_preloadItem:function(b){b=T(b);if(n.items[b].preloaded)return;var c=n.items[b];c.parsed||(c=n.parseEl(b)),z("LazyLoad",c),c.type==="image"&&(c.img=a('<img class="mfp-img" />').on("load.mfploader",function(){c.hasSize=!0}).on("error.mfploader",function(){c.hasSize=!0,c.loadError=!0,z("LazyLoadError",c)}).attr("src",c.src)),c.preloaded=!0}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){r.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g=a(this),h;if(c){var i,j,k,l,m,n;g.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,r.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0];
120if(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)l=!0,d()}).on("touchend"+f,function(a){d();if(l||n>1)return;h=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){h=!1},b),e()})})}g.on("click"+f,function(){h||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&r.off("touchmove"+f+" touchend"+f)}}(),B()})(window.jQuery||window.Zepto); 121 122// ---- jQuery Conformity Plugin ---- // 123 !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){a.fn.conformity=function(b){var c,d={mode:"min-height"},e=a(this),f=0,g=0,h=[],i=0;return b&&a.extend(d,b),e.each(function(){if(c=a(this),"min-height"===d.mode?c.height("auto").css("min-height",0):"height"===d.mode&&c.height("auto"),i=c.offset().top,g!=i){for(currentDiv=0;currentDiv<h.length;currentDiv++)h[currentDiv].css(d.mode,f);h.length=0,g=i,f=c.outerHeight(),h.push(c)}else h.push(c),f=f<c.outerHeight()?c.outerHeight():f;for(currentDiv=0;currentDiv<h.length;currentDiv++)h[currentDiv].css(d.mode,f)})}}); 124 125//qTip2 - Pretty powerful tooltips - v3.0.3 http://qtip2.com 126!function(t,e,i){!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.qtip&&t(jQuery)}(function(s){"use strict";var o,n,r,a,h,l=!0,c=!1,d=null,p="x",u="y",f="width",g="height",m="top",v="left",y="bottom",b="right",w="center",x="flipinvert",_="shift",C={},q="qtip",T="data-hasqtip",j="data-qtip-id",z=["ui-widget","ui-tooltip"],M="."+q,W="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),I=q+"-fixed",k=q+"-default",E=q+"-focus",P=q+"-hover",S=q+"-disabled",A="_replacedByqTip",L="oldtitle",D={ie:function(){var t,i;for(t=4,i=e.createElement("div");(i.innerHTML="\x3c!--[if gt IE "+t+"]><i></i><![endif]--\x3e")&&i.getElementsByTagName("i")[0];t+=1);return t>4?t:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||c};function O(t,e,i,o){this.id=i,this.target=t,this.tooltip=d,this.elements={target:t},this._id=q+"-"+i,this.timers={img:{}},this.options=e,this.plugins={},this.cache={event:{},target:s(),disabled:c,attr:o,onTooltip:c,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=c}function B(t){return t===d||"object"!==s.type(t)}function F(t){return!(s.isFunction(t)||t&&t.attr||t.length||"object"===s.type(t)&&(t.jquery||t.then))}function N(t){var e,i,o,n;return B(t)?c:(B(t.metadata)&&(t.metadata={type:t.metadata}),"content"in t&&(B(e=t.content)||e.jquery||e.done?(i=F(e)?c:e,e=t.content={text:i}):i=e.text,"ajax"in e&&(o=e.ajax,n=o&&o.once!==c,delete e.ajax,e.text=function(t,e){var r=i||s(this).attr(e.options.content.attr)||"Loading...",a=s.ajax(s.extend({},o,{context:e})).then(o.success,d,o.error).then(function(t){return t&&n&&e.set("content.text",t),t},function(t,i,s){e.destroyed||0===t.status||e.set("content.text",i+": "+s)});return n?r:(e.set("content.text",r),a)}),"title"in e&&(s.isPlainObject(e.title)&&(e.button=e.title.button,e.title=e.title.text),F(e.title||c)&&(e.title=c))),"position"in t&&B(t.position)&&(t.position={my:t.position,at:t.position}),"show"in t&&B(t.show)&&(t.show=t.show.jquery?{target:t.show}:t.show===l?{ready:l}:{event:t.show}),"hide"in t&&B(t.hide)&&(t.hide=t.hide.jquery?{target:t.hide}:{event:t.hide}),"style"in t&&B(t.style)&&(t.style={classes:t.style}),s.each(C,function(){this.sanitize&&this.sanitize(t)}),t)}function $(t,e){for(var i,s=0,o=t,n=e.split(".");o=o[n[s++]];)s<n.length&&(i=o);return[i||t,n.pop()]}function V(t,e){var i,s,o;for(i in this.checks)if(this.checks.hasOwnProperty(i))for(s in this.checks[i])this.checks[i].hasOwnProperty(s)&&(o=new RegExp(s,"i").exec(t))&&(e.push(o),("builtin"===i||this.plugins[i])&&this.checks[i][s].apply(this.plugins[i]||this,e))}(n=O.prototype)._when=function(t){return s.when.apply(s,t)},n.render=function(t){if(this.rendered||this.destroyed)return this;var e=this,i=this.options,n=this.cache,r=this.elements,a=i.content.text,h=i.content.title,d=i.content.button,p=i.position,u=[];return s.attr(this.target[0],"aria-describedby",this._id),n.posClass=this._createPosClass((this.position={my:p.my,at:p.at}).my),this.tooltip=r.tooltip=s("<div/>",{id:this._id,class:[q,k,i.style.classes,n.posClass].join(" "),width:i.style.width||"",height:i.style.height||"",tracking:"mouse"===p.target&&p.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":c,"aria-describedby":this._id+"-content","aria-hidden":l}).toggleClass(S,this.disabled).attr(j,this.id).data(q,this).appendTo(p.container).append(r.content=s("<div />",{class:q+"-content",id:this._id+"-content","aria-atomic":l})),this.rendered=-1,this.positioning=l,h&&(this._createTitle(),s.isFunction(h)||u.push(this._updateTitle(h,c))),d&&this._createButton(),s.isFunction(a)||u.push(this._updateContent(a,c)),this.rendered=l,this._setWi
vendor: 6,571 bytes, line 126
126dget(),s.each(C,function(t){var i;"render"===this.initialize&&(i=this(e))&&(e.plugins[t]=i)}),this._unassignEvents(),this._assignEvents(),this._when(u).then(function(){e._trigger("render"),e.positioning=c,e.hiddenDuringWait||!i.show.ready&&!t||e.toggle(l,n.event,c),e.hiddenDuringWait=c}),o.api[this.id]=this,this},n.destroy=function(t){if(this.destroyed)return this.target;function e(){if(!this.destroyed){this.destroyed=l;var t,e=this.target,i=e.attr(L);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),s.each(this.plugins,function(){this.destroy&&this.destroy()});for(t in this.timers)this.timers.hasOwnProperty(t)&&clearTimeout(this.timers[t]);e.removeData(q).removeAttr(j).removeAttr(T).removeAttr("aria-describedby"),this.options.suppress&&i&&e.attr("title",i).removeAttr(L),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=d,delete o.api[this.id]}}return t===l&&"hide"!==this.triggering||!this.rendered?e.call(this):(this.tooltip.one("tooltiphidden",s.proxy(e,this)),!this.triggering&&this.hide()),this.target},a=n.checks={builtin:{"^id$":function(t,e,i,n){var r=i===l?o.nextid:i,a=q+"-"+r;r!==c&&r.length>0&&!s("#"+a).length?(this._id=a,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):t[e]=n},"^prerender":function(t,e,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(t,e,i){this._updateContent(i)},"^content.attr$":function(t,e,i,s){this.options.content.text===this.target.attr(s)&&this._updateContent(this.target.attr(i))},"^content.title$":function(t,e,i){if(!i)return this._removeTitle();i&&!this.elements.title&&this._createTitle(),this._updateTitle(i)},"^content.button$":function(t,e,i){this._updateButton(i)},"^content.title.(text|button)$":function(t,e,i){this.set("content."+e,i)},"^position.(my|at)$":function(t,e,i){"string"==typeof i&&(this.position[e]=t[e]=new r(i,"at"===e))},"^position.container$":function(t,e,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(t,e,i){i&&(!this.rendered&&this.render(l)||this.toggle(l))},"^style.classes$":function(t,e,i,s){this.rendered&&this.tooltip.removeClass(s).addClass(i)},"^style.(width|height)":function(t,e,i){this.rendered&&this.tooltip.css(e,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(t,e,i){this.rendered&&this.tooltip.toggleClass(k,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(t,e,i){this.rendered&&this.tooltip[(s.isFunction(i)?"":"un")+"bind"]("tooltip"+e,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var t=this.options.position;this.tooltip.attr("tracking","mouse"===t.target&&t.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},n.get=function(t){if(this.destroyed)return this;var e=$(this.options,t.toLowerCase()),i=e[0][e[1]];return i.precedance?i.string():i};var R=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,H=/^prerender|show\.ready/i;n.set=function(t,e){if(this.destroyed)return this;var i,o=this.rendered,n=c,r=this.options;return"string"==typeof t?(i=t,(t={})[i]=e):t=s.extend({},t),s.each(t,function(e,i){if(o&&H.test(e))delete t[e];else{var a,h=$(r,e.toLowerCase());a=h[0][h[1]],h[0][h[1]]=i&&i.nodeType?s(i):i,n=R.test(e)||n,t[e]=[h[0],h[1],i,a]}}),N(r),this.positioning=l,s.each(t,s.proxy(V,this)),this.positioning=c,this.rendered&&this.tooltip[0].offsetWidth>0&&n&&this.reposition("mouse"===r.position.target?d:this.cache.event),this},n._update=function(t,e){var i=this,o=this.cache;return this.rendered&&t?(s.isFunction(t)&&(t=t.call(this.elements.target,o.event,this)||""),s.isFunction(t.then)?(o.waiting=l,t.then(function(t){return o.waiting=c,i._update(t,e)},d,function(t){return i._update(t,e)})):t===c||!t&&""!==t?c:(t.jquery&&t.length>0?e.empty().append(t.css({display:"block",visibility:"visible"})):e.html(t),this._waitForContent(e).then(function(t){i.rendered&&i.tooltip[0].offsetWidth>0&&i.reposition(o.event,!t.length)}))):c},n._waitForContent=function(t){var e=this.cache;return e.waiting=l,(s.fn.imagesLoaded?t.imagesLoaded():(new s.Deferred).resolve([])).done(function(){e.waiting=c}).promise()},n._updateContent=function(t,e){this._update(t,this.elements.content,e)},n._updateTitle=function(t,e){this._update(t,this.elements.title,e)===c&&this._removeTitle(c)},n._createTitle=function(){var t=this.elements,e=this._id+"-title";t.titlebar&&this._removeTitle(),t.titlebar=s("<div />",{class:q+"-titlebar "+(this.options.style.widget?Y("header"):"")}).append(t.title=s("<div />",{id:e,class:q+"-title","aria-atomic":l})).insertBefore(t.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(t){s(this).toggleClass("ui-state-active ui-state-focus","down"===t.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(t){s(this).toggleClass("ui-state-hover","mouseover"===t.type)}),this.options.content.button&&this._createButton()},n._removeTitle=function(t){var e=this.elements;e.title&&(e.titlebar.remove(),e.titlebar=e.title=e.button=d,t!==c&&this.reposition())},n._createPosClass=function(t){return q+"-pos-"+(t||this.options.position.my).abbrev()},n.reposition=function(i,o){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=l;var n,r,a,h,d=this.cache,p=this.tooltip,u=this.options.position,f=u.target,g=u.my,x=u.at,_=u.viewport,q=u.container,T=u.adjust,j=T.method.split(" "),z=p.outerWidth(c),M=p.outerHeight(c),W=0,I=0,k=p.css("position"),E={left:0,top:0},P=p[0].offsetWidth>0,S=i&&"scroll"===i.type,A=s(t),L=q[0].ownerDocument,O=this.mouse;if(s.isArray(f)&&2===f.length)x={x:v,y:m},E={left:f[0],top:f[1]};else if("mouse"===f)x={x:v,y:m},(!T.mouse||this.options.hide.distance)&&d.origin&&d.origin.pageX?i=d.origin:!i||i&&("resize"===i.type||"scroll"===i.type)?i=d.event:O&&O.pageX&&(i=O),"static"!==k&&(E=q.offset()),L.body.offsetWidth!==(t.innerWidth||L.documentElement.clientWidth)&&(r=s(e.body).offset()),E={left:i.pageX-E.left+(r&&r.left||0),top:i.pageY-E.top+(r&&r.top||0)},T.mouse&&S&&O&&(E.left-=(O.scrollX||0)-A.scrollLeft(),E.top-=(O.scrollY||0)-A.scrollTop());else{if("event"===f?i&&i.target&&"scroll"!==i.type&&"resize"!==i.type?d.target=s(i.target):i.target||(d.target=this.elements.target):"event"!==f&&(d.target=s(f.jquery?f:this.elements.target)),f=d.target,0===(f=s(f).eq(0)).length)return this;f[0]===e||f[0]===t?(W=D.iOS?t.innerWidth:f.width(),I=D.iOS?t.innerHe
vendor: 5,685 bytes, line 126
126ight:f.height(),f[0]===t&&(E={top:(_||f).scrollTop(),left:(_||f).scrollLeft()})):C.imagemap&&f.is("area")?n=C.imagemap(this,f,x,C.viewport?j:c):C.svg&&f&&f[0].ownerSVGElement?n=C.svg(this,f,x,C.viewport?j:c):(W=f.outerWidth(c),I=f.outerHeight(c),E=f.offset()),n&&(W=n.width,I=n.height,r=n.offset,E=n.position),E=this.reposition.offset(f,E,q),(D.iOS>3.1&&D.iOS<4.1||D.iOS>=4.3&&D.iOS<4.33||!D.iOS&&"fixed"===k)&&(E.left-=A.scrollLeft(),E.top-=A.scrollTop()),(!n||n&&n.adjustable!==c)&&(E.left+=x.x===b?W:x.x===w?W/2:0,E.top+=x.y===y?I:x.y===w?I/2:0)}return E.left+=T.x+(g.x===b?-z:g.x===w?-z/2:0),E.top+=T.y+(g.y===y?-M:g.y===w?-M/2:0),C.viewport?(a=E.adjusted=C.viewport(this,E,u,W,I,z,M),r&&a.left&&(E.left+=r.left),r&&a.top&&(E.top+=r.top),a.my&&(this.position.my=a.my)):E.adjusted={left:0,top:0},d.posClass!==(h=this._createPosClass(this.position.my))&&(d.posClass=h,p.removeClass(d.posClass).addClass(h)),this._trigger("move",[E,_.elem||_],i)?(delete E.adjusted,o===c||!P||isNaN(E.left)||isNaN(E.top)||"mouse"===f||!s.isFunction(u.effect)?p.css(E):s.isFunction(u.effect)&&(u.effect.call(p,this,s.extend({},E)),p.queue(function(t){s(this).css({opacity:"",height:""}),D.ie&&this.style.removeAttribute("filter"),t()})),this.positioning=c,this):this},n.reposition.offset=function(t,i,o){if(!o[0])return i;var n,r,a,h,l=s(t[0].ownerDocument),c=!!D.ie&&"CSS1Compat"!==e.compatMode,d=o[0];function p(t,e){i.left+=e*t.scrollLeft(),i.top+=e*t.scrollTop()}do{"static"!==(r=s.css(d,"position"))&&("fixed"===r?(a=d.getBoundingClientRect(),p(l,-1)):((a=s(d).position()).left+=parseFloat(s.css(d,"borderLeftWidth"))||0,a.top+=parseFloat(s.css(d,"borderTopWidth"))||0),i.left-=a.left+(parseFloat(s.css(d,"marginLeft"))||0),i.top-=a.top+(parseFloat(s.css(d,"marginTop"))||0),n||"hidden"===(h=s.css(d,"overflow"))||"visible"===h||(n=s(d)))}while(d=d.offsetParent);return n&&(n[0]!==l[0]||c)&&p(n,1),i};var X=(r=n.reposition.Corner=function(t,e){t=(""+t).replace(/([A-Z])/," $1").replace(/middle/gi,w).toLowerCase(),this.x=(t.match(/left|right/i)||t.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(t.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!e;var i=t.charAt(0);this.precedance="t"===i||"b"===i?u:p}).prototype;function Y(t){return z.concat("").join(t?"-"+t+" ":" ")}function G(t,e){if(e>0)return setTimeout(s.proxy(t,this),e);t.call(this)}function U(t){this.tooltip.hasClass(S)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=G.call(this,function(){this.toggle(l,t)},this.options.show.delay))}function Q(t){if(!this.tooltip.hasClass(S)&&!this.destroyed){var e=s(t.relatedTarget),i=e.closest(M)[0]===this.tooltip[0],o=e[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==e[0]&&"mouse"===this.options.position.target&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(i||o))try{t.preventDefault(),t.stopImmediatePropagation()}catch(t){}else this.timers.hide=G.call(this,function(){this.toggle(c,t)},this.options.hide.delay,this)}}function J(t){!this.tooltip.hasClass(S)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=G.call(this,function(){this.hide(t)},this.options.hide.inactive))}function K(t){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(t)}function Z(t,i,n){s(e.body).delegate(t,(i.split?i:i.join("."+q+" "))+"."+q,function(){var t=o.api[s.attr(this,j)];t&&!t.disabled&&n.apply(t,arguments)})}X.invert=function(t,e){this[t]=this[t]===v?b:this[t]===b?v:e||this[t]},X.string=function(t){var e=this.x,i=this.y,s=e!==i?"center"===e||"center"!==i&&(this.precedance===u||this.forceY)?[i,e]:[e,i]:[e];return!1!==t?s.join(" "):s},X.abbrev=function(){var t=this.string(!1);return t[0].charAt(0)+(t[1]&&t[1].charAt(0)||"")},X.clone=function(){return new r(this.string(),this.forceY)},n.toggle=function(t,i){var o=this.cache,n=this.options,r=this.tooltip;if(i){if(/over|enter/.test(i.type)&&o.event&&/out|leave/.test(o.event.type)&&n.show.target.add(i.target).length===n.show.target.length&&r.has(i.relatedTarget).length)return this;o.event=s.event.fix(i)}if(this.waiting&&!t&&(this.hiddenDuringWait=l),!this.rendered)return t?this.render(1):this;if(this.destroyed||this.disabled)return this;var a,p,u,f=t?"show":"hide",g=this.options[f],m=this.options.position,v=this.options.content,y=this.tooltip.css("width"),b=this.tooltip.is(":visible"),w=t||1===g.target.length,x=!i||g.target.length<2||o.target[0]===i.target;return(typeof t).search("boolean|number")&&(t=!b),p=(a=!r.is(":animated")&&b===t&&x)?d:!!this._trigger(f,[90]),this.destroyed?this:(p!==c&&t&&this.focus(i),!p||a?this:(s.attr(r[0],"aria-hidden",!t),t?(this.mouse&&(o.origin=s.event.fix(this.mouse)),s.isFunction(v.text)&&this._updateContent(v.text,c),s.isFunction(v.title)&&this._updateTitle(v.title,c),!h&&"mouse"===m.target&&m.adjust.mouse&&(s(e).bind("mousemove."+q,this._storeMouse),h=l),y||r.css("width",r.outerWidth(c)),this.reposition(i,arguments[2]),y||r.css("width",""),g.solo&&("string"==typeof g.solo?s(g.solo):s(M,g.solo)).not(r).not(g.target).qtip("hide",new s.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete o.origin,h&&!s(M+'[tracking="true"]:visible',g.solo).not(r).length&&(s(e).unbind("mousemove."+q),h=c),this.blur(i)),u=s.proxy(function(){t?(D.ie&&r[0].style.removeAttribute("filter"),r.css("overflow",""),"string"==typeof g.autofocus&&s(this.options.show.autofocus,r).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):r.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(t?"visible":"hidden")},this),g.effect===c||w===c?(r[f](),u()):s.isFunction(g.effect)?(r.stop(1,
vendor: 5,331 bytes, line 126
1261),g.effect.call(r,this),r.queue("fx",function(t){u(),t()})):r.fadeTo(90,t?1:0,u),t&&g.target.trigger("qtip-"+this.id+"-inactive"),this))},n.show=function(t){return this.toggle(l,t)},n.hide=function(t){return this.toggle(c,t)},n.focus=function(t){if(!this.rendered||this.destroyed)return this;var e=s(M),i=this.tooltip,n=parseInt(i[0].style.zIndex,10),r=o.zindex+e.length;return i.hasClass(E)||this._trigger("focus",[r],t)&&(n!==r&&(e.each(function(){this.style.zIndex>n&&(this.style.zIndex=this.style.zIndex-1)}),e.filter("."+E).qtip("blur",t)),i.addClass(E)[0].style.zIndex=r),this},n.blur=function(t){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(E),this._trigger("blur",[this.tooltip.css("zIndex")],t),this)},n.disable=function(t){return this.destroyed?this:("toggle"===t?t=!(this.rendered?this.tooltip.hasClass(S):this.disabled):"boolean"!=typeof t&&(t=l),this.rendered&&this.tooltip.toggleClass(S,t).attr("aria-disabled",t),this.disabled=!!t,this)},n.enable=function(){return this.disable(c)},n._createButton=function(){var t=this,e=this.elements,i=e.tooltip,o=this.options.content.button,n="string"==typeof o?o:"Close tooltip";e.button&&e.button.remove(),o.jquery?e.button=o:e.button=s("<a />",{class:"qtip-close "+(this.options.style.widget?"":q+"-icon"),title:n,"aria-label":n}).prepend(s("<span />",{class:"ui-icon ui-icon-close",html:"×"})),e.button.appendTo(e.titlebar||i).attr("role","button").click(function(e){return i.hasClass(S)||t.hide(e),c})},n._updateButton=function(t){if(!this.rendered)return c;var e=this.elements.button;t?this._createButton():e.remove()},n._setWidget=function(){var t=this.options.style.widget,e=this.elements,i=e.tooltip,s=i.hasClass(S);i.removeClass(S),S=t?"ui-state-disabled":"qtip-disabled",i.toggleClass(S,s),i.toggleClass("ui-helper-reset "+Y(),t).toggleClass(k,this.options.style.def&&!t),e.content&&e.content.toggleClass(Y("content"),t),e.titlebar&&e.titlebar.toggleClass(Y("header"),t),e.button&&e.button.toggleClass(q+"-icon",!t)},n._storeMouse=function(t){return(this.mouse=s.event.fix(t)).type="mousemove",this},n._bind=function(t,e,i,o,n){if(t&&i&&e.length){var r="."+this._id+(o?"-"+o:"");return s(t).bind((e.split?e:e.join(r+" "))+r,s.proxy(i,n||this)),this}},n._unbind=function(t,e){return t&&s(t).unbind("."+this._id+(e?"-"+e:"")),this},n._trigger=function(t,e,i){var o=new s.Event("tooltip"+t);return o.originalEvent=i&&s.extend({},i)||this.cache.event||d,this.triggering=t,this.tooltip.trigger(o,[this].concat(e||[])),this.triggering=c,!o.isDefaultPrevented()},n._bindEvents=function(t,e,i,o,n,r){var a=i.filter(o).add(o.filter(i)),h=[];a.length&&(s.each(e,function(e,i){var o=s.inArray(i,t);o>-1&&h.push(t.splice(o,1)[0])}),h.length&&(this._bind(a,h,function(t){(!!this.rendered&&this.tooltip[0].offsetWidth>0?r:n).call(this,t)}),i=i.not(a),o=o.not(a))),this._bind(i,t,n),this._bind(o,e,r)},n._assignInitialEvents=function(t){var e=this.options,i=e.show.target,o=e.hide.target,n=e.show.event?s.trim(""+e.show.event).split(" "):[],r=e.hide.event?s.trim(""+e.hide.event).split(" "):[];function a(t){if(this.disabled||this.destroyed)return c;this.cache.event=t&&s.event.fix(t),this.cache.target=t&&s(t.target),clearTimeout(this.timers.show),this.timers.show=G.call(this,function(){this.render("object"==typeof t||e.show.ready)},e.prerender?0:e.show.delay)}this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(e.show.event)&&!/mouse(out|leave)/i.test(e.hide.event)&&r.push("mouseleave"),this._bind(i,"mousemove",function(t){this._storeMouse(t),this.cache.onTarget=l}),this._bindEvents(n,r,i,o,a,function(){if(!this.timers)return c;clearTimeout(this.timers.show)}),(e.show.ready||e.prerender)&&a.call(this,t)},n._assignEvents=function(){var i=this,n=this.options,r=n.position,a=this.tooltip,h=n.show.target,l=n.hide.target,d=r.container,p=r.viewport,u=s(e),f=s(t),g=n.show.event?s.trim(""+n.show.event).split(" "):[],m=n.hide.event?s.trim(""+n.hide.event).split(" "):[];s.each(n.events,function(t,e){i._bind(a,"toggle"===t?["tooltipshow","tooltiphide"]:["tooltip"+t],e,null,a)}),/mouse(out|leave)/i.test(n.hide.event)&&"window"===n.hide.leave&&this._bind(u,["mouseout","blur"],function(t){/select|option/.test(t.target.nodeName)||t.relatedTarget||this.hide(t)}),n.hide.fixed?l=l.add(a.addClass(I)):/mouse(over|enter)/i.test(n.show.event)&&this._bind(l,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+n.hide.event).indexOf("unfocus")>-1&&this._bind(d.closest("html"),["mousedown","touchstart"],function(t){var e=s(t.target),i=this.rendered&&!this.tooltip.hasClass(S)&&this.tooltip[0].offsetWidth>0,o=e.parents(M).filter(this.tooltip[0]).length>0;e[0]===this.target[0]||e[0]===this.tooltip[0]||o||this.target.has(e[0]).length||!i||this.hide(t)}),"number"==typeof n.hide.inactive&&(this._bind(h,"qtip-"+this.id+"-inactive",J,"inactive"),this._bind(l.add(a),o.inactiveEvents,J)),this._bindEvents(g,m,h,l,U,Q),this._bind(h.add(a),"mousemove",function(t){if("number"==typeof n.hide.distance){var e=this.cache.origin||{},i=this.options.hide.distance,s=Math.abs;(s(t.pageX-e.pageX)>=i||s(t.pageY-e.pageY)>=i)&&this.hide(t)}this._storeMouse(t)}),"mouse"===r.target&&r.adjust.mouse&&(n.hide.event&&this._bind(h,["mouseenter","mouseleave"],function(t){if(!this.cache)return c;
vendor: 4,106 bytes, line 126
126this.cache.onTarget="mouseenter"===t.type}),this._bind(u,"mousemove",function(t){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(S)&&this.tooltip[0].offsetWidth>0&&this.reposition(t)})),(r.adjust.resize||p.length)&&this._bind(s.event.special.resize?p:f,"resize",K),r.adjust.scroll&&this._bind(f.add(r.container),"scroll",K)},n._unassignEvents=function(){var i=this.options,o=i.show.target,n=i.hide.target,r=s.grep([this.elements.target[0],this.rendered&&this.tooltip[0],i.position.container[0],i.position.viewport[0],i.position.container.closest("html")[0],t,e],function(t){return"object"==typeof t});o&&o.toArray&&(r=r.concat(o.toArray())),n&&n.toArray&&(r=r.concat(n.toArray())),this._unbind(r)._unbind(r,"destroy")._unbind(r,"inactive")},s(function(){Z(M,["mouseenter","mouseleave"],function(t){var e="mouseenter"===t.type,i=s(t.currentTarget),o=s(t.relatedTarget||t.target),n=this.options;e?(this.focus(t),i.hasClass(I)&&!i.hasClass(S)&&clearTimeout(this.timers.hide)):"mouse"===n.position.target&&n.position.adjust.mouse&&n.hide.event&&n.show.target&&!o.closest(n.show.target[0]).length&&this.hide(t),i.toggleClass(P,e)}),Z("["+j+"]",W,J)}),o=s.fn.qtip=function(t,n,a){var h=(""+t).toLowerCase(),p=d,u=s.makeArray(arguments).slice(1),f=u[u.length-1],g=this[0]?s.data(this[0],q):d;return!arguments.length&&g||"api"===h?g:"string"==typeof t?(this.each(function(){var t=s.data(this,q);if(!t)return l;if(f&&f.timeStamp&&(t.cache.event=f),!n||"option"!==h&&"options"!==h)t[h]&&t[h].apply(t,u);else{if(a===i&&!s.isPlainObject(n))return p=t.get(n),c;t.set(n,a)}}),p!==d?p:this):"object"!=typeof t&&arguments.length?void 0:(g=N(s.extend(l,{},t)),this.each(function(t){var i,n;if(n=!(n=s.isArray(g.id)?g.id[t]:g.id)||n===c||n.length<1||o.api[n]?o.nextid++:n,(i=function(t,i,n){var a,h,p,u,f,g=s(e.body),m=t[0]===e?g:t,v=t.metadata?t.metadata(n.metadata):d,y="html5"===n.metadata.type&&v?v[n.metadata.name]:d,b=t.data(n.metadata.name||"qtipopts");try{b="string"==typeof b?s.parseJSON(b):b}catch(t){}if(h=(u=s.extend(l,{},o.defaults,n,"object"==typeof b?N(b):d,N(y||v))).position,u.id=i,"boolean"==typeof u.content.text){if(p=t.attr(u.content.attr),u.content.attr===c||!p)return c;u.content.text=p}if(h.container.length||(h.container=g),h.target===c&&(h.target=m),u.show.target===c&&(u.show.target=m),u.show.solo===l&&(u.show.solo=h.container.closest("body")),u.hide.target===c&&(u.hide.target=m),u.position.viewport===l&&(u.position.viewport=h.container),h.container=h.container.eq(0),h.at=new r(h.at,l),h.my=new r(h.my),t.data(q))if(u.overwrite)t.qtip("destroy",!0);else if(u.overwrite===c)return c;return t.attr(T,i),u.suppress&&(f=t.attr("title"))&&t.removeAttr("title").attr(L,f).attr("title",""),a=new O(t,u,i,!!p),t.data(q,a),a}(s(this),n,g))===c)return l;o.api[n]=i,s.each(C,function(){"initialize"===this.initialize&&this(i)}),i._assignInitialEvents(f)}))},s.qtip=O,o.api={},s.each({attr:function(t,e){if(this.length){var i=this[0],o=s.data(i,"qtip");if("title"===t&&o&&o.options&&"object"==typeof o&&"object"==typeof o.options&&o.options.suppress)return arguments.length<2?s.attr(i,L):(o&&"title"===o.options.content.attr&&o.cache.attr&&o.set("content.text",e),this.attr(L,e))}return s.fn["attr"+A].apply(this,arguments)},clone:function(t){var e=s.fn["clone"+A].apply(this,arguments);return t||e.filter("["+L+"]").attr("title",function(){return s.attr(this,L)}).removeAttr(L),e}},function(t,e){if(!e||s.fn[t+A])return l;var i=s.fn[t+A]=s.fn[t];s.fn[t]=function(){return e.apply(this,arguments)||i.apply(this,arguments)}}),s.ui||(s["cleanData"+A]=s.cleanData,s.cleanData=function(t){for(var e,i=0;(e=s(t[i])).length;i++)if(e.attr(T))try{e.triggerHandler("removeqtip")}catch(t){}s["cleanData"+A].apply(this,arguments)}),o.version="3.0.3",o.nextid=0,o.inactiveEvents=W,o.zindex=15e3,o.defaults={prerender:c,id:c,overwrite:l,suppress:l,content:{text:l,attr:"title",title:c,button:c},position:{my:"top left",at:"bottom right",target:c,container:c,viewport:c,adjust:{x:0,y:0,mouse:l,scroll:l,resize:l,method:"flipinvert flipinvert"},effect:function(t,e){s(this).animate(e,{duration:200,queue:c})}}
vendor: 5,176 bytes, line 126
126,show:{target:c,event:"mouseenter",effect:l,delay:90,solo:c,ready:c,autofocus:c},hide:{target:c,event:"mouseleave",effect:l,delay:0,fixed:c,inactive:c,leave:"window",distance:c},style:{classes:"",widget:c,width:c,height:c,def:l},events:{render:d,move:d,show:d,hide:d,toggle:d,visible:d,hidden:d,focus:d,blur:d}};var tt,et,it,st,ot,nt="margin",rt="border",at="color",ht="background-color",lt="transparent",ct=" !important",dt=!!e.createElement("canvas").getContext,pt=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i;function ut(t){return t.charAt(0).toUpperCase()+t.slice(1)}var ft,gt={},mt=["Webkit","O","Moz","ms"];function vt(t,e){return Math.ceil(parseFloat(function(t,e){var s,o,n=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+mt.join(n+" ")+n).split(" "),a=0;if(gt[e])return t.css(gt[e]);for(;s=r[a++];)if((o=t.css(s))!==i)return gt[e]=s,o}(t,e)))}function yt(t,e){this._ns="tip",this.options=e,this.offset=e.offset,this.size=[e.width,e.height],this.qtip=t,this.init(t)}dt?(st=t.devicePixelRatio||1,ot=(ft=e.createElement("canvas").getContext("2d")).backingStorePixelRatio||ft.webkitBackingStorePixelRatio||ft.mozBackingStorePixelRatio||ft.msBackingStorePixelRatio||ft.oBackingStorePixelRatio||1,it=st/ot):et=function(t,e,i){return"<qtipvml:"+t+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(e||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'},s.extend(yt.prototype,{init:function(t){var e,i;i=this.element=t.elements.tip=s("<div />",{class:q+"-tip"}).prependTo(t.tooltip),dt?((e=s("<canvas />").appendTo(this.element)[0].getContext("2d")).lineJoin="miter",e.miterLimit=1e5,e.save()):(e=et("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(e+e),t._bind(s("*",i).add(i),["click","mousedown"],function(t){t.stopPropagation()},this._ns)),t._bind(t.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(t){var e=this.qtip.elements.titlebar;return e&&(t.y===m||t.y===w&&this.element.position().top+this.size[1]/2+this.options.offset<e.outerHeight(l))},_parseCorner:function(t){var e=this.qtip.options.position.my;return t===c||e===c?t=c:t===l?t=new r(e.string()):t.string||((t=new r(t)).fixed=l),t},_parseWidth:function(t,e,i){var s=this.qtip.elements,o=rt+ut(e)+"Width";return(i?vt(i,o):vt(s.content,o)||vt(this._useTitle(t)&&s.titlebar||s.content,o)||vt(s.tooltip,o))||0},_parseRadius:function(t){var e=this.qtip.elements,i=rt+ut(t.y)+ut(t.x)+"Radius";return D.ie<9?0:vt(this._useTitle(t)&&e.titlebar||e.content,i)||vt(e.tooltip,i)||0},_invalidColour:function(t,e,i){var s=t.css(e);return!s||i&&s===t.css(i)||pt.test(s)?c:s},_parseColours:function(t){var e=this.qtip.elements,i=this.element.css("cssText",""),o=rt+ut(t[t.precedance])+ut(at),n=this._useTitle(t)&&e.titlebar||e.content,r=this._invalidColour,a=[];return a[0]=r(i,ht)||r(n,ht)||r(e.content,ht)||r(e.tooltip,ht)||i.css(ht),a[1]=r(i,o,at)||r(n,o,at)||r(e.content,o,at)||r(e.tooltip,o,at)||e.tooltip.css(o),s("*",i).add(i).css("cssText",ht+":"+lt+ct+";"+rt+":0"+ct+";"),a},_calculateSize:function(t){var e,i,s=t.precedance===u,o=this.options.width,n=this.options.height,r="c"===t.abbrev(),a=(s?o:n)*(r?.5:1),h=Math.pow,l=Math.round,c=Math.sqrt(h(a,2)+h(n,2)),d=[this.border/a*c,this.border/n*c];return d[2]=Math.sqrt(h(d[0],2)-h(this.border,2)),d[3]=Math.sqrt(h(d[1],2)-h(this.border,2)),i=[l((e=(c+d[2]+d[3]+(r?0:d[0]))/c)*o),l(e*n)],s?i:i.reverse()},_calculateTip:function(t,e,i){i=i||1;var s=(e=e||this.size)[0]*i,o=e[1]*i,n=Math.ceil(s/2),r=Math.ceil(o/2),a={br:[0,0,s,o,s,0],bl:[0,0,s,0,0,o],tr:[0,o,s,0,s,o],tl:[0,0,0,o,s,o],tc:[0,o,n,0,s,o],bc:[0,0,s,0,n,o],rc:[0,0,s,r,0,o],lc:[s,0,s,o,0,r]};return a.lt=a.br,a.rt=a.bl,a.lb=a.tr,a.rb=a.tl,a[t.abbrev()]},_drawCoords:function(t,e){t.beginPath(),t.moveTo(e[0],e[1]),t.lineTo(e[2],e[3]),t.lineTo(e[4],e[5]),t.closePath()},create:function(){var t=this.corner=(dt||D.ie)&&this._parseCorner(this.options.corner);return this.enabled=!!this.corner&&"c"!==this.corner.abbrev(),this.enabled&&(this.qtip.cache.corner=t.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(e,i){if(!this.enabled)return this;var o,n,a,h,d,x,_,C,q=this.qtip.elements,T=this.element,j=T.children(),z=this.options,M=this.size,W=z.mimic,I=Math.round;e||(e=this.qtip.cache.corner||this.corner),W===c?W=e:((W=new r(W)).precedance=e.precedance,"inherit"===W.x?W.x=e.x:"inherit"===W.y?W.y=e.y:W.x===W.y&&(W[e.precedance]=e[e.precedance])),n=W.precedance,e.precedance===p?this._swapDimensions():this._resetDimensions(),(o=this.color=this._parseColours(e))[1]!==lt?(C=this.border=this._parseWidth(e,e[e.precedance]),z.border&&C<1&&!pt.test(o[1])&&(o[0]=o[1]),this.border=C=z.border!==l?z.border:C):this.border=C=0,_=this.size=this._calculateSize(e),T.css({width:_[0],height:_[1],lineHeight:_[1]+"px"}),x=e.precedance===u?[I(W.x===v?C:W.x===b?_[0]-M[0]-C:(_[0]-M[0])/2),I(W.y===m?_[1]-M[1]:0)]:[I(W.x===v?_[0]-M[0]:0),I(W.y===m?C:W.y===y?_[1]-M[1]-C:(_[1]-M[1])/2)],dt?((a=j[0].getContext("2d")).restore(
vendor: 4,322 bytes, line 126
126),a.save(),a.clearRect(0,0,6e3,6e3),h=this._calculateTip(W,M,it),d=this._calculateTip(W,this.size,it),j.attr(f,_[0]*it).attr(g,_[1]*it),j.css(f,_[0]).css(g,_[1]),this._drawCoords(a,d),a.fillStyle=o[1],a.fill(),a.translate(x[0]*it,x[1]*it),this._drawCoords(a,h),a.fillStyle=o[0],a.fill()):(h="m"+(h=this._calculateTip(W))[0]+","+h[1]+" l"+h[2]+","+h[3]+" "+h[4]+","+h[5]+" xe",x[2]=C&&/^(r|b)/i.test(e.string())?8===D.ie?2:1:0,j.css({coordsize:_[0]+C+" "+_[1]+C,antialias:""+(W.string().indexOf(w)>-1),left:x[0]-x[2]*Number(n===p),top:x[1]-x[2]*Number(n===u),width:_[0]+C,height:_[1]+C}).each(function(t){var e=s(this);e[e.prop?"prop":"attr"]({coordsize:_[0]+C+" "+_[1]+C,path:h,fillcolor:o[0],filled:!!t,stroked:!t}).toggle(!(!C&&!t)),!t&&e.html(et("stroke",'weight="'+2*C+'px" color="'+o[1]+'" miterlimit="1000" joinstyle="miter"'))})),t.opera&&setTimeout(function(){q.tip.css({display:"inline-block",visibility:"visible"})},1),i!==c&&this.calculate(e,_)},calculate:function(t,e){if(!this.enabled)return c;var i,o,n=this,r=this.qtip.elements,a=this.element,h=this.options.offset,l={};return t=t||this.corner,i=t.precedance,e=e||this._calculateSize(t),o=[t.x,t.y],i===p&&o.reverse(),s.each(o,function(s,o){var a,c,d;o===w?(l[a=i===u?v:m]="50%",l[nt+"-"+a]=-Math.round(e[i===u?0:1]/2)+h):(a=n._parseWidth(t,o,r.tooltip),c=n._parseWidth(t,o,r.content),d=n._parseRadius(t),l[o]=Math.max(-n.border,s?c:h+(d>a?d:-a)))}),l[t[i]]-=e[i===p?0:1],a.css({margin:"",top:"",bottom:"",left:"",right:""}).css(l),l},reposition:function(t,e,s){if(this.enabled){var o,n,r=e.cache,a=this.corner.clone(),h=s.adjusted,d=e.options.position.adjust.method.split(" "),f=d[0],g=d[1]||d[0],x={left:c,top:c,x:0,y:0},C={};this.corner.fixed!==l&&(q(f,p,u,v,b),q(g,u,p,m,y),a.string()===r.corner.string()&&r.cornerTop===h.top&&r.cornerLeft===h.left||this.update(a,c)),(o=this.calculate(a)).right!==i&&(o.left=-o.right),o.bottom!==i&&(o.top=-o.bottom),o.user=this.offset,x.left=f===_&&!!h.left,x.left&&T(p,v,b),x.top=g===_&&!!h.top,x.top&&T(u,m,y),this.element.css(C).toggle(!(x.x&&x.y||a.x===w&&x.y||a.y===w&&x.x)),s.left-=o.left.charAt?o.user:f!==_||x.top||!x.left&&!x.top?o.left+this.border:0,s.top-=o.top.charAt?o.user:g!==_||x.left||!x.left&&!x.top?o.top+this.border:0,r.cornerLeft=h.left,r.cornerTop=h.top,r.corner=a.clone()}function q(t,e,i,s,o){t===_&&a.precedance===e&&h[s]&&a[i]!==w?a.precedance=a.precedance===p?u:p:t!==_&&h[s]&&(a[e]=a[e]===w?h[s]>0?s:o:a[e]===s?o:s)}function T(t,e,r){a[t]===w?C[nt+"-"+e]=x[t]=o[nt+"-"+e]-h[e]:(n=o[r]!==i?[h[e],-o[e]]:[-h[e],o[e]],(x[t]=Math.max(n[0],n[1]))>n[0]&&(s[e]-=h[e],x[e]=c),C[o[r]!==i?r:e]=x[t])}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),(tt=C.tip=function(t){return new yt(t,t.options.style.tip)}).initialize="render",tt.sanitize=function(t){if(t.style&&"tip"in t.style){var e=t.style.tip;"object"!=typeof e&&(e=t.style.tip={corner:e}),/string|boolean/i.test(typeof e.corner)||(e.corner=l)}},a.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(t){this.size=[t.width,t.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},s.extend(l,o.defaults,{style:{tip:{corner:l,mimic:c,width:6,height:6,border:l,offset:0}}});var bt,wt,xt="qtip-modal",_t="."+xt;function Ct(t,e){this.options=e,this._ns="-modal",this.qtip=t,this.init(t)}wt=new(wt=function(){var t,i,o,n=this,r={};function a(t){r.length<1&&t.length?t.not("body").blur():r.first().focus()}function h(e){if(o.is(":visible")){var i=s(e.target),n=t.tooltip,r=i.closest(M);(r.length<1?c:parseInt(r[0].style.zIndex,10)>parseInt(n[0].style.zIndex,10))||i.closest(M)[0]===n[0]||a(i)}}s.extend(n,{init:function(){return o=n.elem=s("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return c}}).hide(),s(e.body).bind("focusin"+_t,h),s(e).bind("keydown"+_t,function(e){t&&t.options.show.modal.escape&&27===e.keyCode&&t.hide(e)}),o.bind("click"+_t,function(e){t&&t.options.show.modal.blur&&t.hide(e)}),n},update:function(e){t=e,r=e.options.show.modal.stealfocus!==c?e.tooltip.find("*").filter(function(){return function(t){if(s.expr[":"].focusable)return s.expr[":"].focusable;
vendor: 8,917 bytes, line 126
126var e,i,o,n=!isNaN(s.attr(t,"tabindex")),r=t.nodeName&&t.nodeName.toLowerCase();return"area"===r?(i=(e=t.parentNode).name,!(!t.href||!i||"map"!==e.nodeName.toLowerCase())&&!!(o=s("img[usemap=#"+i+"]")[0])&&o.is(":visible")):/input|select|textarea|button|object/.test(r)?!t.disabled:"a"===r&&t.href||n}(this)}):[]},toggle:function(r,h,p){var u=r.tooltip,f=r.options.show.modal,g=f.effect,m=h?"show":"hide",v=o.is(":visible"),y=s(_t).filter(":visible:not(:animated)").not(u);return n.update(r),h&&f.stealfocus!==c&&a(s(":focus")),o.toggleClass("blurs",f.blur),h&&o.appendTo(e.body),o.is(":animated")&&v===h&&i!==c||!h&&y.length?n:(o.stop(l,c),s.isFunction(g)?g.call(o,h):g===c?o[m]():o.fadeTo(parseInt(p,10)||90,h?1:0,function(){h||o.hide()}),h||o.queue(function(t){o.css({left:"",top:""}),s(_t).length||o.detach(),t()}),i=h,t.destroyed&&(t=d),n)}}),n.init()}),s.extend(Ct.prototype,{init:function(t){var e=t.tooltip;if(!this.options.on)return this;t.elements.overlay=wt.elem,e.addClass(xt).css("z-index",o.modal_zindex+s(_t).length),t._bind(e,["tooltipshow","tooltiphide"],function(t,i,o){var n=t.originalEvent;if(t.target===e[0])if(n&&"tooltiphide"===t.type&&/mouse(leave|enter)/.test(n.type)&&s(n.relatedTarget).closest(wt.elem[0]).length)try{t.preventDefault()}catch(t){}else(!n||n&&"tooltipsolo"!==n.type)&&this.toggle(t,"tooltipshow"===t.type,o)},this._ns,this),t._bind(e,"tooltipfocus",function(t,i){if(!t.isDefaultPrevented()&&t.target===e[0]){var n=s(_t),r=o.modal_zindex+n.length,a=parseInt(e[0].style.zIndex,10);wt.elem[0].style.zIndex=r-1,n.each(function(){this.style.zIndex>a&&(this.style.zIndex-=1)}),n.filter("."+E).qtip("blur",t.originalEvent),e.addClass(E)[0].style.zIndex=r,wt.update(i);try{t.preventDefault()}catch(t){}}},this._ns,this),t._bind(e,"tooltiphide",function(t){t.target===e[0]&&s(_t).filter(":visible").not(e).last().qtip("focus",t)},this._ns,this)},toggle:function(t,e,i){if(t&&t.isDefaultPrevented())return this;wt.toggle(this.qtip,!!e,i)},destroy:function(){this.qtip.tooltip.removeClass(xt),this.qtip._unbind(this.qtip.tooltip,this._ns),wt.toggle(this.qtip,c),delete this.qtip.elements.overlay}}),(bt=C.modal=function(t){return new Ct(t,t.options.show.modal)}).sanitize=function(t){t.show&&("object"!=typeof t.show.modal?t.show.modal={on:!!t.show.modal}:void 0===t.show.modal.on&&(t.show.modal.on=l))},o.modal_zindex=o.zindex-200,bt.initialize="render",a.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},s.extend(l,o.defaults,{show:{modal:{on:c,effect:l,blur:l,stealfocus:l,escape:l}}}),C.viewport=function(i,s,o,n,r,a,h){var l,d,C,q,T,j,z,M,W=o.target,I=i.elements.tooltip,k=o.my,E=o.at,P=o.adjust,S=P.method.split(" "),A=S[0],L=S[1]||S[0],D=o.viewport,O=o.container,B={left:0,top:0};if(!D.jquery||W[0]===t||W[0]===e.body||"none"===P.method)return B;function F(t,e,i,o,n,r,a,h,l){var c=s[n],p=k[t],u=E[t],g=i===_,m=p===n?l:p===r?-l:-l/2,v=u===n?h:u===r?-h:-h/2,y=z[n]+M[n]-(q?0:C[n]),b=y-c,W=c+l-(a===f?T:j)-y,I=m-(k.precedance===t||p===k[e]?v:0)-(u===w?h/2:0);return g?(I=(p===n?1:-1)*m,s[n]+=b>0?b:W>0?-W:0,s[n]=Math.max(-C[n]+M[n],c-I,Math.min(Math.max(-C[n]+M[n]+(a===f?T:j),c+I),s[n],"center"===p?c-m:1e9))):(o*=i===x?2:0,b>0&&(p!==n||W>0)?(s[n]-=I+o,d.invert(t,n)):W>0&&(p!==r||b>0)&&(s[n]-=(p===w?-I:I)+o,d.invert(t,r)),s[n]<z[n]&&-s[n]>W&&(s[n]=c,d=k.clone())),s[n]-c}return C=O.offset()||B,q="static"===O.css("position"),l="fixed"===I.css("position"),T=D[0]===t?D.width():D.outerWidth(c),j=D[0]===t?D.height():D.outerHeight(c),z={left:l?0:D.scrollLeft(),top:l?0:D.scrollTop()},M=D.offset()||B,"shift"===A&&"shift"===L||(d=k.clone()),B={left:"none"!==A?F(p,u,A,P.x,v,b,f,n,a):0,top:"none"!==L?F(u,p,L,P.y,m,y,g,r,h):0,my:d}},C.polys={polygon:function(t,e){var i,s,o,n={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:c},r=0,a=[],h=1,l=1,d=0,p=0;for(r=t.length;r--;)(i=[parseInt(t[--r],10),parseInt(t[r+1],10)])[0]>n.position.right&&(n.position.right=i[0]),i[0]<n.position.left&&(n.position.left=i[0]),i[1]>n.position.bottom&&(n.position.bottom=i[1]),i[1]<n.position.top&&(n.position.top=i[1]),a.push(i);if(s=n.width=Math.abs(n.position.right-n.position.left),o=n.height=Math.abs(n.position.bottom-n.position.top),"c"===e.abbrev())n.position={left:n.position.left+n.width/2,top:n.position.top+n.height/2};else{for(;s>0&&o>0&&h>0&&l>0;)for(s=Math.floor(s/2),o=Math.floor(o/2),e.x===v?h=s:e.x===b?h=n.width-s:h+=Math.floor(s/2),e.y===m?l=o:e.y===y?l=n.height-o:l+=Math.floor(o/2),r=a.length;r--&&!(a.length<2);)d=a[r][0]-n.position.left,p=a[r][1]-n.position.top,(e.x===v&&d>=h||e.x===b&&d<=h||e.x===w&&(d<h||d>n.width-h)||e.y===m&&p>=l||e.y===y&&p<=l||e.y===w&&(p<l||p>n.height-l))&&a.splice(r,1);n.position={left:a[0][0],top:a[0][1]}}return n},rect:function(t,e,i,s){return{width:Math.abs(i-t),height:Math.abs(s-e),position:{left:Math.min(t,i),top:Math.min(e,s)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(t,e,i,s,o){var n=C.polys._angles[o.abbrev()],r=0===n?0:i*Math.cos(n*Math.PI),a=s*Math.sin(n*Math.PI);return{width:2*i-Math.abs(r),height:2*s-Math.abs(a),position:{left:t+r,top:e+a},adjustable:c}},circle:function(t,e,i,s){return C.polys.ellipse(t,e,i,i,s)}},C.svg=function(t,i,o){for(var n,r,a,h,l,d,p,u,f,g=i[0],m=s(g.ownerSVGElement),v=g.ownerDocument,y=(parseInt(i.css("stroke-width"),10)||0)/2;!g.getBBox;)g=g.parentNode;if(!g.getBBox||!g.parentNode)return c;switch(g.nodeName){case"ellipse":case"circle":u=C.polys.ellipse(g.cx.baseVal.value,g.cy.baseVal.value,(g.rx||g.r).baseVal.value+y,(g.ry||g.r).baseVal.value+y,o);break;case"line":case"polygon":case"polyline":for(u=[],d=-1,h=(p=g.points||[{x:g.x1.baseVal.value,y:g.y1.baseVal.value},{x:g.x2.baseVal.value,y:g.y2.baseVal.value}]).numberOfItems||p.length;++d<h;)l=p.getItem?p.getItem(d):p[d],u.push.apply(u,[l.x,l.y]);u=C.polys.polygon(u,o);break;default:u={width:(u=g.getBBox()).width,height:u.height,position:{left:u.x,top:u.y}}}return f=u.position,(m=m[0]).createSVGPoint&&(r=g.getScreenCTM(),(p=m.createSVGPoint()).x=f.left,p.y=f.top,a=p.matrixTransform(r),f.left=a.x,f.top=a.y),v!==e&&"mouse"!==t.position.target&&(n=s((v.defaultView||v.parentWindow).frameElement).offset())&&(f.left+=n.left,f.top+=n.top),v=s(v),f.left+=v.scrollLeft(),f.top+=v.scrollTop(),u},C.imagemap=function(t,e,i){e.jquery||(e=s(e));var o,n,r,a,h,l=(e.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),d=s('img[usemap="#'+e.parent("map").attr("name")+'"]'),p=s.trim(e.attr("coords")).replace(/,$/,"").split(",");if(!d.length)return c;if("polygon"===l)a=C.polys.polygon(p,i);else{if(!C.polys[l])return c;for(r=-1,h=p.length,n=[];++r<h;)n.push(parseInt(p[r],10));a=C.polys[l].apply(this,n.concat(i))}return(o=d.offset()).left+=Math.ceil((d.outerWidth(c)-d.width())/2),o.top+=Math.ceil((d.outerHeight(c)-d.height())/2),a.position.left+=o.left,a.position.top+=o.top,a};function qt(t){this._ns="ie6",this.qtip=t,this.init(t)}s.extend(qt.prototype,{_scroll:function(){var e=this.qtip.elements.overlay;e&&(e[0].style.top=s(t).scrollTop()+"px")},init:function(i){var o=i.tooltip;s("select, object").length<1&&(this.bgiframe=i.elements.bgiframe=s('<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>').appendTo(o),i._bind(o,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=s("<div/>",{id:q+"-rcontainer"}).appendTo(e.body),i.elements.overlay&&i.elements.overlay.addClass("qtipmodal-ie6fix")&&(i._bind(t,["scroll","resize"],this._scroll,this._ns,this),i._bind(o,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var t,e,i=this.qtip.tooltip,s={height:i.outerHeight(c),width:i.outerWidth(c)},o=this.qtip.plugins.tip,n=this.qtip.elements.tip;e={left:-(e=parseInt(i.css("borderLeftWidth"),10)||0),top:-e},o&&n&&(e[(t="x"===o.corner.precedance?[f,v]:[g,m])[1]]-=n[t[0]]()),this.bgiframe.css(e).css(s)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var t,e,i,s,o=this.qtip.tooltip,n=this.qtip.options.style,r=this.qtip.options.position.container;return this.qtip.drawing=1,n.height&&o.css(g,n.height),n.width?o.css(f,n.width):(o.css(f,"").appendTo(this.redrawContainer),(e=o.width())%2<1&&(e+=1),t=((i=o.css("maxWidth")||"")+(s=o.css("minWidth")||"")).indexOf("%")>-1?r.width()/100:0,e=(i=(i.indexOf("%")>-1?t:1*parseInt(i,10))||e)+(s=(s.indexOf("%")>-1?t:1*parseInt(s,10))||0)?Math.min(Math.max(e,s),i):e,o.css(f,Math.round(e)).appendTo(r)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([t,this.qtip.tooltip],this._ns)}}),(C.ie6=function(t){return 6===D.ie?new qt(t):c}).initialize="render",a.ie6={"^content|style$":function(){this.redraw()}}})}(window,document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.