react-shepherd 6.1.0 → 6.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(ie,pe){typeof exports=="object"&&typeof module<"u"?pe(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],pe):(ie=typeof globalThis<"u"?globalThis:ie||self,pe(ie.ShepherdProReact={},ie.require$$0))})(this,function(ie,pe){"use strict";var vt={exports:{}},Ye={};/**
1
+ (function(oe,pe){typeof exports=="object"&&typeof module<"u"?pe(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],pe):(oe=typeof globalThis<"u"?globalThis:oe||self,pe(oe.ShepherdProReact={},oe.require$$0))})(this,function(oe,pe){"use strict";var vt={exports:{}},Ye={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Jt;function tr(){if(Jt)return Ye;Jt=1;var e=pe,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(c,a,u){var f,h={},d=null,g=null;u!==void 0&&(d=""+u),a.key!==void 0&&(d=""+a.key),a.ref!==void 0&&(g=a.ref);for(f in a)r.call(a,f)&&!s.hasOwnProperty(f)&&(h[f]=a[f]);if(c&&c.defaultProps)for(f in a=c.defaultProps,a)h[f]===void 0&&(h[f]=a[f]);return{$$typeof:t,type:c,key:d,ref:g,props:h,_owner:i.current}}return Ye.Fragment=n,Ye.jsx=o,Ye.jsxs=o,Ye}var ze={};/**
9
+ */var Jt;function tr(){if(Jt)return Ye;Jt=1;var e=pe,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(c,a,u){var f,h={},d=null,g=null;u!==void 0&&(d=""+u),a.key!==void 0&&(d=""+a.key),a.ref!==void 0&&(g=a.ref);for(f in a)r.call(a,f)&&!s.hasOwnProperty(f)&&(h[f]=a[f]);if(c&&c.defaultProps)for(f in a=c.defaultProps,a)h[f]===void 0&&(h[f]=a[f]);return{$$typeof:t,type:c,key:d,ref:g,props:h,_owner:o.current}}return Ye.Fragment=n,Ye.jsx=i,Ye.jsxs=i,Ye}var ze={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Kt;function nr(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var e=pe,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),v=Symbol.iterator,x="@@iterator";function S(l){if(l===null||typeof l!="object")return null;var p=v&&l[v]||l[x];return typeof p=="function"?p:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(l){{for(var p=arguments.length,b=new Array(p>1?p-1:0),E=1;E<p;E++)b[E-1]=arguments[E];R("error",l,b)}}function R(l,p,b){{var E=w.ReactDebugCurrentFrame,A=E.getStackAddendum();A!==""&&(p+="%s",b=b.concat([A]));var I=b.map(function(C){return String(C)});I.unshift("Warning: "+p),Function.prototype.apply.call(console[l],console,I)}}var y=!1,m=!1,T=!1,B=!1,le=!1,$;$=Symbol.for("react.module.reference");function X(l){return!!(typeof l=="string"||typeof l=="function"||l===r||l===s||le||l===i||l===u||l===f||B||l===g||y||m||T||typeof l=="object"&&l!==null&&(l.$$typeof===d||l.$$typeof===h||l.$$typeof===o||l.$$typeof===c||l.$$typeof===a||l.$$typeof===$||l.getModuleId!==void 0))}function U(l,p,b){var E=l.displayName;if(E)return E;var A=p.displayName||p.name||"";return A!==""?b+"("+A+")":b}function V(l){return l.displayName||"Context"}function D(l){if(l==null)return null;if(typeof l.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case c:var p=l;return V(p)+".Consumer";case o:var b=l;return V(b._context)+".Provider";case a:return U(l,l.render,"ForwardRef");case h:var E=l.displayName||null;return E!==null?E:D(l.type)||"Memo";case d:{var A=l,I=A._payload,C=A._init;try{return D(C(I))}catch{return null}}}return null}var L=Object.assign,G=0,Y,de,we,he,ne,re,ht;function Wn(){}Wn.__reactDisabledLog=!0;function mo(){{if(G===0){Y=console.log,de=console.info,we=console.warn,he=console.error,ne=console.group,re=console.groupCollapsed,ht=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Wn,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}G++}}function bo(){{if(G--,G===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},l,{value:Y}),info:L({},l,{value:de}),warn:L({},l,{value:we}),error:L({},l,{value:he}),group:L({},l,{value:ne}),groupCollapsed:L({},l,{value:re}),groupEnd:L({},l,{value:ht})})}G<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Nt=w.ReactCurrentDispatcher,Wt;function pt(l,p,b){{if(Wt===void 0)try{throw Error()}catch(A){var E=A.stack.trim().match(/\n( *(at )?)/);Wt=E&&E[1]||""}return`
18
- `+Wt+l}}var Vt=!1,gt;{var vo=typeof WeakMap=="function"?WeakMap:Map;gt=new vo}function Vn(l,p){if(!l||Vt)return"";{var b=gt.get(l);if(b!==void 0)return b}var E;Vt=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=Nt.current,Nt.current=null,mo();try{if(p){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(z){E=z}Reflect.construct(l,[],C)}else{try{C.call()}catch(z){E=z}l.call(C.prototype)}}else{try{throw Error()}catch(z){E=z}l()}}catch(z){if(z&&E&&typeof z.stack=="string"){for(var O=z.stack.split(`
17
+ */var Kt;function nr(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var e=pe,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),v=Symbol.iterator,x="@@iterator";function S(l){if(l===null||typeof l!="object")return null;var p=v&&l[v]||l[x];return typeof p=="function"?p:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(l){{for(var p=arguments.length,b=new Array(p>1?p-1:0),E=1;E<p;E++)b[E-1]=arguments[E];R("error",l,b)}}function R(l,p,b){{var E=w.ReactDebugCurrentFrame,A=E.getStackAddendum();A!==""&&(p+="%s",b=b.concat([A]));var I=b.map(function(C){return String(C)});I.unshift("Warning: "+p),Function.prototype.apply.call(console[l],console,I)}}var y=!1,m=!1,T=!1,B=!1,le=!1,$;$=Symbol.for("react.module.reference");function X(l){return!!(typeof l=="string"||typeof l=="function"||l===r||l===s||le||l===o||l===u||l===f||B||l===g||y||m||T||typeof l=="object"&&l!==null&&(l.$$typeof===d||l.$$typeof===h||l.$$typeof===i||l.$$typeof===c||l.$$typeof===a||l.$$typeof===$||l.getModuleId!==void 0))}function U(l,p,b){var E=l.displayName;if(E)return E;var A=p.displayName||p.name||"";return A!==""?b+"("+A+")":b}function V(l){return l.displayName||"Context"}function D(l){if(l==null)return null;if(typeof l.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case c:var p=l;return V(p)+".Consumer";case i:var b=l;return V(b._context)+".Provider";case a:return U(l,l.render,"ForwardRef");case h:var E=l.displayName||null;return E!==null?E:D(l.type)||"Memo";case d:{var A=l,I=A._payload,C=A._init;try{return D(C(I))}catch{return null}}}return null}var L=Object.assign,G=0,Y,de,we,he,ne,re,ht;function Wn(){}Wn.__reactDisabledLog=!0;function mi(){{if(G===0){Y=console.log,de=console.info,we=console.warn,he=console.error,ne=console.group,re=console.groupCollapsed,ht=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Wn,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}G++}}function bi(){{if(G--,G===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},l,{value:Y}),info:L({},l,{value:de}),warn:L({},l,{value:we}),error:L({},l,{value:he}),group:L({},l,{value:ne}),groupCollapsed:L({},l,{value:re}),groupEnd:L({},l,{value:ht})})}G<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Nt=w.ReactCurrentDispatcher,Wt;function pt(l,p,b){{if(Wt===void 0)try{throw Error()}catch(A){var E=A.stack.trim().match(/\n( *(at )?)/);Wt=E&&E[1]||""}return`
18
+ `+Wt+l}}var Vt=!1,gt;{var vi=typeof WeakMap=="function"?WeakMap:Map;gt=new vi}function Vn(l,p){if(!l||Vt)return"";{var b=gt.get(l);if(b!==void 0)return b}var E;Vt=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=Nt.current,Nt.current=null,mi();try{if(p){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(z){E=z}Reflect.construct(l,[],C)}else{try{C.call()}catch(z){E=z}l.call(C.prototype)}}else{try{throw Error()}catch(z){E=z}l()}}catch(z){if(z&&E&&typeof z.stack=="string"){for(var O=z.stack.split(`
19
19
  `),H=E.stack.split(`
20
20
  `),F=O.length-1,j=H.length-1;F>=1&&j>=0&&O[F]!==H[j];)j--;for(;F>=1&&j>=0;F--,j--)if(O[F]!==H[j]){if(F!==1||j!==1)do if(F--,j--,j<0||O[F]!==H[j]){var Z=`
21
- `+O[F].replace(" at new "," at ");return l.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",l.displayName)),typeof l=="function"&&gt.set(l,Z),Z}while(F>=1&&j>=0);break}}}finally{Vt=!1,Nt.current=I,bo(),Error.prepareStackTrace=A}var Ue=l?l.displayName||l.name:"",Pe=Ue?pt(Ue):"";return typeof l=="function"&&gt.set(l,Pe),Pe}function yo(l,p,b){return Vn(l,!1)}function _o(l){var p=l.prototype;return!!(p&&p.isReactComponent)}function mt(l,p,b){if(l==null)return"";if(typeof l=="function")return Vn(l,_o(l));if(typeof l=="string")return pt(l);switch(l){case u:return pt("Suspense");case f:return pt("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case a:return yo(l.render);case h:return mt(l.type,p,b);case d:{var E=l,A=E._payload,I=E._init;try{return mt(I(A),p,b)}catch{}}}return""}var et=Object.prototype.hasOwnProperty,Hn={},$n=w.ReactDebugCurrentFrame;function bt(l){if(l){var p=l._owner,b=mt(l.type,l._source,p?p.type:null);$n.setExtraStackFrame(b)}else $n.setExtraStackFrame(null)}function wo(l,p,b,E,A){{var I=Function.call.bind(et);for(var C in l)if(I(l,C)){var O=void 0;try{if(typeof l[C]!="function"){var H=Error((E||"React class")+": "+b+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}O=l[C](p,C,E,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){O=F}O&&!(O instanceof Error)&&(bt(A),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",E||"React class",b,C,typeof O),bt(null)),O instanceof Error&&!(O.message in Hn)&&(Hn[O.message]=!0,bt(A),_("Failed %s type: %s",b,O.message),bt(null))}}}var xo=Array.isArray;function Ht(l){return xo(l)}function Eo(l){{var p=typeof Symbol=="function"&&Symbol.toStringTag,b=p&&l[Symbol.toStringTag]||l.constructor.name||"Object";return b}}function So(l){try{return Un(l),!1}catch{return!0}}function Un(l){return""+l}function Yn(l){if(So(l))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Eo(l)),Un(l)}var tt=w.ReactCurrentOwner,Oo={key:!0,ref:!0,__self:!0,__source:!0},zn,qn,$t;$t={};function Ro(l){if(et.call(l,"ref")){var p=Object.getOwnPropertyDescriptor(l,"ref").get;if(p&&p.isReactWarning)return!1}return l.ref!==void 0}function To(l){if(et.call(l,"key")){var p=Object.getOwnPropertyDescriptor(l,"key").get;if(p&&p.isReactWarning)return!1}return l.key!==void 0}function Co(l,p){if(typeof l.ref=="string"&&tt.current&&p&&tt.current.stateNode!==p){var b=D(tt.current.type);$t[b]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(tt.current.type),l.ref),$t[b]=!0)}}function Ao(l,p){{var b=function(){zn||(zn=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};b.isReactWarning=!0,Object.defineProperty(l,"key",{get:b,configurable:!0})}}function Po(l,p){{var b=function(){qn||(qn=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};b.isReactWarning=!0,Object.defineProperty(l,"ref",{get:b,configurable:!0})}}var ko=function(l,p,b,E,A,I,C){var O={$$typeof:t,type:l,key:p,ref:b,props:C,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function Io(l,p,b,E,A){{var I,C={},O=null,H=null;b!==void 0&&(Yn(b),O=""+b),To(p)&&(Yn(p.key),O=""+p.key),Ro(p)&&(H=p.ref,Co(p,A));for(I in p)et.call(p,I)&&!Oo.hasOwnProperty(I)&&(C[I]=p[I]);if(l&&l.defaultProps){var F=l.defaultProps;for(I in F)C[I]===void 0&&(C[I]=F[I])}if(O||H){var j=typeof l=="function"?l.displayName||l.name||"Unknown":l;O&&Ao(C,j),H&&Po(C,j)}return ko(l,O,H,A,E,tt.current,C)}}var Ut=w.ReactCurrentOwner,Jn=w.ReactDebugCurrentFrame;function $e(l){if(l){var p=l._owner,b=mt(l.type,l._source,p?p.type:null);Jn.setExtraStackFrame(b)}else Jn.setExtraStackFrame(null)}var Yt;Yt=!1;function zt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function Kn(){{if(Ut.current){var l=D(Ut.current.type);if(l)return`
21
+ `+O[F].replace(" at new "," at ");return l.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",l.displayName)),typeof l=="function"&&gt.set(l,Z),Z}while(F>=1&&j>=0);break}}}finally{Vt=!1,Nt.current=I,bi(),Error.prepareStackTrace=A}var Ue=l?l.displayName||l.name:"",Pe=Ue?pt(Ue):"";return typeof l=="function"&&gt.set(l,Pe),Pe}function yi(l,p,b){return Vn(l,!1)}function _i(l){var p=l.prototype;return!!(p&&p.isReactComponent)}function mt(l,p,b){if(l==null)return"";if(typeof l=="function")return Vn(l,_i(l));if(typeof l=="string")return pt(l);switch(l){case u:return pt("Suspense");case f:return pt("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case a:return yi(l.render);case h:return mt(l.type,p,b);case d:{var E=l,A=E._payload,I=E._init;try{return mt(I(A),p,b)}catch{}}}return""}var et=Object.prototype.hasOwnProperty,Hn={},$n=w.ReactDebugCurrentFrame;function bt(l){if(l){var p=l._owner,b=mt(l.type,l._source,p?p.type:null);$n.setExtraStackFrame(b)}else $n.setExtraStackFrame(null)}function wi(l,p,b,E,A){{var I=Function.call.bind(et);for(var C in l)if(I(l,C)){var O=void 0;try{if(typeof l[C]!="function"){var H=Error((E||"React class")+": "+b+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}O=l[C](p,C,E,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){O=F}O&&!(O instanceof Error)&&(bt(A),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",E||"React class",b,C,typeof O),bt(null)),O instanceof Error&&!(O.message in Hn)&&(Hn[O.message]=!0,bt(A),_("Failed %s type: %s",b,O.message),bt(null))}}}var xi=Array.isArray;function Ht(l){return xi(l)}function Ei(l){{var p=typeof Symbol=="function"&&Symbol.toStringTag,b=p&&l[Symbol.toStringTag]||l.constructor.name||"Object";return b}}function Si(l){try{return Un(l),!1}catch{return!0}}function Un(l){return""+l}function Yn(l){if(Si(l))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ei(l)),Un(l)}var tt=w.ReactCurrentOwner,Oi={key:!0,ref:!0,__self:!0,__source:!0},zn,qn,$t;$t={};function Ri(l){if(et.call(l,"ref")){var p=Object.getOwnPropertyDescriptor(l,"ref").get;if(p&&p.isReactWarning)return!1}return l.ref!==void 0}function Ti(l){if(et.call(l,"key")){var p=Object.getOwnPropertyDescriptor(l,"key").get;if(p&&p.isReactWarning)return!1}return l.key!==void 0}function Ci(l,p){if(typeof l.ref=="string"&&tt.current&&p&&tt.current.stateNode!==p){var b=D(tt.current.type);$t[b]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(tt.current.type),l.ref),$t[b]=!0)}}function Ai(l,p){{var b=function(){zn||(zn=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};b.isReactWarning=!0,Object.defineProperty(l,"key",{get:b,configurable:!0})}}function Pi(l,p){{var b=function(){qn||(qn=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};b.isReactWarning=!0,Object.defineProperty(l,"ref",{get:b,configurable:!0})}}var ki=function(l,p,b,E,A,I,C){var O={$$typeof:t,type:l,key:p,ref:b,props:C,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function Ii(l,p,b,E,A){{var I,C={},O=null,H=null;b!==void 0&&(Yn(b),O=""+b),Ti(p)&&(Yn(p.key),O=""+p.key),Ri(p)&&(H=p.ref,Ci(p,A));for(I in p)et.call(p,I)&&!Oi.hasOwnProperty(I)&&(C[I]=p[I]);if(l&&l.defaultProps){var F=l.defaultProps;for(I in F)C[I]===void 0&&(C[I]=F[I])}if(O||H){var j=typeof l=="function"?l.displayName||l.name||"Unknown":l;O&&Ai(C,j),H&&Pi(C,j)}return ki(l,O,H,A,E,tt.current,C)}}var Ut=w.ReactCurrentOwner,Jn=w.ReactDebugCurrentFrame;function $e(l){if(l){var p=l._owner,b=mt(l.type,l._source,p?p.type:null);Jn.setExtraStackFrame(b)}else Jn.setExtraStackFrame(null)}var Yt;Yt=!1;function zt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function Kn(){{if(Ut.current){var l=D(Ut.current.type);if(l)return`
22
22
 
23
- Check the render method of \``+l+"`."}return""}}function Mo(l){return""}var Xn={};function Fo(l){{var p=Kn();if(!p){var b=typeof l=="string"?l:l.displayName||l.name;b&&(p=`
23
+ Check the render method of \``+l+"`."}return""}}function Mi(l){return""}var Xn={};function Fi(l){{var p=Kn();if(!p){var b=typeof l=="string"?l:l.displayName||l.name;b&&(p=`
24
24
 
25
- Check the top-level render call using <`+b+">.")}return p}}function Gn(l,p){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var b=Fo(p);if(Xn[b])return;Xn[b]=!0;var E="";l&&l._owner&&l._owner!==Ut.current&&(E=" It was passed a child from "+D(l._owner.type)+"."),$e(l),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',b,E),$e(null)}}function Zn(l,p){{if(typeof l!="object")return;if(Ht(l))for(var b=0;b<l.length;b++){var E=l[b];zt(E)&&Gn(E,p)}else if(zt(l))l._store&&(l._store.validated=!0);else if(l){var A=S(l);if(typeof A=="function"&&A!==l.entries)for(var I=A.call(l),C;!(C=I.next()).done;)zt(C.value)&&Gn(C.value,p)}}}function Lo(l){{var p=l.type;if(p==null||typeof p=="string")return;var b;if(typeof p=="function")b=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===a||p.$$typeof===h))b=p.propTypes;else return;if(b){var E=D(p);wo(b,l.props,"prop",E,l)}else if(p.PropTypes!==void 0&&!Yt){Yt=!0;var A=D(p);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function jo(l){{for(var p=Object.keys(l.props),b=0;b<p.length;b++){var E=p[b];if(E!=="children"&&E!=="key"){$e(l),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),$e(null);break}}l.ref!==null&&($e(l),_("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var Qn={};function er(l,p,b,E,A,I){{var C=X(l);if(!C){var O="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var H=Mo();H?O+=H:O+=Kn();var F;l===null?F="null":Ht(l)?F="array":l!==void 0&&l.$$typeof===t?(F="<"+(D(l.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):F=typeof l,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,O)}var j=Io(l,p,b,A,I);if(j==null)return j;if(C){var Z=p.children;if(Z!==void 0)if(E)if(Ht(Z)){for(var Ue=0;Ue<Z.length;Ue++)Zn(Z[Ue],l);Object.freeze&&Object.freeze(Z)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Zn(Z,l)}if(et.call(p,"key")){var Pe=D(l),z=Object.keys(p).filter(function(Ho){return Ho!=="key"}),qt=z.length>0?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}";if(!Qn[Pe+qt]){var Vo=z.length>0?"{"+z.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+b+">.")}return p}}function Gn(l,p){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var b=Fi(p);if(Xn[b])return;Xn[b]=!0;var E="";l&&l._owner&&l._owner!==Ut.current&&(E=" It was passed a child from "+D(l._owner.type)+"."),$e(l),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',b,E),$e(null)}}function Zn(l,p){{if(typeof l!="object")return;if(Ht(l))for(var b=0;b<l.length;b++){var E=l[b];zt(E)&&Gn(E,p)}else if(zt(l))l._store&&(l._store.validated=!0);else if(l){var A=S(l);if(typeof A=="function"&&A!==l.entries)for(var I=A.call(l),C;!(C=I.next()).done;)zt(C.value)&&Gn(C.value,p)}}}function Li(l){{var p=l.type;if(p==null||typeof p=="string")return;var b;if(typeof p=="function")b=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===a||p.$$typeof===h))b=p.propTypes;else return;if(b){var E=D(p);wi(b,l.props,"prop",E,l)}else if(p.PropTypes!==void 0&&!Yt){Yt=!0;var A=D(p);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ji(l){{for(var p=Object.keys(l.props),b=0;b<p.length;b++){var E=p[b];if(E!=="children"&&E!=="key"){$e(l),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),$e(null);break}}l.ref!==null&&($e(l),_("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var Qn={};function er(l,p,b,E,A,I){{var C=X(l);if(!C){var O="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var H=Mi();H?O+=H:O+=Kn();var F;l===null?F="null":Ht(l)?F="array":l!==void 0&&l.$$typeof===t?(F="<"+(D(l.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):F=typeof l,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,O)}var j=Ii(l,p,b,A,I);if(j==null)return j;if(C){var Z=p.children;if(Z!==void 0)if(E)if(Ht(Z)){for(var Ue=0;Ue<Z.length;Ue++)Zn(Z[Ue],l);Object.freeze&&Object.freeze(Z)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Zn(Z,l)}if(et.call(p,"key")){var Pe=D(l),z=Object.keys(p).filter(function(Hi){return Hi!=="key"}),qt=z.length>0?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}";if(!Qn[Pe+qt]){var Vi=z.length>0?"{"+z.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,qt,Pe,Vo,Pe),Qn[Pe+qt]=!0}}return l===r?jo(j):Lo(j),j}}function Do(l,p,b){return er(l,p,b,!0)}function Bo(l,p,b){return er(l,p,b,!1)}var No=Bo,Wo=Do;ze.Fragment=r,ze.jsx=No,ze.jsxs=Wo}()),ze}process.env.NODE_ENV==="production"?vt.exports=tr():vt.exports=nr();var rr=vt.exports;/*! shepherd.js 13.0.2 */function ir(e){return e instanceof Element}function qe(e){return e instanceof HTMLElement}function ge(e){return typeof e=="function"}function Je(e){return typeof e=="string"}function N(e){return e===void 0}class yt{on(t,n,r,i=!1){var s;return N(this.bindings)&&(this.bindings={}),N(this.bindings[t])&&(this.bindings[t]=[]),(s=this.bindings[t])==null||s.push({handler:n,ctx:r,once:i}),this}once(t,n,r){return this.on(t,n,r,!0)}off(t,n){if(N(this.bindings)||N(this.bindings[t]))return this;if(N(n))delete this.bindings[t];else{var r;(r=this.bindings[t])==null||r.forEach((i,s)=>{if(i.handler===n){var o;(o=this.bindings[t])==null||o.splice(s,1)}})}return this}trigger(t,...n){if(!N(this.bindings)&&this.bindings[t]){var r;(r=this.bindings[t])==null||r.forEach((i,s)=>{const{ctx:o,handler:c,once:a}=i,u=o||this;if(c.apply(u,n),a){var f;(f=this.bindings[t])==null||f.splice(s,1)}})}return this}}function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}function Xt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const me={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};me.defaultMerge;function or(e,t){return t}function Gt(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:cr(e)?1:e instanceof Set?3:e instanceof Map?4:5}function sr(e){const t=new Set;for(const n of e)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(r);return t}function lr(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function Zt(e){return{*[Symbol.iterator](){for(const t of e)for(const n of t)yield n}}}const Qt=new Set(["[object Object]","[object Module]"]);function cr(e){if(!Qt.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const n=t.prototype;return!(n===null||typeof n!="object"||!Qt.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function ar(e,t,n){const r={};for(const i of sr(e)){const s=[];for(const a of e)lr(a,i)&&s.push(a[i]);if(s.length===0)continue;const o=t.metaDataUpdater(n,{key:i,parents:e}),c=tn(s,t,o);c!==me.skip&&(i==="__proto__"?Object.defineProperty(r,i,{value:c,configurable:!0,enumerable:!0,writable:!0}):r[i]=c)}return r}function ur(e){return e.flat()}function fr(e){return new Set(Zt(e))}function dr(e){return new Map(Zt(e))}function en(e){return e.at(-1)}var _t=Object.freeze({__proto__:null,mergeArrays:ur,mergeMaps:dr,mergeOthers:en,mergeRecords:ar,mergeSets:fr});function wt(...e){return hr({})(...e)}function hr(e,t){const n=pr(e,r);function r(...i){return tn(i,n,t)}return r}function pr(e,t){var n,r;return{defaultMergeFunctions:_t,mergeFunctions:W({},_t,Object.fromEntries(Object.entries(e).filter(([i,s])=>Object.hasOwn(_t,i)).map(([i,s])=>s===!1?[i,en]:[i,s]))),metaDataUpdater:(n=e.metaDataUpdater)!=null?n:or,deepmerge:t,useImplicitDefaultMerging:(r=e.enableImplicitDefaultMerging)!=null?r:!1,actions:me}}function tn(e,t,n){if(e.length===0)return;if(e.length===1)return xt(e,t,n);const r=Gt(e[0]);if(r!==0&&r!==5){for(let i=1;i<e.length;i++)if(Gt(e[i])!==r)return xt(e,t,n)}switch(r){case 1:return gr(e,t,n);case 2:return mr(e,t,n);case 3:return br(e,t,n);case 4:return vr(e,t,n);default:return xt(e,t,n)}}function gr(e,t,n){const r=t.mergeFunctions.mergeRecords(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function mr(e,t,n){const r=t.mergeFunctions.mergeArrays(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function br(e,t,n){const r=t.mergeFunctions.mergeSets(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function vr(e,t,n){const r=t.mergeFunctions.mergeMaps(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function xt(e,t,n){const r=t.mergeFunctions.mergeOthers(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}function Et(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const r=t[n],i=e[r];r!=="constructor"&&typeof i=="function"&&(e[r]=i.bind(e))}return e}function yr(e,t){return n=>{if(e.isOpen()){const r=e.el&&n.currentTarget===e.el;(!N(t)&&n.currentTarget.matches(t)||r)&&e.tour.next()}}}function _r(e){const{event:t,selector:n}=e.options.advanceOn||{};if(t){const r=yr(e,n);let i=null;if(!N(n)&&(i=document.querySelector(n),!i))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);i?(i.addEventListener(t,r),e.on("destroy",()=>i.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class wr{constructor(t){}}class xr{constructor(t,n){}}function nn(e){return!Je(e)||e===""?"":e.charAt(e.length-1)!=="-"?`${e}-`:e}function Er(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(ge(n.element)&&(n.element=n.element.call(e)),Je(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${t.element}`)}return n}function rn(e){return e==null?!0:!e.element||!e.on}function on(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?n:n&3|8).toString(16)})}const ke=Math.min,xe=Math.max,nt=Math.round,rt=Math.floor,be=e=>({x:e,y:e}),Sr={left:"right",right:"left",bottom:"top",top:"bottom"},Or={start:"end",end:"start"};function St(e,t,n){return xe(e,ke(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function Ee(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function Ot(e){return e==="x"?"y":"x"}function Rt(e){return e==="y"?"height":"width"}function Me(e){return["top","bottom"].includes(Ee(e))?"y":"x"}function Tt(e){return Ot(Me(e))}function Rr(e,t,n){n===void 0&&(n=!1);const r=it(e),i=Tt(e),s=Rt(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=ot(o)),[o,ot(o)]}function Tr(e){const t=ot(e);return[Ct(e),t,Ct(t)]}function Ct(e){return e.replace(/start|end/g,t=>Or[t])}function Cr(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function Ar(e,t,n,r){const i=it(e);let s=Cr(Ee(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(Ct)))),s}function ot(e){return e.replace(/left|right|bottom|top/g,t=>Sr[t])}function Pr(e){return W({top:0,right:0,bottom:0,left:0},e)}function sn(e){return typeof e!="number"?Pr(e):{top:e,right:e,bottom:e,left:e}}function st(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}const kr=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Ir=["mainAxis","crossAxis","limiter"];function ln(e,t,n){let{reference:r,floating:i}=e;const s=Me(t),o=Tt(t),c=Rt(o),a=Ee(t),u=s==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,d=r[c]/2-i[c]/2;let g;switch(a){case"top":g={x:f,y:r.y-i.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-i.width,y:h};break;default:g={x:r.x,y:r.y}}switch(it(t)){case"start":g[o]-=d*(n&&u?-1:1);break;case"end":g[o]+=d*(n&&u?-1:1);break}return g}const Mr=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,c=s.filter(Boolean),a=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=ln(u,r,a),d=r,g={},v=0;for(let x=0;x<c.length;x++){const{name:S,fn:w}=c[x],{x:_,y:R,data:y,reset:m}=await w({x:f,y:h,initialPlacement:r,placement:d,strategy:i,middlewareData:g,rects:u,platform:o,elements:{reference:e,floating:t}});f=_??f,h=R??h,g=W({},g,{[S]:W({},g[S],y)}),m&&v<=50&&(v++,typeof m=="object"&&(m.placement&&(d=m.placement),m.rects&&(u=m.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):m.rects),{x:f,y:h}=ln(u,d,a)),x=-1)}return{x:f,y:h,placement:d,strategy:i,middlewareData:g}};async function cn(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:c,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:g=0}=Ie(t,e),v=sn(g),S=c[d?h==="floating"?"reference":"floating":h],w=st(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:a})),_=h==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),y=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},m=st(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:R,strategy:a}):_);return{top:(w.top-m.top+v.top)/y.y,bottom:(m.bottom-w.bottom+v.bottom)/y.y,left:(w.left-m.left+v.left)/y.x,right:(m.right-w.right+v.right)/y.x}}const Fr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:c,middlewareData:a}=t,{element:u,padding:f=0}=Ie(e,t)||{};if(u==null)return{};const h=sn(f),d={x:n,y:r},g=Tt(i),v=Rt(g),x=await o.getDimensions(u),S=g==="y",w=S?"top":"left",_=S?"bottom":"right",R=S?"clientHeight":"clientWidth",y=s.reference[v]+s.reference[g]-d[g]-s.floating[v],m=d[g]-s.reference[g],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let B=T?T[R]:0;(!B||!await(o.isElement==null?void 0:o.isElement(T)))&&(B=c.floating[R]||s.floating[v]);const le=y/2-m/2,$=B/2-x[v]/2-1,X=ke(h[w],$),U=ke(h[_],$),V=X,D=B-x[v]-U,L=B/2-x[v]/2+le,G=St(V,L,D),Y=!a.arrow&&it(i)!=null&&L!==G&&s.reference[v]/2-(L<V?X:U)-x[v]/2<0,de=Y?L<V?L-V:L-D:0;return{[g]:d[g]+de,data:W({[g]:G,centerOffset:L-G-de},Y&&{alignmentOffset:de}),reset:Y}}}),Lr=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,i;const{placement:s,middlewareData:o,rects:c,initialPlacement:a,platform:u,elements:f}=n,h=Ie(t,n),{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0}=h,_=Xt(h,kr);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const R=Ee(s),y=Me(a),m=Ee(a)===a,T=await(u.isRTL==null?void 0:u.isRTL(f.floating)),B=v||(m||!w?[ot(a)]:Tr(a)),le=S!=="none";!v&&le&&B.push(...Ar(a,w,S,T));const $=[a,...B],X=await cn(n,_),U=[];let V=((i=o.flip)==null?void 0:i.overflows)||[];if(d&&U.push(X[R]),g){const Y=Rr(s,c,T);U.push(X[Y[0]],X[Y[1]])}if(V=[...V,{placement:s,overflows:U}],!U.every(Y=>Y<=0)){var D,L;const Y=(((D=o.flip)==null?void 0:D.index)||0)+1,de=$[Y];if(de)return{data:{index:Y,overflows:V},reset:{placement:de}};let we=(L=V.filter(he=>he.overflows[0]<=0).sort((he,ne)=>he.overflows[1]-ne.overflows[1])[0])==null?void 0:L.placement;if(!we)switch(x){case"bestFit":{var G;const he=(G=V.filter(ne=>{if(le){const re=Me(ne.placement);return re===y||re==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(re=>re>0).reduce((re,ht)=>re+ht,0)]).sort((ne,re)=>ne[1]-re[1])[0])==null?void 0:G[0];he&&(we=he);break}case"initialPlacement":we=a;break}if(s!==we)return{reset:{placement:we}}}return{}}}},jr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:i,placement:s}=n,o=Ie(t,n),{mainAxis:c=!0,crossAxis:a=!1,limiter:u={fn:_=>{let{x:R,y}=_;return{x:R,y}}}}=o,f=Xt(o,Ir),h={x:r,y:i},d=await cn(n,f),g=Me(Ee(s)),v=Ot(g);let x=h[v],S=h[g];if(c){const _=v==="y"?"top":"left",R=v==="y"?"bottom":"right",y=x+d[_],m=x-d[R];x=St(y,x,m)}if(a){const _=g==="y"?"top":"left",R=g==="y"?"bottom":"right",y=S+d[_],m=S-d[R];S=St(y,S,m)}const w=u.fn(W({},n,{[v]:x,[g]:S}));return W({},w,{data:{x:w.x-r,y:w.y-i}})}}},Dr=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:r,y:i,placement:s,rects:o,middlewareData:c}=n,{offset:a=0,mainAxis:u=!0,crossAxis:f=!0}=Ie(t,n),h={x:r,y:i},d=Me(s),g=Ot(d);let v=h[g],x=h[d];const S=Ie(a,n),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:W({mainAxis:0,crossAxis:0},S);if(u){const y=g==="y"?"height":"width",m=o.reference[g]-o.floating[y]+w.mainAxis,T=o.reference[g]+o.reference[y]-w.mainAxis;v<m?v=m:v>T&&(v=T)}if(f){var _,R;const y=g==="y"?"width":"height",m=["top","left"].includes(Ee(s)),T=o.reference[d]-o.floating[y]+(m&&((_=c.offset)==null?void 0:_[d])||0)+(m?0:w.crossAxis),B=o.reference[d]+o.reference[y]+(m?0:((R=c.offset)==null?void 0:R[d])||0)-(m?w.crossAxis:0);x<T?x=T:x>B&&(x=B)}return{[g]:v,[d]:x}}}};function Fe(e){return an(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ce(e){var t;return(t=(an(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function an(e){return e instanceof Node||e instanceof q(e).Node}function Q(e){return e instanceof Element||e instanceof q(e).Element}function oe(e){return e instanceof HTMLElement||e instanceof q(e).HTMLElement}function un(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function Ke(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Br(e){return["table","td","th"].includes(Fe(e))}function lt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function At(e){const t=Pt(),n=Q(e)?ee(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Nr(e){let t=ve(e);for(;oe(t)&&!Le(t);){if(At(t))return t;if(lt(t))return null;t=ve(t)}return null}function Pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Le(e){return["html","body","#document"].includes(Fe(e))}function ee(e){return q(e).getComputedStyle(e)}function ct(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ve(e){if(Fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||un(e)&&e.host||ce(e);return un(t)?t.host:t}function fn(e){const t=ve(e);return Le(t)?e.ownerDocument?e.ownerDocument.body:e.body:oe(t)&&Ke(t)?t:fn(t)}function Xe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=fn(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=q(i);return s?t.concat(o,o.visualViewport||[],Ke(i)?i:[],o.frameElement&&n?Xe(o.frameElement):[]):t.concat(i,Xe(i,[],n))}function dn(e){const t=ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=oe(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,c=nt(n)!==s||nt(r)!==o;return c&&(n=s,r=o),{width:n,height:r,$:c}}function kt(e){return Q(e)?e:e.contextElement}function je(e){const t=kt(e);if(!oe(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=dn(t);let o=(s?nt(n.width):n.width)/r,c=(s?nt(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const Wr=be(0);function hn(e){const t=q(e);return!Pt()||!t.visualViewport?Wr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function Se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=kt(e);let o=be(1);t&&(r?Q(r)&&(o=je(r)):o=je(e));const c=Vr(s,n,r)?hn(s):be(0);let a=(i.left+c.x)/o.x,u=(i.top+c.y)/o.y,f=i.width/o.x,h=i.height/o.y;if(s){const d=q(s),g=r&&Q(r)?q(r):r;let v=d,x=v.frameElement;for(;x&&r&&g!==v;){const S=je(x),w=x.getBoundingClientRect(),_=ee(x),R=w.left+(x.clientLeft+parseFloat(_.paddingLeft))*S.x,y=w.top+(x.clientTop+parseFloat(_.paddingTop))*S.y;a*=S.x,u*=S.y,f*=S.x,h*=S.y,a+=R,u+=y,v=q(x),x=v.frameElement}}return st({width:f,height:h,x:a,y:u})}function Hr(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=ce(r),c=t?lt(t.floating):!1;if(r===o||c&&s)return n;let a={scrollLeft:0,scrollTop:0},u=be(1);const f=be(0),h=oe(r);if((h||!h&&!s)&&((Fe(r)!=="body"||Ke(o))&&(a=ct(r)),oe(r))){const d=Se(r);u=je(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x,y:n.y*u.y-a.scrollTop*u.y+f.y}}function $r(e){return Array.from(e.getClientRects())}function pn(e){return Se(ce(e)).left+ct(e).scrollLeft}function Ur(e){const t=ce(e),n=ct(e),r=e.ownerDocument.body,i=xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+pn(e);const c=-n.scrollTop;return ee(r).direction==="rtl"&&(o+=xe(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:c}}function Yr(e,t){const n=q(e),r=ce(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,c=0,a=0;if(i){s=i.width,o=i.height;const u=Pt();(!u||u&&t==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:s,height:o,x:c,y:a}}function zr(e,t){const n=Se(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=oe(e)?je(e):be(1),o=e.clientWidth*s.x,c=e.clientHeight*s.y,a=i*s.x,u=r*s.y;return{width:o,height:c,x:a,y:u}}function gn(e,t,n){let r;if(t==="viewport")r=Yr(e,n);else if(t==="document")r=Ur(ce(e));else if(Q(t))r=zr(t,n);else{const i=hn(e);r=W({},t,{x:t.x-i.x,y:t.y-i.y})}return st(r)}function mn(e,t){const n=ve(e);return n===t||!Q(n)||Le(n)?!1:ee(n).position==="fixed"||mn(n,t)}function qr(e,t){const n=t.get(e);if(n)return n;let r=Xe(e,[],!1).filter(c=>Q(c)&&Fe(c)!=="body"),i=null;const s=ee(e).position==="fixed";let o=s?ve(e):e;for(;Q(o)&&!Le(o);){const c=ee(o),a=At(o);!a&&c.position==="fixed"&&(i=null),(s?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ke(o)&&!a&&mn(e,o))?r=r.filter(f=>f!==o):i=c,o=ve(o)}return t.set(e,r),r}function Jr(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?lt(t)?[]:qr(t,this._c):[].concat(n),r],c=o[0],a=o.reduce((u,f)=>{const h=gn(t,f,i);return u.top=xe(h.top,u.top),u.right=ke(h.right,u.right),u.bottom=ke(h.bottom,u.bottom),u.left=xe(h.left,u.left),u},gn(t,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Kr(e){const{width:t,height:n}=dn(e);return{width:t,height:n}}function Xr(e,t,n){const r=oe(t),i=ce(t),s=n==="fixed",o=Se(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const a=be(0);if(r||!r&&!s)if((Fe(t)!=="body"||Ke(i))&&(c=ct(t)),r){const h=Se(t,!0,s,t);a.x=h.x+t.clientLeft,a.y=h.y+t.clientTop}else i&&(a.x=pn(i));const u=o.left+c.scrollLeft-a.x,f=o.top+c.scrollTop-a.y;return{x:u,y:f,width:o.width,height:o.height}}function It(e){return ee(e).position==="static"}function bn(e,t){return!oe(e)||ee(e).position==="fixed"?null:t?t(e):e.offsetParent}function vn(e,t){const n=q(e);if(lt(e))return n;if(!oe(e)){let i=ve(e);for(;i&&!Le(i);){if(Q(i)&&!It(i))return i;i=ve(i)}return n}let r=bn(e,t);for(;r&&Br(r)&&It(r);)r=bn(r,t);return r&&Le(r)&&It(r)&&!At(r)?n:r||Nr(e)||n}const Gr=async function(t){const n=this.getOffsetParent||vn,r=this.getDimensions,i=await r(t.floating);return{reference:Xr(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Zr(e){return ee(e).direction==="rtl"}const Qr={convertOffsetParentRelativeRectToViewportRelativeRect:Hr,getDocumentElement:ce,getClippingRect:Jr,getOffsetParent:vn,getElementRects:Gr,getClientRects:$r,getDimensions:Kr,getScale:je,isElement:Q,isRTL:Zr};function ei(e,t){let n=null,r;const i=ce(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function o(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),s();const{left:u,top:f,width:h,height:d}=e.getBoundingClientRect();if(c||t(),!h||!d)return;const g=rt(f),v=rt(i.clientWidth-(u+h)),x=rt(i.clientHeight-(f+d)),S=rt(u),_={rootMargin:-g+"px "+-v+"px "+-x+"px "+-S+"px",threshold:xe(0,ke(1,a))||1};let R=!0;function y(m){const T=m[0].intersectionRatio;if(T!==a){if(!R)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}R=!1}try{n=new IntersectionObserver(y,W({},_,{root:i.ownerDocument}))}catch{n=new IntersectionObserver(y,_)}n.observe(e)}return o(!0),s}function ti(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=kt(e),f=i||s?[...u?Xe(u):[],...Xe(t)]:[];f.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const h=u&&c?ei(u,n):null;let d=-1,g=null;o&&(g=new ResizeObserver(w=>{let[_]=w;_&&_.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var R;(R=g)==null||R.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let v,x=a?Se(e):null;a&&S();function S(){const w=Se(e);x&&(w.x!==x.x||w.y!==x.y||w.width!==x.width||w.height!==x.height)&&n(),x=w,v=requestAnimationFrame(S)}return n(),()=>{var w;f.forEach(_=>{i&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),h==null||h(),(w=g)==null||w.disconnect(),g=null,a&&cancelAnimationFrame(v)}}const ni=jr,ri=Lr,ii=Fr,oi=Dr,si=(e,t,n)=>{const r=new Map,i=W({platform:Qr},n),s=W({},i.platform,{_c:r});return Mr(e,t,W({},i,{platform:s}))};function li(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const r=hi(t,e),i=rn(t);return i&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd-centered")),e.cleanup=ti(n,e.el,()=>{if(!e.el){e.cleanup==null||e.cleanup();return}ui(n,e,r,i)}),e.target=t.element,r}function ci(e,t){return{floatingUIOptions:wt(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function ai(e){e.cleanup&&e.cleanup(),e.cleanup=null}function ui(e,t,n,r){return si(e,t.el,n).then(fi(t,r)).then(i=>new Promise(s=>{setTimeout(()=>s(i),300)})).then(i=>{i!=null&&i.el&&i.el.focus({preventScroll:!0})})}function fi(e,t){return({x:n,y:r,placement:i,middlewareData:s})=>(e.el&&(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),e.el.dataset.popperPlacement=i,di(e.el,s)),e)}function di(e,t){const n=e.querySelector(".shepherd-arrow");if(qe(n)&&t.arrow){const{x:r,y:i}=t.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:i!=null?`${i}px`:""})}}function hi(e,t){const n={strategy:"absolute"};n.middleware=[];const r=pi(t);if(!rn(e)){if(n.middleware.push(ri(),ni({limiter:oi(),crossAxis:!0})),r){var s,o;const c=(e==null||(s=e.on)==null?void 0:s.includes("-start"))||(e==null||(o=e.on)==null?void 0:o.includes("-end"));n.middleware.push(ii({element:r,padding:c?4:0}))}n.placement=e.on}return wt(t.options.floatingUIOptions||{},n)}function pi(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):!1}function J(){}function gi(e,t){for(const n in t)e[n]=t[n];return e}function yn(e){return e()}function _n(){return Object.create(null)}function Ge(e){e.forEach(yn)}function Mt(e){return typeof e=="function"}function ae(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function mi(e){return Object.keys(e).length===0}function De(e,t){e.appendChild(t)}function te(e,t,n){e.insertBefore(t,n||null)}function K(e){e.parentNode&&e.parentNode.removeChild(e)}function bi(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function se(e){return document.createElement(e)}function wn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function xn(e){return document.createTextNode(e)}function at(){return xn(" ")}function vi(){return xn("")}function ut(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function k(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const yi=["width","height"];function En(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&yi.indexOf(r)===-1?e[r]=t[r]:k(e,r,t[r])}function _i(e){return Array.from(e.childNodes)}function Be(e,t,n){e.classList.toggle(t,!!n)}let Ze;function Qe(e){Ze=e}function Sn(){if(!Ze)throw new Error("Function called outside component initialization");return Ze}function wi(e){Sn().$$.on_mount.push(e)}function Ft(e){Sn().$$.after_update.push(e)}const Ne=[],We=[];let Ve=[];const On=[],xi=Promise.resolve();let Lt=!1;function Ei(){Lt||(Lt=!0,xi.then(Rn))}function jt(e){Ve.push(e)}const Dt=new Set;let He=0;function Rn(){if(He!==0)return;const e=Ze;do{try{for(;He<Ne.length;){const t=Ne[He];He++,Qe(t),Si(t.$$)}}catch(t){throw Ne.length=0,He=0,t}for(Qe(null),Ne.length=0,He=0;We.length;)We.pop()();for(let t=0;t<Ve.length;t+=1){const n=Ve[t];Dt.has(n)||(Dt.add(n),n())}Ve.length=0}while(Ne.length);for(;On.length;)On.pop()();Lt=!1,Dt.clear(),Qe(e)}function Si(e){if(e.fragment!==null){e.update(),Ge(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(jt)}}function Oi(e){const t=[],n=[];Ve.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ve=t}const ft=new Set;let Oe;function Re(){Oe={r:0,c:[],p:Oe}}function Te(){Oe.r||Ge(Oe.c),Oe=Oe.p}function P(e,t){e&&e.i&&(ft.delete(e),e.i(t))}function M(e,t,n,r){if(e&&e.o){if(ft.has(e))return;ft.add(e),Oe.c.push(()=>{ft.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Tn(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ri(e,t){const n={},r={},i={$$scope:1};let s=e.length;for(;s--;){const o=e[s],c=t[s];if(c){for(const a in o)a in c||(r[a]=1);for(const a in c)i[a]||(n[a]=c[a],i[a]=1);e[s]=c}else for(const a in o)i[a]=1}for(const o in r)o in n||(n[o]=void 0);return n}function Ce(e){e&&e.c()}function ye(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),jt(()=>{const s=e.$$.on_mount.map(yn).filter(Mt);e.$$.on_destroy?e.$$.on_destroy.push(...s):Ge(s),e.$$.on_mount=[]}),i.forEach(jt)}function _e(e,t){const n=e.$$;n.fragment!==null&&(Oi(n.after_update),Ge(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ti(e,t){e.$$.dirty[0]===-1&&(Ne.push(e),Ei(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ue(e,t,n,r,i,s,o=null,c=[-1]){const a=Ze;Qe(e);const u=e.$$={fragment:null,ctx:[],props:s,update:J,not_equal:i,bound:_n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:_n(),dirty:c,skip_bound:!1,root:t.target||a.$$.root};o&&o(u.root);let f=!1;if(u.ctx=n?n(e,t.props||{},(h,d,...g)=>{const v=g.length?g[0]:d;return u.ctx&&i(u.ctx[h],u.ctx[h]=v)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](v),f&&Ti(e,h)),d}):[],u.update(),f=!0,Ge(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const h=_i(t.target);u.fragment&&u.fragment.l(h),h.forEach(K)}else u.fragment&&u.fragment.c();t.intro&&P(e.$$.fragment),ye(e,t.target,t.anchor),Rn()}Qe(a)}class fe{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){_e(this,1),this.$destroy=J}$on(t,n){if(!Mt(n))return J;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!mi(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ci="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ci);function Ai(e){let t,n,r,i,s;return{c(){t=se("button"),k(t,"aria-label",n=e[3]?e[3]:null),k(t,"class",r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],k(t,"tabindex","0"),k(t,"type","button")},m(o,c){te(o,t,c),t.innerHTML=e[5],i||(s=ut(t,"click",function(){Mt(e[0])&&e[0].apply(this,arguments)}),i=!0)},p(o,[c]){e=o,c&32&&(t.innerHTML=e[5]),c&8&&n!==(n=e[3]?e[3]:null)&&k(t,"aria-label",n),c&18&&r!==(r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&k(t,"class",r),c&4&&(t.disabled=e[2])},i:J,o:J,d(o){o&&K(t),i=!1,s()}}}function Pi(e,t,n){let{config:r,step:i}=t,s,o,c,a,u,f;function h(d){return ge(d)?d=d.call(i):d}return e.$$set=d=>{"config"in d&&n(6,r=d.config),"step"in d&&n(7,i=d.step)},e.$$.update=()=>{e.$$.dirty&192&&(n(0,s=r.action?r.action.bind(i.tour):null),n(1,o=r.classes),n(2,c=r.disabled?h(r.disabled):!1),n(3,a=r.label?h(r.label):null),n(4,u=r.secondary),n(5,f=r.text?h(r.text):null))},[s,o,c,a,u,f,r,i]}class ki extends fe{constructor(t){super(),ue(this,t,Pi,Ai,ae,{config:6,step:7})}}function Cn(e,t,n){const r=e.slice();return r[2]=t[n],r}function An(e){let t,n,r=Tn(e[1]),i=[];for(let o=0;o<r.length;o+=1)i[o]=Pn(Cn(e,r,o));const s=o=>M(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();t=vi()},m(o,c){for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(o,c);te(o,t,c),n=!0},p(o,c){if(c&3){r=Tn(o[1]);let a;for(a=0;a<r.length;a+=1){const u=Cn(o,r,a);i[a]?(i[a].p(u,c),P(i[a],1)):(i[a]=Pn(u),i[a].c(),P(i[a],1),i[a].m(t.parentNode,t))}for(Re(),a=r.length;a<i.length;a+=1)s(a);Te()}},i(o){if(!n){for(let c=0;c<r.length;c+=1)P(i[c]);n=!0}},o(o){i=i.filter(Boolean);for(let c=0;c<i.length;c+=1)M(i[c]);n=!1},d(o){o&&K(t),bi(i,o)}}}function Pn(e){let t,n;return t=new ki({props:{config:e[2],step:e[0]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&2&&(s.config=r[2]),i&1&&(s.step=r[0]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Ii(e){let t,n,r=e[1]&&An(e);return{c(){t=se("footer"),r&&r.c(),k(t,"class","shepherd-footer")},m(i,s){te(i,t,s),r&&r.m(t,null),n=!0},p(i,[s]){i[1]?r?(r.p(i,s),s&2&&P(r,1)):(r=An(i),r.c(),P(r,1),r.m(t,null)):r&&(Re(),M(r,1,1,()=>{r=null}),Te())},i(i){n||(P(r),n=!0)},o(i){M(r),n=!1},d(i){i&&K(t),r&&r.d()}}}function Mi(e,t,n){let r,{step:i}=t;return e.$$set=s=>{"step"in s&&n(0,i=s.step)},e.$$.update=()=>{e.$$.dirty&1&&n(1,r=i.options.buttons)},[i,r]}class Fi extends fe{constructor(t){super(),ue(this,t,Mi,Ii,ae,{step:0})}}function Li(e){let t,n,r,i,s;return{c(){t=se("button"),n=se("span"),n.textContent="×",k(n,"aria-hidden","true"),k(t,"aria-label",r=e[0].label?e[0].label:"Close Tour"),k(t,"class","shepherd-cancel-icon"),k(t,"type","button")},m(o,c){te(o,t,c),De(t,n),i||(s=ut(t,"click",e[1]),i=!0)},p(o,[c]){c&1&&r!==(r=o[0].label?o[0].label:"Close Tour")&&k(t,"aria-label",r)},i:J,o:J,d(o){o&&K(t),i=!1,s()}}}function ji(e,t,n){let{cancelIcon:r,step:i}=t;const s=o=>{o.preventDefault(),i.cancel()};return e.$$set=o=>{"cancelIcon"in o&&n(0,r=o.cancelIcon),"step"in o&&n(2,i=o.step)},[r,s,i]}class Di extends fe{constructor(t){super(),ue(this,t,ji,Li,ae,{cancelIcon:0,step:2})}}function Bi(e){let t;return{c(){t=se("h3"),k(t,"id",e[1]),k(t,"class","shepherd-title")},m(n,r){te(n,t,r),e[3](t)},p(n,[r]){r&2&&k(t,"id",n[1])},i:J,o:J,d(n){n&&K(t),e[3](null)}}}function Ni(e,t,n){let{labelId:r,element:i,title:s}=t;Ft(()=>{ge(s)&&n(2,s=s()),n(0,i.innerHTML=s,i)});function o(c){We[c?"unshift":"push"](()=>{i=c,n(0,i)})}return e.$$set=c=>{"labelId"in c&&n(1,r=c.labelId),"element"in c&&n(0,i=c.element),"title"in c&&n(2,s=c.title)},[i,r,s,o]}class Wi extends fe{constructor(t){super(),ue(this,t,Ni,Bi,ae,{labelId:1,element:0,title:2})}}function kn(e){let t,n;return t=new Wi({props:{labelId:e[0],title:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&1&&(s.labelId=r[0]),i&4&&(s.title=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function In(e){let t,n;return t=new Di({props:{cancelIcon:e[3],step:e[1]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&8&&(s.cancelIcon=r[3]),i&2&&(s.step=r[1]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Vi(e){let t,n,r,i=e[2]&&kn(e),s=e[3]&&e[3].enabled&&In(e);return{c(){t=se("header"),i&&i.c(),n=at(),s&&s.c(),k(t,"class","shepherd-header")},m(o,c){te(o,t,c),i&&i.m(t,null),De(t,n),s&&s.m(t,null),r=!0},p(o,[c]){o[2]?i?(i.p(o,c),c&4&&P(i,1)):(i=kn(o),i.c(),P(i,1),i.m(t,n)):i&&(Re(),M(i,1,1,()=>{i=null}),Te()),o[3]&&o[3].enabled?s?(s.p(o,c),c&8&&P(s,1)):(s=In(o),s.c(),P(s,1),s.m(t,null)):s&&(Re(),M(s,1,1,()=>{s=null}),Te())},i(o){r||(P(i),P(s),r=!0)},o(o){M(i),M(s),r=!1},d(o){o&&K(t),i&&i.d(),s&&s.d()}}}function Hi(e,t,n){let{labelId:r,step:i}=t,s,o;return e.$$set=c=>{"labelId"in c&&n(0,r=c.labelId),"step"in c&&n(1,i=c.step)},e.$$.update=()=>{e.$$.dirty&2&&(n(2,s=i.options.title),n(3,o=i.options.cancelIcon))},[r,i,s,o]}class $i extends fe{constructor(t){super(),ue(this,t,Hi,Vi,ae,{labelId:0,step:1})}}function Ui(e){let t;return{c(){t=se("div"),k(t,"class","shepherd-text"),k(t,"id",e[1])},m(n,r){te(n,t,r),e[3](t)},p(n,[r]){r&2&&k(t,"id",n[1])},i:J,o:J,d(n){n&&K(t),e[3](null)}}}function Yi(e,t,n){let{descriptionId:r,element:i,step:s}=t;Ft(()=>{let{text:c}=s.options;ge(c)&&(c=c.call(s)),qe(c)?i.appendChild(c):n(0,i.innerHTML=c,i)});function o(c){We[c?"unshift":"push"](()=>{i=c,n(0,i)})}return e.$$set=c=>{"descriptionId"in c&&n(1,r=c.descriptionId),"element"in c&&n(0,i=c.element),"step"in c&&n(2,s=c.step)},[i,r,s,o]}class zi extends fe{constructor(t){super(),ue(this,t,Yi,Ui,ae,{descriptionId:1,element:0,step:2})}}function Mn(e){let t,n;return t=new $i({props:{labelId:e[1],step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&2&&(s.labelId=r[1]),i&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Fn(e){let t,n;return t=new zi({props:{descriptionId:e[0],step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&1&&(s.descriptionId=r[0]),i&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Ln(e){let t,n;return t=new Fi({props:{step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function qi(e){let t,n=!N(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,r,i=!N(e[2].options.text),s,o=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,c,a=n&&Mn(e),u=i&&Fn(e),f=o&&Ln(e);return{c(){t=se("div"),a&&a.c(),r=at(),u&&u.c(),s=at(),f&&f.c(),k(t,"class","shepherd-content")},m(h,d){te(h,t,d),a&&a.m(t,null),De(t,r),u&&u.m(t,null),De(t,s),f&&f.m(t,null),c=!0},p(h,[d]){d&4&&(n=!N(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?a?(a.p(h,d),d&4&&P(a,1)):(a=Mn(h),a.c(),P(a,1),a.m(t,r)):a&&(Re(),M(a,1,1,()=>{a=null}),Te()),d&4&&(i=!N(h[2].options.text)),i?u?(u.p(h,d),d&4&&P(u,1)):(u=Fn(h),u.c(),P(u,1),u.m(t,s)):u&&(Re(),M(u,1,1,()=>{u=null}),Te()),d&4&&(o=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),o?f?(f.p(h,d),d&4&&P(f,1)):(f=Ln(h),f.c(),P(f,1),f.m(t,null)):f&&(Re(),M(f,1,1,()=>{f=null}),Te())},i(h){c||(P(a),P(u),P(f),c=!0)},o(h){M(a),M(u),M(f),c=!1},d(h){h&&K(t),a&&a.d(),u&&u.d(),f&&f.d()}}}function Ji(e,t,n){let{descriptionId:r,labelId:i,step:s}=t;return e.$$set=o=>{"descriptionId"in o&&n(0,r=o.descriptionId),"labelId"in o&&n(1,i=o.labelId),"step"in o&&n(2,s=o.step)},[r,i,s]}class Ki extends fe{constructor(t){super(),ue(this,t,Ji,qi,ae,{descriptionId:0,labelId:1,step:2})}}function jn(e){let t;return{c(){t=se("div"),k(t,"class","shepherd-arrow"),k(t,"data-popper-arrow","")},m(n,r){te(n,t,r)},d(n){n&&K(t)}}}function Xi(e){let t,n,r,i,s,o,c,a,u=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&jn();r=new Ki({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let f=[{"aria-describedby":i=N(e[4].options.text)?null:e[2]},{"aria-labelledby":s=e[4].options.title?e[3]:null},e[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=gi(h,f[d]);return{c(){t=se("div"),u&&u.c(),n=at(),Ce(r.$$.fragment),En(t,h),Be(t,"shepherd-has-cancel-icon",e[5]),Be(t,"shepherd-has-title",e[6]),Be(t,"shepherd-element",!0)},m(d,g){te(d,t,g),u&&u.m(t,null),De(t,n),ye(r,t,null),e[13](t),o=!0,c||(a=ut(t,"keydown",e[7]),c=!0)},p(d,[g]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?u||(u=jn(),u.c(),u.m(t,n)):u&&(u.d(1),u=null);const v={};g&4&&(v.descriptionId=d[2]),g&8&&(v.labelId=d[3]),g&16&&(v.step=d[4]),r.$set(v),En(t,h=Ri(f,[(!o||g&20&&i!==(i=N(d[4].options.text)?null:d[2]))&&{"aria-describedby":i},(!o||g&24&&s!==(s=d[4].options.title?d[3]:null))&&{"aria-labelledby":s},g&2&&d[1],{role:"dialog"},{tabindex:"0"}])),Be(t,"shepherd-has-cancel-icon",d[5]),Be(t,"shepherd-has-title",d[6]),Be(t,"shepherd-element",!0)},i(d){o||(P(r.$$.fragment,d),o=!0)},o(d){M(r.$$.fragment,d),o=!1},d(d){d&&K(t),u&&u.d(),_e(r),e[13](null),c=!1,a()}}}const Gi=9,Zi=27,Qi=37,eo=39;function Dn(e){return e.split(" ").filter(t=>!!t.length)}function to(e,t,n){let{classPrefix:r,element:i,descriptionId:s,firstFocusableElement:o,focusableElements:c,labelId:a,lastFocusableElement:u,step:f,dataStepId:h}=t,d,g,v;const x=()=>i;wi(()=>{n(1,h={[`data-${r}shepherd-step-id`]:f.id}),n(9,c=i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,o=c[0]),n(10,u=c[c.length-1])}),Ft(()=>{v!==f.options.classes&&S()});function S(){w(v),v=f.options.classes,_(v)}function w(m){if(Je(m)){const T=Dn(m);T.length&&i.classList.remove(...T)}}function _(m){if(Je(m)){const T=Dn(m);T.length&&i.classList.add(...T)}}const R=m=>{const{tour:T}=f;switch(m.keyCode){case Gi:if(c.length===0){m.preventDefault();break}m.shiftKey?(document.activeElement===o||document.activeElement.classList.contains("shepherd-element"))&&(m.preventDefault(),u.focus()):document.activeElement===u&&(m.preventDefault(),o.focus());break;case Zi:T.options.exitOnEsc&&(m.preventDefault(),m.stopPropagation(),f.cancel());break;case Qi:T.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),T.back());break;case eo:T.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),T.next());break}};function y(m){We[m?"unshift":"push"](()=>{i=m,n(0,i)})}return e.$$set=m=>{"classPrefix"in m&&n(11,r=m.classPrefix),"element"in m&&n(0,i=m.element),"descriptionId"in m&&n(2,s=m.descriptionId),"firstFocusableElement"in m&&n(8,o=m.firstFocusableElement),"focusableElements"in m&&n(9,c=m.focusableElements),"labelId"in m&&n(3,a=m.labelId),"lastFocusableElement"in m&&n(10,u=m.lastFocusableElement),"step"in m&&n(4,f=m.step),"dataStepId"in m&&n(1,h=m.dataStepId)},e.$$.update=()=>{e.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,g=f.options&&f.options.title))},[i,h,s,a,f,d,g,R,o,c,u,r,x,y]}class no extends fe{constructor(t){super(),ue(this,t,to,Xi,ae,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class Bt extends yt{constructor(t,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?nn(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,Et(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ai(this),qe(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var t;(t=this.tour.modal)==null||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=Er(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return ge(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const t=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new no({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();ge(this.options.scrollToHandler)?this.options.scrollToHandler(n):ir(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(t)}_getClassOptions(t){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=t.classes?t.classes:"",i=n&&n.classes?n.classes:"",s=[...r.split(" "),...i.split(" ")],o=new Set(s);return Array.from(o).join(" ").trim()}_setOptions(t={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=wt({},n||{}),this.options=Object.assign({arrow:!0},n,t,ci(n,t));const{when:r}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${on()}`,r&&Object.keys(r).forEach(i=>{this.on(i,r[i],this)})}_setupElements(){N(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&_r(this),li(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(t=this.tour.modal)==null||t.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),r=this.target||document.body;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(t){const n=t.target;n&&(t.options.highlightClass&&n.classList.add(t.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),t.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const t=this.target||document.body;this.options.highlightClass&&t.classList.remove(this.options.highlightClass),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function ro(e){if(e){const{steps:t}=e;t.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&qe(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function io({width:e,height:t,x:n=0,y:r=0,r:i=0}){const{innerWidth:s,innerHeight:o}=window,{topLeft:c=0,topRight:a=0,bottomRight:u=0,bottomLeft:f=0}=typeof i=="number"?{topLeft:i,topRight:i,bottomRight:i,bottomLeft:i}:i;return`M${s},${o}H0V0H${s}V${o}ZM${n+c},${r}a${c},${c},0,0,0-${c},${c}V${t+r-f}a${f},${f},0,0,0,${f},${f}H${e+n-u}a${u},${u},0,0,0,${u}-${u}V${r+a}a${a},${a},0,0,0-${a}-${a}Z`}function oo(e){let t,n,r,i,s;return{c(){t=wn("svg"),n=wn("path"),k(n,"d",e[2]),k(t,"class",r=`${e[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(o,c){te(o,t,c),De(t,n),e[11](t),i||(s=ut(t,"touchmove",e[3]),i=!0)},p(o,[c]){c&4&&k(n,"d",o[2]),c&2&&r!==(r=`${o[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&k(t,"class",r)},i:J,o:J,d(o){o&&K(t),e[11](null),i=!1,s()}}}function Bn(e){if(!e)return null;const n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return n!=="hidden"&&n!=="visible"&&e.scrollHeight>=e.clientHeight?e:Bn(e.parentElement)}function so(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;for(;n!==window.top;){var r;const o=(r=n)==null?void 0:r.frameElement;if(o){var i,s;const c=o.getBoundingClientRect();t.top+=c.top+((i=c.scrollTop)!=null?i:0),t.left+=c.left+((s=c.scrollLeft)!=null?s:0)}n=n.parent}return t}function lo(e,t){const n=e.getBoundingClientRect();let r=n.y||n.top,i=n.bottom||r+n.height;if(t){const o=t.getBoundingClientRect(),c=o.y||o.top,a=o.bottom||c+o.height;r=Math.max(r,c),i=Math.min(i,a)}const s=Math.max(i-r,0);return{y:r,height:s}}function co(e,t,n){let{element:r,openingProperties:i}=t,s=!1,o,c;u();const a=()=>r;function u(){n(4,i={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,s=!1),w()}function h(y=0,m=0,T=0,B=0,le,$){if($){const{y:X,height:U}=lo($,le),{x:V,width:D,left:L}=$.getBoundingClientRect();n(4,i={width:D+y*2,height:U+y*2,x:(V||L)+T-y,y:X+B-y,r:m})}else u()}function d(y){w(),y.tour.options.useModalOverlay?(_(y),g()):f()}function g(){n(1,s=!0)}const v=y=>{y.preventDefault()},x=y=>{y.stopPropagation()};function S(){window.addEventListener("touchmove",v,{passive:!1})}function w(){o&&(cancelAnimationFrame(o),o=void 0),window.removeEventListener("touchmove",v,{passive:!1})}function _(y){const{modalOverlayOpeningPadding:m,modalOverlayOpeningRadius:T,modalOverlayOpeningXOffset:B=0,modalOverlayOpeningYOffset:le=0}=y.options,$=so(y.target),X=Bn(y.target),U=()=>{o=void 0,h(m,T,B+$.left,le+$.top,X,y.target),o=requestAnimationFrame(U)};U(),S()}function R(y){We[y?"unshift":"push"](()=>{r=y,n(0,r)})}return e.$$set=y=>{"element"in y&&n(0,r=y.element),"openingProperties"in y&&n(4,i=y.openingProperties)},e.$$.update=()=>{e.$$.dirty&16&&n(2,c=io(i))},[r,s,c,x,i,a,u,f,h,d,g,R]}class ao extends fe{constructor(t){super(),ue(this,t,co,oo,ae,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}class uo extends yt{constructor(){super(),this.activeTour=void 0,Et(this)}}class fo extends yt{constructor(t={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,Et(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,t),this.classPrefix=nn(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(i=>{(s=>{this.on(s,o=>{o=o||{},o.tour=this,Ae.trigger(s,o)})})(i)}),this._setTourID(t.id),this}addStep(t,n){let r=t;return r instanceof Bt?r.tour=this:r=new Bt(this,r),N(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(t){return Array.isArray(t)&&t.forEach(n=>{this.addStep(n)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;ge(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(n=>n.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return Ae.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}removeStep(t){const n=this.getCurrentStep();this.steps.some((r,i)=>{if(r.id===t)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(i,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,n=!0){const r=Je(t)?this.getById(t):this.steps[t];r&&(this._updateStateBeforeShow(),ge(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.trigger("show",{step:r,previous:this.currentStep}),this.currentStep=r,r.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(t){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),ro(this),this.trigger(t,{index:n}),Ae.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(t==="cancel"||t==="complete")&&this.modal){const r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}qe(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Ae.activeTour=this}setupModal(){this.modal=new ao({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(t,n){const r=this.steps.indexOf(t);if(r===this.steps.length-1)this.complete();else{const i=n?r+1:r-1;this.show(i,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const n=this.options.tourName||"tour",r=t||on();this.id=`${n}--${r}`}}const Ae=new uo,Nn=typeof window>"u";Ae.Step=Nn?wr:Bt,Ae.Tour=Nn?xr:fo;const dt=pe.createContext(void 0),ho=dt.Consumer,po=()=>{const e=pe.useContext(dt);if(!e)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:t}=e;return t},go=({children:e})=>rr.jsx(dt.Provider,{value:{Shepherd:Ae},children:e});ie.JourneyMethods=ho,ie.ShepherdJourneyContext=dt,ie.ShepherdJourneyProvider=go,ie.useShepherd=po,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,qt,Pe,Vi,Pe),Qn[Pe+qt]=!0}}return l===r?ji(j):Li(j),j}}function Di(l,p,b){return er(l,p,b,!0)}function Bi(l,p,b){return er(l,p,b,!1)}var Ni=Bi,Wi=Di;ze.Fragment=r,ze.jsx=Ni,ze.jsxs=Wi}()),ze}process.env.NODE_ENV==="production"?vt.exports=tr():vt.exports=nr();var rr=vt.exports;/*! shepherd.js 14.0.1 */function or(e){return e instanceof Element}function qe(e){return e instanceof HTMLElement}function ge(e){return typeof e=="function"}function Je(e){return typeof e=="string"}function N(e){return e===void 0}class yt{on(t,n,r,o=!1){var s;return N(this.bindings)&&(this.bindings={}),N(this.bindings[t])&&(this.bindings[t]=[]),(s=this.bindings[t])==null||s.push({handler:n,ctx:r,once:o}),this}once(t,n,r){return this.on(t,n,r,!0)}off(t,n){if(N(this.bindings)||N(this.bindings[t]))return this;if(N(n))delete this.bindings[t];else{var r;(r=this.bindings[t])==null||r.forEach((o,s)=>{if(o.handler===n){var i;(i=this.bindings[t])==null||i.splice(s,1)}})}return this}trigger(t,...n){if(!N(this.bindings)&&this.bindings[t]){var r;(r=this.bindings[t])==null||r.forEach((o,s)=>{const{ctx:i,handler:c,once:a}=o,u=i||this;if(c.apply(u,n),a){var f;(f=this.bindings[t])==null||f.splice(s,1)}})}return this}}function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}function Xt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const me={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};me.defaultMerge;function ir(e,t){return t}function Gt(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:cr(e)?1:e instanceof Set?3:e instanceof Map?4:5}function sr(e){const t=new Set;for(const n of e)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(r);return t}function lr(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function Zt(e){return{*[Symbol.iterator](){for(const t of e)for(const n of t)yield n}}}const Qt=new Set(["[object Object]","[object Module]"]);function cr(e){if(!Qt.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const n=t.prototype;return!(n===null||typeof n!="object"||!Qt.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function ar(e,t,n){const r={};for(const o of sr(e)){const s=[];for(const a of e)lr(a,o)&&s.push(a[o]);if(s.length===0)continue;const i=t.metaDataUpdater(n,{key:o,parents:e}),c=tn(s,t,i);c!==me.skip&&(o==="__proto__"?Object.defineProperty(r,o,{value:c,configurable:!0,enumerable:!0,writable:!0}):r[o]=c)}return r}function ur(e){return e.flat()}function fr(e){return new Set(Zt(e))}function dr(e){return new Map(Zt(e))}function en(e){return e.at(-1)}var _t=Object.freeze({__proto__:null,mergeArrays:ur,mergeMaps:dr,mergeOthers:en,mergeRecords:ar,mergeSets:fr});function wt(...e){return hr({})(...e)}function hr(e,t){const n=pr(e,r);function r(...o){return tn(o,n,t)}return r}function pr(e,t){var n,r;return{defaultMergeFunctions:_t,mergeFunctions:W({},_t,Object.fromEntries(Object.entries(e).filter(([o,s])=>Object.hasOwn(_t,o)).map(([o,s])=>s===!1?[o,en]:[o,s]))),metaDataUpdater:(n=e.metaDataUpdater)!=null?n:ir,deepmerge:t,useImplicitDefaultMerging:(r=e.enableImplicitDefaultMerging)!=null?r:!1,actions:me}}function tn(e,t,n){if(e.length===0)return;if(e.length===1)return xt(e,t,n);const r=Gt(e[0]);if(r!==0&&r!==5){for(let o=1;o<e.length;o++)if(Gt(e[o])!==r)return xt(e,t,n)}switch(r){case 1:return gr(e,t,n);case 2:return mr(e,t,n);case 3:return br(e,t,n);case 4:return vr(e,t,n);default:return xt(e,t,n)}}function gr(e,t,n){const r=t.mergeFunctions.mergeRecords(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function mr(e,t,n){const r=t.mergeFunctions.mergeArrays(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function br(e,t,n){const r=t.mergeFunctions.mergeSets(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function vr(e,t,n){const r=t.mergeFunctions.mergeMaps(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function xt(e,t,n){const r=t.mergeFunctions.mergeOthers(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}function Et(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const r=t[n],o=e[r];r!=="constructor"&&typeof o=="function"&&(e[r]=o.bind(e))}return e}function yr(e,t){return n=>{if(e.isOpen()){const r=e.el&&n.currentTarget===e.el;(!N(t)&&n.currentTarget.matches(t)||r)&&e.tour.next()}}}function _r(e){const{event:t,selector:n}=e.options.advanceOn||{};if(t){const r=yr(e,n);let o=null;if(!N(n)&&(o=document.querySelector(n),!o))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);o?(o.addEventListener(t,r),e.on("destroy",()=>o.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class wr{constructor(t){}}class xr{constructor(t,n){}}function nn(e){return!Je(e)||e===""?"":e.charAt(e.length-1)!=="-"?`${e}-`:e}function Er(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(ge(n.element)&&(n.element=n.element.call(e)),Je(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${t.element}`)}return n}function rn(e){return e==null?!0:!e.element||!e.on}function on(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?n:n&3|8).toString(16)})}const ke=Math.min,xe=Math.max,nt=Math.round,rt=Math.floor,be=e=>({x:e,y:e}),Sr={left:"right",right:"left",bottom:"top",top:"bottom"},Or={start:"end",end:"start"};function St(e,t,n){return xe(e,ke(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function Ee(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function Ot(e){return e==="x"?"y":"x"}function Rt(e){return e==="y"?"height":"width"}function Me(e){return["top","bottom"].includes(Ee(e))?"y":"x"}function Tt(e){return Ot(Me(e))}function Rr(e,t,n){n===void 0&&(n=!1);const r=ot(e),o=Tt(e),s=Rt(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=it(i)),[i,it(i)]}function Tr(e){const t=it(e);return[Ct(e),t,Ct(t)]}function Ct(e){return e.replace(/start|end/g,t=>Or[t])}function Cr(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function Ar(e,t,n,r){const o=ot(e);let s=Cr(Ee(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ct)))),s}function it(e){return e.replace(/left|right|bottom|top/g,t=>Sr[t])}function Pr(e){return W({top:0,right:0,bottom:0,left:0},e)}function sn(e){return typeof e!="number"?Pr(e):{top:e,right:e,bottom:e,left:e}}function st(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const kr=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Ir=["mainAxis","crossAxis","limiter"];function ln(e,t,n){let{reference:r,floating:o}=e;const s=Me(t),i=Tt(t),c=Rt(i),a=Ee(t),u=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,d=r[c]/2-o[c]/2;let g;switch(a){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(ot(t)){case"start":g[i]-=d*(n&&u?-1:1);break;case"end":g[i]+=d*(n&&u?-1:1);break}return g}const Mr=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,c=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=ln(u,r,a),d=r,g={},v=0;for(let x=0;x<c.length;x++){const{name:S,fn:w}=c[x],{x:_,y:R,data:y,reset:m}=await w({x:f,y:h,initialPlacement:r,placement:d,strategy:o,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});f=_??f,h=R??h,g=W({},g,{[S]:W({},g[S],y)}),m&&v<=50&&(v++,typeof m=="object"&&(m.placement&&(d=m.placement),m.rects&&(u=m.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):m.rects),{x:f,y:h}=ln(u,d,a)),x=-1)}return{x:f,y:h,placement:d,strategy:o,middlewareData:g}};async function cn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:c,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:g=0}=Ie(t,e),v=sn(g),S=c[d?h==="floating"?"reference":"floating":h],w=st(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:a})),_=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),y=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},m=st(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:R,strategy:a}):_);return{top:(w.top-m.top+v.top)/y.y,bottom:(m.bottom-w.bottom+v.bottom)/y.y,left:(w.left-m.left+v.left)/y.x,right:(m.right-w.right+v.right)/y.x}}const Fr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:c,middlewareData:a}=t,{element:u,padding:f=0}=Ie(e,t)||{};if(u==null)return{};const h=sn(f),d={x:n,y:r},g=Tt(o),v=Rt(g),x=await i.getDimensions(u),S=g==="y",w=S?"top":"left",_=S?"bottom":"right",R=S?"clientHeight":"clientWidth",y=s.reference[v]+s.reference[g]-d[g]-s.floating[v],m=d[g]-s.reference[g],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let B=T?T[R]:0;(!B||!await(i.isElement==null?void 0:i.isElement(T)))&&(B=c.floating[R]||s.floating[v]);const le=y/2-m/2,$=B/2-x[v]/2-1,X=ke(h[w],$),U=ke(h[_],$),V=X,D=B-x[v]-U,L=B/2-x[v]/2+le,G=St(V,L,D),Y=!a.arrow&&ot(o)!=null&&L!==G&&s.reference[v]/2-(L<V?X:U)-x[v]/2<0,de=Y?L<V?L-V:L-D:0;return{[g]:d[g]+de,data:W({[g]:G,centerOffset:L-G-de},Y&&{alignmentOffset:de}),reset:Y}}}),Lr=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,o;const{placement:s,middlewareData:i,rects:c,initialPlacement:a,platform:u,elements:f}=n,h=Ie(t,n),{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0}=h,_=Xt(h,kr);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const R=Ee(s),y=Me(a),m=Ee(a)===a,T=await(u.isRTL==null?void 0:u.isRTL(f.floating)),B=v||(m||!w?[it(a)]:Tr(a)),le=S!=="none";!v&&le&&B.push(...Ar(a,w,S,T));const $=[a,...B],X=await cn(n,_),U=[];let V=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&U.push(X[R]),g){const Y=Rr(s,c,T);U.push(X[Y[0]],X[Y[1]])}if(V=[...V,{placement:s,overflows:U}],!U.every(Y=>Y<=0)){var D,L;const Y=(((D=i.flip)==null?void 0:D.index)||0)+1,de=$[Y];if(de)return{data:{index:Y,overflows:V},reset:{placement:de}};let we=(L=V.filter(he=>he.overflows[0]<=0).sort((he,ne)=>he.overflows[1]-ne.overflows[1])[0])==null?void 0:L.placement;if(!we)switch(x){case"bestFit":{var G;const he=(G=V.filter(ne=>{if(le){const re=Me(ne.placement);return re===y||re==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(re=>re>0).reduce((re,ht)=>re+ht,0)]).sort((ne,re)=>ne[1]-re[1])[0])==null?void 0:G[0];he&&(we=he);break}case"initialPlacement":we=a;break}if(s!==we)return{reset:{placement:we}}}return{}}}},jr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:o,placement:s}=n,i=Ie(t,n),{mainAxis:c=!0,crossAxis:a=!1,limiter:u={fn:_=>{let{x:R,y}=_;return{x:R,y}}}}=i,f=Xt(i,Ir),h={x:r,y:o},d=await cn(n,f),g=Me(Ee(s)),v=Ot(g);let x=h[v],S=h[g];if(c){const _=v==="y"?"top":"left",R=v==="y"?"bottom":"right",y=x+d[_],m=x-d[R];x=St(y,x,m)}if(a){const _=g==="y"?"top":"left",R=g==="y"?"bottom":"right",y=S+d[_],m=S-d[R];S=St(y,S,m)}const w=u.fn(W({},n,{[v]:x,[g]:S}));return W({},w,{data:{x:w.x-r,y:w.y-o}})}}},Dr=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:r,y:o,placement:s,rects:i,middlewareData:c}=n,{offset:a=0,mainAxis:u=!0,crossAxis:f=!0}=Ie(t,n),h={x:r,y:o},d=Me(s),g=Ot(d);let v=h[g],x=h[d];const S=Ie(a,n),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:W({mainAxis:0,crossAxis:0},S);if(u){const y=g==="y"?"height":"width",m=i.reference[g]-i.floating[y]+w.mainAxis,T=i.reference[g]+i.reference[y]-w.mainAxis;v<m?v=m:v>T&&(v=T)}if(f){var _,R;const y=g==="y"?"width":"height",m=["top","left"].includes(Ee(s)),T=i.reference[d]-i.floating[y]+(m&&((_=c.offset)==null?void 0:_[d])||0)+(m?0:w.crossAxis),B=i.reference[d]+i.reference[y]+(m?0:((R=c.offset)==null?void 0:R[d])||0)-(m?w.crossAxis:0);x<T?x=T:x>B&&(x=B)}return{[g]:v,[d]:x}}}};function Fe(e){return an(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ce(e){var t;return(t=(an(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function an(e){return e instanceof Node||e instanceof q(e).Node}function Q(e){return e instanceof Element||e instanceof q(e).Element}function ie(e){return e instanceof HTMLElement||e instanceof q(e).HTMLElement}function un(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function Ke(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Br(e){return["table","td","th"].includes(Fe(e))}function lt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function At(e){const t=Pt(),n=Q(e)?ee(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Nr(e){let t=ve(e);for(;ie(t)&&!Le(t);){if(At(t))return t;if(lt(t))return null;t=ve(t)}return null}function Pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Le(e){return["html","body","#document"].includes(Fe(e))}function ee(e){return q(e).getComputedStyle(e)}function ct(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ve(e){if(Fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||un(e)&&e.host||ce(e);return un(t)?t.host:t}function fn(e){const t=ve(e);return Le(t)?e.ownerDocument?e.ownerDocument.body:e.body:ie(t)&&Ke(t)?t:fn(t)}function Xe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=fn(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=q(o);return s?t.concat(i,i.visualViewport||[],Ke(o)?o:[],i.frameElement&&n?Xe(i.frameElement):[]):t.concat(o,Xe(o,[],n))}function dn(e){const t=ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ie(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=nt(n)!==s||nt(r)!==i;return c&&(n=s,r=i),{width:n,height:r,$:c}}function kt(e){return Q(e)?e:e.contextElement}function je(e){const t=kt(e);if(!ie(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=dn(t);let i=(s?nt(n.width):n.width)/r,c=(s?nt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Wr=be(0);function hn(e){const t=q(e);return!Pt()||!t.visualViewport?Wr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function Se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=kt(e);let i=be(1);t&&(r?Q(r)&&(i=je(r)):i=je(e));const c=Vr(s,n,r)?hn(s):be(0);let a=(o.left+c.x)/i.x,u=(o.top+c.y)/i.y,f=o.width/i.x,h=o.height/i.y;if(s){const d=q(s),g=r&&Q(r)?q(r):r;let v=d,x=v.frameElement;for(;x&&r&&g!==v;){const S=je(x),w=x.getBoundingClientRect(),_=ee(x),R=w.left+(x.clientLeft+parseFloat(_.paddingLeft))*S.x,y=w.top+(x.clientTop+parseFloat(_.paddingTop))*S.y;a*=S.x,u*=S.y,f*=S.x,h*=S.y,a+=R,u+=y,v=q(x),x=v.frameElement}}return st({width:f,height:h,x:a,y:u})}function Hr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ce(r),c=t?lt(t.floating):!1;if(r===i||c&&s)return n;let a={scrollLeft:0,scrollTop:0},u=be(1);const f=be(0),h=ie(r);if((h||!h&&!s)&&((Fe(r)!=="body"||Ke(i))&&(a=ct(r)),ie(r))){const d=Se(r);u=je(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x,y:n.y*u.y-a.scrollTop*u.y+f.y}}function $r(e){return Array.from(e.getClientRects())}function pn(e){return Se(ce(e)).left+ct(e).scrollLeft}function Ur(e){const t=ce(e),n=ct(e),r=e.ownerDocument.body,o=xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+pn(e);const c=-n.scrollTop;return ee(r).direction==="rtl"&&(i+=xe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:c}}function Yr(e,t){const n=q(e),r=ce(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,c=0,a=0;if(o){s=o.width,i=o.height;const u=Pt();(!u||u&&t==="fixed")&&(c=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:c,y:a}}function zr(e,t){const n=Se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ie(e)?je(e):be(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,a=o*s.x,u=r*s.y;return{width:i,height:c,x:a,y:u}}function gn(e,t,n){let r;if(t==="viewport")r=Yr(e,n);else if(t==="document")r=Ur(ce(e));else if(Q(t))r=zr(t,n);else{const o=hn(e);r=W({},t,{x:t.x-o.x,y:t.y-o.y})}return st(r)}function mn(e,t){const n=ve(e);return n===t||!Q(n)||Le(n)?!1:ee(n).position==="fixed"||mn(n,t)}function qr(e,t){const n=t.get(e);if(n)return n;let r=Xe(e,[],!1).filter(c=>Q(c)&&Fe(c)!=="body"),o=null;const s=ee(e).position==="fixed";let i=s?ve(e):e;for(;Q(i)&&!Le(i);){const c=ee(i),a=At(i);!a&&c.position==="fixed"&&(o=null),(s?!a&&!o:!a&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ke(i)&&!a&&mn(e,i))?r=r.filter(f=>f!==i):o=c,i=ve(i)}return t.set(e,r),r}function Jr(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?lt(t)?[]:qr(t,this._c):[].concat(n),r],c=i[0],a=i.reduce((u,f)=>{const h=gn(t,f,o);return u.top=xe(h.top,u.top),u.right=ke(h.right,u.right),u.bottom=ke(h.bottom,u.bottom),u.left=xe(h.left,u.left),u},gn(t,c,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Kr(e){const{width:t,height:n}=dn(e);return{width:t,height:n}}function Xr(e,t,n){const r=ie(t),o=ce(t),s=n==="fixed",i=Se(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const a=be(0);if(r||!r&&!s)if((Fe(t)!=="body"||Ke(o))&&(c=ct(t)),r){const h=Se(t,!0,s,t);a.x=h.x+t.clientLeft,a.y=h.y+t.clientTop}else o&&(a.x=pn(o));const u=i.left+c.scrollLeft-a.x,f=i.top+c.scrollTop-a.y;return{x:u,y:f,width:i.width,height:i.height}}function It(e){return ee(e).position==="static"}function bn(e,t){return!ie(e)||ee(e).position==="fixed"?null:t?t(e):e.offsetParent}function vn(e,t){const n=q(e);if(lt(e))return n;if(!ie(e)){let o=ve(e);for(;o&&!Le(o);){if(Q(o)&&!It(o))return o;o=ve(o)}return n}let r=bn(e,t);for(;r&&Br(r)&&It(r);)r=bn(r,t);return r&&Le(r)&&It(r)&&!At(r)?n:r||Nr(e)||n}const Gr=async function(t){const n=this.getOffsetParent||vn,r=this.getDimensions,o=await r(t.floating);return{reference:Xr(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Zr(e){return ee(e).direction==="rtl"}const Qr={convertOffsetParentRelativeRectToViewportRelativeRect:Hr,getDocumentElement:ce,getClippingRect:Jr,getOffsetParent:vn,getElementRects:Gr,getClientRects:$r,getDimensions:Kr,getScale:je,isElement:Q,isRTL:Zr};function eo(e,t){let n=null,r;const o=ce(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function i(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),s();const{left:u,top:f,width:h,height:d}=e.getBoundingClientRect();if(c||t(),!h||!d)return;const g=rt(f),v=rt(o.clientWidth-(u+h)),x=rt(o.clientHeight-(f+d)),S=rt(u),_={rootMargin:-g+"px "+-v+"px "+-x+"px "+-S+"px",threshold:xe(0,ke(1,a))||1};let R=!0;function y(m){const T=m[0].intersectionRatio;if(T!==a){if(!R)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R=!1}try{n=new IntersectionObserver(y,W({},_,{root:o.ownerDocument}))}catch{n=new IntersectionObserver(y,_)}n.observe(e)}return i(!0),s}function to(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=kt(e),f=o||s?[...u?Xe(u):[],...Xe(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const h=u&&c?eo(u,n):null;let d=-1,g=null;i&&(g=new ResizeObserver(w=>{let[_]=w;_&&_.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var R;(R=g)==null||R.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let v,x=a?Se(e):null;a&&S();function S(){const w=Se(e);x&&(w.x!==x.x||w.y!==x.y||w.width!==x.width||w.height!==x.height)&&n(),x=w,v=requestAnimationFrame(S)}return n(),()=>{var w;f.forEach(_=>{o&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),h==null||h(),(w=g)==null||w.disconnect(),g=null,a&&cancelAnimationFrame(v)}}const no=jr,ro=Lr,oo=Fr,io=Dr,so=(e,t,n)=>{const r=new Map,o=W({platform:Qr},n),s=W({},o.platform,{_c:r});return Mr(e,t,W({},o,{platform:s}))};function lo(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const r=po(t,e),o=rn(t);return o&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd-centered")),e.cleanup=to(n,e.el,()=>{if(!e.el){e.cleanup==null||e.cleanup();return}uo(n,e,r,o)}),e.target=t.element,r}function co(e,t){return{floatingUIOptions:wt(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function ao(e){e.cleanup&&e.cleanup(),e.cleanup=null}function uo(e,t,n,r){return so(e,t.el,n).then(fo(t,r)).then(o=>new Promise(s=>{setTimeout(()=>s(o),300)})).then(o=>{o!=null&&o.el&&o.el.focus({preventScroll:!0})})}function fo(e,t){return({x:n,y:r,placement:o,middlewareData:s})=>(e.el&&(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),e.el.dataset.popperPlacement=o,ho(e.el,s)),e)}function ho(e,t){const n=e.querySelector(".shepherd-arrow");if(qe(n)&&t.arrow){const{x:r,y:o}=t.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:""})}}function po(e,t){const n={strategy:"absolute"};n.middleware=[];const r=go(t);if(!rn(e)){if(n.middleware.push(ro(),no({limiter:io(),crossAxis:!0})),r){var s,i;const c=(e==null||(s=e.on)==null?void 0:s.includes("-start"))||(e==null||(i=e.on)==null?void 0:i.includes("-end"));n.middleware.push(oo({element:r,padding:c?4:0}))}n.placement=e.on}return wt(n,t.options.floatingUIOptions||{})}function go(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):!1}function J(){}function mo(e,t){for(const n in t)e[n]=t[n];return e}function yn(e){return e()}function _n(){return Object.create(null)}function Ge(e){e.forEach(yn)}function Mt(e){return typeof e=="function"}function ae(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function bo(e){return Object.keys(e).length===0}function De(e,t){e.appendChild(t)}function te(e,t,n){e.insertBefore(t,n||null)}function K(e){e.parentNode&&e.parentNode.removeChild(e)}function vo(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function se(e){return document.createElement(e)}function wn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function xn(e){return document.createTextNode(e)}function at(){return xn(" ")}function yo(){return xn("")}function ut(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function k(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const _o=["width","height"];function En(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&_o.indexOf(r)===-1?e[r]=t[r]:k(e,r,t[r])}function wo(e){return Array.from(e.childNodes)}function Be(e,t,n){e.classList.toggle(t,!!n)}let Ze;function Qe(e){Ze=e}function Sn(){if(!Ze)throw new Error("Function called outside component initialization");return Ze}function xo(e){Sn().$$.on_mount.push(e)}function Ft(e){Sn().$$.after_update.push(e)}const Ne=[],We=[];let Ve=[];const On=[],Eo=Promise.resolve();let Lt=!1;function So(){Lt||(Lt=!0,Eo.then(Rn))}function jt(e){Ve.push(e)}const Dt=new Set;let He=0;function Rn(){if(He!==0)return;const e=Ze;do{try{for(;He<Ne.length;){const t=Ne[He];He++,Qe(t),Oo(t.$$)}}catch(t){throw Ne.length=0,He=0,t}for(Qe(null),Ne.length=0,He=0;We.length;)We.pop()();for(let t=0;t<Ve.length;t+=1){const n=Ve[t];Dt.has(n)||(Dt.add(n),n())}Ve.length=0}while(Ne.length);for(;On.length;)On.pop()();Lt=!1,Dt.clear(),Qe(e)}function Oo(e){if(e.fragment!==null){e.update(),Ge(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(jt)}}function Ro(e){const t=[],n=[];Ve.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ve=t}const ft=new Set;let Oe;function Re(){Oe={r:0,c:[],p:Oe}}function Te(){Oe.r||Ge(Oe.c),Oe=Oe.p}function P(e,t){e&&e.i&&(ft.delete(e),e.i(t))}function M(e,t,n,r){if(e&&e.o){if(ft.has(e))return;ft.add(e),Oe.c.push(()=>{ft.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Tn(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function To(e,t){const n={},r={},o={$$scope:1};let s=e.length;for(;s--;){const i=e[s],c=t[s];if(c){for(const a in i)a in c||(r[a]=1);for(const a in c)o[a]||(n[a]=c[a],o[a]=1);e[s]=c}else for(const a in i)o[a]=1}for(const i in r)i in n||(n[i]=void 0);return n}function Ce(e){e&&e.c()}function ye(e,t,n){const{fragment:r,after_update:o}=e.$$;r&&r.m(t,n),jt(()=>{const s=e.$$.on_mount.map(yn).filter(Mt);e.$$.on_destroy?e.$$.on_destroy.push(...s):Ge(s),e.$$.on_mount=[]}),o.forEach(jt)}function _e(e,t){const n=e.$$;n.fragment!==null&&(Ro(n.after_update),Ge(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Co(e,t){e.$$.dirty[0]===-1&&(Ne.push(e),So(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ue(e,t,n,r,o,s,i=null,c=[-1]){const a=Ze;Qe(e);const u=e.$$={fragment:null,ctx:[],props:s,update:J,not_equal:o,bound:_n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:_n(),dirty:c,skip_bound:!1,root:t.target||a.$$.root};i&&i(u.root);let f=!1;if(u.ctx=n?n(e,t.props||{},(h,d,...g)=>{const v=g.length?g[0]:d;return u.ctx&&o(u.ctx[h],u.ctx[h]=v)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](v),f&&Co(e,h)),d}):[],u.update(),f=!0,Ge(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const h=wo(t.target);u.fragment&&u.fragment.l(h),h.forEach(K)}else u.fragment&&u.fragment.c();t.intro&&P(e.$$.fragment),ye(e,t.target,t.anchor),Rn()}Qe(a)}class fe{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){_e(this,1),this.$destroy=J}$on(t,n){if(!Mt(n))return J;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(t){this.$$set&&!bo(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ao="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ao);function Po(e){let t,n,r,o,s;return{c(){t=se("button"),k(t,"aria-label",n=e[3]?e[3]:null),k(t,"class",r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],k(t,"tabindex","0"),k(t,"type","button")},m(i,c){te(i,t,c),t.innerHTML=e[5],o||(s=ut(t,"click",function(){Mt(e[0])&&e[0].apply(this,arguments)}),o=!0)},p(i,[c]){e=i,c&32&&(t.innerHTML=e[5]),c&8&&n!==(n=e[3]?e[3]:null)&&k(t,"aria-label",n),c&18&&r!==(r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&k(t,"class",r),c&4&&(t.disabled=e[2])},i:J,o:J,d(i){i&&K(t),o=!1,s()}}}function ko(e,t,n){let{config:r,step:o}=t,s,i,c,a,u,f;function h(d){return ge(d)?d=d.call(o):d}return e.$$set=d=>{"config"in d&&n(6,r=d.config),"step"in d&&n(7,o=d.step)},e.$$.update=()=>{e.$$.dirty&192&&(n(0,s=r.action?r.action.bind(o.tour):null),n(1,i=r.classes),n(2,c=r.disabled?h(r.disabled):!1),n(3,a=r.label?h(r.label):null),n(4,u=r.secondary),n(5,f=r.text?h(r.text):null))},[s,i,c,a,u,f,r,o]}class Io extends fe{constructor(t){super(),ue(this,t,ko,Po,ae,{config:6,step:7})}}function Cn(e,t,n){const r=e.slice();return r[2]=t[n],r}function An(e){let t,n,r=Tn(e[1]),o=[];for(let i=0;i<r.length;i+=1)o[i]=Pn(Cn(e,r,i));const s=i=>M(o[i],1,1,()=>{o[i]=null});return{c(){for(let i=0;i<o.length;i+=1)o[i].c();t=yo()},m(i,c){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(i,c);te(i,t,c),n=!0},p(i,c){if(c&3){r=Tn(i[1]);let a;for(a=0;a<r.length;a+=1){const u=Cn(i,r,a);o[a]?(o[a].p(u,c),P(o[a],1)):(o[a]=Pn(u),o[a].c(),P(o[a],1),o[a].m(t.parentNode,t))}for(Re(),a=r.length;a<o.length;a+=1)s(a);Te()}},i(i){if(!n){for(let c=0;c<r.length;c+=1)P(o[c]);n=!0}},o(i){o=o.filter(Boolean);for(let c=0;c<o.length;c+=1)M(o[c]);n=!1},d(i){i&&K(t),vo(o,i)}}}function Pn(e){let t,n;return t=new Io({props:{config:e[2],step:e[0]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&2&&(s.config=r[2]),o&1&&(s.step=r[0]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Mo(e){let t,n,r=e[1]&&An(e);return{c(){t=se("footer"),r&&r.c(),k(t,"class","shepherd-footer")},m(o,s){te(o,t,s),r&&r.m(t,null),n=!0},p(o,[s]){o[1]?r?(r.p(o,s),s&2&&P(r,1)):(r=An(o),r.c(),P(r,1),r.m(t,null)):r&&(Re(),M(r,1,1,()=>{r=null}),Te())},i(o){n||(P(r),n=!0)},o(o){M(r),n=!1},d(o){o&&K(t),r&&r.d()}}}function Fo(e,t,n){let r,{step:o}=t;return e.$$set=s=>{"step"in s&&n(0,o=s.step)},e.$$.update=()=>{e.$$.dirty&1&&n(1,r=o.options.buttons)},[o,r]}class Lo extends fe{constructor(t){super(),ue(this,t,Fo,Mo,ae,{step:0})}}function jo(e){let t,n,r,o,s;return{c(){t=se("button"),n=se("span"),n.textContent="×",k(n,"aria-hidden","true"),k(t,"aria-label",r=e[0].label?e[0].label:"Close Tour"),k(t,"class","shepherd-cancel-icon"),k(t,"type","button")},m(i,c){te(i,t,c),De(t,n),o||(s=ut(t,"click",e[1]),o=!0)},p(i,[c]){c&1&&r!==(r=i[0].label?i[0].label:"Close Tour")&&k(t,"aria-label",r)},i:J,o:J,d(i){i&&K(t),o=!1,s()}}}function Do(e,t,n){let{cancelIcon:r,step:o}=t;const s=i=>{i.preventDefault(),o.cancel()};return e.$$set=i=>{"cancelIcon"in i&&n(0,r=i.cancelIcon),"step"in i&&n(2,o=i.step)},[r,s,o]}class Bo extends fe{constructor(t){super(),ue(this,t,Do,jo,ae,{cancelIcon:0,step:2})}}function No(e){let t;return{c(){t=se("h3"),k(t,"id",e[1]),k(t,"class","shepherd-title")},m(n,r){te(n,t,r),e[3](t)},p(n,[r]){r&2&&k(t,"id",n[1])},i:J,o:J,d(n){n&&K(t),e[3](null)}}}function Wo(e,t,n){let{labelId:r,element:o,title:s}=t;Ft(()=>{ge(s)&&n(2,s=s()),n(0,o.innerHTML=s,o)});function i(c){We[c?"unshift":"push"](()=>{o=c,n(0,o)})}return e.$$set=c=>{"labelId"in c&&n(1,r=c.labelId),"element"in c&&n(0,o=c.element),"title"in c&&n(2,s=c.title)},[o,r,s,i]}class Vo extends fe{constructor(t){super(),ue(this,t,Wo,No,ae,{labelId:1,element:0,title:2})}}function kn(e){let t,n;return t=new Vo({props:{labelId:e[0],title:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&1&&(s.labelId=r[0]),o&4&&(s.title=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function In(e){let t,n;return t=new Bo({props:{cancelIcon:e[3],step:e[1]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&8&&(s.cancelIcon=r[3]),o&2&&(s.step=r[1]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Ho(e){let t,n,r,o=e[2]&&kn(e),s=e[3]&&e[3].enabled&&In(e);return{c(){t=se("header"),o&&o.c(),n=at(),s&&s.c(),k(t,"class","shepherd-header")},m(i,c){te(i,t,c),o&&o.m(t,null),De(t,n),s&&s.m(t,null),r=!0},p(i,[c]){i[2]?o?(o.p(i,c),c&4&&P(o,1)):(o=kn(i),o.c(),P(o,1),o.m(t,n)):o&&(Re(),M(o,1,1,()=>{o=null}),Te()),i[3]&&i[3].enabled?s?(s.p(i,c),c&8&&P(s,1)):(s=In(i),s.c(),P(s,1),s.m(t,null)):s&&(Re(),M(s,1,1,()=>{s=null}),Te())},i(i){r||(P(o),P(s),r=!0)},o(i){M(o),M(s),r=!1},d(i){i&&K(t),o&&o.d(),s&&s.d()}}}function $o(e,t,n){let{labelId:r,step:o}=t,s,i;return e.$$set=c=>{"labelId"in c&&n(0,r=c.labelId),"step"in c&&n(1,o=c.step)},e.$$.update=()=>{e.$$.dirty&2&&(n(2,s=o.options.title),n(3,i=o.options.cancelIcon))},[r,o,s,i]}class Uo extends fe{constructor(t){super(),ue(this,t,$o,Ho,ae,{labelId:0,step:1})}}function Yo(e){let t;return{c(){t=se("div"),k(t,"class","shepherd-text"),k(t,"id",e[1])},m(n,r){te(n,t,r),e[3](t)},p(n,[r]){r&2&&k(t,"id",n[1])},i:J,o:J,d(n){n&&K(t),e[3](null)}}}function zo(e,t,n){let{descriptionId:r,element:o,step:s}=t;Ft(()=>{let{text:c}=s.options;ge(c)&&(c=c.call(s)),qe(c)?o.appendChild(c):n(0,o.innerHTML=c,o)});function i(c){We[c?"unshift":"push"](()=>{o=c,n(0,o)})}return e.$$set=c=>{"descriptionId"in c&&n(1,r=c.descriptionId),"element"in c&&n(0,o=c.element),"step"in c&&n(2,s=c.step)},[o,r,s,i]}class qo extends fe{constructor(t){super(),ue(this,t,zo,Yo,ae,{descriptionId:1,element:0,step:2})}}function Mn(e){let t,n;return t=new Uo({props:{labelId:e[1],step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&2&&(s.labelId=r[1]),o&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Fn(e){let t,n;return t=new qo({props:{descriptionId:e[0],step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&1&&(s.descriptionId=r[0]),o&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Ln(e){let t,n;return t=new Lo({props:{step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Jo(e){let t,n=!N(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,r,o=!N(e[2].options.text),s,i=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,c,a=n&&Mn(e),u=o&&Fn(e),f=i&&Ln(e);return{c(){t=se("div"),a&&a.c(),r=at(),u&&u.c(),s=at(),f&&f.c(),k(t,"class","shepherd-content"),k(t,"tabindex","0")},m(h,d){te(h,t,d),a&&a.m(t,null),De(t,r),u&&u.m(t,null),De(t,s),f&&f.m(t,null),c=!0},p(h,[d]){d&4&&(n=!N(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?a?(a.p(h,d),d&4&&P(a,1)):(a=Mn(h),a.c(),P(a,1),a.m(t,r)):a&&(Re(),M(a,1,1,()=>{a=null}),Te()),d&4&&(o=!N(h[2].options.text)),o?u?(u.p(h,d),d&4&&P(u,1)):(u=Fn(h),u.c(),P(u,1),u.m(t,s)):u&&(Re(),M(u,1,1,()=>{u=null}),Te()),d&4&&(i=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),i?f?(f.p(h,d),d&4&&P(f,1)):(f=Ln(h),f.c(),P(f,1),f.m(t,null)):f&&(Re(),M(f,1,1,()=>{f=null}),Te())},i(h){c||(P(a),P(u),P(f),c=!0)},o(h){M(a),M(u),M(f),c=!1},d(h){h&&K(t),a&&a.d(),u&&u.d(),f&&f.d()}}}function Ko(e,t,n){let{descriptionId:r,labelId:o,step:s}=t;return e.$$set=i=>{"descriptionId"in i&&n(0,r=i.descriptionId),"labelId"in i&&n(1,o=i.labelId),"step"in i&&n(2,s=i.step)},[r,o,s]}class Xo extends fe{constructor(t){super(),ue(this,t,Ko,Jo,ae,{descriptionId:0,labelId:1,step:2})}}function jn(e){let t;return{c(){t=se("div"),k(t,"class","shepherd-arrow"),k(t,"data-popper-arrow","")},m(n,r){te(n,t,r)},d(n){n&&K(t)}}}function Go(e){let t,n,r,o,s,i,c,a,u=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&jn();r=new Xo({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let f=[{"aria-describedby":o=N(e[4].options.text)?null:e[2]},{"aria-labelledby":s=e[4].options.title?e[3]:null},e[1],{open:"true"}],h={};for(let d=0;d<f.length;d+=1)h=mo(h,f[d]);return{c(){t=se("dialog"),u&&u.c(),n=at(),Ce(r.$$.fragment),En(t,h),Be(t,"shepherd-has-cancel-icon",e[5]),Be(t,"shepherd-has-title",e[6]),Be(t,"shepherd-element",!0)},m(d,g){te(d,t,g),u&&u.m(t,null),De(t,n),ye(r,t,null),e[13](t),i=!0,c||(a=ut(t,"keydown",e[7]),c=!0)},p(d,[g]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?u||(u=jn(),u.c(),u.m(t,n)):u&&(u.d(1),u=null);const v={};g&4&&(v.descriptionId=d[2]),g&8&&(v.labelId=d[3]),g&16&&(v.step=d[4]),r.$set(v),En(t,h=To(f,[(!i||g&20&&o!==(o=N(d[4].options.text)?null:d[2]))&&{"aria-describedby":o},(!i||g&24&&s!==(s=d[4].options.title?d[3]:null))&&{"aria-labelledby":s},g&2&&d[1],{open:"true"}])),Be(t,"shepherd-has-cancel-icon",d[5]),Be(t,"shepherd-has-title",d[6]),Be(t,"shepherd-element",!0)},i(d){i||(P(r.$$.fragment,d),i=!0)},o(d){M(r.$$.fragment,d),i=!1},d(d){d&&K(t),u&&u.d(),_e(r),e[13](null),c=!1,a()}}}const Zo=9,Qo=27,ei=37,ti=39;function Dn(e){return e.split(" ").filter(t=>!!t.length)}function ni(e,t,n){let{classPrefix:r,element:o,descriptionId:s,firstFocusableElement:i,focusableElements:c,labelId:a,lastFocusableElement:u,step:f,dataStepId:h}=t,d,g,v;const x=()=>o;xo(()=>{n(1,h={[`data-${r}shepherd-step-id`]:f.id}),n(9,c=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,i=c[0]),n(10,u=c[c.length-1])}),Ft(()=>{v!==f.options.classes&&S()});function S(){w(v),v=f.options.classes,_(v)}function w(m){if(Je(m)){const T=Dn(m);T.length&&o.classList.remove(...T)}}function _(m){if(Je(m)){const T=Dn(m);T.length&&o.classList.add(...T)}}const R=m=>{const{tour:T}=f;switch(m.keyCode){case Zo:if(c.length===0){m.preventDefault();break}m.shiftKey?(document.activeElement===i||document.activeElement.classList.contains("shepherd-element"))&&(m.preventDefault(),u.focus()):document.activeElement===u&&(m.preventDefault(),i.focus());break;case Qo:T.options.exitOnEsc&&(m.preventDefault(),m.stopPropagation(),f.cancel());break;case ei:T.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),T.back());break;case ti:T.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),T.next());break}};function y(m){We[m?"unshift":"push"](()=>{o=m,n(0,o)})}return e.$$set=m=>{"classPrefix"in m&&n(11,r=m.classPrefix),"element"in m&&n(0,o=m.element),"descriptionId"in m&&n(2,s=m.descriptionId),"firstFocusableElement"in m&&n(8,i=m.firstFocusableElement),"focusableElements"in m&&n(9,c=m.focusableElements),"labelId"in m&&n(3,a=m.labelId),"lastFocusableElement"in m&&n(10,u=m.lastFocusableElement),"step"in m&&n(4,f=m.step),"dataStepId"in m&&n(1,h=m.dataStepId)},e.$$.update=()=>{e.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,g=f.options&&f.options.title))},[o,h,s,a,f,d,g,R,i,c,u,r,x,y]}class ri extends fe{constructor(t){super(),ue(this,t,ni,Go,ae,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class Bt extends yt{constructor(t,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?nn(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,Et(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ao(this),qe(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var t;(t=this.tour.modal)==null||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=Er(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return ge(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const t=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new ri({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();ge(this.options.scrollToHandler)?this.options.scrollToHandler(n):or(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(t)}_getClassOptions(t){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=t.classes?t.classes:"",o=n&&n.classes?n.classes:"",s=[...r.split(" "),...o.split(" ")],i=new Set(s);return Array.from(i).join(" ").trim()}_setOptions(t={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=wt({},n||{}),this.options=Object.assign({arrow:!0},n,t,co(n,t));const{when:r}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${on()}`,r&&Object.keys(r).forEach(o=>{this.on(o,r[o],this)})}_setupElements(){N(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&_r(this),lo(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(t=this.tour.modal)==null||t.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),r=this.target||document.body;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(t){const n=t.target;n&&(t.options.highlightClass&&n.classList.add(t.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),t.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const t=this.target||document.body;this.options.highlightClass&&t.classList.remove(this.options.highlightClass),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function oi(e){if(e){const{steps:t}=e;t.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&qe(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function ii({width:e,height:t,x:n=0,y:r=0,r:o=0}){const{innerWidth:s,innerHeight:i}=window,{topLeft:c=0,topRight:a=0,bottomRight:u=0,bottomLeft:f=0}=typeof o=="number"?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${s},${i}H0V0H${s}V${i}ZM${n+c},${r}a${c},${c},0,0,0-${c},${c}V${t+r-f}a${f},${f},0,0,0,${f},${f}H${e+n-u}a${u},${u},0,0,0,${u}-${u}V${r+a}a${a},${a},0,0,0-${a}-${a}Z`}function si(e){let t,n,r,o,s;return{c(){t=wn("svg"),n=wn("path"),k(n,"d",e[2]),k(t,"class",r=`${e[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(i,c){te(i,t,c),De(t,n),e[11](t),o||(s=ut(t,"touchmove",e[3]),o=!0)},p(i,[c]){c&4&&k(n,"d",i[2]),c&2&&r!==(r=`${i[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&k(t,"class",r)},i:J,o:J,d(i){i&&K(t),e[11](null),o=!1,s()}}}function Bn(e){if(!e)return null;const n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return n!=="hidden"&&n!=="visible"&&e.scrollHeight>=e.clientHeight?e:Bn(e.parentElement)}function li(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;for(;n!==window.top;){var r;const i=(r=n)==null?void 0:r.frameElement;if(i){var o,s;const c=i.getBoundingClientRect();t.top+=c.top+((o=c.scrollTop)!=null?o:0),t.left+=c.left+((s=c.scrollLeft)!=null?s:0)}n=n.parent}return t}function ci(e,t){const n=e.getBoundingClientRect();let r=n.y||n.top,o=n.bottom||r+n.height;if(t){const i=t.getBoundingClientRect(),c=i.y||i.top,a=i.bottom||c+i.height;r=Math.max(r,c),o=Math.min(o,a)}const s=Math.max(o-r,0);return{y:r,height:s}}function ai(e,t,n){let{element:r,openingProperties:o}=t,s=!1,i,c;u();const a=()=>r;function u(){n(4,o={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,s=!1),w()}function h(y=0,m=0,T=0,B=0,le,$){if($){const{y:X,height:U}=ci($,le),{x:V,width:D,left:L}=$.getBoundingClientRect();n(4,o={width:D+y*2,height:U+y*2,x:(V||L)+T-y,y:X+B-y,r:m})}else u()}function d(y){w(),y.tour.options.useModalOverlay?(_(y),g()):f()}function g(){n(1,s=!0)}const v=y=>{y.preventDefault()},x=y=>{y.stopPropagation()};function S(){window.addEventListener("touchmove",v,{passive:!1})}function w(){i&&(cancelAnimationFrame(i),i=void 0),window.removeEventListener("touchmove",v,{passive:!1})}function _(y){const{modalOverlayOpeningPadding:m,modalOverlayOpeningRadius:T,modalOverlayOpeningXOffset:B=0,modalOverlayOpeningYOffset:le=0}=y.options,$=li(y.target),X=Bn(y.target),U=()=>{i=void 0,h(m,T,B+$.left,le+$.top,X,y.target),i=requestAnimationFrame(U)};U(),S()}function R(y){We[y?"unshift":"push"](()=>{r=y,n(0,r)})}return e.$$set=y=>{"element"in y&&n(0,r=y.element),"openingProperties"in y&&n(4,o=y.openingProperties)},e.$$.update=()=>{e.$$.dirty&16&&n(2,c=ii(o))},[r,s,c,x,o,a,u,f,h,d,g,R]}class ui extends fe{constructor(t){super(),ue(this,t,ai,si,ae,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}class fi extends yt{constructor(){super(),this.activeTour=void 0,Et(this)}}class di extends yt{constructor(t={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,Et(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,t),this.classPrefix=nn(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(s=>{this.on(s,i=>{i=i||{},i.tour=this,Ae.trigger(s,i)})})(o)}),this._setTourID(t.id),this}addStep(t,n){let r=t;return r instanceof Bt?r.tour=this:r=new Bt(this,r),N(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(t){return Array.isArray(t)&&t.forEach(n=>{this.addStep(n)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;ge(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(n=>n.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return Ae.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}removeStep(t){const n=this.getCurrentStep();this.steps.some((r,o)=>{if(r.id===t)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(o,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,n=!0){const r=Je(t)?this.getById(t):this.steps[t];r&&(this._updateStateBeforeShow(),ge(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.currentStep=r,this.trigger("show",{step:r,previous:this.currentStep}),r.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(t){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),oi(this),this.trigger(t,{index:n}),Ae.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(t==="cancel"||t==="complete")&&this.modal){const r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}qe(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Ae.activeTour=this}setupModal(){this.modal=new ui({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(t,n){const r=this.steps.indexOf(t);if(r===this.steps.length-1)this.complete();else{const o=n?r+1:r-1;this.show(o,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const n=this.options.tourName||"tour",r=t||on();this.id=`${n}--${r}`}}const Ae=new fi,Nn=typeof window>"u";Ae.Step=Nn?wr:Bt,Ae.Tour=Nn?xr:di;const dt=pe.createContext(void 0),hi=dt.Consumer,pi=()=>{const e=pe.useContext(dt);if(!e)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:t}=e;return t},gi=({children:e})=>rr.jsx(dt.Provider,{value:{Shepherd:Ae},children:e});oe.JourneyMethods=hi,oe.ShepherdJourneyContext=dt,oe.ShepherdJourneyProvider=gi,oe.useShepherd=pi,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-shepherd",
3
- "version": "6.1.0",
3
+ "version": "6.1.3",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,19 +24,19 @@
24
24
  "src"
25
25
  ],
26
26
  "dependencies": {
27
- "shepherd.js": "13.0.2"
27
+ "shepherd.js": "14.0.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "^6.2.0",
31
- "@testing-library/react": "^16.0.0",
31
+ "@testing-library/react": "^16.0.1",
32
32
  "@types/react": "^18.3.3",
33
33
  "@vitejs/plugin-react": "^4.2.1",
34
- "@vitest/ui": "^2.0.4",
34
+ "@vitest/ui": "^2.1.1",
35
35
  "happy-dom": "^14.11.0",
36
36
  "typescript": "^5.4.5",
37
- "vite": "^5.3.2",
37
+ "vite": "^5.3.6",
38
38
  "vite-plugin-dts": "^3.9.1",
39
- "vitest": "^2.0.4"
39
+ "vitest": "^2.1.1"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "^18.2.0",