/
www
/
wwwroot
/
alo88.autos
/
wp-content
/
plugins
/
wp-content-crawler
/
app
/
public
/
node_modules
/
shepherd.js
/
dist
/
js
/
Upload File
HOME
/*! shepherd.js 6.0.2 */ function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function e(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e,n){return(s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return n&&r(i,n.prototype),i}).apply(null,arguments)}function l(t){var e="function"==typeof Map?new Map:void 0;return(l=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,o)}function o(){return s(t,arguments,i(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r(o,t)})(t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return void 0===t}var f=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n,o){return void 0===o&&(o=!1),c(this.bindings)&&(this.bindings={}),c(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:o}),this},e.once=function(t,e,n){return this.on(t,e,n,!0)},e.off=function(t,e){var n=this;return c(this.bindings)||c(this.bindings[t])?this:(c(e)?delete this.bindings[t]:this.bindings[t].forEach((function(o,i){o.handler===e&&n.bindings[t].splice(i,1)})),this)},e.trigger=function(t){for(var e=this,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return!c(this.bindings)&&this.bindings[t]&&this.bindings[t].forEach((function(n,i){var r=n.ctx,s=n.handler,l=n.once,a=r||e;s.apply(a,o),l&&e.bindings[t].splice(i,1)})),this},t}();function h(t){for(var e=Object.getOwnPropertyNames(t.constructor.prototype),n=0;n<e.length;n++){var o=e[n],i=t[o];"constructor"!==o&&"function"==typeof i&&(t[o]=i.bind(t))}return t}function p(t){return t instanceof HTMLElement}function u(t){return"function"==typeof t}function d(t){return"string"==typeof t}function g(t){return void 0===t}function m(t){var e=t.options.advanceOn||{},n=e.event,o=e.selector;if(!n)return console.error("advanceOn was defined, but no event name was passed.");var i,r=function(t,e){return function(n){if(e.isOpen()){var o=e.el&&n.currentTarget===e.el;(!g(t)&&n.currentTarget.matches(t)||o)&&e.tour.next()}}}(o,t);try{i=document.querySelector(o)}catch(t){}if(!g(o)&&!i)return console.error("No element was found for the selector supplied to advanceOn: "+o);i?(i.addEventListener(n,r),t.on("destroy",(function(){return i.removeEventListener(n,r)}))):(document.body.addEventListener(n,r,!0),t.on("destroy",(function(){return document.body.removeEventListener(n,r,!0)})))}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return"string"==typeof t}function y(t){return void 0===t}function w(t,e){e.split(" ").forEach((function(e){e.trim()&&t.classList.add(e)}))}function x(t,e,n){return void 0===t&&(t=""),y(e)||y(e[t])?n?n+"-"+t:t:!1===e[t]?"":e[t]}function E(t,e){e.split(" ").forEach((function(e){e.trim()&&t.classList.remove(e)}))}function O(t,e,n){n.forEach((function(n){-1===e.indexOf(n)&&t.classList.contains(n)&&E(t,n)})),e.forEach((function(e){t.classList.contains(e)||w(t,e)}))}var I=[];function $(t){I.push(t)}function _(){for(var t;t=I.pop();)t()}var T=null;function C(t){void 0===t&&(t={});var e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach((function(e){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function P(){if(T)return T;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");C(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;n===o&&(o=e.clientWidth),document.body.removeChild(e);var i=n-o;return T={width:i,height:i}}var S,M=(S=0,function(){return++S}),L={},A=null;function F(t){var e;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var n=e.documentElement,o=k(t),i=function(){var t=A;t&&document.body.contains(t)||((t=document.createElement("div")).setAttribute("data-tether-id",M()),C(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),A=t);var e=t.getAttribute("data-tether-id");y(L[e])&&(L[e]=k(t),$((function(){delete L[e]})));return L[e]}();return o.top-=i.top,o.left-=i.left,y(o.width)&&(o.width=document.body.scrollWidth-o.left-o.right),y(o.height)&&(o.height=document.body.scrollHeight-o.top-o.bottom),o.top=o.top-n.clientTop,o.left=o.left-n.clientLeft,o.right=e.body.clientWidth-o.width-o.left,o.bottom=e.body.clientHeight-o.height-o.top,o}function k(t){var e=t.getBoundingClientRect(),n={};for(var o in e)n[o]=e[o];try{if(t.ownerDocument!==document){var i=t.ownerDocument.defaultView.frameElement;if(i){var r=k(i);n.top+=r.top,n.bottom+=r.top,n.left+=r.left,n.right+=r.left}}}catch(t){}return n}var H={position:function(t){var e=this,n=t.top,o=t.left,i=this.cache("element-bounds",(function(){return F(e.element)})),r=i.height,s=i.width,l=this.getTargetBounds(),a=n+r,c=o+s,f=[];n<=l.bottom&&a>=l.top&&["left","right"].forEach((function(t){var e=l[t];e!==o&&e!==c||f.push(t)})),o<=l.right&&c>=l.left&&["top","bottom"].forEach((function(t){var e=l[t];e!==n&&e!==a||f.push(t)}));var h=this.options,p=h.classes,u=h.classPrefix;return this.all.push(x("abutted",p,u)),["left","top","right","bottom"].forEach((function(t){e.all.push(x("abutted",p,u)+"-"+t)})),f.length&&this.add.push(x("abutted",p,u)),f.forEach((function(t){e.add.push(x("abutted",p,u)+"-"+t)})),$((function(){!1!==e.options.addTargetClasses&&O(e.target,e.add,e.all),O(e.element,e.add,e.all)})),!0}},B=["left","top","right","bottom"];var Y={position:function(t){var e=this,n=t.top,o=t.left,i=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",(function(){return F(e.element)})),s=r.height,l=r.width;if(0===l&&0===s&&!y(this.lastSize)){var a=this.lastSize;l=a.width,s=a.height}var c=this.cache("target-bounds",(function(){return e.getTargetBounds()})),f=c.height,h=c.width,p=this.options,u=p.classes,d=p.classPrefix,g=function(t,e,n){var o=[x("pinned",t,e),x("out-of-bounds",t,e)];return n.forEach((function(t){var e=t.outOfBoundsClass,n=t.pinnedClass;e&&o.push(e),n&&o.push(n)})),o.forEach((function(t){["left","top","right","bottom"].forEach((function(e){o.push(t+"-"+e)}))})),o}(u,d,this.options.constraints),m=[],v=C({},i),w=C({},this.attachment);return this.options.constraints.forEach((function(t){var r,a,c=t.to,p=t.attachment,g=t.pin;if(y(p)&&(p=""),p.indexOf(" ")>=0){var E=p.split(" ");a=E[0],r=E[1]}else r=a=p;var O=function(t,e){if("scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),!y(e.nodeType)){var n=e,o=F(e),i=o,r=getComputedStyle(e);if(e=[i.left,i.top,o.width+i.left,o.height+i.top],n.ownerDocument!==document){var s=n.ownerDocument.defaultView;e[0]+=s.pageXOffset,e[1]+=s.pageYOffset,e[2]+=s.pageXOffset,e[3]+=s.pageYOffset}B.forEach((function(t,n){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?e[n]+=parseFloat(r["border"+t+"Width"]):e[n]-=parseFloat(r["border"+t+"Width"])}))}return e}(e,c);"target"!==a&&"both"!==a||(n<O[1]&&"top"===v.top&&(n+=f,v.top="bottom"),n+s>O[3]&&"bottom"===v.top&&(n-=f,v.top="top")),"together"===a&&(n=function(t,e,n,o,i,r){return"top"===t.top&&("bottom"===e.top&&r<n[1]?(r+=i,t.top="bottom",r+=o,e.top="top"):"top"===e.top&&r+o>n[3]&&r-(o-i)>=n[1]&&(r-=o-i,t.top="bottom",e.top="bottom")),"bottom"===t.top&&("top"===e.top&&r+o>n[3]?(r-=i,t.top="top",r-=o,e.top="bottom"):"bottom"===e.top&&r<n[1]&&r+(2*o-i)<=n[3]&&(r+=o-i,t.top="top",e.top="top")),"middle"===t.top&&(r+o>n[3]&&"top"===e.top?(r-=o,e.top="bottom"):r<n[1]&&"bottom"===e.top&&(r+=o,e.top="top")),r}(v,w,O,s,f,n)),"target"!==r&&"both"!==r||(o<O[0]&&"left"===v.left&&(o+=h,v.left="right"),o+l>O[2]&&"right"===v.left&&(o-=h,v.left="left")),"together"===r&&(o=function(t,e,n,o,i,r){return r<n[0]&&"left"===t.left?"right"===e.left?(r+=i,t.left="right",r+=o,e.left="left"):"left"===e.left&&(r+=i,t.left="right",r-=o,e.left="right"):r+o>n[2]&&"right"===t.left?"left"===e.left?(r-=i,t.left="left",r-=o,e.left="right"):"right"===e.left&&(r-=i,t.left="left",r+=o,e.left="left"):"center"===t.left&&(r+o>n[2]&&"left"===e.left?(r-=o,e.left="right"):r<n[0]&&"right"===e.left&&(r+=o,e.left="left")),r}(v,w,O,l,h,o)),"element"!==a&&"both"!==a||(n<O[1]&&"bottom"===w.top&&(n+=s,w.top="top"),n+s>O[3]&&"top"===w.top&&(n-=s,w.top="bottom")),"element"!==r&&"both"!==r||(o<O[0]&&("right"===w.left?(o+=l,w.left="left"):"center"===w.left&&(o+=l/2,w.left="left")),o+l>O[2]&&("left"===w.left?(o-=l,w.left="right"):"center"===w.left&&(o-=l/2,w.left="right"))),b(g)?g=g.split(",").map((function(t){return t.trim()})):!0===g&&(g=["top","left","right","bottom"]);var I,$=[],_=[];(o=function(t,e,n,o,i,r){return t<e[0]&&(o.indexOf("left")>=0?(t=e[0],i.push("left")):r.push("left")),t+n>e[2]&&(o.indexOf("right")>=0?(t=e[2]-n,i.push("right")):r.push("right")),t}(o,O,l,g=g||[],$,_),n=function(t,e,n,o,i,r){return t<e[1]&&(o.indexOf("top")>=0?(t=e[1],i.push("top")):r.push("top")),t+n>e[3]&&(o.indexOf("bottom")>=0?(t=e[3]-n,i.push("bottom")):r.push("bottom")),t}(n,O,s,g,$,_),$.length)&&(I=y(e.options.pinnedClass)?x("pinned",u,d):e.options.pinnedClass,m.push(I),$.forEach((function(t){m.push(I+"-"+t)})));!function(t,e,n,o,i){var r;t.length&&(r=y(i)?x("out-of-bounds",n,o):i,e.push(r),t.forEach((function(t){e.push(r+"-"+t)})))}(_,m,u,d,e.options.outOfBoundsClass),($.indexOf("left")>=0||$.indexOf("right")>=0)&&(w.left=v.left=!1),($.indexOf("top")>=0||$.indexOf("bottom")>=0)&&(w.top=v.top=!1),v.top===i.top&&v.left===i.left&&w.top===e.attachment.top&&w.left===e.attachment.left||(e.updateAttachClasses(w,v),e.trigger("update",{attachment:w,targetAttachment:v}))})),$((function(){!1!==e.options.addTargetClasses&&O(e.target,m,g),O(e.element,m,g)})),{top:n,left:o}}},j={position:function(t){var e=t.top,n=t.left;if(this.options.shift){var o,i,r=this.options.shift;if("function"==typeof r&&(r=r.call(this,{top:e,left:n})),b(r)){(r=r.split(" "))[1]=r[1]||r[0];var s=r;o=s[0],i=s[1],o=parseFloat(o,10),i=parseFloat(i,10)}else{var l=[r.top,r.left];o=l[0],i=l[1]}return{top:e+=o,left:n+=i}}}},W=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n,o){return void 0===o&&(o=!1),y(this.bindings)&&(this.bindings={}),y(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:o}),this},e.once=function(t,e,n){return this.on(t,e,n,!0)},e.off=function(t,e){var n=this;return y(this.bindings)||y(this.bindings[t])?this:(y(e)?delete this.bindings[t]:this.bindings[t].forEach((function(o,i){o.handler===e&&n.bindings[t].splice(i,1)})),this)},e.trigger=function(t){for(var e=this,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return!y(this.bindings)&&this.bindings[t]&&this.bindings[t].forEach((function(n,i){var r=n.ctx,s=n.handler,l=n.once,a=r||e;s.apply(a,o),l&&e.bindings[t].splice(i,1)})),this},t}(),X={center:"center",left:"right",right:"left"},D={middle:"middle",top:"bottom",bottom:"top"},z={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};function N(){for(var t={top:0,left:0},e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return n.forEach((function(e){var n=e.top,o=e.left;b(n)&&(n=parseFloat(n)),b(o)&&(o=parseFloat(o)),t.top+=n,t.left+=o})),t}function R(t){var e=t.left,n=t.top;return y(z[t.left])||(e=z[t.left]),y(z[t.top])||(n=z[t.top]),{left:e,top:n}}function V(t,e){return b(t.left)&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left)/100*e.width),b(t.top)&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top)/100*e.height),t}function q(t){var e=t.split(" ");return{top:e[0],left:e[1]}}function Z(t){return t.offsetParent||document.documentElement}var K={modules:[Y,H,j]};var U,G,J,Q,tt=function(){if(y(document))return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<e.length;++n){var o=e[n];if(void 0!==t.style[o])return o}}(),et=[],nt=function(){et.forEach((function(t){t.position(!1)})),_()};function ot(){return performance.now()}U=null,G=null,J=null,Q=function t(){if(!y(G)&&G>16)return G=Math.min(G-16,250),void(J=setTimeout(t,250));!y(U)&&ot()-U<10||(null!=J&&(clearTimeout(J),J=null),U=ot(),nt(),G=ot()-U)},y(window)||y(window.addEventListener)||["resize","scroll","touchmove"].forEach((function(t){window.addEventListener(t,Q)}));var it=function(t){var e,n;function o(e){var n;return(n=t.call(this)||this).position=n.position.bind(v(n)),et.push(v(n)),n.history=[],n.setOptions(e,!1),K.modules.forEach((function(t){y(t.initialize)||t.initialize.call(v(n))})),n.position(),n}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=o.prototype;return i.setOptions=function(t,e){var n=this;void 0===e&&(e=!0);this.options=C({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},t);var o=this.options,i=o.element,r=o.target,s=o.targetModifier;if(this.element=i,this.target=r,this.targetModifier=s,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(t){if(y(n[t]))throw new Error("Tether Error: Both element and target must be defined");y(n[t].jquery)?b(n[t])&&(n[t]=document.querySelector(n[t])):n[t]=n[t][0]})),this._addClasses(),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=q(this.options.targetAttachment),this.attachment=q(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),y(this.scrollParents)||this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=function(t){var e=(getComputedStyle(t)||{}).position,n=[];if("fixed"===e)return[t];for(var o=t;(o=o.parentNode)&&o&&1===o.nodeType;){var i=void 0;try{i=getComputedStyle(o)}catch(t){}if(y(i)||null===i)return n.push(o),n;var r=i,s=r.overflow,l=r.overflowX,a=r.overflowY;/(auto|scroll|overlay)/.test(s+a+l)&&("absolute"!==e||["relative","absolute","fixed"].indexOf(i.position)>=0)&&n.push(o)}return n.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}(this.target),!1!==this.options.enabled&&this.enable(e)},i.getTargetBounds=function(){return y(this.targetModifier)?F(this.target):"visible"===this.targetModifier?function(t){if(t===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var e=F(t),n={height:e.height,width:e.width,top:e.top,left:e.left};return n.height=Math.min(n.height,e.height-(pageYOffset-e.top)),n.height=Math.min(n.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),n.height=Math.min(innerHeight,n.height),n.height-=2,n.width=Math.min(n.width,e.width-(pageXOffset-e.left)),n.width=Math.min(n.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),n.width=Math.min(innerWidth,n.width),n.width-=2,n.top<pageYOffset&&(n.top=pageYOffset),n.left<pageXOffset&&(n.left=pageXOffset),n}(this.target):"scroll-handle"===this.targetModifier?function(t){var e,n=t.scrollTop,o=t===document.body;o?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=F(t);var i=getComputedStyle(t),r=0;(t.scrollWidth>t.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||!o)&&(r=15);var s=e.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-r,l={width:15,height:.975*s*(s/t.scrollHeight),left:e.left+e.width-parseFloat(i.borderLeftWidth)-15},a=0;s<408&&o&&(a=-11e-5*Math.pow(s,2)-.00727*s+22.58),o||(l.height=Math.max(l.height,24));var c=n/(t.scrollHeight-s);return l.top=c*(s-l.height-a)+e.top+parseFloat(i.borderTopWidth),o&&(l.height=Math.max(l.height,24)),l}(this.target):void 0},i.clearCache=function(){this._cache={}},i.cache=function(t,e){return y(this._cache)&&(this._cache={}),y(this._cache[t])&&(this._cache[t]=e.call(this)),this._cache[t]},i.enable=function(t){var e=this;void 0===t&&(t=!0);var n=this.options,o=n.classes,i=n.classPrefix;!1!==this.options.addTargetClasses&&w(this.target,x("enabled",o,i)),w(this.element,x("enabled",o,i)),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()},i.disable=function(){var t=this,e=this.options,n=e.classes,o=e.classPrefix;E(this.target,x("enabled",n,o)),E(this.element,x("enabled",n,o)),this.enabled=!1,y(this.scrollParents)||this.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.position)}))},i.destroy=function(){var t=this;this.disable(),this._removeClasses(),et.forEach((function(e,n){e===t&&et.splice(n,1)})),0===et.length&&(A&&document.body.removeChild(A),A=null)},i.updateAttachClasses=function(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;var o=this.options,i=o.classes,r=o.classPrefix;!y(this._addAttachClasses)&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),y(this._addAttachClasses)&&(this._addAttachClasses=[]),this.add=this._addAttachClasses,t.top&&this.add.push(x("element-attached",i,r)+"-"+t.top),t.left&&this.add.push(x("element-attached",i,r)+"-"+t.left),e.top&&this.add.push(x("target-attached",i,r)+"-"+e.top),e.left&&this.add.push(x("target-attached",i,r)+"-"+e.left),this.all=[],["left","top","bottom","right","middle","center"].forEach((function(t){n.all.push(x("element-attached",i,r)+"-"+t),n.all.push(x("target-attached",i,r)+"-"+t)})),$((function(){y(n._addAttachClasses)||(O(n.element,n._addAttachClasses,n.all),!1!==n.options.addTargetClasses&&O(n.target,n._addAttachClasses,n.all),delete n._addAttachClasses)}))},i.position=function(t){var e=this;if(void 0===t&&(t=!0),this.enabled){this.clearCache();var n=function(t,e){var n=t.left,o=t.top;return"auto"===n&&(n=X[e.left]),"auto"===o&&(o=D[e.top]),{left:n,top:o}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var o=this.cache("element-bounds",(function(){return F(e.element)})),i=o.width,r=o.height;if(0!==i||0!==r||y(this.lastSize))this.lastSize={width:i,height:r};else{var s=this.lastSize;i=s.width,r=s.height}var l=this.cache("target-bounds",(function(){return e.getTargetBounds()})),a=l,c=V(R(this.attachment),{width:i,height:r}),f=V(R(n),a),h=V(this.offset,{width:i,height:r}),p=V(this.targetOffset,a);c=N(c,h),f=N(f,p);for(var u=l.left+f.left-c.left,d=l.top+f.top-c.top,g=0;g<K.modules.length;++g){var m=K.modules[g].position.call(this,{left:u,top:d,targetAttachment:n,targetPos:l,elementPos:o,offset:c,targetOffset:f,manualOffset:h,manualTargetOffset:p,scrollbarSize:v,attachment:this.attachment});if(!1===m)return!1;y(m)||"object"!=typeof m||(d=m.top,u=m.left)}var v,b={page:{top:d,left:u},viewport:{top:d-pageYOffset,bottom:pageYOffset-d-r+innerHeight,left:u-pageXOffset,right:pageXOffset-u-i+innerWidth}},w=this.target.ownerDocument,x=w.defaultView;if(x.innerHeight>w.documentElement.clientHeight&&(v=this.cache("scrollbar-size",P),b.viewport.bottom-=v.height),x.innerWidth>w.documentElement.clientWidth&&(v=this.cache("scrollbar-size",P),b.viewport.right-=v.width),-1!==["","static"].indexOf(w.body.style.position)&&-1!==["","static"].indexOf(w.body.parentElement.style.position)||(b.page.bottom=w.body.scrollHeight-d-r,b.page.right=w.body.scrollWidth-u-i),!y(this.options.optimizations)&&!1!==this.options.optimizations.moveElement&&y(this.targetModifier)){var E=this.cache("target-offsetparent",(function(){return Z(e.target)})),O=this.cache("target-offsetparent-bounds",(function(){return F(E)})),I=getComputedStyle(E),$=O,T={};if(["Top","Left","Bottom","Right"].forEach((function(t){T[t.toLowerCase()]=parseFloat(I["border"+t+"Width"])})),O.right=w.body.scrollWidth-O.left-$.width+T.right,O.bottom=w.body.scrollHeight-O.top-$.height+T.bottom,b.page.top>=O.top+T.top&&b.page.bottom>=O.bottom&&b.page.left>=O.left+T.left&&b.page.right>=O.right){var C=E.scrollLeft,S=E.scrollTop;b.offset={top:b.page.top-O.top+S-T.top,left:b.page.left-O.left+C-T.left}}}return this.move(b),this.history.unshift(b),this.history.length>3&&this.history.pop(),t&&_(),!0}},i.move=function(t){var e=this;if(!y(this.element.parentNode)){var n,o,i,r={};for(var s in t)for(var l in r[s]={},t[s]){for(var a=!1,c=0;c<this.history.length;++c){var f=this.history[c];if(!(y(f[s])||(n=f[s][l],o=t[s][l],i=void 0,void 0===i&&(i=1),n+i>=o&&o>=n-i))){a=!0;break}}a||(r[s][l]=!0)}var h={top:"",left:"",right:"",bottom:""},p=function(t,n){var o,i;!1!==(!y(e.options.optimizations)?e.options.optimizations.gpu:null)?(t.top?(h.top=0,o=n.top):(h.bottom=0,o=-n.bottom),t.left?(h.left=0,i=n.left):(h.right=0,i=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(i=Math.round(i*devicePixelRatio)/devicePixelRatio,o=Math.round(o*devicePixelRatio)/devicePixelRatio),h[tt]="translateX("+i+"px) translateY("+o+"px)","msTransform"!==tt&&(h[tt]+=" translateZ(0)")):(t.top?h.top=n.top+"px":h.bottom=n.bottom+"px",t.left?h.left=n.left+"px":h.right=n.right+"px")},u=!0;!y(this.options.optimizations)&&!1===this.options.optimizations.allowPositionFixed&&(u=!1);var d,g,m=!1;if((r.page.top||r.page.bottom)&&(r.page.left||r.page.right))h.position="absolute",p(r.page,t.page);else if(u&&(r.viewport.top||r.viewport.bottom)&&(r.viewport.left||r.viewport.right))h.position="fixed",p(r.viewport,t.viewport);else if(!y(r.offset)&&r.offset.top&&r.offset.left){h.position="absolute";var v=this.cache("target-offsetparent",(function(){return Z(e.target)}));Z(this.element)!==v&&$((function(){e.element.parentNode.removeChild(e.element),v.appendChild(e.element)})),p(r.offset,t.offset),m=!0}else h.position="absolute",p({top:!0,left:!0},t.page);if(!m)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var b=!0,w=this.element.parentNode;w&&1===w.nodeType&&"BODY"!==w.tagName&&(g=void 0,((g=(d=w).ownerDocument).fullscreenElement||g.webkitFullscreenElement||g.mozFullScreenElement||g.msFullscreenElement)!==d);){if("static"!==getComputedStyle(w).position){b=!1;break}w=w.parentNode}b||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var x={},E=!1;for(var O in h){var I=h[O];this.element.style[O]!==I&&(E=!0,x[O]=I)}E&&$((function(){C(e.element.style,x),e.trigger("repositioned")}))}},i._addClasses=function(){var t=this.options,e=t.classes,n=t.classPrefix;w(this.element,x("element",e,n)),!1!==this.options.addTargetClasses&&w(this.target,x("target",e,n))},i._removeClasses=function(){var t=this,e=this.options,n=e.classes,o=e.classPrefix;E(this.element,x("element",n,o)),!1!==this.options.addTargetClasses&&E(this.target,x("target",n,o)),this.all.forEach((function(e){t.element.classList.remove(e),t.target.classList.remove(e)}))},o}(W);it.modules=[],K.position=nt;var rt=C(it,K);rt.modules.push({initialize:function(){var t=this,e=this.options,n=e.classes,o=e.classPrefix;this.markers={},["target","element"].forEach((function(e){var i=document.createElement("div");i.className=x(e+"-marker",n,o);var r=document.createElement("div");r.className=x("marker-dot",n,o),i.appendChild(r),t[e].appendChild(i),t.markers[e]={dot:r,el:i}}))},position:function(t){var e={element:t.manualOffset,target:t.manualTargetOffset};for(var n in e){var o=e[n];for(var i in o){var r=o[i];(!b(r)||-1===r.indexOf("%")&&-1===r.indexOf("px"))&&(r+="px"),this.markers[n].dot.style[i]!==r&&(this.markers[n].dot.style[i]=r)}}return!0}});var st,lt={bottom:"top center","bottom center":"top center","bottom left":"top right","bottom right":"top left",center:"middle center",left:"middle right",middle:"middle center","middle center":"middle center","middle left":"middle right","middle right":"middle left",right:"middle left",top:"bottom center","top center":"bottom center","top left":"bottom right","top right":"bottom left"};function at(t){return d(t)&&""!==t?"-"!==t.charAt(t.length-1)?t+"-":t:""}function ct(t){var e=t.options.attachTo||{},n=Object.assign({},e);if(d(e.element)){try{n.element=document.querySelector(e.element)}catch(t){}n.element||console.error("The element for this Shepherd step was not found "+e.element)}return n}function ft(t){t.tooltip&&t.tooltip.destroy();var e=ct(t),o=function(t,e){var o={classPrefix:"shepherd",constraints:[{to:"scrollParent",attachment:"together",pin:["left","right","top"]},{to:"window",attachment:"together"}]},i=document.body;t.element&&t.on?(o.attachment=lt[t.on]||lt.right,i=t.element):(o.attachment="middle center",o.targetModifier="visible");o.element=e.el,o.target=i,e.options.tetherOptions&&(e.options.tetherOptions.constraints&&(o.constraints=e.options.tetherOptions.constraints),o.classes=n({},o.classes,{},e.options.tetherOptions.classes),o.optimizations=n({},o.optimizations,{},e.options.tetherOptions.optimizations),o=n({},o,{},e.options.tetherOptions));return o}(e,t);t.tooltip=new rt(o),t.target=e.element}function ht(){var t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}))}function pt(){}function ut(t,e){for(var n in e)t[n]=e[n];return t}function dt(t){return t()}function gt(){return Object.create(null)}function mt(t){t.forEach(dt)}function vt(t){return"function"==typeof t}function bt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function yt(t,e){t.appendChild(e)}function wt(t,e,n){t.insertBefore(e,n||null)}function xt(t){t.parentNode.removeChild(t)}function Et(t){return document.createElement(t)}function Ot(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function It(t){return document.createTextNode(t)}function $t(){return It(" ")}function _t(t,e,n,o){return t.addEventListener(e,n,o),function(){return t.removeEventListener(e,n,o)}}function Tt(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function Ct(t,e){for(var n in e)"style"===n?t.style.cssText=e[n]:n in t?t[n]=e[n]:Tt(t,n,e[n])}function Pt(t,e,n){t.classList[n?"add":"remove"](e)}function St(t){st=t}function Mt(){if(!st)throw new Error("Function called outside component initialization");return st}function Lt(t){Mt().$$.after_update.push(t)}var At=[],Ft=[],kt=[],Ht=[],Bt=Promise.resolve(),Yt=!1;function jt(t){kt.push(t)}function Wt(){var t=new Set;do{for(;At.length;){var e=At.shift();St(e),Xt(e.$$)}for(;Ft.length;)Ft.pop()();for(var n=0;n<kt.length;n+=1){var o=kt[n];t.has(o)||(o(),t.add(o))}kt.length=0}while(At.length);for(;Ht.length;)Ht.pop()();Yt=!1}function Xt(t){t.fragment&&(t.update(t.dirty),mt(t.before_update),t.fragment.p(t.dirty,t.ctx),t.dirty=null,t.after_update.forEach(jt))}var Dt,zt=new Set;function Nt(){Dt={r:0,c:[],p:Dt}}function Rt(){Dt.r||mt(Dt.c),Dt=Dt.p}function Vt(t,e){t&&t.i&&(zt.delete(t),t.i(e))}function qt(t,e,n,o){if(t&&t.o){if(zt.has(t))return;zt.add(t),Dt.c.push((function(){zt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function Zt(t,e,n){var o=t.$$,i=o.fragment,r=o.on_mount,s=o.on_destroy,l=o.after_update;i.m(e,n),jt((function(){var e=r.map(dt).filter(vt);s?s.push.apply(s,e):mt(e),t.$$.on_mount=[]})),l.forEach(jt)}function Kt(t,e){t.$$.fragment&&(mt(t.$$.on_destroy),t.$$.fragment.d(e),t.$$.on_destroy=t.$$.fragment=null,t.$$.ctx={})}function Ut(t,e){t.$$.dirty||(At.push(t),Yt||(Yt=!0,Bt.then(Wt)),t.$$.dirty=gt()),t.$$.dirty[e]=!0}function Gt(t,e,n,o,i,r){var s=st;St(t);var l=e.props||{},a=t.$$={fragment:null,ctx:null,props:r,update:pt,not_equal:i,bound:gt(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:[]),callbacks:gt(),dirty:null},c=!1;a.ctx=n?n(t,l,(function(e,n,o){return void 0===o&&(o=n),a.ctx&&i(a.ctx[e],a.ctx[e]=o)&&(a.bound[e]&&a.bound[e](o),c&&Ut(t,e)),n})):l,a.update(),c=!0,mt(a.before_update),a.fragment=o(a.ctx),e.target&&(e.hydrate?a.fragment.l(function(t){return Array.from(t.childNodes)}(e.target)):a.fragment.c(),e.intro&&Vt(t.$$.fragment),Zt(t,e.target,e.anchor),Wt()),St(s)}"undefined"!=typeof HTMLElement&&l(HTMLElement);var Jt=function(){function t(){}var e=t.prototype;return e.$destroy=function(){Kt(this,1),this.$destroy=pt},e.$on=function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}},e.$set=function(){},t}();function Qt(t){var e,n,o,i,r;return{c:function(){e=Et("button"),n=It(t.text),Tt(e,"aria-label",o=t.label?t.label:null),Tt(e,"class",i=(t.classes||"")+" shepherd-button "+(t.secondary?"shepherd-button-secondary":"")),e.disabled=t.disabled,Tt(e,"tabindex","0"),r=_t(e,"click",t.action)},m:function(t,o){wt(t,e,o),yt(e,n)},p:function(t,r){t.text&&function(t,e){e=""+e,t.data!==e&&(t.data=e)}(n,r.text),t.label&&o!==(o=r.label?r.label:null)&&Tt(e,"aria-label",o),(t.classes||t.secondary)&&i!==(i=(r.classes||"")+" shepherd-button "+(r.secondary?"shepherd-button-secondary":""))&&Tt(e,"class",i),t.disabled&&(e.disabled=r.disabled)},i:pt,o:pt,d:function(t){t&&xt(e),r()}}}function te(t,e,n){var o,i,r,s,l,a,c=e.config,f=e.step;return t.$set=function(t){"config"in t&&n("config",c=t.config),"step"in t&&n("step",f=t.step)},t.$$.update=function(t){void 0===t&&(t={config:1,step:1}),(t.config||t.step)&&(n("action",o=c.action?c.action.bind(f.tour):null),n("classes",i=c.classes),n("secondary",r=c.secondary),n("text",s=c.text),n("label",l=c.label),n("disabled",a=!!c.disabled&&function(t){return u(t)?t.call(f):t}(c.disabled)))},{config:c,step:f,action:o,classes:i,secondary:r,text:s,label:l,disabled:a}}var ee=function(t){function e(e){var n;return Gt(a(n=t.call(this)||this),e,te,Qt,bt,["config","step"]),n}return o(e,t),e}(Jt);function ne(t,e,n){var o=Object.create(t);return o.config=e[n],o}function oe(t){for(var e,n,o=t.buttons,i=[],r=0;r<o.length;r+=1)i[r]=ie(ne(t,o,r));var s=function(t){return qt(i[t],1,1,(function(){i[t]=null}))};return{c:function(){for(var t=0;t<i.length;t+=1)i[t].c();e=It("")},m:function(t,o){for(var r=0;r<i.length;r+=1)i[r].m(t,o);wt(t,e,o),n=!0},p:function(t,n){if(t.buttons||t.step){var r;for(o=n.buttons,r=0;r<o.length;r+=1){var l=ne(n,o,r);i[r]?(i[r].p(t,l),Vt(i[r],1)):(i[r]=ie(l),i[r].c(),Vt(i[r],1),i[r].m(e.parentNode,e))}for(Nt(),r=o.length;r<i.length;r+=1)s(r);Rt()}},i:function(t){if(!n){for(var e=0;e<o.length;e+=1)Vt(i[e]);n=!0}},o:function(t){i=i.filter(Boolean);for(var e=0;e<i.length;e+=1)qt(i[e]);n=!1},d:function(t){!function(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(i,t),t&&xt(e)}}}function ie(t){var e,n=new ee({props:{config:t.config,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Zt(n,t,o),e=!0},p:function(t,e){var o={};t.buttons&&(o.config=e.config),t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Vt(n.$$.fragment,t),e=!0)},o:function(t){qt(n.$$.fragment,t),e=!1},d:function(t){Kt(n,t)}}}function re(t){var e,n,o=t.buttons&&oe(t);return{c:function(){e=Et("footer"),o&&o.c(),Tt(e,"class","shepherd-footer")},m:function(t,i){wt(t,e,i),o&&o.m(e,null),n=!0},p:function(t,n){n.buttons?o?(o.p(t,n),Vt(o,1)):((o=oe(n)).c(),Vt(o,1),o.m(e,null)):o&&(Nt(),qt(o,1,1,(function(){o=null})),Rt())},i:function(t){n||(Vt(o),n=!0)},o:function(t){qt(o),n=!1},d:function(t){t&&xt(e),o&&o.d()}}}function se(t,e,n){var o,i=e.step;return t.$set=function(t){"step"in t&&n("step",i=t.step)},t.$$.update=function(t){void 0===t&&(t={step:1}),t.step&&n("buttons",o=i.options.buttons)},{step:i,buttons:o}}var le=function(t){function e(e){var n;return Gt(a(n=t.call(this)||this),e,se,re,bt,["step"]),n}return o(e,t),e}(Jt);function ae(t){var e,n,o,i;return{c:function(){e=Et("button"),(n=Et("span")).textContent="×",Tt(n,"aria-hidden","true"),Tt(e,"aria-label",o=t.cancelIcon.label?t.cancelIcon.label:"Close Tour"),Tt(e,"class","shepherd-cancel-icon"),Tt(e,"type","button"),i=_t(e,"click",t.handleCancelClick)},m:function(t,o){wt(t,e,o),yt(e,n)},p:function(t,n){t.cancelIcon&&o!==(o=n.cancelIcon.label?n.cancelIcon.label:"Close Tour")&&Tt(e,"aria-label",o)},i:pt,o:pt,d:function(t){t&&xt(e),i()}}}function ce(t,e,n){var o=e.cancelIcon,i=e.step;return t.$set=function(t){"cancelIcon"in t&&n("cancelIcon",o=t.cancelIcon),"step"in t&&n("step",i=t.step)},{cancelIcon:o,step:i,handleCancelClick:function(t){t.preventDefault(),i.cancel()}}}var fe=function(t){function e(e){var n;return Gt(a(n=t.call(this)||this),e,ce,ae,bt,["cancelIcon","step"]),n}return o(e,t),e}(Jt);function he(t){var e;return{c:function(){Tt(e=Et("h3"),"id",t.labelId),Tt(e,"class","shepherd-title")},m:function(n,o){wt(n,e,o),t.h3_binding(e)},p:function(t,n){t.labelId&&Tt(e,"id",n.labelId)},i:pt,o:pt,d:function(n){n&&xt(e),t.h3_binding(null)}}}function pe(t,e,n){var o=e.labelId,i=e.element,r=e.title;return Lt((function(){u(r)&&n("title",r=r()),n("element",i.innerHTML=r,i)})),t.$set=function(t){"labelId"in t&&n("labelId",o=t.labelId),"element"in t&&n("element",i=t.element),"title"in t&&n("title",r=t.title)},{labelId:o,element:i,title:r,h3_binding:function(t){Ft[t?"unshift":"push"]((function(){n("element",i=t)}))}}}var ue=function(t){function e(e){var n;return Gt(a(n=t.call(this)||this),e,pe,he,bt,["labelId","element","title"]),n}return o(e,t),e}(Jt);function de(t){var e,n=new ue({props:{labelId:t.labelId,title:t.title}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Zt(n,t,o),e=!0},p:function(t,e){var o={};t.labelId&&(o.labelId=e.labelId),t.title&&(o.title=e.title),n.$set(o)},i:function(t){e||(Vt(n.$$.fragment,t),e=!0)},o:function(t){qt(n.$$.fragment,t),e=!1},d:function(t){Kt(n,t)}}}function ge(t){var e,n=new fe({props:{cancelIcon:t.cancelIcon,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Zt(n,t,o),e=!0},p:function(t,e){var o={};t.cancelIcon&&(o.cancelIcon=e.cancelIcon),t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Vt(n.$$.fragment,t),e=!0)},o:function(t){qt(n.$$.fragment,t),e=!1},d:function(t){Kt(n,t)}}}function me(t){var e,n,o,i=t.title&&de(t),r=t.cancelIcon&&t.cancelIcon.enabled&&ge(t);return{c:function(){e=Et("header"),i&&i.c(),n=$t(),r&&r.c(),Tt(e,"class","shepherd-header")},m:function(t,s){wt(t,e,s),i&&i.m(e,null),yt(e,n),r&&r.m(e,null),o=!0},p:function(t,o){o.title?i?(i.p(t,o),Vt(i,1)):((i=de(o)).c(),Vt(i,1),i.m(e,n)):i&&(Nt(),qt(i,1,1,(function(){i=null})),Rt()),o.cancelIcon&&o.cancelIcon.enabled?r?(r.p(t,o),Vt(r,1)):((r=ge(o)).c(),Vt(r,1),r.m(e,null)):r&&(Nt(),qt(r,1,1,(function(){r=null})),Rt())},i:function(t){o||(Vt(i),Vt(r),o=!0)},o:function(t){qt(i),qt(r),o=!1},d:function(t){t&&xt(e),i&&i.d(),r&&r.d()}}}function ve(t,e,n){var o,i,r=e.labelId,s=e.step;return t.$set=function(t){"labelId"in t&&n("labelId",r=t.labelId),"step"in t&&n("step",s=t.step)},t.$$.update=function(t){void 0===t&&(t={step:1}),t.step&&(n("title",o=s.options.title),n("cancelIcon",i=s.options.cancelIcon))},{labelId:r,step:s,title:o,cancelIcon:i}}var be=function(t){function e(e){var n;return Gt(a(n=t.call(this)||this),e,ve,me,bt,["labelId","step"]),n}return o(e,t),e}(Jt);function ye(t){var e;return{c:function(){Tt(e=Et("div"),"class","shepherd-text"),Tt(e,"id",t.descriptionId)},m:function(n,o){wt(n,e,o),t.div_binding(e)},p:function(t,n){t.descriptionId&&Tt(e,"id",n.descriptionId)},i:pt,o:pt,d:function(n){n&&xt(e),t.div_binding(null)}}}function we(t,e,n){var o=e.descriptionId,i=e.element,r=e.step;return Lt((function(){var t=r.options.text;u(t)&&(t=t.call(r)),p(t)?i.appendChild(t):n("element",i.innerHTML=t,i)})),t.$set=function(t){"descriptionId"in t&&n("descriptionId",o=t.descriptionId),"element"in t&&n("element",i=t.element),"step"in t&&n("step",r=t.step)},{descriptionId:o,element:i,step:r,div_binding:function(t){Ft[t?"unshift":"push"]((function(){n("element",i=t)}))}}}var xe=function(t){function e(e){var n;return Gt(a(n=t.call(this)||this),e,we,ye,bt,["descriptionId","element","step"]),n}return o(e,t),e}(Jt);function Ee(t){var e,n=new xe({props:{descriptionId:t.descriptionId,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Zt(n,t,o),e=!0},p:function(t,e){var o={};t.descriptionId&&(o.descriptionId=e.descriptionId),t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Vt(n.$$.fragment,t),e=!0)},o:function(t){qt(n.$$.fragment,t),e=!1},d:function(t){Kt(n,t)}}}function Oe(t){var e,n=new le({props:{step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Zt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Vt(n.$$.fragment,t),e=!0)},o:function(t){qt(n.$$.fragment,t),e=!1},d:function(t){Kt(n,t)}}}function Ie(t){var e,n,o,i,r=!g(t.step.options.text),s=Array.isArray(t.step.options.buttons)&&t.step.options.buttons.length,l=new be({props:{labelId:t.labelId,step:t.step}}),a=r&&Ee(t),c=s&&Oe(t);return{c:function(){e=Et("div"),l.$$.fragment.c(),n=$t(),a&&a.c(),o=$t(),c&&c.c(),Tt(e,"class","shepherd-content")},m:function(t,r){wt(t,e,r),Zt(l,e,null),yt(e,n),a&&a.m(e,null),yt(e,o),c&&c.m(e,null),i=!0},p:function(t,n){var i={};t.labelId&&(i.labelId=n.labelId),t.step&&(i.step=n.step),l.$set(i),t.step&&(r=!g(n.step.options.text)),r?a?(a.p(t,n),Vt(a,1)):((a=Ee(n)).c(),Vt(a,1),a.m(e,o)):a&&(Nt(),qt(a,1,1,(function(){a=null})),Rt()),t.step&&(s=Array.isArray(n.step.options.buttons)&&n.step.options.buttons.length),s?c?(c.p(t,n),Vt(c,1)):((c=Oe(n)).c(),Vt(c,1),c.m(e,null)):c&&(Nt(),qt(c,1,1,(function(){c=null})),Rt())},i:function(t){i||(Vt(l.$$.fragment,t),Vt(a),Vt(c),i=!0)},o:function(t){qt(l.$$.fragment,t),qt(a),qt(c),i=!1},d:function(t){t&&xt(e),Kt(l),a&&a.d(),c&&c.d()}}}function $e(t,e,n){var o=e.descriptionId,i=e.labelId,r=e.step;return t.$set=function(t){"descriptionId"in t&&n("descriptionId",o=t.descriptionId),"labelId"in t&&n("labelId",i=t.labelId),"step"in t&&n("step",r=t.step)},{descriptionId:o,labelId:i,step:r}}var _e=function(t){function e(e){var n;return Gt(a(n=t.call(this)||this),e,$e,Ie,bt,["descriptionId","labelId","step"]),n}return o(e,t),e}(Jt);function Te(t){var e;return{c:function(){Tt(e=Et("div"),"class","shepherd-arrow")},m:function(t,n){wt(t,e,n)},d:function(t){t&&xt(e)}}}function Ce(t){for(var e,n,o,i,r=t.step.options.arrow&&t.step.options.attachTo&&t.step.options.attachTo.element&&Te(),s=new _e({props:{descriptionId:t.descriptionId,labelId:t.labelId,step:t.step}}),l=[{"aria-describedby":g(t.step.options.text)?null:t.descriptionId},{"aria-labelledby":t.step.options.title?t.labelId:null},t.dataStepId,{role:"dialog"},{tabindex:"0"}],a={},c=0;c<l.length;c+=1)a=ut(a,l[c]);return{c:function(){e=Et("div"),r&&r.c(),n=$t(),s.$$.fragment.c(),Ct(e,a),Pt(e,"shepherd-has-cancel-icon",t.hasCancelIcon),Pt(e,"shepherd-has-title",t.hasTitle),Pt(e,"shepherd-element",!0),i=_t(e,"keydown",t.handleKeyDown)},m:function(i,l){wt(i,e,l),r&&r.m(e,null),yt(e,n),Zt(s,e,null),t.div_binding(e),o=!0},p:function(t,o){o.step.options.arrow&&o.step.options.attachTo&&o.step.options.attachTo.element?r||((r=Te()).c(),r.m(e,n)):r&&(r.d(1),r=null);var i={};t.descriptionId&&(i.descriptionId=o.descriptionId),t.labelId&&(i.labelId=o.labelId),t.step&&(i.step=o.step),s.$set(i),Ct(e,function(t,e){for(var n={},o={},i={$$scope:1},r=t.length;r--;){var s=t[r],l=e[r];if(l){for(var a in s)a in l||(o[a]=1);for(var c in l)i[c]||(n[c]=l[c],i[c]=1);t[r]=l}else for(var f in s)i[f]=1}for(var h in o)h in n||(n[h]=void 0);return n}(l,[(t.isUndefined||t.step||t.descriptionId)&&{"aria-describedby":g(o.step.options.text)?null:o.descriptionId},(t.step||t.labelId)&&{"aria-labelledby":o.step.options.title?o.labelId:null},t.dataStepId&&o.dataStepId,{role:"dialog"},{tabindex:"0"}])),t.hasCancelIcon&&Pt(e,"shepherd-has-cancel-icon",o.hasCancelIcon),t.hasTitle&&Pt(e,"shepherd-has-title",o.hasTitle)},i:function(t){o||(Vt(s.$$.fragment,t),o=!0)},o:function(t){qt(s.$$.fragment,t),o=!1},d:function(n){n&&xt(e),r&&r.d(),Kt(s),t.div_binding(null),i()}}}var Pe=9,Se=27,Me=37,Le=39;function Ae(t){return t.split(" ").filter((function(t){return!!t.length}))}function Fe(t,e,n){var o,i,r,s,l=e.classPrefix,a=e.element,c=e.descriptionId,f=e.firstFocusableElement,h=e.focusableElements,p=e.labelId,u=e.lastFocusableElement,g=e.step,m=e.dataStepId;s=function(){var t;n("dataStepId",((t={})["data-"+l+"shepherd-step-id"]=g.id,m=t)),n("focusableElements",h=a.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n("firstFocusableElement",f=h[0]),n("lastFocusableElement",u=h[h.length-1])},Mt().$$.on_mount.push(s),Lt((function(){r!==g.options.classes&&(function(t){if(d(t)){var e,n=Ae(t);n.length&&(e=a.classList).remove.apply(e,n)}}(r),function(t){if(d(t)){var e,n=Ae(t);n.length&&(e=a.classList).add.apply(e,n)}}(r=g.options.classes))}));return t.$set=function(t){"classPrefix"in t&&n("classPrefix",l=t.classPrefix),"element"in t&&n("element",a=t.element),"descriptionId"in t&&n("descriptionId",c=t.descriptionId),"firstFocusableElement"in t&&n("firstFocusableElement",f=t.firstFocusableElement),"focusableElements"in t&&n("focusableElements",h=t.focusableElements),"labelId"in t&&n("labelId",p=t.labelId),"lastFocusableElement"in t&&n("lastFocusableElement",u=t.lastFocusableElement),"step"in t&&n("step",g=t.step),"dataStepId"in t&&n("dataStepId",m=t.dataStepId)},t.$$.update=function(t){void 0===t&&(t={step:1}),t.step&&(n("hasCancelIcon",o=g.options&&g.options.cancelIcon&&g.options.cancelIcon.enabled),n("hasTitle",i=g.options&&g.options.title))},{classPrefix:l,element:a,descriptionId:c,firstFocusableElement:f,focusableElements:h,labelId:p,lastFocusableElement:u,step:g,dataStepId:m,hasCancelIcon:o,hasTitle:i,getElement:function(){return a},handleKeyDown:function(t){var e=g.tour;switch(t.keyCode){case Pe:if(0===h.length){t.preventDefault();break}t.shiftKey?document.activeElement===f&&(t.preventDefault(),u.focus()):document.activeElement===u&&(t.preventDefault(),f.focus());break;case Se:e.options.exitOnEsc&&g.cancel();break;case Me:e.options.keyboardNavigation&&e.back();break;case Le:e.options.keyboardNavigation&&e.next()}},div_binding:function(t){Ft[t?"unshift":"push"]((function(){n("element",a=t)}))}}}var ke=function(t){function n(e){var n;return Gt(a(n=t.call(this)||this),e,Fe,Ce,bt,["classPrefix","element","descriptionId","firstFocusableElement","focusableElements","labelId","lastFocusableElement","step","dataStepId","getElement"]),n}return o(n,t),e(n,[{key:"getElement",get:function(){return this.$$.ctx.getElement}}]),n}(Jt);var He=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var n,o=t.HTMLElement||t.Element,i=468,r={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:o.prototype.scroll||a,scrollIntoView:o.prototype.scrollIntoView},s=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,l=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):r.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?r.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},o.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},o.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var n=u(this),o=n.getBoundingClientRect(),i=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+i.left-o.left,n.scrollTop+i.top-o.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):t.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else r.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function a(t,e){this.scrollLeft=t,this.scrollTop=e}function c(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function f(t,e){return"Y"===e?t.clientHeight+l<t.scrollHeight:"X"===e?t.clientWidth+l<t.scrollWidth:void 0}function h(e,n){var o=t.getComputedStyle(e,null)["overflow"+n];return"auto"===o||"scroll"===o}function p(t){var e=f(t,"Y")&&h(t,"Y"),n=f(t,"X")&&h(t,"X");return e||n}function u(t){for(;t!==e.body&&!1===p(t);)t=t.parentNode||t.host;return t}function d(e){var n,o,r,l,a=(s()-e.startTime)/i;l=a=a>1?1:a,n=.5*(1-Math.cos(Math.PI*l)),o=e.startX+(e.x-e.startX)*n,r=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,o,r),o===e.x&&r===e.y||t.requestAnimationFrame(d.bind(t,e))}function g(n,o,i){var l,c,f,h,p=s();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,f=t.scrollY||t.pageYOffset,h=r.scroll):(l=n,c=n.scrollLeft,f=n.scrollTop,h=a),d({scrollable:l,method:h,startTime:p,startX:c,startY:f,x:o,y:i})}}}}));He.polyfill;He.polyfill();var Be=function(t){function e(e,n){var o;return void 0===n&&(n={}),(o=t.call(this,e,n)||this).tour=e,o.classPrefix=o.tour.options?at(o.tour.options.classPrefix):"",o.styles=e.styles,h(a(o)),o._setOptions(n),a(o)||a(o)}o(e,t);var n=e.prototype;return n.cancel=function(){this.tour.cancel(),this.trigger("cancel")},n.complete=function(){this.tour.complete(),this.trigger("complete")},n.destroy=function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),p(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")},n.getTour=function(){return this.tour},n.hide=function(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this.target&&this._updateStepTargetOnHide(),this.trigger("hide")},n.isOpen=function(){return Boolean(this.el&&!this.el.hidden)},n.show=function(){var t=this;if(u(this.options.beforeShowPromise)){var e=this.options.beforeShowPromise();if(!g(e))return e.then((function(){return t._show()}))}this._show()},n.updateStepOptions=function(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})},n._createTooltipContent=function(){var t=this.id+"-description",e=this.id+"-label";return this.shepherdElementComponent=new ke({target:document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:e,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()},n._scrollTo=function(t){var e=ct(this).element;u(this.options.scrollToHandler)?this.options.scrollToHandler(e):p(e)&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(t)},n._getClassOptions=function(t){var e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",o=e&&e.classes?e.classes:"",i=[].concat(n.split(" "),o.split(" ")),r=new Set(i);return Array.from(r).join(" ").trim()},n._setOptions=function(t){var e=this;void 0===t&&(t={});var n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;this.options=Object.assign({arrow:!0},n,t);var o=this.options.when;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||"step-"+ht(),o&&Object.keys(o).forEach((function(t){e.on(t,o[t],e)}))},n._setupElements=function(){g(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&m(this),ft(this)},n._show=function(){var t=this;this.trigger("before-show"),this._setupElements(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.tooltip.position(),(this.target||document.body).classList.add(this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target"),this.options.scrollTo&&setTimeout((function(){t._scrollTo(t.options.scrollTo)})),this.trigger("show"),this.el.focus()},n._styleTargetElementForStep=function(t){var e=t.target;e&&(t.options.highlightClass&&e.classList.add(t.options.highlightClass),!1===t.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))},n._updateStepTargetOnHide=function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove(this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")},e}(f);function Ye(t){var e,n,o,i,r;return{c:function(){e=Ot("svg"),Tt(n=Ot("path"),"d",o="M "+t.openingProperties.x+" "+t.openingProperties.y+" H "+(t.openingProperties.width+t.openingProperties.x)+" V "+(t.openingProperties.height+t.openingProperties.y)+" H "+t.openingProperties.x+" L "+t.openingProperties.x+" 0 Z M 0 0 H "+t.window.innerWidth+" V "+t.window.innerHeight+" H 0 L 0 0 Z"),Tt(e,"class",i=(t.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container"),r=_t(e,"touchmove",t._preventModalOverlayTouch)},m:function(o,i){wt(o,e,i),yt(e,n),t.svg_binding(e)},p:function(t,r){t.openingProperties&&o!==(o="M "+r.openingProperties.x+" "+r.openingProperties.y+" H "+(r.openingProperties.width+r.openingProperties.x)+" V "+(r.openingProperties.height+r.openingProperties.y)+" H "+r.openingProperties.x+" L "+r.openingProperties.x+" 0 Z M 0 0 H "+r.window.innerWidth+" V "+r.window.innerHeight+" H 0 L 0 0 Z")&&Tt(n,"d",o),t.modalIsVisible&&i!==(i=(r.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&Tt(e,"class",i)},i:pt,o:pt,d:function(n){n&&xt(e),t.svg_binding(null),r()}}}function je(t,e,n){var o=e.element,i=e.openingProperties,r=(ht(),!1),s=void 0;l();function l(){n("openingProperties",i={height:0,x:0,y:0,width:0})}function a(){n("modalIsVisible",r=!1),p()}function c(t,e,o){if(void 0===o&&(o=0),t.getBoundingClientRect){var r=function(t,e){var n=t.getBoundingClientRect(),o=n.y||n.top,i=n.bottom||o+n.height;if(e){var r=e.getBoundingClientRect(),s=r.y||r.top,l=r.bottom||s+r.height;o=Math.max(o,s),i=Math.min(i,l)}return{y:o,height:Math.max(i-o,0)}}(t,e),s=r.y,l=r.height,a=t.getBoundingClientRect(),c=a.x,f=a.width,h=a.left;n("openingProperties",i={x:(c||h)-o,y:s-o,width:f+2*o,height:l+2*o})}}function f(){n("modalIsVisible",r=!0)}var h=function(t){t.preventDefault()};function p(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",h,{passive:!1})}return t.$set=function(t){"element"in t&&n("element",o=t.element),"openingProperties"in t&&n("openingProperties",i=t.openingProperties)},{element:o,openingProperties:i,modalIsVisible:r,getElement:function(){return o},closeModalOpening:l,hide:a,positionModalOpening:c,setupForStep:function(t){p(),t.tour.options.useModalOverlay?(!function(t){var e=t.options.modalOverlayOpeningPadding;if(t.target){var n=function t(e){if(!e)return null;var n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return"hidden"!==n&&"visible"!==n&&e.scrollHeight>=e.clientHeight?e:t(e.parentElement)}(t.target);!function o(){s=void 0,c(t.target,n,e),s=requestAnimationFrame(o)}(),window.addEventListener("touchmove",h,{passive:!1})}else l()}(t),f()):a()},show:f,_preventModalOverlayTouch:function(t){t.stopPropagation()},window:window,svg_binding:function(t){Ft[t?"unshift":"push"]((function(){n("element",o=t)}))}}}var We=function(t){function n(e){var n;return Gt(a(n=t.call(this)||this),e,je,Ye,bt,["element","openingProperties","getElement","closeModalOpening","hide","positionModalOpening","setupForStep","show"]),n}return o(n,t),e(n,[{key:"getElement",get:function(){return this.$$.ctx.getElement}},{key:"closeModalOpening",get:function(){return this.$$.ctx.closeModalOpening}},{key:"hide",get:function(){return this.$$.ctx.hide}},{key:"positionModalOpening",get:function(){return this.$$.ctx.positionModalOpening}},{key:"setupForStep",get:function(){return this.$$.ctx.setupForStep}},{key:"show",get:function(){return this.$$.ctx.show}}]),n}(Jt),Xe=new f,De=function(t){function e(e){var n;void 0===e&&(e={}),h(a(n=t.call(this,e)||this));n.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),n.classPrefix=at(n.options.classPrefix),n.steps=[],n.addSteps(n.options.steps);return["active","cancel","complete","inactive","show","start"].map((function(t){var e;e=t,n.on(e,(function(t){(t=t||{}).tour=a(n),Xe.trigger(e,t)}))})),n.modal=new We({target:e.modalContainer||document.body,props:{classPrefix:n.classPrefix,styles:n.styles}}),n._setTourID(),a(n)||a(n)}o(e,t);var n=e.prototype;return n.addStep=function(t,e){var n=t;return n instanceof Be?n.tour=this:n=new Be(this,n),g(e)?this.steps.push(n):this.steps.splice(e,0,n),n},n.addSteps=function(t){var e=this;return Array.isArray(t)&&t.forEach((function(t){e.addStep(t)})),this},n.back=function(){var t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)},n.cancel=function(){if(this.options.confirmCancel){var t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(t)&&this._done("cancel")}else this._done("cancel")},n.complete=function(){this._done("complete")},n.getById=function(t){return this.steps.find((function(e){return e.id===t}))},n.getCurrentStep=function(){return this.currentStep},n.hide=function(){var t=this.getCurrentStep();if(t)return t.hide()},n.isActive=function(){return Xe.activeTour===this},n.next=function(){var t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)},n.removeStep=function(t){var e=this,n=this.getCurrentStep();this.steps.some((function(n,o){if(n.id===t)return n.isOpen()&&n.hide(),n.destroy(),e.steps.splice(o,1),!0})),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())},n.show=function(t,e){void 0===t&&(t=0),void 0===e&&(e=!0);var n=d(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),u(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))},n.start=function(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupActiveTour(),this.next()},n._done=function(t){var e,n=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach((function(t){return t.destroy()})),(e=this)&&e.steps.forEach((function(t){t.options&&!1===t.options.canClickTarget&&t.options.attachTo&&t.target instanceof HTMLElement&&t.target.classList.remove("shepherd-target-click-disabled")})),this.trigger(t,{index:n}),Xe.activeTour=null,this.trigger("inactive",{tour:this}),this.modal.hide(),p(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},n._setupActiveTour=function(){this.trigger("active",{tour:this}),Xe.activeTour=this},n._skipStep=function(t,e){var n=this.steps.indexOf(t),o=e?n+1:n-1;this.show(o,e)},n._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},n._setTourID=function(){var t=this.options.tourName||"tour";this.id=t+"--"+ht()},e}(f);Object.assign(Xe,{Tour:De,Step:Be});export default Xe; //# sourceMappingURL=shepherd.esm.min.js.map