netkitty 0.0.16 → 0.0.17

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 (273) hide show
  1. package/README.md +1 -1
  2. package/assets/NetKitty.png +0 -0
  3. package/package.json +28 -4
  4. package/src/CodecExports.ts +33 -0
  5. package/src/CodecHeaderExports.ts +1 -0
  6. package/src/HelperExports.ts +78 -0
  7. package/src/NetKitty.ts +89 -90
  8. package/src/NetworkExports.ts +12 -0
  9. package/src/PcapExports.ts +16 -0
  10. package/src/lib/codec/Codec.ts +2 -29
  11. package/src/lib/codec/PacketHeaders.ts +13 -0
  12. package/src/lib/codec/headers/ARP.ts +7 -7
  13. package/src/lib/codec/headers/EthernetII.ts +1 -1
  14. package/src/lib/codec/headers/Goose.ts +6 -6
  15. package/src/lib/codec/headers/ICMP.ts +3 -3
  16. package/src/lib/codec/headers/ICMPv6.ts +4 -4
  17. package/src/lib/codec/headers/IEC61850SampledValues.ts +5 -5
  18. package/src/lib/codec/headers/IPv4.ts +8 -8
  19. package/src/lib/codec/headers/IPv6.ts +5 -5
  20. package/src/lib/codec/headers/IPv6HopByHopOptions.ts +3 -3
  21. package/src/lib/codec/headers/RawData.ts +1 -1
  22. package/src/lib/codec/headers/TCP.ts +5 -5
  23. package/src/lib/codec/headers/UDP.ts +3 -3
  24. package/src/lib/codec/headers/VLAN_802dot1Q.ts +2 -2
  25. package/src/lib/helper/HexToBuffer.ts +22 -0
  26. package/src/tests/units/Codec.spec.ts +1 -1
  27. package/dist/NetKitty.d.ts +0 -44
  28. package/dist/NetKitty.d.ts.map +0 -1
  29. package/dist/NetKitty.js +0 -107
  30. package/dist/errors/ActionNotFoundError.d.ts +0 -5
  31. package/dist/errors/ActionNotFoundError.d.ts.map +0 -1
  32. package/dist/errors/ActionNotFoundError.js +0 -12
  33. package/dist/errors/CodecSchemaValidateError.d.ts +0 -5
  34. package/dist/errors/CodecSchemaValidateError.d.ts.map +0 -1
  35. package/dist/errors/CodecSchemaValidateError.js +0 -12
  36. package/dist/errors/DeviceNotFoundError.d.ts +0 -5
  37. package/dist/errors/DeviceNotFoundError.d.ts.map +0 -1
  38. package/dist/errors/DeviceNotFoundError.js +0 -12
  39. package/dist/errors/NoAvailableCodecError.d.ts +0 -5
  40. package/dist/errors/NoAvailableCodecError.d.ts.map +0 -1
  41. package/dist/errors/NoAvailableCodecError.js +0 -12
  42. package/dist/errors/NpcapLoadError.d.ts +0 -5
  43. package/dist/errors/NpcapLoadError.d.ts.map +0 -1
  44. package/dist/errors/NpcapLoadError.js +0 -12
  45. package/dist/errors/SocketDownError.d.ts +0 -5
  46. package/dist/errors/SocketDownError.d.ts.map +0 -1
  47. package/dist/errors/SocketDownError.js +0 -12
  48. package/dist/errors/UnknownPipeMessageTypeError.d.ts +0 -5
  49. package/dist/errors/UnknownPipeMessageTypeError.d.ts.map +0 -1
  50. package/dist/errors/UnknownPipeMessageTypeError.js +0 -12
  51. package/dist/errors/common/ErrorCode.d.ts +0 -31
  52. package/dist/errors/common/ErrorCode.d.ts.map +0 -1
  53. package/dist/errors/common/ErrorCode.js +0 -33
  54. package/dist/lib/GeneratePipeAddress.d.ts +0 -7
  55. package/dist/lib/GeneratePipeAddress.d.ts.map +0 -1
  56. package/dist/lib/GeneratePipeAddress.js +0 -23
  57. package/dist/lib/GetBinding.d.ts +0 -2
  58. package/dist/lib/GetBinding.d.ts.map +0 -1
  59. package/dist/lib/GetBinding.js +0 -6
  60. package/dist/lib/GetCaptureTemporaryDirectory.d.ts +0 -7
  61. package/dist/lib/GetCaptureTemporaryDirectory.d.ts.map +0 -1
  62. package/dist/lib/GetCaptureTemporaryDirectory.js +0 -15
  63. package/dist/lib/GetDeviceCaptureTemporaryFilename.d.ts +0 -8
  64. package/dist/lib/GetDeviceCaptureTemporaryFilename.d.ts.map +0 -1
  65. package/dist/lib/GetDeviceCaptureTemporaryFilename.js +0 -18
  66. package/dist/lib/codec/Codec.d.ts +0 -33
  67. package/dist/lib/codec/Codec.d.ts.map +0 -1
  68. package/dist/lib/codec/Codec.js +0 -176
  69. package/dist/lib/codec/abstracts/BaseHeader.d.ts +0 -217
  70. package/dist/lib/codec/abstracts/BaseHeader.d.ts.map +0 -1
  71. package/dist/lib/codec/abstracts/BaseHeader.js +0 -356
  72. package/dist/lib/codec/headers/ARP.d.ts +0 -10
  73. package/dist/lib/codec/headers/ARP.d.ts.map +0 -1
  74. package/dist/lib/codec/headers/ARP.js +0 -224
  75. package/dist/lib/codec/headers/EthernetII.d.ts +0 -10
  76. package/dist/lib/codec/headers/EthernetII.d.ts.map +0 -1
  77. package/dist/lib/codec/headers/EthernetII.js +0 -81
  78. package/dist/lib/codec/headers/Goose.d.ts +0 -13
  79. package/dist/lib/codec/headers/Goose.d.ts.map +0 -1
  80. package/dist/lib/codec/headers/Goose.js +0 -720
  81. package/dist/lib/codec/headers/ICMP.d.ts +0 -15
  82. package/dist/lib/codec/headers/ICMP.d.ts.map +0 -1
  83. package/dist/lib/codec/headers/ICMP.js +0 -147
  84. package/dist/lib/codec/headers/ICMPv6.d.ts +0 -15
  85. package/dist/lib/codec/headers/ICMPv6.d.ts.map +0 -1
  86. package/dist/lib/codec/headers/ICMPv6.js +0 -128
  87. package/dist/lib/codec/headers/IEC61850SampledValues.d.ts +0 -13
  88. package/dist/lib/codec/headers/IEC61850SampledValues.d.ts.map +0 -1
  89. package/dist/lib/codec/headers/IEC61850SampledValues.js +0 -370
  90. package/dist/lib/codec/headers/IPv4.d.ts +0 -16
  91. package/dist/lib/codec/headers/IPv4.d.ts.map +0 -1
  92. package/dist/lib/codec/headers/IPv4.js +0 -339
  93. package/dist/lib/codec/headers/IPv6.d.ts +0 -10
  94. package/dist/lib/codec/headers/IPv6.d.ts.map +0 -1
  95. package/dist/lib/codec/headers/IPv6.js +0 -177
  96. package/dist/lib/codec/headers/IPv6HopByHopOptions.d.ts +0 -71
  97. package/dist/lib/codec/headers/IPv6HopByHopOptions.d.ts.map +0 -1
  98. package/dist/lib/codec/headers/IPv6HopByHopOptions.js +0 -497
  99. package/dist/lib/codec/headers/RawData.d.ts +0 -11
  100. package/dist/lib/codec/headers/RawData.d.ts.map +0 -1
  101. package/dist/lib/codec/headers/RawData.js +0 -36
  102. package/dist/lib/codec/headers/TCP.d.ts +0 -16
  103. package/dist/lib/codec/headers/TCP.d.ts.map +0 -1
  104. package/dist/lib/codec/headers/TCP.js +0 -899
  105. package/dist/lib/codec/headers/UDP.d.ts +0 -16
  106. package/dist/lib/codec/headers/UDP.d.ts.map +0 -1
  107. package/dist/lib/codec/headers/UDP.js +0 -192
  108. package/dist/lib/codec/headers/VLAN_802dot1Q.d.ts +0 -10
  109. package/dist/lib/codec/headers/VLAN_802dot1Q.d.ts.map +0 -1
  110. package/dist/lib/codec/headers/VLAN_802dot1Q.js +0 -78
  111. package/dist/lib/codec/lib/BufferToHex.d.ts +0 -2
  112. package/dist/lib/codec/lib/BufferToHex.d.ts.map +0 -1
  113. package/dist/lib/codec/lib/BufferToHex.js +0 -6
  114. package/dist/lib/codec/lib/BufferToIP.d.ts +0 -13
  115. package/dist/lib/codec/lib/BufferToIP.d.ts.map +0 -1
  116. package/dist/lib/codec/lib/BufferToIP.js +0 -21
  117. package/dist/lib/codec/lib/BufferToNumber.d.ts +0 -10
  118. package/dist/lib/codec/lib/BufferToNumber.d.ts.map +0 -1
  119. package/dist/lib/codec/lib/BufferToNumber.js +0 -22
  120. package/dist/lib/codec/lib/FixHexString.d.ts +0 -7
  121. package/dist/lib/codec/lib/FixHexString.d.ts.map +0 -1
  122. package/dist/lib/codec/lib/FixHexString.js +0 -11
  123. package/dist/lib/codec/lib/FlexibleObject.d.ts +0 -28
  124. package/dist/lib/codec/lib/FlexibleObject.d.ts.map +0 -1
  125. package/dist/lib/codec/lib/FlexibleObject.js +0 -102
  126. package/dist/lib/codec/lib/HexToNumber.d.ts +0 -10
  127. package/dist/lib/codec/lib/HexToNumber.d.ts.map +0 -1
  128. package/dist/lib/codec/lib/HexToNumber.js +0 -39
  129. package/dist/lib/codec/lib/IPToBuffer.d.ts +0 -13
  130. package/dist/lib/codec/lib/IPToBuffer.d.ts.map +0 -1
  131. package/dist/lib/codec/lib/IPToBuffer.js +0 -28
  132. package/dist/lib/codec/lib/NumberToBERBuffer.d.ts +0 -9
  133. package/dist/lib/codec/lib/NumberToBERBuffer.d.ts.map +0 -1
  134. package/dist/lib/codec/lib/NumberToBERBuffer.js +0 -20
  135. package/dist/lib/codec/lib/NumberToBERHex.d.ts +0 -9
  136. package/dist/lib/codec/lib/NumberToBERHex.d.ts.map +0 -1
  137. package/dist/lib/codec/lib/NumberToBERHex.js +0 -23
  138. package/dist/lib/codec/lib/NumberToBuffer.d.ts +0 -10
  139. package/dist/lib/codec/lib/NumberToBuffer.d.ts.map +0 -1
  140. package/dist/lib/codec/lib/NumberToBuffer.js +0 -22
  141. package/dist/lib/codec/lib/NumberToHex.d.ts +0 -10
  142. package/dist/lib/codec/lib/NumberToHex.d.ts.map +0 -1
  143. package/dist/lib/codec/lib/NumberToHex.js +0 -26
  144. package/dist/lib/codec/lib/ProcessPacketPostHandlers.d.ts +0 -14
  145. package/dist/lib/codec/lib/ProcessPacketPostHandlers.d.ts.map +0 -1
  146. package/dist/lib/codec/lib/ProcessPacketPostHandlers.js +0 -53
  147. package/dist/lib/codec/lib/SortPostHandlers.d.ts +0 -8
  148. package/dist/lib/codec/lib/SortPostHandlers.d.ts.map +0 -1
  149. package/dist/lib/codec/lib/SortPostHandlers.js +0 -11
  150. package/dist/lib/codec/lib/StringContentEncodingEnum.d.ts +0 -11
  151. package/dist/lib/codec/lib/StringContentEncodingEnum.d.ts.map +0 -1
  152. package/dist/lib/codec/lib/StringContentEncodingEnum.js +0 -14
  153. package/dist/lib/codec/types/CodecData.d.ts +0 -7
  154. package/dist/lib/codec/types/CodecData.d.ts.map +0 -1
  155. package/dist/lib/codec/types/CodecData.js +0 -2
  156. package/dist/lib/codec/types/CodecDecodeResult.d.ts +0 -11
  157. package/dist/lib/codec/types/CodecDecodeResult.d.ts.map +0 -1
  158. package/dist/lib/codec/types/CodecDecodeResult.js +0 -2
  159. package/dist/lib/codec/types/CodecEncodeInput.d.ts +0 -9
  160. package/dist/lib/codec/types/CodecEncodeInput.d.ts.map +0 -1
  161. package/dist/lib/codec/types/CodecEncodeInput.js +0 -2
  162. package/dist/lib/codec/types/CodecEncodeResult.d.ts +0 -6
  163. package/dist/lib/codec/types/CodecEncodeResult.d.ts.map +0 -1
  164. package/dist/lib/codec/types/CodecEncodeResult.js +0 -2
  165. package/dist/lib/codec/types/CodecErrorInfo.d.ts +0 -6
  166. package/dist/lib/codec/types/CodecErrorInfo.d.ts.map +0 -1
  167. package/dist/lib/codec/types/CodecErrorInfo.js +0 -2
  168. package/dist/lib/codec/types/CodecModule.d.ts +0 -3
  169. package/dist/lib/codec/types/CodecModule.d.ts.map +0 -1
  170. package/dist/lib/codec/types/CodecModule.js +0 -2
  171. package/dist/lib/codec/types/CodecModuleConstructor.d.ts +0 -3
  172. package/dist/lib/codec/types/CodecModuleConstructor.d.ts.map +0 -1
  173. package/dist/lib/codec/types/CodecModuleConstructor.js +0 -2
  174. package/dist/lib/codec/types/CodecSchema.d.ts +0 -7
  175. package/dist/lib/codec/types/CodecSchema.d.ts.map +0 -1
  176. package/dist/lib/codec/types/CodecSchema.js +0 -2
  177. package/dist/lib/codec/types/HeaderTreeNode.d.ts +0 -5
  178. package/dist/lib/codec/types/HeaderTreeNode.d.ts.map +0 -1
  179. package/dist/lib/codec/types/HeaderTreeNode.js +0 -2
  180. package/dist/lib/codec/types/PostHandlerItem.d.ts +0 -5
  181. package/dist/lib/codec/types/PostHandlerItem.d.ts.map +0 -1
  182. package/dist/lib/codec/types/PostHandlerItem.js +0 -2
  183. package/dist/lib/nodepcap/Capture.d.ts +0 -75
  184. package/dist/lib/nodepcap/Capture.d.ts.map +0 -1
  185. package/dist/lib/nodepcap/Capture.js +0 -309
  186. package/dist/lib/nodepcap/GetNetworkInterfaces.d.ts +0 -7
  187. package/dist/lib/nodepcap/GetNetworkInterfaces.d.ts.map +0 -1
  188. package/dist/lib/nodepcap/GetNetworkInterfaces.js +0 -22
  189. package/dist/lib/nodepcap/interfaces/IBindingCapture.d.ts +0 -16
  190. package/dist/lib/nodepcap/interfaces/IBindingCapture.d.ts.map +0 -1
  191. package/dist/lib/nodepcap/interfaces/IBindingCapture.js +0 -2
  192. package/dist/lib/nodepcap/interfaces/IBindingCaptureOptions.d.ts +0 -5
  193. package/dist/lib/nodepcap/interfaces/IBindingCaptureOptions.d.ts.map +0 -1
  194. package/dist/lib/nodepcap/interfaces/IBindingCaptureOptions.js +0 -2
  195. package/dist/lib/nodepcap/interfaces/ICaptureOptions.d.ts +0 -19
  196. package/dist/lib/nodepcap/interfaces/ICaptureOptions.d.ts.map +0 -1
  197. package/dist/lib/nodepcap/interfaces/ICaptureOptions.js +0 -2
  198. package/dist/lib/nodepcap/interfaces/INetworkInterface.d.ts +0 -5
  199. package/dist/lib/nodepcap/interfaces/INetworkInterface.d.ts.map +0 -1
  200. package/dist/lib/nodepcap/interfaces/INetworkInterface.js +0 -2
  201. package/dist/lib/nodepcap/lib/BindingCapture.d.ts +0 -15
  202. package/dist/lib/nodepcap/lib/BindingCapture.d.ts.map +0 -1
  203. package/dist/lib/nodepcap/lib/BindingCapture.js +0 -35
  204. package/dist/lib/nodepcap/lib/GetNodePcapBinding.d.ts +0 -2
  205. package/dist/lib/nodepcap/lib/GetNodePcapBinding.d.ts.map +0 -1
  206. package/dist/lib/nodepcap/lib/GetNodePcapBinding.js +0 -55
  207. package/dist/lib/nodepcap/lib/GetNodePcapBindingCapture.d.ts +0 -3
  208. package/dist/lib/nodepcap/lib/GetNodePcapBindingCapture.d.ts.map +0 -1
  209. package/dist/lib/nodepcap/lib/GetNodePcapBindingCapture.js +0 -18
  210. package/dist/lib/nodepcap/workers/CaptureWorker.d.ts +0 -2
  211. package/dist/lib/nodepcap/workers/CaptureWorker.d.ts.map +0 -1
  212. package/dist/lib/nodepcap/workers/CaptureWorker.js +0 -25
  213. package/dist/lib/pcap/PCAPGenerator.d.ts +0 -34
  214. package/dist/lib/pcap/PCAPGenerator.d.ts.map +0 -1
  215. package/dist/lib/pcap/PCAPGenerator.js +0 -95
  216. package/dist/lib/pcap/PcapParser.d.ts +0 -27
  217. package/dist/lib/pcap/PcapParser.d.ts.map +0 -1
  218. package/dist/lib/pcap/PcapParser.js +0 -149
  219. package/dist/lib/pcap/PcapReader.d.ts +0 -89
  220. package/dist/lib/pcap/PcapReader.d.ts.map +0 -1
  221. package/dist/lib/pcap/PcapReader.js +0 -209
  222. package/dist/lib/pcap/PcapWriter.d.ts +0 -29
  223. package/dist/lib/pcap/PcapWriter.d.ts.map +0 -1
  224. package/dist/lib/pcap/PcapWriter.js +0 -80
  225. package/dist/lib/pcap/interfaces/IPcapPacketInfo.d.ts +0 -13
  226. package/dist/lib/pcap/interfaces/IPcapPacketInfo.d.ts.map +0 -1
  227. package/dist/lib/pcap/interfaces/IPcapPacketInfo.js +0 -2
  228. package/dist/lib/pipe/PipeClient.d.ts +0 -35
  229. package/dist/lib/pipe/PipeClient.d.ts.map +0 -1
  230. package/dist/lib/pipe/PipeClient.js +0 -71
  231. package/dist/lib/pipe/PipeClientSocket.d.ts +0 -39
  232. package/dist/lib/pipe/PipeClientSocket.d.ts.map +0 -1
  233. package/dist/lib/pipe/PipeClientSocket.js +0 -82
  234. package/dist/lib/pipe/PipeMessage.d.ts +0 -27
  235. package/dist/lib/pipe/PipeMessage.d.ts.map +0 -1
  236. package/dist/lib/pipe/PipeMessage.js +0 -61
  237. package/dist/lib/pipe/PipeMessageHandler.d.ts +0 -16
  238. package/dist/lib/pipe/PipeMessageHandler.d.ts.map +0 -1
  239. package/dist/lib/pipe/PipeMessageHandler.js +0 -95
  240. package/dist/lib/pipe/PipeServer.d.ts +0 -25
  241. package/dist/lib/pipe/PipeServer.d.ts.map +0 -1
  242. package/dist/lib/pipe/PipeServer.js +0 -59
  243. package/dist/lib/schema/ProtocolFieldJSONSchema.d.ts +0 -35
  244. package/dist/lib/schema/ProtocolFieldJSONSchema.d.ts.map +0 -1
  245. package/dist/lib/schema/ProtocolFieldJSONSchema.js +0 -2
  246. package/dist/lib/schema/ProtocolFieldJSONSchemaDefinition.d.ts +0 -3
  247. package/dist/lib/schema/ProtocolFieldJSONSchemaDefinition.d.ts.map +0 -1
  248. package/dist/lib/schema/ProtocolFieldJSONSchemaDefinition.js +0 -2
  249. package/dist/lib/schema/ProtocolJSONSchema.d.ts +0 -32
  250. package/dist/lib/schema/ProtocolJSONSchema.d.ts.map +0 -1
  251. package/dist/lib/schema/ProtocolJSONSchema.js +0 -2
  252. package/dist/tests/Test.spec.d.ts +0 -2
  253. package/dist/tests/Test.spec.d.ts.map +0 -1
  254. package/dist/tests/Test.spec.js +0 -25
  255. package/dist/tests/units/CaptureTest.spec.d.ts +0 -2
  256. package/dist/tests/units/CaptureTest.spec.d.ts.map +0 -1
  257. package/dist/tests/units/CaptureTest.spec.js +0 -31
  258. package/dist/tests/units/Codec.spec.d.ts +0 -2
  259. package/dist/tests/units/Codec.spec.d.ts.map +0 -1
  260. package/dist/tests/units/Codec.spec.js +0 -73
  261. package/dist/tests/units/ReadPCAP.spec.d.ts +0 -2
  262. package/dist/tests/units/ReadPCAP.spec.d.ts.map +0 -1
  263. package/dist/tests/units/ReadPCAP.spec.js +0 -14
  264. package/src/lib/codec/lib/FixHexString.ts +0 -8
  265. /package/src/lib/{codec/lib → helper}/BufferToHex.ts +0 -0
  266. /package/src/lib/{codec/lib → helper}/BufferToIP.ts +0 -0
  267. /package/src/lib/{codec/lib → helper}/BufferToNumber.ts +0 -0
  268. /package/src/lib/{codec/lib → helper}/HexToNumber.ts +0 -0
  269. /package/src/lib/{codec/lib → helper}/IPToBuffer.ts +0 -0
  270. /package/src/lib/{codec/lib → helper}/NumberToBERBuffer.ts +0 -0
  271. /package/src/lib/{codec/lib → helper}/NumberToBERHex.ts +0 -0
  272. /package/src/lib/{codec/lib → helper}/NumberToBuffer.ts +0 -0
  273. /package/src/lib/{codec/lib → helper}/NumberToHex.ts +0 -0
@@ -1,339 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IPv4 = void 0;
4
- const BaseHeader_1 = require("../abstracts/BaseHeader");
5
- const NumberToHex_1 = require("../lib/NumberToHex");
6
- const StringContentEncodingEnum_1 = require("../lib/StringContentEncodingEnum");
7
- const FixHexString_1 = require("../lib/FixHexString");
8
- const BufferToNumber_1 = require("../lib/BufferToNumber");
9
- const NumberToBuffer_1 = require("../lib/NumberToBuffer");
10
- const BufferToHex_1 = require("../lib/BufferToHex");
11
- const IPToBuffer_1 = require("../lib/IPToBuffer");
12
- const BufferToIP_1 = require("../lib/BufferToIP");
13
- class IPv4 extends BaseHeader_1.BaseHeader {
14
- constructor() {
15
- super(...arguments);
16
- this.SCHEMA = {
17
- type: 'object',
18
- properties: {
19
- version: {
20
- type: 'integer',
21
- label: 'Version',
22
- minimum: 0,
23
- maximum: 15,
24
- decode: () => {
25
- this.instance.version.setValue(this.readBits(0, 1, 0, 4));
26
- if (this.instance.version.getValue() !== 4)
27
- this.recordError(this.instance.version.getPath(), 'IPv4 version should be 4');
28
- },
29
- encode: () => {
30
- let version = this.instance.version.getValue(4);
31
- version = version > 15 ? 15 : version;
32
- version = version < 0 ? 0 : version;
33
- if (version !== 4)
34
- this.recordError(this.instance.version.getPath(), 'IPv4 version should be 4');
35
- this.instance.version.setValue(version);
36
- this.writeBits(0, 1, 0, 4, version);
37
- }
38
- },
39
- hdrLen: {
40
- type: 'integer',
41
- label: 'Header Length',
42
- minimum: 20,
43
- maximum: 60,
44
- decode: () => {
45
- this.instance.hdrLen.setValue(this.readBits(0, 1, 4, 4) * 4);
46
- },
47
- encode: () => {
48
- let headerLength = this.instance.hdrLen.getValue(0);
49
- if (headerLength)
50
- headerLength = headerLength ? Math.floor(headerLength / 4) : 0;
51
- this.writeBits(0, 1, 4, 4, headerLength);
52
- if (!headerLength)
53
- this.addPostSelfEncodeHandler(() => {
54
- this.instance.hdrLen.setValue(this.length);
55
- this.writeBits(0, 1, 4, 4, Math.floor(this.length / 4));
56
- }, 10);
57
- }
58
- },
59
- dsfield: {
60
- type: 'object',
61
- label: 'Differentiated Services Field',
62
- properties: {
63
- dscp: {
64
- type: 'integer',
65
- minimum: 0,
66
- maximum: 63,
67
- label: 'Differentiated Services Codepoint',
68
- decode: () => {
69
- this.instance.dsfield.dscp.setValue(this.readBits(1, 1, 0, 6));
70
- },
71
- encode: () => {
72
- const dscp = this.instance.dsfield.dscp.getValue(0);
73
- this.instance.dsfield.dscp.setValue(dscp);
74
- this.writeBits(1, 1, 0, 6, dscp);
75
- }
76
- },
77
- ecn: {
78
- type: 'integer',
79
- label: 'Explicit Congestion Notification',
80
- decode: () => {
81
- this.instance.dsfield.ecn.setValue(this.readBits(1, 1, 6, 2));
82
- },
83
- encode: () => {
84
- const ecn = this.instance.dsfield.ecn.getValue(0);
85
- this.instance.dsfield.ecn.setValue(ecn);
86
- this.writeBits(1, 1, 6, 2, ecn);
87
- }
88
- }
89
- }
90
- },
91
- length: {
92
- type: 'integer',
93
- label: 'Total Length',
94
- minimum: 0,
95
- maximum: 65535,
96
- decode: () => {
97
- this.instance.length.setValue((0, BufferToNumber_1.BufferToUInt16)(this.readBytes(2, 2)));
98
- },
99
- encode: () => {
100
- //This field's real value needs down stream codec invoke recode to fill
101
- let length = this.instance.length.getValue(0);
102
- if (length) {
103
- this.writeBytes(2, (0, NumberToBuffer_1.UInt16ToBuffer)(length));
104
- }
105
- else {
106
- this.writeBytes(2, (0, NumberToBuffer_1.UInt16ToBuffer)(length));
107
- this.addPostPacketEncodeHandler(() => {
108
- let startCount = false;
109
- let totalLength = 0;
110
- this.codecModules.forEach((codecModule) => {
111
- if (codecModule === this)
112
- startCount = true;
113
- if (startCount)
114
- totalLength += codecModule.length;
115
- });
116
- this.instance.length.setValue(totalLength);
117
- this.writeBytes(2, (0, NumberToBuffer_1.UInt16ToBuffer)(totalLength));
118
- }, 1);
119
- }
120
- }
121
- },
122
- id: {
123
- type: 'integer',
124
- label: 'Identification',
125
- minimum: 0,
126
- maximum: 65535,
127
- decode: () => {
128
- this.instance.id.setValue((0, BufferToNumber_1.BufferToUInt16)(this.readBytes(4, 2)));
129
- },
130
- encode: () => {
131
- const id = this.instance.id.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
132
- this.instance.id.setValue(id);
133
- this.writeBytes(4, (0, NumberToBuffer_1.UInt16ToBuffer)(id));
134
- }
135
- },
136
- flags: {
137
- type: 'object',
138
- label: 'Flags',
139
- properties: {
140
- rb: {
141
- type: 'integer',
142
- enum: [0, 1],
143
- label: 'Reserved bit',
144
- decode: () => {
145
- this.instance.flags.rb.setValue(this.readBits(6, 1, 0, 1));
146
- },
147
- encode: () => {
148
- const rb = this.instance.flags.rb.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
149
- this.instance.flags.rb.setValue(rb);
150
- this.writeBits(6, 1, 0, 1, rb);
151
- }
152
- },
153
- df: {
154
- type: 'integer',
155
- enum: [0, 1],
156
- label: 'Don\'t fragment',
157
- decode: () => {
158
- this.instance.flags.df.setValue(this.readBits(6, 1, 1, 1));
159
- },
160
- encode: () => {
161
- const df = this.instance.flags.df.getValue(1, (nodePath) => this.recordError(nodePath, 'Not Found'));
162
- this.instance.flags.df.setValue(df);
163
- this.writeBits(6, 1, 1, 1, df);
164
- }
165
- },
166
- mf: {
167
- type: 'integer',
168
- enum: [0, 1],
169
- label: 'More fragments',
170
- decode: () => {
171
- this.instance.flags.mf.setValue(this.readBits(6, 1, 2, 1));
172
- },
173
- encode: () => {
174
- const mf = this.instance.flags.mf.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
175
- this.instance.flags.mf.setValue(mf);
176
- this.writeBits(6, 1, 2, 1, mf);
177
- }
178
- }
179
- }
180
- },
181
- fragOffset: {
182
- type: 'integer',
183
- minimum: 0,
184
- maximum: 8191,
185
- label: 'Fragment Offset',
186
- decode: () => {
187
- this.instance.fragOffset.setValue(this.readBits(6, 2, 3, 13));
188
- },
189
- encode: () => {
190
- const fragOffset = this.instance.fragOffset.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
191
- this.instance.fragOffset.setValue(fragOffset);
192
- this.writeBits(6, 2, 3, 13, fragOffset);
193
- }
194
- },
195
- ttl: {
196
- type: 'integer',
197
- minimum: 0,
198
- maximum: 255,
199
- label: 'Time to Live',
200
- decode: () => {
201
- this.instance.ttl.setValue((0, BufferToNumber_1.BufferToUInt8)(this.readBytes(8, 1)));
202
- },
203
- encode: () => {
204
- const ttl = this.instance.ttl.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
205
- this.instance.ttl.setValue(ttl);
206
- this.writeBytes(8, (0, NumberToBuffer_1.UInt8ToBuffer)(ttl));
207
- }
208
- },
209
- protocol: {
210
- type: 'integer',
211
- label: 'Protocol',
212
- minimum: 0,
213
- maximum: 255,
214
- decode: () => {
215
- this.instance.protocol.setValue((0, BufferToNumber_1.BufferToUInt8)(this.readBytes(9, 1)));
216
- },
217
- encode: () => {
218
- const protocol = this.instance.protocol.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
219
- this.instance.protocol.setValue(protocol);
220
- this.writeBytes(9, (0, NumberToBuffer_1.UInt8ToBuffer)(protocol));
221
- }
222
- },
223
- checksum: {
224
- type: 'integer',
225
- label: 'Header Checksum',
226
- minimum: 0,
227
- maximum: 65535,
228
- decode: () => {
229
- this.instance.checksum.setValue((0, BufferToNumber_1.BufferToUInt16)(this.readBytes(10, 2)));
230
- },
231
- encode: () => {
232
- let checksum = this.instance.checksum.getValue(0);
233
- checksum = checksum > 65535 ? 65535 : checksum;
234
- checksum = checksum < 0 ? 0 : checksum;
235
- if (checksum) {
236
- this.instance.checksum.setValue(checksum);
237
- this.writeBytes(10, (0, NumberToBuffer_1.UInt16ToBuffer)(checksum));
238
- }
239
- else {
240
- this.instance.checksum.setValue(checksum);
241
- this.writeBytes(10, (0, NumberToBuffer_1.UInt16ToBuffer)(checksum));
242
- this.addPostPacketEncodeHandler(() => {
243
- const calcChecksum = this.calculateIPv4Checksum(this.packet.subarray(this.startPos, this.endPos));
244
- this.instance.checksum.setValue(calcChecksum);
245
- this.writeBytes(10, (0, NumberToBuffer_1.UInt16ToBuffer)(calcChecksum));
246
- }, 2);
247
- }
248
- }
249
- },
250
- sip: {
251
- type: 'string',
252
- label: 'Source Address',
253
- minLength: 7,
254
- maxLength: 15,
255
- contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.IPv4,
256
- decode: () => {
257
- const sipBuffer = this.readBytes(12, 4);
258
- this.instance.sip.setValue((0, BufferToIP_1.BufferToIPv4)(sipBuffer));
259
- },
260
- encode: () => {
261
- const sipStr = this.instance.sip.getValue('0.0.0.0', (nodePath) => this.recordError(nodePath, 'Not Found'));
262
- this.instance.sip.setValue(sipStr);
263
- this.writeBytes(12, (0, IPToBuffer_1.IPv4ToBuffer)(sipStr));
264
- }
265
- },
266
- dip: {
267
- type: 'string',
268
- minLength: 7,
269
- maxLength: 15,
270
- label: 'Destination Address',
271
- contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.IPv4,
272
- decode: () => {
273
- const dipBuffer = this.readBytes(16, 4);
274
- this.instance.dip.setValue((0, BufferToIP_1.BufferToIPv4)(dipBuffer));
275
- },
276
- encode: () => {
277
- const dipStr = this.instance.dip.getValue('0.0.0.0', (nodePath) => this.recordError(nodePath, 'Not Found'));
278
- this.instance.dip.setValue(dipStr);
279
- this.writeBytes(16, (0, IPToBuffer_1.IPv4ToBuffer)(dipStr));
280
- }
281
- },
282
- options: {
283
- type: 'string',
284
- label: 'Options',
285
- minLength: 0,
286
- maxLength: 40 * 2,
287
- contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.HEX,
288
- decode: () => {
289
- if (this.length < (this.instance.hdrLen.getValue())) {
290
- this.instance.options.setValue((0, BufferToHex_1.BufferToHex)(this.readBytes(this.length, (this.instance.hdrLen.getValue()) - this.length)));
291
- }
292
- },
293
- encode: () => {
294
- if (!this.instance.options.isUndefined()) {
295
- let optionsBuffer = Buffer.from((0, FixHexString_1.FixHexString)(this.instance.options.getValue()), 'hex');
296
- if (optionsBuffer.length > 40)
297
- optionsBuffer = optionsBuffer.subarray(0, 40);
298
- const estimateHdrLen = this.length + optionsBuffer.length;
299
- if (estimateHdrLen % 4) {
300
- /**
301
- * IPv4 Header should have a length that a multiple of 32 bits
302
- * @see https://learningnetwork.cisco.com/s/question/0D53i00000Kt6hHCAR/padding-field-on-ipv4-header
303
- */
304
- optionsBuffer = Buffer.concat([optionsBuffer, Buffer.from([0x00])]);
305
- }
306
- this.writeBytes(this.length, optionsBuffer);
307
- }
308
- }
309
- }
310
- }
311
- };
312
- this.id = 'ipv4';
313
- this.name = 'Internet Protocol Version 4';
314
- this.nickname = 'IPv4';
315
- }
316
- /**
317
- * Calculate IPv4 header checksum
318
- * @param headerBuffer
319
- * @protected
320
- */
321
- calculateIPv4Checksum(headerBuffer) {
322
- const header = Uint8Array.from(headerBuffer);
323
- let sum = 0;
324
- for (let i = 0; i < header.length; i += 2) {
325
- let word = (header[i] << 8) + (header[i + 1] || 0);
326
- sum += word;
327
- }
328
- while (sum >>> 16) {
329
- sum = (sum & 0xFFFF) + (sum >>> 16);
330
- }
331
- return (~sum) & 0xFFFF;
332
- }
333
- match() {
334
- if (!this.prevCodecModule)
335
- return false;
336
- return this.prevCodecModule.instance.etherType.getValue() === (0, NumberToHex_1.UInt16ToHex)(0x0800);
337
- }
338
- }
339
- exports.IPv4 = IPv4;
@@ -1,10 +0,0 @@
1
- import { ProtocolJSONSchema } from '../../schema/ProtocolJSONSchema';
2
- import { BaseHeader } from '../abstracts/BaseHeader';
3
- export declare class IPv6 extends BaseHeader {
4
- SCHEMA: ProtocolJSONSchema;
5
- id: string;
6
- name: string;
7
- nickname: string;
8
- match(): boolean;
9
- }
10
- //# sourceMappingURL=IPv6.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPv6.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/headers/IPv6.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AASlD,qBAAa,IAAK,SAAQ,UAAU;IAEzB,MAAM,EAAE,kBAAkB,CAsJhC;IAEM,EAAE,EAAE,MAAM,CAAS;IAEnB,IAAI,EAAE,MAAM,CAAgC;IAE5C,QAAQ,EAAE,MAAM,CAAS;IAEzB,KAAK,IAAI,OAAO;CAK1B"}
@@ -1,177 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IPv6 = void 0;
4
- const BaseHeader_1 = require("../abstracts/BaseHeader");
5
- const NumberToHex_1 = require("../lib/NumberToHex");
6
- const StringContentEncodingEnum_1 = require("../lib/StringContentEncodingEnum");
7
- const BufferToNumber_1 = require("../lib/BufferToNumber");
8
- const NumberToBuffer_1 = require("../lib/NumberToBuffer");
9
- const BufferToIP_1 = require("../lib/BufferToIP");
10
- const IPToBuffer_1 = require("../lib/IPToBuffer");
11
- class IPv6 extends BaseHeader_1.BaseHeader {
12
- constructor() {
13
- super(...arguments);
14
- this.SCHEMA = {
15
- type: 'object',
16
- properties: {
17
- version: {
18
- type: 'integer',
19
- label: 'Version',
20
- minimum: 0,
21
- maximum: 15,
22
- decode: () => {
23
- this.instance.version.setValue(this.readBits(0, 1, 0, 4));
24
- },
25
- encode: () => {
26
- const version = this.instance.version.getValue(6, (nodePath) => this.recordError(nodePath, 'Not Found'));
27
- this.instance.version.setValue(version);
28
- this.writeBits(0, 1, 0, 4, version);
29
- }
30
- },
31
- tclass: {
32
- type: 'object',
33
- label: 'Traffic Class',
34
- properties: {
35
- dscp: {
36
- type: 'integer',
37
- minimum: 0,
38
- maximum: 63,
39
- label: 'Differentiated Services Codepoint',
40
- decode: () => {
41
- this.instance.tclass.dscp.setValue(this.readBits(0, 4, 4, 6));
42
- },
43
- encode: () => {
44
- const dscp = this.instance.tclass.dscp.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
45
- this.instance.tclass.dscp.setValue(dscp);
46
- this.writeBits(0, 4, 4, 6, dscp);
47
- }
48
- },
49
- ecn: {
50
- type: 'integer',
51
- label: 'Explicit Congestion Notification',
52
- minimum: 0,
53
- maximum: 3,
54
- decode: () => {
55
- this.instance.tclass.ecn.setValue(this.readBits(0, 4, 10, 2));
56
- },
57
- encode: () => {
58
- const ecn = this.instance.tclass.ecn.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
59
- this.instance.tclass.ecn.setValue(ecn);
60
- this.writeBits(0, 4, 10, 2, ecn);
61
- }
62
- }
63
- }
64
- },
65
- flow: {
66
- type: 'integer',
67
- label: 'Flow Label',
68
- minimum: 0,
69
- maximum: 1048575,
70
- decode: () => {
71
- this.instance.flow.setValue(this.readBits(1, 3, 4, 20));
72
- },
73
- encode: () => {
74
- const flow = this.instance.flow.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
75
- this.instance.flow.setValue(flow);
76
- this.writeBits(1, 3, 4, 20, flow);
77
- }
78
- },
79
- plen: {
80
- type: 'integer',
81
- label: 'Payload Length',
82
- minimum: 0,
83
- maximum: 65535,
84
- decode: () => {
85
- this.instance.plen.setValue((0, BufferToNumber_1.BufferToUInt16)(this.readBytes(4, 2)));
86
- },
87
- encode: () => {
88
- const plen = this.instance.plen.getValue(0);
89
- this.instance.plen.setValue(plen);
90
- this.writeBytes(4, (0, NumberToBuffer_1.UInt16ToBuffer)(plen));
91
- if (!plen) {
92
- this.addPostPacketEncodeHandler(() => {
93
- let startCount = false;
94
- let totalLength = 0;
95
- this.codecModules.forEach((codecModule) => {
96
- if (codecModule === this)
97
- startCount = true;
98
- if (startCount)
99
- totalLength += codecModule.length;
100
- });
101
- let payloadLength = totalLength - 40;
102
- //The length is set to zero when a Hop-by-Hop extension header carries a Jumbo Payload option
103
- if (payloadLength > 65535)
104
- payloadLength = 0;
105
- this.instance.plen.setValue(payloadLength);
106
- this.writeBytes(4, (0, NumberToBuffer_1.UInt16ToBuffer)(payloadLength));
107
- });
108
- }
109
- }
110
- },
111
- nxt: {
112
- type: 'integer',
113
- label: 'Next Header',
114
- minimum: 0,
115
- maximum: 255,
116
- decode: () => {
117
- this.instance.nxt.setValue((0, BufferToNumber_1.BufferToUInt8)(this.readBytes(6, 1)));
118
- },
119
- encode: () => {
120
- const nxt = this.instance.nxt.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
121
- this.instance.nxt.setValue(nxt);
122
- this.writeBytes(6, (0, NumberToBuffer_1.UInt8ToBuffer)(nxt));
123
- }
124
- },
125
- hllm: {
126
- type: 'integer',
127
- label: 'Hop Limit',
128
- minimum: 0,
129
- maximum: 255,
130
- decode: () => {
131
- this.instance.hllm.setValue((0, BufferToNumber_1.BufferToUInt8)(this.readBytes(7, 1)));
132
- },
133
- encode: () => {
134
- const hllm = this.instance.hllm.getValue(0, (nodePath) => this.recordError(nodePath, 'Not Found'));
135
- this.instance.hllm.setValue(hllm);
136
- this.writeBytes(7, (0, NumberToBuffer_1.UInt8ToBuffer)(hllm));
137
- }
138
- },
139
- sip: {
140
- type: 'string',
141
- label: 'Source Address',
142
- contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.IPv6,
143
- decode: () => {
144
- this.instance.sip.setValue((0, BufferToIP_1.BufferToIPv6)(this.readBytes(8, 16)));
145
- },
146
- encode: () => {
147
- const sip = this.instance.sip.getValue('0000:0000:0000:0000:0000:0000:0000:0000', (nodePath) => this.recordError(nodePath, 'Not Found'));
148
- this.instance.sip.setValue(sip);
149
- this.writeBytes(8, (0, IPToBuffer_1.IPv6ToBuffer)(sip));
150
- }
151
- },
152
- dip: {
153
- type: 'string',
154
- label: 'Destination Address',
155
- contentEncoding: StringContentEncodingEnum_1.StringContentEncodingEnum.IPv6,
156
- decode: () => {
157
- this.instance.dip.setValue((0, BufferToIP_1.BufferToIPv6)(this.readBytes(24, 16)));
158
- },
159
- encode: () => {
160
- const dip = this.instance.dip.getValue('0000:0000:0000:0000:0000:0000:0000:0000', (nodePath) => this.recordError(nodePath, 'Not Found'));
161
- this.instance.dip.setValue(dip);
162
- this.writeBytes(24, (0, IPToBuffer_1.IPv6ToBuffer)(dip));
163
- }
164
- }
165
- }
166
- };
167
- this.id = 'ipv6';
168
- this.name = 'Internet Protocol Version 6';
169
- this.nickname = 'IPv6';
170
- }
171
- match() {
172
- if (!this.prevCodecModule)
173
- return false;
174
- return this.prevCodecModule.instance.etherType.getValue() === (0, NumberToHex_1.UInt16ToHex)(0x86dd);
175
- }
176
- }
177
- exports.IPv6 = IPv6;
@@ -1,71 +0,0 @@
1
- import { ProtocolJSONSchema } from '../../schema/ProtocolJSONSchema';
2
- import { BaseHeader } from '../abstracts/BaseHeader';
3
- import TLV from 'node-tlv';
4
- declare enum Type {
5
- PadN = "PadN",
6
- Tunnel_Encapsulation_Limit = "Tunnel-Encapsulation-Limit",
7
- Router_Alert = "Router-Alert",
8
- CALIPSO = "CALIPSO",
9
- SMF_DPD = "SMF_DPD",
10
- MPL_Option = "MPL-Option",
11
- ILNP_Nonce = "ILNP-Nonce",
12
- Line_Identification_Option = "Line-Identification-Option",
13
- IPv6_DFF_Header = "IPv6-DFF-Header",
14
- Endpoint_Identification = "Endpoint-Identification"
15
- }
16
- type PadN = {
17
- type: Type.PadN;
18
- n: number;
19
- };
20
- type Tunnel_Encapsulation_Limit = {
21
- type: Type.Tunnel_Encapsulation_Limit;
22
- limit: number;
23
- };
24
- type Router_Alert = {
25
- type: Type.Router_Alert;
26
- alert: string;
27
- };
28
- type CALIPSO = {
29
- type: Type.CALIPSO;
30
- tag: string;
31
- };
32
- type SMF_DPD = {
33
- type: Type.SMF_DPD;
34
- hash: string;
35
- };
36
- type MPL_Option = {
37
- type: Type.MPL_Option;
38
- value: string;
39
- };
40
- type ILNP_Nonce = {
41
- type: Type.ILNP_Nonce;
42
- nonce: string;
43
- };
44
- type Line_Identification_Option = {
45
- type: Type.Line_Identification_Option;
46
- id: string;
47
- };
48
- type IPv6_DFF_Header = {
49
- type: Type.IPv6_DFF_Header;
50
- message: string;
51
- };
52
- type Endpoint_Identification = {
53
- type: Type.Endpoint_Identification;
54
- id: string;
55
- };
56
- type Custom = {
57
- type: number;
58
- data: string;
59
- };
60
- export declare class IPv6HopByHopOptions extends BaseHeader {
61
- protected itemTLVs: TLV[];
62
- protected items: (PadN | Tunnel_Encapsulation_Limit | Router_Alert | CALIPSO | SMF_DPD | MPL_Option | ILNP_Nonce | Line_Identification_Option | IPv6_DFF_Header | Endpoint_Identification | Custom)[];
63
- SCHEMA: ProtocolJSONSchema;
64
- id: string;
65
- name: string;
66
- nickname: string;
67
- readonly isProtocol: boolean;
68
- match(): boolean;
69
- }
70
- export {};
71
- //# sourceMappingURL=IPv6HopByHopOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPv6HopByHopOptions.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/headers/IPv6HopByHopOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAIlD,OAAO,GAAG,MAAM,UAAU,CAAA;AAc1B,aAAK,IAAI;IACL,IAAI,SAAS;IACb,0BAA0B,+BAA+B;IACzD,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,0BAA0B,+BAA+B;IACzD,eAAe,oBAAoB;IACnC,uBAAuB,4BAA4B;CACtD;AAED,KAAK,IAAI,GAAG;IACR,IAAI,EAAE,IAAI,CAAC,IAAI,CAAA;IACf,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA;AACD,KAAK,0BAA0B,GAAG;IAC9B,IAAI,EAAE,IAAI,CAAC,0BAA0B,CAAA;IACrC,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,KAAK,YAAY,GAAG;IAChB,IAAI,EAAE,IAAI,CAAC,YAAY,CAAA;IACvB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,KAAK,OAAO,GAAG;IACX,IAAI,EAAE,IAAI,CAAC,OAAO,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;CACd,CAAA;AACD,KAAK,OAAO,GAAG;IACX,IAAI,EAAE,IAAI,CAAC,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACf,CAAA;AACD,KAAK,UAAU,GAAG;IACd,IAAI,EAAE,IAAI,CAAC,UAAU,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,KAAK,UAAU,GAAG;IACd,IAAI,EAAE,IAAI,CAAC,UAAU,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,KAAK,0BAA0B,GAAG;IAC9B,IAAI,EAAE,IAAI,CAAC,0BAA0B,CAAA;IACrC,EAAE,EAAE,MAAM,CAAA;CACb,CAAA;AACD,KAAK,eAAe,GAAG;IACnB,IAAI,EAAE,IAAI,CAAC,eAAe,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AACD,KAAK,uBAAuB,GAAG;IAC3B,IAAI,EAAE,IAAI,CAAC,uBAAuB,CAAA;IAClC,EAAE,EAAE,MAAM,CAAA;CACb,CAAA;AACD,KAAK,MAAM,GAAG;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACf,CAAA;AAED,qBAAa,mBAAoB,SAAQ,UAAU;IAE/C,SAAS,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAA;IAEzB,SAAS,CAAC,KAAK,EAAE,CACb,IAAI,GACJ,0BAA0B,GAC1B,YAAY,GACZ,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,0BAA0B,GAC1B,eAAe,GACf,uBAAuB,GACvB,MAAM,CACL,EAAE,CAAK;IAEL,MAAM,EAAE,kBAAkB,CAqahC;IAEM,EAAE,EAAE,MAAM,CAAgB;IAE1B,IAAI,EAAE,MAAM,CAA2B;IAEvC,QAAQ,EAAE,MAAM,CAAW;IAElC,SAAgB,UAAU,EAAE,OAAO,CAAQ;IAEpC,KAAK,IAAI,OAAO;CAK1B"}