@ohif/app 3.9.0-beta.91 → 3.9.0-beta.93
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.
- package/dist/{3482.bundle.b5c059474c2ab266a1b9.js → 3482.bundle.a8622b8e9e5101b2f771.js} +2 -2
- package/dist/{3962.bundle.15b9b19a21e1d8b201a8.js → 3962.bundle.f8f36bf46046916a7e45.js} +2 -2
- package/dist/{4210.bundle.16cfe559979bdc63c2ef.js → 4210.bundle.7c76057d5b3203a9e20e.js} +2 -2
- package/dist/{6552.bundle.4f2d22780b625fbe87b7.js → 6552.bundle.d3571384b43fe26e44b3.js} +6 -5
- package/dist/{7913.bundle.36231ef56f2ec24de051.js → 7913.bundle.af5005f5f1f642a25dec.js} +2 -2
- package/dist/{8999.bundle.d0aea792a8c4194691b9.js → 8999.bundle.fe5b9a3ecd518a7c68cf.js} +2 -2
- package/dist/app-config.js +208 -0
- package/dist/{app.bundle.a39262ad12723bd8f2e5.js → app.bundle.30da19b24ab9ae33cf97.js} +3409 -15
- package/dist/app.bundle.css +4 -2
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +20 -18
- /package/dist/{153.bundle.e0c74a3cd5b455fa1ed1.js → 153.bundle.69a1da4bc19a9dc9a3fb.js} +0 -0
- /package/dist/{2119.bundle.e5e874efdb6f0d8bd94f.js → 2119.bundle.cd95916edb40cbb49798.js} +0 -0
- /package/dist/{2791.bundle.1feac140c1185129fdb0.js → 2791.bundle.df289e574021b625fd93.js} +0 -0
- /package/dist/{4353.bundle.b2049e66d586e53668c1.js → 4353.bundle.cb34dacb0f549a77c763.js} +0 -0
- /package/dist/{4842.bundle.2f1bf92c90230b29b007.js → 4842.bundle.7de0865d2e7b441eb71a.js} +0 -0
- /package/dist/{4978.bundle.1d11bde6d0e154677502.js → 4978.bundle.80bd95bc4db5adeaf58e.js} +0 -0
- /package/dist/{5888.bundle.ac574fb92ab3cea2f353.js → 5888.bundle.2a90d295a124507f71ea.js} +0 -0
- /package/dist/{6591.bundle.c08413948b783ab012e4.js → 6591.bundle.b42be855ac7084bf0151.js} +0 -0
- /package/dist/{7246.bundle.754d9377e9e64eaa75f4.js → 7246.bundle.8673931a5f54886ffb55.js} +0 -0
- /package/dist/{7360.bundle.a4cc6a9d47097f31aab3.js → 7360.bundle.fd7617c5a35cbd33dfff.js} +0 -0
- /package/dist/{7376.bundle.2e6dd5391bf4011c4e2b.js → 7376.bundle.de190e34fba439eb6f0f.js} +0 -0
- /package/dist/{7502.bundle.d268d37437ce6e3eabe6.js → 7502.bundle.42ee15a14f5cc0313ad4.js} +0 -0
- /package/dist/{8944.bundle.ab39cd75eedca395dcdf.js → 8944.bundle.36d1631c09531b4ff7cd.js} +0 -0
- /package/dist/{962.bundle.1477de89421a473b8aed.js → 962.bundle.7e7533c80b15458c33b2.js} +0 -0
|
@@ -5336,8 +5336,8 @@ Compose.propTypes = {
|
|
|
5336
5336
|
};
|
|
5337
5337
|
// EXTERNAL MODULE: ../../ui/src/index.js + 691 modules
|
|
5338
5338
|
var ui_src = __webpack_require__(50395);
|
|
5339
|
-
// EXTERNAL MODULE: ../../ui-next/src/index.ts +
|
|
5340
|
-
var ui_next_src = __webpack_require__(
|
|
5339
|
+
// EXTERNAL MODULE: ../../ui-next/src/index.ts + 2449 modules
|
|
5340
|
+
var ui_next_src = __webpack_require__(46455);
|
|
5341
5341
|
// EXTERNAL MODULE: ./state/index.js + 1 modules
|
|
5342
5342
|
var state = __webpack_require__(52490);
|
|
5343
5343
|
// EXTERNAL MODULE: ../../core/src/index.ts + 74 modules
|
|
@@ -5906,6 +5906,7 @@ var hooks = __webpack_require__(75213);
|
|
|
5906
5906
|
|
|
5907
5907
|
|
|
5908
5908
|
|
|
5909
|
+
|
|
5909
5910
|
const PatientInfoVisibility = ui_src/* Types.PatientInfoVisibility */.Yk.w9;
|
|
5910
5911
|
const {
|
|
5911
5912
|
sortBySeriesDate
|
|
@@ -6245,7 +6246,7 @@ function WorkList({
|
|
|
6245
6246
|
size: ui_src/* ButtonEnums.size */.LZ.dp.medium,
|
|
6246
6247
|
disabled: !isValidMode,
|
|
6247
6248
|
startIconTooltip: !isValidMode ? /*#__PURE__*/react.createElement("div", {
|
|
6248
|
-
className: "font-inter flex w-[206px] whitespace-normal text-left text-xs font-normal text-white
|
|
6249
|
+
className: "font-inter flex w-[206px] whitespace-normal text-left text-xs font-normal text-white"
|
|
6249
6250
|
}, invalidModeDescription) : null,
|
|
6250
6251
|
startIcon: /*#__PURE__*/react.createElement(ui_src/* Icon */.JO, {
|
|
6251
6252
|
className: "!h-[20px] !w-[20px] text-black",
|
|
@@ -6262,8 +6263,8 @@ function WorkList({
|
|
|
6262
6263
|
};
|
|
6263
6264
|
});
|
|
6264
6265
|
const hasStudies = numOfStudies > 0;
|
|
6265
|
-
const versionNumber = "3.9.0-beta.
|
|
6266
|
-
const commitHash = "
|
|
6266
|
+
const versionNumber = "3.9.0-beta.93";
|
|
6267
|
+
const commitHash = "579a5928120a9acee368fe856beb8581c7ffa622";
|
|
6267
6268
|
const menuOptions = [{
|
|
6268
6269
|
title: t('Header:About'),
|
|
6269
6270
|
icon: 'info',
|
|
@@ -6347,7 +6348,7 @@ function WorkList({
|
|
|
6347
6348
|
isReturnEnabled: false,
|
|
6348
6349
|
WhiteLabeling: appConfig.whiteLabeling,
|
|
6349
6350
|
showPatientInfo: PatientInfoVisibility.DISABLED
|
|
6350
|
-
}), /*#__PURE__*/react.createElement(ui_src/* InvestigationalUseDialog */.NE, {
|
|
6351
|
+
}), /*#__PURE__*/react.createElement(ui_next_src/* Onboarding */.TG, null), /*#__PURE__*/react.createElement(ui_src/* InvestigationalUseDialog */.NE, {
|
|
6351
6352
|
dialogConfiguration: appConfig?.investigationalUseDialog
|
|
6352
6353
|
}), /*#__PURE__*/react.createElement("div", {
|
|
6353
6354
|
className: "ohif-scrollbar ohif-scrollbar-stable-gutter flex grow flex-col overflow-y-auto sm:px-5"
|
|
@@ -11663,6 +11664,8 @@ function OpenIdConnectRoutes({
|
|
|
11663
11664
|
}));
|
|
11664
11665
|
}
|
|
11665
11666
|
/* harmony default export */ const utils_OpenIdConnectRoutes = (OpenIdConnectRoutes);
|
|
11667
|
+
// EXTERNAL MODULE: ../../../node_modules/react-shepherd/dist/index.js
|
|
11668
|
+
var react_shepherd_dist = __webpack_require__(88585);
|
|
11666
11669
|
;// CONCATENATED MODULE: ./App.tsx
|
|
11667
11670
|
// External
|
|
11668
11671
|
|
|
@@ -11680,6 +11683,7 @@ function OpenIdConnectRoutes({
|
|
|
11680
11683
|
|
|
11681
11684
|
|
|
11682
11685
|
|
|
11686
|
+
|
|
11683
11687
|
let commandsManager, extensionManager, servicesManager, serviceProvidersManager, hotkeysManager;
|
|
11684
11688
|
function App({
|
|
11685
11689
|
config = {
|
|
@@ -11766,7 +11770,7 @@ function App({
|
|
|
11766
11770
|
}], [ui_src/* ModalProvider */.DY, {
|
|
11767
11771
|
service: uiModalService,
|
|
11768
11772
|
modal: ui_src/* Modal */.u_
|
|
11769
|
-
}]];
|
|
11773
|
+
}], [react_shepherd_dist/* ShepherdJourneyProvider */.ZX]];
|
|
11770
11774
|
|
|
11771
11775
|
// Loop through and register each of the service providers registered with the ServiceProvidersManager.
|
|
11772
11776
|
const providersFromManager = Object.entries(serviceProvidersManager.providers);
|
|
@@ -13313,7 +13317,7 @@ const detectionOptions = {
|
|
|
13313
13317
|
}
|
|
13314
13318
|
});
|
|
13315
13319
|
;// CONCATENATED MODULE: ../../i18n/package.json
|
|
13316
|
-
const package_namespaceObject = JSON.parse('{"i8":"3.9.0-beta.
|
|
13320
|
+
const package_namespaceObject = JSON.parse('{"i8":"3.9.0-beta.92"}');
|
|
13317
13321
|
;// CONCATENATED MODULE: ../../i18n/src/utils.js
|
|
13318
13322
|
const languagesMap = {
|
|
13319
13323
|
ar: 'Arabic',
|
|
@@ -25958,8 +25962,8 @@ Input.propTypes = {
|
|
|
25958
25962
|
;// CONCATENATED MODULE: ../../ui/src/components/Input/index.js
|
|
25959
25963
|
|
|
25960
25964
|
/* harmony default export */ const components_Input = (Input_Input);
|
|
25961
|
-
// EXTERNAL MODULE: ../../ui-next/src/index.ts +
|
|
25962
|
-
var ui_next_src = __webpack_require__(
|
|
25965
|
+
// EXTERNAL MODULE: ../../ui-next/src/index.ts + 2449 modules
|
|
25966
|
+
var ui_next_src = __webpack_require__(46455);
|
|
25963
25967
|
;// CONCATENATED MODULE: ../../ui/src/components/InputLabelWrapper/InputLabelWrapper.tsx
|
|
25964
25968
|
|
|
25965
25969
|
|
|
@@ -33155,6 +33159,9 @@ const Select_Select = ({
|
|
|
33155
33159
|
onChange: (selectedOptions, {
|
|
33156
33160
|
action
|
|
33157
33161
|
}) => {
|
|
33162
|
+
if (selectedOptions === null) {
|
|
33163
|
+
return onChange(null, action);
|
|
33164
|
+
}
|
|
33158
33165
|
const newSelection = !selectedOptions.length ? selectedOptions : selectedOptions.reduce((acc, curr) => acc.concat([curr.value]), []);
|
|
33159
33166
|
onChange(newSelection, action);
|
|
33160
33167
|
}
|
|
@@ -64214,7 +64221,8 @@ function LayoutPreset({
|
|
|
64214
64221
|
className: classnames_default()(classNameProps, disabled && 'ohif-disabled'),
|
|
64215
64222
|
onClick: () => {
|
|
64216
64223
|
onSelection(commandOptions);
|
|
64217
|
-
}
|
|
64224
|
+
},
|
|
64225
|
+
"data-cy": title
|
|
64218
64226
|
}, /*#__PURE__*/react.createElement(Icon_Icon/* default */.Z, {
|
|
64219
64227
|
name: icon,
|
|
64220
64228
|
className: "group-hover:text-primary-light"
|
|
@@ -73983,6 +73991,10 @@ function _isValidEvent(eventName) {
|
|
|
73983
73991
|
function _broadcastEvent(eventName, callbackProps) {
|
|
73984
73992
|
const hasListeners = Object.keys(this.listeners).length > 0;
|
|
73985
73993
|
const hasCallbacks = Array.isArray(this.listeners[eventName]);
|
|
73994
|
+
const event = new CustomEvent(eventName, {
|
|
73995
|
+
detail: callbackProps
|
|
73996
|
+
});
|
|
73997
|
+
document.body.dispatchEvent(event);
|
|
73986
73998
|
if (hasListeners && hasCallbacks) {
|
|
73987
73999
|
this.listeners[eventName].forEach(listener => {
|
|
73988
74000
|
listener.callback(callbackProps);
|
|
@@ -76031,7 +76043,7 @@ function uuidv4() {
|
|
|
76031
76043
|
|
|
76032
76044
|
/***/ }),
|
|
76033
76045
|
|
|
76034
|
-
/***/
|
|
76046
|
+
/***/ 46455:
|
|
76035
76047
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
76036
76048
|
|
|
76037
76049
|
"use strict";
|
|
@@ -76040,6 +76052,7 @@ function uuidv4() {
|
|
|
76040
76052
|
__webpack_require__.d(__webpack_exports__, {
|
|
76041
76053
|
$0: () => (/* reexport */ DatePickerWithRange),
|
|
76042
76054
|
PJ: () => (/* reexport */ Icons),
|
|
76055
|
+
TG: () => (/* reexport */ Onboarding),
|
|
76043
76056
|
Z0: () => (/* reexport */ Separator_Separator),
|
|
76044
76057
|
hs: () => (/* reexport */ SidePanel),
|
|
76045
76058
|
eX: () => (/* reexport */ StudyBrowser),
|
|
@@ -198036,6 +198049,148 @@ DropdownMenuShortcut.displayName = 'DropdownMenuShortcut';
|
|
|
198036
198049
|
;// CONCATENATED MODULE: ../../ui-next/src/components/DropdownMenu/index.ts
|
|
198037
198050
|
|
|
198038
198051
|
|
|
198052
|
+
// EXTERNAL MODULE: ../../../node_modules/react-shepherd/dist/index.js
|
|
198053
|
+
var dist = __webpack_require__(88585);
|
|
198054
|
+
// EXTERNAL MODULE: ../node_modules/react-router/dist/index.js
|
|
198055
|
+
var react_router_dist = __webpack_require__(85066);
|
|
198056
|
+
;// CONCATENATED MODULE: ../../../node_modules/shepherd.js/dist/css/shepherd.css
|
|
198057
|
+
// extracted by mini-css-extract-plugin
|
|
198058
|
+
|
|
198059
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/Onboarding/Onboarding.css
|
|
198060
|
+
// extracted by mini-css-extract-plugin
|
|
198061
|
+
|
|
198062
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/Onboarding/utilities.ts
|
|
198063
|
+
|
|
198064
|
+
|
|
198065
|
+
/**
|
|
198066
|
+
* Retrieves the list of tours that have been shown from localStorage.
|
|
198067
|
+
* @returns {string[]} An array of tour IDs that have been shown.
|
|
198068
|
+
*/
|
|
198069
|
+
|
|
198070
|
+
const getShownTours = () => JSON.parse(localStorage.getItem('shownTours')) || [];
|
|
198071
|
+
|
|
198072
|
+
/**
|
|
198073
|
+
* Checks if a specific tour has been shown.
|
|
198074
|
+
* @param {string} tourId - The ID of the tour to check.
|
|
198075
|
+
* @returns {boolean} True if the tour has been shown, false otherwise.
|
|
198076
|
+
*/
|
|
198077
|
+
const hasTourBeenShown = tourId => getShownTours().includes(tourId);
|
|
198078
|
+
|
|
198079
|
+
/**
|
|
198080
|
+
* Marks a specific tour as shown by adding it to localStorage.
|
|
198081
|
+
* @param {string} tourId - The ID of the tour to mark as shown.
|
|
198082
|
+
* @returns {void}
|
|
198083
|
+
*/
|
|
198084
|
+
const markTourAsShown = tourId => {
|
|
198085
|
+
const shownTours = getShownTours();
|
|
198086
|
+
if (!shownTours.includes(tourId)) {
|
|
198087
|
+
shownTours.push(tourId);
|
|
198088
|
+
localStorage.setItem('shownTours', JSON.stringify(shownTours));
|
|
198089
|
+
}
|
|
198090
|
+
};
|
|
198091
|
+
|
|
198092
|
+
/**
|
|
198093
|
+
* Default handler for the 'show' event in Shepherd steps.
|
|
198094
|
+
* Adds a progress indicator to the footer of the current step.
|
|
198095
|
+
*
|
|
198096
|
+
* @param {ShepherdBase} Shepherd - The Shepherd.js instance.
|
|
198097
|
+
* @returns {void}
|
|
198098
|
+
*/
|
|
198099
|
+
const defaultShowHandler = Shepherd => {
|
|
198100
|
+
const currentStep = Shepherd.activeTour?.getCurrentStep();
|
|
198101
|
+
if (currentStep) {
|
|
198102
|
+
const progress = document.createElement('span');
|
|
198103
|
+
progress.className = 'shepherd-progress text-base text-muted-foreground';
|
|
198104
|
+
progress.innerText = `${Shepherd.activeTour?.steps.indexOf(currentStep) + 1}/${Shepherd.activeTour?.steps.length}`;
|
|
198105
|
+
progress.style.position = 'absolute';
|
|
198106
|
+
progress.style.left = '13px';
|
|
198107
|
+
progress.style.bottom = '20px';
|
|
198108
|
+
progress.style.zIndex = '1';
|
|
198109
|
+
const footer = currentStep?.getElement()?.querySelector('.shepherd-footer');
|
|
198110
|
+
footer?.appendChild(progress);
|
|
198111
|
+
}
|
|
198112
|
+
};
|
|
198113
|
+
|
|
198114
|
+
/**
|
|
198115
|
+
* Custom middleware for adjusting Shepherd step positioning when overflowing.
|
|
198116
|
+
*
|
|
198117
|
+
* @type {object}
|
|
198118
|
+
* @property {string} name - The name of the middleware.
|
|
198119
|
+
* @property {function} fn - The function that adjusts the position of the step when overflowing.
|
|
198120
|
+
*/
|
|
198121
|
+
|
|
198122
|
+
const customMiddleware = {
|
|
198123
|
+
name: 'customOverflowMiddleware',
|
|
198124
|
+
async fn(state) {
|
|
198125
|
+
const overflow = await (0,floating_ui_dom/* detectOverflow */.US)(state, {
|
|
198126
|
+
boundary: document.querySelector('body'),
|
|
198127
|
+
padding: 24
|
|
198128
|
+
});
|
|
198129
|
+
const xAdjustment = overflow.left > 0 ? overflow.left : overflow.right > 0 ? -overflow.right : 0;
|
|
198130
|
+
const yAdjustment = overflow.top > 0 ? overflow.top : overflow.bottom > 0 ? -overflow.bottom : 0;
|
|
198131
|
+
return {
|
|
198132
|
+
x: state.x + xAdjustment,
|
|
198133
|
+
y: state.y + yAdjustment
|
|
198134
|
+
};
|
|
198135
|
+
}
|
|
198136
|
+
};
|
|
198137
|
+
|
|
198138
|
+
/**
|
|
198139
|
+
* Default Floating UI middleware for positioning steps in Shepherd.js.
|
|
198140
|
+
* Includes offset, shift, flip, and custom overflow middleware.
|
|
198141
|
+
*
|
|
198142
|
+
* @type {Array<object>}
|
|
198143
|
+
*/
|
|
198144
|
+
|
|
198145
|
+
const middleware = [(0,floating_ui_dom/* offset */.cv)(15), (0,floating_ui_dom/* shift */.uY)(), (0,floating_ui_dom/* flip */.RR)(), customMiddleware];
|
|
198146
|
+
|
|
198147
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/Onboarding/Onboarding.tsx
|
|
198148
|
+
|
|
198149
|
+
|
|
198150
|
+
|
|
198151
|
+
|
|
198152
|
+
|
|
198153
|
+
|
|
198154
|
+
const Onboarding = () => {
|
|
198155
|
+
const Shepherd = (0,dist/* useShepherd */.cZ)();
|
|
198156
|
+
const location = (0,react_router_dist/* useLocation */.TH)();
|
|
198157
|
+
const tours = window.config.tours;
|
|
198158
|
+
|
|
198159
|
+
/**
|
|
198160
|
+
* Show the tour if it hasn't been shown yet based on the current route.
|
|
198161
|
+
* Constructs a tour instance and adds steps to it based on the matching tour.
|
|
198162
|
+
*/
|
|
198163
|
+
(0,react.useEffect)(() => {
|
|
198164
|
+
if (!tours) {
|
|
198165
|
+
return;
|
|
198166
|
+
}
|
|
198167
|
+
const matchingTour = tours.find(tour => tour.route === location.pathname);
|
|
198168
|
+
if (!matchingTour || hasTourBeenShown(matchingTour.id)) {
|
|
198169
|
+
return;
|
|
198170
|
+
}
|
|
198171
|
+
const tourInstance = new Shepherd.Tour({
|
|
198172
|
+
...matchingTour.tourOptions,
|
|
198173
|
+
defaultStepOptions: {
|
|
198174
|
+
...matchingTour.tourOptions?.defaultStepOptions,
|
|
198175
|
+
floatingUIOptions: matchingTour.tourOptions?.defaultStepOptions?.floatingUIOptions || {
|
|
198176
|
+
middleware: middleware
|
|
198177
|
+
},
|
|
198178
|
+
when: {
|
|
198179
|
+
...matchingTour.tourOptions?.defaultStepOptions?.when,
|
|
198180
|
+
show: matchingTour.tourOptions?.defaultStepOptions?.when?.show || (() => defaultShowHandler(Shepherd))
|
|
198181
|
+
}
|
|
198182
|
+
}
|
|
198183
|
+
});
|
|
198184
|
+
matchingTour.steps.forEach(step => tourInstance.addStep(step));
|
|
198185
|
+
tourInstance.start();
|
|
198186
|
+
markTourAsShown(matchingTour.id);
|
|
198187
|
+
}, [Shepherd, tours, location.pathname]);
|
|
198188
|
+
return null;
|
|
198189
|
+
};
|
|
198190
|
+
|
|
198191
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/Onboarding/index.ts
|
|
198192
|
+
|
|
198193
|
+
|
|
198039
198194
|
;// CONCATENATED MODULE: ../../ui-next/src/components/index.ts
|
|
198040
198195
|
|
|
198041
198196
|
|
|
@@ -198067,6 +198222,7 @@ DropdownMenuShortcut.displayName = 'DropdownMenuShortcut';
|
|
|
198067
198222
|
|
|
198068
198223
|
|
|
198069
198224
|
|
|
198225
|
+
|
|
198070
198226
|
|
|
198071
198227
|
|
|
198072
198228
|
;// CONCATENATED MODULE: ../../../node_modules/sonner/dist/index.mjs
|
|
@@ -394452,6 +394608,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
394452
394608
|
x7: () => (/* binding */ floating_ui_dom_arrow),
|
|
394453
394609
|
Me: () => (/* binding */ autoUpdate),
|
|
394454
394610
|
oo: () => (/* binding */ floating_ui_dom_computePosition),
|
|
394611
|
+
US: () => (/* binding */ floating_ui_dom_detectOverflow),
|
|
394455
394612
|
RR: () => (/* binding */ floating_ui_dom_flip),
|
|
394456
394613
|
Cp: () => (/* binding */ floating_ui_dom_hide),
|
|
394457
394614
|
dr: () => (/* binding */ floating_ui_dom_limitShift),
|
|
@@ -394460,7 +394617,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
394460
394617
|
dp: () => (/* binding */ floating_ui_dom_size)
|
|
394461
394618
|
});
|
|
394462
394619
|
|
|
394463
|
-
// UNUSED EXPORTS: autoPlacement,
|
|
394620
|
+
// UNUSED EXPORTS: autoPlacement, getOverflowAncestors, inline, platform
|
|
394464
394621
|
|
|
394465
394622
|
;// CONCATENATED MODULE: ../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
394466
394623
|
/**
|
|
@@ -396382,7 +396539,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
396382
396539
|
* - 0 = lies flush with the boundary
|
|
396383
396540
|
* @see https://floating-ui.com/docs/detectOverflow
|
|
396384
396541
|
*/
|
|
396385
|
-
const floating_ui_dom_detectOverflow =
|
|
396542
|
+
const floating_ui_dom_detectOverflow = detectOverflow;
|
|
396386
396543
|
|
|
396387
396544
|
/**
|
|
396388
396545
|
* Modifies the placement by translating the floating element along the
|
|
@@ -404059,6 +404216,3243 @@ var selectOrdinal = function selectOrdinal() {
|
|
|
404059
404216
|
return '';
|
|
404060
404217
|
};
|
|
404061
404218
|
|
|
404219
|
+
/***/ }),
|
|
404220
|
+
|
|
404221
|
+
/***/ 88585:
|
|
404222
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
404223
|
+
|
|
404224
|
+
"use strict";
|
|
404225
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
404226
|
+
/* harmony export */ ZX: () => (/* binding */ Uo),
|
|
404227
|
+
/* harmony export */ cZ: () => (/* binding */ Ho)
|
|
404228
|
+
/* harmony export */ });
|
|
404229
|
+
/* unused harmony exports JourneyMethods, ShepherdJourneyContext */
|
|
404230
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43001);
|
|
404231
|
+
|
|
404232
|
+
var Ct = { exports: {} }, Ye = {};
|
|
404233
|
+
/**
|
|
404234
|
+
* @license React
|
|
404235
|
+
* react-jsx-runtime.production.min.js
|
|
404236
|
+
*
|
|
404237
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
404238
|
+
*
|
|
404239
|
+
* This source code is licensed under the MIT license found in the
|
|
404240
|
+
* LICENSE file in the root directory of this source tree.
|
|
404241
|
+
*/
|
|
404242
|
+
var cn;
|
|
404243
|
+
function Ar() {
|
|
404244
|
+
if (cn) return Ye;
|
|
404245
|
+
cn = 1;
|
|
404246
|
+
var e = react__WEBPACK_IMPORTED_MODULE_0__, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
404247
|
+
function o(c, a, u) {
|
|
404248
|
+
var f, h = {}, d = null, g = null;
|
|
404249
|
+
u !== void 0 && (d = "" + u), a.key !== void 0 && (d = "" + a.key), a.ref !== void 0 && (g = a.ref);
|
|
404250
|
+
for (f in a) r.call(a, f) && !s.hasOwnProperty(f) && (h[f] = a[f]);
|
|
404251
|
+
if (c && c.defaultProps) for (f in a = c.defaultProps, a) h[f] === void 0 && (h[f] = a[f]);
|
|
404252
|
+
return { $$typeof: t, type: c, key: d, ref: g, props: h, _owner: i.current };
|
|
404253
|
+
}
|
|
404254
|
+
return Ye.Fragment = n, Ye.jsx = o, Ye.jsxs = o, Ye;
|
|
404255
|
+
}
|
|
404256
|
+
var ze = {};
|
|
404257
|
+
/**
|
|
404258
|
+
* @license React
|
|
404259
|
+
* react-jsx-runtime.development.js
|
|
404260
|
+
*
|
|
404261
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
404262
|
+
*
|
|
404263
|
+
* This source code is licensed under the MIT license found in the
|
|
404264
|
+
* LICENSE file in the root directory of this source tree.
|
|
404265
|
+
*/
|
|
404266
|
+
var an;
|
|
404267
|
+
function Pr() {
|
|
404268
|
+
return an || (an = 1, false && 0), ze;
|
|
404269
|
+
}
|
|
404270
|
+
true ? Ct.exports = Ar() : 0;
|
|
404271
|
+
var kr = Ct.exports;
|
|
404272
|
+
/*! shepherd.js 13.0.3 */
|
|
404273
|
+
function Ir(e) {
|
|
404274
|
+
return e instanceof Element;
|
|
404275
|
+
}
|
|
404276
|
+
function Ge(e) {
|
|
404277
|
+
return e instanceof HTMLElement;
|
|
404278
|
+
}
|
|
404279
|
+
function pe(e) {
|
|
404280
|
+
return typeof e == "function";
|
|
404281
|
+
}
|
|
404282
|
+
function Je(e) {
|
|
404283
|
+
return typeof e == "string";
|
|
404284
|
+
}
|
|
404285
|
+
function N(e) {
|
|
404286
|
+
return e === void 0;
|
|
404287
|
+
}
|
|
404288
|
+
class Ft {
|
|
404289
|
+
/**
|
|
404290
|
+
* Adds an event listener for the given event string.
|
|
404291
|
+
*
|
|
404292
|
+
* @param {string} event
|
|
404293
|
+
* @param {Function} handler
|
|
404294
|
+
* @param ctx
|
|
404295
|
+
* @param {boolean} once
|
|
404296
|
+
* @returns
|
|
404297
|
+
*/
|
|
404298
|
+
on(t, n, r, i = !1) {
|
|
404299
|
+
var s;
|
|
404300
|
+
return N(this.bindings) && (this.bindings = {}), N(this.bindings[t]) && (this.bindings[t] = []), (s = this.bindings[t]) == null || s.push({
|
|
404301
|
+
handler: n,
|
|
404302
|
+
ctx: r,
|
|
404303
|
+
once: i
|
|
404304
|
+
}), this;
|
|
404305
|
+
}
|
|
404306
|
+
/**
|
|
404307
|
+
* Adds an event listener that only fires once for the given event string.
|
|
404308
|
+
*
|
|
404309
|
+
* @param {string} event
|
|
404310
|
+
* @param {Function} handler
|
|
404311
|
+
* @param ctx
|
|
404312
|
+
* @returns
|
|
404313
|
+
*/
|
|
404314
|
+
once(t, n, r) {
|
|
404315
|
+
return this.on(t, n, r, !0);
|
|
404316
|
+
}
|
|
404317
|
+
/**
|
|
404318
|
+
* Removes an event listener for the given event string.
|
|
404319
|
+
*
|
|
404320
|
+
* @param {string} event
|
|
404321
|
+
* @param {Function} handler
|
|
404322
|
+
* @returns
|
|
404323
|
+
*/
|
|
404324
|
+
off(t, n) {
|
|
404325
|
+
if (N(this.bindings) || N(this.bindings[t]))
|
|
404326
|
+
return this;
|
|
404327
|
+
if (N(n))
|
|
404328
|
+
delete this.bindings[t];
|
|
404329
|
+
else {
|
|
404330
|
+
var r;
|
|
404331
|
+
(r = this.bindings[t]) == null || r.forEach((i, s) => {
|
|
404332
|
+
if (i.handler === n) {
|
|
404333
|
+
var o;
|
|
404334
|
+
(o = this.bindings[t]) == null || o.splice(s, 1);
|
|
404335
|
+
}
|
|
404336
|
+
});
|
|
404337
|
+
}
|
|
404338
|
+
return this;
|
|
404339
|
+
}
|
|
404340
|
+
/**
|
|
404341
|
+
* Triggers an event listener for the given event string.
|
|
404342
|
+
*
|
|
404343
|
+
* @param {string} event
|
|
404344
|
+
* @returns
|
|
404345
|
+
*/
|
|
404346
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
404347
|
+
trigger(t, ...n) {
|
|
404348
|
+
if (!N(this.bindings) && this.bindings[t]) {
|
|
404349
|
+
var r;
|
|
404350
|
+
(r = this.bindings[t]) == null || r.forEach((i, s) => {
|
|
404351
|
+
const {
|
|
404352
|
+
ctx: o,
|
|
404353
|
+
handler: c,
|
|
404354
|
+
once: a
|
|
404355
|
+
} = i, u = o || this;
|
|
404356
|
+
if (c.apply(u, n), a) {
|
|
404357
|
+
var f;
|
|
404358
|
+
(f = this.bindings[t]) == null || f.splice(s, 1);
|
|
404359
|
+
}
|
|
404360
|
+
});
|
|
404361
|
+
}
|
|
404362
|
+
return this;
|
|
404363
|
+
}
|
|
404364
|
+
}
|
|
404365
|
+
function V() {
|
|
404366
|
+
return V = Object.assign ? Object.assign.bind() : function(e) {
|
|
404367
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
404368
|
+
var n = arguments[t];
|
|
404369
|
+
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
404370
|
+
}
|
|
404371
|
+
return e;
|
|
404372
|
+
}, V.apply(null, arguments);
|
|
404373
|
+
}
|
|
404374
|
+
function In(e, t) {
|
|
404375
|
+
if (e == null) return {};
|
|
404376
|
+
var n = {};
|
|
404377
|
+
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
404378
|
+
if (t.includes(r)) continue;
|
|
404379
|
+
n[r] = e[r];
|
|
404380
|
+
}
|
|
404381
|
+
return n;
|
|
404382
|
+
}
|
|
404383
|
+
const be = {
|
|
404384
|
+
defaultMerge: Symbol("deepmerge-ts: default merge"),
|
|
404385
|
+
skip: Symbol("deepmerge-ts: skip")
|
|
404386
|
+
};
|
|
404387
|
+
be.defaultMerge;
|
|
404388
|
+
function Mr(e, t) {
|
|
404389
|
+
return t;
|
|
404390
|
+
}
|
|
404391
|
+
function un(e) {
|
|
404392
|
+
return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 : Dr(e) ? 1 : e instanceof Set ? 3 : e instanceof Map ? 4 : 5;
|
|
404393
|
+
}
|
|
404394
|
+
function Fr(e) {
|
|
404395
|
+
const t = /* @__PURE__ */ new Set();
|
|
404396
|
+
for (const n of e)
|
|
404397
|
+
for (const r of [...Object.keys(n), ...Object.getOwnPropertySymbols(n)])
|
|
404398
|
+
t.add(r);
|
|
404399
|
+
return t;
|
|
404400
|
+
}
|
|
404401
|
+
function Lr(e, t) {
|
|
404402
|
+
return typeof e == "object" && Object.prototype.propertyIsEnumerable.call(e, t);
|
|
404403
|
+
}
|
|
404404
|
+
function Mn(e) {
|
|
404405
|
+
return {
|
|
404406
|
+
// eslint-disable-next-line functional/functional-parameters
|
|
404407
|
+
*[Symbol.iterator]() {
|
|
404408
|
+
for (const t of e)
|
|
404409
|
+
for (const n of t)
|
|
404410
|
+
yield n;
|
|
404411
|
+
}
|
|
404412
|
+
};
|
|
404413
|
+
}
|
|
404414
|
+
const fn = /* @__PURE__ */ new Set(["[object Object]", "[object Module]"]);
|
|
404415
|
+
function Dr(e) {
|
|
404416
|
+
if (!fn.has(Object.prototype.toString.call(e)))
|
|
404417
|
+
return !1;
|
|
404418
|
+
const {
|
|
404419
|
+
constructor: t
|
|
404420
|
+
} = e;
|
|
404421
|
+
if (t === void 0)
|
|
404422
|
+
return !0;
|
|
404423
|
+
const n = t.prototype;
|
|
404424
|
+
return !(n === null || typeof n != "object" || !fn.has(Object.prototype.toString.call(n)) || !n.hasOwnProperty("isPrototypeOf"));
|
|
404425
|
+
}
|
|
404426
|
+
function jr(e, t, n) {
|
|
404427
|
+
const r = {};
|
|
404428
|
+
for (const i of Fr(e)) {
|
|
404429
|
+
const s = [];
|
|
404430
|
+
for (const a of e)
|
|
404431
|
+
Lr(a, i) && s.push(a[i]);
|
|
404432
|
+
if (s.length === 0)
|
|
404433
|
+
continue;
|
|
404434
|
+
const o = t.metaDataUpdater(n, {
|
|
404435
|
+
key: i,
|
|
404436
|
+
parents: e
|
|
404437
|
+
}), c = Ln(s, t, o);
|
|
404438
|
+
c !== be.skip && (i === "__proto__" ? Object.defineProperty(r, i, {
|
|
404439
|
+
value: c,
|
|
404440
|
+
configurable: !0,
|
|
404441
|
+
enumerable: !0,
|
|
404442
|
+
writable: !0
|
|
404443
|
+
}) : r[i] = c);
|
|
404444
|
+
}
|
|
404445
|
+
return r;
|
|
404446
|
+
}
|
|
404447
|
+
function Br(e) {
|
|
404448
|
+
return e.flat();
|
|
404449
|
+
}
|
|
404450
|
+
function Nr(e) {
|
|
404451
|
+
return new Set(Mn(e));
|
|
404452
|
+
}
|
|
404453
|
+
function Wr(e) {
|
|
404454
|
+
return new Map(Mn(e));
|
|
404455
|
+
}
|
|
404456
|
+
function Fn(e) {
|
|
404457
|
+
return e.at(-1);
|
|
404458
|
+
}
|
|
404459
|
+
var St = /* @__PURE__ */ Object.freeze({
|
|
404460
|
+
__proto__: null,
|
|
404461
|
+
mergeArrays: Br,
|
|
404462
|
+
mergeMaps: Wr,
|
|
404463
|
+
mergeOthers: Fn,
|
|
404464
|
+
mergeRecords: jr,
|
|
404465
|
+
mergeSets: Nr
|
|
404466
|
+
});
|
|
404467
|
+
function Lt(...e) {
|
|
404468
|
+
return $r({})(...e);
|
|
404469
|
+
}
|
|
404470
|
+
function $r(e, t) {
|
|
404471
|
+
const n = Vr(e, r);
|
|
404472
|
+
function r(...i) {
|
|
404473
|
+
return Ln(i, n, t);
|
|
404474
|
+
}
|
|
404475
|
+
return r;
|
|
404476
|
+
}
|
|
404477
|
+
function Vr(e, t) {
|
|
404478
|
+
var n, r;
|
|
404479
|
+
return {
|
|
404480
|
+
defaultMergeFunctions: St,
|
|
404481
|
+
mergeFunctions: V({}, St, Object.fromEntries(Object.entries(e).filter(([i, s]) => Object.hasOwn(St, i)).map(([i, s]) => s === !1 ? [i, Fn] : [i, s]))),
|
|
404482
|
+
metaDataUpdater: (n = e.metaDataUpdater) != null ? n : Mr,
|
|
404483
|
+
deepmerge: t,
|
|
404484
|
+
useImplicitDefaultMerging: (r = e.enableImplicitDefaultMerging) != null ? r : !1,
|
|
404485
|
+
actions: be
|
|
404486
|
+
};
|
|
404487
|
+
}
|
|
404488
|
+
function Ln(e, t, n) {
|
|
404489
|
+
if (e.length === 0)
|
|
404490
|
+
return;
|
|
404491
|
+
if (e.length === 1)
|
|
404492
|
+
return Ot(e, t, n);
|
|
404493
|
+
const r = un(e[0]);
|
|
404494
|
+
if (r !== 0 && r !== 5) {
|
|
404495
|
+
for (let i = 1; i < e.length; i++)
|
|
404496
|
+
if (un(e[i]) !== r)
|
|
404497
|
+
return Ot(e, t, n);
|
|
404498
|
+
}
|
|
404499
|
+
switch (r) {
|
|
404500
|
+
case 1:
|
|
404501
|
+
return Hr(e, t, n);
|
|
404502
|
+
case 2:
|
|
404503
|
+
return Ur(e, t, n);
|
|
404504
|
+
case 3:
|
|
404505
|
+
return Yr(e, t, n);
|
|
404506
|
+
case 4:
|
|
404507
|
+
return zr(e, t, n);
|
|
404508
|
+
default:
|
|
404509
|
+
return Ot(e, t, n);
|
|
404510
|
+
}
|
|
404511
|
+
}
|
|
404512
|
+
function Hr(e, t, n) {
|
|
404513
|
+
const r = t.mergeFunctions.mergeRecords(e, t, n);
|
|
404514
|
+
return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeRecords !== t.defaultMergeFunctions.mergeRecords ? t.defaultMergeFunctions.mergeRecords(e, t, n) : r;
|
|
404515
|
+
}
|
|
404516
|
+
function Ur(e, t, n) {
|
|
404517
|
+
const r = t.mergeFunctions.mergeArrays(e, t, n);
|
|
404518
|
+
return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeArrays !== t.defaultMergeFunctions.mergeArrays ? t.defaultMergeFunctions.mergeArrays(e) : r;
|
|
404519
|
+
}
|
|
404520
|
+
function Yr(e, t, n) {
|
|
404521
|
+
const r = t.mergeFunctions.mergeSets(e, t, n);
|
|
404522
|
+
return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeSets !== t.defaultMergeFunctions.mergeSets ? t.defaultMergeFunctions.mergeSets(e) : r;
|
|
404523
|
+
}
|
|
404524
|
+
function zr(e, t, n) {
|
|
404525
|
+
const r = t.mergeFunctions.mergeMaps(e, t, n);
|
|
404526
|
+
return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeMaps !== t.defaultMergeFunctions.mergeMaps ? t.defaultMergeFunctions.mergeMaps(e) : r;
|
|
404527
|
+
}
|
|
404528
|
+
function Ot(e, t, n) {
|
|
404529
|
+
const r = t.mergeFunctions.mergeOthers(e, t, n);
|
|
404530
|
+
return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeOthers !== t.defaultMergeFunctions.mergeOthers ? t.defaultMergeFunctions.mergeOthers(e) : r;
|
|
404531
|
+
}
|
|
404532
|
+
function Dt(e) {
|
|
404533
|
+
const t = Object.getOwnPropertyNames(e.constructor.prototype);
|
|
404534
|
+
for (let n = 0; n < t.length; n++) {
|
|
404535
|
+
const r = t[n], i = e[r];
|
|
404536
|
+
r !== "constructor" && typeof i == "function" && (e[r] = i.bind(e));
|
|
404537
|
+
}
|
|
404538
|
+
return e;
|
|
404539
|
+
}
|
|
404540
|
+
function qr(e, t) {
|
|
404541
|
+
return (n) => {
|
|
404542
|
+
if (e.isOpen()) {
|
|
404543
|
+
const r = e.el && n.currentTarget === e.el;
|
|
404544
|
+
(!N(t) && n.currentTarget.matches(t) || r) && e.tour.next();
|
|
404545
|
+
}
|
|
404546
|
+
};
|
|
404547
|
+
}
|
|
404548
|
+
function Jr(e) {
|
|
404549
|
+
const {
|
|
404550
|
+
event: t,
|
|
404551
|
+
selector: n
|
|
404552
|
+
} = e.options.advanceOn || {};
|
|
404553
|
+
if (t) {
|
|
404554
|
+
const r = qr(e, n);
|
|
404555
|
+
let i = null;
|
|
404556
|
+
if (!N(n) && (i = document.querySelector(n), !i))
|
|
404557
|
+
return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);
|
|
404558
|
+
i ? (i.addEventListener(t, r), e.on("destroy", () => i.removeEventListener(t, r))) : (document.body.addEventListener(t, r, !0), e.on("destroy", () => document.body.removeEventListener(t, r, !0)));
|
|
404559
|
+
} else
|
|
404560
|
+
return console.error("advanceOn was defined, but no event name was passed.");
|
|
404561
|
+
}
|
|
404562
|
+
class Kr {
|
|
404563
|
+
constructor(t) {
|
|
404564
|
+
}
|
|
404565
|
+
}
|
|
404566
|
+
class Xr {
|
|
404567
|
+
constructor(t, n) {
|
|
404568
|
+
}
|
|
404569
|
+
}
|
|
404570
|
+
function Dn(e) {
|
|
404571
|
+
return !Je(e) || e === "" ? "" : e.charAt(e.length - 1) !== "-" ? `${e}-` : e;
|
|
404572
|
+
}
|
|
404573
|
+
function Gr(e) {
|
|
404574
|
+
const t = e.options.attachTo || {}, n = Object.assign({}, t);
|
|
404575
|
+
if (pe(n.element) && (n.element = n.element.call(e)), Je(n.element)) {
|
|
404576
|
+
try {
|
|
404577
|
+
n.element = document.querySelector(n.element);
|
|
404578
|
+
} catch {
|
|
404579
|
+
}
|
|
404580
|
+
n.element || console.error(`The element for this Shepherd step was not found ${t.element}`);
|
|
404581
|
+
}
|
|
404582
|
+
return n;
|
|
404583
|
+
}
|
|
404584
|
+
function jn(e) {
|
|
404585
|
+
return e == null ? !0 : !e.element || !e.on;
|
|
404586
|
+
}
|
|
404587
|
+
function Bn() {
|
|
404588
|
+
let e = Date.now();
|
|
404589
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
|
|
404590
|
+
const n = (e + Math.random() * 16) % 16 | 0;
|
|
404591
|
+
return e = Math.floor(e / 16), (t == "x" ? n : n & 3 | 8).toString(16);
|
|
404592
|
+
});
|
|
404593
|
+
}
|
|
404594
|
+
const De = Math.min, Ee = Math.max, lt = Math.round, ot = Math.floor, ge = (e) => ({
|
|
404595
|
+
x: e,
|
|
404596
|
+
y: e
|
|
404597
|
+
}), Zr = {
|
|
404598
|
+
left: "right",
|
|
404599
|
+
right: "left",
|
|
404600
|
+
bottom: "top",
|
|
404601
|
+
top: "bottom"
|
|
404602
|
+
}, Qr = {
|
|
404603
|
+
start: "end",
|
|
404604
|
+
end: "start"
|
|
404605
|
+
};
|
|
404606
|
+
function At(e, t, n) {
|
|
404607
|
+
return Ee(e, De(t, n));
|
|
404608
|
+
}
|
|
404609
|
+
function je(e, t) {
|
|
404610
|
+
return typeof e == "function" ? e(t) : e;
|
|
404611
|
+
}
|
|
404612
|
+
function Re(e) {
|
|
404613
|
+
return e.split("-")[0];
|
|
404614
|
+
}
|
|
404615
|
+
function ft(e) {
|
|
404616
|
+
return e.split("-")[1];
|
|
404617
|
+
}
|
|
404618
|
+
function jt(e) {
|
|
404619
|
+
return e === "x" ? "y" : "x";
|
|
404620
|
+
}
|
|
404621
|
+
function Bt(e) {
|
|
404622
|
+
return e === "y" ? "height" : "width";
|
|
404623
|
+
}
|
|
404624
|
+
function Be(e) {
|
|
404625
|
+
return ["top", "bottom"].includes(Re(e)) ? "y" : "x";
|
|
404626
|
+
}
|
|
404627
|
+
function Nt(e) {
|
|
404628
|
+
return jt(Be(e));
|
|
404629
|
+
}
|
|
404630
|
+
function ei(e, t, n) {
|
|
404631
|
+
n === void 0 && (n = !1);
|
|
404632
|
+
const r = ft(e), i = Nt(e), s = Bt(i);
|
|
404633
|
+
let o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
404634
|
+
return t.reference[s] > t.floating[s] && (o = ct(o)), [o, ct(o)];
|
|
404635
|
+
}
|
|
404636
|
+
function ti(e) {
|
|
404637
|
+
const t = ct(e);
|
|
404638
|
+
return [Pt(e), t, Pt(t)];
|
|
404639
|
+
}
|
|
404640
|
+
function Pt(e) {
|
|
404641
|
+
return e.replace(/start|end/g, (t) => Qr[t]);
|
|
404642
|
+
}
|
|
404643
|
+
function ni(e, t, n) {
|
|
404644
|
+
const r = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], o = ["bottom", "top"];
|
|
404645
|
+
switch (e) {
|
|
404646
|
+
case "top":
|
|
404647
|
+
case "bottom":
|
|
404648
|
+
return n ? t ? i : r : t ? r : i;
|
|
404649
|
+
case "left":
|
|
404650
|
+
case "right":
|
|
404651
|
+
return t ? s : o;
|
|
404652
|
+
default:
|
|
404653
|
+
return [];
|
|
404654
|
+
}
|
|
404655
|
+
}
|
|
404656
|
+
function ri(e, t, n, r) {
|
|
404657
|
+
const i = ft(e);
|
|
404658
|
+
let s = ni(Re(e), n === "start", r);
|
|
404659
|
+
return i && (s = s.map((o) => o + "-" + i), t && (s = s.concat(s.map(Pt)))), s;
|
|
404660
|
+
}
|
|
404661
|
+
function ct(e) {
|
|
404662
|
+
return e.replace(/left|right|bottom|top/g, (t) => Zr[t]);
|
|
404663
|
+
}
|
|
404664
|
+
function ii(e) {
|
|
404665
|
+
return V({
|
|
404666
|
+
top: 0,
|
|
404667
|
+
right: 0,
|
|
404668
|
+
bottom: 0,
|
|
404669
|
+
left: 0
|
|
404670
|
+
}, e);
|
|
404671
|
+
}
|
|
404672
|
+
function Nn(e) {
|
|
404673
|
+
return typeof e != "number" ? ii(e) : {
|
|
404674
|
+
top: e,
|
|
404675
|
+
right: e,
|
|
404676
|
+
bottom: e,
|
|
404677
|
+
left: e
|
|
404678
|
+
};
|
|
404679
|
+
}
|
|
404680
|
+
function at(e) {
|
|
404681
|
+
const {
|
|
404682
|
+
x: t,
|
|
404683
|
+
y: n,
|
|
404684
|
+
width: r,
|
|
404685
|
+
height: i
|
|
404686
|
+
} = e;
|
|
404687
|
+
return {
|
|
404688
|
+
width: r,
|
|
404689
|
+
height: i,
|
|
404690
|
+
top: n,
|
|
404691
|
+
left: t,
|
|
404692
|
+
right: t + r,
|
|
404693
|
+
bottom: n + i,
|
|
404694
|
+
x: t,
|
|
404695
|
+
y: n
|
|
404696
|
+
};
|
|
404697
|
+
}
|
|
404698
|
+
const oi = ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"], si = ["mainAxis", "crossAxis", "limiter"];
|
|
404699
|
+
function dn(e, t, n) {
|
|
404700
|
+
let {
|
|
404701
|
+
reference: r,
|
|
404702
|
+
floating: i
|
|
404703
|
+
} = e;
|
|
404704
|
+
const s = Be(t), o = Nt(t), c = Bt(o), a = Re(t), u = s === "y", f = r.x + r.width / 2 - i.width / 2, h = r.y + r.height / 2 - i.height / 2, d = r[c] / 2 - i[c] / 2;
|
|
404705
|
+
let g;
|
|
404706
|
+
switch (a) {
|
|
404707
|
+
case "top":
|
|
404708
|
+
g = {
|
|
404709
|
+
x: f,
|
|
404710
|
+
y: r.y - i.height
|
|
404711
|
+
};
|
|
404712
|
+
break;
|
|
404713
|
+
case "bottom":
|
|
404714
|
+
g = {
|
|
404715
|
+
x: f,
|
|
404716
|
+
y: r.y + r.height
|
|
404717
|
+
};
|
|
404718
|
+
break;
|
|
404719
|
+
case "right":
|
|
404720
|
+
g = {
|
|
404721
|
+
x: r.x + r.width,
|
|
404722
|
+
y: h
|
|
404723
|
+
};
|
|
404724
|
+
break;
|
|
404725
|
+
case "left":
|
|
404726
|
+
g = {
|
|
404727
|
+
x: r.x - i.width,
|
|
404728
|
+
y: h
|
|
404729
|
+
};
|
|
404730
|
+
break;
|
|
404731
|
+
default:
|
|
404732
|
+
g = {
|
|
404733
|
+
x: r.x,
|
|
404734
|
+
y: r.y
|
|
404735
|
+
};
|
|
404736
|
+
}
|
|
404737
|
+
switch (ft(t)) {
|
|
404738
|
+
case "start":
|
|
404739
|
+
g[o] -= d * (n && u ? -1 : 1);
|
|
404740
|
+
break;
|
|
404741
|
+
case "end":
|
|
404742
|
+
g[o] += d * (n && u ? -1 : 1);
|
|
404743
|
+
break;
|
|
404744
|
+
}
|
|
404745
|
+
return g;
|
|
404746
|
+
}
|
|
404747
|
+
const li = async (e, t, n) => {
|
|
404748
|
+
const {
|
|
404749
|
+
placement: r = "bottom",
|
|
404750
|
+
strategy: i = "absolute",
|
|
404751
|
+
middleware: s = [],
|
|
404752
|
+
platform: o
|
|
404753
|
+
} = n, c = s.filter(Boolean), a = await (o.isRTL == null ? void 0 : o.isRTL(t));
|
|
404754
|
+
let u = await o.getElementRects({
|
|
404755
|
+
reference: e,
|
|
404756
|
+
floating: t,
|
|
404757
|
+
strategy: i
|
|
404758
|
+
}), {
|
|
404759
|
+
x: f,
|
|
404760
|
+
y: h
|
|
404761
|
+
} = dn(u, r, a), d = r, g = {}, v = 0;
|
|
404762
|
+
for (let x = 0; x < c.length; x++) {
|
|
404763
|
+
const {
|
|
404764
|
+
name: S,
|
|
404765
|
+
fn: w
|
|
404766
|
+
} = c[x], {
|
|
404767
|
+
x: _,
|
|
404768
|
+
y: R,
|
|
404769
|
+
data: y,
|
|
404770
|
+
reset: m
|
|
404771
|
+
} = await w({
|
|
404772
|
+
x: f,
|
|
404773
|
+
y: h,
|
|
404774
|
+
initialPlacement: r,
|
|
404775
|
+
placement: d,
|
|
404776
|
+
strategy: i,
|
|
404777
|
+
middlewareData: g,
|
|
404778
|
+
rects: u,
|
|
404779
|
+
platform: o,
|
|
404780
|
+
elements: {
|
|
404781
|
+
reference: e,
|
|
404782
|
+
floating: t
|
|
404783
|
+
}
|
|
404784
|
+
});
|
|
404785
|
+
f = _ ?? f, h = R ?? h, g = V({}, g, {
|
|
404786
|
+
[S]: V({}, g[S], y)
|
|
404787
|
+
}), m && v <= 50 && (v++, typeof m == "object" && (m.placement && (d = m.placement), m.rects && (u = m.rects === !0 ? await o.getElementRects({
|
|
404788
|
+
reference: e,
|
|
404789
|
+
floating: t,
|
|
404790
|
+
strategy: i
|
|
404791
|
+
}) : m.rects), {
|
|
404792
|
+
x: f,
|
|
404793
|
+
y: h
|
|
404794
|
+
} = dn(u, d, a)), x = -1);
|
|
404795
|
+
}
|
|
404796
|
+
return {
|
|
404797
|
+
x: f,
|
|
404798
|
+
y: h,
|
|
404799
|
+
placement: d,
|
|
404800
|
+
strategy: i,
|
|
404801
|
+
middlewareData: g
|
|
404802
|
+
};
|
|
404803
|
+
};
|
|
404804
|
+
async function Wn(e, t) {
|
|
404805
|
+
var n;
|
|
404806
|
+
t === void 0 && (t = {});
|
|
404807
|
+
const {
|
|
404808
|
+
x: r,
|
|
404809
|
+
y: i,
|
|
404810
|
+
platform: s,
|
|
404811
|
+
rects: o,
|
|
404812
|
+
elements: c,
|
|
404813
|
+
strategy: a
|
|
404814
|
+
} = e, {
|
|
404815
|
+
boundary: u = "clippingAncestors",
|
|
404816
|
+
rootBoundary: f = "viewport",
|
|
404817
|
+
elementContext: h = "floating",
|
|
404818
|
+
altBoundary: d = !1,
|
|
404819
|
+
padding: g = 0
|
|
404820
|
+
} = je(t, e), v = Nn(g), S = c[d ? h === "floating" ? "reference" : "floating" : h], w = at(await s.getClippingRect({
|
|
404821
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(S))) == null || n ? S : S.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
404822
|
+
boundary: u,
|
|
404823
|
+
rootBoundary: f,
|
|
404824
|
+
strategy: a
|
|
404825
|
+
})), _ = h === "floating" ? {
|
|
404826
|
+
x: r,
|
|
404827
|
+
y: i,
|
|
404828
|
+
width: o.floating.width,
|
|
404829
|
+
height: o.floating.height
|
|
404830
|
+
} : o.reference, R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), y = await (s.isElement == null ? void 0 : s.isElement(R)) ? await (s.getScale == null ? void 0 : s.getScale(R)) || {
|
|
404831
|
+
x: 1,
|
|
404832
|
+
y: 1
|
|
404833
|
+
} : {
|
|
404834
|
+
x: 1,
|
|
404835
|
+
y: 1
|
|
404836
|
+
}, m = at(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
404837
|
+
elements: c,
|
|
404838
|
+
rect: _,
|
|
404839
|
+
offsetParent: R,
|
|
404840
|
+
strategy: a
|
|
404841
|
+
}) : _);
|
|
404842
|
+
return {
|
|
404843
|
+
top: (w.top - m.top + v.top) / y.y,
|
|
404844
|
+
bottom: (m.bottom - w.bottom + v.bottom) / y.y,
|
|
404845
|
+
left: (w.left - m.left + v.left) / y.x,
|
|
404846
|
+
right: (m.right - w.right + v.right) / y.x
|
|
404847
|
+
};
|
|
404848
|
+
}
|
|
404849
|
+
const ci = (e) => ({
|
|
404850
|
+
name: "arrow",
|
|
404851
|
+
options: e,
|
|
404852
|
+
async fn(t) {
|
|
404853
|
+
const {
|
|
404854
|
+
x: n,
|
|
404855
|
+
y: r,
|
|
404856
|
+
placement: i,
|
|
404857
|
+
rects: s,
|
|
404858
|
+
platform: o,
|
|
404859
|
+
elements: c,
|
|
404860
|
+
middlewareData: a
|
|
404861
|
+
} = t, {
|
|
404862
|
+
element: u,
|
|
404863
|
+
padding: f = 0
|
|
404864
|
+
} = je(e, t) || {};
|
|
404865
|
+
if (u == null)
|
|
404866
|
+
return {};
|
|
404867
|
+
const h = Nn(f), d = {
|
|
404868
|
+
x: n,
|
|
404869
|
+
y: r
|
|
404870
|
+
}, g = Nt(i), v = Bt(g), x = await o.getDimensions(u), S = g === "y", w = S ? "top" : "left", _ = S ? "bottom" : "right", R = S ? "clientHeight" : "clientWidth", y = s.reference[v] + s.reference[g] - d[g] - s.floating[v], m = d[g] - s.reference[g], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
|
|
404871
|
+
let B = T ? T[R] : 0;
|
|
404872
|
+
(!B || !await (o.isElement == null ? void 0 : o.isElement(T))) && (B = c.floating[R] || s.floating[v]);
|
|
404873
|
+
const ie = y / 2 - m / 2, H = B / 2 - x[v] / 2 - 1, K = De(h[w], H), U = De(h[_], H), W = K, j = B - x[v] - U, L = B / 2 - x[v] / 2 + ie, X = At(W, L, j), Y = !a.arrow && ft(i) != null && L !== X && s.reference[v] / 2 - (L < W ? K : U) - x[v] / 2 < 0, le = Y ? L < W ? L - W : L - j : 0;
|
|
404874
|
+
return {
|
|
404875
|
+
[g]: d[g] + le,
|
|
404876
|
+
data: V({
|
|
404877
|
+
[g]: X,
|
|
404878
|
+
centerOffset: L - X - le
|
|
404879
|
+
}, Y && {
|
|
404880
|
+
alignmentOffset: le
|
|
404881
|
+
}),
|
|
404882
|
+
reset: Y
|
|
404883
|
+
};
|
|
404884
|
+
}
|
|
404885
|
+
}), ai = function(t) {
|
|
404886
|
+
return t === void 0 && (t = {}), {
|
|
404887
|
+
name: "flip",
|
|
404888
|
+
options: t,
|
|
404889
|
+
async fn(n) {
|
|
404890
|
+
var r, i;
|
|
404891
|
+
const {
|
|
404892
|
+
placement: s,
|
|
404893
|
+
middlewareData: o,
|
|
404894
|
+
rects: c,
|
|
404895
|
+
initialPlacement: a,
|
|
404896
|
+
platform: u,
|
|
404897
|
+
elements: f
|
|
404898
|
+
} = n, h = je(t, n), {
|
|
404899
|
+
mainAxis: d = !0,
|
|
404900
|
+
crossAxis: g = !0,
|
|
404901
|
+
fallbackPlacements: v,
|
|
404902
|
+
fallbackStrategy: x = "bestFit",
|
|
404903
|
+
fallbackAxisSideDirection: S = "none",
|
|
404904
|
+
flipAlignment: w = !0
|
|
404905
|
+
} = h, _ = In(h, oi);
|
|
404906
|
+
if ((r = o.arrow) != null && r.alignmentOffset)
|
|
404907
|
+
return {};
|
|
404908
|
+
const R = Re(s), y = Be(a), m = Re(a) === a, T = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), B = v || (m || !w ? [ct(a)] : ti(a)), ie = S !== "none";
|
|
404909
|
+
!v && ie && B.push(...ri(a, w, S, T));
|
|
404910
|
+
const H = [a, ...B], K = await Wn(n, _), U = [];
|
|
404911
|
+
let W = ((i = o.flip) == null ? void 0 : i.overflows) || [];
|
|
404912
|
+
if (d && U.push(K[R]), g) {
|
|
404913
|
+
const Y = ei(s, c, T);
|
|
404914
|
+
U.push(K[Y[0]], K[Y[1]]);
|
|
404915
|
+
}
|
|
404916
|
+
if (W = [...W, {
|
|
404917
|
+
placement: s,
|
|
404918
|
+
overflows: U
|
|
404919
|
+
}], !U.every((Y) => Y <= 0)) {
|
|
404920
|
+
var j, L;
|
|
404921
|
+
const Y = (((j = o.flip) == null ? void 0 : j.index) || 0) + 1, le = H[Y];
|
|
404922
|
+
if (le)
|
|
404923
|
+
return {
|
|
404924
|
+
data: {
|
|
404925
|
+
index: Y,
|
|
404926
|
+
overflows: W
|
|
404927
|
+
},
|
|
404928
|
+
reset: {
|
|
404929
|
+
placement: le
|
|
404930
|
+
}
|
|
404931
|
+
};
|
|
404932
|
+
let he = (L = W.filter((ce) => ce.overflows[0] <= 0).sort((ce, Q) => ce.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
404933
|
+
if (!he)
|
|
404934
|
+
switch (x) {
|
|
404935
|
+
case "bestFit": {
|
|
404936
|
+
var X;
|
|
404937
|
+
const ce = (X = W.filter((Q) => {
|
|
404938
|
+
if (ie) {
|
|
404939
|
+
const ee = Be(Q.placement);
|
|
404940
|
+
return ee === y || // Create a bias to the `y` side axis due to horizontal
|
|
404941
|
+
// reading directions favoring greater width.
|
|
404942
|
+
ee === "y";
|
|
404943
|
+
}
|
|
404944
|
+
return !0;
|
|
404945
|
+
}).map((Q) => [Q.placement, Q.overflows.filter((ee) => ee > 0).reduce((ee, et) => ee + et, 0)]).sort((Q, ee) => Q[1] - ee[1])[0]) == null ? void 0 : X[0];
|
|
404946
|
+
ce && (he = ce);
|
|
404947
|
+
break;
|
|
404948
|
+
}
|
|
404949
|
+
case "initialPlacement":
|
|
404950
|
+
he = a;
|
|
404951
|
+
break;
|
|
404952
|
+
}
|
|
404953
|
+
if (s !== he)
|
|
404954
|
+
return {
|
|
404955
|
+
reset: {
|
|
404956
|
+
placement: he
|
|
404957
|
+
}
|
|
404958
|
+
};
|
|
404959
|
+
}
|
|
404960
|
+
return {};
|
|
404961
|
+
}
|
|
404962
|
+
};
|
|
404963
|
+
}, ui = function(t) {
|
|
404964
|
+
return t === void 0 && (t = {}), {
|
|
404965
|
+
name: "shift",
|
|
404966
|
+
options: t,
|
|
404967
|
+
async fn(n) {
|
|
404968
|
+
const {
|
|
404969
|
+
x: r,
|
|
404970
|
+
y: i,
|
|
404971
|
+
placement: s
|
|
404972
|
+
} = n, o = je(t, n), {
|
|
404973
|
+
mainAxis: c = !0,
|
|
404974
|
+
crossAxis: a = !1,
|
|
404975
|
+
limiter: u = {
|
|
404976
|
+
fn: (_) => {
|
|
404977
|
+
let {
|
|
404978
|
+
x: R,
|
|
404979
|
+
y
|
|
404980
|
+
} = _;
|
|
404981
|
+
return {
|
|
404982
|
+
x: R,
|
|
404983
|
+
y
|
|
404984
|
+
};
|
|
404985
|
+
}
|
|
404986
|
+
}
|
|
404987
|
+
} = o, f = In(o, si), h = {
|
|
404988
|
+
x: r,
|
|
404989
|
+
y: i
|
|
404990
|
+
}, d = await Wn(n, f), g = Be(Re(s)), v = jt(g);
|
|
404991
|
+
let x = h[v], S = h[g];
|
|
404992
|
+
if (c) {
|
|
404993
|
+
const _ = v === "y" ? "top" : "left", R = v === "y" ? "bottom" : "right", y = x + d[_], m = x - d[R];
|
|
404994
|
+
x = At(y, x, m);
|
|
404995
|
+
}
|
|
404996
|
+
if (a) {
|
|
404997
|
+
const _ = g === "y" ? "top" : "left", R = g === "y" ? "bottom" : "right", y = S + d[_], m = S - d[R];
|
|
404998
|
+
S = At(y, S, m);
|
|
404999
|
+
}
|
|
405000
|
+
const w = u.fn(V({}, n, {
|
|
405001
|
+
[v]: x,
|
|
405002
|
+
[g]: S
|
|
405003
|
+
}));
|
|
405004
|
+
return V({}, w, {
|
|
405005
|
+
data: {
|
|
405006
|
+
x: w.x - r,
|
|
405007
|
+
y: w.y - i
|
|
405008
|
+
}
|
|
405009
|
+
});
|
|
405010
|
+
}
|
|
405011
|
+
};
|
|
405012
|
+
}, fi = function(t) {
|
|
405013
|
+
return t === void 0 && (t = {}), {
|
|
405014
|
+
options: t,
|
|
405015
|
+
fn(n) {
|
|
405016
|
+
const {
|
|
405017
|
+
x: r,
|
|
405018
|
+
y: i,
|
|
405019
|
+
placement: s,
|
|
405020
|
+
rects: o,
|
|
405021
|
+
middlewareData: c
|
|
405022
|
+
} = n, {
|
|
405023
|
+
offset: a = 0,
|
|
405024
|
+
mainAxis: u = !0,
|
|
405025
|
+
crossAxis: f = !0
|
|
405026
|
+
} = je(t, n), h = {
|
|
405027
|
+
x: r,
|
|
405028
|
+
y: i
|
|
405029
|
+
}, d = Be(s), g = jt(d);
|
|
405030
|
+
let v = h[g], x = h[d];
|
|
405031
|
+
const S = je(a, n), w = typeof S == "number" ? {
|
|
405032
|
+
mainAxis: S,
|
|
405033
|
+
crossAxis: 0
|
|
405034
|
+
} : V({
|
|
405035
|
+
mainAxis: 0,
|
|
405036
|
+
crossAxis: 0
|
|
405037
|
+
}, S);
|
|
405038
|
+
if (u) {
|
|
405039
|
+
const y = g === "y" ? "height" : "width", m = o.reference[g] - o.floating[y] + w.mainAxis, T = o.reference[g] + o.reference[y] - w.mainAxis;
|
|
405040
|
+
v < m ? v = m : v > T && (v = T);
|
|
405041
|
+
}
|
|
405042
|
+
if (f) {
|
|
405043
|
+
var _, R;
|
|
405044
|
+
const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(Re(s)), T = o.reference[d] - o.floating[y] + (m && ((_ = c.offset) == null ? void 0 : _[d]) || 0) + (m ? 0 : w.crossAxis), B = o.reference[d] + o.reference[y] + (m ? 0 : ((R = c.offset) == null ? void 0 : R[d]) || 0) - (m ? w.crossAxis : 0);
|
|
405045
|
+
x < T ? x = T : x > B && (x = B);
|
|
405046
|
+
}
|
|
405047
|
+
return {
|
|
405048
|
+
[g]: v,
|
|
405049
|
+
[d]: x
|
|
405050
|
+
};
|
|
405051
|
+
}
|
|
405052
|
+
};
|
|
405053
|
+
};
|
|
405054
|
+
function Ve(e) {
|
|
405055
|
+
return $n(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
405056
|
+
}
|
|
405057
|
+
function q(e) {
|
|
405058
|
+
var t;
|
|
405059
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
405060
|
+
}
|
|
405061
|
+
function ae(e) {
|
|
405062
|
+
var t;
|
|
405063
|
+
return (t = ($n(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
405064
|
+
}
|
|
405065
|
+
function $n(e) {
|
|
405066
|
+
return e instanceof Node || e instanceof q(e).Node;
|
|
405067
|
+
}
|
|
405068
|
+
function te(e) {
|
|
405069
|
+
return e instanceof Element || e instanceof q(e).Element;
|
|
405070
|
+
}
|
|
405071
|
+
function oe(e) {
|
|
405072
|
+
return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
|
|
405073
|
+
}
|
|
405074
|
+
function hn(e) {
|
|
405075
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
405076
|
+
}
|
|
405077
|
+
function Ze(e) {
|
|
405078
|
+
const {
|
|
405079
|
+
overflow: t,
|
|
405080
|
+
overflowX: n,
|
|
405081
|
+
overflowY: r,
|
|
405082
|
+
display: i
|
|
405083
|
+
} = ne(e);
|
|
405084
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
|
|
405085
|
+
}
|
|
405086
|
+
function di(e) {
|
|
405087
|
+
return ["table", "td", "th"].includes(Ve(e));
|
|
405088
|
+
}
|
|
405089
|
+
function dt(e) {
|
|
405090
|
+
return [":popover-open", ":modal"].some((t) => {
|
|
405091
|
+
try {
|
|
405092
|
+
return e.matches(t);
|
|
405093
|
+
} catch {
|
|
405094
|
+
return !1;
|
|
405095
|
+
}
|
|
405096
|
+
});
|
|
405097
|
+
}
|
|
405098
|
+
function Wt(e) {
|
|
405099
|
+
const t = $t(), n = te(e) ? ne(e) : e;
|
|
405100
|
+
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
405101
|
+
}
|
|
405102
|
+
function hi(e) {
|
|
405103
|
+
let t = me(e);
|
|
405104
|
+
for (; oe(t) && !Ne(t); ) {
|
|
405105
|
+
if (Wt(t))
|
|
405106
|
+
return t;
|
|
405107
|
+
if (dt(t))
|
|
405108
|
+
return null;
|
|
405109
|
+
t = me(t);
|
|
405110
|
+
}
|
|
405111
|
+
return null;
|
|
405112
|
+
}
|
|
405113
|
+
function $t() {
|
|
405114
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
405115
|
+
}
|
|
405116
|
+
function Ne(e) {
|
|
405117
|
+
return ["html", "body", "#document"].includes(Ve(e));
|
|
405118
|
+
}
|
|
405119
|
+
function ne(e) {
|
|
405120
|
+
return q(e).getComputedStyle(e);
|
|
405121
|
+
}
|
|
405122
|
+
function ht(e) {
|
|
405123
|
+
return te(e) ? {
|
|
405124
|
+
scrollLeft: e.scrollLeft,
|
|
405125
|
+
scrollTop: e.scrollTop
|
|
405126
|
+
} : {
|
|
405127
|
+
scrollLeft: e.scrollX,
|
|
405128
|
+
scrollTop: e.scrollY
|
|
405129
|
+
};
|
|
405130
|
+
}
|
|
405131
|
+
function me(e) {
|
|
405132
|
+
if (Ve(e) === "html")
|
|
405133
|
+
return e;
|
|
405134
|
+
const t = (
|
|
405135
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
405136
|
+
e.assignedSlot || // DOM Element detected.
|
|
405137
|
+
e.parentNode || // ShadowRoot detected.
|
|
405138
|
+
hn(e) && e.host || // Fallback.
|
|
405139
|
+
ae(e)
|
|
405140
|
+
);
|
|
405141
|
+
return hn(t) ? t.host : t;
|
|
405142
|
+
}
|
|
405143
|
+
function Vn(e) {
|
|
405144
|
+
const t = me(e);
|
|
405145
|
+
return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : oe(t) && Ze(t) ? t : Vn(t);
|
|
405146
|
+
}
|
|
405147
|
+
function Ke(e, t, n) {
|
|
405148
|
+
var r;
|
|
405149
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
405150
|
+
const i = Vn(e), s = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = q(i);
|
|
405151
|
+
return s ? t.concat(o, o.visualViewport || [], Ze(i) ? i : [], o.frameElement && n ? Ke(o.frameElement) : []) : t.concat(i, Ke(i, [], n));
|
|
405152
|
+
}
|
|
405153
|
+
function Hn(e) {
|
|
405154
|
+
const t = ne(e);
|
|
405155
|
+
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
405156
|
+
const i = oe(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, c = lt(n) !== s || lt(r) !== o;
|
|
405157
|
+
return c && (n = s, r = o), {
|
|
405158
|
+
width: n,
|
|
405159
|
+
height: r,
|
|
405160
|
+
$: c
|
|
405161
|
+
};
|
|
405162
|
+
}
|
|
405163
|
+
function Vt(e) {
|
|
405164
|
+
return te(e) ? e : e.contextElement;
|
|
405165
|
+
}
|
|
405166
|
+
function Fe(e) {
|
|
405167
|
+
const t = Vt(e);
|
|
405168
|
+
if (!oe(t))
|
|
405169
|
+
return ge(1);
|
|
405170
|
+
const n = t.getBoundingClientRect(), {
|
|
405171
|
+
width: r,
|
|
405172
|
+
height: i,
|
|
405173
|
+
$: s
|
|
405174
|
+
} = Hn(t);
|
|
405175
|
+
let o = (s ? lt(n.width) : n.width) / r, c = (s ? lt(n.height) : n.height) / i;
|
|
405176
|
+
return (!o || !Number.isFinite(o)) && (o = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
405177
|
+
x: o,
|
|
405178
|
+
y: c
|
|
405179
|
+
};
|
|
405180
|
+
}
|
|
405181
|
+
const pi = /* @__PURE__ */ ge(0);
|
|
405182
|
+
function Un(e) {
|
|
405183
|
+
const t = q(e);
|
|
405184
|
+
return !$t() || !t.visualViewport ? pi : {
|
|
405185
|
+
x: t.visualViewport.offsetLeft,
|
|
405186
|
+
y: t.visualViewport.offsetTop
|
|
405187
|
+
};
|
|
405188
|
+
}
|
|
405189
|
+
function gi(e, t, n) {
|
|
405190
|
+
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
405191
|
+
}
|
|
405192
|
+
function Te(e, t, n, r) {
|
|
405193
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
405194
|
+
const i = e.getBoundingClientRect(), s = Vt(e);
|
|
405195
|
+
let o = ge(1);
|
|
405196
|
+
t && (r ? te(r) && (o = Fe(r)) : o = Fe(e));
|
|
405197
|
+
const c = gi(s, n, r) ? Un(s) : ge(0);
|
|
405198
|
+
let a = (i.left + c.x) / o.x, u = (i.top + c.y) / o.y, f = i.width / o.x, h = i.height / o.y;
|
|
405199
|
+
if (s) {
|
|
405200
|
+
const d = q(s), g = r && te(r) ? q(r) : r;
|
|
405201
|
+
let v = d, x = v.frameElement;
|
|
405202
|
+
for (; x && r && g !== v; ) {
|
|
405203
|
+
const S = Fe(x), w = x.getBoundingClientRect(), _ = ne(x), R = w.left + (x.clientLeft + parseFloat(_.paddingLeft)) * S.x, y = w.top + (x.clientTop + parseFloat(_.paddingTop)) * S.y;
|
|
405204
|
+
a *= S.x, u *= S.y, f *= S.x, h *= S.y, a += R, u += y, v = q(x), x = v.frameElement;
|
|
405205
|
+
}
|
|
405206
|
+
}
|
|
405207
|
+
return at({
|
|
405208
|
+
width: f,
|
|
405209
|
+
height: h,
|
|
405210
|
+
x: a,
|
|
405211
|
+
y: u
|
|
405212
|
+
});
|
|
405213
|
+
}
|
|
405214
|
+
function mi(e) {
|
|
405215
|
+
let {
|
|
405216
|
+
elements: t,
|
|
405217
|
+
rect: n,
|
|
405218
|
+
offsetParent: r,
|
|
405219
|
+
strategy: i
|
|
405220
|
+
} = e;
|
|
405221
|
+
const s = i === "fixed", o = ae(r), c = t ? dt(t.floating) : !1;
|
|
405222
|
+
if (r === o || c && s)
|
|
405223
|
+
return n;
|
|
405224
|
+
let a = {
|
|
405225
|
+
scrollLeft: 0,
|
|
405226
|
+
scrollTop: 0
|
|
405227
|
+
}, u = ge(1);
|
|
405228
|
+
const f = ge(0), h = oe(r);
|
|
405229
|
+
if ((h || !h && !s) && ((Ve(r) !== "body" || Ze(o)) && (a = ht(r)), oe(r))) {
|
|
405230
|
+
const d = Te(r);
|
|
405231
|
+
u = Fe(r), f.x = d.x + r.clientLeft, f.y = d.y + r.clientTop;
|
|
405232
|
+
}
|
|
405233
|
+
return {
|
|
405234
|
+
width: n.width * u.x,
|
|
405235
|
+
height: n.height * u.y,
|
|
405236
|
+
x: n.x * u.x - a.scrollLeft * u.x + f.x,
|
|
405237
|
+
y: n.y * u.y - a.scrollTop * u.y + f.y
|
|
405238
|
+
};
|
|
405239
|
+
}
|
|
405240
|
+
function bi(e) {
|
|
405241
|
+
return Array.from(e.getClientRects());
|
|
405242
|
+
}
|
|
405243
|
+
function Yn(e) {
|
|
405244
|
+
return Te(ae(e)).left + ht(e).scrollLeft;
|
|
405245
|
+
}
|
|
405246
|
+
function vi(e) {
|
|
405247
|
+
const t = ae(e), n = ht(e), r = e.ownerDocument.body, i = Ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
405248
|
+
let o = -n.scrollLeft + Yn(e);
|
|
405249
|
+
const c = -n.scrollTop;
|
|
405250
|
+
return ne(r).direction === "rtl" && (o += Ee(t.clientWidth, r.clientWidth) - i), {
|
|
405251
|
+
width: i,
|
|
405252
|
+
height: s,
|
|
405253
|
+
x: o,
|
|
405254
|
+
y: c
|
|
405255
|
+
};
|
|
405256
|
+
}
|
|
405257
|
+
function yi(e, t) {
|
|
405258
|
+
const n = q(e), r = ae(e), i = n.visualViewport;
|
|
405259
|
+
let s = r.clientWidth, o = r.clientHeight, c = 0, a = 0;
|
|
405260
|
+
if (i) {
|
|
405261
|
+
s = i.width, o = i.height;
|
|
405262
|
+
const u = $t();
|
|
405263
|
+
(!u || u && t === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
|
|
405264
|
+
}
|
|
405265
|
+
return {
|
|
405266
|
+
width: s,
|
|
405267
|
+
height: o,
|
|
405268
|
+
x: c,
|
|
405269
|
+
y: a
|
|
405270
|
+
};
|
|
405271
|
+
}
|
|
405272
|
+
function _i(e, t) {
|
|
405273
|
+
const n = Te(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, s = oe(e) ? Fe(e) : ge(1), o = e.clientWidth * s.x, c = e.clientHeight * s.y, a = i * s.x, u = r * s.y;
|
|
405274
|
+
return {
|
|
405275
|
+
width: o,
|
|
405276
|
+
height: c,
|
|
405277
|
+
x: a,
|
|
405278
|
+
y: u
|
|
405279
|
+
};
|
|
405280
|
+
}
|
|
405281
|
+
function pn(e, t, n) {
|
|
405282
|
+
let r;
|
|
405283
|
+
if (t === "viewport")
|
|
405284
|
+
r = yi(e, n);
|
|
405285
|
+
else if (t === "document")
|
|
405286
|
+
r = vi(ae(e));
|
|
405287
|
+
else if (te(t))
|
|
405288
|
+
r = _i(t, n);
|
|
405289
|
+
else {
|
|
405290
|
+
const i = Un(e);
|
|
405291
|
+
r = V({}, t, {
|
|
405292
|
+
x: t.x - i.x,
|
|
405293
|
+
y: t.y - i.y
|
|
405294
|
+
});
|
|
405295
|
+
}
|
|
405296
|
+
return at(r);
|
|
405297
|
+
}
|
|
405298
|
+
function zn(e, t) {
|
|
405299
|
+
const n = me(e);
|
|
405300
|
+
return n === t || !te(n) || Ne(n) ? !1 : ne(n).position === "fixed" || zn(n, t);
|
|
405301
|
+
}
|
|
405302
|
+
function wi(e, t) {
|
|
405303
|
+
const n = t.get(e);
|
|
405304
|
+
if (n)
|
|
405305
|
+
return n;
|
|
405306
|
+
let r = Ke(e, [], !1).filter((c) => te(c) && Ve(c) !== "body"), i = null;
|
|
405307
|
+
const s = ne(e).position === "fixed";
|
|
405308
|
+
let o = s ? me(e) : e;
|
|
405309
|
+
for (; te(o) && !Ne(o); ) {
|
|
405310
|
+
const c = ne(o), a = Wt(o);
|
|
405311
|
+
!a && c.position === "fixed" && (i = null), (s ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ze(o) && !a && zn(e, o)) ? r = r.filter((f) => f !== o) : i = c, o = me(o);
|
|
405312
|
+
}
|
|
405313
|
+
return t.set(e, r), r;
|
|
405314
|
+
}
|
|
405315
|
+
function xi(e) {
|
|
405316
|
+
let {
|
|
405317
|
+
element: t,
|
|
405318
|
+
boundary: n,
|
|
405319
|
+
rootBoundary: r,
|
|
405320
|
+
strategy: i
|
|
405321
|
+
} = e;
|
|
405322
|
+
const o = [...n === "clippingAncestors" ? dt(t) ? [] : wi(t, this._c) : [].concat(n), r], c = o[0], a = o.reduce((u, f) => {
|
|
405323
|
+
const h = pn(t, f, i);
|
|
405324
|
+
return u.top = Ee(h.top, u.top), u.right = De(h.right, u.right), u.bottom = De(h.bottom, u.bottom), u.left = Ee(h.left, u.left), u;
|
|
405325
|
+
}, pn(t, c, i));
|
|
405326
|
+
return {
|
|
405327
|
+
width: a.right - a.left,
|
|
405328
|
+
height: a.bottom - a.top,
|
|
405329
|
+
x: a.left,
|
|
405330
|
+
y: a.top
|
|
405331
|
+
};
|
|
405332
|
+
}
|
|
405333
|
+
function Ei(e) {
|
|
405334
|
+
const {
|
|
405335
|
+
width: t,
|
|
405336
|
+
height: n
|
|
405337
|
+
} = Hn(e);
|
|
405338
|
+
return {
|
|
405339
|
+
width: t,
|
|
405340
|
+
height: n
|
|
405341
|
+
};
|
|
405342
|
+
}
|
|
405343
|
+
function Si(e, t, n) {
|
|
405344
|
+
const r = oe(t), i = ae(t), s = n === "fixed", o = Te(e, !0, s, t);
|
|
405345
|
+
let c = {
|
|
405346
|
+
scrollLeft: 0,
|
|
405347
|
+
scrollTop: 0
|
|
405348
|
+
};
|
|
405349
|
+
const a = ge(0);
|
|
405350
|
+
if (r || !r && !s)
|
|
405351
|
+
if ((Ve(t) !== "body" || Ze(i)) && (c = ht(t)), r) {
|
|
405352
|
+
const h = Te(t, !0, s, t);
|
|
405353
|
+
a.x = h.x + t.clientLeft, a.y = h.y + t.clientTop;
|
|
405354
|
+
} else i && (a.x = Yn(i));
|
|
405355
|
+
const u = o.left + c.scrollLeft - a.x, f = o.top + c.scrollTop - a.y;
|
|
405356
|
+
return {
|
|
405357
|
+
x: u,
|
|
405358
|
+
y: f,
|
|
405359
|
+
width: o.width,
|
|
405360
|
+
height: o.height
|
|
405361
|
+
};
|
|
405362
|
+
}
|
|
405363
|
+
function Rt(e) {
|
|
405364
|
+
return ne(e).position === "static";
|
|
405365
|
+
}
|
|
405366
|
+
function gn(e, t) {
|
|
405367
|
+
return !oe(e) || ne(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
405368
|
+
}
|
|
405369
|
+
function qn(e, t) {
|
|
405370
|
+
const n = q(e);
|
|
405371
|
+
if (dt(e))
|
|
405372
|
+
return n;
|
|
405373
|
+
if (!oe(e)) {
|
|
405374
|
+
let i = me(e);
|
|
405375
|
+
for (; i && !Ne(i); ) {
|
|
405376
|
+
if (te(i) && !Rt(i))
|
|
405377
|
+
return i;
|
|
405378
|
+
i = me(i);
|
|
405379
|
+
}
|
|
405380
|
+
return n;
|
|
405381
|
+
}
|
|
405382
|
+
let r = gn(e, t);
|
|
405383
|
+
for (; r && di(r) && Rt(r); )
|
|
405384
|
+
r = gn(r, t);
|
|
405385
|
+
return r && Ne(r) && Rt(r) && !Wt(r) ? n : r || hi(e) || n;
|
|
405386
|
+
}
|
|
405387
|
+
const Oi = async function(t) {
|
|
405388
|
+
const n = this.getOffsetParent || qn, r = this.getDimensions, i = await r(t.floating);
|
|
405389
|
+
return {
|
|
405390
|
+
reference: Si(t.reference, await n(t.floating), t.strategy),
|
|
405391
|
+
floating: {
|
|
405392
|
+
x: 0,
|
|
405393
|
+
y: 0,
|
|
405394
|
+
width: i.width,
|
|
405395
|
+
height: i.height
|
|
405396
|
+
}
|
|
405397
|
+
};
|
|
405398
|
+
};
|
|
405399
|
+
function Ri(e) {
|
|
405400
|
+
return ne(e).direction === "rtl";
|
|
405401
|
+
}
|
|
405402
|
+
const Ti = {
|
|
405403
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: mi,
|
|
405404
|
+
getDocumentElement: ae,
|
|
405405
|
+
getClippingRect: xi,
|
|
405406
|
+
getOffsetParent: qn,
|
|
405407
|
+
getElementRects: Oi,
|
|
405408
|
+
getClientRects: bi,
|
|
405409
|
+
getDimensions: Ei,
|
|
405410
|
+
getScale: Fe,
|
|
405411
|
+
isElement: te,
|
|
405412
|
+
isRTL: Ri
|
|
405413
|
+
};
|
|
405414
|
+
function Ci(e, t) {
|
|
405415
|
+
let n = null, r;
|
|
405416
|
+
const i = ae(e);
|
|
405417
|
+
function s() {
|
|
405418
|
+
var c;
|
|
405419
|
+
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
405420
|
+
}
|
|
405421
|
+
function o(c, a) {
|
|
405422
|
+
c === void 0 && (c = !1), a === void 0 && (a = 1), s();
|
|
405423
|
+
const {
|
|
405424
|
+
left: u,
|
|
405425
|
+
top: f,
|
|
405426
|
+
width: h,
|
|
405427
|
+
height: d
|
|
405428
|
+
} = e.getBoundingClientRect();
|
|
405429
|
+
if (c || t(), !h || !d)
|
|
405430
|
+
return;
|
|
405431
|
+
const g = ot(f), v = ot(i.clientWidth - (u + h)), x = ot(i.clientHeight - (f + d)), S = ot(u), _ = {
|
|
405432
|
+
rootMargin: -g + "px " + -v + "px " + -x + "px " + -S + "px",
|
|
405433
|
+
threshold: Ee(0, De(1, a)) || 1
|
|
405434
|
+
};
|
|
405435
|
+
let R = !0;
|
|
405436
|
+
function y(m) {
|
|
405437
|
+
const T = m[0].intersectionRatio;
|
|
405438
|
+
if (T !== a) {
|
|
405439
|
+
if (!R)
|
|
405440
|
+
return o();
|
|
405441
|
+
T ? o(!1, T) : r = setTimeout(() => {
|
|
405442
|
+
o(!1, 1e-7);
|
|
405443
|
+
}, 1e3);
|
|
405444
|
+
}
|
|
405445
|
+
R = !1;
|
|
405446
|
+
}
|
|
405447
|
+
try {
|
|
405448
|
+
n = new IntersectionObserver(y, V({}, _, {
|
|
405449
|
+
// Handle <iframe>s
|
|
405450
|
+
root: i.ownerDocument
|
|
405451
|
+
}));
|
|
405452
|
+
} catch {
|
|
405453
|
+
n = new IntersectionObserver(y, _);
|
|
405454
|
+
}
|
|
405455
|
+
n.observe(e);
|
|
405456
|
+
}
|
|
405457
|
+
return o(!0), s;
|
|
405458
|
+
}
|
|
405459
|
+
function Ai(e, t, n, r) {
|
|
405460
|
+
r === void 0 && (r = {});
|
|
405461
|
+
const {
|
|
405462
|
+
ancestorScroll: i = !0,
|
|
405463
|
+
ancestorResize: s = !0,
|
|
405464
|
+
elementResize: o = typeof ResizeObserver == "function",
|
|
405465
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
405466
|
+
animationFrame: a = !1
|
|
405467
|
+
} = r, u = Vt(e), f = i || s ? [...u ? Ke(u) : [], ...Ke(t)] : [];
|
|
405468
|
+
f.forEach((w) => {
|
|
405469
|
+
i && w.addEventListener("scroll", n, {
|
|
405470
|
+
passive: !0
|
|
405471
|
+
}), s && w.addEventListener("resize", n);
|
|
405472
|
+
});
|
|
405473
|
+
const h = u && c ? Ci(u, n) : null;
|
|
405474
|
+
let d = -1, g = null;
|
|
405475
|
+
o && (g = new ResizeObserver((w) => {
|
|
405476
|
+
let [_] = w;
|
|
405477
|
+
_ && _.target === u && g && (g.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
405478
|
+
var R;
|
|
405479
|
+
(R = g) == null || R.observe(t);
|
|
405480
|
+
})), n();
|
|
405481
|
+
}), u && !a && g.observe(u), g.observe(t));
|
|
405482
|
+
let v, x = a ? Te(e) : null;
|
|
405483
|
+
a && S();
|
|
405484
|
+
function S() {
|
|
405485
|
+
const w = Te(e);
|
|
405486
|
+
x && (w.x !== x.x || w.y !== x.y || w.width !== x.width || w.height !== x.height) && n(), x = w, v = requestAnimationFrame(S);
|
|
405487
|
+
}
|
|
405488
|
+
return n(), () => {
|
|
405489
|
+
var w;
|
|
405490
|
+
f.forEach((_) => {
|
|
405491
|
+
i && _.removeEventListener("scroll", n), s && _.removeEventListener("resize", n);
|
|
405492
|
+
}), h == null || h(), (w = g) == null || w.disconnect(), g = null, a && cancelAnimationFrame(v);
|
|
405493
|
+
};
|
|
405494
|
+
}
|
|
405495
|
+
const Pi = ui, ki = ai, Ii = ci, Mi = fi, Fi = (e, t, n) => {
|
|
405496
|
+
const r = /* @__PURE__ */ new Map(), i = V({
|
|
405497
|
+
platform: Ti
|
|
405498
|
+
}, n), s = V({}, i.platform, {
|
|
405499
|
+
_c: r
|
|
405500
|
+
});
|
|
405501
|
+
return li(e, t, V({}, i, {
|
|
405502
|
+
platform: s
|
|
405503
|
+
}));
|
|
405504
|
+
};
|
|
405505
|
+
function Li(e) {
|
|
405506
|
+
e.cleanup && e.cleanup();
|
|
405507
|
+
const t = e._getResolvedAttachToOptions();
|
|
405508
|
+
let n = t.element;
|
|
405509
|
+
const r = $i(t, e), i = jn(t);
|
|
405510
|
+
return i && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup = Ai(n, e.el, () => {
|
|
405511
|
+
if (!e.el) {
|
|
405512
|
+
e.cleanup == null || e.cleanup();
|
|
405513
|
+
return;
|
|
405514
|
+
}
|
|
405515
|
+
Bi(n, e, r, i);
|
|
405516
|
+
}), e.target = t.element, r;
|
|
405517
|
+
}
|
|
405518
|
+
function Di(e, t) {
|
|
405519
|
+
return {
|
|
405520
|
+
floatingUIOptions: Lt(e.floatingUIOptions || {}, t.floatingUIOptions || {})
|
|
405521
|
+
};
|
|
405522
|
+
}
|
|
405523
|
+
function ji(e) {
|
|
405524
|
+
e.cleanup && e.cleanup(), e.cleanup = null;
|
|
405525
|
+
}
|
|
405526
|
+
function Bi(e, t, n, r) {
|
|
405527
|
+
return Fi(e, t.el, n).then(Ni(t, r)).then((i) => new Promise((s) => {
|
|
405528
|
+
setTimeout(() => s(i), 300);
|
|
405529
|
+
})).then((i) => {
|
|
405530
|
+
i != null && i.el && i.el.focus({
|
|
405531
|
+
preventScroll: !0
|
|
405532
|
+
});
|
|
405533
|
+
});
|
|
405534
|
+
}
|
|
405535
|
+
function Ni(e, t) {
|
|
405536
|
+
return ({
|
|
405537
|
+
x: n,
|
|
405538
|
+
y: r,
|
|
405539
|
+
placement: i,
|
|
405540
|
+
middlewareData: s
|
|
405541
|
+
}) => (e.el && (t ? Object.assign(e.el.style, {
|
|
405542
|
+
position: "fixed",
|
|
405543
|
+
left: "50%",
|
|
405544
|
+
top: "50%",
|
|
405545
|
+
transform: "translate(-50%, -50%)"
|
|
405546
|
+
}) : Object.assign(e.el.style, {
|
|
405547
|
+
position: "absolute",
|
|
405548
|
+
left: `${n}px`,
|
|
405549
|
+
top: `${r}px`
|
|
405550
|
+
}), e.el.dataset.popperPlacement = i, Wi(e.el, s)), e);
|
|
405551
|
+
}
|
|
405552
|
+
function Wi(e, t) {
|
|
405553
|
+
const n = e.querySelector(".shepherd-arrow");
|
|
405554
|
+
if (Ge(n) && t.arrow) {
|
|
405555
|
+
const {
|
|
405556
|
+
x: r,
|
|
405557
|
+
y: i
|
|
405558
|
+
} = t.arrow;
|
|
405559
|
+
Object.assign(n.style, {
|
|
405560
|
+
left: r != null ? `${r}px` : "",
|
|
405561
|
+
top: i != null ? `${i}px` : ""
|
|
405562
|
+
});
|
|
405563
|
+
}
|
|
405564
|
+
}
|
|
405565
|
+
function $i(e, t) {
|
|
405566
|
+
const n = {
|
|
405567
|
+
strategy: "absolute"
|
|
405568
|
+
};
|
|
405569
|
+
n.middleware = [];
|
|
405570
|
+
const r = Vi(t);
|
|
405571
|
+
if (!jn(e)) {
|
|
405572
|
+
if (n.middleware.push(
|
|
405573
|
+
ki(),
|
|
405574
|
+
// Replicate PopperJS default behavior.
|
|
405575
|
+
Pi({
|
|
405576
|
+
limiter: Mi(),
|
|
405577
|
+
crossAxis: !0
|
|
405578
|
+
})
|
|
405579
|
+
), r) {
|
|
405580
|
+
var s, o;
|
|
405581
|
+
const c = (e == null || (s = e.on) == null ? void 0 : s.includes("-start")) || (e == null || (o = e.on) == null ? void 0 : o.includes("-end"));
|
|
405582
|
+
n.middleware.push(Ii({
|
|
405583
|
+
element: r,
|
|
405584
|
+
padding: c ? 4 : 0
|
|
405585
|
+
}));
|
|
405586
|
+
}
|
|
405587
|
+
n.placement = e.on;
|
|
405588
|
+
}
|
|
405589
|
+
return Lt(t.options.floatingUIOptions || {}, n);
|
|
405590
|
+
}
|
|
405591
|
+
function Vi(e) {
|
|
405592
|
+
return e.options.arrow && e.el ? e.el.querySelector(".shepherd-arrow") : !1;
|
|
405593
|
+
}
|
|
405594
|
+
function J() {
|
|
405595
|
+
}
|
|
405596
|
+
function Hi(e, t) {
|
|
405597
|
+
for (const n in t) e[n] = t[n];
|
|
405598
|
+
return (
|
|
405599
|
+
/** @type {T & S} */
|
|
405600
|
+
e
|
|
405601
|
+
);
|
|
405602
|
+
}
|
|
405603
|
+
function Jn(e) {
|
|
405604
|
+
return e();
|
|
405605
|
+
}
|
|
405606
|
+
function mn() {
|
|
405607
|
+
return /* @__PURE__ */ Object.create(null);
|
|
405608
|
+
}
|
|
405609
|
+
function Qe(e) {
|
|
405610
|
+
e.forEach(Jn);
|
|
405611
|
+
}
|
|
405612
|
+
function Ht(e) {
|
|
405613
|
+
return typeof e == "function";
|
|
405614
|
+
}
|
|
405615
|
+
function ue(e, t) {
|
|
405616
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
405617
|
+
}
|
|
405618
|
+
function Ui(e) {
|
|
405619
|
+
return Object.keys(e).length === 0;
|
|
405620
|
+
}
|
|
405621
|
+
function We(e, t) {
|
|
405622
|
+
e.appendChild(t);
|
|
405623
|
+
}
|
|
405624
|
+
function re(e, t, n) {
|
|
405625
|
+
e.insertBefore(t, n || null);
|
|
405626
|
+
}
|
|
405627
|
+
function Z(e) {
|
|
405628
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
405629
|
+
}
|
|
405630
|
+
function Yi(e, t) {
|
|
405631
|
+
for (let n = 0; n < e.length; n += 1)
|
|
405632
|
+
e[n] && e[n].d(t);
|
|
405633
|
+
}
|
|
405634
|
+
function se(e) {
|
|
405635
|
+
return document.createElement(e);
|
|
405636
|
+
}
|
|
405637
|
+
function bn(e) {
|
|
405638
|
+
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
405639
|
+
}
|
|
405640
|
+
function Kn(e) {
|
|
405641
|
+
return document.createTextNode(e);
|
|
405642
|
+
}
|
|
405643
|
+
function ut() {
|
|
405644
|
+
return Kn(" ");
|
|
405645
|
+
}
|
|
405646
|
+
function zi() {
|
|
405647
|
+
return Kn("");
|
|
405648
|
+
}
|
|
405649
|
+
function pt(e, t, n, r) {
|
|
405650
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
405651
|
+
}
|
|
405652
|
+
function I(e, t, n) {
|
|
405653
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
405654
|
+
}
|
|
405655
|
+
const qi = ["width", "height"];
|
|
405656
|
+
function vn(e, t) {
|
|
405657
|
+
const n = Object.getOwnPropertyDescriptors(e.__proto__);
|
|
405658
|
+
for (const r in t)
|
|
405659
|
+
t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set && qi.indexOf(r) === -1 ? e[r] = t[r] : I(e, r, t[r]);
|
|
405660
|
+
}
|
|
405661
|
+
function Ji(e) {
|
|
405662
|
+
return Array.from(e.childNodes);
|
|
405663
|
+
}
|
|
405664
|
+
function ke(e, t, n) {
|
|
405665
|
+
e.classList.toggle(t, !!n);
|
|
405666
|
+
}
|
|
405667
|
+
let Xe;
|
|
405668
|
+
function qe(e) {
|
|
405669
|
+
Xe = e;
|
|
405670
|
+
}
|
|
405671
|
+
function Xn() {
|
|
405672
|
+
if (!Xe) throw new Error("Function called outside component initialization");
|
|
405673
|
+
return Xe;
|
|
405674
|
+
}
|
|
405675
|
+
function Ki(e) {
|
|
405676
|
+
Xn().$$.on_mount.push(e);
|
|
405677
|
+
}
|
|
405678
|
+
function Ut(e) {
|
|
405679
|
+
Xn().$$.after_update.push(e);
|
|
405680
|
+
}
|
|
405681
|
+
const Me = [], $e = [];
|
|
405682
|
+
let Le = [];
|
|
405683
|
+
const yn = [], Xi = /* @__PURE__ */ Promise.resolve();
|
|
405684
|
+
let kt = !1;
|
|
405685
|
+
function Gi() {
|
|
405686
|
+
kt || (kt = !0, Xi.then(Gn));
|
|
405687
|
+
}
|
|
405688
|
+
function It(e) {
|
|
405689
|
+
Le.push(e);
|
|
405690
|
+
}
|
|
405691
|
+
const Tt = /* @__PURE__ */ new Set();
|
|
405692
|
+
let Ie = 0;
|
|
405693
|
+
function Gn() {
|
|
405694
|
+
if (Ie !== 0)
|
|
405695
|
+
return;
|
|
405696
|
+
const e = Xe;
|
|
405697
|
+
do {
|
|
405698
|
+
try {
|
|
405699
|
+
for (; Ie < Me.length; ) {
|
|
405700
|
+
const t = Me[Ie];
|
|
405701
|
+
Ie++, qe(t), Zi(t.$$);
|
|
405702
|
+
}
|
|
405703
|
+
} catch (t) {
|
|
405704
|
+
throw Me.length = 0, Ie = 0, t;
|
|
405705
|
+
}
|
|
405706
|
+
for (qe(null), Me.length = 0, Ie = 0; $e.length; ) $e.pop()();
|
|
405707
|
+
for (let t = 0; t < Le.length; t += 1) {
|
|
405708
|
+
const n = Le[t];
|
|
405709
|
+
Tt.has(n) || (Tt.add(n), n());
|
|
405710
|
+
}
|
|
405711
|
+
Le.length = 0;
|
|
405712
|
+
} while (Me.length);
|
|
405713
|
+
for (; yn.length; )
|
|
405714
|
+
yn.pop()();
|
|
405715
|
+
kt = !1, Tt.clear(), qe(e);
|
|
405716
|
+
}
|
|
405717
|
+
function Zi(e) {
|
|
405718
|
+
if (e.fragment !== null) {
|
|
405719
|
+
e.update(), Qe(e.before_update);
|
|
405720
|
+
const t = e.dirty;
|
|
405721
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(It);
|
|
405722
|
+
}
|
|
405723
|
+
}
|
|
405724
|
+
function Qi(e) {
|
|
405725
|
+
const t = [], n = [];
|
|
405726
|
+
Le.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Le = t;
|
|
405727
|
+
}
|
|
405728
|
+
const st = /* @__PURE__ */ new Set();
|
|
405729
|
+
let we;
|
|
405730
|
+
function Se() {
|
|
405731
|
+
we = {
|
|
405732
|
+
r: 0,
|
|
405733
|
+
c: [],
|
|
405734
|
+
p: we
|
|
405735
|
+
// parent group
|
|
405736
|
+
};
|
|
405737
|
+
}
|
|
405738
|
+
function Oe() {
|
|
405739
|
+
we.r || Qe(we.c), we = we.p;
|
|
405740
|
+
}
|
|
405741
|
+
function P(e, t) {
|
|
405742
|
+
e && e.i && (st.delete(e), e.i(t));
|
|
405743
|
+
}
|
|
405744
|
+
function F(e, t, n, r) {
|
|
405745
|
+
if (e && e.o) {
|
|
405746
|
+
if (st.has(e)) return;
|
|
405747
|
+
st.add(e), we.c.push(() => {
|
|
405748
|
+
st.delete(e), r && (n && e.d(1), r());
|
|
405749
|
+
}), e.o(t);
|
|
405750
|
+
} else r && r();
|
|
405751
|
+
}
|
|
405752
|
+
function _n(e) {
|
|
405753
|
+
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
405754
|
+
}
|
|
405755
|
+
function eo(e, t) {
|
|
405756
|
+
const n = {}, r = {}, i = {
|
|
405757
|
+
$$scope: 1
|
|
405758
|
+
};
|
|
405759
|
+
let s = e.length;
|
|
405760
|
+
for (; s--; ) {
|
|
405761
|
+
const o = e[s], c = t[s];
|
|
405762
|
+
if (c) {
|
|
405763
|
+
for (const a in o)
|
|
405764
|
+
a in c || (r[a] = 1);
|
|
405765
|
+
for (const a in c)
|
|
405766
|
+
i[a] || (n[a] = c[a], i[a] = 1);
|
|
405767
|
+
e[s] = c;
|
|
405768
|
+
} else
|
|
405769
|
+
for (const a in o)
|
|
405770
|
+
i[a] = 1;
|
|
405771
|
+
}
|
|
405772
|
+
for (const o in r)
|
|
405773
|
+
o in n || (n[o] = void 0);
|
|
405774
|
+
return n;
|
|
405775
|
+
}
|
|
405776
|
+
function Ce(e) {
|
|
405777
|
+
e && e.c();
|
|
405778
|
+
}
|
|
405779
|
+
function ve(e, t, n) {
|
|
405780
|
+
const {
|
|
405781
|
+
fragment: r,
|
|
405782
|
+
after_update: i
|
|
405783
|
+
} = e.$$;
|
|
405784
|
+
r && r.m(t, n), It(() => {
|
|
405785
|
+
const s = e.$$.on_mount.map(Jn).filter(Ht);
|
|
405786
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Qe(s), e.$$.on_mount = [];
|
|
405787
|
+
}), i.forEach(It);
|
|
405788
|
+
}
|
|
405789
|
+
function ye(e, t) {
|
|
405790
|
+
const n = e.$$;
|
|
405791
|
+
n.fragment !== null && (Qi(n.after_update), Qe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
405792
|
+
}
|
|
405793
|
+
function to(e, t) {
|
|
405794
|
+
e.$$.dirty[0] === -1 && (Me.push(e), Gi(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
405795
|
+
}
|
|
405796
|
+
function fe(e, t, n, r, i, s, o = null, c = [-1]) {
|
|
405797
|
+
const a = Xe;
|
|
405798
|
+
qe(e);
|
|
405799
|
+
const u = e.$$ = {
|
|
405800
|
+
fragment: null,
|
|
405801
|
+
ctx: [],
|
|
405802
|
+
// state
|
|
405803
|
+
props: s,
|
|
405804
|
+
update: J,
|
|
405805
|
+
not_equal: i,
|
|
405806
|
+
bound: mn(),
|
|
405807
|
+
// lifecycle
|
|
405808
|
+
on_mount: [],
|
|
405809
|
+
on_destroy: [],
|
|
405810
|
+
on_disconnect: [],
|
|
405811
|
+
before_update: [],
|
|
405812
|
+
after_update: [],
|
|
405813
|
+
context: new Map(t.context || (a ? a.$$.context : [])),
|
|
405814
|
+
// everything else
|
|
405815
|
+
callbacks: mn(),
|
|
405816
|
+
dirty: c,
|
|
405817
|
+
skip_bound: !1,
|
|
405818
|
+
root: t.target || a.$$.root
|
|
405819
|
+
};
|
|
405820
|
+
o && o(u.root);
|
|
405821
|
+
let f = !1;
|
|
405822
|
+
if (u.ctx = n ? n(e, t.props || {}, (h, d, ...g) => {
|
|
405823
|
+
const v = g.length ? g[0] : d;
|
|
405824
|
+
return u.ctx && i(u.ctx[h], u.ctx[h] = v) && (!u.skip_bound && u.bound[h] && u.bound[h](v), f && to(e, h)), d;
|
|
405825
|
+
}) : [], u.update(), f = !0, Qe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
405826
|
+
if (t.hydrate) {
|
|
405827
|
+
const h = Ji(t.target);
|
|
405828
|
+
u.fragment && u.fragment.l(h), h.forEach(Z);
|
|
405829
|
+
} else
|
|
405830
|
+
u.fragment && u.fragment.c();
|
|
405831
|
+
t.intro && P(e.$$.fragment), ve(e, t.target, t.anchor), Gn();
|
|
405832
|
+
}
|
|
405833
|
+
qe(a);
|
|
405834
|
+
}
|
|
405835
|
+
class de {
|
|
405836
|
+
constructor() {
|
|
405837
|
+
this.$$ = void 0, this.$$set = void 0;
|
|
405838
|
+
}
|
|
405839
|
+
/** @returns {void} */
|
|
405840
|
+
$destroy() {
|
|
405841
|
+
ye(this, 1), this.$destroy = J;
|
|
405842
|
+
}
|
|
405843
|
+
/**
|
|
405844
|
+
* @template {Extract<keyof Events, string>} K
|
|
405845
|
+
* @param {K} type
|
|
405846
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
405847
|
+
* @returns {() => void}
|
|
405848
|
+
*/
|
|
405849
|
+
$on(t, n) {
|
|
405850
|
+
if (!Ht(n))
|
|
405851
|
+
return J;
|
|
405852
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
405853
|
+
return r.push(n), () => {
|
|
405854
|
+
const i = r.indexOf(n);
|
|
405855
|
+
i !== -1 && r.splice(i, 1);
|
|
405856
|
+
};
|
|
405857
|
+
}
|
|
405858
|
+
/**
|
|
405859
|
+
* @param {Partial<Props>} props
|
|
405860
|
+
* @returns {void}
|
|
405861
|
+
*/
|
|
405862
|
+
$set(t) {
|
|
405863
|
+
this.$$set && !Ui(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
405864
|
+
}
|
|
405865
|
+
}
|
|
405866
|
+
const no = "4";
|
|
405867
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = {
|
|
405868
|
+
v: /* @__PURE__ */ new Set()
|
|
405869
|
+
})).v.add(no);
|
|
405870
|
+
function ro(e) {
|
|
405871
|
+
let t, n, r, i, s;
|
|
405872
|
+
return {
|
|
405873
|
+
c() {
|
|
405874
|
+
t = se("button"), I(t, "aria-label", n = /*label*/
|
|
405875
|
+
e[3] ? (
|
|
405876
|
+
/*label*/
|
|
405877
|
+
e[3]
|
|
405878
|
+
) : null), I(t, "class", r = `${/*classes*/
|
|
405879
|
+
e[1] || ""} shepherd-button ${/*secondary*/
|
|
405880
|
+
e[4] ? "shepherd-button-secondary" : ""}`), t.disabled = /*disabled*/
|
|
405881
|
+
e[2], I(t, "tabindex", "0"), I(t, "type", "button");
|
|
405882
|
+
},
|
|
405883
|
+
m(o, c) {
|
|
405884
|
+
re(o, t, c), t.innerHTML = /*text*/
|
|
405885
|
+
e[5], i || (s = pt(t, "click", function() {
|
|
405886
|
+
Ht(
|
|
405887
|
+
/*action*/
|
|
405888
|
+
e[0]
|
|
405889
|
+
) && e[0].apply(this, arguments);
|
|
405890
|
+
}), i = !0);
|
|
405891
|
+
},
|
|
405892
|
+
p(o, [c]) {
|
|
405893
|
+
e = o, c & /*text*/
|
|
405894
|
+
32 && (t.innerHTML = /*text*/
|
|
405895
|
+
e[5]), c & /*label*/
|
|
405896
|
+
8 && n !== (n = /*label*/
|
|
405897
|
+
e[3] ? (
|
|
405898
|
+
/*label*/
|
|
405899
|
+
e[3]
|
|
405900
|
+
) : null) && I(t, "aria-label", n), c & /*classes, secondary*/
|
|
405901
|
+
18 && r !== (r = `${/*classes*/
|
|
405902
|
+
e[1] || ""} shepherd-button ${/*secondary*/
|
|
405903
|
+
e[4] ? "shepherd-button-secondary" : ""}`) && I(t, "class", r), c & /*disabled*/
|
|
405904
|
+
4 && (t.disabled = /*disabled*/
|
|
405905
|
+
e[2]);
|
|
405906
|
+
},
|
|
405907
|
+
i: J,
|
|
405908
|
+
o: J,
|
|
405909
|
+
d(o) {
|
|
405910
|
+
o && Z(t), i = !1, s();
|
|
405911
|
+
}
|
|
405912
|
+
};
|
|
405913
|
+
}
|
|
405914
|
+
function io(e, t, n) {
|
|
405915
|
+
let {
|
|
405916
|
+
config: r,
|
|
405917
|
+
step: i
|
|
405918
|
+
} = t, s, o, c, a, u, f;
|
|
405919
|
+
function h(d) {
|
|
405920
|
+
return pe(d) ? d = d.call(i) : d;
|
|
405921
|
+
}
|
|
405922
|
+
return e.$$set = (d) => {
|
|
405923
|
+
"config" in d && n(6, r = d.config), "step" in d && n(7, i = d.step);
|
|
405924
|
+
}, e.$$.update = () => {
|
|
405925
|
+
e.$$.dirty & /*config, step*/
|
|
405926
|
+
192 && (n(0, s = r.action ? r.action.bind(i.tour) : null), n(1, o = r.classes), n(2, c = r.disabled ? h(r.disabled) : !1), n(3, a = r.label ? h(r.label) : null), n(4, u = r.secondary), n(5, f = r.text ? h(r.text) : null));
|
|
405927
|
+
}, [s, o, c, a, u, f, r, i];
|
|
405928
|
+
}
|
|
405929
|
+
class oo extends de {
|
|
405930
|
+
constructor(t) {
|
|
405931
|
+
super(), fe(this, t, io, ro, ue, {
|
|
405932
|
+
config: 6,
|
|
405933
|
+
step: 7
|
|
405934
|
+
});
|
|
405935
|
+
}
|
|
405936
|
+
}
|
|
405937
|
+
function wn(e, t, n) {
|
|
405938
|
+
const r = e.slice();
|
|
405939
|
+
return r[2] = t[n], r;
|
|
405940
|
+
}
|
|
405941
|
+
function xn(e) {
|
|
405942
|
+
let t, n, r = _n(
|
|
405943
|
+
/*buttons*/
|
|
405944
|
+
e[1]
|
|
405945
|
+
), i = [];
|
|
405946
|
+
for (let o = 0; o < r.length; o += 1)
|
|
405947
|
+
i[o] = En(wn(e, r, o));
|
|
405948
|
+
const s = (o) => F(i[o], 1, 1, () => {
|
|
405949
|
+
i[o] = null;
|
|
405950
|
+
});
|
|
405951
|
+
return {
|
|
405952
|
+
c() {
|
|
405953
|
+
for (let o = 0; o < i.length; o += 1)
|
|
405954
|
+
i[o].c();
|
|
405955
|
+
t = zi();
|
|
405956
|
+
},
|
|
405957
|
+
m(o, c) {
|
|
405958
|
+
for (let a = 0; a < i.length; a += 1)
|
|
405959
|
+
i[a] && i[a].m(o, c);
|
|
405960
|
+
re(o, t, c), n = !0;
|
|
405961
|
+
},
|
|
405962
|
+
p(o, c) {
|
|
405963
|
+
if (c & /*buttons, step*/
|
|
405964
|
+
3) {
|
|
405965
|
+
r = _n(
|
|
405966
|
+
/*buttons*/
|
|
405967
|
+
o[1]
|
|
405968
|
+
);
|
|
405969
|
+
let a;
|
|
405970
|
+
for (a = 0; a < r.length; a += 1) {
|
|
405971
|
+
const u = wn(o, r, a);
|
|
405972
|
+
i[a] ? (i[a].p(u, c), P(i[a], 1)) : (i[a] = En(u), i[a].c(), P(i[a], 1), i[a].m(t.parentNode, t));
|
|
405973
|
+
}
|
|
405974
|
+
for (Se(), a = r.length; a < i.length; a += 1)
|
|
405975
|
+
s(a);
|
|
405976
|
+
Oe();
|
|
405977
|
+
}
|
|
405978
|
+
},
|
|
405979
|
+
i(o) {
|
|
405980
|
+
if (!n) {
|
|
405981
|
+
for (let c = 0; c < r.length; c += 1)
|
|
405982
|
+
P(i[c]);
|
|
405983
|
+
n = !0;
|
|
405984
|
+
}
|
|
405985
|
+
},
|
|
405986
|
+
o(o) {
|
|
405987
|
+
i = i.filter(Boolean);
|
|
405988
|
+
for (let c = 0; c < i.length; c += 1)
|
|
405989
|
+
F(i[c]);
|
|
405990
|
+
n = !1;
|
|
405991
|
+
},
|
|
405992
|
+
d(o) {
|
|
405993
|
+
o && Z(t), Yi(i, o);
|
|
405994
|
+
}
|
|
405995
|
+
};
|
|
405996
|
+
}
|
|
405997
|
+
function En(e) {
|
|
405998
|
+
let t, n;
|
|
405999
|
+
return t = new oo({
|
|
406000
|
+
props: {
|
|
406001
|
+
config: (
|
|
406002
|
+
/*config*/
|
|
406003
|
+
e[2]
|
|
406004
|
+
),
|
|
406005
|
+
step: (
|
|
406006
|
+
/*step*/
|
|
406007
|
+
e[0]
|
|
406008
|
+
)
|
|
406009
|
+
}
|
|
406010
|
+
}), {
|
|
406011
|
+
c() {
|
|
406012
|
+
Ce(t.$$.fragment);
|
|
406013
|
+
},
|
|
406014
|
+
m(r, i) {
|
|
406015
|
+
ve(t, r, i), n = !0;
|
|
406016
|
+
},
|
|
406017
|
+
p(r, i) {
|
|
406018
|
+
const s = {};
|
|
406019
|
+
i & /*buttons*/
|
|
406020
|
+
2 && (s.config = /*config*/
|
|
406021
|
+
r[2]), i & /*step*/
|
|
406022
|
+
1 && (s.step = /*step*/
|
|
406023
|
+
r[0]), t.$set(s);
|
|
406024
|
+
},
|
|
406025
|
+
i(r) {
|
|
406026
|
+
n || (P(t.$$.fragment, r), n = !0);
|
|
406027
|
+
},
|
|
406028
|
+
o(r) {
|
|
406029
|
+
F(t.$$.fragment, r), n = !1;
|
|
406030
|
+
},
|
|
406031
|
+
d(r) {
|
|
406032
|
+
ye(t, r);
|
|
406033
|
+
}
|
|
406034
|
+
};
|
|
406035
|
+
}
|
|
406036
|
+
function so(e) {
|
|
406037
|
+
let t, n, r = (
|
|
406038
|
+
/*buttons*/
|
|
406039
|
+
e[1] && xn(e)
|
|
406040
|
+
);
|
|
406041
|
+
return {
|
|
406042
|
+
c() {
|
|
406043
|
+
t = se("footer"), r && r.c(), I(t, "class", "shepherd-footer");
|
|
406044
|
+
},
|
|
406045
|
+
m(i, s) {
|
|
406046
|
+
re(i, t, s), r && r.m(t, null), n = !0;
|
|
406047
|
+
},
|
|
406048
|
+
p(i, [s]) {
|
|
406049
|
+
/*buttons*/
|
|
406050
|
+
i[1] ? r ? (r.p(i, s), s & /*buttons*/
|
|
406051
|
+
2 && P(r, 1)) : (r = xn(i), r.c(), P(r, 1), r.m(t, null)) : r && (Se(), F(r, 1, 1, () => {
|
|
406052
|
+
r = null;
|
|
406053
|
+
}), Oe());
|
|
406054
|
+
},
|
|
406055
|
+
i(i) {
|
|
406056
|
+
n || (P(r), n = !0);
|
|
406057
|
+
},
|
|
406058
|
+
o(i) {
|
|
406059
|
+
F(r), n = !1;
|
|
406060
|
+
},
|
|
406061
|
+
d(i) {
|
|
406062
|
+
i && Z(t), r && r.d();
|
|
406063
|
+
}
|
|
406064
|
+
};
|
|
406065
|
+
}
|
|
406066
|
+
function lo(e, t, n) {
|
|
406067
|
+
let r, {
|
|
406068
|
+
step: i
|
|
406069
|
+
} = t;
|
|
406070
|
+
return e.$$set = (s) => {
|
|
406071
|
+
"step" in s && n(0, i = s.step);
|
|
406072
|
+
}, e.$$.update = () => {
|
|
406073
|
+
e.$$.dirty & /*step*/
|
|
406074
|
+
1 && n(1, r = i.options.buttons);
|
|
406075
|
+
}, [i, r];
|
|
406076
|
+
}
|
|
406077
|
+
class co extends de {
|
|
406078
|
+
constructor(t) {
|
|
406079
|
+
super(), fe(this, t, lo, so, ue, {
|
|
406080
|
+
step: 0
|
|
406081
|
+
});
|
|
406082
|
+
}
|
|
406083
|
+
}
|
|
406084
|
+
function ao(e) {
|
|
406085
|
+
let t, n, r, i, s;
|
|
406086
|
+
return {
|
|
406087
|
+
c() {
|
|
406088
|
+
t = se("button"), n = se("span"), n.textContent = "×", I(n, "aria-hidden", "true"), I(t, "aria-label", r = /*cancelIcon*/
|
|
406089
|
+
e[0].label ? (
|
|
406090
|
+
/*cancelIcon*/
|
|
406091
|
+
e[0].label
|
|
406092
|
+
) : "Close Tour"), I(t, "class", "shepherd-cancel-icon"), I(t, "type", "button");
|
|
406093
|
+
},
|
|
406094
|
+
m(o, c) {
|
|
406095
|
+
re(o, t, c), We(t, n), i || (s = pt(
|
|
406096
|
+
t,
|
|
406097
|
+
"click",
|
|
406098
|
+
/*handleCancelClick*/
|
|
406099
|
+
e[1]
|
|
406100
|
+
), i = !0);
|
|
406101
|
+
},
|
|
406102
|
+
p(o, [c]) {
|
|
406103
|
+
c & /*cancelIcon*/
|
|
406104
|
+
1 && r !== (r = /*cancelIcon*/
|
|
406105
|
+
o[0].label ? (
|
|
406106
|
+
/*cancelIcon*/
|
|
406107
|
+
o[0].label
|
|
406108
|
+
) : "Close Tour") && I(t, "aria-label", r);
|
|
406109
|
+
},
|
|
406110
|
+
i: J,
|
|
406111
|
+
o: J,
|
|
406112
|
+
d(o) {
|
|
406113
|
+
o && Z(t), i = !1, s();
|
|
406114
|
+
}
|
|
406115
|
+
};
|
|
406116
|
+
}
|
|
406117
|
+
function uo(e, t, n) {
|
|
406118
|
+
let {
|
|
406119
|
+
cancelIcon: r,
|
|
406120
|
+
step: i
|
|
406121
|
+
} = t;
|
|
406122
|
+
const s = (o) => {
|
|
406123
|
+
o.preventDefault(), i.cancel();
|
|
406124
|
+
};
|
|
406125
|
+
return e.$$set = (o) => {
|
|
406126
|
+
"cancelIcon" in o && n(0, r = o.cancelIcon), "step" in o && n(2, i = o.step);
|
|
406127
|
+
}, [r, s, i];
|
|
406128
|
+
}
|
|
406129
|
+
class fo extends de {
|
|
406130
|
+
constructor(t) {
|
|
406131
|
+
super(), fe(this, t, uo, ao, ue, {
|
|
406132
|
+
cancelIcon: 0,
|
|
406133
|
+
step: 2
|
|
406134
|
+
});
|
|
406135
|
+
}
|
|
406136
|
+
}
|
|
406137
|
+
function ho(e) {
|
|
406138
|
+
let t;
|
|
406139
|
+
return {
|
|
406140
|
+
c() {
|
|
406141
|
+
t = se("h3"), I(
|
|
406142
|
+
t,
|
|
406143
|
+
"id",
|
|
406144
|
+
/*labelId*/
|
|
406145
|
+
e[1]
|
|
406146
|
+
), I(t, "class", "shepherd-title");
|
|
406147
|
+
},
|
|
406148
|
+
m(n, r) {
|
|
406149
|
+
re(n, t, r), e[3](t);
|
|
406150
|
+
},
|
|
406151
|
+
p(n, [r]) {
|
|
406152
|
+
r & /*labelId*/
|
|
406153
|
+
2 && I(
|
|
406154
|
+
t,
|
|
406155
|
+
"id",
|
|
406156
|
+
/*labelId*/
|
|
406157
|
+
n[1]
|
|
406158
|
+
);
|
|
406159
|
+
},
|
|
406160
|
+
i: J,
|
|
406161
|
+
o: J,
|
|
406162
|
+
d(n) {
|
|
406163
|
+
n && Z(t), e[3](null);
|
|
406164
|
+
}
|
|
406165
|
+
};
|
|
406166
|
+
}
|
|
406167
|
+
function po(e, t, n) {
|
|
406168
|
+
let {
|
|
406169
|
+
labelId: r,
|
|
406170
|
+
element: i,
|
|
406171
|
+
title: s
|
|
406172
|
+
} = t;
|
|
406173
|
+
Ut(() => {
|
|
406174
|
+
pe(s) && n(2, s = s()), n(0, i.innerHTML = s, i);
|
|
406175
|
+
});
|
|
406176
|
+
function o(c) {
|
|
406177
|
+
$e[c ? "unshift" : "push"](() => {
|
|
406178
|
+
i = c, n(0, i);
|
|
406179
|
+
});
|
|
406180
|
+
}
|
|
406181
|
+
return e.$$set = (c) => {
|
|
406182
|
+
"labelId" in c && n(1, r = c.labelId), "element" in c && n(0, i = c.element), "title" in c && n(2, s = c.title);
|
|
406183
|
+
}, [i, r, s, o];
|
|
406184
|
+
}
|
|
406185
|
+
class go extends de {
|
|
406186
|
+
constructor(t) {
|
|
406187
|
+
super(), fe(this, t, po, ho, ue, {
|
|
406188
|
+
labelId: 1,
|
|
406189
|
+
element: 0,
|
|
406190
|
+
title: 2
|
|
406191
|
+
});
|
|
406192
|
+
}
|
|
406193
|
+
}
|
|
406194
|
+
function Sn(e) {
|
|
406195
|
+
let t, n;
|
|
406196
|
+
return t = new go({
|
|
406197
|
+
props: {
|
|
406198
|
+
labelId: (
|
|
406199
|
+
/*labelId*/
|
|
406200
|
+
e[0]
|
|
406201
|
+
),
|
|
406202
|
+
title: (
|
|
406203
|
+
/*title*/
|
|
406204
|
+
e[2]
|
|
406205
|
+
)
|
|
406206
|
+
}
|
|
406207
|
+
}), {
|
|
406208
|
+
c() {
|
|
406209
|
+
Ce(t.$$.fragment);
|
|
406210
|
+
},
|
|
406211
|
+
m(r, i) {
|
|
406212
|
+
ve(t, r, i), n = !0;
|
|
406213
|
+
},
|
|
406214
|
+
p(r, i) {
|
|
406215
|
+
const s = {};
|
|
406216
|
+
i & /*labelId*/
|
|
406217
|
+
1 && (s.labelId = /*labelId*/
|
|
406218
|
+
r[0]), i & /*title*/
|
|
406219
|
+
4 && (s.title = /*title*/
|
|
406220
|
+
r[2]), t.$set(s);
|
|
406221
|
+
},
|
|
406222
|
+
i(r) {
|
|
406223
|
+
n || (P(t.$$.fragment, r), n = !0);
|
|
406224
|
+
},
|
|
406225
|
+
o(r) {
|
|
406226
|
+
F(t.$$.fragment, r), n = !1;
|
|
406227
|
+
},
|
|
406228
|
+
d(r) {
|
|
406229
|
+
ye(t, r);
|
|
406230
|
+
}
|
|
406231
|
+
};
|
|
406232
|
+
}
|
|
406233
|
+
function On(e) {
|
|
406234
|
+
let t, n;
|
|
406235
|
+
return t = new fo({
|
|
406236
|
+
props: {
|
|
406237
|
+
cancelIcon: (
|
|
406238
|
+
/*cancelIcon*/
|
|
406239
|
+
e[3]
|
|
406240
|
+
),
|
|
406241
|
+
step: (
|
|
406242
|
+
/*step*/
|
|
406243
|
+
e[1]
|
|
406244
|
+
)
|
|
406245
|
+
}
|
|
406246
|
+
}), {
|
|
406247
|
+
c() {
|
|
406248
|
+
Ce(t.$$.fragment);
|
|
406249
|
+
},
|
|
406250
|
+
m(r, i) {
|
|
406251
|
+
ve(t, r, i), n = !0;
|
|
406252
|
+
},
|
|
406253
|
+
p(r, i) {
|
|
406254
|
+
const s = {};
|
|
406255
|
+
i & /*cancelIcon*/
|
|
406256
|
+
8 && (s.cancelIcon = /*cancelIcon*/
|
|
406257
|
+
r[3]), i & /*step*/
|
|
406258
|
+
2 && (s.step = /*step*/
|
|
406259
|
+
r[1]), t.$set(s);
|
|
406260
|
+
},
|
|
406261
|
+
i(r) {
|
|
406262
|
+
n || (P(t.$$.fragment, r), n = !0);
|
|
406263
|
+
},
|
|
406264
|
+
o(r) {
|
|
406265
|
+
F(t.$$.fragment, r), n = !1;
|
|
406266
|
+
},
|
|
406267
|
+
d(r) {
|
|
406268
|
+
ye(t, r);
|
|
406269
|
+
}
|
|
406270
|
+
};
|
|
406271
|
+
}
|
|
406272
|
+
function mo(e) {
|
|
406273
|
+
let t, n, r, i = (
|
|
406274
|
+
/*title*/
|
|
406275
|
+
e[2] && Sn(e)
|
|
406276
|
+
), s = (
|
|
406277
|
+
/*cancelIcon*/
|
|
406278
|
+
e[3] && /*cancelIcon*/
|
|
406279
|
+
e[3].enabled && On(e)
|
|
406280
|
+
);
|
|
406281
|
+
return {
|
|
406282
|
+
c() {
|
|
406283
|
+
t = se("header"), i && i.c(), n = ut(), s && s.c(), I(t, "class", "shepherd-header");
|
|
406284
|
+
},
|
|
406285
|
+
m(o, c) {
|
|
406286
|
+
re(o, t, c), i && i.m(t, null), We(t, n), s && s.m(t, null), r = !0;
|
|
406287
|
+
},
|
|
406288
|
+
p(o, [c]) {
|
|
406289
|
+
/*title*/
|
|
406290
|
+
o[2] ? i ? (i.p(o, c), c & /*title*/
|
|
406291
|
+
4 && P(i, 1)) : (i = Sn(o), i.c(), P(i, 1), i.m(t, n)) : i && (Se(), F(i, 1, 1, () => {
|
|
406292
|
+
i = null;
|
|
406293
|
+
}), Oe()), /*cancelIcon*/
|
|
406294
|
+
o[3] && /*cancelIcon*/
|
|
406295
|
+
o[3].enabled ? s ? (s.p(o, c), c & /*cancelIcon*/
|
|
406296
|
+
8 && P(s, 1)) : (s = On(o), s.c(), P(s, 1), s.m(t, null)) : s && (Se(), F(s, 1, 1, () => {
|
|
406297
|
+
s = null;
|
|
406298
|
+
}), Oe());
|
|
406299
|
+
},
|
|
406300
|
+
i(o) {
|
|
406301
|
+
r || (P(i), P(s), r = !0);
|
|
406302
|
+
},
|
|
406303
|
+
o(o) {
|
|
406304
|
+
F(i), F(s), r = !1;
|
|
406305
|
+
},
|
|
406306
|
+
d(o) {
|
|
406307
|
+
o && Z(t), i && i.d(), s && s.d();
|
|
406308
|
+
}
|
|
406309
|
+
};
|
|
406310
|
+
}
|
|
406311
|
+
function bo(e, t, n) {
|
|
406312
|
+
let {
|
|
406313
|
+
labelId: r,
|
|
406314
|
+
step: i
|
|
406315
|
+
} = t, s, o;
|
|
406316
|
+
return e.$$set = (c) => {
|
|
406317
|
+
"labelId" in c && n(0, r = c.labelId), "step" in c && n(1, i = c.step);
|
|
406318
|
+
}, e.$$.update = () => {
|
|
406319
|
+
e.$$.dirty & /*step*/
|
|
406320
|
+
2 && (n(2, s = i.options.title), n(3, o = i.options.cancelIcon));
|
|
406321
|
+
}, [r, i, s, o];
|
|
406322
|
+
}
|
|
406323
|
+
class vo extends de {
|
|
406324
|
+
constructor(t) {
|
|
406325
|
+
super(), fe(this, t, bo, mo, ue, {
|
|
406326
|
+
labelId: 0,
|
|
406327
|
+
step: 1
|
|
406328
|
+
});
|
|
406329
|
+
}
|
|
406330
|
+
}
|
|
406331
|
+
function yo(e) {
|
|
406332
|
+
let t;
|
|
406333
|
+
return {
|
|
406334
|
+
c() {
|
|
406335
|
+
t = se("div"), I(t, "class", "shepherd-text"), I(
|
|
406336
|
+
t,
|
|
406337
|
+
"id",
|
|
406338
|
+
/*descriptionId*/
|
|
406339
|
+
e[1]
|
|
406340
|
+
);
|
|
406341
|
+
},
|
|
406342
|
+
m(n, r) {
|
|
406343
|
+
re(n, t, r), e[3](t);
|
|
406344
|
+
},
|
|
406345
|
+
p(n, [r]) {
|
|
406346
|
+
r & /*descriptionId*/
|
|
406347
|
+
2 && I(
|
|
406348
|
+
t,
|
|
406349
|
+
"id",
|
|
406350
|
+
/*descriptionId*/
|
|
406351
|
+
n[1]
|
|
406352
|
+
);
|
|
406353
|
+
},
|
|
406354
|
+
i: J,
|
|
406355
|
+
o: J,
|
|
406356
|
+
d(n) {
|
|
406357
|
+
n && Z(t), e[3](null);
|
|
406358
|
+
}
|
|
406359
|
+
};
|
|
406360
|
+
}
|
|
406361
|
+
function _o(e, t, n) {
|
|
406362
|
+
let {
|
|
406363
|
+
descriptionId: r,
|
|
406364
|
+
element: i,
|
|
406365
|
+
step: s
|
|
406366
|
+
} = t;
|
|
406367
|
+
Ut(() => {
|
|
406368
|
+
let {
|
|
406369
|
+
text: c
|
|
406370
|
+
} = s.options;
|
|
406371
|
+
pe(c) && (c = c.call(s)), Ge(c) ? i.appendChild(c) : n(0, i.innerHTML = c, i);
|
|
406372
|
+
});
|
|
406373
|
+
function o(c) {
|
|
406374
|
+
$e[c ? "unshift" : "push"](() => {
|
|
406375
|
+
i = c, n(0, i);
|
|
406376
|
+
});
|
|
406377
|
+
}
|
|
406378
|
+
return e.$$set = (c) => {
|
|
406379
|
+
"descriptionId" in c && n(1, r = c.descriptionId), "element" in c && n(0, i = c.element), "step" in c && n(2, s = c.step);
|
|
406380
|
+
}, [i, r, s, o];
|
|
406381
|
+
}
|
|
406382
|
+
class wo extends de {
|
|
406383
|
+
constructor(t) {
|
|
406384
|
+
super(), fe(this, t, _o, yo, ue, {
|
|
406385
|
+
descriptionId: 1,
|
|
406386
|
+
element: 0,
|
|
406387
|
+
step: 2
|
|
406388
|
+
});
|
|
406389
|
+
}
|
|
406390
|
+
}
|
|
406391
|
+
function Rn(e) {
|
|
406392
|
+
let t, n;
|
|
406393
|
+
return t = new vo({
|
|
406394
|
+
props: {
|
|
406395
|
+
labelId: (
|
|
406396
|
+
/*labelId*/
|
|
406397
|
+
e[1]
|
|
406398
|
+
),
|
|
406399
|
+
step: (
|
|
406400
|
+
/*step*/
|
|
406401
|
+
e[2]
|
|
406402
|
+
)
|
|
406403
|
+
}
|
|
406404
|
+
}), {
|
|
406405
|
+
c() {
|
|
406406
|
+
Ce(t.$$.fragment);
|
|
406407
|
+
},
|
|
406408
|
+
m(r, i) {
|
|
406409
|
+
ve(t, r, i), n = !0;
|
|
406410
|
+
},
|
|
406411
|
+
p(r, i) {
|
|
406412
|
+
const s = {};
|
|
406413
|
+
i & /*labelId*/
|
|
406414
|
+
2 && (s.labelId = /*labelId*/
|
|
406415
|
+
r[1]), i & /*step*/
|
|
406416
|
+
4 && (s.step = /*step*/
|
|
406417
|
+
r[2]), t.$set(s);
|
|
406418
|
+
},
|
|
406419
|
+
i(r) {
|
|
406420
|
+
n || (P(t.$$.fragment, r), n = !0);
|
|
406421
|
+
},
|
|
406422
|
+
o(r) {
|
|
406423
|
+
F(t.$$.fragment, r), n = !1;
|
|
406424
|
+
},
|
|
406425
|
+
d(r) {
|
|
406426
|
+
ye(t, r);
|
|
406427
|
+
}
|
|
406428
|
+
};
|
|
406429
|
+
}
|
|
406430
|
+
function Tn(e) {
|
|
406431
|
+
let t, n;
|
|
406432
|
+
return t = new wo({
|
|
406433
|
+
props: {
|
|
406434
|
+
descriptionId: (
|
|
406435
|
+
/*descriptionId*/
|
|
406436
|
+
e[0]
|
|
406437
|
+
),
|
|
406438
|
+
step: (
|
|
406439
|
+
/*step*/
|
|
406440
|
+
e[2]
|
|
406441
|
+
)
|
|
406442
|
+
}
|
|
406443
|
+
}), {
|
|
406444
|
+
c() {
|
|
406445
|
+
Ce(t.$$.fragment);
|
|
406446
|
+
},
|
|
406447
|
+
m(r, i) {
|
|
406448
|
+
ve(t, r, i), n = !0;
|
|
406449
|
+
},
|
|
406450
|
+
p(r, i) {
|
|
406451
|
+
const s = {};
|
|
406452
|
+
i & /*descriptionId*/
|
|
406453
|
+
1 && (s.descriptionId = /*descriptionId*/
|
|
406454
|
+
r[0]), i & /*step*/
|
|
406455
|
+
4 && (s.step = /*step*/
|
|
406456
|
+
r[2]), t.$set(s);
|
|
406457
|
+
},
|
|
406458
|
+
i(r) {
|
|
406459
|
+
n || (P(t.$$.fragment, r), n = !0);
|
|
406460
|
+
},
|
|
406461
|
+
o(r) {
|
|
406462
|
+
F(t.$$.fragment, r), n = !1;
|
|
406463
|
+
},
|
|
406464
|
+
d(r) {
|
|
406465
|
+
ye(t, r);
|
|
406466
|
+
}
|
|
406467
|
+
};
|
|
406468
|
+
}
|
|
406469
|
+
function Cn(e) {
|
|
406470
|
+
let t, n;
|
|
406471
|
+
return t = new co({
|
|
406472
|
+
props: {
|
|
406473
|
+
step: (
|
|
406474
|
+
/*step*/
|
|
406475
|
+
e[2]
|
|
406476
|
+
)
|
|
406477
|
+
}
|
|
406478
|
+
}), {
|
|
406479
|
+
c() {
|
|
406480
|
+
Ce(t.$$.fragment);
|
|
406481
|
+
},
|
|
406482
|
+
m(r, i) {
|
|
406483
|
+
ve(t, r, i), n = !0;
|
|
406484
|
+
},
|
|
406485
|
+
p(r, i) {
|
|
406486
|
+
const s = {};
|
|
406487
|
+
i & /*step*/
|
|
406488
|
+
4 && (s.step = /*step*/
|
|
406489
|
+
r[2]), t.$set(s);
|
|
406490
|
+
},
|
|
406491
|
+
i(r) {
|
|
406492
|
+
n || (P(t.$$.fragment, r), n = !0);
|
|
406493
|
+
},
|
|
406494
|
+
o(r) {
|
|
406495
|
+
F(t.$$.fragment, r), n = !1;
|
|
406496
|
+
},
|
|
406497
|
+
d(r) {
|
|
406498
|
+
ye(t, r);
|
|
406499
|
+
}
|
|
406500
|
+
};
|
|
406501
|
+
}
|
|
406502
|
+
function xo(e) {
|
|
406503
|
+
let t, n = !N(
|
|
406504
|
+
/*step*/
|
|
406505
|
+
e[2].options.title
|
|
406506
|
+
) || /*step*/
|
|
406507
|
+
e[2].options.cancelIcon && /*step*/
|
|
406508
|
+
e[2].options.cancelIcon.enabled, r, i = !N(
|
|
406509
|
+
/*step*/
|
|
406510
|
+
e[2].options.text
|
|
406511
|
+
), s, o = Array.isArray(
|
|
406512
|
+
/*step*/
|
|
406513
|
+
e[2].options.buttons
|
|
406514
|
+
) && /*step*/
|
|
406515
|
+
e[2].options.buttons.length, c, a = n && Rn(e), u = i && Tn(e), f = o && Cn(e);
|
|
406516
|
+
return {
|
|
406517
|
+
c() {
|
|
406518
|
+
t = se("div"), a && a.c(), r = ut(), u && u.c(), s = ut(), f && f.c(), I(t, "class", "shepherd-content");
|
|
406519
|
+
},
|
|
406520
|
+
m(h, d) {
|
|
406521
|
+
re(h, t, d), a && a.m(t, null), We(t, r), u && u.m(t, null), We(t, s), f && f.m(t, null), c = !0;
|
|
406522
|
+
},
|
|
406523
|
+
p(h, [d]) {
|
|
406524
|
+
d & /*step*/
|
|
406525
|
+
4 && (n = !N(
|
|
406526
|
+
/*step*/
|
|
406527
|
+
h[2].options.title
|
|
406528
|
+
) || /*step*/
|
|
406529
|
+
h[2].options.cancelIcon && /*step*/
|
|
406530
|
+
h[2].options.cancelIcon.enabled), n ? a ? (a.p(h, d), d & /*step*/
|
|
406531
|
+
4 && P(a, 1)) : (a = Rn(h), a.c(), P(a, 1), a.m(t, r)) : a && (Se(), F(a, 1, 1, () => {
|
|
406532
|
+
a = null;
|
|
406533
|
+
}), Oe()), d & /*step*/
|
|
406534
|
+
4 && (i = !N(
|
|
406535
|
+
/*step*/
|
|
406536
|
+
h[2].options.text
|
|
406537
|
+
)), i ? u ? (u.p(h, d), d & /*step*/
|
|
406538
|
+
4 && P(u, 1)) : (u = Tn(h), u.c(), P(u, 1), u.m(t, s)) : u && (Se(), F(u, 1, 1, () => {
|
|
406539
|
+
u = null;
|
|
406540
|
+
}), Oe()), d & /*step*/
|
|
406541
|
+
4 && (o = Array.isArray(
|
|
406542
|
+
/*step*/
|
|
406543
|
+
h[2].options.buttons
|
|
406544
|
+
) && /*step*/
|
|
406545
|
+
h[2].options.buttons.length), o ? f ? (f.p(h, d), d & /*step*/
|
|
406546
|
+
4 && P(f, 1)) : (f = Cn(h), f.c(), P(f, 1), f.m(t, null)) : f && (Se(), F(f, 1, 1, () => {
|
|
406547
|
+
f = null;
|
|
406548
|
+
}), Oe());
|
|
406549
|
+
},
|
|
406550
|
+
i(h) {
|
|
406551
|
+
c || (P(a), P(u), P(f), c = !0);
|
|
406552
|
+
},
|
|
406553
|
+
o(h) {
|
|
406554
|
+
F(a), F(u), F(f), c = !1;
|
|
406555
|
+
},
|
|
406556
|
+
d(h) {
|
|
406557
|
+
h && Z(t), a && a.d(), u && u.d(), f && f.d();
|
|
406558
|
+
}
|
|
406559
|
+
};
|
|
406560
|
+
}
|
|
406561
|
+
function Eo(e, t, n) {
|
|
406562
|
+
let {
|
|
406563
|
+
descriptionId: r,
|
|
406564
|
+
labelId: i,
|
|
406565
|
+
step: s
|
|
406566
|
+
} = t;
|
|
406567
|
+
return e.$$set = (o) => {
|
|
406568
|
+
"descriptionId" in o && n(0, r = o.descriptionId), "labelId" in o && n(1, i = o.labelId), "step" in o && n(2, s = o.step);
|
|
406569
|
+
}, [r, i, s];
|
|
406570
|
+
}
|
|
406571
|
+
class So extends de {
|
|
406572
|
+
constructor(t) {
|
|
406573
|
+
super(), fe(this, t, Eo, xo, ue, {
|
|
406574
|
+
descriptionId: 0,
|
|
406575
|
+
labelId: 1,
|
|
406576
|
+
step: 2
|
|
406577
|
+
});
|
|
406578
|
+
}
|
|
406579
|
+
}
|
|
406580
|
+
function An(e) {
|
|
406581
|
+
let t;
|
|
406582
|
+
return {
|
|
406583
|
+
c() {
|
|
406584
|
+
t = se("div"), I(t, "class", "shepherd-arrow"), I(t, "data-popper-arrow", "");
|
|
406585
|
+
},
|
|
406586
|
+
m(n, r) {
|
|
406587
|
+
re(n, t, r);
|
|
406588
|
+
},
|
|
406589
|
+
d(n) {
|
|
406590
|
+
n && Z(t);
|
|
406591
|
+
}
|
|
406592
|
+
};
|
|
406593
|
+
}
|
|
406594
|
+
function Oo(e) {
|
|
406595
|
+
let t, n, r, i, s, o, c, a, u = (
|
|
406596
|
+
/*step*/
|
|
406597
|
+
e[4].options.arrow && /*step*/
|
|
406598
|
+
e[4].options.attachTo && /*step*/
|
|
406599
|
+
e[4].options.attachTo.element && /*step*/
|
|
406600
|
+
e[4].options.attachTo.on && An()
|
|
406601
|
+
);
|
|
406602
|
+
r = new So({
|
|
406603
|
+
props: {
|
|
406604
|
+
descriptionId: (
|
|
406605
|
+
/*descriptionId*/
|
|
406606
|
+
e[2]
|
|
406607
|
+
),
|
|
406608
|
+
labelId: (
|
|
406609
|
+
/*labelId*/
|
|
406610
|
+
e[3]
|
|
406611
|
+
),
|
|
406612
|
+
step: (
|
|
406613
|
+
/*step*/
|
|
406614
|
+
e[4]
|
|
406615
|
+
)
|
|
406616
|
+
}
|
|
406617
|
+
});
|
|
406618
|
+
let f = [
|
|
406619
|
+
{
|
|
406620
|
+
"aria-describedby": i = N(
|
|
406621
|
+
/*step*/
|
|
406622
|
+
e[4].options.text
|
|
406623
|
+
) ? null : (
|
|
406624
|
+
/*descriptionId*/
|
|
406625
|
+
e[2]
|
|
406626
|
+
)
|
|
406627
|
+
},
|
|
406628
|
+
{
|
|
406629
|
+
"aria-labelledby": s = /*step*/
|
|
406630
|
+
e[4].options.title ? (
|
|
406631
|
+
/*labelId*/
|
|
406632
|
+
e[3]
|
|
406633
|
+
) : null
|
|
406634
|
+
},
|
|
406635
|
+
/*dataStepId*/
|
|
406636
|
+
e[1],
|
|
406637
|
+
{
|
|
406638
|
+
role: "dialog"
|
|
406639
|
+
},
|
|
406640
|
+
{
|
|
406641
|
+
tabindex: "0"
|
|
406642
|
+
}
|
|
406643
|
+
], h = {};
|
|
406644
|
+
for (let d = 0; d < f.length; d += 1)
|
|
406645
|
+
h = Hi(h, f[d]);
|
|
406646
|
+
return {
|
|
406647
|
+
c() {
|
|
406648
|
+
t = se("div"), u && u.c(), n = ut(), Ce(r.$$.fragment), vn(t, h), ke(
|
|
406649
|
+
t,
|
|
406650
|
+
"shepherd-has-cancel-icon",
|
|
406651
|
+
/*hasCancelIcon*/
|
|
406652
|
+
e[5]
|
|
406653
|
+
), ke(
|
|
406654
|
+
t,
|
|
406655
|
+
"shepherd-has-title",
|
|
406656
|
+
/*hasTitle*/
|
|
406657
|
+
e[6]
|
|
406658
|
+
), ke(t, "shepherd-element", !0);
|
|
406659
|
+
},
|
|
406660
|
+
m(d, g) {
|
|
406661
|
+
re(d, t, g), u && u.m(t, null), We(t, n), ve(r, t, null), e[13](t), o = !0, c || (a = pt(
|
|
406662
|
+
t,
|
|
406663
|
+
"keydown",
|
|
406664
|
+
/*handleKeyDown*/
|
|
406665
|
+
e[7]
|
|
406666
|
+
), c = !0);
|
|
406667
|
+
},
|
|
406668
|
+
p(d, [g]) {
|
|
406669
|
+
/*step*/
|
|
406670
|
+
d[4].options.arrow && /*step*/
|
|
406671
|
+
d[4].options.attachTo && /*step*/
|
|
406672
|
+
d[4].options.attachTo.element && /*step*/
|
|
406673
|
+
d[4].options.attachTo.on ? u || (u = An(), u.c(), u.m(t, n)) : u && (u.d(1), u = null);
|
|
406674
|
+
const v = {};
|
|
406675
|
+
g & /*descriptionId*/
|
|
406676
|
+
4 && (v.descriptionId = /*descriptionId*/
|
|
406677
|
+
d[2]), g & /*labelId*/
|
|
406678
|
+
8 && (v.labelId = /*labelId*/
|
|
406679
|
+
d[3]), g & /*step*/
|
|
406680
|
+
16 && (v.step = /*step*/
|
|
406681
|
+
d[4]), r.$set(v), vn(t, h = eo(f, [(!o || g & /*step, descriptionId*/
|
|
406682
|
+
20 && i !== (i = N(
|
|
406683
|
+
/*step*/
|
|
406684
|
+
d[4].options.text
|
|
406685
|
+
) ? null : (
|
|
406686
|
+
/*descriptionId*/
|
|
406687
|
+
d[2]
|
|
406688
|
+
))) && {
|
|
406689
|
+
"aria-describedby": i
|
|
406690
|
+
}, (!o || g & /*step, labelId*/
|
|
406691
|
+
24 && s !== (s = /*step*/
|
|
406692
|
+
d[4].options.title ? (
|
|
406693
|
+
/*labelId*/
|
|
406694
|
+
d[3]
|
|
406695
|
+
) : null)) && {
|
|
406696
|
+
"aria-labelledby": s
|
|
406697
|
+
}, g & /*dataStepId*/
|
|
406698
|
+
2 && /*dataStepId*/
|
|
406699
|
+
d[1], {
|
|
406700
|
+
role: "dialog"
|
|
406701
|
+
}, {
|
|
406702
|
+
tabindex: "0"
|
|
406703
|
+
}])), ke(
|
|
406704
|
+
t,
|
|
406705
|
+
"shepherd-has-cancel-icon",
|
|
406706
|
+
/*hasCancelIcon*/
|
|
406707
|
+
d[5]
|
|
406708
|
+
), ke(
|
|
406709
|
+
t,
|
|
406710
|
+
"shepherd-has-title",
|
|
406711
|
+
/*hasTitle*/
|
|
406712
|
+
d[6]
|
|
406713
|
+
), ke(t, "shepherd-element", !0);
|
|
406714
|
+
},
|
|
406715
|
+
i(d) {
|
|
406716
|
+
o || (P(r.$$.fragment, d), o = !0);
|
|
406717
|
+
},
|
|
406718
|
+
o(d) {
|
|
406719
|
+
F(r.$$.fragment, d), o = !1;
|
|
406720
|
+
},
|
|
406721
|
+
d(d) {
|
|
406722
|
+
d && Z(t), u && u.d(), ye(r), e[13](null), c = !1, a();
|
|
406723
|
+
}
|
|
406724
|
+
};
|
|
406725
|
+
}
|
|
406726
|
+
const Ro = 9, To = 27, Co = 37, Ao = 39;
|
|
406727
|
+
function Pn(e) {
|
|
406728
|
+
return e.split(" ").filter((t) => !!t.length);
|
|
406729
|
+
}
|
|
406730
|
+
function Po(e, t, n) {
|
|
406731
|
+
let {
|
|
406732
|
+
classPrefix: r,
|
|
406733
|
+
element: i,
|
|
406734
|
+
descriptionId: s,
|
|
406735
|
+
firstFocusableElement: o,
|
|
406736
|
+
focusableElements: c,
|
|
406737
|
+
labelId: a,
|
|
406738
|
+
lastFocusableElement: u,
|
|
406739
|
+
step: f,
|
|
406740
|
+
dataStepId: h
|
|
406741
|
+
} = t, d, g, v;
|
|
406742
|
+
const x = () => i;
|
|
406743
|
+
Ki(() => {
|
|
406744
|
+
n(1, h = {
|
|
406745
|
+
[`data-${r}shepherd-step-id`]: f.id
|
|
406746
|
+
}), n(9, c = i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')), n(8, o = c[0]), n(10, u = c[c.length - 1]);
|
|
406747
|
+
}), Ut(() => {
|
|
406748
|
+
v !== f.options.classes && S();
|
|
406749
|
+
});
|
|
406750
|
+
function S() {
|
|
406751
|
+
w(v), v = f.options.classes, _(v);
|
|
406752
|
+
}
|
|
406753
|
+
function w(m) {
|
|
406754
|
+
if (Je(m)) {
|
|
406755
|
+
const T = Pn(m);
|
|
406756
|
+
T.length && i.classList.remove(...T);
|
|
406757
|
+
}
|
|
406758
|
+
}
|
|
406759
|
+
function _(m) {
|
|
406760
|
+
if (Je(m)) {
|
|
406761
|
+
const T = Pn(m);
|
|
406762
|
+
T.length && i.classList.add(...T);
|
|
406763
|
+
}
|
|
406764
|
+
}
|
|
406765
|
+
const R = (m) => {
|
|
406766
|
+
const {
|
|
406767
|
+
tour: T
|
|
406768
|
+
} = f;
|
|
406769
|
+
switch (m.keyCode) {
|
|
406770
|
+
case Ro:
|
|
406771
|
+
if (c.length === 0) {
|
|
406772
|
+
m.preventDefault();
|
|
406773
|
+
break;
|
|
406774
|
+
}
|
|
406775
|
+
m.shiftKey ? (document.activeElement === o || document.activeElement.classList.contains("shepherd-element")) && (m.preventDefault(), u.focus()) : document.activeElement === u && (m.preventDefault(), o.focus());
|
|
406776
|
+
break;
|
|
406777
|
+
case To:
|
|
406778
|
+
T.options.exitOnEsc && (m.preventDefault(), m.stopPropagation(), f.cancel());
|
|
406779
|
+
break;
|
|
406780
|
+
case Co:
|
|
406781
|
+
T.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), T.back());
|
|
406782
|
+
break;
|
|
406783
|
+
case Ao:
|
|
406784
|
+
T.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), T.next());
|
|
406785
|
+
break;
|
|
406786
|
+
}
|
|
406787
|
+
};
|
|
406788
|
+
function y(m) {
|
|
406789
|
+
$e[m ? "unshift" : "push"](() => {
|
|
406790
|
+
i = m, n(0, i);
|
|
406791
|
+
});
|
|
406792
|
+
}
|
|
406793
|
+
return e.$$set = (m) => {
|
|
406794
|
+
"classPrefix" in m && n(11, r = m.classPrefix), "element" in m && n(0, i = m.element), "descriptionId" in m && n(2, s = m.descriptionId), "firstFocusableElement" in m && n(8, o = m.firstFocusableElement), "focusableElements" in m && n(9, c = m.focusableElements), "labelId" in m && n(3, a = m.labelId), "lastFocusableElement" in m && n(10, u = m.lastFocusableElement), "step" in m && n(4, f = m.step), "dataStepId" in m && n(1, h = m.dataStepId);
|
|
406795
|
+
}, e.$$.update = () => {
|
|
406796
|
+
e.$$.dirty & /*step*/
|
|
406797
|
+
16 && (n(5, d = f.options && f.options.cancelIcon && f.options.cancelIcon.enabled), n(6, g = f.options && f.options.title));
|
|
406798
|
+
}, [i, h, s, a, f, d, g, R, o, c, u, r, x, y];
|
|
406799
|
+
}
|
|
406800
|
+
class ko extends de {
|
|
406801
|
+
constructor(t) {
|
|
406802
|
+
super(), fe(this, t, Po, Oo, ue, {
|
|
406803
|
+
classPrefix: 11,
|
|
406804
|
+
element: 0,
|
|
406805
|
+
descriptionId: 2,
|
|
406806
|
+
firstFocusableElement: 8,
|
|
406807
|
+
focusableElements: 9,
|
|
406808
|
+
labelId: 3,
|
|
406809
|
+
lastFocusableElement: 10,
|
|
406810
|
+
step: 4,
|
|
406811
|
+
dataStepId: 1,
|
|
406812
|
+
getElement: 12
|
|
406813
|
+
});
|
|
406814
|
+
}
|
|
406815
|
+
get getElement() {
|
|
406816
|
+
return this.$$.ctx[12];
|
|
406817
|
+
}
|
|
406818
|
+
}
|
|
406819
|
+
class Mt extends Ft {
|
|
406820
|
+
constructor(t, n = {}) {
|
|
406821
|
+
return super(), this._resolvedAttachTo = void 0, this.classPrefix = void 0, this.el = void 0, this.target = void 0, this.tour = void 0, this.tour = t, this.classPrefix = this.tour.options ? Dn(this.tour.options.classPrefix) : "", this.styles = t.styles, this._resolvedAttachTo = null, Dt(this), this._setOptions(n), this;
|
|
406822
|
+
}
|
|
406823
|
+
/**
|
|
406824
|
+
* Cancel the tour
|
|
406825
|
+
* Triggers the `cancel` event
|
|
406826
|
+
*/
|
|
406827
|
+
cancel() {
|
|
406828
|
+
this.tour.cancel(), this.trigger("cancel");
|
|
406829
|
+
}
|
|
406830
|
+
/**
|
|
406831
|
+
* Complete the tour
|
|
406832
|
+
* Triggers the `complete` event
|
|
406833
|
+
*/
|
|
406834
|
+
complete() {
|
|
406835
|
+
this.tour.complete(), this.trigger("complete");
|
|
406836
|
+
}
|
|
406837
|
+
/**
|
|
406838
|
+
* Remove the step, delete the step's element, and destroy the FloatingUI instance for the step.
|
|
406839
|
+
* Triggers `destroy` event
|
|
406840
|
+
*/
|
|
406841
|
+
destroy() {
|
|
406842
|
+
ji(this), Ge(this.el) && (this.el.remove(), this.el = null), this._updateStepTargetOnHide(), this.trigger("destroy");
|
|
406843
|
+
}
|
|
406844
|
+
/**
|
|
406845
|
+
* Returns the tour for the step
|
|
406846
|
+
* @return The tour instance
|
|
406847
|
+
*/
|
|
406848
|
+
getTour() {
|
|
406849
|
+
return this.tour;
|
|
406850
|
+
}
|
|
406851
|
+
/**
|
|
406852
|
+
* Hide the step
|
|
406853
|
+
*/
|
|
406854
|
+
hide() {
|
|
406855
|
+
var t;
|
|
406856
|
+
(t = this.tour.modal) == null || t.hide(), this.trigger("before-hide"), this.el && (this.el.hidden = !0), this._updateStepTargetOnHide(), this.trigger("hide");
|
|
406857
|
+
}
|
|
406858
|
+
/**
|
|
406859
|
+
* Resolves attachTo options.
|
|
406860
|
+
* @returns {{}|{element, on}}
|
|
406861
|
+
*/
|
|
406862
|
+
_resolveAttachToOptions() {
|
|
406863
|
+
return this._resolvedAttachTo = Gr(this), this._resolvedAttachTo;
|
|
406864
|
+
}
|
|
406865
|
+
/**
|
|
406866
|
+
* A selector for resolved attachTo options.
|
|
406867
|
+
* @returns {{}|{element, on}}
|
|
406868
|
+
* @private
|
|
406869
|
+
*/
|
|
406870
|
+
_getResolvedAttachToOptions() {
|
|
406871
|
+
return this._resolvedAttachTo === null ? this._resolveAttachToOptions() : this._resolvedAttachTo;
|
|
406872
|
+
}
|
|
406873
|
+
/**
|
|
406874
|
+
* Check if the step is open and visible
|
|
406875
|
+
* @return True if the step is open and visible
|
|
406876
|
+
*/
|
|
406877
|
+
isOpen() {
|
|
406878
|
+
return !!(this.el && !this.el.hidden);
|
|
406879
|
+
}
|
|
406880
|
+
/**
|
|
406881
|
+
* Wraps `_show` and ensures `beforeShowPromise` resolves before calling show
|
|
406882
|
+
*/
|
|
406883
|
+
show() {
|
|
406884
|
+
return pe(this.options.beforeShowPromise) ? Promise.resolve(this.options.beforeShowPromise()).then(() => this._show()) : Promise.resolve(this._show());
|
|
406885
|
+
}
|
|
406886
|
+
/**
|
|
406887
|
+
* Updates the options of the step.
|
|
406888
|
+
*
|
|
406889
|
+
* @param {StepOptions} options The options for the step
|
|
406890
|
+
*/
|
|
406891
|
+
updateStepOptions(t) {
|
|
406892
|
+
Object.assign(this.options, t), this.shepherdElementComponent && this.shepherdElementComponent.$set({
|
|
406893
|
+
step: this
|
|
406894
|
+
});
|
|
406895
|
+
}
|
|
406896
|
+
/**
|
|
406897
|
+
* Returns the element for the step
|
|
406898
|
+
* @return {HTMLElement|null|undefined} The element instance. undefined if it has never been shown, null if it has been destroyed
|
|
406899
|
+
*/
|
|
406900
|
+
getElement() {
|
|
406901
|
+
return this.el;
|
|
406902
|
+
}
|
|
406903
|
+
/**
|
|
406904
|
+
* Returns the target for the step
|
|
406905
|
+
* @return {HTMLElement|null|undefined} The element instance. undefined if it has never been shown, null if query string has not been found
|
|
406906
|
+
*/
|
|
406907
|
+
getTarget() {
|
|
406908
|
+
return this.target;
|
|
406909
|
+
}
|
|
406910
|
+
/**
|
|
406911
|
+
* Creates Shepherd element for step based on options
|
|
406912
|
+
*
|
|
406913
|
+
* @return {HTMLElement} The DOM element for the step tooltip
|
|
406914
|
+
* @private
|
|
406915
|
+
*/
|
|
406916
|
+
_createTooltipContent() {
|
|
406917
|
+
const t = `${this.id}-description`, n = `${this.id}-label`;
|
|
406918
|
+
return this.shepherdElementComponent = new ko({
|
|
406919
|
+
target: this.tour.options.stepsContainer || document.body,
|
|
406920
|
+
props: {
|
|
406921
|
+
classPrefix: this.classPrefix,
|
|
406922
|
+
descriptionId: t,
|
|
406923
|
+
labelId: n,
|
|
406924
|
+
step: this,
|
|
406925
|
+
// @ts-expect-error TODO: investigate where styles comes from
|
|
406926
|
+
styles: this.styles
|
|
406927
|
+
}
|
|
406928
|
+
}), this.shepherdElementComponent.getElement();
|
|
406929
|
+
}
|
|
406930
|
+
/**
|
|
406931
|
+
* If a custom scrollToHandler is defined, call that, otherwise do the generic
|
|
406932
|
+
* scrollIntoView call.
|
|
406933
|
+
*
|
|
406934
|
+
* @param {boolean | ScrollIntoViewOptions} scrollToOptions - If true, uses the default `scrollIntoView`,
|
|
406935
|
+
* if an object, passes that object as the params to `scrollIntoView` i.e. `{ behavior: 'smooth', block: 'center' }`
|
|
406936
|
+
* @private
|
|
406937
|
+
*/
|
|
406938
|
+
_scrollTo(t) {
|
|
406939
|
+
const {
|
|
406940
|
+
element: n
|
|
406941
|
+
} = this._getResolvedAttachToOptions();
|
|
406942
|
+
pe(this.options.scrollToHandler) ? this.options.scrollToHandler(n) : Ir(n) && typeof n.scrollIntoView == "function" && n.scrollIntoView(t);
|
|
406943
|
+
}
|
|
406944
|
+
/**
|
|
406945
|
+
* _getClassOptions gets all possible classes for the step
|
|
406946
|
+
* @param {StepOptions} stepOptions The step specific options
|
|
406947
|
+
* @returns {string} unique string from array of classes
|
|
406948
|
+
*/
|
|
406949
|
+
_getClassOptions(t) {
|
|
406950
|
+
const n = this.tour && this.tour.options && this.tour.options.defaultStepOptions, r = t.classes ? t.classes : "", i = n && n.classes ? n.classes : "", s = [...r.split(" "), ...i.split(" ")], o = new Set(s);
|
|
406951
|
+
return Array.from(o).join(" ").trim();
|
|
406952
|
+
}
|
|
406953
|
+
/**
|
|
406954
|
+
* Sets the options for the step, maps `when` to events, sets up buttons
|
|
406955
|
+
* @param options - The options for the step
|
|
406956
|
+
*/
|
|
406957
|
+
_setOptions(t = {}) {
|
|
406958
|
+
let n = this.tour && this.tour.options && this.tour.options.defaultStepOptions;
|
|
406959
|
+
n = Lt({}, n || {}), this.options = Object.assign({
|
|
406960
|
+
arrow: !0
|
|
406961
|
+
}, n, t, Di(n, t));
|
|
406962
|
+
const {
|
|
406963
|
+
when: r
|
|
406964
|
+
} = this.options;
|
|
406965
|
+
this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${Bn()}`, r && Object.keys(r).forEach((i) => {
|
|
406966
|
+
this.on(i, r[i], this);
|
|
406967
|
+
});
|
|
406968
|
+
}
|
|
406969
|
+
/**
|
|
406970
|
+
* Create the element and set up the FloatingUI instance
|
|
406971
|
+
* @private
|
|
406972
|
+
*/
|
|
406973
|
+
_setupElements() {
|
|
406974
|
+
N(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn && Jr(this), Li(this);
|
|
406975
|
+
}
|
|
406976
|
+
/**
|
|
406977
|
+
* Triggers `before-show`, generates the tooltip DOM content,
|
|
406978
|
+
* sets up a FloatingUI instance for the tooltip, then triggers `show`.
|
|
406979
|
+
* @private
|
|
406980
|
+
*/
|
|
406981
|
+
_show() {
|
|
406982
|
+
var t;
|
|
406983
|
+
this.trigger("before-show"), this._resolveAttachToOptions(), this._setupElements(), this.tour.modal || this.tour.setupModal(), (t = this.tour.modal) == null || t.setupForStep(this), this._styleTargetElementForStep(this), this.el && (this.el.hidden = !1), this.options.scrollTo && setTimeout(() => {
|
|
406984
|
+
this._scrollTo(this.options.scrollTo);
|
|
406985
|
+
}), this.el && (this.el.hidden = !1);
|
|
406986
|
+
const n = this.shepherdElementComponent.getElement(), r = this.target || document.body;
|
|
406987
|
+
r.classList.add(`${this.classPrefix}shepherd-enabled`), r.classList.add(`${this.classPrefix}shepherd-target`), n.classList.add("shepherd-enabled"), this.trigger("show");
|
|
406988
|
+
}
|
|
406989
|
+
/**
|
|
406990
|
+
* Modulates the styles of the passed step's target element, based on the step's options and
|
|
406991
|
+
* the tour's `modal` option, to visually emphasize the element
|
|
406992
|
+
*
|
|
406993
|
+
* @param {Step} step The step object that attaches to the element
|
|
406994
|
+
* @private
|
|
406995
|
+
*/
|
|
406996
|
+
_styleTargetElementForStep(t) {
|
|
406997
|
+
const n = t.target;
|
|
406998
|
+
n && (t.options.highlightClass && n.classList.add(t.options.highlightClass), n.classList.remove("shepherd-target-click-disabled"), t.options.canClickTarget === !1 && n.classList.add("shepherd-target-click-disabled"));
|
|
406999
|
+
}
|
|
407000
|
+
/**
|
|
407001
|
+
* When a step is hidden, remove the highlightClass and 'shepherd-enabled'
|
|
407002
|
+
* and 'shepherd-target' classes
|
|
407003
|
+
* @private
|
|
407004
|
+
*/
|
|
407005
|
+
_updateStepTargetOnHide() {
|
|
407006
|
+
const t = this.target || document.body;
|
|
407007
|
+
this.options.highlightClass && t.classList.remove(this.options.highlightClass), t.classList.remove("shepherd-target-click-disabled", `${this.classPrefix}shepherd-enabled`, `${this.classPrefix}shepherd-target`);
|
|
407008
|
+
}
|
|
407009
|
+
}
|
|
407010
|
+
function Io(e) {
|
|
407011
|
+
if (e) {
|
|
407012
|
+
const {
|
|
407013
|
+
steps: t
|
|
407014
|
+
} = e;
|
|
407015
|
+
t.forEach((n) => {
|
|
407016
|
+
n.options && n.options.canClickTarget === !1 && n.options.attachTo && Ge(n.target) && n.target.classList.remove("shepherd-target-click-disabled");
|
|
407017
|
+
});
|
|
407018
|
+
}
|
|
407019
|
+
}
|
|
407020
|
+
function Mo({
|
|
407021
|
+
width: e,
|
|
407022
|
+
height: t,
|
|
407023
|
+
x: n = 0,
|
|
407024
|
+
y: r = 0,
|
|
407025
|
+
r: i = 0
|
|
407026
|
+
}) {
|
|
407027
|
+
const {
|
|
407028
|
+
innerWidth: s,
|
|
407029
|
+
innerHeight: o
|
|
407030
|
+
} = window, {
|
|
407031
|
+
topLeft: c = 0,
|
|
407032
|
+
topRight: a = 0,
|
|
407033
|
+
bottomRight: u = 0,
|
|
407034
|
+
bottomLeft: f = 0
|
|
407035
|
+
} = typeof i == "number" ? {
|
|
407036
|
+
topLeft: i,
|
|
407037
|
+
topRight: i,
|
|
407038
|
+
bottomRight: i,
|
|
407039
|
+
bottomLeft: i
|
|
407040
|
+
} : i;
|
|
407041
|
+
return `M${s},${o}H0V0H${s}V${o}ZM${n + c},${r}a${c},${c},0,0,0-${c},${c}V${t + r - f}a${f},${f},0,0,0,${f},${f}H${e + n - u}a${u},${u},0,0,0,${u}-${u}V${r + a}a${a},${a},0,0,0-${a}-${a}Z`;
|
|
407042
|
+
}
|
|
407043
|
+
function Fo(e) {
|
|
407044
|
+
let t, n, r, i, s;
|
|
407045
|
+
return {
|
|
407046
|
+
c() {
|
|
407047
|
+
t = bn("svg"), n = bn("path"), I(
|
|
407048
|
+
n,
|
|
407049
|
+
"d",
|
|
407050
|
+
/*pathDefinition*/
|
|
407051
|
+
e[2]
|
|
407052
|
+
), I(t, "class", r = `${/*modalIsVisible*/
|
|
407053
|
+
e[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`);
|
|
407054
|
+
},
|
|
407055
|
+
m(o, c) {
|
|
407056
|
+
re(o, t, c), We(t, n), e[11](t), i || (s = pt(
|
|
407057
|
+
t,
|
|
407058
|
+
"touchmove",
|
|
407059
|
+
/*_preventModalOverlayTouch*/
|
|
407060
|
+
e[3]
|
|
407061
|
+
), i = !0);
|
|
407062
|
+
},
|
|
407063
|
+
p(o, [c]) {
|
|
407064
|
+
c & /*pathDefinition*/
|
|
407065
|
+
4 && I(
|
|
407066
|
+
n,
|
|
407067
|
+
"d",
|
|
407068
|
+
/*pathDefinition*/
|
|
407069
|
+
o[2]
|
|
407070
|
+
), c & /*modalIsVisible*/
|
|
407071
|
+
2 && r !== (r = `${/*modalIsVisible*/
|
|
407072
|
+
o[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) && I(t, "class", r);
|
|
407073
|
+
},
|
|
407074
|
+
i: J,
|
|
407075
|
+
o: J,
|
|
407076
|
+
d(o) {
|
|
407077
|
+
o && Z(t), e[11](null), i = !1, s();
|
|
407078
|
+
}
|
|
407079
|
+
};
|
|
407080
|
+
}
|
|
407081
|
+
function Zn(e) {
|
|
407082
|
+
if (!e)
|
|
407083
|
+
return null;
|
|
407084
|
+
const n = e instanceof HTMLElement && window.getComputedStyle(e).overflowY;
|
|
407085
|
+
return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e : Zn(e.parentElement);
|
|
407086
|
+
}
|
|
407087
|
+
function Lo(e) {
|
|
407088
|
+
let t = {
|
|
407089
|
+
top: 0,
|
|
407090
|
+
left: 0
|
|
407091
|
+
};
|
|
407092
|
+
if (!e)
|
|
407093
|
+
return t;
|
|
407094
|
+
let n = e.ownerDocument.defaultView;
|
|
407095
|
+
for (; n !== window.top; ) {
|
|
407096
|
+
var r;
|
|
407097
|
+
const o = (r = n) == null ? void 0 : r.frameElement;
|
|
407098
|
+
if (o) {
|
|
407099
|
+
var i, s;
|
|
407100
|
+
const c = o.getBoundingClientRect();
|
|
407101
|
+
t.top += c.top + ((i = c.scrollTop) != null ? i : 0), t.left += c.left + ((s = c.scrollLeft) != null ? s : 0);
|
|
407102
|
+
}
|
|
407103
|
+
n = n.parent;
|
|
407104
|
+
}
|
|
407105
|
+
return t;
|
|
407106
|
+
}
|
|
407107
|
+
function Do(e, t) {
|
|
407108
|
+
const n = e.getBoundingClientRect();
|
|
407109
|
+
let r = n.y || n.top, i = n.bottom || r + n.height;
|
|
407110
|
+
if (t) {
|
|
407111
|
+
const o = t.getBoundingClientRect(), c = o.y || o.top, a = o.bottom || c + o.height;
|
|
407112
|
+
r = Math.max(r, c), i = Math.min(i, a);
|
|
407113
|
+
}
|
|
407114
|
+
const s = Math.max(i - r, 0);
|
|
407115
|
+
return {
|
|
407116
|
+
y: r,
|
|
407117
|
+
height: s
|
|
407118
|
+
};
|
|
407119
|
+
}
|
|
407120
|
+
function jo(e, t, n) {
|
|
407121
|
+
let {
|
|
407122
|
+
element: r,
|
|
407123
|
+
openingProperties: i
|
|
407124
|
+
} = t, s = !1, o, c;
|
|
407125
|
+
u();
|
|
407126
|
+
const a = () => r;
|
|
407127
|
+
function u() {
|
|
407128
|
+
n(4, i = {
|
|
407129
|
+
width: 0,
|
|
407130
|
+
height: 0,
|
|
407131
|
+
x: 0,
|
|
407132
|
+
y: 0,
|
|
407133
|
+
r: 0
|
|
407134
|
+
});
|
|
407135
|
+
}
|
|
407136
|
+
function f() {
|
|
407137
|
+
n(1, s = !1), w();
|
|
407138
|
+
}
|
|
407139
|
+
function h(y = 0, m = 0, T = 0, B = 0, ie, H) {
|
|
407140
|
+
if (H) {
|
|
407141
|
+
const {
|
|
407142
|
+
y: K,
|
|
407143
|
+
height: U
|
|
407144
|
+
} = Do(H, ie), {
|
|
407145
|
+
x: W,
|
|
407146
|
+
width: j,
|
|
407147
|
+
left: L
|
|
407148
|
+
} = H.getBoundingClientRect();
|
|
407149
|
+
n(4, i = {
|
|
407150
|
+
width: j + y * 2,
|
|
407151
|
+
height: U + y * 2,
|
|
407152
|
+
x: (W || L) + T - y,
|
|
407153
|
+
y: K + B - y,
|
|
407154
|
+
r: m
|
|
407155
|
+
});
|
|
407156
|
+
} else
|
|
407157
|
+
u();
|
|
407158
|
+
}
|
|
407159
|
+
function d(y) {
|
|
407160
|
+
w(), y.tour.options.useModalOverlay ? (_(y), g()) : f();
|
|
407161
|
+
}
|
|
407162
|
+
function g() {
|
|
407163
|
+
n(1, s = !0);
|
|
407164
|
+
}
|
|
407165
|
+
const v = (y) => {
|
|
407166
|
+
y.preventDefault();
|
|
407167
|
+
}, x = (y) => {
|
|
407168
|
+
y.stopPropagation();
|
|
407169
|
+
};
|
|
407170
|
+
function S() {
|
|
407171
|
+
window.addEventListener("touchmove", v, {
|
|
407172
|
+
passive: !1
|
|
407173
|
+
});
|
|
407174
|
+
}
|
|
407175
|
+
function w() {
|
|
407176
|
+
o && (cancelAnimationFrame(o), o = void 0), window.removeEventListener("touchmove", v, {
|
|
407177
|
+
passive: !1
|
|
407178
|
+
});
|
|
407179
|
+
}
|
|
407180
|
+
function _(y) {
|
|
407181
|
+
const {
|
|
407182
|
+
modalOverlayOpeningPadding: m,
|
|
407183
|
+
modalOverlayOpeningRadius: T,
|
|
407184
|
+
modalOverlayOpeningXOffset: B = 0,
|
|
407185
|
+
modalOverlayOpeningYOffset: ie = 0
|
|
407186
|
+
} = y.options, H = Lo(y.target), K = Zn(y.target), U = () => {
|
|
407187
|
+
o = void 0, h(m, T, B + H.left, ie + H.top, K, y.target), o = requestAnimationFrame(U);
|
|
407188
|
+
};
|
|
407189
|
+
U(), S();
|
|
407190
|
+
}
|
|
407191
|
+
function R(y) {
|
|
407192
|
+
$e[y ? "unshift" : "push"](() => {
|
|
407193
|
+
r = y, n(0, r);
|
|
407194
|
+
});
|
|
407195
|
+
}
|
|
407196
|
+
return e.$$set = (y) => {
|
|
407197
|
+
"element" in y && n(0, r = y.element), "openingProperties" in y && n(4, i = y.openingProperties);
|
|
407198
|
+
}, e.$$.update = () => {
|
|
407199
|
+
e.$$.dirty & /*openingProperties*/
|
|
407200
|
+
16 && n(2, c = Mo(i));
|
|
407201
|
+
}, [r, s, c, x, i, a, u, f, h, d, g, R];
|
|
407202
|
+
}
|
|
407203
|
+
class Bo extends de {
|
|
407204
|
+
constructor(t) {
|
|
407205
|
+
super(), fe(this, t, jo, Fo, ue, {
|
|
407206
|
+
element: 0,
|
|
407207
|
+
openingProperties: 4,
|
|
407208
|
+
getElement: 5,
|
|
407209
|
+
closeModalOpening: 6,
|
|
407210
|
+
hide: 7,
|
|
407211
|
+
positionModal: 8,
|
|
407212
|
+
setupForStep: 9,
|
|
407213
|
+
show: 10
|
|
407214
|
+
});
|
|
407215
|
+
}
|
|
407216
|
+
get getElement() {
|
|
407217
|
+
return this.$$.ctx[5];
|
|
407218
|
+
}
|
|
407219
|
+
get closeModalOpening() {
|
|
407220
|
+
return this.$$.ctx[6];
|
|
407221
|
+
}
|
|
407222
|
+
get hide() {
|
|
407223
|
+
return this.$$.ctx[7];
|
|
407224
|
+
}
|
|
407225
|
+
get positionModal() {
|
|
407226
|
+
return this.$$.ctx[8];
|
|
407227
|
+
}
|
|
407228
|
+
get setupForStep() {
|
|
407229
|
+
return this.$$.ctx[9];
|
|
407230
|
+
}
|
|
407231
|
+
get show() {
|
|
407232
|
+
return this.$$.ctx[10];
|
|
407233
|
+
}
|
|
407234
|
+
}
|
|
407235
|
+
class No extends Ft {
|
|
407236
|
+
constructor() {
|
|
407237
|
+
super(), this.activeTour = void 0, Dt(this);
|
|
407238
|
+
}
|
|
407239
|
+
}
|
|
407240
|
+
class Wo extends Ft {
|
|
407241
|
+
constructor(t = {}) {
|
|
407242
|
+
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, Dt(this);
|
|
407243
|
+
const n = {
|
|
407244
|
+
exitOnEsc: !0,
|
|
407245
|
+
keyboardNavigation: !0
|
|
407246
|
+
};
|
|
407247
|
+
return this.options = Object.assign({}, n, t), this.classPrefix = Dn(this.options.classPrefix), this.steps = [], this.addSteps(this.options.steps), ["active", "cancel", "complete", "inactive", "show", "start"].map((i) => {
|
|
407248
|
+
((s) => {
|
|
407249
|
+
this.on(s, (o) => {
|
|
407250
|
+
o = o || {}, o.tour = this, xe.trigger(s, o);
|
|
407251
|
+
});
|
|
407252
|
+
})(i);
|
|
407253
|
+
}), this._setTourID(t.id), this;
|
|
407254
|
+
}
|
|
407255
|
+
/**
|
|
407256
|
+
* Adds a new step to the tour
|
|
407257
|
+
* @param {StepOptions} options - An object containing step options or a Step instance
|
|
407258
|
+
* @param {number | undefined} index - The optional index to insert the step at. If undefined, the step
|
|
407259
|
+
* is added to the end of the array.
|
|
407260
|
+
* @return The newly added step
|
|
407261
|
+
*/
|
|
407262
|
+
addStep(t, n) {
|
|
407263
|
+
let r = t;
|
|
407264
|
+
return r instanceof Mt ? r.tour = this : r = new Mt(this, r), N(n) ? this.steps.push(r) : this.steps.splice(n, 0, r), r;
|
|
407265
|
+
}
|
|
407266
|
+
/**
|
|
407267
|
+
* Add multiple steps to the tour
|
|
407268
|
+
* @param {Array<StepOptions> | Array<Step> | undefined} steps - The steps to add to the tour
|
|
407269
|
+
*/
|
|
407270
|
+
addSteps(t) {
|
|
407271
|
+
return Array.isArray(t) && t.forEach((n) => {
|
|
407272
|
+
this.addStep(n);
|
|
407273
|
+
}), this;
|
|
407274
|
+
}
|
|
407275
|
+
/**
|
|
407276
|
+
* Go to the previous step in the tour
|
|
407277
|
+
*/
|
|
407278
|
+
back() {
|
|
407279
|
+
const t = this.steps.indexOf(this.currentStep);
|
|
407280
|
+
this.show(t - 1, !1);
|
|
407281
|
+
}
|
|
407282
|
+
/**
|
|
407283
|
+
* Calls _done() triggering the 'cancel' event
|
|
407284
|
+
* If `confirmCancel` is true, will show a window.confirm before cancelling
|
|
407285
|
+
* If `confirmCancel` is a function, will call it and wait for the return value,
|
|
407286
|
+
* and only cancel when the value returned is true
|
|
407287
|
+
*/
|
|
407288
|
+
async cancel() {
|
|
407289
|
+
if (this.options.confirmCancel) {
|
|
407290
|
+
const t = this.options.confirmCancelMessage || "Are you sure you want to stop the tour?";
|
|
407291
|
+
let n;
|
|
407292
|
+
pe(this.options.confirmCancel) ? n = await this.options.confirmCancel() : n = window.confirm(t), n && this._done("cancel");
|
|
407293
|
+
} else
|
|
407294
|
+
this._done("cancel");
|
|
407295
|
+
}
|
|
407296
|
+
/**
|
|
407297
|
+
* Calls _done() triggering the `complete` event
|
|
407298
|
+
*/
|
|
407299
|
+
complete() {
|
|
407300
|
+
this._done("complete");
|
|
407301
|
+
}
|
|
407302
|
+
/**
|
|
407303
|
+
* Gets the step from a given id
|
|
407304
|
+
* @param {number | string} id - The id of the step to retrieve
|
|
407305
|
+
* @return The step corresponding to the `id`
|
|
407306
|
+
*/
|
|
407307
|
+
getById(t) {
|
|
407308
|
+
return this.steps.find((n) => n.id === t);
|
|
407309
|
+
}
|
|
407310
|
+
/**
|
|
407311
|
+
* Gets the current step
|
|
407312
|
+
*/
|
|
407313
|
+
getCurrentStep() {
|
|
407314
|
+
return this.currentStep;
|
|
407315
|
+
}
|
|
407316
|
+
/**
|
|
407317
|
+
* Hide the current step
|
|
407318
|
+
*/
|
|
407319
|
+
hide() {
|
|
407320
|
+
const t = this.getCurrentStep();
|
|
407321
|
+
if (t)
|
|
407322
|
+
return t.hide();
|
|
407323
|
+
}
|
|
407324
|
+
/**
|
|
407325
|
+
* Check if the tour is active
|
|
407326
|
+
*/
|
|
407327
|
+
isActive() {
|
|
407328
|
+
return xe.activeTour === this;
|
|
407329
|
+
}
|
|
407330
|
+
/**
|
|
407331
|
+
* Go to the next step in the tour
|
|
407332
|
+
* If we are at the end, call `complete`
|
|
407333
|
+
*/
|
|
407334
|
+
next() {
|
|
407335
|
+
const t = this.steps.indexOf(this.currentStep);
|
|
407336
|
+
t === this.steps.length - 1 ? this.complete() : this.show(t + 1, !0);
|
|
407337
|
+
}
|
|
407338
|
+
/**
|
|
407339
|
+
* Removes the step from the tour
|
|
407340
|
+
* @param {string} name - The id for the step to remove
|
|
407341
|
+
*/
|
|
407342
|
+
removeStep(t) {
|
|
407343
|
+
const n = this.getCurrentStep();
|
|
407344
|
+
this.steps.some((r, i) => {
|
|
407345
|
+
if (r.id === t)
|
|
407346
|
+
return r.isOpen() && r.hide(), r.destroy(), this.steps.splice(i, 1), !0;
|
|
407347
|
+
}), n && n.id === t && (this.currentStep = void 0, this.steps.length ? this.show(0) : this.cancel());
|
|
407348
|
+
}
|
|
407349
|
+
/**
|
|
407350
|
+
* Show a specific step in the tour
|
|
407351
|
+
* @param {number | string} key - The key to look up the step by
|
|
407352
|
+
* @param {boolean} forward - True if we are going forward, false if backward
|
|
407353
|
+
*/
|
|
407354
|
+
show(t = 0, n = !0) {
|
|
407355
|
+
const r = Je(t) ? this.getById(t) : this.steps[t];
|
|
407356
|
+
r && (this._updateStateBeforeShow(), pe(r.options.showOn) && !r.options.showOn() ? this._skipStep(r, n) : (this.trigger("show", {
|
|
407357
|
+
step: r,
|
|
407358
|
+
previous: this.currentStep
|
|
407359
|
+
}), this.currentStep = r, r.show()));
|
|
407360
|
+
}
|
|
407361
|
+
/**
|
|
407362
|
+
* Start the tour
|
|
407363
|
+
*/
|
|
407364
|
+
async start() {
|
|
407365
|
+
this.trigger("start"), this.focusedElBeforeOpen = document.activeElement, this.currentStep = null, this.setupModal(), this._setupActiveTour(), this.next();
|
|
407366
|
+
}
|
|
407367
|
+
/**
|
|
407368
|
+
* Called whenever the tour is cancelled or completed, basically anytime we exit the tour
|
|
407369
|
+
* @param {string} event - The event name to trigger
|
|
407370
|
+
* @private
|
|
407371
|
+
*/
|
|
407372
|
+
_done(t) {
|
|
407373
|
+
const n = this.steps.indexOf(this.currentStep);
|
|
407374
|
+
if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()), Io(this), this.trigger(t, {
|
|
407375
|
+
index: n
|
|
407376
|
+
}), xe.activeTour = null, this.trigger("inactive", {
|
|
407377
|
+
tour: this
|
|
407378
|
+
}), this.modal && this.modal.hide(), (t === "cancel" || t === "complete") && this.modal) {
|
|
407379
|
+
const r = document.querySelector(".shepherd-modal-overlay-container");
|
|
407380
|
+
r && (r.remove(), this.modal = null);
|
|
407381
|
+
}
|
|
407382
|
+
Ge(this.focusedElBeforeOpen) && this.focusedElBeforeOpen.focus();
|
|
407383
|
+
}
|
|
407384
|
+
/**
|
|
407385
|
+
* Make this tour "active"
|
|
407386
|
+
*/
|
|
407387
|
+
_setupActiveTour() {
|
|
407388
|
+
this.trigger("active", {
|
|
407389
|
+
tour: this
|
|
407390
|
+
}), xe.activeTour = this;
|
|
407391
|
+
}
|
|
407392
|
+
/**
|
|
407393
|
+
* setupModal create the modal container and instance
|
|
407394
|
+
*/
|
|
407395
|
+
setupModal() {
|
|
407396
|
+
this.modal = new Bo({
|
|
407397
|
+
target: this.options.modalContainer || document.body,
|
|
407398
|
+
props: {
|
|
407399
|
+
// @ts-expect-error TODO: investigate where styles comes from
|
|
407400
|
+
styles: this.styles
|
|
407401
|
+
}
|
|
407402
|
+
});
|
|
407403
|
+
}
|
|
407404
|
+
/**
|
|
407405
|
+
* Called when `showOn` evaluates to false, to skip the step or complete the tour if it's the last step
|
|
407406
|
+
* @param {Step} step - The step to skip
|
|
407407
|
+
* @param {boolean} forward - True if we are going forward, false if backward
|
|
407408
|
+
* @private
|
|
407409
|
+
*/
|
|
407410
|
+
_skipStep(t, n) {
|
|
407411
|
+
const r = this.steps.indexOf(t);
|
|
407412
|
+
if (r === this.steps.length - 1)
|
|
407413
|
+
this.complete();
|
|
407414
|
+
else {
|
|
407415
|
+
const i = n ? r + 1 : r - 1;
|
|
407416
|
+
this.show(i, n);
|
|
407417
|
+
}
|
|
407418
|
+
}
|
|
407419
|
+
/**
|
|
407420
|
+
* Before showing, hide the current step and if the tour is not
|
|
407421
|
+
* already active, call `this._setupActiveTour`.
|
|
407422
|
+
* @private
|
|
407423
|
+
*/
|
|
407424
|
+
_updateStateBeforeShow() {
|
|
407425
|
+
this.currentStep && this.currentStep.hide(), this.isActive() || this._setupActiveTour();
|
|
407426
|
+
}
|
|
407427
|
+
/**
|
|
407428
|
+
* Sets this.id to a provided tourName and id or `${tourName}--${uuid}`
|
|
407429
|
+
* @param {string} optionsId - True if we are going forward, false if backward
|
|
407430
|
+
* @private
|
|
407431
|
+
*/
|
|
407432
|
+
_setTourID(t) {
|
|
407433
|
+
const n = this.options.tourName || "tour", r = t || Bn();
|
|
407434
|
+
this.id = `${n}--${r}`;
|
|
407435
|
+
}
|
|
407436
|
+
}
|
|
407437
|
+
const xe = new No(), Qn = typeof window > "u";
|
|
407438
|
+
xe.Step = Qn ? Kr : Mt;
|
|
407439
|
+
xe.Tour = Qn ? Xr : Wo;
|
|
407440
|
+
const Yt = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(
|
|
407441
|
+
void 0
|
|
407442
|
+
), Vo = Yt.Consumer, Ho = () => {
|
|
407443
|
+
const e = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Yt);
|
|
407444
|
+
if (!e)
|
|
407445
|
+
throw new Error(
|
|
407446
|
+
"useShepherd must be used within a ShepherdJourneyProvider"
|
|
407447
|
+
);
|
|
407448
|
+
const { Shepherd: t } = e;
|
|
407449
|
+
return t;
|
|
407450
|
+
}, Uo = ({
|
|
407451
|
+
children: e
|
|
407452
|
+
}) => /* @__PURE__ */ kr.jsx(Yt.Provider, { value: { Shepherd: xe }, children: e });
|
|
407453
|
+
|
|
407454
|
+
|
|
407455
|
+
|
|
404062
407456
|
/***/ }),
|
|
404063
407457
|
|
|
404064
407458
|
/***/ 92712:
|
|
@@ -404578,7 +407972,7 @@ function __disposeResources(env) {
|
|
|
404578
407972
|
/******/ // This function allow to reference async chunks
|
|
404579
407973
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
404580
407974
|
/******/ // return url for filenames based on template
|
|
404581
|
-
/******/ return "" + ({"1985":"polySeg","2158":"histogram-worker","7607":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"79":"422d9ccbaaefa6b0a039","153":"
|
|
407975
|
+
/******/ return "" + ({"1985":"polySeg","2158":"histogram-worker","7607":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"79":"422d9ccbaaefa6b0a039","153":"69a1da4bc19a9dc9a3fb","818":"b6027359846cc90e32ff","962":"7e7533c80b15458c33b2","1169":"4622fde2805592aad5d0","1202":"55f140afb05e1ad5512c","1498":"ff6ba98c695ef559fec2","1540":"2a0208cc8d5cabfc569d","1985":"0a70e65fe89169ec7508","2119":"cd95916edb40cbb49798","2158":"d97bab3206c49329f64b","2412":"e1abf9a60dcecb7f0c77","2791":"df289e574021b625fd93","2831":"22245416b8edb6c9dc56","2898":"ef8d98b006bd8386d599","3286":"b9b3a165dc5a8b24b47f","3482":"a8622b8e9e5101b2f771","3497":"512610422a2862584c55","3658":"e44755981b64e69a8d7e","3962":"f8f36bf46046916a7e45","4210":"7c76057d5b3203a9e20e","4353":"cb34dacb0f549a77c763","4530":"ec12dfd2fbf9083b164e","4757":"ed362a485344485c9f1c","4842":"7de0865d2e7b441eb71a","4978":"80bd95bc4db5adeaf58e","5793":"d1b4e887564bbb98752d","5888":"2a90d295a124507f71ea","5898":"be696e0b355efc1c7f05","5931":"f16bcd50591d83af9f7a","6010":"a41bef6e63d1f8f8af7f","6552":"d3571384b43fe26e44b3","6591":"b42be855ac7084bf0151","6904":"da0d83fcd48a48cfaac1","7246":"8673931a5f54886ffb55","7360":"fd7617c5a35cbd33dfff","7376":"de190e34fba439eb6f0f","7502":"42ee15a14f5cc0313ad4","7607":"54d68bc1808ad3d77994","7913":"af5005f5f1f642a25dec","8315":"5cac046f15998869dc97","8714":"36331faa35db985a786c","8944":"36d1631c09531b4ff7cd","8993":"23cd5f8560800a97d798","8999":"fe5b9a3ecd518a7c68cf"}[chunkId] + ".js";
|
|
404582
407976
|
/******/ };
|
|
404583
407977
|
/******/ })();
|
|
404584
407978
|
/******/
|