@perses-dev/greptimedb-plugin 0.1.0 → 0.2.0-beta.2

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 (230) hide show
  1. package/__mf/js/{GreptimeDB.d666b53a.js → GreptimeDB.f1e3a072.js} +4 -4
  2. package/__mf/js/async/121.caec175a.js +2 -0
  3. package/__mf/js/async/181.d4d87a1f.js +2 -0
  4. package/__mf/js/async/186.c1dea752.js +102 -0
  5. package/__mf/js/async/192.b9279059.js +1 -0
  6. package/__mf/js/async/2.dbc0a9c4.js +1 -0
  7. package/__mf/js/async/235.7a774edc.js +1 -0
  8. package/__mf/js/async/274.d5a294d9.js +2 -0
  9. package/__mf/js/async/356.21b667a3.js +1 -0
  10. package/__mf/js/async/392.201e515e.js +2 -0
  11. package/__mf/js/async/43.ebbb8652.js +2 -0
  12. package/__mf/js/async/440.f6c55d74.js +2 -0
  13. package/__mf/js/async/45.04388bc3.js +1 -0
  14. package/__mf/js/async/470.f896cf06.js +2 -0
  15. package/__mf/js/async/496.91780bef.js +1 -0
  16. package/__mf/js/async/529.6c76a9cd.js +43 -0
  17. package/__mf/js/async/{1589.a4d4fad9.js.LICENSE.txt → 529.6c76a9cd.js.LICENSE.txt} +41 -1
  18. package/__mf/js/async/562.15460f81.js +2 -0
  19. package/__mf/js/async/587.445bbdb5.js +1 -0
  20. package/__mf/js/async/588.2c301420.js +1 -0
  21. package/__mf/js/async/616.ef1089bf.js +1 -0
  22. package/__mf/js/async/628.6ea4a812.js +3 -0
  23. package/__mf/js/async/71.9f52cdd7.js +1 -0
  24. package/__mf/js/async/77.51ac6fa8.js +1 -0
  25. package/__mf/js/async/862.d29af04f.js +2 -0
  26. package/__mf/js/async/873.d5028ea7.js +1 -0
  27. package/__mf/js/async/941.6221d54d.js +2 -0
  28. package/__mf/js/async/944.89173f4a.js +10 -0
  29. package/__mf/js/async/968.6f0ebddf.js +1 -0
  30. package/__mf/js/async/978.4589faec.js +1 -0
  31. package/__mf/js/async/__federation_expose_GreptimeDBDatasource.ec9b176f.js +2 -0
  32. package/__mf/js/async/__federation_expose_GreptimeDBLogQuery.96bef921.js +21 -0
  33. package/__mf/js/async/__federation_expose_GreptimeDBTimeSeriesQuery.f4171877.js +21 -0
  34. package/__mf/js/async/__federation_expose_GreptimeDBTraceQuery.e0ffd686.js +21 -0
  35. package/__mf/js/{main.7dfdd439.js → main.993845fa.js} +3 -3
  36. package/lib/bootstrap.js +2 -2
  37. package/lib/components/GreptimeDBQLEditor.d.ts +2 -2
  38. package/lib/components/GreptimeDBQLEditor.d.ts.map +1 -1
  39. package/lib/components/GreptimeDBQLEditor.js +3 -3
  40. package/lib/components/GreptimeDBQLEditor.js.map +1 -1
  41. package/lib/components/index.js +2 -2
  42. package/lib/components/index.js.map +1 -1
  43. package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.d.ts +2 -2
  44. package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.d.ts.map +1 -1
  45. package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.js +4 -4
  46. package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.js.map +1 -1
  47. package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.d.ts +2 -2
  48. package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.d.ts.map +1 -1
  49. package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.js +1 -1
  50. package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.js.map +1 -1
  51. package/lib/datasources/greptimedb-datasource/greptimedb-datasource-types.d.ts +4 -4
  52. package/lib/datasources/greptimedb-datasource/greptimedb-datasource-types.d.ts.map +1 -1
  53. package/lib/datasources/greptimedb-datasource/greptimedb-datasource-types.js.map +1 -1
  54. package/lib/datasources/greptimedb-datasource/index.js +3 -3
  55. package/lib/datasources/greptimedb-datasource/index.js.map +1 -1
  56. package/lib/datasources/index.js +1 -1
  57. package/lib/datasources/index.js.map +1 -1
  58. package/lib/getPluginModule.d.ts +1 -1
  59. package/lib/getPluginModule.d.ts.map +1 -1
  60. package/lib/getPluginModule.js +3 -1
  61. package/lib/getPluginModule.js.map +1 -1
  62. package/lib/index-federation.js +1 -1
  63. package/lib/index.js +3 -3
  64. package/lib/index.js.map +1 -1
  65. package/lib/model/greptimedb-client.d.ts +3 -3
  66. package/lib/model/greptimedb-client.d.ts.map +1 -1
  67. package/lib/model/greptimedb-client.js +4 -2
  68. package/lib/model/greptimedb-client.js.map +1 -1
  69. package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.d.ts +2 -2
  70. package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.d.ts.map +1 -1
  71. package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.js +4 -6
  72. package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.js.map +1 -1
  73. package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.d.ts +3 -3
  74. package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.d.ts.map +1 -1
  75. package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.js +8 -8
  76. package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.js.map +1 -1
  77. package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.d.ts +2 -2
  78. package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.d.ts.map +1 -1
  79. package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.js +2 -2
  80. package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.js.map +1 -1
  81. package/lib/queries/greptimedb-log-query/greptimedb-log-query-types.d.ts +1 -1
  82. package/lib/queries/greptimedb-log-query/greptimedb-log-query-types.d.ts.map +1 -1
  83. package/lib/queries/greptimedb-log-query/greptimedb-log-query-types.js.map +1 -1
  84. package/lib/queries/greptimedb-log-query/index.js +4 -4
  85. package/lib/queries/greptimedb-log-query/index.js.map +1 -1
  86. package/lib/queries/greptimedb-log-query/log-query-plugin-interface.d.ts +2 -2
  87. package/lib/queries/greptimedb-log-query/log-query-plugin-interface.d.ts.map +1 -1
  88. package/lib/queries/greptimedb-log-query/log-query-plugin-interface.js.map +1 -1
  89. package/lib/queries/greptimedb-query-data-model.d.ts +3 -3
  90. package/lib/queries/greptimedb-query-data-model.d.ts.map +1 -1
  91. package/lib/queries/greptimedb-query-data-model.js +4 -4
  92. package/lib/queries/greptimedb-query-data-model.js.map +1 -1
  93. package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.d.ts +2 -2
  94. package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.d.ts.map +1 -1
  95. package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.js +4 -6
  96. package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.js.map +1 -1
  97. package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.d.ts +3 -3
  98. package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.d.ts.map +1 -1
  99. package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.js +8 -8
  100. package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.js.map +1 -1
  101. package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.d.ts +2 -2
  102. package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.d.ts.map +1 -1
  103. package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.js +3 -5
  104. package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.js.map +1 -1
  105. package/lib/queries/greptimedb-time-series-query/greptimedb-query-types.d.ts +1 -1
  106. package/lib/queries/greptimedb-time-series-query/greptimedb-query-types.d.ts.map +1 -1
  107. package/lib/queries/greptimedb-time-series-query/greptimedb-query-types.js.map +1 -1
  108. package/lib/queries/greptimedb-time-series-query/index.js +4 -4
  109. package/lib/queries/greptimedb-time-series-query/index.js.map +1 -1
  110. package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.d.ts +2 -2
  111. package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.d.ts.map +1 -1
  112. package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.js +3 -3
  113. package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.js.map +1 -1
  114. package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.d.ts +3 -3
  115. package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.d.ts.map +1 -1
  116. package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.js +7 -7
  117. package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.js.map +1 -1
  118. package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.d.ts +2 -2
  119. package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.d.ts.map +1 -1
  120. package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.js +6 -6
  121. package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.js.map +1 -1
  122. package/lib/queries/greptimedb-trace-query/greptimedb-trace-query-types.d.ts +1 -1
  123. package/lib/queries/greptimedb-trace-query/greptimedb-trace-query-types.d.ts.map +1 -1
  124. package/lib/queries/greptimedb-trace-query/greptimedb-trace-query-types.js.map +1 -1
  125. package/lib/queries/greptimedb-trace-query/index.js +4 -4
  126. package/lib/queries/greptimedb-trace-query/index.js.map +1 -1
  127. package/lib/queries/index.js +3 -3
  128. package/lib/queries/index.js.map +1 -1
  129. package/lib/queries/query-editor-model.js +2 -2
  130. package/lib/queries/query-editor-model.js.map +1 -1
  131. package/lib/setup-tests.d.ts +1 -1
  132. package/lib/setup-tests.d.ts.map +1 -1
  133. package/lib/setup-tests.js +2 -2
  134. package/lib/setup-tests.js.map +1 -1
  135. package/mf-manifest.json +68 -100
  136. package/mf-stats.json +68 -104
  137. package/package.json +20 -12
  138. package/__mf/js/async/1589.a4d4fad9.js +0 -2
  139. package/__mf/js/async/1616.d071703e.js +0 -1
  140. package/__mf/js/async/2043.e37a8242.js +0 -2
  141. package/__mf/js/async/2386.84002e8c.js +0 -2
  142. package/__mf/js/async/3181.9e8e9ef5.js +0 -2
  143. package/__mf/js/async/392.614cab68.js +0 -2
  144. package/__mf/js/async/3944.f35af5a7.js +0 -10
  145. package/__mf/js/async/3981.66746f5c.js +0 -3
  146. package/__mf/js/async/4121.f8820bd7.js +0 -2
  147. package/__mf/js/async/4233.a3ff3ed2.js +0 -7
  148. package/__mf/js/async/4233.a3ff3ed2.js.LICENSE.txt +0 -39
  149. package/__mf/js/async/4475.52c68e1f.js +0 -101
  150. package/__mf/js/async/5002.ff5efed5.js +0 -1
  151. package/__mf/js/async/5071.72c3afda.js +0 -1
  152. package/__mf/js/async/5440.f8cb71c0.js +0 -2
  153. package/__mf/js/async/5481.0c2e941f.js +0 -2
  154. package/__mf/js/async/5562.fc9fccc9.js +0 -2
  155. package/__mf/js/async/5587.82a12128.js +0 -1
  156. package/__mf/js/async/6045.2b2dd0f6.js +0 -1
  157. package/__mf/js/async/6274.b682460a.js +0 -2
  158. package/__mf/js/async/629.e085c447.js +0 -1
  159. package/__mf/js/async/7177.746de250.js +0 -1
  160. package/__mf/js/async/7192.8effb0f3.js +0 -1
  161. package/__mf/js/async/7968.d3024d8d.js +0 -1
  162. package/__mf/js/async/7978.f72fcb59.js +0 -1
  163. package/__mf/js/async/7984.802dfa3c.js +0 -22
  164. package/__mf/js/async/7984.802dfa3c.js.LICENSE.txt +0 -19
  165. package/__mf/js/async/8356.42f66891.js +0 -1
  166. package/__mf/js/async/8470.8d2d3f35.js +0 -2
  167. package/__mf/js/async/873.9041549c.js +0 -1
  168. package/__mf/js/async/9235.8d75321e.js +0 -1
  169. package/__mf/js/async/941.6703c1a7.js +0 -2
  170. package/__mf/js/async/9558.97ad4633.js +0 -1
  171. package/__mf/js/async/9588.925f1ab4.js +0 -1
  172. package/__mf/js/async/9877.a7b7fb44.js +0 -38
  173. package/__mf/js/async/__federation_expose_GreptimeDBDatasource.7d12e7b8.js +0 -2
  174. package/__mf/js/async/__federation_expose_GreptimeDBLogQuery.f7fa9b26.js +0 -21
  175. package/__mf/js/async/__federation_expose_GreptimeDBTimeSeriesQuery.867c743e.js +0 -21
  176. package/__mf/js/async/__federation_expose_GreptimeDBTraceQuery.a1f7328d.js +0 -21
  177. package/__mf/js/async/__federation_expose_GreptimeDBTraceQuery.a1f7328d.js.LICENSE.txt +0 -9
  178. package/lib/cjs/bootstrap.js +0 -26
  179. package/lib/cjs/components/GreptimeDBQLEditor.js +0 -72
  180. package/lib/cjs/components/constants.js +0 -42
  181. package/lib/cjs/components/index.js +0 -31
  182. package/lib/cjs/datasources/greptimedb-datasource/GreptimeDBDatasource.js +0 -53
  183. package/lib/cjs/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.js +0 -51
  184. package/lib/cjs/datasources/greptimedb-datasource/greptimedb-datasource-types.js +0 -16
  185. package/lib/cjs/datasources/greptimedb-datasource/index.js +0 -32
  186. package/lib/cjs/datasources/index.js +0 -30
  187. package/lib/cjs/env.d.js +0 -14
  188. package/lib/cjs/getPluginModule.js +0 -39
  189. package/lib/cjs/index-federation.js +0 -55
  190. package/lib/cjs/index.js +0 -38
  191. package/lib/cjs/model/greptimedb-client.js +0 -76
  192. package/lib/cjs/model/greptimedb-data-types.js +0 -16
  193. package/lib/cjs/queries/constants.js +0 -34
  194. package/lib/cjs/queries/greptimedb-log-query/GreptimeDBLogQuery.js +0 -43
  195. package/lib/cjs/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.js +0 -108
  196. package/lib/cjs/queries/greptimedb-log-query/get-greptimedb-log-data.js +0 -103
  197. package/lib/cjs/queries/greptimedb-log-query/greptimedb-log-query-types.js +0 -16
  198. package/lib/cjs/queries/greptimedb-log-query/index.js +0 -33
  199. package/lib/cjs/queries/greptimedb-log-query/log-query-plugin-interface.js +0 -16
  200. package/lib/cjs/queries/greptimedb-query-data-model.js +0 -152
  201. package/lib/cjs/queries/greptimedb-time-series-query/GreptimeDBQuery.js +0 -43
  202. package/lib/cjs/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.js +0 -107
  203. package/lib/cjs/queries/greptimedb-time-series-query/get-greptimedb-data.js +0 -184
  204. package/lib/cjs/queries/greptimedb-time-series-query/greptimedb-query-types.js +0 -16
  205. package/lib/cjs/queries/greptimedb-time-series-query/index.js +0 -33
  206. package/lib/cjs/queries/greptimedb-trace-query/GreptimeDBTraceQuery.js +0 -40
  207. package/lib/cjs/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.js +0 -79
  208. package/lib/cjs/queries/greptimedb-trace-query/get-greptimedb-trace-data.js +0 -518
  209. package/lib/cjs/queries/greptimedb-trace-query/greptimedb-trace-query-types.js +0 -16
  210. package/lib/cjs/queries/greptimedb-trace-query/index.js +0 -33
  211. package/lib/cjs/queries/greptimedb-trace-query/trace-query-sql.js +0 -25
  212. package/lib/cjs/queries/index.js +0 -32
  213. package/lib/cjs/queries/query-editor-model.js +0 -47
  214. package/lib/cjs/setup-tests.js +0 -19
  215. /package/__mf/css/async/{4233.85c2cbf6.css → 529.85c2cbf6.css} +0 -0
  216. /package/__mf/js/async/{4121.f8820bd7.js.LICENSE.txt → 121.caec175a.js.LICENSE.txt} +0 -0
  217. /package/__mf/js/async/{2386.84002e8c.js.LICENSE.txt → 181.d4d87a1f.js.LICENSE.txt} +0 -0
  218. /package/__mf/js/async/{6274.b682460a.js.LICENSE.txt → 274.d5a294d9.js.LICENSE.txt} +0 -0
  219. /package/__mf/js/async/{392.614cab68.js.LICENSE.txt → 392.201e515e.js.LICENSE.txt} +0 -0
  220. /package/__mf/js/async/{2043.e37a8242.js.LICENSE.txt → 43.ebbb8652.js.LICENSE.txt} +0 -0
  221. /package/__mf/js/async/{5440.f8cb71c0.js.LICENSE.txt → 440.f6c55d74.js.LICENSE.txt} +0 -0
  222. /package/__mf/js/async/{8470.8d2d3f35.js.LICENSE.txt → 470.f896cf06.js.LICENSE.txt} +0 -0
  223. /package/__mf/js/async/{3181.9e8e9ef5.js.LICENSE.txt → 562.15460f81.js.LICENSE.txt} +0 -0
  224. /package/__mf/js/async/{5481.0c2e941f.js.LICENSE.txt → 862.d29af04f.js.LICENSE.txt} +0 -0
  225. /package/__mf/js/async/{5562.fc9fccc9.js.LICENSE.txt → 941.6221d54d.js.LICENSE.txt} +0 -0
  226. /package/__mf/js/async/{3944.f35af5a7.js.LICENSE.txt → 944.89173f4a.js.LICENSE.txt} +0 -0
  227. /package/__mf/js/async/{941.6703c1a7.js.LICENSE.txt → __federation_expose_GreptimeDBDatasource.ec9b176f.js.LICENSE.txt} +0 -0
  228. /package/__mf/js/async/{__federation_expose_GreptimeDBDatasource.7d12e7b8.js.LICENSE.txt → __federation_expose_GreptimeDBLogQuery.96bef921.js.LICENSE.txt} +0 -0
  229. /package/__mf/js/async/{__federation_expose_GreptimeDBLogQuery.f7fa9b26.js.LICENSE.txt → __federation_expose_GreptimeDBTimeSeriesQuery.f4171877.js.LICENSE.txt} +0 -0
  230. /package/__mf/js/async/{__federation_expose_GreptimeDBTimeSeriesQuery.867c743e.js.LICENSE.txt → __federation_expose_GreptimeDBTraceQuery.e0ffd686.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_GreptimeDB=self.chunk_GreptimeDB||[]).push([["9235"],{63859(e,t,r){r.r(t),r.d(t,{default:()=>g});var i=r(68102),a=r(69402),n=r(37696),o=r(60755),s=r(309),l=r(70451),c=r(19597),d=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,p=(0,c.A)(function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),u=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:u},f=function(e,t,r){var i;if(t){var a=t.shouldForwardProp;i=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof i&&r&&(i=e.__emotion_forwardProp),i},h=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return(0,s.SF)(t,r,i),(0,o.s)(function(){return(0,s.sk)(t,r,i)}),null},g=(function e(t,r){var o,c,d=t.__emotion_real===t,p=d&&t.__emotion_base||t;void 0!==r&&(o=r.label,c=r.target);var u=f(t,r,d),g=u||m(p),y=!g("as");return function(){var v=arguments,k=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&k.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)k.push.apply(k,v);else{var b=v[0];k.push(b[0]);for(var x=v.length,_=1;_<x;_++)k.push(v[_],b[_])}var w=(0,a.withEmotionCache)(function(e,t,r){var i=y&&e.as||p,o="",d=[],f=e;if(null==e.theme){for(var v in f={},e)f[v]=e[v];f.theme=l.useContext(a.ThemeContext)}"string"==typeof e.className?o=(0,s.Rk)(t.registered,d,e.className):null!=e.className&&(o=e.className+" ");var b=(0,n.J)(k.concat(d),t.registered,f);o+=t.key+"-"+b.name,void 0!==c&&(o+=" "+c);var x=y&&void 0===u?m(i):g,_={};for(var w in e)(!y||"as"!==w)&&x(w)&&(_[w]=e[w]);return _.className=o,r&&(_.ref=r),l.createElement(l.Fragment,null,l.createElement(h,{cache:t,serialized:b,isStringTag:"string"==typeof i}),l.createElement(i,_))});return w.displayName=void 0!==o?o:"Styled("+("string"==typeof p?p:p.displayName||p.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=p,w.__emotion_styles=k,w.__emotion_forwardProp=u,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(t,a){return e(t,(0,i.A)({},r,a,{shouldForwardProp:f(w,a,!0)})).apply(void 0,k)},w}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){g[e]=g(e)})},60755(e,t,r){r.d(t,{i:()=>o,s:()=>n});var i=r(70451),a=!!i.useInsertionEffect&&i.useInsertionEffect,n=a||function(e){return e()},o=a||i.useLayoutEffect},309(e,t,r){function i(e,t,r){var i="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(i+=r+" ")}),i}r.d(t,{Rk:()=>i,SF:()=>a,sk:()=>n});var a=function(e,t,r){var i=e.key+"-"+t.name;!1===r&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},n=function(e,t,r){a(e,t,r);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do e.insert(t===n?"."+i:"",n,e.sheet,!0),n=n.next;while(void 0!==n)}}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 941.6703c1a7.js.LICENSE.txt */
2
- "use strict";(self.chunk_GreptimeDB=self.chunk_GreptimeDB||[]).push([["941"],{7470(e,r,t){var o=t(20231);r.createRoot=o.createRoot,r.hydrateRoot=o.hydrateRoot},2192(e,r,t){var o=t(70451),n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,t){var o,a={},c=null,l=null;for(o in void 0!==t&&(c=""+t),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(l=r.ref),r)_.call(r,o)&&!s.hasOwnProperty(o)&&(a[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===a[o]&&(a[o]=r[o]);return{$$typeof:n,type:e,key:c,ref:l,props:a,_owner:f.current}}r.Fragment=a,r.jsx=c,r.jsxs=c},62540(e,r,t){e.exports=t(2192)},86604(e,r,t){t.r(r);var o=t(62540),n=t(70451),a=t.n(n);t(7470).createRoot(document.getElementById("root")).render((0,o.jsx)(a().StrictMode,{}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_GreptimeDB=self.chunk_GreptimeDB||[]).push([["9558"],{23712(){}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_GreptimeDB=self.chunk_GreptimeDB||[]).push([["9588"],{65130(t,e,r){r.d(e,{f:()=>i});var n=r(12015),a=r(4721);function i(t,e,r){let i=(0,a.a)(t,r?.in);return isNaN(e)?(0,n.w)(r?.in||t,NaN):(e&&i.setDate(i.getDate()+e),i)}},54266(t,e,r){r.d(e,{L:()=>i});var n=r(67251),a=r(30439);function i(t,e,r){return(0,n.A)(t,e*a.s0,r)}},67251(t,e,r){r.d(e,{A:()=>i});var n=r(12015),a=r(4721);function i(t,e,r){return(0,n.w)(r?.in||t,+(0,a.a)(t)+e)}},47196(t,e,r){r.d(e,{z:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setTime(a.getTime()+6e4*e),a}},38086(t,e,r){r.d(e,{P:()=>i});var n=r(12015),a=r(4721);function i(t,e,r){let i=(0,a.a)(t,r?.in);if(isNaN(e))return(0,n.w)(r?.in||t,NaN);if(!e)return i;let s=i.getDate(),o=(0,n.w)(r?.in||t,i.getTime());return(o.setMonth(i.getMonth()+e+1,0),s>=o.getDate())?o:(i.setFullYear(o.getFullYear(),o.getMonth(),s),i)}},43628(t,e,r){r.d(e,{p:()=>a});var n=r(67251);function a(t,e,r){return(0,n.A)(t,1e3*e,r)}},54708(t,e,r){r.d(e,{J:()=>a});var n=r(65130);function a(t,e,r){return(0,n.f)(t,7*e,r)}},16299(t,e,r){r.d(e,{e:()=>a});var n=r(38086);function a(t,e,r){return(0,n.P)(t,12*e,r)}},85910(t,e,r){r.d(e,{D:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in);return r.setHours(23,59,59,999),r}},73206(t,e,r){r.d(e,{p:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in),a=r.getMonth();return r.setFullYear(r.getFullYear(),a+1,0),r.setHours(23,59,59,999),r}},44766(t,e,r){r.d(e,{$:()=>i});var n=r(350),a=r(4721);function i(t,e){let r=(0,n.q)(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=(0,a.a)(t,e?.in),o=s.getDay();return s.setDate(s.getDate()+((o<i?-7:0)+6-(o-i))),s.setHours(23,59,59,999),s}},65043(t,e,r){r.d(e,{Q:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in),a=r.getFullYear();return r.setFullYear(a+1,0,0),r.setHours(23,59,59,999),r}},47918(t,e,r){r.d(e,{p:()=>a});var n=r(4721);function a(t,e){return(0,n.a)(t,e?.in).getDate()}},54354(t,e,r){r.d(e,{P:()=>i});var n=r(12015),a=r(4721);function i(t,e){let r=(0,a.a)(t,e?.in),i=r.getFullYear(),s=r.getMonth(),o=(0,n.w)(r,0);return o.setFullYear(i,s+1,0),o.setHours(0,0,0,0),o.getDate()}},6299(t,e,r){r.d(e,{q:()=>a});var n=r(350);function a(){return Object.assign({},(0,n.q)())}},8151(t,e,r){r.d(e,{q:()=>a});var n=r(4721);function a(t,e){return(0,n.a)(t,e?.in).getHours()}},83487(t,e,r){r.d(e,{g:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in).getDay();return 0===r?7:r}},51148(t,e,r){r.d(e,{D:()=>a});var n=r(4721);function a(t){return(0,n.a)(t).getMilliseconds()}},91733(t,e,r){r.d(e,{O:()=>a});var n=r(4721);function a(t,e){return(0,n.a)(t,e?.in).getMinutes()}},99042(t,e,r){r.d(e,{t:()=>a});var n=r(4721);function a(t,e){return(0,n.a)(t,e?.in).getMonth()}},89321(t,e,r){r.d(e,{S:()=>a});var n=r(4721);function a(t){return(0,n.a)(t).getSeconds()}},18463(t,e,r){r.d(e,{C:()=>a});var n=r(4721);function a(t,e){return(0,n.a)(t,e?.in).getFullYear()}},54752(t,e,r){r.d(e,{d:()=>a});var n=r(4721);function a(t,e){return+(0,n.a)(t)>+(0,n.a)(e)}},36163(t,e,r){r.d(e,{Y:()=>a});var n=r(4721);function a(t,e){return+(0,n.a)(t)<+(0,n.a)(e)}},28850(t,e,r){r.d(e,{n:()=>a});var n=r(4721);function a(t,e){return+(0,n.a)(t)==+(0,n.a)(e)}},45350(t,e,r){r.d(e,{r:()=>i});var n=r(79147),a=r(18109);function i(t,e,r){let[i,s]=(0,n.x)(r?.in,t,e);return+(0,a.o)(i)==+(0,a.o)(s)}},56756(t,e,r){r.d(e,{l:()=>i});var n=r(79147),a=r(61777);function i(t,e,r){let[i,s]=(0,n.x)(r?.in,t,e);return+(0,a.Q)(i)==+(0,a.Q)(s)}},39270(t,e,r){r.d(e,{t:()=>a});var n=r(79147);function a(t,e,r){let[a,i]=(0,n.x)(r?.in,t,e);return a.getFullYear()===i.getFullYear()&&a.getMonth()===i.getMonth()}},67619(t,e,r){r.d(e,{s:()=>a});var n=r(79147);function a(t,e,r){let[a,i]=(0,n.x)(r?.in,t,e);return a.getFullYear()===i.getFullYear()}},682(t,e,r){r.d(e,{v:()=>a});var n=r(4721);function a(t,e,r){let a=+(0,n.a)(t,r?.in),[i,s]=[+(0,n.a)(e.start,r?.in),+(0,n.a)(e.end,r?.in)].sort((t,e)=>t-e);return a>=i&&a<=s}},12282(t,e,r){r.d(e,{T_:()=>tn,qg:()=>tc});var n=r(67671),a=r(72710),i=r(43743),s=r(12015),o=r(6299),u=r(4721),d=r(88733);class c{subPriority=0;validate(t,e){return!0}}class l extends c{constructor(t,e,r,n,a){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=n,a&&(this.subPriority=a)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}}class w extends c{priority=10;subPriority=-1;constructor(t,e){super(),this.context=t||(t=>(0,s.w)(e,t))}set(t,e){return e.timestampIsSet?t:(0,s.w)(t,(0,d.m)(t,this.context))}}class h{run(t,e,r,n){let a=this.parse(t,e,r,n);return a?{setter:new l(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,e,r){return!0}}var f=r(30439);let m=/^(1[0-2]|0?\d)/,g=/^(3[0-1]|[0-2]?\d)/,p=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,x=/^(5[0-3]|[0-4]?\d)/,y=/^(2[0-3]|[0-1]?\d)/,b=/^(2[0-4]|[0-1]?\d)/,v=/^(1[0-1]|0?\d)/,T=/^(1[0-2]|0?\d)/,k=/^[0-5]?\d/,M=/^[0-5]?\d/,D=/^\d/,Y=/^\d{1,2}/,H=/^\d{1,3}/,q=/^\d{1,4}/,N=/^-?\d+/,P=/^-?\d/,Q=/^-?\d{1,2}/,F=/^-?\d{1,3}/,S=/^-?\d{1,4}/,E=/^([+-])(\d{2})(\d{2})?|Z/,L=/^([+-])(\d{2})(\d{2})|Z/,I=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,O=/^([+-])(\d{2}):(\d{2})|Z/,R=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function G(t,e){return t?{value:e(t.value),rest:t.rest}:t}function B(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function X(t,e){let r=e.match(t);if(!r)return null;if("Z"===r[0])return{value:0,rest:e.slice(1)};let n="+"===r[1]?1:-1,a=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(a*f.s0+6e4*i+1e3*s),rest:e.slice(r[0].length)}}function A(t,e){switch(t){case 1:return B(D,e);case 2:return B(Y,e);case 3:return B(H,e);case 4:return B(q,e);default:return B(RegExp("^\\d{1,"+t+"}"),e)}}function Z(t,e){switch(t){case 1:return B(P,e);case 2:return B(Q,e);case 3:return B(F,e);case 4:return B(S,e);default:return B(RegExp("^-?\\d{1,"+t+"}"),e)}}function $(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function C(t,e){let r,n=e>0,a=n?e:1-e;if(a<=50)r=t||100;else{let e=a+50;r=t+100*Math.trunc(e/100)-100*(t>=e%100)}return n?r:1-r}function K(t){return t%400==0||t%4==0&&t%100!=0}var W=r(33191),V=r(53819),j=r(29350),_=r(63214),z=r(33029);let J=[31,28,31,30,31,30,31,31,30,31,30,31],U=[31,29,31,30,31,30,31,31,30,31,30,31];var tt=r(61926),te=r(68251),tr=r(63134);let tn={G:new class extends h{priority=140;parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]},y:new class extends h{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,r){let n=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return G(A(4,t),n);case"yo":return G(r.ordinalNumber(t,{unit:"year"}),n);default:return G(A(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){let n=t.getFullYear();if(r.isTwoDigitYear){let e=C(r.year,n);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}let a="era"in e&&1!==e.era?1-r.year:r.year;return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}},Y:new class extends h{priority=130;parse(t,e,r){let n=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return G(A(4,t),n);case"Yo":return G(r.ordinalNumber(t,{unit:"year"}),n);default:return G(A(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,n){let a=(0,W.h)(t,n);if(r.isTwoDigitYear){let e=C(r.year,a);return t.setFullYear(e,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,V.k)(t,n)}let i="era"in e&&1!==e.era?1-r.year:r.year;return t.setFullYear(i,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,V.k)(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends h{priority=130;parse(t,e){return"R"===e?Z(4,t):Z(e.length,t)}set(t,e,r){let n=(0,s.w)(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),(0,j.b)(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends h{priority=130;parse(t,e){return"u"===e?Z(4,t):Z(e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends h{priority=120;parse(t,e,r){switch(e){case"Q":case"QQ":return A(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends h{priority=120;parse(t,e,r){switch(e){case"q":case"qq":return A(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends h{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,r){let n=t=>t-1;switch(e){case"M":return G(B(m,t),n);case"MM":return G(A(2,t),n);case"Mo":return G(r.ordinalNumber(t,{unit:"month"}),n);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}},L:new class extends h{priority=110;parse(t,e,r){let n=t=>t-1;switch(e){case"L":return G(B(m,t),n);case"LL":return G(A(2,t),n);case"Lo":return G(r.ordinalNumber(t,{unit:"month"}),n);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends h{priority=100;parse(t,e,r){switch(e){case"w":return B(x,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return A(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,n){return(0,V.k)((0,_.Z)(t,r,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends h{priority=100;parse(t,e,r){switch(e){case"I":return B(x,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return A(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return(0,j.b)((0,z.O)(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends h{priority=90;subPriority=1;parse(t,e,r){switch(e){case"d":return B(g,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return A(e.length,t)}}validate(t,e){let r=K(t.getFullYear()),n=t.getMonth();return r?e>=1&&e<=U[n]:e>=1&&e<=J[n]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends h{priority=90;subpriority=1;parse(t,e,r){switch(e){case"D":case"DD":return B(p,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return A(e.length,t)}}validate(t,e){return K(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends h{priority=90;parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=(0,tt.l)(t,r,n)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends h{priority=90;parse(t,e,r,n){let a=t=>{let e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return G(A(e.length,t),a);case"eo":return G(r.ordinalNumber(t,{unit:"day"}),a);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=(0,tt.l)(t,r,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends h{priority=90;parse(t,e,r,n){let a=t=>{let e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return G(A(e.length,t),a);case"co":return G(r.ordinalNumber(t,{unit:"day"}),a);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=(0,tt.l)(t,r,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends h{priority=90;parse(t,e,r){let n=t=>0===t?7:t;switch(e){case"i":case"ii":return A(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return G(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return G(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return G(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return G(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return(t=(0,te.a)(t,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends h{priority=80;parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours($(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends h{priority=80;parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours($(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends h{priority=80;parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours($(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]},h:new class extends h{priority=70;parse(t,e,r){switch(e){case"h":return B(T,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return A(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){let n=t.getHours()>=12;return n&&r<12?t.setHours(r+12,0,0,0):n||12!==r?t.setHours(r,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]},H:new class extends h{priority=70;parse(t,e,r){switch(e){case"H":return B(y,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return A(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends h{priority=70;parse(t,e,r){switch(e){case"K":return B(v,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return A(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]},k:new class extends h{priority=70;parse(t,e,r){switch(e){case"k":return B(b,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return A(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){return t.setHours(r<=24?r%24:r,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends h{priority=60;parse(t,e,r){switch(e){case"m":return B(k,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return A(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]},s:new class extends h{priority=50;parse(t,e,r){switch(e){case"s":return B(M,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return A(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]},S:new class extends h{priority=30;parse(t,e){return G(A(e.length,t),t=>Math.trunc(t*Math.pow(10,-e.length+3)))}set(t,e,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]},X:new class extends h{priority=10;parse(t,e){switch(e){case"X":return X(E,t);case"XX":return X(L,t);case"XXXX":return X(I,t);case"XXXXX":return X(R,t);default:return X(O,t)}}set(t,e,r){return e.timestampIsSet?t:(0,s.w)(t,t.getTime()-(0,tr.G)(t)-r)}incompatibleTokens=["t","T","x"]},x:new class extends h{priority=10;parse(t,e){switch(e){case"x":return X(E,t);case"xx":return X(L,t);case"xxxx":return X(I,t);case"xxxxx":return X(R,t);default:return X(O,t)}}set(t,e,r){return e.timestampIsSet?t:(0,s.w)(t,t.getTime()-(0,tr.G)(t)-r)}incompatibleTokens=["t","T","X"]},t:new class extends h{priority=40;parse(t){return B(N,t)}set(t,e,r){return[(0,s.w)(t,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends h{priority=20;parse(t){return B(N,t)}set(t,e,r){return[(0,s.w)(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"}},ta=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ti=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ts=/^'([^]*?)'?$/,to=/''/g,tu=/\S/,td=/[a-zA-Z]/;function tc(t,e,r,d){let c=()=>(0,s.w)(d?.in||r,NaN),l=(0,o.q)(),h=d?.locale??l.locale??n.c,f=d?.firstWeekContainsDate??d?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,m=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??l.weekStartsOn??l.locale?.options?.weekStartsOn??0;if(!e)return t?c():(0,u.a)(r,d?.in);let g={firstWeekContainsDate:f,weekStartsOn:m,locale:h},p=[new w(d?.in,r)],x=e.match(ti).map(t=>{let e=t[0];return e in a.m?(0,a.m[e])(t,h.formatLong):t}).join("").match(ta),y=[];for(let r of x){!d?.useAdditionalWeekYearTokens&&(0,i.xM)(r)&&(0,i.Ss)(r,e,t),!d?.useAdditionalDayOfYearTokens&&(0,i.ef)(r)&&(0,i.Ss)(r,e,t);let n=r[0],a=tn[n];if(a){let{incompatibleTokens:e}=a;if(Array.isArray(e)){let t=y.find(t=>e.includes(t.token)||t.token===n);if(t)throw RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${r}\` at the same time`)}else if("*"===a.incompatibleTokens&&y.length>0)throw RangeError(`The format string mustn't contain \`${r}\` and any other token at the same time`);y.push({token:n,fullToken:r});let i=a.run(t,r,h.match,g);if(!i)return c();p.push(i.setter),t=i.rest}else{if(n.match(td))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===r?r="'":"'"===n&&(r=r.match(ts)[1].replace(to,"'")),0!==t.indexOf(r))return c();t=t.slice(r.length)}}if(t.length>0&&tu.test(t))return c();let b=p.map(t=>t.priority).sort((t,e)=>e-t).filter((t,e,r)=>r.indexOf(t)===e).map(t=>p.filter(e=>e.priority===t).sort((t,e)=>e.subPriority-t.subPriority)).map(t=>t[0]),v=(0,u.a)(r,d?.in);if(isNaN(+v))return c();let T={};for(let t of b){if(!t.validate(v,g))return c();let e=t.set(v,T,g);Array.isArray(e)?(v=e[0],Object.assign(T,e[1])):v=e}return v}},41042(t,e,r){r.d(e,{X:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setDate(e),a}},61926(t,e,r){r.d(e,{l:()=>s});var n=r(350),a=r(65130),i=r(4721);function s(t,e,r){let s=(0,n.q)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,u=(0,i.a)(t,r?.in),d=u.getDay(),c=7-o,l=e<0||e>6?e-(d+c)%7:((e%7+7)%7+c)%7-(d+c)%7;return(0,a.f)(u,l,r)}},38267(t,e,r){r.d(e,{a:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setHours(e),a}},68251(t,e,r){r.d(e,{a:()=>s});var n=r(65130),a=r(83487),i=r(4721);function s(t,e,r){let s=(0,i.a)(t,r?.in),o=(0,a.g)(s,r);return(0,n.f)(s,e-o,r)}},33029(t,e,r){r.d(e,{O:()=>i});var n=r(92913),a=r(4721);function i(t,e,r){let i=(0,a.a)(t,r?.in),s=(0,n.s)(i,r)-e;return i.setDate(i.getDate()-7*s),i}},98608(t,e,r){r.d(e,{$:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setMilliseconds(e),a}},47025(t,e,r){r.d(e,{g:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setMinutes(e),a}},30118(t,e,r){r.d(e,{Z:()=>s});var n=r(12015),a=r(54354),i=r(4721);function s(t,e,r){let s=(0,i.a)(t,r?.in),o=s.getFullYear(),u=s.getDate(),d=(0,n.w)(r?.in||t,0);d.setFullYear(o,e,15),d.setHours(0,0,0,0);let c=(0,a.P)(d);return s.setMonth(e,Math.min(u,c)),s}},84253(t,e,r){r.d(e,{g:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setSeconds(e),a}},63214(t,e,r){r.d(e,{Z:()=>i});var n=r(55578),a=r(4721);function i(t,e,r){let i=(0,a.a)(t,r?.in),s=(0,n.N)(i,r)-e;return i.setDate(i.getDate()-7*s),(0,a.a)(i,r?.in)}},8643(t,e,r){r.d(e,{i:()=>i});var n=r(12015),a=r(4721);function i(t,e,r){let i=(0,a.a)(t,r?.in);return isNaN(+i)?(0,n.w)(r?.in||t,NaN):(i.setFullYear(e),i)}},61777(t,e,r){r.d(e,{Q:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in);return r.setMinutes(0,0,0),r}},19681(t,e,r){r.d(e,{w:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}},88733(t,e,r){r.d(e,{m:()=>a});var n=r(12015);function a(t,e){var r;let a="function"==typeof(r=e)&&r.prototype?.constructor===r?new e(0):(0,n.w)(e,0);return a.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),a}}}]);
@@ -1,38 +0,0 @@
1
- (self.chunk_GreptimeDB=self.chunk_GreptimeDB||[]).push([["9877"],{42927(e,t,r){"use strict";r.d(t,{A:()=>S});var o=r(70451),a=r(11750),n=r(81023),i=r(59238),p=r(32560),l=r(22402),s=r(62540);let d=(0,l.A)((0,s.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),c=(0,l.A)((0,s.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),u=(0,l.A)((0,s.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var m=r(24726),h=r(83926),y=r(29009),g=r(46733);function v(e){return(0,g.Ay)("MuiCheckbox",e)}let f=(0,y.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var A=r(77308),b=r(23434),x=r(26952),w=r(72052),k=r(64606),C=r(73397);let R=(0,A.A)(p.A,{shouldForwardProp:e=>(0,h.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,m.A)(r.size)}`],"default"!==r.color&&t[`color${(0,m.A)(r.color)}`]]}})((0,b.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,i.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,i.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t},style:{[`&.${f.checked}, &.${f.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${f.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),T=(0,s.jsx)(c,{}),$=(0,s.jsx)(d,{}),M=(0,s.jsx)(u,{}),S=o.forwardRef(function(e,t){let r=(0,w.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:i=T,color:p="primary",icon:l=$,indeterminate:d=!1,indeterminateIcon:c=M,inputProps:u,size:h="medium",disableRipple:y=!1,className:g,slots:f={},slotProps:A={},...b}=r,x=d?c:l,S=d?c:i,O={...r,disableRipple:y,color:p,indeterminate:d,size:h},H=(e=>{let{classes:t,indeterminate:r,color:o,size:a}=e,i={root:["root",r&&"indeterminate",`color${(0,m.A)(o)}`,`size${(0,m.A)(a)}`]},p=(0,n.A)(i,v,t);return{...t,...p}})(O),z=A.input??u,[j,L]=(0,C.A)("root",{ref:t,elementType:R,className:(0,a.A)(H.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:A,...b},ownerState:O,additionalProps:{type:"checkbox",icon:o.cloneElement(x,{fontSize:x.props.fontSize??h}),checkedIcon:o.cloneElement(S,{fontSize:S.props.fontSize??h}),disableRipple:y,slots:f,slotProps:{input:(0,k.A)("function"==typeof z?z(O):z,{"data-indeterminate":d})}}});return(0,s.jsx)(j,{...L,classes:H})})},57438(e,t,r){"use strict";r.d(t,{A:()=>b});var o=r(70451),a=r(11750),n=r(59238),i=r(81023),p=r(93399),l=r(24726),s=r(77308),d=r(56599),c=r(23434),u=r(26952),m=r(72052),h=r(88091),y=r(82561),g=r(95279),v=r(62540);let f={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},A=(0,s.A)(h.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`underline${(0,l.A)(r.underline)}`],"button"===r.component&&t.button]}})((0,c.A)(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter((0,u.A)()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:(0,n.X4)(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,n.X4)(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:(0,n.X4)(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${y.A.focusVisible}`]:{outline:"auto"}}}]}))),b=o.forwardRef(function(e,t){let r=(0,m.b)({props:e,name:"MuiLink"}),s=(0,d.A)(),{className:c,color:u="primary",component:h="a",onBlur:b,onFocus:x,TypographyClasses:w,underline:k="always",variant:C="inherit",sx:R,...T}=r,[$,M]=o.useState(!1),S={...r,color:u,component:h,focusVisible:$,underline:k,variant:C},O=(e=>{let{classes:t,component:r,focusVisible:o,underline:a}=e,n={root:["root",`underline${(0,l.A)(a)}`,"button"===r&&"button",o&&"focusVisible"]};return(0,i.A)(n,y.t,t)})(S);return(0,v.jsx)(A,{color:u,className:(0,a.A)(O.root,c),classes:w,component:h,onBlur:e=>{(0,p.A)(e.target)||M(!1),b&&b(e)},onFocus:e=>{(0,p.A)(e.target)&&M(!0),x&&x(e)},ref:t,ownerState:S,variant:C,...T,sx:[...void 0===f[u]?[{color:u}]:[],...Array.isArray(R)?R:[R]],style:{...T.style,..."always"===k&&"inherit"!==u&&!f[u]&&{"--Link-underlineColor":(({theme:e,ownerState:t})=>{let r=t.color,o=(0,g.Yn)(e,`palette.${r}.main`,!1)||(0,g.Yn)(e,`palette.${r}`,!1)||t.color,a=(0,g.Yn)(e,`palette.${r}.mainChannel`)||(0,g.Yn)(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:(0,n.X4)(o,.4)})({theme:s,ownerState:S})}}})})},82561(e,t,r){"use strict";r.d(t,{A:()=>i,t:()=>n});var o=r(29009),a=r(46733);function n(e){return(0,a.Ay)("MuiLink",e)}let i=(0,o.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])},33313(e,t,r){"use strict";r.d(t,{A:()=>b});var o=r(70451),a=r(11750),n=r(81023),i=r(59238),p=r(69402),l=r(77308),s=r(23434),d=r(72052),c=r(29009),u=r(46733);function m(e){return(0,u.Ay)("MuiSkeleton",e)}(0,c.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var h=r(62540);let y=(0,p.keyframes)`
2
- 0% {
3
- opacity: 1;
4
- }
5
-
6
- 50% {
7
- opacity: 0.4;
8
- }
9
-
10
- 100% {
11
- opacity: 1;
12
- }
13
- `,g=(0,p.keyframes)`
14
- 0% {
15
- transform: translateX(-100%);
16
- }
17
-
18
- 50% {
19
- /* +0.5s of delay between each loop */
20
- transform: translateX(100%);
21
- }
22
-
23
- 100% {
24
- transform: translateX(100%);
25
- }
26
- `,v="string"!=typeof y?(0,p.css)`
27
- animation: ${y} 2s ease-in-out 0.5s infinite;
28
- `:null,f="string"!=typeof g?(0,p.css)`
29
- &::after {
30
- animation: ${g} 2s linear 0.5s infinite;
31
- }
32
- `:null,A=(0,l.A)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((0,s.A)(({theme:e})=>{let t=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",r=parseFloat(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,i.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:v||{animation:`${y} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
33
- 90deg,
34
- transparent,
35
- ${(e.vars||e).palette.action.hover},
36
- transparent
37
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:f||{"&::after":{animation:`${g} 2s linear 0.5s infinite`}}}]}})),b=o.forwardRef(function(e,t){let r=(0,d.b)({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:p="span",height:l,style:s,variant:c="text",width:u,...y}=r,g={...r,animation:o,component:p,variant:c,hasChildren:!!y.children},v=(e=>{let{classes:t,variant:r,animation:o,hasChildren:a,width:i,height:p}=e;return(0,n.A)({root:["root",r,o,a&&"withChildren",a&&!i&&"fitContent",a&&!p&&"heightAuto"]},m,t)})(g);return(0,h.jsx)(A,{as:p,ref:t,className:(0,a.A)(v.root,i),ownerState:g,...y,style:{width:u,height:l,...s}})})},91394(e,t,r){"use strict";r.d(t,{A:()=>g});var o=r(70451),a=r(11750),n=r(81023),i=r(70872),p=r(77308),l=r(23434),s=r(72052),d=r(29009),c=r(46733);function u(e){return(0,c.Ay)("MuiTable",e)}(0,d.A)("MuiTable",["root","stickyHeader"]);var m=r(62540);let h=(0,p.A)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((0,l.A)(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),y="table",g=o.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiTable"}),{className:p,component:l=y,padding:d="normal",size:c="medium",stickyHeader:g=!1,...v}=r,f={...r,component:l,padding:d,size:c,stickyHeader:g},A=(e=>{let{classes:t,stickyHeader:r}=e;return(0,n.A)({root:["root",r&&"stickyHeader"]},u,t)})(f),b=o.useMemo(()=>({padding:d,size:c,stickyHeader:g}),[d,c,g]);return(0,m.jsx)(i.A.Provider,{value:b,children:(0,m.jsx)(h,{as:l,role:l===y?null:"table",ref:t,className:(0,a.A)(A.root,p),ownerState:f,...v})})})},70872(e,t,r){"use strict";r.d(t,{A:()=>o});let o=r(70451).createContext()},91644(e,t,r){"use strict";r.d(t,{A:()=>o});let o=r(70451).createContext()},5139(e,t,r){"use strict";r.d(t,{A:()=>g});var o=r(70451),a=r(11750),n=r(81023),i=r(91644),p=r(77308),l=r(72052),s=r(29009),d=r(46733);function c(e){return(0,d.Ay)("MuiTableBody",e)}(0,s.A)("MuiTableBody",["root"]);var u=r(62540);let m=(0,p.A)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),h={variant:"body"},y="tbody",g=o.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiTableBody"}),{className:o,component:p=y,...s}=r,d={...r,component:p},g=(e=>{let{classes:t}=e;return(0,n.A)({root:["root"]},c,t)})(d);return(0,u.jsx)(i.A.Provider,{value:h,children:(0,u.jsx)(m,{className:(0,a.A)(g.root,o),as:p,ref:t,role:p===y?null:"rowgroup",ownerState:d,...s})})})},45271(e,t,r){"use strict";r.d(t,{A:()=>A});var o=r(70451),a=r(11750),n=r(81023),i=r(59238),p=r(24726),l=r(70872),s=r(91644),d=r(77308),c=r(23434),u=r(72052),m=r(29009),h=r(46733);function y(e){return(0,h.Ay)("MuiTableCell",e)}let g=(0,m.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var v=r(62540);let f=(0,d.A)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`size${(0,p.A)(r.size)}`],"normal"!==r.padding&&t[`padding${(0,p.A)(r.padding)}`],"inherit"!==r.align&&t[`align${(0,p.A)(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((0,c.A)(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
38
- ${"light"===e.palette.mode?(0,i.a)((0,i.X4)(e.palette.divider,1),.88):(0,i.e$)((0,i.X4)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${g.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),A=o.forwardRef(function(e,t){let r,i=(0,u.b)({props:e,name:"MuiTableCell"}),{align:d="inherit",className:c,component:m,padding:h,scope:g,size:A,sortDirection:b,variant:x,...w}=i,k=o.useContext(l.A),C=o.useContext(s.A),R=C&&"head"===C.variant,T=g;"td"===(r=m||(R?"th":"td"))?T=void 0:!T&&R&&(T="col");let $=x||C&&C.variant,M={...i,align:d,component:r,padding:h||(k&&k.padding?k.padding:"normal"),size:A||(k&&k.size?k.size:"medium"),sortDirection:b,stickyHeader:"head"===$&&k&&k.stickyHeader,variant:$},S=(e=>{let{classes:t,variant:r,align:o,padding:a,size:i,stickyHeader:l}=e,s={root:["root",r,l&&"stickyHeader","inherit"!==o&&`align${(0,p.A)(o)}`,"normal"!==a&&`padding${(0,p.A)(a)}`,`size${(0,p.A)(i)}`]};return(0,n.A)(s,y,t)})(M),O=null;return b&&(O="asc"===b?"ascending":"descending"),(0,v.jsx)(f,{as:r,ref:t,className:(0,a.A)(S.root,c),"aria-sort":O,scope:T,ownerState:M,...w})})},347(e,t,r){"use strict";r.d(t,{A:()=>m});var o=r(70451),a=r(11750),n=r(81023),i=r(77308),p=r(72052),l=r(29009),s=r(46733);function d(e){return(0,s.Ay)("MuiTableContainer",e)}(0,l.A)("MuiTableContainer",["root"]);var c=r(62540);let u=(0,i.A)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),m=o.forwardRef(function(e,t){let r=(0,p.b)({props:e,name:"MuiTableContainer"}),{className:o,component:i="div",...l}=r,s={...r,component:i},m=(e=>{let{classes:t}=e;return(0,n.A)({root:["root"]},d,t)})(s);return(0,c.jsx)(u,{ref:t,as:i,className:(0,a.A)(m.root,o),ownerState:s,...l})})},70561(e,t,r){"use strict";r.d(t,{A:()=>g});var o=r(70451),a=r(11750),n=r(81023),i=r(91644),p=r(77308),l=r(72052),s=r(29009),d=r(46733);function c(e){return(0,d.Ay)("MuiTableHead",e)}(0,s.A)("MuiTableHead",["root"]);var u=r(62540);let m=(0,p.A)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),h={variant:"head"},y="thead",g=o.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiTableHead"}),{className:o,component:p=y,...s}=r,d={...r,component:p},g=(e=>{let{classes:t}=e;return(0,n.A)({root:["root"]},c,t)})(d);return(0,u.jsx)(i.A.Provider,{value:h,children:(0,u.jsx)(m,{as:p,className:(0,a.A)(g.root,o),ref:t,role:p===y?null:"rowgroup",ownerState:d,...s})})})},3399(e,t,r){"use strict";r.d(t,{A:()=>v});var o=r(70451),a=r(11750),n=r(81023),i=r(59238),p=r(91644),l=r(77308),s=r(23434),d=r(72052),c=r(29009),u=r(46733);function m(e){return(0,u.Ay)("MuiTableRow",e)}let h=(0,c.A)("MuiTableRow",["root","selected","hover","head","footer"]);var y=r(62540);let g=(0,l.A)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((0,s.A)(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${h.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,i.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,i.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),v=o.forwardRef(function(e,t){let r=(0,d.b)({props:e,name:"MuiTableRow"}),{className:i,component:l="tr",hover:s=!1,selected:c=!1,...u}=r,h=o.useContext(p.A),v={...r,component:l,hover:s,selected:c,head:h&&"head"===h.variant,footer:h&&"footer"===h.variant},f=(e=>{let{classes:t,selected:r,hover:o,head:a,footer:i}=e;return(0,n.A)({root:["root",r&&"selected",o&&"hover",a&&"head",i&&"footer"]},m,t)})(v);return(0,y.jsx)(g,{as:l,ref:t,className:(0,a.A)(f.root,i),role:"tr"===l?null:"row",ownerState:v,...u})})},65211(e,t,r){"use strict";r.d(t,{A:()=>z});var o=r(70451),a=r(11750),n=r(3725),i=r(81023),p=r(59238),l=r(35216),s=r(93399),d=r(30443),c=r(77308),u=r(56599),m=r(23434),h=r(72052),y=r(24726),g=r(46823),v=r(48865),f=r(32398),A=r(29424),b=r(63392),x=r(2203),w=r(73397),k=r(32751),C=r(62540);let R=(0,c.A)(v.A,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((0,m.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${k.A.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${k.A.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${k.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${k.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${k.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${k.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${k.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${k.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),T=(0,c.A)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,y.A)(r.placement.split("-")[0])}`]]}})((0,m.A)(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,p.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${k.A.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${k.A.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${k.A.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${k.A.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(16/14*1e5)/1e5}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${k.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${k.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${k.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${k.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${k.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${k.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${k.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${k.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${k.A.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${k.A.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),$=(0,c.A)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((0,m.A)(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,p.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),M=!1,S=new n.E,O={x:0,y:0};function H(e,t){return(r,...o)=>{t&&t(r,...o),e(r,...o)}}let z=o.forwardRef(function(e,t){let r=(0,h.b)({props:e,name:"MuiTooltip"}),{arrow:p=!1,children:c,classes:m,components:z={},componentsProps:j={},describeChild:L=!1,disableFocusListener:P=!1,disableHoverListener:E=!1,disableInteractive:B=!1,disableTouchListener:N=!1,enterDelay:V=100,enterNextDelay:W=0,enterTouchDelay:X=700,followCursor:I=!1,id:D,leaveDelay:_=0,leaveTouchDelay:F=1500,onClose:U,onOpen:Y,open:G,placement:q="bottom",PopperComponent:J,PopperProps:Z={},slotProps:K={},slots:Q={},title:ee,TransitionComponent:et,TransitionProps:er,...eo}=r,ea=o.isValidElement(c)?c:(0,C.jsx)("span",{children:c}),en=(0,u.A)(),ei=(0,l.I)(),[ep,el]=o.useState(),[es,ed]=o.useState(null),ec=o.useRef(!1),eu=B||I,em=(0,n.A)(),eh=(0,n.A)(),ey=(0,n.A)(),eg=(0,n.A)(),[ev,ef]=(0,x.A)({controlled:G,default:!1,name:"Tooltip",state:"open"}),eA=ev,eb=(0,b.A)(D),ex=o.useRef(),ew=(0,f.A)(()=>{void 0!==ex.current&&(document.body.style.WebkitUserSelect=ex.current,ex.current=void 0),eg.clear()});o.useEffect(()=>ew,[ew]);let ek=e=>{S.clear(),M=!0,ef(!0),Y&&!eA&&Y(e)},eC=(0,f.A)(e=>{S.start(800+_,()=>{M=!1}),ef(!1),U&&eA&&U(e),em.start(en.transitions.duration.shortest,()=>{ec.current=!1})}),eR=e=>{ec.current&&"touchstart"!==e.type||(ep&&ep.removeAttribute("title"),eh.clear(),ey.clear(),V||M&&W?eh.start(M?W:V,()=>{ek(e)}):ek(e))},eT=e=>{eh.clear(),ey.start(_,()=>{eC(e)})},[,e$]=o.useState(!1),eM=e=>{(0,s.A)(e.target)||(e$(!1),eT(e))},eS=e=>{ep||el(e.currentTarget),(0,s.A)(e.target)&&(e$(!0),eR(e))},eO=e=>{ec.current=!0;let t=ea.props;t.onTouchStart&&t.onTouchStart(e)};o.useEffect(()=>{if(eA)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&eC(e)}},[eC,eA]);let eH=(0,A.A)((0,d.A)(ea),el,t);ee||0===ee||(eA=!1);let ez=o.useRef(),ej={},eL="string"==typeof ee;L?(ej.title=eA||!eL||E?null:ee,ej["aria-describedby"]=eA?eb:null):(ej["aria-label"]=eL?ee:null,ej["aria-labelledby"]=eA&&!eL?eb:null);let eP={...ej,...eo,...ea.props,className:(0,a.A)(eo.className,ea.props.className),onTouchStart:eO,ref:eH,...I?{onMouseMove:e=>{let t=ea.props;t.onMouseMove&&t.onMouseMove(e),O={x:e.clientX,y:e.clientY},ez.current&&ez.current.update()}}:{}},eE={};N||(eP.onTouchStart=e=>{eO(e),ey.clear(),em.clear(),ew(),ex.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eg.start(X,()=>{document.body.style.WebkitUserSelect=ex.current,eR(e)})},eP.onTouchEnd=e=>{ea.props.onTouchEnd&&ea.props.onTouchEnd(e),ew(),ey.start(F,()=>{eC(e)})}),!E&&(eP.onMouseOver=H(eR,eP.onMouseOver),eP.onMouseLeave=H(eT,eP.onMouseLeave),eu||(eE.onMouseOver=eR,eE.onMouseLeave=eT)),!P&&(eP.onFocus=H(eS,eP.onFocus),eP.onBlur=H(eM,eP.onBlur),eu||(eE.onFocus=eS,eE.onBlur=eM));let eB={...r,isRtl:ei,arrow:p,disableInteractive:eu,placement:q,PopperComponentProp:J,touch:ec.current},eN="function"==typeof K.popper?K.popper(eB):K.popper,eV=o.useMemo(()=>{let e=[{name:"arrow",enabled:!!es,options:{element:es,padding:4}}];return Z.popperOptions?.modifiers&&(e=e.concat(Z.popperOptions.modifiers)),eN?.popperOptions?.modifiers&&(e=e.concat(eN.popperOptions.modifiers)),{...Z.popperOptions,...eN?.popperOptions,modifiers:e}},[es,Z.popperOptions,eN?.popperOptions]),eW=(e=>{let{classes:t,disableInteractive:r,arrow:o,touch:a,placement:n}=e,p={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",a&&"touch",`tooltipPlacement${(0,y.A)(n.split("-")[0])}`],arrow:["arrow"]};return(0,i.A)(p,k.E,t)})(eB),eX="function"==typeof K.transition?K.transition(eB):K.transition,eI={slots:{popper:z.Popper,transition:z.Transition??et,tooltip:z.Tooltip,arrow:z.Arrow,...Q},slotProps:{arrow:K.arrow??j.arrow,popper:{...Z,...eN??j.popper},tooltip:K.tooltip??j.tooltip,transition:{...er,...eX??j.transition}}},[eD,e_]=(0,w.A)("popper",{elementType:R,externalForwardedProps:eI,ownerState:eB,className:(0,a.A)(eW.popper,Z?.className)}),[eF,eU]=(0,w.A)("transition",{elementType:g.A,externalForwardedProps:eI,ownerState:eB}),[eY,eG]=(0,w.A)("tooltip",{elementType:T,className:eW.tooltip,externalForwardedProps:eI,ownerState:eB}),[eq,eJ]=(0,w.A)("arrow",{elementType:$,className:eW.arrow,externalForwardedProps:eI,ownerState:eB,ref:ed});return(0,C.jsxs)(o.Fragment,{children:[o.cloneElement(ea,eP),(0,C.jsx)(eD,{as:J??v.A,placement:q,anchorEl:I?{getBoundingClientRect:()=>({top:O.y,left:O.x,right:O.x,bottom:O.y,width:0,height:0})}:ep,popperRef:ez,open:!!ep&&eA,id:eb,transition:!0,...eE,...e_,popperOptions:eV,children:({TransitionProps:e})=>(0,C.jsx)(eF,{timeout:en.transitions.duration.shorter,...e,...eU,children:(0,C.jsxs)(eY,{...eG,children:[ee,p?(0,C.jsx)(eq,{...eJ}):null]})})})]})})},32751(e,t,r){"use strict";r.d(t,{A:()=>i,E:()=>n});var o=r(29009),a=r(46733);function n(e){return(0,a.Ay)("MuiTooltip",e)}let i=(0,o.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"])},29917(e,t,r){"use strict";var o;t.default=void 0,t.default=(0,((o=r(1448))&&o.__esModule?o:{default:o}).default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z","PinOutline")},40362(e,t,r){"use strict";var o=r(56441);function a(){}function n(){}n.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,n,i){if(i!==o){var p=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:a};return r.PropTypes=r,r}},62688(e,t,r){e.exports=r(40362)()},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see __federation_expose_GreptimeDBDatasource.7d12e7b8.js.LICENSE.txt */
2
- "use strict";(self.chunk_GreptimeDB=self.chunk_GreptimeDB||[]).push([["9371"],{2192(e,t,r){var o=r(70451),i=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var o,n={},u=null,c=null;for(o in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===n[o]&&(n[o]=t[o]);return{$$typeof:i,type:e,key:u,ref:c,props:n,_owner:a.current}}t.Fragment=n,t.jsx=u,t.jsxs=u},62540(e,t,r){e.exports=r(2192)},26599(e,t,r){async function o(e){var t;let r=null==(t=e.headers)?void 0:t.get("content-type");if(r&&r.includes("application/json")){let t=await e.json();return`GreptimeDB error: ${e.status} ${e.statusText} - ${JSON.stringify(t)}`}let o=await e.text();return`GreptimeDB error: ${e.status} ${e.statusText} - ${o}`}async function i(e,t){var r;let i,{datasourceUrl:n,headers:s}=t,a=(i=(r=n).endsWith("/")?`${r}v1/sql`:`${r}/v1/sql`).startsWith("http://")||i.startsWith("https://")?new URL(i):new URL(i,window.location.origin);if(!e.query)throw Error("No query provided in params");let l={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",...s??{}},body:new URLSearchParams({sql:e.query}).toString()};try{let e=await fetch(a.toString(),l);if(!e.ok){let t=await o(e);return console.error("GreptimeDB error response:",t),{status:"error",data:{output:[]},error:t}}let t=await e.json();return{status:(null==t?void 0:t.status)??"success",data:t}}catch(e){throw Error(`GreptimeDB query failed: ${e}`)}}r.r(t),r.d(t,{GreptimeDBDatasource:()=>l,GreptimeDBDatasourceEditor:()=>a});var n=r(62540),s=r(19848);function a(e){let{value:t,onChange:r,isReadonly:o}=e;return(0,n.jsx)(s.HTTPSettingsEditor,{value:t,onChange:r,isReadonly:o,initialSpecDirect:{directUrl:""},initialSpecProxy:{proxy:{kind:"HTTPProxy",spec:{allowedEndpoints:[{endpointPattern:"/v1/sql",method:"POST"}],url:""}}}})}let l={createClient:(e,t)=>{let{directUrl:r,headers:o,proxy:n}=e,{proxyUrl:s}=t,a=r??s;if(void 0===a)throw Error("No URL specified for GreptimeDBDatasource client. You can use directUrl in the spec to configure it.");let l={...(null==n?void 0:n.spec.headers)??{},...o??{}};return{options:{datasourceUrl:a},query:(e,t)=>i(e,{datasourceUrl:a,headers:t??l})}},OptionsEditorComponent:a,createInitialOptions:()=>({directUrl:""})}}}]);
@@ -1,21 +0,0 @@
1
- /*! For license information please see __federation_expose_GreptimeDBLogQuery.f7fa9b26.js.LICENSE.txt */
2
- "use strict";(self.chunk_GreptimeDB=self.chunk_GreptimeDB||[]).push([["5396"],{2192(e,t,r){var n=r(70451),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,m=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(m=t.ref),t)o.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:a,type:e,key:s,ref:m,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},62540(e,t,r){e.exports=r(2192)},15062(e,t,r){r.d(t,{t:()=>n});let n=`-- Time Series Query
3
- SELECT
4
- date_bin(INTERVAL '1 minute', ts) as ts,
5
- avg(cpu_usage) as avg_cpu,
6
- max(memory_usage) as max_memory
7
- FROM system_metrics
8
- WHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)
9
- GROUP BY ts
10
- ORDER BY ts
11
-
12
- -- Logs Query
13
- SELECT
14
- ts,
15
- service,
16
- level,
17
- message
18
- FROM application_logs
19
- WHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)
20
- ORDER BY ts DESC
21
- LIMIT 1000`},71122(e,t,r){r.d(t,{M:()=>s});var n=r(62540),a=r(29068),i=r(41865),o=r(56599),l=r(315),u=r(54227);function s(e){let t=(0,o.A)(),r="dark"===t.palette.mode;return(0,n.jsxs)(l.A,{position:"relative",children:[(0,n.jsx)(u.A,{sx:{fontWeight:500,marginBottom:"4px",color:t.palette.text.primary},children:"GreptimeDB SQL Query"}),(0,n.jsx)(a.Ay,{...e,style:{border:`1px solid ${t.palette.divider}`},theme:r?"dark":"light",basicSetup:{highlightActiveLine:!1,highlightActiveLineGutter:!1,foldGutter:!1,syntaxHighlighting:!0},extensions:[i.Lz.lineWrapping,i.Lz.theme({".cm-content":{paddingTop:"8px",paddingBottom:"8px",paddingRight:"40px"}})],placeholder:"Write GreptimeDB SQL Query Here..."})]})}r(15062)},7140(e,t,r){r.d(t,{N:()=>n,S:()=>a});let n="GreptimeDBDatasource",a={kind:n}},64279(e,t,r){r.r(t),r.d(t,{GreptimeDBLogQuery:()=>y,GreptimeDBLogQueryEditor:()=>g,getGreptimeDBLogData:()=>o});var n=r(19848),a=r(7140),i=r(57748);let o=async(e,t)=>{if(!e.query)return{logs:{entries:[],totalCount:0},timeRange:{start:t.timeRange.start,end:t.timeRange.end}};let{start:r,end:n}=t.timeRange,o=(0,i.EY)(e.query,t.variableState,t.timeRange),l=await t.datasourceStore.getDatasourceClient(e.datasource??a.S),u=await l.query({start:r.getTime().toString(),end:n.getTime().toString(),query:o});if("error"===u.status)throw Error(u.error??"GreptimeDB query failed");return{timeRange:{start:r,end:n},logs:function(e){var t;let r=(null==e||null==(t=e.schema)?void 0:t.column_schemas)??[],n=(null==e?void 0:e.rows)??[];if(!r.length||!n.length)return{entries:[],totalCount:0};let a=(0,i.nu)(r);if(-1===a)return{entries:[],totalCount:0};let o=n.map(e=>{var t;let n=(0,i.W0)(null==e?void 0:e[a],null==(t=r[a])?void 0:t.data_type);if(null===n)return null;let o={},l=[];return r.forEach((t,r)=>{if(r===a)return;let n=null==e?void 0:e[r],i=null==n?"":String(n);o[t.name]=i,l.push(`${t.name}=${""===i?"--":i}`)}),{timestamp:Math.floor(n/1e3),labels:o,line:l.join(" ")}}).filter(e=>null!==e);return{entries:o,totalCount:o.length}}((0,i.qV)(u.data)),metadata:{executedQueryString:o}}};var l=r(62540),u=r(70451),s=r(38662),m=r(56599),d=r(315),p=r(71122),c=r(15062),f=r(64383);function g(e){let t=(0,m.A)(),{onChange:r,value:i}=e,{datasource:o}=i,g=o??a.S,{query:y,handleQueryChange:_,handleQueryBlur:h}=(0,f.Z)(e),v=(0,u.useCallback)(e=>{_(e)},[_]),x={fontSize:"11px",color:t.palette.text.secondary,backgroundColor:t.palette.background.code,padding:"8px",borderRadius:"4px",fontFamily:'Monaco, Menlo, "Ubuntu Mono", monospace',whiteSpace:"pre-wrap",lineHeight:"1.3"};return(0,l.jsxs)(d.A,{spacing:1.5,children:[(0,l.jsx)(n.DatasourceSelect,{datasourcePluginKind:a.N,value:g,onChange:e=>{if(!(0,n.isVariableDatasource)(e)&&e.kind===a.N)return void r((0,s.jM)(i,t=>{t.datasource=e}));throw Error("Got unexpected non GreptimeDB datasource selection")},label:"GreptimeDB Datasource",notched:!0}),(0,l.jsx)(p.M,{value:y,onChange:v,onBlur:h,onKeyDown:e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),r((0,s.jM)(i,e=>{e.query=y})))},placeholder:"Enter GreptimeDB SQL query"}),(0,l.jsxs)("details",{children:[(0,l.jsx)("summary",{style:{cursor:"pointer",fontSize:"12px",color:t.palette.text.secondary,marginBottom:"8px"},children:"Query Examples"}),(0,l.jsx)("div",{style:x,children:c.t})]})]})}let y={getLogData:o,OptionsEditorComponent:g,createInitialOptions:()=>({query:""}),dependsOn:e=>({variables:[...new Set([...(0,n.parseVariables)(e.query)])]})}},57748(e,t,r){r.d(t,{EY:()=>a,W0:()=>function e(t,r){if(null==t)return null;let n=i(r);if("number"==typeof t){if(n){if(n.includes("nanosecond"))return Math.floor(t/1e6);if(n.includes("microsecond"))return Math.floor(t/1e3);if(n.includes("millisecond"))return t;if(n.includes("second"))return 1e3*t}return t>1e15?Math.floor(t/1e6):t>1e12?t:t>1e9?1e3*t:t}if("string"==typeof t){let n=Number(t);if(!Number.isNaN(n))return e(n,r)}let a=new Date(t).getTime();return Number.isNaN(a)?null:a},nu:()=>l,qV:()=>o});var n=r(19848);function a(e,t,r){let a,i,o,l,u,{start:s,end:m}=r,d=m.valueOf()-s.valueOf(),p={__from:{value:s.valueOf().toString(),loading:!1},__to:{value:m.valueOf().toString(),loading:!1},__range_ms:{value:d.toString(),loading:!1},__range_s:{value:Math.floor(d/1e3).toString(),loading:!1},__range:{value:(i=Math.floor((a=Math.floor(d/1e3))/3600),o=Math.floor(a%3600/60),l=a%60,u="",i>0&&(u+=`${i}h`),o>0&&(u+=`${o}m`),(l>0||""===u)&&(u+=`${l}s`),u),loading:!1}};return(0,n.replaceVariables)(e,{...p,...t})}function i(e){return e?e.toLowerCase():null}function o(e){var t,r;if(e&&"object"==typeof e)return null==(r=e.output)||null==(t=r[0])?void 0:t.records}function l(e){let t=-1,r=e.filter(e=>{let t=i(e.data_type);return null!==t&&t.startsWith("timestamp")});if(r.length>0){let n=r.find(e=>{var t;return(null==(t=e.semantic_type)?void 0:t.toLowerCase())==="timestamp"})??r[0];t=e.findIndex(e=>e.name===n.name)}if(-1===t){let r=["greptime_timestamp","timestamp","ts","time"];t=e.findIndex(e=>r.includes(e.name.toLowerCase()))}return t}},64383(e,t,r){r.d(t,{Z:()=>i});var n=r(38662),a=r(70451);function i(e){let{onChange:t,value:r}=e,[i,o]=(0,a.useState)(r.query||""),[l,u]=(0,a.useState)(r.query);return r.query!==l&&(o(r.query||""),u(r.query)),{query:i,handleQueryChange:e=>{o(e)},handleQueryBlur:()=>{u(i),t((0,n.jM)(r,e=>{e.query=i}))}}}}}]);
@@ -1,21 +0,0 @@
1
- /*! For license information please see __federation_expose_GreptimeDBTimeSeriesQuery.867c743e.js.LICENSE.txt */
2
- "use strict";(self.chunk_GreptimeDB=self.chunk_GreptimeDB||[]).push([["9548"],{2192(e,t,r){var n=r(70451),i=Symbol.for("react.element"),l=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,l={},s=null,m=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(m=t.ref),t)a.call(t,n)&&!u.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:i,type:e,key:s,ref:m,props:l,_owner:o.current}}t.Fragment=l,t.jsx=s,t.jsxs=s},62540(e,t,r){e.exports=r(2192)},15062(e,t,r){r.d(t,{t:()=>n});let n=`-- Time Series Query
3
- SELECT
4
- date_bin(INTERVAL '1 minute', ts) as ts,
5
- avg(cpu_usage) as avg_cpu,
6
- max(memory_usage) as max_memory
7
- FROM system_metrics
8
- WHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)
9
- GROUP BY ts
10
- ORDER BY ts
11
-
12
- -- Logs Query
13
- SELECT
14
- ts,
15
- service,
16
- level,
17
- message
18
- FROM application_logs
19
- WHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)
20
- ORDER BY ts DESC
21
- LIMIT 1000`},71122(e,t,r){r.d(t,{M:()=>s});var n=r(62540),i=r(29068),l=r(41865),a=r(56599),o=r(315),u=r(54227);function s(e){let t=(0,a.A)(),r="dark"===t.palette.mode;return(0,n.jsxs)(o.A,{position:"relative",children:[(0,n.jsx)(u.A,{sx:{fontWeight:500,marginBottom:"4px",color:t.palette.text.primary},children:"GreptimeDB SQL Query"}),(0,n.jsx)(i.Ay,{...e,style:{border:`1px solid ${t.palette.divider}`},theme:r?"dark":"light",basicSetup:{highlightActiveLine:!1,highlightActiveLineGutter:!1,foldGutter:!1,syntaxHighlighting:!0},extensions:[l.Lz.lineWrapping,l.Lz.theme({".cm-content":{paddingTop:"8px",paddingBottom:"8px",paddingRight:"40px"}})],placeholder:"Write GreptimeDB SQL Query Here..."})]})}r(15062)},7140(e,t,r){r.d(t,{N:()=>n,S:()=>i});let n="GreptimeDBDatasource",i={kind:n}},57748(e,t,r){r.d(t,{EY:()=>i,W0:()=>function e(t,r){if(null==t)return null;let n=l(r);if("number"==typeof t){if(n){if(n.includes("nanosecond"))return Math.floor(t/1e6);if(n.includes("microsecond"))return Math.floor(t/1e3);if(n.includes("millisecond"))return t;if(n.includes("second"))return 1e3*t}return t>1e15?Math.floor(t/1e6):t>1e12?t:t>1e9?1e3*t:t}if("string"==typeof t){let n=Number(t);if(!Number.isNaN(n))return e(n,r)}let i=new Date(t).getTime();return Number.isNaN(i)?null:i},nu:()=>o,qV:()=>a});var n=r(19848);function i(e,t,r){let i,l,a,o,u,{start:s,end:m}=r,d=m.valueOf()-s.valueOf(),c={__from:{value:s.valueOf().toString(),loading:!1},__to:{value:m.valueOf().toString(),loading:!1},__range_ms:{value:d.toString(),loading:!1},__range_s:{value:Math.floor(d/1e3).toString(),loading:!1},__range:{value:(l=Math.floor((i=Math.floor(d/1e3))/3600),a=Math.floor(i%3600/60),o=i%60,u="",l>0&&(u+=`${l}h`),a>0&&(u+=`${a}m`),(o>0||""===u)&&(u+=`${o}s`),u),loading:!1}};return(0,n.replaceVariables)(e,{...c,...t})}function l(e){return e?e.toLowerCase():null}function a(e){var t,r;if(e&&"object"==typeof e)return null==(r=e.output)||null==(t=r[0])?void 0:t.records}function o(e){let t=-1,r=e.filter(e=>{let t=l(e.data_type);return null!==t&&t.startsWith("timestamp")});if(r.length>0){let n=r.find(e=>{var t;return(null==(t=e.semantic_type)?void 0:t.toLowerCase())==="timestamp"})??r[0];t=e.findIndex(e=>e.name===n.name)}if(-1===t){let r=["greptime_timestamp","timestamp","ts","time"];t=e.findIndex(e=>r.includes(e.name.toLowerCase()))}return t}},85816(e,t,r){r.r(t),r.d(t,{GreptimeDBTimeSeriesQueryEditor:()=>g,getTimeSeriesData:()=>a,GreptimeDBTimeSeriesQuery:()=>v});var n=r(7140),i=r(57748);function l(e){if(!e)return!1;let t=e.toLowerCase();return t.includes("int")||t.includes("float")||t.includes("double")||t.includes("decimal")||t.includes("number")}let a=async(e,t)=>{var r;if(!e.query)return{series:[]};let{start:a,end:o}=t.timeRange,u=(0,i.EY)(e.query,t.variableState,t.timeRange),s=await t.datasourceStore.getDatasourceClient(e.datasource??n.S),m=await s.query({start:a.getTime().toString(),end:o.getTime().toString(),query:u});if("error"===m.status)throw Error(m.error??"GreptimeDB query failed");let d=(0,i.qV)(m.data),c=(null==d||null==(r=d.schema)?void 0:r.column_schemas)??[],f=(null==d?void 0:d.rows)??[],p=function(e,t){var r,n,a,o;let u=(null==e||null==(r=e.schema)?void 0:r.column_schemas)??[],s=(null==e?void 0:e.rows)??[];if(!u.length||!s.length)return[];let m=(0,i.nu)(u);if(-1===m){let e=u.findIndex(e=>l(e.data_type));if(-1===e)return[];let r=(null==(a=u[e])?void 0:a.name)??"value",n=[];return(s.forEach((r,i)=>{let l=null==r?void 0:r[e],a="number"==typeof l?l:Number(l);Number.isFinite(a)&&n.push([t+i,a])}),0===n.length)?[]:[{name:r,labels:{},values:n}]}let d=u.findIndex((e,t)=>t!==m&&"greptime_value"===e.name.toLowerCase());-1===d&&(d=u.findIndex((e,t)=>t!==m&&"value"===e.name.toLowerCase())),-1===d&&(d=u.findIndex((e,t)=>t!==m&&l(e.data_type))),-1===d&&(d=u.findIndex((e,t)=>t!==m));let c=(null==(n=u[d])?void 0:n.name)??"value",f=new Map;for(let e of s){let t=(0,i.W0)(null==e?void 0:e[m],null==(o=u[m])?void 0:o.data_type);if(null===t)continue;let r=null==e?void 0:e[d],n="number"==typeof r?r:Number(r);if(!Number.isFinite(n))continue;let l={};u.forEach((t,r)=>{if(r===m||r===d)return;let n=null==e?void 0:e[r];l[t.name]=null==n?"":String(n)});let a=u.filter((e,t)=>t!==m&&t!==d).map(e=>`${e.name}=${l[e.name]??""}`).join("|"),s=`${c}|${a}`,p=f.get(s);p?p.values.push([t,n]):f.set(s,{name:function(e,t){let r=Object.entries(t);return 0===r.length?e:r.map(e=>{let[t,r]=e;return`${t}=${r}`}).join(",")}(c,l),labels:l,values:[[t,n]]})}return Array.from(f.values()).filter(e=>e.values.length>0)}(d,o.getTime()),g=function(e,t){let r=1/0;for(let t of e){let e=[...t.values.map(e=>{let[t]=e;return t})].sort((e,t)=>e-t);for(let t=1;t<e.length;t++){let n=e[t]-e[t-1];n>0&&n<r&&(r=n)}}return Number.isFinite(r)?r:t}(p,t.suggestedStepMs||3e4);return{series:p,timeRange:{start:a,end:o},stepMs:g,metadata:{executedQueryString:u,records:d,table:{columns:c,rows:f}}}};var o=r(19848),u=r(62540),s=r(70451),m=r(38662),d=r(315),c=r(71122),f=r(15062),p=r(64383);function g(e){let{onChange:t,value:r}=e,{datasource:i}=r,l=i??n.S,{query:a,handleQueryChange:g,handleQueryBlur:v}=(0,p.Z)(e),y=(0,s.useCallback)(e=>{g(e)},[g]);return(0,u.jsxs)(d.A,{spacing:1.5,children:[(0,u.jsx)(o.DatasourceSelect,{datasourcePluginKind:n.N,value:l,onChange:e=>{if(!(0,o.isVariableDatasource)(e)&&e.kind===n.N)return void t((0,m.jM)(r,t=>{t.datasource=e}));throw Error("Got unexpected non GreptimeDB datasource selection")},label:"GreptimeDB Datasource",notched:!0}),(0,u.jsx)(c.M,{value:a,onChange:y,onBlur:v,onKeyDown:e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),t((0,m.jM)(r,e=>{e.query=a})))},placeholder:"Enter GreptimeDB SQL query"}),(0,u.jsxs)("details",{children:[(0,u.jsx)("summary",{style:{cursor:"pointer",fontSize:"12px",color:"#666",marginBottom:"8px"},children:"Query Examples"}),(0,u.jsx)("div",{style:{fontSize:"11px",color:"#777",backgroundColor:"#f5f5f5",padding:"8px",borderRadius:"4px",fontFamily:'Monaco, Menlo, "Ubuntu Mono", monospace',whiteSpace:"pre-wrap",lineHeight:"1.3"},children:f.t})]})]})}let v={getTimeSeriesData:a,OptionsEditorComponent:g,createInitialOptions:()=>({query:""}),dependsOn:e=>({variables:[...new Set([...(0,o.parseVariables)(e.query)])]})}},64383(e,t,r){r.d(t,{Z:()=>l});var n=r(38662),i=r(70451);function l(e){let{onChange:t,value:r}=e,[l,a]=(0,i.useState)(r.query||""),[o,u]=(0,i.useState)(r.query);return r.query!==o&&(a(r.query||""),u(r.query)),{query:l,handleQueryChange:e=>{a(e)},handleQueryBlur:()=>{u(l),t((0,n.jM)(r,e=>{e.query=l}))}}}}}]);
@@ -1,21 +0,0 @@
1
- /*! For license information please see __federation_expose_GreptimeDBTraceQuery.a1f7328d.js.LICENSE.txt */
2
- "use strict";(self.chunk_GreptimeDB=self.chunk_GreptimeDB||[]).push([["3361"],{64560(e,t,r){r.r(t),r.d(t,{StatusCodeError:()=>a,StatusCodeOk:()=>i,StatusCodeUnset:()=>n});let n="STATUS_CODE_UNSET",i="STATUS_CODE_OK",a="STATUS_CODE_ERROR"},2192(e,t,r){var n=r(70451),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,a={},l=null,m=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(m=t.ref),t)s.call(t,n)&&!u.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:i,type:e,key:l,ref:m,props:a,_owner:o.current}}t.Fragment=a,t.jsx=l,t.jsxs=l},62540(e,t,r){e.exports=r(2192)},15062(e,t,r){r.d(t,{t:()=>n});let n=`-- Time Series Query
3
- SELECT
4
- date_bin(INTERVAL '1 minute', ts) as ts,
5
- avg(cpu_usage) as avg_cpu,
6
- max(memory_usage) as max_memory
7
- FROM system_metrics
8
- WHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)
9
- GROUP BY ts
10
- ORDER BY ts
11
-
12
- -- Logs Query
13
- SELECT
14
- ts,
15
- service,
16
- level,
17
- message
18
- FROM application_logs
19
- WHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)
20
- ORDER BY ts DESC
21
- LIMIT 1000`},71122(e,t,r){r.d(t,{M:()=>l});var n=r(62540),i=r(29068),a=r(41865),s=r(56599),o=r(315),u=r(54227);function l(e){let t=(0,s.A)(),r="dark"===t.palette.mode;return(0,n.jsxs)(o.A,{position:"relative",children:[(0,n.jsx)(u.A,{sx:{fontWeight:500,marginBottom:"4px",color:t.palette.text.primary},children:"GreptimeDB SQL Query"}),(0,n.jsx)(i.Ay,{...e,style:{border:`1px solid ${t.palette.divider}`},theme:r?"dark":"light",basicSetup:{highlightActiveLine:!1,highlightActiveLineGutter:!1,foldGutter:!1,syntaxHighlighting:!0},extensions:[a.Lz.lineWrapping,a.Lz.theme({".cm-content":{paddingTop:"8px",paddingBottom:"8px",paddingRight:"40px"}})],placeholder:"Write GreptimeDB SQL Query Here..."})]})}r(15062)},7140(e,t,r){r.d(t,{N:()=>n,S:()=>i});let n="GreptimeDBDatasource",i={kind:n}},57748(e,t,r){r.d(t,{EY:()=>i,W0:()=>function e(t,r){if(null==t)return null;let n=a(r);if("number"==typeof t){if(n){if(n.includes("nanosecond"))return Math.floor(t/1e6);if(n.includes("microsecond"))return Math.floor(t/1e3);if(n.includes("millisecond"))return t;if(n.includes("second"))return 1e3*t}return t>1e15?Math.floor(t/1e6):t>1e12?t:t>1e9?1e3*t:t}if("string"==typeof t){let n=Number(t);if(!Number.isNaN(n))return e(n,r)}let i=new Date(t).getTime();return Number.isNaN(i)?null:i},nu:()=>o,qV:()=>s});var n=r(19848);function i(e,t,r){let i,a,s,o,u,{start:l,end:m}=r,c=m.valueOf()-l.valueOf(),d={__from:{value:l.valueOf().toString(),loading:!1},__to:{value:m.valueOf().toString(),loading:!1},__range_ms:{value:c.toString(),loading:!1},__range_s:{value:Math.floor(c/1e3).toString(),loading:!1},__range:{value:(a=Math.floor((i=Math.floor(c/1e3))/3600),s=Math.floor(i%3600/60),o=i%60,u="",a>0&&(u+=`${a}h`),s>0&&(u+=`${s}m`),(o>0||""===u)&&(u+=`${o}s`),u),loading:!1}};return(0,n.replaceVariables)(e,{...d,...t})}function a(e){return e?e.toLowerCase():null}function s(e){var t,r;if(e&&"object"==typeof e)return null==(r=e.output)||null==(t=r[0])?void 0:t.records}function o(e){let t=-1,r=e.filter(e=>{let t=a(e.data_type);return null!==t&&t.startsWith("timestamp")});if(r.length>0){let n=r.find(e=>{var t;return(null==(t=e.semantic_type)?void 0:t.toLowerCase())==="timestamp"})??r[0];t=e.findIndex(e=>e.name===n.name)}if(-1===t){let r=["greptime_timestamp","timestamp","ts","time"];t=e.findIndex(e=>r.includes(e.name.toLowerCase()))}return t}},8741(e,t,r){r.r(t),r.d(t,{GreptimeDBTraceQuery:()=>M,toNanoString:()=>_,GreptimeDBTraceQueryEditor:()=>T,getGreptimeDBTraceData:()=>o});var n=r(19848),i=r(64560),a=r(7140),s=r(57748);let o=async(e,t)=>{var r,o;let v=(0,n.replaceVariables)(e.query??"",t.variableState).trim();if(0===v.length)return{searchResult:[]};let S=function(e){if(e){if("string"==typeof e.name&&""===e.name.trim()){let{kind:t}=e;return t?{kind:t}:void 0}return e}}(e.datasource),h=await t.datasourceStore.getDatasourceClient(S??a.S),y=(null==(r=t.absoluteTimeRange)?void 0:r.start.getTime().toString())??"0",x=(null==(o=t.absoluteTimeRange)?void 0:o.end.getTime().toString())??"0",E=await h.query({query:v,start:y,end:x});if("error"===E.status)throw Error(E.error??"GreptimeDB trace query failed");let T=(0,s.qV)(E.data);return/where[\s\S]*trace_id\s*=/i.test(v)&&function(e){var t;let r=(null==e||null==(t=e.schema)?void 0:t.column_schemas)??[];if(0===r.length)return!1;let n=u(r);return void 0!==n.trace_id&&void 0!==n.span_id}(T)?{trace:function(e){var t;let r=(null==e||null==(t=e.schema)?void 0:t.column_schemas)??[],n=(null==e?void 0:e.rows)??[];if(!r.length||!n.length)return{resourceSpans:[]};let a=u(r),s=r.filter(e=>e.name.startsWith("span_attributes.")),o=r.filter(e=>e.name.startsWith("resource_attributes.")),p=new Map;return n.forEach(e=>{let t=c(m(e,a,["trace_id","traceid","traceId"])),n=c(m(e,a,["span_id","spanid","spanId"]));if(!t||!n)return;let u=c(m(e,a,["parent_span_id","parentspanid","parentSpanId"])),v=c(m(e,a,["span_name","name","operation_name"]))??"(unknown span)",S=c(m(e,a,["span_kind","kind"]))??"SPAN_KIND_UNSPECIFIED",h=c(m(e,a,["service_name"]))??"unknown",y=c(m(e,a,["scope_name"]))??"",x=c(m(e,a,["scope_version"]))??"",E=a.timestamp??a.start_time??a.start_time_unix_nano,T=a.timestamp_end??a.end_time??a.end_time_unix_nano,M=a.duration_nano??a.duration_ns,C=void 0!==E?_(e[E],l(r,E))??"0":"0",N=(void 0!==T?_(e[T],l(r,T))??"0":void 0)??(void 0!==M?String(BigInt(C)+BigInt(_(e[M],l(r,M))??"0")):C),D=s.map(t=>{let r=a[t.name.toLowerCase()];if(void 0===r)return;let n=e[r];if(null!=n&&""!==n)return g(t.name.replace(/^span_attributes\./,""),n)}).filter(e=>void 0!==e),O=f(m(e,a,["span_events"])).map(e=>{let t=function(e){if(null==e)return;let t=d(e);if(void 0!==t)return String(BigInt(Math.trunc(t)));let r=new Date(String(e)).getTime();if(!Number.isNaN(r))return String(1000000n*BigInt(Math.trunc(r)))}(e.timeUnixNano??e.time_unix_nano)??C,r=c(e.name)??"event",n=e.attributes;return{timeUnixNano:t,name:r,attributes:n?Object.entries(n).map(e=>{let[t,r]=e;return g(t,r)}):[]}}),b=f(m(e,a,["span_links"])).map(e=>{let t=e.attributes,r=t?Object.entries(t).map(e=>{let[t,r]=e;return g(t,r)}):[];return{traceId:c(e.traceId??e.trace_id)??"",spanId:c(e.spanId??e.span_id)??"",attributes:r}}),R=c(m(e,a,["span_status_message"]))??"",w=function(e){let t=String(e??"").trim().toUpperCase();if(t)return"STATUS_CODE_OK"===t||"OK"===t||"1"===t?i.StatusCodeOk:"STATUS_CODE_ERROR"===t||"ERROR"===t||"2"===t?i.StatusCodeError:i.StatusCodeUnset}(m(e,a,["span_status_code","status_code"]));if(!p.has(h)){let t=[g("service.name",h)];o.forEach(r=>{let n=a[r.name.toLowerCase()];if(void 0===n)return;let i=e[n];null!=i&&""!==i&&t.push(g(r.name.replace(/^resource_attributes\./,""),i))}),p.set(h,{resourceAttrs:t,scopeSpans:new Map})}let B=p.get(h),I=`${y}|${x}`;B.scopeSpans.has(I)||B.scopeSpans.set(I,{scope:{name:y,version:x},spans:[]}),B.scopeSpans.get(I).spans.push({traceId:t,spanId:n,parentSpanId:u,name:v,kind:S,startTimeUnixNano:C,endTimeUnixNano:N,attributes:D,events:O,links:b,status:{message:R,code:w}})}),{resourceSpans:Array.from(p.entries()).map(e=>{let[t,r]=e;return{resource:{attributes:r.resourceAttrs},scopeSpans:Array.from(r.scopeSpans.values())}})}}(T),metadata:{executedQueryString:v}}:{searchResult:function(e){var t;let r=(null==e||null==(t=e.schema)?void 0:t.column_schemas)??[],n=(null==e?void 0:e.rows)??[];if(!r.length||!n.length)return[];let i=u(r),a=new Map;return n.forEach(e=>{let t=c(m(e,i,["trace_id","traceid","traceId"]));if(!t)return;let n=function(e,t,r){for(let n of["timestamp","start_time","start_time_unix_nano","start_time_unix_ns","start_time_unix_ms","start_time_unix"]){let i=r[n];if(void 0===i||!t)continue;let a=(0,s.W0)(e[i],l(t,i));if(null!==a)return a}}(e,r,i),o=function(e,t,r){let n=d(m(e,r,["duration_ms"]));if(void 0!==n)return n;let i=d(m(e,r,["duration_nano","duration_ns"]));if(void 0!==i)return i/1e6;let a=r.timestamp??r.start_time??r.start_time_unix_nano,o=r.timestamp_end??r.end_time??r.end_time_unix_nano;if(t&&void 0!==a&&void 0!==o){let r=(0,s.W0)(e[a],l(t,a)),n=(0,s.W0)(e[o],l(t,o));if(null!==r&&null!==n)return Math.max(0,n-r)}return 0}(e,r,i),u=function(e,t,r){for(let n of["timestamp_end","end_time","end_time_unix_nano","end_time_unix_ns","end_time_unix_ms"]){let i=r[n];if(void 0===i||!t)continue;let a=(0,s.W0)(e[i],l(t,i));if(null!==a)return a}}(e,r,i)??(void 0!==n?n+o:void 0),_=c(m(e,i,["service_name","root_service_name"]))??"unknown",f=c(m(e,i,["span_name","root_trace_name","operation_name","name"]))??"(unknown span)",g=c(m(e,i,["parent_span_id","parentspanid","parentSpanId"])),v=a.get(t);v?(void 0!==n&&(v.startTimeUnixMs=0===v.startTimeUnixMs?n:Math.min(v.startTimeUnixMs,n)),void 0!==u&&(v.endTimeUnixMs=Math.max(v.endTimeUnixMs,u)),g||(v.rootTraceName=f,v.rootServiceName=_),v.serviceStats[_]||(v.serviceStats[_]={spanCount:0,errorCount:0}),v.serviceStats[_].spanCount+=1,p(m(e,i,["span_status_code","status_code"]))&&(v.serviceStats[_].errorCount+=1)):a.set(t,{traceId:t,startTimeUnixMs:n??0,endTimeUnixMs:u??n??0,rootServiceName:_,rootTraceName:f,serviceStats:{[_]:{spanCount:1,errorCount:+!!p(m(e,i,["span_status_code","status_code"]))}}})}),Array.from(a.values()).map(e=>({traceId:e.traceId,startTimeUnixMs:e.startTimeUnixMs,durationMs:Math.max(0,e.endTimeUnixMs-e.startTimeUnixMs),rootServiceName:e.rootServiceName,rootTraceName:e.rootTraceName,serviceStats:e.serviceStats})).sort((e,t)=>t.startTimeUnixMs-e.startTimeUnixMs)}(T),metadata:{executedQueryString:v}}};function u(e){let t={};return(e??[]).forEach((e,r)=>{t[e.name.toLowerCase()]=r}),t}function l(e,t){let r=e[t];if(!r)throw Error(`GreptimeDB SQL response missing column at index ${t}`);let n=r.data_type;if(!n)throw Error(`GreptimeDB SQL response missing data_type for column "${r.name}"`);return n}function m(e,t,r){for(let n of r){let r=t[n.toLowerCase()];if(void 0!==r)return e[r]}}function c(e){if(null!=e)return String(e)}function d(e){if(null==e)return;if("number"==typeof e)return Number.isFinite(e)?e:void 0;let t=Number(e);return Number.isFinite(t)?t:void 0}function p(e){let t=String(e??"").trim().toUpperCase();return"STATUS_CODE_ERROR"===t||"ERROR"===t||"2"===t}function _(e,t){let r;if(null==e)return;let n=d(e);if(void 0===n)return;let i=t.toLowerCase();if(i.includes("nanosecond"))return String(BigInt(Math.trunc(n)));if(i.includes("microsecond"))return String(1000n*BigInt(Math.trunc(n)));if(i.includes("millisecond"))return String(1000000n*BigInt(Math.trunc(n)));if(i.includes("second"))return String(1000000000n*BigInt(Math.trunc(n)));if((r=t.toLowerCase()).includes("int")||r.includes("uint")||"bigint"===r)return String(BigInt(Math.trunc(n)));throw Error(`Unsupported GreptimeDB data_type: ${t}`)}function f(e){if(Array.isArray(e))return e;if("string"==typeof e)try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{}return[]}function g(e,t){return{key:e,value:{stringValue:"string"==typeof t?t:JSON.stringify(t)}}}var v=r(62540),S=r(315),h=r(38662),y=r(70451),x=r(71122),E=r(64383);function T(e){let{onChange:t,value:r}=e,{datasource:i}=r,s=i??a.S,{query:o,handleQueryChange:u,handleQueryBlur:l}=(0,E.Z)(e),m=(0,y.useCallback)(e=>{u(e)},[u]);return(0,v.jsxs)(S.A,{spacing:1.5,children:[(0,v.jsx)(n.DatasourceSelect,{datasourcePluginKind:a.N,value:s,onChange:e=>{if(!(0,n.isVariableDatasource)(e)&&e.kind===a.N)return void t((0,h.jM)(r,t=>{t.datasource=e}));throw Error("Got unexpected non GreptimeDB datasource selection")},label:"GreptimeDB Datasource",notched:!0}),(0,v.jsx)(x.M,{value:o,onChange:m,onBlur:l,onKeyDown:e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),t((0,h.jM)(r,e=>{e.query=o})))},placeholder:"Enter SQL for trace search or trace details"})]})}let M={getTraceData:o,OptionsEditorComponent:T,createInitialOptions:()=>({query:""}),dependsOn:e=>({variables:[...new Set((0,n.parseVariables)(e.query))]})}},64383(e,t,r){r.d(t,{Z:()=>a});var n=r(38662),i=r(70451);function a(e){let{onChange:t,value:r}=e,[a,s]=(0,i.useState)(r.query||""),[o,u]=(0,i.useState)(r.query);return r.query!==o&&(s(r.query||""),u(r.query)),{query:a,handleQueryChange:e=>{s(e)},handleQueryBlur:()=>{u(a),t((0,n.jM)(r,e=>{e.query=a}))}}}}}]);
@@ -1,9 +0,0 @@
1
- /**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
@@ -1,26 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- const _jsxruntime = require("react/jsx-runtime");
18
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
19
- const _client = /*#__PURE__*/ _interop_require_default(require("react-dom/client"));
20
- function _interop_require_default(obj) {
21
- return obj && obj.__esModule ? obj : {
22
- default: obj
23
- };
24
- }
25
- const root = _client.default.createRoot(document.getElementById('root'));
26
- root.render(/*#__PURE__*/ (0, _jsxruntime.jsx)(_react.default.StrictMode, {}));
@@ -1,72 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "GreptimeDBQLEditor", {
18
- enumerable: true,
19
- get: function() {
20
- return GreptimeDBQLEditor;
21
- }
22
- });
23
- const _jsxruntime = require("react/jsx-runtime");
24
- const _reactcodemirror = /*#__PURE__*/ _interop_require_default(require("@uiw/react-codemirror"));
25
- const _view = require("@codemirror/view");
26
- const _material = require("@mui/material");
27
- function _interop_require_default(obj) {
28
- return obj && obj.__esModule ? obj : {
29
- default: obj
30
- };
31
- }
32
- function GreptimeDBQLEditor(props) {
33
- const theme = (0, _material.useTheme)();
34
- const isDarkMode = theme.palette.mode === 'dark';
35
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
36
- position: "relative",
37
- children: [
38
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.InputLabel, {
39
- sx: {
40
- fontWeight: 500,
41
- marginBottom: '4px',
42
- color: theme.palette.text.primary
43
- },
44
- children: "GreptimeDB SQL Query"
45
- }),
46
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactcodemirror.default, {
47
- ...props,
48
- style: {
49
- border: `1px solid ${theme.palette.divider}`
50
- },
51
- theme: isDarkMode ? 'dark' : 'light',
52
- basicSetup: {
53
- highlightActiveLine: false,
54
- highlightActiveLineGutter: false,
55
- foldGutter: false,
56
- syntaxHighlighting: true
57
- },
58
- extensions: [
59
- _view.EditorView.lineWrapping,
60
- _view.EditorView.theme({
61
- '.cm-content': {
62
- paddingTop: '8px',
63
- paddingBottom: '8px',
64
- paddingRight: '40px'
65
- }
66
- })
67
- ],
68
- placeholder: "Write GreptimeDB SQL Query Here..."
69
- })
70
- ]
71
- });
72
- }
@@ -1,42 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "queryExample", {
18
- enumerable: true,
19
- get: function() {
20
- return queryExample;
21
- }
22
- });
23
- const queryExample = `-- Time Series Query
24
- SELECT
25
- date_bin(INTERVAL '1 minute', ts) as ts,
26
- avg(cpu_usage) as avg_cpu,
27
- max(memory_usage) as max_memory
28
- FROM system_metrics
29
- WHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)
30
- GROUP BY ts
31
- ORDER BY ts
32
-
33
- -- Logs Query
34
- SELECT
35
- ts,
36
- service,
37
- level,
38
- message
39
- FROM application_logs
40
- WHERE ts BETWEEN to_timestamp_millis($__from) AND to_timestamp_millis($__to)
41
- ORDER BY ts DESC
42
- LIMIT 1000`;
@@ -1,31 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- _export_star(require("./GreptimeDBQLEditor"), exports);
18
- _export_star(require("./constants"), exports);
19
- function _export_star(from, to) {
20
- Object.keys(from).forEach(function(k) {
21
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
22
- Object.defineProperty(to, k, {
23
- enumerable: true,
24
- get: function() {
25
- return from[k];
26
- }
27
- });
28
- }
29
- });
30
- return from;
31
- }
@@ -1,53 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "GreptimeDBDatasource", {
18
- enumerable: true,
19
- get: function() {
20
- return GreptimeDBDatasource;
21
- }
22
- });
23
- const _greptimedbclient = require("../../model/greptimedb-client");
24
- const _GreptimeDBDatasourceEditor = require("./GreptimeDBDatasourceEditor");
25
- const createClient = (spec, options)=>{
26
- const { directUrl, headers, proxy } = spec;
27
- const { proxyUrl } = options;
28
- const datasourceUrl = directUrl ?? proxyUrl;
29
- if (datasourceUrl === undefined) {
30
- throw new Error('No URL specified for GreptimeDBDatasource client. You can use directUrl in the spec to configure it.');
31
- }
32
- // Support directUrl auth headers while keeping backward compatibility with proxy headers.
33
- const specHeaders = {
34
- ...proxy?.spec.headers ?? {},
35
- ...headers ?? {}
36
- };
37
- return {
38
- options: {
39
- datasourceUrl
40
- },
41
- query: (params, headers)=>(0, _greptimedbclient.greptimedbQuery)(params, {
42
- datasourceUrl,
43
- headers: headers ?? specHeaders
44
- })
45
- };
46
- };
47
- const GreptimeDBDatasource = {
48
- createClient,
49
- OptionsEditorComponent: _GreptimeDBDatasourceEditor.GreptimeDBDatasourceEditor,
50
- createInitialOptions: ()=>({
51
- directUrl: ''
52
- })
53
- };