@delali/narsil 0.3.1-next.155 → 0.3.1-next.157
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/NOTICE +45 -0
- package/dist/{analysis-change-3TFIHT5E.mjs → analysis-change-CKEMM2MC.mjs} +25 -18
- package/dist/{react-native/chunks/analysis-change-entry-JLL42PH6.mjs → analysis-change-entry-SEDMJ6MW.mjs} +1 -1
- package/dist/browser/{analysis-change-TC36BU47.mjs → analysis-change-ZKGJFENM.mjs} +42 -32
- package/dist/{analysis-change-entry-KA6JAO4X.mjs → browser/analysis-change-entry-5BFUVMHJ.mjs} +1 -1
- package/dist/browser/{chunk-KKAMCABR.mjs → chunk-25MTVDYD.mjs} +1 -1
- package/dist/browser/{chunk-K5AXJBLL.mjs → chunk-3NLMB5CC.mjs} +3 -3
- package/dist/browser/{chunk-23XRXIBW.mjs → chunk-5YWB3E2W.mjs} +8 -1
- package/dist/browser/chunk-AI5UI46D.mjs +12 -0
- package/dist/browser/{chunk-A5KUEGDY.mjs → chunk-BLT4RHCJ.mjs} +3 -3
- package/dist/browser/{chunk-RRO3EV4C.mjs → chunk-C26SPCGQ.mjs} +8 -7
- package/dist/browser/{chunk-ABCXENU5.mjs → chunk-C4FJ3WDY.mjs} +1 -1
- package/dist/browser/{chunk-3UIEB4QF.mjs → chunk-CXNTHHA7.mjs} +2 -2
- package/dist/browser/{chunk-JIJXMI42.mjs → chunk-DUH6QUVU.mjs} +547 -2
- package/dist/browser/chunk-EKMGCRSR.mjs +61 -0
- package/dist/browser/{chunk-JVBP5EYO.mjs → chunk-GFAZPSWK.mjs} +7 -7
- package/dist/browser/{chunk-CJSYBQ4J.mjs → chunk-HUCSHDTB.mjs} +1 -1
- package/dist/browser/{chunk-RND5CLX3.mjs → chunk-K3IPRX6D.mjs} +52 -21
- package/dist/browser/chunk-MY2XKH22.mjs +40 -0
- package/dist/browser/{chunk-SMEQ36NT.mjs → chunk-N23GL72Q.mjs} +629 -1416
- package/dist/browser/{chunk-LFIWRCEA.mjs → chunk-NXQG7DRA.mjs} +29 -6
- package/dist/browser/{chunk-26A5JFT2.mjs → chunk-TK63WFXK.mjs} +2 -1
- package/dist/browser/{chunk-4EWUGZYZ.mjs → chunk-U4YDIBUT.mjs} +2 -2
- package/dist/browser/{chunk-RQBUNZQW.mjs → chunk-UATIJ4KU.mjs} +2 -2
- package/dist/browser/{chunk-BXM5XOCA.mjs → chunk-UKOWD2K5.mjs} +3 -3
- package/dist/browser/{chunk-FNIFPFB7.mjs → chunk-UTMHUHUV.mjs} +2 -2
- package/dist/browser/{chunk-56W3HQVJ.mjs → chunk-V43N6TZO.mjs} +5 -5
- package/dist/browser/{chunk-K4GCSZLI.mjs → chunk-VLJQW4J6.mjs} +2985 -2985
- package/dist/browser/{chunk-IKDKX5VQ.mjs → chunk-VY5KW3HN.mjs} +3 -3
- package/dist/browser/{chunk-5TCXK5SB.mjs → chunk-WN464PTL.mjs} +1 -1
- package/dist/browser/{chunk-SUDNZKPL.mjs → chunk-X7TXYUKO.mjs} +1 -1
- package/dist/browser/{chunk-XY4VVBBO.mjs → chunk-Y6IBAUNO.mjs} +2 -86
- package/dist/browser/{cold-module-NEUGHUPA.mjs → cold-module-YNUUDNOM.mjs} +18 -15
- package/dist/browser/{durability-wiring-CVGPRO6D.mjs → durability-wiring-GVZEE46O.mjs} +71 -27
- package/dist/browser/{engine-hooks-YXMPHZKZ.mjs → engine-hooks-HBVS6YM4.mjs} +8 -6
- package/dist/browser/geo-index-OTV7VPIR.mjs +1387 -0
- package/dist/browser/{import-OM6QAW45.mjs → import-5ESVMFDJ.mjs} +9 -7
- package/dist/browser/{module-E33X4AOK.mjs → module-NDSQLPMQ.mjs} +14 -11
- package/dist/browser/{module-3HNFCBJ5.mjs → module-TCT66FWA.mjs} +6 -6
- package/dist/browser/{phrase-module-ZXXU7S3B.mjs → phrase-module-HAT3TLZN.mjs} +1 -1
- package/dist/{release-BH3DKW3T.mjs → browser/release-HYXPVJVS.mjs} +0 -1
- package/dist/browser/{restore-hooks-IF2ZROUP.mjs → restore-hooks-IE3GGYHG.mjs} +11 -9
- package/dist/browser/{restore-queue-ZBS7CJA6.mjs → restore-queue-LQBBTODR.mjs} +3 -3
- package/dist/browser/{retention-ASWUHAYI.mjs → retention-TY3L3BFN.mjs} +11 -9
- package/dist/browser/{snapshot-PN7ZW6Q4.mjs → snapshot-5FHPPCNZ.mjs} +27 -24
- package/dist/browser/{start-ZIRB7MQ2.mjs → start-2UZTOBG5.mjs} +12 -10
- package/dist/browser/{write-HMDYCTV2.mjs → write-ULXAN5B4.mjs} +14 -11
- package/dist/{capabilities-Da4ywVVl.d.ts → capabilities-D3AoBJoF.d.ts} +2 -2
- package/dist/{chunk-KBKEXQZA.mjs → chunk-24FNVRKB.mjs} +1 -1
- package/dist/{chunk-VHBNF4MA.mjs → chunk-2ROUFMQX.mjs} +2 -2
- package/dist/{chunk-AILVAOLX.mjs → chunk-4B7JIGQD.mjs} +2 -2
- package/dist/{chunk-DCNKVEDB.mjs → chunk-4LMSZAK6.mjs} +16 -6
- package/dist/{chunk-RSVULW4Q.mjs → chunk-4ZTHGTVX.mjs} +4 -4
- package/dist/{chunk-VQEUR6T6.mjs → chunk-5VV4R6P7.mjs} +3040 -3040
- package/dist/chunk-6HTGOXIK.mjs +875 -0
- package/dist/chunk-7GFE3PEY.mjs +40 -0
- package/dist/{chunk-JUKYYXSP.mjs → chunk-7V5IUP2T.mjs} +1 -31
- package/dist/{chunk-4BYWRYPM.mjs → chunk-A4L7YTKX.mjs} +52 -89
- package/dist/{chunk-J4IWBIVY.mjs → chunk-BNL5OPRV.mjs} +6 -6
- package/dist/{chunk-BY6ZDGYS.mjs → chunk-C7XQYG6U.mjs} +2 -2
- package/dist/{chunk-LC3FDWTX.mjs → chunk-CITFCZKF.mjs} +3 -2
- package/dist/{chunk-KXCVQWOR.mjs → chunk-CQZXZ75V.mjs} +3 -97
- package/dist/{chunk-SY3EWKQY.mjs → chunk-CWS55TEX.mjs} +2 -2
- package/dist/{chunk-3HHQLEEQ.mjs → chunk-EYD7K3H6.mjs} +7 -7
- package/dist/chunk-FB6463IN.mjs +1499 -0
- package/dist/{chunk-KFLK5NA2.mjs → chunk-FCJ553HS.mjs} +1 -1
- package/dist/{chunk-KMUNHGBQ.mjs → chunk-FEZVDOWX.mjs} +169 -253
- package/dist/{chunk-SG3JBNHY.mjs → chunk-FJKKCV4D.mjs} +1 -1
- package/dist/{chunk-BDRIVYOK.mjs → chunk-FUD5XSZ5.mjs} +1 -1
- package/dist/chunk-G6HRSGOU.mjs +74 -0
- package/dist/{chunk-S2EQU2GE.mjs → chunk-GPWMUPCA.mjs} +10 -10
- package/dist/{chunk-ZHCUZZE5.mjs → chunk-HHBUCIUY.mjs} +1 -1
- package/dist/{chunk-YEDIDCR7.mjs → chunk-I5B7RXU7.mjs} +91 -22
- package/dist/{chunk-2MANFZJ3.mjs → chunk-IIRIG7H5.mjs} +1 -1
- package/dist/{react-native/chunks/chunk-KWRW5U65.mjs → chunk-J4IJTTEX.mjs} +1 -1
- package/dist/{chunk-Q622CTMC.mjs → chunk-JSV6OQ4C.mjs} +1 -1
- package/dist/{chunk-NF4DT3IH.mjs → chunk-JTYPJF3T.mjs} +8 -1
- package/dist/chunk-KCQYFO4K.mjs +62 -0
- package/dist/{chunk-Q7G3BV3Y.mjs → chunk-KKQC526K.mjs} +19 -11
- package/dist/{chunk-PCRA7HTI.mjs → chunk-LDNCLRZU.mjs} +1 -1
- package/dist/{chunk-U4BS74YN.mjs → chunk-MW6BR4QP.mjs} +2 -2
- package/dist/{chunk-DIBHI6W5.mjs → chunk-MWD5VPN7.mjs} +2 -2
- package/dist/{chunk-UZRZKNNZ.mjs → chunk-ODYKO5TO.mjs} +1 -1
- package/dist/{chunk-PHQNACDT.mjs → chunk-OG7UGJ6F.mjs} +2 -2
- package/dist/{chunk-QH3YIQP4.mjs → chunk-OQLD2BSW.mjs} +2 -2
- package/dist/chunk-ORN5BLL7.mjs +11 -0
- package/dist/{chunk-L7ZD4L3K.mjs → chunk-OYABFKTW.mjs} +7 -6
- package/dist/{chunk-KBDBPVLN.mjs → chunk-P5LANSH6.mjs} +1 -1
- package/dist/{chunk-ZAUJFLEN.mjs → chunk-PIH5SJ4N.mjs} +122 -1697
- package/dist/{chunk-DUOLGBTE.mjs → chunk-PSZI4O24.mjs} +51 -4
- package/dist/{chunk-4KRC2APY.mjs → chunk-PV2CG7EJ.mjs} +5 -567
- package/dist/{chunk-6L3XJXGU.mjs → chunk-PWGYQXML.mjs} +1 -1
- package/dist/{chunk-5FVU47TB.mjs → chunk-QLDABJZM.mjs} +3 -3
- package/dist/{chunk-KPIV4RUC.mjs → chunk-RCX4WNLC.mjs} +2 -2
- package/dist/{chunk-3HB3PEC6.mjs → chunk-RIHIVFIQ.mjs} +6 -6
- package/dist/chunk-RLOES5SX.mjs +31 -0
- package/dist/{chunk-H6VIGE62.mjs → chunk-RWURUDSP.mjs} +10 -9
- package/dist/{chunk-ZTW5WTGG.mjs → chunk-SMOOSIAW.mjs} +4 -4
- package/dist/{chunk-MT2NRTA6.mjs → chunk-SOI6LTHM.mjs} +3 -3
- package/dist/chunk-SQJWAIF4.mjs +12 -0
- package/dist/{react-native/chunks/chunk-PPEPTUVV.mjs → chunk-TBC3XUL2.mjs} +29 -6
- package/dist/chunk-TDIK6NTV.mjs +10 -0
- package/dist/{react-native/chunks/chunk-JV6VQY2S.mjs → chunk-U55XJEIG.mjs} +2 -1
- package/dist/{chunk-H4KHPLHJ.mjs → chunk-UD5HIS4U.mjs} +1 -1
- package/dist/{chunk-HW5TNXBO.mjs → chunk-UJDJB3NE.mjs} +40 -31
- package/dist/{chunk-QUJHMPTP.mjs → chunk-VSLSGASN.mjs} +2 -2
- package/dist/{chunk-Z2BE2MAM.mjs → chunk-VZ2ONHEE.mjs} +32 -15
- package/dist/chunk-W5EB5XKI.mjs +741 -0
- package/dist/{chunk-3R4UZWQG.mjs → chunk-W7OSSKH5.mjs} +50 -20
- package/dist/{chunk-SMVH6JBE.mjs → chunk-XXJZMTZT.mjs} +1 -1
- package/dist/{chunk-VGF7CFRP.mjs → chunk-ZPZ3YGXV.mjs} +5 -4
- package/dist/{client-DRv7UVeY.d.ts → client-kqSMevVi.d.ts} +15 -3
- package/dist/client.d.ts +6 -6
- package/dist/client.mjs +4 -0
- package/dist/{cold-module-7XXCEGTZ.mjs → cold-module-VOJXMNZB.mjs} +31 -24
- package/dist/{config-DMwffLKn.d.ts → config-B4v_Htpu.d.ts} +1 -1
- package/dist/{config-CoSig5Ox.d.ts → config-CTP01fns.d.ts} +1 -1
- package/dist/direct-executor-V5DRIECI.mjs +34 -0
- package/dist/distribution/coordinator/etcd.mjs +2 -2
- package/dist/distribution/coordinator/in-memory.mjs +2 -2
- package/dist/distribution.d.ts +4 -4
- package/dist/distribution.mjs +94 -80
- package/dist/{durability-wiring-NCKUC5EO.mjs → durability-wiring-3TD62MBI.mjs} +57 -42
- package/dist/{engine-CFxPYqEk.d.ts → engine-CkPn2PWE.d.ts} +1 -1
- package/dist/{engine-hooks-DHCMOADY.mjs → engine-hooks-HA3SBOBR.mjs} +24 -17
- package/dist/geo-index-MRH5JMIR.mjs +1387 -0
- package/dist/{import-NBFXFCSG.mjs → import-GPKLTSKA.mjs} +24 -17
- package/dist/index.browser.mjs +7 -5
- package/dist/index.d.ts +131 -6
- package/dist/index.mjs +23 -16
- package/dist/index.react-native.mjs +12 -10
- package/dist/invalidation/filesystem.mjs +2 -2
- package/dist/{long-query-thread-J4DVRM4A.mjs → long-query-thread-QDFQSJD6.mjs} +26 -21
- package/dist/{module-DWKPBSMN.mjs → module-JYHFTVPS.mjs} +28 -20
- package/dist/{module-UN76TF7I.mjs → module-N55W4Q5C.mjs} +9 -9
- package/dist/{paged-partition-archive-DPNWVSK2.mjs → paged-partition-archive-RLRGOXDX.mjs} +33 -27
- package/dist/partial-words.mjs +8 -6
- package/dist/pattern.mjs +4 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +32 -22
- package/dist/{phrase-module-ZI4WSQVH.mjs → phrase-module-XW5MKWP5.mjs} +3 -2
- package/dist/query-suggestions/merge-worker.mjs +25 -18
- package/dist/query-suggestions.browser.mjs +13 -11
- package/dist/query-suggestions.d.ts +1 -1
- package/dist/query-suggestions.mjs +34 -27
- package/dist/react-native/chunks/{analysis-change-6BPDPH6K.mjs → analysis-change-QUVDNABS.mjs} +46 -36
- package/dist/{browser/analysis-change-entry-4MH3CZXH.mjs → react-native/chunks/analysis-change-entry-OC4XASBF.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-7PXRWYUU.mjs → chunk-2PRHILX3.mjs} +53 -19
- package/dist/{chunk-R6A773WK.mjs → react-native/chunks/chunk-3WI35N75.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-GIZTJXYW.mjs → chunk-4AV5PPH6.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-4Y53T4YE.mjs → chunk-4COWCEY7.mjs} +189 -178
- package/dist/react-native/chunks/{chunk-OL3WDV53.mjs → chunk-4NWR3NGS.mjs} +3 -3
- package/dist/react-native/chunks/{chunk-C3PTWYKT.mjs → chunk-5MSX5FRT.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-6WA3C3DV.mjs → chunk-6OFDUYVX.mjs} +8 -1
- package/dist/react-native/chunks/{chunk-4LCEN2IU.mjs → chunk-6ZELFCK5.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-CUH5F57W.mjs → chunk-BITYFZSZ.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-TYIRMPD3.mjs → chunk-DMIFXZ3Q.mjs} +1 -1
- package/dist/react-native/chunks/chunk-DXRSEWA2.mjs +12 -0
- package/dist/{chunk-YTJCGKM4.mjs → react-native/chunks/chunk-EJ33LCHV.mjs} +29 -6
- package/dist/react-native/chunks/{chunk-EIOYM5TO.mjs → chunk-ENLMYKSX.mjs} +3024 -3054
- package/dist/react-native/chunks/chunk-FHPW7P2O.mjs +40 -0
- package/dist/{chunk-4UMZ7KQL.mjs → react-native/chunks/chunk-FTZHMRD2.mjs} +2 -1
- package/dist/react-native/chunks/{chunk-ALOIBXWN.mjs → chunk-IAENKE2D.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-QJXTNPLQ.mjs → chunk-KSBYEMCB.mjs} +1 -1
- package/dist/react-native/chunks/chunk-KU646XXT.mjs +164 -0
- package/dist/react-native/chunks/{chunk-HUOYZJ3Q.mjs → chunk-OCSLSH27.mjs} +1561 -933
- package/dist/react-native/chunks/chunk-OXM66LO6.mjs +62 -0
- package/dist/react-native/chunks/{chunk-KTTAU63H.mjs → chunk-SK2PWYDH.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-PEHS2UO3.mjs → chunk-TORU2OHQ.mjs} +3 -3
- package/dist/react-native/chunks/{chunk-VXGE4ZXL.mjs → chunk-WVWJNUMN.mjs} +51 -21
- package/dist/react-native/chunks/{chunk-KJIG57UD.mjs → chunk-WW2X2AEI.mjs} +7 -7
- package/dist/react-native/chunks/{chunk-JLIIWJUV.mjs → chunk-YZW4CHM6.mjs} +50 -11
- package/dist/react-native/chunks/{chunk-GJFXPHXI.mjs → chunk-ZNZ6CPAZ.mjs} +2 -87
- package/dist/react-native/chunks/{chunk-7GRCBBME.mjs → chunk-ZVQMBF2H.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-N2WUOWLL.mjs → chunk-ZWAIN4GG.mjs} +7 -7
- package/dist/react-native/chunks/{cold-module-5PHF6DZR.mjs → cold-module-N6KFNNZA.mjs} +20 -17
- package/dist/react-native/chunks/{durability-wiring-KO565FZC.mjs → durability-wiring-RN64S2TL.mjs} +76 -32
- package/dist/react-native/chunks/{engine-hooks-MVRRHH6B.mjs → engine-hooks-CWA5CKCA.mjs} +13 -11
- package/dist/react-native/chunks/geo-index-PX3BIHAH.mjs +1387 -0
- package/dist/react-native/chunks/{import-YVZA4V4V.mjs → import-5UAWBRJP.mjs} +14 -12
- package/dist/react-native/chunks/{module-ZL5ZG6YB.mjs → module-6RP4ZCBW.mjs} +17 -14
- package/dist/react-native/chunks/{module-H5MVPSP2.mjs → module-TTEVPRCW.mjs} +8 -8
- package/dist/react-native/chunks/{phrase-module-RTVKEWJT.mjs → phrase-module-QK22HSQ2.mjs} +1 -1
- package/dist/react-native/chunks/{release-D7ZTIANM.mjs → release-2SIHZWDO.mjs} +0 -1
- package/dist/react-native/chunks/{restore-hooks-SILFPU6B.mjs → restore-hooks-ENFMDTWC.mjs} +17 -15
- package/dist/react-native/chunks/{restore-queue-HSYP2AEC.mjs → restore-queue-4R6AASE5.mjs} +3 -3
- package/dist/react-native/chunks/{retention-7I7UAWYK.mjs → retention-5GTFT3GR.mjs} +18 -16
- package/dist/react-native/chunks/{snapshot-EZYB6SLF.mjs → snapshot-5LGPQXFS.mjs} +32 -29
- package/dist/react-native/chunks/{start-SHVZ72I5.mjs → start-ZQJVZ5DN.mjs} +18 -16
- package/dist/react-native/chunks/{write-JUESXHDL.mjs → write-6BRYIIZ7.mjs} +17 -14
- package/dist/react-native/partial-words.mjs +7 -6
- package/dist/react-native/pattern.mjs +1 -1
- package/dist/react-native/query-suggestions.mjs +19 -17
- package/dist/react-native/sync.mjs +47 -13
- package/dist/react-native/synonyms.mjs +92 -24
- package/dist/react.d.ts +7 -7
- package/dist/{browser/release-76MXRPGV.mjs → release-SMR4WJD4.mjs} +0 -1
- package/dist/{restore-hooks-HZ3ILAMO.mjs → restore-hooks-HXLIEB4A.mjs} +28 -21
- package/dist/{restore-queue-JVGENGGE.mjs → restore-queue-LZH7LMLR.mjs} +3 -3
- package/dist/{retention-HROPV2QU.mjs → retention-3K7ARGAG.mjs} +29 -22
- package/dist/server.d.ts +10 -8
- package/dist/server.mjs +55 -41
- package/dist/{snapshot-4HS2G2UM.mjs → snapshot-O7ICP7NJ.mjs} +46 -39
- package/dist/{start-UTWHGH42.mjs → start-S4PFP6RS.mjs} +31 -24
- package/dist/sync/filesystem.d.ts +2 -2
- package/dist/sync/filesystem.mjs +3 -3
- package/dist/sync/indexeddb.d.ts +2 -2
- package/dist/sync.browser.mjs +46 -12
- package/dist/sync.d.ts +3 -3
- package/dist/sync.mjs +46 -12
- package/dist/synonyms.mjs +7 -6
- package/dist/{tasks-qrJojgST.d.ts → tasks-CoNjxbop.d.ts} +2 -2
- package/dist/{thread-6MOXY2KD.mjs → thread-YLJ3ZPQ3.mjs} +25 -20
- package/dist/{types-BZCGjfLn.d.ts → types-DPMjfOr_.d.ts} +1 -1
- package/dist/vector/search-worker.mjs +6 -6
- package/dist/workers/entry.mjs +17 -6
- package/dist/{write-GTTWWRRG.mjs → write-2OBJGLFS.mjs} +27 -19
- package/openapi.json +71 -0
- package/package.json +15 -8
- package/dist/chunk-DJHHF2L5.mjs +0 -17
- package/dist/chunk-HNVVEQP7.mjs +0 -44
- package/dist/chunk-WQRN64Q6.mjs +0 -196
- package/dist/direct-executor-G5TK7NLA.mjs +0 -29
- package/dist/react-native/chunks/chunk-3JIBF3XT.mjs +0 -191
- package/dist/browser/{chunk-4WCVMOU3.mjs → chunk-XAWNZ4G2.mjs} +10 -10
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { flattenSchema, getNestedValue } from './chunk-4COWCEY7.mjs';
|
|
2
|
+
import { VECTOR_PATTERN } from './chunk-C5G6TJ7A.mjs';
|
|
3
|
+
|
|
4
|
+
// src/serialization/vector-field-bytes.ts
|
|
5
|
+
var FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
6
|
+
var FLOAT32_BYTES = 4;
|
|
7
|
+
function vectorFieldPathsOfSchema(schema) {
|
|
8
|
+
const paths = /* @__PURE__ */ new Set();
|
|
9
|
+
for (const [fieldPath, fieldType] of Object.entries(flattenSchema(schema))) {
|
|
10
|
+
if (typeof fieldType === "string" && VECTOR_PATTERN.test(fieldType)) paths.add(fieldPath);
|
|
11
|
+
}
|
|
12
|
+
return paths;
|
|
13
|
+
}
|
|
14
|
+
function setNestedValue(obj, path, value) {
|
|
15
|
+
if (!path.includes(".")) {
|
|
16
|
+
if (FORBIDDEN_KEYS.has(path)) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
obj[path] = value;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const segments = path.split(".");
|
|
23
|
+
let current = obj;
|
|
24
|
+
for (let i = 0; i < segments.length - 1; i += 1) {
|
|
25
|
+
const segment = segments[i];
|
|
26
|
+
if (segment === void 0 || FORBIDDEN_KEYS.has(segment)) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
let next = current[segment];
|
|
30
|
+
if (next === null || next === void 0 || typeof next !== "object") {
|
|
31
|
+
next = {};
|
|
32
|
+
current[segment] = next;
|
|
33
|
+
}
|
|
34
|
+
current = next;
|
|
35
|
+
}
|
|
36
|
+
const finalSegment = segments.at(-1);
|
|
37
|
+
if (finalSegment === void 0 || FORBIDDEN_KEYS.has(finalSegment)) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
current[finalSegment] = value;
|
|
41
|
+
}
|
|
42
|
+
function restoreVectorFields(document, vectorFieldPaths) {
|
|
43
|
+
for (const fieldPath of vectorFieldPaths) {
|
|
44
|
+
const value = getNestedValue(document, fieldPath);
|
|
45
|
+
if (value instanceof Uint8Array && !(value instanceof Float32Array)) {
|
|
46
|
+
if (value.byteLength % FLOAT32_BYTES !== 0) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
`Vector field "${fieldPath}" has invalid byte length ${value.byteLength} (must be divisible by 4)`
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
const elementCount = value.byteLength / FLOAT32_BYTES;
|
|
52
|
+
const float32 = new Float32Array(elementCount);
|
|
53
|
+
const dataView = new DataView(value.buffer, value.byteOffset, value.byteLength);
|
|
54
|
+
for (let i = 0; i < elementCount; i += 1) {
|
|
55
|
+
float32[i] = dataView.getFloat32(i * FLOAT32_BYTES, true);
|
|
56
|
+
}
|
|
57
|
+
setNestedValue(document, fieldPath, float32);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { restoreVectorFields, setNestedValue, vectorFieldPathsOfSchema };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { REBUILD_REMOVED_RATIO, BUILD_TURN_HANDOVER_AFTER_MS, DRIFT_CHECK_GROWTH_FACTOR, VECTOR_FILE_REPLACED_ABOVE_DEAD_SHARE, VECTOR_FILE_FIXED_OVERHEAD_BYTES, VECTOR_FILE_CENTROID_BYTES_PER_COMPONENT, VECTOR_FILE_STRING_HEADER_BYTES } from './chunk-HJBJBH26.mjs';
|
|
2
|
-
import { createOrdinalFilter, addToOrdinalFilter, osqBitsOf, STORE_ORDINAL_LAYOUT_GENERATION, removeFromOrdinalFilter, createHNSWIndex, STORE_CALIBRATION_GENERATION, graphWithoutNodes, createOsqScratch, osqQuantize } from './chunk-
|
|
2
|
+
import { createOrdinalFilter, addToOrdinalFilter, osqBitsOf, STORE_ORDINAL_LAYOUT_GENERATION, removeFromOrdinalFilter, createHNSWIndex, STORE_CALIBRATION_GENERATION, graphWithoutNodes, createOsqScratch, osqQuantize } from './chunk-ENLMYKSX.mjs';
|
|
3
3
|
import { osqRecordBytes, VECTOR_FILE_MAX_VECTORS, NO_LIVE_VECTOR_AT_POSITION, bytesToVectors, VECTOR_GRAPH_PART_VECTORS, VECTOR_GRAPH_PART_PAYLOAD_VERSION, VECTOR_FILE_PAYLOAD_VERSION, deadBitsWhere, vectorsToBytes, writeRecord } from './chunk-DVDX4SDR.mjs';
|
|
4
|
-
import { turnsAreBudgeted, backgroundTurnIsSpent, yieldBackgroundTurn } from './chunk-
|
|
4
|
+
import { turnsAreBudgeted, backgroundTurnIsSpent, yieldBackgroundTurn } from './chunk-YZW4CHM6.mjs';
|
|
5
5
|
import { MAX_DOC_ID_LENGTH } from './chunk-AM7RSBPF.mjs';
|
|
6
6
|
import { MAX_FILE_BYTES } from './chunk-6VBXNFLE.mjs';
|
|
7
7
|
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { restoredConfigFields, restoredEmbedding } from './chunk-LZSLNSUN.mjs';
|
|
2
|
-
import { chunksOf } from './chunk-NVVRSRX5.mjs';
|
|
3
2
|
import { untagDocumentLine } from './chunk-4J74WHQM.mjs';
|
|
4
|
-
import {
|
|
3
|
+
import { chunksOf } from './chunk-NVVRSRX5.mjs';
|
|
4
|
+
import { turnsAreBudgeted, turnIsSpent, yieldTurn } from './chunk-YZW4CHM6.mjs';
|
|
5
5
|
import { MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, MAX_IMPORT_REFUSALS_REPORTED } from './chunk-AM7RSBPF.mjs';
|
|
6
6
|
import { requireConfigurationShape } from './chunk-YH7QY657.mjs';
|
|
7
|
-
import { flattenSchema } from './chunk-
|
|
7
|
+
import { flattenSchema } from './chunk-4COWCEY7.mjs';
|
|
8
8
|
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
9
9
|
|
|
10
10
|
// src/engine/export/lines.ts
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { gunzip, gzip } from './chunk-CKNRFDTZ.mjs';
|
|
2
1
|
import { DEFAULT_VECTOR_METRIC, defaultQuantizationFor } from './chunk-HJBJBH26.mjs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { storedStateToWire, storedStateFromWire } from './chunk-QJXTNPLQ.mjs';
|
|
6
|
-
import { readListedFile, requireListedChecksum, writeSegmentsOf, readSegmentFile, requireListedSize, SEGMENT_PAGE_BYTES, STABLE_HEAD_ATTEMPTS, RECORD_PAGE_BYTES, MERGED_SEGMENT_GROWTH_ALLOWANCE, MERGED_SEGMENT_TARGET_BYTES } from './chunk-C3PTWYKT.mjs';
|
|
7
|
-
import { restoreVectorFields } from './chunk-GJFXPHXI.mjs';
|
|
2
|
+
import { gunzip, gzip } from './chunk-CKNRFDTZ.mjs';
|
|
3
|
+
import { readListedFile, requireListedChecksum, writeSegmentsOf, readSegmentFile, requireListedSize, SEGMENT_PAGE_BYTES, STABLE_HEAD_ATTEMPTS, RECORD_PAGE_BYTES, MERGED_SEGMENT_GROWTH_ALLOWANCE, MERGED_SEGMENT_TARGET_BYTES } from './chunk-5MSX5FRT.mjs';
|
|
8
4
|
import { DEFAULT_COMPACTION_THRESHOLD, COMPACTION_LARGEST_MERGED_DOCUMENT_COUNT, SEGMENT_FILE_FRAMING_SLACK_BYTES } from './chunk-F753DA54.mjs';
|
|
9
|
-
import {
|
|
5
|
+
import { decodeSegmentManifest } from './chunk-BITYFZSZ.mjs';
|
|
10
6
|
import { decodeVectorGraphPartPayload, assembleGraphParts, decodeVectorFilePayload, countDead } from './chunk-DVDX4SDR.mjs';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
7
|
+
import { restoreVectorFields } from './chunk-OXM66LO6.mjs';
|
|
8
|
+
import { SEGMENT_MANIFEST_VERSION, MANIFEST_ENVELOPE_VERSION, manifestKey, manifestReferencedKeys, segmentsPrefix, snapshotBundleKey, vectorFileKey, MAX_SEGMENTS_PER_PARTITION, graphPartKey } from './chunk-6OFDUYVX.mjs';
|
|
9
|
+
import { isSyncEpoch } from './chunk-JWUCMVRK.mjs';
|
|
10
|
+
import { storedStateToWire, storedStateFromWire } from './chunk-KSBYEMCB.mjs';
|
|
11
|
+
import { VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, rulesOfStoredSynonyms, isCompositePartition, packChecksummedEnvelope, reconstructSchemaFromMetadata, engineVersionParts, packEnvelopeWithChecksum, survivorDocumentsOf, partitionStateOf, freezeSegmentShared, createSharedFrozenSegment, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, decodeEveryStoredDocument, shareSegmentArrays, decodeMapWithoutFields, prepareDocumentVectors } from './chunk-OCSLSH27.mjs';
|
|
13
12
|
import { crc32, readHeader, HEADER_SIZE, writeHeader, openChecksummedEnvelope, checksumOfChunks } from './chunk-YH7QY657.mjs';
|
|
14
|
-
import { flattenSchema, extractVectorFieldsFromSchema, requireValidFieldTypes, partialFieldsOf } from './chunk-
|
|
13
|
+
import { flattenSchema, extractVectorFieldsFromSchema, requireValidFieldTypes, partialFieldsOf, isQuantizationMode, isStorageMode } from './chunk-4COWCEY7.mjs';
|
|
15
14
|
import { VALID_HNSW_METRICS, MAX_FILE_BYTES } from './chunk-6VBXNFLE.mjs';
|
|
16
15
|
import { VECTOR_PATTERN } from './chunk-C5G6TJ7A.mjs';
|
|
17
16
|
import { getLanguage, resolveIndexAnalysis } from './chunk-MJDQU5MW.mjs';
|
|
18
|
-
import { compareCodePoints } from './chunk-
|
|
17
|
+
import { compareCodePoints } from './chunk-EJ33LCHV.mjs';
|
|
19
18
|
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
20
19
|
import { decode, encode } from '@msgpack/msgpack';
|
|
21
20
|
|
|
@@ -1232,7 +1231,7 @@ function holdsEveryHead(ref) {
|
|
|
1232
1231
|
async function loadFieldOnDemand(store, ref, vectorIndex, resolvePartition) {
|
|
1233
1232
|
const { pathOf } = store;
|
|
1234
1233
|
if (pathOf === void 0 || vectorIndex.storage !== "disk" || !holdsEveryHead(ref)) return false;
|
|
1235
|
-
const { loadFilesByParts, openColdVectorField, osqBitsOf, waitBeforeColdLoad } = await import('./cold-module-
|
|
1234
|
+
const { loadFilesByParts, openColdVectorField, osqBitsOf, waitBeforeColdLoad } = await import('./cold-module-N6KFNNZA.mjs');
|
|
1236
1235
|
await Promise.all([
|
|
1237
1236
|
...ref.files.map((file) => requireListedSize(store, file.key, { bytes: file.bytes, what: "vector file" })),
|
|
1238
1237
|
...ref.graphParts.map((part) => requireListedSize(store, part.key, { bytes: part.bytes, what: "graph part" }))
|
|
@@ -2036,7 +2035,7 @@ async function compactPartitionSegments(input) {
|
|
|
2036
2035
|
if (paged) {
|
|
2037
2036
|
const { directory } = input.store;
|
|
2038
2037
|
if (directory === void 0) return { segments, nextSegmentId: input.nextSegmentId };
|
|
2039
|
-
const { mergePagedWindow } = await import('./module-
|
|
2038
|
+
const { mergePagedWindow } = await import('./module-6RP4ZCBW.mjs');
|
|
2040
2039
|
return replacing(
|
|
2041
2040
|
await mergePagedWindow({
|
|
2042
2041
|
store: input.store,
|
|
@@ -2124,7 +2123,7 @@ function pagedSettingsOf(context) {
|
|
|
2124
2123
|
async function tombstonesOfDelta(context, older, selections, deleted) {
|
|
2125
2124
|
const { directory } = context.input.store;
|
|
2126
2125
|
if (context.input.metadata.textStorage !== "disk" || directory === void 0) return deleted;
|
|
2127
|
-
const { pagedTombstonesFor } = await import('./module-
|
|
2126
|
+
const { pagedTombstonesFor } = await import('./module-6RP4ZCBW.mjs');
|
|
2128
2127
|
return pagedTombstonesFor(
|
|
2129
2128
|
directory,
|
|
2130
2129
|
older,
|
|
@@ -2325,23 +2324,50 @@ function removeFromPartition(manager, partitionId, docIds) {
|
|
|
2325
2324
|
}
|
|
2326
2325
|
}
|
|
2327
2326
|
async function attachPagedSegment(directory, ref, partitionId, manager, options) {
|
|
2328
|
-
const { checkPagedSegmentFully, createPagedFrozenSegment, openPagedSnapshot, pagedListingOf } = await import('./module-
|
|
2327
|
+
const { checkPagedSegmentFully, createPagedFrozenSegment, openPagedSnapshot, pagedListingOf } = await import('./module-6RP4ZCBW.mjs');
|
|
2329
2328
|
if (options.decodesEveryDocument) await checkPagedSegmentFully(directory, ref);
|
|
2330
2329
|
const snapshot = openPagedSnapshot(await pagedListingOf(directory, ref));
|
|
2331
2330
|
requireAgreedSchema(options.schema, snapshot.schema, ref.key);
|
|
2332
2331
|
const segment = createPagedFrozenSegment(snapshot);
|
|
2333
2332
|
removeFromPartition(manager, partitionId, snapshot.tombstones);
|
|
2334
2333
|
options.writeRecords?.loadPagedSegment(manager.indexName, partitionId, segment);
|
|
2335
|
-
if (snapshot.documentCount > 0)
|
|
2336
|
-
|
|
2334
|
+
if (snapshot.documentCount > 0) {
|
|
2335
|
+
manager.attachFrozenSegment(partitionId, segment);
|
|
2336
|
+
return segment;
|
|
2337
|
+
}
|
|
2338
|
+
segment.paged?.close();
|
|
2339
|
+
return null;
|
|
2340
|
+
}
|
|
2341
|
+
function documentsHeldBefore(manager, partitionId) {
|
|
2342
|
+
const held = manager.partitionAt(partitionId);
|
|
2343
|
+
return held === void 0 ? [] : [...held.docIds()];
|
|
2344
|
+
}
|
|
2345
|
+
function removeDocumentsMissingFromLoadedSegments(manager, partitionId, heldBefore, loaded) {
|
|
2346
|
+
const absent = heldBefore.filter(
|
|
2347
|
+
(docId) => manager.partitionIdOf(docId) === partitionId && !loaded.some((segment) => segment.hasDocument(docId))
|
|
2348
|
+
);
|
|
2349
|
+
if (absent.length === 0) return;
|
|
2350
|
+
manager.beginBatchRemove();
|
|
2351
|
+
try {
|
|
2352
|
+
for (const docId of absent) manager.remove(docId);
|
|
2353
|
+
} finally {
|
|
2354
|
+
manager.endBatchRemove();
|
|
2355
|
+
}
|
|
2337
2356
|
}
|
|
2338
2357
|
async function loadPartitionSegments(store, partition, manager, options) {
|
|
2358
|
+
const heldBefore = documentsHeldBefore(manager, partition.partitionId);
|
|
2359
|
+
const loaded = await attachPartitionSegments(store, partition, manager, options);
|
|
2360
|
+
removeDocumentsMissingFromLoadedSegments(manager, partition.partitionId, heldBefore, loaded);
|
|
2361
|
+
}
|
|
2362
|
+
async function attachPartitionSegments(store, partition, manager, options) {
|
|
2363
|
+
const loaded = [];
|
|
2339
2364
|
const { directory } = store;
|
|
2340
2365
|
for (const ref of partition.segments) {
|
|
2341
2366
|
if (manager.config.textStorage === "disk" && directory !== void 0) {
|
|
2342
|
-
const { isPagedSegmentFile } = await import('./module-
|
|
2367
|
+
const { isPagedSegmentFile } = await import('./module-6RP4ZCBW.mjs');
|
|
2343
2368
|
if (await isPagedSegmentFile(directory, ref.key)) {
|
|
2344
|
-
await attachPagedSegment(directory, ref, partition.partitionId, manager, options);
|
|
2369
|
+
const paged = await attachPagedSegment(directory, ref, partition.partitionId, manager, options);
|
|
2370
|
+
if (paged !== null) loaded.push(paged);
|
|
2345
2371
|
await yieldToEventLoop();
|
|
2346
2372
|
continue;
|
|
2347
2373
|
}
|
|
@@ -2352,9 +2378,13 @@ async function loadPartitionSegments(store, partition, manager, options) {
|
|
|
2352
2378
|
const segment = createSharedFrozenSegment(shareSegmentArrays(contents.arrays, manager.partialWordAnalysis));
|
|
2353
2379
|
removeWhatTheSegmentReplaces(manager, segment, contents);
|
|
2354
2380
|
options.writeRecords?.loadSegment(manager.indexName, partition.partitionId, segment, contents);
|
|
2355
|
-
if (contents.arrays.documentCount > 0)
|
|
2381
|
+
if (contents.arrays.documentCount > 0) {
|
|
2382
|
+
manager.attachFrozenSegment(partition.partitionId, segment);
|
|
2383
|
+
loaded.push(segment);
|
|
2384
|
+
}
|
|
2356
2385
|
await yieldToEventLoop();
|
|
2357
2386
|
}
|
|
2387
|
+
return loaded;
|
|
2358
2388
|
}
|
|
2359
2389
|
|
|
2360
2390
|
// src/persistence/durability/segment/load.ts
|
|
@@ -2395,7 +2425,7 @@ async function loadSegmentedCheckpoint(store, indexName, manifest, deps, decodes
|
|
|
2395
2425
|
(field) => deps.vectorIndexes.get(field.fieldPath)?.storage === "disk" && field.files.some((file) => file.headOffset !== void 0)
|
|
2396
2426
|
);
|
|
2397
2427
|
if (!decodesEveryDocument && directory !== void 0 && opensVectorsOnDemand) {
|
|
2398
|
-
const { startReadingOpeningSectionsAhead } = await import('./module-
|
|
2428
|
+
const { startReadingOpeningSectionsAhead } = await import('./module-6RP4ZCBW.mjs');
|
|
2399
2429
|
await startReadingOpeningSectionsAhead(directory, manifest);
|
|
2400
2430
|
}
|
|
2401
2431
|
for (const partition of manifest.partitions) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { dayOf, DayStore, RestoredHistory, openCountsFile, sameBytes } from './chunk-
|
|
1
|
+
import { dayOf, DayStore, RestoredHistory, openCountsFile, sameBytes } from './chunk-4AV5PPH6.mjs';
|
|
2
|
+
import { installSuggestionHooks } from './chunk-ZVQMBF2H.mjs';
|
|
2
3
|
import { listHistoryFolder, historyFileOf, removeHistoryFolder, historyFilesOf, buildRecordKey, removeRestoreLeftovers } from './chunk-ZZT7CEN7.mjs';
|
|
3
|
-
import { SHA256_BLOCK_BYTES, sha256, SHA256_INITIAL_STATE, compressSha256Block, paddedSha256Message, sha256Digest } from './chunk-H3MDVPBO.mjs';
|
|
4
|
-
import { resolveSetting, isPerson, isGroup, acceptedPhrase, parseSchedule, nextMatchAfter, latestMatchAtOrBefore } from './chunk-TYIRMPD3.mjs';
|
|
5
|
-
import { installSuggestionHooks } from './chunk-7GRCBBME.mjs';
|
|
6
4
|
import { attachedRuntimeOf, attachRuntime } from './chunk-DIYDOIM4.mjs';
|
|
5
|
+
import { SHA256_BLOCK_BYTES, sha256, SHA256_INITIAL_STATE, compressSha256Block, paddedSha256Message, sha256Digest } from './chunk-H3MDVPBO.mjs';
|
|
6
|
+
import { resolveSetting, isPerson, isGroup, acceptedPhrase, parseSchedule, nextMatchAfter, latestMatchAtOrBefore } from './chunk-DMIFXZ3Q.mjs';
|
|
7
7
|
import './chunk-PSWKQVVT.mjs';
|
|
8
8
|
import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
9
|
-
import {
|
|
10
|
-
import { emitEngineEvent, emitWriteEventAfter, createEngineIndex, packEnvelopeWithChecksum } from './chunk-HUOYZJ3Q.mjs';
|
|
9
|
+
import { emitEngineEvent, emitWriteEventAfter, createEngineIndex, packEnvelopeWithChecksum } from './chunk-OCSLSH27.mjs';
|
|
11
10
|
import { withOpenIndex } from './chunk-JDOEEMEF.mjs';
|
|
11
|
+
import { SUGGESTIONS_INDEX_INFIX, BUILD_WRITE_BATCH, DAY_MS, MS_PER_SECOND, MIN_KEY_BYTES, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, MAX_TIMER_DELAY_MS, BUILD_LIST_PAGE } from './chunk-PJHAB5ZY.mjs';
|
|
12
12
|
import { crc32, openChecksummedEnvelope } from './chunk-YH7QY657.mjs';
|
|
13
|
-
import { compareCodePoints } from './chunk-
|
|
13
|
+
import { compareCodePoints } from './chunk-EJ33LCHV.mjs';
|
|
14
14
|
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
15
15
|
import { encode, decode } from '@msgpack/msgpack';
|
|
16
16
|
|
|
@@ -358,16 +358,6 @@ function collectYoungGeneration() {
|
|
|
358
358
|
return false;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
-
// src/vector/osq/constants.ts
|
|
362
|
-
var OSQ_GRID = { 1: 0.798, 2: 1.493, 4: 2.514, 8: 3.922 };
|
|
363
|
-
var OSQ_STEPS = { 1: 1, 2: 3, 4: 15, 8: 255 };
|
|
364
|
-
var OSQ_QUERY_BITS = { 1: 4, 2: 4, 4: 4, 8: 8 };
|
|
365
|
-
var OSQ_PLACEMENT_QUERY_BITS = { 1: 4, 2: 4, 4: 8, 8: 8 };
|
|
366
|
-
var OSQ_LAMBDA = 0.1;
|
|
367
|
-
var OSQ_REFINE_ROUNDS = 5;
|
|
368
|
-
var OSQ_REFINE_TOLERANCE = 1e-8;
|
|
369
|
-
var MIN_OVERSAMPLE = 1;
|
|
370
|
-
|
|
371
361
|
// src/workers/thread-slot.ts
|
|
372
362
|
var goneThreadSlots = /* @__PURE__ */ new Set();
|
|
373
363
|
function threadSlotOfWorker(workerId) {
|
|
@@ -383,6 +373,32 @@ function threadSlotGone(threadSlot) {
|
|
|
383
373
|
return goneThreadSlots.has(threadSlot);
|
|
384
374
|
}
|
|
385
375
|
|
|
376
|
+
// src/vector/native/backend.ts
|
|
377
|
+
var nativeSearchCoreEnabled = true;
|
|
378
|
+
function nativeSearchCoreIsEnabled() {
|
|
379
|
+
return nativeSearchCoreEnabled;
|
|
380
|
+
}
|
|
381
|
+
function stopUsingTheNativeSearchCore(error) {
|
|
382
|
+
if (!nativeSearchCoreEnabled) return;
|
|
383
|
+
nativeSearchCoreEnabled = false;
|
|
384
|
+
console.warn(
|
|
385
|
+
"The native search core raised an error, so this thread searches through WebAssembly from now on:",
|
|
386
|
+
error instanceof Error ? error.message : String(error)
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
function noteFallback(operation) {
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
// src/vector/osq/constants.ts
|
|
393
|
+
var OSQ_GRID = { 1: 0.798, 2: 1.493, 4: 2.514, 8: 3.922 };
|
|
394
|
+
var OSQ_STEPS = { 1: 1, 2: 3, 4: 15, 8: 255 };
|
|
395
|
+
var OSQ_QUERY_BITS = { 1: 4, 2: 4, 4: 4, 8: 8 };
|
|
396
|
+
var OSQ_PLACEMENT_QUERY_BITS = { 1: 4, 2: 4, 4: 8, 8: 8 };
|
|
397
|
+
var OSQ_LAMBDA = 0.1;
|
|
398
|
+
var OSQ_REFINE_ROUNDS = 5;
|
|
399
|
+
var OSQ_REFINE_TOLERANCE = 1e-8;
|
|
400
|
+
var MIN_OVERSAMPLE = 1;
|
|
401
|
+
|
|
386
402
|
// src/core/doc-id-tables/constants.ts
|
|
387
403
|
var DOC_ID_TABLE_SHARD_BITS = 6;
|
|
388
404
|
|
|
@@ -437,6 +453,29 @@ function createDocIdMap() {
|
|
|
437
453
|
return new ShardedDocIdMap();
|
|
438
454
|
}
|
|
439
455
|
|
|
456
|
+
// src/vector/native/types.ts
|
|
457
|
+
var NATIVE_CORE_ABI_VERSION = 8;
|
|
458
|
+
var NATIVE_OK = 0;
|
|
459
|
+
var NATIVE_NEEDS_ROOM = 3;
|
|
460
|
+
var NATIVE_GRAPH_NOT_HELD_ALONE = 4;
|
|
461
|
+
|
|
462
|
+
// src/vector/native/loader.react-native.ts
|
|
463
|
+
var loaded;
|
|
464
|
+
function loadNativeCore() {
|
|
465
|
+
if (loaded !== void 0) return loaded;
|
|
466
|
+
const core = reactNativeHost().core;
|
|
467
|
+
const reported = core.abiVersion();
|
|
468
|
+
if (reported !== NATIVE_CORE_ABI_VERSION) {
|
|
469
|
+
console.warn(
|
|
470
|
+
`Narsil searches without its native core on this phone, because the core reports ABI version ${reported} while this build of Narsil needs ${NATIVE_CORE_ABI_VERSION}.`
|
|
471
|
+
);
|
|
472
|
+
loaded = null;
|
|
473
|
+
return loaded;
|
|
474
|
+
}
|
|
475
|
+
loaded = core;
|
|
476
|
+
return loaded;
|
|
477
|
+
}
|
|
478
|
+
|
|
440
479
|
// src/runtime/detect.ts
|
|
441
480
|
function detectRuntimeName() {
|
|
442
481
|
if ("Bun" in globalThis) {
|
|
@@ -520,4 +559,4 @@ function collectYoungGenerationBeforeRefusal() {
|
|
|
520
559
|
return collectYoungGeneration();
|
|
521
560
|
}
|
|
522
561
|
|
|
523
|
-
export { HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, MIN_OVERSAMPLE, OSQ_GRID, OSQ_LAMBDA, OSQ_PLACEMENT_QUERY_BITS, OSQ_QUERY_BITS, OSQ_REFINE_ROUNDS, OSQ_REFINE_TOLERANCE, OSQ_STEPS, admittedHeapBytes, backgroundTurnIsSpent, changeIndexOutsideExternalWaits, chargeHeapBytes, collectAndReturnPages, collectGarbageBeforeRefusal, collectYoungGenerationBeforeRefusal, countWrite, createDocIdMap, detectRuntime, holdWrites, holdWritesAndBackgroundWork, indexChangeOutsideExternalWaits, isSimdAvailable, markSimdUnavailable, noteThreadSlotGone, noteThreadSlotLive, reserveHeapBytes, reservedHeapBytes, threadSlotGone, threadSlotOfWorker, turnIsSpent, turnsAreBudgeted, waitOutsideCountedWrite, yieldBackgroundTurn, yieldTurn };
|
|
562
|
+
export { HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, MIN_OVERSAMPLE, NATIVE_GRAPH_NOT_HELD_ALONE, NATIVE_NEEDS_ROOM, NATIVE_OK, OSQ_GRID, OSQ_LAMBDA, OSQ_PLACEMENT_QUERY_BITS, OSQ_QUERY_BITS, OSQ_REFINE_ROUNDS, OSQ_REFINE_TOLERANCE, OSQ_STEPS, admittedHeapBytes, backgroundTurnIsSpent, changeIndexOutsideExternalWaits, chargeHeapBytes, collectAndReturnPages, collectGarbageBeforeRefusal, collectYoungGenerationBeforeRefusal, countWrite, createDocIdMap, detectRuntime, holdWrites, holdWritesAndBackgroundWork, indexChangeOutsideExternalWaits, isSimdAvailable, loadNativeCore, markSimdUnavailable, nativeSearchCoreIsEnabled, noteFallback, noteThreadSlotGone, noteThreadSlotLive, reserveHeapBytes, reservedHeapBytes, stopUsingTheNativeSearchCore, threadSlotGone, threadSlotOfWorker, turnIsSpent, turnsAreBudgeted, waitOutsideCountedWrite, yieldBackgroundTurn, yieldTurn };
|
|
@@ -1,93 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getNestedValue } from './chunk-4Y53T4YE.mjs';
|
|
3
|
-
import { requireValidFieldTypes } from './chunk-3JIBF3XT.mjs';
|
|
1
|
+
import { requireValidFieldTypes } from './chunk-4COWCEY7.mjs';
|
|
4
2
|
import { VECTOR_PATTERN } from './chunk-C5G6TJ7A.mjs';
|
|
5
3
|
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
6
4
|
import { decode } from '@msgpack/msgpack';
|
|
7
5
|
|
|
8
|
-
function applyIndexEntry(entry, manager, vectorFieldPaths, vecIndexes, schedulesGraphBuild = true) {
|
|
9
|
-
if (entry.document === null) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
const document = decode(entry.document);
|
|
13
|
-
restoreVectorFields(document, vectorFieldPaths);
|
|
14
|
-
const documentId = entry.documentId;
|
|
15
|
-
if (manager.has(documentId)) {
|
|
16
|
-
removeDocumentVectors(documentId, vecIndexes);
|
|
17
|
-
manager.remove(documentId);
|
|
18
|
-
}
|
|
19
|
-
const { partitionDoc, extractedVectors } = prepareDocumentVectors(document, vectorFieldPaths);
|
|
20
|
-
manager.insert(documentId, partitionDoc);
|
|
21
|
-
try {
|
|
22
|
-
insertDocumentVectors(documentId, extractedVectors, vecIndexes, manager.partitionIdOf(documentId));
|
|
23
|
-
} catch (err) {
|
|
24
|
-
manager.remove(documentId);
|
|
25
|
-
throw err;
|
|
26
|
-
}
|
|
27
|
-
if (!schedulesGraphBuild) return;
|
|
28
|
-
for (const fieldPath of extractedVectors.keys()) {
|
|
29
|
-
const vecIndex = vecIndexes.get(fieldPath);
|
|
30
|
-
if (vecIndex) {
|
|
31
|
-
vecIndex.scheduleBuild();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function applyDeleteEntry(entry, manager, vecIndexes, removedSpellings) {
|
|
36
|
-
removeDocumentVectors(entry.documentId, vecIndexes);
|
|
37
|
-
if (!manager.has(entry.documentId)) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
manager.remove(entry.documentId, removedSpellings);
|
|
41
|
-
}
|
|
42
|
-
function restoreVectorFields(document, vectorFieldPaths) {
|
|
43
|
-
for (const fieldPath of vectorFieldPaths) {
|
|
44
|
-
const value = getNestedValue(document, fieldPath);
|
|
45
|
-
if (value instanceof Uint8Array && !(value instanceof Float32Array)) {
|
|
46
|
-
if (value.byteLength % 4 !== 0) {
|
|
47
|
-
throw new Error(
|
|
48
|
-
`Vector field "${fieldPath}" has invalid byte length ${value.byteLength} (must be divisible by 4)`
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
const elementCount = value.byteLength / 4;
|
|
52
|
-
const float32 = new Float32Array(elementCount);
|
|
53
|
-
const dataView = new DataView(value.buffer, value.byteOffset, value.byteLength);
|
|
54
|
-
for (let i = 0; i < elementCount; i += 1) {
|
|
55
|
-
float32[i] = dataView.getFloat32(i * 4, true);
|
|
56
|
-
}
|
|
57
|
-
setNestedValue(document, fieldPath, float32);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
var FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
62
|
-
function setNestedValue(obj, path, value) {
|
|
63
|
-
if (!path.includes(".")) {
|
|
64
|
-
if (FORBIDDEN_KEYS.has(path)) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
obj[path] = value;
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
const segments = path.split(".");
|
|
71
|
-
let current = obj;
|
|
72
|
-
for (let i = 0; i < segments.length - 1; i += 1) {
|
|
73
|
-
const segment = segments[i];
|
|
74
|
-
if (segment === void 0 || FORBIDDEN_KEYS.has(segment)) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
let next = current[segment];
|
|
78
|
-
if (next === null || next === void 0 || typeof next !== "object") {
|
|
79
|
-
next = {};
|
|
80
|
-
current[segment] = next;
|
|
81
|
-
}
|
|
82
|
-
current = next;
|
|
83
|
-
}
|
|
84
|
-
const finalSegment = segments.at(-1);
|
|
85
|
-
if (finalSegment === void 0 || FORBIDDEN_KEYS.has(finalSegment)) {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
current[finalSegment] = value;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
6
|
// src/serialization/keyword-segment/types.ts
|
|
92
7
|
var KEYWORD_SEGMENT_PAYLOAD_VERSION = 1;
|
|
93
8
|
var KEYWORD_SEGMENT_ENVELOPE_VERSION = 4;
|
|
@@ -644,4 +559,4 @@ function decodeKeywordSegment(payload, shared) {
|
|
|
644
559
|
return writeRecords === null ? { schema, tombstones, arrays } : { schema, tombstones, arrays, writeRecords };
|
|
645
560
|
}
|
|
646
561
|
|
|
647
|
-
export { KEYWORD_SEGMENT_ENVELOPE_VERSION, KEYWORD_SEGMENT_PAYLOAD_VERSION,
|
|
562
|
+
export { KEYWORD_SEGMENT_ENVELOPE_VERSION, KEYWORD_SEGMENT_PAYLOAD_VERSION, decodeBooleanColumns, decodeEnumColumns, decodeFieldLengths, decodeGeopointColumns, decodeKeywordSegment, decodePartialWords, decodePatternColumns, decodeSurfaceForms, decodeValueColumns, littleEndianBytes, requireEntriesAscend, requireOffsets, requireUtf8Entries, uint32sFrom, uint64Bytes };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { attachedRuntimeOf } from './chunk-DIYDOIM4.mjs';
|
|
2
|
-
import { emitWriteEventAfter, dropEngineIndex } from './chunk-
|
|
2
|
+
import { emitWriteEventAfter, dropEngineIndex } from './chunk-OCSLSH27.mjs';
|
|
3
3
|
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
4
4
|
|
|
5
5
|
// src/query-suggestions/engine-hooks.ts
|
|
@@ -52,7 +52,7 @@ async function startQuerySuggestions(core, engine, config) {
|
|
|
52
52
|
installSuggestionHooks(core);
|
|
53
53
|
if (config?.querySuggestions === void 0 && !holdsEnabledSetting(core)) return;
|
|
54
54
|
try {
|
|
55
|
-
const { localRuntimeOf } = await import('./start-
|
|
55
|
+
const { localRuntimeOf } = await import('./start-ZQJVZ5DN.mjs');
|
|
56
56
|
await localRuntimeOf(core, engine, config);
|
|
57
57
|
} catch (error) {
|
|
58
58
|
await engine.shutdown().catch(() => void 0);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { encodeDocumentJson } from './chunk-WBYQRHDY.mjs';
|
|
2
|
-
import { loadFailed, sectionNamed, PAGED_SEGMENT_ENVELOPE_VERSION, writeSegmentsOf, MessagePackChunks, writeSurfaceForms, writeFieldLengths, writeValueColumns, writeBooleanColumns, writeEnumColumns, writeGeopointColumns, writePatternColumns, writePartialWords, encodePagedSegmentHead, SECTION_ALIGNMENT_BYTES, SEGMENT_PAGE_BYTES, FILE_ASSEMBLY_CHUNK_BYTES, REWRITE_SPILL_BYTES, PAYLOAD_PREFIX_BYTES, decodePagedSegmentHead, BLOCK_SUMMARY_BYTES, SMALLEST_BLOCK_POSTINGS, DOCUMENT_BLOCK_BYTES, LIST_VIEWS_HELD_PER_SEGMENT, TOMBSTONES_BETWEEN_YIELDS, readSegmentFile, decodeSections, READS_AHEAD_AT_ONCE, WRITER_YIELD_INTERVAL_TOKENS, DOCUMENT_BLOCK_MIN_RAW_BYTES, ID_SAMPLE_INTERVAL, LARGEST_CACHED_ENTRY_SHARE, MAX_THREAD_FILE_NUMBER, POSITION_WIDTH_BYTES, POSTING_WIDTH_BYTES, RECORD_PAGE_BYTES, REMOVAL_BUCKET_WRITE_BUFFER_BYTES, SECTION_WRITE_BUFFER_BYTES, MAX_DOCUMENT_BLOCK_RAW_BYTES, READ_AHEAD_CHUNK_BYTES, LARGEST_REMOVAL_BUCKET_COUNT, REMOVAL_BUCKET_TARGET_BYTES, THREAD_READ_CACHE_BYTES, MERGE_READ_CACHE_BYTES } from './chunk-
|
|
3
|
-
import { requireOffsets, requireUtf8Entries, requireEntriesAscend, decodeFieldLengths, decodePartialWords, decodePatternColumns, decodeGeopointColumns, decodeEnumColumns, decodeBooleanColumns, decodeValueColumns,
|
|
2
|
+
import { loadFailed, sectionNamed, PAGED_SEGMENT_ENVELOPE_VERSION, writeSegmentsOf, MessagePackChunks, writeSurfaceForms, writeFieldLengths, writeValueColumns, writeBooleanColumns, writeEnumColumns, writeGeopointColumns, writePatternColumns, writePartialWords, encodePagedSegmentHead, SECTION_ALIGNMENT_BYTES, SEGMENT_PAGE_BYTES, FILE_ASSEMBLY_CHUNK_BYTES, REWRITE_SPILL_BYTES, PAYLOAD_PREFIX_BYTES, decodePagedSegmentHead, BLOCK_SUMMARY_BYTES, SMALLEST_BLOCK_POSTINGS, DOCUMENT_BLOCK_BYTES, LIST_VIEWS_HELD_PER_SEGMENT, TOMBSTONES_BETWEEN_YIELDS, readSegmentFile, decodeSections, READS_AHEAD_AT_ONCE, WRITER_YIELD_INTERVAL_TOKENS, DOCUMENT_BLOCK_MIN_RAW_BYTES, ID_SAMPLE_INTERVAL, LARGEST_CACHED_ENTRY_SHARE, MAX_THREAD_FILE_NUMBER, POSITION_WIDTH_BYTES, POSTING_WIDTH_BYTES, RECORD_PAGE_BYTES, REMOVAL_BUCKET_WRITE_BUFFER_BYTES, SECTION_WRITE_BUFFER_BYTES, MAX_DOCUMENT_BLOCK_RAW_BYTES, READ_AHEAD_CHUNK_BYTES, LARGEST_REMOVAL_BUCKET_COUNT, REMOVAL_BUCKET_TARGET_BYTES, THREAD_READ_CACHE_BYTES, MERGE_READ_CACHE_BYTES } from './chunk-5MSX5FRT.mjs';
|
|
3
|
+
import { requireOffsets, requireUtf8Entries, requireEntriesAscend, decodeFieldLengths, decodePartialWords, decodePatternColumns, decodeGeopointColumns, decodeEnumColumns, decodeBooleanColumns, decodeValueColumns, littleEndianBytes, uint32sFrom, uint64Bytes, decodeSurfaceForms } from './chunk-ZNZ6CPAZ.mjs';
|
|
4
4
|
import { createVectorFileReader } from './chunk-4DII3ZSM.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { setNestedValue } from './chunk-OXM66LO6.mjs';
|
|
6
|
+
import { generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, decodeStoredDocument, isCompositePartition, mergeFieldLengths, mergeSurfaceForms, encodeSurfaceTable, mergePartialWords, buildPartialWordTableFrom, mergeFieldIndexes, engineVersionParts, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, decodeSurfaceTable, mergeDocFrequencies, createSharedFrozenSegment, shareSegmentArrays, selectionKeeps, fieldIndexRemapOf, freezeSegmentShared, createFrozenSegment, scanPostingBlocks, holdsADiscardedField, endOfValue } from './chunk-OCSLSH27.mjs';
|
|
6
7
|
import { reactNativeHost } from './chunk-MVXELMJX.mjs';
|
|
7
|
-
import { parseVectorDimension } from './chunk-4Y53T4YE.mjs';
|
|
8
8
|
import { HEADER_SIZE, requireWithinFileLimit, crc32Init, crc32Update, crc32Final, writeHeader, crc32, readHeader } from './chunk-YH7QY657.mjs';
|
|
9
|
-
import { flattenSchema, encodeDocument } from './chunk-
|
|
9
|
+
import { flattenSchema, parseVectorDimension, encodeDocument } from './chunk-4COWCEY7.mjs';
|
|
10
10
|
import { VECTOR_PATTERN } from './chunk-C5G6TJ7A.mjs';
|
|
11
|
-
import { compareCodePoints } from './chunk-
|
|
11
|
+
import { compareCodePoints } from './chunk-EJ33LCHV.mjs';
|
|
12
12
|
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
13
13
|
import { decode, encode } from '@msgpack/msgpack';
|
|
14
14
|
|
|
@@ -1308,7 +1308,7 @@ async function coldFieldOf(checkpoint, field) {
|
|
|
1308
1308
|
const dimension = fieldType === void 0 ? null : parseVectorDimension(fieldType);
|
|
1309
1309
|
if (dimension === null) return null;
|
|
1310
1310
|
const withPath = async (ref) => ({ ref, path: await directory.pathOf(ref.key) });
|
|
1311
|
-
const { openColdVectorField } = await import('./cold-module-
|
|
1311
|
+
const { openColdVectorField } = await import('./cold-module-N6KFNNZA.mjs');
|
|
1312
1312
|
return openColdVectorField({
|
|
1313
1313
|
fieldPath: field.fieldPath,
|
|
1314
1314
|
dimension,
|
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { magnitude, defaultRescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, scalarQueryProducts, osqEstimate, osqDistance, toDistance } from './chunk-ENLMYKSX.mjs';
|
|
2
|
+
export { createHNSWIndex, osqBitsOf } from './chunk-ENLMYKSX.mjs';
|
|
3
|
+
import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-ZWAIN4GG.mjs';
|
|
4
|
+
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-ZWAIN4GG.mjs';
|
|
3
5
|
import './chunk-WBYQRHDY.mjs';
|
|
4
6
|
import './chunk-4J74WHQM.mjs';
|
|
5
|
-
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
+
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-5MSX5FRT.mjs';
|
|
8
|
+
import './chunk-ZNZ6CPAZ.mjs';
|
|
7
9
|
import './chunk-F753DA54.mjs';
|
|
8
|
-
import { magnitude, defaultRescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, scalarQueryProducts, osqEstimate, osqDistance, toDistance } from './chunk-EIOYM5TO.mjs';
|
|
9
|
-
export { createHNSWIndex, osqBitsOf } from './chunk-EIOYM5TO.mjs';
|
|
10
10
|
import './chunk-4DII3ZSM.mjs';
|
|
11
|
-
import './chunk-6WA3C3DV.mjs';
|
|
12
11
|
import { isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, stageQueryLevels, readTrailer } from './chunk-DVDX4SDR.mjs';
|
|
13
|
-
import
|
|
12
|
+
import './chunk-OXM66LO6.mjs';
|
|
13
|
+
import './chunk-6OFDUYVX.mjs';
|
|
14
|
+
import { yieldToEventLoop } from './chunk-OCSLSH27.mjs';
|
|
15
|
+
import './chunk-NNE4VDMM.mjs';
|
|
14
16
|
import './chunk-IO2SMUQD.mjs';
|
|
15
|
-
import './chunk-
|
|
17
|
+
import './chunk-YZW4CHM6.mjs';
|
|
18
|
+
import './chunk-LU3Y3P63.mjs';
|
|
16
19
|
import './chunk-AM7RSBPF.mjs';
|
|
17
20
|
import './chunk-MVXELMJX.mjs';
|
|
18
|
-
import './chunk-NNE4VDMM.mjs';
|
|
19
|
-
import './chunk-LU3Y3P63.mjs';
|
|
20
21
|
import './chunk-RDWG33MM.mjs';
|
|
21
|
-
import './chunk-
|
|
22
|
+
import './chunk-KU646XXT.mjs';
|
|
22
23
|
import './chunk-UNUFZ2QY.mjs';
|
|
23
24
|
import './chunk-3NQOVO3K.mjs';
|
|
24
25
|
import './chunk-JDOEEMEF.mjs';
|
|
25
|
-
import './chunk-
|
|
26
|
+
import './chunk-2PRHILX3.mjs';
|
|
26
27
|
import { HEADER_SIZE, crc32, readHeader } from './chunk-YH7QY657.mjs';
|
|
27
28
|
import './chunk-CHPTFFJM.mjs';
|
|
28
|
-
import './chunk-
|
|
29
|
+
import './chunk-4COWCEY7.mjs';
|
|
29
30
|
import './chunk-5CQX3XXV.mjs';
|
|
30
31
|
import './chunk-6VBXNFLE.mjs';
|
|
31
32
|
import './chunk-C5G6TJ7A.mjs';
|
|
32
33
|
import './chunk-MJDQU5MW.mjs';
|
|
33
|
-
import './chunk-
|
|
34
|
-
import { compareCodePoints } from './chunk-
|
|
34
|
+
import './chunk-3WI35N75.mjs';
|
|
35
|
+
import { compareCodePoints } from './chunk-EJ33LCHV.mjs';
|
|
36
|
+
import './chunk-FHPW7P2O.mjs';
|
|
37
|
+
import './chunk-DXRSEWA2.mjs';
|
|
35
38
|
import './chunk-LVIKKAA6.mjs';
|
|
36
39
|
import './chunk-AAAETEJK.mjs';
|
|
37
|
-
import './chunk-
|
|
40
|
+
import './chunk-FTZHMRD2.mjs';
|
|
38
41
|
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
39
42
|
import { decode, decodeMulti } from '@msgpack/msgpack';
|
|
40
43
|
|