wiki-viewer 2.9.2 → 2.9.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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +0 -4
- package/.next/standalone/.next/build-manifest.json +5 -5
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +4 -4
- package/.next/standalone/.next/routes-manifest.json +0 -24
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agent/activity/route.js +7 -7
- package/.next/standalone/.next/server/app/api/agent/activity/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/admin/agents/[agentId]/revoke/route.js +5 -5
- package/.next/standalone/.next/server/app/api/agent/admin/agents/[agentId]/revoke/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/admin/agents/route.js +5 -5
- package/.next/standalone/.next/server/app/api/agent/admin/agents/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/[regId]/approve/route.js +5 -5
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/[regId]/approve/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/[regId]/deny/route.js +5 -5
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/[regId]/deny/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/route.js +5 -5
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/events/[...path]/route.js +7 -7
- package/.next/standalone/.next/server/app/api/agent/events/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js +9 -9
- package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/file/[...path]/route.js +7 -7
- package/.next/standalone/.next/server/app/api/agent/fs/file/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/ls/[[...path]]/route.js +8 -8
- package/.next/standalone/.next/server/app/api/agent/fs/ls/[[...path]]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/move/route.js +8 -8
- package/.next/standalone/.next/server/app/api/agent/fs/move/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/search/route.js +8 -8
- package/.next/standalone/.next/server/app/api/agent/fs/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/internal/span/route.js +8 -8
- package/.next/standalone/.next/server/app/api/agent/internal/span/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/settings/route.js +8 -8
- package/.next/standalone/.next/server/app/api/agent/settings/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js +8 -8
- package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js +10 -2
- package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/assets/[...path]/route.js +5 -5
- package/.next/standalone/.next/server/app/api/assets/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/[...all]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/pdf/save/route.js +8 -8
- package/.next/standalone/.next/server/app/api/pdf/save/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/share/[token]/asset/route.js +3 -2
- package/.next/standalone/.next/server/app/api/share/[token]/asset/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/share/[token]/route.js +8 -7
- package/.next/standalone/.next/server/app/api/share/[token]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/share/route.js +8 -8
- package/.next/standalone/.next/server/app/api/share/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/admins/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/admins/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/api-key/route.js +2 -2
- package/.next/standalone/.next/server/app/api/system/api-key/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/auth-config/route.js +3 -3
- package/.next/standalone/.next/server/app/api/system/auth-config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/auth-settings/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/auth-settings/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/browse/route.js +4 -4
- package/.next/standalone/.next/server/app/api/system/browse/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/config/route.js +3 -3
- package/.next/standalone/.next/server/app/api/system/config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/pins/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/pins/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/reveal/route.js +4 -4
- package/.next/standalone/.next/server/app/api/system/reveal/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/users/route.js +4 -4
- package/.next/standalone/.next/server/app/api/system/users/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/branch/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/branch/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/open/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/open/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/refresh/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/refresh/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/route.js +4 -4
- package/.next/standalone/.next/server/app/api/system/workspaces/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/upload/[...path]/route.js +7 -7
- package/.next/standalone/.next/server/app/api/upload/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/app/route.js +9 -9
- package/.next/standalone/.next/server/app/api/wiki/app/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/backlinks/route.js +7 -7
- package/.next/standalone/.next/server/app/api/wiki/backlinks/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/content/route.js +10 -10
- package/.next/standalone/.next/server/app/api/wiki/content/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/download/route.js +9 -9
- package/.next/standalone/.next/server/app/api/wiki/download/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/folder/route.js +7 -7
- package/.next/standalone/.next/server/app/api/wiki/folder/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-branches/route.js +7 -7
- package/.next/standalone/.next/server/app/api/wiki/git-branches/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-checkout/route.js +6 -6
- package/.next/standalone/.next/server/app/api/wiki/git-checkout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-diff/route.js +7 -7
- package/.next/standalone/.next/server/app/api/wiki/git-diff/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-file-info/route.js +7 -7
- package/.next/standalone/.next/server/app/api/wiki/git-file-info/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-history/route.js +7 -7
- package/.next/standalone/.next/server/app/api/wiki/git-history/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-pull/route.js +8 -8
- package/.next/standalone/.next/server/app/api/wiki/git-pull/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/move/route.js +8 -8
- package/.next/standalone/.next/server/app/api/wiki/move/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/new-file/route.js +8 -8
- package/.next/standalone/.next/server/app/api/wiki/new-file/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/outlinks/route.js +7 -7
- package/.next/standalone/.next/server/app/api/wiki/outlinks/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/page/route.js +8 -8
- package/.next/standalone/.next/server/app/api/wiki/page/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/presence/route.js +7 -7
- package/.next/standalone/.next/server/app/api/wiki/presence/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/route.js +8 -8
- package/.next/standalone/.next/server/app/api/wiki/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/search/route.js +8 -8
- package/.next/standalone/.next/server/app/api/wiki/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/slugs/route.js +8 -8
- package/.next/standalone/.next/server/app/api/wiki/slugs/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/upload/route.js +8 -8
- package/.next/standalone/.next/server/app/api/wiki/upload/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/watch/route.js +4 -4
- package/.next/standalone/.next/server/app/api/wiki/watch/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/s/[token]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/s/[token]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/s/[token]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/signin/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/signin/page.js +4 -4
- package/.next/standalone/.next/server/app/signin/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/signin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +0 -4
- package/.next/standalone/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0ytral2.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0.xk8gi._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__00awqt2._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__00sn-o5._.js +16 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0mw1brk._.js → [root-of-the-server]__01y-312._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__12jdw86._.js → [root-of-the-server]__02373p-._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__03_q-~2._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__03c09g7._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__03prziv._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__04vo55d._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__04~wbjj._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__05tbv~.._.js +16 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__068r9h7._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__06jm~o8._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__07ox9i8._.js +12 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__088zh92._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0_5~w8k._.js +20 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0_g-.kr._.js +20 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0bdxjy5._.js +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__10c4_fo._.js → [root-of-the-server]__0e1kbl7._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__12v.eva._.js → [root-of-the-server]__0er9oof._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0e~2gkf._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0f2frhc._.js +4 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0hgccef._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0egcl8n._.js → [root-of-the-server]__0j40f60._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__04mie79._.js → [root-of-the-server]__0k0t_.e._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0k46u9j._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0kau~ca._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0kuwuwk._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0kvxxt~._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0l5io1-._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0md2vr3._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0muj-bp._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0nnxcs7._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0omny3u._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ou7hai._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0r--676._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0r55bc0._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0rdt~cr._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0tizmgc._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0vr.qhy._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0915i_~._.js → [root-of-the-server]__0x.030x._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__11mhei8._.js → [root-of-the-server]__0xlo2r_._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0yfb5md._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0a7c~hj._.js → [root-of-the-server]__0z5xk6f._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0~gd460._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0~i3blt._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__10p-nga._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__10zrueo._.js +12 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__11ltgmp._.js +20 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__11zy4x1._.js +6 -6
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__12bl1v6._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__12g8s_j._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__13h_w~h._.js +4 -0
- package/.next/standalone/.next/server/chunks/_079xuln._.js +1 -1
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_system_workspaces_[id]_open_route_actions_1087xu7.js +1 -1
- package/.next/standalone/.next/server/chunks/node_modules__pnpm_0aj5g-w._.js +1 -1
- package/.next/standalone/.next/server/chunks/src_0ks~u~e._.js +1 -1
- package/.next/standalone/.next/server/chunks/src_lib_fs_mounts_ts_0ksy80l._.js +1 -1
- package/.next/standalone/.next/server/chunks/src_lib_workspaces_ts_0qon40u._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0bt7d39._.js → 0e.4_sonner_dist_index_mjs_0u2em8w._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{0~w0_katex_dist_katex_mjs_0p7ph25._.js → 0~w0_katex_dist_katex_mjs_018q_uc._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_chunk-5ZQYHXKU_mjs_0z1.978._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_chunk-KSCS5N6A_mjs_0v4oeem._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0ybtj28._.js → [root-of-the-server]__02ov~kn._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__13k6~ax._.js → [root-of-the-server]__0n5kphk._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0vglc36._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_00pku9f._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0_.s7b8._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0oq8kwv._.js +174 -0
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_04qqrjr._.js → node_modules__pnpm_0.wgpvp._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_09k0q18._.js → node_modules__pnpm_02j0p3a._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0wg48.8._.js → node_modules__pnpm_02yqus6._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_11g2aee._.js → node_modules__pnpm_07bf4mp._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0a4su30._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0a-f4gi._.js → node_modules__pnpm_0a~3f2a._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0819uyi._.js → node_modules__pnpm_0bnc0lk._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0b3l3b4._.js → node_modules__pnpm_0dm.meu._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0rc4s48._.js → node_modules__pnpm_0ebvpwi._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0jp7ggg._.js → node_modules__pnpm_0f.5boy._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0ha2xsd._.js → node_modules__pnpm_0f9vj0~._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0ypcps.._.js → node_modules__pnpm_0f9vuiw._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_06usij4._.js → node_modules__pnpm_0fa23-q._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0cuckmp._.js → node_modules__pnpm_0g21lw4._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_09ybwhl._.js → node_modules__pnpm_0kdk2ot._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0wjizot._.js → node_modules__pnpm_0kkbph0._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0xp3s_y._.js → node_modules__pnpm_0mv0.4i._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0z~bh__._.js → node_modules__pnpm_0nt22aq._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0o~d81.._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0m2hb6k._.js → node_modules__pnpm_0p4w0~q._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_03ciu.l._.js → node_modules__pnpm_0pv3k.9._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_09c3lg3._.js → node_modules__pnpm_0qmqt0m._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0iuzd3o._.js → node_modules__pnpm_0q~maar._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0ldft78._.js → node_modules__pnpm_0s1th-1._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0qhs4r2._.js → node_modules__pnpm_0tdnho_._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0dsnv76._.js → node_modules__pnpm_0w6oo9l._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0eiz-8_._.js → node_modules__pnpm_0x9-_1d._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0gnc95r._.js → node_modules__pnpm_0xq~zku._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0~88b7s._.js → node_modules__pnpm_12nfd13._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_app_s_[token]_page_tsx_0_fzrmd._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +5 -5
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/00_12ekhbvhhp.js +1 -0
- package/.next/standalone/.next/static/chunks/01u~45r8icusu.js +1 -0
- package/.next/standalone/.next/static/chunks/0aeii_m.9~9_t.js +1 -0
- package/.next/standalone/.next/static/chunks/0fm2eul-wqh2f.js +1 -0
- package/.next/standalone/.next/static/chunks/{08usk_~k6d0yf.js → 0k31ncl7m_j9q.js} +2 -2
- package/.next/standalone/.next/static/chunks/0n7px0u5.eizf.css +9 -0
- package/.next/standalone/.next/static/chunks/0qs6cl.~q-0tv.js +1 -0
- package/.next/standalone/.next/static/chunks/0wu_n6m9jg8rn.js +1 -0
- package/.next/standalone/.next/static/chunks/0yixq3fhhpk~9.js +172 -0
- package/.next/standalone/.next/static/chunks/{turbopack-0~8fsjmdvb_1i.js → turbopack-1105gjd__15ti.js} +1 -1
- package/.next/standalone/.test-floor +1 -1
- package/.next/standalone/biome.json +70 -0
- package/.next/standalone/node_modules/@vscode/ripgrep-linux-x64/bin/rg +0 -0
- package/.next/standalone/package.json +8 -9
- package/.next/standalone/scripts/format-check.mjs +25 -0
- package/.next/standalone/scripts/test-floor.mjs +86 -37
- package/.next/standalone/server.js +1 -1
- package/README.md +12 -5
- package/bin/cli/config.js +105 -0
- package/bin/cli/prompt.js +36 -0
- package/bin/cli/serve.js +413 -0
- package/bin/cli/service.js +304 -0
- package/bin/cli/update.js +58 -0
- package/bin/cli/wizard.js +134 -0
- package/bin/shared/ssh-target.js +154 -0
- package/bin/wiki-viewer.js +118 -1224
- package/package.json +19 -13
- package/.next/standalone/.next/server/app/api/system/clear-root/route/app-paths-manifest.json +0 -3
- package/.next/standalone/.next/server/app/api/system/clear-root/route/build-manifest.json +0 -9
- package/.next/standalone/.next/server/app/api/system/clear-root/route/server-reference-manifest.json +0 -4
- package/.next/standalone/.next/server/app/api/system/clear-root/route.js +0 -14
- package/.next/standalone/.next/server/app/api/system/clear-root/route.js.map +0 -5
- package/.next/standalone/.next/server/app/api/system/clear-root/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/system/clear-root/route_client-reference-manifest.js +0 -3
- package/.next/standalone/.next/server/app/api/system/root-status/route/app-paths-manifest.json +0 -3
- package/.next/standalone/.next/server/app/api/system/root-status/route/build-manifest.json +0 -9
- package/.next/standalone/.next/server/app/api/system/root-status/route/server-reference-manifest.json +0 -4
- package/.next/standalone/.next/server/app/api/system/root-status/route.js +0 -14
- package/.next/standalone/.next/server/app/api/system/root-status/route.js.map +0 -5
- package/.next/standalone/.next/server/app/api/system/root-status/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/system/root-status/route_client-reference-manifest.js +0 -3
- package/.next/standalone/.next/server/app/api/system/set-root/route/app-paths-manifest.json +0 -3
- package/.next/standalone/.next/server/app/api/system/set-root/route/build-manifest.json +0 -9
- package/.next/standalone/.next/server/app/api/system/set-root/route/server-reference-manifest.json +0 -4
- package/.next/standalone/.next/server/app/api/system/set-root/route.js +0 -15
- package/.next/standalone/.next/server/app/api/system/set-root/route.js.map +0 -5
- package/.next/standalone/.next/server/app/api/system/set-root/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/system/set-root/route_client-reference-manifest.js +0 -3
- package/.next/standalone/.next/server/app/api/wiki/file/route/app-paths-manifest.json +0 -3
- package/.next/standalone/.next/server/app/api/wiki/file/route/build-manifest.json +0 -9
- package/.next/standalone/.next/server/app/api/wiki/file/route/server-reference-manifest.json +0 -4
- package/.next/standalone/.next/server/app/api/wiki/file/route.js +0 -16
- package/.next/standalone/.next/server/app/api/wiki/file/route.js.map +0 -5
- package/.next/standalone/.next/server/app/api/wiki/file/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/wiki/file/route_client-reference-manifest.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0-3eby~._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0-bd36s._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0._o62m._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0.f~mr1._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0.xsx4e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__01w5s-4._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__02hiw0n._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__037g~yp._.js +0 -20
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__04yzrn9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__05dk_5q._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__05nk8xg._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__05wicn_._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__07i72.r._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__086~~78._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__08h0txl._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__09ezcba._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0au~ncj._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0c-49tx._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0di13ue._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0dkxp4y._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0jhwupj._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ker6~l._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0mkrdf0._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0nzjsw9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0o0lsmx._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0omc1-s._.js +0 -20
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0os3ej1._.js +0 -16
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0px8._m._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0qe7kxb._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0qe8lje._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0qox302._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0s5ns33._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0s6kt0y._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0t_s2dg._.js +0 -20
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0tchvup._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0tw6h_5._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0wmp13_._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0z8qb~s._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0zy2f8y._.js +0 -12
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0~s~szv._.js +0 -16
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1024gkd._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__12abg.4._.js +0 -3
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_system_clear-root_route_actions_065znew.js +0 -3
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_system_root-status_route_actions_0stp57y.js +0 -3
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_system_set-root_route_actions_0vxn8ey.js +0 -3
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wiki_file_route_actions_0ytnc0i.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/0~w0_katex_dist_katex_mjs_12lt4cp._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_03xt0rl._.js +0 -158
- package/.next/standalone/.next/server/chunks/ssr/_06rf50_._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0i3r51-._.js +0 -158
- package/.next/standalone/.next/server/chunks/ssr/_0jdop6l._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0v4uz-4._.js +0 -19
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0.6uh54._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_00o9din._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_02jnz2o._.js +0 -17
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_03jchtd._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_04xh4re._.js +0 -26
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_07p8tmd._.js +0 -17
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_08jqh.4._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0_up15t._.js +0 -17
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0c.b4rt._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0dr38_k._.js +0 -31
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0e-nvo5._.js +0 -45
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0e9l2~p._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0k_8g5d._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0kli5~f._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0n-ec__._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0odzirk._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0ov9ih8._.js +0 -17
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0qb~hug._.js +0 -17
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0t24-57._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0umkew~._.js +0 -17
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0w_fkrb._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0yfe2s1._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0~ovwm1._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_10-i1v8._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_12dmj0l._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_133w.gx._.js +0 -11
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_13y5ncy._.js +0 -3
- package/.next/standalone/.next/static/chunks/0-lsw0io13aha.js +0 -1
- package/.next/standalone/.next/static/chunks/01-v2wyaj~5gn.js +0 -1
- package/.next/standalone/.next/static/chunks/03zmegz1kvvod.js +0 -17
- package/.next/standalone/.next/static/chunks/04_l8s7dy454_.js +0 -1
- package/.next/standalone/.next/static/chunks/0a~z4.g.dtxjm.js +0 -156
- package/.next/standalone/.next/static/chunks/0ky8fha87kp0_.js +0 -1
- package/.next/standalone/.next/static/chunks/0nzvnpn.j1~sx.js +0 -1
- package/.next/standalone/.next/static/chunks/0t5bc7buy7sx9.js +0 -156
- package/.next/standalone/.next/static/chunks/0umlolnxs~j3r.js +0 -1
- package/.next/standalone/.next/static/chunks/1012fl5fxholx.js +0 -1
- package/.next/standalone/.next/static/chunks/17isnstdq92js.css +0 -5
- /package/.next/standalone/.next/static/{R2lG97g-a6HpbZZtS4qep → I6ZpQF8Ua7ytNZMW5ZKWH}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{R2lG97g-a6HpbZZtS4qep → I6ZpQF8Ua7ytNZMW5ZKWH}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{R2lG97g-a6HpbZZtS4qep → I6ZpQF8Ua7ytNZMW5ZKWH}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[522734,(t,e,r)=>{e.exports=t.x("fs",()=>require("fs"))},612249,(t,e,r)=>{e.exports=t.x("constants",()=>require("constants"))},44765,(t,e,r)=>{var n=t.r(612249),o=process.cwd,i=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=o.call(process)),i};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var u=process.chdir;process.chdir=function(t){i=null,u.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u)}e.exports=function(t){var e,r,o;function i(e){return e?function(r,n,o){return e.call(t,r,n,function(t){p(t)&&(t=null),o&&o.apply(this,arguments)})}:e}function u(e){return e?function(r,n){try{return e.call(t,r,n)}catch(t){if(!p(t))throw t}}:e}function c(e){return e?function(r,n,o,i){return e.call(t,r,n,o,function(t){p(t)&&(t=null),i&&i.apply(this,arguments)})}:e}function a(e){return e?function(r,n,o){try{return e.call(t,r,n,o)}catch(t){if(!p(t))throw t}}:e}function f(e){return e?function(r,n,o){function i(t,e){e&&(e.uid<0&&(e.uid+=0x100000000),e.gid<0&&(e.gid+=0x100000000)),o&&o.apply(this,arguments)}return"function"==typeof n&&(o=n,n=null),n?e.call(t,r,n,i):e.call(t,r,i)}:e}function l(e){return e?function(r,n){var o=n?e.call(t,r,n):e.call(t,r);return o&&(o.uid<0&&(o.uid+=0x100000000),o.gid<0&&(o.gid+=0x100000000)),o}:e}function p(t){return!t||"ENOSYS"===t.code||(!process.getuid||0!==process.getuid())&&("EINVAL"===t.code||"EPERM"===t.code)}n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&((r=t).lchmod=function(t,e,o){r.open(t,n.O_WRONLY|n.O_SYMLINK,e,function(t,n){if(t){o&&o(t);return}r.fchmod(n,e,function(t){r.close(n,function(e){o&&o(t||e)})})})},r.lchmodSync=function(t,e){var o,i=r.openSync(t,n.O_WRONLY|n.O_SYMLINK,e),s=!0;try{o=r.fchmodSync(i,e),s=!1}finally{if(s)try{r.closeSync(i)}catch(t){}else r.closeSync(i)}return o}),t.lutimes||(o=t,n.hasOwnProperty("O_SYMLINK")&&o.futimes?(o.lutimes=function(t,e,r,i){o.open(t,n.O_SYMLINK,function(t,n){if(t){i&&i(t);return}o.futimes(n,e,r,function(t){o.close(n,function(e){i&&i(t||e)})})})},o.lutimesSync=function(t,e,r){var i,s=o.openSync(t,n.O_SYMLINK),u=!0;try{i=o.futimesSync(s,e,r),u=!1}finally{if(u)try{o.closeSync(s)}catch(t){}else o.closeSync(s)}return i}):o.futimes&&(o.lutimes=function(t,e,r,n){n&&process.nextTick(n)},o.lutimesSync=function(){})),t.chown=c(t.chown),t.fchown=c(t.fchown),t.lchown=c(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=u(t.chmodSync),t.fchmodSync=u(t.fchmodSync),t.lchmodSync=u(t.lchmodSync),t.stat=f(t.stat),t.fstat=f(t.fstat),t.lstat=f(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(t,e,r){r&&process.nextTick(r)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(t,e,r,n){n&&process.nextTick(n)},t.lchownSync=function(){}),"win32"===s&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function r(r,n,o){var i=Date.now(),s=0;e(r,n,function u(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-i<6e4){setTimeout(function(){t.stat(n,function(t,i){t&&"ENOENT"===t.code?e(r,n,u):o(c)})},s),s<100&&(s+=10);return}o&&o(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.rename)),t.read="function"!=typeof t.read?t.read:function(e){function r(r,n,o,i,s,u){var c;if(u&&"function"==typeof u){var a=0;c=function(f,l,p){if(f&&"EAGAIN"===f.code&&a<10)return a++,e.call(t,r,n,o,i,s,c);u.apply(this,arguments)}}return e.call(t,r,n,o,i,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(e=t.readSync,function(r,n,o,i,s){for(var u=0;;)try{return e.call(t,r,n,o,i,s)}catch(t){if("EAGAIN"===t.code&&u<10){u++;continue}throw t}})}},235269,(t,e,r)=>{var n=t.r(688947).Stream;e.exports=function(t){return{ReadStream:function e(r,o){if(!(this instanceof e))return new e(r,o);n.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536;for(var s=Object.keys(o=o||{}),u=0,c=s.length;u<c;u++){var a=s[u];this[a]=o[a]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}null!==this.fd?process.nextTick(function(){i._read()}):t.open(this.path,this.flags,this.mode,function(t,e){if(t){i.emit("error",t),i.readable=!1;return}i.fd=e,i.emit("open",e),i._read()})},WriteStream:function e(r,o){if(!(this instanceof e))return new e(r,o);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0;for(var i=Object.keys(o=o||{}),s=0,u=i.length;s<u;s++){var c=i[s];this[c]=o[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},566159,(t,e,r)=>{"use strict";e.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:n(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e};var n=Object.getPrototypeOf||function(t){return t.__proto__}},449719,(t,e,r)=>{e.exports=t.x("assert",()=>require("assert"))},472670,(t,e,r)=>{var n,o,i,s=t.r(522734),u=t.r(44765),c=t.r(235269),a=t.r(566159),f=t.r(224361);function l(t,e){Object.defineProperty(t,n,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",o="___graceful-fs.previous");var p=function(){};function h(t){u(t),t.gracefulify=h,t.createReadStream=function(e,r){return new t.ReadStream(e,r)},t.createWriteStream=function(e,r){return new t.WriteStream(e,r)};var e=t.readFile;t.readFile=function(t,r,n){return"function"==typeof r&&(n=r,r=null),function t(r,n,o,i){return e(r,n,function(e){e&&("EMFILE"===e.code||"ENFILE"===e.code)?m([t,[r,n,o],e,i||Date.now(),Date.now()]):"function"==typeof o&&o.apply(this,arguments)})}(t,r,n)};var r=t.writeFile;t.writeFile=function(t,e,n,o){return"function"==typeof n&&(o=n,n=null),function t(e,n,o,i,s){return r(e,n,o,function(r){r&&("EMFILE"===r.code||"ENFILE"===r.code)?m([t,[e,n,o,i],r,s||Date.now(),Date.now()]):"function"==typeof i&&i.apply(this,arguments)})}(t,e,n,o)};var n=t.appendFile;n&&(t.appendFile=function(t,e,r,o){return"function"==typeof r&&(o=r,r=null),function t(e,r,o,i,s){return n(e,r,o,function(n){n&&("EMFILE"===n.code||"ENFILE"===n.code)?m([t,[e,r,o,i],n,s||Date.now(),Date.now()]):"function"==typeof i&&i.apply(this,arguments)})}(t,e,r,o)});var o=t.copyFile;o&&(t.copyFile=function(t,e,r,n){return"function"==typeof r&&(n=r,r=0),function t(e,r,n,i,s){return o(e,r,n,function(o){o&&("EMFILE"===o.code||"ENFILE"===o.code)?m([t,[e,r,n,i],o,s||Date.now(),Date.now()]):"function"==typeof i&&i.apply(this,arguments)})}(t,e,r,n)});var i=t.readdir;t.readdir=function(t,e,r){"function"==typeof e&&(r=e,e=null);var n=s.test(process.version)?function(t,e,r,n){return i(t,o(t,e,r,n))}:function(t,e,r,n){return i(t,e,o(t,e,r,n))};return n(t,e,r);function o(t,e,r,o){return function(i,s){i&&("EMFILE"===i.code||"ENFILE"===i.code)?m([n,[t,e,r],i,o||Date.now(),Date.now()]):(s&&s.sort&&s.sort(),"function"==typeof r&&r.call(this,i,s))}}};var s=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var a=c(t);y=a.ReadStream,_=a.WriteStream}var f=t.ReadStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=function(){var t=this;E(t.path,t.flags,t.mode,function(e,r){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r),t.read())})});var l=t.WriteStream;l&&(_.prototype=Object.create(l.prototype),_.prototype.open=function(){var t=this;E(t.path,t.flags,t.mode,function(e,r){e?(t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r))})}),Object.defineProperty(t,"ReadStream",{get:function(){return y},set:function(t){y=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return _},set:function(t){_=t},enumerable:!0,configurable:!0});var p=y;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(t){p=t},enumerable:!0,configurable:!0});var d=_;function y(t,e){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function _(t,e){return this instanceof _?(l.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return d},set:function(t){d=t},enumerable:!0,configurable:!0});var S=t.open;function E(t,e,r,n){return"function"==typeof r&&(n=r,r=null),function t(e,r,n,o,i){return S(e,r,n,function(s,u){s&&("EMFILE"===s.code||"ENFILE"===s.code)?m([t,[e,r,n,o],s,i||Date.now(),Date.now()]):"function"==typeof o&&o.apply(this,arguments)})}(t,e,r,n)}return t.open=E,t}function m(t){p("ENQUEUE",t[0].name,t[1]),s[n].push(t),y()}function d(){for(var t=Date.now(),e=0;e<s[n].length;++e)s[n][e].length>2&&(s[n][e][3]=t,s[n][e][4]=t);y()}function y(){if(clearTimeout(i),i=void 0,0!==s[n].length){var t=s[n].shift(),e=t[0],r=t[1],o=t[2],u=t[3],c=t[4];if(void 0===u)p("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-u>=6e4){p("TIMEOUT",e.name,r);var a=r.pop();"function"==typeof a&&a.call(null,o)}else Date.now()-c>=Math.min(1.2*Math.max(c-u,1),100)?(p("RETRY",e.name,r),e.apply(null,r.concat([u]))):s[n].push(t);void 0===i&&(i=setTimeout(y,0))}}f.debuglog?p=f.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=f.format.apply(f,arguments);console.error(t="GFS4: "+t.split(/\n/).join("\nGFS4: "))}),!s[n]&&(l(s,t.g[n]||[]),s.close=function(t){function e(e,r){return t.call(s,e,function(t){t||d(),"function"==typeof r&&r.apply(this,arguments)})}return Object.defineProperty(e,o,{value:t}),e}(s.close),s.closeSync=function(t){function e(e){t.apply(s,arguments),d()}return Object.defineProperty(e,o,{value:t}),e}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){p(s[n]),t.r(449719).equal(s[n].length,0)})),t.g[n]||l(t.g,s[n]),e.exports=h(a(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(e.exports=h(s),s.__patched=!0)},785156,(t,e,r)=>{function n(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(void 0===r)if(!this._cachedTimeouts)return!1;else this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();var n=this,o=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&o.unref(),!0},n.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},n.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var o=this._errors[n],i=o.message,s=(t[i]||0)+1;t[i]=s,s>=r&&(e=o,r=s)}return e}},830750,(t,e,r)=>{var n=t.r(785156);r.operation=function(t){return new n(r.timeouts(t),{forever:t&&t.forever,unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},r.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var n=[],o=0;o<e.retries;o++)n.push(this.createTimeout(o,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(o,e)),n.sort(function(t,e){return t-e}),n},r.createTimeout=function(t,e){var r=Math.round((e.randomize?Math.random()+1:1)*e.minTimeout*Math.pow(e.factor,t));return Math.min(r,e.maxTimeout)},r.wrap=function(t,e,n){if(e instanceof Array&&(n=e,e=null),!n)for(var o in n=[],t)"function"==typeof t[o]&&n.push(o);for(var i=0;i<n.length;i++){var s=n[i],u=t[s];t[s]=(function(n){var o=r.operation(e),i=Array.prototype.slice.call(arguments,1),s=i.pop();i.push(function(t){o.retry(t)||(t&&(arguments[0]=o.mainError()),s.apply(this,arguments))}),o.attempt(function(){n.apply(t,i)})}).bind(t,u),t[s].options=e}}},266268,(t,e,r)=>{e.exports=t.r(830750)},562342,(t,e,r)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},468340,(t,e,r)=>{var n=t.g.process;let o=function(t){return t&&"object"==typeof t&&"function"==typeof t.removeListener&&"function"==typeof t.emit&&"function"==typeof t.reallyExit&&"function"==typeof t.listeners&&"function"==typeof t.kill&&"number"==typeof t.pid&&"function"==typeof t.on};if(o(n)){var i,s=t.r(449719),u=t.r(562342),c=/^win/i.test(n.platform),a=t.r(427699);"function"!=typeof a&&(a=a.EventEmitter),n.__signal_exit_emitter__?i=n.__signal_exit_emitter__:((i=n.__signal_exit_emitter__=new a).count=0,i.emitted={}),i.infinite||(i.setMaxListeners(1/0),i.infinite=!0),e.exports=function(e,r){if(!o(t.g.process))return function(){};s.equal(typeof e,"function","a callback must be provided for exit handler"),!1===h&&m();var n="exit";return r&&r.alwaysLast&&(n="afterexit"),i.on(n,e),function(){i.removeListener(n,e),0===i.listeners("exit").length&&0===i.listeners("afterexit").length&&f()}};var f=function(){h&&o(t.g.process)&&(h=!1,u.forEach(function(t){try{n.removeListener(t,p[t])}catch(t){}}),n.emit=_,n.reallyExit=d,i.count-=1)};e.exports.unload=f;var l=function(t,e,r){i.emitted[t]||(i.emitted[t]=!0,i.emit(t,e,r))},p={};u.forEach(function(e){p[e]=function(){o(t.g.process)&&n.listeners(e).length===i.count&&(f(),l("exit",null,e),l("afterexit",null,e),c&&"SIGHUP"===e&&(e="SIGINT"),n.kill(n.pid,e))}}),e.exports.signals=function(){return u};var h=!1,m=function(){!h&&o(t.g.process)&&(h=!0,i.count+=1,u=u.filter(function(t){try{return n.on(t,p[t]),!0}catch(t){return!1}}),n.emit=S,n.reallyExit=y)};e.exports.load=m;var d=n.reallyExit,y=function(e){o(t.g.process)&&(n.exitCode=e||0,l("exit",n.exitCode,null),l("afterexit",n.exitCode,null),d.call(n,n.exitCode))},_=n.emit,S=function(e,r){if(!("exit"===e&&o(t.g.process)))return _.apply(this,arguments);void 0!==r&&(n.exitCode=r);var i=_.apply(this,arguments);return l("exit",n.exitCode,null),l("afterexit",n.exitCode,null),i}}else e.exports=function(){return function(){}}},214350,(t,e,r)=>{"use strict";let n=Symbol();e.exports.probe=function(t,e,r){let o=e[n];if(o)return e.stat(t,(t,e)=>{if(t)return r(t);r(null,e.mtime,o)});let i=new Date(1e3*Math.ceil(Date.now()/1e3)+5);e.utimes(t,i,i,o=>{if(o)return r(o);e.stat(t,(t,o)=>{if(t)return r(t);let i=o.mtime.getTime()%1e3==0?"s":"ms";Object.defineProperty(e,n,{value:i}),r(null,o.mtime,i)})})},e.exports.getMtime=function(t){let e=Date.now();return"s"===t&&(e=1e3*Math.ceil(e/1e3)),new Date(e)}},302095,(t,e,r)=>{"use strict";let n=t.r(814747),o=t.r(472670),i=t.r(266268),s=t.r(468340),u=t.r(214350),c={};function a(t,e){return e.lockfilePath||`${t}.lock`}function f(t,e,r){if(!e.realpath)return r(null,n.resolve(t));e.fs.realpath(t,r)}function l(t,e){return t.mtime.getTime()<Date.now()-e.stale}function p(t,e,r){e.fs.rmdir(a(t,e),t=>{if(t&&"ENOENT"!==t.code)return r(t);r()})}function h(t,e,r){e.released=!0,e.updateTimeout&&clearTimeout(e.updateTimeout),c[t]===e&&delete c[t],e.options.onCompromised(r)}function m(t,e,r){f(t,e={fs:o,realpath:!0,...e},(t,n)=>{if(t)return r(t);let o=c[n];if(!o)return r(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));o.updateTimeout&&clearTimeout(o.updateTimeout),o.released=!0,delete c[n],p(n,e,r)})}s(()=>{for(let t in c){let e=c[t].options;try{e.fs.rmdirSync(a(t,e))}catch(t){}}}),e.exports.lock=function(t,e,r){(e={stale:1e4,update:null,realpath:!0,retries:0,fs:o,onCompromised:t=>{throw t},...e}).retries=e.retries||0,e.retries="number"==typeof e.retries?{retries:e.retries}:e.retries,e.stale=Math.max(e.stale||0,2e3),e.update=null==e.update?e.stale/2:e.update||0,e.update=Math.max(Math.min(e.update,e.stale/2),1e3),f(t,e,(t,n)=>{if(t)return r(t);let o=i.operation(e.retries);o.attempt(()=>{!function t(e,r,n){let o=a(e,r);r.fs.mkdir(o,i=>i?"EEXIST"!==i.code?n(i):r.stale<=0?n(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:e})):void r.fs.stat(o,(o,i)=>o?"ENOENT"===o.code?t(e,{...r,stale:0},n):n(o):l(i,r)?void p(e,r,o=>{if(o)return n(o);t(e,{...r,stale:0},n)}):n(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:e}))):u.probe(o,r.fs,(t,e,i)=>{if(t)return r.fs.rmdir(o,()=>{}),n(t);n(null,e,i)}))}(n,e,(t,i,s)=>{if(o.retry(t))return;if(t)return r(o.mainError());let f=c[n]={lockfilePath:a(n,e),mtime:i,mtimePrecision:s,options:e,lastUpdate:Date.now()};!function t(e,r){let n=c[e];!n.updateTimeout&&(n.updateDelay=n.updateDelay||r.update,n.updateTimeout=setTimeout(()=>{n.updateTimeout=null,r.fs.stat(n.lockfilePath,(o,i)=>{let s=n.lastUpdate+r.stale<Date.now();if(o)return"ENOENT"===o.code||s?h(e,n,Object.assign(o,{code:"ECOMPROMISED"})):(n.updateDelay=1e3,t(e,r));if(n.mtime.getTime()!==i.mtime.getTime())return h(e,n,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let c=u.getMtime(n.mtimePrecision);r.fs.utimes(n.lockfilePath,c,c,o=>{let i=n.lastUpdate+r.stale<Date.now();if(!n.released){if(o)return"ENOENT"===o.code||i?h(e,n,Object.assign(o,{code:"ECOMPROMISED"})):(n.updateDelay=1e3,t(e,r));n.mtime=c,n.lastUpdate=Date.now(),n.updateDelay=null,t(e,r)}})})},n.updateDelay),n.updateTimeout.unref&&n.updateTimeout.unref())}(n,e),r(null,t=>{if(f.released)return t&&t(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));m(n,{...e,realpath:!1},t)})})})})},e.exports.unlock=m,e.exports.check=function(t,e,r){(e={stale:1e4,realpath:!0,fs:o,...e}).stale=Math.max(e.stale||0,2e3),f(t,e,(t,n)=>{if(t)return r(t);e.fs.stat(a(n,e),(t,n)=>t?"ENOENT"===t.code?r(null,!1):r(t):r(null,!l(n,e)))})},e.exports.getLocks=function(){return c}},597157,(t,e,r)=>{"use strict";let n=t.r(472670);e.exports={toPromise:function(t){return(...e)=>new Promise((r,n)=>{e.push((t,e)=>{t?n(t):r(e)}),t(...e)})},toSync:function(t){return(...e)=>{let r,n;if(e.push((t,e)=>{r=t,n=e}),t(...e),r)throw r;return n}},toSyncOptions:function(t){var e;let r;if((t={...t}).fs=(r={...e=t.fs||n},["mkdir","realpath","stat","rmdir","utimes"].forEach(t=>{r[t]=(...r)=>{let n,o=r.pop();try{n=e[`${t}Sync`](...r)}catch(t){return o(t)}o(null,n)}}),r),"number"==typeof t.retries&&t.retries>0||t.retries&&"number"==typeof t.retries.retries&&t.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return t}}},536471,(t,e,r)=>{"use strict";let n=t.r(302095),{toPromise:o,toSync:i,toSyncOptions:s}=t.r(597157);async function u(t,e){let r=await o(n.lock)(t,e);return o(r)}e.exports=u,e.exports.lock=u,e.exports.unlock=function(t,e){return o(n.unlock)(t,e)},e.exports.lockSync=function(t,e){let r=i(n.lock)(t,s(e));return i(r)},e.exports.unlockSync=function(t,e){return i(n.unlock)(t,s(e))},e.exports.check=function(t,e){return o(n.check)(t,e)},e.exports.checkSync=function(t,e){return i(n.check)(t,s(e))}},832852,t=>{"use strict";var e=t.i(666680),r=t.i(912714),n=t.i(660526),o=t.i(750227),i=t.i(536471);function s(){let t=process.env.HOME??n.default.homedir();return o.default.join(t,".wiki-viewer",".locks")}async function u(t,n){let u,c=s();await (0,r.mkdir)(c,{recursive:!0});let a=(u=(0,e.createHash)("sha256").update(t,"utf8").digest("hex").slice(0,32),o.default.join(s(),u));await (0,r.writeFile)(a,"",{flag:"a"});let f=await i.default.lock(a,{retries:{retries:10,factor:1.5,minTimeout:50,maxTimeout:2e3}});try{return await n()}finally{await f()}}let c=new Map;async function a(t,e){let r;for(;c.has(t);)await c.get(t);let n=new Promise(t=>{r=t});c.set(t,n);try{return await u(t,e)}finally{c.delete(t),r()}}t.s(["withFileMutex",0,a],832852)}];
|
|
1
|
+
module.exports=[522734,(t,e,r)=>{e.exports=t.x("fs",()=>require("fs"))},612249,(t,e,r)=>{e.exports=t.x("constants",()=>require("constants"))},44765,(t,e,r)=>{var n=t.r(612249),o=process.cwd,i=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=o.call(process)),i};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var u=process.chdir;process.chdir=function(t){i=null,u.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u)}e.exports=function(t){var e,r,o;function i(e){return e?function(r,n,o){return e.call(t,r,n,function(t){p(t)&&(t=null),o&&o.apply(this,arguments)})}:e}function u(e){return e?function(r,n){try{return e.call(t,r,n)}catch(t){if(!p(t))throw t}}:e}function c(e){return e?function(r,n,o,i){return e.call(t,r,n,o,function(t){p(t)&&(t=null),i&&i.apply(this,arguments)})}:e}function a(e){return e?function(r,n,o){try{return e.call(t,r,n,o)}catch(t){if(!p(t))throw t}}:e}function f(e){return e?function(r,n,o){function i(t,e){e&&(e.uid<0&&(e.uid+=0x100000000),e.gid<0&&(e.gid+=0x100000000)),o&&o.apply(this,arguments)}return"function"==typeof n&&(o=n,n=null),n?e.call(t,r,n,i):e.call(t,r,i)}:e}function l(e){return e?function(r,n){var o=n?e.call(t,r,n):e.call(t,r);return o&&(o.uid<0&&(o.uid+=0x100000000),o.gid<0&&(o.gid+=0x100000000)),o}:e}function p(t){return!t||"ENOSYS"===t.code||(!process.getuid||0!==process.getuid())&&("EINVAL"===t.code||"EPERM"===t.code)}n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&((r=t).lchmod=function(t,e,o){r.open(t,n.O_WRONLY|n.O_SYMLINK,e,function(t,n){if(t){o&&o(t);return}r.fchmod(n,e,function(t){r.close(n,function(e){o&&o(t||e)})})})},r.lchmodSync=function(t,e){var o,i=r.openSync(t,n.O_WRONLY|n.O_SYMLINK,e),s=!0;try{o=r.fchmodSync(i,e),s=!1}finally{if(s)try{r.closeSync(i)}catch(t){}else r.closeSync(i)}return o}),t.lutimes||(o=t,n.hasOwnProperty("O_SYMLINK")&&o.futimes?(o.lutimes=function(t,e,r,i){o.open(t,n.O_SYMLINK,function(t,n){if(t){i&&i(t);return}o.futimes(n,e,r,function(t){o.close(n,function(e){i&&i(t||e)})})})},o.lutimesSync=function(t,e,r){var i,s=o.openSync(t,n.O_SYMLINK),u=!0;try{i=o.futimesSync(s,e,r),u=!1}finally{if(u)try{o.closeSync(s)}catch(t){}else o.closeSync(s)}return i}):o.futimes&&(o.lutimes=function(t,e,r,n){n&&process.nextTick(n)},o.lutimesSync=function(){})),t.chown=c(t.chown),t.fchown=c(t.fchown),t.lchown=c(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=u(t.chmodSync),t.fchmodSync=u(t.fchmodSync),t.lchmodSync=u(t.lchmodSync),t.stat=f(t.stat),t.fstat=f(t.fstat),t.lstat=f(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(t,e,r){r&&process.nextTick(r)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(t,e,r,n){n&&process.nextTick(n)},t.lchownSync=function(){}),"win32"===s&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function r(r,n,o){var i=Date.now(),s=0;e(r,n,function u(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-i<6e4){setTimeout(function(){t.stat(n,function(t,i){t&&"ENOENT"===t.code?e(r,n,u):o(c)})},s),s<100&&(s+=10);return}o&&o(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.rename)),t.read="function"!=typeof t.read?t.read:function(e){function r(r,n,o,i,s,u){var c;if(u&&"function"==typeof u){var a=0;c=function(f,l,p){if(f&&"EAGAIN"===f.code&&a<10)return a++,e.call(t,r,n,o,i,s,c);u.apply(this,arguments)}}return e.call(t,r,n,o,i,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(e=t.readSync,function(r,n,o,i,s){for(var u=0;;)try{return e.call(t,r,n,o,i,s)}catch(t){if("EAGAIN"===t.code&&u<10){u++;continue}throw t}})}},235269,(t,e,r)=>{var n=t.r(688947).Stream;e.exports=function(t){return{ReadStream:function e(r,o){if(!(this instanceof e))return new e(r,o);n.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536;for(var s=Object.keys(o=o||{}),u=0,c=s.length;u<c;u++){var a=s[u];this[a]=o[a]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}null!==this.fd?process.nextTick(function(){i._read()}):t.open(this.path,this.flags,this.mode,function(t,e){if(t){i.emit("error",t),i.readable=!1;return}i.fd=e,i.emit("open",e),i._read()})},WriteStream:function e(r,o){if(!(this instanceof e))return new e(r,o);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0;for(var i=Object.keys(o=o||{}),s=0,u=i.length;s<u;s++){var c=i[s];this[c]=o[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},566159,(t,e,r)=>{"use strict";e.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:n(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e};var n=Object.getPrototypeOf||function(t){return t.__proto__}},449719,(t,e,r)=>{e.exports=t.x("assert",()=>require("assert"))},472670,(t,e,r)=>{var n,o,i,s=t.r(522734),u=t.r(44765),c=t.r(235269),a=t.r(566159),f=t.r(224361);function l(t,e){Object.defineProperty(t,n,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",o="___graceful-fs.previous");var p=function(){};function h(t){u(t),t.gracefulify=h,t.createReadStream=function(e,r){return new t.ReadStream(e,r)},t.createWriteStream=function(e,r){return new t.WriteStream(e,r)};var e=t.readFile;t.readFile=function(t,r,n){return"function"==typeof r&&(n=r,r=null),function t(r,n,o,i){return e(r,n,function(e){e&&("EMFILE"===e.code||"ENFILE"===e.code)?m([t,[r,n,o],e,i||Date.now(),Date.now()]):"function"==typeof o&&o.apply(this,arguments)})}(t,r,n)};var r=t.writeFile;t.writeFile=function(t,e,n,o){return"function"==typeof n&&(o=n,n=null),function t(e,n,o,i,s){return r(e,n,o,function(r){r&&("EMFILE"===r.code||"ENFILE"===r.code)?m([t,[e,n,o,i],r,s||Date.now(),Date.now()]):"function"==typeof i&&i.apply(this,arguments)})}(t,e,n,o)};var n=t.appendFile;n&&(t.appendFile=function(t,e,r,o){return"function"==typeof r&&(o=r,r=null),function t(e,r,o,i,s){return n(e,r,o,function(n){n&&("EMFILE"===n.code||"ENFILE"===n.code)?m([t,[e,r,o,i],n,s||Date.now(),Date.now()]):"function"==typeof i&&i.apply(this,arguments)})}(t,e,r,o)});var o=t.copyFile;o&&(t.copyFile=function(t,e,r,n){return"function"==typeof r&&(n=r,r=0),function t(e,r,n,i,s){return o(e,r,n,function(o){o&&("EMFILE"===o.code||"ENFILE"===o.code)?m([t,[e,r,n,i],o,s||Date.now(),Date.now()]):"function"==typeof i&&i.apply(this,arguments)})}(t,e,r,n)});var i=t.readdir;t.readdir=function(t,e,r){"function"==typeof e&&(r=e,e=null);var n=s.test(process.version)?function(t,e,r,n){return i(t,o(t,e,r,n))}:function(t,e,r,n){return i(t,e,o(t,e,r,n))};return n(t,e,r);function o(t,e,r,o){return function(i,s){i&&("EMFILE"===i.code||"ENFILE"===i.code)?m([n,[t,e,r],i,o||Date.now(),Date.now()]):(s&&s.sort&&s.sort(),"function"==typeof r&&r.call(this,i,s))}}};var s=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var a=c(t);y=a.ReadStream,_=a.WriteStream}var f=t.ReadStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=function(){var t=this;E(t.path,t.flags,t.mode,function(e,r){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r),t.read())})});var l=t.WriteStream;l&&(_.prototype=Object.create(l.prototype),_.prototype.open=function(){var t=this;E(t.path,t.flags,t.mode,function(e,r){e?(t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r))})}),Object.defineProperty(t,"ReadStream",{get:function(){return y},set:function(t){y=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return _},set:function(t){_=t},enumerable:!0,configurable:!0});var p=y;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(t){p=t},enumerable:!0,configurable:!0});var d=_;function y(t,e){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function _(t,e){return this instanceof _?(l.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return d},set:function(t){d=t},enumerable:!0,configurable:!0});var S=t.open;function E(t,e,r,n){return"function"==typeof r&&(n=r,r=null),function t(e,r,n,o,i){return S(e,r,n,function(s,u){s&&("EMFILE"===s.code||"ENFILE"===s.code)?m([t,[e,r,n,o],s,i||Date.now(),Date.now()]):"function"==typeof o&&o.apply(this,arguments)})}(t,e,r,n)}return t.open=E,t}function m(t){p("ENQUEUE",t[0].name,t[1]),s[n].push(t),y()}function d(){for(var t=Date.now(),e=0;e<s[n].length;++e)s[n][e].length>2&&(s[n][e][3]=t,s[n][e][4]=t);y()}function y(){if(clearTimeout(i),i=void 0,0!==s[n].length){var t=s[n].shift(),e=t[0],r=t[1],o=t[2],u=t[3],c=t[4];if(void 0===u)p("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-u>=6e4){p("TIMEOUT",e.name,r);var a=r.pop();"function"==typeof a&&a.call(null,o)}else Date.now()-c>=Math.min(1.2*Math.max(c-u,1),100)?(p("RETRY",e.name,r),e.apply(null,r.concat([u]))):s[n].push(t);void 0===i&&(i=setTimeout(y,0))}}f.debuglog?p=f.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=f.format.apply(f,arguments);console.error(t="GFS4: "+t.split(/\n/).join("\nGFS4: "))}),!s[n]&&(l(s,t.g[n]||[]),s.close=function(t){function e(e,r){return t.call(s,e,function(t){t||d(),"function"==typeof r&&r.apply(this,arguments)})}return Object.defineProperty(e,o,{value:t}),e}(s.close),s.closeSync=function(t){function e(e){t.apply(s,arguments),d()}return Object.defineProperty(e,o,{value:t}),e}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){p(s[n]),t.r(449719).equal(s[n].length,0)})),t.g[n]||l(t.g,s[n]),e.exports=h(a(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(e.exports=h(s),s.__patched=!0)},785156,(t,e,r)=>{function n(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(void 0===r)if(!this._cachedTimeouts)return!1;else this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();var n=this,o=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&o.unref(),!0},n.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},n.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var o=this._errors[n],i=o.message,s=(t[i]||0)+1;t[i]=s,s>=r&&(e=o,r=s)}return e}},830750,(t,e,r)=>{var n=t.r(785156);r.operation=function(t){return new n(r.timeouts(t),{forever:t&&t.forever,unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},r.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var n=[],o=0;o<e.retries;o++)n.push(this.createTimeout(o,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(o,e)),n.sort(function(t,e){return t-e}),n},r.createTimeout=function(t,e){var r=Math.round((e.randomize?Math.random()+1:1)*e.minTimeout*Math.pow(e.factor,t));return Math.min(r,e.maxTimeout)},r.wrap=function(t,e,n){if(e instanceof Array&&(n=e,e=null),!n)for(var o in n=[],t)"function"==typeof t[o]&&n.push(o);for(var i=0;i<n.length;i++){var s=n[i],u=t[s];t[s]=(function(n){var o=r.operation(e),i=Array.prototype.slice.call(arguments,1),s=i.pop();i.push(function(t){o.retry(t)||(t&&(arguments[0]=o.mainError()),s.apply(this,arguments))}),o.attempt(function(){n.apply(t,i)})}).bind(t,u),t[s].options=e}}},266268,(t,e,r)=>{e.exports=t.r(830750)},562342,(t,e,r)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},468340,(t,e,r)=>{var n=t.g.process;let o=function(t){return t&&"object"==typeof t&&"function"==typeof t.removeListener&&"function"==typeof t.emit&&"function"==typeof t.reallyExit&&"function"==typeof t.listeners&&"function"==typeof t.kill&&"number"==typeof t.pid&&"function"==typeof t.on};if(o(n)){var i,s=t.r(449719),u=t.r(562342),c=/^win/i.test(n.platform),a=t.r(427699);"function"!=typeof a&&(a=a.EventEmitter),n.__signal_exit_emitter__?i=n.__signal_exit_emitter__:((i=n.__signal_exit_emitter__=new a).count=0,i.emitted={}),i.infinite||(i.setMaxListeners(1/0),i.infinite=!0),e.exports=function(e,r){if(!o(t.g.process))return function(){};s.equal(typeof e,"function","a callback must be provided for exit handler"),!1===h&&m();var n="exit";return r&&r.alwaysLast&&(n="afterexit"),i.on(n,e),function(){i.removeListener(n,e),0===i.listeners("exit").length&&0===i.listeners("afterexit").length&&f()}};var f=function(){h&&o(t.g.process)&&(h=!1,u.forEach(function(t){try{n.removeListener(t,p[t])}catch(t){}}),n.emit=_,n.reallyExit=d,i.count-=1)};e.exports.unload=f;var l=function(t,e,r){i.emitted[t]||(i.emitted[t]=!0,i.emit(t,e,r))},p={};u.forEach(function(e){p[e]=function(){o(t.g.process)&&n.listeners(e).length===i.count&&(f(),l("exit",null,e),l("afterexit",null,e),c&&"SIGHUP"===e&&(e="SIGINT"),n.kill(n.pid,e))}}),e.exports.signals=function(){return u};var h=!1,m=function(){!h&&o(t.g.process)&&(h=!0,i.count+=1,u=u.filter(function(t){try{return n.on(t,p[t]),!0}catch(t){return!1}}),n.emit=S,n.reallyExit=y)};e.exports.load=m;var d=n.reallyExit,y=function(e){o(t.g.process)&&(n.exitCode=e||0,l("exit",n.exitCode,null),l("afterexit",n.exitCode,null),d.call(n,n.exitCode))},_=n.emit,S=function(e,r){if(!("exit"===e&&o(t.g.process)))return _.apply(this,arguments);void 0!==r&&(n.exitCode=r);var i=_.apply(this,arguments);return l("exit",n.exitCode,null),l("afterexit",n.exitCode,null),i}}else e.exports=function(){return function(){}}},214350,(t,e,r)=>{"use strict";let n=Symbol();e.exports.probe=function(t,e,r){let o=e[n];if(o)return e.stat(t,(t,e)=>{if(t)return r(t);r(null,e.mtime,o)});let i=new Date(1e3*Math.ceil(Date.now()/1e3)+5);e.utimes(t,i,i,o=>{if(o)return r(o);e.stat(t,(t,o)=>{if(t)return r(t);let i=o.mtime.getTime()%1e3==0?"s":"ms";Object.defineProperty(e,n,{value:i}),r(null,o.mtime,i)})})},e.exports.getMtime=function(t){let e=Date.now();return"s"===t&&(e=1e3*Math.ceil(e/1e3)),new Date(e)}},302095,(t,e,r)=>{"use strict";let n=t.r(814747),o=t.r(472670),i=t.r(266268),s=t.r(468340),u=t.r(214350),c={};function a(t,e){return e.lockfilePath||`${t}.lock`}function f(t,e,r){if(!e.realpath)return r(null,n.resolve(t));e.fs.realpath(t,r)}function l(t,e){return t.mtime.getTime()<Date.now()-e.stale}function p(t,e,r){e.fs.rmdir(a(t,e),t=>{if(t&&"ENOENT"!==t.code)return r(t);r()})}function h(t,e,r){e.released=!0,e.updateTimeout&&clearTimeout(e.updateTimeout),c[t]===e&&delete c[t],e.options.onCompromised(r)}function m(t,e,r){f(t,e={fs:o,realpath:!0,...e},(t,n)=>{if(t)return r(t);let o=c[n];if(!o)return r(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));o.updateTimeout&&clearTimeout(o.updateTimeout),o.released=!0,delete c[n],p(n,e,r)})}s(()=>{for(let t in c){let e=c[t].options;try{e.fs.rmdirSync(a(t,e))}catch(t){}}}),e.exports.lock=function(t,e,r){(e={stale:1e4,update:null,realpath:!0,retries:0,fs:o,onCompromised:t=>{throw t},...e}).retries=e.retries||0,e.retries="number"==typeof e.retries?{retries:e.retries}:e.retries,e.stale=Math.max(e.stale||0,2e3),e.update=null==e.update?e.stale/2:e.update||0,e.update=Math.max(Math.min(e.update,e.stale/2),1e3),f(t,e,(t,n)=>{if(t)return r(t);let o=i.operation(e.retries);o.attempt(()=>{!function t(e,r,n){let o=a(e,r);r.fs.mkdir(o,i=>i?"EEXIST"!==i.code?n(i):r.stale<=0?n(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:e})):void r.fs.stat(o,(o,i)=>o?"ENOENT"===o.code?t(e,{...r,stale:0},n):n(o):l(i,r)?void p(e,r,o=>{if(o)return n(o);t(e,{...r,stale:0},n)}):n(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:e}))):u.probe(o,r.fs,(t,e,i)=>{if(t)return r.fs.rmdir(o,()=>{}),n(t);n(null,e,i)}))}(n,e,(t,i,s)=>{if(o.retry(t))return;if(t)return r(o.mainError());let f=c[n]={lockfilePath:a(n,e),mtime:i,mtimePrecision:s,options:e,lastUpdate:Date.now()};!function t(e,r){let n=c[e];!n.updateTimeout&&(n.updateDelay=n.updateDelay||r.update,n.updateTimeout=setTimeout(()=>{n.updateTimeout=null,r.fs.stat(n.lockfilePath,(o,i)=>{let s=n.lastUpdate+r.stale<Date.now();if(o)return"ENOENT"===o.code||s?h(e,n,Object.assign(o,{code:"ECOMPROMISED"})):(n.updateDelay=1e3,t(e,r));if(n.mtime.getTime()!==i.mtime.getTime())return h(e,n,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let c=u.getMtime(n.mtimePrecision);r.fs.utimes(n.lockfilePath,c,c,o=>{let i=n.lastUpdate+r.stale<Date.now();if(!n.released){if(o)return"ENOENT"===o.code||i?h(e,n,Object.assign(o,{code:"ECOMPROMISED"})):(n.updateDelay=1e3,t(e,r));n.mtime=c,n.lastUpdate=Date.now(),n.updateDelay=null,t(e,r)}})})},n.updateDelay),n.updateTimeout.unref&&n.updateTimeout.unref())}(n,e),r(null,t=>{if(f.released)return t&&t(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));m(n,{...e,realpath:!1},t)})})})})},e.exports.unlock=m,e.exports.check=function(t,e,r){(e={stale:1e4,realpath:!0,fs:o,...e}).stale=Math.max(e.stale||0,2e3),f(t,e,(t,n)=>{if(t)return r(t);e.fs.stat(a(n,e),(t,n)=>t?"ENOENT"===t.code?r(null,!1):r(t):r(null,!l(n,e)))})},e.exports.getLocks=function(){return c}},597157,(t,e,r)=>{"use strict";let n=t.r(472670);e.exports={toPromise:function(t){return(...e)=>new Promise((r,n)=>{e.push((t,e)=>{t?n(t):r(e)}),t(...e)})},toSync:function(t){return(...e)=>{let r,n;if(e.push((t,e)=>{r=t,n=e}),t(...e),r)throw r;return n}},toSyncOptions:function(t){var e;let r;if((t={...t}).fs=(r={...e=t.fs||n},["mkdir","realpath","stat","rmdir","utimes"].forEach(t=>{r[t]=(...r)=>{let n,o=r.pop();try{n=e[`${t}Sync`](...r)}catch(t){return o(t)}o(null,n)}}),r),"number"==typeof t.retries&&t.retries>0||t.retries&&"number"==typeof t.retries.retries&&t.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return t}}},536471,(t,e,r)=>{"use strict";let n=t.r(302095),{toPromise:o,toSync:i,toSyncOptions:s}=t.r(597157);async function u(t,e){let r=await o(n.lock)(t,e);return o(r)}e.exports=u,e.exports.lock=u,e.exports.unlock=function(t,e){return o(n.unlock)(t,e)},e.exports.lockSync=function(t,e){let r=i(n.lock)(t,s(e));return i(r)},e.exports.unlockSync=function(t,e){return i(n.unlock)(t,s(e))},e.exports.check=function(t,e){return o(n.check)(t,e)},e.exports.checkSync=function(t,e){return i(n.check)(t,s(e))}},832852,t=>{"use strict";var e=t.i(666680),r=t.i(912714),n=t.i(660526),o=t.i(750227),i=t.i(536471);function s(){let t=process.env.HOME??n.default.homedir();return o.default.join(t,".wiki-viewer",".locks")}async function u(t,n){let u,c=s();await (0,r.mkdir)(c,{recursive:!0});let a=(u=(0,e.createHash)("sha256").update(t,"utf8").digest("hex").slice(0,32),o.default.join(s(),u));await (0,r.writeFile)(a,"",{flag:"a"});let f=await i.default.lock(a,{retries:{retries:10,factor:1.5,minTimeout:50,maxTimeout:2e3}});try{return await n()}finally{await f()}}let c=new Map;async function a(t,e){let r;for(;c.has(t);)await c.get(t);let n=new Promise(t=>{r=t});c.set(t,n);try{return await u(t,e)}finally{c.delete(t),r()}}t.s(["withFileMutex",0,a,"workspaceLockKey",0,function(t,e){return`${t}\0${e}`}],832852)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0bdxjy5._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[857764,(e,t,n)=>{t.exports=e.x("node:url",()=>require("node:url"))},59639,(e,t,n)=>{t.exports=e.x("node:process",()=>require("node:process"))},462711,651212,316552,e=>{"use strict";var t=e.i(750227);e.s(["minpath",()=>t.default],462711);var n=e.i(59639);e.s(["minproc",()=>n.default],651212);var s=e.i(857764);e.s(["urlToPath",()=>s.fileURLToPath],316552)},814747,(e,t,n)=>{t.exports=e.x("path",()=>require("path"))},224361,(e,t,n)=>{t.exports=e.x("util",()=>require("util"))},688947,(e,t,n)=>{t.exports=e.x("stream",()=>require("stream"))},427699,(e,t,n)=>{t.exports=e.x("events",()=>require("events"))},228064,e=>{"use strict";var t=e.i(666680),n=e.i(912714),s=e.i(660526),r=e.i(750227),a=e.i(832852);let i="__registry__",o=new Map;function l(){let e=process.env.HOME??s.default.homedir();return r.default.join(e,".wiki-viewer")}function u(){return r.default.join(l(),"agents.json")}function c(e){return(0,t.createHash)("sha256").update(e,"utf8").digest("hex")}async function d(){try{let e=await (0,n.readFile)(u(),"utf8"),t=JSON.parse(e);return{version:1,agents:Array.isArray(t.agents)?t.agents:[]}}catch{return null}}async function p(e){await (0,n.mkdir)(l(),{recursive:!0});let t=u()+".tmp";await (0,n.writeFile)(t,JSON.stringify(e,null,2),{encoding:"utf8",mode:384});try{await (0,n.chmod)(t,384)}catch{}await (0,n.rename)(t,u())}async function f(){let e=await d();if(e)return e;let t={version:1,agents:[]};return await p(t),t}async function h(e){let n=await d();if(!n)return null;let s=c(e);for(let e of n.agents)if(function(e,n){let s=Buffer.from(e.padEnd(64,"0"),"utf8"),r=Buffer.from(n.padEnd(64,"0"),"utf8");return s.length===r.length&&(0,t.timingSafeEqual)(s,r)&&e.length===n.length}(e.tokenHash,s))return e;return null}async function g(e){await (0,a.withFileMutex)(i,async()=>{let t=await f(),n=t.agents.findIndex(t=>t.id===e.id);n>=0?t.agents[n]=e:t.agents.push(e),await p(t)})}async function m(e){return(0,a.withFileMutex)(i,async()=>{let t=await d();if(!t)return!1;let n=t.agents.length;return t.agents=t.agents.filter(t=>t.id!==e),t.agents.length!==n&&(await p(t),!0)})}async function v(e){Date.now()-(o.get(e)??0)<3e4||await (0,a.withFileMutex)(i,async()=>{let t=await d();if(!t)return;let n=t.agents.find(t=>t.id===e);n&&(n.lastSeen=new Date().toISOString(),o.set(e,Date.now()),await p(t))})}e.s(["addAgent",0,g,"hashToken",0,c,"lookupAgentByToken",0,h,"readRegistry",0,d,"removeAgent",0,m,"updateLastSeen",0,v])},215043,552350,e=>{"use strict";var t=e.i(228064);function n(e,t){return(function(e){let t="^",n=0;for(;n<e.length;)"*"===e[n]&&"*"===e[n+1]?(t+=".*","/"===e[n+=2]&&(t+="(?:.+/)?",n++)):("*"===e[n]?t+="[^/]*":"?"===e[n]?t+="[^/]":t+=e[n].replace(/[.+^${}()|[\]\\]/g,"\\$&"),n++);return new RegExp(t+="$")})(e).test(t)}e.s(["matchGlob",0,n],552350);var s=e.i(254226);async function r(e){let n=await (0,s.getSessionFromRequest)(e);if(n?.user){let e=n.user;return{ok:!0,agent:{id:`user:${e.id}`,displayName:e.name,tokenHash:"",scope:{paths:["**/*"],ops:["read","mutate","delete"]},createdAt:"",lastSeen:""}}}let r=e.headers.get("authorization")??"",a=r.startsWith("Bearer ")?r.slice(7).trim():"";if(!a)return{ok:!1,code:"UNAUTHORIZED",message:"No credentials"};let i=await (0,t.lookupAgentByToken)(a);if(!i)return{ok:!1,code:"UNAUTHORIZED",message:"Unknown or invalid token"};let o=e.headers.get("x-agent-id")??"";return o?o!==i.id?{ok:!1,code:"UNAUTHORIZED",message:"X-Agent-Id does not match token owner"}:((0,t.updateLastSeen)(i.id),{ok:!0,agent:i}):{ok:!1,code:"UNAUTHORIZED",message:"X-Agent-Id header required"}}process.env.AGENT_BEARER_TOKEN&&console.warn("[wiki-viewer] AGENT_BEARER_TOKEN is no longer used; manage agents via the AI Panel."),e.s(["checkAuth",0,r,"enforceScope",0,function(e,t){let{scope:s}=e;return void 0!==s.workspaceId&&void 0!==t.workspaceId&&s.workspaceId!==t.workspaceId?{ok:!1,code:"FORBIDDEN",message:`Agent scope does not cover workspace "${t.workspaceId}" (granted: "${s.workspaceId}")`}:s.ops.includes(t.op)?t.filePath&&!s.paths.some(e=>n(e,t.filePath))?{ok:!1,code:"FORBIDDEN",message:`Agent scope does not cover path "${t.filePath}"`}:{ok:!0}:{ok:!1,code:"FORBIDDEN",message:`Agent scope does not allow "${t.op}"`}},"verifyBy",0,function(e,t){return e.id.startsWith("user:")?!t||"owner"===t||"human"===t||t.startsWith("human:")||t===e.id?{ok:!0}:{ok:!1,code:"FORBIDDEN",message:'User agent must use "human", "owner", or own id in "by" field'}:t!==e.id?{ok:!1,code:"FORBIDDEN",message:`"by" field must equal agent id "${e.id}"`}:{ok:!0}}],215043)},973909,e=>{"use strict";var t=e.i(912714),n=e.i(750227);function s(e,t){return n.default.join(e,".proof",t+".json")}async function r(e,n){let r=s(e,n);try{let e=await (0,t.readFile)(r,"utf-8"),n=JSON.parse(e);if(1!==n.schemaVersion)throw Error(`Sidecar schema version mismatch: expected 1, got ${n.schemaVersion}`);return n}catch(e){if(e instanceof Error&&"code"in e&&"ENOENT"===e.code)return null;throw e}}async function a(e,r,a){let i=s(e,r);await (0,t.mkdir)(n.default.dirname(i),{recursive:!0});let o=i+".tmp";await (0,t.writeFile)(o,JSON.stringify(a,null,2),"utf-8"),await (0,t.rename)(o,i)}async function i(e,r,a){let i=s(e,r),o=s(e,a);try{await (0,t.mkdir)(n.default.dirname(o),{recursive:!0}),await (0,t.rename)(i,o)}catch(e){if("ENOENT"===e.code)return;throw e}}async function o(e,n){let r=s(e,n);try{await (0,t.unlink)(r)}catch(e){if("ENOENT"===e.code)return;throw e}}e.s(["deleteSidecar",0,o,"emptySidecar",0,function(e){let t=new Date().toISOString();return{schemaVersion:1,path:e,revision:0,createdAt:t,updatedAt:t,refMap:{},refAliases:{},comments:[],suggestions:[],archivedSuggestions:[],events:[],nextEventId:1,lastAck:{},fingerprint:"",blockProvenance:{}}},"moveSidecar",0,i,"readSidecar",0,r,"writeSidecar",0,a])},307764,e=>{"use strict";e.s(["emitEvents",0,function(e,t){let n=[];for(let s of t){let t={...s,id:e.nextEventId++};e.events.push(t),n.push(t)}return n},"pollEvents",0,function(e,t,n){return e.events.filter(e=>e.id>t).slice(0,n)},"trimEvents",0,function(e,t){if(e.events.length<=t)return;let n=Object.values(e.lastAck),s=n.length>0?Math.min(...n):1/0,r=e.events.length-t,a=e.events.filter((e,t)=>t>=r||e.id>s);e.events=a}])},850948,e=>{"use strict";function t(e){return e.replace(/&/g,"&").replace(/"/g,""")}e.s(["newSpanId",0,function(){let e=Math.floor(65535*Math.random()).toString(16).padStart(4,"0");return`p${e}`},"revertProofSpan",0,function(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=RegExp(`<proof-span\\b[^>]*\\bid="${n}"[^>]*>[\\s\\S]*?<\\/proof-span>`,"g");return e.replace(s,"")},"wrapAsProofSpan",0,function(e,n){let s,r=(s=[`id="${t(n.spanId)}"`,`origin="${n.origin}"`],n.basis&&s.push(`basis="${t(n.basis)}"`),n.basisDetail&&s.push(`basis-detail="${t(n.basisDetail)}"`),s.push(`by="${t(n.by)}"`),s.push(`at="${t(n.at)}"`),n.inResponseTo&&s.push(`in-response-to="${t(n.inResponseTo)}"`),s.join(" ")),a=e.trim();if(a.startsWith("```")||a.startsWith("~~~")||a.startsWith("<")&&!a.startsWith("<proof-span")||/^[-*_]{3,}\s*$/.test(a))return null;let i=a.split("\n")[0];if(i.includes("|")&&/^\|.*\|/.test(i))return null;let o=a.match(/^(#{1,6})\s+(.+)$/);if(o){let e=o[1],t=o[2].trimEnd();return`${e} <proof-span ${r}>${t}</proof-span>`}return a.startsWith(">")?a.split("\n").map(e=>{let t=e.match(/^(>\s?)(.*)/);if(!t)return e;let n=t[1],s=t[2];return s.trim()?`${n}<proof-span ${r}>${s}</proof-span>`:e}).join("\n"):/^(\s*(?:[-*+]|\d+\.)\s+(?:\[[ xX]\]\s+)?)(.*)/.test(a.split("\n")[0])?a.split("\n").map(e=>{let t=e.match(/^(\s*(?:[-*+]|\d+\.)\s+(?:\[[ xX]\]\s+)?)(.*)/);if(!t)return e;let n=t[1],s=t[2];return s.trim()?`${n}<proof-span ${r}>${s}</proof-span>`:e}).join("\n"):`<proof-span ${r}>${a}</proof-span>`}])},794776,e=>{"use strict";let t,n=Number.isFinite(t=parseInt(process.env.AGENT_RATE_LIMIT??"",10))&&t>0?t:60;e.s(["OPS_PER_MINUTE",0,n,"SIDECAR_EVENT_TRIM_SIZE",0,1e3,"SIDECAR_TRIM_EVERY_N_MUTATIONS",0,100])},517387,e=>{"use strict";var t=e.i(794776);let n=new Map;e.s(["checkAndConsume",0,function(e,s=1){let r=Date.now(),a=t.OPS_PER_MINUTE,i=n.get(e);i||(i={tokens:a,lastRefill:r},n.set(e,i));let o=Math.floor((r-i.lastRefill)/1e3);return(o>0&&(i.tokens=Math.min(a,i.tokens+o),i.lastRefill=i.lastRefill+1e3*o),i.tokens<s)?{ok:!1,retryAfterMs:Math.max(1,1e3*(s-i.tokens)-(r-i.lastRefill))}:(i.tokens-=s,{ok:!0})}])},889264,e=>{"use strict";let t=globalThis;function n(){return t.__wikiLeaseStore}function s(e,t){return`${e}\u0000${t}`}function r(e,t){let r=n(),a=s(e,t),i=r.leases.get(a);return!!i&&(!(Date.now()>=i.expiresAt)||(r.leases.delete(a),r.generations.set(a,(r.generations.get(a)??0)+1),!1))}t.__wikiLeaseStore||(t.__wikiLeaseStore={leases:new Map,generations:new Map}),e.s(["clearLease",0,function(e,t,r){let a=n(),i=s(e,t),o=a.leases.get(i);o&&o.userId===r&&(a.leases.delete(i),a.generations.set(i,(a.generations.get(i)??0)+1))},"hasActiveLease",0,function(e,t){return r(e,t)},"leaseGeneration",0,function(e,t){let r=s(e,t);return n().generations.get(r)??0},"setLease",0,function(e,t,a,i=9e4){let o=n(),l=s(e,t),u=r(e,t);o.leases.set(l,{userId:a,expiresAt:Date.now()+i}),u||o.generations.set(l,(o.generations.get(l)??0)+1)}])},323588,e=>{"use strict";e.s(["apiUrl",0,function(e){if(!e.startsWith("/"))return e;let t=process.env.WIKI_URL_PREFIX??"";return!t||e.startsWith(t+"/")||e===t?e:t+e}])},400053,e=>{"use strict";var t=e.i(973909),n=e.i(889264),s=e.i(323588);async function r(e,r){if(!(r.endsWith(".md")||r.endsWith(".markdown")))return{state:"not-markdown",revision:0,snapshotUrl:null};let a=(0,s.apiUrl)(`/api/agent/files/${r}`),i=await (0,t.readSidecar)(e,r),o=(0,n.leaseGeneration)(e,r),l=(i?.revision??0)+o,u=(0,n.hasActiveLease)(e,r);if(!i&&!u)return{state:"untracked",revision:l,snapshotUrl:a};if(u)return{state:"active",revision:l,snapshotUrl:a};let c=i.suggestions.filter(e=>"pending"===e.status&&!e.stale).length,d=i.comments.filter(e=>!e.resolved).length,p=Object.keys(i.blockProvenance??{}).length;return c>0||d>0||p>0?{state:"active",revision:l,snapshotUrl:a}:{state:"tracked",revision:l,snapshotUrl:a}}e.s(["computeCollabState",0,r])},168315,e=>{e.v(t=>Promise.all(["server/chunks/0sag_@better-auth_memory-adapter_dist_index_mjs_0pvj6im._.js"].map(t=>e.l(t))).then(()=>t(862112)))},396690,e=>{e.v(t=>Promise.all(["server/chunks/032z_better-auth_dist_adapters_kysely-adapter_index_mjs_0.uqexi._.js"].map(t=>e.l(t))).then(()=>t(320652)))},580632,e=>{e.v(e=>Promise.resolve().then(()=>e(270406)))},947559,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_bun-sqlite-dialect-DzNwOpKv_mjs_0z1z6m4._.js"].map(t=>e.l(t))).then(()=>t(495181)))},715018,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_node-sqlite-dialect_mjs_0qqlvhl._.js"].map(t=>e.l(t))).then(()=>t(698370)))},146843,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_d1-sqlite-dialect-C2B7YsIT_mjs_0wynrz3._.js"].map(t=>e.l(t))).then(()=>t(143740)))},84040,e=>{e.v(t=>Promise.all(["server/chunks/0p91_next_0h94sj1._.js"].map(t=>e.l(t))).then(()=>t(815068)))},526888,e=>{e.v(e=>Promise.resolve().then(()=>e(28962)))},893412,e=>{e.v(e=>Promise.resolve().then(()=>e(499465)))},687903,e=>{e.v(e=>Promise.resolve().then(()=>e(912714)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0e1kbl7._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[666680,(e,r,t)=>{r.exports=e.x("node:crypto",()=>require("node:crypto"))},750227,(e,r,t)=>{r.exports=e.x("node:path",()=>require("node:path"))},
|
|
1
|
+
module.exports=[666680,(e,r,t)=>{r.exports=e.x("node:crypto",()=>require("node:crypto"))},750227,(e,r,t)=>{r.exports=e.x("node:path",()=>require("node:path"))},660526,(e,r,t)=>{r.exports=e.x("node:os",()=>require("node:os"))},902157,(e,r,t)=>{r.exports=e.x("node:fs",()=>require("node:fs"))},504263,e=>{"use strict";var r=e.i(750227),t=e.i(660526),i=e.i(902157),o=e.i(666680);let n=r.default.join(process.env.HOME??t.default.homedir(),".wiki-viewer"),s=r.default.join(n,"api-key");e.s(["ensureApiKey",0,function(){if((0,i.mkdirSync)(n,{recursive:!0}),!(0,i.existsSync)(s)){let e=(0,o.randomBytes)(32).toString("hex");(0,i.writeFileSync)(s,e,{mode:384});try{(0,i.chmodSync)(s,384)}catch{}return e}return(0,i.readFileSync)(s,"utf-8").trim()}])}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0er9oof._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[536654,e=>{"use strict";var t=e.i(912714),r=e.i(750227);function a(e){return!!(r.default.isAbsolute(e)||".."===e||e.startsWith(".."+r.default.sep)||e.startsWith("../"))}async function n(e,i,s={}){let o;if(!e)return null;let l=function(e){if(e.includes("\0")||r.default.isAbsolute(e))return null;let t=e.replace(/\\/g,"/");return(("."===(t=r.default.posix.normalize(t))||"./"===t)&&(t=""),".."===t||t.startsWith("../")||/^[a-zA-Z]:\//.test(t)||t.startsWith("/"))?null:t}(i);if(null===l)return null;if(s.deniedSegments?.length){for(let e of l.split("/").filter(Boolean))if(s.deniedSegments.includes(e))return null}try{o=await (0,t.realpath)(e)}catch{return null}let u=l?r.default.join(o,l):o;try{let e=await (0,t.realpath)(u),n=r.default.relative(o,e);if(a(n))return null;return{relPath:l,absolutePath:e}}catch{if(!s.allowMissing)return null;let e=u;for(;;){let n=r.default.dirname(e);if(n===e)break;try{let e=await (0,t.realpath)(n),i=r.default.relative(o,e);if(a(i))return null;return{relPath:l,absolutePath:u}}catch{e=n}}return null}}e.s(["resolveWorkspacePath",0,n])},848475,e=>{"use strict";var t=e.i(750227);let r={".md":"text/markdown; charset=utf-8",".markdown":"text/markdown; charset=utf-8",".txt":"text/plain; charset=utf-8",".json":"application/json; charset=utf-8",".jsonc":"application/json; charset=utf-8",".ts":"text/typescript; charset=utf-8",".tsx":"text/typescript; charset=utf-8",".mts":"text/typescript; charset=utf-8",".js":"text/javascript; charset=utf-8",".jsx":"text/javascript; charset=utf-8",".mjs":"text/javascript; charset=utf-8",".html":"text/html; charset=utf-8",".htm":"text/html; charset=utf-8",".css":"text/css; charset=utf-8",".yaml":"text/yaml; charset=utf-8",".yml":"text/yaml; charset=utf-8",".toml":"text/toml; charset=utf-8",".xml":"application/xml; charset=utf-8",".svg":"image/svg+xml",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".ico":"image/x-icon",".bmp":"image/bmp",".pdf":"application/pdf",".zip":"application/zip",".tar":"application/x-tar",".gz":"application/gzip",".py":"text/x-python; charset=utf-8",".rs":"text/x-rustsrc; charset=utf-8",".go":"text/x-go; charset=utf-8",".sh":"text/x-shellscript; charset=utf-8",".csv":"text/csv; charset=utf-8",".tsv":"text/tab-separated-values; charset=utf-8",".env":"text/plain; charset=utf-8",".log":"text/plain; charset=utf-8",".ini":"text/plain; charset=utf-8",".conf":"text/plain; charset=utf-8",".mmd":"text/plain; charset=utf-8",".ipynb":"application/json; charset=utf-8",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".doc":"application/msword",".xls":"application/vnd.ms-excel",".ppt":"application/vnd.ms-powerpoint",".mp4":"video/mp4",".webm":"video/webm",".mov":"video/quicktime",".m4v":"video/mp4",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".m4a":"audio/mp4",".aac":"audio/aac"};e.s(["contentTypeForPath",0,function(e){return r[t.default.extname(e).toLowerCase()]??"application/octet-stream"}])},719126,e=>{"use strict";var t=e.i(666680),r=e.i(912714),a=e.i(750227),n=e.i(536654),i=e.i(848475);async function s(e,t){if(!e)return null;let r=await (0,n.resolveWorkspacePath)(e,t,{allowMissing:!0,deniedSegments:[".proof",".git"]});return r?.absolutePath??null}async function o(e,t){let a=420;try{let t=await (0,r.stat)(e);a=511&t.mode}catch{}let n=e+".~"+process.pid+"."+Date.now()+".tmp",i=await (0,r.open)(n,"w",a);try{await i.write(t),await i.datasync()}finally{await i.close()}await (0,r.rename)(n,e)}async function l(e,t){let n=a.default.dirname(e);if(t)return await (0,r.mkdir)(n,{recursive:!0}),!0;try{return await (0,r.stat)(n),!0}catch{return!1}}e.s(["atomicWrite",0,o,"ensureParentDir",0,l,"extractShaHex",0,function(e){return e.replace(/^"/,"").replace(/"$/,"").replace(/^sha256:/,"")},"isDeniedRelPath",0,function(e){let t=e.replace(/\\/g,"/");return".proof"===t||t.startsWith(".proof/")||".git"===t||t.startsWith(".git/")},"isMarkdown",0,function(e){return e.endsWith(".md")||e.endsWith(".markdown")},"looksLikeBinary",0,function(e){return e.slice(0,Math.min(e.length,8192)).includes(0)},"mimeByExt",0,function(e){return(0,i.contentTypeForPath)(e)},"safeAbsPath",0,s,"sha256ofBuf",0,function(e){return"sha256:"+(0,t.createHash)("sha256").update(e).digest("hex")}])},857764,(e,t,r)=>{t.exports=e.x("node:url",()=>require("node:url"))},593234,e=>{"use strict";let t=/\[\[([^\]|#]+)(?:\|([^\]]*)|#([^\]]*))?\]\]/g,r=/^[a-z0-9-]+$/;function a(e){return e.trim().toLowerCase()}e.s(["extractWikiLinks",0,function(e){let n,i=[],s=[0];for(let t=0;t<e.length;t++)"\n"===e[t]?s.push(t+1):"\r"===e[t]&&(t+1<e.length&&"\n"===e[t+1]&&t++,s.push(t+1));for(t.lastIndex=0;null!==(n=t.exec(e));){let t=n[1];if(!t)continue;let o=a(t);if(!r.test(o))continue;let l=n.index,u=0,c=s.length-1;for(;u<c;){let e=Math.ceil((u+c)/2);s[e]<=l?u=e:c=e-1}let d=u+1,p=s[u],h=u+1<s.length?s[u+1]:e.length,f=e.slice(p,h).replace(/\r?\n$/,"");i.push({slug:o,line:d,lineText:f,index:l-p})}return i},"normalizeSlug",0,a,"slugFromPath",0,function(e){return(e.split("/").pop()??e).replace(/\.(?:md|markdown)$/i,"").toLowerCase()}])},844376,(e,t,r)=>{t.exports=e.x("node:module",()=>require("node:module"))},511745,883129,e=>{"use strict";let t;var r=e.i(874533),a=e.i(750227),n=e.i(844376),i=e.i(812057),s=e.i(902157),o=e.i(857764);let l={get url(){return`file://${e.P("src/lib/search/rg-path.ts")}`}},u=(0,i.promisify)(r.execFile);function c(e){try{let t=(0,s.statSync)(e);return t.isFile()&&(73&t.mode)!=0}catch{return!1}}function d(e,t,r){let n=a.default.resolve(e);for(let e=0;e<=t;e++){let e=a.default.join(n,r);if(c(e))return e;let t=a.default.dirname(n);if(t===n)break;n=t}return null}async function p(){try{return await u("rg",["--version"]),"rg"}catch{return null}}async function h(){if(void 0!==t)return t;let e=process.env.WIKI_VIEWER_RG;if(e&&c(e))return t=e;let r=process.env.npm_config_arch||process.arch,i=`@vscode/ripgrep-${process.platform}-${r}`;try{let e=(0,o.fileURLToPath)(l.resolve("@vscode/ripgrep")),r=(0,n.createRequire)(e).resolve(`${i}/bin/rg`);if(c(r))return t=r}catch{}let s=a.default.join("node_modules",i,"bin","rg"),u=d(process.cwd(),5,s);if(u)return t=u;let h=a.default.dirname(process.execPath);if(h!==process.cwd()){let e=d(h,5,s);if(e)return t=e}return t=await p()}function f(e){return e.replace(/<\/?mark>/g,"")}function m(e,t,r={}){let a=r.window??60;if(!t.length)return f(e);let n=Buffer.from(e,"utf8"),i=n.length,s=[...t].sort((e,t)=>e.start-t.start),o=s[0],l=Math.floor((o.start+o.end)/2),u=Math.max(0,l-a),c=Math.min(i,l+a);for(;u>0&&(192&n[u])==128;)u++;for(;c<i&&(192&n[c])==128;)c--;let d=s.filter(e=>e.start<c&&e.end>u),p=[],h=u;for(let e of d){let t=Math.max(u,e.start),r=Math.min(c,e.end);t>h&&p.push({text:n.toString("utf8",h,t),mark:!1}),r>t&&p.push({text:n.toString("utf8",t,r),mark:!0}),h=r}h<c&&p.push({text:n.toString("utf8",h,c),mark:!1});let g="";for(let e of(u>0&&(g+="…"),p)){let t=f(e.text);g+=e.mark?`<mark>${t}</mark>`:t}return c<i&&(g+="…"),g}e.s(["buildSnippet",0,m],883129);var g=e.i(719126);let v=null;async function x(){if(v)return v;try{let t=await e.A(267328);return v=t,t}catch{return v={nestedHazardMounts:()=>[],rootIsHazardMount:()=>!1}}}let w=[".git",".pi",".proof","node_modules",".next"];async function k(e){let t=[];for(let e of w)t.push("--glob",`!${e}/**`);for(let r of(await x()).nestedHazardMounts(e)){let n=a.default.relative(e,r);!n||n.startsWith("..")||a.default.isAbsolute(n)||(n=n.replace(/\\/g,"/"),t.push("--glob",`!${n}/**`))}return t}async function y(e){let t=["--json","--no-config","--no-messages","--no-follow","--hidden","--no-ignore","--max-filesize","2M","--crlf"];return(await x()).rootIsHazardMount(e)&&t.push("--no-mmap"),t.push(...await k(e)),t}function b(e){let t=e.replace(/\\/g,"/");return a.default.isAbsolute(t)||(t=a.default.normalize(t).replace(/\\/g,"/")).startsWith("..")||"."===t||(0,g.isDeniedRelPath)(t)?null:t}function R(e){try{e.kill("SIGTERM")}catch{}setTimeout(()=>{try{e.kill("SIGKILL")}catch{}},2e3)}function _(e,t,a,n,i,s,o){return new Promise(l=>{if(i.signal?.aborted)return void l({outcome:"aborted",code:null,stderr:"",truncated:!0});let u=(0,r.spawn)(e,t,{cwd:a,stdio:["ignore","pipe","pipe"],env:{...process.env,RIPGREP_CONFIG_PATH:""}}),c="",d="",p=!1,h=!1,f=null,m=e=>{p||(p=!0,clearTimeout(g),v?.removeEventListener("abort",x),l({outcome:e,code:f,stderr:d,truncated:h}))},g=setTimeout(()=>{h=!0,R(u),m("timeout")},i.timeoutMs),v=i.signal,x=()=>{h=!0,R(u),m("aborted")};v?.addEventListener("abort",x,{once:!0}),u.stdout?.on("data",e=>{if(c+=e.toString("utf8"),n){let e=c.split("\n");for(let t of(c=e.pop()??"",e)){let e;if(t.trim()){try{e=JSON.parse(t)}catch{continue}if("cap"===s(e)){h=!0,R(u),m("success");return}}}}else if(o){let e=c.split("\n");for(let t of(c=e.pop()??"",e))if(t&&"cap"===o(t)){h=!0,R(u),m("success");return}}}),u.stderr?.on("data",e=>{d+=e.toString("utf8")}),u.on("error",e=>{f=-1,d=e.message,m("error")}),u.on("close",e=>{if(f=e,!p){if(n&&c.trim())try{let e=JSON.parse(c.trim());s(e)}catch{}else!n&&o&&c&&o(c);0===e||1===e?m("success"):m("error")}})})}async function P(e,t,r={}){let a=t.trim();if(!a)return{ok:!0,results:[],truncated:!1};let n=a.split(/\s+/).slice(0,8).map(e=>e.endsWith("*")?e.slice(0,-1):e);if(0===n.length)return{ok:!0,results:[],truncated:!1};let i=await h();if(!i)return{ok:!1,reason:"unavailable",message:"ripgrep binary not found"};let s=new Map,o=r.limit??200,l=0,u=await y(e);for(let e of(u.push("--fixed-strings","--ignore-case"),n))u.push("-e",e);u.push("--",r.startPath??".");let c={timeoutMs:r.timeoutMs??1e4,signal:r.signal},d=await _(i,u,e,!0,c,e=>{if("match"!==e.type)return"continue";let t=e.data;if(!t)return"continue";let r=b(t.path.text);if(!r)return"continue";let a=(t.submatches??[]).map(e=>({start:e.start,end:e.end})),i=t.lines.text.replace(/\r?\n$/,""),u=m(i,a),c={path:r,line:t.line_number,col:a[0]?.start!=null?a[0].start+1:1,text:i,snippet:u},d=c.text.toLowerCase(),p=new Set;for(let e=0;e<n.length;e++)d.includes(n[e].toLowerCase())&&p.add(e);let h=s.get(r);for(let e of(h||(h={path:r,matches:[],tokenSet:new Set},s.set(r,h)),p))h.tokenSet.add(e);return(h.matches.push(c),++l>=o)?"cap":"continue"}),p=n.length,f=[];for(let e of s.values()){if(e.tokenSet.size<p)continue;let t=e.matches.sort((e,t)=>e.line-t.line)[0],r=e.tokenSet.size/p*1e3+Math.min(e.matches.length,100);f.push({path:e.path,matchCount:e.matches.length,tokensMatched:e.tokenSet.size,score:r,firstMatch:t})}return(f.sort((e,t)=>t.tokensMatched!==e.tokensMatched?t.tokensMatched-e.tokensMatched:t.matchCount!==e.matchCount?t.matchCount-e.matchCount:e.path.localeCompare(t.path)),"success"===d.outcome)?2===d.code?{ok:!1,reason:"error",message:d.stderr.trim().split("\n")[0]??"rg error",partialResults:f}:{ok:!0,results:f,truncated:d.truncated}:"timeout"===d.outcome?{ok:!1,reason:"timeout",message:"Search timed out",partialResults:f}:{ok:!1,reason:"error",message:d.stderr||"Search failed",partialResults:f}}async function S(e,t,r,a,n){var i,s;let o=[],l=a.limit??200,u=0,c=await y(t);n&&c.push("--pcre2"),c.push("-e",r),c.push("--",a.startPath??".");let d=await _(e,c,t,!0,{timeoutMs:a.timeoutMs??1e4,signal:a.signal},e=>{if("match"!==e.type)return"continue";let t=e.data;if(!t)return"continue";let r=b(t.path.text);if(!r)return"continue";let a=t.submatches??[];return(o.push({path:r,line:t.line_number,col:a[0]?.start!=null?a[0].start+1:1,text:t.lines.text.replace(/\r?\n$/,"")}),++u>=l)?"cap":"continue"});return{outcome:(i=d,s=o,"timeout"===i.outcome?{ok:!1,reason:"timeout",message:"Search timed out",partialResults:s}:"aborted"===i.outcome?{ok:!1,reason:"error",message:"Search aborted",partialResults:s}:"error"===i.outcome||2===i.code?{ok:!1,reason:"error",message:i.stderr.trim().split("\n")[0]??"rg error",partialResults:s}:{ok:!0,results:s,truncated:i.truncated}),stderr:d.stderr,code:d.code}}function C(e){let t=e.toLowerCase();return t.includes("look-around")||t.includes("lookaround")||t.includes("backreference")||t.includes("back-reference")||t.includes("lookahead")||t.includes("lookbehind")}function M(e){let t=e.toLowerCase();return t.includes("regex")||t.includes("pattern")||t.includes("parse")||t.includes("syntax")||t.includes("unclosed")||C(t)}async function E(e,t,r={}){let a=t.trim();if(!a)return{ok:!0,results:[],truncated:!1};let n=await h();if(!n)return{ok:!1,reason:"unavailable",message:"ripgrep binary not found"};let i=await S(n,e,a,r,!1);if(!i.outcome.ok&&"error"===i.outcome.reason&&C(i.stderr)){let t=await S(n,e,a,r,!0);return!t.outcome.ok&&"error"===t.outcome.reason&&M(t.stderr)?{ok:!1,reason:"invalid-pattern",message:t.stderr.trim().split("\n")[0]??"Invalid regex pattern",partialResults:t.outcome.partialResults}:t.outcome}return!i.outcome.ok&&"error"===i.outcome.reason&&M(i.stderr)?{ok:!1,reason:"invalid-pattern",message:i.stderr.trim().split("\n")[0]??"Invalid regex pattern",partialResults:i.outcome.partialResults}:i.outcome}async function j(e,t={}){let r=await h();if(!r)return{ok:!1,reason:"unavailable",message:"ripgrep binary not found"};let a=[],n=t.limit??2e3,i=["--no-config","--no-messages","--no-follow","--hidden","--no-ignore","--crlf"];(await x()).rootIsHazardMount(e)&&i.push("--no-mmap"),i.push(...await k(e)),i.push("--files","--",t.startPath??".");let s=await _(r,i,e,!1,{timeoutMs:t.timeoutMs??1e4,signal:t.signal},()=>"continue",e=>{let t=e.trim();if(!t)return"continue";let r=b(t);return r&&(a.push(r),a.length>=n)?"cap":"continue"});return"success"===s.outcome?{ok:!0,results:a,truncated:s.truncated}:{ok:!1,reason:"timeout"===s.outcome?"timeout":"error",message:s.stderr||"rg --files failed",partialResults:a}}e.s(["rgListFiles",0,j,"rgLiteralSearch",0,P,"rgRegexSearch",0,E],511745)},26004,e=>{"use strict";var t=e.i(364564),r=e.i(102095),a=e.i(691091),n=e.i(475331),i=e.i(490301),s=e.i(670943),o=e.i(690324),l=e.i(243133),u=e.i(404870),c=e.i(420180),d=e.i(867883),p=e.i(336708),h=e.i(682278),f=e.i(157569),m=e.i(844146),g=e.i(193695);e.i(105888);var v=e.i(530564),x=e.i(702414),w=e.i(660038),k=e.i(536654),y=e.i(912714),b=e.i(750227),R=e.i(593234),_=e.i(511745),P=e.i(883129);async function S(e,t,r={}){let a=Math.min(r.limit??50,200),n=r.signal,i=(0,R.slugFromPath)(t);if(!i)return{backlinks:[]};let s=await (0,_.rgLiteralSearch)(e,"[["+i,{limit:400,timeoutMs:5e3,signal:n});if(!s.ok){if("unavailable"===s.reason)return{backlinks:[],degraded:"rg-unavailable"};let r=s.partialResults??[];return{backlinks:await C(e,r,i,t,a,n),degraded:s.reason}}return{backlinks:await C(e,s.results,i,t,a,n),degraded:s.truncated?"truncated":void 0}}async function C(e,t,r,a,n,i){let s=[];for(let e of t)e.path!==a&&function(e){let t=e.toLowerCase();return t.endsWith(".md")||t.endsWith(".markdown")}(e.path)&&s.push(e.path);let o=new Map,l=0,u=0,c=!1,d=!1,p=()=>{c=!0};return i?.addEventListener("abort",p,{once:!0}),new Promise(t=>{let a=()=>{d||(d=!0,i?.removeEventListener("abort",p),t([...o.entries()].sort((e,t)=>e[0]-t[0]).map(([,e])=>e).slice(0,n)))},h=async()=>{for(;l<s.length&&o.size<n&&!c&&!d;){let t=l++,i=s[t];u++;try{let s=await M(e,i,r);if(d)return;if(s&&o.size<n&&(o.set(t,s),o.size>=n))return void a()}catch{}finally{u--}}0===u&&a()};if(0===s.length)return void a();let f=Math.min(8,s.length);for(let e=0;e<f;e++)h()})}async function M(e,t,r){var a;let n,i,s,o,l,u=b.default.join(e,t);try{let e=await (0,y.readFile)(u);n=e.subarray(0,Math.min(e.length,1048576)).toString("utf8")}catch{return null}let c=(0,R.extractWikiLinks)(n).find(e=>e.slug===r);if(!c)return null;let d=(a=c.lineText,s=-1!==(i=a.indexOf("]]",c.index))?i+2:a.length,l=(o=Buffer.byteLength(a.slice(0,c.index)))+Buffer.byteLength(a.slice(c.index,s)),{start:o,end:l});return{path:t,snippet:(0,P.buildSnippet)(c.lineText,[d],{window:80})}}let E=[".proof",".git"];async function j(e){let t=await (0,w.resolveWorkspaceForUser)(e);if(!t.ok)return x.NextResponse.json({error:t.code},{status:t.status});let r=new URL(e.url).searchParams.get("path")??"",a=await (0,k.resolveWorkspacePath)(t.rootDir,r,{allowMissing:!0,deniedSegments:E});if(!a)return x.NextResponse.json({error:"invalid path"},{status:400});if(!(0,R.slugFromPath)(r))return x.NextResponse.json({backlinks:[]});let n=await S(t.rootDir,a.relPath,{limit:50,signal:e.signal}),i={backlinks:n.backlinks};return n.degraded&&(i.degraded=n.degraded),x.NextResponse.json(i)}e.s(["GET",0,j,"runtime",0,"nodejs"],983155);var A=e.i(983155);let T=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/wiki/backlinks/route",pathname:"/api/wiki/backlinks",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/wiki/backlinks/route.ts",nextConfigOutput:"standalone",userland:A,...{}}),{workAsyncStorage:N,workUnitAsyncStorage:q,serverHooks:I}=T;async function L(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),T.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/wiki/backlinks/route";x=x.replace(/\/index$/,"")||"/";let w=await T.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:k,params:y,nextConfig:b,parsedUrl:R,isDraftMode:_,prerenderManifest:P,routerServerContext:S,isOnDemandRevalidate:C,revalidateOnlyGenerated:M,resolvedPathname:E,clientReferenceManifest:j,serverActionsManifest:A}=w,N=(0,o.normalizeAppPath)(x),q=!!(P.dynamicRoutes[N]||P.routes[E]),I=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,R,!1):t.end("This page could not be found"),null);if(q&&!_){let e=!!P.routes[E],t=P.dynamicRoutes[N];if(t&&!1===t.fallback&&!e){if(b.adapterPath)return await I();throw new g.NoFallbackError}}let L=null;!q||T.isDev||_||(L="/index"===(L=E)?"/":L);let z=!0===T.isDev||!q,O=q&&!z;A&&j&&(0,s.setManifestsSingleton)({page:x,clientReferenceManifest:j,serverActionsManifest:A});let H=e.method||"GET",W=(0,i.getTracer)(),$=W.getActiveScopeSpan(),D=!!(null==S?void 0:S.isWrappedByNextServer),F=!!(0,n.getRequestMeta)(e,"minimalMode"),U=(0,n.getRequestMeta)(e,"incrementalCache")||await T.getIncrementalCache(e,b,P,F);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let B={params:y,previewProps:P.preview,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts},cacheComponents:!!b.cacheComponents,supportsDynamicResponse:z,incrementalCache:U,cacheLifeProfiles:b.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>T.onRequestError(e,t,a,n,S)},sharedContext:{buildId:k}},K=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),V=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let n,s=async e=>T.handle(V,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=W.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${H} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${H} ${x}`)}),o=async n=>{var i,o;let l=async({previousCacheEntry:r})=>{try{if(!F&&C&&M&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await s(n);e.fetchMetrics=B.renderOpts.fetchMetrics;let o=B.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let l=B.renderOpts.collectedTags;if(!q)return await (0,p.sendResponse)(K,G,i,B.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(i.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,a=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await T.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:O,isOnDemandRevalidate:C})},!1,S),t}},u=await T.handleResponse({req:e,nextConfig:b,cacheKey:L,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:M,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:F});if(!q)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});F||t.setHeader("x-nextjs-cache",C?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return F&&q||c.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,f.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(K,G,new Response(u.value.body,{headers:c,status:u.value.status||200})),null};D&&$?await o($):(n=W.getActiveScopeSpan(),await W.withPropagatedContext(e.headers,()=>W.trace(c.BaseServerSpan.handleRequest,{spanName:`${H} ${x}`,kind:i.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},o),void 0,!D))}catch(t){if(t instanceof g.NoFallbackError||await T.onRequestError(e,t,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:O,isOnDemandRevalidate:C})},!1,S),q)throw t;return await (0,p.sendResponse)(K,G,new Response(null,{status:500})),null}}e.s(["handler",0,L,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:N,workUnitAsyncStorage:q})},"routeModule",0,T,"serverHooks",0,I,"workAsyncStorage",0,N,"workUnitAsyncStorage",0,q],26004)},168315,e=>{e.v(t=>Promise.all(["server/chunks/0sag_@better-auth_memory-adapter_dist_index_mjs_0pvj6im._.js"].map(t=>e.l(t))).then(()=>t(862112)))},396690,e=>{e.v(t=>Promise.all(["server/chunks/032z_better-auth_dist_adapters_kysely-adapter_index_mjs_0.uqexi._.js"].map(t=>e.l(t))).then(()=>t(320652)))},580632,e=>{e.v(e=>Promise.resolve().then(()=>e(270406)))},947559,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_bun-sqlite-dialect-DzNwOpKv_mjs_0z1z6m4._.js"].map(t=>e.l(t))).then(()=>t(495181)))},715018,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_node-sqlite-dialect_mjs_0qqlvhl._.js"].map(t=>e.l(t))).then(()=>t(698370)))},146843,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_d1-sqlite-dialect-C2B7YsIT_mjs_0wynrz3._.js"].map(t=>e.l(t))).then(()=>t(143740)))},84040,e=>{e.v(t=>Promise.all(["server/chunks/0p91_next_0h94sj1._.js"].map(t=>e.l(t))).then(()=>t(815068)))},526888,e=>{e.v(e=>Promise.resolve().then(()=>e(28962)))},893412,e=>{e.v(e=>Promise.resolve().then(()=>e(499465)))},687903,e=>{e.v(e=>Promise.resolve().then(()=>e(912714)))},267328,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_fs_mounts_ts_0ksy80l._.js"].map(t=>e.l(t))).then(()=>t(60845)))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0e~2gkf._.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
module.exports=[402662,e=>{"use strict";var t=e.i(702414);e.s(["checkOrigin",0,function(e){let r=e.method.toUpperCase();if("GET"===r||"HEAD"===r||"OPTIONS"===r)return null;let n=e.headers.get("origin"),s=e.headers.get("referer");if(!n&&!s)return null;let a=function(e){let t=Array.from(new Set(["localhost","127.0.0.1",e.split(":")[0],...(process.env.WIKI_OWNER_HOSTS??"").split(",").map(e=>e.trim()).filter(Boolean)])),r=["",":3000",":3003"];e.includes(":")&&r.push(":"+e.split(":")[1]);let n=new Set;for(let e of t)for(let t of["http","https"])for(let s of r)n.add(`${t}://${e}${s}`);return n}(e.headers.get("host")??"");if(n)return a.has(n)?null:t.NextResponse.json({error:"FORBIDDEN",message:"Bad origin"},{status:403});if(s){try{let{protocol:e,host:t}=new URL(s);if(a.has(`${e}//${t}`))return null}catch{}return t.NextResponse.json({error:"FORBIDDEN",message:"Bad referer"},{status:403})}return null}])},761095,(e,t,r)=>{t.exports=e.x("node:net",()=>require("node:net"))},345212,e=>{"use strict";var t=e.i(874533),r=e.i(902157),n=e.i(761095),s=e.i(750227);let a=new Map;function o(e){return`${e.workspaceId}\0${e.relPath}`}function i(e,t){return new Promise(r=>{let s=(0,n.createConnection)(e,t);s.setTimeout(800),s.on("connect",()=>{s.destroy(),r(!0)}),s.on("error",()=>{s.destroy(),r(!1)}),s.on("timeout",()=>{s.destroy(),r(!1)})})}async function l(e){let[t,r]=await Promise.all([i(e,"127.0.0.1"),i(e,"::1")]);return t||r}async function u(e,t=3e4){let r=Date.now()+t;for(;Date.now()<r&&!e.abort.signal.aborted;){if(await l(e.port))return e.port;await new Promise(e=>setTimeout(e,400))}return null}function p(e){let t=s.default.join(e,"package.json");if(!(0,r.existsSync)(t))return null;try{return JSON.parse((0,r.readFileSync)(t,"utf-8"))}catch{return null}}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){return c(t,"start")?"start":c(t,"preview")&&(0,r.existsSync)(s.default.join(e,"dist"))?"preview":c(t,"dev")?"dev":null}function h(){let e=s.default.dirname(process.execPath),t=process.env.PATH??"";return t.split(s.default.delimiter).includes(e)?t:`${e}${s.default.delimiter}${t}`}async function f(e,i,l,f){var v;let g=o({workspaceId:e,relPath:i}),m=a.get(g);if(m&&"stopped"!==m.status&&"error"!==m.status&&m.process)return{port:m.port};m&&(m.abort.abort(),a.delete(g));let R=await new Promise((e,t)=>{let r=(0,n.createServer)();r.listen(0,"127.0.0.1",()=>{let t=r.address(),n="object"==typeof t&&t?t.port:0;r.close(()=>e(n))}),r.on("error",t)}),w=(0,r.existsSync)(s.default.join(l,"pnpm-lock.yaml"))?"pnpm":(0,r.existsSync)(s.default.join(l,"yarn.lock"))?"yarn":(0,r.existsSync)(s.default.join(l,"bun.lockb"))||(0,r.existsSync)(s.default.join(l,"bun.lock"))?"bun":"npm",y=function(e,t,r,n){let s=p(e);if(!s)return null;let a=s.scripts??{},o=Object.keys({...s.dependencies,...s.devDependencies}).some(e=>"vite"===e||e.includes("vite")),i=["--port",String(r)],l=e=>({bin:t,args:"npm"===t?["run",e,"--",...i]:["run",e,...i],isVite:o});if(n)return c(a,n)?l(n):null;let u=d(e,a);return u?l(u):s.main?{bin:"node",args:[s.main,...i],isVite:!1}:null}(l,w,R,f);if(!y)throw Error("No runnable script found in package.json (need start, preview, or dev)");let _={workspaceId:e,relPath:i,port:R,process:null,status:"installing",logs:[],generation:1,abort:new AbortController};a.set(g,_);let E=e=>{_.logs.push(e),_.logs.length>200&&_.logs.shift()};try{(0,r.existsSync)(s.default.join(l,"node_modules"))||(E(`[wiki-viewer] Running ${w} install…`),await (v=_.abort.signal,new Promise((e,r)=>{if(v.aborted)return void r(Error("Install aborted"));let n=[],s=e=>{E(e),n.push(e)},a=(0,t.spawn)(w,["install"],{cwd:l,stdio:"pipe",env:{...process.env,PATH:h()}}),o=()=>{try{a.kill("SIGTERM")}catch{}};v.addEventListener("abort",o,{once:!0});let i=e=>{for(let t of e.toString().split("\n")){let e=t.trim();e&&s(e)}};a.stdout?.on("data",i),a.stderr?.on("data",i),a.on("error",e=>{v.removeEventListener("abort",o),r(e)}),a.on("exit",t=>{if(v.removeEventListener("abort",o),0===t)e();else{let e=n.slice(-20).join("\n");r(Error(`${w} install failed (exit ${t}):
|
|
2
|
+
${e}`))}})}))),_.status="starting",E(`[wiki-viewer] Starting on port ${R}: ${y.bin} ${y.args.join(" ")}`);let e=(0,t.spawn)(y.bin,y.args,{cwd:l,stdio:"pipe",env:{...process.env,PATH:h(),PORT:String(R),VITE_PORT:String(R)}});_.process=e;let n=e=>{for(let t of e.toString().split("\n")){let e=t.trim();e&&E(e)}};return e.stdout?.on("data",n),e.stderr?.on("data",n),e.on("exit",e=>{a.get(g)!==_||"stopped"!==_.status&&(_.process=null,_.status=0===e||null===e?"stopped":"error",_.error=e?`Process exited with code ${e}`:void 0)}),u(_).then(t=>{if(a.get(g)===_&&!_.abort.signal.aborted)if(t)_.status="running";else{_.status="error",_.error="Port never became reachable (30 s timeout)";try{e.kill("SIGTERM")}catch{}}}),{port:R}}catch(e){throw a.get(g)===_&&(_.status="error",_.error=e instanceof Error?e.message:String(e)),e}}e.s(["getScripts",0,function(e){let t=p(e);if(!t)return{scripts:[],defaultScript:null};let r=t.scripts??{};return{scripts:Object.keys(r),defaultScript:d(e,r)}},"getStatus",0,function(e,t){let r=a.get(o({workspaceId:e,relPath:t}));return r?{status:r.status,port:r.port||void 0,error:r.error,logs:r.logs}:{status:"stopped",logs:[]}},"resolveByPrefix",0,function(e,t){for(let r=t.length;r>0;r--){let n=t.slice(0,r).join("/"),s=a.get(o({workspaceId:e,relPath:n}));if(s&&"running"===s.status&&s.port){let e="/"+t.slice(r).join("/");return{relPath:n,port:s.port,rest:e}}}return null},"startApp",0,f,"stopApp",0,function(e,t){let r=o({workspaceId:e,relPath:t}),n=a.get(r);if(!n)return;n.abort.abort();let s=n.process;if(n.process=null,a.delete(r),!s)return;let i=setTimeout(()=>{try{!s.killed&&s.pid&&s.kill("SIGKILL")}catch{}},2e3);s.once("exit",()=>clearTimeout(i));try{!s.killed&&s.pid&&s.kill("SIGTERM")}catch{}}])},80520,e=>{"use strict";var t=e.i(364564),r=e.i(102095),n=e.i(691091),s=e.i(475331),a=e.i(490301),o=e.i(670943),i=e.i(690324),l=e.i(243133),u=e.i(404870),p=e.i(420180),c=e.i(867883),d=e.i(336708),h=e.i(682278),f=e.i(157569),v=e.i(844146),g=e.i(193695);e.i(105888);var m=e.i(530564),R=e.i(702414),w=e.i(402662),y=e.i(660038),_=e.i(359211),E=e.i(345212);function x(e){return"1"===process.env.WIKI_NO_AUTH||"1"===process.env.WIKI_ALLOW_APP_RUNNER||e.isAdmin}async function b(e){let t=await (0,y.resolveWorkspaceForUser)(e);if(!t.ok)return R.NextResponse.json({error:t.code},{status:t.status});let{searchParams:r}=new URL(e.url),n=r.get("path")??"",s=(0,E.getStatus)(t.ws.id,n),a=(0,_.safeWorkspacePath)(t.rootDir,n),o=a?(0,E.getScripts)(a):{scripts:[],defaultScript:null};return R.NextResponse.json({...s,...o})}async function S(e){let t=(0,w.checkOrigin)(e);if(t)return t;let r=await (0,y.resolveWorkspaceForUser)(e,"write");if(!r.ok)return R.NextResponse.json({error:r.code},{status:r.status});let{rootDir:n}=r;if(!x(r))return R.NextResponse.json({error:"ADMIN_REQUIRED"},{status:403});let s=await e.json(),a=s.path;if(!a||"string"!=typeof a)return R.NextResponse.json({error:"Missing path"},{status:400});let o=(0,_.safeWorkspacePath)(n,a);if(!o)return R.NextResponse.json({error:"Invalid path"},{status:400});let i="string"==typeof s.script?s.script:void 0;try{let e=await (0,E.startApp)(r.ws.id,a,o,i);return R.NextResponse.json(e)}catch(e){return R.NextResponse.json({error:String(e)},{status:500})}}async function k(e){let t=(0,w.checkOrigin)(e);if(t)return t;let r=await (0,y.resolveWorkspaceForUser)(e,"write");if(!r.ok)return R.NextResponse.json({error:r.code},{status:r.status});if(!x(r))return R.NextResponse.json({error:"ADMIN_REQUIRED"},{status:403});let n=(await e.json()).path;return n&&"string"==typeof n?((0,E.stopApp)(r.ws.id,n),R.NextResponse.json({ok:!0})):R.NextResponse.json({error:"Missing path"},{status:400})}e.s(["DELETE",0,k,"GET",0,b,"POST",0,S],41743);var P=e.i(41743);let j=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/wiki/app/route",pathname:"/api/wiki/app",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/wiki/app/route.ts",nextConfigOutput:"standalone",userland:P,...{}}),{workAsyncStorage:N,workUnitAsyncStorage:A,serverHooks:T}=j;async function C(e,t,n){n.requestMeta&&(0,s.setRequestMeta)(e,n.requestMeta),j.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/wiki/app/route";R=R.replace(/\/index$/,"")||"/";let w=await j.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:y,params:_,nextConfig:E,parsedUrl:x,isDraftMode:b,prerenderManifest:S,routerServerContext:k,isOnDemandRevalidate:P,revalidateOnlyGenerated:N,resolvedPathname:A,clientReferenceManifest:T,serverActionsManifest:C}=w,O=(0,i.normalizeAppPath)(R),I=!!(S.dynamicRoutes[O]||S.routes[A]),q=async()=>((null==k?void 0:k.render404)?await k.render404(e,t,x,!1):t.end("This page could not be found"),null);if(I&&!b){let e=!!S.routes[A],t=S.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(E.adapterPath)return await q();throw new g.NoFallbackError}}let D=null;!I||j.isDev||b||(D="/index"===(D=A)?"/":D);let $=!0===j.isDev||!I,U=I&&!$;C&&T&&(0,o.setManifestsSingleton)({page:R,clientReferenceManifest:T,serverActionsManifest:C});let H=e.method||"GET",M=(0,a.getTracer)(),L=M.getActiveScopeSpan(),F=!!(null==k?void 0:k.isWrappedByNextServer),B=!!(0,s.getRequestMeta)(e,"minimalMode"),K=(0,s.getRequestMeta)(e,"incrementalCache")||await j.getIncrementalCache(e,E,S,B);null==K||K.resetRequestCache(),globalThis.__incrementalCache=K;let W={params:_,previewProps:S.preview,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:$,incrementalCache:K,cacheLifeProfiles:E.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,s)=>j.onRequestError(e,t,n,s,k)},sharedContext:{buildId:y}},G=new l.NodeNextRequest(e),z=new l.NodeNextResponse(t),V=u.NextRequestAdapter.fromNodeNextRequest(G,(0,u.signalFromNodeResponse)(t));try{let s,o=async e=>j.handle(V,W).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=M.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${H} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),s&&s!==e&&(s.setAttribute("http.route",n),s.updateName(t))}else e.updateName(`${H} ${R}`)}),i=async s=>{var a,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&P&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await o(s);e.fetchMetrics=W.renderOpts.fetchMetrics;let i=W.renderOpts.pendingWaitUntil;i&&n.waitUntil&&(n.waitUntil(i),i=void 0);let l=W.renderOpts.collectedTags;if(!I)return await (0,d.sendResponse)(G,z,a,W.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);l&&(t[v.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,n=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:W.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await j.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:P})},!1,k),t}},u=await j.handleResponse({req:e,nextConfig:E,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:N,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:B});if(!I)return null;if((null==u||null==(a=u.value)?void 0:a.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",P?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return B&&I||p.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,f.getCacheControlHeader)(u.cacheControl)),await (0,d.sendResponse)(G,z,new Response(u.value.body,{headers:p,status:u.value.status||200})),null};F&&L?await i(L):(s=M.getActiveScopeSpan(),await M.withPropagatedContext(e.headers,()=>M.trace(p.BaseServerSpan.handleRequest,{spanName:`${H} ${R}`,kind:a.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},i),void 0,!F))}catch(t){if(t instanceof g.NoFallbackError||await j.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:P})},!1,k),I)throw t;return await (0,d.sendResponse)(G,z,new Response(null,{status:500})),null}}e.s(["handler",0,C,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:N,workUnitAsyncStorage:A})},"routeModule",0,j,"serverHooks",0,T,"workAsyncStorage",0,N,"workUnitAsyncStorage",0,A],80520)},168315,e=>{e.v(t=>Promise.all(["server/chunks/0sag_@better-auth_memory-adapter_dist_index_mjs_0pvj6im._.js"].map(t=>e.l(t))).then(()=>t(862112)))},396690,e=>{e.v(t=>Promise.all(["server/chunks/032z_better-auth_dist_adapters_kysely-adapter_index_mjs_0.uqexi._.js"].map(t=>e.l(t))).then(()=>t(320652)))},580632,e=>{e.v(e=>Promise.resolve().then(()=>e(270406)))},947559,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_bun-sqlite-dialect-DzNwOpKv_mjs_0z1z6m4._.js"].map(t=>e.l(t))).then(()=>t(495181)))},715018,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_node-sqlite-dialect_mjs_0qqlvhl._.js"].map(t=>e.l(t))).then(()=>t(698370)))},146843,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_d1-sqlite-dialect-C2B7YsIT_mjs_0wynrz3._.js"].map(t=>e.l(t))).then(()=>t(143740)))},84040,e=>{e.v(t=>Promise.all(["server/chunks/0p91_next_0h94sj1._.js"].map(t=>e.l(t))).then(()=>t(815068)))},526888,e=>{e.v(e=>Promise.resolve().then(()=>e(28962)))},893412,e=>{e.v(e=>Promise.resolve().then(()=>e(499465)))},687903,e=>{e.v(e=>Promise.resolve().then(()=>e(912714)))}];
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0f2frhc._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[583627,e=>{"use strict";var t=e.i(798003),r=e.i(254226);function s(){return(process.env.WIKI_ADMIN_EMAILS??"").split(",").map(e=>e.trim().toLowerCase()).filter(Boolean)}async function n(e,r){if(r){let e=s();if(e.length>0&&e.includes(r.toLowerCase()))return!0}return((await (0,t.readConfig)()).adminUserIds??[]).includes(e)}async function a(){return(await (0,t.readConfig)()).adminUserIds??[]}async function i(e){await (0,t.updateConfig)(t=>{let r=t.adminUserIds??[];return r.includes(e)?t:{...t,adminUserIds:[...r,e]}})}async function o(e){let r=s().length>0,n=!1;if(await (0,t.updateConfig)(t=>{let s=(t.adminUserIds??[]).filter(t=>t!==e);return 0!==s.length||r?{...t,adminUserIds:s}:(n=!0,t)}),n)throw Error("LAST_ADMIN: cannot remove the last admin with no WIKI_ADMIN_EMAILS configured")}async function l(e){if(s().length>0||r.SYNTHETIC_USER_IDS.has(e)||((await (0,t.readConfig)()).adminUserIds??[]).length>0)return;let n=!1;await (0,t.updateConfig)(t=>(t.adminUserIds??[]).length>0?t:(n=!0,{...t,adminUserIds:[e]})),n&&console.log(`[wiki-viewer] Bootstrap: first user ${e} promoted to admin`)}async function u(e){if("1"===process.env.WIKI_NO_AUTH)return{ok:!0,user:{id:"local",email:"local@localhost",name:"local"}};let t=await (0,r.requireUser)(e);return t.ok?await n(t.user.id,t.user.email)?{ok:!0,user:t.user}:{ok:!1,status:403,code:"ADMIN_REQUIRED"}:{ok:!1,status:401,code:"UNAUTHORIZED"}}e.s(["addAdmin",0,i,"ensureBootstrapAdmin",0,l,"isAdmin",0,n,"listAdmins",0,a,"removeAdmin",0,o,"requireAdmin",0,u])},874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},256294,296555,e=>{"use strict";let t;var r=e.i(874533),s=e.i(812057),n=e.i(912714),a=e.i(750227),i=e.i(660526);e.i(902157);let o=RegExp("[;|&$`<>(){}\\n\\r\\0]");function l(e){let{target:t,mountpoint:r,port:s}=e,n=t.user?`${t.user}@`:"",a=[`${n}${t.host}:${t.remotePath}`,r];s&&Number.isInteger(Number(s))&&Number(s)>0&&65536>Number(s)&&a.push("-p",String(s));let i=e.authMethod??"agent";!e.authMethod&&(null!=e.password?i="password":e.keyPath&&(i="keyfile"));let o=["reconnect","ServerAliveInterval=15","ServerAliveCountMax=3","compression=yes","cache=yes","kernel_cache","StrictHostKeyChecking=accept-new","BatchMode=yes"];if(e.readOnly&&o.push("ro"),"keyfile"===i&&e.keyPath&&(o.push(`IdentityFile=${e.keyPath}`),o.push("IdentitiesOnly=yes")),"password"===i){let e=o.indexOf("BatchMode=yes");e>=0&&o.splice(e,1),o.push("password_stdin"),o.push("PreferredAuthentications=password,keyboard-interactive"),o.push("PubkeyAuthentication=no"),o.push("NumberOfPasswordPrompts=1")}return e.extraOptions&&o.push(...e.extraOptions),a.push("-o",o.join(",")),a}e.s(["buildSshfsArgs",0,l,"isValidKeyPath",0,function(e){return!(!e||o.test(e)||e.includes(".."))&&(e.startsWith("/")||e.startsWith("~/"))},"parseSshTarget",0,function(e){let t;if(!e||o.test(e))return null;let r=e.trim(),s=r.indexOf(":");if(s<=0)return null;let n=r.slice(0,s),a=r.slice(s+1);if(!a.startsWith("/")||a.includes(".."))return null;let i=n,l=n.indexOf("@");return l>=0&&(t=n.slice(0,l),i=n.slice(l+1),!t)?null:i&&/^[a-zA-Z0-9.\-]+$/.test(i)&&(!t||/^[a-zA-Z0-9._\-]+$/.test(t))?{user:t,host:i,remotePath:a}:null}],296555);let u=(0,s.promisify)(r.execFile);function d(){return a.default.join(i.default.homedir(),".wiki-viewer","mounts")}async function c(){if(!0!==t)try{await u("sshfs",["--version"]),t=!0}catch{throw Error("sshfs binary not found. Install sshfs + FUSE (e.g. `apt install sshfs`, `brew install macfuse sshfs`) and ensure it is on PATH.")}}async function p(t){var r;let s=a.default.resolve(t),i=!1;try{i=(await (0,n.readFile)("/proc/mounts","utf8")).split("\n").some(e=>{let t=e.split(" ");return t[1]===s&&/fuse/.test(t[2]??"")})}catch{i=!1}return!!i&&(r=s,new Promise(t=>{let s=!1,n=setTimeout(()=>{s||(s=!0,t(!1))},4e3);e.A(687903).then(({readdir:e})=>e(r)).then(()=>{s||(s=!0,clearTimeout(n),t(!0))}).catch(()=>{s||(s=!0,clearTimeout(n),t(!1))})}))}async function h(e){await c(),await (0,n.mkdir)(e.mountpoint,{recursive:!0});let t=l(e);if(await new Promise((s,n)=>{let a=(0,r.spawn)("sshfs",t,{stdio:["pipe","ignore","pipe"]}),i="",o=setTimeout(()=>{a.kill("SIGKILL"),n(Error("sshfs mount timed out after 25s."))},25e3);a.stderr?.on("data",e=>{i+=e.toString()}),a.on("error",e=>{clearTimeout(o),n(e.message.includes("ENOENT")?Error("sshfs binary not found on PATH."):e)}),a.on("close",e=>{clearTimeout(o),0===e?s():n(Error(`sshfs exited ${e}: ${i.trim()||"mount failed"}`))}),"password"===e.authMethod&&a.stdin?.write((e.password??"")+"\n"),a.stdin?.end()}),!await p(e.mountpoint))throw Error("sshfs reported success but the mount is not live.")}async function m(e){let t=a.default.resolve(e);for(let[e,r]of[["fusermount",["-u","-z",t]],["umount",[t]]])try{await u(e,r);break}catch{}try{await (0,n.rmdir)(t)}catch{}}e.s(["assertSshfsAvailable",0,c,"isMounted",0,p,"mountSshfs",0,h,"mountpointFor",0,function(e){return a.default.join(d(),e)},"mountsDir",0,d,"unmountSshfs",0,m],256294)},402662,e=>{"use strict";var t=e.i(702414);e.s(["checkOrigin",0,function(e){let r=e.method.toUpperCase();if("GET"===r||"HEAD"===r||"OPTIONS"===r)return null;let s=e.headers.get("origin"),n=e.headers.get("referer");if(!s&&!n)return null;let a=function(e){let t=Array.from(new Set(["localhost","127.0.0.1",e.split(":")[0],...(process.env.WIKI_OWNER_HOSTS??"").split(",").map(e=>e.trim()).filter(Boolean)])),r=["",":3000",":3003"];e.includes(":")&&r.push(":"+e.split(":")[1]);let s=new Set;for(let e of t)for(let t of["http","https"])for(let n of r)s.add(`${t}://${e}${n}`);return s}(e.headers.get("host")??"");if(s)return a.has(s)?null:t.NextResponse.json({error:"FORBIDDEN",message:"Bad origin"},{status:403});if(n){try{let{protocol:e,host:t}=new URL(n);if(a.has(`${e}//${t}`))return null}catch{}return t.NextResponse.json({error:"FORBIDDEN",message:"Bad referer"},{status:403})}return null}])},365293,e=>{"use strict";var t=e.i(364564),r=e.i(102095),s=e.i(691091),n=e.i(475331),a=e.i(490301),i=e.i(670943),o=e.i(690324),l=e.i(243133),u=e.i(404870),d=e.i(420180),c=e.i(867883),p=e.i(336708),h=e.i(682278),m=e.i(157569),f=e.i(844146),v=e.i(193695);e.i(105888);var w=e.i(530564),g=e.i(912714),y=e.i(702414),R=e.i(402662),_=e.i(254226),k=e.i(583627),A=e.i(798003),E=e.i(359211);async function N(e){if("1"===process.env.WIKI_NO_AUTH){await (0,E.migrateConfigToWorkspaces)();let e=(await (0,E.listWorkspaces)()).map(E.sanitizeWorkspace);return y.NextResponse.json({workspaces:e,isAdmin:!0})}let t=await (0,_.requireUser)(e);if(!t.ok)return y.NextResponse.json({error:"UNAUTHORIZED"},{status:401});await (0,k.ensureBootstrapAdmin)(t.user.id),await (0,E.migrateConfigToWorkspaces)();let r=await (0,k.isAdmin)(t.user.id,t.user.email),s=(await (0,E.listWorkspaces)()).filter(e=>(0,E.userCanAccess)(e,t.user.id,r)).map(E.sanitizeWorkspace);return y.NextResponse.json({workspaces:s,isAdmin:r})}async function x(e){let t=(0,R.checkOrigin)(e);if(t)return t;let r=await (0,k.requireAdmin)(e);if(!r.ok)return y.NextResponse.json({error:r.code},{status:r.status});let s=await e.json();if(s.sshTarget){let e,t=s.sshAuthMethod??"agent";if(!["agent","keyfile","password"].includes(t))return y.NextResponse.json({error:"Invalid auth method"},{status:400});if(void 0!==s.sshPort&&(!Number.isInteger(e=Number(s.sshPort))||e<1||e>65535))return y.NextResponse.json({error:"Invalid port"},{status:400});try{let n=await (0,E.createSshWorkspace)({target:s.sshTarget,port:e,authMethod:t,keyPath:s.sshKeyPath?.trim()||void 0,password:s.sshPassword||void 0,readOnly:!0===s.sshReadOnly,name:s.name?.trim()||void 0,createdBy:r.user.id});return y.NextResponse.json({ok:!0,workspace:(0,E.sanitizeWorkspace)(n)})}catch(t){let e=t instanceof Error?t.message:String(t);return y.NextResponse.json({error:e},{status:400})}}if(s.remoteUrl){if(void 0!==s.subpath&&"string"!=typeof s.subpath)return y.NextResponse.json({error:"Invalid subpath"},{status:400});let e=s.subpath?.trim()||void 0;if(e&&(e.startsWith("/")||e.includes("..")||/[;|&$`<>(){}\n\0]/.test(e)))return y.NextResponse.json({error:"Invalid subpath"},{status:400});let t=await (0,A.readConfig)();try{let n=await (0,E.createGitWorkspace)({remoteUrl:s.remoteUrl,branch:s.branch?.trim()||void 0,token:s.token||void 0,username:s.username?.trim()||void 0,name:s.name?.trim()||void 0,createdBy:r.user.id,allowedHosts:t.git?.allowedHosts,allowInsecureHttp:t.git?.allowInsecureHttp,subpath:e});return y.NextResponse.json({ok:!0,workspace:(0,E.sanitizeWorkspace)(n)})}catch(t){let e=t instanceof Error?t.message:String(t);return y.NextResponse.json({error:e},{status:400})}}let n=s.rootDir?.trim();if(!n)return y.NextResponse.json({error:"Missing rootDir"},{status:400});try{if(!(await (0,g.stat)(n)).isDirectory())return y.NextResponse.json({error:"Not a directory"},{status:400})}catch{return y.NextResponse.json({error:"Directory not found"},{status:404})}let a=await (0,E.createWorkspace)({rootDir:n,name:s.name?.trim()||void 0,createdBy:r.user.id});return y.NextResponse.json({ok:!0,workspace:(0,E.sanitizeWorkspace)(a)})}e.s(["GET",0,N,"POST",0,x,"runtime",0,"nodejs"],401923);var I=e.i(401923);let b=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/system/workspaces/route",pathname:"/api/system/workspaces",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/system/workspaces/route.ts",nextConfigOutput:"standalone",userland:I,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:P,serverHooks:T}=b;async function S(e,t,s){s.requestMeta&&(0,n.setRequestMeta)(e,s.requestMeta),b.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/system/workspaces/route";g=g.replace(/\/index$/,"")||"/";let y=await b.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!y)return t.statusCode=400,t.end("Bad Request"),null==s.waitUntil||s.waitUntil.call(s,Promise.resolve()),null;let{buildId:R,params:_,nextConfig:k,parsedUrl:A,isDraftMode:E,prerenderManifest:N,routerServerContext:x,isOnDemandRevalidate:I,revalidateOnlyGenerated:C,resolvedPathname:P,clientReferenceManifest:T,serverActionsManifest:S}=y,O=(0,o.normalizeAppPath)(g),j=!!(N.dynamicRoutes[O]||N.routes[P]),U=async()=>((null==x?void 0:x.render404)?await x.render404(e,t,A,!1):t.end("This page could not be found"),null);if(j&&!E){let e=!!N.routes[P],t=N.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(k.adapterPath)return await U();throw new v.NoFallbackError}}let q=null;!j||b.isDev||E||(q="/index"===(q=P)?"/":q);let D=!0===b.isDev||!j,H=j&&!D;S&&T&&(0,i.setManifestsSingleton)({page:g,clientReferenceManifest:T,serverActionsManifest:S});let M=e.method||"GET",$=(0,a.getTracer)(),W=$.getActiveScopeSpan(),B=!!(null==x?void 0:x.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),F=(0,n.getRequestMeta)(e,"incrementalCache")||await b.getIncrementalCache(e,k,N,K);null==F||F.resetRequestCache(),globalThis.__incrementalCache=F;let z={params:_,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!k.experimental.authInterrupts},cacheComponents:!!k.cacheComponents,supportsDynamicResponse:D,incrementalCache:F,cacheLifeProfiles:k.cacheLife,waitUntil:s.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,s,n)=>b.onRequestError(e,t,s,n,x)},sharedContext:{buildId:R}},L=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),Z=u.NextRequestAdapter.fromNodeNextRequest(L,(0,u.signalFromNodeResponse)(t));try{let n,i=async e=>b.handle(Z,z).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=r.get("next.route");if(s){let t=`${M} ${s}`;e.setAttributes({"next.route":s,"http.route":s,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",s),n.updateName(t))}else e.updateName(`${M} ${g}`)}),o=async n=>{var a,o;let l=async({previousCacheEntry:r})=>{try{if(!K&&I&&C&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await i(n);e.fetchMetrics=z.renderOpts.fetchMetrics;let o=z.renderOpts.pendingWaitUntil;o&&s.waitUntil&&(s.waitUntil(o),o=void 0);let l=z.renderOpts.collectedTags;if(!j)return await (0,p.sendResponse)(L,G,a,z.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);l&&(t[f.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==z.renderOpts.collectedRevalidate&&!(z.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&z.renderOpts.collectedRevalidate,s=void 0===z.renderOpts.collectedExpire||z.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:z.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:s}}}}catch(t){throw(null==r?void 0:r.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:I})},!1,x),t}},u=await b.handleResponse({req:e,nextConfig:k,cacheKey:q,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:I,revalidateOnlyGenerated:C,responseGenerator:l,waitUntil:s.waitUntil,isMinimalMode:K});if(!j)return null;if((null==u||null==(a=u.value)?void 0:a.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",I?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),E&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return K&&j||d.delete(f.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,m.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(L,G,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};B&&W?await o(W):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${M} ${g}`,kind:a.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},o),void 0,!B))}catch(t){if(t instanceof v.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:I})},!1,x),j)throw t;return await (0,p.sendResponse)(L,G,new Response(null,{status:500})),null}}e.s(["handler",0,S,"patchFetch",0,function(){return(0,s.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:P})},"routeModule",0,b,"serverHooks",0,T,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,P],365293)},168315,e=>{e.v(t=>Promise.all(["server/chunks/0sag_@better-auth_memory-adapter_dist_index_mjs_0pvj6im._.js"].map(t=>e.l(t))).then(()=>t(862112)))},396690,e=>{e.v(t=>Promise.all(["server/chunks/032z_better-auth_dist_adapters_kysely-adapter_index_mjs_0.uqexi._.js"].map(t=>e.l(t))).then(()=>t(320652)))},580632,e=>{e.v(e=>Promise.resolve().then(()=>e(270406)))},947559,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_bun-sqlite-dialect-DzNwOpKv_mjs_0z1z6m4._.js"].map(t=>e.l(t))).then(()=>t(495181)))},715018,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_node-sqlite-dialect_mjs_0qqlvhl._.js"].map(t=>e.l(t))).then(()=>t(698370)))},146843,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_d1-sqlite-dialect-C2B7YsIT_mjs_0wynrz3._.js"].map(t=>e.l(t))).then(()=>t(143740)))},84040,e=>{e.v(t=>Promise.all(["server/chunks/0p91_next_0h94sj1._.js"].map(t=>e.l(t))).then(()=>t(815068)))},526888,e=>{e.v(e=>Promise.resolve().then(()=>e(28962)))},893412,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_auth_api-key_ts_0t_ma-t._.js"].map(t=>e.l(t))).then(()=>t(499465)))},687903,e=>{e.v(e=>Promise.resolve().then(()=>e(912714)))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0hgccef._.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},959801,(e,t,r)=>{"use strict";t.exports=e.r(918622)},637142,(e,t,r)=>{"use strict";t.exports=e.r(959801).vendored["react-rsc"].React},186791,(e,t,r)=>{"use strict";var n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o={},l={RequestCookies:()=>g,ResponseCookies:()=>h,parseCookie:()=>c,parseSetCookie:()=>p,stringifyCookie:()=>d};for(var u in l)n(o,u,{get:l[u],enumerable:!0});function d(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function c(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,s]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function p(e){if(!e)return;let[[t,r],...n]=c(e),{domain:s,expires:i,httponly:a,maxage:o,path:l,samesite:u,secure:d,partitioned:p,priority:g}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var h,y,b={name:t,value:decodeURIComponent(r),domain:s,...i&&{expires:new Date(i)},...a&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:l,...u&&{sameSite:m.includes(h=(h=u).toLowerCase())?h:void 0},...d&&{secure:!0},...g&&{priority:f.includes(y=(y=g).toLowerCase())?y:void 0},...p&&{partitioned:!0}};let e={};for(let t in b)b[t]&&(e[t]=b[t]);return e}}t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of i(t))a.call(e,o)||void 0===o||n(e,o,{get:()=>t[o],enumerable:!(r=s(t,o))||r.enumerable});return e})(n({},"__esModule",{value:!0}),o);var m=["strict","lax","none"],f=["low","medium","high"],g=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of c(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>d(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>d(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},h=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const s=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(s)?s:function(e){if(!e)return[];var t,r,n,s,i,a=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,i=!1;l();)if(","===(r=e.charAt(o))){for(n=o,o+=1,l(),s=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(i=!0,o=s,a.push(e.substring(t,n)),t=o):o=n+1}else o+=1;(!i||o>=e.length)&&a.push(e.substring(t,e.length))}return a}(s)){const t=p(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=d(r);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(d).join("; ")}}},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},478500,(e,t,r)=>{t.exports=e.x("node:async_hooks",()=>require("node:async_hooks"))},666680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},660526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},798003,e=>{"use strict";var t=e.i(912714),r=e.i(660526),n=e.i(750227);function s(){return n.default.join(r.default.homedir(),".wiki-viewer","config.json")}async function i(){let e=n.default.join(r.default.homedir(),".wiki-viewer");await (0,t.mkdir)(e,{recursive:!0,mode:448});try{await (0,t.chmod)(e,448)}catch{}}async function a(){try{let e=await (0,t.readFile)(s(),"utf8");return JSON.parse(e)}catch{return{}}}let o=Promise.resolve();function l(e){let t=o.then(e,e);return o=t.then(()=>void 0,()=>void 0),t}async function u(e){await i(),await (0,t.writeFile)(s(),JSON.stringify(e,null,2),{encoding:"utf8",mode:384});try{await (0,t.chmod)(s(),384)}catch{}}async function d(e){return l(async()=>{let t=await a();await u({...t,...e})})}async function c(e){return l(async()=>{let t=e({...await a()});return await u(t),t})}e.s(["readConfig",0,a,"reposDir",0,function(){return n.default.join(r.default.homedir(),".wiki-viewer","repos")},"updateConfig",0,c,"writeConfig",0,d])},588772,e=>{"use strict";e.s(["DialectAdapterBase",0,class{get supportsCreateIfNotExists(){return!0}get supportsTransactionalDdl(){return!1}get supportsReturning(){return!1}get supportsOutput(){return!1}}])},733162,e=>{"use strict";var t=e.i(264116);let r=/"/g;class n extends t.DefaultQueryCompiler{visitOrAction(e){this.append("or "),this.append(e.action)}getCurrentParameterPlaceholder(){return"?"}getLeftExplainOptionsWrapper(){return""}getRightExplainOptionsWrapper(){return""}getLeftIdentifierWrapper(){return'"'}getRightIdentifierWrapper(){return'"'}getAutoIncrement(){return"autoincrement"}sanitizeIdentifier(e){return e.replace(r,'""')}visitDefaultInsertValue(e){this.append("null")}}e.s(["SqliteQueryCompiler",0,n])},285675,e=>{"use strict";var t=e.i(588772);class r extends t.DialectAdapterBase{get supportsTransactionalDdl(){return!1}get supportsReturning(){return!0}async acquireMigrationLock(e,t){}async releaseMigrationLock(e,t){}}e.s(["SqliteAdapter",0,r])},28962,e=>{"use strict";var t=e.i(563811),r=e.i(560912),n=e.i(877727),s=e.i(429513),i=e.i(169726),a=e.i(547756);let o={postgres:{string:["character varying","varchar","text","uuid"],number:["int4","integer","bigint","smallint","numeric","real","double precision"],boolean:["bool","boolean"],date:["timestamptz","timestamp","date"],json:["json","jsonb"]},mysql:{string:["varchar","text","uuid"],number:["integer","int","bigint","smallint","decimal","float","double"],boolean:["boolean","tinyint"],date:["timestamp","datetime","date"],json:["json"]},sqlite:{string:["TEXT"],number:["INTEGER","REAL"],boolean:["INTEGER","BOOLEAN"],date:["DATE","INTEGER"],json:["TEXT"]},mssql:{string:["varchar","nvarchar","uniqueidentifier"],number:["int","bigint","smallint","decimal","float","double"],boolean:["bit","smallint"],date:["datetime2","date","datetime"],json:["varchar","nvarchar"]}};function l(e,t,r){if("string[]"===t||"number[]"===t)return e.toLowerCase().includes("json");let n=o[r];return(Array.isArray(t)?n.string.map(e=>e.toLowerCase()):n[t].map(e=>e.toLowerCase())).includes(e.toLowerCase().split("(")[0].trim())}async function u(e){try{let t=await a.sql`SHOW search_path`.execute(e),r=t.rows[0]?.search_path??t.rows[0]?.searchPath;if(r)return r.split(",").map(e=>e.trim()).map(e=>e.replace(/^["']|["']$/g,"")).filter(e=>!e.startsWith("$")&&!e.startsWith("\\$"))[0]||"public"}catch{}return"public"}async function d(e){let o=function(e){let r=(0,t.getAuthTables)(e),n={};for(let e in r){let t=r[e],s=t.fields,i={};if(Object.entries(s).forEach(([e,t])=>{if(i[t.fieldName||e]=t,t.references){let n=r[t.references.model];n&&(i[t.fieldName||e].references={...t.references,model:n.modelName,field:t.references.field})}}),n[t.modelName]){n[t.modelName].fields={...n[t.modelName].fields,...i};continue}n[t.modelName]={fields:i,order:t.order||1/0}}return n}(e),d=(0,r.createLogger)(e.logger),{kysely:c,databaseType:p}=await (0,n.createKyselyAdapter)(e);p||(d.warn("Could not determine database type, defaulting to sqlite. Please provide a type in the database options to avoid this."),p="sqlite"),c||(d.error("Only kysely adapter is supported for migrations. You can use `generate` command to generate the schema, if you're using a different adapter."),process.exit(1));let m="public";if("postgres"===p){m=await u(c),d.debug(`PostgreSQL migration: Using schema '${m}' (from search_path)`);try{let e=await a.sql`
|
|
1
|
+
module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},959801,(e,t,r)=>{"use strict";t.exports=e.r(918622)},637142,(e,t,r)=>{"use strict";t.exports=e.r(959801).vendored["react-rsc"].React},186791,(e,t,r)=>{"use strict";var n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o={},l={RequestCookies:()=>g,ResponseCookies:()=>h,parseCookie:()=>c,parseSetCookie:()=>p,stringifyCookie:()=>d};for(var u in l)n(o,u,{get:l[u],enumerable:!0});function d(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function c(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,s]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function p(e){if(!e)return;let[[t,r],...n]=c(e),{domain:s,expires:i,httponly:a,maxage:o,path:l,samesite:u,secure:d,partitioned:p,priority:g}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var h,y,b={name:t,value:decodeURIComponent(r),domain:s,...i&&{expires:new Date(i)},...a&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:l,...u&&{sameSite:m.includes(h=(h=u).toLowerCase())?h:void 0},...d&&{secure:!0},...g&&{priority:f.includes(y=(y=g).toLowerCase())?y:void 0},...p&&{partitioned:!0}};let e={};for(let t in b)b[t]&&(e[t]=b[t]);return e}}t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of i(t))a.call(e,o)||void 0===o||n(e,o,{get:()=>t[o],enumerable:!(r=s(t,o))||r.enumerable});return e})(n({},"__esModule",{value:!0}),o);var m=["strict","lax","none"],f=["low","medium","high"],g=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of c(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>d(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>d(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},h=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const s=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(s)?s:function(e){if(!e)return[];var t,r,n,s,i,a=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,i=!1;l();)if(","===(r=e.charAt(o))){for(n=o,o+=1,l(),s=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(i=!0,o=s,a.push(e.substring(t,n)),t=o):o=n+1}else o+=1;(!i||o>=e.length)&&a.push(e.substring(t,e.length))}return a}(s)){const t=p(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=d(r);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(d).join("; ")}}},478500,(e,t,r)=>{t.exports=e.x("node:async_hooks",()=>require("node:async_hooks"))},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},666680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},660526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},798003,e=>{"use strict";var t=e.i(912714),r=e.i(660526),n=e.i(750227);function s(){return n.default.join(r.default.homedir(),".wiki-viewer","config.json")}async function i(){let e=n.default.join(r.default.homedir(),".wiki-viewer");await (0,t.mkdir)(e,{recursive:!0,mode:448});try{await (0,t.chmod)(e,448)}catch{}}async function a(){try{let e=await (0,t.readFile)(s(),"utf8");return JSON.parse(e)}catch{return{}}}let o=Promise.resolve();function l(e){let t=o.then(e,e);return o=t.then(()=>void 0,()=>void 0),t}async function u(e){await i(),await (0,t.writeFile)(s(),JSON.stringify(e,null,2),{encoding:"utf8",mode:384});try{await (0,t.chmod)(s(),384)}catch{}}async function d(e){return l(async()=>{let t=await a();await u({...t,...e})})}async function c(e){return l(async()=>{let t=e({...await a()});return await u(t),t})}e.s(["readConfig",0,a,"reposDir",0,function(){return n.default.join(r.default.homedir(),".wiki-viewer","repos")},"updateConfig",0,c,"writeConfig",0,d])},588772,e=>{"use strict";e.s(["DialectAdapterBase",0,class{get supportsCreateIfNotExists(){return!0}get supportsTransactionalDdl(){return!1}get supportsReturning(){return!1}get supportsOutput(){return!1}}])},733162,e=>{"use strict";var t=e.i(264116);let r=/"/g;class n extends t.DefaultQueryCompiler{visitOrAction(e){this.append("or "),this.append(e.action)}getCurrentParameterPlaceholder(){return"?"}getLeftExplainOptionsWrapper(){return""}getRightExplainOptionsWrapper(){return""}getLeftIdentifierWrapper(){return'"'}getRightIdentifierWrapper(){return'"'}getAutoIncrement(){return"autoincrement"}sanitizeIdentifier(e){return e.replace(r,'""')}visitDefaultInsertValue(e){this.append("null")}}e.s(["SqliteQueryCompiler",0,n])},285675,e=>{"use strict";var t=e.i(588772);class r extends t.DialectAdapterBase{get supportsTransactionalDdl(){return!1}get supportsReturning(){return!0}async acquireMigrationLock(e,t){}async releaseMigrationLock(e,t){}}e.s(["SqliteAdapter",0,r])},28962,e=>{"use strict";var t=e.i(563811),r=e.i(560912),n=e.i(877727),s=e.i(429513),i=e.i(169726),a=e.i(547756);let o={postgres:{string:["character varying","varchar","text","uuid"],number:["int4","integer","bigint","smallint","numeric","real","double precision"],boolean:["bool","boolean"],date:["timestamptz","timestamp","date"],json:["json","jsonb"]},mysql:{string:["varchar","text","uuid"],number:["integer","int","bigint","smallint","decimal","float","double"],boolean:["boolean","tinyint"],date:["timestamp","datetime","date"],json:["json"]},sqlite:{string:["TEXT"],number:["INTEGER","REAL"],boolean:["INTEGER","BOOLEAN"],date:["DATE","INTEGER"],json:["TEXT"]},mssql:{string:["varchar","nvarchar","uniqueidentifier"],number:["int","bigint","smallint","decimal","float","double"],boolean:["bit","smallint"],date:["datetime2","date","datetime"],json:["varchar","nvarchar"]}};function l(e,t,r){if("string[]"===t||"number[]"===t)return e.toLowerCase().includes("json");let n=o[r];return(Array.isArray(t)?n.string.map(e=>e.toLowerCase()):n[t].map(e=>e.toLowerCase())).includes(e.toLowerCase().split("(")[0].trim())}async function u(e){try{let t=await a.sql`SHOW search_path`.execute(e),r=t.rows[0]?.search_path??t.rows[0]?.searchPath;if(r)return r.split(",").map(e=>e.trim()).map(e=>e.replace(/^["']|["']$/g,"")).filter(e=>!e.startsWith("$")&&!e.startsWith("\\$"))[0]||"public"}catch{}return"public"}async function d(e){let o=function(e){let r=(0,t.getAuthTables)(e),n={};for(let e in r){let t=r[e],s=t.fields,i={};if(Object.entries(s).forEach(([e,t])=>{if(i[t.fieldName||e]=t,t.references){let n=r[t.references.model];n&&(i[t.fieldName||e].references={...t.references,model:n.modelName,field:t.references.field})}}),n[t.modelName]){n[t.modelName].fields={...n[t.modelName].fields,...i};continue}n[t.modelName]={fields:i,order:t.order||1/0}}return n}(e),d=(0,r.createLogger)(e.logger),{kysely:c,databaseType:p}=await (0,n.createKyselyAdapter)(e);p||(d.warn("Could not determine database type, defaulting to sqlite. Please provide a type in the database options to avoid this."),p="sqlite"),c||(d.error("Only kysely adapter is supported for migrations. You can use `generate` command to generate the schema, if you're using a different adapter."),process.exit(1));let m="public";if("postgres"===p){m=await u(c),d.debug(`PostgreSQL migration: Using schema '${m}' (from search_path)`);try{let e=await a.sql`
|
|
2
2
|
SELECT schema_name
|
|
3
3
|
FROM information_schema.schemata
|
|
4
4
|
WHERE schema_name = ${m}
|
|
@@ -9,4 +9,4 @@ module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/a
|
|
|
9
9
|
AND table_type = 'BASE TABLE'
|
|
10
10
|
`.execute(c),t=new Set(e.rows.map(e=>e.table_name??e.tableName));g=f.filter(e=>e.schema===m&&t.has(e.name)),d.debug(`Found ${g.length} table(s) in schema '${m}': ${g.map(e=>e.name).join(", ")||"(none)"}`)}catch(e){d.warn(`Could not filter tables by schema. Using all discovered tables. Error: ${e instanceof Error?e.message:String(e)}`)}let h=[],y=[];for(let[e,t]of Object.entries(o)){let r=g.find(t=>t.name===e);if(!r){let r=h.findIndex(t=>t.table===e),n={table:e,fields:t.fields,order:t.order||1/0},s=h.findIndex(e=>(e.order||1/0)>n.order);-1===s?-1===r?h.push(n):h[r].fields={...h[r].fields,...t.fields}:h.splice(s,0,n);continue}let n={};for(let[s,i]of Object.entries(t.fields)){let t=r.columns.find(e=>e.name===s);if(!t){n[s]=i;continue}l(t.dataType,i.type,p)||d.warn(`Field ${s} in table ${e} has a different type in the database. Expected ${i.type} but got ${t.dataType}.`)}Object.keys(n).length>0&&y.push({table:e,fields:n,order:t.order||1/0})}let b=[],x=e.advanced?.database?.generateId==="uuid",q=e.advanced?.database?.generateId==="serial";function v(e,t){let r=e.type,n=p||"sqlite",s={string:{sqlite:"text",postgres:"text",mysql:e.unique?"varchar(255)":e.references?"varchar(36)":e.sortable||e.index?"varchar(255)":"text",mssql:e.unique||e.sortable?"varchar(255)":e.references?"varchar(36)":"varchar(8000)"},boolean:{sqlite:"integer",postgres:"boolean",mysql:"boolean",mssql:"smallint"},number:{sqlite:e.bigint?"bigint":"integer",postgres:e.bigint?"bigint":"integer",mysql:e.bigint?"bigint":"integer",mssql:e.bigint?"bigint":"integer"},date:{sqlite:"date",postgres:"timestamptz",mysql:"timestamp(3)",mssql:a.sql`datetime2(3)`},json:{sqlite:"text",postgres:"jsonb",mysql:"json",mssql:"varchar(8000)"},id:{postgres:q?a.sql`integer GENERATED BY DEFAULT AS IDENTITY`:x?"uuid":"text",mysql:q?"integer":"varchar(36)",mssql:q?"integer":"varchar(36)",sqlite:q?"integer":"text"},foreignKeyId:{postgres:q?"integer":x?"uuid":"text",mysql:q?"integer":"varchar(36)",mssql:q?"integer":"varchar(36)",sqlite:q?"integer":"text"},"string[]":{sqlite:"text",postgres:"jsonb",mysql:"json",mssql:"varchar(8000)"},"number[]":{sqlite:"text",postgres:"jsonb",mysql:"json",mssql:"varchar(8000)"}};if("id"===t||e.references?.field==="id")return"id"===t?s.id[n]:s.foreignKeyId[n];if(Array.isArray(r))return"text";if(!(r in s))throw Error(`Unsupported field type '${String(r)}' for field '${t}'. Allowed types are: string, number, boolean, date, string[], number[]. If you need to store structured data, store it as a JSON string (type: "string") or split it into primitive fields. See https://better-auth.com/docs/advanced/schema#additional-fields`);return s[r][n]}let w=(0,i.initGetModelName)({schema:(0,t.getAuthTables)(e),usePlural:!1}),_=(0,s.initGetFieldName)({schema:(0,t.getAuthTables)(e),usePlural:!1});function j(e,t){try{return`${w(e)}.${_({model:e,field:t})}`}catch{return`${e}.${t}`}}let A=[];if(y.length)for(let e of y)for(let[t,r]of Object.entries(e.fields)){let n=v(r,t),s=c.schema.alterTable(e.table);if(r.index){let n=`${e.table}_${t}_${r.unique?"uidx":"idx"}`,s=c.schema.createIndex(n).on(e.table).columns([t]);A.push(r.unique?s.unique():s)}let i=s.addColumn(t,n,e=>(e=!1!==r.required?e.notNull():e,r.references&&(e=e.references(j(r.references.model,r.references.field)).onDelete(r.references.onDelete||"cascade")),r.unique&&(e=e.unique()),"date"===r.type&&"function"==typeof r.defaultValue&&("postgres"===p||"mysql"===p||"mssql"===p)&&(e="mysql"===p?e.defaultTo(a.sql`CURRENT_TIMESTAMP(3)`):e.defaultTo(a.sql`CURRENT_TIMESTAMP`)),e));b.push(i)}if(h.length)for(let e of h){let t=v({type:q?"number":"string"},"id"),r=c.schema.createTable(e.table).addColumn("id",t,e=>{if(q)return"postgres"===p?e.primaryKey().notNull():"sqlite"===p?e.primaryKey().notNull():"mssql"===p?e.identity().primaryKey().notNull():e.autoIncrement().primaryKey().notNull();return x&&"postgres"===p?e.primaryKey().defaultTo(a.sql`pg_catalog.gen_random_uuid()`).notNull():e.primaryKey().notNull()});for(let[t,n]of Object.entries(e.fields)){let s=v(n,t);if(r=r.addColumn(t,s,e=>(e=!1!==n.required?e.notNull():e,n.references&&(e=e.references(j(n.references.model,n.references.field)).onDelete(n.references.onDelete||"cascade")),n.unique&&(e=e.unique()),"date"===n.type&&"function"==typeof n.defaultValue&&("postgres"===p||"mysql"===p||"mssql"===p)&&(e="mysql"===p?e.defaultTo(a.sql`CURRENT_TIMESTAMP(3)`):e.defaultTo(a.sql`CURRENT_TIMESTAMP`)),e)),n.index){let r=c.schema.createIndex(`${e.table}_${t}_${n.unique?"uidx":"idx"}`).on(e.table).columns([t]);A.push(n.unique?r.unique():r)}}b.push(r)}for(let e of A)b.push(e);return{toBeCreated:h,toBeAdded:y,runMigrations:async function(){for(let e of b)await e.execute()},compileMigrations:async function(){return b.map(e=>e.compile().sql).join(";\n\n")+";"}}}e.s(["getMigrations",0,d,"matchType",0,l],28962)}];
|
|
11
11
|
|
|
12
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
12
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0j40f60._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[593234,e=>{"use strict";let t=/\[\[([^\]|#]+)(?:\|([^\]]*)|#([^\]]*))?\]\]/g,r=/^[a-z0-9-]+$/;function a(e){return e.trim().toLowerCase()}e.s(["extractWikiLinks",0,function(e){let n,s=[],i=[0];for(let t=0;t<e.length;t++)"\n"===e[t]?i.push(t+1):"\r"===e[t]&&(t+1<e.length&&"\n"===e[t+1]&&t++,i.push(t+1));for(t.lastIndex=0;null!==(n=t.exec(e));){let t=n[1];if(!t)continue;let o=a(t);if(!r.test(o))continue;let l=n.index,u=0,d=i.length-1;for(;u<d;){let e=Math.ceil((u+d)/2);i[e]<=l?u=e:d=e-1}let c=u+1,p=i[u],h=u+1<i.length?i[u+1]:e.length,m=e.slice(p,h).replace(/\r?\n$/,"");s.push({slug:o,line:c,lineText:m,index:l-p})}return s},"normalizeSlug",0,a,"slugFromPath",0,function(e){return(e.split("/").pop()??e).replace(/\.(?:md|markdown)$/i,"").toLowerCase()}])},15934,e=>{"use strict";var t=e.i(912714),r=e.i(750227),a=e.i(593234);async function n(e){try{return(await (0,t.readdir)(e,{withFileTypes:!0})).filter(e=>e.isFile()&&e.name.toLowerCase().endsWith(".md")).map(e=>e.name.slice(0,-3)).sort((e,t)=>e.localeCompare(t))}catch(e){if("ENOENT"===e.code)return[];throw e}}async function s(e){let[t,s,i,o]=await Promise.all([n(e),n(r.default.join(e,"entities")),n(r.default.join(e,"concepts")),n(r.default.join(e,"comparisons"))]),l=new Map;for(let e of t){let t=(0,a.normalizeSlug)(e);l.has(t)||l.set(t,e+".md")}for(let e of s){let t=(0,a.normalizeSlug)(e);l.has(t)||l.set(t,"entities/"+e+".md")}for(let e of i){let t=(0,a.normalizeSlug)(e);l.has(t)||l.set(t,"concepts/"+e+".md")}for(let e of o){let t=(0,a.normalizeSlug)(e);l.has(t)||l.set(t,"comparisons/"+e+".md")}return{buckets:{root:t,entities:s,concepts:i,comparisons:o},slugMap:l}}e.s(["listSlugs",0,s])},682643,e=>{"use strict";var t=e.i(364564),r=e.i(102095),a=e.i(691091),n=e.i(475331),s=e.i(490301),i=e.i(670943),o=e.i(690324),l=e.i(243133),u=e.i(404870),d=e.i(420180),c=e.i(867883),p=e.i(336708),h=e.i(682278),m=e.i(157569),v=e.i(844146),f=e.i(193695);e.i(105888);var g=e.i(530564),R=e.i(702414),_=e.i(660038),w=e.i(15934);async function x(e){let t=await (0,_.resolveWorkspaceForUser)(e);if(!t.ok)return R.NextResponse.json({error:t.code},{status:t.status});let{rootDir:r}=t;try{let{buckets:e}=await (0,w.listSlugs)(r);return R.NextResponse.json(e,{headers:{"Cache-Control":"private, max-age=10"}})}catch{return R.NextResponse.json({error:"Failed to list slugs"},{status:500})}}e.s(["GET",0,x],302066);var C=e.i(302066);let E=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/wiki/slugs/route",pathname:"/api/wiki/slugs",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/wiki/slugs/route.ts",nextConfigOutput:"standalone",userland:C,...{}}),{workAsyncStorage:y,workUnitAsyncStorage:P,serverHooks:k}=E;async function A(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),E.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/wiki/slugs/route";R=R.replace(/\/index$/,"")||"/";let _=await E.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!_)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:x,nextConfig:C,parsedUrl:y,isDraftMode:P,prerenderManifest:k,routerServerContext:A,isOnDemandRevalidate:N,revalidateOnlyGenerated:b,resolvedPathname:S,clientReferenceManifest:T,serverActionsManifest:q}=_,j=(0,o.normalizeAppPath)(R),O=!!(k.dynamicRoutes[j]||k.routes[S]),I=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,y,!1):t.end("This page could not be found"),null);if(O&&!P){let e=!!k.routes[S],t=k.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await I();throw new f.NoFallbackError}}let H=null;!O||E.isDev||P||(H="/index"===(H=S)?"/":H);let M=!0===E.isDev||!O,U=O&&!M;q&&T&&(0,i.setManifestsSingleton)({page:R,clientReferenceManifest:T,serverActionsManifest:q});let D=e.method||"GET",F=(0,s.getTracer)(),z=F.getActiveScopeSpan(),$=!!(null==A?void 0:A.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await E.getIncrementalCache(e,C,k,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let B={params:x,previewProps:k.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:M,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>E.onRequestError(e,t,a,n,A)},sharedContext:{buildId:w}},W=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),V=u.NextRequestAdapter.fromNodeNextRequest(W,(0,u.signalFromNodeResponse)(t));try{let n,i=async e=>E.handle(V,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${R}`)}),o=async n=>{var s,o;let l=async({previousCacheEntry:r})=>{try{if(!K&&N&&b&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=B.renderOpts.fetchMetrics;let o=B.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let l=B.renderOpts.collectedTags;if(!O)return await (0,p.sendResponse)(W,G,s,B.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[v.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,a=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,A),t}},u=await E.handleResponse({req:e,nextConfig:C,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:k,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:b,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:K});if(!O)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",N?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),P&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return K&&O||d.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,m.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(W,G,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};$&&z?await o(z):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(d.BaseServerSpan.handleRequest,{spanName:`${D} ${R}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},o),void 0,!$))}catch(t){if(t instanceof f.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,A),O)throw t;return await (0,p.sendResponse)(W,G,new Response(null,{status:500})),null}}e.s(["handler",0,A,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:P})},"routeModule",0,E,"serverHooks",0,k,"workAsyncStorage",0,y,"workUnitAsyncStorage",0,P],682643)},168315,e=>{e.v(t=>Promise.all(["server/chunks/0sag_@better-auth_memory-adapter_dist_index_mjs_0pvj6im._.js"].map(t=>e.l(t))).then(()=>t(862112)))},396690,e=>{e.v(t=>Promise.all(["server/chunks/032z_better-auth_dist_adapters_kysely-adapter_index_mjs_0.uqexi._.js"].map(t=>e.l(t))).then(()=>t(320652)))},580632,e=>{e.v(e=>Promise.resolve().then(()=>e(270406)))},947559,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_bun-sqlite-dialect-DzNwOpKv_mjs_0z1z6m4._.js"].map(t=>e.l(t))).then(()=>t(495181)))},715018,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_node-sqlite-dialect_mjs_0qqlvhl._.js"].map(t=>e.l(t))).then(()=>t(698370)))},146843,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_d1-sqlite-dialect-C2B7YsIT_mjs_0wynrz3._.js"].map(t=>e.l(t))).then(()=>t(143740)))},84040,e=>{e.v(t=>Promise.all(["server/chunks/0p91_next_0h94sj1._.js"].map(t=>e.l(t))).then(()=>t(815068)))},526888,e=>{e.v(e=>Promise.resolve().then(()=>e(28962)))},893412,e=>{e.v(e=>Promise.resolve().then(()=>e(499465)))},687903,e=>{e.v(e=>Promise.resolve().then(()=>e(912714)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0k0t_.e._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[402662,e=>{"use strict";var t=e.i(702414);e.s(["checkOrigin",0,function(e){let r=e.method.toUpperCase();if("GET"===r||"HEAD"===r||"OPTIONS"===r)return null;let s=e.headers.get("origin"),a=e.headers.get("referer");if(!s&&!a)return null;let n=function(e){let t=Array.from(new Set(["localhost","127.0.0.1",e.split(":")[0],...(process.env.WIKI_OWNER_HOSTS??"").split(",").map(e=>e.trim()).filter(Boolean)])),r=["",":3000",":3003"];e.includes(":")&&r.push(":"+e.split(":")[1]);let s=new Set;for(let e of t)for(let t of["http","https"])for(let a of r)s.add(`${t}://${e}${a}`);return s}(e.headers.get("host")??"");if(s)return n.has(s)?null:t.NextResponse.json({error:"FORBIDDEN",message:"Bad origin"},{status:403});if(a){try{let{protocol:e,host:t}=new URL(a);if(n.has(`${e}//${t}`))return null}catch{}return t.NextResponse.json({error:"FORBIDDEN",message:"Bad referer"},{status:403})}return null}])},794776,e=>{"use strict";let t,r=Number.isFinite(t=parseInt(process.env.AGENT_RATE_LIMIT??"",10))&&t>0?t:60;e.s(["OPS_PER_MINUTE",0,r,"SIDECAR_EVENT_TRIM_SIZE",0,1e3,"SIDECAR_TRIM_EVERY_N_MUTATIONS",0,100])},517387,e=>{"use strict";var t=e.i(794776);let r=new Map;e.s(["checkAndConsume",0,function(e,s=1){let a=Date.now(),n=t.OPS_PER_MINUTE,o=r.get(e);o||(o={tokens:n,lastRefill:a},r.set(e,o));let i=Math.floor((a-o.lastRefill)/1e3);return(i>0&&(o.tokens=Math.min(n,o.tokens+i),o.lastRefill=o.lastRefill+1e3*i),o.tokens<s)?{ok:!1,retryAfterMs:Math.max(1,1e3*(s-o.tokens)-(a-o.lastRefill))}:(o.tokens-=s,{ok:!0})}])},211451,63467,e=>{"use strict";var t=e.i(702414),r=e.i(912714),s=e.i(97082),a=e.i(359211),n=e.i(719126);async function o(e){let o,i=(0,s.getShareByToken)(e);if(!i)return{ok:!1,response:t.NextResponse.json({error:"not_found",message:"Share link not found"},{status:404})};if(i.isRevoked)return{ok:!1,response:t.NextResponse.json({error:"revoked",message:"Share link has been revoked"},{status:410})};if((0,s.isExpired)(i))return{ok:!1,response:t.NextResponse.json({error:"expired",message:"Share link has expired"},{status:410})};let l=await (0,a.getWorkspace)(i.workspaceId);if(!l)return{ok:!1,response:t.NextResponse.json({error:"workspace_gone",message:"Workspace no longer exists"},{status:410})};let u=await (0,n.safeAbsPath)(l.rootDir,i.filePath);if(!u)return{ok:!1,response:t.NextResponse.json({error:"path_invalid",message:"Invalid file path"},{status:400})};try{o=await (0,r.stat)(u)}catch{return{ok:!1,response:t.NextResponse.json({error:"file_gone",message:"File no longer exists"},{status:410})}}if(o.isDirectory())return{ok:!1,response:t.NextResponse.json({error:"path_invalid",message:"Directories cannot be shared"},{status:400})};let d=i.filePath.split("/").pop()??i.filePath;return{ok:!0,target:{share:i,absPath:u,filename:d}}}e.s(["resolveShareTarget",0,o],211451);var i=e.i(666680);function l(e){let t=(0,i.createHash)("sha256").update(e).digest("hex").slice(0,24);return`wv_share_${t}`}function u(e,t){let r=`${e.e}|${e.t}`;return(0,i.createHmac)("sha256",t).update(r).digest("hex")}e.s(["inlineContentDisposition",0,function(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"").replace(/\\/g,"\\\\").replace(/"/g,'\\"');return`inline; filename="${t}"`},"isUnlocked",0,function(e,t,r){let s=function(e,t){let r=e.headers.get("cookie")??"",s=l(t);for(let e of r.split(";")){let t=e.indexOf("=");if(!(t<=0)&&e.slice(0,t).trim()===s)return e.slice(t+1).trim()}}(e,t);return!!s&&function(e,t,r){let s,a=t.indexOf(".");if(-1===a)return!1;let n=t.slice(0,a),o=t.slice(a+1);try{s=JSON.parse(Buffer.from(n,"base64url").toString("utf8"))}catch{return!1}if(s.t!==e||"number"!=typeof s.e||s.e<=Date.now())return!1;let l=u(s,r),d=Buffer.from(l,"hex"),p=Buffer.from(o,"hex");return d.length===p.length&&(0,i.timingSafeEqual)(d,p)}(t,s,r)},"serializeUnlockCookie",0,function(e,t,r){let s,a,n,{name:o,value:i}=(a=u(s={t:t,e:Date.now()+9e5},r),n=`${Buffer.from(JSON.stringify(s)).toString("base64url")}.${a}`,{name:l(t),value:n}),d=new URL(e.url),p=[`${o}=${i}`,"HttpOnly","SameSite=Strict",`Path=${d.pathname}`,"Max-Age=900"];return"https:"===d.protocol&&p.push("Secure"),p.join("; ")}],63467)},687458,e=>{"use strict";var t=e.i(364564),r=e.i(102095),s=e.i(691091),a=e.i(475331),n=e.i(490301),o=e.i(670943),i=e.i(690324),l=e.i(243133),u=e.i(404870),d=e.i(420180),p=e.i(867883),c=e.i(336708),h=e.i(682278),f=e.i(157569),m=e.i(844146),g=e.i(193695);e.i(105888);var R=e.i(530564),_=e.i(702414),v=e.i(402662),w=e.i(254226),k=e.i(517387),x=e.i(97082),E=e.i(211451),N=e.i(63467);let y={"Cache-Control":"private, no-store"};async function S(t){let{readFile:r,stat:s}=await e.A(687903);try{if((await s(t)).size>1048576)return null;return(await r(t)).toString("utf-8")}catch(e){return console.error("[share] readFile(%s) %s",t,e instanceof Error?e.message:String(e)),null}}async function C(e,{params:t}){let{token:r}=await t,s=(0,k.checkAndConsume)(`share:${r}`,1);if(!s.ok)return _.NextResponse.json({error:"rate_limited",message:"Too many requests"},{status:429,headers:{"Retry-After":String(Math.ceil(s.retryAfterMs/1e3))}});let a=(0,x.getShareByToken)(r);if(!a)return _.NextResponse.json({error:"not_found",message:"Share link not found"},{status:404,headers:y});if(a.isRevoked)return _.NextResponse.json({error:"revoked",message:"Share link has been revoked"},{status:410,headers:y});if((0,x.isExpired)(a))return _.NextResponse.json({error:"expired",message:"Share link has expired"},{status:410,headers:y});if(a.passwordHash&&!(0,N.isUnlocked)(e,r,a.passwordHash))return _.NextResponse.json({protected:!0,message:"This document is password-protected"},{status:401,headers:y});let n=await (0,E.resolveShareTarget)(r);if(!n.ok)return n.response;let o=await S(n.target.absPath);return null===o?_.NextResponse.json({error:"read_error",message:"Failed to read file"},{status:500,headers:y}):((0,x.incrementViewCount)(r),_.NextResponse.json({content:o,filename:n.target.filename,filePath:n.target.share.filePath,viewCount:n.target.share.viewCount+1},{headers:a.passwordHash?y:void 0}))}async function T(e,{params:t}){let{token:r}=await t,s=(0,x.getShareByToken)(r);if(!s)return _.NextResponse.json({error:"not_found"},{status:404});if(s.isRevoked)return _.NextResponse.json({error:"revoked"},{status:410});if((0,x.isExpired)(s))return _.NextResponse.json({error:"expired"},{status:410});if(!s.passwordHash)return _.NextResponse.json({error:"not_protected"},{status:400});let a=(0,k.checkAndConsume)(`share-pwd:${r}`,1);if(!a.ok)return _.NextResponse.json({error:"rate_limited",message:"Too many attempts. Try again later."},{status:429,headers:{"Retry-After":String(Math.ceil(a.retryAfterMs/1e3))}});let n=await e.json();if(!n.password||"string"!=typeof n.password)return _.NextResponse.json({error:"missing_password"},{status:400});if(!(0,x.verifyPassword)(n.password,s.passwordHash))return _.NextResponse.json({error:"wrong_password",message:"Incorrect password"},{status:403,headers:y});let o=await (0,E.resolveShareTarget)(r);if(!o.ok)return o.response;let i=await S(o.target.absPath);if(null===i)return _.NextResponse.json({error:"read_error",message:"Failed to read file"},{status:500,headers:y});(0,x.incrementViewCount)(r);let l=(0,N.serializeUnlockCookie)(e,r,s.passwordHash);return _.NextResponse.json({content:i,filename:o.target.filename,filePath:o.target.share.filePath,viewCount:o.target.share.viewCount+1},{headers:{...y,"Set-Cookie":l}})}async function j(t,{params:r}){let{token:s}=await r,a=(0,v.checkOrigin)(t);if(a)return a;let n=await (0,w.requireUser)(t);if(!n.ok)return _.NextResponse.json({error:"UNAUTHORIZED"},{status:401});let o=(0,x.getShareByToken)(s);if(!o)return _.NextResponse.json({error:"not_found"},{status:404});if(o.createdBy!==n.user.id){let{isAdmin:t}=await e.A(919623);if(!await t(n.user.id,n.user.email))return _.NextResponse.json({error:"FORBIDDEN"},{status:403})}return(0,x.revokeShare)(o.id),_.NextResponse.json({ok:!0})}e.s(["DELETE",0,j,"GET",0,C,"POST",0,T],998553);var P=e.i(998553);let A=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/share/[token]/route",pathname:"/api/share/[token]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/share/[token]/route.ts",nextConfigOutput:"standalone",userland:P,...{}}),{workAsyncStorage:b,workUnitAsyncStorage:O,serverHooks:I}=A;async function D(e,t,s){s.requestMeta&&(0,a.setRequestMeta)(e,s.requestMeta),A.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let _="/api/share/[token]/route";_=_.replace(/\/index$/,"")||"/";let v=await A.prepare(e,t,{srcPage:_,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==s.waitUntil||s.waitUntil.call(s,Promise.resolve()),null;let{buildId:w,params:k,nextConfig:x,parsedUrl:E,isDraftMode:N,prerenderManifest:y,routerServerContext:S,isOnDemandRevalidate:C,revalidateOnlyGenerated:T,resolvedPathname:j,clientReferenceManifest:P,serverActionsManifest:b}=v,O=(0,i.normalizeAppPath)(_),I=!!(y.dynamicRoutes[O]||y.routes[j]),D=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,E,!1):t.end("This page could not be found"),null);if(I&&!N){let e=!!y.routes[j],t=y.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(x.adapterPath)return await D();throw new g.NoFallbackError}}let M=null;!I||A.isDev||N||(M="/index"===(M=j)?"/":M);let q=!0===A.isDev||!I,H=I&&!q;b&&P&&(0,o.setManifestsSingleton)({page:_,clientReferenceManifest:P,serverActionsManifest:b});let U=e.method||"GET",$=(0,n.getTracer)(),B=$.getActiveScopeSpan(),F=!!(null==S?void 0:S.isWrappedByNextServer),K=!!(0,a.getRequestMeta)(e,"minimalMode"),z=(0,a.getRequestMeta)(e,"incrementalCache")||await A.getIncrementalCache(e,x,y,K);null==z||z.resetRequestCache(),globalThis.__incrementalCache=z;let L={params:k,previewProps:y.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:q,incrementalCache:z,cacheLifeProfiles:x.cacheLife,waitUntil:s.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,s,a)=>A.onRequestError(e,t,s,a,S)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let a,o=async e=>A.handle(G,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=r.get("next.route");if(s){let t=`${U} ${s}`;e.setAttributes({"next.route":s,"http.route":s,"next.span_name":t}),e.updateName(t),a&&a!==e&&(a.setAttribute("http.route",s),a.updateName(t))}else e.updateName(`${U} ${_}`)}),i=async a=>{var n,i;let l=async({previousCacheEntry:r})=>{try{if(!K&&C&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await o(a);e.fetchMetrics=L.renderOpts.fetchMetrics;let i=L.renderOpts.pendingWaitUntil;i&&s.waitUntil&&(s.waitUntil(i),i=void 0);let l=L.renderOpts.collectedTags;if(!I)return await (0,c.sendResponse)(V,W,n,L.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,s=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:s}}}}catch(t){throw(null==r?void 0:r.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:C})},!1,S),t}},u=await A.handleResponse({req:e,nextConfig:x,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:s.waitUntil,isMinimalMode:K});if(!I)return null;if((null==u||null==(n=u.value)?void 0:n.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",C?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),N&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return K&&I||d.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,f.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(V,W,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};F&&B?await i(B):(a=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${U} ${_}`,kind:n.SpanKind.SERVER,attributes:{"http.method":U,"http.target":e.url}},i),void 0,!F))}catch(t){if(t instanceof g.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:C})},!1,S),I)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,D,"patchFetch",0,function(){return(0,s.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:O})},"routeModule",0,A,"serverHooks",0,I,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,O],687458)},168315,e=>{e.v(t=>Promise.all(["server/chunks/0sag_@better-auth_memory-adapter_dist_index_mjs_0pvj6im._.js"].map(t=>e.l(t))).then(()=>t(862112)))},396690,e=>{e.v(t=>Promise.all(["server/chunks/032z_better-auth_dist_adapters_kysely-adapter_index_mjs_0.uqexi._.js"].map(t=>e.l(t))).then(()=>t(320652)))},580632,e=>{e.v(e=>Promise.resolve().then(()=>e(270406)))},947559,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_bun-sqlite-dialect-DzNwOpKv_mjs_0z1z6m4._.js"].map(t=>e.l(t))).then(()=>t(495181)))},715018,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_node-sqlite-dialect_mjs_0qqlvhl._.js"].map(t=>e.l(t))).then(()=>t(698370)))},146843,e=>{e.v(t=>Promise.all(["server/chunks/0ugq_@better-auth_kysely-adapter_dist_d1-sqlite-dialect-C2B7YsIT_mjs_0wynrz3._.js"].map(t=>e.l(t))).then(()=>t(143740)))},84040,e=>{e.v(t=>Promise.all(["server/chunks/0p91_next_0h94sj1._.js"].map(t=>e.l(t))).then(()=>t(815068)))},526888,e=>{e.v(e=>Promise.resolve().then(()=>e(28962)))},893412,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_auth_api-key_ts_0t_ma-t._.js"].map(t=>e.l(t))).then(()=>t(499465)))},687903,e=>{e.v(e=>Promise.resolve().then(()=>e(912714)))},919623,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_auth_admin_ts_0g4i6v_._.js"].map(t=>e.l(t))).then(()=>t(583627)))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0k46u9j._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},959801,(e,t,r)=>{"use strict";t.exports=e.r(918622)},637142,(e,t,r)=>{"use strict";t.exports=e.r(959801).vendored["react-rsc"].React},186791,(e,t,r)=>{"use strict";var s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={},u={RequestCookies:()=>m,ResponseCookies:()=>y,parseCookie:()=>d,parseSetCookie:()=>c,stringifyCookie:()=>p};for(var l in u)s(a,l,{get:u[l],enumerable:!0});function p(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),s=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?s:`${s}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[s,n]=[r.slice(0,e),r.slice(e+1)];try{t.set(s,decodeURIComponent(null!=n?n:"true"))}catch{}}return t}function c(e){if(!e)return;let[[t,r],...s]=d(e),{domain:n,expires:i,httponly:o,maxage:a,path:u,samesite:l,secure:p,partitioned:c,priority:m}=Object.fromEntries(s.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var y,x,g={name:t,value:decodeURIComponent(r),domain:n,...i&&{expires:new Date(i)},...o&&{httpOnly:!0},..."string"==typeof a&&{maxAge:Number(a)},path:u,...l&&{sameSite:h.includes(y=(y=l).toLowerCase())?y:void 0},...p&&{secure:!0},...m&&{priority:f.includes(x=(x=m).toLowerCase())?x:void 0},...c&&{partitioned:!0}};let e={};for(let t in g)g[t]&&(e[t]=g[t]);return e}}t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of i(t))o.call(e,a)||void 0===a||s(e,a,{get:()=>t[a],enumerable:!(r=n(t,a))||r.enumerable});return e})(s({},"__esModule",{value:!0}),a);var h=["strict","lax","none"],f=["low","medium","high"],m=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let s="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===s).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,s=this._parsed;return s.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(s).map(([e,t])=>p(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>p(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},y=class{constructor(e){var t,r,s;this._parsed=new Map,this._headers=e;const n=null!=(s=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?s:[];for(const e of Array.isArray(n)?n:function(e){if(!e)return[];var t,r,s,n,i,o=[],a=0;function u(){for(;a<e.length&&/\s/.test(e.charAt(a));)a+=1;return a<e.length}for(;a<e.length;){for(t=a,i=!1;u();)if(","===(r=e.charAt(a))){for(s=a,a+=1,u(),n=a;a<e.length&&"="!==(r=e.charAt(a))&&";"!==r&&","!==r;)a+=1;a<e.length&&"="===e.charAt(a)?(i=!0,a=n,o.push(e.substring(t,s)),t=a):a=s+1}else a+=1;(!i||a>=e.length)&&o.push(e.substring(t,e.length))}return o}(n)){const t=c(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let s="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===s)}has(e){return this._parsed.has(e)}set(...e){let[t,r,s]=1===e.length?[e[0].name,e[0].value,e[0]]:e,n=this._parsed;return n.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...s})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=p(r);t.append("set-cookie",e)}}(n,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(p).join("; ")}}},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},666680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},660526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},798003,e=>{"use strict";var t=e.i(912714),r=e.i(660526),s=e.i(750227);function n(){return s.default.join(r.default.homedir(),".wiki-viewer","config.json")}async function i(){let e=s.default.join(r.default.homedir(),".wiki-viewer");await (0,t.mkdir)(e,{recursive:!0,mode:448});try{await (0,t.chmod)(e,448)}catch{}}async function o(){try{let e=await (0,t.readFile)(n(),"utf8");return JSON.parse(e)}catch{return{}}}let a=Promise.resolve();function u(e){let t=a.then(e,e);return a=t.then(()=>void 0,()=>void 0),t}async function l(e){await i(),await (0,t.writeFile)(n(),JSON.stringify(e,null,2),{encoding:"utf8",mode:384});try{await (0,t.chmod)(n(),384)}catch{}}async function p(e){return u(async()=>{let t=await o();await l({...t,...e})})}async function d(e){return u(async()=>{let t=e({...await o()});return await l(t),t})}e.s(["readConfig",0,o,"reposDir",0,function(){return s.default.join(r.default.homedir(),".wiki-viewer","repos")},"updateConfig",0,d,"writeConfig",0,p])},874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},256294,296555,e=>{"use strict";let t;var r=e.i(874533),s=e.i(812057),n=e.i(912714),i=e.i(750227),o=e.i(660526);e.i(902157);let a=RegExp("[;|&$`<>(){}\\n\\r\\0]");function u(e){let{target:t,mountpoint:r,port:s}=e,n=t.user?`${t.user}@`:"",i=[`${n}${t.host}:${t.remotePath}`,r];s&&Number.isInteger(Number(s))&&Number(s)>0&&65536>Number(s)&&i.push("-p",String(s));let o=e.authMethod??"agent";!e.authMethod&&(null!=e.password?o="password":e.keyPath&&(o="keyfile"));let a=["reconnect","ServerAliveInterval=15","ServerAliveCountMax=3","compression=yes","cache=yes","kernel_cache","StrictHostKeyChecking=accept-new","BatchMode=yes"];if(e.readOnly&&a.push("ro"),"keyfile"===o&&e.keyPath&&(a.push(`IdentityFile=${e.keyPath}`),a.push("IdentitiesOnly=yes")),"password"===o){let e=a.indexOf("BatchMode=yes");e>=0&&a.splice(e,1),a.push("password_stdin"),a.push("PreferredAuthentications=password,keyboard-interactive"),a.push("PubkeyAuthentication=no"),a.push("NumberOfPasswordPrompts=1")}return e.extraOptions&&a.push(...e.extraOptions),i.push("-o",a.join(",")),i}e.s(["buildSshfsArgs",0,u,"isValidKeyPath",0,function(e){return!(!e||a.test(e)||e.includes(".."))&&(e.startsWith("/")||e.startsWith("~/"))},"parseSshTarget",0,function(e){let t;if(!e||a.test(e))return null;let r=e.trim(),s=r.indexOf(":");if(s<=0)return null;let n=r.slice(0,s),i=r.slice(s+1);if(!i.startsWith("/")||i.includes(".."))return null;let o=n,u=n.indexOf("@");return u>=0&&(t=n.slice(0,u),o=n.slice(u+1),!t)?null:o&&/^[a-zA-Z0-9.\-]+$/.test(o)&&(!t||/^[a-zA-Z0-9._\-]+$/.test(t))?{user:t,host:o,remotePath:i}:null}],296555);let l=(0,s.promisify)(r.execFile);function p(){return i.default.join(o.default.homedir(),".wiki-viewer","mounts")}async function d(){if(!0!==t)try{await l("sshfs",["--version"]),t=!0}catch{throw Error("sshfs binary not found. Install sshfs + FUSE (e.g. `apt install sshfs`, `brew install macfuse sshfs`) and ensure it is on PATH.")}}async function c(t){var r;let s=i.default.resolve(t),o=!1;try{o=(await (0,n.readFile)("/proc/mounts","utf8")).split("\n").some(e=>{let t=e.split(" ");return t[1]===s&&/fuse/.test(t[2]??"")})}catch{o=!1}return!!o&&(r=s,new Promise(t=>{let s=!1,n=setTimeout(()=>{s||(s=!0,t(!1))},4e3);e.A(687903).then(({readdir:e})=>e(r)).then(()=>{s||(s=!0,clearTimeout(n),t(!0))}).catch(()=>{s||(s=!0,clearTimeout(n),t(!1))})}))}async function h(e){await d(),await (0,n.mkdir)(e.mountpoint,{recursive:!0});let t=u(e);if(await new Promise((s,n)=>{let i=(0,r.spawn)("sshfs",t,{stdio:["pipe","ignore","pipe"]}),o="",a=setTimeout(()=>{i.kill("SIGKILL"),n(Error("sshfs mount timed out after 25s."))},25e3);i.stderr?.on("data",e=>{o+=e.toString()}),i.on("error",e=>{clearTimeout(a),n(e.message.includes("ENOENT")?Error("sshfs binary not found on PATH."):e)}),i.on("close",e=>{clearTimeout(a),0===e?s():n(Error(`sshfs exited ${e}: ${o.trim()||"mount failed"}`))}),"password"===e.authMethod&&i.stdin?.write((e.password??"")+"\n"),i.stdin?.end()}),!await c(e.mountpoint))throw Error("sshfs reported success but the mount is not live.")}async function f(e){let t=i.default.resolve(e);for(let[e,r]of[["fusermount",["-u","-z",t]],["umount",[t]]])try{await l(e,r);break}catch{}try{await (0,n.rmdir)(t)}catch{}}e.s(["assertSshfsAvailable",0,d,"isMounted",0,c,"mountSshfs",0,h,"mountpointFor",0,function(e){return i.default.join(p(),e)},"mountsDir",0,p,"unmountSshfs",0,f],256294)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0kau~ca._.js.map
|