@seqyuan/annodex 0.1.84 → 0.1.85
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/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +7 -6
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +2 -7
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +6 -0
- package/.next/server/app/_global-error/page.js +3 -3
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/agent/runtime/route.js +2 -2
- package/.next/server/app/api/attachments/upload/route.js +1 -0
- package/.next/server/app/api/attachments/upload/route.js.nft.json +1 -0
- package/.next/server/app/api/attachments/upload/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/all-providers/route.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/login/route.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/providers/route.js +1 -1
- package/.next/server/app/api/auth/status/route.js +1 -1
- package/.next/server/app/api/default-cwd/route.js +1 -1
- package/.next/server/app/api/extensions/discover/route.js +1 -1
- package/.next/server/app/api/extensions/mcp/route.js +1 -1
- package/.next/server/app/api/extensions/plugin/route.js +1 -1
- package/.next/server/app/api/extensions/plugin-marketplace/route.js +1 -1
- package/.next/server/app/api/extensions/route.js +1 -1
- package/.next/server/app/api/extensions/session/route.js +1 -1
- package/.next/server/app/api/files/[...path]/route.js +1 -1
- package/.next/server/app/api/harness/route.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/im/cancel/route.js +2 -2
- package/.next/server/app/api/im/gateway-status/route.js +2 -2
- package/.next/server/app/api/im/gateway-token/route.js +1 -1
- package/.next/server/app/api/im/project/route.js +2 -2
- package/.next/server/app/api/im/projects/route.js +1 -1
- package/.next/server/app/api/im/session-ids/route.js +1 -1
- package/.next/server/app/api/im/turn/route.js +2 -2
- package/.next/server/app/api/images/upload/route.js +1 -1
- package/.next/server/app/api/internal/runtime/route.js +1 -1
- package/.next/server/app/api/memory/promote/route.js +2 -2
- package/.next/server/app/api/memory/recall/route.js +3 -3
- package/.next/server/app/api/memory/reflect/route.js +1 -1
- package/.next/server/app/api/memory/retain/route.js +2 -2
- package/.next/server/app/api/memory/status/route.js +2 -2
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/route.js +1 -1
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/projects/browse/route.js +1 -1
- package/.next/server/app/api/projects/route.js +1 -1
- package/.next/server/app/api/search/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/new/route.js +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/settings/route.js +1 -1
- package/.next/server/app/api/skills/install/route.js +2 -2
- package/.next/server/app/api/skills/route.js +2 -2
- package/.next/server/app/api/skills/search/route.js +1 -1
- package/.next/server/app/api/soul/route.js +1 -1
- package/.next/server/app/api/version/route.js +1 -1
- package/.next/server/app/docs/changelog/page.js +3 -3
- package/.next/server/app/docs/changelog/page_client-reference-manifest.js +1 -1
- package/.next/server/app/docs/changelog.html +2 -2
- package/.next/server/app/docs/changelog.rsc +1 -1
- package/.next/server/app/docs/changelog.segments/_full.segment.rsc +1 -1
- package/.next/server/app/docs/changelog.segments/_head.segment.rsc +1 -1
- package/.next/server/app/docs/changelog.segments/_index.segment.rsc +1 -1
- package/.next/server/app/docs/changelog.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/docs/changelog.segments/docs/changelog/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/docs/changelog.segments/docs/changelog.segment.rsc +1 -1
- package/.next/server/app/docs/changelog.segments/docs.segment.rsc +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login/page.js +2 -2
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +1 -1
- package/.next/server/app/login.segments/_full.segment.rsc +1 -1
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +1 -1
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/workspace/page.js +10 -9
- package/.next/server/app/workspace/page_client-reference-manifest.js +1 -1
- package/.next/server/app/workspace.html +1 -1
- package/.next/server/app/workspace.rsc +2 -2
- package/.next/server/app/workspace.segments/_full.segment.rsc +2 -2
- package/.next/server/app/workspace.segments/_head.segment.rsc +1 -1
- package/.next/server/app/workspace.segments/_index.segment.rsc +1 -1
- package/.next/server/app/workspace.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/workspace.segments/workspace/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/workspace.segments/workspace.segment.rsc +1 -1
- package/.next/server/app-paths-manifest.json +7 -6
- package/.next/server/chunks/402.js +1 -1
- package/.next/server/chunks/6429.js +2 -2
- package/.next/server/chunks/6983.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/4683-1bf869e888b6b09f.js +1 -0
- package/.next/static/chunks/app/_global-error/{page-4d949d79c5bb42eb.js → page-a6b9f72d87288ed3.js} +1 -1
- package/.next/static/chunks/app/api/agent/[id]/events/{route-4d949d79c5bb42eb.js → route-a6b9f72d87288ed3.js} +1 -1
- package/.next/static/chunks/app/api/agent/[id]/{route-4d949d79c5bb42eb.js → route-a6b9f72d87288ed3.js} +1 -1
- package/.next/static/chunks/app/api/agent/new/{route-4d949d79c5bb42eb.js → route-a6b9f72d87288ed3.js} +1 -1
- package/.next/static/chunks/app/api/agent/runtime/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/attachments/upload/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/auth/all-providers/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/auth/login/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/auth/status/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/extensions/discover/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/extensions/mcp/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/extensions/plugin/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/extensions/plugin-marketplace/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/extensions/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/extensions/session/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/harness/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/home/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/im/cancel/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/im/gateway-status/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/im/gateway-token/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/im/project/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/im/projects/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/im/session-ids/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/im/turn/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/images/upload/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/internal/runtime/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/memory/promote/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/memory/recall/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/memory/reflect/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/memory/retain/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/memory/status/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/models/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/projects/browse/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/projects/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/search/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/sessions/new/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/settings/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/skills/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/soul/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/api/version/route-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/page-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/app/workspace/page-bfe371a0b7fa68a8.js +265 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-a6b9f72d87288ed3.js +1 -0
- package/.next/static/chunks/webpack-0b1e0af2488fca8f.js +1 -0
- package/.next/static/eQsZd4MGkan03BV4eca_-/_buildManifest.js +1 -0
- package/README.md +1 -1
- package/bin/annodex-im-gateway.js +8 -2
- package/bin/annodex.js +48 -3
- package/package.json +1 -1
- package/.next/static/ZsANx91orvRUgkmErFcbK/_buildManifest.js +0 -1
- package/.next/static/chunks/2619.9aac8983f30c7c8a.js +0 -1
- package/.next/static/chunks/539-ac30b542af536e0e.js +0 -1
- package/.next/static/chunks/app/api/agent/runtime/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/auth/all-providers/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/auth/login/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/auth/status/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/extensions/discover/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/extensions/mcp/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/extensions/plugin/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/extensions/plugin-marketplace/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/extensions/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/extensions/session/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/harness/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/home/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/im/cancel/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/im/gateway-status/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/im/gateway-token/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/im/project/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/im/projects/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/im/session-ids/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/im/turn/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/images/upload/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/internal/runtime/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/memory/promote/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/memory/recall/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/memory/reflect/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/memory/retain/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/memory/status/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/models/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/projects/browse/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/projects/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/search/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/sessions/new/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/settings/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/skills/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/soul/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/api/version/route-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/page-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/app/workspace/page-9672a7e7bb8b9bfb.js +0 -264
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-4d949d79c5bb42eb.js +0 -1
- package/.next/static/chunks/webpack-7606de11217524fe.js +0 -1
- /package/.next/static/{ZsANx91orvRUgkmErFcbK → eQsZd4MGkan03BV4eca_-}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,186,222,552,976,1004,1097,1109,1327,1541,1852,1921,2234,2752,2922,2976,3412,3785,3851,3955,4037,4352,4368,4610,4896,5177,5221,5281,5738,5781,5907,6202,6450,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7758,7778,7812,7851,8167,8658,8733,8743,8933,8974,9760,9787,9815,9949,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,186,222,552,976,1004,1097,1109,1327,1541,1852,1921,2234,2752,2922,2976,3412,3785,3851,3955,4037,4352,4368,4610,4896,5177,5221,5281,5738,5781,5907,6202,6450,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7758,7778,7812,7851,8167,8658,8733,8743,8933,8974,9760,9787,9815,9949,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,186,222,552,976,1004,1097,1109,1327,1541,1852,1921,2234,2752,2922,2976,3412,3785,3851,3955,4037,4352,4368,4610,4896,5177,5221,5281,5738,5781,5907,6202,6450,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7758,7778,7812,7851,8167,8658,8733,8743,8933,8974,9760,9787,9815,9949,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-a6b9f72d87288ed3.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,186,222,552,976,1004,1097,1109,1327,1541,1852,1921,2234,2752,2922,2976,3412,3785,3851,3955,4037,4352,4368,4610,4896,5177,5221,5281,5738,5781,5907,6202,6450,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7758,7778,7812,7851,8167,8658,8733,8743,8933,8974,9760,9787,9815,9949,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e,t,a,r,c,f,d,o,b={},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}},r=!0;try{b[e].call(a.exports,a,a.exports,i),r=!1}finally{r&&delete n[e]}return a.exports}i.m=b,e=[],i.O=(t,a,r,c)=>{if(a){c=c||0;for(var f=e.length;f>0&&e[f-1][2]>c;f--)e[f]=e[f-1];e[f]=[a,r,c];return}for(var d=1/0,f=0;f<e.length;f++){for(var[a,r,c]=e[f],o=!0,b=0;b<a.length;b++)(!1&c||d>=c)&&Object.keys(i.O).every(e=>i.O[e](a[b]))?a.splice(b--,1):(o=!1,c<d&&(d=c));if(o){e.splice(f--,1);var n=r();void 0!==n&&(t=n)}}return t},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var c=Object.create(null);i.r(c);var f={};t=t||[null,a({}),a([]),a(a)];for(var d=2&r&&e;"object"==typeof d&&!~t.indexOf(d);d=a(d))Object.getOwnPropertyNames(d).forEach(t=>f[t]=()=>e[t]);return f.default=()=>e,i.d(c,f),c},i.d=(e,t)=>{for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,a)=>(i.f[a](e,t),t),[])),i.u=e=>7627===e?"static/chunks/7627-1f8c705195c83044.js":"static/chunks/"+(({2213:"51fb665c",2941:"73972abe",2995:"0b9a0da7",3524:"2170a4aa",4954:"2918becc",7330:"d3ac728e",8184:"58bb9007",8747:"90542734"})[e]||e)+"."+({83:"85d62d7fc9850b75",394:"91597771688df6d0",498:"fe1d9da9ecad6c36",532:"5956ed631aff722b",547:"902a733488cfe3f7",1413:"922d232de90c0c41",1643:"467a526a1f24f54d",1960:"b1e26436d7a5f586",2213:"0950e1b79671348d",2274:"6cd173f80a1405a2",2419:"347fdfe3c170854d",2623:"d20fabd8e18197c6",2632:"f12f984b8009d7f1",2729:"f5365061a849d659",2821:"934bcf60fbdc28c6",2941:"25a4cffa03b2bcef",2947:"114e51cb06d1c01a",2995:"9075af772487e743",3079:"4c511fa1144e3adf",3274:"208ca44844cd7d95",3308:"15865ff66152df82",3325:"e4bfe1ca657f3b5b",3506:"2a7eaa08b9f55337",3524:"4213bb2183c9cdf9",3837:"a755ccfe6f9c1c1c",3997:"1009c06025691712",4453:"91a357dc43c21745",4491:"44fdf20580ac72bd",4660:"6d9fc47e6ed8e7e4",4829:"cf1d50e43e6d9db5",4954:"abff2ece1de37bc1",5019:"b5a1a2b8daf17525",5034:"8f16c3fa3ce75411",5074:"d16651da01ec4e02",5326:"69460442bdcd6cd3",5403:"ff110bf5bf600758",5567:"540d7fc108ad6ee5",5590:"ef62922166d308b4",5690:"9d6eb1edb1399995",5749:"25faee4a1e55b854",6121:"f3f43f1896ea0cd9",6600:"583c88eef37aa524",6606:"789f1fc26b9150dd",6696:"a41aec266e657d54",6878:"3d114dd7c83aa676",6922:"42148793782d2fe7",7006:"e191611ffc2b9528",7330:"7964f816a1ca64e5",7343:"9fbb58204d8ac681",7547:"58bda8a2aabba0d4",7648:"4ae2f183b4db0353",7874:"8db6929b94cdf697",7959:"1f20a35df316216a",8184:"1ccb6bba34b4c635",8436:"cab94b59cca0a8ff",8451:"ff6ff72b57dc52e1",8489:"45f22859734f514f",8568:"f85d8b36fc9a9037",8747:"dc1a2723e4f6affb",8863:"be51033a67436277",9471:"95facb3cb29a466e",9500:"1488aec06ee78127",9566:"2b92edbd162fb97d",9633:"155548b5fca6e580",9695:"9e959b13b18c3485",9779:"673004a62d70e36a",9855:"1127e644bd68ced0"})[e]+".js",i.miniCssF=e=>{},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},i.l=(e,t,a,c)=>{if(r[e])return void r[e].push(t);if(void 0!==a)for(var f,d,o=document.getElementsByTagName("script"),b=0;b<o.length;b++){var n=o[b];if(n.getAttribute("src")==e||n.getAttribute("data-webpack")=="_N_E:"+a){f=n;break}}f||(d=!0,(f=document.createElement("script")).charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.setAttribute("data-webpack","_N_E:"+a),f.src=i.tu(e)),r[e]=[t];var u=(t,a)=>{f.onerror=f.onload=null,clearTimeout(l);var c=r[e];if(delete r[e],f.parentNode&&f.parentNode.removeChild(f),c&&c.forEach(e=>e(a)),t)return t(a)},l=setTimeout(u.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=u.bind(null,f.onerror),f.onload=u.bind(null,f.onload),d&&document.head.appendChild(f)},i.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.U=function(e){var t=new URL(e,"x:/"),a={};for(var r in t)a[r]=t[r];for(var r in a.href=e,a.pathname=e.replace(/[?#].*/,""),a.origin=a.protocol="",a.toString=a.toJSON=()=>e,a)Object.defineProperty(this,r,{enumerable:!0,configurable:!0,value:a[r]})},i.U.prototype=URL.prototype,i.tt=()=>(void 0===c&&(c={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(c=trustedTypes.createPolicy("nextjs#bundler",c))),c),i.tu=e=>i.tt().createScriptURL(e),i.p="/_next/",f={8068:0,7513:0,5928:0},i.f.j=(e,t)=>{var a=i.o(f,e)?f[e]:void 0;if(0!==a)if(a)t.push(a[2]);else if(/^(5928|7513|8068)$/.test(e))f[e]=0;else{var r=new Promise((t,r)=>a=f[e]=[t,r]);t.push(a[2]=r);var c=i.p+i.u(e),d=Error();i.l(c,t=>{if(i.o(f,e)&&(0!==(a=f[e])&&(f[e]=void 0),a)){var r=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+r+": "+c+")",d.name="ChunkLoadError",d.type=r,d.request=c,a[1](d)}},"chunk-"+e,e)}},i.O.j=e=>0===f[e],d=(e,t)=>{var a,r,[c,d,o]=t,b=0;if(c.some(e=>0!==f[e])){for(a in d)i.o(d,a)&&(i.m[a]=d[a]);if(o)var n=o(i)}for(e&&e(t);b<c.length;b++)r=c[b],i.o(f,r)&&f[r]&&f[r][0](),f[r]=0;return i.O(n)},(o=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(d.bind(null,0)),o.push=d.bind(null,o.push.bind(o)),i.nc=void 0})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:51,errorRate:1e-4,numBits:978,numHashes:14,bitArray:[1,1,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0,1,1,1,0,1,1,1,0,1,1,0,0,1,0,0,0,0,1,1,1,0,1,0,0,1,0,1,1,1,0,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,1,1,0,0,1,1,1,0,1,0,0,1,1,1,0,0,1,0,0,0,0,1,1,0,0,0,1,0,1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self.__BUILD_MANIFEST_CB();
|
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Open [http://localhost:30121/workspace](http://localhost:30121/workspace). On fi
|
|
|
28
28
|
- **Native `/goal`** — Codex thread goals with in-app panel and slash command.
|
|
29
29
|
- **Images** — pasted images save to `{project}/.annodex-uploads/` and reload after refresh.
|
|
30
30
|
- **Project memory** — working memory (retain / recall / reflect via MCP) with promote to `MEMORY.md` / `CONTEXT.md`.
|
|
31
|
-
- **Project IM (WeCom)** — optional one bot per project cwd; configure in **Settings → Project → WeCom IM**; run `annodex-im-gateway` as a sidecar.
|
|
31
|
+
- **Project IM (WeCom)** — optional one bot per project cwd; configure in **Settings → Project → WeCom IM**; run `annodex-im-gateway` as a sidecar (auto-started by `annodex start`).
|
|
32
32
|
- **Extensions** — MCP / plugin definitions (Settings → Extensions); global config in `~/.config/annodex/extensions.json`.
|
|
33
33
|
- **Skills, tools, sandbox** — per-session tool presets and thinking level from the chat bar.
|
|
34
34
|
- **Files panel** — browse, preview, and edit project files alongside chat.
|
|
@@ -15,6 +15,10 @@ const UPLOAD_CHUNK_SIZE = 512 * 1024;
|
|
|
15
15
|
const REQUEST_TIMEOUT_MS = 30_000;
|
|
16
16
|
|
|
17
17
|
const REVISION_DIGITS = ["\u200b", "\u200c", "\u200d", "\u2060", "\ufeff"];
|
|
18
|
+
|
|
19
|
+
function logTimestamp() {
|
|
20
|
+
return new Date().toISOString();
|
|
21
|
+
}
|
|
18
22
|
const REVISION_SUFFIX_PATTERN = /[\u200b\u200c\u200d\u2060\ufeff]+$/u;
|
|
19
23
|
|
|
20
24
|
function envFirst(...names) {
|
|
@@ -941,9 +945,10 @@ function writeGatewayState(patch) {
|
|
|
941
945
|
}
|
|
942
946
|
|
|
943
947
|
async function main() {
|
|
948
|
+
const managed = process.env.ANNODEX_IM_GATEWAY_MANAGED === "1";
|
|
944
949
|
const gateway = new ImGateway();
|
|
945
950
|
const shutdown = async () => {
|
|
946
|
-
console.error(
|
|
951
|
+
console.error(`[im ${logTimestamp()}] shutting down`);
|
|
947
952
|
await gateway.stop();
|
|
948
953
|
process.exit(0);
|
|
949
954
|
};
|
|
@@ -953,9 +958,10 @@ async function main() {
|
|
|
953
958
|
const configDir = ensureAgentDir();
|
|
954
959
|
const user = os.userInfo().username;
|
|
955
960
|
const baseUrl = resolveBaseUrl();
|
|
956
|
-
console.error(`[im] annodex-im-gateway user=${user} config=${configDir} annodex=${baseUrl}`);
|
|
961
|
+
console.error(`[im ${logTimestamp()}] annodex-im-gateway user=${user} config=${configDir} annodex=${baseUrl} mode=${managed ? "managed" : "standalone"}`);
|
|
957
962
|
await syncGatewayTokenFromServer();
|
|
958
963
|
await gateway.start();
|
|
964
|
+
console.error(`[im ${logTimestamp()}] gateway started, polling for projects`);
|
|
959
965
|
}
|
|
960
966
|
|
|
961
967
|
main().catch((error) => {
|
package/bin/annodex.js
CHANGED
|
@@ -50,6 +50,7 @@ const legacyStateFiles = [
|
|
|
50
50
|
path.join(agentDir, "pidex.json"),
|
|
51
51
|
];
|
|
52
52
|
const logFile = path.join(agentDir, "annodex.log");
|
|
53
|
+
const imGatewayLogFile = path.join(agentDir, "annodex-im-gateway.log");
|
|
53
54
|
const legacyLogFiles = [
|
|
54
55
|
path.join(agentDir, "annovibe.log"),
|
|
55
56
|
path.join(agentDir, "pidex.log"),
|
|
@@ -660,6 +661,8 @@ function renderState(state, json = false) {
|
|
|
660
661
|
restartStartedAt: state?.restartStartedAt ?? null,
|
|
661
662
|
logFile,
|
|
662
663
|
stateFile,
|
|
664
|
+
imGatewayPid: state?.imGatewayPid && isPidAlive(state.imGatewayPid) ? state.imGatewayPid : null,
|
|
665
|
+
imGatewayLogFile: state?.imGatewayLogFile ?? imGatewayLogFile,
|
|
663
666
|
};
|
|
664
667
|
if (json) return JSON.stringify(payload, null, 2);
|
|
665
668
|
if (payload.status === "stopped") {
|
|
@@ -681,6 +684,7 @@ function renderState(state, json = false) {
|
|
|
681
684
|
`restart: pending${payload.installedVersion ? ` for v${payload.installedVersion}` : ""}`,
|
|
682
685
|
] : []),
|
|
683
686
|
`log: ${payload.logFile}`,
|
|
687
|
+
...(payload.imGatewayPid ? [`im-gateway pid: ${payload.imGatewayPid}`, `im-gateway log: ${payload.imGatewayLogFile}`] : ["im-gateway: not started"]),
|
|
684
688
|
].join("\n");
|
|
685
689
|
}
|
|
686
690
|
|
|
@@ -721,11 +725,26 @@ async function stopManagedServer(quiet = false) {
|
|
|
721
725
|
if (nextPid && isPidAlive(nextPid)) {
|
|
722
726
|
stopped = (await terminatePid(nextPid)) && stopped;
|
|
723
727
|
}
|
|
728
|
+
// Stop orphaned IM gateway (in case supervisor died but gateway lived on)
|
|
729
|
+
let imGatewayStopped = true;
|
|
730
|
+
try {
|
|
731
|
+
const imStatePath = path.join(agentDir, "im-gateway.json");
|
|
732
|
+
if (fs.existsSync(imStatePath)) {
|
|
733
|
+
const imState = JSON.parse(fs.readFileSync(imStatePath, "utf8"));
|
|
734
|
+
if (imState?.pid && isPidAlive(imState.pid)) {
|
|
735
|
+
imGatewayStopped = await terminatePid(imState.pid);
|
|
736
|
+
if (!quiet) console.log(`annodex stop: stopped im-gateway pid ${imState.pid}`);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
} catch {
|
|
740
|
+
// ignore errors reading IM gateway state
|
|
741
|
+
}
|
|
742
|
+
|
|
724
743
|
if (stopped) {
|
|
725
744
|
removeState();
|
|
726
745
|
const codexStop = await stopMatchingProcesses(looksLikeAnnodexCodexAppServer, "orphaned codex app-server process", quiet);
|
|
727
746
|
if (!quiet) console.log(`annodex stop: stopped${supervisorPid ? ` pid ${supervisorPid}` : ""}`);
|
|
728
|
-
if (!codexStop.stopped) return 1;
|
|
747
|
+
if (!codexStop.stopped || !imGatewayStopped) return 1;
|
|
729
748
|
return 0;
|
|
730
749
|
}
|
|
731
750
|
await stopMatchingProcesses(looksLikeAnnodexCodexAppServer, "orphaned codex app-server process", quiet);
|
|
@@ -1129,10 +1148,10 @@ Usage:
|
|
|
1129
1148
|
annodex [options]
|
|
1130
1149
|
annodex start Start annodex in background
|
|
1131
1150
|
annodex restart Stop then start annodex in background
|
|
1132
|
-
annodex stop Stop background annodex (and orphaned
|
|
1151
|
+
annodex stop Stop background annodex and im-gateway (and orphaned processes)
|
|
1133
1152
|
annodex status [--json] Show background server status
|
|
1134
1153
|
annodex logs [-f] Show background server logs
|
|
1135
|
-
annodex im-gateway Run WeCom IM sidecar (
|
|
1154
|
+
annodex im-gateway Run WeCom IM sidecar standalone (auto-started by annodex start)
|
|
1136
1155
|
annodex doctor [--json] [--repair] Diagnose local codex/runtime setup
|
|
1137
1156
|
annodex passwd Set or change password (empty = disable auth)
|
|
1138
1157
|
annodex update Update to the latest version
|
|
@@ -1168,6 +1187,7 @@ if (firstPos === "logs") {
|
|
|
1168
1187
|
}
|
|
1169
1188
|
|
|
1170
1189
|
if (firstPos === "im-gateway") {
|
|
1190
|
+
console.error("Note: im-gateway is auto-started by annodex start. Use this command only for standalone debugging.");
|
|
1171
1191
|
const gatewayScript = path.join(__dirname, "annodex-im-gateway.js");
|
|
1172
1192
|
const child = spawn(process.execPath, [gatewayScript, ...positionals.slice(1)], {
|
|
1173
1193
|
stdio: "inherit",
|
|
@@ -1514,6 +1534,28 @@ async function runServerProcess() {
|
|
|
1514
1534
|
});
|
|
1515
1535
|
let restarting = false;
|
|
1516
1536
|
|
|
1537
|
+
// Spawn IM gateway as a child of the supervisor
|
|
1538
|
+
const gatewayScript = path.join(__dirname, "annodex-im-gateway.js");
|
|
1539
|
+
let imGatewayChild = null;
|
|
1540
|
+
if (fs.existsSync(gatewayScript)) {
|
|
1541
|
+
const gwFd = fs.openSync(imGatewayLogFile, "a");
|
|
1542
|
+
imGatewayChild = spawn(process.execPath, [gatewayScript], {
|
|
1543
|
+
cwd: pkgDir,
|
|
1544
|
+
stdio: ["ignore", gwFd, gwFd],
|
|
1545
|
+
env: {
|
|
1546
|
+
...process.env,
|
|
1547
|
+
ANNODEX_SUPERVISOR_PID: String(process.pid),
|
|
1548
|
+
ANNODEX_IM_GATEWAY_MANAGED: "1",
|
|
1549
|
+
},
|
|
1550
|
+
});
|
|
1551
|
+
fs.closeSync(gwFd);
|
|
1552
|
+
imGatewayChild.on("exit", (code, signal) => {
|
|
1553
|
+
// Log exit but don't bring down the supervisor
|
|
1554
|
+
const reason = signal ? `signal ${signal}` : `code ${code ?? "null"}`;
|
|
1555
|
+
console.error(`annodex: im-gateway exited with ${reason}`);
|
|
1556
|
+
});
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1517
1559
|
const writeCurrentState = (patch = {}) => {
|
|
1518
1560
|
const current = readState() ?? {};
|
|
1519
1561
|
writeState({
|
|
@@ -1522,6 +1564,8 @@ async function runServerProcess() {
|
|
|
1522
1564
|
command: getServerCommand(),
|
|
1523
1565
|
supervisorPid: process.pid,
|
|
1524
1566
|
nextPid: child.pid ?? null,
|
|
1567
|
+
imGatewayPid: imGatewayChild?.pid ?? null,
|
|
1568
|
+
imGatewayLogFile,
|
|
1525
1569
|
port: String(port),
|
|
1526
1570
|
hostname,
|
|
1527
1571
|
url,
|
|
@@ -1556,6 +1600,7 @@ async function runServerProcess() {
|
|
|
1556
1600
|
const shutdown = async () => {
|
|
1557
1601
|
stopAutoRestartWatcher();
|
|
1558
1602
|
await terminatePid(child.pid);
|
|
1603
|
+
if (imGatewayChild?.pid) await terminatePid(imGatewayChild.pid);
|
|
1559
1604
|
if (!restarting) removeState();
|
|
1560
1605
|
process.exit(0);
|
|
1561
1606
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:50,errorRate:1e-4,numBits:959,numHashes:14,bitArray:[0,1,0,0,0,0,1,1,0,1,0,0,0,1,0,1,1,1,0,1,1,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,1,0,1,1,0,0,0,1,1,1,0,1,1,1,1,1,1,1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,0,0,0,1,1,1,1,1,1,0,0,1,0,1,0,0,1,1,0,0,0]},sortedPages:["/_app"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2619],{92619:t=>{var r={675:function(t,r){"use strict";r.byteLength=function(t){var r=s(t),e=r[0],n=r[1];return(e+n)*3/4-n},r.toByteArray=function(t){var r,e,i=s(t),f=i[0],u=i[1],h=new o((f+u)*3/4-u),a=0,p=u>0?f-4:f;for(e=0;e<p;e+=4)r=n[t.charCodeAt(e)]<<18|n[t.charCodeAt(e+1)]<<12|n[t.charCodeAt(e+2)]<<6|n[t.charCodeAt(e+3)],h[a++]=r>>16&255,h[a++]=r>>8&255,h[a++]=255&r;return 2===u&&(r=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,h[a++]=255&r),1===u&&(r=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,h[a++]=r>>8&255,h[a++]=255&r),h},r.fromByteArray=function(t){for(var r,n=t.length,o=n%3,i=[],f=0,u=n-o;f<u;f+=16383)i.push(function(t,r,n){for(var o,i=[],f=r;f<n;f+=3)o=(t[f]<<16&0xff0000)+(t[f+1]<<8&65280)+(255&t[f+2]),i.push(e[o>>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return i.join("")}(t,f,f+16383>u?u:f+16383));return 1===o?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===o&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")};for(var e=[],n=[],o="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,u=i.length;f<u;++f)e[f]=i[f],n[i.charCodeAt(f)]=f;function s(t){var r=t.length;if(r%4>0)throw Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}n[45]=62,n[95]=63},72:function(t,r,e){"use strict";var n=e(675),o=e(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return a(t)}return s(t,r,e)}function s(t,r,e){if("string"==typeof t){var n=t,o=r;if(("string"!=typeof o||""===o)&&(o="utf8"),!u.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|l(n,o),s=f(i),h=s.write(n,o);return h!==i&&(s=s.slice(0,h)),s}if(ArrayBuffer.isView(t))return p(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(C(t,ArrayBuffer)||t&&C(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(C(t,SharedArrayBuffer)||t&&C(t.buffer,SharedArrayBuffer)))return function(t,r,e){var n;if(r<0||t.byteLength<r)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===r&&void 0===e?new Uint8Array(t):void 0===e?new Uint8Array(t,r):new Uint8Array(t,r,e),u.prototype),n}(t,r,e);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var a=t.valueOf&&t.valueOf();if(null!=a&&a!==t)return u.from(a,r,e);var y=function(t){if(u.isBuffer(t)){var r=0|c(t.length),e=f(r);return 0===e.length||t.copy(e,0,0,r),e}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?f(0):p(t):"Buffer"===t.type&&Array.isArray(t.data)?p(t.data):void 0}(t);if(y)return y;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),r,e);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function a(t){return h(t),f(t<0?0:0|c(t))}function p(t){for(var r=t.length<0?0:0|c(t.length),e=f(r),n=0;n<r;n+=1)e[n]=255&t[n];return e}r.Buffer=u,r.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),!u.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,r,e){return s(t,r,e)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,r,e){return(h(t),t<=0)?f(t):void 0!==r?"string"==typeof e?f(t).fill(r,e):f(t).fill(r):f(t)},u.allocUnsafe=function(t){return a(t)},u.allocUnsafeSlow=function(t){return a(t)};function c(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function l(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||C(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return I(t).length;default:if(o)return n?-1:x(t).length;r=(""+r).toLowerCase(),o=!0}}function y(t,r,e){var o,i,f,u=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0||(e>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i<e;++i)o+=L[t[i]];return o}(this,r,e);case"utf8":case"utf-8":return b(this,r,e);case"ascii":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(127&t[o]);return n}(this,r,e);case"latin1":case"binary":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(t[o]);return n}(this,r,e);case"base64":return o=this,i=r,f=e,0===i&&f===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,f));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,r,e);default:if(u)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),u=!0}}function g(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function v(t,r,e,n,o){var i;if(0===t.length)return -1;if("string"==typeof e?(n=e,e=0):e>0x7fffffff?e=0x7fffffff:e<-0x80000000&&(e=-0x80000000),(i=e*=1)!=i&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length)if(o)return -1;else e=t.length-1;else if(e<0)if(!o)return -1;else e=0;if("string"==typeof r&&(r=u.from(r,n)),u.isBuffer(r))return 0===r.length?-1:d(t,r,e,n,o);if("number"==typeof r){if(r&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(t,r,e);else return Uint8Array.prototype.lastIndexOf.call(t,r,e);return d(t,[r],e,n,o)}throw TypeError("val must be string, number or Buffer")}function d(t,r,e,n,o){var i,f=1,u=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;f=2,u/=2,s/=2,e/=2}function h(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}if(o){var a=-1;for(i=e;i<u;i++)if(h(t,i)===h(r,-1===a?0:i-a)){if(-1===a&&(a=i),i-a+1===s)return a*f}else -1!==a&&(i-=i-a),a=-1}else for(e+s>u&&(e=u-s),i=e;i>=0;i--){for(var p=!0,c=0;c<s;c++)if(h(t,i+c)!==h(r,c)){p=!1;break}if(p)return i}return -1}u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,r){if(C(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),C(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,o=0,i=Math.min(e,n);o<i;++o)if(t[o]!==r[o]){e=t[o],n=r[o];break}return e<n?-1:+(n<e)},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,r){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);if(void 0===r)for(e=0,r=0;e<t.length;++e)r+=t[e].length;var e,n=u.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var i=t[e];if(C(i,Uint8Array)&&(i=u.from(i)),!u.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},u.byteLength=l,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)g(this,r,r+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)g(this,r,r+3),g(this,r+1,r+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)g(this,r,r+7),g(this,r+1,r+6),g(this,r+2,r+5),g(this,r+3,r+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,r,e,n,o){if(C(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return -1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,f=e-r,s=Math.min(i,f),h=this.slice(n,o),a=t.slice(r,e),p=0;p<s;++p)if(h[p]!==a[p]){i=h[p],f=a[p];break}return i<f?-1:+(f<i)},u.prototype.includes=function(t,r,e){return -1!==this.indexOf(t,r,e)},u.prototype.indexOf=function(t,r,e){return v(this,t,r,e,!0)},u.prototype.lastIndexOf=function(t,r,e){return v(this,t,r,e,!1)};function b(t,r,e){e=Math.min(t.length,e);for(var n=[],o=r;o<e;){var i,f,u,s,h=t[o],a=null,p=h>239?4:h>223?3:h>191?2:1;if(o+p<=e)switch(p){case 1:h<128&&(a=h);break;case 2:(192&(i=t[o+1]))==128&&(s=(31&h)<<6|63&i)>127&&(a=s);break;case 3:i=t[o+1],f=t[o+2],(192&i)==128&&(192&f)==128&&(s=(15&h)<<12|(63&i)<<6|63&f)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:i=t[o+1],f=t[o+2],u=t[o+3],(192&i)==128&&(192&f)==128&&(192&u)==128&&(s=(15&h)<<18|(63&i)<<12|(63&f)<<6|63&u)>65535&&s<1114112&&(a=s)}null===a?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=p}var c=n,l=c.length;if(l<=4096)return String.fromCharCode.apply(String,c);for(var y="",g=0;g<l;)y+=String.fromCharCode.apply(String,c.slice(g,g+=4096));return y}function w(t,r,e){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+r>e)throw RangeError("Trying to access beyond buffer length")}function m(t,r,e,n,o,i){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<i)throw RangeError('"value" argument is out of bounds');if(e+n>t.length)throw RangeError("Index out of range")}function E(t,r,e,n,o,i){if(e+n>t.length||e<0)throw RangeError("Index out of range")}function A(t,r,e,n,i){return r*=1,e>>>=0,i||E(t,r,e,4,34028234663852886e22,-34028234663852886e22),o.write(t,r,e,n,23,4),e+4}function B(t,r,e,n,i){return r*=1,e>>>=0,i||E(t,r,e,8,17976931348623157e292,-17976931348623157e292),o.write(t,r,e,n,52,8),e+8}u.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else if(isFinite(r))r>>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,f,u,s,h,a,p,c=this.length-r;if((void 0===e||e>c)&&(e=c),t.length>0&&(e<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var l=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;n>i/2&&(n=i/2);for(var f=0;f<n;++f){var u,s=parseInt(r.substr(2*f,2),16);if((u=s)!=u)break;t[e+f]=s}return f}(this,t,r,e);case"utf8":case"utf-8":return o=r,i=e,S(x(t,this.length-o),this,o,i);case"ascii":return f=r,u=e,S(T(t),this,f,u);case"latin1":case"binary":return function(t,r,e,n){return S(T(r),t,e,n)}(this,t,r,e);case"base64":return s=r,h=e,S(I(t),this,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=r,p=e,S(function(t,r){for(var e,n,o=[],i=0;i<t.length&&!((r-=2)<0);++i)n=(e=t.charCodeAt(i))>>8,o.push(e%256),o.push(n);return o}(t,this.length-a),this,a,p);default:if(l)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),l=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var n=this.subarray(t,r);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUIntLE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},u.prototype.readUInt8=function(t,r){return t>>>=0,r||w(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},u.prototype.readUInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*r)),n},u.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},u.prototype.readInt8=function(t,r){return(t>>>=0,r||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?0xffff0000|e:e},u.prototype.readInt16BE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?0xffff0000|e:e},u.prototype.readInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,r){return t>>>=0,r||w(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,r){return t>>>=0,r||w(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,r){return t>>>=0,r||w(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,r){return t>>>=0,r||w(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;m(this,t,r,e,o,0)}var i=1,f=0;for(this[r]=255&t;++f<e&&(i*=256);)this[r+f]=t/i&255;return r+e},u.prototype.writeUIntBE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;m(this,t,r,e,o,0)}var i=e-1,f=1;for(this[r+i]=255&t;--i>=0&&(f*=256);)this[r+i]=t/f&255;return r+e},u.prototype.writeUInt8=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,1,255,0),this[r]=255&t,r+1},u.prototype.writeUInt16LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeUInt16BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeUInt32LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0xffffffff,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},u.prototype.writeUInt32BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0xffffffff,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeIntLE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var o=Math.pow(2,8*e-1);m(this,t,r,e,o-1,-o)}var i=0,f=1,u=0;for(this[r]=255&t;++i<e&&(f*=256);)t<0&&0===u&&0!==this[r+i-1]&&(u=1),this[r+i]=(t/f|0)-u&255;return r+e},u.prototype.writeIntBE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var o=Math.pow(2,8*e-1);m(this,t,r,e,o-1,-o)}var i=e-1,f=1,u=0;for(this[r+i]=255&t;--i>=0&&(f*=256);)t<0&&0===u&&0!==this[r+i+1]&&(u=1),this[r+i]=(t/f|0)-u&255;return r+e},u.prototype.writeInt8=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},u.prototype.writeInt16LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeInt16BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeInt32LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0x7fffffff,-0x80000000),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},u.prototype.writeInt32BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeFloatLE=function(t,r,e){return A(this,t,r,!0,e)},u.prototype.writeFloatBE=function(t,r,e){return A(this,t,r,!1,e)},u.prototype.writeDoubleLE=function(t,r,e){return B(this,t,r,!0,e)},u.prototype.writeDoubleBE=function(t,r,e){return B(this,t,r,!1,e)},u.prototype.copy=function(t,r,e,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e||0===t.length||0===this.length)return 0;if(r<0)throw RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o=n-e;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(r,e,n);else if(this===t&&e<r&&r<n)for(var i=o-1;i>=0;--i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return o},u.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length<r||this.length<e)throw RangeError("Out of range index");if(e<=r)return this;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var f=u.isBuffer(t)?t:u.from(t,n),s=f.length;if(0===s)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<e-r;++o)this[o+r]=f[o%s]}return this};var U=/[^+/0-9A-Za-z-_]/g;function x(t,r){r=r||1/0;for(var e,n=t.length,o=null,i=[],f=0;f<n;++f){if((e=t.charCodeAt(f))>55295&&e<57344){if(!o){if(e>56319||f+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else if(e<1114112){if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}else throw Error("Invalid code point")}return i}function T(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function I(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function S(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length)&&!(o>=t.length);++o)r[o+e]=t[o];return o}function C(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var L=function(){for(var t="0123456789abcdef",r=Array(256),e=0;e<16;++e)for(var n=16*e,o=0;o<16;++o)r[n+o]=t[e]+t[o];return r}()},783:function(t,r){r.read=function(t,r,e,n,o){var i,f,u=8*o-n-1,s=(1<<u)-1,h=s>>1,a=-7,p=e?o-1:0,c=e?-1:1,l=t[r+p];for(p+=c,i=l&(1<<-a)-1,l>>=-a,a+=u;a>0;i=256*i+t[r+p],p+=c,a-=8);for(f=i&(1<<-a)-1,i>>=-a,a+=n;a>0;f=256*f+t[r+p],p+=c,a-=8);if(0===i)i=1-h;else{if(i===s)return f?NaN:1/0*(l?-1:1);f+=Math.pow(2,n),i-=h}return(l?-1:1)*f*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var f,u,s,h=8*i-o-1,a=(1<<h)-1,p=a>>1,c=5960464477539062e-23*(23===o),l=n?0:i-1,y=n?1:-1,g=+(r<0||0===r&&1/r<0);for(isNaN(r=Math.abs(r))||r===1/0?(u=+!!isNaN(r),f=a):(f=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-f))<1&&(f--,s*=2),f+p>=1?r+=c/s:r+=c*Math.pow(2,1-p),r*s>=2&&(f++,s/=2),f+p>=a?(u=0,f=a):f+p>=1?(u=(r*s-1)*Math.pow(2,o),f+=p):(u=r*Math.pow(2,p-1)*Math.pow(2,o),f=0));o>=8;t[e+l]=255&u,l+=y,u/=256,o-=8);for(f=f<<o|u,h+=o;h>0;t[e+l]=255&f,l+=y,f/=256,h-=8);t[e+l-y]|=128*g}}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}},f=!0;try{r[t](i,i.exports,n),f=!1}finally{f&&delete e[t]}return i.exports}n.ab="//",t.exports=n(72)}}]);
|