uomtiles 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/1d1PDhA4.js +1 -0
- package/.output/public/_nuxt/3B2XYGg4.js +1 -0
- package/.output/public/_nuxt/981KwFWf.js +1 -0
- package/.output/public/_nuxt/B30dSvM4.js +1 -0
- package/.output/public/_nuxt/BN1Gp4Dm.js +1 -0
- package/.output/public/_nuxt/BQlj8Xoe.js +6 -0
- package/.output/public/_nuxt/BRkljK8J.js +1 -0
- package/.output/public/_nuxt/BSdHYVlE2.js +1 -0
- package/.output/public/_nuxt/B_MqTg2k2.js +1 -0
- package/.output/public/_nuxt/BiWblTbb2.js +64 -0
- package/.output/public/_nuxt/BrPwntMr.js +1 -0
- package/.output/public/_nuxt/BskybydR.js +1 -0
- package/.output/public/_nuxt/ByRlKR9F.js +1 -0
- package/.output/public/_nuxt/C0Zdl2EE2.js +1 -0
- package/.output/public/_nuxt/C4qlzA4o.js +1 -0
- package/.output/public/_nuxt/C7HxHbxA.js +1 -0
- package/.output/public/_nuxt/C97TfNgP.js +3 -0
- package/.output/public/_nuxt/CNs_Ozdc.js +1 -0
- package/.output/public/_nuxt/CPuhwLY1.js +1 -0
- package/.output/public/_nuxt/CVE291Pi.js +1 -0
- package/.output/public/_nuxt/C_0VY3Cv2.js +4 -0
- package/.output/public/_nuxt/Ce26t8_Y.js +1 -0
- package/.output/public/_nuxt/CfW544W5.js +1 -0
- package/.output/public/_nuxt/CgMd2Y5s.js +2 -0
- package/.output/public/_nuxt/CgdzV712.js +1 -0
- package/.output/public/_nuxt/D1wVNWS0.js +1 -0
- package/.output/public/_nuxt/DC3bhq63.js +1 -0
- package/.output/public/_nuxt/DK3Fl9T5.js +1 -0
- package/.output/public/_nuxt/DL1MZZLI.js +1 -0
- package/.output/public/_nuxt/DXm-42Fi.js +1 -0
- package/.output/public/_nuxt/Djg3Kzfv.js +1 -0
- package/.output/public/_nuxt/DkcySee1.js +1 -0
- package/.output/public/_nuxt/DmN-PKW1.js +1 -0
- package/.output/public/_nuxt/DtFVCXI9.js +1 -0
- package/.output/public/_nuxt/Dz7VMlHR.js +1 -0
- package/.output/public/_nuxt/NL65vbjG2.js +1 -0
- package/.output/public/_nuxt/Oxy7pKSk.js +3 -0
- package/.output/public/_nuxt/Pik8or8N2.js +1 -0
- package/.output/public/_nuxt/XZ59tThl.js +1 -0
- package/.output/public/_nuxt/ZpWjFsgV.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/9f85104e-738d-4a74-8daa-40b136ce17d5.json +1 -0
- package/.output/public/_nuxt/dXz6dFgW2.js +1 -0
- package/.output/public/_nuxt/entry.P6tFNE31.css +1 -0
- package/.output/public/_nuxt/error-404.Biv0P6cJ.css +1 -0
- package/.output/public/_nuxt/error-500.8ok468rV.css +1 -0
- package/.output/public/_nuxt/j0MRD-c3.js +1 -0
- package/.output/public/_nuxt/local-pixel-diff.worker-C6RdZoCq.js +2 -0
- package/.output/public/_nuxt/maplibre-gl-worker.nfnkSQvL.mjs +6 -0
- package/.output/public/_nuxt/nearest-area.worker-iSLH0Y_s.js +2 -0
- package/.output/public/_nuxt/q7DkoVkj.js +828 -0
- package/.output/public/_nuxt/raster-tile.worker-BFlOgJig.js +2 -0
- package/.output/public/_nuxt/services._3nQizF8.css +1 -0
- package/.output/public/_nuxt/sql-wasm.DfANybxk.wasm +0 -0
- package/.output/public/_nuxt/tile-diff.worker-CvWWI_eu.js +1 -0
- package/.output/public/_nuxt/zZ1EGR7Y.js +1 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/favicon.svg +8 -0
- package/.output/public/icon-192.png +0 -0
- package/.output/public/icon-512.png +0 -0
- package/.output/public/site.webmanifest +11 -0
- package/.output/server/chunks/_/config.mjs +208 -0
- package/.output/server/chunks/_/config.mjs.map +1 -0
- package/.output/server/chunks/_/data-directory.mjs +24 -0
- package/.output/server/chunks/_/data-directory.mjs.map +1 -0
- package/.output/server/chunks/_/error-500.mjs +20 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/file-workspace.mjs +910 -0
- package/.output/server/chunks/_/file-workspace.mjs.map +1 -0
- package/.output/server/chunks/_/icons.mjs +6269 -0
- package/.output/server/chunks/_/icons.mjs.map +1 -0
- package/.output/server/chunks/_/map-service.mjs +233 -0
- package/.output/server/chunks/_/map-service.mjs.map +1 -0
- package/.output/server/chunks/_/missing-tile.mjs +104 -0
- package/.output/server/chunks/_/missing-tile.mjs.map +1 -0
- package/.output/server/chunks/_/pixel-diff.mjs +78 -0
- package/.output/server/chunks/_/pixel-diff.mjs.map +1 -0
- package/.output/server/chunks/_/uom-auth.mjs +334 -0
- package/.output/server/chunks/_/uom-auth.mjs.map +1 -0
- package/.output/server/chunks/_/uom-map.mjs +265 -0
- package/.output/server/chunks/_/uom-map.mjs.map +1 -0
- package/.output/server/chunks/build/Alert-0ngTJXxP.mjs +5076 -0
- package/.output/server/chunks/build/Alert-0ngTJXxP.mjs.map +1 -0
- package/.output/server/chunks/build/DashboardSidebarToggle-pncTaIJq.mjs +569 -0
- package/.output/server/chunks/build/DashboardSidebarToggle-pncTaIJq.mjs.map +1 -0
- package/.output/server/chunks/build/Empty-CkW3mADt.mjs +359 -0
- package/.output/server/chunks/build/Empty-CkW3mADt.mjs.map +1 -0
- package/.output/server/chunks/build/FocusScope-Cf0lg0zt.mjs +207 -0
- package/.output/server/chunks/build/FocusScope-Cf0lg0zt.mjs.map +1 -0
- package/.output/server/chunks/build/FormField-CEUZHcv7.mjs +278 -0
- package/.output/server/chunks/build/FormField-CEUZHcv7.mjs.map +1 -0
- package/.output/server/chunks/build/Input-BeNavYXb.mjs +592 -0
- package/.output/server/chunks/build/Input-BeNavYXb.mjs.map +1 -0
- package/.output/server/chunks/build/MapBaseLayerTabs-4445J6yh.mjs +2003 -0
- package/.output/server/chunks/build/MapBaseLayerTabs-4445J6yh.mjs.map +1 -0
- package/.output/server/chunks/build/Modal-DNZtVxca.mjs +1326 -0
- package/.output/server/chunks/build/Modal-DNZtVxca.mjs.map +1 -0
- package/.output/server/chunks/build/OnlineMap-CKwiuqUY.mjs +146 -0
- package/.output/server/chunks/build/OnlineMap-CKwiuqUY.mjs.map +1 -0
- package/.output/server/chunks/build/Pagination-CDHx4HTZ.mjs +1025 -0
- package/.output/server/chunks/build/Pagination-CDHx4HTZ.mjs.map +1 -0
- package/.output/server/chunks/build/PopperArrow-Bqfdf2Et.mjs +2066 -0
- package/.output/server/chunks/build/PopperArrow-Bqfdf2Et.mjs.map +1 -0
- package/.output/server/chunks/build/ScrollArea-BQK3em8b.mjs +379 -0
- package/.output/server/chunks/build/ScrollArea-BQK3em8b.mjs.map +1 -0
- package/.output/server/chunks/build/Slider-D-n8Y0CX.mjs +1087 -0
- package/.output/server/chunks/build/Slider-D-n8Y0CX.mjs.map +1 -0
- package/.output/server/chunks/build/Tooltip-CkpSktvJ.mjs +1345 -0
- package/.output/server/chunks/build/Tooltip-CkpSktvJ.mjs.map +1 -0
- package/.output/server/chunks/build/_virtual_public-CeOptKUP.mjs +7 -0
- package/.output/server/chunks/build/_virtual_public-CeOptKUP.mjs.map +1 -0
- package/.output/server/chunks/build/advanced-D1onodoF.mjs +1430 -0
- package/.output/server/chunks/build/advanced-D1onodoF.mjs.map +1 -0
- package/.output/server/chunks/build/compare-DmSAW8oA.mjs +1093 -0
- package/.output/server/chunks/build/compare-DmSAW8oA.mjs.map +1 -0
- package/.output/server/chunks/build/dashboard-BJxrZ19n.mjs +3217 -0
- package/.output/server/chunks/build/dashboard-BJxrZ19n.mjs.map +1 -0
- package/.output/server/chunks/build/details-CBMqXYyo.mjs +3714 -0
- package/.output/server/chunks/build/details-CBMqXYyo.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-D9aQjJRn.mjs +86 -0
- package/.output/server/chunks/build/error-404-D9aQjJRn.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DciiguV6.mjs +9 -0
- package/.output/server/chunks/build/error-404-styles.DciiguV6.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-BNyA3wrb.mjs +74 -0
- package/.output/server/chunks/build/error-500-BNyA3wrb.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.C562DYMR.mjs +9 -0
- package/.output/server/chunks/build/error-500-styles.C562DYMR.mjs.map +1 -0
- package/.output/server/chunks/build/esm-Dp2lJXbp.mjs +1121 -0
- package/.output/server/chunks/build/esm-Dp2lJXbp.mjs.map +1 -0
- package/.output/server/chunks/build/interval-BxUMpo78.mjs +411 -0
- package/.output/server/chunks/build/interval-BxUMpo78.mjs.map +1 -0
- package/.output/server/chunks/build/login-lbtjN0MV.mjs +642 -0
- package/.output/server/chunks/build/login-lbtjN0MV.mjs.map +1 -0
- package/.output/server/chunks/build/pages-Ba0Eixbd.mjs +220 -0
- package/.output/server/chunks/build/pages-Ba0Eixbd.mjs.map +1 -0
- package/.output/server/chunks/build/services-DuJwjAB8.mjs +3005 -0
- package/.output/server/chunks/build/services-DuJwjAB8.mjs.map +1 -0
- package/.output/server/chunks/build/services-styles.eoO16BY9.mjs +9 -0
- package/.output/server/chunks/build/services-styles.eoO16BY9.mjs.map +1 -0
- package/.output/server/chunks/build/tasks-CyN9x492.mjs +915 -0
- package/.output/server/chunks/build/tasks-CyN9x492.mjs.map +1 -0
- package/.output/server/chunks/build/tasks-D_Q5EDnn.mjs +87 -0
- package/.output/server/chunks/build/tasks-D_Q5EDnn.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +6215 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/captcha.post.mjs +21 -0
- package/.output/server/chunks/routes/api/auth/captcha.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/login.post.mjs +27 -0
- package/.output/server/chunks/routes/api/auth/login.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/logout.post.mjs +22 -0
- package/.output/server/chunks/routes/api/auth/logout.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/map-token.post.mjs +22 -0
- package/.output/server/chunks/routes/api/auth/map-token.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/send-sms.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/send-sms.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/status.get.mjs +21 -0
- package/.output/server/chunks/routes/api/auth/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs +44 -0
- package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/live/status.get.mjs +32 -0
- package/.output/server/chunks/routes/api/map/live/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs +48 -0
- package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs +46 -0
- package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/config.post.mjs +38 -0
- package/.output/server/chunks/routes/api/map-service/config.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/file.post.mjs +41 -0
- package/.output/server/chunks/routes/api/map-service/file.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/source.post.mjs +35 -0
- package/.output/server/chunks/routes/api/map-service/source.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/status.get.mjs +32 -0
- package/.output/server/chunks/routes/api/map-service/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs +47 -0
- package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs +38 -0
- package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs +42 -0
- package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs +48 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs +45 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs +32 -0
- package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs +38 -0
- package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/compare.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workspace/compare.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/fetch.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workspace/fetch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/files.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workspace/files.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/files.post.mjs +38 -0
- package/.output/server/chunks/routes/api/workspace/files.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/stop.post.mjs +32 -0
- package/.output/server/chunks/routes/api/workspace/stop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/tasks.post.mjs +36 -0
- package/.output/server/chunks/routes/api/workspace/tasks.post.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +422 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/routes/services/wms.get.mjs +54 -0
- package/.output/server/chunks/routes/services/wms.get.mjs.map +1 -0
- package/.output/server/chunks/routes/services/wmts.get.mjs +54 -0
- package/.output/server/chunks/routes/services/wmts.get.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/chunks/virtual/entry.mjs +18545 -0
- package/.output/server/chunks/virtual/entry.mjs.map +1 -0
- package/.output/server/chunks/virtual/precomputed.mjs +4 -0
- package/.output/server/chunks/virtual/precomputed.mjs.map +1 -0
- package/.output/server/chunks/virtual/styles.mjs +10 -0
- package/.output/server/chunks/virtual/styles.mjs.map +1 -0
- package/.output/server/index.mjs +12 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14611 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
- package/.output/server/node_modules/@iconify/utils/package.json +119 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6801 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +692 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1903 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6976 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1841 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +904 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +609 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/.output/server/node_modules/consola/package.json +136 -0
- package/.output/server/node_modules/devalue/index.js +17 -0
- package/.output/server/node_modules/devalue/package.json +39 -0
- package/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/.output/server/node_modules/devalue/src/operations.js +193 -0
- package/.output/server/node_modules/devalue/src/parse.js +270 -0
- package/.output/server/node_modules/devalue/src/stringify.js +428 -0
- package/.output/server/node_modules/devalue/src/uneval.js +582 -0
- package/.output/server/node_modules/devalue/src/utils.js +185 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/fflate/esm/index.mjs +2710 -0
- package/.output/server/node_modules/fflate/package.json +128 -0
- package/.output/server/node_modules/fnv1a-64/dist/index.mjs +95 -0
- package/.output/server/node_modules/fnv1a-64/package.json +75 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/.output/server/node_modules/hookable/package.json +53 -0
- package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
- package/.output/server/node_modules/nostics/dist/index.mjs +187 -0
- package/.output/server/node_modules/nostics/package.json +125 -0
- package/.output/server/node_modules/object-identity/index.js +60 -0
- package/.output/server/node_modules/object-identity/package.json +40 -0
- package/.output/server/node_modules/p-limit/index.js +104 -0
- package/.output/server/node_modules/p-limit/package.json +58 -0
- package/.output/server/node_modules/pmtiles/dist/esm/index.js +2 -0
- package/.output/server/node_modules/pmtiles/package.json +50 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/tailwindcss/dist/chunk-DCG7AFIE.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/package.json +89 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +52 -0
- package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
- package/.output/server/node_modules/unhead/dist/minify.mjs +183 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +631 -0
- package/.output/server/node_modules/unhead/dist/scripts.node.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BGFxPGPQ.mjs +47 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BQWSw36o.mjs +192 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bb4d5b9h.mjs +67 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BdK3SLPN.mjs +585 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C3b2Ipoj.mjs +223 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CTjuIdzk.mjs +27 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CfKy3Kuq.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DNKiVLV7.mjs +400 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.MC5RsXLj.mjs +19 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.jEy9BmRq.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.tQnRaXfX.mjs +240 -0
- package/.output/server/node_modules/unhead/dist/stream/client.mjs +28 -0
- package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
- package/.output/server/node_modules/unhead/dist/stream/server.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
- package/.output/server/node_modules/unhead/package.json +179 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +278 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +54 -0
- package/.output/server/node_modules/yocto-queue/index.js +90 -0
- package/.output/server/node_modules/yocto-queue/package.json +48 -0
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +135 -0
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +48 -0
- package/.output/server/node_modules/zod/v4/classic/external.js +20 -0
- package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/classic/package.json +7 -0
- package/.output/server/node_modules/zod/v4/classic/parse.js +15 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/.output/server/node_modules/zod/v4/core/api.js +1087 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +575 -0
- package/.output/server/node_modules/zod/v4/core/core.js +78 -0
- package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
- package/.output/server/node_modules/zod/v4/core/errors.js +185 -0
- package/.output/server/node_modules/zod/v4/core/index.js +16 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
- package/.output/server/node_modules/zod/v4/core/package.json +7 -0
- package/.output/server/node_modules/zod/v4/core/parse.js +93 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +139 -0
- package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
- package/.output/server/node_modules/zod/v4/core/schemas.js +2239 -0
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/.output/server/node_modules/zod/v4/core/util.js +674 -0
- package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ar.js +106 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +105 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +156 -0
- package/.output/server/node_modules/zod/v4/locales/bg.js +120 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/da.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/de.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/el.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/eo.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +132 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +114 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +125 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +214 -0
- package/.output/server/node_modules/zod/v4/locales/hr.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +106 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +52 -0
- package/.output/server/node_modules/zod/v4/locales/is.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ja.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/ka.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/km.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/lt.js +203 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ota.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/package.json +7 -0
- package/.output/server/node_modules/zod/v4/locales/pl.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +114 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ro.js +119 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +156 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/ta.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +105 -0
- package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uk.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/uz.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/yo.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/.output/server/package.json +37 -0
- package/LICENSE +3 -0
- package/README.md +125 -0
- package/dist/src/bbox.js +55 -0
- package/dist/src/cli.js +255 -0
- package/dist/src/config.js +56 -0
- package/dist/src/core/fetch-process.js +19 -0
- package/dist/src/core/grid-renderer.js +149 -0
- package/dist/src/core/lease.js +103 -0
- package/dist/src/core/paths.js +13 -0
- package/dist/src/core/png.js +192 -0
- package/dist/src/core/raster-style.js +33 -0
- package/dist/src/core/uomtiles.js +307 -0
- package/dist/src/fetcher.js +208 -0
- package/dist/src/geographic-grid.js +162 -0
- package/dist/src/grid-crawl.js +478 -0
- package/dist/src/mask-image.js +16 -0
- package/dist/src/official-grid.js +51 -0
- package/dist/src/quality.js +30 -0
- package/dist/src/token.js +206 -0
- package/package.json +68 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.svg +8 -0
- package/public/icon-192.png +0 -0
- package/public/icon-512.png +0 -0
- package/public/site.webmanifest +11 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { MAX_ARRAY_INDEX } from './constants.js';
|
|
2
|
+
import {
|
|
3
|
+
enumerable_symbols,
|
|
4
|
+
get_type,
|
|
5
|
+
is_plain_object,
|
|
6
|
+
valid_array_indices
|
|
7
|
+
} from './utils.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Merges caller-provided operation overrides over the defaults. Iterating the
|
|
11
|
+
* default keys (rather than the override's own keys) means nullish members
|
|
12
|
+
* fall back to the default, and inherited members — e.g. from a class
|
|
13
|
+
* instance — are picked up.
|
|
14
|
+
*
|
|
15
|
+
* @template {Record<string, any>} T
|
|
16
|
+
* @param {T} defaults
|
|
17
|
+
* @param {Partial<T> | undefined} overrides
|
|
18
|
+
* @returns {T}
|
|
19
|
+
*/
|
|
20
|
+
export function merge_operations(defaults, overrides) {
|
|
21
|
+
if (!overrides) return defaults;
|
|
22
|
+
|
|
23
|
+
const merged = /** @type {T} */ ({});
|
|
24
|
+
|
|
25
|
+
for (const key of /** @type {(keyof T)[]} */ (Object.keys(defaults))) {
|
|
26
|
+
merged[key] = overrides[key] ?? defaults[key];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return merged;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** @type {{ kind: 'not-plain' }} */
|
|
33
|
+
const NOT_PLAIN = Object.freeze({ kind: 'not-plain' });
|
|
34
|
+
|
|
35
|
+
/** @type {{ kind: 'symbol-keys' }} */
|
|
36
|
+
const SYMBOL_KEYS = Object.freeze({ kind: 'symbol-keys' });
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The default implementations of every introspection/extraction operation
|
|
40
|
+
* `stringify` performs on the value being serialized. Each one uses native
|
|
41
|
+
* JavaScript semantics (property access, iteration, prototype methods, etc).
|
|
42
|
+
*
|
|
43
|
+
* Pass overrides via the `operations` option of `stringify`/`stringifyAsync`
|
|
44
|
+
* to customize how values are inspected — e.g. to serialize values without
|
|
45
|
+
* triggering getters, proxy traps, or patched prototype methods, or to
|
|
46
|
+
* serialize values that live in a different JavaScript runtime (a `node:vm`
|
|
47
|
+
* context, a WASM-hosted engine, a remote process) through handle objects.
|
|
48
|
+
*
|
|
49
|
+
* The object is frozen — it is shared by every `stringify` call that does
|
|
50
|
+
* not override a given operation.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
/** @type {import('./types.js').DefaultStringifyOperations} */
|
|
54
|
+
const stringify_operations = {
|
|
55
|
+
identify: (value) => value,
|
|
56
|
+
|
|
57
|
+
typeOf: (value) => (value === null ? 'null' : typeof value),
|
|
58
|
+
|
|
59
|
+
toPrimitive: (value) => value,
|
|
60
|
+
|
|
61
|
+
tagOf: (value) => get_type(value),
|
|
62
|
+
|
|
63
|
+
isThenable: (value) => typeof value.then === 'function',
|
|
64
|
+
|
|
65
|
+
toPromise: (thenable) => Promise.resolve(thenable),
|
|
66
|
+
|
|
67
|
+
unbox: (boxed) => boxed.valueOf(),
|
|
68
|
+
|
|
69
|
+
toISOString: (date) => (isNaN(date.getDate()) ? '' : date.toISOString()),
|
|
70
|
+
|
|
71
|
+
toStringValue: (value) => value.toString(),
|
|
72
|
+
|
|
73
|
+
regExpInfo: (regexp) => ({ source: regexp.source, flags: regexp.flags }),
|
|
74
|
+
|
|
75
|
+
valuesOf: (set) => set,
|
|
76
|
+
|
|
77
|
+
entriesOf: (map) => map,
|
|
78
|
+
|
|
79
|
+
viewInfo: (view) => ({
|
|
80
|
+
buffer: view.buffer,
|
|
81
|
+
byteOffset: view.byteOffset,
|
|
82
|
+
byteLength: view.byteLength,
|
|
83
|
+
length: view.length,
|
|
84
|
+
bufferByteLength: view.buffer.byteLength
|
|
85
|
+
}),
|
|
86
|
+
|
|
87
|
+
toArrayBuffer: (buffer) => buffer,
|
|
88
|
+
|
|
89
|
+
lengthOf: (array) => array.length,
|
|
90
|
+
|
|
91
|
+
hasOwn: (value, key) => Object.hasOwn(value, key),
|
|
92
|
+
|
|
93
|
+
indicesOf: (array) => valid_array_indices(array),
|
|
94
|
+
|
|
95
|
+
shapeOf: (value) => {
|
|
96
|
+
if (!is_plain_object(value)) return NOT_PLAIN;
|
|
97
|
+
if (enumerable_symbols(value).length > 0) return SYMBOL_KEYS;
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
kind: Object.getPrototypeOf(value) === null ? 'null-proto' : 'plain',
|
|
101
|
+
keys: Object.keys(value)
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
get: (value, key) => value[key]
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export const default_stringify_operations = Object.freeze(stringify_operations);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The default implementations of every construction operation `parse` and
|
|
112
|
+
* `unflatten` perform while reviving a value. Each one uses native
|
|
113
|
+
* JavaScript semantics (built-in constructors, property assignment, etc).
|
|
114
|
+
*
|
|
115
|
+
* Pass overrides via the `operations` option of `parse`/`unflatten` to
|
|
116
|
+
* customize how values are built — e.g. to construct them from the
|
|
117
|
+
* intrinsics of a different realm (a `node:vm` context), or to build up
|
|
118
|
+
* values inside another JavaScript runtime (a WASM-hosted engine, a remote
|
|
119
|
+
* process) through handle objects.
|
|
120
|
+
*
|
|
121
|
+
* The object is frozen — it is shared by every `parse` call that does not
|
|
122
|
+
* override a given operation.
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
/** @type {import('./types.js').DefaultParseOperations} */
|
|
126
|
+
const parse_operations = {
|
|
127
|
+
fromPrimitive: (primitive) => primitive,
|
|
128
|
+
|
|
129
|
+
fromISOString: (iso) => new Date(iso),
|
|
130
|
+
|
|
131
|
+
fromStringValue: (tag, text) => {
|
|
132
|
+
if (tag === 'URL') return new URL(text);
|
|
133
|
+
if (tag === 'URLSearchParams') return new URLSearchParams(text);
|
|
134
|
+
// 'Temporal.Instant', 'Temporal.PlainDate', ...
|
|
135
|
+
// @ts-expect-error TS doesn't know about Temporal yet
|
|
136
|
+
return Temporal[tag.slice(9)].from(text);
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
fromArrayBuffer: (buffer) => buffer,
|
|
140
|
+
|
|
141
|
+
fromRegExpInfo: (source, flags) => new RegExp(source, flags),
|
|
142
|
+
|
|
143
|
+
fromViewInfo: (tag, buffer, byteOffset, length) => {
|
|
144
|
+
const Constructor = /** @type {any} */ (globalThis)[tag];
|
|
145
|
+
return byteOffset !== undefined
|
|
146
|
+
? new Constructor(buffer, byteOffset, length)
|
|
147
|
+
: new Constructor(buffer);
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
box: (value) => Object(value),
|
|
151
|
+
|
|
152
|
+
createArray: (length) => new Array(length),
|
|
153
|
+
|
|
154
|
+
createSparseArray: (length) => {
|
|
155
|
+
/** @type {any[]} */
|
|
156
|
+
const array = [];
|
|
157
|
+
|
|
158
|
+
// Setting `array.length = length` (or equivalently calling
|
|
159
|
+
// `new Array(length)`) on an untrusted length is a DoS vector: V8
|
|
160
|
+
// eagerly allocates a contiguous backing store for array lengths below
|
|
161
|
+
// ~10^8, so a small payload with a huge declared length can force
|
|
162
|
+
// arbitrary memory allocation. Touching the largest-possible index
|
|
163
|
+
// first forces V8 into dictionary-elements mode, where `length` is
|
|
164
|
+
// just a number and no contiguous allocation occurs.
|
|
165
|
+
array[MAX_ARRAY_INDEX] = undefined;
|
|
166
|
+
delete array[MAX_ARRAY_INDEX];
|
|
167
|
+
array.length = length;
|
|
168
|
+
|
|
169
|
+
return array;
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
createObject: () => ({}),
|
|
173
|
+
|
|
174
|
+
createNullPrototypeObject: () => Object.create(null),
|
|
175
|
+
|
|
176
|
+
createSet: () => new Set(),
|
|
177
|
+
|
|
178
|
+
createMap: () => new Map(),
|
|
179
|
+
|
|
180
|
+
set: (target, key, value) => {
|
|
181
|
+
target[key] = value;
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
addValue: (set, value) => {
|
|
185
|
+
set.add(value);
|
|
186
|
+
},
|
|
187
|
+
|
|
188
|
+
addEntry: (map, key, value) => {
|
|
189
|
+
map.set(key, value);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export const default_parse_operations = Object.freeze(parse_operations);
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { decode64 } from './base64.js';
|
|
2
|
+
import {
|
|
3
|
+
HOLE,
|
|
4
|
+
NAN,
|
|
5
|
+
NEGATIVE_INFINITY,
|
|
6
|
+
NEGATIVE_ZERO,
|
|
7
|
+
POSITIVE_INFINITY,
|
|
8
|
+
SPARSE,
|
|
9
|
+
UNDEFINED
|
|
10
|
+
} from './constants.js';
|
|
11
|
+
import { default_parse_operations, merge_operations } from './operations.js';
|
|
12
|
+
import { is_valid_array_index, is_valid_array_len } from './utils.js';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Revive a value serialized with `devalue.stringify`
|
|
16
|
+
* @param {string} serialized
|
|
17
|
+
* @param {Record<string, (value: any) => any>} [revivers]
|
|
18
|
+
* @param {import('./types.js').ParseOptions} [options]
|
|
19
|
+
*/
|
|
20
|
+
export function parse(serialized, revivers, options) {
|
|
21
|
+
return unflatten(JSON.parse(serialized), revivers, options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Revive a value flattened with `devalue.stringify`
|
|
26
|
+
* @param {number | any[]} parsed
|
|
27
|
+
* @param {Record<string, (value: any) => any>} [revivers]
|
|
28
|
+
* @param {import('./types.js').ParseOptions} [options]
|
|
29
|
+
*/
|
|
30
|
+
export function unflatten(parsed, revivers, options) {
|
|
31
|
+
/** @type {import('./types.js').ParseOperations} */
|
|
32
|
+
const ops = merge_operations(default_parse_operations, options?.operations);
|
|
33
|
+
|
|
34
|
+
if (typeof parsed === 'number') return hydrate(parsed, true);
|
|
35
|
+
|
|
36
|
+
if (!Array.isArray(parsed) || parsed.length === 0) {
|
|
37
|
+
throw new Error('Invalid input');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const values = /** @type {any[]} */ (parsed);
|
|
41
|
+
|
|
42
|
+
const hydrated = Array(values.length);
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A set of values currently being hydrated with custom revivers,
|
|
46
|
+
* used to detect invalid cyclical dependencies
|
|
47
|
+
* @type {Set<number> | null}
|
|
48
|
+
*/
|
|
49
|
+
let hydrating = null;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @param {number} index
|
|
53
|
+
* @returns {any}
|
|
54
|
+
*/
|
|
55
|
+
function hydrate(index, standalone = false) {
|
|
56
|
+
if (index === UNDEFINED) return ops.fromPrimitive(undefined);
|
|
57
|
+
if (index === NAN) return ops.fromPrimitive(NaN);
|
|
58
|
+
if (index === POSITIVE_INFINITY) return ops.fromPrimitive(Infinity);
|
|
59
|
+
if (index === NEGATIVE_INFINITY) return ops.fromPrimitive(-Infinity);
|
|
60
|
+
if (index === NEGATIVE_ZERO) return ops.fromPrimitive(-0);
|
|
61
|
+
|
|
62
|
+
if (standalone || typeof index !== 'number') {
|
|
63
|
+
throw new Error(`Invalid input`);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (index in hydrated) return hydrated[index];
|
|
67
|
+
|
|
68
|
+
const value = values[index];
|
|
69
|
+
|
|
70
|
+
if (!value || typeof value !== 'object') {
|
|
71
|
+
hydrated[index] = ops.fromPrimitive(value);
|
|
72
|
+
} else if (Array.isArray(value)) {
|
|
73
|
+
if (typeof value[0] === 'string') {
|
|
74
|
+
const type = value[0];
|
|
75
|
+
|
|
76
|
+
const reviver = revivers && Object.hasOwn(revivers, type) ? revivers[type] : undefined;
|
|
77
|
+
|
|
78
|
+
if (reviver) {
|
|
79
|
+
let i = value[1];
|
|
80
|
+
if (typeof i !== 'number') {
|
|
81
|
+
// if it's not a number, it was serialized by a builtin reviver
|
|
82
|
+
// so we need to munge it into the format expected by a custom reviver
|
|
83
|
+
i = values.push(value[1]) - 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// If the payload is already hydrated, its recursion has already
|
|
87
|
+
// terminated (e.g. a self-referential object cached itself before
|
|
88
|
+
// following its own back-reference), so revive it directly. Falling
|
|
89
|
+
// through to the `hydrating` guard here would wrongly reject a valid
|
|
90
|
+
// cycle. An actually infinite payload (e.g. `[["Custom", 0]]`) is never
|
|
91
|
+
// cached, so it still hits the guard below.
|
|
92
|
+
if (Object.hasOwn(hydrated, i)) {
|
|
93
|
+
return (hydrated[index] = reviver(hydrated[i]));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
hydrating ??= new Set();
|
|
97
|
+
|
|
98
|
+
if (hydrating.has(i)) {
|
|
99
|
+
throw new Error('Invalid circular reference');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
hydrating.add(i);
|
|
103
|
+
hydrated[index] = reviver(hydrate(i));
|
|
104
|
+
hydrating.delete(i);
|
|
105
|
+
|
|
106
|
+
return hydrated[index];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
switch (type) {
|
|
110
|
+
case 'Date':
|
|
111
|
+
hydrated[index] = ops.fromISOString(value[1]);
|
|
112
|
+
break;
|
|
113
|
+
|
|
114
|
+
case 'Set':
|
|
115
|
+
const set = ops.createSet();
|
|
116
|
+
hydrated[index] = set;
|
|
117
|
+
for (let i = 1; i < value.length; i += 1) {
|
|
118
|
+
ops.addValue(set, hydrate(value[i]));
|
|
119
|
+
}
|
|
120
|
+
break;
|
|
121
|
+
|
|
122
|
+
case 'Map':
|
|
123
|
+
const map = ops.createMap();
|
|
124
|
+
hydrated[index] = map;
|
|
125
|
+
for (let i = 1; i < value.length; i += 2) {
|
|
126
|
+
ops.addEntry(map, hydrate(value[i]), hydrate(value[i + 1]));
|
|
127
|
+
}
|
|
128
|
+
break;
|
|
129
|
+
|
|
130
|
+
case 'RegExp':
|
|
131
|
+
hydrated[index] = ops.fromRegExpInfo(value[1], value[2]);
|
|
132
|
+
break;
|
|
133
|
+
|
|
134
|
+
case 'Object': {
|
|
135
|
+
const wrapped_index = value[1];
|
|
136
|
+
|
|
137
|
+
if (
|
|
138
|
+
typeof values[wrapped_index] === 'object' &&
|
|
139
|
+
values[wrapped_index][0] !== 'BigInt'
|
|
140
|
+
) {
|
|
141
|
+
// avoid infinite recusion in case of malformed input
|
|
142
|
+
throw new Error('Invalid input');
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
hydrated[index] = ops.box(hydrate(wrapped_index));
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
case 'BigInt':
|
|
150
|
+
hydrated[index] = ops.fromPrimitive(BigInt(value[1]));
|
|
151
|
+
break;
|
|
152
|
+
|
|
153
|
+
case 'null':
|
|
154
|
+
const obj = ops.createNullPrototypeObject();
|
|
155
|
+
hydrated[index] = obj;
|
|
156
|
+
for (let i = 1; i < value.length; i += 2) {
|
|
157
|
+
if (value[i] === '__proto__') {
|
|
158
|
+
throw new Error('Cannot parse an object with a `__proto__` property');
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
ops.set(obj, value[i], hydrate(value[i + 1]));
|
|
162
|
+
}
|
|
163
|
+
break;
|
|
164
|
+
|
|
165
|
+
case 'Int8Array':
|
|
166
|
+
case 'Uint8Array':
|
|
167
|
+
case 'Uint8ClampedArray':
|
|
168
|
+
case 'Int16Array':
|
|
169
|
+
case 'Uint16Array':
|
|
170
|
+
case 'Float16Array':
|
|
171
|
+
case 'Int32Array':
|
|
172
|
+
case 'Uint32Array':
|
|
173
|
+
case 'Float32Array':
|
|
174
|
+
case 'Float64Array':
|
|
175
|
+
case 'BigInt64Array':
|
|
176
|
+
case 'BigUint64Array':
|
|
177
|
+
case 'DataView': {
|
|
178
|
+
if (values[value[1]][0] !== 'ArrayBuffer') {
|
|
179
|
+
// without this, if we receive malformed input we could
|
|
180
|
+
// end up trying to hydrate in a circle or allocate
|
|
181
|
+
// huge amounts of memory when we call `new TypedArrayConstructor(buffer)`
|
|
182
|
+
throw new Error('Invalid data');
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const buffer = hydrate(value[1]);
|
|
186
|
+
|
|
187
|
+
hydrated[index] = ops.fromViewInfo(type, buffer, value[2], value[3]);
|
|
188
|
+
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
case 'ArrayBuffer': {
|
|
193
|
+
const base64 = value[1];
|
|
194
|
+
if (typeof base64 !== 'string') {
|
|
195
|
+
throw new Error('Invalid ArrayBuffer encoding');
|
|
196
|
+
}
|
|
197
|
+
hydrated[index] = ops.fromArrayBuffer(decode64(base64));
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
case 'URL':
|
|
202
|
+
case 'URLSearchParams':
|
|
203
|
+
case 'Temporal.Duration':
|
|
204
|
+
case 'Temporal.Instant':
|
|
205
|
+
case 'Temporal.PlainDate':
|
|
206
|
+
case 'Temporal.PlainTime':
|
|
207
|
+
case 'Temporal.PlainDateTime':
|
|
208
|
+
case 'Temporal.PlainMonthDay':
|
|
209
|
+
case 'Temporal.PlainYearMonth':
|
|
210
|
+
case 'Temporal.ZonedDateTime': {
|
|
211
|
+
// the same tags `toStringValue` serializes on the stringify side
|
|
212
|
+
hydrated[index] = ops.fromStringValue(type, value[1]);
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
default:
|
|
217
|
+
throw new Error(`Unknown type ${type}`);
|
|
218
|
+
}
|
|
219
|
+
} else if (value[0] === SPARSE) {
|
|
220
|
+
// Sparse array encoding: [SPARSE, length, idx, val, idx, val, ...]
|
|
221
|
+
const len = value[1];
|
|
222
|
+
|
|
223
|
+
if (!is_valid_array_len(len)) {
|
|
224
|
+
throw new Error('Invalid input');
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// `len` comes from the input rather than being bounded by it, so
|
|
228
|
+
// `createSparseArray` is responsible for not allocating storage
|
|
229
|
+
// proportional to it.
|
|
230
|
+
const array = ops.createSparseArray(len);
|
|
231
|
+
hydrated[index] = array;
|
|
232
|
+
|
|
233
|
+
for (let i = 2; i < value.length; i += 2) {
|
|
234
|
+
const idx = value[i];
|
|
235
|
+
|
|
236
|
+
if (!is_valid_array_index(idx) || idx >= len) {
|
|
237
|
+
throw new Error('Invalid input');
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
ops.set(array, idx, hydrate(value[i + 1]));
|
|
241
|
+
}
|
|
242
|
+
} else {
|
|
243
|
+
const array = ops.createArray(value.length);
|
|
244
|
+
hydrated[index] = array;
|
|
245
|
+
|
|
246
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
247
|
+
const n = value[i];
|
|
248
|
+
if (n === HOLE) continue;
|
|
249
|
+
|
|
250
|
+
ops.set(array, i, hydrate(n));
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
} else {
|
|
254
|
+
const object = ops.createObject();
|
|
255
|
+
hydrated[index] = object;
|
|
256
|
+
|
|
257
|
+
for (const key of Object.keys(value)) {
|
|
258
|
+
if (key === '__proto__') {
|
|
259
|
+
throw new Error('Cannot parse an object with a `__proto__` property');
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
ops.set(object, key, hydrate(value[key]));
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return hydrated[index];
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
return hydrate(0);
|
|
270
|
+
}
|