react-shepherd 6.0.4 → 6.1.0

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(gt,kt){typeof exports=="object"&&typeof module<"u"?kt(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],kt):(gt=typeof globalThis<"u"?globalThis:gt||self,kt(gt.ShepherdProReact={},gt.require$$0))})(this,function(gt,kt){"use strict";var kn={exports:{}},De={};/**
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={};/**
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 Wo;function Ji(){if(Wo)return De;Wo=1;var t=kt,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(l,c,a){var f,h={},d=null,p=null;a!==void 0&&(d=""+a),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(p=c.ref);for(f in c)o.call(c,f)&&!i.hasOwnProperty(f)&&(h[f]=c[f]);if(l&&l.defaultProps)for(f in c=l.defaultProps,c)h[f]===void 0&&(h[f]=c[f]);return{$$typeof:e,type:l,key:d,ref:p,props:h,_owner:r.current}}return De.Fragment=n,De.jsx=s,De.jsxs=s,De}var Fe={};/**
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={};/**
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 No;function Xi(){return No||(No=1,process.env.NODE_ENV!=="production"&&function(){var t=kt,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function _(u){if(u===null||typeof u!="object")return null;var v=m&&u[m]||u[y];return typeof v=="function"?v:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(u){{for(var v=arguments.length,E=new Array(v>1?v-1:0),T=1;T<v;T++)E[T-1]=arguments[T];S("error",u,E)}}function S(u,v,E){{var T=w.ReactDebugCurrentFrame,k=T.getStackAddendum();k!==""&&(v+="%s",E=E.concat([k]));var j=E.map(function(R){return String(R)});j.unshift("Warning: "+v),Function.prototype.apply.call(console[u],console,j)}}var b=!1,g=!1,O=!1,P=!1,V=!1,I;I=Symbol.for("react.module.reference");function B(u){return!!(typeof u=="string"||typeof u=="function"||u===o||u===i||V||u===r||u===a||u===f||P||u===p||b||g||O||typeof u=="object"&&u!==null&&(u.$$typeof===d||u.$$typeof===h||u.$$typeof===s||u.$$typeof===l||u.$$typeof===c||u.$$typeof===I||u.getModuleId!==void 0))}function N(u,v,E){var T=u.displayName;if(T)return T;var k=v.displayName||v.name||"";return k!==""?E+"("+k+")":E}function U(u){return u.displayName||"Context"}function A(u){if(u==null)return null;if(typeof u.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case o:return"Fragment";case n:return"Portal";case i:return"Profiler";case r:return"StrictMode";case a:return"Suspense";case f:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case l:var v=u;return U(v)+".Consumer";case s:var E=u;return U(E._context)+".Provider";case c:return N(u,u.render,"ForwardRef");case h:var T=u.displayName||null;return T!==null?T:A(u.type)||"Memo";case d:{var k=u,j=k._payload,R=k._init;try{return A(R(j))}catch{return null}}}return null}var $=Object.assign,q=0,H,W,et,_t,Cn,Pi,ki;function Mi(){}Mi.__reactDisabledLog=!0;function Wu(){{if(q===0){H=console.log,W=console.info,et=console.warn,_t=console.error,Cn=console.group,Pi=console.groupCollapsed,ki=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Mi,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}q++}}function Nu(){{if(q--,q===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},u,{value:H}),info:$({},u,{value:W}),warn:$({},u,{value:et}),error:$({},u,{value:_t}),group:$({},u,{value:Cn}),groupCollapsed:$({},u,{value:Pi}),groupEnd:$({},u,{value:ki})})}q<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ao=w.ReactCurrentDispatcher,Po;function Rn(u,v,E){{if(Po===void 0)try{throw Error()}catch(k){var T=k.stack.trim().match(/\n( *(at )?)/);Po=T&&T[1]||""}return`
18
- `+Po+u}}var ko=!1,In;{var Hu=typeof WeakMap=="function"?WeakMap:Map;In=new Hu}function Li(u,v){if(!u||ko)return"";{var E=In.get(u);if(E!==void 0)return E}var T;ko=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=Ao.current,Ao.current=null,Wu();try{if(v){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(ot){T=ot}Reflect.construct(u,[],R)}else{try{R.call()}catch(ot){T=ot}u.call(R.prototype)}}else{try{throw Error()}catch(ot){T=ot}u()}}catch(ot){if(ot&&T&&typeof ot.stack=="string"){for(var C=ot.stack.split(`
19
- `),nt=T.stack.split(`
20
- `),J=C.length-1,X=nt.length-1;J>=1&&X>=0&&C[J]!==nt[X];)X--;for(;J>=1&&X>=0;J--,X--)if(C[J]!==nt[X]){if(J!==1||X!==1)do if(J--,X--,X<0||C[J]!==nt[X]){var ut=`
21
- `+C[J].replace(" at new "," at ");return u.displayName&&ut.includes("<anonymous>")&&(ut=ut.replace("<anonymous>",u.displayName)),typeof u=="function"&&In.set(u,ut),ut}while(J>=1&&X>=0);break}}}finally{ko=!1,Ao.current=j,Nu(),Error.prepareStackTrace=k}var Le=u?u.displayName||u.name:"",ce=Le?Rn(Le):"";return typeof u=="function"&&In.set(u,ce),ce}function Vu(u,v,E){return Li(u,!1)}function Uu(u){var v=u.prototype;return!!(v&&v.isReactComponent)}function An(u,v,E){if(u==null)return"";if(typeof u=="function")return Li(u,Uu(u));if(typeof u=="string")return Rn(u);switch(u){case a:return Rn("Suspense");case f:return Rn("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return Vu(u.render);case h:return An(u.type,v,E);case d:{var T=u,k=T._payload,j=T._init;try{return An(j(k),v,E)}catch{}}}return""}var tn=Object.prototype.hasOwnProperty,Di={},Fi=w.ReactDebugCurrentFrame;function Pn(u){if(u){var v=u._owner,E=An(u.type,u._source,v?v.type:null);Fi.setExtraStackFrame(E)}else Fi.setExtraStackFrame(null)}function qu(u,v,E,T,k){{var j=Function.call.bind(tn);for(var R in u)if(j(u,R)){var C=void 0;try{if(typeof u[R]!="function"){var nt=Error((T||"React class")+": "+E+" type `"+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[R]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nt.name="Invariant Violation",nt}C=u[R](v,R,T,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(J){C=J}C&&!(C instanceof Error)&&(Pn(k),x("%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).",T||"React class",E,R,typeof C),Pn(null)),C instanceof Error&&!(C.message in Di)&&(Di[C.message]=!0,Pn(k),x("Failed %s type: %s",E,C.message),Pn(null))}}}var Yu=Array.isArray;function Mo(u){return Yu(u)}function Ku(u){{var v=typeof Symbol=="function"&&Symbol.toStringTag,E=v&&u[Symbol.toStringTag]||u.constructor.name||"Object";return E}}function zu(u){try{return ji(u),!1}catch{return!0}}function ji(u){return""+u}function Bi(u){if(zu(u))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ku(u)),ji(u)}var en=w.ReactCurrentOwner,Ju={key:!0,ref:!0,__self:!0,__source:!0},Wi,Ni,Lo;Lo={};function Xu(u){if(tn.call(u,"ref")){var v=Object.getOwnPropertyDescriptor(u,"ref").get;if(v&&v.isReactWarning)return!1}return u.ref!==void 0}function Gu(u){if(tn.call(u,"key")){var v=Object.getOwnPropertyDescriptor(u,"key").get;if(v&&v.isReactWarning)return!1}return u.key!==void 0}function Zu(u,v){if(typeof u.ref=="string"&&en.current&&v&&en.current.stateNode!==v){var E=A(en.current.type);Lo[E]||(x('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',A(en.current.type),u.ref),Lo[E]=!0)}}function Qu(u,v){{var E=function(){Wi||(Wi=!0,x("%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)",v))};E.isReactWarning=!0,Object.defineProperty(u,"key",{get:E,configurable:!0})}}function tf(u,v){{var E=function(){Ni||(Ni=!0,x("%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)",v))};E.isReactWarning=!0,Object.defineProperty(u,"ref",{get:E,configurable:!0})}}var ef=function(u,v,E,T,k,j,R){var C={$$typeof:e,type:u,key:v,ref:E,props:R,_owner:j};return C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(C,"_self",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.defineProperty(C,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C};function nf(u,v,E,T,k){{var j,R={},C=null,nt=null;E!==void 0&&(Bi(E),C=""+E),Gu(v)&&(Bi(v.key),C=""+v.key),Xu(v)&&(nt=v.ref,Zu(v,k));for(j in v)tn.call(v,j)&&!Ju.hasOwnProperty(j)&&(R[j]=v[j]);if(u&&u.defaultProps){var J=u.defaultProps;for(j in J)R[j]===void 0&&(R[j]=J[j])}if(C||nt){var X=typeof u=="function"?u.displayName||u.name||"Unknown":u;C&&Qu(R,X),nt&&tf(R,X)}return ef(u,C,nt,k,T,en.current,R)}}var Do=w.ReactCurrentOwner,Hi=w.ReactDebugCurrentFrame;function Me(u){if(u){var v=u._owner,E=An(u.type,u._source,v?v.type:null);Hi.setExtraStackFrame(E)}else Hi.setExtraStackFrame(null)}var Fo;Fo=!1;function jo(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function Vi(){{if(Do.current){var u=A(Do.current.type);if(u)return`
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(`
19
+ `),H=E.stack.split(`
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`
22
22
 
23
- Check the render method of \``+u+"`."}return""}}function of(u){return""}var Ui={};function rf(u){{var v=Vi();if(!v){var E=typeof u=="string"?u:u.displayName||u.name;E&&(v=`
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=`
24
24
 
25
- Check the top-level render call using <`+E+">.")}return v}}function qi(u,v){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var E=rf(v);if(Ui[E])return;Ui[E]=!0;var T="";u&&u._owner&&u._owner!==Do.current&&(T=" It was passed a child from "+A(u._owner.type)+"."),Me(u),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,T),Me(null)}}function Yi(u,v){{if(typeof u!="object")return;if(Mo(u))for(var E=0;E<u.length;E++){var T=u[E];jo(T)&&qi(T,v)}else if(jo(u))u._store&&(u._store.validated=!0);else if(u){var k=_(u);if(typeof k=="function"&&k!==u.entries)for(var j=k.call(u),R;!(R=j.next()).done;)jo(R.value)&&qi(R.value,v)}}}function sf(u){{var v=u.type;if(v==null||typeof v=="string")return;var E;if(typeof v=="function")E=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===c||v.$$typeof===h))E=v.propTypes;else return;if(E){var T=A(v);qu(E,u.props,"prop",T,u)}else if(v.PropTypes!==void 0&&!Fo){Fo=!0;var k=A(v);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lf(u){{for(var v=Object.keys(u.props),E=0;E<v.length;E++){var T=v[E];if(T!=="children"&&T!=="key"){Me(u),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T),Me(null);break}}u.ref!==null&&(Me(u),x("Invalid attribute `ref` supplied to `React.Fragment`."),Me(null))}}var Ki={};function zi(u,v,E,T,k,j){{var R=B(u);if(!R){var C="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(C+=" 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 nt=of();nt?C+=nt:C+=Vi();var J;u===null?J="null":Mo(u)?J="array":u!==void 0&&u.$$typeof===e?(J="<"+(A(u.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):J=typeof u,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",J,C)}var X=nf(u,v,E,k,j);if(X==null)return X;if(R){var ut=v.children;if(ut!==void 0)if(T)if(Mo(ut)){for(var Le=0;Le<ut.length;Le++)Yi(ut[Le],u);Object.freeze&&Object.freeze(ut)}else x("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 Yi(ut,u)}if(tn.call(v,"key")){var ce=A(u),ot=Object.keys(v).filter(function(hf){return hf!=="key"}),Bo=ot.length>0?"{key: someKey, "+ot.join(": ..., ")+": ...}":"{key: someKey}";if(!Ki[ce+Bo]){var df=ot.length>0?"{"+ot.join(": ..., ")+": ...}":"{}";x(`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=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:
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} />`,Bo,ce,df,ce),Ki[ce+Bo]=!0}}return u===o?lf(X):sf(X),X}}function cf(u,v,E){return zi(u,v,E,!0)}function af(u,v,E){return zi(u,v,E,!1)}var uf=af,ff=cf;Fe.Fragment=o,Fe.jsx=uf,Fe.jsxs=ff}()),Fe}process.env.NODE_ENV==="production"?kn.exports=Ji():kn.exports=Xi();var Gi=kn.exports;/*! shepherd.js 13.0.0 */function Zi(t){return t instanceof Element}function je(t){return t instanceof HTMLElement}function Mt(t){return typeof t=="function"}function Be(t){return typeof t=="string"}function G(t){return t===void 0}class Mn{on(e,n,o,r=!1){var i;return G(this.bindings)&&(this.bindings={}),G(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:o,once:r}),this}once(e,n,o){return this.on(e,n,o,!0)}off(e,n){if(G(this.bindings)||G(this.bindings[e]))return this;if(G(n))delete this.bindings[e];else{var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{if(r.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!G(this.bindings)&&this.bindings[e]){var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{const{ctx:s,handler:l,once:c}=r,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function Q(){return Q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Q.apply(null,arguments)}function Ho(t,e){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;n[o]=t[o]}return n}const Lt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Lt.defaultMerge;function Qi(t,e){return e}function Vo(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:ns(t)?1:t instanceof Set?3:t instanceof Map?4:5}function ts(t){const e=new Set;for(const n of t)for(const o of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(o);return e}function es(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function Uo(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const qo=new Set(["[object Object]","[object Module]"]);function ns(t){if(!qo.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!qo.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function os(t,e,n){const o={};for(const r of ts(t)){const i=[];for(const c of t)es(c,r)&&i.push(c[r]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:r,parents:t}),l=Ko(i,e,s);l!==Lt.skip&&(r==="__proto__"?Object.defineProperty(o,r,{value:l,configurable:!0,enumerable:!0,writable:!0}):o[r]=l)}return o}function rs(t){return t.flat()}function is(t){return new Set(Uo(t))}function ss(t){return new Map(Uo(t))}function Yo(t){return t.at(-1)}var Ln=Object.freeze({__proto__:null,mergeArrays:rs,mergeMaps:ss,mergeOthers:Yo,mergeRecords:os,mergeSets:is});function Dn(...t){return ls({})(...t)}function ls(t,e){const n=cs(t,o);function o(...r){return Ko(r,n,e)}return o}function cs(t,e){var n,o;return{defaultMergeFunctions:Ln,mergeFunctions:Q({},Ln,Object.fromEntries(Object.entries(t).filter(([r,i])=>Object.hasOwn(Ln,r)).map(([r,i])=>i===!1?[r,Yo]:[r,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:Qi,deepmerge:e,useImplicitDefaultMerging:(o=t.enableImplicitDefaultMerging)!=null?o:!1,actions:Lt}}function Ko(t,e,n){if(t.length===0)return;if(t.length===1)return Fn(t,e,n);const o=Vo(t[0]);if(o!==0&&o!==5){for(let r=1;r<t.length;r++)if(Vo(t[r])!==o)return Fn(t,e,n)}switch(o){case 1:return as(t,e,n);case 2:return us(t,e,n);case 3:return fs(t,e,n);case 4:return ds(t,e,n);default:return Fn(t,e,n)}}function as(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);return o===Lt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):o}function us(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);return o===Lt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):o}function fs(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);return o===Lt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):o}function ds(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);return o===Lt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):o}function Fn(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return o===Lt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):o}function jn(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],r=t[o];o!=="constructor"&&typeof r=="function"&&(t[o]=r.bind(t))}return t}function hs(t,e){return n=>{if(t.isOpen()){const o=t.el&&n.currentTarget===t.el;(!G(e)&&n.currentTarget.matches(e)||o)&&t.tour.next()}}}function ps(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const o=hs(t,n);let r=null;if(!G(n)&&(r=document.querySelector(n),!r))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);r?(r.addEventListener(e,o),t.on("destroy",()=>r.removeEventListener(e,o))):(document.body.addEventListener(e,o,!0),t.on("destroy",()=>document.body.removeEventListener(e,o,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class gs{constructor(e){}}class ms{constructor(e,n){}}function zo(t){return!Be(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function bs(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(Mt(n.element)&&(n.element=n.element.call(t)),Be(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Jo(t){return t==null?!0:!t.element||!t.on}function Xo(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const ae=Math.min,Yt=Math.max,nn=Math.round,on=Math.floor,Dt=t=>({x:t,y:t}),ys={left:"right",right:"left",bottom:"top",top:"bottom"},vs={start:"end",end:"start"};function Bn(t,e,n){return Yt(t,ae(e,n))}function ue(t,e){return typeof t=="function"?t(e):t}function Kt(t){return t.split("-")[0]}function rn(t){return t.split("-")[1]}function Wn(t){return t==="x"?"y":"x"}function Nn(t){return t==="y"?"height":"width"}function sn(t){return["top","bottom"].includes(Kt(t))?"y":"x"}function Hn(t){return Wn(sn(t))}function ws(t,e,n){n===void 0&&(n=!1);const o=rn(t),r=Hn(t),i=Nn(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ln(s)),[s,ln(s)]}function xs(t){const e=ln(t);return[Vn(t),e,Vn(e)]}function Vn(t){return t.replace(/start|end/g,e=>vs[e])}function _s(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function Es(t,e,n,o){const r=rn(t);let i=_s(Kt(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(Vn)))),i}function ln(t){return t.replace(/left|right|bottom|top/g,e=>ys[e])}function Ss(t){return Q({top:0,right:0,bottom:0,left:0},t)}function Go(t){return typeof t!="number"?Ss(t):{top:t,right:t,bottom:t,left:t}}function cn(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}const Os=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Ts=["mainAxis","crossAxis","limiter"];function Zo(t,e,n){let{reference:o,floating:r}=t;const i=sn(e),s=Hn(e),l=Nn(s),c=Kt(e),a=i==="y",f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-r.width,y:h};break;default:p={x:o.x,y:o.y}}switch(rn(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const $s=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Zo(a,o,c),d=o,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=Q({},p,{[_]:Q({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):g.rects),{x:f,y:h}=Zo(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:p}};async function Qo(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=ue(e,t),m=Go(p),_=l[d?h==="floating"?"reference":"floating":h],w=cn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),x=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},g=cn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:S,strategy:c}):x);return{top:(w.top-g.top+m.top)/b.y,bottom:(g.bottom-w.bottom+m.bottom)/b.y,left:(w.left-g.left+m.left)/b.x,right:(g.right-w.right+m.right)/b.x}}const Cs=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=ue(t,e)||{};if(a==null)return{};const h=Go(f),d={x:n,y:o},p=Hn(r),m=Nn(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=O?O[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=l.floating[S]||i.floating[m]);const V=b/2-g/2,I=P/2-y[m]/2-1,B=ae(h[w],I),N=ae(h[x],I),U=B,A=P-y[m]-N,$=P/2-y[m]/2+V,q=Bn(U,$,A),H=!c.arrow&&rn(r)!=null&&$!==q&&i.reference[m]/2-($<U?B:N)-y[m]/2<0,W=H?$<U?$-U:$-A:0;return{[p]:d[p]+W,data:Q({[p]:q,centerOffset:$-q-W},H&&{alignmentOffset:W}),reset:H}}}),Rs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var o,r;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:a,elements:f}=n,h=ue(e,n),{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:w=!0}=h,x=Ho(h,Os);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const S=Kt(i),b=Kt(c)===c,g=await(a.isRTL==null?void 0:a.isRTL(f.floating)),O=m||(b||!w?[ln(c)]:xs(c));!m&&_!=="none"&&O.push(...Es(c,w,_,g));const P=[c,...O],V=await Qo(n,x),I=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&I.push(V[S]),p){const $=ws(i,l,g);I.push(V[$[0]],V[$[1]])}if(B=[...B,{placement:i,overflows:I}],!I.every($=>$<=0)){var N,U;const $=(((N=s.flip)==null?void 0:N.index)||0)+1,q=P[$];if(q)return{data:{index:$,overflows:B},reset:{placement:q}};let H=(U=B.filter(W=>W.overflows[0]<=0).sort((W,et)=>W.overflows[1]-et.overflows[1])[0])==null?void 0:U.placement;if(!H)switch(y){case"bestFit":{var A;const W=(A=B.map(et=>[et.placement,et.overflows.filter(_t=>_t>0).reduce((_t,Cn)=>_t+Cn,0)]).sort((et,_t)=>et[1]-_t[1])[0])==null?void 0:A[0];W&&(H=W);break}case"initialPlacement":H=c;break}if(i!==H)return{reset:{placement:H}}}return{}}}},Is=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:o,y:r,placement:i}=n,s=ue(e,n),{mainAxis:l=!0,crossAxis:c=!1,limiter:a={fn:x=>{let{x:S,y:b}=x;return{x:S,y:b}}}}=s,f=Ho(s,Ts),h={x:o,y:r},d=await Qo(n,f),p=sn(Kt(i)),m=Wn(p);let y=h[m],_=h[p];if(l){const x=m==="y"?"top":"left",S=m==="y"?"bottom":"right",b=y+d[x],g=y-d[S];y=Bn(b,y,g)}if(c){const x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",b=_+d[x],g=_-d[S];_=Bn(b,_,g)}const w=a.fn(Q({},n,{[m]:y,[p]:_}));return Q({},w,{data:{x:w.x-o,y:w.y-r}})}}},As=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:o,y:r,placement:i,rects:s,middlewareData:l}=n,{offset:c=0,mainAxis:a=!0,crossAxis:f=!0}=ue(e,n),h={x:o,y:r},d=sn(i),p=Wn(d);let m=h[p],y=h[d];const _=ue(c,n),w=typeof _=="number"?{mainAxis:_,crossAxis:0}:Q({mainAxis:0,crossAxis:0},_);if(a){const b=p==="y"?"height":"width",g=s.reference[p]-s.floating[b]+w.mainAxis,O=s.reference[p]+s.reference[b]-w.mainAxis;m<g?m=g:m>O&&(m=O)}if(f){var x,S;const b=p==="y"?"width":"height",g=["top","left"].includes(Kt(i)),O=s.reference[d]-s.floating[b]+(g&&((x=l.offset)==null?void 0:x[d])||0)+(g?0:w.crossAxis),P=s.reference[d]+s.reference[b]+(g?0:((S=l.offset)==null?void 0:S[d])||0)-(g?w.crossAxis:0);y<O?y=O:y>P&&(y=P)}return{[p]:m,[d]:y}}}};function fe(t){return tr(t)?(t.nodeName||"").toLowerCase():"#document"}function rt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Et(t){var e;return(e=(tr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function tr(t){return t instanceof Node||t instanceof rt(t).Node}function mt(t){return t instanceof Element||t instanceof rt(t).Element}function bt(t){return t instanceof HTMLElement||t instanceof rt(t).HTMLElement}function er(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof rt(t).ShadowRoot}function We(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function Ps(t){return["table","td","th"].includes(fe(t))}function Un(t){const e=qn(),n=ft(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function ks(t){let e=Ft(t);for(;bt(e)&&!de(e);){if(Un(e))return e;e=Ft(e)}return null}function qn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function de(t){return["html","body","#document"].includes(fe(t))}function ft(t){return rt(t).getComputedStyle(t)}function an(t){return mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ft(t){if(fe(t)==="html")return t;const e=t.assignedSlot||t.parentNode||er(t)&&t.host||Et(t);return er(e)?e.host:e}function nr(t){const e=Ft(t);return de(e)?t.ownerDocument?t.ownerDocument.body:t.body:bt(e)&&We(e)?e:nr(e)}function Ne(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=nr(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=rt(r);return i?e.concat(s,s.visualViewport||[],We(r)?r:[],s.frameElement&&n?Ne(s.frameElement):[]):e.concat(r,Ne(r,[],n))}function or(t){const e=ft(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=bt(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=nn(n)!==i||nn(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function Yn(t){return mt(t)?t:t.contextElement}function he(t){const e=Yn(t);if(!bt(e))return Dt(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=or(e);let s=(i?nn(n.width):n.width)/o,l=(i?nn(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Ms=Dt(0);function rr(t){const e=rt(t);return!qn()||!e.visualViewport?Ms:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ls(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==rt(t)?!1:e}function zt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Yn(t);let s=Dt(1);e&&(o?mt(o)&&(s=he(o)):s=he(t));const l=Ls(i,n,o)?rr(i):Dt(0);let c=(r.left+l.x)/s.x,a=(r.top+l.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(i){const d=rt(i),p=o&&mt(o)?rt(o):o;let m=d,y=m.frameElement;for(;y&&o&&p!==m;){const _=he(y),w=y.getBoundingClientRect(),x=ft(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=rt(y),y=m.frameElement}}return cn({width:f,height:h,x:c,y:a})}const Ds=[":popover-open",":modal"];function Kn(t){return Ds.some(e=>{try{return t.matches(e)}catch{return!1}})}function Fs(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=Et(o),l=e?Kn(e.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=Dt(1);const f=Dt(0),h=bt(o);if((h||!h&&!i)&&((fe(o)!=="body"||We(s))&&(c=an(o)),bt(o))){const d=zt(o);a=he(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function js(t){return Array.from(t.getClientRects())}function ir(t){return zt(Et(t)).left+an(t).scrollLeft}function Bs(t){const e=Et(t),n=an(t),o=t.ownerDocument.body,r=Yt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Yt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ir(t);const l=-n.scrollTop;return ft(o).direction==="rtl"&&(s+=Yt(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function Ws(t,e){const n=rt(t),o=Et(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const a=qn();(!a||a&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function Ns(t,e){const n=zt(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=bt(t)?he(t):Dt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,a=o*i.y;return{width:s,height:l,x:c,y:a}}function sr(t,e,n){let o;if(e==="viewport")o=Ws(t,n);else if(e==="document")o=Bs(Et(t));else if(mt(e))o=Ns(e,n);else{const r=rr(t);o=Q({},e,{x:e.x-r.x,y:e.y-r.y})}return cn(o)}function lr(t,e){const n=Ft(t);return n===e||!mt(n)||de(n)?!1:ft(n).position==="fixed"||lr(n,e)}function Hs(t,e){const n=e.get(t);if(n)return n;let o=Ne(t,[],!1).filter(l=>mt(l)&&fe(l)!=="body"),r=null;const i=ft(t).position==="fixed";let s=i?Ft(t):t;for(;mt(s)&&!de(s);){const l=ft(s),c=Un(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||We(s)&&!c&&lr(t,s))?o=o.filter(f=>f!==s):r=l,s=Ft(s)}return e.set(t,o),o}function Vs(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?Kn(e)?[]:Hs(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((a,f)=>{const h=sr(e,f,r);return a.top=Yt(h.top,a.top),a.right=ae(h.right,a.right),a.bottom=ae(h.bottom,a.bottom),a.left=Yt(h.left,a.left),a},sr(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Us(t){const{width:e,height:n}=or(t);return{width:e,height:n}}function qs(t,e,n){const o=bt(e),r=Et(e),i=n==="fixed",s=zt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Dt(0);if(o||!o&&!i)if((fe(e)!=="body"||We(r))&&(l=an(e)),o){const h=zt(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else r&&(c.x=ir(r));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function zn(t){return ft(t).position==="static"}function cr(t,e){return!bt(t)||ft(t).position==="fixed"?null:e?e(t):t.offsetParent}function ar(t,e){const n=rt(t);if(Kn(t))return n;if(!bt(t)){let r=Ft(t);for(;r&&!de(r);){if(mt(r)&&!zn(r))return r;r=Ft(r)}return n}let o=cr(t,e);for(;o&&Ps(o)&&zn(o);)o=cr(o,e);return o&&de(o)&&zn(o)&&!Un(o)?n:o||ks(t)||n}const Ys=async function(e){const n=this.getOffsetParent||ar,o=this.getDimensions,r=await o(e.floating);return{reference:qs(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ks(t){return ft(t).direction==="rtl"}const zs={convertOffsetParentRelativeRectToViewportRelativeRect:Fs,getDocumentElement:Et,getClippingRect:Vs,getOffsetParent:ar,getElementRects:Ys,getClientRects:js,getDimensions:Us,getScale:he,isElement:mt,isRTL:Ks};function Js(t,e){let n=null,o;const r=Et(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=on(f),m=on(r.clientWidth-(a+h)),y=on(r.clientHeight-(f+d)),_=on(a),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:Yt(0,ae(1,c))||1};let S=!0;function b(g){const O=g[0].intersectionRatio;if(O!==c){if(!S)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(b,Q({},x,{root:r.ownerDocument}))}catch{n=new IntersectionObserver(b,x)}n.observe(t)}return s(!0),i}function Xs(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=Yn(t),f=r||i?[...a?Ne(a):[],...Ne(e)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?Js(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?zt(t):null;c&&_();function _(){const w=zt(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Gs=Is,Zs=Rs,Qs=Cs,tl=As,el=(t,e,n)=>{const o=new Map,r=Q({platform:zs},n),i=Q({},r.platform,{_c:o});return $s(t,e,Q({},r,{platform:i}))};function nl(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const o=cl(e,t),r=Jo(e);return r&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=Xs(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}il(n,t,o,r)}),t.target=e.element,o}function ol(t,e){return{floatingUIOptions:Dn(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function rl(t){t.cleanup&&t.cleanup(),t.cleanup=null}function il(t,e,n,o){return el(t,e.el,n).then(sl(e,o)).then(r=>new Promise(i=>{setTimeout(()=>i(r),300)})).then(r=>{r!=null&&r.el&&r.el.focus({preventScroll:!0})})}function sl(t,e){return({x:n,y:o,placement:r,middlewareData:i})=>(t.el&&(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:`${n}px`,top:`${o}px`}),t.el.dataset.popperPlacement=r,ll(t.el,i)),t)}function ll(t,e){const n=t.querySelector(".shepherd-arrow");if(je(n)&&e.arrow){const{x:o,y:r}=e.arrow;Object.assign(n.style,{left:o!=null?`${o}px`:"",top:r!=null?`${r}px`:""})}}function cl(t,e){const n={strategy:"absolute"};n.middleware=[];const o=al(e);return Jo(t)||(n.middleware.push(Zs(),Gs({limiter:tl(),crossAxis:!0})),o&&n.middleware.push(Qs({element:o})),n.placement=t.on),Dn(e.options.floatingUIOptions||{},n)}function al(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function it(){}function ul(t,e){for(const n in e)t[n]=e[n];return t}function ur(t){return t()}function fr(){return Object.create(null)}function He(t){t.forEach(ur)}function Jn(t){return typeof t=="function"}function St(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function fl(t){return Object.keys(t).length===0}function pe(t,e){t.appendChild(e)}function dt(t,e,n){t.insertBefore(e,n||null)}function ct(t){t.parentNode&&t.parentNode.removeChild(t)}function dl(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function yt(t){return document.createElement(t)}function dr(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function hr(t){return document.createTextNode(t)}function un(){return hr(" ")}function hl(){return hr("")}function fn(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function D(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const pl=["width","height"];function pr(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)e[o]==null?t.removeAttribute(o):o==="style"?t.style.cssText=e[o]:o==="__value"?t.value=t[o]=e[o]:n[o]&&n[o].set&&pl.indexOf(o)===-1?t[o]=e[o]:D(t,o,e[o])}function gl(t){return Array.from(t.childNodes)}function ge(t,e,n){t.classList.toggle(e,!!n)}let Ve;function Ue(t){Ve=t}function gr(){if(!Ve)throw new Error("Function called outside component initialization");return Ve}function ml(t){gr().$$.on_mount.push(t)}function Xn(t){gr().$$.after_update.push(t)}const me=[],be=[];let ye=[];const mr=[],bl=Promise.resolve();let Gn=!1;function yl(){Gn||(Gn=!0,bl.then(br))}function Zn(t){ye.push(t)}const Qn=new Set;let ve=0;function br(){if(ve!==0)return;const t=Ve;do{try{for(;ve<me.length;){const e=me[ve];ve++,Ue(e),vl(e.$$)}}catch(e){throw me.length=0,ve=0,e}for(Ue(null),me.length=0,ve=0;be.length;)be.pop()();for(let e=0;e<ye.length;e+=1){const n=ye[e];Qn.has(n)||(Qn.add(n),n())}ye.length=0}while(me.length);for(;mr.length;)mr.pop()();Gn=!1,Qn.clear(),Ue(t)}function vl(t){if(t.fragment!==null){t.update(),He(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Zn)}}function wl(t){const e=[],n=[];ye.forEach(o=>t.indexOf(o)===-1?e.push(o):n.push(o)),n.forEach(o=>o()),ye=e}const dn=new Set;let Jt;function Xt(){Jt={r:0,c:[],p:Jt}}function Gt(){Jt.r||He(Jt.c),Jt=Jt.p}function M(t,e){t&&t.i&&(dn.delete(t),t.i(e))}function Y(t,e,n,o){if(t&&t.o){if(dn.has(t))return;dn.add(t),Jt.c.push(()=>{dn.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}else o&&o()}function yr(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function xl(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(o[c]=1);for(const c in l)r[c]||(n[c]=l[c],r[c]=1);t[i]=l}else for(const c in s)r[c]=1}for(const s in o)s in n||(n[s]=void 0);return n}function Zt(t){t&&t.c()}function jt(t,e,n){const{fragment:o,after_update:r}=t.$$;o&&o.m(e,n),Zn(()=>{const i=t.$$.on_mount.map(ur).filter(Jn);t.$$.on_destroy?t.$$.on_destroy.push(...i):He(i),t.$$.on_mount=[]}),r.forEach(Zn)}function Bt(t,e){const n=t.$$;n.fragment!==null&&(wl(n.after_update),He(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function _l(t,e){t.$$.dirty[0]===-1&&(me.push(t),yl(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ot(t,e,n,o,r,i,s=null,l=[-1]){const c=Ve;Ue(t);const a=t.$$={fragment:null,ctx:[],props:i,update:it,not_equal:r,bound:fr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:fr(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&r(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&_l(t,h)),d}):[],a.update(),f=!0,He(a.before_update),a.fragment=o?o(a.ctx):!1,e.target){if(e.hydrate){const h=gl(e.target);a.fragment&&a.fragment.l(h),h.forEach(ct)}else a.fragment&&a.fragment.c();e.intro&&M(t.$$.fragment),jt(t,e.target,e.anchor),br()}Ue(c)}class Tt{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){Bt(this,1),this.$destroy=it}$on(e,n){if(!Jn(n))return it;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(e){this.$$set&&!fl(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const El="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(El);function Sl(t){let e,n,o,r,i;return{c(){e=yt("button"),D(e,"aria-label",n=t[3]?t[3]:null),D(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],D(e,"tabindex","0"),D(e,"type","button")},m(s,l){dt(s,e,l),e.innerHTML=t[5],r||(i=fn(e,"click",function(){Jn(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&D(e,"aria-label",n),l&18&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&D(e,"class",o),l&4&&(e.disabled=t[2])},i:it,o:it,d(s){s&&ct(e),r=!1,i()}}}function Ol(t,e,n){let{config:o,step:r}=e,i,s,l,c,a,f;function h(d){return Mt(d)?d=d.call(r):d}return t.$$set=d=>{"config"in d&&n(6,o=d.config),"step"in d&&n(7,r=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=o.action?o.action.bind(r.tour):null),n(1,s=o.classes),n(2,l=o.disabled?h(o.disabled):!1),n(3,c=o.label?h(o.label):null),n(4,a=o.secondary),n(5,f=o.text?h(o.text):null))},[i,s,l,c,a,f,o,r]}class Tl extends Tt{constructor(e){super(),Ot(this,e,Ol,Sl,St,{config:6,step:7})}}function vr(t,e,n){const o=t.slice();return o[2]=e[n],o}function wr(t){let e,n,o=yr(t[1]),r=[];for(let s=0;s<o.length;s+=1)r[s]=xr(vr(t,o,s));const i=s=>Y(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=hl()},m(s,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(s,l);dt(s,e,l),n=!0},p(s,l){if(l&3){o=yr(s[1]);let c;for(c=0;c<o.length;c+=1){const a=vr(s,o,c);r[c]?(r[c].p(a,l),M(r[c],1)):(r[c]=xr(a),r[c].c(),M(r[c],1),r[c].m(e.parentNode,e))}for(Xt(),c=o.length;c<r.length;c+=1)i(c);Gt()}},i(s){if(!n){for(let l=0;l<o.length;l+=1)M(r[l]);n=!0}},o(s){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)Y(r[l]);n=!1},d(s){s&&ct(e),dl(r,s)}}}function xr(t){let e,n;return e=new Tl({props:{config:t[2],step:t[0]}}),{c(){Zt(e.$$.fragment)},m(o,r){jt(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.config=o[2]),r&1&&(i.step=o[0]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Bt(e,o)}}}function $l(t){let e,n,o=t[1]&&wr(t);return{c(){e=yt("footer"),o&&o.c(),D(e,"class","shepherd-footer")},m(r,i){dt(r,e,i),o&&o.m(e,null),n=!0},p(r,[i]){r[1]?o?(o.p(r,i),i&2&&M(o,1)):(o=wr(r),o.c(),M(o,1),o.m(e,null)):o&&(Xt(),Y(o,1,1,()=>{o=null}),Gt())},i(r){n||(M(o),n=!0)},o(r){Y(o),n=!1},d(r){r&&ct(e),o&&o.d()}}}function Cl(t,e,n){let o,{step:r}=e;return t.$$set=i=>{"step"in i&&n(0,r=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,o=r.options.buttons)},[r,o]}class Rl extends Tt{constructor(e){super(),Ot(this,e,Cl,$l,St,{step:0})}}function Il(t){let e,n,o,r,i;return{c(){e=yt("button"),n=yt("span"),n.textContent="×",D(n,"aria-hidden","true"),D(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),D(e,"class","shepherd-cancel-icon"),D(e,"type","button")},m(s,l){dt(s,e,l),pe(e,n),r||(i=fn(e,"click",t[1]),r=!0)},p(s,[l]){l&1&&o!==(o=s[0].label?s[0].label:"Close Tour")&&D(e,"aria-label",o)},i:it,o:it,d(s){s&&ct(e),r=!1,i()}}}function Al(t,e,n){let{cancelIcon:o,step:r}=e;const i=s=>{s.preventDefault(),r.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,o=s.cancelIcon),"step"in s&&n(2,r=s.step)},[o,i,r]}class Pl extends Tt{constructor(e){super(),Ot(this,e,Al,Il,St,{cancelIcon:0,step:2})}}function kl(t){let e;return{c(){e=yt("h3"),D(e,"id",t[1]),D(e,"class","shepherd-title")},m(n,o){dt(n,e,o),t[3](e)},p(n,[o]){o&2&&D(e,"id",n[1])},i:it,o:it,d(n){n&&ct(e),t[3](null)}}}function Ml(t,e,n){let{labelId:o,element:r,title:i}=e;Xn(()=>{Mt(i)&&n(2,i=i()),n(0,r.innerHTML=i,r)});function s(l){be[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"labelId"in l&&n(1,o=l.labelId),"element"in l&&n(0,r=l.element),"title"in l&&n(2,i=l.title)},[r,o,i,s]}class Ll extends Tt{constructor(e){super(),Ot(this,e,Ml,kl,St,{labelId:1,element:0,title:2})}}function _r(t){let e,n;return e=new Ll({props:{labelId:t[0],title:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){jt(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.labelId=o[0]),r&4&&(i.title=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Bt(e,o)}}}function Er(t){let e,n;return e=new Pl({props:{cancelIcon:t[3],step:t[1]}}),{c(){Zt(e.$$.fragment)},m(o,r){jt(e,o,r),n=!0},p(o,r){const i={};r&8&&(i.cancelIcon=o[3]),r&2&&(i.step=o[1]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Bt(e,o)}}}function Dl(t){let e,n,o,r=t[2]&&_r(t),i=t[3]&&t[3].enabled&&Er(t);return{c(){e=yt("header"),r&&r.c(),n=un(),i&&i.c(),D(e,"class","shepherd-header")},m(s,l){dt(s,e,l),r&&r.m(e,null),pe(e,n),i&&i.m(e,null),o=!0},p(s,[l]){s[2]?r?(r.p(s,l),l&4&&M(r,1)):(r=_r(s),r.c(),M(r,1),r.m(e,n)):r&&(Xt(),Y(r,1,1,()=>{r=null}),Gt()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&M(i,1)):(i=Er(s),i.c(),M(i,1),i.m(e,null)):i&&(Xt(),Y(i,1,1,()=>{i=null}),Gt())},i(s){o||(M(r),M(i),o=!0)},o(s){Y(r),Y(i),o=!1},d(s){s&&ct(e),r&&r.d(),i&&i.d()}}}function Fl(t,e,n){let{labelId:o,step:r}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,o=l.labelId),"step"in l&&n(1,r=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=r.options.title),n(3,s=r.options.cancelIcon))},[o,r,i,s]}class jl extends Tt{constructor(e){super(),Ot(this,e,Fl,Dl,St,{labelId:0,step:1})}}function Bl(t){let e;return{c(){e=yt("div"),D(e,"class","shepherd-text"),D(e,"id",t[1])},m(n,o){dt(n,e,o),t[3](e)},p(n,[o]){o&2&&D(e,"id",n[1])},i:it,o:it,d(n){n&&ct(e),t[3](null)}}}function Wl(t,e,n){let{descriptionId:o,element:r,step:i}=e;Xn(()=>{let{text:l}=i.options;Mt(l)&&(l=l.call(i)),je(l)?r.appendChild(l):n(0,r.innerHTML=l,r)});function s(l){be[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"descriptionId"in l&&n(1,o=l.descriptionId),"element"in l&&n(0,r=l.element),"step"in l&&n(2,i=l.step)},[r,o,i,s]}class Nl extends Tt{constructor(e){super(),Ot(this,e,Wl,Bl,St,{descriptionId:1,element:0,step:2})}}function Sr(t){let e,n;return e=new jl({props:{labelId:t[1],step:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){jt(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.labelId=o[1]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Bt(e,o)}}}function Or(t){let e,n;return e=new Nl({props:{descriptionId:t[0],step:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){jt(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.descriptionId=o[0]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Bt(e,o)}}}function Tr(t){let e,n;return e=new Rl({props:{step:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){jt(e,o,r),n=!0},p(o,r){const i={};r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Bt(e,o)}}}function Hl(t){let e,n=!G(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o,r=!G(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&Sr(t),a=r&&Or(t),f=s&&Tr(t);return{c(){e=yt("div"),c&&c.c(),o=un(),a&&a.c(),i=un(),f&&f.c(),D(e,"class","shepherd-content")},m(h,d){dt(h,e,d),c&&c.m(e,null),pe(e,o),a&&a.m(e,null),pe(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!G(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&M(c,1)):(c=Sr(h),c.c(),M(c,1),c.m(e,o)):c&&(Xt(),Y(c,1,1,()=>{c=null}),Gt()),d&4&&(r=!G(h[2].options.text)),r?a?(a.p(h,d),d&4&&M(a,1)):(a=Or(h),a.c(),M(a,1),a.m(e,i)):a&&(Xt(),Y(a,1,1,()=>{a=null}),Gt()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&M(f,1)):(f=Tr(h),f.c(),M(f,1),f.m(e,null)):f&&(Xt(),Y(f,1,1,()=>{f=null}),Gt())},i(h){l||(M(c),M(a),M(f),l=!0)},o(h){Y(c),Y(a),Y(f),l=!1},d(h){h&&ct(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function Vl(t,e,n){let{descriptionId:o,labelId:r,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,o=s.descriptionId),"labelId"in s&&n(1,r=s.labelId),"step"in s&&n(2,i=s.step)},[o,r,i]}class Ul extends Tt{constructor(e){super(),Ot(this,e,Vl,Hl,St,{descriptionId:0,labelId:1,step:2})}}function $r(t){let e;return{c(){e=yt("div"),D(e,"class","shepherd-arrow"),D(e,"data-popper-arrow","")},m(n,o){dt(n,e,o)},d(n){n&&ct(e)}}}function ql(t){let e,n,o,r,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&$r();o=new Ul({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":r=G(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=ul(h,f[d]);return{c(){e=yt("div"),a&&a.c(),n=un(),Zt(o.$$.fragment),pr(e,h),ge(e,"shepherd-has-cancel-icon",t[5]),ge(e,"shepherd-has-title",t[6]),ge(e,"shepherd-element",!0)},m(d,p){dt(d,e,p),a&&a.m(e,null),pe(e,n),jt(o,e,null),t[13](e),s=!0,l||(c=fn(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=$r(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),o.$set(m),pr(e,h=xl(f,[(!s||p&20&&r!==(r=G(d[4].options.text)?null:d[2]))&&{"aria-describedby":r},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),ge(e,"shepherd-has-cancel-icon",d[5]),ge(e,"shepherd-has-title",d[6]),ge(e,"shepherd-element",!0)},i(d){s||(M(o.$$.fragment,d),s=!0)},o(d){Y(o.$$.fragment,d),s=!1},d(d){d&&ct(e),a&&a.d(),Bt(o),t[13](null),l=!1,c()}}}const Yl=9,Kl=27,zl=37,Jl=39;function Cr(t){return t.split(" ").filter(e=>!!e.length)}function Xl(t,e,n){let{classPrefix:o,element:r,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>r;ml(()=>{n(1,h={[`data-${o}shepherd-step-id`]:f.id}),n(9,l=r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),Xn(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(Be(g)){const O=Cr(g);O.length&&r.classList.remove(...O)}}function x(g){if(Be(g)){const O=Cr(g);O.length&&r.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case Yl:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case Kl:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case zl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case Jl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){be[g?"unshift":"push"](()=>{r=g,n(0,r)})}return t.$$set=g=>{"classPrefix"in g&&n(11,o=g.classPrefix),"element"in g&&n(0,r=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[r,h,i,c,f,d,p,S,s,l,a,o,y,b]}class Gl extends Tt{constructor(e){super(),Ot(this,e,Xl,ql,St,{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 to extends Mn{constructor(e,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=e,this.classPrefix=this.tour.options?zo(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,jn(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){rl(this),je(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=bs(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Mt(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new Gl({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();Mt(this.options.scrollToHandler)?this.options.scrollToHandler(n):Zi(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e.classes?e.classes:"",r=n&&n.classes?n.classes:"",i=[...o.split(" "),...r.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=Dn({},n||{}),this.options=Object.assign({arrow:!0},n,e,ol(n,e));const{when:o}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Xo()}`,o&&Object.keys(o).forEach(r=>{this.on(r,o[r],this)})}_setupElements(){G(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&ps(this),nl(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.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(),o=this.target||document.body;o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function Zl(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&je(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function Ql({width:t,height:e,x:n=0,y:o=0,r=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof r=="number"?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${o}a${l},${l},0,0,0-${l},${l}V${e+o-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${o+c}a${c},${c},0,0,0-${c}-${c}Z`}function tc(t){let e,n,o,r,i;return{c(){e=dr("svg"),n=dr("path"),D(n,"d",t[2]),D(e,"class",o=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){dt(s,e,l),pe(e,n),t[11](e),r||(i=fn(e,"touchmove",t[3]),r=!0)},p(s,[l]){l&4&&D(n,"d",s[2]),l&2&&o!==(o=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&D(e,"class",o)},i:it,o:it,d(s){s&&ct(e),t[11](null),r=!1,i()}}}function Rr(t){if(!t)return null;const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return n!=="hidden"&&n!=="visible"&&t.scrollHeight>=t.clientHeight?t:Rr(t.parentElement)}function ec(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var o;const s=(o=n)==null?void 0:o.frameElement;if(s){var r,i;const l=s.getBoundingClientRect();e.top+=l.top+((r=l.scrollTop)!=null?r:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function nc(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,r=n.bottom||o+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;o=Math.max(o,l),r=Math.min(r,c)}const i=Math.max(r-o,0);return{y:o,height:i}}function oc(t,e,n){let{element:o,openingProperties:r}=e,i=!1,s,l;a();const c=()=>o;function a(){n(4,r={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,P=0,V,I){if(I){const{y:B,height:N}=nc(I,V),{x:U,width:A,left:$}=I.getBoundingClientRect();n(4,r={width:A+b*2,height:N+b*2,x:(U||$)+O-b,y:B+P-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:P=0,modalOverlayOpeningYOffset:V=0}=b.options,I=ec(b.target),B=Rr(b.target),N=()=>{s=void 0,h(g,O,P+I.left,V+I.top,B,b.target),s=requestAnimationFrame(N)};N(),_()}function S(b){be[b?"unshift":"push"](()=>{o=b,n(0,o)})}return t.$$set=b=>{"element"in b&&n(0,o=b.element),"openingProperties"in b&&n(4,r=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=Ql(r))},[o,i,l,y,r,c,a,f,h,d,p,S]}class rc extends Tt{constructor(e){super(),Ot(this,e,oc,tc,St,{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 ic extends Mn{constructor(){super(),this.activeTour=void 0,jn(this)}}class sc extends Mn{constructor(e={}){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,jn(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=zo(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(r=>{(i=>{this.on(i,s=>{s=s||{},s.tour=this,Qt.trigger(i,s)})})(r)}),this._setTourID(e.id),this}addStep(e,n){let o=e;return o instanceof to?o.tour=this:o=new to(this,o),G(n)?this.steps.push(o):this.steps.splice(n,0,o),o}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Mt(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return Qt.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((o,r)=>{if(o.id===e)return o.isOpen()&&o.hide(),o.destroy(),this.steps.splice(r,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const o=Be(e)?this.getById(e):this.steps[e];o&&(this._updateStateBeforeShow(),Mt(o.options.showOn)&&!o.options.showOn()?this._skipStep(o,n):(this.trigger("show",{step:o,previous:this.currentStep}),this.currentStep=o,o.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(o=>o.destroy()),Zl(this),this.trigger(e,{index:n}),Qt.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const o=document.querySelector(".shepherd-modal-overlay-container");o&&(o.remove(),this.modal=null)}je(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Qt.activeTour=this}setupModal(){this.modal=new rc({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const o=this.steps.indexOf(e);if(o===this.steps.length-1)this.complete();else{const r=n?o+1:o-1;this.show(r,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",o=e||Xo();this.id=`${n}--${o}`}}const Qt=new ic,Ir=typeof window>"u";Qt.Step=Ir?gs:to,Qt.Tour=Ir?ms:sc;var lc=Object.defineProperty,Ar=t=>{throw TypeError(t)},cc=(t,e,n)=>e in t?lc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,we=(t,e,n)=>cc(t,typeof e!="symbol"?e+"":e,n),Pr=(t,e,n)=>e.has(t)||Ar("Cannot "+n),$t=(t,e,n)=>(Pr(t,e,"read from private field"),n?n.call(t):e.get(t)),hn=(t,e,n)=>e.has(t)?Ar("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),pn=(t,e,n,o)=>(Pr(t,e,"write to private field"),e.set(t,n),n);/*! shepherd.js 13.0.0 */function ac(t){return t instanceof Element}function qe(t){return t instanceof HTMLElement}function Wt(t){return typeof t=="function"}function Ye(t){return typeof t=="string"}function Z(t){return t===void 0}class eo{on(e,n,o,r=!1){var i;return Z(this.bindings)&&(this.bindings={}),Z(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:o,once:r}),this}once(e,n,o){return this.on(e,n,o,!0)}off(e,n){if(Z(this.bindings)||Z(this.bindings[e]))return this;if(Z(n))delete this.bindings[e];else{var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{if(r.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!Z(this.bindings)&&this.bindings[e]){var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{const{ctx:s,handler:l,once:c}=r,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function tt(){return tt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},tt.apply(null,arguments)}function kr(t,e){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;n[o]=t[o]}return n}const Nt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Nt.defaultMerge;function uc(t,e){return e}function Mr(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:hc(t)?1:t instanceof Set?3:t instanceof Map?4:5}function fc(t){const e=new Set;for(const n of t)for(const o of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(o);return e}function dc(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function Lr(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const Dr=new Set(["[object Object]","[object Module]"]);function hc(t){if(!Dr.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!Dr.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function pc(t,e,n){const o={};for(const r of fc(t)){const i=[];for(const c of t)dc(c,r)&&i.push(c[r]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:r,parents:t}),l=jr(i,e,s);l!==Nt.skip&&(r==="__proto__"?Object.defineProperty(o,r,{value:l,configurable:!0,enumerable:!0,writable:!0}):o[r]=l)}return o}function gc(t){return t.flat()}function mc(t){return new Set(Lr(t))}function bc(t){return new Map(Lr(t))}function Fr(t){return t.at(-1)}var no=Object.freeze({__proto__:null,mergeArrays:gc,mergeMaps:bc,mergeOthers:Fr,mergeRecords:pc,mergeSets:mc});function oo(...t){return yc({})(...t)}function yc(t,e){const n=vc(t,o);function o(...r){return jr(r,n,e)}return o}function vc(t,e){var n,o;return{defaultMergeFunctions:no,mergeFunctions:tt({},no,Object.fromEntries(Object.entries(t).filter(([r,i])=>Object.hasOwn(no,r)).map(([r,i])=>i===!1?[r,Fr]:[r,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:uc,deepmerge:e,useImplicitDefaultMerging:(o=t.enableImplicitDefaultMerging)!=null?o:!1,actions:Nt}}function jr(t,e,n){if(t.length===0)return;if(t.length===1)return ro(t,e,n);const o=Mr(t[0]);if(o!==0&&o!==5){for(let r=1;r<t.length;r++)if(Mr(t[r])!==o)return ro(t,e,n)}switch(o){case 1:return wc(t,e,n);case 2:return xc(t,e,n);case 3:return _c(t,e,n);case 4:return Ec(t,e,n);default:return ro(t,e,n)}}function wc(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);return o===Nt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):o}function xc(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);return o===Nt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):o}function _c(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);return o===Nt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):o}function Ec(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);return o===Nt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):o}function ro(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return o===Nt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):o}function io(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],r=t[o];o!=="constructor"&&typeof r=="function"&&(t[o]=r.bind(t))}return t}function Sc(t,e){return n=>{if(t.isOpen()){const o=t.el&&n.currentTarget===t.el;(!Z(e)&&n.currentTarget.matches(e)||o)&&t.tour.next()}}}function Oc(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const o=Sc(t,n);let r=null;if(!Z(n)&&(r=document.querySelector(n),!r))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);r?(r.addEventListener(e,o),t.on("destroy",()=>r.removeEventListener(e,o))):(document.body.addEventListener(e,o,!0),t.on("destroy",()=>document.body.removeEventListener(e,o,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class Tc{constructor(e){}}class $c{constructor(e,n){}}function Br(t){return!Ye(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function Cc(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(Wt(n.element)&&(n.element=n.element.call(t)),Ye(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Wr(t){return t==null?!0:!t.element||!t.on}function Nr(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const xe=Math.min,te=Math.max,gn=Math.round,mn=Math.floor,Ht=t=>({x:t,y:t}),Rc={left:"right",right:"left",bottom:"top",top:"bottom"},Ic={start:"end",end:"start"};function so(t,e,n){return te(t,xe(e,n))}function _e(t,e){return typeof t=="function"?t(e):t}function ee(t){return t.split("-")[0]}function bn(t){return t.split("-")[1]}function lo(t){return t==="x"?"y":"x"}function co(t){return t==="y"?"height":"width"}function yn(t){return["top","bottom"].includes(ee(t))?"y":"x"}function ao(t){return lo(yn(t))}function Ac(t,e,n){n===void 0&&(n=!1);const o=bn(t),r=ao(t),i=co(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=vn(s)),[s,vn(s)]}function Pc(t){const e=vn(t);return[uo(t),e,uo(e)]}function uo(t){return t.replace(/start|end/g,e=>Ic[e])}function kc(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function Mc(t,e,n,o){const r=bn(t);let i=kc(ee(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(uo)))),i}function vn(t){return t.replace(/left|right|bottom|top/g,e=>Rc[e])}function Lc(t){return tt({top:0,right:0,bottom:0,left:0},t)}function Hr(t){return typeof t!="number"?Lc(t):{top:t,right:t,bottom:t,left:t}}function wn(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}const Dc=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Fc=["mainAxis","crossAxis","limiter"];function Vr(t,e,n){let{reference:o,floating:r}=t;const i=yn(e),s=ao(e),l=co(s),c=ee(e),a=i==="y",f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-r.width,y:h};break;default:p={x:o.x,y:o.y}}switch(bn(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const jc=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Vr(a,o,c),d=o,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=tt({},p,{[_]:tt({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):g.rects),{x:f,y:h}=Vr(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:p}};async function Ur(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=_e(e,t),m=Hr(p),y=l[d?h==="floating"?"reference":"floating":h],_=wn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),w=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},b=wn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:c}):w);return{top:(_.top-b.top+m.top)/S.y,bottom:(b.bottom-_.bottom+m.bottom)/S.y,left:(_.left-b.left+m.left)/S.x,right:(b.right-_.right+m.right)/S.x}}const Bc=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=_e(t,e)||{};if(a==null)return{};const h=Hr(f),d={x:n,y:o},p=ao(r),m=co(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=O?O[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=l.floating[S]||i.floating[m]);const V=b/2-g/2,I=P/2-y[m]/2-1,B=xe(h[w],I),N=xe(h[x],I),U=B,A=P-y[m]-N,$=P/2-y[m]/2+V,q=so(U,$,A),H=!c.arrow&&bn(r)!=null&&$!==q&&i.reference[m]/2-($<U?B:N)-y[m]/2<0,W=H?$<U?$-U:$-A:0;return{[p]:d[p]+W,data:tt({[p]:q,centerOffset:$-q-W},H&&{alignmentOffset:W}),reset:H}}}),Wc=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:a}=e,f=_e(t,e),{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:_=!0}=f,w=kr(f,Dc);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=ee(r),S=ee(l)===l,b=await(c.isRTL==null?void 0:c.isRTL(a.floating)),g=p||(S||!_?[vn(l)]:Pc(l));!p&&y!=="none"&&g.push(...Mc(l,_,y,b));const O=[l,...g],P=await Ur(e,w),V=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&V.push(P[x]),d){const A=Ac(r,s,b);V.push(P[A[0]],P[A[1]])}if(I=[...I,{placement:r,overflows:V}],!V.every(A=>A<=0)){var B,N;const A=(((B=i.flip)==null?void 0:B.index)||0)+1,$=O[A];if($)return{data:{index:A,overflows:I},reset:{placement:$}};let q=(N=I.filter(H=>H.overflows[0]<=0).sort((H,W)=>H.overflows[1]-W.overflows[1])[0])==null?void 0:N.placement;if(!q)switch(m){case"bestFit":{var U;const H=(U=I.map(W=>[W.placement,W.overflows.filter(et=>et>0).reduce((et,_t)=>et+_t,0)]).sort((W,et)=>W[1]-et[1])[0])==null?void 0:U[0];H&&(q=H);break}case"initialPlacement":q=l;break}if(r!==q)return{reset:{placement:q}}}return{}}}},Nc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,i=_e(t,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x,y:S}=w;return{x,y:S}}}}=i,a=kr(i,Fc),f={x:n,y:o},h=await Ur(e,a),d=yn(ee(r)),p=lo(d);let m=f[p],y=f[d];if(s){const w=p==="y"?"top":"left",x=p==="y"?"bottom":"right",S=m+h[w],b=m-h[x];m=so(S,m,b)}if(l){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",S=y+h[w],b=y-h[x];y=so(S,y,b)}const _=c.fn(tt({},e,{[p]:m,[d]:y}));return tt({},_,{data:{x:_.x-n,y:_.y-o}})}}},Hc=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:l=0,mainAxis:c=!0,crossAxis:a=!0}=_e(t,e),f={x:n,y:o},h=yn(r),d=lo(h);let p=f[d],m=f[h];const y=_e(l,e),_=typeof y=="number"?{mainAxis:y,crossAxis:0}:tt({mainAxis:0,crossAxis:0},y);if(c){const S=d==="y"?"height":"width",b=i.reference[d]-i.floating[S]+_.mainAxis,g=i.reference[d]+i.reference[S]-_.mainAxis;p<b?p=b:p>g&&(p=g)}if(a){var w,x;const S=d==="y"?"width":"height",b=["top","left"].includes(ee(r)),g=i.reference[h]-i.floating[S]+(b&&((w=s.offset)==null?void 0:w[h])||0)+(b?0:_.crossAxis),O=i.reference[h]+i.reference[S]+(b?0:((x=s.offset)==null?void 0:x[h])||0)-(b?_.crossAxis:0);m<g?m=g:m>O&&(m=O)}return{[d]:p,[h]:m}}}};function Ee(t){return qr(t)?(t.nodeName||"").toLowerCase():"#document"}function st(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ct(t){var e;return(e=(qr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qr(t){return t instanceof Node||t instanceof st(t).Node}function vt(t){return t instanceof Element||t instanceof st(t).Element}function wt(t){return t instanceof HTMLElement||t instanceof st(t).HTMLElement}function Yr(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof st(t).ShadowRoot}function Ke(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function Vc(t){return["table","td","th"].includes(Ee(t))}function fo(t){const e=ho(),n=ht(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Uc(t){let e=Vt(t);for(;wt(e)&&!Se(e);){if(fo(e))return e;e=Vt(e)}return null}function ho(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Se(t){return["html","body","#document"].includes(Ee(t))}function ht(t){return st(t).getComputedStyle(t)}function xn(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vt(t){if(Ee(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Yr(t)&&t.host||Ct(t);return Yr(e)?e.host:e}function Kr(t){const e=Vt(t);return Se(e)?t.ownerDocument?t.ownerDocument.body:t.body:wt(e)&&Ke(e)?e:Kr(e)}function ze(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Kr(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=st(r);return i?e.concat(s,s.visualViewport||[],Ke(r)?r:[],s.frameElement&&n?ze(s.frameElement):[]):e.concat(r,ze(r,[],n))}function zr(t){const e=ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=wt(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=gn(n)!==i||gn(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function po(t){return vt(t)?t:t.contextElement}function Oe(t){const e=po(t);if(!wt(e))return Ht(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=zr(e);let s=(i?gn(n.width):n.width)/o,l=(i?gn(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const qc=Ht(0);function Jr(t){const e=st(t);return!ho()||!e.visualViewport?qc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Yc(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==st(t)?!1:e}function ne(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=po(t);let s=Ht(1);e&&(o?vt(o)&&(s=Oe(o)):s=Oe(t));const l=Yc(i,n,o)?Jr(i):Ht(0);let c=(r.left+l.x)/s.x,a=(r.top+l.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(i){const d=st(i),p=o&&vt(o)?st(o):o;let m=d,y=m.frameElement;for(;y&&o&&p!==m;){const _=Oe(y),w=y.getBoundingClientRect(),x=ht(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=st(y),y=m.frameElement}}return wn({width:f,height:h,x:c,y:a})}const Kc=[":popover-open",":modal"];function go(t){return Kc.some(e=>{try{return t.matches(e)}catch{return!1}})}function zc(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=Ct(o),l=e?go(e.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=Ht(1);const f=Ht(0),h=wt(o);if((h||!h&&!i)&&((Ee(o)!=="body"||Ke(s))&&(c=xn(o)),wt(o))){const d=ne(o);a=Oe(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Jc(t){return Array.from(t.getClientRects())}function Xr(t){return ne(Ct(t)).left+xn(t).scrollLeft}function Xc(t){const e=Ct(t),n=xn(t),o=t.ownerDocument.body,r=te(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=te(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Xr(t);const l=-n.scrollTop;return ht(o).direction==="rtl"&&(s+=te(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function Gc(t,e){const n=st(t),o=Ct(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const a=ho();(!a||a&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function Zc(t,e){const n=ne(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=wt(t)?Oe(t):Ht(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,a=o*i.y;return{width:s,height:l,x:c,y:a}}function Gr(t,e,n){let o;if(e==="viewport")o=Gc(t,n);else if(e==="document")o=Xc(Ct(t));else if(vt(e))o=Zc(e,n);else{const r=Jr(t);o=tt({},e,{x:e.x-r.x,y:e.y-r.y})}return wn(o)}function Zr(t,e){const n=Vt(t);return n===e||!vt(n)||Se(n)?!1:ht(n).position==="fixed"||Zr(n,e)}function Qc(t,e){const n=e.get(t);if(n)return n;let o=ze(t,[],!1).filter(l=>vt(l)&&Ee(l)!=="body"),r=null;const i=ht(t).position==="fixed";let s=i?Vt(t):t;for(;vt(s)&&!Se(s);){const l=ht(s),c=fo(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&r&&["absolute","fixed"].includes(r.position)||Ke(s)&&!c&&Zr(t,s))?o=o.filter(a=>a!==s):r=l,s=Vt(s)}return e.set(t,o),o}function ta(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[...n==="clippingAncestors"?go(e)?[]:Qc(e,this._c):[].concat(n),o],s=i[0],l=i.reduce((c,a)=>{const f=Gr(e,a,r);return c.top=te(f.top,c.top),c.right=xe(f.right,c.right),c.bottom=xe(f.bottom,c.bottom),c.left=te(f.left,c.left),c},Gr(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ea(t){const{width:e,height:n}=zr(t);return{width:e,height:n}}function na(t,e,n){const o=wt(e),r=Ct(e),i=n==="fixed",s=ne(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Ht(0);if(o||!o&&!i)if((Ee(e)!=="body"||Ke(r))&&(l=xn(e)),o){const h=ne(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else r&&(c.x=Xr(r));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function mo(t){return ht(t).position==="static"}function Qr(t,e){return!wt(t)||ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function ti(t,e){const n=st(t);if(go(t))return n;if(!wt(t)){let r=Vt(t);for(;r&&!Se(r);){if(vt(r)&&!mo(r))return r;r=Vt(r)}return n}let o=Qr(t,e);for(;o&&Vc(o)&&mo(o);)o=Qr(o,e);return o&&Se(o)&&mo(o)&&!fo(o)?n:o||Uc(t)||n}const oa=async function(t){const e=this.getOffsetParent||ti,n=this.getDimensions,o=await n(t.floating);return{reference:na(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ra(t){return ht(t).direction==="rtl"}const ia={convertOffsetParentRelativeRectToViewportRelativeRect:zc,getDocumentElement:Ct,getClippingRect:ta,getOffsetParent:ti,getElementRects:oa,getClientRects:Jc,getDimensions:ea,getScale:Oe,isElement:vt,isRTL:ra};function sa(t,e){let n=null,o;const r=Ct(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=mn(f),m=mn(r.clientWidth-(a+h)),y=mn(r.clientHeight-(f+d)),_=mn(a),w={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:te(0,xe(1,c))||1};let x=!0;function S(b){const g=b[0].intersectionRatio;if(g!==c){if(!x)return s();g?s(!1,g):o=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,tt({},w,{root:r.ownerDocument}))}catch{n=new IntersectionObserver(S,w)}n.observe(t)}return s(!0),i}function la(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=po(t),f=r||i?[...a?ze(a):[],...ze(e)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?sa(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?ne(t):null;c&&_();function _(){const w=ne(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const ca=Nc,aa=Wc,ua=Bc,fa=Hc,da=(t,e,n)=>{const o=new Map,r=tt({platform:ia},n),i=tt({},r.platform,{_c:o});return jc(t,e,tt({},r,{platform:i}))};function ha(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const o=va(e,t),r=Wr(e);return r&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=la(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}ma(n,t,o,r)}),t.target=e.element,o}function pa(t,e){return{floatingUIOptions:oo(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function ga(t){t.cleanup&&t.cleanup(),t.cleanup=null}function ma(t,e,n,o){return da(t,e.el,n).then(ba(e,o)).then(r=>new Promise(i=>{setTimeout(()=>i(r),300)})).then(r=>{r!=null&&r.el&&r.el.focus({preventScroll:!0})})}function ba(t,e){return({x:n,y:o,placement:r,middlewareData:i})=>(t.el&&(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:`${n}px`,top:`${o}px`}),t.el.dataset.popperPlacement=r,ya(t.el,i)),t)}function ya(t,e){const n=t.querySelector(".shepherd-arrow");if(qe(n)&&e.arrow){const{x:o,y:r}=e.arrow;Object.assign(n.style,{left:o!=null?`${o}px`:"",top:r!=null?`${r}px`:""})}}function va(t,e){const n={strategy:"absolute"};n.middleware=[];const o=wa(e);return Wr(t)||(n.middleware.push(aa(),ca({limiter:fa(),crossAxis:!0})),o&&n.middleware.push(ua({element:o})),n.placement=t.on),oo(e.options.floatingUIOptions||{},n)}function wa(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function lt(){}function xa(t,e){for(const n in e)t[n]=e[n];return t}function ei(t){return t()}function ni(){return Object.create(null)}function Je(t){t.forEach(ei)}function bo(t){return typeof t=="function"}function Rt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function _a(t){return Object.keys(t).length===0}function Te(t,e){t.appendChild(e)}function pt(t,e,n){t.insertBefore(e,n||null)}function at(t){t.parentNode&&t.parentNode.removeChild(t)}function Ea(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function xt(t){return document.createElement(t)}function oi(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ri(t){return document.createTextNode(t)}function _n(){return ri(" ")}function Sa(){return ri("")}function En(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function F(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Oa=["width","height"];function ii(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)e[o]==null?t.removeAttribute(o):o==="style"?t.style.cssText=e[o]:o==="__value"?t.value=t[o]=e[o]:n[o]&&n[o].set&&Oa.indexOf(o)===-1?t[o]=e[o]:F(t,o,e[o])}function Ta(t){return Array.from(t.childNodes)}function $e(t,e,n){t.classList.toggle(e,!!n)}let Xe;function Ge(t){Xe=t}function si(){if(!Xe)throw new Error("Function called outside component initialization");return Xe}function $a(t){si().$$.on_mount.push(t)}function yo(t){si().$$.after_update.push(t)}const Ce=[],Re=[];let Ie=[];const li=[],Ca=Promise.resolve();let vo=!1;function Ra(){vo||(vo=!0,Ca.then(ci))}function wo(t){Ie.push(t)}const xo=new Set;let Ae=0;function ci(){if(Ae!==0)return;const t=Xe;do{try{for(;Ae<Ce.length;){const e=Ce[Ae];Ae++,Ge(e),Ia(e.$$)}}catch(e){throw Ce.length=0,Ae=0,e}for(Ge(null),Ce.length=0,Ae=0;Re.length;)Re.pop()();for(let e=0;e<Ie.length;e+=1){const n=Ie[e];xo.has(n)||(xo.add(n),n())}Ie.length=0}while(Ce.length);for(;li.length;)li.pop()();vo=!1,xo.clear(),Ge(t)}function Ia(t){if(t.fragment!==null){t.update(),Je(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(wo)}}function Aa(t){const e=[],n=[];Ie.forEach(o=>t.indexOf(o)===-1?e.push(o):n.push(o)),n.forEach(o=>o()),Ie=e}const Sn=new Set;let oe;function re(){oe={r:0,c:[],p:oe}}function ie(){oe.r||Je(oe.c),oe=oe.p}function L(t,e){t&&t.i&&(Sn.delete(t),t.i(e))}function K(t,e,n,o){if(t&&t.o){if(Sn.has(t))return;Sn.add(t),oe.c.push(()=>{Sn.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}else o&&o()}function ai(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Pa(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(o[c]=1);for(const c in l)r[c]||(n[c]=l[c],r[c]=1);t[i]=l}else for(const c in s)r[c]=1}for(const s in o)s in n||(n[s]=void 0);return n}function se(t){t&&t.c()}function Ut(t,e,n){const{fragment:o,after_update:r}=t.$$;o&&o.m(e,n),wo(()=>{const i=t.$$.on_mount.map(ei).filter(bo);t.$$.on_destroy?t.$$.on_destroy.push(...i):Je(i),t.$$.on_mount=[]}),r.forEach(wo)}function qt(t,e){const n=t.$$;n.fragment!==null&&(Aa(n.after_update),Je(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ka(t,e){t.$$.dirty[0]===-1&&(Ce.push(t),Ra(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function It(t,e,n,o,r,i,s=null,l=[-1]){const c=Xe;Ge(t);const a=t.$$={fragment:null,ctx:[],props:i,update:lt,not_equal:r,bound:ni(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:ni(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&r(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&ka(t,h)),d}):[],a.update(),f=!0,Je(a.before_update),a.fragment=o?o(a.ctx):!1,e.target){if(e.hydrate){const h=Ta(e.target);a.fragment&&a.fragment.l(h),h.forEach(at)}else a.fragment&&a.fragment.c();e.intro&&L(t.$$.fragment),Ut(t,e.target,e.anchor),ci()}Ge(c)}class At{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){qt(this,1),this.$destroy=lt}$on(e,n){if(!bo(n))return lt;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(e){this.$$set&&!_a(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ma="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ma);function La(t){let e,n,o,r,i;return{c(){e=xt("button"),F(e,"aria-label",n=t[3]?t[3]:null),F(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],F(e,"tabindex","0"),F(e,"type","button")},m(s,l){pt(s,e,l),e.innerHTML=t[5],r||(i=En(e,"click",function(){bo(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&F(e,"aria-label",n),l&18&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&F(e,"class",o),l&4&&(e.disabled=t[2])},i:lt,o:lt,d(s){s&&at(e),r=!1,i()}}}function Da(t,e,n){let{config:o,step:r}=e,i,s,l,c,a,f;function h(d){return Wt(d)?d=d.call(r):d}return t.$$set=d=>{"config"in d&&n(6,o=d.config),"step"in d&&n(7,r=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=o.action?o.action.bind(r.tour):null),n(1,s=o.classes),n(2,l=o.disabled?h(o.disabled):!1),n(3,c=o.label?h(o.label):null),n(4,a=o.secondary),n(5,f=o.text?h(o.text):null))},[i,s,l,c,a,f,o,r]}class Fa extends At{constructor(e){super(),It(this,e,Da,La,Rt,{config:6,step:7})}}function ui(t,e,n){const o=t.slice();return o[2]=e[n],o}function fi(t){let e,n,o=ai(t[1]),r=[];for(let s=0;s<o.length;s+=1)r[s]=di(ui(t,o,s));const i=s=>K(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=Sa()},m(s,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(s,l);pt(s,e,l),n=!0},p(s,l){if(l&3){o=ai(s[1]);let c;for(c=0;c<o.length;c+=1){const a=ui(s,o,c);r[c]?(r[c].p(a,l),L(r[c],1)):(r[c]=di(a),r[c].c(),L(r[c],1),r[c].m(e.parentNode,e))}for(re(),c=o.length;c<r.length;c+=1)i(c);ie()}},i(s){if(!n){for(let l=0;l<o.length;l+=1)L(r[l]);n=!0}},o(s){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)K(r[l]);n=!1},d(s){s&&at(e),Ea(r,s)}}}function di(t){let e,n;return e=new Fa({props:{config:t[2],step:t[0]}}),{c(){se(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.config=o[2]),r&1&&(i.step=o[0]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function ja(t){let e,n,o=t[1]&&fi(t);return{c(){e=xt("footer"),o&&o.c(),F(e,"class","shepherd-footer")},m(r,i){pt(r,e,i),o&&o.m(e,null),n=!0},p(r,[i]){r[1]?o?(o.p(r,i),i&2&&L(o,1)):(o=fi(r),o.c(),L(o,1),o.m(e,null)):o&&(re(),K(o,1,1,()=>{o=null}),ie())},i(r){n||(L(o),n=!0)},o(r){K(o),n=!1},d(r){r&&at(e),o&&o.d()}}}function Ba(t,e,n){let o,{step:r}=e;return t.$$set=i=>{"step"in i&&n(0,r=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,o=r.options.buttons)},[r,o]}class Wa extends At{constructor(e){super(),It(this,e,Ba,ja,Rt,{step:0})}}function Na(t){let e,n,o,r,i;return{c(){e=xt("button"),n=xt("span"),n.textContent="×",F(n,"aria-hidden","true"),F(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),F(e,"class","shepherd-cancel-icon"),F(e,"type","button")},m(s,l){pt(s,e,l),Te(e,n),r||(i=En(e,"click",t[1]),r=!0)},p(s,[l]){l&1&&o!==(o=s[0].label?s[0].label:"Close Tour")&&F(e,"aria-label",o)},i:lt,o:lt,d(s){s&&at(e),r=!1,i()}}}function Ha(t,e,n){let{cancelIcon:o,step:r}=e;const i=s=>{s.preventDefault(),r.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,o=s.cancelIcon),"step"in s&&n(2,r=s.step)},[o,i,r]}class Va extends At{constructor(e){super(),It(this,e,Ha,Na,Rt,{cancelIcon:0,step:2})}}function Ua(t){let e;return{c(){e=xt("h3"),F(e,"id",t[1]),F(e,"class","shepherd-title")},m(n,o){pt(n,e,o),t[3](e)},p(n,[o]){o&2&&F(e,"id",n[1])},i:lt,o:lt,d(n){n&&at(e),t[3](null)}}}function qa(t,e,n){let{labelId:o,element:r,title:i}=e;yo(()=>{Wt(i)&&n(2,i=i()),n(0,r.innerHTML=i,r)});function s(l){Re[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"labelId"in l&&n(1,o=l.labelId),"element"in l&&n(0,r=l.element),"title"in l&&n(2,i=l.title)},[r,o,i,s]}class Ya extends At{constructor(e){super(),It(this,e,qa,Ua,Rt,{labelId:1,element:0,title:2})}}function hi(t){let e,n;return e=new Ya({props:{labelId:t[0],title:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.labelId=o[0]),r&4&&(i.title=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function pi(t){let e,n;return e=new Va({props:{cancelIcon:t[3],step:t[1]}}),{c(){se(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&8&&(i.cancelIcon=o[3]),r&2&&(i.step=o[1]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function Ka(t){let e,n,o,r=t[2]&&hi(t),i=t[3]&&t[3].enabled&&pi(t);return{c(){e=xt("header"),r&&r.c(),n=_n(),i&&i.c(),F(e,"class","shepherd-header")},m(s,l){pt(s,e,l),r&&r.m(e,null),Te(e,n),i&&i.m(e,null),o=!0},p(s,[l]){s[2]?r?(r.p(s,l),l&4&&L(r,1)):(r=hi(s),r.c(),L(r,1),r.m(e,n)):r&&(re(),K(r,1,1,()=>{r=null}),ie()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&L(i,1)):(i=pi(s),i.c(),L(i,1),i.m(e,null)):i&&(re(),K(i,1,1,()=>{i=null}),ie())},i(s){o||(L(r),L(i),o=!0)},o(s){K(r),K(i),o=!1},d(s){s&&at(e),r&&r.d(),i&&i.d()}}}function za(t,e,n){let{labelId:o,step:r}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,o=l.labelId),"step"in l&&n(1,r=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=r.options.title),n(3,s=r.options.cancelIcon))},[o,r,i,s]}class Ja extends At{constructor(e){super(),It(this,e,za,Ka,Rt,{labelId:0,step:1})}}function Xa(t){let e;return{c(){e=xt("div"),F(e,"class","shepherd-text"),F(e,"id",t[1])},m(n,o){pt(n,e,o),t[3](e)},p(n,[o]){o&2&&F(e,"id",n[1])},i:lt,o:lt,d(n){n&&at(e),t[3](null)}}}function Ga(t,e,n){let{descriptionId:o,element:r,step:i}=e;yo(()=>{let{text:l}=i.options;Wt(l)&&(l=l.call(i)),qe(l)?r.appendChild(l):n(0,r.innerHTML=l,r)});function s(l){Re[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"descriptionId"in l&&n(1,o=l.descriptionId),"element"in l&&n(0,r=l.element),"step"in l&&n(2,i=l.step)},[r,o,i,s]}class Za extends At{constructor(e){super(),It(this,e,Ga,Xa,Rt,{descriptionId:1,element:0,step:2})}}function gi(t){let e,n;return e=new Ja({props:{labelId:t[1],step:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.labelId=o[1]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function mi(t){let e,n;return e=new Za({props:{descriptionId:t[0],step:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.descriptionId=o[0]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function bi(t){let e,n;return e=new Wa({props:{step:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function Qa(t){let e,n=!Z(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o,r=!Z(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&gi(t),a=r&&mi(t),f=s&&bi(t);return{c(){e=xt("div"),c&&c.c(),o=_n(),a&&a.c(),i=_n(),f&&f.c(),F(e,"class","shepherd-content")},m(h,d){pt(h,e,d),c&&c.m(e,null),Te(e,o),a&&a.m(e,null),Te(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!Z(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&L(c,1)):(c=gi(h),c.c(),L(c,1),c.m(e,o)):c&&(re(),K(c,1,1,()=>{c=null}),ie()),d&4&&(r=!Z(h[2].options.text)),r?a?(a.p(h,d),d&4&&L(a,1)):(a=mi(h),a.c(),L(a,1),a.m(e,i)):a&&(re(),K(a,1,1,()=>{a=null}),ie()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&L(f,1)):(f=bi(h),f.c(),L(f,1),f.m(e,null)):f&&(re(),K(f,1,1,()=>{f=null}),ie())},i(h){l||(L(c),L(a),L(f),l=!0)},o(h){K(c),K(a),K(f),l=!1},d(h){h&&at(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function tu(t,e,n){let{descriptionId:o,labelId:r,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,o=s.descriptionId),"labelId"in s&&n(1,r=s.labelId),"step"in s&&n(2,i=s.step)},[o,r,i]}class eu extends At{constructor(e){super(),It(this,e,tu,Qa,Rt,{descriptionId:0,labelId:1,step:2})}}function yi(t){let e;return{c(){e=xt("div"),F(e,"class","shepherd-arrow"),F(e,"data-popper-arrow","")},m(n,o){pt(n,e,o)},d(n){n&&at(e)}}}function nu(t){let e,n,o,r,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&yi();o=new eu({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":r=Z(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=xa(h,f[d]);return{c(){e=xt("div"),a&&a.c(),n=_n(),se(o.$$.fragment),ii(e,h),$e(e,"shepherd-has-cancel-icon",t[5]),$e(e,"shepherd-has-title",t[6]),$e(e,"shepherd-element",!0)},m(d,p){pt(d,e,p),a&&a.m(e,null),Te(e,n),Ut(o,e,null),t[13](e),s=!0,l||(c=En(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=yi(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),o.$set(m),ii(e,h=Pa(f,[(!s||p&20&&r!==(r=Z(d[4].options.text)?null:d[2]))&&{"aria-describedby":r},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),$e(e,"shepherd-has-cancel-icon",d[5]),$e(e,"shepherd-has-title",d[6]),$e(e,"shepherd-element",!0)},i(d){s||(L(o.$$.fragment,d),s=!0)},o(d){K(o.$$.fragment,d),s=!1},d(d){d&&at(e),a&&a.d(),qt(o),t[13](null),l=!1,c()}}}const ou=9,ru=27,iu=37,su=39;function vi(t){return t.split(" ").filter(e=>!!e.length)}function lu(t,e,n){let{classPrefix:o,element:r,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>r;$a(()=>{n(1,h={[`data-${o}shepherd-step-id`]:f.id}),n(9,l=r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),yo(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(Ye(g)){const O=vi(g);O.length&&r.classList.remove(...O)}}function x(g){if(Ye(g)){const O=vi(g);O.length&&r.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case ou:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case ru:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case iu:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case su:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){Re[g?"unshift":"push"](()=>{r=g,n(0,r)})}return t.$$set=g=>{"classPrefix"in g&&n(11,o=g.classPrefix),"element"in g&&n(0,r=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[r,h,i,c,f,d,p,S,s,l,a,o,y,b]}class cu extends At{constructor(e){super(),It(this,e,lu,nu,Rt,{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 _o extends eo{constructor(e,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=e,this.classPrefix=this.tour.options?Br(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,io(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ga(this),qe(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=Cc(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Wt(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new cu({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();Wt(this.options.scrollToHandler)?this.options.scrollToHandler(n):ac(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e.classes?e.classes:"",r=n&&n.classes?n.classes:"",i=[...o.split(" "),...r.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=oo({},n||{}),this.options=Object.assign({arrow:!0},n,e,pa(n,e));const{when:o}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Nr()}`,o&&Object.keys(o).forEach(r=>{this.on(r,o[r],this)})}_setupElements(){Z(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Oc(this),ha(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.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(),o=this.target||document.body;o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function au(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&qe(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function uu({width:t,height:e,x:n=0,y:o=0,r=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof r=="number"?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${o}a${l},${l},0,0,0-${l},${l}V${e+o-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${o+c}a${c},${c},0,0,0-${c}-${c}Z`}function fu(t){let e,n,o,r,i;return{c(){e=oi("svg"),n=oi("path"),F(n,"d",t[2]),F(e,"class",o=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){pt(s,e,l),Te(e,n),t[11](e),r||(i=En(e,"touchmove",t[3]),r=!0)},p(s,[l]){l&4&&F(n,"d",s[2]),l&2&&o!==(o=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&F(e,"class",o)},i:lt,o:lt,d(s){s&&at(e),t[11](null),r=!1,i()}}}function wi(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return e!=="hidden"&&e!=="visible"&&t.scrollHeight>=t.clientHeight?t:wi(t.parentElement)}function du(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var o;const s=(o=n)==null?void 0:o.frameElement;if(s){var r,i;const l=s.getBoundingClientRect();e.top+=l.top+((r=l.scrollTop)!=null?r:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function hu(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,r=n.bottom||o+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;o=Math.max(o,l),r=Math.min(r,c)}const i=Math.max(r-o,0);return{y:o,height:i}}function pu(t,e,n){let{element:o,openingProperties:r}=e,i=!1,s,l;a();const c=()=>o;function a(){n(4,r={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,P=0,V,I){if(I){const{y:B,height:N}=hu(I,V),{x:U,width:A,left:$}=I.getBoundingClientRect();n(4,r={width:A+b*2,height:N+b*2,x:(U||$)+O-b,y:B+P-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:P=0,modalOverlayOpeningYOffset:V=0}=b.options,I=du(b.target),B=wi(b.target),N=()=>{s=void 0,h(g,O,P+I.left,V+I.top,B,b.target),s=requestAnimationFrame(N)};N(),_()}function S(b){Re[b?"unshift":"push"](()=>{o=b,n(0,o)})}return t.$$set=b=>{"element"in b&&n(0,o=b.element),"openingProperties"in b&&n(4,r=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=uu(r))},[o,i,l,y,r,c,a,f,h,d,p,S]}class gu extends At{constructor(e){super(),It(this,e,pu,fu,Rt,{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 xi extends eo{constructor(){super(),this.activeTour=void 0,io(this)}}class mu extends eo{constructor(e={}){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,io(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=Br(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,i=>{i=i||{},i.tour=this,Pt.trigger(r,i)})})(o)}),this._setTourID(e.id),this}addStep(e,n){let o=e;return o instanceof _o?o.tour=this:o=new _o(this,o),Z(n)?this.steps.push(o):this.steps.splice(n,0,o),o}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Wt(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return Pt.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((o,r)=>{if(o.id===e)return o.isOpen()&&o.hide(),o.destroy(),this.steps.splice(r,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const o=Ye(e)?this.getById(e):this.steps[e];o&&(this._updateStateBeforeShow(),Wt(o.options.showOn)&&!o.options.showOn()?this._skipStep(o,n):(this.trigger("show",{step:o,previous:this.currentStep}),this.currentStep=o,o.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(o=>o.destroy()),au(this),this.trigger(e,{index:n}),Pt.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const o=document.querySelector(".shepherd-modal-overlay-container");o&&(o.remove(),this.modal=null)}qe(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Pt.activeTour=this}setupModal(){this.modal=new gu({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const o=this.steps.indexOf(e);if(o===this.steps.length-1)this.complete();else{const r=n?o+1:o-1;this.show(r,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",o=e||Nr();this.id=`${n}--${o}`}}const Pt=new xi,_i=typeof window>"u";Pt.Step=_i?Tc:_o,Pt.Tour=_i?$c:mu;const Eo=(t,e)=>e.some(n=>t instanceof n);let Ei,Si;function bu(){return Ei||(Ei=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function yu(){return Si||(Si=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const So=new WeakMap,Oo=new WeakMap,On=new WeakMap;function vu(t){const e=new Promise((n,o)=>{const r=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{n(le(t.result)),r()},s=()=>{o(t.error),r()};t.addEventListener("success",i),t.addEventListener("error",s)});return On.set(e,t),e}function wu(t){if(So.has(t))return;const e=new Promise((n,o)=>{const r=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{n(),r()},s=()=>{o(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});So.set(t,e)}let To={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return So.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return le(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Oi(t){To=t(To)}function xu(t){return yu().includes(t)?function(...e){return t.apply($o(this),e),le(this.request)}:function(...e){return le(t.apply($o(this),e))}}function _u(t){return typeof t=="function"?xu(t):(t instanceof IDBTransaction&&wu(t),Eo(t,bu())?new Proxy(t,To):t)}function le(t){if(t instanceof IDBRequest)return vu(t);if(Oo.has(t))return Oo.get(t);const e=_u(t);return e!==t&&(Oo.set(t,e),On.set(e,t)),e}const $o=t=>On.get(t);function Eu(t,e,{blocked:n,upgrade:o,blocking:r,terminated:i}={}){const s=indexedDB.open(t,e),l=le(s);return o&&s.addEventListener("upgradeneeded",c=>{o(le(s.result),c.oldVersion,c.newVersion,le(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{i&&c.addEventListener("close",()=>i()),r&&c.addEventListener("versionchange",a=>r(a.oldVersion,a.newVersion,a))}).catch(()=>{}),l}const Su=["get","getKey","getAll","getAllKeys","count"],Ou=["put","add","delete","clear"],Co=new Map;function Ti(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Co.get(e))return Co.get(e);const n=e.replace(/FromIndex$/,""),o=e!==n,r=Ou.includes(n);if(!(n in(o?IDBIndex:IDBObjectStore).prototype)||!(r||Su.includes(n)))return;const i=async function(s,...l){const c=this.transaction(s,r?"readwrite":"readonly");let a=c.store;return o&&(a=a.index(l.shift())),(await Promise.all([a[n](...l),r&&c.done]))[0]};return Co.set(e,i),i}Oi(t=>({...t,get:(e,n,o)=>Ti(e,n)||t.get(e,n,o),has:(e,n)=>!!Ti(e,n)||t.has(e,n)}));const Tu=["continue","continuePrimaryKey","advance"],$i={},Ro=new WeakMap,Ci=new WeakMap,$u={get(t,e){if(!Tu.includes(e))return t[e];let n=$i[e];return n||(n=$i[e]=function(...o){Ro.set(this,Ci.get(this)[e](...o))}),n}};async function*Cu(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,$u);for(Ci.set(n,e),On.set(n,$o(e));e;)yield n,e=await(Ro.get(n)||e.continue()),Ro.delete(n)}function Ri(t,e){return e===Symbol.asyncIterator&&Eo(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&Eo(t,[IDBIndex,IDBObjectStore])}Oi(t=>({...t,get(e,n,o){return Ri(e,n)?Cu:t.get(e,n,o)},has(e,n){return Ri(e,n)||t.has(e,n)}}));var Pe,ke,Ze;class Ru{constructor(e,n,o){if(hn(this,Pe),hn(this,ke),hn(this,Ze),we(this,"tourStateDb"),!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(!n)throw new Error("Shepherd Pro: Missing required apiPath option.");pn(this,Pe,e),pn(this,ke,n),pn(this,Ze,o)}getConfig(){return{apiKey:$t(this,Pe),apiPath:$t(this,ke),properties:$t(this,Ze)}}async getTourState(){try{const e=await fetch(`${$t(this,ke)}/api/v1/state`,{headers:{Authorization:`ApiKey ${$t(this,Pe)}`,"Content-Type":"application/json"},method:"GET"});if(!e.ok)throw new Error("Could not fetch state for tours 🐑");const{data:n}=await e.json();if(this.tourStateDb=await Eu("TourState",1,{upgrade(o){o.createObjectStore("tours",{keyPath:"uniqueId"})}}),Array.isArray(n)&&n.length){const o=this.tourStateDb.transaction("tours","readwrite"),r=n.map(i=>o.store.put(i));await Promise.all([...r,o.done])}}catch(e){throw new Error("Error fetching data: "+(e instanceof Error?e.message:"Unknown error"))}}async sendEvents(e){e.data.properties=$t(this,Ze);try{const n=await fetch(`${$t(this,ke)}/api/v1/actor`,{headers:{Authorization:`ApiKey ${$t(this,Pe)}`,"Content-Type":"application/json"},method:"POST",body:JSON.stringify(e)});if(!n.ok)throw new Error("Could not create an event 🐑");const{data:o}=await n.json();return o}catch(n){throw new Error("Error fetching data: "+(n instanceof Error?n.message:"Unknown error"))}}}Pe=new WeakMap,ke=new WeakMap,Ze=new WeakMap;function Iu(t){let e={};if(t.navigator){const n=t.navigator.userAgent;e={...e,$os:Pu(t),$browser:Ii(n,t.navigator.vendor,!!t.opera),$referrer:t.document.referrer,$referring_domain:Mu(t.document.referrer),$device:ku(n),$current_url:t.location.href,$host:t.location.host,$pathname:t.location.pathname,$browser_version:Au(n,t.navigator.vendor,!!t.opera),$screen_height:t.screen.height,$screen_width:t.screen.width,$screen_dpr:t.devicePixelRatio}}return e={...e,$lib:"js",$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:new Date().getTime()/1e3},e}function z(t,e){return t.indexOf(e)>=0}function Ii(t,e,n){return e=e||"",n||z(t," OPR/")?z(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":z(t,"IEMobile")||z(t,"WPDesktop")?"Internet Explorer Mobile":z(t,"SamsungBrowser/")?"Samsung Internet":z(t,"Edge")||z(t,"Edg/")?"Microsoft Edge":z(t,"FBIOS")?"Facebook Mobile":z(t,"Chrome")?"Chrome":z(t,"CriOS")?"Chrome iOS":z(t,"UCWEB")||z(t,"UCBrowser")?"UC Browser":z(t,"FxiOS")?"Firefox iOS":z(e,"Apple")?z(t,"Mobile")?"Mobile Safari":"Safari":z(t,"Android")?"Android Mobile":z(t,"Konqueror")?"Konqueror":z(t,"Firefox")?"Firefox":z(t,"MSIE")||z(t,"Trident/")?"Internet Explorer":z(t,"Gecko")?"Mozilla":""}function Au(t,e,n){const o={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},r=Ii(t,e,n),i=o[r]||void 0;if(i===void 0)return null;const s=t.match(i);return s?parseFloat(s[s.length-2]):null}function Pu(t){const e=t.navigator.userAgent;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""}function ku(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""}function Mu(t){const e=t.split("/");return e.length>=3?e[2]:""}const Lu="https://shepherdpro.com",Io="shepherdPro:userId";var Tn;class Ai extends Pt.Tour{constructor(e){super(e),hn(this,Tn,null),pn(this,Tn,localStorage.getItem(Io));const{dataRequester:n}=Qe;n&&this.trackedEvents.forEach(o=>this.on(o,r=>{const{tour:i}=r,{id:s,steps:l}=i;let c;if(o!=="active"){const{step:f}=r;f&&(c=l.findIndex(h=>h.id===f.id)+1)}const a={currentUserId:$t(this,Tn),eventType:o,journeyData:{id:s,currentStep:c,numberOfSteps:l.length,tourOptions:i.options}};n==null||n.sendEvents({data:a})}))}async start(){await Qe.isTourEnabled(this.options.id)&&(super.start(),Qe.activeTour=Pt.activeTour)}}Tn=new WeakMap,we(Ai,"trackedEvents",["active","cancel","complete","show"]);class Du extends xi{constructor(){super(),we(this,"apiKey"),we(this,"apiPath"),we(this,"dataRequester"),we(this,"properties"),this.Tour=Ai,this.Step=Pt.Step}async init(e,n,o){if(!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(this.apiKey=e,this.apiPath=n??Lu,this.properties=o??{},this.properties.context=Iu(window),this.apiKey){this.dataRequester=new Ru(this.apiKey,this.apiPath,this.properties);const r=localStorage.getItem(Io),i=[this.dataRequester.getTourState()];r||i.push(this.createNewActor()),await Promise.all(i)}}async createNewActor(){if(!this.dataRequester)return;const e=await this.dataRequester.sendEvents({data:{currentUserId:null,eventType:"setup"}});localStorage.setItem(Io,String(e.actorId))}async isTourEnabled(e){var n;if(!this.dataRequester)return;const o=await((n=this.dataRequester.tourStateDb)==null?void 0:n.get("tours",e));return(o==null?void 0:o.isActive)??!0}}const Qe=new Du,$n=kt.createContext(void 0),Fu=$n.Consumer,ju=()=>{const t=kt.useContext($n);if(!t)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:e}=t;return e},Bu=({apiKey:t,apiPath:e,properties:n,children:o})=>{let r=Qt;return typeof window<"u"&&t&&(r=Qe,Qe.init(t,e,n)),Gi.jsx($n.Provider,{value:{Shepherd:r},children:o})};gt.JourneyMethods=Fu,gt.ShepherdJourneyContext=$n,gt.ShepherdJourneyProvider=Bu,gt.useShepherd=ju,Object.defineProperty(gt,Symbol.toStringTag,{value:"Module"})});
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"})});