@fgv/ts-res 5.1.0-2 → 5.1.0-20

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 (571) hide show
  1. package/dist/index.browser.js.map +1 -0
  2. package/dist/index.js.map +1 -0
  3. package/dist/packlets/bundle/bundleBuilder.js.map +1 -0
  4. package/dist/packlets/bundle/bundleLoader.js.map +1 -0
  5. package/dist/packlets/bundle/bundleNormalizer.js.map +1 -0
  6. package/dist/packlets/bundle/bundleUtils.js.map +1 -0
  7. package/dist/packlets/bundle/convert.js.map +1 -0
  8. package/dist/packlets/bundle/index.js.map +1 -0
  9. package/dist/packlets/bundle/model.js.map +1 -0
  10. package/dist/packlets/common/conditions.js.map +1 -0
  11. package/dist/packlets/common/convert.js.map +1 -0
  12. package/dist/packlets/common/helpers/conditions.js.map +1 -0
  13. package/dist/packlets/common/helpers/context.js.map +1 -0
  14. package/dist/packlets/common/helpers/index.js.map +1 -0
  15. package/dist/packlets/common/helpers/qualifierDefaultValues.js.map +1 -0
  16. package/dist/packlets/common/helpers/resources.js +2 -4
  17. package/dist/packlets/common/helpers/resources.js.map +1 -0
  18. package/dist/packlets/common/index.js.map +1 -0
  19. package/dist/packlets/common/resources.js.map +1 -0
  20. package/dist/packlets/common/validate/conditions.js +4 -4
  21. package/dist/packlets/common/validate/conditions.js.map +1 -0
  22. package/dist/packlets/common/validate/index.js.map +1 -0
  23. package/dist/packlets/common/validate/regularExpressions.js +2 -2
  24. package/dist/packlets/common/validate/regularExpressions.js.map +1 -0
  25. package/dist/packlets/common/validate/resources.js +1 -1
  26. package/dist/packlets/common/validate/resources.js.map +1 -0
  27. package/dist/packlets/conditions/condition.js +3 -7
  28. package/dist/packlets/conditions/condition.js.map +1 -0
  29. package/dist/packlets/conditions/conditionCollector.js.map +1 -0
  30. package/dist/packlets/conditions/conditionDecls.js.map +1 -0
  31. package/dist/packlets/conditions/conditionSet.js.map +1 -0
  32. package/dist/packlets/conditions/conditionSetCollector.js.map +1 -0
  33. package/dist/packlets/conditions/conditionSetDecls.js.map +1 -0
  34. package/dist/packlets/conditions/conditionToken.js.map +1 -0
  35. package/dist/packlets/conditions/convert/conditionSetDecls.js.map +1 -0
  36. package/dist/packlets/conditions/convert/decls.js.map +1 -0
  37. package/dist/packlets/conditions/convert/index.js.map +1 -0
  38. package/dist/packlets/conditions/index.js.map +1 -0
  39. package/dist/packlets/config/common.js +78 -0
  40. package/dist/packlets/config/common.js.map +1 -0
  41. package/dist/packlets/config/configInitFactory.js +258 -0
  42. package/dist/packlets/config/configInitFactory.js.map +1 -0
  43. package/dist/packlets/config/convert.js +56 -0
  44. package/dist/packlets/config/convert.js.map +1 -0
  45. package/dist/packlets/config/index.browser.js +34 -0
  46. package/dist/packlets/config/index.browser.js.map +1 -0
  47. package/dist/packlets/config/index.js +28 -0
  48. package/dist/packlets/config/index.js.map +1 -0
  49. package/dist/packlets/config/json.js +23 -0
  50. package/dist/packlets/config/json.js.map +1 -0
  51. package/dist/packlets/config/predefined/default.js +138 -0
  52. package/dist/packlets/config/predefined/default.js.map +1 -0
  53. package/dist/packlets/config/predefined/extended.js +190 -0
  54. package/dist/packlets/config/predefined/extended.js.map +1 -0
  55. package/dist/packlets/config/predefined/index.js +25 -0
  56. package/dist/packlets/config/predefined/index.js.map +1 -0
  57. package/dist/packlets/config/systemConfiguration.js +147 -0
  58. package/dist/packlets/config/systemConfiguration.js.map +1 -0
  59. package/dist/packlets/context/contextDecls.js.map +1 -0
  60. package/dist/packlets/context/contextToken.js.map +1 -0
  61. package/dist/packlets/context/convert/decls.js.map +1 -0
  62. package/dist/packlets/context/convert/index.js.map +1 -0
  63. package/dist/packlets/context/index.js.map +1 -0
  64. package/dist/packlets/decisions/abstractDecision.js.map +1 -0
  65. package/dist/packlets/decisions/abstractDecisionCollector.js.map +1 -0
  66. package/dist/packlets/decisions/candidate.js.map +1 -0
  67. package/dist/packlets/decisions/common.js.map +1 -0
  68. package/dist/packlets/decisions/concreteDecision.js.map +1 -0
  69. package/dist/packlets/decisions/decision.js +1 -1
  70. package/dist/packlets/decisions/decision.js.map +1 -0
  71. package/dist/packlets/decisions/index.js.map +1 -0
  72. package/dist/packlets/import/fsItem.js +1 -4
  73. package/dist/packlets/import/fsItem.js.map +1 -0
  74. package/dist/packlets/import/importContext.js +3 -3
  75. package/dist/packlets/import/importContext.js.map +1 -0
  76. package/dist/packlets/import/importManager.js +7 -3
  77. package/dist/packlets/import/importManager.js.map +1 -0
  78. package/dist/packlets/import/importable.js.map +1 -0
  79. package/dist/packlets/import/importers/collectionImporter.js +2 -2
  80. package/dist/packlets/import/importers/collectionImporter.js.map +1 -0
  81. package/dist/packlets/import/importers/fsItemImporter.js +30 -14
  82. package/dist/packlets/import/importers/fsItemImporter.js.map +1 -0
  83. package/dist/packlets/import/importers/importer.js.map +1 -0
  84. package/dist/packlets/import/importers/index.browser.js.map +1 -0
  85. package/dist/packlets/import/importers/index.js.map +1 -0
  86. package/dist/packlets/import/importers/jsonImporter.js +2 -2
  87. package/dist/packlets/import/importers/jsonImporter.js.map +1 -0
  88. package/dist/packlets/import/importers/pathImporter.js +1 -1
  89. package/dist/packlets/import/importers/pathImporter.js.map +1 -0
  90. package/dist/packlets/import/index.browser.js.map +1 -0
  91. package/dist/packlets/import/index.js.map +1 -0
  92. package/dist/packlets/qualifier-types/config/convert.js +124 -0
  93. package/dist/packlets/qualifier-types/config/convert.js.map +1 -0
  94. package/dist/packlets/qualifier-types/config/index.js +25 -0
  95. package/dist/packlets/qualifier-types/config/index.js.map +1 -0
  96. package/dist/packlets/qualifier-types/config/json.js +32 -0
  97. package/dist/packlets/qualifier-types/config/json.js.map +1 -0
  98. package/dist/packlets/qualifier-types/convert.js.map +1 -0
  99. package/dist/packlets/qualifier-types/helpers.js.map +1 -0
  100. package/dist/packlets/qualifier-types/index.js.map +1 -0
  101. package/dist/packlets/qualifier-types/languageQualifierType.js +6 -7
  102. package/dist/packlets/qualifier-types/languageQualifierType.js.map +1 -0
  103. package/dist/packlets/qualifier-types/literalQualifierType.js +7 -10
  104. package/dist/packlets/qualifier-types/literalQualifierType.js.map +1 -0
  105. package/dist/packlets/qualifier-types/literalValueHierarchy.js.map +1 -0
  106. package/dist/packlets/qualifier-types/qualifierType.js +12 -13
  107. package/dist/packlets/qualifier-types/qualifierType.js.map +1 -0
  108. package/dist/packlets/qualifier-types/qualifierTypeCollector.js.map +1 -0
  109. package/dist/packlets/qualifier-types/territoryQualifierType.js +5 -5
  110. package/dist/packlets/qualifier-types/territoryQualifierType.js.map +1 -0
  111. package/dist/packlets/qualifiers/convert/decls.js.map +1 -0
  112. package/dist/packlets/qualifiers/convert/index.js.map +1 -0
  113. package/dist/packlets/qualifiers/convert/qualifier.js.map +1 -0
  114. package/dist/packlets/qualifiers/index.js.map +1 -0
  115. package/dist/packlets/qualifiers/qualifier.js +6 -7
  116. package/dist/packlets/qualifiers/qualifier.js.map +1 -0
  117. package/dist/packlets/qualifiers/qualifierCollector.js +2 -2
  118. package/dist/packlets/qualifiers/qualifierCollector.js.map +1 -0
  119. package/dist/packlets/qualifiers/qualifierDecl.js.map +1 -0
  120. package/dist/packlets/qualifiers/qualifierDefaultValueDecls.js.map +1 -0
  121. package/dist/packlets/qualifiers/qualifierDefaultValueToken.js.map +1 -0
  122. package/dist/packlets/resource-json/compiled/common.js.map +1 -0
  123. package/dist/packlets/resource-json/compiled/convert.js.map +1 -0
  124. package/dist/packlets/resource-json/compiled/index.js.map +1 -0
  125. package/dist/packlets/resource-json/compiled/json.js.map +1 -0
  126. package/dist/packlets/resource-json/convert.js.map +1 -0
  127. package/dist/packlets/resource-json/helpers.js.map +1 -0
  128. package/dist/packlets/resource-json/index.js.map +1 -0
  129. package/dist/packlets/resource-json/json.js.map +1 -0
  130. package/dist/packlets/resource-json/normalized.js.map +1 -0
  131. package/dist/packlets/resource-json/resourceDeclCollection.js +1 -1
  132. package/dist/packlets/resource-json/resourceDeclCollection.js.map +1 -0
  133. package/dist/packlets/resource-json/resourceDeclContainer.js.map +1 -0
  134. package/dist/packlets/resource-json/resourceDeclTree.js +1 -1
  135. package/dist/packlets/resource-json/resourceDeclTree.js.map +1 -0
  136. package/dist/packlets/resource-types/config/convert.js +35 -0
  137. package/dist/packlets/resource-types/config/convert.js.map +1 -0
  138. package/dist/packlets/resource-types/config/index.js +25 -0
  139. package/dist/packlets/resource-types/config/index.js.map +1 -0
  140. package/dist/packlets/resource-types/config/json.js +23 -0
  141. package/dist/packlets/resource-types/config/json.js.map +1 -0
  142. package/dist/packlets/resource-types/helpers.js.map +1 -0
  143. package/dist/packlets/resource-types/index.js.map +1 -0
  144. package/dist/packlets/resource-types/jsonResourceType.js +2 -2
  145. package/dist/packlets/resource-types/jsonResourceType.js.map +1 -0
  146. package/dist/packlets/resource-types/resourceType.js +2 -2
  147. package/dist/packlets/resource-types/resourceType.js.map +1 -0
  148. package/dist/packlets/resource-types/resourceTypeCollector.js.map +1 -0
  149. package/dist/packlets/resources/candidateReducer.js.map +1 -0
  150. package/dist/packlets/resources/candidateValue.js.map +1 -0
  151. package/dist/packlets/resources/candidateValueCollector.js.map +1 -0
  152. package/dist/packlets/resources/common.js.map +1 -0
  153. package/dist/packlets/resources/deltaGenerator.js.map +1 -0
  154. package/dist/packlets/resources/index.js.map +1 -0
  155. package/dist/packlets/resources/resource.js.map +1 -0
  156. package/dist/packlets/resources/resourceBuilder.js +2 -2
  157. package/dist/packlets/resources/resourceBuilder.js.map +1 -0
  158. package/dist/packlets/resources/resourceCandidate.js.map +1 -0
  159. package/dist/packlets/resources/resourceManagerBuilder.js +5 -5
  160. package/dist/packlets/resources/resourceManagerBuilder.js.map +1 -0
  161. package/dist/packlets/runtime/cacheListener.js.map +1 -0
  162. package/dist/packlets/runtime/cacheMetrics.js.map +1 -0
  163. package/dist/packlets/runtime/compiledResourceCollection.js +5 -5
  164. package/dist/packlets/runtime/compiledResourceCollection.js.map +1 -0
  165. package/dist/packlets/runtime/conditionSetResolutionResult.js.map +1 -0
  166. package/dist/packlets/runtime/context/contextQualifierProvider.js.map +1 -0
  167. package/dist/packlets/runtime/context/contextQualifierProviderValidator.js.map +1 -0
  168. package/dist/packlets/runtime/context/index.js.map +1 -0
  169. package/dist/packlets/runtime/context/simpleContextQualifierProvider.js.map +1 -0
  170. package/dist/packlets/runtime/context/validatingSimpleContextQualifierProvider.js.map +1 -0
  171. package/dist/packlets/runtime/iResourceManager.js.map +1 -0
  172. package/dist/packlets/runtime/index.js.map +1 -0
  173. package/dist/packlets/runtime/resource-tree/common.js.map +1 -0
  174. package/dist/packlets/runtime/resource-tree/index.js.map +1 -0
  175. package/dist/packlets/runtime/resource-tree/readOnlyResourceTree.js.map +1 -0
  176. package/dist/packlets/runtime/resource-tree/resourceTreeChildren.js.map +1 -0
  177. package/dist/packlets/runtime/resource-tree/resourceTreeChildrenValidator.js.map +1 -0
  178. package/dist/packlets/runtime/resourceResolver.js.map +1 -0
  179. package/dist/packlets/runtime/resourceTreeResolver.js.map +1 -0
  180. package/dist/packlets/runtime/validate.js.map +1 -0
  181. package/dist/packlets/zip-archive/convert.js.map +1 -0
  182. package/dist/packlets/zip-archive/index.browser.js.map +1 -0
  183. package/dist/packlets/zip-archive/index.js.map +1 -0
  184. package/dist/packlets/zip-archive/json.js.map +1 -0
  185. package/dist/packlets/zip-archive/types.js.map +1 -0
  186. package/dist/packlets/zip-archive/zipArchiveCreator.js.map +1 -0
  187. package/dist/packlets/zip-archive/zipArchiveFormat.js.map +1 -0
  188. package/dist/packlets/zip-archive/zipArchiveLoader.js.map +1 -0
  189. package/dist/ts-res.d.ts +134 -112
  190. package/dist/tsdoc-metadata.json +1 -1
  191. package/lib/index.browser.d.ts.map +1 -0
  192. package/lib/index.browser.js.map +1 -0
  193. package/lib/index.d.ts.map +1 -0
  194. package/lib/index.js.map +1 -0
  195. package/lib/packlets/bundle/bundleBuilder.d.ts.map +1 -0
  196. package/lib/packlets/bundle/bundleBuilder.js.map +1 -0
  197. package/lib/packlets/bundle/bundleLoader.d.ts.map +1 -0
  198. package/lib/packlets/bundle/bundleLoader.js.map +1 -0
  199. package/lib/packlets/bundle/bundleNormalizer.d.ts.map +1 -0
  200. package/lib/packlets/bundle/bundleNormalizer.js.map +1 -0
  201. package/lib/packlets/bundle/bundleUtils.d.ts.map +1 -0
  202. package/lib/packlets/bundle/bundleUtils.js.map +1 -0
  203. package/lib/packlets/bundle/convert.d.ts.map +1 -0
  204. package/lib/packlets/bundle/convert.js.map +1 -0
  205. package/lib/packlets/bundle/index.d.ts.map +1 -0
  206. package/lib/packlets/bundle/index.js.map +1 -0
  207. package/lib/packlets/bundle/model.d.ts.map +1 -0
  208. package/lib/packlets/bundle/model.js.map +1 -0
  209. package/lib/packlets/common/conditions.d.ts.map +1 -0
  210. package/lib/packlets/common/conditions.js.map +1 -0
  211. package/lib/packlets/common/convert.d.ts.map +1 -0
  212. package/lib/packlets/common/convert.js.map +1 -0
  213. package/lib/packlets/common/helpers/conditions.d.ts.map +1 -0
  214. package/lib/packlets/common/helpers/conditions.js.map +1 -0
  215. package/lib/packlets/common/helpers/context.d.ts.map +1 -0
  216. package/lib/packlets/common/helpers/context.js.map +1 -0
  217. package/lib/packlets/common/helpers/index.d.ts.map +1 -0
  218. package/lib/packlets/common/helpers/index.js.map +1 -0
  219. package/lib/packlets/common/helpers/qualifierDefaultValues.d.ts.map +1 -0
  220. package/lib/packlets/common/helpers/qualifierDefaultValues.js.map +1 -0
  221. package/lib/packlets/common/helpers/resources.d.ts +2 -4
  222. package/lib/packlets/common/helpers/resources.d.ts.map +1 -0
  223. package/lib/packlets/common/helpers/resources.js +2 -4
  224. package/lib/packlets/common/helpers/resources.js.map +1 -0
  225. package/lib/packlets/common/index.d.ts.map +1 -0
  226. package/lib/packlets/common/index.js.map +1 -0
  227. package/lib/packlets/common/resources.d.ts.map +1 -0
  228. package/lib/packlets/common/resources.js.map +1 -0
  229. package/lib/packlets/common/validate/conditions.d.ts +4 -4
  230. package/lib/packlets/common/validate/conditions.d.ts.map +1 -0
  231. package/lib/packlets/common/validate/conditions.js +4 -4
  232. package/lib/packlets/common/validate/conditions.js.map +1 -0
  233. package/lib/packlets/common/validate/index.d.ts.map +1 -0
  234. package/lib/packlets/common/validate/index.js.map +1 -0
  235. package/lib/packlets/common/validate/regularExpressions.d.ts +2 -2
  236. package/lib/packlets/common/validate/regularExpressions.d.ts.map +1 -0
  237. package/lib/packlets/common/validate/regularExpressions.js +2 -2
  238. package/lib/packlets/common/validate/regularExpressions.js.map +1 -0
  239. package/lib/packlets/common/validate/resources.d.ts +1 -1
  240. package/lib/packlets/common/validate/resources.d.ts.map +1 -0
  241. package/lib/packlets/common/validate/resources.js +1 -1
  242. package/lib/packlets/common/validate/resources.js.map +1 -0
  243. package/lib/packlets/conditions/condition.d.ts +3 -7
  244. package/lib/packlets/conditions/condition.d.ts.map +1 -0
  245. package/lib/packlets/conditions/condition.js +3 -7
  246. package/lib/packlets/conditions/condition.js.map +1 -0
  247. package/lib/packlets/conditions/conditionCollector.d.ts.map +1 -0
  248. package/lib/packlets/conditions/conditionCollector.js.map +1 -0
  249. package/lib/packlets/conditions/conditionDecls.d.ts.map +1 -0
  250. package/lib/packlets/conditions/conditionDecls.js.map +1 -0
  251. package/lib/packlets/conditions/conditionSet.d.ts.map +1 -0
  252. package/lib/packlets/conditions/conditionSet.js.map +1 -0
  253. package/lib/packlets/conditions/conditionSetCollector.d.ts.map +1 -0
  254. package/lib/packlets/conditions/conditionSetCollector.js.map +1 -0
  255. package/lib/packlets/conditions/conditionSetDecls.d.ts.map +1 -0
  256. package/lib/packlets/conditions/conditionSetDecls.js.map +1 -0
  257. package/lib/packlets/conditions/conditionToken.d.ts.map +1 -0
  258. package/lib/packlets/conditions/conditionToken.js.map +1 -0
  259. package/lib/packlets/conditions/convert/conditionSetDecls.d.ts.map +1 -0
  260. package/lib/packlets/conditions/convert/conditionSetDecls.js.map +1 -0
  261. package/lib/packlets/conditions/convert/decls.d.ts.map +1 -0
  262. package/lib/packlets/conditions/convert/decls.js.map +1 -0
  263. package/lib/packlets/conditions/convert/index.d.ts.map +1 -0
  264. package/lib/packlets/conditions/convert/index.js.map +1 -0
  265. package/lib/packlets/conditions/index.d.ts.map +1 -0
  266. package/lib/packlets/conditions/index.js.map +1 -0
  267. package/lib/packlets/config/common.d.ts +35 -0
  268. package/lib/packlets/config/common.d.ts.map +1 -0
  269. package/lib/packlets/config/common.js +97 -0
  270. package/lib/packlets/config/common.js.map +1 -0
  271. package/lib/packlets/config/configInitFactory.d.ts +217 -0
  272. package/lib/packlets/config/configInitFactory.d.ts.map +1 -0
  273. package/lib/packlets/config/configInitFactory.js +303 -0
  274. package/lib/packlets/config/configInitFactory.js.map +1 -0
  275. package/lib/packlets/config/convert.d.ts +23 -0
  276. package/lib/packlets/config/convert.d.ts.map +1 -0
  277. package/lib/packlets/config/convert.js +93 -0
  278. package/lib/packlets/config/convert.js.map +1 -0
  279. package/lib/packlets/config/index.browser.d.ts +7 -0
  280. package/lib/packlets/config/index.browser.d.ts.map +1 -0
  281. package/lib/packlets/config/index.browser.js +74 -0
  282. package/lib/packlets/config/index.browser.js.map +1 -0
  283. package/lib/packlets/config/index.d.ts +7 -0
  284. package/lib/packlets/config/index.d.ts.map +1 -0
  285. package/lib/packlets/config/index.js +68 -0
  286. package/lib/packlets/config/index.js.map +1 -0
  287. package/lib/packlets/config/json.d.ts +20 -0
  288. package/lib/packlets/config/json.d.ts.map +1 -0
  289. package/lib/packlets/config/json.js +24 -0
  290. package/lib/packlets/config/json.js.map +1 -0
  291. package/lib/packlets/config/predefined/default.d.ts +57 -0
  292. package/lib/packlets/config/predefined/default.d.ts.map +1 -0
  293. package/lib/packlets/config/predefined/default.js +141 -0
  294. package/lib/packlets/config/predefined/default.js.map +1 -0
  295. package/lib/packlets/config/predefined/extended.d.ts +25 -0
  296. package/lib/packlets/config/predefined/extended.d.ts.map +1 -0
  297. package/lib/packlets/config/predefined/extended.js +193 -0
  298. package/lib/packlets/config/predefined/extended.js.map +1 -0
  299. package/lib/packlets/config/predefined/index.d.ts +4 -0
  300. package/lib/packlets/config/predefined/index.d.ts.map +1 -0
  301. package/lib/packlets/config/predefined/index.js +62 -0
  302. package/lib/packlets/config/predefined/index.js.map +1 -0
  303. package/lib/packlets/config/systemConfiguration.d.ts +94 -0
  304. package/lib/packlets/config/systemConfiguration.d.ts.map +1 -0
  305. package/lib/packlets/config/systemConfiguration.js +152 -0
  306. package/lib/packlets/config/systemConfiguration.js.map +1 -0
  307. package/lib/packlets/context/contextDecls.d.ts.map +1 -0
  308. package/lib/packlets/context/contextDecls.js.map +1 -0
  309. package/lib/packlets/context/contextToken.d.ts.map +1 -0
  310. package/lib/packlets/context/contextToken.js.map +1 -0
  311. package/lib/packlets/context/convert/decls.d.ts.map +1 -0
  312. package/lib/packlets/context/convert/decls.js.map +1 -0
  313. package/lib/packlets/context/convert/index.d.ts.map +1 -0
  314. package/lib/packlets/context/convert/index.js.map +1 -0
  315. package/lib/packlets/context/index.d.ts.map +1 -0
  316. package/lib/packlets/context/index.js.map +1 -0
  317. package/lib/packlets/decisions/abstractDecision.d.ts.map +1 -0
  318. package/lib/packlets/decisions/abstractDecision.js.map +1 -0
  319. package/lib/packlets/decisions/abstractDecisionCollector.d.ts.map +1 -0
  320. package/lib/packlets/decisions/abstractDecisionCollector.js.map +1 -0
  321. package/lib/packlets/decisions/candidate.d.ts.map +1 -0
  322. package/lib/packlets/decisions/candidate.js.map +1 -0
  323. package/lib/packlets/decisions/common.d.ts.map +1 -0
  324. package/lib/packlets/decisions/common.js.map +1 -0
  325. package/lib/packlets/decisions/concreteDecision.d.ts.map +1 -0
  326. package/lib/packlets/decisions/concreteDecision.js.map +1 -0
  327. package/lib/packlets/decisions/decision.d.ts +1 -1
  328. package/lib/packlets/decisions/decision.d.ts.map +1 -0
  329. package/lib/packlets/decisions/decision.js +1 -1
  330. package/lib/packlets/decisions/decision.js.map +1 -0
  331. package/lib/packlets/decisions/index.d.ts.map +1 -0
  332. package/lib/packlets/decisions/index.js.map +1 -0
  333. package/lib/packlets/import/fsItem.d.ts +1 -4
  334. package/lib/packlets/import/fsItem.d.ts.map +1 -0
  335. package/lib/packlets/import/fsItem.js +1 -4
  336. package/lib/packlets/import/fsItem.js.map +1 -0
  337. package/lib/packlets/import/importContext.d.ts +5 -5
  338. package/lib/packlets/import/importContext.d.ts.map +1 -0
  339. package/lib/packlets/import/importContext.js +3 -3
  340. package/lib/packlets/import/importContext.js.map +1 -0
  341. package/lib/packlets/import/importManager.d.ts +15 -1
  342. package/lib/packlets/import/importManager.d.ts.map +1 -0
  343. package/lib/packlets/import/importManager.js +7 -3
  344. package/lib/packlets/import/importManager.js.map +1 -0
  345. package/lib/packlets/import/importable.d.ts.map +1 -0
  346. package/lib/packlets/import/importable.js.map +1 -0
  347. package/lib/packlets/import/importers/collectionImporter.d.ts +2 -2
  348. package/lib/packlets/import/importers/collectionImporter.d.ts.map +1 -0
  349. package/lib/packlets/import/importers/collectionImporter.js +2 -2
  350. package/lib/packlets/import/importers/collectionImporter.js.map +1 -0
  351. package/lib/packlets/import/importers/fsItemImporter.d.ts +16 -2
  352. package/lib/packlets/import/importers/fsItemImporter.d.ts.map +1 -0
  353. package/lib/packlets/import/importers/fsItemImporter.js +29 -13
  354. package/lib/packlets/import/importers/fsItemImporter.js.map +1 -0
  355. package/lib/packlets/import/importers/importer.d.ts.map +1 -0
  356. package/lib/packlets/import/importers/importer.js.map +1 -0
  357. package/lib/packlets/import/importers/index.browser.d.ts.map +1 -0
  358. package/lib/packlets/import/importers/index.browser.js.map +1 -0
  359. package/lib/packlets/import/importers/index.d.ts.map +1 -0
  360. package/lib/packlets/import/importers/index.js.map +1 -0
  361. package/lib/packlets/import/importers/jsonImporter.d.ts +2 -2
  362. package/lib/packlets/import/importers/jsonImporter.d.ts.map +1 -0
  363. package/lib/packlets/import/importers/jsonImporter.js +2 -2
  364. package/lib/packlets/import/importers/jsonImporter.js.map +1 -0
  365. package/lib/packlets/import/importers/pathImporter.d.ts +1 -1
  366. package/lib/packlets/import/importers/pathImporter.d.ts.map +1 -0
  367. package/lib/packlets/import/importers/pathImporter.js +1 -1
  368. package/lib/packlets/import/importers/pathImporter.js.map +1 -0
  369. package/lib/packlets/import/index.browser.d.ts.map +1 -0
  370. package/lib/packlets/import/index.browser.js.map +1 -0
  371. package/lib/packlets/import/index.d.ts.map +1 -0
  372. package/lib/packlets/import/index.js.map +1 -0
  373. package/lib/packlets/qualifier-types/config/convert.d.ts +65 -0
  374. package/lib/packlets/qualifier-types/config/convert.d.ts.map +1 -0
  375. package/lib/packlets/qualifier-types/config/convert.js +161 -0
  376. package/lib/packlets/qualifier-types/config/convert.js.map +1 -0
  377. package/lib/packlets/qualifier-types/config/index.d.ts +4 -0
  378. package/lib/packlets/qualifier-types/config/index.d.ts.map +1 -0
  379. package/lib/packlets/qualifier-types/config/index.js +64 -0
  380. package/lib/packlets/qualifier-types/config/index.js.map +1 -0
  381. package/lib/packlets/qualifier-types/config/json.d.ts +91 -0
  382. package/lib/packlets/qualifier-types/config/json.d.ts.map +1 -0
  383. package/lib/packlets/qualifier-types/config/json.js +35 -0
  384. package/lib/packlets/qualifier-types/config/json.js.map +1 -0
  385. package/lib/packlets/qualifier-types/convert.d.ts.map +1 -0
  386. package/lib/packlets/qualifier-types/convert.js.map +1 -0
  387. package/lib/packlets/qualifier-types/helpers.d.ts.map +1 -0
  388. package/lib/packlets/qualifier-types/helpers.js.map +1 -0
  389. package/lib/packlets/qualifier-types/index.d.ts.map +1 -0
  390. package/lib/packlets/qualifier-types/index.js.map +1 -0
  391. package/lib/packlets/qualifier-types/languageQualifierType.d.ts +6 -7
  392. package/lib/packlets/qualifier-types/languageQualifierType.d.ts.map +1 -0
  393. package/lib/packlets/qualifier-types/languageQualifierType.js +6 -7
  394. package/lib/packlets/qualifier-types/languageQualifierType.js.map +1 -0
  395. package/lib/packlets/qualifier-types/literalQualifierType.d.ts +7 -10
  396. package/lib/packlets/qualifier-types/literalQualifierType.d.ts.map +1 -0
  397. package/lib/packlets/qualifier-types/literalQualifierType.js +7 -10
  398. package/lib/packlets/qualifier-types/literalQualifierType.js.map +1 -0
  399. package/lib/packlets/qualifier-types/literalValueHierarchy.d.ts.map +1 -0
  400. package/lib/packlets/qualifier-types/literalValueHierarchy.js.map +1 -0
  401. package/lib/packlets/qualifier-types/qualifierType.d.ts +17 -18
  402. package/lib/packlets/qualifier-types/qualifierType.d.ts.map +1 -0
  403. package/lib/packlets/qualifier-types/qualifierType.js +12 -13
  404. package/lib/packlets/qualifier-types/qualifierType.js.map +1 -0
  405. package/lib/packlets/qualifier-types/qualifierTypeCollector.d.ts.map +1 -0
  406. package/lib/packlets/qualifier-types/qualifierTypeCollector.js.map +1 -0
  407. package/lib/packlets/qualifier-types/territoryQualifierType.d.ts +8 -8
  408. package/lib/packlets/qualifier-types/territoryQualifierType.d.ts.map +1 -0
  409. package/lib/packlets/qualifier-types/territoryQualifierType.js +5 -5
  410. package/lib/packlets/qualifier-types/territoryQualifierType.js.map +1 -0
  411. package/lib/packlets/qualifiers/convert/decls.d.ts.map +1 -0
  412. package/lib/packlets/qualifiers/convert/decls.js.map +1 -0
  413. package/lib/packlets/qualifiers/convert/index.d.ts.map +1 -0
  414. package/lib/packlets/qualifiers/convert/index.js.map +1 -0
  415. package/lib/packlets/qualifiers/convert/qualifier.d.ts.map +1 -0
  416. package/lib/packlets/qualifiers/convert/qualifier.js.map +1 -0
  417. package/lib/packlets/qualifiers/index.d.ts.map +1 -0
  418. package/lib/packlets/qualifiers/index.js.map +1 -0
  419. package/lib/packlets/qualifiers/qualifier.d.ts +6 -7
  420. package/lib/packlets/qualifiers/qualifier.d.ts.map +1 -0
  421. package/lib/packlets/qualifiers/qualifier.js +6 -7
  422. package/lib/packlets/qualifiers/qualifier.js.map +1 -0
  423. package/lib/packlets/qualifiers/qualifierCollector.d.ts +3 -3
  424. package/lib/packlets/qualifiers/qualifierCollector.d.ts.map +1 -0
  425. package/lib/packlets/qualifiers/qualifierCollector.js +2 -2
  426. package/lib/packlets/qualifiers/qualifierCollector.js.map +1 -0
  427. package/lib/packlets/qualifiers/qualifierDecl.d.ts.map +1 -0
  428. package/lib/packlets/qualifiers/qualifierDecl.js.map +1 -0
  429. package/lib/packlets/qualifiers/qualifierDefaultValueDecls.d.ts.map +1 -0
  430. package/lib/packlets/qualifiers/qualifierDefaultValueDecls.js.map +1 -0
  431. package/lib/packlets/qualifiers/qualifierDefaultValueToken.d.ts.map +1 -0
  432. package/lib/packlets/qualifiers/qualifierDefaultValueToken.js.map +1 -0
  433. package/lib/packlets/resource-json/compiled/common.d.ts.map +1 -0
  434. package/lib/packlets/resource-json/compiled/common.js.map +1 -0
  435. package/lib/packlets/resource-json/compiled/convert.d.ts.map +1 -0
  436. package/lib/packlets/resource-json/compiled/convert.js.map +1 -0
  437. package/lib/packlets/resource-json/compiled/index.d.ts.map +1 -0
  438. package/lib/packlets/resource-json/compiled/index.js.map +1 -0
  439. package/lib/packlets/resource-json/compiled/json.d.ts.map +1 -0
  440. package/lib/packlets/resource-json/compiled/json.js.map +1 -0
  441. package/lib/packlets/resource-json/convert.d.ts.map +1 -0
  442. package/lib/packlets/resource-json/convert.js.map +1 -0
  443. package/lib/packlets/resource-json/helpers.d.ts.map +1 -0
  444. package/lib/packlets/resource-json/helpers.js.map +1 -0
  445. package/lib/packlets/resource-json/index.d.ts.map +1 -0
  446. package/lib/packlets/resource-json/index.js.map +1 -0
  447. package/lib/packlets/resource-json/json.d.ts.map +1 -0
  448. package/lib/packlets/resource-json/json.js.map +1 -0
  449. package/lib/packlets/resource-json/normalized.d.ts.map +1 -0
  450. package/lib/packlets/resource-json/normalized.js.map +1 -0
  451. package/lib/packlets/resource-json/resourceDeclCollection.d.ts +1 -1
  452. package/lib/packlets/resource-json/resourceDeclCollection.d.ts.map +1 -0
  453. package/lib/packlets/resource-json/resourceDeclCollection.js +1 -1
  454. package/lib/packlets/resource-json/resourceDeclCollection.js.map +1 -0
  455. package/lib/packlets/resource-json/resourceDeclContainer.d.ts.map +1 -0
  456. package/lib/packlets/resource-json/resourceDeclContainer.js.map +1 -0
  457. package/lib/packlets/resource-json/resourceDeclTree.d.ts +1 -1
  458. package/lib/packlets/resource-json/resourceDeclTree.d.ts.map +1 -0
  459. package/lib/packlets/resource-json/resourceDeclTree.js +1 -1
  460. package/lib/packlets/resource-json/resourceDeclTree.js.map +1 -0
  461. package/lib/packlets/resource-types/config/convert.d.ts +8 -0
  462. package/lib/packlets/resource-types/config/convert.d.ts.map +1 -0
  463. package/lib/packlets/resource-types/config/convert.js +38 -0
  464. package/lib/packlets/resource-types/config/convert.js.map +1 -0
  465. package/lib/packlets/resource-types/config/index.d.ts +4 -0
  466. package/lib/packlets/resource-types/config/index.d.ts.map +1 -0
  467. package/lib/packlets/resource-types/config/index.js +64 -0
  468. package/lib/packlets/resource-types/config/index.js.map +1 -0
  469. package/lib/packlets/resource-types/config/json.d.ts +11 -0
  470. package/lib/packlets/resource-types/config/json.d.ts.map +1 -0
  471. package/lib/packlets/resource-types/config/json.js +24 -0
  472. package/lib/packlets/resource-types/config/json.js.map +1 -0
  473. package/lib/packlets/resource-types/helpers.d.ts.map +1 -0
  474. package/lib/packlets/resource-types/helpers.js.map +1 -0
  475. package/lib/packlets/resource-types/index.d.ts.map +1 -0
  476. package/lib/packlets/resource-types/index.js.map +1 -0
  477. package/lib/packlets/resource-types/jsonResourceType.d.ts +17 -5
  478. package/lib/packlets/resource-types/jsonResourceType.d.ts.map +1 -0
  479. package/lib/packlets/resource-types/jsonResourceType.js +2 -2
  480. package/lib/packlets/resource-types/jsonResourceType.js.map +1 -0
  481. package/lib/packlets/resource-types/resourceType.d.ts +5 -5
  482. package/lib/packlets/resource-types/resourceType.d.ts.map +1 -0
  483. package/lib/packlets/resource-types/resourceType.js +2 -2
  484. package/lib/packlets/resource-types/resourceType.js.map +1 -0
  485. package/lib/packlets/resource-types/resourceTypeCollector.d.ts.map +1 -0
  486. package/lib/packlets/resource-types/resourceTypeCollector.js.map +1 -0
  487. package/lib/packlets/resources/candidateReducer.d.ts.map +1 -0
  488. package/lib/packlets/resources/candidateReducer.js.map +1 -0
  489. package/lib/packlets/resources/candidateValue.d.ts.map +1 -0
  490. package/lib/packlets/resources/candidateValue.js.map +1 -0
  491. package/lib/packlets/resources/candidateValueCollector.d.ts.map +1 -0
  492. package/lib/packlets/resources/candidateValueCollector.js.map +1 -0
  493. package/lib/packlets/resources/common.d.ts.map +1 -0
  494. package/lib/packlets/resources/common.js.map +1 -0
  495. package/lib/packlets/resources/deltaGenerator.d.ts.map +1 -0
  496. package/lib/packlets/resources/deltaGenerator.js.map +1 -0
  497. package/lib/packlets/resources/index.d.ts.map +1 -0
  498. package/lib/packlets/resources/index.js.map +1 -0
  499. package/lib/packlets/resources/resource.d.ts.map +1 -0
  500. package/lib/packlets/resources/resource.js.map +1 -0
  501. package/lib/packlets/resources/resourceBuilder.d.ts +2 -2
  502. package/lib/packlets/resources/resourceBuilder.d.ts.map +1 -0
  503. package/lib/packlets/resources/resourceBuilder.js +2 -2
  504. package/lib/packlets/resources/resourceBuilder.js.map +1 -0
  505. package/lib/packlets/resources/resourceCandidate.d.ts.map +1 -0
  506. package/lib/packlets/resources/resourceCandidate.js.map +1 -0
  507. package/lib/packlets/resources/resourceManagerBuilder.d.ts +5 -5
  508. package/lib/packlets/resources/resourceManagerBuilder.d.ts.map +1 -0
  509. package/lib/packlets/resources/resourceManagerBuilder.js +5 -5
  510. package/lib/packlets/resources/resourceManagerBuilder.js.map +1 -0
  511. package/lib/packlets/runtime/cacheListener.d.ts.map +1 -0
  512. package/lib/packlets/runtime/cacheListener.js.map +1 -0
  513. package/lib/packlets/runtime/cacheMetrics.d.ts.map +1 -0
  514. package/lib/packlets/runtime/cacheMetrics.js.map +1 -0
  515. package/lib/packlets/runtime/compiledResourceCollection.d.ts +5 -5
  516. package/lib/packlets/runtime/compiledResourceCollection.d.ts.map +1 -0
  517. package/lib/packlets/runtime/compiledResourceCollection.js +5 -5
  518. package/lib/packlets/runtime/compiledResourceCollection.js.map +1 -0
  519. package/lib/packlets/runtime/conditionSetResolutionResult.d.ts.map +1 -0
  520. package/lib/packlets/runtime/conditionSetResolutionResult.js.map +1 -0
  521. package/lib/packlets/runtime/context/contextQualifierProvider.d.ts.map +1 -0
  522. package/lib/packlets/runtime/context/contextQualifierProvider.js.map +1 -0
  523. package/lib/packlets/runtime/context/contextQualifierProviderValidator.d.ts.map +1 -0
  524. package/lib/packlets/runtime/context/contextQualifierProviderValidator.js.map +1 -0
  525. package/lib/packlets/runtime/context/index.d.ts.map +1 -0
  526. package/lib/packlets/runtime/context/index.js.map +1 -0
  527. package/lib/packlets/runtime/context/simpleContextQualifierProvider.d.ts.map +1 -0
  528. package/lib/packlets/runtime/context/simpleContextQualifierProvider.js.map +1 -0
  529. package/lib/packlets/runtime/context/validatingSimpleContextQualifierProvider.d.ts.map +1 -0
  530. package/lib/packlets/runtime/context/validatingSimpleContextQualifierProvider.js.map +1 -0
  531. package/lib/packlets/runtime/iResourceManager.d.ts.map +1 -0
  532. package/lib/packlets/runtime/iResourceManager.js.map +1 -0
  533. package/lib/packlets/runtime/index.d.ts.map +1 -0
  534. package/lib/packlets/runtime/index.js.map +1 -0
  535. package/lib/packlets/runtime/resource-tree/common.d.ts.map +1 -0
  536. package/lib/packlets/runtime/resource-tree/common.js.map +1 -0
  537. package/lib/packlets/runtime/resource-tree/index.d.ts.map +1 -0
  538. package/lib/packlets/runtime/resource-tree/index.js.map +1 -0
  539. package/lib/packlets/runtime/resource-tree/readOnlyResourceTree.d.ts.map +1 -0
  540. package/lib/packlets/runtime/resource-tree/readOnlyResourceTree.js.map +1 -0
  541. package/lib/packlets/runtime/resource-tree/resourceTreeChildren.d.ts.map +1 -0
  542. package/lib/packlets/runtime/resource-tree/resourceTreeChildren.js.map +1 -0
  543. package/lib/packlets/runtime/resource-tree/resourceTreeChildrenValidator.d.ts.map +1 -0
  544. package/lib/packlets/runtime/resource-tree/resourceTreeChildrenValidator.js.map +1 -0
  545. package/lib/packlets/runtime/resourceResolver.d.ts.map +1 -0
  546. package/lib/packlets/runtime/resourceResolver.js.map +1 -0
  547. package/lib/packlets/runtime/resourceTreeResolver.d.ts.map +1 -0
  548. package/lib/packlets/runtime/resourceTreeResolver.js.map +1 -0
  549. package/lib/packlets/runtime/validate.d.ts.map +1 -0
  550. package/lib/packlets/runtime/validate.js.map +1 -0
  551. package/lib/packlets/zip-archive/convert.d.ts.map +1 -0
  552. package/lib/packlets/zip-archive/convert.js.map +1 -0
  553. package/lib/packlets/zip-archive/index.browser.d.ts.map +1 -0
  554. package/lib/packlets/zip-archive/index.browser.js.map +1 -0
  555. package/lib/packlets/zip-archive/index.d.ts.map +1 -0
  556. package/lib/packlets/zip-archive/index.js.map +1 -0
  557. package/lib/packlets/zip-archive/json.d.ts.map +1 -0
  558. package/lib/packlets/zip-archive/json.js.map +1 -0
  559. package/lib/packlets/zip-archive/types.d.ts.map +1 -0
  560. package/lib/packlets/zip-archive/types.js.map +1 -0
  561. package/lib/packlets/zip-archive/zipArchiveCreator.d.ts.map +1 -0
  562. package/lib/packlets/zip-archive/zipArchiveCreator.js.map +1 -0
  563. package/lib/packlets/zip-archive/zipArchiveFormat.d.ts.map +1 -0
  564. package/lib/packlets/zip-archive/zipArchiveFormat.js.map +1 -0
  565. package/lib/packlets/zip-archive/zipArchiveLoader.d.ts.map +1 -0
  566. package/lib/packlets/zip-archive/zipArchiveLoader.js.map +1 -0
  567. package/package.json +28 -26
  568. package/dist/test/data/sample.json +0 -32
  569. package/dist/test/unit/qualifier-types/testQualifierType.js +0 -76
  570. package/dist/test/unit/resource-types/testDerivedResourceType.js +0 -109
  571. package/dist/test/unit/resources/deltaGenerator.helpers.js +0 -282
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.57.6"
8
+ "packageVersion": "7.57.7"
9
9
  }
10
10
  ]
11
11
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.browser.d.ts","sour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zBoC,kCAAsB,OAyBpC;AAxBxB,gDAAwE;AAuBtE,iGAvByB,0BAAgB,OAuBzB;AAtBlB,8CAAgE;AAI9D,8FAJO,sBAAa,OAIP;AACb,6FALsB,qBAAY,OAKtB;AA0Bd,yBAAyB;AACzB,kFAAkF;AAClF,sFAAsF;AACtF,gFAAgF","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n// Browser entry point - excludes Node.js filesystem dependencies\n\nimport * as Bundle from './packlets/bundle';\nimport * as QualifierTypes from './packlets/qualifier-types';\nimport * as Qualifiers from './packlets/qualifiers';\nimport * as Conditions from './packlets/conditions';\n// eslint-disable-next-line @rushstack/packlets/mechanics -- browser-specific entry point excludes Node.js fs dependencies\nimport * as Config from './packlets/config/index.browser';\nimport * as Context from './packlets/context';\nimport * as Decisions from './packlets/decisions';\nimport * as ResourceJson from './packlets/resource-json';\nimport * as Resources from './packlets/resources';\nimport * as ResourceTypes from './packlets/resource-types';\n// eslint-disable-next-line @rushstack/packlets/mechanics -- browser-specific entry point excludes Node.js fs dependencies\nimport * as Import from './packlets/import/index.browser';\nimport * as Runtime from './packlets/runtime';\n// eslint-disable-next-line @rushstack/packlets/mechanics -- browser-specific entry point excludes Node.js fs dependencies\nimport * as ZipArchive from './packlets/zip-archive/index.browser';\n\nexport * from './packlets/common';\n\nimport { Condition, ConditionSet } from './packlets/conditions';\nimport { Decision } from './packlets/decisions';\nimport { QualifierType } from './packlets/qualifier-types';\nimport { Qualifier } from './packlets/qualifiers';\nimport { ResourceType } from './packlets/resource-types';\nimport { Resource, ResourceCandidate, ResourceManagerBuilder } from './packlets/resources';\nimport { IResourceManager, ResourceResolver } from './packlets/runtime';\nimport { BundleBuilder, BundleLoader } from './packlets/bundle';\n\nexport {\n Bundle,\n BundleBuilder,\n BundleLoader,\n Condition,\n Conditions,\n ConditionSet,\n Config,\n Context,\n Decision,\n Decisions,\n Import,\n IResourceManager,\n Qualifier,\n QualifierType,\n QualifierTypes,\n Qualifiers,\n Resource,\n ResourceCandidate,\n ResourceJson,\n ResourceResolver,\n ResourceManagerBuilder,\n ResourceType,\n ResourceTypes,\n Resources,\n Runtime,\n ZipArchive\n};\n\n// Excluded from browser:\n// - Config: SystemConfiguration.loadFromFile() (requires Node.js fs via JsonFile)\n// - Import: PathImporter, FsItemImporter, FsItem.createForPath() (require Node.js fs)\n// - ZipArchive: ZipArchiveCreator methods using file paths (require Node.js fs)\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,O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src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0DAA4C;AA0B1C,wBAAM;AAzBR,2EAA6D;AAuC3D,wCAAc;AAtChB,kEAAoD;AAuClD,gCAAU;AAtCZ,kEAAoD;AA2BlD,gCAAU;AA1BZ,0DAA4C;AA4B1C,wBAAM;AA3BR,4DAA8C;AA4B5C,0BAAO;AA3BT,gEAAkD;AA6BhD,8BAAS;AA5BX,uEAAyD;AAqCvD,oCAAY;AApCd,gEAAkD;AAyChD,8BAAS;AAxCX,yEAA2D;AAuCzD,sCAAa;AAtCf,0DAA4C;AA0B1C,wBAAM;AAzBR,4DAA8C;AAuC5C,0BAAO;AAtCT,mEAAqD;AAuCnD,gCAAU;AArCZ,oDAAkC;AAElC,sDAAgE;AAa9D,0FAbO,sBAAS,OAaP;AAET,6FAfkB,yBAAY,OAelB;AAdd,oDAAgD;AAiB9C,yFAjBO,oBAAQ,OAiBP;AAhBV,gEAA2D;AAqBzD,8FArBO,+BAAa,OAqBP;AApBf,sDAAkD;AAmBhD,0FAnBO,sBAAS,OAmBP;AAlBX,8DAAyD;AA2BvD,6FA3BO,6BAAY,OA2BP;AA1Bd,oDAA2F;AAqBzF,yFArBO,oBAAQ,OAqBP;AACR,kGAtBiB,6BAAiB,OAsBjB;AAGjB,uGAzBoC,kCAAsB,OAyBpC;AAxBxB,gDAAwE;AAuBtE,iGAvByB,0BAAgB,OAuBzB;AAtBlB,8CAAgE;AAI9D,8FAJO,sBAAa,OAIP;AACb,6FALsB,qBAAY,OAKtB","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport * as Bundle from './packlets/bundle';\nimport * as QualifierTypes from './packlets/qualifier-types';\nimport * as Qualifiers from './packlets/qualifiers';\nimport * as Conditions from './packlets/conditions';\nimport * as Config from './packlets/config';\nimport * as Context from './packlets/context';\nimport * as Decisions from './packlets/decisions';\nimport * as ResourceJson from './packlets/resource-json';\nimport * as Resources from './packlets/resources';\nimport * as ResourceTypes from './packlets/resource-types';\nimport * as Import from './packlets/import';\nimport * as Runtime from './packlets/runtime';\nimport * as ZipArchive from './packlets/zip-archive';\n\nexport * from './packlets/common';\n\nimport { Condition, ConditionSet } from './packlets/conditions';\nimport { Decision } from './packlets/decisions';\nimport { QualifierType } from './packlets/qualifier-types';\nimport { Qualifier } from './packlets/qualifiers';\nimport { ResourceType } from './packlets/resource-types';\nimport { Resource, ResourceCandidate, ResourceManagerBuilder } from './packlets/resources';\nimport { IResourceManager, ResourceResolver } from './packlets/runtime';\nimport { BundleBuilder, BundleLoader } from './packlets/bundle';\n\nexport {\n Bundle,\n BundleBuilder,\n BundleLoader,\n Condition,\n Conditions,\n ConditionSet,\n Config,\n Context,\n Decision,\n Decisions,\n Import,\n IResourceManager,\n Qualifier,\n QualifierType,\n QualifierTypes,\n Qualifiers,\n Resource,\n ResourceCandidate,\n ResourceJson,\n ResourceResolver,\n ResourceManagerBuilder,\n ResourceType,\n ResourceTypes,\n Resources,\n Runtime,\n ZipArchive\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundleBuilder.d.ts","sourceRoot":"","sources":["../../../src/packlets/bundle/bundleBuilder.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,MAAM,EAAiB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EACL,mBAAmB,EACnB,6BAA6B,EAE9B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAmB,MAAM,SAAS,CAAC;AAGxE;;;;;GAKG;AACH,qBAAa,aAAa;IACxB;;;;;;;OAOG;WACW,MAAM,CAClB,OAAO,EAAE,sBAAsB,EAC/B,YAAY,EAAE,mBAAmB,EACjC,MAAM,CAAC,EAAE,mBAAmB,GAC3B,MAAM,CAAC,OAAO,CAAC;IAsClB;;;;;;;;OAQG;WACW,oBAAoB,CAChC,OAAO,EAAE,sBAAsB,EAC/B,UAAU,EAAE,6BAA6B,EACzC,MAAM,CAAC,EAAE,mBAAmB,GAC3B,MAAM,CAAC,OAAO,CAAC;IA0ClB;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;CAMjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundleBuilder.js","sourceRoot":"","sources":["../../../src/packlets/bundle/bundleBuilder.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AAEH,4CAAsD;AAEtD,sCAImB;AAEnB,yDAAsD;AAEtD;;;;;GAKG;AACH,MAAa,aAAa;IACxB;;;;;;;OAOG;IACI,MAAM,CAAC,MAAM,CAClB,OAA+B,EAC/B,YAAiC,EACjC,MAA4B;;QAE5B,yCAAyC;QACzC,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAC;QACtB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C,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACK,MAAM,CAAC,iBAAiB,CAC9B,kBAA2B,EAC3B,cAAsC;QAEtC,OAAO,cAAc,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACxD,CAAC;CACF;AAxHD,sCAwHC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { Result, succeed, Hash } from '@fgv/ts-utils';\nimport { ResourceManagerBuilder } from '../resources';\nimport {\n SystemConfiguration,\n PredefinedSystemConfiguration,\n getPredefinedSystemConfiguration\n} from '../config';\nimport { IBundle, IBundleCreateParams, IBundleMetadata } from './model';\nimport { BundleNormalizer } from './bundleNormalizer';\n\n/**\n * Builder for creating resource bundles from a ResourceManagerBuilder.\n * Handles the compilation, configuration extraction, and integrity verification\n * needed to create a complete, portable bundle.\n * @public\n */\nexport class BundleBuilder {\n /**\n * Creates a resource bundle from a ResourceManagerBuilder.\n * @param builder - The ResourceManagerBuilder containing the resources to bundle\n * @param systemConfig - The SystemConfiguration used to create the builder\n * @param params - Optional parameters for bundle creation\n * @returns Success with the created bundle if successful, Failure with error message otherwise\n * @public\n */\n public static create(\n builder: ResourceManagerBuilder,\n systemConfig: SystemConfiguration,\n params?: IBundleCreateParams\n ): Result<IBundle> {\n /* c8 ignore next 2 - defense in depth */\n params = params ?? {};\n const hashNormalizer = params.hashNormalizer ?? new Hash.Crc32Normalizer();\n\n const builderToUse =\n params.normalize === true\n ? BundleNormalizer.normalize(builder, systemConfig)\n : /* c8 ignore next 1 - is tested but coverage gets confused */\n succeed(builder);\n\n return builderToUse.onSuccess((targetBuilder) => {\n return systemConfig.getConfig().onSuccess((config) => {\n return targetBuilder.getCompiledResourceCollection().onSuccess((compiledCollection) => {\n return BundleBuilder._generateChecksum(compiledCollection, hashNormalizer).onSuccess((checksum) => {\n /* c8 ignore next 1 - defense in depth */\n const dateBuilt = params.dateBuilt ?? new Date().toISOString();\n\n const metadata: IBundleMetadata = {\n dateBuilt,\n checksum,\n version: params.version,\n description: params.description\n };\n\n const bundle: IBundle = {\n metadata,\n config,\n compiledCollection\n };\n\n return succeed(bundle);\n });\n });\n });\n });\n }\n\n /**\n * Creates a resource bundle from a ResourceManagerBuilder using a predefined system configuration.\n * This is a convenience method for the common case of using predefined configurations.\n * @param builder - The ResourceManagerBuilder containing the resources to bundle\n * @param configName - The name of the predefined system configuration used\n * @param params - Optional parameters for bundle creation\n * @returns Success with the created bundle if successful, Failure with error message otherwise\n * @public\n */\n public static createFromPredefined(\n builder: ResourceManagerBuilder,\n configName: PredefinedSystemConfiguration,\n params?: IBundleCreateParams\n ): Result<IBundle> {\n /* c8 ignore next 1 */\n params = params ?? {};\n const hashNormalizer = params.hashNormalizer ?? new Hash.Crc32Normalizer();\n\n // Determine which builder to use based on normalization setting\n const builderToUse = params.normalize\n ? BundleNormalizer.normalizeFromPredefined(builder, configName)\n : succeed(builder);\n\n return builderToUse.onSuccess((targetBuilder) => {\n return getPredefinedSystemConfiguration(configName).onSuccess((systemConfig) => {\n return systemConfig.getConfig().onSuccess((config) => {\n return targetBuilder.getCompiledResourceCollection().onSuccess((compiledCollection) => {\n return BundleBuilder._generateChecksum(compiledCollection, hashNormalizer).onSuccess(\n (checksum) => {\n /* c8 ignore next 1 - defense in depth */\n const dateBuilt = params.dateBuilt ?? new Date().toISOString();\n\n const metadata: IBundleMetadata = {\n dateBuilt,\n checksum,\n version: params.version,\n /* c8 ignore next 1 - defense in depth */\n description: params?.description\n };\n\n const bundle: IBundle = {\n metadata,\n config,\n compiledCollection\n };\n\n return succeed(bundle);\n }\n );\n });\n });\n });\n });\n }\n\n /**\n * Generates a hash checksum for the compiled resource collection.\n * The checksum is calculated using the provided hash normalizer.\n * @param compiledCollection - The compiled resource collection to generate checksum for\n * @param hashNormalizer - The hash normalizer to use for checksum generation\n * @returns Success with the checksum string if successful, Failure otherwise\n * @internal\n */\n private static _generateChecksum(\n compiledCollection: unknown,\n hashNormalizer: Hash.HashingNormalizer\n ): Result<string> {\n return hashNormalizer.computeHash(compiledCollection);\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundleLoader.d.ts","sourceRoot":"","sources":["../../../src/packlets/bundle/bundleLoader.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,MAAM,EAA8B,IAAI,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAA8B,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAI1E,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;;OAIG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC,iBAAiB,CAAC;CACzC;AAED;;;;GAIG;AACH,qBAAa,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tC,IAAI,gBAAgB,EAAE,CAAC;YACrB,OAAO,IAAA,kBAAO,EAAC,IAAI,CAAC,CAAC;QACvB,CAAC;QAED,OAAO,YAAY,CAAC,iBAAiB,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC,SAAS,CACxF,CAAC,kBAAkB,EAAE,EAAE;YACrB,IAAI,kBAAkB,KAAK,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;gBACpD,OAAO,IAAA,eAAI,EACT,2DAA2D,MAAM,CAAC,QAAQ,CAAC,QAAQ,SAAS,kBAAkB,EAAE,CACjH,CAAC;YACJ,CAAC;YACD,OAAO,IAAA,kBAAO,EAAC,IAAI,CAAC,CAAC;QACvB,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACK,MAAM,CAAC,iBAAiB,CAC9B,kBAA2B,EAC3B,cAAsC;QAEtC,OAAO,cAAc,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACK,MAAM,CAAC,0BAA0B,CAAC,MAAe;QACvD,OAAO,4BAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;;OAOG;IACK,MAAM,CAAC,iCAAiC,CAC9C,MAAe,EACf,cAAqE,EACrE,aAAmE;QAEnE,OAAO,oCAA0B,CAAC,MAAM,CAAC;YACvC,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;YAC7C,cAAc;YACd,aAAa;SACd,CAAC,CAAC;IACL,CAAC;CACF;AAlGD,oCAkGC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { Result, succeed, fail, Collections, Hash } from '@fgv/ts-utils';\nimport { CompiledResourceCollection, IResourceManager } from '../runtime';\nimport { SystemConfiguration } from '../config';\nimport { ResourceType } from '../resource-types';\nimport { QualifierType } from '../qualifier-types';\nimport { IBundle } from './model';\n\n/**\n * Parameters for creating a BundleLoader.\n * @public\n */\nexport interface IBundleLoaderCreateParams {\n /**\n * The bundle to load.\n */\n bundle: IBundle;\n\n /**\n * Whether to skip checksum verification during loading.\n * Default is false - checksum verification is performed.\n */\n skipChecksumVerification?: boolean;\n\n /**\n * Optional hash normalizer for verifying checksums. If not provided,\n * a CRC32 normalizer will be used for browser compatibility.\n * Must match the normalizer used during bundle creation.\n */\n hashNormalizer?: Hash.HashingNormalizer;\n}\n\n/**\n * Loader for creating an IResourceManager from a resource bundle.\n * Handles integrity verification and reconstruction of the runtime resource manager.\n * @public\n */\nexport class BundleLoader {\n /**\n * Creates an IResourceManager from a resource bundle.\n * @param params - Parameters for bundle loading including the bundle and options\n * @returns Success with the IResourceManager if successful, Failure with error message otherwise\n * @public\n */\n public static createManagerFromBundle(params: IBundleLoaderCreateParams): Result<IResourceManager> {\n /* c8 ignore next 1 - defense in depth */\n const hashNormalizer = params.hashNormalizer ?? new Hash.Crc32Normalizer();\n\n return BundleLoader._verifyBundleIntegrity(\n params.bundle,\n params.skipChecksumVerification ?? false,\n hashNormalizer\n ).onSuccess(() => {\n return BundleLoader._createSystemConfiguration(params.bundle).onSuccess((systemConfig) => {\n return BundleLoader._createCompiledResourceCollection(\n params.bundle,\n systemConfig.qualifierTypes,\n systemConfig.resourceTypes\n );\n });\n });\n }\n\n /**\n * Verifies the integrity of a bundle by checking its checksum.\n * @param bundle - The bundle to verify\n * @param skipVerification - Whether to skip verification\n * @param hashNormalizer - The hash normalizer to use for verification\n * @returns Success if verification passes or is skipped, Failure otherwise\n * @internal\n */\n private static _verifyBundleIntegrity(\n bundle: IBundle,\n skipVerification: boolean,\n hashNormalizer: Hash.HashingNormalizer\n ): Result<boolean> {\n if (skipVerification) {\n return succeed(true);\n }\n\n return BundleLoader._generateChecksum(bundle.compiledCollection, hashNormalizer).onSuccess(\n (calculatedChecksum) => {\n if (calculatedChecksum !== bundle.metadata.checksum) {\n return fail(\n `Bundle integrity verification failed: expected checksum ${bundle.metadata.checksum}, got ${calculatedChecksum}`\n );\n }\n return succeed(true);\n }\n );\n }\n\n /**\n * Generates a hash checksum for the compiled resource collection.\n * @param compiledCollection - The compiled resource collection to generate checksum for\n * @param hashNormalizer - The hash normalizer to use for checksum generation\n * @returns Success with the checksum string if successful, Failure otherwise\n * @internal\n */\n private static _generateChecksum(\n compiledCollection: unknown,\n hashNormalizer: Hash.HashingNormalizer\n ): Result<string> {\n return hashNormalizer.computeHash(compiledCollection);\n }\n\n /**\n * Creates a SystemConfiguration from the bundle's configuration.\n * @param bundle - The bundle containing the configuration\n * @returns Success with the SystemConfiguration if successful, Failure otherwise\n * @internal\n */\n private static _createSystemConfiguration(bundle: IBundle): Result<SystemConfiguration> {\n return SystemConfiguration.create(bundle.config);\n }\n\n /**\n * Creates a CompiledResourceCollection from the bundle.\n * @param bundle - The bundle to load\n * @param qualifierTypes - The qualifier type collector from the system configuration\n * @param resourceTypes - The resource type collector from the system configuration\n * @returns Success with the CompiledResourceCollection if successful, Failure otherwise\n * @internal\n */\n private static _createCompiledResourceCollection(\n bundle: IBundle,\n qualifierTypes: Collections.IReadOnlyResultMap<string, QualifierType>,\n resourceTypes: Collections.IReadOnlyResultMap<string, ResourceType>\n ): Result<CompiledResourceCollection> {\n return CompiledResourceCollection.create({\n compiledCollection: bundle.compiledCollection,\n qualifierTypes,\n resourceTypes\n });\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundleNormalizer.d.ts","sourceRoot":"","sources":["../../../src/packlets/bundle/bundleNormalizer.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,MAAM,EAA8B,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAG/E;;;;;;;;GAQG;AACH,qBAAa,gBAAgB;IAC3B;;;;;;;;OAQG;WACW,SAAS,CACrB,eAAe,EAAE,sBAAsB,EACvC,YAAY,EAAE,mBAAmB,GAChC,MAAM,CAAC,sBAAsB,CAAC;IAYjC;;;;;;;OAOG;WACW,uBAAuB,CACnC,eAAe,EAAE,sBAAsB,EACvC,UAAU,EAAE,6BAA6B,GACxC,MAAM,CAAC,sBAAsB,CAAC;IAQjC;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAenC;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAetC;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAkBnC;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,CAAC,uBAAuB;CAQvC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundleNormalizer.js","sourceRoot":"","sources":["../../../src/packlets/bundle/bundleNormalizer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AAEH,4CAAmE;AACnE,4CAAsD;AACtD,4CAAiD;AAE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AAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACnC,MAAM,IAAI,GAAG,SAAS,CAAC,4BAA4B,EAAE,CAAC;YACtD,iBAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QACnE,CAAC;QAED,OAAO,MAAM,CAAC,cAAc,CAAC,IAAA,kBAAO,EAAC,IAAI,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;;;;OAQG;IACK,MAAM,CAAC,uBAAuB,CACpC,eAAuC,EACvC,iBAAyC;QAEzC,OAAO,gBAAgB,CAAC,oBAAoB,CAAC,eAAe,EAAE,iBAAiB,CAAC;aAC7E,SAAS,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;aAC7F,SAAS,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAChG,CAAC;CACF;AAvID,4CAuIC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { Result, succeed, MessageAggregator } from '@fgv/ts-utils';\nimport { ResourceManagerBuilder } from '../resources';\nimport { ResourceCandidate } from '../resources';\nimport { SystemConfiguration, PredefinedSystemConfiguration } from '../config';\nimport { Condition, ConditionSet } from '../conditions';\n\n/**\n * Normalizes ResourceManagerBuilder instances to ensure consistent ordering\n * of internal entities, enabling order-independent bundle checksums.\n *\n * The normalization process rebuilds the ResourceManagerBuilder from the ground up\n * in a canonical order to ensure identical index assignments regardless of\n * original construction order.\n * @public\n */\nexport class BundleNormalizer {\n /**\n * Creates a normalized ResourceManagerBuilder from an existing builder.\n * The normalized builder will have identical entities but arranged in\n * canonical order to ensure consistent index assignments.\n *\n * @param originalBuilder - The ResourceManagerBuilder to normalize\n * @param systemConfig - The SystemConfiguration used to create the original builder\n * @returns Success with the normalized ResourceManagerBuilder if successful, Failure otherwise\n */\n public static normalize(\n originalBuilder: ResourceManagerBuilder,\n systemConfig: SystemConfiguration\n ): Result<ResourceManagerBuilder> {\n // Create a fresh builder using the same system configuration\n return ResourceManagerBuilder.create({\n qualifiers: systemConfig.qualifiers,\n resourceTypes: systemConfig.resourceTypes\n }).onSuccess((normalizedBuilder) => {\n return BundleNormalizer._addNormalizedResources(originalBuilder, normalizedBuilder).onSuccess(() =>\n succeed(normalizedBuilder)\n );\n });\n }\n\n /**\n * Creates a normalized ResourceManagerBuilder using a predefined system configuration.\n * This is a convenience method for the common case of using predefined configurations.\n *\n * @param originalBuilder - The ResourceManagerBuilder to normalize\n * @param configName - The name of the predefined system configuration used\n * @returns Success with the normalized ResourceManagerBuilder if successful, Failure otherwise\n */\n public static normalizeFromPredefined(\n originalBuilder: ResourceManagerBuilder,\n configName: PredefinedSystemConfiguration\n ): Result<ResourceManagerBuilder> {\n return ResourceManagerBuilder.createPredefined(configName).onSuccess((normalizedBuilder) => {\n return BundleNormalizer._addNormalizedResources(originalBuilder, normalizedBuilder).onSuccess(() =>\n succeed(normalizedBuilder)\n );\n });\n }\n\n /**\n * Normalizes all conditions from the original builder by adding them to the\n * normalized builder in sorted order using loose condition declarations.\n *\n * @param originalBuilder - The source ResourceManagerBuilder\n * @param normalizedBuilder - The target normalized ResourceManagerBuilder\n * @returns Success if all conditions were normalized successfully, Failure otherwise\n * @internal\n */\n private static _normalizeConditions(\n originalBuilder: ResourceManagerBuilder,\n normalizedBuilder: ResourceManagerBuilder\n ): Result<boolean> {\n const conditions = Array.from(originalBuilder.conditions.values()).sort(Condition.compare);\n\n const errors = new MessageAggregator();\n for (const condition of conditions) {\n const looseDecl = condition.toLooseConditionDecl();\n normalizedBuilder.addCondition(looseDecl).aggregateError(errors);\n }\n\n return errors.returnOrReport(succeed(true));\n }\n\n /**\n * Normalizes all condition sets from the original builder by adding them to the\n * normalized builder in sorted order using loose condition set declarations.\n *\n * @param originalBuilder - The source ResourceManagerBuilder\n * @param normalizedBuilder - The target normalized ResourceManagerBuilder\n * @returns Success if all condition sets were normalized successfully, Failure otherwise\n * @internal\n */\n private static _normalizeConditionSets(\n originalBuilder: ResourceManagerBuilder,\n normalizedBuilder: ResourceManagerBuilder\n ): Result<boolean> {\n const conditionSets = Array.from(originalBuilder.conditionSets.values()).sort(ConditionSet.compare);\n\n const errors = new MessageAggregator();\n for (const conditionSet of conditionSets) {\n const conditions = conditionSet.toConditionSetArrayDecl();\n normalizedBuilder.addConditionSet(conditions).aggregateError(errors);\n }\n\n return errors.returnOrReport(succeed(true));\n }\n\n /**\n * Normalizes all candidates by sorting them first by resource ID, then by condition set.\n *\n * @param originalBuilder - The source ResourceManagerBuilder\n * @param normalizedBuilder - The target normalized ResourceManagerBuilder\n * @returns Success if all candidates were normalized successfully, Failure otherwise\n * @internal\n */\n private static _normalizeCandidates(\n originalBuilder: ResourceManagerBuilder,\n normalizedBuilder: ResourceManagerBuilder\n ): Result<boolean> {\n const candidates = Array.from(originalBuilder.getAllCandidates()).sort((c1, c2) => {\n const idCompare = c1.id.localeCompare(c2.id);\n return idCompare !== 0 ? idCompare : ResourceCandidate.compare(c1, c2);\n });\n\n const errors = new MessageAggregator();\n for (const candidate of candidates) {\n const decl = candidate.toLooseResourceCandidateDecl();\n normalizedBuilder.addLooseCandidate(decl).aggregateError(errors);\n }\n\n return errors.returnOrReport(succeed(true));\n }\n\n /**\n * Adds normalized resources to the target builder by first normalizing conditions,\n * then condition sets, then candidates.\n *\n * @param originalBuilder - The source ResourceManagerBuilder\n * @param normalizedBuilder - The target normalized ResourceManagerBuilder\n * @returns Success if all resources were added successfully, Failure otherwise\n * @internal\n */\n private static _addNormalizedResources(\n originalBuilder: ResourceManagerBuilder,\n normalizedBuilder: ResourceManagerBuilder\n ): Result<boolean> {\n return BundleNormalizer._normalizeConditions(originalBuilder, normalizedBuilder)\n .onSuccess(() => BundleNormalizer._normalizeConditionSets(originalBuilder, normalizedBuilder))\n .onSuccess(() => BundleNormalizer._normalizeCandidates(originalBuilder, normalizedBuilder));\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundleUtils.d.ts","sourceRoot":"","sources":["../../../src/packlets/bundle/bundleUtils.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,MAAM,EAAiB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,mBAAmB,EAAE,mBAAmB,CAAC;IAEzC;;OAEG;IACH,kBAAkB,EAAE,oBAAoB,CAAC,2BAA2B,CAAC;IAErE;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED;;;;GAIG;AACH,qBAAa,WAAW;IACtB;;;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QAAQ,CAAC,OAAO,CAAC,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AAvFD,kCAuFC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { Result, succeed, fail } from '@fgv/ts-utils';\nimport { SystemConfiguration } from '../config';\nimport { Compiled as ResourceJsonCompiled } from '../resource-json';\nimport { IBundleMetadata } from './model';\nimport { bundle as bundleConverter } from './convert';\n\n/**\n * Components extracted from a bundle for reuse in different contexts.\n * @public\n */\nexport interface IBundleComponents {\n /**\n * The system configuration from the bundle.\n */\n systemConfiguration: SystemConfiguration;\n\n /**\n * The compiled resource collection from the bundle.\n */\n compiledCollection: ResourceJsonCompiled.ICompiledResourceCollection;\n\n /**\n * The bundle metadata including build information.\n */\n metadata: IBundleMetadata;\n}\n\n/**\n * Utility functions for working with resource bundles.\n * Provides reusable logic for bundle detection, parsing, and component extraction.\n * @public\n */\nexport class BundleUtils {\n /**\n * Checks if the given object appears to be a bundle file by examining its structure.\n * This is a lightweight check that doesn't perform full validation.\n * @param data - The data to check\n * @returns True if the data appears to be a bundle structure\n * @public\n */\n public static isBundleFile(data: unknown): boolean {\n return bundleConverter.convert(data).isSuccess();\n }\n\n /**\n * Extracts and validates components from a bundle for reuse.\n * Performs full validation of the bundle structure and creates typed components.\n * @param bundleData - The raw bundle data to extract components from\n * @returns Success with bundle components if valid, Failure with error message otherwise\n * @public\n */\n public static extractBundleComponents(bundleData: unknown): Result<IBundleComponents> {\n return bundleConverter\n .convert(bundleData)\n .withErrorFormat((err) => `Invalid bundle structure: ${err}`)\n .onSuccess((bundle) => {\n return SystemConfiguration.create(bundle.config)\n .withErrorFormat((err) => `Invalid system configuration in bundle: ${err}`)\n .onSuccess((systemConfiguration) => {\n return succeed({\n systemConfiguration,\n compiledCollection: bundle.compiledCollection,\n metadata: bundle.metadata\n });\n });\n });\n }\n\n /**\n * Extracts just the metadata from potential bundle data without full validation.\n * Useful for displaying bundle information without processing the entire bundle.\n * @param data - The data to extract metadata from\n * @returns Success with metadata if found and valid, Failure otherwise\n * @public\n */\n public static extractBundleMetadata(data: unknown): Result<IBundleMetadata> {\n return bundleConverter\n .convert(data)\n .onSuccess((bundle) => {\n return succeed(bundle.metadata);\n })\n .withErrorFormat((err) => {\n return `Not a bundle file: ${err}`;\n });\n }\n\n /**\n * Parses bundle data from a JSON string.\n * Convenience method that combines JSON parsing with bundle component extraction.\n * @param jsonString - The JSON string containing bundle data\n * @returns Success with bundle components if valid, Failure with error message otherwise\n * @public\n */\n public static parseBundleFromJson(jsonString: string): Result<IBundleComponents> {\n try {\n const data = JSON.parse(jsonString);\n return BundleUtils.extractBundleComponents(data);\n } catch (error) {\n /* c8 ignore next 1 - defense in depth */\n return fail(`Failed to parse JSON: ${error instanceof Error ? error.message : String(error)}`);\n }\n }\n\n /**\n * Checks if a file name suggests it might be a bundle file.\n * This is a heuristic check based on file naming conventions.\n * @param fileName - The file name to check\n * @returns True if the file name suggests a bundle file\n * @public\n */\n public static isBundleFileName(fileName: string): boolean {\n const lowerName = fileName.toLowerCase();\n return (\n lowerName.endsWith('.bundle.json') ||\n lowerName.endsWith('-bundle.json') ||\n lowerName.endsWith('_bundle.json') ||\n (lowerName.includes('bundle') && lowerName.endsWith('.json'))\n );\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/packlets/bundle/convert.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,SAAS,EAAc,MAAM,eAAe,CAAC;AAItD,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE/F;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,CAAC,eAAe,CAKpD,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,qBAAqB,CAM9D,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,CAAC,OAAO,CAKpC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAAS,CAAC,mBAAmB,CAK1D,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,CAAC;IACtC,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAIC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert.js","sourceRoot":"","sources":["../../../src/packlets/bundle/convert.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AAEH,4CAAsD;AACtD,oDAAiE;AACjE,sCAAqD;AACrD,oDAAoE;AAGpE;;;GAGG;AACU,QAAA,cAAc,GAA+B,qBAAU,CAAC,YAAY,CAAkB;IACjG,SAAS,EAAE,qBAAU,CAAC,MAAM;IAC5B,QAAQ,EAAE,qBAAU,CAAC,MAAM;IAC3B,OAAO,EAAE,qBAAU,CAAC,MAAM,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,qBAAU,CAAC,MAAM,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,oBAAoB,GAC/B,qBAAU,CAAC,YAAY,CAAwB;IAC7C,UAAU,EAAE,qBAAU,CAAC,MAAM;IAC7B,YAAY,EAAE,qBAAU,CAAC,MAAM;IAC/B,IAAI,EAAE,qBAAU,CAAC,MAAM;IACvB,aAAa,EAAE,yBAAc,CAAC,UAAU,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAEL;;;GAGG;AACU,QAAA,MAAM,GAAuB,qBAAU,CAAC,YAAY,CAAU;IACzE,QAAQ,EAAE,sBAAc;IACxB,MAAM,EAAE,gBAAa,CAAC,mBAAmB;IACzC,kBAAkB,EAAE,wBAAoB,CAAC,OAAO,CAAC,0BAA0B;IAC3E,cAAc,EAAE,4BAAoB,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,kBAAkB,GAC7B,qBAAU,CAAC,YAAY,CAAsB;IAC3C,OAAO,EAAE,qBAAU,CAAC,MAAM,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,qBAAU,CAAC,MAAM,CAAC,QAAQ,EAAE;IACzC,SAAS,EAAE,qBAAU,CAAC,MAAM,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAEL;;;;GAIG;AACU,QAAA,eAAe,GAIvB,qBAAU,CAAC,YAAY,CAAC;IAC3B,QAAQ,EAAE,sBAAc;IACxB,MAAM,EAAE,yBAAc,CAAC,SAAS;IAChC,kBAAkB,EAAE,yBAAc,CAAC,SAAS;CAC7C,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { Converter, Converters } from '@fgv/ts-utils';\nimport { Converters as JsonConverters } from '@fgv/ts-json-base';\nimport { Convert as ConfigConvert } from '../config';\nimport { Compiled as ResourceJsonCompiled } from '../resource-json';\nimport { IBundleMetadata, IBundleExportMetadata, IBundle, IBundleCreateParams } from './model';\n\n/**\n * `Converter` for a {@link Bundle.IBundleMetadata | bundle metadata} object.\n * @public\n */\nexport const bundleMetadata: Converter<IBundleMetadata> = Converters.strictObject<IBundleMetadata>({\n dateBuilt: Converters.string,\n checksum: Converters.string,\n version: Converters.string.optional(),\n description: Converters.string.optional()\n});\n\n/**\n * `Converter` for {@link Bundle.IBundleExportMetadata | bundle export metadata}.\n * @public\n */\nexport const bundleExportMetadata: Converter<IBundleExportMetadata> =\n Converters.strictObject<IBundleExportMetadata>({\n exportedAt: Converters.string,\n exportedFrom: Converters.string,\n type: Converters.string,\n filterContext: JsonConverters.jsonObject.optional()\n });\n\n/**\n * `Converter` for a {@link Bundle.IBundle | bundle} object.\n * @public\n */\nexport const bundle: Converter<IBundle> = Converters.strictObject<IBundle>({\n metadata: bundleMetadata,\n config: ConfigConvert.systemConfiguration,\n compiledCollection: ResourceJsonCompiled.Convert.compiledResourceCollection,\n exportMetadata: bundleExportMetadata.optional()\n});\n\n/**\n * `Converter` for {@link Bundle.IBundleCreateParams | bundle creation parameters}.\n * @public\n */\nexport const bundleCreateParams: Converter<IBundleCreateParams> =\n Converters.strictObject<IBundleCreateParams>({\n version: Converters.string.optional(),\n description: Converters.string.optional(),\n dateBuilt: Converters.string.optional()\n });\n\n/**\n * Lightweight converter for bundle structure validation without full processing.\n * Useful for detecting bundle files without the overhead of full validation.\n * @public\n */\nexport const bundleStructure: Converter<{\n metadata: IBundleMetadata;\n config: unknown;\n compiledCollection: unknown;\n}> = Converters.strictObject({\n metadata: bundleMetadata,\n config: JsonConverters.jsonValue,\n compiledCollection: JsonConverters.jsonValue\n});\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packlets/bundle/index.ts"],"names":[],"mappings":"AAsBA;;;;;;;;GAQG;AAEH,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAGrC,YAAY,EAAE,eAAe,EAAE,qBAAqB,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGpG,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAG1B,gBAAgB;AAChB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/packlets/bundle/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;;;;;;;GAQG;AAEH,+CAAiC;AAexB,sBAAK;AAdd,mDAAqC;AAcrB,0BAAO;AATvB,6BAA6B;AAC7B,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AAGrB,YAAY;AACZ,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAKpB,8CAA8C;AAC9C,gBAAgB;AAChB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n/**\n * Bundle packlet providing functionality for creating and loading resource bundles.\n *\n * Resource bundles encapsulate compiled resources, configuration, and metadata with\n * integrity verification. They provide a portable way to distribute pre-compiled\n * resource collections.\n *\n * @packageDocumentation\n */\n\nimport * as Model from './model';\nimport * as Convert from './convert';\n\n// Model interfaces\nexport type { IBundleMetadata, IBundleExportMetadata, IBundle, IBundleCreateParams } from './model';\n\n// Builder and loader classes\nexport { BundleBuilder } from './bundleBuilder';\nexport { BundleLoader } from './bundleLoader';\nexport type { IBundleLoaderCreateParams } from './bundleLoader';\n\n// Utilities\nexport { BundleUtils } from './bundleUtils';\nexport type { IBundleComponents } from './bundleUtils';\n\nexport { Model, Convert };\n\n// Internal utilities (not part of public API)\n/** @internal */\nexport { BundleNormalizer } from './bundleNormalizer';\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/packlets/bundle/model.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC,oBAAoB,CAAC;IAEzC;;OAEG;IACH,kBAAkB,EAAE,oBAAoB,CAAC,2BAA2B,CAAC;IAErE;;OAEG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAC;CACxC;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC,iBAAiB,CAAC;IAExC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/packlets/bundle/model.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { Hash } from '@fgv/ts-utils';\nimport { Model as ConfigModel } from '../config';\nimport { Compiled as ResourceJsonCompiled } from '../resource-json';\n\n/**\n * Metadata for a resource bundle, including build information and integrity verification.\n * @public\n */\nexport interface IBundleMetadata {\n /**\n * ISO timestamp indicating when the bundle was built.\n */\n dateBuilt: string;\n\n /**\n * SHA-256 checksum of the serialized compiled resource collection for integrity verification.\n */\n checksum: string;\n\n /**\n * Optional version identifier for the bundle.\n */\n version?: string;\n\n /**\n * Optional human-readable description of the bundle.\n */\n description?: string;\n}\n\n/**\n * Optional export metadata for tracking bundle export information.\n * @public\n */\nexport interface IBundleExportMetadata {\n /**\n * ISO timestamp indicating when the bundle was exported.\n */\n exportedAt: string;\n\n /**\n * Tool or application that exported the bundle.\n */\n exportedFrom: string;\n\n /**\n * Type of bundle export (e.g., 'ts-res-bundle', 'ts-res-bundle-filtered').\n */\n type: string;\n\n /**\n * Optional filter context if the bundle represents filtered data.\n */\n filterContext?: Record<string, unknown>;\n}\n\n/**\n * A complete resource bundle that encapsulates built resources, configuration, and metadata.\n * Bundles provide a portable, integrity-verified way to distribute pre-compiled resource collections.\n * @public\n */\nexport interface IBundle {\n /**\n * Metadata about the bundle including build date and integrity checksum.\n */\n metadata: IBundleMetadata;\n\n /**\n * The system configuration that was used to build the resources in this bundle.\n */\n config: ConfigModel.ISystemConfiguration;\n\n /**\n * The compiled resource collection containing all resources, conditions, and decisions.\n */\n compiledCollection: ResourceJsonCompiled.ICompiledResourceCollection;\n\n /**\n * Optional export metadata for tracking when and how the bundle was exported.\n */\n exportMetadata?: IBundleExportMetadata;\n}\n\n/**\n * Optional parameters for bundle creation.\n * @public\n */\nexport interface IBundleCreateParams {\n /**\n * Optional version identifier to include in the bundle metadata.\n */\n version?: string;\n\n /**\n * Optional description to include in the bundle metadata.\n */\n description?: string;\n\n /**\n * Optional custom build date. If not provided, the current date will be used.\n */\n dateBuilt?: string;\n\n /**\n * Optional hash normalizer for generating checksums. If not provided,\n * a CRC32 normalizer will be used for browser compatibility.\n */\n hashNormalizer?: Hash.HashingNormalizer;\n\n /**\n * Whether to normalize the ResourceManagerBuilder before bundle creation.\n * When true, the builder is reconstructed in canonical order to ensure\n * order-independent checksums. Defaults to false for Phase 1 compatibility.\n */\n normalize?: boolean;\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../src/packlets/common/conditions.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAErE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;AAE/E;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAE3E;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,mBAAgD,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,mBAAgD,CAAC;AAE5E;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,iBAA0C,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D;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;AAErF;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG,KAAK,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditions.js","sourceRoot":"","sources":["../../../src/packlets/common/conditions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AA2DH;;;GAGG;AACU,QAAA,OAAO,GAAwB,GAA0B,CAAC;AAEvE;;;GAGG;AACU,QAAA,YAAY,GAAwB,GAA0B,CAAC;AAQ5E;;;GAGG;AACU,QAAA,oBAAoB,GAAsB,CAAsB,CAAC;AAE9E;;;GAGG;AACU,QAAA,oBAAoB,GAAsB,IAAyB,CAAC;AAQjF;;;GAGG;AACU,QAAA,qBAAqB,GAAwB,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { Brand } from '@fgv/ts-utils';\n\n/**\n * Branded string representing a validated qualifier name.\n * @public\n */\nexport type QualifierName = Brand<string, 'QualifierName'>;\n\n/**\n * Branded number representing a validated qualifier index.\n * @public\n */\nexport type QualifierIndex = Brand<number, 'QualifierIndex'>;\n\n/**\n * Branded string representing a validated qualifier type name.\n * @public\n */\nexport type QualifierTypeName = Brand<string, 'QualifierTypeName'>;\n\n/**\n * Branded number representing a validated qualifier type index.\n * @public\n */\nexport type QualifierTypeIndex = Brand<number, 'QualifierTypeIndex'>;\n\n/**\n * Branded type for a validated qualifier condition value - i.e. a value\n * that has been determined to be valid for use in a condition attached\n * to some resource.\n *\n * @example\n * For a language qualifier type, it is likely that a single language\n * tag can be used for either a condition or a context value. However,\n * a list of languages would likely only be valid as a context value.\n * @public\n */\nexport type QualifierConditionValue = Brand<string, 'QualifierConditionValue'>;\n\n/**\n * Branded type for a validated qualifier context value - i.e. a value\n * that has been determined to be valid for use in some runtime context.\n * @example\n * For a language qualifier type, it is likely that a single language\n * tag can be used for either a condition or a context value. However,\n * a list of languages would likely only be valid as a context value.\n * @public\n */\nexport type QualifierContextValue = Brand<string, 'QualifierContextValue'>;\n\n/**\n * Branded number representing a score in the range 0.0 (no match) .. 1.0 (perfect match)\n * which results from evaluating some condition.\n * @public\n */\nexport type QualifierMatchScore = Brand<number, 'QualifierMatchScore'>;\n\n/**\n * {@link QualifierMatchScore | Match score} indicating no match.\n * @public\n */\nexport const NoMatch: QualifierMatchScore = 0.0 as QualifierMatchScore;\n\n/**\n * {@link QualifierMatchScore | Match score} indicating a perfect match.\n * @public\n */\nexport const PerfectMatch: QualifierMatchScore = 1.0 as QualifierMatchScore;\n\n/**\n * Branded number representing a validated condition priority.\n * @public\n */\nexport type ConditionPriority = Brand<number, 'ConditionPriority'>;\n\n/**\n * Minimum valid priority for a condition.\n * @public\n */\nexport const MinConditionPriority: ConditionPriority = 0 as ConditionPriority;\n\n/**\n * Maximum valid priority for a condition.\n * @public\n */\nexport const MaxConditionPriority: ConditionPriority = 1000 as ConditionPriority;\n\n/**\n * Condition operators for use in conditions.\n * @public\n */\nexport type ConditionOperator = 'always' | 'never' | 'matches';\n\n/**\n * Array of all valid condition operators.\n * @public\n */\nexport const allConditionOperators: ConditionOperator[] = ['always', 'never', 'matches'];\n\n/**\n * Branded number representing a validated condition index.\n * @public\n */\nexport type ConditionIndex = Brand<number, 'ConditionIndex'>;\n\n/**\n * A branded string representing a validated condition key. A condition key is a\n * string value which fully describes the condition apart from index. The condition\n * key can be used to quickly determine if two conditions are identical apart from\n * index, or for inspection.\n * @public\n */\nexport type ConditionKey = Brand<string, 'ConditionKey'>;\n\n/**\n * A string representing a validated condition token. Condition tokens are\n * typically extracted from the name of some resource (e.g. file or folder)\n * being imported. A condition token has the form `<qualifierName>=<value>`\n * or `<value>`.\n * @public\n */\nexport type ConditionToken = Brand<string, 'ConditionToken'>;\n\n/**\n * Branded number representing a validated condition set index.\n * @public\n */\nexport type ConditionSetIndex = Brand<number, 'ConditionSetIndex'>;\n\n/**\n * Branded string representing a validated condition set key. A condition set key\n * is a string value which fully describes the condition set apart from index. The\n * condition set key can be used to quickly determine if two condition sets are\n * identical apart from index, or for inspection.\n * @public\n */\nexport type ConditionSetKey = Brand<string, 'ConditionSetKey'>;\n\n/**\n * A string representing a validated condition set token. Condition set tokens are\n * typically extracted from the name of some resource (e.g. file or folder) being\n * imported. A condition set token is a comma-separated list of one or more\n * {@link ConditionToken | condition tokens}, where a condition token has either\n * the form `<qualifierName>=<value>` or `<value>`.\n * @public\n */\nexport type ConditionSetToken = Brand<string, 'ConditionSetToken'>;\n\n/**\n * Branded string representing a hash value for a condition set. The hash value\n * is an 8-character string derived from the crc32 hash of the condition set key\n * and is used to quickly and compactly identify a condition set or compare for\n * equality.\n * @public\n */\nexport type ConditionSetHash = Brand<string, 'ConditionSetHash'>;\n\n/**\n * Branded string representing a validated decision key. A decision key is a string\n * value which fully describes the decision apart from index. The decision key can\n * be used to quickly determine if two decisions are identical apart from index.\n * @public\n */\nexport type DecisionKey = Brand<string, 'DecisionKey'>;\n\n/**\n * Branded number representing a validated decision index.\n * @public\n */\nexport type DecisionIndex = Brand<number, 'DecisionIndex'>;\n\n/**\n * A string representing a validated context qualifier token. Context qualifier tokens are used\n * for filtering resources by context criteria. A context qualifier token has the form\n * `<qualifierName>=<value>` or `<value>`.\n * @public\n */\nexport type ContextQualifierToken = Brand<string, 'ContextQualifierToken'>;\n\n/**\n * A string representing a validated context token. Context tokens are\n * pipe-separated lists of one or more context qualifier tokens. Uses \"|\" as separator\n * to avoid conflicts with comma-separated values within context values.\n * Example: \"language=en-US,de-DE|territory=US|role=admin\"\n * @public\n */\nexport type ContextToken = Brand<string, 'ContextToken'>;\n\n/**\n * A string representing a single qualifier default value assignment.\n * Format: \"qualifierName=defaultValue\" or \"qualifierName=\" (to remove default)\n * Example: \"language=en-US,en-CA\" or \"territory=US\"\n * @public\n */\nexport type QualifierDefaultValueToken = Brand<string, 'QualifierDefaultValueToken'>;\n\n/**\n * A string representing a validated qualifier default values token. Default value tokens are\n * pipe-separated lists of one or more qualifier default value tokens. Uses \"|\" as separator\n * to avoid conflicts with comma-separated values within default values.\n * Example: \"language=en-US,en-CA|territory=US|device=desktop,tablet\"\n * @public\n */\nexport type QualifierDefaultValuesToken = Brand<string, 'QualifierDefaultValuesToken'>;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/packlets/common/convert.ts"],"names":[],"mappings":"AA6BA;;;GAGG;AACH,eAAO,MAAM,aAAa,kFAAkD,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,cAAc,mFAAmD,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sFAAsD,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uFAAuD,CAAC;AAEvF;;;G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,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AAE7E;;;GAGG;AACU,QAAA,gBAAgB,GAAG,qBAAU,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAG,qBAAU,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAErF;;;GAGG;AACU,QAAA,iBAAiB,GAAG,qBAAU,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAErF;;;GAGG;AACU,QAAA,mBAAmB,GAAG,qBAAU,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAEzF;;;GAGG;AACU,QAAA,wBAAwB,GAAG,qBAAU,CAAC,eAAe,CAAC,wCAA4B,CAAC,CAAC;AAEjG;;;GAGG;AACU,QAAA,qBAAqB,GAAG,qBAAU,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;AAE7F;;;GAGG;AACU,QAAA,YAAY,GAAG,qBAAU,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;AAE3E;;;GAGG;AACU,QAAA,0BAA0B,GAAG,qBAAU,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC;AAEvG;;;GAGG;AACU,QAAA,2BAA2B,GAAG,qBAAU,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,6BAA6B,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { Converters } from '@fgv/ts-utils';\nimport * as Validate from './validate';\nimport { allConditionOperators } from './conditions';\nimport { allResourceValueMergeMethods } from './resources';\n\n/* eslint-disable @rushstack/typedef-var */\n\n/**\n * `Converter` which validates an `unknown` value as a {@link QualifierName | QualifierName}.\n * @public\n */\nexport const qualifierName = Converters.string.map(Validate.toQualifierName);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link QualifierIndex | QualifierIndex}.\n * @public\n */\nexport const qualifierIndex = Converters.number.map(Validate.toQualifierIndex);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link QualifierTypeName | QualifierTypeName}.\n * @public\n */\nexport const qualifierTypeName = Converters.string.map(Validate.toQualifierTypeName);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link QualifierTypeIndex | QualifierTypeIndex}.\n * @public\n */\nexport const qualifierTypeIndex = Converters.number.map(Validate.toQualifierTypeIndex);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link QualifierContextValue | QualifierContextValue}.\n * @public\n */\nexport const qualifierContextValue = Converters.string.map(Validate.toQualifierContextValue);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link QualifierConditionValue | QualifierConditionValue}.\n * @public\n */\nexport const qualifierMatchScore = Converters.number.map(Validate.toQualifierMatchScore);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ConditionPriority | ConditionPriority}.\n * @public\n */\nexport const conditionPriority = Converters.number.map(Validate.toConditionPriority);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ConditionOperator | ConditionOperator}.\n * @public\n */\nexport const conditionOperator = Converters.enumeratedValue(allConditionOperators);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ConditionIndex | ConditionIndex}.\n * @public\n */\nexport const conditionIndex = Converters.number.map(Validate.toConditionIndex);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ConditionKey | ConditionKey}.\n * @public\n */\nexport const conditionKey = Converters.string.map(Validate.toConditionKey);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ConditionToken | ConditionToken}.\n * @public\n */\nexport const conditionToken = Converters.string.map(Validate.toConditionToken);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ConditionSetIndex | ConditionSetIndex}.\n * @public\n */\nexport const conditionSetIndex = Converters.number.map(Validate.toConditionSetIndex);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ConditionSetKey | ConditionSetKey}.\n * @public\n */\nexport const conditionSetKey = Converters.string.map(Validate.toConditionSetKey);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ConditionSetToken | ConditionSetToken}.\n * @public\n */\nexport const conditionSetToken = Converters.string.map(Validate.toConditionSetToken);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ConditionSetHash | ConditionSetHash}.\n * @public\n */\nexport const conditionSetHash = Converters.string.map(Validate.toConditionSetHash);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link DecisionIndex | DecisionIndex}.\n * @public\n */\nexport const decisionIndex = Converters.number.map(Validate.toDecisionIndex);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link DecisionKey | DecisionKey}.\n * @public\n */\nexport const decisionKey = Converters.string.map(Validate.toDecisionKey);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ResourceId | ResourceId}.\n * @public\n */\nexport const resourceId = Converters.string.map(Validate.toResourceId);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ResourceName | ResourceName}.\n * @public\n */\nexport const resourceName = Converters.string.map(Validate.toResourceName);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ResourceIndex | ResourceIndex}.\n * @public\n */\nexport const resourceIndex = Converters.number.map(Validate.toResourceIndex);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ResourceTypeName | ResourceTypeName}.\n * @public\n */\nexport const resourceTypeName = Converters.string.map(Validate.toResourceTypeName);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ResourceTypeIndex | ResourceTypeIndex}.\n * @public\n */\nexport const resourceTypeIndex = Converters.number.map(Validate.toResourceTypeIndex);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link CandidateValueKey | CandidateValueKey}.\n * @public\n */\nexport const candidateValueKey = Converters.string.map(Validate.toCandidateValueKey);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link CandidateValueIndex | CandidateValueIndex}.\n * @public\n */\nexport const candidateValueIndex = Converters.number.map(Validate.toCandidateValueIndex);\n\n/**\n * `Converter` for a resource value merge method.\n * @public\n */\nexport const resourceValueMergeMethod = Converters.enumeratedValue(allResourceValueMergeMethods);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ContextQualifierToken | ContextQualifierToken}.\n * @public\n */\nexport const contextQualifierToken = Converters.string.map(Validate.toContextQualifierToken);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link ContextToken | ContextToken}.\n * @public\n */\nexport const contextToken = Converters.string.map(Validate.toContextToken);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link QualifierDefaultValueToken | QualifierDefaultValueToken}.\n * @public\n */\nexport const qualifierDefaultValueToken = Converters.string.map(Validate.toQualifierDefaultValueToken);\n\n/**\n * `Converter` which validates an `unknown` value as a {@link QualifierDefaultValuesToken | QualifierDefaultValuesToken}.\n * @public\n */\nexport const qualifierDefaultValuesToken = Converters.string.map(Validate.toQualifierDefaultValuesToken);\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../../src/packlets/common/helpers/conditions.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAc,MAAM,EAAW,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,MAAM,CAAC,cAAc,CAAC,CAEtG;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,aAAa,CAAC,oBAAoB,CAAC,GACzC,MAAM,CAAC,iBAAiB,CAAC,CAI3B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAQpF;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,oBAAoB,EAAE,CAAC,CAEzF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditions.js","sourceRoot":"","sources":["../../../../src/packlets/common/helpers/conditions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBH,kDAEC;AAQD,wDAMC;AAQD,4DAQC;AAQD,kEAEC;AA7DD,4CAA4D;AAC5D,sDAAwC;AAYxC;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAwB;IAC5E,OAAO,QAAQ,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAChF,CAAC;AAED;;;;;GAKG;AACH,SAAgB,sBAAsB,CACpC,KAA0C;IAE1C,OAAO,IAAA,qBAAU,EAAC,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE,CACrE,QAAQ,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAC/C,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IACpD,OAAO,QAAQ,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;QACtD,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvB,OAAO,IAAA,kBAAO,EAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,IAAA,kBAAO,EAAC,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACvD,OAAO,IAAA,qBAAU,EAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC,CAAC;AACpE,CAAC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { mapResults, Result, succeed } from '@fgv/ts-utils';\nimport * as Validate from '../validate';\nimport { ConditionSetToken, ConditionToken } from '../conditions';\n\n/**\n * The values needed to create a {@link ConditionToken | condition token}.\n * @public\n */\nexport interface IConditionTokenParts {\n qualifier?: string;\n value: string;\n}\n\n/**\n * Converts a {@link Helpers.IConditionTokenParts | the parts that make up a condition token} into\n * a syntactically validated {@link ConditionToken | condition token}.\n * @param parts - the parts to convert\n * @public\n */\nexport function buildConditionToken({ qualifier, value }: IConditionTokenParts): Result<ConditionToken> {\n return Validate.toConditionToken(qualifier ? `${qualifier}=${value}` : value);\n}\n\n/**\n * Converts an array of {@link Helpers.IConditionTokenParts | condition token parts} into an array of\n * syntactically validated {@link ConditionToken | condition tokens}.\n * @param parts - the parts to convert\n * @public\n */\nexport function buildConditionSetToken(\n parts: ReadonlyArray<IConditionTokenParts>\n): Result<ConditionSetToken> {\n return mapResults(parts.map(buildConditionToken)).onSuccess((tokens) =>\n Validate.toConditionSetToken(tokens.join(','))\n );\n}\n\n/**\n * Parses a condition token string into its {@link Helpers.IConditionTokenParts | parts}.\n * @param token - the token string to parse.\n * @returns `Success` with the parts if successful, `Failure` with an error message if not.\n * @public\n */\nexport function parseConditionTokenParts(token: string): Result<IConditionTokenParts> {\n return Validate.toConditionToken(token).onSuccess((t) => {\n const parts = t.split('=');\n if (parts.length === 1) {\n return succeed({ value: parts[0] });\n }\n return succeed({ qualifier: parts[0], value: parts[1] });\n });\n}\n\n/**\n * Parses a condition set token string into an array of {@link Helpers.IConditionTokenParts | condition token parts}.\n * @param token - the conditions set token string to parse.\n * @returns `Success` with the parts if successful, `Failure` with an error message if not.\n * @public\n */\nexport function parseConditionSetTokenParts(token: string): Result<IConditionTokenParts[]> {\n return mapResults(token.split(',').map(parseConditionTokenParts));\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/packlets/common/helpers/context.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAc,MAAM,EAAW,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,SAAS,EACT,KAAK,EACN,EAAE,kBAAkB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAGpD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC,CAIhG;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAQzF;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAKlF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/packlets/common/helpers/context.ts"],"names":[],"mapp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B,CAAC,KAAa;IAClD,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;QACjB,OAAO,IAAA,kBAAO,EAAC,EAAE,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,IAAA,qBAAU,EAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,+BAA+B,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAClG,CAAC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { mapResults, Result, succeed } from '@fgv/ts-utils';\nimport * as Validate from '../validate';\nimport { ContextToken, ContextQualifierToken } from '../conditions';\n\n/**\n * The values needed to create a {@link ContextQualifierToken | context qualifier token}.\n * @public\n */\nexport interface IContextTokenParts {\n qualifier?: string;\n value: string;\n}\n\n/**\n * Converts a {@link Helpers.IContextTokenParts | the parts that make up a context qualifier token} into\n * a syntactically validated {@link ContextQualifierToken | context qualifier token}.\n * @param parts - the parts to convert\n * @public\n */\nexport function buildContextQualifierToken({\n qualifier,\n value\n}: IContextTokenParts): Result<ContextQualifierToken> {\n /* c8 ignore next 1 - edge case: ternary expression alternate branch rarely hit */\n return Validate.toContextQualifierToken(qualifier ? `${qualifier}=${value}` : value);\n}\n\n/**\n * Converts an array of {@link Helpers.IContextTokenParts | context qualifier token parts} into a\n * syntactically validated {@link ContextToken | context token}.\n * @param parts - the parts to convert\n * @public\n */\nexport function buildContextToken(parts: ReadonlyArray<IContextTokenParts>): Result<ContextToken> {\n return mapResults(parts.map(buildContextQualifierToken)).onSuccess((tokens) =>\n Validate.toContextToken(tokens.join('|'))\n );\n}\n\n/**\n * Parses a context qualifier token string into its {@link Helpers.IContextTokenParts | parts}.\n * @param token - the token string to parse.\n * @returns `Success` with the parts if successful, `Failure` with an error message if not.\n * @public\n */\nexport function parseContextQualifierTokenParts(token: string): Result<IContextTokenParts> {\n return Validate.toContextQualifierToken(token).onSuccess((t) => {\n const parts = t.split('=');\n if (parts.length === 1) {\n return succeed({ value: parts[0] });\n }\n return succeed({ qualifier: parts[0], value: parts[1] });\n });\n}\n\n/**\n * Parses a context token string into an array of {@link Helpers.IContextTokenParts | context qualifier token parts}.\n * @param token - the context token string to parse.\n * @returns `Success` with the parts if successful, `Failure` with an error message if not.\n * @public\n */\nexport function parseContextTokenParts(token: string): Result<IContextTokenParts[]> {\n if (token === '') {\n return succeed([]);\n }\n return mapResults(token.split('|').map((part) => parseContextQualifierTokenParts(part.trim())));\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packlets/common/helpers/index.ts"],"names":[],"mappings":"AAsBA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/packlets/common/helpers/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,4CAA0B;AAC1B,2DAAyC;AACzC,8CAA4B","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nexport * from './conditions';\nexport * from './context';\nexport * from './qualifierDefaultValues';\nexport * from './resources';\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qualifierDefaultValues.d.ts","sourceRoot":"","sources":["../../../../src/packlets/common/helpers/qualifierDefaultValues.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAc,MAAM,EAAW,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAExF;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,EAC9C,SAAS,EACT,KAAK,EACN,EAAE,gCAAgC,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,aAAa,CAAC,gCAAgC,CAAC,GACrD,MAAM,CAAC,2BAA2B,CAAC,CAIrC;AAED;;;;;GAKG;AACH,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,MAAM,GACZ,MAAM,CAAC,gCAAgC,CAAC,CAK1C;AAED;;;;;GAKG;AACH,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,MAAM,GACZ,MAAM,CAAC,gCAAgC,EAAE,CAAC,CAK5C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qualifierDefaultValues.js","sourceRoot":"","sources":["../../../../src/packlets/common/helpers/qualifierDefaultValues.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBH,0EAKC;AAQD,4EAMC;AAQD,oFAOC;AAQD,sFAOC;AApED,4CAA4D;AAC5D,sDAAwC;AAYxC;;;;;GAKG;AACH,SAAgB,+BAA+B,CAAC,EAC9C,SAAS,EACT,KAAK,EAC4B;IACjC,OAAO,QAAQ,CAAC,4BAA4B,CAAC,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,CAAC;AACxE,CAAC;AAED;;;;;GAKG;AACH,SAAgB,gCAAgC,CAC9C,KAAsD;IAEtD,OAAO,IAAA,qBAAU,EAAC,KAAK,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE,CACjF,QAAQ,CAAC,6BAA6B,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CACzD,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAgB,oCAAoC,CAClD,KAAa;IAEb,OAAO,QAAQ,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;QAClE,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxC,OAAO,IAAA,kBAAO,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,SAAgB,qCAAqC,CACnD,KAAa;IAEb,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;QACjB,OAAO,IAAA,kBAAO,EAAC,EAAE,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,IAAA,qBAAU,EAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,oCAAoC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACvG,CAAC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { mapResults, Result, succeed } from '@fgv/ts-utils';\nimport * as Validate from '../validate';\nimport { QualifierDefaultValueToken, QualifierDefaultValuesToken } from '../conditions';\n\n/**\n * The values needed to create a {@link QualifierDefaultValueToken | qualifier default value token}.\n * @public\n */\nexport interface IQualifierDefaultValueTokenParts {\n qualifier: string;\n value: string;\n}\n\n/**\n * Converts a {@link Helpers.IQualifierDefaultValueTokenParts | the parts that make up a qualifier default value token} into\n * a syntactically validated {@link QualifierDefaultValueToken | qualifier default value token}.\n * @param parts - the parts to convert\n * @public\n */\nexport function buildQualifierDefaultValueToken({\n qualifier,\n value\n}: IQualifierDefaultValueTokenParts): Result<QualifierDefaultValueToken> {\n return Validate.toQualifierDefaultValueToken(`${qualifier}=${value}`);\n}\n\n/**\n * Converts an array of {@link Helpers.IQualifierDefaultValueTokenParts | qualifier default value token parts} into a\n * syntactically validated {@link QualifierDefaultValuesToken | qualifier default values token}.\n * @param parts - the parts to convert\n * @public\n */\nexport function buildQualifierDefaultValuesToken(\n parts: ReadonlyArray<IQualifierDefaultValueTokenParts>\n): Result<QualifierDefaultValuesToken> {\n return mapResults(parts.map(buildQualifierDefaultValueToken)).onSuccess((tokens) =>\n Validate.toQualifierDefaultValuesToken(tokens.join('|'))\n );\n}\n\n/**\n * Parses a qualifier default value token string into its {@link Helpers.IQualifierDefaultValueTokenParts | parts}.\n * @param token - the token string to parse.\n * @returns `Success` with the parts if successful, `Failure` with an error message if not.\n * @public\n */\nexport function parseQualifierDefaultValueTokenParts(\n token: string\n): Result<IQualifierDefaultValueTokenParts> {\n return Validate.toQualifierDefaultValueToken(token).onSuccess((t) => {\n const [qualifier, value] = t.split('=');\n return succeed({ qualifier, value });\n });\n}\n\n/**\n * Parses a qualifier default values token string into an array of {@link Helpers.IQualifierDefaultValueTokenParts | qualifier default value token parts}.\n * @param token - the qualifier default values token string to parse.\n * @returns `Success` with the parts if successful, `Failure` with an error message if not.\n * @public\n */\nexport function parseQualifierDefaultValuesTokenParts(\n token: string\n): Result<IQualifierDefaultValueTokenParts[]> {\n if (token === '') {\n return succeed([]);\n }\n return mapResults(token.split('|').map((part) => parseQualifierDefaultValueTokenParts(part.trim())));\n}\n"]}
@@ -13,8 +13,7 @@ export declare function splitResourceId(id: string | undefined): Result<Resource
13
13
  * Joins a list of {@link ResourceId | resource ID} or {@link ResourceName | resource name} with
14
14
  * to create a new {@link ResourceId | resource ID}. Fails if resulting ID is invalid or empty.
15
15
  *
16
- * @param base - The base name or ID to join.
17
- * @param names - Additional names to join.
16
+ * @param ids - The names or IDs to join.
18
17
  * @returns `Success` with the new ID if the base and names are valid, or `Failure` with an error message
19
18
  * if not.
20
19
  * @public
@@ -24,8 +23,7 @@ export declare function joinResourceIds(...ids: (string | undefined)[]): Result<
24
23
  * Joins a list of {@link ResourceId | resource ID} or {@link ResourceName | resource name} with
25
24
  * to create a new {@link ResourceId | resource ID}. Returns `undefined` if no names are defined.
26
25
  *
27
- * @param base - The base name or ID to join.
28
- * @param names - Additional names to join.
26
+ * @param ids - The names or IDs to join.
29
27
  * @returns `Success` with the new ID if the base and names are valid, `Success` with `undefined`
30
28
  * if names were present, or `Failure` with an error message if the resulting id is invalid.
31
29
  * @public
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../../src/packlets/common/helpers/resources.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAqB,MAAM,EAAuB,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAGxD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC,CAM9E;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,GAAG,GAAG,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,CAUlF;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,GAAG,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC,CAUtG;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC,CAKjF"}
@@ -46,8 +46,7 @@ function splitResourceId(id) {
46
46
  * Joins a list of {@link ResourceId | resource ID} or {@link ResourceName | resource name} with
47
47
  * to create a new {@link ResourceId | resource ID}. Fails if resulting ID is invalid or empty.
48
48
  *
49
- * @param base - The base name or ID to join.
50
- * @param names - Additional names to join.
49
+ * @param ids - The names or IDs to join.
51
50
  * @returns `Success` with the new ID if the base and names are valid, or `Failure` with an error message
52
51
  * if not.
53
52
  * @public
@@ -67,8 +66,7 @@ function joinResourceIds(...ids) {
67
66
  * Joins a list of {@link ResourceId | resource ID} or {@link ResourceName | resource name} with
68
67
  * to create a new {@link ResourceId | resource ID}. Returns `undefined` if no names are defined.
69
68
  *
70
- * @param base - The base name or ID to join.
71
- * @param names - Additional names to join.
69
+ * @param ids - The names or IDs to join.
72
70
  * @returns `Success` with the new ID if the base and names are valid, `Success` with `undefined`
73
71
  * if names were present, or `Failure` with an error message if the resulting id is invalid.
74
72
  * @public
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../../src/packlets/common/helpers/resources.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;AAcH,0CAMC;AAWD,0CAUC;AAWD,0DAUC;AAQD,oDAKC;AAzED,4CAA+E;AAE/E,qDAAqE;AAErE;;;;;;;GAOG;AACH,SAAgB,eAAe,CAAC,EAAsB;IACpD,8FAA8F;IAC9F,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC;QACrB,OAAO,IA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,GAAG,CAAC,CAAC;IAC3B,OAAO,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,IAAA,wBAAY,EAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAO,EAAC,SAAS,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAC,EAAsB;IACzD,OAAO,eAAe,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;QAC7C,0DAA0D;QAC1D,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAO,EAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;IAClG,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { MessageAggregator, Result, mapResults, succeed } from '@fgv/ts-utils';\nimport { ResourceId, ResourceName } from '../resources';\nimport { toResourceId, toResourceName } from '../validate/resources';\n\n/**\n * Splits a {@link ResourceId | resource id} into its component {@link ResourceName | resource names}.\n *\n * @param id - The ID to split.\n * @returns `Success`with an array of {@link ResourceName | ResourceName} objects if the ID is valid, or\n * `Failure` with an error message if not.\n * @public\n */\nexport function splitResourceId(id: string | undefined): Result<ResourceName[]> {\n /* c8 ignore next 3 - edge case: undefined resource ID should not occur in normal operation */\n if (id === undefined) {\n return succeed([]);\n }\n return mapResults(id.split('.').map(toResourceName));\n}\n\n/**\n * Joins a list of {@link ResourceId | resource ID} or {@link ResourceName | resource name} with\n * to create a new {@link ResourceId | resource ID}. Fails if resulting ID is invalid or empty.\n *\n * @param ids - The names or IDs to join.\n * @returns `Success` with the new ID if the base and names are valid, or `Failure` with an error message\n * if not.\n * @public\n */\nexport function joinResourceIds(...ids: (string | undefined)[]): Result<ResourceId> {\n const errors: MessageAggregator = new MessageAggregator();\n const parts: ResourceName[] = [];\n ids\n .filter((id) => id !== '')\n .forEach((id) => {\n parts.push(...splitResourceId(id).aggregateError(errors).orDefault([]));\n });\n const id = parts.join('.');\n return errors.returnOrReport(toResourceId(id));\n}\n\n/**\n * Joins a list of {@link ResourceId | resource ID} or {@link ResourceName | resource name} with\n * to create a new {@link ResourceId | resource ID}. Returns `undefined` if no names are defined.\n *\n * @param ids - The names or IDs to join.\n * @returns `Success` with the new ID if the base and names are valid, `Success` with `undefined`\n * if names were present, or `Failure` with an error message if the resulting id is invalid.\n * @public\n */\nexport function joinOptionalResourceIds(...ids: (string | undefined)[]): Result<ResourceId | undefined> {\n const errors: MessageAggregator = new MessageAggregator();\n const parts: ResourceName[] = [];\n ids\n .filter((id) => id !== '')\n .forEach((id) => {\n parts.push(...splitResourceId(id).aggregateError(errors).orDefault([]));\n });\n const id = parts.join('.');\n return errors.returnOrReport(id ? toResourceId(id) : succeed(undefined));\n}\n\n/**\n * Gets the name for a resource ID.\n * @param id - The resource ID to get the name for.\n * @returns `Success` with the resource name if found, or `Failure` with an error message if not.\n * @public\n */\nexport function getNameForResourceId(id: string | undefined): Result<ResourceName> {\n return splitResourceId(id).onSuccess((parts) => {\n /* c8 ignore next 1 - tested but coverage having issues */\n return parts.length > 0 ? succeed(parts[parts.length - 1]) : fail(`${id}: invalid resource id`);\n });\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packlets/common/index.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AAEvC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAE5B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/packlets/common/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,mDAAqC;AAO5B,0BAAO;AANhB,mDAAqC;AAMnB,0BAAO;AALzB,qDAAuC;AAKZ,4BAAQ;AAHnC,+CAA6B;AAC7B,8CAA4B","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport * as Convert from './convert';\nimport * as Helpers from './helpers';\nimport * as Validate from './validate';\n\nexport * from './conditions';\nexport * from './resources';\n\nexport { Convert, Helpers, Validate };\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/packlets/common/resources.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE9C;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AAEjE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAEnE;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,wBAAwB,EAAqC,CAAC;AAEzG;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,SAAS,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAEhD;;;;;;;;OAQG;IACH,4BAA4B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAElE;;;;;;OAMG;IACH,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;CACzE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../src/packlets/common/resources.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AA6CH;;;GAGG;AACU,QAAA,4BAA4B,GAA+B,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { JsonValue } from '@fgv/ts-json-base';\nimport { Brand, Result } from '@fgv/ts-utils';\n\n/**\n * Branded string representing a validated resource id. A resource ID\n * is a dot-separated sequence of resource names.\n * @public\n */\nexport type ResourceId = Brand<string, 'ResourceId'>;\n\n/**\n * Branded string representing a validated resource name.\n * @public\n */\nexport type ResourceName = Brand<string, 'ResourceName'>;\n\n/**\n * Branded number representing a validated resource index.\n * @public\n */\nexport type ResourceIndex = Brand<number, 'ResourceIndex'>;\n\n/**\n * Branded string representing a validated resource type name.\n * @public\n */\nexport type ResourceTypeName = Brand<string, 'ResourceTypeName'>;\n\n/**\n * Branded number representing a validated resource type index.\n * @public\n */\nexport type ResourceTypeIndex = Brand<number, 'ResourceTypeIndex'>;\n\n/**\n * Type representing the possible ways that a resource value can be merged into an existing resource.\n * - 'augment' means that the new value should be merged into the existing value, with new properties added and existing properties updated.\n * - 'delete' means that the existing values should be deleted.\n * - 'replace' means that the new value should replace the existing value.\n * @public\n */\nexport type ResourceValueMergeMethod = 'augment' | 'delete' | 'replace';\n\n/**\n * Array of all possible {@link ResourceValueMergeMethod | resource merge type} values.\n * @public\n */\nexport const allResourceValueMergeMethods: ResourceValueMergeMethod[] = ['augment', 'delete', 'replace'];\n\n/**\n * The completeness of a resource candidate value. A full value is one that\n * contains all of the required properties for the resource type. A partial\n * value is one that contains some of the required properties for the resource\n * type.\n * @public\n */\nexport type CandidateCompleteness = 'full' | 'partial';\n\n/**\n * Branded number representing a validated candidate value index.\n * Candidate value indices are used to identify candidate values\n * within a resource set and to enable sharing of like values.\n * @public\n */\nexport type CandidateValueIndex = Brand<number, 'CandidateValueIndex'>;\n\n/**\n * Branded string representing a validated candidate value key.\n * Candidate value keys are used to identify candidate values\n * within a resource set and to enable sharing of like values.\n * @public\n */\nexport type CandidateValueKey = Brand<string, 'CandidateValueKey'>;\n\n/**\n * Minimal resource resolver\n * @public\n */\nexport interface IResourceResolver {\n /**\n * The resource IDs that this resolver can resolve.\n */\n readonly resourceIds: ReadonlyArray<ResourceId>;\n\n /**\n * Resolves a resource to a composed value by merging matching candidates according to their merge methods.\n * Starting from the highest priority candidates, finds the first \"full\" candidate and merges all higher\n * priority \"partial\" candidates into it in ascending order of priority.\n * @param resource - The string id of the resource to resolve.\n * @returns `Success` with the composed JsonValue if successful,\n * or `Failure` with an error message if no candidates match or resolution fails.\n * @public\n */\n resolveComposedResourceValue(resource: string): Result<JsonValue>;\n\n /**\n * Creates a new {@link IResourceResolver | resource resolver} with the given context.\n * @param context - The context to use for the new resource resolver.\n * @returns `Success` with the new resource resolver if successful,\n * or `Failure` with an error message if the context is invalid.\n * @public\n */\n withContext(context: Record<string, string>): Result<IResourceResolver>;\n}\n"]}
@@ -239,16 +239,16 @@ export declare function toConditionSetKey(key: string): Result<ConditionSetKey>;
239
239
  export declare function toConditionSetToken(token: string): Result<ConditionSetToken>;
240
240
  /**
241
241
  * Converts a string to a {@link ConditionSetHash} if it is a valid condition set hash.
242
- * @param key - the string to convert
242
+ * @param hash - the string to convert
243
243
  * @returns `Success` with the converted {@link ConditionSetHash} if successful, or `Failure` with an
244
244
  * error message if not.
245
245
  * @public
246
246
  */
247
247
  export declare function toConditionSetHash(hash: string): Result<ConditionSetHash>;
248
248
  /**
249
- * Converts a number to a {@link DecisionIndex} if it is a valid decision index.
250
- * @param index - the number to convert
251
- * @returns `Success` with the converted {@link DecisionIndex} if successful, or `Failure` with an
249
+ * Converts a string to a {@link DecisionKey} if it is a valid decision key.
250
+ * @param key - the string to convert
251
+ * @returns `Success` with the converted {@link DecisionKey} if successful, or `Failure` with an
252
252
  * error message if not.
253
253
  * @public
254
254
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../../src/packlets/common/validate/conditions.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,MAAM,EAAiB,MAAM,eAAe,CAAC;AACtD,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,aAAa,EACb,gBAAgB,EAKhB,iBAAiB,EAEjB,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,eAAe,CAAC;AAYvB;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,aAAa,CAExE;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,iBAAiB,CAEhF;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,iBAAiB,CAExF;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAE5E;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAEpF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAEtF;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAE5E;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,QA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EAAE,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAM9D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAMpE;AAED;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAM1F;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAOxE;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAMpF;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,CAMlE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEpG;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAMtG;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAM9F;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAMhG"}
@@ -433,7 +433,7 @@ function toConditionSetToken(token) {
433
433
  }
434
434
  /**
435
435
  * Converts a string to a {@link ConditionSetHash} if it is a valid condition set hash.
436
- * @param key - the string to convert
436
+ * @param hash - the string to convert
437
437
  * @returns `Success` with the converted {@link ConditionSetHash} if successful, or `Failure` with an
438
438
  * error message if not.
439
439
  * @public
@@ -445,9 +445,9 @@ function toConditionSetHash(hash) {
445
445
  return (0, ts_utils_1.succeed)(hash);
446
446
  }
447
447
  /**
448
- * Converts a number to a {@link DecisionIndex} if it is a valid decision index.
449
- * @param index - the number to convert
450
- * @returns `Success` with the converted {@link DecisionIndex} if successful, or `Failure` with an
448
+ * Converts a string to a {@link DecisionKey} if it is a valid decision key.
449
+ * @param key - the string to convert
450
+ * @returns `Success` with the converted {@link DecisionKey} if successful, or `Failure` with an
451
451
  * error message if not.
452
452
  * @public
453
453
  */