@archipelagolab/lobi 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +164 -0
- package/SPEC-SUPPORT.md +116 -0
- package/api.ts +18 -0
- package/auth-presence.ts +56 -0
- package/channel-plugin-api.ts +3 -0
- package/cli-metadata.ts +11 -0
- package/contract-api.ts +17 -0
- package/helper-api.ts +3 -0
- package/index.test.ts +61 -0
- package/index.ts +51 -0
- package/openclaw.plugin.json +10 -10
- package/package.json +13 -19
- package/plugin-entry.handlers.runtime.ts +1 -0
- package/runtime-api.ts +54 -0
- package/runtime-heavy-api.ts +1 -0
- package/secret-contract-api.ts +5 -0
- package/setup-entry.ts +13 -0
- package/src/account-selection.test.ts +124 -0
- package/src/account-selection.ts +220 -0
- package/src/actions.account-propagation.test.ts +251 -0
- package/src/actions.test.ts +251 -0
- package/src/actions.ts +336 -0
- package/src/approval-auth.test.ts +23 -0
- package/src/approval-auth.ts +25 -0
- package/src/approval-handler.runtime.test.ts +46 -0
- package/src/approval-handler.runtime.ts +400 -0
- package/src/approval-ids.ts +6 -0
- package/src/approval-native.test.ts +329 -0
- package/src/approval-native.ts +336 -0
- package/src/approval-reactions.test.ts +107 -0
- package/src/approval-reactions.ts +158 -0
- package/src/auth-precedence.ts +61 -0
- package/src/channel-account-paths.ts +92 -0
- package/src/channel.account-paths.test.ts +102 -0
- package/src/channel.directory.test.ts +601 -0
- package/src/channel.resolve.test.ts +38 -0
- package/src/channel.runtime.ts +16 -0
- package/src/channel.setup.test.ts +269 -0
- package/src/channel.ts +570 -0
- package/src/cli-metadata.ts +19 -0
- package/src/cli.test.ts +1015 -0
- package/src/cli.ts +1198 -0
- package/src/config-adapter.ts +41 -0
- package/src/config-schema.test.ts +90 -0
- package/src/config-schema.ts +114 -0
- package/src/directory-live.test.ts +200 -0
- package/src/directory-live.ts +238 -0
- package/src/doctor-contract.ts +287 -0
- package/src/doctor.test.ts +440 -0
- package/src/doctor.ts +262 -0
- package/src/env-vars.ts +92 -0
- package/src/exec-approval-resolver.test.ts +68 -0
- package/src/exec-approval-resolver.ts +23 -0
- package/src/exec-approvals.test.ts +483 -0
- package/src/exec-approvals.ts +290 -0
- package/src/group-mentions.ts +41 -0
- package/src/legacy-crypto-inspector-availability.test.ts +81 -0
- package/src/legacy-crypto-inspector-availability.ts +60 -0
- package/src/legacy-crypto.test.ts +234 -0
- package/src/legacy-crypto.ts +549 -0
- package/src/legacy-state.test.ts +86 -0
- package/src/legacy-state.ts +156 -0
- package/src/matrix/account-config.ts +150 -0
- package/src/matrix/accounts.readiness.test.ts +27 -0
- package/src/matrix/accounts.test.ts +757 -0
- package/src/matrix/accounts.ts +194 -0
- package/src/matrix/actions/client.test.ts +215 -0
- package/src/matrix/actions/client.ts +31 -0
- package/src/matrix/actions/devices.test.ts +114 -0
- package/src/matrix/actions/devices.ts +34 -0
- package/src/matrix/actions/limits.test.ts +15 -0
- package/src/matrix/actions/limits.ts +6 -0
- package/src/matrix/actions/messages.test.ts +289 -0
- package/src/matrix/actions/messages.ts +123 -0
- package/src/matrix/actions/pins.test.ts +74 -0
- package/src/matrix/actions/pins.ts +64 -0
- package/src/matrix/actions/polls.test.ts +71 -0
- package/src/matrix/actions/polls.ts +109 -0
- package/src/matrix/actions/profile.test.ts +109 -0
- package/src/matrix/actions/profile.ts +37 -0
- package/src/matrix/actions/reactions.test.ts +135 -0
- package/src/matrix/actions/reactions.ts +59 -0
- package/src/matrix/actions/room.test.ts +79 -0
- package/src/matrix/actions/room.ts +71 -0
- package/src/matrix/actions/summary.test.ts +87 -0
- package/src/matrix/actions/summary.ts +88 -0
- package/src/matrix/actions/types.ts +82 -0
- package/src/matrix/actions/verification.test.ts +105 -0
- package/src/matrix/actions/verification.ts +237 -0
- package/src/matrix/actions.ts +37 -0
- package/src/matrix/active-client.ts +26 -0
- package/src/matrix/async-lock.ts +18 -0
- package/src/matrix/backup-health.ts +115 -0
- package/src/matrix/client/config-runtime-api.ts +14 -0
- package/src/matrix/client/config-secret-input.runtime.ts +1 -0
- package/src/matrix/client/config.ts +979 -0
- package/src/matrix/client/create-client.test.ts +115 -0
- package/src/matrix/client/create-client.ts +101 -0
- package/src/matrix/client/env-auth.ts +6 -0
- package/src/matrix/client/file-sync-store.test.ts +265 -0
- package/src/matrix/client/file-sync-store.ts +289 -0
- package/src/matrix/client/logging.ts +123 -0
- package/src/matrix/client/migration-snapshot.runtime.ts +1 -0
- package/src/matrix/client/private-network-host.ts +56 -0
- package/src/matrix/client/runtime.ts +4 -0
- package/src/matrix/client/shared.test.ts +344 -0
- package/src/matrix/client/shared.ts +306 -0
- package/src/matrix/client/storage.test.ts +634 -0
- package/src/matrix/client/storage.ts +544 -0
- package/src/matrix/client/types.ts +50 -0
- package/src/matrix/client-bootstrap.test.ts +84 -0
- package/src/matrix/client-bootstrap.ts +164 -0
- package/src/matrix/client-resolver.test-helpers.ts +147 -0
- package/src/matrix/client.test.ts +1521 -0
- package/src/matrix/client.ts +23 -0
- package/src/matrix/config-paths.ts +31 -0
- package/src/matrix/config-update.test.ts +237 -0
- package/src/matrix/config-update.ts +291 -0
- package/src/matrix/credentials-read.ts +206 -0
- package/src/matrix/credentials-write.runtime.ts +26 -0
- package/src/matrix/credentials.test.ts +501 -0
- package/src/matrix/credentials.ts +95 -0
- package/src/matrix/deps.test.ts +74 -0
- package/src/matrix/deps.ts +225 -0
- package/src/matrix/device-health.test.ts +45 -0
- package/src/matrix/device-health.ts +31 -0
- package/src/matrix/direct-management.test.ts +350 -0
- package/src/matrix/direct-management.ts +347 -0
- package/src/matrix/direct-room.test.ts +61 -0
- package/src/matrix/direct-room.ts +128 -0
- package/src/matrix/draft-stream.test.ts +406 -0
- package/src/matrix/draft-stream.ts +216 -0
- package/src/matrix/encryption-guidance.ts +27 -0
- package/src/matrix/errors.ts +21 -0
- package/src/matrix/format.test.ts +340 -0
- package/src/matrix/format.ts +428 -0
- package/src/matrix/legacy-crypto-inspector.ts +95 -0
- package/src/matrix/media-errors.ts +20 -0
- package/src/matrix/media-text.ts +169 -0
- package/src/matrix/monitor/access-state.test.ts +45 -0
- package/src/matrix/monitor/access-state.ts +77 -0
- package/src/matrix/monitor/ack-config.test.ts +57 -0
- package/src/matrix/monitor/ack-config.ts +26 -0
- package/src/matrix/monitor/allowlist.test.ts +45 -0
- package/src/matrix/monitor/allowlist.ts +94 -0
- package/src/matrix/monitor/auto-join.test.ts +203 -0
- package/src/matrix/monitor/auto-join.ts +86 -0
- package/src/matrix/monitor/config.test.ts +197 -0
- package/src/matrix/monitor/config.ts +303 -0
- package/src/matrix/monitor/context-summary.ts +43 -0
- package/src/matrix/monitor/direct.test.ts +529 -0
- package/src/matrix/monitor/direct.ts +270 -0
- package/src/matrix/monitor/events.test.ts +1524 -0
- package/src/matrix/monitor/events.ts +213 -0
- package/src/matrix/monitor/handler.body-for-agent.test.ts +396 -0
- package/src/matrix/monitor/handler.group-history.test.ts +648 -0
- package/src/matrix/monitor/handler.media-failure.test.ts +267 -0
- package/src/matrix/monitor/handler.test-helpers.ts +308 -0
- package/src/matrix/monitor/handler.test.ts +2952 -0
- package/src/matrix/monitor/handler.thread-root-media.test.ts +82 -0
- package/src/matrix/monitor/handler.ts +1679 -0
- package/src/matrix/monitor/inbound-dedupe.test.ts +146 -0
- package/src/matrix/monitor/inbound-dedupe.ts +267 -0
- package/src/matrix/monitor/index.test.ts +920 -0
- package/src/matrix/monitor/index.ts +434 -0
- package/src/matrix/monitor/legacy-crypto-restore.test.ts +206 -0
- package/src/matrix/monitor/legacy-crypto-restore.ts +139 -0
- package/src/matrix/monitor/location.ts +100 -0
- package/src/matrix/monitor/media.test.ts +159 -0
- package/src/matrix/monitor/media.ts +119 -0
- package/src/matrix/monitor/mentions.test.ts +289 -0
- package/src/matrix/monitor/mentions.ts +177 -0
- package/src/matrix/monitor/reaction-events.test.ts +326 -0
- package/src/matrix/monitor/reaction-events.ts +187 -0
- package/src/matrix/monitor/recent-invite.test.ts +92 -0
- package/src/matrix/monitor/recent-invite.ts +30 -0
- package/src/matrix/monitor/replies.test.ts +265 -0
- package/src/matrix/monitor/replies.ts +136 -0
- package/src/matrix/monitor/reply-context.test.ts +276 -0
- package/src/matrix/monitor/reply-context.ts +92 -0
- package/src/matrix/monitor/room-history.test.ts +258 -0
- package/src/matrix/monitor/room-history.ts +301 -0
- package/src/matrix/monitor/room-info.test.ts +201 -0
- package/src/matrix/monitor/room-info.ts +126 -0
- package/src/matrix/monitor/rooms.test.ts +121 -0
- package/src/matrix/monitor/rooms.ts +52 -0
- package/src/matrix/monitor/route.test.ts +255 -0
- package/src/matrix/monitor/route.ts +178 -0
- package/src/matrix/monitor/runtime-api.ts +31 -0
- package/src/matrix/monitor/startup-verification.test.ts +294 -0
- package/src/matrix/monitor/startup-verification.ts +237 -0
- package/src/matrix/monitor/startup.test.ts +257 -0
- package/src/matrix/monitor/startup.ts +218 -0
- package/src/matrix/monitor/status.ts +111 -0
- package/src/matrix/monitor/sync-lifecycle.test.ts +224 -0
- package/src/matrix/monitor/sync-lifecycle.ts +91 -0
- package/src/matrix/monitor/task-runner.ts +38 -0
- package/src/matrix/monitor/thread-context.test.ts +149 -0
- package/src/matrix/monitor/thread-context.ts +108 -0
- package/src/matrix/monitor/threads.test.ts +68 -0
- package/src/matrix/monitor/threads.ts +85 -0
- package/src/matrix/monitor/types.ts +30 -0
- package/src/matrix/monitor/verification-events.ts +627 -0
- package/src/matrix/monitor/verification-utils.test.ts +47 -0
- package/src/matrix/monitor/verification-utils.ts +46 -0
- package/src/matrix/outbound-media-runtime.ts +1 -0
- package/src/matrix/poll-summary.ts +110 -0
- package/src/matrix/poll-types.test.ts +205 -0
- package/src/matrix/poll-types.ts +433 -0
- package/src/matrix/probe.runtime.ts +4 -0
- package/src/matrix/probe.test.ts +154 -0
- package/src/matrix/probe.ts +96 -0
- package/src/matrix/profile.test.ts +154 -0
- package/src/matrix/profile.ts +184 -0
- package/src/matrix/reaction-common.test.ts +96 -0
- package/src/matrix/reaction-common.ts +147 -0
- package/src/matrix/sdk/crypto-bootstrap.test.ts +505 -0
- package/src/matrix/sdk/crypto-bootstrap.ts +341 -0
- package/src/matrix/sdk/crypto-facade.test.ts +197 -0
- package/src/matrix/sdk/crypto-facade.ts +207 -0
- package/src/matrix/sdk/crypto-node.runtime.test.ts +27 -0
- package/src/matrix/sdk/crypto-node.runtime.ts +9 -0
- package/src/matrix/sdk/crypto-runtime.ts +11 -0
- package/src/matrix/sdk/decrypt-bridge.ts +356 -0
- package/src/matrix/sdk/event-helpers.test.ts +60 -0
- package/src/matrix/sdk/event-helpers.ts +71 -0
- package/src/matrix/sdk/http-client.test.ts +134 -0
- package/src/matrix/sdk/http-client.ts +87 -0
- package/src/matrix/sdk/idb-persistence-lock.ts +51 -0
- package/src/matrix/sdk/idb-persistence.lock-order.test.ts +108 -0
- package/src/matrix/sdk/idb-persistence.test-helpers.ts +88 -0
- package/src/matrix/sdk/idb-persistence.test.ts +149 -0
- package/src/matrix/sdk/idb-persistence.ts +283 -0
- package/src/matrix/sdk/logger.test.ts +25 -0
- package/src/matrix/sdk/logger.ts +108 -0
- package/src/matrix/sdk/read-response-with-limit.ts +19 -0
- package/src/matrix/sdk/recovery-key-store.test.ts +385 -0
- package/src/matrix/sdk/recovery-key-store.ts +430 -0
- package/src/matrix/sdk/transport.test.ts +161 -0
- package/src/matrix/sdk/transport.ts +344 -0
- package/src/matrix/sdk/types.ts +236 -0
- package/src/matrix/sdk/verification-manager.test.ts +509 -0
- package/src/matrix/sdk/verification-manager.ts +694 -0
- package/src/matrix/sdk/verification-status.ts +23 -0
- package/src/matrix/sdk.test.ts +2568 -0
- package/src/matrix/sdk.ts +1789 -0
- package/src/matrix/send/client.test.ts +174 -0
- package/src/matrix/send/client.ts +90 -0
- package/src/matrix/send/formatting.ts +189 -0
- package/src/matrix/send/media.ts +244 -0
- package/src/matrix/send/targets.test.ts +254 -0
- package/src/matrix/send/targets.ts +104 -0
- package/src/matrix/send/types.ts +134 -0
- package/src/matrix/send.test.ts +958 -0
- package/src/matrix/send.ts +609 -0
- package/src/matrix/session-store-metadata.ts +108 -0
- package/src/matrix/startup-abort.ts +44 -0
- package/src/matrix/sync-state.ts +27 -0
- package/src/matrix/target-ids.ts +102 -0
- package/src/matrix/thread-bindings-shared.ts +201 -0
- package/src/matrix/thread-bindings.test.ts +673 -0
- package/src/matrix/thread-bindings.ts +577 -0
- package/src/matrix-migration.runtime.ts +9 -0
- package/src/migration-config.test.ts +228 -0
- package/src/migration-config.ts +243 -0
- package/src/migration-snapshot-backup.ts +117 -0
- package/src/migration-snapshot.test.ts +184 -0
- package/src/migration-snapshot.ts +55 -0
- package/src/onboarding.resolve.test.ts +55 -0
- package/src/onboarding.test-harness.ts +158 -0
- package/src/onboarding.test.ts +665 -0
- package/src/onboarding.ts +773 -0
- package/src/outbound.test.ts +173 -0
- package/src/outbound.ts +78 -0
- package/src/plugin-entry.runtime.js +159 -0
- package/src/plugin-entry.runtime.test.ts +108 -0
- package/src/plugin-entry.runtime.ts +68 -0
- package/src/profile-update.ts +68 -0
- package/src/record-shared.ts +3 -0
- package/src/resolve-targets.test.ts +178 -0
- package/src/resolve-targets.ts +175 -0
- package/src/resolver.ts +21 -0
- package/src/runtime-api.ts +144 -0
- package/src/runtime.ts +7 -0
- package/src/secret-contract.ts +174 -0
- package/src/session-route.test.ts +315 -0
- package/src/session-route.ts +113 -0
- package/src/setup-bootstrap.ts +94 -0
- package/src/setup-config.ts +222 -0
- package/src/setup-contract.ts +89 -0
- package/src/setup-core.test.ts +326 -0
- package/src/setup-core.ts +50 -0
- package/src/setup-surface.ts +4 -0
- package/src/startup-maintenance.test.ts +227 -0
- package/src/startup-maintenance.ts +114 -0
- package/src/storage-paths.ts +92 -0
- package/src/test-helpers.ts +42 -0
- package/src/test-mocks.ts +55 -0
- package/src/test-runtime.ts +72 -0
- package/src/test-support/monitor-route-test-support.ts +8 -0
- package/src/tool-actions.runtime.ts +1 -0
- package/src/tool-actions.test.ts +422 -0
- package/src/tool-actions.ts +498 -0
- package/src/types.ts +230 -0
- package/test-api.ts +2 -0
- package/thread-bindings-runtime.ts +4 -0
- package/tsconfig.json +16 -0
- package/LICENSE +0 -17
- package/README.md +0 -136
- package/dist/APEv2Parser-6EMKXRZS.js +0 -15
- package/dist/APEv2Parser-6EMKXRZS.js.map +0 -7
- package/dist/AiffParser-E6XWRTXM.js +0 -194
- package/dist/AiffParser-E6XWRTXM.js.map +0 -7
- package/dist/AsfParser-WSOH2JQY.js +0 -620
- package/dist/AsfParser-WSOH2JQY.js.map +0 -7
- package/dist/DsdiffParser-EUWJ4YAR.js +0 -192
- package/dist/DsdiffParser-EUWJ4YAR.js.map +0 -7
- package/dist/DsfParser-R6TPBJIY.js +0 -114
- package/dist/DsfParser-R6TPBJIY.js.map +0 -7
- package/dist/FlacParser-VDASGZ3E.js +0 -16
- package/dist/FlacParser-VDASGZ3E.js.map +0 -7
- package/dist/MP4Parser-64RGJLUM.js +0 -1145
- package/dist/MP4Parser-64RGJLUM.js.map +0 -7
- package/dist/MatroskaParser-O6RXAKYA.js +0 -662
- package/dist/MatroskaParser-O6RXAKYA.js.map +0 -7
- package/dist/MpegParser-B6NX6DS3.js +0 -652
- package/dist/MpegParser-B6NX6DS3.js.map +0 -7
- package/dist/MusepackParser-WUBT63DS.js +0 -331
- package/dist/MusepackParser-WUBT63DS.js.map +0 -7
- package/dist/OggParser-ZY6E5C2P.js +0 -448
- package/dist/OggParser-ZY6E5C2P.js.map +0 -7
- package/dist/WavPackParser-5KTCSQEU.js +0 -209
- package/dist/WavPackParser-5KTCSQEU.js.map +0 -7
- package/dist/WaveParser-RZSHVQPZ.js +0 -300
- package/dist/WaveParser-RZSHVQPZ.js.map +0 -7
- package/dist/auth-presence.js +0 -46
- package/dist/auth-presence.js.map +0 -7
- package/dist/channel-plugin-api.js +0 -79
- package/dist/channel-plugin-api.js.map +0 -7
- package/dist/chunk-22WAAZ6I.js +0 -114
- package/dist/chunk-22WAAZ6I.js.map +0 -7
- package/dist/chunk-2A6HEFSO.js +0 -676
- package/dist/chunk-2A6HEFSO.js.map +0 -7
- package/dist/chunk-2KGHUHKU.js +0 -169
- package/dist/chunk-2KGHUHKU.js.map +0 -7
- package/dist/chunk-2NEQI4K6.js +0 -171
- package/dist/chunk-2NEQI4K6.js.map +0 -7
- package/dist/chunk-2OSJ3MTW.js +0 -175
- package/dist/chunk-2OSJ3MTW.js.map +0 -7
- package/dist/chunk-2Q626TDO.js +0 -27
- package/dist/chunk-2Q626TDO.js.map +0 -7
- package/dist/chunk-2U6OZ7N2.js +0 -155
- package/dist/chunk-2U6OZ7N2.js.map +0 -7
- package/dist/chunk-2Z4IOUDZ.js +0 -129
- package/dist/chunk-2Z4IOUDZ.js.map +0 -7
- package/dist/chunk-2ZEPAW7U.js +0 -154
- package/dist/chunk-2ZEPAW7U.js.map +0 -7
- package/dist/chunk-2ZI6JK5O.js +0 -63
- package/dist/chunk-2ZI6JK5O.js.map +0 -7
- package/dist/chunk-34UY6D6X.js +0 -36
- package/dist/chunk-34UY6D6X.js.map +0 -7
- package/dist/chunk-3JD6JSJD.js +0 -111
- package/dist/chunk-3JD6JSJD.js.map +0 -7
- package/dist/chunk-3TOEIHG5.js +0 -314
- package/dist/chunk-3TOEIHG5.js.map +0 -7
- package/dist/chunk-3TRKKAVT.js +0 -130
- package/dist/chunk-3TRKKAVT.js.map +0 -7
- package/dist/chunk-3UFTTK7C.js +0 -418
- package/dist/chunk-3UFTTK7C.js.map +0 -7
- package/dist/chunk-3XO6AAIC.js +0 -25
- package/dist/chunk-3XO6AAIC.js.map +0 -7
- package/dist/chunk-427SAQME.js +0 -321
- package/dist/chunk-427SAQME.js.map +0 -7
- package/dist/chunk-4JVNTZAI.js +0 -80
- package/dist/chunk-4JVNTZAI.js.map +0 -7
- package/dist/chunk-4O3BEYYM.js +0 -187
- package/dist/chunk-4O3BEYYM.js.map +0 -7
- package/dist/chunk-4Z2N4GW6.js +0 -247
- package/dist/chunk-4Z2N4GW6.js.map +0 -7
- package/dist/chunk-56HN4SH6.js +0 -46
- package/dist/chunk-56HN4SH6.js.map +0 -7
- package/dist/chunk-5APBBTGW.js +0 -7
- package/dist/chunk-5APBBTGW.js.map +0 -7
- package/dist/chunk-5LNGMBWW.js +0 -93
- package/dist/chunk-5LNGMBWW.js.map +0 -7
- package/dist/chunk-5XFQSYZ4.js +0 -52
- package/dist/chunk-5XFQSYZ4.js.map +0 -7
- package/dist/chunk-62N5N4AC.js +0 -241
- package/dist/chunk-62N5N4AC.js.map +0 -7
- package/dist/chunk-6HX3DEXK.js +0 -178
- package/dist/chunk-6HX3DEXK.js.map +0 -7
- package/dist/chunk-6NO5VEVV.js +0 -18
- package/dist/chunk-6NO5VEVV.js.map +0 -7
- package/dist/chunk-6PZGDVLR.js +0 -465
- package/dist/chunk-6PZGDVLR.js.map +0 -7
- package/dist/chunk-6SOGH3TW.js +0 -163
- package/dist/chunk-6SOGH3TW.js.map +0 -7
- package/dist/chunk-72TGY3LX.js +0 -104
- package/dist/chunk-72TGY3LX.js.map +0 -7
- package/dist/chunk-76IE55K7.js +0 -392
- package/dist/chunk-76IE55K7.js.map +0 -7
- package/dist/chunk-7F3242AO.js +0 -86
- package/dist/chunk-7F3242AO.js.map +0 -7
- package/dist/chunk-7FLQSTPG.js +0 -57
- package/dist/chunk-7FLQSTPG.js.map +0 -7
- package/dist/chunk-7MP46JBP.js +0 -177
- package/dist/chunk-7MP46JBP.js.map +0 -7
- package/dist/chunk-7MVZYR2T.js +0 -87
- package/dist/chunk-7MVZYR2T.js.map +0 -7
- package/dist/chunk-7N7ISMPG.js +0 -50
- package/dist/chunk-7N7ISMPG.js.map +0 -7
- package/dist/chunk-7S7LQQPX.js +0 -127
- package/dist/chunk-7S7LQQPX.js.map +0 -7
- package/dist/chunk-7TTNY5FK.js +0 -21
- package/dist/chunk-7TTNY5FK.js.map +0 -7
- package/dist/chunk-7W73QCTR.js +0 -244
- package/dist/chunk-7W73QCTR.js.map +0 -7
- package/dist/chunk-7XXLU33Y.js +0 -76
- package/dist/chunk-7XXLU33Y.js.map +0 -7
- package/dist/chunk-AAO7BQEV.js +0 -258
- package/dist/chunk-AAO7BQEV.js.map +0 -7
- package/dist/chunk-AH4MLRYT.js +0 -91
- package/dist/chunk-AH4MLRYT.js.map +0 -7
- package/dist/chunk-AHKR32FH.js +0 -7
- package/dist/chunk-AHKR32FH.js.map +0 -7
- package/dist/chunk-ALKRFDAW.js +0 -94
- package/dist/chunk-ALKRFDAW.js.map +0 -7
- package/dist/chunk-AQQGAE7N.js +0 -12
- package/dist/chunk-AQQGAE7N.js.map +0 -7
- package/dist/chunk-AWW3YUGJ.js +0 -193
- package/dist/chunk-AWW3YUGJ.js.map +0 -7
- package/dist/chunk-AX7VEEWJ.js +0 -158
- package/dist/chunk-AX7VEEWJ.js.map +0 -7
- package/dist/chunk-BAX7Q6GR.js +0 -55
- package/dist/chunk-BAX7Q6GR.js.map +0 -7
- package/dist/chunk-BBM6BR3Z.js +0 -28
- package/dist/chunk-BBM6BR3Z.js.map +0 -7
- package/dist/chunk-BHXZMHSX.js +0 -109
- package/dist/chunk-BHXZMHSX.js.map +0 -7
- package/dist/chunk-BIUXDLVY.js +0 -62
- package/dist/chunk-BIUXDLVY.js.map +0 -7
- package/dist/chunk-BMFZL2P4.js +0 -97
- package/dist/chunk-BMFZL2P4.js.map +0 -7
- package/dist/chunk-BQXEXK4H.js +0 -114
- package/dist/chunk-BQXEXK4H.js.map +0 -7
- package/dist/chunk-BU2CTWBG.js +0 -30
- package/dist/chunk-BU2CTWBG.js.map +0 -7
- package/dist/chunk-BVKSCLF7.js +0 -195
- package/dist/chunk-BVKSCLF7.js.map +0 -7
- package/dist/chunk-BWA3D22L.js +0 -88
- package/dist/chunk-BWA3D22L.js.map +0 -7
- package/dist/chunk-CE24RSPL.js +0 -506
- package/dist/chunk-CE24RSPL.js.map +0 -7
- package/dist/chunk-CETZGSCP.js +0 -71
- package/dist/chunk-CETZGSCP.js.map +0 -7
- package/dist/chunk-CGBWMONK.js +0 -412
- package/dist/chunk-CGBWMONK.js.map +0 -7
- package/dist/chunk-CPNIXMGX.js +0 -127
- package/dist/chunk-CPNIXMGX.js.map +0 -7
- package/dist/chunk-CSJO73LD.js +0 -84
- package/dist/chunk-CSJO73LD.js.map +0 -7
- package/dist/chunk-CTKBDSL6.js +0 -81
- package/dist/chunk-CTKBDSL6.js.map +0 -7
- package/dist/chunk-CY6WHUCW.js +0 -54
- package/dist/chunk-CY6WHUCW.js.map +0 -7
- package/dist/chunk-D7Q6Z74D.js +0 -123
- package/dist/chunk-D7Q6Z74D.js.map +0 -7
- package/dist/chunk-DZIM4OWK.js +0 -17
- package/dist/chunk-DZIM4OWK.js.map +0 -7
- package/dist/chunk-E3GC4V5V.js +0 -30
- package/dist/chunk-E3GC4V5V.js.map +0 -7
- package/dist/chunk-E5HPDHCW.js +0 -34
- package/dist/chunk-E5HPDHCW.js.map +0 -7
- package/dist/chunk-E75BJJZ2.js +0 -635
- package/dist/chunk-E75BJJZ2.js.map +0 -7
- package/dist/chunk-EE4DHUUZ.js +0 -472
- package/dist/chunk-EE4DHUUZ.js.map +0 -7
- package/dist/chunk-EHELTAAD.js +0 -198
- package/dist/chunk-EHELTAAD.js.map +0 -7
- package/dist/chunk-EKXPSI7Z.js +0 -135
- package/dist/chunk-EKXPSI7Z.js.map +0 -7
- package/dist/chunk-ERCH75SH.js +0 -292
- package/dist/chunk-ERCH75SH.js.map +0 -7
- package/dist/chunk-EVFWZGFL.js +0 -235
- package/dist/chunk-EVFWZGFL.js.map +0 -7
- package/dist/chunk-EVPBRKMZ.js +0 -45
- package/dist/chunk-EVPBRKMZ.js.map +0 -7
- package/dist/chunk-F6AFJHWV.js +0 -45
- package/dist/chunk-F6AFJHWV.js.map +0 -7
- package/dist/chunk-FG4NVFKM.js +0 -455
- package/dist/chunk-FG4NVFKM.js.map +0 -7
- package/dist/chunk-FHNEN6IR.js +0 -14
- package/dist/chunk-FHNEN6IR.js.map +0 -7
- package/dist/chunk-FQ4R7IOX.js +0 -32
- package/dist/chunk-FQ4R7IOX.js.map +0 -7
- package/dist/chunk-FQPYAPJJ.js +0 -124
- package/dist/chunk-FQPYAPJJ.js.map +0 -7
- package/dist/chunk-FQTLJO4W.js +0 -335
- package/dist/chunk-FQTLJO4W.js.map +0 -7
- package/dist/chunk-FVLJSB2W.js +0 -124
- package/dist/chunk-FVLJSB2W.js.map +0 -7
- package/dist/chunk-FYRKBNTI.js +0 -18
- package/dist/chunk-FYRKBNTI.js.map +0 -7
- package/dist/chunk-GD6L3SLC.js +0 -30
- package/dist/chunk-GD6L3SLC.js.map +0 -7
- package/dist/chunk-GI2ZANRY.js +0 -24
- package/dist/chunk-GI2ZANRY.js.map +0 -7
- package/dist/chunk-GK3XVKXT.js +0 -737
- package/dist/chunk-GK3XVKXT.js.map +0 -7
- package/dist/chunk-GKOWCDQV.js +0 -699
- package/dist/chunk-GKOWCDQV.js.map +0 -7
- package/dist/chunk-GLLRCKKE.js +0 -26
- package/dist/chunk-GLLRCKKE.js.map +0 -7
- package/dist/chunk-GNYG6I36.js +0 -175
- package/dist/chunk-GNYG6I36.js.map +0 -7
- package/dist/chunk-GVYGUH2V.js +0 -7
- package/dist/chunk-GVYGUH2V.js.map +0 -7
- package/dist/chunk-GZAGAWSU.js +0 -28
- package/dist/chunk-GZAGAWSU.js.map +0 -7
- package/dist/chunk-H23E72SB.js +0 -163
- package/dist/chunk-H23E72SB.js.map +0 -7
- package/dist/chunk-H6YVV7GE.js +0 -22
- package/dist/chunk-H6YVV7GE.js.map +0 -7
- package/dist/chunk-HDPICD3P.js +0 -4890
- package/dist/chunk-HDPICD3P.js.map +0 -7
- package/dist/chunk-HP5HMWOM.js +0 -123
- package/dist/chunk-HP5HMWOM.js.map +0 -7
- package/dist/chunk-HQSHS6IB.js +0 -88
- package/dist/chunk-HQSHS6IB.js.map +0 -7
- package/dist/chunk-HTV3R73W.js +0 -51
- package/dist/chunk-HTV3R73W.js.map +0 -7
- package/dist/chunk-IJCMYMZB.js +0 -239
- package/dist/chunk-IJCMYMZB.js.map +0 -7
- package/dist/chunk-INNENDEE.js +0 -472
- package/dist/chunk-INNENDEE.js.map +0 -7
- package/dist/chunk-IOTLSMEQ.js +0 -177
- package/dist/chunk-IOTLSMEQ.js.map +0 -7
- package/dist/chunk-IQYYEHSM.js +0 -300
- package/dist/chunk-IQYYEHSM.js.map +0 -7
- package/dist/chunk-IRA5NJ4Q.js +0 -21
- package/dist/chunk-IRA5NJ4Q.js.map +0 -7
- package/dist/chunk-IU7EXXK7.js +0 -1662
- package/dist/chunk-IU7EXXK7.js.map +0 -7
- package/dist/chunk-IUXAKDAY.js +0 -102
- package/dist/chunk-IUXAKDAY.js.map +0 -7
- package/dist/chunk-JMYIFYY5.js +0 -233
- package/dist/chunk-JMYIFYY5.js.map +0 -7
- package/dist/chunk-JSZBX2TA.js +0 -5853
- package/dist/chunk-JSZBX2TA.js.map +0 -7
- package/dist/chunk-KHFWQ334.js +0 -138
- package/dist/chunk-KHFWQ334.js.map +0 -7
- package/dist/chunk-KJW6JLM6.js +0 -95
- package/dist/chunk-KJW6JLM6.js.map +0 -7
- package/dist/chunk-KSEANSJE.js +0 -40
- package/dist/chunk-KSEANSJE.js.map +0 -7
- package/dist/chunk-KVU54E6W.js +0 -63
- package/dist/chunk-KVU54E6W.js.map +0 -7
- package/dist/chunk-L5OUVMHK.js +0 -174
- package/dist/chunk-L5OUVMHK.js.map +0 -7
- package/dist/chunk-LIVQ7GIO.js +0 -86
- package/dist/chunk-LIVQ7GIO.js.map +0 -7
- package/dist/chunk-LO4F6E3N.js +0 -163
- package/dist/chunk-LO4F6E3N.js.map +0 -7
- package/dist/chunk-LSVKDUNM.js +0 -151
- package/dist/chunk-LSVKDUNM.js.map +0 -7
- package/dist/chunk-LVMK2GPM.js +0 -18
- package/dist/chunk-LVMK2GPM.js.map +0 -7
- package/dist/chunk-LXVPETLK.js +0 -1405
- package/dist/chunk-LXVPETLK.js.map +0 -7
- package/dist/chunk-LZNW24OB.js +0 -78
- package/dist/chunk-LZNW24OB.js.map +0 -7
- package/dist/chunk-MAF6PSCJ.js +0 -44
- package/dist/chunk-MAF6PSCJ.js.map +0 -7
- package/dist/chunk-MBIX6Z7U.js +0 -80
- package/dist/chunk-MBIX6Z7U.js.map +0 -7
- package/dist/chunk-MDLLXMC3.js +0 -183
- package/dist/chunk-MDLLXMC3.js.map +0 -7
- package/dist/chunk-MEI5HTWV.js +0 -127
- package/dist/chunk-MEI5HTWV.js.map +0 -7
- package/dist/chunk-MH74AJ3A.js +0 -82
- package/dist/chunk-MH74AJ3A.js.map +0 -7
- package/dist/chunk-MIFIM4PI.js +0 -163
- package/dist/chunk-MIFIM4PI.js.map +0 -7
- package/dist/chunk-MISZB5QJ.js +0 -22
- package/dist/chunk-MISZB5QJ.js.map +0 -7
- package/dist/chunk-MJ27XQYG.js +0 -125
- package/dist/chunk-MJ27XQYG.js.map +0 -7
- package/dist/chunk-MLQY5SKR.js +0 -52
- package/dist/chunk-MLQY5SKR.js.map +0 -7
- package/dist/chunk-MTMHGC3G.js +0 -39
- package/dist/chunk-MTMHGC3G.js.map +0 -7
- package/dist/chunk-MWBAW3YV.js +0 -244
- package/dist/chunk-MWBAW3YV.js.map +0 -7
- package/dist/chunk-MZGGB2YT.js +0 -50
- package/dist/chunk-MZGGB2YT.js.map +0 -7
- package/dist/chunk-N5SNGZJV.js +0 -217
- package/dist/chunk-N5SNGZJV.js.map +0 -7
- package/dist/chunk-NGCTBYQ3.js +0 -181
- package/dist/chunk-NGCTBYQ3.js.map +0 -7
- package/dist/chunk-NMUX7SGU.js +0 -676
- package/dist/chunk-NMUX7SGU.js.map +0 -7
- package/dist/chunk-NO7GMLNU.js +0 -292
- package/dist/chunk-NO7GMLNU.js.map +0 -7
- package/dist/chunk-NTOGVX2Y.js +0 -92
- package/dist/chunk-NTOGVX2Y.js.map +0 -7
- package/dist/chunk-O5IVKDX7.js +0 -30
- package/dist/chunk-O5IVKDX7.js.map +0 -7
- package/dist/chunk-OFWMLQMU.js +0 -7287
- package/dist/chunk-OFWMLQMU.js.map +0 -7
- package/dist/chunk-OJ3ZUKBI.js +0 -73
- package/dist/chunk-OJ3ZUKBI.js.map +0 -7
- package/dist/chunk-OJTHE4B7.js +0 -50
- package/dist/chunk-OJTHE4B7.js.map +0 -7
- package/dist/chunk-OOYPYBTA.js +0 -446
- package/dist/chunk-OOYPYBTA.js.map +0 -7
- package/dist/chunk-OQP4W4AR.js +0 -105
- package/dist/chunk-OQP4W4AR.js.map +0 -7
- package/dist/chunk-OVTT2EKA.js +0 -516
- package/dist/chunk-OVTT2EKA.js.map +0 -7
- package/dist/chunk-P5N63LBS.js +0 -94
- package/dist/chunk-P5N63LBS.js.map +0 -7
- package/dist/chunk-PARITZ7F.js +0 -28
- package/dist/chunk-PARITZ7F.js.map +0 -7
- package/dist/chunk-PBQK4KY4.js +0 -195
- package/dist/chunk-PBQK4KY4.js.map +0 -7
- package/dist/chunk-PSL2AHIA.js +0 -27
- package/dist/chunk-PSL2AHIA.js.map +0 -7
- package/dist/chunk-Q5QT7JBM.js +0 -92
- package/dist/chunk-Q5QT7JBM.js.map +0 -7
- package/dist/chunk-Q7WA5DCR.js +0 -62
- package/dist/chunk-Q7WA5DCR.js.map +0 -7
- package/dist/chunk-QATEENP2.js +0 -7
- package/dist/chunk-QATEENP2.js.map +0 -7
- package/dist/chunk-QDT24CIA.js +0 -485
- package/dist/chunk-QDT24CIA.js.map +0 -7
- package/dist/chunk-QI3NB7D5.js +0 -455
- package/dist/chunk-QI3NB7D5.js.map +0 -7
- package/dist/chunk-QIDAVXSX.js +0 -106
- package/dist/chunk-QIDAVXSX.js.map +0 -7
- package/dist/chunk-QKIGQVP2.js +0 -104
- package/dist/chunk-QKIGQVP2.js.map +0 -7
- package/dist/chunk-QNJENPK2.js +0 -81
- package/dist/chunk-QNJENPK2.js.map +0 -7
- package/dist/chunk-REVXXWAS.js +0 -31
- package/dist/chunk-REVXXWAS.js.map +0 -7
- package/dist/chunk-RFH4HRZP.js +0 -94
- package/dist/chunk-RFH4HRZP.js.map +0 -7
- package/dist/chunk-RNGAGYCL.js +0 -49
- package/dist/chunk-RNGAGYCL.js.map +0 -7
- package/dist/chunk-RPCVN3JA.js +0 -261
- package/dist/chunk-RPCVN3JA.js.map +0 -7
- package/dist/chunk-RQQE5DDT.js +0 -193
- package/dist/chunk-RQQE5DDT.js.map +0 -7
- package/dist/chunk-RVOD3ESA.js +0 -38
- package/dist/chunk-RVOD3ESA.js.map +0 -7
- package/dist/chunk-SAOUP24A.js +0 -70
- package/dist/chunk-SAOUP24A.js.map +0 -7
- package/dist/chunk-SFZL2TCV.js +0 -55
- package/dist/chunk-SFZL2TCV.js.map +0 -7
- package/dist/chunk-SJPFUXBV.js +0 -45
- package/dist/chunk-SJPFUXBV.js.map +0 -7
- package/dist/chunk-SLIUQWAR.js +0 -58
- package/dist/chunk-SLIUQWAR.js.map +0 -7
- package/dist/chunk-SSEX66OL.js +0 -39
- package/dist/chunk-SSEX66OL.js.map +0 -7
- package/dist/chunk-SX2LOHOX.js +0 -251
- package/dist/chunk-SX2LOHOX.js.map +0 -7
- package/dist/chunk-T72EMFTX.js +0 -74
- package/dist/chunk-T72EMFTX.js.map +0 -7
- package/dist/chunk-TA2QJPPG.js +0 -169
- package/dist/chunk-TA2QJPPG.js.map +0 -7
- package/dist/chunk-TFEETDNY.js +0 -78
- package/dist/chunk-TFEETDNY.js.map +0 -7
- package/dist/chunk-THM2QV25.js +0 -108
- package/dist/chunk-THM2QV25.js.map +0 -7
- package/dist/chunk-TRWT2N6Z.js +0 -15
- package/dist/chunk-TRWT2N6Z.js.map +0 -7
- package/dist/chunk-TTXEM54Y.js +0 -76
- package/dist/chunk-TTXEM54Y.js.map +0 -7
- package/dist/chunk-U4LVIY5F.js +0 -1405
- package/dist/chunk-U4LVIY5F.js.map +0 -7
- package/dist/chunk-U767LCSG.js +0 -78
- package/dist/chunk-U767LCSG.js.map +0 -7
- package/dist/chunk-U7GKLHU6.js +0 -120
- package/dist/chunk-U7GKLHU6.js.map +0 -7
- package/dist/chunk-UAB5P5QO.js +0 -60
- package/dist/chunk-UAB5P5QO.js.map +0 -7
- package/dist/chunk-UEHPJQBL.js +0 -38
- package/dist/chunk-UEHPJQBL.js.map +0 -7
- package/dist/chunk-UIBV6IGR.js +0 -31
- package/dist/chunk-UIBV6IGR.js.map +0 -7
- package/dist/chunk-UIYFRUET.js +0 -16352
- package/dist/chunk-UIYFRUET.js.map +0 -7
- package/dist/chunk-UJS3TIVS.js +0 -52
- package/dist/chunk-UJS3TIVS.js.map +0 -7
- package/dist/chunk-UU5PSBSI.js +0 -176
- package/dist/chunk-UU5PSBSI.js.map +0 -7
- package/dist/chunk-UV63XYFU.js +0 -173
- package/dist/chunk-UV63XYFU.js.map +0 -7
- package/dist/chunk-UWPHOAOC.js +0 -29
- package/dist/chunk-UWPHOAOC.js.map +0 -7
- package/dist/chunk-UXDDOSJC.js +0 -52
- package/dist/chunk-UXDDOSJC.js.map +0 -7
- package/dist/chunk-V3VAOMCO.js +0 -465
- package/dist/chunk-V3VAOMCO.js.map +0 -7
- package/dist/chunk-VA7ENH2S.js +0 -38
- package/dist/chunk-VA7ENH2S.js.map +0 -7
- package/dist/chunk-VFPDFLVE.js +0 -516
- package/dist/chunk-VFPDFLVE.js.map +0 -7
- package/dist/chunk-VHG4FNIJ.js +0 -93
- package/dist/chunk-VHG4FNIJ.js.map +0 -7
- package/dist/chunk-VKOO6MIZ.js +0 -51
- package/dist/chunk-VKOO6MIZ.js.map +0 -7
- package/dist/chunk-VKXKRZG7.js +0 -62
- package/dist/chunk-VKXKRZG7.js.map +0 -7
- package/dist/chunk-VUOLPEUZ.js +0 -7
- package/dist/chunk-VUOLPEUZ.js.map +0 -7
- package/dist/chunk-W6SOBS7M.js +0 -138
- package/dist/chunk-W6SOBS7M.js.map +0 -7
- package/dist/chunk-WDOKKRTE.js +0 -7
- package/dist/chunk-WDOKKRTE.js.map +0 -7
- package/dist/chunk-WGXXKFN5.js +0 -7
- package/dist/chunk-WGXXKFN5.js.map +0 -7
- package/dist/chunk-WHPUUP3J.js +0 -25
- package/dist/chunk-WHPUUP3J.js.map +0 -7
- package/dist/chunk-XF7LD6VV.js +0 -122
- package/dist/chunk-XF7LD6VV.js.map +0 -7
- package/dist/chunk-XFTXM3RE.js +0 -64
- package/dist/chunk-XFTXM3RE.js.map +0 -7
- package/dist/chunk-XJABPO2T.js +0 -235
- package/dist/chunk-XJABPO2T.js.map +0 -7
- package/dist/chunk-XK6VF3H7.js +0 -3586
- package/dist/chunk-XK6VF3H7.js.map +0 -7
- package/dist/chunk-XQYIIPOJ.js +0 -266
- package/dist/chunk-XQYIIPOJ.js.map +0 -7
- package/dist/chunk-XZSAN55E.js +0 -58
- package/dist/chunk-XZSAN55E.js.map +0 -7
- package/dist/chunk-Y3KJR4OG.js +0 -64
- package/dist/chunk-Y3KJR4OG.js.map +0 -7
- package/dist/chunk-Y4JKH7FF.js +0 -45
- package/dist/chunk-Y4JKH7FF.js.map +0 -7
- package/dist/chunk-Y6CJN4ID.js +0 -31
- package/dist/chunk-Y6CJN4ID.js.map +0 -7
- package/dist/chunk-YABGJU5M.js +0 -271
- package/dist/chunk-YABGJU5M.js.map +0 -7
- package/dist/chunk-YEJH7ZC2.js +0 -34
- package/dist/chunk-YEJH7ZC2.js.map +0 -7
- package/dist/chunk-YFTE4H54.js +0 -44117
- package/dist/chunk-YFTE4H54.js.map +0 -7
- package/dist/chunk-YNJYMD43.js +0 -392
- package/dist/chunk-YNJYMD43.js.map +0 -7
- package/dist/chunk-YNYEQGVN.js +0 -251
- package/dist/chunk-YNYEQGVN.js.map +0 -7
- package/dist/chunk-YUPBD27Z.js +0 -70
- package/dist/chunk-YUPBD27Z.js.map +0 -7
- package/dist/chunk-YXJ52FD5.js +0 -271
- package/dist/chunk-YXJ52FD5.js.map +0 -7
- package/dist/chunk-YZGORRQN.js +0 -3101
- package/dist/chunk-YZGORRQN.js.map +0 -7
- package/dist/chunk-Z6IVJ6ZW.js +0 -30
- package/dist/chunk-Z6IVJ6ZW.js.map +0 -7
- package/dist/chunk-ZFC44XJJ.js +0 -86
- package/dist/chunk-ZFC44XJJ.js.map +0 -7
- package/dist/chunk-ZJDJC5TP.js +0 -82
- package/dist/chunk-ZJDJC5TP.js.map +0 -7
- package/dist/chunk-ZJGZNPDK.js +0 -171
- package/dist/chunk-ZJGZNPDK.js.map +0 -7
- package/dist/chunk-ZJHBJWZX.js +0 -699
- package/dist/chunk-ZJHBJWZX.js.map +0 -7
- package/dist/chunk-ZNOTD65D.js +0 -95
- package/dist/chunk-ZNOTD65D.js.map +0 -7
- package/dist/chunk-ZQ2QIFXW.js +0 -122
- package/dist/chunk-ZQ2QIFXW.js.map +0 -7
- package/dist/chunk-ZRMXPQGY.js +0 -241
- package/dist/chunk-ZRMXPQGY.js.map +0 -7
- package/dist/chunk-ZVEE5IDC.js +0 -3101
- package/dist/chunk-ZVEE5IDC.js.map +0 -7
- package/dist/cli-metadata.js +0 -12
- package/dist/cli-metadata.js.map +0 -7
- package/dist/contract-api.js +0 -104
- package/dist/contract-api.js.map +0 -7
- package/dist/dist-F3K7S5SS.js +0 -549
- package/dist/dist-F3K7S5SS.js.map +0 -7
- package/dist/helper-api.js +0 -51
- package/dist/helper-api.js.map +0 -7
- package/dist/index.js +0 -71
- package/dist/index.js.map +0 -7
- package/dist/magic-string.es-V5NOGTUV.js +0 -1315
- package/dist/magic-string.es-V5NOGTUV.js.map +0 -7
- package/dist/openclaw.plugin.json +0 -23
- package/dist/package.json +0 -59
- package/dist/plugin-entry.handlers.runtime-POD4CSHM.js +0 -20
- package/dist/plugin-entry.handlers.runtime-POD4CSHM.js.map +0 -7
- package/dist/plugin-entry.handlers.runtime-YOSG6V6U.js +0 -20
- package/dist/plugin-entry.handlers.runtime-YOSG6V6U.js.map +0 -7
- package/dist/runtime-api.js +0 -104
- package/dist/runtime-api.js.map +0 -7
- package/dist/rust-crypto-H35BXWUU.js +0 -5323
- package/dist/rust-crypto-H35BXWUU.js.map +0 -7
- package/dist/secret-contract-api.js +0 -18
- package/dist/secret-contract-api.js.map +0 -7
- package/dist/setup-entry.js +0 -23
- package/dist/setup-entry.js.map +0 -7
- package/dist/src/account-selection.js +0 -19
- package/dist/src/account-selection.js.map +0 -7
- package/dist/src/actions.js +0 -24
- package/dist/src/actions.js.map +0 -7
- package/dist/src/approval-auth.js +0 -27
- package/dist/src/approval-auth.js.map +0 -7
- package/dist/src/approval-handler.runtime.js +0 -378
- package/dist/src/approval-handler.runtime.js.map +0 -7
- package/dist/src/approval-ids.js +0 -9
- package/dist/src/approval-ids.js.map +0 -7
- package/dist/src/approval-native.js +0 -28
- package/dist/src/approval-native.js.map +0 -7
- package/dist/src/approval-reactions.js +0 -20
- package/dist/src/approval-reactions.js.map +0 -7
- package/dist/src/auth-precedence.js +0 -8
- package/dist/src/auth-precedence.js.map +0 -7
- package/dist/src/channel-account-paths.js +0 -11
- package/dist/src/channel-account-paths.js.map +0 -7
- package/dist/src/channel.js +0 -74
- package/dist/src/channel.js.map +0 -7
- package/dist/src/channel.runtime.js +0 -82
- package/dist/src/channel.runtime.js.map +0 -7
- package/dist/src/cli-metadata.js +0 -8
- package/dist/src/cli-metadata.js.map +0 -7
- package/dist/src/cli.js +0 -936
- package/dist/src/cli.js.map +0 -7
- package/dist/src/config-adapter.js +0 -26
- package/dist/src/config-adapter.js.map +0 -7
- package/dist/src/config-schema.js +0 -8
- package/dist/src/config-schema.js.map +0 -7
- package/dist/src/directory-live.js +0 -35
- package/dist/src/directory-live.js.map +0 -7
- package/dist/src/doctor-contract.js +0 -11
- package/dist/src/doctor-contract.js.map +0 -7
- package/dist/src/doctor.js +0 -42
- package/dist/src/doctor.js.map +0 -7
- package/dist/src/env-vars.js +0 -12
- package/dist/src/env-vars.js.map +0 -7
- package/dist/src/exec-approval-resolver.js +0 -10
- package/dist/src/exec-approval-resolver.js.map +0 -7
- package/dist/src/exec-approvals.js +0 -51
- package/dist/src/exec-approvals.js.map +0 -7
- package/dist/src/group-mentions.js +0 -28
- package/dist/src/group-mentions.js.map +0 -7
- package/dist/src/legacy-crypto-inspector-availability.js +0 -8
- package/dist/src/legacy-crypto-inspector-availability.js.map +0 -7
- package/dist/src/legacy-crypto.js +0 -26
- package/dist/src/legacy-crypto.js.map +0 -7
- package/dist/src/legacy-state.js +0 -24
- package/dist/src/legacy-state.js.map +0 -7
- package/dist/src/matrix/account-config.js +0 -16
- package/dist/src/matrix/account-config.js.map +0 -7
- package/dist/src/matrix/accounts.js +0 -31
- package/dist/src/matrix/accounts.js.map +0 -7
- package/dist/src/matrix/actions/client.js +0 -40
- package/dist/src/matrix/actions/client.js.map +0 -7
- package/dist/src/matrix/actions/devices.js +0 -42
- package/dist/src/matrix/actions/devices.js.map +0 -7
- package/dist/src/matrix/actions/limits.js +0 -8
- package/dist/src/matrix/actions/limits.js.map +0 -7
- package/dist/src/matrix/actions/messages.js +0 -49
- package/dist/src/matrix/actions/messages.js.map +0 -7
- package/dist/src/matrix/actions/pins.js +0 -46
- package/dist/src/matrix/actions/pins.js.map +0 -7
- package/dist/src/matrix/actions/polls.js +0 -37
- package/dist/src/matrix/actions/polls.js.map +0 -7
- package/dist/src/matrix/actions/profile.js +0 -38
- package/dist/src/matrix/actions/profile.js.map +0 -7
- package/dist/src/matrix/actions/reactions.js +0 -40
- package/dist/src/matrix/actions/reactions.js.map +0 -7
- package/dist/src/matrix/actions/room.js +0 -40
- package/dist/src/matrix/actions/room.js.map +0 -7
- package/dist/src/matrix/actions/summary.js +0 -19
- package/dist/src/matrix/actions/summary.js.map +0 -7
- package/dist/src/matrix/actions/types.js +0 -13
- package/dist/src/matrix/actions/types.js.map +0 -7
- package/dist/src/matrix/actions/verification.js +0 -77
- package/dist/src/matrix/actions/verification.js.map +0 -7
- package/dist/src/matrix/actions.js +0 -126
- package/dist/src/matrix/actions.js.map +0 -7
- package/dist/src/matrix/active-client.js +0 -10
- package/dist/src/matrix/active-client.js.map +0 -7
- package/dist/src/matrix/async-lock.js +0 -8
- package/dist/src/matrix/async-lock.js.map +0 -7
- package/dist/src/matrix/backup-health.js +0 -10
- package/dist/src/matrix/backup-health.js.map +0 -7
- package/dist/src/matrix/client/config-runtime-api.js +0 -24
- package/dist/src/matrix/client/config-runtime-api.js.map +0 -7
- package/dist/src/matrix/client/config-secret-input.runtime.js +0 -11
- package/dist/src/matrix/client/config-secret-input.runtime.js.map +0 -7
- package/dist/src/matrix/client/config.js +0 -42
- package/dist/src/matrix/client/config.js.map +0 -7
- package/dist/src/matrix/client/create-client.js +0 -20
- package/dist/src/matrix/client/create-client.js.map +0 -7
- package/dist/src/matrix/client/env-auth.js +0 -26
- package/dist/src/matrix/client/env-auth.js.map +0 -7
- package/dist/src/matrix/client/file-sync-store.js +0 -23
- package/dist/src/matrix/client/file-sync-store.js.map +0 -7
- package/dist/src/matrix/client/logging.js +0 -17
- package/dist/src/matrix/client/logging.js.map +0 -7
- package/dist/src/matrix/client/migration-snapshot.runtime.js +0 -13
- package/dist/src/matrix/client/migration-snapshot.runtime.js.map +0 -7
- package/dist/src/matrix/client/private-network-host.js +0 -8
- package/dist/src/matrix/client/private-network-host.js.map +0 -7
- package/dist/src/matrix/client/runtime.js +0 -8
- package/dist/src/matrix/client/runtime.js.map +0 -7
- package/dist/src/matrix/client/shared.js +0 -34
- package/dist/src/matrix/client/shared.js.map +0 -7
- package/dist/src/matrix/client/storage.js +0 -26
- package/dist/src/matrix/client/storage.js.map +0 -7
- package/dist/src/matrix/client/types.js +0 -7
- package/dist/src/matrix/client/types.js.map +0 -7
- package/dist/src/matrix/client-bootstrap.js +0 -15
- package/dist/src/matrix/client-bootstrap.js.map +0 -7
- package/dist/src/matrix/client-resolver.test-helpers.js +0 -122
- package/dist/src/matrix/client-resolver.test-helpers.js.map +0 -7
- package/dist/src/matrix/client.js +0 -63
- package/dist/src/matrix/client.js.map +0 -7
- package/dist/src/matrix/config-paths.js +0 -12
- package/dist/src/matrix/config-paths.js.map +0 -7
- package/dist/src/matrix/config-update.js +0 -17
- package/dist/src/matrix/config-update.js.map +0 -7
- package/dist/src/matrix/credentials-read.js +0 -22
- package/dist/src/matrix/credentials-read.js.map +0 -7
- package/dist/src/matrix/credentials-write.runtime.js +0 -24
- package/dist/src/matrix/credentials-write.runtime.js.map +0 -7
- package/dist/src/matrix/credentials.js +0 -90
- package/dist/src/matrix/credentials.js.map +0 -7
- package/dist/src/matrix/deps.js +0 -12
- package/dist/src/matrix/deps.js.map +0 -7
- package/dist/src/matrix/device-health.js +0 -10
- package/dist/src/matrix/device-health.js.map +0 -7
- package/dist/src/matrix/direct-management.js +0 -18
- package/dist/src/matrix/direct-management.js.map +0 -7
- package/dist/src/matrix/direct-room.js +0 -18
- package/dist/src/matrix/direct-room.js.map +0 -7
- package/dist/src/matrix/draft-stream.js +0 -33
- package/dist/src/matrix/draft-stream.js.map +0 -7
- package/dist/src/matrix/encryption-guidance.js +0 -17
- package/dist/src/matrix/encryption-guidance.js.map +0 -7
- package/dist/src/matrix/errors.js +0 -12
- package/dist/src/matrix/errors.js.map +0 -7
- package/dist/src/matrix/format.js +0 -13
- package/dist/src/matrix/format.js.map +0 -7
- package/dist/src/matrix/legacy-crypto-inspector.js +0 -73
- package/dist/src/matrix/legacy-crypto-inspector.js.map +0 -7
- package/dist/src/matrix/media-errors.js +0 -12
- package/dist/src/matrix/media-errors.js.map +0 -7
- package/dist/src/matrix/media-text.js +0 -22
- package/dist/src/matrix/media-text.js.map +0 -7
- package/dist/src/matrix/monitor/access-state.js +0 -9
- package/dist/src/matrix/monitor/access-state.js.map +0 -7
- package/dist/src/matrix/monitor/ack-config.js +0 -10
- package/dist/src/matrix/monitor/ack-config.js.map +0 -7
- package/dist/src/matrix/monitor/allowlist.js +0 -12
- package/dist/src/matrix/monitor/allowlist.js.map +0 -7
- package/dist/src/matrix/monitor/auto-join.js +0 -9
- package/dist/src/matrix/monitor/auto-join.js.map +0 -7
- package/dist/src/matrix/monitor/config.js +0 -37
- package/dist/src/matrix/monitor/config.js.map +0 -7
- package/dist/src/matrix/monitor/context-summary.js +0 -13
- package/dist/src/matrix/monitor/context-summary.js.map +0 -7
- package/dist/src/matrix/monitor/direct.js +0 -13
- package/dist/src/matrix/monitor/direct.js.map +0 -7
- package/dist/src/matrix/monitor/events.js +0 -20
- package/dist/src/matrix/monitor/events.js.map +0 -7
- package/dist/src/matrix/monitor/handler.js +0 -76
- package/dist/src/matrix/monitor/handler.js.map +0 -7
- package/dist/src/matrix/monitor/handler.test-helpers.js +0 -268
- package/dist/src/matrix/monitor/handler.test-helpers.js.map +0 -7
- package/dist/src/matrix/monitor/inbound-dedupe.js +0 -17
- package/dist/src/matrix/monitor/inbound-dedupe.js.map +0 -7
- package/dist/src/matrix/monitor/index.js +0 -502
- package/dist/src/matrix/monitor/index.js.map +0 -7
- package/dist/src/matrix/monitor/legacy-crypto-restore.js +0 -99
- package/dist/src/matrix/monitor/legacy-crypto-restore.js.map +0 -7
- package/dist/src/matrix/monitor/location.js +0 -11
- package/dist/src/matrix/monitor/location.js.map +0 -7
- package/dist/src/matrix/monitor/media.js +0 -10
- package/dist/src/matrix/monitor/media.js.map +0 -7
- package/dist/src/matrix/monitor/mentions.js +0 -9
- package/dist/src/matrix/monitor/mentions.js.map +0 -7
- package/dist/src/matrix/monitor/reaction-events.js +0 -38
- package/dist/src/matrix/monitor/reaction-events.js.map +0 -7
- package/dist/src/matrix/monitor/recent-invite.js +0 -10
- package/dist/src/matrix/monitor/recent-invite.js.map +0 -7
- package/dist/src/matrix/monitor/replies.js +0 -33
- package/dist/src/matrix/monitor/replies.js.map +0 -7
- package/dist/src/matrix/monitor/reply-context.js +0 -14
- package/dist/src/matrix/monitor/reply-context.js.map +0 -7
- package/dist/src/matrix/monitor/room-history.js +0 -10
- package/dist/src/matrix/monitor/room-history.js.map +0 -7
- package/dist/src/matrix/monitor/room-info.js +0 -9
- package/dist/src/matrix/monitor/room-info.js.map +0 -7
- package/dist/src/matrix/monitor/rooms.js +0 -9
- package/dist/src/matrix/monitor/rooms.js.map +0 -7
- package/dist/src/matrix/monitor/route.js +0 -12
- package/dist/src/matrix/monitor/route.js.map +0 -7
- package/dist/src/matrix/monitor/runtime-api.js +0 -40
- package/dist/src/matrix/monitor/runtime-api.js.map +0 -7
- package/dist/src/matrix/monitor/startup-verification.js +0 -174
- package/dist/src/matrix/monitor/startup-verification.js.map +0 -7
- package/dist/src/matrix/monitor/startup.js +0 -9
- package/dist/src/matrix/monitor/startup.js.map +0 -7
- package/dist/src/matrix/monitor/status.js +0 -10
- package/dist/src/matrix/monitor/status.js.map +0 -7
- package/dist/src/matrix/monitor/sync-lifecycle.js +0 -9
- package/dist/src/matrix/monitor/sync-lifecycle.js.map +0 -7
- package/dist/src/matrix/monitor/task-runner.js +0 -8
- package/dist/src/matrix/monitor/task-runner.js.map +0 -7
- package/dist/src/matrix/monitor/thread-context.js +0 -14
- package/dist/src/matrix/monitor/thread-context.js.map +0 -7
- package/dist/src/matrix/monitor/threads.js +0 -16
- package/dist/src/matrix/monitor/threads.js.map +0 -7
- package/dist/src/matrix/monitor/types.js +0 -11
- package/dist/src/matrix/monitor/types.js.map +0 -7
- package/dist/src/matrix/monitor/verification-events.js +0 -13
- package/dist/src/matrix/monitor/verification-events.js.map +0 -7
- package/dist/src/matrix/monitor/verification-utils.js +0 -16
- package/dist/src/matrix/monitor/verification-utils.js.map +0 -7
- package/dist/src/matrix/outbound-media-runtime.js +0 -9
- package/dist/src/matrix/outbound-media-runtime.js.map +0 -7
- package/dist/src/matrix/poll-summary.js +0 -14
- package/dist/src/matrix/poll-summary.js.map +0 -7
- package/dist/src/matrix/poll-types.js +0 -55
- package/dist/src/matrix/poll-types.js.map +0 -7
- package/dist/src/matrix/probe.js +0 -9
- package/dist/src/matrix/probe.js.map +0 -7
- package/dist/src/matrix/probe.runtime.js +0 -30
- package/dist/src/matrix/probe.runtime.js.map +0 -7
- package/dist/src/matrix/profile.js +0 -16
- package/dist/src/matrix/profile.js.map +0 -7
- package/dist/src/matrix/reaction-common.js +0 -26
- package/dist/src/matrix/reaction-common.js.map +0 -7
- package/dist/src/matrix/sdk/crypto-bootstrap.js +0 -15
- package/dist/src/matrix/sdk/crypto-bootstrap.js.map +0 -7
- package/dist/src/matrix/sdk/crypto-facade.js +0 -8
- package/dist/src/matrix/sdk/crypto-facade.js.map +0 -7
- package/dist/src/matrix/sdk/crypto-node.runtime.js +0 -15
- package/dist/src/matrix/sdk/crypto-node.runtime.js.map +0 -7
- package/dist/src/matrix/sdk/crypto-runtime.js +0 -84
- package/dist/src/matrix/sdk/crypto-runtime.js.map +0 -7
- package/dist/src/matrix/sdk/decrypt-bridge.js +0 -11
- package/dist/src/matrix/sdk/decrypt-bridge.js.map +0 -7
- package/dist/src/matrix/sdk/event-helpers.js +0 -12
- package/dist/src/matrix/sdk/event-helpers.js.map +0 -7
- package/dist/src/matrix/sdk/http-client.js +0 -13
- package/dist/src/matrix/sdk/http-client.js.map +0 -7
- package/dist/src/matrix/sdk/idb-persistence-lock.js +0 -12
- package/dist/src/matrix/sdk/idb-persistence-lock.js.map +0 -7
- package/dist/src/matrix/sdk/idb-persistence.js +0 -13
- package/dist/src/matrix/sdk/idb-persistence.js.map +0 -7
- package/dist/src/matrix/sdk/idb-persistence.test-helpers.js +0 -83
- package/dist/src/matrix/sdk/idb-persistence.test-helpers.js.map +0 -7
- package/dist/src/matrix/sdk/logger.js +0 -15
- package/dist/src/matrix/sdk/logger.js.map +0 -7
- package/dist/src/matrix/sdk/read-response-with-limit.js +0 -8
- package/dist/src/matrix/sdk/read-response-with-limit.js.map +0 -7
- package/dist/src/matrix/sdk/recovery-key-store.js +0 -14
- package/dist/src/matrix/sdk/recovery-key-store.js.map +0 -7
- package/dist/src/matrix/sdk/transport.js +0 -13
- package/dist/src/matrix/sdk/transport.js.map +0 -7
- package/dist/src/matrix/sdk/types.js +0 -7
- package/dist/src/matrix/sdk/types.js.map +0 -7
- package/dist/src/matrix/sdk/verification-manager.js +0 -11
- package/dist/src/matrix/sdk/verification-manager.js.map +0 -7
- package/dist/src/matrix/sdk/verification-status.js +0 -12
- package/dist/src/matrix/sdk/verification-status.js.map +0 -7
- package/dist/src/matrix/sdk.js +0 -1375
- package/dist/src/matrix/sdk.js.map +0 -7
- package/dist/src/matrix/send/client.js +0 -14
- package/dist/src/matrix/send/client.js.map +0 -7
- package/dist/src/matrix/send/formatting.js +0 -29
- package/dist/src/matrix/send/formatting.js.map +0 -7
- package/dist/src/matrix/send/media.js +0 -26
- package/dist/src/matrix/send/media.js.map +0 -7
- package/dist/src/matrix/send/targets.js +0 -15
- package/dist/src/matrix/send/targets.js.map +0 -7
- package/dist/src/matrix/send/types.js +0 -17
- package/dist/src/matrix/send/types.js.map +0 -7
- package/dist/src/matrix/send.js +0 -51
- package/dist/src/matrix/send.js.map +0 -7
- package/dist/src/matrix/session-store-metadata.js +0 -15
- package/dist/src/matrix/session-store-metadata.js.map +0 -7
- package/dist/src/matrix/startup-abort.js +0 -14
- package/dist/src/matrix/startup-abort.js.map +0 -7
- package/dist/src/matrix/sync-state.js +0 -12
- package/dist/src/matrix/sync-state.js.map +0 -7
- package/dist/src/matrix/target-ids.js +0 -20
- package/dist/src/matrix/target-ids.js.map +0 -7
- package/dist/src/matrix/thread-bindings-shared.js +0 -34
- package/dist/src/matrix/thread-bindings-shared.js.map +0 -7
- package/dist/src/matrix/thread-bindings.js +0 -49
- package/dist/src/matrix/thread-bindings.js.map +0 -7
- package/dist/src/matrix-migration.runtime.js +0 -45
- package/dist/src/matrix-migration.runtime.js.map +0 -7
- package/dist/src/migration-config.js +0 -29
- package/dist/src/migration-config.js.map +0 -7
- package/dist/src/migration-snapshot-backup.js +0 -12
- package/dist/src/migration-snapshot-backup.js.map +0 -7
- package/dist/src/migration-snapshot.js +0 -38
- package/dist/src/migration-snapshot.js.map +0 -7
- package/dist/src/onboarding.js +0 -43
- package/dist/src/onboarding.js.map +0 -7
- package/dist/src/onboarding.test-harness.js +0 -124
- package/dist/src/onboarding.test-harness.js.map +0 -7
- package/dist/src/outbound.js +0 -33
- package/dist/src/outbound.js.map +0 -7
- package/dist/src/plugin-entry.runtime.js +0 -15
- package/dist/src/plugin-entry.runtime.js.map +0 -7
- package/dist/src/profile-update.js +0 -41
- package/dist/src/profile-update.js.map +0 -7
- package/dist/src/record-shared.js +0 -8
- package/dist/src/record-shared.js.map +0 -7
- package/dist/src/resolve-targets.js +0 -34
- package/dist/src/resolve-targets.js.map +0 -7
- package/dist/src/resolver.js +0 -8
- package/dist/src/resolver.js.map +0 -7
- package/dist/src/runtime-api.js +0 -120
- package/dist/src/runtime-api.js.map +0 -7
- package/dist/src/runtime.js +0 -10
- package/dist/src/runtime.js.map +0 -7
- package/dist/src/secret-contract.js +0 -13
- package/dist/src/secret-contract.js.map +0 -7
- package/dist/src/session-route.js +0 -25
- package/dist/src/session-route.js.map +0 -7
- package/dist/src/setup-bootstrap.js +0 -124
- package/dist/src/setup-bootstrap.js.map +0 -7
- package/dist/src/setup-config.js +0 -28
- package/dist/src/setup-config.js.map +0 -7
- package/dist/src/setup-contract.js +0 -16
- package/dist/src/setup-contract.js.map +0 -7
- package/dist/src/setup-core.js +0 -25
- package/dist/src/setup-core.js.map +0 -7
- package/dist/src/setup-surface.js +0 -45
- package/dist/src/setup-surface.js.map +0 -7
- package/dist/src/startup-maintenance.js +0 -29
- package/dist/src/startup-maintenance.js.map +0 -7
- package/dist/src/storage-paths.js +0 -24
- package/dist/src/storage-paths.js.map +0 -7
- package/dist/src/test-helpers.js +0 -49
- package/dist/src/test-helpers.js.map +0 -7
- package/dist/src/test-mocks.js +0 -40
- package/dist/src/test-mocks.js.map +0 -7
- package/dist/src/test-runtime.js +0 -65
- package/dist/src/test-runtime.js.map +0 -7
- package/dist/src/tool-actions.js +0 -68
- package/dist/src/tool-actions.js.map +0 -7
- package/dist/src/tool-actions.runtime.js +0 -73
- package/dist/src/tool-actions.runtime.js.map +0 -7
- package/dist/src/types.js +0 -7
- package/dist/src/types.js.map +0 -7
- package/dist/test-api.js +0 -82
- package/dist/test-api.js.map +0 -7
- package/dist/thread-bindings-runtime.js +0 -15
- package/dist/thread-bindings-runtime.js.map +0 -7
|
@@ -1,1315 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
init_shims
|
|
3
|
-
} from "./chunk-7FLQSTPG.js";
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/magic-string/dist/magic-string.es.mjs
|
|
6
|
-
init_shims();
|
|
7
|
-
|
|
8
|
-
// ../../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
9
|
-
init_shims();
|
|
10
|
-
var comma = ",".charCodeAt(0);
|
|
11
|
-
var semicolon = ";".charCodeAt(0);
|
|
12
|
-
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
13
|
-
var intToChar = new Uint8Array(64);
|
|
14
|
-
var charToInt = new Uint8Array(128);
|
|
15
|
-
for (let i = 0; i < chars.length; i++) {
|
|
16
|
-
const c = chars.charCodeAt(i);
|
|
17
|
-
intToChar[i] = c;
|
|
18
|
-
charToInt[c] = i;
|
|
19
|
-
}
|
|
20
|
-
function encodeInteger(builder, num, relative) {
|
|
21
|
-
let delta = num - relative;
|
|
22
|
-
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
23
|
-
do {
|
|
24
|
-
let clamped = delta & 31;
|
|
25
|
-
delta >>>= 5;
|
|
26
|
-
if (delta > 0) clamped |= 32;
|
|
27
|
-
builder.write(intToChar[clamped]);
|
|
28
|
-
} while (delta > 0);
|
|
29
|
-
return num;
|
|
30
|
-
}
|
|
31
|
-
var bufLength = 1024 * 16;
|
|
32
|
-
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
|
|
33
|
-
decode(buf) {
|
|
34
|
-
const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
35
|
-
return out.toString();
|
|
36
|
-
}
|
|
37
|
-
} : {
|
|
38
|
-
decode(buf) {
|
|
39
|
-
let out = "";
|
|
40
|
-
for (let i = 0; i < buf.length; i++) {
|
|
41
|
-
out += String.fromCharCode(buf[i]);
|
|
42
|
-
}
|
|
43
|
-
return out;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
var StringWriter = class {
|
|
47
|
-
constructor() {
|
|
48
|
-
this.pos = 0;
|
|
49
|
-
this.out = "";
|
|
50
|
-
this.buffer = new Uint8Array(bufLength);
|
|
51
|
-
}
|
|
52
|
-
write(v) {
|
|
53
|
-
const { buffer } = this;
|
|
54
|
-
buffer[this.pos++] = v;
|
|
55
|
-
if (this.pos === bufLength) {
|
|
56
|
-
this.out += td.decode(buffer);
|
|
57
|
-
this.pos = 0;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
flush() {
|
|
61
|
-
const { buffer, out, pos } = this;
|
|
62
|
-
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
function encode(decoded) {
|
|
66
|
-
const writer = new StringWriter();
|
|
67
|
-
let sourcesIndex = 0;
|
|
68
|
-
let sourceLine = 0;
|
|
69
|
-
let sourceColumn = 0;
|
|
70
|
-
let namesIndex = 0;
|
|
71
|
-
for (let i = 0; i < decoded.length; i++) {
|
|
72
|
-
const line = decoded[i];
|
|
73
|
-
if (i > 0) writer.write(semicolon);
|
|
74
|
-
if (line.length === 0) continue;
|
|
75
|
-
let genColumn = 0;
|
|
76
|
-
for (let j = 0; j < line.length; j++) {
|
|
77
|
-
const segment = line[j];
|
|
78
|
-
if (j > 0) writer.write(comma);
|
|
79
|
-
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
80
|
-
if (segment.length === 1) continue;
|
|
81
|
-
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
82
|
-
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
83
|
-
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
84
|
-
if (segment.length === 4) continue;
|
|
85
|
-
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return writer.flush();
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// ../../node_modules/magic-string/dist/magic-string.es.mjs
|
|
92
|
-
var BitSet = class _BitSet {
|
|
93
|
-
constructor(arg) {
|
|
94
|
-
this.bits = arg instanceof _BitSet ? arg.bits.slice() : [];
|
|
95
|
-
}
|
|
96
|
-
add(n2) {
|
|
97
|
-
this.bits[n2 >> 5] |= 1 << (n2 & 31);
|
|
98
|
-
}
|
|
99
|
-
has(n2) {
|
|
100
|
-
return !!(this.bits[n2 >> 5] & 1 << (n2 & 31));
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
var Chunk = class _Chunk {
|
|
104
|
-
constructor(start, end, content) {
|
|
105
|
-
this.start = start;
|
|
106
|
-
this.end = end;
|
|
107
|
-
this.original = content;
|
|
108
|
-
this.intro = "";
|
|
109
|
-
this.outro = "";
|
|
110
|
-
this.content = content;
|
|
111
|
-
this.storeName = false;
|
|
112
|
-
this.edited = false;
|
|
113
|
-
{
|
|
114
|
-
this.previous = null;
|
|
115
|
-
this.next = null;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
appendLeft(content) {
|
|
119
|
-
this.outro += content;
|
|
120
|
-
}
|
|
121
|
-
appendRight(content) {
|
|
122
|
-
this.intro = this.intro + content;
|
|
123
|
-
}
|
|
124
|
-
clone() {
|
|
125
|
-
const chunk = new _Chunk(this.start, this.end, this.original);
|
|
126
|
-
chunk.intro = this.intro;
|
|
127
|
-
chunk.outro = this.outro;
|
|
128
|
-
chunk.content = this.content;
|
|
129
|
-
chunk.storeName = this.storeName;
|
|
130
|
-
chunk.edited = this.edited;
|
|
131
|
-
return chunk;
|
|
132
|
-
}
|
|
133
|
-
contains(index) {
|
|
134
|
-
return this.start < index && index < this.end;
|
|
135
|
-
}
|
|
136
|
-
eachNext(fn) {
|
|
137
|
-
let chunk = this;
|
|
138
|
-
while (chunk) {
|
|
139
|
-
fn(chunk);
|
|
140
|
-
chunk = chunk.next;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
eachPrevious(fn) {
|
|
144
|
-
let chunk = this;
|
|
145
|
-
while (chunk) {
|
|
146
|
-
fn(chunk);
|
|
147
|
-
chunk = chunk.previous;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
edit(content, storeName, contentOnly) {
|
|
151
|
-
this.content = content;
|
|
152
|
-
if (!contentOnly) {
|
|
153
|
-
this.intro = "";
|
|
154
|
-
this.outro = "";
|
|
155
|
-
}
|
|
156
|
-
this.storeName = storeName;
|
|
157
|
-
this.edited = true;
|
|
158
|
-
return this;
|
|
159
|
-
}
|
|
160
|
-
prependLeft(content) {
|
|
161
|
-
this.outro = content + this.outro;
|
|
162
|
-
}
|
|
163
|
-
prependRight(content) {
|
|
164
|
-
this.intro = content + this.intro;
|
|
165
|
-
}
|
|
166
|
-
reset() {
|
|
167
|
-
this.intro = "";
|
|
168
|
-
this.outro = "";
|
|
169
|
-
if (this.edited) {
|
|
170
|
-
this.content = this.original;
|
|
171
|
-
this.storeName = false;
|
|
172
|
-
this.edited = false;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
split(index) {
|
|
176
|
-
const sliceIndex = index - this.start;
|
|
177
|
-
const originalBefore = this.original.slice(0, sliceIndex);
|
|
178
|
-
const originalAfter = this.original.slice(sliceIndex);
|
|
179
|
-
this.original = originalBefore;
|
|
180
|
-
const newChunk = new _Chunk(index, this.end, originalAfter);
|
|
181
|
-
newChunk.outro = this.outro;
|
|
182
|
-
this.outro = "";
|
|
183
|
-
this.end = index;
|
|
184
|
-
if (this.edited) {
|
|
185
|
-
newChunk.edit("", false);
|
|
186
|
-
this.content = "";
|
|
187
|
-
} else {
|
|
188
|
-
this.content = originalBefore;
|
|
189
|
-
}
|
|
190
|
-
newChunk.next = this.next;
|
|
191
|
-
if (newChunk.next) newChunk.next.previous = newChunk;
|
|
192
|
-
newChunk.previous = this;
|
|
193
|
-
this.next = newChunk;
|
|
194
|
-
return newChunk;
|
|
195
|
-
}
|
|
196
|
-
toString() {
|
|
197
|
-
return this.intro + this.content + this.outro;
|
|
198
|
-
}
|
|
199
|
-
trimEnd(rx) {
|
|
200
|
-
this.outro = this.outro.replace(rx, "");
|
|
201
|
-
if (this.outro.length) return true;
|
|
202
|
-
const trimmed = this.content.replace(rx, "");
|
|
203
|
-
if (trimmed.length) {
|
|
204
|
-
if (trimmed !== this.content) {
|
|
205
|
-
this.split(this.start + trimmed.length).edit("", void 0, true);
|
|
206
|
-
if (this.edited) {
|
|
207
|
-
this.edit(trimmed, this.storeName, true);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
return true;
|
|
211
|
-
} else {
|
|
212
|
-
this.edit("", void 0, true);
|
|
213
|
-
this.intro = this.intro.replace(rx, "");
|
|
214
|
-
if (this.intro.length) return true;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
trimStart(rx) {
|
|
218
|
-
this.intro = this.intro.replace(rx, "");
|
|
219
|
-
if (this.intro.length) return true;
|
|
220
|
-
const trimmed = this.content.replace(rx, "");
|
|
221
|
-
if (trimmed.length) {
|
|
222
|
-
if (trimmed !== this.content) {
|
|
223
|
-
const newChunk = this.split(this.end - trimmed.length);
|
|
224
|
-
if (this.edited) {
|
|
225
|
-
newChunk.edit(trimmed, this.storeName, true);
|
|
226
|
-
}
|
|
227
|
-
this.edit("", void 0, true);
|
|
228
|
-
}
|
|
229
|
-
return true;
|
|
230
|
-
} else {
|
|
231
|
-
this.edit("", void 0, true);
|
|
232
|
-
this.outro = this.outro.replace(rx, "");
|
|
233
|
-
if (this.outro.length) return true;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
function getBtoa() {
|
|
238
|
-
if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function") {
|
|
239
|
-
return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
|
|
240
|
-
} else if (typeof Buffer === "function") {
|
|
241
|
-
return (str) => Buffer.from(str, "utf-8").toString("base64");
|
|
242
|
-
} else {
|
|
243
|
-
return () => {
|
|
244
|
-
throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
var btoa = /* @__PURE__ */ getBtoa();
|
|
249
|
-
var SourceMap = class {
|
|
250
|
-
constructor(properties) {
|
|
251
|
-
this.version = 3;
|
|
252
|
-
this.file = properties.file;
|
|
253
|
-
this.sources = properties.sources;
|
|
254
|
-
this.sourcesContent = properties.sourcesContent;
|
|
255
|
-
this.names = properties.names;
|
|
256
|
-
this.mappings = encode(properties.mappings);
|
|
257
|
-
if (typeof properties.x_google_ignoreList !== "undefined") {
|
|
258
|
-
this.x_google_ignoreList = properties.x_google_ignoreList;
|
|
259
|
-
}
|
|
260
|
-
if (typeof properties.debugId !== "undefined") {
|
|
261
|
-
this.debugId = properties.debugId;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
toString() {
|
|
265
|
-
return JSON.stringify(this);
|
|
266
|
-
}
|
|
267
|
-
toUrl() {
|
|
268
|
-
return "data:application/json;charset=utf-8;base64," + btoa(this.toString());
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
function guessIndent(code) {
|
|
272
|
-
const lines = code.split("\n");
|
|
273
|
-
const tabbed = lines.filter((line) => /^\t+/.test(line));
|
|
274
|
-
const spaced = lines.filter((line) => /^ {2,}/.test(line));
|
|
275
|
-
if (tabbed.length === 0 && spaced.length === 0) {
|
|
276
|
-
return null;
|
|
277
|
-
}
|
|
278
|
-
if (tabbed.length >= spaced.length) {
|
|
279
|
-
return " ";
|
|
280
|
-
}
|
|
281
|
-
const min = spaced.reduce((previous, current) => {
|
|
282
|
-
const numSpaces = /^ +/.exec(current)[0].length;
|
|
283
|
-
return Math.min(numSpaces, previous);
|
|
284
|
-
}, Infinity);
|
|
285
|
-
return new Array(min + 1).join(" ");
|
|
286
|
-
}
|
|
287
|
-
function getRelativePath(from, to) {
|
|
288
|
-
const fromParts = from.split(/[/\\]/);
|
|
289
|
-
const toParts = to.split(/[/\\]/);
|
|
290
|
-
fromParts.pop();
|
|
291
|
-
while (fromParts[0] === toParts[0]) {
|
|
292
|
-
fromParts.shift();
|
|
293
|
-
toParts.shift();
|
|
294
|
-
}
|
|
295
|
-
if (fromParts.length) {
|
|
296
|
-
let i = fromParts.length;
|
|
297
|
-
while (i--) fromParts[i] = "..";
|
|
298
|
-
}
|
|
299
|
-
return fromParts.concat(toParts).join("/");
|
|
300
|
-
}
|
|
301
|
-
var toString = Object.prototype.toString;
|
|
302
|
-
function isObject(thing) {
|
|
303
|
-
return toString.call(thing) === "[object Object]";
|
|
304
|
-
}
|
|
305
|
-
function getLocator(source) {
|
|
306
|
-
const originalLines = source.split("\n");
|
|
307
|
-
const lineOffsets = [];
|
|
308
|
-
for (let i = 0, pos = 0; i < originalLines.length; i++) {
|
|
309
|
-
lineOffsets.push(pos);
|
|
310
|
-
pos += originalLines[i].length + 1;
|
|
311
|
-
}
|
|
312
|
-
return function locate(index) {
|
|
313
|
-
let i = 0;
|
|
314
|
-
let j = lineOffsets.length;
|
|
315
|
-
while (i < j) {
|
|
316
|
-
const m = i + j >> 1;
|
|
317
|
-
if (index < lineOffsets[m]) {
|
|
318
|
-
j = m;
|
|
319
|
-
} else {
|
|
320
|
-
i = m + 1;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
const line = i - 1;
|
|
324
|
-
const column = index - lineOffsets[line];
|
|
325
|
-
return { line, column };
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
var wordRegex = /\w/;
|
|
329
|
-
var Mappings = class {
|
|
330
|
-
constructor(hires) {
|
|
331
|
-
this.hires = hires;
|
|
332
|
-
this.generatedCodeLine = 0;
|
|
333
|
-
this.generatedCodeColumn = 0;
|
|
334
|
-
this.raw = [];
|
|
335
|
-
this.rawSegments = this.raw[this.generatedCodeLine] = [];
|
|
336
|
-
this.pending = null;
|
|
337
|
-
}
|
|
338
|
-
addEdit(sourceIndex, content, loc, nameIndex) {
|
|
339
|
-
if (content.length) {
|
|
340
|
-
const contentLengthMinusOne = content.length - 1;
|
|
341
|
-
let contentLineEnd = content.indexOf("\n", 0);
|
|
342
|
-
let previousContentLineEnd = -1;
|
|
343
|
-
while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {
|
|
344
|
-
const segment2 = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
|
345
|
-
if (nameIndex >= 0) {
|
|
346
|
-
segment2.push(nameIndex);
|
|
347
|
-
}
|
|
348
|
-
this.rawSegments.push(segment2);
|
|
349
|
-
this.generatedCodeLine += 1;
|
|
350
|
-
this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
|
351
|
-
this.generatedCodeColumn = 0;
|
|
352
|
-
previousContentLineEnd = contentLineEnd;
|
|
353
|
-
contentLineEnd = content.indexOf("\n", contentLineEnd + 1);
|
|
354
|
-
}
|
|
355
|
-
const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
|
356
|
-
if (nameIndex >= 0) {
|
|
357
|
-
segment.push(nameIndex);
|
|
358
|
-
}
|
|
359
|
-
this.rawSegments.push(segment);
|
|
360
|
-
this.advance(content.slice(previousContentLineEnd + 1));
|
|
361
|
-
} else if (this.pending) {
|
|
362
|
-
this.rawSegments.push(this.pending);
|
|
363
|
-
this.advance(content);
|
|
364
|
-
}
|
|
365
|
-
this.pending = null;
|
|
366
|
-
}
|
|
367
|
-
addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) {
|
|
368
|
-
let originalCharIndex = chunk.start;
|
|
369
|
-
let first = true;
|
|
370
|
-
let charInHiresBoundary = false;
|
|
371
|
-
while (originalCharIndex < chunk.end) {
|
|
372
|
-
if (original[originalCharIndex] === "\n") {
|
|
373
|
-
loc.line += 1;
|
|
374
|
-
loc.column = 0;
|
|
375
|
-
this.generatedCodeLine += 1;
|
|
376
|
-
this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
|
377
|
-
this.generatedCodeColumn = 0;
|
|
378
|
-
first = true;
|
|
379
|
-
charInHiresBoundary = false;
|
|
380
|
-
} else {
|
|
381
|
-
if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
|
|
382
|
-
const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
|
383
|
-
if (this.hires === "boundary") {
|
|
384
|
-
if (wordRegex.test(original[originalCharIndex])) {
|
|
385
|
-
if (!charInHiresBoundary) {
|
|
386
|
-
this.rawSegments.push(segment);
|
|
387
|
-
charInHiresBoundary = true;
|
|
388
|
-
}
|
|
389
|
-
} else {
|
|
390
|
-
this.rawSegments.push(segment);
|
|
391
|
-
charInHiresBoundary = false;
|
|
392
|
-
}
|
|
393
|
-
} else {
|
|
394
|
-
this.rawSegments.push(segment);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
loc.column += 1;
|
|
398
|
-
this.generatedCodeColumn += 1;
|
|
399
|
-
first = false;
|
|
400
|
-
}
|
|
401
|
-
originalCharIndex += 1;
|
|
402
|
-
}
|
|
403
|
-
this.pending = null;
|
|
404
|
-
}
|
|
405
|
-
advance(str) {
|
|
406
|
-
if (!str) return;
|
|
407
|
-
const lines = str.split("\n");
|
|
408
|
-
if (lines.length > 1) {
|
|
409
|
-
for (let i = 0; i < lines.length - 1; i++) {
|
|
410
|
-
this.generatedCodeLine++;
|
|
411
|
-
this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
|
412
|
-
}
|
|
413
|
-
this.generatedCodeColumn = 0;
|
|
414
|
-
}
|
|
415
|
-
this.generatedCodeColumn += lines[lines.length - 1].length;
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
|
-
var n = "\n";
|
|
419
|
-
var warned = {
|
|
420
|
-
insertLeft: false,
|
|
421
|
-
insertRight: false,
|
|
422
|
-
storeName: false
|
|
423
|
-
};
|
|
424
|
-
var MagicString = class _MagicString {
|
|
425
|
-
constructor(string, options = {}) {
|
|
426
|
-
const chunk = new Chunk(0, string.length, string);
|
|
427
|
-
Object.defineProperties(this, {
|
|
428
|
-
original: { writable: true, value: string },
|
|
429
|
-
outro: { writable: true, value: "" },
|
|
430
|
-
intro: { writable: true, value: "" },
|
|
431
|
-
firstChunk: { writable: true, value: chunk },
|
|
432
|
-
lastChunk: { writable: true, value: chunk },
|
|
433
|
-
lastSearchedChunk: { writable: true, value: chunk },
|
|
434
|
-
byStart: { writable: true, value: {} },
|
|
435
|
-
byEnd: { writable: true, value: {} },
|
|
436
|
-
filename: { writable: true, value: options.filename },
|
|
437
|
-
indentExclusionRanges: { writable: true, value: options.indentExclusionRanges },
|
|
438
|
-
sourcemapLocations: { writable: true, value: new BitSet() },
|
|
439
|
-
storedNames: { writable: true, value: {} },
|
|
440
|
-
indentStr: { writable: true, value: void 0 },
|
|
441
|
-
ignoreList: { writable: true, value: options.ignoreList },
|
|
442
|
-
offset: { writable: true, value: options.offset || 0 }
|
|
443
|
-
});
|
|
444
|
-
this.byStart[0] = chunk;
|
|
445
|
-
this.byEnd[string.length] = chunk;
|
|
446
|
-
}
|
|
447
|
-
addSourcemapLocation(char) {
|
|
448
|
-
this.sourcemapLocations.add(char);
|
|
449
|
-
}
|
|
450
|
-
append(content) {
|
|
451
|
-
if (typeof content !== "string") throw new TypeError("outro content must be a string");
|
|
452
|
-
this.outro += content;
|
|
453
|
-
return this;
|
|
454
|
-
}
|
|
455
|
-
appendLeft(index, content) {
|
|
456
|
-
index = index + this.offset;
|
|
457
|
-
if (typeof content !== "string") throw new TypeError("inserted content must be a string");
|
|
458
|
-
this._split(index);
|
|
459
|
-
const chunk = this.byEnd[index];
|
|
460
|
-
if (chunk) {
|
|
461
|
-
chunk.appendLeft(content);
|
|
462
|
-
} else {
|
|
463
|
-
this.intro += content;
|
|
464
|
-
}
|
|
465
|
-
return this;
|
|
466
|
-
}
|
|
467
|
-
appendRight(index, content) {
|
|
468
|
-
index = index + this.offset;
|
|
469
|
-
if (typeof content !== "string") throw new TypeError("inserted content must be a string");
|
|
470
|
-
this._split(index);
|
|
471
|
-
const chunk = this.byStart[index];
|
|
472
|
-
if (chunk) {
|
|
473
|
-
chunk.appendRight(content);
|
|
474
|
-
} else {
|
|
475
|
-
this.outro += content;
|
|
476
|
-
}
|
|
477
|
-
return this;
|
|
478
|
-
}
|
|
479
|
-
clone() {
|
|
480
|
-
const cloned = new _MagicString(this.original, { filename: this.filename, offset: this.offset });
|
|
481
|
-
let originalChunk = this.firstChunk;
|
|
482
|
-
let clonedChunk = cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone();
|
|
483
|
-
while (originalChunk) {
|
|
484
|
-
cloned.byStart[clonedChunk.start] = clonedChunk;
|
|
485
|
-
cloned.byEnd[clonedChunk.end] = clonedChunk;
|
|
486
|
-
const nextOriginalChunk = originalChunk.next;
|
|
487
|
-
const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone();
|
|
488
|
-
if (nextClonedChunk) {
|
|
489
|
-
clonedChunk.next = nextClonedChunk;
|
|
490
|
-
nextClonedChunk.previous = clonedChunk;
|
|
491
|
-
clonedChunk = nextClonedChunk;
|
|
492
|
-
}
|
|
493
|
-
originalChunk = nextOriginalChunk;
|
|
494
|
-
}
|
|
495
|
-
cloned.lastChunk = clonedChunk;
|
|
496
|
-
if (this.indentExclusionRanges) {
|
|
497
|
-
cloned.indentExclusionRanges = this.indentExclusionRanges.slice();
|
|
498
|
-
}
|
|
499
|
-
cloned.sourcemapLocations = new BitSet(this.sourcemapLocations);
|
|
500
|
-
cloned.intro = this.intro;
|
|
501
|
-
cloned.outro = this.outro;
|
|
502
|
-
return cloned;
|
|
503
|
-
}
|
|
504
|
-
generateDecodedMap(options) {
|
|
505
|
-
options = options || {};
|
|
506
|
-
const sourceIndex = 0;
|
|
507
|
-
const names = Object.keys(this.storedNames);
|
|
508
|
-
const mappings = new Mappings(options.hires);
|
|
509
|
-
const locate = getLocator(this.original);
|
|
510
|
-
if (this.intro) {
|
|
511
|
-
mappings.advance(this.intro);
|
|
512
|
-
}
|
|
513
|
-
this.firstChunk.eachNext((chunk) => {
|
|
514
|
-
const loc = locate(chunk.start);
|
|
515
|
-
if (chunk.intro.length) mappings.advance(chunk.intro);
|
|
516
|
-
if (chunk.edited) {
|
|
517
|
-
mappings.addEdit(
|
|
518
|
-
sourceIndex,
|
|
519
|
-
chunk.content,
|
|
520
|
-
loc,
|
|
521
|
-
chunk.storeName ? names.indexOf(chunk.original) : -1
|
|
522
|
-
);
|
|
523
|
-
} else {
|
|
524
|
-
mappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations);
|
|
525
|
-
}
|
|
526
|
-
if (chunk.outro.length) mappings.advance(chunk.outro);
|
|
527
|
-
});
|
|
528
|
-
if (this.outro) {
|
|
529
|
-
mappings.advance(this.outro);
|
|
530
|
-
}
|
|
531
|
-
return {
|
|
532
|
-
file: options.file ? options.file.split(/[/\\]/).pop() : void 0,
|
|
533
|
-
sources: [
|
|
534
|
-
options.source ? getRelativePath(options.file || "", options.source) : options.file || ""
|
|
535
|
-
],
|
|
536
|
-
sourcesContent: options.includeContent ? [this.original] : void 0,
|
|
537
|
-
names,
|
|
538
|
-
mappings: mappings.raw,
|
|
539
|
-
x_google_ignoreList: this.ignoreList ? [sourceIndex] : void 0
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
generateMap(options) {
|
|
543
|
-
return new SourceMap(this.generateDecodedMap(options));
|
|
544
|
-
}
|
|
545
|
-
_ensureindentStr() {
|
|
546
|
-
if (this.indentStr === void 0) {
|
|
547
|
-
this.indentStr = guessIndent(this.original);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
_getRawIndentString() {
|
|
551
|
-
this._ensureindentStr();
|
|
552
|
-
return this.indentStr;
|
|
553
|
-
}
|
|
554
|
-
getIndentString() {
|
|
555
|
-
this._ensureindentStr();
|
|
556
|
-
return this.indentStr === null ? " " : this.indentStr;
|
|
557
|
-
}
|
|
558
|
-
indent(indentStr, options) {
|
|
559
|
-
const pattern = /^[^\r\n]/gm;
|
|
560
|
-
if (isObject(indentStr)) {
|
|
561
|
-
options = indentStr;
|
|
562
|
-
indentStr = void 0;
|
|
563
|
-
}
|
|
564
|
-
if (indentStr === void 0) {
|
|
565
|
-
this._ensureindentStr();
|
|
566
|
-
indentStr = this.indentStr || " ";
|
|
567
|
-
}
|
|
568
|
-
if (indentStr === "") return this;
|
|
569
|
-
options = options || {};
|
|
570
|
-
const isExcluded = {};
|
|
571
|
-
if (options.exclude) {
|
|
572
|
-
const exclusions = typeof options.exclude[0] === "number" ? [options.exclude] : options.exclude;
|
|
573
|
-
exclusions.forEach((exclusion) => {
|
|
574
|
-
for (let i = exclusion[0]; i < exclusion[1]; i += 1) {
|
|
575
|
-
isExcluded[i] = true;
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
let shouldIndentNextCharacter = options.indentStart !== false;
|
|
580
|
-
const replacer = (match) => {
|
|
581
|
-
if (shouldIndentNextCharacter) return `${indentStr}${match}`;
|
|
582
|
-
shouldIndentNextCharacter = true;
|
|
583
|
-
return match;
|
|
584
|
-
};
|
|
585
|
-
this.intro = this.intro.replace(pattern, replacer);
|
|
586
|
-
let charIndex = 0;
|
|
587
|
-
let chunk = this.firstChunk;
|
|
588
|
-
while (chunk) {
|
|
589
|
-
const end = chunk.end;
|
|
590
|
-
if (chunk.edited) {
|
|
591
|
-
if (!isExcluded[charIndex]) {
|
|
592
|
-
chunk.content = chunk.content.replace(pattern, replacer);
|
|
593
|
-
if (chunk.content.length) {
|
|
594
|
-
shouldIndentNextCharacter = chunk.content[chunk.content.length - 1] === "\n";
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
} else {
|
|
598
|
-
charIndex = chunk.start;
|
|
599
|
-
while (charIndex < end) {
|
|
600
|
-
if (!isExcluded[charIndex]) {
|
|
601
|
-
const char = this.original[charIndex];
|
|
602
|
-
if (char === "\n") {
|
|
603
|
-
shouldIndentNextCharacter = true;
|
|
604
|
-
} else if (char !== "\r" && shouldIndentNextCharacter) {
|
|
605
|
-
shouldIndentNextCharacter = false;
|
|
606
|
-
if (charIndex === chunk.start) {
|
|
607
|
-
chunk.prependRight(indentStr);
|
|
608
|
-
} else {
|
|
609
|
-
this._splitChunk(chunk, charIndex);
|
|
610
|
-
chunk = chunk.next;
|
|
611
|
-
chunk.prependRight(indentStr);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
charIndex += 1;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
charIndex = chunk.end;
|
|
619
|
-
chunk = chunk.next;
|
|
620
|
-
}
|
|
621
|
-
this.outro = this.outro.replace(pattern, replacer);
|
|
622
|
-
return this;
|
|
623
|
-
}
|
|
624
|
-
insert() {
|
|
625
|
-
throw new Error(
|
|
626
|
-
"magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)"
|
|
627
|
-
);
|
|
628
|
-
}
|
|
629
|
-
insertLeft(index, content) {
|
|
630
|
-
if (!warned.insertLeft) {
|
|
631
|
-
console.warn(
|
|
632
|
-
"magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"
|
|
633
|
-
);
|
|
634
|
-
warned.insertLeft = true;
|
|
635
|
-
}
|
|
636
|
-
return this.appendLeft(index, content);
|
|
637
|
-
}
|
|
638
|
-
insertRight(index, content) {
|
|
639
|
-
if (!warned.insertRight) {
|
|
640
|
-
console.warn(
|
|
641
|
-
"magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"
|
|
642
|
-
);
|
|
643
|
-
warned.insertRight = true;
|
|
644
|
-
}
|
|
645
|
-
return this.prependRight(index, content);
|
|
646
|
-
}
|
|
647
|
-
move(start, end, index) {
|
|
648
|
-
start = start + this.offset;
|
|
649
|
-
end = end + this.offset;
|
|
650
|
-
index = index + this.offset;
|
|
651
|
-
if (index >= start && index <= end) throw new Error("Cannot move a selection inside itself");
|
|
652
|
-
this._split(start);
|
|
653
|
-
this._split(end);
|
|
654
|
-
this._split(index);
|
|
655
|
-
const first = this.byStart[start];
|
|
656
|
-
const last = this.byEnd[end];
|
|
657
|
-
const oldLeft = first.previous;
|
|
658
|
-
const oldRight = last.next;
|
|
659
|
-
const newRight = this.byStart[index];
|
|
660
|
-
if (!newRight && last === this.lastChunk) return this;
|
|
661
|
-
const newLeft = newRight ? newRight.previous : this.lastChunk;
|
|
662
|
-
if (oldLeft) oldLeft.next = oldRight;
|
|
663
|
-
if (oldRight) oldRight.previous = oldLeft;
|
|
664
|
-
if (newLeft) newLeft.next = first;
|
|
665
|
-
if (newRight) newRight.previous = last;
|
|
666
|
-
if (!first.previous) this.firstChunk = last.next;
|
|
667
|
-
if (!last.next) {
|
|
668
|
-
this.lastChunk = first.previous;
|
|
669
|
-
this.lastChunk.next = null;
|
|
670
|
-
}
|
|
671
|
-
first.previous = newLeft;
|
|
672
|
-
last.next = newRight || null;
|
|
673
|
-
if (!newLeft) this.firstChunk = first;
|
|
674
|
-
if (!newRight) this.lastChunk = last;
|
|
675
|
-
return this;
|
|
676
|
-
}
|
|
677
|
-
overwrite(start, end, content, options) {
|
|
678
|
-
options = options || {};
|
|
679
|
-
return this.update(start, end, content, { ...options, overwrite: !options.contentOnly });
|
|
680
|
-
}
|
|
681
|
-
update(start, end, content, options) {
|
|
682
|
-
start = start + this.offset;
|
|
683
|
-
end = end + this.offset;
|
|
684
|
-
if (typeof content !== "string") throw new TypeError("replacement content must be a string");
|
|
685
|
-
if (this.original.length !== 0) {
|
|
686
|
-
while (start < 0) start += this.original.length;
|
|
687
|
-
while (end < 0) end += this.original.length;
|
|
688
|
-
}
|
|
689
|
-
if (end > this.original.length) throw new Error("end is out of bounds");
|
|
690
|
-
if (start === end)
|
|
691
|
-
throw new Error(
|
|
692
|
-
"Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead"
|
|
693
|
-
);
|
|
694
|
-
this._split(start);
|
|
695
|
-
this._split(end);
|
|
696
|
-
if (options === true) {
|
|
697
|
-
if (!warned.storeName) {
|
|
698
|
-
console.warn(
|
|
699
|
-
"The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"
|
|
700
|
-
);
|
|
701
|
-
warned.storeName = true;
|
|
702
|
-
}
|
|
703
|
-
options = { storeName: true };
|
|
704
|
-
}
|
|
705
|
-
const storeName = options !== void 0 ? options.storeName : false;
|
|
706
|
-
const overwrite = options !== void 0 ? options.overwrite : false;
|
|
707
|
-
if (storeName) {
|
|
708
|
-
const original = this.original.slice(start, end);
|
|
709
|
-
Object.defineProperty(this.storedNames, original, {
|
|
710
|
-
writable: true,
|
|
711
|
-
value: true,
|
|
712
|
-
enumerable: true
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
const first = this.byStart[start];
|
|
716
|
-
const last = this.byEnd[end];
|
|
717
|
-
if (first) {
|
|
718
|
-
let chunk = first;
|
|
719
|
-
while (chunk !== last) {
|
|
720
|
-
if (chunk.next !== this.byStart[chunk.end]) {
|
|
721
|
-
throw new Error("Cannot overwrite across a split point");
|
|
722
|
-
}
|
|
723
|
-
chunk = chunk.next;
|
|
724
|
-
chunk.edit("", false);
|
|
725
|
-
}
|
|
726
|
-
first.edit(content, storeName, !overwrite);
|
|
727
|
-
} else {
|
|
728
|
-
const newChunk = new Chunk(start, end, "").edit(content, storeName);
|
|
729
|
-
last.next = newChunk;
|
|
730
|
-
newChunk.previous = last;
|
|
731
|
-
}
|
|
732
|
-
return this;
|
|
733
|
-
}
|
|
734
|
-
prepend(content) {
|
|
735
|
-
if (typeof content !== "string") throw new TypeError("outro content must be a string");
|
|
736
|
-
this.intro = content + this.intro;
|
|
737
|
-
return this;
|
|
738
|
-
}
|
|
739
|
-
prependLeft(index, content) {
|
|
740
|
-
index = index + this.offset;
|
|
741
|
-
if (typeof content !== "string") throw new TypeError("inserted content must be a string");
|
|
742
|
-
this._split(index);
|
|
743
|
-
const chunk = this.byEnd[index];
|
|
744
|
-
if (chunk) {
|
|
745
|
-
chunk.prependLeft(content);
|
|
746
|
-
} else {
|
|
747
|
-
this.intro = content + this.intro;
|
|
748
|
-
}
|
|
749
|
-
return this;
|
|
750
|
-
}
|
|
751
|
-
prependRight(index, content) {
|
|
752
|
-
index = index + this.offset;
|
|
753
|
-
if (typeof content !== "string") throw new TypeError("inserted content must be a string");
|
|
754
|
-
this._split(index);
|
|
755
|
-
const chunk = this.byStart[index];
|
|
756
|
-
if (chunk) {
|
|
757
|
-
chunk.prependRight(content);
|
|
758
|
-
} else {
|
|
759
|
-
this.outro = content + this.outro;
|
|
760
|
-
}
|
|
761
|
-
return this;
|
|
762
|
-
}
|
|
763
|
-
remove(start, end) {
|
|
764
|
-
start = start + this.offset;
|
|
765
|
-
end = end + this.offset;
|
|
766
|
-
if (this.original.length !== 0) {
|
|
767
|
-
while (start < 0) start += this.original.length;
|
|
768
|
-
while (end < 0) end += this.original.length;
|
|
769
|
-
}
|
|
770
|
-
if (start === end) return this;
|
|
771
|
-
if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds");
|
|
772
|
-
if (start > end) throw new Error("end must be greater than start");
|
|
773
|
-
this._split(start);
|
|
774
|
-
this._split(end);
|
|
775
|
-
let chunk = this.byStart[start];
|
|
776
|
-
while (chunk) {
|
|
777
|
-
chunk.intro = "";
|
|
778
|
-
chunk.outro = "";
|
|
779
|
-
chunk.edit("");
|
|
780
|
-
chunk = end > chunk.end ? this.byStart[chunk.end] : null;
|
|
781
|
-
}
|
|
782
|
-
return this;
|
|
783
|
-
}
|
|
784
|
-
reset(start, end) {
|
|
785
|
-
start = start + this.offset;
|
|
786
|
-
end = end + this.offset;
|
|
787
|
-
if (this.original.length !== 0) {
|
|
788
|
-
while (start < 0) start += this.original.length;
|
|
789
|
-
while (end < 0) end += this.original.length;
|
|
790
|
-
}
|
|
791
|
-
if (start === end) return this;
|
|
792
|
-
if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds");
|
|
793
|
-
if (start > end) throw new Error("end must be greater than start");
|
|
794
|
-
this._split(start);
|
|
795
|
-
this._split(end);
|
|
796
|
-
let chunk = this.byStart[start];
|
|
797
|
-
while (chunk) {
|
|
798
|
-
chunk.reset();
|
|
799
|
-
chunk = end > chunk.end ? this.byStart[chunk.end] : null;
|
|
800
|
-
}
|
|
801
|
-
return this;
|
|
802
|
-
}
|
|
803
|
-
lastChar() {
|
|
804
|
-
if (this.outro.length) return this.outro[this.outro.length - 1];
|
|
805
|
-
let chunk = this.lastChunk;
|
|
806
|
-
do {
|
|
807
|
-
if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1];
|
|
808
|
-
if (chunk.content.length) return chunk.content[chunk.content.length - 1];
|
|
809
|
-
if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1];
|
|
810
|
-
} while (chunk = chunk.previous);
|
|
811
|
-
if (this.intro.length) return this.intro[this.intro.length - 1];
|
|
812
|
-
return "";
|
|
813
|
-
}
|
|
814
|
-
lastLine() {
|
|
815
|
-
let lineIndex = this.outro.lastIndexOf(n);
|
|
816
|
-
if (lineIndex !== -1) return this.outro.substr(lineIndex + 1);
|
|
817
|
-
let lineStr = this.outro;
|
|
818
|
-
let chunk = this.lastChunk;
|
|
819
|
-
do {
|
|
820
|
-
if (chunk.outro.length > 0) {
|
|
821
|
-
lineIndex = chunk.outro.lastIndexOf(n);
|
|
822
|
-
if (lineIndex !== -1) return chunk.outro.substr(lineIndex + 1) + lineStr;
|
|
823
|
-
lineStr = chunk.outro + lineStr;
|
|
824
|
-
}
|
|
825
|
-
if (chunk.content.length > 0) {
|
|
826
|
-
lineIndex = chunk.content.lastIndexOf(n);
|
|
827
|
-
if (lineIndex !== -1) return chunk.content.substr(lineIndex + 1) + lineStr;
|
|
828
|
-
lineStr = chunk.content + lineStr;
|
|
829
|
-
}
|
|
830
|
-
if (chunk.intro.length > 0) {
|
|
831
|
-
lineIndex = chunk.intro.lastIndexOf(n);
|
|
832
|
-
if (lineIndex !== -1) return chunk.intro.substr(lineIndex + 1) + lineStr;
|
|
833
|
-
lineStr = chunk.intro + lineStr;
|
|
834
|
-
}
|
|
835
|
-
} while (chunk = chunk.previous);
|
|
836
|
-
lineIndex = this.intro.lastIndexOf(n);
|
|
837
|
-
if (lineIndex !== -1) return this.intro.substr(lineIndex + 1) + lineStr;
|
|
838
|
-
return this.intro + lineStr;
|
|
839
|
-
}
|
|
840
|
-
slice(start = 0, end = this.original.length - this.offset) {
|
|
841
|
-
start = start + this.offset;
|
|
842
|
-
end = end + this.offset;
|
|
843
|
-
if (this.original.length !== 0) {
|
|
844
|
-
while (start < 0) start += this.original.length;
|
|
845
|
-
while (end < 0) end += this.original.length;
|
|
846
|
-
}
|
|
847
|
-
let result = "";
|
|
848
|
-
let chunk = this.firstChunk;
|
|
849
|
-
while (chunk && (chunk.start > start || chunk.end <= start)) {
|
|
850
|
-
if (chunk.start < end && chunk.end >= end) {
|
|
851
|
-
return result;
|
|
852
|
-
}
|
|
853
|
-
chunk = chunk.next;
|
|
854
|
-
}
|
|
855
|
-
if (chunk && chunk.edited && chunk.start !== start)
|
|
856
|
-
throw new Error(`Cannot use replaced character ${start} as slice start anchor.`);
|
|
857
|
-
const startChunk = chunk;
|
|
858
|
-
while (chunk) {
|
|
859
|
-
if (chunk.intro && (startChunk !== chunk || chunk.start === start)) {
|
|
860
|
-
result += chunk.intro;
|
|
861
|
-
}
|
|
862
|
-
const containsEnd = chunk.start < end && chunk.end >= end;
|
|
863
|
-
if (containsEnd && chunk.edited && chunk.end !== end)
|
|
864
|
-
throw new Error(`Cannot use replaced character ${end} as slice end anchor.`);
|
|
865
|
-
const sliceStart = startChunk === chunk ? start - chunk.start : 0;
|
|
866
|
-
const sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length;
|
|
867
|
-
result += chunk.content.slice(sliceStart, sliceEnd);
|
|
868
|
-
if (chunk.outro && (!containsEnd || chunk.end === end)) {
|
|
869
|
-
result += chunk.outro;
|
|
870
|
-
}
|
|
871
|
-
if (containsEnd) {
|
|
872
|
-
break;
|
|
873
|
-
}
|
|
874
|
-
chunk = chunk.next;
|
|
875
|
-
}
|
|
876
|
-
return result;
|
|
877
|
-
}
|
|
878
|
-
// TODO deprecate this? not really very useful
|
|
879
|
-
snip(start, end) {
|
|
880
|
-
const clone = this.clone();
|
|
881
|
-
clone.remove(0, start);
|
|
882
|
-
clone.remove(end, clone.original.length);
|
|
883
|
-
return clone;
|
|
884
|
-
}
|
|
885
|
-
_split(index) {
|
|
886
|
-
if (this.byStart[index] || this.byEnd[index]) return;
|
|
887
|
-
let chunk = this.lastSearchedChunk;
|
|
888
|
-
let previousChunk = chunk;
|
|
889
|
-
const searchForward = index > chunk.end;
|
|
890
|
-
while (chunk) {
|
|
891
|
-
if (chunk.contains(index)) return this._splitChunk(chunk, index);
|
|
892
|
-
chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
|
|
893
|
-
if (chunk === previousChunk) return;
|
|
894
|
-
previousChunk = chunk;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
_splitChunk(chunk, index) {
|
|
898
|
-
if (chunk.edited && chunk.content.length) {
|
|
899
|
-
const loc = getLocator(this.original)(index);
|
|
900
|
-
throw new Error(
|
|
901
|
-
`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} \u2013 "${chunk.original}")`
|
|
902
|
-
);
|
|
903
|
-
}
|
|
904
|
-
const newChunk = chunk.split(index);
|
|
905
|
-
this.byEnd[index] = chunk;
|
|
906
|
-
this.byStart[index] = newChunk;
|
|
907
|
-
this.byEnd[newChunk.end] = newChunk;
|
|
908
|
-
if (chunk === this.lastChunk) this.lastChunk = newChunk;
|
|
909
|
-
this.lastSearchedChunk = chunk;
|
|
910
|
-
return true;
|
|
911
|
-
}
|
|
912
|
-
toString() {
|
|
913
|
-
let str = this.intro;
|
|
914
|
-
let chunk = this.firstChunk;
|
|
915
|
-
while (chunk) {
|
|
916
|
-
str += chunk.toString();
|
|
917
|
-
chunk = chunk.next;
|
|
918
|
-
}
|
|
919
|
-
return str + this.outro;
|
|
920
|
-
}
|
|
921
|
-
isEmpty() {
|
|
922
|
-
let chunk = this.firstChunk;
|
|
923
|
-
do {
|
|
924
|
-
if (chunk.intro.length && chunk.intro.trim() || chunk.content.length && chunk.content.trim() || chunk.outro.length && chunk.outro.trim())
|
|
925
|
-
return false;
|
|
926
|
-
} while (chunk = chunk.next);
|
|
927
|
-
return true;
|
|
928
|
-
}
|
|
929
|
-
length() {
|
|
930
|
-
let chunk = this.firstChunk;
|
|
931
|
-
let length = 0;
|
|
932
|
-
do {
|
|
933
|
-
length += chunk.intro.length + chunk.content.length + chunk.outro.length;
|
|
934
|
-
} while (chunk = chunk.next);
|
|
935
|
-
return length;
|
|
936
|
-
}
|
|
937
|
-
trimLines() {
|
|
938
|
-
return this.trim("[\\r\\n]");
|
|
939
|
-
}
|
|
940
|
-
trim(charType) {
|
|
941
|
-
return this.trimStart(charType).trimEnd(charType);
|
|
942
|
-
}
|
|
943
|
-
trimEndAborted(charType) {
|
|
944
|
-
const rx = new RegExp((charType || "\\s") + "+$");
|
|
945
|
-
this.outro = this.outro.replace(rx, "");
|
|
946
|
-
if (this.outro.length) return true;
|
|
947
|
-
let chunk = this.lastChunk;
|
|
948
|
-
do {
|
|
949
|
-
const end = chunk.end;
|
|
950
|
-
const aborted = chunk.trimEnd(rx);
|
|
951
|
-
if (chunk.end !== end) {
|
|
952
|
-
if (this.lastChunk === chunk) {
|
|
953
|
-
this.lastChunk = chunk.next;
|
|
954
|
-
}
|
|
955
|
-
this.byEnd[chunk.end] = chunk;
|
|
956
|
-
this.byStart[chunk.next.start] = chunk.next;
|
|
957
|
-
this.byEnd[chunk.next.end] = chunk.next;
|
|
958
|
-
}
|
|
959
|
-
if (aborted) return true;
|
|
960
|
-
chunk = chunk.previous;
|
|
961
|
-
} while (chunk);
|
|
962
|
-
return false;
|
|
963
|
-
}
|
|
964
|
-
trimEnd(charType) {
|
|
965
|
-
this.trimEndAborted(charType);
|
|
966
|
-
return this;
|
|
967
|
-
}
|
|
968
|
-
trimStartAborted(charType) {
|
|
969
|
-
const rx = new RegExp("^" + (charType || "\\s") + "+");
|
|
970
|
-
this.intro = this.intro.replace(rx, "");
|
|
971
|
-
if (this.intro.length) return true;
|
|
972
|
-
let chunk = this.firstChunk;
|
|
973
|
-
do {
|
|
974
|
-
const end = chunk.end;
|
|
975
|
-
const aborted = chunk.trimStart(rx);
|
|
976
|
-
if (chunk.end !== end) {
|
|
977
|
-
if (chunk === this.lastChunk) this.lastChunk = chunk.next;
|
|
978
|
-
this.byEnd[chunk.end] = chunk;
|
|
979
|
-
this.byStart[chunk.next.start] = chunk.next;
|
|
980
|
-
this.byEnd[chunk.next.end] = chunk.next;
|
|
981
|
-
}
|
|
982
|
-
if (aborted) return true;
|
|
983
|
-
chunk = chunk.next;
|
|
984
|
-
} while (chunk);
|
|
985
|
-
return false;
|
|
986
|
-
}
|
|
987
|
-
trimStart(charType) {
|
|
988
|
-
this.trimStartAborted(charType);
|
|
989
|
-
return this;
|
|
990
|
-
}
|
|
991
|
-
hasChanged() {
|
|
992
|
-
return this.original !== this.toString();
|
|
993
|
-
}
|
|
994
|
-
_replaceRegexp(searchValue, replacement) {
|
|
995
|
-
function getReplacement(match, str) {
|
|
996
|
-
if (typeof replacement === "string") {
|
|
997
|
-
return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
|
|
998
|
-
if (i === "$") return "$";
|
|
999
|
-
if (i === "&") return match[0];
|
|
1000
|
-
const num = +i;
|
|
1001
|
-
if (num < match.length) return match[+i];
|
|
1002
|
-
return `$${i}`;
|
|
1003
|
-
});
|
|
1004
|
-
} else {
|
|
1005
|
-
return replacement(...match, match.index, str, match.groups);
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
function matchAll(re, str) {
|
|
1009
|
-
let match;
|
|
1010
|
-
const matches = [];
|
|
1011
|
-
while (match = re.exec(str)) {
|
|
1012
|
-
matches.push(match);
|
|
1013
|
-
}
|
|
1014
|
-
return matches;
|
|
1015
|
-
}
|
|
1016
|
-
if (searchValue.global) {
|
|
1017
|
-
const matches = matchAll(searchValue, this.original);
|
|
1018
|
-
matches.forEach((match) => {
|
|
1019
|
-
if (match.index != null) {
|
|
1020
|
-
const replacement2 = getReplacement(match, this.original);
|
|
1021
|
-
if (replacement2 !== match[0]) {
|
|
1022
|
-
this.overwrite(match.index, match.index + match[0].length, replacement2);
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
});
|
|
1026
|
-
} else {
|
|
1027
|
-
const match = this.original.match(searchValue);
|
|
1028
|
-
if (match && match.index != null) {
|
|
1029
|
-
const replacement2 = getReplacement(match, this.original);
|
|
1030
|
-
if (replacement2 !== match[0]) {
|
|
1031
|
-
this.overwrite(match.index, match.index + match[0].length, replacement2);
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
return this;
|
|
1036
|
-
}
|
|
1037
|
-
_replaceString(string, replacement) {
|
|
1038
|
-
const { original } = this;
|
|
1039
|
-
const index = original.indexOf(string);
|
|
1040
|
-
if (index !== -1) {
|
|
1041
|
-
if (typeof replacement === "function") {
|
|
1042
|
-
replacement = replacement(string, index, original);
|
|
1043
|
-
}
|
|
1044
|
-
if (string !== replacement) {
|
|
1045
|
-
this.overwrite(index, index + string.length, replacement);
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
return this;
|
|
1049
|
-
}
|
|
1050
|
-
replace(searchValue, replacement) {
|
|
1051
|
-
if (typeof searchValue === "string") {
|
|
1052
|
-
return this._replaceString(searchValue, replacement);
|
|
1053
|
-
}
|
|
1054
|
-
return this._replaceRegexp(searchValue, replacement);
|
|
1055
|
-
}
|
|
1056
|
-
_replaceAllString(string, replacement) {
|
|
1057
|
-
const { original } = this;
|
|
1058
|
-
const stringLength = string.length;
|
|
1059
|
-
for (let index = original.indexOf(string); index !== -1; index = original.indexOf(string, index + stringLength)) {
|
|
1060
|
-
const previous = original.slice(index, index + stringLength);
|
|
1061
|
-
let _replacement = replacement;
|
|
1062
|
-
if (typeof replacement === "function") {
|
|
1063
|
-
_replacement = replacement(previous, index, original);
|
|
1064
|
-
}
|
|
1065
|
-
if (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement);
|
|
1066
|
-
}
|
|
1067
|
-
return this;
|
|
1068
|
-
}
|
|
1069
|
-
replaceAll(searchValue, replacement) {
|
|
1070
|
-
if (typeof searchValue === "string") {
|
|
1071
|
-
return this._replaceAllString(searchValue, replacement);
|
|
1072
|
-
}
|
|
1073
|
-
if (!searchValue.global) {
|
|
1074
|
-
throw new TypeError(
|
|
1075
|
-
"MagicString.prototype.replaceAll called with a non-global RegExp argument"
|
|
1076
|
-
);
|
|
1077
|
-
}
|
|
1078
|
-
return this._replaceRegexp(searchValue, replacement);
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
|
-
var hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1082
|
-
var Bundle = class _Bundle {
|
|
1083
|
-
constructor(options = {}) {
|
|
1084
|
-
this.intro = options.intro || "";
|
|
1085
|
-
this.separator = options.separator !== void 0 ? options.separator : "\n";
|
|
1086
|
-
this.sources = [];
|
|
1087
|
-
this.uniqueSources = [];
|
|
1088
|
-
this.uniqueSourceIndexByFilename = {};
|
|
1089
|
-
}
|
|
1090
|
-
addSource(source) {
|
|
1091
|
-
if (source instanceof MagicString) {
|
|
1092
|
-
return this.addSource({
|
|
1093
|
-
content: source,
|
|
1094
|
-
filename: source.filename,
|
|
1095
|
-
separator: this.separator
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
if (!isObject(source) || !source.content) {
|
|
1099
|
-
throw new Error(
|
|
1100
|
-
"bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`"
|
|
1101
|
-
);
|
|
1102
|
-
}
|
|
1103
|
-
["filename", "ignoreList", "indentExclusionRanges", "separator"].forEach((option) => {
|
|
1104
|
-
if (!hasOwnProp.call(source, option)) source[option] = source.content[option];
|
|
1105
|
-
});
|
|
1106
|
-
if (source.separator === void 0) {
|
|
1107
|
-
source.separator = this.separator;
|
|
1108
|
-
}
|
|
1109
|
-
if (source.filename) {
|
|
1110
|
-
if (!hasOwnProp.call(this.uniqueSourceIndexByFilename, source.filename)) {
|
|
1111
|
-
this.uniqueSourceIndexByFilename[source.filename] = this.uniqueSources.length;
|
|
1112
|
-
this.uniqueSources.push({ filename: source.filename, content: source.content.original });
|
|
1113
|
-
} else {
|
|
1114
|
-
const uniqueSource = this.uniqueSources[this.uniqueSourceIndexByFilename[source.filename]];
|
|
1115
|
-
if (source.content.original !== uniqueSource.content) {
|
|
1116
|
-
throw new Error(`Illegal source: same filename (${source.filename}), different contents`);
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
this.sources.push(source);
|
|
1121
|
-
return this;
|
|
1122
|
-
}
|
|
1123
|
-
append(str, options) {
|
|
1124
|
-
this.addSource({
|
|
1125
|
-
content: new MagicString(str),
|
|
1126
|
-
separator: options && options.separator || ""
|
|
1127
|
-
});
|
|
1128
|
-
return this;
|
|
1129
|
-
}
|
|
1130
|
-
clone() {
|
|
1131
|
-
const bundle = new _Bundle({
|
|
1132
|
-
intro: this.intro,
|
|
1133
|
-
separator: this.separator
|
|
1134
|
-
});
|
|
1135
|
-
this.sources.forEach((source) => {
|
|
1136
|
-
bundle.addSource({
|
|
1137
|
-
filename: source.filename,
|
|
1138
|
-
content: source.content.clone(),
|
|
1139
|
-
separator: source.separator
|
|
1140
|
-
});
|
|
1141
|
-
});
|
|
1142
|
-
return bundle;
|
|
1143
|
-
}
|
|
1144
|
-
generateDecodedMap(options = {}) {
|
|
1145
|
-
const names = [];
|
|
1146
|
-
let x_google_ignoreList = void 0;
|
|
1147
|
-
this.sources.forEach((source) => {
|
|
1148
|
-
Object.keys(source.content.storedNames).forEach((name) => {
|
|
1149
|
-
if (!~names.indexOf(name)) names.push(name);
|
|
1150
|
-
});
|
|
1151
|
-
});
|
|
1152
|
-
const mappings = new Mappings(options.hires);
|
|
1153
|
-
if (this.intro) {
|
|
1154
|
-
mappings.advance(this.intro);
|
|
1155
|
-
}
|
|
1156
|
-
this.sources.forEach((source, i) => {
|
|
1157
|
-
if (i > 0) {
|
|
1158
|
-
mappings.advance(this.separator);
|
|
1159
|
-
}
|
|
1160
|
-
const sourceIndex = source.filename ? this.uniqueSourceIndexByFilename[source.filename] : -1;
|
|
1161
|
-
const magicString = source.content;
|
|
1162
|
-
const locate = getLocator(magicString.original);
|
|
1163
|
-
if (magicString.intro) {
|
|
1164
|
-
mappings.advance(magicString.intro);
|
|
1165
|
-
}
|
|
1166
|
-
magicString.firstChunk.eachNext((chunk) => {
|
|
1167
|
-
const loc = locate(chunk.start);
|
|
1168
|
-
if (chunk.intro.length) mappings.advance(chunk.intro);
|
|
1169
|
-
if (source.filename) {
|
|
1170
|
-
if (chunk.edited) {
|
|
1171
|
-
mappings.addEdit(
|
|
1172
|
-
sourceIndex,
|
|
1173
|
-
chunk.content,
|
|
1174
|
-
loc,
|
|
1175
|
-
chunk.storeName ? names.indexOf(chunk.original) : -1
|
|
1176
|
-
);
|
|
1177
|
-
} else {
|
|
1178
|
-
mappings.addUneditedChunk(
|
|
1179
|
-
sourceIndex,
|
|
1180
|
-
chunk,
|
|
1181
|
-
magicString.original,
|
|
1182
|
-
loc,
|
|
1183
|
-
magicString.sourcemapLocations
|
|
1184
|
-
);
|
|
1185
|
-
}
|
|
1186
|
-
} else {
|
|
1187
|
-
mappings.advance(chunk.content);
|
|
1188
|
-
}
|
|
1189
|
-
if (chunk.outro.length) mappings.advance(chunk.outro);
|
|
1190
|
-
});
|
|
1191
|
-
if (magicString.outro) {
|
|
1192
|
-
mappings.advance(magicString.outro);
|
|
1193
|
-
}
|
|
1194
|
-
if (source.ignoreList && sourceIndex !== -1) {
|
|
1195
|
-
if (x_google_ignoreList === void 0) {
|
|
1196
|
-
x_google_ignoreList = [];
|
|
1197
|
-
}
|
|
1198
|
-
x_google_ignoreList.push(sourceIndex);
|
|
1199
|
-
}
|
|
1200
|
-
});
|
|
1201
|
-
return {
|
|
1202
|
-
file: options.file ? options.file.split(/[/\\]/).pop() : void 0,
|
|
1203
|
-
sources: this.uniqueSources.map((source) => {
|
|
1204
|
-
return options.file ? getRelativePath(options.file, source.filename) : source.filename;
|
|
1205
|
-
}),
|
|
1206
|
-
sourcesContent: this.uniqueSources.map((source) => {
|
|
1207
|
-
return options.includeContent ? source.content : null;
|
|
1208
|
-
}),
|
|
1209
|
-
names,
|
|
1210
|
-
mappings: mappings.raw,
|
|
1211
|
-
x_google_ignoreList
|
|
1212
|
-
};
|
|
1213
|
-
}
|
|
1214
|
-
generateMap(options) {
|
|
1215
|
-
return new SourceMap(this.generateDecodedMap(options));
|
|
1216
|
-
}
|
|
1217
|
-
getIndentString() {
|
|
1218
|
-
const indentStringCounts = {};
|
|
1219
|
-
this.sources.forEach((source) => {
|
|
1220
|
-
const indentStr = source.content._getRawIndentString();
|
|
1221
|
-
if (indentStr === null) return;
|
|
1222
|
-
if (!indentStringCounts[indentStr]) indentStringCounts[indentStr] = 0;
|
|
1223
|
-
indentStringCounts[indentStr] += 1;
|
|
1224
|
-
});
|
|
1225
|
-
return Object.keys(indentStringCounts).sort((a, b) => {
|
|
1226
|
-
return indentStringCounts[a] - indentStringCounts[b];
|
|
1227
|
-
})[0] || " ";
|
|
1228
|
-
}
|
|
1229
|
-
indent(indentStr) {
|
|
1230
|
-
if (!arguments.length) {
|
|
1231
|
-
indentStr = this.getIndentString();
|
|
1232
|
-
}
|
|
1233
|
-
if (indentStr === "") return this;
|
|
1234
|
-
let trailingNewline = !this.intro || this.intro.slice(-1) === "\n";
|
|
1235
|
-
this.sources.forEach((source, i) => {
|
|
1236
|
-
const separator = source.separator !== void 0 ? source.separator : this.separator;
|
|
1237
|
-
const indentStart = trailingNewline || i > 0 && /\r?\n$/.test(separator);
|
|
1238
|
-
source.content.indent(indentStr, {
|
|
1239
|
-
exclude: source.indentExclusionRanges,
|
|
1240
|
-
indentStart
|
|
1241
|
-
//: trailingNewline || /\r?\n$/.test( separator ) //true///\r?\n/.test( separator )
|
|
1242
|
-
});
|
|
1243
|
-
trailingNewline = source.content.lastChar() === "\n";
|
|
1244
|
-
});
|
|
1245
|
-
if (this.intro) {
|
|
1246
|
-
this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match, index) => {
|
|
1247
|
-
return index > 0 ? indentStr + match : match;
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
return this;
|
|
1251
|
-
}
|
|
1252
|
-
prepend(str) {
|
|
1253
|
-
this.intro = str + this.intro;
|
|
1254
|
-
return this;
|
|
1255
|
-
}
|
|
1256
|
-
toString() {
|
|
1257
|
-
const body = this.sources.map((source, i) => {
|
|
1258
|
-
const separator = source.separator !== void 0 ? source.separator : this.separator;
|
|
1259
|
-
const str = (i > 0 ? separator : "") + source.content.toString();
|
|
1260
|
-
return str;
|
|
1261
|
-
}).join("");
|
|
1262
|
-
return this.intro + body;
|
|
1263
|
-
}
|
|
1264
|
-
isEmpty() {
|
|
1265
|
-
if (this.intro.length && this.intro.trim()) return false;
|
|
1266
|
-
if (this.sources.some((source) => !source.content.isEmpty())) return false;
|
|
1267
|
-
return true;
|
|
1268
|
-
}
|
|
1269
|
-
length() {
|
|
1270
|
-
return this.sources.reduce(
|
|
1271
|
-
(length, source) => length + source.content.length(),
|
|
1272
|
-
this.intro.length
|
|
1273
|
-
);
|
|
1274
|
-
}
|
|
1275
|
-
trimLines() {
|
|
1276
|
-
return this.trim("[\\r\\n]");
|
|
1277
|
-
}
|
|
1278
|
-
trim(charType) {
|
|
1279
|
-
return this.trimStart(charType).trimEnd(charType);
|
|
1280
|
-
}
|
|
1281
|
-
trimStart(charType) {
|
|
1282
|
-
const rx = new RegExp("^" + (charType || "\\s") + "+");
|
|
1283
|
-
this.intro = this.intro.replace(rx, "");
|
|
1284
|
-
if (!this.intro) {
|
|
1285
|
-
let source;
|
|
1286
|
-
let i = 0;
|
|
1287
|
-
do {
|
|
1288
|
-
source = this.sources[i++];
|
|
1289
|
-
if (!source) {
|
|
1290
|
-
break;
|
|
1291
|
-
}
|
|
1292
|
-
} while (!source.content.trimStartAborted(charType));
|
|
1293
|
-
}
|
|
1294
|
-
return this;
|
|
1295
|
-
}
|
|
1296
|
-
trimEnd(charType) {
|
|
1297
|
-
const rx = new RegExp((charType || "\\s") + "+$");
|
|
1298
|
-
let source;
|
|
1299
|
-
let i = this.sources.length - 1;
|
|
1300
|
-
do {
|
|
1301
|
-
source = this.sources[i--];
|
|
1302
|
-
if (!source) {
|
|
1303
|
-
this.intro = this.intro.replace(rx, "");
|
|
1304
|
-
break;
|
|
1305
|
-
}
|
|
1306
|
-
} while (!source.content.trimEndAborted(charType));
|
|
1307
|
-
return this;
|
|
1308
|
-
}
|
|
1309
|
-
};
|
|
1310
|
-
export {
|
|
1311
|
-
Bundle,
|
|
1312
|
-
SourceMap,
|
|
1313
|
-
MagicString as default
|
|
1314
|
-
};
|
|
1315
|
-
//# sourceMappingURL=magic-string.es-V5NOGTUV.js.map
|