@cognigy/webchat 3.38.0 → 3.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/OSS_LICENSES.txt +5 -5
- package/dist/webchat.esm.js +407 -218
- package/dist/webchat.js +44 -44
- package/package.json +3 -3
package/dist/webchat.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* webchat.esm.js v3.
|
|
3
|
-
* https://github.com/Cognigy/Webchat/tree/v3.
|
|
4
|
-
* https://github.com/Cognigy/Webchat/tree/v3.
|
|
2
|
+
* webchat.esm.js v3.40.0
|
|
3
|
+
* https://github.com/Cognigy/Webchat/tree/v3.40.0
|
|
4
|
+
* https://github.com/Cognigy/Webchat/tree/v3.40.0/OSS_LICENSES.txt
|
|
5
5
|
*/
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee__ from "react-dom";
|
|
@@ -39302,6 +39302,9 @@ function ChatScroller({
|
|
|
39302
39302
|
userScrolledUp
|
|
39303
39303
|
} = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(outerRef);
|
|
39304
39304
|
|
|
39305
|
+
// Track previous lastInputId to detect when the user sends a new message
|
|
39306
|
+
const prevLastInputId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(lastInputId);
|
|
39307
|
+
|
|
39305
39308
|
// Reset scrolled to bottom state when new user input comes in
|
|
39306
39309
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
|
39307
39310
|
setUserScrolledToBottom(false);
|
|
@@ -39315,8 +39318,21 @@ function ChatScroller({
|
|
|
39315
39318
|
setIsChatLogFocused(false);
|
|
39316
39319
|
};
|
|
39317
39320
|
|
|
39318
|
-
// Scroll to last input or scroll to bottom based on scrollBehavior, only if the user has not scrolled up
|
|
39321
|
+
// Scroll to last input or scroll to bottom based on scrollBehavior, only if the user has not scrolled up.
|
|
39322
|
+
// Exception: always scroll to bottom when the user just sent a new message (e.g. adaptive card click),
|
|
39323
|
+
// even if they had scrolled up before — the user's own message should always be visible.
|
|
39324
|
+
// Introduce a minimal delay so the new message DOM is present before computing scroll height.
|
|
39319
39325
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
|
39326
|
+
const isNewUserMessage = lastInputId !== prevLastInputId.current;
|
|
39327
|
+
prevLastInputId.current = lastInputId;
|
|
39328
|
+
if (isNewUserMessage && outerRef.current) {
|
|
39329
|
+
setTimeout(() => {
|
|
39330
|
+
if (!outerRef.current) return;
|
|
39331
|
+
const scrollOffset = outerRef.current.scrollHeight - outerRef.current.clientHeight;
|
|
39332
|
+
handleScroll(scrollOffset);
|
|
39333
|
+
}, 0);
|
|
39334
|
+
return;
|
|
39335
|
+
}
|
|
39320
39336
|
if (!userScrolledUp && outerRef.current) {
|
|
39321
39337
|
if (scrollBehavior === "alwaysScroll" || userScrolledToBottom) {
|
|
39322
39338
|
const scrollOffset = outerRef.current.scrollHeight - outerRef.current.clientHeight;
|
|
@@ -60709,23 +60725,66 @@ const useSanitize = () => {
|
|
|
60709
60725
|
isSanitizeEnabled
|
|
60710
60726
|
};
|
|
60711
60727
|
};
|
|
60728
|
+
const MAX_SANITIZATION_ITERATIONS = 10;
|
|
60729
|
+
const sanitizeSrcdocContent = (html2, purifyConfig) => {
|
|
60730
|
+
if (!html2.includes("srcdoc")) return html2;
|
|
60731
|
+
if (typeof document === "undefined" || typeof document.createElement !== "function") {
|
|
60732
|
+
return html2;
|
|
60733
|
+
}
|
|
60734
|
+
const container = document.createElement("div");
|
|
60735
|
+
container.innerHTML = html2;
|
|
60736
|
+
const elements = container.querySelectorAll("[srcdoc]");
|
|
60737
|
+
if (elements.length === 0) return html2;
|
|
60738
|
+
for (const el of elements) {
|
|
60739
|
+
const srcdocValue = el.getAttribute("srcdoc");
|
|
60740
|
+
if (srcdocValue) {
|
|
60741
|
+
let sanitized = srcdocValue;
|
|
60742
|
+
let prevSanitized = "";
|
|
60743
|
+
let iter = 0;
|
|
60744
|
+
while (sanitized !== prevSanitized && iter < MAX_SANITIZATION_ITERATIONS) {
|
|
60745
|
+
prevSanitized = sanitized;
|
|
60746
|
+
sanitized = purify.sanitize(sanitized, purifyConfig).toString();
|
|
60747
|
+
iter++;
|
|
60748
|
+
}
|
|
60749
|
+
sanitized = sanitizeSrcdocContent(sanitized, purifyConfig);
|
|
60750
|
+
el.setAttribute("srcdoc", sanitized);
|
|
60751
|
+
}
|
|
60752
|
+
}
|
|
60753
|
+
return container.innerHTML;
|
|
60754
|
+
};
|
|
60712
60755
|
const sanitizeHTMLWithConfig = (text2, customAllowedHtmlTags) => {
|
|
60756
|
+
let currentInput = text2;
|
|
60713
60757
|
purify.addHook("beforeSanitizeElements", node2 => {
|
|
60714
60758
|
if (node2 instanceof HTMLUnknownElement) {
|
|
60715
60759
|
const unClosedTag = `<${node2.tagName.toLowerCase()}>${node2.innerHTML}`;
|
|
60716
60760
|
const closedTag = `<${node2.tagName.toLowerCase()}>${node2.innerHTML}</${node2.tagName.toLowerCase()}>`;
|
|
60717
|
-
node2.replaceWith(unClosedTag ===
|
|
60761
|
+
node2.replaceWith(unClosedTag === currentInput ? unClosedTag : closedTag);
|
|
60718
60762
|
}
|
|
60719
60763
|
});
|
|
60720
60764
|
if (text2?.startsWith("</")) {
|
|
60765
|
+
purify.removeAllHooks();
|
|
60721
60766
|
return text2.replace(/</g, "<").replace(/>/g, ">");
|
|
60722
60767
|
}
|
|
60723
60768
|
const configToUse = customAllowedHtmlTags ? {
|
|
60724
60769
|
...config$2,
|
|
60725
60770
|
ALLOWED_TAGS: customAllowedHtmlTags
|
|
60726
60771
|
} : config$2;
|
|
60727
|
-
|
|
60772
|
+
let result = text2;
|
|
60773
|
+
let previousResult = "";
|
|
60774
|
+
let iterations = 0;
|
|
60775
|
+
while (result !== previousResult && iterations < MAX_SANITIZATION_ITERATIONS) {
|
|
60776
|
+
previousResult = result;
|
|
60777
|
+
currentInput = result;
|
|
60778
|
+
result = purify.sanitize(result, configToUse).toString();
|
|
60779
|
+
iterations++;
|
|
60780
|
+
}
|
|
60728
60781
|
purify.removeAllHooks();
|
|
60782
|
+
if (iterations > 2) {
|
|
60783
|
+
console.warn("sanitizeHTMLWithConfig: multiple DOMPurify iterations required", {
|
|
60784
|
+
iterations
|
|
60785
|
+
});
|
|
60786
|
+
}
|
|
60787
|
+
result = sanitizeSrcdocContent(result, configToUse);
|
|
60729
60788
|
return result;
|
|
60730
60789
|
};
|
|
60731
60790
|
const sanitizeContent = (content2, isSanitizeEnabled, customAllowedHtmlTags) => {
|
|
@@ -84673,7 +84732,10 @@ const Text = props2 => {
|
|
|
84673
84732
|
} = useSanitize();
|
|
84674
84733
|
const text2 = message2?.text;
|
|
84675
84734
|
const source = message2?.source;
|
|
84676
|
-
|
|
84735
|
+
let content2 = props2.content || text2 || "";
|
|
84736
|
+
const collateStreamedOutputs = config2?.settings?.behavior?.collateStreamedOutputs;
|
|
84737
|
+
const shouldTrimLeadingSpaces = !collateStreamedOutputs && (source === "bot" || source === "engagement");
|
|
84738
|
+
content2 = shouldTrimLeadingSpaces ? Array.isArray(content2) ? content2.map((c, index2) => index2 === 0 ? c.trimStart() : c) : content2.trimStart() : content2;
|
|
84677
84739
|
const shouldAnimate = message2?.animationState === "start" || message2?.animationState === "animating" || false;
|
|
84678
84740
|
const renderMarkdown = config2?.settings?.behavior?.renderMarkdown && (source === "bot" || source === "engagement");
|
|
84679
84741
|
const progressiveMessageRendering = !!config2?.settings?.behavior?.progressiveMessageRendering;
|
|
@@ -90545,11 +90607,10 @@ function isNode(node2) {
|
|
|
90545
90607
|
}
|
|
90546
90608
|
function extend$1(...args) {
|
|
90547
90609
|
const to = Object(args[0]);
|
|
90548
|
-
const noExtend = ["__proto__", "constructor", "prototype"];
|
|
90549
90610
|
for (let i = 1; i < args.length; i += 1) {
|
|
90550
90611
|
const nextSource = args[i];
|
|
90551
90612
|
if (nextSource !== void 0 && nextSource !== null && !isNode(nextSource)) {
|
|
90552
|
-
const keysArray = Object.keys(Object(nextSource)).filter(key =>
|
|
90613
|
+
const keysArray = Object.keys(Object(nextSource)).filter(key => key !== "__proto__" && key !== "constructor" && key !== "prototype");
|
|
90553
90614
|
for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {
|
|
90554
90615
|
const nextKey = keysArray[nextIndex];
|
|
90555
90616
|
const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
|
|
@@ -90776,7 +90837,8 @@ function Navigation({
|
|
|
90776
90837
|
});
|
|
90777
90838
|
swiper.navigation = {
|
|
90778
90839
|
nextEl: null,
|
|
90779
|
-
prevEl: null
|
|
90840
|
+
prevEl: null,
|
|
90841
|
+
arrowSvg
|
|
90780
90842
|
};
|
|
90781
90843
|
function getEl(el) {
|
|
90782
90844
|
let res;
|
|
@@ -90955,7 +91017,7 @@ function Navigation({
|
|
|
90955
91017
|
});
|
|
90956
91018
|
}
|
|
90957
91019
|
function classesToSelector(classes2 = "") {
|
|
90958
|
-
return `.${classes2.trim().replace(/([\.:!+\/()[\]])/g, "\\$1").replace(/ /g, ".")}`;
|
|
91020
|
+
return `.${classes2.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g, "\\$1").replace(/ /g, ".")}`;
|
|
90959
91021
|
}
|
|
90960
91022
|
function Pagination({
|
|
90961
91023
|
swiper,
|
|
@@ -91622,7 +91684,8 @@ function A11y({
|
|
|
91622
91684
|
const slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);
|
|
91623
91685
|
if (!slideEl || !swiper.slides.includes(slideEl)) return;
|
|
91624
91686
|
focusTargetSlideEl = slideEl;
|
|
91625
|
-
const
|
|
91687
|
+
const isVirtual = swiper.virtual && swiper.params.virtual.enabled;
|
|
91688
|
+
const isActive = (isVirtual ? parseInt(slideEl.getAttribute("data-swiper-slide-index"), 10) : swiper.slides.indexOf(slideEl)) === swiper.activeIndex;
|
|
91626
91689
|
const isVisible = swiper.params.watchSlidesProgress && swiper.visibleSlides && swiper.visibleSlides.includes(slideEl);
|
|
91627
91690
|
if (isActive || isVisible) return;
|
|
91628
91691
|
if (e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents) return;
|
|
@@ -91635,6 +91698,8 @@ function A11y({
|
|
|
91635
91698
|
if (preventFocusHandler) return;
|
|
91636
91699
|
if (swiper.params.loop) {
|
|
91637
91700
|
swiper.slideToLoop(swiper.getSlideIndexWhenGrid(parseInt(slideEl.getAttribute("data-swiper-slide-index"))), 0);
|
|
91701
|
+
} else if (isVirtual) {
|
|
91702
|
+
swiper.slideTo(swiper.getSlideIndexWhenGrid(parseInt(slideEl.getAttribute("data-swiper-slide-index"), 10)), 0);
|
|
91638
91703
|
} else {
|
|
91639
91704
|
swiper.slideTo(swiper.getSlideIndexWhenGrid(swiper.slides.indexOf(slideEl)), 0);
|
|
91640
91705
|
}
|
|
@@ -91700,7 +91765,6 @@ function A11y({
|
|
|
91700
91765
|
const document2 = getDocument();
|
|
91701
91766
|
document2.addEventListener("visibilitychange", onVisibilityChange);
|
|
91702
91767
|
swiper.el.addEventListener("focus", handleFocus, true);
|
|
91703
|
-
swiper.el.addEventListener("focus", handleFocus, true);
|
|
91704
91768
|
swiper.el.addEventListener("pointerdown", handlePointerDown, true);
|
|
91705
91769
|
swiper.el.addEventListener("pointerup", handlePointerUp, true);
|
|
91706
91770
|
};
|
|
@@ -92154,6 +92218,10 @@ function updateSlides() {
|
|
|
92154
92218
|
setCSSProperty(wrapperEl, "--swiper-centered-offset-before", "");
|
|
92155
92219
|
setCSSProperty(wrapperEl, "--swiper-centered-offset-after", "");
|
|
92156
92220
|
}
|
|
92221
|
+
if (params.cssMode) {
|
|
92222
|
+
setCSSProperty(wrapperEl, "--swiper-slides-offset-before", `${offsetBefore}px`);
|
|
92223
|
+
setCSSProperty(wrapperEl, "--swiper-slides-offset-after", `${offsetAfter}px`);
|
|
92224
|
+
}
|
|
92157
92225
|
const gridEnabled = params.grid && params.grid.rows > 1 && swiper.grid;
|
|
92158
92226
|
if (gridEnabled) {
|
|
92159
92227
|
swiper.grid.initSlides(slides);
|
|
@@ -92260,17 +92328,44 @@ function updateSlides() {
|
|
|
92260
92328
|
swiper.grid.updateWrapperSize(slideSize, snapGrid);
|
|
92261
92329
|
}
|
|
92262
92330
|
if (!params.centeredSlides) {
|
|
92331
|
+
const isFractionalSlidesPerView = params.slidesPerView !== "auto" && params.slidesPerView % 1 !== 0;
|
|
92332
|
+
const shouldSnapToSlideEdge = params.snapToSlideEdge && !params.loop && (params.slidesPerView === "auto" || isFractionalSlidesPerView);
|
|
92333
|
+
let lastAllowedSnapIndex = snapGrid.length;
|
|
92334
|
+
if (shouldSnapToSlideEdge) {
|
|
92335
|
+
let minVisibleSlides;
|
|
92336
|
+
if (params.slidesPerView === "auto") {
|
|
92337
|
+
minVisibleSlides = 1;
|
|
92338
|
+
let accumulatedSize = 0;
|
|
92339
|
+
for (let i = slidesSizesGrid.length - 1; i >= 0; i -= 1) {
|
|
92340
|
+
accumulatedSize += slidesSizesGrid[i] + (i < slidesSizesGrid.length - 1 ? spaceBetween : 0);
|
|
92341
|
+
if (accumulatedSize <= swiperSize) {
|
|
92342
|
+
minVisibleSlides = slidesSizesGrid.length - i;
|
|
92343
|
+
} else {
|
|
92344
|
+
break;
|
|
92345
|
+
}
|
|
92346
|
+
}
|
|
92347
|
+
} else {
|
|
92348
|
+
minVisibleSlides = Math.floor(params.slidesPerView);
|
|
92349
|
+
}
|
|
92350
|
+
lastAllowedSnapIndex = Math.max(slidesLength - minVisibleSlides, 0);
|
|
92351
|
+
}
|
|
92263
92352
|
const newSlidesGrid = [];
|
|
92264
92353
|
for (let i = 0; i < snapGrid.length; i += 1) {
|
|
92265
92354
|
let slidesGridItem = snapGrid[i];
|
|
92266
92355
|
if (params.roundLengths) slidesGridItem = Math.floor(slidesGridItem);
|
|
92267
|
-
if (
|
|
92356
|
+
if (shouldSnapToSlideEdge) {
|
|
92357
|
+
if (i <= lastAllowedSnapIndex) {
|
|
92358
|
+
newSlidesGrid.push(slidesGridItem);
|
|
92359
|
+
}
|
|
92360
|
+
} else if (snapGrid[i] <= swiper.virtualSize - swiperSize) {
|
|
92268
92361
|
newSlidesGrid.push(slidesGridItem);
|
|
92269
92362
|
}
|
|
92270
92363
|
}
|
|
92271
92364
|
snapGrid = newSlidesGrid;
|
|
92272
92365
|
if (Math.floor(swiper.virtualSize - swiperSize) - Math.floor(snapGrid[snapGrid.length - 1]) > 1) {
|
|
92273
|
-
|
|
92366
|
+
if (!shouldSnapToSlideEdge) {
|
|
92367
|
+
snapGrid.push(swiper.virtualSize - swiperSize);
|
|
92368
|
+
}
|
|
92274
92369
|
}
|
|
92275
92370
|
}
|
|
92276
92371
|
if (isVirtual && params.loop) {
|
|
@@ -92322,9 +92417,8 @@ function updateSlides() {
|
|
|
92322
92417
|
allSlidesSize += slideSizeValue + (spaceBetween || 0);
|
|
92323
92418
|
});
|
|
92324
92419
|
allSlidesSize -= spaceBetween;
|
|
92325
|
-
|
|
92326
|
-
|
|
92327
|
-
const allSlidesOffset = (swiperSize - allSlidesSize - offsetSize) / 2;
|
|
92420
|
+
if (allSlidesSize < swiperSize) {
|
|
92421
|
+
const allSlidesOffset = (swiperSize - allSlidesSize) / 2;
|
|
92328
92422
|
snapGrid.forEach((snap, snapIndex) => {
|
|
92329
92423
|
snapGrid[snapIndex] = snap - allSlidesOffset;
|
|
92330
92424
|
});
|
|
@@ -92602,12 +92696,12 @@ const processLazyPreloader = (swiper, imageEl) => {
|
|
|
92602
92696
|
requestAnimationFrame(() => {
|
|
92603
92697
|
if (slideEl.shadowRoot) {
|
|
92604
92698
|
lazyEl = slideEl.shadowRoot.querySelector(`.${swiper.params.lazyPreloaderClass}`);
|
|
92605
|
-
if (lazyEl) lazyEl.remove();
|
|
92699
|
+
if (lazyEl && !lazyEl.lazyPreloaderManaged) lazyEl.remove();
|
|
92606
92700
|
}
|
|
92607
92701
|
});
|
|
92608
92702
|
}
|
|
92609
92703
|
}
|
|
92610
|
-
if (lazyEl) lazyEl.remove();
|
|
92704
|
+
if (lazyEl && !lazyEl.lazyPreloaderManaged) lazyEl.remove();
|
|
92611
92705
|
}
|
|
92612
92706
|
};
|
|
92613
92707
|
const unlazy = (swiper, index2) => {
|
|
@@ -92718,8 +92812,12 @@ function updateActiveIndex(newActiveIndex) {
|
|
|
92718
92812
|
}
|
|
92719
92813
|
const gridEnabled = swiper.grid && params.grid && params.grid.rows > 1;
|
|
92720
92814
|
let realIndex;
|
|
92721
|
-
if (swiper.virtual && params.virtual.enabled
|
|
92722
|
-
|
|
92815
|
+
if (swiper.virtual && params.virtual.enabled) {
|
|
92816
|
+
if (params.loop) {
|
|
92817
|
+
realIndex = getVirtualRealIndex(activeIndex);
|
|
92818
|
+
} else {
|
|
92819
|
+
realIndex = activeIndex;
|
|
92820
|
+
}
|
|
92723
92821
|
} else if (gridEnabled) {
|
|
92724
92822
|
const firstSlideInColumn = swiper.slides.find(slideEl => slideEl.column === activeIndex);
|
|
92725
92823
|
let activeSlideIndex = parseInt(firstSlideInColumn.getAttribute("data-swiper-slide-index"), 10);
|
|
@@ -94726,6 +94824,7 @@ var defaults$1 = {
|
|
|
94726
94824
|
// in px
|
|
94727
94825
|
normalizeSlideIndex: true,
|
|
94728
94826
|
centerInsufficientSlides: false,
|
|
94827
|
+
snapToSlideEdge: false,
|
|
94729
94828
|
// Disable swiper and hide navigation when container not overflow
|
|
94730
94829
|
watchOverflow: true,
|
|
94731
94830
|
// Round length
|
|
@@ -94874,7 +94973,11 @@ let Swiper$1 = class Swiper {
|
|
|
94874
94973
|
swiper.eventsAnyListeners = [];
|
|
94875
94974
|
swiper.modules = [...swiper.__modules__];
|
|
94876
94975
|
if (params.modules && Array.isArray(params.modules)) {
|
|
94877
|
-
|
|
94976
|
+
params.modules.forEach(mod => {
|
|
94977
|
+
if (typeof mod === "function" && swiper.modules.indexOf(mod) < 0) {
|
|
94978
|
+
swiper.modules.push(mod);
|
|
94979
|
+
}
|
|
94980
|
+
});
|
|
94878
94981
|
}
|
|
94879
94982
|
const allModulesParams = {};
|
|
94880
94983
|
swiper.modules.forEach(mod => {
|
|
@@ -95383,7 +95486,7 @@ Object.keys(prototypes).forEach(prototypeGroup => {
|
|
|
95383
95486
|
});
|
|
95384
95487
|
});
|
|
95385
95488
|
Swiper$1.use([Resize, Observer]);
|
|
95386
|
-
const paramsList = ["eventsPrefix", "injectStyles", "injectStylesUrls", "modules", "init", "_direction", "oneWayMovement", "swiperElementNodeName", "touchEventsTarget", "initialSlide", "_speed", "cssMode", "updateOnWindowResize", "resizeObserver", "nested", "focusableElements", "_enabled", "_width", "_height", "preventInteractionOnTransition", "userAgent", "url", "_edgeSwipeDetection", "_edgeSwipeThreshold", "_freeMode", "_autoHeight", "setWrapperSize", "virtualTranslate", "_effect", "breakpoints", "breakpointsBase", "_spaceBetween", "_slidesPerView", "maxBackfaceHiddenSlides", "_grid", "_slidesPerGroup", "_slidesPerGroupSkip", "_slidesPerGroupAuto", "_centeredSlides", "_centeredSlidesBounds", "_slidesOffsetBefore", "_slidesOffsetAfter", "normalizeSlideIndex", "_centerInsufficientSlides", "_watchOverflow", "roundLengths", "touchRatio", "touchAngle", "simulateTouch", "_shortSwipes", "_longSwipes", "longSwipesRatio", "longSwipesMs", "_followFinger", "allowTouchMove", "_threshold", "touchMoveStopPropagation", "touchStartPreventDefault", "touchStartForcePreventDefault", "touchReleaseOnEdges", "uniqueNavElements", "_resistance", "_resistanceRatio", "_watchSlidesProgress", "_grabCursor", "preventClicks", "preventClicksPropagation", "_slideToClickedSlide", "_loop", "loopAdditionalSlides", "loopAddBlankSlides", "loopPreventsSliding", "_rewind", "_allowSlidePrev", "_allowSlideNext", "_swipeHandler", "_noSwiping", "noSwipingClass", "noSwipingSelector", "passiveListeners", "containerModifierClass", "slideClass", "slideActiveClass", "slideVisibleClass", "slideFullyVisibleClass", "slideNextClass", "slidePrevClass", "slideBlankClass", "wrapperClass", "lazyPreloaderClass", "lazyPreloadPrevNext", "runCallbacksOnInit", "observer", "observeParents", "observeSlideChildren",
|
|
95489
|
+
const paramsList = ["eventsPrefix", "injectStyles", "injectStylesUrls", "modules", "init", "_direction", "oneWayMovement", "swiperElementNodeName", "touchEventsTarget", "initialSlide", "_speed", "cssMode", "updateOnWindowResize", "resizeObserver", "nested", "focusableElements", "_enabled", "_width", "_height", "preventInteractionOnTransition", "userAgent", "url", "_edgeSwipeDetection", "_edgeSwipeThreshold", "_freeMode", "_autoHeight", "setWrapperSize", "virtualTranslate", "_effect", "breakpoints", "breakpointsBase", "_spaceBetween", "_slidesPerView", "maxBackfaceHiddenSlides", "_grid", "_slidesPerGroup", "_slidesPerGroupSkip", "_slidesPerGroupAuto", "_centeredSlides", "_centeredSlidesBounds", "_slidesOffsetBefore", "_slidesOffsetAfter", "normalizeSlideIndex", "_centerInsufficientSlides", "_snapToSlideEdge", "_watchOverflow", "roundLengths", "touchRatio", "touchAngle", "simulateTouch", "_shortSwipes", "_longSwipes", "longSwipesRatio", "longSwipesMs", "_followFinger", "allowTouchMove", "_threshold", "touchMoveStopPropagation", "touchStartPreventDefault", "touchStartForcePreventDefault", "touchReleaseOnEdges", "uniqueNavElements", "_resistance", "_resistanceRatio", "_watchSlidesProgress", "_grabCursor", "preventClicks", "preventClicksPropagation", "_slideToClickedSlide", "_loop", "loopAdditionalSlides", "loopAddBlankSlides", "loopPreventsSliding", "_rewind", "_allowSlidePrev", "_allowSlideNext", "_swipeHandler", "_noSwiping", "noSwipingClass", "noSwipingSelector", "passiveListeners", "containerModifierClass", "slideClass", "slideActiveClass", "slideVisibleClass", "slideFullyVisibleClass", "slideNextClass", "slidePrevClass", "slideBlankClass", "wrapperClass", "lazyPreloaderClass", "lazyPreloadPrevNext", "runCallbacksOnInit", "observer", "observeParents", "observeSlideChildren",
|
|
95387
95490
|
// modules
|
|
95388
95491
|
"a11y", "_autoplay", "_controller", "coverflowEffect", "cubeEffect", "fadeEffect", "flipEffect", "creativeEffect", "cardsEffect", "hashNavigation", "history", "keyboard", "mousewheel", "_navigation", "_pagination", "parallax", "_scrollbar", "_thumbs", "virtual", "zoom", "control"];
|
|
95389
95492
|
function isObject(o) {
|
|
@@ -95558,14 +95661,14 @@ function updateSwiper({
|
|
|
95558
95661
|
if (!nextEl || typeof nextEl === "string") {
|
|
95559
95662
|
nextEl = document.createElement("div");
|
|
95560
95663
|
nextEl.classList.add("swiper-button-next");
|
|
95561
|
-
setInnerHTML(nextEl, swiper.
|
|
95664
|
+
setInnerHTML(nextEl, swiper.navigation.arrowSvg);
|
|
95562
95665
|
nextEl.part.add("button-next");
|
|
95563
95666
|
swiper.el.appendChild(nextEl);
|
|
95564
95667
|
}
|
|
95565
95668
|
if (!prevEl || typeof prevEl === "string") {
|
|
95566
95669
|
prevEl = document.createElement("div");
|
|
95567
95670
|
prevEl.classList.add("swiper-button-prev");
|
|
95568
|
-
setInnerHTML(prevEl, swiper.
|
|
95671
|
+
setInnerHTML(prevEl, swiper.navigation.arrowSvg);
|
|
95569
95672
|
prevEl.part.add("button-prev");
|
|
95570
95673
|
swiper.el.appendChild(prevEl);
|
|
95571
95674
|
}
|
|
@@ -96044,11 +96147,17 @@ const SwiperSlide = /* @__PURE__ */(0,react__WEBPACK_IMPORTED_MODULE_0__.forward
|
|
|
96044
96147
|
className: "swiper-zoom-container",
|
|
96045
96148
|
"data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
|
|
96046
96149
|
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__["default"].createElement("div", {
|
|
96047
|
-
className: "swiper-lazy-preloader"
|
|
96150
|
+
className: "swiper-lazy-preloader",
|
|
96151
|
+
ref: node2 => {
|
|
96152
|
+
if (node2) node2.lazyPreloaderManaged = true;
|
|
96153
|
+
}
|
|
96048
96154
|
}))), !zoom && /* @__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__["default"].createElement(SwiperSlideContext.Provider, {
|
|
96049
96155
|
value: slideData
|
|
96050
96156
|
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__["default"].createElement("div", {
|
|
96051
|
-
className: "swiper-lazy-preloader"
|
|
96157
|
+
className: "swiper-lazy-preloader",
|
|
96158
|
+
ref: node2 => {
|
|
96159
|
+
if (node2) node2.lazyPreloaderManaged = true;
|
|
96160
|
+
}
|
|
96052
96161
|
})));
|
|
96053
96162
|
});
|
|
96054
96163
|
SwiperSlide.displayName = "SwiperSlide";
|
|
@@ -135924,6 +136033,16 @@ const BIGINT = 8;
|
|
|
135924
136033
|
|
|
135925
136034
|
|
|
135926
136035
|
|
|
136036
|
+
|
|
136037
|
+
/**
|
|
136038
|
+
* Known adapters mapping.
|
|
136039
|
+
* Provides environment-specific adapters for Axios:
|
|
136040
|
+
* - `http` for Node.js
|
|
136041
|
+
* - `xhr` for browsers
|
|
136042
|
+
* - `fetch` for fetch API-based requests
|
|
136043
|
+
*
|
|
136044
|
+
* @type {Object<string, Function|Object>}
|
|
136045
|
+
*/
|
|
135927
136046
|
const knownAdapters = {
|
|
135928
136047
|
http: _http_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,
|
|
135929
136048
|
xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
|
|
@@ -135931,6 +136050,8 @@ const knownAdapters = {
|
|
|
135931
136050
|
get: _fetch_js__WEBPACK_IMPORTED_MODULE_3__/* .getFetch */ .J
|
|
135932
136051
|
}
|
|
135933
136052
|
};
|
|
136053
|
+
|
|
136054
|
+
// Assign adapter names for easier debugging and identification
|
|
135934
136055
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.forEach(knownAdapters, (fn, value) => {
|
|
135935
136056
|
if (fn) {
|
|
135936
136057
|
try {
|
|
@@ -135945,39 +136066,77 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.forEach(knownAdapters
|
|
|
135945
136066
|
});
|
|
135946
136067
|
}
|
|
135947
136068
|
});
|
|
136069
|
+
|
|
136070
|
+
/**
|
|
136071
|
+
* Render a rejection reason string for unknown or unsupported adapters
|
|
136072
|
+
*
|
|
136073
|
+
* @param {string} reason
|
|
136074
|
+
* @returns {string}
|
|
136075
|
+
*/
|
|
135948
136076
|
const renderReason = reason => `- ${reason}`;
|
|
136077
|
+
|
|
136078
|
+
/**
|
|
136079
|
+
* Check if the adapter is resolved (function, null, or false)
|
|
136080
|
+
*
|
|
136081
|
+
* @param {Function|null|false} adapter
|
|
136082
|
+
* @returns {boolean}
|
|
136083
|
+
*/
|
|
135949
136084
|
const isResolvedHandle = adapter => _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isFunction(adapter) || adapter === null || adapter === false;
|
|
135950
|
-
|
|
135951
|
-
|
|
135952
|
-
|
|
135953
|
-
|
|
135954
|
-
|
|
135955
|
-
|
|
135956
|
-
|
|
135957
|
-
|
|
135958
|
-
|
|
135959
|
-
|
|
135960
|
-
|
|
135961
|
-
|
|
135962
|
-
|
|
135963
|
-
|
|
135964
|
-
|
|
135965
|
-
|
|
135966
|
-
|
|
135967
|
-
|
|
135968
|
-
|
|
135969
|
-
|
|
135970
|
-
|
|
135971
|
-
|
|
135972
|
-
|
|
135973
|
-
|
|
135974
|
-
|
|
135975
|
-
|
|
135976
|
-
|
|
135977
|
-
|
|
136085
|
+
|
|
136086
|
+
/**
|
|
136087
|
+
* Get the first suitable adapter from the provided list.
|
|
136088
|
+
* Tries each adapter in order until a supported one is found.
|
|
136089
|
+
* Throws an AxiosError if no adapter is suitable.
|
|
136090
|
+
*
|
|
136091
|
+
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
136092
|
+
* @param {Object} config - Axios request configuration
|
|
136093
|
+
* @throws {AxiosError} If no suitable adapter is available
|
|
136094
|
+
* @returns {Function} The resolved adapter function
|
|
136095
|
+
*/
|
|
136096
|
+
function getAdapter(adapters, config) {
|
|
136097
|
+
adapters = _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isArray(adapters) ? adapters : [adapters];
|
|
136098
|
+
const {
|
|
136099
|
+
length
|
|
136100
|
+
} = adapters;
|
|
136101
|
+
let nameOrAdapter;
|
|
136102
|
+
let adapter;
|
|
136103
|
+
const rejectedReasons = {};
|
|
136104
|
+
for (let i = 0; i < length; i++) {
|
|
136105
|
+
nameOrAdapter = adapters[i];
|
|
136106
|
+
let id;
|
|
136107
|
+
adapter = nameOrAdapter;
|
|
136108
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
136109
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
136110
|
+
if (adapter === undefined) {
|
|
136111
|
+
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A(`Unknown adapter '${id}'`);
|
|
136112
|
+
}
|
|
136113
|
+
}
|
|
136114
|
+
if (adapter && (_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
136115
|
+
break;
|
|
135978
136116
|
}
|
|
135979
|
-
|
|
135980
|
-
}
|
|
136117
|
+
rejectedReasons[id || '#' + i] = adapter;
|
|
136118
|
+
}
|
|
136119
|
+
if (!adapter) {
|
|
136120
|
+
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? 'is not supported by the environment' : 'is not available in the build'));
|
|
136121
|
+
let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
136122
|
+
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A(`There is no suitable adapter to dispatch the request ` + s, 'ERR_NOT_SUPPORT');
|
|
136123
|
+
}
|
|
136124
|
+
return adapter;
|
|
136125
|
+
}
|
|
136126
|
+
|
|
136127
|
+
/**
|
|
136128
|
+
* Exports Axios adapters and utility to resolve an adapter
|
|
136129
|
+
*/
|
|
136130
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
136131
|
+
/**
|
|
136132
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
136133
|
+
* @type {Function}
|
|
136134
|
+
*/
|
|
136135
|
+
getAdapter,
|
|
136136
|
+
/**
|
|
136137
|
+
* Exposes all known adapters
|
|
136138
|
+
* @type {Object<string, Function|Object>}
|
|
136139
|
+
*/
|
|
135981
136140
|
adapters: knownAdapters
|
|
135982
136141
|
});
|
|
135983
136142
|
|
|
@@ -136187,17 +136346,17 @@ const factory = env => {
|
|
|
136187
136346
|
} catch (err) {
|
|
136188
136347
|
unsubscribe && unsubscribe();
|
|
136189
136348
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
136190
|
-
throw Object.assign(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.ERR_NETWORK, config, request), {
|
|
136349
|
+
throw Object.assign(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.ERR_NETWORK, config, request, err && err.response), {
|
|
136191
136350
|
cause: err.cause || err
|
|
136192
136351
|
});
|
|
136193
136352
|
}
|
|
136194
|
-
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.from(err, err && err.code, config, request);
|
|
136353
|
+
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.from(err, err && err.code, config, request, err && err.response);
|
|
136195
136354
|
}
|
|
136196
136355
|
};
|
|
136197
136356
|
};
|
|
136198
136357
|
const seedCache = new Map();
|
|
136199
136358
|
const getFetch = config => {
|
|
136200
|
-
let env = config
|
|
136359
|
+
let env = config && config.env || {};
|
|
136201
136360
|
const {
|
|
136202
136361
|
fetch,
|
|
136203
136362
|
Request,
|
|
@@ -136669,29 +136828,25 @@ class CancelToken {
|
|
|
136669
136828
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
136670
136829
|
/* harmony export */ });
|
|
136671
136830
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7996);
|
|
136672
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21285);
|
|
136673
|
-
|
|
136674
|
-
|
|
136675
136831
|
|
|
136676
136832
|
|
|
136677
136833
|
|
|
136678
|
-
|
|
136679
|
-
|
|
136680
|
-
|
|
136681
|
-
|
|
136682
|
-
|
|
136683
|
-
|
|
136684
|
-
|
|
136685
|
-
|
|
136686
|
-
|
|
136687
|
-
|
|
136688
|
-
|
|
136689
|
-
|
|
136690
|
-
|
|
136834
|
+
class CanceledError extends _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A {
|
|
136835
|
+
/**
|
|
136836
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
136837
|
+
*
|
|
136838
|
+
* @param {string=} message The message.
|
|
136839
|
+
* @param {Object=} config The config.
|
|
136840
|
+
* @param {Object=} request The request.
|
|
136841
|
+
*
|
|
136842
|
+
* @returns {CanceledError} The created error.
|
|
136843
|
+
*/
|
|
136844
|
+
constructor(message, config, request) {
|
|
136845
|
+
super(message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.ERR_CANCELED, config, request);
|
|
136846
|
+
this.name = 'CanceledError';
|
|
136847
|
+
this.__CANCEL__ = true;
|
|
136848
|
+
}
|
|
136691
136849
|
}
|
|
136692
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A, {
|
|
136693
|
-
__CANCEL__: true
|
|
136694
|
-
});
|
|
136695
136850
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanceledError);
|
|
136696
136851
|
|
|
136697
136852
|
/***/ },
|
|
@@ -136724,6 +136879,8 @@ function isCancel(value) {
|
|
|
136724
136879
|
/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1216);
|
|
136725
136880
|
/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(83092);
|
|
136726
136881
|
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88580);
|
|
136882
|
+
/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(96458);
|
|
136883
|
+
|
|
136727
136884
|
|
|
136728
136885
|
|
|
136729
136886
|
|
|
@@ -136803,7 +136960,8 @@ class Axios {
|
|
|
136803
136960
|
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A.assertOptions(transitional, {
|
|
136804
136961
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
136805
136962
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
136806
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
136963
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
136964
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
136807
136965
|
}, false);
|
|
136808
136966
|
}
|
|
136809
136967
|
if (paramsSerializer != null) {
|
|
@@ -136850,7 +137008,13 @@ class Axios {
|
|
|
136850
137008
|
return;
|
|
136851
137009
|
}
|
|
136852
137010
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
136853
|
-
|
|
137011
|
+
const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A;
|
|
137012
|
+
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
|
137013
|
+
if (legacyInterceptorReqResOrdering) {
|
|
137014
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
137015
|
+
} else {
|
|
137016
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
137017
|
+
}
|
|
136854
137018
|
});
|
|
136855
137019
|
const responseInterceptorChain = [];
|
|
136856
137020
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -136944,37 +137108,39 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.forEach(['post', 'put
|
|
|
136944
137108
|
|
|
136945
137109
|
|
|
136946
137110
|
|
|
136947
|
-
|
|
136948
|
-
|
|
136949
|
-
|
|
136950
|
-
|
|
136951
|
-
|
|
136952
|
-
|
|
136953
|
-
|
|
136954
|
-
* @param {Object} [request] The request.
|
|
136955
|
-
* @param {Object} [response] The response.
|
|
136956
|
-
*
|
|
136957
|
-
* @returns {Error} The created error.
|
|
136958
|
-
*/
|
|
136959
|
-
function AxiosError(message, code, config, request, response) {
|
|
136960
|
-
Error.call(this);
|
|
136961
|
-
if (Error.captureStackTrace) {
|
|
136962
|
-
Error.captureStackTrace(this, this.constructor);
|
|
136963
|
-
} else {
|
|
136964
|
-
this.stack = new Error().stack;
|
|
137111
|
+
class AxiosError extends Error {
|
|
137112
|
+
static from(error, code, config, request, response, customProps) {
|
|
137113
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
137114
|
+
axiosError.cause = error;
|
|
137115
|
+
axiosError.name = error.name;
|
|
137116
|
+
customProps && Object.assign(axiosError, customProps);
|
|
137117
|
+
return axiosError;
|
|
136965
137118
|
}
|
|
136966
|
-
|
|
136967
|
-
|
|
136968
|
-
|
|
136969
|
-
|
|
136970
|
-
|
|
136971
|
-
|
|
136972
|
-
|
|
136973
|
-
|
|
137119
|
+
|
|
137120
|
+
/**
|
|
137121
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
137122
|
+
*
|
|
137123
|
+
* @param {string} message The error message.
|
|
137124
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
137125
|
+
* @param {Object} [config] The config.
|
|
137126
|
+
* @param {Object} [request] The request.
|
|
137127
|
+
* @param {Object} [response] The response.
|
|
137128
|
+
*
|
|
137129
|
+
* @returns {Error} The created error.
|
|
137130
|
+
*/
|
|
137131
|
+
constructor(message, code, config, request, response) {
|
|
137132
|
+
super(message);
|
|
137133
|
+
this.name = 'AxiosError';
|
|
137134
|
+
this.isAxiosError = true;
|
|
137135
|
+
code && (this.code = code);
|
|
137136
|
+
config && (this.config = config);
|
|
137137
|
+
request && (this.request = request);
|
|
137138
|
+
if (response) {
|
|
137139
|
+
this.response = response;
|
|
137140
|
+
this.status = response.status;
|
|
137141
|
+
}
|
|
136974
137142
|
}
|
|
136975
|
-
|
|
136976
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.inherits(AxiosError, Error, {
|
|
136977
|
-
toJSON: function toJSON() {
|
|
137143
|
+
toJSON() {
|
|
136978
137144
|
return {
|
|
136979
137145
|
// Standard
|
|
136980
137146
|
message: this.message,
|
|
@@ -136993,46 +137159,21 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.inherits(AxiosError,
|
|
|
136993
137159
|
status: this.status
|
|
136994
137160
|
};
|
|
136995
137161
|
}
|
|
136996
|
-
}
|
|
136997
|
-
const prototype = AxiosError.prototype;
|
|
136998
|
-
const descriptors = {};
|
|
136999
|
-
['ERR_BAD_OPTION_VALUE', 'ERR_BAD_OPTION', 'ECONNABORTED', 'ETIMEDOUT', 'ERR_NETWORK', 'ERR_FR_TOO_MANY_REDIRECTS', 'ERR_DEPRECATED', 'ERR_BAD_RESPONSE', 'ERR_BAD_REQUEST', 'ERR_CANCELED', 'ERR_NOT_SUPPORT', 'ERR_INVALID_URL'
|
|
137000
|
-
// eslint-disable-next-line func-names
|
|
137001
|
-
].forEach(code => {
|
|
137002
|
-
descriptors[code] = {
|
|
137003
|
-
value: code
|
|
137004
|
-
};
|
|
137005
|
-
});
|
|
137006
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
137007
|
-
Object.defineProperty(prototype, 'isAxiosError', {
|
|
137008
|
-
value: true
|
|
137009
|
-
});
|
|
137010
|
-
|
|
137011
|
-
// eslint-disable-next-line func-names
|
|
137012
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
137013
|
-
const axiosError = Object.create(prototype);
|
|
137014
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.toFlatObject(error, axiosError, function filter(obj) {
|
|
137015
|
-
return obj !== Error.prototype;
|
|
137016
|
-
}, prop => {
|
|
137017
|
-
return prop !== 'isAxiosError';
|
|
137018
|
-
});
|
|
137019
|
-
const msg = error && error.message ? error.message : 'Error';
|
|
137020
|
-
|
|
137021
|
-
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
137022
|
-
const errCode = code == null && error ? error.code : code;
|
|
137023
|
-
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
137162
|
+
}
|
|
137024
137163
|
|
|
137025
|
-
|
|
137026
|
-
|
|
137027
|
-
|
|
137028
|
-
|
|
137029
|
-
|
|
137030
|
-
|
|
137031
|
-
|
|
137032
|
-
|
|
137033
|
-
|
|
137034
|
-
|
|
137035
|
-
|
|
137164
|
+
// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
137165
|
+
AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
137166
|
+
AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
137167
|
+
AxiosError.ECONNABORTED = 'ECONNABORTED';
|
|
137168
|
+
AxiosError.ETIMEDOUT = 'ETIMEDOUT';
|
|
137169
|
+
AxiosError.ERR_NETWORK = 'ERR_NETWORK';
|
|
137170
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
137171
|
+
AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
137172
|
+
AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
137173
|
+
AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
137174
|
+
AxiosError.ERR_CANCELED = 'ERR_CANCELED';
|
|
137175
|
+
AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
137176
|
+
AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
137036
137177
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosError);
|
|
137037
137178
|
|
|
137038
137179
|
/***/ },
|
|
@@ -137305,6 +137446,7 @@ class InterceptorManager {
|
|
|
137305
137446
|
*
|
|
137306
137447
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
137307
137448
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
137449
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
137308
137450
|
*
|
|
137309
137451
|
* @return {Number} An ID used to remove interceptor later
|
|
137310
137452
|
*/
|
|
@@ -137323,7 +137465,7 @@ class InterceptorManager {
|
|
|
137323
137465
|
*
|
|
137324
137466
|
* @param {Number} id The ID that was returned by `use`
|
|
137325
137467
|
*
|
|
137326
|
-
* @returns {
|
|
137468
|
+
* @returns {void}
|
|
137327
137469
|
*/
|
|
137328
137470
|
eject(id) {
|
|
137329
137471
|
if (this.handlers[id]) {
|
|
@@ -137515,8 +137657,6 @@ function mergeConfig(config1, config2) {
|
|
|
137515
137657
|
}
|
|
137516
137658
|
return source;
|
|
137517
137659
|
}
|
|
137518
|
-
|
|
137519
|
-
// eslint-disable-next-line consistent-return
|
|
137520
137660
|
function mergeDeepProperties(a, b, prop, caseless) {
|
|
137521
137661
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isUndefined(b)) {
|
|
137522
137662
|
return getMergedValue(a, b, prop, caseless);
|
|
@@ -137584,7 +137724,8 @@ function mergeConfig(config1, config2) {
|
|
|
137584
137724
|
...config1,
|
|
137585
137725
|
...config2
|
|
137586
137726
|
}), function computeConfigValue(prop) {
|
|
137587
|
-
|
|
137727
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
137728
|
+
const merge = _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
137588
137729
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
137589
137730
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
137590
137731
|
});
|
|
@@ -137813,7 +137954,8 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.forEach(['delete', 'g
|
|
|
137813
137954
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
137814
137955
|
silentJSONParsing: true,
|
|
137815
137956
|
forcedJSONParsing: true,
|
|
137816
|
-
clarifyTimeoutError: false
|
|
137957
|
+
clarifyTimeoutError: false,
|
|
137958
|
+
legacyInterceptorReqResOrdering: true
|
|
137817
137959
|
});
|
|
137818
137960
|
|
|
137819
137961
|
/***/ },
|
|
@@ -137824,7 +137966,7 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.forEach(['delete', 'g
|
|
|
137824
137966
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
137825
137967
|
/* harmony export */ x: () => (/* binding */ VERSION)
|
|
137826
137968
|
/* harmony export */ });
|
|
137827
|
-
const VERSION = "1.
|
|
137969
|
+
const VERSION = "1.13.5";
|
|
137828
137970
|
|
|
137829
137971
|
/***/ },
|
|
137830
137972
|
|
|
@@ -137959,7 +138101,13 @@ const HttpStatusCode = {
|
|
|
137959
138101
|
InsufficientStorage: 507,
|
|
137960
138102
|
LoopDetected: 508,
|
|
137961
138103
|
NotExtended: 510,
|
|
137962
|
-
NetworkAuthenticationRequired: 511
|
|
138104
|
+
NetworkAuthenticationRequired: 511,
|
|
138105
|
+
WebServerIsDown: 521,
|
|
138106
|
+
ConnectionTimedOut: 522,
|
|
138107
|
+
OriginIsUnreachable: 523,
|
|
138108
|
+
TimeoutOccurred: 524,
|
|
138109
|
+
SslHandshakeFailed: 525,
|
|
138110
|
+
InvalidSslCertificate: 526
|
|
137963
138111
|
};
|
|
137964
138112
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
137965
138113
|
HttpStatusCode[value] = key;
|
|
@@ -137976,6 +138124,13 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
137976
138124
|
/* harmony export */ });
|
|
137977
138125
|
|
|
137978
138126
|
|
|
138127
|
+
/**
|
|
138128
|
+
* Create a bound version of a function with a specified `this` context
|
|
138129
|
+
*
|
|
138130
|
+
* @param {Function} fn - The function to bind
|
|
138131
|
+
* @param {*} thisArg - The value to be passed as the `this` parameter
|
|
138132
|
+
* @returns {Function} A new function that will call the original function with the specified `this` context
|
|
138133
|
+
*/
|
|
137979
138134
|
function bind(fn, thisArg) {
|
|
137980
138135
|
return function wrap() {
|
|
137981
138136
|
return fn.apply(thisArg, arguments);
|
|
@@ -138019,22 +138174,19 @@ function encode(val) {
|
|
|
138019
138174
|
* @returns {string} The formatted url
|
|
138020
138175
|
*/
|
|
138021
138176
|
function buildURL(url, params, options) {
|
|
138022
|
-
/*eslint no-param-reassign:0*/
|
|
138023
138177
|
if (!params) {
|
|
138024
138178
|
return url;
|
|
138025
138179
|
}
|
|
138026
138180
|
const _encode = options && options.encode || encode;
|
|
138027
|
-
|
|
138028
|
-
options
|
|
138029
|
-
|
|
138030
|
-
|
|
138031
|
-
}
|
|
138032
|
-
const serializeFn = options && options.serialize;
|
|
138181
|
+
const _options = _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isFunction(options) ? {
|
|
138182
|
+
serialize: options
|
|
138183
|
+
} : options;
|
|
138184
|
+
const serializeFn = _options && _options.serialize;
|
|
138033
138185
|
let serializedParams;
|
|
138034
138186
|
if (serializeFn) {
|
|
138035
|
-
serializedParams = serializeFn(params,
|
|
138187
|
+
serializedParams = serializeFn(params, _options);
|
|
138036
138188
|
} else {
|
|
138037
|
-
serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isURLSearchParams(params) ? params.toString() : new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A(params,
|
|
138189
|
+
serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isURLSearchParams(params) ? params.toString() : new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A(params, _options).toString(_encode);
|
|
138038
138190
|
}
|
|
138039
138191
|
if (serializedParams) {
|
|
138040
138192
|
const hashmarkIndex = url.indexOf("#");
|
|
@@ -138099,7 +138251,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
138099
138251
|
};
|
|
138100
138252
|
let timer = timeout && setTimeout(() => {
|
|
138101
138253
|
timer = null;
|
|
138102
|
-
onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A(`timeout ${timeout}
|
|
138254
|
+
onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A(`timeout of ${timeout}ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.ETIMEDOUT));
|
|
138103
138255
|
}, timeout);
|
|
138104
138256
|
const unsubscribe = () => {
|
|
138105
138257
|
if (signals) {
|
|
@@ -138136,20 +138288,33 @@ const composeSignals = (signals, timeout) => {
|
|
|
138136
138288
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.hasStandardBrowserEnv ?
|
|
138137
138289
|
// Standard browser envs support document.cookie
|
|
138138
138290
|
{
|
|
138139
|
-
write(name, value, expires, path, domain, secure) {
|
|
138140
|
-
|
|
138141
|
-
|
|
138142
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.
|
|
138143
|
-
|
|
138144
|
-
|
|
138291
|
+
write(name, value, expires, path, domain, secure, sameSite) {
|
|
138292
|
+
if (typeof document === 'undefined') return;
|
|
138293
|
+
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
138294
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isNumber(expires)) {
|
|
138295
|
+
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
138296
|
+
}
|
|
138297
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isString(path)) {
|
|
138298
|
+
cookie.push(`path=${path}`);
|
|
138299
|
+
}
|
|
138300
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isString(domain)) {
|
|
138301
|
+
cookie.push(`domain=${domain}`);
|
|
138302
|
+
}
|
|
138303
|
+
if (secure === true) {
|
|
138304
|
+
cookie.push('secure');
|
|
138305
|
+
}
|
|
138306
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.isString(sameSite)) {
|
|
138307
|
+
cookie.push(`SameSite=${sameSite}`);
|
|
138308
|
+
}
|
|
138145
138309
|
document.cookie = cookie.join('; ');
|
|
138146
138310
|
},
|
|
138147
138311
|
read(name) {
|
|
138148
|
-
|
|
138149
|
-
|
|
138312
|
+
if (typeof document === 'undefined') return null;
|
|
138313
|
+
const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
|
|
138314
|
+
return match ? decodeURIComponent(match[1]) : null;
|
|
138150
138315
|
},
|
|
138151
138316
|
remove(name) {
|
|
138152
|
-
this.write(name, '', Date.now() - 86400000);
|
|
138317
|
+
this.write(name, '', Date.now() - 86400000, '/');
|
|
138153
138318
|
}
|
|
138154
138319
|
} :
|
|
138155
138320
|
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
@@ -138274,6 +138439,9 @@ function isAbsoluteURL(url) {
|
|
|
138274
138439
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
138275
138440
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
138276
138441
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
138442
|
+
if (typeof url !== 'string') {
|
|
138443
|
+
return false;
|
|
138444
|
+
}
|
|
138277
138445
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
138278
138446
|
}
|
|
138279
138447
|
|
|
@@ -138590,7 +138758,7 @@ function speedometer(samplesCount, min) {
|
|
|
138590
138758
|
*
|
|
138591
138759
|
* ```js
|
|
138592
138760
|
* function f(x, y, z) {}
|
|
138593
|
-
*
|
|
138761
|
+
* const args = [1, 2, 3];
|
|
138594
138762
|
* f.apply(null, args);
|
|
138595
138763
|
* ```
|
|
138596
138764
|
*
|
|
@@ -139243,7 +139411,7 @@ const kindOfTest = type => {
|
|
|
139243
139411
|
const typeOfTest = type => thing => typeof thing === type;
|
|
139244
139412
|
|
|
139245
139413
|
/**
|
|
139246
|
-
* Determine if a value is
|
|
139414
|
+
* Determine if a value is a non-null object
|
|
139247
139415
|
*
|
|
139248
139416
|
* @param {Object} val The value to test
|
|
139249
139417
|
*
|
|
@@ -139260,7 +139428,7 @@ const {
|
|
|
139260
139428
|
*
|
|
139261
139429
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
139262
139430
|
*/
|
|
139263
|
-
const isUndefined = typeOfTest(
|
|
139431
|
+
const isUndefined = typeOfTest("undefined");
|
|
139264
139432
|
|
|
139265
139433
|
/**
|
|
139266
139434
|
* Determine if a value is a Buffer
|
|
@@ -139280,7 +139448,7 @@ function isBuffer(val) {
|
|
|
139280
139448
|
*
|
|
139281
139449
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
139282
139450
|
*/
|
|
139283
|
-
const isArrayBuffer = kindOfTest(
|
|
139451
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
139284
139452
|
|
|
139285
139453
|
/**
|
|
139286
139454
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -139291,7 +139459,7 @@ const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
|
139291
139459
|
*/
|
|
139292
139460
|
function isArrayBufferView(val) {
|
|
139293
139461
|
let result;
|
|
139294
|
-
if (typeof ArrayBuffer !==
|
|
139462
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
139295
139463
|
result = ArrayBuffer.isView(val);
|
|
139296
139464
|
} else {
|
|
139297
139465
|
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
@@ -139306,7 +139474,7 @@ function isArrayBufferView(val) {
|
|
|
139306
139474
|
*
|
|
139307
139475
|
* @returns {boolean} True if value is a String, otherwise false
|
|
139308
139476
|
*/
|
|
139309
|
-
const isString = typeOfTest(
|
|
139477
|
+
const isString = typeOfTest("string");
|
|
139310
139478
|
|
|
139311
139479
|
/**
|
|
139312
139480
|
* Determine if a value is a Function
|
|
@@ -139314,7 +139482,7 @@ const isString = typeOfTest('string');
|
|
|
139314
139482
|
* @param {*} val The value to test
|
|
139315
139483
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
139316
139484
|
*/
|
|
139317
|
-
const isFunction = typeOfTest(
|
|
139485
|
+
const isFunction = typeOfTest("function");
|
|
139318
139486
|
|
|
139319
139487
|
/**
|
|
139320
139488
|
* Determine if a value is a Number
|
|
@@ -139323,7 +139491,7 @@ const isFunction = typeOfTest('function');
|
|
|
139323
139491
|
*
|
|
139324
139492
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
139325
139493
|
*/
|
|
139326
|
-
const isNumber = typeOfTest(
|
|
139494
|
+
const isNumber = typeOfTest("number");
|
|
139327
139495
|
|
|
139328
139496
|
/**
|
|
139329
139497
|
* Determine if a value is an Object
|
|
@@ -139332,7 +139500,7 @@ const isNumber = typeOfTest('number');
|
|
|
139332
139500
|
*
|
|
139333
139501
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
139334
139502
|
*/
|
|
139335
|
-
const isObject = thing => thing !== null && typeof thing ===
|
|
139503
|
+
const isObject = thing => thing !== null && typeof thing === "object";
|
|
139336
139504
|
|
|
139337
139505
|
/**
|
|
139338
139506
|
* Determine if a value is a Boolean
|
|
@@ -139350,7 +139518,7 @@ const isBoolean = thing => thing === true || thing === false;
|
|
|
139350
139518
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
139351
139519
|
*/
|
|
139352
139520
|
const isPlainObject = val => {
|
|
139353
|
-
if (kindOf(val) !==
|
|
139521
|
+
if (kindOf(val) !== "object") {
|
|
139354
139522
|
return false;
|
|
139355
139523
|
}
|
|
139356
139524
|
const prototype = getPrototypeOf(val);
|
|
@@ -139384,7 +139552,7 @@ const isEmptyObject = val => {
|
|
|
139384
139552
|
*
|
|
139385
139553
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
139386
139554
|
*/
|
|
139387
|
-
const isDate = kindOfTest(
|
|
139555
|
+
const isDate = kindOfTest("Date");
|
|
139388
139556
|
|
|
139389
139557
|
/**
|
|
139390
139558
|
* Determine if a value is a File
|
|
@@ -139393,7 +139561,7 @@ const isDate = kindOfTest('Date');
|
|
|
139393
139561
|
*
|
|
139394
139562
|
* @returns {boolean} True if value is a File, otherwise false
|
|
139395
139563
|
*/
|
|
139396
|
-
const isFile = kindOfTest(
|
|
139564
|
+
const isFile = kindOfTest("File");
|
|
139397
139565
|
|
|
139398
139566
|
/**
|
|
139399
139567
|
* Determine if a value is a Blob
|
|
@@ -139402,7 +139570,7 @@ const isFile = kindOfTest('File');
|
|
|
139402
139570
|
*
|
|
139403
139571
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
139404
139572
|
*/
|
|
139405
|
-
const isBlob = kindOfTest(
|
|
139573
|
+
const isBlob = kindOfTest("Blob");
|
|
139406
139574
|
|
|
139407
139575
|
/**
|
|
139408
139576
|
* Determine if a value is a FileList
|
|
@@ -139411,7 +139579,7 @@ const isBlob = kindOfTest('Blob');
|
|
|
139411
139579
|
*
|
|
139412
139580
|
* @returns {boolean} True if value is a File, otherwise false
|
|
139413
139581
|
*/
|
|
139414
|
-
const isFileList = kindOfTest(
|
|
139582
|
+
const isFileList = kindOfTest("FileList");
|
|
139415
139583
|
|
|
139416
139584
|
/**
|
|
139417
139585
|
* Determine if a value is a Stream
|
|
@@ -139431,9 +139599,9 @@ const isStream = val => isObject(val) && isFunction(val.pipe);
|
|
|
139431
139599
|
*/
|
|
139432
139600
|
const isFormData = thing => {
|
|
139433
139601
|
let kind;
|
|
139434
|
-
return thing && (typeof FormData ===
|
|
139602
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" ||
|
|
139435
139603
|
// detect form-data instance
|
|
139436
|
-
kind ===
|
|
139604
|
+
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
139437
139605
|
};
|
|
139438
139606
|
|
|
139439
139607
|
/**
|
|
@@ -139443,8 +139611,8 @@ const isFormData = thing => {
|
|
|
139443
139611
|
*
|
|
139444
139612
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
139445
139613
|
*/
|
|
139446
|
-
const isURLSearchParams = kindOfTest(
|
|
139447
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
139614
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
139615
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
139448
139616
|
|
|
139449
139617
|
/**
|
|
139450
139618
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -139453,7 +139621,7 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream',
|
|
|
139453
139621
|
*
|
|
139454
139622
|
* @returns {String} The String freed of excess whitespace
|
|
139455
139623
|
*/
|
|
139456
|
-
const trim = str => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
139624
|
+
const trim = str => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
139457
139625
|
|
|
139458
139626
|
/**
|
|
139459
139627
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -139464,24 +139632,25 @@ const trim = str => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uF
|
|
|
139464
139632
|
* If 'obj' is an Object callback will be called passing
|
|
139465
139633
|
* the value, key, and complete object for each property.
|
|
139466
139634
|
*
|
|
139467
|
-
* @param {Object|Array} obj The object to iterate
|
|
139635
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
139468
139636
|
* @param {Function} fn The callback to invoke for each item
|
|
139469
139637
|
*
|
|
139470
|
-
* @param {
|
|
139638
|
+
* @param {Object} [options]
|
|
139639
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
139471
139640
|
* @returns {any}
|
|
139472
139641
|
*/
|
|
139473
139642
|
function forEach(obj, fn, {
|
|
139474
139643
|
allOwnKeys = false
|
|
139475
139644
|
} = {}) {
|
|
139476
139645
|
// Don't bother if no value provided
|
|
139477
|
-
if (obj === null || typeof obj ===
|
|
139646
|
+
if (obj === null || typeof obj === "undefined") {
|
|
139478
139647
|
return;
|
|
139479
139648
|
}
|
|
139480
139649
|
let i;
|
|
139481
139650
|
let l;
|
|
139482
139651
|
|
|
139483
139652
|
// Force an array if not already something iterable
|
|
139484
|
-
if (typeof obj !==
|
|
139653
|
+
if (typeof obj !== "object") {
|
|
139485
139654
|
/*eslint no-param-reassign:0*/
|
|
139486
139655
|
obj = [obj];
|
|
139487
139656
|
}
|
|
@@ -139525,7 +139694,7 @@ function findKey(obj, key) {
|
|
|
139525
139694
|
const _global = (() => {
|
|
139526
139695
|
/*eslint no-undef:0*/
|
|
139527
139696
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
139528
|
-
return typeof self !== "undefined" ? self : typeof window !==
|
|
139697
|
+
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : __webpack_require__.g;
|
|
139529
139698
|
})();
|
|
139530
139699
|
const isContextDefined = context => !isUndefined(context) && context !== _global;
|
|
139531
139700
|
|
|
@@ -139539,7 +139708,7 @@ const isContextDefined = context => !isUndefined(context) && context !== _global
|
|
|
139539
139708
|
* Example:
|
|
139540
139709
|
*
|
|
139541
139710
|
* ```js
|
|
139542
|
-
*
|
|
139711
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
139543
139712
|
* console.log(result.foo); // outputs 456
|
|
139544
139713
|
* ```
|
|
139545
139714
|
*
|
|
@@ -139555,6 +139724,10 @@ function merge(/* obj1, obj2, obj3, ... */
|
|
|
139555
139724
|
} = isContextDefined(this) && this || {};
|
|
139556
139725
|
const result = {};
|
|
139557
139726
|
const assignValue = (val, key) => {
|
|
139727
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
139728
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
139729
|
+
return;
|
|
139730
|
+
}
|
|
139558
139731
|
const targetKey = caseless && findKey(result, key) || key;
|
|
139559
139732
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
139560
139733
|
result[targetKey] = merge(result[targetKey], val);
|
|
@@ -139579,7 +139752,8 @@ function merge(/* obj1, obj2, obj3, ... */
|
|
|
139579
139752
|
* @param {Object} b The object to copy properties from
|
|
139580
139753
|
* @param {Object} thisArg The object to bind function to
|
|
139581
139754
|
*
|
|
139582
|
-
* @param {
|
|
139755
|
+
* @param {Object} [options]
|
|
139756
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
139583
139757
|
* @returns {Object} The resulting value of object a
|
|
139584
139758
|
*/
|
|
139585
139759
|
const extend = (a, b, thisArg, {
|
|
@@ -139587,9 +139761,19 @@ const extend = (a, b, thisArg, {
|
|
|
139587
139761
|
} = {}) => {
|
|
139588
139762
|
forEach(b, (val, key) => {
|
|
139589
139763
|
if (thisArg && isFunction(val)) {
|
|
139590
|
-
a
|
|
139764
|
+
Object.defineProperty(a, key, {
|
|
139765
|
+
value: (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(val, thisArg),
|
|
139766
|
+
writable: true,
|
|
139767
|
+
enumerable: true,
|
|
139768
|
+
configurable: true
|
|
139769
|
+
});
|
|
139591
139770
|
} else {
|
|
139592
|
-
a
|
|
139771
|
+
Object.defineProperty(a, key, {
|
|
139772
|
+
value: val,
|
|
139773
|
+
writable: true,
|
|
139774
|
+
enumerable: true,
|
|
139775
|
+
configurable: true
|
|
139776
|
+
});
|
|
139593
139777
|
}
|
|
139594
139778
|
}, {
|
|
139595
139779
|
allOwnKeys
|
|
@@ -139605,7 +139789,7 @@ const extend = (a, b, thisArg, {
|
|
|
139605
139789
|
* @returns {string} content value without BOM
|
|
139606
139790
|
*/
|
|
139607
139791
|
const stripBOM = content => {
|
|
139608
|
-
if (content.charCodeAt(0) ===
|
|
139792
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
139609
139793
|
content = content.slice(1);
|
|
139610
139794
|
}
|
|
139611
139795
|
return content;
|
|
@@ -139622,8 +139806,13 @@ const stripBOM = content => {
|
|
|
139622
139806
|
*/
|
|
139623
139807
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
139624
139808
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
139625
|
-
constructor.prototype
|
|
139626
|
-
|
|
139809
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
139810
|
+
value: constructor,
|
|
139811
|
+
writable: true,
|
|
139812
|
+
enumerable: false,
|
|
139813
|
+
configurable: true
|
|
139814
|
+
});
|
|
139815
|
+
Object.defineProperty(constructor, "super", {
|
|
139627
139816
|
value: superConstructor.prototype
|
|
139628
139817
|
});
|
|
139629
139818
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -139713,7 +139902,7 @@ const isTypedArray = (TypedArray => {
|
|
|
139713
139902
|
return thing => {
|
|
139714
139903
|
return TypedArray && thing instanceof TypedArray;
|
|
139715
139904
|
};
|
|
139716
|
-
})(typeof Uint8Array !==
|
|
139905
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
139717
139906
|
|
|
139718
139907
|
/**
|
|
139719
139908
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -139751,7 +139940,7 @@ const matchAll = (regExp, str) => {
|
|
|
139751
139940
|
};
|
|
139752
139941
|
|
|
139753
139942
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
139754
|
-
const isHTMLForm = kindOfTest(
|
|
139943
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
139755
139944
|
const toCamelCase = str => {
|
|
139756
139945
|
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
139757
139946
|
return p1.toUpperCase() + p2;
|
|
@@ -139770,7 +139959,7 @@ const hasOwnProperty = (({
|
|
|
139770
139959
|
*
|
|
139771
139960
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
139772
139961
|
*/
|
|
139773
|
-
const isRegExp = kindOfTest(
|
|
139962
|
+
const isRegExp = kindOfTest("RegExp");
|
|
139774
139963
|
const reduceDescriptors = (obj, reducer) => {
|
|
139775
139964
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
139776
139965
|
const reducedDescriptors = {};
|
|
@@ -139791,19 +139980,19 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
139791
139980
|
const freezeMethods = obj => {
|
|
139792
139981
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
139793
139982
|
// skip restricted props in strict mode
|
|
139794
|
-
if (isFunction(obj) && [
|
|
139983
|
+
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
139795
139984
|
return false;
|
|
139796
139985
|
}
|
|
139797
139986
|
const value = obj[name];
|
|
139798
139987
|
if (!isFunction(value)) return;
|
|
139799
139988
|
descriptor.enumerable = false;
|
|
139800
|
-
if (
|
|
139989
|
+
if ("writable" in descriptor) {
|
|
139801
139990
|
descriptor.writable = false;
|
|
139802
139991
|
return;
|
|
139803
139992
|
}
|
|
139804
139993
|
if (!descriptor.set) {
|
|
139805
139994
|
descriptor.set = () => {
|
|
139806
|
-
throw Error(
|
|
139995
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
139807
139996
|
};
|
|
139808
139997
|
}
|
|
139809
139998
|
});
|
|
@@ -139831,7 +140020,7 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
139831
140020
|
* @returns {boolean}
|
|
139832
140021
|
*/
|
|
139833
140022
|
function isSpecCompliantForm(thing) {
|
|
139834
|
-
return !!(thing && isFunction(thing.append) && thing[toStringTag] ===
|
|
140023
|
+
return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
139835
140024
|
}
|
|
139836
140025
|
const toJSONObject = obj => {
|
|
139837
140026
|
const stack = new Array(10);
|
|
@@ -139845,7 +140034,7 @@ const toJSONObject = obj => {
|
|
|
139845
140034
|
if (isBuffer(source)) {
|
|
139846
140035
|
return source;
|
|
139847
140036
|
}
|
|
139848
|
-
if (!(
|
|
140037
|
+
if (!("toJSON" in source)) {
|
|
139849
140038
|
stack[i] = source;
|
|
139850
140039
|
const target = isArray(source) ? [] : {};
|
|
139851
140040
|
forEach(source, (value, key) => {
|
|
@@ -139860,7 +140049,7 @@ const toJSONObject = obj => {
|
|
|
139860
140049
|
};
|
|
139861
140050
|
return visit(obj, 0);
|
|
139862
140051
|
};
|
|
139863
|
-
const isAsyncFn = kindOfTest(
|
|
140052
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
139864
140053
|
const isThenable = thing => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
139865
140054
|
|
|
139866
140055
|
// original code
|
|
@@ -139884,8 +140073,8 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
139884
140073
|
_global.postMessage(token, "*");
|
|
139885
140074
|
};
|
|
139886
140075
|
})(`axios@${Math.random()}`, []) : cb => setTimeout(cb);
|
|
139887
|
-
})(typeof setImmediate ===
|
|
139888
|
-
const asap = typeof queueMicrotask !==
|
|
140076
|
+
})(typeof setImmediate === "function", isFunction(_global.postMessage));
|
|
140077
|
+
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
139889
140078
|
|
|
139890
140079
|
// *********************
|
|
139891
140080
|
|