(function(a,b){a.mkqc=b()}(this,function(){var a={};a.VERSION="0.1.0";a.qu=(window.mkq&&window.mkq.qu)?window.mkq.qu:[];return a}));(function(b){if(b==null||b==undefined){return}var a={};a.VERSION="0.0.1";a.use=true;a.error=false;a.errorMsg=null;a.module={mk:{val:"42487381192528",enable:true,useTopWin:true},wait:{enable:true},ssp:{enable:true,val:"gw,be,cm"}};b.config=a})(mkqc);(function(b){if(b==null||b==undefined){return}var a={};a.VERSION="0.0.1";a.isBlank=function(c){return(c==undefined)||(c==null)||(c.length==0)};a.stringify=function(c){return JSON.stringify(c)};a.getCookie=function(d){if(!d){return""}if(document.cookie.length>0){var e=document.cookie.indexOf(d+"=");if(e!=-1){e=e+d.length+1;var c=document.cookie.indexOf(";",e);if(c==-1){c=document.cookie.length}return decodeURIComponent(document.cookie.substring(e,c))}}return""};a.getMasterDomain=function(){var c=location.hostname.split(".");return c.slice(0).slice(-(c.length===4?3:2)).join(".")};a.setCookie=function(d,e,c){if(!d){return}var g=new Date();
g.setDate(g.getDate()+c);document.cookie=d+"="+e+"; expires="+g+"; domain=."+a.getMasterDomain()+"; path=/; Secure; SameSite=None;"};a.setCookieHour=function(d,e,c){if(!d){return}var g=new Date();g.setHours(g.getHours()+c);document.cookie=d+"="+e+"; expires="+g+"; domain=."+a.getMasterDomain()+"; path=/; Secure; SameSite=None;"};a.delCookie=function(c){if(!c){return}var d=new Date();d.setSeconds(d.getSeconds()+1);document.cookie=c+"=; expires="+d+"; domain=."+a.getMasterDomain()+"; path=/; Secure; SameSite=None;"};a.wait=function(k,h,j,c){var e=j||-1,d=c||20,g;if(window[h]){k.call()}else{g=setInterval(function(){if(!e){clearInterval(g)}e<=0||e--;if(window[h]){clearInterval(g);k.call()}},d)}};a.clone=function(d){var e=(d instanceof Array)?[]:{};for(var c in d){if(!d.hasOwnProperty(c)){continue}e[c]=d[c]}return e};a.getTimezone=function(){var d=new Date().getTimezoneOffset();var c=d<0?"+":"-";d=Math.abs(d);return"UTC"+c+(d/60|0)};a.getTime=function(){var d=new Date();var h=d.getFullYear();var j=d.getMonth()+1;var c=d.getDate();
var g=d.getHours();var k=d.getMinutes();var e=d.getSeconds();return h+"-"+j+"-"+c+" "+g+":"+k+":"+e};a.ajax=function(j,c,e,l,g){var m=null;if(window.XMLHttpRequest){m=new XMLHttpRequest()}else{m=new ActiveXObject("Microsoft.XMLHTTP")}var j=j.toUpperCase();var d=Math.random();if(typeof e=="object"){var h="";for(var k in e){h+=k+"="+e[k]+"&"}e=h.replace(/&$/,"")}if(j=="GET"){if(e){m.open("GET",c+"?"+e,true)}else{m.open("GET",c+"",true)}m.withCredentials=true;m.send()}else{if(j=="POST"){m.open("POST",c,true);m.setRequestHeader("Content-type","application/x-www-form-urlencoded");m.withCredentials=true;m.send(e)}}m.onreadystatechange=function(){if(m.readyState==4){if(m.status==200){if(l){l(m.responseText)}}else{if(g){g(m.status)}}}}};a.guid=function(){var e=new Date().getTime();var c=((typeof performance!=="undefined")&&performance.now&&(performance.now()*1000))||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(g){var d=Math.random()*16;if(e>0){d=(e+d)%16|0;e=Math.floor(e/16)}else{d=(c+d)%16|0;
c=Math.floor(c/16)}return(g==="x"?d:(d&3|8)).toString(16)})};a.load=function(c){if(document.readyState=="complete"||(document.readyState!="loading"&&!document.documentElement.doScroll)){c()}else{document.addEventListener("DOMContentLoaded",c)}};a.thirdCookie=function(){var c=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return !(c&&!!document.hasStorageAccess)};a.fixedEncodeURIComponent=function(c){return encodeURIComponent(c).replace(/[!'()*]/g,function(d){return"%"+d.charCodeAt(0).toString(16)})};b.util=a})(mkqc);(function(mkqc){if(mkqc==null||mkqc==undefined){return}var mk={};var trackUrl="https://event.clientgear.com/track";mk.VERSION="0.0.1";mk.upc=mkqc.util.guid();function setClientExtend(){setTimeout(function(){try{var mk_sync=mkqc.util.getCookie("_mk_sync");if(mkqc.util.isBlank(mk_sync)){return}var _ua_ext3=localStorage.getItem("_ua_ext3");if(mkqc.util.isBlank(_ua_ext3)){if(navigator.userAgentData&&navigator.userAgentData.getHighEntropyValues){if(!navigator.userAgentData){return}var hints=["architecture","model","platformVersion","uaFullVersion","fullVersionList"];
var promise=navigator.userAgentData.getHighEntropyValues(hints);if(promise.then){promise.then(function(v){var webGLImpParams=(function getWebGLImpParams(){try{var e=document.createElement("canvas").getContext("webgl");if(!e){return{}}var t=document.createElement("canvas").getContext("webgl2");return{glVersion:e.getParameter(e.VERSION)||"Unknown",shadingLanguageVersion:e.getParameter(e.SHADING_LANGUAGE_VERSION)||"Unknown",maxTextureSize:e.getParameter(e.MAX_TEXTURE_SIZE)||0,maxCubeMapTextureSize:e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)||0,max3DTextureSize:t?t.getParameter(t.MAX_3D_TEXTURE_SIZE):0,maxRenderBufferSize:e.getParameter(e.MAX_RENDERBUFFER_SIZE)||0,maxVertexUniformVectors:e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)||0,maxFragmentUniformVectors:e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)||0,maxVaryingVectors:e.getParameter(e.MAX_VARYING_VECTORS)||0,maxCombinedTextureImageUnits:e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)||0,powerPreference:e.getContextAttributes().powerPreference||"Unknown",maxVertexAttribs:e.getParameter(e.MAX_VERTEX_ATTRIBS)||0,depthBits:e.getParameter(e.DEPTH_BITS)||0,stencilBits:e.getParameter(e.STENCIL_BITS)||0,maxDrawBuffers:t?t.getParameter(t.MAX_DRAW_BUFFERS):0,maxColorAttachments:t?t.getParameter(t.MAX_COLOR_ATTACHMENTS):0,maxSamples:t?t.getParameter(t.MAX_SAMPLES):0,supportedExtensionsLength:(e.getSupportedExtensions()||[]).length}
}catch(e){return{}}})();var webgl=document.createElement("canvas")?document.createElement("canvas").getContext("webgl"):void 0;var info=webgl&&webgl.getExtension("WEBGL_debug_renderer_info");var navi=navigator;var naviInfo={platform:navi.platform,product:navi.product,productSub:navi.productSub,userActivation:navi.userActivation,appCodeName:navi.appCodeName,appName:navi.appName,appVersion:navi.appVersion,userAgentData:navi.userAgentData,fullVersion:v.fullVersionList,webdriver:navi.webdriver,currentHeapSize:window.performance.memory.usedJSHeapSize,heapSizeLimit:window.performance.memory.jsHeapSizeLimit,hardwareConcurrency:navi.hardwareConcurrency,deviceMemory:navi.deviceMemory,maxTouchPoints:navi.maxTouchPoints,deviceMotion:"DeviceMotionEvent" in window,deviceOrientation:"DeviceOrientationEvent" in window,accelerometer:"Accelerometer" in window,pointerCoarse:window.matchMedia("(pointer: coarse)").matches,hoverMedia:window.matchMedia("(hover: none)").matches,pointerFine:window.matchMedia("(pointer: fine)").matches,portrait:window.matchMedia("(orientation: portrait)").matches,landscape:window.matchMedia("(orientation: landscape)").matches,inner:window.innerWidth+"x"+window.innerHeight,outer:window.outerWidth+"x"+window.outerHeight,screen:(screen.availWidth||0)+"x"+(screen.availHeight||0)+"x"+(screen.colorDepth||0),resolution:(window.screen.width||0)+"x"+(window.screen.height||0),screenWidth:void 0!==window.screen.width?window.screen.width:-1,screenHeight:window.screen.height?window.screen.height:-1,pixelDepth:void 0!==window.screen.pixelDepth?window.screen.pixelDepth:-1,renderer:webgl&&webgl.getParameter(webgl.RENDERER),vendor:webgl&&webgl.getParameter(webgl.VENDOR),unmaskedRenderer:webgl&&webgl.getParameter(info.UNMASKED_RENDERER_WEBGL),unmaskedVendor:webgl&&webgl.getParameter(info.UNMASKED_VENDOR_WEBGL),maxTextureSize:webGLImpParams.maxTextureSize,maxCubeMapTextureSize:webGLImpParams.maxCubeMapTextureSize,max3DTextureSize:webGLImpParams.max3DTextureSize,maxVertexUniformVectors:webGLImpParams.maxVertexUniformVectors,maxFragmentUniformVectors:webGLImpParams.maxFragmentUniformVectors,maxVaryingVectors:webGLImpParams.maxVaryingVectors,maxCombinedTextureImageUnits:webGLImpParams.maxCombinedTextureImageUnits,maxVertexAttribs:webGLImpParams.maxVertexAttribs,depthBits:webGLImpParams.depthBits,stencilBits:webGLImpParams.stencilBits,maxDrawBuffers:webGLImpParams.maxDrawBuffers,maxColorAttachments:webGLImpParams.maxColorAttachments,maxSamples:webGLImpParams.maxSamples,supportedExtensionsLength:webGLImpParams.supportedExtensionsLength};
localStorage.setItem("_ua_ext3",JSON.stringify(naviInfo))})}}}}catch(e){console.log(e)}},0)}mk.init=function(pixelCode,uid){mkqc.config.uid=uid;mkqc.config.pixelCode=pixelCode;var uid=mkqc.util.getCookie("uid")+"";if(mkqc.util.isBlank(uid)||uid.indexOf("mk")==-1){mkqc.util.setCookie("uid","mk"+mkqc.util.guid(),365)}setClientExtend()};function getTrackParams(url){var source_data=null;var searchParams=new URLSearchParams(url);var utm_source=searchParams.get("utm_source");var f=searchParams.get("f");if(!mkqc.util.isBlank(utm_source)){var utm_medium=searchParams.get("utm_medium");var utm_campaign=searchParams.get("utm_campaign");var utm_term=searchParams.get("utm_term");var utm_content=searchParams.get("utm_content");var bidimpid=searchParams.get("bidimpid");var adid=searchParams.get("adid");var lp=mkqc.util.fixedEncodeURIComponent(location.href);source_data={lp:lp,lp_utm_source:utm_source,lp_utm_medium:utm_medium||"",lp_utm_campaign:utm_campaign||"",lp_utm_term:utm_term||"",lp_utm_content:utm_content||"",bidimpid:bidimpid||"",adid:adid||""}
}else{if(!mkqc.util.isBlank(f)){if(f.indexOf("bm")>-1){var arrs=f.split("|");var utm_source=arrs[1]||"";var utm_medium=arrs[2]||"";var utm_campaign=arrs[3]||"";var utm_term=arrs[4]||"";var utm_content=arrs[5]||"";var bidimpid=searchParams.get("bidimpid");var adid=searchParams.get("adid");var lp=mkqc.util.fixedEncodeURIComponent(location.href);source_data={lp:lp,lp_utm_source:utm_source,lp_utm_medium:utm_medium||"",lp_utm_campaign:utm_campaign||"",lp_utm_term:utm_term||"",lp_utm_content:utm_content||"",bidimpid:bidimpid||"",adid:adid||""}}}}return source_data}function getClientExtend(){var isGet=localStorage.getItem("_ua_ext3_isGet");if(!mkqc.util.isBlank(isGet)){return{}}var mk_sync=mkqc.util.getCookie("_mk_sync");if(mkqc.util.isBlank(mk_sync)){return{}}if((new Date()).getTime()>(mk_sync*1)){localStorage.removeItem("_ua_ext3");localStorage.removeItem("_ua_ext3_isGet");return{}}var clientExtend=localStorage.getItem("_ua_ext3");if(mkqc.util.isBlank(clientExtend)){return{}}localStorage.setItem("_ua_ext3_isGet","1");
return clientExtend}function getParams(event,params){if(!params){params={}}var win=window;params.event=event;params.referrer=mkqc.util.fixedEncodeURIComponent(win.document.referrer);params.domain=win.location.host;params.pagurl=mkqc.util.fixedEncodeURIComponent(win.location.href);params.winwidh=win.screen.width;params.winheight=win.screen.height;params.uid=mkqc.config.uid;params.timezone=mkqc.util.getTimezone();params.time=mkqc.util.getTime();params.mkPixelId=mkqc.config.pixelCode;params.upc=mk.upc;params.clientExtend=getClientExtend();var trackParams=getTrackParams(win.location.search);if(!mkqc.util.isBlank(trackParams)){var datastr=JSON.stringify(trackParams);localStorage.setItem("source_data",datastr);var exdate=new Date();exdate.setDate(exdate.getDate()+21);localStorage.setItem("source_data_exp",exdate.getTime());mkqc.util.setCookie("source_data",datastr,21);mkqc.util.setCookie("source_data_exp",exdate.getTime(),21)}var source_data=mkqc.util.getCookie("source_data");if(!mkqc.util.isBlank(source_data)){var source_data_exp=mkqc.util.getCookie("source_data_exp");
if(!mkqc.util.isBlank(source_data_exp)){if((new Date()).getTime()>(source_data_exp*1)){mkqc.util.delCookie("source_data");mkqc.util.delCookie("source_data_exp");source_data=null}}}if(mkqc.util.isBlank(source_data)){source_data=localStorage.getItem("source_data");if(!mkqc.util.isBlank(source_data)){var source_data_exp=localStorage.getItem("source_data_exp");if(!mkqc.util.isBlank(source_data_exp)){if((new Date()).getTime()>(source_data_exp*1)){localStorage.removeItem("source_data");localStorage.removeItem("source_data_exp");localStorage.removeItem("_ua_ext3_isGet");localStorage.removeItem("_ua_ext3");source_data=null}}}}if(!mkqc.util.isBlank(source_data)){try{var source_params=JSON.parse(source_data);params.lp=source_params.lp;params.lp_utm_source=source_params.lp_utm_source;params.lp_utm_medium=source_params.lp_utm_medium;params.lp_utm_campaign=source_params.lp_utm_campaign;params.lp_utm_term=source_params.lp_utm_term;params.lp_utm_content=source_params.lp_utm_content;params.bidimpid=source_params.bidimpid;params.adid=source_params.adid
}catch(e){}}params.uidCookie=mkqc.util.getCookie("uid");var m=mk;if(m.getLocalStoreUid){params.uidLocalStore=m.getLocalStoreUid()}else{m.getLocalStoreUid=function(){var luid=localStorage.getItem("_mk_luid")+"";if(luid&&luid.indexOf("mk")>-1){return luid}else{luid="mk"+mkqc.util.guid();localStorage.setItem("_mk_luid",luid);return luid}};params.uidLocalStore=m.getLocalStoreUid()}if(m.getCanvasUid){params.uidCanvas=m.getCanvasUid()}else{function bin2hex(s){var o="";var s=s+"";for(let i=0;i<s.length;i++){let n=s.charCodeAt(i).toString(16);o+=n.length<2?"0"+n:n}return o}function getUUID(){var canvas=document.createElement("canvas");var ctx=canvas.getContext("2d");var txt="clientgear.com <canvas> 1.0";ctx.textBaseline="top";ctx.font="14px 'Arial'";ctx.textBaseline="alphabetic";ctx.fillStyle="#f60";ctx.fillRect(125,1,62,20);ctx.fillStyle="#069";ctx.fillText(txt,2,15);ctx.fillStyle="rgba(102, 204, 0, 0.7)";ctx.fillText(txt,4,17);var b64=canvas.toDataURL().replace("data:image/png;base64,","");var bin=atob(b64);var crc=bin2hex(bin.slice(-16,-12));
return crc}m.getCanvasUid=function(){return getUUID()};params.uidCanvas=m.getCanvasUid()}params.thirdCookie=mkqc.util.thirdCookie();return params}function fixedvalue(value){try{value=value+"";if(value.indexOf("money")>-1){value=value.replace("<span class=money>$","").replace("USD</span>","").trim()}if(value.indexOf("subtotal")>-1){value=value.replace('<span id="revy-cart-subtotal-price">',"").replace("</span>","").trim()}if(value.indexOf("$")>-1){value=value.replace("$","").trim()}if(value.indexOf("USD")>-1){value=value.replace("USD","").trim()}if(mkqc.config.module.mk.custom){if(mkqc.config.module.mk.custom.acc===true){var values=value.split(",");var total=0;for(var i=0;i<values.length;i++){total=total+values[i]*1}return total}if(mkqc.config.module.mk.custom.delComma===true){return value.replace(new RegExp(",","gm"),"")}if(mkqc.config.module.mk.custom.repComma===true){return value.replace(",","$").replace(new RegExp(".","gm"),"").replace("$",".")}}return value}catch(e){return value}}mk.track=function(event,params){if(mkqc.util.isBlank(event)){return
}if(event=="addToCart"){event="AddToCart"}params=getParams(event,params);if(!mkqc.util.isBlank(params.value)){params.value=fixedvalue(params.value)}var src=trackUrl+"?event="+event;src=src+"&params="+mkqc.util.fixedEncodeURIComponent(mkqc.util.stringify(params));mkqc.util.ajax("GET",src,null,function(txt){if(mkqc.util.isBlank(txt)){return}try{eval(txt)}catch(e){console.log("now time:"+(new Date()).getTime())}})};mk.trackCustom=function(event,params){mk.track(event,params)};mkqc.mk=mk})(mkqc);(function(mkqc){if(mkqc==null||mkqc==undefined){return}var wait={};var trackUrl="https://event.clientgear.com/track";wait.VERSION="0.0.1";var isInit=false;function getParams(event,params){if(!params){params={}}var win=window;params.event=event;params.referrer=mkqc.util.fixedEncodeURIComponent(win.document.referrer);params.domain=win.location.host;params.pagurl=mkqc.util.fixedEncodeURIComponent(win.location.href);params.winwidh=win.screen.width;params.winheight=win.screen.height;params.uid=mkqc.config.uid;params.timezone=mkqc.util.getTimezone();
params.time=mkqc.util.getTime();params.mkPixelId=mkqc.config.pixelCode;var source_data=mkqc.util.getCookie("source_data");if(mkqc.util.isBlank(source_data)){source_data=localStorage.getItem("source_data")}if(!mkqc.util.isBlank(source_data)){try{var source_params=JSON.parse(source_data);params.lp=source_params.lp;params.lp_utm_source=source_params.lp_utm_source;params.lp_utm_medium=source_params.lp_utm_medium;params.lp_utm_campaign=source_params.lp_utm_campaign;params.lp_utm_term=source_params.lp_utm_term;params.lp_utm_content=source_params.lp_utm_content;params.bidimpid=source_params.bidimpid;params.adid=source_params.adid}catch(e){}}params.uidCookie=mkqc.util.getCookie("uid");var m=wait;if(m.getLocalStoreUid){params.uidLocalStore=m.getLocalStoreUid()}else{m.getLocalStoreUid=function(){var luid=localStorage.getItem("_mk_luid")+"";if(luid&&luid.indexOf("mk")>-1){return luid}else{luid="mk"+mkqc.util.guid();localStorage.setItem("_mk_luid",luid);return luid}};params.uidLocalStore=m.getLocalStoreUid()}if(m.getCanvasUid){params.uidCanvas=m.getCanvasUid()
}else{function bin2hex(s){var o="";var s=s+"";for(let i=0;i<s.length;i++){let n=s.charCodeAt(i).toString(16);o+=n.length<2?"0"+n:n}return o}function getUUID(){var canvas=document.createElement("canvas");var ctx=canvas.getContext("2d");var txt="clientgear.com <canvas> 1.0";ctx.textBaseline="top";ctx.font="14px 'Arial'";ctx.textBaseline="alphabetic";ctx.fillStyle="#f60";ctx.fillRect(125,1,62,20);ctx.fillStyle="#069";ctx.fillText(txt,2,15);ctx.fillStyle="rgba(102, 204, 0, 0.7)";ctx.fillText(txt,4,17);var b64=canvas.toDataURL().replace("data:image/png;base64,","");var bin=atob(b64);var crc=bin2hex(bin.slice(-16,-12));return crc}m.getCanvasUid=function(){return getUUID()};params.uidCanvas=m.getCanvasUid()}params.thirdCookie=mkqc.util.thirdCookie();return params}function sendWait(s){setTimeout(function(){var event="ViewContent"+s;var params=getParams(event);var src=trackUrl+"?event="+event;src=src+"&params="+mkqc.util.fixedEncodeURIComponent(mkqc.util.stringify(params));mkqc.util.ajax("GET",src,null,function(txt){if(mkqc.util.isBlank(txt)){return
}try{eval(txt)}catch(e){console.log("now time:"+(new Date()).getTime())}})},s*1000)}wait.init=function(){if(isInit){return}var sArr=[3,10,30];isInit=true;for(var i=0;i<sArr.length;i++){var s=sArr[i];sendWait(s)}};wait.track=function(event,params){};wait.trackCustom=function(event,params){};mkqc.wait=wait})(mkqc);(function(c){if(c==null||c==undefined){return}var b={};b.VERSION="0.0.1";b.error=false;var a="https://event.clientgear.com/re";b.init=function(){c.util.load(function(){setTimeout(function(){var l=c.util.getCookie("_mk_sync");if(!c.util.isBlank(l)){if((new Date()).getTime()>(l*1)){c.util.delCookie("_mk_sync")}else{return}}if(c.config.module.ssp.val){var g=localStorage.getItem("_mk_luid");var h=c.config.module.ssp.val.split(",");for(var e=0;e<h.length;e++){var k=a+"/"+h[e];var d=new Image();d.src=k+"?uid="+g}var j=new Date();j.setHours(j.getHours()+3);c.util.setCookieHour("_mk_sync",j.getTime(),3)}},0)})};b.track=function(d,e){};b.trackCustom=function(d,e){};c.ssp=b})(mkqc);(function(b){if(b==null||b==undefined){return
}var a={};a.VERSION="0.0.1";function c(g){if(b.util.isBlank(g)){return}if(b.config&&!b.config.use){return}if(b.config.module){for(var e in b.config.module){if(b.util.isBlank(b[e])){console.log(e+" module not config!");continue}if(!b.config.module[e]["enable"]){continue}if(!b[e][g]){console.log(e+" "+g+" method not config!");continue}var d=arguments.length>1?Array.prototype.slice.call(arguments,1):arguments;b[e][g].apply(b[e],d)}}}a.init=function(e,d){if(!e){b.config.error=true;b.config.errorMsg="mkq error!Pixel code is not exist!";console.log(b.config.errorMsg);return}if(e!=b.config.module.mk.val){b.config.error=true;b.config.errorMsg="mkq error!Pixel code is not match!";console.log(b.config.errorMsg);return}if(!d){d="guest"}c("init",e,d)};a.track=function(d,e){if(b.config.error){console.log(b.config.errorMsg);return}c("track",d,e)};a.trackCustom=function(d,e){if(b.config.error){console.log(b.config.errorMsg);return}c("trackCustom",d,e)};b.distribute=a})(mkqc);(function(e,a){var b=e,g=a;var c=function(j,k){return new c.prototype.init(j,k)
};c.prototype={constructor:c,length:0,splice:[].splice,selector:"",init:function(j,l){l=l||g;var m;if(!j){return this}if(typeof j=="object"){var j=[j];for(var k=0;k<j.length;k++){this[k]=j[k]}this.length=j.length;return this}else{if(typeof j=="function"){c.ready(j);return}}if(j.charAt(0)=="#"&&!j.match("\\s")){this.selector=j;j=j.substring(1);m=g.getElementById(j);this[0]=m;this.context=l;this.length=1;return this}else{m=l.querySelectorAll(j);for(var k=0;k<m.length;k++){this[k]=m[k]}this.selector=j;this.context=l;this.length=m.length;return this}},attr:function(j,l){for(var k=0;k<this.length;k++){if(typeof j=="string"){if(arguments.length==1){return this[k].getAttribute(j)}this[k].setAttribute(j,l)}else{var m=this[k];f.each(j,function(o,p){m.setAttribute(o,p)})}}return this},removeAttr:function(j){for(var k=0;k<this.length;k++){if(typeof j=="string"){this[k].removeAttribute(j)}else{var l=this[k];f.each(j,function(m,o){l.removeAttribute(m)})}}return this},find:function(j){if(!j){return}var k=this.selector;return new c(k+" "+j)
},data:function(j,l){for(var k=0;k<this.length;k++){if(typeof j=="string"){if(arguments.length==1){return this[k].getAttribute("data-"+j)}this[k].setAttribute("data-"+j,l)}else{var m=this[k];f.each(j,function(o,p){m.setAttribute("data-"+o,p)})}}return this},on:function(o,k,m){if(typeof k=="function"){m=k;for(var l=0;l<this.length;l++){if(!this[l].guid){this[l].guid=++c.guid;c.Events[c.guid]={};c.Events[c.guid][o]=[m];h(this[l],o,this[l].guid)}else{var p=this[l].guid;if(c.Events[p][o]){c.Events[p][o].push(m)}else{c.Events[p][o]=[m];h(this[l],o,p)}}}}else{for(var l=0;l<this.length;l++){if(!this[l].deleId){this[l].deleId=++c.deleId;c.deleEvents[c.deleId]={};c.deleEvents[c.deleId][k]={};c.deleEvents[c.deleId][k][o]=[m];d(this[l],o,k)}else{var p=this[l].deleId,j=c.deleEvents[p];if(!j[k]){j[k]={};j[k][o]=[m];d(this[l],o,k)}else{if(j[k][o]){j[k][o].push(m)}else{j[k][o]=[m];d(this[l],o,k)}}}}}},off:function(p,k){if(arguments.length==0){for(var o=0;o<this.length;o++){var q=this[o].guid;for(var m in c.Events[q]){delete c.Events[q][m]
}}}else{if(arguments.length==1){for(var o=0;o<this.length;o++){var q=this[o].guid;delete c.Events[q][p]}}else{for(var o=0;o<this.length;o++){var q=this[o].deleId;try{delete c.deleEvents[q][k][p]}catch(l){}}}}}};c.prototype.init.prototype=c.prototype;c.Events=[];c.guid=0;c.deleEvents=[];c.deleId=0;function d(l,k,j){var o=l.deleId;l.addEventListener(k,function(t){var s=t.target;var q=t.currentTarget;var p=true;while(p&&s!=q){if(m(l,j,s)){for(var r=0;r<c.deleEvents[o][j][k].length;r++){p=c.deleEvents[o][j][k][r].call(s,t);return p}}s=s.parentNode}},false);function m(s,p,t){var q=s.querySelectorAll(p);for(var r=0;r<q.length;r++){if(q[r]==t){return true}}}}function h(l,k,j){l.addEventListener(k,function(o){for(var m=0;m<c.Events[j][k].length;m++){c.Events[j][k][m].call(l,o)}},false)}c.ready=function(j){g.addEventListener("DOMContentLoaded",function(){j&&j()},false);g.removeEventListener("DOMContentLoaded",j,true)};c.each=function(m,p){var k=m.length,j=m.constructor,l=0;if(j===e.f){for(;l<k;l++){var o=p.call(m[l],l,m[l]);
if(o===false){break}}}else{if(isArray(m)){for(;l<k;l++){var o=p.call(m[l],l,m[l]);if(o===false){break}}}else{for(l in m){var o=p.call(m[l],l,m[l]);if(o===false){break}}}}};c.isBlank=function(j){return(j==undefined)||(j==null)||(j.length==0)};c.wait=function(q,j,p,k){var m=p||-1,l=k||100,o;if(c(j).length>0){q.call()}else{o=setInterval(function(){if(!m){clearInterval(o)}m<=0||m--;if(c(j).length>0){clearInterval(o);q.call()}},l)}};c.bsVersion=function(){var k={};var j={};var l=navigator.userAgent.toLowerCase();var m;if(navigator.appVersion.match(/MSIE 6./i)=="6."){k.type="IE";k.version=6;return k}else{(m=l.match(/msie ([\d.]+)/))?j.ie=m[1]:(m=l.match(/firefox\/([\d.]+)/))?j.firefox=m[1]:(m=l.match(/chrome\/([\d.]+)/))?j.chrome=m[1]:(m=l.match(/opera.([\d.]+)/))?j.opera=m[1]:(m=l.match(/version\/([\d.]+).*safari/))?j.safari=m[1]:0}if(j.ie){k.type="IE";k.version=j.ie}else{if(j.firefox){k.type="Firefox";k.version=j.firefox}else{if(j.chrome){k.type="Chrome";k.version=j.chrome}else{if(j.opera){k.type="Opera";k.version=j.opera
}else{if(j.safari){k.type="Safari";k.version=j.safari}}}}}return k};b._s1_31=c})(window,document);try{(function(c){var b=c.wmkq;if(!b){return console.log("mkq error! Pixel code is not installed correctly on this page")}b.invokeFunc=function(g,j,h){if(g){g=g.toLowerCase();if("init"==g){mkqc.distribute.init(j,h)}else{if("track"==g){mkqc.distribute.track(j,h)}else{if("trackcustom"==g){mkqc.distribute.trackCustom(j,h)}}}}};var e=b.qu.slice();for(var a=0,d=e.length;a<d;a++){b.invokeFunc.apply(b,e[a])}})(window)}catch(error){console.log("please ignore!"+error)};