PageSourceSearch

https://sedonarealty.com/wp-content/plugins/flexmls-idx/assets/js/main.js?ver=4.1

js sedonarealty.com collected 2026-09-27 01:18:20 UTC 219,246 bytes, 1 lines download raw bytes

1!function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var i={};t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=19)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"LocationSearch",function(){return n});var n=function(e){function t(t,i){return this.$element=e(t),"undefined"===typeof i&&(i={}),this.omniSearchUrl="//apps.flexmls.com/quick_launch/omni",this.portalSlug=i.portalSlug,this.init(),this}return t.prototype={constructor:t,init:function(){var t=this;this.s2=e(this.$element).select2({width:"100%",ajax:{url:t.omniSearchUrl,dataType:"jsonp",quietMillis:500,data:t.ajaxData.bind(t),processResults:t.processAjaxResults.bind(t),cache:!0},placeholder:"Enter an Address, City, Zip or MLS#",minimumInputLength:3,formatInputTooShort:function(e,t){return"Please enter "+(t-e.length)+" or more characters"}}),this.addAccessibilityAttributes()},addAccessibilityAttributes:function(){var t=this;e(this.$element).on("select2:open",function(){setTimeout(function(){var i=e(".select2-search__field");i.length&&(i.attr("aria-label","Search for an address, city, zip code, or MLS number"),i.attr("aria-describedby","location-help-"+t.$element.attr("id").replace("location-search","")))},50)}),setTimeout(function(){var i=e(".select2-search__field");if(i.length){i.attr("aria-label","Search for an address, city, zip code, or MLS number");var n=t.$element.attr("id");n&&i.attr("aria-describedby","location-help-"+n.replace("location-search",""))}},100)},selectedValues:function(){var t=e(this.$element).select2("data"),i=[];return Array.isArray(t)||(t=[t]),t.forEach(function(e){i.push({id:e.id,text:e.text,fieldName:e.id.split("_")[0],value:e.id.split("_")[1]})}),i},ajaxData:function(e){var t={_q:e.term,_lo:!1};return"undefined"!==typeof this.portalSlug&&(t.portal_slug=this.portalSlug),t},processAjaxResults:function(e,t){var i=this,n=[];return e.D.Results.forEach(function(e){var t,o,a,s,r;"Field"==e.Type?(t=e.Field.Id,o=e.Field.Name,a="",s=e.Field.Value,r=e.Field.SparkQl):"Listing"==e.Type&&(t="ListingId",o=e.Listing.Name,a=e.Listing.Address,s=e.Listing.Number,r=e.Listing.SparkQl),s&&n.push({id:t+"_"+s,text:i.getDisplayText(t,a,s,o),fieldName:t,value:s,sparkQl:r})}),{results:n}},getDisplayText:function(e,t,i,n){return"ListingId"===e?t+" / "+i+" (MLS #)":"polygon"===i.substr(0,7)||"radius"===i.substr(0,6)?"Drawn Shape":i+" ("+n+")"}},t}(jQuery)},,,function(e,t){!function(e){e.fn.loopedCarousel=function(t){var i={container:".flexmls_connect__container",slides:".flexmls_connect__slides",pagination:".pagination",autoStart:0,slidespeed:300,fadespeed:400,items:3,grid_size:1,padding:3,showPagination:!0,vertical:!1,slideshowAutoLoadLimit:5,pauseOnHover:!0};this.each(function(){function n(){sliderIntervalID=setInterval(function(){!1===b&&(o()?s():p("next",!0))},v.autoStart)}function o(){return needToLoad=k>e(".flexmls_connect__slide_page",g).length,needToLoad}function a(){var t=T+1;return e(".flexmls_connect__slide_page",g).length>=t+1}function s(){e.ajax({type:"GET",url:fmcAjax.ajaxurl+"?settings="+g.attr("data-connect-settings"),dataType:"html",data:{action:"fmcPhotos_additional_slides",page:T+2,nonce:"undefined"!==typeof fmcAjax&&fmcAjax.nonce?fmcAjax.nonce:""},success:function(t){e(".flexmls_connect__slides",g).append(t),e("div.flexmls_connect__slides div a.flexmls_popup",g).not("div.flexmls_connect__slides div a.cboxElement").each(function(t){flexmls_connect.establishColorbox(e(this))}),v.showPagination&&(l(),d()),e("span.pleasewait",g).hide(),p("next",!0)},error:function(e,t,i){C++}})}function r(){e(".pagination li",g).removeClass("active"),e(".pagination li a",g).attr({tabindex:"-1","aria-pressed":"false","aria-selected":"false"}),e(".pagination li:eq("+T+")",g).addClass("active"),e(".pagination li:eq("+T+") a",g).attr({tabindex:"0","aria-pressed":"true","aria-selected":"true"})}function l(){if(v.showPagination){for(var t=e(".flexmls_connect__slide_page",g).length,i=e("<ul>").addClass("pagination").attr({role:"tablist","aria-label":"Slideshow pagination"}),n=0;n<t;n++){var o=n===T,a=e("<li>").attr({role:"presentation"}).append(e("<a>").attr({rel:n,href:"#",role:"button",tabindex:o?"0":"-1","aria-label":"Go to slide "+(n+1),"aria-pressed":o?"true":"false","aria-selected":o?"true":"false"}).text(n+1));o&&a.addClass("active"),i.append(a)}e(".pagination",g).remove(),e("a.next",g).after(i)}}function c(){if(0==e("span.pleasewait",g).length){var t=e("<span class='pleasewait'>Loading Listings...</span>").appendTo(g),i=e(".flexmls_connect__container",g),n=i.position();e("span.pleasewait",g).css({top:(i.height()-t.height())/2+n.top,left
1:(i.width()-t.width())/2+n.left})}else e("span.pleasewait",g).show()}function u(){clearInterval(sliderIntervalID)}function d(){11*e("ul.pagination li",g).length>e(v.container,g).width()-e(".previous",g).width()-e(".next",g).width()-10&&e("ul.pagination",g).hide()}function p(t,i){page_size=v.vertical?y:x;var n=T;switch(t){case"next":T+1<e(".flexmls_connect__slide_page",g).length?n++:n=0;break;case"prev":T>0&&n--;break;case"fade":n=i}n!=T&&!1===b&&(b=!0,e(".flexmls_connect__slide_page:eq("+T+")",g).fadeOut(v.fadespeed,function(){var t=e(".flexmls_connect__slide_page:eq("+n+")",g);m(t),t.fadeIn(v.fadespeed,function(){b=!1})}),T=n,r())}function f(){var t=e(".flexmls_connect__slideshow_image:visible",g).first(),i=e(t).attr("style","height: auto;").parent().width();i>0?(v.height=3*i/4,m()):setTimeout(f,10)}function m(t){var i=t||g;v.height>0?e(".flexmls_connect__slideshow_image",i).each(function(){e(this).css("height",v.height)}):f()}var g=e(this),v=e.extend({},i,t),x=v.items,y=v.grid_size,_=e(v.slides,g).children().length,b=!1,T=0,k=p
1arseInt(g.attr("data-connect-total-pages")),C=0;if(function(){e(".flexmls_connect__slide_page",g).hide(),e(".flexmls_connect__slide_page:eq("+T+")",g).show(0,function(){f()})}(),e(window).resize(function(){f()}),parseInt(g.attr("data-connect-total-pages"))<2)for(v.showPagination=!1,e(".previous, .next",g).css("display","none");x*y-x>=_;)y--;if(l(),0===_&&(h=(e(this).hasClass("tall")?165:145)+v.padding,w=134+v.padding),0===_)return void e(v.container,g).append(e("<div class='flexmls_connect__empty_message'>").html("No Listings Found"));e(".next",g).click(function(){if(v.autoStart&&u(),!1===b){if(T+1>k)return!1;a()?p("next",!0):o()&&(c(),s())}return!1}),e(".previous",g).click(function(){return!1===b&&(p("prev",!0),v.autoStart&&u()),!1}),e(g).on("click",v.pagination+" li a",function(t){return t.preventDefault(),e(this).hasClass("active")||!1!==b||(p("fade",parseInt(e(this).attr("rel"))),v.autoStart&&u()),!1}),e(g).on("keydown",v.pagination+" li a",function(t){if(32===t.which||13===t.which)return t.preventDefault(),e(this).hasClass("active")||!1!==b||(p("fade",parseInt(e(this).attr("rel"))),v.autoStart&&u()),!1}),v.showPagination&&d(),v.autoStart&&n(),v.pauseOnHover&&0!=v.autoStart&&e(v.slides).hover(u,n)})}}(jQuery)},,,,,,,,,,,,,,,,function(e,t,i){i(20),i(0),i(21),i(23),i(24),i(3),i(25),i(26),i(27)},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){function t(e,t){e.transform.baseVal.clear(),t&&t.forEach(function(t){e.transform.baseVal.appendItem(t)})}var i=function(t,i){var n=i.getElementsByClassName(t)[0];if(!n&&((n=document.createElement("canvas")).className=t,n.style.direction="ltr",n.style.position="absolute",n.style.left="0px",n.style.top="0px",i.appendChild(n),!n.getContext))throw new Error("Canvas is not available.");this.element=n;var o=this.context=n.getContext("2d");this.pixelRatio=e.plot.browser.getPixelRatio(o);var a=e(i).width(),s=e(i).height();this.resize(a,s),this.SVGContainer=null,this.SVG={},this._textCache={}};i.prototype.resize=function(e,t){e=e<10?10:e,t=t<10?10:t;var i=this.element,n=this.context,o=this.pixelRatio;this.width!==e&&(i.width=e*o,i.style.width=e+"px",this.width=e),this.height!==t&&(i.height=t*o,i.style.height=t+"px",this.height=t),n.restore(),n.save(),n.scale(o,o)},i.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},i.prototype.render=function(){var e=this._textCache;for(var t in e)if(hasOwnProperty.call(e,t)){var i=this.getSVGLayer(t),n=e[t],o=i.style.display;for(var a in i.style.display="none",n)if(hasOwnProperty.call(n,a)){var s=n[a];for(var r in s)if(hasOwnProperty.call(s,r)){for(var l,c=s[r],u=c.positions,h=0;u[h];h++)if((l=u[h]).active)l.rendered||(i.appendChild(l.element),l.rendered=!0);else if(u.splice(h--,1),l.rendered){for(;l.element.firstChild;)l.element.removeChild(l.element.firstChild);l.element.parentNode.removeChild(l.element)}0===u.length&&(c.measured?c.measured=!1:delete s[r])}}i.style.display=o}},i.prototype.getSVGLayer=function(e){var t,i=this.SVG[e];return i||(this.SVGContainer?t=this.SVGContainer.firstChild:(this.SVGContainer=document.createElement("div"),this.SVGContainer.className="flot-svg",this.SVGContainer.style.position="absolute",this.SVGContainer.style.top="0px",this.SVGContainer.style.left="0px",this.SVGContainer.style.height="100%",this.SVGContainer.style.width="100%",this.SVGContainer.style.pointerEvents="none",this.element.parentNode.appendChild(this.SVGContainer),(t=document.createElementNS("http://www.w3.org/2000/svg","svg")).style.width="100%",t.style.height="100%",this.SVGContainer.appendChild(t)),(i=document.createElementNS("http://www.w3.org/2000/svg","g")).setAttribute("class",e),i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.bottom="0px",i.style.right="0px",t.appendChild(i),this.SVG[e]=i),i},i.prototype.getTextInfo=function(e,t,i,a,s){var r,l,c,u;t=""+t,r="object"===o(i)?i.style+" "+i.variant+" "+i.weight+" "+i.size+"px/"+i.lineHeight+"px "+i.family:i,null==(l=this._textCache[e])&&(l=this._textCache[e]={}),null==(c=l[r])&&(c=l[r]={});var h=t.replace(/0|1|2|3|4|5|6|7|8|9/g,"0");if(!(u=c[h])){var d=document.createElementNS("http://www.w3.org/2000/svg","text");if(-1!==t.indexOf("<br>"))n(t,d,-9999);else{var p=document.createTextNode(t);d.appendChild(p)}d.style.position="absolute",d.style.maxWidth=s,d.setAttributeNS(null,"x",-9999),d.setAttributeNS(null,"y",-9999),"object"===o(i)?(d.style.font=r,d.style.fill=i.fill):"string"==typeof i&&d.setAttribute("class",i),this.get
vendor: 100,539 bytes, line 1
1SVGLayer(e).appendChild(d);var f=d.getBBox();for(u=c[h]={width:f.width,height:f.height,measured:!0,element:d,positions:[]};d.firstChild;)d.removeChild(d.firstChild);d.parentNode.removeChild(d)}return u.measured=!0,u},i.prototype.addText=function(e,i,o,a,s,r,l,c,u,h){var d=this.getTextInfo(e,a,s,r,l),p=d.positions;"center"===c?i-=d.width/2:"right"===c&&(i-=d.width),"middle"===u?o-=d.height/2:"bottom"===u&&(o-=d.height),o+=.75*d.height;for(var f,m=0;p[m];m++){if((f=p[m]).x===i&&f.y===o&&f.text===a)return f.active=!0,void t(f.element,h);if(!1===f.active)return f.active=!0,-1!==(f.text=a).indexOf("<br>")?(o-=.25*d.height,n(a,f.element,i)):f.element.textContent=a,f.element.setAttributeNS(null,"x",i),f.element.setAttributeNS(null,"y",o),f.x=i,f.y=o,void t(f.element,h)}f={active:!0,rendered:!1,element:p.length?d.element.cloneNode():d.element,text:a,x:i,y:o},p.push(f),-1!==a.indexOf("<br>")?(o-=.25*d.height,n(a,f.element,i)):f.element.textContent=a,f.element.setAttributeNS(null,"x",i),f.element.setAttributeNS(null,"y",o),f.element.style.textAlign=c,t(f.element,h)};var n=function(e,t,i){var n,o,a,s=e.split("<br>");for(o=0;o<s.length;o++)t.childNodes[o]?n=t.childNodes[o]:(n=document.createElementNS("http://www.w3.org/2000/svg","tspan"),t.appendChild(n)),n.textContent=s[o],a=1*o+"em",n.setAttributeNS(null,"dy",a),n.setAttributeNS(null,"x",i)};i.prototype.removeText=function(e,t,i,n,o,a){var s,r;if(null==n){var l=this._textCache[e];if(null!=l)for(var c in l)if(hasOwnProperty.call(l,c)){var u=l[c];for(var h in u)if(hasOwnProperty.call(u,h)){var d=u[h].positions;d.forEach(function(e){e.active=!1})}}}else(d=(s=this.getTextInfo(e,n,o,a)).positions).forEach(function(e){r=i+.75*s.height,e.x===t&&e.y===r&&e.text===n&&(e.active=!1)})},i.prototype.clearCache=function(){var e=this._textCache;for(var t in e)if(hasOwnProperty.call(e,t))for(var i=this.getSVGLayer(t);i.firstChild;)i.removeChild(i.firstChild);this._textCache={}},window.Flot||(window.Flot={}),window.Flot.Canvas=i}(jQuery),function(e){e.color={},e.color.make=function(t,i,n,o){var a={};return a.r=t||0,a.g=i||0,a.b=n||0,a.a=null!=o?o:1,a.add=function(e,t){for(var i=0;i<e.length;++i)a[e.charAt(i)]+=t;return a.normalize()},a.scale=function(e,t){for(var i=0;i<e.length;++i)a[e.charAt(i)]*=t;return a.normalize()},a.toString=function(){return 1<=a.a?"rgb("+[a.r,a.g,a.b].join(",")+")":"rgba("+[a.r,a.g,a.b,a.a].join(",")+")"},a.normalize=function(){function e(e,t,i){return t<e?e:i<t?i:t}return a.r=e(0,parseInt(a.r),255),a.g=e(0,parseInt(a.g),255),a.b=e(0,parseInt(a.b),255),a.a=e(0,a.a,1),a},a.clone=function(){return e.color.make(a.r,a.b,a.g,a.a)},a.normalize()},e.color.extract=function(t,i){var n;do{if(""!==(n=t.css(i).toLowerCase())&&"transparent"!==n)break;t=t.parent()}while(t.length&&!e.nodeName(t.get(0),"body"));return"rgba(0, 0, 0, 0)"===n&&(n="transparent"),e.color.parse(n)},e.color.parse=function(i){var n,o=e.color.make;if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(i))return o(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10));if(n=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(i))return o(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4]));if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)%\s*,\s*([0-9]+(?:\.[0-9]+)?)%\s*,\s*([0-9]+(?:\.[0-9]+)?)%\s*\)/.exec(i))return o(2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]));if(n=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)%\s*,\s*([0-9]+(?:\.[0-9]+)?)%\s*,\s*([0-9]+(?:\.[0-9]+)?)%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(i))return o(2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]),parseFloat(n[4]));if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(i))return o(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16));if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(i))return o(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16));var a=e.trim(i).toLowerCase();return"transparent"===a?o(255,255,255,0):o((n=t[a]||[0,0,0])[0],n[1],n[2])};var t={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(e){function t(t){var i,n=[],o=e.plot.saturated.saturate(e.plot.saturated.floorInBase(t.min,t.tickSize)),a=0,s=Number.NaN;for(o===-Number.MAX_VALUE&&(n.push(o),o=e.plot.saturated.floorInBase(t.min+t.tickSize,t.tickSize));i=s,s=e.plot.saturated.multiplyAdd(t.tickSize,a,o),n.push(s),++a,s<t.max&&s!==i;);return n}function i(e,t,i){var o=t.tickDecimals;if(-1!==(""+e).indexOf("e"))return n(e,t,i);0<i&&(t.tickDecimals=i);var a=t.tickDecimals?parseFloat("1e"+t.tickDecimals):1,s=""+Math.round(e*a)/a;if(null!=t.tickDecimals){var r=s.indexOf("."),l=-1===r?0:s.length-r-1;l<t.tickDecimals&&(s=(l?s:s+".")+(""+a).substr(1,t.tickDecimals-l))}return t.tickDecimals=o,s}function n(e,t,i){var n=(""+e).indexOf("e"),o=parseInt((""+e).substr(n+1)),s=-1!==n?o:0<e?Math.floor(Math.log(e)/Math.LN10):0,r=parseFloat("1e"+s),l=e/r;if(i){return(e/r).toFixed(a(e,i))+"e"+s}return 0<t.tickDecimals?l.toFixed(a(e,t.tickDecimals))+"e"+s:l.toFixed()+"e"+s}function a(e,t){var i=Math.log(Math.abs(e))*Math.LOG10E,n=Math.abs(i+t);return n<=20?Math.floor(n):20}function s(n,a,s,l){function c(e,t){t=[Z].concat(t);for(var i=0;i<e.length;++i)e[i].apply(this,t)}function u(t){var i=D;D=function(t){for(var i=[],n=0;n<t.length;++n){var o=e.extend(!0,{},R.series);null!=t[n].data?(o.data=t[n].data,delete t[n].data,e.extend(!0,o,t[n]),t[n].data=o.data):o.data=t[n],i.push(o)}return i}(t),function(){var t,i=D.length,n=-1;for(t=0;t<D.length;++t){var o=D[t].color;null!=o&&(i--,"number"==typeof o&&n<o&&(n=o))}i<=n&&(i=n+1);var a,s=[],r=R.colors,l=r.length,c=0,u=Math.max(0,D.length-i);for(t=0;t<i;t++)a=e.color.parse(r[(u+t)%l]||"#666"),t%l==0&&t&&(c=0<=c?c<.5?-c-.2:0:-c),s[t]=a.scale("rgb",1+c);var d,f=0;for(t=0;t<D.length;++t){if(null==(d=D[t]).color?(d.color=s[f].toString(),++f):"number"==typeof d.color&&(d.color=s[d.color].toString()),null==d.lines.show){var m,g=!0;for(m in d)if(d[m]&&d[m].show){g=!1;break}g&&(d.lines.show=!0)}null==d.lines.zero&&(d.lines.zero=!!d.lines.fill),d.xaxis=p(B,h(d,"x")),d.yaxis=p(V,h(d,"y"))}}(),function(t){function i(e,t,i){t<e.datamin&&t!==-1/0&&(e.datamin=t),i>e.datamax&&i!==1/0&&(e.datamax=i)}var n,o,a,s,r,l,u,h,p,f,m,g,v=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY;for(e.each(d(),function(e,t){!0!==t.options.growOnly?(t.datamin=v,t.datamax=x):(void 0===t.datamin&&(t.datamin=v),void 0===t.datamax&&(t.datamax=x)),t.used=!1}),n=0;n<D.length;++n)(r=D[n]).datapoints={points:[]},0===r.datapoints.points.length&&(r.datapoints.points=function(e,t){return e&&e[t]&&e[t].datapoints&&e[t].datapoints.points?e[t].datapoints.points:[]}(t,n)),c(U.processRawData,[r,r.data,r.datapoints]);for(n=0;n<D.length;++n){if(r=D[n],m=r.data,!(g=r.datapoints.format)){if((g=[]).push({x:!0,y:!1,number:!0,required:!0,computeRange:"none"!==r.xaxis.options.autoScale,defaultValue:null}),g.push({x:!1,y:!0,number:!0,required:!0,computeRange:"none"!==r.yaxis.options.autoScale,defaultValue:null}),r.stack||r.bars.show||r.lines.show&&r.lines.fill){2<(null!=r.datapoints.pointsize?r.datapoints.pointsize:r.data&&r.data[0]&&r.data[0].length?r.data[0].length:3)&&g.push({x:!1,y:!0,number:!0,required:!1,computeRange:"none"!==r.yaxis.options.autoScale,defaultValue:0})}r.datapoints.format=g}if(r.xaxis.used=r.yaxis.used=!0,null==r.datapoints.pointsize){for(r.datapoints.pointsize=g.length,u=r.datapoints.pointsize,l=r.datapoints.points,r.lines.show&&r.lines.steps,o=a=0;o<m.length;++o,a+=u){var y=null==(f=m[o]);if(!y)for(s=0;s<u;++s)h=f[s],(p=g[s])&&(p.number&&null!=h&&(h=+h,isNaN(h)&&(h=null)),null==h&&(p.required&&(y=!0),null!=p.defaultValue&&(h=p.defaultValue))),l[a+s]=h;if(y)for(s=0;s<u;++s)null!=(h=l[a+s])&&(p=g[s]).computeRange&&(p.x&&i(r.xaxis,h,h),p.y&&i(r.yaxis,h,h)),l[a+s]=null}l.length=a}}for(n=0;n<D.length;++n)r=D[n],c(U.processDatapoints,[r,r.datapoints]);for(n=0;n<D.length;++n)if(r=D[n],!(g=r.datapoints.format).every(function(e){return!e.computeRange})){var _=Z.adjustSeriesDataRange(r,Z.computeRangeForDataSeries(r));c(U.adjustSeriesDataRange,[r,_]),i(r.xaxis,_.xmin,_.xmax),i(r.yaxis,_.ymin,_.ymax)}e.each(d(),function(e,t){t.datamin===v&&(t.datamin=null),t.datamax===x&&(t.datamax=null)})}(i)}function h(e,t){var i=e[t+"axis"];return"object"===o(i)&&(i=i.n),"number"!=typeof i&&(i=1),i}function d(){return B.concat(V).filter(function(e){return e})}function p(t,i){return t[i-1]||(t[i-1]={n:i,direction:t===B?"x":"y",options:e.extend(!0,{},t===B?R.xaxis:R.yaxis)}),t[i-1]}function f(){J&&clearTimeout(J),c(U.shutdown,[$])}function m(t){function i(e){return e}var n,o,a=t.options.transform||i,s=t.options.inverseTransform;o="x"===t.direction?(n=isFinite(a(t.max)-a(t.min))?t.scale=G/Math.abs(a(t.max)-a(t.min)):t.scale=1/Math.abs(e.plot.saturated.delta(a(t.min),a(t.max),G)),Math.min(a(t.max),a(t.min))):(n=-(n=isFinite(a(t.max)-a(t.min))?t.scale=X/Math.abs(a(t.max)-a(t.min)):t.scale=1/Math.abs(e.plot.saturated.delta(a(t.min),a(t.max),X))),Math.max(a(t.max),a(t.min))),t.p2c=a===i?function(e){return isFinite(e-o)?(e-o)*n:(e/4-o/4)*n*4}:function(e){var t=a(e);return isFinite(t-o)?(t-o)*n:(t/4-o/4)*n*4},t.c2p=s?function(e){return s(o+e/n)}:function(e){return o+e/n}}function g(t){c(U.axisReserveSpace,[t]);var i=t.labelWidth,n=t.labelHeight,o=t.options.position,a="x"===t.direction,s=t.options.tickLength,r=t.options.showTicks,l=t.options.showMinorTicks,u=t.options.gridLines,h=R.grid.axisMargin,d=R.grid.labelMargin,p=!0,f=!0,m=!1;e.each(a?B:V,function(e,i){i&&(i.show||i.reserveSpace)&&(i===t?m=!0:i.options.position===o&&(m?f=!1:p=!1))}),f&&(h=0),null==s&&(s=te),null==r&&(r=!0),null==l&&(l=!0),null==u&&(u=!!p),isNaN(+s)||(d+=r?+s:0),a?(n+=d,"bottom"===o?(Y.bottom+=n+h,t.box={top:W.height-Y.bottom,height:n}):(t.box={top:Y.top+h,height:n},Y.top+=n+h)):(i+=d,"left"===o?(t.box={left:Y.left+h,width:i},Y.left+=i+h):(Y.right+=i+h,t.box={left:W.width-Y.right,width:i})),t.position=o,t.tickLength=s,t.showMinorTicks=l,t.showTicks=r,t.gridLines=u,t.box.padding=d,t.innermost=p}function v(e,t,i){"x"===e.direction?("bottom"===e.position&&i(t.bottom)&&(e.box.top-=Math.ceil(t.bottom)),"top"===e.position&&i(t.top)&&(e.box.top+=Math.ceil(t.top))):("left"===e.position&&i(t.left)&&(e.box.left+=Math.ceil(t.left)),"right"===e.position&&i(t.right)&&(e.box.left-=Math.ceil(t.right)))}function x(n){var a,s,r=d(),l=R.grid.show;for(s in Y)Y[s]=0;for(s in c(U.processOffset,[Y]),Y)"object"===o(R.grid.borderWidth)?Y[s]+=l?R.grid.borderWidth[s]:0:Y[s]+=l?R.grid.borderWidth:0;if(e.each(r,function(t,o){var a,s,r=o.options;o.show=null==r.show?o.used:r.show,o.reserveSpace=null==r.reserveSpace?o.show:r.reserveSpace,s=(a=o).options,a.tickFormatter||("function"==typeof s.tickFormatter?a.tickFormatter=function(){var e=Array.prototype.slice.call(arguments);return""+s.tickFormatter.apply(null,e)}:a.tickFormatter=i),c(U.setRange,[o,n]),function(t,i){var n="number"==typeof t.options.min?t.options.min:t.min,o="number"==typeof t.options.max?t.options.max:t.max,a=t.options.offset;if(i&&(y(t),n=t.autoScaledMin,o=t.autoScaledMax),n=(null!=n?n:-1)+(a.below||0),(o=(null!=o?o:1)+(a.above||0))<n){var s=n;n=o,o=s,t.options.offset={above:0,below:0}}t.min=e.plot.saturated.saturate(n),t.max=e.plot.saturated.saturate(o)}(o,n)}),l){G=W.width-Y.left-Y.right,X=W.height-Y.bottom-Y.top;var u=e.grep(r,function(e){return e.show||e.reserveSpace});for(e.each(u,function(i,n){var a,s,r,l;!function(i){var n,o=i.options;n=w(i.direction,W,o.ticks),i.delta=e.plot.saturated.delta(i.min,i.max,n);var a=Z.computeValuePrecision(i.min,i.max,i.direction,n,o.tickDecimals);if(i.tickDecimals=Math.max(0,null!=o.tickDecimals?o.tickDecimals:a),i.tickSize=function(e,t,i,n,o){var a;a="number"==typeof n.ticks&&0<n.ticks?n.ticks:.3*Math.sqrt("x"===i?W.width:W.height);var s=b(e,t,a,o);return null!=n.minTickSize&&s<n.minTickSize&&(s=n.minTickSize),n.tickSize||s}(i.min,i.max,i.direction,o,o.tickDecimals),i.tickGenerator||("function"==typeof o.tickGenerator?i.tickGenerator=o.tickGenerator:i.tickGenerator=t),null!=o.alignTicksWithAxis){var s=("x"===i.direction?B:V)[o.alignTicksWithAxis-1];if(s&&s.used&&s!==i){var r=i.tickGenerator(i,Z);if(0<r.length&&(null==o.min&&(i.min=Math.min(i.min,r[0])),null==o.max&&1<r.length&&(i.max=Math.max(i.max,r[r.length-1]))),i.tickGenerator=function(e){var t,i,n=[];for(i=0;i<s.ticks.length;++i)t=(s.ticks[i].v-s.min)/(s.max-s.min),t=e.min+t*(e.max-e.min),n.push(t);return n},!i.mode&&null==o.tickDecimals){var l=Math.max(0,1-Math.floor(Math.log(i.delta)/Math.LN10)),c=i.tickGenerator(i,Z);1<c.length&&/\..*0$/.test((c[1]-c[0]).toFixed(l))||(i.tickDecimals=l)}}}}(n),function(t){var i,n,a=t.options.ticks,s=[];for(null==a||"number"==typeof a&&0<a?s=t.tickGenerator(t,Z):a&&(s=e.isFunction(a)?a(t):a),t.ticks=[],i=0;i<s.length;++i){var r=null,l=s[i];"object"===o(l)?(n=+l[0],1<l.length&&(r=l[1])):n=+l,isNaN(n)||t.ticks.push(T(n,r,t,"major"))}}(n),s=(a=n).ticks,r=D,"loose"===a.options.autoScale&&0<s.length&&r.some(function(e){return 0<e.datapoints.points.length})&&(a.min=Math.min(a.min,s[0].v),a.max=Math.max(a.max,s[s.length-1].v)),m(n),function(e,t){if("endpoints"===e.options.showTickLabels)return!0;if("all"!==e.options.showTickLabels)return"major"!==e.options.showTickLabels&&"none"!==e.options.showTickLabels&&void 0;var i=t.filter(function(t){return t.xaxis===e}),n=i.some(function(e){return!e.bars.show});return 0===i.length||n}(l=n,D)&&(l.ticks.unshift(T(l.min,null,l,"min")),l.ticks.push(T(l.max,null,l,"max"))),function(e){for(var t=e.options,i="none"!==t.showTickLabels&&e.ticks?e.ticks:[],n="major"===t.showTickLabels||"all"===t.showTickLabels,a="endpoints"===t.showTickLabels||"all"===t.showTickLabels,s=t.labelWidth||0,r=t.labelHeight||0,l=e.direction+"Axis "+e.direction+e.n+"Axis",c="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+l,u=t.font||"flot-tick-label tickLabel",h=0;h<i.length;++h){var d=i[h],p=d.label;if(d.label&&!(!1===n&&0<h&&h<i.length-1)&&(!1!==a||0!==h&&h!==i.length-1)){"object"===o(d.label)&&(p=d.label.name);var f=W.getTextInfo(c,p,u);s=Math.max(s,f.width),r=Math.max(r,f.height)}}e.labelWidth=t.labelWidth||s,e.labelHeight=t.labelHeight||r}(n)}),a=u.length-1;0<=a;--a)g(u[a]);!function(){var t,i=R.grid.minBorderMargin;if(null==i)for(t=i=0;t<D.length;++t)i=Math.max(i,2*(D[t].points.radius+D[t].points.lineWidth/2));var n,o={},a={left:i,right:i,top:i,bottom:i};for(n in e.each(d(),function(e,t){t.reserveSpace&&t.ticks&&t.ticks.length&&("x"===t.direction?(a.left=Math.max(a.left,t.labelWidth/2),a.right=Math.max(a.right,t.labelWidth/2)):(a.bottom=Math.max(a.bottom,t.labelHeight/2),a.top=Math.max(a.top,t.labelHeight/2)))}),a)o[n]=a[n]-Y[n];e.each(B.concat(V),function(e,t){v(t,o,function(e){return 0<e})}),Y.left=Math.ceil(Math.max(a.left,Y.left)),Y.right=Math.ceil(Math.max(a.right,Y.right)),Y.top=Math.ceil(Math.max(a.top,Y.top)),Y.bottom=Math.ceil(Math.max(a.bottom,Y.bottom))}(),e.each(u,function(e,t){var i;"x"===(i=t).direction?(i.box.left=Y.left-i.labelWidth/2,i.box.width=W.width-Y.left-Y.right+i.labelWidth):(i.box.top=Y.top-i.labelHeight/2,i.box.height=W.height-Y.bottom-Y.top+i.labelHeight)})}if(R.grid.margin){for(s in Y){var h=R.grid.margin||0;Y[s]+="number"==typeof h?h:h[s]||0}e.each(B.concat(V),function(e,t){v(t,R.grid.margin,function(e){return null!=e})})}G=W.width-Y.left-Y.right,X=W.height-Y.bottom-Y.top,e.each(r,function(e,t){m(t)}),l&&e.each(d(),function(e,t){var i,n,o,a,s,r,l,u=t.box,h=t.direction+"Axis "+t.direction+t.n+"Axis",d="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+h,p=t.options.font||"flot-tick-label tickLabel",f={x:NaN,y:NaN,width:NaN,height:NaN},m=[],g=function(e,t,i,n,o,a,s,r){return(e<=o&&o<=i||o<=e&&e<=s)&&(t<=a&&a<=n||a<=t&&t<=r)},v=function(e,i){return!e||!e.label||e.v<t.min||e.v>t.max?f:(r=W.getTextInfo(d,e.label,p),"x"===t.direction?(a="center",n=Y.left+t.p2c(e.v),"bottom"===t.position?o=u.top+u.padding-t.boxPosition.centerY:(o=u.top+u.height-u.padding+t.boxPosition.centerY,s="bottom")):(s="middle",o=Y.top+t.p2c(e.v),"left"===t.position?(n=u.left+u.width-u.padding-t.boxPosition.centerX,a="right"):n=u.left+u.padding+t.boxPosition.centerX),l={x:n-r.width/2-3,y:o-3,width:r.width+6,height:r.height+6},c=l,i.some(function(e){return g(c.x,c.y,c.x+c.width,c.y+c.height,e.x,e.y,e.x+e.width,e.y+e.height)})?f:(W.addText(d,n,o,e.label,p,null,null,a,s),l));var c};if(W.removeText(d),c(U.drawAxis,[t,W]),t.show)switch(t.options.showTickLabels){case"none":break;case"endpoints":m.push(v(t.ticks[0],m)),m.push(v(t.ticks[t.ticks.length-1],m));break;case"major":for(m.push(v(t.ticks[0],m)),m.push(v(t.ticks[t.ticks.length-1],m)),i=1;i<t.ticks.length-1;++i)m.push(v(t.ticks[i],m));break;case"all":for(m.push(v(t.ticks[0],[])),m.push(v(t.ticks[t.ticks.length-1],m)),i=1;i<t.ticks.length-1;++i)m.push(v(t.ticks[i],m))}}),c(U.setupGrid,[])}function y(t){var i,n=t.options,o=n.min,a=n.max,s=t.datamin,r=t.datamax;switch(n.autoScale){case"none":o=+(null!=n.min?n.min:s),a=+(null!=n.max?n.max:r);break;case"loose":if(null!=s&&null!=r){o=s,a=r,i=e.plot.saturated.saturate(a-o);var l="number"==typeof n.autoScaleMargin?n.autoScaleMargin:.02;o=e.plot.saturated.saturate(o-i*l),a=e.plot.saturated.saturate(a+i*l),o<0&&0<=s&&(o=0)}else o=n.min,a=n.max;break;case"exact":o=null!=s?s:n.min,a=null!=r?r:n.max;break;case"sliding-window":a<r&&(a=r,o=Math.max(r-(n.windowSize||100),o))}var c=function(e,t){var i=void 0===e?null:e,n=void 0===t?null:t;if(0==n-i){var o=0===n?1:.01,a=null;null==i&&(a-=o),null!=n&&null==i||(n+=o),null!=a&&(i=a)}return{min:i,max:n}}(o,a);o=c.min,a=c.max,!0===n.growOnly&&"none"!==n.autoScale&&"sliding-window"!==n.autoScale&&(o=o<s?o:null!==s?s:o,a=r<a?a:null!==r?r:a),t.autoScaledMin=o,t.autoScaledMax=a}function _(t,i,n,o,a){var s=w(n,W,o),r=e.plot.saturated.delta(t,i,s),l=-Math.floor(Math.log(r)/Math.LN10);a&&a<l&&(l=a);var c=r/parseFloat("1e"+-l);return 2.25<c&&c<3&&l+1<=a&&++l,isFinite(l)?l:0}function b(t,i,n,o){var a=e.plot.saturated.delta(t,i,n),s=-Math.floor(Math.log(a)/Math.LN10);o&&o<s&&(s=o);var r,l=parseFloat("1e"+-s),c=a/l;return c<1.5?r=1:c<3?(r=2,2.25<c&&(null==o||s+1<=o)&&(r=2.5)):r=c<7.5?5:10,r*=l}function w(e,t,i){return"number"==typeof i&&0<i?i:.3*Math.sqrt("x"===e?t.width:t.height)}function T(e,t,i,n){if(null===t)switch(n){case"min":case"max":var o=(a=e,s=i,r=Math.floor(s.p2c(a)),l="x"===s.direction?r+1:r-1,c=s.c2p(r),u=s.c2p(l),_(c,u,s.direction,1));isFinite(o),t=i.tickFormatter(e,i,o,Z);break;case"major":t=i.tickFormatter(e,i,void 0,Z)}var a,s,r,l,c,u;return{v:e,label:t}}function k(){W.clear(),c(U.drawBackground,[H]);var e=R.grid;e.show&&e.backgroundColor&&(H.save(),H.translate(Y.left,Y.top),H.fillStyle=O(R.grid.backgroundColor,X,0,"rgba(255, 255, 255, 0)"),H.fillRect(0,0,G,X),H.restore()),e.show&&!e.aboveData&&z();for(var t=0;t<D.length;++t)c(U.drawSeries,[H,D[t],t,O]),L(D[t]);c(U.draw,[H]),e.show&&e.aboveData&&z(),W.render(),E()}function C(e,t){for(var i,n,o,a,s=d(),r=0;r<s.length;++r)if((i=s[r]).direction===t&&(e[a=t+i.n+"axis"]||1!==i.n||(a=t+"axis"),e[a])){n=e[a].from,o=e[a].to;break}if(e[a]||(i="x"===t?B[0]:V[0],n=e[t+"1"],o=e[t+"2"]),null!=n&&null!=o&&o<n){var l=n;n=o,o=l}return{from:n,to:o,axis:i}}function S(e){var t=e.box,i=0,n=0;return"x"===e.direction?(i=0,n=t.top-Y.top+("top"===e.position?t.height:0)):(n=0,i=t.left-Y.left+("left"===e.position?t.width:0)+e.boxPosition.centerX),{x:i,y:n}}function j(e,t){return e%2!=0?Math.floor(t)+.5:t}function M(e){H.lineWidth=1;var t=S(e),i=t.x,n=t.y;if(e.show){var o=0,a=0;H.strokeStyle=e.options.color,H.beginPath(),"x"===e.direction?o=G+1:a=X+1,"x"===e.direction?n=j(H.lineWidth,n):i=j(H.lineWidth,i),H.moveTo(i,n),H.lineTo(i+o,n+a),H.stroke()}}function P(e){var t=e.tickLength,i=e.showMinorTicks,n=ee,o=S(e),a=o.x,s=o.y,r=0;for(H.strokeStyle=e.options.color,H.beginPath(),r=0;r<e.ticks.length;++r){var l,c=e.ticks[r].v,u=0,h=0,d=0,p=0;if(!isNaN(c)&&c>=e.min&&c<=e.max&&("x"===e.direction?(a=e.p2c(c),h=t,"top"===e.position&&(h=-h)):(s=e.p2c(c),u=t,"left"===e.position&&(u=-u)),"x"===e.direction?a=j(H.lineWidth,a):s=j(H.lineWidth,s),H.moveTo(a,s),H.lineTo(a+u,s+h)),!0===i&&r<e.ticks.length-1){var f=e.ticks[r].v,m=(e.ticks[r+1].v-f)/(n+1);for(l=1;l<=n;l++){if("x"===e.direction){if(p=t/2,a=j(H.lineWidth,e.p2c(f+l*m)),"top"===e.position&&(p=-p),a<0||G<a)continue}else if(d=t/2,s=j(H.lineWidth,e.p2c(f+l*m)),"left"===e.position&&(d=-d),s<0||X<s)continue;H.moveTo(a,s),H.lineTo(a+d,s+p)}}}H.stroke()}function Q(e){var t,i,n;for(H.strokeStyle=R.grid.tickColor,H.beginPath(),t=0;t<e.ticks.length;++t){var a=e.ticks[t].v,s=0,r=0,l=0,c=0;isNaN(a)||a<e.min||a>e.max||(i=a,n=R.grid.borderWidth,(!("object"===o(n)&&0<n[e.position]||0<n)||i!==e.min&&i!==e.max)&&("x"===e.direction?(l=e.p2c(a),r=-(c=X)):(l=0,c=e.p2c(a),s=G),"x"===e.direction?l=j(H.lineWidth,l):c=j(H.lineWidth,c),H.moveTo(l,c),H.lineTo(l+s,c+r)))}H.stroke()}function z(){var t,i,n,a;H.save(),H.translate(Y.left,Y.top),function(){var t,i,n=R.grid.markings;if(n)for(e.isFunction(n)&&((t=Z.getAxes()).xmin=t.xaxis.min,t.xmax=t.xaxis.max,t.ymin=t.yaxis.min,t.ymax=t.yaxis.max,n=n(t)),i=0;i<n.length;++i){var o=n[i],a=C(o,"x"),s=C(o,"y");if(null==a.from&&(a.from=a.axis.min),null==a.to&&(a.to=a.axis.max),null==s.from&&(s.from=s.axis.min),null==s.to&&(s.to=s.axis.max),!(a.to<a.axis.min||a.from>a.axis.max||s.to<s.axis.min||s.from>s.axis.max)){a.from=Math.max(a.from,a.axis.min),a.to=Math.min(a.to,a.axis.max),s.from=Math.max(s.from,s.axis.min),s.to=Math.min(s.to,s.axis.max);var r=a.from===a.to,l=s.from===s.to;if(!r||!l)if(a.from=Math.floor(a.axis.p2c(a.from)),a.to=Math.floor(a.axis.p2c(a.to)),s.from=Math.floor(s.axis.p2c(s.from)),s.to=Math.floor(s.axis.p2c(s.to)),r||l){var c=o.lineWidth||R.grid.markingsLineWidth,u=c%2?.5:0;H.beginPath(),H.strokeStyle=o.color||R.grid.markingsColor,H.lineWidth=c,r?(H.moveTo(a.to+u,s.from),H.lineTo(a.to+u,s.to)):(H.moveTo(a.from,s.to+u),H.lineTo(a.to,s.to+u)),H.stroke()}else H.fillStyle=o.color||R.grid.markingsColor,H.fillRect(a.from,s.to,a.to-a.from,s.from-s.to)}}}(),t=d(),i=R.grid.borderWidth;for(var s=0;s<t.length;++s){var r=t[s];r.show&&(M(r),!0===r.showTicks&&P(r),!0===r.gridLines&&Q(r))}i&&(n=R.grid.borderWidth,a=R.grid.borderColor,"object"===o(n)||"object"===o(a)?("object"!==o(n)&&(n={top:n,right:n,bottom:n,left:n}),"object"!==o(a)&&(a={top:a,right:a,bottom:a,left:a}),0<n.top&&(H.strokeStyle=a.top,H.lineWidth=n.top,H.beginPath(),H.moveTo(0-n.left,0-n.top/2),H.lineTo(G,0-n.top/2),H.stroke()),0<n.right&&(H.strokeStyle=a.right,H.lineWidth=n.right,H.beginPath(),H.moveTo(G+n.right/2,0-n.top),H.lineTo(G+n.right/2,X),H.stroke()),0<n.bottom&&(H.strokeStyle=a.bottom,H.lineWidth=n.bottom,H.beginPath(),H.moveTo(G+n.right,X+n.bottom/2),H.lineTo(0,X+n.bottom/2),H.stroke()),0<n.left&&(H.strokeStyle=a.left,H.lineWidth=n.left,H.beginPath(),H.moveTo(0-n.left/2,X+n.bottom),H.lineTo(0-n.left/2,0),H.stroke())):(H.lineWidth=n,H.strokeStyle=R.grid.borderColor,H.strokeRect(-n/2,-n/2,G+n,X+n))),H.restore()}function L(t){t.lines.show&&e.plot.drawSeries.drawSeriesLines(t,H,Y,G,X,Z.drawSymbol,O),t.bars.show&&e.plot.drawSeries.drawSeriesBars(t,H,Y,G,X,Z.drawSymbol,O),t.points.show&&e.plot.drawSeries.drawSeriesPoints(t,H,Y,G,X,Z.drawSymbol,O)}function A(e,t,i,n,o,a){var s=e.xaxis.c2p(t),r=e.yaxis.c2p(i),l=n/e.xaxis.scale,c=n/e.yaxis.scale,u=e.datapoints.points,h=e.datapoints.pointsize;e.xaxis.options.inverseTransform&&(l=Number.MAX_VALUE),e.yaxis.options.inverseTransform&&(c=Number.MAX_VALUE);for(var d=null,p=0;p<u.length;p+=h){var f=u[p],m=u[p+1];if(null!=f&&!(l<f-s||f-s<-l||c<m-r||m-r<-c)){var g=Math.abs(e.xaxis.p2c(f)-t),v=Math.abs(e.yaxis.p2c(m)-i),x=a?a(g,v):g*g+v*v;x<o&&(d={dataIndex:p/h,distance:o=x})}}return d}function N(e,t,i){var n,o,a=e.bars.barWidth[0]||e.bars.barWidth,s=e.xaxis.c2p(t),r=e.yaxis.c2p(i),l=e.datapoints.points,c=e.datapoints.pointsize;switch(e.bars.align){case"left":n=0;break;case"right":n=-a;break;default:n=-a/2}o=n+a;for(var u=e.bars.fillTowards||0,h=u>e.yaxis.min?Math.min(e.yaxis.max,u):e.yaxis.min,d=-1,p=0;p<l.length;p+=c){var f=l[p],m=l[p+1];null!=f&&(e.bars.horizontal?s<=Math.max(h,f)&&s>=Math.min(h,f)&&m+n<=r&&r<=m+o:f+n<=s&&s<=f+o&&r>=Math.min(h,m)&&r<=Math.max(h,m))&&(d=p/c)}return d}function E(){var e=R.interaction.redrawOverlayInterval;-1!==e?J||(J=setTimeout(function(){I(Z)},e)):I()}function I(e){if(J=null,q){F.clear(),c(U.drawOverlay,[q,F]);var t=new CustomEvent("onDrawingDone");e.getEventHolder().dispatchEvent(t),e.getPlaceholder().trigger("drawingdone")}}function O(t,i,n,o){if("string"==typeof t)return t;for(var a=H.createLinearGradient(0,n,0,i),s=0,r=t.colors.length;s<r;++s){var l=t.colors[s];if("string"!=typeof l){var c=e.color.parse(o);null!=l.brightness&&(c=c.scale("rgb",l.brightness)),null!=l.opacity&&(c.a*=l.opacity),l=c.toString()}a.addColorStop(s/(r-1),l)}return a}var D=[],R={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoScaleMargin:null,autoScale:"exact",windowSize:null,growOnly:null,ticks:null,tickFormatter:null,showTickLabels:"major",labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,showMinorTicks:null,showTicks:null,gridLines:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null,offset:{below:0,above:0},boxPosition:{centerX:0,centerY:0}},yaxis:{autoScaleMargin:.02,autoScale:"loose",growOnly:null,position:"left",showTickLabels:"major",offset:{below:0,above:0},boxPosition:{centerX:0,centerY:0}},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:1,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,horizontal:!1,barWidth:.8,fill:!0,fillColor:null,align:"left",zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:1,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:15},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},W=null,F=null,$=null,H=null,q=null,B=[],V=[],Y={left:0,right:0,top:0,bottom:0},G=0,X=0,U={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],setupGrid:[],adjustSeriesDataRange:[],setRange:[],drawBackground:[],drawSeries:[],drawAxis:[],draw:[],axisReserveSpace:[],bindEvents:[],drawOverlay:[],resize:[],shutdown:[]},Z=this,K={},J=null;Z.setData=u,Z.setupGrid=x,Z.draw=k,Z.getPlaceholder=function(){return n},Z.getCanvas=function(){return W.element},Z.getSurface=function(){return W},Z.getEventHolder=function(){return $[0]},Z.getPlotOffset=function(){return Y},Z.width=function(){return G},Z.height=function(){return X},Z.offset=function(){var e=$.offset();return e.left+=Y.left,e.top+=Y.top,e},Z.getData=function(){return D},Z.getAxes=function(){var t={};return e.each(B.concat(V),function(e,i){i&&(t[i.direction+(1!==i.n?i.n:"")+"axis"]=i)}),t},Z.getXAxes=function(){return B},Z.getYAxes=function(){return V},Z.c2p=function(e){var t,i,n={};for(t=0;t<B.length;++t)(i=B[t])&&i.used&&(n["x"+i.n]=i.c2p(e.left));for(t=0;t<V.length;++t)(i=V[t])&&i.used&&(n["y"+i.n]=i.c2p(e.top));return void 0!==n.x1&&(n.x=n.x1),void 0!==n.y1&&(n.y=n.y1),n},Z.p2c=function(e){var t,i,n,o={};for(t=0;t<B.length;++t)if((i=B[t])&&i.used&&(n="x"+i.n,null==e[n]&&1===i.n&&(n="x"),null!=e[n])){o.left=i.p2c(e[n]);break}for(t=0;t<V.length;++t)if((i=V[t])&&i.used&&(n="y"+i.n,null==e[n]&&1===i.n&&(n="y"),null!=e[n])){o.top=i.p2c(e[n]);break}return o},Z.getOptions=function(){return R},Z.triggerRedrawOverlay=E,Z.pointOffset=function(e){return{left:parseInt(B[h(e,"x")-1].p2c(+e.x)+Y.left,10),top:parseInt(V[h(e,"y")-1].p2c(+e.y)+Y.top,10)}},Z.shutdown=f,Z.destroy=function(){f(),n.removeData("plot").empty(),D=[],B=[],V=[],Z=U=q=H=$=F=W=R=null},Z.resize=function(){var e=n.width(),t=n.height();W.resize(e,t),F.resize(e,t),c(U.resize,[e,t])},Z.clearTextCache=function(){W.clearCache(),F.clearCache()},Z.autoScaleAxis=y,Z.computeRangeForDataSeries=function(e,t,i){for(var n=e.datapoints.points,o=e.datapoints.pointsize,a=e.datapoints.format,s=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,l={xmin:s,ymin:s,xmax:r,ymax:r},c=0;c<n.length;c+=o)if(null!==n[c]&&("function"!=typeof i||i(n[c])))for(var u=0;u<o;++u){var h=n[c+u],d=a[u];null!=d&&("function"!=typeof i||i(h))&&(t||d.computeRange)&&h!==1/0&&h!==-1/0&&(!0===d.x&&(h<l.xmin&&(l.xmin=h),h>l.xmax&&(l.xmax=h)),!0===d.y&&(h<l.ymin&&(l.ymin=h),h>l.ymax&&(l.ymax=h)))}return l},Z.adjustSeriesDataRange=function(e,t){if(e.bars.show){var i,n=e.bars.barWidth[1];e.datapoints&&e.datapoints.points&&!n&&function(e){var t=[],i=e.datapoints.pointsize,n=Number.MAX_VALUE;e.datapoints.points.length<=i&&(n=1);for(var o=e.bars.horizontal?1:0;o<e.datapoints.points.length;o+=i)isFinite(e.datapoints.points[o])&&null!==e.datapoints.points[o]&&t.push(e.datapoints.points[o]);(t=t.filter(function(e,t,i){return i.indexOf(e)===t})).sort(function(e,t){return e-t});for(var o=1;o<t.length;o++){var a=Math.abs(t[o]-t[o-1]);a<n&&isFinite(a)&&(n=a)}"number"==typeof e.bars.barWidth?e.bars.barWidth=e.bars.barWidth*n:e.bars.barWidth[0]=e.bars.barWidth[0]*n}(e);var o=e.bars.barWidth[0]||e.bars.barWidth;switch(e.bars.align){case"left":i=0;break;case"right":i=-o;break;default:i=-o/2}e.bars.horizontal?(t.ymin+=i,t.ymax+=i+o):(t.xmin+=i,t.xmax+=i+o)}if(e.bars.show&&e.bars.zero||e.lines.show&&e.lines.zero){e.datapoints.pointsize<=2&&(t.ymin=Math.min(0,t.ymin),t.ymax=Math.max(0,t.ymax))}return t},Z.findNearbyItem=function(e,t,i,n,o){for(var a,s=null,r=n*n+1,l=D.length-1;0<=l;--l)if(i(l)){var c=D[l];if(!c.datapoints)return;if(c.lines.show||c.points.show){var u=A(c,e,t,n,r,o);u&&(r=u.distance,s=[l,u.dataIndex])}if(c.bars.show&&!s){var h=N(c,e,t);0<=h&&(s=[l,h])}}if(s){l=s[0],a=s[1];var d=D[l].datapoints.pointsize;return{datapoint:D[l].datapoints.points.slice(a*d,(a+1)*d),dataIndex:a,series:D[l],seriesIndex:l}}return null},Z.findNearbyInterpolationPoint=function(e,t,i){var n,o,a,s,r,l,c,u=Number.MAX_VALUE;for(n=0;n<D.length;++n)if(i(n)){var h=D[n].datapoints.points;l=D[n].datapoints.pointsize;var d=h[h.length-l]<h[0]?function(e,t){return t<e}:function(e,t){return e<t};if(!d(e,h[0])){for(o=l;o<h.length&&!d(e,h[o]);o+=l);var p=h[o-l],f=h[o-l+1],m=h[o],g=h[o+1];void 0!==p&&void 0!==m&&void 0!==f&&void 0!==g&&(t=p===m?g:f+(g-f)*(e-p)/(m-p),s=Math.abs(D[n].xaxis.p2c(m)-e),r=Math.abs(D[n].yaxis.p2c(g)-t),(a=s*s+r*r)<u&&(u=a,c=[e,t,n,o]))}}return c?(n=c[2],o=c[3],l=D[n].datapoints.pointsize,h=D[n].datapoints.points,p=h[o-l],f=h[o-l+1],m=h[o],g=h[o+1],{datapoint:[c[0],c[1]],leftPoint:[p,f],rightPoint:[m,g],seriesIndex:n}):null},Z.computeValuePrecision=_,Z.computeTickSize=b,Z.addEventHandler=function(e,t,i,n){var o=i+e,a=K[o]||[];a.push({event:e,handler:t,eventHolder:i,priority:n}),a.sort(function(e,t){return t.priority-e.priority}),a.forEach(function(e){e.eventHolder.unbind(e.event,e.handler),e.eventHolder.bind(e.event,e.handler)}),K[o]=a},Z.hooks=U;var ee=e.plot.uiConstants.MINOR_TICKS_COUNT_CONSTANT,te=e.plot.uiConstants.TICK_LENGTH_CONSTANT;!function(){for(var t={Canvas:r},i=0;i<l.length;++i){var n=l[i];n.init(Z,t),n.options&&e.extend(!0,R,n.options)}}(),function(){n.css("padding",0).children().filter(function(){return!e(this).hasClass("flot-overlay")&&!e(this).hasClass("flot-base")}).remove(),"static"===n.css("position")&&n.css("position","relative"),W=new r("flot-base",n[0]),F=new r("flot-overlay",n[0]),H=W.context,q=F.context,$=e(F.element).unbind();var t=n.data("plot");t&&(t.shutdown(),F.clear()),n.data("plot",Z)}(),function(t){e.extend(!0,R,t),t&&t.colors&&(R.colors=t.colors),null==R.xaxis.color&&(R.xaxis.color=e.color.parse(R.grid.color).scale("a",.22).toString()),null==R.yaxis.color&&(R.yaxis.color=e.color.parse(R.grid.color).scale("a",.22).toString()),null==R.xaxis.tickColor&&(R.xaxis.tickColor=R.grid.tickColor||R.xaxis.color),null==R.yaxis.tickColor&&(R.yaxis.tickColor=R.grid.tickColor||R.yaxis.color),null==R.grid.borderColor&&(R.grid.borderColor=R.grid.color),null==R.grid.tickColor&&(R.grid.tickColor=e.color.parse(R.grid.color).scale("a",.22).toString());var i,o,a,s=n.css("font-size"),r=s?+s.replace("px",""):13,l={style:n.css("font-style"),size:Math.round(.8*r),variant:n.css("font-variant"),weight:n.css("font-weight"),family:n.css("font-family")};for(a=R.xaxes.length||1,i=0;i<a;++i)(o=R.xaxes[i])&&!o.tickColor&&(o.tickColor=o.color),o=e.extend(!0,{},R.xaxis,o),(R.xaxes[i]=o).font&&(o.font=e.extend({},l,o.font),o.font.color||(o.font.color=o.color),o.font.lineHeight||(o.font.lineHeight=Math.round(1.15*o.font.size)));for(a=R.yaxes.length||1,i=0;i<a;++i)(o=R.yaxes[i])&&!o.tickColor&&(o.tickColor=o.color),o=e.extend(!0,{},R.yaxis,o),(R.yaxes[i]=o).font&&(o.font=e.extend({},l,o.font),o.font.color||(o.font.color=o.color),o.font.lineHeight||(o.font.lineHeight=Math.round(1.15*o.font.size)));for(i=0;i<R.xaxes.length;++i)p(B,i+1).options=R.xaxes[i];for(i=0;i<R.yaxes.length;++i)p(V,i+1).options=R.yaxes[i];for(var u in e.each(d(),function(e,t){t.boxPosition=t.options.boxPosition||{centerX:0,centerY:0}}),U)R.hooks[u]&&R.hooks[u].length&&(U[u]=U[u].concat(R.hooks[u]));c(U.processOptions,[R])}(s),u(a),x(!0),k(),c(U.bindEvents,[$])}var r=window.Flot.Canvas;e.plot=function(t,i,n){return new s(e(t),i,n,e.plot.plugins)},e.plot.version="3.0.0",e.plot.plugins=[],e.fn.plot=function(t,i){return this.each(function(){e.plot(this,t,i)})},e.plot.linearTickGenerator=t,e.plot.defaultTickFormatter=i,e.plot.expRepTickFormatter=n}(jQuery),function(e){var t={saturate:function(e){return e===1/0?Number.MAX_VALUE:e===-1/0?-Number.MAX_VALUE:e},delta:function(e,t,i){return(t-e)/i==1/0?t/i-e/i:(t-e)/i},multiply:function(e,i){return t.saturate(e*i)},multiplyAdd:function(e,i,n){if(isFinite(e*i))return t.saturate(e*i+n);for(var o=n,a=0;a<i;a++)o+=e;return t.saturate(o)},floorInBase:function(e,t){return t*Math.floor(e/t)}};e.plot.saturated=t}(jQuery),function(e){var t={getPageXY:function(e){var t=document.documentElement;return{X:e.clientX+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),Y:e.clientY+(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}},getPixelRatio:function(e){return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)},isSafari:function(){return/constructor/i.test(window.top.HTMLElement)||"[object SafariRemoteNotification]"===(!window.top.safari||void 0!==window.top.safari&&window.top.safari.pushNotification).toString()},isMobileSafari:function(){return navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&navigator.userAgent.match(/AppleWebKit/)},isOpera:function(){return!!window.opr&&!!opr.addons||!!window.opera||0<=navigator.userAgent.indexOf(" OPR/")},isFirefox:function(){return"undefined"!=typeof InstallTrigger},isIE:function(){return!!document.documentMode},isEdge:function(){return!t.isIE()&&!!window.StyleMedia},isChrome:function(){return!!window.chrome&&!!window.chrome.webstore},isBlink:function(){return(t.isChrome()||t.isOpera())&&!!window.CSS}};e.plot.browser=t}(jQuery),function(e){e.plot.drawSeries=new function(){function t(e,t,i,n,o,a,s,r,l,c,u){var h,d,p,f,m=e+n,g=e+o,v=i,x=t,y=!1;h=d=p=!0,c?(y=d=p=!0,h=!1,x=t+n,v=t+o,(g=e)<(m=i)&&(f=g,g=m,m=f,d=!(h=!0))):(h=d=p=!0,y=!1,m=e+n,g=e+o,(x=t)<(v=i)&&(f=x,x=v,v=f,p=!(y=!0))),g<s.min||m>s.max||x<r.min||v>r.max||(m<s.min&&(m=s.min,h=!1),g>s.max&&(g=s.max,d=!1),v<r.min&&(v=r.min,y=!1),x>r.max&&(x=r.max,p=!1),m=s.p2c(m),v=r.p2c(v),g=s.p2c(g),x=r.p2c(x),a&&(l.fillStyle=a(v,x),l.fillRect(m,x,g-m,v-x)),0<u&&(h||d||p||y)&&(l.beginPath(),l.moveTo(m,v),h?l.lineTo(m,x):l.moveTo(m,x),p?l.lineTo(g,x):l.moveTo(g,x),d?l.lineTo(g,v):l.moveTo(g,v),y?l.lineTo(m,v):l.moveTo(m,v),l.stroke()))}function i(t,i,n,o,a){var s=t.fill;if(!s)return null;if(t.fillColor)return a(t.fillColor,n,o,i);var r=e.color.parse(i);return r.a="number"==typeof s?s:.4,r.normalize(),r.toString()}this.drawSeriesLines=function(e,t,n,o,a,s,r){t.save(),t.translate(n.left,n.top),t.lineJoin="round",e.lines.dashes&&t.setLineDash&&t.setLineDash(e.lines.dashes);var l={format:e.datapoints.format,points:e.datapoints.points,pointsize:e.datapoints.pointsize};e.decimate&&(l.points=e.decimate(e,e.xaxis.min,e.xaxis.max,o,e.yaxis.min,e.yaxis.max,a));var c=e.lines.lineWidth;t.lineWidth=c,t.strokeStyle=e.color;var u=i(e.lines,e.color,0,a,r);u&&(t.fillStyle=u,function(e,t,i,n,o,a){for(var s=e.points,r=e.pointsize,l=n>i.min?Math.min(i.max,n):i.min,c=0,u=1,h=!1,d=0,p=0,f=null,m=null;!(0<r&&c>s.length+r);){var g=s[(c+=r)-r],v=s[c-r+u],x=s[c],y=s[c+u];if(-2===r&&(v=y=l),h){if(0<r&&null!=g&&null==x){p=c,r=-r,u=2;continue}if(r<0&&c===d+r){o.fill(),h=!1,u=1,c=d=p+(r=-r);continue}}if(null!=g&&null!=x){if(a&&(null!==f&&null!==m?(x=g,y=v,g=f,v=m,m=f=null,c-=r):v!==y&&g!==x&&(f=x,m=y=v)),g<=x&&g<t.min){if(x<t.min)continue;v=(t.min-g)/(x-g)*(y-v)+v,g=t.min}else if(x<=g&&x<t.min){if(g<t.min)continue;y=(t.min-g)/(x-g)*(y-v)+v,x=t.min}if(x<=g&&g>t.max){if(x>t.max)continue;v=(t.max-g)/(x-g)*(y-v)+v,g=t.max}else if(g<=x&&x>t.max){if(g>t.max)continue;y=(t.max-g)/(x-g)*(y-v)+v,x=t.max}if(h||(o.beginPath(),o.moveTo(t.p2c(g),i.p2c(l)),h=!0),v>=i.max&&y>=i.max)o.lineTo(t.p2c(g),i.p2c(i.max)),o.lineTo(t.p2c(x),i.p2c(i.max));else if(v<=i.min&&y<=i.min)o.lineTo(t.p2c(g),i.p2c(i.min)),o.lineTo(t.p2c(x),i.p2c(i.min));else{var _=g,b=x;v<=y&&v<i.min&&y>=i.min?(g=(i.min-v)/(y-v)*(x-g)+g,v=i.min):y<=v&&y<i.min&&v>=i.min&&(x=(i.min-v)/(y-v)*(x-g)+g,y=i.min),y<=v&&v>i.max&&y<=i.max?(g=(i.max-v)/(y-v)*(x-g)+g,v=i.max):v<=y&&y>i.max&&v<=i.max&&(x=(i.max-v)/(y-v)*(x-g)+g,y=i.max),g!==_&&o.lineTo(t.p2c(_),i.p2c(v)),o.lineTo(t.p2c(g),i.p2c(v)),o.lineTo(t.p2c(x),i.p2c(y)),x!==b&&(o.lineTo(t.p2c(x),i.p2c(y)),o.lineTo(t.p2c(b),i.p2c(y)))}}else m=f=null}}(l,e.xaxis,e.yaxis,e.lines.fillTowards||0,t,e.lines.steps)),0<c&&function(e,t,i,n,o,a,s){var r=e.points,l=e.pointsize,c=null,u=null,h=0,d=0,p=0,f=0,m=null,g=null,v=0;for(a.beginPath(),v=l;v<r.length;v+=l)if(h=r[v-l],d=r[v-l+1],p=r[v],f=r[v+1],null!==h&&null!==p)if(isNaN(h)||isNaN(p)||isNaN(d)||isNaN(f))u=c=null;else{if(s&&(null!==m&&null!==g?(p=h,f=d,h=m,d=g,g=m=null,v-=l):d!==f&&h!==p&&(m=p,g=f=d)),d<=f&&d<o.min){if(f<o.min)continue;h=(o.min-d)/(f-d)*(p-h)+h,d=o.min}else if(f<=d&&f<o.min){if(d<o.min)continue;p=(o.min-d)/(f-d)*(p-h)+h,f=o.min}if(f<=d&&d>o.max){if(f>o.max)continue;h=(o.max-d)/(f-d)*(p-h)+h,d=o.max}else if(d<=f&&f>o.max){if(d>o.max)continue;p=(o.max-d)/(f-d)*(p-h)+h,f=o.max}if(h<=p&&h<n.min){if(p<n.min)continue;d=(n.min-h)/(p-h)*(f-d)+d,h=n.min}else if(p<=h&&p<n.min){if(h<n.min)continue;f=(n.min-h)/(p-h)*(f-d)+d,p=n.min}if(p<=h&&h>n.max){if(p>n.max)continue;d=(n.max-h)/(p-h)*(f-d)+d,h=n.max}else if(h<=p&&p>n.max){if(h>n.max)continue;f=(n.max-h)/(p-h)*(f-d)+d,p=n.max}h===c&&d===u||a.moveTo(n.p2c(h)+0,o.p2c(d)+0),c=p,u=f,a.lineTo(n.p2c(p)+0,o.p2c(f)+0)}else g=m=null;a.stroke()}(l,0,0,e.xaxis,e.yaxis,t,e.lines.steps),t.restore()},this.drawSeriesPoints=function(e,t,n,o,a,s,r){function l(e,t,i,n,o,a){e.moveTo(t+n,i),e.arc(t,i,n,0,o?Math.PI:2*Math.PI,!1)}l.fill=!0,t.save(),t.translate(n.left,n.top);var c={format:e.datapoints.format,points:e.datapoints.points,pointsize:e.datapoints.pointsize};e.decimatePoints&&(c.points=e.decimatePoints(e,e.xaxis.min,e.xaxis.max,o,e.yaxis.min,e.yaxis.max,a));var u,h=e.points.lineWidth,d=e.points.radius,p=e.points.symbol;"circle"===p?u=l:"string"==typeof p&&s&&s[p]?u=s[p]:"function"==typeof s&&(u=s),0===h&&(h=1e-4),t.lineWidth=h,t.fillStyle=i(e.points,e.color,null,null,r),t.strokeStyle=e.color,function(e,i,n,o,a,s,r,l){var c=e.points,u=e.pointsize;t.beginPath();for(var h=0;h<c.length;h+=u){var d=c[h],p=c[h+1];null==d||d<s.min||d>s.max||p<r.min||p>r.max||(d=s.p2c(d),p=r.p2c(p)+0,l(t,d,p,i,!1,!0))}l.fill&&!0&&t.fill(),t.stroke()}(c,d,0,0,0,e.xaxis,e.yaxis,u),t.restore()},this.drawSeriesBars=function(e,n,o,a,s,r,l){n.save(),n.translate(o.left,o.top);var c,u={format:e.datapoints.format,points:e.datapoints.points,pointsize:e.datapoints.pointsize};e.decimate&&(u.points=e.decimate(e,e.xaxis.min,e.xaxis.max,a)),n.lineWidth=e.bars.lineWidth,n.strokeStyle=e.color;var h=e.bars.barWidth[0]||e.bars.barWidth;switch(e.bars.align){case"left":c=0;break;case"right":c=-h;break;default:c=-h/2}!function(i,o,a,s,r,l){for(var c=i.points,u=i.pointsize,h=e.bars.fillTowards||0,d=h>l.min?Math.min(l.max,h):l.min,p=0;p<c.length;p+=u)if(null!=c[p]){var f=3===u?c[p+2]:d;t(c[p],c[p+1],f,o,a,s,r,l,n,e.bars.horizontal,e.bars.lineWidth)}}(u,c,c+h,e.bars.fill?function(t,n){return i(e.bars,e.color,t,n,l)}:null,e.xaxis,e.yaxis),n.restore()},this.drawBar=t}}(jQuery),function(e){function t(e,t,i,n){if(t.points.errorbars){var o=[{x:!0,number:!0,required:!0},{y:!0,number:!0,required:!0}],a=t.points.errorbars;"x"!==a&&"xy"!==a||(t.points.xerr.asymmetric&&o.push({x:!0,number:!0,required:!0}),o.push({x:!0,number:!0,required:!0})),"y"!==a&&"xy"!==a||(t.points.yerr.asymmetric&&o.push({y:!0,number:!0,required:!0}),o.push({y:!0,number:!0,required:!0})),n.format=o}}function i(e,t){var i=e.datapoints.points,n=null,o=null,a=null,s=null,r=e.points.xerr,l=e.points.yerr,c=e.points.errorbars;"x"===c||"xy"===c?r.asymmetric?(n=i[t+2],o=i[t+3],"xy"===c&&(l.asymmetric?(a=i[t+4],s=i[t+5]):a=i[t+4])):(n=i[t+2],"xy"===c&&(l.asymmetric?(a=i[t+3],s=i[t+4]):a=i[t+3])):"y"===c&&(l.asymmetric?(a=i[t+2],s=i[t+3]):a=i[t+2]),null==o&&(o=n),null==s&&(s=a);var u=[n,o,a,s];return r.show||(u[0]=null,u[1]=null),l.show||(u[2]=null,u[3]=null),u}function n(t,i,n,a,s,r,l,c,u,h,d){a+=h,s+=h,r+=h,"x"===i.err?(n+u<s?o(t,[[s,a],[Math.max(n+u,d[0]),a]]):l=!1,r<n-u?o(t,[[Math.min(n-u,d[1]),a],[r,a]]):c=!1):(s<a-u?o(t,[[n,s],[n,Math.min(a-u,d[0])]]):l=!1,a+u<r?o(t,[[n,Math.max(a+u,d[1])],[n,r]]):c=!1),u=null!=i.radius?i.radius:u,l&&("-"===i.upperCap?"x"===i.err?o(t,[[s,a-u],[s,a+u]]):o(t,[[n-u,s],[n+u,s]]):e.isFunction(i.upperCap)&&("x"===i.err?i.upperCap(t,s,a,u):i.upperCap(t,n,s,u))),c&&("-"===i.lowerCap?"x"===i.err?o(t,[[r,a-u],[r,a+u]]):o(t,[[n-u,r],[n+u,r]]):e.isFunction(i.lowerCap)&&("x"===i.err?i.lowerCap(t,r,a,u):i.lowerCap(t,n,r,u)))}function o(e,t){e.beginPath(),e.moveTo(t[0][0],t[0][1]);for(var i=1;i<t.length;i++)e.lineTo(t[i][0],t[i][1]);e.stroke()}function a(t,o){var a=t.getPlotOffset();o.save(),o.translate(a.left,a.top),e.each(t.getData(),function(e,t){t.points.errorbars&&(t.points.xerr.show||t.points.yerr.show)&&function(e,t,o){var a,s=o.datapoints.points,r=o.datapoints.pointsize,l=[o.xaxis,o.yaxis],c=o.points.radius,u=[o.points.xerr,o.points.yerr],h=!1;l[0].p2c(l[0].max)<l[0].p2c(l[0].min)&&(h=!0,a=u[0].lowerCap,u[0].lowerCap=u[0].upperCap,u[0].upperCap=a);var d=!1;l[1].p2c(l[1].min)<l[1].p2c(l[1].max)&&(d=!0,a=u[1].lowerCap,u[1].lowerCap=u[1].upperCap,u[1].upperCap=a);for(var p=0;p<o.datapoints.points.length;p+=r)for(var f=i(o,p),m=0;m<u.length;m++){var g=[l[m].min,l[m].max];if(f[m*u.length]){var v=s[p],x=s[p+1],y=[v,x][m]+f[m*u.length+1],_=[v,x][m]-f[m*u.length];if("x"===u[m].err&&(x>l[1].max||x<l[1].min||y<l[0].min||_>l[0].max))continue;if("y"===u[m].err&&(v>l[0].max||v<l[0].min||y<l[1].min||_>l[1].max))continue;var b=!0,w=!0;y>g[1]&&(b=!1,y=g[1]),_<g[0]&&(w=!1,_=g[0]),("x"===u[m].err&&h||"y"===u[m].err&&d)&&(a=_,_=y,y=a,a=w,w=b,b=a,a=g[0],g[0]=g[1],g[1]=a),v=l[0].p2c(v),x=l[1].p2c(x),y=l[m].p2c(y),_=l[m].p2c(_),g[0]=l[m].p2c(g[0]),g[1]=l[m].p2c(g[1]);var T=u[m].lineWidth?u[m].lineWidth:o.points.lineWidth,k=null!=o.points.shadowSize?o.points.shadowSize:o.shadowSize;if(0<T&&0<k){var C=k/2;t.lineWidth=C,t.strokeStyle="rgba(0,0,0,0.1)",n(t,u[m],v,x,y,_,b,w,c,C+C/2,g),t.strokeStyle="rgba(0,0,0,0.2)",n(t,u[m],v,x,y,_,b,w,c,C/2,g)}t.strokeStyle=u[m].color?u[m].color:o.color,t.lineWidth=T,n(t,u[m],v,x,y,_,b,w,c,0,g)}}}(0,o,t)}),o.restore()}e.plot.plugins.push({init:function(e){e.hooks.processRawData.push(t),e.hooks.draw.push(a)},options:{series:{points:{errorbars:null,xerr:{err:"x",show:null,asymmetric:null,upperCap:null,lowerCap:null,color:null,radius:null},yerr:{err:"y",show:null,asymmetric:null,upperCap:null,lowerCap:null,color:null,radius:null}}}},name:"errorbars",version:"1.0"})}(jQuery),jQuery.plot.uiConstants={SNAPPING_CONSTANT:20,PANHINT_LENGTH_CONSTANT:10,MINOR_TICKS_COUNT_CONSTANT:4,TICK_LENGTH_CONSTANT:10,ZOOM_DISTANCE_MARGIN:25},function(e){function t(e,t){for(var i,n,o=Math.floor(Math.log(e)*Math.LOG10E)-1,a=[],s=-o;s<=o;s++){n=parseFloat("1e"+s);for(var r=1;r<9;r+=t)i=n*r,a.push(i)}return a}function i(e,t){"log"===t.options.mode&&t.datamin<=0&&(null===t.datamin?t.datamin=.1:t.datamin=n(e,t))}function n(e,t){var i=e.getData().filter(function(e){return e.xaxis===t||e.yaxis===t}).map(function(t){return e.computeRangeForDataSeries(t,null,o)}),n="x"===t.direction?Math.min(.1,i&&i[0]?i[0].xmin:.1):Math.min(.1,i&&i[0]?i[0].ymin:.1);return t.min=n}function o(e){return 0<e}var a=t(Number.MAX_VALUE,10),s=t(Number.MAX_VALUE,4),r=function(t,i,n){var o=[],r=-1,c=-1,u=t.getCanvas(),h=a,d=l(i,t),p=i.max;n||(n=.3*Math.sqrt("x"===i.direction?u.width:u.height)),a.some(function(e,t){return d<=e&&(r=t,!0)}),a.some(function(e,t){return p<=e&&(c=t,!0)}),-1===c&&(c=a.length-1),c-r<=n/4&&h.length!==s.length&&(h=s,r*=2,c*=2);var f,m,g,v=null,x=1/n;if(n/4<=c-r){for(var y=c;r<=y;y--)f=h[y],m=(Math.log(f)-Math.log(d))/(Math.log(p)-Math.log(d)),g=f,null===v?v={pixelCoord:m,idealPixelCoord:m}:Math.abs(m-v.pixelCoord)>=x?v={pixelCoord:m,idealPixelCoord:v.idealPixelCoord-x}:g=null,g&&o.push(g);o.reverse()}else{var _=t.computeTickSize(d,p,n),b={min:d,max:p,tickSize:_};o=e.plot.linearTickGenerator(b)}return o},l=function(e,t){var i=e.min,o=e.max;return i<=0&&o<(i=null===e.datamin?e.min=.1:n(t,e))&&(e.max=null!==e.datamax?e.datamax:e.options.max,e.options.offset.below=0,e.options.offset.above=0),i},c=function(t,i,n){var o=0<t?Math.floor(Math.log(t)/Math.LN10):0;if(n)return-4<=o&&o<=7?e.plot.defaultTickFormatter(t,i,n):e.plot.expRepTickFormatter(t,i,n);if(-4<=o&&o<=7){var a=o<0?t.toFixed(-o):t.toFixed(o+2);if(-1!==a.indexOf(".")){for(var s=a.lastIndexOf("0");s===a.length-1;)s=(a=a.slice(0,-1)).lastIndexOf("0");a.indexOf(".")===a.length-1&&(a=a.slice(0,-1))}return a}return e.plot.expRepTickFormatter(t,i)},u=function(e){return e<a[0]&&(e=a[0]),Math.log(e)},h=function(e){return Math.exp(e)},d=function(e){return-e},p=function(e){return-u(e)},f=function(e){return h(-e)};e.plot.plugins.push({init:function(t){t.hooks.processOptions.push(function(t){e.each(t.getAxes(),function(e,n){var o=n.options;"log"===o.mode?(n.tickGenerator=function(e){return r(t,e,11)},"function"!=typeof n.options.tickFormatter&&(n.options.tickFormatter=c),n.options.transform=o.inverted?p:u,n.options.inverseTransform=o.inverted?f:h,n.options.autoScaleMargin=0,t.hooks.setRange.push(i)):o.inverted&&(n.options.transform=d,n.options.inverseTransform=d)})})},options:{xaxis:{}},name:"log",version:"0.1"}),e.plot.logTicksGenerator=r,e.plot.logTickFormatter=c}(jQuery),function(e){var t=function(e,t,i,n,o){var a=n*Math.sqrt(Math.PI)/2;e.rect(t-a,i-a,a+a,a+a)},i=function(e,t,i,n,o){var a=n*Math.sqrt(Math.PI)/2;e.rect(t-a,i-a,a+a,a+a)},n=function(e,t,i,n,o){var a=n*Math.sqrt(Math.PI/2);e.moveTo(t-a,i),e.lineTo(t,i-a),e.lineTo(t+a,i),e.lineTo(t,i+a),e.lineTo(t-a,i),e.lineTo(t,i-a)},o=function(e,t,i,n,o){var a=n*Math.sqrt(2*Math.PI/Math.sin(Math.PI/3)),s=a*Math.sin(Math.PI/3);e.moveTo(t-a/2,i+s/2),e.lineTo(t+a/2,i+s/2),o||(e.lineTo(t,i-s/2),e.lineTo(t-a/2,i+s/2),e.lineTo(t+a/2,i+s/2))},a=function(e,t,i,n,o,a){o||(e.moveTo(t+n,i),e.arc(t,i,n,0,2*Math.PI,!1))},s={square:t,rectangle:i,diamond:n,triangle:o,cross:function(e,t,i,n,o){var a=n*Math.sqrt(Math.PI)/2;e.moveTo(t-a,i-a),e.lineTo(t+a,i+a),e.moveTo(t-a,i+a),e.lineTo(t+a,i-a)},ellipse:a,plus:function(e,t,i,n,o){var a=n*Math.sqrt(Math.PI/2);e.moveTo(t-a,i),e.lineTo(t+a,i),e.moveTo(t,i+a),e.lineTo(t,i-a)}};a.fill=o.fill=n.fill=i.fill=t.fill=!0,e.plot.plugins.push({init:function(e){e.drawSymbol=s},name:"symbols",version:"1.0"})}(jQuery),function(e){function t(e,t,i,n){if(!0===t.flatdata){var o=t.start||0,a="number"==typeof t.step?t.step:1;n.pointsize=2;for(var s=0,r=0;s<i.length;s++,r+=2)n.points[r]=o+s*a,n.points[r+1]=i[s];void 0!==n.points?n.points.length=2*i.length:n.points=[]}}jQuery.plot.plugins.push({init:function(e){e.hooks.processRawData.push(t)},name:"flatdata",version:"0.0.2"})}(),function(e){function t(t,s){function r(e,i){var o=Math.abs(e.originalEvent.deltaY)<=1?1+Math.abs(e.originalEvent.deltaY)/50:null;if(C&&d(e),t.getOptions().zoom.active)return e.preventDefault(),function(e,i,o){var a=n.getPageXY(e),s=t.offset();s.left=a.X-s.left,s.top=a.Y-s.top;var r=t.getPlaceholder().offset();r.left=a.X-r.left,r.top=a.Y-r.top;var l=t.getXAxes().concat(t.getYAxes()).filter(function(e){var t=e.box;if(void 0!==t)return r.left>t.left&&r.left<t.left+t.width&&r.top>t.top&&r.top<t.top+t.height});0===l.length&&(l=void 0),i?t.zoomOut({center:s,axes:l,amount:o}):t.zoom({center:s,axes:l,amount:o})}(e,i<0,o),!1}function l(e){v=!0}function c(e){v=!1}function u(e){if(!v||0!==e.button)return!1;C=!0;var i=n.getPageXY(e),o=t.getPlaceholder().offset();o.left=i.X-o.left,o.top=i.Y-o.top,0===(g=t.getXAxes().concat(t.getYAxes()).filter(function(e){var t=e.box;if(void 0!==t)return o.left>t.left&&o.left<t.left+t.width&&o.top>t.top&&o.top<t.top+t.height})).length&&(g=void 0);var a=t.getPlaceholder().css("cursor");a&&(b=a),t.getPlaceholder().css("cursor",t.getOptions().pan.cursor),_?m=t.navigationState(i.X,i.Y):x&&(k.x=i.X,k.y=i.Y)}function h(e){if(C){var i=n.getPageXY(e),o=t.getOptions().pan.frameRate;-1!==o?!T&&o&&(T=setTimeout(function(){_?t.smartPan({x:m.startPageX-i.X,y:m.startPageY-i.Y},m,g,!1,y):x&&(t.pan({left:k.x-i.X,top:k.y-i.Y,axes:g}),k.x=i.X,k.y=i.Y),T=null},1/o*1e3)):_?t.smartPan({x:m.startPageX-i.X,y:m.startPageY-i.Y},m,g,!1,y):x&&(t.pan({left:k.x-i.X,top:k.y-i.Y,axes:g}),k.x=i.X,k.y=i.Y)}}function d(e){if(C){T&&(clearTimeout(T),T=null),C=!1;var i=n.getPageXY(e);t.getPlaceholder().css("cursor",b),_?(t.smartPan({x:m.startPageX-i.X,y:m.startPageY-i.Y},m,g,!1,y),t.smartPan.end()):x&&(t.pan({left:k.x-i.X,top:k.y-i.Y,axes:g}),k.x=0,k.y=0)}}function p(i){if(t.activate(),t.getOptions().recenter.interactive){var n,o=t.getTouchedAxis(i.clientX,i.clientY);t.recenter({axes:o[0]?o:null}),n=o[0]?new e.Event("re-center",{detail:{axisTouched:o[0]}}):new e.Event("re-center",{detail:i}),t.getPlaceholder().trigger(n)}}function f(e){return t.activate(),C&&d(e),!1}var m,g=null,v=!1,x="manual"===s.pan.mode,y="smartLock"===s.pan.mode,_=y||"smart"===s.pan.mode,b="default",w=null,T=null,k={x:0,y:0},C=!1;t.navigationState=function(e,t){var i=this.getAxes(),n={};return Object.keys(i).forEach(function(e){var t=i[e];n[e]={navigationOffset:{below:t.options.offset.below||0,above:t.options.offset.above||0},axisMin:t.min,axisMax:t.max,diagMode:!1}}),n.startPageX=e||0,n.startPageY=t||0,n},t.activate=function(){var e=t.getOptions();e.pan.active&&e.zoom.active||(e.pan.active=!0,e.zoom.active=!0,t.getPlaceholder().trigger("plotactivated",[t]))},t.zoomOut=function(e){e||(e={}),e.amount||(e.amount=t.getOptions().zoom.amount),e.amount=1/e.amount,t.zoom(e)},t.zoom=function(i){i||(i={});var n=i.center,o=i.amount||t.getOptions().zoom.amount,a=t.width(),s=t.height(),r=i.axes||t.getAxes();n||(n={left:a/2,top:s/2});var l=n.left/a,c=n.top/s,u={x:{min:n.left-l*a/o,max:n.left+(1-l)*a/o},y:{min:n.top-c*s/o,max:n.top+(1-c)*s/o}};for(var h in r)if(r.hasOwnProperty(h)){var d=r[h],p=d.options,f=u[d.direction].min,m=u[d.direction].max,g=d.options.offset;if((p.axisZoom||!i.axes)&&(i.axes||p.plotZoom)){if(f=e.plot.saturated.saturate(d.c2p(f)),(m=e.plot.saturated.saturate(d.c2p(m)))<f){var v=f;f=m,m=v}var x=e.plot.saturated.saturate(g.below-(d.min-f)),y=e.plot.saturated.saturate(g.above-(d.max-m));p.offset={below:x,above:y}}}t.setupGrid(!0),t.draw(),i.preventEvent||t.getPlaceholder().trigger("plotzoom",[t,i])},t.pan=function(n){var o={x:+n.left,y:+n.top};isNaN(o.x)&&(o.x=0),isNaN(o.y)&&(o.y=0),e.each(n.axes||t.getAxes(),function(e,t){var a=t.options,s=o[t.direction];if((a.axisPan||!n.axes)&&(a.plotPan||n.axes)&&0!==s){var r=i.saturate(t.c2p(t.p2c(t.min)+s)-t.c2p(t.p2c(t.min))),l=i.saturate(t.c2p(t.p2c(t.max)+s)-t.c2p(t.p2c(t.max)));isFinite(r)||(r=0),isFinite(l)||(l=0),a.offset={below:i.saturate(r+(a.offset.below||0)),above:i.saturate(l+(a.offset.above||0))}}}),t.setupGrid(!0),t.draw(),n.preventEvent||t.getPlaceholder().trigger("plotpan",[t,n])},t.recenter=function(i){e.each(i.axes||t.getAxes(),function(e,t){i.axes?"x"===this.direction?t.options.offset={below:0}:"y"===this.direction&&(t.options.offset={above:0}):t.options.offset={below:0,above:0}}),t.setupGrid(!0),t.draw()};var S=null,j={x:0,y:0};t.smartPan=function(e,n,a,s,r){var l,c,u,h,d,p,f,m,g,v,x,y,_,b=!!r||(c=e,Math.abs(c.y)<o&&Math.abs(c.x)>=o||Math.abs(c.x)<o&&Math.abs(c.y)>=o),T=t.getAxes();e=r?function(e){switch(!S&&Math.max(Math.abs(e.x),Math.abs(e.y))>=o&&(S=Math.abs(e.x)<Math.abs(e.y)?"y":"x"),S){case"x":return{x:e.x,y:0};case"y":return{x:0,y:e.y};default:return{x:0,y:0}}}(e):(u=e,Math.abs(u.x)<o&&Math.abs(u.y)>=o?{x:0,y:u.y}:Math.abs(u.y)<o&&Math.abs(u.x)>=o?{x:u.x,y:0}:u),h=e,0<Math.abs(h.x)&&0<Math.abs(h.y)&&(n.diagMode=!0),b&&!0===n.diagMode&&(n.diagMode=!1,d=T,p=n,f=e,Object.keys(d).forEach(function(e){m=d[e],0===f[m.direction]&&(m.options.offset.below=p[e].navigationOffset.below,m.options.offset.above=p[e].navigationOffset.above)})),w=b?{start:{x:n.startPageX-t.offset().left+t.getPlotOffset().left,y:n.startPageY-t.offset().top+t.getPlotOffset().top},end:{x:n.startPageX-e.x-t.offset().left+t.getPlotOffset().left,y:n.startPageY-e.y-t.offset().top+t.getPlotOffset().top}}:{start:{x:n.startPageX-t.offset().left+t.getPlotOffset().left,y:n.startPageY-t.offset().top+t.getPlotOffset().top},end:!1},isNaN(e.x)&&(e.x=0),isNaN(e.y)&&(e.y=0),a&&(T=a),Object.keys(T).forEach(function(t){if(g=T[t],v=g.min,x=g.max,l=g.options,_=e[g.direction],y=j[g.direction],(l.axisPan||!a)&&(a||l.plotPan)&&0!==_){var n=i.saturate(g.c2p(g.p2c(v)-(y-_))-g.c2p(g.p2c(v))),o=i.saturate(g.c2p(g.p2c(x)-(y-_))-g.c2p(g.p2c(x)));isFinite(n)||(n=0),isFinite(o)||(o=0),g.options.offset.below=i.saturate(n+(g.options.offset.below||0)),g.options.offset.above=i.saturate(o+(g.options.offset.above||0))}}),j=e,t.setupGrid(!0),t.draw(),s||t.getPlaceholder().trigger("plotpan",[t,e,a,n])},t.smartPan.end=function(){S=w=null,j={x:0,y:0},t.triggerRedrawOverlay()},t.getTouchedAxis=function(e,i){var n=t.getPlaceholder().offset();return n.left=e-n.left,n.top=i-n.top,t.getXAxes().concat(t.getYAxes()).filter(function(e){var t=e.box;if(void 0!==t)return n.left>t.left&&n.left<t.left+t.width&&n.top>t.top&&n.top<t.top+t.height})},t.hooks.drawOverlay.push(function(e,t){if(w){t.strokeStyle="rgba(96, 160, 208, 0.7)",t.lineWidth=2,t.lineJoin="round";var i,n,o=Math.round(w.start.x),s=Math.round(w.start.y);if(g?"x"===g[0].direction?(n=Math.round(w.start.y),i=Math.round(w.end.x)):"y"===g[0].direction&&(i=Math.round(w.start.x),n=Math.round(w.end.y)):(i=Math.round(w.end.x),n=Math.round(w.end.y)),t.beginPath(),!1===w.end)t.moveTo(o,s-a),t.lineTo(o,s+a),t.moveTo(o+a,s),t.lineTo(o-a,s);else{var r=s===n;t.moveTo(o-(r?0:a),s-(r?a:0)),t.lineTo(o+(r?0:a),s+(r?a:0)),t.moveTo(o,s),t.lineTo(i,n),t.moveTo(i-(r?0:a),n-(r?a:0)),t.lineTo(i+(r?0:a),n+(r?a:0))}t.stroke()}}),t.hooks.bindEvents.push(function(e,t){var i=e.getOptions();i.zoom.interactive&&t.mousewheel(r),i.pan.interactive&&(e.addEventHandler("dragstart",u,t,0),e.addEventHandler("drag",h,t,0),e.addEventHandler("dragend",d,t,0),t.bind("mousedown",l),t.bind("mouseup",c)),t.dblclick(p),t.click(f)}),t.hooks.shutdown.push(function(e,t){t.unbind("mousewheel",r),t.unbind("mousedown",l),t.unbind("mouseup",c),t.unbind("dragstart",u),t.unbind("drag",h),t.unbind("dragend",d),t.unbind("dblclick",p),t.unbind("click",f),T&&clearTimeout(T)})}var i=e.plot.saturated,n=e.plot.browser,o=e.plot.uiConstants.SNAPPING_CONSTANT,a=e.plot.uiConstants.PANHINT_LENGTH_CONSTANT;e.plot.plugins.push({init:function(e){e.hooks.processOptions.push(t)},options:{zoom:{interactive:!1,active:!1,amount:1.5},pan:{interactive:!1,active:!1,cursor:"move",frameRate:60,mode:"smart"},recenter:{interactive:!0},xaxis:{axisZoom:!0,plotZoom:!0,axisPan:!0,plotPan:!0},yaxis:{axisZoom:!0,plotZoom:!0,axisPan:!0,plotPan:!0}},name:"navigate",version:"1.3"})}(jQuery),jQuery.plot.plugins.push({init:function(e){e.hooks.processRawData.push(function(e,t,n,o){null!=t.fillBetween&&(format=o.format,format||(format=[],format.push({x:!0,number:!0,computeRange:"none"!==t.xaxis.options.autoScale,required:!0}),format.push({y:!0,number:!0,computeRange:"none"!==t.yaxis.options.autoScale,required:!0}),void 0!==t.fillBetween&&""!==t.fillBetween&&function(t){var n=e.getData();for(i=0;i<n.length;i++)if(n[i].id===t)return!0;return!1}(t.fillBetween)&&t.fillBetween!==t.id&&format.push({x:!1,y:!0,number:!0,required:!1,computeRange:"none"!==t.yaxis.options.autoScale,defaultValue:0}),o.format=format))}),e.hooks.processDatapoints.push(function(e,t,i){if(null!=t.fillBetween){var n=function(e,t){var i;for(i=0;i<t.length;++i)if(t[i].id===e.fillBetween)return t[i];return"number"==typeof e.fillBetween?e.fillBetween<0||e.fillBetween>=t.length?null:t[e.fillBetween]:null}(t,e.getData());if(n){for(var o,a,s,r,l,c,u,h,d=i.pointsize,p=i.points,f=n.datapoints.pointsize,m=n.datapoints.points,g=[],v=t.lines.show,x=2<d&&i.format[2].y,y=v&&t.lines.steps,_=!0,b=0,w=0;!(b>=p.length);){if(u=g.length,null==p[b]){for(h=0;h<d;++h)g.push(p[b+h]);b+=d}else if(w>=m.length){if(!v)for(h=0;h<d;++h)g.push(p[b+h]);b+=d}else if(null==m[w]){for(h=0;h<d;++h)g.push(null);_=!0,w+=f}else{if(o=p[b],a=p[b+1],r=m[w],l=m[w+1],c=0,o===r){for(h=0;h<d;++h)g.push(p[b+h]);c=l,b+=d,w+=f}else if(r<o){if(v&&0<b&&null!=p[b-d]){for(s=a+(p[b-d+1]-a)*(r-o)/(p[b-d]-o),g.push(r),g.push(s),h=2;h<d;++h)g.push(p[b+h]);c=l}w+=f}else{if(_&&v){b+=d;continue}for(h=0;h<d;++h)g.push(p[b+h]);v&&0<w&&null!=m[w-f]&&(c=l+(m[w-f+1]-l)*(o-r)/(m[w-f]-r)),b+=d}_=!1,u!==g.length&&x&&(g[u+2]=c)}if(y&&u!==g.length&&0<u&&null!==g[u]&&g[u]!==g[u-d]&&g[u+1]!==g[u-d+1]){for(h=0;h<d;++h)g[u+d+h]=g[u+h];g[u+1]=g[u-d+1]}}i.points=g}}})},options:{series:{fillBetween:null}},name:"fillbetween",version:"1.0"}),function(e){function t(e,t,i,n){var o="categories"===t.xaxis.options.mode,a="categories"===t.yaxis.options.mode;if(o||a){var s=n.format;if(!s){var r=t;if((s=[]).push({x:!0,number:!0,required:!0,computeRange:!0}),s.push({y:!0,number:!0,required:!0,computeRange:!0}),r.bars.show||r.lines.show&&r.lines.fill){var l=!!(r.bars.show&&r.bars.zero||r.lines.show&&r.lines.zero);s.push({y:!0,number:!0,required:!1,defaultValue:0,computeRange:l}),r.bars.horizontal&&(delete s[s.length-1].y,s[s.length-1].x=!0)}n.format=s}for(var c=0;c<s.length;++c)s[c].x&&o&&(s[c].number=!1),s[c].y&&a&&(s[c].number=!1,s[c].computeRange=!1)}}function i(e){var t=[];for(var i in e.categories){var n=e.categories[i];n>=e.min&&n<=e.max&&t.push([n,i])}return t.sort(function(e,t){return e[0]-t[0]}),t}function n(t,n,o){if("categories"===t[n].options.mode){if(!t[n].categories){var a={},s=t[n].options.categories||{};if(e.isArray(s))for(var r=0;r<s.length;++r)a[s[r]]=r;else for(var l in s)a[l]=s[l];t[n].categories=a}t[n].options.ticks||(t[n].options.ticks=i),function(e,t,i){for(var n=e.points,o=e.pointsize,a=e.format,s=t.charAt(0),r=function(e){var t=-1;for(var i in e)e[i]>t&&(t=e[i]);return t+1}(i),l=0;l<n.length;l+=o)if(null!=n[l])for(var c=0;c<o;++c){var u=n[l+c];null!=u&&a[c][s]&&(u in i||(i[u]=r,++r),n[l+c]=i[u])}}(o,n,t[n].categories)}}function o(e,t,i){n(t,"xaxis",i),n(t,"yaxis",i)}e.plot.plugins.push({init:function(e){e.hooks.processRawData.push(t),e.hooks.processDatapoints.push(o)},options:{xaxis:{categories:null},yaxis:{categories:null}},name:"categories",version:"1.0"})}(jQuery),jQuery.plot.plugins.push({init:function(e){e.hooks.processDatapoints.push(function(e,t,i){if(null!=t.stack&&!1!==t.stack){var n=t.bars.show||t.lines.show&&t.lines.fill,o=2<i.pointsize&&(_?i.format[2].x:i.format[2].y);n&&!o&&function(e,t){for(var i=[],n=0;n<t.points.length;n+=2)i.push(t.points[n]),i.push(t.points[n+1]),i.push(0);t.format.push({x:!1,y:!0,number:!0,required:!1,computeRange:"none"!==e.yaxis.options.autoScale,defaultValue:0}),t.points=i,t.pointsize=3}(t,i);var a=function(e,t){for(var i=null,n=0;n<t.length&&e!==t[n];++n)t[n].stack===e.stack&&(i=t[n]);return i}(t,e.getData());if(a){for(var s,r,l,c,u,h,d,p,f=i.pointsize,m=i.points,g=a.datapoints.pointsize,v=a.datapoints.points,x=[],y=t.lines.show,_=t.bars.horizontal,b=y&&t.lines.steps,w=!0,T=_?1:0,k=_?0:1,C=0,S=0;!(C>=m.length);){if(d=x.length,null==m[C]){for(p=0;p<f;++p)x.push(m[C+p]);C+=f}else if(S>=v.length){if(!y)for(p=0;p<f;++p)x.push(m[C+p]);C+=f}else if(null==v[S]){for(p=0;p<f;++p)x.push(null);w=!0,S+=g}else{if(s=m[C+T],r=m[C+k],c=v[S+T],u=v[S+k],h=0,s===c){for(p=0;p<f;++p)x.push(m[C+p]);x[d+k]+=u,h=u,C+=f,S+=g}else if(c<s){if(y&&0<C&&null!=m[C-f]){for(l=r+(m[C-f+k]-r)*(c-s)/(m[C-f+T]-s),x.push(c),x.push(l+u),p=2;p<f;++p)x.push(m[C+p]);h=u}S+=g}else{if(w&&y){C+=f;continue}for(p=0;p<f;++p)x.push(m[C+p]);y&&0<S&&null!=v[S-g]&&(h=u+(v[S-g+k]-u)*(s-c)/(v[S-g+T]-c)),x[d+k]+=h,C+=f}w=!1,d!==x.length&&n&&(x[d+2]+=h)}if(b&&d!==x.length&&0<d&&null!==x[d]&&x[d]!==x[d-f]&&x[d+1]!==x[d-f+1]){for(p=0;p<f;++p)x[d+f+p]=x[d+p];x[d+1]=x[d-f+1]}}i.points=x}}})},options:{series:{stack:null}},name:"stack",version:"1.2"}),function(e){function t(t,c){function u(e,n,o){g.touchedAxis=function(e,t,i,n){if("pinchstart"!==t.type)return"panstart"===t.type?e.getTouchedAxis(t.detail.touches[0].pageX,t.detail.touches[0].pageY):"pinchend"===t.type?e.getTouchedAxis(t.detail.touches[0].pageX,t.detail.touches[0].pageY):n.touchedAxis;var o=e.getTouchedAxis(t.detail.touches[0].pageX,t.detail.touches[0].pageY),a=e.getTouchedAxis(t.detail.touches[1].pageX,t.detail.touches[1].pageY);return o.length===a.length&&o.toString()===a.toString()?o:void 0}(t,e,0,g),i(g)?g.navigationConstraint="unconstrained":g.navigationConstraint="axisConstrained"}var h,d,p,f,m={zoomEnable:!1,prevDistance:null,prevTapTime:0,prevPanPosition:{x:0,y:0},prevTapPosition:{x:0,y:0}},g={prevTouchedAxis:"none",currentTouchedAxis:"none",touchedAxis:null,navigationConstraint:"unconstrained",initialState:null},v=c.pan.interactive&&"manual"===c.pan.touchMode,x="smartLock"===c.pan.touchMode,y=c.pan.interactive&&(x||"smart"===c.pan.touchMode);h={start:function(e){if(u(e,"pan",m),n(e,"pan",m,g),y){var i=r(e,"pan");g.initialState=t.navigationState(i.x,i.y)}},drag:function(e){if(u(e,"pan",m),y){var i=r(e,"pan");t.smartPan({x:g.initialState.startPageX-i.x,y:g.initialState.startPageY-i.y},g.initialState,g.touchedAxis,!1,x)}else v&&(t.pan({left:-s(e,"pan",m).x,top:-s(e,"pan",m).y,axes:g.touchedAxis}),a(e,"pan",m,g))},end:function(e){var i;u(e,"pan",m),y&&t.smartPan.end(),i=e,m.zoomEnable&&1===i.detail.touches.length&&updateprevPanPosition(e,"pan",m,g)}},d={start:function(e){var t;f&&(clearTimeout(f),f=null),u(e,"pinch",m),t=e,m.prevDistance=o(t),n(e,"pinch",m,g)},drag:function(e){f||(f=setTimeout(function(){u(e,"pinch",m),t.pan({left:-s(e,"pinch",m).x,top:-s(e,"pinch",m).y,axes:g.touchedAxis}),a(e,"pinch",m,g);var i,n,c,h,d,p,v,x,y=o(e);(m.zoomEnable||Math.abs(y-m.prevDistance)>l)&&(n=e,c=m,h=g,d=(i=t).offset(),p={left:0,top:0},v=o(n)/c.prevDistance,x=o(n),p.left=r(n,"pinch").x-d.left,p.top=r(n,"pinch").y-d.top,i.zoom({center:p,amount:v,axes:h.touchedAxis}),c.prevDistance=x,m.zoomEnable=!0),f=null},1e3/60))},end:function(e){f&&(clearTimeout(f),f=null),u(e,"pinch",m),m.prevDistance=null}},p={recenterPlot:function(n){n&&n.detail&&"touchstart"===n.detail.type&&function(t,n,o,a){if(r=t,l=n,c=a,u=r.getTouchedAxis(l.detail.firstTouch.x,l.detail.firstTouch.y),void 0!==u[0]&&(c.prevTouchedAxis=u[0].direction),void 0!==(u=r.getTouchedAxis(l.detail.secondTouch.x,l.detail.secondTouch.y))[0]&&(c.touchedAxis=u,c.currentTouchedAxis=u[0].direction),i(c)&&(c.touchedAxis=null,c.prevTouchedAxis="none",c.currentTouchedAxis="none"),"x"===a.currentTouchedAxis&&"x"===a.prevTouchedAxis||"y"===a.currentTouchedAxis&&"y"===a.prevTouchedAxis||"none"===a.currentTouchedAxis&&"none"===a.prevTouchedAxis){var s;t.recenter({axes:a.touchedAxis}),s=a.touchedAxis?new e.Event("re-center",{detail:{axisTouched:a.touchedAxis}}):new e.Event("re-center",{detail:n}),t.getPlaceholder().trigger(s)}var r,l,c,u}(t,n,0,g)}},!0!==c.pan.enableTouch&&!0!==c.zoom.enableTouch||(t.hooks.bindEvents.push(function(e,t){var i=e.getOptions();i.zoom.interactive&&i.zoom.enableTouch&&(t[0].addEventListener("pinchstart",d.start,!1),t[0].addEventListener("pinchdrag",d.drag,!1),t[0].addEventListener("pinchend",d.end,!1)),i.pan.interactive&&i.pan.enableTouch&&(t[0].addEventListener("panstart",h.start,!1),t[0].addEventListener("pandrag",h.drag,!1),t[0].addEventListener("panend",h.end,!1)),i.recenter.interactive&&i.recenter.enableTouch&&t[0].addEventListener("doubletap",p.recenterPlot,!1)}),t.hooks.shutdown.push(function(e,t){t[0].removeEventListener("panstart",h.start),t[0].removeEventListener("pandrag",h.drag),t[0].removeEventListener("panend",h.end),t[0].removeEventListener("pinchstart",d.start),t[0].removeEventListener("pinchdrag",d.drag),t[0].removeEventListener("pinchend",d.end),t[0].removeEventListener("doubletap",p.recenterPlot)}))}function i(e){return!e.touchedAxis||0===e.touchedAxis.length}function n(e,t,i,n){var o,a=r(e,t);switch(n.navigationConstraint){case"unconstrained":n.touchedAxis=null,i.prevTapPosition={x:i.prevPanPosition.x,y:i.prevPanPosition.y},i.prevPanPosition={x:a.x,y:a.y};break;case"axisConstrained":o=n.touchedAxis[0].direction,n.currentTouchedAxis=o,i.prevTapPosition[o]=i.prevPanPosition[o],i.prevPanPosition[o]=a[o]}}function o(e){var t,i,n,o,a=e.detail.touches[0],s=e.detail.touches[1];return t=a.pageX,i=a.pageY,n=s.pageX,o=s.pageY,Math.sqrt((t-n)*(t-n)+(i-o)*(i-o))}function a(e,t,i,n){var o=r(e,t);switch(n.navigationConstraint){case"unconstrained":i.prevPanPosition.x=o.x,i.prevPanPosition.y=o.y;break;case"axisConstrained":i.prevPanPosition[n.currentTouchedAxis]=o[n.currentTouchedAxis]}}function s(e,t,i){var n=r(e,t);return{x:n.x-i.prevPanPosition.x,y:n.y-i.prevPanPosition.y}}function r(e,t){return"pinch"===t?{x:(e.detail.touches[0].pageX+e.detail.touches[1].pageX)/2,y:(e.detail.touches[0].pageY+e.detail.touches[1].pageY)/2}:{x:e.detail.touches[0].pageX,y:e.detail.touches[0].pageY}}var l=e.plot.uiConstants.ZOOM_DISTANCE_MARGIN;e.plot.plugins.push({init:function(e){e.hooks.processOptions.push(t)},options:{zoom:{enableTouch:!1},pan:{enableTouch:!1,touchMode:"manual"},recenter:{enableTouch:!0}},name:"navigateTouch",version:"0.3"})}(jQuery),function(e){var t=e.plot.browser,i="hover";e.plot.plugins.push({init:function(n){function o(e){var t=n.getOptions(),o=new CustomEvent("mouseevent");return o.pageX=e.detail.changedTouches[0].pageX,o.pageY=e.detail.changedTouches[0].pageY,o.clientX=e.detail.changedTouches[0].clientX,o.clientY=e.detail.changedTouches[0].clientY,t.grid.hoverable&&a(o,i,30),!1}function a(e,t,i){var o=n.getData();if(void 0!==e&&0<o.length&&void 0!==o[0].xaxis.c2p&&void 0!==o[0].yaxis.c2p){var a=t+"able";u("plot"+t,e,function(e){return!1!==o[e][a]},i)}}function s(e){y=e,a(n.getPlaceholder()[0].lastMouseMoveEvent=e,i)}function r(e){y=void 0,n.getPlaceholder()[0].lastMouseMoveEvent=void 0,u("plothover",e,function(e){return!1})}function l(e){a(e,"click")}function c(){n.unhighlight(),n.getPlaceholder().trigger("plothovercleanup")}function u(e,i,o,a){var s=n.getOptions(),r=n.offset(),l=t.getPageXY(i),c=l.X-r.left,u=l.Y-r.top,p=n.c2p({left:c,top:u}),f=void 0!==a?a:s.grid.mouseActiveRadius;p.pageX=l.X,p.pageY=l.Y;var m=n.findNearbyItem(c,u,o,f);if(m&&(m.pageX=parseInt(m.series.xaxis.p2c(m.datapoint[0])+r.left,10),m.pageY=parseInt(m.series.yaxis.p2c(m.datapoint[1])+r.top,10)),s.grid.autoHighlight){for(var g=0;g<_.length;++g){var v=_[g];(v.auto!==e||m&&v.series===m.series&&v.point[0]===m.datapoint[0]&&v.point[1]===m.datapoint[1])&&m||d(v.series,v.point)}m&&h(m.series,m.datapoint,e)}n.getPlaceholder().trigger(e,[p,m])}function h(e,t,i){if("number"==typeof e&&(e=n.getData()[e]),"number"==typeof t){var o=e.datapoints.pointsize;t=e.datapoints.points.slice(o*t,o*(t+1))}var a=p(e,t);-1===a?(_.push({series:e,point:t,auto:i}),n.triggerRedrawOverlay()):i||(_[a].auto=!1)}function d(e,t){if(null==e&&null==t)return _=[],void n.triggerRedrawOverlay();if("number"==typeof e&&(e=n.getData()[e]),"number"==typeof t){var i=e.datapoints.pointsize;t=e.datapoints.points.slice(i*t,i*(t+1))}var o=p(e,t);-1!==o&&(_.splice(o,1),n.triggerRedrawOverlay())}function p(e,t){for(var i=0;i<_.length;++i){var n=_[i];if(n.series===e&&n.point[0]===t[0]&&n.point[1]===t[1])return i}return-1}function f(){c(),a(y,i)}function m(){a(y,i)}function g(e,t,i){var n,o,a=e.getPlotOffset();for(t.save(),t.translate(a.left,a.top),n=0;n<_.length;++n)(o=_[n]).series.bars.show?x(o.series,o.point,t):v(o.series,o.point,t,e);t.restore()}function v(t,i,n,o){var a=i[0],s=i[1],r=t.xaxis,l=t.yaxis,c="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString();if(!(a<r.min||a>r.max||s<l.min||s>l.max)){var u=t.points.radius+t.points.lineWidth/2;n.lineWidth=u,n.strokeStyle=c;var h=1.5*u;a=r.p2c(a),s=l.p2c(s),n.beginPath();var d=t.points.symbol;"circle"===d?n.arc(a,s,h,0,2*Math.PI,!1):"string"==typeof d&&o.drawSymbol&&o.drawSymbol[d]&&o.drawSymbol[d](n,a,s,h,!1),n.closePath(),n.stroke()}}function x(t,i,n){var o,a="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString(),s=a,r=t.bars.barWidth[0]||t.bars.barWidth;switch(t.bars.align){case"left":o=0;break;case"right":o=-r;break;default:o=-r/2}n.lineWidth=t.bars.lineWidth,n.strokeStyle=a;var l=t.bars.fillTowards||0,c=l>t.yaxis.min?Math.min(t.yaxis.max,l):t.yaxis.min;e.plot.drawSeries.drawBar(i[0],i[1],i[2]||c,o,o+r,function(){return s},t.xaxis,t.yaxis,n,t.bars.horizontal,t.bars.lineWidth)}var y,_=[];n.hooks.bindEvents.push(function(e,t){var i=e.getOptions();(i.grid.hoverable||i.grid.clickable)&&(t[0].addEventListener("touchevent",c,!1),t[0].addEventListener("tap",o,!1)),i.grid.clickable&&t.bind("click",l),i.grid.hoverable&&(t.bind("mousemove",s),t.bind("mouseleave",r))}),n.hooks.shutdown.push(function(e,t){t[0].removeEventListener("tap",o),t[0].removeEventListener("touchevent",c),t.unbind("mousemove",s),t.unbind("mouseleave",r),t.unbind("click",l),_=[]}),n.hooks.processOptions.push(function(e,t){e.highlight=h,e.unhighlight=d,(t.grid.hoverable||t.grid.clickable)&&(e.hooks.drawOverlay.push(g),e.hooks.processDatapoints.push(f),e.hooks.setupGrid.push(m)),y=e.getPlaceholder()[0].lastMouseMoveEvent})},options:{grid:{hoverable:!1,clickable:!1}},name:"hover",version:"0.1"})}(jQuery),function(e){function t(e,t){function i(t){var i=e.getOptions();(i.pan.active||i.zoom.active)&&(3<=t.touches.length?u.isUnsupportedGesture=!0:u.isUnsupportedGesture=!1,c.dispatchEvent(new CustomEvent("touchevent",{detail:t})),l(t)?n(t,"pinch"):(n(t,"pan"),r(t)||(function(e){var t=(new Date).getTime(),i=t-u.prevTapTime;return 0<=i&&i<d&&s(u.prevTap.x,u.prevTap.y,u.currentTap.x,u.currentTap.y)<h?(e.firstTouch=u.prevTap,e.secondTouch=u.currentTap,!0):(u.prevTapTime=t,!1)}(t)&&n(t,"doubleTap"),n(t,"tap"),n(t,"longTap"))))}function n(e,t){switch(t){case"pan":p[e.type](e);break;case"pinch":f[e.type](e);break;case"doubleTap":m.onDoubleTap(e);break;case"longTap":g[e.type](e);break;case"tap":v[e.type](e)}}function o(e){u.currentTap={x:e.touches[0].pageX,y:e.touches[0].pageY}}function a(t){u.isUnsupportedGesture||(t.preventDefault(),e.getOptions().propagateSupportedGesture||t.stopPropagation())}function s(e,t,i,n){return Math.sqrt((e-i)*(e-i)+(t-n)*(t-n))}function r(e){return u.twoTouches&&1===e.touches.length}function l(t){return!!(t.touches&&2<=t.touches.length&&t.touches[0].target===e.getEventHolder()&&t.touches[1].target===e.getEventHolder())}var c,u={twoTouches:!1,currentTapStart:{x:0,y:0},currentTapEnd:{x:0,y:0},prevTap:{x:0,y:0},currentTap:{x:0,y:0},interceptedLongTap:!1,isUnsupportedGesture:!1,prevTapTime:null,tapStartTime:null,longTapTriggerId:null},h=20,d=500,p={touchstart:function(e){var t;u.prevTap={x:u.currentTap.x,y:u.currentTap.y},o(e),t=e,u.tapStartTime=(new Date).getTime(),u.interceptedLongTap=!1,u.currentTapStart={x:t.touches[0].pageX,y:t.touches[0].pageY},u.currentTapEnd={x:t.touches[0].pageX,y:t.touches[0].pageY},c.dispatchEvent(new CustomEvent("panstart",{detail:e}))},touchmove:function(e){var t;a(e),o(e),t=e,u.currentTapEnd={x:t.touches[0].pageX,y:t.touches[0].pageY},u.isUnsupportedGesture||c.dispatchEvent(new CustomEvent("pandrag",{detail:e}))},touchend:function(e){var t;a(e),r(e)?(c.dispatchEvent(new CustomEvent("pinchend",{detail:e})),c.dispatchEvent(new CustomEvent("panstart",{detail:e}))):(t=e).touches&&0===t.touches.length&&c.dispatchEvent(new CustomEvent("panend",{detail:e}))}},f={touchstart:function(e){c.dispatchEvent(new CustomEvent("pinchstart",{detail:e}))},touchmove:function(e){a(e),u.twoTouches=l(e),u.isUnsupportedGesture||c.dispatchEvent(new CustomEvent("pinchdrag",{detail:e}))},touchend:function(e){a(e)}},m={onDoubleTap:function(e){a(e),c.dispatchEvent(new CustomEvent("doubletap",{detail:e}))}},g={touchstart:function(e){g.waitForLongTap(e)},touchmove:function(e){},touchend:function(e){u.longTapTriggerId&&(clearTimeout(u.longTapTriggerId),u.longTapTriggerId=null)},isLongTap:function(e){return 1500<=(new Date).getTime()-u.tapStartTime&&!u.interceptedLongTap&&s(u.currentTapStart.x,u.currentTapStart.y,u.currentTapEnd.x,u.currentTapEnd.y)<20&&(u.interceptedLongTap=!0)},waitForLongTap:function(e){u.longTapTriggerId||(u.longTapTriggerId=setTimeout(function(){g.isLongTap(e)&&c.dispatchEvent(new CustomEvent("longtap",{detail:e})),u.longTapTriggerId=null},1500))}},v={touchstart:function(e){u.tapStartTime=(new Date).getTime()},touchmove:function(e){},touchend:function(e){v.isTap(e)&&(c.dispatchEvent(new CustomEvent("tap",{detail:e})),a(e))},isTap:function(e){return(new Date).getTime()-u.tapStartTime<=125&&s(u.currentTapStart.x,u.currentTapStart.y,u.currentTapEnd.x,u.currentTapEnd.y)<20}};(!0===t.pan.enableTouch||t.zoom.enableTouch)&&(e.hooks.bindEvents.push(function(e,t){c=t[0],t[0].addEventListener("touchstart",i,!1),t[0].addEventListener("touchmove",i,!1),t[0].addEventListener("touchend",i,!1)}),e.hooks.shutdown.push(function(e,t){t[0].removeEventListener("touchstart",i),t[0].removeEventListener("touchmove",i),t[0].removeEventListener("touchend",i),u.longTapTriggerId&&(clearTimeout(u.longTapTriggerId),u.longTapTriggerId=null)}))}jQuery.plot.plugins.push({init:function(e){e.hooks.processOptions.push(t)},options:{propagateSupportedGesture:!1},name:"navigateTouch",version:"0.3"})}(),function(e){function t(e,t,i,n){if("function"==typeof e.strftime)return e.strftime(t);var o,a=function(e,t){return t=""+(null==t?"0":t),1==(e=""+e).length?t+e:e},s=[],r=!1,l=e.getHours(),c=l<12;i||(i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),n||(n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),o=12<l?l-12:0==l?12:l;for(var u=-1,h=0;h<t.length;++h){var d=t.charAt(h);if(!isNaN(Number(d))&&0<Number(d))u=Number(d);else if(r){switch(d){case"a":d=""+n[e.getDay()];break;case"b":d=""+i[e.getMonth()];break;case"d":d=a(e.getDate());break;case"e":d=a(e.getDate()," ");break;case"h":case"H":d=a(l);break;case"I":d=a(o);break;case"l":d=a(o," ");break;case"m":d=a(e.getMonth()+1);break;case"M":d=a(e.getMinutes());break;case"q":d=""+(Math.floor(e.getMonth()/3)+1);break;case"S":d=a(e.getSeconds());break;case"s":d=""+function(e,t,i){var n,o=1e3*e+t;if(i<6&&0<i){var a=parseFloat("1e"+(i-6));n=("00000"+(o=Math.round(Math.round(o*a)/a))).slice(-6,-(6-i))}else n=("00000"+(o=Math.round(o))).slice(-6);return n}(e.getMilliseconds(),e.getMicroseconds(),u);break;case"y":d=a(e.getFullYear()%100);break;case"Y":d=""+e.getFullYear();break;case"p":d=c?"am":"pm";break;case"P":d=c?"AM":"PM";break;case"w":d=""+e.getDay()}s.push(d),r=!1}else"%"==d?r=!0:s.push(d)}return s.join("")}function i(e){function t(e,t,i,n){e[t]=function(){return i[n].apply(i,arguments)}}var i={date:e};void 0!==e.strftime&&t(i,"strftime",e,"strftime"),t(i,"getTime",e,"getTime"),t(i,"setTime",e,"setTime");for(var n=["Date","Day","FullYear","Hours","Minutes","Month","Seconds","Milliseconds","Microseconds"],o=0;o<n.length;o++)t(i,"get"+n[o],e,"getUTC"+n[o]),t(i,"set"+n[o],e,"setUTC"+n[o]);return i}function n(e,t){var n=864e13;if(t&&"seconds"===t.timeBase?e*=1e3:"microseconds"===t.timeBase&&(e/=1e3),n<e?e=n:e<-n&&(e=-n),"browser"===t.timezone)return s(Date,e);if(t.timezone&&"utc"!==t.timezone){if("undefined"==typeof timezoneJS||void 0===timezoneJS.Date)return i(s(Date,e));var o=s(timezoneJS.Date,e);return o.setTimezone(t.timezone),o.setTime(e),o}return i(s(Date,e))}function o(e){var t,i=e.options,o=[],s=n(e.min,i),u=0,p=i.tickSize&&"quarter"===i.tickSize[1]||i.minTickSize&&"quarter"===i.minTickSize[1]?d:h;t="seconds"===i.timeBase?r:"microseconds"===i.timeBase?c:l,null!==i.minTickSize&&void 0!==i.minTickSize&&(u="number"==typeof i.tickSize?i.tickSize:i.minTickSize[0]*t[i.minTickSize[1]]);for(var f=0;f<p.length-1&&!(e.delta<(p[f][0]*t[p[f][1]]+p[f+1][0]*t[p[f+1][1]])/2&&p[f][0]*t[p[f][1]]>=u);++f);var m=p[f][0],g=p[f][1];if("year"===g){if(null!==i.minTickSize&&void 0!==i.minTickSize&&"year"===i.minTickSize[1])m=Math.floor(i.minTickSize[0]);else{var v=parseFloat("1e"+Math.floor(Math.log(e.delta/t.year)/Math.LN10)),x=e.delta/t.year/v;m=x<1.5?1:x<3?2:x<7.5?5:10,m*=v}m<1&&(m=1)}e.tickSize=i.tickSize||[m,g];var y=e.tickSize[0],_=y*t[g=e.tickSize[1]];"microsecond"===g?s.setMicroseconds(a(s.getMicroseconds(),y)):"millisecond"===g?s.setMilliseconds(a(s.getMilliseconds(),y)):"second"===g?s.setSeconds(a(s.getSeconds(),y)):"minute"===g?s.setMinutes(a(s.getMinutes(),y)):"hour"===g?s.setHours(a(s.getHours(),y)):"month"===g?s.setMonth(a(s.getMonth(),y)):"quarter"===g?s.setMonth(3*a(s.getMonth()/3,y)):"year"===g&&s.setFullYear(a(s.getFullYear(),y)),_>=t.millisecond&&(_>=t.second?s.setMicroseconds(0):s.setMicroseconds(1e3*s.getMilliseconds())),_>=t.minute&&s.setSeconds(0),_>=t.hour&&s.setMinutes(0),_>=t.day&&s.setHours(0),_>=4*t.day&&s.setDate(1),_>=2*t.month&&s.setMonth(a(s.getMonth(),3)),_>=2*t.quarter&&s.setMonth(a(s.getMonth(),6)),_>=t.year&&s.setMonth(0);var b,w,T=0,k=Number.NaN;do{if(w=k,b=s.getTime(),k=i&&"seconds"===i.timeBase?b/1e3:i&&"microseconds"===i.timeBase?1e3*b:b,o.push(k),"month"===g||"quarter"===g)if(y<1){s.setDate(1);var C=s.getTime();s.setMonth(s.getMonth()+("quarter"===g?3:1));var S=s.getTime();s.setTime(k+T*t.hour+(S-C)*y),T=s.getHours(),s.setHours(0)}else s.setMonth(s.getMonth()+y*("quarter"===g?3:1));else"year"===g?s.setFullYear(s.getFullYear()+y):"seconds"===i.timeBase?s.setTime(1e3*(k+_)):"microseconds"===i.timeBase?s.setTime((k+_)/1e3):s.setTime(k+_)}while(k<e.max&&k!==w);return o}var a=e.plot.saturated.floorInBase,s=function(e,t){var i=new e(t),n=i.setTime.bind(i);i.update=function(e){n(e),e=Math.round(1e3*e)/1e3,this.microseconds=1e3*(e-Math.floor(e))};var o=i.getTime.bind(i);return i.getTime=function(){return o()+this.microseconds/1e3},i.setTime=function(e){this.update(e)},i.getMicroseconds=function(){return this.microseconds},i.setMicroseconds=function(e){var t=o()+e/1e3;this.update(t)},i.setUTCMicroseconds=function(e){this.setMicroseconds(e)},i.getUTCMicroseconds=function(){return this.getMicroseconds()},i.microseconds=null,i.microEpoch=null,i.update(t),i},r={microsecond:1e-6,millisecond:.001,second:1,minute:60,hour:3600,day:86400,month:2592e3,quarter:7776e3,year:525949.2*60},l={microsecond:.001,millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},c={microsecond:1,millisecond:1e3,second:1e6,minute:6e7,hour:36e8,day:864e8,month:2592e9,quarter:7776e9,year:525949.2*60*1e6},u=[[1,"microsecond"],[2,"microsecond"],[5,"microsecond"],[10,"microsecond"],[25,"microsecond"],[50,"microsecond"],[100,"microsecond"],[250,"microsecond"],[500,"microsecond"],[1,"millisecond"],[2,"millisecond"],[5,"millisecond"],[10,"millisecond"],[25,"millisecond"],[50,"millisecond"],[100,"millisecond"],[250,"millisecond"],[500,"millisecond"],[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],h=u.concat([[3,"month"],[6,"month"],[1,"year"]]),d=u.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);e.plot.plugins.push({init:function(i){i.hooks.processOptions.push(function(i){e.each(i.getAxes(),function(e,i){var a=i.options;"time"===a.mode&&(i.tickGenerator=o,i.tickFormatter=function(e,i){var o=n(e,i.options);if(null!=a.timeformat)return t(o,a.timeformat,a.monthNames,a.dayNames);var s,u=i.options.tickSize&&"quarter"==i.options.tickSize[1]||i.options.minTickSize&&"quarter"==i.options.minTickSize[1];s="seconds"===a.timeBase?r:"microseconds"===a.timeBase?c:l;var h,d,p=i.tickSize[0]*s[i.tickSize[1]],f=i.max-i.min,m=a.twelveHourClock?" %p":"",g=a.twelveHourClock?"%I":"%H";if(h="seconds"===a.timeBase?1:"microseconds"===a.timeBase?1e6:1e3,p<s.second){var v=-Math.floor(Math.log10(p/h));-1<String(p).indexOf("25")&&v++,d="%S.%"+v+"s"}else d=p<s.minute?g+":%M:%S"+m:p<s.day?f<2*s.day?g+":%M"+m:"%b %d "+g+":%M"+m:p<s.month?"%b %d":u&&p<s.quarter||!u&&p<s.year?f<s.year?"%b":"%b %Y":u&&p<s.year?f<s.year?"Q%q":"Q%q %Y":"%Y";return t(o,d,a.monthNames,a.dayNames)})})})},options:{xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null,timeBase:"seconds"},yaxis:{timeBase:"seconds"}},name:"time",version:"1.0"}),e.plot.formatDate=t,e.plot.dateGenerator=n,e.plot.dateTickGenerator=o,e.plot.makeUtcWrapper=i}(jQuery),function(e){function t(e,t,i,n,o,a){this.axisName=e,this.position=t,this.padding=i,this.placeholder=n,this.axisLabel=o,this.surface=a,this.width=0,this.height=0,this.elem=null}t.prototype.calculateSize=function(){var e=this.axisName+"Label",t=e+"Layer",i=e+" axisLabels",n=this.surface.getTextInfo(t,this.axisLabel,i);this.labelWidth=n.width,this.labelHeight=n.height,"left"===this.position||"right"===this.position?(this.width=this.labelHeight+this.padding,this.height=0):(this.width=0,this.height=this.labelHeight+this.padding)},t.prototype.transforms=function(e,t,i,n){var o,a,s=[];if(0===t&&0===i||((o=n.createSVGTransform()).setTranslate(t,i),s.push(o)),0!==e){a=n.createSVGTransform();var r=Math.round(this.labelWidth/2);a.setRotate(e,r,0),s.push(a)}return s},t.prototype.calculateOffsets=function(e){var t={x:0,y:0,degrees:0};return"bottom"===this.position?(t.x=e.left+e.width/2-this.labelWidth/2,t.y=e.top+e.height-this.labelHeight):"top"===this.position?(t.x=e.left+e.width/2-this.labelWidth/2,t.y=e.top):"left"===this.position?(t.degrees=-90,t.x=e.left-this.labelWidth/2,t.y=e.height/2+e.top):"right"===this.position&&(t.degrees=90,t.x=e.left+e.width-this.labelWidth/2,t.y=e.height/2+e.top),t.x=Math.round(t.x),t.y=Math.round(t.y),t},t.prototype.cleanup=function(){var e=this.axisName+"Label",t=e+"Layer",i=e+" axisLabels";this.surface.removeText(t,0,0,this.axisLabel,i)},t.prototype.draw=function(e){var t=this.axisName+"Label",i=t+"Layer",n=t+" axisLabels",o=this.calculateOffsets(e),a={position:"absolute",bottom:"",right:"",display:"inline-block","white-space":"nowrap"},s=this.surface.getSVGLayer(i),r=this.transforms(o.degrees,o.x,o.y,s.parentNode);this.surface.addText(i,0,0,this.axisLabel,n,void 0,void 0,void 0,void 0,r),this.surface.render(),Object.keys(a).forEach(function(e){s.style[e]=a[e]})},e.plot.plugins.push({init:function(i){i.hooks.processOptions.push(function(i,n){if(n.axisLabels.show){var o={};i.hooks.axisReserveSpace.push(function(e,i){var n=i.options,a=i.direction+i.n;if(i.labelHeight+=i.boxPosition.centerY,i.labelWidth+=i.boxPosition.centerX,n&&n.axisLabel&&i.show){var s=void 0===n.axisLabelPadding?2:n.axisLabelPadding,r=o[a];r||(r=new t(a,n.position,s,e.getPlaceholder()[0],n.axisLabel,e.getSurface()),o[a]=r),r.calculateSize(),i.labelHeight+=r.height,i.labelWidth+=r.width}}),i.hooks.draw.push(function(t,i){e.each(t.getAxes(),function(e,t){var i=t.options;if(i&&i.axisLabel&&t.show){var n=t.direction+t.n;o[n].draw(t.box)}})}),i.hooks.shutdown.push(function(e,t){for(var i in o)o[i].cleanup()})}})},options:{axisLabels:{show:!0}},name:"axisLabels",version:"3.0"})}(jQuery),function(e){e.plot.plugins.push({init:function(t){function i(e){f.active&&(u(e),t.getPlaceholder().trigger("plotselecting",[a()]))}function n(e){var i=t.getOptions();1===e.which&&null!==i.selection.mode&&(f.currentMode="xy",document.body.focus(),void 0!==document.onselectstart&&null==g.onselectstart&&(g.onselectstart=document.onselectstart,document.onselectstart=function(){return!1}),void 0!==document.ondrag&&null==g.ondrag&&(g.ondrag=document.ondrag,document.ondrag=function(){return!1}),c(f.first,e),f.active=!0)}function o(e){return void 0!==document.onselectstart&&(document.onselectstart=g.onselectstart),void 0!==document.ondrag&&(document.ondrag=g.ondrag),f.active=!1,u(e),p()?s():(t.getPlaceholder().trigger("plotunselected",[]),t.getPlaceholder().trigger("plotselecting",[null])),!1}function a(){if(!p())return null;if(!f.show)return null;var i={},n={x:f.first.x,y:f.first.y},o={x:f.second.x,y:f.second.y};return"x"===l(t)&&(n.y=0,o.y=t.height()),"y"===l(t)&&(n.x=0,o.x=t.width()),e.each(t.getAxes(),function(e,t){if(t.used){var a=t.c2p(n[t.direction]),s=t.c2p(o[t.direction]);i[e]={from:Math.min(a,s),to:Math.max(a,s)}}}),i}function s(){var e=a();t.getPlaceholder().trigger("plotselected",[e]),e.xaxis&&e.yaxis&&t.getPlaceholder().trigger("selected",[{x1:e.xaxis.from,y1:e.yaxis.from,x2:e.xaxis.to,y2:e.yaxis.to}])}function r(e,t,i){return t<e?e:i<t?i:t}function l(e){var t=e.getOptions();return"smart"===t.selection.mode?f.currentMode:t.selection.mode}function c(e,i){var n=t.getPlaceholder().offset(),o=t.getPlotOffset();e.x=r(0,i.pageX-n.left-o.left,t.width()),e.y=r(0,i.pageY-n.top-o.top,t.height()),e!==f.first&&function(e){if(f.first){var t={x:e.x-f.first.x,y:e.y-f.first.y};Math.abs(t.x)<m?f.currentMode="y":Math.abs(t.y)<m?f.currentMode="x":f.currentMode="xy"}}(e),"y"===l(t)&&(e.x=e===f.first?0:t.width()),"x"===l(t)&&(e.y=e===f.first?0:t.height())}function u(e){null!=e.pageX&&(c(f.second,e),p()?(f.show=!0,t.triggerRedrawOverlay()):h(!0))}function h(e){f.show&&(f.show=!1,f.currentMode="",t.triggerRedrawOverlay(),e||t.getPlaceholder().trigger("plotunselected",[]))}function d(e,i){var n,o,a,s,r=t.getAxes();for(var l in r)if((n=r[l]).direction===i&&(e[s=i+n.n+"axis"]||1!==n.n||(s=i+"axis"),e[s])){o=e[s].from,a=e[s].to;break}if(e[s]||(n="x"===i?t.getXAxes()[0]:t.getYAxes()[0],o=e[i+"1"],a=e[i+"2"]),null!=o&&null!=a&&a<o){var c=o;o=a,a=c}return{from:o,to:a,axis:n}}function p(){var e=t.getOptions().selection.minSize;return Math.abs(f.second.x-f.first.x)>=e&&Math.abs(f.second.y-f.first.y)>=e}var f={first:{x:-1,y:-1},second:{x:-1,y:-1},show:!1,currentMode:"xy",active:!1},m=e.plot.uiConstants.SNAPPING_CONSTANT,g={};t.clearSelection=h,t.setSelection=function(e,i){var n;"y"===l(t)?(f.first.x=0,f.second.x=t.width()):(n=d(e,"x"),f.first.x=n.axis.p2c(n.from),f.second.x=n.axis.p2c(n.to)),"x"===l(t)?(f.first.y=0,f.second.y=t.height()):(n=d(e,"y"),f.first.y=n.axis.p2c(n.from),f.second.y=n.axis.p2c(n.to)),f.show=!0,t.triggerRedrawOverlay(),!i&&p()&&s()},t.getSelection=a,t.hooks.bindEvents.push(function(e,t){null!=e.getOptions().selection.mode&&(e.addEventHandler("dragstart",n,t,0),e.addEventHandler("drag",i,t,0),e.addEventHandler("dragend",o,t,0))}),t.hooks.drawOverlay.push(function(t,i){if(f.show&&p()){var n=t.getPlotOffset(),o=t.getOptions();i.save(),i.translate(n.left,n.top);var a=e.color.parse(o.selection.color),s=o.selection.visualization,r=1;"fill"===s&&(r=.8),i.strokeStyle=a.scale("a",r).toString(),i.lineWidth=1,i.lineJoin=o.selection.shape,i.fillStyle=a.scale("a",.4).toString();var c=Math.min(f.first.x,f.second.x)+.5,u=c,h=Math.min(f.first.y,f.second.y)+.5,d=h,m=Math.abs(f.second.x-f.first.x)-1,g=Math.abs(f.second.y-f.first.y)-1;"x"===l(t)&&(g+=h,h=0),"y"===l(t)&&(m+=c,c=0),"fill"===s?(i.fillRect(c,h,m,g),i.strokeRect(c,h,m,g)):(i.fillRect(0,0,t.width(),t.height()),i.clearRect(c,h,m,g),v=i,x=c,y=h,_=m,b=g,w=u,T=d,k=l(t),C=Math.max(0,Math.min(15,_/2-2,b/2-2)),v.fillStyle="#ffffff","xy"===k&&(v.beginPath(),v.moveTo(x,y+C),v.lineTo(x-3,y+C),v.lineTo(x-3,y-3),v.lineTo(x+C,y-3),v.lineTo(x+C,y),v.lineTo(x,y),v.closePath(),v.moveTo(x,y+b-C),v.lineTo(x-3,y+b-C),v.lineTo(x-3,y+b+3),v.lineTo(x+C,y+b+3),v.lineTo(x+C,y+b),v.lineTo(x,y+b),v.closePath(),v.moveTo(x+_,y+C),v.lineTo(x+_+3,y+C),v.lineTo(x+_+3,y-3),v.lineTo(x+_-C,y-3),v.lineTo(x+_-C,y),v.lineTo(x+_,y),v.closePath(),v.moveTo(x+_,y+b-C),v.lineTo(x+_+3,y+b-C),v.lineTo(x+_+3,y+b+3),v.lineTo(x+_-C,y+b+3),v.lineTo(x+_-C,y+b),v.lineTo(x+_,y+b),v.closePath(),v.stroke(),v.fill()),x=w,y=T,"x"===k&&(v.beginPath(),v.moveTo(x,y+15),v.lineTo(x,y-15),v.lineTo(x-3,y-15),v.lineTo(x-3,y+15),v.closePath(),v.moveTo(x+_,y+15),v.lineTo(x+_,y-15),v.lineTo(x+_+3,y-15),v.lineTo(x+_+3,y+15),v.closePath(),v.stroke(),v.fill()),"y"===k&&(v.beginPath(),v.moveTo(x-15,y),v.lineTo(x+15,y),v.lineTo(x+15,y-3),v.lineTo(x-15,y-3),v.closePath(),v.moveTo(x-15,y+b),v.lineTo(x+15,y+b),v.lineTo(x+15,y+b+3),v.lineTo(x-15,y+b+3),v.closePath(),v.stroke(),v.fill())),i.restore()}var v,x,y,_,b,w,T,k,C}),t.hooks.shutdown.push(function(e,t){t.unbind("dragstart",n),t.unbind("drag",i),t.unbind("dragend",o)})},options:{selection:{mode:null,visualization:"focus",color:"#888888",shape:"round",minSize:5}},name:"selection",version:"1.1"})}(jQuery),function(e){function t(e,t){var r=e.filter(i);h=p(t.getContext("2d"));var f,m=r.map(function(e){var t,i,s=new Image;return new Promise((i=e,(t=s).sourceDescription='<info className="'+i.className+'" tagName="'+i.tagName+'" id="'+i.id+'">',t.sourceComponent=i,function(e,s){var r,l,c,u,h,p,f,m,g,v,x,y;t.onload=function(i){t.successfullyLoaded=!0,e(t)},t.onabort=function(i){t.successfullyLoaded=!1,console.log("Can't generate temp image from "+t.sourceDescription+". It is possible that it is missing some properties or its content is not supported by this browser. Source component:",t.sourceComponent),e(t)},t.onerror=function(i){t.successfullyLoaded=!1,console.log("Can't generate temp image from "+t.sourceDescription+". It is possible that it is missing some properties or its content is not supported by this browser. Source component:",t.sourceComponent),e(t)},l=t,"CANVAS"===(r=i).tagName&&(c=r,l.src=c.toDataURL("image/png")),"svg"===r.tagName&&(u=r,h=l,d.isSafari()||d.isMobileSafari()?(p=u,f=h,v=a(v=o(n(document),p)),g=function(e){for(var t="",i=new Uint8Array(e),n=0;n<i.length;n+=16384){t+=String.fromCharCode.apply(null,i.subarray(n,n+16384))}return t}(new(TextEncoder||TextEncoderLite)("utf-8").encode(v)),m="data:image/svg+xml;base64,"+btoa(g),f.src=m):function(e,t){var i=o(n(document),e);i=a(i);var s=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),r=(self.URL||self.webkitURL||self).createObjectURL(s);t.src=r}(u,h)),l.srcImgTagName=r.tagName,x=r,(y=l).genLeft=x.getBoundingClientRect().left,y.genTop=x.getBoundingClientRect().top,"CANVAS"===x.tagName&&(y.genRight=y.genLeft+x.width,y.genBottom=y.genTop+x.height),"svg"===x.tagName&&(y.genRight=x.getBoundingClientRect().right,y.genBottom=x.getBoundingClientRect().bottom)}))});return Promise.all(m).then((f=t,function(e){return function(e,t){var i=function(e,t){var i,n=l;if(0===e.length)n=c;else{var o=e[0].genLeft,a=e[0].genTop,s=e[0].genRight,r=e[0].genBottom,d=0;for(d=1;d<e.length;d++)o>e[d].genLeft&&(o=e[d].genLeft),a>e[d].genTop&&(a=e[d].genTop);for(d=1;d<e.length;d++)s<e[d].genRight&&(s=e[d].genRight),r<e[d].genBottom&&(r=e[d].genBottom);if(s-o<=0||r-a<=0)n=u;else{for(t.width=Math.round(s-o),t.height=Math.round(r-a),d=0;d<e.length;d++)e[d].xCompOffset=e[d].genLeft-o,e[d].yCompOffset=e[d].genTop-a;i=t,void 0!==e.find(function(e){return"svg"===e.srcImgTagName})&&h<1&&(i.width=i.width*h,i.height=i.height*h)}}return n}(e,t);if(i===l)for(var n=t.getContext("2d"),o=0;o<e.length;o++)!0===e[o].successfullyLoaded&&n.drawImage(e[o],e[o].xCompOffset*h,e[o].yCompOffset*h);return i}(e,f)}),s)}function i(e){var t=!0,i=!0;return null==e?i=!1:"CANVAS"===e.tagName&&(e.getBoundingClientRect().right!==e.getBoundingClientRect().left&&e.getBoundingClientRect().bottom!==e.getBoundingClientRect().top||(t=!1)),i&&t&&"visible"===window.getComputedStyle(e).visibility}function n(e){for(var t=e.styleSheets,i=[],n=0;n<t.length;n++)try{for(var o=t[n].cssRules||[],a=0;a<o.length;a++){var s=o[a];i.push(s.cssText)}}catch(e){console.log("Failed to get some css rules")}return i}function o(e,t){return['<svg class="snapshot '+t.classList+'" width="'+t.width.baseVal.value*h+'" height="'+t.height.baseVal.value*h+'" viewBox="0 0 '+t.width.baseVal.value+" "+t.height.baseVal.value+'" xmlns="http://www.w3.org/2000/svg">',"<style>","/* <![CDATA[ */",e.join("\n"),"/* ]]> */","</style>",t.innerHTML,"</svg>"].join("\n")}function a(e){var t="";return e.match(/^<svg[^>]+xmlns="http:\/\/www\.w3\.org\/2000\/svg"/)||(t=e.replace(/^<svg/,'<svg xmlns="http://www.w3.org/2000/svg"')),e.match(/^<svg[^>]+"http:\/\/www\.w3\.org\/1999\/xlink"/)||(t=e.replace(/^<svg/,'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),'<?xml version="1.0" standalone="no"?>\r\n'+t}function s(){return r}var r=-100,l=0,c=-1,u=-2,h=1,d=e.plot.browser,p=d.getPixelRatio;e.plot.composeImages=t,e.plot.plugins.push({init:function(e){e.composeImages=t},name:"composeImages",version:"1.0"})}(jQuery),function(e){function t(e){var t="",i=e.name,n=e.xPos,o=e.yPos,a=e.fillColor,s=e.strokeColor,r=e.strokeWidth;switch(i){case"circle":t='<use xlink:href="#circle" class="legendIcon" x="'+n+'" y="'+o+'" fill="'+a+'" stroke="'+s+'" stroke-width="'+r+'" width="1.5em" height="1.5em"/>';break;case"diamond":t='<use xlink:href="#diamond" class="legendIcon" x="'+n+'" y="'+o+'" fill="'+a+'" stroke="'+s+'" stroke-width="'+r+'" width="1.5em" height="1.5em"/>';break;case"cross":t='<use xlink:href="#cross" class="legendIcon" x="'+n+'" y="'+o+'" stroke="'+s+'" stroke-width="'+r+'" width="1.5em" height="1.5em"/>';break;case"rectangle":t='<use xlink:href="#rectangle" class="legendIcon" x="'+n+'" y="'+o+'" fill="'+a+'" stroke="'+s+'" stroke-width="'+r+'" width="1.5em" height="1.5em"/>';break;case"plus":t='<use xlink:href="#plus" class="legendIcon" x="'+n+'" y="'+o+'" stroke="'+s+'" stroke-width="'+r+'" width="1.5em" height="1.5em"/>';break;case"bar":t='<use xlink:href="#bars" class="legendIcon" x="'+n+'" y="'+o+'" fill="'+a+'" width="1.5em" height="1.5em"/>';break;case"area":t='<use xlink:href="#area" class="legendIcon" x="'+n+'" y="'+o+'" fill="'+a+'" width="1.5em" height="1.5em"/>';break;case"line":t='<use xlink:href="#line" class="legendIcon" x="'+n+'" y="'+o+'" stroke="'+s+'" stroke-width="'+r+'" width="1.5em" height="1.5em"/>';break;default:t='<use xlink:href="#circle" class="legendIcon" x="'+n+'" y="'+o+'" fill="'+a+'" stroke="'+s+'" stroke-width="'+r+'" width="1.5em" height="1.5em"/>'}return t}function i(e,t){for(var i in e)if(e.hasOwnProperty(i)&&e[i]!==t[i])return!0;return!1}e.plot.plugins.push({init:function(n){n.hooks.setupGrid.push(function(n){var o=n.getOptions(),a=n.getData(),s=o.legend.labelFormatter,r=o.legend.legendEntries,l=o.legend.plotOffset,c=function(t,i,n){var o=i,a=t.reduce(function(e,t,i){var n=o?o(t.label,t):t.label;if(!t.hasOwnProperty("label")||n){var a={label:n||"Plot "+(i+1),color:t.color,options:{lines:t.lines,points:t.points,bars:t.bars}};e.push(a)}return e},[]);if(n)if(e.isFunction(n))a.sort(n);else if("reverse"===n)a.reverse();else{var s="descending"!==n;a.sort(function(e,t){return e.label===t.label?0:e.label<t.label!==s?1:-1})}return a}(a,s,o.legend.sorted),u=n.getPlotOffset();((function(e,t){if(!e||!t)return!0;if(e.length!==t.length)return!0;var n,o,a;for(n=0;n<t.length;n++){if(o=t[n],a=e[n],o.label!==a.label)return!0;if(o.color!==a.color)return!0;if(i(o.options.lines,a.options.lines))return!0;if(i(o.options.points,a.options.points))return!0;if(i(o.options.bars,a.options.bars))return!0}return!1})(r,c)||i(l,u))&&function(i,n,o,a){if(null!=n.legend.container?e(n.legend.container).html(""):o.find(".legend").remove(),n.legend.show){var s,r,l,c,u=n.legend.legendEntries=a,h=n.legend.plotOffset=i.getPlotOffset(),d=[],p=0,f="",m=n.legend.position,g=n.legend.margin,v={name:"",label:"",xPos:"",yPos:""};d[p++]='<svg class="legendLayer" style="width:inherit;height:inherit;">',d[p++]='<rect class="background" width="100%" height="100%"/>',d[p++]='<defs><symbol id="line" fill="none" viewBox="-5 -5 25 25"><polyline points="0,15 5,5 10,10 15,0"/></symbol><symbol id="area" stroke-width="1" viewBox="-5 -5 25 25"><polyline points="0,15 5,5 10,10 15,0, 15,15, 0,15"/></symbol><symbol id="bars" stroke-width="1" viewBox="-5 -5 25 25"><polyline points="1.5,15.5 1.5,12.5, 4.5,12.5 4.5,15.5 6.5,15.5 6.5,3.5, 9.5,3.5 9.5,15.5 11.5,15.5 11.5,7.5 14.5,7.5 14.5,15.5 1.5,15.5"/></symbol><symbol id="circle" viewBox="-5 -5 25 25"><circle cx="0" cy="15" r="2.5"/><circle cx="5" cy="5" r="2.5"/><circle cx="10" cy="10" r="2.5"/><circle cx="15" cy="0" r="2.5"/></symbol><symbol id="rectangle" viewBox="-5 -5 25 25"><rect x="-2.1" y="12.9" width="4.2" height="4.2"/><rect x="2.9" y="2.9" width="4.2" height="4.2"/><rect x="7.9" y="7.9" width="4.2" height="4.2"/><rect x="12.9" y="-2.1" width="4.2" height="4.2"/></symbol><symbol id="diamond" viewBox="-5 -5 25 25"><path d="M-3,15 L0,12 L3,15, L0,18 Z"/><path d="M2,5 L5,2 L8,5, L5,8 Z"/><path d="M7,10 L10,7 L13,10, L10,13 Z"/><path d="M12,0 L15,-3 L18,0, L15,3 Z"/></symbol><symbol id="cross" fill="none" viewBox="-5 -5 25 25"><path d="M-2.1,12.9 L2.1,17.1, M2.1,12.9 L-2.1,17.1 Z"/><path d="M2.9,2.9 L7.1,7.1 M7.1,2.9 L2.9,7.1 Z"/><path d="M7.9,7.9 L12.1,12.1 M12.1,7.9 L7.9,12.1 Z"/><path d="M12.9,-2.1 L17.1,2.1 M17.1,-2.1 L12.9,2.1 Z"/></symbol><symbol id="plus" fill="none" viewBox="-5 -5 25 25"><path d="M0,12 L0,18, M-3,15 L3,15 Z"/><path d="M5,2 L5,8 M2,5 L8,5 Z"/><path d="M10,7 L10,13 M7,10 L13,10 Z"/><path d="M15,-3 L15,3 M12,0 L18,0 Z"/></symbol></defs>';var x=0,y=[],_=window.getComputedStyle(document.querySelector("body"));for(c=0;c<u.length;++c){var b=c%n.legend.noColumns;s=u[c],v.label=s.label;var w=i.getSurface().getTextInfo("",v.label,{style:_.fontStyle,variant:_.fontVariant,weight:_.fontWeight,size:parseInt(_.fontSize),lineHeight:parseInt(_.lineHeight),family:_.fontFamily}).width;y[b]?w>y[b]&&(y[b]=w+48):y[b]=w+48}for(c=0;c<u.length;++c)b=c%n.legend.noColumns,s=u[c],l="",v.label=s.label,v.xPos=x+3+"px",x+=y[b],(c+1)%n.legend.noColumns==0&&(x=0),v.yPos=1.5*Math.floor(c/n.legend.noColumns)+"em",s.options.lines.show&&s.options.lines.fill&&(v.name="area",v.fillColor=s.color,l+=t(v)),s.options.bars.show&&(v.name="bar",v.fillColor=s.color,l+=t(v)),s.options.lines.show&&!s.options.lines.fill&&(v.name="line",v.strokeColor=s.color,v.strokeWidth=s.options.lines.lineWidth,l+=t(v)),s.options.points.show&&(v.name=s.options.points.symbol,v.strokeColor=s.color,v.fillColor=s.options.points.fillColor,v.strokeWidth=s.options.points.lineWidth,l+=t(v)),r='<text x="'+v.xPos+'" y="'+v.yPos+'" text-anchor="start"><tspan dx="2em" dy="1.2em">'+v.label+"</tspan></text>",d[p++]="<g>"+l+r+"</g>";d[p++]="</svg>",null==g[0]&&(g=[g,g]),"n"===m.charAt(0)?f+="top:"+(g[1]+h.top)+"px;":"s"===m.charAt(0)&&(f+="bottom:"+(g[1]+h.bottom)+"px;"),"e"===m.charAt(1)?f+="right:"+(g[0]+h.right)+"px;":"w"===m.charAt(1)&&(f+="left:"+(g[0]+h.left)+"px;");var T=6;for(c=0;c<y.length;++c)T+=y[c];var k,C=1.6*Math.ceil(u.length/n.legend.noColumns);n.legend.container?(k=e(d.join("")).appendTo(n.legend.container)[0],n.legend.container.style.width=T+"px",n.legend.container.style.height=C+"em"):((k=e('<div class="legend" style="position:absolute;'+f+'">'+d.join("")+"</div>").appendTo(o)).css("width",T+"px"),k.css("height",C+"em"),k.css("pointerEvents","none"))}}(n,o,n.getPlaceholder(),c)})},options:{legend:{show:!1,noColumns:1,labelFormatter:null,container:null,position:"ne",margin:5,sorted:null}}
1,name:"legend",version:"1.0"})}(jQuery)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(22);!function(e){var t=function(){e(".flexmls_leadgen_button").on("click",function(){e(".flexmls_connect__form_message").length&&e(".flexmls_connect__form_message").remove();var t=this,i=e(t).data("form"),n=e(t).html(),o=e(i).find('input[name="success"]').val(),a=e(i).find(".flexmls_connect__form_footer"),s=e(i).find(".flexmls_loading_svg");e(s).show();var r={action:"fmcleadgen_submit",nonce:"undefined"!==typeof fmcAjax&&fmcAjax.nonce?fmcAjax.nonce:"",name:e(i).find('input[name="name"]').val(),email:e(i).find('input[name="email"]').val(),message_body:e(i).find('textarea[name="message_body"]').val(),honeypot:e(i).find('input[name="color"]').val(),success:e(i).find('input[name="success"]').val(),source:e(i).find('input[name="source"]').val()};e(i).find('input[name="address"]').length&&(r.address=e(i).find('input[name="address"]').val(),r.city=e(i).find('input[name="city"]').val(),r.state=e(i).find('input[name="state"]').val(),r.zip=e(i).find('input[name="zip"]').val()),e(i).find('input[name="phone"]').length&&(r.phone=e(i).find('input[name="phone"]').val()),e(t).prop("disabled",!0).html("Sending"),e.post(fmcAjax.ajaxurl,r,function(r){0===r.success?e(a).before('<div class="flexmls_connect__form_message flexmls_connect__form_message-error">'+r.message+"</div>"):(e(a).before('<div class="flexmls_connect__form_message flexmls_connect__form_message-success">'+o+"</div>"),e(i).find('input[type="text"], input[type="email"], input[type="tel"], textarea').each(function(){e(this).val("")}
1)),e(s).hide(),e(t).html(n).prop("disabled",!1)},"json")})};e(document).ready(function(){t()})}(jQuery);var o={};o.createCookie=function(e,t,i){if(i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var o="; expires="+n.toGMTString()}else var o="";document.cookie=e+"="+t+o+"; path=/"},o.readCookie=function(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var o=i[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null},o.isValidEmailAddress=function(e){return 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).test(e)},o.ensureGmapsBootstrap=function(){"undefined"===typeof window.fmcGmapsWhenReady&&(window.fmcGmapsQueue=[],window.fmcGmapsWhenReady=function(e){window.fmcGmapsLoaded?e():window.fmcGmapsQueue.push(e)},window.fmcGmapsReady=function(){window.fmcGmapsLoaded=!0,window.fmcGmapsQueue.forEach(function(e){e()}),window.fmcGmapsQueue=[]})},o.loadGoogleMapsLazy=function(e,t){if(e&&e.maps_url&&(o.ensureGmapsBootstrap(),"function"===typeof t&&window.fmcGmapsWhenReady(t),!window.fmcGmapsLoaded&&!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]'))){var i=document.createElement("script");i.src=e.maps_url,i.async=!0,document.head.appendChild(i)}},o.detailMapResize=function(e,t){if(t&&e&&"undefined"!==typeof google&&google.maps&&google.maps.event){var i=parseFloat(e.getAttribute("latitude")),n=parseFloat(e.getAttribute("longitude")),o=function(){google.maps.event.trigger(t,"resize"),isNaN(i)||isNaN(n)||t.setCenter(new google.maps.LatLng(i,n))};setTimeout(o,0)}},o.initDetailMap=function(){var e=jQuery("#flexmls_connect__map_canvas");if(e.length&&!e.data("flexmls_map")&&"undefined"!==typeof google&&google.maps&&"function"===typeof google.maps.LatLng){var t=!0,i=new google.maps.LatLng(e.attr("latitude"),e.attr("longitude")),n={zoom:16,center:i,mapTypeId:google.maps.MapTypeId.ROADMAP};google.maps.marker&&google.maps.marker.AdvancedMarkerElement&&(n.mapId="FLEXMLS_MAP_ID");var o=new google.maps.Map(document.getElementById("flexmls_connect__map_canvas"),n);e.data("flexmls_map",o),google.maps.event.addListener(o,"idle",function(){if(t){jQuery(".flexmls_connect__tab[group='flexmls_connect__map_group'], .flexmls_connect__tab[group='flexmls_connect_map_group']").hasClass("active")||jQuery("#flexmls_connect__map_group").css("display","none"),t=!1}});var a=google.maps.marker&&google.maps.marker.AdvancedMarkerElement,s=jQuery(".flexmls_connect__sr_detail").attr("title");a?new a({position:i,map:o,title:s}):new google.maps.Marker({position:i,map:o,title:s})}},o.openLazyListingDetailMap=function(e){o.loadGoogleMapsLazy(window.fmcListingDetailMapLazyConfig,function(){o.initDetailMap(),"function"===typeof e&&e()})},o.loadLazyListingDetailMapWhenVisible=function(e,t){if(e&&"1"===e.getAttribute("data-fmc-map-lazy")){if(jQuery(e).data("flexmls_map"))return void("function"===typeof t&&t());var i=function(){o.openLazyListingDetailMap(function(){o.detailMapResize(e,jQuery(e).data("flexmls_map")),"function"===typeof t&&t()})};if(!("IntersectionObserver"in window))return void i();var n=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(n.disconnect(),i())})},{root:null,rootMargin:"0px",threshold:0});n.observe(e)}},o.inputValidate=function(e,t){t?jQuery(e).data("connect-error",!1).removeClass("flexmls_connect__error_color").addClass("flexmls_connect__active_color"):jQuery(e).data("connect-error",!0).removeClass("flexmls_connect__active_color").addClass("flexmls_connect__error_color")},o.showDialog=function(e,t){t?jQuery(e).data("connect-error",!1).removeClass("flexmls_connect__error_color").addClass("flexmls_connect__active_color"):jQuery(e).data("connect-error",!0).removeClass("flexmls_connect__active_color").addClass("flexmls_connect__error_color")},o.showStatTooltip=function(e,t,i){jQuery('<div id="flexmls_connect__stat_tooltip">'+i+"</div>").css({top:t+5,left:e+5}).appendTo("body").fadeIn(200)},o.addCommas=function(e){e=new String(Math.floor(100*e)/100);for(var t=e.split("."),i=t[0],n=/(\d+)(\d{3})/;n.test(i);)i=i.replace(n,"$1,$2");return i+(t.length>1?"."+e.split(".")[1]:"")},o.establishColorbox=function(e,t,i,n){var a=jQuery(e),s=t||a.parent(),r=i||jQuery(".flexmls_connect__hidden",s),n=n||"fmcPhotos_additional_photos";jQuery(e).flexmls_connect__colorbox({photo:!0,width:window!=window.top?"500px":window.innerWidth-20+"px",height:window!=window.top?"500px":window.innerHeight-20+"px",top:window!=window.top&&"20px",html:"fmcPhotos_additional_photos"!=n&&"Loading...",onOpen:function(){"true"!==a.attr("data-connect-ajax")&&jQuery.getJSON(fmcAjax.ajaxurl,{action:n,id:a.attr("rel"),nonce:"undefined"!==typeof fmcAjax&&fmcAjax.nonce?fmcAjax.nonce:""},function(e){if(e&&jQuery.isArray(e)&&e.length>0)for(var t="fmcPhotos_additional_photos"==n?1:0,i=t;i<e.length;i++)switch(n){case"fmcPhotos_additional_vtours":"https:"===location.protocol&&0!=e[i].uri.indexOf("https:")?r.append(jQuery("<div class='flexmls_popup' rel='"+a.attr("rel")+"'><a target='_blank' href='"+e[i].uri+"' title='"+e[i].name.replace(/'/g,"\\'")+"' class='flexmls_connect_vtour_link_alternative'>"+e[i].name.replace(/'/g,"\\'")+" open in new window</a></div>")):r.append(jQuery("<div class='flexmls_popup' rel='"+a.attr("rel")+"'><iframe src='"+e[i].uri+"' title='"+e[i].name.replace(/'/g,"\\'")+"'></iframe></div>"));break;case"fmcPhotos_additional_videos":var l=jQuery("<div>").addClass("flexmls_popup").attr("rel",a.attr("rel"));e[i].html.indexOf("iframe")>=0?l.html(e[i].html):l.html(jQuery("<iframe>").attr({src:e[i].html})),r.append(l);break;case"fmcPhotos_additional_photos":r.append(jQuery("<a class='flexmls_popup' href='"+e[i].photo+"'rel='"+a.attr("rel")+"' title='"+e[i].caption.replace(/'/g,"\\'")+"'></a>"))}switch(a.attr("data-connect-ajax","true"),n){case"fmcPhotos_additional_vtours":case"fmcPhotos_additional_videos":jQuery("div.flexmls_popup",r).each(function(){jQuery(this).flexmls_connect__colorbox({width:window!=window.top?"500px":"95%",height:window!=window.top?"500px":"95%",top:window!=window.top&&"20px",html:jQuery(this).html(),rel:a.attr("rel"),onComplete:function(){o.addTitleToColorbox(s)},onClosed:function(){jQuery(".flexmls_connect__colorbox_address").remove()}})});break;case"fmcPhotos_additional_photos":jQuery("a",r).flexmls_connect__colorbox({photo:!0,width:window!=window.top?"500px":"95%",height:window!=window.top?"500px":"95%",top:window!=window.top&&"20px",onComplete:function(){o.addTitleToColorbox(s),setTimeout(function(){jQuery("#flexmls_connect__cboxPrevious").attr("aria-label","Previous image"),jQuery("#flexmls_connect__cboxNext").attr("aria-label","Next image"),jQuery("#flexmls_connect__cboxSlideshow").attr("aria-label","Start slideshow"),jQuery("#flexmls_connect__cboxClose").attr("aria-label","Close image viewer")},50)},onClosed:function(){jQuery(".flexmls_connect__colorbox_address").remove()}})}"fmcPhotos_additional_photos"!=n&&(a.attr("rel",null).removeClass("flexmls_connect__cboxElement").removeData("c
1olorbox"),a.click(function(){jQuery("div.flexmls_popup",r).click()})),a.click()})},onComplete:function(){o.addTitleToColorbox(s),o.addColorboxAccessibility(),o.addNavigationAccessibility(),setTimeout(o.addColorboxAccessibility,50),setTimeout(o.addNavigationAccessibility,50),setTimeout(o.addColorboxAccessibility,100),setTimeout(o.addNavigationAccessibility,100),setTimeout(o.addColorboxAccessibility,200),setTimeout(o.addNavigationAccessibility,200)},onClosed:function(){jQuery(".flexmls_connect__colorbox_address").remove()}})},o.addTitleToColorbox=function(e){if(0==jQuery(".flexmls_connect__colorbox_address").length){var t=e.attr("title");e.attr("link")&&(t='<a href="'+e.attr("link")+'"'+e.attr("target")+">"+t+"</a>"),jQuery("<div>").addClass("flexmls_connect__colorbox_address").html(t).prependTo("#flexmls_connect__cboxLoadedContent")}},o.addColorboxAccessibility=function(){var e=jQuery("#flexmls_connect__cboxPrevious"),t=jQuery("#flexmls_connect__cboxNext"),i=jQuery("#flexmls_connect__cboxSlideshow"),n=jQuery("#flexmls_connect__cboxClose");e.length&&!e.attr("aria-label")&&(e.attr("aria-label","Previous image"),0===e.find(".sr-only").length&&e.html('<span class="sr-only">Previous image</span>')),t.length&&!t.attr("aria-label")&&(t.attr("aria-label","Next image"),0===t.find(".sr-only").length&&t.html('<span class="sr-only">Next image</span>')),i.length&&!i.attr("aria-label")&&(i.attr("aria-label","Start slideshow"),0===i.find(".sr-only").length&&i.html('<span class="sr-only">Start slideshow</span>')),n.length&&!n.attr("aria-label")&&(n.attr("aria-label","Close image viewer"),0===n.find(".sr-only").length&&n.html('<span class="sr-only">Close image viewer</span>'))},o.addNavigationAccessibility=function(){jQuery("a.previous").attr("aria-label","Previous image"),jQuery("a.next").attr("aria-label","Next image"),jQuery('a[href="#"]').each(function(){var e=jQuery(this),t=e.text().toLowerCase().trim();"previous"!==t||e.attr("aria-label")||e.attr("aria-label","Previous image"),"next"!==t||e.attr("aria-label")||e.attr("aria-label","Next image")})},o.changeFilmstrip=function(e,t,i){if(t){var e=1*jQuery(".flexmls_connect__photo_switcher span",i).text()-1,n=jQuery(".flexmls_connect__filmstrip img",i).length;e="prev"==t?e-1:e+1,e<0&&(e=n-1),e>=n&&(e=0)}var o=jQuery(".flexmls_connect__filmstrip img",i)[e];jQuery(".flexmls_connect__main_image",i);jQuery(".flexmls_connect__main_image, .flexmls_connect__resize_image",i).attr("src",jQuery(o).attr("fullsrc")),jQuery(".flexmls_connect__photo_switcher span",i).text(e+1)},o.print=function(e){jQuery(".flexmls_connect__not_printable").removeClass("flexmls_connect__not_printable");for(var t=jQuery(e).closest(".flexmls_connect__sr_detail");t[0]!=jQuery("html")[0];)t.siblings().addClass("flexmls_connect__not_printable"),t=t.parent();window.print()},o.scheduleShowing=function(e){var t=(new Date).getTime(),i=e.id||e.listingKey||"",n=e.listingId||"",o=e.title,a=e.subject,s=e.agentName,r=e.disclaimer,l=(void 0===e.emailRequired||e.emailRequired,void 0!==e.phoneRequired&&e.phoneRequired),c=(void 0!==e.addressRequired&&e.addressRequired,"");c+='<div role="dialog" aria-labelledby="showing-form-title" aria-modal="true">',c+="<form class='flexmls_connect__schedule_showing_form'>",c+='<h3 id="showing-form-title">'+o+"</h3>",c+="<div id=\"flexmls_connect__showing_error\" style='color:red;'>&nbsp;</div>",c+='<input id="flexmls_connect_shedule_to_name" type="hidden" name="to_name" value=\''+s+"'>",c+='<input id="flexmls_connect_shedule_listkey" type="hidden" name="listing_key" value=\''+i+"'>",c+='<input id="flexmls_connect_shedule_listing_id" type="hidden" name="listing_id" value=\''+n+"'>",c+='<table class="flexmls_connect__schedule_showing_table">',c+="<tbody>",c+="<tr>",c+='<td><input id="flexmls_connect_shedule_from_name" name="from_name" type="text" size=50 style="width:340px;" placeholder="Your Name" aria-label="Your Name" required></td>',c+="</tr>",c+="<tr>",c+='<td><input id="flexmls_connect_shedule_from" name="from" type="email" size=50 style="width:340px;" placeholder="Email Address" aria-label="Email Address" required></td>',c+="</tr>",l&&(c+="<tr>",c+='<td><input id="flexmls_connect_shedule_phone" name="flexmls_connect__phone" type="tel" maxlength=20 style="width:340px;" placeholder="Phone Number (Required)" aria-label="Phone Number (Required)" required></td>',c+="</tr>"),c+="<tr>",c+="<td><strong>To: "+s+"</strong></td>",c+="</tr>",c+="<tr>",c+='<td><input id="flexmls_connect_shedule_subject" name="subject" type="text" size=50 style="width:340px;" placeholder="Subject" aria-label="Subject" value="Schedule a showing for '+a+'"><input type=text id="flexmls_connect__important" name="flexmls_connect__important'+t+'" autocomplete="false" tabindex="-1" value="" style="display:none;" /></td>',c+="</tr>",c+="<tr>",c+='<td><textarea cols="50" id="flexmls_connect_shedule_message" name="message" rows="7" style="width:340px;" placeholder="Your Message" aria-label="Your Message"></textarea>',c+='<input type="hidden" id="flexmls_connect_shedule_page_lead" value="'+window.location+'"></td>',c+="</tr>",c+="<tr>",c+='<td colspan="2" style="text-align: center;">',c+=void 0!==e.disclaimer?"<small class='flexmls-small-text'>"+r+"</small>":"",c+="</td>",c+="</tr>",c+="<tr>",c+='<td colspan=2><center><input type="submit" value="Send" name="Send"></center></td>',c+="</tr>",c+="</tbody></table>",c+="</form>
1",c+="</div>";var u=window.innerWidth<=480?"95%":"500px";jQuery.flexmls_connect__colorbox({width:u,html:c}),jQuery(".flexmls_connect__schedule_showing_form").submit(function(e){var t={action:"fmcListingDetails_schedule_showing",nonce:"undefined"!==typeof fmcAjax&&fmcAjax.nonce?fmcAjax.nonce:"",flexmls_connect__subject:jQuery("#flexmls_connect_shedule_subject").val(),flexmls_connect__listing_key:jQuery("#flexmls_connect_shedule_listkey").val(),flexmls_connect__listing_id:jQuery("#flexmls_connect_shedule_listing_id").val(),flexmls_connect__from:jQuery("#flexmls_connect_shedule_from").val(),flexmls_connect__from_name:jQuery("#flexmls_connect_shedule_from_name").val(),flexmls_connect__to_name:jQuery("#flexmls_connect_shedule_to_name").val(),flexmls_connect__phone:jQuery("#flexmls_connect_shedule_phone").length?jQuery("#flexmls_connect_shedule_phone").val():"",flexmls_connect__message:jQuery("#flexmls_connect_shedule_message").val(),flexmls_connect__page_lead:jQuery("#flexmls_connect_shedule_page_lead").val(),flexmls_connect__important:jQuery("#flexmls_connect__important").val()};console.log(fmcAjax),jQuery.post(fmcAjax.ajaxurl,t,function(e){"SUCCESS"==e?(jQuery("#flexmls_connect__success_message").html("Showing request has been sent.<br>This request is not yet a confirmed appointment.").show(),jQuery("#flexmls_connect__cboxClose").click()):jQuery("#flexmls_connect__showing_error").html(e)}
1),e.preventDefault(),e.stopPropagation()})},o.contactForm=function(e){var t=(new Date).getTime(),i=e.title,n=e.subject,a=void 0!==e.phoneRequired&&e.phoneRequired,s=(void 0!==e.addressRequired&&e.addressRequired,e.listingId||e.id||""),r=e.listingKey||"",l=e.disclaimer,c="";c+='<div role="dialog" aria-labelledby="contact-form-title" aria-modal="true">',c+="<form class='flexmls_connect__contact_form'>",c+="<h3 id=\"contact-form-title\" class='flexmls-primary-color-font'>"+i+"</h3>",c+="<div id=\"flexmls_connect__showing_error\" style='color:red;'>&nbsp;</div>",c+='<input id="flexmls_connect__listid" type="hidden" name="listing_id" value=\''+s+"'>",c+='<input id="flexmls_connect__listkey" type="hidden" name="listing_key" value=\''+r+"'>",c+='<table class="flexmls_connect__schedule_showing_table">',c+="<tbody>",c+="<tr>",c+='<td><input id="flexmls_connect__from_name" name="from_name" type="text" size=50 style="width:340px;" placeholder="Your Name" aria-label="Your Name" required></td>',c+="</tr>",c+="<tr>",c+='<td><input id="flexmls_connect__from" name="from" type="email" size=50 style="width:340px;" placeholder="Email Address" aria-label="Email Address" required></td>',c+="</tr>",c+="<tr>",c+=a?'<td><input id="flexmls_connect__phone" name="phone" type="tel" maxlength=20 style="width:340px;" placeholder="Phone Number (Required)" aria-label="Phone Number (Required)" required></td>':'<td><input id="flexmls_connect__phone" name="phone" type="tel" maxlength=20 style="width:340px;" placeholder="Phone Number" aria-label="Phone Number"></td>',c+="</tr>",c+="<tr>",c+='<td><input id="flexmls_connect__subject" name="subject" type="text" size=50 style="width:340px;" placeholder="Subject" aria-label="Subject" value="'+n+'"><input type=text id="flexmls_connect__important" name="flexmls_connect__important'+t+'" autocomplete="false" tabindex="-1" style="display:none;" /></td>',c+="</tr>",c+="<tr>",c+='<td><textarea cols="50" id="flexmls_connect__message" name="message" rows="7" style="width:340px;" placeholder="Your Message" aria-label="Your Message"></textarea>',c+='<input type="hidden" id="flexmls_connect__page_lead" value="'+window.location+'"></td>',c+="</tr>",c+="<tr>",c+='<td colspan="2" style="text-align: center;">',c+=void 0!==e.disclaimer?"<small class='flexmls-small-text'>"+l+"</small>":"",c+="</td>",c+="</tr>",c+="<tr>",c+='<td colspan=2><center><input id="SendOne" type="submit" value="Send" name="Send" class=\'flexmls-btn flexmls-primary-color-background\'></center></td>',c+="</tr>",c+="</tbody></table>",c+="</form>",c+="</div>";var u=window.innerWidth<=480?"95%":"500px";jQuery.flexmls_connect__colorbox({width:u,html:c}),jQuery(".flexmls_connect__contact_form").submit(function(e){var t={action:"fmcListingDetails_contact",nonce:"undefined"!==typeof fmcAjax&&fmcAjax.nonce?fmcAjax.nonce:"",flexmls_connect__subject:jQuery("#flexmls_connect__subject").val(),flexmls_connect__from:jQuery("#flexmls_connect__from").val(),flexmls_connect__from_name:jQuery("#flexmls_connect__from_name").val(),flexmls_connect__phone:jQuery("#flexmls_connect__phone").val(),flexmls_connect__message:jQuery("#flexmls_connect__message").val(),flexmls_connect__page_lead:jQuery("#flexmls_connect__page_lead").val(),flexmls_connect__important:jQuery("#flexmls_connect__important").val(),flexmls_connect__listing_id:jQuery("#flexmls_connect__listid").val(),flexmls_connect__listing_key:jQuery("#flexmls_connect__listkey").val()};console.log(t),jQuery("#SendOne").attr("disabled","disabled"),jQuery("#SendOne").attr("value","Sending..."),jQuery.post(fmcAjax.ajaxurl,t,function(e){if("SUCCESS"===String(e).trim()){var t=s?jQuery("#flexmls_connect__success_message"+s):jQuery();t.length||(t=jQuery("#flexmls_connect__success_message")),t.html("Your message has been sent. The agent will respond soon.").show(),jQuery("#flexmls_connect__cboxClose").click(),t.length&&t[0].scrollIntoView&&setTimeout(function(){t[0].scrollIntoView({behavior:"smooth",block:"nearest"})},150),"undefined"!==typeof o._contactSuccessHideTimer&&clearTimeout(o._contactSuccessHideTimer),o._contactSuccessHideTimer=setTimeout(function(){t.fadeOut(400)},8e3)}else jQuery("#flexmls_connect__showing_error").html(e),jQuery("#SendOne").removeAttr("disabled")}),e.preventDefault(),e.stopPropagation()})},o.edit_url_value=function(e,t,i){i=i||document.URL;var n="",o=i.split("?"),a=o[0],s=o[1],r="";if(s){var o=s.split("&");for(var l in o)-1==o[l].indexOf(e)&&(n+=r+o[l],r="&")}return a+"?"+n+(r+e)+"="+t},jQuery(document).ready(function(){jQuery("button[href]",".flexmls_connect__button").click(function(){document.location.href=jQuery(this).attr("href")}),jQuery(".flexmls_connect__carousel").each(function(e,t){jQuery(t).loopedCarousel({items:jQuery(this).attr("data-connect-horizontal"),grid_size:jQuery(this).attr("data-connect-vertical"),vertical:parseInt(j
1Query(this).attr("data-connect-vertical"))>parseInt(jQuery(this).attr("data-connect-horizontal")),autoStart:parseInt(jQuery(this).attr("data-connect-autostart"))});var i=(jQuery(".flexmls_connect__container",jQuery(t)).width(),jQuery(t).prev("p"));i.length>0&&""===i.text().replace(/\s/g,"")&&jQuery(t).addClass(i.css("text-align")),jQuery("div.flexmls_connect__slides div a.flexmls_popup",jQuery(this)).each(function(e){o.establishColorbox(jQuery(this))}),jQuery(".flexmls_connect__disclaimer a, .flexmls_connect__badge, .flexmls_connect__badge_image",jQuery(t)).click(function(){var e=window.innerWidth<=480?"90%":"400px";jQuery.flexmls_connect__colorbox({width:e,html:jQuery(".flexmls_connect__disclaimer_text",jQuery(t)).html().replace(/<script.*?<\/script>/g,"")})})}),jQuery(".flexmls_connect_log_out").click(function(e){e.preventDefault(),e.stopPropagation(),jQuery.post(fmcAjax.ajaxurl,{action:"fmcAccount_portal",nonce:"undefined"!==typeof fmcAjax&&fmcAjax.nonce?fmcAjax.nonce:""},function(e){window.location=window.location})});var e=[];if(jQuery(".flexmls_connect__market_stats").each(function(t,i){var n=[],a=jQuery(i).prev("p");
1if(a.length>0&&""===a.text().replace(/\s/g,"")&&jQuery(i).addClass(a.css("text-align")),0==e.length){var s=new Date;s.setHours(0),s.setMinutes(0),s.setSeconds(0);for(var r=0;r<12;r++)s.setMonth(s.getMonth()-1,1),e.push(s.getTime());e.reverse()}jQuery("li",jQuery(i)).each(function(t,i){for(var o={label:jQuery(i).attr("data-connect-label"),data:jQuery(i).text().split(",")},a=0;a<o.data.length&&!(a>11);a++)o.data[a]=[e[a],o.data[a]];n.push(o)}),jQuery.plot(jQuery(".flexmls_connect__market_stats_graph",jQuery(i)),n,{yaxis:{tickFormatter:function(e,t){return o.addCommas(e)}},xaxis:{mode:"time",timeBase:"milliseconds",timeformat:"%b-%y",monthNames:["J","F","M","A","M","J","J","A","S","O","N","D"],minTickSize:[1,"month"],ticks:12},legend:{show:!0,container:jQuery(".flexmls_connect__market_stats_legend",jQuery(i))[0]},grid:{clickable:!1,hoverable:!0,autoHighlight:!0,mouseActiveRadius:6}});var l=null;jQuery(".flexmls_connect__market_stats_graph",jQuery(i)).bind("plothover",function(e,t,i){if(i){if(l!=i.datapoint){l=i.datapoint,jQuery("#flexmls_connect__stat_tooltip").remove();var n=i.datapoint[0].toFixed(2),a=o.addCommas(i.datapoint[1]),s=new Date(parseInt(n));o.showStatTooltip(i.pageX,i.pageY,a+" ("+i.series.label+" for "+(s.getMonth()+1)+"/"+s.getFullYear()+")")}}else jQuery("#flexmls_connect__stat_tooltip").remove(),l=null})}),jQuery.extend({getUrlVars:function(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t.push(decodeURI(e[0])),t[decodeURI(e[0])]=decodeURI(e[1]);return t},getUrlVar:function(e){return jQuery.getUrlVars()[e]}}),jQuery(".flexmls_connect__search").each(function(e,t){new n.a(t)}),jQuery.ajaxSetup({error:function(e,t,i){console.log("Ajax Error Detected")}}),jQuery("input[data-connect-default], textarea[data-connect-default]").each(function(e,t){var i=jQuery(t),n=i.val()?"flexmls_connect__active_color":"flexmls_connect__inactive_color",o=i.val()?i.val():i.attr("data-connect-default");i.addClass(n).val(o).focus(function(){i.val()===i.attr("data-connect-default")&&i.val(""),i.removeClass("flexmls_connect__inactive_color").removeClass("flexmls_connect__error_color").addClass("flexmls_connect__active_color")}).blur(function(){""===i.val()&&i.val(i.attr("data-connect-default")).removeClass("flexmls_connect__active_color").removeClass("flexmls_connect__inactive_color").removeClass("flexmls_connect__error_color").addClass(i.data("connect-error")?"flexmls_connect__error_color":"flexmls_connect__inactive_color")})}),jQuery("form[data-connect-validate=true]").submit(function(){var e=!1;if(jQuery("input[data-connect-validate='text'], textarea[data-connect-default]",jQuery(this)).each(function(t,i){""===jQuery(i).val()||jQuery(i).val()===jQuery(i).attr("data-connect-default")?(o.inputValidate(i,!1),e=!0):o.inputValidate(i,!0)}),jQuery("input[data-connect-validate='phone']",jQuery(this)).each(function(t,i){/\d{7,}/i.test(jQuery(i).val().replace(/[\s()+-]|ext\.?/gi,""))?o.inputValidate(i,!0):(o.inputValidate(i,!1),e=!0)}),jQuery("input[data-connect-validate='email']",jQuery(this)).each(function(t,i){o.isValidEmailAddress(jQuery(i).val())?o.inputValidate(i,!0):(o.inputValidate(i,!1),e=!0)}),jQuery("input[data-connect-validate='captcha']",jQuery(this)).each(function(t,i){jQuery(i).val()===jQuery("input[name='captcha-answer']").val()?o.inputValidate(i,!0):(o.inputValidate(i,!1),e=!0)}),e)return!1;if("true"===jQuery(this).attr("data-connect-ajax")){var t=jQuery(this);return jQuery.getJSON(jQuery(this).attr("action"),jQuery(this).serialize(),function(e){var i;i="true"==e.success?jQuery("input[name='success-message']",t).val():e.message?e.message:jQuery("input[name='success-message']",t).val(),i=i.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;");var n=window.innerWidth<=480&&"90%";jQuery.flexmls_connect__colorbox({width:n,html:"<center style='padding-right:27px'>"+i+"</center>"}),jQuery("input[type='text'], textarea",t).val("")}),!1}}),jQuery(".flexmls_connect__page_content").length>0&&(jQuery(".flexmls_connect__page_content").hover(function(){jQuery(this).addClass("over")},function(){jQuery(this).removeClass("over")}),jQuery("a.photo",".flexmls_connect__page_content").each(function(e){o.establishColorbox(jQuery(this),jQuery(this).closest(".flexmls_connect__sr_result"))}),jQuery("a.photo",".flexmls_connect__page_content").on("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),jQuery(this).flexmls_connect__colorbox({open:!0})}),jQuery("a.photo_click",".flexmls_connect__page_content").click(function(e){e.preventDefault();var t=jQuery("a.photo",jQuery(this).closest(".flexmls_connect__sr_result")).first();t.length&&t.flexmls_connect__colorbox({open:!0})}),jQuery("a.video_click",".flexmls_connect__page_content").each(function(e){var t=jQuery(this).closest(".flexmls_connect__sr_result");o.establishColorbox(jQuery(this),t,jQuery(".flexmls_connect__hidden2",t),"fmcPhotos_additional_videos")}),jQuery("a.tour_click",".flexmls_connect__page_content").each(function(e){var t=jQuery(this).closest(".flexmls_connect__sr_result");o.establishColorbox(jQuery(this),t,jQuery(".flexmls_connect__hidden3",t),"fmcPhotos_additional_vtours")}),jQuery(".flexmls_connect__disclaimer a, .flexmls_connect__badge, .flexmls_connect__badge_image",".flexmls_connect__page_content").click(function(){var e=window.innerWidth<=480?"90%":"400px";jQuery.flexmls_connect__colorbox({width:e,html:jQuery(".flexmls_connect__disclaimer_text",".flexmls_connect__page_content").html().replace(/<script.*?<\/script>/g,"")})}),jQuery("button[href]",".flexmls_connect__page_content").click(function(){document.location.href=jQuery(this).attr("href")}),jQuery(".flexmls_connect_hasJavaScript").show()),o.getV2PhotoModalProvider=function(e){var t="auto";return e&&e.length&&(t=(e.attr("data-v2-photo-modal-provider")||"auto").toLowerCase()),-1===jQuery.inArray(t,["auto","cbox","third_party","none"])&&(t="auto"),t},o.updateV2PhotoModalTrigger=function(e){e&&e.length||(e=jQuery(".flexmls-listing-details.flexmls-v2-widget").first());var t=jQuery(".flexmls-v2-photo-modal-trigger",e).first();if(t.length){var i=jQuery("#listing-slideshow .owl-item.active",e).first(),n=i.find("img[data-photo-index]").length>0;t.prop("hidden",!n)}},o.isThirdPartyLightboxOpen=function(){var e=[".mfp-wrap.mfp-ready:visible",".fancybox-container:visible",".fancybox__container:visible",".pswp.pswp--open:visible",".lg-outer.lg-visible:visible",".featherlight:visible"];return jQuery(e.join(",")).length>0},jQuery(".flexmls_connect__page_content, .flexmls_connect__search_results_v2").length>0&&(0==navigator.cookieEnabled&&jQuery(".listingsperpage").hide(),jQuery(".listingsperpage").change(function(){var e=this.value,t=new Date;t.setTime(t.getTime()+432e6);var i="; expires="+t.toGMTString();t=null,document.cookie=escape("flexmlswordpressplugin")+"="+escape(e)+i+"; path=/",window.location.href=o.edit_url_value("pg","1")}
1),jQuery(".flex_orderby").change(function(){var e=o.edit_url_value("pg","1");e=o.edit_url_value("OrderBy",this.value,e),window.location.href=e})),jQuery(".flexmls_connect__sr_detail, .flexmls-listing-details.flexmls-v2-widget").length>0){var t=function(){jQuery(".select2-search__field").attr("aria-label","Search for an address, city, zip code, or MLS number")},i=jQuery(".flexmls-listing-details.flexmls-v2-widget").first(),a=(i.attr("data-v2-photo-click-action")||"modal").toLowerCase(),s=o.getV2PhotoModalProvider(i);-1===jQuery.inArray(a,["detail","modal"])&&(a="modal");var r="modal"===a&&"none"!==s,l=r&&("auto"===s||"cbox"===s);if(i.length){var c=jQuery("#listing-slideshow",i);c.length&&(o.updateV2PhotoModalTrigger(i),c.on("changed.owl.carousel initialized.owl.carousel translated.owl.carousel",function(){o.updateV2PhotoModalTrigger(i)}))}jQuery(".fmc_document_pdf").click(function(){window.open(jQuery(this).attr("Value"))}),jQuery(".fmc_document_colorbox").click(function(){jQuery.flexmls_connect__colorbox({href:jQuery(this).attr("value")})}),jQuery("button[href]",".flexmls_connect__prev_next").click(function(){document.location.href=jQuery(this).attr("href")}),jQuery(".flexmls_connect__filmstrip img").click(function(){o.changeFilmstrip(1*jQuery(this).attr("ind"),null,jQuery(this).closest(".flexmls_connect__sr_detail"))}).hover(function(){jQuery(this).addClass("filmstrip_over")},function(){jQuery(this).removeClass("filmstrip_over")}),jQuery(".flexmls_connect__photo_switcher").each(function(e){jQuery("button:first",jQuery(this)).click(function(){o.changeFilmstrip(null,"prev",jQuery(this).closest(".flexmls_connect__sr_detail"))}),jQuery("button:last",jQuery(this)).click(function(){o.changeFilmstrip(null,"next",jQuery(this).closest(".flexmls_connect__sr_detail"))})}),l&&jQuery(".flexmls_connect__hidden a").each(function(e){o.establishColorbox(jQuery(this),jQuery(".flexmls_connect__sr_detail"))}),jQuery("button.photo_click, .flexmls_connect__main_image").click(function(e){if(r){var t=-1;if(i.length){var n=jQuery("#listing-slideshow .owl-item.active img[data-photo-index]",i).first();if(!n.length)return;t=parseInt(n.attr("data-photo-index"),10)}(isNaN(t)||t<0)&&(t=parseInt(jQuery(".flexmls_connect__photo_switcher span").text(),10)-1),(isNaN(t)||t<0)&&(t=0);var a=jQuery(".flexmls_connect__hidden a"),l=a[t];if(l)return"cbox"===s?(e.preventDefault(),e.stopImmediatePropagation(),void jQuery(l).flexmls_connect__colorbox({open:!0})):void("auto"===s&&(e.preventDefault(),window.setTimeout(function(){o.isThirdPartyLightboxOpen()||jQuery(l).flexmls_connect__colorbox({open:!0})},120)))}}),jQuery("button.video_click",".flexmls_connect__sr_detail").each(function(e){var t=jQuery(this).closest(".flexmls_connect__sr_detail");o.establishColorbox(jQuery(this),t,jQuery(".flexmls_connect__hidden2",t),"fmcPhotos_additional_videos")}),jQuery("button.tour_click",".flexmls_connect__sr_detail").each(function(e){var t=jQuery(this).closest(".flexmls_connect__sr_detail");o.establishColorbox(jQuery(this),t,jQuery(".flexmls_connect__hidden3",t),"fmcPhotos_additional_vtours")}),jQuery(".flexmls_connect__tab").click(function(){if(!jQuery(this).hasClass("active")){var e=this,t=e.getAttribute("group")||jQuery(e).attr("group");if(!t)return;var i=e.parentNode,n=i&&i.parentNode,a=n?n.querySelectorAll(".flexmls_connect__tab_group"):[];if(!a.length){var s=jQuery(e).closest(".flexmls_connect__sr_detail");n=s.length?s[0]:document.body,a=n.querySelectorAll(".flexmls_connect__tab_group")}for(var r=0;r<a.length;r++)a[r].style.setProperty("display","none");var l=document.getElementById(t);l||"flexmls_connect_map_group"!==t||(l=document.getElementById("flexmls_connect__map_group")),l&&l.style.setProperty("display","block");var c=n||document.body;if(jQuery(c).find(".flexmls_connect__tab").removeClass("active"),jQuery(e).addClass("active"),l&&"flexmls_connect__map_group"===l.id){var u=l.querySelector("#flexmls_connect__map_canvas"),h=u&&jQuery(u).data("flexmls_map");u&&"1"===u.getAttribute("data-fmc-map-lazy")&&!h?o.openLazyListingDetailMap(function(){h=u&&jQuery(u).data("flexmls_map"),o.detailMapResize(u,h)}):h&&o.detailMapResize(u,h)}}});var u=document.getElementById("flexmls_connect__map_canvas");if(u&&o.loadLazyListingDetailMapWhenVisible(u),jQuery('.flexmlsLocationSearch[data-select2-accessible="true"]').on("select2:open",function(){jQuery(this).removeAttr("aria-hidden"),setTimeout(function(){jQuery(".select2-search__field").attr("aria-label","Search for an address, city, zip code, or MLS number")},100)}),window.MutationObserver){new MutationObserver(function(e){e.forEach(function(e){"childList"===e.type&&e.addedNodes.forEac
1h(function(e){if(1===e.nodeType){e.classList&&e.classList.contains("select2-search__field")&&e.setAttribute("aria-label","Search for an address, city, zip code, or MLS number");var t=e.querySelectorAll&&e.querySelectorAll(".select2-search__field");t&&t.forEach(function(e){e.setAttribute("aria-label","Search for an address, city, zip code, or MLS number")})}})})}).observe(document.body,{childList:!0,subtree:!0})}else jQuery(document).on("DOMNodeInserted",".select2-search__field",function(){jQuery(this).attr("aria-label","Search for an address, city, zip code, or MLS number")}),jQuery(document).on("DOMNodeInserted",".select2-container",function(){setTimeout(function(){jQuery(".select2-search__field").attr("aria-label","Search for an address, city, zip code, or MLS number")},50)});if(jQuery('.flexmls_connect__search_field[data-connect-type="number"]').each(function(){var e=jQuery(this),t=e.find('input[name*="Min"]'),i=e.find('input[name*="Max"]'),n=e.find("label").text().trim();t.length&&i.length&&(t.attr("aria-label","Minimum "+n.toLowerCase()),i.attr("aria-label","Maximum "+n.toLowerCase()))}),o.addColorboxAccessibility(),o.addNavigationAccessibility(),t(),setInterval(function(){o.addColorboxAccessibility(),o.addNavigationAccessibility(),t()},500),jQuery(window).on("load",function(){o.addColorboxAccessibility(),o.addNavigationAccessibility(),t()}),jQuery(document).on("click",'[data-connect-ajax="true"]',function(){setTimeout(o.addColorboxAccessibility,100),setTimeout(o.addNavigationAccessibility,100),setTimeout(o.addColorboxAccessibility,300),setTimeout(o.addNavigationAccessibility,300),setTimeout(o.addColorboxAccessibility,500),setTimeout(o.addNavigationAccessibility,500)}),window.MutationObserver){new MutationObserver(function(e){e.forEach(function(e){if("childList"===e.type){var t=jQuery("#flexmls_connect__cboxPrevious"),i=jQuery("#flexmls_connect__cboxNext"),n=jQuery("#flexmls_connect__cboxSlideshow"),o=jQuery("#flexmls_connect__cboxClose");t.length&&!t.attr("aria-label")&&t.attr("aria-label","Previous image"),i.length&&!i.attr("aria-label")&&i.attr("aria-label","Next image"),n.length&&!n.attr("aria-label")&&n.attr("aria-label","Start slideshow"),o.length&&!o.attr("aria-label")&&o.attr("aria-label","Close image viewer");var a=jQuery(".select2-search__field");a.length&&!a.attr("aria-label")&&a.attr("aria-label","Search for an address, city, zip code, or MLS number");var s=jQuery("a.previous"),r=jQuery("a.next");s.length&&!s.attr("aria-label")&&s.attr("aria-label","Previous image"),r.length&&!r.attr("aria-label")&&r.attr("aria-label","Next image")}})}).observe(document.body,{childList:!0,subtree:!0})}jQuery(document).keydown(function(e){0==jQuery(".flexmls_connect__colorbox_address").length&&(37==e.keyCode?jQuery(".flexmls_connect__photo_switcher button:first").click():39==e.keyCode&&jQuery(".flexmls_connect__photo_switcher button:last").click())})}}),window.flexmls_connect=o},function(e,t,i){"use strict";function n(e){return null==e?"":String(e).replace(/[$,\s]/g,"")}function o(e){var t=n(e);if(""===t)return"";var i=parseInt(t,10);return isNaN(i)?String(e):"undefined"!==typeof Intl?new Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(i):String(i).replace(/\B(?=(\d{3})+(?!\d))/g,",")}i.d(t,"a",function(){return s});var a=i(0),s=function(e){function t(t){this.widgetContainer=e(t),this.locationSearchInput=e(this.widgetContainer).find(".flexmlsLocationSearch"),this.portalSlug=this.locationSearchInput.attr("data-portal-slug"),this.init()}return t.prototype={constructor:t,init:function(){this.locationSearchInput.length&&(this.locationSearch=new a.LocationSearch(this.locationSearchInput,{portalSlug:this.portalSlug})),this.widgetContainer.find("form").submit(this.handleSubmit.bind(this)),this.bindPropertyTypeCheckboxes(),this.bindPropertyTypeTabs(),this.bindPropertySubTypeTabs(),this.bindPriceSqftThousands()},bindPriceSqftThousands:function(){this.widgetContainer.find('div[data-connect-type="number"]').each(function(){var t=e(this).attr("data-connect-field");"Price"!==t&&"Sqft"!==t||e(this).find("input.text").each(function(){var t=e(this),i=t.attr("data-connect-default");t.on("blur.flexmlsThousands",function(){var e=t.val();if(""!==e&&e!==i){var a=n(e);""===a||isNaN(parseInt(a,10))||t.val(o(a))}}),t.on("focus.flexmlsThousands",function(){var e=t.val();""!==e&&e!==i&&t.val(n(e))})})})},normalizeNumericFieldsForSubmit:function(){e("div[data-connect-type='number']",this.widgetContainer).each(function(){e(this).find("input[type='text']").each(function(){var t=e(this),i=t.attr("data-connect-default"),o=t.val();o!==i&&""!==o&&t.val(n(o))})})},bindPropertyTypeTabs:function(){var t=this,i=this.widgetContainer.find(".flexmls_connect__search_property_type--tabs");if(i.length){var n=i.children(".flexmls_connect__search_property_type_tablist").first().find(".flexmls_property_type_tab");i.find(".flexmls_connect__search_property_type_panels-sr .flexmls_property_type_panel");n.on("click",function(){var o=e(this),a=o.attr("data-target"),s=o.attr("data-property-type");if(a){if(o.hasClass("is-active"))return void t.resetPropertyTypeTabsState(i,n);n.removeClass("is-active").attr("aria-selected","false"),o.addClass("is-active").attr("aria-selected","true"),i.find('input[name="PropertySubType[]"]').prop("checked",!1);var r=i.find(".flexmls_connect__search_property_subtype_row");if(i.find(".flexmls_connect__search_property_subtype--tabs").removeClass("is-active"),s){var l=i.find('.flexmls_connect__search_property_subtype--tabs[data-property-type="'+s+'"]');l.length?(l.addClass("is-active"),r.addClass("is-visible"),t.syncPropertySubTypeTabsInBlock(l)):r.removeClass("is-visible")}else r.removeClass("is-visible");i.find('input[name="PropertyType[]"]').prop("checked",!1);var c=i.find(a),u=c.find('input[name="PropertyType[]"]').first();u.length&&u.prop("checked",!0)}});var o=i.find('input[name="PropertyType[]"]:checked');o.length>1&&o.slice(1).prop("checked",!1);var a=i.find('input[name="PropertyType[]"]:checked').first();if(a.length){var s=a.closest(".flexmls_property_type_panel"),r=s.attr("id");if(r){var l=n.filter('[data-target="#'+r+'"]');
1if(l.length)return void l.trigger("click")}}t.resetPropertyTypeTabsState(i,n)}},resetPropertyTypeTabsState:function(e,t){t.removeClass("is-active").attr("aria-selected","false"),e.find('input[name="PropertyType[]"]').prop("checked",!1),e.find('input[name="PropertySubType[]"]').prop("checked",!1),e.find(".flexmls_connect__search_property_subtype--tabs").removeClass("is-active"),e.find(".flexmls_connect__search_property_subtype_row").removeClass("is-visible"),e.find(".flexmls_property_subtype_tab").removeClass("is-active").attr("aria-selected","false"),e.find(".flexmls_property_subtype_panel").attr("hidden",!0).removeClass("is-active")},bindPropertySubTypeTabs:function(){var t=this.widgetContainer.find(".flexmls_connect__search_property_type--tabs");t.length&&t.find(".flexmls_connect__search_property_subtype--tabs").each(function(){var t=e(this),i=t.find(".flexmls_property_subtype_tab"),n=t.find(".flexmls_property_subtype_panel");i.on("click",function(){var o=e(this),a=o.attr("data-target");if(a){i.removeClass("is-active").attr("aria-selected","false"),o.addClass("is-active").attr("aria-selected","true"),n.attr("hidden",!0).removeClass("is-active");var s=t.find(a);s.removeAttr("hidden").addClass("is-active"),t.find('input[name="PropertySubType[]"]').prop("checked",!1);var r=s.find('input[name="PropertySubType[]"]').first();r.length&&r.prop("checked",!0)}});var o=t.find('input[name="PropertySubType[]"]:checked');o.length>1&&o.slice(1).prop("checked",!1);var a=t.find('input[name="PropertySubType[]"]:checked').first();if(a.length){var s=a.closest(".flexmls_property_subtype_panel"),r=s.attr("id");if(r){var l=i.filter('[data-target="#'+r+'"]');l.length&&l.trigger("click")}}})},syncPropertySubTypeTabsInBlock:function(e){if(e&&e.length){var t=e.find('input[name="PropertySubType[]"]:checked').first();if(t.length){var i=t.closest(".flexmls_property_subtype_panel").attr("id");if(i){var n=e.find('.flexmls_property_subtype_tab[data-target="#'+i+'"]');if(n.length)return void n.trigger("click")}}e.find(".flexmls_property_subtype_tab").removeClass("is-active").attr("aria-selected","false"),e.find(".flexmls_property_subtype_panel").attr("hidden",!0).removeClass("is-active")}},bindPropertyTypeCheckboxes:function(){if(!this.widgetContainer.find(".flexmls_connect__search_property_type--tabs").length){var t=e(".flexmls_connect__search_new_property_type",this.widgetContainer),i=this;t.find('input[name="PropertyType[]"]').on("change",function(){var n=t.find('input[name="PropertyType[]"]:checked');if(1===n.length){var o="#flexmls_connect__search_new_subtypes_for_"+n.val();e(o,i.widgetContainer).show()}else e(".flexmls_connect__search_new_subtypes",i.widgetContainer).hide(),e(".flexmls_connect__search_new_subtypes input",i.widgetContainer).prop("checked",!1)}).change()}},getLocations:function(){var e={},t=[];null!=this.locationSearch&&this.locationSearch.selectedValues().forEac
1h(function(e){t.push(e.fieldName+"="+encodeURIComponent(e.value))});for(var i=0;i<t.length;i++){var n=t[i].split("="),o=n.shift();e[o]?e[o]+=","+n.join("="):e[o]=n.join("=")}return e},handleSubmit:function(t){this.normalizeNumericFieldsForSubmit();var i=e("input[name='fmc_do']",this.widgetContainer).length>0,o=this.getLocations();if(i){var a="";for(var s in o)a+=(""===a?"":"&")+s+"="+o[s];if(e("input[name='PropertyType[]']",this.widgetContainer).length){var r=[];e("input[name='PropertyType[]']",this.widgetContainer).each(function(e,t){this.checked&&r.push(this.value)}),r.length&&(a+="&PropertyType="+r.join(","))}else if(e("input[name='PropertyType']",this.widgetContainer).length>0){var l=e("input[name='PropertyType']",this.widgetContainer).val();l&&(a+="&PropertyType="+l)}e("div[data-connect-type='number']",this.widgetContainer).each(function(t,i){var o=e(i).attr("data-connect-field");if(o){var s=e("input",i).first(),r=e("input",i).last(),l=s.attr("data-connect-default"),c=r.attr("data-connect-default"),u=n(e.trim(s.val())),h=n(e.trim(r.val()));u===l&&(u=""),h===c&&(h=""),""===u&&""===h||(a+=u===h?"&"+o+"="+u:""===u?"&"+o+"=<"+h:""===h?"&"+o+"=>"+u:"&"+o+"="+u+","+h),s.val()===l&&s.val(""),r.val()===c&&r.val("")}}),e("input[name='query']",this.widgetContainer).val(a)}else{var c=e("div.query",this.widgetContainer);e("input",c).remove();for(var s in o)e("<input type='hidden' name='"+s+"' value=\""+decodeURIComponent(o[s])+'" />').appendTo(c);e("div[data-connect-type='number']",this.widgetContainer).each(function(t,i){var o=e("input",i).first(),a=e("input",i).last();n(o.val())==o.attr("data-connect-default")&&(o.val(""),o.prop("disabled",!0)),n(a.val())==a.attr("data-connect-default")&&(a.val(""),a.prop("disabled",!0))})}}},t}(jQuery)},function(e,t){!function(e,t,i){function n(i,n,o){var a=t.createElement(i);return n&&(a.id=J+n),o&&(a.style.cssText=o),e(a)}function o(){return i.innerHeight?i.innerHeight:e(i).height()}function a(t,i){i!==Object(i)&&(i={}),this.cache={},this.el=t,this.value=function(t){var n;return void 0===this.cache[t]&&(n=e(this.el).attr("data-cbox-"+t),void 0!==n?this.cache[t]=n:void 0!==i[t]?this.cache[t]=i[t]:void 0!==Z[t]&&(this.cache[t]=Z[t])),this.cache[t]},this.get=function(t){var i=this.value(t);return e.isFunction(i)?i.call(this.el,this):i}}function s(e){var t=S.length,i=(H+e)%t;return i<0?t+i:i}function r(e,t){return Math.round((/%/.test(e)?("x"===t?j.width():o())/100:1)*parseInt(e,10))}function l(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function c(e,t){return e.get("retinaUrl")&&i.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function u(e){"contains"in y[0]&&!y[0].contains(e.target)&&e.target!==x[0]&&(e.stopPropagation(),y.focus())}function h(e){h.str!==e&&(y.add(x).removeClass(h.str).addClass(e),h.str=e)}function d(t){H=0,t&&!1!==t&&"nofollow"!==t?(S=e("."+ee).filter(function(){return new a(this,e.data(this,K)).get("rel")===t}),-1===(H=S.index(D.el))&&(S=S.add(D.el),H=S.length-1)):S=e(D.el)}function p(i){e(t).trigger(i),re.triggerHandler(i)}function f(i){var o;if(!Y){o=e(i).data(K),D=new a(i,o),d(D.get("rel"));var s=D.get("photo")||D.get("rel"),l=e("#"+J+"Previous"),c=e("#"+J+"Next"),f=e("#"+J+"Slideshow");if(s&&S.length>1?(l.show(),c.show(),D.get("slideshow")?f.show():f.hide()):(l.hide(),c.hide(),f.hide()),!B){B=V=!0,h(D.get("className")),y.css({visibility:"hidden",display:"block",opacity:""}),M=n(le,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(M),R=w.height()+C.height()+b.outerHeight(!0)-b.height(),W=T.width()+k.width()+b.outerWidth(!0)-b.width(),F=M.outerHeight(!0),$=M.outerWidth(!0);var m=r(D.get("initialWidth"),"x"),g=r(D.get("initialHeight"),"y"),_=D.get("maxWidth"),j=D.get("maxHeight");D.w=(!1!==_?Math.min(m,r(_,"x")):m)-$-W,D.h=(!1!==j?Math.min(g,r(j,"y")):g)-F-R,M.css({width:"",height:D.h}),X.position(),p(te),D.get("onOpen"),O.add(z).hide(),y.focus(),D.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",u,!0),re.one(ae,function(){t.removeEventListener("focus",u,!0)})),D.get("returnFocus")&&re.one(ae,function(){e(D.el).focus()})}var P=parseFloat(D.get("opacity"));
vendor: 6,559 bytes, line 1
1x.css({opacity:P===P?P:"",cursor:D.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),D.get("closeButton")?I.html(D.get("close")).appendTo(b):I.appendTo("<div/>"),v()}}function m(){y||(U=!1,j=e(i),y=n(le).attr({id:K,class:!1===e.support.opacity?J+"IE":"",role:"dialog",tabindex:"-1"}).hide(),x=n(le,"Overlay").hide(),Q=e([n(le,"LoadingOverlay")[0],n(le,"LoadingGraphic")[0]]),_=n(le,"Wrapper"),b=n(le,"Content").append(z=n(le,"Title"),L=n(le,"Current"),Q),E=e('<button type="button"/>').attr({id:J+"Previous"}).html('<span class="sr-only">Previous image</span>').hide(),N=e('<button type="button"/>').attr({id:J+"Next"}).html('<span class="sr-only">Next image</span>').hide(),A=n("button","Slideshow").html('<span class="sr-only">Start slideshow</span>').hide(),b.append(E,N,A),I=e('<button type="button"/>').attr({id:J+"Close"}).html('<span class="sr-only">Close image viewer</span>'),_.append(n(le).append(n(le,!1),w=n(le,!1),n(le,!1)),n(le,!1,"clear:left").append(T=n(le,!1),b,k=n(le,!1)),n(le,!1,"clear:left").append(n(le,!1),C=n(le,!1),n(le,!1))).find("div div").css({float:"left"}),P=n(le,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=N.add(E).add(L).add(A)),t.body&&!y.parent().length&&e(t.body).append(x,y.append(_,P))}function g(){function i(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),f(this))}return!!y&&(U||(U=!0,N.click(function(){X.next()}),E.click(function(){X.prev()}),I.click(function(){X.close()}),x.click(function(){D.get("overlayClose")&&X.close()}),e(t).bind("keydown."+J,function(e){var t=e.keyCode;B&&D.get("escKey")&&27===t&&(e.preventDefault(),X.close()),B&&D.get("arrowKey")&&S[1]&&!e.altKey&&(37===t?(e.preventDefault(),E.click()):39===t&&(e.preventDefault(),N.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+J,"."+ee,i):e("."+ee).live("click."+J,i)),!0)}function v(){var t,o,a,s=X.prep,u=++ce;if(V=!0,q=!1,p(se),p(ie),D.get("onLoad"),D.h=D.get("height")?r(D.get("height"),"y")-F-R:D.get("innerHeight")&&r(D.get("innerHeight"),"y"),D.w=D.get("width")?r(D.get("width"),"x")-$-W:D.get("innerWidth")&&r(D.get("innerWidth"),"x"),D.mw=D.w,D.mh=D.h,D.get("maxWidth")&&(D.mw=r(D.get("maxWidth"),"x")-$-W,D.mw=D.w&&D.w<D.mw?D.w:D.mw),D.get("maxHeight")&&(D.mh=r(D.get("maxHeight"),"y")-F-R,D.mh=D.h&&D.h<D.mh?D.h:D.mh),t=D.get("href"),G=setTimeout(function(){Q.show()},100),D.get("inline")){var h=e(t);a=e("<div>").hide().insertBefore(h),re.one(se,function(){a.replaceWith(h)}),s(h)}else D.get("iframe")?s(" "):D.get("html")?s(D.get("html")):l(D,t)?(t=c(D,t),q=new Image,e(q).addClass(J+"Photo").bind("error",function(){s(n(le,"Error").html(D.get("imgError")))}).one("load",function(){u===ce&&setTimeout(function(){var t;e.each(["alt","longdesc","aria-describedby"],function(t,i){var n=e(D.el).attr(i)||e(D.el).attr("data-"+i);n&&q.setAttribute(i,n)}),D.get("retinaImage")&&i.devicePixelRatio>1&&(q.height=q.height/i.devicePixelRatio,q.width=q.width/i.devicePixelRatio),D.get("scalePhotos")&&(o=function(){q.height-=q.height*t,q.width-=q.width*t},D.mw&&q.width>D.mw&&(t=(q.width-D.mw)/q.width,o()),D.mh&&q.height>D.mh&&(t=(q.height-D.mh)/q.height,o())),D.h&&(q.style.marginTop=Math.max(D.mh-q.height,0)/2+"px"),S[1]&&(D.get("loop")||S[H+1])&&(q.style.cursor="pointer",q.onclick=function(){X.next()}),q.style.width=q.width+"px",q.style.height=q.height+"px",s(q)},1)}),q.src=t):t&&P.load(t,D.get("data"),function(t,i){u===ce&&s("error"===i?n(le,"Error").html(D.get("xhrError")):e(this).contents())})}var x,y,_,b,w,T,k,C,S,j,M,P,Q,z,L,A,N,E,I,O,D,R,W,F,$,H,q,B,V,Y,G,X,U,Z={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return e(this).attr("href")},title:function(){return this.title}},K="flexmls_connect__colorbox",J="flexmls_connect__cbox",ee=J+"Element",te=J+"_open",ie=J+"_load",ne=J+"_complete",oe=J+"_cleanup",ae=J+"_closed",se=J+"_purge",re=e("<a/>"),le="div",ce=0,ue={},he=function(){function e(){clearTimeout(s)}function t(){(D.get("loop")||S[H+1])&&(e(),s=setTimeout(X.next,D.get("slideshowSpeed")))}function i(){A.html(D.get("slideshowStop")).unbind(l).one(l,n),re.bind(ne,t).bind(ie,e),y.removeClass(r+"off").addClass(r+"on")}function n(){e(),re.unbind(ne,t).unbind(ie,e),A.html(D.get("slideshowStart")).unbind(l).one(l,function(){X.next(),i()}),y.removeClass(r+"on").addClass(r+"off")}function o(){a=!1,A.hide(),e(),re.unbind(ne,t).unbind(ie,e),y.removeClass(r+"off "+r+"on")}var a,s,r=J+"Slideshow_",l="click."+J;return function(){a?D.get("slideshow")||(re.unbind(oe,o),o()):D.get("slideshow")&&S[1]&&(a=!0,re.one(oe,o),D.get("slideshowAuto")?i():n(),A.show())}}();e[K]||(e(m),X=e.fn[K]=e[K]=function(t,i){var n,o=this;if(t=t||{},e.isFunction(o))o=e("<a/>"),t.open=!0;else if(!o[0])return o;return o[0]?(m(),g()&&(i&&(t.onComplete=i),o.each(function(){var i=e.data(this,K)||{};e.data(this,K,e.extend(i,t))}).addClass(ee),n=new a(o[0],t),n.get("open")&&f(o[0])),o):o},X.position=function(t,i){function n(){w[0].style.width=C[0].style.width=b[0].style.width=parseInt(y[0].style.width,10)-W+"px",b[0].style.height=T[0].style.height=k[0].style.height=parseInt(y[0].style.height,10)-R+"px"}var a,s,l,c=0,u=0,h=y.offset();if(j.unbind("resize."+J),y.css({top:-9e4,left:-9e4}),s=j.scrollTop(),l=j.scrollLeft(),D.get("fixed")?(h.top-=s,h.left-=l,y.css({position:"fixed"})):(c=s,u=l,y.css({position:"absolute"})),!1!==D.get("right")?u+=Math.max(j.width()-D.w-$-W-r(D.get("right"),"x"),0):!1!==D.get("left")?u+=r(D.get("left"),"x"):u+=Math.round(Math.max(j.width()-D.w-$-W,0)/2),!1!==D.get("bottom")?c+=Math.max(o()-D.h-F-R-r(D.get("bottom"),"y"),0):!1!==D.get("top")?c+=r(D.get("top"),"y"):c+=Math.round(Math.max(o()-D.h-F-R,0)/2),y.css({top:h.top,left
vendor: 23,974 bytes, line 1
1:h.left,visibility:"visible"}),_[0].style.width=_[0].style.height="9999px",a={width:D.w+$+W,height:D.h+F+R,top:c,left:u},t){var d=0;e.each(a,function(e){if(a[e]!==ue[e])return void(d=t)}),t=d}ue=a,t||y.css(a),y.dequeue().animate(a,{duration:t||0,complete:function(){n(),V=!1,_[0].style.width=D.w+$+W+"px",_[0].style.height=D.h+F+R+"px",D.get("reposition")&&setTimeout(function(){j.bind("resize."+J,X.position)},1),e.isFunction(i)&&i()},step:n})},X.resize=function(e){var t;B&&(e=e||{},e.width&&(D.w=r(e.width,"x")-$-W),e.innerWidth&&(D.w=r(e.innerWidth,"x")),M.css({width:D.w}),e.height&&(D.h=r(e.height,"y")-F-R),e.innerHeight&&(D.h=r(e.innerHeight,"y")),e.innerHeight||e.height||(t=M.scrollTop(),M.css({height:"auto"}),D.h=M.height()),M.css({height:D.h}),t&&M.scrollTop(t),X.position("none"===D.get("transition")?0:D.get("speed")))},X.prep=function(i){if(B){var o,r="none"===D.get("transition")?0:D.get("speed");M.remove(),M=n(le,"LoadedContent").append(i),M.hide().appendTo(P.show()).css({width:function(){return D.w=D.w||M.width(),D.w=D.mw&&D.mw<D.w?D.mw:D.w,D.w}(),overflow:D.get("scrolling")?"auto":"hidden"}).css({height:function(){return D.h=D.h||M.height(),D.h=D.mh&&D.mh<D.h?D.mh:D.h,D.h}()}).prependTo(b),P.hide(),e(q).css({float:"none"}),h(D.get("className")),o=function(){function i(){!1===e.support.opacity&&y[0].style.removeAttribute("filter")}var n,o,u=S.length;B&&(o=function(){clearTimeout(G),Q.hide(),p(ne),D.get("onComplete")},z.html(D.get("title")).show(),M.show(),u>1?("string"===typeof D.get("current")&&L.html(D.get("current").replace("{current}",H+1).replace("{total}",u)).show(),N[D.get("loop")||H<u-1?"show":"hide"]().html(D.get("next")),E[D.get("loop")||H?"show":"hide"]().html(D.get("previous")),he(),D.get("preloading")&&e.each([s(-1),s(1)],function(){var i,n=S[this],o=new a(n,e.data(n,K)),s=o.get("href");s&&l(o,s)&&(s=c(o,s),i=t.createElement("img"),i.src=s)})):O.hide(),D.get("iframe")?(n=t.createElement("iframe"),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),D.get("scrolling")||(n.scrolling="no"),e(n).attr({src:D.get("href"),name:(new Date).getTime(),class:J+"Iframe",allowFullScreen:!0}).one("load",o).appendTo(M),re.one(se,function(){n.src="//about:blank"}),D.get("fastIframe")&&e(n).trigger("load")):o(),"fade"===D.get("transition")?y.fadeTo(r,1,i):i())},"fade"===D.get("transition")?y.fadeTo(r,0,function(){X.position(0,o)}):X.position(r,o)}},X.next=function(){!V&&S[1]&&(D.get("loop")||S[H+1])&&(H=s(1),f(S[H]))},X.prev=function(){!V&&S[1]&&(D.get("loop")||H)&&(H=s(-1),f(S[H]))},X.close=function(){B&&!Y&&(Y=!0,B=!1,p(oe),D.get("onCleanup"),j.unbind("."+J),x.fadeTo(D.get("fadeOut")||0,0),y.stop().fadeTo(D.get("fadeOut")||0,0,function(){y.hide(),x.hide(),p(se),M.remove(),setTimeout(function(){Y=!1,p(ae),D.get("onClosed")},1)}))},X.remove=function(){y&&(y.stop(),e[K].close(),y.stop(!1,!0).remove(),x.remove(),Y=!1,y=null,e("."+ee).removeData(K).removeClass(ee),e(t).unbind("click."+J).unbind("keydown."+J))},X.element=function(){return e(D.el)},X.settings=Z)}(jQuery,document,window)},function(e,t){var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e,t,n,o){function a(t,i){this.settings=null,this.options=e.extend({},a.Defaults,i),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy(function(t,i){this._handlers[i]=e.proxy(this[i],this)},this)),e.each(a.Plugins,e.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),e.each(a.Workers,e.proxy(function(t,i){this._pipe.push({filter:i.filter,run:e.proxy(i.run,this)})},this)),this.setup(),this.initialize()}a.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},a.Width={Default:"default",Inner:"inner",Outer:"outer"},a.Type={Event:"event",State:"state"},a.Plugins={},a.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,o={width:"auto","margin-left":n?t:"","margin-right":n?"":t};!i&&this.$stage.children().css(o),e.css=o}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,o=!this.settings.autoWidth,a=[];for(e.items={merge:!1,width:t};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,e.items.merge=i>1||e.items.merge,a[n]=o?t*i:this._items[n].width();this._widths=a}},{filter:["items","settings"],run:function(){var t=[],i=this._items,n=this.settings,o=Math.max(2*n.items,4),a=2*Math.ceil(i.length/2),s=n.loop&&i.length?n.rewind?o:Math.max(o,a):0,r="",l="";for(s/=2;s>0;)t.push(this.normalize(t.length/2,!0)),r+=i[t[t.length-1]][0].outerHTML,t.push(this.normalize(i.length-1-(t.length-1)/2,!0)),l=i[t[t.length-1]][0].outerHTML+l,s-=1;this._clones=t,e(r).addClass("cloned").appendTo(this.$stage),e(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,i=-1,n=0,o=0,a=[];++i<t;)n=a[i-1]||0,o=this._widths[this.relative(i)]+this.settings.margin,a.push(n+o*e);this._coordinates=a}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,i={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],n.eq(t).css(e.css);else i&&(e.css.width=e.items.width,n.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,i,n,o=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,s=this.coordinates(this.current())+a,r=s+this.width()*o,l=[];for(i=0,n=this._coordinates.length;i<n;i++)e=this._coordinates[i-1]||0,t=Math.abs(this._coordinates[i])+a*o,(this.op(e,"<=",s)&&this.op(e,">",r)||this.op(t,"<",s)&&this.op(t,">",r))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],a.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(e("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},a.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return e(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},a.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var e,t,i;e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:void 0,i=this.$element.children(t).width(),e.length&&i<=0&&this.preloadAutoWidthImages(e)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},a.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},a.prototype.setup=function(){var t=this.viewport(),i=this.options.responsive,n=-1,o=null;i?(e.each(i,function(e){e<=t&&e>n&&(n=Number(e))}),o=e.extend({},this.options,i[n]),"function"===typeof o.stagePadding&&(o.stagePadding=o.stagePadding()),delete o.responsive,o.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):o=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:o}}),this._breakpoint=n,this.settings=o,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},a.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},a.prototype.prepare=function(t){var i=this.trigger("prepare",{content:t});return i.data||(i.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data},a.prototype.update=function(){for(var t=0,i=this._pipe.length,n=e.proxy(function(e){return this[e]},this._invalidated),o={};t<i;)(this._invalidated.all||e.grep(this._pipe[t].filter,n).length>0)&&this._pipe[t].run(o),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},a.prototype.width=function(e){switch(e=e||a.Width.Default){case a.Width.Inner:case a.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},a.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},a.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},a.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},a.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},a.prototype.onDragStart=function(t){var i=null;3!==t.which&&(e.support.transform?(i=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),i={x:i[16===i.length?12:4],y:i[16===i.length?13:5]}):(i=this.$stage.position(),i={x:this.settings.rtl?i.left+this.$stage.width()-this.width()+this.settings.margin:i.left,y:i.top}),this.is("animating")&&(e.support.transform?this.animate(i.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=i,this._drag.stage.current=i,this._drag.pointer=this.pointer(t),e(n).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(n).one("mousemove.owl.core touchmove.owl.core",e.proxy(function(t){var i=this.difference(this._drag.pointer,this.pointer(t));e(n).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(i.x)<Math.abs(i.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},a.prototype.onDragMove=function(e){var t=null,i=null,n=null,o=this.difference(this._drag.pointer,this.pointer(e)),a=this.difference(this._drag.stage.start,o);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-t,a.x=((a.x-t)%i+i)%i+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*o.x/5:0,a.x=Math.max(Math.min(a.x,t+n),i+n)),this._drag.stage.current=a,this.animate(a.x))},a.prototype.onDragEnd=function(t){var i=this.difference(this._drag.pointer,this.pointer(t)),o=this._drag.stage.current,a=i.x>0^this.settings.rtl?"left":"right";e(n).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==i.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(o.x,0!==i.x?a:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=a,(Math.abs(i.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},a.prototype.closest=function(t,i){var n=-1,o=this.width(),a=this.coordinates();return this.settings.freeDrag||e.each(a,e.proxy(function(e,s){return"left"===i&&t>s-30&&t<s+30?n=e:"right"===i&&t>s-o-30&&t<s-o+30?n=e+1:this.op(t,"<",s)&&this.op(t,">",void 0!==a[e+1]?a[e+1]:s-o)&&(n="left"===i?e+1:e),-1===n},this)),this.settings.loop||(this.op(t,">",a[this.minimum()])?n=t=this.minimum():this.op(t,"<",a[this.maximum()])&&(n=t=this.maximum())),n},a.prototype.animate=function(t){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},a.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},a.prototype.current=function(e){if(void 0===e)return this._current;if(0!==this._items.length){if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});void 0!==t.data&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current}},a.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,function(e,t){return t})},a.prototype.reset=function(e){void 0!==(e=this.normalize(e))&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},a.prototype.normalize=function(e,t){var i=this._items.length,n=t?0:this._clones.length;return!this.isNumeric(e)||i<1?e=void 0:(e<0||e>=i+n)&&(e=((e-n/2)%i+i)%i+n/2),e},a.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},a.prototype.maximum=function(e){var t,i,n,o=this.settings,a=this._coordinates.length;if(o.loop)a=this._clones.length/2+this._items.length-1;else if(o.autoWidth||o.merge){if(t=this._items.length)for(i=this._items[--t].width(),n=this.$element.width();t--&&!((i+=this._items[t].width()+this.settings.margin)>n););a=t+1}else a=o.center?this._items.length-1:this._items.length-o.items;return e&&(a-=this._clones.length/2),Math.max(a,0)},a.prototype.minimum=function(e){return e?0:this._clones.length/2},a.prototype.items=function(e){return void 0===e?this._items.slice():(e=this.normalize(e,!0),this._items[e])},a.prototype.mergers=function(e){return void 0===e?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},a.prototype.clones=function(t){var i=this._clones.length/2,n=i+this._items.length,o=function(e){return e%2===0?n+e/2:i-(e+1)/2};return void 0===t?e.map(this._clones,function(e,t){return o(t)}):e.map(this._clones,function(e,i){return e===t?o(i):null})},a.prototype.speed=function(e){return void 0!==e&&(this._speed=e),this._speed},a.prototype.coordinates=function(t){var i,n=1,o=t-1;return void 0===t?e.map(this._coordinates,e.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(n=-1,o=t+1),i=this._coordinates[t],i+=(this.width()-i+(this._coordinates[o]||0))/2*n):i=this._coordinates[o]||0,i=Math.ceil(i))},a.prototype.duration=function(e,t,i){return 0===i?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(i||this.settings.smartSpeed)},a.prototype.to=function(e,t){var i=this.current(),n=null,o=e-this.relative(i),a=(o>0)-(o<0),s=this._items.length,r=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(o)>s/2&&(o+=-1*a*s),e=i+o,(n=((e-r)%s+s)%s+r)!==e&&n-o<=l&&n-o>0&&(i=n-o,e=n,this.reset(i))):this.settings.rewind?(l+=1,e=(e%l+l)%l):e=Math.max(r,Math.min(l,e)),this.speed(this.duration(i,e,t)),this.current(e),this.isVisible()&&this.update()},a.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},a.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},a.prototype.onTransitionEnd=function(e){if(void 0!==e&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},a.prototype.viewport=function(){var i;return this.options.responsiveBaseElement!==t?i=e(this.options.responsiveBaseElement).width():t.innerWidth?i=t.innerWidth:n.documentElement&&n.documentElement.clientWidth?i=n.documentElement.clientWidth:console.warn("Can not detect viewport width."),i},a.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(e.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},a.prototype.add=function(t,i){var n=this.relative(this._current);i=void 0===i?this._items.length:this.normalize(i,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:i}),t=this.prepare(t),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[i-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(t),this._items.splice(i,0,t),this._mergers.splice(i,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:t,position:i})},a.prototype.remove=function(e){void 0!==(e=this.normalize(e,!0))&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},a.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy(function(t,i){this.enter("pre-loading"),i=e(i),e(new Image).one("load",e.proxy(function(e){i.attr("src",e.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},a.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(n).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize));for(var i in this._plugins)this._plugins[i].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},a.prototype.op=function(e,t,i){var n=this.settings.rtl;switch(t){case"<":return n?e>i:e<i;case">":return n?e<i:e>i;case">=":return n?e<=i:e>=i;case"<=":return n?e>=i:e<=i}},a.prototype.on=function(e,t,i,n){e.addEventListener?e.addEventListener(t,i,n):e.attachEvent&&e.attachEvent("on"+t,i)},a.prototype.off=function(e,t,i,n){e.removeEventListener?e.removeEventListener(t,i,n):e.detachEvent&&e.detachEvent("on"+t,i)},a.prototype.trigger=function(t,i,n,o,s){var r={item:{count:this._items.length,index:this.current()}},l=e.camelCase(e.grep(["on",t,n],function(e){return e}).join("-").toLowerCase()),c=e.Event([t,"owl",n||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},r,i));return this._supress[t]||(e.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(c)}),this.register({type:a.Type.Event,name:t}),this.$element.trigger(c),this.settings&&"function"===typeof this.settings[l]&&this.settings[l].call(this,c)),c},a.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){void 0===this._states.current[t]&&(this._states.current[t]=0),this._states.current[t]++},this))},a.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]--},this))},a.prototype.register=function(t){if(t.type===a.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var i=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!i||!i.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:i.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===a.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].
vendor: 24,379 bytes, line 1
1concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy(function(i,n){return e.inArray(i,this._states.tags[t.name])===n},this)))},a.prototype.suppress=function(t){e.each(t,e.proxy(function(e,t){this._supress[t]=!0},this))},a.prototype.release=function(t){e.each(t,e.proxy(function(e,t){delete this._supress[t]},this))},a.prototype.pointer=function(e){var i={x:null,y:null};return e=e.originalEvent||e||t.event,e=e.touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,e.pageX?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i},a.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},a.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var o=e(this),s=o.data("owl.carousel");s||(s=new a(this,"object"==("undefined"===typeof t?"undefined":i(t))&&t),o.data("owl.carousel",s),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,i){s.register({type:a.Type.Event,name:i}),s.$element.on(i+".owl.carousel.core",e.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([i]),s[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},s))})),"string"==typeof t&&"_"!==t.charAt(0)&&s[t].apply(s,n)})},e.fn.owlCarousel.Constructor=a}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var o=function t(i){this._core=i,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},t.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoRefresh:!0,autoRefreshInterval:500},o.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},o.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},o.prototype.destroy=function(){var e,i;t.clearInterval(this._interval);for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var o=function t(i){this._core=i,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,o=i.center&&-1*n||0,a=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+o,s=this._core.clones().length,r=e.proxy(function(e,t){this.load(t)},this);for(i.lazyLoadEager>0&&(n+=i.lazyLoadEager,i.loop&&(a-=i.lazyLoadEager,n++));o++<n;)this.load(s/2+this._core.relative(a)),s&&e.each(this._core.clones(this._core.relative(a)),r),a++}},this)},this._core.options=e.extend({},t.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={lazyLoad:!1,lazyLoadEager:0},o.prototype.load=function(i){var n=this._core.$stage.children().eq(i),o=n&&n.find(".owl-lazy");!o||e.inArray(n.get(0),this._loaded)>-1||(o.each(e.proxy(function(i,n){var o,a=e(n),s=t.devicePixelRatio>1&&a.attr("data-src-retina")||a.attr("data-src")||a.attr("data-srcset");this._core.trigger("load",{element:a,url:s},"lazy"),a.is("img")?a.one("load.owl.lazy",e.proxy(function(){a.css("opacity",1),this._core.trigger("loaded",{element:a,url:s},"lazy")},this)).attr("src",s):a.is("source")?a.one("load.owl.lazy",e.proxy(function(){this._core.trigger("loaded",{element:a,url:s},"lazy")},this)).attr("srcset",s):(o=new Image,o.onload=e.proxy(function(){a.css({"background-image":'url("'+s+'")',opacity:"1"}),this._core.trigger("loaded",{element:a,url:s},"lazy")},this),o.src=s)},this)),this._loaded.push(n.get(0)))},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var o=function i(n){this._core=n,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=e.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var o=this;e(t).on("load",function(){o._core.settings.autoHeight&&o.update()}),e(t).resize(function(){o._core.settings.autoHeight&&(null!=o._intervalId&&clearTimeout(o._intervalId),o._intervalId=setTimeout(function(){o.update()},250))})};o.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},o.prototype.update=function(){var t=this._core._current,i=t+this._core.settings.items,n=this._core.settings.lazyLoad,o=this._core.$stage.children().toArray().slice(t,i),a=[],s=0;e.each(o,function(t,i){a.push(e(i).height())}),s=Math.max.apply(null,a),s<=1&&n&&this._previousHeight&&(s=this._previousHeight),this._previousHeight=s,this._core.$stage.parent().height(s).addClass(this._core.settings.autoHeightClass)},o.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!==typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var o=function t(i){this._core=i,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,e(t.content)))}},this)},this._core.options=e.extend({},t.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy(function(e){this.play(e)},this))};o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(e,t){var i=function(){return e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube"}(),n=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),o=e.attr("data-width")||this._core.settings.videoWidth,a=e.attr("data-height")||this._core.settings.videoHeight,s=e.attr("href");if(!s)throw new Error("Missing video URL.");if(n=s.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),n[3].indexOf("youtu")>-1)i="youtube";else if(n[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[s]={type:i,id:n,width:o,height:a},t.attr("data-video",s),this.thumbnail(e,this._videos[s])},o.prototype.thumbnail=function(t,i){var n,o,a,s=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",r=t.find("img"),l="src",c="",u=this._core.settings,h=function(i){o='<div class="owl-video-play-icon"></div>',n=u.lazyLoad?e("<div/>",{class:"owl-video-tn "+c,srcType:i}):e("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),t.after(n),t.after(o)};if(t.wrap(e("<div/>",{class:"owl-video-wrapper",style:s})),this._core.settings.lazyLoad&&(l="data-src",c="owl-lazy"),r.length)return h(r.attr(l)),r.remove(),!1;"youtube"===i.type?(a="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",h(a)):"vimeo"===i.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){a=e[0].thumbnail_large,h(a)}}):"vzaar"===i.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){a=e.framegrab_url,h(a)}})},o.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},o.prototype.play=function(t){var i,n=e(t.target),o=n.closest("."+this._core.settings.itemClass),a=this._videos[o.attr("data-video")],s=a.width||"100%",r=a.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),o=this._core.items(this._core.relative(o.index())),this._core.reset(o.index()),i=e('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),i.attr("height",r),i.attr("width",s),"youtube"===a.type?i.attr("src","//www.youtube.com/embed/"+a.id+"?autoplay=1&rel=0&v="+a.id):"vimeo"===a.type?i.attr("src","//player.vimeo.com/video/"+a.id+"?autoplay=1"):"vzaar"===a.type&&i.attr("src","//view.vzaar.com/"+a.id+"/player?autoplay=true"),e(i).wrap('<div class="owl-video-frame" />').insertAfter(o.find(".owl-video")),this._playing=o.addClass("owl-video-playing"))},o.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},o.prototype.destroy=function(){var e,t;this._core.$element.off("click.owl.video");for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var o=function t(i){this.core=i,this.core.options=e.extend({},t.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":e.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};o.Defaults={animateOut:!1,animateIn:!1},o.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,i=e.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),o=this.core.$stage.children().eq(this.next),a=this.core.settings.animateIn,s=this.core.settings.animateOut;this.core.current()!==this.previous&&(s&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(e.support.animation.end,i).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(s)),a&&o.one(e.support.animation.end,i).addClass("animated owl-animated-in").addClass(a))}},o.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var o=function t(i){this._core=i,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":e.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":e.proxy(function(e,t,i){e.namespace&&this.play(t,i)},this),"stop.owl.autoplay":e.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},t.Defaults,this._core.options)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype._next=function(n){this._call=t.setTimeout(e.proxy(this._next,this,n),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(n||this._core.settings.autoplaySpeed)},o.prototype.read=function(){return(new Date).getTime()-this._time},o.prototype.play=function(i,n){var o;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,o=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):t.clearTimeout(this._call),this._time+=this.read()%i-o,this._timeout=i,this._call=t.setTimeout(e.proxy(this._next,this,n),i-o)},o.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,t.clearTimeout(this._call),this._core.leave("rotating"))},o.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,t.clearTimeout(this._call))},o.prototype.destroy=function(){var e,t;this.stop();for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){"use strict";var o=function t(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=e.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers)};o.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},o.prototype.initialize=function(){var t,i=this._core.settings;this._controls.$relative=(i.navContainer?e(i.navContainer):e("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy(function(e){this.prev(i.navSpeed)},this)),this._controls.$next=e("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy(function(e){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[e('<button role="button">').addClass(i.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?e(i.dotsContainer):e("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",e.proxy(function(t){var n=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(n,i.dotsSpeed)},this));for(t in this._overrides)this._core[t]=e.proxy(this[t],this)},o.prototype.destroy=function(){var e,t,i,n,o;o=this._core.settings;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&o.navContainer?this._controls[t].html(""):this._controls[t].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},o.prototype.update=function(){var e,t,i,n=this._core.clones().length/2,o=n+this._core.items().length,a=this._core.maximum(!0),s=this._core.settings,r=s.center||s.autoWidth||s.dotsData?1:s.dotsEach||s.items;if("page"!==s.slideBy&&(s.slideBy=Math.min(s.slideBy,s.items)),s.dots||"page"==s.slideBy)for(this._pages=[],e=n,t=0,i=0;e<o;e++){if(t>=r||0===t){if(this._pages.push({start:Math.min(a,e-n),end:e-n+r-1}),Math.min(a,e-n)===a)break;t=0,++i}t+=this._core.mergers(this._core.relative(e))}},o.prototype.draw=function(){var t,i=this._core.settings,n=this._core.items().length<=i.items,o=this._core.relative(this._core.current()),a=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||n),i.nav&&(this._controls.$previous.toggleClass("disabled",!a&&o<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!a&&o>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||n),i.dots&&(t=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},o.prototype.onTrigger=function(t){var i=this._core.settings;t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},o.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy(function(e,i){return e.start<=t&&e.end>=t},this)).pop()},o.prototype.getPosition=function(t){var i,n,o=this._core.settings;return"page"==o.slideBy?(i=e.inArray(this.current(),this._pages),n=this._pages.length,t?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,t?i+=o.slideBy:i-=o.slideBy),i},o.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},o.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},o.prototype.to=function(t,i,n){var o;!n&&this._pages.length?(o=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%o+o)%o].start,i)):e.proxy(this._overrides.to,this._core)(t,i)},e.fn.owlCarousel.Constructor.Plugins.Navigation=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){"use strict";var o=function i(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=t.content}},this),"changed.owl.carousel":e.proxy(function(i){if(i.namespace&&"position"===i.property.name){var n=this._core.items(this._core.relative(this._core.current())),o=e.map(this._hashes,function(e,t){return e===n?t:null}).join();if(!o||t.location.hash.slice(1)===o)return;t.location.hash=o}},this)},this._core.options=e.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy(function(e){var i=t.location.hash.substring(1),n=this._core.$stage.children(),o=this._hashes[i]&&n.index(this._hashes[i]);void 0!==o&&o!==this._core.current()&&this._core.to(this._core.relative(o),!1,!0)},this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var i,n;e(t).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){function o(t,i){var o=!1,a=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+r.join(a+" ")+a).split(" "),function(e,t){if(s[t]!==n)return o=!i||t,!1}),o}function a(e){return o(e,!0)}var s=e("<support>").get(0).style,r="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},c={csstransforms:function(){return!!o("transform")},csstransforms3d:function(){return!!o("perspective")},csstransitions:function(){return!!o("transition")},cssanimations:function(){return!!o("animation")}};c.csstransitions()&&(e.support.transition=new String(a("transition")),e.support.transition.end=l.transition.end[e.support.transition]),c.cssanimations()&&(e.support.animation=new String(a("animation")),e.support.animation.end=l.animation.end[e.support.animation]),c.csstransforms()&&(e.support.transform=new String(a("transform")),e.support.transform3d=c.csstransforms3d())}(window.Zepto||window.jQuery,window,document)},function(e,t){!function(e){e.fn.autoSuggest=function(t,i){var n={asHtmlID:!1,startText:"Enter Name Here",emptyText:"No Results Found",preFill:{},limitText:"No More Selections Are Allowed",selectedItemProp:"value",selectedValuesProp:"value",searchObjProps:"value",queryParam:"q",retrieveLimit:!1,extraParams:"",matchCase:!1,minChars:1,keyDelay:400,resultsHighlight:!0,neverSubmit:!1,selectionLimit:!1,selectFirstDataItem:!1,showResultList:!0,start:function(){},selectionClick:function(e){},selectionAdded:function(e){},selectionRemoved:function(e){e.remove()},formatList:!1,beforeRetrieve:function(e){return e},retrieveComplete:function(e){return e},resultClick:function(e){},resultsComplete:function(){}},o=e.extend(n,i),a="object",s=0;
1if("string"==typeof t){a="string";var r=t}else{var l=t;for(k in t)t.hasOwnProperty(k)&&s++}if("object"==a&&s>0||"string"==a)return this.each(function(t){function i(){if(46==lastKeyPressCode||lastKeyPressCode>8&&lastKeyPressCode<32)return v.hide();var t=p.val().replace(/[\\]+|[\/]+/g,"");if(t!=M)if(M=t,t.length>=o.minChars)if(m.addClass("loading"),"string"==a){var i="";o.retrieveLimit&&(i="&limit="+encodeURIComponent(o.retrieveLimit)),o.beforeRetrieve&&(t=o.beforeRetrieve.call(this,t)),e.getJSON(r+"?"+o.queryParam+"="+encodeURIComponent(t)+i+o.extraParams,function(e){s=0;var i=o.retrieveComplete.call(this,e);for(k in i)i.hasOwnProperty(k)&&s++;n(i,t)})}else o.beforeRetrieve&&(t=o.beforeRetrieve.call(this,t)),n(l,t);else m.removeClass("loading"),v.hide()}function n(t,i){o.matchCase||(i=i.toLowerCase());var n=0;v.html(x.html("")).hide();for(var a=0;a<s;a++){var r=a;Q++;var l=!1;if("value"==o.searchObjProps)var h=t[r].value;else for(var h="",d=o.searchObjProps.split(","),g=0;g<d.length;g++){var y=e.trim(d[g]);h=h+t[r][y]+" "}if(h&&(o.matchCase||(h=h.toLowerCase()),l=!0),l){var _=e('<li class="as-result-item" id="as-result-item-'+r+'"></li>').click(function(){var t=e(this).data("data"),i=t.num;if(e("#as-selection-"+i,m).length<=0&&!P){var n=t.attributes;p.val("").focus(),M="",u(n,i),o.resultClick.call(this,t),v.hide()}P=!1}).mousedown(function(){f=!1}).mouseover(function(){e("li",x).removeClass("active"),e(this).addClass("active")}).data("data",{attributes:t[r],num:Q}),b=e.extend({},t[r]);if(o.matchCase)var w=new RegExp("(?![^&;]+;)(?!<[^<>]*)("+i+")(?![^<>]*>)(?![^&;]+;)","g");else var w=new RegExp("(?![^&;]+;)(?!<[^<>]*)("+i+")(?![^<>]*>)(?![^&;]+;)","gi");if(o.resultsHighlight&&(b[o.selectedItemProp]=b[o.selectedItemProp].replace(w,"<em>$1</em>")),_=o.formatList?o.formatList.call(this,b,_):_.html(b[o.selectedItemProp]),x.append(_),b=null,n++,o.retrieveLimit&&o.retrieveLimit==n)break}}m.removeClass("loading"),n<=0&&x.html('<li class="as-message">'+o.emptyText+"</li>"),x.css("width",m.outerWidth()),v.show(),o.selectFirstDataItem&&c(),o.resultsComplete.call(this)}function c(){if(e(":visible",v).length>0){var t=e("li",v),i=t.eq(0),n=e("li.active:first",v);n.length>0&&(i=n.next()),t.removeClass("active"),i.addClass("active")}}function u(t,i){var n=encodeURIComponent(t.value.replace(/,/g,"&#44;").replace(/\\'/g,"'")),a="&"+t.name+"="+n;y.val(y.val()+a+",");var s=e('<li class="as-selection-item" id="as-selection-'+i+'"></li>').click(function(){o.selectionClick.call(this,e(this)),m.children().removeClass("selected"),e(this).addClass("selected")}).mousedown(function(){f=!1}),r=e('<a class="as-close">&times;</a>').click(function(){return y.val(y.val().replace(t[o.selectedValuesProp]+",","")),o.selectionRemoved.call(this,s),f=!0,p.focus(),!1});g.before(s.html(t[o.selectedItemProp]).prepend(r)),o.selectionAdded.call(this,g.prev())}function h(t){if(e(":visible",v).length>0){var i=e("li",v);if("down"==t)var n=i.eq(0);else var n=i.filter(":last");var o=e("li.active:first",v);o.length>0&&(n="down"==t?o.next():o.prev()),i.removeClass("active"),n.addClass("active")}}if(o.asHtmlID){t=o.asHtmlID;var d=t}else{t=t+""+Math.floor(100*Math.random());var d="as-input-"+t}o.start.call(this);var p=e(this);p.attr("autocomplete","off").addClass("as-input").attr("id",d).val(o.startText);var f=!1;p.wrap('<ul class="as-selections" id="as-selections-'+t+'"></ul>').wrap('<li class="as-original" id="as-original-'+t+'"></li>');var m=e("#as-selections-"+t),g=e("#as-original-"+t),v=e('<div class="as-results" id="as-results-'+t+'"></div>').hide(),x=e('<ul class="as-list"></ul>'),y=e('<input type="hidden" class="as-values" id="as-values-'+t+'" />'),_="";if("string"==typeof o.preFill){for(var b=o.preFill.split(","),w=0;w<b.length;w++){var T={};T[o.selectedValuesProp]=b[w],""!=b[w]&&u(T,"000"+w)}_=o.preFill}else{_="";var C=0;for(k in o.preFill)o.preFill.hasOwnProperty(k)&&C++;if(C>0)for(var w=0;w<C;w++){var S=o.preFill[w][o.selectedValuesProp];void 0==S&&(S=""),_=_+S+",",""!=S&&u(o.preFill[w],"000"+w)}}if(""!=_){p.val("");","!=_.substring(_.length-1)&&(_+=","),y.val(","+_),e("li.as-selection-item",m).addClass("blur").removeClass("selected")}p.after(y),m.click(function(){f=!0,p.focus()}).mousedown(function(){f=!1}).after(v);var j=null,M="",P=!1;p.focus(function(){return e(this).val()==o.startText&&""==y.val()?e(this).val(""):f&&(e("li.as-selection-item",m).removeClass("blur"),""!=e(this).val()&&(x.css("width",m.outerWidth()),v.show())),f=!0,!0}).blur(function(){""==e(this).val()&&""==y.val()&&""==_?e(this).val(o.startText):f&&(e("li.as-selection-item",m).addClass("blur").removeClass("selected"),v.hide())}).keydown(function(t){switch(lastKeyPressCode=t.keyCode,first_focus=!1,t.keyCode){case 38:t.preventDefault(),h("up");break;case 40:t.preventDefault(),h("down");break;case 8:if(""==p.val()){var n=y.val().split(",");n=n[n.length-2],m.children().not(g.prev()).removeClass("selected"),g.prev().hasClass("selected")?(y.val(y.val().replace(","+n+",",",")),o.selectionRemoved.call(this,g.prev())):(o.selectionClick.call(this,g.prev()),g.prev().addClass("selected"))}1==p.val().length&&(v.hide(),M=""),e(":visible",v).length>0&&(j&&clearTimeout(j),j=setTimeout(function(){i()},o.keyDelay));break;case 9:case 188:break;case 13:P=!1;var a=e("li.active:first",v);a.length>0&&(a.click(),v.hide()),(o.neverSubmit||a.length>0)&&t.preventDefault();break;default:o.showResultList&&(o.selectionLimit&&e("li.as-selection-item",m).length>=o.selectionLimit?(x.html('<li class="as-message">'+o.limitText+"</li>"),v.show()):(j&&clearTimeout(j),j=setTimeout(function(){i()},o.keyDelay)))}});var Q=0})}}(jQuery)},function(e,t){},function(e,t){var i=function(){jQuery(".flexmls-widthchange-wrapper").each(function(){var e=jQuery(this),t=e.width();e.removeClass(function(e,t){return(t.match(/(^|\s)flexmls-width-\S+/g)||[]).join(" ")});var i=[480,600,768,900,1024];jQuery(i).each(function(i,n){t>n&&e.addClass("flexmls-width-"+n)})})};window.resizeTimerId=0;var n=function(){clearTimeout(window.resizeTimerId),window.resizeTimerId=setTimeout(function(){i()},300)};jQuery(function(){i(),"undefined"!==typeof ResizeObserver&&jQuery(".flexmls-widthchange-wrapper").each(function(){new ResizeObserver(function(){n()}).observe(this)})}),window.addEventListener("resize",function(){n()})}]);

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.