@ontos-ai/knowhere-claw 0.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +163 -0
  2. package/dist/_virtual/_rolldown/runtime.js +37 -0
  3. package/dist/client.d.ts +33 -0
  4. package/dist/client.js +395 -0
  5. package/dist/config.d.ts +6 -0
  6. package/dist/config.js +132 -0
  7. package/dist/error-message.d.ts +1 -0
  8. package/dist/error-message.js +48 -0
  9. package/dist/hooks.d.ts +8 -0
  10. package/dist/hooks.js +415 -0
  11. package/dist/index.d.ts +9 -0
  12. package/dist/index.js +43 -0
  13. package/dist/node_modules/.pnpm/@knowhere-ai_sdk@0.1.1/node_modules/@knowhere-ai/sdk/dist/index.js +717 -0
  14. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/adapters.js +83 -0
  15. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/fetch.js +170 -0
  16. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/xhr.js +106 -0
  17. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/axios.js +57 -0
  18. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CancelToken.js +90 -0
  19. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CanceledError.js +20 -0
  20. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/isCancel.js +6 -0
  21. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/Axios.js +174 -0
  22. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosError.js +70 -0
  23. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosHeaders.js +204 -0
  24. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/InterceptorManager.js +60 -0
  25. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/buildFullPath.js +20 -0
  26. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/dispatchRequest.js +52 -0
  27. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/mergeConfig.js +81 -0
  28. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/settle.js +18 -0
  29. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/transformData.js +25 -0
  30. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/index.js +107 -0
  31. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/transitional.js +9 -0
  32. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/env/data.js +4 -0
  33. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +50 -0
  34. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
  35. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/bind.js +15 -0
  36. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/buildURL.js +40 -0
  37. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/combineURLs.js +14 -0
  38. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/composeSignals.js +39 -0
  39. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/cookies.js +31 -0
  40. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/formDataToJSON.js +67 -0
  41. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
  42. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  43. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
  44. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
  45. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  46. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/progressEventReducer.js +38 -0
  47. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/resolveConfig.js +36 -0
  48. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/speedometer.js +36 -0
  49. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/spread.js +29 -0
  50. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/throttle.js +38 -0
  51. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toFormData.js +151 -0
  52. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
  53. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/trackStream.js +69 -0
  54. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/validator.js +76 -0
  55. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  56. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  57. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  58. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/index.js +22 -0
  59. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/common/utils.js +46 -0
  60. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/index.js +9 -0
  61. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/utils.js +698 -0
  62. package/dist/node_modules/.pnpm/fflate@0.8.2/node_modules/fflate/esm/browser.js +426 -0
  63. package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js +3110 -0
  64. package/dist/parser.d.ts +16 -0
  65. package/dist/parser.js +323 -0
  66. package/dist/session.d.ts +11 -0
  67. package/dist/session.js +78 -0
  68. package/dist/store.d.ts +62 -0
  69. package/dist/store.js +482 -0
  70. package/dist/text.d.ts +10 -0
  71. package/dist/text.js +34 -0
  72. package/dist/tools.d.ts +9 -0
  73. package/dist/tools.js +1177 -0
  74. package/dist/tracker-progress.d.ts +8 -0
  75. package/dist/tracker-progress.js +197 -0
  76. package/dist/types.d.ts +247 -0
  77. package/dist/types.js +9 -0
  78. package/openclaw.plugin.json +107 -0
  79. package/package.json +61 -0
  80. package/skills/knowhere/SKILL.md +243 -0
@@ -0,0 +1,36 @@
1
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/speedometer.js
2
+ /**
3
+ * Calculate data maxRate
4
+ * @param {Number} [samplesCount= 10]
5
+ * @param {Number} [min= 1000]
6
+ * @returns {Function}
7
+ */
8
+ function speedometer(samplesCount, min) {
9
+ samplesCount = samplesCount || 10;
10
+ const bytes = new Array(samplesCount);
11
+ const timestamps = new Array(samplesCount);
12
+ let head = 0;
13
+ let tail = 0;
14
+ let firstSampleTS;
15
+ min = min !== void 0 ? min : 1e3;
16
+ return function push(chunkLength) {
17
+ const now = Date.now();
18
+ const startedAt = timestamps[tail];
19
+ if (!firstSampleTS) firstSampleTS = now;
20
+ bytes[head] = chunkLength;
21
+ timestamps[head] = now;
22
+ let i = tail;
23
+ let bytesCount = 0;
24
+ while (i !== head) {
25
+ bytesCount += bytes[i++];
26
+ i = i % samplesCount;
27
+ }
28
+ head = (head + 1) % samplesCount;
29
+ if (head === tail) tail = (tail + 1) % samplesCount;
30
+ if (now - firstSampleTS < min) return;
31
+ const passed = startedAt && now - startedAt;
32
+ return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
33
+ };
34
+ }
35
+ //#endregion
36
+ export { speedometer as default };
@@ -0,0 +1,29 @@
1
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/spread.js
2
+ /**
3
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
4
+ *
5
+ * Common use case would be to use `Function.prototype.apply`.
6
+ *
7
+ * ```js
8
+ * function f(x, y, z) {}
9
+ * const args = [1, 2, 3];
10
+ * f.apply(null, args);
11
+ * ```
12
+ *
13
+ * With `spread` this example can be re-written.
14
+ *
15
+ * ```js
16
+ * spread(function(x, y, z) {})([1, 2, 3]);
17
+ * ```
18
+ *
19
+ * @param {Function} callback
20
+ *
21
+ * @returns {Function}
22
+ */
23
+ function spread(callback) {
24
+ return function wrap(arr) {
25
+ return callback.apply(null, arr);
26
+ };
27
+ }
28
+ //#endregion
29
+ export { spread as default };
@@ -0,0 +1,38 @@
1
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/throttle.js
2
+ /**
3
+ * Throttle decorator
4
+ * @param {Function} fn
5
+ * @param {Number} freq
6
+ * @return {Function}
7
+ */
8
+ function throttle(fn, freq) {
9
+ let timestamp = 0;
10
+ let threshold = 1e3 / freq;
11
+ let lastArgs;
12
+ let timer;
13
+ const invoke = (args, now = Date.now()) => {
14
+ timestamp = now;
15
+ lastArgs = null;
16
+ if (timer) {
17
+ clearTimeout(timer);
18
+ timer = null;
19
+ }
20
+ fn(...args);
21
+ };
22
+ const throttled = (...args) => {
23
+ const now = Date.now();
24
+ const passed = now - timestamp;
25
+ if (passed >= threshold) invoke(args, now);
26
+ else {
27
+ lastArgs = args;
28
+ if (!timer) timer = setTimeout(() => {
29
+ timer = null;
30
+ invoke(lastArgs);
31
+ }, threshold - passed);
32
+ }
33
+ };
34
+ const flush = () => lastArgs && invoke(lastArgs);
35
+ return [throttled, flush];
36
+ }
37
+ //#endregion
38
+ export { throttle as default };
@@ -0,0 +1,151 @@
1
+ import utils_default from "../utils.js";
2
+ import AxiosError from "../core/AxiosError.js";
3
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toFormData.js
4
+ /**
5
+ * Determines if the given thing is a array or js object.
6
+ *
7
+ * @param {string} thing - The object or array to be visited.
8
+ *
9
+ * @returns {boolean}
10
+ */
11
+ function isVisitable(thing) {
12
+ return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
13
+ }
14
+ /**
15
+ * It removes the brackets from the end of a string
16
+ *
17
+ * @param {string} key - The key of the parameter.
18
+ *
19
+ * @returns {string} the key without the brackets.
20
+ */
21
+ function removeBrackets(key) {
22
+ return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
23
+ }
24
+ /**
25
+ * It takes a path, a key, and a boolean, and returns a string
26
+ *
27
+ * @param {string} path - The path to the current key.
28
+ * @param {string} key - The key of the current object being iterated over.
29
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
30
+ *
31
+ * @returns {string} The path to the current key.
32
+ */
33
+ function renderKey(path, key, dots) {
34
+ if (!path) return key;
35
+ return path.concat(key).map(function each(token, i) {
36
+ token = removeBrackets(token);
37
+ return !dots && i ? "[" + token + "]" : token;
38
+ }).join(dots ? "." : "");
39
+ }
40
+ /**
41
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
42
+ *
43
+ * @param {Array<any>} arr - The array to check
44
+ *
45
+ * @returns {boolean}
46
+ */
47
+ function isFlatArray(arr) {
48
+ return utils_default.isArray(arr) && !arr.some(isVisitable);
49
+ }
50
+ const predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
51
+ return /^is[A-Z]/.test(prop);
52
+ });
53
+ /**
54
+ * Convert a data object to FormData
55
+ *
56
+ * @param {Object} obj
57
+ * @param {?Object} [formData]
58
+ * @param {?Object} [options]
59
+ * @param {Function} [options.visitor]
60
+ * @param {Boolean} [options.metaTokens = true]
61
+ * @param {Boolean} [options.dots = false]
62
+ * @param {?Boolean} [options.indexes = false]
63
+ *
64
+ * @returns {Object}
65
+ **/
66
+ /**
67
+ * It converts an object into a FormData object
68
+ *
69
+ * @param {Object<any, any>} obj - The object to convert to form data.
70
+ * @param {string} formData - The FormData object to append to.
71
+ * @param {Object<string, any>} options
72
+ *
73
+ * @returns
74
+ */
75
+ function toFormData(obj, formData, options) {
76
+ if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
77
+ formData = formData || new FormData();
78
+ options = utils_default.toFlatObject(options, {
79
+ metaTokens: true,
80
+ dots: false,
81
+ indexes: false
82
+ }, false, function defined(option, source) {
83
+ return !utils_default.isUndefined(source[option]);
84
+ });
85
+ const metaTokens = options.metaTokens;
86
+ const visitor = options.visitor || defaultVisitor;
87
+ const dots = options.dots;
88
+ const indexes = options.indexes;
89
+ const useBlob = (options.Blob || typeof Blob !== "undefined" && Blob) && utils_default.isSpecCompliantForm(formData);
90
+ if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
91
+ function convertValue(value) {
92
+ if (value === null) return "";
93
+ if (utils_default.isDate(value)) return value.toISOString();
94
+ if (utils_default.isBoolean(value)) return value.toString();
95
+ if (!useBlob && utils_default.isBlob(value)) throw new AxiosError("Blob is not supported. Use a Buffer instead.");
96
+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
97
+ return value;
98
+ }
99
+ /**
100
+ * Default visitor.
101
+ *
102
+ * @param {*} value
103
+ * @param {String|Number} key
104
+ * @param {Array<String|Number>} path
105
+ * @this {FormData}
106
+ *
107
+ * @returns {boolean} return true to visit the each prop of the value recursively
108
+ */
109
+ function defaultVisitor(value, key, path) {
110
+ let arr = value;
111
+ if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
112
+ formData.append(renderKey(path, key, dots), convertValue(value));
113
+ return false;
114
+ }
115
+ if (value && !path && typeof value === "object") {
116
+ if (utils_default.endsWith(key, "{}")) {
117
+ key = metaTokens ? key : key.slice(0, -2);
118
+ value = JSON.stringify(value);
119
+ } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
120
+ key = removeBrackets(key);
121
+ arr.forEach(function each(el, index) {
122
+ !(utils_default.isUndefined(el) || el === null) && formData.append(indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el));
123
+ });
124
+ return false;
125
+ }
126
+ }
127
+ if (isVisitable(value)) return true;
128
+ formData.append(renderKey(path, key, dots), convertValue(value));
129
+ return false;
130
+ }
131
+ const stack = [];
132
+ const exposedHelpers = Object.assign(predicates, {
133
+ defaultVisitor,
134
+ convertValue,
135
+ isVisitable
136
+ });
137
+ function build(value, path) {
138
+ if (utils_default.isUndefined(value)) return;
139
+ if (stack.indexOf(value) !== -1) throw Error("Circular reference detected in " + path.join("."));
140
+ stack.push(value);
141
+ utils_default.forEach(value, function each(el, key) {
142
+ if ((!(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers)) === true) build(el, path ? path.concat(key) : [key]);
143
+ });
144
+ stack.pop();
145
+ }
146
+ if (!utils_default.isObject(obj)) throw new TypeError("data must be an object");
147
+ build(obj);
148
+ return formData;
149
+ }
150
+ //#endregion
151
+ export { toFormData as default };
@@ -0,0 +1,18 @@
1
+ import utils_default from "../utils.js";
2
+ import toFormData from "./toFormData.js";
3
+ import platform_default from "../platform/index.js";
4
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toURLEncodedForm.js
5
+ function toURLEncodedForm(data, options) {
6
+ return toFormData(data, new platform_default.classes.URLSearchParams(), {
7
+ visitor: function(value, key, path, helpers) {
8
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
9
+ this.append(key, value.toString("base64"));
10
+ return false;
11
+ }
12
+ return helpers.defaultVisitor.apply(this, arguments);
13
+ },
14
+ ...options
15
+ });
16
+ }
17
+ //#endregion
18
+ export { toURLEncodedForm as default };
@@ -0,0 +1,69 @@
1
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/trackStream.js
2
+ const streamChunk = function* (chunk, chunkSize) {
3
+ let len = chunk.byteLength;
4
+ if (!chunkSize || len < chunkSize) {
5
+ yield chunk;
6
+ return;
7
+ }
8
+ let pos = 0;
9
+ let end;
10
+ while (pos < len) {
11
+ end = pos + chunkSize;
12
+ yield chunk.slice(pos, end);
13
+ pos = end;
14
+ }
15
+ };
16
+ const readBytes = async function* (iterable, chunkSize) {
17
+ for await (const chunk of readStream(iterable)) yield* streamChunk(chunk, chunkSize);
18
+ };
19
+ const readStream = async function* (stream) {
20
+ if (stream[Symbol.asyncIterator]) {
21
+ yield* stream;
22
+ return;
23
+ }
24
+ const reader = stream.getReader();
25
+ try {
26
+ for (;;) {
27
+ const { done, value } = await reader.read();
28
+ if (done) break;
29
+ yield value;
30
+ }
31
+ } finally {
32
+ await reader.cancel();
33
+ }
34
+ };
35
+ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
36
+ const iterator = readBytes(stream, chunkSize);
37
+ let bytes = 0;
38
+ let done;
39
+ let _onFinish = (e) => {
40
+ if (!done) {
41
+ done = true;
42
+ onFinish && onFinish(e);
43
+ }
44
+ };
45
+ return new ReadableStream({
46
+ async pull(controller) {
47
+ try {
48
+ const { done, value } = await iterator.next();
49
+ if (done) {
50
+ _onFinish();
51
+ controller.close();
52
+ return;
53
+ }
54
+ let len = value.byteLength;
55
+ if (onProgress) onProgress(bytes += len);
56
+ controller.enqueue(new Uint8Array(value));
57
+ } catch (err) {
58
+ _onFinish(err);
59
+ throw err;
60
+ }
61
+ },
62
+ cancel(reason) {
63
+ _onFinish(reason);
64
+ return iterator.return();
65
+ }
66
+ }, { highWaterMark: 2 });
67
+ };
68
+ //#endregion
69
+ export { trackStream };
@@ -0,0 +1,76 @@
1
+ import AxiosError from "../core/AxiosError.js";
2
+ import { VERSION } from "../env/data.js";
3
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/validator.js
4
+ const validators = {};
5
+ [
6
+ "object",
7
+ "boolean",
8
+ "number",
9
+ "function",
10
+ "string",
11
+ "symbol"
12
+ ].forEach((type, i) => {
13
+ validators[type] = function validator(thing) {
14
+ return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
15
+ };
16
+ });
17
+ const deprecatedWarnings = {};
18
+ /**
19
+ * Transitional option validator
20
+ *
21
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
22
+ * @param {string?} version - deprecated version / removed since version
23
+ * @param {string?} message - some message with additional info
24
+ *
25
+ * @returns {function}
26
+ */
27
+ validators.transitional = function transitional(validator, version, message) {
28
+ function formatMessage(opt, desc) {
29
+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
30
+ }
31
+ return (value, opt, opts) => {
32
+ if (validator === false) throw new AxiosError(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError.ERR_DEPRECATED);
33
+ if (version && !deprecatedWarnings[opt]) {
34
+ deprecatedWarnings[opt] = true;
35
+ console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
36
+ }
37
+ return validator ? validator(value, opt, opts) : true;
38
+ };
39
+ };
40
+ validators.spelling = function spelling(correctSpelling) {
41
+ return (value, opt) => {
42
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
43
+ return true;
44
+ };
45
+ };
46
+ /**
47
+ * Assert object's properties type
48
+ *
49
+ * @param {object} options
50
+ * @param {object} schema
51
+ * @param {boolean?} allowUnknown
52
+ *
53
+ * @returns {object}
54
+ */
55
+ function assertOptions(options, schema, allowUnknown) {
56
+ if (typeof options !== "object") throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
57
+ const keys = Object.keys(options);
58
+ let i = keys.length;
59
+ while (i-- > 0) {
60
+ const opt = keys[i];
61
+ const validator = schema[opt];
62
+ if (validator) {
63
+ const value = options[opt];
64
+ const result = value === void 0 || validator(value, opt, options);
65
+ if (result !== true) throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
66
+ continue;
67
+ }
68
+ if (allowUnknown !== true) throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
69
+ }
70
+ }
71
+ var validator_default = {
72
+ assertOptions,
73
+ validators
74
+ };
75
+ //#endregion
76
+ export { validator_default as default };
@@ -0,0 +1,4 @@
1
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/Blob.js
2
+ var Blob_default = typeof Blob !== "undefined" ? Blob : null;
3
+ //#endregion
4
+ export { Blob_default as default };
@@ -0,0 +1,4 @@
1
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/FormData.js
2
+ var FormData_default = typeof FormData !== "undefined" ? FormData : null;
3
+ //#endregion
4
+ export { FormData_default as default };
@@ -0,0 +1,5 @@
1
+ import AxiosURLSearchParams from "../../../helpers/AxiosURLSearchParams.js";
2
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
3
+ var URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
4
+ //#endregion
5
+ export { URLSearchParams_default as default };
@@ -0,0 +1,22 @@
1
+ import URLSearchParams_default from "./classes/URLSearchParams.js";
2
+ import FormData_default from "./classes/FormData.js";
3
+ import Blob_default from "./classes/Blob.js";
4
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/index.js
5
+ var browser_default = {
6
+ isBrowser: true,
7
+ classes: {
8
+ URLSearchParams: URLSearchParams_default,
9
+ FormData: FormData_default,
10
+ Blob: Blob_default
11
+ },
12
+ protocols: [
13
+ "http",
14
+ "https",
15
+ "file",
16
+ "blob",
17
+ "url",
18
+ "data"
19
+ ]
20
+ };
21
+ //#endregion
22
+ export { browser_default as default };
@@ -0,0 +1,46 @@
1
+ import { __exportAll } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/common/utils.js
3
+ var utils_exports = /* @__PURE__ */ __exportAll({
4
+ hasBrowserEnv: () => hasBrowserEnv,
5
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
6
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
7
+ navigator: () => _navigator,
8
+ origin: () => origin
9
+ });
10
+ const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
11
+ const _navigator = typeof navigator === "object" && navigator || void 0;
12
+ /**
13
+ * Determine if we're running in a standard browser environment
14
+ *
15
+ * This allows axios to run in a web worker, and react-native.
16
+ * Both environments support XMLHttpRequest, but not fully standard globals.
17
+ *
18
+ * web workers:
19
+ * typeof window -> undefined
20
+ * typeof document -> undefined
21
+ *
22
+ * react-native:
23
+ * navigator.product -> 'ReactNative'
24
+ * nativescript
25
+ * navigator.product -> 'NativeScript' or 'NS'
26
+ *
27
+ * @returns {boolean}
28
+ */
29
+ const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
30
+ "ReactNative",
31
+ "NativeScript",
32
+ "NS"
33
+ ].indexOf(_navigator.product) < 0);
34
+ /**
35
+ * Determine if we're running in a standard browser webWorker environment
36
+ *
37
+ * Although the `isStandardBrowserEnv` method indicates that
38
+ * `allows axios to run in a web worker`, the WebWorker will still be
39
+ * filtered out due to its judgment standard
40
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
41
+ * This leads to a problem when axios post `FormData` in webWorker
42
+ */
43
+ const hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
44
+ const origin = hasBrowserEnv && window.location.href || "http://localhost";
45
+ //#endregion
46
+ export { utils_exports };
@@ -0,0 +1,9 @@
1
+ import browser_default from "./browser/index.js";
2
+ import { utils_exports } from "./common/utils.js";
3
+ //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/index.js
4
+ var platform_default = {
5
+ ...utils_exports,
6
+ ...browser_default
7
+ };
8
+ //#endregion
9
+ export { platform_default as default };