@coffre/ui 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -3
- package/dist/client/.assetsignore +2 -0
- package/dist/client/_coffre/assets/account-C3Zo1l5A.js +1 -0
- package/dist/client/_coffre/assets/account-C4bNbeO7.js +2 -0
- package/dist/client/_coffre/assets/affordances-DiuJIiR2.js +1 -0
- package/dist/client/_coffre/assets/audit-1xLyuxGz.js +2 -0
- package/dist/client/_coffre/assets/audit-Dab2GuRj.js +1 -0
- package/dist/client/_coffre/assets/auth.device-BfCfeBWe.js +2 -0
- package/dist/client/_coffre/assets/auth.device-D2pCLF-X.js +1 -0
- package/dist/client/_coffre/assets/coffre-C7qL3HGR.js +1 -0
- package/dist/client/_coffre/assets/directory-C2Ou4SQv.js +1 -0
- package/dist/client/_coffre/assets/globals-Dgq4Jy0x.css +1 -0
- package/dist/client/_coffre/assets/grants-fqTtJ-aW.js +1 -0
- package/dist/client/_coffre/assets/index-BpGwbjmM.js +12 -0
- package/dist/client/_coffre/assets/inter-cyrillic-ext-opsz-normal-CfYZpDVp.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-cyrillic-opsz-normal-BFQXbQ-f.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-greek-ext-opsz-normal-BmPQvyvo.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-greek-opsz-normal-BM0NlUE_.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-latin-ext-opsz-normal-DpK-iCPk.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-latin-opsz-normal-BwkfbSeq.woff2 +0 -0
- package/dist/client/_coffre/assets/inter-vietnamese-opsz-normal-Ci9T9ieq.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/client/_coffre/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/client/_coffre/assets/login-CR9CBXlw.js +2 -0
- package/dist/client/_coffre/assets/login-DZizFxa4.js +1 -0
- package/dist/client/_coffre/assets/offboarding-DOLJQcXU.js +1 -0
- package/dist/client/_coffre/assets/page-BxW2MwaX.js +1 -0
- package/dist/client/_coffre/assets/preload-helper-BHuP8_FL.js +46 -0
- package/dist/client/_coffre/assets/principal-page-xnBZVURr.js +1 -0
- package/dist/client/_coffre/assets/project-environments-CfIH5kFM.js +1 -0
- package/dist/client/_coffre/assets/projects._project._environment-CrWjQmIA.js +2 -0
- package/dist/client/_coffre/assets/projects._project._environment-CwRVG9Ne.js +3 -0
- package/dist/client/_coffre/assets/projects._project.index-CCDEuE-z.js +2 -0
- package/dist/client/_coffre/assets/projects._project.index-DCJsmnD7.js +1 -0
- package/dist/client/_coffre/assets/projects.index-B8eV8JIn.js +1 -0
- package/dist/client/_coffre/assets/projects.index-BNEC7Oz8.js +2 -0
- package/dist/client/_coffre/assets/settings-2BPsenNM.js +2 -0
- package/dist/client/_coffre/assets/settings-BrS0-wEt.js +1 -0
- package/dist/client/_coffre/assets/signin-errors-CroZWZgm.js +1 -0
- package/dist/client/_coffre/assets/tokens._token-B3-YwuKp.js +2 -0
- package/dist/client/_coffre/assets/tokens._token-D_hsbHx6.js +1 -0
- package/dist/client/_coffre/assets/tokens.index-BdKE2Jv8.js +2 -0
- package/dist/client/_coffre/assets/tokens.index-XvA4XRxh.js +1 -0
- package/dist/client/_coffre/assets/unregistered-CTRMtBIy.js +1 -0
- package/dist/client/_coffre/assets/use-action-DgAf-tiX.js +1 -0
- package/dist/client/_coffre/assets/users._user-BFPXcJ4y.js +2 -0
- package/dist/client/_coffre/assets/users._user-DEtMeSoh.js +1 -0
- package/dist/client/_coffre/assets/users.index-B03beUHq.js +1 -0
- package/dist/client/_coffre/assets/users.index-D8hwzM6P.js +2 -0
- package/dist/client/_coffre/assets/validation-9Cl_XS-l.js +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/server/.vite/manifest.json +572 -0
- package/dist/server/_coffre/assets/_tanstack-start-manifest_v-B6CZDfrB.js +133 -0
- package/dist/server/_coffre/assets/account-B71_b5xc.js +296 -0
- package/dist/server/_coffre/assets/account-BoO6ZqMc.js +176 -0
- package/dist/server/_coffre/assets/affordances-BNaXjMOb.js +46 -0
- package/dist/server/_coffre/assets/async-local-storage-C0cwgkEr.js +3107 -0
- package/dist/server/_coffre/assets/audit-CwRFnSAY.js +74 -0
- package/dist/server/_coffre/assets/audit-t1sYjtrf.js +964 -0
- package/dist/server/_coffre/assets/auth.device-1IcJ475s.js +208 -0
- package/dist/server/_coffre/assets/auth.device-CJwZYYtn.js +29 -0
- package/dist/server/_coffre/assets/coffre-1hxT2E_U.js +278 -0
- package/dist/server/_coffre/assets/directory-wm_JQUfk.js +396 -0
- package/dist/server/_coffre/assets/empty-plugin-adapters-Cq4--YW-.js +5 -0
- package/dist/server/_coffre/assets/globals-Dgq4Jy0x.css +1 -0
- package/dist/server/_coffre/assets/grants-BmhEY1vz.js +243 -0
- package/dist/server/_coffre/assets/inter-cyrillic-ext-opsz-normal-CfYZpDVp.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-cyrillic-opsz-normal-BFQXbQ-f.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-greek-ext-opsz-normal-BmPQvyvo.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-greek-opsz-normal-BM0NlUE_.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-latin-ext-opsz-normal-DpK-iCPk.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-latin-opsz-normal-BwkfbSeq.woff2 +0 -0
- package/dist/server/_coffre/assets/inter-vietnamese-opsz-normal-Ci9T9ieq.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/server/_coffre/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/server/_coffre/assets/login-B5O5LPXV.js +100 -0
- package/dist/server/_coffre/assets/login-Bvc4gp0X.js +22 -0
- package/dist/server/_coffre/assets/offboarding-CvSilnSm.js +330 -0
- package/dist/server/_coffre/assets/page-BjXk0Ehu.js +2003 -0
- package/dist/server/_coffre/assets/principal-page-DkwNGzM2.js +617 -0
- package/dist/server/_coffre/assets/project-environments-lEzFHUt4.js +9 -0
- package/dist/server/_coffre/assets/projects._project._environment-7grhqlgq.js +2227 -0
- package/dist/server/_coffre/assets/projects._project._environment-ByEf6pmz.js +55 -0
- package/dist/server/_coffre/assets/projects._project.index-B1bjowP-.js +932 -0
- package/dist/server/_coffre/assets/projects._project.index-DU8wtoHD.js +22 -0
- package/dist/server/_coffre/assets/projects.index-B0DoHbCz.js +280 -0
- package/dist/server/_coffre/assets/projects.index-kMDA6pMy.js +54 -0
- package/dist/server/_coffre/assets/react-dom-qCTiwGGR.js +1352 -0
- package/dist/server/_coffre/assets/router-ChU_CwCX.js +2028 -0
- package/dist/server/_coffre/assets/settings-CM9-h7in.js +18 -0
- package/dist/server/_coffre/assets/settings-Cg5qOGij.js +60 -0
- package/dist/server/_coffre/assets/signin-errors-BEFlVDbQ.js +28 -0
- package/dist/server/_coffre/assets/start-DR3rN0St.js +4 -0
- package/dist/server/_coffre/assets/tokens._token-CCpaPMAk.js +268 -0
- package/dist/server/_coffre/assets/tokens._token-Di4OZdAA.js +18 -0
- package/dist/server/_coffre/assets/tokens.index-Do3OHR31.js +34 -0
- package/dist/server/_coffre/assets/tokens.index-tDKq4AFh.js +10 -0
- package/dist/server/_coffre/assets/ui-BNzhIAQP.js +15710 -0
- package/dist/server/_coffre/assets/unregistered-BqaWYFJK.js +51 -0
- package/dist/server/_coffre/assets/use-action-BkJXC5JM.js +953 -0
- package/dist/server/_coffre/assets/useStore-DWGPqzXR.js +892 -0
- package/dist/server/_coffre/assets/users._user-BenYva93.js +15 -0
- package/dist/server/_coffre/assets/users._user-Cp039Va-.js +10 -0
- package/dist/server/_coffre/assets/users.index-BrzG1Ecq.js +10 -0
- package/dist/server/_coffre/assets/users.index-DQ_45DQl.js +34 -0
- package/dist/server/_coffre/assets/validation-BQtqPe2V.js +27 -0
- package/dist/server/index.js +13910 -0
- package/package.json +58 -5
- package/src/components/affordances.ts +80 -0
- package/src/components/agentation.tsx +34 -0
- package/src/components/command-palette.tsx +271 -0
- package/src/components/directory.tsx +448 -0
- package/src/components/grants.tsx +204 -0
- package/src/components/icons.tsx +283 -0
- package/src/components/offboarding.tsx +286 -0
- package/src/components/page.tsx +128 -0
- package/src/components/principal-page.tsx +549 -0
- package/src/components/principal-picker.tsx +168 -0
- package/src/components/principal.tsx +53 -0
- package/src/components/route-states.tsx +60 -0
- package/src/components/service-tokens.tsx +212 -0
- package/src/components/shell.tsx +641 -0
- package/src/components/syncs.tsx +581 -0
- package/src/components/theme.tsx +141 -0
- package/src/components/tile.tsx +22 -0
- package/src/components/ui.tsx +440 -0
- package/src/entry.ts +19 -0
- package/src/lib/access-plan.ts +201 -0
- package/src/lib/audit-sentences.ts +468 -0
- package/src/lib/capabilities.ts +45 -0
- package/src/lib/coffre.ts +57 -0
- package/src/lib/project-access.ts +95 -0
- package/src/lib/project-environments.ts +23 -0
- package/src/lib/reveal.ts +21 -0
- package/src/lib/secret-edit-batch.ts +181 -0
- package/src/lib/signin-errors.ts +33 -0
- package/src/lib/use-action.ts +50 -0
- package/src/lib/validation.ts +27 -0
- package/src/routeTree.gen.ts +367 -0
- package/src/router.tsx +84 -0
- package/src/routes/__root.tsx +192 -0
- package/src/routes/access.tsx +11 -0
- package/src/routes/account.tsx +359 -0
- package/src/routes/audit.tsx +545 -0
- package/src/routes/auth.device.tsx +200 -0
- package/src/routes/index.tsx +15 -0
- package/src/routes/login.tsx +129 -0
- package/src/routes/projects.$project.$environment.tsx +1659 -0
- package/src/routes/projects.$project.index.tsx +917 -0
- package/src/routes/projects.index.tsx +353 -0
- package/src/routes/settings.tsx +72 -0
- package/src/routes/tokens.$token.tsx +35 -0
- package/src/routes/tokens.index.tsx +37 -0
- package/src/routes/unregistered.tsx +59 -0
- package/src/routes/users.$user.tsx +13 -0
- package/src/routes/users.index.tsx +37 -0
- package/src/shared/models.ts +55 -0
- package/src/styles/globals.css +4118 -0
- package/src/types.ts +21 -0
|
@@ -0,0 +1,892 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
+
var __exportAll = (all, no_symbols) => {
|
|
10
|
+
let target = {};
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
29
|
+
value: mod,
|
|
30
|
+
enumerable: true
|
|
31
|
+
}) : target, mod));
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region ../../node_modules/.pnpm/react@19.2.7/node_modules/react/cjs/react.production.js
|
|
34
|
+
/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/
|
|
43
|
+
var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
44
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
45
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
46
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
47
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
48
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
49
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
50
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
51
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
52
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
53
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
54
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
55
|
+
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
56
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
57
|
+
function getIteratorFn(maybeIterable) {
|
|
58
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
59
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
60
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
61
|
+
}
|
|
62
|
+
var ReactNoopUpdateQueue = {
|
|
63
|
+
isMounted: function() {
|
|
64
|
+
return !1;
|
|
65
|
+
},
|
|
66
|
+
enqueueForceUpdate: function() {},
|
|
67
|
+
enqueueReplaceState: function() {},
|
|
68
|
+
enqueueSetState: function() {}
|
|
69
|
+
};
|
|
70
|
+
var assign = Object.assign;
|
|
71
|
+
var emptyObject = {};
|
|
72
|
+
function Component(props, context, updater) {
|
|
73
|
+
this.props = props;
|
|
74
|
+
this.context = context;
|
|
75
|
+
this.refs = emptyObject;
|
|
76
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
77
|
+
}
|
|
78
|
+
Component.prototype.isReactComponent = {};
|
|
79
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
80
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
81
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
82
|
+
};
|
|
83
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
84
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
85
|
+
};
|
|
86
|
+
function ComponentDummy() {}
|
|
87
|
+
ComponentDummy.prototype = Component.prototype;
|
|
88
|
+
function PureComponent(props, context, updater) {
|
|
89
|
+
this.props = props;
|
|
90
|
+
this.context = context;
|
|
91
|
+
this.refs = emptyObject;
|
|
92
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
93
|
+
}
|
|
94
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
95
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
96
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
97
|
+
pureComponentPrototype.isPureReactComponent = !0;
|
|
98
|
+
var isArrayImpl = Array.isArray;
|
|
99
|
+
function noop() {}
|
|
100
|
+
var ReactSharedInternals = {
|
|
101
|
+
H: null,
|
|
102
|
+
A: null,
|
|
103
|
+
T: null,
|
|
104
|
+
S: null
|
|
105
|
+
};
|
|
106
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
107
|
+
function ReactElement(type, key, props) {
|
|
108
|
+
var refProp = props.ref;
|
|
109
|
+
return {
|
|
110
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
111
|
+
type,
|
|
112
|
+
key,
|
|
113
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
114
|
+
props
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
118
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
119
|
+
}
|
|
120
|
+
function isValidElement(object) {
|
|
121
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
122
|
+
}
|
|
123
|
+
function escape(key) {
|
|
124
|
+
var escaperLookup = {
|
|
125
|
+
"=": "=0",
|
|
126
|
+
":": "=2"
|
|
127
|
+
};
|
|
128
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
129
|
+
return escaperLookup[match];
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
133
|
+
function getElementKey(element, index) {
|
|
134
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
135
|
+
}
|
|
136
|
+
function resolveThenable(thenable) {
|
|
137
|
+
switch (thenable.status) {
|
|
138
|
+
case "fulfilled": return thenable.value;
|
|
139
|
+
case "rejected": throw thenable.reason;
|
|
140
|
+
default: switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
141
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
142
|
+
}, function(error) {
|
|
143
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
144
|
+
})), thenable.status) {
|
|
145
|
+
case "fulfilled": return thenable.value;
|
|
146
|
+
case "rejected": throw thenable.reason;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
throw thenable;
|
|
150
|
+
}
|
|
151
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
152
|
+
var type = typeof children;
|
|
153
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
154
|
+
var invokeCallback = !1;
|
|
155
|
+
if (null === children) invokeCallback = !0;
|
|
156
|
+
else switch (type) {
|
|
157
|
+
case "bigint":
|
|
158
|
+
case "string":
|
|
159
|
+
case "number":
|
|
160
|
+
invokeCallback = !0;
|
|
161
|
+
break;
|
|
162
|
+
case "object": switch (children.$$typeof) {
|
|
163
|
+
case REACT_ELEMENT_TYPE:
|
|
164
|
+
case REACT_PORTAL_TYPE:
|
|
165
|
+
invokeCallback = !0;
|
|
166
|
+
break;
|
|
167
|
+
case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (invokeCallback) return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
171
|
+
return c;
|
|
172
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + invokeCallback)), array.push(callback)), 1;
|
|
173
|
+
invokeCallback = 0;
|
|
174
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
175
|
+
if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
176
|
+
else if (i = getIteratorFn(children), "function" === typeof i) for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
177
|
+
else if ("object" === type) {
|
|
178
|
+
if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
|
|
179
|
+
array = String(children);
|
|
180
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
181
|
+
}
|
|
182
|
+
return invokeCallback;
|
|
183
|
+
}
|
|
184
|
+
function mapChildren(children, func, context) {
|
|
185
|
+
if (null == children) return children;
|
|
186
|
+
var result = [], count = 0;
|
|
187
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
188
|
+
return func.call(context, child, count++);
|
|
189
|
+
});
|
|
190
|
+
return result;
|
|
191
|
+
}
|
|
192
|
+
function lazyInitializer(payload) {
|
|
193
|
+
if (-1 === payload._status) {
|
|
194
|
+
var ctor = payload._result;
|
|
195
|
+
ctor = ctor();
|
|
196
|
+
ctor.then(function(moduleObject) {
|
|
197
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 1, payload._result = moduleObject;
|
|
198
|
+
}, function(error) {
|
|
199
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 2, payload._result = error;
|
|
200
|
+
});
|
|
201
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
202
|
+
}
|
|
203
|
+
if (1 === payload._status) return payload._result.default;
|
|
204
|
+
throw payload._result;
|
|
205
|
+
}
|
|
206
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
207
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
208
|
+
var event = new window.ErrorEvent("error", {
|
|
209
|
+
bubbles: !0,
|
|
210
|
+
cancelable: !0,
|
|
211
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
212
|
+
error
|
|
213
|
+
});
|
|
214
|
+
if (!window.dispatchEvent(event)) return;
|
|
215
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
216
|
+
process.emit("uncaughtException", error);
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
console.error(error);
|
|
220
|
+
};
|
|
221
|
+
var Children = {
|
|
222
|
+
map: mapChildren,
|
|
223
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
224
|
+
mapChildren(children, function() {
|
|
225
|
+
forEachFunc.apply(this, arguments);
|
|
226
|
+
}, forEachContext);
|
|
227
|
+
},
|
|
228
|
+
count: function(children) {
|
|
229
|
+
var n = 0;
|
|
230
|
+
mapChildren(children, function() {
|
|
231
|
+
n++;
|
|
232
|
+
});
|
|
233
|
+
return n;
|
|
234
|
+
},
|
|
235
|
+
toArray: function(children) {
|
|
236
|
+
return mapChildren(children, function(child) {
|
|
237
|
+
return child;
|
|
238
|
+
}) || [];
|
|
239
|
+
},
|
|
240
|
+
only: function(children) {
|
|
241
|
+
if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
242
|
+
return children;
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
246
|
+
exports.Children = Children;
|
|
247
|
+
exports.Component = Component;
|
|
248
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
249
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
250
|
+
exports.PureComponent = PureComponent;
|
|
251
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
252
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
253
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
254
|
+
exports.__COMPILER_RUNTIME = {
|
|
255
|
+
__proto__: null,
|
|
256
|
+
c: function(size) {
|
|
257
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
exports.cache = function(fn) {
|
|
261
|
+
return function() {
|
|
262
|
+
return fn.apply(null, arguments);
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
exports.cacheSignal = function() {
|
|
266
|
+
return null;
|
|
267
|
+
};
|
|
268
|
+
exports.cloneElement = function(element, config, children) {
|
|
269
|
+
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
270
|
+
var props = assign({}, element.props), key = element.key;
|
|
271
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
272
|
+
var propName = arguments.length - 2;
|
|
273
|
+
if (1 === propName) props.children = children;
|
|
274
|
+
else if (1 < propName) {
|
|
275
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++) childArray[i] = arguments[i + 2];
|
|
276
|
+
props.children = childArray;
|
|
277
|
+
}
|
|
278
|
+
return ReactElement(element.type, key, props);
|
|
279
|
+
};
|
|
280
|
+
exports.createContext = function(defaultValue) {
|
|
281
|
+
defaultValue = {
|
|
282
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
283
|
+
_currentValue: defaultValue,
|
|
284
|
+
_currentValue2: defaultValue,
|
|
285
|
+
_threadCount: 0,
|
|
286
|
+
Provider: null,
|
|
287
|
+
Consumer: null
|
|
288
|
+
};
|
|
289
|
+
defaultValue.Provider = defaultValue;
|
|
290
|
+
defaultValue.Consumer = {
|
|
291
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
292
|
+
_context: defaultValue
|
|
293
|
+
};
|
|
294
|
+
return defaultValue;
|
|
295
|
+
};
|
|
296
|
+
exports.createElement = function(type, config, children) {
|
|
297
|
+
var propName, props = {}, key = null;
|
|
298
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
299
|
+
var childrenLength = arguments.length - 2;
|
|
300
|
+
if (1 === childrenLength) props.children = children;
|
|
301
|
+
else if (1 < childrenLength) {
|
|
302
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2];
|
|
303
|
+
props.children = childArray;
|
|
304
|
+
}
|
|
305
|
+
if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
306
|
+
return ReactElement(type, key, props);
|
|
307
|
+
};
|
|
308
|
+
exports.createRef = function() {
|
|
309
|
+
return { current: null };
|
|
310
|
+
};
|
|
311
|
+
exports.forwardRef = function(render) {
|
|
312
|
+
return {
|
|
313
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
314
|
+
render
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
exports.isValidElement = isValidElement;
|
|
318
|
+
exports.lazy = function(ctor) {
|
|
319
|
+
return {
|
|
320
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
321
|
+
_payload: {
|
|
322
|
+
_status: -1,
|
|
323
|
+
_result: ctor
|
|
324
|
+
},
|
|
325
|
+
_init: lazyInitializer
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
exports.memo = function(type, compare) {
|
|
329
|
+
return {
|
|
330
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
331
|
+
type,
|
|
332
|
+
compare: void 0 === compare ? null : compare
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
exports.startTransition = function(scope) {
|
|
336
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
337
|
+
ReactSharedInternals.T = currentTransition;
|
|
338
|
+
try {
|
|
339
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
340
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
341
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
342
|
+
} catch (error) {
|
|
343
|
+
reportGlobalError(error);
|
|
344
|
+
} finally {
|
|
345
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
exports.unstable_useCacheRefresh = function() {
|
|
349
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
350
|
+
};
|
|
351
|
+
exports.use = function(usable) {
|
|
352
|
+
return ReactSharedInternals.H.use(usable);
|
|
353
|
+
};
|
|
354
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
355
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
356
|
+
};
|
|
357
|
+
exports.useCallback = function(callback, deps) {
|
|
358
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
359
|
+
};
|
|
360
|
+
exports.useContext = function(Context) {
|
|
361
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
362
|
+
};
|
|
363
|
+
exports.useDebugValue = function() {};
|
|
364
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
365
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
366
|
+
};
|
|
367
|
+
exports.useEffect = function(create, deps) {
|
|
368
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
369
|
+
};
|
|
370
|
+
exports.useEffectEvent = function(callback) {
|
|
371
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
372
|
+
};
|
|
373
|
+
exports.useId = function() {
|
|
374
|
+
return ReactSharedInternals.H.useId();
|
|
375
|
+
};
|
|
376
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
377
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
378
|
+
};
|
|
379
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
380
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
381
|
+
};
|
|
382
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
383
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
384
|
+
};
|
|
385
|
+
exports.useMemo = function(create, deps) {
|
|
386
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
387
|
+
};
|
|
388
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
389
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
390
|
+
};
|
|
391
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
392
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
393
|
+
};
|
|
394
|
+
exports.useRef = function(initialValue) {
|
|
395
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
396
|
+
};
|
|
397
|
+
exports.useState = function(initialState) {
|
|
398
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
399
|
+
};
|
|
400
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
401
|
+
return ReactSharedInternals.H.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
402
|
+
};
|
|
403
|
+
exports.useTransition = function() {
|
|
404
|
+
return ReactSharedInternals.H.useTransition();
|
|
405
|
+
};
|
|
406
|
+
exports.version = "19.2.7";
|
|
407
|
+
}));
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region ../../node_modules/.pnpm/react@19.2.7/node_modules/react/index.js
|
|
410
|
+
var require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
411
|
+
module.exports = require_react_production();
|
|
412
|
+
}));
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.15/node_modules/@tanstack/router-core/dist/esm/utils.js
|
|
415
|
+
/**
|
|
416
|
+
* Return the last element of an array.
|
|
417
|
+
* Intended for non-empty arrays used within router internals.
|
|
418
|
+
*/
|
|
419
|
+
function last(arr) {
|
|
420
|
+
return arr[arr.length - 1];
|
|
421
|
+
}
|
|
422
|
+
function isFunction(d) {
|
|
423
|
+
return typeof d === "function";
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Apply a value-or-updater to a previous value.
|
|
427
|
+
* Accepts either a literal value or a function of the previous value.
|
|
428
|
+
*/
|
|
429
|
+
function functionalUpdate(updater, previous) {
|
|
430
|
+
if (isFunction(updater)) return updater(previous);
|
|
431
|
+
return updater;
|
|
432
|
+
}
|
|
433
|
+
var hasOwn = Object.prototype.hasOwnProperty;
|
|
434
|
+
function hasKeys(obj) {
|
|
435
|
+
for (const key in obj) if (hasOwn.call(obj, key)) return true;
|
|
436
|
+
return false;
|
|
437
|
+
}
|
|
438
|
+
var createNull = () => Object.create(null);
|
|
439
|
+
var nullReplaceEqualDeep = (prev, next) => replaceEqualDeep(prev, next, createNull);
|
|
440
|
+
/**
|
|
441
|
+
* This function returns `prev` if `_next` is deeply equal.
|
|
442
|
+
* If not, it will replace any deeply equal children of `b` with those of `a`.
|
|
443
|
+
* This can be used for structural sharing between immutable JSON values for example.
|
|
444
|
+
* Do not use this with signals
|
|
445
|
+
*/
|
|
446
|
+
function replaceEqualDeep(prev, _next, _makeObj = () => ({}), _depth = 0) {
|
|
447
|
+
return _next;
|
|
448
|
+
}
|
|
449
|
+
function isPlainObject(o) {
|
|
450
|
+
if (!hasObjectPrototype(o)) return false;
|
|
451
|
+
const ctor = o.constructor;
|
|
452
|
+
if (typeof ctor === "undefined") return true;
|
|
453
|
+
const prot = ctor.prototype;
|
|
454
|
+
if (!hasObjectPrototype(prot)) return false;
|
|
455
|
+
if (!prot.hasOwnProperty("isPrototypeOf")) return false;
|
|
456
|
+
return true;
|
|
457
|
+
}
|
|
458
|
+
function hasObjectPrototype(o) {
|
|
459
|
+
return Object.prototype.toString.call(o) === "[object Object]";
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Perform a deep equality check with options for partial comparison and
|
|
463
|
+
* ignoring `undefined` values. Optimized for router state comparisons.
|
|
464
|
+
*/
|
|
465
|
+
function deepEqual(a, b, opts) {
|
|
466
|
+
if (a === b) return true;
|
|
467
|
+
if (typeof a !== typeof b) return false;
|
|
468
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
469
|
+
if (a.length !== b.length) return false;
|
|
470
|
+
for (let i = 0, l = a.length; i < l; i++) if (!deepEqual(a[i], b[i], opts)) return false;
|
|
471
|
+
return true;
|
|
472
|
+
}
|
|
473
|
+
if (isPlainObject(a) && isPlainObject(b)) {
|
|
474
|
+
const ignoreUndefined = opts?.ignoreUndefined ?? true;
|
|
475
|
+
if (opts?.partial) {
|
|
476
|
+
for (const k in b) if (!ignoreUndefined || b[k] !== void 0) {
|
|
477
|
+
if (!deepEqual(a[k], b[k], opts)) return false;
|
|
478
|
+
}
|
|
479
|
+
return true;
|
|
480
|
+
}
|
|
481
|
+
let aCount = 0;
|
|
482
|
+
if (!ignoreUndefined) aCount = Object.keys(a).length;
|
|
483
|
+
else for (const k in a) if (a[k] !== void 0) aCount++;
|
|
484
|
+
let bCount = 0;
|
|
485
|
+
for (const k in b) if (!ignoreUndefined || b[k] !== void 0) {
|
|
486
|
+
bCount++;
|
|
487
|
+
if (bCount > aCount || !deepEqual(a[k], b[k], opts)) return false;
|
|
488
|
+
}
|
|
489
|
+
return aCount === bCount;
|
|
490
|
+
}
|
|
491
|
+
return false;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Create a promise with exposed resolve/reject and status fields.
|
|
495
|
+
* Useful for coordinating async router lifecycle operations.
|
|
496
|
+
*/
|
|
497
|
+
function createControlledPromise(onResolve) {
|
|
498
|
+
let resolveLoadPromise;
|
|
499
|
+
let rejectLoadPromise;
|
|
500
|
+
const controlledPromise = new Promise((resolve, reject) => {
|
|
501
|
+
resolveLoadPromise = resolve;
|
|
502
|
+
rejectLoadPromise = reject;
|
|
503
|
+
});
|
|
504
|
+
controlledPromise.status = "pending";
|
|
505
|
+
controlledPromise.resolve = (value) => {
|
|
506
|
+
controlledPromise.status = "resolved";
|
|
507
|
+
controlledPromise.value = value;
|
|
508
|
+
resolveLoadPromise(value);
|
|
509
|
+
onResolve?.(value);
|
|
510
|
+
};
|
|
511
|
+
controlledPromise.reject = (e) => {
|
|
512
|
+
controlledPromise.status = "rejected";
|
|
513
|
+
rejectLoadPromise(e);
|
|
514
|
+
};
|
|
515
|
+
return controlledPromise;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Heuristically detect dynamic import "module not found" errors
|
|
519
|
+
* across major browsers for lazy route component handling.
|
|
520
|
+
*/
|
|
521
|
+
function isModuleNotFoundError(error) {
|
|
522
|
+
if (typeof error?.message !== "string") return false;
|
|
523
|
+
return error.message.startsWith("Failed to fetch dynamically imported module") || error.message.startsWith("error loading dynamically imported module") || error.message.startsWith("Importing a module script failed");
|
|
524
|
+
}
|
|
525
|
+
function isPromise(value) {
|
|
526
|
+
return Boolean(value && typeof value === "object" && typeof value.then === "function");
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Re-encode characters that are unsafe in URL paths.
|
|
530
|
+
* Includes ASCII control characters (0x00-0x1F, 0x7F) and a subset of the
|
|
531
|
+
* WHATWG URL "path percent-encode set" (", <, >, `, {, }).
|
|
532
|
+
*
|
|
533
|
+
* Space (0x20) is intentionally excluded — decodeURI decodes %20 to space
|
|
534
|
+
* and the router stores decoded spaces in location.pathname. The existing
|
|
535
|
+
* encodePathLikeUrl already handles re-encoding spaces for outgoing URLs.
|
|
536
|
+
*
|
|
537
|
+
* These characters are decoded by decodeURI but must remain percent-encoded
|
|
538
|
+
* in paths to match how upstream layers (CDNs, edge middleware, browsers)
|
|
539
|
+
* interpret the URL, preventing infinite redirect loops and path mismatches.
|
|
540
|
+
*/
|
|
541
|
+
var PATH_UNSAFE_RE = /[\x00-\x1f\x7f"<>`{}]/g;
|
|
542
|
+
function sanitizePathSegment(segment) {
|
|
543
|
+
return segment.replace(PATH_UNSAFE_RE, (ch) => "%" + ch.charCodeAt(0).toString(16).toUpperCase().padStart(2, "0"));
|
|
544
|
+
}
|
|
545
|
+
function decodeSegment(segment) {
|
|
546
|
+
let decoded;
|
|
547
|
+
try {
|
|
548
|
+
decoded = decodeURI(segment);
|
|
549
|
+
} catch {
|
|
550
|
+
decoded = segment.replaceAll(/%[0-9A-F]{2}/gi, (match) => {
|
|
551
|
+
try {
|
|
552
|
+
return decodeURI(match);
|
|
553
|
+
} catch {
|
|
554
|
+
return match;
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
return sanitizePathSegment(decoded);
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Default list of URL protocols to allow in links, redirects, and navigation.
|
|
562
|
+
* Any absolute URL protocol not in this list is treated as dangerous by default.
|
|
563
|
+
*/
|
|
564
|
+
var DEFAULT_PROTOCOL_ALLOWLIST = [
|
|
565
|
+
"http:",
|
|
566
|
+
"https:",
|
|
567
|
+
"mailto:",
|
|
568
|
+
"tel:"
|
|
569
|
+
];
|
|
570
|
+
/**
|
|
571
|
+
* Check if a URL string uses a protocol that is not in the allowlist.
|
|
572
|
+
* Returns true for blocked protocols like javascript:, blob:, data:, etc.
|
|
573
|
+
*
|
|
574
|
+
* The URL constructor correctly normalizes:
|
|
575
|
+
* - Mixed case (JavaScript: → javascript:)
|
|
576
|
+
* - Whitespace/control characters (java\nscript: → javascript:)
|
|
577
|
+
* - Leading whitespace
|
|
578
|
+
*
|
|
579
|
+
* For relative URLs (no protocol), returns false (safe).
|
|
580
|
+
*
|
|
581
|
+
* @param url - The URL string to check
|
|
582
|
+
* @param allowlist - Set of protocols to allow
|
|
583
|
+
* @returns true if the URL uses a protocol that is not allowed
|
|
584
|
+
*/
|
|
585
|
+
function isDangerousProtocol(url, allowlist) {
|
|
586
|
+
if (!url) return false;
|
|
587
|
+
try {
|
|
588
|
+
const parsed = new URL(url);
|
|
589
|
+
return !allowlist.has(parsed.protocol);
|
|
590
|
+
} catch {
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
var HTML_ESCAPE_LOOKUP = {
|
|
595
|
+
"&": "\\u0026",
|
|
596
|
+
">": "\\u003e",
|
|
597
|
+
"<": "\\u003c",
|
|
598
|
+
"\u2028": "\\u2028",
|
|
599
|
+
"\u2029": "\\u2029"
|
|
600
|
+
};
|
|
601
|
+
var HTML_ESCAPE_REGEX = /[&><\u2028\u2029]/g;
|
|
602
|
+
/**
|
|
603
|
+
* Escape HTML special characters in a string to prevent XSS attacks
|
|
604
|
+
* when embedding strings in script tags during SSR.
|
|
605
|
+
*
|
|
606
|
+
* This is essential for preventing XSS vulnerabilities when user-controlled
|
|
607
|
+
* content is embedded in inline scripts.
|
|
608
|
+
*/
|
|
609
|
+
function escapeHtml(str) {
|
|
610
|
+
return str.replace(HTML_ESCAPE_REGEX, (match) => HTML_ESCAPE_LOOKUP[match]);
|
|
611
|
+
}
|
|
612
|
+
function decodePath(path) {
|
|
613
|
+
if (!path) return {
|
|
614
|
+
path,
|
|
615
|
+
handledProtocolRelativeURL: false
|
|
616
|
+
};
|
|
617
|
+
if (!/[%\\\x00-\x1f\x7f]/.test(path) && !path.startsWith("//")) return {
|
|
618
|
+
path,
|
|
619
|
+
handledProtocolRelativeURL: false
|
|
620
|
+
};
|
|
621
|
+
const re = /%25|%5C/gi;
|
|
622
|
+
let cursor = 0;
|
|
623
|
+
let result = "";
|
|
624
|
+
let match;
|
|
625
|
+
while (null !== (match = re.exec(path))) {
|
|
626
|
+
result += decodeSegment(path.slice(cursor, match.index)) + match[0];
|
|
627
|
+
cursor = re.lastIndex;
|
|
628
|
+
}
|
|
629
|
+
result = result + decodeSegment(cursor ? path.slice(cursor) : path);
|
|
630
|
+
let handledProtocolRelativeURL = false;
|
|
631
|
+
if (result.startsWith("//")) {
|
|
632
|
+
handledProtocolRelativeURL = true;
|
|
633
|
+
result = "/" + result.replace(/^\/+/, "");
|
|
634
|
+
}
|
|
635
|
+
return {
|
|
636
|
+
path: result,
|
|
637
|
+
handledProtocolRelativeURL
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Encodes a path the same way `new URL()` would, but without the overhead of full URL parsing.
|
|
642
|
+
*
|
|
643
|
+
* This function encodes:
|
|
644
|
+
* - Whitespace characters (spaces → %20, tabs → %09, etc.)
|
|
645
|
+
* - Non-ASCII/Unicode characters (emojis, accented characters, etc.)
|
|
646
|
+
*
|
|
647
|
+
* It preserves:
|
|
648
|
+
* - Already percent-encoded sequences (won't double-encode %2F, %25, etc.)
|
|
649
|
+
* - ASCII special characters valid in URL paths (@, $, &, +, etc.)
|
|
650
|
+
* - Forward slashes as path separators
|
|
651
|
+
*
|
|
652
|
+
* Used to generate proper href values for SSR without constructing URL objects.
|
|
653
|
+
*
|
|
654
|
+
* @example
|
|
655
|
+
* encodePathLikeUrl('/path/file name.pdf') // '/path/file%20name.pdf'
|
|
656
|
+
* encodePathLikeUrl('/path/日本語') // '/path/%E6%97%A5%E6%9C%AC%E8%AA%9E'
|
|
657
|
+
* encodePathLikeUrl('/path/already%20encoded') // '/path/already%20encoded' (preserved)
|
|
658
|
+
*/
|
|
659
|
+
function encodePathLikeUrl(path) {
|
|
660
|
+
if (!/\s|[^\u0000-\u007F]/.test(path)) return path;
|
|
661
|
+
return path.replace(/\s|[^\u0000-\u007F]/gu, encodeURIComponent);
|
|
662
|
+
}
|
|
663
|
+
function arraysEqual(a, b) {
|
|
664
|
+
if (a === b) return true;
|
|
665
|
+
if (a.length !== b.length) return false;
|
|
666
|
+
for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;
|
|
667
|
+
return true;
|
|
668
|
+
}
|
|
669
|
+
//#endregion
|
|
670
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.15/node_modules/@tanstack/router-core/dist/esm/invariant.js
|
|
671
|
+
function invariant() {
|
|
672
|
+
throw new Error("Invariant failed");
|
|
673
|
+
}
|
|
674
|
+
//#endregion
|
|
675
|
+
//#region ../../node_modules/.pnpm/react@19.2.7/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
676
|
+
/**
|
|
677
|
+
* @license React
|
|
678
|
+
* react-jsx-runtime.production.js
|
|
679
|
+
*
|
|
680
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
681
|
+
*
|
|
682
|
+
* This source code is licensed under the MIT license found in the
|
|
683
|
+
* LICENSE file in the root directory of this source tree.
|
|
684
|
+
*/
|
|
685
|
+
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
686
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
687
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
688
|
+
function jsxProd(type, config, maybeKey) {
|
|
689
|
+
var key = null;
|
|
690
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
691
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
692
|
+
if ("key" in config) {
|
|
693
|
+
maybeKey = {};
|
|
694
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
695
|
+
} else maybeKey = config;
|
|
696
|
+
config = maybeKey.ref;
|
|
697
|
+
return {
|
|
698
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
699
|
+
type,
|
|
700
|
+
key,
|
|
701
|
+
ref: void 0 !== config ? config : null,
|
|
702
|
+
props: maybeKey
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
706
|
+
exports.jsx = jsxProd;
|
|
707
|
+
exports.jsxs = jsxProd;
|
|
708
|
+
}));
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region ../../node_modules/.pnpm/react@19.2.7/node_modules/react/jsx-runtime.js
|
|
711
|
+
var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
712
|
+
module.exports = require_react_jsx_runtime_production();
|
|
713
|
+
}));
|
|
714
|
+
//#endregion
|
|
715
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.18_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/routerContext.js
|
|
716
|
+
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
717
|
+
var routerContext = import_react.createContext(null);
|
|
718
|
+
//#endregion
|
|
719
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.18_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/useRouter.js
|
|
720
|
+
/**
|
|
721
|
+
* Access the current TanStack Router instance from React context.
|
|
722
|
+
* Must be used within a `RouterProvider`.
|
|
723
|
+
*
|
|
724
|
+
* Options:
|
|
725
|
+
* - `warn`: Log a warning if no router context is found (default: true).
|
|
726
|
+
*
|
|
727
|
+
* @returns The registered router instance.
|
|
728
|
+
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/useRouterHook
|
|
729
|
+
*/
|
|
730
|
+
function useRouter(opts) {
|
|
731
|
+
return import_react.useContext(routerContext);
|
|
732
|
+
}
|
|
733
|
+
//#endregion
|
|
734
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.18_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/matchContext.js
|
|
735
|
+
var matchContext = import_react.createContext(void 0);
|
|
736
|
+
var dummyMatchContext = import_react.createContext(void 0);
|
|
737
|
+
//#endregion
|
|
738
|
+
//#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.7/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
|
|
739
|
+
/**
|
|
740
|
+
* @license React
|
|
741
|
+
* use-sync-external-store-shim.production.js
|
|
742
|
+
*
|
|
743
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
744
|
+
*
|
|
745
|
+
* This source code is licensed under the MIT license found in the
|
|
746
|
+
* LICENSE file in the root directory of this source tree.
|
|
747
|
+
*/
|
|
748
|
+
var require_use_sync_external_store_shim_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
749
|
+
var React = require_react();
|
|
750
|
+
function is(x, y) {
|
|
751
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
752
|
+
}
|
|
753
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
754
|
+
var useState = React.useState;
|
|
755
|
+
var useEffect = React.useEffect;
|
|
756
|
+
var useLayoutEffect = React.useLayoutEffect;
|
|
757
|
+
var useDebugValue = React.useDebugValue;
|
|
758
|
+
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
759
|
+
var value = getSnapshot(), _useState = useState({ inst: {
|
|
760
|
+
value,
|
|
761
|
+
getSnapshot
|
|
762
|
+
} }), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
763
|
+
useLayoutEffect(function() {
|
|
764
|
+
inst.value = value;
|
|
765
|
+
inst.getSnapshot = getSnapshot;
|
|
766
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
767
|
+
}, [
|
|
768
|
+
subscribe,
|
|
769
|
+
value,
|
|
770
|
+
getSnapshot
|
|
771
|
+
]);
|
|
772
|
+
useEffect(function() {
|
|
773
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
774
|
+
return subscribe(function() {
|
|
775
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
776
|
+
});
|
|
777
|
+
}, [subscribe]);
|
|
778
|
+
useDebugValue(value);
|
|
779
|
+
return value;
|
|
780
|
+
}
|
|
781
|
+
function checkIfSnapshotChanged(inst) {
|
|
782
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
783
|
+
inst = inst.value;
|
|
784
|
+
try {
|
|
785
|
+
var nextValue = latestGetSnapshot();
|
|
786
|
+
return !objectIs(inst, nextValue);
|
|
787
|
+
} catch (error) {
|
|
788
|
+
return !0;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
792
|
+
return getSnapshot();
|
|
793
|
+
}
|
|
794
|
+
var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
795
|
+
exports.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
796
|
+
}));
|
|
797
|
+
//#endregion
|
|
798
|
+
//#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.7/node_modules/use-sync-external-store/shim/index.js
|
|
799
|
+
var require_shim = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
800
|
+
module.exports = require_use_sync_external_store_shim_production();
|
|
801
|
+
}));
|
|
802
|
+
//#endregion
|
|
803
|
+
//#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.7/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
|
|
804
|
+
/**
|
|
805
|
+
* @license React
|
|
806
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
807
|
+
*
|
|
808
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
809
|
+
*
|
|
810
|
+
* This source code is licensed under the MIT license found in the
|
|
811
|
+
* LICENSE file in the root directory of this source tree.
|
|
812
|
+
*/
|
|
813
|
+
var require_with_selector_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
814
|
+
var React = require_react();
|
|
815
|
+
var shim = require_shim();
|
|
816
|
+
function is(x, y) {
|
|
817
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
818
|
+
}
|
|
819
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
820
|
+
var useSyncExternalStore = shim.useSyncExternalStore;
|
|
821
|
+
var useRef = React.useRef;
|
|
822
|
+
var useEffect = React.useEffect;
|
|
823
|
+
var useMemo = React.useMemo;
|
|
824
|
+
var useDebugValue = React.useDebugValue;
|
|
825
|
+
exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
826
|
+
var instRef = useRef(null);
|
|
827
|
+
if (null === instRef.current) {
|
|
828
|
+
var inst = {
|
|
829
|
+
hasValue: !1,
|
|
830
|
+
value: null
|
|
831
|
+
};
|
|
832
|
+
instRef.current = inst;
|
|
833
|
+
} else inst = instRef.current;
|
|
834
|
+
instRef = useMemo(function() {
|
|
835
|
+
function memoizedSelector(nextSnapshot) {
|
|
836
|
+
if (!hasMemo) {
|
|
837
|
+
hasMemo = !0;
|
|
838
|
+
memoizedSnapshot = nextSnapshot;
|
|
839
|
+
nextSnapshot = selector(nextSnapshot);
|
|
840
|
+
if (void 0 !== isEqual && inst.hasValue) {
|
|
841
|
+
var currentSelection = inst.value;
|
|
842
|
+
if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
|
|
843
|
+
}
|
|
844
|
+
return memoizedSelection = nextSnapshot;
|
|
845
|
+
}
|
|
846
|
+
currentSelection = memoizedSelection;
|
|
847
|
+
if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
|
848
|
+
var nextSelection = selector(nextSnapshot);
|
|
849
|
+
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
|
|
850
|
+
memoizedSnapshot = nextSnapshot;
|
|
851
|
+
return memoizedSelection = nextSelection;
|
|
852
|
+
}
|
|
853
|
+
var hasMemo = !1, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
854
|
+
return [function() {
|
|
855
|
+
return memoizedSelector(getSnapshot());
|
|
856
|
+
}, null === maybeGetServerSnapshot ? void 0 : function() {
|
|
857
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
858
|
+
}];
|
|
859
|
+
}, [
|
|
860
|
+
getSnapshot,
|
|
861
|
+
getServerSnapshot,
|
|
862
|
+
selector,
|
|
863
|
+
isEqual
|
|
864
|
+
]);
|
|
865
|
+
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
866
|
+
useEffect(function() {
|
|
867
|
+
inst.hasValue = !0;
|
|
868
|
+
inst.value = value;
|
|
869
|
+
}, [value]);
|
|
870
|
+
useDebugValue(value);
|
|
871
|
+
return value;
|
|
872
|
+
};
|
|
873
|
+
}));
|
|
874
|
+
//#endregion
|
|
875
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-store@0.9.3_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-store/dist/esm/useStore.js
|
|
876
|
+
var import_with_selector = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
877
|
+
module.exports = require_with_selector_production();
|
|
878
|
+
})))();
|
|
879
|
+
function defaultCompare(a, b) {
|
|
880
|
+
return a === b;
|
|
881
|
+
}
|
|
882
|
+
function useStore(atom, selector, compare = defaultCompare) {
|
|
883
|
+
const subscribe = (0, import_react.useCallback)((handleStoreChange) => {
|
|
884
|
+
if (!atom) return () => {};
|
|
885
|
+
const { unsubscribe } = atom.subscribe(handleStoreChange);
|
|
886
|
+
return unsubscribe;
|
|
887
|
+
}, [atom]);
|
|
888
|
+
const boundGetSnapshot = (0, import_react.useCallback)(() => atom?.get(), [atom]);
|
|
889
|
+
return (0, import_with_selector.useSyncExternalStoreWithSelector)(subscribe, boundGetSnapshot, boundGetSnapshot, selector, compare);
|
|
890
|
+
}
|
|
891
|
+
//#endregion
|
|
892
|
+
export { require_react as C, __toESM as E, replaceEqualDeep as S, __exportAll as T, isDangerousProtocol as _, routerContext as a, last as b, DEFAULT_PROTOCOL_ALLOWLIST as c, decodePath as d, deepEqual as f, hasKeys as g, functionalUpdate as h, useRouter as i, arraysEqual as l, escapeHtml as m, dummyMatchContext as n, require_jsx_runtime as o, encodePathLikeUrl as p, matchContext as r, invariant as s, useStore as t, createControlledPromise as u, isModuleNotFoundError as v, __commonJSMin as w, nullReplaceEqualDeep as x, isPromise as y };
|