@holoscript/core 6.0.4 → 6.1.2
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/LICENSE +21 -0
- package/README.md +3 -3
- package/bin/holoscript.cjs +3 -0
- package/dist/GLTFPipeline-SFIORFJU.js +16 -0
- package/dist/GLTFPipeline-VNNDPONV.cjs +37 -0
- package/dist/{HoloScriptPlusParser-BN6KVRCM.js → HoloScriptPlusParser-7FBIFUFC.js} +6 -5
- package/dist/{HoloScriptPlusParser-NC5FE6AL.cjs → HoloScriptPlusParser-A2W7OCN2.cjs} +17 -16
- package/dist/HoloScriptPlusParser-F2Z56FJR.js +10 -0
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +27 -0
- package/dist/{USDZExporter-UWGWNMMD.cjs → USDZExporter-3FWJ25JI.cjs} +344 -16
- package/dist/{USDZExporter-NTMBNTDB.js → USDZExporter-D2HQLQYK.js} +344 -16
- package/dist/agents/index.cjs +19 -0
- package/dist/agents/index.d.ts +100 -0
- package/dist/agents/index.js +17 -0
- package/dist/chunk-22W6NGYN.js +725 -0
- package/dist/{chunk-5OEOHAAW.cjs → chunk-27MPVJVZ.cjs} +64 -28
- package/dist/{chunk-RVYPEYPX.js → chunk-2A7FURVO.js} +44 -8
- package/dist/{chunk-XCWFGZAA.js → chunk-2B7WVIDZ.js} +11 -8
- package/dist/{chunk-NDQNIJEH.js → chunk-2BSMSUCE.js} +250 -24
- package/dist/chunk-2HLIGOKU.cjs +5546 -0
- package/dist/{chunk-EONILVMF.js → chunk-2M2DPHKB.js} +4 -4
- package/dist/{chunk-G7CT3EMP.cjs → chunk-2YSNA2F2.cjs} +319 -47
- package/dist/{chunk-IWI6J7FX.js → chunk-33XCOVE3.js} +5 -5
- package/dist/chunk-3FOKASKO.cjs +348 -0
- package/dist/{chunk-DXJQDCFL.js → chunk-4C57PR42.js} +3 -3
- package/dist/{chunk-MPXBVFHQ.js → chunk-4N4SXXWF.js} +4 -3
- package/dist/chunk-4PDEPEQW.cjs +41 -0
- package/dist/chunk-4R6HPSHJ.js +2176 -0
- package/dist/chunk-4R6SBXDB.js +45 -0
- package/dist/chunk-4SY77NA4.cjs +413 -0
- package/dist/{chunk-YCXFCXDS.js → chunk-4UUKPCY4.js} +668 -110
- package/dist/{chunk-LGGRPKTV.cjs → chunk-52ULD552.cjs} +114 -35
- package/dist/{chunk-L4G4RLXX.js → chunk-5CKA5SXU.js} +438 -22
- package/dist/chunk-5FSKKMR7.cjs +2092 -0
- package/dist/{chunk-FF3Q7ADR.js → chunk-5JEU52DW.js} +5 -3
- package/dist/chunk-5N54COB6.cjs +327 -0
- package/dist/chunk-5S7RKFGR.cjs +446 -0
- package/dist/{chunk-KED34ILP.js → chunk-6ASWLXXN.js} +21 -9
- package/dist/chunk-6CTRH7HT.cjs +1985 -0
- package/dist/{chunk-CAUCGUEA.cjs → chunk-6EX3I5P4.cjs} +6 -6
- package/dist/chunk-6FGQNDR4.js +5731 -0
- package/dist/{chunk-72EQECGT.cjs → chunk-6KMK2UXT.cjs} +122 -46
- package/dist/{chunk-G4VZTCIB.js → chunk-6L4VE27M.js} +33 -23
- package/dist/{chunk-ATSKSYVE.cjs → chunk-6S6TKNEA.cjs} +6478 -1738
- package/dist/chunk-77V4GTCA.js +596 -0
- package/dist/{chunk-ZP4D3CSX.cjs → chunk-7AD52FRS.cjs} +16 -16
- package/dist/chunk-A6KINLZJ.js +236 -0
- package/dist/chunk-AIA52I7T.cjs +543 -0
- package/dist/chunk-AIX25INK.cjs +602 -0
- package/dist/{chunk-B5TCIAPQ.cjs → chunk-AO4I2Z7M.cjs} +17 -18
- package/dist/{chunk-Q5SJOGHQ.cjs → chunk-BPICAGBV.cjs} +324 -199
- package/dist/chunk-BRQJKJGT.cjs +20 -0
- package/dist/{chunk-3FXV5S25.cjs → chunk-C37BHB7N.cjs} +6 -3
- package/dist/{chunk-XUTX5CBW.js → chunk-CBJY23VL.js} +3 -3
- package/dist/chunk-CIWWXYHZ.cjs +50 -0
- package/dist/{chunk-XXINBTZK.cjs → chunk-DIL6DDDN.cjs} +101 -45
- package/dist/chunk-DMXC24WV.js +404 -0
- package/dist/{chunk-PMGODDJA.cjs → chunk-DTGBOSEM.cjs} +12 -12
- package/dist/chunk-E7JP3BS3.cjs +61 -0
- package/dist/{chunk-HJJLD366.js → chunk-EKBKLK7P.js} +3 -3
- package/dist/chunk-EKYL4PE3.cjs +404 -0
- package/dist/{chunk-UPJBDCVF.js → chunk-EMMC5CSQ.js} +12 -8
- package/dist/{chunk-GGHSW2NN.js → chunk-EOBB6A4B.js} +6389 -1718
- package/dist/chunk-EOFNVCM6.js +325 -0
- package/dist/{chunk-FHQVYCH2.js → chunk-ER4GATIU.js} +7 -7
- package/dist/{chunk-N5FTS757.cjs → chunk-EXKSFGSX.cjs} +7 -148
- package/dist/{chunk-LK5IAVH6.cjs → chunk-EXUP2BUM.cjs} +27 -27
- package/dist/chunk-FDSGHPAK.js +130 -0
- package/dist/chunk-FEWUHQNM.cjs +144 -0
- package/dist/{chunk-5TOFIR6L.js → chunk-FGGJQRLZ.js} +5 -142
- package/dist/chunk-FHP6LXJS.js +415 -0
- package/dist/{chunk-7LCYLPW2.cjs → chunk-FJPADH77.cjs} +7 -4
- package/dist/{chunk-T36DDXSF.js → chunk-FXKTYFYA.js} +150 -25
- package/dist/chunk-G2LS3RFO.js +623 -0
- package/dist/chunk-GCMWDSBZ.cjs +729 -0
- package/dist/chunk-GJNCFRJU.cjs +125 -0
- package/dist/{chunk-Q4QX3AET.cjs → chunk-GMP623FG.cjs} +16 -13
- package/dist/{chunk-XD6IYDUX.js → chunk-GN3KDX4W.js} +119 -43
- package/dist/{chunk-QLEAOI3Q.cjs → chunk-GQYKQSTC.cjs} +10 -10
- package/dist/chunk-GTU2Z2WW.cjs +262 -0
- package/dist/chunk-GZG4KA4E.js +529 -0
- package/dist/{chunk-BND3ST2K.cjs → chunk-H3MGK7TX.cjs} +42 -32
- package/dist/{chunk-XRKWN5PL.cjs → chunk-H5DZIHJP.cjs} +14 -18
- package/dist/{chunk-Z34RLXRA.cjs → chunk-HANL7K2Q.cjs} +65 -50
- package/dist/{chunk-3SAK5KFL.cjs → chunk-HCCQLAA4.cjs} +2 -11
- package/dist/{chunk-LXJ4667L.cjs → chunk-HGVXZDSK.cjs} +108 -20
- package/dist/{chunk-3FJCK5XA.js → chunk-HRODTEEO.js} +30 -10
- package/dist/{chunk-HQUEA5R6.cjs → chunk-HZCQO4JM.cjs} +6 -6
- package/dist/{chunk-S565K7NK.js → chunk-I2O7TW6B.js} +12 -8
- package/dist/chunk-IHESJZSW.js +4490 -0
- package/dist/{chunk-FSF7EQVA.cjs → chunk-IRWWS72C.cjs} +63 -22
- package/dist/{chunk-5O6TQC6M.cjs → chunk-IVIA7K75.cjs} +689 -127
- package/dist/chunk-IVY74O6C.js +247 -0
- package/dist/chunk-J32ZJZJH.js +554 -0
- package/dist/chunk-J56PTA46.cjs +639 -0
- package/dist/chunk-JD7CIZ33.js +1949 -0
- package/dist/{chunk-T7LEXZUZ.cjs → chunk-JIYN45TV.cjs} +14 -15
- package/dist/{chunk-FFKU7BTK.cjs → chunk-KHPCJRI3.cjs} +24 -21
- package/dist/chunk-KKFZ3B6J.cjs +557 -0
- package/dist/chunk-KPJL34Y7.cjs +186 -0
- package/dist/{chunk-HE7ULERA.cjs → chunk-KQTPCYTG.cjs} +128 -44
- package/dist/{chunk-OFKWH2IP.js → chunk-KX76JUQY.js} +3 -3
- package/dist/{chunk-33LSUQDD.cjs → chunk-L63H3SQ4.cjs} +43 -31
- package/dist/{chunk-K6EKD26I.js → chunk-LAOCQJ2M.js} +64 -8
- package/dist/chunk-LM2VU56C.cjs +37 -0
- package/dist/chunk-M56JSP4A.js +400 -0
- package/dist/chunk-MBOOR7X4.js +18 -0
- package/dist/{chunk-XWPNTWDN.cjs → chunk-MJVIRCUV.cjs} +31 -27
- package/dist/{chunk-SDAMZIRE.js → chunk-MSMIFMBL.js} +135 -18
- package/dist/{chunk-56IF4NTA.js → chunk-MXFUTKCO.js} +18 -18
- package/dist/{chunk-6UEHYZ7V.cjs → chunk-MXJ5SS53.cjs} +447 -31
- package/dist/chunk-MYY4PMWX.cjs +264 -0
- package/dist/chunk-N75IH2HY.js +258 -0
- package/dist/{chunk-GVUR45UF.cjs → chunk-NG77ATEW.cjs} +7 -6
- package/dist/chunk-NW5G5FBQ.js +215 -0
- package/dist/{chunk-E3FWRT3Z.js → chunk-OEFY723R.js} +28 -13
- package/dist/chunk-OEV5RMZO.cjs +3042 -0
- package/dist/{chunk-X4ZF6CNE.cjs → chunk-OIQYIIO3.cjs} +7 -7
- package/dist/{chunk-2CWOLHTE.js → chunk-OL46QLBJ.js} +3 -11
- package/dist/chunk-OPZ7XDDI.js +487 -0
- package/dist/chunk-OSYNRVOV.cjs +243 -0
- package/dist/{chunk-TEWCN33Y.js → chunk-P7YIA5LN.js} +91 -7
- package/dist/chunk-PGANYCAG.cjs +220 -0
- package/dist/{chunk-CS2EMTGF.js → chunk-QAVXL2IH.js} +62 -21
- package/dist/{chunk-T4NKMBDL.js → chunk-QCCBXSCE.js} +1666 -756
- package/dist/{chunk-F4IULT7N.js → chunk-QPOQ7VPI.js} +16 -13
- package/dist/{chunk-6XSERL6L.js → chunk-QTPMJRGS.js} +3108 -2827
- package/dist/{chunk-F3HH56EB.cjs → chunk-QWNQ523V.cjs} +1730 -823
- package/dist/{chunk-R7MA7QWV.js → chunk-R3IVNY6P.js} +102 -23
- package/dist/chunk-R75BSDH7.cjs +50 -0
- package/dist/chunk-RAXUF5DF.cjs +2196 -0
- package/dist/{chunk-BF2235SI.cjs → chunk-RMHC2VG7.cjs} +2876 -2592
- package/dist/chunk-RUXGBKPS.cjs +4517 -0
- package/dist/{chunk-UERJ3YJV.js → chunk-S5IFXW6E.js} +113 -9
- package/dist/{chunk-27LWW5FU.cjs → chunk-S6YWHCKV.cjs} +5 -5
- package/dist/{chunk-WB4Z63GG.js → chunk-SIEXCILW.js} +3 -3
- package/dist/{chunk-CLYEIWA5.cjs → chunk-SLU6UPJI.cjs} +5 -3
- package/dist/{chunk-LZ266PCM.cjs → chunk-T5J7ZKP3.cjs} +446 -60
- package/dist/chunk-TDCNJHWO.js +341 -0
- package/dist/{chunk-IHOUYQIA.js → chunk-TG7O4WBC.js} +5 -5
- package/dist/chunk-THCK6ECW.js +2085 -0
- package/dist/chunk-TJHVSBP2.js +439 -0
- package/dist/chunk-TK74TR4H.js +5541 -0
- package/dist/{chunk-CDPGV4DN.js → chunk-U4NBQJBY.js} +14 -15
- package/dist/{chunk-NOZZ46QU.js → chunk-UD3DSHZM.js} +10 -14
- package/dist/chunk-UDMYRFDZ.js +3038 -0
- package/dist/{chunk-WDW67DZB.cjs → chunk-UOIGFQXC.cjs} +90 -68
- package/dist/{chunk-BU7VWW2K.js → chunk-URG2SJLK.js} +14 -15
- package/dist/{chunk-EQV4R3EV.cjs → chunk-V73NPPTM.cjs} +152 -35
- package/dist/chunk-VECQYRXL.js +474 -0
- package/dist/chunk-VEXPG4WN.js +1989 -0
- package/dist/{chunk-LDP5OK6G.js → chunk-VMLKSV26.js} +5 -5
- package/dist/{chunk-5BGSECRJ.cjs → chunk-VSK7W3O5.cjs} +47 -27
- package/dist/chunk-VVKVQZI6.js +55 -0
- package/dist/{chunk-YQK5JNFK.js → chunk-W55Z7QIX.js} +103 -15
- package/dist/{chunk-KSGXLT74.cjs → chunk-W6P2GBHH.cjs} +3 -3
- package/dist/{chunk-IBDG74G2.cjs → chunk-W6RW64BB.cjs} +7 -7
- package/dist/chunk-WDT3JTGM.cjs +483 -0
- package/dist/{chunk-HPS76H7Q.js → chunk-WKX5AMOY.js} +3 -3
- package/dist/chunk-WNNE3PO3.js +34 -0
- package/dist/{chunk-XG23EUQX.cjs → chunk-WRLUBRKS.cjs} +538 -312
- package/dist/{chunk-IFNQFCTM.js → chunk-WRNEH5MO.js} +79 -8
- package/dist/{chunk-54FHG2MX.js → chunk-WRWEX5ZF.js} +7 -4
- package/dist/{chunk-KCQ5NDYC.cjs → chunk-X3GJPRVK.cjs} +154 -80
- package/dist/{chunk-7AGYRWKW.cjs → chunk-XFXGA5IW.cjs} +126 -22
- package/dist/{chunk-TQSZUOW5.cjs → chunk-XHIV6326.cjs} +4 -4
- package/dist/chunk-XJAN7CZG.cjs +432 -0
- package/dist/chunk-XL6INWKT.js +121 -0
- package/dist/{chunk-E3UALNFA.js → chunk-XMWZG36H.js} +4 -4
- package/dist/{chunk-BKIGPPVM.js → chunk-XSFNHP2E.js} +6 -3
- package/dist/{chunk-H5Z7NASB.js → chunk-XT6JY5W5.js} +25 -3
- package/dist/chunk-XXZJEFKW.cjs +490 -0
- package/dist/chunk-Y3MWXQSB.cjs +5737 -0
- package/dist/chunk-YF2I3MV3.js +46 -0
- package/dist/{chunk-V3NN3HPP.js → chunk-YIMN575O.js} +437 -52
- package/dist/chunk-YIVFJNYV.js +176 -0
- package/dist/{chunk-MD6KDHVE.cjs → chunk-YKGPCZEE.cjs} +10 -10
- package/dist/chunk-YQELFNJV.js +39 -0
- package/dist/chunk-Z5XMPRNC.cjs +5390 -0
- package/dist/{chunk-3FYZOR7S.cjs → chunk-ZDSYWBIE.cjs} +18 -18
- package/dist/{chunk-6TZPZCOJ.cjs → chunk-ZKSS47EV.cjs} +24 -19
- package/dist/chunk-ZUL5AVTX.cjs +1993 -0
- package/dist/chunk-ZXBZVXDW.js +5386 -0
- package/dist/{chunk-DMG7C4H2.js → chunk-ZZ7RO2UQ.js} +312 -44
- package/dist/cli/holoscript-runner.cjs +200 -204
- package/dist/cli/holoscript-runner.js +144 -148
- package/dist/codebase/index.cjs +1 -1
- package/dist/codebase/index.js +1 -1
- package/dist/compiler/agent-inference.cjs +10 -7
- package/dist/compiler/agent-inference.js +6 -3
- package/dist/compiler/android-xr.cjs +12 -7
- package/dist/compiler/android-xr.js +10 -5
- package/dist/compiler/android.cjs +12 -8
- package/dist/compiler/android.js +10 -6
- package/dist/compiler/ar.cjs +9 -6
- package/dist/compiler/ar.js +7 -4
- package/dist/compiler/babylon.cjs +12 -8
- package/dist/compiler/babylon.js +11 -7
- package/dist/compiler/business-quest.cjs +43 -0
- package/dist/compiler/business-quest.js +4 -0
- package/dist/compiler/coco.cjs +1 -1
- package/dist/compiler/coco.js +1 -1
- package/dist/compiler/context.cjs +25 -0
- package/dist/compiler/context.d.ts +28 -0
- package/dist/compiler/context.js +8 -0
- package/dist/compiler/domain-block-utils.cjs +155 -152
- package/dist/compiler/domain-block-utils.js +7 -4
- package/dist/compiler/dtdl.cjs +10 -7
- package/dist/compiler/dtdl.js +7 -4
- package/dist/compiler/gltf-pipeline.cjs +9 -9
- package/dist/compiler/gltf-pipeline.js +2 -2
- package/dist/compiler/godot.cjs +9 -6
- package/dist/compiler/godot.js +8 -5
- package/dist/compiler/incremental.cjs +12 -7
- package/dist/compiler/incremental.js +7 -2
- package/dist/compiler/index.cjs +3550 -268
- package/dist/compiler/index.d.ts +404 -21
- package/dist/compiler/index.js +3280 -138
- package/dist/compiler/ios.cjs +11 -8
- package/dist/compiler/ios.js +9 -6
- package/dist/compiler/llm-provider-capabilities.cjs +25 -0
- package/dist/compiler/llm-provider-capabilities.d.ts +43 -0
- package/dist/compiler/llm-provider-capabilities.js +8 -0
- package/dist/compiler/multi-layer.cjs +14 -10
- package/dist/compiler/multi-layer.js +13 -9
- package/dist/compiler/nodetoy.cjs +5 -5
- package/dist/compiler/nodetoy.js +2 -2
- package/dist/compiler/openxr.cjs +10 -6
- package/dist/compiler/openxr.js +9 -5
- package/dist/compiler/playcanvas.cjs +10 -7
- package/dist/compiler/playcanvas.js +9 -6
- package/dist/compiler/r3f.cjs +17 -13
- package/dist/compiler/r3f.d.ts +22 -0
- package/dist/compiler/r3f.js +12 -8
- package/dist/compiler/remotion.cjs +1 -1
- package/dist/compiler/remotion.js +1 -1
- package/dist/compiler/reproducibility.cjs +1 -1
- package/dist/compiler/reproducibility.js +1 -1
- package/dist/compiler/sdf.cjs +10 -7
- package/dist/compiler/sdf.js +8 -5
- package/dist/compiler/semantic-scene.cjs +1 -1
- package/dist/compiler/semantic-scene.js +1 -1
- package/dist/compiler/state.cjs +9 -5
- package/dist/compiler/state.js +7 -3
- package/dist/compiler/trait-composition.cjs +11 -7
- package/dist/compiler/trait-composition.js +7 -3
- package/dist/compiler/unity.cjs +10 -6
- package/dist/compiler/unity.js +9 -5
- package/dist/compiler/unreal.cjs +11 -7
- package/dist/compiler/unreal.js +9 -5
- package/dist/compiler/urdf.cjs +20 -13
- package/dist/compiler/urdf.js +8 -5
- package/dist/compiler/usd-physics.cjs +10 -7
- package/dist/compiler/usd-physics.js +7 -4
- package/dist/compiler/visionos.cjs +10 -6
- package/dist/compiler/visionos.js +9 -5
- package/dist/compiler/vrchat.cjs +10 -7
- package/dist/compiler/vrchat.js +8 -5
- package/dist/compiler/vrr.cjs +10 -7
- package/dist/compiler/vrr.js +8 -5
- package/dist/compiler/wasm.cjs +13 -10
- package/dist/compiler/wasm.js +8 -5
- package/dist/compiler/webgpu.cjs +9 -6
- package/dist/compiler/webgpu.js +8 -5
- package/dist/constants.d.ts +3 -2
- package/dist/coordinators/index.cjs +1266 -0
- package/dist/coordinators/index.d.ts +260 -0
- package/dist/coordinators/index.js +1259 -0
- package/dist/debugger.cjs +9 -7
- package/dist/debugger.js +7 -5
- package/dist/entries/interop.cjs +23 -21
- package/dist/entries/interop.js +5 -3
- package/dist/entries/scripting.cjs +18 -18
- package/dist/entries/scripting.js +8 -8
- package/dist/hololand/index.cjs +146 -0
- package/dist/hololand/index.d.ts +70 -0
- package/dist/hololand/index.js +5 -0
- package/dist/index.cjs +20332 -18121
- package/dist/index.d.ts +1477 -40
- package/dist/index.js +19451 -17638
- package/dist/math/tropical-spmv.cjs +45 -0
- package/dist/math/tropical-spmv.js +4 -0
- package/dist/math/vec3.cjs +14 -14
- package/dist/math/vec3.js +2 -2
- package/dist/{ml-dsa-PHCWUBPX.cjs → ml-dsa-FSKBTE3W.cjs} +177 -90
- package/dist/{ml-dsa-WYLJHJO6.js → ml-dsa-Z7JDKW4L.js} +158 -71
- package/dist/paper-0c-spike/index.cjs +150 -0
- package/dist/paper-0c-spike/index.d.ts +29 -0
- package/dist/paper-0c-spike/index.js +141 -0
- package/dist/parser.cjs +45 -11
- package/dist/parser.d.ts +11 -0
- package/dist/parser.js +10 -8
- package/dist/{playwright-RL6GY4F7.cjs → playwright-3AT3AKTV.cjs} +1985 -1985
- package/dist/{playwright-5OSAPTNH.js → playwright-VZPDVUEQ.js} +3 -3
- package/dist/reconstruction/index.cjs +153 -0
- package/dist/reconstruction/index.d.ts +105 -0
- package/dist/reconstruction/index.js +8 -0
- package/dist/runtime.cjs +7 -5
- package/dist/runtime.js +6 -4
- package/dist/self-improvement/index.cjs +563 -0
- package/dist/self-improvement/index.js +545 -0
- package/dist/storage/index.cjs +10 -9
- package/dist/storage/index.js +3 -2
- package/dist/testing.cjs +25 -0
- package/dist/testing.d.ts +70 -0
- package/dist/testing.js +4 -0
- package/dist/tools/index.d.ts +22 -1
- package/dist/traitDocs/traitDocs.cjs +33 -0
- package/dist/traitDocs/traitDocs.d.ts +69 -0
- package/dist/traitDocs/traitDocs.js +7 -0
- package/dist/traits/botanical-lotus.cjs +41 -0
- package/dist/traits/botanical-lotus.d.ts +172 -0
- package/dist/traits/botanical-lotus.js +4 -0
- package/dist/traits/engines/index.cjs +520 -0
- package/dist/traits/engines/index.js +380 -0
- package/dist/traits/index.cjs +17630 -7881
- package/dist/traits/index.d.ts +197 -0
- package/dist/traits/index.js +16573 -7193
- package/dist/traits/simulation-solver-factory.cjs +13 -0
- package/dist/traits/simulation-solver-factory.d.ts +23 -0
- package/dist/traits/simulation-solver-factory.js +4 -0
- package/dist/traits/webcam-gaze.cjs +35 -0
- package/dist/traits/webcam-gaze.d.ts +17 -0
- package/dist/traits/webcam-gaze.js +4 -0
- package/dist/type-checker.cjs +6 -5
- package/dist/type-checker.js +4 -3
- package/dist/world/index.cjs +947 -0
- package/dist/world/index.d.ts +147 -0
- package/dist/world/index.js +939 -0
- package/dist/world-model/index.cjs +1446 -0
- package/dist/world-model/index.d.ts +119 -0
- package/dist/world-model/index.js +1414 -0
- package/dist/wot/index.cjs +29 -0
- package/dist/wot/index.js +4 -0
- package/package.json +153 -61
- package/dist/GLTFPipeline-DEN36VNK.js +0 -12
- package/dist/GLTFPipeline-YPCAK236.cjs +0 -33
- package/dist/chunk-4XSNJCLC.cjs +0 -1859
- package/dist/chunk-A7PIMZGU.js +0 -263
- package/dist/chunk-BWFJEM5A.js +0 -5419
- package/dist/chunk-CBJSLA2E.cjs +0 -5423
- package/dist/chunk-K3JDKWGI.cjs +0 -270
- package/dist/chunk-LSW7P7ML.js +0 -3675
- package/dist/chunk-MEASWI2Y.js +0 -126
- package/dist/chunk-NCUKG4SK.cjs +0 -3075
- package/dist/chunk-Q5JT3YML.cjs +0 -129
- package/dist/chunk-QGKNANZ3.js +0 -3071
- package/dist/chunk-S2N5TNMA.js +0 -1855
- package/dist/chunk-TSH3MSQU.cjs +0 -129
- package/dist/chunk-WGMEAYBG.js +0 -126
- package/dist/chunk-X6SEAXAX.cjs +0 -3681
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0
|
|
5
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/utils.js
|
|
6
6
|
function isBytes(a) {
|
|
7
|
-
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
7
|
+
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a && a.BYTES_PER_ELEMENT === 1;
|
|
8
8
|
}
|
|
9
9
|
function anumber(n, title = "") {
|
|
10
|
+
if (typeof n !== "number") {
|
|
11
|
+
const prefix = title && `"${title}" `;
|
|
12
|
+
throw new TypeError(`${prefix}expected number, got ${typeof n}`);
|
|
13
|
+
}
|
|
10
14
|
if (!Number.isSafeInteger(n) || n < 0) {
|
|
11
15
|
const prefix = title && `"${title}" `;
|
|
12
|
-
throw new
|
|
16
|
+
throw new RangeError(`${prefix}expected integer >= 0, got ${n}`);
|
|
13
17
|
}
|
|
14
18
|
}
|
|
15
19
|
function abytes(value, length, title = "") {
|
|
@@ -20,7 +24,10 @@ function abytes(value, length, title = "") {
|
|
|
20
24
|
const prefix = title && `"${title}" `;
|
|
21
25
|
const ofLen = needsLen ? ` of length ${length}` : "";
|
|
22
26
|
const got = bytes ? `length=${len}` : `type=${typeof value}`;
|
|
23
|
-
|
|
27
|
+
const message = prefix + "expected Uint8Array" + ofLen + ", got " + got;
|
|
28
|
+
if (!bytes)
|
|
29
|
+
throw new TypeError(message);
|
|
30
|
+
throw new RangeError(message);
|
|
24
31
|
}
|
|
25
32
|
return value;
|
|
26
33
|
}
|
|
@@ -34,7 +41,7 @@ function aoutput(out, instance) {
|
|
|
34
41
|
abytes(out, void 0, "digestInto() output");
|
|
35
42
|
const min = instance.outputLen;
|
|
36
43
|
if (out.length < min) {
|
|
37
|
-
throw new
|
|
44
|
+
throw new RangeError('"digestInto() output" expected to be of length >=' + min);
|
|
38
45
|
}
|
|
39
46
|
}
|
|
40
47
|
function u32(arr) {
|
|
@@ -74,41 +81,47 @@ function createHasher(hashCons, info = {}) {
|
|
|
74
81
|
const tmp = hashCons(void 0);
|
|
75
82
|
hashC.outputLen = tmp.outputLen;
|
|
76
83
|
hashC.blockLen = tmp.blockLen;
|
|
84
|
+
hashC.canXOF = tmp.canXOF;
|
|
77
85
|
hashC.create = (opts) => hashCons(opts);
|
|
78
86
|
Object.assign(hashC, info);
|
|
79
87
|
return Object.freeze(hashC);
|
|
80
88
|
}
|
|
81
89
|
function randomBytes(bytesLength = 32) {
|
|
90
|
+
anumber(bytesLength, "bytesLength");
|
|
82
91
|
const cr = typeof globalThis === "object" ? globalThis.crypto : null;
|
|
83
92
|
if (typeof cr?.getRandomValues !== "function")
|
|
84
93
|
throw new Error("crypto.getRandomValues must be defined");
|
|
94
|
+
if (bytesLength > 65536)
|
|
95
|
+
throw new RangeError(`"bytesLength" expected <= 65536, got ${bytesLength}`);
|
|
85
96
|
return cr.getRandomValues(new Uint8Array(bytesLength));
|
|
86
97
|
}
|
|
87
98
|
var isLE, swap32IfBE, oidNist;
|
|
88
|
-
var init_utils =
|
|
89
|
-
"../../node_modules/.pnpm/@noble+hashes@2.0
|
|
99
|
+
var init_utils = chunkHCCQLAA4_cjs.__esm({
|
|
100
|
+
"../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/utils.js"() {
|
|
90
101
|
isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
|
|
91
102
|
swap32IfBE = isLE ? (u) => u : byteSwap32;
|
|
92
103
|
oidNist = (suffix) => ({
|
|
104
|
+
// Current NIST hashAlgs suffixes used here fit in one DER subidentifier octet.
|
|
105
|
+
// Larger suffix values would need base-128 OID encoding and a different length byte.
|
|
93
106
|
oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, suffix])
|
|
94
107
|
});
|
|
95
108
|
}
|
|
96
109
|
});
|
|
97
110
|
|
|
98
|
-
// ../../node_modules/.pnpm/@noble+curves@2.0
|
|
111
|
+
// ../../node_modules/.pnpm/@noble+curves@2.2.0/node_modules/@noble/curves/utils.js
|
|
99
112
|
function abool(value, title = "") {
|
|
100
113
|
if (typeof value !== "boolean") {
|
|
101
114
|
const prefix = title && `"${title}" `;
|
|
102
|
-
throw new
|
|
115
|
+
throw new TypeError(prefix + "expected boolean, got type=" + typeof value);
|
|
103
116
|
}
|
|
104
117
|
return value;
|
|
105
118
|
}
|
|
106
|
-
var init_utils2 =
|
|
107
|
-
"../../node_modules/.pnpm/@noble+curves@2.0
|
|
119
|
+
var init_utils2 = chunkHCCQLAA4_cjs.__esm({
|
|
120
|
+
"../../node_modules/.pnpm/@noble+curves@2.2.0/node_modules/@noble/curves/utils.js"() {
|
|
108
121
|
}
|
|
109
122
|
});
|
|
110
123
|
|
|
111
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0
|
|
124
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_u64.js
|
|
112
125
|
function fromBig(n, le = false) {
|
|
113
126
|
if (le)
|
|
114
127
|
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
@@ -125,8 +138,8 @@ function split(lst, le = false) {
|
|
|
125
138
|
return [Ah, Al];
|
|
126
139
|
}
|
|
127
140
|
var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
|
|
128
|
-
var init_u64 =
|
|
129
|
-
"../../node_modules/.pnpm/@noble+hashes@2.0
|
|
141
|
+
var init_u64 = chunkHCCQLAA4_cjs.__esm({
|
|
142
|
+
"../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_u64.js"() {
|
|
130
143
|
U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
131
144
|
_32n = /* @__PURE__ */ BigInt(32);
|
|
132
145
|
rotlSH = (h, l, s) => h << s | l >>> 32 - s;
|
|
@@ -136,8 +149,11 @@ var init_u64 = chunk3SAK5KFL_cjs.__esm({
|
|
|
136
149
|
}
|
|
137
150
|
});
|
|
138
151
|
|
|
139
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0
|
|
152
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/sha3.js
|
|
140
153
|
function keccakP(s, rounds = 24) {
|
|
154
|
+
anumber(rounds, "rounds");
|
|
155
|
+
if (rounds < 1 || rounds > 24)
|
|
156
|
+
throw new Error('"rounds" expected integer 1..24');
|
|
141
157
|
const B = new Uint32Array(5 * 2);
|
|
142
158
|
for (let round = 24 - rounds; round < 24; round++) {
|
|
143
159
|
for (let x = 0; x < 10; x++)
|
|
@@ -167,10 +183,17 @@ function keccakP(s, rounds = 24) {
|
|
|
167
183
|
s[PI + 1] = Tl;
|
|
168
184
|
}
|
|
169
185
|
for (let y = 0; y < 50; y += 10) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
186
|
+
const b0 = s[y], b1 = s[y + 1], b2 = s[y + 2], b3 = s[y + 3];
|
|
187
|
+
s[y] ^= ~s[y + 2] & s[y + 4];
|
|
188
|
+
s[y + 1] ^= ~s[y + 3] & s[y + 5];
|
|
189
|
+
s[y + 2] ^= ~s[y + 4] & s[y + 6];
|
|
190
|
+
s[y + 3] ^= ~s[y + 5] & s[y + 7];
|
|
191
|
+
s[y + 4] ^= ~s[y + 6] & s[y + 8];
|
|
192
|
+
s[y + 5] ^= ~s[y + 7] & s[y + 9];
|
|
193
|
+
s[y + 6] ^= ~s[y + 8] & b0;
|
|
194
|
+
s[y + 7] ^= ~s[y + 9] & b1;
|
|
195
|
+
s[y + 8] ^= ~b0 & b2;
|
|
196
|
+
s[y + 9] ^= ~b1 & b3;
|
|
174
197
|
}
|
|
175
198
|
s[0] ^= SHA3_IOTA_H[round];
|
|
176
199
|
s[1] ^= SHA3_IOTA_L[round];
|
|
@@ -178,8 +201,8 @@ function keccakP(s, rounds = 24) {
|
|
|
178
201
|
clean(B);
|
|
179
202
|
}
|
|
180
203
|
var _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, rotlH, rotlL, Keccak, genShake, shake128, shake256;
|
|
181
|
-
var init_sha3 =
|
|
182
|
-
"../../node_modules/.pnpm/@noble+hashes@2.0
|
|
204
|
+
var init_sha3 = chunkHCCQLAA4_cjs.__esm({
|
|
205
|
+
"../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/sha3.js"() {
|
|
183
206
|
init_u64();
|
|
184
207
|
init_utils();
|
|
185
208
|
_0n = BigInt(0);
|
|
@@ -211,21 +234,23 @@ var init_sha3 = chunk3SAK5KFL_cjs.__esm({
|
|
|
211
234
|
Keccak = class _Keccak {
|
|
212
235
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
213
236
|
constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
237
|
+
chunkHCCQLAA4_cjs.__publicField(this, "state");
|
|
238
|
+
chunkHCCQLAA4_cjs.__publicField(this, "pos", 0);
|
|
239
|
+
chunkHCCQLAA4_cjs.__publicField(this, "posOut", 0);
|
|
240
|
+
chunkHCCQLAA4_cjs.__publicField(this, "finished", false);
|
|
241
|
+
chunkHCCQLAA4_cjs.__publicField(this, "state32");
|
|
242
|
+
chunkHCCQLAA4_cjs.__publicField(this, "destroyed", false);
|
|
243
|
+
chunkHCCQLAA4_cjs.__publicField(this, "blockLen");
|
|
244
|
+
chunkHCCQLAA4_cjs.__publicField(this, "suffix");
|
|
245
|
+
chunkHCCQLAA4_cjs.__publicField(this, "outputLen");
|
|
246
|
+
chunkHCCQLAA4_cjs.__publicField(this, "canXOF");
|
|
247
|
+
chunkHCCQLAA4_cjs.__publicField(this, "enableXOF", false);
|
|
248
|
+
chunkHCCQLAA4_cjs.__publicField(this, "rounds");
|
|
225
249
|
this.blockLen = blockLen;
|
|
226
250
|
this.suffix = suffix;
|
|
227
251
|
this.outputLen = outputLen;
|
|
228
252
|
this.enableXOF = enableXOF;
|
|
253
|
+
this.canXOF = enableXOF;
|
|
229
254
|
this.rounds = rounds;
|
|
230
255
|
anumber(outputLen, "outputLen");
|
|
231
256
|
if (!(0 < blockLen && blockLen < 200))
|
|
@@ -297,12 +322,13 @@ var init_sha3 = chunk3SAK5KFL_cjs.__esm({
|
|
|
297
322
|
aoutput(out, this);
|
|
298
323
|
if (this.finished)
|
|
299
324
|
throw new Error("digest() was already called");
|
|
300
|
-
this.writeInto(out);
|
|
325
|
+
this.writeInto(out.subarray(0, this.outputLen));
|
|
301
326
|
this.destroy();
|
|
302
|
-
return out;
|
|
303
327
|
}
|
|
304
328
|
digest() {
|
|
305
|
-
|
|
329
|
+
const out = new Uint8Array(this.outputLen);
|
|
330
|
+
this.digestInto(out);
|
|
331
|
+
return out;
|
|
306
332
|
}
|
|
307
333
|
destroy() {
|
|
308
334
|
this.destroyed = true;
|
|
@@ -311,6 +337,7 @@ var init_sha3 = chunk3SAK5KFL_cjs.__esm({
|
|
|
311
337
|
_cloneInto(to) {
|
|
312
338
|
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
|
313
339
|
to || (to = new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
|
|
340
|
+
to.blockLen = blockLen;
|
|
314
341
|
to.state32.set(this.state32);
|
|
315
342
|
to.pos = this.pos;
|
|
316
343
|
to.posOut = this.posOut;
|
|
@@ -319,6 +346,7 @@ var init_sha3 = chunk3SAK5KFL_cjs.__esm({
|
|
|
319
346
|
to.suffix = suffix;
|
|
320
347
|
to.outputLen = outputLen;
|
|
321
348
|
to.enableXOF = enableXOF;
|
|
349
|
+
to.canXOF = this.canXOF;
|
|
322
350
|
to.destroyed = this.destroyed;
|
|
323
351
|
return to;
|
|
324
352
|
}
|
|
@@ -329,7 +357,7 @@ var init_sha3 = chunk3SAK5KFL_cjs.__esm({
|
|
|
329
357
|
}
|
|
330
358
|
});
|
|
331
359
|
|
|
332
|
-
// ../../node_modules/.pnpm/@noble+curves@2.0
|
|
360
|
+
// ../../node_modules/.pnpm/@noble+curves@2.2.0/node_modules/@noble/curves/abstract/fft.js
|
|
333
361
|
function checkU32(n) {
|
|
334
362
|
if (!Number.isSafeInteger(n) || n < 0 || n > 4294967295)
|
|
335
363
|
throw new Error("wrong u32 integer:" + n);
|
|
@@ -341,10 +369,12 @@ function isPowerOfTwo(x) {
|
|
|
341
369
|
}
|
|
342
370
|
function reverseBits(n, bits) {
|
|
343
371
|
checkU32(n);
|
|
372
|
+
if (!Number.isSafeInteger(bits) || bits < 0 || bits > 32)
|
|
373
|
+
throw new Error(`expected integer 0 <= bits <= 32, got ${bits}`);
|
|
344
374
|
let reversed = 0;
|
|
345
375
|
for (let i = 0; i < bits; i++, n >>>= 1)
|
|
346
376
|
reversed = reversed << 1 | n & 1;
|
|
347
|
-
return reversed;
|
|
377
|
+
return reversed >>> 0;
|
|
348
378
|
}
|
|
349
379
|
function log2(n) {
|
|
350
380
|
checkU32(n);
|
|
@@ -352,8 +382,8 @@ function log2(n) {
|
|
|
352
382
|
}
|
|
353
383
|
function bitReversalInplace(values) {
|
|
354
384
|
const n = values.length;
|
|
355
|
-
if (
|
|
356
|
-
throw new Error("
|
|
385
|
+
if (!isPowerOfTwo(n))
|
|
386
|
+
throw new Error("expected positive power-of-two length, got " + n);
|
|
357
387
|
const bits = log2(n);
|
|
358
388
|
for (let i = 0; i < n; i++) {
|
|
359
389
|
const j = reverseBits(i, bits);
|
|
@@ -366,13 +396,15 @@ function bitReversalInplace(values) {
|
|
|
366
396
|
return values;
|
|
367
397
|
}
|
|
368
398
|
var FFTCore;
|
|
369
|
-
var init_fft =
|
|
370
|
-
"../../node_modules/.pnpm/@noble+curves@2.0
|
|
399
|
+
var init_fft = chunkHCCQLAA4_cjs.__esm({
|
|
400
|
+
"../../node_modules/.pnpm/@noble+curves@2.2.0/node_modules/@noble/curves/abstract/fft.js"() {
|
|
371
401
|
FFTCore = (F2, coreOpts) => {
|
|
372
402
|
const { N: N2, roots, dit, invertButterflies = false, skipStages = 0, brp = true } = coreOpts;
|
|
373
403
|
const bits = log2(N2);
|
|
374
404
|
if (!isPowerOfTwo(N2))
|
|
375
405
|
throw new Error("FFT: Polynomial size should be power of two");
|
|
406
|
+
if (roots.length !== N2)
|
|
407
|
+
throw new Error(`FFT: wrong roots length: expected ${N2}, got ${roots.length}`);
|
|
376
408
|
const isDit = dit !== invertButterflies;
|
|
377
409
|
return (values) => {
|
|
378
410
|
if (values.length !== N2)
|
|
@@ -414,7 +446,7 @@ var init_fft = chunk3SAK5KFL_cjs.__esm({
|
|
|
414
446
|
}
|
|
415
447
|
});
|
|
416
448
|
|
|
417
|
-
// ../../node_modules/.pnpm/@noble+post-quantum@0.6.
|
|
449
|
+
// ../../node_modules/.pnpm/@noble+post-quantum@0.6.1/node_modules/@noble/post-quantum/utils.js
|
|
418
450
|
function equalBytes(a, b) {
|
|
419
451
|
if (a.length !== b.length)
|
|
420
452
|
return false;
|
|
@@ -470,7 +502,8 @@ function splitCoder(label, ...lengths) {
|
|
|
470
502
|
};
|
|
471
503
|
}
|
|
472
504
|
function vecCoder(c, vecLen) {
|
|
473
|
-
const
|
|
505
|
+
const coder = c;
|
|
506
|
+
const bytesLen = vecLen * coder.bytesLen;
|
|
474
507
|
return {
|
|
475
508
|
bytesLen,
|
|
476
509
|
encode: (u) => {
|
|
@@ -478,7 +511,7 @@ function vecCoder(c, vecLen) {
|
|
|
478
511
|
throw new RangeError(`vecCoder.encode: wrong length=${u.length}. Expected: ${vecLen}`);
|
|
479
512
|
const res = new Uint8Array(bytesLen);
|
|
480
513
|
for (let i = 0, pos = 0; i < u.length; i++) {
|
|
481
|
-
const b =
|
|
514
|
+
const b = coder.encode(u[i]);
|
|
482
515
|
res.set(b, pos);
|
|
483
516
|
b.fill(0);
|
|
484
517
|
pos += b.length;
|
|
@@ -488,8 +521,8 @@ function vecCoder(c, vecLen) {
|
|
|
488
521
|
decode: (a) => {
|
|
489
522
|
abytes(a, bytesLen);
|
|
490
523
|
const r = [];
|
|
491
|
-
for (let i = 0; i < a.length; i +=
|
|
492
|
-
r.push(
|
|
524
|
+
for (let i = 0; i < a.length; i += coder.bytesLen)
|
|
525
|
+
r.push(coder.decode(a.subarray(i, i + coder.bytesLen)));
|
|
493
526
|
return r;
|
|
494
527
|
}
|
|
495
528
|
};
|
|
@@ -532,8 +565,8 @@ function getMessagePrehash(hash, msg, ctx = EMPTY) {
|
|
|
532
565
|
return concatBytes(new Uint8Array([1, ctx.length]), ctx, hash.oid, hashed);
|
|
533
566
|
}
|
|
534
567
|
var abytesDoc, randomBytes2, EMPTY, oidNistP;
|
|
535
|
-
var init_utils3 =
|
|
536
|
-
"../../node_modules/.pnpm/@noble+post-quantum@0.6.
|
|
568
|
+
var init_utils3 = chunkHCCQLAA4_cjs.__esm({
|
|
569
|
+
"../../node_modules/.pnpm/@noble+post-quantum@0.6.1/node_modules/@noble/post-quantum/utils.js"() {
|
|
537
570
|
init_utils();
|
|
538
571
|
abytesDoc = abytes;
|
|
539
572
|
randomBytes2 = randomBytes;
|
|
@@ -542,10 +575,10 @@ var init_utils3 = chunk3SAK5KFL_cjs.__esm({
|
|
|
542
575
|
}
|
|
543
576
|
});
|
|
544
577
|
|
|
545
|
-
// ../../node_modules/.pnpm/@noble+post-quantum@0.6.
|
|
578
|
+
// ../../node_modules/.pnpm/@noble+post-quantum@0.6.1/node_modules/@noble/post-quantum/_crystals.js
|
|
546
579
|
var genCrystals, createXofShake, XOF128, XOF256;
|
|
547
|
-
var init_crystals =
|
|
548
|
-
"../../node_modules/.pnpm/@noble+post-quantum@0.6.
|
|
580
|
+
var init_crystals = chunkHCCQLAA4_cjs.__esm({
|
|
581
|
+
"../../node_modules/.pnpm/@noble+post-quantum@0.6.1/node_modules/@noble/post-quantum/_crystals.js"() {
|
|
549
582
|
init_fft();
|
|
550
583
|
init_sha3();
|
|
551
584
|
init_utils3();
|
|
@@ -602,7 +635,8 @@ var init_crystals = chunk3SAK5KFL_cjs.__esm({
|
|
|
602
635
|
const bytesLen = d * (N2 / 8);
|
|
603
636
|
return {
|
|
604
637
|
bytesLen,
|
|
605
|
-
encode: (
|
|
638
|
+
encode: (poly_) => {
|
|
639
|
+
const poly = poly_;
|
|
606
640
|
const r = new Uint8Array(bytesLen);
|
|
607
641
|
for (let i = 0, buf = 0, bufLen = 0, pos = 0; i < poly.length; i++) {
|
|
608
642
|
buf |= (c.encode(poly[i]) & mask) << bufLen;
|
|
@@ -624,7 +658,16 @@ var init_crystals = chunk3SAK5KFL_cjs.__esm({
|
|
|
624
658
|
}
|
|
625
659
|
};
|
|
626
660
|
};
|
|
627
|
-
return {
|
|
661
|
+
return {
|
|
662
|
+
mod,
|
|
663
|
+
smod,
|
|
664
|
+
nttZetas,
|
|
665
|
+
NTT: {
|
|
666
|
+
encode: (r) => NTT.encode(r),
|
|
667
|
+
decode: (r) => NTT.decode(r)
|
|
668
|
+
},
|
|
669
|
+
bitsCoder
|
|
670
|
+
};
|
|
628
671
|
};
|
|
629
672
|
createXofShake = (shake) => (seed, blockLen) => {
|
|
630
673
|
if (!blockLen)
|
|
@@ -660,13 +703,14 @@ var init_crystals = chunk3SAK5KFL_cjs.__esm({
|
|
|
660
703
|
}
|
|
661
704
|
});
|
|
662
705
|
|
|
663
|
-
// ../../node_modules/.pnpm/@noble+post-quantum@0.6.
|
|
706
|
+
// ../../node_modules/.pnpm/@noble+post-quantum@0.6.1/node_modules/@noble/post-quantum/ml-dsa.js
|
|
664
707
|
function validateInternalOpts(opts) {
|
|
665
708
|
validateOpts(opts);
|
|
666
709
|
if (opts.externalMu !== void 0)
|
|
667
710
|
abool(opts.externalMu, "opts.externalMu");
|
|
668
711
|
}
|
|
669
|
-
function RejNTTPoly(
|
|
712
|
+
function RejNTTPoly(xof_) {
|
|
713
|
+
const xof = xof_;
|
|
670
714
|
const r = newPoly(N);
|
|
671
715
|
for (let j = 0; j < N; ) {
|
|
672
716
|
const b = xof();
|
|
@@ -680,7 +724,8 @@ function RejNTTPoly(xof) {
|
|
|
680
724
|
}
|
|
681
725
|
return r;
|
|
682
726
|
}
|
|
683
|
-
function getDilithium(
|
|
727
|
+
function getDilithium(opts_) {
|
|
728
|
+
const opts = opts_;
|
|
684
729
|
const { K, L, GAMMA1, GAMMA2, TAU, ETA, OMEGA } = opts;
|
|
685
730
|
const { CRH_BYTES, TR_BYTES, C_TILDE_BYTES, XOF128: XOF1282, XOF256: XOF2562, securityLevel } = opts;
|
|
686
731
|
if (![2, 4].includes(ETA))
|
|
@@ -718,7 +763,8 @@ function getDilithium(opts) {
|
|
|
718
763
|
};
|
|
719
764
|
const hintCoder = {
|
|
720
765
|
bytesLen: OMEGA + K,
|
|
721
|
-
encode: (
|
|
766
|
+
encode: (h_) => {
|
|
767
|
+
const h = h_;
|
|
722
768
|
if (h === false)
|
|
723
769
|
throw new Error("hint.encode: hint is false");
|
|
724
770
|
const res = new Uint8Array(OMEGA + K);
|
|
@@ -765,7 +811,8 @@ function getDilithium(opts) {
|
|
|
765
811
|
const secretCoder = splitCoder("secretKey", 32, 32, TR_BYTES, vecCoder(ETACoder, L), vecCoder(ETACoder, K), vecCoder(T0Coder, K));
|
|
766
812
|
const sigCoder = splitCoder("signature", C_TILDE_BYTES, vecCoder(ZCoder, L), hintCoder);
|
|
767
813
|
const CoefFromHalfByte = ETA === 2 ? (n) => n < 15 ? 2 - n % 5 : false : (n) => n < 9 ? 4 - n : false;
|
|
768
|
-
function RejBoundedPoly(
|
|
814
|
+
function RejBoundedPoly(xof_) {
|
|
815
|
+
const xof = xof_;
|
|
769
816
|
const r = newPoly(N);
|
|
770
817
|
for (let j = 0; j < N; ) {
|
|
771
818
|
const b = xof();
|
|
@@ -804,7 +851,8 @@ function getDilithium(opts) {
|
|
|
804
851
|
}
|
|
805
852
|
return pre;
|
|
806
853
|
};
|
|
807
|
-
const polyPowerRound = (
|
|
854
|
+
const polyPowerRound = (p_) => {
|
|
855
|
+
const p = p_;
|
|
808
856
|
const res0 = newPoly(N);
|
|
809
857
|
const res1 = newPoly(N);
|
|
810
858
|
for (let i = 0; i < p.length; i++) {
|
|
@@ -814,12 +862,16 @@ function getDilithium(opts) {
|
|
|
814
862
|
}
|
|
815
863
|
return { r0: res0, r1: res1 };
|
|
816
864
|
};
|
|
817
|
-
const polyUseHint = (
|
|
865
|
+
const polyUseHint = (u_, h_) => {
|
|
866
|
+
const u = u_;
|
|
867
|
+
const h = h_;
|
|
818
868
|
for (let i = 0; i < N; i++)
|
|
819
869
|
u[i] = UseHint(h[i], u[i]);
|
|
820
870
|
return u;
|
|
821
871
|
};
|
|
822
|
-
const polyMakeHint = (
|
|
872
|
+
const polyMakeHint = (a_, b_) => {
|
|
873
|
+
const a = a_;
|
|
874
|
+
const b = b_;
|
|
823
875
|
const v = newPoly(N);
|
|
824
876
|
let cnt = 0;
|
|
825
877
|
for (let i = 0; i < N; i++) {
|
|
@@ -831,15 +883,15 @@ function getDilithium(opts) {
|
|
|
831
883
|
};
|
|
832
884
|
const signRandBytes = 32;
|
|
833
885
|
const seedCoder = splitCoder("seed", 32, 64, 32);
|
|
834
|
-
const internal = {
|
|
835
|
-
info: { type: "internal-ml-dsa" },
|
|
836
|
-
lengths: {
|
|
886
|
+
const internal = Object.freeze({
|
|
887
|
+
info: Object.freeze({ type: "internal-ml-dsa" }),
|
|
888
|
+
lengths: Object.freeze({
|
|
837
889
|
secretKey: secretCoder.bytesLen,
|
|
838
890
|
publicKey: publicCoder.bytesLen,
|
|
839
891
|
seed: 32,
|
|
840
892
|
signature: sigCoder.bytesLen,
|
|
841
893
|
signRand: signRandBytes
|
|
842
|
-
},
|
|
894
|
+
}),
|
|
843
895
|
keygen: (seed) => {
|
|
844
896
|
const seedDst = new Uint8Array(32 + 2);
|
|
845
897
|
const randSeed = seed === void 0;
|
|
@@ -881,7 +933,10 @@ function getDilithium(opts) {
|
|
|
881
933
|
xof.clean();
|
|
882
934
|
xofPrime.clean();
|
|
883
935
|
cleanBytes(rho, rhoPrime, K_, s1, s2, s1Hat, t, t0, t1, tr, seedDst);
|
|
884
|
-
return {
|
|
936
|
+
return {
|
|
937
|
+
publicKey,
|
|
938
|
+
secretKey
|
|
939
|
+
};
|
|
885
940
|
},
|
|
886
941
|
getPublicKey: (secretKey) => {
|
|
887
942
|
const [rho, _K, _tr, s1, s2, _t0] = secretCoder.decode(secretKey);
|
|
@@ -1028,9 +1083,9 @@ function getDilithium(opts) {
|
|
|
1028
1083
|
return false;
|
|
1029
1084
|
return equalBytes(cTilde, c2);
|
|
1030
1085
|
}
|
|
1031
|
-
};
|
|
1032
|
-
return {
|
|
1033
|
-
info: { type: "ml-dsa" },
|
|
1086
|
+
});
|
|
1087
|
+
return Object.freeze({
|
|
1088
|
+
info: Object.freeze({ type: "ml-dsa" }),
|
|
1034
1089
|
internal,
|
|
1035
1090
|
securityLevel,
|
|
1036
1091
|
keygen: internal.keygen,
|
|
@@ -1049,8 +1104,8 @@ function getDilithium(opts) {
|
|
|
1049
1104
|
},
|
|
1050
1105
|
prehash: (hash) => {
|
|
1051
1106
|
checkHash(hash, securityLevel);
|
|
1052
|
-
return {
|
|
1053
|
-
info: { type: "hashml-dsa" },
|
|
1107
|
+
return Object.freeze({
|
|
1108
|
+
info: Object.freeze({ type: "hashml-dsa" }),
|
|
1054
1109
|
securityLevel,
|
|
1055
1110
|
lengths: internal.lengths,
|
|
1056
1111
|
keygen: internal.keygen,
|
|
@@ -1066,13 +1121,13 @@ function getDilithium(opts) {
|
|
|
1066
1121
|
validateVerOpts(opts2);
|
|
1067
1122
|
return internal.verify(sig, getMessagePrehash(hash, msg, opts2.context), publicKey);
|
|
1068
1123
|
}
|
|
1069
|
-
};
|
|
1124
|
+
});
|
|
1070
1125
|
}
|
|
1071
|
-
};
|
|
1126
|
+
});
|
|
1072
1127
|
}
|
|
1073
1128
|
var N, Q, ROOT_OF_UNITY, F, D, GAMMA2_1, GAMMA2_2; exports.PARAMS = void 0; var newPoly, crystals, id, polyCoder, polyAdd, polySub, polyShiftl, polyChknorm, MultiplyNTTs; exports.ml_dsa44 = void 0; exports.ml_dsa65 = void 0; exports.ml_dsa87 = void 0;
|
|
1074
|
-
var init_ml_dsa =
|
|
1075
|
-
"../../node_modules/.pnpm/@noble+post-quantum@0.6.
|
|
1129
|
+
var init_ml_dsa = chunkHCCQLAA4_cjs.__esm({
|
|
1130
|
+
"../../node_modules/.pnpm/@noble+post-quantum@0.6.1/node_modules/@noble/post-quantum/ml-dsa.js"() {
|
|
1076
1131
|
init_utils2();
|
|
1077
1132
|
init_sha3();
|
|
1078
1133
|
init_crystals();
|
|
@@ -1084,10 +1139,37 @@ var init_ml_dsa = chunk3SAK5KFL_cjs.__esm({
|
|
|
1084
1139
|
D = 13;
|
|
1085
1140
|
GAMMA2_1 = Math.floor((Q - 1) / 88) | 0;
|
|
1086
1141
|
GAMMA2_2 = Math.floor((Q - 1) / 32) | 0;
|
|
1087
|
-
exports.PARAMS = /* @__PURE__ */ (() => ({
|
|
1088
|
-
2: {
|
|
1089
|
-
|
|
1090
|
-
|
|
1142
|
+
exports.PARAMS = /* @__PURE__ */ (() => Object.freeze({
|
|
1143
|
+
2: Object.freeze({
|
|
1144
|
+
K: 4,
|
|
1145
|
+
L: 4,
|
|
1146
|
+
D,
|
|
1147
|
+
GAMMA1: 2 ** 17,
|
|
1148
|
+
GAMMA2: GAMMA2_1,
|
|
1149
|
+
TAU: 39,
|
|
1150
|
+
ETA: 2,
|
|
1151
|
+
OMEGA: 80
|
|
1152
|
+
}),
|
|
1153
|
+
3: Object.freeze({
|
|
1154
|
+
K: 6,
|
|
1155
|
+
L: 5,
|
|
1156
|
+
D,
|
|
1157
|
+
GAMMA1: 2 ** 19,
|
|
1158
|
+
GAMMA2: GAMMA2_2,
|
|
1159
|
+
TAU: 49,
|
|
1160
|
+
ETA: 4,
|
|
1161
|
+
OMEGA: 55
|
|
1162
|
+
}),
|
|
1163
|
+
5: Object.freeze({
|
|
1164
|
+
K: 8,
|
|
1165
|
+
L: 7,
|
|
1166
|
+
D,
|
|
1167
|
+
GAMMA1: 2 ** 19,
|
|
1168
|
+
GAMMA2: GAMMA2_2,
|
|
1169
|
+
TAU: 60,
|
|
1170
|
+
ETA: 2,
|
|
1171
|
+
OMEGA: 75
|
|
1172
|
+
})
|
|
1091
1173
|
}))();
|
|
1092
1174
|
newPoly = (n) => new Int32Array(n);
|
|
1093
1175
|
crystals = /* @__PURE__ */ genCrystals({
|
|
@@ -1104,28 +1186,36 @@ var init_ml_dsa = chunk3SAK5KFL_cjs.__esm({
|
|
|
1104
1186
|
encode: (i) => compress(verify(i)),
|
|
1105
1187
|
decode: (i) => verify(compress(i))
|
|
1106
1188
|
});
|
|
1107
|
-
polyAdd = (
|
|
1189
|
+
polyAdd = (a_, b_) => {
|
|
1190
|
+
const a = a_;
|
|
1191
|
+
const b = b_;
|
|
1108
1192
|
for (let i = 0; i < a.length; i++)
|
|
1109
1193
|
a[i] = crystals.mod(a[i] + b[i]);
|
|
1110
1194
|
return a;
|
|
1111
1195
|
};
|
|
1112
|
-
polySub = (
|
|
1196
|
+
polySub = (a_, b_) => {
|
|
1197
|
+
const a = a_;
|
|
1198
|
+
const b = b_;
|
|
1113
1199
|
for (let i = 0; i < a.length; i++)
|
|
1114
1200
|
a[i] = crystals.mod(a[i] - b[i]);
|
|
1115
1201
|
return a;
|
|
1116
1202
|
};
|
|
1117
|
-
polyShiftl = (
|
|
1203
|
+
polyShiftl = (p_) => {
|
|
1204
|
+
const p = p_;
|
|
1118
1205
|
for (let i = 0; i < N; i++)
|
|
1119
1206
|
p[i] <<= D;
|
|
1120
1207
|
return p;
|
|
1121
1208
|
};
|
|
1122
|
-
polyChknorm = (
|
|
1209
|
+
polyChknorm = (p_, B) => {
|
|
1210
|
+
const p = p_;
|
|
1123
1211
|
for (let i = 0; i < N; i++)
|
|
1124
1212
|
if (Math.abs(crystals.smod(p[i])) >= B)
|
|
1125
1213
|
return true;
|
|
1126
1214
|
return false;
|
|
1127
1215
|
};
|
|
1128
|
-
MultiplyNTTs = (
|
|
1216
|
+
MultiplyNTTs = (a_, b_) => {
|
|
1217
|
+
const a = a_;
|
|
1218
|
+
const b = b_;
|
|
1129
1219
|
const c = newPoly(N);
|
|
1130
1220
|
for (let i = 0; i < a.length; i++)
|
|
1131
1221
|
c[i] = crystals.mod(a[i] * b[i]);
|
|
@@ -1163,9 +1253,6 @@ var init_ml_dsa = chunk3SAK5KFL_cjs.__esm({
|
|
|
1163
1253
|
init_ml_dsa();
|
|
1164
1254
|
/*! Bundled license information:
|
|
1165
1255
|
|
|
1166
|
-
@noble/hashes/utils.js:
|
|
1167
|
-
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
1168
|
-
|
|
1169
1256
|
@noble/curves/utils.js:
|
|
1170
1257
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
1171
1258
|
|
|
@@ -1174,5 +1261,5 @@ init_ml_dsa();
|
|
|
1174
1261
|
@noble/post-quantum/ml-dsa.js:
|
|
1175
1262
|
(*! noble-post-quantum - MIT License (c) 2024 Paul Miller (paulmillr.com) *)
|
|
1176
1263
|
*/
|
|
1177
|
-
//# sourceMappingURL=ml-dsa-
|
|
1178
|
-
//# sourceMappingURL=ml-dsa-
|
|
1264
|
+
//# sourceMappingURL=ml-dsa-FSKBTE3W.cjs.map
|
|
1265
|
+
//# sourceMappingURL=ml-dsa-FSKBTE3W.cjs.map
|