@shopify/create-hydrogen 4.3.13 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/assets/hydrogen/bundle/analyzer.html +2045 -0
  2. package/dist/assets/hydrogen/i18n/domains.ts +28 -0
  3. package/dist/assets/hydrogen/i18n/mock-i18n-types.ts +3 -0
  4. package/dist/assets/hydrogen/i18n/subdomains.ts +27 -0
  5. package/dist/assets/hydrogen/i18n/subfolders.ts +29 -0
  6. package/dist/assets/hydrogen/routes/locale-check.ts +16 -0
  7. package/dist/assets/hydrogen/starter/.eslintignore +5 -0
  8. package/dist/assets/hydrogen/starter/.eslintrc.cjs +19 -0
  9. package/dist/assets/hydrogen/starter/.graphqlrc.yml +12 -0
  10. package/dist/assets/hydrogen/starter/CHANGELOG.md +709 -0
  11. package/dist/assets/hydrogen/starter/README.md +45 -0
  12. package/dist/assets/hydrogen/starter/app/assets/favicon.svg +28 -0
  13. package/dist/assets/hydrogen/starter/app/components/AddToCartButton.tsx +37 -0
  14. package/dist/assets/hydrogen/starter/app/components/Aside.tsx +76 -0
  15. package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +150 -0
  16. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +68 -0
  17. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +101 -0
  18. package/dist/assets/hydrogen/starter/app/components/Footer.tsx +129 -0
  19. package/dist/assets/hydrogen/starter/app/components/Header.tsx +230 -0
  20. package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +126 -0
  21. package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +80 -0
  22. package/dist/assets/hydrogen/starter/app/components/ProductImage.tsx +23 -0
  23. package/dist/assets/hydrogen/starter/app/components/ProductPrice.tsx +27 -0
  24. package/dist/assets/hydrogen/starter/app/components/Search.tsx +514 -0
  25. package/dist/assets/hydrogen/starter/app/entry.client.tsx +12 -0
  26. package/dist/assets/hydrogen/starter/app/entry.server.tsx +47 -0
  27. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerAddressMutations.ts +61 -0
  28. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerDetailsQuery.ts +40 -0
  29. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerOrderQuery.ts +87 -0
  30. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerOrdersQuery.ts +58 -0
  31. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerUpdateMutation.ts +24 -0
  32. package/dist/assets/hydrogen/starter/app/lib/fragments.ts +174 -0
  33. package/dist/assets/hydrogen/starter/app/lib/search.ts +29 -0
  34. package/dist/assets/hydrogen/starter/app/lib/session.ts +72 -0
  35. package/dist/assets/hydrogen/starter/app/lib/variants.ts +46 -0
  36. package/dist/assets/hydrogen/starter/app/root.tsx +191 -0
  37. package/dist/assets/hydrogen/starter/app/routes/$.tsx +11 -0
  38. package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +118 -0
  39. package/dist/assets/hydrogen/starter/app/routes/[sitemap.xml].tsx +177 -0
  40. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +182 -0
  41. package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +8 -0
  42. package/dist/assets/hydrogen/starter/app/routes/account._index.tsx +5 -0
  43. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +513 -0
  44. package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +195 -0
  45. package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +107 -0
  46. package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +136 -0
  47. package/dist/assets/hydrogen/starter/app/routes/account.tsx +88 -0
  48. package/dist/assets/hydrogen/starter/app/routes/account_.authorize.tsx +5 -0
  49. package/dist/assets/hydrogen/starter/app/routes/account_.login.tsx +5 -0
  50. package/dist/assets/hydrogen/starter/app/routes/account_.logout.tsx +10 -0
  51. package/dist/assets/hydrogen/starter/app/routes/api.predictive-search.tsx +318 -0
  52. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +113 -0
  53. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +188 -0
  54. package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +119 -0
  55. package/dist/assets/hydrogen/starter/app/routes/cart.$lines.tsx +69 -0
  56. package/dist/assets/hydrogen/starter/app/routes/cart.tsx +102 -0
  57. package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +225 -0
  58. package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +146 -0
  59. package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +185 -0
  60. package/dist/assets/hydrogen/starter/app/routes/discount.$code.tsx +47 -0
  61. package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +84 -0
  62. package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +93 -0
  63. package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +63 -0
  64. package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +299 -0
  65. package/dist/assets/hydrogen/starter/app/routes/search.tsx +177 -0
  66. package/dist/assets/hydrogen/starter/app/styles/app.css +486 -0
  67. package/dist/assets/hydrogen/starter/app/styles/reset.css +129 -0
  68. package/dist/assets/hydrogen/starter/customer-accountapi.generated.d.ts +509 -0
  69. package/dist/assets/hydrogen/starter/env.d.ts +54 -0
  70. package/dist/assets/hydrogen/starter/package.json +50 -0
  71. package/dist/assets/hydrogen/starter/public/.gitkeep +0 -0
  72. package/dist/assets/hydrogen/starter/server.ts +119 -0
  73. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +1211 -0
  74. package/dist/assets/hydrogen/starter/tsconfig.json +23 -0
  75. package/dist/assets/hydrogen/starter/vite.config.ts +41 -0
  76. package/dist/assets/hydrogen/tailwind/package.json +8 -0
  77. package/dist/assets/hydrogen/tailwind/tailwind.css +6 -0
  78. package/dist/assets/hydrogen/vanilla-extract/package.json +8 -0
  79. package/dist/assets/hydrogen/virtual-routes/assets/debug-network.css +592 -0
  80. package/dist/assets/hydrogen/virtual-routes/assets/favicon-dark.svg +20 -0
  81. package/dist/assets/hydrogen/virtual-routes/assets/favicon.svg +28 -0
  82. package/dist/assets/hydrogen/virtual-routes/assets/inter-variable-font.woff2 +0 -0
  83. package/dist/assets/hydrogen/virtual-routes/assets/jetbrainsmono-variable-font.woff2 +0 -0
  84. package/dist/assets/hydrogen/virtual-routes/assets/styles.css +238 -0
  85. package/dist/assets/hydrogen/virtual-routes/components/FlameChartWrapper.jsx +123 -0
  86. package/dist/assets/hydrogen/virtual-routes/components/HydrogenLogoBaseBW.jsx +32 -0
  87. package/dist/assets/hydrogen/virtual-routes/components/HydrogenLogoBaseColor.jsx +47 -0
  88. package/dist/assets/hydrogen/virtual-routes/components/IconBanner.jsx +292 -0
  89. package/dist/assets/hydrogen/virtual-routes/components/IconClose.jsx +38 -0
  90. package/dist/assets/hydrogen/virtual-routes/components/IconDiscard.jsx +44 -0
  91. package/dist/assets/hydrogen/virtual-routes/components/IconError.jsx +61 -0
  92. package/dist/assets/hydrogen/virtual-routes/components/IconGithub.jsx +23 -0
  93. package/dist/assets/hydrogen/virtual-routes/components/IconTwitter.jsx +21 -0
  94. package/dist/assets/hydrogen/virtual-routes/components/PageLayout.jsx +7 -0
  95. package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +178 -0
  96. package/dist/assets/hydrogen/virtual-routes/components/RequestTable.jsx +91 -0
  97. package/dist/assets/hydrogen/virtual-routes/components/RequestWaterfall.jsx +151 -0
  98. package/dist/assets/hydrogen/virtual-routes/lib/useDebugNetworkServer.jsx +178 -0
  99. package/dist/assets/hydrogen/virtual-routes/routes/graphiql.jsx +5 -0
  100. package/dist/assets/hydrogen/virtual-routes/routes/index.jsx +265 -0
  101. package/dist/assets/hydrogen/virtual-routes/routes/subrequest-profiler.jsx +243 -0
  102. package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +64 -0
  103. package/dist/assets/hydrogen/vite/package.json +14 -0
  104. package/dist/assets/hydrogen/vite/vite.config.js +41 -0
  105. package/dist/chokidar-2CKIHN27.js +12 -0
  106. package/dist/chunk-EO6F7WJJ.js +2 -0
  107. package/dist/chunk-FB327AH7.js +5 -0
  108. package/dist/chunk-FJPX4XUR.js +2 -0
  109. package/dist/chunk-JKOXGRAA.js +10 -0
  110. package/dist/chunk-LNQWGFTB.js +45 -0
  111. package/dist/chunk-M6JXYI3V.js +23 -0
  112. package/dist/chunk-MNT4XW23.js +2 -0
  113. package/dist/chunk-N7HFZHSO.js +1145 -0
  114. package/dist/chunk-PMDMUCNY.js +2 -0
  115. package/dist/chunk-QGLB6FFL.js +3 -0
  116. package/dist/chunk-VMIOG46Y.js +2 -0
  117. package/dist/create-app.js +1867 -34
  118. package/dist/del-CZGKV5SQ.js +11 -0
  119. package/dist/devtools-ZCRGQE64.js +8 -0
  120. package/dist/error-handler-GEQXZJ25.js +2 -0
  121. package/dist/lib-NJYCLW6W.js +22 -0
  122. package/dist/morph-ZJCCGFNC.js +30499 -0
  123. package/dist/multipart-parser-6HGDQWV7.js +3 -0
  124. package/dist/open-OD6DRFEG.js +2 -0
  125. package/dist/out-7KAQXZLP.js +2 -0
  126. package/dist/yoga.wasm +0 -0
  127. package/package.json +7 -3
@@ -0,0 +1,243 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from "react";
3
+ import { Script } from "@shopify/hydrogen";
4
+ import { RequestWaterfall } from "../components/RequestWaterfall.jsx";
5
+ import { RequestTable } from "../components/RequestTable.jsx";
6
+ import { Link } from "@remix-run/react";
7
+ import favicon from "../assets/favicon.svg";
8
+ import faviconDark from "../assets/favicon-dark.svg";
9
+ import { useDebugNetworkServer } from "../lib/useDebugNetworkServer.jsx";
10
+ import { RequestDetails } from "../components/RequestDetails.jsx";
11
+ import { IconClose } from "../components/IconClose.jsx";
12
+ import { IconDiscard } from "../components/IconDiscard.jsx";
13
+ import styles from "../assets/debug-network.css?url";
14
+ const links = () => {
15
+ return [
16
+ {
17
+ rel: "icon",
18
+ type: "image/svg+xml",
19
+ href: favicon
20
+ },
21
+ {
22
+ rel: "stylesheet",
23
+ href: styles
24
+ }
25
+ ];
26
+ };
27
+ const WATERFALL_CONFIG = {
28
+ colors: {
29
+ server: "#2ED389",
30
+ streaming: "#33CCFF",
31
+ subRequest: "#FFCC00"
32
+ }
33
+ };
34
+ function DebugNetwork() {
35
+ const {
36
+ serverEvents,
37
+ clear,
38
+ timestamp,
39
+ setHidePutRequests,
40
+ setPreserveLog,
41
+ setHideNotification
42
+ } = useDebugNetworkServer();
43
+ const isEmptyState = serverEvents.mainRequests.length === 0;
44
+ return /* @__PURE__ */ jsxs(
45
+ "div",
46
+ {
47
+ id: "server-network-timing",
48
+ className: `${serverEvents.hideNotification ? "" : "withNotification"}`,
49
+ children: [
50
+ /* @__PURE__ */ jsx(
51
+ Script,
52
+ {
53
+ src: "https://unpkg.com/flame-chart-js@2.3.2/dist/index.min.js",
54
+ suppressHydrationWarning: true
55
+ }
56
+ ),
57
+ /* @__PURE__ */ jsx(
58
+ NotificationBanner,
59
+ {
60
+ hideNotification: serverEvents.hideNotification,
61
+ setHideNotification
62
+ }
63
+ ),
64
+ /* @__PURE__ */ jsx(DebugHeader, {}),
65
+ /* @__PURE__ */ jsxs("div", { id: "main", className: `${isEmptyState ? " empty" : ""}`, children: [
66
+ /* @__PURE__ */ jsx(
67
+ OptionsAndLegend,
68
+ {
69
+ serverEvents,
70
+ clearCallback: clear,
71
+ setHidePutRequests,
72
+ setPreserveLog
73
+ }
74
+ ),
75
+ /* @__PURE__ */ jsx("div", { id: "request-waterfall", className: "pad", children: isEmptyState ? /* @__PURE__ */ jsx(EmptyState, {}) : /* @__PURE__ */ jsx("div", { className: "request-waterfall-chart", children: /* @__PURE__ */ jsx(
76
+ RequestWaterfall,
77
+ {
78
+ serverEvents,
79
+ config: WATERFALL_CONFIG
80
+ },
81
+ timestamp
82
+ ) }) }),
83
+ /* @__PURE__ */ jsx(RequestInfo, { serverEvents })
84
+ ] })
85
+ ]
86
+ }
87
+ );
88
+ }
89
+ function NotificationBanner({
90
+ hideNotification,
91
+ setHideNotification
92
+ }) {
93
+ if (hideNotification) {
94
+ return null;
95
+ }
96
+ return /* @__PURE__ */ jsxs("div", { className: "notification", children: [
97
+ /* @__PURE__ */ jsx("div", { id: "close-notification", children: /* @__PURE__ */ jsx(
98
+ "button",
99
+ {
100
+ className: "plain icon",
101
+ onClick: () => {
102
+ setHideNotification(true);
103
+ },
104
+ children: /* @__PURE__ */ jsx(IconClose, {})
105
+ }
106
+ ) }),
107
+ /* @__PURE__ */ jsx("p", { children: "Note: You may need to turn on 'Disable Cache' for your navigating window." })
108
+ ] });
109
+ }
110
+ function EmptyState() {
111
+ return /* @__PURE__ */ jsxs("div", { id: "empty-view", children: [
112
+ /* @__PURE__ */ jsx("p", { className: "text-large bold", children: "Navigate to your app" }),
113
+ /* @__PURE__ */ jsx("p", { className: "text-normal", children: "Open your localhost to initiate subrequest profiler" }),
114
+ /* @__PURE__ */ jsx(Link, { to: "/", target: "_blank", className: "link-margin-top", children: /* @__PURE__ */ jsx("button", { className: "primary", children: "Open app" }) })
115
+ ] });
116
+ }
117
+ function DebugHeader() {
118
+ return /* @__PURE__ */ jsx("header", { className: "justify-between text-large", children: /* @__PURE__ */ jsxs("div", { className: "flex-row", children: [
119
+ /* @__PURE__ */ jsx("img", { className: "logo", src: faviconDark, alt: "Hydrogen logo" }),
120
+ /* @__PURE__ */ jsx("h1", { children: "Subrequest Profiler" }),
121
+ /* @__PURE__ */ jsx("span", { className: "pill", children: "Development" })
122
+ ] }) });
123
+ }
124
+ function OptionsAndLegend({
125
+ serverEvents,
126
+ clearCallback,
127
+ setHidePutRequests,
128
+ setPreserveLog
129
+ }) {
130
+ return /* @__PURE__ */ jsxs("div", { id: "options-and-legend", className: "justify-between pad", children: [
131
+ /* @__PURE__ */ jsxs("div", { className: "flex-row text-large", children: [
132
+ /* @__PURE__ */ jsxs("button", { id: "buttonClear", onClick: () => clearCallback(), children: [
133
+ /* @__PURE__ */ jsx(IconDiscard, {}),
134
+ /* @__PURE__ */ jsx("span", { children: "Clear" })
135
+ ] }),
136
+ /* @__PURE__ */ jsxs("div", { className: "form-control", children: [
137
+ /* @__PURE__ */ jsx(
138
+ "input",
139
+ {
140
+ id: "hidePutRequests",
141
+ type: "checkbox",
142
+ checked: serverEvents.hidePutRequests,
143
+ onChange: (event) => setHidePutRequests(event.target.checked)
144
+ }
145
+ ),
146
+ /* @__PURE__ */ jsx("label", { htmlFor: "hidePutRequests", children: "Hide cache update requests (PUT)" })
147
+ ] }),
148
+ /* @__PURE__ */ jsxs("div", { className: "form-control", children: [
149
+ /* @__PURE__ */ jsx(
150
+ "input",
151
+ {
152
+ id: "preserveLog",
153
+ type: "checkbox",
154
+ checked: serverEvents.preserveLog,
155
+ onChange: (event) => setPreserveLog(event.target.checked)
156
+ }
157
+ ),
158
+ /* @__PURE__ */ jsx("label", { htmlFor: "preserveLog", children: "Preserve Log" })
159
+ ] })
160
+ ] }),
161
+ /* @__PURE__ */ jsxs("div", { className: "flex-row text-normal gap-small", children: [
162
+ /* @__PURE__ */ jsxs("div", { className: "legend flex-row", children: [
163
+ /* @__PURE__ */ jsx("p", { className: "bold-1", children: "Main Request" }),
164
+ /* @__PURE__ */ jsxs("p", { className: "flex-row gap-small", children: [
165
+ /* @__PURE__ */ jsx(
166
+ "span",
167
+ {
168
+ className: "swatch",
169
+ style: {
170
+ backgroundColor: WATERFALL_CONFIG.colors.server
171
+ }
172
+ }
173
+ ),
174
+ "Time on server"
175
+ ] }),
176
+ /* @__PURE__ */ jsxs("p", { className: "flex-row gap-small", children: [
177
+ /* @__PURE__ */ jsx(
178
+ "span",
179
+ {
180
+ className: "swatch",
181
+ style: {
182
+ backgroundColor: WATERFALL_CONFIG.colors.streaming
183
+ }
184
+ }
185
+ ),
186
+ "Time to stream to client"
187
+ ] })
188
+ ] }),
189
+ /* @__PURE__ */ jsx("div", { className: "legend flex-row", children: /* @__PURE__ */ jsxs("p", { className: "flex-row gap-small", children: [
190
+ /* @__PURE__ */ jsx(
191
+ "span",
192
+ {
193
+ className: "swatch",
194
+ style: {
195
+ backgroundColor: WATERFALL_CONFIG.colors.subRequest
196
+ }
197
+ }
198
+ ),
199
+ "Sub request"
200
+ ] }) })
201
+ ] })
202
+ ] });
203
+ }
204
+ function RequestInfo({ serverEvents }) {
205
+ const [activeEventId, setActiveEventId] = useState();
206
+ useEffect(() => {
207
+ window.setActiveEventId = setActiveEventId;
208
+ }, []);
209
+ useEffect(() => {
210
+ if (!activeEventId) {
211
+ setActiveEventId(void 0);
212
+ }
213
+ }, [activeEventId]);
214
+ return /* @__PURE__ */ jsxs("div", { id: "request-info", children: [
215
+ /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx(
216
+ RequestTable,
217
+ {
218
+ serverEvents,
219
+ activeEventId,
220
+ setActiveEventId
221
+ }
222
+ ) }),
223
+ /* @__PURE__ */ jsx(
224
+ "div",
225
+ {
226
+ id: "request-details-panel",
227
+ className: `${activeEventId ? "active" : ""}`,
228
+ children: /* @__PURE__ */ jsx(
229
+ RequestDetails,
230
+ {
231
+ serverEvents,
232
+ activeEventId,
233
+ setActiveEventId
234
+ }
235
+ )
236
+ }
237
+ )
238
+ ] });
239
+ }
240
+ export {
241
+ DebugNetwork as default,
242
+ links
243
+ };
@@ -0,0 +1,64 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import {
3
+ Links,
4
+ Meta,
5
+ Scripts,
6
+ ScrollRestoration,
7
+ isRouteErrorResponse,
8
+ useRouteError
9
+ } from "@remix-run/react";
10
+ import favicon from "./assets/favicon.svg";
11
+ import { PageLayout } from "./components/PageLayout.jsx";
12
+ import { useNonce } from "@shopify/hydrogen";
13
+ import styles from "./assets/styles.css?url";
14
+ const links = () => {
15
+ return [
16
+ { rel: "stylesheet", href: styles },
17
+ { rel: "icon", type: "image/svg+xml", href: favicon }
18
+ ];
19
+ };
20
+ function Layout({ children }) {
21
+ const nonce = useNonce();
22
+ return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
23
+ /* @__PURE__ */ jsxs("head", { children: [
24
+ /* @__PURE__ */ jsx("meta", { charSet: "utf-8" }),
25
+ /* @__PURE__ */ jsx("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }),
26
+ /* @__PURE__ */ jsx("title", { children: "Hydrogen" }),
27
+ /* @__PURE__ */ jsx(
28
+ "meta",
29
+ {
30
+ name: "description",
31
+ content: "A custom storefront powered by Hydrogen"
32
+ }
33
+ ),
34
+ /* @__PURE__ */ jsx(Meta, {}),
35
+ /* @__PURE__ */ jsx(Links, {})
36
+ ] }),
37
+ /* @__PURE__ */ jsxs("body", { children: [
38
+ /* @__PURE__ */ jsx(PageLayout, { children }),
39
+ /* @__PURE__ */ jsx(ScrollRestoration, { nonce }),
40
+ /* @__PURE__ */ jsx(Scripts, { nonce })
41
+ ] })
42
+ ] });
43
+ }
44
+ function ErrorBoundary() {
45
+ const error = useRouteError();
46
+ let errorMessage = "Unknown error";
47
+ let errorStatus = 500;
48
+ if (isRouteErrorResponse(error)) {
49
+ errorMessage = error?.data?.message ?? error.data;
50
+ errorStatus = error.status;
51
+ } else if (error instanceof Error) {
52
+ errorMessage = error.message;
53
+ }
54
+ return /* @__PURE__ */ jsxs("div", { className: "route-error", children: [
55
+ /* @__PURE__ */ jsx("h1", { children: "Please report this error" }),
56
+ /* @__PURE__ */ jsx("h2", { children: errorStatus }),
57
+ errorMessage && /* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("pre", { children: errorMessage }) })
58
+ ] });
59
+ }
60
+ export {
61
+ ErrorBoundary,
62
+ Layout,
63
+ links
64
+ };
@@ -0,0 +1,14 @@
1
+ {
2
+ "type": "module",
3
+ "scripts": {
4
+ "build": "shopify hydrogen build --codegen",
5
+ "dev": "shopify hydrogen dev --codegen"
6
+ },
7
+ "dependencies": {
8
+ "isbot": "^3.8.0"
9
+ },
10
+ "devDependencies": {
11
+ "vite": "^5.1.0",
12
+ "vite-tsconfig-paths": "^4.3.1"
13
+ }
14
+ }
@@ -0,0 +1,41 @@
1
+ import {defineConfig} from 'vite';
2
+ import {hydrogen} from '@shopify/hydrogen/vite';
3
+ import {oxygen} from '@shopify/mini-oxygen/vite';
4
+ import {vitePlugin as remix} from '@remix-run/dev';
5
+ import tsconfigPaths from 'vite-tsconfig-paths';
6
+
7
+ export default defineConfig({
8
+ plugins: [
9
+ hydrogen(),
10
+ oxygen(),
11
+ remix({
12
+ presets: [hydrogen.preset()],
13
+ future: {
14
+ v3_fetcherPersist: true,
15
+ v3_relativeSplatPath: true,
16
+ v3_throwAbortReason: true,
17
+ },
18
+ }),
19
+ tsconfigPaths(),
20
+ ],
21
+ build: {
22
+ // Allow a strict Content-Security-Policy
23
+ // withtout inlining assets as base64:
24
+ assetsInlineLimit: 0,
25
+ },
26
+ ssr: {
27
+ optimizeDeps: {
28
+ /**
29
+ * Include dependencies here if they throw CJS<>ESM errors.
30
+ * For example, for the following error:
31
+ *
32
+ * > ReferenceError: module is not defined
33
+ * > at /Users/.../node_modules/example-dep/index.js:1:1
34
+ *
35
+ * Include 'example-dep' in the array below.
36
+ * @see https://vitejs.dev/config/dep-optimization-options
37
+ */
38
+ include: [],
39
+ },
40
+ },
41
+ });
@@ -0,0 +1,12 @@
1
+ import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
2
+ import{a as pe,b as ge,c as ye,e as vt}from"./chunk-LNQWGFTB.js";import{a as w,c as S,i as E}from"./chunk-MNT4XW23.js";var Lt=S((ai,xt)=>{"use strict";E();var A=w("fs"),{Readable:be}=w("stream"),v=w("path"),{promisify:V}=w("util"),$=vt(),Se=V(A.readdir),Re=V(A.stat),At=V(A.lstat),Te=V(A.realpath),Pe="!",kt="READDIRP_RECURSIVE_ERROR",De=new Set(["ENOENT","EPERM","EACCES","ELOOP",kt]),X="files",Wt="directories",C="files_directories",L="all",It=[X,Wt,C,L],Fe=a=>De.has(a.code),[Nt,ve]=process.versions.node.split(".").slice(0,2).map(a=>Number.parseInt(a,10)),Ae=process.platform==="win32"&&(Nt>10||Nt===10&&ve>=5),Ot=a=>{if(a!==void 0){if(typeof a=="function")return a;if(typeof a=="string"){let t=$(a.trim());return e=>t(e.basename)}if(Array.isArray(a)){let t=[],e=[];for(let s of a){let i=s.trim();i.charAt(0)===Pe?e.push($(i.slice(1))):t.push($(i))}return e.length>0?t.length>0?s=>t.some(i=>i(s.basename))&&!e.some(i=>i(s.basename)):s=>!e.some(i=>i(s.basename)):s=>t.some(i=>i(s.basename))}}},M=class a extends be{static get defaultOptions(){return{root:".",fileFilter:t=>!0,directoryFilter:t=>!0,type:X,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(t={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:t.highWaterMark||4096});let e={...a.defaultOptions,...t},{root:s,type:i}=e;this._fileFilter=Ot(e.fileFilter),this._directoryFilter=Ot(e.directoryFilter);let o=e.lstat?At:Re;Ae?this._stat=n=>o(n,{bigint:!0}):this._stat=o,this._maxDepth=e.depth,this._wantsDir=[Wt,C,L].includes(i),this._wantsFile=[X,C,L].includes(i),this._wantsEverything=i===L,this._root=v.resolve(s),this._isDirent="Dirent"in A&&!e.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(s,1)],this.reading=!1,this.parent=void 0}async _read(t){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&t>0;){let{path:e,depth:s,files:i=[]}=this.parent||{};if(i.length>0){let o=i.splice(0,t).map(n=>this._formatEntry(n,e));for(let n of await Promise.all(o)){if(this.destroyed)return;let r=await this._getEntryType(n);r==="directory"&&this._directoryFilter(n)?(s<=this._maxDepth&&this.parents.push(this._exploreDir(n.fullPath,s+1)),this._wantsDir&&(this.push(n),t--)):(r==="file"||this._includeAsFile(n))&&this._fileFilter(n)&&this._wantsFile&&(this.push(n),t--)}}else{let o=this.parents.pop();if(!o){this.push(null);break}if(this.parent=await o,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(t,e){let s;try{s=await Se(t,this._rdOptions)}catch(i){this._onError(i)}return{files:s,depth:e,path:t}}async _formatEntry(t,e){let s;try{let i=this._isDirent?t.name:t,o=v.resolve(v.join(e,i));s={path:v.relative(this._root,o),fullPath:o,basename:i},s[this._statsProp]=this._isDirent?t:await this._stat(o)}catch(i){this._onError(i)}return s}_onError(t){Fe(t)&&!this.destroyed?this.emit("warn",t):this.destroy(t)}async _getEntryType(t){let e=t&&t[this._statsProp];if(e){if(e.isFile())return"file";if(e.isDirectory())return"directory";if(e&&e.isSymbolicLink()){let s=t.fullPath;try{let i=await Te(s),o=await At(i);if(o.isFile())return"file";if(o.isDirectory()){let n=i.length;if(s.startsWith(i)&&s.substr(n,1)===v.sep){let r=new Error(`Circular symlink detected: "${s}" points to "${i}"`);return r.code=kt,this._onError(r)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(t){let e=t&&t[this._statsProp];return e&&this._wantsEverything&&!e.isDirectory()}},P=(a,t={})=>{let e=t.entryType||t.type;if(e==="both"&&(e=C),e&&(t.type=e),a){if(typeof a!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(e&&!It.includes(e))throw new Error(`readdirp: Invalid type passed. Use one of ${It.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return t.root=a,new M(t)},Ie=(a,t={})=>new Promise((e,s)=>{let i=[];P(a,t).on("data",o=>i.push(o)).on("end",()=>e(i)).on("error",o=>s(o))});P.promise=Ie;P.ReaddirpStream=M;P.default=P;xt.exports=P});var Q=S((hi,Ct)=>{"use strict";E();Ct.exports=function(a,t){if(typeof a!="string")throw new TypeError("expected path to be a string");if(a==="\\"||a==="/")return"/";var e=a.length;if(e<=1)return a;var s="";if(e>4&&a[3]==="\\"){var i=a[2];(i==="?"||i===".")&&a.slice(0,2)==="\\\\"&&(a=a.slice(2),s="//")}var o=a.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),s+o.join("/")}});var zt=S((Gt,Yt)=>{"use strict";E();Object.defineProperty(Gt,"__esModule",{value:!0});var Ht=vt(),Ne=Q(),Mt="!",Oe={returnIndex:!1},ke=a=>Array.isArray(a)?a:[a],We=(a,t)=>{if(typeof a=="function")return a;if(typeof a=="string"){let e=Ht(a,t);return s=>a===s||e(s)}return a instanceof RegExp?e=>a.test(e):e=>!1},Vt=(a,t,e,s)=>{let i=Array.isArray(e),o=i?e[0]:e;if(!i&&typeof o!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(o));let n=Ne(o);for(let c=0;c<t.length;c++){let l=t[c];if(l(n))return s?-1:!1}let r=i&&[n].concat(e.slice(1));for(let c=0;c<a.length;c++){let l=a[c];if(i?l(...r):l(n))return s?c:!0}return s?-1:!1},J=(a,t,e=Oe)=>{if(a==null)throw new TypeError("anymatch: specify first argument");let s=typeof e=="boolean"?{returnIndex:e}:e,i=s.returnIndex||!1,o=ke(a),n=o.filter(c=>typeof c=="string"&&c.charAt(0)===Mt).map(c=>c.slice(1)).map(c=>Ht(c,s)),r=o.filter(c=>typeof c!="string"||typeof c=="string"&&c.charAt(0)!==Mt).map(c=>We(c,s));return t==null?(c,l=!1)=>Vt(r,n,c,typeof l=="boolean"?l:!1):Vt(r,n,t,i)};J.default=J;Yt.exports=J});var jt=S((fi,xe)=>{xe.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var Ut=S((ui,qt)=>{"use strict";E();qt.exports=jt()});var Kt=S((mi,Bt)=>{"use strict";E();var Le=w("path"),Ce=Ut(),Me=new Set(Ce);Bt.exports=a=>Me.has(Le.extname(a).slice(1).toLowerCase())});var H=S(u=>{"use strict";E();var{sep:Ve}=w("path"),{platform:Z}=process,He=w("os");u.EV_ALL="all";u.EV_READY="ready";u.EV_ADD="add";u.EV_CHANGE="change";u.EV_ADD_DIR="addDir";u.EV_UNLINK="unlink";u.EV_UNLINK_DIR="unlinkDir";u.EV_RAW="raw";u.EV_ERROR="error";u.STR_DATA="data";u.STR_END="end";u.STR_CLOSE="close";u.FSEVENT_CREATED="created";u.FSEVENT_MODIFIED="modified";u.FSEVENT_DELETED="deleted";u.FSEVENT_MOVED="moved";u.FSEVENT_CLONED="cloned";u.FSEVENT_UNKNOWN="unknown";u.FSEVENT_TYPE_FILE="file";u.FSEVENT_TYPE_DIRECTORY="directory";u.FSEVENT_TYPE_SYMLINK="symlink";u.KEY_LISTENERS="listeners";u.KEY_ERR="errHandlers";u.KEY_RAW="rawEmitters";u.HANDLER_KEYS=[u.KEY_LISTENERS,u.KEY_ERR,u.KEY_RAW];u.DOT_SLASH=`.${Ve}`;u.BACK_SLASH_RE=/\\/g;u.DOUBLE_SLASH_RE=/\/\//;u.SLASH_OR_BACK_SLASH_RE=/[/\\]/;u.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;u.REPLACER_RE=/^\.[/\\]/;u.SLASH="/";u.SLASH_SLASH="//";u.BRACE_START="{";u.BANG="!";u.ONE_DOT=".";u.TWO_DOTS="..";u.STAR="*";u.GLOBSTAR="**";u.ROOT_GLOBSTAR="/**/*";u.SLASH_GLOBSTAR="/**";u.DIR_SUFFIX="Dir";u.ANYMATCH_OPTS={dot:!0};u.STRING_TYPE="string";u.FUNCTION_TYPE="function";u.EMPTY_STR="";u.EMPTY_FN=()=>{};u.IDENTITY_FN=a=>a;u.isWindows=Z==="win32";u.isMacos=Z==="darwin";u.isLinux=Z==="linux";u.isIBMi=He.type()==="OS400"});var te=S((gi,Zt)=>{"use strict";E();var R=w("fs"),p=w("path"),{promisify:k}=w("util"),Ge=Kt(),{isWindows:Ye,isLinux:ze,EMPTY_FN:je,EMPTY_STR:qe,KEY_LISTENERS:D,KEY_ERR:tt,KEY_RAW:I,HANDLER_KEYS:Ue,EV_CHANGE:Y,EV_ADD:G,EV_ADD_DIR:Be,EV_ERROR:Xt,STR_DATA:Ke,STR_END:$e,BRACE_START:Xe,STAR:Qe}=H(),Je="watch",Ze=k(R.open),Qt=k(R.stat),ts=k(R.lstat),es=k(R.close),et=k(R.realpath),ss={lstat:ts,stat:Qt},it=(a,t)=>{a instanceof Set?a.forEach(t):t(a)},N=(a,t,e)=>{let s=a[t];s instanceof Set||(a[t]=s=new Set([s])),s.add(e)},is=a=>t=>{let e=a[t];e instanceof Set?e.clear():delete a[t]},O=(a,t,e)=>{let s=a[t];s instanceof Set?s.delete(e):s===e&&delete a[t]},Jt=a=>a instanceof Set?a.size===0:!a,z=new Map;function $t(a,t,e,s,i){let o=(n,r)=>{e(a),i(n,r,{watchedPath:a}),r&&a!==r&&j(p.resolve(a,r),D,p.join(a,r))};try{return R.watch(a,t,o)}catch(n){s(n)}}var j=(a,t,e,s,i)=>{let o=z.get(a);o&&it(o[t],n=>{n(e,s,i)})},rs=(a,t,e,s)=>{let{listener:i,errHandler:o,rawEmitter:n}=s,r=z.get(t),c;if(!e.persistent)return c=$t(a,e,i,o,n),c.close.bind(c);if(r)N(r,D,i),N(r,tt,o),N(r,I,n);else{if(c=$t(a,e,j.bind(null,t,D),o,j.bind(null,t,I)),!c)return;c.on(Xt,async l=>{let d=j.bind(null,t,tt);if(r.watcherUnusable=!0,Ye&&l.code==="EPERM")try{let h=await Ze(a,"r");await es(h),d(l)}catch{}else d(l)}),r={listeners:i,errHandlers:o,rawEmitters:n,watcher:c},z.set(t,r)}return()=>{O(r,D,i),O(r,tt,o),O(r,I,n),Jt(r.listeners)&&(r.watcher.close(),z.delete(t),Ue.forEach(is(r)),r.watcher=void 0,Object.freeze(r))}},st=new Map,ns=(a,t,e,s)=>{let{listener:i,rawEmitter:o}=s,n=st.get(t),r=new Set,c=new Set,l=n&&n.options;return l&&(l.persistent<e.persistent||l.interval>e.interval)&&(r=n.listeners,c=n.rawEmitters,R.unwatchFile(t),n=void 0),n?(N(n,D,i),N(n,I,o)):(n={listeners:i,rawEmitters:o,options:e,watcher:R.watchFile(t,e,(d,h)=>{it(n.rawEmitters,_=>{_(Y,t,{curr:d,prev:h})});let f=d.mtimeMs;(d.size!==h.size||f>h.mtimeMs||f===0)&&it(n.listeners,_=>_(a,d))})},st.set(t,n)),()=>{O(n,D,i),O(n,I,o),Jt(n.listeners)&&(st.delete(t),R.unwatchFile(t),n.options=n.watcher=void 0,Object.freeze(n))}},rt=class{constructor(t){this.fsw=t,this._boundHandleError=e=>t._handleError(e)}_watchWithNodeFs(t,e){let s=this.fsw.options,i=p.dirname(t),o=p.basename(t);this.fsw._getWatchedDir(i).add(o);let r=p.resolve(t),c={persistent:s.persistent};e||(e=je);let l;return s.usePolling?(c.interval=s.enableBinaryInterval&&Ge(o)?s.binaryInterval:s.interval,l=ns(t,r,c,{listener:e,rawEmitter:this.fsw._emitRaw})):l=rs(t,r,c,{listener:e,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(t,e,s){if(this.fsw.closed)return;let i=p.dirname(t),o=p.basename(t),n=this.fsw._getWatchedDir(i),r=e;if(n.has(o))return;let c=async(d,h)=>{if(this.fsw._throttle(Je,t,5)){if(!h||h.mtimeMs===0)try{let f=await Qt(t);if(this.fsw.closed)return;let _=f.atimeMs,y=f.mtimeMs;(!_||_<=y||y!==r.mtimeMs)&&this.fsw._emit(Y,t,f),ze&&r.ino!==f.ino?(this.fsw._closeFile(d),r=f,this.fsw._addPathCloser(d,this._watchWithNodeFs(t,c))):r=f}catch{this.fsw._remove(i,o)}else if(n.has(o)){let f=h.atimeMs,_=h.mtimeMs;(!f||f<=_||_!==r.mtimeMs)&&this.fsw._emit(Y,t,h),r=h}}},l=this._watchWithNodeFs(t,c);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(G,t,0))return;this.fsw._emit(G,t,e)}return l}async _handleSymlink(t,e,s,i){if(this.fsw.closed)return;let o=t.fullPath,n=this.fsw._getWatchedDir(e);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let r;try{r=await et(s)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(n.has(i)?this.fsw._symlinkPaths.get(o)!==r&&(this.fsw._symlinkPaths.set(o,r),this.fsw._emit(Y,s,t.stats)):(n.add(i),this.fsw._symlinkPaths.set(o,r),this.fsw._emit(G,s,t.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(o))return!0;this.fsw._symlinkPaths.set(o,!0)}_handleRead(t,e,s,i,o,n,r){if(t=p.join(t,qe),!s.hasGlob&&(r=this.fsw._throttle("readdir",t,1e3),!r))return;let c=this.fsw._getWatchedDir(s.path),l=new Set,d=this.fsw._readdirp(t,{fileFilter:h=>s.filterPath(h),directoryFilter:h=>s.filterDir(h),depth:0}).on(Ke,async h=>{if(this.fsw.closed){d=void 0;return}let f=h.path,_=p.join(t,f);if(l.add(f),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,t,_,f))){if(this.fsw.closed){d=void 0;return}(f===i||!i&&!c.has(f))&&(this.fsw._incrReadyCount(),_=p.join(o,p.relative(o,_)),this._addToNodeFs(_,e,s,n+1))}}).on(Xt,this._boundHandleError);return new Promise(h=>d.once($e,()=>{if(this.fsw.closed){d=void 0;return}let f=r?r.clear():!1;h(),c.getChildren().filter(_=>_!==t&&!l.has(_)&&(!s.hasGlob||s.filterPath({fullPath:p.resolve(t,_)}))).forEach(_=>{this.fsw._remove(t,_)}),d=void 0,f&&this._handleRead(t,!1,s,i,o,n,r)}))}async _handleDir(t,e,s,i,o,n,r){let c=this.fsw._getWatchedDir(p.dirname(t)),l=c.has(p.basename(t));!(s&&this.fsw.options.ignoreInitial)&&!o&&!l&&(!n.hasGlob||n.globFilter(t))&&this.fsw._emit(Be,t,e),c.add(p.basename(t)),this.fsw._getWatchedDir(t);let d,h,f=this.fsw.options.depth;if((f==null||i<=f)&&!this.fsw._symlinkPaths.has(r)){if(!o&&(await this._handleRead(t,s,n,o,t,i,d),this.fsw.closed))return;h=this._watchWithNodeFs(t,(_,y)=>{y&&y.mtimeMs===0||this._handleRead(_,!1,n,o,t,i,d)})}return h}async _addToNodeFs(t,e,s,i,o){let n=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed)return n(),!1;let r=this.fsw._getWatchHelpers(t,i);!r.hasGlob&&s&&(r.hasGlob=s.hasGlob,r.globFilter=s.globFilter,r.filterPath=c=>s.filterPath(c),r.filterDir=c=>s.filterDir(c));try{let c=await ss[r.statMethod](r.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(r.watchPath,c))return n(),!1;let l=this.fsw.options.followSymlinks&&!t.includes(Qe)&&!t.includes(Xe),d;if(c.isDirectory()){let h=p.resolve(t),f=l?await et(t):t;if(this.fsw.closed||(d=await this._handleDir(r.watchPath,c,e,i,o,r,f),this.fsw.closed))return;h!==f&&f!==void 0&&this.fsw._symlinkPaths.set(h,f)}else if(c.isSymbolicLink()){let h=l?await et(t):t;if(this.fsw.closed)return;let f=p.dirname(r.watchPath);if(this.fsw._getWatchedDir(f).add(r.watchPath),this.fsw._emit(G,r.watchPath,c),d=await this._handleDir(f,c,e,i,t,r,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(p.resolve(t),h)}else d=this._handleFile(r.watchPath,c,e);return n(),this.fsw._addPathCloser(t,d),!1}catch(c){if(this.fsw._handleError(c))return n(),t}}};Zt.exports=rt});var ae=S((bi,ft)=>{"use strict";E();var lt=w("fs"),g=w("path"),{promisify:dt}=w("util"),F;try{F=w("fsevents")}catch(a){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(a)}if(F){let a=process.version.match(/v(\d+)\.(\d+)/);if(a&&a[1]&&a[2]){let t=Number.parseInt(a[1],10),e=Number.parseInt(a[2],10);t===8&&e<16&&(F=void 0)}}var{EV_ADD:nt,EV_CHANGE:os,EV_ADD_DIR:ee,EV_UNLINK:q,EV_ERROR:as,STR_DATA:cs,STR_END:hs,FSEVENT_CREATED:ls,FSEVENT_MODIFIED:ds,FSEVENT_DELETED:fs,FSEVENT_MOVED:us,FSEVENT_UNKNOWN:_s,FSEVENT_TYPE_FILE:ms,FSEVENT_TYPE_DIRECTORY:W,FSEVENT_TYPE_SYMLINK:oe,ROOT_GLOBSTAR:se,DIR_SUFFIX:ws,DOT_SLASH:ie,FUNCTION_TYPE:ot,EMPTY_FN:Es,IDENTITY_FN:ps}=H(),gs=a=>isNaN(a)?{}:{depth:a},ct=dt(lt.stat),ys=dt(lt.lstat),re=dt(lt.realpath),bs={stat:ct,lstat:ys},T=new Map,Ss=10,Rs=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ts=(a,t)=>({stop:F.watch(a,t)});function Ps(a,t,e,s){let i=g.extname(t)?g.dirname(t):t,o=g.dirname(i),n=T.get(i);Ds(o)&&(i=o);let r=g.resolve(a),c=r!==t,l=(h,f,_)=>{c&&(h=h.replace(t,r)),(h===r||!h.indexOf(r+g.sep))&&e(h,f,_)},d=!1;for(let h of T.keys())if(t.indexOf(g.resolve(h)+g.sep)===0){i=h,n=T.get(i),d=!0;break}return n||d?n.listeners.add(l):(n={listeners:new Set([l]),rawEmitter:s,watcher:Ts(i,(h,f)=>{if(!n.listeners.size)return;let _=F.getInfo(h,f);n.listeners.forEach(y=>{y(h,f,_)}),n.rawEmitter(_.event,h,_)})},T.set(i,n)),()=>{let h=n.listeners;if(h.delete(l),!h.size&&(T.delete(i),n.watcher))return n.watcher.stop().then(()=>{n.rawEmitter=n.watcher=void 0,Object.freeze(n)})}}var Ds=a=>{let t=0;for(let e of T.keys())if(e.indexOf(a)===0&&(t++,t>=Ss))return!0;return!1},Fs=()=>F&&T.size<128,at=(a,t)=>{let e=0;for(;!a.indexOf(t)&&(a=g.dirname(a))!==t;)e++;return e},ne=(a,t)=>a.type===W&&t.isDirectory()||a.type===oe&&t.isSymbolicLink()||a.type===ms&&t.isFile(),ht=class{constructor(t){this.fsw=t}checkIgnored(t,e){let s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(t,e))return s.add(t),e&&e.isDirectory()&&s.add(t+se),!0;s.delete(t),s.delete(t+se)}addOrChange(t,e,s,i,o,n,r,c){let l=o.has(n)?os:nt;this.handleEvent(l,t,e,s,i,o,n,r,c)}async checkExists(t,e,s,i,o,n,r,c){try{let l=await ct(t);if(this.fsw.closed)return;ne(r,l)?this.addOrChange(t,e,s,i,o,n,r,c):this.handleEvent(q,t,e,s,i,o,n,r,c)}catch(l){l.code==="EACCES"?this.addOrChange(t,e,s,i,o,n,r,c):this.handleEvent(q,t,e,s,i,o,n,r,c)}}handleEvent(t,e,s,i,o,n,r,c,l){if(!(this.fsw.closed||this.checkIgnored(e)))if(t===q){let d=c.type===W;(d||n.has(r))&&this.fsw._remove(o,r,d)}else{if(t===nt){if(c.type===W&&this.fsw._getWatchedDir(e),c.type===oe&&l.followSymlinks){let h=l.depth===void 0?void 0:at(s,i)+1;return this._addToFsEvents(e,!1,!0,h)}this.fsw._getWatchedDir(o).add(r)}let d=c.type===W?t+ws:t;this.fsw._emit(d,e),d===ee&&this._addToFsEvents(e,!1,!0)}}_watchWithFsEvents(t,e,s,i){if(this.fsw.closed||this.fsw._isIgnored(t))return;let o=this.fsw.options,r=Ps(t,e,async(c,l,d)=>{if(this.fsw.closed||o.depth!==void 0&&at(c,e)>o.depth)return;let h=s(g.join(t,g.relative(t,c)));if(i&&!i(h))return;let f=g.dirname(h),_=g.basename(h),y=this.fsw._getWatchedDir(d.type===W?h:f);if(Rs.has(l)||d.event===_s)if(typeof o.ignored===ot){let K;try{K=await ct(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,K))return;ne(d,K)?this.addOrChange(h,c,e,f,y,_,d,o):this.handleEvent(q,h,c,e,f,y,_,d,o)}else this.checkExists(h,c,e,f,y,_,d,o);else switch(d.event){case ls:case ds:return this.addOrChange(h,c,e,f,y,_,d,o);case fs:case us:return this.checkExists(h,c,e,f,y,_,d,o)}},this.fsw._emitRaw);return this.fsw._emitReady(),r}async _handleFsEventsSymlink(t,e,s,i){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(e))){this.fsw._symlinkPaths.set(e,!0),this.fsw._incrReadyCount();try{let o=await re(t);if(this.fsw.closed)return;if(this.fsw._isIgnored(o))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(o||t,n=>{let r=t;return o&&o!==ie?r=n.replace(o,t):n!==ie&&(r=g.join(t,n)),s(r)},!1,i)}catch(o){if(this.fsw._handleError(o))return this.fsw._emitReady()}}}emitAdd(t,e,s,i,o){let n=s(t),r=e.isDirectory(),c=this.fsw._getWatchedDir(g.dirname(n)),l=g.basename(n);r&&this.fsw._getWatchedDir(n),!c.has(l)&&(c.add(l),(!i.ignoreInitial||o===!0)&&this.fsw._emit(r?ee:nt,n,e))}initWatch(t,e,s,i){if(this.fsw.closed)return;let o=this._watchWithFsEvents(s.watchPath,g.resolve(t||s.watchPath),i,s.globFilter);this.fsw._addPathCloser(e,o)}async _addToFsEvents(t,e,s,i){if(this.fsw.closed)return;let o=this.fsw.options,n=typeof e===ot?e:ps,r=this.fsw._getWatchHelpers(t);try{let c=await bs[r.statMethod](r.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(r.watchPath,c))throw null;if(c.isDirectory()){if(r.globFilter||this.emitAdd(n(t),c,n,o,s),i&&i>o.depth)return;this.fsw._readdirp(r.watchPath,{fileFilter:l=>r.filterPath(l),directoryFilter:l=>r.filterDir(l),...gs(o.depth-(i||0))}).on(cs,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!r.filterPath(l))return;let d=g.join(r.watchPath,l.path),{fullPath:h}=l;if(r.followSymlinks&&l.stats.isSymbolicLink()){let f=o.depth===void 0?void 0:at(d,g.resolve(r.watchPath))+1;this._handleFsEventsSymlink(d,h,n,f)}else this.emitAdd(d,l.stats,n,o,s)}).on(as,Es).on(hs,()=>{this.fsw._emitReady()})}else this.emitAdd(r.watchPath,c,n,o,s),this.fsw._emitReady()}catch(c){(!c||this.fsw._handleError(c))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(o.persistent&&s!==!0)if(typeof e===ot)this.initWatch(void 0,t,r,n);else{let c;try{c=await re(r.watchPath)}catch{}this.initWatch(c,t,r,n)}}};ft.exports=ht;ft.exports.canUse=Fs});var ni=S(Ft=>{E();var{EventEmitter:vs}=w("events"),Pt=w("fs"),m=w("path"),{promisify:_e}=w("util"),As=Lt(),pt=zt().default,Is=ge(),ut=pe(),Ns=ye(),Os=Q(),ks=te(),ce=ae(),{EV_ALL:_t,EV_READY:Ws,EV_ADD:U,EV_CHANGE:x,EV_UNLINK:he,EV_ADD_DIR:xs,EV_UNLINK_DIR:Ls,EV_RAW:Cs,EV_ERROR:mt,STR_CLOSE:Ms,STR_END:Vs,BACK_SLASH_RE:Hs,DOUBLE_SLASH_RE:le,SLASH_OR_BACK_SLASH_RE:Gs,DOT_RE:Ys,REPLACER_RE:zs,SLASH:wt,SLASH_SLASH:js,BRACE_START:qs,BANG:gt,ONE_DOT:me,TWO_DOTS:Us,GLOBSTAR:Bs,SLASH_GLOBSTAR:Et,ANYMATCH_OPTS:yt,STRING_TYPE:Dt,FUNCTION_TYPE:Ks,EMPTY_STR:bt,EMPTY_FN:$s,isWindows:Xs,isMacos:Qs,isIBMi:Js}=H(),Zs=_e(Pt.stat),ti=_e(Pt.readdir),St=(a=[])=>Array.isArray(a)?a:[a],we=(a,t=[])=>(a.forEach(e=>{Array.isArray(e)?we(e,t):t.push(e)}),t),de=a=>{let t=we(St(a));if(!t.every(e=>typeof e===Dt))throw new TypeError(`Non-string provided as watch path: ${t}`);return t.map(Ee)},fe=a=>{let t=a.replace(Hs,wt),e=!1;for(t.startsWith(js)&&(e=!0);t.match(le);)t=t.replace(le,wt);return e&&(t=wt+t),t},Ee=a=>fe(m.normalize(fe(a))),ue=(a=bt)=>t=>typeof t!==Dt?t:Ee(m.isAbsolute(t)?t:m.join(a,t)),ei=(a,t)=>m.isAbsolute(a)?a:a.startsWith(gt)?gt+m.join(t,a.slice(1)):m.join(t,a),b=(a,t)=>a[t]===void 0,Rt=class{constructor(t,e){this.path=t,this._removeWatcher=e,this.items=new Set}add(t){let{items:e}=this;e&&t!==me&&t!==Us&&e.add(t)}async remove(t){let{items:e}=this;if(!e||(e.delete(t),e.size>0))return;let s=this.path;try{await ti(s)}catch{this._removeWatcher&&this._removeWatcher(m.dirname(s),m.basename(s))}}has(t){let{items:e}=this;if(e)return e.has(t)}getChildren(){let{items:t}=this;if(t)return[...t.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},si="stat",ii="lstat",Tt=class{constructor(t,e,s,i){this.fsw=i,this.path=t=t.replace(zs,bt),this.watchPath=e,this.fullWatchPath=m.resolve(e),this.hasGlob=e!==t,t===bt&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?pt(t,void 0,yt):!1,this.dirParts=this.getDirParts(t),this.dirParts.forEach(o=>{o.length>1&&o.pop()}),this.followSymlinks=s,this.statMethod=s?si:ii}checkGlobSymlink(t){return this.globSymlink===void 0&&(this.globSymlink=t.fullParentDir===this.fullWatchPath?!1:{realPath:t.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?t.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):t.fullPath}entryPath(t){return m.join(this.watchPath,m.relative(this.watchPath,this.checkGlobSymlink(t)))}filterPath(t){let{stats:e}=t;if(e&&e.isSymbolicLink())return this.filterDir(t);let s=this.entryPath(t);return(this.hasGlob&&typeof this.globFilter===Ks?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,e)&&this.fsw._hasReadPermissions(e)}getDirParts(t){if(!this.hasGlob)return[];let e=[];return(t.includes(qs)?Ns.expand(t):[t]).forEach(i=>{e.push(m.relative(this.watchPath,i).split(Gs))}),e}filterDir(t){if(this.hasGlob){let e=this.getDirParts(this.checkGlobSymlink(t)),s=!1;this.unmatchedGlob=!this.dirParts.some(i=>i.every((o,n)=>(o===Bs&&(s=!0),s||!e[0][n]||pt(o,e[0][n],yt))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(t),t.stats)}},B=class extends vs{constructor(t){super();let e={};t&&Object.assign(e,t),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,b(e,"persistent")&&(e.persistent=!0),b(e,"ignoreInitial")&&(e.ignoreInitial=!1),b(e,"ignorePermissionErrors")&&(e.ignorePermissionErrors=!1),b(e,"interval")&&(e.interval=100),b(e,"binaryInterval")&&(e.binaryInterval=300),b(e,"disableGlobbing")&&(e.disableGlobbing=!1),e.enableBinaryInterval=e.binaryInterval!==e.interval,b(e,"useFsEvents")&&(e.useFsEvents=!e.usePolling),ce.canUse()||(e.useFsEvents=!1),b(e,"usePolling")&&!e.useFsEvents&&(e.usePolling=Qs),Js&&(e.usePolling=!0);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let c=i.toLowerCase();c==="false"||c==="0"?e.usePolling=!1:c==="true"||c==="1"?e.usePolling=!0:e.usePolling=!!c}let o=process.env.CHOKIDAR_INTERVAL;o&&(e.interval=Number.parseInt(o,10)),b(e,"atomic")&&(e.atomic=!e.usePolling&&!e.useFsEvents),e.atomic&&(this._pendingUnlinks=new Map),b(e,"followSymlinks")&&(e.followSymlinks=!0),b(e,"awaitWriteFinish")&&(e.awaitWriteFinish=!1),e.awaitWriteFinish===!0&&(e.awaitWriteFinish={});let n=e.awaitWriteFinish;n&&(n.stabilityThreshold||(n.stabilityThreshold=2e3),n.pollInterval||(n.pollInterval=100),this._pendingWrites=new Map),e.ignored&&(e.ignored=St(e.ignored));let r=0;this._emitReady=()=>{r++,r>=this._readyCount&&(this._emitReady=$s,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ws)))},this._emitRaw=(...c)=>this.emit(Cs,...c),this._readyEmitted=!1,this.options=e,e.useFsEvents?this._fsEventsHandler=new ce(this):this._nodeFsHandler=new ks(this),Object.freeze(e)}add(t,e,s){let{cwd:i,disableGlobbing:o}=this.options;this.closed=!1;let n=de(t);return i&&(n=n.map(r=>{let c=ei(r,i);return o||!ut(r)?c:Os(c)})),n=n.filter(r=>r.startsWith(gt)?(this._ignoredPaths.add(r.slice(1)),!1):(this._ignoredPaths.delete(r),this._ignoredPaths.delete(r+Et),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=n.length),this.options.persistent&&(this._readyCount*=2),n.forEach(r=>this._fsEventsHandler._addToFsEvents(r))):(this._readyCount||(this._readyCount=0),this._readyCount+=n.length,Promise.all(n.map(async r=>{let c=await this._nodeFsHandler._addToNodeFs(r,!s,0,0,e);return c&&this._emitReady(),c})).then(r=>{this.closed||r.filter(c=>c).forEach(c=>{this.add(m.dirname(c),m.basename(e||c))})})),this}unwatch(t){if(this.closed)return this;let e=de(t),{cwd:s}=this.options;return e.forEach(i=>{!m.isAbsolute(i)&&!this._closers.has(i)&&(s&&(i=m.join(s,i)),i=m.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+Et),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let t=[];return this._closers.forEach(e=>e.forEach(s=>{let i=s();i instanceof Promise&&t.push(i)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(e=>{this[`_${e}`].clear()}),this._closePromise=t.length?Promise.all(t).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let t={};return this._watched.forEach((e,s)=>{let i=this.options.cwd?m.relative(this.options.cwd,s):s;t[i||me]=e.getChildren().sort()}),t}emitWithAll(t,e){this.emit(...e),t!==mt&&this.emit(_t,...e)}async _emit(t,e,s,i,o){if(this.closed)return;let n=this.options;Xs&&(e=m.normalize(e)),n.cwd&&(e=m.relative(n.cwd,e));let r=[t,e];o!==void 0?r.push(s,i,o):i!==void 0?r.push(s,i):s!==void 0&&r.push(s);let c=n.awaitWriteFinish,l;if(c&&(l=this._pendingWrites.get(e)))return l.lastChange=new Date,this;if(n.atomic){if(t===he)return this._pendingUnlinks.set(e,r),setTimeout(()=>{this._pendingUnlinks.forEach((d,h)=>{this.emit(...d),this.emit(_t,...d),this._pendingUnlinks.delete(h)})},typeof n.atomic=="number"?n.atomic:100),this;t===U&&this._pendingUnlinks.has(e)&&(t=r[0]=x,this._pendingUnlinks.delete(e))}if(c&&(t===U||t===x)&&this._readyEmitted){let d=(h,f)=>{h?(t=r[0]=mt,r[1]=h,this.emitWithAll(t,r)):f&&(r.length>2?r[2]=f:r.push(f),this.emitWithAll(t,r))};return this._awaitWriteFinish(e,c.stabilityThreshold,t,d),this}if(t===x&&!this._throttle(x,e,50))return this;if(n.alwaysStat&&s===void 0&&(t===U||t===xs||t===x)){let d=n.cwd?m.join(n.cwd,e):e,h;try{h=await Zs(d)}catch{}if(!h||this.closed)return;r.push(h)}return this.emitWithAll(t,r),this}_handleError(t){let e=t&&t.code;return t&&e!=="ENOENT"&&e!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||e!=="EPERM"&&e!=="EACCES")&&this.emit(mt,t),t||this.closed}_throttle(t,e,s){this._throttled.has(t)||this._throttled.set(t,new Map);let i=this._throttled.get(t),o=i.get(e);if(o)return o.count++,!1;let n,r=()=>{let l=i.get(e),d=l?l.count:0;return i.delete(e),clearTimeout(n),l&&clearTimeout(l.timeoutObject),d};n=setTimeout(r,s);let c={timeoutObject:n,clear:r,count:0};return i.set(e,c),c}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(t,e,s,i){let o,n=t;this.options.cwd&&!m.isAbsolute(t)&&(n=m.join(this.options.cwd,t));let r=new Date,c=l=>{Pt.stat(n,(d,h)=>{if(d||!this._pendingWrites.has(t)){d&&d.code!=="ENOENT"&&i(d);return}let f=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(t).lastChange=f);let _=this._pendingWrites.get(t);f-_.lastChange>=e?(this._pendingWrites.delete(t),i(void 0,h)):o=setTimeout(c,this.options.awaitWriteFinish.pollInterval,h)})};this._pendingWrites.has(t)||(this._pendingWrites.set(t,{lastChange:r,cancelWait:()=>(this._pendingWrites.delete(t),clearTimeout(o),s)}),o=setTimeout(c,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(t,e){if(this.options.atomic&&Ys.test(t))return!0;if(!this._userIgnored){let{cwd:s}=this.options,i=this.options.ignored,o=i&&i.map(ue(s)),n=St(o).filter(c=>typeof c===Dt&&!ut(c)).map(c=>c+Et),r=this._getGlobIgnored().map(ue(s)).concat(o,n);this._userIgnored=pt(r,void 0,yt)}return this._userIgnored([t,e])}_isntIgnored(t,e){return!this._isIgnored(t,e)}_getWatchHelpers(t,e){let s=e||this.options.disableGlobbing||!ut(t)?t:Is(t),i=this.options.followSymlinks;return new Tt(t,s,i,this)}_getWatchedDir(t){this._boundRemove||(this._boundRemove=this._remove.bind(this));let e=m.resolve(t);return this._watched.has(e)||this._watched.set(e,new Rt(e,this._boundRemove)),this._watched.get(e)}_hasReadPermissions(t){if(this.options.ignorePermissionErrors)return!0;let s=(t&&Number.parseInt(t.mode,10))&511;return!!(4&Number.parseInt(s.toString(8)[0],10))}_remove(t,e,s){let i=m.join(t,e),o=m.resolve(i);if(s=s??(this._watched.has(i)||this._watched.has(o)),!this._throttle("remove",i,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(t,e,!0),this._getWatchedDir(i).getChildren().forEach(f=>this._remove(i,f));let c=this._getWatchedDir(t),l=c.has(e);c.remove(e),this._symlinkPaths.has(o)&&this._symlinkPaths.delete(o);let d=i;if(this.options.cwd&&(d=m.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(d)&&this._pendingWrites.get(d).cancelWait()===U)return;this._watched.delete(i),this._watched.delete(o);let h=s?Ls:he;l&&!this._isIgnored(i)&&this._emit(h,i),this.options.useFsEvents||this._closePath(i)}_closePath(t){this._closeFile(t);let e=m.dirname(t);this._getWatchedDir(e).remove(m.basename(t))}_closeFile(t){let e=this._closers.get(t);e&&(e.forEach(s=>s()),this._closers.delete(t))}_addPathCloser(t,e){if(!e)return;let s=this._closers.get(t);s||(s=[],this._closers.set(t,s)),s.push(e)}_readdirp(t,e){if(this.closed)return;let s={type:_t,alwaysStat:!0,lstat:!0,...e},i=As(t,s);return this._streams.add(i),i.once(Ms,()=>{i=void 0}),i.once(Vs,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};Ft.FSWatcher=B;var ri=(a,t)=>{let e=new B(t);return e.add(a),e};Ft.watch=ri});export default ni();
3
+ /*! Bundled license information:
4
+
5
+ normalize-path/index.js:
6
+ (*!
7
+ * normalize-path <https://github.com/jonschlinkert/normalize-path>
8
+ *
9
+ * Copyright (c) 2014-2018, Jon Schlinkert.
10
+ * Released under the MIT License.
11
+ *)
12
+ */
@@ -0,0 +1,2 @@
1
+ import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
2
+ import{c as s,i as h}from"./chunk-MNT4XW23.js";var v=s((O,x)=>{"use strict";h();x.exports=p;function p(i,f,e){i instanceof RegExp&&(i=o(i,e)),f instanceof RegExp&&(f=o(f,e));var n=d(i,f,e);return n&&{start:n[0],end:n[1],pre:e.slice(0,n[0]),body:e.slice(n[0]+i.length,n[1]),post:e.slice(n[1]+f.length)}}function o(i,f){var e=f.match(i);return e?e[0]:null}p.range=d;function d(i,f,e){var n,a,c,u,g,l=e.indexOf(i),t=e.indexOf(f,l+1),r=l;if(l>=0&&t>0){if(i===f)return[l,t];for(n=[],c=e.length;r>=0&&!g;)r==l?(n.push(r),l=e.indexOf(i,r+1)):n.length==1?g=[n.pop(),t]:(a=n.pop(),a<c&&(c=a,u=t),t=e.indexOf(f,r+1)),r=l<t&&l>=0?l:t;n.length&&(g=[c,u])}return g}});export{v as a};
@@ -0,0 +1,5 @@
1
+ import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
2
+ import{a as we,c as w,i as d}from"./chunk-MNT4XW23.js";var Le=w(H=>{"use strict";d();var Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");H.encode=function(r){if(0<=r&&r<Me.length)return Me[r];throw new TypeError("Must be between 0 and 63: "+r)};H.decode=function(r){var e=65,n=90,t=97,o=122,i=48,u=57,l=43,s=47,a=26,c=52;return e<=r&&r<=n?r-e:t<=r&&r<=o?r-t+a:i<=r&&r<=u?r-i+c:r==l?62:r==s?63:-1}});var ne=w(re=>{"use strict";d();var Ee=Le(),ee=5,Ae=1<<ee,Oe=Ae-1,be=Ae;function nr(r){return r<0?(-r<<1)+1:(r<<1)+0}function tr(r){var e=(r&1)===1,n=r>>1;return e?-n:n}re.encode=function(e){var n="",t,o=nr(e);do t=o&Oe,o>>>=ee,o>0&&(t|=be),n+=Ee.encode(t);while(o>0);return n};re.decode=function(e,n,t){var o=e.length,i=0,u=0,l,s;do{if(n>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(s=Ee.decode(e.charCodeAt(n++)),s===-1)throw new Error("Invalid base64 digit: "+e.charAt(n-1));l=!!(s&be),s&=Oe,i=i+(s<<u),u+=ee}while(l);t.value=tr(i),t.rest=n}});var F=w(y=>{"use strict";d();function or(r,e,n){if(e in r)return r[e];if(arguments.length===3)return n;throw new Error('"'+e+'" is a required argument.')}y.getArg=or;var Re=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ir=/^data:.+\,.+$/;function U(r){var e=r.match(Re);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}y.urlParse=U;function B(r){var e="";return r.scheme&&(e+=r.scheme+":"),e+="//",r.auth&&(e+=r.auth+"@"),r.host&&(e+=r.host),r.port&&(e+=":"+r.port),r.path&&(e+=r.path),e}y.urlGenerate=B;function te(r){var e=r,n=U(r);if(n){if(!n.path)return r;e=n.path}for(var t=y.isAbsolute(e),o=e.split(/\/+/),i,u=0,l=o.length-1;l>=0;l--)i=o[l],i==="."?o.splice(l,1):i===".."?u++:u>0&&(i===""?(o.splice(l+1,u),u=0):(o.splice(l,2),u--));return e=o.join("/"),e===""&&(e=t?"/":"."),n?(n.path=e,B(n)):e}y.normalize=te;function Ne(r,e){r===""&&(r="."),e===""&&(e=".");var n=U(e),t=U(r);if(t&&(r=t.path||"/"),n&&!n.scheme)return t&&(n.scheme=t.scheme),B(n);if(n||e.match(ir))return e;if(t&&!t.host&&!t.path)return t.host=e,B(t);var o=e.charAt(0)==="/"?e:te(r.replace(/\/+$/,"")+"/"+e);return t?(t.path=o,B(t)):o}y.join=Ne;y.isAbsolute=function(r){return r.charAt(0)==="/"||Re.test(r)};function ur(r,e){r===""&&(r="."),r=r.replace(/\/$/,"");for(var n=0;e.indexOf(r+"/")!==0;){var t=r.lastIndexOf("/");if(t<0||(r=r.slice(0,t),r.match(/^([^\/]+:\/)?\/*$/)))return e;++n}return Array(n+1).join("../")+e.substr(r.length+1)}y.relative=ur;var xe=function(){var r=Object.create(null);return!("__proto__"in r)}();function Ge(r){return r}function sr(r){return Ie(r)?"$"+r:r}y.toSetString=xe?Ge:sr;function lr(r){return Ie(r)?r.slice(1):r}y.fromSetString=xe?Ge:lr;function Ie(r){if(!r)return!1;var e=r.length;if(e<9||r.charCodeAt(e-1)!==95||r.charCodeAt(e-2)!==95||r.charCodeAt(e-3)!==111||r.charCodeAt(e-4)!==116||r.charCodeAt(e-5)!==111||r.charCodeAt(e-6)!==114||r.charCodeAt(e-7)!==112||r.charCodeAt(e-8)!==95||r.charCodeAt(e-9)!==95)return!1;for(var n=e-10;n>=0;n--)if(r.charCodeAt(n)!==36)return!1;return!0}function ar(r,e,n){var t=q(r.source,e.source);return t!==0||(t=r.originalLine-e.originalLine,t!==0)||(t=r.originalColumn-e.originalColumn,t!==0||n)||(t=r.generatedColumn-e.generatedColumn,t!==0)||(t=r.generatedLine-e.generatedLine,t!==0)?t:q(r.name,e.name)}y.compareByOriginalPositions=ar;function cr(r,e,n){var t=r.generatedLine-e.generatedLine;return t!==0||(t=r.generatedColumn-e.generatedColumn,t!==0||n)||(t=q(r.source,e.source),t!==0)||(t=r.originalLine-e.originalLine,t!==0)||(t=r.originalColumn-e.originalColumn,t!==0)?t:q(r.name,e.name)}y.compareByGeneratedPositionsDeflated=cr;function q(r,e){return r===e?0:r===null?1:e===null?-1:r>e?1:-1}function fr(r,e){var n=r.generatedLine-e.generatedLine;return n!==0||(n=r.generatedColumn-e.generatedColumn,n!==0)||(n=q(r.source,e.source),n!==0)||(n=r.originalLine-e.originalLine,n!==0)||(n=r.originalColumn-e.originalColumn,n!==0)?n:q(r.name,e.name)}y.compareByGeneratedPositionsInflated=fr;function hr(r){return JSON.parse(r.replace(/^\)]}'[^\n]*\n/,""))}y.parseSourceMapInput=hr;function gr(r,e,n){if(e=e||"",r&&(r[r.length-1]!=="/"&&e[0]!=="/"&&(r+="/"),e=r+e),n){var t=U(n);if(!t)throw new Error("sourceMapURL could not be parsed");if(t.path){var o=t.path.lastIndexOf("/");o>=0&&(t.path=t.path.substring(0,o+1))}e=Ne(B(t),e)}return te(e)}y.computeSourceURL=gr});var ue=w(Te=>{"use strict";d();var oe=F(),ie=Object.prototype.hasOwnProperty,x=typeof Map<"u";function b(){this._array=[],this._set=x?new Map:Object.create(null)}b.fromArray=function(e,n){for(var t=new b,o=0,i=e.length;o<i;o++)t.add(e[o],n);return t};b.prototype.size=function(){return x?this._set.size:Object.getOwnPropertyNames(this._set).length};b.prototype.add=function(e,n){var t=x?e:oe.toSetString(e),o=x?this.has(e):ie.call(this._set,t),i=this._array.length;(!o||n)&&this._array.push(e),o||(x?this._set.set(e,i):this._set[t]=i)};b.prototype.has=function(e){if(x)return this._set.has(e);var n=oe.toSetString(e);return ie.call(this._set,n)};b.prototype.indexOf=function(e){if(x){var n=this._set.get(e);if(n>=0)return n}else{var t=oe.toSetString(e);if(ie.call(this._set,t))return this._set[t]}throw new Error('"'+e+'" is not in the set.')};b.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};b.prototype.toArray=function(){return this._array.slice()};Te.ArraySet=b});var qe=w(Be=>{"use strict";d();var Pe=F();function dr(r,e){var n=r.generatedLine,t=e.generatedLine,o=r.generatedColumn,i=e.generatedColumn;return t>n||t==n&&i>=o||Pe.compareByGeneratedPositionsInflated(r,e)<=0}function W(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}W.prototype.unsortedForEach=function(e,n){this._array.forEach(e,n)};W.prototype.add=function(e){dr(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};W.prototype.toArray=function(){return this._sorted||(this._array.sort(Pe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Be.MappingList=W});var se=w(Fe=>{"use strict";d();var $=ne(),_=F(),J=ue().ArraySet,vr=qe().MappingList;function E(r){r||(r={}),this._file=_.getArg(r,"file",null),this._sourceRoot=_.getArg(r,"sourceRoot",null),this._skipValidation=_.getArg(r,"skipValidation",!1),this._sources=new J,this._names=new J,this._mappings=new vr,this._sourcesContents=null}E.prototype._version=3;E.fromSourceMap=function(e){var n=e.sourceRoot,t=new E({file:e.file,sourceRoot:n});return e.eachMapping(function(o){var i={generated:{line:o.generatedLine,column:o.generatedColumn}};o.source!=null&&(i.source=o.source,n!=null&&(i.source=_.relative(n,i.source)),i.original={line:o.originalLine,column:o.originalColumn},o.name!=null&&(i.name=o.name)),t.addMapping(i)}),e.sources.forEach(function(o){var i=o;n!==null&&(i=_.relative(n,o)),t._sources.has(i)||t._sources.add(i);var u=e.sourceContentFor(o);u!=null&&t.setSourceContent(o,u)}),t};E.prototype.addMapping=function(e){var n=_.getArg(e,"generated"),t=_.getArg(e,"original",null),o=_.getArg(e,"source",null),i=_.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,t,o,i),o!=null&&(o=String(o),this._sources.has(o)||this._sources.add(o)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:t!=null&&t.line,originalColumn:t!=null&&t.column,source:o,name:i})};E.prototype.setSourceContent=function(e,n){var t=e;this._sourceRoot!=null&&(t=_.relative(this._sourceRoot,t)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[_.toSetString(t)]=n):this._sourcesContents&&(delete this._sourcesContents[_.toSetString(t)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};E.prototype.applySourceMap=function(e,n,t){var o=n;if(n==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);o=e.file}var i=this._sourceRoot;i!=null&&(o=_.relative(i,o));var u=new J,l=new J;this._mappings.unsortedForEach(function(s){if(s.source===o&&s.originalLine!=null){var a=e.originalPositionFor({line:s.originalLine,column:s.originalColumn});a.source!=null&&(s.source=a.source,t!=null&&(s.source=_.join(t,s.source)),i!=null&&(s.source=_.relative(i,s.source)),s.originalLine=a.line,s.originalColumn=a.column,a.name!=null&&(s.name=a.name))}var c=s.source;c!=null&&!u.has(c)&&u.add(c);var g=s.name;g!=null&&!l.has(g)&&l.add(g)},this),this._sources=u,this._names=l,e.sources.forEach(function(s){var a=e.sourceContentFor(s);a!=null&&(t!=null&&(s=_.join(t,s)),i!=null&&(s=_.relative(i,s)),this.setSourceContent(s,a))},this)};E.prototype._validateMapping=function(e,n,t,o){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!o)){if(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:o}))}};E.prototype._serializeMappings=function(){for(var e=0,n=1,t=0,o=0,i=0,u=0,l="",s,a,c,g,h=this._mappings.toArray(),v=0,L=h.length;v<L;v++){if(a=h[v],s="",a.generatedLine!==n)for(e=0;a.generatedLine!==n;)s+=";",n++;else if(v>0){if(!_.compareByGeneratedPositionsInflated(a,h[v-1]))continue;s+=","}s+=$.encode(a.generatedColumn-e),e=a.generatedColumn,a.source!=null&&(g=this._sources.indexOf(a.source),s+=$.encode(g-u),u=g,s+=$.encode(a.originalLine-1-o),o=a.originalLine-1,s+=$.encode(a.originalColumn-t),t=a.originalColumn,a.name!=null&&(c=this._names.indexOf(a.name),s+=$.encode(c-i),i=c)),l+=s}return l};E.prototype._generateSourcesContent=function(e,n){return e.map(function(t){if(!this._sourcesContents)return null;n!=null&&(t=_.relative(n,t));var o=_.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null},this)};E.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};E.prototype.toString=function(){return JSON.stringify(this.toJSON())};Fe.SourceMapGenerator=E});var je=w(G=>{"use strict";d();G.GREATEST_LOWER_BOUND=1;G.LEAST_UPPER_BOUND=2;function le(r,e,n,t,o,i){var u=Math.floor((e-r)/2)+r,l=o(n,t[u],!0);return l===0?u:l>0?e-u>1?le(u,e,n,t,o,i):i==G.LEAST_UPPER_BOUND?e<t.length?e:-1:u:u-r>1?le(r,u,n,t,o,i):i==G.LEAST_UPPER_BOUND?u:r<0?-1:r}G.search=function(e,n,t,o){if(n.length===0)return-1;var i=le(-1,n.length,e,n,t,o||G.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&t(n[i],n[i-1],!0)===0;)--i;return i}});var Ue=w(De=>{"use strict";d();function ae(r,e,n){var t=r[e];r[e]=r[n],r[n]=t}function pr(r,e){return Math.round(r+Math.random()*(e-r))}function ce(r,e,n,t){if(n<t){var o=pr(n,t),i=n-1;ae(r,o,t);for(var u=r[t],l=n;l<t;l++)e(r[l],u)<=0&&(i+=1,ae(r,i,l));ae(r,i+1,l);var s=i+1;ce(r,e,n,s-1),ce(r,e,s+1,t)}}De.quickSort=function(r,e){ce(r,e,0,r.length-1)}});var ke=w(X=>{"use strict";d();var f=F(),fe=je(),j=ue().ArraySet,_r=ne(),k=Ue().quickSort;function p(r,e){var n=r;return typeof r=="string"&&(n=f.parseSourceMapInput(r)),n.sections!=null?new A(n,e):new m(n,e)}p.fromSourceMap=function(r,e){return m.fromSourceMap(r,e)};p.prototype._version=3;p.prototype.__generatedMappings=null;Object.defineProperty(p.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});p.prototype.__originalMappings=null;Object.defineProperty(p.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});p.prototype._charIsMappingSeparator=function(e,n){var t=e.charAt(n);return t===";"||t===","};p.prototype._parseMappings=function(e,n){throw new Error("Subclasses must implement _parseMappings")};p.GENERATED_ORDER=1;p.ORIGINAL_ORDER=2;p.GREATEST_LOWER_BOUND=1;p.LEAST_UPPER_BOUND=2;p.prototype.eachMapping=function(e,n,t){var o=n||null,i=t||p.GENERATED_ORDER,u;switch(i){case p.GENERATED_ORDER:u=this._generatedMappings;break;case p.ORIGINAL_ORDER:u=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;u.map(function(s){var a=s.source===null?null:this._sources.at(s.source);return a=f.computeSourceURL(l,a,this._sourceMapURL),{source:a,generatedLine:s.generatedLine,generatedColumn:s.generatedColumn,originalLine:s.originalLine,originalColumn:s.originalColumn,name:s.name===null?null:this._names.at(s.name)}},this).forEach(e,o)};p.prototype.allGeneratedPositionsFor=function(e){var n=f.getArg(e,"line"),t={source:f.getArg(e,"source"),originalLine:n,originalColumn:f.getArg(e,"column",0)};if(t.source=this._findSourceIndex(t.source),t.source<0)return[];var o=[],i=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",f.compareByOriginalPositions,fe.LEAST_UPPER_BOUND);if(i>=0){var u=this._originalMappings[i];if(e.column===void 0)for(var l=u.originalLine;u&&u.originalLine===l;)o.push({line:f.getArg(u,"generatedLine",null),column:f.getArg(u,"generatedColumn",null),lastColumn:f.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i];else for(var s=u.originalColumn;u&&u.originalLine===n&&u.originalColumn==s;)o.push({line:f.getArg(u,"generatedLine",null),column:f.getArg(u,"generatedColumn",null),lastColumn:f.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i]}return o};X.SourceMapConsumer=p;function m(r,e){var n=r;typeof r=="string"&&(n=f.parseSourceMapInput(r));var t=f.getArg(n,"version"),o=f.getArg(n,"sources"),i=f.getArg(n,"names",[]),u=f.getArg(n,"sourceRoot",null),l=f.getArg(n,"sourcesContent",null),s=f.getArg(n,"mappings"),a=f.getArg(n,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);u&&(u=f.normalize(u)),o=o.map(String).map(f.normalize).map(function(c){return u&&f.isAbsolute(u)&&f.isAbsolute(c)?f.relative(u,c):c}),this._names=j.fromArray(i.map(String),!0),this._sources=j.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(c){return f.computeSourceURL(u,c,e)}),this.sourceRoot=u,this.sourcesContent=l,this._mappings=s,this._sourceMapURL=e,this.file=a}m.prototype=Object.create(p.prototype);m.prototype.consumer=p;m.prototype._findSourceIndex=function(r){var e=r;if(this.sourceRoot!=null&&(e=f.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==r)return n;return-1};m.fromSourceMap=function(e,n){var t=Object.create(m.prototype),o=t._names=j.fromArray(e._names.toArray(),!0),i=t._sources=j.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t._sourceMapURL=n,t._absoluteSources=t._sources.toArray().map(function(v){return f.computeSourceURL(t.sourceRoot,v,n)});for(var u=e._mappings.toArray().slice(),l=t.__generatedMappings=[],s=t.__originalMappings=[],a=0,c=u.length;a<c;a++){var g=u[a],h=new $e;h.generatedLine=g.generatedLine,h.generatedColumn=g.generatedColumn,g.source&&(h.source=i.indexOf(g.source),h.originalLine=g.originalLine,h.originalColumn=g.originalColumn,g.name&&(h.name=o.indexOf(g.name)),s.push(h)),l.push(h)}return k(t.__originalMappings,f.compareByOriginalPositions),t};m.prototype._version=3;Object.defineProperty(m.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function $e(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}m.prototype._parseMappings=function(e,n){for(var t=1,o=0,i=0,u=0,l=0,s=0,a=e.length,c=0,g={},h={},v=[],L=[],C,V,S,P,Ce;c<a;)if(e.charAt(c)===";")t++,c++,o=0;else if(e.charAt(c)===",")c++;else{for(C=new $e,C.generatedLine=t,P=c;P<a&&!this._charIsMappingSeparator(e,P);P++);if(V=e.slice(c,P),S=g[V],S)c+=V.length;else{for(S=[];c<P;)_r.decode(e,c,h),Ce=h.value,c=h.rest,S.push(Ce);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");g[V]=S}C.generatedColumn=o+S[0],o=C.generatedColumn,S.length>1&&(C.source=l+S[1],l+=S[1],C.originalLine=i+S[2],i=C.originalLine,C.originalLine+=1,C.originalColumn=u+S[3],u=C.originalColumn,S.length>4&&(C.name=s+S[4],s+=S[4])),L.push(C),typeof C.originalLine=="number"&&v.push(C)}k(L,f.compareByGeneratedPositionsDeflated),this.__generatedMappings=L,k(v,f.compareByOriginalPositions),this.__originalMappings=v};m.prototype._findMapping=function(e,n,t,o,i,u){if(e[t]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[t]);if(e[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[o]);return fe.search(e,n,i,u)};m.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var n=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var t=this._generatedMappings[e+1];if(n.generatedLine===t.generatedLine){n.lastGeneratedColumn=t.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};m.prototype.originalPositionFor=function(e){var n={generatedLine:f.getArg(e,"line"),generatedColumn:f.getArg(e,"column")},t=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",f.compareByGeneratedPositionsDeflated,f.getArg(e,"bias",p.GREATEST_LOWER_BOUND));if(t>=0){var o=this._generatedMappings[t];if(o.generatedLine===n.generatedLine){var i=f.getArg(o,"source",null);i!==null&&(i=this._sources.at(i),i=f.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var u=f.getArg(o,"name",null);return u!==null&&(u=this._names.at(u)),{source:i,line:f.getArg(o,"originalLine",null),column:f.getArg(o,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}};m.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};m.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];var o=e;this.sourceRoot!=null&&(o=f.relative(this.sourceRoot,o));var i;if(this.sourceRoot!=null&&(i=f.urlParse(this.sourceRoot))){var u=o.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];if((!i.path||i.path=="/")&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(n)return null;throw new Error('"'+o+'" is not in the SourceMap.')};m.prototype.generatedPositionFor=function(e){var n=f.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var t={source:n,originalLine:f.getArg(e,"line"),originalColumn:f.getArg(e,"column")},o=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",f.compareByOriginalPositions,f.getArg(e,"bias",p.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===t.source)return{line:f.getArg(i,"generatedLine",null),column:f.getArg(i,"generatedColumn",null),lastColumn:f.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};X.BasicSourceMapConsumer=m;function A(r,e){var n=r;typeof r=="string"&&(n=f.parseSourceMapInput(r));var t=f.getArg(n,"version"),o=f.getArg(n,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new j,this._names=new j;var i={line:-1,column:0};this._sections=o.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var l=f.getArg(u,"offset"),s=f.getArg(l,"line"),a=f.getArg(l,"column");if(s<i.line||s===i.line&&a<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=l,{generatedOffset:{generatedLine:s+1,generatedColumn:a+1},consumer:new p(f.getArg(u,"map"),e)}})}A.prototype=Object.create(p.prototype);A.prototype.constructor=p;A.prototype._version=3;Object.defineProperty(A.prototype,"sources",{get:function(){for(var r=[],e=0;e<this._sections.length;e++)for(var n=0;n<this._sections[e].consumer.sources.length;n++)r.push(this._sections[e].consumer.sources[n]);return r}});A.prototype.originalPositionFor=function(e){var n={generatedLine:f.getArg(e,"line"),generatedColumn:f.getArg(e,"column")},t=fe.search(n,this._sections,function(i,u){var l=i.generatedLine-u.generatedOffset.generatedLine;return l||i.generatedColumn-u.generatedOffset.generatedColumn}),o=this._sections[t];return o?o.consumer.originalPositionFor({line:n.generatedLine-(o.generatedOffset.generatedLine-1),column:n.generatedColumn-(o.generatedOffset.generatedLine===n.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};A.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};A.prototype.sourceContentFor=function(e,n){for(var t=0;t<this._sections.length;t++){var o=this._sections[t],i=o.consumer.sourceContentFor(e,!0);if(i)return i}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')};A.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var t=this._sections[n];if(t.consumer._findSourceIndex(f.getArg(e,"source"))!==-1){var o=t.consumer.generatedPositionFor(e);if(o){var i={line:o.line+(t.generatedOffset.generatedLine-1),column:o.column+(t.generatedOffset.generatedLine===o.line?t.generatedOffset.generatedColumn-1:0)};return i}}}return{line:null,column:null}};A.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var t=0;t<this._sections.length;t++)for(var o=this._sections[t],i=o.consumer._generatedMappings,u=0;u<i.length;u++){var l=i[u],s=o.consumer._sources.at(l.source);s=f.computeSourceURL(o.consumer.sourceRoot,s,this._sourceMapURL),this._sources.add(s),s=this._sources.indexOf(s);var a=null;l.name&&(a=o.consumer._names.at(l.name),this._names.add(a),a=this._names.indexOf(a));var c={source:s,generatedLine:l.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(o.generatedOffset.generatedLine===l.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:a};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}k(this.__generatedMappings,f.compareByGeneratedPositionsDeflated),k(this.__originalMappings,f.compareByOriginalPositions)};X.IndexedSourceMapConsumer=A});var Qe=w(ze=>{"use strict";d();var mr=se().SourceMapGenerator,Z=F(),Sr=/(\r?\n)/,yr=10,D="$$$isSourceNode$$$";function M(r,e,n,t,o){this.children=[],this.sourceContents={},this.line=r??null,this.column=e??null,this.source=n??null,this.name=o??null,this[D]=!0,t!=null&&this.add(t)}M.fromStringWithSourceMap=function(e,n,t){var o=new M,i=e.split(Sr),u=0,l=function(){var h=L(),v=L()||"";return h+v;function L(){return u<i.length?i[u++]:void 0}},s=1,a=0,c=null;return n.eachMapping(function(h){if(c!==null)if(s<h.generatedLine)g(c,l()),s++,a=0;else{var v=i[u]||"",L=v.substr(0,h.generatedColumn-a);i[u]=v.substr(h.generatedColumn-a),a=h.generatedColumn,g(c,L),c=h;return}for(;s<h.generatedLine;)o.add(l()),s++;if(a<h.generatedColumn){var v=i[u]||"";o.add(v.substr(0,h.generatedColumn)),i[u]=v.substr(h.generatedColumn),a=h.generatedColumn}c=h},this),u<i.length&&(c&&g(c,l()),o.add(i.splice(u).join(""))),n.sources.forEach(function(h){var v=n.sourceContentFor(h);v!=null&&(t!=null&&(h=Z.join(t,h)),o.setSourceContent(h,v))}),o;function g(h,v){if(h===null||h.source===void 0)o.add(v);else{var L=t?Z.join(t,h.source):h.source;o.add(new M(h.originalLine,h.originalColumn,L,v,h.name))}}};M.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(n){this.add(n)},this);else if(e[D]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};M.prototype.prepend=function(e){if(Array.isArray(e))for(var n=e.length-1;n>=0;n--)this.prepend(e[n]);else if(e[D]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};M.prototype.walk=function(e){for(var n,t=0,o=this.children.length;t<o;t++)n=this.children[t],n[D]?n.walk(e):n!==""&&e(n,{source:this.source,line:this.line,column:this.column,name:this.name})};M.prototype.join=function(e){var n,t,o=this.children.length;if(o>0){for(n=[],t=0;t<o-1;t++)n.push(this.children[t]),n.push(e);n.push(this.children[t]),this.children=n}return this};M.prototype.replaceRight=function(e,n){var t=this.children[this.children.length-1];return t[D]?t.replaceRight(e,n):typeof t=="string"?this.children[this.children.length-1]=t.replace(e,n):this.children.push("".replace(e,n)),this};M.prototype.setSourceContent=function(e,n){this.sourceContents[Z.toSetString(e)]=n};M.prototype.walkSourceContents=function(e){for(var n=0,t=this.children.length;n<t;n++)this.children[n][D]&&this.children[n].walkSourceContents(e);for(var o=Object.keys(this.sourceContents),n=0,t=o.length;n<t;n++)e(Z.fromSetString(o[n]),this.sourceContents[o[n]])};M.prototype.toString=function(){var e="";return this.walk(function(n){e+=n}),e};M.prototype.toStringWithSourceMap=function(e){var n={code:"",line:1,column:0},t=new mr(e),o=!1,i=null,u=null,l=null,s=null;return this.walk(function(a,c){n.code+=a,c.source!==null&&c.line!==null&&c.column!==null?((i!==c.source||u!==c.line||l!==c.column||s!==c.name)&&t.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:n.line,column:n.column},name:c.name}),i=c.source,u=c.line,l=c.column,s=c.name,o=!0):o&&(t.addMapping({generated:{line:n.line,column:n.column}}),i=null,o=!1);for(var g=0,h=a.length;g<h;g++)a.charCodeAt(g)===yr?(n.line++,n.column=0,g+1===h?(i=null,o=!1):o&&t.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:n.line,column:n.column},name:c.name})):n.column++}),this.walkSourceContents(function(a,c){t.setSourceContent(a,c)}),{code:n.code,map:t}};ze.SourceNode=M});var Ve=w(K=>{"use strict";d();K.SourceMapGenerator=se().SourceMapGenerator;K.SourceMapConsumer=ke().SourceMapConsumer;K.SourceNode=Qe().SourceNode});var Je=w((cn,We)=>{"use strict";d();var Cr=Object.prototype.toString,he=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function wr(r){return Cr.call(r).slice(8,-1)==="ArrayBuffer"}function Mr(r,e,n){e>>>=0;var t=r.byteLength-e;if(t<0)throw new RangeError("'offset' is out of bounds");if(n===void 0)n=t;else if(n>>>=0,n>t)throw new RangeError("'length' is out of bounds");return he?Buffer.from(r.slice(e,e+n)):new Buffer(new Uint8Array(r.slice(e,e+n)))}function Lr(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Buffer.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');return he?Buffer.from(r,e):new Buffer(r,e)}function Er(r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return wr(r)?Mr(r,e,n):typeof r=="string"?Lr(r,e):he?Buffer.from(r):new Buffer(r)}We.exports=Er});var Dr=w((T,pe)=>{"use strict";d();var Ar=Ve().SourceMapConsumer,ge=we("path"),O;try{O=we("fs"),(!O.existsSync||!O.readFileSync)&&(O=null)}catch{}var Or=Je();function Xe(r,e){return r.require(e)}var Ze=!1,Ke=!1,de=!1,z="auto",I={},Q={},br=/^data:application\/json[^,]+base64,/,R=[],N=[];function _e(){return z==="browser"?!0:z==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function Rr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function Nr(){return typeof process=="object"&&process!==null?process.version:""}function xr(){if(typeof process=="object"&&process!==null)return process.stderr}function Gr(r){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(r)}function Y(r){return function(e){for(var n=0;n<r.length;n++){var t=r[n](e);if(t)return t}return null}}var me=Y(R);R.push(function(r){if(r=r.trim(),/^file:/.test(r)&&(r=r.replace(/file:\/\/\/(\w:)?/,function(t,o){return o?"":"/"})),r in I)return I[r];var e="";try{if(O)O.existsSync(r)&&(e=O.readFileSync(r,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",r,!1),n.send(null),n.readyState===4&&n.status===200&&(e=n.responseText)}}catch{}return I[r]=e});function ve(r,e){if(!r)return e;var n=ge.dirname(r),t=/^\w+:\/\/[^\/]*/.exec(n),o=t?t[0]:"",i=n.slice(o.length);return o&&/^\/\w\:/.test(i)?(o+="/",o+ge.resolve(n.slice(o.length),e).replace(/\\/g,"/")):o+ge.resolve(n.slice(o.length),e)}function Ir(r){var e;if(_e())try{var n=new XMLHttpRequest;n.open("GET",r,!1),n.send(null),e=n.readyState===4?n.responseText:null;var t=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(t)return t}catch{}e=me(r);for(var o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,i,u;u=o.exec(e);)i=u;return i?i[1]:null}var Se=Y(N);N.push(function(r){var e=Ir(r);if(!e)return null;var n;if(br.test(e)){var t=e.slice(e.indexOf(",")+1);n=Or(t,"base64").toString(),e=r}else e=ve(r,e),n=me(e);return n?{url:e,map:n}:null});function ye(r){var e=Q[r.source];if(!e){var n=Se(r.source);n?(e=Q[r.source]={url:n.url,map:new Ar(n.map)},e.map.sourcesContent&&e.map.sources.forEach(function(o,i){var u=e.map.sourcesContent[i];if(u){var l=ve(e.url,o);I[l]=u}})):e=Q[r.source]={url:null,map:null}}if(e&&e.map&&typeof e.map.originalPositionFor=="function"){var t=e.map.originalPositionFor(r);if(t.source!==null)return t.source=ve(e.url,t.source),t}return r}function He(r){var e=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(r);if(e){var n=ye({source:e[2],line:+e[3],column:e[4]-1});return"eval at "+e[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return e=/^eval at ([^(]+) \((.+)\)$/.exec(r),e?"eval at "+e[1]+" ("+He(e[2])+")":r}function Tr(){var r,e="";if(this.isNative())e="native";else{r=this.getScriptNameOrSourceURL(),!r&&this.isEval()&&(e=this.getEvalOrigin(),e+=", "),r?e+=r:e+="<anonymous>";var n=this.getLineNumber();if(n!=null){e+=":"+n;var t=this.getColumnNumber();t&&(e+=":"+t)}}var o="",i=this.getFunctionName(),u=!0,l=this.isConstructor(),s=!(this.isToplevel()||l);if(s){var a=this.getTypeName();a==="[object Object]"&&(a="null");var c=this.getMethodName();i?(a&&i.indexOf(a)!=0&&(o+=a+"."),o+=i,c&&i.indexOf("."+c)!=i.length-c.length-1&&(o+=" [as "+c+"]")):o+=a+"."+(c||"<anonymous>")}else l?o+="new "+(i||"<anonymous>"):i?o+=i:(o+=e,u=!1);return u&&(o+=" ("+e+")"),o}function Ye(r){var e={};return Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(function(n){e[n]=/^(?:is|get)/.test(n)?function(){return r[n].call(r)}:r[n]}),e.toString=Tr,e}function er(r,e){if(e===void 0&&(e={nextPosition:null,curPosition:null}),r.isNative())return e.curPosition=null,r;var n=r.getFileName()||r.getScriptNameOrSourceURL();if(n){var t=r.getLineNumber(),o=r.getColumnNumber()-1,i=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,u=i.test(Nr())?0:62;t===1&&o>u&&!_e()&&!r.isEval()&&(o-=u);var l=ye({source:n,line:t,column:o});e.curPosition=l,r=Ye(r);var s=r.getFunctionName;return r.getFunctionName=function(){return e.nextPosition==null?s():e.nextPosition.name||s()},r.getFileName=function(){return l.source},r.getLineNumber=function(){return l.line},r.getColumnNumber=function(){return l.column+1},r.getScriptNameOrSourceURL=function(){return l.source},r}var a=r.isEval()&&r.getEvalOrigin();return a&&(a=He(a),r=Ye(r),r.getEvalOrigin=function(){return a}),r}function Pr(r,e){de&&(I={},Q={});for(var n=r.name||"Error",t=r.message||"",o=n+": "+t,i={nextPosition:null,curPosition:null},u=[],l=e.length-1;l>=0;l--)u.push(`
3
+ at `+er(e[l],i)),i.nextPosition=i.curPosition;return i.curPosition=i.nextPosition=null,o+u.reverse().join("")}function rr(r){var e=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(r.stack);if(e){var n=e[1],t=+e[2],o=+e[3],i=I[n];if(!i&&O&&O.existsSync(n))try{i=O.readFileSync(n,"utf8")}catch{i=""}if(i){var u=i.split(/(?:\r\n|\r|\n)/)[t-1];if(u)return n+":"+t+`
4
+ `+u+`
5
+ `+new Array(o).join(" ")+"^"}}return null}function Br(r){var e=rr(r),n=xr();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),e&&(console.error(),console.error(e)),console.error(r.stack),Gr(1)}function qr(){var r=process.emit;process.emit=function(e){if(e==="uncaughtException"){var n=arguments[1]&&arguments[1].stack,t=this.listeners(e).length>0;if(n&&!t)return Br(arguments[1])}return r.apply(this,arguments)}}var Fr=R.slice(0),jr=N.slice(0);T.wrapCallSite=er;T.getErrorSource=rr;T.mapSourcePosition=ye;T.retrieveSourceMap=Se;T.install=function(r){if(r=r||{},r.environment&&(z=r.environment,["node","browser","auto"].indexOf(z)===-1))throw new Error("environment "+z+" was unknown. Available options are {auto, browser, node}");if(r.retrieveFile&&(r.overrideRetrieveFile&&(R.length=0),R.unshift(r.retrieveFile)),r.retrieveSourceMap&&(r.overrideRetrieveSourceMap&&(N.length=0),N.unshift(r.retrieveSourceMap)),r.hookRequire&&!_e()){var e=Xe(pe,"module"),n=e.prototype._compile;n.__sourceMapSupport||(e.prototype._compile=function(i,u){return I[u]=i,Q[u]=void 0,n.call(this,i,u)},e.prototype._compile.__sourceMapSupport=!0)}if(de||(de="emptyCacheBetweenOperations"in r?r.emptyCacheBetweenOperations:!1),Ze||(Ze=!0,Error.prepareStackTrace=Pr),!Ke){var t="handleUncaughtExceptions"in r?r.handleUncaughtExceptions:!0;try{var o=Xe(pe,"worker_threads");o.isMainThread===!1&&(t=!1)}catch{}t&&Rr()&&(Ke=!0,qr())}};T.resetRetrieveHandlers=function(){R.length=0,N.length=0,R=Fr.slice(0),N=jr.slice(0),Se=Y(N),me=Y(R)}});export{Je as a,Dr as b};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
2
+ import{a as S,c as p,i as o}from"./chunk-MNT4XW23.js";var L=p((ee,I)=>{"use strict";o();I.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&I.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&I.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var V=p((ne,x)=>{"use strict";o();var f=global.process,c=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};c(f)?(U=S("assert"),l=L(),g=/^win/i.test(f.platform),y=S("events"),typeof y!="function"&&(y=y.EventEmitter),f.__signal_exit_emitter__?u=f.__signal_exit_emitter__:(u=f.__signal_exit_emitter__=new y,u.count=0,u.emitted={}),u.infinite||(u.setMaxListeners(1/0),u.infinite=!0),x.exports=function(e,r){if(!c(global.process))return function(){};U.equal(typeof e,"function","a callback must be provided for exit handler"),v===!1&&C();var n="exit";r&&r.alwaysLast&&(n="afterexit");var t=function(){u.removeListener(n,e),u.listeners("exit").length===0&&u.listeners("afterexit").length===0&&d()};return u.on(n,e),t},d=function(){!v||!c(global.process)||(v=!1,l.forEach(function(r){try{f.removeListener(r,h[r])}catch{}}),f.emit=G,f.reallyExit=b,u.count-=1)},x.exports.unload=d,a=function(r,n,t){u.emitted[r]||(u.emitted[r]=!0,u.emit(r,n,t))},h={},l.forEach(function(e){h[e]=function(){if(c(global.process)){var n=f.listeners(e);n.length===u.count&&(d(),a("exit",null,e),a("afterexit",null,e),g&&e==="SIGHUP"&&(e="SIGINT"),f.kill(f.pid,e))}}}),x.exports.signals=function(){return l},v=!1,C=function(){v||!c(global.process)||(v=!0,u.count+=1,l=l.filter(function(r){try{return f.on(r,h[r]),!0}catch{return!1}}),f.emit=O,f.reallyExit=A)},x.exports.load=C,b=f.reallyExit,A=function(r){c(global.process)&&(f.exitCode=r||0,a("exit",f.exitCode,null),a("afterexit",f.exitCode,null),b.call(f,f.exitCode))},G=f.emit,O=function(r,n){if(r==="exit"&&c(global.process)){n!==void 0&&(f.exitCode=n);var t=G.apply(this,arguments);return a("exit",f.exitCode,null),a("afterexit",f.exitCode,null),t}else return G.apply(this,arguments)}):x.exports=function(){return function(){}};var U,l,g,y,u,d,a,h,v,C,b,A,G,O});var H=p((fe,E)=>{"use strict";o();E.exports=F;F.sync=Y;var M=S("fs");function W(e,r){var n=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!n||(n=n.split(";"),n.indexOf("")!==-1))return!0;for(var t=0;t<n.length;t++){var i=n[t].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function N(e,r,n){return!e.isSymbolicLink()&&!e.isFile()?!1:W(r,n)}function F(e,r,n){M.stat(e,function(t,i){n(t,t?!1:N(i,e,r))})}function Y(e,r){return N(M.statSync(e),e,r)}});var D=p((ie,m)=>{"use strict";o();m.exports=R;R.sync=Z;var P=S("fs");function R(e,r,n){P.stat(e,function(t,i){n(t,t?!1:X(i,r))})}function Z(e,r){return X(P.statSync(e),r)}function X(e,r){return e.isFile()&&z(e,r)}function z(e,r){var n=e.mode,t=e.uid,i=e.gid,s=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),T=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),k=parseInt("100",8),q=parseInt("010",8),B=parseInt("001",8),K=k|q,Q=n&B||n&q&&i===T||n&k&&t===s||n&K&&s===0;return Q}});var $=p((ae,j)=>{"use strict";o();var ce=S("fs"),_;process.platform==="win32"||global.TESTING_WINDOWS?_=H():_=D();j.exports=w;w.sync=J;function w(e,r,n){if(typeof r=="function"&&(n=r,r={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(t,i){w(e,r||{},function(s,T){s?i(s):t(T)})})}_(e,r||{},function(t,i){t&&(t.code==="EACCES"||r&&r.ignoreErrors)&&(t=null,i=!1),n(t,i)})}function J(e,r){try{return _.sync(e,r||{})}catch(n){if(r&&r.ignoreErrors||n.code==="EACCES")return!1;throw n}}});export{V as a,$ as b};