@thyrith/momentkh 3.0.0 → 3.0.1

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/README.md CHANGED
@@ -17,11 +17,11 @@ const momentkh = require("@thyrith/momentkh");
17
17
  // Convert date to Khmer format (default)
18
18
  const khmer = momentkh.fromDate(new Date());
19
19
  console.log(momentkh.format(khmer));
20
- // Output: ថ្ងៃចន្ទ ១៦រោច ខែមិគសិរ ឆ្នាំរោង ឆស័ក ពុទ្ធសករាជ ២៥៦៨
20
+ // Output: ថ្ងៃពុធ ១២រោច ខែមិគសិរ ឆ្នាំម្សាញ់ សប្តស័ក ពុទ្ធសករាជ ២៥៦៩
21
21
 
22
22
  // Convert date to Khmer format (custom)
23
23
  console.log(momentkh.format(khmer, "dN ខែm ឆ្នាំa"));
24
- // Output: ១៦រោច ខែមិគសិរ ឆ្នាំរោង
24
+ // Output: ១២រោច ខែមិគសិរ ឆ្នាំម្សាញ់
25
25
 
26
26
  // Convert Khmer date to Gregorian
27
27
  const gregorian = momentkh.fromKhmer(15, 0, 5, 2568); // 15កើត ខែពិសាខ ព.ស.២៥៦៨
@@ -31,7 +31,7 @@ console.log(gregorian);
31
31
  // Get Khmer New Year
32
32
  const newYear = momentkh.getNewYear(2025);
33
33
  console.log(newYear);
34
- // Output: { year: 2025, month: 4, day: 13, hour: 20, minute: 9 }
34
+ // Output: { year: 2025, month: 4, day: 14, hour: 4, minute: 48 }
35
35
  ```
36
36
 
37
37
  ---
@@ -104,19 +104,23 @@ Type definitions are included automatically when you install via NPM. For direct
104
104
  ### Browser (HTML)
105
105
 
106
106
  ```html
107
+ <!-- Include the browser-compatible UMD bundle -->
107
108
  <script src="momentkh.js"></script>
108
109
  <script>
109
110
  // Convert today to Khmer
110
111
  const today = new Date();
111
112
  const khmer = momentkh.fromDate(today);
112
113
  console.log(momentkh.format(khmer));
113
- // Output: ថ្ងៃចន្ទ ១០កើត ខែចេត្រ ឆ្នាំរោង ឆស័ក ពុទ្ធសករាជ ២៥៦៧
114
+ // Output: ថ្ងៃពុធ ១២រោច ខែមិគសិរ ឆ្នាំម្សាញ់ សប្តស័ក ពុទ្ធសករាជ ២៥៦៩
114
115
  </script>
115
116
  ```
116
117
 
118
+ > **Note:** Use `momentkh.js` (UMD bundle) for browsers. The `dist/momentkh.js` is CommonJS format for Node.js.
119
+
117
120
  ### Node.js (CommonJS)
118
121
 
119
122
  ```javascript
123
+ // Use the CommonJS module from dist/
120
124
  const momentkh = require("@thyrith/momentkh");
121
125
 
122
126
  // Convert specific date
@@ -125,7 +129,7 @@ console.log(momentkh.format(khmer));
125
129
 
126
130
  // Get Khmer New Year
127
131
  const newYear = momentkh.getNewYear(2024);
128
- console.log(newYear); // { year: 2024, month: 4, day: 13, hour: 22, minute: 24 }
132
+ console.log(newYear); // { year: 2024, month: 4, day: 13, hour: 22, minute: 17 }
129
133
  ```
130
134
 
131
135
  ### ES Modules
@@ -165,14 +169,14 @@ console.log(momentkh.format(khmer));
165
169
 
166
170
  // Access enum values (NEW in v3.0!)
167
171
  console.log(khmer.khmer.moonPhase === MoonPhase.Waxing); // Type-safe comparison
168
- console.log(khmer.khmer.monthIndex === MonthIndex.Chetr); // Enum comparison
172
+ console.log(khmer.khmer.monthIndex === MonthIndex.Cheit); // Enum comparison
169
173
  console.log(khmer.khmer.dayOfWeek === DayOfWeek.Sunday); // Autocomplete support!
170
174
 
171
175
  // Reverse conversion with enums (type-safe!)
172
176
  const gregorianDate: GregorianDate = momentkh.fromKhmer(
173
177
  15,
174
178
  MoonPhase.Waxing, // Use enum instead of 0
175
- MonthIndex.Visakh, // Use enum instead of 5
179
+ MonthIndex.Pisakh, // Use enum instead of 5
176
180
  2568
177
181
  );
178
182
  console.log(
@@ -267,9 +271,9 @@ Converts a Gregorian (Western) date to a Khmer Lunar date.
267
271
 
268
272
  ```javascript
269
273
  const result = momentkh.fromGregorian(2024, 4, 14);
270
- console.log(result.khmer.beYear); // 2568
274
+ console.log(result.khmer.beYear); // 2567
271
275
  console.log(result.khmer.monthName); // 'ចេត្រ'
272
- console.log(result.khmer.animalYear); // 'រោង'
276
+ console.log(result.khmer.animalYear); // 4 (រោង)
273
277
  ```
274
278
 
275
279
  ---
@@ -319,14 +323,14 @@ Converts a Khmer Lunar date to a Gregorian date.
319
323
  ```javascript
320
324
  // Using numbers (backward compatible)
321
325
  const gregorian1 = momentkh.fromKhmer(6, 0, 4, 2568);
322
- console.log(gregorian1); // { year: 2024, month: 4, day: 14 }
326
+ console.log(gregorian1); // { year: 2025, month: 4, day: 3 }
323
327
 
324
328
  // Using enums (NEW in v3.0 - type-safe!)
325
329
  const { MoonPhase, MonthIndex } = momentkh;
326
330
  const gregorian2 = momentkh.fromKhmer(
327
331
  6,
328
332
  MoonPhase.Waxing,
329
- MonthIndex.Chetr,
333
+ MonthIndex.Cheit,
330
334
  2568
331
335
  );
332
336
  console.log(gregorian2); // { year: 2024, month: 4, day: 14 }
@@ -415,7 +419,7 @@ console.log(
415
419
  ny2024.hour
416
420
  }:${String(ny2024.minute).padStart(2, "0")}`
417
421
  );
418
- // Output: Khmer New Year 2024: 13/4/2024 at 22:24
422
+ // Output: Khmer New Year 2024: 13/4/2024 at 22:17
419
423
 
420
424
  // Loop through multiple years
421
425
  for (let year = 2020; year <= 2025; year++) {
@@ -495,20 +499,20 @@ All 14 Khmer lunar months (including leap months).
495
499
  ```javascript
496
500
  const { MonthIndex } = momentkh;
497
501
 
498
- MonthIndex.Mikasar; // 0 - មិគសិរ
502
+ MonthIndex.Migasir; // 0 - មិគសិរ
499
503
  MonthIndex.Bos; // 1 - បុស្ស
500
504
  MonthIndex.Meak; // 2 - មាឃ
501
- MonthIndex.Phalgun; // 3 - ផល្គុន
502
- MonthIndex.Chetr; // 4 - ចេត្រ
503
- MonthIndex.Visakh; // 5 - ពិសាខ
505
+ MonthIndex.Phalkun; // 3 - ផល្គុន
506
+ MonthIndex.Cheit; // 4 - ចេត្រ
507
+ MonthIndex.Pisakh; // 5 - ពិសាខ
504
508
  MonthIndex.Jesth; // 6 - ជេស្ឋ
505
- MonthIndex.Asath; // 7 - អាសាឍ
509
+ MonthIndex.Asadh; // 7 - អាសាឍ
506
510
  MonthIndex.Srap; // 8 - ស្រាពណ៍
507
- MonthIndex.Photrobot; // 9 - ភទ្របទ
511
+ MonthIndex.Phatrabot; // 9 - ភទ្របទ
508
512
  MonthIndex.Assoch; // 10 - អស្សុជ
509
- MonthIndex.Kadek; // 11 - កត្ដិក
510
- MonthIndex.BothmakAsath; // 12 - បឋមាសាឍ (leap month only)
511
- MonthIndex.TutiyakAsath; // 13 - ទុតិយាសាឍ (leap month only)
513
+ MonthIndex.Kadeuk; // 11 - កត្ដិក
514
+ MonthIndex.Pathamasadh; // 12 - បឋមាសាឍ (leap month only)
515
+ MonthIndex.Tutiyasadh; // 13 - ទុតិយាសាឍ (leap month only)
512
516
  ```
513
517
 
514
518
  #### 🐉 AnimalYear
@@ -539,16 +543,16 @@ The 10 era years (ស័ក) cycle.
539
543
  ```javascript
540
544
  const { EraYear } = momentkh;
541
545
 
542
- EraYear.Samridhisak; // 0 - 🔟 សំរឹទ្ធិស័ក
543
- EraYear.Ekasak; // 1 - 1️⃣ ឯកស័ក
544
- EraYear.Tosak; // 2 - 2️⃣ ទោស័ក
545
- EraYear.Tresak; // 3 - 3️⃣ ត្រីស័ក
546
- EraYear.Chatvasak; // 4 - 4️⃣ ចត្វាស័ក
547
- EraYear.Panchasak; // 5 - 5️⃣ បញ្ចស័ក
548
- EraYear.Chhasak; // 6 - 6️⃣ ឆស័ក
549
- EraYear.Saptasak; // 7 - 7️⃣ សប្តស័ក
550
- EraYear.Atthasak; // 8 - 8️⃣ អដ្ឋស័ក
551
- EraYear.Novvasak; // 9 - 9️⃣ នព្វស័ក
546
+ EraYear.SamridhiSak; // 0 - 🔟 សំរឹទ្ធិស័ក
547
+ EraYear.AekSak; // 1 - 1️⃣ ឯកស័ក
548
+ EraYear.ToSak; // 2 - 2️⃣ ទោស័ក
549
+ EraYear.TreiSak; // 3 - 3️⃣ ត្រីស័ក
550
+ EraYear.ChattvaSak; // 4 - 4️⃣ ចត្វាស័ក
551
+ EraYear.PanchaSak; // 5 - 5️⃣ បញ្ចស័ក
552
+ EraYear.ChhaSak; // 6 - 6️⃣ ឆស័ក
553
+ EraYear.SappaSak; // 7 - 7️⃣ សប្តស័ក
554
+ EraYear.AtthaSak; // 8 - 8️⃣ អដ្ឋស័ក
555
+ EraYear.NappaSak; // 9 - 9️⃣ នព្វស័ក
552
556
  ```
553
557
 
554
558
  #### 📆 DayOfWeek
@@ -583,8 +587,8 @@ if (khmer.khmer.moonPhase === MoonPhase.Waxing) {
583
587
  }
584
588
 
585
589
  // Check specific month
586
- if (khmer.khmer.monthIndex === MonthIndex.Mikasar) {
587
- console.log("It is Mikasar month!");
590
+ if (khmer.khmer.monthIndex === MonthIndex.Migasir) {
591
+ console.log("It is Migasir month!");
588
592
  }
589
593
 
590
594
  // Check day of week
@@ -602,7 +606,7 @@ const { MoonPhase, MonthIndex } = momentkh;
602
606
  const date1 = momentkh.fromKhmer(
603
607
  15, // day
604
608
  MoonPhase.Waxing, // instead of 0
605
- MonthIndex.Visakh, // instead of 5
609
+ MonthIndex.Pisakh, // instead of 5
606
610
  2568
607
611
  );
608
612
 
@@ -622,14 +626,14 @@ const khmer = momentkh.fromGregorian(2024, 12, 16);
622
626
 
623
627
  // Switch on month
624
628
  switch (khmer.khmer.monthIndex) {
625
- case MonthIndex.Mikasar:
629
+ case MonthIndex.Migasir:
626
630
  case MonthIndex.Bos:
627
631
  case MonthIndex.Meak:
628
632
  console.log("Winter months");
629
633
  break;
630
- case MonthIndex.Phalgun:
631
- case MonthIndex.Chetr:
632
- case MonthIndex.Visakh:
634
+ case MonthIndex.Phalkun:
635
+ case MonthIndex.Cheit:
636
+ case MonthIndex.Pisakh:
633
637
  console.log("Spring months");
634
638
  break;
635
639
  // ... more cases
@@ -666,14 +670,14 @@ const month: MonthIndex = result.khmer.monthIndex;
666
670
  const date = momentkh.fromKhmer(
667
671
  15,
668
672
  MoonPhase. // ← IDE shows: Waxing, Waning
669
- MonthIndex. // ← IDE shows: Mikasar, Bos, Meak, etc.
673
+ MonthIndex. // ← IDE shows: Migasir, Bos, Meak, etc.
670
674
  2568
671
675
  );
672
676
  ```
673
677
 
674
678
  ### Benefits of Using Enums
675
679
 
676
- 1. 📖 **Readability**: `MonthIndex.Visakh` is clearer than `5`
680
+ 1. 📖 **Readability**: `MonthIndex.Pisakh` is clearer than `5`
677
681
  2. 🛡️ **Type Safety**: TypeScript catches invalid values at compile time
678
682
  3. ⚡ **Autocomplete**: IDEs show all available options
679
683
  4. 🔧 **Maintainability**: Easier to understand code months later
@@ -686,8 +690,8 @@ const date = momentkh.fromKhmer(
686
690
 
687
691
  ```javascript
688
692
  // All of these work:
689
- momentkh.fromKhmer(15, MoonPhase.Waxing, MonthIndex.Visakh, 2568); // ✨ New enum way
690
- momentkh.fromKhmer(15, 0, MonthIndex.Visakh, 2568); // 🔀 Mixed
693
+ momentkh.fromKhmer(15, MoonPhase.Waxing, MonthIndex.Pisakh, 2568); // ✨ New enum way
694
+ momentkh.fromKhmer(15, 0, MonthIndex.Pisakh, 2568); // 🔀 Mixed
691
695
  momentkh.fromKhmer(15, MoonPhase.Waxing, 5, 2568); // 🔀 Mixed
692
696
  momentkh.fromKhmer(15, 0, 5, 2568); // 👍 Old way still works!
693
697
  ```
@@ -704,15 +708,15 @@ The Khmer calendar is a **lunisolar calendar** that tracks both the moon phases
704
708
 
705
709
  **Full Name:** ពុទ្ធសករាជ (Putthsak, Buddhist Era)
706
710
  **Offset from Gregorian:** +543 or +544
707
- **When it increases:** At midnight (00:00) on the **15th waxing day of Pisakh month** (១៥កើត ខែពិសាខ)
711
+ **When it increases:** At midnight (00:00) on the **1st waning day of Pisakh month** (១រោច ខែពិសាខ)
708
712
 
709
713
  **Example Timeline:**
710
714
 
711
715
  ```
712
- 2024-05-22 23:59 → 14កើត Pisakh, BE 2567
713
- 2024-05-23 00:00 → 15កើត Pisakh, BE 2568 (NEW year starts!)
714
- 2024-05-23 23:59 → 15កើត Pisakh, BE 2568
715
- 2024-05-24 00:00 → 1រោច Pisakh, BE 2568
716
+ 2024-05-22 23:59 → 15កើត Pisakh, BE 2567
717
+ 2024-05-23 00:00 → 1រោច Pisakh, BE 2568 (NEW year starts!)
718
+ 2024-05-23 23:59 → 1រោច Pisakh, BE 2568
719
+ 2024-05-24 00:00 → 2រោច Pisakh, BE 2568
716
720
  ```
717
721
 
718
722
  **Important:**
@@ -826,11 +830,11 @@ console.log(lerngSakDay.khmer.eraYear); // 'សប្តស័ក' (new era!)
826
830
 
827
831
  **Summary Table:**
828
832
 
829
- | Year Type | Changes At | Example Date/Time |
830
- | --------------- | ---------------------- | -------------------- |
831
- | **BE Year** | 00:00 on ១៥កើត ខែពិសាខ | May 23, 2024 00:00 |
832
- | **Animal Year** | ម៉ោង និង នាទីទេវតាចុះ | April 13, 2024 22:17 |
833
- | **Era Year** | 00:00 នៅថ្ងៃឡើងស័ក | April 16, 2024 00:00 |
833
+ | Year Type | Changes At | Example Date/Time |
834
+ | --------------- | ------------------------ | -------------------- |
835
+ | **BE Year** | 00:00 នៅថ្ងៃ១រោច ខែពិសាខ | May 23, 2024 00:00 |
836
+ | **Animal Year** | ម៉ោង និង នាទីទេវតាចុះ | April 13, 2024 22:17 |
837
+ | **Era Year** | 00:00 នៅថ្ងៃឡើងស័ក | April 16, 2024 00:00 |
834
838
 
835
839
  **Visual Timeline for 2024:**
836
840
 
@@ -1283,10 +1287,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1283
1287
  ## 🙏 Credits & References
1284
1288
 
1285
1289
  - **Original momentkh library** by [Thyrith Sor](https://github.com/ThyrithSor)
1286
- - **Algorithm based on:**
1287
- - Traditional Khmer astronomical calculations
1288
- - "Pratitin Soryakkatik-Chankatik 1900-1999" by Mr. Roath Kim Soeun
1289
- - Khmer calendar C++ reference implementation
1290
1290
  - **Resources:**
1291
1291
  - [CAM-CC: Khmer Calendar](http://www.cam-cc.org)
1292
1292
  - [Dahlina: Khmer New Year Calculation](http://www.dahlina.com/education/khmer_new_year_time.html)
@@ -16,20 +16,20 @@ export declare enum MoonPhase {
16
16
  Waning = 1
17
17
  }
18
18
  export declare enum MonthIndex {
19
- Mikasar = 0,// មិគសិរ
20
- Bos = 1,// បុស្ស
19
+ Migasir = 0,// មិគសិរ
20
+ Boss = 1,// បុស្ស
21
21
  Meak = 2,// មាឃ
22
- Phalgun = 3,// ផល្គុន
23
- Chetr = 4,// ចេត្រ
24
- Visakh = 5,// ពិសាខ
22
+ Phalkun = 3,// ផល្គុន
23
+ Cheit = 4,// ចេត្រ
24
+ Pisakh = 5,// ពិសាខ
25
25
  Jesth = 6,// ជេស្ឋ
26
- Asath = 7,// អាសាឍ
26
+ Asadh = 7,// អាសាឍ
27
27
  Srap = 8,// ស្រាពណ៍
28
- Photrobot = 9,// ភទ្របទ
28
+ Phatrabot = 9,// ភទ្របទ
29
29
  Assoch = 10,// អស្សុជ
30
- Kadek = 11,// កត្ដិក
31
- BothmakAsath = 12,// បឋមាសាឍ
32
- TutiyakAsath = 13
30
+ Kadeuk = 11,// កត្ដិក
31
+ Pathamasadh = 12,// បឋមាសាឍ
32
+ Tutiyasadh = 13
33
33
  }
34
34
  export declare enum AnimalYear {
35
35
  Chhut = 0,// ជូត - Rat
@@ -46,16 +46,16 @@ export declare enum AnimalYear {
46
46
  Kor = 11
47
47
  }
48
48
  export declare enum EraYear {
49
- Samridhisak = 0,// សំរឹទ្ធិស័ក
50
- Ekasak = 1,// ឯកស័ក
51
- Tosak = 2,// ទោស័ក
52
- Tresak = 3,// ត្រីស័ក
53
- Chatvasak = 4,// ចត្វាស័ក
54
- Panchasak = 5,// បញ្ចស័ក
55
- Chhasak = 6,// ឆស័ក
56
- Saptasak = 7,// សប្តស័ក
57
- Atthasak = 8,// អដ្ឋស័ក
58
- Novvasak = 9
49
+ SamridhiSak = 0,// សំរឹទ្ធិស័ក
50
+ AekSak = 1,// ឯកស័ក
51
+ ToSak = 2,// ទោស័ក
52
+ TreiSak = 3,// ត្រីស័ក
53
+ ChattvaSak = 4,// ចត្វាស័ក
54
+ PanchaSak = 5,// បញ្ចស័ក
55
+ ChhaSak = 6,// ឆស័ក
56
+ SappaSak = 7,// សប្តស័ក
57
+ AtthaSak = 8,// អដ្ឋស័ក
58
+ NappaSak = 9
59
59
  }
60
60
  export declare enum DayOfWeek {
61
61
  Sunday = 0,// អាទិត្យ
@@ -155,13 +155,28 @@ declare class KhmerDate {
155
155
  subtractDays(count: number): KhmerDate;
156
156
  toString(): string;
157
157
  }
158
- export declare const momentkh: {
159
- fromGregorian(year: number, month: number, day: number, hour?: number, minute?: number, second?: number): KhmerConversionResult;
160
- fromKhmer(day: number, moonPhase: MoonPhase | number, monthIndex: MonthIndex | number, beYear: number): GregorianDate;
161
- getNewYear(ceYear: number): NewYearInfo;
162
- format(khmerData: KhmerConversionResult, formatString?: string): string;
163
- fromDate(date: Date): KhmerConversionResult;
164
- toDate(day: number, moonPhase: MoonPhase | number, monthIndex: MonthIndex | number, beYear: number): Date;
158
+ export declare function fromGregorian(year: number, month: number, day: number, hour?: number, minute?: number, second?: number): KhmerConversionResult;
159
+ export declare function fromKhmer(day: number, moonPhase: MoonPhase | number, monthIndex: MonthIndex | number, beYear: number): GregorianDate;
160
+ export declare function getNewYear(ceYear: number): NewYearInfo;
161
+ export declare function format(khmerData: KhmerConversionResult, formatString?: string): string;
162
+ export declare function fromDate(date: Date): KhmerConversionResult;
163
+ export declare function toDate(day: number, moonPhase: MoonPhase | number, monthIndex: MonthIndex | number, beYear: number): Date;
164
+ export declare const constants: {
165
+ LunarMonths: Record<string, number>;
166
+ LunarMonthNames: string[];
167
+ SolarMonthNames: string[];
168
+ AnimalYearNames: string[];
169
+ EraYearNames: string[];
170
+ WeekdayNames: string[];
171
+ MoonStatusNames: string[];
172
+ };
173
+ declare const _default: {
174
+ fromGregorian: typeof fromGregorian;
175
+ fromKhmer: typeof fromKhmer;
176
+ getNewYear: typeof getNewYear;
177
+ format: typeof format;
178
+ fromDate: typeof fromDate;
179
+ toDate: typeof toDate;
165
180
  constants: {
166
181
  LunarMonths: Record<string, number>;
167
182
  LunarMonthNames: string[];
@@ -177,5 +192,5 @@ export declare const momentkh: {
177
192
  EraYear: typeof EraYear;
178
193
  DayOfWeek: typeof DayOfWeek;
179
194
  };
180
- export default momentkh;
195
+ export default _default;
181
196
  //# sourceMappingURL=momentkh.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"momentkh.d.ts","sourceRoot":"","sources":["../momentkh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAQH,oBAAY,SAAS;IACnB,MAAM,IAAI,CAAG,MAAM;IACnB,MAAM,IAAI;CACX;AAED,oBAAY,UAAU;IACpB,OAAO,IAAI,CAAO,SAAS;IAC3B,GAAG,IAAI,CAAW,QAAQ;IAC1B,IAAI,IAAI,CAAU,MAAM;IACxB,OAAO,IAAI,CAAO,SAAS;IAC3B,KAAK,IAAI,CAAS,QAAQ;IAC1B,MAAM,IAAI,CAAQ,QAAQ;IAC1B,KAAK,IAAI,CAAS,QAAQ;IAC1B,KAAK,IAAI,CAAS,QAAQ;IAC1B,IAAI,IAAI,CAAU,UAAU;IAC5B,SAAS,IAAI,CAAK,SAAS;IAC3B,MAAM,KAAK,CAAO,SAAS;IAC3B,KAAK,KAAK,CAAQ,SAAS;IAC3B,YAAY,KAAK,CAAI,UAAU;IAC/B,YAAY,KAAK;CAClB;AAED,oBAAY,UAAU;IACpB,KAAK,IAAI,CAAK,YAAY;IAC1B,KAAK,IAAI,CAAK,aAAa;IAC3B,IAAI,IAAI,CAAM,cAAc;IAC5B,IAAI,IAAI,CAAM,eAAe;IAC7B,IAAI,IAAI,CAAM,eAAe;IAC7B,MAAM,IAAI,CAAI,iBAAiB;IAC/B,KAAK,IAAI,CAAK,cAAc;IAC5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