@steedos/webapp 3.0.0-beta.63 → 3.0.0-beta.65
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.
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
4
4
|
(function() {
|
|
5
5
|
"use strict";
|
|
6
6
|
var __vite_style__ = document.createElement("style");
|
|
7
|
-
__vite_style__.textContent = "*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden=\"until-found\"])) {\n display: none;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.visible {\n visibility: visible;\n}\n.static {\n position: static;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.inset-0 {\n inset: 0px;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.left-0 {\n left: 0px;\n}\n.right-0 {\n right: 0px;\n}\n.col-span-2 {\n grid-column: span 2 / span 2;\n}\n.col-span-3 {\n grid-column: span 3 / span 3;\n}\n.m-0 {\n margin: 0px;\n}\n.m-2 {\n margin: 0.5rem;\n}\n.mx-10 {\n margin-left: 2.5rem;\n margin-right: 2.5rem;\n}\n.mx-4 {\n margin-left: 1rem;\n margin-right: 1rem;\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n.-mb-px {\n margin-bottom: -1px;\n}\n.-ml-px {\n margin-left: -1px;\n}\n.-mt-px {\n margin-top: -1px;\n}\n.mb-10 {\n margin-bottom: 2.5rem;\n}\n.mb-6 {\n margin-bottom: 1.5rem;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-10 {\n margin-left: 2.5rem;\n}\n.ml-3 {\n margin-left: 0.75rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.ml-8 {\n margin-left: 2rem;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.mt-6 {\n margin-top: 1.5rem;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.grid {\n display: grid;\n}\n.hidden {\n display: none;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-96 {\n height: 24rem;\n}\n.h-full {\n height: 100%;\n}\n.w-12 {\n width: 3rem;\n}\n.w-32 {\n width: 8rem;\n}\n.w-4 {\n width: 1rem;\n}\n.w-48 {\n width: 12rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-8 {\n width: 2rem;\n}\n.w-full {\n width: 100%;\n}\n.w-screen {\n width: 100vw;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.max-w-7xl {\n max-width: 80rem;\n}\n.max-w-md {\n max-width: 28rem;\n}\n.max-w-xl {\n max-width: 36rem;\n}\n.max-w-xs {\n max-width: 20rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-none {\n flex: none;\n}\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n.origin-top-right {\n transform-origin: top right;\n}\n.appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.grid-cols-5 {\n grid-template-columns: repeat(5, minmax(0, 1fr));\n}\n.items-center {\n align-items: center;\n}\n.items-baseline {\n align-items: baseline;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.space-x-4 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(1rem * var(--tw-space-x-reverse));\n margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n}\n.rounded-md {\n border-radius: 0.375rem;\n}\n.rounded-none {\n border-radius: 0px;\n}\n.rounded-sm {\n border-radius: 0.125rem;\n}\n.rounded-b-md {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.rounded-t-md {\n border-top-left-radius: 0.375rem;\n border-top-right-radius: 0.375rem;\n}\n.rounded-bl-md {\n border-bottom-left-radius: 0.375rem;\n}\n.rounded-br-md {\n border-bottom-right-radius: 0.375rem;\n}\n.border {\n border-width: 1px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-4 {\n border-width: 4px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-b-2 {\n border-bottom-width: 2px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-dashed {\n border-style: dashed;\n}\n.border-blue-600 {\n --tw-border-opacity: 1;\n border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));\n}\n.border-gray-100 {\n --tw-border-opacity: 1;\n border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));\n}\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));\n}\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));\n}\n.border-gray-500 {\n --tw-border-opacity: 1;\n border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));\n}\n.border-transparent {\n border-color: transparent;\n}\n.bg-blue-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));\n}\n.bg-blue-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));\n}\n.bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n.bg-green-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));\n}\n.bg-slate-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(203 213 225 / var(--tw-bg-opacity, 1));\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n.p-0 {\n padding: 0px;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-10 {\n padding: 2.5rem;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n.pb-0 {\n padding-bottom: 0px;\n}\n.pr-4 {\n padding-right: 1rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n.text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.font-bold {\n font-weight: 700;\n}\n.font-extrabold {\n font-weight: 800;\n}\n.font-medium {\n font-weight: 500;\n}\n.leading-5 {\n line-height: 1.25rem;\n}\n.leading-9 {\n line-height: 2.25rem;\n}\n.leading-tight {\n line-height: 1.25;\n}\n.text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity, 1));\n}\n.text-blue-600 {\n --tw-text-opacity: 1;\n color: rgb(37 99 235 / var(--tw-text-opacity, 1));\n}\n.text-gray-300 {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1));\n}\n.text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity, 1));\n}\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity, 1));\n}\n.text-gray-800 {\n --tw-text-opacity: 1;\n color: rgb(31 41 55 / var(--tw-text-opacity, 1));\n}\n.text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity, 1));\n}\n.text-slate-700 {\n --tw-text-opacity: 1;\n color: rgb(51 65 85 / var(--tw-text-opacity, 1));\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n.placeholder-gray-500::-moz-placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(107 114 128 / var(--tw-placeholder-opacity, 1));\n}\n.placeholder-gray-500::placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(107 114 128 / var(--tw-placeholder-opacity, 1));\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-150 {\n transition-duration: 150ms;\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n\n.creator-content-wrapper {\n overflow: auto !important;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin-top: 90px;\n}\n\n@media (min-width: 767px) {\n .creator-content-wrapper {\n height:calc(100% - 90px)\n }\n\n .creator-content-wrapper>.builder-component{\n height: 100%;\n }\n\n .creator-content-wrapper>.builder-component>.builder-content{\n height: 100%;\n }\n\n .creator-content-wrapper>.builder-component>.builder-content>div{\n height: 100%;\n }\n\n .creator-content-wrapper>.builder-component>.builder-content>div>.builder-blocks{\n height: 100%;\n }\n\n .creator-content-wrapper>.builder-component>.builder-content>div>.builder-blocks>.builder-block{\n height: 100%;\n }\n .creator-content-wrapper>.builder-component>.builder-content>div>.builder-blocks>.builder-block>.amis-scope{\n height: 100%;\n }\n}\n\n.hover\\:border-blue-300:hover {\n --tw-border-opacity: 1;\n border-color: rgb(147 197 253 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:border-gray-300:hover {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:bg-blue-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-blue-500:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-gray-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-gray-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-green-400:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(74 222 128 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-slate-500:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(100 116 139 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-white:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:text-blue-500:hover {\n --tw-text-opacity: 1;\n color: rgb(59 130 246 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:text-blue-600:hover {\n --tw-text-opacity: 1;\n color: rgb(37 99 235 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:text-blue-700:hover {\n --tw-text-opacity: 1;\n color: rgb(29 78 216 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:text-gray-300:hover {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:text-gray-500:hover {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:text-white:hover {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:underline:hover {\n text-decoration-line: underline;\n}\n\n.focus\\:z-10:focus {\n z-index: 10;\n}\n\n.focus\\:border-blue-300:focus {\n --tw-border-opacity: 1;\n border-color: rgb(147 197 253 / var(--tw-border-opacity, 1));\n}\n\n.focus\\:border-blue-700:focus {\n --tw-border-opacity: 1;\n border-color: rgb(29 78 216 / var(--tw-border-opacity, 1));\n}\n\n.focus\\:border-green-700:focus {\n --tw-border-opacity: 1;\n border-color: rgb(21 128 61 / var(--tw-border-opacity, 1));\n}\n\n.focus\\:bg-gray-700:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));\n}\n\n.focus\\:text-gray-700:focus {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity, 1));\n}\n\n.focus\\:text-white:focus {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.active\\:bg-blue-700:active {\n --tw-bg-opacity: 1;\n background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));\n}\n\n.active\\:bg-gray-100:active {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n\n.active\\:bg-green-700:active {\n --tw-bg-opacity: 1;\n background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));\n}\n\n@media (min-width: 640px) {\n\n .sm\\:items-center {\n align-items: center;\n }\n\n .sm\\:px-0 {\n padding-left: 0px;\n padding-right: 0px;\n }\n\n .sm\\:px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n }\n\n .sm\\:px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n }\n\n .sm\\:pl-10 {\n padding-left: 2.5rem;\n }\n\n .sm\\:pr-10 {\n padding-right: 2.5rem;\n }\n\n .sm\\:pt-10 {\n padding-top: 2.5rem;\n }\n\n .sm\\:text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n .sm\\:leading-5 {\n line-height: 1.25rem;\n }\n\n .sm\\:shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n }\n\n .sm\\:shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n }\n}\n\n@media (min-width: 768px) {\n\n .md\\:ml-6 {\n margin-left: 1.5rem;\n }\n\n .md\\:block {\n display: block;\n }\n\n .md\\:p-10 {\n padding: 2.5rem;\n }\n}\n\n@media (min-width: 1024px) {\n\n .lg\\:block {\n display: block;\n }\n\n .lg\\:rounded-md {\n border-radius: 0.375rem;\n }\n\n .lg\\:p-2 {\n padding: 0.5rem;\n }\n\n .lg\\:px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n }\n}/*$vite$:1*/";
|
|
7
|
+
__vite_style__.textContent = "*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden=\"until-found\"])) {\n display: none;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.visible {\n visibility: visible;\n}\n.static {\n position: static;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.inset-0 {\n inset: 0px;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.left-0 {\n left: 0px;\n}\n.right-0 {\n right: 0px;\n}\n.col-span-2 {\n grid-column: span 2 / span 2;\n}\n.col-span-3 {\n grid-column: span 3 / span 3;\n}\n.m-0 {\n margin: 0px;\n}\n.m-2 {\n margin: 0.5rem;\n}\n.mx-10 {\n margin-left: 2.5rem;\n margin-right: 2.5rem;\n}\n.mx-4 {\n margin-left: 1rem;\n margin-right: 1rem;\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n.-mb-px {\n margin-bottom: -1px;\n}\n.-ml-px {\n margin-left: -1px;\n}\n.-mt-px {\n margin-top: -1px;\n}\n.mb-10 {\n margin-bottom: 2.5rem;\n}\n.mb-6 {\n margin-bottom: 1.5rem;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-10 {\n margin-left: 2.5rem;\n}\n.ml-3 {\n margin-left: 0.75rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.ml-8 {\n margin-left: 2rem;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.mt-6 {\n margin-top: 1.5rem;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.grid {\n display: grid;\n}\n.hidden {\n display: none;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-96 {\n height: 24rem;\n}\n.h-full {\n height: 100%;\n}\n.w-12 {\n width: 3rem;\n}\n.w-32 {\n width: 8rem;\n}\n.w-4 {\n width: 1rem;\n}\n.w-48 {\n width: 12rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-8 {\n width: 2rem;\n}\n.w-full {\n width: 100%;\n}\n.w-screen {\n width: 100vw;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.max-w-7xl {\n max-width: 80rem;\n}\n.max-w-md {\n max-width: 28rem;\n}\n.max-w-xl {\n max-width: 36rem;\n}\n.max-w-xs {\n max-width: 20rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-none {\n flex: none;\n}\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n.origin-top-right {\n transform-origin: top right;\n}\n.appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.grid-cols-5 {\n grid-template-columns: repeat(5, minmax(0, 1fr));\n}\n.items-center {\n align-items: center;\n}\n.items-baseline {\n align-items: baseline;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.space-x-4 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(1rem * var(--tw-space-x-reverse));\n margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n}\n.rounded-md {\n border-radius: 0.375rem;\n}\n.rounded-none {\n border-radius: 0px;\n}\n.rounded-sm {\n border-radius: 0.125rem;\n}\n.rounded-b-md {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.rounded-t-md {\n border-top-left-radius: 0.375rem;\n border-top-right-radius: 0.375rem;\n}\n.rounded-bl-md {\n border-bottom-left-radius: 0.375rem;\n}\n.rounded-br-md {\n border-bottom-right-radius: 0.375rem;\n}\n.border {\n border-width: 1px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-4 {\n border-width: 4px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-b-2 {\n border-bottom-width: 2px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-dashed {\n border-style: dashed;\n}\n.border-blue-600 {\n --tw-border-opacity: 1;\n border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));\n}\n.border-gray-100 {\n --tw-border-opacity: 1;\n border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));\n}\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));\n}\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));\n}\n.border-gray-500 {\n --tw-border-opacity: 1;\n border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));\n}\n.border-transparent {\n border-color: transparent;\n}\n.bg-blue-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));\n}\n.bg-blue-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));\n}\n.bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n.bg-green-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));\n}\n.bg-slate-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(203 213 225 / var(--tw-bg-opacity, 1));\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n.p-0 {\n padding: 0px;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-10 {\n padding: 2.5rem;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n.pb-0 {\n padding-bottom: 0px;\n}\n.pr-4 {\n padding-right: 1rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n.text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.font-bold {\n font-weight: 700;\n}\n.font-extrabold {\n font-weight: 800;\n}\n.font-medium {\n font-weight: 500;\n}\n.leading-5 {\n line-height: 1.25rem;\n}\n.leading-9 {\n line-height: 2.25rem;\n}\n.leading-tight {\n line-height: 1.25;\n}\n.text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity, 1));\n}\n.text-blue-600 {\n --tw-text-opacity: 1;\n color: rgb(37 99 235 / var(--tw-text-opacity, 1));\n}\n.text-gray-300 {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1));\n}\n.text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity, 1));\n}\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity, 1));\n}\n.text-gray-800 {\n --tw-text-opacity: 1;\n color: rgb(31 41 55 / var(--tw-text-opacity, 1));\n}\n.text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity, 1));\n}\n.text-slate-700 {\n --tw-text-opacity: 1;\n color: rgb(51 65 85 / var(--tw-text-opacity, 1));\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n.placeholder-gray-500::-moz-placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(107 114 128 / var(--tw-placeholder-opacity, 1));\n}\n.placeholder-gray-500::placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(107 114 128 / var(--tw-placeholder-opacity, 1));\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-150 {\n transition-duration: 150ms;\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n\n.creator-content-wrapper {\n overflow: auto !important;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin-top: 90px;\n}\n\n@media (min-width: 767px) {\n .creator-content-wrapper {\n height:calc(100% - 90px)\n }\n\n .creator-content-wrapper>.builder-component{\n height: 100%;\n }\n\n .creator-content-wrapper>.builder-component>.builder-content{\n height: 100%;\n }\n\n .creator-content-wrapper>.builder-component>.builder-content>div{\n height: 100%;\n }\n\n .creator-content-wrapper>.builder-component>.builder-content>div>.builder-blocks{\n height: 100%;\n }\n\n .creator-content-wrapper>.builder-component>.builder-content>div>.builder-blocks>.builder-block{\n height: 100%;\n }\n .creator-content-wrapper>.builder-component>.builder-content>div>.builder-blocks>.builder-block>.amis-scope{\n height: 100%;\n }\n}\n\n.hover\\:border-blue-300:hover {\n --tw-border-opacity: 1;\n border-color: rgb(147 197 253 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:border-gray-300:hover {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:bg-blue-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-blue-500:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-gray-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-gray-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-green-400:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(74 222 128 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-slate-500:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(100 116 139 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:bg-white:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:text-blue-500:hover {\n --tw-text-opacity: 1;\n color: rgb(59 130 246 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:text-blue-600:hover {\n --tw-text-opacity: 1;\n color: rgb(37 99 235 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:text-blue-700:hover {\n --tw-text-opacity: 1;\n color: rgb(29 78 216 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:text-gray-300:hover {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:text-gray-500:hover {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:text-white:hover {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:underline:hover {\n text-decoration-line: underline;\n}\n\n.focus\\:z-10:focus {\n z-index: 10;\n}\n\n.focus\\:border-blue-300:focus {\n --tw-border-opacity: 1;\n border-color: rgb(147 197 253 / var(--tw-border-opacity, 1));\n}\n\n.focus\\:border-blue-700:focus {\n --tw-border-opacity: 1;\n border-color: rgb(29 78 216 / var(--tw-border-opacity, 1));\n}\n\n.focus\\:border-green-700:focus {\n --tw-border-opacity: 1;\n border-color: rgb(21 128 61 / var(--tw-border-opacity, 1));\n}\n\n.focus\\:bg-gray-700:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));\n}\n\n.focus\\:text-gray-700:focus {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity, 1));\n}\n\n.focus\\:text-white:focus {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.active\\:bg-blue-700:active {\n --tw-bg-opacity: 1;\n background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));\n}\n\n.active\\:bg-gray-100:active {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n\n.active\\:bg-green-700:active {\n --tw-bg-opacity: 1;\n background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));\n}\n\n@media (min-width: 640px) {\n\n .sm\\:items-center {\n align-items: center;\n }\n\n .sm\\:bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));\n }\n\n .sm\\:px-0 {\n padding-left: 0px;\n padding-right: 0px;\n }\n\n .sm\\:px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n }\n\n .sm\\:px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n }\n\n .sm\\:pl-10 {\n padding-left: 2.5rem;\n }\n\n .sm\\:pr-10 {\n padding-right: 2.5rem;\n }\n\n .sm\\:pt-10 {\n padding-top: 2.5rem;\n }\n\n .sm\\:text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n .sm\\:leading-5 {\n line-height: 1.25rem;\n }\n\n .sm\\:shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n }\n\n .sm\\:shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n }\n}\n\n@media (min-width: 768px) {\n\n .md\\:ml-6 {\n margin-left: 1.5rem;\n }\n\n .md\\:block {\n display: block;\n }\n\n .md\\:p-10 {\n padding: 2.5rem;\n }\n}\n\n@media (min-width: 1024px) {\n\n .lg\\:block {\n display: block;\n }\n\n .lg\\:rounded-md {\n border-radius: 0.375rem;\n }\n\n .lg\\:p-2 {\n padding: 0.5rem;\n }\n\n .lg\\:px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n }\n}/*$vite$:1*/";
|
|
8
8
|
document.head.appendChild(__vite_style__);
|
|
9
9
|
function _mergeNamespaces(n, m) {
|
|
10
10
|
for (var i = 0; i < m.length; i++) {
|
|
@@ -30,7 +30,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
30
30
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
31
31
|
}
|
|
32
32
|
function getAugmentedNamespace(n) {
|
|
33
|
-
if (n
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
|
|
34
34
|
var f = n.default;
|
|
35
35
|
if (typeof f == "function") {
|
|
36
36
|
var a = function a2() {
|
|
@@ -1612,10 +1612,10 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
1612
1612
|
var SHARED = "__core-js_shared__";
|
|
1613
1613
|
var store2 = sharedStore.exports = globalThis2[SHARED] || defineGlobalProperty2(SHARED, {});
|
|
1614
1614
|
(store2.versions || (store2.versions = [])).push({
|
|
1615
|
-
version: "3.
|
|
1615
|
+
version: "3.44.0",
|
|
1616
1616
|
mode: IS_PURE ? "pure" : "global",
|
|
1617
1617
|
copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru)",
|
|
1618
|
-
license: "https://github.com/zloirock/core-js/blob/v3.
|
|
1618
|
+
license: "https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",
|
|
1619
1619
|
source: "https://github.com/zloirock/core-js"
|
|
1620
1620
|
});
|
|
1621
1621
|
return sharedStore.exports;
|
|
@@ -1664,7 +1664,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
1664
1664
|
var uncurryThis = requireFunctionUncurryThis();
|
|
1665
1665
|
var id2 = 0;
|
|
1666
1666
|
var postfix = Math.random();
|
|
1667
|
-
var toString2 = uncurryThis(1
|
|
1667
|
+
var toString2 = uncurryThis(1.1.toString);
|
|
1668
1668
|
uid = function(key2) {
|
|
1669
1669
|
return "Symbol(" + (key2 === void 0 ? "" : key2) + ")_" + toString2(++id2 + postfix, 36);
|
|
1670
1670
|
};
|
|
@@ -3352,7 +3352,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
3352
3352
|
var charAt = uncurryThis("".charAt);
|
|
3353
3353
|
var charCodeAt = uncurryThis("".charCodeAt);
|
|
3354
3354
|
var replace = uncurryThis("".replace);
|
|
3355
|
-
var numberToString = uncurryThis(1
|
|
3355
|
+
var numberToString = uncurryThis(1.1.toString);
|
|
3356
3356
|
var tester = /[\uD800-\uDFFF]/g;
|
|
3357
3357
|
var low = /^[\uD800-\uDBFF]$/;
|
|
3358
3358
|
var hi = /^[\uDC00-\uDFFF]$/;
|
|
@@ -3425,6 +3425,25 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
3425
3425
|
requireEs_object_getOwnPropertySymbols();
|
|
3426
3426
|
return es_symbol;
|
|
3427
3427
|
}
|
|
3428
|
+
var es_symbol_asyncDispose = {};
|
|
3429
|
+
var hasRequiredEs_symbol_asyncDispose;
|
|
3430
|
+
function requireEs_symbol_asyncDispose() {
|
|
3431
|
+
if (hasRequiredEs_symbol_asyncDispose) return es_symbol_asyncDispose;
|
|
3432
|
+
hasRequiredEs_symbol_asyncDispose = 1;
|
|
3433
|
+
var globalThis2 = requireGlobalThis();
|
|
3434
|
+
var defineWellKnownSymbol = requireWellKnownSymbolDefine();
|
|
3435
|
+
var defineProperty = requireObjectDefineProperty().f;
|
|
3436
|
+
var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
|
|
3437
|
+
var Symbol2 = globalThis2.Symbol;
|
|
3438
|
+
defineWellKnownSymbol("asyncDispose");
|
|
3439
|
+
if (Symbol2) {
|
|
3440
|
+
var descriptor = getOwnPropertyDescriptor(Symbol2, "asyncDispose");
|
|
3441
|
+
if (descriptor.enumerable && descriptor.configurable && descriptor.writable) {
|
|
3442
|
+
defineProperty(Symbol2, "asyncDispose", { value: descriptor.value, enumerable: false, configurable: false, writable: false });
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
return es_symbol_asyncDispose;
|
|
3446
|
+
}
|
|
3428
3447
|
var es_symbol_asyncIterator = {};
|
|
3429
3448
|
var hasRequiredEs_symbol_asyncIterator;
|
|
3430
3449
|
function requireEs_symbol_asyncIterator() {
|
|
@@ -3485,6 +3504,25 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
3485
3504
|
}
|
|
3486
3505
|
return es_symbol_description;
|
|
3487
3506
|
}
|
|
3507
|
+
var es_symbol_dispose = {};
|
|
3508
|
+
var hasRequiredEs_symbol_dispose;
|
|
3509
|
+
function requireEs_symbol_dispose() {
|
|
3510
|
+
if (hasRequiredEs_symbol_dispose) return es_symbol_dispose;
|
|
3511
|
+
hasRequiredEs_symbol_dispose = 1;
|
|
3512
|
+
var globalThis2 = requireGlobalThis();
|
|
3513
|
+
var defineWellKnownSymbol = requireWellKnownSymbolDefine();
|
|
3514
|
+
var defineProperty = requireObjectDefineProperty().f;
|
|
3515
|
+
var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
|
|
3516
|
+
var Symbol2 = globalThis2.Symbol;
|
|
3517
|
+
defineWellKnownSymbol("dispose");
|
|
3518
|
+
if (Symbol2) {
|
|
3519
|
+
var descriptor = getOwnPropertyDescriptor(Symbol2, "dispose");
|
|
3520
|
+
if (descriptor.enumerable && descriptor.configurable && descriptor.writable) {
|
|
3521
|
+
defineProperty(Symbol2, "dispose", { value: descriptor.value, enumerable: false, configurable: false, writable: false });
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
return es_symbol_dispose;
|
|
3525
|
+
}
|
|
3488
3526
|
var es_symbol_hasInstance = {};
|
|
3489
3527
|
var hasRequiredEs_symbol_hasInstance;
|
|
3490
3528
|
function requireEs_symbol_hasInstance() {
|
|
@@ -3637,8 +3675,10 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
3637
3675
|
requireEs_array_concat();
|
|
3638
3676
|
requireEs_object_toString();
|
|
3639
3677
|
requireEs_symbol();
|
|
3678
|
+
requireEs_symbol_asyncDispose();
|
|
3640
3679
|
requireEs_symbol_asyncIterator();
|
|
3641
3680
|
requireEs_symbol_description();
|
|
3681
|
+
requireEs_symbol_dispose();
|
|
3642
3682
|
requireEs_symbol_hasInstance();
|
|
3643
3683
|
requireEs_symbol_isConcatSpreadable();
|
|
3644
3684
|
requireEs_symbol_iterator();
|
|
@@ -4145,18 +4185,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
4145
4185
|
function requireEsnext_symbol_asyncDispose() {
|
|
4146
4186
|
if (hasRequiredEsnext_symbol_asyncDispose) return esnext_symbol_asyncDispose;
|
|
4147
4187
|
hasRequiredEsnext_symbol_asyncDispose = 1;
|
|
4148
|
-
|
|
4149
|
-
var defineWellKnownSymbol = requireWellKnownSymbolDefine();
|
|
4150
|
-
var defineProperty = requireObjectDefineProperty().f;
|
|
4151
|
-
var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
|
|
4152
|
-
var Symbol2 = globalThis2.Symbol;
|
|
4153
|
-
defineWellKnownSymbol("asyncDispose");
|
|
4154
|
-
if (Symbol2) {
|
|
4155
|
-
var descriptor = getOwnPropertyDescriptor(Symbol2, "asyncDispose");
|
|
4156
|
-
if (descriptor.enumerable && descriptor.configurable && descriptor.writable) {
|
|
4157
|
-
defineProperty(Symbol2, "asyncDispose", { value: descriptor.value, enumerable: false, configurable: false, writable: false });
|
|
4158
|
-
}
|
|
4159
|
-
}
|
|
4188
|
+
requireEs_symbol_asyncDispose();
|
|
4160
4189
|
return esnext_symbol_asyncDispose;
|
|
4161
4190
|
}
|
|
4162
4191
|
var esnext_symbol_dispose = {};
|
|
@@ -4164,18 +4193,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
4164
4193
|
function requireEsnext_symbol_dispose() {
|
|
4165
4194
|
if (hasRequiredEsnext_symbol_dispose) return esnext_symbol_dispose;
|
|
4166
4195
|
hasRequiredEsnext_symbol_dispose = 1;
|
|
4167
|
-
|
|
4168
|
-
var defineWellKnownSymbol = requireWellKnownSymbolDefine();
|
|
4169
|
-
var defineProperty = requireObjectDefineProperty().f;
|
|
4170
|
-
var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
|
|
4171
|
-
var Symbol2 = globalThis2.Symbol;
|
|
4172
|
-
defineWellKnownSymbol("dispose");
|
|
4173
|
-
if (Symbol2) {
|
|
4174
|
-
var descriptor = getOwnPropertyDescriptor(Symbol2, "dispose");
|
|
4175
|
-
if (descriptor.enumerable && descriptor.configurable && descriptor.writable) {
|
|
4176
|
-
defineProperty(Symbol2, "dispose", { value: descriptor.value, enumerable: false, configurable: false, writable: false });
|
|
4177
|
-
}
|
|
4178
|
-
}
|
|
4196
|
+
requireEs_symbol_dispose();
|
|
4179
4197
|
return esnext_symbol_dispose;
|
|
4180
4198
|
}
|
|
4181
4199
|
var esnext_symbol_metadata = {};
|
|
@@ -4868,7 +4886,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
4868
4886
|
var fn = bind2(unboundFunction, that);
|
|
4869
4887
|
var iterator, iterFn, index2, length, result, next, step;
|
|
4870
4888
|
var stop = function(condition) {
|
|
4871
|
-
if (iterator) iteratorClose2(iterator, "normal"
|
|
4889
|
+
if (iterator) iteratorClose2(iterator, "normal");
|
|
4872
4890
|
return new Result(true, condition);
|
|
4873
4891
|
};
|
|
4874
4892
|
var callFn = function(value2) {
|
|
@@ -6176,7 +6194,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
6176
6194
|
if (otherRec.includes(e)) remove(result, e);
|
|
6177
6195
|
});
|
|
6178
6196
|
else iterateSimple2(otherRec.getIterator(), function(e) {
|
|
6179
|
-
if (has(
|
|
6197
|
+
if (has(result, e)) remove(result, e);
|
|
6180
6198
|
});
|
|
6181
6199
|
return result;
|
|
6182
6200
|
};
|
|
@@ -6245,11 +6263,32 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
6245
6263
|
hasRequiredEs_set_difference_v2 = 1;
|
|
6246
6264
|
var $2 = require_export();
|
|
6247
6265
|
var difference = requireSetDifference();
|
|
6266
|
+
var fails2 = requireFails();
|
|
6248
6267
|
var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
|
|
6249
|
-
var
|
|
6268
|
+
var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike2("difference", function(result) {
|
|
6250
6269
|
return result.size === 0;
|
|
6251
6270
|
});
|
|
6252
|
-
|
|
6271
|
+
var FORCED = SET_LIKE_INCORRECT_BEHAVIOR || fails2(function() {
|
|
6272
|
+
var setLike = {
|
|
6273
|
+
size: 1,
|
|
6274
|
+
has: function() {
|
|
6275
|
+
return true;
|
|
6276
|
+
},
|
|
6277
|
+
keys: function() {
|
|
6278
|
+
var index2 = 0;
|
|
6279
|
+
return {
|
|
6280
|
+
next: function() {
|
|
6281
|
+
var done = index2++ > 1;
|
|
6282
|
+
if (baseSet.has(1)) baseSet.clear();
|
|
6283
|
+
return { done, value: 2 };
|
|
6284
|
+
}
|
|
6285
|
+
};
|
|
6286
|
+
}
|
|
6287
|
+
};
|
|
6288
|
+
var baseSet = /* @__PURE__ */ new Set([1, 2, 3, 4]);
|
|
6289
|
+
return baseSet.difference(setLike).size !== 3;
|
|
6290
|
+
});
|
|
6291
|
+
$2({ target: "Set", proto: true, real: true, forced: FORCED }, {
|
|
6253
6292
|
difference
|
|
6254
6293
|
});
|
|
6255
6294
|
return es_set_difference_v2;
|
|
@@ -6444,14 +6483,49 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
6444
6483
|
};
|
|
6445
6484
|
return setSymmetricDifference;
|
|
6446
6485
|
}
|
|
6486
|
+
var setMethodGetKeysBeforeCloningDetection;
|
|
6487
|
+
var hasRequiredSetMethodGetKeysBeforeCloningDetection;
|
|
6488
|
+
function requireSetMethodGetKeysBeforeCloningDetection() {
|
|
6489
|
+
if (hasRequiredSetMethodGetKeysBeforeCloningDetection) return setMethodGetKeysBeforeCloningDetection;
|
|
6490
|
+
hasRequiredSetMethodGetKeysBeforeCloningDetection = 1;
|
|
6491
|
+
setMethodGetKeysBeforeCloningDetection = function(METHOD_NAME) {
|
|
6492
|
+
try {
|
|
6493
|
+
var baseSet = /* @__PURE__ */ new Set();
|
|
6494
|
+
var setLike = {
|
|
6495
|
+
size: 0,
|
|
6496
|
+
has: function() {
|
|
6497
|
+
return true;
|
|
6498
|
+
},
|
|
6499
|
+
keys: function() {
|
|
6500
|
+
return Object.defineProperty({}, "next", {
|
|
6501
|
+
get: function() {
|
|
6502
|
+
baseSet.clear();
|
|
6503
|
+
baseSet.add(4);
|
|
6504
|
+
return function() {
|
|
6505
|
+
return { done: true };
|
|
6506
|
+
};
|
|
6507
|
+
}
|
|
6508
|
+
});
|
|
6509
|
+
}
|
|
6510
|
+
};
|
|
6511
|
+
var result = baseSet[METHOD_NAME](setLike);
|
|
6512
|
+
return result.size === 1 && result.values().next().value === 4;
|
|
6513
|
+
} catch (error) {
|
|
6514
|
+
return false;
|
|
6515
|
+
}
|
|
6516
|
+
};
|
|
6517
|
+
return setMethodGetKeysBeforeCloningDetection;
|
|
6518
|
+
}
|
|
6447
6519
|
var hasRequiredEs_set_symmetricDifference_v2;
|
|
6448
6520
|
function requireEs_set_symmetricDifference_v2() {
|
|
6449
6521
|
if (hasRequiredEs_set_symmetricDifference_v2) return es_set_symmetricDifference_v2;
|
|
6450
6522
|
hasRequiredEs_set_symmetricDifference_v2 = 1;
|
|
6451
6523
|
var $2 = require_export();
|
|
6452
6524
|
var symmetricDifference = requireSetSymmetricDifference();
|
|
6525
|
+
var setMethodGetKeysBeforeCloning = requireSetMethodGetKeysBeforeCloningDetection();
|
|
6453
6526
|
var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
|
|
6454
|
-
|
|
6527
|
+
var FORCED = !setMethodAcceptSetLike2("symmetricDifference") || !setMethodGetKeysBeforeCloning("symmetricDifference");
|
|
6528
|
+
$2({ target: "Set", proto: true, real: true, forced: FORCED }, {
|
|
6455
6529
|
symmetricDifference
|
|
6456
6530
|
});
|
|
6457
6531
|
return es_set_symmetricDifference_v2;
|
|
@@ -6484,8 +6558,10 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
6484
6558
|
hasRequiredEs_set_union_v2 = 1;
|
|
6485
6559
|
var $2 = require_export();
|
|
6486
6560
|
var union = requireSetUnion();
|
|
6561
|
+
var setMethodGetKeysBeforeCloning = requireSetMethodGetKeysBeforeCloningDetection();
|
|
6487
6562
|
var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
|
|
6488
|
-
|
|
6563
|
+
var FORCED = !setMethodAcceptSetLike2("union") || !setMethodGetKeysBeforeCloning("union");
|
|
6564
|
+
$2({ target: "Set", proto: true, real: true, forced: FORCED }, {
|
|
6489
6565
|
union
|
|
6490
6566
|
});
|
|
6491
6567
|
return es_set_union_v2;
|
|
@@ -8059,7 +8135,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
8059
8135
|
var charAt = uncurryThis("".charAt);
|
|
8060
8136
|
var exec = uncurryThis(/./.exec);
|
|
8061
8137
|
var join2 = uncurryThis([].join);
|
|
8062
|
-
var numberToString = uncurryThis(1
|
|
8138
|
+
var numberToString = uncurryThis(1.1.toString);
|
|
8063
8139
|
var pop = uncurryThis([].pop);
|
|
8064
8140
|
var push = uncurryThis([].push);
|
|
8065
8141
|
var replace = uncurryThis("".replace);
|
|
@@ -9303,6 +9379,38 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
9303
9379
|
});
|
|
9304
9380
|
return es_error_cause;
|
|
9305
9381
|
}
|
|
9382
|
+
var es_error_isError = {};
|
|
9383
|
+
var hasRequiredEs_error_isError;
|
|
9384
|
+
function requireEs_error_isError() {
|
|
9385
|
+
if (hasRequiredEs_error_isError) return es_error_isError;
|
|
9386
|
+
hasRequiredEs_error_isError = 1;
|
|
9387
|
+
var $2 = require_export();
|
|
9388
|
+
var getBuiltIn2 = requireGetBuiltIn();
|
|
9389
|
+
var isObject2 = requireIsObject();
|
|
9390
|
+
var classof2 = requireClassof();
|
|
9391
|
+
var fails2 = requireFails();
|
|
9392
|
+
var ERROR = "Error";
|
|
9393
|
+
var DOM_EXCEPTION = "DOMException";
|
|
9394
|
+
var PROTOTYPE_SETTING_AVAILABLE = Object.setPrototypeOf || {}.__proto__;
|
|
9395
|
+
var DOMException2 = getBuiltIn2(DOM_EXCEPTION);
|
|
9396
|
+
var $Error = Error;
|
|
9397
|
+
var $isError = $Error.isError;
|
|
9398
|
+
var FORCED = !$isError || !PROTOTYPE_SETTING_AVAILABLE || fails2(function() {
|
|
9399
|
+
return DOMException2 && !$isError(new DOMException2(DOM_EXCEPTION)) || // structuredClone-based implementations
|
|
9400
|
+
// eslint-disable-next-line es/no-error-cause -- detection
|
|
9401
|
+
!$isError(new $Error(ERROR, { cause: function() {
|
|
9402
|
+
} })) || // instanceof-based and FF Error#stack-based implementations
|
|
9403
|
+
$isError(getBuiltIn2("Object", "create")($Error.prototype));
|
|
9404
|
+
});
|
|
9405
|
+
$2({ target: "Error", stat: true, sham: true, forced: FORCED }, {
|
|
9406
|
+
isError: function isError(arg) {
|
|
9407
|
+
if (!isObject2(arg)) return false;
|
|
9408
|
+
var tag = classof2(arg);
|
|
9409
|
+
return tag === ERROR || tag === DOM_EXCEPTION;
|
|
9410
|
+
}
|
|
9411
|
+
});
|
|
9412
|
+
return es_error_isError;
|
|
9413
|
+
}
|
|
9306
9414
|
var es_error_toString = {};
|
|
9307
9415
|
var errorToString;
|
|
9308
9416
|
var hasRequiredErrorToString;
|
|
@@ -9427,6 +9535,61 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
9427
9535
|
});
|
|
9428
9536
|
return es_aggregateError_cause;
|
|
9429
9537
|
}
|
|
9538
|
+
var es_suppressedError_constructor = {};
|
|
9539
|
+
var hasRequiredEs_suppressedError_constructor;
|
|
9540
|
+
function requireEs_suppressedError_constructor() {
|
|
9541
|
+
if (hasRequiredEs_suppressedError_constructor) return es_suppressedError_constructor;
|
|
9542
|
+
hasRequiredEs_suppressedError_constructor = 1;
|
|
9543
|
+
var $2 = require_export();
|
|
9544
|
+
var globalThis2 = requireGlobalThis();
|
|
9545
|
+
var isPrototypeOf = requireObjectIsPrototypeOf();
|
|
9546
|
+
var getPrototypeOf = requireObjectGetPrototypeOf();
|
|
9547
|
+
var setPrototypeOf = requireObjectSetPrototypeOf();
|
|
9548
|
+
var copyConstructorProperties2 = requireCopyConstructorProperties();
|
|
9549
|
+
var create = requireObjectCreate();
|
|
9550
|
+
var createNonEnumerableProperty2 = requireCreateNonEnumerableProperty();
|
|
9551
|
+
var createPropertyDescriptor2 = requireCreatePropertyDescriptor();
|
|
9552
|
+
var installErrorStack = requireErrorStackInstall();
|
|
9553
|
+
var normalizeStringArgument2 = requireNormalizeStringArgument();
|
|
9554
|
+
var wellKnownSymbol2 = requireWellKnownSymbol();
|
|
9555
|
+
var fails2 = requireFails();
|
|
9556
|
+
var IS_PURE = requireIsPure();
|
|
9557
|
+
var NativeSuppressedError = globalThis2.SuppressedError;
|
|
9558
|
+
var TO_STRING_TAG = wellKnownSymbol2("toStringTag");
|
|
9559
|
+
var $Error = Error;
|
|
9560
|
+
var WRONG_ARITY = !!NativeSuppressedError && NativeSuppressedError.length !== 3;
|
|
9561
|
+
var EXTRA_ARGS_SUPPORT = !!NativeSuppressedError && fails2(function() {
|
|
9562
|
+
return new NativeSuppressedError(1, 2, 3, { cause: 4 }).cause === 4;
|
|
9563
|
+
});
|
|
9564
|
+
var PATCH = WRONG_ARITY || EXTRA_ARGS_SUPPORT;
|
|
9565
|
+
var $SuppressedError = function SuppressedError2(error, suppressed, message2) {
|
|
9566
|
+
var isInstance = isPrototypeOf(SuppressedErrorPrototype, this);
|
|
9567
|
+
var that;
|
|
9568
|
+
if (setPrototypeOf) {
|
|
9569
|
+
that = PATCH && (!isInstance || getPrototypeOf(this) === SuppressedErrorPrototype) ? new NativeSuppressedError() : setPrototypeOf(new $Error(), isInstance ? getPrototypeOf(this) : SuppressedErrorPrototype);
|
|
9570
|
+
} else {
|
|
9571
|
+
that = isInstance ? this : create(SuppressedErrorPrototype);
|
|
9572
|
+
createNonEnumerableProperty2(that, TO_STRING_TAG, "Error");
|
|
9573
|
+
}
|
|
9574
|
+
if (message2 !== void 0) createNonEnumerableProperty2(that, "message", normalizeStringArgument2(message2));
|
|
9575
|
+
installErrorStack(that, $SuppressedError, that.stack, 1);
|
|
9576
|
+
createNonEnumerableProperty2(that, "error", error);
|
|
9577
|
+
createNonEnumerableProperty2(that, "suppressed", suppressed);
|
|
9578
|
+
return that;
|
|
9579
|
+
};
|
|
9580
|
+
if (setPrototypeOf) setPrototypeOf($SuppressedError, $Error);
|
|
9581
|
+
else copyConstructorProperties2($SuppressedError, $Error, { name: true });
|
|
9582
|
+
var SuppressedErrorPrototype = $SuppressedError.prototype = PATCH ? NativeSuppressedError.prototype : create($Error.prototype, {
|
|
9583
|
+
constructor: createPropertyDescriptor2(1, $SuppressedError),
|
|
9584
|
+
message: createPropertyDescriptor2(1, ""),
|
|
9585
|
+
name: createPropertyDescriptor2(1, "SuppressedError")
|
|
9586
|
+
});
|
|
9587
|
+
if (PATCH && !IS_PURE) SuppressedErrorPrototype.constructor = $SuppressedError;
|
|
9588
|
+
$2({ global: true, constructor: true, arity: 3, forced: PATCH }, {
|
|
9589
|
+
SuppressedError: $SuppressedError
|
|
9590
|
+
});
|
|
9591
|
+
return es_suppressedError_constructor;
|
|
9592
|
+
}
|
|
9430
9593
|
var es_array_at = {};
|
|
9431
9594
|
var hasRequiredEs_array_at;
|
|
9432
9595
|
function requireEs_array_at() {
|
|
@@ -10650,7 +10813,16 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
10650
10813
|
var arrayWith2 = requireArrayWith();
|
|
10651
10814
|
var toIndexedObject2 = requireToIndexedObject();
|
|
10652
10815
|
var $Array = Array;
|
|
10653
|
-
|
|
10816
|
+
var INCORRECT_EXCEPTION_ON_COERCION_FAIL = function() {
|
|
10817
|
+
try {
|
|
10818
|
+
[]["with"]({ valueOf: function() {
|
|
10819
|
+
throw 4;
|
|
10820
|
+
} }, null);
|
|
10821
|
+
} catch (error) {
|
|
10822
|
+
return error !== 4;
|
|
10823
|
+
}
|
|
10824
|
+
}();
|
|
10825
|
+
$2({ target: "Array", proto: true, forced: INCORRECT_EXCEPTION_ON_COERCION_FAIL }, {
|
|
10654
10826
|
"with": function(index2, value2) {
|
|
10655
10827
|
return arrayWith2(toIndexedObject2(this), $Array, index2, value2);
|
|
10656
10828
|
}
|
|
@@ -11349,6 +11521,105 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
11349
11521
|
requireEs_dataView_constructor();
|
|
11350
11522
|
return es_dataView;
|
|
11351
11523
|
}
|
|
11524
|
+
var es_dataView_getFloat16 = {};
|
|
11525
|
+
var hasRequiredEs_dataView_getFloat16;
|
|
11526
|
+
function requireEs_dataView_getFloat16() {
|
|
11527
|
+
if (hasRequiredEs_dataView_getFloat16) return es_dataView_getFloat16;
|
|
11528
|
+
hasRequiredEs_dataView_getFloat16 = 1;
|
|
11529
|
+
var $2 = require_export();
|
|
11530
|
+
var uncurryThis = requireFunctionUncurryThis();
|
|
11531
|
+
var pow = Math.pow;
|
|
11532
|
+
var EXP_MASK16 = 31;
|
|
11533
|
+
var SIGNIFICAND_MASK16 = 1023;
|
|
11534
|
+
var MIN_SUBNORMAL16 = pow(2, -24);
|
|
11535
|
+
var SIGNIFICAND_DENOM16 = 9765625e-10;
|
|
11536
|
+
var unpackFloat16 = function(bytes) {
|
|
11537
|
+
var sign = bytes >>> 15;
|
|
11538
|
+
var exponent = bytes >>> 10 & EXP_MASK16;
|
|
11539
|
+
var significand = bytes & SIGNIFICAND_MASK16;
|
|
11540
|
+
if (exponent === EXP_MASK16) return significand === 0 ? sign === 0 ? Infinity : -Infinity : NaN;
|
|
11541
|
+
if (exponent === 0) return significand * (sign === 0 ? MIN_SUBNORMAL16 : -MIN_SUBNORMAL16);
|
|
11542
|
+
return pow(2, exponent - 15) * (sign === 0 ? 1 + significand * SIGNIFICAND_DENOM16 : -1 - significand * SIGNIFICAND_DENOM16);
|
|
11543
|
+
};
|
|
11544
|
+
var getUint16 = uncurryThis(DataView.prototype.getUint16);
|
|
11545
|
+
$2({ target: "DataView", proto: true }, {
|
|
11546
|
+
getFloat16: function getFloat16(byteOffset) {
|
|
11547
|
+
return unpackFloat16(getUint16(this, byteOffset, arguments.length > 1 ? arguments[1] : false));
|
|
11548
|
+
}
|
|
11549
|
+
});
|
|
11550
|
+
return es_dataView_getFloat16;
|
|
11551
|
+
}
|
|
11552
|
+
var es_dataView_setFloat16 = {};
|
|
11553
|
+
var aDataView;
|
|
11554
|
+
var hasRequiredADataView;
|
|
11555
|
+
function requireADataView() {
|
|
11556
|
+
if (hasRequiredADataView) return aDataView;
|
|
11557
|
+
hasRequiredADataView = 1;
|
|
11558
|
+
var classof2 = requireClassof();
|
|
11559
|
+
var $TypeError = TypeError;
|
|
11560
|
+
aDataView = function(argument) {
|
|
11561
|
+
if (classof2(argument) === "DataView") return argument;
|
|
11562
|
+
throw new $TypeError("Argument is not a DataView");
|
|
11563
|
+
};
|
|
11564
|
+
return aDataView;
|
|
11565
|
+
}
|
|
11566
|
+
var mathLog2;
|
|
11567
|
+
var hasRequiredMathLog2;
|
|
11568
|
+
function requireMathLog2() {
|
|
11569
|
+
if (hasRequiredMathLog2) return mathLog2;
|
|
11570
|
+
hasRequiredMathLog2 = 1;
|
|
11571
|
+
var log = Math.log;
|
|
11572
|
+
var LN2 = Math.LN2;
|
|
11573
|
+
mathLog2 = Math.log2 || function log2(x) {
|
|
11574
|
+
return log(x) / LN2;
|
|
11575
|
+
};
|
|
11576
|
+
return mathLog2;
|
|
11577
|
+
}
|
|
11578
|
+
var hasRequiredEs_dataView_setFloat16;
|
|
11579
|
+
function requireEs_dataView_setFloat16() {
|
|
11580
|
+
if (hasRequiredEs_dataView_setFloat16) return es_dataView_setFloat16;
|
|
11581
|
+
hasRequiredEs_dataView_setFloat16 = 1;
|
|
11582
|
+
var $2 = require_export();
|
|
11583
|
+
var uncurryThis = requireFunctionUncurryThis();
|
|
11584
|
+
var aDataView2 = requireADataView();
|
|
11585
|
+
var toIndex2 = requireToIndex();
|
|
11586
|
+
var log2 = requireMathLog2();
|
|
11587
|
+
var roundTiesToEven = requireMathRoundTiesToEven();
|
|
11588
|
+
var pow = Math.pow;
|
|
11589
|
+
var MIN_INFINITY16 = 65520;
|
|
11590
|
+
var MIN_NORMAL16 = 61005353927612305e-21;
|
|
11591
|
+
var REC_MIN_SUBNORMAL16 = 16777216;
|
|
11592
|
+
var REC_SIGNIFICAND_DENOM16 = 1024;
|
|
11593
|
+
var packFloat16 = function(value2) {
|
|
11594
|
+
if (value2 !== value2) return 32256;
|
|
11595
|
+
if (value2 === 0) return (1 / value2 === -Infinity) << 15;
|
|
11596
|
+
var neg = value2 < 0;
|
|
11597
|
+
if (neg) value2 = -value2;
|
|
11598
|
+
if (value2 >= MIN_INFINITY16) return neg << 15 | 31744;
|
|
11599
|
+
if (value2 < MIN_NORMAL16) return neg << 15 | roundTiesToEven(value2 * REC_MIN_SUBNORMAL16);
|
|
11600
|
+
var exponent = log2(value2) | 0;
|
|
11601
|
+
if (exponent === -15) {
|
|
11602
|
+
return neg << 15 | REC_SIGNIFICAND_DENOM16;
|
|
11603
|
+
}
|
|
11604
|
+
var significand = roundTiesToEven((value2 * pow(2, -exponent) - 1) * REC_SIGNIFICAND_DENOM16);
|
|
11605
|
+
if (significand === REC_SIGNIFICAND_DENOM16) {
|
|
11606
|
+
return neg << 15 | exponent + 16 << 10;
|
|
11607
|
+
}
|
|
11608
|
+
return neg << 15 | exponent + 15 << 10 | significand;
|
|
11609
|
+
};
|
|
11610
|
+
var setUint16 = uncurryThis(DataView.prototype.setUint16);
|
|
11611
|
+
$2({ target: "DataView", proto: true }, {
|
|
11612
|
+
setFloat16: function setFloat16(byteOffset, value2) {
|
|
11613
|
+
setUint16(
|
|
11614
|
+
aDataView2(this),
|
|
11615
|
+
toIndex2(byteOffset),
|
|
11616
|
+
packFloat16(+value2),
|
|
11617
|
+
arguments.length > 2 ? arguments[2] : false
|
|
11618
|
+
);
|
|
11619
|
+
}
|
|
11620
|
+
});
|
|
11621
|
+
return es_dataView_setFloat16;
|
|
11622
|
+
}
|
|
11352
11623
|
var es_arrayBuffer_detached = {};
|
|
11353
11624
|
var arrayBufferByteLength;
|
|
11354
11625
|
var hasRequiredArrayBufferByteLength;
|
|
@@ -11817,6 +12088,167 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
11817
12088
|
}
|
|
11818
12089
|
return es_date_toString;
|
|
11819
12090
|
}
|
|
12091
|
+
var es_disposableStack_constructor = {};
|
|
12092
|
+
var addDisposableResource;
|
|
12093
|
+
var hasRequiredAddDisposableResource;
|
|
12094
|
+
function requireAddDisposableResource() {
|
|
12095
|
+
if (hasRequiredAddDisposableResource) return addDisposableResource;
|
|
12096
|
+
hasRequiredAddDisposableResource = 1;
|
|
12097
|
+
var getBuiltIn2 = requireGetBuiltIn();
|
|
12098
|
+
var call = requireFunctionCall();
|
|
12099
|
+
var uncurryThis = requireFunctionUncurryThis();
|
|
12100
|
+
var bind2 = requireFunctionBindContext();
|
|
12101
|
+
var anObject2 = requireAnObject();
|
|
12102
|
+
var aCallable2 = requireACallable();
|
|
12103
|
+
var isNullOrUndefined2 = requireIsNullOrUndefined();
|
|
12104
|
+
var getMethod2 = requireGetMethod();
|
|
12105
|
+
var wellKnownSymbol2 = requireWellKnownSymbol();
|
|
12106
|
+
var ASYNC_DISPOSE = wellKnownSymbol2("asyncDispose");
|
|
12107
|
+
var DISPOSE = wellKnownSymbol2("dispose");
|
|
12108
|
+
var push = uncurryThis([].push);
|
|
12109
|
+
var getDisposeMethod = function(V, hint) {
|
|
12110
|
+
if (hint === "async-dispose") {
|
|
12111
|
+
var method = getMethod2(V, ASYNC_DISPOSE);
|
|
12112
|
+
if (method !== void 0) return method;
|
|
12113
|
+
method = getMethod2(V, DISPOSE);
|
|
12114
|
+
if (method === void 0) return method;
|
|
12115
|
+
return function() {
|
|
12116
|
+
var O = this;
|
|
12117
|
+
var Promise2 = getBuiltIn2("Promise");
|
|
12118
|
+
return new Promise2(function(resolve) {
|
|
12119
|
+
call(method, O);
|
|
12120
|
+
resolve(void 0);
|
|
12121
|
+
});
|
|
12122
|
+
};
|
|
12123
|
+
}
|
|
12124
|
+
return getMethod2(V, DISPOSE);
|
|
12125
|
+
};
|
|
12126
|
+
var createDisposableResource = function(V, hint, method) {
|
|
12127
|
+
if (arguments.length < 3 && !isNullOrUndefined2(V)) {
|
|
12128
|
+
method = aCallable2(getDisposeMethod(anObject2(V), hint));
|
|
12129
|
+
}
|
|
12130
|
+
return method === void 0 ? function() {
|
|
12131
|
+
return void 0;
|
|
12132
|
+
} : bind2(method, V);
|
|
12133
|
+
};
|
|
12134
|
+
addDisposableResource = function(disposable, V, hint, method) {
|
|
12135
|
+
var resource;
|
|
12136
|
+
if (arguments.length < 4) {
|
|
12137
|
+
if (isNullOrUndefined2(V) && hint === "sync-dispose") return;
|
|
12138
|
+
resource = createDisposableResource(V, hint);
|
|
12139
|
+
} else {
|
|
12140
|
+
resource = createDisposableResource(void 0, hint, method);
|
|
12141
|
+
}
|
|
12142
|
+
push(disposable.stack, resource);
|
|
12143
|
+
};
|
|
12144
|
+
return addDisposableResource;
|
|
12145
|
+
}
|
|
12146
|
+
var hasRequiredEs_disposableStack_constructor;
|
|
12147
|
+
function requireEs_disposableStack_constructor() {
|
|
12148
|
+
if (hasRequiredEs_disposableStack_constructor) return es_disposableStack_constructor;
|
|
12149
|
+
hasRequiredEs_disposableStack_constructor = 1;
|
|
12150
|
+
var $2 = require_export();
|
|
12151
|
+
var DESCRIPTORS = requireDescriptors();
|
|
12152
|
+
var getBuiltIn2 = requireGetBuiltIn();
|
|
12153
|
+
var aCallable2 = requireACallable();
|
|
12154
|
+
var anInstance2 = requireAnInstance();
|
|
12155
|
+
var defineBuiltIn2 = requireDefineBuiltIn();
|
|
12156
|
+
var defineBuiltIns2 = requireDefineBuiltIns();
|
|
12157
|
+
var defineBuiltInAccessor2 = requireDefineBuiltInAccessor();
|
|
12158
|
+
var wellKnownSymbol2 = requireWellKnownSymbol();
|
|
12159
|
+
var InternalStateModule = requireInternalState();
|
|
12160
|
+
var addDisposableResource2 = requireAddDisposableResource();
|
|
12161
|
+
var SuppressedError2 = getBuiltIn2("SuppressedError");
|
|
12162
|
+
var $ReferenceError = ReferenceError;
|
|
12163
|
+
var DISPOSE = wellKnownSymbol2("dispose");
|
|
12164
|
+
var TO_STRING_TAG = wellKnownSymbol2("toStringTag");
|
|
12165
|
+
var DISPOSABLE_STACK = "DisposableStack";
|
|
12166
|
+
var setInternalState = InternalStateModule.set;
|
|
12167
|
+
var getDisposableStackInternalState = InternalStateModule.getterFor(DISPOSABLE_STACK);
|
|
12168
|
+
var HINT = "sync-dispose";
|
|
12169
|
+
var DISPOSED = "disposed";
|
|
12170
|
+
var PENDING = "pending";
|
|
12171
|
+
var getPendingDisposableStackInternalState = function(stack) {
|
|
12172
|
+
var internalState2 = getDisposableStackInternalState(stack);
|
|
12173
|
+
if (internalState2.state === DISPOSED) throw new $ReferenceError(DISPOSABLE_STACK + " already disposed");
|
|
12174
|
+
return internalState2;
|
|
12175
|
+
};
|
|
12176
|
+
var $DisposableStack = function DisposableStack() {
|
|
12177
|
+
setInternalState(anInstance2(this, DisposableStackPrototype), {
|
|
12178
|
+
type: DISPOSABLE_STACK,
|
|
12179
|
+
state: PENDING,
|
|
12180
|
+
stack: []
|
|
12181
|
+
});
|
|
12182
|
+
if (!DESCRIPTORS) this.disposed = false;
|
|
12183
|
+
};
|
|
12184
|
+
var DisposableStackPrototype = $DisposableStack.prototype;
|
|
12185
|
+
defineBuiltIns2(DisposableStackPrototype, {
|
|
12186
|
+
dispose: function dispose() {
|
|
12187
|
+
var internalState2 = getDisposableStackInternalState(this);
|
|
12188
|
+
if (internalState2.state === DISPOSED) return;
|
|
12189
|
+
internalState2.state = DISPOSED;
|
|
12190
|
+
if (!DESCRIPTORS) this.disposed = true;
|
|
12191
|
+
var stack = internalState2.stack;
|
|
12192
|
+
var i = stack.length;
|
|
12193
|
+
var thrown = false;
|
|
12194
|
+
var suppressed;
|
|
12195
|
+
while (i) {
|
|
12196
|
+
var disposeMethod = stack[--i];
|
|
12197
|
+
stack[i] = null;
|
|
12198
|
+
try {
|
|
12199
|
+
disposeMethod();
|
|
12200
|
+
} catch (errorResult) {
|
|
12201
|
+
if (thrown) {
|
|
12202
|
+
suppressed = new SuppressedError2(errorResult, suppressed);
|
|
12203
|
+
} else {
|
|
12204
|
+
thrown = true;
|
|
12205
|
+
suppressed = errorResult;
|
|
12206
|
+
}
|
|
12207
|
+
}
|
|
12208
|
+
}
|
|
12209
|
+
internalState2.stack = null;
|
|
12210
|
+
if (thrown) throw suppressed;
|
|
12211
|
+
},
|
|
12212
|
+
use: function use(value2) {
|
|
12213
|
+
addDisposableResource2(getPendingDisposableStackInternalState(this), value2, HINT);
|
|
12214
|
+
return value2;
|
|
12215
|
+
},
|
|
12216
|
+
adopt: function adopt(value2, onDispose) {
|
|
12217
|
+
var internalState2 = getPendingDisposableStackInternalState(this);
|
|
12218
|
+
aCallable2(onDispose);
|
|
12219
|
+
addDisposableResource2(internalState2, void 0, HINT, function() {
|
|
12220
|
+
onDispose(value2);
|
|
12221
|
+
});
|
|
12222
|
+
return value2;
|
|
12223
|
+
},
|
|
12224
|
+
defer: function defer2(onDispose) {
|
|
12225
|
+
var internalState2 = getPendingDisposableStackInternalState(this);
|
|
12226
|
+
aCallable2(onDispose);
|
|
12227
|
+
addDisposableResource2(internalState2, void 0, HINT, onDispose);
|
|
12228
|
+
},
|
|
12229
|
+
move: function move() {
|
|
12230
|
+
var internalState2 = getPendingDisposableStackInternalState(this);
|
|
12231
|
+
var newDisposableStack = new $DisposableStack();
|
|
12232
|
+
getDisposableStackInternalState(newDisposableStack).stack = internalState2.stack;
|
|
12233
|
+
internalState2.stack = [];
|
|
12234
|
+
internalState2.state = DISPOSED;
|
|
12235
|
+
if (!DESCRIPTORS) this.disposed = true;
|
|
12236
|
+
return newDisposableStack;
|
|
12237
|
+
}
|
|
12238
|
+
});
|
|
12239
|
+
if (DESCRIPTORS) defineBuiltInAccessor2(DisposableStackPrototype, "disposed", {
|
|
12240
|
+
configurable: true,
|
|
12241
|
+
get: function disposed() {
|
|
12242
|
+
return getDisposableStackInternalState(this).state === DISPOSED;
|
|
12243
|
+
}
|
|
12244
|
+
});
|
|
12245
|
+
defineBuiltIn2(DisposableStackPrototype, DISPOSE, DisposableStackPrototype.dispose, { name: "dispose" });
|
|
12246
|
+
defineBuiltIn2(DisposableStackPrototype, TO_STRING_TAG, DISPOSABLE_STACK, { nonWritable: true });
|
|
12247
|
+
$2({ global: true, constructor: true }, {
|
|
12248
|
+
DisposableStack: $DisposableStack
|
|
12249
|
+
});
|
|
12250
|
+
return es_disposableStack_constructor;
|
|
12251
|
+
}
|
|
11820
12252
|
var es_escape = {};
|
|
11821
12253
|
var hasRequiredEs_escape;
|
|
11822
12254
|
function requireEs_escape() {
|
|
@@ -11828,7 +12260,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
11828
12260
|
var charAt = uncurryThis("".charAt);
|
|
11829
12261
|
var charCodeAt = uncurryThis("".charCodeAt);
|
|
11830
12262
|
var exec = uncurryThis(/./.exec);
|
|
11831
|
-
var numberToString = uncurryThis(1
|
|
12263
|
+
var numberToString = uncurryThis(1.1.toString);
|
|
11832
12264
|
var toUpperCase = uncurryThis("".toUpperCase);
|
|
11833
12265
|
var raw = /[\w*+\-./@]/;
|
|
11834
12266
|
var hex = function(code, length) {
|
|
@@ -12029,6 +12461,26 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12029
12461
|
});
|
|
12030
12462
|
return es_iterator_constructor;
|
|
12031
12463
|
}
|
|
12464
|
+
var es_iterator_dispose = {};
|
|
12465
|
+
var hasRequiredEs_iterator_dispose;
|
|
12466
|
+
function requireEs_iterator_dispose() {
|
|
12467
|
+
if (hasRequiredEs_iterator_dispose) return es_iterator_dispose;
|
|
12468
|
+
hasRequiredEs_iterator_dispose = 1;
|
|
12469
|
+
var call = requireFunctionCall();
|
|
12470
|
+
var defineBuiltIn2 = requireDefineBuiltIn();
|
|
12471
|
+
var getMethod2 = requireGetMethod();
|
|
12472
|
+
var hasOwn = requireHasOwnProperty();
|
|
12473
|
+
var wellKnownSymbol2 = requireWellKnownSymbol();
|
|
12474
|
+
var IteratorPrototype = requireIteratorsCore().IteratorPrototype;
|
|
12475
|
+
var DISPOSE = wellKnownSymbol2("dispose");
|
|
12476
|
+
if (!hasOwn(IteratorPrototype, DISPOSE)) {
|
|
12477
|
+
defineBuiltIn2(IteratorPrototype, DISPOSE, function() {
|
|
12478
|
+
var $return = getMethod2(this, "return");
|
|
12479
|
+
if ($return) call($return, this);
|
|
12480
|
+
});
|
|
12481
|
+
}
|
|
12482
|
+
return es_iterator_dispose;
|
|
12483
|
+
}
|
|
12032
12484
|
var es_iterator_drop = {};
|
|
12033
12485
|
var notANan;
|
|
12034
12486
|
var hasRequiredNotANan;
|
|
@@ -12056,6 +12508,27 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12056
12508
|
};
|
|
12057
12509
|
return toPositiveInteger;
|
|
12058
12510
|
}
|
|
12511
|
+
var iteratorCloseAll;
|
|
12512
|
+
var hasRequiredIteratorCloseAll;
|
|
12513
|
+
function requireIteratorCloseAll() {
|
|
12514
|
+
if (hasRequiredIteratorCloseAll) return iteratorCloseAll;
|
|
12515
|
+
hasRequiredIteratorCloseAll = 1;
|
|
12516
|
+
var iteratorClose2 = requireIteratorClose();
|
|
12517
|
+
iteratorCloseAll = function(iters, kind, value2) {
|
|
12518
|
+
for (var i = iters.length - 1; i >= 0; i--) {
|
|
12519
|
+
if (iters[i] === void 0) continue;
|
|
12520
|
+
try {
|
|
12521
|
+
value2 = iteratorClose2(iters[i].iterator, kind, value2);
|
|
12522
|
+
} catch (error) {
|
|
12523
|
+
kind = "throw";
|
|
12524
|
+
value2 = error;
|
|
12525
|
+
}
|
|
12526
|
+
}
|
|
12527
|
+
if (kind === "throw") throw value2;
|
|
12528
|
+
return value2;
|
|
12529
|
+
};
|
|
12530
|
+
return iteratorCloseAll;
|
|
12531
|
+
}
|
|
12059
12532
|
var iteratorCreateProxy;
|
|
12060
12533
|
var hasRequiredIteratorCreateProxy;
|
|
12061
12534
|
function requireIteratorCreateProxy() {
|
|
@@ -12071,9 +12544,12 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12071
12544
|
var IteratorPrototype = requireIteratorsCore().IteratorPrototype;
|
|
12072
12545
|
var createIterResultObject2 = requireCreateIterResultObject();
|
|
12073
12546
|
var iteratorClose2 = requireIteratorClose();
|
|
12547
|
+
var iteratorCloseAll2 = requireIteratorCloseAll();
|
|
12074
12548
|
var TO_STRING_TAG = wellKnownSymbol2("toStringTag");
|
|
12075
12549
|
var ITERATOR_HELPER = "IteratorHelper";
|
|
12076
12550
|
var WRAP_FOR_VALID_ITERATOR = "WrapForValidIterator";
|
|
12551
|
+
var NORMAL = "normal";
|
|
12552
|
+
var THROW = "throw";
|
|
12077
12553
|
var setInternalState = InternalStateModule.set;
|
|
12078
12554
|
var createIteratorProxyPrototype = function(IS_ITERATOR) {
|
|
12079
12555
|
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
@@ -12099,11 +12575,16 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12099
12575
|
return returnMethod ? call(returnMethod, iterator) : createIterResultObject2(void 0, true);
|
|
12100
12576
|
}
|
|
12101
12577
|
if (state.inner) try {
|
|
12102
|
-
iteratorClose2(state.inner.iterator,
|
|
12578
|
+
iteratorClose2(state.inner.iterator, NORMAL);
|
|
12579
|
+
} catch (error) {
|
|
12580
|
+
return iteratorClose2(iterator, THROW, error);
|
|
12581
|
+
}
|
|
12582
|
+
if (state.openIters) try {
|
|
12583
|
+
iteratorCloseAll2(state.openIters, NORMAL);
|
|
12103
12584
|
} catch (error) {
|
|
12104
|
-
return iteratorClose2(iterator,
|
|
12585
|
+
return iteratorClose2(iterator, THROW, error);
|
|
12105
12586
|
}
|
|
12106
|
-
if (iterator) iteratorClose2(iterator,
|
|
12587
|
+
if (iterator) iteratorClose2(iterator, NORMAL);
|
|
12107
12588
|
return createIterResultObject2(void 0, true);
|
|
12108
12589
|
}
|
|
12109
12590
|
});
|
|
@@ -12129,6 +12610,48 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12129
12610
|
};
|
|
12130
12611
|
return iteratorCreateProxy;
|
|
12131
12612
|
}
|
|
12613
|
+
var iteratorHelperThrowsOnInvalidIterator;
|
|
12614
|
+
var hasRequiredIteratorHelperThrowsOnInvalidIterator;
|
|
12615
|
+
function requireIteratorHelperThrowsOnInvalidIterator() {
|
|
12616
|
+
if (hasRequiredIteratorHelperThrowsOnInvalidIterator) return iteratorHelperThrowsOnInvalidIterator;
|
|
12617
|
+
hasRequiredIteratorHelperThrowsOnInvalidIterator = 1;
|
|
12618
|
+
iteratorHelperThrowsOnInvalidIterator = function(methodName, argument) {
|
|
12619
|
+
var method = typeof Iterator == "function" && Iterator.prototype[methodName];
|
|
12620
|
+
if (method) try {
|
|
12621
|
+
method.call({ next: null }, argument).next();
|
|
12622
|
+
} catch (error) {
|
|
12623
|
+
return true;
|
|
12624
|
+
}
|
|
12625
|
+
};
|
|
12626
|
+
return iteratorHelperThrowsOnInvalidIterator;
|
|
12627
|
+
}
|
|
12628
|
+
var iteratorHelperWithoutClosingOnEarlyError;
|
|
12629
|
+
var hasRequiredIteratorHelperWithoutClosingOnEarlyError;
|
|
12630
|
+
function requireIteratorHelperWithoutClosingOnEarlyError() {
|
|
12631
|
+
if (hasRequiredIteratorHelperWithoutClosingOnEarlyError) return iteratorHelperWithoutClosingOnEarlyError;
|
|
12632
|
+
hasRequiredIteratorHelperWithoutClosingOnEarlyError = 1;
|
|
12633
|
+
var globalThis2 = requireGlobalThis();
|
|
12634
|
+
iteratorHelperWithoutClosingOnEarlyError = function(METHOD_NAME, ExpectedError) {
|
|
12635
|
+
var Iterator2 = globalThis2.Iterator;
|
|
12636
|
+
var IteratorPrototype = Iterator2 && Iterator2.prototype;
|
|
12637
|
+
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
|
|
12638
|
+
var CLOSED = false;
|
|
12639
|
+
if (method) try {
|
|
12640
|
+
method.call({
|
|
12641
|
+
next: function() {
|
|
12642
|
+
return { done: true };
|
|
12643
|
+
},
|
|
12644
|
+
"return": function() {
|
|
12645
|
+
CLOSED = true;
|
|
12646
|
+
}
|
|
12647
|
+
}, -1);
|
|
12648
|
+
} catch (error) {
|
|
12649
|
+
if (!(error instanceof ExpectedError)) CLOSED = false;
|
|
12650
|
+
}
|
|
12651
|
+
if (!CLOSED) return method;
|
|
12652
|
+
};
|
|
12653
|
+
return iteratorHelperWithoutClosingOnEarlyError;
|
|
12654
|
+
}
|
|
12132
12655
|
var hasRequiredEs_iterator_drop;
|
|
12133
12656
|
function requireEs_iterator_drop() {
|
|
12134
12657
|
if (hasRequiredEs_iterator_drop) return es_iterator_drop;
|
|
@@ -12139,8 +12662,14 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12139
12662
|
var getIteratorDirect2 = requireGetIteratorDirect();
|
|
12140
12663
|
var notANaN = requireNotANan();
|
|
12141
12664
|
var toPositiveInteger2 = requireToPositiveInteger();
|
|
12665
|
+
var iteratorClose2 = requireIteratorClose();
|
|
12142
12666
|
var createIteratorProxy = requireIteratorCreateProxy();
|
|
12667
|
+
var iteratorHelperThrowsOnInvalidIterator2 = requireIteratorHelperThrowsOnInvalidIterator();
|
|
12668
|
+
var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
|
|
12143
12669
|
var IS_PURE = requireIsPure();
|
|
12670
|
+
var DROP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator2("drop", 0);
|
|
12671
|
+
var dropWithoutClosingOnEarlyError = !IS_PURE && !DROP_WITHOUT_THROWING_ON_INVALID_ITERATOR && iteratorHelperWithoutClosingOnEarlyError2("drop", RangeError);
|
|
12672
|
+
var FORCED = IS_PURE || DROP_WITHOUT_THROWING_ON_INVALID_ITERATOR || dropWithoutClosingOnEarlyError;
|
|
12144
12673
|
var IteratorProxy = createIteratorProxy(function() {
|
|
12145
12674
|
var iterator = this.iterator;
|
|
12146
12675
|
var next = this.next;
|
|
@@ -12155,10 +12684,16 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12155
12684
|
done = this.done = !!result.done;
|
|
12156
12685
|
if (!done) return result.value;
|
|
12157
12686
|
});
|
|
12158
|
-
$2({ target: "Iterator", proto: true, real: true, forced:
|
|
12687
|
+
$2({ target: "Iterator", proto: true, real: true, forced: FORCED }, {
|
|
12159
12688
|
drop: function drop(limit) {
|
|
12160
12689
|
anObject2(this);
|
|
12161
|
-
var remaining
|
|
12690
|
+
var remaining;
|
|
12691
|
+
try {
|
|
12692
|
+
remaining = toPositiveInteger2(notANaN(+limit));
|
|
12693
|
+
} catch (error) {
|
|
12694
|
+
iteratorClose2(this, "throw", error);
|
|
12695
|
+
}
|
|
12696
|
+
if (dropWithoutClosingOnEarlyError) return call(dropWithoutClosingOnEarlyError, this, remaining);
|
|
12162
12697
|
return new IteratorProxy(getIteratorDirect2(this), {
|
|
12163
12698
|
remaining
|
|
12164
12699
|
});
|
|
@@ -12172,14 +12707,23 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12172
12707
|
if (hasRequiredEs_iterator_every) return es_iterator_every;
|
|
12173
12708
|
hasRequiredEs_iterator_every = 1;
|
|
12174
12709
|
var $2 = require_export();
|
|
12710
|
+
var call = requireFunctionCall();
|
|
12175
12711
|
var iterate2 = requireIterate();
|
|
12176
12712
|
var aCallable2 = requireACallable();
|
|
12177
12713
|
var anObject2 = requireAnObject();
|
|
12178
12714
|
var getIteratorDirect2 = requireGetIteratorDirect();
|
|
12179
|
-
|
|
12715
|
+
var iteratorClose2 = requireIteratorClose();
|
|
12716
|
+
var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
|
|
12717
|
+
var everyWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError2("every", TypeError);
|
|
12718
|
+
$2({ target: "Iterator", proto: true, real: true, forced: everyWithoutClosingOnEarlyError }, {
|
|
12180
12719
|
every: function every(predicate) {
|
|
12181
12720
|
anObject2(this);
|
|
12182
|
-
|
|
12721
|
+
try {
|
|
12722
|
+
aCallable2(predicate);
|
|
12723
|
+
} catch (error) {
|
|
12724
|
+
iteratorClose2(this, "throw", error);
|
|
12725
|
+
}
|
|
12726
|
+
if (everyWithoutClosingOnEarlyError) return call(everyWithoutClosingOnEarlyError, this, predicate);
|
|
12183
12727
|
var record = getIteratorDirect2(this);
|
|
12184
12728
|
var counter2 = 0;
|
|
12185
12729
|
return !iterate2(record, function(value2, stop) {
|
|
@@ -12202,6 +12746,13 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12202
12746
|
var createIteratorProxy = requireIteratorCreateProxy();
|
|
12203
12747
|
var callWithSafeIterationClosing2 = requireCallWithSafeIterationClosing();
|
|
12204
12748
|
var IS_PURE = requireIsPure();
|
|
12749
|
+
var iteratorClose2 = requireIteratorClose();
|
|
12750
|
+
var iteratorHelperThrowsOnInvalidIterator2 = requireIteratorHelperThrowsOnInvalidIterator();
|
|
12751
|
+
var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
|
|
12752
|
+
var FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator2("filter", function() {
|
|
12753
|
+
});
|
|
12754
|
+
var filterWithoutClosingOnEarlyError = !IS_PURE && !FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR && iteratorHelperWithoutClosingOnEarlyError2("filter", TypeError);
|
|
12755
|
+
var FORCED = IS_PURE || FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR || filterWithoutClosingOnEarlyError;
|
|
12205
12756
|
var IteratorProxy = createIteratorProxy(function() {
|
|
12206
12757
|
var iterator = this.iterator;
|
|
12207
12758
|
var predicate = this.predicate;
|
|
@@ -12215,10 +12766,15 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12215
12766
|
if (callWithSafeIterationClosing2(iterator, predicate, [value2, this.counter++], true)) return value2;
|
|
12216
12767
|
}
|
|
12217
12768
|
});
|
|
12218
|
-
$2({ target: "Iterator", proto: true, real: true, forced:
|
|
12769
|
+
$2({ target: "Iterator", proto: true, real: true, forced: FORCED }, {
|
|
12219
12770
|
filter: function filter(predicate) {
|
|
12220
12771
|
anObject2(this);
|
|
12221
|
-
|
|
12772
|
+
try {
|
|
12773
|
+
aCallable2(predicate);
|
|
12774
|
+
} catch (error) {
|
|
12775
|
+
iteratorClose2(this, "throw", error);
|
|
12776
|
+
}
|
|
12777
|
+
if (filterWithoutClosingOnEarlyError) return call(filterWithoutClosingOnEarlyError, this, predicate);
|
|
12222
12778
|
return new IteratorProxy(getIteratorDirect2(this), {
|
|
12223
12779
|
predicate
|
|
12224
12780
|
});
|
|
@@ -12232,14 +12788,23 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12232
12788
|
if (hasRequiredEs_iterator_find) return es_iterator_find;
|
|
12233
12789
|
hasRequiredEs_iterator_find = 1;
|
|
12234
12790
|
var $2 = require_export();
|
|
12791
|
+
var call = requireFunctionCall();
|
|
12235
12792
|
var iterate2 = requireIterate();
|
|
12236
12793
|
var aCallable2 = requireACallable();
|
|
12237
12794
|
var anObject2 = requireAnObject();
|
|
12238
12795
|
var getIteratorDirect2 = requireGetIteratorDirect();
|
|
12239
|
-
|
|
12796
|
+
var iteratorClose2 = requireIteratorClose();
|
|
12797
|
+
var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
|
|
12798
|
+
var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError2("find", TypeError);
|
|
12799
|
+
$2({ target: "Iterator", proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {
|
|
12240
12800
|
find: function find2(predicate) {
|
|
12241
12801
|
anObject2(this);
|
|
12242
|
-
|
|
12802
|
+
try {
|
|
12803
|
+
aCallable2(predicate);
|
|
12804
|
+
} catch (error) {
|
|
12805
|
+
iteratorClose2(this, "throw", error);
|
|
12806
|
+
}
|
|
12807
|
+
if (findWithoutClosingOnEarlyError) return call(findWithoutClosingOnEarlyError, this, predicate);
|
|
12243
12808
|
var record = getIteratorDirect2(this);
|
|
12244
12809
|
var counter2 = 0;
|
|
12245
12810
|
return iterate2(record, function(value2, stop) {
|
|
@@ -12279,6 +12844,12 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12279
12844
|
var createIteratorProxy = requireIteratorCreateProxy();
|
|
12280
12845
|
var iteratorClose2 = requireIteratorClose();
|
|
12281
12846
|
var IS_PURE = requireIsPure();
|
|
12847
|
+
var iteratorHelperThrowsOnInvalidIterator2 = requireIteratorHelperThrowsOnInvalidIterator();
|
|
12848
|
+
var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
|
|
12849
|
+
var FLAT_MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator2("flatMap", function() {
|
|
12850
|
+
});
|
|
12851
|
+
var flatMapWithoutClosingOnEarlyError = !IS_PURE && !FLAT_MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR && iteratorHelperWithoutClosingOnEarlyError2("flatMap", TypeError);
|
|
12852
|
+
var FORCED = IS_PURE || FLAT_MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || flatMapWithoutClosingOnEarlyError;
|
|
12282
12853
|
var IteratorProxy = createIteratorProxy(function() {
|
|
12283
12854
|
var iterator = this.iterator;
|
|
12284
12855
|
var mapper = this.mapper;
|
|
@@ -12300,10 +12871,15 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12300
12871
|
}
|
|
12301
12872
|
}
|
|
12302
12873
|
});
|
|
12303
|
-
$2({ target: "Iterator", proto: true, real: true, forced:
|
|
12874
|
+
$2({ target: "Iterator", proto: true, real: true, forced: FORCED }, {
|
|
12304
12875
|
flatMap: function flatMap(mapper) {
|
|
12305
12876
|
anObject2(this);
|
|
12306
|
-
|
|
12877
|
+
try {
|
|
12878
|
+
aCallable2(mapper);
|
|
12879
|
+
} catch (error) {
|
|
12880
|
+
iteratorClose2(this, "throw", error);
|
|
12881
|
+
}
|
|
12882
|
+
if (flatMapWithoutClosingOnEarlyError) return call(flatMapWithoutClosingOnEarlyError, this, mapper);
|
|
12307
12883
|
return new IteratorProxy(getIteratorDirect2(this), {
|
|
12308
12884
|
mapper,
|
|
12309
12885
|
inner: null
|
|
@@ -12318,14 +12894,23 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12318
12894
|
if (hasRequiredEs_iterator_forEach) return es_iterator_forEach;
|
|
12319
12895
|
hasRequiredEs_iterator_forEach = 1;
|
|
12320
12896
|
var $2 = require_export();
|
|
12897
|
+
var call = requireFunctionCall();
|
|
12321
12898
|
var iterate2 = requireIterate();
|
|
12322
12899
|
var aCallable2 = requireACallable();
|
|
12323
12900
|
var anObject2 = requireAnObject();
|
|
12324
12901
|
var getIteratorDirect2 = requireGetIteratorDirect();
|
|
12325
|
-
|
|
12902
|
+
var iteratorClose2 = requireIteratorClose();
|
|
12903
|
+
var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
|
|
12904
|
+
var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError2("forEach", TypeError);
|
|
12905
|
+
$2({ target: "Iterator", proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
|
|
12326
12906
|
forEach: function forEach2(fn) {
|
|
12327
12907
|
anObject2(this);
|
|
12328
|
-
|
|
12908
|
+
try {
|
|
12909
|
+
aCallable2(fn);
|
|
12910
|
+
} catch (error) {
|
|
12911
|
+
iteratorClose2(this, "throw", error);
|
|
12912
|
+
}
|
|
12913
|
+
if (forEachWithoutClosingOnEarlyError) return call(forEachWithoutClosingOnEarlyError, this, fn);
|
|
12329
12914
|
var record = getIteratorDirect2(this);
|
|
12330
12915
|
var counter2 = 0;
|
|
12331
12916
|
iterate2(record, function(value2) {
|
|
@@ -12348,10 +12933,17 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12348
12933
|
var createIteratorProxy = requireIteratorCreateProxy();
|
|
12349
12934
|
var getIteratorFlattenable2 = requireGetIteratorFlattenable();
|
|
12350
12935
|
var IS_PURE = requireIsPure();
|
|
12936
|
+
var FORCED = IS_PURE || function() {
|
|
12937
|
+
try {
|
|
12938
|
+
Iterator.from({ "return": null })["return"]();
|
|
12939
|
+
} catch (error) {
|
|
12940
|
+
return true;
|
|
12941
|
+
}
|
|
12942
|
+
}();
|
|
12351
12943
|
var IteratorProxy = createIteratorProxy(function() {
|
|
12352
12944
|
return call(this.next, this.iterator);
|
|
12353
12945
|
}, true);
|
|
12354
|
-
$2({ target: "Iterator", stat: true, forced:
|
|
12946
|
+
$2({ target: "Iterator", stat: true, forced: FORCED }, {
|
|
12355
12947
|
from: function from2(O) {
|
|
12356
12948
|
var iteratorRecord = getIteratorFlattenable2(typeof O == "string" ? toObject2(O) : O, true);
|
|
12357
12949
|
return isPrototypeOf(IteratorPrototype, iteratorRecord.iterator) ? iteratorRecord.iterator : new IteratorProxy(iteratorRecord);
|
|
@@ -12360,41 +12952,44 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12360
12952
|
return es_iterator_from;
|
|
12361
12953
|
}
|
|
12362
12954
|
var es_iterator_map = {};
|
|
12363
|
-
var
|
|
12364
|
-
|
|
12365
|
-
|
|
12366
|
-
|
|
12367
|
-
|
|
12955
|
+
var hasRequiredEs_iterator_map;
|
|
12956
|
+
function requireEs_iterator_map() {
|
|
12957
|
+
if (hasRequiredEs_iterator_map) return es_iterator_map;
|
|
12958
|
+
hasRequiredEs_iterator_map = 1;
|
|
12959
|
+
var $2 = require_export();
|
|
12368
12960
|
var call = requireFunctionCall();
|
|
12369
12961
|
var aCallable2 = requireACallable();
|
|
12370
12962
|
var anObject2 = requireAnObject();
|
|
12371
12963
|
var getIteratorDirect2 = requireGetIteratorDirect();
|
|
12372
12964
|
var createIteratorProxy = requireIteratorCreateProxy();
|
|
12373
12965
|
var callWithSafeIterationClosing2 = requireCallWithSafeIterationClosing();
|
|
12966
|
+
var iteratorClose2 = requireIteratorClose();
|
|
12967
|
+
var iteratorHelperThrowsOnInvalidIterator2 = requireIteratorHelperThrowsOnInvalidIterator();
|
|
12968
|
+
var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
|
|
12969
|
+
var IS_PURE = requireIsPure();
|
|
12970
|
+
var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator2("map", function() {
|
|
12971
|
+
});
|
|
12972
|
+
var mapWithoutClosingOnEarlyError = !IS_PURE && !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR && iteratorHelperWithoutClosingOnEarlyError2("map", TypeError);
|
|
12973
|
+
var FORCED = IS_PURE || MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;
|
|
12374
12974
|
var IteratorProxy = createIteratorProxy(function() {
|
|
12375
12975
|
var iterator = this.iterator;
|
|
12376
12976
|
var result = anObject2(call(this.next, iterator));
|
|
12377
12977
|
var done = this.done = !!result.done;
|
|
12378
12978
|
if (!done) return callWithSafeIterationClosing2(iterator, this.mapper, [result.value, this.counter++], true);
|
|
12379
12979
|
});
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
var $2 = require_export();
|
|
12394
|
-
var map2 = requireIteratorMap();
|
|
12395
|
-
var IS_PURE = requireIsPure();
|
|
12396
|
-
$2({ target: "Iterator", proto: true, real: true, forced: IS_PURE }, {
|
|
12397
|
-
map: map2
|
|
12980
|
+
$2({ target: "Iterator", proto: true, real: true, forced: FORCED }, {
|
|
12981
|
+
map: function map2(mapper) {
|
|
12982
|
+
anObject2(this);
|
|
12983
|
+
try {
|
|
12984
|
+
aCallable2(mapper);
|
|
12985
|
+
} catch (error) {
|
|
12986
|
+
iteratorClose2(this, "throw", error);
|
|
12987
|
+
}
|
|
12988
|
+
if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper);
|
|
12989
|
+
return new IteratorProxy(getIteratorDirect2(this), {
|
|
12990
|
+
mapper
|
|
12991
|
+
});
|
|
12992
|
+
}
|
|
12398
12993
|
});
|
|
12399
12994
|
return es_iterator_map;
|
|
12400
12995
|
}
|
|
@@ -12408,14 +13003,30 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12408
13003
|
var aCallable2 = requireACallable();
|
|
12409
13004
|
var anObject2 = requireAnObject();
|
|
12410
13005
|
var getIteratorDirect2 = requireGetIteratorDirect();
|
|
13006
|
+
var iteratorClose2 = requireIteratorClose();
|
|
13007
|
+
var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
|
|
13008
|
+
var apply = requireFunctionApply();
|
|
13009
|
+
var fails2 = requireFails();
|
|
12411
13010
|
var $TypeError = TypeError;
|
|
12412
|
-
|
|
13011
|
+
var FAILS_ON_INITIAL_UNDEFINED = fails2(function() {
|
|
13012
|
+
[].keys().reduce(function() {
|
|
13013
|
+
}, void 0);
|
|
13014
|
+
});
|
|
13015
|
+
var reduceWithoutClosingOnEarlyError = !FAILS_ON_INITIAL_UNDEFINED && iteratorHelperWithoutClosingOnEarlyError2("reduce", $TypeError);
|
|
13016
|
+
$2({ target: "Iterator", proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFINED || reduceWithoutClosingOnEarlyError }, {
|
|
12413
13017
|
reduce: function reduce(reducer) {
|
|
12414
13018
|
anObject2(this);
|
|
12415
|
-
|
|
12416
|
-
|
|
13019
|
+
try {
|
|
13020
|
+
aCallable2(reducer);
|
|
13021
|
+
} catch (error) {
|
|
13022
|
+
iteratorClose2(this, "throw", error);
|
|
13023
|
+
}
|
|
12417
13024
|
var noInitial = arguments.length < 2;
|
|
12418
13025
|
var accumulator = noInitial ? void 0 : arguments[1];
|
|
13026
|
+
if (reduceWithoutClosingOnEarlyError) {
|
|
13027
|
+
return apply(reduceWithoutClosingOnEarlyError, this, noInitial ? [reducer] : [reducer, accumulator]);
|
|
13028
|
+
}
|
|
13029
|
+
var record = getIteratorDirect2(this);
|
|
12419
13030
|
var counter2 = 0;
|
|
12420
13031
|
iterate2(record, function(value2) {
|
|
12421
13032
|
if (noInitial) {
|
|
@@ -12438,14 +13049,23 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12438
13049
|
if (hasRequiredEs_iterator_some) return es_iterator_some;
|
|
12439
13050
|
hasRequiredEs_iterator_some = 1;
|
|
12440
13051
|
var $2 = require_export();
|
|
13052
|
+
var call = requireFunctionCall();
|
|
12441
13053
|
var iterate2 = requireIterate();
|
|
12442
13054
|
var aCallable2 = requireACallable();
|
|
12443
13055
|
var anObject2 = requireAnObject();
|
|
12444
13056
|
var getIteratorDirect2 = requireGetIteratorDirect();
|
|
12445
|
-
|
|
13057
|
+
var iteratorClose2 = requireIteratorClose();
|
|
13058
|
+
var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
|
|
13059
|
+
var someWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError2("some", TypeError);
|
|
13060
|
+
$2({ target: "Iterator", proto: true, real: true, forced: someWithoutClosingOnEarlyError }, {
|
|
12446
13061
|
some: function some(predicate) {
|
|
12447
13062
|
anObject2(this);
|
|
12448
|
-
|
|
13063
|
+
try {
|
|
13064
|
+
aCallable2(predicate);
|
|
13065
|
+
} catch (error) {
|
|
13066
|
+
iteratorClose2(this, "throw", error);
|
|
13067
|
+
}
|
|
13068
|
+
if (someWithoutClosingOnEarlyError) return call(someWithoutClosingOnEarlyError, this, predicate);
|
|
12449
13069
|
var record = getIteratorDirect2(this);
|
|
12450
13070
|
var counter2 = 0;
|
|
12451
13071
|
return iterate2(record, function(value2, stop) {
|
|
@@ -12468,7 +13088,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12468
13088
|
var toPositiveInteger2 = requireToPositiveInteger();
|
|
12469
13089
|
var createIteratorProxy = requireIteratorCreateProxy();
|
|
12470
13090
|
var iteratorClose2 = requireIteratorClose();
|
|
13091
|
+
var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
|
|
12471
13092
|
var IS_PURE = requireIsPure();
|
|
13093
|
+
var takeWithoutClosingOnEarlyError = !IS_PURE && iteratorHelperWithoutClosingOnEarlyError2("take", RangeError);
|
|
12472
13094
|
var IteratorProxy = createIteratorProxy(function() {
|
|
12473
13095
|
var iterator = this.iterator;
|
|
12474
13096
|
if (!this.remaining--) {
|
|
@@ -12479,10 +13101,16 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12479
13101
|
var done = this.done = !!result.done;
|
|
12480
13102
|
if (!done) return result.value;
|
|
12481
13103
|
});
|
|
12482
|
-
$2({ target: "Iterator", proto: true, real: true, forced: IS_PURE }, {
|
|
13104
|
+
$2({ target: "Iterator", proto: true, real: true, forced: IS_PURE || takeWithoutClosingOnEarlyError }, {
|
|
12483
13105
|
take: function take(limit) {
|
|
12484
13106
|
anObject2(this);
|
|
12485
|
-
var remaining
|
|
13107
|
+
var remaining;
|
|
13108
|
+
try {
|
|
13109
|
+
remaining = toPositiveInteger2(notANaN(+limit));
|
|
13110
|
+
} catch (error) {
|
|
13111
|
+
iteratorClose2(this, "throw", error);
|
|
13112
|
+
}
|
|
13113
|
+
if (takeWithoutClosingOnEarlyError) return call(takeWithoutClosingOnEarlyError, this, remaining);
|
|
12486
13114
|
return new IteratorProxy(getIteratorDirect2(this), {
|
|
12487
13115
|
remaining
|
|
12488
13116
|
});
|
|
@@ -12663,6 +13291,23 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12663
13291
|
$2({ target: "Math", stat: true }, { fround });
|
|
12664
13292
|
return es_math_fround;
|
|
12665
13293
|
}
|
|
13294
|
+
var es_math_f16round = {};
|
|
13295
|
+
var hasRequiredEs_math_f16round;
|
|
13296
|
+
function requireEs_math_f16round() {
|
|
13297
|
+
if (hasRequiredEs_math_f16round) return es_math_f16round;
|
|
13298
|
+
hasRequiredEs_math_f16round = 1;
|
|
13299
|
+
var $2 = require_export();
|
|
13300
|
+
var floatRound = requireMathFloatRound();
|
|
13301
|
+
var FLOAT16_EPSILON = 9765625e-10;
|
|
13302
|
+
var FLOAT16_MAX_VALUE = 65504;
|
|
13303
|
+
var FLOAT16_MIN_VALUE = 6103515625e-14;
|
|
13304
|
+
$2({ target: "Math", stat: true }, {
|
|
13305
|
+
f16round: function f16round(x) {
|
|
13306
|
+
return floatRound(x, FLOAT16_EPSILON, FLOAT16_MAX_VALUE, FLOAT16_MIN_VALUE);
|
|
13307
|
+
}
|
|
13308
|
+
});
|
|
13309
|
+
return es_math_f16round;
|
|
13310
|
+
}
|
|
12666
13311
|
var es_math_hypot = {};
|
|
12667
13312
|
var hasRequiredEs_math_hypot;
|
|
12668
13313
|
function requireEs_math_hypot() {
|
|
@@ -12755,18 +13400,6 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12755
13400
|
return es_math_log1p;
|
|
12756
13401
|
}
|
|
12757
13402
|
var es_math_log2 = {};
|
|
12758
|
-
var mathLog2;
|
|
12759
|
-
var hasRequiredMathLog2;
|
|
12760
|
-
function requireMathLog2() {
|
|
12761
|
-
if (hasRequiredMathLog2) return mathLog2;
|
|
12762
|
-
hasRequiredMathLog2 = 1;
|
|
12763
|
-
var log = Math.log;
|
|
12764
|
-
var LN2 = Math.LN2;
|
|
12765
|
-
mathLog2 = Math.log2 || function log2(x) {
|
|
12766
|
-
return log(x) / LN2;
|
|
12767
|
-
};
|
|
12768
|
-
return mathLog2;
|
|
12769
|
-
}
|
|
12770
13403
|
var hasRequiredEs_math_log2;
|
|
12771
13404
|
function requireEs_math_log2() {
|
|
12772
13405
|
if (hasRequiredEs_math_log2) return es_math_log2;
|
|
@@ -12849,7 +13482,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
12849
13482
|
if (hasRequiredThisNumberValue) return thisNumberValue;
|
|
12850
13483
|
hasRequiredThisNumberValue = 1;
|
|
12851
13484
|
var uncurryThis = requireFunctionUncurryThis();
|
|
12852
|
-
thisNumberValue = uncurryThis(1
|
|
13485
|
+
thisNumberValue = uncurryThis(1.1.valueOf);
|
|
12853
13486
|
return thisNumberValue;
|
|
12854
13487
|
}
|
|
12855
13488
|
var whitespaces;
|
|
@@ -13193,7 +13826,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
13193
13826
|
var floor = Math.floor;
|
|
13194
13827
|
var pow = Math.pow;
|
|
13195
13828
|
var round2 = Math.round;
|
|
13196
|
-
var nativeToExponential = uncurryThis(1
|
|
13829
|
+
var nativeToExponential = uncurryThis(1.1.toExponential);
|
|
13197
13830
|
var repeat = uncurryThis($repeat);
|
|
13198
13831
|
var stringSlice = uncurryThis("".slice);
|
|
13199
13832
|
var ROUNDS_PROPERLY = nativeToExponential(-69e-12, 4) === "-6.9000e-11" && nativeToExponential(1.255, 2) === "1.25e+0" && nativeToExponential(12345, 3) === "1.235e+4" && nativeToExponential(25, 0) === "3e+1";
|
|
@@ -13274,7 +13907,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
13274
13907
|
var floor = Math.floor;
|
|
13275
13908
|
var repeat = uncurryThis($repeat);
|
|
13276
13909
|
var stringSlice = uncurryThis("".slice);
|
|
13277
|
-
var nativeToFixed = uncurryThis(1
|
|
13910
|
+
var nativeToFixed = uncurryThis(1.1.toFixed);
|
|
13278
13911
|
var pow = function(x, n, acc) {
|
|
13279
13912
|
return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
|
|
13280
13913
|
};
|
|
@@ -13388,7 +14021,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
13388
14021
|
var uncurryThis = requireFunctionUncurryThis();
|
|
13389
14022
|
var fails2 = requireFails();
|
|
13390
14023
|
var thisNumberValue2 = requireThisNumberValue();
|
|
13391
|
-
var nativeToPrecision = uncurryThis(1
|
|
14024
|
+
var nativeToPrecision = uncurryThis(1.1.toPrecision);
|
|
13392
14025
|
var FORCED = fails2(function() {
|
|
13393
14026
|
return nativeToPrecision(1, void 0) !== "1";
|
|
13394
14027
|
}) || !fails2(function() {
|
|
@@ -14382,6 +15015,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
14382
15015
|
var IS_PURE = requireIsPure();
|
|
14383
15016
|
var IS_NODE = requireEnvironmentIsNode();
|
|
14384
15017
|
var globalThis2 = requireGlobalThis();
|
|
15018
|
+
var path2 = requirePath();
|
|
14385
15019
|
var call = requireFunctionCall();
|
|
14386
15020
|
var defineBuiltIn2 = requireDefineBuiltIn();
|
|
14387
15021
|
var setPrototypeOf = requireObjectSetPrototypeOf();
|
|
@@ -14628,6 +15262,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
14628
15262
|
$2({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
14629
15263
|
Promise: PromiseConstructor
|
|
14630
15264
|
});
|
|
15265
|
+
PromiseWrapper = path2.Promise;
|
|
14631
15266
|
setToStringTag2(PromiseConstructor, PROMISE, false, true);
|
|
14632
15267
|
setSpecies2(PROMISE);
|
|
14633
15268
|
return es_promise_constructor;
|
|
@@ -15005,6 +15640,470 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
15005
15640
|
});
|
|
15006
15641
|
return es_promise_withResolvers;
|
|
15007
15642
|
}
|
|
15643
|
+
var es_array_fromAsync = {};
|
|
15644
|
+
var asyncIteratorPrototype;
|
|
15645
|
+
var hasRequiredAsyncIteratorPrototype;
|
|
15646
|
+
function requireAsyncIteratorPrototype() {
|
|
15647
|
+
if (hasRequiredAsyncIteratorPrototype) return asyncIteratorPrototype;
|
|
15648
|
+
hasRequiredAsyncIteratorPrototype = 1;
|
|
15649
|
+
var globalThis2 = requireGlobalThis();
|
|
15650
|
+
var shared2 = requireSharedStore();
|
|
15651
|
+
var isCallable2 = requireIsCallable();
|
|
15652
|
+
var create = requireObjectCreate();
|
|
15653
|
+
var getPrototypeOf = requireObjectGetPrototypeOf();
|
|
15654
|
+
var defineBuiltIn2 = requireDefineBuiltIn();
|
|
15655
|
+
var wellKnownSymbol2 = requireWellKnownSymbol();
|
|
15656
|
+
var IS_PURE = requireIsPure();
|
|
15657
|
+
var USE_FUNCTION_CONSTRUCTOR = "USE_FUNCTION_CONSTRUCTOR";
|
|
15658
|
+
var ASYNC_ITERATOR = wellKnownSymbol2("asyncIterator");
|
|
15659
|
+
var AsyncIterator = globalThis2.AsyncIterator;
|
|
15660
|
+
var PassedAsyncIteratorPrototype = shared2.AsyncIteratorPrototype;
|
|
15661
|
+
var AsyncIteratorPrototype, prototype;
|
|
15662
|
+
if (PassedAsyncIteratorPrototype) {
|
|
15663
|
+
AsyncIteratorPrototype = PassedAsyncIteratorPrototype;
|
|
15664
|
+
} else if (isCallable2(AsyncIterator)) {
|
|
15665
|
+
AsyncIteratorPrototype = AsyncIterator.prototype;
|
|
15666
|
+
} else if (shared2[USE_FUNCTION_CONSTRUCTOR] || globalThis2[USE_FUNCTION_CONSTRUCTOR]) {
|
|
15667
|
+
try {
|
|
15668
|
+
prototype = getPrototypeOf(getPrototypeOf(getPrototypeOf(Function("return async function*(){}()")())));
|
|
15669
|
+
if (getPrototypeOf(prototype) === Object.prototype) AsyncIteratorPrototype = prototype;
|
|
15670
|
+
} catch (error) {
|
|
15671
|
+
}
|
|
15672
|
+
}
|
|
15673
|
+
if (!AsyncIteratorPrototype) AsyncIteratorPrototype = {};
|
|
15674
|
+
else if (IS_PURE) AsyncIteratorPrototype = create(AsyncIteratorPrototype);
|
|
15675
|
+
if (!isCallable2(AsyncIteratorPrototype[ASYNC_ITERATOR])) {
|
|
15676
|
+
defineBuiltIn2(AsyncIteratorPrototype, ASYNC_ITERATOR, function() {
|
|
15677
|
+
return this;
|
|
15678
|
+
});
|
|
15679
|
+
}
|
|
15680
|
+
asyncIteratorPrototype = AsyncIteratorPrototype;
|
|
15681
|
+
return asyncIteratorPrototype;
|
|
15682
|
+
}
|
|
15683
|
+
var asyncFromSyncIterator;
|
|
15684
|
+
var hasRequiredAsyncFromSyncIterator;
|
|
15685
|
+
function requireAsyncFromSyncIterator() {
|
|
15686
|
+
if (hasRequiredAsyncFromSyncIterator) return asyncFromSyncIterator;
|
|
15687
|
+
hasRequiredAsyncFromSyncIterator = 1;
|
|
15688
|
+
var call = requireFunctionCall();
|
|
15689
|
+
var anObject2 = requireAnObject();
|
|
15690
|
+
var create = requireObjectCreate();
|
|
15691
|
+
var getMethod2 = requireGetMethod();
|
|
15692
|
+
var defineBuiltIns2 = requireDefineBuiltIns();
|
|
15693
|
+
var InternalStateModule = requireInternalState();
|
|
15694
|
+
var iteratorClose2 = requireIteratorClose();
|
|
15695
|
+
var getBuiltIn2 = requireGetBuiltIn();
|
|
15696
|
+
var AsyncIteratorPrototype = requireAsyncIteratorPrototype();
|
|
15697
|
+
var createIterResultObject2 = requireCreateIterResultObject();
|
|
15698
|
+
var Promise2 = getBuiltIn2("Promise");
|
|
15699
|
+
var ASYNC_FROM_SYNC_ITERATOR = "AsyncFromSyncIterator";
|
|
15700
|
+
var setInternalState = InternalStateModule.set;
|
|
15701
|
+
var getInternalState = InternalStateModule.getterFor(ASYNC_FROM_SYNC_ITERATOR);
|
|
15702
|
+
var asyncFromSyncIteratorContinuation = function(result, resolve, reject, syncIterator, closeOnRejection) {
|
|
15703
|
+
var done = result.done;
|
|
15704
|
+
Promise2.resolve(result.value).then(function(value2) {
|
|
15705
|
+
resolve(createIterResultObject2(value2, done));
|
|
15706
|
+
}, function(error) {
|
|
15707
|
+
if (!done && closeOnRejection) {
|
|
15708
|
+
try {
|
|
15709
|
+
iteratorClose2(syncIterator, "throw", error);
|
|
15710
|
+
} catch (error2) {
|
|
15711
|
+
error = error2;
|
|
15712
|
+
}
|
|
15713
|
+
}
|
|
15714
|
+
reject(error);
|
|
15715
|
+
});
|
|
15716
|
+
};
|
|
15717
|
+
var AsyncFromSyncIterator = function AsyncIterator(iteratorRecord) {
|
|
15718
|
+
iteratorRecord.type = ASYNC_FROM_SYNC_ITERATOR;
|
|
15719
|
+
setInternalState(this, iteratorRecord);
|
|
15720
|
+
};
|
|
15721
|
+
AsyncFromSyncIterator.prototype = defineBuiltIns2(create(AsyncIteratorPrototype), {
|
|
15722
|
+
next: function next() {
|
|
15723
|
+
var state = getInternalState(this);
|
|
15724
|
+
return new Promise2(function(resolve, reject) {
|
|
15725
|
+
var result = anObject2(call(state.next, state.iterator));
|
|
15726
|
+
asyncFromSyncIteratorContinuation(result, resolve, reject, state.iterator, true);
|
|
15727
|
+
});
|
|
15728
|
+
},
|
|
15729
|
+
"return": function() {
|
|
15730
|
+
var iterator = getInternalState(this).iterator;
|
|
15731
|
+
return new Promise2(function(resolve, reject) {
|
|
15732
|
+
var $return = getMethod2(iterator, "return");
|
|
15733
|
+
if ($return === void 0) return resolve(createIterResultObject2(void 0, true));
|
|
15734
|
+
var result = anObject2(call($return, iterator));
|
|
15735
|
+
asyncFromSyncIteratorContinuation(result, resolve, reject, iterator);
|
|
15736
|
+
});
|
|
15737
|
+
}
|
|
15738
|
+
});
|
|
15739
|
+
asyncFromSyncIterator = AsyncFromSyncIterator;
|
|
15740
|
+
return asyncFromSyncIterator;
|
|
15741
|
+
}
|
|
15742
|
+
var getAsyncIterator;
|
|
15743
|
+
var hasRequiredGetAsyncIterator;
|
|
15744
|
+
function requireGetAsyncIterator() {
|
|
15745
|
+
if (hasRequiredGetAsyncIterator) return getAsyncIterator;
|
|
15746
|
+
hasRequiredGetAsyncIterator = 1;
|
|
15747
|
+
var call = requireFunctionCall();
|
|
15748
|
+
var AsyncFromSyncIterator = requireAsyncFromSyncIterator();
|
|
15749
|
+
var anObject2 = requireAnObject();
|
|
15750
|
+
var getIterator2 = requireGetIterator();
|
|
15751
|
+
var getIteratorDirect2 = requireGetIteratorDirect();
|
|
15752
|
+
var getMethod2 = requireGetMethod();
|
|
15753
|
+
var wellKnownSymbol2 = requireWellKnownSymbol();
|
|
15754
|
+
var ASYNC_ITERATOR = wellKnownSymbol2("asyncIterator");
|
|
15755
|
+
getAsyncIterator = function(it, usingIterator) {
|
|
15756
|
+
var method = arguments.length < 2 ? getMethod2(it, ASYNC_ITERATOR) : usingIterator;
|
|
15757
|
+
return method ? anObject2(call(method, it)) : new AsyncFromSyncIterator(getIteratorDirect2(getIterator2(it)));
|
|
15758
|
+
};
|
|
15759
|
+
return getAsyncIterator;
|
|
15760
|
+
}
|
|
15761
|
+
var asyncIteratorClose;
|
|
15762
|
+
var hasRequiredAsyncIteratorClose;
|
|
15763
|
+
function requireAsyncIteratorClose() {
|
|
15764
|
+
if (hasRequiredAsyncIteratorClose) return asyncIteratorClose;
|
|
15765
|
+
hasRequiredAsyncIteratorClose = 1;
|
|
15766
|
+
var call = requireFunctionCall();
|
|
15767
|
+
var getBuiltIn2 = requireGetBuiltIn();
|
|
15768
|
+
var getMethod2 = requireGetMethod();
|
|
15769
|
+
asyncIteratorClose = function(iterator, method, argument, reject) {
|
|
15770
|
+
try {
|
|
15771
|
+
var returnMethod = getMethod2(iterator, "return");
|
|
15772
|
+
if (returnMethod) {
|
|
15773
|
+
return getBuiltIn2("Promise").resolve(call(returnMethod, iterator)).then(function() {
|
|
15774
|
+
method(argument);
|
|
15775
|
+
}, function(error) {
|
|
15776
|
+
reject(error);
|
|
15777
|
+
});
|
|
15778
|
+
}
|
|
15779
|
+
} catch (error2) {
|
|
15780
|
+
return reject(error2);
|
|
15781
|
+
}
|
|
15782
|
+
method(argument);
|
|
15783
|
+
};
|
|
15784
|
+
return asyncIteratorClose;
|
|
15785
|
+
}
|
|
15786
|
+
var asyncIteratorIteration;
|
|
15787
|
+
var hasRequiredAsyncIteratorIteration;
|
|
15788
|
+
function requireAsyncIteratorIteration() {
|
|
15789
|
+
if (hasRequiredAsyncIteratorIteration) return asyncIteratorIteration;
|
|
15790
|
+
hasRequiredAsyncIteratorIteration = 1;
|
|
15791
|
+
var call = requireFunctionCall();
|
|
15792
|
+
var aCallable2 = requireACallable();
|
|
15793
|
+
var anObject2 = requireAnObject();
|
|
15794
|
+
var isObject2 = requireIsObject();
|
|
15795
|
+
var doesNotExceedSafeInteger2 = requireDoesNotExceedSafeInteger();
|
|
15796
|
+
var getBuiltIn2 = requireGetBuiltIn();
|
|
15797
|
+
var getIteratorDirect2 = requireGetIteratorDirect();
|
|
15798
|
+
var closeAsyncIteration = requireAsyncIteratorClose();
|
|
15799
|
+
var createMethod = function(TYPE2) {
|
|
15800
|
+
var IS_TO_ARRAY = TYPE2 === 0;
|
|
15801
|
+
var IS_FOR_EACH = TYPE2 === 1;
|
|
15802
|
+
var IS_EVERY = TYPE2 === 2;
|
|
15803
|
+
var IS_SOME = TYPE2 === 3;
|
|
15804
|
+
return function(object, fn, target) {
|
|
15805
|
+
anObject2(object);
|
|
15806
|
+
var MAPPING = fn !== void 0;
|
|
15807
|
+
if (MAPPING || !IS_TO_ARRAY) aCallable2(fn);
|
|
15808
|
+
var record = getIteratorDirect2(object);
|
|
15809
|
+
var Promise2 = getBuiltIn2("Promise");
|
|
15810
|
+
var iterator = record.iterator;
|
|
15811
|
+
var next = record.next;
|
|
15812
|
+
var counter2 = 0;
|
|
15813
|
+
return new Promise2(function(resolve, reject) {
|
|
15814
|
+
var ifAbruptCloseAsyncIterator = function(error) {
|
|
15815
|
+
closeAsyncIteration(iterator, reject, error, reject);
|
|
15816
|
+
};
|
|
15817
|
+
var loop = function() {
|
|
15818
|
+
try {
|
|
15819
|
+
if (MAPPING) try {
|
|
15820
|
+
doesNotExceedSafeInteger2(counter2);
|
|
15821
|
+
} catch (error5) {
|
|
15822
|
+
ifAbruptCloseAsyncIterator(error5);
|
|
15823
|
+
}
|
|
15824
|
+
Promise2.resolve(anObject2(call(next, iterator))).then(function(step) {
|
|
15825
|
+
try {
|
|
15826
|
+
if (anObject2(step).done) {
|
|
15827
|
+
if (IS_TO_ARRAY) {
|
|
15828
|
+
target.length = counter2;
|
|
15829
|
+
resolve(target);
|
|
15830
|
+
} else resolve(IS_SOME ? false : IS_EVERY || void 0);
|
|
15831
|
+
} else {
|
|
15832
|
+
var value2 = step.value;
|
|
15833
|
+
try {
|
|
15834
|
+
if (MAPPING) {
|
|
15835
|
+
var result = fn(value2, counter2);
|
|
15836
|
+
var handler = function($result) {
|
|
15837
|
+
if (IS_FOR_EACH) {
|
|
15838
|
+
loop();
|
|
15839
|
+
} else if (IS_EVERY) {
|
|
15840
|
+
$result ? loop() : closeAsyncIteration(iterator, resolve, false, reject);
|
|
15841
|
+
} else if (IS_TO_ARRAY) {
|
|
15842
|
+
try {
|
|
15843
|
+
target[counter2++] = $result;
|
|
15844
|
+
loop();
|
|
15845
|
+
} catch (error4) {
|
|
15846
|
+
ifAbruptCloseAsyncIterator(error4);
|
|
15847
|
+
}
|
|
15848
|
+
} else {
|
|
15849
|
+
$result ? closeAsyncIteration(iterator, resolve, IS_SOME || value2, reject) : loop();
|
|
15850
|
+
}
|
|
15851
|
+
};
|
|
15852
|
+
if (isObject2(result)) Promise2.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
|
|
15853
|
+
else handler(result);
|
|
15854
|
+
} else {
|
|
15855
|
+
target[counter2++] = value2;
|
|
15856
|
+
loop();
|
|
15857
|
+
}
|
|
15858
|
+
} catch (error3) {
|
|
15859
|
+
ifAbruptCloseAsyncIterator(error3);
|
|
15860
|
+
}
|
|
15861
|
+
}
|
|
15862
|
+
} catch (error2) {
|
|
15863
|
+
reject(error2);
|
|
15864
|
+
}
|
|
15865
|
+
}, reject);
|
|
15866
|
+
} catch (error) {
|
|
15867
|
+
reject(error);
|
|
15868
|
+
}
|
|
15869
|
+
};
|
|
15870
|
+
loop();
|
|
15871
|
+
});
|
|
15872
|
+
};
|
|
15873
|
+
};
|
|
15874
|
+
asyncIteratorIteration = {
|
|
15875
|
+
// `AsyncIterator.prototype.toArray` / `Array.fromAsync` methods
|
|
15876
|
+
toArray: createMethod(0),
|
|
15877
|
+
// `AsyncIterator.prototype.forEach` method
|
|
15878
|
+
forEach: createMethod(1),
|
|
15879
|
+
// `AsyncIterator.prototype.every` method
|
|
15880
|
+
every: createMethod(2),
|
|
15881
|
+
// `AsyncIterator.prototype.some` method
|
|
15882
|
+
some: createMethod(3),
|
|
15883
|
+
// `AsyncIterator.prototype.find` method
|
|
15884
|
+
find: createMethod(4)
|
|
15885
|
+
};
|
|
15886
|
+
return asyncIteratorIteration;
|
|
15887
|
+
}
|
|
15888
|
+
var arrayFromAsync;
|
|
15889
|
+
var hasRequiredArrayFromAsync;
|
|
15890
|
+
function requireArrayFromAsync() {
|
|
15891
|
+
if (hasRequiredArrayFromAsync) return arrayFromAsync;
|
|
15892
|
+
hasRequiredArrayFromAsync = 1;
|
|
15893
|
+
var bind2 = requireFunctionBindContext();
|
|
15894
|
+
var uncurryThis = requireFunctionUncurryThis();
|
|
15895
|
+
var toObject2 = requireToObject();
|
|
15896
|
+
var isConstructor2 = requireIsConstructor();
|
|
15897
|
+
var getAsyncIterator2 = requireGetAsyncIterator();
|
|
15898
|
+
var getIterator2 = requireGetIterator();
|
|
15899
|
+
var getIteratorDirect2 = requireGetIteratorDirect();
|
|
15900
|
+
var getIteratorMethod2 = requireGetIteratorMethod();
|
|
15901
|
+
var getMethod2 = requireGetMethod();
|
|
15902
|
+
var getBuiltIn2 = requireGetBuiltIn();
|
|
15903
|
+
var getBuiltInPrototypeMethod2 = requireGetBuiltInPrototypeMethod();
|
|
15904
|
+
var wellKnownSymbol2 = requireWellKnownSymbol();
|
|
15905
|
+
var AsyncFromSyncIterator = requireAsyncFromSyncIterator();
|
|
15906
|
+
var toArray2 = requireAsyncIteratorIteration().toArray;
|
|
15907
|
+
var ASYNC_ITERATOR = wellKnownSymbol2("asyncIterator");
|
|
15908
|
+
var arrayIterator = uncurryThis(getBuiltInPrototypeMethod2("Array", "values"));
|
|
15909
|
+
var arrayIteratorNext = uncurryThis(arrayIterator([]).next);
|
|
15910
|
+
var safeArrayIterator = function() {
|
|
15911
|
+
return new SafeArrayIterator(this);
|
|
15912
|
+
};
|
|
15913
|
+
var SafeArrayIterator = function(O) {
|
|
15914
|
+
this.iterator = arrayIterator(O);
|
|
15915
|
+
};
|
|
15916
|
+
SafeArrayIterator.prototype.next = function() {
|
|
15917
|
+
return arrayIteratorNext(this.iterator);
|
|
15918
|
+
};
|
|
15919
|
+
arrayFromAsync = function fromAsync(asyncItems) {
|
|
15920
|
+
var C = this;
|
|
15921
|
+
var argumentsLength = arguments.length;
|
|
15922
|
+
var mapfn = argumentsLength > 1 ? arguments[1] : void 0;
|
|
15923
|
+
var thisArg = argumentsLength > 2 ? arguments[2] : void 0;
|
|
15924
|
+
return new (getBuiltIn2("Promise"))(function(resolve) {
|
|
15925
|
+
var O = toObject2(asyncItems);
|
|
15926
|
+
if (mapfn !== void 0) mapfn = bind2(mapfn, thisArg);
|
|
15927
|
+
var usingAsyncIterator = getMethod2(O, ASYNC_ITERATOR);
|
|
15928
|
+
var usingSyncIterator = usingAsyncIterator ? void 0 : getIteratorMethod2(O) || safeArrayIterator;
|
|
15929
|
+
var A = isConstructor2(C) ? new C() : [];
|
|
15930
|
+
var iterator = usingAsyncIterator ? getAsyncIterator2(O, usingAsyncIterator) : new AsyncFromSyncIterator(getIteratorDirect2(getIterator2(O, usingSyncIterator)));
|
|
15931
|
+
resolve(toArray2(iterator, mapfn, A));
|
|
15932
|
+
});
|
|
15933
|
+
};
|
|
15934
|
+
return arrayFromAsync;
|
|
15935
|
+
}
|
|
15936
|
+
var hasRequiredEs_array_fromAsync;
|
|
15937
|
+
function requireEs_array_fromAsync() {
|
|
15938
|
+
if (hasRequiredEs_array_fromAsync) return es_array_fromAsync;
|
|
15939
|
+
hasRequiredEs_array_fromAsync = 1;
|
|
15940
|
+
var $2 = require_export();
|
|
15941
|
+
var fromAsync = requireArrayFromAsync();
|
|
15942
|
+
var fails2 = requireFails();
|
|
15943
|
+
var nativeFromAsync = Array.fromAsync;
|
|
15944
|
+
var INCORRECT_CONSTRUCTURING = !nativeFromAsync || fails2(function() {
|
|
15945
|
+
var counter2 = 0;
|
|
15946
|
+
nativeFromAsync.call(function() {
|
|
15947
|
+
counter2++;
|
|
15948
|
+
return [];
|
|
15949
|
+
}, { length: 0 });
|
|
15950
|
+
return counter2 !== 1;
|
|
15951
|
+
});
|
|
15952
|
+
$2({ target: "Array", stat: true, forced: INCORRECT_CONSTRUCTURING }, {
|
|
15953
|
+
fromAsync
|
|
15954
|
+
});
|
|
15955
|
+
return es_array_fromAsync;
|
|
15956
|
+
}
|
|
15957
|
+
var es_asyncDisposableStack_constructor = {};
|
|
15958
|
+
var hasRequiredEs_asyncDisposableStack_constructor;
|
|
15959
|
+
function requireEs_asyncDisposableStack_constructor() {
|
|
15960
|
+
if (hasRequiredEs_asyncDisposableStack_constructor) return es_asyncDisposableStack_constructor;
|
|
15961
|
+
hasRequiredEs_asyncDisposableStack_constructor = 1;
|
|
15962
|
+
var $2 = require_export();
|
|
15963
|
+
var DESCRIPTORS = requireDescriptors();
|
|
15964
|
+
var getBuiltIn2 = requireGetBuiltIn();
|
|
15965
|
+
var aCallable2 = requireACallable();
|
|
15966
|
+
var anInstance2 = requireAnInstance();
|
|
15967
|
+
var defineBuiltIn2 = requireDefineBuiltIn();
|
|
15968
|
+
var defineBuiltIns2 = requireDefineBuiltIns();
|
|
15969
|
+
var defineBuiltInAccessor2 = requireDefineBuiltInAccessor();
|
|
15970
|
+
var wellKnownSymbol2 = requireWellKnownSymbol();
|
|
15971
|
+
var InternalStateModule = requireInternalState();
|
|
15972
|
+
var addDisposableResource2 = requireAddDisposableResource();
|
|
15973
|
+
var V8_VERSION = requireEnvironmentV8Version();
|
|
15974
|
+
var Promise2 = getBuiltIn2("Promise");
|
|
15975
|
+
var SuppressedError2 = getBuiltIn2("SuppressedError");
|
|
15976
|
+
var $ReferenceError = ReferenceError;
|
|
15977
|
+
var ASYNC_DISPOSE = wellKnownSymbol2("asyncDispose");
|
|
15978
|
+
var TO_STRING_TAG = wellKnownSymbol2("toStringTag");
|
|
15979
|
+
var ASYNC_DISPOSABLE_STACK = "AsyncDisposableStack";
|
|
15980
|
+
var setInternalState = InternalStateModule.set;
|
|
15981
|
+
var getAsyncDisposableStackInternalState = InternalStateModule.getterFor(ASYNC_DISPOSABLE_STACK);
|
|
15982
|
+
var HINT = "async-dispose";
|
|
15983
|
+
var DISPOSED = "disposed";
|
|
15984
|
+
var PENDING = "pending";
|
|
15985
|
+
var getPendingAsyncDisposableStackInternalState = function(stack) {
|
|
15986
|
+
var internalState2 = getAsyncDisposableStackInternalState(stack);
|
|
15987
|
+
if (internalState2.state === DISPOSED) throw new $ReferenceError(ASYNC_DISPOSABLE_STACK + " already disposed");
|
|
15988
|
+
return internalState2;
|
|
15989
|
+
};
|
|
15990
|
+
var $AsyncDisposableStack = function AsyncDisposableStack() {
|
|
15991
|
+
setInternalState(anInstance2(this, AsyncDisposableStackPrototype), {
|
|
15992
|
+
type: ASYNC_DISPOSABLE_STACK,
|
|
15993
|
+
state: PENDING,
|
|
15994
|
+
stack: []
|
|
15995
|
+
});
|
|
15996
|
+
if (!DESCRIPTORS) this.disposed = false;
|
|
15997
|
+
};
|
|
15998
|
+
var AsyncDisposableStackPrototype = $AsyncDisposableStack.prototype;
|
|
15999
|
+
defineBuiltIns2(AsyncDisposableStackPrototype, {
|
|
16000
|
+
disposeAsync: function disposeAsync() {
|
|
16001
|
+
var asyncDisposableStack = this;
|
|
16002
|
+
return new Promise2(function(resolve, reject) {
|
|
16003
|
+
var internalState2 = getAsyncDisposableStackInternalState(asyncDisposableStack);
|
|
16004
|
+
if (internalState2.state === DISPOSED) return resolve(void 0);
|
|
16005
|
+
internalState2.state = DISPOSED;
|
|
16006
|
+
if (!DESCRIPTORS) asyncDisposableStack.disposed = true;
|
|
16007
|
+
var stack = internalState2.stack;
|
|
16008
|
+
var i = stack.length;
|
|
16009
|
+
var thrown = false;
|
|
16010
|
+
var suppressed;
|
|
16011
|
+
var handleError = function(result) {
|
|
16012
|
+
if (thrown) {
|
|
16013
|
+
suppressed = new SuppressedError2(result, suppressed);
|
|
16014
|
+
} else {
|
|
16015
|
+
thrown = true;
|
|
16016
|
+
suppressed = result;
|
|
16017
|
+
}
|
|
16018
|
+
loop();
|
|
16019
|
+
};
|
|
16020
|
+
var loop = function() {
|
|
16021
|
+
if (i) {
|
|
16022
|
+
var disposeMethod = stack[--i];
|
|
16023
|
+
stack[i] = null;
|
|
16024
|
+
try {
|
|
16025
|
+
Promise2.resolve(disposeMethod()).then(loop, handleError);
|
|
16026
|
+
} catch (error) {
|
|
16027
|
+
handleError(error);
|
|
16028
|
+
}
|
|
16029
|
+
} else {
|
|
16030
|
+
internalState2.stack = null;
|
|
16031
|
+
thrown ? reject(suppressed) : resolve(void 0);
|
|
16032
|
+
}
|
|
16033
|
+
};
|
|
16034
|
+
loop();
|
|
16035
|
+
});
|
|
16036
|
+
},
|
|
16037
|
+
use: function use(value2) {
|
|
16038
|
+
addDisposableResource2(getPendingAsyncDisposableStackInternalState(this), value2, HINT);
|
|
16039
|
+
return value2;
|
|
16040
|
+
},
|
|
16041
|
+
adopt: function adopt(value2, onDispose) {
|
|
16042
|
+
var internalState2 = getPendingAsyncDisposableStackInternalState(this);
|
|
16043
|
+
aCallable2(onDispose);
|
|
16044
|
+
addDisposableResource2(internalState2, void 0, HINT, function() {
|
|
16045
|
+
return onDispose(value2);
|
|
16046
|
+
});
|
|
16047
|
+
return value2;
|
|
16048
|
+
},
|
|
16049
|
+
defer: function defer2(onDispose) {
|
|
16050
|
+
var internalState2 = getPendingAsyncDisposableStackInternalState(this);
|
|
16051
|
+
aCallable2(onDispose);
|
|
16052
|
+
addDisposableResource2(internalState2, void 0, HINT, onDispose);
|
|
16053
|
+
},
|
|
16054
|
+
move: function move() {
|
|
16055
|
+
var internalState2 = getPendingAsyncDisposableStackInternalState(this);
|
|
16056
|
+
var newAsyncDisposableStack = new $AsyncDisposableStack();
|
|
16057
|
+
getAsyncDisposableStackInternalState(newAsyncDisposableStack).stack = internalState2.stack;
|
|
16058
|
+
internalState2.stack = [];
|
|
16059
|
+
internalState2.state = DISPOSED;
|
|
16060
|
+
if (!DESCRIPTORS) this.disposed = true;
|
|
16061
|
+
return newAsyncDisposableStack;
|
|
16062
|
+
}
|
|
16063
|
+
});
|
|
16064
|
+
if (DESCRIPTORS) defineBuiltInAccessor2(AsyncDisposableStackPrototype, "disposed", {
|
|
16065
|
+
configurable: true,
|
|
16066
|
+
get: function disposed() {
|
|
16067
|
+
return getAsyncDisposableStackInternalState(this).state === DISPOSED;
|
|
16068
|
+
}
|
|
16069
|
+
});
|
|
16070
|
+
defineBuiltIn2(AsyncDisposableStackPrototype, ASYNC_DISPOSE, AsyncDisposableStackPrototype.disposeAsync, { name: "disposeAsync" });
|
|
16071
|
+
defineBuiltIn2(AsyncDisposableStackPrototype, TO_STRING_TAG, ASYNC_DISPOSABLE_STACK, { nonWritable: true });
|
|
16072
|
+
var SYNC_DISPOSE_RETURNING_PROMISE_RESOLUTION_BUG = V8_VERSION && V8_VERSION < 136;
|
|
16073
|
+
$2({ global: true, constructor: true, forced: SYNC_DISPOSE_RETURNING_PROMISE_RESOLUTION_BUG }, {
|
|
16074
|
+
AsyncDisposableStack: $AsyncDisposableStack
|
|
16075
|
+
});
|
|
16076
|
+
return es_asyncDisposableStack_constructor;
|
|
16077
|
+
}
|
|
16078
|
+
var es_asyncIterator_asyncDispose = {};
|
|
16079
|
+
var hasRequiredEs_asyncIterator_asyncDispose;
|
|
16080
|
+
function requireEs_asyncIterator_asyncDispose() {
|
|
16081
|
+
if (hasRequiredEs_asyncIterator_asyncDispose) return es_asyncIterator_asyncDispose;
|
|
16082
|
+
hasRequiredEs_asyncIterator_asyncDispose = 1;
|
|
16083
|
+
var call = requireFunctionCall();
|
|
16084
|
+
var defineBuiltIn2 = requireDefineBuiltIn();
|
|
16085
|
+
var getBuiltIn2 = requireGetBuiltIn();
|
|
16086
|
+
var getMethod2 = requireGetMethod();
|
|
16087
|
+
var hasOwn = requireHasOwnProperty();
|
|
16088
|
+
var wellKnownSymbol2 = requireWellKnownSymbol();
|
|
16089
|
+
var AsyncIteratorPrototype = requireAsyncIteratorPrototype();
|
|
16090
|
+
var ASYNC_DISPOSE = wellKnownSymbol2("asyncDispose");
|
|
16091
|
+
var Promise2 = getBuiltIn2("Promise");
|
|
16092
|
+
if (!hasOwn(AsyncIteratorPrototype, ASYNC_DISPOSE)) {
|
|
16093
|
+
defineBuiltIn2(AsyncIteratorPrototype, ASYNC_DISPOSE, function() {
|
|
16094
|
+
var O = this;
|
|
16095
|
+
return new Promise2(function(resolve, reject) {
|
|
16096
|
+
var $return = getMethod2(O, "return");
|
|
16097
|
+
if ($return) {
|
|
16098
|
+
Promise2.resolve(call($return, O)).then(function() {
|
|
16099
|
+
resolve(void 0);
|
|
16100
|
+
}, reject);
|
|
16101
|
+
} else resolve(void 0);
|
|
16102
|
+
});
|
|
16103
|
+
});
|
|
16104
|
+
}
|
|
16105
|
+
return es_asyncIterator_asyncDispose;
|
|
16106
|
+
}
|
|
15008
16107
|
var es_reflect_apply = {};
|
|
15009
16108
|
var hasRequiredEs_reflect_apply;
|
|
15010
16109
|
function requireEs_reflect_apply() {
|
|
@@ -15351,6 +16450,45 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
15351
16450
|
};
|
|
15352
16451
|
return isRegexp;
|
|
15353
16452
|
}
|
|
16453
|
+
var regexpFlagsDetection;
|
|
16454
|
+
var hasRequiredRegexpFlagsDetection;
|
|
16455
|
+
function requireRegexpFlagsDetection() {
|
|
16456
|
+
if (hasRequiredRegexpFlagsDetection) return regexpFlagsDetection;
|
|
16457
|
+
hasRequiredRegexpFlagsDetection = 1;
|
|
16458
|
+
var globalThis2 = requireGlobalThis();
|
|
16459
|
+
var fails2 = requireFails();
|
|
16460
|
+
var RegExp2 = globalThis2.RegExp;
|
|
16461
|
+
var FLAGS_GETTER_IS_CORRECT = !fails2(function() {
|
|
16462
|
+
var INDICES_SUPPORT = true;
|
|
16463
|
+
try {
|
|
16464
|
+
RegExp2(".", "d");
|
|
16465
|
+
} catch (error) {
|
|
16466
|
+
INDICES_SUPPORT = false;
|
|
16467
|
+
}
|
|
16468
|
+
var O = {};
|
|
16469
|
+
var calls = "";
|
|
16470
|
+
var expected = INDICES_SUPPORT ? "dgimsy" : "gimsy";
|
|
16471
|
+
var addGetter = function(key3, chr) {
|
|
16472
|
+
Object.defineProperty(O, key3, { get: function() {
|
|
16473
|
+
calls += chr;
|
|
16474
|
+
return true;
|
|
16475
|
+
} });
|
|
16476
|
+
};
|
|
16477
|
+
var pairs = {
|
|
16478
|
+
dotAll: "s",
|
|
16479
|
+
global: "g",
|
|
16480
|
+
ignoreCase: "i",
|
|
16481
|
+
multiline: "m",
|
|
16482
|
+
sticky: "y"
|
|
16483
|
+
};
|
|
16484
|
+
if (INDICES_SUPPORT) pairs.hasIndices = "d";
|
|
16485
|
+
for (var key2 in pairs) addGetter(key2, pairs[key2]);
|
|
16486
|
+
var result = Object.getOwnPropertyDescriptor(RegExp2.prototype, "flags").get.call(O);
|
|
16487
|
+
return result !== expected || calls !== expected;
|
|
16488
|
+
});
|
|
16489
|
+
regexpFlagsDetection = { correct: FLAGS_GETTER_IS_CORRECT };
|
|
16490
|
+
return regexpFlagsDetection;
|
|
16491
|
+
}
|
|
15354
16492
|
var regexpFlags;
|
|
15355
16493
|
var hasRequiredRegexpFlags;
|
|
15356
16494
|
function requireRegexpFlags() {
|
|
@@ -15380,11 +16518,13 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
15380
16518
|
var call = requireFunctionCall();
|
|
15381
16519
|
var hasOwn = requireHasOwnProperty();
|
|
15382
16520
|
var isPrototypeOf = requireObjectIsPrototypeOf();
|
|
15383
|
-
var
|
|
16521
|
+
var regExpFlagsDetection = requireRegexpFlagsDetection();
|
|
16522
|
+
var regExpFlagsGetterImplementation = requireRegexpFlags();
|
|
15384
16523
|
var RegExpPrototype = RegExp.prototype;
|
|
15385
|
-
regexpGetFlags = function(
|
|
15386
|
-
|
|
15387
|
-
|
|
16524
|
+
regexpGetFlags = regExpFlagsDetection.correct ? function(it) {
|
|
16525
|
+
return it.flags;
|
|
16526
|
+
} : function(it) {
|
|
16527
|
+
return !regExpFlagsDetection.correct && isPrototypeOf(RegExpPrototype, it) && !hasOwn(it, "flags") ? call(regExpFlagsGetterImplementation, it) : it.flags;
|
|
15388
16528
|
};
|
|
15389
16529
|
return regexpGetFlags;
|
|
15390
16530
|
}
|
|
@@ -15619,6 +16759,81 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
15619
16759
|
setSpecies2("RegExp");
|
|
15620
16760
|
return es_regexp_constructor;
|
|
15621
16761
|
}
|
|
16762
|
+
var es_regexp_escape = {};
|
|
16763
|
+
var aString;
|
|
16764
|
+
var hasRequiredAString;
|
|
16765
|
+
function requireAString() {
|
|
16766
|
+
if (hasRequiredAString) return aString;
|
|
16767
|
+
hasRequiredAString = 1;
|
|
16768
|
+
var $TypeError = TypeError;
|
|
16769
|
+
aString = function(argument) {
|
|
16770
|
+
if (typeof argument == "string") return argument;
|
|
16771
|
+
throw new $TypeError("Argument is not a string");
|
|
16772
|
+
};
|
|
16773
|
+
return aString;
|
|
16774
|
+
}
|
|
16775
|
+
var hasRequiredEs_regexp_escape;
|
|
16776
|
+
function requireEs_regexp_escape() {
|
|
16777
|
+
if (hasRequiredEs_regexp_escape) return es_regexp_escape;
|
|
16778
|
+
hasRequiredEs_regexp_escape = 1;
|
|
16779
|
+
var $2 = require_export();
|
|
16780
|
+
var uncurryThis = requireFunctionUncurryThis();
|
|
16781
|
+
var aString2 = requireAString();
|
|
16782
|
+
var hasOwn = requireHasOwnProperty();
|
|
16783
|
+
var padStart = requireStringPad().start;
|
|
16784
|
+
var WHITESPACES = requireWhitespaces();
|
|
16785
|
+
var $Array = Array;
|
|
16786
|
+
var $escape = RegExp.escape;
|
|
16787
|
+
var charAt = uncurryThis("".charAt);
|
|
16788
|
+
var charCodeAt = uncurryThis("".charCodeAt);
|
|
16789
|
+
var numberToString = uncurryThis(1.1.toString);
|
|
16790
|
+
var join2 = uncurryThis([].join);
|
|
16791
|
+
var FIRST_DIGIT_OR_ASCII = /^[0-9a-z]/i;
|
|
16792
|
+
var SYNTAX_SOLIDUS = /^[$()*+./?[\\\]^{|}]/;
|
|
16793
|
+
var OTHER_PUNCTUATORS_AND_WHITESPACES = RegExp("^[!\"#%&',\\-:;<=>@`~" + WHITESPACES + "]");
|
|
16794
|
+
var exec = uncurryThis(FIRST_DIGIT_OR_ASCII.exec);
|
|
16795
|
+
var ControlEscape = {
|
|
16796
|
+
" ": "t",
|
|
16797
|
+
"\n": "n",
|
|
16798
|
+
"\v": "v",
|
|
16799
|
+
"\f": "f",
|
|
16800
|
+
"\r": "r"
|
|
16801
|
+
};
|
|
16802
|
+
var escapeChar = function(chr) {
|
|
16803
|
+
var hex = numberToString(charCodeAt(chr, 0), 16);
|
|
16804
|
+
return hex.length < 3 ? "\\x" + padStart(hex, 2, "0") : "\\u" + padStart(hex, 4, "0");
|
|
16805
|
+
};
|
|
16806
|
+
var FORCED = !$escape || $escape("ab") !== "\\x61b";
|
|
16807
|
+
$2({ target: "RegExp", stat: true, forced: FORCED }, {
|
|
16808
|
+
escape: function escape2(S) {
|
|
16809
|
+
aString2(S);
|
|
16810
|
+
var length = S.length;
|
|
16811
|
+
var result = $Array(length);
|
|
16812
|
+
for (var i = 0; i < length; i++) {
|
|
16813
|
+
var chr = charAt(S, i);
|
|
16814
|
+
if (i === 0 && exec(FIRST_DIGIT_OR_ASCII, chr)) {
|
|
16815
|
+
result[i] = escapeChar(chr);
|
|
16816
|
+
} else if (hasOwn(ControlEscape, chr)) {
|
|
16817
|
+
result[i] = "\\" + ControlEscape[chr];
|
|
16818
|
+
} else if (exec(SYNTAX_SOLIDUS, chr)) {
|
|
16819
|
+
result[i] = "\\" + chr;
|
|
16820
|
+
} else if (exec(OTHER_PUNCTUATORS_AND_WHITESPACES, chr)) {
|
|
16821
|
+
result[i] = escapeChar(chr);
|
|
16822
|
+
} else {
|
|
16823
|
+
var charCode = charCodeAt(chr, 0);
|
|
16824
|
+
if ((charCode & 63488) !== 55296) result[i] = chr;
|
|
16825
|
+
else if (charCode >= 56320 || i + 1 >= length || (charCodeAt(S, i + 1) & 64512) !== 56320) result[i] = escapeChar(chr);
|
|
16826
|
+
else {
|
|
16827
|
+
result[i] = chr;
|
|
16828
|
+
result[++i] = charAt(S, i);
|
|
16829
|
+
}
|
|
16830
|
+
}
|
|
16831
|
+
}
|
|
16832
|
+
return join2(result, "");
|
|
16833
|
+
}
|
|
16834
|
+
});
|
|
16835
|
+
return es_regexp_escape;
|
|
16836
|
+
}
|
|
15622
16837
|
var es_regexp_dotAll = {};
|
|
15623
16838
|
var hasRequiredEs_regexp_dotAll;
|
|
15624
16839
|
function requireEs_regexp_dotAll() {
|
|
@@ -15761,45 +16976,17 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
15761
16976
|
function requireEs_regexp_flags() {
|
|
15762
16977
|
if (hasRequiredEs_regexp_flags) return es_regexp_flags;
|
|
15763
16978
|
hasRequiredEs_regexp_flags = 1;
|
|
15764
|
-
var globalThis2 = requireGlobalThis();
|
|
15765
16979
|
var DESCRIPTORS = requireDescriptors();
|
|
15766
16980
|
var defineBuiltInAccessor2 = requireDefineBuiltInAccessor();
|
|
15767
|
-
var
|
|
15768
|
-
var
|
|
15769
|
-
|
|
15770
|
-
|
|
15771
|
-
|
|
15772
|
-
|
|
15773
|
-
|
|
15774
|
-
|
|
15775
|
-
|
|
15776
|
-
INDICES_SUPPORT = false;
|
|
15777
|
-
}
|
|
15778
|
-
var O = {};
|
|
15779
|
-
var calls = "";
|
|
15780
|
-
var expected = INDICES_SUPPORT ? "dgimsy" : "gimsy";
|
|
15781
|
-
var addGetter = function(key3, chr) {
|
|
15782
|
-
Object.defineProperty(O, key3, { get: function() {
|
|
15783
|
-
calls += chr;
|
|
15784
|
-
return true;
|
|
15785
|
-
} });
|
|
15786
|
-
};
|
|
15787
|
-
var pairs = {
|
|
15788
|
-
dotAll: "s",
|
|
15789
|
-
global: "g",
|
|
15790
|
-
ignoreCase: "i",
|
|
15791
|
-
multiline: "m",
|
|
15792
|
-
sticky: "y"
|
|
15793
|
-
};
|
|
15794
|
-
if (INDICES_SUPPORT) pairs.hasIndices = "d";
|
|
15795
|
-
for (var key2 in pairs) addGetter(key2, pairs[key2]);
|
|
15796
|
-
var result = Object.getOwnPropertyDescriptor(RegExpPrototype, "flags").get.call(O);
|
|
15797
|
-
return result !== expected || calls !== expected;
|
|
15798
|
-
});
|
|
15799
|
-
if (FORCED) defineBuiltInAccessor2(RegExpPrototype, "flags", {
|
|
15800
|
-
configurable: true,
|
|
15801
|
-
get: regExpFlags
|
|
15802
|
-
});
|
|
16981
|
+
var regExpFlagsDetection = requireRegexpFlagsDetection();
|
|
16982
|
+
var regExpFlagsGetterImplementation = requireRegexpFlags();
|
|
16983
|
+
if (DESCRIPTORS && !regExpFlagsDetection.correct) {
|
|
16984
|
+
defineBuiltInAccessor2(RegExp.prototype, "flags", {
|
|
16985
|
+
configurable: true,
|
|
16986
|
+
get: regExpFlagsGetterImplementation
|
|
16987
|
+
});
|
|
16988
|
+
regExpFlagsDetection.correct = true;
|
|
16989
|
+
}
|
|
15803
16990
|
return es_regexp_flags;
|
|
15804
16991
|
}
|
|
15805
16992
|
var es_regexp_sticky = {};
|
|
@@ -16150,22 +17337,25 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16150
17337
|
if (hasRequiredEs_string_match) return es_string_match;
|
|
16151
17338
|
hasRequiredEs_string_match = 1;
|
|
16152
17339
|
var call = requireFunctionCall();
|
|
17340
|
+
var uncurryThis = requireFunctionUncurryThis();
|
|
16153
17341
|
var fixRegExpWellKnownSymbolLogic = requireFixRegexpWellKnownSymbolLogic();
|
|
16154
17342
|
var anObject2 = requireAnObject();
|
|
16155
|
-
var
|
|
17343
|
+
var isObject2 = requireIsObject();
|
|
16156
17344
|
var toLength2 = requireToLength();
|
|
16157
17345
|
var toString2 = requireToString();
|
|
16158
17346
|
var requireObjectCoercible2 = requireRequireObjectCoercible();
|
|
16159
17347
|
var getMethod2 = requireGetMethod();
|
|
16160
17348
|
var advanceStringIndex2 = requireAdvanceStringIndex();
|
|
17349
|
+
var getRegExpFlags = requireRegexpGetFlags();
|
|
16161
17350
|
var regExpExec = requireRegexpExecAbstract();
|
|
17351
|
+
var stringIndexOf = uncurryThis("".indexOf);
|
|
16162
17352
|
fixRegExpWellKnownSymbolLogic("match", function(MATCH, nativeMatch, maybeCallNative) {
|
|
16163
17353
|
return [
|
|
16164
17354
|
// `String.prototype.match` method
|
|
16165
17355
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
16166
17356
|
function match2(regexp) {
|
|
16167
17357
|
var O = requireObjectCoercible2(this);
|
|
16168
|
-
var matcher =
|
|
17358
|
+
var matcher = isObject2(regexp) ? getMethod2(regexp, MATCH) : void 0;
|
|
16169
17359
|
return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString2(O));
|
|
16170
17360
|
},
|
|
16171
17361
|
// `RegExp.prototype[@@match]` method
|
|
@@ -16175,8 +17365,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16175
17365
|
var S = toString2(string);
|
|
16176
17366
|
var res = maybeCallNative(nativeMatch, rx, S);
|
|
16177
17367
|
if (res.done) return res.value;
|
|
16178
|
-
|
|
16179
|
-
|
|
17368
|
+
var flags = toString2(getRegExpFlags(rx));
|
|
17369
|
+
if (stringIndexOf(flags, "g") === -1) return regExpExec(rx, S);
|
|
17370
|
+
var fullUnicode = stringIndexOf(flags, "u") !== -1;
|
|
16180
17371
|
rx.lastIndex = 0;
|
|
16181
17372
|
var A = [];
|
|
16182
17373
|
var n = 0;
|
|
@@ -16207,7 +17398,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16207
17398
|
var toLength2 = requireToLength();
|
|
16208
17399
|
var toString2 = requireToString();
|
|
16209
17400
|
var anObject2 = requireAnObject();
|
|
16210
|
-
var
|
|
17401
|
+
var isObject2 = requireIsObject();
|
|
16211
17402
|
var classof2 = requireClassofRaw();
|
|
16212
17403
|
var isRegExp = requireIsRegexp();
|
|
16213
17404
|
var getRegExpFlags = requireRegexpGetFlags();
|
|
@@ -16274,7 +17465,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16274
17465
|
matchAll: function matchAll(regexp) {
|
|
16275
17466
|
var O = requireObjectCoercible2(this);
|
|
16276
17467
|
var flags, S, matcher, rx;
|
|
16277
|
-
if (
|
|
17468
|
+
if (isObject2(regexp)) {
|
|
16278
17469
|
if (isRegExp(regexp)) {
|
|
16279
17470
|
flags = toString2(requireObjectCoercible2(getRegExpFlags(regexp)));
|
|
16280
17471
|
if (!~stringIndexOf(flags, "g")) throw new $TypeError("`.matchAll` does not allow non-global regexes");
|
|
@@ -16436,7 +17627,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16436
17627
|
var fails2 = requireFails();
|
|
16437
17628
|
var anObject2 = requireAnObject();
|
|
16438
17629
|
var isCallable2 = requireIsCallable();
|
|
16439
|
-
var
|
|
17630
|
+
var isObject2 = requireIsObject();
|
|
16440
17631
|
var toIntegerOrInfinity2 = requireToIntegerOrInfinity();
|
|
16441
17632
|
var toLength2 = requireToLength();
|
|
16442
17633
|
var toString2 = requireToString();
|
|
@@ -16444,6 +17635,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16444
17635
|
var advanceStringIndex2 = requireAdvanceStringIndex();
|
|
16445
17636
|
var getMethod2 = requireGetMethod();
|
|
16446
17637
|
var getSubstitution2 = requireGetSubstitution();
|
|
17638
|
+
var getRegExpFlags = requireRegexpGetFlags();
|
|
16447
17639
|
var regExpExec = requireRegexpExecAbstract();
|
|
16448
17640
|
var wellKnownSymbol2 = requireWellKnownSymbol();
|
|
16449
17641
|
var REPLACE = wellKnownSymbol2("replace");
|
|
@@ -16481,7 +17673,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16481
17673
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
16482
17674
|
function replace(searchValue, replaceValue) {
|
|
16483
17675
|
var O = requireObjectCoercible2(this);
|
|
16484
|
-
var replacer =
|
|
17676
|
+
var replacer = isObject2(searchValue) ? getMethod2(searchValue, REPLACE) : void 0;
|
|
16485
17677
|
return replacer ? call(replacer, searchValue, O, replaceValue) : call(nativeReplace, toString2(O), searchValue, replaceValue);
|
|
16486
17678
|
},
|
|
16487
17679
|
// `RegExp.prototype[@@replace]` method
|
|
@@ -16495,10 +17687,11 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16495
17687
|
}
|
|
16496
17688
|
var functionalReplace = isCallable2(replaceValue);
|
|
16497
17689
|
if (!functionalReplace) replaceValue = toString2(replaceValue);
|
|
16498
|
-
var
|
|
17690
|
+
var flags = toString2(getRegExpFlags(rx));
|
|
17691
|
+
var global2 = stringIndexOf(flags, "g") !== -1;
|
|
16499
17692
|
var fullUnicode;
|
|
16500
17693
|
if (global2) {
|
|
16501
|
-
fullUnicode =
|
|
17694
|
+
fullUnicode = stringIndexOf(flags, "u") !== -1;
|
|
16502
17695
|
rx.lastIndex = 0;
|
|
16503
17696
|
}
|
|
16504
17697
|
var results = [];
|
|
@@ -16549,7 +17742,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16549
17742
|
var uncurryThis = requireFunctionUncurryThis();
|
|
16550
17743
|
var requireObjectCoercible2 = requireRequireObjectCoercible();
|
|
16551
17744
|
var isCallable2 = requireIsCallable();
|
|
16552
|
-
var
|
|
17745
|
+
var isObject2 = requireIsObject();
|
|
16553
17746
|
var isRegExp = requireIsRegexp();
|
|
16554
17747
|
var toString2 = requireToString();
|
|
16555
17748
|
var getMethod2 = requireGetMethod();
|
|
@@ -16569,7 +17762,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16569
17762
|
var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, position, replacement;
|
|
16570
17763
|
var endOfLastMatch = 0;
|
|
16571
17764
|
var result = "";
|
|
16572
|
-
if (
|
|
17765
|
+
if (isObject2(searchValue)) {
|
|
16573
17766
|
IS_REG_EXP = isRegExp(searchValue);
|
|
16574
17767
|
if (IS_REG_EXP) {
|
|
16575
17768
|
flags = toString2(requireObjectCoercible2(getRegExpFlags(searchValue)));
|
|
@@ -16608,7 +17801,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16608
17801
|
var call = requireFunctionCall();
|
|
16609
17802
|
var fixRegExpWellKnownSymbolLogic = requireFixRegexpWellKnownSymbolLogic();
|
|
16610
17803
|
var anObject2 = requireAnObject();
|
|
16611
|
-
var
|
|
17804
|
+
var isObject2 = requireIsObject();
|
|
16612
17805
|
var requireObjectCoercible2 = requireRequireObjectCoercible();
|
|
16613
17806
|
var sameValue2 = requireSameValue();
|
|
16614
17807
|
var toString2 = requireToString();
|
|
@@ -16620,7 +17813,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16620
17813
|
// https://tc39.es/ecma262/#sec-string.prototype.search
|
|
16621
17814
|
function search(regexp) {
|
|
16622
17815
|
var O = requireObjectCoercible2(this);
|
|
16623
|
-
var searcher =
|
|
17816
|
+
var searcher = isObject2(regexp) ? getMethod2(regexp, SEARCH) : void 0;
|
|
16624
17817
|
return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString2(O));
|
|
16625
17818
|
},
|
|
16626
17819
|
// `RegExp.prototype[@@search]` method
|
|
@@ -16649,7 +17842,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16649
17842
|
var uncurryThis = requireFunctionUncurryThis();
|
|
16650
17843
|
var fixRegExpWellKnownSymbolLogic = requireFixRegexpWellKnownSymbolLogic();
|
|
16651
17844
|
var anObject2 = requireAnObject();
|
|
16652
|
-
var
|
|
17845
|
+
var isObject2 = requireIsObject();
|
|
16653
17846
|
var requireObjectCoercible2 = requireRequireObjectCoercible();
|
|
16654
17847
|
var speciesConstructor2 = requireSpeciesConstructor();
|
|
16655
17848
|
var advanceStringIndex2 = requireAdvanceStringIndex();
|
|
@@ -16685,7 +17878,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
16685
17878
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
16686
17879
|
function split(separator, limit) {
|
|
16687
17880
|
var O = requireObjectCoercible2(this);
|
|
16688
|
-
var splitter =
|
|
17881
|
+
var splitter = isObject2(separator) ? getMethod2(separator, SPLIT) : void 0;
|
|
16689
17882
|
return splitter ? call(splitter, separator, O, limit) : call(internalSplit, toString2(O), separator, limit);
|
|
16690
17883
|
},
|
|
16691
17884
|
// `RegExp.prototype[@@split]` method
|
|
@@ -18249,7 +19442,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
18249
19442
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
18250
19443
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
18251
19444
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
18252
|
-
var PROPER_ORDER =
|
|
19445
|
+
var PROPER_ORDER = function() {
|
|
18253
19446
|
try {
|
|
18254
19447
|
new Int8Array(1)["with"](2, { valueOf: function() {
|
|
18255
19448
|
throw 8;
|
|
@@ -18258,12 +19451,19 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
18258
19451
|
return error === 8;
|
|
18259
19452
|
}
|
|
18260
19453
|
}();
|
|
19454
|
+
var THROW_ON_NEGATIVE_FRACTIONAL_INDEX = PROPER_ORDER && function() {
|
|
19455
|
+
try {
|
|
19456
|
+
new Int8Array(1)["with"](-0.5, 1);
|
|
19457
|
+
} catch (error) {
|
|
19458
|
+
return true;
|
|
19459
|
+
}
|
|
19460
|
+
}();
|
|
18261
19461
|
exportTypedArrayMethod("with", { "with": function(index2, value2) {
|
|
18262
19462
|
var O = aTypedArray(this);
|
|
18263
19463
|
var relativeIndex = toIntegerOrInfinity2(index2);
|
|
18264
19464
|
var actualValue = isBigIntArray2(O) ? toBigInt2(value2) : +value2;
|
|
18265
19465
|
return arrayWith2(O, getTypedArrayConstructor(O), relativeIndex, actualValue);
|
|
18266
|
-
} }["with"], !PROPER_ORDER);
|
|
19466
|
+
} }["with"], !PROPER_ORDER || THROW_ON_NEGATIVE_FRACTIONAL_INDEX);
|
|
18267
19467
|
return es_typedArray_with;
|
|
18268
19468
|
}
|
|
18269
19469
|
var es_unescape = {};
|
|
@@ -19125,7 +20325,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
19125
20325
|
var objectKeys2 = getBuiltIn2("Object", "keys");
|
|
19126
20326
|
var push = uncurryThis([].push);
|
|
19127
20327
|
var thisBooleanValue = uncurryThis(true.valueOf);
|
|
19128
|
-
var thisNumberValue2 = uncurryThis(1
|
|
20328
|
+
var thisNumberValue2 = uncurryThis(1.1.valueOf);
|
|
19129
20329
|
var thisStringValue = uncurryThis("".valueOf);
|
|
19130
20330
|
var thisTimeValue = uncurryThis(Date2.prototype.getTime);
|
|
19131
20331
|
var PERFORMANCE_MARK = uid2("structuredClone");
|
|
@@ -19581,7 +20781,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
19581
20781
|
hasRequiredStable = 1;
|
|
19582
20782
|
requireEs_symbol();
|
|
19583
20783
|
requireEs_symbol_description();
|
|
20784
|
+
requireEs_symbol_asyncDispose();
|
|
19584
20785
|
requireEs_symbol_asyncIterator();
|
|
20786
|
+
requireEs_symbol_dispose();
|
|
19585
20787
|
requireEs_symbol_hasInstance();
|
|
19586
20788
|
requireEs_symbol_isConcatSpreadable();
|
|
19587
20789
|
requireEs_symbol_iterator();
|
|
@@ -19595,9 +20797,11 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
19595
20797
|
requireEs_symbol_toStringTag();
|
|
19596
20798
|
requireEs_symbol_unscopables();
|
|
19597
20799
|
requireEs_error_cause();
|
|
20800
|
+
requireEs_error_isError();
|
|
19598
20801
|
requireEs_error_toString();
|
|
19599
20802
|
requireEs_aggregateError();
|
|
19600
20803
|
requireEs_aggregateError_cause();
|
|
20804
|
+
requireEs_suppressedError_constructor();
|
|
19601
20805
|
requireEs_array_at();
|
|
19602
20806
|
requireEs_array_concat();
|
|
19603
20807
|
requireEs_array_copyWithin();
|
|
@@ -19640,6 +20844,8 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
19640
20844
|
requireEs_arrayBuffer_isView();
|
|
19641
20845
|
requireEs_arrayBuffer_slice();
|
|
19642
20846
|
requireEs_dataView();
|
|
20847
|
+
requireEs_dataView_getFloat16();
|
|
20848
|
+
requireEs_dataView_setFloat16();
|
|
19643
20849
|
requireEs_arrayBuffer_detached();
|
|
19644
20850
|
requireEs_arrayBuffer_transfer();
|
|
19645
20851
|
requireEs_arrayBuffer_transferToFixedLength();
|
|
@@ -19651,12 +20857,14 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
19651
20857
|
requireEs_date_toJson();
|
|
19652
20858
|
requireEs_date_toPrimitive();
|
|
19653
20859
|
requireEs_date_toString();
|
|
20860
|
+
requireEs_disposableStack_constructor();
|
|
19654
20861
|
requireEs_escape();
|
|
19655
20862
|
requireEs_function_bind();
|
|
19656
20863
|
requireEs_function_hasInstance();
|
|
19657
20864
|
requireEs_function_name();
|
|
19658
20865
|
requireEs_globalThis();
|
|
19659
20866
|
requireEs_iterator_constructor();
|
|
20867
|
+
requireEs_iterator_dispose();
|
|
19660
20868
|
requireEs_iterator_drop();
|
|
19661
20869
|
requireEs_iterator_every();
|
|
19662
20870
|
requireEs_iterator_filter();
|
|
@@ -19681,6 +20889,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
19681
20889
|
requireEs_math_cosh();
|
|
19682
20890
|
requireEs_math_expm1();
|
|
19683
20891
|
requireEs_math_fround();
|
|
20892
|
+
requireEs_math_f16round();
|
|
19684
20893
|
requireEs_math_hypot();
|
|
19685
20894
|
requireEs_math_imul();
|
|
19686
20895
|
requireEs_math_log10();
|
|
@@ -19740,6 +20949,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
19740
20949
|
requireEs_promise_finally();
|
|
19741
20950
|
requireEs_promise_try();
|
|
19742
20951
|
requireEs_promise_withResolvers();
|
|
20952
|
+
requireEs_array_fromAsync();
|
|
20953
|
+
requireEs_asyncDisposableStack_constructor();
|
|
20954
|
+
requireEs_asyncIterator_asyncDispose();
|
|
19743
20955
|
requireEs_reflect_apply();
|
|
19744
20956
|
requireEs_reflect_construct();
|
|
19745
20957
|
requireEs_reflect_defineProperty();
|
|
@@ -19755,6 +20967,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
19755
20967
|
requireEs_reflect_setPrototypeOf();
|
|
19756
20968
|
requireEs_reflect_toStringTag();
|
|
19757
20969
|
requireEs_regexp_constructor();
|
|
20970
|
+
requireEs_regexp_escape();
|
|
19758
20971
|
requireEs_regexp_dotAll();
|
|
19759
20972
|
requireEs_regexp_exec();
|
|
19760
20973
|
requireEs_regexp_flags();
|
|
@@ -22103,168 +23316,8 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22103
23316
|
const LocalStorageStore = new LocalStorageStoreClass();
|
|
22104
23317
|
if (typeof window !== "undefined")
|
|
22105
23318
|
window["LocalStorageStore"] = LocalStorageStore;
|
|
22106
|
-
var dist = {};
|
|
22107
|
-
var hasRequiredDist;
|
|
22108
|
-
function requireDist() {
|
|
22109
|
-
if (hasRequiredDist) return dist;
|
|
22110
|
-
hasRequiredDist = 1;
|
|
22111
|
-
Object.defineProperty(dist, "__esModule", { value: true });
|
|
22112
|
-
dist.parse = parse2;
|
|
22113
|
-
dist.serialize = serialize;
|
|
22114
|
-
const cookieNameRegExp = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/;
|
|
22115
|
-
const cookieValueRegExp = /^[\u0021-\u003A\u003C-\u007E]*$/;
|
|
22116
|
-
const domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
|
|
22117
|
-
const pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
|
|
22118
|
-
const __toString = Object.prototype.toString;
|
|
22119
|
-
const NullObject = /* @__PURE__ */ (() => {
|
|
22120
|
-
const C = function() {
|
|
22121
|
-
};
|
|
22122
|
-
C.prototype = /* @__PURE__ */ Object.create(null);
|
|
22123
|
-
return C;
|
|
22124
|
-
})();
|
|
22125
|
-
function parse2(str, options) {
|
|
22126
|
-
const obj = new NullObject();
|
|
22127
|
-
const len = str.length;
|
|
22128
|
-
if (len < 2)
|
|
22129
|
-
return obj;
|
|
22130
|
-
const dec = (options == null ? void 0 : options.decode) || decode2;
|
|
22131
|
-
let index2 = 0;
|
|
22132
|
-
do {
|
|
22133
|
-
const eqIdx = str.indexOf("=", index2);
|
|
22134
|
-
if (eqIdx === -1)
|
|
22135
|
-
break;
|
|
22136
|
-
const colonIdx = str.indexOf(";", index2);
|
|
22137
|
-
const endIdx = colonIdx === -1 ? len : colonIdx;
|
|
22138
|
-
if (eqIdx > endIdx) {
|
|
22139
|
-
index2 = str.lastIndexOf(";", eqIdx - 1) + 1;
|
|
22140
|
-
continue;
|
|
22141
|
-
}
|
|
22142
|
-
const keyStartIdx = startIndex(str, index2, eqIdx);
|
|
22143
|
-
const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
|
|
22144
|
-
const key2 = str.slice(keyStartIdx, keyEndIdx);
|
|
22145
|
-
if (obj[key2] === void 0) {
|
|
22146
|
-
let valStartIdx = startIndex(str, eqIdx + 1, endIdx);
|
|
22147
|
-
let valEndIdx = endIndex(str, endIdx, valStartIdx);
|
|
22148
|
-
const value2 = dec(str.slice(valStartIdx, valEndIdx));
|
|
22149
|
-
obj[key2] = value2;
|
|
22150
|
-
}
|
|
22151
|
-
index2 = endIdx + 1;
|
|
22152
|
-
} while (index2 < len);
|
|
22153
|
-
return obj;
|
|
22154
|
-
}
|
|
22155
|
-
function startIndex(str, index2, max) {
|
|
22156
|
-
do {
|
|
22157
|
-
const code = str.charCodeAt(index2);
|
|
22158
|
-
if (code !== 32 && code !== 9)
|
|
22159
|
-
return index2;
|
|
22160
|
-
} while (++index2 < max);
|
|
22161
|
-
return max;
|
|
22162
|
-
}
|
|
22163
|
-
function endIndex(str, index2, min) {
|
|
22164
|
-
while (index2 > min) {
|
|
22165
|
-
const code = str.charCodeAt(--index2);
|
|
22166
|
-
if (code !== 32 && code !== 9)
|
|
22167
|
-
return index2 + 1;
|
|
22168
|
-
}
|
|
22169
|
-
return min;
|
|
22170
|
-
}
|
|
22171
|
-
function serialize(name, val, options) {
|
|
22172
|
-
const enc = (options == null ? void 0 : options.encode) || encodeURIComponent;
|
|
22173
|
-
if (!cookieNameRegExp.test(name)) {
|
|
22174
|
-
throw new TypeError(`argument name is invalid: ${name}`);
|
|
22175
|
-
}
|
|
22176
|
-
const value2 = enc(val);
|
|
22177
|
-
if (!cookieValueRegExp.test(value2)) {
|
|
22178
|
-
throw new TypeError(`argument val is invalid: ${val}`);
|
|
22179
|
-
}
|
|
22180
|
-
let str = name + "=" + value2;
|
|
22181
|
-
if (!options)
|
|
22182
|
-
return str;
|
|
22183
|
-
if (options.maxAge !== void 0) {
|
|
22184
|
-
if (!Number.isInteger(options.maxAge)) {
|
|
22185
|
-
throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);
|
|
22186
|
-
}
|
|
22187
|
-
str += "; Max-Age=" + options.maxAge;
|
|
22188
|
-
}
|
|
22189
|
-
if (options.domain) {
|
|
22190
|
-
if (!domainValueRegExp.test(options.domain)) {
|
|
22191
|
-
throw new TypeError(`option domain is invalid: ${options.domain}`);
|
|
22192
|
-
}
|
|
22193
|
-
str += "; Domain=" + options.domain;
|
|
22194
|
-
}
|
|
22195
|
-
if (options.path) {
|
|
22196
|
-
if (!pathValueRegExp.test(options.path)) {
|
|
22197
|
-
throw new TypeError(`option path is invalid: ${options.path}`);
|
|
22198
|
-
}
|
|
22199
|
-
str += "; Path=" + options.path;
|
|
22200
|
-
}
|
|
22201
|
-
if (options.expires) {
|
|
22202
|
-
if (!isDate(options.expires) || !Number.isFinite(options.expires.valueOf())) {
|
|
22203
|
-
throw new TypeError(`option expires is invalid: ${options.expires}`);
|
|
22204
|
-
}
|
|
22205
|
-
str += "; Expires=" + options.expires.toUTCString();
|
|
22206
|
-
}
|
|
22207
|
-
if (options.httpOnly) {
|
|
22208
|
-
str += "; HttpOnly";
|
|
22209
|
-
}
|
|
22210
|
-
if (options.secure) {
|
|
22211
|
-
str += "; Secure";
|
|
22212
|
-
}
|
|
22213
|
-
if (options.partitioned) {
|
|
22214
|
-
str += "; Partitioned";
|
|
22215
|
-
}
|
|
22216
|
-
if (options.priority) {
|
|
22217
|
-
const priority = typeof options.priority === "string" ? options.priority.toLowerCase() : void 0;
|
|
22218
|
-
switch (priority) {
|
|
22219
|
-
case "low":
|
|
22220
|
-
str += "; Priority=Low";
|
|
22221
|
-
break;
|
|
22222
|
-
case "medium":
|
|
22223
|
-
str += "; Priority=Medium";
|
|
22224
|
-
break;
|
|
22225
|
-
case "high":
|
|
22226
|
-
str += "; Priority=High";
|
|
22227
|
-
break;
|
|
22228
|
-
default:
|
|
22229
|
-
throw new TypeError(`option priority is invalid: ${options.priority}`);
|
|
22230
|
-
}
|
|
22231
|
-
}
|
|
22232
|
-
if (options.sameSite) {
|
|
22233
|
-
const sameSite = typeof options.sameSite === "string" ? options.sameSite.toLowerCase() : options.sameSite;
|
|
22234
|
-
switch (sameSite) {
|
|
22235
|
-
case true:
|
|
22236
|
-
case "strict":
|
|
22237
|
-
str += "; SameSite=Strict";
|
|
22238
|
-
break;
|
|
22239
|
-
case "lax":
|
|
22240
|
-
str += "; SameSite=Lax";
|
|
22241
|
-
break;
|
|
22242
|
-
case "none":
|
|
22243
|
-
str += "; SameSite=None";
|
|
22244
|
-
break;
|
|
22245
|
-
default:
|
|
22246
|
-
throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);
|
|
22247
|
-
}
|
|
22248
|
-
}
|
|
22249
|
-
return str;
|
|
22250
|
-
}
|
|
22251
|
-
function decode2(str) {
|
|
22252
|
-
if (str.indexOf("%") === -1)
|
|
22253
|
-
return str;
|
|
22254
|
-
try {
|
|
22255
|
-
return decodeURIComponent(str);
|
|
22256
|
-
} catch (e) {
|
|
22257
|
-
return str;
|
|
22258
|
-
}
|
|
22259
|
-
}
|
|
22260
|
-
function isDate(val) {
|
|
22261
|
-
return __toString.call(val) === "[object Date]";
|
|
22262
|
-
}
|
|
22263
|
-
return dist;
|
|
22264
|
-
}
|
|
22265
|
-
requireDist();
|
|
22266
23319
|
/**
|
|
22267
|
-
* react-router v7.1
|
|
23320
|
+
* react-router v7.7.1
|
|
22268
23321
|
*
|
|
22269
23322
|
* Copyright (c) Remix Software Inc.
|
|
22270
23323
|
*
|
|
@@ -22273,6 +23326,12 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22273
23326
|
*
|
|
22274
23327
|
* @license MIT
|
|
22275
23328
|
*/
|
|
23329
|
+
var __typeError = (msg) => {
|
|
23330
|
+
throw TypeError(msg);
|
|
23331
|
+
};
|
|
23332
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
23333
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
23334
|
+
var __privateAdd = (obj, member, value2) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value2);
|
|
22276
23335
|
var PopStateEventType$1 = "popstate";
|
|
22277
23336
|
function createBrowserHistory(options = {}) {
|
|
22278
23337
|
function createBrowserLocation(window2, globalHistory) {
|
|
@@ -22417,14 +23476,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22417
23476
|
}
|
|
22418
23477
|
}
|
|
22419
23478
|
function createURL(to) {
|
|
22420
|
-
|
|
22421
|
-
let href = typeof to === "string" ? to : createPath$1(to);
|
|
22422
|
-
href = href.replace(/ $/, "%20");
|
|
22423
|
-
invariant$1(
|
|
22424
|
-
base,
|
|
22425
|
-
`No window.location.(origin|href) available to create URL for href: ${href}`
|
|
22426
|
-
);
|
|
22427
|
-
return new URL(href, base);
|
|
23479
|
+
return createBrowserURLImpl(to);
|
|
22428
23480
|
}
|
|
22429
23481
|
let history2 = {
|
|
22430
23482
|
get action() {
|
|
@@ -22464,18 +23516,74 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22464
23516
|
};
|
|
22465
23517
|
return history2;
|
|
22466
23518
|
}
|
|
22467
|
-
|
|
23519
|
+
function createBrowserURLImpl(to, isAbsolute = false) {
|
|
23520
|
+
let base = "http://localhost";
|
|
23521
|
+
if (typeof window !== "undefined") {
|
|
23522
|
+
base = window.location.origin !== "null" ? window.location.origin : window.location.href;
|
|
23523
|
+
}
|
|
23524
|
+
invariant$1(base, "No window.location.(origin|href) available to create URL");
|
|
23525
|
+
let href = typeof to === "string" ? to : createPath$1(to);
|
|
23526
|
+
href = href.replace(/ $/, "%20");
|
|
23527
|
+
if (!isAbsolute && href.startsWith("//")) {
|
|
23528
|
+
href = base + href;
|
|
23529
|
+
}
|
|
23530
|
+
return new URL(href, base);
|
|
23531
|
+
}
|
|
23532
|
+
var _map;
|
|
23533
|
+
var unstable_RouterContextProvider = class {
|
|
23534
|
+
constructor(init) {
|
|
23535
|
+
__privateAdd(this, _map, /* @__PURE__ */ new Map());
|
|
23536
|
+
if (init) {
|
|
23537
|
+
for (let [context, value2] of init) {
|
|
23538
|
+
this.set(context, value2);
|
|
23539
|
+
}
|
|
23540
|
+
}
|
|
23541
|
+
}
|
|
23542
|
+
get(context) {
|
|
23543
|
+
if (__privateGet(this, _map).has(context)) {
|
|
23544
|
+
return __privateGet(this, _map).get(context);
|
|
23545
|
+
}
|
|
23546
|
+
if (context.defaultValue !== void 0) {
|
|
23547
|
+
return context.defaultValue;
|
|
23548
|
+
}
|
|
23549
|
+
throw new Error("No value found for context");
|
|
23550
|
+
}
|
|
23551
|
+
set(context, value2) {
|
|
23552
|
+
__privateGet(this, _map).set(context, value2);
|
|
23553
|
+
}
|
|
23554
|
+
};
|
|
23555
|
+
_map = /* @__PURE__ */ new WeakMap();
|
|
23556
|
+
var unsupportedLazyRouteObjectKeys = /* @__PURE__ */ new Set([
|
|
23557
|
+
"lazy",
|
|
23558
|
+
"caseSensitive",
|
|
23559
|
+
"path",
|
|
23560
|
+
"id",
|
|
23561
|
+
"index",
|
|
23562
|
+
"children"
|
|
23563
|
+
]);
|
|
23564
|
+
function isUnsupportedLazyRouteObjectKey(key2) {
|
|
23565
|
+
return unsupportedLazyRouteObjectKeys.has(
|
|
23566
|
+
key2
|
|
23567
|
+
);
|
|
23568
|
+
}
|
|
23569
|
+
var unsupportedLazyRouteFunctionKeys = /* @__PURE__ */ new Set([
|
|
22468
23570
|
"lazy",
|
|
22469
23571
|
"caseSensitive",
|
|
22470
23572
|
"path",
|
|
22471
23573
|
"id",
|
|
22472
23574
|
"index",
|
|
23575
|
+
"unstable_middleware",
|
|
22473
23576
|
"children"
|
|
22474
23577
|
]);
|
|
23578
|
+
function isUnsupportedLazyRouteFunctionKey(key2) {
|
|
23579
|
+
return unsupportedLazyRouteFunctionKeys.has(
|
|
23580
|
+
key2
|
|
23581
|
+
);
|
|
23582
|
+
}
|
|
22475
23583
|
function isIndexRoute(route) {
|
|
22476
23584
|
return route.index === true;
|
|
22477
23585
|
}
|
|
22478
|
-
function convertRoutesToDataRoutes(routes2, mapRouteProperties2, parentPath = [], manifest = {}) {
|
|
23586
|
+
function convertRoutesToDataRoutes(routes2, mapRouteProperties2, parentPath = [], manifest = {}, allowInPlaceMutations = false) {
|
|
22479
23587
|
return routes2.map((route, index2) => {
|
|
22480
23588
|
let treePath = [...parentPath, String(index2)];
|
|
22481
23589
|
let id2 = typeof route.id === "string" ? route.id : treePath.join("-");
|
|
@@ -22484,7 +23592,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22484
23592
|
`Cannot specify children on an index route`
|
|
22485
23593
|
);
|
|
22486
23594
|
invariant$1(
|
|
22487
|
-
!manifest[id2],
|
|
23595
|
+
allowInPlaceMutations || !manifest[id2],
|
|
22488
23596
|
`Found a route id collision on id "${id2}". Route id's must be globally unique within Data Router usages`
|
|
22489
23597
|
);
|
|
22490
23598
|
if (isIndexRoute(route)) {
|
|
@@ -22508,7 +23616,8 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22508
23616
|
route.children,
|
|
22509
23617
|
mapRouteProperties2,
|
|
22510
23618
|
treePath,
|
|
22511
|
-
manifest
|
|
23619
|
+
manifest,
|
|
23620
|
+
allowInPlaceMutations
|
|
22512
23621
|
);
|
|
22513
23622
|
}
|
|
22514
23623
|
return pathOrLayoutRoute;
|
|
@@ -22787,6 +23896,12 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22787
23896
|
}
|
|
22788
23897
|
return pathname.slice(startIndex) || "/";
|
|
22789
23898
|
}
|
|
23899
|
+
function prependBasename({
|
|
23900
|
+
basename,
|
|
23901
|
+
pathname
|
|
23902
|
+
}) {
|
|
23903
|
+
return pathname === "/" ? basename : joinPaths([basename, pathname]);
|
|
23904
|
+
}
|
|
22790
23905
|
function resolvePath(to, fromPathname = "/") {
|
|
22791
23906
|
let {
|
|
22792
23907
|
pathname: toPathname,
|
|
@@ -22946,6 +24061,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22946
24061
|
location: void 0
|
|
22947
24062
|
};
|
|
22948
24063
|
var ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
24064
|
+
var isAbsoluteUrl = (url2) => ABSOLUTE_URL_REGEX.test(url2);
|
|
22949
24065
|
var defaultMapRouteProperties = (route) => ({
|
|
22950
24066
|
hasErrorBoundary: Boolean(route.hasErrorBoundary)
|
|
22951
24067
|
});
|
|
@@ -22958,6 +24074,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22958
24074
|
init.routes.length > 0,
|
|
22959
24075
|
"You must provide a non-empty routes array to createRouter"
|
|
22960
24076
|
);
|
|
24077
|
+
let hydrationRouteProperties2 = init.hydrationRouteProperties || [];
|
|
22961
24078
|
let mapRouteProperties2 = init.mapRouteProperties || defaultMapRouteProperties;
|
|
22962
24079
|
let manifest = {};
|
|
22963
24080
|
let dataRoutes = convertRoutesToDataRoutes(
|
|
@@ -22968,9 +24085,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22968
24085
|
);
|
|
22969
24086
|
let inFlightDataRoutes;
|
|
22970
24087
|
let basename = init.basename || "/";
|
|
22971
|
-
let dataStrategyImpl = init.dataStrategy ||
|
|
22972
|
-
let patchRoutesOnNavigationImpl = init.patchRoutesOnNavigation;
|
|
24088
|
+
let dataStrategyImpl = init.dataStrategy || defaultDataStrategyWithMiddleware;
|
|
22973
24089
|
let future = {
|
|
24090
|
+
unstable_middleware: false,
|
|
22974
24091
|
...init.future
|
|
22975
24092
|
};
|
|
22976
24093
|
let unlistenHistory = null;
|
|
@@ -22982,53 +24099,57 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
22982
24099
|
let initialMatches = matchRoutes(dataRoutes, init.history.location, basename);
|
|
22983
24100
|
let initialMatchesIsFOW = false;
|
|
22984
24101
|
let initialErrors = null;
|
|
22985
|
-
|
|
24102
|
+
let initialized;
|
|
24103
|
+
if (initialMatches == null && !init.patchRoutesOnNavigation) {
|
|
22986
24104
|
let error = getInternalRouterError(404, {
|
|
22987
24105
|
pathname: init.history.location.pathname
|
|
22988
24106
|
});
|
|
22989
24107
|
let { matches, route } = getShortCircuitMatches(dataRoutes);
|
|
24108
|
+
initialized = true;
|
|
22990
24109
|
initialMatches = matches;
|
|
22991
24110
|
initialErrors = { [route.id]: error };
|
|
22992
|
-
}
|
|
22993
|
-
if (initialMatches && !init.hydrationData) {
|
|
22994
|
-
let fogOfWar = checkFogOfWar(
|
|
22995
|
-
initialMatches,
|
|
22996
|
-
dataRoutes,
|
|
22997
|
-
init.history.location.pathname
|
|
22998
|
-
);
|
|
22999
|
-
if (fogOfWar.active) {
|
|
23000
|
-
initialMatches = null;
|
|
23001
|
-
}
|
|
23002
|
-
}
|
|
23003
|
-
let initialized;
|
|
23004
|
-
if (!initialMatches) {
|
|
23005
|
-
initialized = false;
|
|
23006
|
-
initialMatches = [];
|
|
23007
|
-
let fogOfWar = checkFogOfWar(
|
|
23008
|
-
null,
|
|
23009
|
-
dataRoutes,
|
|
23010
|
-
init.history.location.pathname
|
|
23011
|
-
);
|
|
23012
|
-
if (fogOfWar.active && fogOfWar.matches) {
|
|
23013
|
-
initialMatchesIsFOW = true;
|
|
23014
|
-
initialMatches = fogOfWar.matches;
|
|
23015
|
-
}
|
|
23016
|
-
} else if (initialMatches.some((m) => m.route.lazy)) {
|
|
23017
|
-
initialized = false;
|
|
23018
|
-
} else if (!initialMatches.some((m) => m.route.loader)) {
|
|
23019
|
-
initialized = true;
|
|
23020
24111
|
} else {
|
|
23021
|
-
|
|
23022
|
-
|
|
23023
|
-
|
|
23024
|
-
|
|
23025
|
-
|
|
24112
|
+
if (initialMatches && !init.hydrationData) {
|
|
24113
|
+
let fogOfWar = checkFogOfWar(
|
|
24114
|
+
initialMatches,
|
|
24115
|
+
dataRoutes,
|
|
24116
|
+
init.history.location.pathname
|
|
23026
24117
|
);
|
|
23027
|
-
|
|
23028
|
-
|
|
23029
|
-
|
|
23030
|
-
|
|
24118
|
+
if (fogOfWar.active) {
|
|
24119
|
+
initialMatches = null;
|
|
24120
|
+
}
|
|
24121
|
+
}
|
|
24122
|
+
if (!initialMatches) {
|
|
24123
|
+
initialized = false;
|
|
24124
|
+
initialMatches = [];
|
|
24125
|
+
let fogOfWar = checkFogOfWar(
|
|
24126
|
+
null,
|
|
24127
|
+
dataRoutes,
|
|
24128
|
+
init.history.location.pathname
|
|
23031
24129
|
);
|
|
24130
|
+
if (fogOfWar.active && fogOfWar.matches) {
|
|
24131
|
+
initialMatchesIsFOW = true;
|
|
24132
|
+
initialMatches = fogOfWar.matches;
|
|
24133
|
+
}
|
|
24134
|
+
} else if (initialMatches.some((m) => m.route.lazy)) {
|
|
24135
|
+
initialized = false;
|
|
24136
|
+
} else if (!initialMatches.some((m) => m.route.loader)) {
|
|
24137
|
+
initialized = true;
|
|
24138
|
+
} else {
|
|
24139
|
+
let loaderData = init.hydrationData ? init.hydrationData.loaderData : null;
|
|
24140
|
+
let errors = init.hydrationData ? init.hydrationData.errors : null;
|
|
24141
|
+
if (errors) {
|
|
24142
|
+
let idx = initialMatches.findIndex(
|
|
24143
|
+
(m) => errors[m.route.id] !== void 0
|
|
24144
|
+
);
|
|
24145
|
+
initialized = initialMatches.slice(0, idx + 1).every(
|
|
24146
|
+
(m) => !shouldLoadRouteOnHydration(m.route, loaderData, errors)
|
|
24147
|
+
);
|
|
24148
|
+
} else {
|
|
24149
|
+
initialized = initialMatches.every(
|
|
24150
|
+
(m) => !shouldLoadRouteOnHydration(m.route, loaderData, errors)
|
|
24151
|
+
);
|
|
24152
|
+
}
|
|
23032
24153
|
}
|
|
23033
24154
|
}
|
|
23034
24155
|
let router;
|
|
@@ -23143,6 +24264,19 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23143
24264
|
return () => subscribers.delete(fn);
|
|
23144
24265
|
}
|
|
23145
24266
|
function updateState(newState, opts = {}) {
|
|
24267
|
+
if (newState.matches) {
|
|
24268
|
+
newState.matches = newState.matches.map((m) => {
|
|
24269
|
+
let route = manifest[m.route.id];
|
|
24270
|
+
let matchRoute = m.route;
|
|
24271
|
+
if (matchRoute.element !== route.element || matchRoute.errorElement !== route.errorElement || matchRoute.hydrateFallbackElement !== route.hydrateFallbackElement) {
|
|
24272
|
+
return {
|
|
24273
|
+
...m,
|
|
24274
|
+
route
|
|
24275
|
+
};
|
|
24276
|
+
}
|
|
24277
|
+
return m;
|
|
24278
|
+
});
|
|
24279
|
+
}
|
|
23146
24280
|
state = {
|
|
23147
24281
|
...state,
|
|
23148
24282
|
...newState
|
|
@@ -23199,6 +24333,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23199
24333
|
blockers = new Map(blockers);
|
|
23200
24334
|
blockers.forEach((_2, k) => blockers.set(k, IDLE_BLOCKER));
|
|
23201
24335
|
}
|
|
24336
|
+
let restoreScrollPosition = isUninterruptedRevalidation ? false : getSavedScrollPosition(location2, newState.matches || state.matches);
|
|
23202
24337
|
let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && ((_b2 = location2.state) == null ? void 0 : _b2._isRedirect) !== true;
|
|
23203
24338
|
if (inFlightDataRoutes) {
|
|
23204
24339
|
dataRoutes = inFlightDataRoutes;
|
|
@@ -23249,10 +24384,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23249
24384
|
initialized: true,
|
|
23250
24385
|
navigation: IDLE_NAVIGATION,
|
|
23251
24386
|
revalidation: "idle",
|
|
23252
|
-
restoreScrollPosition
|
|
23253
|
-
location2,
|
|
23254
|
-
newState.matches || state.matches
|
|
23255
|
-
),
|
|
24387
|
+
restoreScrollPosition,
|
|
23256
24388
|
preventScrollReset,
|
|
23257
24389
|
blockers
|
|
23258
24390
|
},
|
|
@@ -23414,6 +24546,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23414
24546
|
pendingNavigationController.signal,
|
|
23415
24547
|
opts && opts.submission
|
|
23416
24548
|
);
|
|
24549
|
+
let scopedContext = new unstable_RouterContextProvider(
|
|
24550
|
+
init.unstable_getContext ? await init.unstable_getContext() : void 0
|
|
24551
|
+
);
|
|
23417
24552
|
let pendingActionResult;
|
|
23418
24553
|
if (opts && opts.pendingError) {
|
|
23419
24554
|
pendingActionResult = [
|
|
@@ -23426,7 +24561,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23426
24561
|
location2,
|
|
23427
24562
|
opts.submission,
|
|
23428
24563
|
matches,
|
|
24564
|
+
scopedContext,
|
|
23429
24565
|
fogOfWar.active,
|
|
24566
|
+
opts && opts.initialHydration === true,
|
|
23430
24567
|
{ replace: opts.replace, flushSync }
|
|
23431
24568
|
);
|
|
23432
24569
|
if (actionResult.shortCircuited) {
|
|
@@ -23466,6 +24603,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23466
24603
|
request2,
|
|
23467
24604
|
location2,
|
|
23468
24605
|
matches,
|
|
24606
|
+
scopedContext,
|
|
23469
24607
|
fogOfWar.active,
|
|
23470
24608
|
loadingNavigation,
|
|
23471
24609
|
opts && opts.submission,
|
|
@@ -23486,7 +24624,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23486
24624
|
errors
|
|
23487
24625
|
});
|
|
23488
24626
|
}
|
|
23489
|
-
async function handleAction(request2, location2, submission, matches, isFogOfWar, opts = {}) {
|
|
24627
|
+
async function handleAction(request2, location2, submission, matches, scopedContext, isFogOfWar, initialHydration, opts = {}) {
|
|
23490
24628
|
interruptActiveLoads();
|
|
23491
24629
|
let navigation = getSubmittingNavigation(location2, submission);
|
|
23492
24630
|
updateState({ navigation }, { flushSync: opts.flushSync === true });
|
|
@@ -23540,15 +24678,30 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23540
24678
|
})
|
|
23541
24679
|
};
|
|
23542
24680
|
} else {
|
|
23543
|
-
let
|
|
23544
|
-
|
|
23545
|
-
|
|
24681
|
+
let dsMatches = getTargetedDataStrategyMatches(
|
|
24682
|
+
mapRouteProperties2,
|
|
24683
|
+
manifest,
|
|
23546
24684
|
request2,
|
|
23547
|
-
[actionMatch],
|
|
23548
24685
|
matches,
|
|
24686
|
+
actionMatch,
|
|
24687
|
+
initialHydration ? [] : hydrationRouteProperties2,
|
|
24688
|
+
scopedContext
|
|
24689
|
+
);
|
|
24690
|
+
let results = await callDataStrategy(
|
|
24691
|
+
request2,
|
|
24692
|
+
dsMatches,
|
|
24693
|
+
scopedContext,
|
|
23549
24694
|
null
|
|
23550
24695
|
);
|
|
23551
24696
|
result = results[actionMatch.route.id];
|
|
24697
|
+
if (!result) {
|
|
24698
|
+
for (let match2 of matches) {
|
|
24699
|
+
if (results[match2.route.id]) {
|
|
24700
|
+
result = results[match2.route.id];
|
|
24701
|
+
break;
|
|
24702
|
+
}
|
|
24703
|
+
}
|
|
24704
|
+
}
|
|
23552
24705
|
if (request2.signal.aborted) {
|
|
23553
24706
|
return { shortCircuited: true };
|
|
23554
24707
|
}
|
|
@@ -23578,7 +24731,11 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23578
24731
|
}
|
|
23579
24732
|
return {
|
|
23580
24733
|
matches,
|
|
23581
|
-
pendingActionResult: [
|
|
24734
|
+
pendingActionResult: [
|
|
24735
|
+
boundaryMatch.route.id,
|
|
24736
|
+
result,
|
|
24737
|
+
actionMatch.route.id
|
|
24738
|
+
]
|
|
23582
24739
|
};
|
|
23583
24740
|
}
|
|
23584
24741
|
return {
|
|
@@ -23586,7 +24743,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23586
24743
|
pendingActionResult: [actionMatch.route.id, result]
|
|
23587
24744
|
};
|
|
23588
24745
|
}
|
|
23589
|
-
async function handleLoaders(request2, location2, matches, isFogOfWar, overrideNavigation, submission, fetcherSubmission, replace2, initialHydration, flushSync, pendingActionResult) {
|
|
24746
|
+
async function handleLoaders(request2, location2, matches, scopedContext, isFogOfWar, overrideNavigation, submission, fetcherSubmission, replace2, initialHydration, flushSync, pendingActionResult) {
|
|
23590
24747
|
let loadingNavigation = overrideNavigation || getLoadingNavigation(location2, submission);
|
|
23591
24748
|
let activeSubmission = submission || fetcherSubmission || getSubmissionFromNavigation(loadingNavigation);
|
|
23592
24749
|
let shouldUpdateNavigationState = !isUninterruptedRevalidation && !initialHydration;
|
|
@@ -23635,12 +24792,17 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23635
24792
|
}
|
|
23636
24793
|
}
|
|
23637
24794
|
let routesToUse = inFlightDataRoutes || dataRoutes;
|
|
23638
|
-
let
|
|
24795
|
+
let { dsMatches, revalidatingFetchers } = getMatchesToLoad(
|
|
24796
|
+
request2,
|
|
24797
|
+
scopedContext,
|
|
24798
|
+
mapRouteProperties2,
|
|
24799
|
+
manifest,
|
|
23639
24800
|
init.history,
|
|
23640
24801
|
state,
|
|
23641
24802
|
matches,
|
|
23642
24803
|
activeSubmission,
|
|
23643
24804
|
location2,
|
|
24805
|
+
initialHydration ? [] : hydrationRouteProperties2,
|
|
23644
24806
|
initialHydration === true,
|
|
23645
24807
|
isRevalidationRequired,
|
|
23646
24808
|
cancelledFetcherLoads,
|
|
@@ -23649,10 +24811,11 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23649
24811
|
fetchRedirectIds,
|
|
23650
24812
|
routesToUse,
|
|
23651
24813
|
basename,
|
|
24814
|
+
init.patchRoutesOnNavigation != null,
|
|
23652
24815
|
pendingActionResult
|
|
23653
24816
|
);
|
|
23654
24817
|
pendingNavigationLoadId = ++incrementingLoadId;
|
|
23655
|
-
if (
|
|
24818
|
+
if (!init.dataStrategy && !dsMatches.some((m) => m.shouldLoad) && revalidatingFetchers.length === 0) {
|
|
23656
24819
|
let updatedFetchers2 = markFetchRedirectsDone();
|
|
23657
24820
|
completeNavigation(
|
|
23658
24821
|
location2,
|
|
@@ -23696,11 +24859,10 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23696
24859
|
);
|
|
23697
24860
|
}
|
|
23698
24861
|
let { loaderResults, fetcherResults } = await callLoadersAndMaybeResolveData(
|
|
23699
|
-
|
|
23700
|
-
matches,
|
|
23701
|
-
matchesToLoad,
|
|
24862
|
+
dsMatches,
|
|
23702
24863
|
revalidatingFetchers,
|
|
23703
|
-
request2
|
|
24864
|
+
request2,
|
|
24865
|
+
scopedContext
|
|
23704
24866
|
);
|
|
23705
24867
|
if (request2.signal.aborted) {
|
|
23706
24868
|
return { shortCircuited: true };
|
|
@@ -23807,15 +24969,17 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23807
24969
|
setFetcherError(key2, routeId, error, { flushSync });
|
|
23808
24970
|
return;
|
|
23809
24971
|
}
|
|
23810
|
-
let
|
|
24972
|
+
let scopedContext = new unstable_RouterContextProvider(
|
|
24973
|
+
init.unstable_getContext ? await init.unstable_getContext() : void 0
|
|
24974
|
+
);
|
|
23811
24975
|
let preventScrollReset = (opts && opts.preventScrollReset) === true;
|
|
23812
24976
|
if (submission && isMutationMethod(submission.formMethod)) {
|
|
23813
24977
|
await handleFetcherAction(
|
|
23814
24978
|
key2,
|
|
23815
24979
|
routeId,
|
|
23816
24980
|
path2,
|
|
23817
|
-
match2,
|
|
23818
24981
|
matches,
|
|
24982
|
+
scopedContext,
|
|
23819
24983
|
fogOfWar.active,
|
|
23820
24984
|
flushSync,
|
|
23821
24985
|
preventScrollReset,
|
|
@@ -23828,32 +24992,17 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23828
24992
|
key2,
|
|
23829
24993
|
routeId,
|
|
23830
24994
|
path2,
|
|
23831
|
-
match2,
|
|
23832
24995
|
matches,
|
|
24996
|
+
scopedContext,
|
|
23833
24997
|
fogOfWar.active,
|
|
23834
24998
|
flushSync,
|
|
23835
24999
|
preventScrollReset,
|
|
23836
25000
|
submission
|
|
23837
25001
|
);
|
|
23838
25002
|
}
|
|
23839
|
-
async function handleFetcherAction(key2, routeId, path2,
|
|
25003
|
+
async function handleFetcherAction(key2, routeId, path2, requestMatches, scopedContext, isFogOfWar, flushSync, preventScrollReset, submission) {
|
|
23840
25004
|
interruptActiveLoads();
|
|
23841
25005
|
fetchLoadMatches.delete(key2);
|
|
23842
|
-
function detectAndHandle405Error(m) {
|
|
23843
|
-
if (!m.route.action && !m.route.lazy) {
|
|
23844
|
-
let error = getInternalRouterError(405, {
|
|
23845
|
-
method: submission.formMethod,
|
|
23846
|
-
pathname: path2,
|
|
23847
|
-
routeId
|
|
23848
|
-
});
|
|
23849
|
-
setFetcherError(key2, routeId, error, { flushSync });
|
|
23850
|
-
return true;
|
|
23851
|
-
}
|
|
23852
|
-
return false;
|
|
23853
|
-
}
|
|
23854
|
-
if (!isFogOfWar && detectAndHandle405Error(match2)) {
|
|
23855
|
-
return;
|
|
23856
|
-
}
|
|
23857
25006
|
let existingFetcher = state.fetchers.get(key2);
|
|
23858
25007
|
updateFetcherState(key2, getSubmittingFetcher(submission, existingFetcher), {
|
|
23859
25008
|
flushSync
|
|
@@ -23868,8 +25017,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23868
25017
|
if (isFogOfWar) {
|
|
23869
25018
|
let discoverResult = await discoverRoutes(
|
|
23870
25019
|
requestMatches,
|
|
23871
|
-
|
|
23872
|
-
fetchRequest.signal
|
|
25020
|
+
new URL(fetchRequest.url).pathname,
|
|
25021
|
+
fetchRequest.signal,
|
|
25022
|
+
key2
|
|
23873
25023
|
);
|
|
23874
25024
|
if (discoverResult.type === "aborted") {
|
|
23875
25025
|
return;
|
|
@@ -23886,20 +25036,33 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23886
25036
|
return;
|
|
23887
25037
|
} else {
|
|
23888
25038
|
requestMatches = discoverResult.matches;
|
|
23889
|
-
match2 = getTargetMatch(requestMatches, path2);
|
|
23890
|
-
if (detectAndHandle405Error(match2)) {
|
|
23891
|
-
return;
|
|
23892
|
-
}
|
|
23893
25039
|
}
|
|
23894
25040
|
}
|
|
25041
|
+
let match2 = getTargetMatch(requestMatches, path2);
|
|
25042
|
+
if (!match2.route.action && !match2.route.lazy) {
|
|
25043
|
+
let error = getInternalRouterError(405, {
|
|
25044
|
+
method: submission.formMethod,
|
|
25045
|
+
pathname: path2,
|
|
25046
|
+
routeId
|
|
25047
|
+
});
|
|
25048
|
+
setFetcherError(key2, routeId, error, { flushSync });
|
|
25049
|
+
return;
|
|
25050
|
+
}
|
|
23895
25051
|
fetchControllers.set(key2, abortController);
|
|
23896
25052
|
let originatingLoadId = incrementingLoadId;
|
|
23897
|
-
let
|
|
23898
|
-
|
|
23899
|
-
|
|
25053
|
+
let fetchMatches = getTargetedDataStrategyMatches(
|
|
25054
|
+
mapRouteProperties2,
|
|
25055
|
+
manifest,
|
|
23900
25056
|
fetchRequest,
|
|
23901
|
-
[match2],
|
|
23902
25057
|
requestMatches,
|
|
25058
|
+
match2,
|
|
25059
|
+
hydrationRouteProperties2,
|
|
25060
|
+
scopedContext
|
|
25061
|
+
);
|
|
25062
|
+
let actionResults = await callDataStrategy(
|
|
25063
|
+
fetchRequest,
|
|
25064
|
+
fetchMatches,
|
|
25065
|
+
scopedContext,
|
|
23903
25066
|
key2
|
|
23904
25067
|
);
|
|
23905
25068
|
let actionResult = actionResults[match2.route.id];
|
|
@@ -23947,12 +25110,17 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23947
25110
|
fetchReloadIds.set(key2, loadId);
|
|
23948
25111
|
let loadFetcher = getLoadingFetcher(submission, actionResult.data);
|
|
23949
25112
|
state.fetchers.set(key2, loadFetcher);
|
|
23950
|
-
let
|
|
25113
|
+
let { dsMatches, revalidatingFetchers } = getMatchesToLoad(
|
|
25114
|
+
revalidationRequest,
|
|
25115
|
+
scopedContext,
|
|
25116
|
+
mapRouteProperties2,
|
|
25117
|
+
manifest,
|
|
23951
25118
|
init.history,
|
|
23952
25119
|
state,
|
|
23953
25120
|
matches,
|
|
23954
25121
|
submission,
|
|
23955
25122
|
nextLocation,
|
|
25123
|
+
hydrationRouteProperties2,
|
|
23956
25124
|
false,
|
|
23957
25125
|
isRevalidationRequired,
|
|
23958
25126
|
cancelledFetcherLoads,
|
|
@@ -23961,6 +25129,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23961
25129
|
fetchRedirectIds,
|
|
23962
25130
|
routesToUse,
|
|
23963
25131
|
basename,
|
|
25132
|
+
init.patchRoutesOnNavigation != null,
|
|
23964
25133
|
[match2.route.id, actionResult]
|
|
23965
25134
|
);
|
|
23966
25135
|
revalidatingFetchers.filter((rf) => rf.key !== key2).forEach((rf) => {
|
|
@@ -23983,11 +25152,10 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23983
25152
|
abortPendingFetchRevalidations
|
|
23984
25153
|
);
|
|
23985
25154
|
let { loaderResults, fetcherResults } = await callLoadersAndMaybeResolveData(
|
|
23986
|
-
|
|
23987
|
-
matches,
|
|
23988
|
-
matchesToLoad,
|
|
25155
|
+
dsMatches,
|
|
23989
25156
|
revalidatingFetchers,
|
|
23990
|
-
revalidationRequest
|
|
25157
|
+
revalidationRequest,
|
|
25158
|
+
scopedContext
|
|
23991
25159
|
);
|
|
23992
25160
|
if (abortController.signal.aborted) {
|
|
23993
25161
|
return;
|
|
@@ -23999,6 +25167,10 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
23999
25167
|
fetchReloadIds.delete(key2);
|
|
24000
25168
|
fetchControllers.delete(key2);
|
|
24001
25169
|
revalidatingFetchers.forEach((r2) => fetchControllers.delete(r2.key));
|
|
25170
|
+
if (state.fetchers.has(key2)) {
|
|
25171
|
+
let doneFetcher = getDoneFetcher(actionResult.data);
|
|
25172
|
+
state.fetchers.set(key2, doneFetcher);
|
|
25173
|
+
}
|
|
24002
25174
|
let redirect2 = findRedirect(loaderResults);
|
|
24003
25175
|
if (redirect2) {
|
|
24004
25176
|
return startRedirectNavigation(
|
|
@@ -24026,10 +25198,6 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24026
25198
|
revalidatingFetchers,
|
|
24027
25199
|
fetcherResults
|
|
24028
25200
|
);
|
|
24029
|
-
if (state.fetchers.has(key2)) {
|
|
24030
|
-
let doneFetcher = getDoneFetcher(actionResult.data);
|
|
24031
|
-
state.fetchers.set(key2, doneFetcher);
|
|
24032
|
-
}
|
|
24033
25201
|
abortStaleFetchLoads(loadId);
|
|
24034
25202
|
if (state.navigation.state === "loading" && loadId > pendingNavigationLoadId) {
|
|
24035
25203
|
invariant$1(pendingAction, "Expected pending action");
|
|
@@ -24054,7 +25222,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24054
25222
|
isRevalidationRequired = false;
|
|
24055
25223
|
}
|
|
24056
25224
|
}
|
|
24057
|
-
async function handleFetcherLoader(key2, routeId, path2,
|
|
25225
|
+
async function handleFetcherLoader(key2, routeId, path2, matches, scopedContext, isFogOfWar, flushSync, preventScrollReset, submission) {
|
|
24058
25226
|
let existingFetcher = state.fetchers.get(key2);
|
|
24059
25227
|
updateFetcherState(
|
|
24060
25228
|
key2,
|
|
@@ -24073,8 +25241,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24073
25241
|
if (isFogOfWar) {
|
|
24074
25242
|
let discoverResult = await discoverRoutes(
|
|
24075
25243
|
matches,
|
|
24076
|
-
|
|
24077
|
-
fetchRequest.signal
|
|
25244
|
+
new URL(fetchRequest.url).pathname,
|
|
25245
|
+
fetchRequest.signal,
|
|
25246
|
+
key2
|
|
24078
25247
|
);
|
|
24079
25248
|
if (discoverResult.type === "aborted") {
|
|
24080
25249
|
return;
|
|
@@ -24091,17 +25260,24 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24091
25260
|
return;
|
|
24092
25261
|
} else {
|
|
24093
25262
|
matches = discoverResult.matches;
|
|
24094
|
-
match2 = getTargetMatch(matches, path2);
|
|
24095
25263
|
}
|
|
24096
25264
|
}
|
|
25265
|
+
let match2 = getTargetMatch(matches, path2);
|
|
24097
25266
|
fetchControllers.set(key2, abortController);
|
|
24098
25267
|
let originatingLoadId = incrementingLoadId;
|
|
24099
|
-
let
|
|
24100
|
-
|
|
24101
|
-
|
|
25268
|
+
let dsMatches = getTargetedDataStrategyMatches(
|
|
25269
|
+
mapRouteProperties2,
|
|
25270
|
+
manifest,
|
|
24102
25271
|
fetchRequest,
|
|
24103
|
-
[match2],
|
|
24104
25272
|
matches,
|
|
25273
|
+
match2,
|
|
25274
|
+
hydrationRouteProperties2,
|
|
25275
|
+
scopedContext
|
|
25276
|
+
);
|
|
25277
|
+
let results = await callDataStrategy(
|
|
25278
|
+
fetchRequest,
|
|
25279
|
+
dsMatches,
|
|
25280
|
+
scopedContext,
|
|
24105
25281
|
key2
|
|
24106
25282
|
);
|
|
24107
25283
|
let result = results[match2.route.id];
|
|
@@ -24156,8 +25332,8 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24156
25332
|
let isDocumentReload = false;
|
|
24157
25333
|
if (redirect2.response.headers.has("X-Remix-Reload-Document")) {
|
|
24158
25334
|
isDocumentReload = true;
|
|
24159
|
-
} else if (
|
|
24160
|
-
const url2 =
|
|
25335
|
+
} else if (isAbsoluteUrl(location2)) {
|
|
25336
|
+
const url2 = createBrowserURLImpl(location2, true);
|
|
24161
25337
|
isDocumentReload = // Hard reload if it's an absolute URL to a new origin
|
|
24162
25338
|
url2.origin !== routerWindow.location.origin || // Hard reload if it's an absolute URL that does not match our basename
|
|
24163
25339
|
stripBasename(url2.pathname, basename) == null;
|
|
@@ -24203,23 +25379,20 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24203
25379
|
});
|
|
24204
25380
|
}
|
|
24205
25381
|
}
|
|
24206
|
-
async function callDataStrategy(
|
|
25382
|
+
async function callDataStrategy(request2, matches, scopedContext, fetcherKey) {
|
|
24207
25383
|
let results;
|
|
24208
25384
|
let dataResults = {};
|
|
24209
25385
|
try {
|
|
24210
25386
|
results = await callDataStrategyImpl(
|
|
24211
25387
|
dataStrategyImpl,
|
|
24212
|
-
type,
|
|
24213
|
-
state2,
|
|
24214
25388
|
request2,
|
|
24215
|
-
matchesToLoad,
|
|
24216
25389
|
matches,
|
|
24217
25390
|
fetcherKey,
|
|
24218
|
-
|
|
24219
|
-
|
|
25391
|
+
scopedContext,
|
|
25392
|
+
false
|
|
24220
25393
|
);
|
|
24221
25394
|
} catch (e) {
|
|
24222
|
-
|
|
25395
|
+
matches.filter((m) => m.shouldLoad).forEach((m) => {
|
|
24223
25396
|
dataResults[m.route.id] = {
|
|
24224
25397
|
type: "error",
|
|
24225
25398
|
error: e
|
|
@@ -24227,6 +25400,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24227
25400
|
});
|
|
24228
25401
|
return dataResults;
|
|
24229
25402
|
}
|
|
25403
|
+
if (request2.signal.aborted) {
|
|
25404
|
+
return dataResults;
|
|
25405
|
+
}
|
|
24230
25406
|
for (let [routeId, result] of Object.entries(results)) {
|
|
24231
25407
|
if (isRedirectDataStrategyResult(result)) {
|
|
24232
25408
|
let response = result.result;
|
|
@@ -24241,31 +25417,25 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24241
25417
|
)
|
|
24242
25418
|
};
|
|
24243
25419
|
} else {
|
|
24244
|
-
dataResults[routeId] = await convertDataStrategyResultToDataResult(
|
|
24245
|
-
result
|
|
24246
|
-
);
|
|
25420
|
+
dataResults[routeId] = await convertDataStrategyResultToDataResult(result);
|
|
24247
25421
|
}
|
|
24248
25422
|
}
|
|
24249
25423
|
return dataResults;
|
|
24250
25424
|
}
|
|
24251
|
-
async function callLoadersAndMaybeResolveData(
|
|
25425
|
+
async function callLoadersAndMaybeResolveData(matches, fetchersToLoad, request2, scopedContext) {
|
|
24252
25426
|
let loaderResultsPromise = callDataStrategy(
|
|
24253
|
-
"loader",
|
|
24254
|
-
state2,
|
|
24255
25427
|
request2,
|
|
24256
|
-
matchesToLoad,
|
|
24257
25428
|
matches,
|
|
25429
|
+
scopedContext,
|
|
24258
25430
|
null
|
|
24259
25431
|
);
|
|
24260
25432
|
let fetcherResultsPromise = Promise.all(
|
|
24261
25433
|
fetchersToLoad.map(async (f) => {
|
|
24262
|
-
if (f.matches && f.match && f.controller) {
|
|
25434
|
+
if (f.matches && f.match && f.request && f.controller) {
|
|
24263
25435
|
let results = await callDataStrategy(
|
|
24264
|
-
|
|
24265
|
-
state2,
|
|
24266
|
-
createClientSideRequest(init.history, f.path, f.controller.signal),
|
|
24267
|
-
[f.match],
|
|
25436
|
+
f.request,
|
|
24268
25437
|
f.matches,
|
|
25438
|
+
scopedContext,
|
|
24269
25439
|
f.key
|
|
24270
25440
|
);
|
|
24271
25441
|
let result = results[f.match.route.id];
|
|
@@ -24487,7 +25657,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24487
25657
|
return null;
|
|
24488
25658
|
}
|
|
24489
25659
|
function checkFogOfWar(matches, routesToUse, pathname) {
|
|
24490
|
-
if (
|
|
25660
|
+
if (init.patchRoutesOnNavigation) {
|
|
24491
25661
|
if (!matches) {
|
|
24492
25662
|
let fogMatches = matchRoutesImpl(
|
|
24493
25663
|
routesToUse,
|
|
@@ -24510,8 +25680,8 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24510
25680
|
}
|
|
24511
25681
|
return { active: false, matches: null };
|
|
24512
25682
|
}
|
|
24513
|
-
async function discoverRoutes(matches, pathname, signal) {
|
|
24514
|
-
if (!
|
|
25683
|
+
async function discoverRoutes(matches, pathname, signal, fetcherKey) {
|
|
25684
|
+
if (!init.patchRoutesOnNavigation) {
|
|
24515
25685
|
return { type: "success", matches };
|
|
24516
25686
|
}
|
|
24517
25687
|
let partialMatches = matches;
|
|
@@ -24520,9 +25690,11 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24520
25690
|
let routesToUse = inFlightDataRoutes || dataRoutes;
|
|
24521
25691
|
let localManifest = manifest;
|
|
24522
25692
|
try {
|
|
24523
|
-
await
|
|
25693
|
+
await init.patchRoutesOnNavigation({
|
|
25694
|
+
signal,
|
|
24524
25695
|
path: pathname,
|
|
24525
25696
|
matches: partialMatches,
|
|
25697
|
+
fetcherKey,
|
|
24526
25698
|
patch: (routeId, children) => {
|
|
24527
25699
|
if (signal.aborted) return;
|
|
24528
25700
|
patchRoutesImpl(
|
|
@@ -24530,7 +25702,8 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24530
25702
|
children,
|
|
24531
25703
|
routesToUse,
|
|
24532
25704
|
localManifest,
|
|
24533
|
-
mapRouteProperties2
|
|
25705
|
+
mapRouteProperties2,
|
|
25706
|
+
false
|
|
24534
25707
|
);
|
|
24535
25708
|
}
|
|
24536
25709
|
});
|
|
@@ -24571,7 +25744,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24571
25744
|
manifest
|
|
24572
25745
|
);
|
|
24573
25746
|
}
|
|
24574
|
-
function patchRoutes(routeId, children) {
|
|
25747
|
+
function patchRoutes(routeId, children, unstable_allowElementMutations = false) {
|
|
24575
25748
|
let isNonHMR = inFlightDataRoutes == null;
|
|
24576
25749
|
let routesToUse = inFlightDataRoutes || dataRoutes;
|
|
24577
25750
|
patchRoutesImpl(
|
|
@@ -24579,7 +25752,8 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24579
25752
|
children,
|
|
24580
25753
|
routesToUse,
|
|
24581
25754
|
manifest,
|
|
24582
|
-
mapRouteProperties2
|
|
25755
|
+
mapRouteProperties2,
|
|
25756
|
+
unstable_allowElementMutations
|
|
24583
25757
|
);
|
|
24584
25758
|
if (isNonHMR) {
|
|
24585
25759
|
dataRoutes = [...dataRoutes];
|
|
@@ -24621,7 +25795,10 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24621
25795
|
_internalFetchControllers: fetchControllers,
|
|
24622
25796
|
// TODO: Remove setRoutes, it's temporary to avoid dealing with
|
|
24623
25797
|
// updating the tree while validating the update algorithm.
|
|
24624
|
-
_internalSetRoutes
|
|
25798
|
+
_internalSetRoutes,
|
|
25799
|
+
_internalSetStateDoNotUseOrYouWillBreakYourApp(newState) {
|
|
25800
|
+
updateState(newState);
|
|
25801
|
+
}
|
|
24625
25802
|
};
|
|
24626
25803
|
return router;
|
|
24627
25804
|
}
|
|
@@ -24668,7 +25845,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24668
25845
|
}
|
|
24669
25846
|
}
|
|
24670
25847
|
if (basename !== "/") {
|
|
24671
|
-
path2.pathname =
|
|
25848
|
+
path2.pathname = prependBasename({ basename, pathname: path2.pathname });
|
|
24672
25849
|
}
|
|
24673
25850
|
return createPath$1(path2);
|
|
24674
25851
|
}
|
|
@@ -24779,114 +25956,168 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24779
25956
|
parsedPath.search = `?${searchParams}`;
|
|
24780
25957
|
return { path: createPath$1(parsedPath), submission };
|
|
24781
25958
|
}
|
|
24782
|
-
function
|
|
24783
|
-
|
|
24784
|
-
if (index2 >= 0) {
|
|
24785
|
-
return matches.slice(0, includeBoundary ? index2 + 1 : index2);
|
|
24786
|
-
}
|
|
24787
|
-
return matches;
|
|
24788
|
-
}
|
|
24789
|
-
function getMatchesToLoad(history2, state, matches, submission, location2, initialHydration, isRevalidationRequired, cancelledFetcherLoads, fetchersQueuedForDeletion, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionResult) {
|
|
25959
|
+
function getMatchesToLoad(request2, scopedContext, mapRouteProperties2, manifest, history2, state, matches, submission, location2, lazyRoutePropertiesToSkip, initialHydration, isRevalidationRequired, cancelledFetcherLoads, fetchersQueuedForDeletion, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, hasPatchRoutesOnNavigation, pendingActionResult) {
|
|
25960
|
+
var _a2;
|
|
24790
25961
|
let actionResult = pendingActionResult ? isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : pendingActionResult[1].data : void 0;
|
|
24791
25962
|
let currentUrl = history2.createURL(state.location);
|
|
24792
25963
|
let nextUrl = history2.createURL(location2);
|
|
24793
|
-
let
|
|
25964
|
+
let maxIdx;
|
|
24794
25965
|
if (initialHydration && state.errors) {
|
|
24795
|
-
|
|
24796
|
-
|
|
24797
|
-
Object.keys(state.errors)[0],
|
|
24798
|
-
true
|
|
24799
|
-
);
|
|
25966
|
+
let boundaryId = Object.keys(state.errors)[0];
|
|
25967
|
+
maxIdx = matches.findIndex((m) => m.route.id === boundaryId);
|
|
24800
25968
|
} else if (pendingActionResult && isErrorResult(pendingActionResult[1])) {
|
|
24801
|
-
|
|
24802
|
-
|
|
24803
|
-
pendingActionResult[0]
|
|
24804
|
-
);
|
|
25969
|
+
let boundaryId = pendingActionResult[0];
|
|
25970
|
+
maxIdx = matches.findIndex((m) => m.route.id === boundaryId) - 1;
|
|
24805
25971
|
}
|
|
24806
25972
|
let actionStatus = pendingActionResult ? pendingActionResult[1].statusCode : void 0;
|
|
24807
25973
|
let shouldSkipRevalidation = actionStatus && actionStatus >= 400;
|
|
24808
|
-
let
|
|
25974
|
+
let baseShouldRevalidateArgs = {
|
|
25975
|
+
currentUrl,
|
|
25976
|
+
currentParams: ((_a2 = state.matches[0]) == null ? void 0 : _a2.params) || {},
|
|
25977
|
+
nextUrl,
|
|
25978
|
+
nextParams: matches[0].params,
|
|
25979
|
+
...submission,
|
|
25980
|
+
actionResult,
|
|
25981
|
+
actionStatus
|
|
25982
|
+
};
|
|
25983
|
+
let dsMatches = matches.map((match2, index2) => {
|
|
24809
25984
|
let { route } = match2;
|
|
24810
|
-
|
|
24811
|
-
|
|
24812
|
-
|
|
24813
|
-
if (route.
|
|
24814
|
-
|
|
24815
|
-
}
|
|
24816
|
-
|
|
24817
|
-
|
|
25985
|
+
let forceShouldLoad = null;
|
|
25986
|
+
if (maxIdx != null && index2 > maxIdx) {
|
|
25987
|
+
forceShouldLoad = false;
|
|
25988
|
+
} else if (route.lazy) {
|
|
25989
|
+
forceShouldLoad = true;
|
|
25990
|
+
} else if (route.loader == null) {
|
|
25991
|
+
forceShouldLoad = false;
|
|
25992
|
+
} else if (initialHydration) {
|
|
25993
|
+
forceShouldLoad = shouldLoadRouteOnHydration(
|
|
25994
|
+
route,
|
|
25995
|
+
state.loaderData,
|
|
25996
|
+
state.errors
|
|
25997
|
+
);
|
|
25998
|
+
} else if (isNewLoader(state.loaderData, state.matches[index2], match2)) {
|
|
25999
|
+
forceShouldLoad = true;
|
|
24818
26000
|
}
|
|
24819
|
-
if (
|
|
24820
|
-
return
|
|
26001
|
+
if (forceShouldLoad !== null) {
|
|
26002
|
+
return getDataStrategyMatch(
|
|
26003
|
+
mapRouteProperties2,
|
|
26004
|
+
manifest,
|
|
26005
|
+
request2,
|
|
26006
|
+
match2,
|
|
26007
|
+
lazyRoutePropertiesToSkip,
|
|
26008
|
+
scopedContext,
|
|
26009
|
+
forceShouldLoad
|
|
26010
|
+
);
|
|
24821
26011
|
}
|
|
24822
|
-
let
|
|
24823
|
-
|
|
24824
|
-
|
|
24825
|
-
currentUrl,
|
|
24826
|
-
|
|
24827
|
-
|
|
24828
|
-
|
|
24829
|
-
|
|
24830
|
-
|
|
24831
|
-
|
|
24832
|
-
|
|
24833
|
-
|
|
24834
|
-
|
|
24835
|
-
|
|
24836
|
-
|
|
24837
|
-
|
|
26012
|
+
let defaultShouldRevalidate = shouldSkipRevalidation ? false : (
|
|
26013
|
+
// Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
|
|
26014
|
+
isRevalidationRequired || currentUrl.pathname + currentUrl.search === nextUrl.pathname + nextUrl.search || // Search params affect all loaders
|
|
26015
|
+
currentUrl.search !== nextUrl.search || isNewRouteInstance(state.matches[index2], match2)
|
|
26016
|
+
);
|
|
26017
|
+
let shouldRevalidateArgs = {
|
|
26018
|
+
...baseShouldRevalidateArgs,
|
|
26019
|
+
defaultShouldRevalidate
|
|
26020
|
+
};
|
|
26021
|
+
let shouldLoad = shouldRevalidateLoader(match2, shouldRevalidateArgs);
|
|
26022
|
+
return getDataStrategyMatch(
|
|
26023
|
+
mapRouteProperties2,
|
|
26024
|
+
manifest,
|
|
26025
|
+
request2,
|
|
26026
|
+
match2,
|
|
26027
|
+
lazyRoutePropertiesToSkip,
|
|
26028
|
+
scopedContext,
|
|
26029
|
+
shouldLoad,
|
|
26030
|
+
shouldRevalidateArgs
|
|
26031
|
+
);
|
|
24838
26032
|
});
|
|
24839
26033
|
let revalidatingFetchers = [];
|
|
24840
26034
|
fetchLoadMatches.forEach((f, key2) => {
|
|
24841
26035
|
if (initialHydration || !matches.some((m) => m.route.id === f.routeId) || fetchersQueuedForDeletion.has(key2)) {
|
|
24842
26036
|
return;
|
|
24843
26037
|
}
|
|
26038
|
+
let fetcher = state.fetchers.get(key2);
|
|
26039
|
+
let isMidInitialLoad = fetcher && fetcher.state !== "idle" && fetcher.data === void 0;
|
|
24844
26040
|
let fetcherMatches = matchRoutes(routesToUse, f.path, basename);
|
|
24845
26041
|
if (!fetcherMatches) {
|
|
26042
|
+
if (hasPatchRoutesOnNavigation && isMidInitialLoad) {
|
|
26043
|
+
return;
|
|
26044
|
+
}
|
|
24846
26045
|
revalidatingFetchers.push({
|
|
24847
26046
|
key: key2,
|
|
24848
26047
|
routeId: f.routeId,
|
|
24849
26048
|
path: f.path,
|
|
24850
26049
|
matches: null,
|
|
24851
26050
|
match: null,
|
|
26051
|
+
request: null,
|
|
24852
26052
|
controller: null
|
|
24853
26053
|
});
|
|
24854
26054
|
return;
|
|
24855
26055
|
}
|
|
24856
|
-
let fetcher = state.fetchers.get(key2);
|
|
24857
|
-
let fetcherMatch = getTargetMatch(fetcherMatches, f.path);
|
|
24858
|
-
let shouldRevalidate = false;
|
|
24859
26056
|
if (fetchRedirectIds.has(key2)) {
|
|
24860
|
-
|
|
24861
|
-
}
|
|
26057
|
+
return;
|
|
26058
|
+
}
|
|
26059
|
+
let fetcherMatch = getTargetMatch(fetcherMatches, f.path);
|
|
26060
|
+
let fetchController = new AbortController();
|
|
26061
|
+
let fetchRequest = createClientSideRequest(
|
|
26062
|
+
history2,
|
|
26063
|
+
f.path,
|
|
26064
|
+
fetchController.signal
|
|
26065
|
+
);
|
|
26066
|
+
let fetcherDsMatches = null;
|
|
26067
|
+
if (cancelledFetcherLoads.has(key2)) {
|
|
24862
26068
|
cancelledFetcherLoads.delete(key2);
|
|
24863
|
-
|
|
24864
|
-
|
|
24865
|
-
|
|
26069
|
+
fetcherDsMatches = getTargetedDataStrategyMatches(
|
|
26070
|
+
mapRouteProperties2,
|
|
26071
|
+
manifest,
|
|
26072
|
+
fetchRequest,
|
|
26073
|
+
fetcherMatches,
|
|
26074
|
+
fetcherMatch,
|
|
26075
|
+
lazyRoutePropertiesToSkip,
|
|
26076
|
+
scopedContext
|
|
26077
|
+
);
|
|
26078
|
+
} else if (isMidInitialLoad) {
|
|
26079
|
+
if (isRevalidationRequired) {
|
|
26080
|
+
fetcherDsMatches = getTargetedDataStrategyMatches(
|
|
26081
|
+
mapRouteProperties2,
|
|
26082
|
+
manifest,
|
|
26083
|
+
fetchRequest,
|
|
26084
|
+
fetcherMatches,
|
|
26085
|
+
fetcherMatch,
|
|
26086
|
+
lazyRoutePropertiesToSkip,
|
|
26087
|
+
scopedContext
|
|
26088
|
+
);
|
|
26089
|
+
}
|
|
24866
26090
|
} else {
|
|
24867
|
-
|
|
24868
|
-
|
|
24869
|
-
currentParams: state.matches[state.matches.length - 1].params,
|
|
24870
|
-
nextUrl,
|
|
24871
|
-
nextParams: matches[matches.length - 1].params,
|
|
24872
|
-
...submission,
|
|
24873
|
-
actionResult,
|
|
24874
|
-
actionStatus,
|
|
26091
|
+
let shouldRevalidateArgs = {
|
|
26092
|
+
...baseShouldRevalidateArgs,
|
|
24875
26093
|
defaultShouldRevalidate: shouldSkipRevalidation ? false : isRevalidationRequired
|
|
24876
|
-
}
|
|
26094
|
+
};
|
|
26095
|
+
if (shouldRevalidateLoader(fetcherMatch, shouldRevalidateArgs)) {
|
|
26096
|
+
fetcherDsMatches = getTargetedDataStrategyMatches(
|
|
26097
|
+
mapRouteProperties2,
|
|
26098
|
+
manifest,
|
|
26099
|
+
fetchRequest,
|
|
26100
|
+
fetcherMatches,
|
|
26101
|
+
fetcherMatch,
|
|
26102
|
+
lazyRoutePropertiesToSkip,
|
|
26103
|
+
scopedContext,
|
|
26104
|
+
shouldRevalidateArgs
|
|
26105
|
+
);
|
|
26106
|
+
}
|
|
24877
26107
|
}
|
|
24878
|
-
if (
|
|
26108
|
+
if (fetcherDsMatches) {
|
|
24879
26109
|
revalidatingFetchers.push({
|
|
24880
26110
|
key: key2,
|
|
24881
26111
|
routeId: f.routeId,
|
|
24882
26112
|
path: f.path,
|
|
24883
|
-
matches:
|
|
26113
|
+
matches: fetcherDsMatches,
|
|
24884
26114
|
match: fetcherMatch,
|
|
24885
|
-
|
|
26115
|
+
request: fetchRequest,
|
|
26116
|
+
controller: fetchController
|
|
24886
26117
|
});
|
|
24887
26118
|
}
|
|
24888
26119
|
});
|
|
24889
|
-
return
|
|
26120
|
+
return { dsMatches, revalidatingFetchers };
|
|
24890
26121
|
}
|
|
24891
26122
|
function shouldLoadRouteOnHydration(route, loaderData, errors) {
|
|
24892
26123
|
if (route.lazy) {
|
|
@@ -24895,7 +26126,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24895
26126
|
if (!route.loader) {
|
|
24896
26127
|
return false;
|
|
24897
26128
|
}
|
|
24898
|
-
let hasData = loaderData != null &&
|
|
26129
|
+
let hasData = loaderData != null && route.id in loaderData;
|
|
24899
26130
|
let hasError = errors != null && errors[route.id] !== void 0;
|
|
24900
26131
|
if (!hasData && hasError) {
|
|
24901
26132
|
return false;
|
|
@@ -24932,7 +26163,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24932
26163
|
}
|
|
24933
26164
|
return arg.defaultShouldRevalidate;
|
|
24934
26165
|
}
|
|
24935
|
-
function patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties2) {
|
|
26166
|
+
function patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties2, allowElementMutations) {
|
|
24936
26167
|
let childrenToPatch;
|
|
24937
26168
|
if (routeId) {
|
|
24938
26169
|
let route = manifest[routeId];
|
|
@@ -24947,18 +26178,47 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24947
26178
|
} else {
|
|
24948
26179
|
childrenToPatch = routesToUse;
|
|
24949
26180
|
}
|
|
24950
|
-
let uniqueChildren =
|
|
24951
|
-
|
|
24952
|
-
|
|
24953
|
-
|
|
24954
|
-
|
|
24955
|
-
|
|
24956
|
-
|
|
24957
|
-
|
|
24958
|
-
|
|
24959
|
-
|
|
24960
|
-
|
|
24961
|
-
|
|
26181
|
+
let uniqueChildren = [];
|
|
26182
|
+
let existingChildren = [];
|
|
26183
|
+
children.forEach((newRoute) => {
|
|
26184
|
+
let existingRoute = childrenToPatch.find(
|
|
26185
|
+
(existingRoute2) => isSameRoute(newRoute, existingRoute2)
|
|
26186
|
+
);
|
|
26187
|
+
if (existingRoute) {
|
|
26188
|
+
existingChildren.push({ existingRoute, newRoute });
|
|
26189
|
+
} else {
|
|
26190
|
+
uniqueChildren.push(newRoute);
|
|
26191
|
+
}
|
|
26192
|
+
});
|
|
26193
|
+
if (uniqueChildren.length > 0) {
|
|
26194
|
+
let newRoutes = convertRoutesToDataRoutes(
|
|
26195
|
+
uniqueChildren,
|
|
26196
|
+
mapRouteProperties2,
|
|
26197
|
+
[routeId || "_", "patch", String((childrenToPatch == null ? void 0 : childrenToPatch.length) || "0")],
|
|
26198
|
+
manifest
|
|
26199
|
+
);
|
|
26200
|
+
childrenToPatch.push(...newRoutes);
|
|
26201
|
+
}
|
|
26202
|
+
if (allowElementMutations && existingChildren.length > 0) {
|
|
26203
|
+
for (let i = 0; i < existingChildren.length; i++) {
|
|
26204
|
+
let { existingRoute, newRoute } = existingChildren[i];
|
|
26205
|
+
let existingRouteTyped = existingRoute;
|
|
26206
|
+
let [newRouteTyped] = convertRoutesToDataRoutes(
|
|
26207
|
+
[newRoute],
|
|
26208
|
+
mapRouteProperties2,
|
|
26209
|
+
[],
|
|
26210
|
+
// Doesn't matter for mutated routes since they already have an id
|
|
26211
|
+
{},
|
|
26212
|
+
// Don't touch the manifest here since we're updating in place
|
|
26213
|
+
true
|
|
26214
|
+
);
|
|
26215
|
+
Object.assign(existingRouteTyped, {
|
|
26216
|
+
element: newRouteTyped.element ? newRouteTyped.element : existingRouteTyped.element,
|
|
26217
|
+
errorElement: newRouteTyped.errorElement ? newRouteTyped.errorElement : existingRouteTyped.errorElement,
|
|
26218
|
+
hydrateFallbackElement: newRouteTyped.hydrateFallbackElement ? newRouteTyped.hydrateFallbackElement : existingRouteTyped.hydrateFallbackElement
|
|
26219
|
+
});
|
|
26220
|
+
}
|
|
26221
|
+
}
|
|
24962
26222
|
}
|
|
24963
26223
|
function isSameRoute(newRoute, existingRoute) {
|
|
24964
26224
|
if ("id" in newRoute && "id" in existingRoute && newRoute.id === existingRoute.id) {
|
|
@@ -24977,91 +26237,428 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
24977
26237
|
}
|
|
24978
26238
|
);
|
|
24979
26239
|
}
|
|
24980
|
-
|
|
24981
|
-
|
|
26240
|
+
var lazyRoutePropertyCache = /* @__PURE__ */ new WeakMap();
|
|
26241
|
+
var loadLazyRouteProperty = ({
|
|
26242
|
+
key: key2,
|
|
26243
|
+
route,
|
|
26244
|
+
manifest,
|
|
26245
|
+
mapRouteProperties: mapRouteProperties2
|
|
26246
|
+
}) => {
|
|
26247
|
+
let routeToUpdate = manifest[route.id];
|
|
26248
|
+
invariant$1(routeToUpdate, "No route found in manifest");
|
|
26249
|
+
if (!routeToUpdate.lazy || typeof routeToUpdate.lazy !== "object") {
|
|
24982
26250
|
return;
|
|
24983
26251
|
}
|
|
24984
|
-
let
|
|
24985
|
-
if (!
|
|
26252
|
+
let lazyFn = routeToUpdate.lazy[key2];
|
|
26253
|
+
if (!lazyFn) {
|
|
24986
26254
|
return;
|
|
24987
26255
|
}
|
|
26256
|
+
let cache2 = lazyRoutePropertyCache.get(routeToUpdate);
|
|
26257
|
+
if (!cache2) {
|
|
26258
|
+
cache2 = {};
|
|
26259
|
+
lazyRoutePropertyCache.set(routeToUpdate, cache2);
|
|
26260
|
+
}
|
|
26261
|
+
let cachedPromise = cache2[key2];
|
|
26262
|
+
if (cachedPromise) {
|
|
26263
|
+
return cachedPromise;
|
|
26264
|
+
}
|
|
26265
|
+
let propertyPromise = (async () => {
|
|
26266
|
+
let isUnsupported = isUnsupportedLazyRouteObjectKey(key2);
|
|
26267
|
+
let staticRouteValue = routeToUpdate[key2];
|
|
26268
|
+
let isStaticallyDefined = staticRouteValue !== void 0 && key2 !== "hasErrorBoundary";
|
|
26269
|
+
if (isUnsupported) {
|
|
26270
|
+
warning(
|
|
26271
|
+
!isUnsupported,
|
|
26272
|
+
"Route property " + key2 + " is not a supported lazy route property. This property will be ignored."
|
|
26273
|
+
);
|
|
26274
|
+
cache2[key2] = Promise.resolve();
|
|
26275
|
+
} else if (isStaticallyDefined) {
|
|
26276
|
+
warning(
|
|
26277
|
+
false,
|
|
26278
|
+
`Route "${routeToUpdate.id}" has a static property "${key2}" defined. The lazy property will be ignored.`
|
|
26279
|
+
);
|
|
26280
|
+
} else {
|
|
26281
|
+
let value2 = await lazyFn();
|
|
26282
|
+
if (value2 != null) {
|
|
26283
|
+
Object.assign(routeToUpdate, { [key2]: value2 });
|
|
26284
|
+
Object.assign(routeToUpdate, mapRouteProperties2(routeToUpdate));
|
|
26285
|
+
}
|
|
26286
|
+
}
|
|
26287
|
+
if (typeof routeToUpdate.lazy === "object") {
|
|
26288
|
+
routeToUpdate.lazy[key2] = void 0;
|
|
26289
|
+
if (Object.values(routeToUpdate.lazy).every((value2) => value2 === void 0)) {
|
|
26290
|
+
routeToUpdate.lazy = void 0;
|
|
26291
|
+
}
|
|
26292
|
+
}
|
|
26293
|
+
})();
|
|
26294
|
+
cache2[key2] = propertyPromise;
|
|
26295
|
+
return propertyPromise;
|
|
26296
|
+
};
|
|
26297
|
+
var lazyRouteFunctionCache = /* @__PURE__ */ new WeakMap();
|
|
26298
|
+
function loadLazyRoute(route, type, manifest, mapRouteProperties2, lazyRoutePropertiesToSkip) {
|
|
24988
26299
|
let routeToUpdate = manifest[route.id];
|
|
24989
26300
|
invariant$1(routeToUpdate, "No route found in manifest");
|
|
24990
|
-
|
|
24991
|
-
|
|
24992
|
-
|
|
24993
|
-
|
|
24994
|
-
|
|
24995
|
-
|
|
24996
|
-
|
|
24997
|
-
|
|
24998
|
-
|
|
24999
|
-
|
|
25000
|
-
|
|
25001
|
-
|
|
26301
|
+
if (!route.lazy) {
|
|
26302
|
+
return {
|
|
26303
|
+
lazyRoutePromise: void 0,
|
|
26304
|
+
lazyHandlerPromise: void 0
|
|
26305
|
+
};
|
|
26306
|
+
}
|
|
26307
|
+
if (typeof route.lazy === "function") {
|
|
26308
|
+
let cachedPromise = lazyRouteFunctionCache.get(routeToUpdate);
|
|
26309
|
+
if (cachedPromise) {
|
|
26310
|
+
return {
|
|
26311
|
+
lazyRoutePromise: cachedPromise,
|
|
26312
|
+
lazyHandlerPromise: cachedPromise
|
|
26313
|
+
};
|
|
25002
26314
|
}
|
|
26315
|
+
let lazyRoutePromise2 = (async () => {
|
|
26316
|
+
invariant$1(
|
|
26317
|
+
typeof route.lazy === "function",
|
|
26318
|
+
"No lazy route function found"
|
|
26319
|
+
);
|
|
26320
|
+
let lazyRoute = await route.lazy();
|
|
26321
|
+
let routeUpdates = {};
|
|
26322
|
+
for (let lazyRouteProperty in lazyRoute) {
|
|
26323
|
+
let lazyValue = lazyRoute[lazyRouteProperty];
|
|
26324
|
+
if (lazyValue === void 0) {
|
|
26325
|
+
continue;
|
|
26326
|
+
}
|
|
26327
|
+
let isUnsupported = isUnsupportedLazyRouteFunctionKey(lazyRouteProperty);
|
|
26328
|
+
let staticRouteValue = routeToUpdate[lazyRouteProperty];
|
|
26329
|
+
let isStaticallyDefined = staticRouteValue !== void 0 && // This property isn't static since it should always be updated based
|
|
26330
|
+
// on the route updates
|
|
26331
|
+
lazyRouteProperty !== "hasErrorBoundary";
|
|
26332
|
+
if (isUnsupported) {
|
|
26333
|
+
warning(
|
|
26334
|
+
!isUnsupported,
|
|
26335
|
+
"Route property " + lazyRouteProperty + " is not a supported property to be returned from a lazy route function. This property will be ignored."
|
|
26336
|
+
);
|
|
26337
|
+
} else if (isStaticallyDefined) {
|
|
26338
|
+
warning(
|
|
26339
|
+
!isStaticallyDefined,
|
|
26340
|
+
`Route "${routeToUpdate.id}" has a static property "${lazyRouteProperty}" defined but its lazy function is also returning a value for this property. The lazy route property "${lazyRouteProperty}" will be ignored.`
|
|
26341
|
+
);
|
|
26342
|
+
} else {
|
|
26343
|
+
routeUpdates[lazyRouteProperty] = lazyValue;
|
|
26344
|
+
}
|
|
26345
|
+
}
|
|
26346
|
+
Object.assign(routeToUpdate, routeUpdates);
|
|
26347
|
+
Object.assign(routeToUpdate, {
|
|
26348
|
+
// To keep things framework agnostic, we use the provided `mapRouteProperties`
|
|
26349
|
+
// function to set the framework-aware properties (`element`/`hasErrorBoundary`)
|
|
26350
|
+
// since the logic will differ between frameworks.
|
|
26351
|
+
...mapRouteProperties2(routeToUpdate),
|
|
26352
|
+
lazy: void 0
|
|
26353
|
+
});
|
|
26354
|
+
})();
|
|
26355
|
+
lazyRouteFunctionCache.set(routeToUpdate, lazyRoutePromise2);
|
|
26356
|
+
lazyRoutePromise2.catch(() => {
|
|
26357
|
+
});
|
|
26358
|
+
return {
|
|
26359
|
+
lazyRoutePromise: lazyRoutePromise2,
|
|
26360
|
+
lazyHandlerPromise: lazyRoutePromise2
|
|
26361
|
+
};
|
|
25003
26362
|
}
|
|
25004
|
-
Object.
|
|
25005
|
-
|
|
25006
|
-
|
|
25007
|
-
|
|
25008
|
-
|
|
25009
|
-
|
|
25010
|
-
|
|
26363
|
+
let lazyKeys = Object.keys(route.lazy);
|
|
26364
|
+
let lazyPropertyPromises = [];
|
|
26365
|
+
let lazyHandlerPromise = void 0;
|
|
26366
|
+
for (let key2 of lazyKeys) {
|
|
26367
|
+
if (lazyRoutePropertiesToSkip && lazyRoutePropertiesToSkip.includes(key2)) {
|
|
26368
|
+
continue;
|
|
26369
|
+
}
|
|
26370
|
+
let promise = loadLazyRouteProperty({
|
|
26371
|
+
key: key2,
|
|
26372
|
+
route,
|
|
26373
|
+
manifest,
|
|
26374
|
+
mapRouteProperties: mapRouteProperties2
|
|
26375
|
+
});
|
|
26376
|
+
if (promise) {
|
|
26377
|
+
lazyPropertyPromises.push(promise);
|
|
26378
|
+
if (key2 === type) {
|
|
26379
|
+
lazyHandlerPromise = promise;
|
|
26380
|
+
}
|
|
26381
|
+
}
|
|
26382
|
+
}
|
|
26383
|
+
let lazyRoutePromise = lazyPropertyPromises.length > 0 ? Promise.all(lazyPropertyPromises).then(() => {
|
|
26384
|
+
}) : void 0;
|
|
26385
|
+
lazyRoutePromise == null ? void 0 : lazyRoutePromise.catch(() => {
|
|
25011
26386
|
});
|
|
26387
|
+
lazyHandlerPromise == null ? void 0 : lazyHandlerPromise.catch(() => {
|
|
26388
|
+
});
|
|
26389
|
+
return {
|
|
26390
|
+
lazyRoutePromise,
|
|
26391
|
+
lazyHandlerPromise
|
|
26392
|
+
};
|
|
25012
26393
|
}
|
|
25013
|
-
async function defaultDataStrategy({
|
|
25014
|
-
matches
|
|
25015
|
-
|
|
25016
|
-
let matchesToLoad = matches.filter((m) => m.shouldLoad);
|
|
26394
|
+
async function defaultDataStrategy(args) {
|
|
26395
|
+
let matchesToLoad = args.matches.filter((m) => m.shouldLoad);
|
|
26396
|
+
let keyedResults = {};
|
|
25017
26397
|
let results = await Promise.all(matchesToLoad.map((m) => m.resolve()));
|
|
25018
|
-
|
|
25019
|
-
|
|
25020
|
-
|
|
26398
|
+
results.forEach((result, i) => {
|
|
26399
|
+
keyedResults[matchesToLoad[i].route.id] = result;
|
|
26400
|
+
});
|
|
26401
|
+
return keyedResults;
|
|
26402
|
+
}
|
|
26403
|
+
async function defaultDataStrategyWithMiddleware(args) {
|
|
26404
|
+
if (!args.matches.some((m) => m.route.unstable_middleware)) {
|
|
26405
|
+
return defaultDataStrategy(args);
|
|
26406
|
+
}
|
|
26407
|
+
return runMiddlewarePipeline(
|
|
26408
|
+
args,
|
|
26409
|
+
false,
|
|
26410
|
+
() => defaultDataStrategy(args),
|
|
26411
|
+
(error, routeId) => ({ [routeId]: { type: "error", result: error } })
|
|
25021
26412
|
);
|
|
25022
26413
|
}
|
|
25023
|
-
async function
|
|
25024
|
-
let
|
|
25025
|
-
|
|
26414
|
+
async function runMiddlewarePipeline(args, propagateResult, handler, errorHandler) {
|
|
26415
|
+
let { matches, request: request2, params, context } = args;
|
|
26416
|
+
let middlewareState = {
|
|
26417
|
+
handlerResult: void 0
|
|
26418
|
+
};
|
|
26419
|
+
try {
|
|
26420
|
+
let tuples = matches.flatMap(
|
|
26421
|
+
(m) => m.route.unstable_middleware ? m.route.unstable_middleware.map((fn) => [m.route.id, fn]) : []
|
|
26422
|
+
);
|
|
26423
|
+
let result = await callRouteMiddleware(
|
|
26424
|
+
{ request: request2, params, context },
|
|
26425
|
+
tuples,
|
|
26426
|
+
propagateResult,
|
|
26427
|
+
middlewareState,
|
|
26428
|
+
handler
|
|
26429
|
+
);
|
|
26430
|
+
return propagateResult ? result : middlewareState.handlerResult;
|
|
26431
|
+
} catch (e) {
|
|
26432
|
+
if (!middlewareState.middlewareError) {
|
|
26433
|
+
throw e;
|
|
26434
|
+
}
|
|
26435
|
+
let result = await errorHandler(
|
|
26436
|
+
middlewareState.middlewareError.error,
|
|
26437
|
+
middlewareState.middlewareError.routeId
|
|
26438
|
+
);
|
|
26439
|
+
if (!middlewareState.handlerResult) {
|
|
26440
|
+
return result;
|
|
26441
|
+
}
|
|
26442
|
+
return Object.assign(middlewareState.handlerResult, result);
|
|
26443
|
+
}
|
|
26444
|
+
}
|
|
26445
|
+
async function callRouteMiddleware(args, middlewares, propagateResult, middlewareState, handler, idx = 0) {
|
|
26446
|
+
let { request: request2 } = args;
|
|
26447
|
+
if (request2.signal.aborted) {
|
|
26448
|
+
if (request2.signal.reason) {
|
|
26449
|
+
throw request2.signal.reason;
|
|
26450
|
+
}
|
|
26451
|
+
throw new Error(
|
|
26452
|
+
`Request aborted without an \`AbortSignal.reason\`: ${request2.method} ${request2.url}`
|
|
26453
|
+
);
|
|
26454
|
+
}
|
|
26455
|
+
let tuple = middlewares[idx];
|
|
26456
|
+
if (!tuple) {
|
|
26457
|
+
middlewareState.handlerResult = await handler();
|
|
26458
|
+
return middlewareState.handlerResult;
|
|
26459
|
+
}
|
|
26460
|
+
let [routeId, middleware] = tuple;
|
|
26461
|
+
let nextCalled = false;
|
|
26462
|
+
let nextResult = void 0;
|
|
26463
|
+
let next = async () => {
|
|
26464
|
+
if (nextCalled) {
|
|
26465
|
+
throw new Error("You may only call `next()` once per middleware");
|
|
26466
|
+
}
|
|
26467
|
+
nextCalled = true;
|
|
26468
|
+
await callRouteMiddleware(
|
|
26469
|
+
args,
|
|
26470
|
+
middlewares,
|
|
26471
|
+
propagateResult,
|
|
26472
|
+
middlewareState,
|
|
26473
|
+
handler,
|
|
26474
|
+
idx + 1
|
|
26475
|
+
);
|
|
26476
|
+
};
|
|
26477
|
+
try {
|
|
26478
|
+
let result = await middleware(
|
|
26479
|
+
{
|
|
26480
|
+
request: args.request,
|
|
26481
|
+
params: args.params,
|
|
26482
|
+
context: args.context
|
|
26483
|
+
},
|
|
26484
|
+
next
|
|
26485
|
+
);
|
|
26486
|
+
if (nextCalled) {
|
|
26487
|
+
if (result === void 0) {
|
|
26488
|
+
return nextResult;
|
|
26489
|
+
} else {
|
|
26490
|
+
return result;
|
|
26491
|
+
}
|
|
26492
|
+
} else {
|
|
26493
|
+
return next();
|
|
26494
|
+
}
|
|
26495
|
+
} catch (error) {
|
|
26496
|
+
if (!middlewareState.middlewareError) {
|
|
26497
|
+
middlewareState.middlewareError = { routeId, error };
|
|
26498
|
+
} else if (middlewareState.middlewareError.error !== error) {
|
|
26499
|
+
middlewareState.middlewareError = { routeId, error };
|
|
26500
|
+
}
|
|
26501
|
+
throw error;
|
|
26502
|
+
}
|
|
26503
|
+
}
|
|
26504
|
+
function getDataStrategyMatchLazyPromises(mapRouteProperties2, manifest, request2, match2, lazyRoutePropertiesToSkip) {
|
|
26505
|
+
let lazyMiddlewarePromise = loadLazyRouteProperty({
|
|
26506
|
+
key: "unstable_middleware",
|
|
26507
|
+
route: match2.route,
|
|
26508
|
+
manifest,
|
|
26509
|
+
mapRouteProperties: mapRouteProperties2
|
|
26510
|
+
});
|
|
26511
|
+
let lazyRoutePromises = loadLazyRoute(
|
|
26512
|
+
match2.route,
|
|
26513
|
+
isMutationMethod(request2.method) ? "action" : "loader",
|
|
26514
|
+
manifest,
|
|
26515
|
+
mapRouteProperties2,
|
|
26516
|
+
lazyRoutePropertiesToSkip
|
|
25026
26517
|
);
|
|
25027
|
-
|
|
25028
|
-
|
|
25029
|
-
|
|
25030
|
-
|
|
25031
|
-
|
|
25032
|
-
|
|
25033
|
-
|
|
25034
|
-
|
|
25035
|
-
|
|
25036
|
-
|
|
25037
|
-
|
|
25038
|
-
|
|
25039
|
-
|
|
25040
|
-
|
|
25041
|
-
|
|
25042
|
-
|
|
25043
|
-
|
|
25044
|
-
|
|
25045
|
-
|
|
25046
|
-
|
|
25047
|
-
|
|
26518
|
+
return {
|
|
26519
|
+
middleware: lazyMiddlewarePromise,
|
|
26520
|
+
route: lazyRoutePromises.lazyRoutePromise,
|
|
26521
|
+
handler: lazyRoutePromises.lazyHandlerPromise
|
|
26522
|
+
};
|
|
26523
|
+
}
|
|
26524
|
+
function getDataStrategyMatch(mapRouteProperties2, manifest, request2, match2, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) {
|
|
26525
|
+
let isUsingNewApi = false;
|
|
26526
|
+
let _lazyPromises = getDataStrategyMatchLazyPromises(
|
|
26527
|
+
mapRouteProperties2,
|
|
26528
|
+
manifest,
|
|
26529
|
+
request2,
|
|
26530
|
+
match2,
|
|
26531
|
+
lazyRoutePropertiesToSkip
|
|
26532
|
+
);
|
|
26533
|
+
return {
|
|
26534
|
+
...match2,
|
|
26535
|
+
_lazyPromises,
|
|
26536
|
+
shouldLoad,
|
|
26537
|
+
unstable_shouldRevalidateArgs,
|
|
26538
|
+
unstable_shouldCallHandler(defaultShouldRevalidate) {
|
|
26539
|
+
isUsingNewApi = true;
|
|
26540
|
+
if (!unstable_shouldRevalidateArgs) {
|
|
26541
|
+
return shouldLoad;
|
|
26542
|
+
}
|
|
26543
|
+
if (typeof defaultShouldRevalidate === "boolean") {
|
|
26544
|
+
return shouldRevalidateLoader(match2, {
|
|
26545
|
+
...unstable_shouldRevalidateArgs,
|
|
26546
|
+
defaultShouldRevalidate
|
|
26547
|
+
});
|
|
26548
|
+
}
|
|
26549
|
+
return shouldRevalidateLoader(match2, unstable_shouldRevalidateArgs);
|
|
26550
|
+
},
|
|
26551
|
+
resolve(handlerOverride) {
|
|
26552
|
+
if (isUsingNewApi || shouldLoad || handlerOverride && !isMutationMethod(request2.method) && (match2.route.lazy || match2.route.loader)) {
|
|
26553
|
+
return callLoaderOrAction({
|
|
26554
|
+
request: request2,
|
|
26555
|
+
match: match2,
|
|
26556
|
+
lazyHandlerPromise: _lazyPromises == null ? void 0 : _lazyPromises.handler,
|
|
26557
|
+
lazyRoutePromise: _lazyPromises == null ? void 0 : _lazyPromises.route,
|
|
26558
|
+
handlerOverride,
|
|
26559
|
+
scopedContext
|
|
26560
|
+
});
|
|
26561
|
+
}
|
|
26562
|
+
return Promise.resolve({ type: "data", result: void 0 });
|
|
26563
|
+
}
|
|
26564
|
+
};
|
|
26565
|
+
}
|
|
26566
|
+
function getTargetedDataStrategyMatches(mapRouteProperties2, manifest, request2, matches, targetMatch, lazyRoutePropertiesToSkip, scopedContext, shouldRevalidateArgs = null) {
|
|
26567
|
+
return matches.map((match2) => {
|
|
26568
|
+
if (match2.route.id !== targetMatch.route.id) {
|
|
26569
|
+
return {
|
|
26570
|
+
...match2,
|
|
26571
|
+
shouldLoad: false,
|
|
26572
|
+
unstable_shouldRevalidateArgs: shouldRevalidateArgs,
|
|
26573
|
+
unstable_shouldCallHandler: () => false,
|
|
26574
|
+
_lazyPromises: getDataStrategyMatchLazyPromises(
|
|
26575
|
+
mapRouteProperties2,
|
|
26576
|
+
manifest,
|
|
26577
|
+
request2,
|
|
26578
|
+
match2,
|
|
26579
|
+
lazyRoutePropertiesToSkip
|
|
26580
|
+
),
|
|
26581
|
+
resolve: () => Promise.resolve({ type: "data", result: void 0 })
|
|
26582
|
+
};
|
|
26583
|
+
}
|
|
26584
|
+
return getDataStrategyMatch(
|
|
26585
|
+
mapRouteProperties2,
|
|
26586
|
+
manifest,
|
|
26587
|
+
request2,
|
|
26588
|
+
match2,
|
|
26589
|
+
lazyRoutePropertiesToSkip,
|
|
26590
|
+
scopedContext,
|
|
26591
|
+
true,
|
|
26592
|
+
shouldRevalidateArgs
|
|
26593
|
+
);
|
|
25048
26594
|
});
|
|
25049
|
-
|
|
25050
|
-
|
|
26595
|
+
}
|
|
26596
|
+
async function callDataStrategyImpl(dataStrategyImpl, request2, matches, fetcherKey, scopedContext, isStaticHandler) {
|
|
26597
|
+
if (matches.some((m) => {
|
|
26598
|
+
var _a2;
|
|
26599
|
+
return (_a2 = m._lazyPromises) == null ? void 0 : _a2.middleware;
|
|
26600
|
+
})) {
|
|
26601
|
+
await Promise.all(matches.map((m) => {
|
|
26602
|
+
var _a2;
|
|
26603
|
+
return (_a2 = m._lazyPromises) == null ? void 0 : _a2.middleware;
|
|
26604
|
+
}));
|
|
26605
|
+
}
|
|
26606
|
+
let dataStrategyArgs = {
|
|
25051
26607
|
request: request2,
|
|
25052
26608
|
params: matches[0].params,
|
|
26609
|
+
context: scopedContext,
|
|
26610
|
+
matches
|
|
26611
|
+
};
|
|
26612
|
+
let unstable_runClientMiddleware = (cb) => {
|
|
26613
|
+
let typedDataStrategyArgs = dataStrategyArgs;
|
|
26614
|
+
return runMiddlewarePipeline(
|
|
26615
|
+
typedDataStrategyArgs,
|
|
26616
|
+
false,
|
|
26617
|
+
() => cb({
|
|
26618
|
+
...typedDataStrategyArgs,
|
|
26619
|
+
fetcherKey,
|
|
26620
|
+
unstable_runClientMiddleware: () => {
|
|
26621
|
+
throw new Error(
|
|
26622
|
+
"Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler"
|
|
26623
|
+
);
|
|
26624
|
+
}
|
|
26625
|
+
}),
|
|
26626
|
+
(error, routeId) => ({
|
|
26627
|
+
[routeId]: { type: "error", result: error }
|
|
26628
|
+
})
|
|
26629
|
+
);
|
|
26630
|
+
};
|
|
26631
|
+
let results = await dataStrategyImpl({
|
|
26632
|
+
...dataStrategyArgs,
|
|
25053
26633
|
fetcherKey,
|
|
25054
|
-
|
|
26634
|
+
unstable_runClientMiddleware
|
|
25055
26635
|
});
|
|
25056
26636
|
try {
|
|
25057
|
-
await Promise.all(
|
|
26637
|
+
await Promise.all(
|
|
26638
|
+
matches.flatMap((m) => {
|
|
26639
|
+
var _a2, _b2;
|
|
26640
|
+
return [
|
|
26641
|
+
(_a2 = m._lazyPromises) == null ? void 0 : _a2.handler,
|
|
26642
|
+
(_b2 = m._lazyPromises) == null ? void 0 : _b2.route
|
|
26643
|
+
];
|
|
26644
|
+
})
|
|
26645
|
+
);
|
|
25058
26646
|
} catch (e) {
|
|
25059
26647
|
}
|
|
25060
26648
|
return results;
|
|
25061
26649
|
}
|
|
25062
|
-
async function callLoaderOrAction(
|
|
26650
|
+
async function callLoaderOrAction({
|
|
26651
|
+
request: request2,
|
|
26652
|
+
match: match2,
|
|
26653
|
+
lazyHandlerPromise,
|
|
26654
|
+
lazyRoutePromise,
|
|
26655
|
+
handlerOverride,
|
|
26656
|
+
scopedContext
|
|
26657
|
+
}) {
|
|
25063
26658
|
let result;
|
|
25064
26659
|
let onReject;
|
|
26660
|
+
let isAction = isMutationMethod(request2.method);
|
|
26661
|
+
let type = isAction ? "action" : "loader";
|
|
25065
26662
|
let runHandler = (handler) => {
|
|
25066
26663
|
let reject;
|
|
25067
26664
|
let abortPromise = new Promise((_2, r2) => reject = r2);
|
|
@@ -25079,7 +26676,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
25079
26676
|
{
|
|
25080
26677
|
request: request2,
|
|
25081
26678
|
params: match2.params,
|
|
25082
|
-
context:
|
|
26679
|
+
context: scopedContext
|
|
25083
26680
|
},
|
|
25084
26681
|
...ctx !== void 0 ? [ctx] : []
|
|
25085
26682
|
);
|
|
@@ -25095,8 +26692,8 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
25095
26692
|
return Promise.race([handlerPromise, abortPromise]);
|
|
25096
26693
|
};
|
|
25097
26694
|
try {
|
|
25098
|
-
let handler = match2.route
|
|
25099
|
-
if (
|
|
26695
|
+
let handler = isAction ? match2.route.action : match2.route.loader;
|
|
26696
|
+
if (lazyHandlerPromise || lazyRoutePromise) {
|
|
25100
26697
|
if (handler) {
|
|
25101
26698
|
let handlerError;
|
|
25102
26699
|
let [value2] = await Promise.all([
|
|
@@ -25106,17 +26703,19 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
25106
26703
|
runHandler(handler).catch((e) => {
|
|
25107
26704
|
handlerError = e;
|
|
25108
26705
|
}),
|
|
25109
|
-
|
|
26706
|
+
// Ensure all lazy route promises are resolved before continuing
|
|
26707
|
+
lazyHandlerPromise,
|
|
26708
|
+
lazyRoutePromise
|
|
25110
26709
|
]);
|
|
25111
26710
|
if (handlerError !== void 0) {
|
|
25112
26711
|
throw handlerError;
|
|
25113
26712
|
}
|
|
25114
26713
|
result = value2;
|
|
25115
26714
|
} else {
|
|
25116
|
-
await
|
|
25117
|
-
|
|
25118
|
-
if (
|
|
25119
|
-
result = await runHandler(
|
|
26715
|
+
await lazyHandlerPromise;
|
|
26716
|
+
let handler2 = isAction ? match2.route.action : match2.route.loader;
|
|
26717
|
+
if (handler2) {
|
|
26718
|
+
[result] = await Promise.all([runHandler(handler2), lazyRoutePromise]);
|
|
25120
26719
|
} else if (type === "action") {
|
|
25121
26720
|
let url2 = new URL(request2.url);
|
|
25122
26721
|
let pathname = url2.pathname + url2.search;
|
|
@@ -25224,7 +26823,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
25224
26823
|
location2,
|
|
25225
26824
|
"Redirects returned/thrown from loaders/actions must have a Location header"
|
|
25226
26825
|
);
|
|
25227
|
-
if (!
|
|
26826
|
+
if (!isAbsoluteUrl(location2)) {
|
|
25228
26827
|
let trimmedMatches = matches.slice(
|
|
25229
26828
|
0,
|
|
25230
26829
|
matches.findIndex((m) => m.route.id === routeId) + 1
|
|
@@ -25240,7 +26839,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
25240
26839
|
return response;
|
|
25241
26840
|
}
|
|
25242
26841
|
function normalizeRedirectLocation(location2, currentUrl, basename) {
|
|
25243
|
-
if (
|
|
26842
|
+
if (isAbsoluteUrl(location2)) {
|
|
25244
26843
|
let normalizedLocation = location2;
|
|
25245
26844
|
let url2 = normalizedLocation.startsWith("//") ? new URL(currentUrl.protocol + normalizedLocation) : new URL(normalizedLocation);
|
|
25246
26845
|
let isSameBasename = stripBasename(url2.pathname, basename) != null;
|
|
@@ -25337,7 +26936,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
25337
26936
|
});
|
|
25338
26937
|
if (pendingError !== void 0 && pendingActionResult) {
|
|
25339
26938
|
errors = { [pendingActionResult[0]]: pendingError };
|
|
25340
|
-
|
|
26939
|
+
if (pendingActionResult[2]) {
|
|
26940
|
+
loaderData[pendingActionResult[2]] = void 0;
|
|
26941
|
+
}
|
|
25341
26942
|
}
|
|
25342
26943
|
return {
|
|
25343
26944
|
loaderData,
|
|
@@ -25352,7 +26953,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
25352
26953
|
results,
|
|
25353
26954
|
pendingActionResult
|
|
25354
26955
|
);
|
|
25355
|
-
revalidatingFetchers.forEach((rf) => {
|
|
26956
|
+
revalidatingFetchers.filter((f) => !f.matches || f.matches.some((m) => m.shouldLoad)).forEach((rf) => {
|
|
25356
26957
|
let { key: key2, match: match2, controller } = rf;
|
|
25357
26958
|
let result = fetcherResults[key2];
|
|
25358
26959
|
invariant$1(result, "Did not find corresponding fetcher result");
|
|
@@ -25713,6 +27314,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
25713
27314
|
DataRouterContext.displayName = "DataRouter";
|
|
25714
27315
|
var DataRouterStateContext = reactExports.createContext(null);
|
|
25715
27316
|
DataRouterStateContext.displayName = "DataRouterState";
|
|
27317
|
+
reactExports.createContext(false);
|
|
25716
27318
|
var ViewTransitionContext = reactExports.createContext({
|
|
25717
27319
|
isTransitioning: false
|
|
25718
27320
|
});
|
|
@@ -25853,7 +27455,7 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
25853
27455
|
// router loaded. We can help them understand how to avoid that.
|
|
25854
27456
|
`useRoutes() may be used only in the context of a <Router> component.`
|
|
25855
27457
|
);
|
|
25856
|
-
let { navigator: navigator2
|
|
27458
|
+
let { navigator: navigator2 } = reactExports.useContext(NavigationContext);
|
|
25857
27459
|
let { matches: parentMatches } = reactExports.useContext(RouteContext);
|
|
25858
27460
|
let routeMatch = parentMatches[parentMatches.length - 1];
|
|
25859
27461
|
let parentParams = routeMatch ? routeMatch.params : {};
|
|
@@ -25882,7 +27484,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
25882
27484
|
let segments = pathname.replace(/^\//, "").split("/");
|
|
25883
27485
|
remainingPathname = "/" + segments.slice(parentSegments.length).join("/");
|
|
25884
27486
|
}
|
|
25885
|
-
let matches =
|
|
27487
|
+
let matches = matchRoutes(routes2, { pathname: remainingPathname });
|
|
25886
27488
|
{
|
|
25887
27489
|
warning(
|
|
25888
27490
|
parentRoute || matches != null,
|
|
@@ -26036,68 +27638,71 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26036
27638
|
}
|
|
26037
27639
|
}
|
|
26038
27640
|
}
|
|
26039
|
-
return renderedMatches.reduceRight(
|
|
26040
|
-
|
|
26041
|
-
|
|
26042
|
-
|
|
26043
|
-
|
|
26044
|
-
|
|
26045
|
-
|
|
26046
|
-
|
|
26047
|
-
|
|
26048
|
-
if (
|
|
26049
|
-
|
|
26050
|
-
|
|
26051
|
-
|
|
26052
|
-
|
|
26053
|
-
|
|
26054
|
-
|
|
26055
|
-
|
|
26056
|
-
|
|
26057
|
-
|
|
26058
|
-
|
|
26059
|
-
|
|
26060
|
-
|
|
26061
|
-
}
|
|
26062
|
-
let matches2 = parentMatches.concat(renderedMatches.slice(0, index2 + 1));
|
|
26063
|
-
let getChildren = () => {
|
|
26064
|
-
let children;
|
|
26065
|
-
if (error) {
|
|
26066
|
-
children = errorElement;
|
|
26067
|
-
} else if (shouldRenderHydrateFallback) {
|
|
26068
|
-
children = hydrateFallbackElement;
|
|
26069
|
-
} else if (match2.route.Component) {
|
|
26070
|
-
children = /* @__PURE__ */ reactExports.createElement(match2.route.Component, null);
|
|
26071
|
-
} else if (match2.route.element) {
|
|
26072
|
-
children = match2.route.element;
|
|
26073
|
-
} else {
|
|
26074
|
-
children = outlet;
|
|
26075
|
-
}
|
|
26076
|
-
return /* @__PURE__ */ reactExports.createElement(
|
|
26077
|
-
RenderedRoute,
|
|
26078
|
-
{
|
|
26079
|
-
match: match2,
|
|
26080
|
-
routeContext: {
|
|
26081
|
-
outlet,
|
|
26082
|
-
matches: matches2,
|
|
26083
|
-
isDataRoute: dataRouterState != null
|
|
26084
|
-
},
|
|
26085
|
-
children
|
|
27641
|
+
return renderedMatches.reduceRight(
|
|
27642
|
+
(outlet, match2, index2) => {
|
|
27643
|
+
let error;
|
|
27644
|
+
let shouldRenderHydrateFallback = false;
|
|
27645
|
+
let errorElement = null;
|
|
27646
|
+
let hydrateFallbackElement = null;
|
|
27647
|
+
if (dataRouterState) {
|
|
27648
|
+
error = errors && match2.route.id ? errors[match2.route.id] : void 0;
|
|
27649
|
+
errorElement = match2.route.errorElement || defaultErrorElement;
|
|
27650
|
+
if (renderFallback) {
|
|
27651
|
+
if (fallbackIndex < 0 && index2 === 0) {
|
|
27652
|
+
warningOnce(
|
|
27653
|
+
"route-fallback",
|
|
27654
|
+
false,
|
|
27655
|
+
"No `HydrateFallback` element provided to render during initial hydration"
|
|
27656
|
+
);
|
|
27657
|
+
shouldRenderHydrateFallback = true;
|
|
27658
|
+
hydrateFallbackElement = null;
|
|
27659
|
+
} else if (fallbackIndex === index2) {
|
|
27660
|
+
shouldRenderHydrateFallback = true;
|
|
27661
|
+
hydrateFallbackElement = match2.route.hydrateFallbackElement || null;
|
|
27662
|
+
}
|
|
26086
27663
|
}
|
|
26087
|
-
);
|
|
26088
|
-
};
|
|
26089
|
-
return dataRouterState && (match2.route.ErrorBoundary || match2.route.errorElement || index2 === 0) ? /* @__PURE__ */ reactExports.createElement(
|
|
26090
|
-
RenderErrorBoundary,
|
|
26091
|
-
{
|
|
26092
|
-
location: dataRouterState.location,
|
|
26093
|
-
revalidation: dataRouterState.revalidation,
|
|
26094
|
-
component: errorElement,
|
|
26095
|
-
error,
|
|
26096
|
-
children: getChildren(),
|
|
26097
|
-
routeContext: { outlet: null, matches: matches2, isDataRoute: true }
|
|
26098
27664
|
}
|
|
26099
|
-
|
|
26100
|
-
|
|
27665
|
+
let matches2 = parentMatches.concat(renderedMatches.slice(0, index2 + 1));
|
|
27666
|
+
let getChildren = () => {
|
|
27667
|
+
let children;
|
|
27668
|
+
if (error) {
|
|
27669
|
+
children = errorElement;
|
|
27670
|
+
} else if (shouldRenderHydrateFallback) {
|
|
27671
|
+
children = hydrateFallbackElement;
|
|
27672
|
+
} else if (match2.route.Component) {
|
|
27673
|
+
children = /* @__PURE__ */ reactExports.createElement(match2.route.Component, null);
|
|
27674
|
+
} else if (match2.route.element) {
|
|
27675
|
+
children = match2.route.element;
|
|
27676
|
+
} else {
|
|
27677
|
+
children = outlet;
|
|
27678
|
+
}
|
|
27679
|
+
return /* @__PURE__ */ reactExports.createElement(
|
|
27680
|
+
RenderedRoute,
|
|
27681
|
+
{
|
|
27682
|
+
match: match2,
|
|
27683
|
+
routeContext: {
|
|
27684
|
+
outlet,
|
|
27685
|
+
matches: matches2,
|
|
27686
|
+
isDataRoute: dataRouterState != null
|
|
27687
|
+
},
|
|
27688
|
+
children
|
|
27689
|
+
}
|
|
27690
|
+
);
|
|
27691
|
+
};
|
|
27692
|
+
return dataRouterState && (match2.route.ErrorBoundary || match2.route.errorElement || index2 === 0) ? /* @__PURE__ */ reactExports.createElement(
|
|
27693
|
+
RenderErrorBoundary,
|
|
27694
|
+
{
|
|
27695
|
+
location: dataRouterState.location,
|
|
27696
|
+
revalidation: dataRouterState.revalidation,
|
|
27697
|
+
component: errorElement,
|
|
27698
|
+
error,
|
|
27699
|
+
children: getChildren(),
|
|
27700
|
+
routeContext: { outlet: null, matches: matches2, isDataRoute: true }
|
|
27701
|
+
}
|
|
27702
|
+
) : getChildren();
|
|
27703
|
+
},
|
|
27704
|
+
null
|
|
27705
|
+
);
|
|
26101
27706
|
}
|
|
26102
27707
|
function getDataRouterConsoleError(hookName) {
|
|
26103
27708
|
return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
@@ -26239,6 +27844,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26239
27844
|
}
|
|
26240
27845
|
return updates;
|
|
26241
27846
|
}
|
|
27847
|
+
var hydrationRouteProperties = [
|
|
27848
|
+
"HydrateFallback",
|
|
27849
|
+
"hydrateFallbackElement"
|
|
27850
|
+
];
|
|
26242
27851
|
var Deferred = class {
|
|
26243
27852
|
constructor() {
|
|
26244
27853
|
this.status = "pending";
|
|
@@ -26618,11 +28227,28 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26618
28227
|
}
|
|
26619
28228
|
return { action, method: method.toLowerCase(), encType, formData, body };
|
|
26620
28229
|
}
|
|
28230
|
+
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
26621
28231
|
function invariant2(value2, message2) {
|
|
26622
28232
|
if (value2 === false || value2 === null || typeof value2 === "undefined") {
|
|
26623
28233
|
throw new Error(message2);
|
|
26624
28234
|
}
|
|
26625
28235
|
}
|
|
28236
|
+
function singleFetchUrl(reqUrl, basename, extension) {
|
|
28237
|
+
let url2 = typeof reqUrl === "string" ? new URL(
|
|
28238
|
+
reqUrl,
|
|
28239
|
+
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
28240
|
+
// don't assume window is available
|
|
28241
|
+
typeof window === "undefined" ? "server://singlefetch/" : window.location.origin
|
|
28242
|
+
) : reqUrl;
|
|
28243
|
+
if (url2.pathname === "/") {
|
|
28244
|
+
url2.pathname = `_root.${extension}`;
|
|
28245
|
+
} else if (basename && stripBasename(url2.pathname, basename) === "/") {
|
|
28246
|
+
url2.pathname = `${basename.replace(/\/$/, "")}/_root.${extension}`;
|
|
28247
|
+
} else {
|
|
28248
|
+
url2.pathname = `${url2.pathname.replace(/\/$/, "")}.${extension}`;
|
|
28249
|
+
}
|
|
28250
|
+
return url2;
|
|
28251
|
+
}
|
|
26626
28252
|
async function loadRouteModule(route, routeModulesCache) {
|
|
26627
28253
|
if (route.id in routeModulesCache) {
|
|
26628
28254
|
return routeModulesCache[route.id];
|
|
@@ -26722,12 +28348,21 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26722
28348
|
}
|
|
26723
28349
|
return [];
|
|
26724
28350
|
}
|
|
26725
|
-
function getModuleLinkHrefs(matches,
|
|
28351
|
+
function getModuleLinkHrefs(matches, manifest, { includeHydrateFallback } = {}) {
|
|
26726
28352
|
return dedupeHrefs(
|
|
26727
28353
|
matches.map((match2) => {
|
|
26728
|
-
let route =
|
|
28354
|
+
let route = manifest.routes[match2.route.id];
|
|
26729
28355
|
if (!route) return [];
|
|
26730
28356
|
let hrefs = [route.module];
|
|
28357
|
+
if (route.clientActionModule) {
|
|
28358
|
+
hrefs = hrefs.concat(route.clientActionModule);
|
|
28359
|
+
}
|
|
28360
|
+
if (route.clientLoaderModule) {
|
|
28361
|
+
hrefs = hrefs.concat(route.clientLoaderModule);
|
|
28362
|
+
}
|
|
28363
|
+
if (includeHydrateFallback && route.hydrateFallbackModule) {
|
|
28364
|
+
hrefs = hrefs.concat(route.hydrateFallbackModule);
|
|
28365
|
+
}
|
|
26731
28366
|
if (route.imports) {
|
|
26732
28367
|
hrefs = hrefs.concat(route.imports);
|
|
26733
28368
|
}
|
|
@@ -26758,20 +28393,6 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26758
28393
|
return deduped;
|
|
26759
28394
|
}, []);
|
|
26760
28395
|
}
|
|
26761
|
-
function singleFetchUrl(reqUrl) {
|
|
26762
|
-
let url2 = typeof reqUrl === "string" ? new URL(
|
|
26763
|
-
reqUrl,
|
|
26764
|
-
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
26765
|
-
// don't assume window is available
|
|
26766
|
-
typeof window === "undefined" ? "server://singlefetch/" : window.location.origin
|
|
26767
|
-
) : reqUrl;
|
|
26768
|
-
if (url2.pathname === "/") {
|
|
26769
|
-
url2.pathname = "_root.data";
|
|
26770
|
-
} else {
|
|
26771
|
-
url2.pathname = `${url2.pathname.replace(/\/$/, "")}.data`;
|
|
26772
|
-
}
|
|
26773
|
-
return url2;
|
|
26774
|
-
}
|
|
26775
28396
|
function useDataRouterContext2() {
|
|
26776
28397
|
let context = reactExports.useContext(DataRouterContext);
|
|
26777
28398
|
invariant2(
|
|
@@ -26864,10 +28485,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26864
28485
|
}
|
|
26865
28486
|
};
|
|
26866
28487
|
}
|
|
26867
|
-
function PrefetchPageLinks({
|
|
26868
|
-
page,
|
|
26869
|
-
...dataLinkProps
|
|
26870
|
-
}) {
|
|
28488
|
+
function PrefetchPageLinks({ page, ...linkProps }) {
|
|
26871
28489
|
let { router } = useDataRouterContext2();
|
|
26872
28490
|
let matches = reactExports.useMemo(
|
|
26873
28491
|
() => matchRoutes(router.routes, page, router.basename),
|
|
@@ -26876,7 +28494,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26876
28494
|
if (!matches) {
|
|
26877
28495
|
return null;
|
|
26878
28496
|
}
|
|
26879
|
-
return /* @__PURE__ */ reactExports.createElement(PrefetchPageLinksImpl, { page, matches, ...
|
|
28497
|
+
return /* @__PURE__ */ reactExports.createElement(PrefetchPageLinksImpl, { page, matches, ...linkProps });
|
|
26880
28498
|
}
|
|
26881
28499
|
function useKeyedPrefetchLinks(matches) {
|
|
26882
28500
|
let { manifest, routeModules } = useFrameworkContext();
|
|
@@ -26903,6 +28521,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26903
28521
|
}) {
|
|
26904
28522
|
let location2 = useLocation();
|
|
26905
28523
|
let { manifest, routeModules } = useFrameworkContext();
|
|
28524
|
+
let { basename } = useDataRouterContext2();
|
|
26906
28525
|
let { loaderData, matches } = useDataRouterStateContext();
|
|
26907
28526
|
let newMatchesForData = reactExports.useMemo(
|
|
26908
28527
|
() => getNewMatchesForLinks(
|
|
@@ -26949,7 +28568,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26949
28568
|
if (routesParams.size === 0) {
|
|
26950
28569
|
return [];
|
|
26951
28570
|
}
|
|
26952
|
-
let url2 = singleFetchUrl(page);
|
|
28571
|
+
let url2 = singleFetchUrl(page, basename, "data");
|
|
26953
28572
|
if (foundOptOutRoute && routesParams.size > 0) {
|
|
26954
28573
|
url2.searchParams.set(
|
|
26955
28574
|
"_routes",
|
|
@@ -26958,6 +28577,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26958
28577
|
}
|
|
26959
28578
|
return [url2.pathname + url2.search];
|
|
26960
28579
|
}, [
|
|
28580
|
+
basename,
|
|
26961
28581
|
loaderData,
|
|
26962
28582
|
location2,
|
|
26963
28583
|
manifest,
|
|
@@ -26991,18 +28611,21 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
26991
28611
|
var isBrowser$3 = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
26992
28612
|
try {
|
|
26993
28613
|
if (isBrowser$3) {
|
|
26994
|
-
window.__reactRouterVersion =
|
|
28614
|
+
window.__reactRouterVersion = // @ts-expect-error
|
|
28615
|
+
"7.7.1";
|
|
26995
28616
|
}
|
|
26996
28617
|
} catch (e) {
|
|
26997
28618
|
}
|
|
26998
28619
|
function createBrowserRouter(routes2, opts) {
|
|
26999
28620
|
return createRouter({
|
|
27000
28621
|
basename: opts == null ? void 0 : opts.basename,
|
|
28622
|
+
unstable_getContext: opts == null ? void 0 : opts.unstable_getContext,
|
|
27001
28623
|
future: opts == null ? void 0 : opts.future,
|
|
27002
28624
|
history: createBrowserHistory({ window: opts == null ? void 0 : opts.window }),
|
|
27003
28625
|
hydrationData: parseHydrationData(),
|
|
27004
28626
|
routes: routes2,
|
|
27005
28627
|
mapRouteProperties,
|
|
28628
|
+
hydrationRouteProperties,
|
|
27006
28629
|
dataStrategy: opts == null ? void 0 : opts.dataStrategy,
|
|
27007
28630
|
patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation,
|
|
27008
28631
|
window: opts == null ? void 0 : opts.window
|
|
@@ -27320,7 +28943,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
27320
28943
|
let setSearchParams = reactExports.useCallback(
|
|
27321
28944
|
(nextInit, navigateOptions) => {
|
|
27322
28945
|
const newSearchParams = createSearchParams(
|
|
27323
|
-
typeof nextInit === "function" ? nextInit(searchParams) : nextInit
|
|
28946
|
+
typeof nextInit === "function" ? nextInit(new URLSearchParams(searchParams)) : nextInit
|
|
27324
28947
|
);
|
|
27325
28948
|
hasSetSearchParamsRef.current = true;
|
|
27326
28949
|
navigate("?" + newSearchParams, navigateOptions);
|
|
@@ -27399,7 +29022,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
27399
29022
|
}
|
|
27400
29023
|
return createPath$1(path2);
|
|
27401
29024
|
}
|
|
27402
|
-
function useViewTransitionState(to,
|
|
29025
|
+
function useViewTransitionState(to, { relative } = {}) {
|
|
27403
29026
|
let vtContext = reactExports.useContext(ViewTransitionContext);
|
|
27404
29027
|
invariant$1(
|
|
27405
29028
|
vtContext != null,
|
|
@@ -27409,7 +29032,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
27409
29032
|
"useViewTransitionState"
|
|
27410
29033
|
/* useViewTransitionState */
|
|
27411
29034
|
);
|
|
27412
|
-
let path2 = useResolvedPath(to, { relative
|
|
29035
|
+
let path2 = useResolvedPath(to, { relative });
|
|
27413
29036
|
if (!vtContext.isTransitioning) {
|
|
27414
29037
|
return false;
|
|
27415
29038
|
}
|
|
@@ -27417,17 +29040,6 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
27417
29040
|
let nextPath = stripBasename(vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
|
|
27418
29041
|
return matchPath(path2.pathname, nextPath) != null || matchPath(path2.pathname, currentPath) != null;
|
|
27419
29042
|
}
|
|
27420
|
-
new TextEncoder();
|
|
27421
|
-
/**
|
|
27422
|
-
* react-router v7.1.5
|
|
27423
|
-
*
|
|
27424
|
-
* Copyright (c) Remix Software Inc.
|
|
27425
|
-
*
|
|
27426
|
-
* This source code is licensed under the MIT license found in the
|
|
27427
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
27428
|
-
*
|
|
27429
|
-
* @license MIT
|
|
27430
|
-
*/
|
|
27431
29043
|
function RouterProvider2(props) {
|
|
27432
29044
|
return /* @__PURE__ */ reactExports.createElement(RouterProvider, { flushSync: reactDomExports.flushSync, ...props });
|
|
27433
29045
|
}
|
|
@@ -28028,11 +29640,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
28028
29640
|
};
|
|
28029
29641
|
return SimpleRule2;
|
|
28030
29642
|
}();
|
|
28031
|
-
var keysMap = {
|
|
28032
|
-
"@charset": true,
|
|
28033
|
-
"@import": true,
|
|
28034
|
-
"@namespace": true
|
|
28035
|
-
};
|
|
29643
|
+
var keysMap = {};
|
|
28036
29644
|
var pluginSimpleRule = {
|
|
28037
29645
|
onCreateRule: function onCreateRule7(key2, value2, options) {
|
|
28038
29646
|
return key2 in keysMap ? new SimpleRule(key2, value2, options) : null;
|
|
@@ -36773,28 +38381,22 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
36773
38381
|
hasRequiredInteropRequireWildcard = 1;
|
|
36774
38382
|
(function(module) {
|
|
36775
38383
|
var _typeof2 = require_typeof()["default"];
|
|
36776
|
-
function
|
|
36777
|
-
if ("function"
|
|
36778
|
-
|
|
36779
|
-
|
|
36780
|
-
|
|
36781
|
-
|
|
36782
|
-
|
|
36783
|
-
|
|
36784
|
-
|
|
36785
|
-
|
|
36786
|
-
|
|
36787
|
-
|
|
36788
|
-
|
|
36789
|
-
|
|
36790
|
-
|
|
36791
|
-
|
|
36792
|
-
}, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
36793
|
-
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
36794
|
-
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
36795
|
-
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
36796
|
-
}
|
|
36797
|
-
return n["default"] = e, t2 && t2.set(e, n), n;
|
|
38384
|
+
function _interopRequireWildcard(e, t2) {
|
|
38385
|
+
if ("function" == typeof WeakMap) var r2 = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
38386
|
+
return (module.exports = _interopRequireWildcard = function _interopRequireWildcard2(e2, t3) {
|
|
38387
|
+
if (!t3 && e2 && e2.__esModule) return e2;
|
|
38388
|
+
var o, i, f = {
|
|
38389
|
+
__proto__: null,
|
|
38390
|
+
"default": e2
|
|
38391
|
+
};
|
|
38392
|
+
if (null === e2 || "object" != _typeof2(e2) && "function" != typeof e2) return f;
|
|
38393
|
+
if (o = t3 ? n : r2) {
|
|
38394
|
+
if (o.has(e2)) return o.get(e2);
|
|
38395
|
+
o.set(e2, f);
|
|
38396
|
+
}
|
|
38397
|
+
for (var _t in e2) "default" !== _t && {}.hasOwnProperty.call(e2, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e2, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e2[_t]);
|
|
38398
|
+
return f;
|
|
38399
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t2);
|
|
36798
38400
|
}
|
|
36799
38401
|
module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
36800
38402
|
})(interopRequireWildcard);
|
|
@@ -40522,7 +42124,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
40522
42124
|
return symbolToString ? symbolToString.call(value2) : "";
|
|
40523
42125
|
}
|
|
40524
42126
|
var result2 = value2 + "";
|
|
40525
|
-
return result2 == "0" && 1 / value2 == -
|
|
42127
|
+
return result2 == "0" && 1 / value2 == -INFINITY ? "-0" : result2;
|
|
40526
42128
|
}
|
|
40527
42129
|
function baseUniq(array, iteratee2, comparator) {
|
|
40528
42130
|
var index2 = -1, includes2 = arrayIncludes2, length = array.length, isCommon = true, result2 = [], seen2 = result2;
|
|
@@ -41729,7 +43331,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
41729
43331
|
return value2;
|
|
41730
43332
|
}
|
|
41731
43333
|
var result2 = value2 + "";
|
|
41732
|
-
return result2 == "0" && 1 / value2 == -
|
|
43334
|
+
return result2 == "0" && 1 / value2 == -INFINITY ? "-0" : result2;
|
|
41733
43335
|
}
|
|
41734
43336
|
function toSource(func) {
|
|
41735
43337
|
if (func != null) {
|
|
@@ -42793,7 +44395,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
42793
44395
|
}
|
|
42794
44396
|
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
42795
44397
|
function isSafeInteger(value2) {
|
|
42796
|
-
return isInteger(value2) && value2 >= -
|
|
44398
|
+
return isInteger(value2) && value2 >= -MAX_SAFE_INTEGER && value2 <= MAX_SAFE_INTEGER;
|
|
42797
44399
|
}
|
|
42798
44400
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
42799
44401
|
function isString2(value2) {
|
|
@@ -42834,7 +44436,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
42834
44436
|
return value2 === 0 ? value2 : 0;
|
|
42835
44437
|
}
|
|
42836
44438
|
value2 = toNumber(value2);
|
|
42837
|
-
if (value2 === INFINITY || value2 === -
|
|
44439
|
+
if (value2 === INFINITY || value2 === -INFINITY) {
|
|
42838
44440
|
var sign = value2 < 0 ? -1 : 1;
|
|
42839
44441
|
return sign * MAX_INTEGER;
|
|
42840
44442
|
}
|
|
@@ -42869,7 +44471,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
42869
44471
|
return copyObject(value2, keysIn(value2));
|
|
42870
44472
|
}
|
|
42871
44473
|
function toSafeInteger(value2) {
|
|
42872
|
-
return value2 ? baseClamp(toInteger(value2), -
|
|
44474
|
+
return value2 ? baseClamp(toInteger(value2), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value2 === 0 ? value2 : 0;
|
|
42873
44475
|
}
|
|
42874
44476
|
function toString2(value2) {
|
|
42875
44477
|
return value2 == null ? "" : baseToString(value2);
|
|
@@ -48040,7 +49642,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
48040
49642
|
});
|
|
48041
49643
|
});
|
|
48042
49644
|
var define_process_env_default = {};
|
|
48043
|
-
var SDK_VERSION = "8.0.
|
|
49645
|
+
var SDK_VERSION = "8.0.39", _a;
|
|
48044
49646
|
"undefined" != typeof window && (null === (_a = window.parent) || void 0 === _a || _a.postMessage({ type: "builder.isReactSdk", data: { value: true, supportsPatchUpdates: "v4", supportsCustomBreakpoints: true, supportsGlobalSymbols: true, blockLevelPersonalization: true, version: SDK_VERSION } }, "*"));
|
|
48045
49647
|
var extendStatics = function(e, t2) {
|
|
48046
49648
|
return (extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e2, t22) {
|
|
@@ -49606,17 +51208,21 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
49606
51208
|
}(React$1.Component), AmisComponent = function(e) {
|
|
49607
51209
|
function t2(t22) {
|
|
49608
51210
|
var n = e.call(this, t22) || this;
|
|
49609
|
-
return n.amis = null, n.amisLib = null, n.ref = null, n.amisScoped = null, n._scoped = {}, n.ref = React$1.createRef(), n;
|
|
51211
|
+
return n.amis = null, n.amisLib = null, n.amisRegisterMap = null, n.ref = null, n.amisScoped = null, n._scoped = {}, n.ref = React$1.createRef(), n;
|
|
49610
51212
|
}
|
|
49611
51213
|
return __extends(t2, e), t2.prototype.componentWillUnmount = function() {
|
|
49612
51214
|
this.amisScoped && this.amisScoped.unmount();
|
|
49613
51215
|
}, t2.prototype.registerComponents = function() {
|
|
49614
51216
|
var e2 = this;
|
|
49615
51217
|
Builder$1.components.forEach(function(t22) {
|
|
49616
|
-
var n = t22.class, r2 = t22.meta;
|
|
49617
|
-
n && r2 && r2.amis && r2.amis.render && !r2.amis.isRegisterd
|
|
49618
|
-
|
|
49619
|
-
|
|
51218
|
+
var n = t22.class, r2 = t22.meta, i = e2.amisRegisterMap;
|
|
51219
|
+
if (n && r2 && r2.amis && r2.amis.render && !r2.amis.isRegisterd) {
|
|
51220
|
+
"amisSchema" === r2.componentType && (n = function(e3) {
|
|
51221
|
+
return React$1.createElement(AmisRenderer, __assign({}, e3, { schema: t22.class }));
|
|
51222
|
+
});
|
|
51223
|
+
var o = r2.amis.render;
|
|
51224
|
+
i[o.usage] ? i[o.usage](__assign({ autoVar: true }, r2.amis.render))(n) : console.error("自定义组件注册失败,不存在".concat(o.usage, "自定义组件类型。"), r2), r2.amis.isRegisterd = true;
|
|
51225
|
+
}
|
|
49620
51226
|
});
|
|
49621
51227
|
}, t2.prototype.componentDidMount = function() {
|
|
49622
51228
|
return __awaiter(this, void 0, void 0, function() {
|
|
@@ -49624,7 +51230,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
49624
51230
|
return __generator(this, function(o) {
|
|
49625
51231
|
switch (o.label) {
|
|
49626
51232
|
case 0:
|
|
49627
|
-
return Builder$1.isServer ? [2] : (this.amis = Builder$1.isBrowser && window.amisRequire && window.amisRequire("amis/embed"), this.amisLib = window.amisRequire && window.amisRequire("amis"), this.amis ? [4, this.registerComponents()] : (console.error("Amis is not loaded"), [2]));
|
|
51233
|
+
return Builder$1.isServer ? [2] : (this.amis = Builder$1.isBrowser && window.amisRequire && window.amisRequire("amis/embed"), this.amisLib = window.amisRequire && window.amisRequire("amis"), this.amisRegisterMap = { renderer: this.amisLib.Renderer, formitem: this.amisLib.FormItem, options: this.amisLib.OptionsControl }, this.amis ? [4, this.registerComponents()] : (console.error("Amis is not loaded"), [2]));
|
|
49628
51234
|
case 1:
|
|
49629
51235
|
return o.sent(), e2 = this.props.builderState, t22 = e2.context, n = __assign(__assign(__assign({}, e2.state), this.props.data), { _scoped: this._scoped }), r2 = __assign(__assign(__assign({ theme: "antd", requestAdaptor: function(e3) {
|
|
49630
51236
|
return 1 != e3.allowCredentials && (e3.withCredentials = false, delete e3.allowCredentials), e3;
|
|
@@ -52399,14 +54005,14 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
52399
54005
|
var d = disposables();
|
|
52400
54006
|
if (!node) return d.dispose;
|
|
52401
54007
|
var _getComputedStyle = getComputedStyle(node), transitionDuration = _getComputedStyle.transitionDuration, transitionDelay = _getComputedStyle.transitionDelay;
|
|
52402
|
-
var
|
|
54008
|
+
var _map2 = [transitionDuration, transitionDelay].map(function(value2) {
|
|
52403
54009
|
var _value$split$filter$m = value2.split(",").filter(Boolean).map(function(v) {
|
|
52404
54010
|
return v.includes("ms") ? parseFloat(v) : parseFloat(v) * 1e3;
|
|
52405
54011
|
}).sort(function(a, z) {
|
|
52406
54012
|
return z - a;
|
|
52407
54013
|
}), _value$split$filter$m2 = _value$split$filter$m[0], resolvedValue = _value$split$filter$m2 === void 0 ? 0 : _value$split$filter$m2;
|
|
52408
54014
|
return resolvedValue;
|
|
52409
|
-
}), durationMs =
|
|
54015
|
+
}), durationMs = _map2[0], delaysMs = _map2[1];
|
|
52410
54016
|
if (durationMs !== 0) {
|
|
52411
54017
|
d.setTimeout(function() {
|
|
52412
54018
|
done(Reason.Finished);
|
|
@@ -53634,7 +55240,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
53634
55240
|
`;
|
|
53635
55241
|
const AppDashboard = () => {
|
|
53636
55242
|
const isMobile = false;
|
|
53637
|
-
const badgeText = "${IF(${id} == 'approve_workflow',${
|
|
55243
|
+
const badgeText = "${IF(${id} == 'approve_workflow',${badge|pick:'workflow'},${badge|pick:${id}}) | toInt}";
|
|
53638
55244
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(AmisRender, { schema: {
|
|
53639
55245
|
"type": "service",
|
|
53640
55246
|
"id": "u:0f6224a0836f",
|
|
@@ -53841,6 +55447,14 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
53841
55447
|
app: "",
|
|
53842
55448
|
appId: "",
|
|
53843
55449
|
app_id: ""
|
|
55450
|
+
},
|
|
55451
|
+
dataProvider: function(data2, setData) {
|
|
55452
|
+
window.addEventListener("message", function(event2) {
|
|
55453
|
+
const { data: data22 } = event2;
|
|
55454
|
+
if (data22 && data22.type === "page.dataProvider.setData") {
|
|
55455
|
+
setData(data22.data);
|
|
55456
|
+
}
|
|
55457
|
+
});
|
|
53844
55458
|
}
|
|
53845
55459
|
}, data: {
|
|
53846
55460
|
context: {
|
|
@@ -55169,51 +56783,6 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
55169
56783
|
"id": "u:global-header",
|
|
55170
56784
|
name: "globalHeader",
|
|
55171
56785
|
body: [
|
|
55172
|
-
{
|
|
55173
|
-
"type": "button",
|
|
55174
|
-
"label": "刷新",
|
|
55175
|
-
"className": "hidden btn-reload-page-object-detail",
|
|
55176
|
-
"onEvent": {
|
|
55177
|
-
"click": {
|
|
55178
|
-
"actions": [
|
|
55179
|
-
{
|
|
55180
|
-
"componentId": "u:steedos-page-object-detail",
|
|
55181
|
-
"actionType": "reload"
|
|
55182
|
-
}
|
|
55183
|
-
]
|
|
55184
|
-
}
|
|
55185
|
-
}
|
|
55186
|
-
},
|
|
55187
|
-
{
|
|
55188
|
-
"type": "button",
|
|
55189
|
-
"label": "刷新",
|
|
55190
|
-
"className": "hidden btn-reload-page-object-listview",
|
|
55191
|
-
"onEvent": {
|
|
55192
|
-
"click": {
|
|
55193
|
-
"actions": [
|
|
55194
|
-
{
|
|
55195
|
-
"componentId": "u:steedos-page-object-listview",
|
|
55196
|
-
"actionType": "reload"
|
|
55197
|
-
}
|
|
55198
|
-
]
|
|
55199
|
-
}
|
|
55200
|
-
}
|
|
55201
|
-
},
|
|
55202
|
-
{
|
|
55203
|
-
"type": "button",
|
|
55204
|
-
"label": "刷新",
|
|
55205
|
-
"className": "hidden btn-reload-object-listview",
|
|
55206
|
-
"onEvent": {
|
|
55207
|
-
"click": {
|
|
55208
|
-
"actions": [
|
|
55209
|
-
{
|
|
55210
|
-
"componentId": "u:steedos-object-listview",
|
|
55211
|
-
"actionType": "reload"
|
|
55212
|
-
}
|
|
55213
|
-
]
|
|
55214
|
-
}
|
|
55215
|
-
}
|
|
55216
|
-
},
|
|
55217
56786
|
{
|
|
55218
56787
|
"type": "button",
|
|
55219
56788
|
"label": "刷新",
|
|
@@ -55304,6 +56873,15 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
55304
56873
|
}
|
|
55305
56874
|
`,
|
|
55306
56875
|
"messages": {}
|
|
56876
|
+
},
|
|
56877
|
+
dataProvider: function(data2, setData) {
|
|
56878
|
+
window.addEventListener("message", function(event2) {
|
|
56879
|
+
const { data: data22 } = event2;
|
|
56880
|
+
if (data22 && data22.type === "page.dataProvider.setData") {
|
|
56881
|
+
console.log("dataProvider====>setData", data22);
|
|
56882
|
+
setData(data22.data);
|
|
56883
|
+
}
|
|
56884
|
+
});
|
|
55307
56885
|
}
|
|
55308
56886
|
};
|
|
55309
56887
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: "header", className: "steedos-global-header-root flex-none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AmisRender, { schema, data: {
|
|
@@ -55349,7 +56927,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
55349
56927
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
55350
56928
|
/* @__PURE__ */ jsxRuntimeExports.jsx(GlobalLinkInterceptor, {}),
|
|
55351
56929
|
/* @__PURE__ */ jsxRuntimeExports.jsx(AppHeader, {}),
|
|
55352
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "creator-content-wrapper", id: "main", children })
|
|
56930
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "creator-content-wrapper sm:bg-gray-50", id: "main", children })
|
|
55353
56931
|
] });
|
|
55354
56932
|
};
|
|
55355
56933
|
const ObjectListView = () => {
|
|
@@ -62257,7 +63835,10 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
62257
63835
|
Builder2.settings.steedosVersion = settingsData.steedosVersion;
|
|
62258
63836
|
Builder2.settings.rootUrl = settingsData.rootUrl;
|
|
62259
63837
|
Builder2.settings.steedosAmisVersion = settingsData.steedosAmisVersion;
|
|
62260
|
-
|
|
63838
|
+
const keys2 = Object.keys(settingsData.PUBLIC_SETTINGS);
|
|
63839
|
+
for (const key2 of keys2) {
|
|
63840
|
+
Builder2.settings[key2] = settingsData.PUBLIC_SETTINGS[key2];
|
|
63841
|
+
}
|
|
62261
63842
|
Builder2.settings.env = {
|
|
62262
63843
|
requestAdaptor: (config2) => {
|
|
62263
63844
|
if (config2.url.startsWith("/")) {
|
|
@@ -62737,12 +64318,22 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
62737
64318
|
const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
62738
64319
|
let promise = Promise.resolve();
|
|
62739
64320
|
if (false) {
|
|
64321
|
+
let allSettled2 = function(promises) {
|
|
64322
|
+
return Promise.all(
|
|
64323
|
+
promises.map(
|
|
64324
|
+
(p) => Promise.resolve(p).then(
|
|
64325
|
+
(value2) => ({ status: "fulfilled", value: value2 }),
|
|
64326
|
+
(reason) => ({ status: "rejected", reason })
|
|
64327
|
+
)
|
|
64328
|
+
)
|
|
64329
|
+
);
|
|
64330
|
+
};
|
|
62740
64331
|
document.getElementsByTagName("link");
|
|
62741
64332
|
const cspNonceMeta = document.querySelector(
|
|
62742
64333
|
"meta[property=csp-nonce]"
|
|
62743
64334
|
);
|
|
62744
64335
|
const cspNonce = (cspNonceMeta == null ? void 0 : cspNonceMeta.nonce) || (cspNonceMeta == null ? void 0 : cspNonceMeta.getAttribute("nonce"));
|
|
62745
|
-
promise =
|
|
64336
|
+
promise = allSettled2(
|
|
62746
64337
|
deps.map((dep) => {
|
|
62747
64338
|
dep = assetsURL(dep);
|
|
62748
64339
|
if (dep in seen) return;
|