@fgv/ts-res 5.0.0-0 → 5.0.0-11

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 (112) hide show
  1. package/dist/ts-res.d.ts +793 -125
  2. package/lib/index.d.ts +10 -2
  3. package/lib/index.d.ts.map +1 -1
  4. package/lib/index.js +23 -2
  5. package/lib/index.js.map +1 -1
  6. package/lib/packlets/bundle/bundleBuilder.d.ts +41 -0
  7. package/lib/packlets/bundle/bundleBuilder.d.ts.map +1 -0
  8. package/lib/packlets/bundle/bundleBuilder.js +134 -0
  9. package/lib/packlets/bundle/bundleBuilder.js.map +1 -0
  10. package/lib/packlets/bundle/bundleLoader.d.ts +72 -0
  11. package/lib/packlets/bundle/bundleLoader.d.ts.map +1 -0
  12. package/lib/packlets/bundle/bundleLoader.js +105 -0
  13. package/lib/packlets/bundle/bundleLoader.js.map +1 -0
  14. package/lib/packlets/bundle/bundleNormalizer.d.ts +73 -0
  15. package/lib/packlets/bundle/bundleNormalizer.d.ts.map +1 -0
  16. package/lib/packlets/bundle/bundleNormalizer.js +142 -0
  17. package/lib/packlets/bundle/bundleNormalizer.js.map +1 -0
  18. package/lib/packlets/bundle/bundleUtils.d.ts +70 -0
  19. package/lib/packlets/bundle/bundleUtils.d.ts.map +1 -0
  20. package/lib/packlets/bundle/bundleUtils.js +117 -0
  21. package/lib/packlets/bundle/bundleUtils.js.map +1 -0
  22. package/lib/packlets/bundle/convert.d.ts +33 -0
  23. package/lib/packlets/bundle/convert.d.ts.map +1 -0
  24. package/lib/packlets/bundle/convert.js +78 -0
  25. package/lib/packlets/bundle/convert.js.map +1 -0
  26. package/lib/packlets/bundle/index.d.ts +21 -0
  27. package/lib/packlets/bundle/index.d.ts.map +1 -0
  28. package/lib/packlets/bundle/index.js +83 -0
  29. package/lib/packlets/bundle/index.js.map +1 -0
  30. package/lib/packlets/bundle/model.d.ts +100 -0
  31. package/lib/packlets/bundle/model.d.ts.map +1 -0
  32. package/lib/packlets/bundle/model.js +24 -0
  33. package/lib/packlets/bundle/model.js.map +1 -0
  34. package/lib/packlets/common/helpers/resources.d.ts +7 -0
  35. package/lib/packlets/common/helpers/resources.d.ts.map +1 -1
  36. package/lib/packlets/common/helpers/resources.js +12 -0
  37. package/lib/packlets/common/helpers/resources.js.map +1 -1
  38. package/lib/packlets/common/resources.d.ts +8 -0
  39. package/lib/packlets/common/resources.d.ts.map +1 -1
  40. package/lib/packlets/common/resources.js.map +1 -1
  41. package/lib/packlets/conditions/condition.js +1 -1
  42. package/lib/packlets/conditions/condition.js.map +1 -1
  43. package/lib/packlets/conditions/conditionSet.d.ts +9 -0
  44. package/lib/packlets/conditions/conditionSet.d.ts.map +1 -1
  45. package/lib/packlets/conditions/conditionSet.js +74 -1
  46. package/lib/packlets/conditions/conditionSet.js.map +1 -1
  47. package/lib/packlets/import/fsItem.d.ts.map +1 -1
  48. package/lib/packlets/import/fsItem.js +8 -13
  49. package/lib/packlets/import/fsItem.js.map +1 -1
  50. package/lib/packlets/import/importers/jsonImporter.d.ts.map +1 -1
  51. package/lib/packlets/import/importers/jsonImporter.js +1 -0
  52. package/lib/packlets/import/importers/jsonImporter.js.map +1 -1
  53. package/lib/packlets/qualifier-types/literalQualifierType.d.ts +4 -0
  54. package/lib/packlets/qualifier-types/literalQualifierType.d.ts.map +1 -1
  55. package/lib/packlets/qualifier-types/literalQualifierType.js +14 -0
  56. package/lib/packlets/qualifier-types/literalQualifierType.js.map +1 -1
  57. package/lib/packlets/qualifier-types/literalValueHierarchy.d.ts +7 -0
  58. package/lib/packlets/qualifier-types/literalValueHierarchy.d.ts.map +1 -1
  59. package/lib/packlets/qualifier-types/literalValueHierarchy.js +14 -1
  60. package/lib/packlets/qualifier-types/literalValueHierarchy.js.map +1 -1
  61. package/lib/packlets/qualifier-types/qualifierType.d.ts +11 -0
  62. package/lib/packlets/qualifier-types/qualifierType.d.ts.map +1 -1
  63. package/lib/packlets/qualifier-types/qualifierType.js +9 -0
  64. package/lib/packlets/qualifier-types/qualifierType.js.map +1 -1
  65. package/lib/packlets/qualifiers/qualifierCollector.d.ts.map +1 -1
  66. package/lib/packlets/qualifiers/qualifierCollector.js +1 -2
  67. package/lib/packlets/qualifiers/qualifierCollector.js.map +1 -1
  68. package/lib/packlets/resource-types/jsonResourceType.d.ts +4 -4
  69. package/lib/packlets/resource-types/jsonResourceType.d.ts.map +1 -1
  70. package/lib/packlets/resource-types/jsonResourceType.js +1 -1
  71. package/lib/packlets/resource-types/jsonResourceType.js.map +1 -1
  72. package/lib/packlets/resource-types/resourceType.d.ts +18 -9
  73. package/lib/packlets/resource-types/resourceType.d.ts.map +1 -1
  74. package/lib/packlets/resource-types/resourceType.js.map +1 -1
  75. package/lib/packlets/resources/common.d.ts +12 -0
  76. package/lib/packlets/resources/common.d.ts.map +1 -1
  77. package/lib/packlets/resources/common.js.map +1 -1
  78. package/lib/packlets/resources/resource.d.ts +5 -1
  79. package/lib/packlets/resources/resource.d.ts.map +1 -1
  80. package/lib/packlets/resources/resource.js +1 -0
  81. package/lib/packlets/resources/resource.js.map +1 -1
  82. package/lib/packlets/resources/resourceCandidate.d.ts +5 -1
  83. package/lib/packlets/resources/resourceCandidate.d.ts.map +1 -1
  84. package/lib/packlets/resources/resourceCandidate.js +6 -0
  85. package/lib/packlets/resources/resourceCandidate.js.map +1 -1
  86. package/lib/packlets/resources/resourceManagerBuilder.d.ts +133 -6
  87. package/lib/packlets/resources/resourceManagerBuilder.d.ts.map +1 -1
  88. package/lib/packlets/resources/resourceManagerBuilder.js +451 -9
  89. package/lib/packlets/resources/resourceManagerBuilder.js.map +1 -1
  90. package/lib/packlets/runtime/cacheListener.d.ts +9 -0
  91. package/lib/packlets/runtime/cacheListener.d.ts.map +1 -1
  92. package/lib/packlets/runtime/cacheListener.js +6 -0
  93. package/lib/packlets/runtime/cacheListener.js.map +1 -1
  94. package/lib/packlets/runtime/cacheMetrics.d.ts +6 -0
  95. package/lib/packlets/runtime/cacheMetrics.d.ts.map +1 -1
  96. package/lib/packlets/runtime/cacheMetrics.js +11 -0
  97. package/lib/packlets/runtime/cacheMetrics.js.map +1 -1
  98. package/lib/packlets/runtime/compiledResourceCollection.d.ts +1 -1
  99. package/lib/packlets/runtime/compiledResourceCollection.d.ts.map +1 -1
  100. package/lib/packlets/runtime/compiledResourceCollection.js +7 -0
  101. package/lib/packlets/runtime/compiledResourceCollection.js.map +1 -1
  102. package/lib/packlets/runtime/iResourceManager.d.ts +11 -3
  103. package/lib/packlets/runtime/iResourceManager.d.ts.map +1 -1
  104. package/lib/packlets/runtime/iResourceManager.js.map +1 -1
  105. package/lib/packlets/runtime/resourceResolver.d.ts +21 -0
  106. package/lib/packlets/runtime/resourceResolver.d.ts.map +1 -1
  107. package/lib/packlets/runtime/resourceResolver.js +39 -17
  108. package/lib/packlets/runtime/resourceResolver.js.map +1 -1
  109. package/lib/packlets/runtime/validate.d.ts.map +1 -1
  110. package/lib/packlets/runtime/validate.js +1 -0
  111. package/lib/packlets/runtime/validate.js.map +1 -1
  112. package/package.json +12 -12
@@ -1,16 +1,17 @@
1
1
  import { Collections, DetailedResult, Result, ValidatingResultMap } from '@fgv/ts-utils';
2
- import { ConditionCollector, ConditionSetCollector, ReadOnlyConditionCollector, ReadOnlyConditionSetCollector } from '../conditions';
2
+ import { ConditionCollector, ConditionSetCollector, ReadOnlyConditionCollector, ReadOnlyConditionSetCollector, Condition, ConditionSet } from '../conditions';
3
3
  import { AbstractDecisionCollector, ReadOnlyAbstractDecisionCollector } from '../decisions';
4
4
  import { IReadOnlyQualifierCollector } from '../qualifiers';
5
5
  import { ReadOnlyResourceTypeCollector } from '../resource-types';
6
6
  import { ResourceId } from '../common';
7
- import { IResourceManager } from '../runtime';
7
+ import { IResourceManager, ResourceTree } from '../runtime';
8
8
  import { ResourceBuilder, ResourceBuilderResultDetail } from './resourceBuilder';
9
9
  import { Resource } from './resource';
10
10
  import { ResourceCandidate } from './resourceCandidate';
11
- import { IResourceDeclarationOptions } from './common';
11
+ import { IResourceDeclarationOptions, IResourceManagerCloneOptions } from './common';
12
12
  import * as ResourceJson from '../resource-json';
13
13
  import * as Context from '../context';
14
+ import * as Config from '../config';
14
15
  /**
15
16
  * Interface for parameters to the {@link Resources.ResourceManagerBuilder.create | ResourceManagerBuilder create method}.
16
17
  * @public
@@ -31,7 +32,7 @@ export type ResourceManagerBuilderResultDetail = Collections.ResultMapResultDeta
31
32
  * and builds a collection of {@link Resources.Resource | resources} once all candidates are collected.
32
33
  * @public
33
34
  */
34
- export declare class ResourceManagerBuilder implements IResourceManager {
35
+ export declare class ResourceManagerBuilder implements IResourceManager<Resource> {
35
36
  readonly qualifiers: IReadOnlyQualifierCollector;
36
37
  readonly resourceTypes: ReadOnlyResourceTypeCollector;
37
38
  protected readonly _conditions: ConditionCollector;
@@ -40,6 +41,7 @@ export declare class ResourceManagerBuilder implements IResourceManager {
40
41
  protected readonly _resources: ValidatingResultMap<ResourceId, ResourceBuilder>;
41
42
  readonly _builtResources: ValidatingResultMap<ResourceId, Resource>;
42
43
  protected _built: boolean;
44
+ protected _cachedResourceTree?: ResourceTree.IReadOnlyResourceTreeRoot<Resource>;
43
45
  /**
44
46
  * A {@link Conditions.ConditionCollector | ConditionCollector} which
45
47
  * contains the {@link Conditions.Condition | conditions} used so far by
@@ -96,6 +98,26 @@ export declare class ResourceManagerBuilder implements IResourceManager {
96
98
  * @public
97
99
  */
98
100
  static create(params: IResourceManagerBuilderCreateParams): Result<ResourceManagerBuilder>;
101
+ /**
102
+ * Creates a new {@link Resources.ResourceManagerBuilder | ResourceManagerBuilder} object from a predefined system configuration.
103
+ * @param name - The name of the predefined system configuration to use.
104
+ * @param qualifierDefaultValues - Optional default values for qualifiers.
105
+ * @returns `Success` with the new {@link Resources.ResourceManagerBuilder | ResourceManagerBuilder} object if successful,
106
+ * or `Failure` with an error message if not.
107
+ * @public
108
+ */
109
+ static createPredefined(name: Config.PredefinedSystemConfiguration, qualifierDefaultValues?: Config.ISystemConfigurationInitParams['qualifierDefaultValues']): Result<ResourceManagerBuilder>;
110
+ /**
111
+ * Creates a new {@link Resources.ResourceManagerBuilder | ResourceManagerBuilder} from a
112
+ * {@link ResourceJson.Compiled.ICompiledResourceCollection | compiled resource collection}.
113
+ * This method reconstructs an exactly equivalent builder where all qualifier, condition,
114
+ * condition set, and decision indices match the original compiled collection.
115
+ * @param compiledCollection - The compiled resource collection to reconstruct from.
116
+ * @param systemConfig - The system configuration containing qualifiers and resource types.
117
+ * @returns `Success` with the new manager if successful, or `Failure` with an error message if not.
118
+ * @public
119
+ */
120
+ static createFromCompiledResourceCollection(compiledCollection: ResourceJson.Compiled.ICompiledResourceCollection, systemConfig: Config.SystemConfiguration): Result<ResourceManagerBuilder>;
99
121
  /**
100
122
  * Given a {@link ResourceJson.Json.ILooseResourceCandidateDecl | resource candidate declaration}, builds and adds
101
123
  * a {@link Resources.ResourceCandidate | candidate} to the manager.
@@ -105,6 +127,20 @@ export declare class ResourceManagerBuilder implements IResourceManager {
105
127
  */
106
128
  addLooseCandidate(decl: ResourceJson.Json.ILooseResourceCandidateDecl): DetailedResult<ResourceCandidate, ResourceBuilderResultDetail>;
107
129
  addResource(decl: ResourceJson.Json.ILooseResourceDecl): DetailedResult<ResourceBuilder, ResourceBuilderResultDetail>;
130
+ /**
131
+ * Adds a condition to the manager.
132
+ * @param decl - The condition declaration to add.
133
+ * @returns `Success` with the condition if successful, or `Failure` with an error message if not.
134
+ * @public
135
+ */
136
+ addCondition(decl: ResourceJson.Json.ILooseConditionDecl): Result<Condition>;
137
+ /**
138
+ * Adds a condition set to the manager.
139
+ * @param decl - The condition set declaration to add.
140
+ * @returns `Success` with the condition set if successful, or `Failure` with an error message if not.
141
+ * @public
142
+ */
143
+ addConditionSet(conditions: ResourceJson.Normalized.ConditionSetDecl): Result<ConditionSet>;
108
144
  /**
109
145
  * Gets a read-only array of all {@link Resources.ResourceBuilder | resource builders} present in the manager.
110
146
  * @returns `Success` with the {@link Resources.ResourceBuilder | resource builder} if successful,
@@ -135,6 +171,19 @@ export declare class ResourceManagerBuilder implements IResourceManager {
135
171
  * @public
136
172
  */
137
173
  getAllBuiltResources(): Result<ReadonlyArray<Resource>>;
174
+ /**
175
+ * Builds and returns a hierarchical tree representation of all resources managed by this builder.
176
+ * Resources are organized based on their dot-separated resource IDs (e.g., "app.messages.welcome"
177
+ * becomes a tree with "app" as root, "messages" as branch, and "welcome" as leaf).
178
+ *
179
+ * String-based validation is available through the `children.validating` property,
180
+ * allowing callers to use `tree.children.validating.getById(stringId)` for validated access.
181
+ *
182
+ * Uses lazy initialization with caching for performance.
183
+ * @returns Result containing the resource tree root, or failure if tree construction fails
184
+ * @public
185
+ */
186
+ getBuiltResourceTree(): Result<ResourceTree.IReadOnlyResourceTreeRoot<Resource>>;
138
187
  /**
139
188
  * Gets a read-only array of all {@link Resources.Resource | built resources} in the manager.
140
189
  * @returns `Success` with an array of resources if successful, or `Failure` with an error message if not.
@@ -211,10 +260,88 @@ export declare class ResourceManagerBuilder implements IResourceManager {
211
260
  * Creates a filtered clone of this ResourceManagerBuilder using the specified context.
212
261
  * This is a convenience method that creates a new ResourceManagerBuilder with the same
213
262
  * configuration but filtered to include only candidates that match the provided context.
214
- * @param options - Options for the cloning operation, including the strongly-typed filterForContext property.
263
+ * If candidates are provided for editing, they will be applied with collision detection.
264
+ * @param options - Options for the cloning operation, including the strongly-typed filterForContext property and optional candidates for edits.
215
265
  * @returns A Result containing the new filtered ResourceManagerBuilder.
216
266
  * @public
217
267
  */
218
- clone(options?: IResourceDeclarationOptions): Result<ResourceManagerBuilder>;
268
+ clone(options?: IResourceManagerCloneOptions): Result<ResourceManagerBuilder>;
269
+ /**
270
+ * Creates a resource ID keyed map from an array of loose resource candidate declarations.
271
+ * This enables efficient detection of edit collisions by grouping candidates by their target resource.
272
+ * @param candidates - Array of loose resource candidate declarations to organize
273
+ * @returns A Result containing a Map where keys are validated ResourceIds and values are arrays of candidates for that resource
274
+ * @internal
275
+ */
276
+ private static _createCandidatesByResourceMap;
277
+ /**
278
+ * Generates a proper ConditionSet token for collision detection using the existing ConditionSet.getKeyForDecl method.
279
+ * @param conditionSet - The condition set to generate a token for
280
+ * @param conditionCollector - The condition collector needed for validation context
281
+ * @returns A Result containing the ConditionSet token if successful, or failure if validation fails
282
+ * @internal
283
+ */
284
+ /**
285
+ * Applies candidate edits to a resource declaration, handling collisions using condition set tokens.
286
+ * If there's no collision, adds the candidate. If there's a collision, replaces the original candidate with the edit.
287
+ * @param resourceDecl - The original resource declaration to potentially modify
288
+ * @param candidatesByResource - Map of resource IDs to arrays of candidate edits
289
+ * @param conditionCollector - The condition collector needed for generating condition tokens
290
+ * @returns A Result containing the resource declaration to use (original or modified)
291
+ * @internal
292
+ */
293
+ private static _applyEditsToResourceDeclaration;
294
+ /**
295
+ * Creates a new resource declaration from an array of candidate declarations.
296
+ * This is used when cloning to create new resources that don't exist in the original manager.
297
+ * @param resourceId - The validated resource ID for the new resource
298
+ * @param candidates - Array of loose candidate declarations for the new resource
299
+ * @param conditionCollector - The condition collector for validation context
300
+ * @returns A Result containing the new resource declaration if successful, or failure if validation fails
301
+ * @internal
302
+ */
303
+ private static _createResourceDeclFromCandidates;
304
+ /**
305
+ * Reconstructs conditions from a compiled collection and adds them to the builder.
306
+ * @param builder - The builder to add conditions to.
307
+ * @param compiledCollection - The compiled collection containing conditions.
308
+ * @returns `Success` if all conditions were added successfully, `Failure` otherwise.
309
+ * @internal
310
+ */
311
+ private static _reconstructConditions;
312
+ /**
313
+ * Reconstructs condition sets from a compiled collection and adds them to the builder.
314
+ * @param builder - The builder to add condition sets to.
315
+ * @param compiledCollection - The compiled collection containing condition sets.
316
+ * @returns `Success` if all condition sets were added successfully, `Failure` otherwise.
317
+ * @internal
318
+ */
319
+ private static _reconstructConditionSets;
320
+ /**
321
+ * Reconstructs decisions from a compiled collection and adds them to the builder.
322
+ * @param builder - The builder to add decisions to.
323
+ * @param compiledCollection - The compiled collection containing decisions.
324
+ * @returns `Success` if all decisions were added successfully, `Failure` otherwise.
325
+ * @internal
326
+ */
327
+ private static _reconstructDecisions;
328
+ /**
329
+ * Reconstructs resources and their candidates from a compiled collection and adds them to the builder.
330
+ * @param builder - The builder to add resources to.
331
+ * @param compiledCollection - The compiled collection containing resources.
332
+ * @returns `Success` if all resources were added successfully, `Failure` otherwise.
333
+ * @internal
334
+ */
335
+ private static _reconstructResources;
336
+ /**
337
+ * Helper method to create candidates from a decision's condition sets.
338
+ * @param compiledResource - The compiled resource containing candidates.
339
+ * @param decision - The decision containing condition sets.
340
+ * @param resourceType - The resource type for the candidates.
341
+ * @param builder - The builder to add candidates to.
342
+ * @returns `Success` if all candidates were added successfully, `Failure` otherwise.
343
+ * @internal
344
+ */
345
+ private static _createCandidatesFromDecision;
219
346
  }
220
347
  //# sourceMappingURL=resourceManagerBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resourceManagerBuilder.d.ts","sourceRoot":"","sources":["../../../src/packlets/resources/resourceManagerBuilder.ts"],"names":[],"mappings":"AAsBA,OAAO,EAEL,WAAW,EACX,cAAc,EAMd,MAAM,EAGN,mBAAmB,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC9B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,yBAAyB,EAAE,iCAAiC,EAAE,MAAM,cAAc,CAAC;AAC5F,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAW,UAAU,EAAY,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MA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uB,CAC5B,OAAO,EAAE,OAAO,CAAC,qBAAqB,EACtC,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,GACrC,aAAa,CAAC,iBAAiB,CAAC;IAInC;;;;;;;OAOG;IACI,sBAAsB,CAC3B,OAAO,EAAE,OAAO,CAAC,qBAAqB,EACtC,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,GACrC,aAAa,CAAC,eAAe,CAAC;IAMjC;;;;;;OAMG;IACI,4BAA4B,CACjC,OAAO,EAAE,OAAO,CAAC,qBAAqB,EACtC,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,GACrC,MAAM,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAM3C;;;;;;;OAOG;IACI,2BAA2B,CAChC,OAAO,EAAE,OAAO,CAAC,qBAAqB,EACtC,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,GACrC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAMlC;;;;;;;OAOG;IACI,6BAA6B,CAClC,OAAO,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,wBAAwB,GACvD,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IA+B5D;;;;;;;;OAQG;IACI,yBAAyB,CAC9B,OAAO,CAAC,EAAE,2BAA2B,GACpC,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,uBAAuB,CAAC;IA+B1D;;;;;;;OAOG;IAEI,KAAK,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,MAAM,CAAC,sBAAsB,CAAC;CAqBpF"}
1
+ {"version":3,"file":"resourceManagerBuilder.d.ts","sourceRoot":"","sources":["../../../src/packlets/resources/resourceManagerBuilder.ts"],"names":[],"mappings":"AAsBA,OAAO,EAEL,WAAW,EACX,cAAc,EAMd,MAAM,EAGN,mBAAmB,EACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,0BAA0B,EAC1B,6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