shepherdjs_rails 5.0.1.1 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3881b1f65cc5fa3f43d51c864e94161c18f4c895e991f8efc2bf74c92904bbcf
4
- data.tar.gz: 172cb7a17f226163160bce3c12b5d923bf2ff98837557c4687059bcc76b17d66
3
+ metadata.gz: 8da9e0d06747ac8abcee38cb9436c7a45bd644baa8a556721e3564d62683a76a
4
+ data.tar.gz: 81e63d0565da657bd59c380524de7a5d99988aaca9643be0010682f4b9f46a01
5
5
  SHA512:
6
- metadata.gz: 6d45ac33e150f2b528e86f7d414180b7d8d56d5e4473d8a80f4607895441a978d1c3fbd7ce8a2cecccf90bab510591d5b33a905438493c9fcad881e169b3a95f
7
- data.tar.gz: cd245b7cccb4e823ae35208b051e36f34103252db14b9a38d86c1c98cd23460789087ec85e821dcf0ce4b9cccb3865c7fd5fd64cc9dbdd84baadf7e86078da05
6
+ metadata.gz: ab8ed045681625c39eaa5e62ce9ac645a5534ff727912ff8efbc9c145a1280a00b825b4fc786feffb52fae53a9483835e5275b17510c64333adbf2891a1d24e3
7
+ data.tar.gz: d8f4458ffdea9f29bb3eb67dd075f84a3795c4e6abf714913cad97688f1b16e4106c2293242b424dfd32b68349b3dad8edf8f99930d77b966e3c538424d1083d
@@ -1,3 +1,3 @@
1
1
  module ShepherdjsRails
2
- VERSION = "5.0.1.1"
2
+ VERSION = "6.0.0"
3
3
  end
@@ -1,2 +1,2 @@
1
- /*! shepherd.js 5.0.1 */
2
- !function(){function e(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"object"===("undefined"==typeof exports?"undefined":t(exports))&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).Shepherd=n()}(void 0,function(){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t-1},P=s(function(e){(e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],f(e)?(n=k.call(e,"c"),r=k.call(e,"e"),o=k.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?T(O(i),a):a}).gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],f(t)?b(t)?f(n)?b(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,f(e)?(r=k.call(e,"c"),o=k.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?T(O(i),a):a}}),L=function(e){if(!(n=e)||!("symbol"===t(n)||n.constructor&&"Symbol"===n.constructor.name&&"Symbol"===n[n.constructor.toStringTag]))throw new TypeError(e+" is not a symbol");var n;return e},A=Object.create,I=Object.defineProperties,B=Object.defineProperty,M=Object.prototype,N=A(null);if("function"==typeof Symbol){l=Symbol;try{String(l()),u=!0}catch(e){}}var F,j=(F=A(null),function(e){for(var t,n,r=0;F[e+(r||"")];)++r;return F[e+=r||""]=!0,B(M,t="@@"+e,P.gs(null,function(e){n||(n=!0,B(this,t,P(e)),n=!1)})),t});c=function(t){if(e(this,c))throw new TypeError("Symbol is not a constructor");return p(t)};var D=p=function t(n){var r;if(e(this,t))throw new TypeError("Symbol is not a constructor");return u?l(n):(r=A(c.prototype),n=void 0===n?"":String(n),I(r,{__description__:P("",n),__name__:P("",j(n))}))};I(p,{for:P(function(e){return N[e]?N[e]:N[e]=p(String(e))}),keyFor:P(function(e){var t;for(t in L(e),N)if(N[t]===e)return t}),hasInstance:P("",l&&l.hasInstance||p("hasInstance")),isConcatSpreadable:P("",l&&l.isConcatSpreadable||p("isConcatSpreadable")),iterator:P("",l&&l.iterator||p("iterator")),match:P("",l&&l.match||p("match")),replace:P("",l&&l.replace||p("replace")),search:P("",l&&l.search||p("search")),species:P("",l&&l.species||p("species")),split:P("",l&&l.split||p("split")),toPrimitive:P("",l&&l.toPrimitive||p("toPrimitive")),toStringTag:P("",l&&l.toStringTag||p("toStringTag")),unscopables:P("",l&&l.unscopables||p("unscopables"))}),I(c.prototype,{constructor:P(p),toString:P("",function(){return this.__name__})}),I(p.prototype,{toString:P(function(){return"Symbol ("+L(this).__description__+")"}),valueOf:P(function(){return L(this)})}),B(p.prototype,p.toPrimitive,P("",function(){var e=L(this);return"symbol"===t(e)?e:e.toString()})),B(p.prototype,p.toStringTag,P("c","Symbol")),B(c.prototype,p.toStringTag,P("c",p.prototype[p.toStringTag])),B(c.prototype,p.toPrimitive,P("c",p.prototype[p.toPrimitive])),function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(e){return!1}return!!i[t(Symbol.iterator)]&&!!i[t(Symbol.toPrimitive)]&&!!i[t(Symbol.toStringTag)]}()||Object.defineProperty(a,"Symbol",{value:D,configurable:!0,enumerable:!1,writable:!0});var H=function(e){return null!=e&&"object"===t(e)&&!1===Array.isArray(e)},R=function(e,t,n){if(H(n)||(n={default:n}),!z(e))return void 0!==n.default?n.default:e;"number"==typeof t&&(t=String(t));var r=Array.isArray(t),o="string"==typeof t,i=n.separator||".",a=n.joinChar||("string"==typeof i?i:".");if(!o&&!r)return e;if(o&&t in e)return V(t,e,n)?e[t]:n.default;var s=r?t:function(e,t,n){if("function"==typeof n.split)return n.split(e);return e.split(t)}(t,i,n),l=s.length,p=0;do{var c=s[p];for("number"==typeof c&&(c=String(c));c&&"\\"===c.slice(-1);)c=W([c.slice(0,-1),s[++p]||""],a,n);if(c in e){if(!V(c,e,n))return n.default;e=e[c]}else{for(var u=!1,f=p+1;f2;)Y.push(arguments[i]);for(t&&null!=t.children&&(Y.length||Y.push(t.children),delete t.children);Y.length;)if((r=Y.pop())&&void 0!==r.pop)for(i=r.length;i--;)Y.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?a[a.length-1]+=r:a===X?a=[r]:a.push(r),n=o;var s=new U;return s.nodeName=e,s.children=a,s.attributes=null==t?void 0:t,s.key=null==t?void 0:t.key,s}function K(e,t){for(var n in t)e[n]=t[n];return e}function Z(e,t){e&&("function"==typeof e?e(t):e.current=t)}var G="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;var J=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,Q=[];function ee(e){!e._dirty&&(e._dirty=!0)&&1==Q.push(e)&&G(te)}function te(){for(var e;e=Q.pop();)e._dirty&&we(e)}function ne(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function re(e){var t=K({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function oe(e){var t=e.parentNode;t&&t.removeChild(e)}function ie(e,n,r,o,i){if("className"===n&&(n="class"),"key"===n);else if("ref"===n)Z(r,null),Z(o,e);else if("class"!==n||i)if("style"===n){if(o&&"string"!=typeof o&&"string"!=typeof r||(e.style.cssText=o||""),o&&"object"===t(o)){if("string"!=typeof r)for(var a in r)a in o||(e.style[a]="");for(var a in o)e.style[a]="number"==typeof o[a]&&!1===J.test(a)?o[a]+"px":o[a]}}else if("dangerouslySetInnerHTML"===n)o&&(e.innerHTML=o.__html||"");else if("o"==n[0]&&"n"==n[1]){var s=n!==(n=n.replace(/Capture$/,""));n=n.toLowerCase().substring(2),o?r||e.addEventListener(n,ae,s):e.removeEventListener(n,ae,s),(e._listeners||(e._listeners={}))[n]=o}else if("list"!==n&&"type"!==n&&!i&&n in e){try{e[n]=null==o?"":o}catch(e){}null!=o&&!1!==o||"spellcheck"==n||e.removeAttribute(n)}else{var l=i&&n!==(n=n.replace(/^xlink:?/,""));null==o||!1===o?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase()):e.removeAttribute(n):"function"!=typeof o&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase(),o):e.setAttribute(n,o))}else e.className=o||""}function ae(e){return this._listeners[e.type](e)}var se=[],le=0,pe=!1,ce=!1;function ue(){for(var e;e=se.shift();)e.componentDidMount&&e.componentDidMount()}function fe(e,t,n,r,o,i){le++||(pe=null!=o&&void 0!==o.ownerSVGElement,ce=null!=e&&!("__preactattr_"in e));var a=de(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--le||(ce=!1,i||ue()),a}function de(e,t,n,r,o){var i=e,a=pe;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),he(e,!0))),i.__preactattr_=!0,i;var s,l,p=t.nodeName;if("function"==typeof p)return function(e,t,n,r){var o=e&&e._component,i=o,a=e,s=o&&e._componentConstructor===t.nodeName,l=s,p=re(t);for(;o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;o&&l&&(!r||o._component)?(ye(o,p,3,n,r),e=o.base):(i&&!s&&(xe(i),e=a=null),o=be(t.nodeName,p,n),e&&!o.nextBase&&(o.nextBase=e,a=null),ye(o,p,1,n,r),e=o.base,a&&e!==a&&(a._component=null,he(a,!1)));return e}(e,t,n,r);if(pe="svg"===p||"foreignObject"!==p&&pe,p=String(p),(!e||!ne(e,p))&&(s=p,(l=pe?document.createElementNS("http://www.w3.org/2000/svg",s):document.createElement(s)).normalizedNodeName=s,i=l,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),he(e,!0)}var c=i.firstChild,u=i.__preactattr_,f=t.children;if(null==u){u=i.__preactattr_={};for(var d=i.attributes,h=d.length;h--;)u[d[h].name]=d[h].value}return!ce&&f&&1===f.length&&"string"==typeof f[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=f[0]&&(c.nodeValue=f[0]):(f&&f.length||null!=c)&&function(e,t,n,r,o){var i,a,s,l,p,c=e.childNodes,u=[],f={},d=0,h=0,m=c.length,v=0,b=t?t.length:0;if(0!==m)for(var g=0;g2?[].slice.call(arguments,2):e.children)},createRef:function(){return{}},Component:Te,render:function(e,t,n){return fe(n,e,{},!1,t,!1)},rerender:te,options:q};function Ee(t){return e(t,HTMLElement)}function Oe(e){return"function"==typeof e}function _e(e){return"string"==typeof e}function Ce(e){return void 0===e}var ke=function(){function e(){}var t=e.prototype;return t.on=function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];Ce(this.bindings)&&(this.bindings={}),Ce(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})},t.once=function(e,t,n){this.on(e,t,n,!0)},t.off=function(e,t){var n=this;if(Ce(this.bindings)||Ce(this.bindings[e]))return!1;Ce(t)?delete this.bindings[e]:this.bindings[e].forEach(function(r,o){r.handler===t&&n.bindings[e].splice(o,1)})},t.trigger=function(e){var t=this;if(!Ce(this.bindings)&&this.bindings[e]){var n=Array.prototype.slice.call(arguments,1);this.bindings[e].forEach(function(r,o){var i=r.ctx,a=r.handler,s=r.once,l=i||t;a.apply(l,n),s&&t.bindings[e].splice(o,1)})}},e}();function Pe(e){for(var t=Object.getOwnPropertyNames(e.constructor.prototype),n=0;n',Ye="tippy-iOS",Xe="tippy-popper",$e="tippy-tooltip",Ke="tippy-content",Ze="tippy-backdrop",Ge="tippy-arrow",Je="tippy-svg-arrow",Qe="."+Xe,et="."+$e,tt="."+Ke,nt="."+Ze,rt="."+Ge,ot="."+Je,it={isTouch:!1},at=0;function st(){it.isTouch||(it.isTouch=!0,Re&&document.body.classList.add(Ye),window.performance&&document.addEventListener("mousemove",lt))}function lt(){var e=performance.now();e-at<20&&(it.isTouch=!1,document.removeEventListener("mousemove",lt),Re||document.body.classList.remove(Ye)),at=e}function pt(){var e=document.activeElement,t=e._tippy;e&&e.blur&&t&&!t.state.isVisible&&e.blur()}var ct=Object.keys(We);function ut(e,t){return{}.hasOwnProperty.call(e,t)}function ft(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function dt(e,t){return e&&e.modifiers&&e.modifiers[t]}function ht(t){return e(t,Element)}function mt(e,t){return"function"==typeof e?e.apply(null,t):e}function vt(e,t){e.filter(function(e){return"flip"===e.name})[0].enabled=t}function bt(){return document.createElement("div")}function gt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function yt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function wt(e,t){var n=Ne({},t,{content:mt(t.content,[e])},t.ignoreAttributes?{}:function(e){return ct.reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})}(e));return n.animateFill&&(n.arrow=!1),(n.arrow||He)&&(n.animateFill=!1),n}function xt(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)};var n}function Tt(e,t,n){e&&e!==t&&e.apply(null,n)}function St(e){return[].slice.call(e)}function Et(e,t){return e.indexOf(t)>-1}function Ot(e,t){e.innerHTML=ht(t)?t.innerHTML:t}function _t(e,t){if(ht(t.content))Ot(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function Ct(e){return{tooltip:e.querySelector(et),backdrop:e.querySelector(nt),content:e.querySelector(tt),arrow:e.querySelector(rt)||e.querySelector(ot)}}function kt(e){e.setAttribute("data-inertia","")}function Pt(e){var t=bt();return!0===e?t.className=Ge:(t.className=Je,ht(e)?t.appendChild(e):Ot(t,"round"===e?qe:e)),t}function Lt(e){var t=bt();return t.className=Ze,t.setAttribute("data-state",e?"visible":"hidden"),t}function At(e){e.setAttribute("data-interactive","")}function It(e,t,n){var r=He&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](r,n)}function Bt(e){return e.split("-")[0]}function Mt(e,t,n){n.split(" ").forEach(function(n){n&&e.classList[t](n+"-theme")})}function Nt(e,t){var n=bt();n.className=Xe,n.style.position="absolute",n.style.top="0",n.style.left="0";var r=bt();r.className=$e,r.id="tippy-"+e,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1"),Mt(r,"add",t.theme);var o=bt();return o.className=Ke,o.setAttribute("data-state","hidden"),t.interactive&&At(r),t.arrow&&(r.setAttribute("data-arrow",""),r.appendChild(Pt(t.arrow))),t.animateFill&&(r.appendChild(Lt(!1)),r.setAttribute("data-animatefill","")),t.inertia&&kt(r),_t(o,t),r.appendChild(o),n.appendChild(r),Ft(n,t,t,!1),n}function Ft(e,t,n,r){var o=Ct(e),i=o.tooltip,a=o.content,s=o.backdrop,l=o.arrow;e.style.zIndex=""+n.zIndex,i.setAttribute("data-animation",n.animation),i.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),t.content!==n.content&&_t(a,n),!t.animateFill&&n.animateFill?(i.appendChild(Lt(r)),i.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(i.removeChild(s),i.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(i.appendChild(Pt(n.arrow)),i.setAttribute("data-arrow","")):t.arrow&&!n.arrow?(i.removeChild(l),i.removeAttribute("data-arrow")):t.arrow!==n.arrow&&(i.removeChild(l),i.appendChild(Pt(n.arrow))),!t.interactive&&n.interactive?At(i):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(i),!t.inertia&&n.inertia?kt(i):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(i),t.theme!==n.theme&&(Mt(i,"remove",t.theme),Mt(i,"add",n.theme))}for(var jt="undefined"!=typeof window&&"undefined"!=typeof document,Dt=["Edge","Trident","Firefox"],Ht=0,Rt=0;Rt=0){Ht=1;break}var Wt=jt&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ht))}};function Vt(e){return e&&"[object Function]"==={}.toString.call(e)}function zt(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ut(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function qt(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=zt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:qt(Ut(e))}var Yt=jt&&!(!window.MSInputMethodContext||!document.documentMode),Xt=jt&&/MSIE 10/.test(navigator.userAgent);function $t(e){return 11===e?Yt:10===e?Xt:Yt||Xt}function Kt(e){if(!e)return document.documentElement;for(var t=$t(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===zt(n,"position")?Kt(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Zt(e){return null!==e.parentNode?Zt(e.parentNode):e}function Gt(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&Kt(a.firstElementChild)!==a?Kt(l):l;var p=Zt(e);return p.host?Gt(p.host,t):Gt(e,Zt(t).host)}function Jt(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function Qt(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function en(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],$t(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function tn(e){var t=e.body,n=e.documentElement,r=$t(10)&&getComputedStyle(n);return{height:en("Height",t,n,r),width:en("Width",t,n,r)}}var nn=function(t,n){if(!e(t,n))throw new TypeError("Cannot call a class as a function")},rn=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=$t(10),o="HTML"===t.nodeName,i=ln(e),a=ln(t),s=qt(e),l=zt(t),p=parseFloat(l.borderTopWidth,10),c=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var u=sn({top:i.top-a.top-p,left:i.left-a.left-c,width:i.width,height:i.height});if(u.marginTop=0,u.marginLeft=0,!r&&o){var f=parseFloat(l.marginTop,10),d=parseFloat(l.marginLeft,10);u.top-=p-f,u.bottom-=p-f,u.left-=c-d,u.right-=c-d,u.marginTop=f,u.marginLeft=d}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Jt(t,"top"),o=Jt(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(u,t)),u}function cn(e){if(!e||!e.parentElement||$t())return document.documentElement;for(var t=e.parentElement;t&&"none"===zt(t,"transform");)t=t.parentElement;return t||document.documentElement}function un(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?cn(e):Gt(e,t);if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=pn(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Jt(n),s=t?0:Jt(n,"left");return sn({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=qt(Ut(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=pn(s,a,o);if("HTML"!==s.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===zt(t,"position"))return!0;var r=Ut(t);return!!r&&e(r)}(a))i=l;else{var p=tn(e.ownerDocument),c=p.height,u=p.width;i.top+=l.top-l.marginTop,i.bottom=c+l.top,i.left+=l.left-l.marginLeft,i.right=u+l.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function fn(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=un(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(e){return an({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),p=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=p.length>0?p[0].key:l[0].key,u=e.split("-")[1];return c+(u?"-"+u:"")}function dn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return pn(n,r?cn(t):Gt(t,n),r)}function hn(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function mn(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function vn(e,t,n){n=n.split("-")[0];var r=hn(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",p=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[p]:t[mn(s)],o}function bn(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function gn(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=bn(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Vt(n)&&(t.offsets.popper=sn(t.offsets.popper),t.offsets.reference=sn(t.offsets.reference),t=n(t,e))}),t}function yn(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function wn(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Pn.indexOf(e),r=Pn.slice(n+1).concat(Pn.slice(0,n));return t?r.reverse():r}var An={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function In(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(bn(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,p=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(p=p.map(function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return sn(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){En(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var Bn={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",p=s?"width":"height",c={start:on({},l,i[l]),end:on({},l,i[l]+i[p]-a[p])};e.offsets.popper=an({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=En(+n)?[+n,0]:In(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Kt(e.instance.popper);e.instance.reference===n&&(n=Kt(n));var r=wn("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=un(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var p=t.priority,c=e.offsets.popper,u={primary:function(e){var n=c[e];return c[e]l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),on({},n,r)}};return p.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=an({},c,u[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",p=a?"width":"height";return n[s]i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Cn(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),p=l?"height":"width",c=l?"Top":"Left",u=c.toLowerCase(),f=l?"left":"top",d=l?"bottom":"right",h=hn(r)[p];s[d]-ha[d]&&(e.offsets.popper[u]+=s[u]+h-a[d]),e.offsets.popper=sn(e.offsets.popper);var m=s[u]+s[p]/2-h/2,v=zt(e.instance.popper),b=parseFloat(v["margin"+c],10),g=parseFloat(v["border"+c+"Width"],10),y=m-e.offsets.popper[u]-b-g;return y=Math.max(Math.min(a[p]-h,y),0),e.arrowElement=r,e.offsets.arrow=(on(n={},u,Math.round(y)),on(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(yn(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=un(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=mn(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case An.FLIP:a=[r,o];break;case An.CLOCKWISE:a=Ln(r);break;case An.COUNTERCLOCKWISE:a=Ln(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=mn(r);var p=e.offsets.popper,c=e.offsets.reference,u=Math.floor,f="left"===r&&u(p.right)>u(c.left)||"right"===r&&u(p.left)u(c.top)||"bottom"===r&&u(p.top)u(n.right),m=u(p.top)u(n.bottom),b="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,g=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(g&&"start"===i&&d||g&&"end"===i&&h||!g&&"start"===i&&m||!g&&"end"===i&&v),w=!!t.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&d||!g&&"start"===i&&v||!g&&"end"===i&&m),x=y||w;(f||b||x)&&(e.flipped=!0,(f||b)&&(r=a[l+1]),x&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=an({},e.offsets.popper,vn(e.instance.popper,e.offsets.reference,e.placement)),e=gn(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=mn(t),e.offsets.popper=sn(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Cn(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=bn(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};nn(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Wt(this.update.bind(this)),this.options=an({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(an({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=an({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return an({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Vt(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return rn(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=dn(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=fn(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=vn(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=gn(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,yn(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[wn("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=Tn(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Sn.call(this)}}]),e}();Mn.Utils=("undefined"!=typeof window?window:global).PopperUtils,Mn.placements=kn,Mn.Defaults=Bn;var Nn=1,Fn=[];function jn(t,n){var r,o,i,a,s=wt(t,n);if(!s.multiple&&t._tippy)return null;var l,p,c=!1,u=!1,f=!1,d=[],h=xt(N,s.interactiveDebounce),m=Nn++,v=Nt(m,s),b=Ct(v),g=b.tooltip,y=b.content,w={currentPlacement:s.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},x={id:m,reference:t,popper:v,popperChildren:b,popperInstance:null,props:s,state:w,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(i),cancelAnimationFrame(a)},setProps:function(e){var n=Ne({},e);if(x.state.isDestroyed)return;B();var r=x.props,o=wt(t,Ne({},x.props,{},n,{ignoreAttributes:!0}));o.ignoreAttributes=ut(n,"ignoreAttributes")?n.ignoreAttributes||!1:r.ignoreAttributes,x.props=o,I(),_(),h=xt(N,o.interactiveDebounce),Ft(v,r,o,x.state.isVisible),x.popperChildren=Ct(v),x.popperInstance&&(Ve.some(function(e){return ut(n,e)&&n[e]!==r[e]})?(x.popperInstance.destroy(),H(),x.state.isVisible&&x.popperInstance.enableEventListeners()):x.popperInstance.update())},setContent:function(e){x.setProps({content:e})},show:function(e,n){void 0===e&&(e=ft(x.props.duration,0,We.duration));void 0===n&&(n=!0);var r=x.state.isVisible,o=x.state.isDestroyed,i=!x.state.isEnabled,a=it.isTouch&&!x.props.touch;if(r||o||i||a)return;if(O().hasAttribute("disabled"))return;if(!1===x.props.onShow(x))return;k(),v.style.visibility="visible",x.state.isVisible=!0;var s=E();gt(n?s.concat(v):s,0),l=function(){x.state.isVisible&&(x.popperInstance.update(),x.props.onMount(x),x.state.isMounted=!0,y.style.transitionDelay=x.popperChildren.backdrop?Math.round(e/12)+"ms":"",x.props.sticky&&function(){gt([v],De?0:x.props.updateDuration);var e=t.getBoundingClientRect();!function n(){var r=t.getBoundingClientRect();e.top===r.top&&e.right===r.right&&e.bottom===r.bottom&&e.left===r.left||x.popperInstance.scheduleUpdate();e=r;x.state.isMounted&&requestAnimationFrame(n)}()}(),gt([v],x.props.updateDuration),gt(s,e),yt(s,"visible"),function(e,t){L(e,t)}(e,function(){if(x.props.aria){var e=O(),t="aria-"+x.props.aria,n=e.getAttribute(t),r=n?n+" "+g.id:g.id;e.setAttribute(t,r)}x.props.onShown(x),x.state.isShown=!0}))},function(){u=!1;var e=x.props.appendTo,n="parent"===e?t.parentNode:mt(e,[t]);n.contains(v)||n.appendChild(v);x.popperInstance?(vt(x.popperInstance.modifiers,x.props.flip),x.popperInstance.enableEventListeners(),x.popperInstance.scheduleUpdate()):(H(),x.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=ft(x.props.duration,1,We.duration));var t=!x.state.isVisible&&!c,n=x.state.isDestroyed,r=!x.state.isEnabled&&!c;if(t||n||r)return;if(!1===x.props.onHide(x)&&!c)return;P(),v.style.visibility="hidden",x.state.isVisible=!1,x.state.isShown=!1;var o=E();gt(o,e),yt(o,"hidden"),function(e,t){L(e,function(){!x.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(e,function(){if(x.props.aria){var e=O(),t="aria-"+x.props.aria,n=e.getAttribute(t),r=n?n.replace(g.id,"").trim():null;r?e.setAttribute(t,r):e.removeAttribute(t)}x.popperInstance.disableEventListeners(),x.popperInstance.options.placement=x.props.placement,v.parentNode.removeChild(v),x.props.onHidden(x),x.state.isMounted=!1})},enable:function(){x.state.isEnabled=!0},disable:function(){x.hide(),x.state.isEnabled=!1},destroy:function(){if(x.state.isDestroyed)return;c=!0,x.hide(0),B(),delete t._tippy,x.popperInstance&&x.popperInstance.destroy();c=!1,x.state.isDestroyed=!0}};return t._tippy=x,v._tippy=x,I(),s.lazy||H(),s.showOnCreate&&W(),v.addEventListener("mouseenter",function(){x.props.interactive&&x.state.isVisible&&"mouseenter"===r&&x.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){x.props.interactive&&"mouseenter"===r&&document.addEventListener("mousemove",h)}),s.onCreate(x),x;function T(){var e=x.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===T()[0]}function E(){return[g,y,x.popperChildren.backdrop]}function O(){return x.props.triggerTarget||t}function _(){document.body.removeEventListener("mouseleave",V),document.removeEventListener("mousemove",h),Fn=Fn.filter(function(e){return e!==h})}function C(e){if(!x.props.interactive||!v.contains(e.target)){if(O().contains(e.target)){if(it.isTouch)return;if(x.state.isVisible&&Et(x.props.trigger,"click"))return}!0===x.props.hideOnClick&&(x.clearDelayTimeouts(),x.hide(),f=!0,setTimeout(function(){f=!1}),x.state.isMounted||P())}}function k(){document.addEventListener("mousedown",C,!0)}function P(){document.removeEventListener("mousedown",C,!0)}function L(e,t){function n(e){e.target===g&&(It(g,"remove",n),t())}if(0===e)return t();It(g,"remove",p),It(g,"add",n),p=n}function A(e,t,n){void 0===n&&(n=!1),O().addEventListener(e,t,n),d.push({eventType:e,handler:t,options:n})}function I(){S()&&(A("touchstart",M,ze),A("touchend",F,ze)),Et(x.props.trigger,"click")||A("click",function(){it.isTouch||!0!==x.props.hideOnClick||x.hide()}),x.props.trigger.trim().split(" ").forEach(function(e){if("manual"!==e)switch(A(e,M),e){case"mouseenter":A("mouseleave",F);break;case"focus":A(De?"focusout":"blur",j)}})}function B(){d.forEach(function(e){var t=e.eventType,n=e.handler,r=e.options;O().removeEventListener(t,n,r)}),d=[]}function M(t){if(!f&&x.state.isEnabled&&!D(t))if(x.state.isVisible||(r=t.type,e(t,MouseEvent)&&Fn.forEach(function(e){return e(t)})),"click"===t.type&&!1!==x.props.hideOnClick&&x.state.isVisible)V(t);else{var n=T(),i=n[0],a=n[1];it.isTouch&&"hold"===i&&a?o=setTimeout(function(){W(t)},a):W(t)}}function N(e){(function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null})(e.target,function(e){return e===t||e===v})||function(e,t,n,r){if(!e)return!0;var o=n.clientX,i=n.clientY,a=r.interactiveBorder,s=r.distance,l=t.top-i>("top"===e?a+s:a),p=i-t.bottom>("bottom"===e?a+s:a),c=t.left-o>("left"===e?a+s:a),u=o-t.right>("right"===e?a+s:a);return l||p||c||u}(Bt(x.state.currentPlacement),v.getBoundingClientRect(),e,x.props)&&(_(),V(e))}function F(e){if(!D(e))return x.props.interactive?(document.body.addEventListener("mouseleave",V),document.addEventListener("mousemove",h),void Fn.push(h)):void V(e)}function j(e){e.target===O()&&(x.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||V(e))}function D(e){var t="ontouchstart"in window,n=Et(e.type,"touch"),r=S();return t&&it.isTouch&&r&&!n||it.isTouch&&!r&&n}function H(){var e=x.props.popperOptions,n=x.popperChildren.arrow,r=dt(e,"preventOverflow");function o(e){x.state.currentPlacement=e.placement,x.props.flip&&!x.props.flipOnUpdate&&(e.flipped&&(x.popperInstance.options.placement=e.placement),vt(x.popperInstance.modifiers,!1)),g.setAttribute("data-placement",e.placement),!1!==e.attributes["x-out-of-boundaries"]?g.setAttribute("data-out-of-boundaries",""):g.removeAttribute("data-out-of-boundaries");var t=Bt(e.placement),n=Et(["top","bottom"],t),r=Et(["bottom","right"],t),o=g.style;o.top="0",o.left="0",o[n?"top":"left"]=(r?1:-1)*x.props.distance+"px"}var i=Ne({eventsEnabled:!1,placement:x.props.placement},e,{modifiers:Ne({},e&&e.modifiers,{preventOverflow:Ne({boundariesElement:x.props.boundary,padding:Ue},r),tippySetPreventOverflowPadding:{enabled:!0,order:299,fn:function(e){var t=Bt(e.placement),n=r&&void 0!==r.padding?r.padding:Ue,o="number"==typeof n,i={top:0,bottom:0,left:0,right:0},a=Object.keys(i).reduce(function(e,r){return e[r]=o?n:n[r],t===r&&(e[r]=o?n+x.props.distance:(n[t]||0)+x.props.distance),e},i);return x.popperInstance.modifiers.filter(function(e){return"preventOverflow"===e.name})[0].padding=a,e}},arrow:Ne({element:n,enabled:!!n},dt(e,"arrow")),flip:Ne({enabled:x.props.flip,padding:x.props.distance+Ue,behavior:x.props.flipBehavior},dt(e,"flip")),offset:Ne({offset:x.props.offset},dt(e,"offset"))}),onCreate:function(t){o(t),Tt(e&&e.onCreate,i.onCreate,[t]),R()},onUpdate:function(t){o(t),Tt(e&&e.onUpdate,i.onUpdate,[t]),R()}});x.popperInstance=new Mn(t,v,i)}function R(){!u&&l&&(u=!0,function(e){e.offsetHeight}(v),l())}function W(e){x.clearDelayTimeouts(),x.state.isScheduledToShow=!0,x.popperInstance||H(),e&&x.props.onTrigger(x,e),k();var t=ft(x.props.delay,0,We.delay);t?o=setTimeout(function(){x.show()},t):x.show()}function V(e){if(x.clearDelayTimeouts(),x.props.onUntrigger(x,e),x.state.isVisible){x.state.isScheduledToShow=!1;var t=ft(x.props.delay,1,We.delay);t?i=setTimeout(function(){x.state.isVisible&&x.hide()},t):a=requestAnimationFrame(function(){x.hide()})}else P()}}function Dn(t,n){document.addEventListener("touchstart",st,Ne({},ze,{capture:!0})),window.addEventListener("blur",pt);var r,o=Ne({},We,{},n),i=(ht(r=t)?[r]:e(r,NodeList)?St(r):Array.isArray(r)?r:St(document.querySelectorAll(r))).reduce(function(e,t){var n=t&&jn(t,o);return n&&e.push(n),e},[]);return ht(t)?i[0]:i}Dn.version="5.0.0-beta.1",Dn.defaultProps=We,Dn.currentInput=it,Dn.setDefaultProps=function(e){Object.keys(e).forEach(function(t){We[t]=e[t]})},Dn.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;St(document.querySelectorAll(Qe)).forEach(function(e){var t,o=e._tippy;if(o){var i=!1;n&&(i=(t=n)&&t._tippy&&!t.classList.contains(Xe)?o.reference===n:e===n.popper),i||o.hide(r)}})},Fe&&setTimeout(function(){St(document.querySelectorAll("[data-tippy]")).forEach(function(e){var t=e.getAttribute("data-tippy");t&&Dn(e,{content:t})})});function Hn(e){return _e(e)&&""!==e?"-"!==e.charAt(e.length-1)?e+"-":e:""}function Rn(e){var t=e.options.attachTo||{},r=n({},t);if(_e(t.element)){try{r.element=document.querySelector(t.element)}catch(e){}r.element||console.error("The element for this Shepherd step was not found "+t.element)}return r}function Wn(e){if(Ce(Dn))throw new Error("Using the attachment feature of Shepherd requires the Tippy.js library");e.tooltip&&e.tooltip.destroy();var t=Rn(e);e.tooltip=function(e,t){var r={},o=document.body;e.element&&e.on?(r=function(e,t){var r=Me(t),o=r.popperOptions,i=r.tippyOptions;i.flipOnUpdate=!0,i.placement=e.on||"right";var a=R(t,"options.tippyOptions.popperOptions");return a&&(o=n({},o,{},a,{modifiers:n({},o.modifiers,{},a.modifiers)})),i.popperOptions=o,i}(e,t),o=e.element):r=Be(t);return Dn(o,r)}(t,e),e.target=t.element}Fe&&function(e){var t=document.createElement("style");t.textContent=e,t.setAttribute("data-tippy-stylesheet","");var n=document.head,r=n.querySelector("style,link");r?n.insertBefore(t,r):n.appendChild(t)}(".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 10px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid;position:absolute}.tippy-arrow[data-state=hidden]{opacity:0}.tippy-content{padding:.3125rem .5625rem}");var Vn=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(e){var t=e.classPrefix,n=e.config,r=e.step,o=e.styles,i=n.action,a=n.classes,s=n.secondary,l=n.text;return Se.h("button",{className:(a||"")+o.button+(s?" "+t+"shepherd-button-secondary":""),onClick:i?i.bind(r.tour):null,tabindex:"0"},l)},t}(Se.Component),zn=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.render=function(e){var t=e.classPrefix,n=e.step,r=e.styles,o=n.options.buttons;return Se.h("footer",{className:r.footer.trim()},this._addButtons(o,t,n,r))},n._addButtons=function(e,t,n,r){return e?e.map(function(e){return Se.h(Vn,{classPrefix:t,config:e,key:e.toString(),step:n,styles:r})}):null},t}(Se.Component),Un=function(e){function t(t){var n;return(n=e.call(this,t)||this).step=t.step,n.handleCancelClick=n.handleCancelClick.bind(o(n)),n}r(t,e);var n=t.prototype;return n.render=function(e){var t=e.labelId,n=e.step,r=e.styles,o=n.options,i=o.cancelIcon,a=o.title;return Se.h("header",{className:r.header.trim()},this.constructor._addTitle(t,r,a),this._addCancelLink(i,r))},n.handleCancelClick=function(e){e.preventDefault(),this.step.cancel()},t._addTitle=function(e,t,n){return n?Se.h("h3",{id:e,className:t.title.trim()},n):null},n._addCancelLink=function(e,t){return e&&e.enabled?Se.h("button",{"aria-label":e.label?e.label:"Close Tour",className:t["cancel-icon"].trim(),onClick:this.handleCancelClick,type:"button"},Se.h("span",{"aria-hidden":"true"},"×")):null},t}(Se.Component),qn=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(){return!1},n.componentDidMount=function(){var e=this.props.step,t=e.options.text;Oe(t)&&(t=t.call(e)),Ee(t)&&this.base.appendChild(t)},n.render=function(e){var t=e.descriptionId,n=e.step,r=e.styles,o=n.options.text;return Oe(o)&&(o=o.call(n)),Se.h("div",{className:r.text.trim(),dangerouslySetInnerHTML:{__html:Ee(o)?null:o},id:t})},t}(Se.Component),Yn=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(e){var n=e.classPrefix,r=e.descriptionId,o=e.labelId,i=e.step,a=e.styles;return Se.h("div",{className:a.content.trim()},Se.h(Un,{labelId:o,step:i,styles:a}),t._addShepherdText(r,i,a),t._addShepherdFooter(n,i,a))},t._addShepherdText=function(e,t,n){return Ce(t.options.text)?null:Se.h(qn,{descriptionId:e,step:t,styles:n})},t._addShepherdFooter=function(e,t,n){return Array.isArray(t.options.buttons)&&t.options.buttons.length?Se.h(zn,{classPrefix:e,step:t,styles:n}):null},t}(Se.Component),Xn=Se.Component,$n=function(e){function t(t){var n;return(n=e.call(this,t)||this).step=t.step,n.handleKeyDown=n.handleKeyDown.bind(o(n)),n}r(t,e);var i=t.prototype;return i.componentDidMount=function(){var e=this.element.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),t=e[0],n=e[e.length-1];this.focusableElements=e,this.firstFocusableElement=t,this.lastFocusableElement=n},i.render=function(e){var t,r=this,o=e.classes,i=e.classPrefix,a=e.descriptionId,s=e.labelId,l=e.step,p=e.styles,c=((t={})["data-"+i+"shepherd-step-id"]=l.id,t);return Se.h("div",n({"aria-describedby":Ce(l.options.text)?null:a,"aria-labeledby":l.options.title?s:null,className:o+p.element},c,{onKeyDown:this.handleKeyDown,ref:function(e){return r.element=e},role:"dialog",tabindex:"0"}),Se.h(Yn,{classPrefix:i,descriptionId:a,labelId:s,step:l,styles:p}))},i.handleKeyDown=function(e){var t=this.step.tour;switch(e.keyCode){case 9:if(1===this.focusableElements.length){e.preventDefault();break}e.shiftKey?document.activeElement===this.firstFocusableElement&&(e.preventDefault(),this.lastFocusableElement.focus()):document.activeElement===this.lastFocusableElement&&(e.preventDefault(),this.firstFocusableElement.focus());break;case 27:t.options.exitOnEsc&&this.step.cancel();break;case 37:t.options.keyboardNavigation&&t.back();break;case 39:t.options.keyboardNavigation&&t.next()}},t}(Xn);Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var Kn=s(function(e,n){!function(){e.exports={polyfill:function(){var e=window,n=document;if(!("scrollBehavior"in n.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)){var r,o=e.HTMLElement||e.Element,i=468,a={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:o.prototype.scroll||p,scrollIntoView:o.prototype.scrollIntoView},s=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,l=(r=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(r)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?m.call(e,n.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):a.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==t(arguments[0])?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?a.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==t(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):m.call(e,n.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var e=arguments[0].left,n=arguments[0].top;m.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===n?this.scrollTop:~~n)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==t(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}):a.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 t=function(e){for(;e!==n.body&&!1===d(e);)e=e.parentNode||e.host;return e}(this),r=t.getBoundingClientRect(),o=this.getBoundingClientRect();t!==n.body?(m.call(this,t,t.scrollLeft+o.left-r.left,t.scrollTop+o.top-r.top),"fixed"!==e.getComputedStyle(t).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else a.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function p(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!==t(e)||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"===t(e)&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+l1?1:l,n=.5*(1-Math.cos(Math.PI*a)),r=t.startX+(t.x-t.startX)*n,o=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,r,o),r===t.x&&o===t.y||e.requestAnimationFrame(h.bind(e,t))}function m(t,r,o){var i,l,c,u,f=s();t===n.body?(i=e,l=e.scrollX||e.pageXOffset,c=e.scrollY||e.pageYOffset,u=a.scroll):(i=t,l=t.scrollLeft,c=t.scrollTop,u=p),h({scrollable:i,method:u,startTime:f,startX:l,startY:c,x:r,y:o})}}}}()});Kn.polyfill;Kn.polyfill();var Zn,Gn,Jn=Se.render,Qn=(Zn=0,function(){return++Zn}),er=function(e){function t(t,n){var r;return void 0===n&&(n={}),(r=e.call(this,t,n)||this).tour=t,r.classPrefix=r.tour.options?Hn(r.tour.options.classPrefix):"",r.styles=t.styles,Pe(o(r)),r._setOptions(n),o(r)||o(r)}r(t,e);var n=t.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),Ee(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"),document.body.removeAttribute("data-"+this.classPrefix+"shepherd-step"),this.target&&this._updateStepTargetOnHide(),this.tooltip&&this.tooltip.hide(),this.trigger("hide")},n.isOpen=function(){return Boolean(this.tooltip&&this.tooltip.state&&this.tooltip.state.isVisible)},n.show=function(){var e=this;if(Oe(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!Ce(t))return t.then(function(){return e._show()})}this._show()},n._createTooltipContent=function(){var e=R(this,"options.cancelIcon.enabled"),t=this.options.classes||"",n=this.id+"-description",r=this.id+"-label";return e&&(t+=" "+this.classPrefix+"shepherd-has-cancel-icon"),Jn(Se.h($n,{classPrefix:this.classPrefix,classes:t,descriptionId:n,labelId:r,step:this,styles:this.styles}),null)},n._scrollTo=function(e){var t=Rn(this).element;Oe(this.options.scrollToHandler)?this.options.scrollToHandler(t):Ee(t)&&t.scrollIntoView(e)},n._setOptions=function(e){var t=this;void 0===e&&(e={}),this.options=e;var n=this.options.when;this.destroy(),this.id=this.options.id||"step-"+Qn(),n&&Object.keys(n).forEach(function(e){t.on(e,n[e],t)})},n._setupElements=function(){Ce(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Le(this),Wn(this)},n._show=function(){var e=this;this.trigger("before-show"),this.el||this._setupElements(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),(this.target||document.body).classList.add(this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target"),document.body.setAttribute("data-"+this.classPrefix+"shepherd-step",this.id),this.options.scrollTo&&setTimeout(function(){e._scrollTo(e.options.scrollTo)}),this.tooltip.show(),this.trigger("show"),this.el.focus()},n._styleTargetElementForStep=function(e){var t,n,r,o=e.target;o&&(t=o,n=e.classPrefix,(r=document.querySelector("."+n+"shepherd-modal-target"))&&r.classList.remove(n+"shepherd-modal-target"),t.classList.add(n+"shepherd-modal-target"),e.options.highlightClass&&o.classList.add(e.options.highlightClass),!1===e.options.canClickTarget&&(o.style.pointerEvents="none"))},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")},t}(ke),tr=s(function(e,t){!function(e){function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,p=a):o>=3&&o<4?(l=a,p=i):o>=4&&o<5?(s=a,p=i):o>=5&&o<6&&(s=i,p=a);var c=n-i/2;return r(s+c,l+c,p+c)}var dr={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var hr=/^#[a-fA-F0-9]{6}$/,mr=/^#[a-fA-F0-9]{8}$/,vr=/^#[a-fA-F0-9]{3}$/,br=/^#[a-fA-F0-9]{4}$/,gr=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,yr=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,wr=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/i,xr=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function Tr(e){if("string"!=typeof e)throw new pr(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return dr[t]?"#"+dr[t]:e}(e);if(t.match(hr))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(mr)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(vr))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(br)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=gr.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=yr.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=wr.exec(t);if(a){var s="rgb("+fr(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=gr.exec(s);if(!l)throw new pr(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var p=xr.exec(t);if(p){var c="rgb("+fr(parseInt(""+p[1],10),parseInt(""+p[2],10)/100,parseInt(""+p[3],10)/100)+")",u=gr.exec(c);if(!u)throw new pr(4,t,c);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10),alpha:parseFloat(""+p[4])}}throw new pr(5)}function Sr(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l=i-a,p=s>.5?l/(2-i-a):l/(i+a);switch(i){case n:t=(r-o)/l+(r=1?Pr(e,n,r):"rgba("+e+","+n+","+r+","+o+")";if("object"===t(e)&&void 0===n&&void 0===r&&void 0===o)return e.alpha>=1?Pr(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new pr(7)}var Ar=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},Ir=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},Br=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},Mr=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Nr(e){if("object"!==t(e))throw new pr(8);if(Ir(e))return Lr(e);if(Ar(e))return Pr(e);if(Mr(e))return function(e,n,r,o){if("number"==typeof e&&"number"==typeof n&&"number"==typeof r&&"number"==typeof o)return o>=1?kr(e,n,r):"rgba("+fr(e,n,r)+","+o+")";if("object"===t(e)&&void 0===n&&void 0===r&&void 0===o)return e.alpha>=1?kr(e.hue,e.saturation,e.lightness):"rgba("+fr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new pr(2)}(e);if(Br(e))return function(e,n,r){if("number"==typeof e&&"number"==typeof n&&"number"==typeof r)return kr(e,n,r);if("object"===t(e)&&void 0===n&&void 0===r)return kr(e.hue,e.saturation,e.lightness);throw new pr(1)}(e);throw new pr(8)}function Fr(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function jr(e,t,n){return Math.max(e,Math.min(t,n))}function Dr(e,t){if("transparent"===t)return t;var n=Sr(t);return Nr(or({},n,{lightness:jr(0,1,n.lightness-parseFloat(e))}))}var Hr=Fr(Dr);function Rr(e,t){if("transparent"===t)return t;var n=Sr(t);return Nr(or({},n,{saturation:jr(0,1,n.saturation-parseFloat(e))}))}var Wr=Fr(Rr);function Vr(e){if("transparent"===e)return 0;var t=Tr(e),n=Object.keys(t).map(function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}),r=n[0],o=n[1],i=n[2];return parseFloat((.2126*r+.7152*o+.0722*i).toFixed(3))}function zr(e,t){if("transparent"===t)return t;var n=Sr(t);return Nr(or({},n,{lightness:jr(0,1,n.lightness+parseFloat(e))}))}var Ur=Fr(zr);function qr(e,t,n){return void 0===t&&(t="#000"),void 0===n&&(n="#fff"),Vr(e)>.179?t:n}function Yr(e,t){if("transparent"===t)return t;var n=Tr(t);return Lr(or({},n,{alpha:jr(0,1,(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e))/100)}))}var Xr=Fr(Yr),$r={arrowSize:2.1,overlayOpacity:.5,shepherdButtonBorderRadius:"3px",shepherdElementBorderRadius:"5px",shepherdElementMaxHeight:"100%",shepherdElementMaxWidth:"100%",shepherdElementZIndex:9999,shepherdTextBackground:"#ffffff",shepherdTextLineHeight:"1.3em",shepherdTextFontSize:"1rem",shepherdThemePrimary:"#3288e6"};function Kr(e){return e.styleVariables&&n($r,e.styleVariables),$r.shepherdHeaderBackground||($r.shepherdHeaderBackground=Hr(.1,$r.shepherdTextBackground)),$r.shepherdThemeSecondary||($r.shepherdThemeSecondary=Wr(.7,Ur(.4,$r.shepherdThemePrimary))),function(){$r.shepherdThemeTextPrimary||($r.shepherdThemeTextPrimary=Xr(.25,qr($r.shepherdThemePrimary)));$r.shepherdThemeTextSecondary||($r.shepherdThemeTextSecondary=Xr(.25,qr($r.shepherdThemeSecondary)));$r.shepherdThemeTextHeader||($r.shepherdThemeTextHeader=Xr(.25,qr($r.shepherdHeaderBackground)));$r.shepherdThemeTextColor||($r.shepherdThemeTextColor=Xr(.25,qr($r.shepherdTextBackground)))}(),$r}function Zr(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r>>0).toString(36)}(o.stringify(e))},selector:function(e,t){return e+(":"===t[0]?"":" ")+t},putRaw:function(e){o.raw+=e}},n);return o.client&&(o.sh||document.head.appendChild(o.sh=document.createElement("style")),o.putRaw=function(e){var t=o.sh.sheet;try{t.insertRule(e,t.cssRules.length)}catch(e){}}),o.put=function(t,n,r){var i,a,s="",l=[];for(i in n)e(a=n[i],Object)&&!e(a,Array)?l.push(i):s+=o.decl(i,a,t,r);s&&(s=t+"{"+s+"}",o.putRaw(r?r+"{"+s+"}":s));for(var p=0;p-1)for(r=0;r.6?Hr(t/2,e):Ur((1-t)/2,e)}function oo(e){var t,r,o,i,a,s,l,p,c,u,f=Kr(e),d=Hn(e.classPrefix),h=Hn(e.tippyClassPrefix),m=e.includeStyles,v=n({active:(r={},r["&."+d+"shepherd-modal-is-visible"]=(t={},t[":not(."+d+"shepherd-target)"]={pointerEvents:"none"},t["."+d+"shepherd-button, ."+d+"shepherd-cancel-icon, ."+d+"shepherd-element, ."+d+"shepherd-target"]={pointerEvents:"auto","*":{pointerEvents:"auto"}},t),r)},function(e,t,n){var r;return n?{button:(r={background:t.shepherdThemePrimary,borderRadius:t.shepherdButtonBorderRadius,border:0,color:t.shepherdThemeTextPrimary,cursor:"pointer",display:"inline-block",fontFamily:"inherit",fontSize:"0.8em",letterSpacing:"0.1em",lineHeight:"1em",marginRight:"0.5em",padding:"0.75em 2em",textTransform:"uppercase",transition:"all 0.5s ease",verticalAlign:"middle","&:hover":{background:Hr(.1,t.shepherdThemePrimary)}},r["&."+e+"shepherd-button-secondary"]={background:t.shepherdThemeSecondary,color:t.shepherdThemeTextSecondary,"&:hover":{background:Hr(.1,t.shepherdThemeSecondary),color:Hr(.1,t.shepherdThemeTextSecondary)}},r)}:{button:{}}}(d,f,m),{},function(e,t){return t?{content:{background:e.shepherdTextBackground,borderRadius:e.shepherdElementBorderRadius,fontSize:"inherit",outline:"none",padding:0}}:{content:{}}}(f,m),{},{element:{outline:"none","&, *":{"&, &:after, &:before":{boxSizing:"border-box"}}}},{},function(e,t,n){var r;return n?{footer:(r={borderBottomLeftRadius:t.shepherdElementBorderRadius,borderBottomRightRadius:t.shepherdElementBorderRadius,display:"flex",justifyContent:"flex-end",padding:"0 0.75em 0.75em"},r["."+e+"shepherd-button"]={"&:last-child":{marginRight:0}},r)}:{footer:{}}}(d,f,m),{},function(e,t,r){var o,i,a=((o={alignItems:"center",borderTopLeftRadius:t.shepherdElementBorderRadius,borderTopRightRadius:t.shepherdElementBorderRadius,display:"flex",justifyContent:"flex-end",lineHeight:"2em",padding:"0.75em 0.75em 0"})["."+e+"shepherd-has-title ."+e+"shepherd-content &"]={background:t.shepherdHeaderBackground,padding:"1em"},o),s={color:t.shepherdThemeTextHeader,display:"flex",flex:"1 0 auto",fontSize:"1.1em",fontWeight:"normal",margin:0,padding:0,position:"relative",verticalAlign:"middle"},l={"cancel-icon":(i={background:"transparent",border:"none",color:ro(t.shepherdThemeTextColor),fontSize:"2em",fontWeight:"normal",margin:0,padding:0,position:"relative",textDecoration:"none",transition:"color 0.5s ease",verticalAlign:"middle","&:hover":{color:t.shepherdThemeTextColor,cursor:"pointer"}},i["."+e+"shepherd-has-title ."+e+"shepherd-content &"]={color:ro(t.shepherdThemeTextHeader),"&:hover":{color:t.shepherdThemeTextHeader}},i)};return l=n({},l,r?{header:a,title:s}:{header:{},title:{}})}(d,f,m),{},function(e,t){var n;return{"modal-overlay-container":(n={"-ms-filter":"progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)",filter:"alpha(opacity=50)",height:0,left:0,opacity:0,overflow:"hidden",position:"fixed",top:0,transition:"all 0.3s ease-out, height 0ms 0.3s, opacity 0.3s 0ms",width:"100vw",zIndex:t.shepherdElementZIndex-2},n["."+e+"shepherd-modal-is-visible &"]={height:"100vh",opacity:t.overlayOpacity,transition:"all 0.3s ease-out, height 0s 0s, opacity 0.3s 0s"},n),"modal-mask-rect":{height:"100vh",width:"100vw"}}}(d,f),{},function(e,t){return t?{text:{color:e.shepherdThemeTextColor,fontSize:e.shepherdTextFontSize,lineHeight:e.shepherdTextLineHeight,padding:"0.75em",p:{marginTop:0,"&:last-child":{marginBottom:0}}}}:{text:{}}}(f,m));f.useDropShadow&&(v.element.filter="drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2))");var b=no(v,d+"shepherd"),g="calc(("+f.arrowSize+" / 2.1) * 16px)",y={'&[x-placement^="top"]':(o={marginBottom:g},o["."+h+"tippy-arrow"]={borderTopColor:f.shepherdTextBackground},o),'&[x-placement^="bottom"]':(a={marginTop:g},a["."+h+"tippy-arrow"]={borderBottomColor:f.shepherdTextBackground},a["&."+d+"shepherd-has-title"]=(i={},i["."+h+"tippy-arrow"]={borderBottomColor:f.shepherdHeaderBackground},i),a),'&[x-placement^="left"]':(s={marginRight:g},s["."+h+"tippy-arrow"]={borderLeftColor:f.shepherdTextBackground},s),'&[x-placement^="right"]':(l={marginLeft:g},l["."+h+"tippy-arrow"]={borderRightColor:f.shepherdTextBackground},l)};return b.shepherd=to(((u={})["&."+h+"tippy-popper"]=n({},y,((c={zIndex:f.shepherdElementZIndex})["."+h+"tippy-tooltip"]=((p={backgroundColor:f.shepherdTextBackground})["."+h+"tippy-arrow"]={transform:"scale("+f.arrowSize+")",zIndex:f.shepherdElementZIndex+1},p["."+h+"tippy-content"]={maxHeight:f.shepherdElementMaxHeight,maxWidth:f.shepherdElementMaxWidth,padding:0,textAlign:"center"},p),c)),u),d+"shepherd"),b}var io=function(e){function t(t){var n;return(n=e.call(this,t)||this)._onScreenChange=null,n.classPrefix=t.classPrefix,Pe(o(n)),n.closeModalOpening(),n}r(t,e);var n=t.prototype;return n.render=function(e,n){var r=e.classPrefix,o=e.styles;return Se.h("svg",{className:o["modal-overlay-container"],onTouchMove:t.handlePreventModalOverlayTouch},Se.h("defs",null,Se.h("mask",{className:r+"shepherd-modal-mask",height:"100%",id:r+"shepherd-modal-mask",width:"100%",x:"0",y:"0"},Se.h("rect",{className:o["modal-mask-rect"],fill:"#FFFFFF",height:"100%",width:"100%",x:"0",y:"0"}),Se.h("rect",{className:r+"shepherd-modal-mask-opening",fill:"#000000",height:n.openingProperties.height,x:n.openingProperties.x,y:n.openingProperties.y,width:n.openingProperties.width}))),Se.h("rect",{height:"100%",width:"100%",x:"0",y:"0",mask:"url(#"+r+"shepherd-modal-mask)"}))},n.closeModalOpening=function(){this.setState({openingProperties:{height:0,x:0,y:0,width:0}})},n.hide=function(){document.body.classList.remove(this.classPrefix+"shepherd-modal-is-visible"),this._cleanupStepEventListeners()},n.positionModalOpening=function(e,t){if(void 0===t&&(t=0),e.getBoundingClientRect){var n=e.getBoundingClientRect(),r=n.x,o=n.y,i=n.width,a=n.height,s=n.left,l=n.top;this.setState({openingProperties:{x:(r||s)-t,y:(o||l)-t,width:i+2*t,height:a+2*t}})}},n.setupForStep=function(e){this._cleanupStepEventListeners(),e.tour.options.useModalOverlay?(this._styleForStep(e),this.show()):this.hide()},n.show=function(){document.body.classList.add(this.classPrefix+"shepherd-modal-is-visible")},n._addStepEventListeners=function(){window.addEventListener("touchmove",t._preventModalBodyTouch,{passive:!1})},n._cleanupStepEventListeners=function(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0),window.removeEventListener("touchmove",t._preventModalBodyTouch,{passive:!1})},n._styleForStep=function(e){var t=this,n=e.options.modalOverlayOpeningPadding;if(e.target){!function r(){t.rafId=void 0,t.positionModalOpening(e.target,n),t.rafId=requestAnimationFrame(r)}(),this._addStepEventListeners()}else this.closeModalOpening()},t._preventModalBodyTouch=function(e){e.preventDefault()},t.handlePreventModalOverlayTouch=function(e){e.stopPropagation()},t}(Se.Component),ao=Se.render,so=function(){var e=0;return function(){return++e}}(),lo=new ke,po=function(t){function i(e){var r;void 0===e&&(e={}),Pe(o(r=t.call(this,e)||this));r.options=n({},{exitOnEsc:!0,includeStyles:!0,keyboardNavigation:!0},e),r.classPrefix=r.options?Hn(r.options.classPrefix):"",r.styles=oo(r.options),r.steps=[],r.addSteps(r.options.steps);["active","cancel","complete","inactive","show","start"].map(function(e){var t;t=e,r.on(t,function(e){(e=e||{}).tour=o(r),lo.trigger(t,e)})});var i=document.querySelector("."+r.classPrefix+"shepherd-modal-overlay-container");return ao(Se.h(io,{classPrefix:r.classPrefix,ref:function(e){return r.modal=e},styles:r.styles}),e.modalContainer||document.body,i),r._setTooltipDefaults(),r._setTourID(),o(r)||o(r)}r(i,t);var a=i.prototype;return a.addStep=function(t){var n=t;return e(n,er)?n.tour=this:n=this._setupStep(n),this.steps.push(n),n},a.addSteps=function(e){var t=this;return Array.isArray(e)&&e.forEach(function(e){t.addStep(e)}),this},a.back=function(){var e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)},a.cancel=function(){if(this.options.confirmCancel){var e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(e)&&this._done("cancel")}else this._done("cancel")},a.complete=function(){this._done("complete")},a.getById=function(e){return this.steps.find(function(t){return t.id===e})},a.getCurrentStep=function(){return this.currentStep},a.hide=function(){var e=this.getCurrentStep();if(e)return e.hide()},a.isActive=function(){return lo.activeTour===this},a.next=function(){var e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)},a.removeStep=function(e){var t=this,n=this.getCurrentStep();this.steps.some(function(n,r){if(n.id===e)return n.isOpen()&&n.hide(),n.destroy(),t.steps.splice(r,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())},a.show=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!0);var n=_e(e)?this.getById(e):this.steps[e];n&&(this._updateStateBeforeShow(),Oe(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,t):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))},a.start=function(){this.trigger("start"),this.options.disableScroll&&nr.disableBodyScroll(),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupActiveTour(),this.next()},a._done=function(t){var n,r=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(function(e){return e.destroy()}),(n=this)&&n.steps.forEach(function(t){if(t.options&&!1===t.options.canClickTarget&&t.options.attachTo){var n=t.target;e(n,HTMLElement)&&(n.style.pointerEvents="auto")}}),this.trigger(t,{index:r}),lo.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&nr.clearAllBodyScrollLocks(),this.modal.hide(),Ee(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},a._setupActiveTour=function(){this._addBodyAttrs(),this.trigger("active",{tour:this}),lo.activeTour=this},a._setupStep=function(e){return e=n({},this.options.defaultStepOptions,e),new er(this,e)},a._skipStep=function(e,t){var n=this.steps.indexOf(e),r=t?n+1:n-1;this.show(r,t)},a._setTooltipDefaults=function(){Dn.setDefaultProps(rr)},a._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},a._setTourID=function(){var e=this.options.tourName||"tour",t=so();this.id=e+"--"+t},a._addBodyAttrs=function(){document.body.setAttribute("data-"+this.classPrefix+"shepherd-active-tour",this.id),document.body.classList.add(this.styles.active.trim())},a._removeBodyAttrs=function(){document.body.removeAttribute("data-"+this.classPrefix+"shepherd-active-tour"),document.body.classList.remove(this.styles.active.trim())},i}(ke);return n(lo,{Tour:po,Step:er}),lo})}();
1
+ /*! shepherd.js 6.0.0 */
2
+ !function(t,e){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Shepherd=e()}(void 0,function(){function t(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){for(var n=0;n1?n-1:0),i=1;i=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,u=h.classes,p=h.classPrefix;return this.all.push(E("abutted",u,p)),["left","top","right","bottom"].forEach(function(t){e.all.push(E("abutted",u,p)+"-"+t)}),f.length&&this.add.push(E("abutted",u,p)),f.forEach(function(t){e.add.push(E("abutted",u,p)+"-"+t)}),_(function(){!1!==e.options.addTargetClasses&&I(e.target,e.add,e.all),I(e.element,e.add,e.all)}),!0}},Y=["left","top","right","bottom"],j={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 k(e.element)}),s=r.height,l=r.width;if(0===l&&0===s&&!w(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,u=this.options,p=u.classes,d=u.classPrefix,m=function(t,e,n){var o=[E("pinned",t,e),E("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}(p,d,this.options.constraints),g=[],v=S({},i),b=S({},this.attachment);return this.options.constraints.forEach(function(t){var r,a,c=t.to,u=t.attachment,m=t.pin;if(w(u)&&(u=""),u.indexOf(" ")>=0){var x=u.split(" ");a=x[0],r=x[1]}else r=a=u;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),!w(e.nodeType)){var n=e,o=k(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}Y.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||(nO[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&&rn[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&&rn[3]&&"top"===e.top?(r-=o,e.top="bottom"):rO[2]&&"right"===v.left&&(o-=h,v.left="left")),"together"===r&&(o=function(t,e,n,o,i,r){return rn[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"):rO[3]&&"top"===b.top&&(n-=s,b.top="bottom")),"element"!==r&&"both"!==r||(oO[2]&&("left"===b.left?(o-=l,b.left="right"):"center"===b.left&&(o-=l/2,b.left="right"))),y(m)?m=m.split(",").map(function(t){return t.trim()}):!0===m&&(m=["top","left","right","bottom"]);var I,$=[],_=[];o=function(t,e,n,o,i,r){return t=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,m=m||[],$,_),n=function(t,e,n,o,i,r){return t=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,m,$,_),$.length&&(I=w(e.options.pinnedClass)?E("pinned",p,d):e.options.pinnedClass,g.push(I),$.forEach(function(t){g.push(I+"-"+t)})),function(t,e,n,o,i){var r;t.length&&(r=w(i)?E("out-of-bounds",n,o):i,e.push(r),t.forEach(function(t){e.push(r+"-"+t)}))}(_,g,p,d,e.options.outOfBoundsClass),($.indexOf("left")>=0||$.indexOf("right")>=0)&&(b.left=v.left=!1),($.indexOf("top")>=0||$.indexOf("bottom")>=0)&&(b.top=v.top=!1),v.top===i.top&&v.left===i.left&&b.top===e.attachment.top&&b.left===e.attachment.left||(e.updateAttachClasses(b,v),e.trigger("update",{attachment:b,targetAttachment:v}))}),_(function(){!1!==e.options.addTargetClasses&&I(e.target,g,m),I(e.element,g,m)}),{top:n,left:o}}},W={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})),y(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}}}},X=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n,o){return void 0===o&&(o=!1),w(this.bindings)&&(this.bindings={}),w(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 w(this.bindings)||w(this.bindings[t])?this:(w(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;i16)return G=Math.min(G-16,250),void(J=setTimeout(t,250));!w(U)&&it()-U<10||(null!=J&&(clearTimeout(J),J=null),U=it(),ot(),G=it()-U)},w(window)||w(window.addEventListener)||["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,Q)});var rt=function(t){var n,o;function i(e){var n;return(n=t.call(this)||this).position=n.position.bind(b(n)),nt.push(b(n)),n.history=[],n.setOptions(e,!1),tt.modules.forEach(function(t){w(t.initialize)||t.initialize.call(b(n))}),n.position(),n}o=t,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var r=i.prototype;return r.setOptions=function(t,e){var n=this;void 0===e&&(e=!0),this.options=S({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(w(n[t]))throw new Error("Tether Error: Both element and target must be defined");w(n[t].jquery)?y(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=Z(this.options.targetAttachment),this.attachment=Z(this.options.attachment),this.offset=Z(this.options.offset),this.targetOffset=Z(this.options.targetOffset),w(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(w(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)},r.getTargetBounds=function(){return w(this.targetModifier)?k(this.target):"visible"===this.targetModifier?function(t){if(t===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var e=k(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.topt.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},r.clearCache=function(){this._cache={}},r.cache=function(t,e){return w(this._cache)&&(this._cache={}),w(this._cache[t])&&(this._cache[t]=e.call(this)),this._cache[t]},r.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&&x(this.target,E("enabled",o,i)),x(this.element,E("enabled",o,i)),this.enabled=!0,this.scrollParents.forEach(function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)}),t&&this.position()},r.disable=function(){var t=this,e=this.options,n=e.classes,o=e.classPrefix;O(this.target,E("enabled",n,o)),O(this.element,E("enabled",n,o)),this.enabled=!1,w(this.scrollParents)||this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})},r.destroy=function(){var t=this;this.disable(),this._removeClasses(),nt.forEach(function(e,n){e===t&&nt.splice(n,1)}),0===nt.length&&(F&&document.body.removeChild(F),F=null)},r.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;!w(this._addAttachClasses)&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),w(this._addAttachClasses)&&(this._addAttachClasses=[]),this.add=this._addAttachClasses,t.top&&this.add.push(E("element-attached",i,r)+"-"+t.top),t.left&&this.add.push(E("element-attached",i,r)+"-"+t.left),e.top&&this.add.push(E("target-attached",i,r)+"-"+e.top),e.left&&this.add.push(E("target-attached",i,r)+"-"+e.left),this.all=[],["left","top","bottom","right","middle","center"].forEach(function(t){n.all.push(E("element-attached",i,r)+"-"+t),n.all.push(E("target-attached",i,r)+"-"+t)}),_(function(){w(n._addAttachClasses)||(I(n.element,n._addAttachClasses,n.all),!1!==n.options.addTargetClasses&&I(n.target,n._addAttachClasses,n.all),delete n._addAttachClasses)})},r.position=function(t){var n=this;if(void 0===t&&(t=!0),this.enabled){this.clearCache();var o=function(t,e){var n=t.left,o=t.top;return"auto"===n&&(n=D[e.left]),"auto"===o&&(o=z[e.top]),{left:n,top:o}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var i=this.cache("element-bounds",function(){return k(n.element)}),r=i.width,s=i.height;if(0!==r||0!==s||w(this.lastSize))this.lastSize={width:r,height:s};else{var l=this.lastSize;r=l.width,s=l.height}var a=this.cache("target-bounds",function(){return n.getTargetBounds()}),c=a,f=q(V(this.attachment),{width:r,height:s}),h=q(V(o),c),u=q(this.offset,{width:r,height:s}),p=q(this.targetOffset,c);f=R(f,u),h=R(h,p);for(var d=a.left+h.left-f.left,m=a.top+h.top-f.top,g=0;gx.documentElement.clientHeight&&(b=this.cache("scrollbar-size",P),y.viewport.bottom-=b.height),E.innerWidth>x.documentElement.clientWidth&&(b=this.cache("scrollbar-size",P),y.viewport.right-=b.width),-1!==["","static"].indexOf(x.body.style.position)&&-1!==["","static"].indexOf(x.body.parentElement.style.position)||(y.page.bottom=x.body.scrollHeight-m-s,y.page.right=x.body.scrollWidth-d-r),!w(this.options.optimizations)&&!1!==this.options.optimizations.moveElement&&w(this.targetModifier)){var O=this.cache("target-offsetparent",function(){return K(n.target)}),I=this.cache("target-offsetparent-bounds",function(){return k(O)}),$=getComputedStyle(O),_=I,C={};if(["Top","Left","Bottom","Right"].forEach(function(t){C[t.toLowerCase()]=parseFloat($["border"+t+"Width"])}),I.right=x.body.scrollWidth-I.left-_.width+C.right,I.bottom=x.body.scrollHeight-I.top-_.height+C.bottom,y.page.top>=I.top+C.top&&y.page.bottom>=I.bottom&&y.page.left>=I.left+C.left&&y.page.right>=I.right){var S=O.scrollLeft,M=O.scrollTop;y.offset={top:y.page.top-I.top+M-C.top,left:y.page.left-I.left+S-C.left}}}return this.move(y),this.history.unshift(y),this.history.length>3&&this.history.pop(),t&&T(),!0}},r.move=function(t){var e=this;if(!w(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=o&&o>=n-i))){a=!0;break}}a||(r[s][l]=!0)}var h={top:"",left:"",right:"",bottom:""},u=function(t,n){var o,i;!1!==(w(e.options.optimizations)?null:e.options.optimizations.gpu)?(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[et]="translateX("+i+"px) translateY("+o+"px)","msTransform"!==et&&(h[et]+=" 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")},p=!0;!w(this.options.optimizations)&&!1===this.options.optimizations.allowPositionFixed&&(p=!1);var d,m,g=!1;if((r.page.top||r.page.bottom)&&(r.page.left||r.page.right))h.position="absolute",u(r.page,t.page);else if(p&&(r.viewport.top||r.viewport.bottom)&&(r.viewport.left||r.viewport.right))h.position="fixed",u(r.viewport,t.viewport);else if(!w(r.offset)&&r.offset.top&&r.offset.left){h.position="absolute";var v=this.cache("target-offsetparent",function(){return K(e.target)});K(this.element)!==v&&_(function(){e.element.parentNode.removeChild(e.element),v.appendChild(e.element)}),u(r.offset,t.offset),g=!0}else h.position="absolute",u({top:!0,left:!0},t.page);if(!g)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&&(void 0,((m=(d=y).ownerDocument).fullscreenElement||m.webkitFullscreenElement||m.mozFullScreenElement||m.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 x={},E=!1;for(var O in h){var I=h[O];this.element.style[O]!==I&&(E=!0,x[O]=I)}E&&_(function(){S(e.element.style,x),e.trigger("repositioned")})}},r._addClasses=function(){var t=this.options,e=t.classes,n=t.classPrefix;x(this.element,E("element",e,n)),!1!==this.options.addTargetClasses&&x(this.target,E("target",e,n))},r._removeClasses=function(){var t=this,e=this.options,n=e.classes,o=e.classPrefix;O(this.element,E("element",n,o)),!1!==this.options.addTargetClasses&&O(this.target,E("target",n,o)),this.all.forEach(function(e){t.element.classList.remove(e),t.target.classList.remove(e)})},i}(X);rt.modules=[],tt.position=ot;var st=S(rt,tt);st.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=E(e+"-marker",n,o);var r=document.createElement("div");r.className=E("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];(!y(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 lt,at={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 ct(t){return g(t)&&""!==t?"-"!==t.charAt(t.length-1)?t+"-":t:""}function ft(t){var e=t.options.attachTo||{},n=Object.assign({},e);if(g(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 ht(t){t.tooltip&&t.tooltip.destroy();var e=ft(t),n=function(t,e){var n={classPrefix:"shepherd",constraints:[{to:"scrollParent",attachment:"together",pin:["left","right","top"]},{to:"window",attachment:"together"}]},o=document.body;return t.element&&t.on?(n.attachment=at[t.on]||at.right,o=t.element):(n.attachment="middle center",n.targetModifier="visible"),n.element=e.el,n.target=o,e.options.tetherOptions&&(e.options.tetherOptions.constraints&&(n.constraints=e.options.tetherOptions.constraints),n.classes=i({},n.classes,{},e.options.tetherOptions.classes),n.optimizations=i({},n.optimizations,{},e.options.tetherOptions.optimizations),n=i({},n,{},e.options.tetherOptions)),n}(e,t);t.tooltip=new st(n),t.target=e.element}function ut(){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 dt(t,e){for(var n in e)t[n]=e[n];return t}function mt(t){return t()}function gt(){return Object.create(null)}function vt(t){t.forEach(mt)}function bt(t){return"function"==typeof t}function yt(t,n){return t!=t?n==n:t!==n||t&&"object"==e(t)||"function"==typeof t}function wt(t,e){t.appendChild(e)}function xt(t,e,n){t.insertBefore(e,n||null)}function Et(t){t.parentNode.removeChild(t)}function Ot(t){return document.createElement(t)}function It(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $t(t){return document.createTextNode(t)}function _t(){return $t(" ")}function Tt(t,e,n,o){return t.addEventListener(e,n,o),function(){return t.removeEventListener(e,n,o)}}function Ct(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function St(t,e){for(var n in e)"style"===n?t.style.cssText=e[n]:n in t?t[n]=e[n]:Ct(t,n,e[n])}function Pt(t){lt=t}function Mt(){if(!lt)throw new Error("Function called outside component initialization");return lt}function At(t){Mt().$$.after_update.push(t)}var Lt=[],Ft=[],kt=[],Ht=[],Bt=Promise.resolve(),Yt=!1;function jt(t){kt.push(t)}function Wt(){var t=new Set;do{for(;Lt.length;){var e=Lt.shift();Pt(e),Xt(e.$$)}for(;Ft.length;)Ft.pop()();for(var n=0;n1?1:a,n=.5*(1-Math.cos(Math.PI*s)),o=e.startX+(e.x-e.startX)*n,i=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,o,i),o===e.x&&i===e.y||t.requestAnimationFrame(d.bind(t,e))}function m(e,o,i){var r,a,f,h,u=l();e===n.body?(r=t,a=t.scrollX||t.pageXOffset,f=t.scrollY||t.pageYOffset,h=s.scroll):(r=e,a=e.scrollLeft,f=e.scrollTop,h=c),d({scrollable:r,method:h,startTime:u,startX:a,startY:f,x:o,y:i})}}}}(n={exports:{}}),n.exports}();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?ct(o.tour.options.classPrefix):"",o.styles=e.styles,p(f(o)),o._setOptions(n),f(o)||f(o)}r(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),d(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(m(this.options.beforeShowPromise)){var e=this.options.beforeShowPromise();if(!v(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=ft(this).element;m(this.options.scrollToHandler)?this.options.scrollToHandler(e):d(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-"+ut(),o&&Object.keys(o).forEach(function(t){e.on(t,o[t],e)})},n._setupElements=function(){v(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function(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;(!v(t)&&n.currentTarget.matches(t)||o)&&e.tour.next()}}}(o,t);try{i=document.querySelector(o)}catch(t){}if(!v(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)}))}(this),ht(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}(u);function Le(t){var e,n,o,i,r;return{c:function(){e=It("svg"),Ct(n=It("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"),Ct(e,"class",i=(t.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container"),r=Tt(e,"touchmove",t._preventModalOverlayTouch)},m:function(o,i){xt(o,e,i),wt(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")&&Ct(n,"d",o),t.modalIsVisible&&i!==(i=(r.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&Ct(e,"class",i)},i:pt,o:pt,d:function(n){n&&Et(e),t.svg_binding(null),r()}}}function Fe(e,n,o){var i=n.element,r=n.openingProperties,s=(ut(),!1),l=void 0;function a(){o("openingProperties",r={height:0,x:0,y:0,width:0})}function c(){o("modalIsVisible",s=!1),p()}function f(t,e,n){if(void 0===n&&(n=0),t.getBoundingClientRect){var i=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=i.y,l=i.height,a=t.getBoundingClientRect(),c=a.x,f=a.width,h=a.left;o("openingProperties",r={x:(c||h)-n,y:s-n,width:f+2*n,height:l+2*n})}}function h(){o("modalIsVisible",s=!0)}a();var u=function(t){t.preventDefault()};function p(){l&&(cancelAnimationFrame(l),l=void 0),window.removeEventListener("touchmove",u,{passive:!1})}return e.$set=function(t){"element"in t&&o("element",i=t.element),"openingProperties"in t&&o("openingProperties",r=t.openingProperties)},{element:i,openingProperties:r,modalIsVisible:s,getElement:function(){return i},closeModalOpening:a,hide:c,positionModalOpening:f,setupForStep:function(e){p(),e.tour.options.useModalOverlay?(function(e){var n=e.options.modalOverlayOpeningPadding;if(e.target){var o=function e(n){if(!n)return null;var o=t(n,HTMLElement)&&window.getComputedStyle(n).overflowY;return"hidden"!==o&&"visible"!==o&&n.scrollHeight>=n.clientHeight?n:e(n.parentElement)}(e.target);!function t(){l=void 0,f(e.target,o,n),l=requestAnimationFrame(t)}(),window.addEventListener("touchmove",u,{passive:!1})}else a()}(e),h()):c()},show:h,_preventModalOverlayTouch:function(t){t.stopPropagation()},window:window,svg_binding:function(t){Ft[t?"unshift":"push"](function(){o("element",i=t)})}}}var ke=function(t){function e(e){var n;return Ut(f(n=t.call(this)||this),e,Fe,Le,yt,["element","openingProperties","getElement","closeModalOpening","hide","positionModalOpening","setupForStep","show"]),n}return r(e,t),o(e,[{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}}]),e}(Gt),He=new u,Be=function(e){function n(t){var n;return void 0===t&&(t={}),p(f(n=e.call(this,t)||this)),n.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},t),n.classPrefix=ct(n.options.classPrefix),n.steps=[],n.addSteps(n.options.steps),["active","cancel","complete","inactive","show","start"].map(function(t){var e;e=t,n.on(e,function(t){(t=t||{}).tour=f(n),He.trigger(e,t)})}),n.modal=new ke({target:t.modalContainer||document.body,props:{classPrefix:n.classPrefix,styles:n.styles}}),n._setTourID(),f(n)||f(n)}r(n,e);var o=n.prototype;return o.addStep=function(e,n){var o=e;return t(o,Ae)?o.tour=this:o=new Ae(this,o),v(n)?this.steps.push(o):this.steps.splice(n,0,o),o},o.addSteps=function(t){var e=this;return Array.isArray(t)&&t.forEach(function(t){e.addStep(t)}),this},o.back=function(){var t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)},o.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")},o.complete=function(){this._done("complete")},o.getById=function(t){return this.steps.find(function(e){return e.id===t})},o.getCurrentStep=function(){return this.currentStep},o.hide=function(){var t=this.getCurrentStep();if(t)return t.hide()},o.isActive=function(){return He.activeTour===this},o.next=function(){var t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)},o.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())},o.show=function(t,e){void 0===t&&(t=0),void 0===e&&(e=!0);var n=g(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),m(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))},o.start=function(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupActiveTour(),this.next()},o._done=function(e){var n=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(function(t){return t.destroy()}),this&&this.steps.forEach(function(e){e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&t(e.target,HTMLElement)&&e.target.classList.remove("shepherd-target-click-disabled")}),this.trigger(e,{index:n}),He.activeTour=null,this.trigger("inactive",{tour:this}),this.modal.hide(),d(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},o._setupActiveTour=function(){this.trigger("active",{tour:this}),He.activeTour=this},o._skipStep=function(t,e){var n=this.steps.indexOf(t),o=e?n+1:n-1;this.show(o,e)},o._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},o._setTourID=function(){var t=this.options.tourName||"tour";this.id=t+"--"+ut()},n}(u);return Object.assign(He,{Tour:Be,Step:Ae}),He});
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shepherdjs_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1.1
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jimcheung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2019-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails