asajs 3.0.2 → 3.0.4

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 (286) hide show
  1. package/dist/cjs/compilers/BindingCompiler.js +458 -0
  2. package/dist/cjs/compilers/BindingFunctions.js +267 -0
  3. package/dist/cjs/compilers/Compiler.js +158 -0
  4. package/dist/cjs/compilers/Compress.js +55 -0
  5. package/dist/cjs/compilers/Config.js +138 -0
  6. package/dist/cjs/compilers/Encoder.js +90 -0
  7. package/dist/cjs/compilers/Installer.js +123 -0
  8. package/dist/cjs/compilers/PreCompile.js +86 -0
  9. package/dist/cjs/compilers/generator/GenerateDir.js +51 -0
  10. package/dist/cjs/compilers/generator/JsonBuilder.js +66 -0
  11. package/dist/cjs/compilers/generator/LangBuilder.js +65 -0
  12. package/dist/cjs/compilers/generator/Log.js +45 -0
  13. package/dist/cjs/compilers/generator/Manifest.js +63 -0
  14. package/dist/cjs/compilers/generator/Save.js +87 -0
  15. package/dist/cjs/compilers/generator/SearchFiles.js +70 -0
  16. package/dist/cjs/compilers/generator/Sounds.js +91 -0
  17. package/dist/cjs/compilers/generator/Template.js +54 -0
  18. package/dist/cjs/compilers/generator/UIBuilder.js +123 -0
  19. package/dist/cjs/compilers/reader/Audio.js +81 -0
  20. package/dist/cjs/compilers/reader/Color.js +65 -0
  21. package/dist/cjs/compilers/reader/CurrentLine.js +36 -0
  22. package/dist/cjs/compilers/reader/Env.js +21 -0
  23. package/dist/cjs/compilers/reader/GlobalVariables.js +23 -0
  24. package/dist/cjs/compilers/reader/Object.js +44 -0
  25. package/dist/cjs/compilers/reader/ReadBinding.js +67 -0
  26. package/dist/cjs/compilers/reader/ReadProperties.js +118 -0
  27. package/dist/cjs/components/AddCollectionChill.js +41 -0
  28. package/dist/cjs/components/Animation.js +127 -0
  29. package/dist/cjs/components/AnimationKeyFrame.js +49 -0
  30. package/dist/cjs/components/Class.js +95 -0
  31. package/dist/cjs/components/LocalizeText.js +59 -0
  32. package/dist/cjs/components/Modify.js +377 -0
  33. package/dist/cjs/components/Random.js +104 -0
  34. package/dist/cjs/components/UI.js +387 -0
  35. package/dist/cjs/components/Vanilla.js +57915 -0
  36. package/dist/cjs/index.js +291 -0
  37. package/dist/cjs/package.json +1 -0
  38. package/dist/cjs/template.js +37 -0
  39. package/dist/cjs/types/components/ChildIdentifier.js +16 -0
  40. package/dist/cjs/types/components/Identifier.js +17 -0
  41. package/dist/cjs/types/components/NameCallback.js +16 -0
  42. package/dist/cjs/types/components/UIIdentifier.js +16 -0
  43. package/dist/cjs/types/components/UIInterface.js +16 -0
  44. package/dist/cjs/types/enums/Anchor.js +39 -0
  45. package/dist/cjs/types/enums/AnimTypes.js +39 -0
  46. package/dist/cjs/types/enums/BindingCondition.js +36 -0
  47. package/dist/cjs/types/enums/BindingName.js +4208 -0
  48. package/dist/cjs/types/enums/BindingType.js +35 -0
  49. package/dist/cjs/types/enums/ClipDirecion.js +35 -0
  50. package/dist/cjs/types/enums/Collection.js +202 -0
  51. package/dist/cjs/types/enums/Direction.js +33 -0
  52. package/dist/cjs/types/enums/EasingTypes.js +62 -0
  53. package/dist/cjs/types/enums/EnumColor.js +37 -0
  54. package/dist/cjs/types/enums/FocusNavigationMode.js +34 -0
  55. package/dist/cjs/types/enums/FontSize.js +34 -0
  56. package/dist/cjs/types/enums/FontType.js +35 -0
  57. package/dist/cjs/types/enums/GlobalVariables.js +345 -0
  58. package/dist/cjs/types/enums/InputModeCondition.js +33 -0
  59. package/dist/cjs/types/enums/ItemAuxID.js +31 -0
  60. package/dist/cjs/types/enums/JsonUIArrayName.js +36 -0
  61. package/dist/cjs/types/enums/MappingFrom.js +81 -0
  62. package/dist/cjs/types/enums/MappingTo.js +248 -0
  63. package/dist/cjs/types/enums/MappingTypes.js +34 -0
  64. package/dist/cjs/types/enums/Orientation.js +32 -0
  65. package/dist/cjs/types/enums/Renderer.js +68 -0
  66. package/dist/cjs/types/enums/Rotation.js +33 -0
  67. package/dist/cjs/types/enums/Scope.js +32 -0
  68. package/dist/cjs/types/enums/TextTypes.js +33 -0
  69. package/dist/cjs/types/enums/TextureFileSystem.js +41 -0
  70. package/dist/cjs/types/enums/Types.js +57 -0
  71. package/dist/cjs/types/objects/Animation.js +16 -0
  72. package/dist/cjs/types/objects/BindingHook.js +16 -0
  73. package/dist/cjs/types/objects/BindingInterface.js +16 -0
  74. package/dist/cjs/types/objects/ButtonMapping.js +16 -0
  75. package/dist/cjs/types/objects/Factory.js +16 -0
  76. package/dist/cjs/types/objects/Installer.js +53 -0
  77. package/dist/cjs/types/objects/Manifest.js +56 -0
  78. package/dist/cjs/types/objects/Modify.js +16 -0
  79. package/dist/cjs/types/objects/PropertyBag.js +16 -0
  80. package/dist/cjs/types/objects/Sound.js +16 -0
  81. package/dist/cjs/types/objects/Variables.js +16 -0
  82. package/dist/cjs/types/objects/elements/Button.js +17 -0
  83. package/dist/cjs/types/objects/elements/CollectionPanel.js +17 -0
  84. package/dist/cjs/types/objects/elements/Custom.js +17 -0
  85. package/dist/cjs/types/objects/elements/Dropdown.js +17 -0
  86. package/dist/cjs/types/objects/elements/EditBox.js +17 -0
  87. package/dist/cjs/types/objects/elements/Grid.js +16 -0
  88. package/dist/cjs/types/objects/elements/Image.js +17 -0
  89. package/dist/cjs/types/objects/elements/InputPanel.js +16 -0
  90. package/dist/cjs/types/objects/elements/Label.js +17 -0
  91. package/dist/cjs/types/objects/elements/PropertiesType.js +17 -0
  92. package/dist/cjs/types/objects/elements/Screen.js +17 -0
  93. package/dist/cjs/types/objects/elements/ScrollView.js +17 -0
  94. package/dist/cjs/types/objects/elements/ScrollbarBox.js +17 -0
  95. package/dist/cjs/types/objects/elements/ScrollbarTrack.js +17 -0
  96. package/dist/cjs/types/objects/elements/SelectionWheel.js +17 -0
  97. package/dist/cjs/types/objects/elements/Slider.js +17 -0
  98. package/dist/cjs/types/objects/elements/SliderBox.js +17 -0
  99. package/dist/cjs/types/objects/elements/StackPanel.js +16 -0
  100. package/dist/cjs/types/objects/elements/Toggle.js +17 -0
  101. package/dist/cjs/types/objects/elements/TooltipTrigger.js +16 -0
  102. package/dist/cjs/types/objects/elements/panel.js +16 -0
  103. package/dist/cjs/types/objects/properties/Buttons.js +16 -0
  104. package/dist/cjs/types/objects/properties/CollectionIndexs.js +16 -0
  105. package/dist/cjs/types/objects/properties/Collections.js +16 -0
  106. package/dist/cjs/types/objects/properties/Controls.js +16 -0
  107. package/dist/cjs/types/objects/properties/Dropdowns.js +16 -0
  108. package/dist/cjs/types/objects/properties/Focus.js +16 -0
  109. package/dist/cjs/types/objects/properties/FocusContainerCustom.js +16 -0
  110. package/dist/cjs/types/objects/properties/Grids.js +16 -0
  111. package/dist/cjs/types/objects/properties/Inputs.js +16 -0
  112. package/dist/cjs/types/objects/properties/Layouts.js +16 -0
  113. package/dist/cjs/types/objects/properties/Properties.js +16 -0
  114. package/dist/cjs/types/objects/properties/Renderers.js +16 -0
  115. package/dist/cjs/types/objects/properties/Screens.js +16 -0
  116. package/dist/cjs/types/objects/properties/ScrollViews.js +16 -0
  117. package/dist/cjs/types/objects/properties/SelectionWheels.js +16 -0
  118. package/dist/cjs/types/objects/properties/SliderBoxs.js +16 -0
  119. package/dist/cjs/types/objects/properties/Sliders.js +16 -0
  120. package/dist/cjs/types/objects/properties/Sounds.js +16 -0
  121. package/dist/cjs/types/objects/properties/Specials.js +16 -0
  122. package/dist/cjs/types/objects/properties/Sprites.js +16 -0
  123. package/dist/cjs/types/objects/properties/StackPanels.js +16 -0
  124. package/dist/cjs/types/objects/properties/TTS.js +16 -0
  125. package/dist/cjs/types/objects/properties/TextEdits.js +16 -0
  126. package/dist/cjs/types/objects/properties/Texts.js +16 -0
  127. package/dist/cjs/types/objects/properties/Toggles.js +16 -0
  128. package/dist/cjs/types/objects/properties/TooltipTriggers.js +16 -0
  129. package/dist/cjs/types/objects/properties/Variables.js +16 -0
  130. package/dist/cjs/types/values/Any.js +16 -0
  131. package/dist/cjs/types/values/Binding.js +16 -0
  132. package/dist/cjs/types/values/Bool.js +16 -0
  133. package/dist/cjs/types/values/ColorVector.js +16 -0
  134. package/dist/cjs/types/values/ElementPath.js +16 -0
  135. package/dist/cjs/types/values/Hex.js +16 -0
  136. package/dist/cjs/types/values/Number.js +16 -0
  137. package/dist/cjs/types/values/RangeVector.js +16 -0
  138. package/dist/cjs/types/values/Str.js +16 -0
  139. package/dist/cjs/types/values/StringVector.js +16 -0
  140. package/dist/cjs/types/values/TargetElementPath.js +16 -0
  141. package/dist/cjs/types/values/Variable.js +16 -0
  142. package/dist/cjs/types/values/Vector.js +16 -0
  143. package/dist/esm/index.js +68470 -0
  144. package/dist/esm/package.json +1 -0
  145. package/dist/types/compilers/BindingCompiler.d.ts +44 -0
  146. package/dist/types/compilers/BindingFunctions.d.ts +10 -0
  147. package/dist/types/compilers/Compiler.d.ts +3 -0
  148. package/dist/types/compilers/Compress.d.ts +1 -0
  149. package/dist/types/compilers/Config.d.ts +95 -0
  150. package/dist/types/compilers/Encoder.d.ts +11 -0
  151. package/dist/types/compilers/Installer.d.ts +14 -0
  152. package/dist/types/compilers/PreCompile.d.ts +4 -0
  153. package/dist/types/compilers/generator/GenerateDir.d.ts +1 -0
  154. package/dist/types/compilers/generator/JsonBuilder.d.ts +28 -0
  155. package/dist/types/compilers/generator/LangBuilder.d.ts +4 -0
  156. package/dist/types/compilers/generator/Log.d.ts +9 -0
  157. package/dist/types/compilers/generator/Manifest.d.ts +21 -0
  158. package/dist/types/compilers/generator/Save.d.ts +16 -0
  159. package/dist/types/compilers/generator/SearchFiles.d.ts +11 -0
  160. package/dist/types/compilers/generator/Sounds.d.ts +5 -0
  161. package/dist/types/compilers/generator/Template.d.ts +1 -0
  162. package/dist/types/compilers/generator/UIBuilder.d.ts +9 -0
  163. package/dist/types/compilers/reader/Audio.d.ts +1 -0
  164. package/dist/types/compilers/reader/Color.d.ts +5 -0
  165. package/dist/types/compilers/reader/CurrentLine.d.ts +1 -0
  166. package/dist/types/compilers/reader/Env.d.ts +1 -0
  167. package/dist/types/compilers/reader/GlobalVariables.d.ts +1 -0
  168. package/dist/types/compilers/reader/Object.d.ts +11 -0
  169. package/dist/types/compilers/reader/ReadBinding.d.ts +6 -0
  170. package/dist/types/compilers/reader/ReadProperties.d.ts +3 -0
  171. package/dist/types/components/AddCollectionChill.d.ts +6 -0
  172. package/dist/types/components/Animation.d.ts +15 -0
  173. package/dist/types/components/AnimationKeyFrame.d.ts +10 -0
  174. package/dist/types/components/Class.d.ts +68 -0
  175. package/dist/types/components/LocalizeText.d.ts +21 -0
  176. package/dist/types/components/Modify.d.ts +30 -0
  177. package/dist/types/components/Random.d.ts +20 -0
  178. package/dist/types/components/UI.d.ts +89 -0
  179. package/dist/types/components/Vanilla.d.ts +19729 -0
  180. package/dist/types/index.d.ts +136 -0
  181. package/dist/types/template.d.ts +4 -0
  182. package/dist/types/types/components/ChildIdentifier.d.ts +11 -0
  183. package/dist/types/types/components/Identifier.d.ts +4 -0
  184. package/dist/types/types/components/NameCallback.d.ts +3 -0
  185. package/dist/types/types/components/UIIdentifier.d.ts +4 -0
  186. package/dist/types/types/components/UIInterface.d.ts +16 -0
  187. package/dist/types/types/enums/Anchor.d.ts +11 -0
  188. package/dist/types/types/enums/AnimTypes.d.ts +11 -0
  189. package/dist/types/types/enums/BindingCondition.d.ts +8 -0
  190. package/dist/types/types/enums/BindingName.d.ts +4180 -0
  191. package/dist/types/types/enums/BindingType.d.ts +7 -0
  192. package/dist/types/types/enums/ClipDirecion.d.ts +7 -0
  193. package/dist/types/types/enums/Collection.d.ts +174 -0
  194. package/dist/types/types/enums/Direction.d.ts +5 -0
  195. package/dist/types/types/enums/EasingTypes.d.ts +34 -0
  196. package/dist/types/types/enums/EnumColor.d.ts +9 -0
  197. package/dist/types/types/enums/FocusNavigationMode.d.ts +6 -0
  198. package/dist/types/types/enums/FontSize.d.ts +6 -0
  199. package/dist/types/types/enums/FontType.d.ts +7 -0
  200. package/dist/types/types/enums/GlobalVariables.d.ts +317 -0
  201. package/dist/types/types/enums/InputModeCondition.d.ts +5 -0
  202. package/dist/types/types/enums/ItemAuxID.d.ts +3 -0
  203. package/dist/types/types/enums/JsonUIArrayName.d.ts +7 -0
  204. package/dist/types/types/enums/MappingFrom.d.ts +53 -0
  205. package/dist/types/types/enums/MappingTo.d.ts +220 -0
  206. package/dist/types/types/enums/MappingTypes.d.ts +6 -0
  207. package/dist/types/types/enums/Orientation.d.ts +4 -0
  208. package/dist/types/types/enums/Renderer.d.ts +40 -0
  209. package/dist/types/types/enums/Rotation.d.ts +5 -0
  210. package/dist/types/types/enums/Scope.d.ts +4 -0
  211. package/dist/types/types/enums/TextTypes.d.ts +5 -0
  212. package/dist/types/types/enums/TextureFileSystem.d.ts +13 -0
  213. package/dist/types/types/enums/Types.d.ts +29 -0
  214. package/dist/types/types/objects/Animation.d.ts +36 -0
  215. package/dist/types/types/objects/BindingHook.d.ts +1 -0
  216. package/dist/types/types/objects/BindingInterface.d.ts +21 -0
  217. package/dist/types/types/objects/ButtonMapping.d.ts +18 -0
  218. package/dist/types/types/objects/Factory.d.ts +2 -0
  219. package/dist/types/types/objects/Installer.d.ts +26 -0
  220. package/dist/types/types/objects/Manifest.d.ts +74 -0
  221. package/dist/types/types/objects/Modify.d.ts +52 -0
  222. package/dist/types/types/objects/PropertyBag.d.ts +2 -0
  223. package/dist/types/types/objects/Sound.d.ts +8 -0
  224. package/dist/types/types/objects/Variables.d.ts +1 -0
  225. package/dist/types/types/objects/elements/Button.d.ts +4 -0
  226. package/dist/types/types/objects/elements/CollectionPanel.d.ts +4 -0
  227. package/dist/types/types/objects/elements/Custom.d.ts +5 -0
  228. package/dist/types/types/objects/elements/Dropdown.d.ts +4 -0
  229. package/dist/types/types/objects/elements/EditBox.d.ts +4 -0
  230. package/dist/types/types/objects/elements/Grid.d.ts +4 -0
  231. package/dist/types/types/objects/elements/Image.d.ts +4 -0
  232. package/dist/types/types/objects/elements/InputPanel.d.ts +7 -0
  233. package/dist/types/types/objects/elements/Label.d.ts +4 -0
  234. package/dist/types/types/objects/elements/PropertiesType.d.ts +45 -0
  235. package/dist/types/types/objects/elements/Screen.d.ts +4 -0
  236. package/dist/types/types/objects/elements/ScrollView.d.ts +5 -0
  237. package/dist/types/types/objects/elements/ScrollbarBox.d.ts +4 -0
  238. package/dist/types/types/objects/elements/ScrollbarTrack.d.ts +4 -0
  239. package/dist/types/types/objects/elements/SelectionWheel.d.ts +4 -0
  240. package/dist/types/types/objects/elements/Slider.d.ts +4 -0
  241. package/dist/types/types/objects/elements/SliderBox.d.ts +5 -0
  242. package/dist/types/types/objects/elements/StackPanel.d.ts +7 -0
  243. package/dist/types/types/objects/elements/Toggle.d.ts +4 -0
  244. package/dist/types/types/objects/elements/TooltipTrigger.d.ts +8 -0
  245. package/dist/types/types/objects/elements/panel.d.ts +6 -0
  246. package/dist/types/types/objects/properties/Buttons.d.ts +5 -0
  247. package/dist/types/types/objects/properties/CollectionIndexs.d.ts +4 -0
  248. package/dist/types/types/objects/properties/Collections.d.ts +6 -0
  249. package/dist/types/types/objects/properties/Controls.d.ts +27 -0
  250. package/dist/types/types/objects/properties/Dropdowns.d.ts +6 -0
  251. package/dist/types/types/objects/properties/Focus.d.ts +28 -0
  252. package/dist/types/types/objects/properties/FocusContainerCustom.d.ts +5 -0
  253. package/dist/types/types/objects/properties/Grids.d.ts +15 -0
  254. package/dist/types/types/objects/properties/Inputs.d.ts +13 -0
  255. package/dist/types/types/objects/properties/Layouts.d.ts +35 -0
  256. package/dist/types/types/objects/properties/Properties.d.ts +27 -0
  257. package/dist/types/types/objects/properties/Renderers.d.ts +5 -0
  258. package/dist/types/types/objects/properties/Screens.d.ts +23 -0
  259. package/dist/types/types/objects/properties/ScrollViews.d.ts +17 -0
  260. package/dist/types/types/objects/properties/SelectionWheels.d.ts +13 -0
  261. package/dist/types/types/objects/properties/SliderBoxs.d.ts +6 -0
  262. package/dist/types/types/objects/properties/Sliders.d.ts +23 -0
  263. package/dist/types/types/objects/properties/Sounds.d.ts +10 -0
  264. package/dist/types/types/objects/properties/Specials.d.ts +60 -0
  265. package/dist/types/types/objects/properties/Sprites.d.ts +33 -0
  266. package/dist/types/types/objects/properties/StackPanels.d.ts +5 -0
  267. package/dist/types/types/objects/properties/TTS.d.ts +24 -0
  268. package/dist/types/types/objects/properties/TextEdits.d.ts +19 -0
  269. package/dist/types/types/objects/properties/Texts.d.ts +26 -0
  270. package/dist/types/types/objects/properties/Toggles.d.ts +24 -0
  271. package/dist/types/types/objects/properties/TooltipTriggers.d.ts +7 -0
  272. package/dist/types/types/objects/properties/Variables.d.ts +3 -0
  273. package/dist/types/types/values/Any.d.ts +4 -0
  274. package/dist/types/types/values/Binding.d.ts +2 -0
  275. package/dist/types/types/values/Bool.d.ts +2 -0
  276. package/dist/types/types/values/ColorVector.d.ts +6 -0
  277. package/dist/types/types/values/ElementPath.d.ts +2 -0
  278. package/dist/types/types/values/Hex.d.ts +1 -0
  279. package/dist/types/types/values/Number.d.ts +4 -0
  280. package/dist/types/types/values/RangeVector.d.ts +5 -0
  281. package/dist/types/types/values/Str.d.ts +2 -0
  282. package/dist/types/types/values/StringVector.d.ts +6 -0
  283. package/dist/types/types/values/TargetElementPath.d.ts +1 -0
  284. package/dist/types/types/values/Variable.d.ts +1 -0
  285. package/dist/types/types/values/Vector.d.ts +5 -0
  286. package/package.json +4 -4
@@ -0,0 +1,267 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var BindingFunctions_exports = {};
20
+ __export(BindingFunctions_exports, {
21
+ BindingFunctions: () => BindingFunctions,
22
+ funcObj: () => funcObj
23
+ });
24
+ module.exports = __toCommonJS(BindingFunctions_exports);
25
+ var import_Class = require("../components/Class");
26
+ var import_Random = require("../components/Random");
27
+ var import_BindingCompiler = require("./BindingCompiler");
28
+ var import_Log = require("./generator/Log");
29
+ var import_CurrentLine = require("./reader/CurrentLine");
30
+ const funcObj = {
31
+ sum: (arg, params) => {
32
+ const bindingName = import_Random.Random.bindingName();
33
+ arg.addBindings({
34
+ source_property_name: "(".concat(params.join(" + "), ")"),
35
+ target_property_name: bindingName
36
+ });
37
+ return bindingName;
38
+ },
39
+ sumAvg: (arg, params) => {
40
+ const bindingName = import_Random.Random.bindingName();
41
+ arg.addBindings({
42
+ source_property_name: "((".concat(params.join(" + "), ") / ").concat(params.length, ")"),
43
+ target_property_name: bindingName
44
+ });
45
+ return bindingName;
46
+ },
47
+ max: (arg, params) => {
48
+ let current = params[0];
49
+ for (const nextBinding of params.slice(1)) {
50
+ arg.addBindings({
51
+ source_property_name: [
52
+ "(".concat(current, " >= ").concat(nextBinding, ") * ").concat(current, " + (").concat(current, " < ").concat(nextBinding, ") * ").concat(nextBinding)
53
+ ],
54
+ target_property_name: current = import_Random.Random.bindingName()
55
+ });
56
+ }
57
+ return current;
58
+ },
59
+ min: (arg, params) => {
60
+ let current = params[0];
61
+ for (const nextBinding of params.slice(1)) {
62
+ arg.addBindings({
63
+ source_property_name: [
64
+ "(".concat(current, " <= ").concat(nextBinding, ") * ").concat(current, " + (").concat(current, " > ").concat(nextBinding, ") * ").concat(nextBinding)
65
+ ],
66
+ target_property_name: current = import_Random.Random.bindingName()
67
+ });
68
+ }
69
+ return current;
70
+ },
71
+ abs: (arg, [binding]) => {
72
+ const bindingName = import_Random.Random.bindingName();
73
+ arg.addBindings({
74
+ source_property_name: "((-1 + (".concat(binding, " > 0) * 2) * ").concat(binding, ")"),
75
+ target_property_name: bindingName
76
+ });
77
+ return bindingName;
78
+ },
79
+ isEven: (arg, params) => {
80
+ const bindingName = import_Random.Random.bindingName();
81
+ if (params.length > 1) {
82
+ params.map((binding) => {
83
+ const bindingName2 = import_Random.Random.bindingName();
84
+ arg.addBindings({
85
+ source_property_name: ["(".concat(binding, " % 2) == 0")],
86
+ target_property_name: bindingName2
87
+ });
88
+ return bindingName2;
89
+ });
90
+ arg.addBindings({
91
+ source_property_name: "(".concat(params.join(" and "), ")"),
92
+ target_property_name: bindingName
93
+ });
94
+ } else {
95
+ arg.addBindings({
96
+ source_property_name: ["(".concat(params[0], " % 2) == 0")],
97
+ target_property_name: bindingName
98
+ });
99
+ }
100
+ return bindingName;
101
+ },
102
+ isOdd: (arg, params) => {
103
+ const bindingName = import_Random.Random.bindingName();
104
+ if (params.length > 1) {
105
+ params.map((binding) => {
106
+ const bindingName2 = import_Random.Random.bindingName();
107
+ arg.addBindings({
108
+ source_property_name: ["(".concat(binding, " % 2) == 1")],
109
+ target_property_name: bindingName2
110
+ });
111
+ return bindingName2;
112
+ });
113
+ arg.addBindings({
114
+ source_property_name: "(".concat(params.join(" and "), ")"),
115
+ target_property_name: bindingName
116
+ });
117
+ } else {
118
+ arg.addBindings({
119
+ source_property_name: ["(".concat(params[0], " % 2) == 1")],
120
+ target_property_name: bindingName
121
+ });
122
+ }
123
+ return bindingName;
124
+ },
125
+ int: (arg, [float, intLength]) => {
126
+ const sumBnd = [];
127
+ const _intLength = Number.isNaN(+intLength) ? -1 : +intLength;
128
+ let bindingName = import_Random.Random.bindingName();
129
+ if (_intLength < 0) {
130
+ arg.setProperties({
131
+ property_bag: {
132
+ [bindingName]: 0
133
+ }
134
+ });
135
+ arg.addBindings({
136
+ source_property_name: "(".concat(bindingName, " + (").concat(bindingName, " < ").concat(float, ") - (").concat(bindingName, " > ").concat(float, "))"),
137
+ target_property_name: bindingName
138
+ });
139
+ } else {
140
+ let calcBindingName = import_Random.Random.bindingName();
141
+ arg.addBindings({
142
+ source_property_name: ["abs(".concat(float, ")")],
143
+ target_property_name: calcBindingName = import_Random.Random.bindingName()
144
+ });
145
+ for (let i = _intLength - 1; i >= 0; i--) {
146
+ arg.addBindings({
147
+ source_property_name: "(".concat(Math.pow(10, i), " * (").concat(Array.from(
148
+ {
149
+ length: 10
150
+ },
151
+ (v, c) => "(".concat(calcBindingName, " > ").concat((c + 1) * Math.pow(10, i) - 1, ")")
152
+ ).join(" + "), "))"),
153
+ target_property_name: bindingName = import_Random.Random.bindingName()
154
+ });
155
+ sumBnd.push(bindingName);
156
+ if (i !== 0)
157
+ arg.addBindings({
158
+ source_property_name: "(".concat(calcBindingName, " - ").concat(bindingName, ")"),
159
+ target_property_name: calcBindingName = import_Random.Random.bindingName()
160
+ });
161
+ }
162
+ arg.addBindings([
163
+ {
164
+ source_property_name: "(".concat(sumBnd.join(" + "), ")"),
165
+ target_property_name: bindingName = import_Random.Random.bindingName()
166
+ },
167
+ {
168
+ source_property_name: "(".concat(bindingName, " * (1 - (").concat(float, " < 0) * 2))"),
169
+ target_property_name: bindingName = import_Random.Random.bindingName()
170
+ }
171
+ ]);
172
+ }
173
+ return bindingName;
174
+ },
175
+ slice: (arg, [str, start, end]) => {
176
+ const bindingName = import_Random.Random.bindingName();
177
+ if (!(import_BindingCompiler.BindingCompiler.isString(str) || import_BindingCompiler.BindingCompiler.isHasBinding(str))) str = "'".concat(str, "'");
178
+ if (end) {
179
+ arg.addBindings({
180
+ source_property_name: [" '%.{".concat(end, " - ").concat(start, "}s' * slice(").concat(str, ", ").concat(start, ") ")],
181
+ target_property_name: bindingName
182
+ });
183
+ } else {
184
+ arg.addBindings({
185
+ source_property_name: [
186
+ Number.isNaN(+start) ? " '__START__{ ".concat(str, " }' - '__START__{ '%.{ ").concat(start, " }s' * ").concat(str, " }' ") : " '__START__{ ".concat(str, " }' - '__START__{ '%.").concat(start, "s' * ").concat(str, " }' ")
187
+ ],
188
+ target_property_name: bindingName
189
+ });
190
+ }
191
+ return bindingName;
192
+ },
193
+ pow: (arg, [num1, num2]) => {
194
+ const bindingName = import_Random.Random.bindingName();
195
+ if (import_BindingCompiler.BindingCompiler.isNumber(num2)) {
196
+ const $2 = +num2;
197
+ if (import_BindingCompiler.BindingCompiler.isNumber(num1)) return Math.pow(+num1, $2);
198
+ else {
199
+ if ($2 === 0) return 1;
200
+ else if ($2 > 0) return Array.from({ length: $2 }, () => num1).join(" * ");
201
+ else return "1 / ".concat(Array.from({ length: $2 * -1 }, () => num1).join(" / "));
202
+ }
203
+ } else {
204
+ for (let i = 1; i <= 32; i++) {
205
+ arg.addBindings({
206
+ source_property_name: "(".concat(num2, " / ((").concat(num1, " < ").concat(i, ") * ").concat(num2, "))"),
207
+ target_property_name: "".concat(bindingName).concat(i)
208
+ });
209
+ arg.addBindings({
210
+ source_property_name: "(".concat(num2, " / ((").concat(num1, " > ").concat(i * -1, ") * ").concat(num2, "))"),
211
+ target_property_name: "".concat(bindingName, "_").concat(i)
212
+ });
213
+ }
214
+ arg.addBindings({
215
+ source_property_name: "( ".concat(Array.from(
216
+ { length: 32 },
217
+ (v, i) => "".concat(bindingName).concat(i + 1)
218
+ ).join(" * "), " / ").concat(Array.from(
219
+ { length: 32 },
220
+ (v, i) => "".concat(bindingName, "_").concat(i + 1)
221
+ ).join(" / "), ")"),
222
+ target_property_name: bindingName
223
+ });
224
+ }
225
+ return bindingName;
226
+ },
227
+ sqrt: (arg, [num]) => {
228
+ const bindingName = import_Random.Random.bindingName();
229
+ if (import_BindingCompiler.BindingCompiler.isNumber(num)) {
230
+ return "".concat(Math.sqrt(+num));
231
+ } else {
232
+ const binding2 = import_Random.Random.bindingName();
233
+ const x = 100;
234
+ arg.addBindings([
235
+ {
236
+ source_property_name: "(".concat(num, " * ").concat(x, " / 2)"),
237
+ target_property_name: bindingName
238
+ },
239
+ {
240
+ source_property_name: "[ abs((".concat(bindingName, " * ").concat(bindingName, ") - ").concat(num, ") > 1 ]"),
241
+ target_property_name: binding2
242
+ },
243
+ {
244
+ source_property_name: "( (".concat(num, " < 0) * -1 + (").concat(num, " > -1) * (").concat(binding2, " * ((").concat(bindingName, " + ").concat(num, " / ").concat(bindingName, ") / 2) + (not ").concat(binding2, ") * ").concat(bindingName, ") )"),
245
+ target_property_name: bindingName
246
+ }
247
+ ]);
248
+ }
249
+ return bindingName;
250
+ }
251
+ };
252
+ class BindingFunctions extends import_Class.Class {
253
+ static register(name, callback, override) {
254
+ const n = name;
255
+ if (override || !funcObj[n]) {
256
+ funcObj[n] = callback;
257
+ } else
258
+ import_Log.Log.error(
259
+ "".concat((0, import_CurrentLine.CurrentLine)(), " '").concat(n, "' function already exists, do you want to override it?")
260
+ );
261
+ }
262
+ }
263
+ // Annotate the CommonJS export names for ESM import in node:
264
+ 0 && (module.exports = {
265
+ BindingFunctions,
266
+ funcObj
267
+ });
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var Compiler_exports = {};
30
+ __export(Compiler_exports, {
31
+ installer: () => installer
32
+ });
33
+ module.exports = __toCommonJS(Compiler_exports);
34
+ var import_fs = __toESM(require("fs"));
35
+ var import_Manifest = require("./generator/Manifest");
36
+ var import_UIBuilder = require("./generator/UIBuilder");
37
+ var import_Config = require("./Config");
38
+ var import_Compress = require("./Compress");
39
+ var import_Sounds = require("./generator/Sounds");
40
+ var import_Audio = require("./reader/Audio");
41
+ var import_Log = require("./generator/Log");
42
+ var import_Encoder = require("./Encoder");
43
+ var import_PreCompile = require("./PreCompile");
44
+ var import_LocalizeText = require("../components/LocalizeText");
45
+ var import_LangBuilder = require("./generator/LangBuilder");
46
+ var import_Installer = require("../types/objects/Installer");
47
+ var import_Installer2 = require("./Installer");
48
+ const config = import_Config.Configs.getConfig();
49
+ const installer = new import_Installer2.ResourcePacks({
50
+ installGame: config.installer.previewVersion ? import_Installer.Minecraft.Preview : import_Installer.Minecraft.Stable,
51
+ installFolder: config.installer.developEvironment ? import_Installer.ResourcePack.Development : import_Installer.ResourcePack.Production
52
+ });
53
+ function manifestBuild(installPath) {
54
+ const { name, description, uuid, version, baseGameVersion } = config.manifest;
55
+ const manifest = new import_Manifest.Manifest({ name, description, uuid, version });
56
+ manifest.manifest.header.min_engine_version = baseGameVersion;
57
+ (0, import_PreCompile.UIWriteJson)("".concat(installPath, "/manifest.json"), manifest.manifest, "utf-8");
58
+ }
59
+ let isRunned = false;
60
+ process.on("beforeExit", () => {
61
+ if (isRunned) return;
62
+ isRunned = true;
63
+ const installPath = installer.getInstallPath();
64
+ config.installer.autoInstall = config.installer.autoInstall && import_fs.default.existsSync(installer.installPath);
65
+ const buildPath = config.installer.autoInstall ? installPath : ".build";
66
+ import_UIBuilder.UIBuilder.delete(buildPath);
67
+ if (import_fs.default.existsSync(".build")) import_fs.default.rmSync(".build", { recursive: true });
68
+ if (import_fs.default.existsSync(".minecraft")) import_fs.default.unlinkSync(".minecraft");
69
+ if (!import_fs.default.existsSync(".bedrock")) import_fs.default.mkdirSync(".bedrock");
70
+ if (!import_fs.default.existsSync("".concat(buildPath))) import_fs.default.mkdirSync("".concat(buildPath));
71
+ if (!import_fs.default.existsSync("".concat(buildPath, "/@"))) import_fs.default.mkdirSync("".concat(buildPath, "/@"));
72
+ try {
73
+ console.log("---------- COMPILING ----------");
74
+ (0, import_Audio.FormatAudio)();
75
+ if (config.installer.autoInstall) {
76
+ installer.packLink();
77
+ console.timeLog("COMPILER", "Symlink completed!");
78
+ console.log();
79
+ }
80
+ import_fs.default.cpSync(".bedrock", buildPath, { recursive: true });
81
+ console.timeLog("COMPILER", "Copy bedrock resources completed!");
82
+ console.log();
83
+ console.timeLog("COMPILER", "".concat(import_UIBuilder.UIBuilder.jsonUI(buildPath), " custom file(s) compiled!"));
84
+ console.log();
85
+ console.timeLog("COMPILER", "".concat(import_UIBuilder.UIBuilder.modify(buildPath), " modify file(s) compiled!"));
86
+ console.log();
87
+ if (Object.keys(import_LocalizeText.localizeText).length) {
88
+ console.timeLog("COMPILER", "".concat(import_LangBuilder.LangBuilder.build(buildPath), " lang file(s) compiled!"));
89
+ console.log();
90
+ }
91
+ manifestBuild(buildPath);
92
+ console.timeLog("COMPILER", "Manifest file has been compiled!");
93
+ console.timeLog(
94
+ "COMPILER",
95
+ "ui/_ui_defs.json ".concat(import_UIBuilder.UIBuilder.uiDefs(buildPath), " files path(s) found!")
96
+ );
97
+ console.timeLog(
98
+ "COMPILER",
99
+ "ui/_global_variables.json ".concat(import_UIBuilder.UIBuilder.globalVariables(
100
+ buildPath
101
+ ), " variable(s) compiled!")
102
+ );
103
+ console.timeLog(
104
+ "COMPILER",
105
+ "textures/textures_list.json ".concat(import_UIBuilder.UIBuilder.texturesList(buildPath), " files path(s) found!")
106
+ );
107
+ const soundLength = import_Sounds.SoundHandler.compile(buildPath);
108
+ if (soundLength)
109
+ console.timeLog(
110
+ "COMPILER",
111
+ "sounds/sound_definitions.json ".concat(soundLength, " sound id has regisrer!")
112
+ );
113
+ console.timeLog(
114
+ "COMPILER",
115
+ "contents.json ".concat(import_UIBuilder.UIBuilder.contents(buildPath), " file path(s) found!")
116
+ );
117
+ if (config.installer.autoInstall) {
118
+ installer.installPack(config.manifest.uuid, config.manifest.version);
119
+ console.timeLog("COMPILER", "Resource Pack has been installed!");
120
+ }
121
+ if (config.compiler.autoCompress) {
122
+ (0, import_Compress.CompressPack)(buildPath);
123
+ console.timeLog("COMPILER", "Minecraft-UIBuild.mcpack Pack compress completed!");
124
+ }
125
+ if (config.compiler.encodeJson) {
126
+ import_Encoder.Encoder.start();
127
+ console.timeLog("COMPILER", "Encoded ".concat(import_Encoder.Encoder.count, " JSON file(s) successfully!"));
128
+ }
129
+ console.log();
130
+ console.timeLog("COMPILER", "Compile completed!");
131
+ if (import_Log.Logs.length) {
132
+ console.log("\n---------- Build Log ----------");
133
+ for (const log of import_Log.Logs) {
134
+ if (log.type === "warning") console.warn(log.message);
135
+ else if (log.type === "error") console.error(log.message);
136
+ }
137
+ }
138
+ console.log("\n---------- INFO ----------");
139
+ console.log("Name: \x1B[96m".concat(config.manifest.name, "\x1B[0m"));
140
+ console.log("Description: \x1B[96m".concat(config.manifest.description, "\x1B[0m"));
141
+ console.log("UUID: \x1B[96m".concat(config.manifest.uuid, "\x1B[0m"));
142
+ console.log(
143
+ "Pack Version: \x1B[96m".concat(config.manifest.version[0], ".").concat(config.manifest.version[1], ".").concat(config.manifest.version[2], "\x1B[0m")
144
+ );
145
+ console.log(
146
+ "Base Game Version: \x1B[96m".concat(config.manifest.baseGameVersion[0], ".").concat(config.manifest.baseGameVersion[1], ".").concat(config.manifest.baseGameVersion[2], "\x1B[0m")
147
+ );
148
+ if (config.installer.autoInstall)
149
+ console.log("Install Path: \x1B[96m".concat(installPath, "\x1B[0m"));
150
+ } catch (error) {
151
+ console.timeLog("COMPILER", "An error occurred while compiling!");
152
+ console.error(error);
153
+ }
154
+ });
155
+ // Annotate the CommonJS export names for ESM import in node:
156
+ 0 && (module.exports = {
157
+ installer
158
+ });
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var Compress_exports = {};
30
+ __export(Compress_exports, {
31
+ CompressPack: () => CompressPack
32
+ });
33
+ module.exports = __toCommonJS(Compress_exports);
34
+ var import_fs = __toESM(require("fs"));
35
+ var import_adm_zip = __toESM(require("adm-zip"));
36
+ var import_SearchFiles = require("./generator/SearchFiles");
37
+ function CompressPack(buildPath) {
38
+ if (import_fs.default.existsSync("Minecraft-UIBuild.mcpack"))
39
+ import_fs.default.rmSync("Minecraft-UIBuild.mcpack");
40
+ const zip = new import_adm_zip.default(void 0, {
41
+ fs: import_fs.default
42
+ });
43
+ import_SearchFiles.SearchFiles.forEach(buildPath, (path) => {
44
+ const pathSplit = path.path.split("/");
45
+ zip.addLocalFile(
46
+ "".concat(buildPath, "/").concat(path.path),
47
+ pathSplit.length !== 1 ? pathSplit.slice(0, pathSplit.length - 1).join("/") : void 0
48
+ );
49
+ });
50
+ zip.writeZip("Minecraft-UIBuild.mcpack");
51
+ }
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ CompressPack
55
+ });
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
21
+ var Config_exports = {};
22
+ __export(Config_exports, {
23
+ Configs: () => Configs,
24
+ config: () => config,
25
+ readObject: () => readObject
26
+ });
27
+ module.exports = __toCommonJS(Config_exports);
28
+ var import_Save = require("./generator/Save");
29
+ var import_Object = require("./reader/Object");
30
+ var import_Template = require("./generator/Template");
31
+ (0, import_Template.firstRun)();
32
+ const defaultConfig = {
33
+ compiler: {
34
+ encodeJson: false,
35
+ autoCompress: false,
36
+ fileExtension: "json",
37
+ UI: {
38
+ nameLength: 32,
39
+ namespaceAmount: 16,
40
+ namespaceLength: 32,
41
+ obfuscateName: false,
42
+ obfuscateType: false
43
+ }
44
+ },
45
+ installer: {
46
+ autoInstall: true,
47
+ developEvironment: true,
48
+ previewVersion: false,
49
+ customPath: false,
50
+ installPath: void 0
51
+ },
52
+ manifest: {
53
+ name: "JsonUI Scripting",
54
+ description: "Build with JsonUI Scripting <3",
55
+ uuid: import_Save.Save.uuid()[0],
56
+ version: [1, 0, 0],
57
+ baseGameVersion: [1, 21, 80]
58
+ }
59
+ };
60
+ function readObject(obj, defaultObjValue) {
61
+ if (Array.isArray(defaultObjValue)) {
62
+ if (!obj) obj = [];
63
+ defaultObjValue.forEach((value, index) => {
64
+ var _a;
65
+ obj[index] = (_a = obj[index]) != null ? _a : value;
66
+ });
67
+ return obj;
68
+ } else {
69
+ if (!obj) obj = {};
70
+ import_Object.Obj.forEach(defaultObjValue || {}, (key, value) => {
71
+ var _a;
72
+ if (typeof value === "object") {
73
+ obj[key] = readObject(obj[key], defaultObjValue[key]);
74
+ } else {
75
+ obj[key] = (_a = obj[key]) != null ? _a : defaultObjValue[key];
76
+ }
77
+ });
78
+ return obj;
79
+ }
80
+ }
81
+ const _Configs = class _Configs {
82
+ /**
83
+ * Loads the configuration file and parses it into the `save` property.
84
+ */
85
+ constructor() {
86
+ /**
87
+ * The current loaded configuration saved to disk.
88
+ */
89
+ __publicField(this, "save");
90
+ this.save = require("".concat(process.cwd(), "/asakiyuki.config.cjs")).config;
91
+ }
92
+ /**
93
+ * Retrieves the current configuration, either from the saved configuration or the default values.
94
+ *
95
+ * @returns {Config} - The configuration object.
96
+ */
97
+ static getConfig() {
98
+ if (_Configs.config === void 0) {
99
+ const defaultConfig2 = _Configs.getDefaultConfig();
100
+ const saveConfig = new _Configs().save;
101
+ return readObject(saveConfig, defaultConfig2);
102
+ } else return _Configs.config;
103
+ }
104
+ /**
105
+ * Retrieves the default configuration values.
106
+ *
107
+ * @returns {Config} - The default configuration object.
108
+ */
109
+ static getDefaultConfig() {
110
+ return defaultConfig;
111
+ }
112
+ // Static helper methods not directly related to config loading/handling.
113
+ static apply() {
114
+ }
115
+ static bind() {
116
+ }
117
+ static call() {
118
+ }
119
+ static toString() {
120
+ }
121
+ };
122
+ /**
123
+ * The statically cached configuration.
124
+ */
125
+ __publicField(_Configs, "config");
126
+ __publicField(_Configs, "arguments", "");
127
+ __publicField(_Configs, "caller", "");
128
+ __publicField(_Configs, "length", "");
129
+ __publicField(_Configs, "name", "");
130
+ let Configs = _Configs;
131
+ const config = Configs;
132
+ Configs.getConfig();
133
+ // Annotate the CommonJS export names for ESM import in node:
134
+ 0 && (module.exports = {
135
+ Configs,
136
+ config,
137
+ readObject
138
+ });