(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};i.SENTRY_RELEASE={id:"421d042dfa927832c738bef4320c68013bad9035"};var c=new i.Error().stack;c&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[c]="0c5c25f7-1766-40d0-8c85-754f7e103d6c",i._sentryDebugIdIdentifier="sentry-dbid-0c5c25f7-1766-40d0-8c85-754f7e103d6c")}catch{}})();(function(){+(function(i){"use strict";function c(){var p=document.createElement("bootstrap"),a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in a)if(p.style[t]!==void 0)return{end:a[t]};return!1}i.fn.emulateTransitionEnd=function(p){var a=!1,t=this;i(this).one("bsTransitionEnd",function(){a=!0});var e=function(){a||i(t).trigger(i.support.transition.end)};return setTimeout(e,p),this},i(function(){i.support.transition=c(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(p){return i(p.target).is(this)?p.handleObj.handler.apply(this,arguments):void 0}})})})(jQuery),+(function(i){"use strict";function c(t){return this.each(function(){var e=i(this),o=e.data("bs.tooltip"),n=typeof t=="object"&&t;(o||!/destroy|hide/.test(t))&&(o||e.data("bs.tooltip",o=new p(this,n)),typeof t=="string"&&o[t]())})}var p=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};p.VERSION="3.3.7",p.TRANSITION_DURATION=150,p.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},p.prototype.init=function(t,e,o){if(this.enabled=!0,this.type=t,this.$element=i(e),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&i(i.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),h=n.length;h--;){var s=n[h];if(s=="click")this.$element.on("click."+this.type,this.options.selector,i.proxy(this.toggle,this));else if(s!="manual"){var r=s=="hover"?"mouseenter":"focusin",l=s=="hover"?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,i.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,i.proxy(this.leave,this))}}this.options.selector?this._options=i.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},p.prototype.getDefaults=function(){return p.DEFAULTS},p.prototype.getOptions=function(t){return t=i.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},p.prototype.getDelegateOptions=function(){var t={},e=this.getDefaults();return this._options&&i.each(this._options,function(o,n){e[o]!=n&&(t[o]=n)}),t},p.prototype.enter=function(t){var e=t instanceof this.constructor?t:i(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),i(t.currentTarget).data("bs."+this.type,e)),t instanceof i.Event&&(e.inState[t.type=="focusin"?"focus":"hover"]=!0),e.tip().hasClass("in")||e.hoverState=="in"?(e.hoverState="in",void 0):(clearTimeout(e.timeout),e.hoverState="in",e.options.delay&&e.options.delay.show?(e.timeout=setTimeout(function(){e.hoverState=="in"&&e.show()},e.options.delay.show),void 0):e.show())},p.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},p.prototype.leave=function(t){var e=t instanceof this.constructor?t:i(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),i(t.currentTarget).data("bs."+this.type,e)),t instanceof i.Event&&(e.inState[t.type=="focusout"?"focus":"hover"]=!1),e.isInStateTrue()?void 0:(clearTimeout(e.timeout),e.hoverState="out",e.options.delay&&e.options.delay.hide?(e.timeout=setTimeout(function(){e.hoverState=="out"&&e.hide()},e.options.delay.hide),void 0):e.hide())},p.prototype.show=function(){var t=i.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=i.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var o=this,n=this.tip(),h=this.getUID(this.type);this.setContent(),n.attr("id",h),this.$element.attr("aria-describedby",h),this.options.animation&&n.addClass("fade");var s=typeof this.options.placement=="function"?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,l=r.test(s);l&&(s=s.replace(r,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),d=n[0].offsetWidth,f=n[0].offsetHeight;if(l){var v=s,m=this.getPosition(this.$viewport);s=s=="bottom"&&u.bottom+f>m.bottom?"top":s=="top"&&u.top-f<m.top?"bottom":s=="right"&&u.right+d>m.width?"left":s=="left"&&u.left-d<m.left?"right":s,n.removeClass(v).addClass(s)}var _=this.getCalculatedOffset(s,u,d,f);this.applyPlacement(_,s);var g=function(){var y=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,y=="out"&&o.leave(o)};i.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",g).emulateTransitionEnd(p.TRANSITION_DURATION):g()}},p.prototype.applyPlacement=function(t,e){var o=this.tip(),n=o[0].offsetWidth,h=o[0].offsetHeight,s=parseInt(o.css("margin-top"),10),r=parseInt(o.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(r)&&(r=0),t.top+=s,t.left+=r,i.offset.setOffset(o[0],i.extend({using:function(_){o.css({top:Math.round(_.top),left:Math.round(_.left)})}},t),0),o.addClass("in");var l=o[0].offsetWidth,u=o[0].offsetHeight;e=="top"&&u!=h&&(t.top=t.top+h-u);var d=this.getViewportAdjustedDelta(e,t,l,u);d.left?t.left+=d.left:t.top+=d.top;var f=/top|bottom/.test(e),v=f?2*d.left-n+l:2*d.top-h+u,m=f?"offsetWidth":"offsetHeight";o.offset(t),this.replaceArrow(v,o[0][m],f)},p.prototype.replaceArrow=function(t,e,o){this.arrow().css(o?"left":"top",50*(1-t/e)+"%").css(o?"top":"left","")},p.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},p.prototype.hide=function(t){function e(){o.hoverState!="in"&&n.detach(),o.$element&&o.$element.removeAttr("aria-describedby").trigger("hidden.bs."+o.type),t&&t()}var o=this,n=i(this.$tip),h=i.Event("hide.bs."+this.type);return this.$element.trigger(h),h.isDefaultPrevented()?void 0:(n.removeClass("in"),i.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",e).emulateTransitionEnd(p.TRANSITION_DURATION):e(),this.hoverState=null,this)},p.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||typeof t.attr("data-original-title")!="string")&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},p.prototype.hasContent=function(){return this.getTitle()},p.prototype.getPosition=function(t){t=t||this.$element;var e=t[0],o=e.tagName=="BODY",n=e.getBoundingClientRect();n.width==null&&(n=i.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var h=window.SVGElement&&e instanceof window.SVGElement,s=o?{top:0,left:0}:h?null:t.offset(),r={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=o?{width:i(window).width(),height:i(window).height()}:null;return i.extend({},n,r,l,s)},p.prototype.getCalculatedOffset=function(t,e,o,n){return t=="bottom"?{top:e.top+e.height,left:e.left+e.width/2-o/2}:t=="top"?{top:e.top-n,left:e.left+e.width/2-o/2}:t=="left"?{top:e.top+e.height/2-n/2,left:e.left-o}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},p.prototype.getViewportAdjustedDelta=function(t,e,o,n){var h={top:0,left:0};if(!this.$viewport)return h;var s=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var l=e.top-s-r.scroll,u=e.top+s-r.scroll+n;l<r.top?h.top=r.top-l:u>r.top+r.height&&(h.top=r.top+r.height-u)}else{var d=e.left-s,f=e.left+s+o;d<r.left?h.left=r.left-d:f>r.right&&(h.left=r.left+r.width-f)}return h},p.prototype.getTitle=function(){var t,e=this.$element,o=this.options;return t=e.attr("data-original-title")||(typeof o.title=="function"?o.title.call(e[0]):o.title)},p.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},p.prototype.tip=function(){if(!this.$tip&&(this.$tip=i(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},p.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},p.prototype.enable=function(){this.enabled=!0},p.prototype.disable=function(){this.enabled=!1},p.prototype.toggleEnabled=function(){this.enabled=!this.enabled},p.prototype.toggle=function(t){var e=this;t&&(e=i(t.currentTarget).data("bs."+this.type),e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),i(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},p.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var a=i.fn.tooltip;i.fn.tooltip=c,i.fn.tooltip.Constructor=p,i.fn.tooltip.noConflict=function(){return i.fn.tooltip=a,this}})(jQuery),+(function(i){"use strict";function c(t){return this.each(function(){var e=i(this),o=e.data("bs.popover"),n=typeof t=="object"&&t;(o||!/destroy|hide/.test(t))&&(o||e.data("bs.popover",o=new p(this,n)),typeof t=="string"&&o[t]())})}var p=function(t,e){this.init("popover",t,e)};if(!i.fn.tooltip)throw new Error("Popover requires tooltip.js");p.VERSION="3.3.7",p.DEFAULTS=i.extend({},i.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),p.prototype=i.extend({},i.fn.tooltip.Constructor.prototype),p.prototype.constructor=p,p.prototype.getDefaults=function(){return p.DEFAULTS},p.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),o=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?typeof o=="string"?"html":"append":"text"](o),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},p.prototype.hasContent=function(){return this.getTitle()||this.getContent()},p.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||(typeof e.content=="function"?e.content.call(t[0]):e.content)},p.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var a=i.fn.popover;i.fn.popover=c,i.fn.popover.Constructor=p,i.fn.popover.noConflict=function(){return i.fn.popover=a,this}})(jQuery),(function(i,c){return typeof define=="function"&&define.amd?define(["jquery"],function(p){return i.Tour=c(p)}):typeof exports=="object"?module.exports=c(require("jQuery")):i.Tour=c(i.jQuery)})(window,function(i){var c,p;return p=window.document,c=(function(){function a(t){var e;try{e=window.localStorage}catch{e=!1}this._options=i.extend({name:"tour",steps:[],container:"body",autoscroll:!0,keyboard:!0,storage:e,debug:!1,backdrop:!1,backdropContainer:"body",backdropPadding:0,redirect:!0,orphan:!1,duration:!1,delay:!1,basePath:"",template:'<div class="popover" role="tooltip"> <div class="arrow"></div> <h3 class="popover-title"></h3> <div class="popover-content"></div> <div class="popover-navigation"> <div class="btn-group"> <button class="btn btn-sm btn-default" data-role="prev">&laquo; Prev</button> <button class="btn btn-sm btn-default" data-role="next">Next &raquo;</button> <button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="Pause" data-resume-text="Resume">Pause</button> </div> <button class="btn btn-sm btn-default" data-role="end">End tour</button> </div> </div>',afterSetState:function(){},afterGetState:function(){},afterRemoveState:function(){},onStart:function(){},onEnd:function(){},onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNext:function(){},onPrev:function(){},onPause:function(){},onResume:function(){},onRedirectError:function(){}},t),this._force=!1,this._inited=!1,this._current=null,this.backdrop={overlay:null,$element:null,$background:null,backgroundShown:!1,overlayElementShown:!1}}return a.prototype.addSteps=function(t){var e,o,n;for(o=0,n=t.length;n>o;o++)e=t[o],this.addStep(e);return this},a.prototype.addStep=function(t){return this._options.steps.push(t),this},a.prototype.getStep=function(t){return this._options.steps[t]!=null?i.extend({id:"step-"+t,path:"",host:"",placement:"right",title:"",content:"<p></p>",next:t===this._options.steps.length-1?-1:t+1,prev:t-1,animation:!0,container:this._options.container,autoscroll:this._options.autoscroll,backdrop:this._options.backdrop,backdropContainer:this._options.backdropContainer,backdropPadding:this._options.backdropPadding,redirect:this._options.redirect,reflexElement:this._options.steps[t].element,backdropElement:this._options.steps[t].element,orphan:this._options.orphan,duration:this._options.duration,delay:this._options.delay,template:this._options.template,onShow:this._options.onShow,onShown:this._options.onShown,onHide:this._options.onHide,onHidden:this._options.onHidden,onNext:this._options.onNext,onPrev:this._options.onPrev,onPause:this._options.onPause,onResume:this._options.onResume,onRedirectError:this._options.onRedirectError},this._options.steps[t]):void 0},a.prototype.init=function(t){return this._force=t,this.ended()?(this._debug("Tour ended, init prevented."),this):(this.setCurrentStep(),this._initMouseNavigation(),this._initKeyboardNavigation(),this._onResize((function(e){return function(){return e.showStep(e._current)}})(this)),this._current!==null&&this.showStep(this._current),this._inited=!0,this)},a.prototype.start=function(t){var e;return t==null&&(t=!1),this._inited||this.init(t),this._current===null&&(e=this._makePromise(this._options.onStart!=null?this._options.onStart(this):void 0),this._callOnPromiseDone(e,this.showStep,0)),this},a.prototype.next=function(){var t;return t=this.hideStep(this._current,this._current+1),this._callOnPromiseDone(t,this._showNextStep)},a.prototype.prev=function(){var t;return t=this.hideStep(this._current,this._current-1),this._callOnPromiseDone(t,this._showPrevStep)},a.prototype.goTo=function(t){var e;return e=this.hideStep(this._current,t),this._callOnPromiseDone(e,this.showStep,t)},a.prototype.end=function(){var t,e;return t=(function(o){return function(){return i(p).off("click.tour-"+o._options.name),i(p).off("keyup.tour-"+o._options.name),i(window).off("resize.tour-"+o._options.name),o._setState("end","yes"),o._inited=!1,o._force=!1,o._clearTimer(),o._options.onEnd!=null?o._options.onEnd(o):void 0}})(this),e=this.hideStep(this._current),this._callOnPromiseDone(e,t)},a.prototype.ended=function(){return!this._force&&!!this._getState("end")},a.prototype.restart=function(){return this._removeState("current_step"),this._removeState("end"),this._removeState("redirect_to"),this.start()},a.prototype.pause=function(){var t;return t=this.getStep(this._current),t&&t.duration?(this._paused=!0,this._duration-=new Date().getTime()-this._start,window.clearTimeout(this._timer),this._debug("Paused/Stopped step "+(this._current+1)+" timer ("+this._duration+" remaining)."),t.onPause!=null?t.onPause(this,this._duration):void 0):this},a.prototype.resume=function(){var t;return t=this.getStep(this._current),t&&t.duration?(this._paused=!1,this._start=new Date().getTime(),this._duration=this._duration||t.duration,this._timer=window.setTimeout((function(e){return function(){return e._isLast()?e.next():e.end()}})(this),this._duration),this._debug("Started step "+(this._current+1)+" timer with duration "+this._duration),t.onResume!=null&&this._duration!==t.duration?t.onResume(this,this._duration):void 0):this},a.prototype.hideStep=function(t,e){var o,n,h,s;return(s=this.getStep(t))?(this._clearTimer(),h=this._makePromise(s.onHide!=null?s.onHide(this,t):void 0),n=(function(r){return function(){var l,u;return l=i(s.element),l.data("bs.popover")||l.data("popover")||(l=i("body")),l.popover("destroy").removeClass("tour-"+r._options.name+"-element tour-"+r._options.name+"-"+t+"-element").removeData("bs.popover").focus(),s.reflex&&i(s.reflexElement).removeClass("tour-step-element-reflex").off(""+r._reflexEvent(s.reflex)+".tour-"+r._options.name),s.backdrop&&(u=e!=null&&r.getStep(e),u&&u.backdrop&&u.backdropElement===s.backdropElement||r._hideBackdrop()),s.onHidden!=null?s.onHidden(r):void 0}})(this),o=s.delay.hide||s.delay,{}.toString.call(o)==="[object Number]"&&o>0?(this._debug("Wait "+o+" milliseconds to hide the step "+(this._current+1)),window.setTimeout((function(r){return function(){return r._callOnPromiseDone(h,n)}})(this),o)):this._callOnPromiseDone(h,n),h):void 0},a.prototype.showStep=function(t){var e,o,n,h,s,r;return this.ended()?(this._debug("Tour ended, showStep prevented."),this):(r=this.getStep(t),r&&(s=t<this._current,o=this._makePromise(r.onShow!=null?r.onShow(this,t):void 0),this.setCurrentStep(t),e=(function(){switch({}.toString.call(r.path)){case"[object Function]":return r.path();case"[object String]":return this._options.basePath+r.path;default:return r.path}}).call(this),!r.redirect||!this._isRedirect(r.host,e,p.location)||(this._redirect(r,t,e),this._isJustPathHashDifferent(r.host,e,p.location)))?(h=(function(l){return function(){var u;if(l._isOrphan(r)){if(r.orphan===!1)return l._debug("Skip the orphan step "+(l._current+1)+`.
Orphan option is false and the element does not exist or is hidden.`),s?l._showPrevStep():l._showNextStep(),void 0;l._debug("Show the orphan step "+(l._current+1)+". Orphans option is true.")}return r.backdrop&&l._showBackdrop(r),u=function(){return l.getCurrentStep()!==t||l.ended()?void 0:(r.element!=null&&r.backdrop&&l._showOverlayElement(r,!0),l._showPopover(r,t),r.onShown!=null&&r.onShown(l),l._debug("Step "+(l._current+1)+" of "+l._options.steps.length))},r.autoscroll?l._scrollIntoView(r,u):u(),r.duration?l.resume():void 0}})(this),n=r.delay.show||r.delay,{}.toString.call(n)==="[object Number]"&&n>0?(this._debug("Wait "+n+" milliseconds to show the step "+(this._current+1)),window.setTimeout((function(l){return function(){return l._callOnPromiseDone(o,h)}})(this),n)):this._callOnPromiseDone(o,h),o):void 0)},a.prototype.getCurrentStep=function(){return this._current},a.prototype.setCurrentStep=function(t){return t!=null?(this._current=t,this._setState("current_step",t)):(this._current=this._getState("current_step"),this._current=this._current===null?null:parseInt(this._current,10)),this},a.prototype.redraw=function(){return this._showOverlayElement(this.getStep(this.getCurrentStep()).element,!0)},a.prototype._setState=function(t,e){var o,n;if(this._options.storage){n=""+this._options.name+"_"+t;try{this._options.storage.setItem(n,e)}catch(h){o=h,o.code===DOMException.QUOTA_EXCEEDED_ERR&&this._debug("LocalStorage quota exceeded. State storage failed.")}return this._options.afterSetState(n,e)}return this._state==null&&(this._state={}),this._state[t]=e},a.prototype._removeState=function(t){var e;return this._options.storage?(e=""+this._options.name+"_"+t,this._options.storage.removeItem(e),this._options.afterRemoveState(e)):this._state!=null?delete this._state[t]:void 0},a.prototype._getState=function(t){var e,o;return this._options.storage?(e=""+this._options.name+"_"+t,o=this._options.storage.getItem(e)):this._state!=null&&(o=this._state[t]),(o===void 0||o==="null")&&(o=null),this._options.afterGetState(t,o),o},a.prototype._showNextStep=function(){var t,e,o;return o=this.getStep(this._current),e=(function(n){return function(){return n.showStep(o.next)}})(this),t=this._makePromise(o.onNext!=null?o.onNext(this):void 0),this._callOnPromiseDone(t,e)},a.prototype._showPrevStep=function(){var t,e,o;return o=this.getStep(this._current),e=(function(n){return function(){return n.showStep(o.prev)}})(this),t=this._makePromise(o.onPrev!=null?o.onPrev(this):void 0),this._callOnPromiseDone(t,e)},a.prototype._debug=function(t){return this._options.debug?window.console.log("Bootstrap Tour '"+this._options.name+"' | "+t):void 0},a.prototype._isRedirect=function(t,e,o){var n;return t!=null&&t!==""&&({}.toString.call(t)==="[object RegExp]"&&!t.test(o.origin)||{}.toString.call(t)==="[object String]"&&this._isHostDifferent(t,o))?!0:(n=[o.pathname,o.search,o.hash].join(""),e!=null&&e!==""&&({}.toString.call(e)==="[object RegExp]"&&!e.test(n)||{}.toString.call(e)==="[object String]"&&this._isPathDifferent(e,n)))},a.prototype._isHostDifferent=function(t,e){switch({}.toString.call(t)){case"[object RegExp]":return!t.test(e.origin);case"[object String]":return this._getProtocol(t)!==this._getProtocol(e.href)||this._getHost(t)!==this._getHost(e.href);default:return!0}},a.prototype._isPathDifferent=function(t,e){return this._getPath(t)!==this._getPath(e)||!this._equal(this._getQuery(t),this._getQuery(e))||!this._equal(this._getHash(t),this._getHash(e))},a.prototype._isJustPathHashDifferent=function(t,e,o){var n;return t!=null&&t!==""&&this._isHostDifferent(t,o)?!1:(n=[o.pathname,o.search,o.hash].join(""),{}.toString.call(e)==="[object String]"?this._getPath(e)===this._getPath(n)&&this._equal(this._getQuery(e),this._getQuery(n))&&!this._equal(this._getHash(e),this._getHash(n)):!1)},a.prototype._redirect=function(t,e,o){var n;return i.isFunction(t.redirect)?t.redirect.call(this,o):(n={}.toString.call(t.host)==="[object String]"?""+t.host+o:o,this._debug("Redirect to "+n),this._getState("redirect_to")!==""+e?(this._setState("redirect_to",""+e),p.location.href=n):(this._debug("Error redirection loop to "+o),this._removeState("redirect_to"),t.onRedirectError!=null?t.onRedirectError(this):void 0))},a.prototype._isOrphan=function(t){return t.element==null||!i(t.element).length||i(t.element).is(":hidden")&&i(t.element)[0].namespaceURI!=="http://www.w3.org/2000/svg"},a.prototype._isLast=function(){return this._current<this._options.steps.length-1},a.prototype._showPopover=function(t,e){var o,n,h,s,r;return i(".tour-"+this._options.name).remove(),s=i.extend({},this._options),h=this._isOrphan(t),t.template=this._template(t,e),h&&(t.element="body",t.placement="top"),o=i(t.element),o.addClass("tour-"+this._options.name+"-element tour-"+this._options.name+"-"+e+"-element"),t.options&&i.extend(s,t.options),t.reflex&&!h&&i(t.reflexElement).addClass("tour-step-element-reflex").off(""+this._reflexEvent(t.reflex)+".tour-"+this._options.name).on(""+this._reflexEvent(t.reflex)+".tour-"+this._options.name,(function(l){return function(){return l._isLast()?l.next():l.end()}})(this)),r=t.smartPlacement===!0&&t.placement.search(/auto/i)===-1,o.popover({placement:r?"auto "+t.placement:t.placement,trigger:"manual",title:t.title,content:t.content,html:!0,animation:t.animation,container:t.container,template:t.template,selector:t.element}).popover("show"),n=o.data("bs.popover")?o.data("bs.popover").tip():o.data("popover").tip(),n.attr("id",t.id),this._focus(n,o,t.next<0),this._reposition(n,t),h?this._center(n):void 0},a.prototype._template=function(t,e){var o,n,h,s,r,l;return l=t.template,this._isOrphan(t)&&{}.toString.call(t.orphan)!=="[object Boolean]"&&(l=t.orphan),r=i.isFunction(l)?i(l(e,t)):i(l),o=r.find(".popover-navigation"),h=o.find('[data-role="prev"]'),n=o.find('[data-role="next"]'),s=o.find('[data-role="pause-resume"]'),this._isOrphan(t)&&r.addClass("orphan"),r.addClass("tour-"+this._options.name+" tour-"+this._options.name+"-"+e),t.reflex&&r.addClass("tour-"+this._options.name+"-reflex"),t.prev<0&&h.addClass("disabled").prop("disabled",!0).prop("tabindex",-1),t.next<0&&n.addClass("disabled").prop("disabled",!0).prop("tabindex",-1),t.duration||s.remove(),r.clone().wrap("<div>").parent().html()},a.prototype._reflexEvent=function(t){return{}.toString.call(t)==="[object Boolean]"?"click":t},a.prototype._focus=function(t,e,o){var n,h;return h=o?"end":"next",n=t.find("[data-role='"+h+"']"),e.on("shown.bs.popover",function(){return n.focus()})},a.prototype._reposition=function(t,e){var o,n,h,s,r,l,u;if(s=t[0].offsetWidth,n=t[0].offsetHeight,u=t.offset(),r=u.left,l=u.top,o=i(p).outerHeight()-u.top-t.outerHeight(),0>o&&(u.top=u.top+o),h=i("html").outerWidth()-u.left-t.outerWidth(),0>h&&(u.left=u.left+h),u.top<0&&(u.top=0),u.left<0&&(u.left=0),t.offset(u),e.placement==="bottom"||e.placement==="top"){if(r!==u.left)return this._replaceArrow(t,2*(u.left-r),s,"left")}else if(l!==u.top)return this._replaceArrow(t,2*(u.top-l),n,"top")},a.prototype._center=function(t){return t.css("top",i(window).outerHeight()/2-t.outerHeight()/2)},a.prototype._replaceArrow=function(t,e,o,n){return t.find(".arrow").css(n,e?50*(1-e/o)+"%":"")},a.prototype._scrollIntoView=function(t,e){var o,n,h,s,r,l,u;if(o=i(t.element),!o.length)return e();switch(n=i(window),r=o.offset().top,s=o.outerHeight(),u=n.height(),l=0,t.placement){case"top":l=Math.max(0,r-u/2);break;case"left":case"right":l=Math.max(0,r+s/2-u/2);break;case"bottom":l=Math.max(0,r+s-u/2)}return this._debug("Scroll into view. ScrollTop: "+l+". Element offset: "+r+". Window height: "+u+"."),h=0,i("body, html").stop(!0,!0).animate({scrollTop:Math.ceil(l)},(function(d){return function(){return++h===2?(e(),d._debug(`Scroll into view.
Animation end element offset: `+o.offset().top+`.
Window height: `+n.height()+".")):void 0}})(this))},a.prototype._onResize=function(t,e){return i(window).on("resize.tour-"+this._options.name,function(){return clearTimeout(e),e=setTimeout(t,100)})},a.prototype._initMouseNavigation=function(){var t;return t=this,i(p).off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']").on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']",(function(e){return function(o){return o.preventDefault(),e.next()}})(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']",(function(e){return function(o){return o.preventDefault(),e._current>0?e.prev():void 0}})(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']",(function(e){return function(o){return o.preventDefault(),e.end()}})(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']",function(e){var o;return e.preventDefault(),o=i(this),o.text(t._paused?o.data("pause-text"):o.data("resume-text")),t._paused?t.resume():t.pause()})},a.prototype._initKeyboardNavigation=function(){return this._options.keyboard?i(p).on("keyup.tour-"+this._options.name,(function(t){return function(e){if(e.which)switch(e.which){case 39:return e.preventDefault(),t._isLast()?t.next():t.end();case 37:if(e.preventDefault(),t._current>0)return t.prev()}}})(this)):void 0},a.prototype._makePromise=function(t){return t&&i.isFunction(t.then)?t:null},a.prototype._callOnPromiseDone=function(t,e,o){return t?t.then((function(n){return function(){return e.call(n,o)}})(this)):e.call(this,o)},a.prototype._showBackdrop=function(t){return this.backdrop.backgroundShown?void 0:(this.backdrop=i("<div>",{class:"tour-backdrop"}),this.backdrop.backgroundShown=!0,i(t.backdropContainer).append(this.backdrop))},a.prototype._hideBackdrop=function(){return this._hideOverlayElement(),this._hideBackground()},a.prototype._hideBackground=function(){return this.backdrop&&this.backdrop.remove?(this.backdrop.remove(),this.backdrop.overlay=null,this.backdrop.backgroundShown=!1):void 0},a.prototype._showOverlayElement=function(t,e){var o,n,h;return n=i(t.element),o=i(t.backdropElement),!n||n.length===0||this.backdrop.overlayElementShown&&!e?void 0:(this.backdrop.overlayElementShown||(this.backdrop.$element=o.addClass("tour-step-backdrop"),this.backdrop.$background=i("<div>",{class:"tour-step-background"}),this.backdrop.$background.appendTo(t.backdropContainer),this.backdrop.overlayElementShown=!0),h={width:o.innerWidth()-2,height:o.innerHeight()-2,offset:o.offset()},t.backdropPadding&&(h=this._applyBackdropPadding(t.backdropPadding,h)),this.backdrop.$background.width(h.width).height(h.height).offset(h.offset))},a.prototype._hideOverlayElement=function(){return this.backdrop.overlayElementShown?(this.backdrop.$element.removeClass("tour-step-backdrop"),this.backdrop.$background.remove(),this.backdrop.$element=null,this.backdrop.$background=null,this.backdrop.overlayElementShown=!1):void 0},a.prototype._applyBackdropPadding=function(t,e){return typeof t=="object"?(t.top==null&&(t.top=0),t.right==null&&(t.right=0),t.bottom==null&&(t.bottom=0),t.left==null&&(t.left=0),e.offset.top=e.offset.top-t.top,e.offset.left=e.offset.left-t.left,e.width=e.width+t.left+t.right,e.height=e.height+t.top+t.bottom):(e.offset.top=e.offset.top-t,e.offset.left=e.offset.left-t,e.width=e.width+2*t,e.height=e.height+2*t),e},a.prototype._clearTimer=function(){return window.clearTimeout(this._timer),this._timer=null,this._duration=null},a.prototype._getProtocol=function(t){return t=t.split("://"),t.length>1?t[0]:"http"},a.prototype._getHost=function(t){return t=t.split("//"),t=t.length>1?t[1]:t[0],t.split("/")[0]},a.prototype._getPath=function(t){return t.replace(/\/?$/,"").split("?")[0].split("#")[0]},a.prototype._getQuery=function(t){return this._getParams(t,"?")},a.prototype._getHash=function(t){return this._getParams(t,"#")},a.prototype._getParams=function(t,e){var o,n,h,s,r;if(n=t.split(e),n.length===1)return{};for(n=n[1].split("&"),h={},s=0,r=n.length;r>s;s++)o=n[s],o=o.split("="),h[o[0]]=o[1]||"";return h},a.prototype._equal=function(t,e){var o,n,h,s,r,l;if({}.toString.call(t)==="[object Object]"&&{}.toString.call(e)==="[object Object]"){if(n=Object.keys(t),h=Object.keys(e),n.length!==h.length)return!1;for(o in t)if(s=t[o],!this._equal(e[o],s))return!1;return!0}if({}.toString.call(t)==="[object Array]"&&{}.toString.call(e)==="[object Array]"){if(t.length!==e.length)return!1;for(o=r=0,l=t.length;l>r;o=++r)if(s=t[o],!this._equal(s,e[o]))return!1;return!0}return t===e},a})()})})();
