@intlayer/chokidar 5.6.0 → 5.7.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 (71) hide show
  1. package/dist/cjs/fetchDistantDictionaries.cjs +1 -1
  2. package/dist/cjs/fetchDistantDictionaries.cjs.map +1 -1
  3. package/dist/cjs/fetchDistantDictionaryKeys.cjs +1 -1
  4. package/dist/cjs/fetchDistantDictionaryKeys.cjs.map +1 -1
  5. package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs +2 -2
  6. package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs.map +1 -1
  7. package/dist/cjs/index.cjs +14 -2
  8. package/dist/cjs/index.cjs.map +1 -1
  9. package/dist/cjs/loadDictionaries/loadDictionaries.cjs +18 -5
  10. package/dist/cjs/loadDictionaries/loadDictionaries.cjs.map +1 -1
  11. package/dist/cjs/log.cjs +3 -3
  12. package/dist/cjs/log.cjs.map +1 -1
  13. package/dist/cjs/transpiler/declaration_file_to_dictionary/i18next_dictionary/buildI18nextDictionary.cjs +1 -1
  14. package/dist/cjs/transpiler/declaration_file_to_dictionary/i18next_dictionary/buildI18nextDictionary.cjs.map +1 -1
  15. package/dist/cjs/transpiler/dictionary_to_main/generateDictionaryListContent.cjs +2 -2
  16. package/dist/cjs/transpiler/dictionary_to_main/generateDictionaryListContent.cjs.map +1 -1
  17. package/dist/cjs/transpiler/dictionary_to_type/createModuleAugmentation.cjs +4 -3
  18. package/dist/cjs/transpiler/dictionary_to_type/createModuleAugmentation.cjs.map +1 -1
  19. package/dist/cjs/{utils.cjs → utils/getFileHash.cjs} +6 -22
  20. package/dist/cjs/utils/getFileHash.cjs.map +1 -0
  21. package/dist/cjs/utils/kebabCaseToCamelCase.cjs +39 -0
  22. package/dist/cjs/utils/kebabCaseToCamelCase.cjs.map +1 -0
  23. package/dist/cjs/utils/runOnce.cjs +58 -0
  24. package/dist/cjs/utils/runOnce.cjs.map +1 -0
  25. package/dist/cjs/utils/sortAlphabetically.cjs +29 -0
  26. package/dist/cjs/utils/sortAlphabetically.cjs.map +1 -0
  27. package/dist/esm/fetchDistantDictionaries.mjs +2 -2
  28. package/dist/esm/fetchDistantDictionaries.mjs.map +1 -1
  29. package/dist/esm/fetchDistantDictionaryKeys.mjs +1 -1
  30. package/dist/esm/fetchDistantDictionaryKeys.mjs.map +1 -1
  31. package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs +1 -1
  32. package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs.map +1 -1
  33. package/dist/esm/index.mjs +9 -1
  34. package/dist/esm/index.mjs.map +1 -1
  35. package/dist/esm/loadDictionaries/loadDictionaries.mjs +17 -4
  36. package/dist/esm/loadDictionaries/loadDictionaries.mjs.map +1 -1
  37. package/dist/esm/log.mjs +2 -2
  38. package/dist/esm/log.mjs.map +1 -1
  39. package/dist/esm/transpiler/declaration_file_to_dictionary/i18next_dictionary/buildI18nextDictionary.mjs +1 -1
  40. package/dist/esm/transpiler/declaration_file_to_dictionary/i18next_dictionary/buildI18nextDictionary.mjs.map +1 -1
  41. package/dist/esm/transpiler/dictionary_to_main/generateDictionaryListContent.mjs +1 -1
  42. package/dist/esm/transpiler/dictionary_to_main/generateDictionaryListContent.mjs.map +1 -1
  43. package/dist/esm/transpiler/dictionary_to_type/createModuleAugmentation.mjs +2 -1
  44. package/dist/esm/transpiler/dictionary_to_type/createModuleAugmentation.mjs.map +1 -1
  45. package/dist/esm/utils/getFileHash.mjs +9 -0
  46. package/dist/esm/utils/getFileHash.mjs.map +1 -0
  47. package/dist/esm/{utils.mjs → utils/kebabCaseToCamelCase.mjs} +2 -10
  48. package/dist/esm/utils/kebabCaseToCamelCase.mjs.map +1 -0
  49. package/dist/esm/utils/runOnce.mjs +34 -0
  50. package/dist/esm/utils/runOnce.mjs.map +1 -0
  51. package/dist/esm/utils/sortAlphabetically.mjs +5 -0
  52. package/dist/esm/utils/sortAlphabetically.mjs.map +1 -0
  53. package/dist/types/index.d.ts +5 -1
  54. package/dist/types/index.d.ts.map +1 -1
  55. package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
  56. package/dist/types/log.d.ts.map +1 -1
  57. package/dist/types/transpiler/declaration_file_to_dictionary/i18next_dictionary/buildI18nextDictionary.d.ts.map +1 -1
  58. package/dist/types/transpiler/dictionary_to_type/createModuleAugmentation.d.ts.map +1 -1
  59. package/dist/types/utils/getFileHash.d.ts +2 -0
  60. package/dist/types/utils/getFileHash.d.ts.map +1 -0
  61. package/dist/types/utils/kebabCaseToCamelCase.d.ts +2 -0
  62. package/dist/types/utils/kebabCaseToCamelCase.d.ts.map +1 -0
  63. package/dist/types/utils/runOnce.d.ts +24 -0
  64. package/dist/types/utils/runOnce.d.ts.map +1 -0
  65. package/dist/types/utils/sortAlphabetically.d.ts +2 -0
  66. package/dist/types/utils/sortAlphabetically.d.ts.map +1 -0
  67. package/package.json +14 -14
  68. package/dist/cjs/utils.cjs.map +0 -1
  69. package/dist/esm/utils.mjs.map +0 -1
  70. package/dist/types/utils.d.ts +0 -4
  71. package/dist/types/utils.d.ts.map +0 -1
@@ -17,6 +17,10 @@ export { reduceDictionaryContent } from './reduceDictionaryContent/reduceDiction
17
17
  export { buildDictionary } from './transpiler/declaration_file_to_dictionary/index';
18
18
  export { createDictionaryEntryPoint, generateDictionaryListContent, } from './transpiler/dictionary_to_main';
19
19
  export { createModuleAugmentation } from './transpiler/dictionary_to_type/createModuleAugmentation';
20
- export { getFileHash } from './utils';
20
+ export { getFileHash } from './utils/getFileHash';
21
+ export { kebabCaseToCamelCase } from './utils/kebabCaseToCamelCase';
22
+ export { resolveObjectPromises } from './utils/resolveObjectPromises';
23
+ export { runOnce } from './utils/runOnce';
24
+ export { sortAlphabetically } from './utils/sortAlphabetically';
21
25
  export { writeContentDeclaration, type DictionaryStatus, } from './writeContentDeclaration';
22
26
  //# sourceMappingURL=index.d.ts.map
@@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EACL,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EACL,uBAAuB,EACvB,KAAK,gBAAgB,GACtB,MAAM,2BAA2B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"loadDictionaries.d.ts","sourceRoot":"","sources":["../../../src/loadDictionaries/loadDictionaries.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD,eAAO,MAAM,gBAAgB,GAC3B,0BAA0B,MAAM,EAAE,GAAG,MAAM,EAC3C,yDAAkC,EAClC,+BAA+B,KAC9B,OAAO,CAAC,UAAU,EAAE,CAkEtB,CAAC"}
1
+ {"version":3,"file":"loadDictionaries.d.ts","sourceRoot":"","sources":["../../../src/loadDictionaries/loadDictionaries.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD,eAAO,MAAM,gBAAgB,GAC3B,0BAA0B,MAAM,EAAE,GAAG,MAAM,EAC3C,yDAAkC,EAClC,+BAA+B,KAC9B,OAAO,CAAC,UAAU,EAAE,CAmFtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/log.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAoB,MAAM,kBAAkB,CAAC;AAGzE,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,O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S,EACzB,cAAc,EAAE,MAAM,EAAE;IA8C1B,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,YAAY;IAgEb,IAAI;IAIJ,YAAY,CACjB,YAAY,EAAE;QACZ,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;KACxB,EAAE;IA+CL,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,aAAa;IAmCrB,OAAO,CAAC,oBAAoB;IA4BrB,WAAW;CAGnB;AAED,eAAO,MAAM,MAAM,QAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildI18nextDictionary.d.ts","sourceRoot":"","sources":["../../../../../src/transpiler/declaration_file_to_dictionary/i18next_dictionary/buildI18nextDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAQjD;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,qBAAqB,UAAU,EAAE,EACjC,yDAAkC,sBAqBnC,CAAC"}
1
+ {"version":3,"file":"buildI18nextDictionary.d.ts","sourceRoot":"","sources":["../../../../../src/transpiler/declaration_file_to_dictionary/i18next_dictionary/buildI18nextDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,qBAAqB,UAAU,EAAE,EACjC,yDAAkC,sBAqBnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createModuleAugmentation.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/dictionary_to_type/createModuleAugmentation.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,KAAG,MACH,CAAC;AA8FxC;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,yDAAkC,SAmBnC,CAAC"}
1
+ {"version":3,"file":"createModuleAugmentation.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/dictionary_to_type/createModuleAugmentation.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,KAAG,MACH,CAAC;AA8FxC;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,yDAAkC,SAmBnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const getFileHash: (filePath: string) => string;
2
+ //# sourceMappingURL=getFileHash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFileHash.d.ts","sourceRoot":"","sources":["../../../src/utils/getFileHash.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,WAO3C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const kebabCaseToCamelCase: (name: string) => string;
2
+ //# sourceMappingURL=kebabCaseToCamelCase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kebabCaseToCamelCase.d.ts","sourceRoot":"","sources":["../../../src/utils/kebabCaseToCamelCase.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,MAoBnD,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Ensures a callback function runs only once within a specified time window across multiple processes.
3
+ * Uses a sentinel file to coordinate execution and prevent duplicate work.
4
+ *
5
+ * @param sentinelFilePath - Path to the sentinel file used for coordination
6
+ * @param callback - The function to execute (should be async)
7
+ * @param cacheTimeoutMs - Time window in milliseconds during which the sentinel is considered valid (default: 60000ms = 1 minute)
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * await runPrepareIntlayerOnce(
12
+ * '/tmp/intlayer-sentinel',
13
+ * async () => {
14
+ * // Your initialization logic here
15
+ * await prepareIntlayer();
16
+ * },
17
+ * 30 * 1000 // 30 seconds cache
18
+ * );
19
+ * ```
20
+ *
21
+ * @throws {Error} When there are unexpected filesystem errors
22
+ */
23
+ export declare const runOnce: (sentinelFilePath: string, callback: () => void | Promise<void>, cacheTimeoutMs?: number) => Promise<void>;
24
+ //# sourceMappingURL=runOnce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runOnce.d.ts","sourceRoot":"","sources":["../../../src/utils/runOnce.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,OAAO,GAClB,kBAAkB,MAAM,EACxB,UAAU,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EACpC,iBAAgB,MAAkB,kBAyCnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const sortAlphabetically: (a: string, b: string) => number;
2
+ //# sourceMappingURL=sortAlphabetically.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortAlphabetically.d.ts","sourceRoot":"","sources":["../../../src/utils/sortAlphabetically.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,WAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/chokidar",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "private": false,
5
5
  "description": "Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.",
6
6
  "keywords": [
@@ -68,12 +68,12 @@
68
68
  "fast-glob": "^3.3.3",
69
69
  "p-limit": "^3.1.0",
70
70
  "simple-git": "^3.27.0",
71
- "@intlayer/api": "5.6.0",
72
- "@intlayer/core": "5.6.0",
73
- "@intlayer/unmerged-dictionaries-entry": "5.6.0",
74
- "@intlayer/dictionaries-entry": "5.6.0",
75
- "@intlayer/config": "5.6.0",
76
- "intlayer": "5.6.0"
71
+ "intlayer": "5.7.0",
72
+ "@intlayer/dictionaries-entry": "5.7.0",
73
+ "@intlayer/config": "5.7.0",
74
+ "@intlayer/api": "5.7.0",
75
+ "@intlayer/core": "5.7.0",
76
+ "@intlayer/unmerged-dictionaries-entry": "5.7.0"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@changesets/cli": "2.29.4",
@@ -91,19 +91,19 @@
91
91
  "tsup": "^8.5.0",
92
92
  "typescript": "^5.8.3",
93
93
  "vitest": "^3.2.2",
94
- "@intlayer/backend": "5.6.0",
94
+ "@intlayer/backend": "5.7.0",
95
95
  "@utils/eslint-config": "1.0.4",
96
96
  "@utils/ts-config": "1.0.4",
97
- "@utils/ts-config-types": "1.0.4",
98
- "@utils/tsup-config": "1.0.4"
97
+ "@utils/tsup-config": "1.0.4",
98
+ "@utils/ts-config-types": "1.0.4"
99
99
  },
100
100
  "peerDependencies": {
101
101
  "fast-glob": "^3.3.3",
102
102
  "react": ">=16.0.0",
103
- "@intlayer/config": "5.6.0",
104
- "@intlayer/core": "5.6.0",
105
- "@intlayer/api": "5.6.0",
106
- "intlayer": "5.6.0"
103
+ "@intlayer/api": "5.7.0",
104
+ "@intlayer/config": "5.7.0",
105
+ "@intlayer/core": "5.7.0",
106
+ "intlayer": "5.7.0"
107
107
  },
108
108
  "engines": {
109
109
  "node": ">=14.18"
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/utils.ts"],"sourcesContent":["import crypto from 'crypto-js';\n\nexport const getFileHash = (filePath: string) => {\n const hash = crypto.SHA3(filePath);\n\n return hash\n .toString(crypto.enc.Base64)\n .replace(/[^A-Z\\d]/gi, '')\n .substring(0, 20);\n};\n\nexport const kebabCaseToCamelCase = (name: string): string => {\n return name\n .split(/[^a-zA-Z0-9]+/) // Split on any non-alphanumeric character\n .filter(Boolean) // Remove any empty strings\n .map((word) => {\n // Convert the entire word to lowercase first\n const lowerWord = word.toLowerCase();\n\n // Capitalize the first character\n let capitalized = lowerWord.charAt(0).toUpperCase() + lowerWord.slice(1);\n\n // Capitalize any letter that follows a number\n capitalized = capitalized.replace(\n /(\\d)([a-z])/g,\n (_, number, char) => number + char.toUpperCase()\n );\n\n return capitalized;\n })\n .join(''); // Concatenate all parts into a single string\n};\n\nexport const sortAlphabetically = (a: string, b: string) => a.localeCompare(b);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAmB;AAEZ,MAAM,cAAc,CAAC,aAAqB;AAC/C,QAAM,OAAO,iBAAAA,QAAO,KAAK,QAAQ;AAEjC,SAAO,KACJ,SAAS,iBAAAA,QAAO,IAAI,MAAM,EAC1B,QAAQ,cAAc,EAAE,EACxB,UAAU,GAAG,EAAE;AACpB;AAEO,MAAM,uBAAuB,CAAC,SAAyB;AAC5D,SAAO,KACJ,MAAM,eAAe,EACrB,OAAO,OAAO,EACd,IAAI,CAAC,SAAS;AAEb,UAAM,YAAY,KAAK,YAAY;AAGnC,QAAI,cAAc,UAAU,OAAO,CAAC,EAAE,YAAY,IAAI,UAAU,MAAM,CAAC;AAGvE,kBAAc,YAAY;AAAA,MACxB;AAAA,MACA,CAAC,GAAG,QAAQ,SAAS,SAAS,KAAK,YAAY;AAAA,IACjD;AAEA,WAAO;AAAA,EACT,CAAC,EACA,KAAK,EAAE;AACZ;AAEO,MAAM,qBAAqB,CAAC,GAAW,MAAc,EAAE,cAAc,CAAC;","names":["crypto"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/utils.ts"],"sourcesContent":["import crypto from 'crypto-js';\n\nexport const getFileHash = (filePath: string) => {\n const hash = crypto.SHA3(filePath);\n\n return hash\n .toString(crypto.enc.Base64)\n .replace(/[^A-Z\\d]/gi, '')\n .substring(0, 20);\n};\n\nexport const kebabCaseToCamelCase = (name: string): string => {\n return name\n .split(/[^a-zA-Z0-9]+/) // Split on any non-alphanumeric character\n .filter(Boolean) // Remove any empty strings\n .map((word) => {\n // Convert the entire word to lowercase first\n const lowerWord = word.toLowerCase();\n\n // Capitalize the first character\n let capitalized = lowerWord.charAt(0).toUpperCase() + lowerWord.slice(1);\n\n // Capitalize any letter that follows a number\n capitalized = capitalized.replace(\n /(\\d)([a-z])/g,\n (_, number, char) => number + char.toUpperCase()\n );\n\n return capitalized;\n })\n .join(''); // Concatenate all parts into a single string\n};\n\nexport const sortAlphabetically = (a: string, b: string) => a.localeCompare(b);\n"],"mappings":"AAAA,OAAO,YAAY;AAEZ,MAAM,cAAc,CAAC,aAAqB;AAC/C,QAAM,OAAO,OAAO,KAAK,QAAQ;AAEjC,SAAO,KACJ,SAAS,OAAO,IAAI,MAAM,EAC1B,QAAQ,cAAc,EAAE,EACxB,UAAU,GAAG,EAAE;AACpB;AAEO,MAAM,uBAAuB,CAAC,SAAyB;AAC5D,SAAO,KACJ,MAAM,eAAe,EACrB,OAAO,OAAO,EACd,IAAI,CAAC,SAAS;AAEb,UAAM,YAAY,KAAK,YAAY;AAGnC,QAAI,cAAc,UAAU,OAAO,CAAC,EAAE,YAAY,IAAI,UAAU,MAAM,CAAC;AAGvE,kBAAc,YAAY;AAAA,MACxB;AAAA,MACA,CAAC,GAAG,QAAQ,SAAS,SAAS,KAAK,YAAY;AAAA,IACjD;AAEA,WAAO;AAAA,EACT,CAAC,EACA,KAAK,EAAE;AACZ;AAEO,MAAM,qBAAqB,CAAC,GAAW,MAAc,EAAE,cAAc,CAAC;","names":[]}
@@ -1,4 +0,0 @@
1
- export declare const getFileHash: (filePath: string) => string;
2
- export declare const kebabCaseToCamelCase: (name: string) => string;
3
- export declare const sortAlphabetically: (a: string, b: string) => number;
4
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,WAO3C,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,MAoBnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,WAAuB,CAAC"}