react-shepherd 6.1.4 → 6.1.7

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