react-shepherd 6.0.3 → 6.0.5

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.
Files changed (3) hide show
  1. package/dist/index.js +2665 -2616
  2. package/dist/index.umd.cjs +10 -10
  3. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- (function(gt,Pt){typeof exports=="object"&&typeof module<"u"?Pt(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Pt):(gt=typeof globalThis<"u"?globalThis:gt||self,Pt(gt.ShepherdProReact={},gt.require$$0))})(this,function(gt,Pt){"use strict";var Pn={exports:{}},De={};/**
1
+ (function(yt,Dt){typeof exports=="object"&&typeof module<"u"?Dt(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Dt):(yt=typeof globalThis<"u"?globalThis:yt||self,Dt(yt.ShepherdProReact={},yt.require$$0))})(this,function(yt,Dt){"use strict";var Fn={exports:{}},He={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Wo;function Xi(){if(Wo)return De;Wo=1;var t=Pt,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(l,c,a){var f,h={},d=null,p=null;a!==void 0&&(d=""+a),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(p=c.ref);for(f in c)o.call(c,f)&&!i.hasOwnProperty(f)&&(h[f]=c[f]);if(l&&l.defaultProps)for(f in c=l.defaultProps,c)h[f]===void 0&&(h[f]=c[f]);return{$$typeof:e,type:l,key:d,ref:p,props:h,_owner:r.current}}return De.Fragment=n,De.jsx=s,De.jsxs=s,De}var Fe={};/**
9
+ */var Nr;function Ji(){if(Nr)return He;Nr=1;var t=Dt,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(l,c,a){var f,h={},d=null,p=null;a!==void 0&&(d=""+a),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(p=c.ref);for(f in c)r.call(c,f)&&!i.hasOwnProperty(f)&&(h[f]=c[f]);if(l&&l.defaultProps)for(f in c=l.defaultProps,c)h[f]===void 0&&(h[f]=c[f]);return{$$typeof:e,type:l,key:d,ref:p,props:h,_owner:o.current}}return He.Fragment=n,He.jsx=s,He.jsxs=s,He}var Ve={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var No;function Gi(){return No||(No=1,process.env.NODE_ENV!=="production"&&function(){var t=Pt,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function _(u){if(u===null||typeof u!="object")return null;var v=m&&u[m]||u[y];return typeof v=="function"?v:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(u){{for(var v=arguments.length,E=new Array(v>1?v-1:0),T=1;T<v;T++)E[T-1]=arguments[T];S("error",u,E)}}function S(u,v,E){{var T=w.ReactDebugCurrentFrame,k=T.getStackAddendum();k!==""&&(v+="%s",E=E.concat([k]));var j=E.map(function(R){return String(R)});j.unshift("Warning: "+v),Function.prototype.apply.call(console[u],console,j)}}var b=!1,g=!1,O=!1,P=!1,V=!1,I;I=Symbol.for("react.module.reference");function B(u){return!!(typeof u=="string"||typeof u=="function"||u===o||u===i||V||u===r||u===a||u===f||P||u===p||b||g||O||typeof u=="object"&&u!==null&&(u.$$typeof===d||u.$$typeof===h||u.$$typeof===s||u.$$typeof===l||u.$$typeof===c||u.$$typeof===I||u.getModuleId!==void 0))}function N(u,v,E){var T=u.displayName;if(T)return T;var k=v.displayName||v.name||"";return k!==""?E+"("+k+")":E}function U(u){return u.displayName||"Context"}function A(u){if(u==null)return null;if(typeof u.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case o:return"Fragment";case n:return"Portal";case i:return"Profiler";case r:return"StrictMode";case a:return"Suspense";case f:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case l:var v=u;return U(v)+".Consumer";case s:var E=u;return U(E._context)+".Provider";case c:return N(u,u.render,"ForwardRef");case h:var T=u.displayName||null;return T!==null?T:A(u.type)||"Memo";case d:{var k=u,j=k._payload,R=k._init;try{return A(R(j))}catch{return null}}}return null}var $=Object.assign,q=0,H,W,et,_t,$n,ki,Mi;function Li(){}Li.__reactDisabledLog=!0;function Nu(){{if(q===0){H=console.log,W=console.info,et=console.warn,_t=console.error,$n=console.group,ki=console.groupCollapsed,Mi=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Li,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}q++}}function Hu(){{if(q--,q===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},u,{value:H}),info:$({},u,{value:W}),warn:$({},u,{value:et}),error:$({},u,{value:_t}),group:$({},u,{value:$n}),groupCollapsed:$({},u,{value:ki}),groupEnd:$({},u,{value:Mi})})}q<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ao=w.ReactCurrentDispatcher,Po;function Cn(u,v,E){{if(Po===void 0)try{throw Error()}catch(k){var T=k.stack.trim().match(/\n( *(at )?)/);Po=T&&T[1]||""}return`
18
- `+Po+u}}var ko=!1,Rn;{var Vu=typeof WeakMap=="function"?WeakMap:Map;Rn=new Vu}function Di(u,v){if(!u||ko)return"";{var E=Rn.get(u);if(E!==void 0)return E}var T;ko=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=Ao.current,Ao.current=null,Nu();try{if(v){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(ot){T=ot}Reflect.construct(u,[],R)}else{try{R.call()}catch(ot){T=ot}u.call(R.prototype)}}else{try{throw Error()}catch(ot){T=ot}u()}}catch(ot){if(ot&&T&&typeof ot.stack=="string"){for(var C=ot.stack.split(`
19
- `),nt=T.stack.split(`
20
- `),J=C.length-1,X=nt.length-1;J>=1&&X>=0&&C[J]!==nt[X];)X--;for(;J>=1&&X>=0;J--,X--)if(C[J]!==nt[X]){if(J!==1||X!==1)do if(J--,X--,X<0||C[J]!==nt[X]){var ut=`
21
- `+C[J].replace(" at new "," at ");return u.displayName&&ut.includes("<anonymous>")&&(ut=ut.replace("<anonymous>",u.displayName)),typeof u=="function"&&Rn.set(u,ut),ut}while(J>=1&&X>=0);break}}}finally{ko=!1,Ao.current=j,Hu(),Error.prepareStackTrace=k}var Le=u?u.displayName||u.name:"",ce=Le?Cn(Le):"";return typeof u=="function"&&Rn.set(u,ce),ce}function Uu(u,v,E){return Di(u,!1)}function qu(u){var v=u.prototype;return!!(v&&v.isReactComponent)}function In(u,v,E){if(u==null)return"";if(typeof u=="function")return Di(u,qu(u));if(typeof u=="string")return Cn(u);switch(u){case a:return Cn("Suspense");case f:return Cn("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return Uu(u.render);case h:return In(u.type,v,E);case d:{var T=u,k=T._payload,j=T._init;try{return In(j(k),v,E)}catch{}}}return""}var Qe=Object.prototype.hasOwnProperty,Fi={},ji=w.ReactDebugCurrentFrame;function An(u){if(u){var v=u._owner,E=In(u.type,u._source,v?v.type:null);ji.setExtraStackFrame(E)}else ji.setExtraStackFrame(null)}function Yu(u,v,E,T,k){{var j=Function.call.bind(Qe);for(var R in u)if(j(u,R)){var C=void 0;try{if(typeof u[R]!="function"){var nt=Error((T||"React class")+": "+E+" type `"+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[R]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nt.name="Invariant Violation",nt}C=u[R](v,R,T,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(J){C=J}C&&!(C instanceof Error)&&(An(k),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",T||"React class",E,R,typeof C),An(null)),C instanceof Error&&!(C.message in Fi)&&(Fi[C.message]=!0,An(k),x("Failed %s type: %s",E,C.message),An(null))}}}var Ku=Array.isArray;function Mo(u){return Ku(u)}function zu(u){{var v=typeof Symbol=="function"&&Symbol.toStringTag,E=v&&u[Symbol.toStringTag]||u.constructor.name||"Object";return E}}function Ju(u){try{return Bi(u),!1}catch{return!0}}function Bi(u){return""+u}function Wi(u){if(Ju(u))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zu(u)),Bi(u)}var tn=w.ReactCurrentOwner,Xu={key:!0,ref:!0,__self:!0,__source:!0},Ni,Hi,Lo;Lo={};function Gu(u){if(Qe.call(u,"ref")){var v=Object.getOwnPropertyDescriptor(u,"ref").get;if(v&&v.isReactWarning)return!1}return u.ref!==void 0}function Zu(u){if(Qe.call(u,"key")){var v=Object.getOwnPropertyDescriptor(u,"key").get;if(v&&v.isReactWarning)return!1}return u.key!==void 0}function Qu(u,v){if(typeof u.ref=="string"&&tn.current&&v&&tn.current.stateNode!==v){var E=A(tn.current.type);Lo[E]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(tn.current.type),u.ref),Lo[E]=!0)}}function tf(u,v){{var E=function(){Ni||(Ni=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};E.isReactWarning=!0,Object.defineProperty(u,"key",{get:E,configurable:!0})}}function ef(u,v){{var E=function(){Hi||(Hi=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};E.isReactWarning=!0,Object.defineProperty(u,"ref",{get:E,configurable:!0})}}var nf=function(u,v,E,T,k,j,R){var C={$$typeof:e,type:u,key:v,ref:E,props:R,_owner:j};return C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(C,"_self",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.defineProperty(C,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C};function of(u,v,E,T,k){{var j,R={},C=null,nt=null;E!==void 0&&(Wi(E),C=""+E),Zu(v)&&(Wi(v.key),C=""+v.key),Gu(v)&&(nt=v.ref,Qu(v,k));for(j in v)Qe.call(v,j)&&!Xu.hasOwnProperty(j)&&(R[j]=v[j]);if(u&&u.defaultProps){var J=u.defaultProps;for(j in J)R[j]===void 0&&(R[j]=J[j])}if(C||nt){var X=typeof u=="function"?u.displayName||u.name||"Unknown":u;C&&tf(R,X),nt&&ef(R,X)}return nf(u,C,nt,k,T,tn.current,R)}}var Do=w.ReactCurrentOwner,Vi=w.ReactDebugCurrentFrame;function Me(u){if(u){var v=u._owner,E=In(u.type,u._source,v?v.type:null);Vi.setExtraStackFrame(E)}else Vi.setExtraStackFrame(null)}var Fo;Fo=!1;function jo(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function Ui(){{if(Do.current){var u=A(Do.current.type);if(u)return`
17
+ */var Hr;function Xi(){return Hr||(Hr=1,process.env.NODE_ENV!=="production"&&function(){var t=Dt,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function _(u){if(u===null||typeof u!="object")return null;var v=m&&u[m]||u[y];return typeof v=="function"?v:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(u){{for(var v=arguments.length,E=new Array(v>1?v-1:0),T=1;T<v;T++)E[T-1]=arguments[T];S("error",u,E)}}function S(u,v,E){{var T=w.ReactDebugCurrentFrame,R=T.getStackAddendum();R!==""&&(v+="%s",E=E.concat([R]));var j=E.map(function(C){return String(C)});j.unshift("Warning: "+v),Function.prototype.apply.call(console[u],console,j)}}var b=!1,g=!1,O=!1,I=!1,G=!1,M;M=Symbol.for("react.module.reference");function N(u){return!!(typeof u=="string"||typeof u=="function"||u===r||u===i||G||u===o||u===a||u===f||I||u===p||b||g||O||typeof u=="object"&&u!==null&&(u.$$typeof===d||u.$$typeof===h||u.$$typeof===s||u.$$typeof===l||u.$$typeof===c||u.$$typeof===M||u.getModuleId!==void 0))}function D(u,v,E){var T=u.displayName;if(T)return T;var R=v.displayName||v.name||"";return R!==""?E+"("+R+")":E}function W(u){return u.displayName||"Context"}function B(u){if(u==null)return null;if(typeof u.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case a:return"Suspense";case f:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case l:var v=u;return W(v)+".Consumer";case s:var E=u;return W(E._context)+".Provider";case c:return D(u,u.render,"ForwardRef");case h:var T=u.displayName||null;return T!==null?T:B(u.type)||"Memo";case d:{var R=u,j=R._payload,C=R._init;try{return B(C(j))}catch{return null}}}return null}var A=Object.assign,H=0,Y,X,rt,Z,K,ut,Pn;function Mi(){}Mi.__reactDisabledLog=!0;function ju(){{if(H===0){Y=console.log,X=console.info,rt=console.warn,Z=console.error,K=console.group,ut=console.groupCollapsed,Pn=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Mi,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}H++}}function Bu(){{if(H--,H===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},u,{value:Y}),info:A({},u,{value:X}),warn:A({},u,{value:rt}),error:A({},u,{value:Z}),group:A({},u,{value:K}),groupCollapsed:A({},u,{value:ut}),groupEnd:A({},u,{value:Pn})})}H<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pr=w.ReactCurrentDispatcher,kr;function kn(u,v,E){{if(kr===void 0)try{throw Error()}catch(R){var T=R.stack.trim().match(/\n( *(at )?)/);kr=T&&T[1]||""}return`
18
+ `+kr+u}}var Mr=!1,Mn;{var Wu=typeof WeakMap=="function"?WeakMap:Map;Mn=new Wu}function Di(u,v){if(!u||Mr)return"";{var E=Mn.get(u);if(E!==void 0)return E}var T;Mr=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=Pr.current,Pr.current=null,ju();try{if(v){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(it){T=it}Reflect.construct(u,[],C)}else{try{C.call()}catch(it){T=it}u.call(C.prototype)}}else{try{throw Error()}catch(it){T=it}u()}}catch(it){if(it&&T&&typeof it.stack=="string"){for(var $=it.stack.split(`
19
+ `),ot=T.stack.split(`
20
+ `),z=$.length-1,J=ot.length-1;z>=1&&J>=0&&$[z]!==ot[J];)J--;for(;z>=1&&J>=0;z--,J--)if($[z]!==ot[J]){if(z!==1||J!==1)do if(z--,J--,J<0||$[z]!==ot[J]){var ht=`
21
+ `+$[z].replace(" at new "," at ");return u.displayName&&ht.includes("<anonymous>")&&(ht=ht.replace("<anonymous>",u.displayName)),typeof u=="function"&&Mn.set(u,ht),ht}while(z>=1&&J>=0);break}}}finally{Mr=!1,Pr.current=j,Bu(),Error.prepareStackTrace=R}var Ne=u?u.displayName||u.name:"",ue=Ne?kn(Ne):"";return typeof u=="function"&&Mn.set(u,ue),ue}function Nu(u,v,E){return Di(u,!1)}function Hu(u){var v=u.prototype;return!!(v&&v.isReactComponent)}function Dn(u,v,E){if(u==null)return"";if(typeof u=="function")return Di(u,Hu(u));if(typeof u=="string")return kn(u);switch(u){case a:return kn("Suspense");case f:return kn("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return Nu(u.render);case h:return Dn(u.type,v,E);case d:{var T=u,R=T._payload,j=T._init;try{return Dn(j(R),v,E)}catch{}}}return""}var on=Object.prototype.hasOwnProperty,Li={},Fi=w.ReactDebugCurrentFrame;function Ln(u){if(u){var v=u._owner,E=Dn(u.type,u._source,v?v.type:null);Fi.setExtraStackFrame(E)}else Fi.setExtraStackFrame(null)}function Vu(u,v,E,T,R){{var j=Function.call.bind(on);for(var C in u)if(j(u,C)){var $=void 0;try{if(typeof u[C]!="function"){var ot=Error((T||"React class")+": "+E+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ot.name="Invariant Violation",ot}$=u[C](v,C,T,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){$=z}$&&!($ instanceof Error)&&(Ln(R),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",T||"React class",E,C,typeof $),Ln(null)),$ instanceof Error&&!($.message in Li)&&(Li[$.message]=!0,Ln(R),x("Failed %s type: %s",E,$.message),Ln(null))}}}var Uu=Array.isArray;function Dr(u){return Uu(u)}function qu(u){{var v=typeof Symbol=="function"&&Symbol.toStringTag,E=v&&u[Symbol.toStringTag]||u.constructor.name||"Object";return E}}function Yu(u){try{return ji(u),!1}catch{return!0}}function ji(u){return""+u}function Bi(u){if(Yu(u))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qu(u)),ji(u)}var sn=w.ReactCurrentOwner,zu={key:!0,ref:!0,__self:!0,__source:!0},Wi,Ni,Lr;Lr={};function Ku(u){if(on.call(u,"ref")){var v=Object.getOwnPropertyDescriptor(u,"ref").get;if(v&&v.isReactWarning)return!1}return u.ref!==void 0}function Ju(u){if(on.call(u,"key")){var v=Object.getOwnPropertyDescriptor(u,"key").get;if(v&&v.isReactWarning)return!1}return u.key!==void 0}function Xu(u,v){if(typeof u.ref=="string"&&sn.current&&v&&sn.current.stateNode!==v){var E=B(sn.current.type);Lr[E]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B(sn.current.type),u.ref),Lr[E]=!0)}}function Gu(u,v){{var E=function(){Wi||(Wi=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};E.isReactWarning=!0,Object.defineProperty(u,"key",{get:E,configurable:!0})}}function Zu(u,v){{var E=function(){Ni||(Ni=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};E.isReactWarning=!0,Object.defineProperty(u,"ref",{get:E,configurable:!0})}}var Qu=function(u,v,E,T,R,j,C){var $={$$typeof:e,type:u,key:v,ref:E,props:C,_owner:j};return $._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($,"_self",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.defineProperty($,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$};function tf(u,v,E,T,R){{var j,C={},$=null,ot=null;E!==void 0&&(Bi(E),$=""+E),Ju(v)&&(Bi(v.key),$=""+v.key),Ku(v)&&(ot=v.ref,Xu(v,R));for(j in v)on.call(v,j)&&!zu.hasOwnProperty(j)&&(C[j]=v[j]);if(u&&u.defaultProps){var z=u.defaultProps;for(j in z)C[j]===void 0&&(C[j]=z[j])}if($||ot){var J=typeof u=="function"?u.displayName||u.name||"Unknown":u;$&&Gu(C,J),ot&&Zu(C,J)}return Qu(u,$,ot,R,T,sn.current,C)}}var Fr=w.ReactCurrentOwner,Hi=w.ReactDebugCurrentFrame;function We(u){if(u){var v=u._owner,E=Dn(u.type,u._source,v?v.type:null);Hi.setExtraStackFrame(E)}else Hi.setExtraStackFrame(null)}var jr;jr=!1;function Br(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function Vi(){{if(Fr.current){var u=B(Fr.current.type);if(u)return`
22
22
 
23
- Check the render method of \``+u+"`."}return""}}function rf(u){return""}var qi={};function sf(u){{var v=Ui();if(!v){var E=typeof u=="string"?u:u.displayName||u.name;E&&(v=`
23
+ Check the render method of \``+u+"`."}return""}}function ef(u){return""}var Ui={};function nf(u){{var v=Vi();if(!v){var E=typeof u=="string"?u:u.displayName||u.name;E&&(v=`
24
24
 
25
- Check the top-level render call using <`+E+">.")}return v}}function Yi(u,v){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var E=sf(v);if(qi[E])return;qi[E]=!0;var T="";u&&u._owner&&u._owner!==Do.current&&(T=" It was passed a child from "+A(u._owner.type)+"."),Me(u),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,T),Me(null)}}function Ki(u,v){{if(typeof u!="object")return;if(Mo(u))for(var E=0;E<u.length;E++){var T=u[E];jo(T)&&Yi(T,v)}else if(jo(u))u._store&&(u._store.validated=!0);else if(u){var k=_(u);if(typeof k=="function"&&k!==u.entries)for(var j=k.call(u),R;!(R=j.next()).done;)jo(R.value)&&Yi(R.value,v)}}}function lf(u){{var v=u.type;if(v==null||typeof v=="string")return;var E;if(typeof v=="function")E=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===c||v.$$typeof===h))E=v.propTypes;else return;if(E){var T=A(v);Yu(E,u.props,"prop",T,u)}else if(v.PropTypes!==void 0&&!Fo){Fo=!0;var k=A(v);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function cf(u){{for(var v=Object.keys(u.props),E=0;E<v.length;E++){var T=v[E];if(T!=="children"&&T!=="key"){Me(u),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T),Me(null);break}}u.ref!==null&&(Me(u),x("Invalid attribute `ref` supplied to `React.Fragment`."),Me(null))}}var zi={};function Ji(u,v,E,T,k,j){{var R=B(u);if(!R){var C="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var nt=rf();nt?C+=nt:C+=Ui();var J;u===null?J="null":Mo(u)?J="array":u!==void 0&&u.$$typeof===e?(J="<"+(A(u.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):J=typeof u,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",J,C)}var X=of(u,v,E,k,j);if(X==null)return X;if(R){var ut=v.children;if(ut!==void 0)if(T)if(Mo(ut)){for(var Le=0;Le<ut.length;Le++)Ki(ut[Le],u);Object.freeze&&Object.freeze(ut)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ki(ut,u)}if(Qe.call(v,"key")){var ce=A(u),ot=Object.keys(v).filter(function(pf){return pf!=="key"}),Bo=ot.length>0?"{key: someKey, "+ot.join(": ..., ")+": ...}":"{key: someKey}";if(!zi[ce+Bo]){var hf=ot.length>0?"{"+ot.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+E+">.")}return v}}function qi(u,v){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var E=nf(v);if(Ui[E])return;Ui[E]=!0;var T="";u&&u._owner&&u._owner!==Fr.current&&(T=" It was passed a child from "+B(u._owner.type)+"."),We(u),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,T),We(null)}}function Yi(u,v){{if(typeof u!="object")return;if(Dr(u))for(var E=0;E<u.length;E++){var T=u[E];Br(T)&&qi(T,v)}else if(Br(u))u._store&&(u._store.validated=!0);else if(u){var R=_(u);if(typeof R=="function"&&R!==u.entries)for(var j=R.call(u),C;!(C=j.next()).done;)Br(C.value)&&qi(C.value,v)}}}function rf(u){{var v=u.type;if(v==null||typeof v=="string")return;var E;if(typeof v=="function")E=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===c||v.$$typeof===h))E=v.propTypes;else return;if(E){var T=B(v);Vu(E,u.props,"prop",T,u)}else if(v.PropTypes!==void 0&&!jr){jr=!0;var R=B(v);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function of(u){{for(var v=Object.keys(u.props),E=0;E<v.length;E++){var T=v[E];if(T!=="children"&&T!=="key"){We(u),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T),We(null);break}}u.ref!==null&&(We(u),x("Invalid attribute `ref` supplied to `React.Fragment`."),We(null))}}var zi={};function Ki(u,v,E,T,R,j){{var C=N(u);if(!C){var $="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&($+=" 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 ot=ef();ot?$+=ot:$+=Vi();var z;u===null?z="null":Dr(u)?z="array":u!==void 0&&u.$$typeof===e?(z="<"+(B(u.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):z=typeof u,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",z,$)}var J=tf(u,v,E,R,j);if(J==null)return J;if(C){var ht=v.children;if(ht!==void 0)if(T)if(Dr(ht)){for(var Ne=0;Ne<ht.length;Ne++)Yi(ht[Ne],u);Object.freeze&&Object.freeze(ht)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Yi(ht,u)}if(on.call(v,"key")){var ue=B(u),it=Object.keys(v).filter(function(ff){return ff!=="key"}),Wr=it.length>0?"{key: someKey, "+it.join(": ..., ")+": ...}":"{key: someKey}";if(!zi[ue+Wr]){var uf=it.length>0?"{"+it.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Bo,ce,hf,ce),zi[ce+Bo]=!0}}return u===o?cf(X):lf(X),X}}function af(u,v,E){return Ji(u,v,E,!0)}function uf(u,v,E){return Ji(u,v,E,!1)}var ff=uf,df=af;Fe.Fragment=o,Fe.jsx=ff,Fe.jsxs=df}()),Fe}process.env.NODE_ENV==="production"?Pn.exports=Xi():Pn.exports=Gi();var Zi=Pn.exports;/*! shepherd.js 13.0.0 */function Qi(t){return t instanceof Element}function je(t){return t instanceof HTMLElement}function kt(t){return typeof t=="function"}function Be(t){return typeof t=="string"}function G(t){return t===void 0}class kn{on(e,n,o,r=!1){var i;return G(this.bindings)&&(this.bindings={}),G(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:o,once:r}),this}once(e,n,o){return this.on(e,n,o,!0)}off(e,n){if(G(this.bindings)||G(this.bindings[e]))return this;if(G(n))delete this.bindings[e];else{var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{if(r.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!G(this.bindings)&&this.bindings[e]){var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{const{ctx:s,handler:l,once:c}=r,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function Q(){return Q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Q.apply(null,arguments)}function Ho(t,e){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;n[o]=t[o]}return n}const Mt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Mt.defaultMerge;function ts(t,e){return e}function Vo(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:os(t)?1:t instanceof Set?3:t instanceof Map?4:5}function es(t){const e=new Set;for(const n of t)for(const o of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(o);return e}function ns(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function Uo(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const qo=new Set(["[object Object]","[object Module]"]);function os(t){if(!qo.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!qo.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function rs(t,e,n){const o={};for(const r of es(t)){const i=[];for(const c of t)ns(c,r)&&i.push(c[r]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:r,parents:t}),l=Ko(i,e,s);l!==Mt.skip&&(r==="__proto__"?Object.defineProperty(o,r,{value:l,configurable:!0,enumerable:!0,writable:!0}):o[r]=l)}return o}function is(t){return t.flat()}function ss(t){return new Set(Uo(t))}function ls(t){return new Map(Uo(t))}function Yo(t){return t.at(-1)}var Mn=Object.freeze({__proto__:null,mergeArrays:is,mergeMaps:ls,mergeOthers:Yo,mergeRecords:rs,mergeSets:ss});function Ln(...t){return cs({})(...t)}function cs(t,e){const n=as(t,o);function o(...r){return Ko(r,n,e)}return o}function as(t,e){var n,o;return{defaultMergeFunctions:Mn,mergeFunctions:Q({},Mn,Object.fromEntries(Object.entries(t).filter(([r,i])=>Object.hasOwn(Mn,r)).map(([r,i])=>i===!1?[r,Yo]:[r,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:ts,deepmerge:e,useImplicitDefaultMerging:(o=t.enableImplicitDefaultMerging)!=null?o:!1,actions:Mt}}function Ko(t,e,n){if(t.length===0)return;if(t.length===1)return Dn(t,e,n);const o=Vo(t[0]);if(o!==0&&o!==5){for(let r=1;r<t.length;r++)if(Vo(t[r])!==o)return Dn(t,e,n)}switch(o){case 1:return us(t,e,n);case 2:return fs(t,e,n);case 3:return ds(t,e,n);case 4:return hs(t,e,n);default:return Dn(t,e,n)}}function us(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);return o===Mt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):o}function fs(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);return o===Mt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):o}function ds(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);return o===Mt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):o}function hs(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);return o===Mt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):o}function Dn(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return o===Mt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):o}function Fn(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],r=t[o];o!=="constructor"&&typeof r=="function"&&(t[o]=r.bind(t))}return t}function ps(t,e){return n=>{if(t.isOpen()){const o=t.el&&n.currentTarget===t.el;(!G(e)&&n.currentTarget.matches(e)||o)&&t.tour.next()}}}function gs(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const o=ps(t,n);let r=null;if(!G(n)&&(r=document.querySelector(n),!r))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);r?(r.addEventListener(e,o),t.on("destroy",()=>r.removeEventListener(e,o))):(document.body.addEventListener(e,o,!0),t.on("destroy",()=>document.body.removeEventListener(e,o,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class ms{constructor(e){}}class bs{constructor(e,n){}}function zo(t){return!Be(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function ys(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(kt(n.element)&&(n.element=n.element.call(t)),Be(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Jo(t){return t==null?!0:!t.element||!t.on}function Xo(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const ae=Math.min,Yt=Math.max,en=Math.round,nn=Math.floor,Lt=t=>({x:t,y:t}),vs={left:"right",right:"left",bottom:"top",top:"bottom"},ws={start:"end",end:"start"};function jn(t,e,n){return Yt(t,ae(e,n))}function ue(t,e){return typeof t=="function"?t(e):t}function Kt(t){return t.split("-")[0]}function on(t){return t.split("-")[1]}function Bn(t){return t==="x"?"y":"x"}function Wn(t){return t==="y"?"height":"width"}function rn(t){return["top","bottom"].includes(Kt(t))?"y":"x"}function Nn(t){return Bn(rn(t))}function xs(t,e,n){n===void 0&&(n=!1);const o=on(t),r=Nn(t),i=Wn(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=sn(s)),[s,sn(s)]}function _s(t){const e=sn(t);return[Hn(t),e,Hn(e)]}function Hn(t){return t.replace(/start|end/g,e=>ws[e])}function Es(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function Ss(t,e,n,o){const r=on(t);let i=Es(Kt(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(Hn)))),i}function sn(t){return t.replace(/left|right|bottom|top/g,e=>vs[e])}function Os(t){return Q({top:0,right:0,bottom:0,left:0},t)}function Go(t){return typeof t!="number"?Os(t):{top:t,right:t,bottom:t,left:t}}function ln(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}const Ts=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],$s=["mainAxis","crossAxis","limiter"];function Zo(t,e,n){let{reference:o,floating:r}=t;const i=rn(e),s=Nn(e),l=Wn(s),c=Kt(e),a=i==="y",f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-r.width,y:h};break;default:p={x:o.x,y:o.y}}switch(on(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const Cs=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Zo(a,o,c),d=o,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=Q({},p,{[_]:Q({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):g.rects),{x:f,y:h}=Zo(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:p}};async function Qo(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=ue(e,t),m=Go(p),_=l[d?h==="floating"?"reference":"floating":h],w=ln(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),x=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},g=ln(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:S,strategy:c}):x);return{top:(w.top-g.top+m.top)/b.y,bottom:(g.bottom-w.bottom+m.bottom)/b.y,left:(w.left-g.left+m.left)/b.x,right:(g.right-w.right+m.right)/b.x}}const Rs=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=ue(t,e)||{};if(a==null)return{};const h=Go(f),d={x:n,y:o},p=Nn(r),m=Wn(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=O?O[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=l.floating[S]||i.floating[m]);const V=b/2-g/2,I=P/2-y[m]/2-1,B=ae(h[w],I),N=ae(h[x],I),U=B,A=P-y[m]-N,$=P/2-y[m]/2+V,q=jn(U,$,A),H=!c.arrow&&on(r)!=null&&$!==q&&i.reference[m]/2-($<U?B:N)-y[m]/2<0,W=H?$<U?$-U:$-A:0;return{[p]:d[p]+W,data:Q({[p]:q,centerOffset:$-q-W},H&&{alignmentOffset:W}),reset:H}}}),Is=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var o,r;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:a,elements:f}=n,h=ue(e,n),{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:w=!0}=h,x=Ho(h,Ts);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const S=Kt(i),b=Kt(c)===c,g=await(a.isRTL==null?void 0:a.isRTL(f.floating)),O=m||(b||!w?[sn(c)]:_s(c));!m&&_!=="none"&&O.push(...Ss(c,w,_,g));const P=[c,...O],V=await Qo(n,x),I=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&I.push(V[S]),p){const $=xs(i,l,g);I.push(V[$[0]],V[$[1]])}if(B=[...B,{placement:i,overflows:I}],!I.every($=>$<=0)){var N,U;const $=(((N=s.flip)==null?void 0:N.index)||0)+1,q=P[$];if(q)return{data:{index:$,overflows:B},reset:{placement:q}};let H=(U=B.filter(W=>W.overflows[0]<=0).sort((W,et)=>W.overflows[1]-et.overflows[1])[0])==null?void 0:U.placement;if(!H)switch(y){case"bestFit":{var A;const W=(A=B.map(et=>[et.placement,et.overflows.filter(_t=>_t>0).reduce((_t,$n)=>_t+$n,0)]).sort((et,_t)=>et[1]-_t[1])[0])==null?void 0:A[0];W&&(H=W);break}case"initialPlacement":H=c;break}if(i!==H)return{reset:{placement:H}}}return{}}}},As=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:o,y:r,placement:i}=n,s=ue(e,n),{mainAxis:l=!0,crossAxis:c=!1,limiter:a={fn:x=>{let{x:S,y:b}=x;return{x:S,y:b}}}}=s,f=Ho(s,$s),h={x:o,y:r},d=await Qo(n,f),p=rn(Kt(i)),m=Bn(p);let y=h[m],_=h[p];if(l){const x=m==="y"?"top":"left",S=m==="y"?"bottom":"right",b=y+d[x],g=y-d[S];y=jn(b,y,g)}if(c){const x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",b=_+d[x],g=_-d[S];_=jn(b,_,g)}const w=a.fn(Q({},n,{[m]:y,[p]:_}));return Q({},w,{data:{x:w.x-o,y:w.y-r}})}}},Ps=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:o,y:r,placement:i,rects:s,middlewareData:l}=n,{offset:c=0,mainAxis:a=!0,crossAxis:f=!0}=ue(e,n),h={x:o,y:r},d=rn(i),p=Bn(d);let m=h[p],y=h[d];const _=ue(c,n),w=typeof _=="number"?{mainAxis:_,crossAxis:0}:Q({mainAxis:0,crossAxis:0},_);if(a){const b=p==="y"?"height":"width",g=s.reference[p]-s.floating[b]+w.mainAxis,O=s.reference[p]+s.reference[b]-w.mainAxis;m<g?m=g:m>O&&(m=O)}if(f){var x,S;const b=p==="y"?"width":"height",g=["top","left"].includes(Kt(i)),O=s.reference[d]-s.floating[b]+(g&&((x=l.offset)==null?void 0:x[d])||0)+(g?0:w.crossAxis),P=s.reference[d]+s.reference[b]+(g?0:((S=l.offset)==null?void 0:S[d])||0)-(g?w.crossAxis:0);y<O?y=O:y>P&&(y=P)}return{[p]:m,[d]:y}}}};function fe(t){return tr(t)?(t.nodeName||"").toLowerCase():"#document"}function rt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Et(t){var e;return(e=(tr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function tr(t){return t instanceof Node||t instanceof rt(t).Node}function mt(t){return t instanceof Element||t instanceof rt(t).Element}function bt(t){return t instanceof HTMLElement||t instanceof rt(t).HTMLElement}function er(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof rt(t).ShadowRoot}function We(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function ks(t){return["table","td","th"].includes(fe(t))}function Vn(t){const e=Un(),n=ft(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ms(t){let e=Dt(t);for(;bt(e)&&!de(e);){if(Vn(e))return e;e=Dt(e)}return null}function Un(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function de(t){return["html","body","#document"].includes(fe(t))}function ft(t){return rt(t).getComputedStyle(t)}function cn(t){return mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dt(t){if(fe(t)==="html")return t;const e=t.assignedSlot||t.parentNode||er(t)&&t.host||Et(t);return er(e)?e.host:e}function nr(t){const e=Dt(t);return de(e)?t.ownerDocument?t.ownerDocument.body:t.body:bt(e)&&We(e)?e:nr(e)}function Ne(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=nr(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=rt(r);return i?e.concat(s,s.visualViewport||[],We(r)?r:[],s.frameElement&&n?Ne(s.frameElement):[]):e.concat(r,Ne(r,[],n))}function or(t){const e=ft(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=bt(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=en(n)!==i||en(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function qn(t){return mt(t)?t:t.contextElement}function he(t){const e=qn(t);if(!bt(e))return Lt(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=or(e);let s=(i?en(n.width):n.width)/o,l=(i?en(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Ls=Lt(0);function rr(t){const e=rt(t);return!Un()||!e.visualViewport?Ls:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ds(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==rt(t)?!1:e}function zt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=qn(t);let s=Lt(1);e&&(o?mt(o)&&(s=he(o)):s=he(t));const l=Ds(i,n,o)?rr(i):Lt(0);let c=(r.left+l.x)/s.x,a=(r.top+l.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(i){const d=rt(i),p=o&&mt(o)?rt(o):o;let m=d,y=m.frameElement;for(;y&&o&&p!==m;){const _=he(y),w=y.getBoundingClientRect(),x=ft(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=rt(y),y=m.frameElement}}return ln({width:f,height:h,x:c,y:a})}const Fs=[":popover-open",":modal"];function Yn(t){return Fs.some(e=>{try{return t.matches(e)}catch{return!1}})}function js(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=Et(o),l=e?Yn(e.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=Lt(1);const f=Lt(0),h=bt(o);if((h||!h&&!i)&&((fe(o)!=="body"||We(s))&&(c=cn(o)),bt(o))){const d=zt(o);a=he(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Bs(t){return Array.from(t.getClientRects())}function ir(t){return zt(Et(t)).left+cn(t).scrollLeft}function Ws(t){const e=Et(t),n=cn(t),o=t.ownerDocument.body,r=Yt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Yt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ir(t);const l=-n.scrollTop;return ft(o).direction==="rtl"&&(s+=Yt(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function Ns(t,e){const n=rt(t),o=Et(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const a=Un();(!a||a&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function Hs(t,e){const n=zt(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=bt(t)?he(t):Lt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,a=o*i.y;return{width:s,height:l,x:c,y:a}}function sr(t,e,n){let o;if(e==="viewport")o=Ns(t,n);else if(e==="document")o=Ws(Et(t));else if(mt(e))o=Hs(e,n);else{const r=rr(t);o=Q({},e,{x:e.x-r.x,y:e.y-r.y})}return ln(o)}function lr(t,e){const n=Dt(t);return n===e||!mt(n)||de(n)?!1:ft(n).position==="fixed"||lr(n,e)}function Vs(t,e){const n=e.get(t);if(n)return n;let o=Ne(t,[],!1).filter(l=>mt(l)&&fe(l)!=="body"),r=null;const i=ft(t).position==="fixed";let s=i?Dt(t):t;for(;mt(s)&&!de(s);){const l=ft(s),c=Vn(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||We(s)&&!c&&lr(t,s))?o=o.filter(f=>f!==s):r=l,s=Dt(s)}return e.set(t,o),o}function Us(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?Yn(e)?[]:Vs(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((a,f)=>{const h=sr(e,f,r);return a.top=Yt(h.top,a.top),a.right=ae(h.right,a.right),a.bottom=ae(h.bottom,a.bottom),a.left=Yt(h.left,a.left),a},sr(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qs(t){const{width:e,height:n}=or(t);return{width:e,height:n}}function Ys(t,e,n){const o=bt(e),r=Et(e),i=n==="fixed",s=zt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Lt(0);if(o||!o&&!i)if((fe(e)!=="body"||We(r))&&(l=cn(e)),o){const h=zt(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else r&&(c.x=ir(r));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function Kn(t){return ft(t).position==="static"}function cr(t,e){return!bt(t)||ft(t).position==="fixed"?null:e?e(t):t.offsetParent}function ar(t,e){const n=rt(t);if(Yn(t))return n;if(!bt(t)){let r=Dt(t);for(;r&&!de(r);){if(mt(r)&&!Kn(r))return r;r=Dt(r)}return n}let o=cr(t,e);for(;o&&ks(o)&&Kn(o);)o=cr(o,e);return o&&de(o)&&Kn(o)&&!Vn(o)?n:o||Ms(t)||n}const Ks=async function(e){const n=this.getOffsetParent||ar,o=this.getDimensions,r=await o(e.floating);return{reference:Ys(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zs(t){return ft(t).direction==="rtl"}const Js={convertOffsetParentRelativeRectToViewportRelativeRect:js,getDocumentElement:Et,getClippingRect:Us,getOffsetParent:ar,getElementRects:Ks,getClientRects:Bs,getDimensions:qs,getScale:he,isElement:mt,isRTL:zs};function Xs(t,e){let n=null,o;const r=Et(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=nn(f),m=nn(r.clientWidth-(a+h)),y=nn(r.clientHeight-(f+d)),_=nn(a),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:Yt(0,ae(1,c))||1};let S=!0;function b(g){const O=g[0].intersectionRatio;if(O!==c){if(!S)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(b,Q({},x,{root:r.ownerDocument}))}catch{n=new IntersectionObserver(b,x)}n.observe(t)}return s(!0),i}function Gs(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=qn(t),f=r||i?[...a?Ne(a):[],...Ne(e)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?Xs(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?zt(t):null;c&&_();function _(){const w=zt(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Zs=As,Qs=Is,tl=Rs,el=Ps,nl=(t,e,n)=>{const o=new Map,r=Q({platform:Js},n),i=Q({},r.platform,{_c:o});return Cs(t,e,Q({},r,{platform:i}))};function ol(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const o=al(e,t),r=Jo(e);return r&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=Gs(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}sl(n,t,o,r)}),t.target=e.element,o}function rl(t,e){return{floatingUIOptions:Ln(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function il(t){t.cleanup&&t.cleanup(),t.cleanup=null}function sl(t,e,n,o){return nl(t,e.el,n).then(ll(e,o)).then(r=>new Promise(i=>{setTimeout(()=>i(r),300)})).then(r=>{r!=null&&r.el&&r.el.focus({preventScroll:!0})})}function ll(t,e){return({x:n,y:o,placement:r,middlewareData:i})=>(t.el&&(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:`${n}px`,top:`${o}px`}),t.el.dataset.popperPlacement=r,cl(t.el,i)),t)}function cl(t,e){const n=t.querySelector(".shepherd-arrow");if(je(n)&&e.arrow){const{x:o,y:r}=e.arrow;Object.assign(n.style,{left:o!=null?`${o}px`:"",top:r!=null?`${r}px`:""})}}function al(t,e){const n={strategy:"absolute"};n.middleware=[];const o=ul(e);return Jo(t)||(n.middleware.push(Qs(),Zs({limiter:el(),crossAxis:!0})),o&&n.middleware.push(tl({element:o})),n.placement=t.on),Ln(e.options.floatingUIOptions||{},n)}function ul(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function it(){}function fl(t,e){for(const n in e)t[n]=e[n];return t}function ur(t){return t()}function fr(){return Object.create(null)}function He(t){t.forEach(ur)}function zn(t){return typeof t=="function"}function St(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function dl(t){return Object.keys(t).length===0}function pe(t,e){t.appendChild(e)}function dt(t,e,n){t.insertBefore(e,n||null)}function ct(t){t.parentNode&&t.parentNode.removeChild(t)}function hl(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function yt(t){return document.createElement(t)}function dr(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function hr(t){return document.createTextNode(t)}function an(){return hr(" ")}function pl(){return hr("")}function un(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function D(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const gl=["width","height"];function pr(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)e[o]==null?t.removeAttribute(o):o==="style"?t.style.cssText=e[o]:o==="__value"?t.value=t[o]=e[o]:n[o]&&n[o].set&&gl.indexOf(o)===-1?t[o]=e[o]:D(t,o,e[o])}function ml(t){return Array.from(t.childNodes)}function ge(t,e,n){t.classList.toggle(e,!!n)}let Ve;function Ue(t){Ve=t}function gr(){if(!Ve)throw new Error("Function called outside component initialization");return Ve}function bl(t){gr().$$.on_mount.push(t)}function Jn(t){gr().$$.after_update.push(t)}const me=[],be=[];let ye=[];const mr=[],yl=Promise.resolve();let Xn=!1;function vl(){Xn||(Xn=!0,yl.then(br))}function Gn(t){ye.push(t)}const Zn=new Set;let ve=0;function br(){if(ve!==0)return;const t=Ve;do{try{for(;ve<me.length;){const e=me[ve];ve++,Ue(e),wl(e.$$)}}catch(e){throw me.length=0,ve=0,e}for(Ue(null),me.length=0,ve=0;be.length;)be.pop()();for(let e=0;e<ye.length;e+=1){const n=ye[e];Zn.has(n)||(Zn.add(n),n())}ye.length=0}while(me.length);for(;mr.length;)mr.pop()();Xn=!1,Zn.clear(),Ue(t)}function wl(t){if(t.fragment!==null){t.update(),He(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Gn)}}function xl(t){const e=[],n=[];ye.forEach(o=>t.indexOf(o)===-1?e.push(o):n.push(o)),n.forEach(o=>o()),ye=e}const fn=new Set;let Jt;function Xt(){Jt={r:0,c:[],p:Jt}}function Gt(){Jt.r||He(Jt.c),Jt=Jt.p}function M(t,e){t&&t.i&&(fn.delete(t),t.i(e))}function Y(t,e,n,o){if(t&&t.o){if(fn.has(t))return;fn.add(t),Jt.c.push(()=>{fn.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}else o&&o()}function yr(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function _l(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(o[c]=1);for(const c in l)r[c]||(n[c]=l[c],r[c]=1);t[i]=l}else for(const c in s)r[c]=1}for(const s in o)s in n||(n[s]=void 0);return n}function Zt(t){t&&t.c()}function Ft(t,e,n){const{fragment:o,after_update:r}=t.$$;o&&o.m(e,n),Gn(()=>{const i=t.$$.on_mount.map(ur).filter(zn);t.$$.on_destroy?t.$$.on_destroy.push(...i):He(i),t.$$.on_mount=[]}),r.forEach(Gn)}function jt(t,e){const n=t.$$;n.fragment!==null&&(xl(n.after_update),He(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function El(t,e){t.$$.dirty[0]===-1&&(me.push(t),vl(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ot(t,e,n,o,r,i,s=null,l=[-1]){const c=Ve;Ue(t);const a=t.$$={fragment:null,ctx:[],props:i,update:it,not_equal:r,bound:fr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:fr(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&r(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&El(t,h)),d}):[],a.update(),f=!0,He(a.before_update),a.fragment=o?o(a.ctx):!1,e.target){if(e.hydrate){const h=ml(e.target);a.fragment&&a.fragment.l(h),h.forEach(ct)}else a.fragment&&a.fragment.c();e.intro&&M(t.$$.fragment),Ft(t,e.target,e.anchor),br()}Ue(c)}class Tt{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){jt(this,1),this.$destroy=it}$on(e,n){if(!zn(n))return it;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(e){this.$$set&&!dl(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Sl="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Sl);function Ol(t){let e,n,o,r,i;return{c(){e=yt("button"),D(e,"aria-label",n=t[3]?t[3]:null),D(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],D(e,"tabindex","0"),D(e,"type","button")},m(s,l){dt(s,e,l),e.innerHTML=t[5],r||(i=un(e,"click",function(){zn(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&D(e,"aria-label",n),l&18&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&D(e,"class",o),l&4&&(e.disabled=t[2])},i:it,o:it,d(s){s&&ct(e),r=!1,i()}}}function Tl(t,e,n){let{config:o,step:r}=e,i,s,l,c,a,f;function h(d){return kt(d)?d=d.call(r):d}return t.$$set=d=>{"config"in d&&n(6,o=d.config),"step"in d&&n(7,r=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=o.action?o.action.bind(r.tour):null),n(1,s=o.classes),n(2,l=o.disabled?h(o.disabled):!1),n(3,c=o.label?h(o.label):null),n(4,a=o.secondary),n(5,f=o.text?h(o.text):null))},[i,s,l,c,a,f,o,r]}class $l extends Tt{constructor(e){super(),Ot(this,e,Tl,Ol,St,{config:6,step:7})}}function vr(t,e,n){const o=t.slice();return o[2]=e[n],o}function wr(t){let e,n,o=yr(t[1]),r=[];for(let s=0;s<o.length;s+=1)r[s]=xr(vr(t,o,s));const i=s=>Y(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=pl()},m(s,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(s,l);dt(s,e,l),n=!0},p(s,l){if(l&3){o=yr(s[1]);let c;for(c=0;c<o.length;c+=1){const a=vr(s,o,c);r[c]?(r[c].p(a,l),M(r[c],1)):(r[c]=xr(a),r[c].c(),M(r[c],1),r[c].m(e.parentNode,e))}for(Xt(),c=o.length;c<r.length;c+=1)i(c);Gt()}},i(s){if(!n){for(let l=0;l<o.length;l+=1)M(r[l]);n=!0}},o(s){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)Y(r[l]);n=!1},d(s){s&&ct(e),hl(r,s)}}}function xr(t){let e,n;return e=new $l({props:{config:t[2],step:t[0]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.config=o[2]),r&1&&(i.step=o[0]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Cl(t){let e,n,o=t[1]&&wr(t);return{c(){e=yt("footer"),o&&o.c(),D(e,"class","shepherd-footer")},m(r,i){dt(r,e,i),o&&o.m(e,null),n=!0},p(r,[i]){r[1]?o?(o.p(r,i),i&2&&M(o,1)):(o=wr(r),o.c(),M(o,1),o.m(e,null)):o&&(Xt(),Y(o,1,1,()=>{o=null}),Gt())},i(r){n||(M(o),n=!0)},o(r){Y(o),n=!1},d(r){r&&ct(e),o&&o.d()}}}function Rl(t,e,n){let o,{step:r}=e;return t.$$set=i=>{"step"in i&&n(0,r=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,o=r.options.buttons)},[r,o]}class Il extends Tt{constructor(e){super(),Ot(this,e,Rl,Cl,St,{step:0})}}function Al(t){let e,n,o,r,i;return{c(){e=yt("button"),n=yt("span"),n.textContent="×",D(n,"aria-hidden","true"),D(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),D(e,"class","shepherd-cancel-icon"),D(e,"type","button")},m(s,l){dt(s,e,l),pe(e,n),r||(i=un(e,"click",t[1]),r=!0)},p(s,[l]){l&1&&o!==(o=s[0].label?s[0].label:"Close Tour")&&D(e,"aria-label",o)},i:it,o:it,d(s){s&&ct(e),r=!1,i()}}}function Pl(t,e,n){let{cancelIcon:o,step:r}=e;const i=s=>{s.preventDefault(),r.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,o=s.cancelIcon),"step"in s&&n(2,r=s.step)},[o,i,r]}class kl extends Tt{constructor(e){super(),Ot(this,e,Pl,Al,St,{cancelIcon:0,step:2})}}function Ml(t){let e;return{c(){e=yt("h3"),D(e,"id",t[1]),D(e,"class","shepherd-title")},m(n,o){dt(n,e,o),t[3](e)},p(n,[o]){o&2&&D(e,"id",n[1])},i:it,o:it,d(n){n&&ct(e),t[3](null)}}}function Ll(t,e,n){let{labelId:o,element:r,title:i}=e;Jn(()=>{kt(i)&&n(2,i=i()),n(0,r.innerHTML=i,r)});function s(l){be[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"labelId"in l&&n(1,o=l.labelId),"element"in l&&n(0,r=l.element),"title"in l&&n(2,i=l.title)},[r,o,i,s]}class Dl extends Tt{constructor(e){super(),Ot(this,e,Ll,Ml,St,{labelId:1,element:0,title:2})}}function _r(t){let e,n;return e=new Dl({props:{labelId:t[0],title:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.labelId=o[0]),r&4&&(i.title=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Er(t){let e,n;return e=new kl({props:{cancelIcon:t[3],step:t[1]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&8&&(i.cancelIcon=o[3]),r&2&&(i.step=o[1]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Fl(t){let e,n,o,r=t[2]&&_r(t),i=t[3]&&t[3].enabled&&Er(t);return{c(){e=yt("header"),r&&r.c(),n=an(),i&&i.c(),D(e,"class","shepherd-header")},m(s,l){dt(s,e,l),r&&r.m(e,null),pe(e,n),i&&i.m(e,null),o=!0},p(s,[l]){s[2]?r?(r.p(s,l),l&4&&M(r,1)):(r=_r(s),r.c(),M(r,1),r.m(e,n)):r&&(Xt(),Y(r,1,1,()=>{r=null}),Gt()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&M(i,1)):(i=Er(s),i.c(),M(i,1),i.m(e,null)):i&&(Xt(),Y(i,1,1,()=>{i=null}),Gt())},i(s){o||(M(r),M(i),o=!0)},o(s){Y(r),Y(i),o=!1},d(s){s&&ct(e),r&&r.d(),i&&i.d()}}}function jl(t,e,n){let{labelId:o,step:r}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,o=l.labelId),"step"in l&&n(1,r=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=r.options.title),n(3,s=r.options.cancelIcon))},[o,r,i,s]}class Bl extends Tt{constructor(e){super(),Ot(this,e,jl,Fl,St,{labelId:0,step:1})}}function Wl(t){let e;return{c(){e=yt("div"),D(e,"class","shepherd-text"),D(e,"id",t[1])},m(n,o){dt(n,e,o),t[3](e)},p(n,[o]){o&2&&D(e,"id",n[1])},i:it,o:it,d(n){n&&ct(e),t[3](null)}}}function Nl(t,e,n){let{descriptionId:o,element:r,step:i}=e;Jn(()=>{let{text:l}=i.options;kt(l)&&(l=l.call(i)),je(l)?r.appendChild(l):n(0,r.innerHTML=l,r)});function s(l){be[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"descriptionId"in l&&n(1,o=l.descriptionId),"element"in l&&n(0,r=l.element),"step"in l&&n(2,i=l.step)},[r,o,i,s]}class Hl extends Tt{constructor(e){super(),Ot(this,e,Nl,Wl,St,{descriptionId:1,element:0,step:2})}}function Sr(t){let e,n;return e=new Bl({props:{labelId:t[1],step:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.labelId=o[1]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Or(t){let e,n;return e=new Hl({props:{descriptionId:t[0],step:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.descriptionId=o[0]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Tr(t){let e,n;return e=new Il({props:{step:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Vl(t){let e,n=!G(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o,r=!G(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&Sr(t),a=r&&Or(t),f=s&&Tr(t);return{c(){e=yt("div"),c&&c.c(),o=an(),a&&a.c(),i=an(),f&&f.c(),D(e,"class","shepherd-content")},m(h,d){dt(h,e,d),c&&c.m(e,null),pe(e,o),a&&a.m(e,null),pe(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!G(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&M(c,1)):(c=Sr(h),c.c(),M(c,1),c.m(e,o)):c&&(Xt(),Y(c,1,1,()=>{c=null}),Gt()),d&4&&(r=!G(h[2].options.text)),r?a?(a.p(h,d),d&4&&M(a,1)):(a=Or(h),a.c(),M(a,1),a.m(e,i)):a&&(Xt(),Y(a,1,1,()=>{a=null}),Gt()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&M(f,1)):(f=Tr(h),f.c(),M(f,1),f.m(e,null)):f&&(Xt(),Y(f,1,1,()=>{f=null}),Gt())},i(h){l||(M(c),M(a),M(f),l=!0)},o(h){Y(c),Y(a),Y(f),l=!1},d(h){h&&ct(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function Ul(t,e,n){let{descriptionId:o,labelId:r,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,o=s.descriptionId),"labelId"in s&&n(1,r=s.labelId),"step"in s&&n(2,i=s.step)},[o,r,i]}class ql extends Tt{constructor(e){super(),Ot(this,e,Ul,Vl,St,{descriptionId:0,labelId:1,step:2})}}function $r(t){let e;return{c(){e=yt("div"),D(e,"class","shepherd-arrow"),D(e,"data-popper-arrow","")},m(n,o){dt(n,e,o)},d(n){n&&ct(e)}}}function Yl(t){let e,n,o,r,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&$r();o=new ql({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":r=G(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=fl(h,f[d]);return{c(){e=yt("div"),a&&a.c(),n=an(),Zt(o.$$.fragment),pr(e,h),ge(e,"shepherd-has-cancel-icon",t[5]),ge(e,"shepherd-has-title",t[6]),ge(e,"shepherd-element",!0)},m(d,p){dt(d,e,p),a&&a.m(e,null),pe(e,n),Ft(o,e,null),t[13](e),s=!0,l||(c=un(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=$r(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),o.$set(m),pr(e,h=_l(f,[(!s||p&20&&r!==(r=G(d[4].options.text)?null:d[2]))&&{"aria-describedby":r},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),ge(e,"shepherd-has-cancel-icon",d[5]),ge(e,"shepherd-has-title",d[6]),ge(e,"shepherd-element",!0)},i(d){s||(M(o.$$.fragment,d),s=!0)},o(d){Y(o.$$.fragment,d),s=!1},d(d){d&&ct(e),a&&a.d(),jt(o),t[13](null),l=!1,c()}}}const Kl=9,zl=27,Jl=37,Xl=39;function Cr(t){return t.split(" ").filter(e=>!!e.length)}function Gl(t,e,n){let{classPrefix:o,element:r,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>r;bl(()=>{n(1,h={[`data-${o}shepherd-step-id`]:f.id}),n(9,l=r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),Jn(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(Be(g)){const O=Cr(g);O.length&&r.classList.remove(...O)}}function x(g){if(Be(g)){const O=Cr(g);O.length&&r.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case Kl:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case zl:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case Jl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case Xl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){be[g?"unshift":"push"](()=>{r=g,n(0,r)})}return t.$$set=g=>{"classPrefix"in g&&n(11,o=g.classPrefix),"element"in g&&n(0,r=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[r,h,i,c,f,d,p,S,s,l,a,o,y,b]}class Zl extends Tt{constructor(e){super(),Ot(this,e,Gl,Yl,St,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class Qn extends kn{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?zo(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,Fn(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){il(this),je(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=ys(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return kt(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new Zl({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();kt(this.options.scrollToHandler)?this.options.scrollToHandler(n):Qi(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e.classes?e.classes:"",r=n&&n.classes?n.classes:"",i=[...o.split(" "),...r.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=Ln({},n||{}),this.options=Object.assign({arrow:!0},n,e,rl(n,e));const{when:o}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Xo()}`,o&&Object.keys(o).forEach(r=>{this.on(r,o[r],this)})}_setupElements(){G(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&gs(this),ol(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),o=this.target||document.body;o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function Ql(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&je(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function tc({width:t,height:e,x:n=0,y:o=0,r=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof r=="number"?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${o}a${l},${l},0,0,0-${l},${l}V${e+o-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${o+c}a${c},${c},0,0,0-${c}-${c}Z`}function ec(t){let e,n,o,r,i;return{c(){e=dr("svg"),n=dr("path"),D(n,"d",t[2]),D(e,"class",o=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){dt(s,e,l),pe(e,n),t[11](e),r||(i=un(e,"touchmove",t[3]),r=!0)},p(s,[l]){l&4&&D(n,"d",s[2]),l&2&&o!==(o=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&D(e,"class",o)},i:it,o:it,d(s){s&&ct(e),t[11](null),r=!1,i()}}}function Rr(t){if(!t)return null;const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return n!=="hidden"&&n!=="visible"&&t.scrollHeight>=t.clientHeight?t:Rr(t.parentElement)}function nc(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var o;const s=(o=n)==null?void 0:o.frameElement;if(s){var r,i;const l=s.getBoundingClientRect();e.top+=l.top+((r=l.scrollTop)!=null?r:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function oc(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,r=n.bottom||o+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;o=Math.max(o,l),r=Math.min(r,c)}const i=Math.max(r-o,0);return{y:o,height:i}}function rc(t,e,n){let{element:o,openingProperties:r}=e,i=!1,s,l;a();const c=()=>o;function a(){n(4,r={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,P=0,V,I){if(I){const{y:B,height:N}=oc(I,V),{x:U,width:A,left:$}=I.getBoundingClientRect();n(4,r={width:A+b*2,height:N+b*2,x:(U||$)+O-b,y:B+P-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:P=0,modalOverlayOpeningYOffset:V=0}=b.options,I=nc(b.target),B=Rr(b.target),N=()=>{s=void 0,h(g,O,P+I.left,V+I.top,B,b.target),s=requestAnimationFrame(N)};N(),_()}function S(b){be[b?"unshift":"push"](()=>{o=b,n(0,o)})}return t.$$set=b=>{"element"in b&&n(0,o=b.element),"openingProperties"in b&&n(4,r=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=tc(r))},[o,i,l,y,r,c,a,f,h,d,p,S]}class ic extends Tt{constructor(e){super(),Ot(this,e,rc,ec,St,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}class sc extends kn{constructor(){super(),this.activeTour=void 0,Fn(this)}}class lc extends kn{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,Fn(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=zo(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(r=>{(i=>{this.on(i,s=>{s=s||{},s.tour=this,Qt.trigger(i,s)})})(r)}),this._setTourID(e.id),this}addStep(e,n){let o=e;return o instanceof Qn?o.tour=this:o=new Qn(this,o),G(n)?this.steps.push(o):this.steps.splice(n,0,o),o}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;kt(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return Qt.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((o,r)=>{if(o.id===e)return o.isOpen()&&o.hide(),o.destroy(),this.steps.splice(r,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const o=Be(e)?this.getById(e):this.steps[e];o&&(this._updateStateBeforeShow(),kt(o.options.showOn)&&!o.options.showOn()?this._skipStep(o,n):(this.trigger("show",{step:o,previous:this.currentStep}),this.currentStep=o,o.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(o=>o.destroy()),Ql(this),this.trigger(e,{index:n}),Qt.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const o=document.querySelector(".shepherd-modal-overlay-container");o&&(o.remove(),this.modal=null)}je(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Qt.activeTour=this}setupModal(){this.modal=new ic({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const o=this.steps.indexOf(e);if(o===this.steps.length-1)this.complete();else{const r=n?o+1:o-1;this.show(r,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",o=e||Xo();this.id=`${n}--${o}`}}const Qt=new sc,Ir=typeof window>"u";Qt.Step=Ir?ms:Qn,Qt.Tour=Ir?bs:lc;var cc=Object.defineProperty,Ar=t=>{throw TypeError(t)},ac=(t,e,n)=>e in t?cc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,we=(t,e,n)=>ac(t,typeof e!="symbol"?e+"":e,n),Pr=(t,e,n)=>e.has(t)||Ar("Cannot "+n),$t=(t,e,n)=>(Pr(t,e,"read from private field"),n?n.call(t):e.get(t)),dn=(t,e,n)=>e.has(t)?Ar("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),hn=(t,e,n,o)=>(Pr(t,e,"write to private field"),e.set(t,n),n);/*! shepherd.js 13.0.0 */function uc(t){return t instanceof Element}function qe(t){return t instanceof HTMLElement}function Bt(t){return typeof t=="function"}function Ye(t){return typeof t=="string"}function Z(t){return t===void 0}class to{on(e,n,o,r=!1){var i;return Z(this.bindings)&&(this.bindings={}),Z(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:o,once:r}),this}once(e,n,o){return this.on(e,n,o,!0)}off(e,n){if(Z(this.bindings)||Z(this.bindings[e]))return this;if(Z(n))delete this.bindings[e];else{var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{if(r.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!Z(this.bindings)&&this.bindings[e]){var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{const{ctx:s,handler:l,once:c}=r,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function tt(){return tt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},tt.apply(null,arguments)}function kr(t,e){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;n[o]=t[o]}return n}const Wt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Wt.defaultMerge;function fc(t,e){return e}function Mr(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:pc(t)?1:t instanceof Set?3:t instanceof Map?4:5}function dc(t){const e=new Set;for(const n of t)for(const o of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(o);return e}function hc(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function Lr(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const Dr=new Set(["[object Object]","[object Module]"]);function pc(t){if(!Dr.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!Dr.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function gc(t,e,n){const o={};for(const r of dc(t)){const i=[];for(const c of t)hc(c,r)&&i.push(c[r]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:r,parents:t}),l=jr(i,e,s);l!==Wt.skip&&(r==="__proto__"?Object.defineProperty(o,r,{value:l,configurable:!0,enumerable:!0,writable:!0}):o[r]=l)}return o}function mc(t){return t.flat()}function bc(t){return new Set(Lr(t))}function yc(t){return new Map(Lr(t))}function Fr(t){return t.at(-1)}var eo=Object.freeze({__proto__:null,mergeArrays:mc,mergeMaps:yc,mergeOthers:Fr,mergeRecords:gc,mergeSets:bc});function no(...t){return vc({})(...t)}function vc(t,e){const n=wc(t,o);function o(...r){return jr(r,n,e)}return o}function wc(t,e){var n,o;return{defaultMergeFunctions:eo,mergeFunctions:tt({},eo,Object.fromEntries(Object.entries(t).filter(([r,i])=>Object.hasOwn(eo,r)).map(([r,i])=>i===!1?[r,Fr]:[r,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:fc,deepmerge:e,useImplicitDefaultMerging:(o=t.enableImplicitDefaultMerging)!=null?o:!1,actions:Wt}}function jr(t,e,n){if(t.length===0)return;if(t.length===1)return oo(t,e,n);const o=Mr(t[0]);if(o!==0&&o!==5){for(let r=1;r<t.length;r++)if(Mr(t[r])!==o)return oo(t,e,n)}switch(o){case 1:return xc(t,e,n);case 2:return _c(t,e,n);case 3:return Ec(t,e,n);case 4:return Sc(t,e,n);default:return oo(t,e,n)}}function xc(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);return o===Wt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):o}function _c(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);return o===Wt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):o}function Ec(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);return o===Wt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):o}function Sc(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);return o===Wt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):o}function oo(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return o===Wt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):o}function ro(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],r=t[o];o!=="constructor"&&typeof r=="function"&&(t[o]=r.bind(t))}return t}function Oc(t,e){return n=>{if(t.isOpen()){const o=t.el&&n.currentTarget===t.el;(!Z(e)&&n.currentTarget.matches(e)||o)&&t.tour.next()}}}function Tc(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const o=Oc(t,n);let r=null;if(!Z(n)&&(r=document.querySelector(n),!r))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);r?(r.addEventListener(e,o),t.on("destroy",()=>r.removeEventListener(e,o))):(document.body.addEventListener(e,o,!0),t.on("destroy",()=>document.body.removeEventListener(e,o,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class $c{constructor(e){}}class Cc{constructor(e,n){}}function Br(t){return!Ye(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function Rc(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(Bt(n.element)&&(n.element=n.element.call(t)),Ye(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Wr(t){return t==null?!0:!t.element||!t.on}function Nr(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const xe=Math.min,te=Math.max,pn=Math.round,gn=Math.floor,Nt=t=>({x:t,y:t}),Ic={left:"right",right:"left",bottom:"top",top:"bottom"},Ac={start:"end",end:"start"};function io(t,e,n){return te(t,xe(e,n))}function _e(t,e){return typeof t=="function"?t(e):t}function ee(t){return t.split("-")[0]}function mn(t){return t.split("-")[1]}function so(t){return t==="x"?"y":"x"}function lo(t){return t==="y"?"height":"width"}function bn(t){return["top","bottom"].includes(ee(t))?"y":"x"}function co(t){return so(bn(t))}function Pc(t,e,n){n===void 0&&(n=!1);const o=mn(t),r=co(t),i=lo(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=yn(s)),[s,yn(s)]}function kc(t){const e=yn(t);return[ao(t),e,ao(e)]}function ao(t){return t.replace(/start|end/g,e=>Ac[e])}function Mc(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function Lc(t,e,n,o){const r=mn(t);let i=Mc(ee(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(ao)))),i}function yn(t){return t.replace(/left|right|bottom|top/g,e=>Ic[e])}function Dc(t){return tt({top:0,right:0,bottom:0,left:0},t)}function Hr(t){return typeof t!="number"?Dc(t):{top:t,right:t,bottom:t,left:t}}function vn(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}const Fc=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],jc=["mainAxis","crossAxis","limiter"];function Vr(t,e,n){let{reference:o,floating:r}=t;const i=bn(e),s=co(e),l=lo(s),c=ee(e),a=i==="y",f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-r.width,y:h};break;default:p={x:o.x,y:o.y}}switch(mn(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const Bc=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Vr(a,o,c),d=o,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=tt({},p,{[_]:tt({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):g.rects),{x:f,y:h}=Vr(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:p}};async function Ur(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=_e(e,t),m=Hr(p),y=l[d?h==="floating"?"reference":"floating":h],_=vn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),w=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},b=vn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:c}):w);return{top:(_.top-b.top+m.top)/S.y,bottom:(b.bottom-_.bottom+m.bottom)/S.y,left:(_.left-b.left+m.left)/S.x,right:(b.right-_.right+m.right)/S.x}}const Wc=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=_e(t,e)||{};if(a==null)return{};const h=Hr(f),d={x:n,y:o},p=co(r),m=lo(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=O?O[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=l.floating[S]||i.floating[m]);const V=b/2-g/2,I=P/2-y[m]/2-1,B=xe(h[w],I),N=xe(h[x],I),U=B,A=P-y[m]-N,$=P/2-y[m]/2+V,q=io(U,$,A),H=!c.arrow&&mn(r)!=null&&$!==q&&i.reference[m]/2-($<U?B:N)-y[m]/2<0,W=H?$<U?$-U:$-A:0;return{[p]:d[p]+W,data:tt({[p]:q,centerOffset:$-q-W},H&&{alignmentOffset:W}),reset:H}}}),Nc=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:a}=e,f=_e(t,e),{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:_=!0}=f,w=kr(f,Fc);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=ee(r),S=ee(l)===l,b=await(c.isRTL==null?void 0:c.isRTL(a.floating)),g=p||(S||!_?[yn(l)]:kc(l));!p&&y!=="none"&&g.push(...Lc(l,_,y,b));const O=[l,...g],P=await Ur(e,w),V=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&V.push(P[x]),d){const A=Pc(r,s,b);V.push(P[A[0]],P[A[1]])}if(I=[...I,{placement:r,overflows:V}],!V.every(A=>A<=0)){var B,N;const A=(((B=i.flip)==null?void 0:B.index)||0)+1,$=O[A];if($)return{data:{index:A,overflows:I},reset:{placement:$}};let q=(N=I.filter(H=>H.overflows[0]<=0).sort((H,W)=>H.overflows[1]-W.overflows[1])[0])==null?void 0:N.placement;if(!q)switch(m){case"bestFit":{var U;const H=(U=I.map(W=>[W.placement,W.overflows.filter(et=>et>0).reduce((et,_t)=>et+_t,0)]).sort((W,et)=>W[1]-et[1])[0])==null?void 0:U[0];H&&(q=H);break}case"initialPlacement":q=l;break}if(r!==q)return{reset:{placement:q}}}return{}}}},Hc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,i=_e(t,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x,y:S}=w;return{x,y:S}}}}=i,a=kr(i,jc),f={x:n,y:o},h=await Ur(e,a),d=bn(ee(r)),p=so(d);let m=f[p],y=f[d];if(s){const w=p==="y"?"top":"left",x=p==="y"?"bottom":"right",S=m+h[w],b=m-h[x];m=io(S,m,b)}if(l){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",S=y+h[w],b=y-h[x];y=io(S,y,b)}const _=c.fn(tt({},e,{[p]:m,[d]:y}));return tt({},_,{data:{x:_.x-n,y:_.y-o}})}}},Vc=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:l=0,mainAxis:c=!0,crossAxis:a=!0}=_e(t,e),f={x:n,y:o},h=bn(r),d=so(h);let p=f[d],m=f[h];const y=_e(l,e),_=typeof y=="number"?{mainAxis:y,crossAxis:0}:tt({mainAxis:0,crossAxis:0},y);if(c){const S=d==="y"?"height":"width",b=i.reference[d]-i.floating[S]+_.mainAxis,g=i.reference[d]+i.reference[S]-_.mainAxis;p<b?p=b:p>g&&(p=g)}if(a){var w,x;const S=d==="y"?"width":"height",b=["top","left"].includes(ee(r)),g=i.reference[h]-i.floating[S]+(b&&((w=s.offset)==null?void 0:w[h])||0)+(b?0:_.crossAxis),O=i.reference[h]+i.reference[S]+(b?0:((x=s.offset)==null?void 0:x[h])||0)-(b?_.crossAxis:0);m<g?m=g:m>O&&(m=O)}return{[d]:p,[h]:m}}}};function Ee(t){return qr(t)?(t.nodeName||"").toLowerCase():"#document"}function st(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ct(t){var e;return(e=(qr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qr(t){return t instanceof Node||t instanceof st(t).Node}function vt(t){return t instanceof Element||t instanceof st(t).Element}function wt(t){return t instanceof HTMLElement||t instanceof st(t).HTMLElement}function Yr(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof st(t).ShadowRoot}function Ke(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function Uc(t){return["table","td","th"].includes(Ee(t))}function uo(t){const e=fo(),n=ht(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function qc(t){let e=Ht(t);for(;wt(e)&&!Se(e);){if(uo(e))return e;e=Ht(e)}return null}function fo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Se(t){return["html","body","#document"].includes(Ee(t))}function ht(t){return st(t).getComputedStyle(t)}function wn(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ht(t){if(Ee(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Yr(t)&&t.host||Ct(t);return Yr(e)?e.host:e}function Kr(t){const e=Ht(t);return Se(e)?t.ownerDocument?t.ownerDocument.body:t.body:wt(e)&&Ke(e)?e:Kr(e)}function ze(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Kr(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=st(r);return i?e.concat(s,s.visualViewport||[],Ke(r)?r:[],s.frameElement&&n?ze(s.frameElement):[]):e.concat(r,ze(r,[],n))}function zr(t){const e=ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=wt(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=pn(n)!==i||pn(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function ho(t){return vt(t)?t:t.contextElement}function Oe(t){const e=ho(t);if(!wt(e))return Nt(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=zr(e);let s=(i?pn(n.width):n.width)/o,l=(i?pn(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Yc=Nt(0);function Jr(t){const e=st(t);return!fo()||!e.visualViewport?Yc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Kc(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==st(t)?!1:e}function ne(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=ho(t);let s=Nt(1);e&&(o?vt(o)&&(s=Oe(o)):s=Oe(t));const l=Kc(i,n,o)?Jr(i):Nt(0);let c=(r.left+l.x)/s.x,a=(r.top+l.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(i){const d=st(i),p=o&&vt(o)?st(o):o;let m=d,y=m.frameElement;for(;y&&o&&p!==m;){const _=Oe(y),w=y.getBoundingClientRect(),x=ht(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=st(y),y=m.frameElement}}return vn({width:f,height:h,x:c,y:a})}const zc=[":popover-open",":modal"];function po(t){return zc.some(e=>{try{return t.matches(e)}catch{return!1}})}function Jc(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=Ct(o),l=e?po(e.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=Nt(1);const f=Nt(0),h=wt(o);if((h||!h&&!i)&&((Ee(o)!=="body"||Ke(s))&&(c=wn(o)),wt(o))){const d=ne(o);a=Oe(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Xc(t){return Array.from(t.getClientRects())}function Xr(t){return ne(Ct(t)).left+wn(t).scrollLeft}function Gc(t){const e=Ct(t),n=wn(t),o=t.ownerDocument.body,r=te(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=te(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Xr(t);const l=-n.scrollTop;return ht(o).direction==="rtl"&&(s+=te(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function Zc(t,e){const n=st(t),o=Ct(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const a=fo();(!a||a&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function Qc(t,e){const n=ne(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=wt(t)?Oe(t):Nt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,a=o*i.y;return{width:s,height:l,x:c,y:a}}function Gr(t,e,n){let o;if(e==="viewport")o=Zc(t,n);else if(e==="document")o=Gc(Ct(t));else if(vt(e))o=Qc(e,n);else{const r=Jr(t);o=tt({},e,{x:e.x-r.x,y:e.y-r.y})}return vn(o)}function Zr(t,e){const n=Ht(t);return n===e||!vt(n)||Se(n)?!1:ht(n).position==="fixed"||Zr(n,e)}function ta(t,e){const n=e.get(t);if(n)return n;let o=ze(t,[],!1).filter(l=>vt(l)&&Ee(l)!=="body"),r=null;const i=ht(t).position==="fixed";let s=i?Ht(t):t;for(;vt(s)&&!Se(s);){const l=ht(s),c=uo(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&r&&["absolute","fixed"].includes(r.position)||Ke(s)&&!c&&Zr(t,s))?o=o.filter(a=>a!==s):r=l,s=Ht(s)}return e.set(t,o),o}function ea(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[...n==="clippingAncestors"?po(e)?[]:ta(e,this._c):[].concat(n),o],s=i[0],l=i.reduce((c,a)=>{const f=Gr(e,a,r);return c.top=te(f.top,c.top),c.right=xe(f.right,c.right),c.bottom=xe(f.bottom,c.bottom),c.left=te(f.left,c.left),c},Gr(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function na(t){const{width:e,height:n}=zr(t);return{width:e,height:n}}function oa(t,e,n){const o=wt(e),r=Ct(e),i=n==="fixed",s=ne(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Nt(0);if(o||!o&&!i)if((Ee(e)!=="body"||Ke(r))&&(l=wn(e)),o){const h=ne(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else r&&(c.x=Xr(r));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function go(t){return ht(t).position==="static"}function Qr(t,e){return!wt(t)||ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function ti(t,e){const n=st(t);if(po(t))return n;if(!wt(t)){let r=Ht(t);for(;r&&!Se(r);){if(vt(r)&&!go(r))return r;r=Ht(r)}return n}let o=Qr(t,e);for(;o&&Uc(o)&&go(o);)o=Qr(o,e);return o&&Se(o)&&go(o)&&!uo(o)?n:o||qc(t)||n}const ra=async function(t){const e=this.getOffsetParent||ti,n=this.getDimensions,o=await n(t.floating);return{reference:oa(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ia(t){return ht(t).direction==="rtl"}const sa={convertOffsetParentRelativeRectToViewportRelativeRect:Jc,getDocumentElement:Ct,getClippingRect:ea,getOffsetParent:ti,getElementRects:ra,getClientRects:Xc,getDimensions:na,getScale:Oe,isElement:vt,isRTL:ia};function la(t,e){let n=null,o;const r=Ct(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=gn(f),m=gn(r.clientWidth-(a+h)),y=gn(r.clientHeight-(f+d)),_=gn(a),w={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:te(0,xe(1,c))||1};let x=!0;function S(b){const g=b[0].intersectionRatio;if(g!==c){if(!x)return s();g?s(!1,g):o=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,tt({},w,{root:r.ownerDocument}))}catch{n=new IntersectionObserver(S,w)}n.observe(t)}return s(!0),i}function ca(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=ho(t),f=r||i?[...a?ze(a):[],...ze(e)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?la(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?ne(t):null;c&&_();function _(){const w=ne(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const aa=Hc,ua=Nc,fa=Wc,da=Vc,ha=(t,e,n)=>{const o=new Map,r=tt({platform:sa},n),i=tt({},r.platform,{_c:o});return Bc(t,e,tt({},r,{platform:i}))};function pa(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const o=wa(e,t),r=Wr(e);return r&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=ca(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}ba(n,t,o,r)}),t.target=e.element,o}function ga(t,e){return{floatingUIOptions:no(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function ma(t){t.cleanup&&t.cleanup(),t.cleanup=null}function ba(t,e,n,o){return ha(t,e.el,n).then(ya(e,o)).then(r=>new Promise(i=>{setTimeout(()=>i(r),300)})).then(r=>{r!=null&&r.el&&r.el.focus({preventScroll:!0})})}function ya(t,e){return({x:n,y:o,placement:r,middlewareData:i})=>(t.el&&(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:`${n}px`,top:`${o}px`}),t.el.dataset.popperPlacement=r,va(t.el,i)),t)}function va(t,e){const n=t.querySelector(".shepherd-arrow");if(qe(n)&&e.arrow){const{x:o,y:r}=e.arrow;Object.assign(n.style,{left:o!=null?`${o}px`:"",top:r!=null?`${r}px`:""})}}function wa(t,e){const n={strategy:"absolute"};n.middleware=[];const o=xa(e);return Wr(t)||(n.middleware.push(ua(),aa({limiter:da(),crossAxis:!0})),o&&n.middleware.push(fa({element:o})),n.placement=t.on),no(e.options.floatingUIOptions||{},n)}function xa(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function lt(){}function _a(t,e){for(const n in e)t[n]=e[n];return t}function ei(t){return t()}function ni(){return Object.create(null)}function Je(t){t.forEach(ei)}function mo(t){return typeof t=="function"}function Rt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Ea(t){return Object.keys(t).length===0}function Te(t,e){t.appendChild(e)}function pt(t,e,n){t.insertBefore(e,n||null)}function at(t){t.parentNode&&t.parentNode.removeChild(t)}function Sa(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function xt(t){return document.createElement(t)}function oi(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ri(t){return document.createTextNode(t)}function xn(){return ri(" ")}function Oa(){return ri("")}function _n(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function F(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Ta=["width","height"];function ii(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)e[o]==null?t.removeAttribute(o):o==="style"?t.style.cssText=e[o]:o==="__value"?t.value=t[o]=e[o]:n[o]&&n[o].set&&Ta.indexOf(o)===-1?t[o]=e[o]:F(t,o,e[o])}function $a(t){return Array.from(t.childNodes)}function $e(t,e,n){t.classList.toggle(e,!!n)}let Xe;function Ge(t){Xe=t}function si(){if(!Xe)throw new Error("Function called outside component initialization");return Xe}function Ca(t){si().$$.on_mount.push(t)}function bo(t){si().$$.after_update.push(t)}const Ce=[],Re=[];let Ie=[];const li=[],Ra=Promise.resolve();let yo=!1;function Ia(){yo||(yo=!0,Ra.then(ci))}function vo(t){Ie.push(t)}const wo=new Set;let Ae=0;function ci(){if(Ae!==0)return;const t=Xe;do{try{for(;Ae<Ce.length;){const e=Ce[Ae];Ae++,Ge(e),Aa(e.$$)}}catch(e){throw Ce.length=0,Ae=0,e}for(Ge(null),Ce.length=0,Ae=0;Re.length;)Re.pop()();for(let e=0;e<Ie.length;e+=1){const n=Ie[e];wo.has(n)||(wo.add(n),n())}Ie.length=0}while(Ce.length);for(;li.length;)li.pop()();yo=!1,wo.clear(),Ge(t)}function Aa(t){if(t.fragment!==null){t.update(),Je(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(vo)}}function Pa(t){const e=[],n=[];Ie.forEach(o=>t.indexOf(o)===-1?e.push(o):n.push(o)),n.forEach(o=>o()),Ie=e}const En=new Set;let oe;function re(){oe={r:0,c:[],p:oe}}function ie(){oe.r||Je(oe.c),oe=oe.p}function L(t,e){t&&t.i&&(En.delete(t),t.i(e))}function K(t,e,n,o){if(t&&t.o){if(En.has(t))return;En.add(t),oe.c.push(()=>{En.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}else o&&o()}function ai(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function ka(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(o[c]=1);for(const c in l)r[c]||(n[c]=l[c],r[c]=1);t[i]=l}else for(const c in s)r[c]=1}for(const s in o)s in n||(n[s]=void 0);return n}function se(t){t&&t.c()}function Vt(t,e,n){const{fragment:o,after_update:r}=t.$$;o&&o.m(e,n),vo(()=>{const i=t.$$.on_mount.map(ei).filter(mo);t.$$.on_destroy?t.$$.on_destroy.push(...i):Je(i),t.$$.on_mount=[]}),r.forEach(vo)}function Ut(t,e){const n=t.$$;n.fragment!==null&&(Pa(n.after_update),Je(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ma(t,e){t.$$.dirty[0]===-1&&(Ce.push(t),Ia(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function It(t,e,n,o,r,i,s=null,l=[-1]){const c=Xe;Ge(t);const a=t.$$={fragment:null,ctx:[],props:i,update:lt,not_equal:r,bound:ni(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:ni(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&r(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&Ma(t,h)),d}):[],a.update(),f=!0,Je(a.before_update),a.fragment=o?o(a.ctx):!1,e.target){if(e.hydrate){const h=$a(e.target);a.fragment&&a.fragment.l(h),h.forEach(at)}else a.fragment&&a.fragment.c();e.intro&&L(t.$$.fragment),Vt(t,e.target,e.anchor),ci()}Ge(c)}class At{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){Ut(this,1),this.$destroy=lt}$on(e,n){if(!mo(n))return lt;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(e){this.$$set&&!Ea(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const La="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(La);function Da(t){let e,n,o,r,i;return{c(){e=xt("button"),F(e,"aria-label",n=t[3]?t[3]:null),F(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],F(e,"tabindex","0"),F(e,"type","button")},m(s,l){pt(s,e,l),e.innerHTML=t[5],r||(i=_n(e,"click",function(){mo(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&F(e,"aria-label",n),l&18&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&F(e,"class",o),l&4&&(e.disabled=t[2])},i:lt,o:lt,d(s){s&&at(e),r=!1,i()}}}function Fa(t,e,n){let{config:o,step:r}=e,i,s,l,c,a,f;function h(d){return Bt(d)?d=d.call(r):d}return t.$$set=d=>{"config"in d&&n(6,o=d.config),"step"in d&&n(7,r=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=o.action?o.action.bind(r.tour):null),n(1,s=o.classes),n(2,l=o.disabled?h(o.disabled):!1),n(3,c=o.label?h(o.label):null),n(4,a=o.secondary),n(5,f=o.text?h(o.text):null))},[i,s,l,c,a,f,o,r]}class ja extends At{constructor(e){super(),It(this,e,Fa,Da,Rt,{config:6,step:7})}}function ui(t,e,n){const o=t.slice();return o[2]=e[n],o}function fi(t){let e,n,o=ai(t[1]),r=[];for(let s=0;s<o.length;s+=1)r[s]=di(ui(t,o,s));const i=s=>K(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=Oa()},m(s,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(s,l);pt(s,e,l),n=!0},p(s,l){if(l&3){o=ai(s[1]);let c;for(c=0;c<o.length;c+=1){const a=ui(s,o,c);r[c]?(r[c].p(a,l),L(r[c],1)):(r[c]=di(a),r[c].c(),L(r[c],1),r[c].m(e.parentNode,e))}for(re(),c=o.length;c<r.length;c+=1)i(c);ie()}},i(s){if(!n){for(let l=0;l<o.length;l+=1)L(r[l]);n=!0}},o(s){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)K(r[l]);n=!1},d(s){s&&at(e),Sa(r,s)}}}function di(t){let e,n;return e=new ja({props:{config:t[2],step:t[0]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.config=o[2]),r&1&&(i.step=o[0]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function Ba(t){let e,n,o=t[1]&&fi(t);return{c(){e=xt("footer"),o&&o.c(),F(e,"class","shepherd-footer")},m(r,i){pt(r,e,i),o&&o.m(e,null),n=!0},p(r,[i]){r[1]?o?(o.p(r,i),i&2&&L(o,1)):(o=fi(r),o.c(),L(o,1),o.m(e,null)):o&&(re(),K(o,1,1,()=>{o=null}),ie())},i(r){n||(L(o),n=!0)},o(r){K(o),n=!1},d(r){r&&at(e),o&&o.d()}}}function Wa(t,e,n){let o,{step:r}=e;return t.$$set=i=>{"step"in i&&n(0,r=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,o=r.options.buttons)},[r,o]}class Na extends At{constructor(e){super(),It(this,e,Wa,Ba,Rt,{step:0})}}function Ha(t){let e,n,o,r,i;return{c(){e=xt("button"),n=xt("span"),n.textContent="×",F(n,"aria-hidden","true"),F(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),F(e,"class","shepherd-cancel-icon"),F(e,"type","button")},m(s,l){pt(s,e,l),Te(e,n),r||(i=_n(e,"click",t[1]),r=!0)},p(s,[l]){l&1&&o!==(o=s[0].label?s[0].label:"Close Tour")&&F(e,"aria-label",o)},i:lt,o:lt,d(s){s&&at(e),r=!1,i()}}}function Va(t,e,n){let{cancelIcon:o,step:r}=e;const i=s=>{s.preventDefault(),r.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,o=s.cancelIcon),"step"in s&&n(2,r=s.step)},[o,i,r]}class Ua extends At{constructor(e){super(),It(this,e,Va,Ha,Rt,{cancelIcon:0,step:2})}}function qa(t){let e;return{c(){e=xt("h3"),F(e,"id",t[1]),F(e,"class","shepherd-title")},m(n,o){pt(n,e,o),t[3](e)},p(n,[o]){o&2&&F(e,"id",n[1])},i:lt,o:lt,d(n){n&&at(e),t[3](null)}}}function Ya(t,e,n){let{labelId:o,element:r,title:i}=e;bo(()=>{Bt(i)&&n(2,i=i()),n(0,r.innerHTML=i,r)});function s(l){Re[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"labelId"in l&&n(1,o=l.labelId),"element"in l&&n(0,r=l.element),"title"in l&&n(2,i=l.title)},[r,o,i,s]}class Ka extends At{constructor(e){super(),It(this,e,Ya,qa,Rt,{labelId:1,element:0,title:2})}}function hi(t){let e,n;return e=new Ka({props:{labelId:t[0],title:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.labelId=o[0]),r&4&&(i.title=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function pi(t){let e,n;return e=new Ua({props:{cancelIcon:t[3],step:t[1]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&8&&(i.cancelIcon=o[3]),r&2&&(i.step=o[1]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function za(t){let e,n,o,r=t[2]&&hi(t),i=t[3]&&t[3].enabled&&pi(t);return{c(){e=xt("header"),r&&r.c(),n=xn(),i&&i.c(),F(e,"class","shepherd-header")},m(s,l){pt(s,e,l),r&&r.m(e,null),Te(e,n),i&&i.m(e,null),o=!0},p(s,[l]){s[2]?r?(r.p(s,l),l&4&&L(r,1)):(r=hi(s),r.c(),L(r,1),r.m(e,n)):r&&(re(),K(r,1,1,()=>{r=null}),ie()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&L(i,1)):(i=pi(s),i.c(),L(i,1),i.m(e,null)):i&&(re(),K(i,1,1,()=>{i=null}),ie())},i(s){o||(L(r),L(i),o=!0)},o(s){K(r),K(i),o=!1},d(s){s&&at(e),r&&r.d(),i&&i.d()}}}function Ja(t,e,n){let{labelId:o,step:r}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,o=l.labelId),"step"in l&&n(1,r=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=r.options.title),n(3,s=r.options.cancelIcon))},[o,r,i,s]}class Xa extends At{constructor(e){super(),It(this,e,Ja,za,Rt,{labelId:0,step:1})}}function Ga(t){let e;return{c(){e=xt("div"),F(e,"class","shepherd-text"),F(e,"id",t[1])},m(n,o){pt(n,e,o),t[3](e)},p(n,[o]){o&2&&F(e,"id",n[1])},i:lt,o:lt,d(n){n&&at(e),t[3](null)}}}function Za(t,e,n){let{descriptionId:o,element:r,step:i}=e;bo(()=>{let{text:l}=i.options;Bt(l)&&(l=l.call(i)),qe(l)?r.appendChild(l):n(0,r.innerHTML=l,r)});function s(l){Re[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"descriptionId"in l&&n(1,o=l.descriptionId),"element"in l&&n(0,r=l.element),"step"in l&&n(2,i=l.step)},[r,o,i,s]}class Qa extends At{constructor(e){super(),It(this,e,Za,Ga,Rt,{descriptionId:1,element:0,step:2})}}function gi(t){let e,n;return e=new Xa({props:{labelId:t[1],step:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.labelId=o[1]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function mi(t){let e,n;return e=new Qa({props:{descriptionId:t[0],step:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.descriptionId=o[0]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function bi(t){let e,n;return e=new Na({props:{step:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function tu(t){let e,n=!Z(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o,r=!Z(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&gi(t),a=r&&mi(t),f=s&&bi(t);return{c(){e=xt("div"),c&&c.c(),o=xn(),a&&a.c(),i=xn(),f&&f.c(),F(e,"class","shepherd-content")},m(h,d){pt(h,e,d),c&&c.m(e,null),Te(e,o),a&&a.m(e,null),Te(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!Z(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&L(c,1)):(c=gi(h),c.c(),L(c,1),c.m(e,o)):c&&(re(),K(c,1,1,()=>{c=null}),ie()),d&4&&(r=!Z(h[2].options.text)),r?a?(a.p(h,d),d&4&&L(a,1)):(a=mi(h),a.c(),L(a,1),a.m(e,i)):a&&(re(),K(a,1,1,()=>{a=null}),ie()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&L(f,1)):(f=bi(h),f.c(),L(f,1),f.m(e,null)):f&&(re(),K(f,1,1,()=>{f=null}),ie())},i(h){l||(L(c),L(a),L(f),l=!0)},o(h){K(c),K(a),K(f),l=!1},d(h){h&&at(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function eu(t,e,n){let{descriptionId:o,labelId:r,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,o=s.descriptionId),"labelId"in s&&n(1,r=s.labelId),"step"in s&&n(2,i=s.step)},[o,r,i]}class nu extends At{constructor(e){super(),It(this,e,eu,tu,Rt,{descriptionId:0,labelId:1,step:2})}}function yi(t){let e;return{c(){e=xt("div"),F(e,"class","shepherd-arrow"),F(e,"data-popper-arrow","")},m(n,o){pt(n,e,o)},d(n){n&&at(e)}}}function ou(t){let e,n,o,r,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&yi();o=new nu({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":r=Z(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=_a(h,f[d]);return{c(){e=xt("div"),a&&a.c(),n=xn(),se(o.$$.fragment),ii(e,h),$e(e,"shepherd-has-cancel-icon",t[5]),$e(e,"shepherd-has-title",t[6]),$e(e,"shepherd-element",!0)},m(d,p){pt(d,e,p),a&&a.m(e,null),Te(e,n),Vt(o,e,null),t[13](e),s=!0,l||(c=_n(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=yi(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),o.$set(m),ii(e,h=ka(f,[(!s||p&20&&r!==(r=Z(d[4].options.text)?null:d[2]))&&{"aria-describedby":r},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),$e(e,"shepherd-has-cancel-icon",d[5]),$e(e,"shepherd-has-title",d[6]),$e(e,"shepherd-element",!0)},i(d){s||(L(o.$$.fragment,d),s=!0)},o(d){K(o.$$.fragment,d),s=!1},d(d){d&&at(e),a&&a.d(),Ut(o),t[13](null),l=!1,c()}}}const ru=9,iu=27,su=37,lu=39;function vi(t){return t.split(" ").filter(e=>!!e.length)}function cu(t,e,n){let{classPrefix:o,element:r,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>r;Ca(()=>{n(1,h={[`data-${o}shepherd-step-id`]:f.id}),n(9,l=r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),bo(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(Ye(g)){const O=vi(g);O.length&&r.classList.remove(...O)}}function x(g){if(Ye(g)){const O=vi(g);O.length&&r.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case ru:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case iu:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case su:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case lu:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){Re[g?"unshift":"push"](()=>{r=g,n(0,r)})}return t.$$set=g=>{"classPrefix"in g&&n(11,o=g.classPrefix),"element"in g&&n(0,r=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[r,h,i,c,f,d,p,S,s,l,a,o,y,b]}class au extends At{constructor(e){super(),It(this,e,cu,ou,Rt,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class xo extends to{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?Br(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,ro(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ma(this),qe(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=Rc(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Bt(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new au({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();Bt(this.options.scrollToHandler)?this.options.scrollToHandler(n):uc(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e.classes?e.classes:"",r=n&&n.classes?n.classes:"",i=[...o.split(" "),...r.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=no({},n||{}),this.options=Object.assign({arrow:!0},n,e,ga(n,e));const{when:o}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Nr()}`,o&&Object.keys(o).forEach(r=>{this.on(r,o[r],this)})}_setupElements(){Z(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Tc(this),pa(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),o=this.target||document.body;o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function uu(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&qe(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function fu({width:t,height:e,x:n=0,y:o=0,r=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof r=="number"?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${o}a${l},${l},0,0,0-${l},${l}V${e+o-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${o+c}a${c},${c},0,0,0-${c}-${c}Z`}function du(t){let e,n,o,r,i;return{c(){e=oi("svg"),n=oi("path"),F(n,"d",t[2]),F(e,"class",o=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){pt(s,e,l),Te(e,n),t[11](e),r||(i=_n(e,"touchmove",t[3]),r=!0)},p(s,[l]){l&4&&F(n,"d",s[2]),l&2&&o!==(o=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&F(e,"class",o)},i:lt,o:lt,d(s){s&&at(e),t[11](null),r=!1,i()}}}function wi(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return e!=="hidden"&&e!=="visible"&&t.scrollHeight>=t.clientHeight?t:wi(t.parentElement)}function hu(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var o;const s=(o=n)==null?void 0:o.frameElement;if(s){var r,i;const l=s.getBoundingClientRect();e.top+=l.top+((r=l.scrollTop)!=null?r:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function pu(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,r=n.bottom||o+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;o=Math.max(o,l),r=Math.min(r,c)}const i=Math.max(r-o,0);return{y:o,height:i}}function gu(t,e,n){let{element:o,openingProperties:r}=e,i=!1,s,l;a();const c=()=>o;function a(){n(4,r={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,P=0,V,I){if(I){const{y:B,height:N}=pu(I,V),{x:U,width:A,left:$}=I.getBoundingClientRect();n(4,r={width:A+b*2,height:N+b*2,x:(U||$)+O-b,y:B+P-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:P=0,modalOverlayOpeningYOffset:V=0}=b.options,I=hu(b.target),B=wi(b.target),N=()=>{s=void 0,h(g,O,P+I.left,V+I.top,B,b.target),s=requestAnimationFrame(N)};N(),_()}function S(b){Re[b?"unshift":"push"](()=>{o=b,n(0,o)})}return t.$$set=b=>{"element"in b&&n(0,o=b.element),"openingProperties"in b&&n(4,r=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=fu(r))},[o,i,l,y,r,c,a,f,h,d,p,S]}class mu extends At{constructor(e){super(),It(this,e,gu,du,Rt,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}class xi extends to{constructor(){super(),this.activeTour=void 0,ro(this)}}class bu extends to{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,ro(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=Br(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,i=>{i=i||{},i.tour=this,qt.trigger(r,i)})})(o)}),this._setTourID(e.id),this}addStep(e,n){let o=e;return o instanceof xo?o.tour=this:o=new xo(this,o),Z(n)?this.steps.push(o):this.steps.splice(n,0,o),o}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Bt(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return qt.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((o,r)=>{if(o.id===e)return o.isOpen()&&o.hide(),o.destroy(),this.steps.splice(r,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const o=Ye(e)?this.getById(e):this.steps[e];o&&(this._updateStateBeforeShow(),Bt(o.options.showOn)&&!o.options.showOn()?this._skipStep(o,n):(this.trigger("show",{step:o,previous:this.currentStep}),this.currentStep=o,o.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(o=>o.destroy()),uu(this),this.trigger(e,{index:n}),qt.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const o=document.querySelector(".shepherd-modal-overlay-container");o&&(o.remove(),this.modal=null)}qe(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),qt.activeTour=this}setupModal(){this.modal=new mu({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const o=this.steps.indexOf(e);if(o===this.steps.length-1)this.complete();else{const r=n?o+1:o-1;this.show(r,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",o=e||Nr();this.id=`${n}--${o}`}}const qt=new xi,_i=typeof window>"u";qt.Step=_i?$c:xo,qt.Tour=_i?Cc:bu;const _o=(t,e)=>e.some(n=>t instanceof n);let Ei,Si;function yu(){return Ei||(Ei=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function vu(){return Si||(Si=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Eo=new WeakMap,So=new WeakMap,Sn=new WeakMap;function wu(t){const e=new Promise((n,o)=>{const r=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{n(le(t.result)),r()},s=()=>{o(t.error),r()};t.addEventListener("success",i),t.addEventListener("error",s)});return Sn.set(e,t),e}function xu(t){if(Eo.has(t))return;const e=new Promise((n,o)=>{const r=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{n(),r()},s=()=>{o(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});Eo.set(t,e)}let Oo={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Eo.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return le(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Oi(t){Oo=t(Oo)}function _u(t){return vu().includes(t)?function(...e){return t.apply(To(this),e),le(this.request)}:function(...e){return le(t.apply(To(this),e))}}function Eu(t){return typeof t=="function"?_u(t):(t instanceof IDBTransaction&&xu(t),_o(t,yu())?new Proxy(t,Oo):t)}function le(t){if(t instanceof IDBRequest)return wu(t);if(So.has(t))return So.get(t);const e=Eu(t);return e!==t&&(So.set(t,e),Sn.set(e,t)),e}const To=t=>Sn.get(t);function Su(t,e,{blocked:n,upgrade:o,blocking:r,terminated:i}={}){const s=indexedDB.open(t,e),l=le(s);return o&&s.addEventListener("upgradeneeded",c=>{o(le(s.result),c.oldVersion,c.newVersion,le(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{i&&c.addEventListener("close",()=>i()),r&&c.addEventListener("versionchange",a=>r(a.oldVersion,a.newVersion,a))}).catch(()=>{}),l}const Ou=["get","getKey","getAll","getAllKeys","count"],Tu=["put","add","delete","clear"],$o=new Map;function Ti(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if($o.get(e))return $o.get(e);const n=e.replace(/FromIndex$/,""),o=e!==n,r=Tu.includes(n);if(!(n in(o?IDBIndex:IDBObjectStore).prototype)||!(r||Ou.includes(n)))return;const i=async function(s,...l){const c=this.transaction(s,r?"readwrite":"readonly");let a=c.store;return o&&(a=a.index(l.shift())),(await Promise.all([a[n](...l),r&&c.done]))[0]};return $o.set(e,i),i}Oi(t=>({...t,get:(e,n,o)=>Ti(e,n)||t.get(e,n,o),has:(e,n)=>!!Ti(e,n)||t.has(e,n)}));const $u=["continue","continuePrimaryKey","advance"],$i={},Co=new WeakMap,Ci=new WeakMap,Cu={get(t,e){if(!$u.includes(e))return t[e];let n=$i[e];return n||(n=$i[e]=function(...o){Co.set(this,Ci.get(this)[e](...o))}),n}};async function*Ru(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,Cu);for(Ci.set(n,e),Sn.set(n,To(e));e;)yield n,e=await(Co.get(n)||e.continue()),Co.delete(n)}function Ri(t,e){return e===Symbol.asyncIterator&&_o(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&_o(t,[IDBIndex,IDBObjectStore])}Oi(t=>({...t,get(e,n,o){return Ri(e,n)?Ru:t.get(e,n,o)},has(e,n){return Ri(e,n)||t.has(e,n)}}));var Pe,ke,Ze;class Iu{constructor(e,n,o){if(dn(this,Pe),dn(this,ke),dn(this,Ze),we(this,"tourStateDb"),!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(!n)throw new Error("Shepherd Pro: Missing required apiPath option.");hn(this,Pe,e),hn(this,ke,n),hn(this,Ze,o)}getConfig(){return{apiKey:$t(this,Pe),apiPath:$t(this,ke),properties:$t(this,Ze)}}async getTourState(){try{const e=await fetch(`${$t(this,ke)}/api/v1/state`,{headers:{Authorization:`ApiKey ${$t(this,Pe)}`,"Content-Type":"application/json"},method:"GET"});if(!e.ok)throw new Error("Could not fetch state for tours 🐑");const{data:n}=await e.json();if(this.tourStateDb=await Su("TourState",1,{upgrade(o){o.createObjectStore("tours",{keyPath:"uniqueId"})}}),Array.isArray(n)&&n.length){const o=this.tourStateDb.transaction("tours","readwrite"),r=n.map(i=>o.store.put(i));await Promise.all([...r,o.done])}}catch(e){throw new Error("Error fetching data: "+(e instanceof Error?e.message:"Unknown error"))}}async sendEvents(e){e.data.properties=$t(this,Ze);try{const n=await fetch(`${$t(this,ke)}/api/v1/actor`,{headers:{Authorization:`ApiKey ${$t(this,Pe)}`,"Content-Type":"application/json"},method:"POST",body:JSON.stringify(e)});if(!n.ok)throw new Error("Could not create an event 🐑");const{data:o}=await n.json();return o}catch(n){throw new Error("Error fetching data: "+(n instanceof Error?n.message:"Unknown error"))}}}Pe=new WeakMap,ke=new WeakMap,Ze=new WeakMap;function Au(t){let e={};if(t.navigator){const n=t.navigator.userAgent;e={...e,$os:ku(t),$browser:Ii(n,t.navigator.vendor,!!t.opera),$referrer:t.document.referrer,$referring_domain:Lu(t.document.referrer),$device:Mu(n),$current_url:t.location.href,$host:t.location.host,$pathname:t.location.pathname,$browser_version:Pu(n,t.navigator.vendor,!!t.opera),$screen_height:t.screen.height,$screen_width:t.screen.width,$screen_dpr:t.devicePixelRatio}}return e={...e,$lib:"js",$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:new Date().getTime()/1e3},e}function z(t,e){return t.indexOf(e)>=0}function Ii(t,e,n){return e=e||"",n||z(t," OPR/")?z(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":z(t,"IEMobile")||z(t,"WPDesktop")?"Internet Explorer Mobile":z(t,"SamsungBrowser/")?"Samsung Internet":z(t,"Edge")||z(t,"Edg/")?"Microsoft Edge":z(t,"FBIOS")?"Facebook Mobile":z(t,"Chrome")?"Chrome":z(t,"CriOS")?"Chrome iOS":z(t,"UCWEB")||z(t,"UCBrowser")?"UC Browser":z(t,"FxiOS")?"Firefox iOS":z(e,"Apple")?z(t,"Mobile")?"Mobile Safari":"Safari":z(t,"Android")?"Android Mobile":z(t,"Konqueror")?"Konqueror":z(t,"Firefox")?"Firefox":z(t,"MSIE")||z(t,"Trident/")?"Internet Explorer":z(t,"Gecko")?"Mozilla":""}function Pu(t,e,n){const o={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},r=Ii(t,e,n),i=o[r]||void 0;if(i===void 0)return null;const s=t.match(i);return s?parseFloat(s[s.length-2]):null}function ku(t){const e=t.navigator.userAgent;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""}function Mu(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""}function Lu(t){const e=t.split("/");return e.length>=3?e[2]:""}const Du="https://shepherdpro.com",Ro="shepherdPro:userId";var On;class Ai extends qt.Tour{constructor(e){super(e),dn(this,On,null),hn(this,On,localStorage.getItem(Ro));const{dataRequester:n}=Io;n&&this.trackedEvents.forEach(o=>this.on(o,r=>{const{tour:i}=r,{id:s,steps:l}=i;let c;if(o!=="active"){const{step:f}=r;f&&(c=l.findIndex(h=>h.id===f.id)+1)}const a={currentUserId:$t(this,On),eventType:o,journeyData:{id:s,currentStep:c,numberOfSteps:l.length,tourOptions:i.options}};n==null||n.sendEvents({data:a})}))}async start(){await Io.isTourEnabled(this.options.id)&&super.start()}}On=new WeakMap,we(Ai,"trackedEvents",["active","cancel","complete","show"]);class Fu extends xi{constructor(){super(),we(this,"apiKey"),we(this,"apiPath"),we(this,"dataRequester"),we(this,"properties"),this.Tour=Ai}async init(e,n,o){if(!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(this.apiKey=e,this.apiPath=n??Du,this.properties=o??{},this.properties.context=Au(window),this.apiKey){this.dataRequester=new Iu(this.apiKey,this.apiPath,this.properties);const r=localStorage.getItem(Ro),i=[this.dataRequester.getTourState()];r||i.push(this.createNewActor()),await Promise.all(i)}}async createNewActor(){if(!this.dataRequester)return;const e=await this.dataRequester.sendEvents({data:{currentUserId:null,eventType:"setup"}});localStorage.setItem(Ro,String(e.actorId))}async isTourEnabled(e){var n;if(!this.dataRequester)return;const o=await((n=this.dataRequester.tourStateDb)==null?void 0:n.get("tours",e));return(o==null?void 0:o.isActive)??!0}}const Io=new Fu,Pi=Object.assign(Io,qt),Tn=Pt.createContext(void 0),ju=Tn.Consumer,Bu=()=>{const t=Pt.useContext(Tn);if(!t)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:e}=t;return e},Wu=({apiKey:t,apiPath:e,properties:n,children:o})=>{let r=Qt;return typeof window<"u"&&t&&(r=Pi,Pi.init(t,e,n)),Zi.jsx(Tn.Provider,{value:{Shepherd:r},children:o})};gt.JourneyMethods=ju,gt.ShepherdJourneyContext=Tn,gt.ShepherdJourneyProvider=Wu,gt.useShepherd=Bu,Object.defineProperty(gt,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,Wr,ue,uf,ue),zi[ue+Wr]=!0}}return u===r?of(J):rf(J),J}}function sf(u,v,E){return Ki(u,v,E,!0)}function lf(u,v,E){return Ki(u,v,E,!1)}var cf=lf,af=sf;Ve.Fragment=r,Ve.jsx=cf,Ve.jsxs=af}()),Ve}process.env.NODE_ENV==="production"?Fn.exports=Ji():Fn.exports=Xi();var Gi=Fn.exports;/*! shepherd.js 13.0.1 */function Zi(t){return t instanceof Element}function Ue(t){return t instanceof HTMLElement}function Lt(t){return typeof t=="function"}function qe(t){return typeof t=="string"}function Q(t){return t===void 0}class jn{on(e,n,r,o=!1){var i;return Q(this.bindings)&&(this.bindings={}),Q(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:r,once:o}),this}once(e,n,r){return this.on(e,n,r,!0)}off(e,n){if(Q(this.bindings)||Q(this.bindings[e]))return this;if(Q(n))delete this.bindings[e];else{var r;(r=this.bindings[e])==null||r.forEach((o,i)=>{if(o.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!Q(this.bindings)&&this.bindings[e]){var r;(r=this.bindings[e])==null||r.forEach((o,i)=>{const{ctx:s,handler:l,once:c}=o,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function et(){return et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},et.apply(null,arguments)}function Vr(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}const Ft={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Ft.defaultMerge;function Qi(t,e){return e}function Ur(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:ns(t)?1:t instanceof Set?3:t instanceof Map?4:5}function ts(t){const e=new Set;for(const n of t)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(r);return e}function es(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function qr(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const Yr=new Set(["[object Object]","[object Module]"]);function ns(t){if(!Yr.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!Yr.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function rs(t,e,n){const r={};for(const o of ts(t)){const i=[];for(const c of t)es(c,o)&&i.push(c[o]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:o,parents:t}),l=Kr(i,e,s);l!==Ft.skip&&(o==="__proto__"?Object.defineProperty(r,o,{value:l,configurable:!0,enumerable:!0,writable:!0}):r[o]=l)}return r}function os(t){return t.flat()}function is(t){return new Set(qr(t))}function ss(t){return new Map(qr(t))}function zr(t){return t.at(-1)}var Bn=Object.freeze({__proto__:null,mergeArrays:os,mergeMaps:ss,mergeOthers:zr,mergeRecords:rs,mergeSets:is});function Wn(...t){return ls({})(...t)}function ls(t,e){const n=cs(t,r);function r(...o){return Kr(o,n,e)}return r}function cs(t,e){var n,r;return{defaultMergeFunctions:Bn,mergeFunctions:et({},Bn,Object.fromEntries(Object.entries(t).filter(([o,i])=>Object.hasOwn(Bn,o)).map(([o,i])=>i===!1?[o,zr]:[o,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:Qi,deepmerge:e,useImplicitDefaultMerging:(r=t.enableImplicitDefaultMerging)!=null?r:!1,actions:Ft}}function Kr(t,e,n){if(t.length===0)return;if(t.length===1)return Nn(t,e,n);const r=Ur(t[0]);if(r!==0&&r!==5){for(let o=1;o<t.length;o++)if(Ur(t[o])!==r)return Nn(t,e,n)}switch(r){case 1:return as(t,e,n);case 2:return us(t,e,n);case 3:return fs(t,e,n);case 4:return ds(t,e,n);default:return Nn(t,e,n)}}function as(t,e,n){const r=e.mergeFunctions.mergeRecords(t,e,n);return r===Ft.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):r}function us(t,e,n){const r=e.mergeFunctions.mergeArrays(t,e,n);return r===Ft.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):r}function fs(t,e,n){const r=e.mergeFunctions.mergeSets(t,e,n);return r===Ft.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):r}function ds(t,e,n){const r=e.mergeFunctions.mergeMaps(t,e,n);return r===Ft.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):r}function Nn(t,e,n){const r=e.mergeFunctions.mergeOthers(t,e,n);return r===Ft.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):r}function Hn(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const r=e[n],o=t[r];r!=="constructor"&&typeof o=="function"&&(t[r]=o.bind(t))}return t}function hs(t,e){return n=>{if(t.isOpen()){const r=t.el&&n.currentTarget===t.el;(!Q(e)&&n.currentTarget.matches(e)||r)&&t.tour.next()}}}function ps(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const r=hs(t,n);let o=null;if(!Q(n)&&(o=document.querySelector(n),!o))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);o?(o.addEventListener(e,r),t.on("destroy",()=>o.removeEventListener(e,r))):(document.body.addEventListener(e,r,!0),t.on("destroy",()=>document.body.removeEventListener(e,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class gs{constructor(e){}}class ms{constructor(e,n){}}function Jr(t){return!qe(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function bs(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(Lt(n.element)&&(n.element=n.element.call(t)),qe(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Xr(t){return t==null?!0:!t.element||!t.on}function Gr(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const fe=Math.min,Kt=Math.max,ln=Math.round,cn=Math.floor,jt=t=>({x:t,y:t}),ys={left:"right",right:"left",bottom:"top",top:"bottom"},vs={start:"end",end:"start"};function Vn(t,e,n){return Kt(t,fe(e,n))}function de(t,e){return typeof t=="function"?t(e):t}function Jt(t){return t.split("-")[0]}function an(t){return t.split("-")[1]}function Un(t){return t==="x"?"y":"x"}function qn(t){return t==="y"?"height":"width"}function he(t){return["top","bottom"].includes(Jt(t))?"y":"x"}function Yn(t){return Un(he(t))}function ws(t,e,n){n===void 0&&(n=!1);const r=an(t),o=Yn(t),i=qn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=un(s)),[s,un(s)]}function xs(t){const e=un(t);return[zn(t),e,zn(e)]}function zn(t){return t.replace(/start|end/g,e=>vs[e])}function _s(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:s;default:return[]}}function Es(t,e,n,r){const o=an(t);let i=_s(Jt(t),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(zn)))),i}function un(t){return t.replace(/left|right|bottom|top/g,e=>ys[e])}function Ss(t){return et({top:0,right:0,bottom:0,left:0},t)}function Zr(t){return typeof t!="number"?Ss(t):{top:t,right:t,bottom:t,left:t}}function fn(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}const Os=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Ts=["mainAxis","crossAxis","limiter"];function Qr(t,e,n){let{reference:r,floating:o}=t;const i=he(e),s=Yn(e),l=qn(s),c=Jt(e),a=i==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-o.width,y:h};break;default:p={x:r.x,y:r.y}}switch(an(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const $s=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:h}=Qr(a,r,c),d=r,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=et({},p,{[_]:et({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):g.rects),{x:f,y:h}=Qr(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:o,middlewareData:p}};async function to(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=de(e,t),m=Zr(p),_=l[d?h==="floating"?"reference":"floating":h],w=fn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),x=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},g=fn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:S,strategy:c}):x);return{top:(w.top-g.top+m.top)/b.y,bottom:(g.bottom-w.bottom+m.bottom)/b.y,left:(w.left-g.left+m.left)/b.x,right:(g.right-w.right+m.right)/b.x}}const Cs=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=de(t,e)||{};if(a==null)return{};const h=Zr(f),d={x:n,y:r},p=Yn(o),m=qn(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let I=O?O[S]:0;(!I||!await(s.isElement==null?void 0:s.isElement(O)))&&(I=l.floating[S]||i.floating[m]);const G=b/2-g/2,M=I/2-y[m]/2-1,N=fe(h[w],M),D=fe(h[x],M),W=N,B=I-y[m]-D,A=I/2-y[m]/2+G,H=Vn(W,A,B),Y=!c.arrow&&an(o)!=null&&A!==H&&i.reference[m]/2-(A<W?N:D)-y[m]/2<0,X=Y?A<W?A-W:A-B:0;return{[p]:d[p]+X,data:et({[p]:H,centerOffset:A-H-X},Y&&{alignmentOffset:X}),reset:Y}}}),As=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,o;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:a,elements:f}=n,h=de(e,n),{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:w=!0}=h,x=Vr(h,Os);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const S=Jt(i),b=he(c),g=Jt(c)===c,O=await(a.isRTL==null?void 0:a.isRTL(f.floating)),I=m||(g||!w?[un(c)]:xs(c)),G=_!=="none";!m&&G&&I.push(...Es(c,w,_,O));const M=[c,...I],N=await to(n,x),D=[];let W=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&D.push(N[S]),p){const Y=ws(i,l,O);D.push(N[Y[0]],N[Y[1]])}if(W=[...W,{placement:i,overflows:D}],!D.every(Y=>Y<=0)){var B,A;const Y=(((B=s.flip)==null?void 0:B.index)||0)+1,X=M[Y];if(X)return{data:{index:Y,overflows:W},reset:{placement:X}};let rt=(A=W.filter(Z=>Z.overflows[0]<=0).sort((Z,K)=>Z.overflows[1]-K.overflows[1])[0])==null?void 0:A.placement;if(!rt)switch(y){case"bestFit":{var H;const Z=(H=W.filter(K=>{if(G){const ut=he(K.placement);return ut===b||ut==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ut=>ut>0).reduce((ut,Pn)=>ut+Pn,0)]).sort((K,ut)=>K[1]-ut[1])[0])==null?void 0:H[0];Z&&(rt=Z);break}case"initialPlacement":rt=c;break}if(i!==rt)return{reset:{placement:rt}}}return{}}}},Is=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:o,placement:i}=n,s=de(e,n),{mainAxis:l=!0,crossAxis:c=!1,limiter:a={fn:x=>{let{x:S,y:b}=x;return{x:S,y:b}}}}=s,f=Vr(s,Ts),h={x:r,y:o},d=await to(n,f),p=he(Jt(i)),m=Un(p);let y=h[m],_=h[p];if(l){const x=m==="y"?"top":"left",S=m==="y"?"bottom":"right",b=y+d[x],g=y-d[S];y=Vn(b,y,g)}if(c){const x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",b=_+d[x],g=_-d[S];_=Vn(b,_,g)}const w=a.fn(et({},n,{[m]:y,[p]:_}));return et({},w,{data:{x:w.x-r,y:w.y-o}})}}},Rs=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:o,placement:i,rects:s,middlewareData:l}=n,{offset:c=0,mainAxis:a=!0,crossAxis:f=!0}=de(e,n),h={x:r,y:o},d=he(i),p=Un(d);let m=h[p],y=h[d];const _=de(c,n),w=typeof _=="number"?{mainAxis:_,crossAxis:0}:et({mainAxis:0,crossAxis:0},_);if(a){const b=p==="y"?"height":"width",g=s.reference[p]-s.floating[b]+w.mainAxis,O=s.reference[p]+s.reference[b]-w.mainAxis;m<g?m=g:m>O&&(m=O)}if(f){var x,S;const b=p==="y"?"width":"height",g=["top","left"].includes(Jt(i)),O=s.reference[d]-s.floating[b]+(g&&((x=l.offset)==null?void 0:x[d])||0)+(g?0:w.crossAxis),I=s.reference[d]+s.reference[b]+(g?0:((S=l.offset)==null?void 0:S[d])||0)-(g?w.crossAxis:0);y<O?y=O:y>I&&(y=I)}return{[p]:m,[d]:y}}}};function pe(t){return eo(t)?(t.nodeName||"").toLowerCase():"#document"}function st(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Tt(t){var e;return(e=(eo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function eo(t){return t instanceof Node||t instanceof st(t).Node}function vt(t){return t instanceof Element||t instanceof st(t).Element}function wt(t){return t instanceof HTMLElement||t instanceof st(t).HTMLElement}function no(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof st(t).ShadowRoot}function Ye(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=pt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function Ps(t){return["table","td","th"].includes(pe(t))}function dn(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Kn(t){const e=Jn(),n=pt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ks(t){let e=Bt(t);for(;wt(e)&&!ge(e);){if(dn(e))return null;if(Kn(e))return e;e=Bt(e)}return null}function Jn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ge(t){return["html","body","#document"].includes(pe(t))}function pt(t){return st(t).getComputedStyle(t)}function hn(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Bt(t){if(pe(t)==="html")return t;const e=t.assignedSlot||t.parentNode||no(t)&&t.host||Tt(t);return no(e)?e.host:e}function ro(t){const e=Bt(t);return ge(e)?t.ownerDocument?t.ownerDocument.body:t.body:wt(e)&&Ye(e)?e:ro(e)}function ze(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=ro(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),s=st(o);return i?e.concat(s,s.visualViewport||[],Ye(o)?o:[],s.frameElement&&n?ze(s.frameElement):[]):e.concat(o,ze(o,[],n))}function oo(t){const e=pt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=wt(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,l=ln(n)!==i||ln(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function Xn(t){return vt(t)?t:t.contextElement}function me(t){const e=Xn(t);if(!wt(e))return jt(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=oo(e);let s=(i?ln(n.width):n.width)/r,l=(i?ln(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Ms=jt(0);function io(t){const e=st(t);return!Jn()||!e.visualViewport?Ms:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ds(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==st(t)?!1:e}function Xt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=Xn(t);let s=jt(1);e&&(r?vt(r)&&(s=me(r)):s=me(t));const l=Ds(i,n,r)?io(i):jt(0);let c=(o.left+l.x)/s.x,a=(o.top+l.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(i){const d=st(i),p=r&&vt(r)?st(r):r;let m=d,y=m.frameElement;for(;y&&r&&p!==m;){const _=me(y),w=y.getBoundingClientRect(),x=pt(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=st(y),y=m.frameElement}}return fn({width:f,height:h,x:c,y:a})}function Ls(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=Tt(r),l=e?dn(e.floating):!1;if(r===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=jt(1);const f=jt(0),h=wt(r);if((h||!h&&!i)&&((pe(r)!=="body"||Ye(s))&&(c=hn(r)),wt(r))){const d=Xt(r);a=me(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Fs(t){return Array.from(t.getClientRects())}function so(t){return Xt(Tt(t)).left+hn(t).scrollLeft}function js(t){const e=Tt(t),n=hn(t),r=t.ownerDocument.body,o=Kt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Kt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+so(t);const l=-n.scrollTop;return pt(r).direction==="rtl"&&(s+=Kt(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Bs(t,e){const n=st(t),r=Tt(t),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const a=Jn();(!a||a&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}function Ws(t,e){const n=Xt(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=wt(t)?me(t):jt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=o*i.x,a=r*i.y;return{width:s,height:l,x:c,y:a}}function lo(t,e,n){let r;if(e==="viewport")r=Bs(t,n);else if(e==="document")r=js(Tt(t));else if(vt(e))r=Ws(e,n);else{const o=io(t);r=et({},e,{x:e.x-o.x,y:e.y-o.y})}return fn(r)}function co(t,e){const n=Bt(t);return n===e||!vt(n)||ge(n)?!1:pt(n).position==="fixed"||co(n,e)}function Ns(t,e){const n=e.get(t);if(n)return n;let r=ze(t,[],!1).filter(l=>vt(l)&&pe(l)!=="body"),o=null;const i=pt(t).position==="fixed";let s=i?Bt(t):t;for(;vt(s)&&!ge(s);){const l=pt(s),c=Kn(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ye(s)&&!c&&co(t,s))?r=r.filter(f=>f!==s):o=l,s=Bt(s)}return e.set(t,r),r}function Hs(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?dn(e)?[]:Ns(e,this._c):[].concat(n),r],l=s[0],c=s.reduce((a,f)=>{const h=lo(e,f,o);return a.top=Kt(h.top,a.top),a.right=fe(h.right,a.right),a.bottom=fe(h.bottom,a.bottom),a.left=Kt(h.left,a.left),a},lo(e,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Vs(t){const{width:e,height:n}=oo(t);return{width:e,height:n}}function Us(t,e,n){const r=wt(e),o=Tt(e),i=n==="fixed",s=Xt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=jt(0);if(r||!r&&!i)if((pe(e)!=="body"||Ye(o))&&(l=hn(e)),r){const h=Xt(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else o&&(c.x=so(o));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function Gn(t){return pt(t).position==="static"}function ao(t,e){return!wt(t)||pt(t).position==="fixed"?null:e?e(t):t.offsetParent}function uo(t,e){const n=st(t);if(dn(t))return n;if(!wt(t)){let o=Bt(t);for(;o&&!ge(o);){if(vt(o)&&!Gn(o))return o;o=Bt(o)}return n}let r=ao(t,e);for(;r&&Ps(r)&&Gn(r);)r=ao(r,e);return r&&ge(r)&&Gn(r)&&!Kn(r)?n:r||ks(t)||n}const qs=async function(e){const n=this.getOffsetParent||uo,r=this.getDimensions,o=await r(e.floating);return{reference:Us(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ys(t){return pt(t).direction==="rtl"}const zs={convertOffsetParentRelativeRectToViewportRelativeRect:Ls,getDocumentElement:Tt,getClippingRect:Hs,getOffsetParent:uo,getElementRects:qs,getClientRects:Fs,getDimensions:Vs,getScale:me,isElement:vt,isRTL:Ys};function Ks(t,e){let n=null,r;const o=Tt(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=cn(f),m=cn(o.clientWidth-(a+h)),y=cn(o.clientHeight-(f+d)),_=cn(a),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:Kt(0,fe(1,c))||1};let S=!0;function b(g){const O=g[0].intersectionRatio;if(O!==c){if(!S)return s();O?s(!1,O):r=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(b,et({},x,{root:o.ownerDocument}))}catch{n=new IntersectionObserver(b,x)}n.observe(t)}return s(!0),i}function Js(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,a=Xn(t),f=o||i?[...a?ze(a):[],...ze(e)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?Ks(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?Xt(t):null;c&&_();function _(){const w=Xt(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Xs=Is,Gs=As,Zs=Cs,Qs=Rs,tl=(t,e,n)=>{const r=new Map,o=et({platform:zs},n),i=et({},o.platform,{_c:r});return $s(t,e,et({},o,{platform:i}))};function el(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const r=ll(e,t),o=Xr(e);return o&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=Js(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}ol(n,t,r,o)}),t.target=e.element,r}function nl(t,e){return{floatingUIOptions:Wn(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function rl(t){t.cleanup&&t.cleanup(),t.cleanup=null}function ol(t,e,n,r){return tl(t,e.el,n).then(il(e,r)).then(o=>new Promise(i=>{setTimeout(()=>i(o),300)})).then(o=>{o!=null&&o.el&&o.el.focus({preventScroll:!0})})}function il(t,e){return({x:n,y:r,placement:o,middlewareData:i})=>(t.el&&(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),t.el.dataset.popperPlacement=o,sl(t.el,i)),t)}function sl(t,e){const n=t.querySelector(".shepherd-arrow");if(Ue(n)&&e.arrow){const{x:r,y:o}=e.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:""})}}function ll(t,e){const n={strategy:"absolute"};n.middleware=[];const r=cl(e);if(!Xr(t)){if(n.middleware.push(Gs(),Xs({limiter:Qs(),crossAxis:!0})),r){var i,s;const l=(t==null||(i=t.on)==null?void 0:i.includes("-start"))||(t==null||(s=t.on)==null?void 0:s.includes("-end"));n.middleware.push(Zs({element:r,padding:l?4:0}))}n.placement=t.on}return Wn(e.options.floatingUIOptions||{},n)}function cl(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function lt(){}function al(t,e){for(const n in e)t[n]=e[n];return t}function fo(t){return t()}function ho(){return Object.create(null)}function Ke(t){t.forEach(fo)}function Zn(t){return typeof t=="function"}function $t(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ul(t){return Object.keys(t).length===0}function be(t,e){t.appendChild(e)}function gt(t,e,n){t.insertBefore(e,n||null)}function ft(t){t.parentNode&&t.parentNode.removeChild(t)}function fl(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function xt(t){return document.createElement(t)}function po(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function go(t){return document.createTextNode(t)}function pn(){return go(" ")}function dl(){return go("")}function gn(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function L(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const hl=["width","height"];function mo(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&hl.indexOf(r)===-1?t[r]=e[r]:L(t,r,e[r])}function pl(t){return Array.from(t.childNodes)}function ye(t,e,n){t.classList.toggle(e,!!n)}let Je;function Xe(t){Je=t}function bo(){if(!Je)throw new Error("Function called outside component initialization");return Je}function gl(t){bo().$$.on_mount.push(t)}function Qn(t){bo().$$.after_update.push(t)}const ve=[],we=[];let xe=[];const yo=[],ml=Promise.resolve();let tr=!1;function bl(){tr||(tr=!0,ml.then(vo))}function er(t){xe.push(t)}const nr=new Set;let _e=0;function vo(){if(_e!==0)return;const t=Je;do{try{for(;_e<ve.length;){const e=ve[_e];_e++,Xe(e),yl(e.$$)}}catch(e){throw ve.length=0,_e=0,e}for(Xe(null),ve.length=0,_e=0;we.length;)we.pop()();for(let e=0;e<xe.length;e+=1){const n=xe[e];nr.has(n)||(nr.add(n),n())}xe.length=0}while(ve.length);for(;yo.length;)yo.pop()();tr=!1,nr.clear(),Xe(t)}function yl(t){if(t.fragment!==null){t.update(),Ke(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(er)}}function vl(t){const e=[],n=[];xe.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),xe=e}const mn=new Set;let Gt;function Zt(){Gt={r:0,c:[],p:Gt}}function Qt(){Gt.r||Ke(Gt.c),Gt=Gt.p}function P(t,e){t&&t.i&&(mn.delete(t),t.i(e))}function V(t,e,n,r){if(t&&t.o){if(mn.has(t))return;mn.add(t),Gt.c.push(()=>{mn.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function wo(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function wl(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(r[c]=1);for(const c in l)o[c]||(n[c]=l[c],o[c]=1);t[i]=l}else for(const c in s)o[c]=1}for(const s in r)s in n||(n[s]=void 0);return n}function te(t){t&&t.c()}function Wt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),er(()=>{const i=t.$$.on_mount.map(fo).filter(Zn);t.$$.on_destroy?t.$$.on_destroy.push(...i):Ke(i),t.$$.on_mount=[]}),o.forEach(er)}function Nt(t,e){const n=t.$$;n.fragment!==null&&(vl(n.after_update),Ke(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function xl(t,e){t.$$.dirty[0]===-1&&(ve.push(t),bl(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ct(t,e,n,r,o,i,s=null,l=[-1]){const c=Je;Xe(t);const a=t.$$={fragment:null,ctx:[],props:i,update:lt,not_equal:o,bound:ho(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:ho(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&o(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&xl(t,h)),d}):[],a.update(),f=!0,Ke(a.before_update),a.fragment=r?r(a.ctx):!1,e.target){if(e.hydrate){const h=pl(e.target);a.fragment&&a.fragment.l(h),h.forEach(ft)}else a.fragment&&a.fragment.c();e.intro&&P(t.$$.fragment),Wt(t,e.target,e.anchor),vo()}Xe(c)}class At{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){Nt(this,1),this.$destroy=lt}$on(e,n){if(!Zn(n))return lt;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!ul(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const _l="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_l);function El(t){let e,n,r,o,i;return{c(){e=xt("button"),L(e,"aria-label",n=t[3]?t[3]:null),L(e,"class",r=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],L(e,"tabindex","0"),L(e,"type","button")},m(s,l){gt(s,e,l),e.innerHTML=t[5],o||(i=gn(e,"click",function(){Zn(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&L(e,"aria-label",n),l&18&&r!==(r=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&L(e,"class",r),l&4&&(e.disabled=t[2])},i:lt,o:lt,d(s){s&&ft(e),o=!1,i()}}}function Sl(t,e,n){let{config:r,step:o}=e,i,s,l,c,a,f;function h(d){return Lt(d)?d=d.call(o):d}return t.$$set=d=>{"config"in d&&n(6,r=d.config),"step"in d&&n(7,o=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=r.action?r.action.bind(o.tour):null),n(1,s=r.classes),n(2,l=r.disabled?h(r.disabled):!1),n(3,c=r.label?h(r.label):null),n(4,a=r.secondary),n(5,f=r.text?h(r.text):null))},[i,s,l,c,a,f,r,o]}class Ol extends At{constructor(e){super(),Ct(this,e,Sl,El,$t,{config:6,step:7})}}function xo(t,e,n){const r=t.slice();return r[2]=e[n],r}function _o(t){let e,n,r=wo(t[1]),o=[];for(let s=0;s<r.length;s+=1)o[s]=Eo(xo(t,r,s));const i=s=>V(o[s],1,1,()=>{o[s]=null});return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=dl()},m(s,l){for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(s,l);gt(s,e,l),n=!0},p(s,l){if(l&3){r=wo(s[1]);let c;for(c=0;c<r.length;c+=1){const a=xo(s,r,c);o[c]?(o[c].p(a,l),P(o[c],1)):(o[c]=Eo(a),o[c].c(),P(o[c],1),o[c].m(e.parentNode,e))}for(Zt(),c=r.length;c<o.length;c+=1)i(c);Qt()}},i(s){if(!n){for(let l=0;l<r.length;l+=1)P(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)V(o[l]);n=!1},d(s){s&&ft(e),fl(o,s)}}}function Eo(t){let e,n;return e=new Ol({props:{config:t[2],step:t[0]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&2&&(i.config=r[2]),o&1&&(i.step=r[0]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function Tl(t){let e,n,r=t[1]&&_o(t);return{c(){e=xt("footer"),r&&r.c(),L(e,"class","shepherd-footer")},m(o,i){gt(o,e,i),r&&r.m(e,null),n=!0},p(o,[i]){o[1]?r?(r.p(o,i),i&2&&P(r,1)):(r=_o(o),r.c(),P(r,1),r.m(e,null)):r&&(Zt(),V(r,1,1,()=>{r=null}),Qt())},i(o){n||(P(r),n=!0)},o(o){V(r),n=!1},d(o){o&&ft(e),r&&r.d()}}}function $l(t,e,n){let r,{step:o}=e;return t.$$set=i=>{"step"in i&&n(0,o=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,r=o.options.buttons)},[o,r]}class Cl extends At{constructor(e){super(),Ct(this,e,$l,Tl,$t,{step:0})}}function Al(t){let e,n,r,o,i;return{c(){e=xt("button"),n=xt("span"),n.textContent="×",L(n,"aria-hidden","true"),L(e,"aria-label",r=t[0].label?t[0].label:"Close Tour"),L(e,"class","shepherd-cancel-icon"),L(e,"type","button")},m(s,l){gt(s,e,l),be(e,n),o||(i=gn(e,"click",t[1]),o=!0)},p(s,[l]){l&1&&r!==(r=s[0].label?s[0].label:"Close Tour")&&L(e,"aria-label",r)},i:lt,o:lt,d(s){s&&ft(e),o=!1,i()}}}function Il(t,e,n){let{cancelIcon:r,step:o}=e;const i=s=>{s.preventDefault(),o.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,r=s.cancelIcon),"step"in s&&n(2,o=s.step)},[r,i,o]}class Rl extends At{constructor(e){super(),Ct(this,e,Il,Al,$t,{cancelIcon:0,step:2})}}function Pl(t){let e;return{c(){e=xt("h3"),L(e,"id",t[1]),L(e,"class","shepherd-title")},m(n,r){gt(n,e,r),t[3](e)},p(n,[r]){r&2&&L(e,"id",n[1])},i:lt,o:lt,d(n){n&&ft(e),t[3](null)}}}function kl(t,e,n){let{labelId:r,element:o,title:i}=e;Qn(()=>{Lt(i)&&n(2,i=i()),n(0,o.innerHTML=i,o)});function s(l){we[l?"unshift":"push"](()=>{o=l,n(0,o)})}return t.$$set=l=>{"labelId"in l&&n(1,r=l.labelId),"element"in l&&n(0,o=l.element),"title"in l&&n(2,i=l.title)},[o,r,i,s]}class Ml extends At{constructor(e){super(),Ct(this,e,kl,Pl,$t,{labelId:1,element:0,title:2})}}function So(t){let e,n;return e=new Ml({props:{labelId:t[0],title:t[2]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&1&&(i.labelId=r[0]),o&4&&(i.title=r[2]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function Oo(t){let e,n;return e=new Rl({props:{cancelIcon:t[3],step:t[1]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&8&&(i.cancelIcon=r[3]),o&2&&(i.step=r[1]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function Dl(t){let e,n,r,o=t[2]&&So(t),i=t[3]&&t[3].enabled&&Oo(t);return{c(){e=xt("header"),o&&o.c(),n=pn(),i&&i.c(),L(e,"class","shepherd-header")},m(s,l){gt(s,e,l),o&&o.m(e,null),be(e,n),i&&i.m(e,null),r=!0},p(s,[l]){s[2]?o?(o.p(s,l),l&4&&P(o,1)):(o=So(s),o.c(),P(o,1),o.m(e,n)):o&&(Zt(),V(o,1,1,()=>{o=null}),Qt()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&P(i,1)):(i=Oo(s),i.c(),P(i,1),i.m(e,null)):i&&(Zt(),V(i,1,1,()=>{i=null}),Qt())},i(s){r||(P(o),P(i),r=!0)},o(s){V(o),V(i),r=!1},d(s){s&&ft(e),o&&o.d(),i&&i.d()}}}function Ll(t,e,n){let{labelId:r,step:o}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,r=l.labelId),"step"in l&&n(1,o=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=o.options.title),n(3,s=o.options.cancelIcon))},[r,o,i,s]}class Fl extends At{constructor(e){super(),Ct(this,e,Ll,Dl,$t,{labelId:0,step:1})}}function jl(t){let e;return{c(){e=xt("div"),L(e,"class","shepherd-text"),L(e,"id",t[1])},m(n,r){gt(n,e,r),t[3](e)},p(n,[r]){r&2&&L(e,"id",n[1])},i:lt,o:lt,d(n){n&&ft(e),t[3](null)}}}function Bl(t,e,n){let{descriptionId:r,element:o,step:i}=e;Qn(()=>{let{text:l}=i.options;Lt(l)&&(l=l.call(i)),Ue(l)?o.appendChild(l):n(0,o.innerHTML=l,o)});function s(l){we[l?"unshift":"push"](()=>{o=l,n(0,o)})}return t.$$set=l=>{"descriptionId"in l&&n(1,r=l.descriptionId),"element"in l&&n(0,o=l.element),"step"in l&&n(2,i=l.step)},[o,r,i,s]}class Wl extends At{constructor(e){super(),Ct(this,e,Bl,jl,$t,{descriptionId:1,element:0,step:2})}}function To(t){let e,n;return e=new Fl({props:{labelId:t[1],step:t[2]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&2&&(i.labelId=r[1]),o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function $o(t){let e,n;return e=new Wl({props:{descriptionId:t[0],step:t[2]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&1&&(i.descriptionId=r[0]),o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function Co(t){let e,n;return e=new Cl({props:{step:t[2]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function Nl(t){let e,n=!Q(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,r,o=!Q(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&To(t),a=o&&$o(t),f=s&&Co(t);return{c(){e=xt("div"),c&&c.c(),r=pn(),a&&a.c(),i=pn(),f&&f.c(),L(e,"class","shepherd-content")},m(h,d){gt(h,e,d),c&&c.m(e,null),be(e,r),a&&a.m(e,null),be(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!Q(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&P(c,1)):(c=To(h),c.c(),P(c,1),c.m(e,r)):c&&(Zt(),V(c,1,1,()=>{c=null}),Qt()),d&4&&(o=!Q(h[2].options.text)),o?a?(a.p(h,d),d&4&&P(a,1)):(a=$o(h),a.c(),P(a,1),a.m(e,i)):a&&(Zt(),V(a,1,1,()=>{a=null}),Qt()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&P(f,1)):(f=Co(h),f.c(),P(f,1),f.m(e,null)):f&&(Zt(),V(f,1,1,()=>{f=null}),Qt())},i(h){l||(P(c),P(a),P(f),l=!0)},o(h){V(c),V(a),V(f),l=!1},d(h){h&&ft(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function Hl(t,e,n){let{descriptionId:r,labelId:o,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,r=s.descriptionId),"labelId"in s&&n(1,o=s.labelId),"step"in s&&n(2,i=s.step)},[r,o,i]}class Vl extends At{constructor(e){super(),Ct(this,e,Hl,Nl,$t,{descriptionId:0,labelId:1,step:2})}}function Ao(t){let e;return{c(){e=xt("div"),L(e,"class","shepherd-arrow"),L(e,"data-popper-arrow","")},m(n,r){gt(n,e,r)},d(n){n&&ft(e)}}}function Ul(t){let e,n,r,o,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&Ao();r=new Vl({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":o=Q(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=al(h,f[d]);return{c(){e=xt("div"),a&&a.c(),n=pn(),te(r.$$.fragment),mo(e,h),ye(e,"shepherd-has-cancel-icon",t[5]),ye(e,"shepherd-has-title",t[6]),ye(e,"shepherd-element",!0)},m(d,p){gt(d,e,p),a&&a.m(e,null),be(e,n),Wt(r,e,null),t[13](e),s=!0,l||(c=gn(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=Ao(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),r.$set(m),mo(e,h=wl(f,[(!s||p&20&&o!==(o=Q(d[4].options.text)?null:d[2]))&&{"aria-describedby":o},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),ye(e,"shepherd-has-cancel-icon",d[5]),ye(e,"shepherd-has-title",d[6]),ye(e,"shepherd-element",!0)},i(d){s||(P(r.$$.fragment,d),s=!0)},o(d){V(r.$$.fragment,d),s=!1},d(d){d&&ft(e),a&&a.d(),Nt(r),t[13](null),l=!1,c()}}}const ql=9,Yl=27,zl=37,Kl=39;function Io(t){return t.split(" ").filter(e=>!!e.length)}function Jl(t,e,n){let{classPrefix:r,element:o,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>o;gl(()=>{n(1,h={[`data-${r}shepherd-step-id`]:f.id}),n(9,l=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),Qn(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(qe(g)){const O=Io(g);O.length&&o.classList.remove(...O)}}function x(g){if(qe(g)){const O=Io(g);O.length&&o.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case ql:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case Yl:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case zl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case Kl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){we[g?"unshift":"push"](()=>{o=g,n(0,o)})}return t.$$set=g=>{"classPrefix"in g&&n(11,r=g.classPrefix),"element"in g&&n(0,o=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[o,h,i,c,f,d,p,S,s,l,a,r,y,b]}class Xl extends At{constructor(e){super(),Ct(this,e,Jl,Ul,$t,{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 rr extends jn{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?Jr(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,Hn(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){rl(this),Ue(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=bs(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Lt(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new Xl({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();Lt(this.options.scrollToHandler)?this.options.scrollToHandler(n):Zi(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=e.classes?e.classes:"",o=n&&n.classes?n.classes:"",i=[...r.split(" "),...o.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=Wn({},n||{}),this.options=Object.assign({arrow:!0},n,e,nl(n,e));const{when:r}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Gr()}`,r&&Object.keys(r).forEach(o=>{this.on(o,r[o],this)})}_setupElements(){Q(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&ps(this),el(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),r=this.target||document.body;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function Gl(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&Ue(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function Zl({width:t,height:e,x:n=0,y:r=0,r:o=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof o=="number"?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${r}a${l},${l},0,0,0-${l},${l}V${e+r-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${r+c}a${c},${c},0,0,0-${c}-${c}Z`}function Ql(t){let e,n,r,o,i;return{c(){e=po("svg"),n=po("path"),L(n,"d",t[2]),L(e,"class",r=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){gt(s,e,l),be(e,n),t[11](e),o||(i=gn(e,"touchmove",t[3]),o=!0)},p(s,[l]){l&4&&L(n,"d",s[2]),l&2&&r!==(r=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&L(e,"class",r)},i:lt,o:lt,d(s){s&&ft(e),t[11](null),o=!1,i()}}}function Ro(t){if(!t)return null;const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return n!=="hidden"&&n!=="visible"&&t.scrollHeight>=t.clientHeight?t:Ro(t.parentElement)}function tc(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var r;const s=(r=n)==null?void 0:r.frameElement;if(s){var o,i;const l=s.getBoundingClientRect();e.top+=l.top+((o=l.scrollTop)!=null?o:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function ec(t,e){const n=t.getBoundingClientRect();let r=n.y||n.top,o=n.bottom||r+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;r=Math.max(r,l),o=Math.min(o,c)}const i=Math.max(o-r,0);return{y:r,height:i}}function nc(t,e,n){let{element:r,openingProperties:o}=e,i=!1,s,l;a();const c=()=>r;function a(){n(4,o={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,I=0,G,M){if(M){const{y:N,height:D}=ec(M,G),{x:W,width:B,left:A}=M.getBoundingClientRect();n(4,o={width:B+b*2,height:D+b*2,x:(W||A)+O-b,y:N+I-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:I=0,modalOverlayOpeningYOffset:G=0}=b.options,M=tc(b.target),N=Ro(b.target),D=()=>{s=void 0,h(g,O,I+M.left,G+M.top,N,b.target),s=requestAnimationFrame(D)};D(),_()}function S(b){we[b?"unshift":"push"](()=>{r=b,n(0,r)})}return t.$$set=b=>{"element"in b&&n(0,r=b.element),"openingProperties"in b&&n(4,o=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=Zl(o))},[r,i,l,y,o,c,a,f,h,d,p,S]}class rc extends At{constructor(e){super(),Ct(this,e,nc,Ql,$t,{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 oc extends jn{constructor(){super(),this.activeTour=void 0,Hn(this)}}class ic extends jn{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,Hn(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=Jr(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(i=>{this.on(i,s=>{s=s||{},s.tour=this,ee.trigger(i,s)})})(o)}),this._setTourID(e.id),this}addStep(e,n){let r=e;return r instanceof rr?r.tour=this:r=new rr(this,r),Q(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Lt(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return ee.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((r,o)=>{if(r.id===e)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(o,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const r=qe(e)?this.getById(e):this.steps[e];r&&(this._updateStateBeforeShow(),Lt(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.trigger("show",{step:r,previous:this.currentStep}),this.currentStep=r,r.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),Gl(this),this.trigger(e,{index:n}),ee.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}Ue(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),ee.activeTour=this}setupModal(){this.modal=new rc({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const r=this.steps.indexOf(e);if(r===this.steps.length-1)this.complete();else{const o=n?r+1:r-1;this.show(o,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",r=e||Gr();this.id=`${n}--${r}`}}const ee=new oc,Po=typeof window>"u";ee.Step=Po?gs:rr,ee.Tour=Po?ms:ic;var sc=Object.defineProperty,ko=t=>{throw TypeError(t)},lc=(t,e,n)=>e in t?sc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ee=(t,e,n)=>lc(t,typeof e!="symbol"?e+"":e,n),Mo=(t,e,n)=>e.has(t)||ko("Cannot "+n),_t=(t,e,n)=>(Mo(t,e,"read from private field"),n?n.call(t):e.get(t)),bn=(t,e,n)=>e.has(t)?ko("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),yn=(t,e,n,r)=>(Mo(t,e,"write to private field"),e.set(t,n),n);/*! shepherd.js 13.0.1 */function cc(t){return t instanceof Element}function Ge(t){return t instanceof HTMLElement}function Ht(t){return typeof t=="function"}function Ze(t){return typeof t=="string"}function tt(t){return t===void 0}class or{on(e,n,r,o=!1){var i;return tt(this.bindings)&&(this.bindings={}),tt(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:r,once:o}),this}once(e,n,r){return this.on(e,n,r,!0)}off(e,n){if(tt(this.bindings)||tt(this.bindings[e]))return this;if(tt(n))delete this.bindings[e];else{var r;(r=this.bindings[e])==null||r.forEach((o,i)=>{if(o.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!tt(this.bindings)&&this.bindings[e]){var r;(r=this.bindings[e])==null||r.forEach((o,i)=>{const{ctx:s,handler:l,once:c}=o,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function nt(){return nt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nt.apply(null,arguments)}function Do(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}const Vt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Vt.defaultMerge;function ac(t,e){return e}function Lo(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:dc(t)?1:t instanceof Set?3:t instanceof Map?4:5}function uc(t){const e=new Set;for(const n of t)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(r);return e}function fc(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function Fo(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const jo=new Set(["[object Object]","[object Module]"]);function dc(t){if(!jo.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!jo.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function hc(t,e,n){const r={};for(const o of uc(t)){const i=[];for(const c of t)fc(c,o)&&i.push(c[o]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:o,parents:t}),l=Wo(i,e,s);l!==Vt.skip&&(o==="__proto__"?Object.defineProperty(r,o,{value:l,configurable:!0,enumerable:!0,writable:!0}):r[o]=l)}return r}function pc(t){return t.flat()}function gc(t){return new Set(Fo(t))}function mc(t){return new Map(Fo(t))}function Bo(t){return t.at(-1)}var ir=Object.freeze({__proto__:null,mergeArrays:pc,mergeMaps:mc,mergeOthers:Bo,mergeRecords:hc,mergeSets:gc});function sr(...t){return bc({})(...t)}function bc(t,e){const n=yc(t,r);function r(...o){return Wo(o,n,e)}return r}function yc(t,e){var n,r;return{defaultMergeFunctions:ir,mergeFunctions:nt({},ir,Object.fromEntries(Object.entries(t).filter(([o,i])=>Object.hasOwn(ir,o)).map(([o,i])=>i===!1?[o,Bo]:[o,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:ac,deepmerge:e,useImplicitDefaultMerging:(r=t.enableImplicitDefaultMerging)!=null?r:!1,actions:Vt}}function Wo(t,e,n){if(t.length===0)return;if(t.length===1)return lr(t,e,n);const r=Lo(t[0]);if(r!==0&&r!==5){for(let o=1;o<t.length;o++)if(Lo(t[o])!==r)return lr(t,e,n)}switch(r){case 1:return vc(t,e,n);case 2:return wc(t,e,n);case 3:return xc(t,e,n);case 4:return _c(t,e,n);default:return lr(t,e,n)}}function vc(t,e,n){const r=e.mergeFunctions.mergeRecords(t,e,n);return r===Vt.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):r}function wc(t,e,n){const r=e.mergeFunctions.mergeArrays(t,e,n);return r===Vt.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):r}function xc(t,e,n){const r=e.mergeFunctions.mergeSets(t,e,n);return r===Vt.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):r}function _c(t,e,n){const r=e.mergeFunctions.mergeMaps(t,e,n);return r===Vt.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):r}function lr(t,e,n){const r=e.mergeFunctions.mergeOthers(t,e,n);return r===Vt.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):r}function cr(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const r=e[n],o=t[r];r!=="constructor"&&typeof o=="function"&&(t[r]=o.bind(t))}return t}function Ec(t,e){return n=>{if(t.isOpen()){const r=t.el&&n.currentTarget===t.el;(!tt(e)&&n.currentTarget.matches(e)||r)&&t.tour.next()}}}function Sc(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const r=Ec(t,n);let o=null;if(!tt(n)&&(o=document.querySelector(n),!o))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);o?(o.addEventListener(e,r),t.on("destroy",()=>o.removeEventListener(e,r))):(document.body.addEventListener(e,r,!0),t.on("destroy",()=>document.body.removeEventListener(e,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class Oc{constructor(e){}}class Tc{constructor(e,n){}}function No(t){return!Ze(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function $c(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(Ht(n.element)&&(n.element=n.element.call(t)),Ze(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Ho(t){return t==null?!0:!t.element||!t.on}function Vo(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const Se=Math.min,ne=Math.max,vn=Math.round,wn=Math.floor,Ut=t=>({x:t,y:t}),Cc={left:"right",right:"left",bottom:"top",top:"bottom"},Ac={start:"end",end:"start"};function ar(t,e,n){return ne(t,Se(e,n))}function Oe(t,e){return typeof t=="function"?t(e):t}function re(t){return t.split("-")[0]}function xn(t){return t.split("-")[1]}function ur(t){return t==="x"?"y":"x"}function fr(t){return t==="y"?"height":"width"}function Te(t){return["top","bottom"].includes(re(t))?"y":"x"}function dr(t){return ur(Te(t))}function Ic(t,e,n){n===void 0&&(n=!1);const r=xn(t),o=dr(t),i=fr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=_n(s)),[s,_n(s)]}function Rc(t){const e=_n(t);return[hr(t),e,hr(e)]}function hr(t){return t.replace(/start|end/g,e=>Ac[e])}function Pc(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:s;default:return[]}}function kc(t,e,n,r){const o=xn(t);let i=Pc(re(t),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(hr)))),i}function _n(t){return t.replace(/left|right|bottom|top/g,e=>Cc[e])}function Mc(t){return nt({top:0,right:0,bottom:0,left:0},t)}function Uo(t){return typeof t!="number"?Mc(t):{top:t,right:t,bottom:t,left:t}}function En(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}const Dc=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Lc=["mainAxis","crossAxis","limiter"];function qo(t,e,n){let{reference:r,floating:o}=t;const i=Te(e),s=dr(e),l=fr(s),c=re(e),a=i==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-o.width,y:h};break;default:p={x:r.x,y:r.y}}switch(xn(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const Fc=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:h}=qo(a,r,c),d=r,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=nt({},p,{[_]:nt({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):g.rects),{x:f,y:h}=qo(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:o,middlewareData:p}};async function Yo(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=Oe(e,t),m=Uo(p),y=l[d?h==="floating"?"reference":"floating":h],_=En(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),w=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},b=En(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:c}):w);return{top:(_.top-b.top+m.top)/S.y,bottom:(b.bottom-_.bottom+m.bottom)/S.y,left:(_.left-b.left+m.left)/S.x,right:(b.right-_.right+m.right)/S.x}}const jc=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=Oe(t,e)||{};if(a==null)return{};const h=Uo(f),d={x:n,y:r},p=dr(o),m=fr(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let I=O?O[S]:0;(!I||!await(s.isElement==null?void 0:s.isElement(O)))&&(I=l.floating[S]||i.floating[m]);const G=b/2-g/2,M=I/2-y[m]/2-1,N=Se(h[w],M),D=Se(h[x],M),W=N,B=I-y[m]-D,A=I/2-y[m]/2+G,H=ar(W,A,B),Y=!c.arrow&&xn(o)!=null&&A!==H&&i.reference[m]/2-(A<W?N:D)-y[m]/2<0,X=Y?A<W?A-W:A-B:0;return{[p]:d[p]+X,data:nt({[p]:H,centerOffset:A-H-X},Y&&{alignmentOffset:X}),reset:Y}}}),Bc=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:a}=e,f=Oe(t,e),{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:_=!0}=f,w=Do(f,Dc);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=re(o),S=Te(l),b=re(l)===l,g=await(c.isRTL==null?void 0:c.isRTL(a.floating)),O=p||(b||!_?[_n(l)]:Rc(l)),I=y!=="none";!p&&I&&O.push(...kc(l,_,y,g));const G=[l,...O],M=await Yo(e,w),N=[];let D=((r=i.flip)==null?void 0:r.overflows)||[];if(h&&N.push(M[x]),d){const H=Ic(o,s,g);N.push(M[H[0]],M[H[1]])}if(D=[...D,{placement:o,overflows:N}],!N.every(H=>H<=0)){var W,B;const H=(((W=i.flip)==null?void 0:W.index)||0)+1,Y=G[H];if(Y)return{data:{index:H,overflows:D},reset:{placement:Y}};let X=(B=D.filter(rt=>rt.overflows[0]<=0).sort((rt,Z)=>rt.overflows[1]-Z.overflows[1])[0])==null?void 0:B.placement;if(!X)switch(m){case"bestFit":{var A;const rt=(A=D.filter(Z=>{if(I){const K=Te(Z.placement);return K===S||K==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(K=>K>0).reduce((K,ut)=>K+ut,0)]).sort((Z,K)=>Z[1]-K[1])[0])==null?void 0:A[0];rt&&(X=rt);break}case"initialPlacement":X=l;break}if(o!==X)return{reset:{placement:X}}}return{}}}},Wc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,i=Oe(t,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x,y:S}=w;return{x,y:S}}}}=i,a=Do(i,Lc),f={x:n,y:r},h=await Yo(e,a),d=Te(re(o)),p=ur(d);let m=f[p],y=f[d];if(s){const w=p==="y"?"top":"left",x=p==="y"?"bottom":"right",S=m+h[w],b=m-h[x];m=ar(S,m,b)}if(l){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",S=y+h[w],b=y-h[x];y=ar(S,y,b)}const _=c.fn(nt({},e,{[p]:m,[d]:y}));return nt({},_,{data:{x:_.x-n,y:_.y-r}})}}},Nc=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=e,{offset:l=0,mainAxis:c=!0,crossAxis:a=!0}=Oe(t,e),f={x:n,y:r},h=Te(o),d=ur(h);let p=f[d],m=f[h];const y=Oe(l,e),_=typeof y=="number"?{mainAxis:y,crossAxis:0}:nt({mainAxis:0,crossAxis:0},y);if(c){const S=d==="y"?"height":"width",b=i.reference[d]-i.floating[S]+_.mainAxis,g=i.reference[d]+i.reference[S]-_.mainAxis;p<b?p=b:p>g&&(p=g)}if(a){var w,x;const S=d==="y"?"width":"height",b=["top","left"].includes(re(o)),g=i.reference[h]-i.floating[S]+(b&&((w=s.offset)==null?void 0:w[h])||0)+(b?0:_.crossAxis),O=i.reference[h]+i.reference[S]+(b?0:((x=s.offset)==null?void 0:x[h])||0)-(b?_.crossAxis:0);m<g?m=g:m>O&&(m=O)}return{[d]:p,[h]:m}}}};function $e(t){return zo(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function It(t){var e;return(e=(zo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function zo(t){return t instanceof Node||t instanceof ct(t).Node}function Et(t){return t instanceof Element||t instanceof ct(t).Element}function St(t){return t instanceof HTMLElement||t instanceof ct(t).HTMLElement}function Ko(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot}function Qe(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=mt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function Hc(t){return["table","td","th"].includes($e(t))}function Sn(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function pr(t){const e=gr(),n=mt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Vc(t){let e=qt(t);for(;St(e)&&!Ce(e);){if(Sn(e))return null;if(pr(e))return e;e=qt(e)}return null}function gr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ce(t){return["html","body","#document"].includes($e(t))}function mt(t){return ct(t).getComputedStyle(t)}function On(t){return Et(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qt(t){if($e(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ko(t)&&t.host||It(t);return Ko(e)?e.host:e}function Jo(t){const e=qt(t);return Ce(e)?t.ownerDocument?t.ownerDocument.body:t.body:St(e)&&Qe(e)?e:Jo(e)}function tn(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=Jo(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),s=ct(o);return i?e.concat(s,s.visualViewport||[],Qe(o)?o:[],s.frameElement&&n?tn(s.frameElement):[]):e.concat(o,tn(o,[],n))}function Xo(t){const e=mt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=St(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,l=vn(n)!==i||vn(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function mr(t){return Et(t)?t:t.contextElement}function Ae(t){const e=mr(t);if(!St(e))return Ut(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=Xo(e);let s=(i?vn(n.width):n.width)/r,l=(i?vn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Uc=Ut(0);function Go(t){const e=ct(t);return!gr()||!e.visualViewport?Uc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qc(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==ct(t)?!1:e}function oe(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=mr(t);let s=Ut(1);e&&(r?Et(r)&&(s=Ae(r)):s=Ae(t));const l=qc(i,n,r)?Go(i):Ut(0);let c=(o.left+l.x)/s.x,a=(o.top+l.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(i){const d=ct(i),p=r&&Et(r)?ct(r):r;let m=d,y=m.frameElement;for(;y&&r&&p!==m;){const _=Ae(y),w=y.getBoundingClientRect(),x=mt(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=ct(y),y=m.frameElement}}return En({width:f,height:h,x:c,y:a})}function Yc(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=It(r),l=e?Sn(e.floating):!1;if(r===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=Ut(1);const f=Ut(0),h=St(r);if((h||!h&&!i)&&(($e(r)!=="body"||Qe(s))&&(c=On(r)),St(r))){const d=oe(r);a=Ae(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function zc(t){return Array.from(t.getClientRects())}function Zo(t){return oe(It(t)).left+On(t).scrollLeft}function Kc(t){const e=It(t),n=On(t),r=t.ownerDocument.body,o=ne(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=ne(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Zo(t);const l=-n.scrollTop;return mt(r).direction==="rtl"&&(s+=ne(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Jc(t,e){const n=ct(t),r=It(t),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const a=gr();(!a||a&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}function Xc(t,e){const n=oe(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=St(t)?Ae(t):Ut(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=o*i.x,a=r*i.y;return{width:s,height:l,x:c,y:a}}function Qo(t,e,n){let r;if(e==="viewport")r=Jc(t,n);else if(e==="document")r=Kc(It(t));else if(Et(e))r=Xc(e,n);else{const o=Go(t);r=nt({},e,{x:e.x-o.x,y:e.y-o.y})}return En(r)}function ti(t,e){const n=qt(t);return n===e||!Et(n)||Ce(n)?!1:mt(n).position==="fixed"||ti(n,e)}function Gc(t,e){const n=e.get(t);if(n)return n;let r=tn(t,[],!1).filter(l=>Et(l)&&$e(l)!=="body"),o=null;const i=mt(t).position==="fixed";let s=i?qt(t):t;for(;Et(s)&&!Ce(s);){const l=mt(s),c=pr(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&o&&["absolute","fixed"].includes(o.position)||Qe(s)&&!c&&ti(t,s))?r=r.filter(a=>a!==s):o=l,s=qt(s)}return e.set(t,r),r}function Zc(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[...n==="clippingAncestors"?Sn(e)?[]:Gc(e,this._c):[].concat(n),r],s=i[0],l=i.reduce((c,a)=>{const f=Qo(e,a,o);return c.top=ne(f.top,c.top),c.right=Se(f.right,c.right),c.bottom=Se(f.bottom,c.bottom),c.left=ne(f.left,c.left),c},Qo(e,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Qc(t){const{width:e,height:n}=Xo(t);return{width:e,height:n}}function ta(t,e,n){const r=St(e),o=It(e),i=n==="fixed",s=oe(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Ut(0);if(r||!r&&!i)if(($e(e)!=="body"||Qe(o))&&(l=On(e)),r){const h=oe(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else o&&(c.x=Zo(o));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function br(t){return mt(t).position==="static"}function ei(t,e){return!St(t)||mt(t).position==="fixed"?null:e?e(t):t.offsetParent}function ni(t,e){const n=ct(t);if(Sn(t))return n;if(!St(t)){let o=qt(t);for(;o&&!Ce(o);){if(Et(o)&&!br(o))return o;o=qt(o)}return n}let r=ei(t,e);for(;r&&Hc(r)&&br(r);)r=ei(r,e);return r&&Ce(r)&&br(r)&&!pr(r)?n:r||Vc(t)||n}const ea=async function(t){const e=this.getOffsetParent||ni,n=this.getDimensions,r=await n(t.floating);return{reference:ta(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function na(t){return mt(t).direction==="rtl"}const ra={convertOffsetParentRelativeRectToViewportRelativeRect:Yc,getDocumentElement:It,getClippingRect:Zc,getOffsetParent:ni,getElementRects:ea,getClientRects:zc,getDimensions:Qc,getScale:Ae,isElement:Et,isRTL:na};function oa(t,e){let n=null,r;const o=It(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=wn(f),m=wn(o.clientWidth-(a+h)),y=wn(o.clientHeight-(f+d)),_=wn(a),w={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:ne(0,Se(1,c))||1};let x=!0;function S(b){const g=b[0].intersectionRatio;if(g!==c){if(!x)return s();g?s(!1,g):r=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,nt({},w,{root:o.ownerDocument}))}catch{n=new IntersectionObserver(S,w)}n.observe(t)}return s(!0),i}function ia(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,a=mr(t),f=o||i?[...a?tn(a):[],...tn(e)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?oa(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?oe(t):null;c&&_();function _(){const w=oe(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const sa=Wc,la=Bc,ca=jc,aa=Nc,ua=(t,e,n)=>{const r=new Map,o=nt({platform:ra},n),i=nt({},o.platform,{_c:r});return Fc(t,e,nt({},o,{platform:i}))};function fa(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const r=ba(e,t),o=Ho(e);return o&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=ia(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}pa(n,t,r,o)}),t.target=e.element,r}function da(t,e){return{floatingUIOptions:sr(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function ha(t){t.cleanup&&t.cleanup(),t.cleanup=null}function pa(t,e,n,r){return ua(t,e.el,n).then(ga(e,r)).then(o=>new Promise(i=>{setTimeout(()=>i(o),300)})).then(o=>{o!=null&&o.el&&o.el.focus({preventScroll:!0})})}function ga(t,e){return({x:n,y:r,placement:o,middlewareData:i})=>(t.el&&(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),t.el.dataset.popperPlacement=o,ma(t.el,i)),t)}function ma(t,e){const n=t.querySelector(".shepherd-arrow");if(Ge(n)&&e.arrow){const{x:r,y:o}=e.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:""})}}function ba(t,e){const n={strategy:"absolute"};n.middleware=[];const r=ya(e);if(!Ho(t)){if(n.middleware.push(la(),sa({limiter:aa(),crossAxis:!0})),r){var o,i;const s=(t==null||(o=t.on)==null?void 0:o.includes("-start"))||(t==null||(i=t.on)==null?void 0:i.includes("-end"));n.middleware.push(ca({element:r,padding:s?4:0}))}n.placement=t.on}return sr(e.options.floatingUIOptions||{},n)}function ya(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function at(){}function va(t,e){for(const n in e)t[n]=e[n];return t}function ri(t){return t()}function oi(){return Object.create(null)}function en(t){t.forEach(ri)}function yr(t){return typeof t=="function"}function Rt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function wa(t){return Object.keys(t).length===0}function Ie(t,e){t.appendChild(e)}function bt(t,e,n){t.insertBefore(e,n||null)}function dt(t){t.parentNode&&t.parentNode.removeChild(t)}function xa(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Ot(t){return document.createElement(t)}function ii(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function si(t){return document.createTextNode(t)}function Tn(){return si(" ")}function _a(){return si("")}function $n(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function F(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Ea=["width","height"];function li(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&Ea.indexOf(r)===-1?t[r]=e[r]:F(t,r,e[r])}function Sa(t){return Array.from(t.childNodes)}function Re(t,e,n){t.classList.toggle(e,!!n)}let nn;function rn(t){nn=t}function ci(){if(!nn)throw new Error("Function called outside component initialization");return nn}function Oa(t){ci().$$.on_mount.push(t)}function vr(t){ci().$$.after_update.push(t)}const Pe=[],ke=[];let Me=[];const ai=[],Ta=Promise.resolve();let wr=!1;function $a(){wr||(wr=!0,Ta.then(ui))}function xr(t){Me.push(t)}const _r=new Set;let De=0;function ui(){if(De!==0)return;const t=nn;do{try{for(;De<Pe.length;){const e=Pe[De];De++,rn(e),Ca(e.$$)}}catch(e){throw Pe.length=0,De=0,e}for(rn(null),Pe.length=0,De=0;ke.length;)ke.pop()();for(let e=0;e<Me.length;e+=1){const n=Me[e];_r.has(n)||(_r.add(n),n())}Me.length=0}while(Pe.length);for(;ai.length;)ai.pop()();wr=!1,_r.clear(),rn(t)}function Ca(t){if(t.fragment!==null){t.update(),en(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(xr)}}function Aa(t){const e=[],n=[];Me.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),Me=e}const Cn=new Set;let ie;function se(){ie={r:0,c:[],p:ie}}function le(){ie.r||en(ie.c),ie=ie.p}function k(t,e){t&&t.i&&(Cn.delete(t),t.i(e))}function U(t,e,n,r){if(t&&t.o){if(Cn.has(t))return;Cn.add(t),ie.c.push(()=>{Cn.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function fi(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Ia(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(r[c]=1);for(const c in l)o[c]||(n[c]=l[c],o[c]=1);t[i]=l}else for(const c in s)o[c]=1}for(const s in r)s in n||(n[s]=void 0);return n}function ce(t){t&&t.c()}function Yt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),xr(()=>{const i=t.$$.on_mount.map(ri).filter(yr);t.$$.on_destroy?t.$$.on_destroy.push(...i):en(i),t.$$.on_mount=[]}),o.forEach(xr)}function zt(t,e){const n=t.$$;n.fragment!==null&&(Aa(n.after_update),en(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ra(t,e){t.$$.dirty[0]===-1&&(Pe.push(t),$a(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Pt(t,e,n,r,o,i,s=null,l=[-1]){const c=nn;rn(t);const a=t.$$={fragment:null,ctx:[],props:i,update:at,not_equal:o,bound:oi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:oi(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&o(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&Ra(t,h)),d}):[],a.update(),f=!0,en(a.before_update),a.fragment=r?r(a.ctx):!1,e.target){if(e.hydrate){const h=Sa(e.target);a.fragment&&a.fragment.l(h),h.forEach(dt)}else a.fragment&&a.fragment.c();e.intro&&k(t.$$.fragment),Yt(t,e.target,e.anchor),ui()}rn(c)}class kt{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){zt(this,1),this.$destroy=at}$on(e,n){if(!yr(n))return at;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!wa(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Pa="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Pa);function ka(t){let e,n,r,o,i;return{c(){e=Ot("button"),F(e,"aria-label",n=t[3]?t[3]:null),F(e,"class",r=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],F(e,"tabindex","0"),F(e,"type","button")},m(s,l){bt(s,e,l),e.innerHTML=t[5],o||(i=$n(e,"click",function(){yr(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&F(e,"aria-label",n),l&18&&r!==(r=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&F(e,"class",r),l&4&&(e.disabled=t[2])},i:at,o:at,d(s){s&&dt(e),o=!1,i()}}}function Ma(t,e,n){let{config:r,step:o}=e,i,s,l,c,a,f;function h(d){return Ht(d)?d=d.call(o):d}return t.$$set=d=>{"config"in d&&n(6,r=d.config),"step"in d&&n(7,o=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=r.action?r.action.bind(o.tour):null),n(1,s=r.classes),n(2,l=r.disabled?h(r.disabled):!1),n(3,c=r.label?h(r.label):null),n(4,a=r.secondary),n(5,f=r.text?h(r.text):null))},[i,s,l,c,a,f,r,o]}class Da extends kt{constructor(e){super(),Pt(this,e,Ma,ka,Rt,{config:6,step:7})}}function di(t,e,n){const r=t.slice();return r[2]=e[n],r}function hi(t){let e,n,r=fi(t[1]),o=[];for(let s=0;s<r.length;s+=1)o[s]=pi(di(t,r,s));const i=s=>U(o[s],1,1,()=>{o[s]=null});return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=_a()},m(s,l){for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(s,l);bt(s,e,l),n=!0},p(s,l){if(l&3){r=fi(s[1]);let c;for(c=0;c<r.length;c+=1){const a=di(s,r,c);o[c]?(o[c].p(a,l),k(o[c],1)):(o[c]=pi(a),o[c].c(),k(o[c],1),o[c].m(e.parentNode,e))}for(se(),c=r.length;c<o.length;c+=1)i(c);le()}},i(s){if(!n){for(let l=0;l<r.length;l+=1)k(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)U(o[l]);n=!1},d(s){s&&dt(e),xa(o,s)}}}function pi(t){let e,n;return e=new Da({props:{config:t[2],step:t[0]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&2&&(i.config=r[2]),o&1&&(i.step=r[0]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function La(t){let e,n,r=t[1]&&hi(t);return{c(){e=Ot("footer"),r&&r.c(),F(e,"class","shepherd-footer")},m(o,i){bt(o,e,i),r&&r.m(e,null),n=!0},p(o,[i]){o[1]?r?(r.p(o,i),i&2&&k(r,1)):(r=hi(o),r.c(),k(r,1),r.m(e,null)):r&&(se(),U(r,1,1,()=>{r=null}),le())},i(o){n||(k(r),n=!0)},o(o){U(r),n=!1},d(o){o&&dt(e),r&&r.d()}}}function Fa(t,e,n){let r,{step:o}=e;return t.$$set=i=>{"step"in i&&n(0,o=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,r=o.options.buttons)},[o,r]}class ja extends kt{constructor(e){super(),Pt(this,e,Fa,La,Rt,{step:0})}}function Ba(t){let e,n,r,o,i;return{c(){e=Ot("button"),n=Ot("span"),n.textContent="×",F(n,"aria-hidden","true"),F(e,"aria-label",r=t[0].label?t[0].label:"Close Tour"),F(e,"class","shepherd-cancel-icon"),F(e,"type","button")},m(s,l){bt(s,e,l),Ie(e,n),o||(i=$n(e,"click",t[1]),o=!0)},p(s,[l]){l&1&&r!==(r=s[0].label?s[0].label:"Close Tour")&&F(e,"aria-label",r)},i:at,o:at,d(s){s&&dt(e),o=!1,i()}}}function Wa(t,e,n){let{cancelIcon:r,step:o}=e;const i=s=>{s.preventDefault(),o.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,r=s.cancelIcon),"step"in s&&n(2,o=s.step)},[r,i,o]}class Na extends kt{constructor(e){super(),Pt(this,e,Wa,Ba,Rt,{cancelIcon:0,step:2})}}function Ha(t){let e;return{c(){e=Ot("h3"),F(e,"id",t[1]),F(e,"class","shepherd-title")},m(n,r){bt(n,e,r),t[3](e)},p(n,[r]){r&2&&F(e,"id",n[1])},i:at,o:at,d(n){n&&dt(e),t[3](null)}}}function Va(t,e,n){let{labelId:r,element:o,title:i}=e;vr(()=>{Ht(i)&&n(2,i=i()),n(0,o.innerHTML=i,o)});function s(l){ke[l?"unshift":"push"](()=>{o=l,n(0,o)})}return t.$$set=l=>{"labelId"in l&&n(1,r=l.labelId),"element"in l&&n(0,o=l.element),"title"in l&&n(2,i=l.title)},[o,r,i,s]}class Ua extends kt{constructor(e){super(),Pt(this,e,Va,Ha,Rt,{labelId:1,element:0,title:2})}}function gi(t){let e,n;return e=new Ua({props:{labelId:t[0],title:t[2]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&1&&(i.labelId=r[0]),o&4&&(i.title=r[2]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function mi(t){let e,n;return e=new Na({props:{cancelIcon:t[3],step:t[1]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&8&&(i.cancelIcon=r[3]),o&2&&(i.step=r[1]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function qa(t){let e,n,r,o=t[2]&&gi(t),i=t[3]&&t[3].enabled&&mi(t);return{c(){e=Ot("header"),o&&o.c(),n=Tn(),i&&i.c(),F(e,"class","shepherd-header")},m(s,l){bt(s,e,l),o&&o.m(e,null),Ie(e,n),i&&i.m(e,null),r=!0},p(s,[l]){s[2]?o?(o.p(s,l),l&4&&k(o,1)):(o=gi(s),o.c(),k(o,1),o.m(e,n)):o&&(se(),U(o,1,1,()=>{o=null}),le()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&k(i,1)):(i=mi(s),i.c(),k(i,1),i.m(e,null)):i&&(se(),U(i,1,1,()=>{i=null}),le())},i(s){r||(k(o),k(i),r=!0)},o(s){U(o),U(i),r=!1},d(s){s&&dt(e),o&&o.d(),i&&i.d()}}}function Ya(t,e,n){let{labelId:r,step:o}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,r=l.labelId),"step"in l&&n(1,o=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=o.options.title),n(3,s=o.options.cancelIcon))},[r,o,i,s]}class za extends kt{constructor(e){super(),Pt(this,e,Ya,qa,Rt,{labelId:0,step:1})}}function Ka(t){let e;return{c(){e=Ot("div"),F(e,"class","shepherd-text"),F(e,"id",t[1])},m(n,r){bt(n,e,r),t[3](e)},p(n,[r]){r&2&&F(e,"id",n[1])},i:at,o:at,d(n){n&&dt(e),t[3](null)}}}function Ja(t,e,n){let{descriptionId:r,element:o,step:i}=e;vr(()=>{let{text:l}=i.options;Ht(l)&&(l=l.call(i)),Ge(l)?o.appendChild(l):n(0,o.innerHTML=l,o)});function s(l){ke[l?"unshift":"push"](()=>{o=l,n(0,o)})}return t.$$set=l=>{"descriptionId"in l&&n(1,r=l.descriptionId),"element"in l&&n(0,o=l.element),"step"in l&&n(2,i=l.step)},[o,r,i,s]}class Xa extends kt{constructor(e){super(),Pt(this,e,Ja,Ka,Rt,{descriptionId:1,element:0,step:2})}}function bi(t){let e,n;return e=new za({props:{labelId:t[1],step:t[2]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&2&&(i.labelId=r[1]),o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function yi(t){let e,n;return e=new Xa({props:{descriptionId:t[0],step:t[2]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&1&&(i.descriptionId=r[0]),o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function vi(t){let e,n;return e=new ja({props:{step:t[2]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function Ga(t){let e,n=!tt(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,r,o=!tt(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&bi(t),a=o&&yi(t),f=s&&vi(t);return{c(){e=Ot("div"),c&&c.c(),r=Tn(),a&&a.c(),i=Tn(),f&&f.c(),F(e,"class","shepherd-content")},m(h,d){bt(h,e,d),c&&c.m(e,null),Ie(e,r),a&&a.m(e,null),Ie(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!tt(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&k(c,1)):(c=bi(h),c.c(),k(c,1),c.m(e,r)):c&&(se(),U(c,1,1,()=>{c=null}),le()),d&4&&(o=!tt(h[2].options.text)),o?a?(a.p(h,d),d&4&&k(a,1)):(a=yi(h),a.c(),k(a,1),a.m(e,i)):a&&(se(),U(a,1,1,()=>{a=null}),le()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&k(f,1)):(f=vi(h),f.c(),k(f,1),f.m(e,null)):f&&(se(),U(f,1,1,()=>{f=null}),le())},i(h){l||(k(c),k(a),k(f),l=!0)},o(h){U(c),U(a),U(f),l=!1},d(h){h&&dt(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function Za(t,e,n){let{descriptionId:r,labelId:o,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,r=s.descriptionId),"labelId"in s&&n(1,o=s.labelId),"step"in s&&n(2,i=s.step)},[r,o,i]}class Qa extends kt{constructor(e){super(),Pt(this,e,Za,Ga,Rt,{descriptionId:0,labelId:1,step:2})}}function wi(t){let e;return{c(){e=Ot("div"),F(e,"class","shepherd-arrow"),F(e,"data-popper-arrow","")},m(n,r){bt(n,e,r)},d(n){n&&dt(e)}}}function tu(t){let e,n,r,o,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&wi();r=new Qa({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":o=tt(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=va(h,f[d]);return{c(){e=Ot("div"),a&&a.c(),n=Tn(),ce(r.$$.fragment),li(e,h),Re(e,"shepherd-has-cancel-icon",t[5]),Re(e,"shepherd-has-title",t[6]),Re(e,"shepherd-element",!0)},m(d,p){bt(d,e,p),a&&a.m(e,null),Ie(e,n),Yt(r,e,null),t[13](e),s=!0,l||(c=$n(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=wi(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),r.$set(m),li(e,h=Ia(f,[(!s||p&20&&o!==(o=tt(d[4].options.text)?null:d[2]))&&{"aria-describedby":o},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),Re(e,"shepherd-has-cancel-icon",d[5]),Re(e,"shepherd-has-title",d[6]),Re(e,"shepherd-element",!0)},i(d){s||(k(r.$$.fragment,d),s=!0)},o(d){U(r.$$.fragment,d),s=!1},d(d){d&&dt(e),a&&a.d(),zt(r),t[13](null),l=!1,c()}}}const eu=9,nu=27,ru=37,ou=39;function xi(t){return t.split(" ").filter(e=>!!e.length)}function iu(t,e,n){let{classPrefix:r,element:o,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>o;Oa(()=>{n(1,h={[`data-${r}shepherd-step-id`]:f.id}),n(9,l=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),vr(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(Ze(g)){const O=xi(g);O.length&&o.classList.remove(...O)}}function x(g){if(Ze(g)){const O=xi(g);O.length&&o.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case eu:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case nu:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case ru:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case ou:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){ke[g?"unshift":"push"](()=>{o=g,n(0,o)})}return t.$$set=g=>{"classPrefix"in g&&n(11,r=g.classPrefix),"element"in g&&n(0,o=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[o,h,i,c,f,d,p,S,s,l,a,r,y,b]}class su extends kt{constructor(e){super(),Pt(this,e,iu,tu,Rt,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class Er extends or{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?No(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,cr(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ha(this),Ge(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=$c(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Ht(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new su({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();Ht(this.options.scrollToHandler)?this.options.scrollToHandler(n):cc(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=e.classes?e.classes:"",o=n&&n.classes?n.classes:"",i=[...r.split(" "),...o.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=sr({},n||{}),this.options=Object.assign({arrow:!0},n,e,da(n,e));const{when:r}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Vo()}`,r&&Object.keys(r).forEach(o=>{this.on(o,r[o],this)})}_setupElements(){tt(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Sc(this),fa(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),r=this.target||document.body;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function lu(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&Ge(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function cu({width:t,height:e,x:n=0,y:r=0,r:o=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof o=="number"?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${r}a${l},${l},0,0,0-${l},${l}V${e+r-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${r+c}a${c},${c},0,0,0-${c}-${c}Z`}function au(t){let e,n,r,o,i;return{c(){e=ii("svg"),n=ii("path"),F(n,"d",t[2]),F(e,"class",r=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){bt(s,e,l),Ie(e,n),t[11](e),o||(i=$n(e,"touchmove",t[3]),o=!0)},p(s,[l]){l&4&&F(n,"d",s[2]),l&2&&r!==(r=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&F(e,"class",r)},i:at,o:at,d(s){s&&dt(e),t[11](null),o=!1,i()}}}function _i(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return e!=="hidden"&&e!=="visible"&&t.scrollHeight>=t.clientHeight?t:_i(t.parentElement)}function uu(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var r;const s=(r=n)==null?void 0:r.frameElement;if(s){var o,i;const l=s.getBoundingClientRect();e.top+=l.top+((o=l.scrollTop)!=null?o:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function fu(t,e){const n=t.getBoundingClientRect();let r=n.y||n.top,o=n.bottom||r+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;r=Math.max(r,l),o=Math.min(o,c)}const i=Math.max(o-r,0);return{y:r,height:i}}function du(t,e,n){let{element:r,openingProperties:o}=e,i=!1,s,l;a();const c=()=>r;function a(){n(4,o={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,I=0,G,M){if(M){const{y:N,height:D}=fu(M,G),{x:W,width:B,left:A}=M.getBoundingClientRect();n(4,o={width:B+b*2,height:D+b*2,x:(W||A)+O-b,y:N+I-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:I=0,modalOverlayOpeningYOffset:G=0}=b.options,M=uu(b.target),N=_i(b.target),D=()=>{s=void 0,h(g,O,I+M.left,G+M.top,N,b.target),s=requestAnimationFrame(D)};D(),_()}function S(b){ke[b?"unshift":"push"](()=>{r=b,n(0,r)})}return t.$$set=b=>{"element"in b&&n(0,r=b.element),"openingProperties"in b&&n(4,o=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=cu(o))},[r,i,l,y,o,c,a,f,h,d,p,S]}class hu extends kt{constructor(e){super(),Pt(this,e,du,au,Rt,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}class Ei extends or{constructor(){super(),this.activeTour=void 0,cr(this)}}class pu extends or{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,cr(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=No(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(r=>{(o=>{this.on(o,i=>{i=i||{},i.tour=this,Mt.trigger(o,i)})})(r)}),this._setTourID(e.id),this}addStep(e,n){let r=e;return r instanceof Er?r.tour=this:r=new Er(this,r),tt(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Ht(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return Mt.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((r,o)=>{if(r.id===e)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(o,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const r=Ze(e)?this.getById(e):this.steps[e];r&&(this._updateStateBeforeShow(),Ht(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.trigger("show",{step:r,previous:this.currentStep}),this.currentStep=r,r.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),lu(this),this.trigger(e,{index:n}),Mt.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}Ge(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Mt.activeTour=this}setupModal(){this.modal=new hu({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const r=this.steps.indexOf(e);if(r===this.steps.length-1)this.complete();else{const o=n?r+1:r-1;this.show(o,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",r=e||Vo();this.id=`${n}--${r}`}}const Mt=new Ei,Si=typeof window>"u";Mt.Step=Si?Oc:Er,Mt.Tour=Si?Tc:pu;const Sr=(t,e)=>e.some(n=>t instanceof n);let Oi,Ti;function gu(){return Oi||(Oi=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function mu(){return Ti||(Ti=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Or=new WeakMap,Tr=new WeakMap,An=new WeakMap;function bu(t){const e=new Promise((n,r)=>{const o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{n(ae(t.result)),o()},s=()=>{r(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return An.set(e,t),e}function yu(t){if(Or.has(t))return;const e=new Promise((n,r)=>{const o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{n(),o()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});Or.set(t,e)}let $r={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Or.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ae(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function $i(t){$r=t($r)}function vu(t){return mu().includes(t)?function(...e){return t.apply(Cr(this),e),ae(this.request)}:function(...e){return ae(t.apply(Cr(this),e))}}function wu(t){return typeof t=="function"?vu(t):(t instanceof IDBTransaction&&yu(t),Sr(t,gu())?new Proxy(t,$r):t)}function ae(t){if(t instanceof IDBRequest)return bu(t);if(Tr.has(t))return Tr.get(t);const e=wu(t);return e!==t&&(Tr.set(t,e),An.set(e,t)),e}const Cr=t=>An.get(t);function xu(t,e,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(t,e),l=ae(s);return r&&s.addEventListener("upgradeneeded",c=>{r(ae(s.result),c.oldVersion,c.newVersion,ae(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{i&&c.addEventListener("close",()=>i()),o&&c.addEventListener("versionchange",a=>o(a.oldVersion,a.newVersion,a))}).catch(()=>{}),l}const _u=["get","getKey","getAll","getAllKeys","count"],Eu=["put","add","delete","clear"],Ar=new Map;function Ci(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Ar.get(e))return Ar.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,o=Eu.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||_u.includes(n)))return;const i=async function(s,...l){const c=this.transaction(s,o?"readwrite":"readonly");let a=c.store;return r&&(a=a.index(l.shift())),(await Promise.all([a[n](...l),o&&c.done]))[0]};return Ar.set(e,i),i}$i(t=>({...t,get:(e,n,r)=>Ci(e,n)||t.get(e,n,r),has:(e,n)=>!!Ci(e,n)||t.has(e,n)}));const Su=["continue","continuePrimaryKey","advance"],Ai={},Ir=new WeakMap,Ii=new WeakMap,Ou={get(t,e){if(!Su.includes(e))return t[e];let n=Ai[e];return n||(n=Ai[e]=function(...r){Ir.set(this,Ii.get(this)[e](...r))}),n}};async function*Tu(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,Ou);for(Ii.set(n,e),An.set(n,Cr(e));e;)yield n,e=await(Ir.get(n)||e.continue()),Ir.delete(n)}function Ri(t,e){return e===Symbol.asyncIterator&&Sr(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&Sr(t,[IDBIndex,IDBObjectStore])}$i(t=>({...t,get(e,n,r){return Ri(e,n)?Tu:t.get(e,n,r)},has(e,n){return Ri(e,n)||t.has(e,n)}}));var Le,Fe,je;class $u{constructor(e,n,r){if(bn(this,Le),bn(this,Fe),bn(this,je),Ee(this,"tourStateDb"),!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(!n)throw new Error("Shepherd Pro: Missing required apiPath option.");yn(this,Le,e),yn(this,Fe,n),yn(this,je,r)}getConfig(){return{apiKey:_t(this,Le),apiPath:_t(this,Fe),properties:_t(this,je)}}async getTourState(){try{const e=await fetch(`${_t(this,Fe)}/api/v1/state`,{headers:{Authorization:`ApiKey ${_t(this,Le)}`,"Content-Type":"application/json","X-Shepherd-Properties":JSON.stringify(_t(this,je))},method:"GET"});if(!e.ok)throw new Error("Could not fetch state for tours 🐑");const{data:n}=await e.json();if(this.tourStateDb=await xu("TourState",1,{upgrade(r){r.createObjectStore("tours",{keyPath:"id"})}}),Array.isArray(n)&&n.length){const r=this.tourStateDb.transaction("tours","readwrite"),o=n.map(i=>r.store.put(i));await Promise.all([...o,r.done])}}catch(e){throw new Error("Error fetching data: "+(e instanceof Error?e.message:"Unknown error"))}}async sendEvents(e){e.data.properties=_t(this,je);try{const n=await fetch(`${_t(this,Fe)}/api/v1/actor`,{headers:{Authorization:`ApiKey ${_t(this,Le)}`,"Content-Type":"application/json"},method:"POST",body:JSON.stringify(e)});if(!n.ok)throw new Error("Could not create an event 🐑");const{data:r}=await n.json();return r}catch(n){throw new Error("Error fetching data: "+(n instanceof Error?n.message:"Unknown error"))}}}Le=new WeakMap,Fe=new WeakMap,je=new WeakMap;function Cu(t){let e={};if(t.navigator){const n=t.navigator.userAgent;e={...e,$os:Iu(t),$browser:Pi(n,t.navigator.vendor,!!t.opera),$referrer:t.document.referrer,$referring_domain:Pu(t.document.referrer),$device:Ru(n),$current_url:t.location.href,$host:t.location.host,$pathname:t.location.pathname,$browser_version:Au(n,t.navigator.vendor,!!t.opera),$screen_height:t.screen.height,$screen_width:t.screen.width,$screen_dpr:t.devicePixelRatio}}return e={...e,$lib:"js",$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:new Date().getTime()/1e3},e}function q(t,e){return t.indexOf(e)>=0}function Pi(t,e,n){return e=e||"",n||q(t," OPR/")?q(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":q(t,"IEMobile")||q(t,"WPDesktop")?"Internet Explorer Mobile":q(t,"SamsungBrowser/")?"Samsung Internet":q(t,"Edge")||q(t,"Edg/")?"Microsoft Edge":q(t,"FBIOS")?"Facebook Mobile":q(t,"Chrome")?"Chrome":q(t,"CriOS")?"Chrome iOS":q(t,"UCWEB")||q(t,"UCBrowser")?"UC Browser":q(t,"FxiOS")?"Firefox iOS":q(e,"Apple")?q(t,"Mobile")?"Mobile Safari":"Safari":q(t,"Android")?"Android Mobile":q(t,"Konqueror")?"Konqueror":q(t,"Firefox")?"Firefox":q(t,"MSIE")||q(t,"Trident/")?"Internet Explorer":q(t,"Gecko")?"Mozilla":""}function Au(t,e,n){const r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},o=Pi(t,e,n),i=r[o]||void 0;if(i===void 0)return null;const s=t.match(i);return s?parseFloat(s[s.length-2]):null}function Iu(t){const e=t.navigator.userAgent;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""}function Ru(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""}function Pu(t){const e=t.split("/");return e.length>=3?e[2]:""}const ku="https://shepherdpro.com",Rr="shepherdPro:userId";var In;class ki extends Mt.Tour{constructor(e){super(e),bn(this,In,null),yn(this,In,localStorage.getItem(Rr));const{dataRequester:n}=Be;n&&(this.trackedEvents.forEach(r=>this.on(r,o=>{const{tour:i}=o,{id:s,steps:l}=i;let c;if(r!=="active"){const{step:f}=o;f&&(c=l.findIndex(h=>h.id===f.id)+1)}const a={currentUserId:_t(this,In),eventType:r,journeyData:{id:s,currentStep:c,numberOfSteps:l.length,tourOptions:i.options}};n==null||n.sendEvents({data:a})})),this.isTourAutoStart(this.options.id))}async start(){await Be.isTourEnabled(this.options.id)&&(await super.start(),Be.activeTour=Mt.activeTour)}async isTourAutoStart(e){var n;const{dataRequester:r}=Be;if(!r)return;const o=await((n=r.tourStateDb)==null?void 0:n.get("tours",e));o!=null&&o.isAutoStart&&this.start()}}In=new WeakMap,Ee(ki,"trackedEvents",["active","cancel","complete","show"]);class Mu extends Ei{constructor(){super(),Ee(this,"apiKey"),Ee(this,"apiPath"),Ee(this,"dataRequester"),Ee(this,"properties"),this.Tour=ki,this.Step=Mt.Step}async init(e,n,r){if(!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(this.apiKey=e,this.apiPath=n??ku,this.properties=r??{},this.properties.context=Cu(window),this.apiKey){const o=localStorage.getItem(Rr);this.properties.actorId=o,this.dataRequester=new $u(this.apiKey,this.apiPath,this.properties);const i=[this.dataRequester.getTourState()];o||i.push(this.createNewActor()),await Promise.all(i)}}async createNewActor(){if(!this.dataRequester)return;const e=await this.dataRequester.sendEvents({data:{currentUserId:null,eventType:"setup"}});localStorage.setItem(Rr,String(e.actorId))}async isTourEnabled(e){var n;if(!this.dataRequester)return;const r=await((n=this.dataRequester.tourStateDb)==null?void 0:n.get("tours",e));return(r==null?void 0:r.isActive)??!0}}const Be=new Mu,Rn=Dt.createContext(void 0),Du=Rn.Consumer,Lu=()=>{const t=Dt.useContext(Rn);if(!t)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:e}=t;return e},Fu=({apiKey:t,apiPath:e,properties:n,children:r})=>{let o=ee;return typeof window<"u"&&t&&(o=Be,Be.init(t,e,n)),Gi.jsx(Rn.Provider,{value:{Shepherd:o},children:r})};yt.JourneyMethods=Du,yt.ShepherdJourneyContext=Rn,yt.ShepherdJourneyProvider=Fu,yt.useShepherd=Lu,Object.defineProperty(yt,Symbol.toStringTag,{value:"Module"})});