@sonicloud/dsh-sonicloud-device 0.1.0 → 0.1.2
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/CHANGELOG.md +25 -3
- package/CHANGELOG.zh.md +25 -3
- package/README.md +67 -90
- package/README.zh.md +112 -0
- package/dist/build.json +1 -1
- package/dist/client.js +198 -123
- package/docs/contributing/development.md +24 -29
- package/docs/images/plugin-install.png +0 -0
- package/docs/images/sonicloud-device.png +0 -0
- package/docs/specs/ci-cd.md +26 -37
- package/docs/specs/mouse-settings.md +7 -34
- package/docs/specs/smart-mouse-plugin.md +23 -34
- package/native/desktop/VoicePanel.cs +191 -59
- package/native/desktop/typer.dll +0 -0
- package/native/desktop/windows.ps1 +1 -1
- package/package.json +2 -1
- package/src/devices/actions.mjs +7 -1
- package/src/devices/manager.mjs +108 -78
- /package/{src/client/assets → docs/images}/contact-wechat.jpg +0 -0
package/dist/client.js
CHANGED
|
@@ -37,7 +37,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
37
37
|
var import_react5 = __toESM(require("react"), 1);
|
|
38
38
|
var import_dsh_client_ui_primitives3 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
39
39
|
|
|
40
|
-
// node_modules
|
|
40
|
+
// node_modules/zod/v4/classic/external.js
|
|
41
41
|
var external_exports = {};
|
|
42
42
|
__export(external_exports, {
|
|
43
43
|
$brand: () => $brand,
|
|
@@ -300,7 +300,7 @@ __export(external_exports, {
|
|
|
300
300
|
xor: () => xor
|
|
301
301
|
});
|
|
302
302
|
|
|
303
|
-
// node_modules
|
|
303
|
+
// node_modules/zod/v4/core/index.js
|
|
304
304
|
var core_exports2 = {};
|
|
305
305
|
__export(core_exports2, {
|
|
306
306
|
$ZodAny: () => $ZodAny,
|
|
@@ -617,7 +617,7 @@ __export(core_exports2, {
|
|
|
617
617
|
withParser: () => withParser
|
|
618
618
|
});
|
|
619
619
|
|
|
620
|
-
// node_modules
|
|
620
|
+
// node_modules/zod/v4/core/util.js
|
|
621
621
|
var util_exports = {};
|
|
622
622
|
__export(util_exports, {
|
|
623
623
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -1473,7 +1473,7 @@ function constantCatch(value) {
|
|
|
1473
1473
|
return fn;
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
|
-
// node_modules
|
|
1476
|
+
// node_modules/zod/v4/core/core.js
|
|
1477
1477
|
var _a;
|
|
1478
1478
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
1479
1479
|
status: "aborted"
|
|
@@ -1595,7 +1595,7 @@ function config(newConfig) {
|
|
|
1595
1595
|
return globalConfig;
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
|
-
// node_modules
|
|
1598
|
+
// node_modules/zod/v4/core/errors.js
|
|
1599
1599
|
function _getMessage() {
|
|
1600
1600
|
const internals = this._zod;
|
|
1601
1601
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -1787,7 +1787,7 @@ function prettifyError(error62) {
|
|
|
1787
1787
|
return lines.join("\n");
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
-
// node_modules
|
|
1790
|
+
// node_modules/zod/v4/core/parse.js
|
|
1791
1791
|
function finalizeParams(callee, params) {
|
|
1792
1792
|
return { callee: params?.callee ?? callee, Err: params?.Err };
|
|
1793
1793
|
}
|
|
@@ -1947,7 +1947,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1947
1947
|
};
|
|
1948
1948
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1949
1949
|
|
|
1950
|
-
// node_modules
|
|
1950
|
+
// node_modules/zod/v4/core/regexes.js
|
|
1951
1951
|
var regexes_exports = {};
|
|
1952
1952
|
__export(regexes_exports, {
|
|
1953
1953
|
anyString: () => anyString,
|
|
@@ -2119,7 +2119,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
2119
2119
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
2120
2120
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
2121
2121
|
|
|
2122
|
-
// node_modules
|
|
2122
|
+
// node_modules/zod/v4/core/checks.js
|
|
2123
2123
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
2124
2124
|
var _a3;
|
|
2125
2125
|
inst._zod ?? (inst._zod = {});
|
|
@@ -2595,7 +2595,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2595
2595
|
};
|
|
2596
2596
|
});
|
|
2597
2597
|
|
|
2598
|
-
// node_modules
|
|
2598
|
+
// node_modules/zod/v4/core/doc.js
|
|
2599
2599
|
var Doc = class {
|
|
2600
2600
|
constructor(args = [], closed = {}) {
|
|
2601
2601
|
this.content = [];
|
|
@@ -2636,14 +2636,14 @@ ${content.join("\n")}
|
|
|
2636
2636
|
}
|
|
2637
2637
|
};
|
|
2638
2638
|
|
|
2639
|
-
// node_modules
|
|
2639
|
+
// node_modules/zod/v4/core/versions.js
|
|
2640
2640
|
var version = {
|
|
2641
2641
|
major: 4,
|
|
2642
2642
|
minor: 6,
|
|
2643
2643
|
patch: 7
|
|
2644
2644
|
};
|
|
2645
2645
|
|
|
2646
|
-
// node_modules
|
|
2646
|
+
// node_modules/zod/v4/core/schemas.js
|
|
2647
2647
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2648
2648
|
var _a3;
|
|
2649
2649
|
inst ?? (inst = {});
|
|
@@ -5085,7 +5085,7 @@ function handleRefineResult(result, payload, input2, inst) {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
}
|
|
5087
5087
|
|
|
5088
|
-
// node_modules
|
|
5088
|
+
// node_modules/zod/v4/core/memoizer.js
|
|
5089
5089
|
var $ZodCyclicError = class extends Error {
|
|
5090
5090
|
constructor() {
|
|
5091
5091
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -5362,7 +5362,7 @@ function isBackEdge(ctx, value) {
|
|
|
5362
5362
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
5363
5363
|
}
|
|
5364
5364
|
|
|
5365
|
-
// node_modules
|
|
5365
|
+
// node_modules/zod/v4/locales/index.js
|
|
5366
5366
|
var locales_exports = {};
|
|
5367
5367
|
__export(locales_exports, {
|
|
5368
5368
|
ar: () => ar_default,
|
|
@@ -5430,7 +5430,7 @@ __export(locales_exports, {
|
|
|
5430
5430
|
zhTW: () => zh_TW_default
|
|
5431
5431
|
});
|
|
5432
5432
|
|
|
5433
|
-
// node_modules
|
|
5433
|
+
// node_modules/zod/v4/locales/ar.js
|
|
5434
5434
|
var error = () => {
|
|
5435
5435
|
const Sizable = {
|
|
5436
5436
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -5542,7 +5542,7 @@ function ar_default() {
|
|
|
5542
5542
|
};
|
|
5543
5543
|
}
|
|
5544
5544
|
|
|
5545
|
-
// node_modules
|
|
5545
|
+
// node_modules/zod/v4/locales/az.js
|
|
5546
5546
|
var error2 = () => {
|
|
5547
5547
|
const Sizable = {
|
|
5548
5548
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -5653,7 +5653,7 @@ function az_default() {
|
|
|
5653
5653
|
};
|
|
5654
5654
|
}
|
|
5655
5655
|
|
|
5656
|
-
// node_modules
|
|
5656
|
+
// node_modules/zod/v4/locales/be.js
|
|
5657
5657
|
function getBelarusianPlural(count, one, few, many) {
|
|
5658
5658
|
const absCount = Math.abs(count);
|
|
5659
5659
|
const lastDigit = absCount % 10;
|
|
@@ -5822,7 +5822,7 @@ function be_default() {
|
|
|
5822
5822
|
};
|
|
5823
5823
|
}
|
|
5824
5824
|
|
|
5825
|
-
// node_modules
|
|
5825
|
+
// node_modules/zod/v4/locales/bg.js
|
|
5826
5826
|
var error4 = () => {
|
|
5827
5827
|
const Sizable = {
|
|
5828
5828
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -5948,7 +5948,7 @@ function bg_default() {
|
|
|
5948
5948
|
};
|
|
5949
5949
|
}
|
|
5950
5950
|
|
|
5951
|
-
// node_modules
|
|
5951
|
+
// node_modules/zod/v4/locales/bn.js
|
|
5952
5952
|
var error5 = () => {
|
|
5953
5953
|
const Sizable = {
|
|
5954
5954
|
string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
|
|
@@ -6062,7 +6062,7 @@ function bn_default() {
|
|
|
6062
6062
|
};
|
|
6063
6063
|
}
|
|
6064
6064
|
|
|
6065
|
-
// node_modules
|
|
6065
|
+
// node_modules/zod/v4/locales/ca.js
|
|
6066
6066
|
var error6 = () => {
|
|
6067
6067
|
const Sizable = {
|
|
6068
6068
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -6176,7 +6176,7 @@ function ca_default() {
|
|
|
6176
6176
|
};
|
|
6177
6177
|
}
|
|
6178
6178
|
|
|
6179
|
-
// node_modules
|
|
6179
|
+
// node_modules/zod/v4/locales/ckb.js
|
|
6180
6180
|
var error7 = () => {
|
|
6181
6181
|
const Sizable = {
|
|
6182
6182
|
string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
|
|
@@ -6309,7 +6309,7 @@ function ckb_default() {
|
|
|
6309
6309
|
};
|
|
6310
6310
|
}
|
|
6311
6311
|
|
|
6312
|
-
// node_modules
|
|
6312
|
+
// node_modules/zod/v4/locales/cs.js
|
|
6313
6313
|
var error8 = () => {
|
|
6314
6314
|
const Sizable = {
|
|
6315
6315
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -6426,7 +6426,7 @@ function cs_default() {
|
|
|
6426
6426
|
};
|
|
6427
6427
|
}
|
|
6428
6428
|
|
|
6429
|
-
// node_modules
|
|
6429
|
+
// node_modules/zod/v4/locales/da.js
|
|
6430
6430
|
var error9 = () => {
|
|
6431
6431
|
const Sizable = {
|
|
6432
6432
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -6547,7 +6547,7 @@ function da_default() {
|
|
|
6547
6547
|
};
|
|
6548
6548
|
}
|
|
6549
6549
|
|
|
6550
|
-
// node_modules
|
|
6550
|
+
// node_modules/zod/v4/locales/de.js
|
|
6551
6551
|
var error10 = () => {
|
|
6552
6552
|
const Sizable = {
|
|
6553
6553
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -6661,7 +6661,7 @@ function de_default() {
|
|
|
6661
6661
|
};
|
|
6662
6662
|
}
|
|
6663
6663
|
|
|
6664
|
-
// node_modules
|
|
6664
|
+
// node_modules/zod/v4/locales/el.js
|
|
6665
6665
|
var error11 = () => {
|
|
6666
6666
|
const Sizable = {
|
|
6667
6667
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -6774,7 +6774,7 @@ function el_default() {
|
|
|
6774
6774
|
};
|
|
6775
6775
|
}
|
|
6776
6776
|
|
|
6777
|
-
// node_modules
|
|
6777
|
+
// node_modules/zod/v4/locales/en.js
|
|
6778
6778
|
var error12 = () => {
|
|
6779
6779
|
const Sizable = {
|
|
6780
6780
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -6899,7 +6899,7 @@ function en_default() {
|
|
|
6899
6899
|
};
|
|
6900
6900
|
}
|
|
6901
6901
|
|
|
6902
|
-
// node_modules
|
|
6902
|
+
// node_modules/zod/v4/locales/eo.js
|
|
6903
6903
|
var error13 = () => {
|
|
6904
6904
|
const Sizable = {
|
|
6905
6905
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -7014,7 +7014,7 @@ function eo_default() {
|
|
|
7014
7014
|
};
|
|
7015
7015
|
}
|
|
7016
7016
|
|
|
7017
|
-
// node_modules
|
|
7017
|
+
// node_modules/zod/v4/locales/es.js
|
|
7018
7018
|
var error14 = () => {
|
|
7019
7019
|
const Sizable = {
|
|
7020
7020
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -7151,7 +7151,7 @@ function es_default() {
|
|
|
7151
7151
|
};
|
|
7152
7152
|
}
|
|
7153
7153
|
|
|
7154
|
-
// node_modules
|
|
7154
|
+
// node_modules/zod/v4/locales/fa.js
|
|
7155
7155
|
var error15 = () => {
|
|
7156
7156
|
const Sizable = {
|
|
7157
7157
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -7271,7 +7271,7 @@ function fa_default() {
|
|
|
7271
7271
|
};
|
|
7272
7272
|
}
|
|
7273
7273
|
|
|
7274
|
-
// node_modules
|
|
7274
|
+
// node_modules/zod/v4/locales/fi.js
|
|
7275
7275
|
var error16 = () => {
|
|
7276
7276
|
const Sizable = {
|
|
7277
7277
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -7389,7 +7389,7 @@ function fi_default() {
|
|
|
7389
7389
|
};
|
|
7390
7390
|
}
|
|
7391
7391
|
|
|
7392
|
-
// node_modules
|
|
7392
|
+
// node_modules/zod/v4/locales/fr.js
|
|
7393
7393
|
var error17 = () => {
|
|
7394
7394
|
const Sizable = {
|
|
7395
7395
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -7519,7 +7519,7 @@ function fr_default() {
|
|
|
7519
7519
|
};
|
|
7520
7520
|
}
|
|
7521
7521
|
|
|
7522
|
-
// node_modules
|
|
7522
|
+
// node_modules/zod/v4/locales/fr-CA.js
|
|
7523
7523
|
var error18 = () => {
|
|
7524
7524
|
const Sizable = {
|
|
7525
7525
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -7632,7 +7632,7 @@ function fr_CA_default() {
|
|
|
7632
7632
|
};
|
|
7633
7633
|
}
|
|
7634
7634
|
|
|
7635
|
-
// node_modules
|
|
7635
|
+
// node_modules/zod/v4/locales/gu.js
|
|
7636
7636
|
var error19 = () => {
|
|
7637
7637
|
const Sizable = {
|
|
7638
7638
|
string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
|
|
@@ -7746,7 +7746,7 @@ function gu_default() {
|
|
|
7746
7746
|
};
|
|
7747
7747
|
}
|
|
7748
7748
|
|
|
7749
|
-
// node_modules
|
|
7749
|
+
// node_modules/zod/v4/locales/he.js
|
|
7750
7750
|
var error20 = () => {
|
|
7751
7751
|
const TypeNames = {
|
|
7752
7752
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -7948,7 +7948,7 @@ function he_default() {
|
|
|
7948
7948
|
};
|
|
7949
7949
|
}
|
|
7950
7950
|
|
|
7951
|
-
// node_modules
|
|
7951
|
+
// node_modules/zod/v4/locales/hi.js
|
|
7952
7952
|
var error21 = () => {
|
|
7953
7953
|
const Sizable = {
|
|
7954
7954
|
string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
|
|
@@ -8060,7 +8060,7 @@ function hi_default() {
|
|
|
8060
8060
|
};
|
|
8061
8061
|
}
|
|
8062
8062
|
|
|
8063
|
-
// node_modules
|
|
8063
|
+
// node_modules/zod/v4/locales/hr.js
|
|
8064
8064
|
var error22 = () => {
|
|
8065
8065
|
const Sizable = {
|
|
8066
8066
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -8187,7 +8187,7 @@ function hr_default() {
|
|
|
8187
8187
|
};
|
|
8188
8188
|
}
|
|
8189
8189
|
|
|
8190
|
-
// node_modules
|
|
8190
|
+
// node_modules/zod/v4/locales/hu.js
|
|
8191
8191
|
var error23 = () => {
|
|
8192
8192
|
const Sizable = {
|
|
8193
8193
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -8301,7 +8301,7 @@ function hu_default() {
|
|
|
8301
8301
|
};
|
|
8302
8302
|
}
|
|
8303
8303
|
|
|
8304
|
-
// node_modules
|
|
8304
|
+
// node_modules/zod/v4/locales/hy.js
|
|
8305
8305
|
function getArmenianPlural(count, one, many) {
|
|
8306
8306
|
return Math.abs(count) === 1 ? one : many;
|
|
8307
8307
|
}
|
|
@@ -8460,7 +8460,7 @@ function hy_default() {
|
|
|
8460
8460
|
};
|
|
8461
8461
|
}
|
|
8462
8462
|
|
|
8463
|
-
// node_modules
|
|
8463
|
+
// node_modules/zod/v4/locales/id.js
|
|
8464
8464
|
var error25 = () => {
|
|
8465
8465
|
const Sizable = {
|
|
8466
8466
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -8572,7 +8572,7 @@ function id_default() {
|
|
|
8572
8572
|
};
|
|
8573
8573
|
}
|
|
8574
8574
|
|
|
8575
|
-
// node_modules
|
|
8575
|
+
// node_modules/zod/v4/locales/is.js
|
|
8576
8576
|
var error26 = () => {
|
|
8577
8577
|
const Sizable = {
|
|
8578
8578
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -8687,7 +8687,7 @@ function is_default() {
|
|
|
8687
8687
|
};
|
|
8688
8688
|
}
|
|
8689
8689
|
|
|
8690
|
-
// node_modules
|
|
8690
|
+
// node_modules/zod/v4/locales/it.js
|
|
8691
8691
|
var error27 = () => {
|
|
8692
8692
|
const Sizable = {
|
|
8693
8693
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -8801,7 +8801,7 @@ function it_default() {
|
|
|
8801
8801
|
};
|
|
8802
8802
|
}
|
|
8803
8803
|
|
|
8804
|
-
// node_modules
|
|
8804
|
+
// node_modules/zod/v4/locales/ja.js
|
|
8805
8805
|
var error28 = () => {
|
|
8806
8806
|
const Sizable = {
|
|
8807
8807
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -8914,7 +8914,7 @@ function ja_default() {
|
|
|
8914
8914
|
};
|
|
8915
8915
|
}
|
|
8916
8916
|
|
|
8917
|
-
// node_modules
|
|
8917
|
+
// node_modules/zod/v4/locales/ka.js
|
|
8918
8918
|
var error29 = () => {
|
|
8919
8919
|
const Sizable = {
|
|
8920
8920
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -9032,7 +9032,7 @@ function ka_default() {
|
|
|
9032
9032
|
};
|
|
9033
9033
|
}
|
|
9034
9034
|
|
|
9035
|
-
// node_modules
|
|
9035
|
+
// node_modules/zod/v4/locales/km.js
|
|
9036
9036
|
var error30 = () => {
|
|
9037
9037
|
const Sizable = {
|
|
9038
9038
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -9148,12 +9148,12 @@ function km_default() {
|
|
|
9148
9148
|
};
|
|
9149
9149
|
}
|
|
9150
9150
|
|
|
9151
|
-
// node_modules
|
|
9151
|
+
// node_modules/zod/v4/locales/kh.js
|
|
9152
9152
|
function kh_default() {
|
|
9153
9153
|
return km_default();
|
|
9154
9154
|
}
|
|
9155
9155
|
|
|
9156
|
-
// node_modules
|
|
9156
|
+
// node_modules/zod/v4/locales/kn.js
|
|
9157
9157
|
var error31 = () => {
|
|
9158
9158
|
const Sizable = {
|
|
9159
9159
|
string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
|
|
@@ -9269,7 +9269,7 @@ function kn_default() {
|
|
|
9269
9269
|
};
|
|
9270
9270
|
}
|
|
9271
9271
|
|
|
9272
|
-
// node_modules
|
|
9272
|
+
// node_modules/zod/v4/locales/ko.js
|
|
9273
9273
|
var error32 = () => {
|
|
9274
9274
|
const Sizable = {
|
|
9275
9275
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -9386,7 +9386,7 @@ function ko_default() {
|
|
|
9386
9386
|
};
|
|
9387
9387
|
}
|
|
9388
9388
|
|
|
9389
|
-
// node_modules
|
|
9389
|
+
// node_modules/zod/v4/locales/lt.js
|
|
9390
9390
|
var capitalizeFirstCharacter = (text2) => {
|
|
9391
9391
|
return text2.charAt(0).toUpperCase() + text2.slice(1);
|
|
9392
9392
|
};
|
|
@@ -9594,7 +9594,7 @@ function lt_default() {
|
|
|
9594
9594
|
};
|
|
9595
9595
|
}
|
|
9596
9596
|
|
|
9597
|
-
// node_modules
|
|
9597
|
+
// node_modules/zod/v4/locales/mk.js
|
|
9598
9598
|
var error34 = () => {
|
|
9599
9599
|
const Sizable = {
|
|
9600
9600
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -9709,7 +9709,7 @@ function mk_default() {
|
|
|
9709
9709
|
};
|
|
9710
9710
|
}
|
|
9711
9711
|
|
|
9712
|
-
// node_modules
|
|
9712
|
+
// node_modules/zod/v4/locales/ms.js
|
|
9713
9713
|
var error35 = () => {
|
|
9714
9714
|
const Sizable = {
|
|
9715
9715
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -9822,7 +9822,7 @@ function ms_default() {
|
|
|
9822
9822
|
};
|
|
9823
9823
|
}
|
|
9824
9824
|
|
|
9825
|
-
// node_modules
|
|
9825
|
+
// node_modules/zod/v4/locales/ne.js
|
|
9826
9826
|
var error36 = () => {
|
|
9827
9827
|
const Sizable = {
|
|
9828
9828
|
string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
|
|
@@ -9934,7 +9934,7 @@ function ne_default() {
|
|
|
9934
9934
|
};
|
|
9935
9935
|
}
|
|
9936
9936
|
|
|
9937
|
-
// node_modules
|
|
9937
|
+
// node_modules/zod/v4/locales/nl.js
|
|
9938
9938
|
var error37 = () => {
|
|
9939
9939
|
const Sizable = {
|
|
9940
9940
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -10050,7 +10050,7 @@ function nl_default() {
|
|
|
10050
10050
|
};
|
|
10051
10051
|
}
|
|
10052
10052
|
|
|
10053
|
-
// node_modules
|
|
10053
|
+
// node_modules/zod/v4/locales/nn.js
|
|
10054
10054
|
var error38 = () => {
|
|
10055
10055
|
const Sizable = {
|
|
10056
10056
|
string: { unit: "teikn", verb: "\xE5 ha" },
|
|
@@ -10164,7 +10164,7 @@ function nn_default() {
|
|
|
10164
10164
|
};
|
|
10165
10165
|
}
|
|
10166
10166
|
|
|
10167
|
-
// node_modules
|
|
10167
|
+
// node_modules/zod/v4/locales/no.js
|
|
10168
10168
|
var error39 = () => {
|
|
10169
10169
|
const Sizable = {
|
|
10170
10170
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -10278,7 +10278,7 @@ function no_default() {
|
|
|
10278
10278
|
};
|
|
10279
10279
|
}
|
|
10280
10280
|
|
|
10281
|
-
// node_modules
|
|
10281
|
+
// node_modules/zod/v4/locales/ota.js
|
|
10282
10282
|
var error40 = () => {
|
|
10283
10283
|
const Sizable = {
|
|
10284
10284
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -10393,7 +10393,7 @@ function ota_default() {
|
|
|
10393
10393
|
};
|
|
10394
10394
|
}
|
|
10395
10395
|
|
|
10396
|
-
// node_modules
|
|
10396
|
+
// node_modules/zod/v4/locales/ps.js
|
|
10397
10397
|
var error41 = () => {
|
|
10398
10398
|
const Sizable = {
|
|
10399
10399
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -10513,7 +10513,7 @@ function ps_default() {
|
|
|
10513
10513
|
};
|
|
10514
10514
|
}
|
|
10515
10515
|
|
|
10516
|
-
// node_modules
|
|
10516
|
+
// node_modules/zod/v4/locales/pl.js
|
|
10517
10517
|
var error42 = () => {
|
|
10518
10518
|
const Sizable = {
|
|
10519
10519
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -10628,7 +10628,7 @@ function pl_default() {
|
|
|
10628
10628
|
};
|
|
10629
10629
|
}
|
|
10630
10630
|
|
|
10631
|
-
// node_modules
|
|
10631
|
+
// node_modules/zod/v4/locales/pt.js
|
|
10632
10632
|
var error43 = () => {
|
|
10633
10633
|
const Sizable = {
|
|
10634
10634
|
string: { unit: "caracteres" },
|
|
@@ -10772,7 +10772,7 @@ function pt_default() {
|
|
|
10772
10772
|
};
|
|
10773
10773
|
}
|
|
10774
10774
|
|
|
10775
|
-
// node_modules
|
|
10775
|
+
// node_modules/zod/v4/locales/pt-BR.js
|
|
10776
10776
|
var error44 = () => {
|
|
10777
10777
|
const Sizable = {
|
|
10778
10778
|
string: { unit: "caracteres" },
|
|
@@ -10917,7 +10917,7 @@ function pt_BR_default() {
|
|
|
10917
10917
|
};
|
|
10918
10918
|
}
|
|
10919
10919
|
|
|
10920
|
-
// node_modules
|
|
10920
|
+
// node_modules/zod/v4/locales/ro.js
|
|
10921
10921
|
var error45 = () => {
|
|
10922
10922
|
const Sizable = {
|
|
10923
10923
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -11040,7 +11040,7 @@ function ro_default() {
|
|
|
11040
11040
|
};
|
|
11041
11041
|
}
|
|
11042
11042
|
|
|
11043
|
-
// node_modules
|
|
11043
|
+
// node_modules/zod/v4/locales/ru.js
|
|
11044
11044
|
function getRussianPlural(count, one, few, many) {
|
|
11045
11045
|
const absCount = Math.abs(count);
|
|
11046
11046
|
const lastDigit = absCount % 10;
|
|
@@ -11209,7 +11209,7 @@ function ru_default() {
|
|
|
11209
11209
|
};
|
|
11210
11210
|
}
|
|
11211
11211
|
|
|
11212
|
-
// node_modules
|
|
11212
|
+
// node_modules/zod/v4/locales/sk.js
|
|
11213
11213
|
var error47 = () => {
|
|
11214
11214
|
const Sizable = {
|
|
11215
11215
|
string: { unit: "znakov", verb: "ma\u0165" },
|
|
@@ -11326,7 +11326,7 @@ function sk_default() {
|
|
|
11326
11326
|
};
|
|
11327
11327
|
}
|
|
11328
11328
|
|
|
11329
|
-
// node_modules
|
|
11329
|
+
// node_modules/zod/v4/locales/sl.js
|
|
11330
11330
|
var error48 = () => {
|
|
11331
11331
|
const Sizable = {
|
|
11332
11332
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -11441,7 +11441,7 @@ function sl_default() {
|
|
|
11441
11441
|
};
|
|
11442
11442
|
}
|
|
11443
11443
|
|
|
11444
|
-
// node_modules
|
|
11444
|
+
// node_modules/zod/v4/locales/sv.js
|
|
11445
11445
|
var error49 = () => {
|
|
11446
11446
|
const Sizable = {
|
|
11447
11447
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -11557,7 +11557,7 @@ function sv_default() {
|
|
|
11557
11557
|
};
|
|
11558
11558
|
}
|
|
11559
11559
|
|
|
11560
|
-
// node_modules
|
|
11560
|
+
// node_modules/zod/v4/locales/ta.js
|
|
11561
11561
|
var error50 = () => {
|
|
11562
11562
|
const Sizable = {
|
|
11563
11563
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -11673,7 +11673,7 @@ function ta_default() {
|
|
|
11673
11673
|
};
|
|
11674
11674
|
}
|
|
11675
11675
|
|
|
11676
|
-
// node_modules
|
|
11676
|
+
// node_modules/zod/v4/locales/tg.js
|
|
11677
11677
|
var error51 = () => {
|
|
11678
11678
|
const Sizable = {
|
|
11679
11679
|
string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
|
|
@@ -11790,7 +11790,7 @@ function tg_default() {
|
|
|
11790
11790
|
};
|
|
11791
11791
|
}
|
|
11792
11792
|
|
|
11793
|
-
// node_modules
|
|
11793
|
+
// node_modules/zod/v4/locales/th.js
|
|
11794
11794
|
var error52 = () => {
|
|
11795
11795
|
const Sizable = {
|
|
11796
11796
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -11906,7 +11906,7 @@ function th_default() {
|
|
|
11906
11906
|
};
|
|
11907
11907
|
}
|
|
11908
11908
|
|
|
11909
|
-
// node_modules
|
|
11909
|
+
// node_modules/zod/v4/locales/tk.js
|
|
11910
11910
|
var error53 = () => {
|
|
11911
11911
|
const Sizable = {
|
|
11912
11912
|
string: { unit: "simwol", verb: "bolmaly" },
|
|
@@ -12014,7 +12014,7 @@ function tk_default() {
|
|
|
12014
12014
|
};
|
|
12015
12015
|
}
|
|
12016
12016
|
|
|
12017
|
-
// node_modules
|
|
12017
|
+
// node_modules/zod/v4/locales/tr.js
|
|
12018
12018
|
var error54 = () => {
|
|
12019
12019
|
const Sizable = {
|
|
12020
12020
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -12125,7 +12125,7 @@ function tr_default() {
|
|
|
12125
12125
|
};
|
|
12126
12126
|
}
|
|
12127
12127
|
|
|
12128
|
-
// node_modules
|
|
12128
|
+
// node_modules/zod/v4/locales/uk.js
|
|
12129
12129
|
var error55 = () => {
|
|
12130
12130
|
const Sizable = {
|
|
12131
12131
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -12239,12 +12239,12 @@ function uk_default() {
|
|
|
12239
12239
|
};
|
|
12240
12240
|
}
|
|
12241
12241
|
|
|
12242
|
-
// node_modules
|
|
12242
|
+
// node_modules/zod/v4/locales/ua.js
|
|
12243
12243
|
function ua_default() {
|
|
12244
12244
|
return uk_default();
|
|
12245
12245
|
}
|
|
12246
12246
|
|
|
12247
|
-
// node_modules
|
|
12247
|
+
// node_modules/zod/v4/locales/ur.js
|
|
12248
12248
|
var error56 = () => {
|
|
12249
12249
|
const Sizable = {
|
|
12250
12250
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -12360,7 +12360,7 @@ function ur_default() {
|
|
|
12360
12360
|
};
|
|
12361
12361
|
}
|
|
12362
12362
|
|
|
12363
|
-
// node_modules
|
|
12363
|
+
// node_modules/zod/v4/locales/uz.js
|
|
12364
12364
|
var error57 = () => {
|
|
12365
12365
|
const Sizable = {
|
|
12366
12366
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -12474,7 +12474,7 @@ function uz_default() {
|
|
|
12474
12474
|
};
|
|
12475
12475
|
}
|
|
12476
12476
|
|
|
12477
|
-
// node_modules
|
|
12477
|
+
// node_modules/zod/v4/locales/vi.js
|
|
12478
12478
|
var error58 = () => {
|
|
12479
12479
|
const Sizable = {
|
|
12480
12480
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -12588,7 +12588,7 @@ function vi_default() {
|
|
|
12588
12588
|
};
|
|
12589
12589
|
}
|
|
12590
12590
|
|
|
12591
|
-
// node_modules
|
|
12591
|
+
// node_modules/zod/v4/locales/zh-CN.js
|
|
12592
12592
|
var error59 = () => {
|
|
12593
12593
|
const Sizable = {
|
|
12594
12594
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -12703,7 +12703,7 @@ function zh_CN_default() {
|
|
|
12703
12703
|
};
|
|
12704
12704
|
}
|
|
12705
12705
|
|
|
12706
|
-
// node_modules
|
|
12706
|
+
// node_modules/zod/v4/locales/zh-TW.js
|
|
12707
12707
|
var error60 = () => {
|
|
12708
12708
|
const Sizable = {
|
|
12709
12709
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -12816,7 +12816,7 @@ function zh_TW_default() {
|
|
|
12816
12816
|
};
|
|
12817
12817
|
}
|
|
12818
12818
|
|
|
12819
|
-
// node_modules
|
|
12819
|
+
// node_modules/zod/v4/locales/yo.js
|
|
12820
12820
|
var error61 = () => {
|
|
12821
12821
|
const Sizable = {
|
|
12822
12822
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -12929,7 +12929,7 @@ function yo_default() {
|
|
|
12929
12929
|
};
|
|
12930
12930
|
}
|
|
12931
12931
|
|
|
12932
|
-
// node_modules
|
|
12932
|
+
// node_modules/zod/v4/core/registries.js
|
|
12933
12933
|
var _a2;
|
|
12934
12934
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
12935
12935
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
@@ -12979,7 +12979,7 @@ function registry() {
|
|
|
12979
12979
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
12980
12980
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
12981
12981
|
|
|
12982
|
-
// node_modules
|
|
12982
|
+
// node_modules/zod/v4/core/compile.js
|
|
12983
12983
|
var INVALID = Symbol.for("zod.compile.invalid");
|
|
12984
12984
|
var FALLBACK_FLAG = Symbol.for("zod.compile.fallback");
|
|
12985
12985
|
var ZodCompileAsyncError = class extends Error {
|
|
@@ -14589,7 +14589,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
|
|
|
14589
14589
|
return accessor;
|
|
14590
14590
|
}
|
|
14591
14591
|
|
|
14592
|
-
// node_modules
|
|
14592
|
+
// node_modules/zod/v4/core/api.js
|
|
14593
14593
|
function snapshotChecks(def) {
|
|
14594
14594
|
if (def.checks)
|
|
14595
14595
|
def.checks = [...def.checks];
|
|
@@ -15648,7 +15648,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
15648
15648
|
return inst;
|
|
15649
15649
|
}
|
|
15650
15650
|
|
|
15651
|
-
// node_modules
|
|
15651
|
+
// node_modules/zod/v4/core/to-json-schema.js
|
|
15652
15652
|
function assignProps(target, ...sources) {
|
|
15653
15653
|
for (const source of sources) {
|
|
15654
15654
|
for (const key of Reflect.ownKeys(source)) {
|
|
@@ -16178,7 +16178,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
16178
16178
|
return finalize(ctx, schema);
|
|
16179
16179
|
};
|
|
16180
16180
|
|
|
16181
|
-
// node_modules
|
|
16181
|
+
// node_modules/zod/v4/core/json-schema-processors.js
|
|
16182
16182
|
var narrowMin = (agg, key, value) => {
|
|
16183
16183
|
if (agg[key] === void 0 || value > agg[key])
|
|
16184
16184
|
agg[key] = value;
|
|
@@ -16926,7 +16926,7 @@ function toJSONSchema(input2, params) {
|
|
|
16926
16926
|
return finalize(ctx, input2);
|
|
16927
16927
|
}
|
|
16928
16928
|
|
|
16929
|
-
// node_modules
|
|
16929
|
+
// node_modules/zod/v4/core/json-schema-generator.js
|
|
16930
16930
|
var JSONSchemaGenerator = class {
|
|
16931
16931
|
/** @deprecated Access via ctx instead */
|
|
16932
16932
|
get metadataRegistry() {
|
|
@@ -17004,10 +17004,10 @@ var JSONSchemaGenerator = class {
|
|
|
17004
17004
|
}
|
|
17005
17005
|
};
|
|
17006
17006
|
|
|
17007
|
-
// node_modules
|
|
17007
|
+
// node_modules/zod/v4/core/json-schema.js
|
|
17008
17008
|
var json_schema_exports = {};
|
|
17009
17009
|
|
|
17010
|
-
// node_modules
|
|
17010
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
17011
17011
|
var schemas_exports2 = {};
|
|
17012
17012
|
__export(schemas_exports2, {
|
|
17013
17013
|
ZodAny: () => ZodAny,
|
|
@@ -17188,7 +17188,7 @@ __export(schemas_exports2, {
|
|
|
17188
17188
|
xor: () => xor
|
|
17189
17189
|
});
|
|
17190
17190
|
|
|
17191
|
-
// node_modules
|
|
17191
|
+
// node_modules/zod/v4/classic/checks.js
|
|
17192
17192
|
var checks_exports2 = {};
|
|
17193
17193
|
__export(checks_exports2, {
|
|
17194
17194
|
endsWith: () => _endsWith,
|
|
@@ -17223,7 +17223,7 @@ __export(checks_exports2, {
|
|
|
17223
17223
|
uppercase: () => _uppercase
|
|
17224
17224
|
});
|
|
17225
17225
|
|
|
17226
|
-
// node_modules
|
|
17226
|
+
// node_modules/zod/v4/classic/errors.js
|
|
17227
17227
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
17228
17228
|
function _lazyMethod(proto, key, make) {
|
|
17229
17229
|
Object.defineProperty(proto, key, {
|
|
@@ -17269,7 +17269,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
|
|
|
17269
17269
|
Parent: Error
|
|
17270
17270
|
});
|
|
17271
17271
|
|
|
17272
|
-
// node_modules
|
|
17272
|
+
// node_modules/zod/v4/classic/parse.js
|
|
17273
17273
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
17274
17274
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
17275
17275
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -17283,7 +17283,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
17283
17283
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
17284
17284
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
17285
17285
|
|
|
17286
|
-
// node_modules
|
|
17286
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
17287
17287
|
function _ensureDefaultLocale() {
|
|
17288
17288
|
if (!globalConfig.localeError)
|
|
17289
17289
|
config(en_default());
|
|
@@ -18748,7 +18748,7 @@ function preprocess(fn, schema) {
|
|
|
18748
18748
|
});
|
|
18749
18749
|
}
|
|
18750
18750
|
|
|
18751
|
-
// node_modules
|
|
18751
|
+
// node_modules/zod/v4/classic/compat.js
|
|
18752
18752
|
var ZodIssueCode = {
|
|
18753
18753
|
invalid_type: "invalid_type",
|
|
18754
18754
|
too_big: "too_big",
|
|
@@ -18774,7 +18774,7 @@ var ZodFirstPartyTypeKind;
|
|
|
18774
18774
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
18775
18775
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
18776
18776
|
|
|
18777
|
-
// node_modules
|
|
18777
|
+
// node_modules/zod/v4/classic/iso.js
|
|
18778
18778
|
var iso_exports = {};
|
|
18779
18779
|
__export(iso_exports, {
|
|
18780
18780
|
ZodISODate: () => ZodISODate,
|
|
@@ -18799,7 +18799,7 @@ function duration2(params) {
|
|
|
18799
18799
|
return _isoDuration(ZodISODuration, params);
|
|
18800
18800
|
}
|
|
18801
18801
|
|
|
18802
|
-
// node_modules
|
|
18802
|
+
// node_modules/zod/v4/classic/from-json-schema.js
|
|
18803
18803
|
var z = {
|
|
18804
18804
|
...schemas_exports2,
|
|
18805
18805
|
...checks_exports2,
|
|
@@ -19532,7 +19532,7 @@ function fromJSONSchema(schema, params) {
|
|
|
19532
19532
|
return convertSchema(normalized, ctx);
|
|
19533
19533
|
}
|
|
19534
19534
|
|
|
19535
|
-
// node_modules
|
|
19535
|
+
// node_modules/zod/v4/core/visit.js
|
|
19536
19536
|
var RESOLVING = Symbol("z.visit/resolving");
|
|
19537
19537
|
function visit(schema, fnOrHandlers) {
|
|
19538
19538
|
const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
|
|
@@ -19687,7 +19687,7 @@ function visit(schema, fnOrHandlers) {
|
|
|
19687
19687
|
return run(schema);
|
|
19688
19688
|
}
|
|
19689
19689
|
|
|
19690
|
-
// node_modules
|
|
19690
|
+
// node_modules/zod/v4/classic/deep-partial.js
|
|
19691
19691
|
function deepPartial(schema) {
|
|
19692
19692
|
return visit(schema, {
|
|
19693
19693
|
object: (s) => s.partial(),
|
|
@@ -19699,7 +19699,7 @@ function deepPartial(schema) {
|
|
|
19699
19699
|
});
|
|
19700
19700
|
}
|
|
19701
19701
|
|
|
19702
|
-
// node_modules
|
|
19702
|
+
// node_modules/zod/v4/classic/in-out.js
|
|
19703
19703
|
function withChecks(side, checks) {
|
|
19704
19704
|
if (!checks?.length)
|
|
19705
19705
|
return side;
|
|
@@ -19729,7 +19729,7 @@ function output(schema) {
|
|
|
19729
19729
|
});
|
|
19730
19730
|
}
|
|
19731
19731
|
|
|
19732
|
-
// node_modules
|
|
19732
|
+
// node_modules/zod/v4/classic/coerce.js
|
|
19733
19733
|
var coerce_exports = {};
|
|
19734
19734
|
__export(coerce_exports, {
|
|
19735
19735
|
bigint: () => bigint3,
|
|
@@ -20151,6 +20151,20 @@ var DevicePreferences = class {
|
|
|
20151
20151
|
}
|
|
20152
20152
|
};
|
|
20153
20153
|
|
|
20154
|
+
// src/client/retry.mjs
|
|
20155
|
+
function waitForRetry(signal, delayMs) {
|
|
20156
|
+
return new Promise((resolve) => {
|
|
20157
|
+
const done = () => {
|
|
20158
|
+
clearTimeout(timer);
|
|
20159
|
+
signal.removeEventListener("abort", done);
|
|
20160
|
+
resolve();
|
|
20161
|
+
};
|
|
20162
|
+
const timer = setTimeout(done, delayMs);
|
|
20163
|
+
signal.addEventListener("abort", done, { once: true });
|
|
20164
|
+
if (signal.aborted) done();
|
|
20165
|
+
});
|
|
20166
|
+
}
|
|
20167
|
+
|
|
20154
20168
|
// src/client/controller.mjs
|
|
20155
20169
|
var DeviceController = class {
|
|
20156
20170
|
editors = /* @__PURE__ */ new Map();
|
|
@@ -20191,9 +20205,6 @@ var DeviceController = class {
|
|
|
20191
20205
|
this.stream = this.api.watch(this.clientId, signal);
|
|
20192
20206
|
for await (const event2 of this.stream) {
|
|
20193
20207
|
if (signal.aborted) return;
|
|
20194
|
-
if (event2.type === "devices" && this.reconnecting) {
|
|
20195
|
-
this.reconnecting = false;
|
|
20196
|
-
}
|
|
20197
20208
|
await this.event(event2);
|
|
20198
20209
|
}
|
|
20199
20210
|
} catch {
|
|
@@ -20202,18 +20213,8 @@ var DeviceController = class {
|
|
|
20202
20213
|
this.stream = void 0;
|
|
20203
20214
|
}
|
|
20204
20215
|
if (signal.aborted) return;
|
|
20205
|
-
this.reconnecting = true;
|
|
20206
20216
|
this.publish({ status: "\u8BBE\u5907\u670D\u52A1\u8FDE\u63A5\u4E2D\u65AD\uFF0C\u6B63\u5728\u91CD\u65B0\u8FDE\u63A5\u2026", devices: [] });
|
|
20207
|
-
await
|
|
20208
|
-
const done = () => {
|
|
20209
|
-
clearTimeout(timer);
|
|
20210
|
-
signal.removeEventListener("abort", done);
|
|
20211
|
-
resolve();
|
|
20212
|
-
};
|
|
20213
|
-
const timer = setTimeout(done, this.retryDelayMs);
|
|
20214
|
-
signal.addEventListener("abort", done, { once: true });
|
|
20215
|
-
if (signal.aborted) done();
|
|
20216
|
-
});
|
|
20217
|
+
await waitForRetry(signal, this.retryDelayMs);
|
|
20217
20218
|
}
|
|
20218
20219
|
}
|
|
20219
20220
|
async event(event2) {
|
|
@@ -20357,16 +20358,7 @@ var AiConversationClient = class {
|
|
|
20357
20358
|
for (const id2 of this.targets.keys()) this.release(id2);
|
|
20358
20359
|
}
|
|
20359
20360
|
if (signal.aborted) return;
|
|
20360
|
-
await
|
|
20361
|
-
const done = () => {
|
|
20362
|
-
clearTimeout(timer);
|
|
20363
|
-
signal.removeEventListener("abort", done);
|
|
20364
|
-
resolve();
|
|
20365
|
-
};
|
|
20366
|
-
const timer = setTimeout(done, this.retryDelayMs);
|
|
20367
|
-
signal.addEventListener("abort", done, { once: true });
|
|
20368
|
-
if (signal.aborted) done();
|
|
20369
|
-
});
|
|
20361
|
+
await waitForRetry(signal, this.retryDelayMs);
|
|
20370
20362
|
}
|
|
20371
20363
|
}
|
|
20372
20364
|
dispose() {
|
|
@@ -20508,13 +20500,20 @@ function DeviceForm({ device: device2, controller, state }) {
|
|
|
20508
20500
|
change("recognition", { language: item.language, accent: item.accent, rlang: item.rlang });
|
|
20509
20501
|
} })), /* @__PURE__ */ import_react2.default.createElement(Row, { label: "\u8BED\u97F3\u7FFB\u8BD1", description: !state.translationReady ? "\u7FFB\u8BD1\u670D\u52A1\u5C1A\u672A\u914D\u7F6E\uFF0C\u6682\u4E0D\u53EF\u7528" : void 0 }, /* @__PURE__ */ import_react2.default.createElement(Select, { label: "\u7FFB\u8BD1\u6E90\u8BED\u8A00", value: form.from, options: sourceOptions, onChange: (value) => change("from", value) }), /* @__PURE__ */ import_react2.default.createElement("span", { "aria-hidden": "true" }, "\u203A"), /* @__PURE__ */ import_react2.default.createElement(Select, { label: "\u7FFB\u8BD1\u76EE\u6807\u8BED\u8A00", value: form.to, options: TRANS_TO_LANG_LIST, onChange: (value) => change("to", value) })), /* @__PURE__ */ import_react2.default.createElement(Row, { label: "DPI \u952E", description: /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, "\u7528\u4E8E\u8C03\u8282\u9F20\u6807\u5149\u6807\u79FB\u52A8\u7075\u654F\u5EA6", device2.dpiState === "failed" && /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement("br", null), /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-asr-error" }, "DPI \u5C1A\u672A\u5E94\u7528\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u540E\u91CD\u8BD5"))) }, /* @__PURE__ */ import_react2.default.createElement(Select, { label: "DPI", value: form.dpi, options: DPI_LIST, onChange: (value) => change("dpi", value) })), /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-key-group" }, /* @__PURE__ */ import_react2.default.createElement(Row, { label: "M \u952E", description: "\u9F20\u6807\u591A\u529F\u80FD\u952E" }, /* @__PURE__ */ import_react2.default.createElement(Select, { label: "M \u952E\u52A8\u4F5C", value: form.mAction, options: M_KEY_FUNC_LIST, onChange: (value) => change("mAction", value) })), form.mAction === "speechSearch" && /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-subrow" }, /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-controls" }, /* @__PURE__ */ import_react2.default.createElement(Select, { label: "\u641C\u7D22\u5F15\u64CE", value: form.searchUrl, options: M_KEY_SEARCH_URL_LIST, onChange: (value) => change("searchUrl", value) }))), form.mAction === "openWebUrl" && /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-subrow" }, /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-controls dsh-mouse-link-controls" }, /* @__PURE__ */ import_react2.default.createElement(import_dsh_client_ui_primitives.Input, { "aria-label": "\u4E00\u952E\u94FE\u63A5 URL", type: "url", placeholder: "https://example.com", value: form.linkUrl, "aria-invalid": invalid || void 0, onChange: (event2) => change("linkUrl", event2.target.value) }), /* @__PURE__ */ import_react2.default.createElement(import_dsh_client_ui_primitives.Button, { disabled: busy, onClick: () => editor.commitLink() }, "\u786E\u8BA4")))), /* @__PURE__ */ import_react2.default.createElement(Row, { label: "\u8BED\u97F3\u952E", description: "\u957F\u6309\u8BED\u97F3\u6253\u5B57\u6216\u7FFB\u8BD1\uFF0C\u677E\u624B\u5C06\u6587\u5B57\u586B\u5145\u5230\u5DF2\u83B7\u53D6\u7126\u70B9\u7684\u8F93\u5165\u6846" }, /* @__PURE__ */ import_react2.default.createElement(Select, { label: "\u8BED\u97F3\u952E\u52A8\u4F5C", value: form.speechAction, options: [{ value: "voice_input", label: "\u8BED\u97F3\u6253\u5B57" }, { value: "translate", label: "\u8BED\u97F3\u7FFB\u8BD1" }], onChange: (value) => change("speechAction", value) })), /* @__PURE__ */ import_react2.default.createElement(Row, { label: "AI \u952E", description: "\u957F\u6309\u8BED\u97F3\u6253\u5B57\uFF0C\u677E\u624B\u81EA\u52A8\u5C06\u6587\u5B57\u586B\u5145\u5230 AI \u5BF9\u8BDD\u8F93\u5165\u6846" }, /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-switch" }, /* @__PURE__ */ import_react2.default.createElement("span", null, "\u81EA\u52A8\u53D1\u9001"), /* @__PURE__ */ import_react2.default.createElement(import_dsh_client_ui_primitives.Switch, { label: "\u81EA\u52A8\u53D1\u9001", checked: form.aiAutoSend, onChange: (value) => change("aiAutoSend", value) })))), error62 && form.mAction !== "openWebUrl" && /* @__PURE__ */ import_react2.default.createElement("p", { role: "alert", className: "dsh-asr-error" }, error62), /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-footer" }, /* @__PURE__ */ import_react2.default.createElement("span", { role: "status", className: "dsh-asr-muted" }, busy ? "\u6B63\u5728\u5E94\u7528\u2026" : ""), /* @__PURE__ */ import_react2.default.createElement(import_dsh_client_ui_primitives.Button, { size: "sm", className: "dsh-mouse-reset", onClick: () => editor.reset() }, "\u6062\u590D\u9ED8\u8BA4")));
|
|
20510
20502
|
}
|
|
20511
|
-
|
|
20503
|
+
var NO_SIDEBAR = { sidebarVisible: true };
|
|
20504
|
+
var subscribeNone = () => () => {
|
|
20505
|
+
};
|
|
20506
|
+
function Devices({ controller, sidebar }) {
|
|
20512
20507
|
const state = (0, import_react2.useSyncExternalStore)(controller.subscribe, controller.snapshot);
|
|
20508
|
+
const { sidebarVisible } = (0, import_react2.useSyncExternalStore)(sidebar?.subscribe ?? subscribeNone, sidebar?.snapshot ?? (() => NO_SIDEBAR));
|
|
20513
20509
|
const [selected, setSelected] = (0, import_react2.useState)(null);
|
|
20514
20510
|
const devices2 = state.devices, device2 = devices2.find((item) => item.id === selected) ?? devices2[0];
|
|
20515
20511
|
const index = device2 ? devices2.indexOf(device2) : 0;
|
|
20516
20512
|
const count = new Set(devices2.filter((item) => item.identityConfirmed).map((item) => item.sn)).size;
|
|
20517
|
-
return /* @__PURE__ */ import_react2.default.createElement("section", { className: "dsh-mouse-settings", "aria-label": "\u58F0\u4E91\u8BBE\u5907" }, /* @__PURE__ */ import_react2.default.createElement("h2", null, "\u58F0\u4E91\u8BBE\u5907"), /* @__PURE__ */ import_react2.default.createElement("p", { className: "dsh-asr-intro" }, count, " \u53F0\u8BBE\u5907\u5DF2\u8FDE\u63A5 \xB7 \u4E3A\u6BCF\u53F0\u8BBE\u5907\u8BBE\u7F6E\u4E13\u5C5E\u504F\u597D"), !device2 ? /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-empty" }, /* @__PURE__ */ import_react2.default.createElement("span", { "aria-hidden": "true" }, "\u2301"), /* @__PURE__ */ import_react2.default.createElement("h3", null, "\u6682\u65E0\u8BBE\u5907\u8FDE\u63A5"), /* @__PURE__ */ import_react2.default.createElement("p", null, "\u8BF7\u8FDE\u63A5\u667A\u80FD\u9F20\u6807\u7684 USB \u63A5\u6536\u5668\uFF0C\u6216\u901A\u8FC7\u84DD\u7259\u8FDE\u63A5\u9F20\u6807\u3002"), /* @__PURE__ */ import_react2.default.createElement("p", { className: "dsh-asr-muted" }, state.status)) : /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-carousel" }, devices2.length > 1 && /* @__PURE__ */ import_react2.default.createElement("button", { type: "button", "aria-label": "\u4E0A\u4E00\u53F0\u8BBE\u5907", onClick: () => setSelected(devices2[(index + devices2.length - 1) % devices2.length].id) }, "\u2039"), /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-product" }, /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-illustration", role: "img", "aria-label": "\u667A\u80FD\u9F20\u6807\u793A\u610F\u56FE" }, /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-wheel" }), /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-ai" }, "AI")), /* @__PURE__ */ import_react2.default.createElement("h3", null, device2.name)), devices2.length > 1 && /* @__PURE__ */ import_react2.default.createElement("button", { type: "button", "aria-label": "\u4E0B\u4E00\u53F0\u8BBE\u5907", onClick: () => setSelected(devices2[(index + 1) % devices2.length].id) }, "\u203A")), devices2.length > 1 && /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-dots" }, devices2.map((item, i) => /* @__PURE__ */ import_react2.default.createElement("button", { type: "button", key: item.id, "aria-label": `\u5207\u6362\u5230\u8BBE\u5907 ${i + 1}`, "aria-current": item.id === device2.id ? "true" : void 0, onClick: () => setSelected(item.id) }))), /* @__PURE__ */ import_react2.default.createElement(Row, { label: "SN" }, /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-value" }, device2.sn || "\u8BBE\u5907\u8EAB\u4EFD\u672A\u786E\u8BA4")), /* @__PURE__ */ import_react2.default.createElement(Row, { label: "\u8FDE\u63A5\u65B9\u5F0F" }, /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-value" }, device2.connection === "usb" ? "USB \u63A5\u6536\u5668" : "\u84DD\u7259")), /* @__PURE__ */ import_react2.default.createElement(Row, { label: "\u8BBE\u5907\u7535\u91CF" }, /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-value" }, device2.battery === null ? "\u672A\u77E5" : `${device2.battery}%`)), device2.type === "smart-mouse" ? /* @__PURE__ */ import_react2.default.createElement(DeviceForm, { key: device2.id, device: device2, controller, state }) : /* @__PURE__ */ import_react2.default.createElement("p", null, "\u6B64\u8BBE\u5907\u7C7B\u578B\u6682\u672A\u63D0\u4F9B\u4E13\u5C5E\u8BBE\u7F6E\u3002")));
|
|
20513
|
+
return /* @__PURE__ */ import_react2.default.createElement("section", { className: "dsh-mouse-settings", "aria-label": "\u58F0\u4E91\u8BBE\u5907" }, /* @__PURE__ */ import_react2.default.createElement("header", { className: "dsh-mouse-head" }, /* @__PURE__ */ import_react2.default.createElement("h2", null, "\u58F0\u4E91\u8BBE\u5907"), sidebar && /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-switch" }, /* @__PURE__ */ import_react2.default.createElement("span", null, "\u4FA7\u8FB9\u680F"), /* @__PURE__ */ import_react2.default.createElement(import_dsh_client_ui_primitives.Switch, { label: "\u4FA7\u8FB9\u680F", checked: sidebarVisible, onChange: (value) => sidebar.setVisible(value) }))), /* @__PURE__ */ import_react2.default.createElement("p", { className: "dsh-asr-intro" }, count, " \u53F0\u8BBE\u5907\u5DF2\u8FDE\u63A5 \xB7 \u4E3A\u6BCF\u53F0\u8BBE\u5907\u8BBE\u7F6E\u4E13\u5C5E\u504F\u597D"), !device2 ? /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-empty" }, /* @__PURE__ */ import_react2.default.createElement("span", { "aria-hidden": "true" }, "\u2301"), /* @__PURE__ */ import_react2.default.createElement("h3", null, "\u6682\u65E0\u8BBE\u5907\u8FDE\u63A5"), /* @__PURE__ */ import_react2.default.createElement("p", null, "\u8BF7\u8FDE\u63A5\u667A\u80FD\u9F20\u6807\u7684 USB \u63A5\u6536\u5668\uFF0C\u6216\u901A\u8FC7\u84DD\u7259\u8FDE\u63A5\u9F20\u6807\u3002"), /* @__PURE__ */ import_react2.default.createElement("p", { className: "dsh-asr-muted" }, state.status)) : /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-carousel" }, devices2.length > 1 && /* @__PURE__ */ import_react2.default.createElement("button", { type: "button", "aria-label": "\u4E0A\u4E00\u53F0\u8BBE\u5907", onClick: () => setSelected(devices2[(index + devices2.length - 1) % devices2.length].id) }, "\u2039"), /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-product" }, /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-illustration", role: "img", "aria-label": "\u667A\u80FD\u9F20\u6807\u793A\u610F\u56FE" }, /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-wheel" }), /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-ai" }, "AI")), /* @__PURE__ */ import_react2.default.createElement("h3", null, device2.name)), devices2.length > 1 && /* @__PURE__ */ import_react2.default.createElement("button", { type: "button", "aria-label": "\u4E0B\u4E00\u53F0\u8BBE\u5907", onClick: () => setSelected(devices2[(index + 1) % devices2.length].id) }, "\u203A")), devices2.length > 1 && /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-dots" }, devices2.map((item, i) => /* @__PURE__ */ import_react2.default.createElement("button", { type: "button", key: item.id, "aria-label": `\u5207\u6362\u5230\u8BBE\u5907 ${i + 1}`, "aria-current": item.id === device2.id ? "true" : void 0, onClick: () => setSelected(item.id) }))), /* @__PURE__ */ import_react2.default.createElement(Row, { label: "SN" }, /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-value" }, device2.sn || "\u8BBE\u5907\u8EAB\u4EFD\u672A\u786E\u8BA4")), /* @__PURE__ */ import_react2.default.createElement(Row, { label: "\u8FDE\u63A5\u65B9\u5F0F" }, /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-value" }, device2.connection === "usb" ? "USB \u63A5\u6536\u5668" : "\u84DD\u7259")), /* @__PURE__ */ import_react2.default.createElement(Row, { label: "\u8BBE\u5907\u7535\u91CF" }, /* @__PURE__ */ import_react2.default.createElement("span", { className: "dsh-mouse-value" }, device2.battery === null ? "\u672A\u77E5" : `${device2.battery}%`)), device2.type === "smart-mouse" ? /* @__PURE__ */ import_react2.default.createElement(DeviceForm, { key: device2.id, device: device2, controller, state }) : /* @__PURE__ */ import_react2.default.createElement("p", null, "\u6B64\u8BBE\u5907\u7C7B\u578B\u6682\u672A\u63D0\u4F9B\u4E13\u5C5E\u8BBE\u7F6E\u3002")));
|
|
20514
|
+
}
|
|
20515
|
+
function DevicesPanel(props) {
|
|
20516
|
+
return /* @__PURE__ */ import_react2.default.createElement("div", { className: "dsh-mouse-panel" }, /* @__PURE__ */ import_react2.default.createElement(Devices, { ...props }));
|
|
20518
20517
|
}
|
|
20519
20518
|
|
|
20520
20519
|
// src/client/Notice.jsx
|
|
@@ -20551,12 +20550,82 @@ function SonicloudIcon({ size = 16 }) {
|
|
|
20551
20550
|
);
|
|
20552
20551
|
}
|
|
20553
20552
|
|
|
20553
|
+
// src/client/sidebar-panel.mjs
|
|
20554
|
+
var SIDEBAR_PANEL_ID = "dsh-sonicloud-device-panel";
|
|
20555
|
+
var SIDEBAR_PREFERENCE_KEY = "sonicloud.sidebar-panel";
|
|
20556
|
+
function readSidebarPanelPreference(storage) {
|
|
20557
|
+
try {
|
|
20558
|
+
return storage?.getItem(SIDEBAR_PREFERENCE_KEY) !== "false";
|
|
20559
|
+
} catch {
|
|
20560
|
+
return true;
|
|
20561
|
+
}
|
|
20562
|
+
}
|
|
20563
|
+
var SidebarPanelPreference = class {
|
|
20564
|
+
constructor(storage) {
|
|
20565
|
+
this.storage = storage ?? null;
|
|
20566
|
+
this.visible = readSidebarPanelPreference(storage);
|
|
20567
|
+
this.state = { sidebarVisible: this.visible };
|
|
20568
|
+
this.listeners = /* @__PURE__ */ new Set();
|
|
20569
|
+
}
|
|
20570
|
+
subscribe = (listener) => {
|
|
20571
|
+
this.listeners.add(listener);
|
|
20572
|
+
return () => this.listeners.delete(listener);
|
|
20573
|
+
};
|
|
20574
|
+
snapshot = () => this.state;
|
|
20575
|
+
setVisible(visible) {
|
|
20576
|
+
const next = !!visible;
|
|
20577
|
+
if (next === this.visible) return;
|
|
20578
|
+
this.visible = next;
|
|
20579
|
+
this.state = { sidebarVisible: next };
|
|
20580
|
+
try {
|
|
20581
|
+
this.storage?.setItem(SIDEBAR_PREFERENCE_KEY, String(next));
|
|
20582
|
+
} catch {
|
|
20583
|
+
}
|
|
20584
|
+
for (const listener of this.listeners) listener();
|
|
20585
|
+
}
|
|
20586
|
+
};
|
|
20587
|
+
function mountSidebarPanel(ctx, { icon, panel, props }) {
|
|
20588
|
+
return ctx.inject(["slots"], (scope) => {
|
|
20589
|
+
scope.slots.inject("sidebar.panellist", () => scope.slots.register({
|
|
20590
|
+
name: "sidebar.panellist",
|
|
20591
|
+
id: SIDEBAR_PANEL_ID,
|
|
20592
|
+
order: 20,
|
|
20593
|
+
label: () => "\u58F0\u4E91\u8BBE\u5907"
|
|
20594
|
+
}, icon));
|
|
20595
|
+
scope.slots.inject("main", () => scope.slots.register({
|
|
20596
|
+
name: "main",
|
|
20597
|
+
key: SIDEBAR_PANEL_ID,
|
|
20598
|
+
inject: () => props()
|
|
20599
|
+
}, panel));
|
|
20600
|
+
});
|
|
20601
|
+
}
|
|
20602
|
+
function attachSidebarPanel(ctx, { icon, panel, props, preferences }) {
|
|
20603
|
+
let mounted = null;
|
|
20604
|
+
const unmount = () => {
|
|
20605
|
+
const scope = mounted;
|
|
20606
|
+
mounted = null;
|
|
20607
|
+
void scope?.dispose();
|
|
20608
|
+
};
|
|
20609
|
+
const sync = () => {
|
|
20610
|
+
if (preferences.visible === (mounted !== null)) return;
|
|
20611
|
+
if (preferences.visible) mounted = mountSidebarPanel(ctx, { icon, panel, props });
|
|
20612
|
+
else unmount();
|
|
20613
|
+
};
|
|
20614
|
+
sync();
|
|
20615
|
+
const unsubscribe = preferences.subscribe(sync);
|
|
20616
|
+
return () => {
|
|
20617
|
+
unsubscribe();
|
|
20618
|
+
unmount();
|
|
20619
|
+
};
|
|
20620
|
+
}
|
|
20621
|
+
|
|
20554
20622
|
// src/client/styles.css
|
|
20555
|
-
var styles_default = ".dsh-asr-settings { display:flex; flex-direction:column; gap:12px; max-width:720px; color:var(--dsw-alias-label-primary,#202124); }\n.dsh-asr-settings h2 { margin:0; font-size:16px; line-height:24px; font-weight:500; }\n.dsh-asr-intro { margin:0; font-size:14px; line-height:22px; color:var(--dsw-alias-label-tertiary,#858890); }\n.dsh-asr-muted { margin:0; font-size:12px; line-height:18px; color:var(--dsw-alias-label-tertiary,#858890); }\n.dsh-asr-services { list-style:none; margin:12px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }\n.dsh-asr-service { border:.5px solid var(--dsw-alias-settings-card-stroke,#d8d8dc); background:var(--dsw-alias-settings-card-fill,#fff); border-radius:var(--dsw-radius-xl,20px); padding:14px; display:flex; flex-direction:column; gap:8px; }\n.dsh-asr-service-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:14px; }\n.dsh-asr-service-head strong { font-weight:500; }\n.dsh-asr-actions { display:flex; justify-content:flex-end; align-items:center; gap:6px; margin-left:auto; }\n.dsh-asr-tag { border:.5px solid var(--dsw-alias-border-l3,#ddd); border-radius:4px; padding:1px 6px; font-size:11px; color:var(--dsw-alias-label-secondary,#666); }\n.dsh-asr-selected { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--dsw-alias-label-secondary,#666); }\n.dsh-asr-dot { width:8px; height:8px; border-radius:50%; background:var(--dsw-alias-state-business-primary,#4d6bfe); }\n.dsh-asr-address { overflow-wrap:anywhere; font-size:12px; color:var(--dsw-alias-label-secondary,#666); }\n.dsh-asr-key { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:12px; }\n.dsh-asr-key code { overflow-wrap:anywhere; }\n.dsh-asr-delete,.dsh-asr-error { color:var(--dsw-alias-state-error-primary,#e33c3c)!important; }\n.dsh-asr-add { border:1px dashed var(--dsw-alias-settings-card-stroke,#d8d8dc)!important; border-radius:var(--dsw-radius-lg,14px)!important; min-height:48px; width:100%; margin-top:4px; }\n.dsh-asr-form { display:flex; flex-direction:column; gap:14px; min-width:min(420px,70vw); max-width:600px; }\n.dsh-asr-field { display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--dsw-alias-label-primary,#202124); }\n.dsh-asr-field-row { display:flex; gap:6px; align-items:center; }\n.dsh-asr-field input { box-sizing:border-box; width:100%; min-width:0; height:36px; padding:6px 10px; border:1px solid var(--dsw-alias-settings-card-stroke,#d8d8dc); border-radius:var(--dsw-radius-md,10px); color:inherit; background:var(--dsw-alias-settings-card-fill,#fff); font:inherit; }\n.dsh-asr-field input:focus-visible { outline:2px solid var(--dsw-alias-state-business-primary,#4d6bfe); outline-offset:2px; }\n.dsh-mouse-settings { width:100%; color:var(--dsw-alias-label-primary,#14161a); }\n.dsh-mouse-settings h2 { margin:0 0 12px; font-size:16px; line-height:24px; font-weight:500; }\n.dsh-mouse-settings h3 { font-size:16px; font-weight:600; }\n.dsh-mouse-carousel { display:flex; align-items:center; justify-content:center; gap:80px; padding:40px 20px 0; }\n.dsh-mouse-carousel > button { border:0; background:none; font-size:36px; color:var(--dsw-alias-label-tertiary,#858890); cursor:pointer; }\n.dsh-mouse-product { text-align:center; }\n.dsh-mouse-illustration { position:relative; width:105px; height:150px; margin:0 auto; border:1px solid #aeb5c0; border-radius:48% 48% 45% 45%; background:linear-gradient(125deg,#fbfcfd,#d0d4da); }\n.dsh-mouse-illustration:before { content:''; position:absolute; width:1px; height:65px; left:50%; top:0; background:#b1b7c0; }\n.dsh-mouse-wheel { position:absolute; width:10px; height:29px; left:calc(50% - 5px); top:18px; border-radius:8px; background:repeating-linear-gradient(#9ba3b0 0 3px,#cbd0d7 4px 6px); border:1px solid #939aa7; }\n.dsh-mouse-ai { position:absolute; bottom:22px; left:0; width:100%; font-size:9px; letter-spacing:2px; color:#8d949f; }\n.dsh-mouse-dots { display:flex; justify-content:center; gap:12px; margin:0 0 38px; }\n.dsh-mouse-dots button { padding:0; width:7px; height:7px; border:0; border-radius:8px; background:#e5e5e5; cursor:pointer; }\n.dsh-mouse-dots button[aria-current=true] { width:20px; background:var(--dsw-alias-label-primary,#14161a); }\n.dsh-mouse-row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:16px 0; border-bottom:.5px solid var(--dsw-alias-border-l2,#e8e8ea); }\n.dsh-mouse-label { flex:1; min-width:0; padding-right:48px; font-size:14px; line-height:22px; }\n.dsh-mouse-label p { margin:4px 0 0; color:var(--dsw-alias-label-tertiary,#858890); font-size:12px; line-height:18px; }\n.dsh-mouse-key-group { border-bottom:.5px solid var(--dsw-alias-border-l2,#e8e8ea); }\n.dsh-mouse-key-group > .dsh-mouse-row { border-bottom:0; }\n.dsh-mouse-subrow { display:flex; justify-content:flex-end; padding-bottom:16px; }\n.dsh-mouse-subrow .dsh-mouse-controls { justify-content:flex-end; gap:8px; }\n.dsh-mouse-controls { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:12px; min-width:0; font-size:14px; line-height:22px; }\n.dsh-mouse-controls .dsh-mouse-select { justify-content:space-between; gap:12px; height:36px; padding:0 14px; border-radius:var(--dsw-radius-md,10px); background:var(--dsw-alias-bg-module-platform,#f5f6f7); font-size:14px; font-weight:400; }\n.dsh-mouse-controls .dsh-mouse-select:hover { background:var(--dsw-alias-interactive-bg-hover,#eceef1); }\n.dsh-mouse-select > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.dsh-mouse-controls input[type=url] { width:240px; max-width:100%; }\n.dsh-mouse-link-controls { flex-wrap:nowrap; }\n.dsh-mouse-link-controls input[type=url] { min-width:0; }\n.dsh-mouse-link-controls button { flex-shrink:0; }\n.dsh-mouse-value { color:var(--dsw-alias-label-tertiary,#858890); overflow-wrap:anywhere; }\n.dsh-mouse-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:16px; }\n.dsh-mouse-footer .dsh-mouse-reset { flex:none; color:var(--dsw-alias-state-warn-label,#b86b00); background:var(--dsw-alias-state-warn-tertiary,#fff4df); }\n.dsh-mouse-footer .dsh-mouse-reset:hover { background:color-mix(in srgb,var(--dsw-alias-state-warn-primary,#b86b00) 18%,transparent); }\n.dsh-mouse-switch { display:flex; align-items:center; gap:8px; color:var(--dsw-alias-label-secondary,#626976); font-size:12px; }\n.dsh-mouse-empty { padding:54px 24px; text-align:center; color:var(--dsw-alias-label-secondary,#626976); }\n.dsh-mouse-empty > span { font-size:54px; }\n@media(max-width:600px) { .dsh-mouse-carousel { gap:32px; }.dsh-mouse-row { align-items:flex-start; flex-direction:column; gap:12px; }.dsh-mouse-label { padding-right:0; }.dsh-mouse-controls { width:100%; justify-content:space-between; }.dsh-mouse-controls .dsh-mouse-select { max-width:230px; } }\n";
|
|
20623
|
+
var styles_default = ".dsh-asr-settings { display:flex; flex-direction:column; gap:12px; max-width:720px; color:var(--dsw-alias-label-primary,#202124); }\n.dsh-asr-settings h2 { margin:0; font-size:16px; line-height:24px; font-weight:500; }\n.dsh-asr-intro { margin:0; font-size:14px; line-height:22px; color:var(--dsw-alias-label-tertiary,#858890); }\n.dsh-asr-muted { margin:0; font-size:12px; line-height:18px; color:var(--dsw-alias-label-tertiary,#858890); }\n.dsh-asr-services { list-style:none; margin:12px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }\n.dsh-asr-service { border:.5px solid var(--dsw-alias-settings-card-stroke,#d8d8dc); background:var(--dsw-alias-settings-card-fill,#fff); border-radius:var(--dsw-radius-xl,20px); padding:14px; display:flex; flex-direction:column; gap:8px; }\n.dsh-asr-service-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:14px; }\n.dsh-asr-service-head strong { font-weight:500; }\n.dsh-asr-actions { display:flex; justify-content:flex-end; align-items:center; gap:6px; margin-left:auto; }\n.dsh-asr-tag { border:.5px solid var(--dsw-alias-border-l3,#ddd); border-radius:4px; padding:1px 6px; font-size:11px; color:var(--dsw-alias-label-secondary,#666); }\n.dsh-asr-selected { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--dsw-alias-label-secondary,#666); }\n.dsh-asr-dot { width:8px; height:8px; border-radius:50%; background:var(--dsw-alias-state-business-primary,#4d6bfe); }\n.dsh-asr-address { overflow-wrap:anywhere; font-size:12px; color:var(--dsw-alias-label-secondary,#666); }\n.dsh-asr-key { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:12px; }\n.dsh-asr-key code { overflow-wrap:anywhere; }\n.dsh-asr-delete,.dsh-asr-error { color:var(--dsw-alias-state-error-primary,#e33c3c)!important; }\n.dsh-asr-add { border:1px dashed var(--dsw-alias-settings-card-stroke,#d8d8dc)!important; border-radius:var(--dsw-radius-lg,14px)!important; min-height:48px; width:100%; margin-top:4px; }\n.dsh-asr-form { display:flex; flex-direction:column; gap:14px; min-width:min(420px,70vw); max-width:600px; }\n.dsh-asr-field { display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--dsw-alias-label-primary,#202124); }\n.dsh-asr-field-row { display:flex; gap:6px; align-items:center; }\n.dsh-asr-field input { box-sizing:border-box; width:100%; min-width:0; height:36px; padding:6px 10px; border:1px solid var(--dsw-alias-settings-card-stroke,#d8d8dc); border-radius:var(--dsw-radius-md,10px); color:inherit; background:var(--dsw-alias-settings-card-fill,#fff); font:inherit; }\n.dsh-asr-field input:focus-visible { outline:2px solid var(--dsw-alias-state-business-primary,#4d6bfe); outline-offset:2px; }\n.dsh-mouse-settings { width:100%; color:var(--dsw-alias-label-primary,#14161a); }\n.dsh-mouse-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }\n.dsh-mouse-head h2 { margin:0; }\n/* main \u5168\u5C40\u9762\u677F\uFF1A\u5BF9\u9F50\u5BBF\u4E3B\u63D2\u4EF6\u9875\u7ED3\u6784\u2014\u2014\u9875\u9762\u6839\u5360\u636E\u5168\u9AD8\u5E76\u81EA\u5E26\u7EB5\u5411\u6EDA\u52A8\uFF0C\u5185\u5BB9\u9650\u5BBD\u5C45\u4E2D\uFF1B\u9876\u90E8\u5B89\u5168\u8DDD\u79BB\u4EC5 darwin \u9700\u8981\uFF08Windows \u4E3A\u539F\u751F\u6807\u9898\u680F\uFF09\u3002 */\n.dsh-mouse-panel { box-sizing:border-box; height:100%; padding:0 clamp(24px,4vw,48px); display:flex; flex-direction:column; align-items:center; overflow:hidden auto; }\n.dsh-mouse-panel > .dsh-mouse-settings { flex:none; max-width:720px; padding:28px 0 48px; }\n[data-platform='darwin'] .dsh-mouse-panel > .dsh-mouse-settings { padding-top:calc(28px + var(--dsh-frame-top-clearance,0px)); }\n.dsh-mouse-settings h2 { margin:0 0 12px; font-size:16px; line-height:24px; font-weight:500; }\n.dsh-mouse-settings h3 { font-size:16px; font-weight:600; }\n.dsh-mouse-carousel { display:flex; align-items:center; justify-content:center; gap:80px; padding:40px 20px 0; }\n.dsh-mouse-carousel > button { border:0; background:none; font-size:36px; color:var(--dsw-alias-label-tertiary,#858890); cursor:pointer; }\n.dsh-mouse-product { text-align:center; }\n.dsh-mouse-illustration { position:relative; width:105px; height:150px; margin:0 auto; border:1px solid #aeb5c0; border-radius:48% 48% 45% 45%; background:linear-gradient(125deg,#fbfcfd,#d0d4da); }\n.dsh-mouse-illustration:before { content:''; position:absolute; width:1px; height:65px; left:50%; top:0; background:#b1b7c0; }\n.dsh-mouse-wheel { position:absolute; width:10px; height:29px; left:calc(50% - 5px); top:18px; border-radius:8px; background:repeating-linear-gradient(#9ba3b0 0 3px,#cbd0d7 4px 6px); border:1px solid #939aa7; }\n.dsh-mouse-ai { position:absolute; bottom:22px; left:0; width:100%; font-size:9px; letter-spacing:2px; color:#8d949f; }\n.dsh-mouse-dots { display:flex; justify-content:center; gap:12px; margin:0 0 38px; }\n.dsh-mouse-dots button { padding:0; width:7px; height:7px; border:0; border-radius:8px; background:#e5e5e5; cursor:pointer; }\n.dsh-mouse-dots button[aria-current=true] { width:20px; background:var(--dsw-alias-label-primary,#14161a); }\n.dsh-mouse-row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:16px 0; border-bottom:.5px solid var(--dsw-alias-border-l2,#e8e8ea); }\n.dsh-mouse-label { flex:1; min-width:0; padding-right:48px; font-size:14px; line-height:22px; }\n.dsh-mouse-label p { margin:4px 0 0; color:var(--dsw-alias-label-tertiary,#858890); font-size:12px; line-height:18px; }\n.dsh-mouse-key-group { border-bottom:.5px solid var(--dsw-alias-border-l2,#e8e8ea); }\n.dsh-mouse-key-group > .dsh-mouse-row { border-bottom:0; }\n.dsh-mouse-subrow { display:flex; justify-content:flex-end; padding-bottom:16px; }\n.dsh-mouse-subrow .dsh-mouse-controls { justify-content:flex-end; gap:8px; }\n.dsh-mouse-controls { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:12px; min-width:0; font-size:14px; line-height:22px; }\n.dsh-mouse-controls .dsh-mouse-select { justify-content:space-between; gap:12px; height:36px; padding:0 14px; border-radius:var(--dsw-radius-md,10px); background:var(--dsw-alias-bg-module-platform,#f5f6f7); font-size:14px; font-weight:400; }\n.dsh-mouse-controls .dsh-mouse-select:hover { background:var(--dsw-alias-interactive-bg-hover,#eceef1); }\n.dsh-mouse-select > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.dsh-mouse-controls input[type=url] { width:240px; max-width:100%; }\n.dsh-mouse-link-controls { flex-wrap:nowrap; }\n.dsh-mouse-link-controls input[type=url] { min-width:0; }\n.dsh-mouse-link-controls button { flex-shrink:0; }\n.dsh-mouse-value { color:var(--dsw-alias-label-tertiary,#858890); overflow-wrap:anywhere; }\n.dsh-mouse-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:16px; }\n.dsh-mouse-footer .dsh-mouse-reset { flex:none; color:var(--dsw-alias-state-warn-label,#b86b00); background:var(--dsw-alias-state-warn-tertiary,#fff4df); }\n.dsh-mouse-footer .dsh-mouse-reset:hover { background:color-mix(in srgb,var(--dsw-alias-state-warn-primary,#b86b00) 18%,transparent); }\n.dsh-mouse-switch { display:flex; align-items:center; gap:8px; color:var(--dsw-alias-label-secondary,#626976); font-size:12px; }\n.dsh-mouse-empty { padding:54px 24px; text-align:center; color:var(--dsw-alias-label-secondary,#626976); }\n.dsh-mouse-empty > span { font-size:54px; }\n@media(max-width:600px) { .dsh-mouse-carousel { gap:32px; }.dsh-mouse-row { align-items:flex-start; flex-direction:column; gap:12px; }.dsh-mouse-label { padding-right:0; }.dsh-mouse-controls { width:100%; justify-content:space-between; }.dsh-mouse-controls .dsh-mouse-select { max-width:230px; } }\n";
|
|
20556
20624
|
|
|
20557
20625
|
// src/client/index.jsx
|
|
20558
20626
|
var inject = ["remote", "slots"];
|
|
20559
20627
|
async function apply(ctx) {
|
|
20628
|
+
const preferences = new SidebarPanelPreference(typeof localStorage === "undefined" ? void 0 : localStorage);
|
|
20560
20629
|
const unmountRemote = await ctx.remote.$mount(REMOTE);
|
|
20561
20630
|
const view = new AiConversationView({ document, closeTopModal: import_dsh_client_ui_primitives3.closeTopModal });
|
|
20562
20631
|
let ui, aiUi;
|
|
@@ -20580,7 +20649,7 @@ async function apply(ctx) {
|
|
|
20580
20649
|
id: "dsh-sonicloud-device",
|
|
20581
20650
|
order: 11,
|
|
20582
20651
|
label: () => "\u58F0\u4E91\u8BBE\u5907",
|
|
20583
|
-
inject: () => ({ api, controller })
|
|
20652
|
+
inject: () => ({ api, controller, sidebar: preferences })
|
|
20584
20653
|
}, Devices));
|
|
20585
20654
|
scope.slots.inject("settings.section.icon", () => scope.slots.register({
|
|
20586
20655
|
name: "settings.section.icon",
|
|
@@ -20596,6 +20665,12 @@ async function apply(ctx) {
|
|
|
20596
20665
|
id: "dsh-sonicloud-device-ai-target",
|
|
20597
20666
|
inject: () => ({ view })
|
|
20598
20667
|
}, AiConversationTarget));
|
|
20668
|
+
scope.effect(() => attachSidebarPanel(scope, {
|
|
20669
|
+
icon: SonicloudIcon,
|
|
20670
|
+
panel: DevicesPanel,
|
|
20671
|
+
props: () => ({ controller, sidebar: preferences }),
|
|
20672
|
+
preferences
|
|
20673
|
+
}));
|
|
20599
20674
|
});
|
|
20600
20675
|
await ui;
|
|
20601
20676
|
aiUi = ctx.inject(["remote.asr", "sessions", "layout", "conversation", "uiWorkspace", "workspaces"], (scope) => {
|