Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(a){return-1!==Array.prototype.indexOf.call(document.querySelectorAll(a),this)});
Element.prototype.closest||(Element.prototype.closest=function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);var b,c=this;do for(b=a.length;0<=--b&&a.item(b)!==c;);while(0>b&&(c=c.parentElement));return c});(function(){window.addEventListener("load",function(){Array.prototype.slice.call(document.querySelectorAll(".video iframe")).forEach(function(a){a.src=a.dataset.src;a.dataset.src=""})})})();(function(){window.addEventListener("load",function(){Array.prototype.slice.call(document.querySelectorAll("img.deferred")).forEach(function(a){a.src=jSecure.sanitizeUrl(a.dataset.src);a.dataset.src=""})})})();(function(f){function c(a){var b,d,e,c;if(a=a.target.closest(".js-custom-tooltip-wrapper"))b=a.querySelector(".js-custom-tooltip-trigger"),a=document.getElementById(b.getAttribute("aria-describedby")),b=b.getBoundingClientRect(),a.style.left=0,a.style.right=null,d=a.getBoundingClientRect(),a.style.left=null,a.style.right=null,a&&(a.style.top=b.top-d.height-6+"px",e=b.left+b.width/2-d.width/2,c=Math.max(document.documentElement.clientWidth,f.innerWidth||0),e=e+d.width>c?"right":"left",a.style[e]=Math.max(0,
("right"===e?-1:1)*(b.left+b.width/2-d.width/2))+"px",a.classList.add("active"))}function g(a){if(a=a.target.closest(".js-custom-tooltip-wrapper"))a=a.querySelector(".js-custom-tooltip-trigger"),(a=document.getElementById(a.getAttribute("aria-describedby")))&&a.classList.remove("active")}f.addEventListener("load",function(){document.addEventListener("mouseover",c);document.addEventListener("mouseout",g);document.addEventListener("focus",c,!0);document.addEventListener("blur",g,!0);Array.prototype.slice.call(document.querySelectorAll("[data-deferred-class]")).forEach(function(a){a.classList.add(a.getAttribute("data-deferred-class"))})})})(this);(function(e){function g(a){a=a.target.closest("[data-modal-trigger]");var c;if(a){c=b.querySelector('[data-modal-template-id\x3d"'+a.getAttribute("data-modal-trigger")+'"]');var d,e=c.parentNode;if(c){d=b.createElement("div");d.innerHTML=c.innerHTML;for(a=d.querySelector("[data-modal-id]");d.firstChild;)e.insertBefore(d.firstChild,c);a&&(c=a.querySelector(".modal"),c.classList.add("visible"),a.classList.add("visible"),b.documentElement.classList.add("artdeco-modal-is-open"),b.documentElement.setAttribute("data-modal-active-id",
a.getAttribute("data-modal-id")))}}}function h(a){var b=a.target.closest(".dismiss");if(!b){if(a.target.closest(".modal"))return;b=a.target}b&&(a=b.closest("[data-modal-id]"),f(a))}function k(a){27===a.which&&b.documentElement.classList.contains("artdeco-modal-is-open")&&(a=b.querySelector('[data-modal-id\x3d"'+b.documentElement.getAttribute("data-modal-active-id")+'"]'),f(a))}function f(a){a&&(a.remove(),b.documentElement.classList.remove("artdeco-modal-is-open"),b.documentElement.removeAttribute("data-modal-active-id"))}
var b=e.document;e.addEventListener("load",function(){b.addEventListener("click",g);b.addEventListener("click",h);b.addEventListener("keyup",k)})})(this);(function(u,y){"function"===typeof define&&define.amd?define("hopscotch",y):"object"===typeof exports?module.exports=y():u.hopscotch||(u.hopscotch=y())})(this,function(){var u,y,A,B,C,D="bubble_default",z=window.Sizzle||null,b,v,s,p,l,H=!1,I="undefined"!==typeof jQuery,t=!1,w=!1,g=window.document,J=/^[a-zA-Z]+[a-zA-Z0-9_-]*$/,E={left:"right",right:"left"};try{"undefined"!==typeof window.sessionStorage&&(t=!0,sessionStorage.setItem("hopscotch.test.storage","ok"),sessionStorage.removeItem("hopscotch.test.storage"),
w=!0)}catch(N){}p={smoothScroll:!0,scrollDuration:1E3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!1,showNextButton:!0,bubbleWidth:280,bubblePadding:15,arrowWidth:20,skipIfNoElement:!0,isRtl:!1,cookieName:"hopscotch.tour.state"};Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});b={addClass:function(a,b){var c,d,e,k;if(a.className){d=b.split(/\s+/);c=" "+a.className+" ";e=0;for(k=d.length;e<k;++e)0>c.indexOf(" "+d[e]+" ")&&(c+=d[e]+" ");
a.className=c.replace(/^\s+|\s+$/g,"")}else a.className=b},removeClass:function(a,b){var c,d,e,k;d=b.split(/\s+/);c=" "+a.className+" ";e=0;for(k=d.length;e<k;++e)c=c.replace(" "+d[e]+" "," ");a.className=c.replace(/^\s+|\s+$/g,"")},hasClass:function(a,b){return a.className?-1!==(" "+a.className+" ").indexOf(" "+b+" "):!1},getPixelValue:function(a){var b=typeof a;return"number"===b?a:"string"===b?parseInt(a,10):0},valOrDefault:function(a,b){return"undefined"!==typeof a?a:b},invokeCallbackArrayHelper:function(a){var b;
if(Array.isArray(a)&&(b=s[a[0]],"function"===typeof b))return b.apply(this,a.slice(1))},invokeCallbackArray:function(a){var f,c;if(Array.isArray(a)){if("string"===typeof a[0])return b.invokeCallbackArrayHelper(a);f=0;for(c=a.length;f<c;++f)b.invokeCallback(a[f])}},invokeCallback:function(a){return"function"===typeof a?a():"string"===typeof a&&s[a]?s[a]():b.invokeCallbackArray(a)},invokeEventCallbacks:function(a,b){var c=v[a],d,e;if(b)return this.invokeCallback(b);d=0;for(e=c.length;d<e;++d)this.invokeCallback(c[d].cb)},
getScrollTop:function(){return"undefined"!==typeof window.pageYOffset?window.pageYOffset:g.documentElement.scrollTop},getScrollLeft:function(){return"undefined"!==typeof window.pageXOffset?window.pageXOffset:g.documentElement.scrollLeft},getWindowHeight:function(){return window.innerHeight||g.documentElement.clientHeight},addEvtListener:function(a,b,c){if(a)return a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)},removeEvtListener:function(a,b,c){if(a)return a.removeEventListener?
a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c)},documentIsReady:function(){return"complete"===g.readyState},evtPreventDefault:function(a){a.preventDefault?a.preventDefault():event&&(event.returnValue=!1)},extend:function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},getStepTargetHelper:function(a){var b=g.getElementById(a);if(b)return b;if(I)return b=jQuery(a),b.length?b[0]:null;if(z)return b=new z(a),b.length?b[0]:null;if(g.querySelector)try{return g.querySelector(a)}catch(c){}return/^#[a-zA-Z][\w-_:.]*$/.test(a)?
g.getElementById(a.substring(1)):null},getStepTarget:function(a){var f;if(!a||!a.target)return null;if("string"===typeof a.target)return b.getStepTargetHelper(a.target);if(Array.isArray(a.target)){var c,d;c=0;for(d=a.target.length;c<d;c++)if("string"===typeof a.target[c]&&(f=b.getStepTargetHelper(a.target[c])))return f;return null}return a.target},getI18NString:function(a){return B[a]||A[a]},setState:function(a,b,c){var d="";if(t&&w)try{sessionStorage.setItem(a,b)}catch(e){w=!1,this.setState(a,b,
c)}else t&&sessionStorage.removeItem(a),c&&(d=new Date,d.setTime(d.getTime()+864E5*c),d="; expires\x3d"+d.toGMTString()),g.cookie=a+"\x3d"+b+d+"; path\x3d/"},getState:function(a){var b=a+"\x3d",c=g.cookie.split(";"),d,e;if(t&&(e=sessionStorage.getItem(a)))return e;for(a=0;a<c.length;a++){for(d=c[a];" "===d.charAt(0);)d=d.substring(1,d.length);if(0===d.indexOf(b)){e=d.substring(b.length,d.length);break}}return e},clearState:function(a){t?sessionStorage.removeItem(a):this.setState(a,"",-1)},normalizePlacement:function(a){!a.placement&&
a.orientation&&(a.placement=a.orientation)},flipPlacement:function(a){if(a.isRtl&&!a._isFlipped){var b=["orientation","placement"],c,d;a.xOffset&&(a.xOffset=-1*this.getPixelValue(a.xOffset));for(d in b)c=b[d],a.hasOwnProperty(c)&&E.hasOwnProperty(a[c])&&(a[c]=E[a[c]]);a._isFlipped=!0}}};b.addEvtListener(window,"load",function(){H&&l.startTour()});v={next:[],prev:[],start:[],end:[],show:[],error:[],close:[]};s={};A={stepNums:null,nextBtn:"Next",prevBtn:"Back",doneBtn:"Done",skipBtn:"Skip",closeTooltip:"Close"};
B={};u=function(a){this.init(a)};u.prototype={isShowing:!1,currStep:void 0,setPosition:function(a){var f,c,d,e,k,h,l=b.getStepTarget(a),g=this.element,n=this.arrowEl,q=a.isRtl?"right":"left";b.flipPlacement(a);b.normalizePlacement(a);c=g.offsetWidth;f=g.offsetHeight;b.removeClass(g,"fade-in-down fade-in-up fade-in-left fade-in-right");d=l.getBoundingClientRect();k=a.isRtl?d.right-c:d.left;if("top"===a.placement)e=d.top-f-this.opt.arrowWidth;else if("bottom"===a.placement)e=d.bottom+this.opt.arrowWidth;
else if("left"===a.placement)e=d.top,k=d.left-c-this.opt.arrowWidth;else if("right"===a.placement)e=d.top,k=d.right+this.opt.arrowWidth;else throw Error("Bubble placement failed because step.placement is invalid or undefined!");h="center"!==a.arrowOffset?b.getPixelValue(a.arrowOffset):a.arrowOffset;if(!h)n.style.top="",n.style[q]="";else if("top"===a.placement||"bottom"===a.placement)n.style.top="",n.style[q]="center"===h?Math.floor(c/2-n.offsetWidth/2)+"px":h+"px";else if("left"===a.placement||"right"===
a.placement)n.style[q]="",n.style.top="center"===h?Math.floor(f/2-n.offsetHeight/2)+"px":h+"px";k="center"===a.xOffset?d.left+l.offsetWidth/2-c/2:k+b.getPixelValue(a.xOffset);e="center"===a.yOffset?d.top+l.offsetHeight/2-f/2:e+b.getPixelValue(a.yOffset);a.fixedElement||(e+=b.getScrollTop(),k+=b.getScrollLeft());g.style.position=a.fixedElement?"fixed":"absolute";g.style.top=e+"px";g.style.left=k+"px"},render:function(a,f,c){var d=this.element,e,k,h,g,p,n,q;a?this.currStep=a:this.currStep&&(a=this.currStep);
if(this.opt.isTourBubble){if(g=l.getCurrTour())k=g.customData,e=g.customRenderer,a.isRtl=a.hasOwnProperty("isRtl")?a.isRtl:g.hasOwnProperty("isRtl")?g.isRtl:this.opt.isRtl,h=g.unsafe,Array.isArray(g.steps)&&(p=g.steps.length,n=this._getStepI18nNum(this._getStepNum(p-1)),q=this._getStepNum(f)===this._getStepNum(p-1))}else k=a.customData,e=a.customRenderer,h=a.unsafe,a.isRtl=a.hasOwnProperty("isRtl")?a.isRtl:this.opt.isRtl;g=q?b.getI18NString("doneBtn"):a.showSkip?b.getI18NString("skipBtn"):b.getI18NString("nextBtn");
b.flipPlacement(a);b.normalizePlacement(a);this.placement=a.placement;f={i18n:{prevBtn:b.getI18NString("prevBtn"),nextBtn:g,closeTooltip:b.getI18NString("closeTooltip"),stepNum:this._getStepI18nNum(this._getStepNum(f)),numSteps:n},buttons:{showPrev:b.valOrDefault(a.showPrevButton,this.opt.showPrevButton)&&0<this._getStepNum(f),showNext:b.valOrDefault(a.showNextButton,this.opt.showNextButton),showCTA:b.valOrDefault(a.showCTAButton&&a.ctaLabel,!1),ctaLabel:a.ctaLabel,showClose:b.valOrDefault(this.opt.showCloseButton,
!0)},step:{num:f,isLast:b.valOrDefault(q,!1),title:a.title||"",content:a.content||"",isRtl:a.isRtl,placement:a.placement,padding:b.valOrDefault(a.padding,this.opt.bubblePadding),width:b.getPixelValue(a.width)||this.opt.bubbleWidth,customData:a.customData||{}},tour:{isTour:this.opt.isTourBubble,numSteps:p,unsafe:b.valOrDefault(h,!1),customData:k||{}}};if("function"===typeof e)d.innerHTML=e(f);else if("string"===typeof e){if(!l.templates||"function"!==typeof l.templates[e])throw Error('Bubble rendering failed - template "'+
e+'" is not a function.');d.innerHTML=l.templates[e](f)}else if(C)d.innerHTML=C(f);else{if(!l.templates||"function"!==typeof l.templates[D])throw Error('Bubble rendering failed - template "'+D+'" is not a function.');d.innerHTML=l.templates[D](f)}children=d.children;numChildren=children.length;for(e=0;e<numChildren;e++)node=children[e],b.hasClass(node,"hopscotch-arrow")&&(this.arrowEl=node);d.style.zIndex="number"===typeof a.zindex?a.zindex:"";this._setArrow(a.placement);this.hide(!1);this.setPosition(a);
c&&c(!a.fixedElement);return this},_getStepNum:function(a){var b=0,c,d=l.getSkippedStepsIndexes(),e,k=d.length;for(e=0;e<k;e++)c=d[e],c<a&&b++;return a-b},_getStepI18nNum:function(a){var f=b.getI18NString("stepNums");return a=f&&a<f.length?f[a]:a+1},_setArrow:function(a){b.removeClass(this.arrowEl,"down up right left");"top"===a?b.addClass(this.arrowEl,"down"):"bottom"===a?b.addClass(this.arrowEl,"up"):"left"===a?b.addClass(this.arrowEl,"right"):"right"===a&&b.addClass(this.arrowEl,"left")},_getArrowDirection:function(){if("top"===
this.placement)return"down";if("bottom"===this.placement)return"up";if("left"===this.placement)return"right";if("right"===this.placement)return"left"},show:function(){var a=this,f="fade-in-"+this._getArrowDirection();b.removeClass(this.element,"hide");b.addClass(this.element,f);setTimeout(function(){b.removeClass(a.element,"invisible")},50);setTimeout(function(){b.removeClass(a.element,f)},1E3);this.isShowing=!0;return this},hide:function(a){var f=this.element;a=b.valOrDefault(a,!0);f.style.top="";
f.style.left="";a?(b.addClass(f,"hide"),b.removeClass(f,"invisible")):(b.removeClass(f,"hide"),b.addClass(f,"invisible"));b.removeClass(f,"animate fade-in-up fade-in-down fade-in-right fade-in-left");this.isShowing=!1;return this},destroy:function(){var a=this.element;a&&a.parentNode.removeChild(a);b.removeEvtListener(a,"click",this.clickCb)},_handleBubbleClick:function(a){function f(c){return c===a.currentTarget?null:b.hasClass(c,"hopscotch-cta")?"cta":b.hasClass(c,"hopscotch-next")?"next":b.hasClass(c,
"hopscotch-prev")?"prev":b.hasClass(c,"hopscotch-close")?"close":f(c.parentElement)}var c;a=a||window.event;c=f(a.target||a.srcElement);if("cta"===c)this.opt.isTourBubble||l.getCalloutManager().removeCallout(this.currStep.id),this.currStep.onCTA&&b.invokeCallback(this.currStep.onCTA);else if("next"===c)l.nextStep(!0);else if("prev"===c)l.prevStep(!0);else if("close"===c){if(this.opt.isTourBubble){c=l.getCurrStepNum();var d=l.getCurrTour();c=c===d.steps.length-1;b.invokeEventCallbacks("close");l.endTour(!0,
c)}else this.opt.onClose&&b.invokeCallback(this.opt.onClose),this.opt.id&&!this.opt.isTourBubble?l.getCalloutManager().removeCallout(this.opt.id):this.destroy();b.evtPreventDefault(a)}},init:function(a){var f=g.createElement("div"),c=this,d=!1,e,k;this.element=f;k={showPrevButton:p.showPrevButton,showNextButton:p.showNextButton,bubbleWidth:p.bubbleWidth,bubblePadding:p.bubblePadding,arrowWidth:p.arrowWidth,isRtl:p.isRtl,showNumber:!0,isTourBubble:!0};a="undefined"===typeof a?{}:a;b.extend(k,a);this.opt=
k;f.className="hopscotch-bubble animated";k.isTourBubble?(a=l.getCurrTour())&&b.addClass(f,"tour-"+a.id):b.addClass(f,"hopscotch-callout no-number");b.addEvtListener(window,"resize",function(){!d&&c.isShowing&&(d=!0,setTimeout(function(){c.setPosition(c.currStep);d=!1},100))});this.clickCb=function(a){c._handleBubbleClick(a)};b.addEvtListener(f,"click",this.clickCb);this.hide();b.documentIsReady()?g.body.appendChild(f):(g.addEventListener?(e=function(){g.removeEventListener("DOMContentLoaded",e);
window.removeEventListener("load",e);g.body.appendChild(f)},g.addEventListener("DOMContentLoaded",e,!1)):(e=function(){"complete"===g.readyState&&(g.detachEvent("onreadystatechange",e),window.detachEvent("onload",e),g.body.appendChild(f))},g.attachEvent("onreadystatechange",e)),b.addEvtListener(window,"load",e))}};y=function(){var a={},f={};this.createCallout=function(c){var d;if(c.id){if(!J.test(c.id))throw Error("Callout ID is using an invalid format. Use alphanumeric, underscores, and/or hyphens only. First character must be a letter.");
if(a[c.id])throw Error("Callout by that id already exists. Please choose a unique id.");if(!b.getStepTarget(c))throw Error("Must specify existing target element via 'target' option.");c.showNextButton=c.showPrevButton=!1;c.isTourBubble=!1;d=new u(c);a[c.id]=d;f[c.id]=c;d.render(c,null,function(){d.show();c.onShow&&b.invokeCallback(c.onShow)})}else throw Error("Must specify a callout id.");return d};this.getCallout=function(b){return a[b]};this.removeAllCallouts=function(){for(var b in a)a.hasOwnProperty(b)&&
this.removeCallout(b)};this.removeCallout=function(b){var d=a[b];a[b]=null;f[b]=null;d&&d.destroy()};this.refreshCalloutPositions=function(){var b,d,e;for(b in a)a.hasOwnProperty(b)&&f.hasOwnProperty(b)&&(d=a[b],e=f[b],d&&e&&d.setPosition(e))}};l=new function(a){var f=this,c,d,e,k,h,g={},t,n,q=[],w,x=function(a){c&&c.element&&c.element.parentNode||(c=new u(e));a&&b.extend(c.opt,{bubblePadding:m("bubblePadding"),bubbleWidth:m("bubbleWidth"),showNextButton:m("showNextButton"),showPrevButton:m("showPrevButton"),
showCloseButton:m("showCloseButton"),arrowWidth:m("arrowWidth"),isRtl:m("isRtl")});return c},m=function(a){return"undefined"===typeof e?p[a]:b.valOrDefault(e[a],p[a])},r=function(){return!k||0>h||h>=k.steps.length?null:k.steps[h]},F=function(){f.nextStep()},A=function(a){var c=x().element,d=b.getPixelValue(c.style.top),c=d+b.getPixelValue(c.offsetHeight),e=b.getStepTarget(r()).getBoundingClientRect(),f=e.top+b.getScrollTop(),e=e.bottom+b.getScrollTop(),d=d<f?d:f,c=c>e?c:e,f=b.getScrollTop(),e=f+b.getWindowHeight(),
g=d-m("scrollTopMargin"),k,h,l;d>=f&&(d<=f+m("scrollTopMargin")||c<=e)?a&&a():m("smoothScroll")?I?jQuery("body, html").animate({scrollTop:g},m("scrollDuration"),a):(0>g&&(g=0),k=f>d?-1:1,h=Math.abs(f-g)/(m("scrollDuration")/10),l=function(){var c=b.getScrollTop(),d=c+k*h;0<k&&d>=g||0>k&&d<=g?(d=g,a&&a(),window.scrollTo(0,d)):(window.scrollTo(0,d),b.getScrollTop()===c?a&&a():setTimeout(l,10))},l()):(window.scrollTo(0,g),a&&a())},G=function(a,c){var d,e,f;0<=h+a&&h+a<k.steps.length?(h+=a,e=r(),f=function(){(d=
b.getStepTarget(e))?(g[h]&&delete g[h],c(h)):(g[h]=!0,b.invokeEventCallbacks("error"),G(a,c))},e.delay?setTimeout(f,e.delay):f()):c(-1)},z=function(a,c){var d=this,e,f,g,l;x().hide();a=b.valOrDefault(a,!0);e=r();e.nextOnTargetClick&&b.removeEvtListener(b.getStepTarget(e),"click",F);f=e;g=0<c?f.multipage:0<h&&k.steps[h-1].multipage;l=function(d){var e;if(-1===d)return this.endTour(!0);a&&(e=0<c?b.invokeEventCallbacks("next",f.onNext):b.invokeEventCallbacks("prev",f.onPrev));d===h&&(g?K():(e=b.valOrDefault(e,
!0))?this.showStep(d):this.endTour(!1))};if(!g&&m("skipIfNoElement"))G(c,function(a){l.call(d,a)});else if(0<=h+c&&h+c<k.steps.length){h+=c;e=r();if(!b.getStepTarget(e)&&!g)return b.invokeEventCallbacks("error"),this.endTour(!0,!1);l.call(this,h)}else if(h+c===k.steps.length)return this.endTour();return this},E=function(a){var c={},d;for(d in a)a.hasOwnProperty(d)&&"id"!==d&&"steps"!==d&&(c[d]=a[d]);w.call(this,c,!0);if(a=b.getState(m("cookieName")))a=a.split(":"),t=a[0],n=a[1],2<a.length&&(q=a[2].split(",")),
n=parseInt(n,10);return this},M=function(a,c,d){h=a||0;g=c||{};a=r();(a=b.getStepTarget(a))?d(h):a||(b.invokeEventCallbacks("error"),g[h]=!0,m("skipIfNoElement")?G(1,d):(h=-1,d(h)))},L=function(a){function c(){e.show();b.invokeEventCallbacks("show",d.onShow)}var d=k.steps[a],e=x(),f=b.getStepTarget(d);h!==a&&r().nextOnTargetClick&&b.removeEvtListener(b.getStepTarget(r()),"click",F);h=a;e.hide(!1);e.render(d,a,function(a){a?A(c):c();d.nextOnTargetClick&&b.addEvtListener(f,"click",F)});K()},K=function(){var a=
k.id+":"+h,c=l.getSkippedStepsIndexes();c&&0<c.length&&(a+=":"+c.join(","));b.setState(m("cookieName"),a,1)};this.getCalloutManager=function(){"undefined"===typeof d&&(d=new y);return d};this.startTour=function(a,c){var d,e,f={},g=this;if(!k){if(!a)throw Error("Tour data is required for startTour.");if(!a.id||!J.test(a.id))throw Error("Tour ID is using an invalid format. Use alphanumeric, underscores, and/or hyphens only. First character must be a letter.");k=a;E.call(this,a)}if("undefined"!==typeof c){if(c>=
k.steps.length)throw Error("Specified step number out of bounds.");e=c}if(!b.documentIsReady())return H=!0,this;if("undefined"===typeof e&&k.id===t&&"undefined"!==typeof n){if(e=n,0<q.length)for(var h=0,l=q.length;h<l;h++)f[q[h]]=!0}else e||(e=0);M(e,f,function(a){-1!==a&&b.getStepTarget(k.steps[a])?(b.invokeEventCallbacks("start"),d=x(),d.hide(!1),g.isActive=!0,b.getStepTarget(r())?g.showStep(a):(b.invokeEventCallbacks("error"),m("skipIfNoElement")&&g.nextStep(!1))):g.endTour(!1,!1)});return this};
this.showStep=function(a){var c=k.steps[a],d=h;if(b.getStepTarget(c))return c.delay?setTimeout(function(){L(a)},c.delay):L(a),this;h=a;b.invokeEventCallbacks("error");h=d};this.prevStep=function(a){z.call(this,a,-1);return this};this.nextStep=function(a){z.call(this,a,1);return this};this.endTour=function(a,d){var e=x(),f;a=b.valOrDefault(a,!0);d=b.valOrDefault(d,!0);k&&(f=r())&&f.nextOnTargetClick&&b.removeEvtListener(b.getStepTarget(f),"click",F);h=0;n=void 0;e.hide();a&&b.clearState(m("cookieName"));
this.isActive&&(this.isActive=!1,k&&d&&b.invokeEventCallbacks("end"));this.removeCallbacks(null,!0);this.resetDefaultOptions();c&&(c.destroy(),c=null);k=null;return this};this.getCurrTour=function(){return k};this.getCurrTarget=function(){return b.getStepTarget(r())};this.getCurrStepNum=function(){return h};this.getSkippedStepsIndexes=function(){var a=[],b;for(b in g)a.push(b);return a};this.refreshBubblePosition=function(){var a=r();a&&x().setPosition(a);this.getCalloutManager().refreshCalloutPositions();
return this};this.listen=function(a,b,c){a&&v[a].push({cb:b,fromTour:c});return this};this.unlisten=function(a,b){var c=v[a],d,e;d=0;for(e=c.length;d<e;++d)c[d].cb===b&&c.splice(d,1);return this};this.removeCallbacks=function(a,b){var c,d,e,f;for(f in v)if(!a||a===f)if(b)for(c=v[f],d=0,e=c.length;d<e;++d)c[d].fromTour&&(c.splice(d--,1),--e);else v[f]=[];return this};this.registerHelper=function(a,b){"string"===typeof a&&"function"===typeof b&&(s[a]=b)};this.unregisterHelper=function(a){s[a]=null};
this.invokeHelper=function(a){var b=[],c,d;c=1;for(d=arguments.length;c<d;++c)b.push(arguments[c]);s[a]&&s[a].call(null,b)};this.setCookieName=function(a){e.cookieName=a;return this};this.resetDefaultOptions=function(){e={};return this};this.resetDefaultI18N=function(){B={};return this};this.getState=function(){return b.getState(m("cookieName"))};w=function(a,c){var d="next prev start end show error close".split(" "),f,g,h;e||this.resetDefaultOptions();b.extend(e,a);a&&b.extend(B,a.i18n);g=0;for(h=
d.length;g<h;++g)f="on"+d[g].charAt(0).toUpperCase()+d[g].substring(1),a[f]&&this.listen(d[g],a[f],c);x(!0);return this};this.configure=function(a){return w.call(this,a,!1)};this.setRenderer=function(a){var b=typeof a;"string"===b?(D=a,C=void 0):"function"===b&&(C=a);return this};this.setEscaper=function(a){return this};a&&this.configure(a)};(function(){}).call(l);return l});(function(b){var c=b.document;b.addEventListener("load",function(){var h=require("hopscotch"),m=b.dust,k=[],a=Array.prototype.slice.call(c.querySelectorAll(".js-tour-step")),l=Math.max(c.documentElement.clientWidth,b.innerWidth||0);a.forEach(function(a){var e=a.getAttribute("data-placement"),b=a.getAttribute("data-x-offset"),f=c.getElementById(a.getAttribute("data-target"));if(f){var d=f.getBoundingClientRect(),g=d.left+d.width/2-176,d=0>g?-1*d.left:g+352>l?d.left-2*g-352+l:"center";k.push({title:a.getAttribute("data-title"),
content:a.getAttribute("data-content"),target:f,placement:e,width:352,xOffset:isNaN(parseInt(b,10))?-1!==["top","bottom"].indexOf(e)?d:0:b,yOffset:-1!==["left","right"].indexOf(e)?"center":0})}});var a=c.querySelector(".js-tour-i18n"),n={id:"privacy-policy",i18n:{nextBtn:a.getAttribute("data-next-button"),prevBtn:a.getAttribute("data-prev-button"),doneBtn:a.getAttribute("data-done-button"),closeTooltip:a.getAttribute("data-close-tooltip")},showPrevButton:!0,steps:k};h.setRenderer(function(a){var b;
m.render("templates/shared/product_tour_bubble",a,function(a,c){b=c});return b});a=c.querySelector(".js-tour-trigger");"undefined"!==typeof a&&null!==a&&c.querySelector(".js-tour-trigger").addEventListener("click",function(){h.startTour(n)})})})(this);(function(b,h,q){function k(){function k(a,b){this.scrollLeft=a;this.scrollTop=b}function f(a){if("object"!==typeof a||null===a||void 0===a.behavior||"auto"===a.behavior||"instant"===a.behavior)return!0;if("object"===typeof a&&"smooth"===a.behavior)return!1;throw new TypeError("behavior not valid");}function m(a){a.frame=b.requestAnimationFrame(m.bind(b,a));var c,d;d=(n()-a.startTime)/468;c=.5*(1-Math.cos(Math.PI*(1<d?1:d)));d=a.startX+(a.x-a.startX)*c;c=a.startY+(a.y-a.startY)*c;a.method.call(a.scrollable,
d,c);d===a.x&&c===a.y&&b.cancelAnimationFrame(a.frame)}function g(a,c,d){var e,f,g,p=n();a===h.body?(e=b,f=b.scrollX||b.pageXOffset,a=b.scrollY||b.pageYOffset,g=l.scroll):(e=a,f=a.scrollLeft,a=a.scrollTop,g=k);m({scrollable:e,method:g,startTime:p,startX:f,startY:a,x:c,y:d,frame:void 0})}if(!("scrollBehavior"in h.documentElement.style)){var e=b.HTMLElement||b.Element,l={scroll:b.scroll||b.scrollTo,scrollBy:b.scrollBy,elScroll:e.prototype.scroll||k,scrollIntoView:e.prototype.scrollIntoView},n=b.performance&&
b.performance.now?b.performance.now.bind(b.performance):Date.now;b.scroll=b.scrollTo=function(a,c){f(a)?l.scroll.call(b,a.left||a,a.top||c):g.call(b,h.body,~~a.left,~~a.top)};b.scrollBy=function(a,c){f(a)?l.scrollBy.call(b,a.left||a,a.top||c):g.call(b,h.body,~~a.left+(b.scrollX||b.pageXOffset),~~a.top+(b.scrollY||b.pageYOffset))};e.prototype.scroll=e.prototype.scrollTo=function(a,b){f(a)?l.elScroll.call(this,a.left||a,a.top||b):g.call(this,this,a.left,a.top)};e.prototype.scrollBy=function(a,b){"object"===
typeof a?this.scroll({left:a.left+this.scrollLeft,top:a.top+this.scrollTop,behavior:a.behavior}):this.scroll(this.scrollLeft+a,this.scrollTop+b)};e.prototype.scrollIntoView=function(a){if(f(a))l.scrollIntoView.call(this,a||!0);else{a=this;var c,d,e;do a=a.parentNode,c=a===h.body,d=a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth,e="visible"===b.getComputedStyle(a,null).overflow;while(!c&&(!d||e));c=a.getBoundingClientRect();d=this.getBoundingClientRect();a!==h.body?(g.call(this,a,a.scrollLeft+
d.left-c.left,a.scrollTop+d.top-c.top),b.scrollBy({left:c.left,top:c.top,behavior:"smooth"})):b.scrollBy({left:d.left,top:d.top,behavior:"smooth"})}}}}"object"===typeof exports?module.exports={polyfill:k}:k()})(window,document);(function(c){c.addEventListener("load",function(){document.addEventListener("click",function(a){var b=a.target.closest('a[href*\x3d"#"]:not([href\x3d"#"])');b&&location.pathname.replace(/^\//,"")===b.pathname.replace(/^\//,"")&&location.hostname===b.hostname&&(a=(a=document.querySelector(b.hash))?a:document.querySelector('[name\x3d"'+b.hash.slice(1)+'"]'))&&a.scrollIntoView({behavior:"smooth"})})})})(this);