@texonom/ncompat 1.3.1 → 1.4.1

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.
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../ntypes/build/core.d.ts","../../ntypes/build/block.d.ts","../../ntypes/build/formula.d.ts","../../ntypes/build/user.d.ts","../../ntypes/build/collection.d.ts","../../ntypes/build/collection-view.d.ts","../../ntypes/build/space.d.ts","../../ntypes/build/maps.d.ts","../../ntypes/build/api.d.ts","../../ntypes/build/index.d.ts","../src/convert-color.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@20.11.5/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/logging.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/api-endpoints.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/type-utils.d.ts","../../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/index.d.ts","../../../node_modules/.pnpm/@types+node-fetch@2.6.3/node_modules/@types/node-fetch/externals.d.ts","../../../node_modules/.pnpm/@types+node-fetch@2.6.3/node_modules/@types/node-fetch/index.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/fetch-types.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/client.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/errors.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/index.d.ts","../src/types.ts","../src/convert-rich-text.ts","../src/convert-time.ts","../src/convert-block.ts","../src/convert-page.ts","../../../node_modules/.pnpm/is-url-superb@6.1.0/node_modules/is-url-superb/index.d.ts","../../nutils/build/index.d.ts","../../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.d.ts","../../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/queue.d.ts","../../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/options.d.ts","../../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/priority-queue.d.ts","../../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/index.d.ts","../src/notion-compat-api.ts","../src/index.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","bed7b7ba0eb5a160b69af72814b4dde371968e40b6c5e73d3a9f7bee407d158c",{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"4350e5922fecd4bedda2964d69c213a1436349d0b8d260dd902795f5b94dc74b","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"d5a33c52d381fc00f5842490ffcf406e0f5b9dd801b016fadcb232bb4d347fdf","8ae7855cf16c0a899ad0bdbf0675480766197e05467a249b5ddf7dcf9ace7a56","57aa4c028ae9d74d0908fd24563ccf6ce4ad3ec4b836fcbd69974adce60eb895","d979abc48001c25784feecb34dba191ed2c33f8944f7bd7b077b464285586c12","b5a33c11d9bca76dad214b1f8cf8571ef5a0fc60eecbbfa8f6cf0b73c1183d20","b4e975657af1b37e99cac0753713e6425a16a7725790542838e9d48b0dd836b4","85334ca199cff2ab0bcec4f106a3e8350f71cf04b485f87e794dc7872ccd6db8","b5b0854bf636f74f63c1b714ee52e39b76f1fb7ccd29ac23894f004fca185f96","287324565a84f2c5b77f0ba62cf8aa8967e76ffe13aa4f05f56e8ed2a025c268","da90b2dfbb04735ed503d67065160c0f48cfe3ea26090093281b334f61b2cc88",{"version":"f064bf1ea7298b701404f73405c3aee8c60ea0ea759509b2a2708a685812b956","signature":"bd85421e5496b8a17dbf98ef7d90f96a7c0b99e005eee3a5e08222955330cd72"},"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"e2eb1ce13a9c0fa7ab62c63909d81973ef4b707292667c64f1e25e6e53fa7afa","affectsGlobalScope":true},"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","1b282e90846fada1e96dc1cf5111647d6ab5985c8d7b5c542642f1ea2739406d","bd3f5d05b6b5e4bfcea7739a45f3ffb4a7f4a3442ba7baf93e0200799285b8f1","4c775c2fccabf49483c03cd5e3673f87c1ffb6079d98e7b81089c3def79e29c6","8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"7ae9dc7dbb58cd843065639707815df85c044babaa0947116f97bdb824d07204","affectsGlobalScope":true},"7aae1df2053572c2cfc2089a77847aadbb38eedbaa837a846c6a49fb37c6e5bd","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","f1ace2d2f98429e007d017c7a445efad2aaebf8233135abdb2c88b8c0fef91ab","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"ea455cc68871b049bcecd9f56d4cf27b852d6dafd5e3b54468ca87cc11604e4d","affectsGlobalScope":true},"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"ae5507fc333d637dec9f37c6b3f4d423105421ea2820a64818de55db85214d66","affectsGlobalScope":true},{"version":"0666f4c99b8688c7be5956df8fecf5d1779d3b22f8f2a88258ae7072c7b6026f","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","54e854615c4eafbdd3fd7688bd02a3aafd0ccf0e87c98f79d3e9109f047ce6b8","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","7424817d5eb498771e6d1808d726ec38f75d2eaf3fa359edd5c0c540c52725c1","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"bddce945d552a963c9733db106b17a25474eefcab7fc990157a2134ef55d4954","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eefcdf86cefff36e5d87de36a3638ab5f7d16c2b68932be4a72c14bb924e43c1","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"4d0405568cf6e0ff36a4861c4a77e641366feaefa751600b0a4d12a5e8f730a8","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","8013f6c4d1632da8f1c4d3d702ae559acccd0f1be05360c31755f272587199c9",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","19917e33ccf4db083bf16b50db2fdb123623894cf77c2a47d389869b2560e9e6","0601cad2a3af1316b25bdbe103bbf437a7a51e433257712992fa57a622f9914f","77eb3900f9e40808534dd23741cfb0bbb1ec3c12e4f4c20fd2fd834961359319","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","c8a34d0c858532a9fab7f0b65f3cff6507df055a0cd8b965c4fd5667b5a0cf7d","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","750f6cf815e57a3bb99220de187559f7db691d4689a53447003646f16a521f99","9e47b6ae7f74ba6ca296f6d94046b9e194c15e64ccc0666522991de07605ed14","54b5acc11278d3f93d7b8e87cba553eb2e31f07dcb9d4bdd1a5e09c47c938710","5ce7aba0f36b9b6e5b93411d78c55027cf87e6370cbafad8a25fa9622066ee76",{"version":"77417f309dbe7c974e7970338d11fdfe964de0b042e8687aba89427a4e967374","signature":"9b91985b92a4a1f1da81b8bc163ac4bb2ac419661a77dbb242b1a2ddcb80eb9b"},{"version":"59384029f532de6a8c2634ac4ead02e70f8cd3885fa70fa7c07790308f0ba9b0","signature":"0b5fcf1a3577be19e1122a0eedaca81b20de1383e1ac803d6ab0fa5fb37c57f8"},{"version":"5fde20b6f28077cc40299297546d4848030915c15f0ed7010228aa4eb18e8bb7","signature":"77e3320fe1530f28fe258692bb56ee25636a3e67f370d7d1daac218e19fc611e"},{"version":"dd668b6fd3ab6e9f58b3782fbcb13cb4989fb8560da0dba76d539ddc3a7486aa","signature":"80179171737f47de624a451a0b9e364916725f3837b8a2578b7f623e40955568"},{"version":"5b88cc29fa28bd6c9c09ae5b78f3fc923ca0d253c1fefccaaf2e513f539f956b","signature":"49eb67287433e2b8e7a462b7f9bcd8fc0497177c22f639c851363139611d9b72"},"a87e5902fd92d16a80e0020ac03d6477bc2e7a6f5b0407a73aff6b7aa9e01d55","62beb46c2f89284fb22f743d01964f965e37c175d7a077844c16403098b3b6e6","27679e96d1bd38c5938178aaf4abe8627493090b63d6bae2ce8436e6a87ebe4d","136f00f14878a614113b221f2797dd7f5a7fb2220f95cbbbc390a85675f991c0","b04de4c5a5e9e0cc6b6b3d99b0e046705d9226fc384cb89c73014b2be4a84417","af4eea486904e256eb4e3a79c21355b9b065298952e9f2a0a921e8d75168f4a7","1841e57d29c33dd1798d82ceca05b7a95430b7976f14dabd4bcf81f6d114f235",{"version":"100bdd3b0302600d15a1e0357517f0c95fb6857927cd79b8faeb6c0d470009e3","signature":"5908fa14d06f9f8664ec694e188c6a8efd696a0035917293d1c440a6e4f7f8ae"},{"version":"cd0ba552fe26843c3139d9950a93ed3a1cab761ca71e500fd4c2a3f4dab7d823","signature":"6aa2d249dd2ab28c7791229f7692b348a8ac7f1a8ede53b5b4d5b8b6b78eb4f6"}],"root":[75,[172,176],184,185],"options":{"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":99,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../src","sourceMap":true,"strict":false,"target":2,"tsBuildInfoFile":"./.tsbuildinfo"},"fileIdsList":[[127,161,162,163,168],[168],[164,167],[162,169,170],[127,153,161,165,166],[76],[111],[112,117,145],[113,124,125,132,142,153],[113,114,124,132],[115,154],[116,117,125,133],[117,142,150],[118,120,124,132],[111,119],[120,121],[124],[122,124],[111,124],[124,125,126,142,153],[124,125,126,139,142,145],[109,112,158],[120,124,127,132,142,153],[124,125,127,128,132,142,150,153],[127,129,142,150,153],[76,77,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160],[124,130],[131,153,158],[120,124,132,142],[133],[134],[111,135],[136,152,158],[137],[138],[124,139,140],[139,141,154,156],[112,124,142,143,144,145],[112,142,144],[142,143],[145],[146],[111,142],[124,148,149],[148,149],[117,132,142,150],[151],[132,152],[112,127,138,153],[117,154],[142,155],[131,156],[157],[112,117,124,126,135,142,153,156,158],[142,159],[127,142,161],[179,180,181,182],[180],[180,181],[86,90,153],[86,142,153],[81],[83,86,150,153],[132,150],[161],[81,161],[83,86,132,153],[78,79,82,85,112,124,142,153],[78,84],[82,86,112,145,153,161],[112,161],[102,112,161],[80,81,161],[86],[80,81,82,83,84,85,86,87,88,90,91,92,93,94,95,96,97,98,99,100,101,103,104,105,106,107,108],[86,93,94],[84,86,94,95],[85],[78,81,86],[86,90,94,95],[90],[84,86,89,153],[78,83,84,86,90,93],[112,142],[81,86,102,112,158,161],[74,75,172,173,174],[74],[74,172,175],[74,75,172],[75,173,174,175,176,184],[74,171,172,176,178,183],[171],[72],[65],[65,67],[65,66,67,68,69,70,71,72,73],[65,66,68,69,70,71],[74,177],[74,172],[74,171,172]],"referencedMap":[[169,1],[170,2],[168,3],[171,4],[167,5],[76,6],[77,6],[111,7],[112,8],[113,9],[114,10],[115,11],[116,12],[117,13],[118,14],[119,15],[120,16],[121,16],[123,17],[122,18],[124,19],[125,20],[126,21],[110,22],[127,23],[128,24],[129,25],[161,26],[130,27],[131,28],[132,29],[133,30],[134,31],[135,32],[136,33],[137,34],[138,35],[139,36],[140,36],[141,37],[142,38],[144,39],[143,40],[145,41],[146,42],[147,43],[148,44],[149,45],[150,46],[151,47],[152,48],[153,49],[154,50],[155,51],[156,52],[157,53],[158,54],[159,55],[165,56],[183,57],[181,58],[182,59],[93,60],[100,61],[92,60],[107,62],[84,63],[83,64],[106,65],[101,66],[104,67],[86,68],[85,69],[81,70],[80,71],[103,72],[82,73],[87,74],[91,74],[109,75],[108,74],[95,76],[96,77],[98,78],[94,79],[97,80],[102,65],[89,81],[90,82],[99,83],[79,84],[105,85],[175,86],[75,87],[176,88],[173,89],[185,90],[184,91],[172,92],[73,93],[66,94],[70,94],[69,95],[67,94],[74,96],[72,97],[71,94],[68,94],[178,98]],"exportedModulesMap":[[169,1],[170,2],[168,3],[171,4],[167,5],[76,6],[77,6],[111,7],[112,8],[113,9],[114,10],[115,11],[116,12],[117,13],[118,14],[119,15],[120,16],[121,16],[123,17],[122,18],[124,19],[125,20],[126,21],[110,22],[127,23],[128,24],[129,25],[161,26],[130,27],[131,28],[132,29],[133,30],[134,31],[135,32],[136,33],[137,34],[138,35],[139,36],[140,36],[141,37],[142,38],[144,39],[143,40],[145,41],[146,42],[147,43],[148,44],[149,45],[150,46],[151,47],[152,48],[153,49],[154,50],[155,51],[156,52],[157,53],[158,54],[159,55],[165,56],[183,57],[181,58],[182,59],[93,60],[100,61],[92,60],[107,62],[84,63],[83,64],[106,65],[101,66],[104,67],[86,68],[85,69],[81,70],[80,71],[103,72],[82,73],[87,74],[91,74],[109,75],[108,74],[95,76],[96,77],[98,78],[94,79],[97,80],[102,65],[89,81],[90,82],[99,83],[79,84],[105,85],[175,99],[75,87],[176,99],[173,99],[185,90],[184,100],[172,92],[73,93],[66,94],[70,94],[69,95],[67,94],[74,96],[72,97],[71,94],[68,94],[178,98]],"semanticDiagnosticsPerFile":[163,169,170,168,171,162,164,166,167,76,77,111,112,113,114,115,116,117,118,119,120,121,123,122,124,125,126,110,160,127,128,129,161,130,131,132,133,134,135,136,137,138,139,140,141,142,144,143,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,179,165,177,183,181,182,180,63,64,12,14,13,2,15,16,17,18,19,20,21,22,3,4,23,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,53,54,57,55,56,58,59,10,1,11,62,61,60,93,100,92,107,84,83,106,101,104,86,85,81,80,103,82,87,88,91,78,109,108,95,96,98,94,97,102,89,90,99,79,105,175,75,176,173,174,185,184,172,73,66,70,69,65,67,74,72,71,68,178]},"version":"5.3.3"}
1
+ {"fileNames":["../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../ntypes/build/core.d.ts","../../ntypes/build/block.d.ts","../../ntypes/build/formula.d.ts","../../ntypes/build/user.d.ts","../../ntypes/build/collection.d.ts","../../ntypes/build/collection-view.d.ts","../../ntypes/build/space.d.ts","../../ntypes/build/maps.d.ts","../../ntypes/build/api.d.ts","../../ntypes/build/index.d.ts","../src/convert-color.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.9.1/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/logging.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/api-endpoints.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/type-utils.d.ts","../../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/index.d.ts","../../../node_modules/.pnpm/@types+node-fetch@2.6.3/node_modules/@types/node-fetch/externals.d.ts","../../../node_modules/.pnpm/@types+node-fetch@2.6.3/node_modules/@types/node-fetch/index.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/fetch-types.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/client.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/errors.d.ts","../../../node_modules/.pnpm/@notionhq+client@1.0.4/node_modules/@notionhq/client/build/src/index.d.ts","../src/types.ts","../src/convert-rich-text.ts","../src/convert-time.ts","../src/convert-block.ts","../src/convert-page.ts","../../../node_modules/.pnpm/is-url-superb@6.1.0/node_modules/is-url-superb/index.d.ts","../../nutils/build/index.d.ts","../../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.d.ts","../../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/queue.d.ts","../../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/options.d.ts","../../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/priority-queue.d.ts","../../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/index.d.ts","../src/notion-compat-api.ts","../src/index.ts"],"fileIdsList":[[94,136],[94,136,151,186,187,188,193],[94,136,193],[94,136,189,192],[94,136,187,194,195],[94,136,151,179,186,190,191],[94,133,136],[94,135,136],[136],[94,136,141,171],[94,136,137,142,148,149,156,168,179],[94,136,137,138,148,156],[89,90,91,94,136],[94,136,139,180],[94,136,140,141,149,157],[94,136,141,168,176],[94,136,142,144,148,156],[94,135,136,143],[94,136,144,145],[94,136,148],[94,136,146,148],[94,135,136,148],[94,136,148,149,150,168,179],[94,136,148,149,150,163,168,171],[94,131,136,184],[94,131,136,144,148,151,156,168,179],[94,136,148,149,151,152,156,168,176,179],[94,136,151,153,168,176,179],[92,93,94,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185],[94,136,148,154],[94,136,155,179,184],[94,136,144,148,156,168],[94,136,157],[94,136,158],[94,135,136,159],[94,133,134,135,136,137,138,139,140,141,142,143,144,145,146,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185],[94,136,161],[94,136,162],[94,136,148,163,164],[94,136,163,165,180,182],[94,136,148,168,169,170,171],[94,136,168,170],[94,136,168,169],[94,136,171],[94,136,172],[94,133,136,168],[94,136,148,174,175],[94,136,174,175],[94,136,141,156,168,176],[94,136,177],[94,136,156,178],[94,136,151,162,179],[94,136,141,180],[94,136,168,181],[94,136,155,182],[94,136,183],[94,136,141,148,150,159,168,179,182,184],[94,136,168,185],[94,136,151,168,186],[94,136,204,205,206,207],[94,136,205],[94,136,205,206],[94,103,107,136,179],[94,103,136,168,179],[94,98,136],[94,100,103,136,176,179],[94,136,156,176],[94,136,186],[94,98,136,186],[94,100,103,136,156,179],[94,95,96,99,102,136,148,168,179],[94,103,110,136],[94,95,101,136],[94,103,124,125,136],[94,99,103,136,171,179,186],[94,124,136,186],[94,97,98,136,186],[94,103,136],[94,97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,125,126,127,128,129,130,136],[94,103,118,136],[94,103,110,111,136],[94,101,103,111,112,136],[94,102,136],[94,95,98,103,136],[94,103,107,111,112,136],[94,107,136],[94,101,103,106,136,179],[94,95,100,103,110,136],[94,136,168],[94,98,103,124,136,184,186],[87,88,94,136,197,198,199],[87,94,136],[87,94,136,197,200],[87,88,94,136,197],[88,94,136,198,199,200,201,209],[87,94,136,188,196,197,201,203,208],[94,136,196],[85,94,136],[78,94,136],[78,80,94,136],[78,79,80,81,82,83,84,85,86,94,136],[78,79,81,82,83,84,94,136],[87,94,136,202]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"e12a46ce14b817d4c9e6b2b478956452330bf00c9801b79de46f7a1815b5bd40","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"d5a33c52d381fc00f5842490ffcf406e0f5b9dd801b016fadcb232bb4d347fdf","8ae7855cf16c0a899ad0bdbf0675480766197e05467a249b5ddf7dcf9ace7a56","57aa4c028ae9d74d0908fd24563ccf6ce4ad3ec4b836fcbd69974adce60eb895","d979abc48001c25784feecb34dba191ed2c33f8944f7bd7b077b464285586c12","b5a33c11d9bca76dad214b1f8cf8571ef5a0fc60eecbbfa8f6cf0b73c1183d20","b4e975657af1b37e99cac0753713e6425a16a7725790542838e9d48b0dd836b4","85334ca199cff2ab0bcec4f106a3e8350f71cf04b485f87e794dc7872ccd6db8","b5b0854bf636f74f63c1b714ee52e39b76f1fb7ccd29ac23894f004fca185f96","c8181c1b97d29f99d42b0a06110fdfd8fce4453cf9c6527eec52dcc255d4303a","da90b2dfbb04735ed503d67065160c0f48cfe3ea26090093281b334f61b2cc88",{"version":"f064bf1ea7298b701404f73405c3aee8c60ea0ea759509b2a2708a685812b956","signature":"bd85421e5496b8a17dbf98ef7d90f96a7c0b99e005eee3a5e08222955330cd72"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fd06258805d26c72f5997e07a23155d322d5f05387adb3744a791fe6a0b042d","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"81184fe8e67d78ac4e5374650f0892d547d665d77da2b2f544b5d84729c4a15d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f52e8dacc97d71dcc96af29e49584353f9c54cb916d132e3e768d8b8129c928d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"a76037255d4e7af8b20d191a4d3ad13236fba352239d3d9d54868a98dbb222f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"24642567d3729bcc545bacb65ee7c0db423400c7f1ef757cab25d05650064f98","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"875928df2f3e9a3aed4019539a15d04ff6140a06df6cd1b2feb836d22a81eaca","affectsGlobalScope":true,"impliedFormat":1},{"version":"e9ad08a376ac84948fcca0013d6f1d4ae4f9522e26b91f87945b97c99d7cc30b","impliedFormat":1},{"version":"f65eecc63138013d13fefea9092e83c3043cb52a5e351d22ea194e81021c1cd5","impliedFormat":1},{"version":"4617299caf33afef24b5e074e6d20ce8f510dd212cebd75884ef27c64457a77b","impliedFormat":1},{"version":"fa56be9b96f747e93b895d8dc2aa4fb9f0816743e6e2abb9d60705e88d4743a2","impliedFormat":1},{"version":"8257c55ff6bff6169142a35fce6811b511d857b4ae4f522cdb6ce20fd2116b2c","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"5990bd8b9bc91f6e90269685ff5a154eeda52c18238f89f0101fb4d08cd80476","affectsGlobalScope":true,"impliedFormat":1},{"version":"94c4187083503a74f4544503b5a30e2bd7af0032dc739b0c9a7ce87f8bddc7b9","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"3eb62baae4df08c9173e6903d3ca45942ccec8c3659b0565684a75f3292cffbb","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f6abdaf8764ef01a552a958f45e795b5e79153b87ddad3af5264b86d2681b72","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","impliedFormat":1},{"version":"a8f06c2382a30b7cb89ad2dfc48fc3b2b490f3dafcd839dadc008e4e5d57031d","impliedFormat":1},{"version":"553870e516f8c772b89f3820576152ebc70181d7994d96917bb943e37da7f8a7","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"918d3b03a75858dcd5dbb275f19448b6b9a222aa8fc8471aca38c28a32ecb40f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"6bd91a2a356600dee28eb0438082d0799a18a974a6537c4410a796bab749813c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a5c09990a37469b0311a92ce8feeb8682e83918723aedbd445bd7a0f510eaaa3","impliedFormat":1},{"version":"ae25afbbf1ed5df63a177d67b9048bf7481067f1b8dc9c39212e59db94fc9fc6","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"89332fc3cc945c8df2bc0aead55230430a0dabd3277c39a43315e00330de97a6","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"19917e33ccf4db083bf16b50db2fdb123623894cf77c2a47d389869b2560e9e6","impliedFormat":1},{"version":"0601cad2a3af1316b25bdbe103bbf437a7a51e433257712992fa57a622f9914f","impliedFormat":1},{"version":"77eb3900f9e40808534dd23741cfb0bbb1ec3c12e4f4c20fd2fd834961359319","impliedFormat":1},{"version":"736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","impliedFormat":1},{"version":"c8a34d0c858532a9fab7f0b65f3cff6507df055a0cd8b965c4fd5667b5a0cf7d","impliedFormat":1},{"version":"3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","impliedFormat":1},{"version":"750f6cf815e57a3bb99220de187559f7db691d4689a53447003646f16a521f99","impliedFormat":1},{"version":"9e47b6ae7f74ba6ca296f6d94046b9e194c15e64ccc0666522991de07605ed14","impliedFormat":1},{"version":"54b5acc11278d3f93d7b8e87cba553eb2e31f07dcb9d4bdd1a5e09c47c938710","impliedFormat":1},{"version":"5ce7aba0f36b9b6e5b93411d78c55027cf87e6370cbafad8a25fa9622066ee76","impliedFormat":1},{"version":"77417f309dbe7c974e7970338d11fdfe964de0b042e8687aba89427a4e967374","signature":"9b91985b92a4a1f1da81b8bc163ac4bb2ac419661a77dbb242b1a2ddcb80eb9b"},{"version":"59384029f532de6a8c2634ac4ead02e70f8cd3885fa70fa7c07790308f0ba9b0","signature":"0b5fcf1a3577be19e1122a0eedaca81b20de1383e1ac803d6ab0fa5fb37c57f8"},{"version":"5fde20b6f28077cc40299297546d4848030915c15f0ed7010228aa4eb18e8bb7","signature":"77e3320fe1530f28fe258692bb56ee25636a3e67f370d7d1daac218e19fc611e"},{"version":"dd668b6fd3ab6e9f58b3782fbcb13cb4989fb8560da0dba76d539ddc3a7486aa","signature":"80179171737f47de624a451a0b9e364916725f3837b8a2578b7f623e40955568"},{"version":"5b88cc29fa28bd6c9c09ae5b78f3fc923ca0d253c1fefccaaf2e513f539f956b","signature":"49eb67287433e2b8e7a462b7f9bcd8fc0497177c22f639c851363139611d9b72"},{"version":"a87e5902fd92d16a80e0020ac03d6477bc2e7a6f5b0407a73aff6b7aa9e01d55","impliedFormat":99},"6186b1939d2e3160843b31672f6dae9dadac94c40d94f7ead8e2bd579ce5a3c6",{"version":"27679e96d1bd38c5938178aaf4abe8627493090b63d6bae2ce8436e6a87ebe4d","impliedFormat":1},{"version":"136f00f14878a614113b221f2797dd7f5a7fb2220f95cbbbc390a85675f991c0","impliedFormat":99},{"version":"b04de4c5a5e9e0cc6b6b3d99b0e046705d9226fc384cb89c73014b2be4a84417","impliedFormat":99},{"version":"af4eea486904e256eb4e3a79c21355b9b065298952e9f2a0a921e8d75168f4a7","impliedFormat":99},{"version":"1841e57d29c33dd1798d82ceca05b7a95430b7976f14dabd4bcf81f6d114f235","impliedFormat":99},{"version":"9b1807f9e9e885ac4612193c573136332b3ddd1bf4c7d97e7e0bf6915fbdf8a8","signature":"a12d3437b675a36372909dd00648a7df21340db5c98910a4c530246f333c050b"},{"version":"cd0ba552fe26843c3139d9950a93ed3a1cab761ca71e500fd4c2a3f4dab7d823","signature":"6aa2d249dd2ab28c7791229f7692b348a8ac7f1a8ede53b5b4d5b8b6b78eb4f6"}],"root":[88,[197,201],209,210],"options":{"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":99,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../src","sourceMap":true,"strict":false,"target":2,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[188,1],[194,2],[195,3],[193,4],[196,5],[187,1],[189,1],[191,1],[192,6],[133,7],[134,7],[135,8],[94,9],[136,10],[137,11],[138,12],[89,1],[92,13],[90,1],[91,1],[139,14],[140,15],[141,16],[142,17],[143,18],[144,19],[145,19],[147,20],[146,21],[148,22],[149,23],[150,24],[132,25],[93,1],[151,26],[152,27],[153,28],[186,29],[154,30],[155,31],[156,32],[157,33],[158,34],[159,35],[160,36],[161,37],[162,38],[163,39],[164,39],[165,40],[166,1],[167,1],[168,41],[170,42],[169,43],[171,44],[172,45],[173,46],[174,47],[175,48],[176,49],[177,50],[178,51],[179,52],[180,53],[181,54],[182,55],[183,56],[184,57],[185,58],[204,1],[190,59],[202,1],[208,60],[206,61],[207,62],[205,1],[76,1],[77,1],[13,1],[15,1],[14,1],[2,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[3,1],[24,1],[25,1],[4,1],[26,1],[30,1],[27,1],[28,1],[29,1],[31,1],[32,1],[33,1],[5,1],[34,1],[35,1],[36,1],[37,1],[6,1],[41,1],[38,1],[39,1],[40,1],[42,1],[7,1],[43,1],[48,1],[49,1],[44,1],[45,1],[46,1],[47,1],[8,1],[53,1],[50,1],[51,1],[52,1],[54,1],[9,1],[55,1],[56,1],[57,1],[59,1],[58,1],[60,1],[61,1],[10,1],[62,1],[63,1],[64,1],[11,1],[65,1],[66,1],[67,1],[68,1],[69,1],[1,1],[70,1],[71,1],[12,1],[74,1],[73,1],[72,1],[75,1],[110,63],[120,64],[109,63],[130,65],[101,66],[100,67],[129,68],[123,69],[128,70],[103,71],[117,72],[102,73],[126,74],[98,75],[97,68],[127,76],[99,77],[104,78],[105,1],[108,78],[95,1],[131,79],[121,80],[112,81],[113,82],[115,83],[111,84],[114,85],[124,68],[106,86],[107,87],[116,88],[96,89],[119,80],[118,78],[122,1],[125,90],[200,91],[88,92],[201,93],[198,94],[199,1],[210,95],[209,96],[197,97],[86,98],[79,99],[83,99],[82,100],[78,1],[80,99],[87,101],[85,102],[84,99],[81,99],[203,103]],"version":"5.7.2"}
package/build/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{parsePageId as E}from"@texonom/nutils";import $ from"p-queue";function x(o){switch(o){case"green":return"teal";case"green_background":return"teal_background";default:return o}}function w(o){return o.map(S).filter(Boolean)}function S(o){var l;let t=[];o.annotations.bold&&t.push(["b"]),o.annotations.italic&&t.push(["i"]),o.annotations.strikethrough&&t.push(["s"]),o.annotations.underline&&t.push(["_"]),o.annotations.code&&t.push(["c"]),o.annotations.color!=="default"&&t.push(["h",x(o.annotations.color)]);let s=o[o.type];switch(s&&s.link&&t.push(["a",s.link.url]),o.type){case"text":return t.length?[o.text.content,t]:[o.text.content];case"equation":return(l=o.equation)!=null&&l.expression&&t.unshift(["e",o.equation.expression]),["\u204D",t];case"mention":{let{mention:p}=o;if(p)switch(p.type){case"link_preview":t.push(["a",p.link_preview.url]);break;case"page":return t.push(["p",p.page.id]),["\u2023",t];case"database":return t.push(["p",p.database.id]),["\u2023",t];case"date":t.unshift(["d",{type:"date",start_date:p.date.start,end_date:p.date.end,time_zone:p.date.time_zone}]);break;case"user":t.push(["u",p.user.id]);break;case"template_mention":break;default:break}return[o.plain_text,t]}default:return[""]}}function M(o){if(o)try{return new Date(o).getTime()}catch{}}function C({block:o,children:t=[],pageMap:s,blockMap:l,parentMap:p}){var m,d,n,B,f,u,h,k,P,g,b,_;let e={id:o.id};t&&t.length&&(e.content=t);let a=o;if(!a.type)return e;if(e.properties={},e.format={},e.type=a.type,e.created_time=M(a.created_time),e.last_edited_time=M(a.last_edited_time),a.created_by&&(e.created_by_table=`notion_${a.created_by.object}`,e.created_by_id=a.created_by.id),e.last_edited_by_table=(m=a.last_edited_by)==null?void 0:m.object,e.last_edited_by_id=(d=a.last_edited_by)==null?void 0:d.id,e.alive=a.archived!==!0,p){let r=p[a.id];if(r){e.parent_id=r;let c=l==null?void 0:l[r];if(c)switch(c.type){case"child_database":e.parent_table="table";break;case"child_page":default:e.parent_table="block";break}else(s==null?void 0:s[r])&&(e.parent_table="block")}}let i=a[a.type];if(i){if(i.rich_text&&(e.properties.title=w(i.rich_text)),i.color&&(e.format.block_color=x(i.color)),i.icon)switch(i.icon.type){case"emoji":e.format.page_icon=i.icon.emoji;break;case"external":e.format.page_icon=i.icon.external.url;break;case"file":e.format.page_icon=i.icon.file.url;break}if(i.type)switch(i.type){case"external":e.properties.source=[[i.external.url]];break;case"file":e.properties.source=[[i.file.url]];break}}switch(a.type){case"paragraph":e.type="text",(B=(n=a.paragraph)==null?void 0:n.rich_text)!=null&&B.length||delete e.properties;break;case"heading_1":e.type="header";break;case"heading_2":e.type="sub_header";break;case"heading_3":e.type="sub_sub_header";break;case"bulleted_list_item":e.type="bulleted_list";break;case"numbered_list_item":e.type="numbered_list";break;case"quote":break;case"to_do":(f=a.to_do)!=null&&f.checked&&(e.properties.checked=[["Yes"]]);break;case"toggle":break;case"code":a.code.language&&(e.properties.language=[[a.code.language]]);break;case"callout":break;case"file":break;case"divider":break;case"breadcrumb":break;case"table_of_contents":break;case"column_list":break;case"column":break;case"bookmark":a.bookmark.url&&(e.properties.link=[[a.bookmark.url]]),a.bookmark.caption&&(e.properties.description=w(a.bookmark.caption));break;case"link_to_page":switch(e.type="alias",(u=a.link_to_page)==null?void 0:u.type){case"page_id":e.format.alias_pointer={id:a.link_to_page.page_id,table:"block"};break;case"database_id":e.format.alias_pointer={id:a.link_to_page.database_id,table:"table"};break}break;case"child_page":{if(e.type="page",s){let r=s[a.id];if(r){if(r.properties.title&&(e.properties.title=w(r.properties.title.title)),r.cover){switch(r.cover.type){case"external":e.format.page_cover=r.cover.external.url;break;case"file":e.format.page_cover=r.cover.file.url;break}e.format.page_cover_position=.5}if(r.icon)switch(r.icon.type){case"emoji":e.format.page_icon=r.icon.emoji;break;case"external":e.format.page_icon=r.icon.external.url;break;case"file":e.format.page_icon=r.icon.file.url;break}if(r.parent)switch(r.parent.type){case"workspace":e.parent_table="space";break;case"database_id":e.parent_table="table";break;case"page_id":e.parent_table="block";break}}}a.child_page&&a.child_page.title&&(e.properties.title=[[a.child_page.title]]);break}case"template":break;case"synced_block":a.synced_block.synced_from?(e.type="transclusion_reference",e.format.transclusion_reference_pointer={id:a.synced_block.synced_from.block_id,table:"block"}):e.type="transclusion_container";break;case"equation":(h=a.equation)!=null&&h.expression&&(e.properties.title=[[a.equation.expression]]);break;case"child_database":break;case"table":i.table_width&&i.table_width>0&&(e.format.table_block_column_order=Array.from({length:i.table_width},(r,c)=>""+c),e.format.table_block_column_format=e.format.table_block_column_order.map(r=>({[r]:{}}))),i.has_column_header&&(e.format.table_block_column_header=i.has_column_header),i.has_row_header&&(e.format.table_block_row_header=i.has_row_header);break;case"table_row":e.properties={...(P=(k=a.table_row)==null?void 0:k.cells)==null?void 0:P.map(r=>w(r))};break;case"pdf":e.format.block_page_width=!0,e.format.block_height="80vh";break;case"video":{e.format.block_page_width=!0,e.format.block_aspect_ratio=.5620608899297423;try{let r=(b=(g=e.properties.source)==null?void 0:g[0])==null?void 0:b[0];if(!r)break;let c=new URL(r);switch(c.hostname){case"loom.com":case"www.loom.com":c.pathname=c.pathname.replace(/^\/share\//i,"/embed/"),e.format.display_source=c.toString();break}}catch{}break}case"embed":{let r=(_=a.embed)==null?void 0:_.url;if(e.format.block_page_width=!0,e.format.block_height="30vh",r){e.properties.source=[[r]];try{let c=new URL(r);switch(c.hostname){case"twitter.com":e.type="tweet",delete e.format;break;case"maps.google.com":e.type="maps";break;case"excalidraw.com":e.type="excalidraw";break;case"codepen.io":e.type="codepen";break;case"docs.google.com":case"drive.google.com":e.type="drive";break;case"figma.com":e.type="figma";break;case"open.spotify.com":if(c.pathname.includes("/embed/")||c.pathname.includes("/embed-podcast/"))break;c.pathname.startsWith("/playlist/")?c.pathname=`/embed${c.pathname}`:c.pathname.startsWith("/episode/")&&(c.pathname=`/embed-podcast${c.pathname}`),c.search="",e.format.display_source=c.toString();break;case"airtable.com":c.pathname.startsWith("/embed/")||(c.pathname=`/embed${c.pathname}`,e.format.display_source=c.toString());break;case"soundcloud.com":break}}catch{}}break}case"image":break;case"audio":break;case"link_preview":break;case"unsupported":break}return e}function j({pageId:o,blockMap:t,blockChildrenMap:s,pageMap:l,parentMap:p}){let e=Object.values(t).map(d=>C({block:d,children:s[d.id],pageMap:l,blockMap:t,parentMap:p})),a=q({pageId:o,blockMap:t,blockChildrenMap:s,pageMap:l,parentMap:p}),i=Object.keys(l).filter(d=>d!==o).map(d=>q({pageId:d,blockMap:t,blockChildrenMap:s,pageMap:l,parentMap:p}));return{block:[a,...e,...i].reduce((d,n)=>({...d,[n.id]:{type:"reader",value:n}}),{}),collection:{},collection_view:{},collection_query:{},signed_urls:{},notion_user:{}}}function q({pageId:o,blockMap:t,blockChildrenMap:s,pageMap:l,parentMap:p}){let a=l[o];return a?C({block:{...a,type:"child_page"},children:s[a.id],pageMap:l,blockMap:t,parentMap:p}):null}var D=class{constructor(t){this.client=t}async getPage(t){let s=E(t),[l,p,e]=await Promise.all([this.client.pages.retrieve({page_id:s}),this.client.blocks.retrieve({block_id:s}),this.getAllBlockChildren(s)]),{blockMap:a,blockChildrenMap:i,pageMap:m,parentMap:d}=await this.resolvePage(s),n=j({pageId:s,blockMap:a,blockChildrenMap:i,pageMap:m,parentMap:d});return n.raw={page:l,block:p,children:e},n}async resolvePage(t,{concurrency:s=4}={}){let l={},p={},e={},a={},i=new Set,m=new $({concurrency:s}),d=async(n,{shallow:B=!1}={})=>{!n||i.has(n)||(i.add(n),m.add(async()=>{var f,u,h;try{let k=l[n];if(k||(k=await this.client.blocks.retrieve({block_id:n}),l[n]=k),k.type==="child_page"){if(!p[n]){let b=await this.client.pages.retrieve({page_id:n});p[n]=b;let _=b;switch((f=_.parent)==null?void 0:f.type){case"page_id":d(_.parent.page_id,{shallow:!0}),e[n]||(e[n]=_.parent.page_id);break;case"database_id":d(_.parent.database_id,{shallow:!0}),e[n]||(e[n]=_.parent.database_id);break}}if(n!==t)return}if(B)return;let g=await this.getAllBlockChildren(n);a[n]=g.map(b=>b.id);for(let b of g){let _=b,r=l[b.id];if(!r||!r.type&&_.type){l[b.id]=_,e[b.id]=n;let c=_[_.type];if(c!=null&&c.rich_text){let R=c.rich_text.filter(y=>y.type==="mention");for(let y of R)switch((u=y.mention)==null?void 0:u.type){case"page":{let v=y.mention.page.id;d(v,{shallow:!0});break}case"database":{let v=y.mention.database.id;d(v,{shallow:!0});break}}}if(_.type==="link_to_page")switch((h=_.link_to_page)==null?void 0:h.type){case"page_id":d(_.link_to_page.page_id,{shallow:!0});break;case"database_id":d(_.link_to_page.database_id,{shallow:!0});break}_.has_children&&_.type!=="child_database"&&d(_.id)}}}catch(k){console.warn("failed resolving block",n,k.message)}finally{i.delete(n)}}))};return await d(t),await m.onIdle(),{blockMap:l,blockChildrenMap:a,pageMap:p,parentMap:e}}async getAllBlockChildren(t){let s=[],l;do{console.debug("blocks.children.list",{blockId:t,cursor:l});let p=await this.client.blocks.children.list({block_id:t,start_cursor:l});s=s.concat(p.results),l=p.next_cursor}while(l);return s}};export{D as NotionCompatAPI,C as convertBlock,x as convertColor,j as convertPage,q as convertPageBlock,w as convertRichText,S as convertRichTextItem,M as convertTime};
1
+ import{parsePageId as E}from"@texonom/nutils";import G from"p-queue";function P(r){switch(r){case"green":return"teal";case"green_background":return"teal_background";default:return r}}function w(r){return r.map(S).filter(Boolean)}function S(r){var l;let t=[];r.annotations.bold&&t.push(["b"]),r.annotations.italic&&t.push(["i"]),r.annotations.strikethrough&&t.push(["s"]),r.annotations.underline&&t.push(["_"]),r.annotations.code&&t.push(["c"]),r.annotations.color!=="default"&&t.push(["h",P(r.annotations.color)]);let s=r[r.type];switch(s&&s.link&&t.push(["a",s.link.url]),r.type){case"text":return t.length?[r.text.content,t]:[r.text.content];case"equation":return(l=r.equation)!=null&&l.expression&&t.unshift(["e",r.equation.expression]),["\u204D",t];case"mention":{let{mention:p}=r;if(p)switch(p.type){case"link_preview":t.push(["a",p.link_preview.url]);break;case"page":return t.push(["p",p.page.id]),["\u2023",t];case"database":return t.push(["p",p.database.id]),["\u2023",t];case"date":t.unshift(["d",{type:"date",start_date:p.date.start,end_date:p.date.end,time_zone:p.date.time_zone}]);break;case"user":t.push(["u",p.user.id]);break;case"template_mention":break;default:break}return[r.plain_text,t]}default:return[""]}}function M(r){if(r)try{return new Date(r).getTime()}catch{}}function C({block:r,children:t=[],pageMap:s,blockMap:l,parentMap:p}){var m,d,n,B,f,u,h,k,x,g,_,b;let e={id:r.id};t&&t.length&&(e.content=t);let a=r;if(!a.type)return e;if(e.properties={},e.format={},e.type=a.type,e.created_time=M(a.created_time),e.last_edited_time=M(a.last_edited_time),a.created_by&&(e.created_by_table=`notion_${a.created_by.object}`,e.created_by_id=a.created_by.id),e.last_edited_by_table=(m=a.last_edited_by)==null?void 0:m.object,e.last_edited_by_id=(d=a.last_edited_by)==null?void 0:d.id,e.alive=a.archived!==!0,p){let o=p[a.id];if(o){e.parent_id=o;let c=l==null?void 0:l[o];if(c)switch(c.type){case"child_database":e.parent_table="table";break;case"child_page":default:e.parent_table="block";break}else(s==null?void 0:s[o])&&(e.parent_table="block")}}let i=a[a.type];if(i){if(i.rich_text&&(e.properties.title=w(i.rich_text)),i.color&&(e.format.block_color=P(i.color)),i.icon)switch(i.icon.type){case"emoji":e.format.page_icon=i.icon.emoji;break;case"external":e.format.page_icon=i.icon.external.url;break;case"file":e.format.page_icon=i.icon.file.url;break}if(i.type)switch(i.type){case"external":e.properties.source=[[i.external.url]];break;case"file":e.properties.source=[[i.file.url]];break}}switch(a.type){case"paragraph":e.type="text",(B=(n=a.paragraph)==null?void 0:n.rich_text)!=null&&B.length||delete e.properties;break;case"heading_1":e.type="header";break;case"heading_2":e.type="sub_header";break;case"heading_3":e.type="sub_sub_header";break;case"bulleted_list_item":e.type="bulleted_list";break;case"numbered_list_item":e.type="numbered_list";break;case"quote":break;case"to_do":(f=a.to_do)!=null&&f.checked&&(e.properties.checked=[["Yes"]]);break;case"toggle":break;case"code":a.code.language&&(e.properties.language=[[a.code.language]]);break;case"callout":break;case"file":break;case"divider":break;case"breadcrumb":break;case"table_of_contents":break;case"column_list":break;case"column":break;case"bookmark":a.bookmark.url&&(e.properties.link=[[a.bookmark.url]]),a.bookmark.caption&&(e.properties.description=w(a.bookmark.caption));break;case"link_to_page":switch(e.type="alias",(u=a.link_to_page)==null?void 0:u.type){case"page_id":e.format.alias_pointer={id:a.link_to_page.page_id,table:"block"};break;case"database_id":e.format.alias_pointer={id:a.link_to_page.database_id,table:"table"};break}break;case"child_page":{if(e.type="page",s){let o=s[a.id];if(o){if(o.properties.title&&(e.properties.title=w(o.properties.title.title)),o.cover){switch(o.cover.type){case"external":e.format.page_cover=o.cover.external.url;break;case"file":e.format.page_cover=o.cover.file.url;break}e.format.page_cover_position=.5}if(o.icon)switch(o.icon.type){case"emoji":e.format.page_icon=o.icon.emoji;break;case"external":e.format.page_icon=o.icon.external.url;break;case"file":e.format.page_icon=o.icon.file.url;break}if(o.parent)switch(o.parent.type){case"workspace":e.parent_table="space";break;case"database_id":e.parent_table="table";break;case"page_id":e.parent_table="block";break}}}a.child_page&&a.child_page.title&&(e.properties.title=[[a.child_page.title]]);break}case"template":break;case"synced_block":a.synced_block.synced_from?(e.type="transclusion_reference",e.format.transclusion_reference_pointer={id:a.synced_block.synced_from.block_id,table:"block"}):e.type="transclusion_container";break;case"equation":(h=a.equation)!=null&&h.expression&&(e.properties.title=[[a.equation.expression]]);break;case"child_database":break;case"table":i.table_width&&i.table_width>0&&(e.format.table_block_column_order=Array.from({length:i.table_width},(o,c)=>""+c),e.format.table_block_column_format=e.format.table_block_column_order.map(o=>({[o]:{}}))),i.has_column_header&&(e.format.table_block_column_header=i.has_column_header),i.has_row_header&&(e.format.table_block_row_header=i.has_row_header);break;case"table_row":e.properties={...(x=(k=a.table_row)==null?void 0:k.cells)==null?void 0:x.map(o=>w(o))};break;case"pdf":e.format.block_page_width=!0,e.format.block_height="80vh";break;case"video":{e.format.block_page_width=!0,e.format.block_aspect_ratio=.5620608899297423;try{let o=(_=(g=e.properties.source)==null?void 0:g[0])==null?void 0:_[0];if(!o)break;let c=new URL(o);switch(c.hostname){case"loom.com":case"www.loom.com":c.pathname=c.pathname.replace(/^\/share\//i,"/embed/"),e.format.display_source=c.toString();break}}catch{}break}case"embed":{let o=(b=a.embed)==null?void 0:b.url;if(e.format.block_page_width=!0,e.format.block_height="30vh",o){e.properties.source=[[o]];try{let c=new URL(o);switch(c.hostname){case"twitter.com":e.type="tweet",delete e.format;break;case"maps.google.com":e.type="maps";break;case"excalidraw.com":e.type="excalidraw";break;case"codepen.io":e.type="codepen";break;case"docs.google.com":case"drive.google.com":e.type="drive";break;case"figma.com":e.type="figma";break;case"open.spotify.com":if(c.pathname.includes("/embed/")||c.pathname.includes("/embed-podcast/"))break;c.pathname.startsWith("/playlist/")?c.pathname=`/embed${c.pathname}`:c.pathname.startsWith("/episode/")&&(c.pathname=`/embed-podcast${c.pathname}`),c.search="",e.format.display_source=c.toString();break;case"airtable.com":c.pathname.startsWith("/embed/")||(c.pathname=`/embed${c.pathname}`,e.format.display_source=c.toString());break;case"soundcloud.com":break}}catch{}}break}case"image":break;case"audio":break;case"link_preview":break;case"unsupported":break}return e}function j({pageId:r,blockMap:t,blockChildrenMap:s,pageMap:l,parentMap:p}){let e=Object.values(t).map(d=>C({block:d,children:s[d.id],pageMap:l,blockMap:t,parentMap:p})),a=q({pageId:r,blockMap:t,blockChildrenMap:s,pageMap:l,parentMap:p}),i=Object.keys(l).filter(d=>d!==r).map(d=>q({pageId:d,blockMap:t,blockChildrenMap:s,pageMap:l,parentMap:p}));return{block:[a,...e,...i].reduce((d,n)=>({...d,[n.id]:{type:"reader",value:n}}),{}),collection:{},collection_view:{},collection_query:{},signed_urls:{},notion_user:{}}}function q({pageId:r,blockMap:t,blockChildrenMap:s,pageMap:l,parentMap:p}){let a=l[r];return a?C({block:{...a,type:"child_page"},children:s[a.id],pageMap:l,blockMap:t,parentMap:p}):null}var D=class{constructor(t){this.client=t}async getPage(t){let s=E(t),[l,p,e]=await Promise.all([this.client.pages.retrieve({page_id:s}),this.client.blocks.retrieve({block_id:s}),this.getAllBlockChildren(s)]),{blockMap:a,blockChildrenMap:i,pageMap:m,parentMap:d}=await this.resolvePage(s),n=j({pageId:s,blockMap:a,blockChildrenMap:i,pageMap:m,parentMap:d});return n.raw={page:l,block:p,children:e},n}async resolvePage(t,{concurrency:s=4}={}){let l={},p={},e={},a={},i=new Set,m=new G({concurrency:s}),d=async(n,{shallow:B=!1}={})=>{!n||i.has(n)||(i.add(n),m.add(async()=>{var f,u,h;try{let k=l[n];if(k||(k=await this.client.blocks.retrieve({block_id:n}),l[n]=k),k.type==="child_page"){if(!p[n]){let _=await this.client.pages.retrieve({page_id:n});p[n]=_;let b=_;switch((f=b.parent)==null?void 0:f.type){case"page_id":d(b.parent.page_id,{shallow:!0}),e[n]||(e[n]=b.parent.page_id);break;case"database_id":d(b.parent.database_id,{shallow:!0}),e[n]||(e[n]=b.parent.database_id);break}}if(n!==t)return}if(B)return;let g=await this.getAllBlockChildren(n);a[n]=g.map(_=>_.id);for(let _ of g){let b=_,o=l[_.id];if(!o||!o.type&&b.type){l[_.id]=b,e[_.id]=n;let c=b[b.type];if(c!=null&&c.rich_text){let R=c.rich_text.filter(y=>y.type==="mention");for(let y of R)switch((u=y.mention)==null?void 0:u.type){case"page":{let v=y.mention.page.id;d(v,{shallow:!0});break}case"database":{let v=y.mention.database.id;d(v,{shallow:!0});break}}}if(b.type==="link_to_page")switch((h=b.link_to_page)==null?void 0:h.type){case"page_id":d(b.link_to_page.page_id,{shallow:!0});break;case"database_id":d(b.link_to_page.database_id,{shallow:!0});break}b.has_children&&b.type!=="child_database"&&d(b.id)}}}catch(k){console.warn("failed resolving block",n,k.message)}finally{i.delete(n)}}))};return await d(t),await m.onIdle(),{blockMap:l,blockChildrenMap:a,pageMap:p,parentMap:e}}async getAllBlockChildren(t){let s=[],l;do{console.debug("blocks.children.list",{blockId:t,cursor:l});let p=await this.client.blocks.children.list({block_id:t,start_cursor:l});s=s.concat(p.results),l=p.next_cursor}while(l);return s}};export{D as NotionCompatAPI,C as convertBlock,P as convertColor,j as convertPage,q as convertPageBlock,w as convertRichText,S as convertRichTextItem,M as convertTime};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/notion-compat-api.ts","../src/convert-color.ts","../src/convert-rich-text.ts","../src/convert-time.ts","../src/convert-block.ts","../src/convert-page.ts"],"sourcesContent":["import type { Client } from '@notionhq/client'\nimport { parsePageId } from '@texonom/nutils'\nimport PQueue from 'p-queue'\n\nimport { convertPage } from './convert-page'\n\nimport type { BlockMap, PageMap, ParentMap, BlockChildrenMap, Block, Page, BlockChildren } from './types'\nimport type { ExtendedRecordMap } from '@texonom/ntypes'\nexport class NotionCompatAPI {\n client: Client\n\n constructor(client: Client) {\n this.client = client\n }\n\n public async getPage(rawPageId: string): Promise<ExtendedRecordMap> {\n const pageId = parsePageId(rawPageId)\n\n const [page, block, children] = await Promise.all([\n this.client.pages.retrieve({ page_id: pageId }),\n this.client.blocks.retrieve({ block_id: pageId }),\n this.getAllBlockChildren(pageId)\n ])\n const { blockMap, blockChildrenMap, pageMap, parentMap } = await this.resolvePage(pageId)\n\n const recordMap = convertPage({\n pageId,\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n })\n\n ;(recordMap as any).raw = {\n page,\n block,\n children\n }\n\n return recordMap\n }\n\n async resolvePage(\n rootBlockId: string,\n {\n concurrency = 4\n }: {\n concurrency?: number\n } = {}\n ) {\n const blockMap: BlockMap = {}\n const pageMap: PageMap = {}\n const parentMap: ParentMap = {}\n const blockChildrenMap: BlockChildrenMap = {}\n const pendingBlockIds = new Set<string>()\n const queue = new PQueue({ concurrency })\n\n const processBlock = async (blockId: string, { shallow = false }: { shallow?: boolean } = {}) => {\n if (!blockId || pendingBlockIds.has(blockId)) return\n\n pendingBlockIds.add(blockId)\n queue.add(async () => {\n try {\n let partialBlock = blockMap[blockId]\n if (!partialBlock) {\n partialBlock = await this.client.blocks.retrieve({\n block_id: blockId\n })\n blockMap[blockId] = partialBlock\n }\n\n const block = partialBlock as Block\n if (block.type === 'child_page') {\n if (!pageMap[blockId]) {\n const partialPage = await this.client.pages.retrieve({\n page_id: blockId\n })\n\n pageMap[blockId] = partialPage\n\n const page = partialPage as Page\n switch (page.parent?.type) {\n case 'page_id':\n processBlock(page.parent.page_id, {\n shallow: true\n })\n if (!parentMap[blockId]) parentMap[blockId] = page.parent.page_id\n\n break\n\n case 'database_id':\n processBlock(page.parent.database_id, {\n shallow: true\n })\n if (!parentMap[blockId]) parentMap[blockId] = page.parent.database_id\n\n break\n }\n }\n\n if (blockId !== rootBlockId)\n // don't fetch children or recurse on subpages\n return\n }\n\n if (shallow) return\n\n const children = await this.getAllBlockChildren(blockId)\n blockChildrenMap[blockId] = children.map(child => child.id)\n\n for (const child of children) {\n const childBlock = child as Block\n const mappedChildBlock = blockMap[child.id] as Block\n if (!mappedChildBlock || (!mappedChildBlock.type && childBlock.type)) {\n blockMap[child.id] = childBlock\n parentMap[child.id] = blockId\n\n const details = childBlock[childBlock.type]\n if (details?.rich_text) {\n const richTextMentions = details.rich_text.filter(richTextItem => richTextItem.type === 'mention')\n\n for (const richTextMention of richTextMentions)\n switch (richTextMention.mention?.type) {\n case 'page': {\n const pageId = richTextMention.mention.page.id\n processBlock(pageId, { shallow: true })\n break\n }\n\n case 'database': {\n const databaseId = richTextMention.mention.database.id\n processBlock(databaseId, { shallow: true })\n break\n }\n }\n }\n\n if (childBlock.type === 'link_to_page')\n switch (childBlock.link_to_page?.type) {\n case 'page_id':\n processBlock(childBlock.link_to_page.page_id, {\n shallow: true\n })\n break\n\n case 'database_id':\n processBlock(childBlock.link_to_page.database_id, {\n shallow: true\n })\n break\n }\n\n if (childBlock.has_children && childBlock.type !== 'child_database') processBlock(childBlock.id)\n }\n }\n } catch (err) {\n console.warn('failed resolving block', blockId, err.message)\n } finally {\n pendingBlockIds.delete(blockId)\n }\n })\n }\n\n await processBlock(rootBlockId)\n await queue.onIdle()\n\n return {\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n }\n }\n\n async getAllBlockChildren(blockId: string) {\n let blocks: BlockChildren = []\n let cursor: string\n\n do {\n console.debug('blocks.children.list', { blockId, cursor })\n const res = await this.client.blocks.children.list({\n block_id: blockId,\n start_cursor: cursor\n })\n\n blocks = blocks.concat(res.results)\n cursor = res.next_cursor\n } while (cursor)\n\n return blocks\n }\n}\n","import type { Color } from '@texonom/ntypes'\n\nexport function convertColor(color: string): Color {\n switch (color) {\n case 'green':\n return 'teal'\n\n case 'green_background':\n return 'teal_background'\n\n default:\n return color as Color\n }\n}\n","import { convertColor } from './convert-color'\n\nimport type { SubDecoration, Decoration } from '@texonom/ntypes'\nimport type { RichText, RichTextItem } from './types'\n\nexport function convertRichText(richText: RichText): Decoration[] {\n return richText.map(convertRichTextItem).filter(Boolean)\n}\n\nexport function convertRichTextItem(richTextItem: RichTextItem): Decoration {\n const subdecorations: SubDecoration[] = []\n\n if (richTextItem.annotations.bold) subdecorations.push(['b'])\n if (richTextItem.annotations.italic) subdecorations.push(['i'])\n if (richTextItem.annotations.strikethrough) subdecorations.push(['s'])\n if (richTextItem.annotations.underline) subdecorations.push(['_'])\n if (richTextItem.annotations.code) subdecorations.push(['c'])\n if (richTextItem.annotations.color !== 'default') subdecorations.push(['h', convertColor(richTextItem.annotations.color)])\n\n const details = richTextItem[richTextItem.type]\n if (details) if (details.link) subdecorations.push(['a', details.link.url])\n\n switch (richTextItem.type) {\n case 'text':\n if (subdecorations.length) return [richTextItem.text.content, subdecorations]\n else return [richTextItem.text.content]\n\n case 'equation':\n if (richTextItem.equation?.expression) subdecorations.unshift(['e', richTextItem.equation.expression])\n return ['⁍', subdecorations]\n\n case 'mention': {\n const { mention } = richTextItem\n\n if (mention)\n switch (mention.type) {\n case 'link_preview':\n // TODO: this should be an eoi, but we don't hae the proper data\n subdecorations.push(['a', mention.link_preview.url])\n break\n\n case 'page':\n subdecorations.push(['p', mention.page.id])\n return ['‣', subdecorations]\n\n case 'database':\n subdecorations.push(['p', mention.database.id])\n return ['‣', subdecorations]\n\n case 'date':\n subdecorations.unshift([\n 'd',\n {\n type: 'date', // TODO\n start_date: mention.date.start,\n end_date: mention.date.end,\n time_zone: mention.date.time_zone\n }\n ])\n break\n\n case 'user':\n subdecorations.push(['u', mention.user.id])\n break\n\n case 'template_mention':\n // TODO\n // subdecorations.push(['m', mention.template_mention.type])\n break\n\n default:\n // TODO\n break\n }\n\n return [richTextItem.plain_text, subdecorations]\n }\n\n default:\n return ['']\n }\n}\n","export function convertTime(time?: string): number | undefined {\n if (time)\n try {\n return new Date(time).getTime()\n } catch {\n // ignore invalid time strings\n }\n\n return undefined\n}\n","import { convertColor } from './convert-color'\nimport { convertRichText } from './convert-rich-text'\nimport { convertTime } from './convert-time'\n\nimport type { BaseBlock, Block as BlockType } from '@texonom/ntypes'\nimport type { PartialBlock, PageMap, BlockMap, ParentMap, Block, Page } from './types'\n\nexport function convertBlock({\n block: partialBlock,\n children = [],\n pageMap,\n blockMap,\n parentMap\n}: {\n block: PartialBlock\n children?: string[]\n pageMap?: PageMap\n blockMap?: BlockMap\n parentMap?: ParentMap\n}): BlockType {\n const compatBlock: Partial<BaseBlock> = {\n id: partialBlock.id\n }\n\n if (children && children.length) compatBlock.content = children\n\n const block = partialBlock as Block\n if (!block.type) return compatBlock as BlockType\n\n compatBlock.properties = {}\n compatBlock.format = {}\n compatBlock.type = block.type\n compatBlock.created_time = convertTime(block.created_time)\n compatBlock.last_edited_time = convertTime(block.last_edited_time)\n if (block.created_by) {\n compatBlock.created_by_table = `notion_${block.created_by.object}`\n compatBlock.created_by_id = block.created_by.id\n }\n compatBlock.last_edited_by_table = block.last_edited_by?.object\n compatBlock.last_edited_by_id = block.last_edited_by?.id\n compatBlock.alive = block.archived !== true\n\n if (parentMap) {\n const parentId = parentMap[block.id]\n\n if (parentId) {\n compatBlock.parent_id = parentId\n const parentBlock = blockMap?.[parentId] as Block\n if (parentBlock) {\n switch (parentBlock.type) {\n case 'child_database':\n compatBlock.parent_table = 'table'\n break\n case 'child_page':\n // fallthrough\n default:\n compatBlock.parent_table = 'block'\n break\n }\n } else {\n const parentPage = pageMap?.[parentId] as Page\n if (parentPage) compatBlock.parent_table = 'block'\n }\n }\n }\n\n const blockDetails = block[block.type]\n if (blockDetails) {\n if (blockDetails.rich_text) compatBlock.properties.title = convertRichText(blockDetails.rich_text)\n\n if (blockDetails.color) compatBlock.format.block_color = convertColor(blockDetails.color)\n\n if (blockDetails.icon)\n switch (blockDetails.icon.type) {\n case 'emoji':\n compatBlock.format.page_icon = blockDetails.icon.emoji\n break\n\n case 'external':\n compatBlock.format.page_icon = blockDetails.icon.external.url\n break\n\n case 'file':\n compatBlock.format.page_icon = blockDetails.icon.file.url\n break\n }\n\n if (blockDetails.type)\n switch (blockDetails.type) {\n case 'external':\n compatBlock.properties.source = [[blockDetails.external.url]]\n break\n\n case 'file':\n compatBlock.properties.source = [[blockDetails.file.url]]\n break\n }\n }\n\n switch (block.type) {\n case 'paragraph':\n compatBlock.type = 'text'\n if (!block.paragraph?.rich_text?.length) delete compatBlock.properties\n\n break\n\n case 'heading_1':\n compatBlock.type = 'header'\n break\n\n case 'heading_2':\n compatBlock.type = 'sub_header'\n break\n\n case 'heading_3':\n compatBlock.type = 'sub_sub_header'\n break\n\n case 'bulleted_list_item':\n compatBlock.type = 'bulleted_list'\n break\n\n case 'numbered_list_item':\n compatBlock.type = 'numbered_list'\n break\n\n case 'quote':\n // no-op\n break\n\n case 'to_do':\n if (block.to_do?.checked) compatBlock.properties.checked = [['Yes']]\n\n break\n\n case 'toggle':\n // no-op\n break\n\n case 'code':\n if (block.code.language) compatBlock.properties.language = [[block.code.language]]\n break\n\n case 'callout':\n // no-op\n break\n\n case 'file':\n // no-op\n break\n\n case 'divider':\n // no-op\n break\n\n case 'breadcrumb':\n // TODO\n break\n\n case 'table_of_contents':\n // no-op\n break\n\n case 'column_list':\n // no-op\n break\n\n case 'column':\n // no-op\n break\n\n case 'bookmark':\n if (block.bookmark.url) compatBlock.properties.link = [[block.bookmark.url]]\n\n if (block.bookmark.caption) compatBlock.properties.description = convertRichText(block.bookmark.caption)\n\n break\n\n case 'link_to_page':\n compatBlock.type = 'alias'\n switch (block.link_to_page?.type) {\n case 'page_id':\n compatBlock.format.alias_pointer = {\n id: block.link_to_page.page_id,\n table: 'block'\n }\n break\n\n case 'database_id':\n compatBlock.format.alias_pointer = {\n id: block.link_to_page.database_id,\n table: 'table'\n }\n break\n }\n break\n\n case 'child_page': {\n compatBlock.type = 'page'\n\n if (pageMap) {\n const page = pageMap[block.id] as Page\n if (page) {\n if (page.properties.title) compatBlock.properties.title = convertRichText((page.properties.title as any).title)\n\n if (page.cover) {\n switch (page.cover.type) {\n case 'external':\n compatBlock.format.page_cover = page.cover.external.url\n break\n\n case 'file':\n compatBlock.format.page_cover = page.cover.file.url\n break\n }\n\n // TODO\n compatBlock.format.page_cover_position = 0.5\n }\n\n if (page.icon)\n switch (page.icon.type) {\n case 'emoji':\n compatBlock.format.page_icon = page.icon.emoji\n break\n\n case 'external':\n compatBlock.format.page_icon = page.icon.external.url\n break\n\n case 'file':\n compatBlock.format.page_icon = page.icon.file.url\n break\n }\n\n if (page.parent)\n switch (page.parent.type) {\n case 'workspace':\n compatBlock.parent_table = 'space'\n break\n\n case 'database_id':\n compatBlock.parent_table = 'table'\n break\n\n case 'page_id':\n compatBlock.parent_table = 'block'\n break\n }\n }\n }\n\n if (block.child_page) if (block.child_page.title) compatBlock.properties.title = [[block.child_page.title]]\n\n break\n }\n\n case 'template':\n // TODO\n break\n\n case 'synced_block':\n if (block.synced_block.synced_from) {\n // TODO: handle block.synced_block.synced_from.type for non-block types\n compatBlock.type = 'transclusion_reference'\n compatBlock.format.transclusion_reference_pointer = {\n id: block.synced_block.synced_from.block_id,\n table: 'block'\n }\n } else {\n compatBlock.type = 'transclusion_container'\n }\n break\n\n case 'equation':\n if (block.equation?.expression) compatBlock.properties.title = [[block.equation.expression]]\n\n break\n\n case 'child_database':\n // TODO\n break\n\n case 'table':\n if (blockDetails.table_width && blockDetails.table_width > 0) {\n // There is no API to get the column ID. Used the index instead.\n compatBlock.format.table_block_column_order = Array.from({ length: blockDetails.table_width }, (_, i) => '' + i)\n compatBlock.format.table_block_column_format = compatBlock.format.table_block_column_order.map(order => {\n return {\n [order]: {\n // TODO: The SimpleTable column has no width and color. API is not supported.\n // width: 155,\n // color:\n }\n }\n })\n }\n if (blockDetails.has_column_header) compatBlock.format.table_block_column_header = blockDetails.has_column_header\n\n if (blockDetails.has_row_header) compatBlock.format.table_block_row_header = blockDetails.has_row_header\n\n break\n\n case 'table_row':\n compatBlock.properties = {\n ...block.table_row?.cells?.map(cell => convertRichText(cell))\n }\n break\n\n case 'pdf':\n // TODO: formatting\n compatBlock.format.block_page_width = true\n compatBlock.format.block_height = '80vh'\n break\n\n case 'video': {\n // TODO: formatting\n compatBlock.format.block_page_width = true\n compatBlock.format.block_aspect_ratio = 0.5620608899297423\n\n try {\n const url = compatBlock.properties.source?.[0]?.[0]\n\n if (!url) break\n const u = new URL(url)\n\n switch (u.hostname) {\n case 'loom.com':\n case 'www.loom.com':\n u.pathname = u.pathname.replace(/^\\/share\\//i, '/embed/')\n compatBlock.format.display_source = u.toString()\n break\n }\n } catch {\n // ignore invalid urls\n }\n break\n }\n\n case 'embed': {\n // TODO: embedding really needs to use some sort of externaly embed API like\n // embedly or microlinkhq. Currently, many embed use cases will not work or\n // display properly.\n const url = block.embed?.url\n\n // TODO: formatting\n compatBlock.format.block_page_width = true\n compatBlock.format.block_height = '30vh'\n\n if (url) {\n compatBlock.properties.source = [[url]]\n\n try {\n const u = new URL(url)\n\n switch (u.hostname) {\n case 'twitter.com':\n compatBlock.type = 'tweet'\n delete compatBlock.format\n break\n\n case 'maps.google.com':\n compatBlock.type = 'maps'\n break\n\n case 'excalidraw.com':\n compatBlock.type = 'excalidraw'\n break\n\n case 'codepen.io':\n compatBlock.type = 'codepen'\n break\n\n case 'docs.google.com':\n // fallthrough\n case 'drive.google.com':\n compatBlock.type = 'drive'\n\n // TODO: fetch drive_properties\n break\n\n case 'figma.com':\n compatBlock.type = 'figma'\n break\n\n case 'open.spotify.com':\n if (u.pathname.includes('/embed/') || u.pathname.includes('/embed-podcast/')) break\n\n if (u.pathname.startsWith('/playlist/')) u.pathname = `/embed${u.pathname}`\n else if (u.pathname.startsWith('/episode/')) u.pathname = `/embed-podcast${u.pathname}`\n\n u.search = ''\n compatBlock.format.display_source = u.toString()\n break\n\n case 'airtable.com':\n if (!u.pathname.startsWith('/embed/')) {\n u.pathname = `/embed${u.pathname}`\n compatBlock.format.display_source = u.toString()\n }\n break\n\n case 'soundcloud.com':\n // TODO\n break\n }\n } catch {\n // ignore invalid urls\n }\n }\n break\n }\n\n case 'image':\n // no-op\n // TODO: handle formatting\n break\n\n case 'audio':\n // no-op\n break\n\n case 'link_preview':\n // TODO\n break\n\n case 'unsupported':\n // no-op\n break\n }\n\n return compatBlock as BlockType\n}\n","import { convertBlock } from './convert-block'\n\nimport type { ExtendedRecordMap, Block as BlockType } from '@texonom/ntypes'\nimport type { PageMap, BlockMap, BlockChildrenMap, ParentMap, Page, Block } from './types'\n\nexport function convertPage({\n pageId,\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n}: {\n pageId: string\n blockMap: BlockMap\n blockChildrenMap: BlockChildrenMap\n pageMap: PageMap\n parentMap: ParentMap\n}): ExtendedRecordMap {\n const compatBlocks = Object.values(blockMap).map(block =>\n convertBlock({\n block,\n children: blockChildrenMap[block.id],\n pageMap,\n blockMap,\n parentMap\n })\n )\n\n const compatPageBlock = convertPageBlock({\n pageId,\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n })\n\n const compatPageBlocks = Object.keys(pageMap)\n .filter(id => id !== pageId)\n .map(id =>\n convertPageBlock({\n pageId: id,\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n })\n )\n\n const compatBlockMap = [compatPageBlock, ...compatBlocks, ...compatPageBlocks].reduce(\n (blockMap, block) => ({\n ...blockMap,\n [block.id]: {\n type: 'reader',\n value: block\n }\n }),\n {}\n )\n\n return {\n block: compatBlockMap,\n collection: {},\n collection_view: {},\n collection_query: {},\n signed_urls: {},\n notion_user: {}\n }\n}\n\nexport function convertPageBlock({\n pageId,\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n}: {\n pageId: string\n blockMap: BlockMap\n blockChildrenMap: BlockChildrenMap\n pageMap: PageMap\n parentMap: ParentMap\n}): BlockType | null {\n const partialPage = pageMap[pageId]\n const page = partialPage as Page\n\n if (page) {\n const compatPageBlock = convertBlock({\n block: { ...page, type: 'child_page' } as unknown as Block,\n children: blockChildrenMap[page.id],\n pageMap,\n blockMap,\n parentMap\n })\n\n return compatPageBlock\n }\n\n return null\n}\n"],"mappings":"AACA,OAAS,eAAAA,MAAmB,kBAC5B,OAAOC,MAAY,UCAZ,SAASC,EAAaC,EAAs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EAAiB,CACzC,IAAIgB,EAAwB,CAAC,EACzBC,EAEJ,EAAG,CACD,QAAQ,MAAM,uBAAwB,CAAE,QAAAjB,EAAS,OAAAiB,CAAO,CAAC,EACzD,IAAMC,EAAM,MAAM,KAAK,OAAO,OAAO,SAAS,KAAK,CACjD,SAAUlB,EACV,aAAciB,CAChB,CAAC,EAEDD,EAASA,EAAO,OAAOE,EAAI,OAAO,EAClCD,EAASC,EAAI,WACf,OAASD,GAET,OAAOD,CACT,CACF","names":["parsePageId","PQueue","convertColor","color","convertRichText","richText","convertRichTextItem","richTextItem","_a","subdecorations","convertColor","details","mention","convertTime","time","convertBlock","partialBlock","children","pageMap","blockMap","parentMap","_a","_b","_c","_d","_e","_f","_g","_h","_i","_j","_k","_l","compatBlock","block","convertTime","parentId","parentBlock","blockDetails","convertRichText","convertColor","page","_","i","order","cell","url","u","convertPage","pageId","blockMap","blockChildrenMap","pageMap","parentMap","compatBlocks","block","convertBlock","compatPageBlock","convertPageBlock","compatPageBlocks","id","page","NotionCompatAPI","client","rawPageId","pageId","parsePageId","page","block","children","blockMap","blockChildrenMap","pageMap","parentMap","recordMap","convertPage","rootBlockId","concurrency","pendingBlockIds","queue","PQueue","processBlock","blockId","shallow","_a","_b","_c","partialBlock","partialPage","child","childBlock","mappedChildBlock","details","richTextMentions","richTextItem","richTextMention","databaseId","err","blocks","cursor","res"]}
1
+ {"version":3,"sources":["../src/notion-compat-api.ts","../src/convert-color.ts","../src/convert-rich-text.ts","../src/convert-time.ts","../src/convert-block.ts","../src/convert-page.ts"],"sourcesContent":["import type { Client } from '@notionhq/client'\nimport { parsePageId } from '@texonom/nutils'\nimport PQueue from 'p-queue'\n\nimport { convertPage } from './convert-page'\n\nimport type { BlockMap, PageMap, ParentMap, BlockChildrenMap, Block, Page, BlockChildren } from './types'\nimport type { ExtendedRecordMap } from '@texonom/ntypes'\nimport type { GetBlockResponse, GetPageResponse } from '@notionhq/client/build/src/api-endpoints'\n\nexport class NotionCompatAPI {\n client: Client\n\n constructor(client: Client) {\n this.client = client\n }\n\n public async getPage(rawPageId: string): Promise<ExtendedRecordMap> {\n const pageId = parsePageId(rawPageId)\n\n const [page, block, children] = await Promise.all([\n this.client.pages.retrieve({ page_id: pageId }),\n this.client.blocks.retrieve({ block_id: pageId }),\n this.getAllBlockChildren(pageId)\n ])\n const { blockMap, blockChildrenMap, pageMap, parentMap } = await this.resolvePage(pageId)\n\n const recordMap = convertPage({\n pageId,\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n })\n\n ;(\n recordMap as ExtendedRecordMap & {\n raw: { page: GetPageResponse; block: GetBlockResponse; children: GetBlockResponse[] }\n }\n ).raw = {\n page,\n block,\n children\n }\n\n return recordMap\n }\n\n async resolvePage(\n rootBlockId: string,\n {\n concurrency = 4\n }: {\n concurrency?: number\n } = {}\n ) {\n const blockMap: BlockMap = {}\n const pageMap: PageMap = {}\n const parentMap: ParentMap = {}\n const blockChildrenMap: BlockChildrenMap = {}\n const pendingBlockIds = new Set<string>()\n const queue = new PQueue({ concurrency })\n\n const processBlock = async (blockId: string, { shallow = false }: { shallow?: boolean } = {}) => {\n if (!blockId || pendingBlockIds.has(blockId)) return\n\n pendingBlockIds.add(blockId)\n queue.add(async () => {\n try {\n let partialBlock = blockMap[blockId]\n if (!partialBlock) {\n partialBlock = await this.client.blocks.retrieve({\n block_id: blockId\n })\n blockMap[blockId] = partialBlock\n }\n\n const block = partialBlock as Block\n if (block.type === 'child_page') {\n if (!pageMap[blockId]) {\n const partialPage = await this.client.pages.retrieve({\n page_id: blockId\n })\n\n pageMap[blockId] = partialPage\n\n const page = partialPage as Page\n switch (page.parent?.type) {\n case 'page_id':\n processBlock(page.parent.page_id, {\n shallow: true\n })\n if (!parentMap[blockId]) parentMap[blockId] = page.parent.page_id\n\n break\n\n case 'database_id':\n processBlock(page.parent.database_id, {\n shallow: true\n })\n if (!parentMap[blockId]) parentMap[blockId] = page.parent.database_id\n\n break\n }\n }\n\n if (blockId !== rootBlockId)\n // don't fetch children or recurse on subpages\n return\n }\n\n if (shallow) return\n\n const children = await this.getAllBlockChildren(blockId)\n blockChildrenMap[blockId] = children.map(child => child.id)\n\n for (const child of children) {\n const childBlock = child as Block\n const mappedChildBlock = blockMap[child.id] as Block\n if (!mappedChildBlock || (!mappedChildBlock.type && childBlock.type)) {\n blockMap[child.id] = childBlock\n parentMap[child.id] = blockId\n\n const details = childBlock[childBlock.type]\n if (details?.rich_text) {\n const richTextMentions = details.rich_text.filter(richTextItem => richTextItem.type === 'mention')\n\n for (const richTextMention of richTextMentions)\n switch (richTextMention.mention?.type) {\n case 'page': {\n const pageId = richTextMention.mention.page.id\n processBlock(pageId, { shallow: true })\n break\n }\n\n case 'database': {\n const databaseId = richTextMention.mention.database.id\n processBlock(databaseId, { shallow: true })\n break\n }\n }\n }\n\n if (childBlock.type === 'link_to_page')\n switch (childBlock.link_to_page?.type) {\n case 'page_id':\n processBlock(childBlock.link_to_page.page_id, {\n shallow: true\n })\n break\n\n case 'database_id':\n processBlock(childBlock.link_to_page.database_id, {\n shallow: true\n })\n break\n }\n\n if (childBlock.has_children && childBlock.type !== 'child_database') processBlock(childBlock.id)\n }\n }\n } catch (err) {\n console.warn('failed resolving block', blockId, err.message)\n } finally {\n pendingBlockIds.delete(blockId)\n }\n })\n }\n\n await processBlock(rootBlockId)\n await queue.onIdle()\n\n return {\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n }\n }\n\n async getAllBlockChildren(blockId: string) {\n let blocks: BlockChildren = []\n let cursor: string\n\n do {\n console.debug('blocks.children.list', { blockId, cursor })\n const res = await this.client.blocks.children.list({\n block_id: blockId,\n start_cursor: cursor\n })\n\n blocks = blocks.concat(res.results)\n cursor = res.next_cursor\n } while (cursor)\n\n return blocks\n }\n}\n","import type { Color } from '@texonom/ntypes'\n\nexport function convertColor(color: string): Color {\n switch (color) {\n case 'green':\n return 'teal'\n\n case 'green_background':\n return 'teal_background'\n\n default:\n return color as Color\n }\n}\n","import { convertColor } from './convert-color'\n\nimport type { SubDecoration, Decoration } from '@texonom/ntypes'\nimport type { RichText, RichTextItem } from './types'\n\nexport function convertRichText(richText: RichText): Decoration[] {\n return richText.map(convertRichTextItem).filter(Boolean)\n}\n\nexport function convertRichTextItem(richTextItem: RichTextItem): Decoration {\n const subdecorations: SubDecoration[] = []\n\n if (richTextItem.annotations.bold) subdecorations.push(['b'])\n if (richTextItem.annotations.italic) subdecorations.push(['i'])\n if (richTextItem.annotations.strikethrough) subdecorations.push(['s'])\n if (richTextItem.annotations.underline) subdecorations.push(['_'])\n if (richTextItem.annotations.code) subdecorations.push(['c'])\n if (richTextItem.annotations.color !== 'default') subdecorations.push(['h', convertColor(richTextItem.annotations.color)])\n\n const details = richTextItem[richTextItem.type]\n if (details) if (details.link) subdecorations.push(['a', details.link.url])\n\n switch (richTextItem.type) {\n case 'text':\n if (subdecorations.length) return [richTextItem.text.content, subdecorations]\n else return [richTextItem.text.content]\n\n case 'equation':\n if (richTextItem.equation?.expression) subdecorations.unshift(['e', richTextItem.equation.expression])\n return ['⁍', subdecorations]\n\n case 'mention': {\n const { mention } = richTextItem\n\n if (mention)\n switch (mention.type) {\n case 'link_preview':\n // TODO: this should be an eoi, but we don't hae the proper data\n subdecorations.push(['a', mention.link_preview.url])\n break\n\n case 'page':\n subdecorations.push(['p', mention.page.id])\n return ['‣', subdecorations]\n\n case 'database':\n subdecorations.push(['p', mention.database.id])\n return ['‣', subdecorations]\n\n case 'date':\n subdecorations.unshift([\n 'd',\n {\n type: 'date', // TODO\n start_date: mention.date.start,\n end_date: mention.date.end,\n time_zone: mention.date.time_zone\n }\n ])\n break\n\n case 'user':\n subdecorations.push(['u', mention.user.id])\n break\n\n case 'template_mention':\n // TODO\n // subdecorations.push(['m', mention.template_mention.type])\n break\n\n default:\n // TODO\n break\n }\n\n return [richTextItem.plain_text, subdecorations]\n }\n\n default:\n return ['']\n }\n}\n","export function convertTime(time?: string): number | undefined {\n if (time)\n try {\n return new Date(time).getTime()\n } catch {\n // ignore invalid time strings\n }\n\n return undefined\n}\n","import { convertColor } from './convert-color'\nimport { convertRichText } from './convert-rich-text'\nimport { convertTime } from './convert-time'\n\nimport type { BaseBlock, Block as BlockType } from '@texonom/ntypes'\nimport type { PartialBlock, PageMap, BlockMap, ParentMap, Block, Page } from './types'\n\nexport function convertBlock({\n block: partialBlock,\n children = [],\n pageMap,\n blockMap,\n parentMap\n}: {\n block: PartialBlock\n children?: string[]\n pageMap?: PageMap\n blockMap?: BlockMap\n parentMap?: ParentMap\n}): BlockType {\n const compatBlock: Partial<BaseBlock> = {\n id: partialBlock.id\n }\n\n if (children && children.length) compatBlock.content = children\n\n const block = partialBlock as Block\n if (!block.type) return compatBlock as BlockType\n\n compatBlock.properties = {}\n compatBlock.format = {}\n compatBlock.type = block.type\n compatBlock.created_time = convertTime(block.created_time)\n compatBlock.last_edited_time = convertTime(block.last_edited_time)\n if (block.created_by) {\n compatBlock.created_by_table = `notion_${block.created_by.object}`\n compatBlock.created_by_id = block.created_by.id\n }\n compatBlock.last_edited_by_table = block.last_edited_by?.object\n compatBlock.last_edited_by_id = block.last_edited_by?.id\n compatBlock.alive = block.archived !== true\n\n if (parentMap) {\n const parentId = parentMap[block.id]\n\n if (parentId) {\n compatBlock.parent_id = parentId\n const parentBlock = blockMap?.[parentId] as Block\n if (parentBlock) {\n switch (parentBlock.type) {\n case 'child_database':\n compatBlock.parent_table = 'table'\n break\n case 'child_page':\n // fallthrough\n default:\n compatBlock.parent_table = 'block'\n break\n }\n } else {\n const parentPage = pageMap?.[parentId] as Page\n if (parentPage) compatBlock.parent_table = 'block'\n }\n }\n }\n\n const blockDetails = block[block.type]\n if (blockDetails) {\n if (blockDetails.rich_text) compatBlock.properties.title = convertRichText(blockDetails.rich_text)\n\n if (blockDetails.color) compatBlock.format.block_color = convertColor(blockDetails.color)\n\n if (blockDetails.icon)\n switch (blockDetails.icon.type) {\n case 'emoji':\n compatBlock.format.page_icon = blockDetails.icon.emoji\n break\n\n case 'external':\n compatBlock.format.page_icon = blockDetails.icon.external.url\n break\n\n case 'file':\n compatBlock.format.page_icon = blockDetails.icon.file.url\n break\n }\n\n if (blockDetails.type)\n switch (blockDetails.type) {\n case 'external':\n compatBlock.properties.source = [[blockDetails.external.url]]\n break\n\n case 'file':\n compatBlock.properties.source = [[blockDetails.file.url]]\n break\n }\n }\n\n switch (block.type) {\n case 'paragraph':\n compatBlock.type = 'text'\n if (!block.paragraph?.rich_text?.length) delete compatBlock.properties\n\n break\n\n case 'heading_1':\n compatBlock.type = 'header'\n break\n\n case 'heading_2':\n compatBlock.type = 'sub_header'\n break\n\n case 'heading_3':\n compatBlock.type = 'sub_sub_header'\n break\n\n case 'bulleted_list_item':\n compatBlock.type = 'bulleted_list'\n break\n\n case 'numbered_list_item':\n compatBlock.type = 'numbered_list'\n break\n\n case 'quote':\n // no-op\n break\n\n case 'to_do':\n if (block.to_do?.checked) compatBlock.properties.checked = [['Yes']]\n\n break\n\n case 'toggle':\n // no-op\n break\n\n case 'code':\n if (block.code.language) compatBlock.properties.language = [[block.code.language]]\n break\n\n case 'callout':\n // no-op\n break\n\n case 'file':\n // no-op\n break\n\n case 'divider':\n // no-op\n break\n\n case 'breadcrumb':\n // TODO\n break\n\n case 'table_of_contents':\n // no-op\n break\n\n case 'column_list':\n // no-op\n break\n\n case 'column':\n // no-op\n break\n\n case 'bookmark':\n if (block.bookmark.url) compatBlock.properties.link = [[block.bookmark.url]]\n\n if (block.bookmark.caption) compatBlock.properties.description = convertRichText(block.bookmark.caption)\n\n break\n\n case 'link_to_page':\n compatBlock.type = 'alias'\n switch (block.link_to_page?.type) {\n case 'page_id':\n compatBlock.format.alias_pointer = {\n id: block.link_to_page.page_id,\n table: 'block'\n }\n break\n\n case 'database_id':\n compatBlock.format.alias_pointer = {\n id: block.link_to_page.database_id,\n table: 'table'\n }\n break\n }\n break\n\n case 'child_page': {\n compatBlock.type = 'page'\n\n if (pageMap) {\n const page = pageMap[block.id] as Page\n if (page) {\n if (page.properties.title) compatBlock.properties.title = convertRichText((page.properties.title as any).title)\n\n if (page.cover) {\n switch (page.cover.type) {\n case 'external':\n compatBlock.format.page_cover = page.cover.external.url\n break\n\n case 'file':\n compatBlock.format.page_cover = page.cover.file.url\n break\n }\n\n // TODO\n compatBlock.format.page_cover_position = 0.5\n }\n\n if (page.icon)\n switch (page.icon.type) {\n case 'emoji':\n compatBlock.format.page_icon = page.icon.emoji\n break\n\n case 'external':\n compatBlock.format.page_icon = page.icon.external.url\n break\n\n case 'file':\n compatBlock.format.page_icon = page.icon.file.url\n break\n }\n\n if (page.parent)\n switch (page.parent.type) {\n case 'workspace':\n compatBlock.parent_table = 'space'\n break\n\n case 'database_id':\n compatBlock.parent_table = 'table'\n break\n\n case 'page_id':\n compatBlock.parent_table = 'block'\n break\n }\n }\n }\n\n if (block.child_page) if (block.child_page.title) compatBlock.properties.title = [[block.child_page.title]]\n\n break\n }\n\n case 'template':\n // TODO\n break\n\n case 'synced_block':\n if (block.synced_block.synced_from) {\n // TODO: handle block.synced_block.synced_from.type for non-block types\n compatBlock.type = 'transclusion_reference'\n compatBlock.format.transclusion_reference_pointer = {\n id: block.synced_block.synced_from.block_id,\n table: 'block'\n }\n } else {\n compatBlock.type = 'transclusion_container'\n }\n break\n\n case 'equation':\n if (block.equation?.expression) compatBlock.properties.title = [[block.equation.expression]]\n\n break\n\n case 'child_database':\n // TODO\n break\n\n case 'table':\n if (blockDetails.table_width && blockDetails.table_width > 0) {\n // There is no API to get the column ID. Used the index instead.\n compatBlock.format.table_block_column_order = Array.from({ length: blockDetails.table_width }, (_, i) => '' + i)\n compatBlock.format.table_block_column_format = compatBlock.format.table_block_column_order.map(order => {\n return {\n [order]: {\n // TODO: The SimpleTable column has no width and color. API is not supported.\n // width: 155,\n // color:\n }\n }\n })\n }\n if (blockDetails.has_column_header) compatBlock.format.table_block_column_header = blockDetails.has_column_header\n\n if (blockDetails.has_row_header) compatBlock.format.table_block_row_header = blockDetails.has_row_header\n\n break\n\n case 'table_row':\n compatBlock.properties = {\n ...block.table_row?.cells?.map(cell => convertRichText(cell))\n }\n break\n\n case 'pdf':\n // TODO: formatting\n compatBlock.format.block_page_width = true\n compatBlock.format.block_height = '80vh'\n break\n\n case 'video': {\n // TODO: formatting\n compatBlock.format.block_page_width = true\n compatBlock.format.block_aspect_ratio = 0.5620608899297423\n\n try {\n const url = compatBlock.properties.source?.[0]?.[0]\n\n if (!url) break\n const u = new URL(url)\n\n switch (u.hostname) {\n case 'loom.com':\n case 'www.loom.com':\n u.pathname = u.pathname.replace(/^\\/share\\//i, '/embed/')\n compatBlock.format.display_source = u.toString()\n break\n }\n } catch {\n // ignore invalid urls\n }\n break\n }\n\n case 'embed': {\n // TODO: embedding really needs to use some sort of externaly embed API like\n // embedly or microlinkhq. Currently, many embed use cases will not work or\n // display properly.\n const url = block.embed?.url\n\n // TODO: formatting\n compatBlock.format.block_page_width = true\n compatBlock.format.block_height = '30vh'\n\n if (url) {\n compatBlock.properties.source = [[url]]\n\n try {\n const u = new URL(url)\n\n switch (u.hostname) {\n case 'twitter.com':\n compatBlock.type = 'tweet'\n delete compatBlock.format\n break\n\n case 'maps.google.com':\n compatBlock.type = 'maps'\n break\n\n case 'excalidraw.com':\n compatBlock.type = 'excalidraw'\n break\n\n case 'codepen.io':\n compatBlock.type = 'codepen'\n break\n\n case 'docs.google.com':\n // fallthrough\n case 'drive.google.com':\n compatBlock.type = 'drive'\n\n // TODO: fetch drive_properties\n break\n\n case 'figma.com':\n compatBlock.type = 'figma'\n break\n\n case 'open.spotify.com':\n if (u.pathname.includes('/embed/') || u.pathname.includes('/embed-podcast/')) break\n\n if (u.pathname.startsWith('/playlist/')) u.pathname = `/embed${u.pathname}`\n else if (u.pathname.startsWith('/episode/')) u.pathname = `/embed-podcast${u.pathname}`\n\n u.search = ''\n compatBlock.format.display_source = u.toString()\n break\n\n case 'airtable.com':\n if (!u.pathname.startsWith('/embed/')) {\n u.pathname = `/embed${u.pathname}`\n compatBlock.format.display_source = u.toString()\n }\n break\n\n case 'soundcloud.com':\n // TODO\n break\n }\n } catch {\n // ignore invalid urls\n }\n }\n break\n }\n\n case 'image':\n // no-op\n // TODO: handle formatting\n break\n\n case 'audio':\n // no-op\n break\n\n case 'link_preview':\n // TODO\n break\n\n case 'unsupported':\n // no-op\n break\n }\n\n return compatBlock as BlockType\n}\n","import { convertBlock } from './convert-block'\n\nimport type { ExtendedRecordMap, Block as BlockType } from '@texonom/ntypes'\nimport type { PageMap, BlockMap, BlockChildrenMap, ParentMap, Page, Block } from './types'\n\nexport function convertPage({\n pageId,\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n}: {\n pageId: string\n blockMap: BlockMap\n blockChildrenMap: BlockChildrenMap\n pageMap: PageMap\n parentMap: ParentMap\n}): ExtendedRecordMap {\n const compatBlocks = Object.values(blockMap).map(block =>\n convertBlock({\n block,\n children: blockChildrenMap[block.id],\n pageMap,\n blockMap,\n parentMap\n })\n )\n\n const compatPageBlock = convertPageBlock({\n pageId,\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n })\n\n const compatPageBlocks = Object.keys(pageMap)\n .filter(id => id !== pageId)\n .map(id =>\n convertPageBlock({\n pageId: id,\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n })\n )\n\n const compatBlockMap = [compatPageBlock, ...compatBlocks, ...compatPageBlocks].reduce(\n (blockMap, block) => ({\n ...blockMap,\n [block.id]: {\n type: 'reader',\n value: block\n }\n }),\n {}\n )\n\n return {\n block: compatBlockMap,\n collection: {},\n collection_view: {},\n collection_query: {},\n signed_urls: {},\n notion_user: {}\n }\n}\n\nexport function convertPageBlock({\n pageId,\n blockMap,\n blockChildrenMap,\n pageMap,\n parentMap\n}: {\n pageId: string\n blockMap: BlockMap\n blockChildrenMap: BlockChildrenMap\n pageMap: PageMap\n parentMap: ParentMap\n}): BlockType | null {\n const partialPage = pageMap[pageId]\n const page = partialPage as Page\n\n if (page) {\n const compatPageBlock = convertBlock({\n block: { ...page, type: 'child_page' } as unknown as Block,\n children: blockChildrenMap[page.id],\n pageMap,\n blockMap,\n parentMap\n })\n\n return compatPageBlock\n }\n\n return null\n}\n"],"mappings":"AACA,OAAS,eAAAA,MAAmB,kBAC5B,OAAOC,MAAY,UCAZ,SAASC,EAAaC,EAAsB,CACjD,OAAQA,EAAO,CACb,IAAK,QACH,MAAO,OAET,IAAK,mBACH,MAAO,kBAET,QACE,OAAOA,CACX,CACF,CCRO,SAASC,EAAgBC,EAAkC,CAChE,OAAOA,EAAS,IAAIC,CAAmB,EAAE,OAAO,OAAO,CACzD,CAEO,SAASA,EAAoBC,EAAwC,CAT5E,IAAAC,EAUE,IAAMC,EAAkC,CAAC,EAErCF,EAAa,YAAY,MAAME,EAAe,KAAK,CAAC,GAAG,CAAC,EACxDF,EAAa,YAAY,QAAQE,EAAe,KAAK,CAAC,GAAG,CAAC,EAC1DF,EAAa,YAAY,eAAeE,EAAe,KAAK,CAAC,GAAG,CAAC,EACjEF,EAAa,YAAY,WAAWE,EAAe,KAAK,CAAC,GAAG,CAAC,EAC7DF,EAAa,YAAY,MAAME,EAAe,KAAK,CAAC,GAAG,CAAC,EACxDF,EAAa,YAAY,QAAU,WAAWE,EAAe,KAAK,CAAC,IAAKC,EAAaH,EAAa,YAAY,KAAK,CAAC,CAAC,EAEzH,IAAMI,EAAUJ,EAAaA,EAAa,IAAI,EAG9C,OAFII,GAAaA,EAAQ,MAAMF,EAAe,KAAK,CAAC,IAAKE,EAAQ,KAAK,GAAG,CAAC,EAElEJ,EAAa,KAAM,CACzB,IAAK,OACH,OAAIE,EAAe,OAAe,CAACF,EAAa,KAAK,QAASE,CAAc,EAChE,CAACF,EAAa,KAAK,OAAO,EAExC,IAAK,WACH,OAAIC,EAAAD,EAAa,WAAb,MAAAC,EAAuB,YAAYC,EAAe,QAAQ,CAAC,IAAKF,EAAa,SAAS,UAAU,CAAC,EAC9F,CAAC,SAAKE,CAAc,EAE7B,IAAK,UAAW,CACd,GAAM,CAAE,QAAAG,CA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OI,CAAO,CAChC,CACF,CAAC,EACH,EAEA,aAAMD,EAAaL,CAAW,EAC9B,MAAMG,EAAM,OAAO,EAEZ,CACL,SAAAT,EACA,iBAAAC,EACA,QAAAC,EACA,UAAAC,CACF,CACF,CAEA,MAAM,oBAAoBS,EAAiB,CACzC,IAAIgB,EAAwB,CAAC,EACzBC,EAEJ,EAAG,CACD,QAAQ,MAAM,uBAAwB,CAAE,QAAAjB,EAAS,OAAAiB,CAAO,CAAC,EACzD,IAAMC,EAAM,MAAM,KAAK,OAAO,OAAO,SAAS,KAAK,CACjD,SAAUlB,EACV,aAAciB,CAChB,CAAC,EAEDD,EAASA,EAAO,OAAOE,EAAI,OAAO,EAClCD,EAASC,EAAI,WACf,OAASD,GAET,OAAOD,CACT,CACF","names":["parsePageId","PQueue","convertColor","color","convertRichText","richText","convertRichTextItem","richTextItem","_a","subdecorations","convertColor","details","mention","convertTime","time","convertBlock","partialBlock","children","pageMap","blockMap","parentMap","_a","_b","_c","_d","_e","_f","_g","_h","_i","_j","_k","_l","compatBlock","block","convertTime","parentId","parentBlock","blockDetails","convertRichText","convertColor","page","_","i","order","cell","url","u","convertPage","pageId","blockMap","blockChildrenMap","pageMap","parentMap","compatBlocks","block","convertBlock","compatPageBlock","convertPageBlock","compatPageBlocks","id","page","NotionCompatAPI","client","rawPageId","pageId","parsePageId","page","block","children","blockMap","blockChildrenMap","pageMap","parentMap","recordMap","convertPage","rootBlockId","concurrency","pendingBlockIds","queue","PQueue","processBlock","blockId","shallow","_a","_b","_c","partialBlock","partialPage","child","childBlock","mappedChildBlock","details","richTextMentions","richTextItem","richTextMention","databaseId","err","blocks","cursor","res"]}