@drmhse/authos-vue 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chokidar-KYB2GOYG.mjs +1730 -0
- package/dist/chunk-6DZX6EAA.mjs +33 -0
- package/dist/chunk-C2J6NSID.mjs +103 -0
- package/dist/chunk-F6BPUSH3.mjs +452 -0
- package/dist/chunk-JLL4L3HM.mjs +66 -0
- package/dist/chunk-OGRUDANK.mjs +28 -0
- package/dist/chunk-QGSFJDIC.mjs +1272 -0
- package/dist/chunk-SW2YRXFK.mjs +408 -0
- package/dist/chunk-T2K7EIWY.mjs +18 -0
- package/dist/chunk-VCTSSS2F.mjs +741 -0
- package/dist/chunk-XLWXQZHO.mjs +3602 -0
- package/dist/chunk-Z2UOP6GF.mjs +986 -0
- package/dist/dist-CX347IU5.mjs +12545 -0
- package/dist/dist-KTGFCHLE.mjs +3 -0
- package/dist/index.d.mts +269 -0
- package/dist/index.d.ts +269 -0
- package/dist/index.js +562 -0
- package/dist/index.mjs +511 -0
- package/dist/json5-WAUASGCX.mjs +3 -0
- package/dist/jsonc-BXVTKCPI.mjs +3 -0
- package/dist/multipart-parser-ZINPIK62.mjs +173 -0
- package/dist/nuxt.d.mts +15 -0
- package/dist/nuxt.d.ts +15 -0
- package/dist/nuxt.js +10527 -0
- package/dist/nuxt.mjs +7988 -0
- package/dist/prompt-LQK3IVQK.mjs +751 -0
- package/dist/toml-EIVFNDS7.mjs +3 -0
- package/dist/utils-ITGQWSRY.mjs +94 -0
- package/dist/yaml-NCROZBG5.mjs +3 -0
- package/package.json +76 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
14
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
|
|
33
|
+
export { __commonJS, __require, __toESM };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs
|
|
2
|
+
function serialize(o) {
|
|
3
|
+
return typeof o == "string" ? `'${o}'` : new c().serialize(o);
|
|
4
|
+
}
|
|
5
|
+
var c = /* @__PURE__ */ (function() {
|
|
6
|
+
class o {
|
|
7
|
+
#t = /* @__PURE__ */ new Map();
|
|
8
|
+
compare(t, r) {
|
|
9
|
+
const e = typeof t, n = typeof r;
|
|
10
|
+
return e === "string" && n === "string" ? t.localeCompare(r) : e === "number" && n === "number" ? t - r : String.prototype.localeCompare.call(this.serialize(t, true), this.serialize(r, true));
|
|
11
|
+
}
|
|
12
|
+
serialize(t, r) {
|
|
13
|
+
if (t === null) return "null";
|
|
14
|
+
switch (typeof t) {
|
|
15
|
+
case "string":
|
|
16
|
+
return r ? t : `'${t}'`;
|
|
17
|
+
case "bigint":
|
|
18
|
+
return `${t}n`;
|
|
19
|
+
case "object":
|
|
20
|
+
return this.$object(t);
|
|
21
|
+
case "function":
|
|
22
|
+
return this.$function(t);
|
|
23
|
+
}
|
|
24
|
+
return String(t);
|
|
25
|
+
}
|
|
26
|
+
serializeObject(t) {
|
|
27
|
+
const r = Object.prototype.toString.call(t);
|
|
28
|
+
if (r !== "[object Object]") return this.serializeBuiltInType(r.length < 10 ? `unknown:${r}` : r.slice(8, -1), t);
|
|
29
|
+
const e = t.constructor, n = e === Object || e === void 0 ? "" : e.name;
|
|
30
|
+
if (n !== "" && globalThis[n] === e) return this.serializeBuiltInType(n, t);
|
|
31
|
+
if (typeof t.toJSON == "function") {
|
|
32
|
+
const i = t.toJSON();
|
|
33
|
+
return n + (i !== null && typeof i == "object" ? this.$object(i) : `(${this.serialize(i)})`);
|
|
34
|
+
}
|
|
35
|
+
return this.serializeObjectEntries(n, Object.entries(t));
|
|
36
|
+
}
|
|
37
|
+
serializeBuiltInType(t, r) {
|
|
38
|
+
const e = this["$" + t];
|
|
39
|
+
if (e) return e.call(this, r);
|
|
40
|
+
if (typeof r?.entries == "function") return this.serializeObjectEntries(t, r.entries());
|
|
41
|
+
throw new Error(`Cannot serialize ${t}`);
|
|
42
|
+
}
|
|
43
|
+
serializeObjectEntries(t, r) {
|
|
44
|
+
const e = Array.from(r).sort((i, a) => this.compare(i[0], a[0]));
|
|
45
|
+
let n = `${t}{`;
|
|
46
|
+
for (let i = 0; i < e.length; i++) {
|
|
47
|
+
const [a, l] = e[i];
|
|
48
|
+
n += `${this.serialize(a, true)}:${this.serialize(l)}`, i < e.length - 1 && (n += ",");
|
|
49
|
+
}
|
|
50
|
+
return n + "}";
|
|
51
|
+
}
|
|
52
|
+
$object(t) {
|
|
53
|
+
let r = this.#t.get(t);
|
|
54
|
+
return r === void 0 && (this.#t.set(t, `#${this.#t.size}`), r = this.serializeObject(t), this.#t.set(t, r)), r;
|
|
55
|
+
}
|
|
56
|
+
$function(t) {
|
|
57
|
+
const r = Function.prototype.toString.call(t);
|
|
58
|
+
return r.slice(-15) === "[native code] }" ? `${t.name || ""}()[native]` : `${t.name}(${t.length})${r.replace(/\s*\n\s*/g, "")}`;
|
|
59
|
+
}
|
|
60
|
+
$Array(t) {
|
|
61
|
+
let r = "[";
|
|
62
|
+
for (let e = 0; e < t.length; e++) r += this.serialize(t[e]), e < t.length - 1 && (r += ",");
|
|
63
|
+
return r + "]";
|
|
64
|
+
}
|
|
65
|
+
$Date(t) {
|
|
66
|
+
try {
|
|
67
|
+
return `Date(${t.toISOString()})`;
|
|
68
|
+
} catch {
|
|
69
|
+
return "Date(null)";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
$ArrayBuffer(t) {
|
|
73
|
+
return `ArrayBuffer[${new Uint8Array(t).join(",")}]`;
|
|
74
|
+
}
|
|
75
|
+
$Set(t) {
|
|
76
|
+
return `Set${this.$Array(Array.from(t).sort((r, e) => this.compare(r, e)))}`;
|
|
77
|
+
}
|
|
78
|
+
$Map(t) {
|
|
79
|
+
return this.serializeObjectEntries("Map", t.entries());
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
for (const s of ["Error", "RegExp", "URL"]) o.prototype["$" + s] = function(t) {
|
|
83
|
+
return `${s}(${t})`;
|
|
84
|
+
};
|
|
85
|
+
for (const s of ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array"]) o.prototype["$" + s] = function(t) {
|
|
86
|
+
return `${s}[${t.join(",")}]`;
|
|
87
|
+
};
|
|
88
|
+
for (const s of ["BigInt64Array", "BigUint64Array"]) o.prototype["$" + s] = function(t) {
|
|
89
|
+
return `${s}[${t.join("n,")}${t.length > 0 ? "n" : ""}]`;
|
|
90
|
+
};
|
|
91
|
+
return o;
|
|
92
|
+
})();
|
|
93
|
+
function isEqual(object1, object2) {
|
|
94
|
+
if (object1 === object2) {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
if (serialize(object1) === serialize(object2)) {
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { isEqual, serialize };
|
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { N, C } from './chunk-JLL4L3HM.mjs';
|
|
2
|
+
|
|
3
|
+
// node_modules/confbox/dist/toml.mjs
|
|
4
|
+
function v(e, n) {
|
|
5
|
+
let t = e.slice(0, n).split(/\r\n|\n|\r/g);
|
|
6
|
+
return [t.length, t.pop().length + 1];
|
|
7
|
+
}
|
|
8
|
+
function C2(e, n, t) {
|
|
9
|
+
let l = e.split(/\r\n|\n|\r/g), r = "", i = (Math.log10(n + 1) | 0) + 1;
|
|
10
|
+
for (let o = n - 1; o <= n + 1; o++) {
|
|
11
|
+
let f = l[o - 1];
|
|
12
|
+
f && (r += o.toString().padEnd(i, " "), r += ": ", r += f, r += `
|
|
13
|
+
`, o === n && (r += " ".repeat(i + t + 2), r += `^
|
|
14
|
+
`));
|
|
15
|
+
}
|
|
16
|
+
return r;
|
|
17
|
+
}
|
|
18
|
+
var c = class extends Error {
|
|
19
|
+
line;
|
|
20
|
+
column;
|
|
21
|
+
codeblock;
|
|
22
|
+
constructor(n, t) {
|
|
23
|
+
const [l, r] = v(t.toml, t.ptr), i = C2(t.toml, l, r);
|
|
24
|
+
super(`Invalid TOML document: ${n}
|
|
25
|
+
|
|
26
|
+
${i}`, t), this.line = l, this.column = r, this.codeblock = i;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function g(e, n = 0, t = e.length) {
|
|
30
|
+
let l = e.indexOf(`
|
|
31
|
+
`, n);
|
|
32
|
+
return e[l - 1] === "\r" && l--, l <= t ? l : -1;
|
|
33
|
+
}
|
|
34
|
+
function y(e, n) {
|
|
35
|
+
for (let t = n; t < e.length; t++) {
|
|
36
|
+
let l = e[t];
|
|
37
|
+
if (l === `
|
|
38
|
+
`) return t;
|
|
39
|
+
if (l === "\r" && e[t + 1] === `
|
|
40
|
+
`) return t + 1;
|
|
41
|
+
if (l < " " && l !== " " || l === "\x7F") throw new c("control characters are not allowed in comments", { toml: e, ptr: n });
|
|
42
|
+
}
|
|
43
|
+
return e.length;
|
|
44
|
+
}
|
|
45
|
+
function s(e, n, t, l) {
|
|
46
|
+
let r;
|
|
47
|
+
for (; (r = e[n]) === " " || r === " " || !t && (r === `
|
|
48
|
+
` || r === "\r" && e[n + 1] === `
|
|
49
|
+
`); ) n++;
|
|
50
|
+
return l || r !== "#" ? n : s(e, y(e, n), t);
|
|
51
|
+
}
|
|
52
|
+
function A(e, n, t, l, r = false) {
|
|
53
|
+
if (!l) return n = g(e, n), n < 0 ? e.length : n;
|
|
54
|
+
for (let i = n; i < e.length; i++) {
|
|
55
|
+
let o = e[i];
|
|
56
|
+
if (o === "#") i = g(e, i);
|
|
57
|
+
else {
|
|
58
|
+
if (o === t) return i + 1;
|
|
59
|
+
if (o === l) return i;
|
|
60
|
+
if (r && (o === `
|
|
61
|
+
` || o === "\r" && e[i + 1] === `
|
|
62
|
+
`)) return i;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
throw new c("cannot find end of structure", { toml: e, ptr: n });
|
|
66
|
+
}
|
|
67
|
+
function S(e, n) {
|
|
68
|
+
let t = e[n], l = t === e[n + 1] && e[n + 1] === e[n + 2] ? e.slice(n, n + 3) : t;
|
|
69
|
+
n += l.length - 1;
|
|
70
|
+
do
|
|
71
|
+
n = e.indexOf(l, ++n);
|
|
72
|
+
while (n > -1 && t !== "'" && e[n - 1] === "\\" && e[n - 2] !== "\\");
|
|
73
|
+
return n > -1 && (n += l.length, l.length > 1 && (e[n] === t && n++, e[n] === t && n++)), n;
|
|
74
|
+
}
|
|
75
|
+
var R = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
|
|
76
|
+
var w = class _w extends Date {
|
|
77
|
+
#n = false;
|
|
78
|
+
#t = false;
|
|
79
|
+
#e = null;
|
|
80
|
+
constructor(n) {
|
|
81
|
+
let t = true, l = true, r = "Z";
|
|
82
|
+
if (typeof n == "string") {
|
|
83
|
+
let i = n.match(R);
|
|
84
|
+
i ? (i[1] || (t = false, n = `0000-01-01T${n}`), l = !!i[2], i[2] && +i[2] > 23 ? n = "" : (r = i[3] || null, n = n.toUpperCase(), !r && l && (n += "Z"))) : n = "";
|
|
85
|
+
}
|
|
86
|
+
super(n), isNaN(this.getTime()) || (this.#n = t, this.#t = l, this.#e = r);
|
|
87
|
+
}
|
|
88
|
+
isDateTime() {
|
|
89
|
+
return this.#n && this.#t;
|
|
90
|
+
}
|
|
91
|
+
isLocal() {
|
|
92
|
+
return !this.#n || !this.#t || !this.#e;
|
|
93
|
+
}
|
|
94
|
+
isDate() {
|
|
95
|
+
return this.#n && !this.#t;
|
|
96
|
+
}
|
|
97
|
+
isTime() {
|
|
98
|
+
return this.#t && !this.#n;
|
|
99
|
+
}
|
|
100
|
+
isValid() {
|
|
101
|
+
return this.#n || this.#t;
|
|
102
|
+
}
|
|
103
|
+
toISOString() {
|
|
104
|
+
let n = super.toISOString();
|
|
105
|
+
if (this.isDate()) return n.slice(0, 10);
|
|
106
|
+
if (this.isTime()) return n.slice(11, 23);
|
|
107
|
+
if (this.#e === null) return n.slice(0, -1);
|
|
108
|
+
if (this.#e === "Z") return n;
|
|
109
|
+
let t = +this.#e.slice(1, 3) * 60 + +this.#e.slice(4, 6);
|
|
110
|
+
return t = this.#e[0] === "-" ? t : -t, new Date(this.getTime() - t * 6e4).toISOString().slice(0, -1) + this.#e;
|
|
111
|
+
}
|
|
112
|
+
static wrapAsOffsetDateTime(n, t = "Z") {
|
|
113
|
+
let l = new _w(n);
|
|
114
|
+
return l.#e = t, l;
|
|
115
|
+
}
|
|
116
|
+
static wrapAsLocalDateTime(n) {
|
|
117
|
+
let t = new _w(n);
|
|
118
|
+
return t.#e = null, t;
|
|
119
|
+
}
|
|
120
|
+
static wrapAsLocalDate(n) {
|
|
121
|
+
let t = new _w(n);
|
|
122
|
+
return t.#t = false, t.#e = null, t;
|
|
123
|
+
}
|
|
124
|
+
static wrapAsLocalTime(n) {
|
|
125
|
+
let t = new _w(n);
|
|
126
|
+
return t.#n = false, t.#e = null, t;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
var M = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/;
|
|
130
|
+
var Z = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/;
|
|
131
|
+
var j = /^[+-]?0[0-9_]/;
|
|
132
|
+
var z = /^[0-9a-f]{4,8}$/i;
|
|
133
|
+
var I = { b: "\b", t: " ", n: `
|
|
134
|
+
`, f: "\f", r: "\r", '"': '"', "\\": "\\" };
|
|
135
|
+
function $(e, n = 0, t = e.length) {
|
|
136
|
+
let l = e[n] === "'", r = e[n++] === e[n] && e[n] === e[n + 1];
|
|
137
|
+
r && (t -= 2, e[n += 2] === "\r" && n++, e[n] === `
|
|
138
|
+
` && n++);
|
|
139
|
+
let i = 0, o, f = "", a = n;
|
|
140
|
+
for (; n < t - 1; ) {
|
|
141
|
+
let u = e[n++];
|
|
142
|
+
if (u === `
|
|
143
|
+
` || u === "\r" && e[n] === `
|
|
144
|
+
`) {
|
|
145
|
+
if (!r) throw new c("newlines are not allowed in strings", { toml: e, ptr: n - 1 });
|
|
146
|
+
} else if (u < " " && u !== " " || u === "\x7F") throw new c("control characters are not allowed in strings", { toml: e, ptr: n - 1 });
|
|
147
|
+
if (o) {
|
|
148
|
+
if (o = false, u === "u" || u === "U") {
|
|
149
|
+
let d = e.slice(n, n += u === "u" ? 4 : 8);
|
|
150
|
+
if (!z.test(d)) throw new c("invalid unicode escape", { toml: e, ptr: i });
|
|
151
|
+
try {
|
|
152
|
+
f += String.fromCodePoint(parseInt(d, 16));
|
|
153
|
+
} catch {
|
|
154
|
+
throw new c("invalid unicode escape", { toml: e, ptr: i });
|
|
155
|
+
}
|
|
156
|
+
} else if (r && (u === `
|
|
157
|
+
` || u === " " || u === " " || u === "\r")) {
|
|
158
|
+
if (n = s(e, n - 1, true), e[n] !== `
|
|
159
|
+
` && e[n] !== "\r") throw new c("invalid escape: only line-ending whitespace may be escaped", { toml: e, ptr: i });
|
|
160
|
+
n = s(e, n);
|
|
161
|
+
} else if (u in I) f += I[u];
|
|
162
|
+
else throw new c("unrecognized escape sequence", { toml: e, ptr: i });
|
|
163
|
+
a = n;
|
|
164
|
+
} else !l && u === "\\" && (i = n - 1, o = true, f += e.slice(a, i));
|
|
165
|
+
}
|
|
166
|
+
return f + e.slice(a, t - 1);
|
|
167
|
+
}
|
|
168
|
+
function F(e, n, t) {
|
|
169
|
+
if (e === "true") return true;
|
|
170
|
+
if (e === "false") return false;
|
|
171
|
+
if (e === "-inf") return -1 / 0;
|
|
172
|
+
if (e === "inf" || e === "+inf") return 1 / 0;
|
|
173
|
+
if (e === "nan" || e === "+nan" || e === "-nan") return NaN;
|
|
174
|
+
if (e === "-0") return 0;
|
|
175
|
+
let l;
|
|
176
|
+
if ((l = M.test(e)) || Z.test(e)) {
|
|
177
|
+
if (j.test(e)) throw new c("leading zeroes are not allowed", { toml: n, ptr: t });
|
|
178
|
+
let i = +e.replace(/_/g, "");
|
|
179
|
+
if (isNaN(i)) throw new c("invalid number", { toml: n, ptr: t });
|
|
180
|
+
if (l && !Number.isSafeInteger(i)) throw new c("integer value cannot be represented losslessly", { toml: n, ptr: t });
|
|
181
|
+
return i;
|
|
182
|
+
}
|
|
183
|
+
let r = new w(e);
|
|
184
|
+
if (!r.isValid()) throw new c("invalid value", { toml: n, ptr: t });
|
|
185
|
+
return r;
|
|
186
|
+
}
|
|
187
|
+
function V(e, n, t, l) {
|
|
188
|
+
let r = e.slice(n, t), i = r.indexOf("#");
|
|
189
|
+
i > -1 && (y(e, i), r = r.slice(0, i));
|
|
190
|
+
let o = r.trimEnd();
|
|
191
|
+
if (!l) {
|
|
192
|
+
let f = r.indexOf(`
|
|
193
|
+
`, o.length);
|
|
194
|
+
if (f > -1) throw new c("newlines are not allowed in inline tables", { toml: e, ptr: n + f });
|
|
195
|
+
}
|
|
196
|
+
return [o, i];
|
|
197
|
+
}
|
|
198
|
+
function b(e, n, t, l) {
|
|
199
|
+
if (l === 0) throw new c("document contains excessively nested structures. aborting.", { toml: e, ptr: n });
|
|
200
|
+
let r = e[n];
|
|
201
|
+
if (r === "[" || r === "{") {
|
|
202
|
+
let [f, a] = r === "[" ? U(e, n, l) : K(e, n, l), u = A(e, a, ",", t);
|
|
203
|
+
if (t === "}") {
|
|
204
|
+
let d = g(e, a, u);
|
|
205
|
+
if (d > -1) throw new c("newlines are not allowed in inline tables", { toml: e, ptr: d });
|
|
206
|
+
}
|
|
207
|
+
return [f, u];
|
|
208
|
+
}
|
|
209
|
+
let i;
|
|
210
|
+
if (r === '"' || r === "'") {
|
|
211
|
+
i = S(e, n);
|
|
212
|
+
let f = $(e, n, i);
|
|
213
|
+
if (t) {
|
|
214
|
+
if (i = s(e, i, t !== "]"), e[i] && e[i] !== "," && e[i] !== t && e[i] !== `
|
|
215
|
+
` && e[i] !== "\r") throw new c("unexpected character encountered", { toml: e, ptr: i });
|
|
216
|
+
i += +(e[i] === ",");
|
|
217
|
+
}
|
|
218
|
+
return [f, i];
|
|
219
|
+
}
|
|
220
|
+
i = A(e, n, ",", t);
|
|
221
|
+
let o = V(e, n, i - +(e[i - 1] === ","), t === "]");
|
|
222
|
+
if (!o[0]) throw new c("incomplete key-value declaration: no value specified", { toml: e, ptr: n });
|
|
223
|
+
return t && o[1] > -1 && (i = s(e, n + o[1]), i += +(e[i] === ",")), [F(o[0], e, n), i];
|
|
224
|
+
}
|
|
225
|
+
var G = /^[a-zA-Z0-9-_]+[ \t]*$/;
|
|
226
|
+
function x(e, n, t = "=") {
|
|
227
|
+
let l = n - 1, r = [], i = e.indexOf(t, n);
|
|
228
|
+
if (i < 0) throw new c("incomplete key-value: cannot find end of key", { toml: e, ptr: n });
|
|
229
|
+
do {
|
|
230
|
+
let o = e[n = ++l];
|
|
231
|
+
if (o !== " " && o !== " ") if (o === '"' || o === "'") {
|
|
232
|
+
if (o === e[n + 1] && o === e[n + 2]) throw new c("multiline strings are not allowed in keys", { toml: e, ptr: n });
|
|
233
|
+
let f = S(e, n);
|
|
234
|
+
if (f < 0) throw new c("unfinished string encountered", { toml: e, ptr: n });
|
|
235
|
+
l = e.indexOf(".", f);
|
|
236
|
+
let a = e.slice(f, l < 0 || l > i ? i : l), u = g(a);
|
|
237
|
+
if (u > -1) throw new c("newlines are not allowed in keys", { toml: e, ptr: n + l + u });
|
|
238
|
+
if (a.trimStart()) throw new c("found extra tokens after the string part", { toml: e, ptr: f });
|
|
239
|
+
if (i < f && (i = e.indexOf(t, f), i < 0)) throw new c("incomplete key-value: cannot find end of key", { toml: e, ptr: n });
|
|
240
|
+
r.push($(e, n, f));
|
|
241
|
+
} else {
|
|
242
|
+
l = e.indexOf(".", n);
|
|
243
|
+
let f = e.slice(n, l < 0 || l > i ? i : l);
|
|
244
|
+
if (!G.test(f)) throw new c("only letter, numbers, dashes and underscores are allowed in keys", { toml: e, ptr: n });
|
|
245
|
+
r.push(f.trimEnd());
|
|
246
|
+
}
|
|
247
|
+
} while (l + 1 && l < i);
|
|
248
|
+
return [r, s(e, i + 1, true, true)];
|
|
249
|
+
}
|
|
250
|
+
function K(e, n, t) {
|
|
251
|
+
let l = {}, r = /* @__PURE__ */ new Set(), i, o = 0;
|
|
252
|
+
for (n++; (i = e[n++]) !== "}" && i; ) {
|
|
253
|
+
if (i === `
|
|
254
|
+
`) throw new c("newlines are not allowed in inline tables", { toml: e, ptr: n - 1 });
|
|
255
|
+
if (i === "#") throw new c("inline tables cannot contain comments", { toml: e, ptr: n - 1 });
|
|
256
|
+
if (i === ",") throw new c("expected key-value, found comma", { toml: e, ptr: n - 1 });
|
|
257
|
+
if (i !== " " && i !== " ") {
|
|
258
|
+
let f, a = l, u = false, [d, N2] = x(e, n - 1);
|
|
259
|
+
for (let m = 0; m < d.length; m++) {
|
|
260
|
+
if (m && (a = u ? a[f] : a[f] = {}), f = d[m], (u = Object.hasOwn(a, f)) && (typeof a[f] != "object" || r.has(a[f]))) throw new c("trying to redefine an already defined value", { toml: e, ptr: n });
|
|
261
|
+
!u && f === "__proto__" && Object.defineProperty(a, f, { enumerable: true, configurable: true, writable: true });
|
|
262
|
+
}
|
|
263
|
+
if (u) throw new c("trying to redefine an already defined value", { toml: e, ptr: n });
|
|
264
|
+
let [_, k] = b(e, N2, "}", t - 1);
|
|
265
|
+
r.add(_), a[f] = _, n = k, o = e[n - 1] === "," ? n - 1 : 0;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
if (o) throw new c("trailing commas are not allowed in inline tables", { toml: e, ptr: o });
|
|
269
|
+
if (!i) throw new c("unfinished table encountered", { toml: e, ptr: n });
|
|
270
|
+
return [l, n];
|
|
271
|
+
}
|
|
272
|
+
function U(e, n, t) {
|
|
273
|
+
let l = [], r;
|
|
274
|
+
for (n++; (r = e[n++]) !== "]" && r; ) {
|
|
275
|
+
if (r === ",") throw new c("expected value, found comma", { toml: e, ptr: n - 1 });
|
|
276
|
+
if (r === "#") n = y(e, n);
|
|
277
|
+
else if (r !== " " && r !== " " && r !== `
|
|
278
|
+
` && r !== "\r") {
|
|
279
|
+
let i = b(e, n - 1, "]", t - 1);
|
|
280
|
+
l.push(i[0]), n = i[1];
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
if (!r) throw new c("unfinished array encountered", { toml: e, ptr: n });
|
|
284
|
+
return [l, n];
|
|
285
|
+
}
|
|
286
|
+
function p(e, n, t, l) {
|
|
287
|
+
let r = n, i = t, o, f = false, a;
|
|
288
|
+
for (let u = 0; u < e.length; u++) {
|
|
289
|
+
if (u) {
|
|
290
|
+
if (r = f ? r[o] : r[o] = {}, i = (a = i[o]).c, l === 0 && (a.t === 1 || a.t === 2)) return null;
|
|
291
|
+
if (a.t === 2) {
|
|
292
|
+
let d = r.length - 1;
|
|
293
|
+
r = r[d], i = i[d].c;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
if (o = e[u], (f = Object.hasOwn(r, o)) && i[o]?.t === 0 && i[o]?.d) return null;
|
|
297
|
+
f || (o === "__proto__" && (Object.defineProperty(r, o, { enumerable: true, configurable: true, writable: true }), Object.defineProperty(i, o, { enumerable: true, configurable: true, writable: true })), i[o] = { t: u < e.length - 1 && l === 2 ? 3 : l, d: false, i: 0, c: {} });
|
|
298
|
+
}
|
|
299
|
+
if (a = i[o], a.t !== l && !(l === 1 && a.t === 3) || (l === 2 && (a.d || (a.d = true, r[o] = []), r[o].push(r = {}), a.c[a.i++] = a = { t: 1, d: false, i: 0, c: {} }), a.d)) return null;
|
|
300
|
+
if (a.d = true, l === 1) r = f ? r[o] : r[o] = {};
|
|
301
|
+
else if (l === 0 && f) return null;
|
|
302
|
+
return [o, r, a.c];
|
|
303
|
+
}
|
|
304
|
+
function X(e, n) {
|
|
305
|
+
let t = 1e3, l = {}, r = {}, i = l, o = r;
|
|
306
|
+
for (let f = s(e, 0); f < e.length; ) {
|
|
307
|
+
if (e[f] === "[") {
|
|
308
|
+
let a = e[++f] === "[", u = x(e, f += +a, "]");
|
|
309
|
+
if (a) {
|
|
310
|
+
if (e[u[1] - 1] !== "]") throw new c("expected end of table declaration", { toml: e, ptr: u[1] - 1 });
|
|
311
|
+
u[1]++;
|
|
312
|
+
}
|
|
313
|
+
let d = p(u[0], l, r, a ? 2 : 1);
|
|
314
|
+
if (!d) throw new c("trying to redefine an already defined table or value", { toml: e, ptr: f });
|
|
315
|
+
o = d[2], i = d[1], f = u[1];
|
|
316
|
+
} else {
|
|
317
|
+
let a = x(e, f), u = p(a[0], i, o, 0);
|
|
318
|
+
if (!u) throw new c("trying to redefine an already defined table or value", { toml: e, ptr: f });
|
|
319
|
+
let d = b(e, a[1], void 0, t);
|
|
320
|
+
u[1][u[0]] = d[0], f = d[1];
|
|
321
|
+
}
|
|
322
|
+
if (f = s(e, f, true), e[f] && e[f] !== `
|
|
323
|
+
` && e[f] !== "\r") throw new c("each key-value declaration must be followed by an end-of-line", { toml: e, ptr: f });
|
|
324
|
+
f = s(e, f);
|
|
325
|
+
}
|
|
326
|
+
return l;
|
|
327
|
+
}
|
|
328
|
+
var D = /^[a-z0-9-_]+$/i;
|
|
329
|
+
function h(e) {
|
|
330
|
+
let n = typeof e;
|
|
331
|
+
if (n === "object") {
|
|
332
|
+
if (Array.isArray(e)) return "array";
|
|
333
|
+
if (e instanceof Date) return "date";
|
|
334
|
+
}
|
|
335
|
+
return n;
|
|
336
|
+
}
|
|
337
|
+
function B(e) {
|
|
338
|
+
for (let n = 0; n < e.length; n++) if (h(e[n]) !== "object") return false;
|
|
339
|
+
return e.length != 0;
|
|
340
|
+
}
|
|
341
|
+
function E(e) {
|
|
342
|
+
return JSON.stringify(e).replace(/\x7f/g, "\\u007f");
|
|
343
|
+
}
|
|
344
|
+
function O(e, n, t) {
|
|
345
|
+
if (t === 0) throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
346
|
+
if (n === "number") return isNaN(e) ? "nan" : e === 1 / 0 ? "inf" : e === -1 / 0 ? "-inf" : e.toString();
|
|
347
|
+
if (n === "bigint" || n === "boolean") return e.toString();
|
|
348
|
+
if (n === "string") return E(e);
|
|
349
|
+
if (n === "date") {
|
|
350
|
+
if (isNaN(e.getTime())) throw new TypeError("cannot serialize invalid date");
|
|
351
|
+
return e.toISOString();
|
|
352
|
+
}
|
|
353
|
+
if (n === "object") return Y(e, t);
|
|
354
|
+
if (n === "array") return q(e, t);
|
|
355
|
+
}
|
|
356
|
+
function Y(e, n) {
|
|
357
|
+
let t = Object.keys(e);
|
|
358
|
+
if (t.length === 0) return "{}";
|
|
359
|
+
let l = "{ ";
|
|
360
|
+
for (let r = 0; r < t.length; r++) {
|
|
361
|
+
let i = t[r];
|
|
362
|
+
r && (l += ", "), l += D.test(i) ? i : E(i), l += " = ", l += O(e[i], h(e[i]), n - 1);
|
|
363
|
+
}
|
|
364
|
+
return l + " }";
|
|
365
|
+
}
|
|
366
|
+
function q(e, n) {
|
|
367
|
+
if (e.length === 0) return "[]";
|
|
368
|
+
let t = "[ ";
|
|
369
|
+
for (let l = 0; l < e.length; l++) {
|
|
370
|
+
if (l && (t += ", "), e[l] === null || e[l] === void 0) throw new TypeError("arrays cannot contain null or undefined values");
|
|
371
|
+
t += O(e[l], h(e[l]), n - 1);
|
|
372
|
+
}
|
|
373
|
+
return t + " ]";
|
|
374
|
+
}
|
|
375
|
+
function J(e, n, t) {
|
|
376
|
+
if (t === 0) throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
377
|
+
let l = "";
|
|
378
|
+
for (let r = 0; r < e.length; r++) l += `[[${n}]]
|
|
379
|
+
`, l += T(e[r], n, t), l += `
|
|
380
|
+
|
|
381
|
+
`;
|
|
382
|
+
return l;
|
|
383
|
+
}
|
|
384
|
+
function T(e, n, t) {
|
|
385
|
+
if (t === 0) throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
386
|
+
let l = "", r = "", i = Object.keys(e);
|
|
387
|
+
for (let o = 0; o < i.length; o++) {
|
|
388
|
+
let f = i[o];
|
|
389
|
+
if (e[f] !== null && e[f] !== void 0) {
|
|
390
|
+
let a = h(e[f]);
|
|
391
|
+
if (a === "symbol" || a === "function") throw new TypeError(`cannot serialize values of type '${a}'`);
|
|
392
|
+
let u = D.test(f) ? f : E(f);
|
|
393
|
+
if (a === "array" && B(e[f])) r += J(e[f], n ? `${n}.${u}` : u, t - 1);
|
|
394
|
+
else if (a === "object") {
|
|
395
|
+
let d = n ? `${n}.${u}` : u;
|
|
396
|
+
r += `[${d}]
|
|
397
|
+
`, r += T(e[f], d, t - 1), r += `
|
|
398
|
+
|
|
399
|
+
`;
|
|
400
|
+
} else l += u, l += " = ", l += O(e[f], a, t), l += `
|
|
401
|
+
`;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
return `${l}
|
|
405
|
+
${r}`.trim();
|
|
406
|
+
}
|
|
407
|
+
function H(e, n) {
|
|
408
|
+
if (h(e) !== "object") throw new TypeError("stringify can only be called with an object");
|
|
409
|
+
let t = 1e3;
|
|
410
|
+
return T(e, "", t);
|
|
411
|
+
}
|
|
412
|
+
function Q(e) {
|
|
413
|
+
const n = X(e);
|
|
414
|
+
return N(e, n, { preserveIndentation: false }), n;
|
|
415
|
+
}
|
|
416
|
+
function W(e) {
|
|
417
|
+
const n = C(e, {}), t = H(e);
|
|
418
|
+
return n.whitespace.start + t + n.whitespace.end;
|
|
419
|
+
}
|
|
420
|
+
/*! Bundled license information:
|
|
421
|
+
|
|
422
|
+
confbox/dist/toml.mjs:
|
|
423
|
+
(*!
|
|
424
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
425
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
426
|
+
*
|
|
427
|
+
* Redistribution and use in source and binary forms, with or without
|
|
428
|
+
* modification, are permitted provided that the following conditions are met:
|
|
429
|
+
*
|
|
430
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
431
|
+
* list of conditions and the following disclaimer.
|
|
432
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
433
|
+
* this list of conditions and the following disclaimer in the
|
|
434
|
+
* documentation and/or other materials provided with the distribution.
|
|
435
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
436
|
+
* may be used to endorse or promote products derived from this software without
|
|
437
|
+
* specific prior written permission.
|
|
438
|
+
*
|
|
439
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
440
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
441
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
442
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
443
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
444
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
445
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
446
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
447
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
448
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
449
|
+
*)
|
|
450
|
+
*/
|
|
451
|
+
|
|
452
|
+
export { Q, W };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs
|
|
2
|
+
var b = /^(?:( )+|\t+)/;
|
|
3
|
+
var d = "space";
|
|
4
|
+
var h = "tab";
|
|
5
|
+
function g(e, t) {
|
|
6
|
+
const n = /* @__PURE__ */ new Map();
|
|
7
|
+
let s = 0, o, i;
|
|
8
|
+
for (const c of e.split(/\n/g)) {
|
|
9
|
+
if (!c) continue;
|
|
10
|
+
let f, a, l, p, r;
|
|
11
|
+
const y = c.match(b);
|
|
12
|
+
if (y === null) s = 0, o = "";
|
|
13
|
+
else {
|
|
14
|
+
if (f = y[0].length, a = y[1] ? d : h, t && a === d && f === 1) continue;
|
|
15
|
+
a !== o && (s = 0), o = a, l = 1, p = 0;
|
|
16
|
+
const u = f - s;
|
|
17
|
+
if (s = f, u === 0) l = 0, p = 1;
|
|
18
|
+
else {
|
|
19
|
+
const I = u > 0 ? u : -u;
|
|
20
|
+
i = T(a, I);
|
|
21
|
+
}
|
|
22
|
+
r = n.get(i), r = r === void 0 ? [1, 0] : [r[0] + l, r[1] + p], n.set(i, r);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return n;
|
|
26
|
+
}
|
|
27
|
+
function T(e, t) {
|
|
28
|
+
return (e === d ? "s" : "t") + String(t);
|
|
29
|
+
}
|
|
30
|
+
function w(e) {
|
|
31
|
+
const n = e[0] === "s" ? d : h, s = Number(e.slice(1));
|
|
32
|
+
return { type: n, amount: s };
|
|
33
|
+
}
|
|
34
|
+
function E(e) {
|
|
35
|
+
let t, n = 0, s = 0;
|
|
36
|
+
for (const [o, [i, c]] of e) (i > n || i === n && c > s) && (n = i, s = c, t = o);
|
|
37
|
+
return t;
|
|
38
|
+
}
|
|
39
|
+
function S(e, t) {
|
|
40
|
+
return (e === d ? " " : " ").repeat(t);
|
|
41
|
+
}
|
|
42
|
+
function _(e) {
|
|
43
|
+
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
44
|
+
let t = g(e, true);
|
|
45
|
+
t.size === 0 && (t = g(e, false));
|
|
46
|
+
const n = E(t);
|
|
47
|
+
let s, o = 0, i = "";
|
|
48
|
+
return n !== void 0 && ({ type: s, amount: o } = w(n), i = S(s, o)), { amount: o, type: s, indent: i };
|
|
49
|
+
}
|
|
50
|
+
var m = /* @__PURE__ */ Symbol.for("__confbox_fmt__");
|
|
51
|
+
var k = /^(\s+)/;
|
|
52
|
+
var v = /(\s+)$/;
|
|
53
|
+
function x(e, t = {}) {
|
|
54
|
+
const n = t.indent === void 0 && t.preserveIndentation !== false && e.slice(0, t?.sampleSize || 1024), s = t.preserveWhitespace === false ? void 0 : { start: k.exec(e)?.[0] || "", end: v.exec(e)?.[0] || "" };
|
|
55
|
+
return { sample: n, whiteSpace: s };
|
|
56
|
+
}
|
|
57
|
+
function N(e, t, n) {
|
|
58
|
+
!t || typeof t != "object" || Object.defineProperty(t, m, { enumerable: false, configurable: true, writable: true, value: x(e, n) });
|
|
59
|
+
}
|
|
60
|
+
function C(e, t) {
|
|
61
|
+
if (!e || typeof e != "object" || !(m in e)) return { indent: t?.indent ?? 2, whitespace: { start: "", end: "" } };
|
|
62
|
+
const n = e[m];
|
|
63
|
+
return { indent: t?.indent || _(n.sample || "").indent, whitespace: n.whiteSpace || { start: "", end: "" } };
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { C, N };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { inject, computed } from 'vue';
|
|
2
|
+
import { SsoClient, MemoryStorage } from '@drmhse/sso-sdk';
|
|
3
|
+
|
|
4
|
+
// src/types.ts
|
|
5
|
+
var AUTH_OS_INJECTION_KEY = /* @__PURE__ */ Symbol("authOS");
|
|
6
|
+
function useAuthOS() {
|
|
7
|
+
const context = inject(AUTH_OS_INJECTION_KEY);
|
|
8
|
+
if (!context) {
|
|
9
|
+
const defaultClient = new SsoClient({
|
|
10
|
+
baseURL: "http://localhost:3001",
|
|
11
|
+
storage: new MemoryStorage()
|
|
12
|
+
});
|
|
13
|
+
return {
|
|
14
|
+
client: defaultClient,
|
|
15
|
+
isLoading: computed(() => false),
|
|
16
|
+
isAuthenticated: computed(() => false)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const isLoading = computed(() => context.state.isLoading);
|
|
20
|
+
const isAuthenticated = computed(() => context.state.isAuthenticated);
|
|
21
|
+
return {
|
|
22
|
+
client: context.client,
|
|
23
|
+
isLoading,
|
|
24
|
+
isAuthenticated
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { AUTH_OS_INJECTION_KEY, useAuthOS };
|