@hot-updater/console 0.36.7 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/BundleIdDisplay-D4ErdU5_.js +1 -0
- package/.output/public/assets/InsightsCapabilityContext-B42VqvP6.js +1 -0
- package/.output/public/assets/api-keys-api-DGVTTvTJ.js +1 -0
- package/.output/public/assets/api-keys-z16OZIP4.js +1 -0
- package/.output/public/assets/badge-Br_KDO0J.js +1 -0
- package/.output/public/assets/card-DzuEXvyJ.js +1 -0
- package/.output/public/assets/chart-no-axes-combined-FaYMGmQS.js +1 -0
- package/.output/public/assets/createServerFn-gM2-LFBy.js +3 -0
- package/.output/public/assets/dialog-BeAENgez.js +1 -0
- package/.output/public/assets/dist-Bssh_cv0.js +1 -0
- package/.output/public/assets/field-Buq148-A.js +1 -0
- package/.output/public/assets/index-uOpQAIC4.js +10 -0
- package/.output/public/assets/input-group-B3p5UpyW.js +1 -0
- package/.output/public/assets/insights-DJTr7Ozn.js +1 -0
- package/.output/public/assets/insights-api-DVMOoRMS.js +1 -0
- package/.output/public/assets/installations-BY64iIAK.js +2 -0
- package/.output/public/assets/installations-D5v9i3AL.js +1 -0
- package/.output/public/assets/lazyRouteComponent-DKYu5cZJ.js +1 -0
- package/.output/public/assets/preload-helper-CQ36nxok.js +1 -0
- package/.output/public/assets/refresh-cw-BkbfZ62O.js +1 -0
- package/.output/public/assets/routes-BuoI5-Cr.js +2 -0
- package/.output/public/assets/routes-C8fvgETO.js +1 -0
- package/.output/public/assets/search-qsIDvS2I.js +1 -0
- package/.output/public/assets/shield-check-DE_hVuHu.js +1 -0
- package/.output/public/assets/signing-mJD88Y4C.js +1 -0
- package/.output/public/assets/styles-BZIG7t42.css +2 -0
- package/.output/public/assets/table-RamFEclP.js +1 -0
- package/.output/public/assets/useCompositeListItem-ChzDqdpc.js +42 -0
- package/.output/public/assets/useMutation-JsGVjQMY.js +1 -0
- package/.output/public/assets/useOpenInteractionType-Dwfy-SpA.js +1 -0
- package/.output/server/__23tanstack-start-server-fn-resolver-Dftxlm2E.mjs +146 -0
- package/.output/server/_libs/@base-ui/react+[...].mjs +16124 -0
- package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +1554 -0
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +41 -10
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +132 -0
- package/.output/server/_libs/d3-array.mjs +231 -0
- package/.output/server/_libs/d3-color.mjs +330 -0
- package/.output/server/_libs/d3-format.mjs +252 -0
- package/.output/server/_libs/d3-interpolate.mjs +207 -0
- package/.output/server/_libs/d3-path.mjs +77 -0
- package/.output/server/_libs/d3-scale+[...].mjs +1907 -0
- package/.output/server/_libs/d3-shape.mjs +818 -0
- package/.output/server/_libs/decimal.js-light.mjs +884 -0
- package/.output/server/_libs/es-toolkit.mjs +1134 -0
- package/.output/server/_libs/eventemitter3.mjs +236 -0
- package/.output/server/_libs/immer.mjs +532 -0
- package/.output/server/_libs/lucide-react.mjs +141 -13
- package/.output/server/_libs/next-themes.mjs +2 -2
- package/.output/server/_libs/react-redux+[...].mjs +205 -0
- package/.output/server/_libs/recharts+[...].mjs +14117 -0
- package/.output/server/_libs/sonner.mjs +2 -2
- package/.output/server/_libs/tanstack__query-core.mjs +114 -1
- package/.output/server/_libs/tanstack__react-query.mjs +3 -4
- package/.output/server/_runtime.mjs +10 -1
- package/.output/server/_ssr/BundleActivityChart-CWcdPuUn.mjs +288 -0
- package/.output/server/_ssr/BundleIdDisplay-BEvB3MvA.mjs +13 -0
- package/.output/server/_ssr/InsightsCapabilityContext-Cx8fjm2s.mjs +15 -0
- package/.output/server/_ssr/api-keys-CpBqHpuC.mjs +300 -0
- package/.output/server/_ssr/api-keys-api-Czkp57UV.mjs +60 -0
- package/.output/server/_ssr/api-keys-rpc-BTtMDSoR.mjs +136 -0
- package/.output/server/_ssr/api-rpc-BEX8ISai.mjs +1468 -0
- package/.output/server/_ssr/auth-BF8mbAgF.mjs +21 -0
- package/.output/server/_ssr/auth-rpc-BFMEC-TT.mjs +24 -0
- package/.output/server/_ssr/auth.server-DW71WzsD.mjs +47 -0
- package/.output/server/_ssr/badge-CpWXQwyF.mjs +26 -0
- package/.output/server/_ssr/bundle-signing-rpc-BbCFUQSu.mjs +16 -0
- package/.output/server/_ssr/bundle-signing.server-C4NW5mWx.mjs +12 -0
- package/.output/server/_ssr/card-Bsc8mRis.mjs +86 -0
- package/.output/server/_ssr/config-Dv8qLDZ0.mjs +13 -0
- package/.output/server/_ssr/config.server-DQYEr_5X.mjs +361 -0
- package/.output/server/_ssr/{createServerFn-DzU0k62V.mjs → createServerFn-B2hcXoPM.mjs} +1 -1
- package/.output/server/_ssr/createServerRpc-DB29C_5p.mjs +12 -0
- package/.output/server/_ssr/{sidebar-Cv_H0_Jv.mjs → createSsrRpc-DhfrxEjg.mjs} +68 -50
- package/.output/server/_ssr/databaseRows-QlCYLi0H.mjs +166 -0
- package/.output/server/_ssr/deleteBundle-Cu_XOMt0.mjs +66 -0
- package/.output/server/_ssr/dialog-C0vKUp8R.mjs +170 -0
- package/.output/server/_ssr/dist-BVSLTpoP.mjs +250 -0
- package/.output/server/_ssr/downloadBundle-CNnYxYO2.mjs +24 -0
- package/.output/server/_ssr/{empty-plugin-adapters-B4HCzgmM.mjs → empty-plugin-adapters-B5QvGpEl.mjs} +1 -1
- package/.output/server/_ssr/field-DASCh-5d.mjs +74 -0
- package/.output/server/_ssr/{getBundleChildren-CVtSiH5t.mjs → getBundleChildren-BcRMFoDF.mjs} +10 -18
- package/.output/server/_ssr/input-group-etIsBUqv.mjs +288 -0
- package/.output/server/_ssr/insights-api-C1F7UreR.mjs +71 -0
- package/.output/server/_ssr/insights-input-9fEJF-ZG.mjs +96 -0
- package/.output/server/_ssr/insights-rpc-C-8R6kED.mjs +155 -0
- package/.output/server/_ssr/insights-ygT_aIfo.mjs +858 -0
- package/.output/server/_ssr/installations-DqRT1QTd.mjs +535 -0
- package/.output/server/_ssr/installations-K8TCYTYh.mjs +19 -0
- package/.output/server/_ssr/router-BxBEvtF1.mjs +513 -0
- package/.output/server/_ssr/routes-BC7rn-tf.mjs +37 -0
- package/.output/server/_ssr/routes-CM5KAwpB.mjs +2285 -0
- package/.output/server/_ssr/runtime.server-la7TRAH_.mjs +527 -0
- package/.output/server/_ssr/server-CpzW--lT.mjs +7468 -0
- package/.output/server/_ssr/signing-jk4HANnl.mjs +134 -0
- package/.output/server/_ssr/ssr.mjs +4 -5740
- package/.output/server/_ssr/start-DpViQGnt.mjs +4 -0
- package/.output/server/_ssr/table-CU58HeI7.mjs +53 -0
- package/.output/server/_ssr/uuidv7-CaKuKXrV.mjs +31 -0
- package/.output/server/_tanstack-start-manifest_v-Mz9MmSlD.mjs +103 -0
- package/.output/server/index.mjs +229 -47
- package/README.md +29 -8
- package/lib/index.d.mts +35 -0
- package/lib/index.mjs +4 -0
- package/lib/vite-internal.mjs +127 -0
- package/lib/vite.d.mts +10 -0
- package/lib/vite.mjs +5 -0
- package/package.json +51 -29
- package/public/apple-touch-icon.png +0 -0
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/logo.svg +1 -0
- package/public/manifest.json +30 -0
- package/public/robots.txt +3 -0
- package/src/components/AppSidebar.tsx +159 -0
- package/src/components/BundleIdDisplay.tsx +18 -0
- package/src/components/ChannelBadge.tsx +31 -0
- package/src/components/ConsoleAccessPage.tsx +122 -0
- package/src/components/EnabledStatusIcon.tsx +54 -0
- package/src/components/HashValueDisplay.tsx +85 -0
- package/src/components/HotUpdaterLogo.tsx +30 -0
- package/src/components/NotFoundPage.tsx +33 -0
- package/src/components/PlatformIcon.tsx +39 -0
- package/src/components/RolloutPercentageBadge.tsx +28 -0
- package/src/components/ThemeProvider.tsx +116 -0
- package/src/components/TimestampDisplay.tsx +41 -0
- package/src/components/features/api-keys/ApiKeysPage.tsx +377 -0
- package/src/components/features/bundles/BundleActivityChart.tsx +193 -0
- package/src/components/features/bundles/BundleChildrenPanel.tsx +201 -0
- package/src/components/features/bundles/BundleInsightsSummary.tsx +123 -0
- package/src/components/features/bundles/BundleMetadata.tsx +136 -0
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +201 -0
- package/src/components/features/channels/ChannelManagementDialog.tsx +228 -0
- package/src/components/features/insights/ActivityChart.tsx +150 -0
- package/src/components/features/insights/BundleDistribution.tsx +133 -0
- package/src/components/features/insights/BundleSelector.tsx +114 -0
- package/src/components/features/insights/InsightsCapabilityContext.tsx +24 -0
- package/src/components/features/insights/InsightsControls.tsx +115 -0
- package/src/components/features/insights/InsightsErrorAlert.tsx +21 -0
- package/src/components/features/insights/InsightsOverview.tsx +208 -0
- package/src/components/features/insights/InstallationHistoryCard.tsx +248 -0
- package/src/components/features/insights/InstallationMatchesCard.tsx +132 -0
- package/src/components/features/insights/InstallationPageHeader.tsx +138 -0
- package/src/components/features/insights/InstallationPagination.tsx +48 -0
- package/src/components/features/insights/InstallationSearch.tsx +230 -0
- package/src/components/features/insights/UpdateOutcomes.tsx +147 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +879 -0
- package/src/components/features/releases/ReleaseStateBadge.tsx +20 -0
- package/src/components/features/signing/BundleSigningPage.tsx +139 -0
- package/src/components/ui/alert-dialog.tsx +185 -0
- package/src/components/ui/alert.tsx +76 -0
- package/src/components/ui/badge.tsx +49 -0
- package/src/components/ui/button.tsx +58 -0
- package/src/components/ui/card.tsx +89 -0
- package/src/components/ui/chart.tsx +371 -0
- package/src/components/ui/combobox.tsx +303 -0
- package/src/components/ui/dialog.tsx +156 -0
- package/src/components/ui/dropdown-menu.tsx +270 -0
- package/src/components/ui/field.tsx +235 -0
- package/src/components/ui/input-group.tsx +147 -0
- package/src/components/ui/input.tsx +19 -0
- package/src/components/ui/label.tsx +25 -0
- package/src/components/ui/progress.tsx +84 -0
- package/src/components/ui/select.tsx +205 -0
- package/src/components/ui/separator.tsx +23 -0
- package/src/components/ui/sheet.tsx +132 -0
- package/src/components/ui/sidebar.tsx +779 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/slider.tsx +56 -0
- package/src/components/ui/sonner.tsx +45 -0
- package/src/components/ui/switch.tsx +25 -0
- package/src/components/ui/table.tsx +114 -0
- package/src/components/ui/textarea.tsx +18 -0
- package/src/components/ui/toggle-group.tsx +89 -0
- package/src/components/ui/toggle.tsx +43 -0
- package/src/components/ui/tooltip.tsx +66 -0
- package/src/hooks/use-mobile.ts +30 -0
- package/src/index.ts +47 -0
- package/src/lib/api-keys-api.ts +69 -0
- package/src/lib/api-keys-rpc.ts +87 -0
- package/src/lib/api-rpc.ts +478 -0
- package/src/lib/api.ts +444 -0
- package/src/lib/auth-rpc.ts +16 -0
- package/src/lib/bundle-signing-api.ts +14 -0
- package/src/lib/bundle-signing-rpc.ts +16 -0
- package/src/lib/constants.ts +1 -0
- package/src/lib/git.ts +51 -0
- package/src/lib/insights-api.ts +144 -0
- package/src/lib/insights-error.ts +19 -0
- package/src/lib/insights-input.ts +187 -0
- package/src/lib/insights-overview.ts +170 -0
- package/src/lib/insights-rpc.ts +218 -0
- package/src/lib/server/auth.server.ts +43 -0
- package/src/lib/server/bundle-signing.server.ts +23 -0
- package/src/lib/server/config.server.ts +109 -0
- package/src/lib/server/console-runtime.server.ts +61 -0
- package/src/lib/server/deleteBundle.ts +145 -0
- package/src/lib/server/downloadBundle.ts +46 -0
- package/src/lib/server/getBundleChildren.ts +130 -0
- package/src/lib/server/listReleases.ts +61 -0
- package/src/lib/server/releaseActivity.ts +27 -0
- package/src/lib/server/releaseReachability.ts +95 -0
- package/src/lib/server/runtime.server.ts +172 -0
- package/src/lib/utils.ts +9 -0
- package/src/logo.svg +1 -0
- package/src/routeTree.gen.ts +199 -0
- package/src/router.tsx +21 -0
- package/src/routes/-installations-search.ts +19 -0
- package/src/routes/-releases-search.ts +74 -0
- package/src/routes/__root.tsx +174 -0
- package/src/routes/api/auth/$.ts +19 -0
- package/src/routes/api/bundles/$bundleId/download.ts +17 -0
- package/src/routes/api-keys.tsx +37 -0
- package/src/routes/index.tsx +982 -0
- package/src/routes/insights.tsx +139 -0
- package/src/routes/installations.tsx +194 -0
- package/src/routes/signing.tsx +37 -0
- package/src/styles.css +152 -0
- package/src/virtual-modules.d.ts +21 -0
- package/src/vite-env.d.ts +1 -0
- package/src/vite-internal.ts +195 -0
- package/src/vite.ts +12 -0
- package/.output/public/assets/dist-DJX53faP.js +0 -3
- package/.output/public/assets/index-Iylis5kY.js +0 -10
- package/.output/public/assets/routes-HT21hs0C.js +0 -54
- package/.output/public/assets/styles-C0Re4quB.css +0 -2
- package/.output/server/__23tanstack-start-server-fn-resolver-CgwgZ0-i.mjs +0 -66
- package/.output/server/_libs/@floating-ui/core+[...].mjs +0 -698
- package/.output/server/_libs/@floating-ui/dom+[...].mjs +0 -644
- package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +0 -839
- package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +0 -2138
- package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +0 -308
- package/.output/server/_libs/@radix-ui/react-select+[...].mjs +0 -1038
- package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +0 -196
- package/.output/server/_libs/@tanstack/form-core+[...].mjs +0 -3228
- package/.output/server/_libs/@tanstack/react-form+[...].mjs +0 -430
- package/.output/server/_libs/@tanstack/react-table+[...].mjs +0 -2382
- package/.output/server/_libs/radix-ui__number.mjs +0 -6
- package/.output/server/_libs/radix-ui__primitive.mjs +0 -9
- package/.output/server/_libs/radix-ui__react-arrow.mjs +0 -23
- package/.output/server/_libs/radix-ui__react-collection.mjs +0 -78
- package/.output/server/_libs/radix-ui__react-direction.mjs +0 -13
- package/.output/server/_libs/radix-ui__react-label.mjs +0 -22
- package/.output/server/_libs/radix-ui__react-separator.mjs +0 -30
- package/.output/server/_libs/radix-ui__react-slider.mjs +0 -510
- package/.output/server/_libs/radix-ui__react-switch.mjs +0 -157
- package/.output/server/_libs/radix-ui__react-tooltip.mjs +0 -493
- package/.output/server/_ssr/api-rpc-BIbDUKSz.mjs +0 -292
- package/.output/server/_ssr/config.server-BSS366KT.mjs +0 -41
- package/.output/server/_ssr/deleteBundle-BgbZTtpW.mjs +0 -141
- package/.output/server/_ssr/dist-KboydRVk.mjs +0 -120
- package/.output/server/_ssr/router-C3hqEy3k.mjs +0 -307
- package/.output/server/_ssr/routes-B0lQvvlC.mjs +0 -3048
- package/.output/server/_ssr/start-02sLteYG.mjs +0 -4
- package/.output/server/_ssr/storageProfile-FVkjPoGb.mjs +0 -9
- package/.output/server/_tanstack-start-manifest_v-Bpx52WOU.mjs +0 -20
- package/.output/server/node_modules/tslib/modules/index.js +0 -70
- package/.output/server/node_modules/tslib/modules/package.json +0 -3
- package/.output/server/node_modules/tslib/package.json +0 -47
- package/.output/server/node_modules/tslib/tslib.js +0 -484
- package/.output/server/package.json +0 -9
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { P as require_jsx_runtime } from "../@radix-ui/react-alert-dialog+[...].mjs";
|
|
1
|
+
import { i as __toESM, r as __require, t as __commonJSMin } from "../../_runtime.mjs";
|
|
2
|
+
import { $ as require_react_dom, Q as require_with_selector, at as require_react, it as require_jsx_runtime } from "../@base-ui/react+[...].mjs";
|
|
4
3
|
import { n as parseHref } from "../tanstack__history.mjs";
|
|
5
|
-
import { r as require_with_selector } from "./react-form+[...].mjs";
|
|
6
4
|
import { PassThrough, Readable } from "node:stream";
|
|
7
5
|
import { ReadableStream as ReadableStream$1 } from "node:stream/web";
|
|
8
6
|
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.15_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-router/dist/esm/utils.js
|
|
7
|
+
var import_with_selector = require_with_selector();
|
|
9
8
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
10
9
|
/**
|
|
11
10
|
* React.use if available (React 19+), undefined otherwise.
|
|
@@ -3961,7 +3960,6 @@ function purgeDeps(sub) {
|
|
|
3961
3960
|
}
|
|
3962
3961
|
//#endregion
|
|
3963
3962
|
//#region ../../node_modules/.pnpm/@tanstack+react-store@0.9.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-store/dist/esm/useStore.js
|
|
3964
|
-
var import_with_selector = require_with_selector();
|
|
3965
3963
|
function defaultCompare(a, b) {
|
|
3966
3964
|
return a === b;
|
|
3967
3965
|
}
|
|
@@ -4623,6 +4621,20 @@ var Route = class extends BaseRoute {
|
|
|
4623
4621
|
function createRoute(options) {
|
|
4624
4622
|
return new Route(options);
|
|
4625
4623
|
}
|
|
4624
|
+
/**
|
|
4625
|
+
* Creates a root route factory that requires a router context type.
|
|
4626
|
+
*
|
|
4627
|
+
* Use when your root route expects `context` to be provided to `createRouter`.
|
|
4628
|
+
* The returned function behaves like `createRootRoute` but enforces a context type.
|
|
4629
|
+
*
|
|
4630
|
+
* @returns A factory function to configure and return a root route.
|
|
4631
|
+
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/createRootRouteWithContextFunction
|
|
4632
|
+
*/
|
|
4633
|
+
function createRootRouteWithContext() {
|
|
4634
|
+
return (options) => {
|
|
4635
|
+
return createRootRoute(options);
|
|
4636
|
+
};
|
|
4637
|
+
}
|
|
4626
4638
|
var RootRoute = class extends BaseRootRoute {
|
|
4627
4639
|
/**
|
|
4628
4640
|
* @deprecated `RootRoute` is now an internal implementation detail. Use `createRootRoute()` instead.
|
|
@@ -13604,8 +13616,8 @@ var require_react_dom_server_node_production = /* @__PURE__ */ __commonJSMin(((e
|
|
|
13604
13616
|
exports.version = "19.2.6";
|
|
13605
13617
|
}));
|
|
13606
13618
|
//#endregion
|
|
13607
|
-
//#region ../../node_modules/.pnpm
|
|
13608
|
-
var
|
|
13619
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.15_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-router/dist/esm/ssr/renderRouterToString.js
|
|
13620
|
+
var import_server_node = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13609
13621
|
var l = require_react_dom_server_legacy_node_production(), s = require_react_dom_server_node_production();
|
|
13610
13622
|
exports.version = l.version;
|
|
13611
13623
|
exports.renderToString = l.renderToString;
|
|
@@ -13614,7 +13626,27 @@ var require_server_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13614
13626
|
exports.renderToReadableStream = s.renderToReadableStream;
|
|
13615
13627
|
exports.resumeToPipeableStream = s.resumeToPipeableStream;
|
|
13616
13628
|
exports.resume = s.resume;
|
|
13617
|
-
}));
|
|
13629
|
+
})))(), 1);
|
|
13630
|
+
var renderRouterToString = async ({ router, responseHeaders, children }) => {
|
|
13631
|
+
try {
|
|
13632
|
+
let html = import_server_node.renderToString(children);
|
|
13633
|
+
router.serverSsr.setRenderFinished();
|
|
13634
|
+
const injectedHtml = router.serverSsr.takeBufferedHtml();
|
|
13635
|
+
if (injectedHtml) html = html.replace(`</body>`, () => `${injectedHtml}</body>`);
|
|
13636
|
+
return new Response(`<!DOCTYPE html>${html}`, {
|
|
13637
|
+
status: router.stores.statusCode.get(),
|
|
13638
|
+
headers: responseHeaders
|
|
13639
|
+
});
|
|
13640
|
+
} catch (error) {
|
|
13641
|
+
console.error("Render to string error:", error);
|
|
13642
|
+
return new Response("Internal Server Error", {
|
|
13643
|
+
status: 500,
|
|
13644
|
+
headers: responseHeaders
|
|
13645
|
+
});
|
|
13646
|
+
} finally {
|
|
13647
|
+
router.serverSsr?.cleanup();
|
|
13648
|
+
}
|
|
13649
|
+
};
|
|
13618
13650
|
//#endregion
|
|
13619
13651
|
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/handlerCallback.js
|
|
13620
13652
|
function createSsrStreamResponse(router, response) {
|
|
@@ -14212,7 +14244,6 @@ function makeMainStream(serverSsr, appStream, opts) {
|
|
|
14212
14244
|
}
|
|
14213
14245
|
//#endregion
|
|
14214
14246
|
//#region ../../node_modules/.pnpm/isbot@5.1.42/node_modules/isbot/index.mjs
|
|
14215
|
-
var import_server_node = /* @__PURE__ */ __toESM(require_server_node(), 1);
|
|
14216
14247
|
var fullPattern = " daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<!cam)scan|24x7|;\\s\\w+;$|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\b\\w+\\.ai|\\bbw/|\\bdlc\\b|\\bort/|\\bperl\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[\\w\\-]+/[\\w]+$|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^\\w+/\\d\\.\\d\\s\\([\\w@]+\\)$|^active|^ad muncher|^amaya|^apache/|^avsdevicesdk/|^azure|^biglotron|^blackbox exporter|^bot|^clamav[ /]|^claude-code/|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^exodusmovement|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\((?:compatible;)?(?:\\s?[\\w\\d-.]+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^ps_daily/|^python|^rank|^read|^reed|^remove\\.bg/|^rest|^rss|^snapchat|^sora |^space bison|^stape/|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|abuse|advisor|agent\\b|analyzer|archive|ask jeeves/teoma|attracta|audit|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|collapsify\\b|convertify|cookiehubverify/|crawl|cursor/|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|exaleadcloudview|feed|fetcher|firephp|foregenix|functionize|grab|hardenize\\b|headless|hotjar|httrack|hubspot marketing grader|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|linktiger|mail\\.ru/|manager|manus-user/|marketgoo/|measure|monitor\\b|neustar wpm|node\\b|nutch|offbyone|openvas|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|playwright|powermarks|preview|proxy|ptst[ /]\\d|readable/|retriever|rexx;|rigor|rss\\b|scrape|securityheaders|selenium|server|silktide|sindup/|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|testlocally|tools|torrent|transcoder|upday/|url|validator|virtuoso|wappalyzer|watchtowr|webglance|webkit2png|whatcms/|xtate/";
|
|
14217
14248
|
var naivePattern = /bot|crawl|http|lighthouse|scan|search|spider/i;
|
|
14218
14249
|
var pattern;
|
|
@@ -14325,4 +14356,4 @@ var renderRouterToStream = async ({ request, router, responseHeaders, children }
|
|
|
14325
14356
|
throw new Error("No renderToReadableStream or renderToPipeableStream found in react-dom/server. Ensure you are using a version of react-dom that supports streaming.");
|
|
14326
14357
|
};
|
|
14327
14358
|
//#endregion
|
|
14328
|
-
export {
|
|
14359
|
+
export { HeadContent as a, createRouter as c, createFileRoute as d, createRootRouteWithContext as f, redirect as g, isRedirect as h, Scripts as i, Outlet as l, useNavigate as m, defineHandlerCallback as n, useRouterState as o, Link as p, renderRouterToString as r, RouterProvider as s, renderRouterToStream as t, lazyRouteComponent as u };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { i as __toESM } from "../../_runtime.mjs";
|
|
2
|
+
import { at as require_react, it as require_jsx_runtime } from "../@base-ui/react+[...].mjs";
|
|
3
|
+
import "./react-router+[...].mjs";
|
|
4
|
+
import { a as dehydrate } from "../tanstack__query-core.mjs";
|
|
5
|
+
import { r as QueryClientProvider } from "../tanstack__react-query.mjs";
|
|
6
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-ssr-query-core@1.169.1_@tanstack+query-core@5.101.0_@tanstack+router-core@1.171.13/node_modules/@tanstack/router-ssr-query-core/dist/esm/index.js
|
|
7
|
+
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
8
|
+
function setupCoreRouterSsrQueryIntegration({ router, queryClient, dehydrateOptions, hydrateOptions, handleRedirects = true }) {
|
|
9
|
+
router.options.hydrate;
|
|
10
|
+
const ogDehydrate = router.options.dehydrate;
|
|
11
|
+
{
|
|
12
|
+
const sentQueries = /* @__PURE__ */ new Set();
|
|
13
|
+
const queryStream = createPushableStream();
|
|
14
|
+
let unsubscribe = void 0;
|
|
15
|
+
let cleanupRegistered = false;
|
|
16
|
+
let tornDown = false;
|
|
17
|
+
const teardown = () => {
|
|
18
|
+
if (tornDown) return;
|
|
19
|
+
tornDown = true;
|
|
20
|
+
try {
|
|
21
|
+
unsubscribe?.();
|
|
22
|
+
} catch {}
|
|
23
|
+
unsubscribe = void 0;
|
|
24
|
+
try {
|
|
25
|
+
if (!queryStream.isClosed()) queryStream.close();
|
|
26
|
+
} catch {}
|
|
27
|
+
try {
|
|
28
|
+
queryClient.cancelQueries();
|
|
29
|
+
} catch {}
|
|
30
|
+
try {
|
|
31
|
+
queryClient.clear();
|
|
32
|
+
} catch {}
|
|
33
|
+
sentQueries.clear();
|
|
34
|
+
};
|
|
35
|
+
const registerCleanup = (serverSsr = router.serverSsr) => {
|
|
36
|
+
if (cleanupRegistered) return;
|
|
37
|
+
if (!serverSsr) return;
|
|
38
|
+
serverSsr.onCleanup(teardown);
|
|
39
|
+
cleanupRegistered = true;
|
|
40
|
+
};
|
|
41
|
+
router.serverSsrLifecycle = {
|
|
42
|
+
...router.serverSsrLifecycle,
|
|
43
|
+
onServerSsrAttach: [...router.serverSsrLifecycle?.onServerSsrAttach ?? [], registerCleanup]
|
|
44
|
+
};
|
|
45
|
+
router.options.dehydrate = async () => {
|
|
46
|
+
router.serverSsr.onRenderFinished(() => {
|
|
47
|
+
if (!queryStream.isClosed()) queryStream.close();
|
|
48
|
+
unsubscribe?.();
|
|
49
|
+
unsubscribe = void 0;
|
|
50
|
+
});
|
|
51
|
+
const dehydratedRouter = {
|
|
52
|
+
...await ogDehydrate?.(),
|
|
53
|
+
queryStream: queryStream.stream
|
|
54
|
+
};
|
|
55
|
+
const dehydratedQueryClient = dehydrate(queryClient, dehydrateOptions);
|
|
56
|
+
if (dehydratedQueryClient.queries.length > 0) {
|
|
57
|
+
dehydratedQueryClient.queries.forEach((query) => {
|
|
58
|
+
sentQueries.add(query.queryHash);
|
|
59
|
+
});
|
|
60
|
+
dehydratedRouter.dehydratedQueryClient = dehydratedQueryClient;
|
|
61
|
+
}
|
|
62
|
+
return dehydratedRouter;
|
|
63
|
+
};
|
|
64
|
+
const ogClientOptions = queryClient.getDefaultOptions();
|
|
65
|
+
queryClient.setDefaultOptions({
|
|
66
|
+
...ogClientOptions,
|
|
67
|
+
dehydrate: {
|
|
68
|
+
shouldDehydrateQuery: () => true,
|
|
69
|
+
...ogClientOptions.dehydrate
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
unsubscribe = queryClient.getQueryCache().subscribe((event) => {
|
|
73
|
+
if (!router.serverSsr?.isDehydrated()) return;
|
|
74
|
+
if (sentQueries.has(event.query.queryHash)) return;
|
|
75
|
+
if (!event.query.promise) return;
|
|
76
|
+
if (queryStream.isClosed()) {
|
|
77
|
+
console.warn(`tried to stream query ${event.query.queryHash} after stream was already closed`);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const dehydratedQuery = dehydrate(queryClient, {
|
|
81
|
+
...dehydrateOptions,
|
|
82
|
+
shouldDehydrateQuery: (query) => {
|
|
83
|
+
if (query.queryHash !== event.query.queryHash) return false;
|
|
84
|
+
return (ogClientOptions.dehydrate?.shouldDehydrateQuery?.(query) ?? true) && (dehydrateOptions?.shouldDehydrateQuery?.(query) ?? true);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
if (dehydratedQuery.queries.length === 0) return;
|
|
88
|
+
sentQueries.add(event.query.queryHash);
|
|
89
|
+
queryStream.enqueue(dehydratedQuery);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function createPushableStream() {
|
|
94
|
+
let controllerRef;
|
|
95
|
+
const stream = new ReadableStream({ start(controller) {
|
|
96
|
+
controllerRef = controller;
|
|
97
|
+
} });
|
|
98
|
+
let _isClosed = false;
|
|
99
|
+
return {
|
|
100
|
+
stream,
|
|
101
|
+
enqueue: (chunk) => {
|
|
102
|
+
if (!_isClosed) controllerRef.enqueue(chunk);
|
|
103
|
+
},
|
|
104
|
+
close: () => {
|
|
105
|
+
if (_isClosed) return;
|
|
106
|
+
controllerRef.close();
|
|
107
|
+
_isClosed = true;
|
|
108
|
+
},
|
|
109
|
+
isClosed: () => _isClosed,
|
|
110
|
+
error: (err) => {
|
|
111
|
+
if (_isClosed) return;
|
|
112
|
+
_isClosed = true;
|
|
113
|
+
controllerRef.error(err);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router-ssr-query@1.167.1_@tanstack+query-core@5.101.0_@tanstack+react-q_97558905e4162372eb254bbf2e57137e/node_modules/@tanstack/react-router-ssr-query/dist/esm/index.js
|
|
119
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
120
|
+
function setupRouterSsrQueryIntegration(opts) {
|
|
121
|
+
setupCoreRouterSsrQueryIntegration(opts);
|
|
122
|
+
if (opts.wrapQueryClient === false) return;
|
|
123
|
+
const OGWrap = opts.router.options.Wrap || import_react.Fragment;
|
|
124
|
+
opts.router.options.Wrap = ({ children }) => {
|
|
125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryClientProvider, {
|
|
126
|
+
client: opts.queryClient,
|
|
127
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OGWrap, { children })
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
export { setupRouterSsrQueryIntegration as t };
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js
|
|
2
|
+
function ascending(a, b) {
|
|
3
|
+
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.js
|
|
7
|
+
function descending(a, b) {
|
|
8
|
+
return a == null || b == null ? NaN : b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js
|
|
12
|
+
function bisector(f) {
|
|
13
|
+
let compare1, compare2, delta;
|
|
14
|
+
if (f.length !== 2) {
|
|
15
|
+
compare1 = ascending;
|
|
16
|
+
compare2 = (d, x) => ascending(f(d), x);
|
|
17
|
+
delta = (d, x) => f(d) - x;
|
|
18
|
+
} else {
|
|
19
|
+
compare1 = f === ascending || f === descending ? f : zero;
|
|
20
|
+
compare2 = f;
|
|
21
|
+
delta = f;
|
|
22
|
+
}
|
|
23
|
+
function left(a, x, lo = 0, hi = a.length) {
|
|
24
|
+
if (lo < hi) {
|
|
25
|
+
if (compare1(x, x) !== 0) return hi;
|
|
26
|
+
do {
|
|
27
|
+
const mid = lo + hi >>> 1;
|
|
28
|
+
if (compare2(a[mid], x) < 0) lo = mid + 1;
|
|
29
|
+
else hi = mid;
|
|
30
|
+
} while (lo < hi);
|
|
31
|
+
}
|
|
32
|
+
return lo;
|
|
33
|
+
}
|
|
34
|
+
function right(a, x, lo = 0, hi = a.length) {
|
|
35
|
+
if (lo < hi) {
|
|
36
|
+
if (compare1(x, x) !== 0) return hi;
|
|
37
|
+
do {
|
|
38
|
+
const mid = lo + hi >>> 1;
|
|
39
|
+
if (compare2(a[mid], x) <= 0) lo = mid + 1;
|
|
40
|
+
else hi = mid;
|
|
41
|
+
} while (lo < hi);
|
|
42
|
+
}
|
|
43
|
+
return lo;
|
|
44
|
+
}
|
|
45
|
+
function center(a, x, lo = 0, hi = a.length) {
|
|
46
|
+
const i = left(a, x, lo, hi - 1);
|
|
47
|
+
return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
left,
|
|
51
|
+
center,
|
|
52
|
+
right
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function zero() {
|
|
56
|
+
return 0;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js
|
|
60
|
+
function number(x) {
|
|
61
|
+
return x === null ? NaN : +x;
|
|
62
|
+
}
|
|
63
|
+
function* numbers(values, valueof) {
|
|
64
|
+
if (valueof === void 0) {
|
|
65
|
+
for (let value of values) if (value != null && (value = +value) >= value) yield value;
|
|
66
|
+
} else {
|
|
67
|
+
let index = -1;
|
|
68
|
+
for (let value of values) if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) yield value;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js
|
|
73
|
+
var ascendingBisect = bisector(ascending);
|
|
74
|
+
var bisectRight = ascendingBisect.right;
|
|
75
|
+
ascendingBisect.left;
|
|
76
|
+
bisector(number).center;
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/sort.js
|
|
79
|
+
function compareDefined(compare = ascending) {
|
|
80
|
+
if (compare === ascending) return ascendingDefined;
|
|
81
|
+
if (typeof compare !== "function") throw new TypeError("compare is not a function");
|
|
82
|
+
return (a, b) => {
|
|
83
|
+
const x = compare(a, b);
|
|
84
|
+
if (x || x === 0) return x;
|
|
85
|
+
return (compare(b, b) === 0) - (compare(a, a) === 0);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function ascendingDefined(a, b) {
|
|
89
|
+
return (a == null || !(a >= a)) - (b == null || !(b >= b)) || (a < b ? -1 : a > b ? 1 : 0);
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js
|
|
93
|
+
var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
|
|
94
|
+
function tickSpec(start, stop, count) {
|
|
95
|
+
const step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log10(step)), error = step / Math.pow(10, power), factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;
|
|
96
|
+
let i1, i2, inc;
|
|
97
|
+
if (power < 0) {
|
|
98
|
+
inc = Math.pow(10, -power) / factor;
|
|
99
|
+
i1 = Math.round(start * inc);
|
|
100
|
+
i2 = Math.round(stop * inc);
|
|
101
|
+
if (i1 / inc < start) ++i1;
|
|
102
|
+
if (i2 / inc > stop) --i2;
|
|
103
|
+
inc = -inc;
|
|
104
|
+
} else {
|
|
105
|
+
inc = Math.pow(10, power) * factor;
|
|
106
|
+
i1 = Math.round(start / inc);
|
|
107
|
+
i2 = Math.round(stop / inc);
|
|
108
|
+
if (i1 * inc < start) ++i1;
|
|
109
|
+
if (i2 * inc > stop) --i2;
|
|
110
|
+
}
|
|
111
|
+
if (i2 < i1 && .5 <= count && count < 2) return tickSpec(start, stop, count * 2);
|
|
112
|
+
return [
|
|
113
|
+
i1,
|
|
114
|
+
i2,
|
|
115
|
+
inc
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
function ticks(start, stop, count) {
|
|
119
|
+
stop = +stop, start = +start, count = +count;
|
|
120
|
+
if (!(count > 0)) return [];
|
|
121
|
+
if (start === stop) return [start];
|
|
122
|
+
const reverse = stop < start, [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count);
|
|
123
|
+
if (!(i2 >= i1)) return [];
|
|
124
|
+
const n = i2 - i1 + 1, ticks = new Array(n);
|
|
125
|
+
if (reverse) if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) / -inc;
|
|
126
|
+
else for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) * inc;
|
|
127
|
+
else if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) / -inc;
|
|
128
|
+
else for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) * inc;
|
|
129
|
+
return ticks;
|
|
130
|
+
}
|
|
131
|
+
function tickIncrement(start, stop, count) {
|
|
132
|
+
stop = +stop, start = +start, count = +count;
|
|
133
|
+
return tickSpec(start, stop, count)[2];
|
|
134
|
+
}
|
|
135
|
+
function tickStep(start, stop, count) {
|
|
136
|
+
stop = +stop, start = +start, count = +count;
|
|
137
|
+
const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count);
|
|
138
|
+
return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.js
|
|
142
|
+
function max(values, valueof) {
|
|
143
|
+
let max;
|
|
144
|
+
if (valueof === void 0) {
|
|
145
|
+
for (const value of values) if (value != null && (max < value || max === void 0 && value >= value)) max = value;
|
|
146
|
+
} else {
|
|
147
|
+
let index = -1;
|
|
148
|
+
for (let value of values) if ((value = valueof(value, ++index, values)) != null && (max < value || max === void 0 && value >= value)) max = value;
|
|
149
|
+
}
|
|
150
|
+
return max;
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.js
|
|
154
|
+
function min(values, valueof) {
|
|
155
|
+
let min;
|
|
156
|
+
if (valueof === void 0) {
|
|
157
|
+
for (const value of values) if (value != null && (min > value || min === void 0 && value >= value)) min = value;
|
|
158
|
+
} else {
|
|
159
|
+
let index = -1;
|
|
160
|
+
for (let value of values) if ((value = valueof(value, ++index, values)) != null && (min > value || min === void 0 && value >= value)) min = value;
|
|
161
|
+
}
|
|
162
|
+
return min;
|
|
163
|
+
}
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/quickselect.js
|
|
166
|
+
function quickselect(array, k, left = 0, right = Infinity, compare) {
|
|
167
|
+
k = Math.floor(k);
|
|
168
|
+
left = Math.floor(Math.max(0, left));
|
|
169
|
+
right = Math.floor(Math.min(array.length - 1, right));
|
|
170
|
+
if (!(left <= k && k <= right)) return array;
|
|
171
|
+
compare = compare === void 0 ? ascendingDefined : compareDefined(compare);
|
|
172
|
+
while (right > left) {
|
|
173
|
+
if (right - left > 600) {
|
|
174
|
+
const n = right - left + 1;
|
|
175
|
+
const m = k - left + 1;
|
|
176
|
+
const z = Math.log(n);
|
|
177
|
+
const s = .5 * Math.exp(2 * z / 3);
|
|
178
|
+
const sd = .5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1);
|
|
179
|
+
const newLeft = Math.max(left, Math.floor(k - m * s / n + sd));
|
|
180
|
+
const newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd));
|
|
181
|
+
quickselect(array, k, newLeft, newRight, compare);
|
|
182
|
+
}
|
|
183
|
+
const t = array[k];
|
|
184
|
+
let i = left;
|
|
185
|
+
let j = right;
|
|
186
|
+
swap(array, left, k);
|
|
187
|
+
if (compare(array[right], t) > 0) swap(array, left, right);
|
|
188
|
+
while (i < j) {
|
|
189
|
+
swap(array, i, j), ++i, --j;
|
|
190
|
+
while (compare(array[i], t) < 0) ++i;
|
|
191
|
+
while (compare(array[j], t) > 0) --j;
|
|
192
|
+
}
|
|
193
|
+
if (compare(array[left], t) === 0) swap(array, left, j);
|
|
194
|
+
else ++j, swap(array, j, right);
|
|
195
|
+
if (j <= k) left = j + 1;
|
|
196
|
+
if (k <= j) right = j - 1;
|
|
197
|
+
}
|
|
198
|
+
return array;
|
|
199
|
+
}
|
|
200
|
+
function swap(array, i, j) {
|
|
201
|
+
const t = array[i];
|
|
202
|
+
array[i] = array[j];
|
|
203
|
+
array[j] = t;
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/quantile.js
|
|
207
|
+
function quantile(values, p, valueof) {
|
|
208
|
+
values = Float64Array.from(numbers(values, valueof));
|
|
209
|
+
if (!(n = values.length) || isNaN(p = +p)) return;
|
|
210
|
+
if (p <= 0 || n < 2) return min(values);
|
|
211
|
+
if (p >= 1) return max(values);
|
|
212
|
+
var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = max(quickselect(values, i0).subarray(0, i0 + 1));
|
|
213
|
+
return value0 + (min(values.subarray(i0 + 1)) - value0) * (i - i0);
|
|
214
|
+
}
|
|
215
|
+
function quantileSorted(values, p, valueof = number) {
|
|
216
|
+
if (!(n = values.length) || isNaN(p = +p)) return;
|
|
217
|
+
if (p <= 0 || n < 2) return +valueof(values[0], 0, values);
|
|
218
|
+
if (p >= 1) return +valueof(values[n - 1], n - 1, values);
|
|
219
|
+
var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = +valueof(values[i0], i0, values);
|
|
220
|
+
return value0 + (+valueof(values[i0 + 1], i0 + 1, values) - value0) * (i - i0);
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.js
|
|
224
|
+
function range(start, stop, step) {
|
|
225
|
+
start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;
|
|
226
|
+
var i = -1, n = Math.max(0, Math.ceil((stop - start) / step)) | 0, range = new Array(n);
|
|
227
|
+
while (++i < n) range[i] = start + i * step;
|
|
228
|
+
return range;
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
231
|
+
export { tickStep as a, bisector as c, tickIncrement as i, ascending as l, quantile as n, ticks as o, quantileSorted as r, bisectRight as s, range as t };
|