@hiai-gg/docsmint 1.0.2 → 1.0.3
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/README.md +3 -3
- package/dist/backend/index.js +139 -103
- package/dist/frontend/{CategoryDialog-B6zqtwE6.js → CategoryDialog-B1yQFy54.js} +4 -4
- package/dist/frontend/{ConfirmDialog-Dk7wwcj9.js → ConfirmDialog-9N3dJGHt.js} +3 -3
- package/dist/frontend/{CreateSnapshotDialog-BPYjO1qN.js → CreateSnapshotDialog-CR5BHpsb.js} +3 -3
- package/dist/frontend/{DatePicker-SiGLx9yh.js → DatePicker-B7p5pH4-.js} +7 -7
- package/dist/frontend/{DeleteDialog-D1jox8h1.js → DeleteDialog-BqR7AQrP.js} +1 -1
- package/dist/frontend/{FolderNode-BG4l6I5C.js → FolderNode-BQcEuZe3.js} +1 -1
- package/dist/frontend/{HiAiEditor-Dxqt8BUN.js → HiAiEditor-BFpfeft6.js} +10 -10
- package/dist/frontend/{SettingsDialog-DnrPV8dM.js → SettingsDialog-eyTOtZcw.js} +13 -13
- package/dist/frontend/{ShareDialog-CmX-VoJ9.js → ShareDialog-gCbk5Rrv.js} +1 -1
- package/dist/frontend/{Sidebar-BI_ccYTl.js → Sidebar-3ridIx_X.js} +13 -13
- package/dist/frontend/{TagCreateDialog-C5j3H49u.js → TagCreateDialog-B0M1gqk6.js} +3 -3
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/app-shell.js +3 -3
- package/dist/frontend/{auth-client-Dc0mkuZH.js → auth-client-DuY45VqK.js} +10 -10
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/compact-editor.js +1 -1
- package/dist/frontend/components/editor/document-editor.js +1 -1
- package/dist/frontend/components/editor/extensions.js +1 -1
- package/dist/frontend/components/editor/markdown-toggle.js +1 -1
- package/dist/frontend/components/editor/markdown.js +1 -1
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +3 -3
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +1 -1
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +2 -2
- package/dist/frontend/dashboard.js +13 -13
- package/dist/frontend/{db-DUOtrCBC.js → db-rWMRdDfv.js} +1 -1
- package/dist/frontend/{dialog-DC97Hnxo.js → dialog-dq74xSum.js} +9 -9
- package/dist/frontend/{dist-D7zL6zdU.js → dist-BUuz1oVW.js} +1 -1
- package/dist/frontend/dist-COPpfjrc.js +316 -0
- package/dist/frontend/{dropdown-menu-COZwS7c0.js → dropdown-menu-ChtRLf5S.js} +12 -12
- package/dist/frontend/{editorExtensions-Cu__YKW7.js → editorExtensions-DPR-CjMu.js} +1 -1
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/{identity-D_rjww-V.js → identity-BCcv0x22.js} +1 -1
- package/dist/frontend/{input-CrlYAH2S.js → input-DTrIztSF.js} +2 -2
- package/dist/frontend/{label-B0syEfns.js → label-BidWF619.js} +2 -2
- package/dist/frontend/{lib-DYgslUw1.js → lib-aUbBbIW2.js} +3357 -3328
- package/dist/frontend/{markdown-Co8ZAKf4.js → markdown-O9YJA70S.js} +2 -2
- package/dist/frontend/offline/identity.js +1 -1
- package/dist/frontend/{popper-layer-force-mount-BAYjg6Pp.js → popper-layer-force-mount-DeBbICF4.js} +63 -63
- package/dist/frontend/search.js +2 -2
- package/dist/frontend/{select-value-D9VqY5n5.js → select-value-BlBmN1Vp.js} +19 -19
- package/dist/frontend/{settings-CW_SR-EH.js → settings-BsuxLoxv.js} +1 -1
- package/dist/frontend/{share-context-DooXPYKd.js → share-context-CX9pmtDz.js} +3 -3
- package/dist/frontend/{textarea-l_gRXsrH.js → textarea-704DccHJ.js} +2 -2
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/{theme.svelte-gLPpG6eU.js → theme.svelte-B6hsI5me.js} +2 -2
- package/dist/frontend/{utils-B4LKx7VS.js → utils-j7qLkF4C.js} +1 -1
- package/dist/frontend-ssr/api/settings.js +1 -1
- package/dist/frontend-ssr/app-shell.js +3 -3
- package/dist/frontend-ssr/assets/{CategoryDialog-C41IBNWG.js → CategoryDialog-Ch4RlhLg.js} +4 -4
- package/dist/frontend-ssr/assets/{ConfirmDialog-CWO0HBaS.js → ConfirmDialog-B9sc7xt5.js} +3 -3
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-CECCRK0d.js → CreateSnapshotDialog-XLsNLzRf.js} +3 -3
- package/dist/frontend-ssr/assets/{DatePicker-CCylVH0q.js → DatePicker-BwLyP3b_.js} +3 -3
- package/dist/frontend-ssr/assets/{DeleteDialog-BVnmzR2e.js → DeleteDialog-C0a-RBKC.js} +1 -1
- package/dist/frontend-ssr/assets/{FolderNode-CscMQ9sf.js → FolderNode-imYW-MNe.js} +1 -1
- package/dist/frontend-ssr/assets/{HiAiEditor-D-FYXUht.js → HiAiEditor-CXq29oHf.js} +5 -5
- package/dist/frontend-ssr/assets/{SettingsDialog-BaI2MU5d.js → SettingsDialog-CH5B9IOK.js} +13 -13
- package/dist/frontend-ssr/assets/{ShareDialog-DHPbSHZg.js → ShareDialog-CcKZFHo8.js} +1 -1
- package/dist/frontend-ssr/assets/{Sidebar-BpTS2uCa.js → Sidebar-DQcwbR0y.js} +13 -13
- package/dist/frontend-ssr/assets/{TagCreateDialog-CPg-nG0D.js → TagCreateDialog-DCz6I-FH.js} +3 -3
- package/dist/frontend-ssr/assets/{auth-client-Bo5Fg-sb.js → auth-client-CokKgEB-.js} +13 -13
- package/dist/frontend-ssr/assets/{db-DUKz2X3Z.js → db-BxaCyM9B.js} +1 -1
- package/dist/frontend-ssr/assets/{dialog--tDgDGw9.js → dialog-Bjm7PhCc.js} +9 -9
- package/dist/frontend-ssr/assets/{dist-DqeAICTy.js → dist-71eunluk.js} +6 -6
- package/dist/frontend-ssr/assets/{dropdown-menu--acO7nXs.js → dropdown-menu-dg8hpDGz.js} +12 -12
- package/dist/frontend-ssr/assets/{identity-_M3U9lqe.js → identity-BHNrcgU5.js} +1 -1
- package/dist/frontend-ssr/assets/{input-BlAj7LzC.js → input-BzlpgSwc.js} +2 -2
- package/dist/frontend-ssr/assets/{label-BRToaMg9.js → label-uycYYCYF.js} +2 -2
- package/dist/frontend-ssr/assets/{popper-layer-force-mount-Djnq7l7a.js → popper-layer-force-mount-X3deg3KH.js} +71 -71
- package/dist/frontend-ssr/assets/{select-value-BCWSsoTd.js → select-value-BRQxTiFP.js} +18 -18
- package/dist/frontend-ssr/assets/{settings-DaOQ4Gv2.js → settings-Dy4eZk45.js} +1 -1
- package/dist/frontend-ssr/assets/{share-context-BvXQrIIH.js → share-context-dIAQ413Z.js} +3 -3
- package/dist/frontend-ssr/assets/{textarea-BuszTo9i.js → textarea-CEUFQIma.js} +2 -2
- package/dist/frontend-ssr/assets/{theme.svelte-CGgnJc3k.js → theme.svelte-dM8TietK.js} +2 -2
- package/dist/frontend-ssr/assets/{utils-BK35BJKQ.js → utils-0rlYZMNr.js} +1 -1
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +3 -3
- package/dist/frontend-ssr/components/settings.js +1 -1
- package/dist/frontend-ssr/components/share-dialog.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +2 -2
- package/dist/frontend-ssr/dashboard.js +18 -18
- package/dist/frontend-ssr/offline/identity.js +1 -1
- package/dist/frontend-ssr/search.js +2 -2
- package/dist/frontend-ssr/theme.js +1 -1
- package/dist/mcp-cli.js +50 -3
- package/dist/mcp-server.js +50 -3
- package/package.json +2 -2
- package/packages/cli/src/index.ts +1 -1
- package/server.json +2 -2
- package/dist/frontend/dist-BLpDfrDC.js +0 -316
package/dist/backend/index.js
CHANGED
|
@@ -79806,7 +79806,7 @@ var init_dist3 = __esm(() => {
|
|
|
79806
79806
|
init_string();
|
|
79807
79807
|
});
|
|
79808
79808
|
|
|
79809
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
79809
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/adapters/kysely-adapter/index.mjs
|
|
79810
79810
|
var exports_kysely_adapter = {};
|
|
79811
79811
|
__export(exports_kysely_adapter, {
|
|
79812
79812
|
createKyselyAdapter: () => createKyselyAdapter,
|
|
@@ -174315,7 +174315,7 @@ init_schema2();
|
|
|
174315
174315
|
|
|
174316
174316
|
// ../../backend/src/lib/auth.ts
|
|
174317
174317
|
init_schema2();
|
|
174318
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
174318
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/utils/wildcard.mjs
|
|
174319
174319
|
function escapeRegExpChar(char3) {
|
|
174320
174320
|
if (char3 === "-" || char3 === "^" || char3 === "$" || char3 === "+" || char3 === "." || char3 === "(" || char3 === ")" || char3 === "|" || char3 === "[" || char3 === "]" || char3 === "{" || char3 === "}" || char3 === "*" || char3 === "?" || char3 === "\\")
|
|
174321
174321
|
return `\\${char3}`;
|
|
@@ -174413,7 +174413,7 @@ function wildcardMatch(pattern, options) {
|
|
|
174413
174413
|
return fn;
|
|
174414
174414
|
}
|
|
174415
174415
|
|
|
174416
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
174416
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/utils/url.mjs
|
|
174417
174417
|
init_env();
|
|
174418
174418
|
init_error2();
|
|
174419
174419
|
var SLASH_CHAR_CODE = 47;
|
|
@@ -174608,7 +174608,7 @@ function resolveBaseURL(config, basePath, source, loadEnv, trustedProxyHeaders)
|
|
|
174608
174608
|
return getBaseURL(undefined, basePath, request, loadEnv, trustedProxyHeaders);
|
|
174609
174609
|
}
|
|
174610
174610
|
|
|
174611
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
174611
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/crypto/random.mjs
|
|
174612
174612
|
init_random();
|
|
174613
174613
|
var generateRandomString = createRandomStringGenerator("a-z", "0-9", "A-Z", "-_");
|
|
174614
174614
|
|
|
@@ -178017,7 +178017,7 @@ function decodeJwt(jwt) {
|
|
|
178017
178017
|
throw new JWTInvalid("Invalid JWT Claims Set");
|
|
178018
178018
|
return result;
|
|
178019
178019
|
}
|
|
178020
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
178020
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/crypto/jwt.mjs
|
|
178021
178021
|
async function signJWT(payload, secret, expiresIn = 3600) {
|
|
178022
178022
|
return await new SignJWT(payload).setProtectedHeader({ alg: "HS256" }).setIssuedAt().setExpirationTime(Math.floor(Date.now() / 1000) + expiresIn).sign(new TextEncoder().encode(secret));
|
|
178023
178023
|
}
|
|
@@ -178202,7 +178202,7 @@ async function verifyPassword(hash2, password) {
|
|
|
178202
178202
|
return targetKey.toString("hex") === key;
|
|
178203
178203
|
}
|
|
178204
178204
|
|
|
178205
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
178205
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/crypto/password.mjs
|
|
178206
178206
|
var hashPassword$1 = hashPassword;
|
|
178207
178207
|
var verifyPassword$1 = async ({ hash: hash2, password }) => {
|
|
178208
178208
|
return verifyPassword(hash2, password);
|
|
@@ -179192,7 +179192,7 @@ var _poly1305_aead = (xorStream) => (key, nonce, AAD2) => {
|
|
|
179192
179192
|
};
|
|
179193
179193
|
var xchacha20poly1305 = /* @__PURE__ */ wrapCipher({ blockSize: 64, nonceLength: 24, tagLength: 16 }, /* @__PURE__ */ _poly1305_aead(xchacha20));
|
|
179194
179194
|
|
|
179195
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
179195
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/crypto/index.mjs
|
|
179196
179196
|
var ENVELOPE_PREFIX = "$ba$";
|
|
179197
179197
|
function parseEnvelope(data) {
|
|
179198
179198
|
if (!data.startsWith(ENVELOPE_PREFIX))
|
|
@@ -179247,7 +179247,7 @@ var symmetricDecrypt = async ({ key, data }) => {
|
|
|
179247
179247
|
throw new Error("Cannot decrypt legacy bare-hex payload: no legacy secret available. Set BETTER_AUTH_SECRET for backwards compatibility.");
|
|
179248
179248
|
};
|
|
179249
179249
|
|
|
179250
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
179250
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/context/store-capabilities.mjs
|
|
179251
179251
|
function hasServerSessionStore(options) {
|
|
179252
179252
|
return !!options.database || !!options.secondaryStorage;
|
|
179253
179253
|
}
|
|
@@ -179313,7 +179313,7 @@ var userSchema = coreSchema.extend({
|
|
|
179313
179313
|
image: string2().nullish()
|
|
179314
179314
|
});
|
|
179315
179315
|
|
|
179316
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
179316
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/db/schema.mjs
|
|
179317
179317
|
init_error2();
|
|
179318
179318
|
|
|
179319
179319
|
// ../../node_modules/.bun/@better-auth+core@1.7.2+da38424592555d4d/node_modules/@better-auth/core/dist/utils/db.mjs
|
|
@@ -179327,7 +179327,7 @@ function filterOutputFields(data, additionalFields) {
|
|
|
179327
179327
|
}), {});
|
|
179328
179328
|
}
|
|
179329
179329
|
|
|
179330
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
179330
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/db/schema.mjs
|
|
179331
179331
|
var cache4 = /* @__PURE__ */ new WeakMap;
|
|
179332
179332
|
function getFields(options, modelName, mode) {
|
|
179333
179333
|
const cacheKey = `${modelName}:${mode}`;
|
|
@@ -179468,17 +179468,17 @@ function getSessionDefaultFields(options) {
|
|
|
179468
179468
|
return defaults;
|
|
179469
179469
|
}
|
|
179470
179470
|
|
|
179471
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
179471
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/utils/date.mjs
|
|
179472
179472
|
var getDate = (span, unit = "ms") => {
|
|
179473
179473
|
return new Date(Date.now() + (unit === "sec" ? span * 1000 : span));
|
|
179474
179474
|
};
|
|
179475
179475
|
|
|
179476
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
179476
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/utils/is-promise.mjs
|
|
179477
179477
|
function isPromise(obj2) {
|
|
179478
179478
|
return !!obj2 && (typeof obj2 === "object" || typeof obj2 === "function") && typeof obj2.then === "function";
|
|
179479
179479
|
}
|
|
179480
179480
|
|
|
179481
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
179481
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/utils/time.mjs
|
|
179482
179482
|
var SEC = 1000;
|
|
179483
179483
|
var MIN = SEC * 60;
|
|
179484
179484
|
var HOUR = MIN * 60;
|
|
@@ -179549,7 +179549,7 @@ function sec(value) {
|
|
|
179549
179549
|
return Math.round(parse9(value) / 1000);
|
|
179550
179550
|
}
|
|
179551
179551
|
|
|
179552
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
179552
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/cookies/cache.mjs
|
|
179553
179553
|
init_env();
|
|
179554
179554
|
init_json2();
|
|
179555
179555
|
init_zod();
|
|
@@ -179582,7 +179582,7 @@ function parseCompactCookieCache(value) {
|
|
|
179582
179582
|
return result.success ? result.data : null;
|
|
179583
179583
|
}
|
|
179584
179584
|
|
|
179585
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
179585
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/cookies/cookie-utils.mjs
|
|
179586
179586
|
function tryDecode(str) {
|
|
179587
179587
|
if (str.indexOf("%") === -1)
|
|
179588
179588
|
return str;
|
|
@@ -179664,7 +179664,7 @@ function parseCookies(cookie) {
|
|
|
179664
179664
|
return cookieMap;
|
|
179665
179665
|
}
|
|
179666
179666
|
|
|
179667
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
179667
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/cookies/session-store.mjs
|
|
179668
179668
|
init_json2();
|
|
179669
179669
|
|
|
179670
179670
|
// ../../node_modules/.bun/better-call@1.4.0+68a1e3a0c4588df3/node_modules/better-call/dist/index.mjs
|
|
@@ -181159,7 +181159,7 @@ var createRouter$1 = (endpoints, config3) => {
|
|
|
181159
181159
|
};
|
|
181160
181160
|
};
|
|
181161
181161
|
|
|
181162
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
181162
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/cookies/session-store.mjs
|
|
181163
181163
|
init_zod();
|
|
181164
181164
|
var MAX_COOKIE_SIZE = 4050;
|
|
181165
181165
|
var MAX_COOKIE_CHUNKS = 100;
|
|
@@ -181301,7 +181301,7 @@ var getSessionQuerySchema = optional(object({
|
|
|
181301
181301
|
disableRefresh: exports_coerce.boolean().meta({ description: "Disable session refresh. Useful for checking session status, without updating the session" }).optional()
|
|
181302
181302
|
}));
|
|
181303
181303
|
|
|
181304
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
181304
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/cookies/index.mjs
|
|
181305
181305
|
init_env();
|
|
181306
181306
|
init_error2();
|
|
181307
181307
|
init_json2();
|
|
@@ -181395,7 +181395,7 @@ var createHMAC = (algorithm2 = "SHA-256", encoding = "none") => {
|
|
|
181395
181395
|
return hmac3;
|
|
181396
181396
|
};
|
|
181397
181397
|
|
|
181398
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
181398
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/cookies/index.mjs
|
|
181399
181399
|
function createCookieGetter(options) {
|
|
181400
181400
|
const baseURLString = typeof options.baseURL === "string" ? options.baseURL : undefined;
|
|
181401
181401
|
const dynamicProtocol = typeof options.baseURL === "object" && options.baseURL !== null ? options.baseURL.protocol : undefined;
|
|
@@ -181626,7 +181626,7 @@ function deleteSessionCookie(ctx, skipDontRememberMe) {
|
|
|
181626
181626
|
expireCookie(ctx, ctx.context.authCookies.dontRememberToken);
|
|
181627
181627
|
}
|
|
181628
181628
|
|
|
181629
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
181629
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/state.mjs
|
|
181630
181630
|
init_error2();
|
|
181631
181631
|
init_zod();
|
|
181632
181632
|
var stateDataSchema = looseObject({
|
|
@@ -181792,7 +181792,7 @@ function appendQueryParams(input, params) {
|
|
|
181792
181792
|
return relative ? parsedURL.href.slice(parsedURL.origin.length) : parsedURL.href;
|
|
181793
181793
|
}
|
|
181794
181794
|
|
|
181795
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
181795
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/oauth2/errors.mjs
|
|
181796
181796
|
var OAUTH_CALLBACK_ERROR_CODES = {
|
|
181797
181797
|
NO_CODE: "no_code",
|
|
181798
181798
|
PROVIDER_NOT_FOUND: "oauth_provider_not_found",
|
|
@@ -182024,11 +182024,11 @@ var queueAfterTransactionHook = async (hook, options) => {
|
|
|
182024
182024
|
store.pendingHooks.push(executeHook);
|
|
182025
182025
|
};
|
|
182026
182026
|
|
|
182027
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
182027
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/state/oauth.mjs
|
|
182028
182028
|
var { get: getRawOAuthState, set: setOAuthState } = defineRequestState(() => null);
|
|
182029
182029
|
var { get: getOAuthServerContext, set: setOAuthServerContext } = defineRequestState(() => null);
|
|
182030
182030
|
|
|
182031
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
182031
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/oauth2/state.mjs
|
|
182032
182032
|
init_error2();
|
|
182033
182033
|
function generateIdTokenNonce(provider) {
|
|
182034
182034
|
return provider.requiresIdTokenNonce ? generateRandomString(32) : undefined;
|
|
@@ -182086,7 +182086,7 @@ async function parseState(c3) {
|
|
|
182086
182086
|
return parsedData;
|
|
182087
182087
|
}
|
|
182088
182088
|
|
|
182089
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
182089
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/utils/hide-metadata.mjs
|
|
182090
182090
|
var HIDE_METADATA = { scope: "server" };
|
|
182091
182091
|
|
|
182092
182092
|
// ../../node_modules/.bun/@better-auth+core@1.7.2+da38424592555d4d/node_modules/@better-auth/core/dist/utils/is-api-error.mjs
|
|
@@ -182150,7 +182150,7 @@ function withServerOnly(options) {
|
|
|
182150
182150
|
}
|
|
182151
182151
|
createAuthEndpoint.serverOnly = (options, handler) => createAuthEndpoint(withServerOnly(options), handler);
|
|
182152
182152
|
|
|
182153
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
182153
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/auth/trusted-origins.mjs
|
|
182154
182154
|
var normalizePath2 = (path) => {
|
|
182155
182155
|
let decoded = path;
|
|
182156
182156
|
try {
|
|
@@ -182230,7 +182230,7 @@ var matchesOriginPattern = (url2, pattern, settings) => {
|
|
|
182230
182230
|
return parsed.path === parsedPattern.path || parsed.path.startsWith(`${parsedPattern.path}/`);
|
|
182231
182231
|
};
|
|
182232
182232
|
|
|
182233
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
182233
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/middlewares/origin-check.mjs
|
|
182234
182234
|
init_error2();
|
|
182235
182235
|
|
|
182236
182236
|
// ../../node_modules/.bun/@better-auth+core@1.7.2+da38424592555d4d/node_modules/@better-auth/core/dist/utils/deprecate.mjs
|
|
@@ -182245,7 +182245,7 @@ function deprecate(fn, message2, logger3) {
|
|
|
182245
182245
|
};
|
|
182246
182246
|
}
|
|
182247
182247
|
|
|
182248
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
182248
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/middlewares/origin-check.mjs
|
|
182249
182249
|
function shouldSkipCSRFForBackwardCompat(ctx) {
|
|
182250
182250
|
return ctx.context.skipOriginCheck === true && ctx.context.options.advanced?.disableCSRFCheck === undefined;
|
|
182251
182251
|
}
|
|
@@ -182396,7 +182396,7 @@ async function validateFormCsrf(ctx) {
|
|
|
182396
182396
|
return await validateOrigin(ctx, true);
|
|
182397
182397
|
}
|
|
182398
182398
|
|
|
182399
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
182399
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/rate-limiter/index.mjs
|
|
182400
182400
|
init_error2();
|
|
182401
182401
|
|
|
182402
182402
|
// ../../node_modules/.bun/@better-auth+core@1.7.2+da38424592555d4d/node_modules/@better-auth/core/dist/utils/ip.mjs
|
|
@@ -182579,7 +182579,7 @@ function createRateLimitKey(ip, path) {
|
|
|
182579
182579
|
return `${ip}|${path}`;
|
|
182580
182580
|
}
|
|
182581
182581
|
|
|
182582
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
182582
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/rate-limiter/index.mjs
|
|
182583
182583
|
var memory = /* @__PURE__ */ new Map;
|
|
182584
182584
|
var MEMORY_STORE_MAX_ENTRIES = 1e5;
|
|
182585
182585
|
function pruneMemoryStore() {
|
|
@@ -182911,10 +182911,10 @@ function getDefaultSpecialRules() {
|
|
|
182911
182911
|
}];
|
|
182912
182912
|
}
|
|
182913
182913
|
|
|
182914
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
182914
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/state/should-session-refresh.mjs
|
|
182915
182915
|
var { get: getShouldSkipSessionRefresh, set: setShouldSkipSessionRefresh } = defineRequestState(() => false);
|
|
182916
182916
|
|
|
182917
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
182917
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/session.mjs
|
|
182918
182918
|
init_error2();
|
|
182919
182919
|
init_zod();
|
|
182920
182920
|
var getSession = () => createAuthEndpoint("/get-session", {
|
|
@@ -183337,7 +183337,7 @@ var revokeOtherSessions = createAuthEndpoint("/revoke-other-sessions", {
|
|
|
183337
183337
|
return ctx.json({ status: true });
|
|
183338
183338
|
});
|
|
183339
183339
|
|
|
183340
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
183340
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/utils/validate-user-info.mjs
|
|
183341
183341
|
init_error2();
|
|
183342
183342
|
function assertValidUserInfoSource(source) {
|
|
183343
183343
|
if (!source?.method)
|
|
@@ -183378,7 +183378,7 @@ async function assertValidUserInfo(ctx, data) {
|
|
|
183378
183378
|
});
|
|
183379
183379
|
}
|
|
183380
183380
|
|
|
183381
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
183381
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/db/verification-token-storage.mjs
|
|
183382
183382
|
var defaultKeyHasher = async (identifier) => {
|
|
183383
183383
|
const hash3 = await createHash4("SHA-256").digest(new TextEncoder().encode(identifier));
|
|
183384
183384
|
return base64Url.encode(new Uint8Array(hash3), { padding: false });
|
|
@@ -183406,7 +183406,7 @@ function getStorageOption(identifier, config3) {
|
|
|
183406
183406
|
return config3;
|
|
183407
183407
|
}
|
|
183408
183408
|
|
|
183409
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
183409
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/db/with-hooks.mjs
|
|
183410
183410
|
init_instrumentation();
|
|
183411
183411
|
function getWithHooks(adapter, ctx) {
|
|
183412
183412
|
const hooksEntries = ctx.hooks;
|
|
@@ -183666,7 +183666,7 @@ function getWithHooks(adapter, ctx) {
|
|
|
183666
183666
|
};
|
|
183667
183667
|
}
|
|
183668
183668
|
|
|
183669
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
183669
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/db/internal-adapter.mjs
|
|
183670
183670
|
init_error2();
|
|
183671
183671
|
init_id2();
|
|
183672
183672
|
init_json2();
|
|
@@ -184607,7 +184607,7 @@ var createInternalAdapter = (adapter, ctx) => {
|
|
|
184607
184607
|
};
|
|
184608
184608
|
};
|
|
184609
184609
|
|
|
184610
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
184610
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/context/helpers.mjs
|
|
184611
184611
|
init_env();
|
|
184612
184612
|
init_error2();
|
|
184613
184613
|
|
|
@@ -184869,7 +184869,7 @@ function isLoopbackHost(host) {
|
|
|
184869
184869
|
return kind === "loopback" || kind === "localhost";
|
|
184870
184870
|
}
|
|
184871
184871
|
|
|
184872
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
184872
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/context/helpers.mjs
|
|
184873
184873
|
async function runPluginInit(context) {
|
|
184874
184874
|
let options = context.options;
|
|
184875
184875
|
const plugins = options.plugins || [];
|
|
@@ -185029,7 +185029,7 @@ async function getTrustedProviders(options, request) {
|
|
|
185029
185029
|
return (await trustedProviders(request) ?? []).filter((v2) => Boolean(v2));
|
|
185030
185030
|
}
|
|
185031
185031
|
|
|
185032
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
185032
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/oauth2/account-key.mjs
|
|
185033
185033
|
init_error2();
|
|
185034
185034
|
function toOAuthProfileRecord(profile) {
|
|
185035
185035
|
return profile;
|
|
@@ -185061,7 +185061,7 @@ async function resolveOAuthAccountKeyForAPI(provider, tokens, profile) {
|
|
|
185061
185061
|
}
|
|
185062
185062
|
}
|
|
185063
185063
|
|
|
185064
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
185064
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/oauth2/utils.mjs
|
|
185065
185065
|
function isLikelyEncrypted(token) {
|
|
185066
185066
|
if (token.startsWith("$ba$"))
|
|
185067
185067
|
return true;
|
|
@@ -185094,7 +185094,7 @@ function getOAuthCallbackPath(provider) {
|
|
|
185094
185094
|
return provider.callbackPath.startsWith("/") ? provider.callbackPath : `/${provider.callbackPath}`;
|
|
185095
185095
|
}
|
|
185096
185096
|
|
|
185097
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
185097
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/utils/request.mjs
|
|
185098
185098
|
function safeCloneRequest(request) {
|
|
185099
185099
|
if (!request)
|
|
185100
185100
|
return;
|
|
@@ -185117,7 +185117,7 @@ function safeCloneRequest(request) {
|
|
|
185117
185117
|
}
|
|
185118
185118
|
}
|
|
185119
185119
|
|
|
185120
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
185120
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/email-verification.mjs
|
|
185121
185121
|
init_error2();
|
|
185122
185122
|
init_zod();
|
|
185123
185123
|
async function createEmailVerificationToken(secret, email3, updateTo, expiresIn = 3600, extraPayload) {
|
|
@@ -185432,7 +185432,7 @@ var verifyEmail = createAuthEndpoint("/verify-email", {
|
|
|
185432
185432
|
});
|
|
185433
185433
|
});
|
|
185434
185434
|
|
|
185435
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
185435
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/oauth2/link-account.mjs
|
|
185436
185436
|
init_env();
|
|
185437
185437
|
init_error2();
|
|
185438
185438
|
async function handleOAuthUserInfo(c3, opts) {
|
|
@@ -185780,7 +185780,7 @@ async function applyUpdateUserInfoOnLink(c3, userId, userInfo) {
|
|
|
185780
185780
|
}
|
|
185781
185781
|
}
|
|
185782
185782
|
|
|
185783
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
185783
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/account.mjs
|
|
185784
185784
|
init_error2();
|
|
185785
185785
|
|
|
185786
185786
|
// ../../node_modules/.bun/@better-auth+core@1.7.2+da38424592555d4d/node_modules/@better-auth/core/dist/oauth2/utils.mjs
|
|
@@ -189854,7 +189854,7 @@ var socialProviders = {
|
|
|
189854
189854
|
var socialProviderList = Object.keys(socialProviders);
|
|
189855
189855
|
var SocialProviderListEnum = _enum2(socialProviderList).or(string2());
|
|
189856
189856
|
|
|
189857
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
189857
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/account.mjs
|
|
189858
189858
|
init_zod();
|
|
189859
189859
|
function parseStoredScopes(scope) {
|
|
189860
189860
|
if (!scope)
|
|
@@ -190417,7 +190417,7 @@ var accountInfo = createAuthEndpoint("/account-info", {
|
|
|
190417
190417
|
});
|
|
190418
190418
|
});
|
|
190419
190419
|
|
|
190420
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
190420
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/callback.mjs
|
|
190421
190421
|
init_json2();
|
|
190422
190422
|
init_zod();
|
|
190423
190423
|
var schema3 = object({
|
|
@@ -190675,7 +190675,7 @@ var callbackOAuth = createAuthEndpoint("/callback/:id", {
|
|
|
190675
190675
|
throw c3.redirect(toRedirectTo);
|
|
190676
190676
|
});
|
|
190677
190677
|
|
|
190678
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
190678
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/error.mjs
|
|
190679
190679
|
init_env();
|
|
190680
190680
|
function sanitize2(input) {
|
|
190681
190681
|
return input.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/&(?!amp;|lt;|gt;|quot;|#39;|#x[0-9a-fA-F]+;|#[0-9]+;)/g, "&");
|
|
@@ -191060,7 +191060,7 @@ var error51 = createAuthEndpoint("/error", {
|
|
|
191060
191060
|
return new Response(html(c3.context.options, safeCode, safeDescription), { headers: { "Content-Type": "text/html" } });
|
|
191061
191061
|
});
|
|
191062
191062
|
|
|
191063
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
191063
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/ok.mjs
|
|
191064
191064
|
var ok = createAuthEndpoint("/ok", {
|
|
191065
191065
|
method: "GET",
|
|
191066
191066
|
metadata: {
|
|
@@ -191084,7 +191084,7 @@ var ok = createAuthEndpoint("/ok", {
|
|
|
191084
191084
|
return ctx.json({ ok: true });
|
|
191085
191085
|
});
|
|
191086
191086
|
|
|
191087
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
191087
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/utils/password.mjs
|
|
191088
191088
|
init_error2();
|
|
191089
191089
|
async function validatePassword(ctx, data) {
|
|
191090
191090
|
const credentialAccount = await ctx.context.internalAdapter.findCredentialAccount(data.userId);
|
|
@@ -191113,7 +191113,7 @@ async function checkPassword(userId, c3) {
|
|
|
191113
191113
|
return true;
|
|
191114
191114
|
}
|
|
191115
191115
|
|
|
191116
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
191116
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/password.mjs
|
|
191117
191117
|
init_error2();
|
|
191118
191118
|
init_id2();
|
|
191119
191119
|
init_zod();
|
|
@@ -191313,7 +191313,7 @@ var verifyPassword2 = createAuthEndpoint("/verify-password", {
|
|
|
191313
191313
|
return ctx.json({ status: true });
|
|
191314
191314
|
});
|
|
191315
191315
|
|
|
191316
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
191316
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/sign-in.mjs
|
|
191317
191317
|
init_error2();
|
|
191318
191318
|
init_zod();
|
|
191319
191319
|
var socialSignInBodySchema = object({
|
|
@@ -191587,7 +191587,7 @@ var signInEmail = () => createAuthEndpoint("/sign-in/email", {
|
|
|
191587
191587
|
});
|
|
191588
191588
|
});
|
|
191589
191589
|
|
|
191590
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
191590
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/sign-out.mjs
|
|
191591
191591
|
init_zod();
|
|
191592
191592
|
var signOutBodySchema = object({
|
|
191593
191593
|
callbackURL: string2().meta({ description: "The URL to redirect to after provider logout" }).optional(),
|
|
@@ -191687,7 +191687,7 @@ var signOut = createAuthEndpoint("/sign-out", {
|
|
|
191687
191687
|
return ctx.json(signOutResponse());
|
|
191688
191688
|
});
|
|
191689
191689
|
|
|
191690
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
191690
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/sign-up.mjs
|
|
191691
191691
|
init_env();
|
|
191692
191692
|
init_error2();
|
|
191693
191693
|
init_id2();
|
|
@@ -191956,7 +191956,7 @@ var signUpEmail = () => createAuthEndpoint("/sign-up/email", {
|
|
|
191956
191956
|
});
|
|
191957
191957
|
});
|
|
191958
191958
|
|
|
191959
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
191959
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/update-session.mjs
|
|
191960
191960
|
init_error2();
|
|
191961
191961
|
init_zod();
|
|
191962
191962
|
var updateSessionBodySchema = record(string2().meta({ description: "Field name must be a string" }), any());
|
|
@@ -192010,7 +192010,7 @@ var updateSession = () => createAuthEndpoint("/update-session", {
|
|
|
192010
192010
|
return ctx.json({ session: parseSessionOutput(ctx.context.options, newSession) });
|
|
192011
192011
|
});
|
|
192012
192012
|
|
|
192013
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
192013
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/routes/update-user.mjs
|
|
192014
192014
|
init_error2();
|
|
192015
192015
|
init_zod();
|
|
192016
192016
|
var updateUserBodySchema = record(string2().meta({ description: "Field name must be a string" }), any());
|
|
@@ -192503,7 +192503,7 @@ var changeEmail = createAuthEndpoint("/change-email", {
|
|
|
192503
192503
|
return ctx.json({ status: true });
|
|
192504
192504
|
});
|
|
192505
192505
|
|
|
192506
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
192506
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/dispatch.mjs
|
|
192507
192507
|
init_env();
|
|
192508
192508
|
init_error2();
|
|
192509
192509
|
init_instrumentation();
|
|
@@ -192757,7 +192757,7 @@ async function dispatchAuthEndpoint(endpoint, input) {
|
|
|
192757
192757
|
}));
|
|
192758
192758
|
}
|
|
192759
192759
|
|
|
192760
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
192760
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/to-auth-endpoints.mjs
|
|
192761
192761
|
init_error2();
|
|
192762
192762
|
async function resolveDynamicContext(rawCtx, input) {
|
|
192763
192763
|
if (rawCtx.baseURL)
|
|
@@ -192800,7 +192800,7 @@ function toAuthEndpoints(endpoints, ctx) {
|
|
|
192800
192800
|
return api2;
|
|
192801
192801
|
}
|
|
192802
192802
|
|
|
192803
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
192803
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/api/index.mjs
|
|
192804
192804
|
init_env();
|
|
192805
192805
|
init_error2();
|
|
192806
192806
|
init_instrumentation();
|
|
@@ -193016,7 +193016,7 @@ var router = (ctx, options) => {
|
|
|
193016
193016
|
});
|
|
193017
193017
|
};
|
|
193018
193018
|
|
|
193019
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
193019
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/db/adapter-base.mjs
|
|
193020
193020
|
init_env();
|
|
193021
193021
|
async function getBaseAdapter(options, handleDirectDatabase) {
|
|
193022
193022
|
let adapter;
|
|
@@ -193041,7 +193041,7 @@ async function getBaseAdapter(options, handleDirectDatabase) {
|
|
|
193041
193041
|
return adapter;
|
|
193042
193042
|
}
|
|
193043
193043
|
|
|
193044
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
193044
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/db/adapter-kysely.mjs
|
|
193045
193045
|
init_error2();
|
|
193046
193046
|
async function getAdapter(options) {
|
|
193047
193047
|
return getBaseAdapter(options, async (opts) => {
|
|
@@ -193062,7 +193062,7 @@ async function getAdapter(options) {
|
|
|
193062
193062
|
init_database_index();
|
|
193063
193063
|
init_get_tables();
|
|
193064
193064
|
|
|
193065
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
193065
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/db/get-schema.mjs
|
|
193066
193066
|
function getSchema(config3) {
|
|
193067
193067
|
const { indexesByTable, tables } = getAuthTablesWithResolvedIndexes(config3);
|
|
193068
193068
|
const schema4 = {};
|
|
@@ -193103,7 +193103,7 @@ function getSchema(config3) {
|
|
|
193103
193103
|
return schema4;
|
|
193104
193104
|
}
|
|
193105
193105
|
|
|
193106
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
193106
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/db/get-migration.mjs
|
|
193107
193107
|
init_env();
|
|
193108
193108
|
init_error2();
|
|
193109
193109
|
init_dist3();
|
|
@@ -193826,10 +193826,10 @@ async function getMigrations(config3, { throwOnUnsafe = true } = {}) {
|
|
|
193826
193826
|
};
|
|
193827
193827
|
}
|
|
193828
193828
|
|
|
193829
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
193829
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/utils/constants.mjs
|
|
193830
193830
|
var DEFAULT_SECRET = "better-auth-secret-12345678901234567890";
|
|
193831
193831
|
|
|
193832
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
193832
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/context/secret-utils.mjs
|
|
193833
193833
|
init_error2();
|
|
193834
193834
|
function estimateEntropy(str) {
|
|
193835
193835
|
const unique = new Set(str).size;
|
|
@@ -193888,7 +193888,7 @@ function buildSecretConfig(secrets, legacySecret) {
|
|
|
193888
193888
|
};
|
|
193889
193889
|
}
|
|
193890
193890
|
|
|
193891
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
193891
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/context/create-context.mjs
|
|
193892
193892
|
init_env();
|
|
193893
193893
|
init_error2();
|
|
193894
193894
|
init_id2();
|
|
@@ -194394,7 +194394,7 @@ async function createTelemetry(options, context) {
|
|
|
194394
194394
|
} };
|
|
194395
194395
|
}
|
|
194396
194396
|
|
|
194397
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
194397
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/context/create-context.mjs
|
|
194398
194398
|
function estimateEntropy2(str) {
|
|
194399
194399
|
const unique = new Set(str).size;
|
|
194400
194400
|
if (unique === 0)
|
|
@@ -194619,7 +194619,7 @@ Most of the features of Better Auth will not work correctly.`);
|
|
|
194619
194619
|
return ctx;
|
|
194620
194620
|
}
|
|
194621
194621
|
|
|
194622
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
194622
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/context/init.mjs
|
|
194623
194623
|
init_error2();
|
|
194624
194624
|
init_dist3();
|
|
194625
194625
|
var init = async (options) => {
|
|
@@ -194635,7 +194635,7 @@ var init = async (options) => {
|
|
|
194635
194635
|
return ctx;
|
|
194636
194636
|
};
|
|
194637
194637
|
|
|
194638
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
194638
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/auth/base.mjs
|
|
194639
194639
|
init_error2();
|
|
194640
194640
|
var createBetterAuth = (options, initFn) => {
|
|
194641
194641
|
const authContext = initFn(options);
|
|
@@ -194687,12 +194687,12 @@ var createBetterAuth = (options, initFn) => {
|
|
|
194687
194687
|
};
|
|
194688
194688
|
};
|
|
194689
194689
|
|
|
194690
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
194690
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/auth/full.mjs
|
|
194691
194691
|
var betterAuth = (options) => {
|
|
194692
194692
|
return createBetterAuth(options, init);
|
|
194693
194693
|
};
|
|
194694
194694
|
|
|
194695
|
-
// ../../node_modules/.bun/better-auth@1.7.2+
|
|
194695
|
+
// ../../node_modules/.bun/better-auth@1.7.2+9dbd6f9bb0daf794/node_modules/better-auth/dist/index.mjs
|
|
194696
194696
|
init_env();
|
|
194697
194697
|
init_error2();
|
|
194698
194698
|
init_error_codes();
|
|
@@ -212314,7 +212314,7 @@ function sinkListItem(itemType) {
|
|
|
212314
212314
|
return true;
|
|
212315
212315
|
};
|
|
212316
212316
|
}
|
|
212317
|
-
// ../../node_modules/.bun/prosemirror-view@1.
|
|
212317
|
+
// ../../node_modules/.bun/prosemirror-view@1.42.3/node_modules/prosemirror-view/dist/index.js
|
|
212318
212318
|
var domIndex = function(node) {
|
|
212319
212319
|
for (var index2 = 0;; index2++) {
|
|
212320
212320
|
node = node.previousSibling;
|
|
@@ -212504,6 +212504,8 @@ function clientRect(node) {
|
|
|
212504
212504
|
};
|
|
212505
212505
|
}
|
|
212506
212506
|
function scrollRectIntoView(view2, rect, startDOM) {
|
|
212507
|
+
if (!nonZero(rect) && rect.left == 0)
|
|
212508
|
+
return;
|
|
212507
212509
|
let scrollThreshold = view2.someProp("scrollThreshold") || 0, scrollMargin = view2.someProp("scrollMargin") || 5;
|
|
212508
212510
|
let doc5 = view2.dom.ownerDocument;
|
|
212509
212511
|
for (let parent2 = startDOM || view2.dom;; ) {
|
|
@@ -212967,7 +212969,7 @@ class ViewDesc {
|
|
|
212967
212969
|
matchesHack(nodeName) {
|
|
212968
212970
|
return false;
|
|
212969
212971
|
}
|
|
212970
|
-
parseRule() {
|
|
212972
|
+
parseRule(addedNodes) {
|
|
212971
212973
|
return null;
|
|
212972
212974
|
}
|
|
212973
212975
|
stopEvent(event) {
|
|
@@ -213326,7 +213328,8 @@ class WidgetViewDesc extends ViewDesc {
|
|
|
213326
213328
|
wrap5.appendChild(dom);
|
|
213327
213329
|
dom = wrap5;
|
|
213328
213330
|
}
|
|
213329
|
-
dom.
|
|
213331
|
+
if (!dom.hasAttribute("contenteditable"))
|
|
213332
|
+
dom.contentEditable = "false";
|
|
213330
213333
|
dom.classList.add("ProseMirror-widget");
|
|
213331
213334
|
}
|
|
213332
213335
|
super(parent2, [], dom, null);
|
|
@@ -213439,7 +213442,7 @@ class MarkViewDesc extends ViewDesc {
|
|
|
213439
213442
|
}
|
|
213440
213443
|
|
|
213441
213444
|
class NodeViewDesc extends ViewDesc {
|
|
213442
|
-
constructor(parent2, node, outerDeco, innerDeco, dom, contentDOM, nodeDOM
|
|
213445
|
+
constructor(parent2, node, outerDeco, innerDeco, dom, contentDOM, nodeDOM) {
|
|
213443
213446
|
super(parent2, [], dom, contentDOM);
|
|
213444
213447
|
this.node = node;
|
|
213445
213448
|
this.outerDeco = outerDeco;
|
|
@@ -213473,13 +213476,13 @@ class NodeViewDesc extends ViewDesc {
|
|
|
213473
213476
|
let nodeDOM = dom;
|
|
213474
213477
|
dom = applyOuterDeco(dom, outerDeco, node);
|
|
213475
213478
|
if (spec)
|
|
213476
|
-
return descObj = new CustomNodeViewDesc(parent2, node, outerDeco, innerDeco, dom, contentDOM || null, nodeDOM, spec
|
|
213479
|
+
return descObj = new CustomNodeViewDesc(parent2, node, outerDeco, innerDeco, dom, contentDOM || null, nodeDOM, spec);
|
|
213477
213480
|
else if (node.isText)
|
|
213478
|
-
return new TextViewDesc(parent2, node, outerDeco, innerDeco, dom, nodeDOM
|
|
213481
|
+
return new TextViewDesc(parent2, node, outerDeco, innerDeco, dom, nodeDOM);
|
|
213479
213482
|
else
|
|
213480
|
-
return new NodeViewDesc(parent2, node, outerDeco, innerDeco, dom, contentDOM || null, nodeDOM
|
|
213483
|
+
return new NodeViewDesc(parent2, node, outerDeco, innerDeco, dom, contentDOM || null, nodeDOM);
|
|
213481
213484
|
}
|
|
213482
|
-
parseRule() {
|
|
213485
|
+
parseRule(addedNodes) {
|
|
213483
213486
|
if (this.node.type.spec.reparseInView)
|
|
213484
213487
|
return null;
|
|
213485
213488
|
let rule = { node: this.node.type.name, attrs: this.node.attrs };
|
|
@@ -213497,8 +213500,13 @@ class NodeViewDesc extends ViewDesc {
|
|
|
213497
213500
|
break;
|
|
213498
213501
|
}
|
|
213499
213502
|
}
|
|
213500
|
-
if (!rule.contentElement)
|
|
213501
|
-
|
|
213503
|
+
if (!rule.contentElement) {
|
|
213504
|
+
let found2 = addedNodes && addedNodes.find((n3) => n3.nodeType == 1 && addedNodes.indexOf(n3.parentNode) < 0 && this.dom.contains(n3));
|
|
213505
|
+
if (found2)
|
|
213506
|
+
rule.contentElement = found2;
|
|
213507
|
+
else
|
|
213508
|
+
rule.getContent = () => Fragment.empty;
|
|
213509
|
+
}
|
|
213502
213510
|
}
|
|
213503
213511
|
return rule;
|
|
213504
213512
|
}
|
|
@@ -213628,15 +213636,15 @@ class NodeViewDesc extends ViewDesc {
|
|
|
213628
213636
|
}
|
|
213629
213637
|
function docViewDesc(doc5, outerDeco, innerDeco, dom, view2) {
|
|
213630
213638
|
applyOuterDeco(dom, outerDeco, doc5);
|
|
213631
|
-
let docView = new NodeViewDesc(undefined, doc5, outerDeco, innerDeco, dom, dom, dom
|
|
213639
|
+
let docView = new NodeViewDesc(undefined, doc5, outerDeco, innerDeco, dom, dom, dom);
|
|
213632
213640
|
if (docView.contentDOM)
|
|
213633
213641
|
docView.updateChildren(view2, 0);
|
|
213634
213642
|
return docView;
|
|
213635
213643
|
}
|
|
213636
213644
|
|
|
213637
213645
|
class TextViewDesc extends NodeViewDesc {
|
|
213638
|
-
constructor(parent2, node, outerDeco, innerDeco, dom, nodeDOM
|
|
213639
|
-
super(parent2, node, outerDeco, innerDeco, dom, null, nodeDOM
|
|
213646
|
+
constructor(parent2, node, outerDeco, innerDeco, dom, nodeDOM) {
|
|
213647
|
+
super(parent2, node, outerDeco, innerDeco, dom, null, nodeDOM);
|
|
213640
213648
|
}
|
|
213641
213649
|
parseRule() {
|
|
213642
213650
|
let skip = this.nodeDOM.parentNode;
|
|
@@ -213675,9 +213683,9 @@ class TextViewDesc extends NodeViewDesc {
|
|
|
213675
213683
|
ignoreMutation(mutation) {
|
|
213676
213684
|
return mutation.type != "characterData" && mutation.type != "selection";
|
|
213677
213685
|
}
|
|
213678
|
-
slice(from2, to,
|
|
213686
|
+
slice(from2, to, _view) {
|
|
213679
213687
|
let node = this.node.cut(from2, to), dom = document.createTextNode(node.text);
|
|
213680
|
-
return new TextViewDesc(this.parent, node, this.outerDeco, this.innerDeco, dom, dom
|
|
213688
|
+
return new TextViewDesc(this.parent, node, this.outerDeco, this.innerDeco, dom, dom);
|
|
213681
213689
|
}
|
|
213682
213690
|
markDirty(from2, to) {
|
|
213683
213691
|
super.markDirty(from2, to);
|
|
@@ -213708,8 +213716,8 @@ class TrailingHackViewDesc extends ViewDesc {
|
|
|
213708
213716
|
}
|
|
213709
213717
|
|
|
213710
213718
|
class CustomNodeViewDesc extends NodeViewDesc {
|
|
213711
|
-
constructor(parent2, node, outerDeco, innerDeco, dom, contentDOM, nodeDOM, spec
|
|
213712
|
-
super(parent2, node, outerDeco, innerDeco, dom, contentDOM, nodeDOM
|
|
213719
|
+
constructor(parent2, node, outerDeco, innerDeco, dom, contentDOM, nodeDOM, spec) {
|
|
213720
|
+
super(parent2, node, outerDeco, innerDeco, dom, contentDOM, nodeDOM);
|
|
213713
213721
|
this.spec = spec;
|
|
213714
213722
|
}
|
|
213715
213723
|
update(node, outerDeco, innerDeco, view2) {
|
|
@@ -213919,6 +213927,14 @@ class ViewTreeUpdater {
|
|
|
213919
213927
|
break;
|
|
213920
213928
|
}
|
|
213921
213929
|
}
|
|
213930
|
+
if (found2 < 0 && this.index < this.top.children.length) {
|
|
213931
|
+
let cur = this.top.children[this.index];
|
|
213932
|
+
if (cur instanceof MarkViewDesc && cur.dirty != NODE_DIRTY && cur.mark.type == marks[depth].type && cur.spec.update && !this.isLocked(cur.dom) && cur.spec.update(marks[depth])) {
|
|
213933
|
+
cur.mark = marks[depth];
|
|
213934
|
+
found2 = this.index;
|
|
213935
|
+
this.changed = true;
|
|
213936
|
+
}
|
|
213937
|
+
}
|
|
213922
213938
|
if (found2 > -1) {
|
|
213923
213939
|
if (found2 > this.index) {
|
|
213924
213940
|
this.changed = true;
|
|
@@ -214944,24 +214960,28 @@ var wrapMap = {
|
|
|
214944
214960
|
td: ["table", "tbody", "tr"],
|
|
214945
214961
|
th: ["table", "tbody", "tr"]
|
|
214946
214962
|
};
|
|
214947
|
-
var _detachedDoc = null;
|
|
214948
214963
|
function detachedDoc() {
|
|
214949
|
-
return
|
|
214964
|
+
return document.implementation.createHTMLDocument("title");
|
|
214950
214965
|
}
|
|
214951
214966
|
var _policy = null;
|
|
214952
214967
|
function maybeWrapTrusted(html2) {
|
|
214953
214968
|
let trustedTypes = window.trustedTypes;
|
|
214954
214969
|
if (!trustedTypes)
|
|
214955
214970
|
return html2;
|
|
214956
|
-
if (!_policy)
|
|
214957
|
-
_policy = trustedTypes.defaultPolicy
|
|
214971
|
+
if (!_policy) {
|
|
214972
|
+
if (_policy = trustedTypes.defaultPolicy)
|
|
214973
|
+
try {
|
|
214974
|
+
return _policy.createHTML(html2);
|
|
214975
|
+
} catch (_a8) {}
|
|
214976
|
+
_policy = trustedTypes.createPolicy("ProseMirrorClipboard", { createHTML: (s2) => s2 });
|
|
214977
|
+
}
|
|
214958
214978
|
return _policy.createHTML(html2);
|
|
214959
214979
|
}
|
|
214960
214980
|
function readHTML(html2) {
|
|
214961
214981
|
let metas = /^(\s*<meta [^>]*>)*/.exec(html2);
|
|
214962
214982
|
if (metas)
|
|
214963
214983
|
html2 = html2.slice(metas[0].length);
|
|
214964
|
-
let
|
|
214984
|
+
let doc5 = detachedDoc(), elt = doc5.body;
|
|
214965
214985
|
let firstTag = /<([a-z][^>\s]+)/i.exec(html2), wrap5;
|
|
214966
214986
|
if (wrap5 = firstTag && wrapMap[firstTag[1].toLowerCase()])
|
|
214967
214987
|
html2 = wrap5.map((n3) => "<" + n3 + ">").join("") + html2 + wrap5.map((n3) => "</" + n3 + ">").reverse().join("");
|
|
@@ -214969,6 +214989,17 @@ function readHTML(html2) {
|
|
|
214969
214989
|
if (wrap5)
|
|
214970
214990
|
for (let i3 = 0;i3 < wrap5.length; i3++)
|
|
214971
214991
|
elt = elt.querySelector(wrap5[i3]) || elt;
|
|
214992
|
+
for (let i3 = 0;i3 < doc5.styleSheets.length; i3++) {
|
|
214993
|
+
let style = doc5.styleSheets[i3];
|
|
214994
|
+
for (let j3 = 0;j3 < style.rules.length; j3++) {
|
|
214995
|
+
let rule = style.rules[j3];
|
|
214996
|
+
if (rule instanceof CSSStyleRule) {
|
|
214997
|
+
let matches2 = elt.querySelectorAll(rule.selectorText);
|
|
214998
|
+
for (let k4 = 0;k4 < matches2.length; k4++)
|
|
214999
|
+
matches2[k4].style.cssText += rule.style.cssText;
|
|
215000
|
+
}
|
|
215001
|
+
}
|
|
215002
|
+
}
|
|
214972
215003
|
return elt;
|
|
214973
215004
|
}
|
|
214974
215005
|
function restoreReplacedSpaces(dom) {
|
|
@@ -214993,6 +215024,11 @@ function addContext(slice, context) {
|
|
|
214993
215024
|
let type = schema4.nodes[array3[i3]];
|
|
214994
215025
|
if (!type || type.hasRequiredAttrs())
|
|
214995
215026
|
break;
|
|
215027
|
+
try {
|
|
215028
|
+
type.checkAttrs(array3[i3 + 1]);
|
|
215029
|
+
} catch (e3) {
|
|
215030
|
+
break;
|
|
215031
|
+
}
|
|
214996
215032
|
content50 = Fragment.from(type.create(array3[i3 + 1], content50));
|
|
214997
215033
|
openStart++;
|
|
214998
215034
|
openEnd++;
|
|
@@ -215748,7 +215784,7 @@ handlers.blur = (view2, _event) => {
|
|
|
215748
215784
|
};
|
|
215749
215785
|
handlers.beforeinput = (view2, _event) => {
|
|
215750
215786
|
let event = _event;
|
|
215751
|
-
if (
|
|
215787
|
+
if (android && event.inputType == "deleteContentBackward") {
|
|
215752
215788
|
view2.domObserver.flushSoon();
|
|
215753
215789
|
let { domChangeCount } = view2.input;
|
|
215754
215790
|
setTimeout(() => {
|
|
@@ -216651,7 +216687,7 @@ function fixUpBadSafariComposition(view2, addedNodes) {
|
|
|
216651
216687
|
}
|
|
216652
216688
|
}
|
|
216653
216689
|
}
|
|
216654
|
-
function parseBetween(view2, from_, to_) {
|
|
216690
|
+
function parseBetween(view2, from_, to_, addedNodes) {
|
|
216655
216691
|
let { node: parent2, fromOffset, toOffset, from: from2, to } = view2.docView.parseRange(from_, to_);
|
|
216656
216692
|
let domSel = view2.domSelectionRange();
|
|
216657
216693
|
let find2;
|
|
@@ -216683,7 +216719,7 @@ function parseBetween(view2, from_, to_) {
|
|
|
216683
216719
|
to: toOffset,
|
|
216684
216720
|
preserveWhitespace: $from.parent.type.whitespace == "pre" ? "full" : true,
|
|
216685
216721
|
findPositions: find2,
|
|
216686
|
-
ruleFromNode,
|
|
216722
|
+
ruleFromNode: ruleFromNode(addedNodes),
|
|
216687
216723
|
context: $from
|
|
216688
216724
|
});
|
|
216689
216725
|
if (find2 && find2[0].pos != null) {
|
|
@@ -216694,10 +216730,10 @@ function parseBetween(view2, from_, to_) {
|
|
|
216694
216730
|
}
|
|
216695
216731
|
return { doc: doc5, sel, from: from2, to };
|
|
216696
216732
|
}
|
|
216697
|
-
|
|
216733
|
+
var ruleFromNode = (added) => (dom) => {
|
|
216698
216734
|
let desc2 = dom.pmViewDesc;
|
|
216699
216735
|
if (desc2) {
|
|
216700
|
-
return desc2.parseRule();
|
|
216736
|
+
return desc2.parseRule(added);
|
|
216701
216737
|
} else if (dom.nodeName == "BR" && dom.parentNode) {
|
|
216702
216738
|
if (safari && /^(ul|ol)$/i.test(dom.parentNode.nodeName)) {
|
|
216703
216739
|
let skip = document.createElement("div");
|
|
@@ -216710,7 +216746,7 @@ function ruleFromNode(dom) {
|
|
|
216710
216746
|
return { ignore: true };
|
|
216711
216747
|
}
|
|
216712
216748
|
return null;
|
|
216713
|
-
}
|
|
216749
|
+
};
|
|
216714
216750
|
var isInline = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
216715
216751
|
function readDOMChange(view2, from2, to, typeOver, addedNodes) {
|
|
216716
216752
|
let compositionID = view2.input.compositionPendingChanges || (view2.composing ? view2.input.compositionID : 0);
|
|
@@ -216737,7 +216773,7 @@ function readDOMChange(view2, from2, to, typeOver, addedNodes) {
|
|
|
216737
216773
|
from2 = $before.before(shared + 1);
|
|
216738
216774
|
to = view2.state.doc.resolve(to).after(shared + 1);
|
|
216739
216775
|
let sel = view2.state.selection;
|
|
216740
|
-
let parse10 = parseBetween(view2, from2, to);
|
|
216776
|
+
let parse10 = parseBetween(view2, from2, to, addedNodes);
|
|
216741
216777
|
let doc5 = view2.state.doc, compare = doc5.slice(parse10.from, parse10.to);
|
|
216742
216778
|
let preferredPos, preferredSide;
|
|
216743
216779
|
if (view2.input.lastKeyCode === 8 && Date.now() - 100 < view2.input.lastKeyCodeTime) {
|
|
@@ -222061,7 +222097,7 @@ var simpleDiffString = (a14, b4) => {
|
|
|
222061
222097
|
};
|
|
222062
222098
|
var simpleDiff = simpleDiffString;
|
|
222063
222099
|
|
|
222064
|
-
// ../../node_modules/.bun/y-prosemirror@1.3.7+
|
|
222100
|
+
// ../../node_modules/.bun/y-prosemirror@1.3.7+45b31251094eb550/node_modules/y-prosemirror/src/plugins/keys.js
|
|
222065
222101
|
var ySyncPluginKey = new PluginKey("y-sync");
|
|
222066
222102
|
var yUndoPluginKey = new PluginKey("y-undo");
|
|
222067
222103
|
var yCursorPluginKey = new PluginKey("yjs-cursor");
|
|
@@ -222074,7 +222110,7 @@ var digest3 = (data) => {
|
|
|
222074
222110
|
return hasher.digest();
|
|
222075
222111
|
};
|
|
222076
222112
|
|
|
222077
|
-
// ../../node_modules/.bun/y-prosemirror@1.3.7+
|
|
222113
|
+
// ../../node_modules/.bun/y-prosemirror@1.3.7+45b31251094eb550/node_modules/y-prosemirror/src/utils.js
|
|
222078
222114
|
var _convolute = (digest4) => {
|
|
222079
222115
|
const N2 = 6;
|
|
222080
222116
|
for (let i4 = N2;i4 < digest4.length; i4++) {
|
|
@@ -222084,7 +222120,7 @@ var _convolute = (digest4) => {
|
|
|
222084
222120
|
};
|
|
222085
222121
|
var hashOfJSON = (json5) => toBase643(_convolute(digest3(encodeAny(json5))));
|
|
222086
222122
|
|
|
222087
|
-
// ../../node_modules/.bun/y-prosemirror@1.3.7+
|
|
222123
|
+
// ../../node_modules/.bun/y-prosemirror@1.3.7+45b31251094eb550/node_modules/y-prosemirror/src/plugins/sync-plugin.js
|
|
222088
222124
|
var createTypeFromTextNodes = (nodes3, meta3) => {
|
|
222089
222125
|
const type = new YXmlText;
|
|
222090
222126
|
const delta2 = nodes3.map((node) => ({
|
|
@@ -222343,7 +222379,7 @@ var updateYFragment = (y2, yDomFragment, pNode, meta3) => {
|
|
|
222343
222379
|
};
|
|
222344
222380
|
var matchNodeName = (yElement, pNode) => !(pNode instanceof Array) && yElement.nodeName === pNode.type.name;
|
|
222345
222381
|
|
|
222346
|
-
// ../../node_modules/.bun/y-prosemirror@1.3.7+
|
|
222382
|
+
// ../../node_modules/.bun/y-prosemirror@1.3.7+45b31251094eb550/node_modules/y-prosemirror/src/lib.js
|
|
222347
222383
|
function prosemirrorToYDoc(doc5, xmlFragment = "prosemirror") {
|
|
222348
222384
|
const ydoc = new Doc2;
|
|
222349
222385
|
const type = ydoc.get(xmlFragment, YXmlFragment);
|
|
@@ -238460,7 +238496,7 @@ var swaggerConfig = {
|
|
|
238460
238496
|
},
|
|
238461
238497
|
info: {
|
|
238462
238498
|
title: "DocsMint API",
|
|
238463
|
-
version: "1.0.
|
|
238499
|
+
version: "1.0.3",
|
|
238464
238500
|
description: "Self-hosted AI-native knowledge workspace and installable PWA with hybrid search, GraphRAG, REST, SDK, CLI, and MCP access for people and AI agents.",
|
|
238465
238501
|
contact: { name: "HiAi-gg", url: "https://github.com/HiAi-gg/docsmint" },
|
|
238466
238502
|
license: {
|