dd-trace 5.80.0 → 5.82.0

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 (460) hide show
  1. package/LICENSE-3rdparty.csv +79 -88
  2. package/ext/tags.d.ts +1 -0
  3. package/ext/tags.js +1 -0
  4. package/index.d.ts +42 -35
  5. package/loader-hook.mjs +16 -4
  6. package/package.json +33 -56
  7. package/packages/datadog-core/src/utils/src/parse-tags.js +1 -1
  8. package/packages/datadog-esbuild/index.js +44 -26
  9. package/packages/datadog-esbuild/src/utils.js +14 -2
  10. package/packages/datadog-instrumentations/index.js +1 -0
  11. package/packages/datadog-instrumentations/src/aerospike.js +3 -2
  12. package/packages/datadog-instrumentations/src/ai.js +2 -2
  13. package/packages/datadog-instrumentations/src/amqp10.js +1 -1
  14. package/packages/datadog-instrumentations/src/amqplib.js +4 -4
  15. package/packages/datadog-instrumentations/src/anthropic.js +14 -2
  16. package/packages/datadog-instrumentations/src/apollo-server-core.js +2 -2
  17. package/packages/datadog-instrumentations/src/apollo-server.js +1 -1
  18. package/packages/datadog-instrumentations/src/apollo.js +3 -2
  19. package/packages/datadog-instrumentations/src/avsc.js +1 -1
  20. package/packages/datadog-instrumentations/src/aws-sdk.js +6 -2
  21. package/packages/datadog-instrumentations/src/azure-event-hubs.js +4 -3
  22. package/packages/datadog-instrumentations/src/azure-functions.js +2 -2
  23. package/packages/datadog-instrumentations/src/azure-service-bus.js +3 -4
  24. package/packages/datadog-instrumentations/src/bluebird.js +1 -1
  25. package/packages/datadog-instrumentations/src/bullmq.js +11 -0
  26. package/packages/datadog-instrumentations/src/bunyan.js +1 -1
  27. package/packages/datadog-instrumentations/src/cassandra-driver.js +1 -1
  28. package/packages/datadog-instrumentations/src/child_process.js +2 -2
  29. package/packages/datadog-instrumentations/src/confluentinc-kafka-javascript.js +3 -3
  30. package/packages/datadog-instrumentations/src/couchbase.js +1 -1
  31. package/packages/datadog-instrumentations/src/crypto.js +1 -1
  32. package/packages/datadog-instrumentations/src/cucumber.js +12 -13
  33. package/packages/datadog-instrumentations/src/cypress.js +1 -1
  34. package/packages/datadog-instrumentations/src/dns.js +1 -1
  35. package/packages/datadog-instrumentations/src/elasticsearch.js +1 -1
  36. package/packages/datadog-instrumentations/src/express-mongo-sanitize.js +1 -1
  37. package/packages/datadog-instrumentations/src/express.js +1 -1
  38. package/packages/datadog-instrumentations/src/find-my-way.js +6 -5
  39. package/packages/datadog-instrumentations/src/fs.js +1 -1
  40. package/packages/datadog-instrumentations/src/generic-pool.js +1 -1
  41. package/packages/datadog-instrumentations/src/google-cloud-pubsub.js +137 -15
  42. package/packages/datadog-instrumentations/src/google-cloud-vertexai.js +2 -3
  43. package/packages/datadog-instrumentations/src/google-genai.js +120 -0
  44. package/packages/datadog-instrumentations/src/graphql.js +21 -1
  45. package/packages/datadog-instrumentations/src/grpc/client.js +1 -1
  46. package/packages/datadog-instrumentations/src/grpc/server.js +1 -1
  47. package/packages/datadog-instrumentations/src/helpers/bundler-register.js +1 -1
  48. package/packages/datadog-instrumentations/src/helpers/hook.js +1 -1
  49. package/packages/datadog-instrumentations/src/helpers/hooks.js +5 -1
  50. package/packages/datadog-instrumentations/src/helpers/instrument.js +11 -1
  51. package/packages/datadog-instrumentations/src/helpers/register.js +12 -5
  52. package/packages/datadog-instrumentations/src/helpers/rewriter/compiler.js +27 -0
  53. package/packages/datadog-instrumentations/src/helpers/rewriter/index.js +152 -0
  54. package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/bullmq.json +106 -0
  55. package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/index.js +6 -0
  56. package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/langchain.js +237 -0
  57. package/packages/datadog-instrumentations/src/helpers/rewriter/loader.js +9 -0
  58. package/packages/datadog-instrumentations/src/helpers/rewriter/loader.mjs +11 -0
  59. package/packages/datadog-instrumentations/src/helpers/rewriter/transforms.js +139 -0
  60. package/packages/datadog-instrumentations/src/helpers/router-helper.js +1 -1
  61. package/packages/datadog-instrumentations/src/helpers/shared-utils.js +9 -0
  62. package/packages/datadog-instrumentations/src/hono.js +55 -10
  63. package/packages/datadog-instrumentations/src/ioredis.js +1 -1
  64. package/packages/datadog-instrumentations/src/iovalkey.js +1 -1
  65. package/packages/datadog-instrumentations/src/jest.js +2 -2
  66. package/packages/datadog-instrumentations/src/kafkajs.js +3 -3
  67. package/packages/datadog-instrumentations/src/knex.js +1 -1
  68. package/packages/datadog-instrumentations/src/langchain.js +3 -109
  69. package/packages/datadog-instrumentations/src/ldapjs.js +1 -1
  70. package/packages/datadog-instrumentations/src/light-my-request.js +93 -0
  71. package/packages/datadog-instrumentations/src/limitd-client.js +1 -1
  72. package/packages/datadog-instrumentations/src/lodash.js +1 -2
  73. package/packages/datadog-instrumentations/src/mariadb.js +1 -2
  74. package/packages/datadog-instrumentations/src/memcached.js +1 -1
  75. package/packages/datadog-instrumentations/src/mocha/main.js +1 -1
  76. package/packages/datadog-instrumentations/src/mongodb-core.js +1 -1
  77. package/packages/datadog-instrumentations/src/mongodb.js +1 -1
  78. package/packages/datadog-instrumentations/src/mongoose.js +1 -1
  79. package/packages/datadog-instrumentations/src/mquery.js +1 -1
  80. package/packages/datadog-instrumentations/src/mysql.js +1 -1
  81. package/packages/datadog-instrumentations/src/mysql2.js +2 -2
  82. package/packages/datadog-instrumentations/src/net.js +1 -1
  83. package/packages/datadog-instrumentations/src/next.js +1 -1
  84. package/packages/datadog-instrumentations/src/nyc.js +1 -1
  85. package/packages/datadog-instrumentations/src/openai.js +2 -2
  86. package/packages/datadog-instrumentations/src/opensearch.js +1 -1
  87. package/packages/datadog-instrumentations/src/oracledb.js +1 -1
  88. package/packages/datadog-instrumentations/src/otel-sdk-trace.js +1 -1
  89. package/packages/datadog-instrumentations/src/pg.js +3 -3
  90. package/packages/datadog-instrumentations/src/pino.js +1 -1
  91. package/packages/datadog-instrumentations/src/playwright.js +46 -17
  92. package/packages/datadog-instrumentations/src/prisma.js +52 -37
  93. package/packages/datadog-instrumentations/src/process.js +1 -1
  94. package/packages/datadog-instrumentations/src/promise-js.js +1 -1
  95. package/packages/datadog-instrumentations/src/promise.js +1 -1
  96. package/packages/datadog-instrumentations/src/protobufjs.js +1 -1
  97. package/packages/datadog-instrumentations/src/q.js +1 -1
  98. package/packages/datadog-instrumentations/src/redis.js +1 -1
  99. package/packages/datadog-instrumentations/src/rhea.js +1 -1
  100. package/packages/datadog-instrumentations/src/router.js +1 -1
  101. package/packages/datadog-instrumentations/src/selenium.js +4 -2
  102. package/packages/datadog-instrumentations/src/sequelize.js +1 -2
  103. package/packages/datadog-instrumentations/src/sharedb.js +1 -1
  104. package/packages/datadog-instrumentations/src/tedious.js +1 -1
  105. package/packages/datadog-instrumentations/src/undici.js +4 -4
  106. package/packages/datadog-instrumentations/src/url.js +1 -1
  107. package/packages/datadog-instrumentations/src/vitest.js +1 -1
  108. package/packages/datadog-instrumentations/src/vm.js +1 -1
  109. package/packages/datadog-instrumentations/src/when.js +1 -1
  110. package/packages/datadog-instrumentations/src/winston.js +1 -1
  111. package/packages/datadog-instrumentations/src/ws.js +38 -19
  112. package/packages/datadog-plugin-amqp10/src/index.js +1 -1
  113. package/packages/datadog-plugin-amqplib/src/index.js +1 -1
  114. package/packages/datadog-plugin-anthropic/src/index.js +1 -1
  115. package/packages/datadog-plugin-aws-sdk/src/services/bedrockruntime/index.js +1 -1
  116. package/packages/datadog-plugin-aws-sdk/src/services/dynamodb.js +4 -4
  117. package/packages/datadog-plugin-aws-sdk/src/services/eventbridge.js +2 -2
  118. package/packages/datadog-plugin-aws-sdk/src/util.js +3 -3
  119. package/packages/datadog-plugin-azure-event-hubs/src/index.js +1 -1
  120. package/packages/datadog-plugin-azure-event-hubs/src/producer.js +19 -5
  121. package/packages/datadog-plugin-azure-service-bus/src/index.js +1 -1
  122. package/packages/datadog-plugin-azure-service-bus/src/producer.js +4 -0
  123. package/packages/datadog-plugin-bullmq/src/consumer.js +60 -0
  124. package/packages/datadog-plugin-bullmq/src/index.js +18 -0
  125. package/packages/datadog-plugin-bullmq/src/producer.js +178 -0
  126. package/packages/datadog-plugin-child_process/src/scrub-cmd-params.js +1 -1
  127. package/packages/datadog-plugin-confluentinc-kafka-javascript/src/index.js +1 -1
  128. package/packages/datadog-plugin-cypress/src/cypress-plugin.js +23 -2
  129. package/packages/datadog-plugin-cypress/src/plugin.js +2 -2
  130. package/packages/datadog-plugin-cypress/src/support.js +73 -31
  131. package/packages/datadog-plugin-express/src/index.js +1 -1
  132. package/packages/datadog-plugin-fastify/src/index.js +1 -1
  133. package/packages/datadog-plugin-google-cloud-pubsub/src/client.js +13 -3
  134. package/packages/datadog-plugin-google-cloud-pubsub/src/consumer.js +171 -12
  135. package/packages/datadog-plugin-google-cloud-pubsub/src/index.js +1 -2
  136. package/packages/datadog-plugin-google-cloud-pubsub/src/producer.js +160 -13
  137. package/packages/datadog-plugin-google-cloud-pubsub/src/pubsub-push-subscription.js +217 -0
  138. package/packages/datadog-plugin-google-cloud-vertexai/src/index.js +1 -1
  139. package/packages/datadog-plugin-google-genai/src/index.js +17 -0
  140. package/packages/datadog-plugin-google-genai/src/tracing.js +41 -0
  141. package/packages/datadog-plugin-graphql/src/resolve.js +1 -1
  142. package/packages/datadog-plugin-graphql/src/tools/transforms.js +5 -4
  143. package/packages/datadog-plugin-grpc/src/index.js +1 -1
  144. package/packages/datadog-plugin-http/src/client.js +2 -1
  145. package/packages/datadog-plugin-http/src/index.js +25 -5
  146. package/packages/datadog-plugin-http2/src/client.js +2 -2
  147. package/packages/datadog-plugin-http2/src/index.js +1 -1
  148. package/packages/datadog-plugin-jest/src/util.js +1 -1
  149. package/packages/datadog-plugin-kafkajs/src/index.js +1 -1
  150. package/packages/datadog-plugin-langchain/src/index.js +1 -1
  151. package/packages/datadog-plugin-langchain/src/tracing.js +7 -3
  152. package/packages/datadog-plugin-moleculer/src/index.js +1 -1
  153. package/packages/datadog-plugin-mongodb-core/src/index.js +6 -2
  154. package/packages/datadog-plugin-next/src/index.js +11 -3
  155. package/packages/datadog-plugin-openai/src/index.js +1 -1
  156. package/packages/datadog-plugin-openai/src/stream-helpers.js +30 -10
  157. package/packages/datadog-plugin-openai/src/tracing.js +2 -2
  158. package/packages/datadog-plugin-rhea/src/index.js +1 -1
  159. package/packages/datadog-plugin-ws/src/close.js +56 -3
  160. package/packages/datadog-plugin-ws/src/index.js +4 -0
  161. package/packages/datadog-plugin-ws/src/producer.js +39 -4
  162. package/packages/datadog-plugin-ws/src/receiver.js +39 -3
  163. package/packages/datadog-plugin-ws/src/server.js +13 -1
  164. package/packages/datadog-plugin-ws/src/util.js +107 -0
  165. package/packages/datadog-shimmer/src/shimmer.js +2 -2
  166. package/packages/dd-trace/src/aiguard/sdk.js +21 -13
  167. package/packages/dd-trace/src/appsec/api_security_sampler.js +1 -1
  168. package/packages/dd-trace/src/appsec/graphql.js +2 -2
  169. package/packages/dd-trace/src/appsec/iast/analyzers/code-injection-analyzer.js +1 -1
  170. package/packages/dd-trace/src/appsec/iast/analyzers/command-injection-analyzer.js +1 -1
  171. package/packages/dd-trace/src/appsec/iast/analyzers/cookie-analyzer.js +1 -1
  172. package/packages/dd-trace/src/appsec/iast/analyzers/hardcoded-base-analyzer.js +1 -1
  173. package/packages/dd-trace/src/appsec/iast/analyzers/injection-analyzer.js +1 -1
  174. package/packages/dd-trace/src/appsec/iast/analyzers/ldap-injection-analyzer.js +1 -1
  175. package/packages/dd-trace/src/appsec/iast/analyzers/nosql-injection-mongodb-analyzer.js +3 -3
  176. package/packages/dd-trace/src/appsec/iast/analyzers/path-traversal-analyzer.js +1 -1
  177. package/packages/dd-trace/src/appsec/iast/analyzers/ssrf-analyzer.js +1 -1
  178. package/packages/dd-trace/src/appsec/iast/analyzers/untrusted-deserialization-analyzer.js +1 -1
  179. package/packages/dd-trace/src/appsec/iast/analyzers/unvalidated-redirect-analyzer.js +1 -1
  180. package/packages/dd-trace/src/appsec/iast/analyzers/weak-cipher-analyzer.js +1 -1
  181. package/packages/dd-trace/src/appsec/iast/analyzers/weak-hash-analyzer.js +3 -2
  182. package/packages/dd-trace/src/appsec/iast/analyzers/weak-randomness-analyzer.js +1 -1
  183. package/packages/dd-trace/src/appsec/iast/iast-plugin.js +3 -3
  184. package/packages/dd-trace/src/appsec/iast/index.js +5 -5
  185. package/packages/dd-trace/src/appsec/iast/overhead-controller.js +1 -1
  186. package/packages/dd-trace/src/appsec/iast/security-controls/index.js +1 -1
  187. package/packages/dd-trace/src/appsec/iast/taint-tracking/index.js +1 -2
  188. package/packages/dd-trace/src/appsec/iast/taint-tracking/operations-taint-object.js +1 -1
  189. package/packages/dd-trace/src/appsec/iast/taint-tracking/plugin.js +1 -1
  190. package/packages/dd-trace/src/appsec/iast/taint-tracking/rewriter-esm.mjs +1 -1
  191. package/packages/dd-trace/src/appsec/iast/taint-tracking/rewriter.js +11 -16
  192. package/packages/dd-trace/src/appsec/iast/taint-tracking/taint-tracking-impl.js +1 -1
  193. package/packages/dd-trace/src/appsec/iast/telemetry/namespaces.js +1 -1
  194. package/packages/dd-trace/src/appsec/iast/vulnerability-reporter.js +4 -4
  195. package/packages/dd-trace/src/appsec/index.js +8 -8
  196. package/packages/dd-trace/src/appsec/rasp/command_injection.js +1 -1
  197. package/packages/dd-trace/src/appsec/rasp/index.js +1 -1
  198. package/packages/dd-trace/src/appsec/rasp/lfi.js +1 -1
  199. package/packages/dd-trace/src/appsec/rc-products.js +10 -0
  200. package/packages/dd-trace/src/appsec/recommended.json +230 -3
  201. package/packages/dd-trace/src/appsec/remote_config.js +177 -0
  202. package/packages/dd-trace/src/appsec/reporter.js +3 -7
  203. package/packages/dd-trace/src/appsec/rule_manager.js +37 -20
  204. package/packages/dd-trace/src/appsec/sdk/index.js +1 -1
  205. package/packages/dd-trace/src/appsec/sdk/set_user.js +1 -1
  206. package/packages/dd-trace/src/appsec/sdk/track_event.js +2 -2
  207. package/packages/dd-trace/src/appsec/sdk/user_blocking.js +2 -2
  208. package/packages/dd-trace/src/appsec/user_tracking.js +2 -2
  209. package/packages/dd-trace/src/appsec/waf/index.js +17 -3
  210. package/packages/dd-trace/src/appsec/waf/waf_manager.js +11 -0
  211. package/packages/dd-trace/src/azure_metadata.js +8 -2
  212. package/packages/dd-trace/src/ci-visibility/dynamic-instrumentation/worker/index.js +8 -6
  213. package/packages/dd-trace/src/ci-visibility/exporters/agentless/index.js +2 -2
  214. package/packages/dd-trace/src/ci-visibility/exporters/ci-visibility-exporter.js +1 -1
  215. package/packages/dd-trace/src/ci-visibility/exporters/test-worker/index.js +1 -1
  216. package/packages/dd-trace/src/ci-visibility/test-management/get-test-management-tests.js +4 -2
  217. package/packages/dd-trace/src/config/remote_config.js +34 -0
  218. package/packages/dd-trace/src/config.js +109 -34
  219. package/packages/dd-trace/src/config_defaults.js +16 -3
  220. package/packages/dd-trace/src/constants.js +5 -0
  221. package/packages/dd-trace/src/crashtracking/crashtracker.js +10 -1
  222. package/packages/dd-trace/src/datastreams/checkpointer.js +2 -2
  223. package/packages/dd-trace/src/datastreams/encoding.js +23 -6
  224. package/packages/dd-trace/src/datastreams/index.js +1 -1
  225. package/packages/dd-trace/src/datastreams/pathway.js +41 -2
  226. package/packages/dd-trace/src/datastreams/processor.js +3 -3
  227. package/packages/dd-trace/src/datastreams/schemas/schema_builder.js +1 -1
  228. package/packages/dd-trace/src/datastreams/writer.js +2 -2
  229. package/packages/dd-trace/src/debugger/config.js +1 -0
  230. package/packages/dd-trace/src/debugger/devtools_client/breakpoints.js +15 -5
  231. package/packages/dd-trace/src/debugger/devtools_client/condition.js +1 -1
  232. package/packages/dd-trace/src/debugger/devtools_client/config.js +3 -1
  233. package/packages/dd-trace/src/debugger/devtools_client/index.js +37 -17
  234. package/packages/dd-trace/src/debugger/devtools_client/inspector_promises_polyfill.js +2 -0
  235. package/packages/dd-trace/src/debugger/devtools_client/json-buffer.js +24 -18
  236. package/packages/dd-trace/src/debugger/devtools_client/send.js +21 -11
  237. package/packages/dd-trace/src/debugger/devtools_client/session.js +1 -1
  238. package/packages/dd-trace/src/debugger/devtools_client/snapshot/collector.js +103 -15
  239. package/packages/dd-trace/src/debugger/devtools_client/snapshot/constants.js +25 -0
  240. package/packages/dd-trace/src/debugger/devtools_client/snapshot/index.js +56 -25
  241. package/packages/dd-trace/src/debugger/devtools_client/snapshot/processor.js +64 -23
  242. package/packages/dd-trace/src/debugger/devtools_client/snapshot/symbols.js +3 -1
  243. package/packages/dd-trace/src/debugger/devtools_client/snapshot-pruner.js +404 -0
  244. package/packages/dd-trace/src/debugger/devtools_client/source-maps.js +1 -1
  245. package/packages/dd-trace/src/debugger/devtools_client/state.js +8 -3
  246. package/packages/dd-trace/src/debugger/devtools_client/status.js +3 -3
  247. package/packages/dd-trace/src/debugger/index.js +2 -2
  248. package/packages/dd-trace/src/dogstatsd.js +3 -2
  249. package/packages/dd-trace/src/encode/0.4.js +1 -1
  250. package/packages/dd-trace/src/encode/agentless-ci-visibility.js +2 -2
  251. package/packages/dd-trace/src/encode/coverage-ci-visibility.js +1 -1
  252. package/packages/dd-trace/src/encode/span-stats.js +13 -2
  253. package/packages/dd-trace/src/exporter.js +2 -2
  254. package/packages/dd-trace/src/exporters/agent/index.js +1 -1
  255. package/packages/dd-trace/src/exporters/common/agent-info-exporter.js +1 -1
  256. package/packages/dd-trace/src/exporters/common/request.js +2 -2
  257. package/packages/dd-trace/src/exporters/common/writer.js +1 -1
  258. package/packages/dd-trace/src/exporters/span-stats/index.js +1 -1
  259. package/packages/dd-trace/src/external-logger/src/index.js +1 -2
  260. package/packages/dd-trace/src/flare/index.js +1 -1
  261. package/packages/dd-trace/src/guardrails/index.js +6 -3
  262. package/packages/dd-trace/src/histogram.js +1 -1
  263. package/packages/dd-trace/src/id.js +60 -0
  264. package/packages/dd-trace/src/index.js +1 -1
  265. package/packages/dd-trace/src/lambda/handler.js +4 -4
  266. package/packages/dd-trace/src/lambda/index.js +1 -1
  267. package/packages/dd-trace/src/lambda/runtime/patch.js +4 -4
  268. package/packages/dd-trace/src/lambda/runtime/ritm.js +2 -2
  269. package/packages/dd-trace/src/llmobs/constants/tags.js +8 -1
  270. package/packages/dd-trace/src/llmobs/index.js +8 -9
  271. package/packages/dd-trace/src/llmobs/plugins/ai/index.js +38 -7
  272. package/packages/dd-trace/src/llmobs/plugins/ai/util.js +30 -9
  273. package/packages/dd-trace/src/llmobs/plugins/bedrockruntime.js +3 -3
  274. package/packages/dd-trace/src/llmobs/plugins/genai/index.js +104 -0
  275. package/packages/dd-trace/src/llmobs/plugins/genai/util.js +486 -0
  276. package/packages/dd-trace/src/llmobs/plugins/langchain/handlers/chain.js +1 -1
  277. package/packages/dd-trace/src/llmobs/plugins/langchain/handlers/chat_model.js +1 -1
  278. package/packages/dd-trace/src/llmobs/plugins/langchain/handlers/embedding.js +1 -1
  279. package/packages/dd-trace/src/llmobs/plugins/langchain/handlers/llm.js +1 -1
  280. package/packages/dd-trace/src/llmobs/plugins/langchain/handlers/vectorstore.js +1 -1
  281. package/packages/dd-trace/src/llmobs/plugins/langchain/index.js +2 -2
  282. package/packages/dd-trace/src/llmobs/plugins/openai/constants.js +16 -0
  283. package/packages/dd-trace/src/llmobs/plugins/{openai.js → openai/index.js} +63 -6
  284. package/packages/dd-trace/src/llmobs/plugins/openai/utils.js +126 -0
  285. package/packages/dd-trace/src/llmobs/plugins/vertexai.js +1 -1
  286. package/packages/dd-trace/src/llmobs/sdk.js +20 -22
  287. package/packages/dd-trace/src/llmobs/span_processor.js +15 -14
  288. package/packages/dd-trace/src/llmobs/tagger.js +4 -0
  289. package/packages/dd-trace/src/llmobs/telemetry.js +3 -4
  290. package/packages/dd-trace/src/llmobs/writers/base.js +2 -2
  291. package/packages/dd-trace/src/llmobs/writers/spans.js +1 -2
  292. package/packages/dd-trace/src/log/index.js +1 -1
  293. package/packages/dd-trace/src/noop/proxy.js +2 -2
  294. package/packages/dd-trace/src/noop/span.js +1 -1
  295. package/packages/dd-trace/src/openfeature/index.js +2 -2
  296. package/packages/dd-trace/src/openfeature/noop.js +14 -14
  297. package/packages/dd-trace/src/openfeature/remote_config.js +31 -0
  298. package/packages/dd-trace/src/openfeature/writers/base.js +5 -5
  299. package/packages/dd-trace/src/openfeature/writers/exposures.js +9 -9
  300. package/packages/dd-trace/src/opentelemetry/context_manager.js +2 -2
  301. package/packages/dd-trace/src/opentelemetry/logs/index.js +2 -2
  302. package/packages/dd-trace/src/opentelemetry/logs/logger.js +3 -2
  303. package/packages/dd-trace/src/opentelemetry/logs/logger_provider.js +4 -4
  304. package/packages/dd-trace/src/opentelemetry/logs/otlp_http_log_exporter.js +5 -3
  305. package/packages/dd-trace/src/opentelemetry/logs/otlp_transformer.js +17 -16
  306. package/packages/dd-trace/src/opentelemetry/metrics/constants.js +34 -0
  307. package/packages/dd-trace/src/opentelemetry/metrics/index.js +81 -0
  308. package/packages/dd-trace/src/opentelemetry/metrics/instruments.js +225 -0
  309. package/packages/dd-trace/src/opentelemetry/metrics/meter.js +171 -0
  310. package/packages/dd-trace/src/opentelemetry/metrics/meter_provider.js +54 -0
  311. package/packages/dd-trace/src/opentelemetry/metrics/otlp_http_metric_exporter.js +62 -0
  312. package/packages/dd-trace/src/opentelemetry/metrics/otlp_transformer.js +251 -0
  313. package/packages/dd-trace/src/opentelemetry/metrics/periodic_metric_reader.js +557 -0
  314. package/packages/dd-trace/src/opentelemetry/otlp/otlp_http_exporter_base.js +10 -18
  315. package/packages/dd-trace/src/opentelemetry/otlp/otlp_transformer_base.js +47 -32
  316. package/packages/dd-trace/src/opentelemetry/otlp/protobuf_loader.js +1 -1
  317. package/packages/dd-trace/src/opentelemetry/span.js +3 -3
  318. package/packages/dd-trace/src/opentelemetry/tracer.js +4 -4
  319. package/packages/dd-trace/src/opentelemetry/tracer_provider.js +1 -1
  320. package/packages/dd-trace/src/opentracing/propagation/text_map.js +24 -8
  321. package/packages/dd-trace/src/opentracing/span.js +3 -3
  322. package/packages/dd-trace/src/opentracing/tracer.js +5 -5
  323. package/packages/dd-trace/src/payload-tagging/index.js +8 -4
  324. package/packages/dd-trace/src/plugin_manager.js +5 -3
  325. package/packages/dd-trace/src/plugins/apollo.js +1 -1
  326. package/packages/dd-trace/src/plugins/ci_plugin.js +27 -27
  327. package/packages/dd-trace/src/plugins/database.js +1 -1
  328. package/packages/dd-trace/src/plugins/index.js +6 -1
  329. package/packages/dd-trace/src/plugins/log_plugin.js +1 -1
  330. package/packages/dd-trace/src/plugins/outbound.js +1 -1
  331. package/packages/dd-trace/src/plugins/tracing.js +1 -1
  332. package/packages/dd-trace/src/plugins/util/ci.js +1 -1
  333. package/packages/dd-trace/src/plugins/util/git.js +8 -8
  334. package/packages/dd-trace/src/plugins/util/stacktrace.js +1 -1
  335. package/packages/dd-trace/src/plugins/util/test.js +27 -27
  336. package/packages/dd-trace/src/plugins/util/url.js +119 -1
  337. package/packages/dd-trace/src/plugins/util/user-provided-git.js +1 -1
  338. package/packages/dd-trace/src/plugins/util/web.js +18 -46
  339. package/packages/dd-trace/src/priority_sampler.js +15 -16
  340. package/packages/dd-trace/src/process-tags/index.js +83 -0
  341. package/packages/dd-trace/src/profiling/config.js +33 -22
  342. package/packages/dd-trace/src/profiling/exporter_cli.js +4 -4
  343. package/packages/dd-trace/src/profiling/exporters/agent.js +5 -5
  344. package/packages/dd-trace/src/profiling/index.js +1 -1
  345. package/packages/dd-trace/src/profiling/libuv-size.js +1 -1
  346. package/packages/dd-trace/src/profiling/profiler.js +4 -5
  347. package/packages/dd-trace/src/profiling/profilers/event_plugins/event.js +1 -1
  348. package/packages/dd-trace/src/profiling/profilers/events.js +11 -2
  349. package/packages/dd-trace/src/profiling/profilers/wall.js +4 -4
  350. package/packages/dd-trace/src/proxy.js +17 -18
  351. package/packages/dd-trace/src/rate_limiter.js +1 -1
  352. package/packages/dd-trace/src/remote_config/index.js +541 -137
  353. package/packages/dd-trace/src/require-package-json.js +1 -1
  354. package/packages/dd-trace/src/ritm.js +50 -27
  355. package/packages/dd-trace/src/runtime_metrics/runtime_metrics.js +1 -1
  356. package/packages/dd-trace/src/serverless.js +16 -0
  357. package/packages/dd-trace/src/service-naming/schemas/v0/messaging.js +8 -0
  358. package/packages/dd-trace/src/service-naming/schemas/v0/web.js +4 -0
  359. package/packages/dd-trace/src/service-naming/schemas/v1/messaging.js +8 -0
  360. package/packages/dd-trace/src/service-naming/schemas/v1/web.js +4 -0
  361. package/packages/dd-trace/src/span_format.js +10 -5
  362. package/packages/dd-trace/src/span_processor.js +8 -3
  363. package/packages/dd-trace/src/span_stats.js +21 -8
  364. package/packages/dd-trace/src/spanleak.js +1 -1
  365. package/packages/dd-trace/src/standalone/index.js +1 -1
  366. package/packages/dd-trace/src/startup-log.js +3 -3
  367. package/packages/dd-trace/src/supported-configurations.json +16 -0
  368. package/packages/dd-trace/src/telemetry/dependencies.js +4 -4
  369. package/packages/dd-trace/src/telemetry/endpoints.js +8 -8
  370. package/packages/dd-trace/src/telemetry/logs/index.js +1 -1
  371. package/packages/dd-trace/src/telemetry/telemetry.js +22 -8
  372. package/packages/dd-trace/src/tracer.js +3 -3
  373. package/packages/dd-trace/src/tracer_metadata.js +19 -15
  374. package/vendor/dist/@datadog/sketches-js/LICENSE +39 -0
  375. package/vendor/dist/@datadog/sketches-js/index.js +1 -0
  376. package/vendor/dist/@datadog/source-map/LICENSE +28 -0
  377. package/vendor/dist/@datadog/source-map/index.js +1 -0
  378. package/vendor/dist/@isaacs/ttlcache/LICENSE +55 -0
  379. package/vendor/dist/@isaacs/ttlcache/index.js +1 -0
  380. package/vendor/dist/@opentelemetry/core/LICENSE +201 -0
  381. package/vendor/dist/@opentelemetry/core/index.js +1 -0
  382. package/vendor/dist/@opentelemetry/resources/LICENSE +201 -0
  383. package/vendor/dist/@opentelemetry/resources/index.js +1 -0
  384. package/vendor/dist/astring/LICENSE +19 -0
  385. package/vendor/dist/astring/index.js +1 -0
  386. package/vendor/dist/crypto-randomuuid/index.js +1 -0
  387. package/vendor/dist/escape-string-regexp/LICENSE +9 -0
  388. package/vendor/dist/escape-string-regexp/index.js +1 -0
  389. package/vendor/dist/esquery/LICENSE +24 -0
  390. package/vendor/dist/esquery/index.js +1 -0
  391. package/vendor/dist/ignore/LICENSE +21 -0
  392. package/vendor/dist/ignore/index.js +1 -0
  393. package/vendor/dist/istanbul-lib-coverage/LICENSE +24 -0
  394. package/vendor/dist/istanbul-lib-coverage/index.js +1 -0
  395. package/vendor/dist/jest-docblock/LICENSE +21 -0
  396. package/vendor/dist/jest-docblock/index.js +1 -0
  397. package/vendor/dist/jsonpath-plus/LICENSE +22 -0
  398. package/vendor/dist/jsonpath-plus/index.js +1 -0
  399. package/vendor/dist/limiter/LICENSE +19 -0
  400. package/vendor/dist/limiter/index.js +1 -0
  401. package/vendor/dist/lodash.sortby/LICENSE +47 -0
  402. package/vendor/dist/lodash.sortby/index.js +1 -0
  403. package/vendor/dist/lru-cache/LICENSE +15 -0
  404. package/vendor/dist/lru-cache/index.js +1 -0
  405. package/vendor/dist/meriyah/LICENSE +7 -0
  406. package/vendor/dist/meriyah/index.js +1 -0
  407. package/vendor/dist/module-details-from-path/LICENSE +21 -0
  408. package/vendor/dist/module-details-from-path/index.js +1 -0
  409. package/vendor/dist/mutexify/promise/LICENSE +21 -0
  410. package/vendor/dist/mutexify/promise/index.js +1 -0
  411. package/vendor/dist/opentracing/LICENSE +201 -0
  412. package/vendor/dist/opentracing/binary_carrier.d.ts +11 -0
  413. package/vendor/dist/opentracing/constants.d.ts +61 -0
  414. package/vendor/dist/opentracing/examples/demo/demo.d.ts +2 -0
  415. package/vendor/dist/opentracing/ext/tags.d.ts +90 -0
  416. package/vendor/dist/opentracing/functions.d.ts +20 -0
  417. package/vendor/dist/opentracing/global_tracer.d.ts +14 -0
  418. package/vendor/dist/opentracing/index.d.ts +12 -0
  419. package/vendor/dist/opentracing/index.js +1 -0
  420. package/vendor/dist/opentracing/mock_tracer/index.d.ts +5 -0
  421. package/vendor/dist/opentracing/mock_tracer/mock_context.d.ts +13 -0
  422. package/vendor/dist/opentracing/mock_tracer/mock_report.d.ts +16 -0
  423. package/vendor/dist/opentracing/mock_tracer/mock_span.d.ts +50 -0
  424. package/vendor/dist/opentracing/mock_tracer/mock_tracer.d.ts +26 -0
  425. package/vendor/dist/opentracing/noop.d.ts +8 -0
  426. package/vendor/dist/opentracing/reference.d.ts +33 -0
  427. package/vendor/dist/opentracing/span.d.ts +147 -0
  428. package/vendor/dist/opentracing/span_context.d.ts +26 -0
  429. package/vendor/dist/opentracing/test/api_compatibility.d.ts +16 -0
  430. package/vendor/dist/opentracing/test/mocktracer_implemenation.d.ts +3 -0
  431. package/vendor/dist/opentracing/test/noop_implementation.d.ts +4 -0
  432. package/vendor/dist/opentracing/test/opentracing_api.d.ts +3 -0
  433. package/vendor/dist/opentracing/test/unittest.d.ts +2 -0
  434. package/vendor/dist/opentracing/tracer.d.ts +127 -0
  435. package/vendor/dist/path-to-regexp/LICENSE +21 -0
  436. package/vendor/dist/path-to-regexp/index.js +1 -0
  437. package/vendor/dist/pprof-format/LICENSE +8 -0
  438. package/vendor/dist/pprof-format/index.js +1 -0
  439. package/vendor/dist/protobufjs/LICENSE +39 -0
  440. package/vendor/dist/protobufjs/index.js +1 -0
  441. package/vendor/dist/protobufjs/minimal/LICENSE +39 -0
  442. package/vendor/dist/protobufjs/minimal/index.js +1 -0
  443. package/vendor/dist/retry/LICENSE +21 -0
  444. package/vendor/dist/retry/index.js +1 -0
  445. package/vendor/dist/rfdc/LICENSE +15 -0
  446. package/vendor/dist/rfdc/index.js +1 -0
  447. package/vendor/dist/semifies/LICENSE +201 -0
  448. package/vendor/dist/semifies/index.js +1 -0
  449. package/vendor/dist/shell-quote/LICENSE +24 -0
  450. package/vendor/dist/shell-quote/index.js +1 -0
  451. package/vendor/dist/source-map/LICENSE +28 -0
  452. package/vendor/dist/source-map/index.js +1 -0
  453. package/vendor/dist/source-map/lib/util/LICENSE +28 -0
  454. package/vendor/dist/source-map/lib/util/index.js +1 -0
  455. package/vendor/dist/source-map/mappings.wasm +0 -0
  456. package/vendor/dist/tlhunter-sorted-set/LICENSE +21 -0
  457. package/vendor/dist/tlhunter-sorted-set/index.js +1 -0
  458. package/vendor/dist/ttl-set/LICENSE +21 -0
  459. package/vendor/dist/ttl-set/index.js +1 -0
  460. package/packages/dd-trace/src/remote_config/manager.js +0 -368
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var __webpack_modules__={"./@protobufjs/aspromise/index.js":function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),o=0,s=2,i=!0;s<arguments.length;)r[o++]=arguments[s++];return new Promise(function(s,n){r[o]=function(e){if(i)if(i=!1,e)n(e);else{for(var t=Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];s.apply(null,t)}};try{e.apply(t||null,r)}catch(e){i&&(i=!1,n(e))}})}},"./@protobufjs/base64/index.js":function(e,t){var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var o=Array(64),s=Array(123),i=0;i<64;)s[o[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var s,i=null,n=[],u=0,f=0;t<r;){var a=e[t++];switch(f){case 0:n[u++]=o[a>>2],s=(3&a)<<4,f=1;break;case 1:n[u++]=o[s|a>>4],s=(15&a)<<2,f=2;break;case 2:n[u++]=o[s|a>>6],n[u++]=o[63&a],f=0}u>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,n)),u=0)}return(f&&(n[u++]=o[s],n[u++]=61,1===f&&(n[u++]=61)),i)?(u&&i.push(String.fromCharCode.apply(String,n.slice(0,u))),i.join("")):String.fromCharCode.apply(String,n.slice(0,u))};var n="invalid encoding";r.decode=function(e,t,r){for(var o,i=r,u=0,f=0;f<e.length;){var a=e.charCodeAt(f++);if(61===a&&u>1)break;if(void 0===(a=s[a]))throw Error(n);switch(u){case 0:o=a,u=1;break;case 1:t[r++]=o<<2|(48&a)>>4,o=a,u=2;break;case 2:t[r++]=(15&o)<<4|(60&a)>>2,o=a,u=3;break;case 3:t[r++]=(3&o)<<6|a,u=0}}if(1===u)throw Error(n);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},"./@protobufjs/codegen/index.js":function(e){function t(e,r){"string"==typeof e&&(r=e,e=void 0);var o=[];function s(e){if("string"!=typeof e){var r=i();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var n=Object.keys(e),u=Array(n.length+1),f=Array(n.length),a=0;a<n.length;)u[a]=n[a],f[a]=e[n[a++]];return u[a]=r,Function.apply(null,u).apply(null,f)}return Function(r)()}for(var l=Array(arguments.length-1),p=0;p<l.length;)l[p]=arguments[++p];if(p=0,e=e.replace(/%([%dfijs])/g,function(e,t){var r=l[p++];switch(t){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),p!==l.length)throw Error("parameter count mismatch");return o.push(e),s}function i(t){return"function "+(t||r||"")+"("+(e&&e.join(",")||"")+"){\n "+o.join("\n ")+"\n}"}return s.toString=i,s}e.exports=t,t.verbose=!1},"./@protobufjs/eventemitter/index.js":function(e){function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],o=0;o<r.length;)r[o].fn===t?r.splice(o,1):++o;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],o=1;o<arguments.length;)r.push(arguments[o++]);for(o=0;o<t.length;)t[o].fn.apply(t[o++].ctx,r)}return this}},"./@protobufjs/fetch/index.js":function(e,t,r){e.exports=i;var o=r("./@protobufjs/aspromise/index.js"),s=r("./@protobufjs/inquire/index.js")("fs");function i(e,t,r){return("function"==typeof t?(r=t,t={}):t||(t={}),r)?!t.xhr&&s&&s.readFile?s.readFile(e,function(o,s){return o&&"undefined"!=typeof XMLHttpRequest?i.xhr(e,t,r):o?r(o):r(null,t.binary?s:s.toString("utf8"))}):i.xhr(e,t,r):o(i,this,e,t)}i.xhr=function(e,t,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(4===o.readyState){if(0!==o.status&&200!==o.status)return r(Error("status "+o.status));if(t.binary){var e=o.response;if(!e){e=[];for(var s=0;s<o.responseText.length;++s)e.push(255&o.responseText.charCodeAt(s))}return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(e):e)}return r(null,o.responseText)}},t.binary&&("overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.responseType="arraybuffer"),o.open("GET",e),o.send()}},"./@protobufjs/float/index.js":function(e){function t(e){return"undefined"!=typeof Float32Array?!function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),o=128===r[3];function s(e,o,s){t[0]=e,o[s]=r[0],o[s+1]=r[1],o[s+2]=r[2],o[s+3]=r[3]}function i(e,o,s){t[0]=e,o[s]=r[3],o[s+1]=r[2],o[s+2]=r[1],o[s+3]=r[0]}function n(e,o){return r[0]=e[o],r[1]=e[o+1],r[2]=e[o+2],r[3]=e[o+3],t[0]}function u(e,o){return r[3]=e[o],r[2]=e[o+1],r[1]=e[o+2],r[0]=e[o+3],t[0]}e.writeFloatLE=o?s:i,e.writeFloatBE=o?i:s,e.readFloatLE=o?n:u,e.readFloatBE=o?u:n}():!function(){function t(e,t,r,o){var s=+(t<0);if(s&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,o);else if(isNaN(t))e(0x7fc00000,r,o);else if(t>34028234663852886e22)e((s<<31|0x7f800000)>>>0,r,o);else if(t<11754943508222875e-54)e((s<<31|Math.round(t/1401298464324817e-60))>>>0,r,o);else{var i=Math.floor(Math.log(t)/Math.LN2),n=8388607&Math.round(t*Math.pow(2,-i)*8388608);e((s<<31|i+127<<23|n)>>>0,r,o)}}function n(e,t,r){var o=e(t,r),s=(o>>31)*2+1,i=o>>>23&255,n=8388607&o;return 255===i?n?NaN:1/0*s:0===i?1401298464324817e-60*s*n:s*Math.pow(2,i-150)*(n+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=n.bind(null,s),e.readFloatBE=n.bind(null,i)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),o=128===r[7];function s(e,o,s){t[0]=e,o[s]=r[0],o[s+1]=r[1],o[s+2]=r[2],o[s+3]=r[3],o[s+4]=r[4],o[s+5]=r[5],o[s+6]=r[6],o[s+7]=r[7]}function i(e,o,s){t[0]=e,o[s]=r[7],o[s+1]=r[6],o[s+2]=r[5],o[s+3]=r[4],o[s+4]=r[3],o[s+5]=r[2],o[s+6]=r[1],o[s+7]=r[0]}function n(e,o){return r[0]=e[o],r[1]=e[o+1],r[2]=e[o+2],r[3]=e[o+3],r[4]=e[o+4],r[5]=e[o+5],r[6]=e[o+6],r[7]=e[o+7],t[0]}function u(e,o){return r[7]=e[o],r[6]=e[o+1],r[5]=e[o+2],r[4]=e[o+3],r[3]=e[o+4],r[2]=e[o+5],r[1]=e[o+6],r[0]=e[o+7],t[0]}e.writeDoubleLE=o?s:i,e.writeDoubleBE=o?i:s,e.readDoubleLE=o?n:u,e.readDoubleBE=o?u:n}():!function(){function t(e,t,r,o,s,i){var n,u=+(o<0);if(u&&(o=-o),0===o)e(0,s,i+t),e(1/o>0?0:0x80000000,s,i+r);else if(isNaN(o))e(0,s,i+t),e(0x7ff80000,s,i+r);else if(o>17976931348623157e292)e(0,s,i+t),e((u<<31|0x7ff00000)>>>0,s,i+r);else if(o<22250738585072014e-324)e((n=o/5e-324)>>>0,s,i+t),e((u<<31|n/0x100000000)>>>0,s,i+r);else{var f=Math.floor(Math.log(o)/Math.LN2);1024===f&&(f=1023),e(0x10000000000000*(n=o*Math.pow(2,-f))>>>0,s,i+t),e((u<<31|f+1023<<20|1048576*n&1048575)>>>0,s,i+r)}}function n(e,t,r,o,s){var i=e(o,s+t),n=e(o,s+r),u=(n>>31)*2+1,f=n>>>20&2047,a=0x100000000*(1048575&n)+i;return 2047===f?a?NaN:1/0*u:0===f?5e-324*u*a:u*Math.pow(2,f-1075)*(a+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=n.bind(null,s,0,4),e.readDoubleBE=n.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function o(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},"./@protobufjs/inquire/index.js":function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},"./@protobufjs/path/index.js":function(e,t){var r=t,o=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},s=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=o(e),s="";r&&(s=t.shift()+"/");for(var i=0;i<t.length;)".."===t[i]?i>0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return s+t.join("/")};r.resolve=function(e,t,r){return(r||(t=s(t)),o(t))?t:(r||(e=s(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?s(e+"/"+t):t)}},"./@protobufjs/pool/index.js":function(e){e.exports=t;function t(e,t,r){var o=r||8192,s=o>>>1,i=null,n=o;return function(r){if(r<1||r>s)return e(r);n+r>o&&(i=e(o),n=0);var u=t.call(i,n,n+=r);return 7&n&&(n=(7|n)+1),u}}},"./@protobufjs/utf8/index.js":function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,o=0;o<e.length;++o)(r=e.charCodeAt(o))<128?t+=1:r<2048?t+=2:(64512&r)==55296&&(64512&e.charCodeAt(o+1))==56320?(++o,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var o,s=null,i=[],n=0;t<r;)(o=e[t++])<128?i[n++]=o:o>191&&o<224?i[n++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[n++]=55296+(o>>10),i[n++]=56320+(1023&o)):i[n++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],n>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,i)),n=0);return s?(n&&s.push(String.fromCharCode.apply(String,i.slice(0,n))),s.join("")):String.fromCharCode.apply(String,i.slice(0,n))},r.write=function(e,t,r){for(var o,s,i=r,n=0;n<e.length;++n)(o=e.charCodeAt(n))<128?t[r++]=o:(o<2048?t[r++]=o>>6|192:((64512&o)==55296&&(64512&(s=e.charCodeAt(n+1)))==56320?(o=65536+((1023&o)<<10)+(1023&s),++n,t[r++]=o>>18|240,t[r++]=o>>12&63|128):t[r++]=o>>12|224,t[r++]=o>>6&63|128),t[r++]=63&o|128);return r-i}},"./protobufjs/index.js":function(e,t,r){e.exports=r("./protobufjs/src/index.js")},"./protobufjs/src/common.js":function(e){e.exports=o;var t,r=/\/|\./;function o(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),o[e]=t}o("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),o("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),o("timestamp",{Timestamp:t}),o("empty",{Empty:{fields:{}}}),o("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),o("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),o("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),o.get=function(e){return o[e]||null}},"./protobufjs/src/converter.js":function(e,t,r){var o=t,s=r("./protobufjs/src/enum.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,o){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof s){e("switch(d%s){",o);for(var n=t.resolvedType.values,u=Object.keys(n),f=0;f<u.length;++f)n[u[f]]!==t.typeDefault||i||(e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',o,o,o),t.repeated||e("break"),i=!0),e("case%j:",u[f])("case %i:",n[u[f]])("m%s=%j",o,n[u[f]])("break");e("}")}else e('if(typeof d%s!=="object")',o)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",o,r,o);else{var a=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",o,o);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":a=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,a)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,a?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length >= 0)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function u(e,t,r,o){if(t.resolvedType)t.resolvedType instanceof s?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",o,r,o,o,r,o,o):e("d%s=types[%i].toObject(m%s,o)",o,r,o);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",o,o,o,o,i?"true":"",o);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}o.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var o=0;o<t.length;++o){var u=t[o].resolve(),f=i.safeProp(u.name);u.map?(r("if(d%s){",f)('if(typeof d%s!=="object")',f)("throw TypeError(%j)",u.fullName+": object expected")("m%s={}",f)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",f),n(r,u,o,f+"[ks[i]]")("}")("}")):u.repeated?(r("if(d%s){",f)("if(!Array.isArray(d%s))",f)("throw TypeError(%j)",u.fullName+": array expected")("m%s=[]",f)("for(var i=0;i<d%s.length;++i){",f),n(r,u,o,f+"[i]")("}")("}")):(u.resolvedType instanceof s||r("if(d%s!=null){",f),n(r,u,o,f),u.resolvedType instanceof s||r("}"))}return r("return m")},o.toObject=function(e){var t=e.fieldsArray.slice().sort(i.compareFieldsById);if(!t.length)return i.codegen()("return {}");for(var r=i.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),o=[],n=[],f=[],a=0;a<t.length;++a)t[a].partOf||(t[a].resolve().repeated?o:t[a].map?n:f).push(t[a]);if(o.length){for(r("if(o.arrays||o.defaults){"),a=0;a<o.length;++a)r("d%s=[]",i.safeProp(o[a].name));r("}")}if(n.length){for(r("if(o.objects||o.defaults){"),a=0;a<n.length;++a)r("d%s={}",i.safeProp(n[a].name));r("}")}if(f.length){for(r("if(o.defaults){"),a=0;a<f.length;++a){var l=f[a],p=i.safeProp(l.name);if(l.resolvedType instanceof s)r("d%s=o.enums===String?%j:%j",p,l.resolvedType.valuesById[l.typeDefault],l.typeDefault);else if(l.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",p)("}else")("d%s=o.longs===String?%j:%i",p,l.typeDefault.toString(),l.typeDefault.toNumber());else if(l.bytes){var c="["+Array.prototype.slice.call(l.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",p,String.fromCharCode.apply(String,l.typeDefault))("else{")("d%s=%s",p,c)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",p,p)("}")}else r("d%s=%j",p,l.typeDefault)}r("}")}var h=!1;for(a=0;a<t.length;++a){var l=t[a],d=e._fieldsArray.indexOf(l),p=i.safeProp(l.name);l.map?(h||(h=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",p,p)("d%s={}",p)("for(var j=0;j<ks2.length;++j){"),u(r,l,d,p+"[ks2[j]]")("}")):l.repeated?(r("if(m%s&&m%s.length){",p,p)("d%s=[]",p)("for(var j=0;j<m%s.length;++j){",p),u(r,l,d,p+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",p,l.name),u(r,l,d,p),l.partOf&&r("if(o.oneofs)")("d%s=%j",i.safeProp(l.partOf.name),l.name)),r("}")}return r("return d")}},"./protobufjs/src/decoder.js":function(e,t,r){e.exports=u;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e){return"missing required '"+e.name+"'"}function u(e){for(var t=i.codegen(["r","l","e"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),r=0;r<e.fieldsArray.length;++r){var u=e._fieldsArray[r].resolve(),f=u.resolvedType instanceof o?"int32":u.type,a="m"+i.safeProp(u.name);t("case %i: {",u.id),u.map?(t("if(%s===util.emptyObject)",a)("%s={}",a)("var c2 = r.uint32()+r.pos"),void 0!==s.defaults[u.keyType]?t("k=%j",s.defaults[u.keyType]):t("k=null"),void 0!==s.defaults[f]?t("value=%j",s.defaults[f]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",u.keyType)("case 2:"),void 0===s.basic[f]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",f),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==s.long[u.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',a):t("%s[k]=value",a)):u.repeated?(t("if(!(%s&&%s.length))",a,a)("%s=[]",a),void 0!==s.packed[f]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",a,f)("}else"),void 0===s.basic[f]?t(u.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",a,r):t("%s.push(r.%s())",a,f)):void 0===s.basic[f]?t(u.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",a,r):t("%s=r.%s()",a,f),t("break")("}")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var l=e._fieldsArray[r];l.required&&t("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",n(l))}return t("return m")}},"./protobufjs/src/encoder.js":function(e,t,r){e.exports=u;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,o){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,o,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,o,(t.id<<3|2)>>>0)}function u(e){for(var t,r,u=i.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),f=e.fieldsArray.slice().sort(i.compareFieldsById),t=0;t<f.length;++t){var a=f[t].resolve(),l=e._fieldsArray.indexOf(a),p=a.resolvedType instanceof o?"int32":a.type,c=s.basic[p];r="m"+i.safeProp(a.name),a.map?(u("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",r,a.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",r)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(a.id<<3|2)>>>0,8|s.mapKey[a.keyType],a.keyType),void 0===c?u("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):u(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),u("}")("}")):a.repeated?(u("if(%s!=null&&%s.length){",r,r),a.packed&&void 0!==s.packed[p]?u("w.uint32(%i).fork()",(a.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(u("for(var i=0;i<%s.length;++i)",r),void 0===c?n(u,a,l,r+"[i]"):u("w.uint32(%i).%s(%s[i])",(a.id<<3|c)>>>0,p,r)),u("}")):(a.optional&&u("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,a.name),void 0===c?n(u,a,l,r):u("w.uint32(%i).%s(%s)",(a.id<<3|c)>>>0,p,r))}return u("return w")}},"./protobufjs/src/enum.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/object.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="Enum";var s=r("./protobufjs/src/namespace.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s,i,n){if(o.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=s,this.comments=i||{},this.valuesOptions=n,this._valuesFeatures={},this.reserved=void 0,t)for(var u=Object.keys(t),f=0;f<u.length;++f)"number"==typeof t[u[f]]&&(this.valuesById[this.values[u[f]]=t[u[f]]]=u[f])}n.prototype._resolveFeatures=function(e){return e=this._edition||e,o.prototype._resolveFeatures.call(this,e),Object.keys(this.values).forEach(e=>{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},n.fromJSON=function(e,t){var r=new n(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},n.prototype.add=function(e,t,r,o){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return o&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=o||null),this.comments[e]=r||null,this},n.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},n.prototype.isReservedId=function(e){return s.isReservedId(this.reserved,e)},n.prototype.isReservedName=function(e){return s.isReservedName(this.reserved,e)}},"./protobufjs/src/field.js":function(e,t,r){e.exports=a;var o,s=r("./protobufjs/src/object.js");((a.prototype=Object.create(s.prototype)).constructor=a).className="Field";var i=r("./protobufjs/src/enum.js"),n=r("./protobufjs/src/types.js"),u=r("./protobufjs/src/util.js"),f=/^required|optional|repeated$/;function a(e,t,r,o,i,a,l){if(u.isObject(o)?(l=i,a=o,o=i=void 0):u.isObject(i)&&(l=a,a=i,i=void 0),s.call(this,e,a),!u.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!u.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!f.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!u.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!u.Long&&void 0!==n.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}a.fromJSON=function(e,t){var r=new a(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(a.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(a.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(a.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(a.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(a.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),a.prototype.setOption=function(e,t,r){return s.prototype.setOption.call(this,e,t,r)},a.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return u.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},a.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=n.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=u.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;u.base64.test(this.typeDefault)?u.base64.decode(this.typeDefault,e=u.newBuffer(u.base64.length(this.typeDefault)),0):u.utf8.write(this.typeDefault,e=u.newBuffer(u.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=u.emptyObject:this.repeated?this.defaultValue=u.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),s.prototype.resolve.call(this)},a.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===n.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},a.prototype._resolveFeatures=function(e){return s.prototype._resolveFeatures.call(this,this._edition||e)},a.d=function(e,t,r,o){return"function"==typeof t?t=u.decorateType(t).name:t&&"object"==typeof t&&(t=u.decorateEnum(t).name),function(s,i){u.decorateType(s.constructor).add(new a(i,e,t,r,{default:o}))}},a._configure=function(e){o=e}},"./protobufjs/src/index-light.js":function(e,t,r){var o=e.exports=r("./protobufjs/src/index-minimal.js");function s(e,t,r){return"function"==typeof t?(r=t,t=new o.Root):t||(t=new o.Root),t.load(e,r)}function i(e,t){return t||(t=new o.Root),t.loadSync(e)}o.build="light",o.load=s,o.loadSync=i,o.encoder=r("./protobufjs/src/encoder.js"),o.decoder=r("./protobufjs/src/decoder.js"),o.verifier=r("./protobufjs/src/verifier.js"),o.converter=r("./protobufjs/src/converter.js"),o.ReflectionObject=r("./protobufjs/src/object.js"),o.Namespace=r("./protobufjs/src/namespace.js"),o.Root=r("./protobufjs/src/root.js"),o.Enum=r("./protobufjs/src/enum.js"),o.Type=r("./protobufjs/src/type.js"),o.Field=r("./protobufjs/src/field.js"),o.OneOf=r("./protobufjs/src/oneof.js"),o.MapField=r("./protobufjs/src/mapfield.js"),o.Service=r("./protobufjs/src/service.js"),o.Method=r("./protobufjs/src/method.js"),o.Message=r("./protobufjs/src/message.js"),o.wrappers=r("./protobufjs/src/wrappers.js"),o.types=r("./protobufjs/src/types.js"),o.util=r("./protobufjs/src/util.js"),o.ReflectionObject._configure(o.Root),o.Namespace._configure(o.Type,o.Service,o.Enum),o.Root._configure(o.Type),o.Field._configure(o.Type)},"./protobufjs/src/index-minimal.js":function(e,t,r){var o=t;function s(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=r("./protobufjs/src/writer.js"),o.BufferWriter=r("./protobufjs/src/writer_buffer.js"),o.Reader=r("./protobufjs/src/reader.js"),o.BufferReader=r("./protobufjs/src/reader_buffer.js"),o.util=r("./protobufjs/src/util/minimal.js"),o.rpc=r("./protobufjs/src/rpc.js"),o.roots=r("./protobufjs/src/roots.js"),o.configure=s,s()},"./protobufjs/src/index.js":function(e,t,r){var o=e.exports=r("./protobufjs/src/index-light.js");o.build="full",o.tokenize=r("./protobufjs/src/tokenize.js"),o.parse=r("./protobufjs/src/parse.js"),o.common=r("./protobufjs/src/common.js"),o.Root._configure(o.Type,o.parse,o.common)},"./protobufjs/src/mapfield.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/field.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="MapField";var s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s,n,u){if(o.call(this,e,t,s,void 0,void 0,n,u),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}n.fromJSON=function(e,t){return new n(e,t.id,t.keyType,t.type,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},n.prototype.resolve=function(){if(this.resolved)return this;if(void 0===s.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return o.prototype.resolve.call(this)},n.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(o,s){i.decorateType(o.constructor).add(new n(s,e,t,r))}}},"./protobufjs/src/message.js":function(e,t,r){e.exports=s;var o=r("./protobufjs/src/util/minimal.js");function s(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)this[t[r]]=e[t[r]]}s.create=function(e){return this.$type.create(e)},s.encode=function(e,t){return this.$type.encode(e,t)},s.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},s.decode=function(e){return this.$type.decode(e)},s.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},s.verify=function(e){return this.$type.verify(e)},s.fromObject=function(e){return this.$type.fromObject(e)},s.toObject=function(e,t){return this.$type.toObject(e,t)},s.prototype.toJSON=function(){return this.$type.toObject(this,o.toJSONOptions)}},"./protobufjs/src/method.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/object.js");((i.prototype=Object.create(o.prototype)).constructor=i).className="Method";var s=r("./protobufjs/src/util.js");function i(e,t,r,i,n,u,f,a,l){if(s.isObject(n)?(f=n,n=u=void 0):s.isObject(u)&&(f=u,u=void 0),!(void 0===t||s.isString(t)))throw TypeError("type must be a string");if(!s.isString(r))throw TypeError("requestType must be a string");if(!s.isString(i))throw TypeError("responseType must be a string");o.call(this,e,f),this.type=t||"rpc",this.requestType=r,this.requestStream=!!n||void 0,this.responseType=i,this.responseStream=!!u||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=a,this.parsedOptions=l}i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},i.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),o.prototype.resolve.call(this))}},"./protobufjs/src/namespace.js":function(e,t,r){e.exports=p;var o,s,i,n=r("./protobufjs/src/object.js");((p.prototype=Object.create(n.prototype)).constructor=p).className="Namespace";var u=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/util.js"),a=r("./protobufjs/src/oneof.js");function l(e,t){if(e&&e.length){for(var r={},o=0;o<e.length;++o)r[e[o].name]=e[o].toJSON(t);return r}}function p(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function c(e){e._nestedArray=null,e._lookupCache={};for(var t=e;t=t.parent;)t._lookupCache={};return e}p.fromJSON=function(e,t){return new p(e,t.options).addJSON(t.nested)},p.arrayToJSON=l,p.isReservedId=function(e,t){if(e){for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>t)return!0}return!1},p.isReservedName=function(e,t){if(e){for(var r=0;r<e.length;++r)if(e[r]===t)return!0}return!1},Object.defineProperty(p.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}}),p.prototype.toJSON=function(e){return f.toObject(["options",this.options,"nested",l(this.nestedArray,e)])},p.prototype.addJSON=function(e){var t=this;if(e)for(var r,n=Object.keys(e),f=0;f<n.length;++f)r=e[n[f]],t.add((void 0!==r.fields?o.fromJSON:void 0!==r.values?i.fromJSON:void 0!==r.methods?s.fromJSON:void 0!==r.id?u.fromJSON:p.fromJSON)(n[f],r));return this},p.prototype.get=function(e){return this.nested&&this.nested[e]||null},p.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof i)return this.nested[e].values;throw Error("no such enum: "+e)},p.prototype.add=function(e){if(!(e instanceof u&&void 0!==e.extend||e instanceof o||e instanceof a||e instanceof i||e instanceof s||e instanceof p))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t)if(t instanceof p&&e instanceof p&&!(t instanceof o||t instanceof s)){for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}else throw Error("duplicate name '"+e.name+"' in "+this)}else this.nested={};this.nested[e.name]=e,this instanceof o||this instanceof s||this instanceof i||this instanceof u||e._edition||(e._edition=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var f=this;f=f.parent;)f._needsRecursiveFeatureResolution=!0,f._needsRecursiveResolve=!0;return e.onAdd(this),c(this)},p.prototype.remove=function(e){if(!(e instanceof n))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),c(this)},p.prototype.define=function(e,t){if(f.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");for(var r=this;e.length>0;){var o=e.shift();if(r.nested&&r.nested[o]){if(!((r=r.nested[o])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(o))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t<e.length;)e[t]instanceof p?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},p.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(this._needsRecursiveFeatureResolution=!1,e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.nestedArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),f.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var o=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var s=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+o];if(s&&(!t||t.indexOf(s.constructor)>-1)||(s=this._lookupImpl(e,o))&&(!t||t.indexOf(s.constructor)>-1))return s;if(r)return null;for(var i=this;i.parent;){if((s=i.parent._lookupImpl(e,o))&&(!t||t.indexOf(s.constructor)>-1))return s;i=i.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),o=null;if(r)1===e.length?o=r:r instanceof p&&(e=e.slice(1),o=r._lookupImpl(e,e.join(".")));else for(var s=0;s<this.nestedArray.length;++s)this._nestedArray[s]instanceof p&&(r=this._nestedArray[s]._lookupImpl(e,t))&&(o=r);return this._lookupCache[t]=o,o},p.prototype.lookupType=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such type: "+e);return t},p.prototype.lookupEnum=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},p.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[o,i]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},p.prototype.lookupService=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},p._configure=function(e,t,r){o=e,s=t,i=r}},"./protobufjs/src/object.js":function(e,t,r){e.exports=a,a.className="ReflectionObject";let o=r("./protobufjs/src/oneof.js");var s,i=r("./protobufjs/src/util.js"),n={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"},u={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},f={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function a(e,t){if(!i.isString(e))throw TypeError("name must be a string");if(t&&!i.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(a.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),a.prototype.toJSON=function(){throw Error()},a.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof s&&t._handleAdd(this)},a.prototype.onRemove=function(e){var t=e.root;t instanceof s&&t._handleRemove(this),this.parent=null,this.resolved=!1},a.prototype.resolve=function(){return this.resolved||this.root instanceof s&&(this.resolved=!0),this},a.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},a.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw Error("Unknown edition for "+this.fullName);var r=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if("proto2"===e)t=Object.assign({},u);else if("proto3"===e)t=Object.assign({},f);else if("2023"===e)t=Object.assign({},n);else throw Error("Unknown edition: "+e);this._features=Object.assign(t,r||{}),this._featuresResolved=!0;return}if(this.partOf instanceof o){var s=Object.assign({},this.partOf._features);this._features=Object.assign(s,r||{})}else if(this.declaringField);else if(this.parent){var i=Object.assign({},this.parent._features);this._features=Object.assign(i,r||{})}else throw Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},a.prototype._inferLegacyProtoFeatures=function(){return{}},a.prototype.getOption=function(e){if(this.options)return this.options[e]},a.prototype.setOption=function(e,t,r){return this.options||(this.options={}),/^features\./.test(e)?i.setProperty(this.options,e,t,r):r&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this},a.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var o=this.parsedOptions;if(r){var s=o.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(s){var n=s[e];i.setProperty(n,r,t)}else(s={})[e]=i.setProperty({},r,t),o.push(s)}else{var u={};u[e]=t,o.push(u)}return this},a.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),o=0;o<r.length;++o)this.setOption(r[o],e[r[o]],t);return this},a.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},a.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},a._configure=function(e){s=e}},"./protobufjs/src/oneof.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/object.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="OneOf";var s=r("./protobufjs/src/field.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s){if(Array.isArray(t)||(r=t,t=void 0),o.call(this,e,r),!(void 0===t||Array.isArray(t)))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=s}function u(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}n.fromJSON=function(e,t){return new n(e,t.oneof,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},n.prototype.add=function(e){if(!(e instanceof s))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,u(this),this},n.prototype.remove=function(e){if(!(e instanceof s))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},n.prototype.onAdd=function(e){o.prototype.onAdd.call(this,e);for(var t=this,r=0;r<this.oneof.length;++r){var s=e.get(this.oneof[r]);s&&!s.partOf&&(s.partOf=t,t.fieldsArray.push(s))}u(this)},n.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);o.prototype.onRemove.call(this,e)},Object.defineProperty(n.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var e=this.fieldsArray[0];return null!=e.options&&!0===e.options.proto3_optional}}),n.d=function(){for(var e=Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){i.decorateType(t.constructor).add(new n(r,e)),Object.defineProperty(t,r,{get:i.oneOfGetter(e),set:i.oneOfSetter(e)})}}},"./protobufjs/src/parse.js":function(e,t,r){e.exports=k,k.filename=null,k.defaults={keepCase:!1};var o=r("./protobufjs/src/tokenize.js"),s=r("./protobufjs/src/root.js"),i=r("./protobufjs/src/type.js"),n=r("./protobufjs/src/field.js"),u=r("./protobufjs/src/mapfield.js"),f=r("./protobufjs/src/oneof.js"),a=r("./protobufjs/src/enum.js"),l=r("./protobufjs/src/service.js"),p=r("./protobufjs/src/method.js"),c=r("./protobufjs/src/object.js"),h=r("./protobufjs/src/types.js"),d=r("./protobufjs/src/util.js"),y=/^[1-9][0-9]*$/,v=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,b=/^-?0[x][0-9a-fA-F]+$/,j=/^0[0-7]+$/,g=/^-?0[0-7]+$/,w=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,O=/^[a-zA-Z_][a-zA-Z_0-9]*$/,_=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function k(e,t,r){t instanceof s||(r=t,t=new s),r||(r=k.defaults);var x,A,E,S,T=r.preferTrailingComment||!1,N=o(e,r.alternateCommentMode||!1),R=N.next,F=N.push,I=N.peek,B=N.skip,P=N.cmnt,D=!0,L="proto2",C=t,J=[],$={},q=r.keepCase?function(e){return e}:d.camelCase;function V(){J.forEach(e=>{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function z(e,t,r){var o=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(o?o+", ":"")+"line "+N.line+")")}function M(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw z(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return F(t),M();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return W(t,!0)}catch(r){if(e&&_.test(t))return t;throw z(t,"value")}}function H(e,t){do if(t&&('"'===(r=I())||"'"===r)){var r,o,s=M();if(e.push(s),L>=2023)throw z(s,"id")}else try{e.push([o=G(R()),B("to",!0)?G(R()):o])}catch(o){if(t&&_.test(r)&&L>=2023)e.push(r);else throw o}while(B(",",!0));var i={options:void 0};i.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(i,function(e){if("option"===e)ef(i,e),B(";");else throw z(e)},function(){ec(i)})}function W(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(j.test(e))return r*parseInt(e,8);if(w.test(e))return r*parseFloat(e);throw z(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw z(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(g.test(e))return parseInt(e,8);throw z(e,"id")}function X(){if(void 0!==A)throw z("package");if(A=R(),!_.test(A))throw z(A,"name");C=C.define(A),B(";")}function Z(){var e,t=I();switch(t){case"weak":e=S||(S=[]),R();break;case"public":R();default:e=E||(E=[])}t=M(),B(";"),e.push(t)}function K(){if(B("="),(L=M())<2023)throw z(L,"syntax");B(";")}function Q(){if(B("="),!["2023"].includes(L=M()))throw z(L,"edition");B(";")}function Y(e,t){switch(t){case"option":return ef(e,t),B(";"),!0;case"message":return et(e,t),!0;case"enum":return en(e,t),!0;case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var o,s=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),B("{",!0)){for(;"}"!==(o=R());)t(o);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(s)||e.comment)}function et(e,t){if(!O.test(t=R()))throw z(t,"type name");var r=new i(t);ee(r,function(e){if(!Y(r,e))switch(e){case"map":es(r,e);break;case"required":if("proto2"!==L)throw z(e);case"repeated":er(r,e);break;case"optional":if("proto3"===L)er(r,"proto3_optional");else if("proto2"!==L)throw z(e);else er(r,"optional");break;case"oneof":ei(r,e);break;case"extensions":H(r.extensions||(r.extensions=[]));break;case"reserved":H(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!_.test(e))throw z(e);F(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var o=R();if("group"===o)return void eo(e,t);for(;o.endsWith(".")||I().startsWith(".");)o+=R();if(!_.test(o))throw z(o,"type");var s=R();if(!O.test(s))throw z(s,"name");s=q(s),B("=");var i=new n(s,G(R()),o,t,r);if(ee(i,function(e){if("option"===e)ef(i,e),B(";");else throw z(e)},function(){ec(i)}),"proto3_optional"===t){var u=new f("_"+s);i.setOption("proto3_optional",!0),u.add(i),e.add(u)}else e.add(i);e===C&&J.push(i)}function eo(e,t){if(L>=2023)throw z("group");var r=R();if(!O.test(r))throw z(r,"name");var o=d.lcFirst(r);r===o&&(r=d.ucFirst(r)),B("=");var s=G(R()),u=new i(r);u.group=!0;var f=new n(o,s,r,t);f.filename=k.filename,ee(u,function(e){switch(e){case"option":ef(u,e),B(";");break;case"required":case"repeated":er(u,e);break;case"optional":"proto3"===L?er(u,"proto3_optional"):er(u,"optional");break;case"message":et(u,e);break;case"enum":en(u,e);break;case"reserved":H(u.reserved||(u.reserved=[]),!0);break;default:throw z(e)}}),e.add(u).add(f)}function es(e){B("<");var t=R();if(void 0===h.mapKey[t])throw z(t,"type");B(",");var r=R();if(!_.test(r))throw z(r,"type");B(">");var o=R();if(!O.test(o))throw z(o,"name");B("=");var s=new u(q(o),G(R()),t,r);ee(s,function(e){if("option"===e)ef(s,e),B(";");else throw z(e)},function(){ec(s)}),e.add(s)}function ei(e,t){if(!O.test(t=R()))throw z(t,"name");var r=new f(q(t));ee(r,function(e){"option"===e?(ef(r,e),B(";")):(F(e),er(r,"optional"))}),e.add(r)}function en(e,t){if(!O.test(t=R()))throw z(t,"name");var r=new a(t);ee(r,function(e){switch(e){case"option":ef(r,e),B(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:eu(r,e)}}),e.add(r),e===C&&J.push(r)}function eu(e,t){if(!O.test(t))throw z(t,"name");B("=");var r=G(R(),!0),o={options:void 0};o.getOption=function(e){return this.options[e]},o.setOption=function(e,t){c.prototype.setOption.call(o,e,t)},o.setParsedOption=function(){},ee(o,function(e){if("option"===e)ef(o,e),B(";");else throw z(e)},function(){ec(o)}),e.add(t,r,o.comment,o.parsedOptions||o.options)}function ef(e,t){var r,o,s=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var i=R();B(")"),t="("+i+")"}if(s){if(s=!1,t.includes(".")&&!t.includes("(")){var n=t.split(".");r=n[0]+".",t=n[1];continue}r=t}else o=o?o+=t:t;t=R()}var u=ea(e,o?r.concat(o):r);o=o&&"."===o[0]?o.slice(1):o,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,u,o)}function ea(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!O.test(x=R()))throw z(x,"name");if(null===x)throw z(x,"end of input");var o,s,i=x;if(B(":",!0),"{"===I())o=ea(e,t+"."+x);else if("["===I()){if(o=[],B("[",!0)){do s=U(!0),o.push(s);while(B(",",!0));B("]"),void 0!==s&&el(e,t+"."+x,s)}}else o=U(!0),el(e,t+"."+x,o);var n=r[i];n&&(o=[].concat(n).concat(o)),r[i]=o,B(",",!0),B(";",!0)}return r}var u=U(!0);return el(e,t,u),u}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,o){e.setParsedOption&&e.setParsedOption(t,r,o)}function ec(e){if(B("[",!0)){do ef(e,"option");while(B(",",!0));B("]")}return e}function eh(e,t){if(!O.test(t=R()))throw z(t,"service name");var r=new l(t);ee(r,function(e){if(!Y(r,e))if("rpc"===e)ed(r,e);else throw z(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),o=t;if(!O.test(t=R()))throw z(t,"name");var s,i,n,u,f=t;if(B("("),B("stream",!0)&&(i=!0),!_.test(t=R())||(s=t,B(")"),B("returns"),B("("),B("stream",!0)&&(u=!0),!_.test(t=R())))throw z(t);n=t,B(")");var a=new p(f,o,s,n,i,u);a.comment=r,ee(a,function(e){if("option"===e)ef(a,e),B(";");else throw z(e)}),e.add(a)}function ey(e,t){if(!_.test(t=R()))throw z(t,"reference");var r=t;ee(null,function(t){switch(t){case"required":case"repeated":er(e,t,r);break;case"optional":"proto3"===L?er(e,"proto3_optional",r):er(e,"optional",r);break;default:if("proto2"===L||!_.test(t))throw z(t);F(t),er(e,"optional",r)}})}for(;null!==(x=R());)switch(x){case"package":if(!D)throw z(x);X();break;case"import":if(!D)throw z(x);Z();break;case"syntax":if(!D)throw z(x);K();break;case"edition":if(!D)throw z(x);Q();break;case"option":ef(C,x),B(";",!0);break;default:if(Y(C,x)){D=!1;continue}throw z(x)}return V(),k.filename=null,{package:A,imports:E,weakImports:S,root:t}}},"./protobufjs/src/reader.js":function(e,t,r){e.exports=f;var o,s=r("./protobufjs/src/util/minimal.js"),i=s.LongBits,n=s.utf8;function u(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function f(e){this.buf=e,this.pos=0,this.len=e.length}var a="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new f(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new f(e);throw Error("illegal buffer")},l=function(){return s.Buffer?function(e){return(f.create=function(e){return s.Buffer.isBuffer(e)?new o(e):a(e)})(e)}:a};function p(){var e=new i(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw u(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw u(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw u(this,8);return new i(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=s.Array.prototype.subarray||s.Array.prototype.slice,f.prototype.uint32=function(){var e=0xffffffff;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return e}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var e=s.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var e=s.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},f.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw u(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var o=s.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},f.prototype.string=function(){var e=this.bytes();return n.read(e,0,e.length)},f.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw u(this,e);this.pos+=e}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},f._configure=function(e){o=e,f.create=l(),o._configure();var t=s.Long?"toLong":"toNumber";s.merge(f.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},"./protobufjs/src/reader_buffer.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/reader.js");(i.prototype=Object.create(o.prototype)).constructor=i;var s=r("./protobufjs/src/util/minimal.js");function i(e){o.call(this,e)}i._configure=function(){s.Buffer&&(i.prototype._slice=s.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},"./protobufjs/src/root.js":function(e,t,r){e.exports=p;var o,s,i,n=r("./protobufjs/src/namespace.js");((p.prototype=Object.create(n.prototype)).constructor=p).className="Root";var u=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/enum.js"),a=r("./protobufjs/src/oneof.js"),l=r("./protobufjs/src/util.js");function p(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function c(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,o){"function"==typeof r&&(o=r,r=void 0);var n=this;if(!o)return l.asPromise(e,n,t,r);var u=o===c;function f(e,t){if(o){if(u)throw e;t&&t.resolveAll();var r=o;o=null,r(e,t)}}function a(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in i)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){s.filename=e;var o,i=s(t,n,r),p=0;if(i.imports)for(;p<i.imports.length;++p)(o=a(i.imports[p])||n.resolvePath(e,i.imports[p]))&&h(o);if(i.weakImports)for(p=0;p<i.weakImports.length;++p)(o=a(i.weakImports[p])||n.resolvePath(e,i.weakImports[p]))&&h(o,!0)}else n.setOptions(t.options).addJSON(t.nested)}catch(e){f(e)}u||d||f(null,n)}function h(e,t){if(e=a(e)||e,!(n.files.indexOf(e)>-1)){if(n.files.push(e),e in i)return void(u?p(e,i[e]):(++d,setTimeout(function(){--d,p(e,i[e])})));if(u){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){t||f(e);return}p(e,r)}else++d,n.fetch(e,function(r,s){if(--d,o){if(r)return void(t?d||f(null,n):f(r));p(e,s)}})}}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v<t.length;++v)(y=n.resolvePath("",t[v]))&&h(y);return u?n.resolveAll():d||f(null,n),n},p.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,c)},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return n.prototype.resolveAll.call(this)};var h=/^[A-Z]/;function d(e,t){var r=t.parent.lookup(t.extend);if(r){var o=new u(t.fullName,t.id,t.type,t.rule,void 0,t.options);return!!r.get(o.name)||(o.declaringField=t,t.extensionField=o,r.add(o),!0)}return!1}p.prototype._handleAdd=function(e){if(e instanceof u)void 0===e.extend||e.extensionField||d(this,e)||this.deferred.push(e);else if(e instanceof f)h.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof a)){if(e instanceof o)for(var t=0;t<this.deferred.length;)d(this,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);h.test(e.name)&&(e.parent[e.name]=e)}(e instanceof o||e instanceof f||e instanceof u)&&(this._fullyQualifiedObjects[e.fullName]=e)},p.prototype._handleRemove=function(e){if(e instanceof u){if(void 0!==e.extend)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof f)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r<e.nestedArray.length;++r)this._handleRemove(e._nestedArray[r]);h.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},p._configure=function(e,t,r){o=e,s=t,i=r}},"./protobufjs/src/roots.js":function(e){e.exports={}},"./protobufjs/src/rpc.js":function(e,t,r){t.Service=r("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js":function(e,t,r){e.exports=s;var o=r("./protobufjs/src/util/minimal.js");function s(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");o.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}(s.prototype=Object.create(o.EventEmitter.prototype)).constructor=s,s.prototype.rpcCall=function e(t,r,s,i,n){if(!i)throw TypeError("request must be specified");var u=this;if(!n)return o.asPromise(e,u,t,r,s,i);if(!u.rpcImpl)return void setTimeout(function(){n(Error("already ended"))},0);try{return u.rpcImpl(t,r[u.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(e,r){if(e)return u.emit("error",e,t),n(e);if(null===r)return void u.end(!0);if(!(r instanceof s))try{r=s[u.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return u.emit("error",e,t),n(e)}return u.emit("data",r,t),n(null,r)})}catch(e){u.emit("error",e,t),setTimeout(function(){n(e)},0);return}},s.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/service.js":function(e,t,r){e.exports=u;var o=r("./protobufjs/src/namespace.js");((u.prototype=Object.create(o.prototype)).constructor=u).className="Service";var s=r("./protobufjs/src/method.js"),i=r("./protobufjs/src/util.js"),n=r("./protobufjs/src/rpc.js");function u(e,t){o.call(this,e,t),this.methods={},this._methodsArray=null}function f(e){return e._methodsArray=null,e}u.fromJSON=function(e,t){var r=new u(e,t.options);if(t.methods)for(var o=Object.keys(t.methods),i=0;i<o.length;++i)r.add(s.fromJSON(o[i],t.methods[o[i]]));return t.nested&&r.addJSON(t.nested),t.edition&&(r._edition=t.edition),r.comment=t.comment,r._defaultEdition="proto3",r},u.prototype.toJSON=function(e){var t=o.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return i.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"methods",o.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Object.defineProperty(u.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=i.toArray(this.methods))}}),u.prototype.get=function(e){return this.methods[e]||o.prototype.get.call(this,e)},u.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;o.prototype.resolve.call(this);for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return this},u.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,o.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof s?(this.methods[e.name]=e,e.parent=this,f(this)):o.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof s){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,f(this)}return o.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var o,s=new n.Service(e,t,r),u=0;u<this.methodsArray.length;++u){var f=i.lcFirst((o=this._methodsArray[u]).resolve().name).replace(/[^$\w_]/g,"");s[f]=i.codegen(["r","c"],i.isReserved(f)?f+"_":f)("return this.rpcCall(m,q,s,r,c)")({m:o,q:o.resolvedRequestType.ctor,s:o.resolvedResponseType.ctor})}return s}},"./protobufjs/src/tokenize.js":function(e){e.exports=p;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,o=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,s=/^ *[*/]+ */,i=/^\s*\*?\/*/,n=/\n/g,u=/\s/,f=/\\(.?)/g,a={0:"\0",r:"\r",n:"\n",t:" "};function l(e){return e.replace(f,function(e,t){switch(t){case"\\":case"":return t;default:return a[t]||""}})}function p(e,f){e=e.toString();var a=0,p=e.length,c=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+c+")")}function b(){var t="'"===v?o:r;t.lastIndex=a-1;var s=t.exec(e);if(!s)throw m("string");return a=t.lastIndex,k(v),v=null,l(s[1])}function j(t){return e.charAt(t)}function g(t,r,o){var u,a={type:e.charAt(t++),lineEmpty:!1,leading:o},l=t-(f?2:3);do if(--l<0||"\n"===(u=e.charAt(l))){a.lineEmpty=!0;break}while(" "===u||" "===u);for(var p=e.substring(t,r).split(n),y=0;y<p.length;++y)p[y]=p[y].replace(f?i:s,"").trim();a.text=p.join("\n").trim(),d[c]=a,h=c}function w(t){var r=O(t),o=e.substring(t,r);return/^\s*\/\//.test(o)}function O(e){for(var t=e;t<p&&"\n"!==j(t);)t++;return t}function _(){if(y.length>0)return y.shift();if(v)return b();var r,o,s,i,n,l=0===a;do{if(a===p)return null;for(r=!1;u.test(s=j(a));)if("\n"===s&&(l=!0,++c),++a===p)return null;if("/"===j(a)){if(++a===p)throw m("comment");if("/"===j(a))if(f){if(i=a,n=!1,w(a-1)){n=!0;do if((a=O(a))===p||(a++,!l))break;while(w(a))}else a=Math.min(p,O(a)+1);n&&(g(i,a,l),l=!0),c++,r=!0}else{for(n="/"===j(i=a+1);"\n"!==j(++a);)if(a===p)return null;++a,n&&(g(i,a-1,l),l=!0),++c,r=!0}else{if("*"!==(s=j(a)))return"/";i=a+1,n=f||"*"===j(i);do{if("\n"===s&&++c,++a===p)throw m("comment");o=s,s=j(a)}while("*"!==o||"/"!==s);++a,n&&(g(i,a-2,l),l=!0),r=!0}}}while(r);var h=a;if(t.lastIndex=0,!t.test(j(h++)))for(;h<p&&!t.test(j(h));)++h;var d=e.substring(a,a=h);return('"'===d||"'"===d)&&(v=d),d}function k(e){y.push(e)}function x(){if(!y.length){var e=_();if(null===e)return null;k(e)}return y[0]}function A(e,t){var r=x();if(r===e)return _(),!0;if(!t)throw m("token '"+r+"', '"+e+"' expected");return!1}function E(e){var t,r=null;return void 0===e?(t=d[c-1],delete d[c-1],t&&(f||"*"===t.type||t.lineEmpty)&&(r=t.leading?t.text:null)):(h<e&&x(),t=d[e],delete d[e],t&&!t.lineEmpty&&(f||"/"===t.type)&&(r=t.leading?null:t.text)),r}return Object.defineProperty({next:_,peek:x,push:k,skip:A,cmnt:E},"line",{get:function(){return c}})}p.unescape=l},"./protobufjs/src/type.js":function(e,t,r){e.exports=b;var o=r("./protobufjs/src/namespace.js");((b.prototype=Object.create(o.prototype)).constructor=b).className="Type";var s=r("./protobufjs/src/enum.js"),i=r("./protobufjs/src/oneof.js"),n=r("./protobufjs/src/field.js"),u=r("./protobufjs/src/mapfield.js"),f=r("./protobufjs/src/service.js"),a=r("./protobufjs/src/message.js"),l=r("./protobufjs/src/reader.js"),p=r("./protobufjs/src/writer.js"),c=r("./protobufjs/src/util.js"),h=r("./protobufjs/src/encoder.js"),d=r("./protobufjs/src/decoder.js"),y=r("./protobufjs/src/verifier.js"),v=r("./protobufjs/src/converter.js"),m=r("./protobufjs/src/wrappers.js");function b(e,t){o.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function j(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(b.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],o=r.id;if(this._fieldsById[o])throw Error("duplicate id "+o+" in "+this);this._fieldsById[o]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=c.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=c.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=b.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof a||((e.prototype=new a).constructor=e,c.merge(e.prototype,t)),e.$type=e.prototype.$type=this,c.merge(e,a,!0),this._ctor=e;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var o={};for(r=0;r<this.oneofsArray.length;++r)o[this._oneofsArray[r].resolve().name]={get:c.oneOfGetter(this._oneofsArray[r].oneof),set:c.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(e.prototype,o)}}}),b.generateConstructor=function(e){for(var t,r=c.codegen(["p"],e.name),o=0;o<e.fieldsArray.length;++o)(t=e._fieldsArray[o]).map?r("this%s={}",c.safeProp(t.name)):t.repeated&&r("this%s=[]",c.safeProp(t.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},b.fromJSON=function(e,t){var r=new b(e,t.options);r.extensions=t.extensions,r.reserved=t.reserved;for(var a=Object.keys(t.fields),l=0;l<a.length;++l)r.add((void 0!==t.fields[a[l]].keyType?u.fromJSON:n.fromJSON)(a[l],t.fields[a[l]]));if(t.oneofs)for(a=Object.keys(t.oneofs),l=0;l<a.length;++l)r.add(i.fromJSON(a[l],t.oneofs[a[l]]));if(t.nested)for(a=Object.keys(t.nested),l=0;l<a.length;++l){var p=t.nested[a[l]];r.add((void 0!==p.id?n.fromJSON:void 0!==p.fields?b.fromJSON:void 0!==p.values?s.fromJSON:void 0!==p.methods?f.fromJSON:o.fromJSON)(a[l],p))}return t.extensions&&t.extensions.length&&(r.extensions=t.extensions),t.reserved&&t.reserved.length&&(r.reserved=t.reserved),t.group&&(r.group=!0),t.comment&&(r.comment=t.comment),t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},b.prototype.toJSON=function(e){var t=o.prototype.toJSON.call(this,e),r=!!e&&!!e.keepComments;return c.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"oneofs",o.arrayToJSON(this.oneofsArray,e),"fields",o.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},b.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;o.prototype.resolveAll.call(this);var e=this.oneofsArray;for(r=0;r<e.length;)e[r++].resolve();for(var t=this.fieldsArray,r=0;r<t.length;)t[r++].resolve();return this},b.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(e=this._edition||e,o.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach(t=>{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},b.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof n&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),j(this)}return e instanceof i?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),j(this)):o.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof n&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),j(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),j(this)}return o.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r<this.fieldsArray.length;++r)t.push(this._fieldsArray[r].resolve().resolvedType);this.encode=h(this)({Writer:p,types:t,util:c}),this.decode=d(this)({Reader:l,types:t,util:c}),this.verify=y(this)({types:t,util:c}),this.fromObject=v.fromObject(this)({types:t,util:c}),this.toObject=v.toObject(this)({types:t,util:c});var o=m[e];if(o){var s=Object.create(this);s.fromObject=this.fromObject,this.fromObject=o.fromObject.bind(s),s.toObject=this.toObject,this.toObject=o.toObject.bind(s)}return this},b.prototype.encode=function(e,t){return this.setup().encode(e,t)},b.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},b.prototype.decode=function(e,t){return this.setup().decode(e,t)},b.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},b.prototype.verify=function(e){return this.setup().verify(e)},b.prototype.fromObject=function(e){return this.setup().fromObject(e)},b.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},b.d=function(e){return function(t){c.decorateType(t,e)}}},"./protobufjs/src/types.js":function(e,t,r){var o=t,s=r("./protobufjs/src/util.js"),i=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function n(e,t){var r=0,o={};for(t|=0;r<e.length;)o[i[r+t]]=e[r++];return o}o.basic=n([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),o.defaults=n([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",s.emptyArray,null]),o.long=n([0,0,0,1,1],7),o.mapKey=n([0,0,0,5,5,0,0,0,1,1,0,2],2),o.packed=n([1,5,0,0,0,5,5,0,0,0,1,1,0])},"./protobufjs/src/util.js":function(e,t,r){var o,s,i=e.exports=r("./protobufjs/src/util/minimal.js"),n=r("./protobufjs/src/roots.js");i.codegen=r("./@protobufjs/codegen/index.js"),i.fetch=r("./@protobufjs/fetch/index.js"),i.path=r("./@protobufjs/path/index.js"),i.fs=i.inquire("fs"),i.toArray=function(e){if(e){for(var t=Object.keys(e),r=Array(t.length),o=0;o<t.length;)r[o]=e[t[o++]];return r}return[]},i.toObject=function(e){for(var t={},r=0;r<e.length;){var o=e[r++],s=e[r++];void 0!==s&&(t[o]=s)}return t};var u=/\\/g,f=/"/g;i.isReserved=function(e){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(e)},i.safeProp=function(e){return!/^[$\w_]+$/.test(e)||i.isReserved(e)?'["'+e.replace(u,"\\\\").replace(f,'\\"')+'"]':"."+e},i.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var a=/_([a-z])/g;i.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(a,function(e,t){return t.toUpperCase()})},i.compareFieldsById=function(e,t){return e.id-t.id},i.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(i.decorateRoot.remove(e.$type),e.$type.name=t,i.decorateRoot.add(e.$type)),e.$type;o||(o=r("./protobufjs/src/type.js"));var s=new o(t||e.name);return i.decorateRoot.add(s),s.ctor=e,Object.defineProperty(e,"$type",{value:s,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:s,enumerable:!1}),s};var l=0;i.decorateEnum=function(e){if(e.$type)return e.$type;s||(s=r("./protobufjs/src/enum.js"));var t=new s("Enum"+l++,e);return i.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},i.setProperty=function(e,t,r,o){function s(e,t,r){var i=t.shift();if("__proto__"===i||"prototype"===i)return e;if(t.length>0)e[i]=s(e[i]||{},t,r);else{var n=e[i];if(n&&o)return e;n&&(r=[].concat(n).concat(r)),e[i]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return s(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return n.decorated||(n.decorated=new(r("./protobufjs/src/root.js")))}})},"./protobufjs/src/util/longbits.js":function(e,t,r){e.exports=s;var o=r("./protobufjs/src/util/minimal.js");function s(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=s.zero=new s(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var n=s.zeroHash="\0\0\0\0\0\0\0\0";s.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,o=(e-r)/0x100000000>>>0;return t&&(o=~o>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++o>0xffffffff&&(o=0))),new s(r,o)},s.from=function(e){if("number"==typeof e)return s.fromNumber(e);if(o.isString(e))if(!o.Long)return s.fromNumber(parseInt(e,10));else e=o.Long.fromString(e);return e.low||e.high?new s(e.low>>>0,e.high>>>0):i},s.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},s.prototype.toLong=function(e){return o.Long?new o.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var u=String.prototype.charCodeAt;s.fromHash=function(e){return e===n?i:new s((u.call(e,0)|u.call(e,1)<<8|u.call(e,2)<<16|u.call(e,3)<<24)>>>0,(u.call(e,4)|u.call(e,5)<<8|u.call(e,6)<<16|u.call(e,7)<<24)>>>0)},s.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},s.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},s.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},s.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},"./protobufjs/src/util/minimal.js":function(e,t,r){var o=t;function s(e,t,r){for(var o=Object.keys(t),s=0;s<o.length;++s)void 0!==e[o[s]]&&r||(e[o[s]]=t[o[s]]);return e}function i(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack||""}),r&&s(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}o.asPromise=r("./@protobufjs/aspromise/index.js"),o.base64=r("./@protobufjs/base64/index.js"),o.EventEmitter=r("./@protobufjs/eventemitter/index.js"),o.float=r("./@protobufjs/float/index.js"),o.inquire=r("./@protobufjs/inquire/index.js"),o.utf8=r("./@protobufjs/utf8/index.js"),o.pool=r("./@protobufjs/pool/index.js"),o.LongBits=r("./protobufjs/src/util/longbits.js"),o.isNode=!!("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),o.global=o.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o.isString=function(e){return"string"==typeof e||e instanceof String},o.isObject=function(e){return e&&"object"==typeof e},o.isset=o.isSet=function(e,t){var r=e[t];return!!(null!=r&&e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var r=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},o.merge=s,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=i,o.ProtocolError=i("ProtocolError"),o.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},o.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},o._configure=function(){var e=o.Buffer;if(!e){o._Buffer_from=o._Buffer_allocUnsafe=null;return}o._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},o._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}},"./protobufjs/src/verifier.js":function(e,t,r){e.exports=f;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/util.js");function i(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function n(e,t,r,s){if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(%s){",s)("default:")("return%j",i(t,"enum value"));for(var n=Object.keys(t.resolvedType.values),u=0;u<n.length;++u)e("case %i:",t.resolvedType.values[n[u]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s);",r,s)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",s)("return%j",i(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",s,s,s,s)("return%j",i(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',s)("return%j",i(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',s)("return%j",i(t,"boolean"));break;case"string":e("if(!util.isString(%s))",s)("return%j",i(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',s,s,s)("return%j",i(t,"buffer"))}return e}function u(e,t,r){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",r)("return%j",i(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",i(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",i(t,"boolean key"))}return e}function f(e){var t=s.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r=e.oneofsArray,o={};r.length&&t("var p={}");for(var f=0;f<e.fieldsArray.length;++f){var a=e._fieldsArray[f].resolve(),l="m"+s.safeProp(a.name);if(a.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",l,a.name),a.map)t("if(!util.isObject(%s))",l)("return%j",i(a,"object"))("var k=Object.keys(%s)",l)("for(var i=0;i<k.length;++i){"),u(t,a,"k[i]"),n(t,a,f,l+"[k[i]]")("}");else if(a.repeated)t("if(!Array.isArray(%s))",l)("return%j",i(a,"array"))("for(var i=0;i<%s.length;++i){",l),n(t,a,f,l+"[i]")("}");else{if(a.partOf){var p=s.safeProp(a.partOf.name);1===o[a.partOf.name]&&t("if(p%s===1)",p)("return%j",a.partOf.name+": multiple values"),o[a.partOf.name]=1,t("p%s=1",p)}n(t,a,f,l)}a.optional&&t("}")}return t("return null")}},"./protobufjs/src/wrappers.js":function(e,t,r){var o=t,s=r("./protobufjs/src/message.js");o[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var o="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return -1===o.indexOf("/")&&(o="/"+o),this.create({type_url:o,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="type.googleapis.com/",o="",i="";if(t&&t.json&&e.type_url&&e.value){i=e.type_url.substring(e.type_url.lastIndexOf("/")+1),o=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var n=this.lookup(i);n&&(e=n.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof s){var u=e.$type.toObject(e,t),f="."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName;return""===o&&(o=r),i=o+f,u["@type"]=i,u}return this.toObject(e,t)}}},"./protobufjs/src/writer.js":function(e,t,r){e.exports=p;var o,s=r("./protobufjs/src/util/minimal.js"),i=s.LongBits,n=s.base64,u=s.utf8;function f(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function a(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function p(){this.len=0,this.head=new f(a,0,0),this.tail=this.head,this.states=null}var c=function(){return s.Buffer?function(){return(p.create=function(){return new o})()}:function(){return new p}};function h(e,t,r){t[r]=255&e}function d(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function v(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=c(),p.alloc=function(e){return new s.Array(e)},s.Array!==Array&&(p.alloc=s.pool(p.alloc,s.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new f(e,t,r),this.len+=t,this},y.prototype=Object.create(f.prototype),y.prototype.fn=d,p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(v,10,i.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=i.from(e);return this._push(v,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(v,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,+!!e)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=i.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(s.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(s.float.writeDoubleLE,8,e)};var b=s.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var o=0;o<e.length;++o)t[r+o]=e[o]};p.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(h,1,0);if(s.isString(e)){var r=p.alloc(t=n.length(e));n.decode(e,r,0),e=r}return this.uint32(t)._push(b,t,e)},p.prototype.string=function(e){var t=u.length(e);return t?this.uint32(t)._push(u.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(a,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(a,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){o=e,p.create=c(),o._configure()}},"./protobufjs/src/writer_buffer.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/writer.js");(i.prototype=Object.create(o.prototype)).constructor=i;var s=r("./protobufjs/src/util/minimal.js");function i(){o.call(this)}function n(e,t,r){e.length<40?s.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=s._Buffer_allocUnsafe,i.writeBytesBuffer=s.Buffer&&s.Buffer.prototype instanceof Uint8Array&&"set"===s.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var o=0;o<e.length;)t[r++]=e[o++]}},i.prototype.bytes=function(e){s.isString(e)&&(e=s._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=s.Buffer.byteLength(e);return this.uint32(t),t&&this._push(n,t,e),this},i._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__("./protobufjs/index.js");module.exports=__webpack_exports__})();
@@ -0,0 +1,39 @@
1
+ This license applies to all parts of protobuf.js except those files
2
+ either explicitly including or referencing a different license or
3
+ located in a directory containing a different LICENSE file.
4
+
5
+ ---
6
+
7
+ Copyright (c) 2016, Daniel Wirtz All rights reserved.
8
+
9
+ Redistribution and use in source and binary forms, with or without
10
+ modification, are permitted provided that the following conditions are
11
+ met:
12
+
13
+ * Redistributions of source code must retain the above copyright
14
+ notice, this list of conditions and the following disclaimer.
15
+ * Redistributions in binary form must reproduce the above copyright
16
+ notice, this list of conditions and the following disclaimer in the
17
+ documentation and/or other materials provided with the distribution.
18
+ * Neither the name of its author, nor the names of its contributors
19
+ may be used to endorse or promote products derived from this software
20
+ without specific prior written permission.
21
+
22
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+
34
+ ---
35
+
36
+ Code generated by the command line utilities is owned by the owner
37
+ of the input file used when generating it. This code is not
38
+ standalone and requires a support library to be linked with it. This
39
+ support library is itself covered by the above license.
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var __webpack_modules__={"./@protobufjs/aspromise/index.js":function(t){t.exports=r;function r(t,r){for(var e=Array(arguments.length-1),i=0,n=2,o=!0;n<arguments.length;)e[i++]=arguments[n++];return new Promise(function(n,s){e[i]=function(t){if(o)if(o=!1,t)s(t);else{for(var r=Array(arguments.length-1),e=0;e<r.length;)r[e++]=arguments[e];n.apply(null,r)}};try{t.apply(r||null,e)}catch(t){o&&(o=!1,s(t))}})}},"./@protobufjs/base64/index.js":function(t,r){var e=r;e.length=function(t){var r=t.length;if(!r)return 0;for(var e=0;--r%4>1&&"="===t.charAt(r);)++e;return Math.ceil(3*t.length)/4-e};for(var i=Array(64),n=Array(123),o=0;o<64;)n[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;e.encode=function(t,r,e){for(var n,o=null,s=[],u=0,f=0;r<e;){var h=t[r++];switch(f){case 0:s[u++]=i[h>>2],n=(3&h)<<4,f=1;break;case 1:s[u++]=i[n|h>>4],n=(15&h)<<2,f=2;break;case 2:s[u++]=i[n|h>>6],s[u++]=i[63&h],f=0}u>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(f&&(s[u++]=i[n],s[u++]=61,1===f&&(s[u++]=61)),o)?(u&&o.push(String.fromCharCode.apply(String,s.slice(0,u))),o.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";e.decode=function(t,r,e){for(var i,o=e,u=0,f=0;f<t.length;){var h=t.charCodeAt(f++);if(61===h&&u>1)break;if(void 0===(h=n[h]))throw Error(s);switch(u){case 0:i=h,u=1;break;case 1:r[e++]=i<<2|(48&h)>>4,i=h,u=2;break;case 2:r[e++]=(15&i)<<4|(60&h)>>2,i=h,u=3;break;case 3:r[e++]=(3&i)<<6|h,u=0}}if(1===u)throw Error(s);return e-o},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},"./@protobufjs/eventemitter/index.js":function(t){function r(){this._listeners={}}t.exports=r,r.prototype.on=function(t,r,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:r,ctx:e||this}),this},r.prototype.off=function(t,r){if(void 0===t)this._listeners={};else if(void 0===r)this._listeners[t]=[];else for(var e=this._listeners[t],i=0;i<e.length;)e[i].fn===r?e.splice(i,1):++i;return this},r.prototype.emit=function(t){var r=this._listeners[t];if(r){for(var e=[],i=1;i<arguments.length;)e.push(arguments[i++]);for(i=0;i<r.length;)r[i].fn.apply(r[i++].ctx,e)}return this}},"./@protobufjs/float/index.js":function(t){function r(t){return"undefined"!=typeof Float32Array?!function(){var r=new Float32Array([-0]),e=new Uint8Array(r.buffer),i=128===e[3];function n(t,i,n){r[0]=t,i[n]=e[0],i[n+1]=e[1],i[n+2]=e[2],i[n+3]=e[3]}function o(t,i,n){r[0]=t,i[n]=e[3],i[n+1]=e[2],i[n+2]=e[1],i[n+3]=e[0]}function s(t,i){return e[0]=t[i],e[1]=t[i+1],e[2]=t[i+2],e[3]=t[i+3],r[0]}function u(t,i){return e[3]=t[i],e[2]=t[i+1],e[1]=t[i+2],e[0]=t[i+3],r[0]}t.writeFloatLE=i?n:o,t.writeFloatBE=i?o:n,t.readFloatLE=i?s:u,t.readFloatBE=i?u:s}():!function(){function r(t,r,e,i){var n=+(r<0);if(n&&(r=-r),0===r)t(1/r>0?0:0x80000000,e,i);else if(isNaN(r))t(0x7fc00000,e,i);else if(r>34028234663852886e22)t((n<<31|0x7f800000)>>>0,e,i);else if(r<11754943508222875e-54)t((n<<31|Math.round(r/1401298464324817e-60))>>>0,e,i);else{var o=Math.floor(Math.log(r)/Math.LN2),s=8388607&Math.round(r*Math.pow(2,-o)*8388608);t((n<<31|o+127<<23|s)>>>0,e,i)}}function s(t,r,e){var i=t(r,e),n=(i>>31)*2+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:1/0*n:0===o?1401298464324817e-60*n*s:n*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=r.bind(null,e),t.writeFloatBE=r.bind(null,i),t.readFloatLE=s.bind(null,n),t.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var r=new Float64Array([-0]),e=new Uint8Array(r.buffer),i=128===e[7];function n(t,i,n){r[0]=t,i[n]=e[0],i[n+1]=e[1],i[n+2]=e[2],i[n+3]=e[3],i[n+4]=e[4],i[n+5]=e[5],i[n+6]=e[6],i[n+7]=e[7]}function o(t,i,n){r[0]=t,i[n]=e[7],i[n+1]=e[6],i[n+2]=e[5],i[n+3]=e[4],i[n+4]=e[3],i[n+5]=e[2],i[n+6]=e[1],i[n+7]=e[0]}function s(t,i){return e[0]=t[i],e[1]=t[i+1],e[2]=t[i+2],e[3]=t[i+3],e[4]=t[i+4],e[5]=t[i+5],e[6]=t[i+6],e[7]=t[i+7],r[0]}function u(t,i){return e[7]=t[i],e[6]=t[i+1],e[5]=t[i+2],e[4]=t[i+3],e[3]=t[i+4],e[2]=t[i+5],e[1]=t[i+6],e[0]=t[i+7],r[0]}t.writeDoubleLE=i?n:o,t.writeDoubleBE=i?o:n,t.readDoubleLE=i?s:u,t.readDoubleBE=i?u:s}():!function(){function r(t,r,e,i,n,o){var s,u=+(i<0);if(u&&(i=-i),0===i)t(0,n,o+r),t(1/i>0?0:0x80000000,n,o+e);else if(isNaN(i))t(0,n,o+r),t(0x7ff80000,n,o+e);else if(i>17976931348623157e292)t(0,n,o+r),t((u<<31|0x7ff00000)>>>0,n,o+e);else if(i<22250738585072014e-324)t((s=i/5e-324)>>>0,n,o+r),t((u<<31|s/0x100000000)>>>0,n,o+e);else{var f=Math.floor(Math.log(i)/Math.LN2);1024===f&&(f=1023),t(0x10000000000000*(s=i*Math.pow(2,-f))>>>0,n,o+r),t((u<<31|f+1023<<20|1048576*s&1048575)>>>0,n,o+e)}}function s(t,r,e,i,n){var o=t(i,n+r),s=t(i,n+e),u=(s>>31)*2+1,f=s>>>20&2047,h=0x100000000*(1048575&s)+o;return 2047===f?h?NaN:1/0*u:0===f?5e-324*u*h:u*Math.pow(2,f-1075)*(h+0x10000000000000)}t.writeDoubleLE=r.bind(null,e,0,4),t.writeDoubleBE=r.bind(null,i,4,0),t.readDoubleLE=s.bind(null,n,0,4),t.readDoubleBE=s.bind(null,o,4,0)}(),t}function e(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}function i(t,r,e){r[e]=t>>>24,r[e+1]=t>>>16&255,r[e+2]=t>>>8&255,r[e+3]=255&t}function n(t,r){return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0}function o(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}t.exports=r(r)},"./@protobufjs/inquire/index.js":function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},"./@protobufjs/pool/index.js":function(t){t.exports=r;function r(t,r,e){var i=e||8192,n=i>>>1,o=null,s=i;return function(e){if(e<1||e>n)return t(e);s+e>i&&(o=t(i),s=0);var u=r.call(o,s,s+=e);return 7&s&&(s=(7|s)+1),u}}},"./@protobufjs/utf8/index.js":function(t,r){var e=r;e.length=function(t){for(var r=0,e=0,i=0;i<t.length;++i)(e=t.charCodeAt(i))<128?r+=1:e<2048?r+=2:(64512&e)==55296&&(64512&t.charCodeAt(i+1))==56320?(++i,r+=4):r+=3;return r},e.read=function(t,r,e){if(e-r<1)return"";for(var i,n=null,o=[],s=0;r<e;)(i=t[r++])<128?o[s++]=i:i>191&&i<224?o[s++]=(31&i)<<6|63&t[r++]:i>239&&i<365?(i=((7&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&t[r++])<<6|63&t[r++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,o.slice(0,s))),n.join("")):String.fromCharCode.apply(String,o.slice(0,s))},e.write=function(t,r,e){for(var i,n,o=e,s=0;s<t.length;++s)(i=t.charCodeAt(s))<128?r[e++]=i:(i<2048?r[e++]=i>>6|192:((64512&i)==55296&&(64512&(n=t.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&n),++s,r[e++]=i>>18|240,r[e++]=i>>12&63|128):r[e++]=i>>12|224,r[e++]=i>>6&63|128),r[e++]=63&i|128);return e-o}},"./protobufjs/minimal.js":function(t,r,e){t.exports=e("./protobufjs/src/index-minimal.js")},"./protobufjs/src/index-minimal.js":function(t,r,e){var i=r;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=e("./protobufjs/src/writer.js"),i.BufferWriter=e("./protobufjs/src/writer_buffer.js"),i.Reader=e("./protobufjs/src/reader.js"),i.BufferReader=e("./protobufjs/src/reader_buffer.js"),i.util=e("./protobufjs/src/util/minimal.js"),i.rpc=e("./protobufjs/src/rpc.js"),i.roots=e("./protobufjs/src/roots.js"),i.configure=n,n()},"./protobufjs/src/reader.js":function(t,r,e){t.exports=f;var i,n=e("./protobufjs/src/util/minimal.js"),o=n.LongBits,s=n.utf8;function u(t,r){return RangeError("index out of range: "+t.pos+" + "+(r||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length}var h="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")},l=function(){return n.Buffer?function(t){return(f.create=function(t){return n.Buffer.isBuffer(t)?new i(t):h(t)})(t)}:h};function a(){var t=new o(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*r)>>>0,t}if(this.len-this.pos>4){for(;r<5;++r)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}else for(;r<5;++r){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function c(t,r){return(t[r-4]|t[r-3]<<8|t[r-2]<<16|t[r-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw u(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,f.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),r=this.pos,e=this.pos+t;if(e>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,e);if(r===e){var i=n.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,e)},f.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f._configure=function(t){i=t,f.create=l(),i._configure();var r=n.Long?"toLong":"toNumber";n.merge(f.prototype,{int64:function(){return a.call(this)[r](!1)},uint64:function(){return a.call(this)[r](!0)},sint64:function(){return a.call(this).zzDecode()[r](!1)},fixed64:function(){return p.call(this)[r](!0)},sfixed64:function(){return p.call(this)[r](!1)}})}},"./protobufjs/src/reader_buffer.js":function(t,r,e){t.exports=o;var i=e("./protobufjs/src/reader.js");(o.prototype=Object.create(i.prototype)).constructor=o;var n=e("./protobufjs/src/util/minimal.js");function o(t){i.call(this,t)}o._configure=function(){n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},"./protobufjs/src/roots.js":function(t){t.exports={}},"./protobufjs/src/rpc.js":function(t,r,e){r.Service=e("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js":function(t,r,e){t.exports=n;var i=e("./protobufjs/src/util/minimal.js");function n(t,r,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!r,this.responseDelimited=!!e}(n.prototype=Object.create(i.EventEmitter.prototype)).constructor=n,n.prototype.rpcCall=function t(r,e,n,o,s){if(!o)throw TypeError("request must be specified");var u=this;if(!s)return i.asPromise(t,u,r,e,n,o);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(r,e[u.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,e){if(t)return u.emit("error",t,r),s(t);if(null===e)return void u.end(!0);if(!(e instanceof n))try{e=n[u.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return u.emit("error",t,r),s(t)}return u.emit("data",e,r),s(null,e)})}catch(t){u.emit("error",t,r),setTimeout(function(){s(t)},0);return}},n.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/util/longbits.js":function(t,r,e){t.exports=n;var i=e("./protobufjs/src/util/minimal.js");function n(t,r){this.lo=t>>>0,this.hi=r>>>0}var o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(t){if(0===t)return o;var r=t<0;r&&(t=-t);var e=t>>>0,i=(t-e)/0x100000000>>>0;return r&&(i=~i>>>0,e=~e>>>0,++e>0xffffffff&&(e=0,++i>0xffffffff&&(i=0))),new n(e,i)},n.from=function(t){if("number"==typeof t)return n.fromNumber(t);if(i.isString(t))if(!i.Long)return n.fromNumber(parseInt(t,10));else t=i.Long.fromString(t);return t.low||t.high?new n(t.low>>>0,t.high>>>0):o},n.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,e=~this.hi>>>0;return r||(e=e+1>>>0),-(r+0x100000000*e)}return this.lo+0x100000000*this.hi},n.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;n.fromHash=function(t){return t===s?o:new n((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},n.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},n.prototype.length=function(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===r?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:e<128?9:10}},"./protobufjs/src/util/minimal.js":function(t,r,e){var i=r;function n(t,r,e){for(var i=Object.keys(r),n=0;n<i.length;++n)void 0!==t[i[n]]&&e||(t[i[n]]=r[i[n]]);return t}function o(t){function r(t,e){if(!(this instanceof r))return new r(t,e);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack||""}),e&&n(this,e)}return r.prototype=Object.create(Error.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),r}i.asPromise=e("./@protobufjs/aspromise/index.js"),i.base64=e("./@protobufjs/base64/index.js"),i.EventEmitter=e("./@protobufjs/eventemitter/index.js"),i.float=e("./@protobufjs/float/index.js"),i.inquire=e("./@protobufjs/inquire/index.js"),i.utf8=e("./@protobufjs/utf8/index.js"),i.pool=e("./@protobufjs/pool/index.js"),i.LongBits=e("./protobufjs/src/util/longbits.js"),i.isNode=!!("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),i.global=i.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},i.isString=function(t){return"string"==typeof t||t instanceof String},i.isObject=function(t){return t&&"object"==typeof t},i.isset=i.isSet=function(t,r){var e=t[r];return!!(null!=e&&t.hasOwnProperty(r))&&("object"!=typeof e||(Array.isArray(e)?e.length:Object.keys(e).length)>0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,r){var e=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(e.lo,e.hi,r):e.toNumber(!!r)},i.merge=n,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function(t){for(var r={},e=0;e<t.length;++e)r[t[e]]=1;return function(){for(var t=Object.keys(this),e=t.length-1;e>-1;--e)if(1===r[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},i.oneOfSetter=function(t){return function(r){for(var e=0;e<t.length;++e)t[e]!==r&&delete this[t[e]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var t=i.Buffer;if(!t){i._Buffer_from=i._Buffer_allocUnsafe=null;return}i._Buffer_from=t.from!==Uint8Array.from&&t.from||function(r,e){return new t(r,e)},i._Buffer_allocUnsafe=t.allocUnsafe||function(r){return new t(r)}}},"./protobufjs/src/writer.js":function(t,r,e){t.exports=a;var i,n=e("./protobufjs/src/util/minimal.js"),o=n.LongBits,s=n.base64,u=n.utf8;function f(t,r,e){this.fn=t,this.len=r,this.next=void 0,this.val=e}function h(){}function l(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function a(){this.len=0,this.head=new f(h,0,0),this.tail=this.head,this.states=null}var c=function(){return n.Buffer?function(){return(a.create=function(){return new i})()}:function(){return new a}};function p(t,r,e){r[e]=255&t}function b(t,r,e){for(;t>127;)r[e++]=127&t|128,t>>>=7;r[e]=t}function y(t,r){this.len=t,this.next=void 0,this.val=r}function d(t,r,e){for(;t.hi;)r[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)r[e++]=127&t.lo|128,t.lo=t.lo>>>7;r[e++]=t.lo}function g(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}a.create=c(),a.alloc=function(t){return new n.Array(t)},n.Array!==Array&&(a.alloc=n.pool(a.alloc,n.Array.prototype.subarray)),a.prototype._push=function(t,r,e){return this.tail=this.tail.next=new f(t,r,e),this.len+=r,this},y.prototype=Object.create(f.prototype),y.prototype.fn=b,a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new y((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(d,10,o.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var r=o.from(t);return this._push(d,r.length(),r)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var r=o.from(t).zzEncode();return this._push(d,r.length(),r)},a.prototype.bool=function(t){return this._push(p,1,+!!t)},a.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var r=o.from(t);return this._push(g,4,r.lo)._push(g,4,r.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(n.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(n.float.writeDoubleLE,8,t)};var m=n.Array.prototype.set?function(t,r,e){r.set(t,e)}:function(t,r,e){for(var i=0;i<t.length;++i)r[e+i]=t[i]};a.prototype.bytes=function(t){var r=t.length>>>0;if(!r)return this._push(p,1,0);if(n.isString(t)){var e=a.alloc(r=s.length(t));s.decode(t,e,0),t=e}return this.uint32(r)._push(m,r,t)},a.prototype.string=function(t){var r=u.length(t);return r?this.uint32(r)._push(u.write,r,t):this._push(p,1,0)},a.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(h,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(h,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,r=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=r,this.len+=e),this},a.prototype.finish=function(){for(var t=this.head.next,r=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,r,e),e+=t.len,t=t.next;return r},a._configure=function(t){i=t,a.create=c(),i._configure()}},"./protobufjs/src/writer_buffer.js":function(t,r,e){t.exports=o;var i=e("./protobufjs/src/writer.js");(o.prototype=Object.create(i.prototype)).constructor=o;var n=e("./protobufjs/src/util/minimal.js");function o(){i.call(this)}function s(t,r,e){t.length<40?n.utf8.write(t,r,e):r.utf8Write?r.utf8Write(t,e):r.write(t,e)}o._configure=function(){o.alloc=n._Buffer_allocUnsafe,o.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(t,r,e){r.set(t,e)}:function(t,r,e){if(t.copy)t.copy(r,e,0,t.length);else for(var i=0;i<t.length;)r[e++]=t[i++]}},o.prototype.bytes=function(t){n.isString(t)&&(t=n._Buffer_from(t,"base64"));var r=t.length>>>0;return this.uint32(r),r&&this._push(o.writeBytesBuffer,r,t),this},o.prototype.string=function(t){var r=n.Buffer.byteLength(t);return this.uint32(r),r&&this._push(s,r,t),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var r=__webpack_module_cache__[t];if(void 0!==r)return r.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}var __webpack_exports__=__webpack_require__("./protobufjs/minimal.js");module.exports=__webpack_exports__})();
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2011:
2
+ Tim Koschützki (tim@debuggable.com)
3
+ Felix Geisendörfer (felix@debuggable.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1 @@
1
+ (()=>{var t={"./retry/index.js":function(t,e,r){t.exports=r("./retry/lib/retry.js")},"./retry/lib/retry.js":function(t,e,r){var i=r("./retry/lib/retry_operation.js");e.operation=function(t){return new i(e.timeouts(t),{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var i=[],o=0;o<e.retries;o++)i.push(this.createTimeout(o,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(o,e)),i.sort(function(t,e){return t-e}),i},e.createTimeout=function(t,e){var r=Math.round((e.randomize?Math.random()+1:1)*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return Math.min(r,e.maxTimeout)},e.wrap=function(t,r,i){if(r instanceof Array&&(i=r,r=null),!i)for(var o in i=[],t)"function"==typeof t[o]&&i.push(o);for(var n=0;n<i.length;n++){var s=i[n],u=t[s];t[s]=(function(i){var o=e.operation(r),n=Array.prototype.slice.call(arguments,1),s=n.pop();n.push(function(t){o.retry(t)||(t&&(arguments[0]=o.mainError()),s.apply(this,arguments))}),o.attempt(function(){i.apply(t,n)})}).bind(t,u),t[s].options=r}}},"./retry/lib/retry_operation.js":function(t){function e(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(void 0===r)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var o=this._errors[i],n=o.message,s=(t[n]||0)+1;t[n]=s,s>=r&&(e=o,r=s)}return e}}},e={},r=function r(i){var o=e[i];if(void 0!==o)return o.exports;var n=e[i]={exports:{}};return t[i](n,n.exports,r),n.exports}("./retry/index.js");module.exports=r})();
@@ -0,0 +1,15 @@
1
+ Copyright 2019 "David Mark Clements <david.mark.clements@gmail.com>"
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
4
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation
5
+ the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
6
+ to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
+
8
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions
9
+ of the Software.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
12
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
13
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
14
+ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
15
+ IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={"./rfdc/index.js":function(t){function e(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){if((t=t||{}).circles)return function(t){let r=[],n=[],o=new Map;if(o.set(Date,t=>new Date(t)),o.set(Map,(t,e)=>new Map(f(Array.from(t),e))),o.set(Set,(t,e)=>new Set(f(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)o.set(e[0],e[1]);let c=null;return t.proto?function t(u){if("object"!=typeof u||null===u)return u;if(Array.isArray(u))return f(u,t);if(u.constructor!==Object&&(c=o.get(u.constructor)))return c(u,t);let s={};for(let f in r.push(u),n.push(s),u){let l=u[f];if("object"!=typeof l||null===l)s[f]=l;else if(l.constructor!==Object&&(c=o.get(l.constructor)))s[f]=c(l,t);else if(ArrayBuffer.isView(l))s[f]=e(l);else{let e=r.indexOf(l);-1!==e?s[f]=n[e]:s[f]=t(l)}}return r.pop(),n.pop(),s}:function t(u){if("object"!=typeof u||null===u)return u;if(Array.isArray(u))return f(u,t);if(u.constructor!==Object&&(c=o.get(u.constructor)))return c(u,t);let s={};for(let f in r.push(u),n.push(s),u){if(!1===Object.hasOwnProperty.call(u,f))continue;let l=u[f];if("object"!=typeof l||null===l)s[f]=l;else if(l.constructor!==Object&&(c=o.get(l.constructor)))s[f]=c(l,t);else if(ArrayBuffer.isView(l))s[f]=e(l);else{let e=r.indexOf(l);-1!==e?s[f]=n[e]:s[f]=t(l)}}return r.pop(),n.pop(),s};function f(t,f){let u=Object.keys(t),s=Array(u.length);for(let l=0;l<u.length;l++){let i=u[l],a=t[i];if("object"!=typeof a||null===a)s[i]=a;else if(a.constructor!==Object&&(c=o.get(a.constructor)))s[i]=c(a,f);else if(ArrayBuffer.isView(a))s[i]=e(a);else{let t=r.indexOf(a);-1!==t?s[i]=n[t]:s[i]=f(a)}}return s}}(t);let r=new Map;if(r.set(Date,t=>new Date(t)),r.set(Map,(t,e)=>new Map(o(Array.from(t),e))),r.set(Set,(t,e)=>new Set(o(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)r.set(e[0],e[1]);let n=null;return t.proto?function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return o(c,t);if(c.constructor!==Object&&(n=r.get(c.constructor)))return n(c,t);let f={};for(let o in c){let u=c[o];"object"!=typeof u||null===u?f[o]=u:u.constructor!==Object&&(n=r.get(u.constructor))?f[o]=n(u,t):ArrayBuffer.isView(u)?f[o]=e(u):f[o]=t(u)}return f}:function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return o(c,t);if(c.constructor!==Object&&(n=r.get(c.constructor)))return n(c,t);let f={};for(let o in c){if(!1===Object.hasOwnProperty.call(c,o))continue;let u=c[o];"object"!=typeof u||null===u?f[o]=u:u.constructor!==Object&&(n=r.get(u.constructor))?f[o]=n(u,t):ArrayBuffer.isView(u)?f[o]=e(u):f[o]=t(u)}return f};function o(t,o){let c=Object.keys(t),f=Array(c.length);for(let u=0;u<c.length;u++){let s=c[u],l=t[s];"object"!=typeof l||null===l?f[s]=l:l.constructor!==Object&&(n=r.get(l.constructor))?f[s]=n(l,o):ArrayBuffer.isView(l)?f[s]=e(l):f[s]=o(l)}return f}}}},e={},r=function r(n){var o=e[n];if(void 0!==o)return o.exports;var c=e[n]={exports:{}};return t[n](c,c.exports,r),c.exports}("./rfdc/index.js");module.exports=r})();
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.