lawspec 0.31.0 → 0.31.1

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 (372) hide show
  1. package/CHANGELOG.md +29 -1
  2. package/README.md +10 -4
  3. package/bin/lawspec.mjs +13 -3
  4. package/build.json +9 -9
  5. package/core.wasm +2 -2
  6. package/core_jsffi.js +5 -5
  7. package/learn/adapters.mjs +226 -0
  8. package/learn/app.mjs +1279 -0
  9. package/learn/assert.mjs +33 -0
  10. package/learn/assets.mjs +15 -0
  11. package/learn/browser-runtime.mjs +58 -0
  12. package/learn/bundle.mjs +118 -0
  13. package/learn/compile-worker.mjs +106 -0
  14. package/learn/compiler.mjs +230 -0
  15. package/learn/coverage.json +8187 -0
  16. package/learn/curriculum.json +2952 -0
  17. package/learn/fantomas-worker.mjs +25 -0
  18. package/learn/format-worker.mjs +148 -0
  19. package/learn/fsharp.mjs +83 -0
  20. package/learn/harness-host.mjs +22 -0
  21. package/learn/index.html +326 -0
  22. package/learn/lawspec-core.mjs +223 -0
  23. package/learn/lawspec-language.mjs +69 -0
  24. package/learn/node-test.mjs +11 -0
  25. package/learn/presentation.mjs +73 -0
  26. package/learn/runner.mjs +72 -0
  27. package/learn/sandbox-frame.html +34 -0
  28. package/learn/sandbox.mjs +91 -0
  29. package/learn/store.mjs +141 -0
  30. package/learn/story.mjs +42 -0
  31. package/learn/style-options.json +16 -0
  32. package/learn/style.css +1023 -0
  33. package/learn/theme.js +77 -0
  34. package/learn/typescript.mjs +53 -0
  35. package/learn/vendor/@fontsource-atkinson-hyperlegible-LICENSE.txt +93 -0
  36. package/learn/vendor/@fontsource-atkinson-hyperlegible-mono-LICENSE.txt +93 -0
  37. package/learn/vendor/@fontsource-overpass-LICENSE.txt +93 -0
  38. package/learn/vendor/assemblies.json +1 -0
  39. package/learn/vendor/editor-worker.js +30 -0
  40. package/learn/vendor/editor.css +1 -0
  41. package/learn/vendor/editor.mjs +931 -0
  42. package/learn/vendor/esbuild-wasm-LICENSE.txt +21 -0
  43. package/learn/vendor/esbuild.mjs +2683 -0
  44. package/learn/vendor/esbuild.wasm +0 -0
  45. package/learn/vendor/fable-library/Array.js +1347 -0
  46. package/learn/vendor/fable-library/Async.js +134 -0
  47. package/learn/vendor/fable-library/AsyncBuilder.js +183 -0
  48. package/learn/vendor/fable-library/BigInt.js +306 -0
  49. package/learn/vendor/fable-library/BitConverter.js +138 -0
  50. package/learn/vendor/fable-library/Boolean.js +22 -0
  51. package/learn/vendor/fable-library/CHANGELOG.md +242 -0
  52. package/learn/vendor/fable-library/Char.js +202 -0
  53. package/learn/vendor/fable-library/Choice.js +184 -0
  54. package/learn/vendor/fable-library/CollectionUtil.js +182 -0
  55. package/learn/vendor/fable-library/ConditionalWeakTable.js +21 -0
  56. package/learn/vendor/fable-library/Date.js +841 -0
  57. package/learn/vendor/fable-library/DateOffset.js +261 -0
  58. package/learn/vendor/fable-library/DateOnly.js +124 -0
  59. package/learn/vendor/fable-library/Decimal.js +238 -0
  60. package/learn/vendor/fable-library/Double.js +47 -0
  61. package/learn/vendor/fable-library/Encoding.js +185 -0
  62. package/learn/vendor/fable-library/Event.js +93 -0
  63. package/learn/vendor/fable-library/FSharp.Collections.js +45 -0
  64. package/learn/vendor/fable-library/FSharp.Core.CompilerServices.js +27 -0
  65. package/learn/vendor/fable-library/FSharp.Core.js +156 -0
  66. package/learn/vendor/fable-library/Global.js +29 -0
  67. package/learn/vendor/fable-library/Guid.js +161 -0
  68. package/learn/vendor/fable-library/Int32.js +135 -0
  69. package/learn/vendor/fable-library/List.js +1323 -0
  70. package/learn/vendor/fable-library/Long.js +47 -0
  71. package/learn/vendor/fable-library/MailboxProcessor.js +94 -0
  72. package/learn/vendor/fable-library/Map.js +1396 -0
  73. package/learn/vendor/fable-library/MapUtil.js +130 -0
  74. package/learn/vendor/fable-library/MutableMap.js +339 -0
  75. package/learn/vendor/fable-library/MutableSet.js +233 -0
  76. package/learn/vendor/fable-library/Native.js +14 -0
  77. package/learn/vendor/fable-library/Numeric.js +75 -0
  78. package/learn/vendor/fable-library/Observable.js +113 -0
  79. package/learn/vendor/fable-library/Option.js +104 -0
  80. package/learn/vendor/fable-library/README.md +3 -0
  81. package/learn/vendor/fable-library/Random.js +172 -0
  82. package/learn/vendor/fable-library/Range.js +45 -0
  83. package/learn/vendor/fable-library/Reflection.js +479 -0
  84. package/learn/vendor/fable-library/RegExp.js +141 -0
  85. package/learn/vendor/fable-library/Result.js +165 -0
  86. package/learn/vendor/fable-library/Seq.js +1417 -0
  87. package/learn/vendor/fable-library/Seq2.js +111 -0
  88. package/learn/vendor/fable-library/Set.js +1816 -0
  89. package/learn/vendor/fable-library/String.js +674 -0
  90. package/learn/vendor/fable-library/System.Collections.Generic.js +333 -0
  91. package/learn/vendor/fable-library/System.Text.js +200 -0
  92. package/learn/vendor/fable-library/System.js +289 -0
  93. package/learn/vendor/fable-library/TimeOnly.js +122 -0
  94. package/learn/vendor/fable-library/TimeSpan.js +180 -0
  95. package/learn/vendor/fable-library/Timer.js +67 -0
  96. package/learn/vendor/fable-library/Types.js +198 -0
  97. package/learn/vendor/fable-library/Unicode.13.0.0.js +4 -0
  98. package/learn/vendor/fable-library/Uri.js +165 -0
  99. package/learn/vendor/fable-library/Util.js +796 -0
  100. package/learn/vendor/fable-library/big.d.ts +338 -0
  101. package/learn/vendor/fable-library/lib/big.js +825 -0
  102. package/learn/vendor/fable-library/package.json +24 -0
  103. package/learn/vendor/fable-library/quotation.js +618 -0
  104. package/learn/vendor/fable.js +430 -0
  105. package/learn/vendor/fantomas/FSharp.Core.uawo19tl4c.wasm +0 -0
  106. package/learn/vendor/fantomas/Fantomas.Core.stnanlnpyw.wasm +0 -0
  107. package/learn/vendor/fantomas/Fantomas.FCS.lqohfu5o9y.wasm +0 -0
  108. package/learn/vendor/fantomas/LawSpec.Learn.Formatter.5arcua4vy0.wasm +0 -0
  109. package/learn/vendor/fantomas/LawSpec.Learn.Formatter.u1ne3a6xd2.wasm +0 -0
  110. package/learn/vendor/fantomas/Microsoft.CSharp.mp8lhr6rez.wasm +0 -0
  111. package/learn/vendor/fantomas/Microsoft.VisualBasic.0e5fchkecn.wasm +0 -0
  112. package/learn/vendor/fantomas/Microsoft.VisualBasic.Core.17wn27qal2.wasm +0 -0
  113. package/learn/vendor/fantomas/Microsoft.Win32.Primitives.9d566sle9e.wasm +0 -0
  114. package/learn/vendor/fantomas/Microsoft.Win32.Registry.52dy96yk8i.wasm +0 -0
  115. package/learn/vendor/fantomas/System.AppContext.jwujeh069z.wasm +0 -0
  116. package/learn/vendor/fantomas/System.Buffers.y0isk1x97h.wasm +0 -0
  117. package/learn/vendor/fantomas/System.Collections.Concurrent.x5koi7bzem.wasm +0 -0
  118. package/learn/vendor/fantomas/System.Collections.Immutable.diwg7advch.wasm +0 -0
  119. package/learn/vendor/fantomas/System.Collections.NonGeneric.4089xs440e.wasm +0 -0
  120. package/learn/vendor/fantomas/System.Collections.Specialized.hj81u7zblb.wasm +0 -0
  121. package/learn/vendor/fantomas/System.Collections.nvrdeoknr1.wasm +0 -0
  122. package/learn/vendor/fantomas/System.ComponentModel.Annotations.yatcnfjeuk.wasm +0 -0
  123. package/learn/vendor/fantomas/System.ComponentModel.DataAnnotations.led9l5awu3.wasm +0 -0
  124. package/learn/vendor/fantomas/System.ComponentModel.EventBasedAsync.hpvp6cf4de.wasm +0 -0
  125. package/learn/vendor/fantomas/System.ComponentModel.Primitives.v7cajwpaqo.wasm +0 -0
  126. package/learn/vendor/fantomas/System.ComponentModel.TypeConverter.xk1hnyt762.wasm +0 -0
  127. package/learn/vendor/fantomas/System.ComponentModel.rrnda1lucx.wasm +0 -0
  128. package/learn/vendor/fantomas/System.Configuration.bn9vghjcq8.wasm +0 -0
  129. package/learn/vendor/fantomas/System.Console.09ajpiafhz.wasm +0 -0
  130. package/learn/vendor/fantomas/System.Core.wc649o5mw9.wasm +0 -0
  131. package/learn/vendor/fantomas/System.Data.Common.s4cowzd9a9.wasm +0 -0
  132. package/learn/vendor/fantomas/System.Data.DataSetExtensions.5fm360ikxl.wasm +0 -0
  133. package/learn/vendor/fantomas/System.Data.fsu4j4t4jw.wasm +0 -0
  134. package/learn/vendor/fantomas/System.Diagnostics.Contracts.p74re5oxzn.wasm +0 -0
  135. package/learn/vendor/fantomas/System.Diagnostics.Debug.622sixg49n.wasm +0 -0
  136. package/learn/vendor/fantomas/System.Diagnostics.DiagnosticSource.2j35bc2g2b.wasm +0 -0
  137. package/learn/vendor/fantomas/System.Diagnostics.FileVersionInfo.7n0wdvltaa.wasm +0 -0
  138. package/learn/vendor/fantomas/System.Diagnostics.Process.8iffh49mew.wasm +0 -0
  139. package/learn/vendor/fantomas/System.Diagnostics.StackTrace.1yz88vico8.wasm +0 -0
  140. package/learn/vendor/fantomas/System.Diagnostics.TextWriterTraceListener.ua8iuh2vhj.wasm +0 -0
  141. package/learn/vendor/fantomas/System.Diagnostics.Tools.roy5445ugj.wasm +0 -0
  142. package/learn/vendor/fantomas/System.Diagnostics.TraceSource.6qx1ldzz7g.wasm +0 -0
  143. package/learn/vendor/fantomas/System.Diagnostics.Tracing.b4799zpaas.wasm +0 -0
  144. package/learn/vendor/fantomas/System.Drawing.8gcjjqj0pu.wasm +0 -0
  145. package/learn/vendor/fantomas/System.Drawing.Primitives.y2uveru2yk.wasm +0 -0
  146. package/learn/vendor/fantomas/System.Dynamic.Runtime.023zrvzh9x.wasm +0 -0
  147. package/learn/vendor/fantomas/System.Formats.Asn1.znpklkbgqv.wasm +0 -0
  148. package/learn/vendor/fantomas/System.Formats.Tar.5yybjepfi2.wasm +0 -0
  149. package/learn/vendor/fantomas/System.Globalization.Calendars.10g6hyjy3k.wasm +0 -0
  150. package/learn/vendor/fantomas/System.Globalization.Extensions.hrinfrismg.wasm +0 -0
  151. package/learn/vendor/fantomas/System.Globalization.uvs4rah8fk.wasm +0 -0
  152. package/learn/vendor/fantomas/System.IO.4j645gw40d.wasm +0 -0
  153. package/learn/vendor/fantomas/System.IO.Compression.2z7vdt6tfb.wasm +0 -0
  154. package/learn/vendor/fantomas/System.IO.Compression.Brotli.fv80xs79j3.wasm +0 -0
  155. package/learn/vendor/fantomas/System.IO.Compression.FileSystem.88jdddz3sw.wasm +0 -0
  156. package/learn/vendor/fantomas/System.IO.Compression.ZipFile.jkn9avr4vo.wasm +0 -0
  157. package/learn/vendor/fantomas/System.IO.FileSystem.AccessControl.yme0uhbu37.wasm +0 -0
  158. package/learn/vendor/fantomas/System.IO.FileSystem.DriveInfo.qas7wf73rs.wasm +0 -0
  159. package/learn/vendor/fantomas/System.IO.FileSystem.Primitives.d1jmhkzu0e.wasm +0 -0
  160. package/learn/vendor/fantomas/System.IO.FileSystem.Watcher.z570derp0d.wasm +0 -0
  161. package/learn/vendor/fantomas/System.IO.FileSystem.o6jtz51fup.wasm +0 -0
  162. package/learn/vendor/fantomas/System.IO.IsolatedStorage.hqyeyb5ipe.wasm +0 -0
  163. package/learn/vendor/fantomas/System.IO.MemoryMappedFiles.zhamjnusxd.wasm +0 -0
  164. package/learn/vendor/fantomas/System.IO.Pipelines.wrmw5vws31.wasm +0 -0
  165. package/learn/vendor/fantomas/System.IO.Pipes.AccessControl.qcancj8gj2.wasm +0 -0
  166. package/learn/vendor/fantomas/System.IO.Pipes.zhcyguvwkr.wasm +0 -0
  167. package/learn/vendor/fantomas/System.IO.UnmanagedMemoryStream.o8cpjnlard.wasm +0 -0
  168. package/learn/vendor/fantomas/System.Linq.AsyncEnumerable.hyc0b7okjw.wasm +0 -0
  169. package/learn/vendor/fantomas/System.Linq.Expressions.ldibvm0efj.wasm +0 -0
  170. package/learn/vendor/fantomas/System.Linq.Parallel.2buevezvch.wasm +0 -0
  171. package/learn/vendor/fantomas/System.Linq.Queryable.cvq43g1awj.wasm +0 -0
  172. package/learn/vendor/fantomas/System.Linq.lz6mvi0hm2.wasm +0 -0
  173. package/learn/vendor/fantomas/System.Memory.3jekerw0ga.wasm +0 -0
  174. package/learn/vendor/fantomas/System.Net.Http.Json.8k237kkwec.wasm +0 -0
  175. package/learn/vendor/fantomas/System.Net.Http.cityx2bvcl.wasm +0 -0
  176. package/learn/vendor/fantomas/System.Net.HttpListener.s1jreclykx.wasm +0 -0
  177. package/learn/vendor/fantomas/System.Net.Mail.cmlj4c0gto.wasm +0 -0
  178. package/learn/vendor/fantomas/System.Net.NameResolution.q3gf18q13l.wasm +0 -0
  179. package/learn/vendor/fantomas/System.Net.NetworkInformation.xaz5tjw7d0.wasm +0 -0
  180. package/learn/vendor/fantomas/System.Net.Ping.a40atim1h0.wasm +0 -0
  181. package/learn/vendor/fantomas/System.Net.Primitives.i88i20r8sr.wasm +0 -0
  182. package/learn/vendor/fantomas/System.Net.Quic.hx06eo5xkj.wasm +0 -0
  183. package/learn/vendor/fantomas/System.Net.Requests.hkjxlfe5f5.wasm +0 -0
  184. package/learn/vendor/fantomas/System.Net.Security.ch34yya69o.wasm +0 -0
  185. package/learn/vendor/fantomas/System.Net.ServerSentEvents.0u7o0jk3p1.wasm +0 -0
  186. package/learn/vendor/fantomas/System.Net.ServicePoint.xbhxnytx4l.wasm +0 -0
  187. package/learn/vendor/fantomas/System.Net.Sockets.hzgzlvkc9l.wasm +0 -0
  188. package/learn/vendor/fantomas/System.Net.WebClient.84i8nwzbgu.wasm +0 -0
  189. package/learn/vendor/fantomas/System.Net.WebHeaderCollection.326nl7s9g3.wasm +0 -0
  190. package/learn/vendor/fantomas/System.Net.WebProxy.oq3mgkkqef.wasm +0 -0
  191. package/learn/vendor/fantomas/System.Net.WebSockets.2cx1v74vg8.wasm +0 -0
  192. package/learn/vendor/fantomas/System.Net.WebSockets.Client.rafzkktw8j.wasm +0 -0
  193. package/learn/vendor/fantomas/System.Net.w1hpj3bo6r.wasm +0 -0
  194. package/learn/vendor/fantomas/System.Numerics.Vectors.oyv7biw9ux.wasm +0 -0
  195. package/learn/vendor/fantomas/System.Numerics.lyu36wqn19.wasm +0 -0
  196. package/learn/vendor/fantomas/System.ObjectModel.kxu80demuu.wasm +0 -0
  197. package/learn/vendor/fantomas/System.Private.CoreLib.1vy46s12u6.wasm +0 -0
  198. package/learn/vendor/fantomas/System.Private.DataContractSerialization.ao8k9iu77a.wasm +0 -0
  199. package/learn/vendor/fantomas/System.Private.Uri.itn0n2zjd0.wasm +0 -0
  200. package/learn/vendor/fantomas/System.Private.Xml.19nzpxrx8w.wasm +0 -0
  201. package/learn/vendor/fantomas/System.Private.Xml.Linq.tw5eq1hjvo.wasm +0 -0
  202. package/learn/vendor/fantomas/System.Reflection.DispatchProxy.7lajnj8s8c.wasm +0 -0
  203. package/learn/vendor/fantomas/System.Reflection.Emit.7liz9zln06.wasm +0 -0
  204. package/learn/vendor/fantomas/System.Reflection.Emit.ILGeneration.1ut3qgacw8.wasm +0 -0
  205. package/learn/vendor/fantomas/System.Reflection.Emit.Lightweight.d0gvllb1jj.wasm +0 -0
  206. package/learn/vendor/fantomas/System.Reflection.Extensions.zr5bhwfczd.wasm +0 -0
  207. package/learn/vendor/fantomas/System.Reflection.Metadata.ff6np6mz2j.wasm +0 -0
  208. package/learn/vendor/fantomas/System.Reflection.Primitives.igpmvwv78c.wasm +0 -0
  209. package/learn/vendor/fantomas/System.Reflection.TypeExtensions.qouojzlnp9.wasm +0 -0
  210. package/learn/vendor/fantomas/System.Reflection.mk3jyxvh13.wasm +0 -0
  211. package/learn/vendor/fantomas/System.Resources.Reader.41ppfyz2vc.wasm +0 -0
  212. package/learn/vendor/fantomas/System.Resources.ResourceManager.sfwvfmw1ea.wasm +0 -0
  213. package/learn/vendor/fantomas/System.Resources.Writer.3uvs9tp38z.wasm +0 -0
  214. package/learn/vendor/fantomas/System.Runtime.CompilerServices.Unsafe.puz1xm53oc.wasm +0 -0
  215. package/learn/vendor/fantomas/System.Runtime.CompilerServices.VisualC.9qdau315py.wasm +0 -0
  216. package/learn/vendor/fantomas/System.Runtime.Extensions.i7gntui96b.wasm +0 -0
  217. package/learn/vendor/fantomas/System.Runtime.Handles.00oxj4o6ov.wasm +0 -0
  218. package/learn/vendor/fantomas/System.Runtime.InteropServices.JavaScript.9kq1vofond.wasm +0 -0
  219. package/learn/vendor/fantomas/System.Runtime.InteropServices.RuntimeInformation.my7qeqbhfh.wasm +0 -0
  220. package/learn/vendor/fantomas/System.Runtime.InteropServices.vqp80tnwc7.wasm +0 -0
  221. package/learn/vendor/fantomas/System.Runtime.Intrinsics.u0samjybfo.wasm +0 -0
  222. package/learn/vendor/fantomas/System.Runtime.Loader.n6zxw1b98a.wasm +0 -0
  223. package/learn/vendor/fantomas/System.Runtime.Numerics.o40sjhz59x.wasm +0 -0
  224. package/learn/vendor/fantomas/System.Runtime.Serialization.Formatters.1esvva4te3.wasm +0 -0
  225. package/learn/vendor/fantomas/System.Runtime.Serialization.Json.4n7u09advh.wasm +0 -0
  226. package/learn/vendor/fantomas/System.Runtime.Serialization.Primitives.xs2bo91wvk.wasm +0 -0
  227. package/learn/vendor/fantomas/System.Runtime.Serialization.Xml.ny21jmziti.wasm +0 -0
  228. package/learn/vendor/fantomas/System.Runtime.Serialization.qcxaur5wqs.wasm +0 -0
  229. package/learn/vendor/fantomas/System.Runtime.odq454d6j9.wasm +0 -0
  230. package/learn/vendor/fantomas/System.Security.AccessControl.8yfnzmqzaq.wasm +0 -0
  231. package/learn/vendor/fantomas/System.Security.Claims.8ogy0860de.wasm +0 -0
  232. package/learn/vendor/fantomas/System.Security.Cryptography.Algorithms.8zijp1svfw.wasm +0 -0
  233. package/learn/vendor/fantomas/System.Security.Cryptography.Cng.yxagtt77no.wasm +0 -0
  234. package/learn/vendor/fantomas/System.Security.Cryptography.Csp.uhfbvvau84.wasm +0 -0
  235. package/learn/vendor/fantomas/System.Security.Cryptography.Encoding.2ywrusvy8q.wasm +0 -0
  236. package/learn/vendor/fantomas/System.Security.Cryptography.OpenSsl.oa268u7i92.wasm +0 -0
  237. package/learn/vendor/fantomas/System.Security.Cryptography.Primitives.5uhvqe8puk.wasm +0 -0
  238. package/learn/vendor/fantomas/System.Security.Cryptography.X509Certificates.6i7pxilopt.wasm +0 -0
  239. package/learn/vendor/fantomas/System.Security.Cryptography.d0quqk1iyr.wasm +0 -0
  240. package/learn/vendor/fantomas/System.Security.Principal.Windows.gpqua4rz29.wasm +0 -0
  241. package/learn/vendor/fantomas/System.Security.Principal.i20kfklf3g.wasm +0 -0
  242. package/learn/vendor/fantomas/System.Security.SecureString.x2y8tzci3c.wasm +0 -0
  243. package/learn/vendor/fantomas/System.Security.e83vvh6sl2.wasm +0 -0
  244. package/learn/vendor/fantomas/System.ServiceModel.Web.poglliv2no.wasm +0 -0
  245. package/learn/vendor/fantomas/System.ServiceProcess.yro5uj2opo.wasm +0 -0
  246. package/learn/vendor/fantomas/System.Text.Encoding.CodePages.2wchx40i7z.wasm +0 -0
  247. package/learn/vendor/fantomas/System.Text.Encoding.Extensions.8utaw61kn5.wasm +0 -0
  248. package/learn/vendor/fantomas/System.Text.Encoding.cxdyfepnpj.wasm +0 -0
  249. package/learn/vendor/fantomas/System.Text.Encodings.Web.37ehbi7cye.wasm +0 -0
  250. package/learn/vendor/fantomas/System.Text.Json.ixiaa8hd3h.wasm +0 -0
  251. package/learn/vendor/fantomas/System.Text.RegularExpressions.2fhfmkk6vf.wasm +0 -0
  252. package/learn/vendor/fantomas/System.Threading.6pry74a050.wasm +0 -0
  253. package/learn/vendor/fantomas/System.Threading.AccessControl.76zfdfy8go.wasm +0 -0
  254. package/learn/vendor/fantomas/System.Threading.Channels.gpxnr01lmp.wasm +0 -0
  255. package/learn/vendor/fantomas/System.Threading.Overlapped.aqpl8tzdyc.wasm +0 -0
  256. package/learn/vendor/fantomas/System.Threading.Tasks.Dataflow.ytwttt7fzh.wasm +0 -0
  257. package/learn/vendor/fantomas/System.Threading.Tasks.Extensions.0deavcb00v.wasm +0 -0
  258. package/learn/vendor/fantomas/System.Threading.Tasks.Parallel.tjwtxugso0.wasm +0 -0
  259. package/learn/vendor/fantomas/System.Threading.Tasks.fu4qd5h3qy.wasm +0 -0
  260. package/learn/vendor/fantomas/System.Threading.Thread.klaua2by9m.wasm +0 -0
  261. package/learn/vendor/fantomas/System.Threading.ThreadPool.mkzm212njz.wasm +0 -0
  262. package/learn/vendor/fantomas/System.Threading.Timer.yp49llu5h2.wasm +0 -0
  263. package/learn/vendor/fantomas/System.Transactions.Local.vz6cgeh4w7.wasm +0 -0
  264. package/learn/vendor/fantomas/System.Transactions.ipwm3rsy66.wasm +0 -0
  265. package/learn/vendor/fantomas/System.ValueTuple.7ol6ljuhx8.wasm +0 -0
  266. package/learn/vendor/fantomas/System.Web.HttpUtility.itlvncjd96.wasm +0 -0
  267. package/learn/vendor/fantomas/System.Web.np8uzzakvl.wasm +0 -0
  268. package/learn/vendor/fantomas/System.Windows.18nzio44t3.wasm +0 -0
  269. package/learn/vendor/fantomas/System.Xml.45jprtg1pa.wasm +0 -0
  270. package/learn/vendor/fantomas/System.Xml.Linq.v9v8udncm1.wasm +0 -0
  271. package/learn/vendor/fantomas/System.Xml.ReaderWriter.a9mr08uzci.wasm +0 -0
  272. package/learn/vendor/fantomas/System.Xml.Serialization.03juoguwgc.wasm +0 -0
  273. package/learn/vendor/fantomas/System.Xml.XDocument.c9dhjnzqjb.wasm +0 -0
  274. package/learn/vendor/fantomas/System.Xml.XPath.XDocument.138b12i1pm.wasm +0 -0
  275. package/learn/vendor/fantomas/System.Xml.XPath.pvxm9341ce.wasm +0 -0
  276. package/learn/vendor/fantomas/System.Xml.XmlDocument.450wsyxvl0.wasm +0 -0
  277. package/learn/vendor/fantomas/System.Xml.XmlSerializer.y3t2n0tce7.wasm +0 -0
  278. package/learn/vendor/fantomas/System.gjriafnqmz.wasm +0 -0
  279. package/learn/vendor/fantomas/WindowsBase.8zsce9qxfb.wasm +0 -0
  280. package/learn/vendor/fantomas/cs/FSharp.Core.resources.9ehmavdel7.wasm +0 -0
  281. package/learn/vendor/fantomas/de/FSharp.Core.resources.2ofmxloa01.wasm +0 -0
  282. package/learn/vendor/fantomas/dotnet.js +1233 -0
  283. package/learn/vendor/fantomas/dotnet.native.b6l13xorvf.js +16 -0
  284. package/learn/vendor/fantomas/dotnet.native.rw4kynp763.wasm +0 -0
  285. package/learn/vendor/fantomas/dotnet.runtime.v06hirbjsv.js +4 -0
  286. package/learn/vendor/fantomas/es/FSharp.Core.resources.hkr5ggb4tr.wasm +0 -0
  287. package/learn/vendor/fantomas/fr/FSharp.Core.resources.43soen28ow.wasm +0 -0
  288. package/learn/vendor/fantomas/icudt_CJK.tjcz0u77k5.dat +0 -0
  289. package/learn/vendor/fantomas/icudt_EFIGS.tptq2av103.dat +0 -0
  290. package/learn/vendor/fantomas/icudt_no_CJK.lfu7j35m59.dat +0 -0
  291. package/learn/vendor/fantomas/it/FSharp.Core.resources.m60n5ls7oq.wasm +0 -0
  292. package/learn/vendor/fantomas/ja/FSharp.Core.resources.o6oof69v14.wasm +0 -0
  293. package/learn/vendor/fantomas/ko/FSharp.Core.resources.q6l4snlu9o.wasm +0 -0
  294. package/learn/vendor/fantomas/mscorlib.8ptuc08eli.wasm +0 -0
  295. package/learn/vendor/fantomas/netstandard.eymp85mooh.wasm +0 -0
  296. package/learn/vendor/fantomas/pl/FSharp.Core.resources.8bni0w6j8b.wasm +0 -0
  297. package/learn/vendor/fantomas/pt-BR/FSharp.Core.resources.k849vqm41u.wasm +0 -0
  298. package/learn/vendor/fantomas/ru/FSharp.Core.resources.jz9rhhtsla.wasm +0 -0
  299. package/learn/vendor/fantomas/tr/FSharp.Core.resources.wn6vbvjm1u.wasm +0 -0
  300. package/learn/vendor/fantomas/zh-Hans/FSharp.Core.resources.z7zzbso094.wasm +0 -0
  301. package/learn/vendor/fantomas/zh-Hant/FSharp.Core.resources.iammfsi7ls.wasm +0 -0
  302. package/learn/vendor/fast-check-LICENSE.txt +21 -0
  303. package/learn/vendor/fast-check.mjs +37 -0
  304. package/learn/vendor/fonts/atkinson-hyperlegible-latin-400-normal.woff2 +0 -0
  305. package/learn/vendor/fonts/atkinson-hyperlegible-latin-700-normal.woff2 +0 -0
  306. package/learn/vendor/fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2 +0 -0
  307. package/learn/vendor/fonts/overpass-latin-600-normal.woff2 +0 -0
  308. package/learn/vendor/fonts/overpass-latin-700-normal.woff2 +0 -0
  309. package/learn/vendor/formatter-licenses/DotNet-LICENSE.txt +23 -0
  310. package/learn/vendor/formatter-licenses/DotNet-THIRD-PARTY-NOTICES.txt +1418 -0
  311. package/learn/vendor/formatter-licenses/FSharp-LICENSE.txt +23 -0
  312. package/learn/vendor/formatter-licenses/Fantomas-LICENSE.txt +202 -0
  313. package/learn/vendor/formatter-licenses/README.md +12 -0
  314. package/learn/vendor/manifest.json +1358 -0
  315. package/learn/vendor/metadata/Browser.Blob.dll +0 -0
  316. package/learn/vendor/metadata/Browser.Dom.dll +0 -0
  317. package/learn/vendor/metadata/Browser.Event.dll +0 -0
  318. package/learn/vendor/metadata/Browser.Gamepad.dll +0 -0
  319. package/learn/vendor/metadata/Browser.WebGL.dll +0 -0
  320. package/learn/vendor/metadata/Browser.WebStorage.dll +0 -0
  321. package/learn/vendor/metadata/FSharp.Core.dll +0 -0
  322. package/learn/vendor/metadata/Fable.Core.dll +0 -0
  323. package/learn/vendor/metadata/Fable.Repl.Lib.dll +0 -0
  324. package/learn/vendor/metadata/System.Collections.Concurrent.dll +0 -0
  325. package/learn/vendor/metadata/System.Collections.dll +0 -0
  326. package/learn/vendor/metadata/System.ComponentModel.Primitives.dll +0 -0
  327. package/learn/vendor/metadata/System.ComponentModel.TypeConverter.dll +0 -0
  328. package/learn/vendor/metadata/System.ComponentModel.dll +0 -0
  329. package/learn/vendor/metadata/System.Console.dll +0 -0
  330. package/learn/vendor/metadata/System.Core.dll +0 -0
  331. package/learn/vendor/metadata/System.Diagnostics.Debug.dll +0 -0
  332. package/learn/vendor/metadata/System.Diagnostics.Tools.dll +0 -0
  333. package/learn/vendor/metadata/System.Diagnostics.Tracing.dll +0 -0
  334. package/learn/vendor/metadata/System.Globalization.dll +0 -0
  335. package/learn/vendor/metadata/System.IO.dll +0 -0
  336. package/learn/vendor/metadata/System.Net.Requests.dll +0 -0
  337. package/learn/vendor/metadata/System.Net.WebClient.dll +0 -0
  338. package/learn/vendor/metadata/System.Numerics.dll +0 -0
  339. package/learn/vendor/metadata/System.Reflection.Extensions.dll +0 -0
  340. package/learn/vendor/metadata/System.Reflection.Metadata.dll +0 -0
  341. package/learn/vendor/metadata/System.Reflection.Primitives.dll +0 -0
  342. package/learn/vendor/metadata/System.Reflection.TypeExtensions.dll +0 -0
  343. package/learn/vendor/metadata/System.Reflection.dll +0 -0
  344. package/learn/vendor/metadata/System.Runtime.Extensions.dll +0 -0
  345. package/learn/vendor/metadata/System.Runtime.InteropServices.dll +0 -0
  346. package/learn/vendor/metadata/System.Runtime.Numerics.dll +0 -0
  347. package/learn/vendor/metadata/System.Runtime.dll +0 -0
  348. package/learn/vendor/metadata/System.Text.Encoding.Extensions.dll +0 -0
  349. package/learn/vendor/metadata/System.Text.Encoding.dll +0 -0
  350. package/learn/vendor/metadata/System.Text.RegularExpressions.dll +0 -0
  351. package/learn/vendor/metadata/System.Threading.Tasks.dll +0 -0
  352. package/learn/vendor/metadata/System.Threading.Thread.dll +0 -0
  353. package/learn/vendor/metadata/System.Threading.dll +0 -0
  354. package/learn/vendor/metadata/System.ValueTuple.dll +0 -0
  355. package/learn/vendor/metadata/System.dll +0 -0
  356. package/learn/vendor/metadata/mscorlib.dll +0 -0
  357. package/learn/vendor/metadata/netstandard.dll +0 -0
  358. package/learn/vendor/monaco-editor-LICENSE.txt +21 -0
  359. package/learn/vendor/prettier/babel.mjs +16 -0
  360. package/learn/vendor/prettier/brace-style.mjs +376 -0
  361. package/learn/vendor/prettier/estree.mjs +44 -0
  362. package/learn/vendor/prettier/standalone.mjs +29 -0
  363. package/learn/vendor/prettier/typescript.mjs +22 -0
  364. package/learn/vendor/prettier-LICENSE.txt +7 -0
  365. package/learn/vendor/prettier-plugin-brace-style-LICENSE.txt +21 -0
  366. package/learn/vendor/typescript-LICENSE.txt +55 -0
  367. package/learn/vendor/typescript-libs.json +1 -0
  368. package/learn/vendor/typescript.mjs +451 -0
  369. package/learn/vendor/zod-LICENSE.txt +21 -0
  370. package/learn/web-format.mjs +8 -0
  371. package/learn.mjs +126 -0
  372. package/package.json +3 -2
@@ -0,0 +1,198 @@
1
+ import { Exception, combineHashCodes, compare, compareArrays, equalArrays, equals, sameConstructor, numberHash, structuralHash } from "./Util.js";
2
+ export function seqToString(self) {
3
+ let count = 0;
4
+ let str = "[";
5
+ for (const x of self) {
6
+ if (count === 0) {
7
+ str += toString(x);
8
+ }
9
+ else if (count === 100) {
10
+ str += "; ...";
11
+ break;
12
+ }
13
+ else {
14
+ str += "; " + toString(x);
15
+ }
16
+ count++;
17
+ }
18
+ return str + "]";
19
+ }
20
+ export function toString(x, callStack = 0) {
21
+ if (x != null && typeof x === "object") {
22
+ if (typeof x.toString === "function" && x.toString !== Object.prototype.toString) {
23
+ return x.toString();
24
+ }
25
+ else if (Symbol.iterator in x) {
26
+ return seqToString(x);
27
+ }
28
+ else { // TODO: Date?
29
+ const cons = Object.getPrototypeOf(x)?.constructor;
30
+ return cons === Object && callStack < 10
31
+ // Same format as recordToString
32
+ ? "{ " + Object.entries(x).map(([k, v]) => k + " = " + toString(v, callStack + 1)).join("\n ") + " }"
33
+ : cons?.name ?? "";
34
+ }
35
+ }
36
+ return String(x);
37
+ }
38
+ export function unionToString(name, fields) {
39
+ function unionFieldToString(x) {
40
+ if (typeof x === "string") {
41
+ return '"' + x + '"';
42
+ }
43
+ return toString(x);
44
+ }
45
+ if (fields.length === 0) {
46
+ return name;
47
+ }
48
+ else {
49
+ let fieldStr;
50
+ let withParens = true;
51
+ if (fields.length === 1) {
52
+ fieldStr = unionFieldToString(fields[0]);
53
+ withParens = fieldStr.indexOf(" ") >= 0;
54
+ }
55
+ else {
56
+ fieldStr = fields.map((x) => unionFieldToString(x)).join(", ");
57
+ }
58
+ return name + (withParens ? " (" : " ") + fieldStr + (withParens ? ")" : "");
59
+ }
60
+ }
61
+ export class Union {
62
+ get name() {
63
+ return this.cases()[this.tag];
64
+ }
65
+ toJSON() {
66
+ return this.fields.length === 0 ? this.name : [this.name].concat(this.fields);
67
+ }
68
+ toString() {
69
+ return unionToString(this.name, this.fields);
70
+ }
71
+ GetHashCode() {
72
+ const hashes = this.fields.map((x) => structuralHash(x));
73
+ hashes.splice(0, 0, numberHash(this.tag));
74
+ return combineHashCodes(hashes);
75
+ }
76
+ Equals(other) {
77
+ if (this === other) {
78
+ return true;
79
+ }
80
+ else if (!sameConstructor(this, other)) {
81
+ return false;
82
+ }
83
+ else if (this.tag === other.tag) {
84
+ return equalArrays(this.fields, other.fields);
85
+ }
86
+ else {
87
+ return false;
88
+ }
89
+ }
90
+ CompareTo(other) {
91
+ if (this === other) {
92
+ return 0;
93
+ }
94
+ else if (!sameConstructor(this, other)) {
95
+ return -1;
96
+ }
97
+ else if (this.tag === other.tag) {
98
+ return compareArrays(this.fields, other.fields);
99
+ }
100
+ else {
101
+ return this.tag < other.tag ? -1 : 1;
102
+ }
103
+ }
104
+ }
105
+ function recordToJSON(self) {
106
+ const o = {};
107
+ const keys = Object.keys(self);
108
+ for (let i = 0; i < keys.length; i++) {
109
+ o[keys[i]] = self[keys[i]];
110
+ }
111
+ return o;
112
+ }
113
+ function recordToString(self) {
114
+ return "{ " + Object.entries(self).map(([k, v]) => k + " = " + toString(v)).join("\n ") + " }";
115
+ }
116
+ function recordGetHashCode(self) {
117
+ const hashes = Object.values(self).map((v) => structuralHash(v));
118
+ return combineHashCodes(hashes);
119
+ }
120
+ function recordEquals(self, other) {
121
+ if (self === other) {
122
+ return true;
123
+ }
124
+ else if (!sameConstructor(self, other)) {
125
+ return false;
126
+ }
127
+ else {
128
+ const thisNames = Object.keys(self);
129
+ for (let i = 0; i < thisNames.length; i++) {
130
+ if (!equals(self[thisNames[i]], other[thisNames[i]])) {
131
+ return false;
132
+ }
133
+ }
134
+ return true;
135
+ }
136
+ }
137
+ function recordCompareTo(self, other) {
138
+ if (self === other) {
139
+ return 0;
140
+ }
141
+ else if (!sameConstructor(self, other)) {
142
+ return -1;
143
+ }
144
+ else {
145
+ const thisNames = Object.keys(self);
146
+ for (let i = 0; i < thisNames.length; i++) {
147
+ const result = compare(self[thisNames[i]], other[thisNames[i]]);
148
+ if (result !== 0) {
149
+ return result;
150
+ }
151
+ }
152
+ return 0;
153
+ }
154
+ }
155
+ export class Record {
156
+ toJSON() { return recordToJSON(this); }
157
+ toString() { return recordToString(this); }
158
+ GetHashCode() { return recordGetHashCode(this); }
159
+ Equals(other) { return recordEquals(this, other); }
160
+ CompareTo(other) { return recordCompareTo(this, other); }
161
+ }
162
+ export class FSharpRef {
163
+ get contents() {
164
+ return this.getter();
165
+ }
166
+ set contents(v) {
167
+ this.setter(v);
168
+ }
169
+ constructor(contentsOrGetter, setter) {
170
+ if (typeof setter === "function") {
171
+ this.getter = contentsOrGetter;
172
+ this.setter = setter;
173
+ }
174
+ else {
175
+ this.getter = () => contentsOrGetter;
176
+ this.setter = (v) => { contentsOrGetter = v; };
177
+ }
178
+ }
179
+ }
180
+ // EXCEPTIONS
181
+ export class FSharpException extends Exception {
182
+ toJSON() { return recordToJSON(this); }
183
+ toString() { return recordToString(this); }
184
+ GetHashCode() { return recordGetHashCode(this); }
185
+ Equals(other) { return recordEquals(this, other); }
186
+ CompareTo(other) { return recordCompareTo(this, other); }
187
+ }
188
+ export class MatchFailureException extends FSharpException {
189
+ constructor(arg1, arg2, arg3) {
190
+ super();
191
+ this.arg1 = arg1;
192
+ this.arg2 = arg2 | 0;
193
+ this.arg3 = arg3 | 0;
194
+ this.message = "The match cases were incomplete";
195
+ }
196
+ }
197
+ export class Attribute {
198
+ }
@@ -0,0 +1,4 @@
1
+ // Unicode 13.0.0 codepoint ranges (delta encoded) and general categories.
2
+ // Integer delta values are offset by 35 and stored as Unicode characters.
3
+ export const rangeDeltas = "#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$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$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@";
@@ -0,0 +1,165 @@
1
+ import { Exception } from "./Util.js";
2
+ export const UriKind = {
3
+ RelativeOrAbsolute: 0,
4
+ Absolute: 1,
5
+ Relative: 2,
6
+ };
7
+ const ok = (value) => ({
8
+ tag: "ok",
9
+ value,
10
+ });
11
+ const error = (error) => ({ tag: "error", error });
12
+ export class Uri {
13
+ constructor(state) {
14
+ this.uri = state;
15
+ }
16
+ static isAbsoluteUri(uri) {
17
+ try {
18
+ new URL(uri);
19
+ return true;
20
+ }
21
+ catch {
22
+ return false;
23
+ }
24
+ }
25
+ static tryCreateWithKind(uri, kind) {
26
+ switch (kind) {
27
+ case UriKind.Absolute:
28
+ return Uri.isAbsoluteUri(uri)
29
+ ? ok(new Uri({ original: uri, value: new URL(uri), kind }))
30
+ : error("Invalid URI: The format of the URI could not be determined.");
31
+ case UriKind.Relative:
32
+ return Uri.isAbsoluteUri(uri)
33
+ ? error("URI is not a relative path.")
34
+ : ok(new Uri({ original: uri, value: uri, kind }));
35
+ case UriKind.RelativeOrAbsolute:
36
+ return Uri.isAbsoluteUri(uri)
37
+ ? ok(new Uri({ original: uri, value: new URL(uri), kind: UriKind.Absolute }))
38
+ : ok(new Uri({ original: uri, value: uri, kind: UriKind.Relative }));
39
+ default:
40
+ const never = kind;
41
+ return never;
42
+ }
43
+ }
44
+ static tryCreateWithBase(baseUri, relativeUri) {
45
+ return baseUri.uri.kind !== UriKind.Absolute
46
+ ? error("Base URI should have Absolute kind")
47
+ : typeof relativeUri === "string"
48
+ ? ok(new Uri({
49
+ original: new URL(relativeUri, baseUri.uri.value).toString(),
50
+ value: new URL(relativeUri, baseUri.uri.value),
51
+ kind: UriKind.Absolute,
52
+ }))
53
+ : relativeUri.uri.kind === UriKind.Relative
54
+ ? ok(new Uri({
55
+ original: new URL(relativeUri.uri.value, baseUri.uri.value).toString(),
56
+ value: new URL(relativeUri.uri.value, baseUri.uri.value),
57
+ kind: UriKind.Absolute,
58
+ }))
59
+ : ok(baseUri);
60
+ }
61
+ static tryCreateImpl(value, kindOrUri = UriKind.Absolute) {
62
+ return typeof value === "string"
63
+ ? typeof kindOrUri !== "number"
64
+ ? error("Kind must be specified when the baseUri is a string.")
65
+ : Uri.tryCreateWithKind(value, kindOrUri)
66
+ : typeof kindOrUri === "number"
67
+ ? error("Kind should not be specified when the baseUri is an absolute Uri.")
68
+ : Uri.tryCreateWithBase(value, kindOrUri);
69
+ }
70
+ static create(value, kindOrUri = UriKind.Absolute) {
71
+ const result = Uri.tryCreateImpl(value, kindOrUri);
72
+ switch (result.tag) {
73
+ case "ok":
74
+ return result.value;
75
+ case "error":
76
+ throw new Exception(result.error);
77
+ default:
78
+ const never = result;
79
+ return never;
80
+ }
81
+ }
82
+ static tryCreate(value, kindOrUri = UriKind.Absolute, out) {
83
+ const result = Uri.tryCreateImpl(value, kindOrUri);
84
+ switch (result.tag) {
85
+ case "ok":
86
+ out.contents = result.value;
87
+ return true;
88
+ case "error":
89
+ return false;
90
+ default:
91
+ const never = result;
92
+ return never;
93
+ }
94
+ }
95
+ toString() {
96
+ switch (this.uri.kind) {
97
+ case UriKind.Absolute:
98
+ return decodeURIComponent(this.asUrl().toString());
99
+ case UriKind.Relative:
100
+ return this.uri.value;
101
+ default:
102
+ const never = this.uri;
103
+ return never;
104
+ }
105
+ }
106
+ asUrl() {
107
+ switch (this.uri.kind) {
108
+ case UriKind.Absolute:
109
+ return this.uri.value;
110
+ case UriKind.Relative:
111
+ throw new Exception("This operation is not supported for a relative URI.");
112
+ default:
113
+ const never = this.uri;
114
+ return never;
115
+ }
116
+ }
117
+ get isAbsoluteUri() {
118
+ return this.uri.kind === UriKind.Absolute;
119
+ }
120
+ get absoluteUri() {
121
+ return this.asUrl().href;
122
+ }
123
+ get scheme() {
124
+ const protocol = this.asUrl().protocol;
125
+ return protocol.slice(0, protocol.length - 1);
126
+ }
127
+ get host() {
128
+ const host = this.asUrl().host;
129
+ if (host.includes(":")) {
130
+ return host.split(":")[0];
131
+ }
132
+ else {
133
+ return host;
134
+ }
135
+ }
136
+ get absolutePath() {
137
+ return this.asUrl().pathname;
138
+ }
139
+ get query() {
140
+ return this.asUrl().search;
141
+ }
142
+ get isDefaultPort() {
143
+ return this.port === 80;
144
+ }
145
+ get port() {
146
+ const port = this.asUrl().port;
147
+ if (port === "") {
148
+ return 80;
149
+ }
150
+ else {
151
+ return parseInt(port);
152
+ }
153
+ }
154
+ get pathAndQuery() {
155
+ const url = this.asUrl();
156
+ return url.pathname + url.search;
157
+ }
158
+ get fragment() {
159
+ return this.asUrl().hash;
160
+ }
161
+ get originalString() {
162
+ return this.uri.original;
163
+ }
164
+ }
165
+ export default Uri;