one 1.1.311 → 1.1.313
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cleanUrl.cjs +3 -8
- package/dist/cjs/cleanUrl.cjs.map +2 -2
- package/dist/cjs/cleanUrl.native.js +5 -8
- package/dist/cjs/cleanUrl.native.js.map +2 -2
- package/dist/cjs/cli.cjs +0 -2
- package/dist/cjs/cli.cjs.map +1 -1
- package/dist/cjs/cli.native.js +1 -2
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/config.cjs +1 -1
- package/dist/cjs/config.native.js +1 -1
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/constants.cjs +9 -1
- package/dist/cjs/constants.cjs.map +1 -1
- package/dist/cjs/constants.native.js +9 -1
- package/dist/cjs/constants.native.js.map +2 -2
- package/dist/cjs/createApp.native.cjs +1 -1
- package/dist/cjs/createApp.native.js +1 -1
- package/dist/cjs/createApp.native.js.map +1 -1
- package/dist/cjs/createHandleRequest.cjs +2 -1
- package/dist/cjs/createHandleRequest.cjs.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +2 -2
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- package/dist/cjs/matchers.cjs +1 -1
- package/dist/cjs/matchers.cjs.map +1 -1
- package/dist/cjs/matchers.native.js +1 -1
- package/dist/cjs/matchers.native.js.map +1 -1
- package/dist/cjs/serve.cjs +36 -22
- package/dist/cjs/serve.cjs.map +2 -2
- package/dist/cjs/serve.native.js +18 -19
- package/dist/cjs/serve.native.js.map +2 -2
- package/dist/cjs/useLoader.cjs +1 -1
- package/dist/cjs/useLoader.native.js +1 -1
- package/dist/cjs/vite/build.cjs +8 -4
- package/dist/cjs/vite/build.cjs.map +1 -1
- package/dist/cjs/vite/build.native.js +5 -2
- package/dist/cjs/vite/build.native.js.map +2 -2
- package/dist/cjs/vite/clientTreeShakePlugin.cjs +1 -1
- package/dist/cjs/vite/clientTreeShakePlugin.native.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.cjs +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
- package/dist/cjs/vite/one.cjs +43 -14
- package/dist/cjs/vite/one.cjs.map +1 -1
- package/dist/cjs/vite/one.native.js +39 -12
- package/dist/cjs/vite/one.native.js.map +2 -2
- package/dist/cjs/vite/virtualEntryPlugin.cjs +5 -5
- package/dist/cjs/vite/virtualEntryPlugin.native.js +5 -5
- package/dist/cjs/vite/virtualEntryPlugin.native.js.map +1 -1
- package/dist/cjs/vite/vitePluginSsrCss.cjs +1 -1
- package/dist/cjs/vite/vitePluginSsrCss.native.js +1 -1
- package/dist/esm/cleanUrl.js +10 -9
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +4 -9
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +5 -9
- package/dist/esm/cleanUrl.native.js.map +2 -2
- package/dist/esm/cli.js +0 -2
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +0 -2
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +0 -2
- package/dist/esm/cli.native.js.map +2 -2
- package/dist/esm/config.js +1 -1
- package/dist/esm/config.mjs +1 -1
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/config.native.js +1 -1
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/constants.js +5 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/constants.mjs +6 -2
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +5 -1
- package/dist/esm/constants.native.js.map +2 -2
- package/dist/esm/createApp.native.js +1 -1
- package/dist/esm/createApp.native.js.map +1 -1
- package/dist/esm/createHandleRequest.js +2 -1
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +2 -1
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +2 -1
- package/dist/esm/createHandleRequest.native.js.map +2 -2
- package/dist/esm/matchers.js +1 -1
- package/dist/esm/matchers.js.map +1 -1
- package/dist/esm/matchers.mjs +1 -1
- package/dist/esm/matchers.mjs.map +1 -1
- package/dist/esm/matchers.native.js +1 -1
- package/dist/esm/matchers.native.js.map +1 -1
- package/dist/esm/serve.js +12 -15
- package/dist/esm/serve.js.map +1 -1
- package/dist/esm/serve.mjs +30 -16
- package/dist/esm/serve.mjs.map +1 -1
- package/dist/esm/serve.native.js +13 -21
- package/dist/esm/serve.native.js.map +2 -2
- package/dist/esm/useLoader.js +1 -1
- package/dist/esm/useLoader.mjs +1 -1
- package/dist/esm/useLoader.native.js +1 -1
- package/dist/esm/vite/build.js +4 -2
- package/dist/esm/vite/build.js.map +1 -1
- package/dist/esm/vite/build.mjs +6 -2
- package/dist/esm/vite/build.mjs.map +1 -1
- package/dist/esm/vite/build.native.js +6 -2
- package/dist/esm/vite/build.native.js.map +2 -2
- package/dist/esm/vite/clientTreeShakePlugin.js +1 -1
- package/dist/esm/vite/clientTreeShakePlugin.mjs +1 -1
- package/dist/esm/vite/clientTreeShakePlugin.native.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +1 -1
- package/dist/esm/vite/one.js +43 -14
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs +43 -14
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +41 -14
- package/dist/esm/vite/one.native.js.map +2 -2
- package/dist/esm/vite/virtualEntryPlugin.js +5 -5
- package/dist/esm/vite/virtualEntryPlugin.mjs +5 -5
- package/dist/esm/vite/virtualEntryPlugin.mjs.map +1 -1
- package/dist/esm/vite/virtualEntryPlugin.native.js +5 -5
- package/dist/esm/vite/virtualEntryPlugin.native.js.map +1 -1
- package/dist/esm/vite/vitePluginSsrCss.js +1 -1
- package/dist/esm/vite/vitePluginSsrCss.mjs +1 -1
- package/dist/esm/vite/vitePluginSsrCss.native.js +1 -1
- package/package.json +8 -8
- package/src/cleanUrl.ts +10 -14
- package/src/cli.ts +0 -3
- package/src/config.ts +1 -1
- package/src/constants.ts +6 -0
- package/src/createApp.native.tsx +2 -2
- package/src/createHandleRequest.ts +2 -1
- package/src/matchers.ts +1 -1
- package/src/serve.ts +31 -16
- package/src/useLoader.ts +1 -1
- package/src/vite/build.ts +4 -1
- package/src/vite/clientTreeShakePlugin.ts +1 -1
- package/src/vite/createFileSystemRouter.tsx +1 -1
- package/src/vite/one.ts +44 -11
- package/src/vite/types.ts +5 -1
- package/src/vite/virtualEntryPlugin.ts +5 -5
- package/src/vite/vitePluginSsrCss.ts +1 -1
- package/types/cleanUrl.d.ts.map +1 -1
- package/types/constants.d.ts +4 -0
- package/types/constants.d.ts.map +1 -1
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/serve.d.ts.map +1 -1
- package/types/vite/build.d.ts.map +1 -1
- package/types/vite/one.d.ts.map +1 -1
- package/types/vite/types.d.ts +5 -1
- package/types/vite/types.d.ts.map +1 -1
- package/dist/cjs/router/constants.cjs +0 -26
- package/dist/cjs/router/constants.cjs.map +0 -6
- package/dist/cjs/router/constants.native.js +0 -26
- package/dist/cjs/router/constants.native.js.map +0 -6
- package/dist/cjs/vite/loadEnv.cjs +0 -47
- package/dist/cjs/vite/loadEnv.cjs.map +0 -6
- package/dist/cjs/vite/loadEnv.native.js +0 -44
- package/dist/cjs/vite/loadEnv.native.js.map +0 -6
- package/dist/esm/router/constants.js +0 -5
- package/dist/esm/router/constants.js.map +0 -6
- package/dist/esm/router/constants.mjs +0 -3
- package/dist/esm/router/constants.mjs.map +0 -1
- package/dist/esm/router/constants.native.js +0 -5
- package/dist/esm/router/constants.native.js.map +0 -6
- package/dist/esm/vite/loadEnv.js +0 -13
- package/dist/esm/vite/loadEnv.js.map +0 -6
- package/dist/esm/vite/loadEnv.mjs +0 -13
- package/dist/esm/vite/loadEnv.mjs.map +0 -1
- package/dist/esm/vite/loadEnv.native.js +0 -16
- package/dist/esm/vite/loadEnv.native.js.map +0 -6
- package/src/router/constants.ts +0 -4
- package/src/vite/loadEnv.ts +0 -11
- package/types/router/constants.d.ts +0 -2
- package/types/router/constants.d.ts.map +0 -1
- package/types/vite/loadEnv.d.ts +0 -2
- package/types/vite/loadEnv.d.ts.map +0 -1
package/dist/cjs/serve.native.js
CHANGED
@@ -26,20 +26,22 @@ __export(serve_exports, {
|
|
26
26
|
serve: () => serve
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(serve_exports);
|
29
|
-
var import_polyfills_server = require("./polyfills-server"), import_fs_extra = __toESM(require("fs-extra"), 1), import_node_path =
|
29
|
+
var import_polyfills_server = require("./polyfills-server"), import_fs_extra = __toESM(require("fs-extra"), 1), import_node_path = require("node:path"), import_vxrn = require("vxrn");
|
30
30
|
process.on("uncaughtException", function(err) {
|
31
31
|
console.error("[one] Uncaught exception", (err == null ? void 0 : err.stack) || err);
|
32
32
|
});
|
33
33
|
async function serve() {
|
34
|
-
var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
35
|
-
|
36
|
-
var
|
34
|
+
var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, buildInfo = await import_fs_extra.default.readJSON("dist/buildInfo.json");
|
35
|
+
process.env.ONE_CACHE_KEY = buildInfo.constants.CACHE_KEY;
|
36
|
+
var { labelProcess } = await import("./cli/label-process"), { removeUndefined } = await import("./utils/removeUndefined"), { loadUserOneOptions } = await import("./vite/one");
|
37
|
+
labelProcess("serve"), (0, import_vxrn.loadEnv)("production");
|
38
|
+
var oneOptions = await loadUserOneOptions("serve");
|
37
39
|
return process.env.VXRN_REACT_19 = "1", await (0, import_vxrn.serve)({
|
38
40
|
server: {
|
39
41
|
// fallback to one plugin
|
40
42
|
...oneOptions.server,
|
41
43
|
// override with any flags given to cli
|
42
|
-
...
|
44
|
+
...removeUndefined({
|
43
45
|
port: args.port ? +args.port : void 0,
|
44
46
|
host: args.host,
|
45
47
|
compress: args.compress,
|
@@ -48,15 +50,13 @@ async function serve() {
|
|
48
50
|
}),
|
49
51
|
async beforeStart(options, app) {
|
50
52
|
var _oneOptions_server_beforeStart, _oneOptions_server;
|
51
|
-
await ((_oneOptions_server = oneOptions.server) === null || _oneOptions_server === void 0 || (_oneOptions_server_beforeStart = _oneOptions_server.beforeStart) === null || _oneOptions_server_beforeStart === void 0 ? void 0 : _oneOptions_server_beforeStart.call(_oneOptions_server, options, app)), await oneServe(oneOptions, options, app);
|
53
|
+
await ((_oneOptions_server = oneOptions.server) === null || _oneOptions_server === void 0 || (_oneOptions_server_beforeStart = _oneOptions_server.beforeStart) === null || _oneOptions_server_beforeStart === void 0 ? void 0 : _oneOptions_server_beforeStart.call(_oneOptions_server, options, app)), await oneServe(oneOptions, options, buildInfo, app);
|
52
54
|
}
|
53
55
|
}
|
54
56
|
});
|
55
57
|
}
|
56
|
-
async function oneServe(options, vxrnOptions, app) {
|
57
|
-
var _options_web, _options_build_api, _options_build,
|
58
|
-
return import_node_path.default.resolve(root, p);
|
59
|
-
}, redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
|
58
|
+
async function oneServe(options, vxrnOptions, buildInfo, app) {
|
59
|
+
var _options_web, _options_build_api, _options_build, { createHandleRequest } = await import("./createHandleRequest"), { isResponse } = await import("./utils/isResponse"), { isStatusRedirect } = await import("./utils/isStatus"), { resolveAPIRequest } = await import("./vite/resolveAPIRequest"), isAPIRequest = /* @__PURE__ */ new WeakMap(), root = vxrnOptions.root || ".", redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
|
60
60
|
if (redirects) {
|
61
61
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
62
62
|
try {
|
@@ -81,7 +81,6 @@ async function oneServe(options, vxrnOptions, app) {
|
|
81
81
|
}
|
82
82
|
}
|
83
83
|
}
|
84
|
-
var buildInfo = await import_fs_extra.default.readJSON(toAbsolute("dist/buildInfo.json"));
|
85
84
|
if (!buildInfo)
|
86
85
|
throw new Error("No build info found, have you run build?");
|
87
86
|
var { routeMap, builtRoutes } = buildInfo, routeToBuildInfo = {}, _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
|
@@ -103,10 +102,10 @@ async function oneServe(options, vxrnOptions, app) {
|
|
103
102
|
var serverOptions = {
|
104
103
|
...options,
|
105
104
|
root
|
106
|
-
}, entryServer = (0, import_vxrn.getServerEntry)(serverOptions), entry = await import(entryServer), render = entry.default.render, apiCJS = ((_options_build = options.build) === null || _options_build === void 0 || (_options_build_api = _options_build.api) === null || _options_build_api === void 0 ? void 0 : _options_build_api.outputFormat) === "cjs", handleRequest =
|
105
|
+
}, entryServer = (0, import_vxrn.getServerEntry)(serverOptions), entry = await import(entryServer), render = entry.default.render, apiCJS = ((_options_build = options.build) === null || _options_build === void 0 || (_options_build_api = _options_build.api) === null || _options_build_api === void 0 ? void 0 : _options_build_api.outputFormat) === "cjs", handleRequest = createHandleRequest({}, {
|
107
106
|
async handleAPI(param) {
|
108
107
|
var { route: route2, request, loaderProps } = param, apiFile = (0, import_node_path.join)(process.cwd(), "dist", "api", route2.page.replace("[", "_").replace("]", "_") + (apiCJS ? ".cjs" : ".js"));
|
109
|
-
return isAPIRequest.set(request, !0),
|
108
|
+
return isAPIRequest.set(request, !0), resolveAPIRequest(async function() {
|
110
109
|
try {
|
111
110
|
return await import(apiFile);
|
112
111
|
} catch (err) {
|
@@ -129,11 +128,11 @@ async function oneServe(options, vxrnOptions, app) {
|
|
129
128
|
async handleSSR(param) {
|
130
129
|
var { route: route2, url, loaderProps } = param;
|
131
130
|
if (route2.type === "ssr") {
|
132
|
-
var
|
133
|
-
if (!
|
134
|
-
throw new Error(`No buildinfo found for ${url}, route: ${route2.page}`);
|
131
|
+
var _$buildInfo = routeToBuildInfo[route2.page];
|
132
|
+
if (!_$buildInfo)
|
133
|
+
throw new Error(`No buildinfo found for ${url}, route: ${route2.page}, in keys: ${Object.keys(routeToBuildInfo)}`);
|
135
134
|
try {
|
136
|
-
var _exported_loader, exported = await import(
|
135
|
+
var _exported_loader, exported = await import(_$buildInfo.serverJsPath), loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps)), preloads = _$buildInfo.preloads, headers = new Headers();
|
137
136
|
return headers.set("content-type", "text/html"), new Response(await render({
|
138
137
|
loaderData,
|
139
138
|
loaderProps,
|
@@ -164,8 +163,8 @@ async function oneServe(options, vxrnOptions, app) {
|
|
164
163
|
try {
|
165
164
|
var request = context.req.raw, response = await handleRequest.handler(request);
|
166
165
|
if (response) {
|
167
|
-
if (
|
168
|
-
if (
|
166
|
+
if (isResponse(response)) {
|
167
|
+
if (isStatusRedirect(response.status)) {
|
169
168
|
var location = `${response.headers.get("location") || ""}`;
|
170
169
|
return context.redirect(location, response.status);
|
171
170
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/serve.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;8BAAO,+BAEP,kBAAoB,iCAEpB,
|
5
|
-
"names": ["process", "on", "err", "console", "error", "stack", "serve", "args", "
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;8BAAO,+BAEP,kBAAoB,iCAEpB,mBAAqB,sBAErB,cAA4D;AAK5DA,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,6BAA4BF,OAAAA,OAAAA,SAAAA,IAAKG,UAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBI,QAAAA;MAAMC,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC,GACnDC,YAAa,MAAMC,gBAAAA,QAAQC,SAAS,qBAAqB;AAG/DV,UAAQW,IAAIC,gBAAg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6D,KACbJ,UACA,KACAjE,aAAaM,IAAI6B,OAAAA,IACb;UACE,iBAAiB;QACnB,IACAjD,MAAAA;MAER;IACF,SAAStB,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAMkG,KAAAA;EACR,CAAA;AACF;",
|
5
|
+
"names": ["process", "on", "err", "console", "error", "stack", "serve", "args", "buildInfo", "FSExtra", "readJSON", "env", "ONE_CACHE_KEY", "constants", "CACHE_KEY", "labelProcess", "removeUndefined", "loadUserOneOptions", "loadEnv", "oneOptions", "VXRN_REACT_19", "vxrnServe", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "createHandleRequest", "isResponse", "isStatusRedirect", "resolveAPIRequest", "isAPIRequest", "WeakMap", "root", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "getServerEntry", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "join", "cwd", "page", "set", "params", "handleSSR", "url", "type", "Object", "keys", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
|
6
6
|
}
|
package/dist/cjs/useLoader.cjs
CHANGED
@@ -68,7 +68,7 @@ function useLoader(loader) {
|
|
68
68
|
try {
|
69
69
|
const response = await (async () => {
|
70
70
|
if (isNative) {
|
71
|
-
const nativeLoaderJSUrl = `${loaderJSUrl}
|
71
|
+
const nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
|
72
72
|
try {
|
73
73
|
const loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
|
74
74
|
if (!loaderJsCodeResp.ok) throw new Error(`Response not ok: ${loaderJsCodeResp.status}`);
|
@@ -55,7 +55,7 @@ function useLoader(loader) {
|
|
55
55
|
try {
|
56
56
|
var response = await async function() {
|
57
57
|
if (isNative) {
|
58
|
-
var nativeLoaderJSUrl = `${loaderJSUrl}
|
58
|
+
var nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
|
59
59
|
try {
|
60
60
|
var loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
|
61
61
|
if (!loaderJsCodeResp.ok)
|
package/dist/cjs/vite/build.cjs
CHANGED
@@ -34,7 +34,8 @@ __export(build_exports, {
|
|
34
34
|
build: () => build
|
35
35
|
});
|
36
36
|
module.exports = __toCommonJS(build_exports);
|
37
|
-
var
|
37
|
+
var constants = __toESM(require("../constants.cjs"), 1),
|
38
|
+
import_fs_extra = __toESM(require("fs-extra"), 1),
|
38
39
|
import_micromatch = __toESM(require("micromatch"), 1),
|
39
40
|
import_node_module = require("node:module"),
|
40
41
|
import_node_path = __toESM(require("node:path"), 1),
|
@@ -42,10 +43,10 @@ var import_fs_extra = __toESM(require("fs-extra"), 1),
|
|
42
43
|
import_vite = require("vite"),
|
43
44
|
import_vxrn = require("vxrn"),
|
44
45
|
import_cleanUrl = require("../cleanUrl.cjs"),
|
46
|
+
import_label_process = require("../cli/label-process.cjs"),
|
45
47
|
import_getManifest = require("./getManifest.cjs"),
|
46
48
|
import_one = require("./one.cjs"),
|
47
|
-
import_replaceLoader = require("./replaceLoader.cjs")
|
48
|
-
import_label_process = require("../cli/label-process.cjs");
|
49
|
+
import_replaceLoader = require("./replaceLoader.cjs");
|
49
50
|
const import_meta = {},
|
50
51
|
{
|
51
52
|
ensureDir,
|
@@ -353,7 +354,10 @@ ${JSON.stringify(params || null, null, 2)}`), console.error(err), process.exit(1
|
|
353
354
|
cleanPath,
|
354
355
|
htmlPath
|
355
356
|
}) => (acc[cleanPath] = htmlPath, acc), {}),
|
356
|
-
builtRoutes
|
357
|
+
builtRoutes,
|
358
|
+
constants: JSON.parse(JSON.stringify({
|
359
|
+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I;AACF,kBAAM,IAAI;AAAA,cACR;AAAA;AAAA,0BAEU,IAAI;AAAA,0BACJ,IAAI;AAAA,8BACA,QAAQ;AAAA;AAAA;AAAA,IAGlC,KAAK,UAAU,QAAQ,MAAM,CAAC,CAAC;AAAA,YACrB;AAGF,iBAAO,MAAM,KAAK,QAAQ,KAAK,EAAE,EAAE,QAAQ,KAAK,EAAE;AAAA,QACpD;AACA,eAAO;AAAA,MACT;AACA,aAAO;AAAA,IACT,CAAC,EACA,KAAK,GAAG,CAAC;AAAA,EACd,GAAG;AAEH,SAAO,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,WAAW,GAAG;AAC7D;AAEA,SAAS,YAAY,QAAgB;AACnC,SAAO,OAAO,QAAQ,uBAAuB,MAAM;AACrD;AAEA,SAAS,wBAAwB,MAAgB;AAM/C,QAAM,eAAe,oBAJC,KAAK,IAAI,CAAC,QAAQ,YAAY,GAAG,CAAC,EAEjB,KAAK,GAAG,CAEU;AACzD,SAAO,IAAI,OAAO,YAAY;AAChC;",
|
5
5
|
"names": ["FSExtra", "vxrnBuild", "Path", "viteBuild", "MicroMatch", "file"]
|
6
6
|
}
|
@@ -26,7 +26,7 @@ __export(build_exports, {
|
|
26
26
|
build: () => build
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(build_exports);
|
29
|
-
var import_fs_extra = __toESM(require("fs-extra"), 1), import_micromatch = __toESM(require("micromatch"), 1), import_node_module = require("node:module"), import_node_path = __toESM(require("node:path"), 1), import_rollup_plugin_node_externals = require("rollup-plugin-node-externals"), import_vite = require("vite"), import_vxrn = require("vxrn"), import_cleanUrl = require("../cleanUrl"),
|
29
|
+
var constants = __toESM(require("../constants"), 1), import_fs_extra = __toESM(require("fs-extra"), 1), import_micromatch = __toESM(require("micromatch"), 1), import_node_module = require("node:module"), import_node_path = __toESM(require("node:path"), 1), import_rollup_plugin_node_externals = require("rollup-plugin-node-externals"), import_vite = require("vite"), import_vxrn = require("vxrn"), import_cleanUrl = require("../cleanUrl"), import_label_process = require("../cli/label-process"), import_getManifest = require("./getManifest"), import_one = require("./one"), import_replaceLoader = require("./replaceLoader");
|
30
30
|
const import_meta = {};
|
31
31
|
var { ensureDir, readFile, outputFile } = import_fs_extra.default;
|
32
32
|
process.on("uncaughtException", function(err) {
|
@@ -378,7 +378,10 @@ ${JSON.stringify(params || null, null, 2)}`), console.error(err), process.exit(1
|
|
378
378
|
return acc[cleanPath] = htmlPath, acc;
|
379
379
|
}, {}), buildInfoForWriting = {
|
380
380
|
routeMap,
|
381
|
-
builtRoutes
|
381
|
+
builtRoutes,
|
382
|
+
constants: JSON.parse(JSON.stringify({
|
383
|
+
...constants
|
384
|
+
}))
|
382
385
|
}, buildInfo = {
|
383
386
|
...buildInfoForWriting,
|
384
387
|
...vxrnOutput
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/build.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;sBAAoB,iCACpB,oBAAuB,mCACvB,qBAA8B,wBAC9B,mBAAqC,kCAErC,sCAA8B,yCAC9B,cAAmE,iBACnE,cAMO,iBACP,kBAA8C,wBAG9C,qBAA4B,0BAC5B,aAAmC,kBACnC,uBAA8B,4BAE9B,uBAA6B;AArB7B;AAuBA,IAAM,EAAEA,WAAWC,UAAUC,WAAU,IAAKC,gBAAAA;AAE5CC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,OAAMF,OAAAA,OAAAA,SAAAA,IAAKG,YAAWH,GAAAA;AAChC,CAAA;AAEA,eAAsBI,MAAMC,MAG3B;MAG4BC,2BAAAA,oBAseVA,kBAA2BC;AAxe5CC,yCAAa,OAAA;AACb,MAAMF,cAAc,UAAMG,+BAAmB,OAAA,GAClBH,wCAArBI,sBAAqBJ,0CAAAA,qBAAAA,YAAYF,WAAK,QAAjBE,uBAAAA,WAAAA,4B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I,GAAAA;MAE9CC,mBAAmBF,cAAcvK,KAAK,GAAA,GAEtC0K,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
|
5
|
-
"names": ["ensureDir", "readFile", "outputFile", "FSExtra", "process", "on", "err", "console", "error", "message", "build", "args", "userOptions", "options", "labelProcess", "loadUserOneOptions", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "vxrnBuild", "analyze", "fillOptions", "toAbsolute", "p", "Path", "resolve", "root", "manifest", "getManifest", "optimizeDeps", "getOptimizeDeps", "apiBuildConfig", "mergeConfig", "webBuildConfig", "configFile", "appType", "apiRoutes", "length", "info", "processEnvDefines", "Object", "fromEntries", "entries", "map", "key", "value", "JSON", "stringify", "apiRouteExternalRegex", "buildRegexExcludingDeps", "include", "apiEntryPoints", "reduce", "page", "file", "slice", "join", "apiOutputFormat", "api", "treeshake", "viteBuild", "plugins", "nodeExternals", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "rollupRemoveUnusedImportsPlugin", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "createRequire", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "relative", "cwd", "onlyBuild", "buildArgs", "only", "MicroMatch", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "x", "entryImports", "layoutEntries", "layouts", "layout", "clientKey", "contextKey", "layoutImports", "entry", "preloadSetupFilePreloads", "setupFile", "needle", "preloads", "path", "allEntries", "allCSS", "DEBUG", "serverJsPath", "fileName", "Error", "cause", "generateStaticParams", "paramsList", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "params", "cleanId", "getPathnameFromFilePath", "htmlPath", "removeTrailingSlash", "clientJsPath", "htmlOutPath", "loaderData", "cleanPath", "preloadPath", "getPreloadPath", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "replaceLoader", "loaderPartialPath", "getLoaderPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "buildInfo", "writeJSON", "postBuildLogs", "platform", "web", "deploy", "afterBuild", "VXRN_ANALYZE_BUNDLE", "forEach", "log", "src", "dest", "copy", "overwrite", "errorOnExist", "strict", "nameWithParams", "part", "split", "escapeRegex", "string", "deps", "sanitizedDeps", "dep", "exclusionPattern", "regexPattern", "RegExp"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;gBAA2B,qCAC3B,kBAAoB,iCACpB,oBAAuB,mCACvB,qBAA8B,wBAC9B,mBAAqC,kCAErC,sCAA8B,yCAC9B,cAAmE,iBACnE,cAMO,iBACP,kBAA8C,wBAC9C,uBAA6B,iCAG7B,qBAA4B,0BAC5B,aAAmC,kBACnC,uBAA8B;AArB9B;AAwBA,IAAM,EAAEA,WAAWC,UAAUC,WAAU,IAAKC,gBAAAA;AAE5CC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,OAAMF,OAAAA,OAAAA,SAAAA,IAAKG,YAAWH,GAAAA;AAChC,CAAA;AAEA,eAAsBI,MAAMC,MAG3B;MAI4BC,2BAAAA,oBAueVA,kBAA2BC;AA1e5CC,yCAAa,OAAA;AAEb,MAAMF,cAAc,UAAMG,+BAAmB,OAAA,GAClBH,wCAArBI,sBAAqBJ,0CAAAA,qBAAAA,YAAYF,WAAK,QAAjBE,uBAAAA,WAAA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C,wBAAwB+K,MAAc;AAE7C,MAAMC,gBAAgBD,KAAKrL,IAAI,SAACuL,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAczK,KAAK,GAAA,GAEtC4K,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
|
5
|
+
"names": ["ensureDir", "readFile", "outputFile", "FSExtra", "process", "on", "err", "console", "error", "message", "build", "args", "userOptions", "options", "labelProcess", "loadUserOneOptions", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "vxrnBuild", "analyze", "fillOptions", "toAbsolute", "p", "Path", "resolve", "root", "manifest", "getManifest", "optimizeDeps", "getOptimizeDeps", "apiBuildConfig", "mergeConfig", "webBuildConfig", "configFile", "appType", "apiRoutes", "length", "info", "processEnvDefines", "Object", "fromEntries", "entries", "map", "key", "value", "JSON", "stringify", "apiRouteExternalRegex", "buildRegexExcludingDeps", "include", "apiEntryPoints", "reduce", "page", "file", "slice", "join", "apiOutputFormat", "api", "treeshake", "viteBuild", "plugins", "nodeExternals", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "rollupRemoveUnusedImportsPlugin", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "createRequire", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "relative", "cwd", "onlyBuild", "buildArgs", "only", "MicroMatch", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "x", "entryImports", "layoutEntries", "layouts", "layout", "clientKey", "contextKey", "layoutImports", "entry", "preloadSetupFilePreloads", "setupFile", "needle", "preloads", "path", "allEntries", "allCSS", "DEBUG", "serverJsPath", "fileName", "Error", "cause", "generateStaticParams", "paramsList", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "params", "cleanId", "getPathnameFromFilePath", "htmlPath", "removeTrailingSlash", "clientJsPath", "htmlOutPath", "loaderData", "cleanPath", "preloadPath", "getPreloadPath", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "replaceLoader", "loaderPartialPath", "getLoaderPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "constants", "parse", "buildInfo", "writeJSON", "postBuildLogs", "platform", "web", "deploy", "afterBuild", "VXRN_ANALYZE_BUNDLE", "forEach", "log", "src", "dest", "copy", "overwrite", "errorOnExist", "strict", "nameWithParams", "part", "split", "escapeRegex", "string", "deps", "sanitizedDeps", "dep", "exclusionPattern", "regexPattern", "RegExp"]
|
6
6
|
}
|
@@ -43,7 +43,7 @@ var import_generator = __toESM(require("@babel/generator"), 1),
|
|
43
43
|
const traverse = import_traverse.default.default,
|
44
44
|
generate = import_generator.default.default,
|
45
45
|
clientTreeShakePlugin = () => ({
|
46
|
-
name: "one
|
46
|
+
name: "one-client-tree-shake",
|
47
47
|
enforce: "pre",
|
48
48
|
applyToEnvironment(env) {
|
49
49
|
return env.name === "client" || env.name === "ios" || env.name === "android";
|
@@ -29,7 +29,7 @@ __export(clientTreeShakePlugin_exports, {
|
|
29
29
|
module.exports = __toCommonJS(clientTreeShakePlugin_exports);
|
30
30
|
var import_generator = __toESM(require("@babel/generator"), 1), import_parser = require("@babel/parser"), import_traverse = __toESM(require("@babel/traverse"), 1), import_babel_dead_code_elimination = require("babel-dead-code-elimination"), import_constants = require("./constants"), traverse = import_traverse.default.default, generate = import_generator.default.default, clientTreeShakePlugin = function() {
|
31
31
|
return {
|
32
|
-
name: "one
|
32
|
+
name: "one-client-tree-shake",
|
33
33
|
enforce: "pre",
|
34
34
|
applyToEnvironment(env) {
|
35
35
|
return env.name === "client" || env.name === "ios" || env.name === "android";
|
package/dist/cjs/vite/one.cjs
CHANGED
@@ -35,26 +35,26 @@ __export(one_exports, {
|
|
35
35
|
one: () => one
|
36
36
|
});
|
37
37
|
module.exports = __toCommonJS(one_exports);
|
38
|
-
var
|
38
|
+
var import_resolve = require("@vxrn/resolve"),
|
39
|
+
import_node_events = __toESM(require("node:events"), 1),
|
39
40
|
import_node_path = __toESM(require("node:path"), 1),
|
40
41
|
import_vite = require("vite"),
|
41
42
|
import_vite_tsconfig_paths = __toESM(require("vite-tsconfig-paths"), 1),
|
42
43
|
import_vxrn = require("vxrn"),
|
44
|
+
import_constants = require("../constants.cjs"),
|
43
45
|
import_polyfills_server = require("../polyfills-server.cjs"),
|
44
46
|
import_existsAsync = require("../utils/existsAsync.cjs"),
|
45
|
-
import_resolve = require("@vxrn/resolve"),
|
46
47
|
import_clientTreeShakePlugin = require("./clientTreeShakePlugin.cjs"),
|
47
48
|
import_createFileSystemRouter = require("./createFileSystemRouter.cjs"),
|
48
49
|
import_ensureTsConfig = require("./ensureTsConfig.cjs"),
|
49
50
|
import_fixDependenciesPlugin = require("./fixDependenciesPlugin.cjs"),
|
50
51
|
import_generateTypesForRoutes = require("./generateTypesForRoutes.cjs"),
|
51
|
-
import_loadEnv = require("./loadEnv.cjs"),
|
52
52
|
import_virtualEntryPlugin = require("./virtualEntryPlugin.cjs"),
|
53
53
|
import_vitePluginSsrCss = require("./vitePluginSsrCss.cjs");
|
54
54
|
import_node_events.default.setMaxListeners(1e3);
|
55
55
|
globalThis.__vxrnEnableNativeEnv = !0;
|
56
56
|
function one(options = {}) {
|
57
|
-
oneOptions = options,
|
57
|
+
oneOptions = options, options.config?.ensureTSConfig !== !1 && (0, import_ensureTsConfig.ensureTSConfig)(), globalThis.__vxrnPluginConfig__ = options;
|
58
58
|
const {
|
59
59
|
optimizeDeps
|
60
60
|
} = (0, import_vxrn.getOptimizeDeps)("build"),
|
@@ -65,7 +65,17 @@ function one(options = {}) {
|
|
65
65
|
`${optimizeIds.map(id => id.replace(/[#-.]|[[-^]|[?|{}]/g, "\\$&")).join("|")}`);
|
66
66
|
let tsConfigPathsPlugin = null;
|
67
67
|
const vxrnOptions = (0, import_vxrn.getOptionsFilled)(),
|
68
|
-
|
68
|
+
{
|
69
|
+
clientEnvDefine
|
70
|
+
} = (0, import_vxrn.loadEnv)(vxrnOptions?.mode ?? "development"),
|
71
|
+
devAndProdPlugins = [{
|
72
|
+
name: "one-define-env",
|
73
|
+
config() {
|
74
|
+
return {
|
75
|
+
define: clientEnvDefine
|
76
|
+
};
|
77
|
+
}
|
78
|
+
},
|
69
79
|
// proxy because you cant add a plugin inside a plugin
|
70
80
|
new Proxy({
|
71
81
|
name: "one:tsconfig-paths",
|
@@ -113,24 +123,40 @@ function one(options = {}) {
|
|
113
123
|
return {
|
114
124
|
define: {
|
115
125
|
...(options.web?.defaultRenderMode && {
|
116
|
-
"process.env.
|
126
|
+
"process.env.ONE_DEFAULT_RENDER_MODE": JSON.stringify(options.web.defaultRenderMode),
|
127
|
+
"import.meta.env.ONE_DEFAULT_RENDER_MODE": JSON.stringify(options.web.defaultRenderMode)
|
117
128
|
}),
|
118
129
|
...(options.setupFile && {
|
119
|
-
"process.env.
|
130
|
+
"process.env.ONE_SETUP_FILE": JSON.stringify(options.setupFile)
|
120
131
|
}),
|
121
132
|
...(process.env.NODE_ENV !== "production" && vxrnOptions && {
|
122
|
-
"process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
|
133
|
+
"process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url),
|
134
|
+
"import.meta.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
|
123
135
|
})
|
124
136
|
},
|
125
137
|
environments: {
|
126
138
|
client: {
|
127
139
|
define: {
|
128
|
-
"process.env.VITE_ENVIRONMENT": '"client"'
|
140
|
+
"process.env.VITE_ENVIRONMENT": '"client"',
|
141
|
+
"import.meta.env.VITE_ENVIRONMENT": '"client"'
|
129
142
|
}
|
130
143
|
},
|
131
144
|
ssr: {
|
132
145
|
define: {
|
133
|
-
"process.env.VITE_ENVIRONMENT": '"ssr"'
|
146
|
+
"process.env.VITE_ENVIRONMENT": '"ssr"',
|
147
|
+
"import.meta.env.VITE_ENVIRONMENT": '"ssr"'
|
148
|
+
}
|
149
|
+
},
|
150
|
+
ios: {
|
151
|
+
define: {
|
152
|
+
"process.env.VITE_ENVIRONMENT": '"ios"',
|
153
|
+
"import.meta.env.VITE_ENVIRONMENT": '"ios"'
|
154
|
+
}
|
155
|
+
},
|
156
|
+
android: {
|
157
|
+
define: {
|
158
|
+
"process.env.VITE_ENVIRONMENT": '"android"',
|
159
|
+
"import.meta.env.VITE_ENVIRONMENT": '"android"'
|
134
160
|
}
|
135
161
|
}
|
136
162
|
}
|
@@ -180,16 +206,19 @@ function one(options = {}) {
|
|
180
206
|
...options,
|
181
207
|
root: "app"
|
182
208
|
}), {
|
183
|
-
name: "define-
|
209
|
+
name: "one-define-environment",
|
184
210
|
config() {
|
185
211
|
if (options.app?.key) return {
|
186
212
|
define: {
|
187
|
-
"process.env.
|
213
|
+
"process.env.ONE_APP_NAME": JSON.stringify(options.app.key),
|
214
|
+
"import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key),
|
215
|
+
"process.env.ONE_CACHE_KEY": JSON.stringify(import_constants.CACHE_KEY),
|
216
|
+
"import.meta.env.ONE_CACHE_KEY": JSON.stringify(import_constants.CACHE_KEY)
|
188
217
|
}
|
189
218
|
};
|
190
219
|
}
|
191
220
|
}, {
|
192
|
-
name: "use-react-18-for-native",
|
221
|
+
name: "one-use-react-18-for-native",
|
193
222
|
enforce: "pre",
|
194
223
|
async config() {
|
195
224
|
const sharedNativeConfig = {
|
@@ -213,7 +242,7 @@ function one(options = {}) {
|
|
213
242
|
};
|
214
243
|
}
|
215
244
|
}, {
|
216
|
-
name: "optimize-deps-load-web-extensions",
|
245
|
+
name: "one-optimize-deps-load-web-extensions",
|
217
246
|
enforce: "pre",
|
218
247
|
applyToEnvironment(environment) {
|
219
248
|
return (0, import_vxrn.isWebEnvironment)(environment);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/one.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA4B,0BAC5B,qBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAA6E,iBAC7E,mBAA0B,yBAC1B,0BAAO,gCACP,qBAA4B,iCAC5B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCAEvC,4BAAmD,iCACnD,0BAAiC;AAEjC,mBAAAA,QAAO,gBAAgB,GAAK;AAG5B,WAAW,wBAAwB;AAE5B,SAAS,IAAI,UAA6B,CAAC,GAAiB;AACjE,eAAa,SAGT,QAAQ,QAAQ,mBAAmB,UAChC,sCAAe,GAGtB,WAAW,uBAA0B;AAGrC,QAAM,EAAE,aAAa,QAAI,6BAAgB,OAAO,GAC1C,cAAc,aAAa,SAC3B,kBAAkB,IAAI;AAAA;AAAA;AAAA,IAG1B,GAAG,YAAY,IAAI,CAAC,OAAO,GAAG,QAAQ,uBAAuB,MAAM,CAAC,EAAE,KAAK,GAAG,CAAC;AAAA,EACjF;AAEA,MAAI,sBAAqC;AAEzC,QAAM,kBAAc,8BAAiB,GAE/B,EAAE,gBAAgB,QAAI,qBAAQ,aAAa,QAAQ,aAAa,GAEhE,oBAAoB;AAAA,IACxB;AAAA,MACE,MAA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