kaabalah 5.5.1 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +25 -0
  2. package/dist/{chunk-BJUCABP4.js → chunk-3HYK4Q4B.js} +123 -10
  3. package/dist/chunk-3HYK4Q4B.js.map +1 -0
  4. package/dist/{chunk-27IU6FA2.mjs → chunk-3SFBJHP2.mjs} +3 -3
  5. package/dist/{chunk-27IU6FA2.mjs.map → chunk-3SFBJHP2.mjs.map} +1 -1
  6. package/dist/chunk-4NMXTZX4.mjs +525 -0
  7. package/dist/chunk-4NMXTZX4.mjs.map +1 -0
  8. package/dist/{chunk-PEAOQ7YH.js → chunk-EVQ432JA.js} +23 -23
  9. package/dist/{chunk-PEAOQ7YH.js.map → chunk-EVQ432JA.js.map} +1 -1
  10. package/dist/{chunk-PPSRTX52.mjs → chunk-IHQPXEB7.mjs} +123 -11
  11. package/dist/chunk-IHQPXEB7.mjs.map +1 -0
  12. package/dist/{chunk-3IPH7UTM.mjs → chunk-OGWTKRJK.js} +196 -3
  13. package/dist/chunk-OGWTKRJK.js.map +1 -0
  14. package/dist/{chunk-W5UTGQI2.mjs → chunk-S6BFRUJQ.mjs} +3 -3
  15. package/dist/{chunk-W5UTGQI2.mjs.map → chunk-S6BFRUJQ.mjs.map} +1 -1
  16. package/dist/{chunk-FYR5Z7M2.js → chunk-U3JFWP24.mjs} +185 -6
  17. package/dist/chunk-U3JFWP24.mjs.map +1 -0
  18. package/dist/chunk-XB6PXEKO.js +529 -0
  19. package/dist/chunk-XB6PXEKO.js.map +1 -0
  20. package/dist/{chunk-ZQ2ZZPOW.js → chunk-XTVGQXCL.js} +4 -4
  21. package/dist/{chunk-ZQ2ZZPOW.js.map → chunk-XTVGQXCL.js.map} +1 -1
  22. package/dist/cli.js +881 -46
  23. package/dist/cli.js.map +1 -1
  24. package/dist/{registry-DOiHyH-r.d.mts → constants-DbFwuCjR.d.mts} +1 -177
  25. package/dist/{registry-DOiHyH-r.d.ts → constants-DbFwuCjR.d.ts} +1 -177
  26. package/dist/core/index.d.mts +66 -3
  27. package/dist/core/index.d.ts +66 -3
  28. package/dist/core/index.js +55 -39
  29. package/dist/core/index.mjs +2 -2
  30. package/dist/correspondence-model-D8c42J4c.d.mts +281 -0
  31. package/dist/correspondence-model-DhmBYoMf.d.ts +281 -0
  32. package/dist/gematria/index.d.mts +2 -1
  33. package/dist/gematria/index.d.ts +2 -1
  34. package/dist/gematria/index.js +5 -5
  35. package/dist/gematria/index.mjs +2 -2
  36. package/dist/index.d.mts +4 -3
  37. package/dist/index.d.ts +4 -3
  38. package/dist/index.js +109 -69
  39. package/dist/index.mjs +5 -5
  40. package/dist/numerology/index.js +18 -18
  41. package/dist/numerology/index.mjs +3 -3
  42. package/dist/tarot/index.d.mts +64 -2
  43. package/dist/tarot/index.d.ts +64 -2
  44. package/dist/tarot/index.js +30 -4
  45. package/dist/tarot/index.mjs +3 -1
  46. package/package.json +1 -1
  47. package/dist/chunk-3IPH7UTM.mjs.map +0 -1
  48. package/dist/chunk-AD7T42HJ.js +0 -4
  49. package/dist/chunk-AD7T42HJ.js.map +0 -1
  50. package/dist/chunk-BJUCABP4.js.map +0 -1
  51. package/dist/chunk-FYR5Z7M2.js.map +0 -1
  52. package/dist/chunk-PPSRTX52.mjs.map +0 -1
  53. package/dist/chunk-RFSO3JRG.mjs +0 -3
  54. package/dist/chunk-RFSO3JRG.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkBJUCABP4_js = require('./chunk-BJUCABP4.js');
3
+ var chunk3HYK4Q4B_js = require('./chunk-3HYK4Q4B.js');
4
4
  var chunkFM7WUVZV_js = require('./chunk-FM7WUVZV.js');
5
5
 
6
6
  // src/gematria/data.ts
@@ -15,13 +15,13 @@ chunkFM7WUVZV_js.__export(data_exports, {
15
15
  });
16
16
  var EXTENDED_MASTER_NUMBERS = [11, 22, 33, 44, 55, 66, 77, 88, 99];
17
17
  var DIGRAPHS = /* @__PURE__ */ new Set([
18
- chunkBJUCABP4_js.LATIN_LETTERS.PH,
19
- chunkBJUCABP4_js.LATIN_LETTERS.TS,
20
- chunkBJUCABP4_js.LATIN_LETTERS.TZ,
21
- chunkBJUCABP4_js.LATIN_LETTERS.SH,
22
- chunkBJUCABP4_js.LATIN_LETTERS.CH,
23
- chunkBJUCABP4_js.LATIN_LETTERS.TH,
24
- chunkBJUCABP4_js.LATIN_LETTERS.KH
18
+ chunk3HYK4Q4B_js.LATIN_LETTERS.PH,
19
+ chunk3HYK4Q4B_js.LATIN_LETTERS.TS,
20
+ chunk3HYK4Q4B_js.LATIN_LETTERS.TZ,
21
+ chunk3HYK4Q4B_js.LATIN_LETTERS.SH,
22
+ chunk3HYK4Q4B_js.LATIN_LETTERS.CH,
23
+ chunk3HYK4Q4B_js.LATIN_LETTERS.TH,
24
+ chunk3HYK4Q4B_js.LATIN_LETTERS.KH
25
25
  ]);
26
26
  var GematriaNumbersWithMeaning = /* @__PURE__ */ ((GematriaNumbersWithMeaning2) => {
27
27
  GematriaNumbersWithMeaning2[GematriaNumbersWithMeaning2["One"] = 1] = "One";
@@ -139,8 +139,8 @@ function getLetterMapping({
139
139
  letterId,
140
140
  isStarting
141
141
  }) {
142
- if (isStarting && chunkBJUCABP4_js.parseId(letterId) === "O") {
143
- return tree.getNode(chunkBJUCABP4_js.id("hebrewLetter" /* HEBREW_LETTER */, chunkBJUCABP4_js.HEBREW_LETTERS.AYIN));
142
+ if (isStarting && chunk3HYK4Q4B_js.parseId(letterId) === "O") {
143
+ return tree.getNode(chunk3HYK4Q4B_js.id("hebrewLetter" /* HEBREW_LETTER */, chunk3HYK4Q4B_js.HEBREW_LETTERS.AYIN));
144
144
  }
145
145
  return tree.walk(letterId, 2, "hebrewLetter" /* HEBREW_LETTER */).at(0);
146
146
  }
@@ -150,7 +150,7 @@ function processLetter(tree, letters, i) {
150
150
  const combinedLetter = letter + nextLetter;
151
151
  if (DIGRAPHS.has(combinedLetter)) {
152
152
  const isEnding2 = i > 0 && i === letters.length - 2;
153
- const latinLetterId2 = chunkBJUCABP4_js.id("latinLetter" /* LATIN_LETTER */, combinedLetter);
153
+ const latinLetterId2 = chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, combinedLetter);
154
154
  const mapping2 = getLetterMapping({
155
155
  tree,
156
156
  letterId: latinLetterId2,
@@ -172,7 +172,7 @@ function processLetter(tree, letters, i) {
172
172
  };
173
173
  }
174
174
  const isStarting = i === 0;
175
- const latinLetterId = chunkBJUCABP4_js.id("latinLetter" /* LATIN_LETTER */, letter);
175
+ const latinLetterId = chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, letter);
176
176
  const mapping = getLetterMapping({
177
177
  tree,
178
178
  letterId: latinLetterId,
@@ -229,7 +229,7 @@ function calculateLetterPercentages(word, tree, prev) {
229
229
  const newLetters = { ...prev.letters };
230
230
  for (const letter of new Set(letters)) {
231
231
  const occurrences = letters.filter((l) => l === letter).length;
232
- const latinLetter = tree.getNode(chunkBJUCABP4_js.id("latinLetter" /* LATIN_LETTER */, letter));
232
+ const latinLetter = tree.getNode(chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, letter));
233
233
  newLetters[letter] = occurrences / letterCount * 100;
234
234
  if (latinLetter?.data?.isVowel) {
235
235
  vowelsCount += occurrences;
@@ -245,8 +245,8 @@ function calculateLetterPercentages(word, tree, prev) {
245
245
  }
246
246
  function getMissingGematriaValues(tree, includedGematriaValues) {
247
247
  const missingGematriaValues = [];
248
- for (const hebrewLetter of Object.values(chunkBJUCABP4_js.HEBREW_LETTERS)) {
249
- const hebrewLetterId = chunkBJUCABP4_js.id("hebrewLetter" /* HEBREW_LETTER */, hebrewLetter);
248
+ for (const hebrewLetter of Object.values(chunk3HYK4Q4B_js.HEBREW_LETTERS)) {
249
+ const hebrewLetterId = chunk3HYK4Q4B_js.id("hebrewLetter" /* HEBREW_LETTER */, hebrewLetter);
250
250
  const hebrewLetterNode = tree.getNode(hebrewLetterId);
251
251
  if (!hebrewLetterNode?.data) continue;
252
252
  if (!includedGematriaValues.has(hebrewLetterNode.data.gematriaValue)) {
@@ -268,7 +268,7 @@ function getMissingGematriaValues(tree, includedGematriaValues) {
268
268
  return missingGematriaValues;
269
269
  }
270
270
  function buildLetterInfo(tree, letter, isStarting) {
271
- const latinLetterId = chunkBJUCABP4_js.id("latinLetter" /* LATIN_LETTER */, letter);
271
+ const latinLetterId = chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, letter);
272
272
  const latinLetterNode = tree.getNode(latinLetterId);
273
273
  if (!latinLetterNode?.data) return void 0;
274
274
  const mapping = getLetterMapping({ tree, letterId: latinLetterId, isStarting });
@@ -361,7 +361,7 @@ var reverseGematria = (options, tree) => {
361
361
  return { results: [], hasMore: false, totalFound: 0 };
362
362
  }
363
363
  if (!tree) {
364
- tree = chunkBJUCABP4_js.createTree({ system: chunkBJUCABP4_js.SYSTEM, parts: [] });
364
+ tree = chunk3HYK4Q4B_js.createTree({ system: chunk3HYK4Q4B_js.SYSTEM, parts: [] });
365
365
  }
366
366
  if (suggestionText !== void 0) {
367
367
  if (suggestionMode === "subsequence") {
@@ -417,7 +417,7 @@ var reverseGematria = (options, tree) => {
417
417
  const isEnding = idx === currentLength - 1 && currentLength > 1;
418
418
  const useEndingValue = isEnding && info.endingValue !== void 0;
419
419
  return {
420
- latinLetterId: chunkBJUCABP4_js.id("latinLetter" /* LATIN_LETTER */, info.letter),
420
+ latinLetterId: chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, info.letter),
421
421
  value: useEndingValue ? info.endingValue : info.normalValue,
422
422
  hebrewLetterId: info.hebrewLetterId,
423
423
  hebrewCharacter: useEndingValue && info.hebrewCharacterWhenEnding ? info.hebrewCharacterWhenEnding : info.hebrewCharacter,
@@ -565,7 +565,7 @@ function reverseGematriaAnagram(options, tree) {
565
565
  const isEnding = idx === currentInfos.length - 1 && currentInfos.length > 1;
566
566
  const useEndingValue = isEnding && info.endingValue !== void 0;
567
567
  return {
568
- latinLetterId: chunkBJUCABP4_js.id("latinLetter" /* LATIN_LETTER */, info.letter),
568
+ latinLetterId: chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, info.letter),
569
569
  value: useEndingValue ? info.endingValue : info.normalValue,
570
570
  hebrewLetterId: info.hebrewLetterId,
571
571
  hebrewCharacter: useEndingValue && info.hebrewCharacterWhenEnding ? info.hebrewCharacterWhenEnding : info.hebrewCharacter,
@@ -752,7 +752,7 @@ function reverseGematriaFromSubsequence(options, tree) {
752
752
  const isEnding = idx === currentInfos.length - 1 && currentInfos.length > 1;
753
753
  const useEndingValue = isEnding && info.endingValue !== void 0;
754
754
  return {
755
- latinLetterId: chunkBJUCABP4_js.id("latinLetter" /* LATIN_LETTER */, info.letter),
755
+ latinLetterId: chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, info.letter),
756
756
  value: useEndingValue ? info.endingValue : info.normalValue,
757
757
  hebrewLetterId: info.hebrewLetterId,
758
758
  hebrewCharacter: useEndingValue && info.hebrewCharacterWhenEnding ? info.hebrewCharacterWhenEnding : info.hebrewCharacter,
@@ -877,7 +877,7 @@ var calculateGematria = (phrase, options = {
877
877
  percentages: false
878
878
  }, tree) => {
879
879
  if (!tree) {
880
- tree = chunkBJUCABP4_js.createTree({ system: chunkBJUCABP4_js.SYSTEM, parts: [] });
880
+ tree = chunk3HYK4Q4B_js.createTree({ system: chunk3HYK4Q4B_js.SYSTEM, parts: [] });
881
881
  }
882
882
  const words = phrase.toUpperCase().trim().split(" ");
883
883
  const initialState = {
@@ -941,5 +941,5 @@ var calculateGematria = (phrase, options = {
941
941
  exports.calculateGematria = calculateGematria;
942
942
  exports.data_exports = data_exports;
943
943
  exports.reverseGematria = reverseGematria;
944
- //# sourceMappingURL=chunk-PEAOQ7YH.js.map
945
- //# sourceMappingURL=chunk-PEAOQ7YH.js.map
944
+ //# sourceMappingURL=chunk-EVQ432JA.js.map
945
+ //# sourceMappingURL=chunk-EVQ432JA.js.map