shepherd.js
Advanced tools
Comparing version 6.0.0-beta.2 to 6.0.0
@@ -1,4 +0,4 @@ | ||
/*! shepherd.js 6.0.0-beta.2 */ | ||
/*! shepherd.js 6.0.0 */ | ||
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 s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function r(t,e,n){return(r=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&&s(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 r(t,arguments,i(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),s(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 h=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){if(c(this.bindings)||c(this.bindings[t]))return this;if(c(e))delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n;return this},e.trigger=function(t){if(!c(this.bindings)&&this.bindings[t]){for(var e=0,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(;e<this.bindings[t].length;){var s=this.bindings[t][e],r=s.handler,l=s.ctx,a=s.once,h=l;c(h)&&(h=this),r.apply(h,o),a?this.bindings[t].splice(e,1):++e}}return this},t}();function f(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,s=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,s),t.on("destroy",(function(){return i.removeEventListener(n,s)}))):(document.body.addEventListener(n,s,!0),t.on("destroy",(function(){return document.body.removeEventListener(n,s,!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,e){e.split(" ").forEach((function(e){e.trim()&&t.classList.add(e)}))}function y(t,e){e.split(" ").forEach((function(e){e.trim()&&t.classList.remove(e)}))}function w(t,e,n){n.forEach((function(n){-1===e.indexOf(n)&&t.classList.contains(n)&&y(t,n)})),e.forEach((function(e){t.classList.contains(e)||b(t,e)}))}var x=[];function O(t){x.push(t)}function E(){for(var t;t=x.pop();)t()}var I=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 $(){if(I)return I;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 I={width:i,height:i}}var _,T=(_=0,function(){return++_});function P(t){return"string"==typeof t}function S(t){return void 0===t}var M={},A=null;function L(t){var e;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var n=e.documentElement,o=F(t),i=function(){var t=A;t&&document.body.contains(t)||((t=document.createElement("div")).setAttribute("data-tether-id",T()),C(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),A=t);var e=t.getAttribute("data-tether-id");S(M[e])&&(M[e]=F(t),O((function(){delete M[e]})));return M[e]}();return o.top-=i.top,o.left-=i.left,S(o.width)&&(o.width=document.body.scrollWidth-o.left-o.right),S(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 F(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 s=F(i);n.top+=s.top,n.bottom+=s.top,n.left+=s.left,n.right+=s.left}}}catch(t){}return n}var k={position:function(t){var e=this,n=t.top,o=t.left,i=this.cache("element-bounds",(function(){return L(e.element)})),s=i.height,r=i.width,l=this.getTargetBounds(),a=n+s,c=o+r,h=[];n<=l.bottom&&a>=l.top&&["left","right"].forEach((function(t){var e=l[t];e!==o&&e!==c||h.push(t)})),o<=l.right&&c>=l.left&&["top","bottom"].forEach((function(t){var e=l[t];e!==n&&e!==a||h.push(t)}));return this.all.push(this.getClass("abutted")),["left","top","right","bottom"].forEach((function(t){e.all.push(e.getClass("abutted")+"-"+t)})),h.length&&this.add.push(this.getClass("abutted")),h.forEach((function(t){e.add.push(e.getClass("abutted")+"-"+t)})),O((function(){!1!==e.options.addTargetClasses&&w(e.target,e.add,e.all),w(e.element,e.add,e.all)})),!0}},H=["left","top","right","bottom"];var B={position:function(t){var e=this,n=t.top,o=t.left,i=t.targetAttachment;if(!this.options.constraints)return!0;var s=this.cache("element-bounds",(function(){return L(e.element)})),r=s.height,l=s.width;if(0===l&&0===r&&!S(this.lastSize)){var a=this.lastSize;l=a.width,r=a.height}var c=this.cache("target-bounds",(function(){return e.getTargetBounds()})),h=c.height,f=c.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(t){var e=t.outOfBoundsClass,n=t.pinnedClass;e&&p.push(e),n&&p.push(n)})),p.forEach((function(t){["left","top","right","bottom"].forEach((function(e){p.push(t+"-"+e)}))}));var u=[],d=C({},i),g=C({},this.attachment);return this.options.constraints.forEach((function(t){var s,a,c=t.to,p=t.attachment,m=t.pin;if(S(p)&&(p=""),p.indexOf(" ")>=0){var v=p.split(" ");a=v[0],s=v[1]}else s=a=p;var b=function(t,e){if("scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),!S(e.nodeType)){var n=e,o=L(e),i=o,s=getComputedStyle(e);if(e=[i.left,i.top,o.width+i.left,o.height+i.top],n.ownerDocument!==document){var r=n.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}H.forEach((function(t,n){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?e[n]+=parseFloat(s["border"+t+"Width"]):e[n]-=parseFloat(s["border"+t+"Width"])}))}return e}(e,c);"target"!==a&&"both"!==a||(n<b[1]&&"top"===d.top&&(n+=h,d.top="bottom"),n+r>b[3]&&"bottom"===d.top&&(n-=h,d.top="top")),"together"===a&&("top"===d.top&&("bottom"===g.top&&n<b[1]?(n+=h,d.top="bottom",n+=r,g.top="top"):"top"===g.top&&n+r>b[3]&&n-(r-h)>=b[1]&&(n-=r-h,d.top="bottom",g.top="bottom")),"bottom"===d.top&&("top"===g.top&&n+r>b[3]?(n-=h,d.top="top",n-=r,g.top="bottom"):"bottom"===g.top&&n<b[1]&&n+(2*r-h)<=b[3]&&(n+=r-h,d.top="top",g.top="top")),"middle"===d.top&&(n+r>b[3]&&"top"===g.top?(n-=r,g.top="bottom"):n<b[1]&&"bottom"===g.top&&(n+=r,g.top="top"))),"target"!==s&&"both"!==s||(o<b[0]&&"left"===d.left&&(o+=f,d.left="right"),o+l>b[2]&&"right"===d.left&&(o-=f,d.left="left")),"together"===s&&(o<b[0]&&"left"===d.left?"right"===g.left?(o+=f,d.left="right",o+=l,g.left="left"):"left"===g.left&&(o+=f,d.left="right",o-=l,g.left="right"):o+l>b[2]&&"right"===d.left?"left"===g.left?(o-=f,d.left="left",o-=l,g.left="right"):"right"===g.left&&(o-=f,d.left="left",o+=l,g.left="left"):"center"===d.left&&(o+l>b[2]&&"left"===g.left?(o-=l,g.left="right"):o<b[0]&&"right"===g.left&&(o+=l,g.left="left"))),"element"!==a&&"both"!==a||(n<b[1]&&"bottom"===g.top&&(n+=r,g.top="top"),n+r>b[3]&&"top"===g.top&&(n-=r,g.top="bottom")),"element"!==s&&"both"!==s||(o<b[0]&&("right"===g.left?(o+=l,g.left="left"):"center"===g.left&&(o+=l/2,g.left="left")),o+l>b[2]&&("left"===g.left?(o-=l,g.left="right"):"center"===g.left&&(o-=l/2,g.left="right"))),P(m)?m=m.split(",").map((function(t){return t.trim()})):!0===m&&(m=["top","left","right","bottom"]),m=m||[];var y,w,x=[],O=[];(n<b[1]&&(m.indexOf("top")>=0?(n=b[1],x.push("top")):O.push("top")),n+r>b[3]&&(m.indexOf("bottom")>=0?(n=b[3]-r,x.push("bottom")):O.push("bottom")),o<b[0]&&(m.indexOf("left")>=0?(o=b[0],x.push("left")):O.push("left")),o+l>b[2]&&(m.indexOf("right")>=0?(o=b[2]-l,x.push("right")):O.push("right")),x.length)&&(y=S(e.options.pinnedClass)?e.getClass("pinned"):e.options.pinnedClass,u.push(y),x.forEach((function(t){u.push(y+"-"+t)})));O.length&&(w=S(e.options.outOfBoundsClass)?e.getClass("out-of-bounds"):e.options.outOfBoundsClass,u.push(w),O.forEach((function(t){u.push(w+"-"+t)})));(x.indexOf("left")>=0||x.indexOf("right")>=0)&&(g.left=d.left=!1),(x.indexOf("top")>=0||x.indexOf("bottom")>=0)&&(g.top=d.top=!1),d.top===i.top&&d.left===i.left&&g.top===e.attachment.top&&g.left===e.attachment.left||(e.updateAttachClasses(g,d),e.trigger("update",{attachment:g,targetAttachment:d}))})),O((function(){!1!==e.options.addTargetClasses&&w(e.target,u,p),w(e.element,u,p)})),{top:n,left:o}}},Y={position:function(t){var e=t.top,n=t.left;if(this.options.shift){var o,i,s=this.options.shift;if("function"==typeof s&&(s=s.call(this,{top:e,left:n})),P(s)){(s=s.split(" "))[1]=s[1]||s[0];var r=s;o=r[0],i=r[1],o=parseFloat(o,10),i=parseFloat(i,10)}else{var l=[s.top,s.left];o=l[0],i=l[1]}return{top:e+=o,left:n+=i}}}},j=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n,o){return void 0===o&&(o=!1),S(this.bindings)&&(this.bindings={}),S(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){if(S(this.bindings)||S(this.bindings[t]))return this;if(S(e))delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n;return this},e.trigger=function(t){if(!S(this.bindings)&&this.bindings[t]){for(var e=0,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(;e<this.bindings[t].length;){var s=this.bindings[t][e],r=s.handler,l=s.ctx,a=s.once,c=l;S(c)&&(c=this),r.apply(c,o),a?this.bindings[t].splice(e,1):++e}}return this},t}(),W={center:"center",left:"right",right:"left"},X={middle:"middle",top:"bottom",bottom:"top"},D={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};function z(){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;P(n)&&(n=parseFloat(n)),P(o)&&(o=parseFloat(o)),t.top+=n,t.left+=o})),t}function N(t){var e=t.left,n=t.top;return S(D[t.left])||(e=D[t.left]),S(D[t.top])||(n=D[t.top]),{left:e,top:n}}function R(t,e){return P(t.left)&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left)/100*e.width),P(t.top)&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top)/100*e.height),t}function V(t){var e=t.split(" ");return{top:e[0],left:e[1]}}function q(t){return t.offsetParent||document.documentElement}var Z={modules:[B,k,Y]};var K,U,G,J,Q=function(){if(S(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}}(),tt=[],et=function(){tt.forEach((function(t){t.position(!1)})),E()};function nt(){return performance.now()}K=null,U=null,G=null,J=function t(){if(!S(U)&&U>16)return U=Math.min(U-16,250),void(G=setTimeout(t,250));!S(K)&&nt()-K<10||(null!=G&&(clearTimeout(G),G=null),K=nt(),et(),U=nt()-K)},S(window)||S(window.addEventListener)||["resize","scroll","touchmove"].forEach((function(t){window.addEventListener(t,J)}));var ot=function(t){var e,n;function o(e){var n;return(n=t.call(this)||this).position=n.position.bind(v(n)),tt.push(v(n)),n.history=[],n.setOptions(e,!1),Z.modules.forEach((function(t){S(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.getClass=function(t){void 0===t&&(t="");var e=this.options.classes;return S(e)||S(e[t])?this.options.classPrefix?this.options.classPrefix+"-"+t:t:!1===e[t]?"":this.options.classes[t]},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,s=o.target,r=o.targetModifier;if(this.element=i,this.target=s,this.targetModifier=r,"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(S(n[t]))throw new Error("Tether Error: Both element and target must be defined");S(n[t].jquery)?P(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=V(this.options.targetAttachment),this.attachment=V(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),S(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(S(i)||null===i)return n.push(o),n;var s=i,r=s.overflow,l=s.overflowX,a=s.overflowY;/(auto|scroll|overlay)/.test(r+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(){if(S(this.targetModifier))return L(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=L(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var n,o=this.target;o===document.body?(o=document.documentElement,n={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):n=L(o);var i=getComputedStyle(o),s=0;(o.scrollWidth>o.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(s=15);var r=n.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-s,l={width:15,height:.975*r*(r/o.scrollHeight),left:n.left+n.width-parseFloat(i.borderLeftWidth)-15},a=0;r<408&&this.target===document.body&&(a=-11e-5*Math.pow(r,2)-.00727*r+22.58),this.target!==document.body&&(l.height=Math.max(l.height,24));var c=this.target.scrollTop/(o.scrollHeight-r);return l.top=c*(r-l.height-a)+n.top+parseFloat(i.borderTopWidth),this.target===document.body&&(l.height=Math.max(l.height,24)),l}},i.clearCache=function(){this._cache={}},i.cache=function(t,e){return S(this._cache)&&(this._cache={}),S(this._cache[t])&&(this._cache[t]=e.call(this)),this._cache[t]},i.enable=function(t){var e=this;void 0===t&&(t=!0),!1!==this.options.addTargetClasses&&b(this.target,this.getClass("enabled")),b(this.element,this.getClass("enabled")),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;y(this.target,this.getClass("enabled")),y(this.element,this.getClass("enabled")),this.enabled=!1,S(this.scrollParents)||this.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.position)}))},i.destroy=function(){var t=this;this.disable(),this._removeClasses(),tt.forEach((function(e,n){e===t&&tt.splice(n,1)})),0===tt.length&&(A&&document.body.removeChild(A),A=null)},i.updateAttachClasses=function(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;!S(this._addAttachClasses)&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),S(this._addAttachClasses)&&(this._addAttachClasses=[]),this.add=this._addAttachClasses,t.top&&this.add.push(this.getClass("element-attached")+"-"+t.top),t.left&&this.add.push(this.getClass("element-attached")+"-"+t.left),e.top&&this.add.push(this.getClass("target-attached")+"-"+e.top),e.left&&this.add.push(this.getClass("target-attached")+"-"+e.left),this.all=[],["left","top","bottom","right","middle","center"].forEach((function(t){n.all.push(n.getClass("element-attached")+"-"+t),n.all.push(n.getClass("target-attached")+"-"+t)})),O((function(){S(n._addAttachClasses)||(w(n.element,n._addAttachClasses,n.all),!1!==n.options.addTargetClasses&&w(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=W[e.left]),"auto"===o&&(o=X[e.top]),{left:n,top:o}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var o=this.cache("element-bounds",(function(){return L(e.element)})),i=o.width,s=o.height;if(0!==i||0!==s||S(this.lastSize))this.lastSize={width:i,height:s};else{var r=this.lastSize;i=r.width,s=r.height}var l=this.cache("target-bounds",(function(){return e.getTargetBounds()})),a=l,c=R(N(this.attachment),{width:i,height:s}),h=R(N(n),a),f=R(this.offset,{width:i,height:s}),p=R(this.targetOffset,a);c=z(c,f),h=z(h,p);for(var u=l.left+h.left-c.left,d=l.top+h.top-c.top,g=0;g<Z.modules.length;++g){var m=Z.modules[g].position.call(this,{left:u,top:d,targetAttachment:n,targetPos:l,elementPos:o,offset:c,targetOffset:h,manualOffset:f,manualTargetOffset:p,scrollbarSize:v,attachment:this.attachment});if(!1===m)return!1;S(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-s+innerHeight,left:u-pageXOffset,right:pageXOffset-u-i+innerWidth}},y=this.target.ownerDocument,w=y.defaultView;if(w.innerHeight>y.documentElement.clientHeight&&(v=this.cache("scrollbar-size",$),b.viewport.bottom-=v.height),w.innerWidth>y.documentElement.clientWidth&&(v=this.cache("scrollbar-size",$),b.viewport.right-=v.width),-1!==["","static"].indexOf(y.body.style.position)&&-1!==["","static"].indexOf(y.body.parentElement.style.position)||(b.page.bottom=y.body.scrollHeight-d-s,b.page.right=y.body.scrollWidth-u-i),!S(this.options.optimizations)&&!1!==this.options.optimizations.moveElement&&S(this.targetModifier)){var x=this.cache("target-offsetparent",(function(){return q(e.target)})),O=this.cache("target-offsetparent-bounds",(function(){return L(x)})),I=getComputedStyle(x),C=O,_={};if(["Top","Left","Bottom","Right"].forEach((function(t){_[t.toLowerCase()]=parseFloat(I["border"+t+"Width"])})),O.right=y.body.scrollWidth-O.left-C.width+_.right,O.bottom=y.body.scrollHeight-O.top-C.height+_.bottom,b.page.top>=O.top+_.top&&b.page.bottom>=O.bottom&&b.page.left>=O.left+_.left&&b.page.right>=O.right){var T=x.scrollLeft,P=x.scrollTop;b.offset={top:b.page.top-O.top+P-_.top,left:b.page.left-O.left+T-_.left}}}return this.move(b),this.history.unshift(b),this.history.length>3&&this.history.pop(),t&&E(),!0}},i.move=function(t){var e=this;if(!S(this.element.parentNode)){var n,o,i,s={};for(var r in t)for(var l in s[r]={},t[r]){for(var a=!1,c=0;c<this.history.length;++c){var h=this.history[c];if(!(S(h[r])||(n=h[r][l],o=t[r][l],i=void 0,void 0===i&&(i=1),n+i>=o&&o>=n-i))){a=!0;break}}a||(s[r][l]=!0)}var f={top:"",left:"",right:"",bottom:""},p=function(t,n){var o,i;!1!==(!S(e.options.optimizations)?e.options.optimizations.gpu:null)?(t.top?(f.top=0,o=n.top):(f.bottom=0,o=-n.bottom),t.left?(f.left=0,i=n.left):(f.right=0,i=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(i=Math.round(i*devicePixelRatio)/devicePixelRatio,o=Math.round(o*devicePixelRatio)/devicePixelRatio),f[Q]="translateX("+i+"px) translateY("+o+"px)","msTransform"!==Q&&(f[Q]+=" translateZ(0)")):(t.top?f.top=n.top+"px":f.bottom=n.bottom+"px",t.left?f.left=n.left+"px":f.right=n.right+"px")},u=!0;!S(this.options.optimizations)&&!1===this.options.optimizations.allowPositionFixed&&(u=!1);var d,g,m=!1;if((s.page.top||s.page.bottom)&&(s.page.left||s.page.right))f.position="absolute",p(s.page,t.page);else if(u&&(s.viewport.top||s.viewport.bottom)&&(s.viewport.left||s.viewport.right))f.position="fixed",p(s.viewport,t.viewport);else if(!S(s.offset)&&s.offset.top&&s.offset.left){f.position="absolute";var v=this.cache("target-offsetparent",(function(){return q(e.target)}));q(this.element)!==v&&O((function(){e.element.parentNode.removeChild(e.element),v.appendChild(e.element)})),p(s.offset,t.offset),m=!0}else f.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,y=this.element.parentNode;y&&1===y.nodeType&&"BODY"!==y.tagName&&(g=void 0,((g=(d=y).ownerDocument).fullscreenElement||g.webkitFullscreenElement||g.mozFullScreenElement||g.msFullscreenElement)!==d);){if("static"!==getComputedStyle(y).position){b=!1;break}y=y.parentNode}b||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var w={},x=!1;for(var E in f){var I=f[E];this.element.style[E]!==I&&(x=!0,w[E]=I)}x&&O((function(){C(e.element.style,w),e.trigger("repositioned")}))}},i._addClasses=function(){b(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&b(this.target,this.getClass("target"))},i._removeClasses=function(){var t=this;y(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&y(this.target,this.getClass("target")),this.all.forEach((function(e){t.element.classList.remove(e),t.target.classList.remove(e)}))},o}(j);ot.modules=[],Z.position=et;var it=C(ot,Z);it.modules.push({initialize:function(){var t=this;this.markers={},["target","element"].forEach((function(e){var n=document.createElement("div");n.className=t.getClass(e+"-marker");var o=document.createElement("div");o.className=t.getClass("marker-dot"),n.appendChild(o),t[e].appendChild(n),t.markers[e]={dot:o,el:n}}))},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 s=o[i];(!P(s)||-1===s.indexOf("%")&&-1===s.indexOf("px"))&&(s+="px"),this.markers[n].dot.style[i]!==s&&(this.markers[n].dot.style[i]=s)}}return!0}});var st,rt={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 lt(t){return d(t)&&""!==t?"-"!==t.charAt(t.length-1)?t+"-":t:""}function at(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 ct(t){t.tooltip&&t.tooltip.destroy();var e=at(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=rt[t.on]||rt.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 it(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 ft(){}function pt(t,e){for(var n in e)t[n]=e[n];return t}function ut(t){return t()}function dt(){return Object.create(null)}function gt(t){t.forEach(ut)}function mt(t){return"function"==typeof t}function vt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function bt(t,e){t.appendChild(e)}function yt(t,e,n){t.insertBefore(e,n||null)}function wt(t){t.parentNode.removeChild(t)}function xt(t){return document.createElement(t)}function Ot(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Et(t){return document.createTextNode(t)}function It(){return Et(" ")}function Ct(t,e,n,o){return t.addEventListener(e,n,o),function(){return t.removeEventListener(e,n,o)}}function $t(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function _t(t,e){for(var n in e)"style"===n?t.style.cssText=e[n]:n in t?t[n]=e[n]:$t(t,n,e[n])}function Tt(t){st=t}function Pt(){if(!st)throw new Error("Function called outside component initialization");return st}function St(t){Pt().$$.after_update.push(t)}var Mt=[],At=[],Lt=[],Ft=[],kt=Promise.resolve(),Ht=!1;function Bt(t){Lt.push(t)}function Yt(){var t=new Set;do{for(;Mt.length;){var e=Mt.shift();Tt(e),jt(e.$$)}for(;At.length;)At.pop()();for(var n=0;n<Lt.length;n+=1){var o=Lt[n];t.has(o)||(o(),t.add(o))}Lt.length=0}while(Mt.length);for(;Ft.length;)Ft.pop()();Ht=!1}function jt(t){t.fragment&&(t.update(t.dirty),gt(t.before_update),t.fragment.p(t.dirty,t.ctx),t.dirty=null,t.after_update.forEach(Bt))}var Wt,Xt=new Set;function Dt(){Wt={r:0,c:[],p:Wt}}function zt(){Wt.r||gt(Wt.c),Wt=Wt.p}function Nt(t,e){t&&t.i&&(Xt.delete(t),t.i(e))}function Rt(t,e,n,o){if(t&&t.o){if(Xt.has(t))return;Xt.add(t),Wt.c.push((function(){Xt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function Vt(t,e,n){var o=t.$$,i=o.fragment,s=o.on_mount,r=o.on_destroy,l=o.after_update;i.m(e,n),Bt((function(){var e=s.map(ut).filter(mt);r?r.push.apply(r,e):gt(e),t.$$.on_mount=[]})),l.forEach(Bt)}function qt(t,e){t.$$.fragment&&(gt(t.$$.on_destroy),t.$$.fragment.d(e),t.$$.on_destroy=t.$$.fragment=null,t.$$.ctx={})}function Zt(t,e){t.$$.dirty||(Mt.push(t),Ht||(Ht=!0,kt.then(Yt)),t.$$.dirty=dt()),t.$$.dirty[e]=!0}function Kt(t,e,n,o,i,s){var r=st;Tt(t);var l=e.props||{},a=t.$$={fragment:null,ctx:null,props:s,update:ft,not_equal:i,bound:dt(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(r?r.$$.context:[]),callbacks:dt(),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&&Zt(t,e)),n})):l,a.update(),c=!0,gt(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&&Nt(t.$$.fragment),Vt(t,e.target,e.anchor),Yt()),Tt(r)}"undefined"!=typeof HTMLElement&&l(HTMLElement);var Ut=function(){function t(){}var e=t.prototype;return e.$destroy=function(){qt(this,1),this.$destroy=ft},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 Gt(t){var e,n,o;return{c:function(){e=xt("button"),n=Et(t.text),$t(e,"aria-label",t.label?t.label:null),$t(e,"class",(t.classes||"")+" shepherd-button "+(t.secondary?"shepherd-button-secondary":"")),e.disabled=t.disabled,$t(e,"tabindex","0"),o=Ct(e,"click",t.action?t.action.bind(t.step.tour):null)},m:function(t,o){yt(t,e,o),bt(e,n)},p:function(t,n){t.disabled&&(e.disabled=n.disabled)},i:ft,o:ft,d:function(t){t&&wt(e),o()}}}function Jt(t,e,n){var o=e.config,i=e.step,s=o,r=s.action,l=s.classes,a=s.secondary,c=s.text,h=s.label,f=!1;return St((function(){o.disabled&&(n("disabled",f=o.disabled),u(f)&&n("disabled",f=f.call(i)))})),t.$set=function(t){"config"in t&&n("config",o=t.config),"step"in t&&n("step",i=t.step)},{config:o,step:i,action:r,classes:l,secondary:a,text:c,label:h,disabled:f}}var Qt=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,Jt,Gt,vt,["config","step"]),n}return o(e,t),e}(Ut);function te(t,e,n){var o=Object.create(t);return o.config=e[n],o}function ee(t){for(var e,n,o=t.buttons,i=[],s=0;s<o.length;s+=1)i[s]=ne(te(t,o,s));var r=function(t){return Rt(i[t],1,1,(function(){i[t]=null}))};return{c:function(){for(var t=0;t<i.length;t+=1)i[t].c();e=Et("")},m:function(t,o){for(var s=0;s<i.length;s+=1)i[s].m(t,o);yt(t,e,o),n=!0},p:function(t,n){if(t.buttons||t.step){var s;for(o=n.buttons,s=0;s<o.length;s+=1){var l=te(n,o,s);i[s]?(i[s].p(t,l),Nt(i[s],1)):(i[s]=ne(l),i[s].c(),Nt(i[s],1),i[s].m(e.parentNode,e))}for(Dt(),s=o.length;s<i.length;s+=1)r(s);zt()}},i:function(t){if(!n){for(var e=0;e<o.length;e+=1)Nt(i[e]);n=!0}},o:function(t){i=i.filter(Boolean);for(var e=0;e<i.length;e+=1)Rt(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&&wt(e)}}}function ne(t){var e,n=new Qt({props:{config:t.config,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Vt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){qt(n,t)}}}function oe(t){var e,n,o=t.buttons&&ee(t);return{c:function(){e=xt("footer"),o&&o.c(),$t(e,"class","shepherd-footer")},m:function(t,i){yt(t,e,i),o&&o.m(e,null),n=!0},p:function(t,e){e.buttons&&o.p(t,e)},i:function(t){n||(Nt(o),n=!0)},o:function(t){Rt(o),n=!1},d:function(t){t&&wt(e),o&&o.d()}}}function ie(t,e,n){var o=e.step,i=o.options.buttons;return t.$set=function(t){"step"in t&&n("step",o=t.step)},{step:o,buttons:i}}var se=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,ie,oe,vt,["step"]),n}return o(e,t),e}(Ut);function re(t){var e,n,o,i;return{c:function(){e=xt("button"),(n=xt("span")).textContent="×",$t(n,"aria-hidden","true"),$t(e,"aria-label",o=t.cancelIcon.label?t.cancelIcon.label:"Close Tour"),$t(e,"class","shepherd-cancel-icon"),$t(e,"type","button"),i=Ct(e,"click",t.handleCancelClick)},m:function(t,o){yt(t,e,o),bt(e,n)},p:function(t,n){t.cancelIcon&&o!==(o=n.cancelIcon.label?n.cancelIcon.label:"Close Tour")&&$t(e,"aria-label",o)},i:ft,o:ft,d:function(t){t&&wt(e),i()}}}function le(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 ae=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,le,re,vt,["cancelIcon","step"]),n}return o(e,t),e}(Ut);function ce(t){var e;return{c:function(){$t(e=xt("h3"),"id",t.labelId),$t(e,"class","shepherd-title")},m:function(n,o){yt(n,e,o),t.h3_binding(e)},p:function(t,n){t.labelId&&$t(e,"id",n.labelId)},i:ft,o:ft,d:function(n){n&&wt(e),t.h3_binding(null)}}}function he(t,e,n){var o=e.labelId,i=e.element,s=e.title;return St((function(){u(s)&&n("title",s=s()),n("element",i.innerHTML=s,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",s=t.title)},{labelId:o,element:i,title:s,h3_binding:function(t){At[t?"unshift":"push"]((function(){n("element",i=t)}))}}}var fe=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,he,ce,vt,["labelId","element","title"]),n}return o(e,t),e}(Ut);function pe(t){var e,n,o,i=t.title&&function(t){var e,n=new fe({props:{labelId:t.labelId,title:t.title}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Vt(n,t,o),e=!0},p:function(t,e){var o={};t.labelId&&(o.labelId=e.labelId),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){qt(n,t)}}}(t),s=t.cancelIcon&&t.cancelIcon.enabled&&function(t){var e,n=new ae({props:{cancelIcon:t.cancelIcon,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Vt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){qt(n,t)}}}(t);return{c:function(){e=xt("header"),i&&i.c(),n=It(),s&&s.c(),$t(e,"class","shepherd-header")},m:function(t,r){yt(t,e,r),i&&i.m(e,null),bt(e,n),s&&s.m(e,null),o=!0},p:function(t,e){e.title&&i.p(t,e),e.cancelIcon&&e.cancelIcon.enabled&&s.p(t,e)},i:function(t){o||(Nt(i),Nt(s),o=!0)},o:function(t){Rt(i),Rt(s),o=!1},d:function(t){t&&wt(e),i&&i.d(),s&&s.d()}}}function ue(t,e,n){var o=e.labelId,i=e.step,s=i.options,r=s.cancelIcon,l=s.title;return t.$set=function(t){"labelId"in t&&n("labelId",o=t.labelId),"step"in t&&n("step",i=t.step)},{labelId:o,step:i,cancelIcon:r,title:l}}var de=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,ue,pe,vt,["labelId","step"]),n}return o(e,t),e}(Ut);function ge(t){var e;return{c:function(){$t(e=xt("div"),"class","shepherd-text"),$t(e,"id",t.descriptionId)},m:function(n,o){yt(n,e,o),t.div_binding(e)},p:function(t,n){t.descriptionId&&$t(e,"id",n.descriptionId)},i:ft,o:ft,d:function(n){n&&wt(e),t.div_binding(null)}}}function me(t,e,n){var o=e.descriptionId,i=e.element,s=e.step;return St((function(){var t=s.options.text;u(t)&&(t=t.call(s)),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",s=t.step)},{descriptionId:o,element:i,step:s,div_binding:function(t){At[t?"unshift":"push"]((function(){n("element",i=t)}))}}}var ve=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,me,ge,vt,["descriptionId","element","step"]),n}return o(e,t),e}(Ut);function be(t){var e,n=new ve({props:{descriptionId:t.descriptionId,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Vt(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||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){qt(n,t)}}}function ye(t){var e,n=new se({props:{step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Vt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){qt(n,t)}}}function we(t){var e,n,o,i,s=!g(t.step.options.text),r=Array.isArray(t.step.options.buttons)&&t.step.options.buttons.length,l=new de({props:{labelId:t.labelId,step:t.step}}),a=s&&be(t),c=r&&ye(t);return{c:function(){e=xt("div"),l.$$.fragment.c(),n=It(),a&&a.c(),o=It(),c&&c.c(),$t(e,"class","shepherd-content")},m:function(t,s){yt(t,e,s),Vt(l,e,null),bt(e,n),a&&a.m(e,null),bt(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&&(s=!g(n.step.options.text)),s?a?(a.p(t,n),Nt(a,1)):((a=be(n)).c(),Nt(a,1),a.m(e,o)):a&&(Dt(),Rt(a,1,1,(function(){a=null})),zt()),t.step&&(r=Array.isArray(n.step.options.buttons)&&n.step.options.buttons.length),r?c?(c.p(t,n),Nt(c,1)):((c=ye(n)).c(),Nt(c,1),c.m(e,null)):c&&(Dt(),Rt(c,1,1,(function(){c=null})),zt())},i:function(t){i||(Nt(l.$$.fragment,t),Nt(a),Nt(c),i=!0)},o:function(t){Rt(l.$$.fragment,t),Rt(a),Rt(c),i=!1},d:function(t){t&&wt(e),qt(l),a&&a.d(),c&&c.d()}}}function xe(t,e,n){var o=e.descriptionId,i=e.labelId,s=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",s=t.step)},{descriptionId:o,labelId:i,step:s}}var Oe=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,xe,we,vt,["descriptionId","labelId","step"]),n}return o(e,t),e}(Ut);function Ee(t){var e;return{c:function(){$t(e=xt("div"),"class","shepherd-arrow")},m:function(t,n){yt(t,e,n)},d:function(t){t&&wt(e)}}}function Ie(t){for(var e,n,o,i,s=t.step.options.arrow&&t.step.options.attachTo&&t.step.options.attachTo.element&&Ee(),r=new Oe({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},{class:t.classes+" shepherd-element "+(t.hasCancelIcon?"shepherd-has-cancel-icon":"")+" "+(t.hasTitle?"shepherd-has-title":"")},t.dataStepId,{role:"dialog"},{tabindex:"0"}],a={},c=0;c<l.length;c+=1)a=pt(a,l[c]);return{c:function(){e=xt("div"),s&&s.c(),n=It(),r.$$.fragment.c(),_t(e,a),i=Ct(e,"keydown",t.handleKeyDown)},m:function(i,l){yt(i,e,l),s&&s.m(e,null),bt(e,n),Vt(r,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?s||((s=Ee()).c(),s.m(e,n)):s&&(s.d(1),s=null);var i={};t.descriptionId&&(i.descriptionId=o.descriptionId),t.labelId&&(i.labelId=o.labelId),t.step&&(i.step=o.step),r.$set(i),_t(e,function(t,e){for(var n={},o={},i={$$scope:1},s=t.length;s--;){var r=t[s],l=e[s];if(l){for(var a in r)a in l||(o[a]=1);for(var c in l)i[c]||(n[c]=l[c],i[c]=1);t[s]=l}else for(var h in r)i[h]=1}for(var f in o)f in n||(n[f]=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.classes||t.hasCancelIcon||t.hasTitle)&&{class:o.classes+" shepherd-element "+(o.hasCancelIcon?"shepherd-has-cancel-icon":"")+" "+(o.hasTitle?"shepherd-has-title":"")},t.dataStepId&&o.dataStepId,{role:"dialog"},{tabindex:"0"}]))},i:function(t){o||(Nt(r.$$.fragment,t),o=!0)},o:function(t){Rt(r.$$.fragment,t),o=!1},d:function(n){n&&wt(e),s&&s.d(),qt(r),t.div_binding(null),i()}}}var Ce=9,$e=27,_e=37,Te=39;function Pe(t,e,n){var o,i,s=e.classes,r=e.classPrefix,l=e.element,a=e.descriptionId,c=e.firstFocusableElement,h=e.focusableElements,f=e.labelId,p=e.lastFocusableElement,u=e.step,d=((o={})["data-"+r+"shepherd-step-id"]=u.id,o),g=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled,m=u.options&&u.options.title;i=function(){n("focusableElements",h=l.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n("firstFocusableElement",c=h[0]),n("lastFocusableElement",p=h[h.length-1])},Pt().$$.on_mount.push(i);return t.$set=function(t){"classes"in t&&n("classes",s=t.classes),"classPrefix"in t&&n("classPrefix",r=t.classPrefix),"element"in t&&n("element",l=t.element),"descriptionId"in t&&n("descriptionId",a=t.descriptionId),"firstFocusableElement"in t&&n("firstFocusableElement",c=t.firstFocusableElement),"focusableElements"in t&&n("focusableElements",h=t.focusableElements),"labelId"in t&&n("labelId",f=t.labelId),"lastFocusableElement"in t&&n("lastFocusableElement",p=t.lastFocusableElement),"step"in t&&n("step",u=t.step)},{classes:s,classPrefix:r,element:l,descriptionId:a,firstFocusableElement:c,focusableElements:h,labelId:f,lastFocusableElement:p,step:u,dataStepId:d,hasCancelIcon:g,hasTitle:m,getElement:function(){return l},handleKeyDown:function(t){var e=u.tour;switch(t.keyCode){case Ce:if(0===h.length){t.preventDefault();break}t.shiftKey?document.activeElement===c&&(t.preventDefault(),p.focus()):document.activeElement===p&&(t.preventDefault(),c.focus());break;case $e:e.options.exitOnEsc&&u.cancel();break;case _e:e.options.keyboardNavigation&&e.back();break;case Te:e.options.keyboardNavigation&&e.next()}},div_binding:function(t){At[t?"unshift":"push"]((function(){n("element",l=t)}))}}}var Se=function(t){function n(e){var n;return Kt(a(n=t.call(this)||this),e,Pe,Ie,vt,["classes","classPrefix","element","descriptionId","firstFocusableElement","focusableElements","labelId","lastFocusableElement","step","getElement"]),n}return o(n,t),e(n,[{key:"getElement",get:function(){return this.$$.ctx.getElement}}]),n}(Ut);var Me=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,s={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:o.prototype.scroll||a,scrollIntoView:o.prototype.scrollIntoView},r=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):s.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])?s.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");s.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}):s.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 s.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 h(t,e){return"Y"===e?t.clientHeight+l<t.scrollHeight:"X"===e?t.clientWidth+l<t.scrollWidth:void 0}function f(e,n){var o=t.getComputedStyle(e,null)["overflow"+n];return"auto"===o||"scroll"===o}function p(t){var e=h(t,"Y")&&f(t,"Y"),n=h(t,"X")&&f(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,s,l,a=(r()-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,s=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,o,s),o===e.x&&s===e.y||t.requestAnimationFrame(d.bind(t,e))}function g(n,o,i){var l,c,h,f,p=r();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,h=t.scrollY||t.pageYOffset,f=s.scroll):(l=n,c=n.scrollLeft,h=n.scrollTop,f=a),d({scrollable:l,method:f,startTime:p,startX:c,startY:h,x:o,y:i})}}}}));Me.polyfill;Me.polyfill();var Ae=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?lt(o.tour.options.classPrefix):"",o.styles=e.styles,f(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.options.classes||"",e=this.id+"-description",n=this.id+"-label";return this.shepherdElementComponent=new Se({target:document.body,props:{classPrefix:this.classPrefix,classes:t,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()},n._scrollTo=function(t){var e=at(this).element;u(this.options.scrollToHandler)?this.options.scrollToHandler(e):p(e)&&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(" ")),s=new Set(i);return Array.from(s).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),ct(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}(h);function Le(t){var e,n,o,i,s;return{c:function(){e=Ot("svg"),$t(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"),$t(e,"class",i=(t.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container"),s=Ct(e,"touchmove",t._preventModalOverlayTouch)},m:function(o,i){yt(o,e,i),bt(e,n),t.svg_binding(e)},p:function(t,s){t.openingProperties&&o!==(o="M "+s.openingProperties.x+" "+s.openingProperties.y+" H "+(s.openingProperties.width+s.openingProperties.x)+" V "+(s.openingProperties.height+s.openingProperties.y)+" H "+s.openingProperties.x+" L "+s.openingProperties.x+" 0 Z M 0 0 H "+s.window.innerWidth+" V "+s.window.innerHeight+" H 0 L 0 0 Z")&&$t(n,"d",o),t.modalIsVisible&&i!==(i=(s.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&$t(e,"class",i)},i:ft,o:ft,d:function(n){n&&wt(e),t.svg_binding(null),s()}}}function Fe(t,e,n){var o=e.element,i=e.openingProperties,s=(ht(),!1),r=void 0;l();function l(){n("openingProperties",i={height:0,x:0,y:0,width:0})}function a(){n("modalIsVisible",s=!1),p()}function c(t,e,o){if(void 0===o&&(o=0),t.getBoundingClientRect){var s=function(t,e){var n=t.getBoundingClientRect(),o=n.y||n.top,i=n.bottom||o+n.height;if(e){var s=e.getBoundingClientRect(),r=s.y||s.top,l=s.bottom||r+s.height;o=Math.max(o,r),i=Math.min(i,l)}return{y:o,height:Math.max(i-o,0)}}(t,e),r=s.y,l=s.height,a=t.getBoundingClientRect(),c=a.x,h=a.width,f=a.left;n("openingProperties",i={x:(c||f)-o,y:r-o,width:h+2*o,height:l+2*o})}}function h(){n("modalIsVisible",s=!0)}var f=function(t){t.preventDefault()};function p(){r&&(cancelAnimationFrame(r),r=void 0),window.removeEventListener("touchmove",f,{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:s,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(){r=void 0,c(t.target,n,e),r=requestAnimationFrame(o)}(),window.addEventListener("touchmove",f,{passive:!1})}else l()}(t),h()):a()},show:h,_preventModalOverlayTouch:function(t){t.stopPropagation()},window:window,svg_binding:function(t){At[t?"unshift":"push"]((function(){n("element",o=t)}))}}}var ke=function(t){function n(e){var n;return Kt(a(n=t.call(this)||this),e,Fe,Le,vt,["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}(Ut),He=new h,Be=function(t){function e(e){var n;void 0===e&&(e={}),f(a(n=t.call(this,e)||this));n.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),n.classPrefix=lt(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),He.trigger(e,t)}))})),n.modal=new ke({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 Ae?n.tour=this:n=new Ae(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 He.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}),He.activeTour=null,this.trigger("inactive",{tour:this}),this.modal.hide(),p(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},n._setupActiveTour=function(){this.trigger("active",{tour:this}),He.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}(h);Object.assign(He,{Tour:Be,Step:Ae});export default He; | ||
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}),A={},L=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=L;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),L=t);var e=t.getAttribute("data-tether-id");y(A[e])&&(A[e]=k(t),$((function(){delete A[e]})));return A[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&&(L&&document.body.removeChild(L),L=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){st=t}function St(){if(!st)throw new Error("Function called outside component initialization");return st}function Mt(t){St().$$.after_update.push(t)}var At=[],Lt=[],Ft=[],kt=[],Ht=Promise.resolve(),Bt=!1;function Yt(t){Ft.push(t)}function jt(){var t=new Set;do{for(;At.length;){var e=At.shift();Pt(e),Wt(e.$$)}for(;Lt.length;)Lt.pop()();for(var n=0;n<Ft.length;n+=1){var o=Ft[n];t.has(o)||(o(),t.add(o))}Ft.length=0}while(At.length);for(;kt.length;)kt.pop()();Bt=!1}function Wt(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(Yt))}var Xt,Dt=new Set;function zt(){Xt={r:0,c:[],p:Xt}}function Nt(){Xt.r||mt(Xt.c),Xt=Xt.p}function Rt(t,e){t&&t.i&&(Dt.delete(t),t.i(e))}function Vt(t,e,n,o){if(t&&t.o){if(Dt.has(t))return;Dt.add(t),Xt.c.push((function(){Dt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function qt(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),Yt((function(){var e=r.map(dt).filter(vt);s?s.push.apply(s,e):mt(e),t.$$.on_mount=[]})),l.forEach(Yt)}function Zt(t,e){t.$$.fragment&&(mt(t.$$.on_destroy),t.$$.fragment.d(e),t.$$.on_destroy=t.$$.fragment=null,t.$$.ctx={})}function Kt(t,e){t.$$.dirty||(At.push(t),Bt||(Bt=!0,Ht.then(jt)),t.$$.dirty=gt()),t.$$.dirty[e]=!0}function Ut(t,e,n,o,i,r){var s=st;Pt(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&&Kt(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&&Rt(t.$$.fragment),qt(t,e.target,e.anchor),jt()),Pt(s)}"undefined"!=typeof HTMLElement&&l(HTMLElement);var Gt=function(){function t(){}var e=t.prototype;return e.$destroy=function(){Zt(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 Jt(t){var e,n,o;return{c:function(){e=Et("button"),n=It(t.text),Tt(e,"aria-label",t.label?t.label:null),Tt(e,"class",(t.classes||"")+" shepherd-button "+(t.secondary?"shepherd-button-secondary":"")),e.disabled=t.disabled,Tt(e,"tabindex","0"),o=_t(e,"click",t.action?t.action.bind(t.step.tour):null)},m:function(t,o){wt(t,e,o),yt(e,n)},p:function(t,n){t.disabled&&(e.disabled=n.disabled)},i:pt,o:pt,d:function(t){t&&xt(e),o()}}}function Qt(t,e,n){var o=e.config,i=e.step,r=o,s=r.action,l=r.classes,a=r.secondary,c=r.text,f=r.label,h=!1;return Mt((function(){o.disabled&&(n("disabled",h=o.disabled),u(h)&&n("disabled",h=h.call(i)))})),t.$set=function(t){"config"in t&&n("config",o=t.config),"step"in t&&n("step",i=t.step)},{config:o,step:i,action:s,classes:l,secondary:a,text:c,label:f,disabled:h}}var te=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,Qt,Jt,bt,["config","step"]),n}return o(e,t),e}(Gt);function ee(t,e,n){var o=Object.create(t);return o.config=e[n],o}function ne(t){for(var e,n,o=t.buttons,i=[],r=0;r<o.length;r+=1)i[r]=oe(ee(t,o,r));var s=function(t){return Vt(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=ee(n,o,r);i[r]?(i[r].p(t,l),Rt(i[r],1)):(i[r]=oe(l),i[r].c(),Rt(i[r],1),i[r].m(e.parentNode,e))}for(zt(),r=o.length;r<i.length;r+=1)s(r);Nt()}},i:function(t){if(!n){for(var e=0;e<o.length;e+=1)Rt(i[e]);n=!0}},o:function(t){i=i.filter(Boolean);for(var e=0;e<i.length;e+=1)Vt(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 oe(t){var e,n=new te({props:{config:t.config,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){qt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Rt(n.$$.fragment,t),e=!0)},o:function(t){Vt(n.$$.fragment,t),e=!1},d:function(t){Zt(n,t)}}}function ie(t){var e,n,o=t.buttons&&ne(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,e){e.buttons&&o.p(t,e)},i:function(t){n||(Rt(o),n=!0)},o:function(t){Vt(o),n=!1},d:function(t){t&&xt(e),o&&o.d()}}}function re(t,e,n){var o=e.step,i=o.options.buttons;return t.$set=function(t){"step"in t&&n("step",o=t.step)},{step:o,buttons:i}}var se=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,re,ie,bt,["step"]),n}return o(e,t),e}(Gt);function le(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 ae(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 ce=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,ae,le,bt,["cancelIcon","step"]),n}return o(e,t),e}(Gt);function fe(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 he(t,e,n){var o=e.labelId,i=e.element,r=e.title;return Mt((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){Lt[t?"unshift":"push"]((function(){n("element",i=t)}))}}}var pe=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,he,fe,bt,["labelId","element","title"]),n}return o(e,t),e}(Gt);function ue(t){var e,n,o,i=t.title&&function(t){var e,n=new pe({props:{labelId:t.labelId,title:t.title}});return{c:function(){n.$$.fragment.c()},m:function(t,o){qt(n,t,o),e=!0},p:function(t,e){var o={};t.labelId&&(o.labelId=e.labelId),n.$set(o)},i:function(t){e||(Rt(n.$$.fragment,t),e=!0)},o:function(t){Vt(n.$$.fragment,t),e=!1},d:function(t){Zt(n,t)}}}(t),r=t.cancelIcon&&t.cancelIcon.enabled&&function(t){var e,n=new ce({props:{cancelIcon:t.cancelIcon,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){qt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Rt(n.$$.fragment,t),e=!0)},o:function(t){Vt(n.$$.fragment,t),e=!1},d:function(t){Zt(n,t)}}}(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,e){e.title&&i.p(t,e),e.cancelIcon&&e.cancelIcon.enabled&&r.p(t,e)},i:function(t){o||(Rt(i),Rt(r),o=!0)},o:function(t){Vt(i),Vt(r),o=!1},d:function(t){t&&xt(e),i&&i.d(),r&&r.d()}}}function de(t,e,n){var o=e.labelId,i=e.step,r=i.options,s=r.cancelIcon,l=r.title;return t.$set=function(t){"labelId"in t&&n("labelId",o=t.labelId),"step"in t&&n("step",i=t.step)},{labelId:o,step:i,cancelIcon:s,title:l}}var ge=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,de,ue,bt,["labelId","step"]),n}return o(e,t),e}(Gt);function me(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 ve(t,e,n){var o=e.descriptionId,i=e.element,r=e.step;return Mt((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){Lt[t?"unshift":"push"]((function(){n("element",i=t)}))}}}var be=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,ve,me,bt,["descriptionId","element","step"]),n}return o(e,t),e}(Gt);function ye(t){var e,n=new be({props:{descriptionId:t.descriptionId,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){qt(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||(Rt(n.$$.fragment,t),e=!0)},o:function(t){Vt(n.$$.fragment,t),e=!1},d:function(t){Zt(n,t)}}}function we(t){var e,n=new se({props:{step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){qt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Rt(n.$$.fragment,t),e=!0)},o:function(t){Vt(n.$$.fragment,t),e=!1},d:function(t){Zt(n,t)}}}function xe(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 ge({props:{labelId:t.labelId,step:t.step}}),a=r&&ye(t),c=s&&we(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),qt(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),Rt(a,1)):((a=ye(n)).c(),Rt(a,1),a.m(e,o)):a&&(zt(),Vt(a,1,1,(function(){a=null})),Nt()),t.step&&(s=Array.isArray(n.step.options.buttons)&&n.step.options.buttons.length),s?c?(c.p(t,n),Rt(c,1)):((c=we(n)).c(),Rt(c,1),c.m(e,null)):c&&(zt(),Vt(c,1,1,(function(){c=null})),Nt())},i:function(t){i||(Rt(l.$$.fragment,t),Rt(a),Rt(c),i=!0)},o:function(t){Vt(l.$$.fragment,t),Vt(a),Vt(c),i=!1},d:function(t){t&&xt(e),Zt(l),a&&a.d(),c&&c.d()}}}function Ee(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 Oe=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,Ee,xe,bt,["descriptionId","labelId","step"]),n}return o(e,t),e}(Gt);function Ie(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 $e(t){for(var e,n,o,i,r=t.step.options.arrow&&t.step.options.attachTo&&t.step.options.attachTo.element&&Ie(),s=new Oe({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},{class:t.classes+" shepherd-element "+(t.hasCancelIcon?"shepherd-has-cancel-icon":"")+" "+(t.hasTitle?"shepherd-has-title":"")},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),i=_t(e,"keydown",t.handleKeyDown)},m:function(i,l){wt(i,e,l),r&&r.m(e,null),yt(e,n),qt(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=Ie()).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.classes||t.hasCancelIcon||t.hasTitle)&&{class:o.classes+" shepherd-element "+(o.hasCancelIcon?"shepherd-has-cancel-icon":"")+" "+(o.hasTitle?"shepherd-has-title":"")},t.dataStepId&&o.dataStepId,{role:"dialog"},{tabindex:"0"}]))},i:function(t){o||(Rt(s.$$.fragment,t),o=!0)},o:function(t){Vt(s.$$.fragment,t),o=!1},d:function(n){n&&xt(e),r&&r.d(),Zt(s),t.div_binding(null),i()}}}var _e=9,Te=27,Ce=37,Pe=39;function Se(t,e,n){var o,i,r=e.classes,s=e.classPrefix,l=e.element,a=e.descriptionId,c=e.firstFocusableElement,f=e.focusableElements,h=e.labelId,p=e.lastFocusableElement,u=e.step,d=((o={})["data-"+s+"shepherd-step-id"]=u.id,o),g=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled,m=u.options&&u.options.title;i=function(){n("focusableElements",f=l.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n("firstFocusableElement",c=f[0]),n("lastFocusableElement",p=f[f.length-1])},St().$$.on_mount.push(i);return t.$set=function(t){"classes"in t&&n("classes",r=t.classes),"classPrefix"in t&&n("classPrefix",s=t.classPrefix),"element"in t&&n("element",l=t.element),"descriptionId"in t&&n("descriptionId",a=t.descriptionId),"firstFocusableElement"in t&&n("firstFocusableElement",c=t.firstFocusableElement),"focusableElements"in t&&n("focusableElements",f=t.focusableElements),"labelId"in t&&n("labelId",h=t.labelId),"lastFocusableElement"in t&&n("lastFocusableElement",p=t.lastFocusableElement),"step"in t&&n("step",u=t.step)},{classes:r,classPrefix:s,element:l,descriptionId:a,firstFocusableElement:c,focusableElements:f,labelId:h,lastFocusableElement:p,step:u,dataStepId:d,hasCancelIcon:g,hasTitle:m,getElement:function(){return l},handleKeyDown:function(t){var e=u.tour;switch(t.keyCode){case _e:if(0===f.length){t.preventDefault();break}t.shiftKey?document.activeElement===c&&(t.preventDefault(),p.focus()):document.activeElement===p&&(t.preventDefault(),c.focus());break;case Te:e.options.exitOnEsc&&u.cancel();break;case Ce:e.options.keyboardNavigation&&e.back();break;case Pe:e.options.keyboardNavigation&&e.next()}},div_binding:function(t){Lt[t?"unshift":"push"]((function(){n("element",l=t)}))}}}var Me=function(t){function n(e){var n;return Ut(a(n=t.call(this)||this),e,Se,$e,bt,["classes","classPrefix","element","descriptionId","firstFocusableElement","focusableElements","labelId","lastFocusableElement","step","getElement"]),n}return o(n,t),e(n,[{key:"getElement",get:function(){return this.$$.ctx.getElement}}]),n}(Gt);var Ae=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})}}}}));Ae.polyfill;Ae.polyfill();var Le=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.options.classes||"",e=this.id+"-description",n=this.id+"-label";return this.shepherdElementComponent=new Me({target:document.body,props:{classPrefix:this.classPrefix,classes:t,descriptionId:e,labelId:n,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)&&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 Fe(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 ke(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){Lt[t?"unshift":"push"]((function(){n("element",o=t)}))}}}var He=function(t){function n(e){var n;return Ut(a(n=t.call(this)||this),e,ke,Fe,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}(Gt),Be=new f,Ye=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),Be.trigger(e,t)}))})),n.modal=new He({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 Le?n.tour=this:n=new Le(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 Be.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}),Be.activeTour=null,this.trigger("inactive",{tour:this}),this.modal.hide(),p(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},n._setupActiveTour=function(){this.trigger("active",{tour:this}),Be.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(Be,{Tour:Ye,Step:Le});export default Be; | ||
//# sourceMappingURL=shepherd.esm.min.js.map |
@@ -1,4 +0,4 @@ | ||
/*! shepherd.js 6.0.0-beta.2 */ | ||
/*! shepherd.js 6.0.0 */ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Shepherd=e()}(this,(function(){"use strict";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 s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function r(t,e,n){return(r=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&&s(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 r(t,arguments,i(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),s(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 h=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){if(c(this.bindings)||c(this.bindings[t]))return this;if(c(e))delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n;return this},e.trigger=function(t){if(!c(this.bindings)&&this.bindings[t]){for(var e=0,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(;e<this.bindings[t].length;){var s=this.bindings[t][e],r=s.handler,l=s.ctx,a=s.once,h=l;c(h)&&(h=this),r.apply(h,o),a?this.bindings[t].splice(e,1):++e}}return this},t}();function f(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,s=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,s),t.on("destroy",(function(){return i.removeEventListener(n,s)}))):(document.body.addEventListener(n,s,!0),t.on("destroy",(function(){return document.body.removeEventListener(n,s,!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,e){e.split(" ").forEach((function(e){e.trim()&&t.classList.add(e)}))}function y(t,e){e.split(" ").forEach((function(e){e.trim()&&t.classList.remove(e)}))}function w(t,e,n){n.forEach((function(n){-1===e.indexOf(n)&&t.classList.contains(n)&&y(t,n)})),e.forEach((function(e){t.classList.contains(e)||b(t,e)}))}var x=[];function O(t){x.push(t)}function E(){for(var t;t=x.pop();)t()}var I=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 $(){if(I)return I;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 I={width:i,height:i}}var _,T=(_=0,function(){return++_});function S(t){return"string"==typeof t}function P(t){return void 0===t}var M={},A=null;function L(t){var e;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var n=e.documentElement,o=F(t),i=function(){var t=A;t&&document.body.contains(t)||((t=document.createElement("div")).setAttribute("data-tether-id",T()),C(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),A=t);var e=t.getAttribute("data-tether-id");P(M[e])&&(M[e]=F(t),O((function(){delete M[e]})));return M[e]}();return o.top-=i.top,o.left-=i.left,P(o.width)&&(o.width=document.body.scrollWidth-o.left-o.right),P(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 F(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 s=F(i);n.top+=s.top,n.bottom+=s.top,n.left+=s.left,n.right+=s.left}}}catch(t){}return n}var k={position:function(t){var e=this,n=t.top,o=t.left,i=this.cache("element-bounds",(function(){return L(e.element)})),s=i.height,r=i.width,l=this.getTargetBounds(),a=n+s,c=o+r,h=[];n<=l.bottom&&a>=l.top&&["left","right"].forEach((function(t){var e=l[t];e!==o&&e!==c||h.push(t)})),o<=l.right&&c>=l.left&&["top","bottom"].forEach((function(t){var e=l[t];e!==n&&e!==a||h.push(t)}));return this.all.push(this.getClass("abutted")),["left","top","right","bottom"].forEach((function(t){e.all.push(e.getClass("abutted")+"-"+t)})),h.length&&this.add.push(this.getClass("abutted")),h.forEach((function(t){e.add.push(e.getClass("abutted")+"-"+t)})),O((function(){!1!==e.options.addTargetClasses&&w(e.target,e.add,e.all),w(e.element,e.add,e.all)})),!0}},H=["left","top","right","bottom"];var B={position:function(t){var e=this,n=t.top,o=t.left,i=t.targetAttachment;if(!this.options.constraints)return!0;var s=this.cache("element-bounds",(function(){return L(e.element)})),r=s.height,l=s.width;if(0===l&&0===r&&!P(this.lastSize)){var a=this.lastSize;l=a.width,r=a.height}var c=this.cache("target-bounds",(function(){return e.getTargetBounds()})),h=c.height,f=c.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(t){var e=t.outOfBoundsClass,n=t.pinnedClass;e&&p.push(e),n&&p.push(n)})),p.forEach((function(t){["left","top","right","bottom"].forEach((function(e){p.push(t+"-"+e)}))}));var u=[],d=C({},i),g=C({},this.attachment);return this.options.constraints.forEach((function(t){var s,a,c=t.to,p=t.attachment,m=t.pin;if(P(p)&&(p=""),p.indexOf(" ")>=0){var v=p.split(" ");a=v[0],s=v[1]}else s=a=p;var b=function(t,e){if("scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),!P(e.nodeType)){var n=e,o=L(e),i=o,s=getComputedStyle(e);if(e=[i.left,i.top,o.width+i.left,o.height+i.top],n.ownerDocument!==document){var r=n.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}H.forEach((function(t,n){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?e[n]+=parseFloat(s["border"+t+"Width"]):e[n]-=parseFloat(s["border"+t+"Width"])}))}return e}(e,c);"target"!==a&&"both"!==a||(n<b[1]&&"top"===d.top&&(n+=h,d.top="bottom"),n+r>b[3]&&"bottom"===d.top&&(n-=h,d.top="top")),"together"===a&&("top"===d.top&&("bottom"===g.top&&n<b[1]?(n+=h,d.top="bottom",n+=r,g.top="top"):"top"===g.top&&n+r>b[3]&&n-(r-h)>=b[1]&&(n-=r-h,d.top="bottom",g.top="bottom")),"bottom"===d.top&&("top"===g.top&&n+r>b[3]?(n-=h,d.top="top",n-=r,g.top="bottom"):"bottom"===g.top&&n<b[1]&&n+(2*r-h)<=b[3]&&(n+=r-h,d.top="top",g.top="top")),"middle"===d.top&&(n+r>b[3]&&"top"===g.top?(n-=r,g.top="bottom"):n<b[1]&&"bottom"===g.top&&(n+=r,g.top="top"))),"target"!==s&&"both"!==s||(o<b[0]&&"left"===d.left&&(o+=f,d.left="right"),o+l>b[2]&&"right"===d.left&&(o-=f,d.left="left")),"together"===s&&(o<b[0]&&"left"===d.left?"right"===g.left?(o+=f,d.left="right",o+=l,g.left="left"):"left"===g.left&&(o+=f,d.left="right",o-=l,g.left="right"):o+l>b[2]&&"right"===d.left?"left"===g.left?(o-=f,d.left="left",o-=l,g.left="right"):"right"===g.left&&(o-=f,d.left="left",o+=l,g.left="left"):"center"===d.left&&(o+l>b[2]&&"left"===g.left?(o-=l,g.left="right"):o<b[0]&&"right"===g.left&&(o+=l,g.left="left"))),"element"!==a&&"both"!==a||(n<b[1]&&"bottom"===g.top&&(n+=r,g.top="top"),n+r>b[3]&&"top"===g.top&&(n-=r,g.top="bottom")),"element"!==s&&"both"!==s||(o<b[0]&&("right"===g.left?(o+=l,g.left="left"):"center"===g.left&&(o+=l/2,g.left="left")),o+l>b[2]&&("left"===g.left?(o-=l,g.left="right"):"center"===g.left&&(o-=l/2,g.left="right"))),S(m)?m=m.split(",").map((function(t){return t.trim()})):!0===m&&(m=["top","left","right","bottom"]),m=m||[];var y,w,x=[],O=[];(n<b[1]&&(m.indexOf("top")>=0?(n=b[1],x.push("top")):O.push("top")),n+r>b[3]&&(m.indexOf("bottom")>=0?(n=b[3]-r,x.push("bottom")):O.push("bottom")),o<b[0]&&(m.indexOf("left")>=0?(o=b[0],x.push("left")):O.push("left")),o+l>b[2]&&(m.indexOf("right")>=0?(o=b[2]-l,x.push("right")):O.push("right")),x.length)&&(y=P(e.options.pinnedClass)?e.getClass("pinned"):e.options.pinnedClass,u.push(y),x.forEach((function(t){u.push(y+"-"+t)})));O.length&&(w=P(e.options.outOfBoundsClass)?e.getClass("out-of-bounds"):e.options.outOfBoundsClass,u.push(w),O.forEach((function(t){u.push(w+"-"+t)})));(x.indexOf("left")>=0||x.indexOf("right")>=0)&&(g.left=d.left=!1),(x.indexOf("top")>=0||x.indexOf("bottom")>=0)&&(g.top=d.top=!1),d.top===i.top&&d.left===i.left&&g.top===e.attachment.top&&g.left===e.attachment.left||(e.updateAttachClasses(g,d),e.trigger("update",{attachment:g,targetAttachment:d}))})),O((function(){!1!==e.options.addTargetClasses&&w(e.target,u,p),w(e.element,u,p)})),{top:n,left:o}}},Y={position:function(t){var e=t.top,n=t.left;if(this.options.shift){var o,i,s=this.options.shift;if("function"==typeof s&&(s=s.call(this,{top:e,left:n})),S(s)){(s=s.split(" "))[1]=s[1]||s[0];var r=s;o=r[0],i=r[1],o=parseFloat(o,10),i=parseFloat(i,10)}else{var l=[s.top,s.left];o=l[0],i=l[1]}return{top:e+=o,left:n+=i}}}},j=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n,o){return void 0===o&&(o=!1),P(this.bindings)&&(this.bindings={}),P(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){if(P(this.bindings)||P(this.bindings[t]))return this;if(P(e))delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n;return this},e.trigger=function(t){if(!P(this.bindings)&&this.bindings[t]){for(var e=0,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(;e<this.bindings[t].length;){var s=this.bindings[t][e],r=s.handler,l=s.ctx,a=s.once,c=l;P(c)&&(c=this),r.apply(c,o),a?this.bindings[t].splice(e,1):++e}}return this},t}(),W={center:"center",left:"right",right:"left"},X={middle:"middle",top:"bottom",bottom:"top"},D={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};function z(){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;S(n)&&(n=parseFloat(n)),S(o)&&(o=parseFloat(o)),t.top+=n,t.left+=o})),t}function N(t){var e=t.left,n=t.top;return P(D[t.left])||(e=D[t.left]),P(D[t.top])||(n=D[t.top]),{left:e,top:n}}function R(t,e){return S(t.left)&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left)/100*e.width),S(t.top)&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top)/100*e.height),t}function V(t){var e=t.split(" ");return{top:e[0],left:e[1]}}function q(t){return t.offsetParent||document.documentElement}var Z={modules:[B,k,Y]};var K,U,G,J,Q=function(){if(P(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}}(),tt=[],et=function(){tt.forEach((function(t){t.position(!1)})),E()};function nt(){return performance.now()}K=null,U=null,G=null,J=function t(){if(!P(U)&&U>16)return U=Math.min(U-16,250),void(G=setTimeout(t,250));!P(K)&&nt()-K<10||(null!=G&&(clearTimeout(G),G=null),K=nt(),et(),U=nt()-K)},P(window)||P(window.addEventListener)||["resize","scroll","touchmove"].forEach((function(t){window.addEventListener(t,J)}));var ot=function(t){var e,n;function o(e){var n;return(n=t.call(this)||this).position=n.position.bind(v(n)),tt.push(v(n)),n.history=[],n.setOptions(e,!1),Z.modules.forEach((function(t){P(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.getClass=function(t){void 0===t&&(t="");var e=this.options.classes;return P(e)||P(e[t])?this.options.classPrefix?this.options.classPrefix+"-"+t:t:!1===e[t]?"":this.options.classes[t]},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,s=o.target,r=o.targetModifier;if(this.element=i,this.target=s,this.targetModifier=r,"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(P(n[t]))throw new Error("Tether Error: Both element and target must be defined");P(n[t].jquery)?S(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=V(this.options.targetAttachment),this.attachment=V(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),P(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(P(i)||null===i)return n.push(o),n;var s=i,r=s.overflow,l=s.overflowX,a=s.overflowY;/(auto|scroll|overlay)/.test(r+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(){if(P(this.targetModifier))return L(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=L(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var n,o=this.target;o===document.body?(o=document.documentElement,n={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):n=L(o);var i=getComputedStyle(o),s=0;(o.scrollWidth>o.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(s=15);var r=n.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-s,l={width:15,height:.975*r*(r/o.scrollHeight),left:n.left+n.width-parseFloat(i.borderLeftWidth)-15},a=0;r<408&&this.target===document.body&&(a=-11e-5*Math.pow(r,2)-.00727*r+22.58),this.target!==document.body&&(l.height=Math.max(l.height,24));var c=this.target.scrollTop/(o.scrollHeight-r);return l.top=c*(r-l.height-a)+n.top+parseFloat(i.borderTopWidth),this.target===document.body&&(l.height=Math.max(l.height,24)),l}},i.clearCache=function(){this._cache={}},i.cache=function(t,e){return P(this._cache)&&(this._cache={}),P(this._cache[t])&&(this._cache[t]=e.call(this)),this._cache[t]},i.enable=function(t){var e=this;void 0===t&&(t=!0),!1!==this.options.addTargetClasses&&b(this.target,this.getClass("enabled")),b(this.element,this.getClass("enabled")),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;y(this.target,this.getClass("enabled")),y(this.element,this.getClass("enabled")),this.enabled=!1,P(this.scrollParents)||this.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.position)}))},i.destroy=function(){var t=this;this.disable(),this._removeClasses(),tt.forEach((function(e,n){e===t&&tt.splice(n,1)})),0===tt.length&&(A&&document.body.removeChild(A),A=null)},i.updateAttachClasses=function(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;!P(this._addAttachClasses)&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),P(this._addAttachClasses)&&(this._addAttachClasses=[]),this.add=this._addAttachClasses,t.top&&this.add.push(this.getClass("element-attached")+"-"+t.top),t.left&&this.add.push(this.getClass("element-attached")+"-"+t.left),e.top&&this.add.push(this.getClass("target-attached")+"-"+e.top),e.left&&this.add.push(this.getClass("target-attached")+"-"+e.left),this.all=[],["left","top","bottom","right","middle","center"].forEach((function(t){n.all.push(n.getClass("element-attached")+"-"+t),n.all.push(n.getClass("target-attached")+"-"+t)})),O((function(){P(n._addAttachClasses)||(w(n.element,n._addAttachClasses,n.all),!1!==n.options.addTargetClasses&&w(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=W[e.left]),"auto"===o&&(o=X[e.top]),{left:n,top:o}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var o=this.cache("element-bounds",(function(){return L(e.element)})),i=o.width,s=o.height;if(0!==i||0!==s||P(this.lastSize))this.lastSize={width:i,height:s};else{var r=this.lastSize;i=r.width,s=r.height}var l=this.cache("target-bounds",(function(){return e.getTargetBounds()})),a=l,c=R(N(this.attachment),{width:i,height:s}),h=R(N(n),a),f=R(this.offset,{width:i,height:s}),p=R(this.targetOffset,a);c=z(c,f),h=z(h,p);for(var u=l.left+h.left-c.left,d=l.top+h.top-c.top,g=0;g<Z.modules.length;++g){var m=Z.modules[g].position.call(this,{left:u,top:d,targetAttachment:n,targetPos:l,elementPos:o,offset:c,targetOffset:h,manualOffset:f,manualTargetOffset:p,scrollbarSize:v,attachment:this.attachment});if(!1===m)return!1;P(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-s+innerHeight,left:u-pageXOffset,right:pageXOffset-u-i+innerWidth}},y=this.target.ownerDocument,w=y.defaultView;if(w.innerHeight>y.documentElement.clientHeight&&(v=this.cache("scrollbar-size",$),b.viewport.bottom-=v.height),w.innerWidth>y.documentElement.clientWidth&&(v=this.cache("scrollbar-size",$),b.viewport.right-=v.width),-1!==["","static"].indexOf(y.body.style.position)&&-1!==["","static"].indexOf(y.body.parentElement.style.position)||(b.page.bottom=y.body.scrollHeight-d-s,b.page.right=y.body.scrollWidth-u-i),!P(this.options.optimizations)&&!1!==this.options.optimizations.moveElement&&P(this.targetModifier)){var x=this.cache("target-offsetparent",(function(){return q(e.target)})),O=this.cache("target-offsetparent-bounds",(function(){return L(x)})),I=getComputedStyle(x),C=O,_={};if(["Top","Left","Bottom","Right"].forEach((function(t){_[t.toLowerCase()]=parseFloat(I["border"+t+"Width"])})),O.right=y.body.scrollWidth-O.left-C.width+_.right,O.bottom=y.body.scrollHeight-O.top-C.height+_.bottom,b.page.top>=O.top+_.top&&b.page.bottom>=O.bottom&&b.page.left>=O.left+_.left&&b.page.right>=O.right){var T=x.scrollLeft,S=x.scrollTop;b.offset={top:b.page.top-O.top+S-_.top,left:b.page.left-O.left+T-_.left}}}return this.move(b),this.history.unshift(b),this.history.length>3&&this.history.pop(),t&&E(),!0}},i.move=function(t){var e=this;if(!P(this.element.parentNode)){var n,o,i,s={};for(var r in t)for(var l in s[r]={},t[r]){for(var a=!1,c=0;c<this.history.length;++c){var h=this.history[c];if(!(P(h[r])||(n=h[r][l],o=t[r][l],i=void 0,void 0===i&&(i=1),n+i>=o&&o>=n-i))){a=!0;break}}a||(s[r][l]=!0)}var f={top:"",left:"",right:"",bottom:""},p=function(t,n){var o,i;!1!==(!P(e.options.optimizations)?e.options.optimizations.gpu:null)?(t.top?(f.top=0,o=n.top):(f.bottom=0,o=-n.bottom),t.left?(f.left=0,i=n.left):(f.right=0,i=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(i=Math.round(i*devicePixelRatio)/devicePixelRatio,o=Math.round(o*devicePixelRatio)/devicePixelRatio),f[Q]="translateX("+i+"px) translateY("+o+"px)","msTransform"!==Q&&(f[Q]+=" translateZ(0)")):(t.top?f.top=n.top+"px":f.bottom=n.bottom+"px",t.left?f.left=n.left+"px":f.right=n.right+"px")},u=!0;!P(this.options.optimizations)&&!1===this.options.optimizations.allowPositionFixed&&(u=!1);var d,g,m=!1;if((s.page.top||s.page.bottom)&&(s.page.left||s.page.right))f.position="absolute",p(s.page,t.page);else if(u&&(s.viewport.top||s.viewport.bottom)&&(s.viewport.left||s.viewport.right))f.position="fixed",p(s.viewport,t.viewport);else if(!P(s.offset)&&s.offset.top&&s.offset.left){f.position="absolute";var v=this.cache("target-offsetparent",(function(){return q(e.target)}));q(this.element)!==v&&O((function(){e.element.parentNode.removeChild(e.element),v.appendChild(e.element)})),p(s.offset,t.offset),m=!0}else f.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,y=this.element.parentNode;y&&1===y.nodeType&&"BODY"!==y.tagName&&(g=void 0,((g=(d=y).ownerDocument).fullscreenElement||g.webkitFullscreenElement||g.mozFullScreenElement||g.msFullscreenElement)!==d);){if("static"!==getComputedStyle(y).position){b=!1;break}y=y.parentNode}b||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var w={},x=!1;for(var E in f){var I=f[E];this.element.style[E]!==I&&(x=!0,w[E]=I)}x&&O((function(){C(e.element.style,w),e.trigger("repositioned")}))}},i._addClasses=function(){b(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&b(this.target,this.getClass("target"))},i._removeClasses=function(){var t=this;y(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&y(this.target,this.getClass("target")),this.all.forEach((function(e){t.element.classList.remove(e),t.target.classList.remove(e)}))},o}(j);ot.modules=[],Z.position=et;var it=C(ot,Z);it.modules.push({initialize:function(){var t=this;this.markers={},["target","element"].forEach((function(e){var n=document.createElement("div");n.className=t.getClass(e+"-marker");var o=document.createElement("div");o.className=t.getClass("marker-dot"),n.appendChild(o),t[e].appendChild(n),t.markers[e]={dot:o,el:n}}))},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 s=o[i];(!S(s)||-1===s.indexOf("%")&&-1===s.indexOf("px"))&&(s+="px"),this.markers[n].dot.style[i]!==s&&(this.markers[n].dot.style[i]=s)}}return!0}});var st,rt={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 lt(t){return d(t)&&""!==t?"-"!==t.charAt(t.length-1)?t+"-":t:""}function at(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 ct(t){t.tooltip&&t.tooltip.destroy();var e=at(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=rt[t.on]||rt.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 it(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 ft(){}function pt(t,e){for(var n in e)t[n]=e[n];return t}function ut(t){return t()}function dt(){return Object.create(null)}function gt(t){t.forEach(ut)}function mt(t){return"function"==typeof t}function vt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function bt(t,e){t.appendChild(e)}function yt(t,e,n){t.insertBefore(e,n||null)}function wt(t){t.parentNode.removeChild(t)}function xt(t){return document.createElement(t)}function Ot(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Et(t){return document.createTextNode(t)}function It(){return Et(" ")}function Ct(t,e,n,o){return t.addEventListener(e,n,o),function(){return t.removeEventListener(e,n,o)}}function $t(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function _t(t,e){for(var n in e)"style"===n?t.style.cssText=e[n]:n in t?t[n]=e[n]:$t(t,n,e[n])}function Tt(t){st=t}function St(){if(!st)throw new Error("Function called outside component initialization");return st}function Pt(t){St().$$.after_update.push(t)}var Mt=[],At=[],Lt=[],Ft=[],kt=Promise.resolve(),Ht=!1;function Bt(t){Lt.push(t)}function Yt(){var t=new Set;do{for(;Mt.length;){var e=Mt.shift();Tt(e),jt(e.$$)}for(;At.length;)At.pop()();for(var n=0;n<Lt.length;n+=1){var o=Lt[n];t.has(o)||(o(),t.add(o))}Lt.length=0}while(Mt.length);for(;Ft.length;)Ft.pop()();Ht=!1}function jt(t){t.fragment&&(t.update(t.dirty),gt(t.before_update),t.fragment.p(t.dirty,t.ctx),t.dirty=null,t.after_update.forEach(Bt))}var Wt,Xt=new Set;function Dt(){Wt={r:0,c:[],p:Wt}}function zt(){Wt.r||gt(Wt.c),Wt=Wt.p}function Nt(t,e){t&&t.i&&(Xt.delete(t),t.i(e))}function Rt(t,e,n,o){if(t&&t.o){if(Xt.has(t))return;Xt.add(t),Wt.c.push((function(){Xt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function Vt(t,e,n){var o=t.$$,i=o.fragment,s=o.on_mount,r=o.on_destroy,l=o.after_update;i.m(e,n),Bt((function(){var e=s.map(ut).filter(mt);r?r.push.apply(r,e):gt(e),t.$$.on_mount=[]})),l.forEach(Bt)}function qt(t,e){t.$$.fragment&&(gt(t.$$.on_destroy),t.$$.fragment.d(e),t.$$.on_destroy=t.$$.fragment=null,t.$$.ctx={})}function Zt(t,e){t.$$.dirty||(Mt.push(t),Ht||(Ht=!0,kt.then(Yt)),t.$$.dirty=dt()),t.$$.dirty[e]=!0}function Kt(t,e,n,o,i,s){var r=st;Tt(t);var l=e.props||{},a=t.$$={fragment:null,ctx:null,props:s,update:ft,not_equal:i,bound:dt(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(r?r.$$.context:[]),callbacks:dt(),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&&Zt(t,e)),n})):l,a.update(),c=!0,gt(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&&Nt(t.$$.fragment),Vt(t,e.target,e.anchor),Yt()),Tt(r)}"undefined"!=typeof HTMLElement&&l(HTMLElement);var Ut=function(){function t(){}var e=t.prototype;return e.$destroy=function(){qt(this,1),this.$destroy=ft},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 Gt(t){var e,n,o;return{c:function(){e=xt("button"),n=Et(t.text),$t(e,"aria-label",t.label?t.label:null),$t(e,"class",(t.classes||"")+" shepherd-button "+(t.secondary?"shepherd-button-secondary":"")),e.disabled=t.disabled,$t(e,"tabindex","0"),o=Ct(e,"click",t.action?t.action.bind(t.step.tour):null)},m:function(t,o){yt(t,e,o),bt(e,n)},p:function(t,n){t.disabled&&(e.disabled=n.disabled)},i:ft,o:ft,d:function(t){t&&wt(e),o()}}}function Jt(t,e,n){var o=e.config,i=e.step,s=o,r=s.action,l=s.classes,a=s.secondary,c=s.text,h=s.label,f=!1;return Pt((function(){o.disabled&&(n("disabled",f=o.disabled),u(f)&&n("disabled",f=f.call(i)))})),t.$set=function(t){"config"in t&&n("config",o=t.config),"step"in t&&n("step",i=t.step)},{config:o,step:i,action:r,classes:l,secondary:a,text:c,label:h,disabled:f}}var Qt=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,Jt,Gt,vt,["config","step"]),n}return o(e,t),e}(Ut);function te(t,e,n){var o=Object.create(t);return o.config=e[n],o}function ee(t){for(var e,n,o=t.buttons,i=[],s=0;s<o.length;s+=1)i[s]=ne(te(t,o,s));var r=function(t){return Rt(i[t],1,1,(function(){i[t]=null}))};return{c:function(){for(var t=0;t<i.length;t+=1)i[t].c();e=Et("")},m:function(t,o){for(var s=0;s<i.length;s+=1)i[s].m(t,o);yt(t,e,o),n=!0},p:function(t,n){if(t.buttons||t.step){var s;for(o=n.buttons,s=0;s<o.length;s+=1){var l=te(n,o,s);i[s]?(i[s].p(t,l),Nt(i[s],1)):(i[s]=ne(l),i[s].c(),Nt(i[s],1),i[s].m(e.parentNode,e))}for(Dt(),s=o.length;s<i.length;s+=1)r(s);zt()}},i:function(t){if(!n){for(var e=0;e<o.length;e+=1)Nt(i[e]);n=!0}},o:function(t){i=i.filter(Boolean);for(var e=0;e<i.length;e+=1)Rt(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&&wt(e)}}}function ne(t){var e,n=new Qt({props:{config:t.config,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Vt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){qt(n,t)}}}function oe(t){var e,n,o=t.buttons&&ee(t);return{c:function(){e=xt("footer"),o&&o.c(),$t(e,"class","shepherd-footer")},m:function(t,i){yt(t,e,i),o&&o.m(e,null),n=!0},p:function(t,e){e.buttons&&o.p(t,e)},i:function(t){n||(Nt(o),n=!0)},o:function(t){Rt(o),n=!1},d:function(t){t&&wt(e),o&&o.d()}}}function ie(t,e,n){var o=e.step,i=o.options.buttons;return t.$set=function(t){"step"in t&&n("step",o=t.step)},{step:o,buttons:i}}var se=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,ie,oe,vt,["step"]),n}return o(e,t),e}(Ut);function re(t){var e,n,o,i;return{c:function(){e=xt("button"),(n=xt("span")).textContent="×",$t(n,"aria-hidden","true"),$t(e,"aria-label",o=t.cancelIcon.label?t.cancelIcon.label:"Close Tour"),$t(e,"class","shepherd-cancel-icon"),$t(e,"type","button"),i=Ct(e,"click",t.handleCancelClick)},m:function(t,o){yt(t,e,o),bt(e,n)},p:function(t,n){t.cancelIcon&&o!==(o=n.cancelIcon.label?n.cancelIcon.label:"Close Tour")&&$t(e,"aria-label",o)},i:ft,o:ft,d:function(t){t&&wt(e),i()}}}function le(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 ae=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,le,re,vt,["cancelIcon","step"]),n}return o(e,t),e}(Ut);function ce(t){var e;return{c:function(){$t(e=xt("h3"),"id",t.labelId),$t(e,"class","shepherd-title")},m:function(n,o){yt(n,e,o),t.h3_binding(e)},p:function(t,n){t.labelId&&$t(e,"id",n.labelId)},i:ft,o:ft,d:function(n){n&&wt(e),t.h3_binding(null)}}}function he(t,e,n){var o=e.labelId,i=e.element,s=e.title;return Pt((function(){u(s)&&n("title",s=s()),n("element",i.innerHTML=s,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",s=t.title)},{labelId:o,element:i,title:s,h3_binding:function(t){At[t?"unshift":"push"]((function(){n("element",i=t)}))}}}var fe=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,he,ce,vt,["labelId","element","title"]),n}return o(e,t),e}(Ut);function pe(t){var e,n,o,i=t.title&&function(t){var e,n=new fe({props:{labelId:t.labelId,title:t.title}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Vt(n,t,o),e=!0},p:function(t,e){var o={};t.labelId&&(o.labelId=e.labelId),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){qt(n,t)}}}(t),s=t.cancelIcon&&t.cancelIcon.enabled&&function(t){var e,n=new ae({props:{cancelIcon:t.cancelIcon,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Vt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){qt(n,t)}}}(t);return{c:function(){e=xt("header"),i&&i.c(),n=It(),s&&s.c(),$t(e,"class","shepherd-header")},m:function(t,r){yt(t,e,r),i&&i.m(e,null),bt(e,n),s&&s.m(e,null),o=!0},p:function(t,e){e.title&&i.p(t,e),e.cancelIcon&&e.cancelIcon.enabled&&s.p(t,e)},i:function(t){o||(Nt(i),Nt(s),o=!0)},o:function(t){Rt(i),Rt(s),o=!1},d:function(t){t&&wt(e),i&&i.d(),s&&s.d()}}}function ue(t,e,n){var o=e.labelId,i=e.step,s=i.options,r=s.cancelIcon,l=s.title;return t.$set=function(t){"labelId"in t&&n("labelId",o=t.labelId),"step"in t&&n("step",i=t.step)},{labelId:o,step:i,cancelIcon:r,title:l}}var de=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,ue,pe,vt,["labelId","step"]),n}return o(e,t),e}(Ut);function ge(t){var e;return{c:function(){$t(e=xt("div"),"class","shepherd-text"),$t(e,"id",t.descriptionId)},m:function(n,o){yt(n,e,o),t.div_binding(e)},p:function(t,n){t.descriptionId&&$t(e,"id",n.descriptionId)},i:ft,o:ft,d:function(n){n&&wt(e),t.div_binding(null)}}}function me(t,e,n){var o=e.descriptionId,i=e.element,s=e.step;return Pt((function(){var t=s.options.text;u(t)&&(t=t.call(s)),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",s=t.step)},{descriptionId:o,element:i,step:s,div_binding:function(t){At[t?"unshift":"push"]((function(){n("element",i=t)}))}}}var ve=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,me,ge,vt,["descriptionId","element","step"]),n}return o(e,t),e}(Ut);function be(t){var e,n=new ve({props:{descriptionId:t.descriptionId,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Vt(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||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){qt(n,t)}}}function ye(t){var e,n=new se({props:{step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){Vt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){qt(n,t)}}}function we(t){var e,n,o,i,s=!g(t.step.options.text),r=Array.isArray(t.step.options.buttons)&&t.step.options.buttons.length,l=new de({props:{labelId:t.labelId,step:t.step}}),a=s&&be(t),c=r&&ye(t);return{c:function(){e=xt("div"),l.$$.fragment.c(),n=It(),a&&a.c(),o=It(),c&&c.c(),$t(e,"class","shepherd-content")},m:function(t,s){yt(t,e,s),Vt(l,e,null),bt(e,n),a&&a.m(e,null),bt(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&&(s=!g(n.step.options.text)),s?a?(a.p(t,n),Nt(a,1)):((a=be(n)).c(),Nt(a,1),a.m(e,o)):a&&(Dt(),Rt(a,1,1,(function(){a=null})),zt()),t.step&&(r=Array.isArray(n.step.options.buttons)&&n.step.options.buttons.length),r?c?(c.p(t,n),Nt(c,1)):((c=ye(n)).c(),Nt(c,1),c.m(e,null)):c&&(Dt(),Rt(c,1,1,(function(){c=null})),zt())},i:function(t){i||(Nt(l.$$.fragment,t),Nt(a),Nt(c),i=!0)},o:function(t){Rt(l.$$.fragment,t),Rt(a),Rt(c),i=!1},d:function(t){t&&wt(e),qt(l),a&&a.d(),c&&c.d()}}}function xe(t,e,n){var o=e.descriptionId,i=e.labelId,s=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",s=t.step)},{descriptionId:o,labelId:i,step:s}}var Oe=function(t){function e(e){var n;return Kt(a(n=t.call(this)||this),e,xe,we,vt,["descriptionId","labelId","step"]),n}return o(e,t),e}(Ut);function Ee(t){var e;return{c:function(){$t(e=xt("div"),"class","shepherd-arrow")},m:function(t,n){yt(t,e,n)},d:function(t){t&&wt(e)}}}function Ie(t){for(var e,n,o,i,s=t.step.options.arrow&&t.step.options.attachTo&&t.step.options.attachTo.element&&Ee(),r=new Oe({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},{class:t.classes+" shepherd-element "+(t.hasCancelIcon?"shepherd-has-cancel-icon":"")+" "+(t.hasTitle?"shepherd-has-title":"")},t.dataStepId,{role:"dialog"},{tabindex:"0"}],a={},c=0;c<l.length;c+=1)a=pt(a,l[c]);return{c:function(){e=xt("div"),s&&s.c(),n=It(),r.$$.fragment.c(),_t(e,a),i=Ct(e,"keydown",t.handleKeyDown)},m:function(i,l){yt(i,e,l),s&&s.m(e,null),bt(e,n),Vt(r,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?s||((s=Ee()).c(),s.m(e,n)):s&&(s.d(1),s=null);var i={};t.descriptionId&&(i.descriptionId=o.descriptionId),t.labelId&&(i.labelId=o.labelId),t.step&&(i.step=o.step),r.$set(i),_t(e,function(t,e){for(var n={},o={},i={$$scope:1},s=t.length;s--;){var r=t[s],l=e[s];if(l){for(var a in r)a in l||(o[a]=1);for(var c in l)i[c]||(n[c]=l[c],i[c]=1);t[s]=l}else for(var h in r)i[h]=1}for(var f in o)f in n||(n[f]=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.classes||t.hasCancelIcon||t.hasTitle)&&{class:o.classes+" shepherd-element "+(o.hasCancelIcon?"shepherd-has-cancel-icon":"")+" "+(o.hasTitle?"shepherd-has-title":"")},t.dataStepId&&o.dataStepId,{role:"dialog"},{tabindex:"0"}]))},i:function(t){o||(Nt(r.$$.fragment,t),o=!0)},o:function(t){Rt(r.$$.fragment,t),o=!1},d:function(n){n&&wt(e),s&&s.d(),qt(r),t.div_binding(null),i()}}}var Ce=9,$e=27,_e=37,Te=39;function Se(t,e,n){var o,i,s=e.classes,r=e.classPrefix,l=e.element,a=e.descriptionId,c=e.firstFocusableElement,h=e.focusableElements,f=e.labelId,p=e.lastFocusableElement,u=e.step,d=((o={})["data-"+r+"shepherd-step-id"]=u.id,o),g=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled,m=u.options&&u.options.title;i=function(){n("focusableElements",h=l.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n("firstFocusableElement",c=h[0]),n("lastFocusableElement",p=h[h.length-1])},St().$$.on_mount.push(i);return t.$set=function(t){"classes"in t&&n("classes",s=t.classes),"classPrefix"in t&&n("classPrefix",r=t.classPrefix),"element"in t&&n("element",l=t.element),"descriptionId"in t&&n("descriptionId",a=t.descriptionId),"firstFocusableElement"in t&&n("firstFocusableElement",c=t.firstFocusableElement),"focusableElements"in t&&n("focusableElements",h=t.focusableElements),"labelId"in t&&n("labelId",f=t.labelId),"lastFocusableElement"in t&&n("lastFocusableElement",p=t.lastFocusableElement),"step"in t&&n("step",u=t.step)},{classes:s,classPrefix:r,element:l,descriptionId:a,firstFocusableElement:c,focusableElements:h,labelId:f,lastFocusableElement:p,step:u,dataStepId:d,hasCancelIcon:g,hasTitle:m,getElement:function(){return l},handleKeyDown:function(t){var e=u.tour;switch(t.keyCode){case Ce:if(0===h.length){t.preventDefault();break}t.shiftKey?document.activeElement===c&&(t.preventDefault(),p.focus()):document.activeElement===p&&(t.preventDefault(),c.focus());break;case $e:e.options.exitOnEsc&&u.cancel();break;case _e:e.options.keyboardNavigation&&e.back();break;case Te:e.options.keyboardNavigation&&e.next()}},div_binding:function(t){At[t?"unshift":"push"]((function(){n("element",l=t)}))}}}var Pe=function(t){function n(e){var n;return Kt(a(n=t.call(this)||this),e,Se,Ie,vt,["classes","classPrefix","element","descriptionId","firstFocusableElement","focusableElements","labelId","lastFocusableElement","step","getElement"]),n}return o(n,t),e(n,[{key:"getElement",get:function(){return this.$$.ctx.getElement}}]),n}(Ut);var Me=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,s={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:o.prototype.scroll||a,scrollIntoView:o.prototype.scrollIntoView},r=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):s.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])?s.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");s.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}):s.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 s.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 h(t,e){return"Y"===e?t.clientHeight+l<t.scrollHeight:"X"===e?t.clientWidth+l<t.scrollWidth:void 0}function f(e,n){var o=t.getComputedStyle(e,null)["overflow"+n];return"auto"===o||"scroll"===o}function p(t){var e=h(t,"Y")&&f(t,"Y"),n=h(t,"X")&&f(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,s,l,a=(r()-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,s=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,o,s),o===e.x&&s===e.y||t.requestAnimationFrame(d.bind(t,e))}function g(n,o,i){var l,c,h,f,p=r();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,h=t.scrollY||t.pageYOffset,f=s.scroll):(l=n,c=n.scrollLeft,h=n.scrollTop,f=a),d({scrollable:l,method:f,startTime:p,startX:c,startY:h,x:o,y:i})}}}}));Me.polyfill;Me.polyfill();var Ae=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?lt(o.tour.options.classPrefix):"",o.styles=e.styles,f(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.options.classes||"",e=this.id+"-description",n=this.id+"-label";return this.shepherdElementComponent=new Pe({target:document.body,props:{classPrefix:this.classPrefix,classes:t,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()},n._scrollTo=function(t){var e=at(this).element;u(this.options.scrollToHandler)?this.options.scrollToHandler(e):p(e)&&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(" ")),s=new Set(i);return Array.from(s).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),ct(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}(h);function Le(t){var e,n,o,i,s;return{c:function(){e=Ot("svg"),$t(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"),$t(e,"class",i=(t.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container"),s=Ct(e,"touchmove",t._preventModalOverlayTouch)},m:function(o,i){yt(o,e,i),bt(e,n),t.svg_binding(e)},p:function(t,s){t.openingProperties&&o!==(o="M "+s.openingProperties.x+" "+s.openingProperties.y+" H "+(s.openingProperties.width+s.openingProperties.x)+" V "+(s.openingProperties.height+s.openingProperties.y)+" H "+s.openingProperties.x+" L "+s.openingProperties.x+" 0 Z M 0 0 H "+s.window.innerWidth+" V "+s.window.innerHeight+" H 0 L 0 0 Z")&&$t(n,"d",o),t.modalIsVisible&&i!==(i=(s.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&$t(e,"class",i)},i:ft,o:ft,d:function(n){n&&wt(e),t.svg_binding(null),s()}}}function Fe(t,e,n){var o=e.element,i=e.openingProperties,s=(ht(),!1),r=void 0;l();function l(){n("openingProperties",i={height:0,x:0,y:0,width:0})}function a(){n("modalIsVisible",s=!1),p()}function c(t,e,o){if(void 0===o&&(o=0),t.getBoundingClientRect){var s=function(t,e){var n=t.getBoundingClientRect(),o=n.y||n.top,i=n.bottom||o+n.height;if(e){var s=e.getBoundingClientRect(),r=s.y||s.top,l=s.bottom||r+s.height;o=Math.max(o,r),i=Math.min(i,l)}return{y:o,height:Math.max(i-o,0)}}(t,e),r=s.y,l=s.height,a=t.getBoundingClientRect(),c=a.x,h=a.width,f=a.left;n("openingProperties",i={x:(c||f)-o,y:r-o,width:h+2*o,height:l+2*o})}}function h(){n("modalIsVisible",s=!0)}var f=function(t){t.preventDefault()};function p(){r&&(cancelAnimationFrame(r),r=void 0),window.removeEventListener("touchmove",f,{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:s,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(){r=void 0,c(t.target,n,e),r=requestAnimationFrame(o)}(),window.addEventListener("touchmove",f,{passive:!1})}else l()}(t),h()):a()},show:h,_preventModalOverlayTouch:function(t){t.stopPropagation()},window:window,svg_binding:function(t){At[t?"unshift":"push"]((function(){n("element",o=t)}))}}}var ke=function(t){function n(e){var n;return Kt(a(n=t.call(this)||this),e,Fe,Le,vt,["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}(Ut),He=new h,Be=function(t){function e(e){var n;void 0===e&&(e={}),f(a(n=t.call(this,e)||this));n.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),n.classPrefix=lt(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),He.trigger(e,t)}))})),n.modal=new ke({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 Ae?n.tour=this:n=new Ae(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 He.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}),He.activeTour=null,this.trigger("inactive",{tour:this}),this.modal.hide(),p(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},n._setupActiveTour=function(){this.trigger("active",{tour:this}),He.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}(h);return Object.assign(He,{Tour:Be,Step:Ae}),He})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Shepherd=e()}(this,(function(){"use strict";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}),A={},L=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=L;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),L=t);var e=t.getAttribute("data-tether-id");y(A[e])&&(A[e]=k(t),$((function(){delete A[e]})));return A[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&&(L&&document.body.removeChild(L),L=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){st=t}function St(){if(!st)throw new Error("Function called outside component initialization");return st}function Mt(t){St().$$.after_update.push(t)}var At=[],Lt=[],Ft=[],kt=[],Ht=Promise.resolve(),Bt=!1;function Yt(t){Ft.push(t)}function jt(){var t=new Set;do{for(;At.length;){var e=At.shift();Pt(e),Wt(e.$$)}for(;Lt.length;)Lt.pop()();for(var n=0;n<Ft.length;n+=1){var o=Ft[n];t.has(o)||(o(),t.add(o))}Ft.length=0}while(At.length);for(;kt.length;)kt.pop()();Bt=!1}function Wt(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(Yt))}var Xt,Dt=new Set;function zt(){Xt={r:0,c:[],p:Xt}}function Nt(){Xt.r||mt(Xt.c),Xt=Xt.p}function Rt(t,e){t&&t.i&&(Dt.delete(t),t.i(e))}function Vt(t,e,n,o){if(t&&t.o){if(Dt.has(t))return;Dt.add(t),Xt.c.push((function(){Dt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function qt(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),Yt((function(){var e=r.map(dt).filter(vt);s?s.push.apply(s,e):mt(e),t.$$.on_mount=[]})),l.forEach(Yt)}function Zt(t,e){t.$$.fragment&&(mt(t.$$.on_destroy),t.$$.fragment.d(e),t.$$.on_destroy=t.$$.fragment=null,t.$$.ctx={})}function Kt(t,e){t.$$.dirty||(At.push(t),Bt||(Bt=!0,Ht.then(jt)),t.$$.dirty=gt()),t.$$.dirty[e]=!0}function Ut(t,e,n,o,i,r){var s=st;Pt(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&&Kt(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&&Rt(t.$$.fragment),qt(t,e.target,e.anchor),jt()),Pt(s)}"undefined"!=typeof HTMLElement&&l(HTMLElement);var Gt=function(){function t(){}var e=t.prototype;return e.$destroy=function(){Zt(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 Jt(t){var e,n,o;return{c:function(){e=Et("button"),n=It(t.text),Tt(e,"aria-label",t.label?t.label:null),Tt(e,"class",(t.classes||"")+" shepherd-button "+(t.secondary?"shepherd-button-secondary":"")),e.disabled=t.disabled,Tt(e,"tabindex","0"),o=_t(e,"click",t.action?t.action.bind(t.step.tour):null)},m:function(t,o){wt(t,e,o),yt(e,n)},p:function(t,n){t.disabled&&(e.disabled=n.disabled)},i:pt,o:pt,d:function(t){t&&xt(e),o()}}}function Qt(t,e,n){var o=e.config,i=e.step,r=o,s=r.action,l=r.classes,a=r.secondary,c=r.text,f=r.label,h=!1;return Mt((function(){o.disabled&&(n("disabled",h=o.disabled),u(h)&&n("disabled",h=h.call(i)))})),t.$set=function(t){"config"in t&&n("config",o=t.config),"step"in t&&n("step",i=t.step)},{config:o,step:i,action:s,classes:l,secondary:a,text:c,label:f,disabled:h}}var te=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,Qt,Jt,bt,["config","step"]),n}return o(e,t),e}(Gt);function ee(t,e,n){var o=Object.create(t);return o.config=e[n],o}function ne(t){for(var e,n,o=t.buttons,i=[],r=0;r<o.length;r+=1)i[r]=oe(ee(t,o,r));var s=function(t){return Vt(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=ee(n,o,r);i[r]?(i[r].p(t,l),Rt(i[r],1)):(i[r]=oe(l),i[r].c(),Rt(i[r],1),i[r].m(e.parentNode,e))}for(zt(),r=o.length;r<i.length;r+=1)s(r);Nt()}},i:function(t){if(!n){for(var e=0;e<o.length;e+=1)Rt(i[e]);n=!0}},o:function(t){i=i.filter(Boolean);for(var e=0;e<i.length;e+=1)Vt(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 oe(t){var e,n=new te({props:{config:t.config,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){qt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Rt(n.$$.fragment,t),e=!0)},o:function(t){Vt(n.$$.fragment,t),e=!1},d:function(t){Zt(n,t)}}}function ie(t){var e,n,o=t.buttons&&ne(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,e){e.buttons&&o.p(t,e)},i:function(t){n||(Rt(o),n=!0)},o:function(t){Vt(o),n=!1},d:function(t){t&&xt(e),o&&o.d()}}}function re(t,e,n){var o=e.step,i=o.options.buttons;return t.$set=function(t){"step"in t&&n("step",o=t.step)},{step:o,buttons:i}}var se=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,re,ie,bt,["step"]),n}return o(e,t),e}(Gt);function le(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 ae(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 ce=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,ae,le,bt,["cancelIcon","step"]),n}return o(e,t),e}(Gt);function fe(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 he(t,e,n){var o=e.labelId,i=e.element,r=e.title;return Mt((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){Lt[t?"unshift":"push"]((function(){n("element",i=t)}))}}}var pe=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,he,fe,bt,["labelId","element","title"]),n}return o(e,t),e}(Gt);function ue(t){var e,n,o,i=t.title&&function(t){var e,n=new pe({props:{labelId:t.labelId,title:t.title}});return{c:function(){n.$$.fragment.c()},m:function(t,o){qt(n,t,o),e=!0},p:function(t,e){var o={};t.labelId&&(o.labelId=e.labelId),n.$set(o)},i:function(t){e||(Rt(n.$$.fragment,t),e=!0)},o:function(t){Vt(n.$$.fragment,t),e=!1},d:function(t){Zt(n,t)}}}(t),r=t.cancelIcon&&t.cancelIcon.enabled&&function(t){var e,n=new ce({props:{cancelIcon:t.cancelIcon,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){qt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Rt(n.$$.fragment,t),e=!0)},o:function(t){Vt(n.$$.fragment,t),e=!1},d:function(t){Zt(n,t)}}}(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,e){e.title&&i.p(t,e),e.cancelIcon&&e.cancelIcon.enabled&&r.p(t,e)},i:function(t){o||(Rt(i),Rt(r),o=!0)},o:function(t){Vt(i),Vt(r),o=!1},d:function(t){t&&xt(e),i&&i.d(),r&&r.d()}}}function de(t,e,n){var o=e.labelId,i=e.step,r=i.options,s=r.cancelIcon,l=r.title;return t.$set=function(t){"labelId"in t&&n("labelId",o=t.labelId),"step"in t&&n("step",i=t.step)},{labelId:o,step:i,cancelIcon:s,title:l}}var ge=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,de,ue,bt,["labelId","step"]),n}return o(e,t),e}(Gt);function me(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 ve(t,e,n){var o=e.descriptionId,i=e.element,r=e.step;return Mt((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){Lt[t?"unshift":"push"]((function(){n("element",i=t)}))}}}var be=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,ve,me,bt,["descriptionId","element","step"]),n}return o(e,t),e}(Gt);function ye(t){var e,n=new be({props:{descriptionId:t.descriptionId,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){qt(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||(Rt(n.$$.fragment,t),e=!0)},o:function(t){Vt(n.$$.fragment,t),e=!1},d:function(t){Zt(n,t)}}}function we(t){var e,n=new se({props:{step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){qt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Rt(n.$$.fragment,t),e=!0)},o:function(t){Vt(n.$$.fragment,t),e=!1},d:function(t){Zt(n,t)}}}function xe(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 ge({props:{labelId:t.labelId,step:t.step}}),a=r&&ye(t),c=s&&we(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),qt(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),Rt(a,1)):((a=ye(n)).c(),Rt(a,1),a.m(e,o)):a&&(zt(),Vt(a,1,1,(function(){a=null})),Nt()),t.step&&(s=Array.isArray(n.step.options.buttons)&&n.step.options.buttons.length),s?c?(c.p(t,n),Rt(c,1)):((c=we(n)).c(),Rt(c,1),c.m(e,null)):c&&(zt(),Vt(c,1,1,(function(){c=null})),Nt())},i:function(t){i||(Rt(l.$$.fragment,t),Rt(a),Rt(c),i=!0)},o:function(t){Vt(l.$$.fragment,t),Vt(a),Vt(c),i=!1},d:function(t){t&&xt(e),Zt(l),a&&a.d(),c&&c.d()}}}function Ee(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 Oe=function(t){function e(e){var n;return Ut(a(n=t.call(this)||this),e,Ee,xe,bt,["descriptionId","labelId","step"]),n}return o(e,t),e}(Gt);function Ie(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 $e(t){for(var e,n,o,i,r=t.step.options.arrow&&t.step.options.attachTo&&t.step.options.attachTo.element&&Ie(),s=new Oe({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},{class:t.classes+" shepherd-element "+(t.hasCancelIcon?"shepherd-has-cancel-icon":"")+" "+(t.hasTitle?"shepherd-has-title":"")},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),i=_t(e,"keydown",t.handleKeyDown)},m:function(i,l){wt(i,e,l),r&&r.m(e,null),yt(e,n),qt(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=Ie()).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.classes||t.hasCancelIcon||t.hasTitle)&&{class:o.classes+" shepherd-element "+(o.hasCancelIcon?"shepherd-has-cancel-icon":"")+" "+(o.hasTitle?"shepherd-has-title":"")},t.dataStepId&&o.dataStepId,{role:"dialog"},{tabindex:"0"}]))},i:function(t){o||(Rt(s.$$.fragment,t),o=!0)},o:function(t){Vt(s.$$.fragment,t),o=!1},d:function(n){n&&xt(e),r&&r.d(),Zt(s),t.div_binding(null),i()}}}var _e=9,Te=27,Ce=37,Pe=39;function Se(t,e,n){var o,i,r=e.classes,s=e.classPrefix,l=e.element,a=e.descriptionId,c=e.firstFocusableElement,f=e.focusableElements,h=e.labelId,p=e.lastFocusableElement,u=e.step,d=((o={})["data-"+s+"shepherd-step-id"]=u.id,o),g=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled,m=u.options&&u.options.title;i=function(){n("focusableElements",f=l.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n("firstFocusableElement",c=f[0]),n("lastFocusableElement",p=f[f.length-1])},St().$$.on_mount.push(i);return t.$set=function(t){"classes"in t&&n("classes",r=t.classes),"classPrefix"in t&&n("classPrefix",s=t.classPrefix),"element"in t&&n("element",l=t.element),"descriptionId"in t&&n("descriptionId",a=t.descriptionId),"firstFocusableElement"in t&&n("firstFocusableElement",c=t.firstFocusableElement),"focusableElements"in t&&n("focusableElements",f=t.focusableElements),"labelId"in t&&n("labelId",h=t.labelId),"lastFocusableElement"in t&&n("lastFocusableElement",p=t.lastFocusableElement),"step"in t&&n("step",u=t.step)},{classes:r,classPrefix:s,element:l,descriptionId:a,firstFocusableElement:c,focusableElements:f,labelId:h,lastFocusableElement:p,step:u,dataStepId:d,hasCancelIcon:g,hasTitle:m,getElement:function(){return l},handleKeyDown:function(t){var e=u.tour;switch(t.keyCode){case _e:if(0===f.length){t.preventDefault();break}t.shiftKey?document.activeElement===c&&(t.preventDefault(),p.focus()):document.activeElement===p&&(t.preventDefault(),c.focus());break;case Te:e.options.exitOnEsc&&u.cancel();break;case Ce:e.options.keyboardNavigation&&e.back();break;case Pe:e.options.keyboardNavigation&&e.next()}},div_binding:function(t){Lt[t?"unshift":"push"]((function(){n("element",l=t)}))}}}var Me=function(t){function n(e){var n;return Ut(a(n=t.call(this)||this),e,Se,$e,bt,["classes","classPrefix","element","descriptionId","firstFocusableElement","focusableElements","labelId","lastFocusableElement","step","getElement"]),n}return o(n,t),e(n,[{key:"getElement",get:function(){return this.$$.ctx.getElement}}]),n}(Gt);var Ae=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})}}}}));Ae.polyfill;Ae.polyfill();var Le=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.options.classes||"",e=this.id+"-description",n=this.id+"-label";return this.shepherdElementComponent=new Me({target:document.body,props:{classPrefix:this.classPrefix,classes:t,descriptionId:e,labelId:n,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)&&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 Fe(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 ke(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){Lt[t?"unshift":"push"]((function(){n("element",o=t)}))}}}var He=function(t){function n(e){var n;return Ut(a(n=t.call(this)||this),e,ke,Fe,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}(Gt),Be=new f,Ye=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),Be.trigger(e,t)}))})),n.modal=new He({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 Le?n.tour=this:n=new Le(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 Be.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}),Be.activeTour=null,this.trigger("inactive",{tour:this}),this.modal.hide(),p(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},n._setupActiveTour=function(){this.trigger("active",{tour:this}),Be.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);return Object.assign(Be,{Tour:Ye,Step:Le}),Be})); | ||
//# sourceMappingURL=shepherd.min.js.map |
{ | ||
"name": "shepherd.js", | ||
"version": "6.0.0-beta.2", | ||
"version": "6.0.0", | ||
"repository": { | ||
@@ -52,3 +52,3 @@ "type": "git", | ||
"smoothscroll-polyfill": "^0.4.4", | ||
"tether": "^2.0.0-beta.3" | ||
"tether": "^2.0.0-beta.4" | ||
}, | ||
@@ -58,5 +58,5 @@ "devDependencies": { | ||
"@babel/preset-env": "^7.6.0", | ||
"@testing-library/jest-dom": "^4.1.0", | ||
"@testing-library/jest-dom": "^4.2.0", | ||
"@testing-library/svelte": "^1.8.0", | ||
"autoprefixer": "^9.6.1", | ||
"autoprefixer": "^9.7.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
@@ -71,4 +71,4 @@ "babel-jest": "^24.9.0", | ||
"del": "^5.1.0", | ||
"eslint": "^6.3.0", | ||
"eslint-plugin-jest": "^22.17.0", | ||
"eslint": "^6.6.0", | ||
"eslint-plugin-jest": "^23.0.1", | ||
"eslint-plugin-ship-shape": "^0.7.1", | ||
@@ -85,6 +85,6 @@ "eslint-plugin-svelte3": "^2.7.3", | ||
"mutationobserver-shim": "^0.3.3", | ||
"postcss": "^7.0.18", | ||
"postcss": "^7.0.21", | ||
"replace": "^1.1.1", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^1.21.2", | ||
"rollup": "^1.26.0", | ||
"rollup-plugin-analyzer": "^3.1.2", | ||
@@ -108,3 +108,3 @@ "rollup-plugin-babel": "^4.3.3", | ||
"svelte": "^3.12.0", | ||
"svelte-preprocess": "^3.1.0", | ||
"svelte-preprocess": "^3.2.0", | ||
"tailwindcss": "^1.1.2" | ||
@@ -111,0 +111,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1815986
53
11306
1
Updatedtether@^2.0.0-beta.4