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,214 @@
|
|
|
1
|
+
import * as util from "../core/util.js";
|
|
2
|
+
const error = () => {
|
|
3
|
+
// Hebrew labels + grammatical gender
|
|
4
|
+
const TypeNames = {
|
|
5
|
+
string: { label: "מחרוזת", gender: "f" },
|
|
6
|
+
number: { label: "מספר", gender: "m" },
|
|
7
|
+
boolean: { label: "ערך בוליאני", gender: "m" },
|
|
8
|
+
bigint: { label: "BigInt", gender: "m" },
|
|
9
|
+
date: { label: "תאריך", gender: "m" },
|
|
10
|
+
array: { label: "מערך", gender: "m" },
|
|
11
|
+
object: { label: "אובייקט", gender: "m" },
|
|
12
|
+
null: { label: "ערך ריק (null)", gender: "m" },
|
|
13
|
+
undefined: { label: "ערך לא מוגדר (undefined)", gender: "m" },
|
|
14
|
+
symbol: { label: "סימבול (Symbol)", gender: "m" },
|
|
15
|
+
function: { label: "פונקציה", gender: "f" },
|
|
16
|
+
map: { label: "מפה (Map)", gender: "f" },
|
|
17
|
+
set: { label: "קבוצה (Set)", gender: "f" },
|
|
18
|
+
file: { label: "קובץ", gender: "m" },
|
|
19
|
+
promise: { label: "Promise", gender: "m" },
|
|
20
|
+
NaN: { label: "NaN", gender: "m" },
|
|
21
|
+
unknown: { label: "ערך לא ידוע", gender: "m" },
|
|
22
|
+
value: { label: "ערך", gender: "m" },
|
|
23
|
+
};
|
|
24
|
+
// Sizing units for size-related messages + localized origin labels
|
|
25
|
+
const Sizable = {
|
|
26
|
+
string: { unit: "תווים", shortLabel: "קצר", longLabel: "ארוך" },
|
|
27
|
+
file: { unit: "בייטים", shortLabel: "קטן", longLabel: "גדול" },
|
|
28
|
+
array: { unit: "פריטים", shortLabel: "קטן", longLabel: "גדול" },
|
|
29
|
+
set: { unit: "פריטים", shortLabel: "קטן", longLabel: "גדול" },
|
|
30
|
+
number: { unit: "", shortLabel: "קטן", longLabel: "גדול" }, // no unit
|
|
31
|
+
};
|
|
32
|
+
// Helpers — labels, articles, and verbs
|
|
33
|
+
const typeEntry = (t) => (t ? TypeNames[t] : undefined);
|
|
34
|
+
const typeLabel = (t) => {
|
|
35
|
+
const e = typeEntry(t);
|
|
36
|
+
if (e)
|
|
37
|
+
return e.label;
|
|
38
|
+
// fallback: show raw string if unknown
|
|
39
|
+
return t ?? TypeNames.unknown.label;
|
|
40
|
+
};
|
|
41
|
+
const withDefinite = (t) => `ה${typeLabel(t)}`;
|
|
42
|
+
const verbFor = (t) => {
|
|
43
|
+
const e = typeEntry(t);
|
|
44
|
+
const gender = e?.gender ?? "m";
|
|
45
|
+
return gender === "f" ? "צריכה להיות" : "צריך להיות";
|
|
46
|
+
};
|
|
47
|
+
const getSizing = (origin) => {
|
|
48
|
+
if (!origin)
|
|
49
|
+
return null;
|
|
50
|
+
return Sizable[origin] ?? null;
|
|
51
|
+
};
|
|
52
|
+
const FormatDictionary = {
|
|
53
|
+
regex: { label: "קלט", gender: "m" },
|
|
54
|
+
email: { label: "כתובת אימייל", gender: "f" },
|
|
55
|
+
url: { label: "כתובת רשת", gender: "f" },
|
|
56
|
+
emoji: { label: "אימוג'י", gender: "m" },
|
|
57
|
+
uuid: { label: "UUID", gender: "m" },
|
|
58
|
+
nanoid: { label: "nanoid", gender: "m" },
|
|
59
|
+
guid: { label: "GUID", gender: "m" },
|
|
60
|
+
cuid: { label: "cuid", gender: "m" },
|
|
61
|
+
cuid2: { label: "cuid2", gender: "m" },
|
|
62
|
+
ulid: { label: "ULID", gender: "m" },
|
|
63
|
+
xid: { label: "XID", gender: "m" },
|
|
64
|
+
ksuid: { label: "KSUID", gender: "m" },
|
|
65
|
+
datetime: { label: "תאריך וזמן ISO", gender: "m" },
|
|
66
|
+
date: { label: "תאריך ISO", gender: "m" },
|
|
67
|
+
time: { label: "זמן ISO", gender: "m" },
|
|
68
|
+
duration: { label: "משך זמן ISO", gender: "m" },
|
|
69
|
+
ipv4: { label: "כתובת IPv4", gender: "f" },
|
|
70
|
+
ipv6: { label: "כתובת IPv6", gender: "f" },
|
|
71
|
+
cidrv4: { label: "טווח IPv4", gender: "m" },
|
|
72
|
+
cidrv6: { label: "טווח IPv6", gender: "m" },
|
|
73
|
+
base64: { label: "מחרוזת בבסיס 64", gender: "f" },
|
|
74
|
+
base64url: { label: "מחרוזת בבסיס 64 לכתובות רשת", gender: "f" },
|
|
75
|
+
json_string: { label: "מחרוזת JSON", gender: "f" },
|
|
76
|
+
e164: { label: "מספר E.164", gender: "m" },
|
|
77
|
+
jwt: { label: "JWT", gender: "m" },
|
|
78
|
+
ends_with: { label: "קלט", gender: "m" },
|
|
79
|
+
includes: { label: "קלט", gender: "m" },
|
|
80
|
+
lowercase: { label: "קלט", gender: "m" },
|
|
81
|
+
starts_with: { label: "קלט", gender: "m" },
|
|
82
|
+
uppercase: { label: "קלט", gender: "m" },
|
|
83
|
+
};
|
|
84
|
+
const TypeDictionary = {
|
|
85
|
+
nan: "NaN",
|
|
86
|
+
};
|
|
87
|
+
return (issue) => {
|
|
88
|
+
switch (issue.code) {
|
|
89
|
+
case "invalid_type": {
|
|
90
|
+
// Expected type: show without definite article for clearer Hebrew
|
|
91
|
+
const expectedKey = issue.expected;
|
|
92
|
+
const expected = TypeDictionary[expectedKey ?? ""] ?? typeLabel(expectedKey);
|
|
93
|
+
// Received: show localized label if known, otherwise constructor/raw
|
|
94
|
+
const receivedType = util.parsedType(issue.input);
|
|
95
|
+
const received = TypeDictionary[receivedType] ?? TypeNames[receivedType]?.label ?? receivedType;
|
|
96
|
+
if (/^[A-Z]/.test(issue.expected)) {
|
|
97
|
+
return `קלט לא תקין: צריך להיות instanceof ${issue.expected}, התקבל ${received}`;
|
|
98
|
+
}
|
|
99
|
+
return `קלט לא תקין: צריך להיות ${expected}, התקבל ${received}`;
|
|
100
|
+
}
|
|
101
|
+
case "invalid_value": {
|
|
102
|
+
if (issue.values.length === 1) {
|
|
103
|
+
return `ערך לא תקין: הערך חייב להיות ${util.stringifyPrimitive(issue.values[0])}`;
|
|
104
|
+
}
|
|
105
|
+
// Join values with proper Hebrew formatting
|
|
106
|
+
const stringified = issue.values.map((v) => util.stringifyPrimitive(v));
|
|
107
|
+
if (issue.values.length === 2) {
|
|
108
|
+
return `ערך לא תקין: האפשרויות המתאימות הן ${stringified[0]} או ${stringified[1]}`;
|
|
109
|
+
}
|
|
110
|
+
// For 3+ values: "a", "b" או "c"
|
|
111
|
+
const lastValue = stringified[stringified.length - 1];
|
|
112
|
+
const restValues = stringified.slice(0, -1).join(", ");
|
|
113
|
+
return `ערך לא תקין: האפשרויות המתאימות הן ${restValues} או ${lastValue}`;
|
|
114
|
+
}
|
|
115
|
+
case "too_big": {
|
|
116
|
+
const sizing = getSizing(issue.origin);
|
|
117
|
+
const subject = withDefinite(issue.origin ?? "value");
|
|
118
|
+
if (issue.origin === "string") {
|
|
119
|
+
// Special handling for strings - more natural Hebrew
|
|
120
|
+
return `${sizing?.longLabel ?? "ארוך"} מדי: ${subject} צריכה להכיל ${issue.maximum.toString()} ${sizing?.unit ?? ""} ${issue.inclusive ? "או פחות" : "לכל היותר"}`.trim();
|
|
121
|
+
}
|
|
122
|
+
if (issue.origin === "number") {
|
|
123
|
+
// Natural Hebrew for numbers
|
|
124
|
+
const comparison = issue.inclusive ? `קטן או שווה ל-${issue.maximum}` : `קטן מ-${issue.maximum}`;
|
|
125
|
+
return `גדול מדי: ${subject} צריך להיות ${comparison}`;
|
|
126
|
+
}
|
|
127
|
+
if (issue.origin === "array" || issue.origin === "set") {
|
|
128
|
+
// Natural Hebrew for arrays and sets
|
|
129
|
+
const verb = issue.origin === "set" ? "צריכה" : "צריך";
|
|
130
|
+
const comparison = issue.inclusive
|
|
131
|
+
? `${issue.maximum} ${sizing?.unit ?? ""} או פחות`
|
|
132
|
+
: `פחות מ-${issue.maximum} ${sizing?.unit ?? ""}`;
|
|
133
|
+
return `גדול מדי: ${subject} ${verb} להכיל ${comparison}`.trim();
|
|
134
|
+
}
|
|
135
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
136
|
+
const be = verbFor(issue.origin ?? "value");
|
|
137
|
+
if (sizing?.unit) {
|
|
138
|
+
return `${sizing.longLabel} מדי: ${subject} ${be} ${adj}${issue.maximum.toString()} ${sizing.unit}`;
|
|
139
|
+
}
|
|
140
|
+
return `${sizing?.longLabel ?? "גדול"} מדי: ${subject} ${be} ${adj}${issue.maximum.toString()}`;
|
|
141
|
+
}
|
|
142
|
+
case "too_small": {
|
|
143
|
+
const sizing = getSizing(issue.origin);
|
|
144
|
+
const subject = withDefinite(issue.origin ?? "value");
|
|
145
|
+
if (issue.origin === "string") {
|
|
146
|
+
// Special handling for strings - more natural Hebrew
|
|
147
|
+
return `${sizing?.shortLabel ?? "קצר"} מדי: ${subject} צריכה להכיל ${issue.minimum.toString()} ${sizing?.unit ?? ""} ${issue.inclusive ? "או יותר" : "לפחות"}`.trim();
|
|
148
|
+
}
|
|
149
|
+
if (issue.origin === "number") {
|
|
150
|
+
// Natural Hebrew for numbers
|
|
151
|
+
const comparison = issue.inclusive ? `גדול או שווה ל-${issue.minimum}` : `גדול מ-${issue.minimum}`;
|
|
152
|
+
return `קטן מדי: ${subject} צריך להיות ${comparison}`;
|
|
153
|
+
}
|
|
154
|
+
if (issue.origin === "array" || issue.origin === "set") {
|
|
155
|
+
// Natural Hebrew for arrays and sets
|
|
156
|
+
const verb = issue.origin === "set" ? "צריכה" : "צריך";
|
|
157
|
+
// Special case for singular (minimum === 1)
|
|
158
|
+
if (issue.minimum === 1 && issue.inclusive) {
|
|
159
|
+
const singularPhrase = issue.origin === "set" ? "לפחות פריט אחד" : "לפחות פריט אחד";
|
|
160
|
+
return `קטן מדי: ${subject} ${verb} להכיל ${singularPhrase}`;
|
|
161
|
+
}
|
|
162
|
+
const comparison = issue.inclusive
|
|
163
|
+
? `${issue.minimum} ${sizing?.unit ?? ""} או יותר`
|
|
164
|
+
: `יותר מ-${issue.minimum} ${sizing?.unit ?? ""}`;
|
|
165
|
+
return `קטן מדי: ${subject} ${verb} להכיל ${comparison}`.trim();
|
|
166
|
+
}
|
|
167
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
168
|
+
const be = verbFor(issue.origin ?? "value");
|
|
169
|
+
if (sizing?.unit) {
|
|
170
|
+
return `${sizing.shortLabel} מדי: ${subject} ${be} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
171
|
+
}
|
|
172
|
+
return `${sizing?.shortLabel ?? "קטן"} מדי: ${subject} ${be} ${adj}${issue.minimum.toString()}`;
|
|
173
|
+
}
|
|
174
|
+
case "invalid_format": {
|
|
175
|
+
const _issue = issue;
|
|
176
|
+
// These apply to strings — use feminine grammar + ה׳ הידיעה
|
|
177
|
+
if (_issue.format === "starts_with")
|
|
178
|
+
return `המחרוזת חייבת להתחיל ב "${_issue.prefix}"`;
|
|
179
|
+
if (_issue.format === "ends_with")
|
|
180
|
+
return `המחרוזת חייבת להסתיים ב "${_issue.suffix}"`;
|
|
181
|
+
if (_issue.format === "includes")
|
|
182
|
+
return `המחרוזת חייבת לכלול "${_issue.includes}"`;
|
|
183
|
+
if (_issue.format === "regex")
|
|
184
|
+
return `המחרוזת חייבת להתאים לתבנית ${_issue.pattern}`;
|
|
185
|
+
// Handle gender agreement for formats
|
|
186
|
+
const nounEntry = FormatDictionary[_issue.format];
|
|
187
|
+
const noun = nounEntry?.label ?? _issue.format;
|
|
188
|
+
const gender = nounEntry?.gender ?? "m";
|
|
189
|
+
const adjective = gender === "f" ? "תקינה" : "תקין";
|
|
190
|
+
return `${noun} לא ${adjective}`;
|
|
191
|
+
}
|
|
192
|
+
case "not_multiple_of":
|
|
193
|
+
return `מספר לא תקין: חייב להיות מכפלה של ${issue.divisor}`;
|
|
194
|
+
case "unrecognized_keys":
|
|
195
|
+
return `מפתח${issue.keys.length > 1 ? "ות" : ""} לא מזוה${issue.keys.length > 1 ? "ים" : "ה"}: ${util.joinValues(issue.keys, ", ")}`;
|
|
196
|
+
case "invalid_key": {
|
|
197
|
+
return `שדה לא תקין באובייקט`;
|
|
198
|
+
}
|
|
199
|
+
case "invalid_union":
|
|
200
|
+
return "קלט לא תקין";
|
|
201
|
+
case "invalid_element": {
|
|
202
|
+
const place = withDefinite(issue.origin ?? "array");
|
|
203
|
+
return `ערך לא תקין ב${place}`;
|
|
204
|
+
}
|
|
205
|
+
default:
|
|
206
|
+
return `קלט לא תקין`;
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
export default function () {
|
|
211
|
+
return {
|
|
212
|
+
localeError: error(),
|
|
213
|
+
};
|
|
214
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as util from "../core/util.js";
|
|
2
|
+
const error = () => {
|
|
3
|
+
const Sizable = {
|
|
4
|
+
string: { unit: "znakova", verb: "imati" },
|
|
5
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
6
|
+
array: { unit: "stavki", verb: "imati" },
|
|
7
|
+
set: { unit: "stavki", verb: "imati" },
|
|
8
|
+
};
|
|
9
|
+
function getSizing(origin) {
|
|
10
|
+
return Sizable[origin] ?? null;
|
|
11
|
+
}
|
|
12
|
+
const FormatDictionary = {
|
|
13
|
+
regex: "unos",
|
|
14
|
+
email: "email adresa",
|
|
15
|
+
url: "URL",
|
|
16
|
+
emoji: "emoji",
|
|
17
|
+
uuid: "UUID",
|
|
18
|
+
uuidv4: "UUIDv4",
|
|
19
|
+
uuidv6: "UUIDv6",
|
|
20
|
+
nanoid: "nanoid",
|
|
21
|
+
guid: "GUID",
|
|
22
|
+
cuid: "cuid",
|
|
23
|
+
cuid2: "cuid2",
|
|
24
|
+
ulid: "ULID",
|
|
25
|
+
xid: "XID",
|
|
26
|
+
ksuid: "KSUID",
|
|
27
|
+
datetime: "ISO datum i vrijeme",
|
|
28
|
+
date: "ISO datum",
|
|
29
|
+
time: "ISO vrijeme",
|
|
30
|
+
duration: "ISO trajanje",
|
|
31
|
+
ipv4: "IPv4 adresa",
|
|
32
|
+
ipv6: "IPv6 adresa",
|
|
33
|
+
cidrv4: "IPv4 raspon",
|
|
34
|
+
cidrv6: "IPv6 raspon",
|
|
35
|
+
base64: "base64 kodirani tekst",
|
|
36
|
+
base64url: "base64url kodirani tekst",
|
|
37
|
+
json_string: "JSON tekst",
|
|
38
|
+
e164: "E.164 broj",
|
|
39
|
+
jwt: "JWT",
|
|
40
|
+
template_literal: "unos",
|
|
41
|
+
};
|
|
42
|
+
const TypeDictionary = {
|
|
43
|
+
nan: "NaN",
|
|
44
|
+
string: "tekst",
|
|
45
|
+
number: "broj",
|
|
46
|
+
boolean: "boolean",
|
|
47
|
+
array: "niz",
|
|
48
|
+
object: "objekt",
|
|
49
|
+
set: "skup",
|
|
50
|
+
file: "datoteka",
|
|
51
|
+
date: "datum",
|
|
52
|
+
bigint: "bigint",
|
|
53
|
+
symbol: "simbol",
|
|
54
|
+
undefined: "undefined",
|
|
55
|
+
null: "null",
|
|
56
|
+
function: "funkcija",
|
|
57
|
+
map: "mapa",
|
|
58
|
+
};
|
|
59
|
+
return (issue) => {
|
|
60
|
+
switch (issue.code) {
|
|
61
|
+
case "invalid_type": {
|
|
62
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
63
|
+
const receivedType = util.parsedType(issue.input);
|
|
64
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
65
|
+
if (/^[A-Z]/.test(issue.expected)) {
|
|
66
|
+
return `Neispravan unos: očekuje se instanceof ${issue.expected}, a primljeno je ${received}`;
|
|
67
|
+
}
|
|
68
|
+
return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;
|
|
69
|
+
}
|
|
70
|
+
case "invalid_value":
|
|
71
|
+
if (issue.values.length === 1)
|
|
72
|
+
return `Neispravna vrijednost: očekivano ${util.stringifyPrimitive(issue.values[0])}`;
|
|
73
|
+
return `Neispravna opcija: očekivano jedno od ${util.joinValues(issue.values, "|")}`;
|
|
74
|
+
case "too_big": {
|
|
75
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
76
|
+
const sizing = getSizing(issue.origin);
|
|
77
|
+
const origin = TypeDictionary[issue.origin] ?? issue.origin;
|
|
78
|
+
if (sizing)
|
|
79
|
+
return `Preveliko: očekivano da ${origin ?? "vrijednost"} ima ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
80
|
+
return `Preveliko: očekivano da ${origin ?? "vrijednost"} bude ${adj}${issue.maximum.toString()}`;
|
|
81
|
+
}
|
|
82
|
+
case "too_small": {
|
|
83
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
84
|
+
const sizing = getSizing(issue.origin);
|
|
85
|
+
const origin = TypeDictionary[issue.origin] ?? issue.origin;
|
|
86
|
+
if (sizing) {
|
|
87
|
+
return `Premalo: očekivano da ${origin} ima ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
88
|
+
}
|
|
89
|
+
return `Premalo: očekivano da ${origin} bude ${adj}${issue.minimum.toString()}`;
|
|
90
|
+
}
|
|
91
|
+
case "invalid_format": {
|
|
92
|
+
const _issue = issue;
|
|
93
|
+
if (_issue.format === "starts_with")
|
|
94
|
+
return `Neispravan tekst: mora započinjati s "${_issue.prefix}"`;
|
|
95
|
+
if (_issue.format === "ends_with")
|
|
96
|
+
return `Neispravan tekst: mora završavati s "${_issue.suffix}"`;
|
|
97
|
+
if (_issue.format === "includes")
|
|
98
|
+
return `Neispravan tekst: mora sadržavati "${_issue.includes}"`;
|
|
99
|
+
if (_issue.format === "regex")
|
|
100
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
101
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
102
|
+
}
|
|
103
|
+
case "not_multiple_of":
|
|
104
|
+
return `Neispravan broj: mora biti višekratnik od ${issue.divisor}`;
|
|
105
|
+
case "unrecognized_keys":
|
|
106
|
+
return `Neprepoznat${issue.keys.length > 1 ? "i ključevi" : " ključ"}: ${util.joinValues(issue.keys, ", ")}`;
|
|
107
|
+
case "invalid_key":
|
|
108
|
+
return `Neispravan ključ u ${TypeDictionary[issue.origin] ?? issue.origin}`;
|
|
109
|
+
case "invalid_union":
|
|
110
|
+
return "Neispravan unos";
|
|
111
|
+
case "invalid_element":
|
|
112
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue.origin] ?? issue.origin}`;
|
|
113
|
+
default:
|
|
114
|
+
return `Neispravan unos`;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export default function () {
|
|
119
|
+
return {
|
|
120
|
+
localeError: error(),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as util from "../core/util.js";
|
|
2
|
+
const error = () => {
|
|
3
|
+
const Sizable = {
|
|
4
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
5
|
+
file: { unit: "byte", verb: "legyen" },
|
|
6
|
+
array: { unit: "elem", verb: "legyen" },
|
|
7
|
+
set: { unit: "elem", verb: "legyen" },
|
|
8
|
+
};
|
|
9
|
+
function getSizing(origin) {
|
|
10
|
+
return Sizable[origin] ?? null;
|
|
11
|
+
}
|
|
12
|
+
const FormatDictionary = {
|
|
13
|
+
regex: "bemenet",
|
|
14
|
+
email: "email cím",
|
|
15
|
+
url: "URL",
|
|
16
|
+
emoji: "emoji",
|
|
17
|
+
uuid: "UUID",
|
|
18
|
+
uuidv4: "UUIDv4",
|
|
19
|
+
uuidv6: "UUIDv6",
|
|
20
|
+
nanoid: "nanoid",
|
|
21
|
+
guid: "GUID",
|
|
22
|
+
cuid: "cuid",
|
|
23
|
+
cuid2: "cuid2",
|
|
24
|
+
ulid: "ULID",
|
|
25
|
+
xid: "XID",
|
|
26
|
+
ksuid: "KSUID",
|
|
27
|
+
datetime: "ISO időbélyeg",
|
|
28
|
+
date: "ISO dátum",
|
|
29
|
+
time: "ISO idő",
|
|
30
|
+
duration: "ISO időintervallum",
|
|
31
|
+
ipv4: "IPv4 cím",
|
|
32
|
+
ipv6: "IPv6 cím",
|
|
33
|
+
cidrv4: "IPv4 tartomány",
|
|
34
|
+
cidrv6: "IPv6 tartomány",
|
|
35
|
+
base64: "base64-kódolt string",
|
|
36
|
+
base64url: "base64url-kódolt string",
|
|
37
|
+
json_string: "JSON string",
|
|
38
|
+
e164: "E.164 szám",
|
|
39
|
+
jwt: "JWT",
|
|
40
|
+
template_literal: "bemenet",
|
|
41
|
+
};
|
|
42
|
+
const TypeDictionary = {
|
|
43
|
+
nan: "NaN",
|
|
44
|
+
number: "szám",
|
|
45
|
+
array: "tömb",
|
|
46
|
+
};
|
|
47
|
+
return (issue) => {
|
|
48
|
+
switch (issue.code) {
|
|
49
|
+
case "invalid_type": {
|
|
50
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
51
|
+
const receivedType = util.parsedType(issue.input);
|
|
52
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
53
|
+
if (/^[A-Z]/.test(issue.expected)) {
|
|
54
|
+
return `Érvénytelen bemenet: a várt érték instanceof ${issue.expected}, a kapott érték ${received}`;
|
|
55
|
+
}
|
|
56
|
+
return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;
|
|
57
|
+
}
|
|
58
|
+
case "invalid_value":
|
|
59
|
+
if (issue.values.length === 1)
|
|
60
|
+
return `Érvénytelen bemenet: a várt érték ${util.stringifyPrimitive(issue.values[0])}`;
|
|
61
|
+
return `Érvénytelen opció: valamelyik érték várt ${util.joinValues(issue.values, "|")}`;
|
|
62
|
+
case "too_big": {
|
|
63
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
64
|
+
const sizing = getSizing(issue.origin);
|
|
65
|
+
if (sizing)
|
|
66
|
+
return `Túl nagy: ${issue.origin ?? "érték"} mérete túl nagy ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
67
|
+
return `Túl nagy: a bemeneti érték ${issue.origin ?? "érték"} túl nagy: ${adj}${issue.maximum.toString()}`;
|
|
68
|
+
}
|
|
69
|
+
case "too_small": {
|
|
70
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
71
|
+
const sizing = getSizing(issue.origin);
|
|
72
|
+
if (sizing) {
|
|
73
|
+
return `Túl kicsi: a bemeneti érték ${issue.origin} mérete túl kicsi ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
74
|
+
}
|
|
75
|
+
return `Túl kicsi: a bemeneti érték ${issue.origin} túl kicsi ${adj}${issue.minimum.toString()}`;
|
|
76
|
+
}
|
|
77
|
+
case "invalid_format": {
|
|
78
|
+
const _issue = issue;
|
|
79
|
+
if (_issue.format === "starts_with")
|
|
80
|
+
return `Érvénytelen string: "${_issue.prefix}" értékkel kell kezdődnie`;
|
|
81
|
+
if (_issue.format === "ends_with")
|
|
82
|
+
return `Érvénytelen string: "${_issue.suffix}" értékkel kell végződnie`;
|
|
83
|
+
if (_issue.format === "includes")
|
|
84
|
+
return `Érvénytelen string: "${_issue.includes}" értéket kell tartalmaznia`;
|
|
85
|
+
if (_issue.format === "regex")
|
|
86
|
+
return `Érvénytelen string: ${_issue.pattern} mintának kell megfelelnie`;
|
|
87
|
+
return `Érvénytelen ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
88
|
+
}
|
|
89
|
+
case "not_multiple_of":
|
|
90
|
+
return `Érvénytelen szám: ${issue.divisor} többszörösének kell lennie`;
|
|
91
|
+
case "unrecognized_keys":
|
|
92
|
+
return `Ismeretlen kulcs${issue.keys.length > 1 ? "s" : ""}: ${util.joinValues(issue.keys, ", ")}`;
|
|
93
|
+
case "invalid_key":
|
|
94
|
+
return `Érvénytelen kulcs ${issue.origin}`;
|
|
95
|
+
case "invalid_union":
|
|
96
|
+
return "Érvénytelen bemenet";
|
|
97
|
+
case "invalid_element":
|
|
98
|
+
return `Érvénytelen érték: ${issue.origin}`;
|
|
99
|
+
default:
|
|
100
|
+
return `Érvénytelen bemenet`;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
export default function () {
|
|
105
|
+
return {
|
|
106
|
+
localeError: error(),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import * as util from "../core/util.js";
|
|
2
|
+
function getArmenianPlural(count, one, many) {
|
|
3
|
+
return Math.abs(count) === 1 ? one : many;
|
|
4
|
+
}
|
|
5
|
+
function withDefiniteArticle(word) {
|
|
6
|
+
if (!word)
|
|
7
|
+
return "";
|
|
8
|
+
const vowels = ["ա", "ե", "ը", "ի", "ո", "ու", "օ"];
|
|
9
|
+
const lastChar = word[word.length - 1];
|
|
10
|
+
return word + (vowels.includes(lastChar) ? "ն" : "ը");
|
|
11
|
+
}
|
|
12
|
+
const error = () => {
|
|
13
|
+
const Sizable = {
|
|
14
|
+
string: {
|
|
15
|
+
unit: {
|
|
16
|
+
one: "նշան",
|
|
17
|
+
many: "նշաններ",
|
|
18
|
+
},
|
|
19
|
+
verb: "ունենալ",
|
|
20
|
+
},
|
|
21
|
+
file: {
|
|
22
|
+
unit: {
|
|
23
|
+
one: "բայթ",
|
|
24
|
+
many: "բայթեր",
|
|
25
|
+
},
|
|
26
|
+
verb: "ունենալ",
|
|
27
|
+
},
|
|
28
|
+
array: {
|
|
29
|
+
unit: {
|
|
30
|
+
one: "տարր",
|
|
31
|
+
many: "տարրեր",
|
|
32
|
+
},
|
|
33
|
+
verb: "ունենալ",
|
|
34
|
+
},
|
|
35
|
+
set: {
|
|
36
|
+
unit: {
|
|
37
|
+
one: "տարր",
|
|
38
|
+
many: "տարրեր",
|
|
39
|
+
},
|
|
40
|
+
verb: "ունենալ",
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
function getSizing(origin) {
|
|
44
|
+
return Sizable[origin] ?? null;
|
|
45
|
+
}
|
|
46
|
+
const FormatDictionary = {
|
|
47
|
+
regex: "մուտք",
|
|
48
|
+
email: "էլ. հասցե",
|
|
49
|
+
url: "URL",
|
|
50
|
+
emoji: "էմոջի",
|
|
51
|
+
uuid: "UUID",
|
|
52
|
+
uuidv4: "UUIDv4",
|
|
53
|
+
uuidv6: "UUIDv6",
|
|
54
|
+
nanoid: "nanoid",
|
|
55
|
+
guid: "GUID",
|
|
56
|
+
cuid: "cuid",
|
|
57
|
+
cuid2: "cuid2",
|
|
58
|
+
ulid: "ULID",
|
|
59
|
+
xid: "XID",
|
|
60
|
+
ksuid: "KSUID",
|
|
61
|
+
datetime: "ISO ամսաթիվ և ժամ",
|
|
62
|
+
date: "ISO ամսաթիվ",
|
|
63
|
+
time: "ISO ժամ",
|
|
64
|
+
duration: "ISO տևողություն",
|
|
65
|
+
ipv4: "IPv4 հասցե",
|
|
66
|
+
ipv6: "IPv6 հասցե",
|
|
67
|
+
cidrv4: "IPv4 միջակայք",
|
|
68
|
+
cidrv6: "IPv6 միջակայք",
|
|
69
|
+
base64: "base64 ձևաչափով տող",
|
|
70
|
+
base64url: "base64url ձևաչափով տող",
|
|
71
|
+
json_string: "JSON տող",
|
|
72
|
+
e164: "E.164 համար",
|
|
73
|
+
jwt: "JWT",
|
|
74
|
+
template_literal: "մուտք",
|
|
75
|
+
};
|
|
76
|
+
const TypeDictionary = {
|
|
77
|
+
nan: "NaN",
|
|
78
|
+
number: "թիվ",
|
|
79
|
+
array: "զանգված",
|
|
80
|
+
};
|
|
81
|
+
return (issue) => {
|
|
82
|
+
switch (issue.code) {
|
|
83
|
+
case "invalid_type": {
|
|
84
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
85
|
+
const receivedType = util.parsedType(issue.input);
|
|
86
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
87
|
+
if (/^[A-Z]/.test(issue.expected)) {
|
|
88
|
+
return `Սխալ մուտքագրում․ սպասվում էր instanceof ${issue.expected}, ստացվել է ${received}`;
|
|
89
|
+
}
|
|
90
|
+
return `Սխալ մուտքագրում․ սպասվում էր ${expected}, ստացվել է ${received}`;
|
|
91
|
+
}
|
|
92
|
+
case "invalid_value":
|
|
93
|
+
if (issue.values.length === 1)
|
|
94
|
+
return `Սխալ մուտքագրում․ սպասվում էր ${util.stringifyPrimitive(issue.values[1])}`;
|
|
95
|
+
return `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${util.joinValues(issue.values, "|")}`;
|
|
96
|
+
case "too_big": {
|
|
97
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
98
|
+
const sizing = getSizing(issue.origin);
|
|
99
|
+
if (sizing) {
|
|
100
|
+
const maxValue = Number(issue.maximum);
|
|
101
|
+
const unit = getArmenianPlural(maxValue, sizing.unit.one, sizing.unit.many);
|
|
102
|
+
return `Չափազանց մեծ արժեք․ սպասվում է, որ ${withDefiniteArticle(issue.origin ?? "արժեք")} կունենա ${adj}${issue.maximum.toString()} ${unit}`;
|
|
103
|
+
}
|
|
104
|
+
return `Չափազանց մեծ արժեք․ սպասվում է, որ ${withDefiniteArticle(issue.origin ?? "արժեք")} լինի ${adj}${issue.maximum.toString()}`;
|
|
105
|
+
}
|
|
106
|
+
case "too_small": {
|
|
107
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
108
|
+
const sizing = getSizing(issue.origin);
|
|
109
|
+
if (sizing) {
|
|
110
|
+
const minValue = Number(issue.minimum);
|
|
111
|
+
const unit = getArmenianPlural(minValue, sizing.unit.one, sizing.unit.many);
|
|
112
|
+
return `Չափազանց փոքր արժեք․ սպասվում է, որ ${withDefiniteArticle(issue.origin)} կունենա ${adj}${issue.minimum.toString()} ${unit}`;
|
|
113
|
+
}
|
|
114
|
+
return `Չափազանց փոքր արժեք․ սպասվում է, որ ${withDefiniteArticle(issue.origin)} լինի ${adj}${issue.minimum.toString()}`;
|
|
115
|
+
}
|
|
116
|
+
case "invalid_format": {
|
|
117
|
+
const _issue = issue;
|
|
118
|
+
if (_issue.format === "starts_with")
|
|
119
|
+
return `Սխալ տող․ պետք է սկսվի "${_issue.prefix}"-ով`;
|
|
120
|
+
if (_issue.format === "ends_with")
|
|
121
|
+
return `Սխալ տող․ պետք է ավարտվի "${_issue.suffix}"-ով`;
|
|
122
|
+
if (_issue.format === "includes")
|
|
123
|
+
return `Սխալ տող․ պետք է պարունակի "${_issue.includes}"`;
|
|
124
|
+
if (_issue.format === "regex")
|
|
125
|
+
return `Սխալ տող․ պետք է համապատասխանի ${_issue.pattern} ձևաչափին`;
|
|
126
|
+
return `Սխալ ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
127
|
+
}
|
|
128
|
+
case "not_multiple_of":
|
|
129
|
+
return `Սխալ թիվ․ պետք է բազմապատիկ լինի ${issue.divisor}-ի`;
|
|
130
|
+
case "unrecognized_keys":
|
|
131
|
+
return `Չճանաչված բանալի${issue.keys.length > 1 ? "ներ" : ""}. ${util.joinValues(issue.keys, ", ")}`;
|
|
132
|
+
case "invalid_key":
|
|
133
|
+
return `Սխալ բանալի ${withDefiniteArticle(issue.origin)}-ում`;
|
|
134
|
+
case "invalid_union":
|
|
135
|
+
return "Սխալ մուտքագրում";
|
|
136
|
+
case "invalid_element":
|
|
137
|
+
return `Սխալ արժեք ${withDefiniteArticle(issue.origin)}-ում`;
|
|
138
|
+
default:
|
|
139
|
+
return `Սխալ մուտքագրում`;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
export default function () {
|
|
144
|
+
return {
|
|
145
|
+
localeError: error(),
|
|
146
|
+
};
|
|
147
|
+
}
|