@fossa-app/bridge 0.1.10 → 0.1.12

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 (211) hide show
  1. package/dist/Models/ApiModels/EnvelopeModels.d.ts +5 -5
  2. package/dist/Models/ApiModels/EnvelopeModels.js +16 -16
  3. package/dist/Models/ApiModels/EnvelopeModels.js.map +1 -1
  4. package/dist/Models/ApiModels/PayloadModels.d.ts +5 -5
  5. package/dist/Models/ApiModels/PayloadModels.js +127 -97
  6. package/dist/Models/ApiModels/PayloadModels.js.map +1 -1
  7. package/dist/Models/ApiModels/SharedModels.d.ts +3 -3
  8. package/dist/Models/ApiModels/SharedModels.js +35 -30
  9. package/dist/Models/ApiModels/SharedModels.js.map +1 -1
  10. package/dist/Services/Clients/BranchClient.d.ts +2 -2
  11. package/dist/Services/Clients/BranchClient.js +26 -37
  12. package/dist/Services/Clients/BranchClient.js.map +1 -1
  13. package/dist/Services/Clients/CompanyClient.d.ts +1 -1
  14. package/dist/Services/Clients/CompanyClient.js +17 -26
  15. package/dist/Services/Clients/CompanyClient.js.map +1 -1
  16. package/dist/Services/Clients/CompanyLicenseClient.d.ts +1 -1
  17. package/dist/Services/Clients/CompanyLicenseClient.js +13 -20
  18. package/dist/Services/Clients/CompanyLicenseClient.js.map +1 -1
  19. package/dist/Services/Clients/CompanySettingsClient.d.ts +1 -1
  20. package/dist/Services/Clients/CompanySettingsClient.js +17 -26
  21. package/dist/Services/Clients/CompanySettingsClient.js.map +1 -1
  22. package/dist/Services/Clients/DepartmentClient.d.ts +2 -2
  23. package/dist/Services/Clients/DepartmentClient.js +26 -37
  24. package/dist/Services/Clients/DepartmentClient.js.map +1 -1
  25. package/dist/Services/Clients/EmployeeClient.d.ts +2 -2
  26. package/dist/Services/Clients/EmployeeClient.js +30 -43
  27. package/dist/Services/Clients/EmployeeClient.js.map +1 -1
  28. package/dist/Services/Clients/IBranchClient.d.ts +1 -1
  29. package/dist/Services/Clients/IBranchClient.js +1 -2
  30. package/dist/Services/Clients/ICompanyClient.js +1 -2
  31. package/dist/Services/Clients/ICompanyLicenseClient.js +1 -2
  32. package/dist/Services/Clients/ICompanySettingsClient.js +1 -2
  33. package/dist/Services/Clients/IDepartmentClient.d.ts +1 -1
  34. package/dist/Services/Clients/IDepartmentClient.js +1 -2
  35. package/dist/Services/Clients/IEmployeeClient.d.ts +1 -1
  36. package/dist/Services/Clients/IEmployeeClient.js +1 -2
  37. package/dist/Services/Clients/IIdentityClient.js +1 -2
  38. package/dist/Services/Clients/ISystemLicenseClient.js +1 -2
  39. package/dist/Services/Clients/IdentityClient.d.ts +1 -1
  40. package/dist/Services/Clients/IdentityClient.js +11 -17
  41. package/dist/Services/Clients/IdentityClient.js.map +1 -1
  42. package/dist/Services/Clients/SystemLicenseClient.d.ts +1 -1
  43. package/dist/Services/Clients/SystemLicenseClient.js +11 -17
  44. package/dist/Services/Clients/SystemLicenseClient.js.map +1 -1
  45. package/dist/Services/Endpoints.js +10 -13
  46. package/dist/Services/Endpoints.js.map +1 -1
  47. package/dist/Services/IHttpTransport.d.ts +4 -4
  48. package/dist/Services/IHttpTransport.js +1 -2
  49. package/dist/Services/UrlHelpers.d.ts +6 -6
  50. package/dist/Services/UrlHelpers.js +44 -62
  51. package/dist/Services/UrlHelpers.js.map +1 -1
  52. package/package.json +7 -2
  53. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.d.ts +0 -125
  54. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.js +0 -1371
  55. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.js.map +0 -1
  56. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.d.ts +0 -27
  57. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.js +0 -172
  58. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.js.map +0 -1
  59. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.d.ts +0 -59
  60. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.js +0 -194
  61. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.js.map +0 -1
  62. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.d.ts +0 -129
  63. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.js +0 -428
  64. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.js.map +0 -1
  65. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.d.ts +0 -27
  66. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.js +0 -165
  67. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.js.map +0 -1
  68. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.d.ts +0 -3
  69. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.js +0 -27
  70. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.js.map +0 -1
  71. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.d.ts +0 -66
  72. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.js +0 -271
  73. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.js.map +0 -1
  74. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.d.ts +0 -121
  75. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.js +0 -231
  76. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.js.map +0 -1
  77. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.d.ts +0 -8
  78. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.js +0 -192
  79. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.js.map +0 -1
  80. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.d.ts +0 -9
  81. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.js +0 -26
  82. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.js.map +0 -1
  83. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.d.ts +0 -70
  84. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.js +0 -812
  85. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.js.map +0 -1
  86. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.d.ts +0 -65
  87. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.js +0 -345
  88. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.js.map +0 -1
  89. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.d.ts +0 -18
  90. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.js +0 -143
  91. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.js.map +0 -1
  92. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.d.ts +0 -63
  93. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.js +0 -322
  94. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.js.map +0 -1
  95. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.d.ts +0 -11
  96. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.js +0 -60
  97. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.js.map +0 -1
  98. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.d.ts +0 -12
  99. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.js +0 -178
  100. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.js.map +0 -1
  101. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.d.ts +0 -31
  102. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.js +0 -109
  103. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.js.map +0 -1
  104. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.d.ts +0 -7
  105. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.js +0 -53
  106. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.js.map +0 -1
  107. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.d.ts +0 -12
  108. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.js +0 -38
  109. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.js.map +0 -1
  110. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.d.ts +0 -30
  111. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.js +0 -185
  112. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.js.map +0 -1
  113. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.d.ts +0 -45
  114. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.js +0 -33
  115. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.js.map +0 -1
  116. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.d.ts +0 -10
  117. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.js +0 -152
  118. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.js.map +0 -1
  119. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.d.ts +0 -29
  120. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.js +0 -148
  121. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.js.map +0 -1
  122. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.d.ts +0 -143
  123. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.js +0 -1404
  124. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.js.map +0 -1
  125. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.d.ts +0 -3
  126. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.js +0 -52
  127. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.js.map +0 -1
  128. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.d.ts +0 -25
  129. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.js +0 -104
  130. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.js.map +0 -1
  131. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.d.ts +0 -178
  132. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.js +0 -1525
  133. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.js.map +0 -1
  134. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.d.ts +0 -12
  135. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.js +0 -141
  136. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.js.map +0 -1
  137. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.d.ts +0 -52
  138. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.js +0 -355
  139. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.js.map +0 -1
  140. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.d.ts +0 -39
  141. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.js +0 -246
  142. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.js.map +0 -1
  143. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.d.ts +0 -3
  144. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.js +0 -18
  145. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.js.map +0 -1
  146. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.d.ts +0 -20
  147. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.js +0 -87
  148. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.js.map +0 -1
  149. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.d.ts +0 -32
  150. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.js +0 -128
  151. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.js.map +0 -1
  152. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.d.ts +0 -29
  153. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.js +0 -127
  154. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.js.map +0 -1
  155. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.d.ts +0 -38
  156. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.js +0 -186
  157. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.js.map +0 -1
  158. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.d.ts +0 -12
  159. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.js +0 -56
  160. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.js.map +0 -1
  161. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.d.ts +0 -119
  162. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js +0 -529
  163. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js.map +0 -1
  164. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.d.ts +0 -10
  165. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.js +0 -144
  166. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.js.map +0 -1
  167. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.d.ts +0 -38
  168. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.js +0 -191
  169. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.js.map +0 -1
  170. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.d.ts +0 -164
  171. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.js +0 -1501
  172. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.js.map +0 -1
  173. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.d.ts +0 -18
  174. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.js +0 -129
  175. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.js.map +0 -1
  176. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.d.ts +0 -190
  177. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.js +0 -1931
  178. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.js.map +0 -1
  179. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.d.ts +0 -59
  180. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.js +0 -677
  181. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.js.map +0 -1
  182. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.d.ts +0 -85
  183. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.js +0 -390
  184. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.js.map +0 -1
  185. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.d.ts +0 -40
  186. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.js +0 -204
  187. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.js.map +0 -1
  188. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.d.ts +0 -121
  189. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.js +0 -367
  190. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.js.map +0 -1
  191. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.d.ts +0 -15
  192. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.js +0 -138
  193. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.js.map +0 -1
  194. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.d.ts +0 -35
  195. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.js +0 -210
  196. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.js.map +0 -1
  197. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.d.ts +0 -19
  198. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.js +0 -72
  199. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.js.map +0 -1
  200. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.d.ts +0 -51
  201. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.js +0 -205
  202. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.js.map +0 -1
  203. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.d.ts +0 -2
  204. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.js +0 -8
  205. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.js.map +0 -1
  206. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.d.ts +0 -32
  207. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.js +0 -170
  208. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.js.map +0 -1
  209. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.d.ts +0 -243
  210. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.js +0 -903
  211. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.js.map +0 -1
@@ -1,903 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectRef = exports.Lazy = exports.Comparer = exports.Enumerator = exports.Enumerable = exports.Exception = exports.DateTimeKind = void 0;
4
- exports.isException = isException;
5
- exports.isPromise = isPromise;
6
- exports.ensureErrorOrException = ensureErrorOrException;
7
- exports.isArrayLike = isArrayLike;
8
- exports.isMutableArray = isMutableArray;
9
- exports.isIterable = isIterable;
10
- exports.isEnumerable = isEnumerable;
11
- exports.isComparer = isComparer;
12
- exports.isComparable = isComparable;
13
- exports.isEquatable = isEquatable;
14
- exports.isHashable = isHashable;
15
- exports.isDisposable = isDisposable;
16
- exports.disposeSafe = disposeSafe;
17
- exports.defaultOf = defaultOf;
18
- exports.sameConstructor = sameConstructor;
19
- exports.toEnumerable = toEnumerable;
20
- exports.getEnumerator = getEnumerator;
21
- exports.toIterator = toIterator;
22
- exports.enumerableToIterator = enumerableToIterator;
23
- exports.comparerFromEqualityComparer = comparerFromEqualityComparer;
24
- exports.assertEqual = assertEqual;
25
- exports.assertNotEqual = assertNotEqual;
26
- exports.lazyFromValue = lazyFromValue;
27
- exports.padWithZeros = padWithZeros;
28
- exports.padLeftAndRightWithZeros = padLeftAndRightWithZeros;
29
- exports.dateOffset = dateOffset;
30
- exports.int16ToString = int16ToString;
31
- exports.int32ToString = int32ToString;
32
- exports.int64ToString = int64ToString;
33
- exports.stringHash = stringHash;
34
- exports.numberHash = numberHash;
35
- exports.bigintHash = bigintHash;
36
- exports.combineHashCodes = combineHashCodes;
37
- exports.physicalHash = physicalHash;
38
- exports.identityHash = identityHash;
39
- exports.dateHash = dateHash;
40
- exports.arrayHash = arrayHash;
41
- exports.structuralHash = structuralHash;
42
- exports.fastStructuralHash = fastStructuralHash;
43
- exports.safeHash = safeHash;
44
- exports.equalArraysWith = equalArraysWith;
45
- exports.equalArrays = equalArrays;
46
- exports.physicalEquals = physicalEquals;
47
- exports.equals = equals;
48
- exports.compareDates = compareDates;
49
- exports.comparePrimitives = comparePrimitives;
50
- exports.compareArraysWith = compareArraysWith;
51
- exports.compareArrays = compareArrays;
52
- exports.compare = compare;
53
- exports.min = min;
54
- exports.max = max;
55
- exports.clamp = clamp;
56
- exports.createAtom = createAtom;
57
- exports.createObj = createObj;
58
- exports.jsOptions = jsOptions;
59
- exports.round = round;
60
- exports.sign = sign;
61
- exports.unescapeDataString = unescapeDataString;
62
- exports.escapeDataString = escapeDataString;
63
- exports.escapeUriString = escapeUriString;
64
- exports.count = count;
65
- exports.clear = clear;
66
- exports.uncurry2 = uncurry2;
67
- exports.curry2 = curry2;
68
- exports.uncurry3 = uncurry3;
69
- exports.curry3 = curry3;
70
- exports.uncurry4 = uncurry4;
71
- exports.curry4 = curry4;
72
- exports.uncurry5 = uncurry5;
73
- exports.curry5 = curry5;
74
- exports.uncurry6 = uncurry6;
75
- exports.curry6 = curry6;
76
- exports.uncurry7 = uncurry7;
77
- exports.curry7 = curry7;
78
- exports.uncurry8 = uncurry8;
79
- exports.curry8 = curry8;
80
- exports.uncurry9 = uncurry9;
81
- exports.curry9 = curry9;
82
- exports.uncurry10 = uncurry10;
83
- exports.curry10 = curry10;
84
- exports.uncurry11 = uncurry11;
85
- exports.curry11 = curry11;
86
- exports.uncurry12 = uncurry12;
87
- exports.curry12 = curry12;
88
- exports.uncurry13 = uncurry13;
89
- exports.curry13 = curry13;
90
- exports.uncurry14 = uncurry14;
91
- exports.curry14 = curry14;
92
- exports.uncurry15 = uncurry15;
93
- exports.curry15 = curry15;
94
- exports.uncurry16 = uncurry16;
95
- exports.curry16 = curry16;
96
- exports.uncurry17 = uncurry17;
97
- exports.curry17 = curry17;
98
- exports.uncurry18 = uncurry18;
99
- exports.curry18 = curry18;
100
- exports.uncurry19 = uncurry19;
101
- exports.curry19 = curry19;
102
- exports.uncurry20 = uncurry20;
103
- exports.curry20 = curry20;
104
- exports.copyToArray = copyToArray;
105
- // Don't change, this corresponds to DateTimeKind.Kind enum values in .NET
106
- exports.DateTimeKind = {
107
- Unspecified: 0,
108
- Utc: 1,
109
- Local: 2,
110
- };
111
- // Exception is intentionally not derived from Error, for performance reasons (see #2160)
112
- class Exception {
113
- constructor(msg) {
114
- this.message = msg ?? "";
115
- }
116
- }
117
- exports.Exception = Exception;
118
- function isException(x) {
119
- return x instanceof Exception || x instanceof Error;
120
- }
121
- function isPromise(x) {
122
- return x instanceof Promise;
123
- }
124
- function ensureErrorOrException(e) {
125
- // Exceptionally admitting promises as errors for compatibility with React.suspense (see #3298)
126
- return (isException(e) || isPromise(e)) ? e : new Exception(String(e));
127
- }
128
- function isArrayLike(x) {
129
- return Array.isArray(x) || ArrayBuffer.isView(x);
130
- }
131
- function isMutableArray(x) {
132
- return Array.isArray(x) || ArrayBuffer.isView(x);
133
- }
134
- function isIterable(x) {
135
- return x != null && typeof x === "object" && Symbol.iterator in x;
136
- }
137
- function isEnumerable(x) {
138
- return x != null && typeof x.GetEnumerator === "function";
139
- }
140
- function isComparer(x) {
141
- return x != null && typeof x.Compare === "function";
142
- }
143
- function isComparable(x) {
144
- return x != null && typeof x.CompareTo === "function";
145
- }
146
- function isEquatable(x) {
147
- return x != null && typeof x.Equals === "function";
148
- }
149
- function isHashable(x) {
150
- return x != null && typeof x.GetHashCode === "function";
151
- }
152
- function isDisposable(x) {
153
- return x != null && typeof x.Dispose === "function";
154
- }
155
- function disposeSafe(x) {
156
- if (isDisposable(x)) {
157
- x.Dispose();
158
- }
159
- }
160
- function defaultOf() {
161
- return null;
162
- }
163
- function sameConstructor(x, y) {
164
- return Object.getPrototypeOf(x)?.constructor === Object.getPrototypeOf(y)?.constructor;
165
- }
166
- class Enumerable {
167
- constructor(en) { this.en = en; }
168
- GetEnumerator() { return this.en; }
169
- "System.Collections.IEnumerable.GetEnumerator"() { return this.en; }
170
- [Symbol.iterator]() {
171
- return this;
172
- }
173
- next() {
174
- const hasNext = this.en["System.Collections.IEnumerator.MoveNext"]();
175
- const current = hasNext ? this.en["System.Collections.Generic.IEnumerator`1.get_Current"]() : undefined;
176
- return { done: !hasNext, value: current };
177
- }
178
- }
179
- exports.Enumerable = Enumerable;
180
- class Enumerator {
181
- constructor(iter) {
182
- this.current = defaultOf();
183
- this.iter = iter;
184
- }
185
- ["System.Collections.Generic.IEnumerator`1.get_Current"]() {
186
- return this.current;
187
- }
188
- ["System.Collections.IEnumerator.get_Current"]() {
189
- return this.current;
190
- }
191
- ["System.Collections.IEnumerator.MoveNext"]() {
192
- const cur = this.iter.next();
193
- this.current = cur.value;
194
- return !cur.done;
195
- }
196
- ["System.Collections.IEnumerator.Reset"]() {
197
- throw new Exception("JS iterators cannot be reset");
198
- }
199
- Dispose() {
200
- return;
201
- }
202
- }
203
- exports.Enumerator = Enumerator;
204
- function toEnumerable(e) {
205
- if (isEnumerable(e)) {
206
- return e;
207
- }
208
- else {
209
- return new Enumerable(new Enumerator(e[Symbol.iterator]()));
210
- }
211
- }
212
- function getEnumerator(e) {
213
- if (isEnumerable(e)) {
214
- return e.GetEnumerator();
215
- }
216
- else {
217
- return new Enumerator(e[Symbol.iterator]());
218
- }
219
- }
220
- function toIterator(en) {
221
- return {
222
- next() {
223
- const hasNext = en["System.Collections.IEnumerator.MoveNext"]();
224
- const current = hasNext ? en["System.Collections.Generic.IEnumerator`1.get_Current"]() : undefined;
225
- return { done: !hasNext, value: current };
226
- },
227
- };
228
- }
229
- function enumerableToIterator(e) {
230
- return toIterator(toEnumerable(e).GetEnumerator());
231
- }
232
- class Comparer {
233
- constructor(f) {
234
- this.Compare = f || compare;
235
- }
236
- }
237
- exports.Comparer = Comparer;
238
- function comparerFromEqualityComparer(comparer) {
239
- // Sometimes IEqualityComparer also implements IComparer
240
- if (isComparer(comparer)) {
241
- return new Comparer(comparer.Compare);
242
- }
243
- else {
244
- return new Comparer((x, y) => {
245
- const xhash = comparer.GetHashCode(x);
246
- const yhash = comparer.GetHashCode(y);
247
- if (xhash === yhash) {
248
- return comparer.Equals(x, y) ? 0 : -1;
249
- }
250
- else {
251
- return xhash < yhash ? -1 : 1;
252
- }
253
- });
254
- }
255
- }
256
- function assertEqual(actual, expected, msg) {
257
- if (!equals(actual, expected)) {
258
- throw Object.assign(new Exception(msg || `Expected: ${expected} - Actual: ${actual}`), {
259
- actual,
260
- expected,
261
- });
262
- }
263
- }
264
- function assertNotEqual(actual, expected, msg) {
265
- if (equals(actual, expected)) {
266
- throw Object.assign(new Exception(msg || `Expected: ${expected} - Actual: ${actual}`), {
267
- actual,
268
- expected,
269
- });
270
- }
271
- }
272
- class Lazy {
273
- constructor(factory) {
274
- this.factory = factory;
275
- this.isValueCreated = false;
276
- }
277
- get Value() {
278
- if (!this.isValueCreated) {
279
- this.createdValue = this.factory();
280
- this.isValueCreated = true;
281
- }
282
- return this.createdValue;
283
- }
284
- get IsValueCreated() {
285
- return this.isValueCreated;
286
- }
287
- }
288
- exports.Lazy = Lazy;
289
- function lazyFromValue(v) {
290
- return new Lazy(() => v);
291
- }
292
- function padWithZeros(i, length) {
293
- return i.toString(10).padStart(length, "0");
294
- }
295
- function padLeftAndRightWithZeros(i, lengthLeft, lengthRight) {
296
- return i.toString(10).padStart(lengthLeft, "0").padEnd(lengthRight, "0");
297
- }
298
- function dateOffset(date) {
299
- const date1 = date;
300
- return typeof date1.offset === "number"
301
- ? date1.offset
302
- : (date.kind === exports.DateTimeKind.Utc
303
- ? 0 : date.getTimezoneOffset() * -60000);
304
- }
305
- function int16ToString(i, radix) {
306
- i = i < 0 && radix != null && radix !== 10 ? 0xFFFF + i + 1 : i;
307
- return i.toString(radix);
308
- }
309
- function int32ToString(i, radix) {
310
- i = i < 0 && radix != null && radix !== 10 ? 0xFFFFFFFF + i + 1 : i;
311
- return i.toString(radix);
312
- }
313
- function int64ToString(i, radix) {
314
- i = i < 0 && radix != null && radix !== 10 ? 0xffffffffffffffffn + i + 1n : i;
315
- return i.toString(radix);
316
- }
317
- class ObjectRef {
318
- static id(o) {
319
- if (!ObjectRef.idMap.has(o)) {
320
- ObjectRef.idMap.set(o, ++ObjectRef.count);
321
- }
322
- return ObjectRef.idMap.get(o);
323
- }
324
- }
325
- exports.ObjectRef = ObjectRef;
326
- ObjectRef.idMap = new WeakMap();
327
- ObjectRef.count = 0;
328
- function stringHash(s) {
329
- let i = 0;
330
- let h = 5381;
331
- const len = s.length;
332
- while (i < len) {
333
- h = (h * 33) ^ s.charCodeAt(i++);
334
- }
335
- return h;
336
- }
337
- function numberHash(x) {
338
- return x * 2654435761 | 0;
339
- }
340
- function bigintHash(x) {
341
- return stringHash(x.toString(32));
342
- }
343
- // From https://stackoverflow.com/a/37449594
344
- function combineHashCodes(hashes) {
345
- let h1 = 0;
346
- const len = hashes.length;
347
- for (let i = 0; i < len; i++) {
348
- const h2 = hashes[i];
349
- h1 = ((h1 << 5) + h1) ^ h2;
350
- }
351
- return h1;
352
- }
353
- function physicalHash(x) {
354
- if (x == null) {
355
- return 0;
356
- }
357
- switch (typeof x) {
358
- case "boolean":
359
- return x ? 1 : 0;
360
- case "number":
361
- return numberHash(x);
362
- case "bigint":
363
- return bigintHash(x);
364
- case "string":
365
- return stringHash(x);
366
- default:
367
- return numberHash(ObjectRef.id(x));
368
- }
369
- }
370
- function identityHash(x) {
371
- if (isHashable(x)) {
372
- return x.GetHashCode();
373
- }
374
- else {
375
- return physicalHash(x);
376
- }
377
- }
378
- function dateHash(x) {
379
- return x.getTime();
380
- }
381
- function arrayHash(x) {
382
- const len = x.length;
383
- const hashes = new Array(len);
384
- for (let i = 0; i < len; i++) {
385
- hashes[i] = structuralHash(x[i]);
386
- }
387
- return combineHashCodes(hashes);
388
- }
389
- function structuralHash(x) {
390
- if (x == null) {
391
- return 0;
392
- }
393
- switch (typeof x) {
394
- case "boolean":
395
- return x ? 1 : 0;
396
- case "number":
397
- return numberHash(x);
398
- case "bigint":
399
- return bigintHash(x);
400
- case "string":
401
- return stringHash(x);
402
- default: {
403
- if (isHashable(x)) {
404
- return x.GetHashCode();
405
- }
406
- else if (isArrayLike(x)) {
407
- return arrayHash(x);
408
- }
409
- else if (x instanceof Date) {
410
- return dateHash(x);
411
- }
412
- else if (Object.getPrototypeOf(x)?.constructor === Object) {
413
- // TODO: check call-stack to prevent cyclic objects?
414
- const hashes = Object.values(x).map((v) => structuralHash(v));
415
- return combineHashCodes(hashes);
416
- }
417
- else {
418
- // Classes don't implement GetHashCode by default, but must use identity hashing
419
- return numberHash(ObjectRef.id(x));
420
- // return stringHash(String(x));
421
- }
422
- }
423
- }
424
- }
425
- // Intended for custom numeric types, like long or decimal
426
- function fastStructuralHash(x) {
427
- return stringHash(String(x));
428
- }
429
- // Intended for declared types that may or may not implement GetHashCode
430
- function safeHash(x) {
431
- // return x == null ? 0 : isHashable(x) ? x.GetHashCode() : numberHash(ObjectRef.id(x));
432
- return identityHash(x);
433
- }
434
- function equalArraysWith(x, y, eq) {
435
- if (x == null) {
436
- return y == null;
437
- }
438
- if (y == null) {
439
- return false;
440
- }
441
- if (x.length !== y.length) {
442
- return false;
443
- }
444
- for (let i = 0; i < x.length; i++) {
445
- if (!eq(x[i], y[i])) {
446
- return false;
447
- }
448
- }
449
- return true;
450
- }
451
- function equalArrays(x, y) {
452
- return equalArraysWith(x, y, equals);
453
- }
454
- function equalObjects(x, y) {
455
- const xKeys = Object.keys(x);
456
- const yKeys = Object.keys(y);
457
- if (xKeys.length !== yKeys.length) {
458
- return false;
459
- }
460
- xKeys.sort();
461
- yKeys.sort();
462
- for (let i = 0; i < xKeys.length; i++) {
463
- if (xKeys[i] !== yKeys[i] || !equals(x[xKeys[i]], y[yKeys[i]])) {
464
- return false;
465
- }
466
- }
467
- return true;
468
- }
469
- function physicalEquals(x, y) {
470
- return x === y;
471
- }
472
- function equals(x, y) {
473
- if (x === y) {
474
- return true;
475
- }
476
- else if (x == null) {
477
- return y == null;
478
- }
479
- else if (y == null) {
480
- return false;
481
- }
482
- else if (isEquatable(x)) {
483
- return x.Equals(y);
484
- }
485
- else if (isArrayLike(x)) {
486
- return isArrayLike(y) && equalArrays(x, y);
487
- }
488
- else if (typeof x !== "object") {
489
- return false;
490
- }
491
- else if (x instanceof Date) {
492
- return (y instanceof Date) && compareDates(x, y) === 0;
493
- }
494
- else {
495
- return Object.getPrototypeOf(x)?.constructor === Object && equalObjects(x, y);
496
- }
497
- }
498
- function compareDates(x, y) {
499
- let xtime;
500
- let ytime;
501
- // DateTimeOffset and DateTime deals with equality differently.
502
- if ("offset" in x && "offset" in y) {
503
- xtime = x.getTime();
504
- ytime = y.getTime();
505
- }
506
- else {
507
- xtime = x.getTime() + dateOffset(x);
508
- ytime = y.getTime() + dateOffset(y);
509
- }
510
- return xtime === ytime ? 0 : (xtime < ytime ? -1 : 1);
511
- }
512
- function comparePrimitives(x, y) {
513
- return x === y ? 0 : (x < y ? -1 : 1);
514
- }
515
- function compareArraysWith(x, y, comp) {
516
- if (x == null) {
517
- return y == null ? 0 : 1;
518
- }
519
- if (y == null) {
520
- return -1;
521
- }
522
- if (x.length !== y.length) {
523
- return x.length < y.length ? -1 : 1;
524
- }
525
- for (let i = 0, j = 0; i < x.length; i++) {
526
- j = comp(x[i], y[i]);
527
- if (j !== 0) {
528
- return j;
529
- }
530
- }
531
- return 0;
532
- }
533
- function compareArrays(x, y) {
534
- return compareArraysWith(x, y, compare);
535
- }
536
- function compareObjects(x, y) {
537
- const xKeys = Object.keys(x);
538
- const yKeys = Object.keys(y);
539
- if (xKeys.length !== yKeys.length) {
540
- return xKeys.length < yKeys.length ? -1 : 1;
541
- }
542
- xKeys.sort();
543
- yKeys.sort();
544
- for (let i = 0, j = 0; i < xKeys.length; i++) {
545
- const key = xKeys[i];
546
- if (key !== yKeys[i]) {
547
- return key < yKeys[i] ? -1 : 1;
548
- }
549
- else {
550
- j = compare(x[key], y[key]);
551
- if (j !== 0) {
552
- return j;
553
- }
554
- }
555
- }
556
- return 0;
557
- }
558
- function compare(x, y) {
559
- if (x === y) {
560
- return 0;
561
- }
562
- else if (x == null) {
563
- return y == null ? 0 : -1;
564
- }
565
- else if (y == null) {
566
- return 1;
567
- }
568
- else if (isComparable(x)) {
569
- return x.CompareTo(y);
570
- }
571
- else if (isArrayLike(x)) {
572
- return isArrayLike(y) ? compareArrays(x, y) : -1;
573
- }
574
- else if (typeof x !== "object") {
575
- return x < y ? -1 : 1;
576
- }
577
- else if (x instanceof Date) {
578
- return y instanceof Date ? compareDates(x, y) : -1;
579
- }
580
- else {
581
- return Object.getPrototypeOf(x)?.constructor === Object ? compareObjects(x, y) : -1;
582
- }
583
- }
584
- function min(comparer, x, y) {
585
- return comparer(x, y) < 0 ? x : y;
586
- }
587
- function max(comparer, x, y) {
588
- return comparer(x, y) > 0 ? x : y;
589
- }
590
- function clamp(comparer, value, min, max) {
591
- return (comparer(value, min) < 0) ? min : (comparer(value, max) > 0) ? max : value;
592
- }
593
- function createAtom(value) {
594
- let atom = value;
595
- return (...args) => {
596
- if (args.length === 0) {
597
- return atom;
598
- }
599
- else {
600
- atom = args[0];
601
- }
602
- };
603
- }
604
- function createObj(fields) {
605
- const obj = {};
606
- for (const kv of fields) {
607
- obj[kv[0]] = kv[1];
608
- }
609
- return obj;
610
- }
611
- function jsOptions(mutator) {
612
- const opts = {};
613
- mutator(opts);
614
- return opts;
615
- }
616
- function round(value, digits = 0) {
617
- const m = Math.pow(10, digits);
618
- const n = +(digits ? value * m : value).toFixed(8);
619
- const i = Math.floor(n);
620
- const f = n - i;
621
- const e = 1e-8;
622
- const r = (f > 0.5 - e && f < 0.5 + e) ? ((i % 2 === 0) ? i : i + 1) : Math.round(n);
623
- return digits ? r / m : r;
624
- }
625
- function sign(x) {
626
- return x > 0 ? 1 : x < 0 ? -1 : 0;
627
- }
628
- function unescapeDataString(s) {
629
- // https://stackoverflow.com/a/4458580/524236
630
- return decodeURIComponent((s).replace(/\+/g, "%20"));
631
- }
632
- function escapeDataString(s) {
633
- return encodeURIComponent(s).replace(/!/g, "%21")
634
- .replace(/'/g, "%27")
635
- .replace(/\(/g, "%28")
636
- .replace(/\)/g, "%29")
637
- .replace(/\*/g, "%2A");
638
- }
639
- function escapeUriString(s) {
640
- return encodeURI(s);
641
- }
642
- // ICollection.Clear and Count members can be called on Arrays
643
- // or Dictionaries so we need a runtime check (see #1120)
644
- function count(col) {
645
- if (isArrayLike(col)) {
646
- return col.length;
647
- }
648
- else {
649
- let count = 0;
650
- for (const _ of col) {
651
- count++;
652
- }
653
- return count;
654
- }
655
- }
656
- function clear(col) {
657
- if (isArrayLike(col)) {
658
- col.splice(0);
659
- }
660
- else {
661
- col.clear();
662
- }
663
- }
664
- const curried = new WeakMap();
665
- function uncurry2(f) {
666
- if (f == null) {
667
- return null;
668
- }
669
- const f2 = (a1, a2) => f(a1)(a2);
670
- curried.set(f2, f);
671
- return f2;
672
- }
673
- function curry2(f) {
674
- return curried.get(f) ?? ((a1) => (a2) => f(a1, a2));
675
- }
676
- function uncurry3(f) {
677
- if (f == null) {
678
- return null;
679
- }
680
- const f2 = (a1, a2, a3) => f(a1)(a2)(a3);
681
- curried.set(f2, f);
682
- return f2;
683
- }
684
- function curry3(f) {
685
- return curried.get(f)
686
- ?? ((a1) => (a2) => (a3) => f(a1, a2, a3));
687
- }
688
- function uncurry4(f) {
689
- if (f == null) {
690
- return null;
691
- }
692
- const f2 = (a1, a2, a3, a4) => f(a1)(a2)(a3)(a4);
693
- curried.set(f2, f);
694
- return f2;
695
- }
696
- function curry4(f) {
697
- return curried.get(f)
698
- ?? ((a1) => (a2) => (a3) => (a4) => f(a1, a2, a3, a4));
699
- }
700
- function uncurry5(f) {
701
- if (f == null) {
702
- return null;
703
- }
704
- const f2 = (a1, a2, a3, a4, a5) => f(a1)(a2)(a3)(a4)(a5);
705
- curried.set(f2, f);
706
- return f2;
707
- }
708
- function curry5(f) {
709
- return curried.get(f)
710
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => f(a1, a2, a3, a4, a5));
711
- }
712
- function uncurry6(f) {
713
- if (f == null) {
714
- return null;
715
- }
716
- const f2 = (a1, a2, a3, a4, a5, a6) => f(a1)(a2)(a3)(a4)(a5)(a6);
717
- curried.set(f2, f);
718
- return f2;
719
- }
720
- function curry6(f) {
721
- return curried.get(f)
722
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => f(a1, a2, a3, a4, a5, a6));
723
- }
724
- function uncurry7(f) {
725
- if (f == null) {
726
- return null;
727
- }
728
- const f2 = (a1, a2, a3, a4, a5, a6, a7) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7);
729
- curried.set(f2, f);
730
- return f2;
731
- }
732
- function curry7(f) {
733
- return curried.get(f)
734
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => f(a1, a2, a3, a4, a5, a6, a7));
735
- }
736
- function uncurry8(f) {
737
- if (f == null) {
738
- return null;
739
- }
740
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8);
741
- curried.set(f2, f);
742
- return f2;
743
- }
744
- function curry8(f) {
745
- return curried.get(f)
746
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => f(a1, a2, a3, a4, a5, a6, a7, a8));
747
- }
748
- function uncurry9(f) {
749
- if (f == null) {
750
- return null;
751
- }
752
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9);
753
- curried.set(f2, f);
754
- return f2;
755
- }
756
- function curry9(f) {
757
- return curried.get(f)
758
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9));
759
- }
760
- function uncurry10(f) {
761
- if (f == null) {
762
- return null;
763
- }
764
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10);
765
- curried.set(f2, f);
766
- return f2;
767
- }
768
- function curry10(f) {
769
- return curried.get(f)
770
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10));
771
- }
772
- function uncurry11(f) {
773
- if (f == null) {
774
- return null;
775
- }
776
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11);
777
- curried.set(f2, f);
778
- return f2;
779
- }
780
- function curry11(f) {
781
- return curried.get(f)
782
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11));
783
- }
784
- function uncurry12(f) {
785
- if (f == null) {
786
- return null;
787
- }
788
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12);
789
- curried.set(f2, f);
790
- return f2;
791
- }
792
- function curry12(f) {
793
- return curried.get(f)
794
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12));
795
- }
796
- function uncurry13(f) {
797
- if (f == null) {
798
- return null;
799
- }
800
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13);
801
- curried.set(f2, f);
802
- return f2;
803
- }
804
- function curry13(f) {
805
- return curried.get(f)
806
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13));
807
- }
808
- function uncurry14(f) {
809
- if (f == null) {
810
- return null;
811
- }
812
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14);
813
- curried.set(f2, f);
814
- return f2;
815
- }
816
- function curry14(f) {
817
- return curried.get(f)
818
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14));
819
- }
820
- function uncurry15(f) {
821
- if (f == null) {
822
- return null;
823
- }
824
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15);
825
- curried.set(f2, f);
826
- return f2;
827
- }
828
- function curry15(f) {
829
- return curried.get(f)
830
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15));
831
- }
832
- function uncurry16(f) {
833
- if (f == null) {
834
- return null;
835
- }
836
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15)(a16);
837
- curried.set(f2, f);
838
- return f2;
839
- }
840
- function curry16(f) {
841
- return curried.get(f)
842
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => (a16) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16));
843
- }
844
- function uncurry17(f) {
845
- if (f == null) {
846
- return null;
847
- }
848
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15)(a16)(a17);
849
- curried.set(f2, f);
850
- return f2;
851
- }
852
- function curry17(f) {
853
- return curried.get(f)
854
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => (a16) => (a17) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17));
855
- }
856
- function uncurry18(f) {
857
- if (f == null) {
858
- return null;
859
- }
860
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15)(a16)(a17)(a18);
861
- curried.set(f2, f);
862
- return f2;
863
- }
864
- function curry18(f) {
865
- return curried.get(f)
866
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => (a16) => (a17) => (a18) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18));
867
- }
868
- function uncurry19(f) {
869
- if (f == null) {
870
- return null;
871
- }
872
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15)(a16)(a17)(a18)(a19);
873
- curried.set(f2, f);
874
- return f2;
875
- }
876
- function curry19(f) {
877
- return curried.get(f)
878
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => (a16) => (a17) => (a18) => (a19) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19));
879
- }
880
- function uncurry20(f) {
881
- if (f == null) {
882
- return null;
883
- }
884
- const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15)(a16)(a17)(a18)(a19)(a20);
885
- curried.set(f2, f);
886
- return f2;
887
- }
888
- function curry20(f) {
889
- return curried.get(f)
890
- ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => (a16) => (a17) => (a18) => (a19) => (a20) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20));
891
- }
892
- // More performant method to copy arrays, see #2352
893
- function copyToArray(source, sourceIndex, target, targetIndex, count) {
894
- if (ArrayBuffer.isView(source) && ArrayBuffer.isView(target)) {
895
- target.set(source.subarray(sourceIndex, sourceIndex + count), targetIndex);
896
- }
897
- else {
898
- for (let i = 0; i < count; ++i) {
899
- target[targetIndex + i] = source[sourceIndex + i];
900
- }
901
- }
902
- }
903
- //# sourceMappingURL=Util.js.map