fastapi-rtk 0.2.23 → 0.2.24
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/dist/.external/cjs/ajv@8.17.1/ajv/dist/runtime/uri.cjs +1 -1
- package/dist/.external/cjs/{fast-uri@3.0.6 → fast-uri@3.1.0}/fast-uri/index.cjs +51 -53
- package/dist/.external/cjs/fast-uri@3.1.0/fast-uri/lib/schemes.cjs +214 -0
- package/dist/.external/cjs/fast-uri@3.1.0/fast-uri/lib/utils.cjs +260 -0
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/runtime/uri.mjs +1 -1
- package/dist/.external/esm/{fast-uri@3.0.6 → fast-uri@3.1.0}/fast-uri/index.mjs +51 -53
- package/dist/.external/esm/fast-uri@3.1.0/fast-uri/lib/schemes.mjs +214 -0
- package/dist/.external/esm/fast-uri@3.1.0/fast-uri/lib/utils.mjs +260 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/FilterModeDescription.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/utils.cjs +8 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.cjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/FilterModeDescription.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/utils.mjs +8 -2
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.mjs +1 -1
- package/package.json +1 -1
- package/dist/.external/cjs/fast-uri@3.0.6/fast-uri/lib/schemes.cjs +0 -149
- package/dist/.external/cjs/fast-uri@3.0.6/fast-uri/lib/scopedChars.cjs +0 -37
- package/dist/.external/cjs/fast-uri@3.0.6/fast-uri/lib/utils.cjs +0 -235
- package/dist/.external/esm/fast-uri@3.0.6/fast-uri/lib/schemes.mjs +0 -149
- package/dist/.external/esm/fast-uri@3.0.6/fast-uri/lib/scopedChars.mjs +0 -37
- package/dist/.external/esm/fast-uri@3.0.6/fast-uri/lib/utils.mjs +0 -235
- /package/dist/.external/cjs/{mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ll5dfnmvjphm4bajaxt6oy7mty → mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay}/mantine-react-table/dist/index.esm.cjs +0 -0
- /package/dist/.external/esm/{mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ll5dfnmvjphm4bajaxt6oy7mty → mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay}/mantine-react-table/dist/index.esm.mjs +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const uri = require("../../../../../../.bundled/jsonforms/cjs/_virtual/uri.cjs");
|
|
4
|
-
const index = require("../../../../fast-uri@3.0
|
|
4
|
+
const index = require("../../../../fast-uri@3.1.0/fast-uri/index.cjs");
|
|
5
5
|
var hasRequiredUri;
|
|
6
6
|
function requireUri() {
|
|
7
7
|
if (hasRequiredUri) return uri.__exports;
|
|
@@ -7,22 +7,25 @@ var hasRequiredFastUri;
|
|
|
7
7
|
function requireFastUri() {
|
|
8
8
|
if (hasRequiredFastUri) return index.__module.exports;
|
|
9
9
|
hasRequiredFastUri = 1;
|
|
10
|
-
const { normalizeIPv6,
|
|
11
|
-
const SCHEMES = schemes.__require();
|
|
10
|
+
const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = utils.__require();
|
|
11
|
+
const { SCHEMES, getSchemeHandler } = schemes.__require();
|
|
12
12
|
function normalize(uri, options) {
|
|
13
13
|
if (typeof uri === "string") {
|
|
14
|
-
uri =
|
|
14
|
+
uri = /** @type {T} */
|
|
15
|
+
serialize(parse(uri, options), options);
|
|
15
16
|
} else if (typeof uri === "object") {
|
|
16
|
-
uri =
|
|
17
|
+
uri = /** @type {T} */
|
|
18
|
+
parse(serialize(uri, options), options);
|
|
17
19
|
}
|
|
18
20
|
return uri;
|
|
19
21
|
}
|
|
20
22
|
function resolve(baseURI, relativeURI, options) {
|
|
21
|
-
const schemelessOptions = Object.assign({ scheme: "null" }, options);
|
|
22
|
-
const resolved =
|
|
23
|
-
|
|
23
|
+
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
24
|
+
const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true);
|
|
25
|
+
schemelessOptions.skipEscape = true;
|
|
26
|
+
return serialize(resolved, schemelessOptions);
|
|
24
27
|
}
|
|
25
|
-
function
|
|
28
|
+
function resolveComponent(base, relative, options, skipNormalization) {
|
|
26
29
|
const target = {};
|
|
27
30
|
if (!skipNormalization) {
|
|
28
31
|
base = parse(serialize(base, options), options);
|
|
@@ -52,7 +55,7 @@ function requireFastUri() {
|
|
|
52
55
|
target.query = base.query;
|
|
53
56
|
}
|
|
54
57
|
} else {
|
|
55
|
-
if (relative.path
|
|
58
|
+
if (relative.path[0] === "/") {
|
|
56
59
|
target.path = removeDotSegments(relative.path);
|
|
57
60
|
} else {
|
|
58
61
|
if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
|
|
@@ -91,7 +94,7 @@ function requireFastUri() {
|
|
|
91
94
|
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
92
95
|
}
|
|
93
96
|
function serialize(cmpts, opts) {
|
|
94
|
-
const
|
|
97
|
+
const component = {
|
|
95
98
|
host: cmpts.host,
|
|
96
99
|
scheme: cmpts.scheme,
|
|
97
100
|
userinfo: cmpts.userinfo,
|
|
@@ -109,60 +112,49 @@ function requireFastUri() {
|
|
|
109
112
|
};
|
|
110
113
|
const options = Object.assign({}, opts);
|
|
111
114
|
const uriTokens = [];
|
|
112
|
-
const schemeHandler =
|
|
113
|
-
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(
|
|
114
|
-
if (
|
|
115
|
+
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
116
|
+
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
117
|
+
if (component.path !== void 0) {
|
|
115
118
|
if (!options.skipEscape) {
|
|
116
|
-
|
|
117
|
-
if (
|
|
118
|
-
|
|
119
|
+
component.path = escape(component.path);
|
|
120
|
+
if (component.scheme !== void 0) {
|
|
121
|
+
component.path = component.path.split("%3A").join(":");
|
|
119
122
|
}
|
|
120
123
|
} else {
|
|
121
|
-
|
|
124
|
+
component.path = unescape(component.path);
|
|
122
125
|
}
|
|
123
126
|
}
|
|
124
|
-
if (options.reference !== "suffix" &&
|
|
125
|
-
uriTokens.push(
|
|
127
|
+
if (options.reference !== "suffix" && component.scheme) {
|
|
128
|
+
uriTokens.push(component.scheme, ":");
|
|
126
129
|
}
|
|
127
|
-
const authority = recomposeAuthority(
|
|
130
|
+
const authority = recomposeAuthority(component);
|
|
128
131
|
if (authority !== void 0) {
|
|
129
132
|
if (options.reference !== "suffix") {
|
|
130
133
|
uriTokens.push("//");
|
|
131
134
|
}
|
|
132
135
|
uriTokens.push(authority);
|
|
133
|
-
if (
|
|
136
|
+
if (component.path && component.path[0] !== "/") {
|
|
134
137
|
uriTokens.push("/");
|
|
135
138
|
}
|
|
136
139
|
}
|
|
137
|
-
if (
|
|
138
|
-
let s =
|
|
140
|
+
if (component.path !== void 0) {
|
|
141
|
+
let s = component.path;
|
|
139
142
|
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
140
143
|
s = removeDotSegments(s);
|
|
141
144
|
}
|
|
142
|
-
if (authority === void 0) {
|
|
143
|
-
s =
|
|
145
|
+
if (authority === void 0 && s[0] === "/" && s[1] === "/") {
|
|
146
|
+
s = "/%2F" + s.slice(2);
|
|
144
147
|
}
|
|
145
148
|
uriTokens.push(s);
|
|
146
149
|
}
|
|
147
|
-
if (
|
|
148
|
-
uriTokens.push("?",
|
|
150
|
+
if (component.query !== void 0) {
|
|
151
|
+
uriTokens.push("?", component.query);
|
|
149
152
|
}
|
|
150
|
-
if (
|
|
151
|
-
uriTokens.push("#",
|
|
153
|
+
if (component.fragment !== void 0) {
|
|
154
|
+
uriTokens.push("#", component.fragment);
|
|
152
155
|
}
|
|
153
156
|
return uriTokens.join("");
|
|
154
157
|
}
|
|
155
|
-
const hexLookUp = Array.from({ length: 127 }, (_v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)));
|
|
156
|
-
function nonSimpleDomain(value) {
|
|
157
|
-
let code = 0;
|
|
158
|
-
for (let i = 0, len = value.length; i < len; ++i) {
|
|
159
|
-
code = value.charCodeAt(i);
|
|
160
|
-
if (code > 126 || hexLookUp[code]) {
|
|
161
|
-
return true;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
return false;
|
|
165
|
-
}
|
|
166
158
|
const URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
167
159
|
function parse(uri, opts) {
|
|
168
160
|
const options = Object.assign({}, opts);
|
|
@@ -175,9 +167,14 @@ function requireFastUri() {
|
|
|
175
167
|
query: void 0,
|
|
176
168
|
fragment: void 0
|
|
177
169
|
};
|
|
178
|
-
const gotEncoding = uri.indexOf("%") !== -1;
|
|
179
170
|
let isIP = false;
|
|
180
|
-
if (options.reference === "suffix")
|
|
171
|
+
if (options.reference === "suffix") {
|
|
172
|
+
if (options.scheme) {
|
|
173
|
+
uri = options.scheme + ":" + uri;
|
|
174
|
+
} else {
|
|
175
|
+
uri = "//" + uri;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
181
178
|
const matches = uri.match(URI_PARSE);
|
|
182
179
|
if (matches) {
|
|
183
180
|
parsed.scheme = matches[1];
|
|
@@ -191,13 +188,12 @@ function requireFastUri() {
|
|
|
191
188
|
parsed.port = matches[5];
|
|
192
189
|
}
|
|
193
190
|
if (parsed.host) {
|
|
194
|
-
const ipv4result =
|
|
195
|
-
if (ipv4result
|
|
196
|
-
const ipv6result = normalizeIPv6(
|
|
191
|
+
const ipv4result = isIPv4(parsed.host);
|
|
192
|
+
if (ipv4result === false) {
|
|
193
|
+
const ipv6result = normalizeIPv6(parsed.host);
|
|
197
194
|
parsed.host = ipv6result.host.toLowerCase();
|
|
198
195
|
isIP = ipv6result.isIPV6;
|
|
199
196
|
} else {
|
|
200
|
-
parsed.host = ipv4result.host;
|
|
201
197
|
isIP = true;
|
|
202
198
|
}
|
|
203
199
|
}
|
|
@@ -213,7 +209,7 @@ function requireFastUri() {
|
|
|
213
209
|
if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) {
|
|
214
210
|
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
215
211
|
}
|
|
216
|
-
const schemeHandler =
|
|
212
|
+
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
217
213
|
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
218
214
|
if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
219
215
|
try {
|
|
@@ -224,11 +220,13 @@ function requireFastUri() {
|
|
|
224
220
|
}
|
|
225
221
|
}
|
|
226
222
|
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
227
|
-
if (
|
|
228
|
-
parsed.scheme
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
parsed.host
|
|
223
|
+
if (uri.indexOf("%") !== -1) {
|
|
224
|
+
if (parsed.scheme !== void 0) {
|
|
225
|
+
parsed.scheme = unescape(parsed.scheme);
|
|
226
|
+
}
|
|
227
|
+
if (parsed.host !== void 0) {
|
|
228
|
+
parsed.host = unescape(parsed.host);
|
|
229
|
+
}
|
|
232
230
|
}
|
|
233
231
|
if (parsed.path) {
|
|
234
232
|
parsed.path = escape(unescape(parsed.path));
|
|
@@ -249,7 +247,7 @@ function requireFastUri() {
|
|
|
249
247
|
SCHEMES,
|
|
250
248
|
normalize,
|
|
251
249
|
resolve,
|
|
252
|
-
|
|
250
|
+
resolveComponent,
|
|
253
251
|
equal,
|
|
254
252
|
serialize,
|
|
255
253
|
parse
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const utils = require("./utils.cjs");
|
|
4
|
+
var schemes;
|
|
5
|
+
var hasRequiredSchemes;
|
|
6
|
+
function requireSchemes() {
|
|
7
|
+
if (hasRequiredSchemes) return schemes;
|
|
8
|
+
hasRequiredSchemes = 1;
|
|
9
|
+
const { isUUID } = utils.__require();
|
|
10
|
+
const URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
11
|
+
const supportedSchemeNames = (
|
|
12
|
+
/** @type {const} */
|
|
13
|
+
[
|
|
14
|
+
"http",
|
|
15
|
+
"https",
|
|
16
|
+
"ws",
|
|
17
|
+
"wss",
|
|
18
|
+
"urn",
|
|
19
|
+
"urn:uuid"
|
|
20
|
+
]
|
|
21
|
+
);
|
|
22
|
+
function isValidSchemeName(name) {
|
|
23
|
+
return supportedSchemeNames.indexOf(
|
|
24
|
+
/** @type {*} */
|
|
25
|
+
name
|
|
26
|
+
) !== -1;
|
|
27
|
+
}
|
|
28
|
+
function wsIsSecure(wsComponent) {
|
|
29
|
+
if (wsComponent.secure === true) {
|
|
30
|
+
return true;
|
|
31
|
+
} else if (wsComponent.secure === false) {
|
|
32
|
+
return false;
|
|
33
|
+
} else if (wsComponent.scheme) {
|
|
34
|
+
return wsComponent.scheme.length === 3 && (wsComponent.scheme[0] === "w" || wsComponent.scheme[0] === "W") && (wsComponent.scheme[1] === "s" || wsComponent.scheme[1] === "S") && (wsComponent.scheme[2] === "s" || wsComponent.scheme[2] === "S");
|
|
35
|
+
} else {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function httpParse(component) {
|
|
40
|
+
if (!component.host) {
|
|
41
|
+
component.error = component.error || "HTTP URIs must have a host.";
|
|
42
|
+
}
|
|
43
|
+
return component;
|
|
44
|
+
}
|
|
45
|
+
function httpSerialize(component) {
|
|
46
|
+
const secure = String(component.scheme).toLowerCase() === "https";
|
|
47
|
+
if (component.port === (secure ? 443 : 80) || component.port === "") {
|
|
48
|
+
component.port = void 0;
|
|
49
|
+
}
|
|
50
|
+
if (!component.path) {
|
|
51
|
+
component.path = "/";
|
|
52
|
+
}
|
|
53
|
+
return component;
|
|
54
|
+
}
|
|
55
|
+
function wsParse(wsComponent) {
|
|
56
|
+
wsComponent.secure = wsIsSecure(wsComponent);
|
|
57
|
+
wsComponent.resourceName = (wsComponent.path || "/") + (wsComponent.query ? "?" + wsComponent.query : "");
|
|
58
|
+
wsComponent.path = void 0;
|
|
59
|
+
wsComponent.query = void 0;
|
|
60
|
+
return wsComponent;
|
|
61
|
+
}
|
|
62
|
+
function wsSerialize(wsComponent) {
|
|
63
|
+
if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === "") {
|
|
64
|
+
wsComponent.port = void 0;
|
|
65
|
+
}
|
|
66
|
+
if (typeof wsComponent.secure === "boolean") {
|
|
67
|
+
wsComponent.scheme = wsComponent.secure ? "wss" : "ws";
|
|
68
|
+
wsComponent.secure = void 0;
|
|
69
|
+
}
|
|
70
|
+
if (wsComponent.resourceName) {
|
|
71
|
+
const [path, query] = wsComponent.resourceName.split("?");
|
|
72
|
+
wsComponent.path = path && path !== "/" ? path : void 0;
|
|
73
|
+
wsComponent.query = query;
|
|
74
|
+
wsComponent.resourceName = void 0;
|
|
75
|
+
}
|
|
76
|
+
wsComponent.fragment = void 0;
|
|
77
|
+
return wsComponent;
|
|
78
|
+
}
|
|
79
|
+
function urnParse(urnComponent, options) {
|
|
80
|
+
if (!urnComponent.path) {
|
|
81
|
+
urnComponent.error = "URN can not be parsed";
|
|
82
|
+
return urnComponent;
|
|
83
|
+
}
|
|
84
|
+
const matches = urnComponent.path.match(URN_REG);
|
|
85
|
+
if (matches) {
|
|
86
|
+
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
87
|
+
urnComponent.nid = matches[1].toLowerCase();
|
|
88
|
+
urnComponent.nss = matches[2];
|
|
89
|
+
const urnScheme = `${scheme}:${options.nid || urnComponent.nid}`;
|
|
90
|
+
const schemeHandler = getSchemeHandler(urnScheme);
|
|
91
|
+
urnComponent.path = void 0;
|
|
92
|
+
if (schemeHandler) {
|
|
93
|
+
urnComponent = schemeHandler.parse(urnComponent, options);
|
|
94
|
+
}
|
|
95
|
+
} else {
|
|
96
|
+
urnComponent.error = urnComponent.error || "URN can not be parsed.";
|
|
97
|
+
}
|
|
98
|
+
return urnComponent;
|
|
99
|
+
}
|
|
100
|
+
function urnSerialize(urnComponent, options) {
|
|
101
|
+
if (urnComponent.nid === void 0) {
|
|
102
|
+
throw new Error("URN without nid cannot be serialized");
|
|
103
|
+
}
|
|
104
|
+
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
105
|
+
const nid = urnComponent.nid.toLowerCase();
|
|
106
|
+
const urnScheme = `${scheme}:${options.nid || nid}`;
|
|
107
|
+
const schemeHandler = getSchemeHandler(urnScheme);
|
|
108
|
+
if (schemeHandler) {
|
|
109
|
+
urnComponent = schemeHandler.serialize(urnComponent, options);
|
|
110
|
+
}
|
|
111
|
+
const uriComponent = urnComponent;
|
|
112
|
+
const nss = urnComponent.nss;
|
|
113
|
+
uriComponent.path = `${nid || options.nid}:${nss}`;
|
|
114
|
+
options.skipEscape = true;
|
|
115
|
+
return uriComponent;
|
|
116
|
+
}
|
|
117
|
+
function urnuuidParse(urnComponent, options) {
|
|
118
|
+
const uuidComponent = urnComponent;
|
|
119
|
+
uuidComponent.uuid = uuidComponent.nss;
|
|
120
|
+
uuidComponent.nss = void 0;
|
|
121
|
+
if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) {
|
|
122
|
+
uuidComponent.error = uuidComponent.error || "UUID is not valid.";
|
|
123
|
+
}
|
|
124
|
+
return uuidComponent;
|
|
125
|
+
}
|
|
126
|
+
function urnuuidSerialize(uuidComponent) {
|
|
127
|
+
const urnComponent = uuidComponent;
|
|
128
|
+
urnComponent.nss = (uuidComponent.uuid || "").toLowerCase();
|
|
129
|
+
return urnComponent;
|
|
130
|
+
}
|
|
131
|
+
const http = (
|
|
132
|
+
/** @type {SchemeHandler} */
|
|
133
|
+
{
|
|
134
|
+
scheme: "http",
|
|
135
|
+
domainHost: true,
|
|
136
|
+
parse: httpParse,
|
|
137
|
+
serialize: httpSerialize
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
const https = (
|
|
141
|
+
/** @type {SchemeHandler} */
|
|
142
|
+
{
|
|
143
|
+
scheme: "https",
|
|
144
|
+
domainHost: http.domainHost,
|
|
145
|
+
parse: httpParse,
|
|
146
|
+
serialize: httpSerialize
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
const ws = (
|
|
150
|
+
/** @type {SchemeHandler} */
|
|
151
|
+
{
|
|
152
|
+
scheme: "ws",
|
|
153
|
+
domainHost: true,
|
|
154
|
+
parse: wsParse,
|
|
155
|
+
serialize: wsSerialize
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
const wss = (
|
|
159
|
+
/** @type {SchemeHandler} */
|
|
160
|
+
{
|
|
161
|
+
scheme: "wss",
|
|
162
|
+
domainHost: ws.domainHost,
|
|
163
|
+
parse: ws.parse,
|
|
164
|
+
serialize: ws.serialize
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
const urn = (
|
|
168
|
+
/** @type {SchemeHandler} */
|
|
169
|
+
{
|
|
170
|
+
scheme: "urn",
|
|
171
|
+
parse: urnParse,
|
|
172
|
+
serialize: urnSerialize,
|
|
173
|
+
skipNormalize: true
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
const urnuuid = (
|
|
177
|
+
/** @type {SchemeHandler} */
|
|
178
|
+
{
|
|
179
|
+
scheme: "urn:uuid",
|
|
180
|
+
parse: urnuuidParse,
|
|
181
|
+
serialize: urnuuidSerialize,
|
|
182
|
+
skipNormalize: true
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
const SCHEMES = (
|
|
186
|
+
/** @type {Record<SchemeName, SchemeHandler>} */
|
|
187
|
+
{
|
|
188
|
+
http,
|
|
189
|
+
https,
|
|
190
|
+
ws,
|
|
191
|
+
wss,
|
|
192
|
+
urn,
|
|
193
|
+
"urn:uuid": urnuuid
|
|
194
|
+
}
|
|
195
|
+
);
|
|
196
|
+
Object.setPrototypeOf(SCHEMES, null);
|
|
197
|
+
function getSchemeHandler(scheme) {
|
|
198
|
+
return scheme && (SCHEMES[
|
|
199
|
+
/** @type {SchemeName} */
|
|
200
|
+
scheme
|
|
201
|
+
] || SCHEMES[
|
|
202
|
+
/** @type {SchemeName} */
|
|
203
|
+
scheme.toLowerCase()
|
|
204
|
+
]) || void 0;
|
|
205
|
+
}
|
|
206
|
+
schemes = {
|
|
207
|
+
wsIsSecure,
|
|
208
|
+
SCHEMES,
|
|
209
|
+
isValidSchemeName,
|
|
210
|
+
getSchemeHandler
|
|
211
|
+
};
|
|
212
|
+
return schemes;
|
|
213
|
+
}
|
|
214
|
+
exports.__require = requireSchemes;
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var utils;
|
|
4
|
+
var hasRequiredUtils;
|
|
5
|
+
function requireUtils() {
|
|
6
|
+
if (hasRequiredUtils) return utils;
|
|
7
|
+
hasRequiredUtils = 1;
|
|
8
|
+
const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
9
|
+
const isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
10
|
+
function stringArrayToHexStripped(input) {
|
|
11
|
+
let acc = "";
|
|
12
|
+
let code = 0;
|
|
13
|
+
let i = 0;
|
|
14
|
+
for (i = 0; i < input.length; i++) {
|
|
15
|
+
code = input[i].charCodeAt(0);
|
|
16
|
+
if (code === 48) {
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
|
|
20
|
+
return "";
|
|
21
|
+
}
|
|
22
|
+
acc += input[i];
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
for (i += 1; i < input.length; i++) {
|
|
26
|
+
code = input[i].charCodeAt(0);
|
|
27
|
+
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
|
|
28
|
+
return "";
|
|
29
|
+
}
|
|
30
|
+
acc += input[i];
|
|
31
|
+
}
|
|
32
|
+
return acc;
|
|
33
|
+
}
|
|
34
|
+
const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
35
|
+
function consumeIsZone(buffer) {
|
|
36
|
+
buffer.length = 0;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function consumeHextets(buffer, address, output) {
|
|
40
|
+
if (buffer.length) {
|
|
41
|
+
const hex = stringArrayToHexStripped(buffer);
|
|
42
|
+
if (hex !== "") {
|
|
43
|
+
address.push(hex);
|
|
44
|
+
} else {
|
|
45
|
+
output.error = true;
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
buffer.length = 0;
|
|
49
|
+
}
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function getIPV6(input) {
|
|
53
|
+
let tokenCount = 0;
|
|
54
|
+
const output = { error: false, address: "", zone: "" };
|
|
55
|
+
const address = [];
|
|
56
|
+
const buffer = [];
|
|
57
|
+
let endipv6Encountered = false;
|
|
58
|
+
let endIpv6 = false;
|
|
59
|
+
let consume = consumeHextets;
|
|
60
|
+
for (let i = 0; i < input.length; i++) {
|
|
61
|
+
const cursor = input[i];
|
|
62
|
+
if (cursor === "[" || cursor === "]") {
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
if (cursor === ":") {
|
|
66
|
+
if (endipv6Encountered === true) {
|
|
67
|
+
endIpv6 = true;
|
|
68
|
+
}
|
|
69
|
+
if (!consume(buffer, address, output)) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
if (++tokenCount > 7) {
|
|
73
|
+
output.error = true;
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
if (i > 0 && input[i - 1] === ":") {
|
|
77
|
+
endipv6Encountered = true;
|
|
78
|
+
}
|
|
79
|
+
address.push(":");
|
|
80
|
+
continue;
|
|
81
|
+
} else if (cursor === "%") {
|
|
82
|
+
if (!consume(buffer, address, output)) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
consume = consumeIsZone;
|
|
86
|
+
} else {
|
|
87
|
+
buffer.push(cursor);
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (buffer.length) {
|
|
92
|
+
if (consume === consumeIsZone) {
|
|
93
|
+
output.zone = buffer.join("");
|
|
94
|
+
} else if (endIpv6) {
|
|
95
|
+
address.push(buffer.join(""));
|
|
96
|
+
} else {
|
|
97
|
+
address.push(stringArrayToHexStripped(buffer));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
output.address = address.join("");
|
|
101
|
+
return output;
|
|
102
|
+
}
|
|
103
|
+
function normalizeIPv6(host) {
|
|
104
|
+
if (findToken(host, ":") < 2) {
|
|
105
|
+
return { host, isIPV6: false };
|
|
106
|
+
}
|
|
107
|
+
const ipv6 = getIPV6(host);
|
|
108
|
+
if (!ipv6.error) {
|
|
109
|
+
let newHost = ipv6.address;
|
|
110
|
+
let escapedHost = ipv6.address;
|
|
111
|
+
if (ipv6.zone) {
|
|
112
|
+
newHost += "%" + ipv6.zone;
|
|
113
|
+
escapedHost += "%25" + ipv6.zone;
|
|
114
|
+
}
|
|
115
|
+
return { host: newHost, isIPV6: true, escapedHost };
|
|
116
|
+
} else {
|
|
117
|
+
return { host, isIPV6: false };
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function findToken(str, token) {
|
|
121
|
+
let ind = 0;
|
|
122
|
+
for (let i = 0; i < str.length; i++) {
|
|
123
|
+
if (str[i] === token) ind++;
|
|
124
|
+
}
|
|
125
|
+
return ind;
|
|
126
|
+
}
|
|
127
|
+
function removeDotSegments(path) {
|
|
128
|
+
let input = path;
|
|
129
|
+
const output = [];
|
|
130
|
+
let nextSlash = -1;
|
|
131
|
+
let len = 0;
|
|
132
|
+
while (len = input.length) {
|
|
133
|
+
if (len === 1) {
|
|
134
|
+
if (input === ".") {
|
|
135
|
+
break;
|
|
136
|
+
} else if (input === "/") {
|
|
137
|
+
output.push("/");
|
|
138
|
+
break;
|
|
139
|
+
} else {
|
|
140
|
+
output.push(input);
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
} else if (len === 2) {
|
|
144
|
+
if (input[0] === ".") {
|
|
145
|
+
if (input[1] === ".") {
|
|
146
|
+
break;
|
|
147
|
+
} else if (input[1] === "/") {
|
|
148
|
+
input = input.slice(2);
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
} else if (input[0] === "/") {
|
|
152
|
+
if (input[1] === "." || input[1] === "/") {
|
|
153
|
+
output.push("/");
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
} else if (len === 3) {
|
|
158
|
+
if (input === "/..") {
|
|
159
|
+
if (output.length !== 0) {
|
|
160
|
+
output.pop();
|
|
161
|
+
}
|
|
162
|
+
output.push("/");
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
if (input[0] === ".") {
|
|
167
|
+
if (input[1] === ".") {
|
|
168
|
+
if (input[2] === "/") {
|
|
169
|
+
input = input.slice(3);
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
} else if (input[1] === "/") {
|
|
173
|
+
input = input.slice(2);
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
} else if (input[0] === "/") {
|
|
177
|
+
if (input[1] === ".") {
|
|
178
|
+
if (input[2] === "/") {
|
|
179
|
+
input = input.slice(2);
|
|
180
|
+
continue;
|
|
181
|
+
} else if (input[2] === ".") {
|
|
182
|
+
if (input[3] === "/") {
|
|
183
|
+
input = input.slice(3);
|
|
184
|
+
if (output.length !== 0) {
|
|
185
|
+
output.pop();
|
|
186
|
+
}
|
|
187
|
+
continue;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if ((nextSlash = input.indexOf("/", 1)) === -1) {
|
|
193
|
+
output.push(input);
|
|
194
|
+
break;
|
|
195
|
+
} else {
|
|
196
|
+
output.push(input.slice(0, nextSlash));
|
|
197
|
+
input = input.slice(nextSlash);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return output.join("");
|
|
201
|
+
}
|
|
202
|
+
function normalizeComponentEncoding(component, esc) {
|
|
203
|
+
const func = esc !== true ? escape : unescape;
|
|
204
|
+
if (component.scheme !== void 0) {
|
|
205
|
+
component.scheme = func(component.scheme);
|
|
206
|
+
}
|
|
207
|
+
if (component.userinfo !== void 0) {
|
|
208
|
+
component.userinfo = func(component.userinfo);
|
|
209
|
+
}
|
|
210
|
+
if (component.host !== void 0) {
|
|
211
|
+
component.host = func(component.host);
|
|
212
|
+
}
|
|
213
|
+
if (component.path !== void 0) {
|
|
214
|
+
component.path = func(component.path);
|
|
215
|
+
}
|
|
216
|
+
if (component.query !== void 0) {
|
|
217
|
+
component.query = func(component.query);
|
|
218
|
+
}
|
|
219
|
+
if (component.fragment !== void 0) {
|
|
220
|
+
component.fragment = func(component.fragment);
|
|
221
|
+
}
|
|
222
|
+
return component;
|
|
223
|
+
}
|
|
224
|
+
function recomposeAuthority(component) {
|
|
225
|
+
const uriTokens = [];
|
|
226
|
+
if (component.userinfo !== void 0) {
|
|
227
|
+
uriTokens.push(component.userinfo);
|
|
228
|
+
uriTokens.push("@");
|
|
229
|
+
}
|
|
230
|
+
if (component.host !== void 0) {
|
|
231
|
+
let host = unescape(component.host);
|
|
232
|
+
if (!isIPv4(host)) {
|
|
233
|
+
const ipV6res = normalizeIPv6(host);
|
|
234
|
+
if (ipV6res.isIPV6 === true) {
|
|
235
|
+
host = `[${ipV6res.escapedHost}]`;
|
|
236
|
+
} else {
|
|
237
|
+
host = component.host;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
uriTokens.push(host);
|
|
241
|
+
}
|
|
242
|
+
if (typeof component.port === "number" || typeof component.port === "string") {
|
|
243
|
+
uriTokens.push(":");
|
|
244
|
+
uriTokens.push(String(component.port));
|
|
245
|
+
}
|
|
246
|
+
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
247
|
+
}
|
|
248
|
+
utils = {
|
|
249
|
+
nonSimpleDomain,
|
|
250
|
+
recomposeAuthority,
|
|
251
|
+
normalizeComponentEncoding,
|
|
252
|
+
removeDotSegments,
|
|
253
|
+
isIPv4,
|
|
254
|
+
isUUID,
|
|
255
|
+
normalizeIPv6,
|
|
256
|
+
stringArrayToHexStripped
|
|
257
|
+
};
|
|
258
|
+
return utils;
|
|
259
|
+
}
|
|
260
|
+
exports.__require = requireUtils;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exports as uri } from "../../../../../../.bundled/jsonforms/esm/_virtual/uri.mjs";
|
|
2
|
-
import { __require as requireFastUri } from "../../../../fast-uri@3.0
|
|
2
|
+
import { __require as requireFastUri } from "../../../../fast-uri@3.1.0/fast-uri/index.mjs";
|
|
3
3
|
var hasRequiredUri;
|
|
4
4
|
function requireUri() {
|
|
5
5
|
if (hasRequiredUri) return uri;
|