@marimo-team/islands 0.24.3-dev9 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (440) hide show
  1. package/dist/{ConnectedDataExplorerComponent-C9OF_75w.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1066 -1066
  2. package/dist/ErrorBoundary-DnNkbB_U.js +200 -0
  3. package/dist/{ImageComparisonComponent-2a9TMMm2.js → ImageComparisonComponent-Dlm5aWnH.js} +4 -4
  4. package/dist/{Plot-C-9MQeGP.js → Plot-CTyjbQDT.js} +21032 -20666
  5. package/dist/_baseMerge-BiGRwuqv.js +165 -0
  6. package/dist/{abnfDiagram-N423BO3Z-CQKwzX8t.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +17 -18
  7. package/dist/{any-language-editor-DmQ7dyCx.js → any-language-editor-CycIVIeP.js} +17 -17
  8. package/dist/arc-7ra3iNdN.js +81 -0
  9. package/dist/architecture-7GRP2DOG-BWLylgiA.js +3 -0
  10. package/dist/{architectureDiagram-T3A2C74G-CncrDpfa.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +25 -25
  11. package/dist/assets/__vite-browser-external-C9iR87Zl.js +1 -0
  12. package/dist/assets/worker-D7hWi02M.js +109 -0
  13. package/dist/blockDiagram-I7D4REHJ-BbXEXJRu.js +1922 -0
  14. package/dist/{button-CKBkqR9J.js → button-DdXAm8iz.js} +5 -5
  15. package/dist/{c4Diagram-5PPSVZJV-DarUk3Yq.js → c4Diagram-7LVT6UL2-DcLsbQmR.js} +696 -668
  16. package/dist/{capabilities-CMBBJTcc.js → capabilities-B3ce_GNu.js} +1 -1
  17. package/dist/{html-to-image-BtFMe_Nq.js → cells-DYIkSxs6.js} +6757 -10137
  18. package/dist/{channel-CyiYUzJv.js → channel-B5XnTarr.js} +1 -1
  19. package/dist/chat-ui-BXj3uYjy.js +5786 -0
  20. package/dist/{check-CHig47QV.js → check-B7cIK6gb.js} +1 -1
  21. package/dist/{chunk-2Q5K7J3B-BMuJl2jB.js → chunk-2Q5K7J3B-BMkUkeuy.js} +2 -2
  22. package/dist/chunk-4HAMMTFA-D2qv8E0X.js +4188 -0
  23. package/dist/{chunk-5VM5RSS4-Bcq0ftdy.js → chunk-5VM5RSS4-DKsmPCL6.js} +2 -2
  24. package/dist/{chunk-NSK5VX7P-CDTMcJB0.js → chunk-75Z2AOVW-5_HsvXwr.js} +23 -23
  25. package/dist/{chunk-I66GZJ75-BqyTCAPf.js → chunk-DU6HZSFF-BUgAHvnM.js} +21 -4
  26. package/dist/{chunk-2GRJ4B5K-DgO8Qudq.js → chunk-F27PBJKO-DHmYWZXr.js} +4 -4
  27. package/dist/{chunk-KEIR6QF5-C4KX3XYh.js → chunk-FOHPRMQF-BpYR8RqP.js} +4 -4
  28. package/dist/{chunk-WRU74C26-BpWsbiDK.js → chunk-GMAD6QVW-Czynz8aA.js} +486 -258
  29. package/dist/chunk-GVQU2GXP-yQEdulRS.js +37 -0
  30. package/dist/{chunk-5RXB4S5H-tLNUVDdO.js → chunk-IMKFNOWR-BfwTebD0.js} +11 -11
  31. package/dist/{chunk-JWPE2WC7-BJwjGUnF.js → chunk-JWPE2WC7-DJvv1t8U.js} +2 -2
  32. package/dist/chunk-L3NEJ4N5-DwRWnDDK.js +245 -0
  33. package/dist/{chunk-7Z6QIM7H-Dc18hFxH.js → chunk-OSK3NFVY-BBKU_Ign.js} +222 -144
  34. package/dist/{chunk-W5SLKNZC-DLnvpEtV.js → chunk-P2QGCYS3-C0iGU29N.js} +20 -20
  35. package/dist/{chunk-KBJHAD2P-BuqWqkcW.js → chunk-POPQ4Y6H-BCbS3Ozc.js} +4 -4
  36. package/dist/{chunk-4I5QYGJK-DpytHuZQ.js → chunk-PWAF6VOD-CTFCL0jI.js} +4 -4
  37. package/dist/{chunk-JQJVKLGR-CgqCwe8E.js → chunk-SHT3W25Y-BspJEJ5H.js} +109 -63
  38. package/dist/{chunk-6Q2QTUOP-DmTcEBMn.js → chunk-SVP7TREG-DX3rFNTe.js} +5 -5
  39. package/dist/{chunk-GF5L2VYU-B0wgCQgS.js → chunk-TICWLB2K-fVF7Uujg.js} +13 -13
  40. package/dist/{chunk-XXDRQBXY-D73H4IN0.js → chunk-XXDRQBXY-Dnl5VBqG.js} +3 -3
  41. package/dist/{chunk-Y2CYZVJY-DoegUj_e.js → chunk-Y2CYZVJY-DKKS1VyV.js} +1 -1
  42. package/dist/{chunk-5FQGJX7Z-B85XCPv6.js → chunk-YOKDWASO-DrWbKnxA.js} +6925 -5460
  43. package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +30 -0
  44. package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +30 -0
  45. package/dist/code-visibility-DElzk_hh.js +138 -0
  46. package/dist/{common-Cv-4hMa0.js → common-B4-ih9IA.js} +8838 -12645
  47. package/dist/{compiler-runtime-CAH9RLw2.js → compiler-runtime-Cj8ZWiNS.js} +2 -2
  48. package/dist/copy-icon-CLdENY__.js +190 -0
  49. package/dist/{cose-bilkent-JH36ORCC-FUWHkXFX.js → cose-bilkent-JH36ORCC-_LyRKVqm.js} +2 -2
  50. package/dist/cubic-OaEBhQPK.js +1404 -0
  51. package/dist/cynefin-OW5HDTMX-obq-i80l.js +3 -0
  52. package/dist/{cynefinDiagram-MW4NZA55-BXSFK93J.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +10 -10
  53. package/dist/{dagre-CGyalH38.js → dagre-BGSfXNEb.js} +678 -537
  54. package/dist/dagre-GXQ25YYZ-xHNAUTyG.js +425 -0
  55. package/dist/{data-grid-overlay-editor-DZM4BAaI.js → data-grid-overlay-editor-CRH6JQPE.js} +8 -9
  56. package/dist/{data-grid-types-BnZwWG8z.js → data-grid-types-BucVmDDp.js} +1 -1
  57. package/dist/{defaultLocale-DKaU_opG.js → defaultLocale-JI_lnoCe.js} +1 -1
  58. package/dist/{diagram-7IWD3JNH-BjfzDNvj.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +40 -39
  59. package/dist/{diagram-UB23O5K3-DDg-7wLA.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +10 -10
  60. package/dist/{diagram-B4RE2ZJO-CKccR9eE.js → diagram-VSXAHHWV-BKpmG23x.js} +10 -10
  61. package/dist/{diagram-Q27KOJAE-Zhz01ss7.js → diagram-VX7I27RA-BMwGFVD6.js} +21 -21
  62. package/dist/{diagram-LBJQPF4R-CJ-bOruh.js → diagram-Z3DM3KII--KLDR9Pl.js} +10 -10
  63. package/dist/dialog-CgNq6y9-.js +94 -0
  64. package/dist/{dist-dAqZAPcF.js → dist-1HDa70oE.js} +3 -3
  65. package/dist/{dist-Re9sOPOx.js → dist-9x1ZRe-e.js} +2 -2
  66. package/dist/{dist-DEeLqRlU.js → dist-B1vYLK28.js} +1 -1
  67. package/dist/{dist-C5Bn52W4.js → dist-B8D7McG3.js} +3 -3
  68. package/dist/{dist-_XvgytiS.js → dist-BHCHt1NI.js} +1 -1
  69. package/dist/{dist-CRjAdnqF.js → dist-BRxfaJgs.js} +3 -3
  70. package/dist/{dist-Byj2bV8o.js → dist-BVGtK7Ht.js} +1 -1
  71. package/dist/{dist-BIN5LKyE.js → dist-BaHjhkpZ.js} +2 -2
  72. package/dist/{dist-DVFbIwc5.js → dist-BtKIs9N-.js} +1 -1
  73. package/dist/{dist-BrQGcfQ9.js → dist-C2KzV-vf.js} +2 -2
  74. package/dist/{dist-DJFiGP2k.js → dist-C2wDlYdD.js} +2 -2
  75. package/dist/{dist-BVRM2y1P.js → dist-C8xMLVYi.js} +2 -2
  76. package/dist/dist-CMh_W4y4.js +538 -0
  77. package/dist/{extends-BPB6_lTK.js → dist-CO1AwwG_.js} +516 -561
  78. package/dist/{dist-BzN60Z2s.js → dist-CPGxfVGX.js} +1 -1
  79. package/dist/{dist-C7v-9nUK.js → dist-Cm3iAFMD.js} +3 -3
  80. package/dist/{dist-CGAxEiaM.js → dist-Cs2FijYk.js} +2 -2
  81. package/dist/{dist-hXd65f0_.js → dist-D1PpnuZB.js} +1 -1
  82. package/dist/{dist-VdvbxG72.js → dist-DHOTQar0.js} +1 -1
  83. package/dist/{dist-DcgzXCfy.js → dist-DPcEtqmG.js} +2 -2
  84. package/dist/{dist-D4Z_qdP4.js → dist-Df0wKI0F.js} +1 -1
  85. package/dist/{dist-qhLI-SHd.js → dist-DszxuxS1.js} +2 -2
  86. package/dist/{dist-BEmkrGoQ.js → dist-Kxgjxakw.js} +1 -1
  87. package/dist/{dist-BbSMhhD2.js → dist-KzZ7WELx.js} +2 -2
  88. package/dist/{dist-jWUab2d1.js → dist-lA1Cttkb.js} +1 -1
  89. package/dist/dropdown-menu-CZgjYSAh.js +4502 -0
  90. package/dist/{ebnfDiagram-BXEA7PRR-Dm75pCAS.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +17 -18
  91. package/dist/{erDiagram-JOGREHBK-rVDG3VSQ.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1037 -798
  92. package/dist/error-banner-B94dcDmP.js +391 -0
  93. package/dist/error-entries-C0NsUqXl.js +56 -0
  94. package/dist/{esm-CR1nhb1c.js → esm-BElI3qKH.js} +22 -22
  95. package/dist/{esm-C1d0g6Bv.js → esm-G4Fhsgng.js} +51 -37
  96. package/dist/{esm-CesmlDrs.js → esm-h8f7-1CJ.js} +423 -423
  97. package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +3 -0
  98. package/dist/feedback-button-cQcMqpEP.js +380 -0
  99. package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +16 -0
  100. package/dist/{formats-CslNOKy0.js → formats-BR5iGb4s.js} +8 -8
  101. package/dist/{ganttDiagram-PKOTCBZU-9D-LXF6P.js → ganttDiagram-EL5Y4UJY-DbzEBLbl.js} +15 -15
  102. package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +3 -0
  103. package/dist/{gitGraphDiagram-DS77QQ5N-BfpsXTLf.js → gitGraphDiagram-WWUBYQGX-BMf0iKi1.js} +10 -10
  104. package/dist/{glide-data-editor-sPZ8fUFn.js → glide-data-editor-DYOxfSzI.js} +2143 -1910
  105. package/dist/{glide-utils-NShAPPtn.js → glide-utils-B3rUT5PI.js} +15 -15
  106. package/dist/globals-BOoLHa7X.js +19 -0
  107. package/dist/highlighted-body-KPVGNVTW-Ad3MKZ18.js +38 -0
  108. package/dist/html-to-image-CeYYvQNb.js +3272 -0
  109. package/dist/info-A6RAGUB7-DKoayiHY.js +3 -0
  110. package/dist/{infoDiagram-6WML65LV-DqCTXHVy.js → infoDiagram-27XIBGKW-BagtCX_5.js} +7 -7
  111. package/dist/{ishikawaDiagram-WSZJBQD7-BCUYmZ1v.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +8 -8
  112. package/dist/{journeyDiagram-NVQOT4AX-BXB6M4zN.js → journeyDiagram-3NMN7TZE-D2LcKDUO.js} +8 -8
  113. package/dist/{jsx-runtime-CpoKNRgu.js → jsx-runtime-DgDPJV9S.js} +1 -1
  114. package/dist/{kanban-definition-27J2QSJJ-CGRhrDUX.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +29 -29
  115. package/dist/katex-DFBiSucW.js +21840 -0
  116. package/dist/{label-lwzzBHUW.js → label-BJ49YTvk.js} +6 -6
  117. package/dist/{linear-D5r_1YqD.js → linear-Cnaq3Tfb.js} +4 -4
  118. package/dist/{loader-VZ__bv4g.js → loader-D2W4oM-3.js} +15 -15
  119. package/dist/main.js +8113 -13475
  120. package/dist/mermaid-DPNuhemn.js +3084 -0
  121. package/dist/mermaid-HWGCJPDP-DYCzSILp.js +2 -0
  122. package/dist/mermaid-parser.core-DxuSfYwJ.js +638 -0
  123. package/dist/{mhchem-BjwrxcV-.js → mhchem-DWCF06w9.js} +1 -1
  124. package/dist/{micromark-factory-space-DruVGzeG.js → micromark-factory-space-DGxAzmw8.js} +2 -2
  125. package/dist/{mindmap-definition-FAOFIHXS-C9gRhzZq.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +17 -17
  126. package/dist/{node-sql-parser-DesT1xNw.js → node-sql-parser-BiZOJ-FS.js} +0 -3
  127. package/dist/{number-overlay-editor-De2CabLL.js → number-overlay-editor-DZp5bEmI.js} +5 -5
  128. package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
  129. package/dist/packet-AYTQ26CC-Yw7ajchJ.js +3 -0
  130. package/dist/{pegDiagram-VL7TDLO6-Df9IUjMD.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +19 -20
  131. package/dist/{pick-SnHlmIBN.js → pick-CJeoxYOS.js} +1 -1
  132. package/dist/pie-WAS4IAKB-BKdKOAkL.js +3 -0
  133. package/dist/{pieDiagram-7S7Q4E2Y-BmRzQ8ZP.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +29 -31
  134. package/dist/{process-output-CPy0YKUe.js → process-output-BCTjlyuH.js} +7 -6
  135. package/dist/purify.es-DgKyQviY.js +805 -0
  136. package/dist/{quadrantDiagram-CIZ2JOQS-wFBvWcxS.js → quadrantDiagram-AXDQQJYC-DftINo6g.js} +5 -5
  137. package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +3 -0
  138. package/dist/railroad-74A4TZTK-DQvPSdo5.js +3 -0
  139. package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +3 -0
  140. package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +3 -0
  141. package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +3 -0
  142. package/dist/{railroadDiagram-AXF67PYL-DxbIatiN.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +17 -18
  143. package/dist/{react-dom-C94wmq5w.js → react-dom-BUgJ-ab_.js} +3 -3
  144. package/dist/{react-DMWcHin-.js → react-ofJbxM4x.js} +2 -2
  145. package/dist/{react-vega-DSD5aT7_.js → react-vega-5AcMW8gG.js} +10012 -9369
  146. package/dist/{requirementDiagram-LRYGKXZP-X_x-Y713.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +20 -19
  147. package/dist/{reveal-component-CVsYlb9J.js → reveal-component-C9h2Lubu.js} +1303 -1237
  148. package/dist/{sankeyDiagram-W5VNT64P-BYJALbbm.js → sankeyDiagram-P5KCCOFB-CDKR5TJH.js} +4 -4
  149. package/dist/{select-3qHpFKF9.js → select-C6plhmZr.js} +317 -562
  150. package/dist/{sequenceDiagram-SI44F4Z6-BiPBe3Sv.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +11 -11
  151. package/dist/{sizeCapture-X5ZJPWSS-BKLDeh5H.js → sizeCapture-INFHLROL-Dx5SpkQF.js} +2 -2
  152. package/dist/{spec-CutWdqo3.js → spec-CAYwFeV6.js} +4 -4
  153. package/dist/{src-C31ngt98.js → src-CA_m4ONl.js} +298 -303
  154. package/dist/{stateDiagram-OKZ733FA-B7QyNBxH.js → stateDiagram-D77RDMKH-orN6AwMx.js} +19 -20
  155. package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +30 -0
  156. package/dist/style.css +2 -2
  157. package/dist/{swimlanes-SLNWSIFB-B4f8VP3b.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1501 -1591
  158. package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +30 -0
  159. package/dist/{swiper-component-C90YjhaV.js → swiper-component-IOUowglM.js} +39 -26
  160. package/dist/{time-aWGfjN8x.js → time-BieKwdYS.js} +42 -42
  161. package/dist/{timeline-definition-Z64GVDOM-Dacq_5lr.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +7 -7
  162. package/dist/{toDate-CpXBeDq0.js → toDate-WXg1yLcI.js} +7 -7
  163. package/dist/toast-DvY70eFX.js +1834 -0
  164. package/dist/tooltip-qB8NlSqV.js +1742 -0
  165. package/dist/treeView-Q6P3EWNA-DuRV97YF.js +3 -0
  166. package/dist/treemap-WGGIJYW6-AsLq-uwC.js +3 -0
  167. package/dist/use-restore-focus-D5D9xEjZ.js +5946 -0
  168. package/dist/{use-vega-container-remeasure-DUW4tRxq.js → use-vega-container-remeasure-4DwJbPWu.js} +2 -2
  169. package/dist/{useAsyncData-CH6-CgJF.js → useAsyncData-BD6AStMt.js} +3 -3
  170. package/dist/{useDateFormatter-Cp9Jdxls.js → useDateFormatter-BRTPsUK7.js} +8 -8
  171. package/dist/{useDeepCompareMemoize-JC87C_jO.js → useDeepCompareMemoize-D_HNdyvI.js} +2 -2
  172. package/dist/{useIframeCapabilities-De3C-9b4.js → useIframeCapabilities-CVtNkI3Y.js} +2 -2
  173. package/dist/{useLifecycle-B4RGlyf0.js → useLifecycle-DPgiiwwU.js} +6 -6
  174. package/dist/useNumberFormatter-BfDpa21j.js +251 -0
  175. package/dist/useTheme-DzXmYZ5V.js +904 -0
  176. package/dist/{vega-component-ovBXgp91.js → vega-component-D0QXopU8.js} +34 -34
  177. package/dist/{vega-embed-container-TJ5z5dZw.js → vega-embed-container-CbnTccZi.js} +6 -6
  178. package/dist/vega-loader.browser-D95WfUcj.js +1139 -0
  179. package/dist/{vennDiagram-T6HMQDX7-D-Rcq3Iu.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +9 -9
  180. package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +3 -0
  181. package/dist/{wardleyDiagram-T6FBY63Y-Z-Og7_Wd.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +10 -10
  182. package/dist/{xychartDiagram-ELKLHX3M-BDJ2dITA.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +248 -139
  183. package/package.json +54 -57
  184. package/src/__mocks__/notebook.ts +1 -0
  185. package/src/__mocks__/requests.ts +7 -0
  186. package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
  187. package/src/__tests__/fixtures/pair-preview.ts +19 -0
  188. package/src/__tests__/mount.test.ts +18 -0
  189. package/src/components/app-config/optional-features.tsx +6 -0
  190. package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +394 -0
  191. package/src/components/chat/acp/__tests__/agent-panel.test.tsx +272 -0
  192. package/src/components/chat/acp/__tests__/state.test.ts +2 -2
  193. package/src/components/chat/acp/agent-panel.tsx +115 -74
  194. package/src/components/chat/acp/state.ts +1 -1
  195. package/src/components/data-table/__tests__/filters.test.ts +21 -21
  196. package/src/components/data-table/charts/__tests__/spec.test.ts +5 -10
  197. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
  198. package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -1
  199. package/src/components/data-table/columns.tsx +64 -67
  200. package/src/components/editor/RecoveryButton.tsx +1 -0
  201. package/src/components/editor/__tests__/dynamic-favicon.test.tsx +36 -2
  202. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +115 -0
  203. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +218 -0
  204. package/src/components/editor/actions/pair-with-agent-commands.ts +46 -9
  205. package/src/components/editor/actions/pair-with-agent-modal.tsx +49 -23
  206. package/src/components/editor/ai/add-cell-with-ai.tsx +1 -0
  207. package/src/components/editor/ai/ai-completion-editor.tsx +3 -1
  208. package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +186 -0
  209. package/src/components/editor/alerts/__tests__/startup-progress.test.tsx +185 -0
  210. package/src/components/editor/alerts/connecting-alert.tsx +1 -66
  211. package/src/components/editor/alerts/connection-notice.tsx +186 -0
  212. package/src/components/editor/alerts/startup-output.tsx +173 -0
  213. package/src/components/editor/alerts/startup-progress.tsx +204 -0
  214. package/src/components/editor/app-container.tsx +9 -3
  215. package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
  216. package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
  217. package/src/components/editor/cell/__tests__/toolbar.test.tsx +73 -0
  218. package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +50 -0
  219. package/src/components/editor/cell/code/cell-editor.tsx +41 -42
  220. package/src/components/editor/cell/toolbar.tsx +11 -0
  221. package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
  222. package/src/components/editor/chrome/components/feedback-button.tsx +63 -42
  223. package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +164 -8
  224. package/src/components/editor/chrome/panels/__tests__/sandbox-details.test.tsx +358 -0
  225. package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +168 -0
  226. package/src/components/editor/chrome/panels/packages-panel.tsx +113 -175
  227. package/src/components/editor/chrome/panels/sandbox-controller.tsx +106 -0
  228. package/src/components/editor/chrome/panels/sandbox-details-state.ts +38 -0
  229. package/src/components/editor/chrome/panels/sandbox-panel.tsx +230 -0
  230. package/src/components/editor/chrome/panels/sandbox-toggle.tsx +52 -0
  231. package/src/components/editor/chrome/wrapper/app-chrome.tsx +7 -0
  232. package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -1
  233. package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
  234. package/src/components/editor/code/readonly-diff.tsx +1 -1
  235. package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +98 -98
  236. package/src/components/editor/connections/database/__tests__/as-code.test.ts +11 -5
  237. package/src/components/editor/dynamic-favicon.tsx +17 -10
  238. package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +13 -11
  239. package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
  240. package/src/components/editor/file-tree/tree-actions.tsx +11 -14
  241. package/src/components/editor/header/__tests__/status.test.tsx +8 -20
  242. package/src/components/editor/header/filename-input.tsx +2 -0
  243. package/src/components/editor/header/status.tsx +5 -3
  244. package/src/components/editor/navigation/clipboard.ts +1 -0
  245. package/src/components/editor/notebook-cell.tsx +4 -2
  246. package/src/components/editor/output/JsonOutput.tsx +182 -632
  247. package/src/components/editor/output/Outputs.css +49 -17
  248. package/src/components/editor/output/__tests__/JsonOutput-interactions.test.tsx +254 -0
  249. package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +41 -46
  250. package/src/components/editor/output/__tests__/{json-output.test.ts → json-output-formatting.test.ts} +113 -75
  251. package/src/components/editor/output/__tests__/json-output-pagination.test.ts +252 -0
  252. package/src/components/editor/output/json-output/formatting.ts +167 -0
  253. package/src/components/editor/output/json-output/pagination.ts +155 -0
  254. package/src/components/editor/output/json-output/renderers.tsx +196 -0
  255. package/src/components/editor/output/json-output/themes.ts +52 -0
  256. package/src/components/editor/package-alert.tsx +112 -66
  257. package/src/components/editor/renderers/cell-array.tsx +1 -5
  258. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +3 -7
  259. package/src/components/slides/slide-form.tsx +1 -0
  260. package/src/components/slides/slide-notes-editor.tsx +1 -0
  261. package/src/components/tracing/tracing-spec.ts +1 -1
  262. package/src/components/ui/__tests__/badge.test.ts +6 -4
  263. package/src/components/ui/use-toast.ts +8 -0
  264. package/src/core/MarimoApp.tsx +0 -2
  265. package/src/core/ai/context/providers/__tests__/error.test.ts +16 -22
  266. package/src/core/alerts/__tests__/environment.test.ts +183 -0
  267. package/src/core/alerts/__tests__/state.test.tsx +240 -0
  268. package/src/core/alerts/environment.ts +57 -0
  269. package/src/core/alerts/state.ts +155 -99
  270. package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +296 -259
  271. package/src/core/cells/__tests__/apply-transaction.test.ts +34 -0
  272. package/src/core/cells/__tests__/cell.test.ts +61 -0
  273. package/src/core/cells/__tests__/cells.test.ts +182 -37
  274. package/src/core/cells/__tests__/document-changes.test.ts +39 -1
  275. package/src/core/cells/__tests__/outputs.test.tsx +117 -0
  276. package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -3
  277. package/src/core/cells/__tests__/session.test.ts +7 -0
  278. package/src/core/cells/cell.ts +9 -1
  279. package/src/core/cells/cells.ts +13 -18
  280. package/src/core/cells/document-changes.ts +11 -1
  281. package/src/core/cells/outputs.ts +66 -9
  282. package/src/core/cells/pending-delete-service.ts +12 -16
  283. package/src/core/cells/session.ts +2 -0
  284. package/src/core/cells/types.ts +2 -0
  285. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +8 -16
  286. package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
  287. package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +4 -8
  288. package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
  289. package/src/core/codemirror/rtc/extension.ts +5 -2
  290. package/src/core/config/pair.ts +19 -0
  291. package/src/core/datasets/__tests__/data-source.test.ts +2 -0
  292. package/src/core/datasets/data-source-connections.ts +15 -10
  293. package/src/core/edit-app.tsx +8 -5
  294. package/src/core/errors/state.ts +1 -2
  295. package/src/core/export/__tests__/hooks.test.ts +1 -6
  296. package/src/core/islands/bootstrap.ts +3 -1
  297. package/src/core/islands/bridge.ts +3 -0
  298. package/src/core/islands/worker-factory.ts +2 -12
  299. package/src/core/kernel/messages.ts +2 -2
  300. package/src/core/network/__tests__/requests-network.test.ts +4 -3
  301. package/src/core/network/connection-notice.ts +117 -0
  302. package/src/core/network/connection.ts +19 -0
  303. package/src/core/network/requests-lazy.ts +3 -0
  304. package/src/core/network/requests-network.ts +12 -0
  305. package/src/core/network/requests-static.ts +3 -0
  306. package/src/core/network/requests-toasting.tsx +3 -0
  307. package/src/core/network/resolve.ts +2 -1
  308. package/src/core/network/types.ts +7 -0
  309. package/src/core/network/useConnectionNotice.ts +53 -0
  310. package/src/core/packages/__tests__/usePackageAction.test.tsx +129 -0
  311. package/src/core/packages/__tests__/useSandboxController.test.tsx +246 -0
  312. package/src/core/packages/package-data.ts +35 -0
  313. package/src/core/packages/sandbox-state.ts +67 -0
  314. package/src/core/packages/toast-components.tsx +11 -0
  315. package/src/core/packages/useInstallPackage.ts +1 -1
  316. package/src/core/packages/usePackageAction.ts +51 -0
  317. package/src/core/packages/usePackageDependencies.ts +22 -0
  318. package/src/core/packages/useSandboxController.ts +208 -0
  319. package/src/core/run-app.tsx +2 -0
  320. package/src/core/static/__tests__/files.test.ts +12 -30
  321. package/src/core/wasm/__tests__/bootstrap.test.ts +63 -0
  322. package/src/core/wasm/__tests__/bridge.test.ts +13 -4
  323. package/src/core/wasm/__tests__/fs.test.ts +22 -0
  324. package/src/core/wasm/__tests__/runtime-config.test.ts +65 -0
  325. package/src/core/wasm/bridge.ts +35 -23
  326. package/src/core/wasm/rpc.ts +2 -0
  327. package/src/core/wasm/runtime-config.ts +31 -0
  328. package/src/core/wasm/worker/bootstrap.ts +21 -11
  329. package/src/core/wasm/worker/constants.ts +1 -0
  330. package/src/core/wasm/worker/fs.ts +4 -0
  331. package/src/core/wasm/worker/getController.ts +3 -1
  332. package/src/core/wasm/worker/save-worker.ts +10 -9
  333. package/src/core/wasm/worker/types.ts +6 -4
  334. package/src/core/wasm/worker/worker.ts +9 -9
  335. package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +404 -3
  336. package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +8 -6
  337. package/src/core/websocket/transports/transport.ts +1 -1
  338. package/src/core/websocket/transports/ws.ts +1 -1
  339. package/src/core/websocket/types.ts +11 -1
  340. package/src/core/websocket/useMarimoKernelConnection.tsx +63 -16
  341. package/src/hooks/useDebounce.ts +2 -0
  342. package/src/mount.tsx +3 -0
  343. package/src/plugins/core/BadPlugin.tsx +3 -14
  344. package/src/plugins/core/RenderHTML.tsx +22 -2
  345. package/src/plugins/core/__test__/RenderHTML.test.ts +187 -0
  346. package/src/plugins/core/registerReactComponent.tsx +0 -1
  347. package/src/plugins/impl/FileBrowserPlugin.tsx +10 -4
  348. package/src/plugins/impl/FormPlugin.tsx +2 -0
  349. package/src/plugins/impl/MatrixPlugin.tsx +2 -0
  350. package/src/plugins/impl/RangeSliderPlugin.tsx +2 -0
  351. package/src/plugins/impl/SliderPlugin.tsx +2 -0
  352. package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +50 -1
  353. package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +23 -18
  354. package/src/plugins/impl/data-frames/panel.tsx +1 -0
  355. package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +1 -1
  356. package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +15 -0
  357. package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +42 -48
  358. package/src/plugins/layout/AccordionPlugin.tsx +7 -2
  359. package/src/plugins/layout/JsonOutputPlugin.tsx +7 -10
  360. package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
  361. package/src/stories/sandbox.stories.tsx +488 -0
  362. package/src/utils/__tests__/path.test.ts +6 -5
  363. package/src/utils/__tests__/worker.test.ts +81 -0
  364. package/src/utils/worker.ts +22 -0
  365. package/dist/ErrorBoundary-CR-ZQN_c.js +0 -125
  366. package/dist/_baseMerge-Dv8bBloN.js +0 -73
  367. package/dist/_initCloneObject---vediN2.js +0 -95
  368. package/dist/arc-DOVLrCPd.js +0 -82
  369. package/dist/architecture-TIHT7OUA-MiJpPpQW.js +0 -3
  370. package/dist/array-CApNbSU9.js +0 -6
  371. package/dist/assets/__vite-browser-external-BdKGjRZ4.js +0 -1
  372. package/dist/assets/worker-DlIBfp9S.js +0 -98
  373. package/dist/blockDiagram-VBNYF7ZC-Bc--I65C.js +0 -3158
  374. package/dist/chat-ui-BSwr409J.js +0 -8455
  375. package/dist/chunk-3NCLNEKW-BIp_lB_4.js +0 -14
  376. package/dist/chunk-5FCAYU7R-C_HO9A1J.js +0 -23
  377. package/dist/chunk-5HE753X5-Bixm_MV-.js +0 -38
  378. package/dist/chunk-5JV3BV7I-CH5J3iZY.js +0 -54
  379. package/dist/chunk-5TONJI2A-DG6gDiSS.js +0 -62
  380. package/dist/chunk-7BUUIJ7U-5afmIPeo.js +0 -82
  381. package/dist/chunk-BIQX33UG-7TMBUf89.js +0 -23
  382. package/dist/chunk-CQNSW5MT-Cnqqsxt-.js +0 -38
  383. package/dist/chunk-CYSBUYHQ-BAbymFHR.js +0 -23
  384. package/dist/chunk-EMLP6XTP-Bsz-QL77.js +0 -23
  385. package/dist/chunk-J7OUQ5F2-CM_meqZH.js +0 -57
  386. package/dist/chunk-JG7HCLWE-DUnCDgPk.js +0 -62
  387. package/dist/chunk-MOZMSUNE-BG6IHvzT.js +0 -35
  388. package/dist/chunk-OSBZ3O6U-CYwj_bvR.js +0 -23
  389. package/dist/chunk-QBLGF6JB-B4vJ4j8J.js +0 -23
  390. package/dist/chunk-QR6OTTB3-D4wH2ldi.js +0 -3738
  391. package/dist/chunk-R7FJI6CG-Blf8FcmZ.js +0 -64
  392. package/dist/chunk-RYQCIY6F-BWbIlBIH.js +0 -241
  393. package/dist/chunk-U6XO7XAA-COw445DS.js +0 -63
  394. package/dist/chunk-UBXNYLIW-BHigVU4H.js +0 -32
  395. package/dist/chunk-YOTPTUD7-Dn044Q_d.js +0 -30
  396. package/dist/chunk-ZIRB5QZD-BR4TMfOa.js +0 -1153
  397. package/dist/classDiagram-JCYQIIEL-DmXSLxe_.js +0 -30
  398. package/dist/classDiagram-v2-OCEON4UE-CooqVexA.js +0 -30
  399. package/dist/click-outside-container-D_URcm3D.js +0 -167
  400. package/dist/code-block-37QAKDTI-CQrzBOr-.js +0 -107
  401. package/dist/copy-CD7S58CY.js +0 -141
  402. package/dist/cynefin-VYW2F7L2-CeHAxOEX.js +0 -3
  403. package/dist/dagre-VZM6K2ZE-CJggWPTJ.js +0 -328
  404. package/dist/dist-3_o3T78I.js +0 -1360
  405. package/dist/dist-ABQjhuek.js +0 -64
  406. package/dist/dist-CO5R6VMi.js +0 -538
  407. package/dist/dropdown-menu-DhCfcscX.js +0 -5858
  408. package/dist/emotion-is-prop-valid.esm-M57VsT8j.js +0 -14
  409. package/dist/error-banner-CsXbEEjo.js +0 -611
  410. package/dist/eventmodeling-45OFAUF4-B_lWZ-Pd.js +0 -3
  411. package/dist/flowDiagram-UKHOOZJN-g1AmrZzM.js +0 -17
  412. package/dist/gitGraph-TEB2WS4Q-Dj-eXUph.js +0 -3
  413. package/dist/info-DKCQHKI2-Bhb-pe2e.js +0 -3
  414. package/dist/line-CuKjIQa1.js +0 -34
  415. package/dist/map-BJpOfPlL.js +0 -149
  416. package/dist/math-BXtKgYah.js +0 -10
  417. package/dist/mermaid-4DMBBIKO-Ddp9TgNp.js +0 -2
  418. package/dist/mermaid-Bi23Ibnw.js +0 -1173
  419. package/dist/mermaid-parser.core-Din9FvSi.js +0 -99
  420. package/dist/packet-7NZHBO7P-fbkIIyKE.js +0 -3
  421. package/dist/path-BNHuHZP8.js +0 -87
  422. package/dist/pie-RZYD4A2V-CLRIsxY1.js +0 -3
  423. package/dist/purify.es-CB-YO1Hn.js +0 -774
  424. package/dist/radar-I7S5WNFK-BGzCbgXu.js +0 -3
  425. package/dist/railroad-3IZDKUUU-CvQIIcuU.js +0 -3
  426. package/dist/railroad-abnf-AHOZXSZD-CMwtlNtu.js +0 -3
  427. package/dist/railroad-ebnf-EBAXGLYW-n1QUOAsh.js +0 -3
  428. package/dist/railroad-peg-LSFZ7HO6-PjnrpmCs.js +0 -3
  429. package/dist/schemas-DzK6U94N.js +0 -6057
  430. package/dist/stateDiagram-v2-UEYNNEHI-BTRUs8Il.js +0 -30
  431. package/dist/step-CKczO72Q.js +0 -670
  432. package/dist/swimlanesDiagram-ULZ7WXOC-NBmgBl9G.js +0 -31
  433. package/dist/timer-DpDyj9G0.js +0 -596
  434. package/dist/tooltip-Dt77sBeT.js +0 -390
  435. package/dist/treeView-QDETBFTQ-DU8LwHuf.js +0 -3
  436. package/dist/treemap-6X3UGDF4-DUk4-k_O.js +0 -3
  437. package/dist/useTheme-CVJ0UOf2.js +0 -841
  438. package/dist/vega-loader.browser-DEggZzni.js +0 -1083
  439. package/dist/wardley-OPB4EBWU-Db-AaGas.js +0 -3
  440. package/src/components/editor/output/EmotionCacheProvider.tsx +0 -32
@@ -1,24 +1,24 @@
1
1
  import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { g as a, h as o, t as s } from "./button-CKBkqR9J.js";
3
- import { t as c } from "./react-DMWcHin-.js";
4
- import { t as l } from "./compiler-runtime-CAH9RLw2.js";
5
- import { u } from "./dist-3_o3T78I.js";
6
- import { D as d, t as f } from "./spec-CutWdqo3.js";
7
- import { a as p, c as m, i as h, o as g, r as _, s as v, t as y } from "./useLifecycle-B4RGlyf0.js";
8
- import { a as b, t as x } from "./useDateFormatter-Cp9Jdxls.js";
9
- import { a as S, b as C, c as w, i as T, n as ee, o as E, r as te, s as ne, t as re, w as D } from "./select-3qHpFKF9.js";
10
- import { t as O } from "./jsx-runtime-CpoKNRgu.js";
11
- import { n as ie } from "./error-banner-CsXbEEjo.js";
12
- import { t as ae } from "./label-lwzzBHUW.js";
13
- import { t as oe } from "./tooltip-Dt77sBeT.js";
14
- import { C as se, D as ce, E as le, n as ue, x as de } from "./useTheme-CVJ0UOf2.js";
15
- import { t as fe } from "./invariant-DLmrl-hA.js";
16
- import { t as pe } from "./objects-CzUgoMIF.js";
17
- import { t as me } from "./useAsyncData-CH6-CgJF.js";
18
- import { A as he } from "./vega-loader.browser-DEggZzni.js";
19
- import { n as ge, r as _e } from "./react-vega-DSD5aT7_.js";
20
- import { a as ve, n as ye } from "./loader-VZ__bv4g.js";
21
- var be = u("chart-column-big", [
2
+ import { g as a, h as o, t as s } from "./button-DdXAm8iz.js";
3
+ import { t as c } from "./react-ofJbxM4x.js";
4
+ import { t as l } from "./compiler-runtime-Cj8ZWiNS.js";
5
+ import { g as u, t as d } from "./tooltip-qB8NlSqV.js";
6
+ import { D as f, t as p } from "./spec-CAYwFeV6.js";
7
+ import { a as m, c as h, i as g, o as _, r as v, s as y, t as b } from "./useLifecycle-DPgiiwwU.js";
8
+ import { a as x, t as S } from "./useDateFormatter-BRTPsUK7.js";
9
+ import { a as C, b as w, c as T, i as E, n as D, o as O, r as ee, s as te, t as ne } from "./select-C6plhmZr.js";
10
+ import { t as k } from "./jsx-runtime-DgDPJV9S.js";
11
+ import { n as re } from "./error-banner-B94dcDmP.js";
12
+ import { t as ie } from "./label-BJ49YTvk.js";
13
+ import { t as ae } from "./useNumberFormatter-BfDpa21j.js";
14
+ import { C as oe, D as se, E as ce, n as le, x as ue } from "./useTheme-DzXmYZ5V.js";
15
+ import { t as de } from "./invariant-DLmrl-hA.js";
16
+ import { t as fe } from "./objects-CzUgoMIF.js";
17
+ import { t as pe } from "./useAsyncData-BD6AStMt.js";
18
+ import { M as me } from "./vega-loader.browser-D95WfUcj.js";
19
+ import { n as he, r as ge } from "./react-vega-5AcMW8gG.js";
20
+ import { a as _e, n as ve } from "./loader-D2W4oM-3.js";
21
+ var ye = u("chart-column-big", [
22
22
  ["path", {
23
23
  d: "M3 3v16a2 2 0 0 0 2 2h16",
24
24
  key: "c24i48"
@@ -39,7 +39,7 @@ var be = u("chart-column-big", [
39
39
  rx: "1",
40
40
  key: "sr5ea"
41
41
  }]
42
- ]), xe = u("list-ordered", [
42
+ ]), be = u("list-ordered", [
43
43
  ["path", {
44
44
  d: "M11 5h10",
45
45
  key: "1cz7ny"
@@ -64,8 +64,8 @@ var be = u("chart-column-big", [
64
64
  d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
65
65
  key: "xtkcd5"
66
66
  }]
67
- ]), Se = l();
68
- function Ce(e, t) {
67
+ ]), xe = l();
68
+ function Se(e, t) {
69
69
  var n = {};
70
70
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
71
71
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
@@ -73,7 +73,7 @@ function Ce(e, t) {
73
73
  }
74
74
  //#endregion
75
75
  //#region ../node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js
76
- var we = /* @__PURE__ */ i(((e, t) => {
76
+ var Ce = /* @__PURE__ */ i(((e, t) => {
77
77
  var n = (function() {
78
78
  function e(e, t) {
79
79
  return t != null && e instanceof t;
@@ -174,7 +174,7 @@ var we = /* @__PURE__ */ i(((e, t) => {
174
174
  return i.__getRegExpFlags = l, i;
175
175
  })();
176
176
  typeof t == "object" && t.exports && (t.exports = n);
177
- })), Te = /* @__PURE__ */ i(((e, t) => {
177
+ })), we = /* @__PURE__ */ i(((e, t) => {
178
178
  var n = Array.isArray, r = Object.keys, i = Object.prototype.hasOwnProperty;
179
179
  t.exports = function e(t, a) {
180
180
  if (t === a) return !0;
@@ -200,7 +200,7 @@ var we = /* @__PURE__ */ i(((e, t) => {
200
200
  }
201
201
  return t !== t && a !== a;
202
202
  };
203
- })), Ee = /* @__PURE__ */ i(((e, t) => {
203
+ })), Te = /* @__PURE__ */ i(((e, t) => {
204
204
  t.exports = function(e, t) {
205
205
  t ||= {}, typeof t == "function" && (t = { cmp: t });
206
206
  var n = typeof t.cycles == "boolean" && t.cycles, r = t.cmp && (function(e) {
@@ -240,19 +240,19 @@ var we = /* @__PURE__ */ i(((e, t) => {
240
240
  })(e);
241
241
  };
242
242
  }));
243
- we(), Te();
244
- var De = /* @__PURE__ */ e(Ee());
245
- function Oe(e, t, n) {
243
+ Ce(), we();
244
+ var Ee = /* @__PURE__ */ e(Te());
245
+ function De(e, t, n) {
246
246
  return e.fields = t || [], e.fname = n, e;
247
247
  }
248
248
  //#endregion
249
249
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/error.js
250
- function ke(e) {
250
+ function Oe(e) {
251
251
  throw Error(e);
252
252
  }
253
253
  //#endregion
254
254
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/splitAccessPath.js
255
- function Ae(e) {
255
+ function ke(e) {
256
256
  var t = [], n = null, r = 0, i = e.length, a = "", o, s, c;
257
257
  e += "";
258
258
  function l() {
@@ -261,131 +261,131 @@ function Ae(e) {
261
261
  for (o = s = 0; s < i; ++s) if (c = e[s], c === "\\") a += e.substring(o, s), o = ++s;
262
262
  else if (c === n) l(), n = null, r = -1;
263
263
  else if (n) continue;
264
- else o === r && c === "\"" || o === r && c === "'" ? (o = s + 1, n = c) : c === "." && !r ? s > o ? l() : o = s + 1 : c === "[" ? (s > o && l(), r = o = s + 1) : c === "]" && (r || ke("Access path missing open bracket: " + e), r > 0 && l(), r = 0, o = s + 1);
265
- return r && ke("Access path missing closing bracket: " + e), n && ke("Access path missing closing quote: " + e), s > o && (s++, l()), t;
264
+ else o === r && c === "\"" || o === r && c === "'" ? (o = s + 1, n = c) : c === "." && !r ? s > o ? l() : o = s + 1 : c === "[" ? (s > o && l(), r = o = s + 1) : c === "]" && (r || Oe("Access path missing open bracket: " + e), r > 0 && l(), r = 0, o = s + 1);
265
+ return r && Oe("Access path missing closing bracket: " + e), n && Oe("Access path missing closing quote: " + e), s > o && (s++, l()), t;
266
266
  }
267
267
  //#endregion
268
268
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/isArray.js
269
- var je = Array.isArray;
269
+ var Ae = Array.isArray;
270
270
  //#endregion
271
271
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/isObject.js
272
- function Me(e) {
272
+ function je(e) {
273
273
  return e === Object(e);
274
274
  }
275
275
  //#endregion
276
276
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/isString.js
277
- function Ne(e) {
277
+ function Me(e) {
278
278
  return typeof e == "string";
279
279
  }
280
280
  //#endregion
281
281
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/stringValue.js
282
- function Pe(e) {
283
- return je(e) ? "[" + e.map(Pe) + "]" : Me(e) || Ne(e) ? JSON.stringify(e).replace("\u2028", "\\u2028").replace("\u2029", "\\u2029") : e;
282
+ function Ne(e) {
283
+ return Ae(e) ? "[" + e.map(Ne) + "]" : je(e) || Me(e) ? JSON.stringify(e).replace("\u2028", "\\u2028").replace("\u2029", "\\u2029") : e;
284
284
  }
285
285
  //#endregion
286
286
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/field.js
287
- function Fe(e, t) {
288
- var n = Ae(e), r = "return _[" + n.map(Pe).join("][") + "];";
289
- return Oe(Function("_", r), [e = n.length === 1 ? n[0] : e], t || e);
287
+ function Pe(e, t) {
288
+ var n = ke(e), r = "return _[" + n.map(Ne).join("][") + "];";
289
+ return De(Function("_", r), [e = n.length === 1 ? n[0] : e], t || e);
290
290
  }
291
291
  //#endregion
292
292
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/accessors.js
293
- var Ie = [];
294
- Fe("id"), Oe(function(e) {
293
+ var Fe = [];
294
+ Pe("id"), De(function(e) {
295
295
  return e;
296
- }, Ie, "identity"), Oe(function() {
296
+ }, Fe, "identity"), De(function() {
297
297
  return 0;
298
- }, Ie, "zero"), Oe(function() {
298
+ }, Fe, "zero"), De(function() {
299
299
  return 1;
300
- }, Ie, "one"), Oe(function() {
300
+ }, Fe, "one"), De(function() {
301
301
  return !0;
302
- }, Ie, "true"), Oe(function() {
302
+ }, Fe, "true"), De(function() {
303
303
  return !1;
304
- }, Ie, "false");
304
+ }, Fe, "false");
305
305
  //#endregion
306
306
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/logger.js
307
- function Le(e, t, n) {
307
+ function Ie(e, t, n) {
308
308
  var r = [t].concat([].slice.call(n));
309
309
  console[e](...r);
310
310
  }
311
- function Re(e, t) {
311
+ function Le(e, t) {
312
312
  var n = e || 0;
313
313
  return {
314
314
  level: function(e) {
315
315
  return arguments.length ? (n = +e, this) : n;
316
316
  },
317
317
  error: function() {
318
- return n >= 1 && Le(t || "error", "ERROR", arguments), this;
318
+ return n >= 1 && Ie(t || "error", "ERROR", arguments), this;
319
319
  },
320
320
  warn: function() {
321
- return n >= 2 && Le(t || "warn", "WARN", arguments), this;
321
+ return n >= 2 && Ie(t || "warn", "WARN", arguments), this;
322
322
  },
323
323
  info: function() {
324
- return n >= 3 && Le(t || "log", "INFO", arguments), this;
324
+ return n >= 3 && Ie(t || "log", "INFO", arguments), this;
325
325
  },
326
326
  debug: function() {
327
- return n >= 4 && Le(t || "log", "DEBUG", arguments), this;
327
+ return n >= 4 && Ie(t || "log", "DEBUG", arguments), this;
328
328
  }
329
329
  };
330
330
  }
331
331
  //#endregion
332
332
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/isBoolean.js
333
- function ze(e) {
333
+ function Re(e) {
334
334
  return typeof e == "boolean";
335
335
  }
336
336
  //#endregion
337
337
  //#region ../node_modules/.pnpm/vega-util@1.10.0/node_modules/vega-util/src/toSet.js
338
- function Be(e) {
338
+ function ze(e) {
339
339
  for (var t = {}, n = 0, r = e.length; n < r; ++n) t[e[n]] = !0;
340
340
  return t;
341
341
  }
342
342
  //#endregion
343
343
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/util.js
344
344
  Set.prototype.toJSON = function() {
345
- return `Set(${[...this].map((e) => (0, De.default)(e)).join(",")})`;
345
+ return `Set(${[...this].map((e) => (0, Ee.default)(e)).join(",")})`;
346
346
  };
347
- var k = De.default;
348
- function A(e, t) {
347
+ var A = Ee.default;
348
+ function j(e, t) {
349
349
  return e.indexOf(t) > -1;
350
350
  }
351
- function Ve(e, t) {
351
+ function Be(e, t) {
352
352
  let n = 0;
353
353
  for (let [r, i] of e.entries()) if (t(i, r, n++)) return !0;
354
354
  return !1;
355
355
  }
356
- var j = Object.keys;
357
- function He(e) {
356
+ var M = Object.keys;
357
+ function Ve(e) {
358
358
  let t = e.replace(/\W/g, "_");
359
359
  return (e.match(/^\d+/) ? "_" : "") + t;
360
360
  }
361
- function Ue(e, t = "datum") {
362
- return `${t}[${Pe(Ae(e).join("."))}]`;
361
+ function He(e, t = "datum") {
362
+ return `${t}[${Ne(ke(e).join("."))}]`;
363
363
  }
364
- function We(e) {
365
- return `${Ae(e).map((e) => e.replace(".", "\\.")).join("\\.")}`;
364
+ function Ue(e) {
365
+ return `${ke(e).map((e) => e.replace(".", "\\.")).join("\\.")}`;
366
366
  }
367
- function Ge(...e) {
367
+ function We(...e) {
368
368
  for (let t of e) if (t !== void 0) return t;
369
369
  }
370
- function Ke(e) {
371
- return qe(e) ? e : `__${e}`;
370
+ function Ge(e) {
371
+ return Ke(e) ? e : `__${e}`;
372
372
  }
373
- function qe(e) {
373
+ function Ke(e) {
374
374
  return e.indexOf("__") === 0;
375
375
  }
376
- var Je = "column", Ye = "facet", Xe = "latitude", Ze = "longitude", Qe = "latitude2", $e = "longitude2", et = "color", tt = "fill", nt = "stroke", rt = "shape", it = "size", at = "opacity", ot = "fillOpacity", st = "strokeOpacity", ct = "strokeWidth", lt = "text", ut = "order", dt = "detail", ft = "tooltip", pt = "href", mt = {
376
+ var qe = "column", Je = "facet", Ye = "latitude", Xe = "longitude", Ze = "latitude2", Qe = "longitude2", $e = "color", et = "fill", tt = "stroke", nt = "shape", rt = "size", it = "opacity", at = "fillOpacity", ot = "strokeOpacity", st = "strokeWidth", ct = "text", lt = "order", ut = "detail", dt = "tooltip", ft = "href", pt = {
377
377
  x: 1,
378
378
  y: 1,
379
379
  x2: 1,
380
380
  y2: 1
381
- }, ht = {
381
+ }, mt = {
382
382
  longitude: 1,
383
383
  longitude2: 1,
384
384
  latitude: 1,
385
385
  latitude2: 1
386
386
  };
387
- j(ht);
388
- var gt = Object.assign({}, mt, ht, {
387
+ M(mt);
388
+ var ht = Object.assign({}, pt, mt, {
389
389
  color: 1,
390
390
  fill: 1,
391
391
  stroke: 1,
@@ -402,24 +402,24 @@ var gt = Object.assign({}, mt, ht, {
402
402
  tooltip: 1,
403
403
  href: 1
404
404
  });
405
- function _t(e) {
405
+ function gt(e) {
406
406
  return e === "color" || e === "fill" || e === "stroke";
407
407
  }
408
- var vt = {
408
+ var _t = {
409
409
  row: 1,
410
410
  column: 1,
411
411
  facet: 1
412
412
  };
413
- j(vt);
414
- var yt = Object.assign({}, gt, vt), bt = j(yt), { order: xt, detail: St } = yt, Ct = Ce(yt, ["order", "detail"]), { order: wt, detail: Tt, row: Et, column: Dt, facet: Ot } = yt, kt = Ce(yt, [
413
+ M(_t);
414
+ var vt = Object.assign({}, ht, _t), yt = M(vt), { order: bt, detail: xt } = vt, St = Se(vt, ["order", "detail"]), { order: Ct, detail: wt, row: Tt, column: Et, facet: Dt } = vt, Ot = Se(vt, [
415
415
  "order",
416
416
  "detail",
417
417
  "row",
418
418
  "column",
419
419
  "facet"
420
420
  ]);
421
- j(Ct), j(kt), j(gt);
422
- var { x: At, y: jt, x2: Mt, y2: Nt, latitude: Pt, longitude: Ft, latitude2: It, longitude2: Lt } = gt, Rt = Ce(gt, [
421
+ M(St), M(Ot), M(ht);
422
+ var { x: kt, y: At, x2: jt, y2: Mt, latitude: Nt, longitude: Pt, latitude2: Ft, longitude2: It } = ht, Lt = Se(ht, [
423
423
  "x",
424
424
  "y",
425
425
  "x2",
@@ -428,12 +428,12 @@ var { x: At, y: jt, x2: Mt, y2: Nt, latitude: Pt, longitude: Ft, latitude2: It,
428
428
  "longitude",
429
429
  "latitude2",
430
430
  "longitude2"
431
- ]), zt = j(Rt), Bt = {
431
+ ]), Rt = M(Lt), zt = {
432
432
  x: 1,
433
433
  y: 1
434
434
  };
435
- j(Bt);
436
- var { text: Vt, tooltip: Ht, href: Ut, detail: Wt, key: Gt, order: Kt } = Rt, qt = Ce(Rt, [
435
+ M(zt);
436
+ var { text: Bt, tooltip: Vt, href: Ht, detail: Ut, key: Wt, order: Gt } = Lt, Kt = Se(Lt, [
437
437
  "text",
438
438
  "tooltip",
439
439
  "href",
@@ -441,16 +441,16 @@ var { text: Vt, tooltip: Ht, href: Ut, detail: Wt, key: Gt, order: Kt } = Rt, qt
441
441
  "key",
442
442
  "order"
443
443
  ]);
444
- j(qt);
445
- var Jt = Object.assign({}, Bt, qt);
446
- j(Jt);
447
- function Yt(e) {
448
- return !!Jt[e];
444
+ M(Kt);
445
+ var qt = Object.assign({}, zt, Kt);
446
+ M(qt);
447
+ function Jt(e) {
448
+ return !!qt[e];
449
449
  }
450
- function Xt(e, t) {
451
- return en(e)[t];
450
+ function Yt(e, t) {
451
+ return $t(e)[t];
452
452
  }
453
- var Zt = {
453
+ var Xt = {
454
454
  area: "always",
455
455
  bar: "always",
456
456
  circle: "always",
@@ -463,32 +463,32 @@ var Zt = {
463
463
  trail: "always",
464
464
  text: "always",
465
465
  tick: "always"
466
- }, { geoshape: Qt } = Zt, $t = Ce(Zt, ["geoshape"]);
467
- function en(e) {
466
+ }, { geoshape: Zt } = Xt, Qt = Se(Xt, ["geoshape"]);
467
+ function $t(e) {
468
468
  switch (e) {
469
+ case $e:
469
470
  case et:
470
471
  case tt:
471
- case nt:
472
- case dt:
472
+ case ut:
473
473
  case "key":
474
+ case dt:
474
475
  case ft:
475
- case pt:
476
- case ut:
476
+ case lt:
477
+ case it:
477
478
  case at:
478
479
  case ot:
479
480
  case st:
480
- case ct:
481
- case Ye:
481
+ case Je:
482
482
  case "row":
483
- case Je: return Zt;
483
+ case qe: return Xt;
484
484
  case "x":
485
485
  case "y":
486
- case Xe:
487
- case Ze: return $t;
486
+ case Ye:
487
+ case Xe: return Qt;
488
488
  case "x2":
489
489
  case "y2":
490
- case Qe:
491
- case $e: return {
490
+ case Ze:
491
+ case Qe: return {
492
492
  rule: "always",
493
493
  bar: "always",
494
494
  rect: "always",
@@ -500,7 +500,7 @@ function en(e) {
500
500
  line: "binned",
501
501
  trail: "binned"
502
502
  };
503
- case it: return {
503
+ case rt: return {
504
504
  point: "always",
505
505
  tick: "always",
506
506
  rule: "always",
@@ -511,48 +511,48 @@ function en(e) {
511
511
  line: "always",
512
512
  trail: "always"
513
513
  };
514
- case rt: return {
514
+ case nt: return {
515
515
  point: "always",
516
516
  geoshape: "always"
517
517
  };
518
- case lt: return { text: "always" };
518
+ case ct: return { text: "always" };
519
519
  }
520
520
  }
521
- function tn(e) {
521
+ function en(e) {
522
522
  switch (e) {
523
523
  case "x":
524
524
  case "y":
525
+ case rt:
526
+ case st:
525
527
  case it:
526
- case ct:
527
528
  case at:
528
529
  case ot:
529
- case st:
530
530
  case "x2":
531
531
  case "y2": return;
532
- case Ye:
533
- case "row":
534
532
  case Je:
535
- case rt:
536
- case lt:
537
- case ft:
538
- case pt: return "discrete";
533
+ case "row":
534
+ case qe:
535
+ case nt:
536
+ case ct:
537
+ case dt:
538
+ case ft: return "discrete";
539
+ case $e:
539
540
  case et:
540
- case tt:
541
- case nt: return "flexible";
541
+ case tt: return "flexible";
542
+ case Ye:
542
543
  case Xe:
543
544
  case Ze:
544
545
  case Qe:
545
- case $e:
546
- case dt:
546
+ case ut:
547
547
  case "key":
548
- case ut: return;
548
+ case lt: return;
549
549
  }
550
550
  /* istanbul ignore next: should never reach here. */
551
551
  throw Error("rangeType not implemented for " + e);
552
552
  }
553
553
  //#endregion
554
554
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/axis.js
555
- var nn = {
555
+ var tn = {
556
556
  orient: 1,
557
557
  bandPosition: 1,
558
558
  domain: 1,
@@ -619,12 +619,12 @@ var nn = {
619
619
  titleY: 1,
620
620
  values: 1,
621
621
  zindex: 1
622
- }, rn = Object.assign({}, nn, { encoding: 1 });
623
- j(Object.assign({
622
+ }, nn = Object.assign({}, tn, { encoding: 1 });
623
+ M(Object.assign({
624
624
  gridScale: 1,
625
625
  scale: 1
626
- }, nn, { encode: 1 }));
627
- var an = j(rn), on = {
626
+ }, tn, { encode: 1 }));
627
+ var rn = M(nn), an = {
628
628
  clipHeight: 1,
629
629
  columnPadding: 1,
630
630
  columns: 1,
@@ -686,7 +686,7 @@ var an = j(rn), on = {
686
686
  type: 1,
687
687
  values: 1,
688
688
  zindex: 1
689
- }, sn = Object.assign({}, on, {
689
+ }, on = Object.assign({}, an, {
690
690
  opacity: 1,
691
691
  shape: 1,
692
692
  stroke: 1,
@@ -694,286 +694,286 @@ var an = j(rn), on = {
694
694
  size: 1,
695
695
  strokeWidth: 1,
696
696
  encode: 1
697
- }), cn = j(on);
698
- j(sn);
697
+ }), sn = M(an);
698
+ M(on);
699
699
  //#endregion
700
700
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/log/message.js
701
- var ln = /* @__PURE__ */ r({
702
- BAR_WITH_POINT_SCALE_AND_RANGESTEP_NULL: () => Wn,
703
- CANNOT_FIX_RANGE_STEP_WITH_FIT: () => fn,
704
- CANNOT_UNION_CUSTOM_DOMAIN_WITH_FIELD_DOMAIN: () => qn,
705
- CONCAT_CANNOT_SHARE_AXIS: () => xn,
706
- FIT_NON_SINGLE: () => dn,
707
- INVALID_CHANNEL_FOR_AXIS: () => ur,
708
- INVALID_SPEC: () => un,
709
- LINE_WITH_VARYING_SIZE: () => Rn,
710
- MORE_THAN_ONE_SORT: () => lr,
711
- NO_FIELDS_NEEDS_AS: () => En,
712
- NO_INIT_SCALE_BINDINGS: () => vn,
713
- REPEAT_CANNOT_SHARE_AXIS: () => Sn,
714
- SCALE_BINDINGS_CONTINUOUS: () => _n,
715
- UNABLE_TO_MERGE_DOMAINS: () => cr,
716
- cannotApplySizeToNonOrientedMark: () => Qn,
717
- cannotProjectOnChannelWithoutField: () => pn,
718
- cannotStackNonLinearScale: () => fr,
719
- cannotStackRangedMark: () => dr,
720
- cannotUseScalePropertyWithNonColor: () => Jn,
721
- channelRequiredForBinned: () => Sr,
722
- columnsNotSupportByRowCol: () => bn,
723
- dayReplacedWithDate: () => hr,
724
- differentParse: () => wn,
725
- discreteChannelCannotEncode: () => Un,
726
- domainRequiredForThresholdScale: () => Cr,
727
- domainSortDropped: () => sr,
728
- droppedDay: () => gr,
729
- droppingColor: () => Fn,
730
- emptyFieldDef: () => In,
731
- encodingOverridden: () => Dn,
732
- errorBand1DNotSupport: () => xr,
733
- errorBarCenterAndExtentAreNotNeeded: () => _r,
734
- errorBarCenterIsNotNeeded: () => br,
735
- errorBarCenterIsUsedWithWrongExtent: () => vr,
736
- errorBarContinuousAxisHasCustomizedAggregate: () => yr,
737
- facetChannelDropped: () => Hn,
738
- facetChannelShouldBeDiscrete: () => Vn,
739
- incompatibleChannel: () => zn,
740
- independentScaleMeansIndependentGuide: () => or,
741
- invalidAggregate: () => Nn,
742
- invalidEncodingChannel: () => Bn,
743
- invalidFieldType: () => An,
744
- invalidFieldTypeForCountAggregate: () => Mn,
745
- invalidTimeUnit: () => mr,
746
- invalidTransformIgnored: () => Tn,
747
- latLongDeprecated: () => Ln,
748
- lineWithRange: () => Gn,
749
- mergeConflictingDomainProperty: () => ar,
750
- mergeConflictingProperty: () => ir,
751
- missingFieldType: () => Pn,
752
- nearestNotSupportForContinuous: () => mn,
753
- noSuchRepeatedValue: () => yn,
754
- nonZeroScaleUsedWithLengthMark: () => jn,
755
- orientOverridden: () => Kn,
756
- primitiveChannelDef: () => kn,
757
- projectionOverridden: () => On,
758
- rangeStepDropped: () => $n,
759
- scalePropertyNotWorkWithScaleType: () => nr,
760
- scaleTypeNotWorkWithChannel: () => er,
761
- scaleTypeNotWorkWithFieldDef: () => tr,
762
- scaleTypeNotWorkWithMark: () => rr,
763
- selectionNotFound: () => gn,
764
- selectionNotSupported: () => hn,
765
- stackNonSummativeAggregate: () => pr,
766
- unaggregateDomainHasNoEffectForRawField: () => Yn,
767
- unaggregateDomainWithNonSharedDomainOp: () => Xn,
768
- unaggregatedDomainWithLogScale: () => Zn,
769
- unrecognizedParse: () => Cn
770
- }), un = "Invalid spec", dn = "Autosize \"fit\" only works for single views and layered views.", fn = "Cannot use a fixed value of \"rangeStep\" when \"autosize\" is \"fit\".";
771
- function pn(e) {
701
+ var cn = /* @__PURE__ */ r({
702
+ BAR_WITH_POINT_SCALE_AND_RANGESTEP_NULL: () => Un,
703
+ CANNOT_FIX_RANGE_STEP_WITH_FIT: () => dn,
704
+ CANNOT_UNION_CUSTOM_DOMAIN_WITH_FIELD_DOMAIN: () => Kn,
705
+ CONCAT_CANNOT_SHARE_AXIS: () => bn,
706
+ FIT_NON_SINGLE: () => un,
707
+ INVALID_CHANNEL_FOR_AXIS: () => lr,
708
+ INVALID_SPEC: () => ln,
709
+ LINE_WITH_VARYING_SIZE: () => Ln,
710
+ MORE_THAN_ONE_SORT: () => cr,
711
+ NO_FIELDS_NEEDS_AS: () => Tn,
712
+ NO_INIT_SCALE_BINDINGS: () => _n,
713
+ REPEAT_CANNOT_SHARE_AXIS: () => xn,
714
+ SCALE_BINDINGS_CONTINUOUS: () => gn,
715
+ UNABLE_TO_MERGE_DOMAINS: () => sr,
716
+ cannotApplySizeToNonOrientedMark: () => Zn,
717
+ cannotProjectOnChannelWithoutField: () => fn,
718
+ cannotStackNonLinearScale: () => dr,
719
+ cannotStackRangedMark: () => ur,
720
+ cannotUseScalePropertyWithNonColor: () => qn,
721
+ channelRequiredForBinned: () => xr,
722
+ columnsNotSupportByRowCol: () => yn,
723
+ dayReplacedWithDate: () => mr,
724
+ differentParse: () => Cn,
725
+ discreteChannelCannotEncode: () => Hn,
726
+ domainRequiredForThresholdScale: () => Sr,
727
+ domainSortDropped: () => or,
728
+ droppedDay: () => hr,
729
+ droppingColor: () => Pn,
730
+ emptyFieldDef: () => Fn,
731
+ encodingOverridden: () => En,
732
+ errorBand1DNotSupport: () => br,
733
+ errorBarCenterAndExtentAreNotNeeded: () => gr,
734
+ errorBarCenterIsNotNeeded: () => yr,
735
+ errorBarCenterIsUsedWithWrongExtent: () => _r,
736
+ errorBarContinuousAxisHasCustomizedAggregate: () => vr,
737
+ facetChannelDropped: () => Vn,
738
+ facetChannelShouldBeDiscrete: () => Bn,
739
+ incompatibleChannel: () => Rn,
740
+ independentScaleMeansIndependentGuide: () => ar,
741
+ invalidAggregate: () => Mn,
742
+ invalidEncodingChannel: () => zn,
743
+ invalidFieldType: () => kn,
744
+ invalidFieldTypeForCountAggregate: () => jn,
745
+ invalidTimeUnit: () => pr,
746
+ invalidTransformIgnored: () => wn,
747
+ latLongDeprecated: () => In,
748
+ lineWithRange: () => Wn,
749
+ mergeConflictingDomainProperty: () => ir,
750
+ mergeConflictingProperty: () => rr,
751
+ missingFieldType: () => Nn,
752
+ nearestNotSupportForContinuous: () => pn,
753
+ noSuchRepeatedValue: () => vn,
754
+ nonZeroScaleUsedWithLengthMark: () => An,
755
+ orientOverridden: () => Gn,
756
+ primitiveChannelDef: () => On,
757
+ projectionOverridden: () => Dn,
758
+ rangeStepDropped: () => Qn,
759
+ scalePropertyNotWorkWithScaleType: () => tr,
760
+ scaleTypeNotWorkWithChannel: () => $n,
761
+ scaleTypeNotWorkWithFieldDef: () => er,
762
+ scaleTypeNotWorkWithMark: () => nr,
763
+ selectionNotFound: () => hn,
764
+ selectionNotSupported: () => mn,
765
+ stackNonSummativeAggregate: () => fr,
766
+ unaggregateDomainHasNoEffectForRawField: () => Jn,
767
+ unaggregateDomainWithNonSharedDomainOp: () => Yn,
768
+ unaggregatedDomainWithLogScale: () => Xn,
769
+ unrecognizedParse: () => Sn
770
+ }), ln = "Invalid spec", un = "Autosize \"fit\" only works for single views and layered views.", dn = "Cannot use a fixed value of \"rangeStep\" when \"autosize\" is \"fit\".";
771
+ function fn(e) {
772
772
  return `Cannot project a selection on encoding channel "${e}", which has no field.`;
773
773
  }
774
- function mn(e) {
774
+ function pn(e) {
775
775
  return `The "nearest" transform is not supported for ${e} marks.`;
776
776
  }
777
- function hn(e) {
777
+ function mn(e) {
778
778
  return `Selection not supported for ${e} yet`;
779
779
  }
780
- function gn(e) {
780
+ function hn(e) {
781
781
  return `Cannot find a selection named "${e}"`;
782
782
  }
783
- var _n = "Scale bindings are currently only supported for scales with unbinned, continuous domains.", vn = "Selections bound to scales cannot be separately initialized.";
784
- function yn(e) {
783
+ var gn = "Scale bindings are currently only supported for scales with unbinned, continuous domains.", _n = "Selections bound to scales cannot be separately initialized.";
784
+ function vn(e) {
785
785
  return `Unknown repeated value "${e}".`;
786
786
  }
787
- function bn(e) {
787
+ function yn(e) {
788
788
  return `The "columns" property cannot be used when "${e}" has nested row/column.`;
789
789
  }
790
- var xn = "Axes cannot be shared in concatenated views yet (https://github.com/vega/vega-lite/issues/2415).", Sn = "Axes cannot be shared in repeated views yet (https://github.com/vega/vega-lite/issues/2415).";
791
- function Cn(e) {
790
+ var bn = "Axes cannot be shared in concatenated views yet (https://github.com/vega/vega-lite/issues/2415).", xn = "Axes cannot be shared in repeated views yet (https://github.com/vega/vega-lite/issues/2415).";
791
+ function Sn(e) {
792
792
  return `Unrecognized parse "${e}".`;
793
793
  }
794
- function wn(e, t, n) {
794
+ function Cn(e, t, n) {
795
795
  return `An ancestor parsed field "${e}" as ${n} but a child wants to parse the field as ${t}.`;
796
796
  }
797
- function Tn(e) {
798
- return `Ignoring an invalid transform: ${k(e)}.`;
797
+ function wn(e) {
798
+ return `Ignoring an invalid transform: ${A(e)}.`;
799
799
  }
800
- var En = "If \"from.fields\" is not specified, \"as\" has to be a string that specifies the key to be used for the data from the secondary source.";
801
- function Dn(e) {
800
+ var Tn = "If \"from.fields\" is not specified, \"as\" has to be a string that specifies the key to be used for the data from the secondary source.";
801
+ function En(e) {
802
802
  return `Layer's shared ${e.join(",")} channel ${e.length === 1 ? "is" : "are"} overriden`;
803
803
  }
804
- function On(e) {
804
+ function Dn(e) {
805
805
  let { parentProjection: t, projection: n } = e;
806
- return `Layer's shared projection ${k(t)} is overridden by a child projection ${k(n)}.`;
806
+ return `Layer's shared projection ${A(t)} is overridden by a child projection ${A(n)}.`;
807
807
  }
808
- function kn(e, t, n) {
809
- return `Channel ${e} is a ${t}. Converted to {value: ${k(n)}}.`;
808
+ function On(e, t, n) {
809
+ return `Channel ${e} is a ${t}. Converted to {value: ${A(n)}}.`;
810
810
  }
811
- function An(e) {
811
+ function kn(e) {
812
812
  return `Invalid field type "${e}"`;
813
813
  }
814
- function jn(e, t, n) {
814
+ function An(e, t, n) {
815
815
  return `A ${n.scaleType ? `${n.scaleType} scale` : n.zeroFalse ? "scale with zero=false" : "scale with custom domain that excludes zero"} is used to encode ${e}'s ${t}. This can be misleading as the ${t === "x" ? "width" : "height"} of the ${e} can be arbitrary based on the scale domain. You may want to use point mark instead.`;
816
816
  }
817
- function Mn(e, t) {
817
+ function jn(e, t) {
818
818
  return `Invalid field type "${e}" for aggregate: "${t}", using "quantitative" instead.`;
819
819
  }
820
- function Nn(e) {
820
+ function Mn(e) {
821
821
  return `Invalid aggregation operator "${e}"`;
822
822
  }
823
- function Pn(e, t) {
823
+ function Nn(e, t) {
824
824
  return `Missing type for channel "${e}", using "${t}" instead.`;
825
825
  }
826
- function Fn(e, t) {
826
+ function Pn(e, t) {
827
827
  let { fill: n, stroke: r } = t;
828
828
  return `Dropping color ${e} as the plot also has ` + (n && r ? "fill and stroke" : n ? "fill" : "stroke");
829
829
  }
830
- function In(e, t) {
831
- return `Dropping ${k(e)} from channel "${t}" since it does not contain data field or value.`;
830
+ function Fn(e, t) {
831
+ return `Dropping ${A(e)} from channel "${t}" since it does not contain data field or value.`;
832
832
  }
833
- function Ln(e, t, n) {
833
+ function In(e, t, n) {
834
834
  return `${e}-encoding with type ${t} is deprecated. Replacing with ${n}-encoding.`;
835
835
  }
836
- var Rn = "Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.";
837
- function zn(e, t, n) {
836
+ var Ln = "Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.";
837
+ function Rn(e, t, n) {
838
838
  return `${e} dropped as it is incompatible with "${t}"${n ? ` when ${n}` : ""}.`;
839
839
  }
840
- function Bn(e) {
840
+ function zn(e) {
841
841
  return `${e}-encoding is dropped as ${e} is not a valid encoding channel.`;
842
842
  }
843
- function Vn(e) {
843
+ function Bn(e) {
844
844
  return `${e} encoding should be discrete (ordinal / nominal / binned).`;
845
845
  }
846
- function Hn(e) {
846
+ function Vn(e) {
847
847
  return `Facet encoding dropped as ${e.join(" and ")} ${e.length > 1 ? "are" : "is"} also specified.`;
848
848
  }
849
- function Un(e, t) {
849
+ function Hn(e, t) {
850
850
  return `Using discrete channel "${e}" to encode "${t}" field can be misleading as it does not encode ${t === "ordinal" ? "order" : "magnitude"}.`;
851
851
  }
852
- var Wn = "Bar mark should not be used with point scale when rangeStep is null. Please use band scale instead.";
853
- function Gn(e, t) {
852
+ var Un = "Bar mark should not be used with point scale when rangeStep is null. Please use band scale instead.";
853
+ function Wn(e, t) {
854
854
  return `Line mark is for continuous lines and thus cannot be used with ${e && t ? "x2 and y2" : e ? "x2" : "y2"}. We will use the rule mark (line segments) instead.`;
855
855
  }
856
- function Kn(e, t) {
856
+ function Gn(e, t) {
857
857
  return `Specified orient "${e}" overridden with "${t}"`;
858
858
  }
859
- var qn = "custom domain scale cannot be unioned with default field-based domain";
860
- function Jn(e) {
859
+ var Kn = "custom domain scale cannot be unioned with default field-based domain";
860
+ function qn(e) {
861
861
  return `Cannot use the scale property "${e}" with non-color channel.`;
862
862
  }
863
+ function Jn(e) {
864
+ return `Using unaggregated domain with raw field has no effect (${A(e)}).`;
865
+ }
863
866
  function Yn(e) {
864
- return `Using unaggregated domain with raw field has no effect (${k(e)}).`;
867
+ return `Unaggregated domain not applicable for "${e}" since it produces values outside the origin domain of the source data.`;
865
868
  }
866
869
  function Xn(e) {
867
- return `Unaggregated domain not applicable for "${e}" since it produces values outside the origin domain of the source data.`;
870
+ return `Unaggregated domain is currently unsupported for log scale (${A(e)}).`;
868
871
  }
869
872
  function Zn(e) {
870
- return `Unaggregated domain is currently unsupported for log scale (${k(e)}).`;
871
- }
872
- function Qn(e) {
873
873
  return `Cannot apply size to non-oriented mark "${e}".`;
874
874
  }
875
- function $n(e) {
875
+ function Qn(e) {
876
876
  return `rangeStep for "${e}" is dropped as top-level ${e === "x" ? "width" : "height"} is provided.`;
877
877
  }
878
- function er(e, t, n) {
878
+ function $n(e, t, n) {
879
879
  return `Channel "${e}" does not work with "${t}" scale. We are using "${n}" scale instead.`;
880
880
  }
881
- function tr(e, t) {
881
+ function er(e, t) {
882
882
  return `FieldDef does not work with "${e}" scale. We are using "${t}" scale instead.`;
883
883
  }
884
- function nr(e, t, n) {
884
+ function tr(e, t, n) {
885
885
  return `${n}-scale's "${t}" is dropped as it does not work with ${e} scale.`;
886
886
  }
887
- function rr(e, t) {
887
+ function nr(e, t) {
888
888
  return `Scale type "${t}" does not work with mark "${e}".`;
889
889
  }
890
- function ir(e, t, n, r) {
891
- return `Conflicting ${t.toString()} property "${e.toString()}" (${k(n)} and ${k(r)}). Using ${k(n)}.`;
890
+ function rr(e, t, n, r) {
891
+ return `Conflicting ${t.toString()} property "${e.toString()}" (${A(n)} and ${A(r)}). Using ${A(n)}.`;
892
892
  }
893
- function ar(e, t, n, r) {
894
- return `Conflicting ${t.toString()} property "${e.toString()}" (${k(n)} and ${k(r)}). Using the union of the two domains.`;
893
+ function ir(e, t, n, r) {
894
+ return `Conflicting ${t.toString()} property "${e.toString()}" (${A(n)} and ${A(r)}). Using the union of the two domains.`;
895
895
  }
896
- function or(e) {
896
+ function ar(e) {
897
897
  return `Setting the scale to be independent for "${e}" means we also have to set the guide (axis or legend) to be independent.`;
898
898
  }
899
- function sr(e) {
900
- return `Dropping sort property ${k(e)} as unioned domains only support boolean or op 'count'.`;
899
+ function or(e) {
900
+ return `Dropping sort property ${A(e)} as unioned domains only support boolean or op 'count'.`;
901
901
  }
902
- var cr = "Unable to merge domains", lr = "Domains that should be unioned has conflicting sort properties. Sort will be set to true.", ur = "Invalid channel for axis.";
903
- function dr(e) {
902
+ var sr = "Unable to merge domains", cr = "Domains that should be unioned has conflicting sort properties. Sort will be set to true.", lr = "Invalid channel for axis.";
903
+ function ur(e) {
904
904
  return `Cannot stack "${e}" if there is already "${e}2"`;
905
905
  }
906
- function fr(e) {
906
+ function dr(e) {
907
907
  return `Cannot stack non-linear scale (${e})`;
908
908
  }
909
- function pr(e) {
909
+ function fr(e) {
910
910
  return `Stacking is applied even though the aggregate function is non-summative ("${e}")`;
911
911
  }
912
- function mr(e, t) {
913
- return `Invalid ${e}: ${k(t)}`;
912
+ function pr(e, t) {
913
+ return `Invalid ${e}: ${A(t)}`;
914
914
  }
915
- function hr(e) {
915
+ function mr(e) {
916
916
  return `Time unit "${e}" is not supported. We are replacing it with ${e.replace("day", "date")}.`;
917
917
  }
918
- function gr(e) {
919
- return `Dropping day from datetime ${k(e)} as day cannot be combined with other units.`;
918
+ function hr(e) {
919
+ return `Dropping day from datetime ${A(e)} as day cannot be combined with other units.`;
920
920
  }
921
- function _r(e, t) {
921
+ function gr(e, t) {
922
922
  return `${t ? "extent " : ""}${t && e ? "and " : ""}${e ? "center " : ""}${t && e ? "are " : "is "}not needed when data are aggregated.`;
923
923
  }
924
- function vr(e, t, n) {
924
+ function _r(e, t, n) {
925
925
  return `${e} is not usually used with ${t} for ${n}.`;
926
926
  }
927
- function yr(e, t) {
927
+ function vr(e, t) {
928
928
  return `Continuous axis should not have customized aggregation function ${e}; ${t} already agregates the axis.`;
929
929
  }
930
- function br(e, t) {
930
+ function yr(e, t) {
931
931
  return `Center is not needed to be specified in ${t} when extent is ${e}.`;
932
932
  }
933
- function xr(e) {
933
+ function br(e) {
934
934
  return `1D error band does not support ${e}`;
935
935
  }
936
- function Sr(e) {
936
+ function xr(e) {
937
937
  return `Channel ${e} is required for "binned" bin`;
938
938
  }
939
- function Cr(e) {
939
+ function Sr(e) {
940
940
  return `Domain for ${e} is required for threshold scale`;
941
941
  }
942
942
  //#endregion
943
943
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/log/index.js
944
- var M = ln, wr = Re(2);
945
- function Tr(...e) {
946
- wr.warn.apply(wr, arguments);
944
+ var N = cn, Cr = Le(2);
945
+ function wr(...e) {
946
+ Cr.warn.apply(Cr, arguments);
947
947
  }
948
948
  //#endregion
949
949
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/type.js
950
- var Er = {
950
+ var Tr = {
951
951
  quantitative: 1,
952
952
  ordinal: 1,
953
953
  temporal: 1,
954
954
  nominal: 1,
955
955
  geojson: 1
956
- }, N = "quantitative", Dr = "ordinal", Or = "temporal", kr = "nominal", Ar = "geojson";
957
- function jr(e) {
956
+ }, P = "quantitative", Er = "ordinal", Dr = "temporal", Or = "nominal", kr = "geojson";
957
+ function Ar(e) {
958
958
  if (e) switch (e = e.toLowerCase(), e) {
959
959
  case "q":
960
- case N: return "quantitative";
960
+ case P: return "quantitative";
961
961
  case "t":
962
- case Or: return "temporal";
962
+ case Dr: return "temporal";
963
963
  case "o":
964
- case Dr: return "ordinal";
964
+ case Er: return "ordinal";
965
965
  case "n":
966
- case kr: return "nominal";
967
- case Ar: return "geojson";
966
+ case Or: return "nominal";
967
+ case kr: return "geojson";
968
968
  }
969
969
  }
970
970
  //#endregion
971
971
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/scale.js
972
- var P;
972
+ var F;
973
973
  (function(e) {
974
974
  e.LINEAR = "linear", e.LOG = "log", e.POW = "pow", e.SQRT = "sqrt", e.SYMLOG = "symlog", e.TIME = "time", e.UTC = "utc", e.QUANTILE = "quantile", e.QUANTIZE = "quantize", e.THRESHOLD = "threshold", e.BIN_ORDINAL = "bin-ordinal", e.ORDINAL = "ordinal", e.POINT = "point", e.BAND = "band";
975
- })(P ||= {});
976
- var Mr = j({
975
+ })(F ||= {});
976
+ var jr = M({
977
977
  linear: "numeric",
978
978
  log: "numeric",
979
979
  pow: "numeric",
@@ -988,7 +988,7 @@ var Mr = j({
988
988
  quantile: "discretizing",
989
989
  quantize: "discretizing",
990
990
  threshold: "discretizing"
991
- }), Nr = [
991
+ }), Mr = [
992
992
  "linear",
993
993
  "log",
994
994
  "pow",
@@ -996,33 +996,33 @@ var Mr = j({
996
996
  "symlog",
997
997
  "time",
998
998
  "utc"
999
- ], Pr = Be(Nr), Fr = Be([
999
+ ], Nr = ze(Mr), Pr = ze([
1000
1000
  "quantile",
1001
1001
  "quantize",
1002
1002
  "threshold"
1003
- ]), Ir = Be(Nr.concat([
1003
+ ]), Fr = ze(Mr.concat([
1004
1004
  "quantile",
1005
1005
  "quantize",
1006
1006
  "threshold"
1007
- ])), Lr = Be([
1007
+ ])), Ir = ze([
1008
1008
  "ordinal",
1009
1009
  "bin-ordinal",
1010
1010
  "point",
1011
1011
  "band"
1012
1012
  ]);
1013
+ function Lr(e) {
1014
+ return e in Ir;
1015
+ }
1013
1016
  function Rr(e) {
1014
- return e in Lr;
1017
+ return e in Fr;
1015
1018
  }
1016
1019
  function zr(e) {
1017
- return e in Ir;
1020
+ return e in Nr;
1018
1021
  }
1019
1022
  function Br(e) {
1020
1023
  return e in Pr;
1021
1024
  }
1022
- function Vr(e) {
1023
- return e in Fr;
1024
- }
1025
- var Hr = {
1025
+ var Vr = {
1026
1026
  type: 1,
1027
1027
  domain: 1,
1028
1028
  align: 1,
@@ -1042,44 +1042,44 @@ var Hr = {
1042
1042
  padding: 1,
1043
1043
  paddingInner: 1,
1044
1044
  paddingOuter: 1
1045
- }, Ur = j(Hr), { type: Wr, domain: Gr, range: Kr, rangeStep: qr, scheme: Jr } = Hr;
1046
- j(Ce(Hr, [
1045
+ }, Hr = M(Vr), { type: Ur, domain: Wr, range: Gr, rangeStep: Kr, scheme: qr } = Vr;
1046
+ M(Se(Vr, [
1047
1047
  "type",
1048
1048
  "domain",
1049
1049
  "range",
1050
1050
  "rangeStep",
1051
1051
  "scheme"
1052
- ])), $r();
1053
- function Yr(e, t) {
1052
+ ])), Qr();
1053
+ function Jr(e, t) {
1054
1054
  switch (t) {
1055
1055
  case "type":
1056
1056
  case "domain":
1057
1057
  case "reverse":
1058
1058
  case "range": return !0;
1059
1059
  case "scheme":
1060
- case "interpolate": return !A([
1060
+ case "interpolate": return !j([
1061
1061
  "point",
1062
1062
  "band",
1063
1063
  "identity"
1064
1064
  ], e);
1065
- case "bins": return !A([
1065
+ case "bins": return !j([
1066
1066
  "point",
1067
1067
  "band",
1068
1068
  "identity",
1069
1069
  "ordinal"
1070
1070
  ], e);
1071
- case "round": return Br(e) || e === "band" || e === "point";
1072
- case "padding": return Br(e) || A(["point", "band"], e);
1071
+ case "round": return zr(e) || e === "band" || e === "point";
1072
+ case "padding": return zr(e) || j(["point", "band"], e);
1073
1073
  case "paddingOuter":
1074
1074
  case "rangeStep":
1075
- case "align": return A(["point", "band"], e);
1075
+ case "align": return j(["point", "band"], e);
1076
1076
  case "paddingInner": return e === "band";
1077
- case "clamp": return Br(e);
1078
- case "nice": return Br(e) || e === "quantize" || e === "threshold";
1077
+ case "clamp": return zr(e);
1078
+ case "nice": return zr(e) || e === "quantize" || e === "threshold";
1079
1079
  case "exponent": return e === "pow";
1080
1080
  case "base": return e === "log";
1081
1081
  case "constant": return e === "symlog";
1082
- case "zero": return zr(e) && !A([
1082
+ case "zero": return Rr(e) && !j([
1083
1083
  "log",
1084
1084
  "time",
1085
1085
  "utc",
@@ -1088,10 +1088,10 @@ function Yr(e, t) {
1088
1088
  ], e);
1089
1089
  }
1090
1090
  }
1091
- function Xr(e, t) {
1091
+ function Yr(e, t) {
1092
1092
  switch (t) {
1093
1093
  case "interpolate":
1094
- case "scheme": return _t(e) ? void 0 : M.cannotUseScalePropertyWithNonColor(e);
1094
+ case "scheme": return gt(e) ? void 0 : N.cannotUseScalePropertyWithNonColor(e);
1095
1095
  case "align":
1096
1096
  case "type":
1097
1097
  case "bins":
@@ -1111,54 +1111,54 @@ function Xr(e, t) {
1111
1111
  case "zero": return;
1112
1112
  }
1113
1113
  }
1114
- function Zr(e, t) {
1115
- return A(["ordinal", "nominal"], t) ? e === void 0 || Rr(e) : t === "temporal" ? A([
1116
- P.TIME,
1117
- P.UTC,
1114
+ function Xr(e, t) {
1115
+ return j(["ordinal", "nominal"], t) ? e === void 0 || Lr(e) : t === "temporal" ? j([
1116
+ F.TIME,
1117
+ F.UTC,
1118
1118
  void 0
1119
- ], e) : t !== "quantitative" || A([
1120
- P.LOG,
1121
- P.POW,
1122
- P.SQRT,
1123
- P.SYMLOG,
1124
- P.QUANTILE,
1125
- P.QUANTIZE,
1126
- P.THRESHOLD,
1127
- P.LINEAR,
1119
+ ], e) : t !== "quantitative" || j([
1120
+ F.LOG,
1121
+ F.POW,
1122
+ F.SQRT,
1123
+ F.SYMLOG,
1124
+ F.QUANTILE,
1125
+ F.QUANTIZE,
1126
+ F.THRESHOLD,
1127
+ F.LINEAR,
1128
1128
  void 0
1129
1129
  ], e);
1130
1130
  }
1131
- function Qr(e, t) {
1131
+ function Zr(e, t) {
1132
1132
  switch (e) {
1133
1133
  case "x":
1134
- case "y": return Br(t) || A(["band", "point"], t);
1134
+ case "y": return zr(t) || j(["band", "point"], t);
1135
+ case rt:
1136
+ case st:
1135
1137
  case it:
1136
- case ct:
1137
1138
  case at:
1138
- case ot:
1139
- case st: return Br(t) || Vr(t) || A(["band", "point"], t);
1139
+ case ot: return zr(t) || Br(t) || j(["band", "point"], t);
1140
+ case $e:
1140
1141
  case et:
1141
- case tt:
1142
- case nt: return t !== "band";
1143
- case rt: return t === "ordinal";
1142
+ case tt: return t !== "band";
1143
+ case nt: return t === "ordinal";
1144
1144
  }
1145
1145
  /* istanbul ignore next: it should never reach here */
1146
1146
  return !1;
1147
1147
  }
1148
- function $r() {
1148
+ function Qr() {
1149
1149
  let e = {};
1150
- for (let t of bt) for (let n of j(Er)) for (let r of Mr) {
1151
- let i = ei(t, n);
1152
- Qr(t, r) && Zr(r, n) && (e[i] = e[i] || [], e[i].push(r));
1150
+ for (let t of yt) for (let n of M(Tr)) for (let r of jr) {
1151
+ let i = $r(t, n);
1152
+ Zr(t, r) && Xr(r, n) && (e[i] = e[i] || [], e[i].push(r));
1153
1153
  }
1154
1154
  return e;
1155
1155
  }
1156
- function ei(e, t) {
1156
+ function $r(e, t) {
1157
1157
  return e + "_" + t;
1158
1158
  }
1159
1159
  //#endregion
1160
1160
  //#region ../node_modules/.pnpm/datalib@1.7.3/node_modules/datalib/src/util.js
1161
- var ti = /* @__PURE__ */ i(((e, t) => {
1161
+ var ei = /* @__PURE__ */ i(((e, t) => {
1162
1162
  var n = t.exports, r = "__name__";
1163
1163
  n.namedfunc = function(e, t) {
1164
1164
  return t[r] = e, t;
@@ -1319,37 +1319,37 @@ var ti = /* @__PURE__ */ i(((e, t) => {
1319
1319
  }), e.length ? e.join("").trim() : i[0].slice(0, t);
1320
1320
  }
1321
1321
  var c = /([\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u2028\u2029\u3000\uFEFF])/;
1322
- })), F = ti();
1323
- function I(e, t) {
1322
+ })), I = ei();
1323
+ function L(e, t) {
1324
1324
  return e.indexOf(t) !== -1;
1325
1325
  }
1326
- function ni(e, t) {
1326
+ function ti(e, t) {
1327
1327
  for (let n = 0; n < e.length; n++) if (!t(e[n], n)) return !1;
1328
1328
  return !0;
1329
1329
  }
1330
- function L(e, t, n) {
1330
+ function R(e, t, n) {
1331
1331
  if (e.forEach) e.forEach.call(n, t);
1332
1332
  else for (let r in e) t.call(n, e[r], r, e);
1333
1333
  }
1334
- function ri(e, t) {
1334
+ function ni(e, t) {
1335
1335
  let n = 0, r;
1336
1336
  for (r in e) if (t(e[r], r, n++)) return !0;
1337
1337
  return !1;
1338
1338
  }
1339
- function ii(e, t) {
1339
+ function ri(e, t) {
1340
1340
  return e.filter(function(e) {
1341
- return !I(t, e);
1341
+ return !L(t, e);
1342
1342
  });
1343
1343
  }
1344
- function ai(e) {
1344
+ function ii(e) {
1345
1345
  return Object.keys(e);
1346
1346
  }
1347
1347
  //#endregion
1348
1348
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/property.js
1349
- function oi(e) {
1349
+ function ai(e) {
1350
1350
  return !!e.parent;
1351
1351
  }
1352
- var si = {
1352
+ var oi = {
1353
1353
  channel: 1,
1354
1354
  aggregate: 1,
1355
1355
  autoCount: 1,
@@ -1365,21 +1365,21 @@ var si = {
1365
1365
  axis: 1,
1366
1366
  legend: 1,
1367
1367
  value: 1
1368
- }, ci = ai(si);
1369
- function li(e) {
1370
- return e in si;
1368
+ }, si = ii(oi);
1369
+ function ci(e) {
1370
+ return e in oi;
1371
1371
  }
1372
- var ui = {
1372
+ var li = {
1373
1373
  bin: 1,
1374
1374
  scale: 1,
1375
1375
  sort: 1,
1376
1376
  axis: 1,
1377
1377
  legend: 1
1378
1378
  };
1379
- function di(e) {
1380
- return ui[e];
1379
+ function ui(e) {
1380
+ return li[e];
1381
1381
  }
1382
- var fi = [
1382
+ var di = [
1383
1383
  "maxbins",
1384
1384
  "divide",
1385
1385
  "extent",
@@ -1387,37 +1387,37 @@ var fi = [
1387
1387
  "step",
1388
1388
  "steps",
1389
1389
  "minstep"
1390
- ], pi = [
1390
+ ], fi = [
1391
1391
  "field",
1392
1392
  "op",
1393
1393
  "order"
1394
- ], mi = fi.map((e) => ({
1394
+ ], pi = di.map((e) => ({
1395
1395
  parent: "bin",
1396
1396
  child: e
1397
- })), hi = pi.map((e) => ({
1397
+ })), mi = fi.map((e) => ({
1398
1398
  parent: "sort",
1399
1399
  child: e
1400
- })), gi = Ur.map((e) => ({
1400
+ })), hi = Hr.map((e) => ({
1401
1401
  parent: "scale",
1402
1402
  child: e
1403
- })), _i = an.map((e) => ({
1403
+ })), gi = rn.map((e) => ({
1404
1404
  parent: "axis",
1405
1405
  child: e
1406
- })), vi = cn.map((e) => ({
1406
+ })), _i = sn.map((e) => ({
1407
1407
  parent: "legend",
1408
1408
  child: e
1409
- })), yi = [].concat(mi, hi, gi, _i, vi), bi = [
1409
+ })), vi = [].concat(pi, mi, hi, gi, _i), yi = [
1410
1410
  "width",
1411
1411
  "height",
1412
1412
  "background",
1413
1413
  "padding",
1414
1414
  "title"
1415
- ], xi = ".";
1416
- function Si(e) {
1417
- return oi(e) ? e.parent + xi + e.child : e;
1415
+ ], bi = ".";
1416
+ function xi(e) {
1417
+ return ai(e) ? e.parent + bi + e.child : e;
1418
1418
  }
1419
- function Ci(e) {
1420
- let t = e.split(xi);
1419
+ function Si(e) {
1420
+ let t = e.split(bi);
1421
1421
  /* istanbul ignore else */
1422
1422
  if (t.length === 1) return e;
1423
1423
  if (t.length === 2) return {
@@ -1426,14 +1426,14 @@ function Ci(e) {
1426
1426
  };
1427
1427
  throw "Invalid property key with " + t.length + " dots: " + e;
1428
1428
  }
1429
- var wi = yi.reduce((e, t) => (e[t.parent] = e[t.parent] || [], e[t.parent][t.child] = t, e), {});
1430
- function Ti(e, t) {
1431
- return (wi[e] || {})[t];
1429
+ var Ci = vi.reduce((e, t) => (e[t.parent] = e[t.parent] || [], e[t.parent][t.child] = t, e), {});
1430
+ function wi(e, t) {
1431
+ return (Ci[e] || {})[t];
1432
1432
  }
1433
- function Ei(e) {
1434
- return li(e) || oi(e);
1433
+ function Ti(e) {
1434
+ return ci(e) || ai(e);
1435
1435
  }
1436
- var Di = [].concat(ci, yi), Oi = [
1436
+ var Ei = [].concat(si, vi), Di = [
1437
1437
  "type",
1438
1438
  "field",
1439
1439
  "bin",
@@ -1447,13 +1447,13 @@ var Di = [].concat(ci, yi), Oi = [
1447
1447
  "sort",
1448
1448
  "axis",
1449
1449
  "legend"
1450
- ].concat(mi, gi, _i, vi, hi), R;
1450
+ ].concat(pi, hi, gi, _i, mi), z;
1451
1451
  (function(e) {
1452
1452
  e.MARK = "mark", e.TRANSFORM = "transform", e.STACK = "stack", e.FORMAT = "format", e.CHANNEL = "channel", e.AGGREGATE = "aggregate", e.AUTOCOUNT = "autoCount", e.BIN = "bin", e.HAS_FN = "hasFn", e.TIMEUNIT = "timeUnit", e.FIELD = "field", e.TYPE = "type", e.SORT = "sort", e.SCALE = "scale", e.AXIS = "axis", e.LEGEND = "legend", e.WIDTH = "width", e.HEIGHT = "height", e.BACKGROUND = "background", e.PADDING = "padding", e.TITLE = "title";
1453
- })(R ||= {});
1453
+ })(z ||= {});
1454
1454
  //#endregion
1455
1455
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/mark.js
1456
- var ki = "area", Ai = "line", ji = "point", Mi = "rect", Ni = "rule", Pi = "text", Fi = "tick", Ii = "circle", Li = "square", Ri = {
1456
+ var Oi = "area", ki = "line", Ai = "point", ji = "rect", Mi = "rule", Ni = "text", Pi = "tick", Fi = "circle", Ii = "square", Li = {
1457
1457
  area: 1,
1458
1458
  bar: 1,
1459
1459
  line: 1,
@@ -1467,18 +1467,18 @@ var ki = "area", Ai = "line", ji = "point", Mi = "rect", Ni = "rule", Pi = "text
1467
1467
  circle: 1,
1468
1468
  square: 1
1469
1469
  };
1470
- function zi(e) {
1471
- return A([
1470
+ function Ri(e) {
1471
+ return j([
1472
1472
  "line",
1473
1473
  "area",
1474
1474
  "trail"
1475
1475
  ], e);
1476
1476
  }
1477
- var Bi = j(Ri);
1478
- function Vi(e) {
1477
+ var zi = M(Li);
1478
+ function Bi(e) {
1479
1479
  return e.type;
1480
1480
  }
1481
- Be(Bi), [
1481
+ ze(zi), [
1482
1482
  "january",
1483
1483
  "february",
1484
1484
  "march",
@@ -1502,11 +1502,11 @@ Be(Bi), [
1502
1502
  ].map((e) => e.substr(0, 3));
1503
1503
  //#endregion
1504
1504
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/timeunit.js
1505
- var z;
1505
+ var B;
1506
1506
  (function(e) {
1507
1507
  e.YEAR = "year", e.MONTH = "month", e.DAY = "day", e.DATE = "date", e.HOURS = "hours", e.MINUTES = "minutes", e.SECONDS = "seconds", e.MILLISECONDS = "milliseconds", e.YEARMONTH = "yearmonth", e.YEARMONTHDATE = "yearmonthdate", e.YEARMONTHDATEHOURS = "yearmonthdatehours", e.YEARMONTHDATEHOURSMINUTES = "yearmonthdatehoursminutes", e.YEARMONTHDATEHOURSMINUTESSECONDS = "yearmonthdatehoursminutesseconds", e.MONTHDATE = "monthdate", e.MONTHDATEHOURS = "monthdatehours", e.HOURSMINUTES = "hoursminutes", e.HOURSMINUTESSECONDS = "hoursminutesseconds", e.MINUTESSECONDS = "minutesseconds", e.SECONDSMILLISECONDS = "secondsmilliseconds", e.QUARTER = "quarter", e.YEARQUARTER = "yearquarter", e.QUARTERMONTH = "quartermonth", e.YEARQUARTERMONTH = "yearquartermonth", e.UTCYEAR = "utcyear", e.UTCMONTH = "utcmonth", e.UTCDAY = "utcday", e.UTCDATE = "utcdate", e.UTCHOURS = "utchours", e.UTCMINUTES = "utcminutes", e.UTCSECONDS = "utcseconds", e.UTCMILLISECONDS = "utcmilliseconds", e.UTCYEARMONTH = "utcyearmonth", e.UTCYEARMONTHDATE = "utcyearmonthdate", e.UTCYEARMONTHDATEHOURS = "utcyearmonthdatehours", e.UTCYEARMONTHDATEHOURSMINUTES = "utcyearmonthdatehoursminutes", e.UTCYEARMONTHDATEHOURSMINUTESSECONDS = "utcyearmonthdatehoursminutesseconds", e.UTCMONTHDATE = "utcmonthdate", e.UTCMONTHDATEHOURS = "utcmonthdatehours", e.UTCHOURSMINUTES = "utchoursminutes", e.UTCHOURSMINUTESSECONDS = "utchoursminutesseconds", e.UTCMINUTESSECONDS = "utcminutesseconds", e.UTCSECONDSMILLISECONDS = "utcsecondsmilliseconds", e.UTCQUARTER = "utcquarter", e.UTCYEARQUARTER = "utcyearquarter", e.UTCQUARTERMONTH = "utcquartermonth", e.UTCYEARQUARTERMONTH = "utcyearquartermonth";
1508
- })(z ||= {});
1509
- var Hi = {
1508
+ })(B ||= {});
1509
+ var Vi = {
1510
1510
  year: 1,
1511
1511
  quarter: 1,
1512
1512
  month: 1,
@@ -1516,11 +1516,11 @@ var Hi = {
1516
1516
  minutes: 1,
1517
1517
  seconds: 1,
1518
1518
  milliseconds: 1
1519
- }, Ui = j(Hi);
1520
- function Wi(e) {
1521
- return !!Hi[e];
1519
+ }, Hi = M(Vi);
1520
+ function Ui(e) {
1521
+ return !!Vi[e];
1522
1522
  }
1523
- var Gi = {
1523
+ var Wi = {
1524
1524
  utcyear: 1,
1525
1525
  utcquarter: 1,
1526
1526
  utcmonth: 1,
@@ -1531,10 +1531,10 @@ var Gi = {
1531
1531
  utcseconds: 1,
1532
1532
  utcmilliseconds: 1
1533
1533
  };
1534
- function Ki(e) {
1535
- return !!Gi[e];
1534
+ function Gi(e) {
1535
+ return !!Wi[e];
1536
1536
  }
1537
- var qi = {
1537
+ var Ki = {
1538
1538
  yearquarter: 1,
1539
1539
  yearquartermonth: 1,
1540
1540
  yearmonth: 1,
@@ -1549,7 +1549,7 @@ var qi = {
1549
1549
  hoursminutesseconds: 1,
1550
1550
  minutesseconds: 1,
1551
1551
  secondsmilliseconds: 1
1552
- }, Ji = {
1552
+ }, qi = {
1553
1553
  utcyearquarter: 1,
1554
1554
  utcyearquartermonth: 1,
1555
1555
  utcyearmonth: 1,
@@ -1564,16 +1564,16 @@ var qi = {
1564
1564
  utchoursminutesseconds: 1,
1565
1565
  utcminutesseconds: 1,
1566
1566
  utcsecondsmilliseconds: 1
1567
- }, Yi = Object.assign({}, Gi, Ji);
1568
- function Xi(e) {
1569
- return !!Yi[e];
1567
+ }, Ji = Object.assign({}, Wi, qi);
1568
+ function Yi(e) {
1569
+ return !!Ji[e];
1570
1570
  }
1571
- var Zi = Object.assign({}, Hi, Gi, qi, Ji);
1572
- j(Zi);
1573
- function Qi(e) {
1574
- return !!Zi[e];
1571
+ var Xi = Object.assign({}, Vi, Wi, Ki, qi);
1572
+ M(Xi);
1573
+ function Zi(e) {
1574
+ return !!Xi[e];
1575
1575
  }
1576
- var $i = {
1576
+ var Qi = {
1577
1577
  year: "setFullYear",
1578
1578
  month: "setMonth",
1579
1579
  date: "setDate",
@@ -1584,49 +1584,49 @@ var $i = {
1584
1584
  quarter: null,
1585
1585
  day: null
1586
1586
  };
1587
- function ea(e, t) {
1588
- let n = Xi(e), r = n ? new Date(Date.UTC(1972, 0, 1, 0, 0, 0, 0)) : new Date(1972, 0, 1, 0, 0, 0, 0);
1589
- for (let i of Ui) if (na(e, i)) switch (i) {
1590
- case z.DAY: throw Error("Cannot convert to TimeUnits containing 'day'");
1591
- case z.QUARTER: {
1592
- let { getDateMethod: e, setDateMethod: i } = ta("month", n);
1587
+ function $i(e, t) {
1588
+ let n = Yi(e), r = n ? new Date(Date.UTC(1972, 0, 1, 0, 0, 0, 0)) : new Date(1972, 0, 1, 0, 0, 0, 0);
1589
+ for (let i of Hi) if (ta(e, i)) switch (i) {
1590
+ case B.DAY: throw Error("Cannot convert to TimeUnits containing 'day'");
1591
+ case B.QUARTER: {
1592
+ let { getDateMethod: e, setDateMethod: i } = ea("month", n);
1593
1593
  r[i](Math.floor(t[e]() / 3) * 3);
1594
1594
  break;
1595
1595
  }
1596
1596
  default: {
1597
- let { getDateMethod: e, setDateMethod: a } = ta(i, n);
1597
+ let { getDateMethod: e, setDateMethod: a } = ea(i, n);
1598
1598
  r[a](t[e]());
1599
1599
  }
1600
1600
  }
1601
1601
  return r;
1602
1602
  }
1603
- function ta(e, t) {
1604
- let n = $i[e];
1603
+ function ea(e, t) {
1604
+ let n = Qi[e];
1605
1605
  return {
1606
1606
  setDateMethod: t ? "setUTC" + n.substr(3) : n,
1607
1607
  getDateMethod: "get" + (t ? "UTC" : "") + n.substr(3)
1608
1608
  };
1609
1609
  }
1610
- function na(e, t) {
1610
+ function ta(e, t) {
1611
1611
  let n = e.indexOf(t);
1612
- return n > -1 && (t !== z.SECONDS || n === 0 || e.charAt(n - 1) !== "i");
1612
+ return n > -1 && (t !== B.SECONDS || n === 0 || e.charAt(n - 1) !== "i");
1613
1613
  }
1614
- function B(e) {
1615
- return ra(e) || ia(e);
1614
+ function V(e) {
1615
+ return na(e) || ra(e);
1616
1616
  }
1617
- function ra(e) {
1617
+ function na(e) {
1618
1618
  return e === "?";
1619
1619
  }
1620
- function ia(e) {
1621
- return e !== void 0 && e != null && (!!e.enum || !!e.name) && !(0, F.isArray)(e);
1620
+ function ra(e) {
1621
+ return e !== void 0 && e != null && (!!e.enum || !!e.name) && !(0, I.isArray)(e);
1622
1622
  }
1623
- function aa(e, t, n) {
1624
- return (0, F.extend)({}, {
1623
+ function ia(e, t, n) {
1624
+ return (0, I.extend)({}, {
1625
1625
  name: t,
1626
1626
  enum: n
1627
1627
  }, e === "?" ? {} : e);
1628
1628
  }
1629
- function oa(e) {
1629
+ function aa(e) {
1630
1630
  let t = {}, n = {};
1631
1631
  for (let r of e) {
1632
1632
  let e = [0];
@@ -1650,7 +1650,7 @@ function oa(e) {
1650
1650
  }
1651
1651
  return t;
1652
1652
  }
1653
- var sa = {
1653
+ var oa = {
1654
1654
  mark: "m",
1655
1655
  channel: "c",
1656
1656
  aggregate: "a",
@@ -1682,17 +1682,17 @@ var sa = {
1682
1682
  op: "o",
1683
1683
  order: "or"
1684
1684
  },
1685
- scaleProps: oa(Ur),
1686
- axisProps: oa(an),
1687
- legendProps: oa(cn)
1685
+ scaleProps: aa(Hr),
1686
+ axisProps: aa(rn),
1687
+ legendProps: aa(sn)
1688
1688
  };
1689
- function ca(e) {
1690
- if (oi(e)) return sa[e.parent] + "-" + sa[e.parent + "Props"][e.child];
1691
- if (sa[e]) return sa[e];
1689
+ function sa(e) {
1690
+ if (ai(e)) return oa[e.parent] + "-" + oa[e.parent + "Props"][e.child];
1691
+ if (oa[e]) return oa[e];
1692
1692
  /* istanbul ignore next */
1693
1693
  throw Error("Default name undefined for " + e);
1694
1694
  }
1695
- var V = [!1, !0], la = {
1695
+ var H = [!1, !0], ca = {
1696
1696
  maxbins: [
1697
1697
  5,
1698
1698
  10,
@@ -1707,22 +1707,22 @@ var V = [!1, !0], la = {
1707
1707
  binned: [!1],
1708
1708
  anchor: [void 0],
1709
1709
  nice: [!0]
1710
- }, ua = {
1710
+ }, la = {
1711
1711
  field: [void 0],
1712
1712
  op: ["min", "mean"],
1713
1713
  order: ["ascending", "descending"]
1714
- }, da = {
1715
- type: [void 0, P.LOG],
1714
+ }, ua = {
1715
+ type: [void 0, F.LOG],
1716
1716
  domain: [void 0],
1717
1717
  base: [void 0],
1718
1718
  exponent: [1, 2],
1719
1719
  constant: [void 0],
1720
1720
  bins: [void 0],
1721
- clamp: V,
1722
- nice: V,
1723
- reverse: V,
1724
- round: V,
1725
- zero: V,
1721
+ clamp: H,
1722
+ nice: H,
1723
+ reverse: H,
1724
+ round: H,
1725
+ zero: H,
1726
1726
  padding: [void 0],
1727
1727
  paddingInner: [void 0],
1728
1728
  paddingOuter: [void 0],
@@ -1730,28 +1730,28 @@ var V = [!1, !0], la = {
1730
1730
  range: [void 0],
1731
1731
  rangeStep: [17, 21],
1732
1732
  scheme: [void 0]
1733
- }, fa = {
1733
+ }, da = {
1734
1734
  zindex: [1, 0],
1735
1735
  offset: [void 0],
1736
1736
  orient: [void 0],
1737
1737
  values: [void 0],
1738
1738
  bandPosition: [void 0],
1739
1739
  encoding: [void 0],
1740
- domain: V,
1740
+ domain: H,
1741
1741
  domainColor: [void 0],
1742
1742
  domainDash: [void 0],
1743
1743
  domainDashOffset: [void 0],
1744
1744
  domainOpacity: [void 0],
1745
1745
  domainWidth: [void 0],
1746
1746
  formatType: [void 0],
1747
- grid: V,
1747
+ grid: H,
1748
1748
  gridColor: [void 0],
1749
1749
  gridDash: [void 0],
1750
1750
  gridDashOffset: [void 0],
1751
1751
  gridOpacity: [void 0],
1752
1752
  gridWidth: [void 0],
1753
1753
  format: [void 0],
1754
- labels: V,
1754
+ labels: H,
1755
1755
  labelAlign: [void 0],
1756
1756
  labelAngle: [void 0],
1757
1757
  labelBaseline: [void 0],
@@ -1771,7 +1771,7 @@ var V = [!1, !0], la = {
1771
1771
  maxExtent: [void 0],
1772
1772
  minExtent: [void 0],
1773
1773
  position: [void 0],
1774
- ticks: V,
1774
+ ticks: H,
1775
1775
  tickColor: [void 0],
1776
1776
  tickCount: [void 0],
1777
1777
  tickDash: [void 0],
@@ -1798,41 +1798,41 @@ var V = [!1, !0], la = {
1798
1798
  titlePadding: [void 0],
1799
1799
  titleX: [void 0],
1800
1800
  titleY: [void 0]
1801
- }, pa = {
1801
+ }, fa = {
1802
1802
  mark: [
1803
- ji,
1804
- "bar",
1805
1803
  Ai,
1804
+ "bar",
1806
1805
  ki,
1807
- Mi,
1808
- Fi,
1809
- Pi
1806
+ Oi,
1807
+ ji,
1808
+ Pi,
1809
+ Ni
1810
1810
  ],
1811
1811
  channel: [
1812
1812
  "x",
1813
1813
  "y",
1814
1814
  "row",
1815
- Je,
1816
- it,
1817
- et
1815
+ qe,
1816
+ rt,
1817
+ $e
1818
1818
  ],
1819
1819
  aggregate: [void 0, "mean"],
1820
- autoCount: V,
1821
- bin: V,
1822
- hasFn: V,
1820
+ autoCount: H,
1821
+ bin: H,
1822
+ hasFn: H,
1823
1823
  timeUnit: [
1824
1824
  void 0,
1825
- z.YEAR,
1826
- z.MONTH,
1827
- z.MINUTES,
1828
- z.SECONDS
1825
+ B.YEAR,
1826
+ B.MONTH,
1827
+ B.MINUTES,
1828
+ B.SECONDS
1829
1829
  ],
1830
1830
  field: [void 0],
1831
1831
  type: [
1832
- kr,
1833
- Dr,
1834
- N,
1835
- Or
1832
+ Or,
1833
+ Er,
1834
+ P,
1835
+ Dr
1836
1836
  ],
1837
1837
  sort: ["ascending", "descending"],
1838
1838
  stack: [
@@ -1845,12 +1845,12 @@ var V = [!1, !0], la = {
1845
1845
  format: [void 0],
1846
1846
  title: [void 0],
1847
1847
  scale: [!0],
1848
- axis: V,
1849
- legend: V,
1850
- binProps: la,
1851
- sortProps: ua,
1852
- scaleProps: da,
1853
- axisProps: fa,
1848
+ axis: H,
1849
+ legend: H,
1850
+ binProps: ca,
1851
+ sortProps: la,
1852
+ scaleProps: ua,
1853
+ axisProps: da,
1854
1854
  legendProps: {
1855
1855
  orient: ["left", "right"],
1856
1856
  format: [void 0],
@@ -1916,23 +1916,23 @@ var V = [!1, !0], la = {
1916
1916
  titlePadding: [void 0]
1917
1917
  }
1918
1918
  };
1919
- function ma(e, t, n) {
1920
- if (e === "field" || oi(e) && e.parent === "sort" && e.child === "field") return t.fieldNames();
1919
+ function pa(e, t, n) {
1920
+ if (e === "field" || ai(e) && e.parent === "sort" && e.child === "field") return t.fieldNames();
1921
1921
  let r;
1922
- if (r = oi(e) ? n.enum[e.parent + "Props"][e.child] : n.enum[e], r !== void 0) return r;
1922
+ if (r = ai(e) ? n.enum[e.parent + "Props"][e.child] : n.enum[e], r !== void 0) return r;
1923
1923
  /* istanbul ignore next */
1924
1924
  throw Error("No default enumValues for " + JSON.stringify(e));
1925
1925
  }
1926
1926
  //#endregion
1927
1927
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/config.js
1928
- var ha = {
1928
+ var ma = {
1929
1929
  verbose: !1,
1930
1930
  defaultSpecConfig: {
1931
1931
  line: { point: !0 },
1932
1932
  scale: { useUnaggregatedDomain: !0 }
1933
1933
  },
1934
- propertyPrecedence: Oi.map(Si),
1935
- enum: pa,
1934
+ propertyPrecedence: Di.map(xi),
1935
+ enum: fa,
1936
1936
  numberNominalProportion: .05,
1937
1937
  numberNominalLimit: 40,
1938
1938
  constraintManuallySpecifiedValue: !1,
@@ -1977,7 +1977,7 @@ var ha = {
1977
1977
  maxGoodCardinalityForColor: 7,
1978
1978
  minPercentUniqueForKey: .8,
1979
1979
  minCardinalityForKey: 50
1980
- }, ga = {
1980
+ }, ha = {
1981
1981
  argmax: 1,
1982
1982
  argmin: 1,
1983
1983
  average: 1,
@@ -2001,24 +2001,24 @@ var ha = {
2001
2001
  variance: 1,
2002
2002
  variancep: 1
2003
2003
  };
2004
- function _a(e) {
2004
+ function ga(e) {
2005
2005
  return !!e && !!e.argmin;
2006
2006
  }
2007
- function va(e) {
2007
+ function _a(e) {
2008
2008
  return !!e && !!e.argmax;
2009
2009
  }
2010
- j(ga);
2011
- function ya(e) {
2012
- return Ne(e) && !!ga[e];
2010
+ M(ha);
2011
+ function va(e) {
2012
+ return Me(e) && !!ha[e];
2013
2013
  }
2014
- var ba = [
2014
+ var ya = [
2015
2015
  "count",
2016
2016
  "sum",
2017
2017
  "distinct",
2018
2018
  "valid",
2019
2019
  "missing"
2020
2020
  ];
2021
- Be([
2021
+ ze([
2022
2022
  "mean",
2023
2023
  "average",
2024
2024
  "median",
@@ -2029,62 +2029,62 @@ Be([
2029
2029
  ]);
2030
2030
  //#endregion
2031
2031
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/bin.js
2032
+ function ba(e) {
2033
+ return Re(e) && (e = Na(e, void 0)), "bin" + M(e).map((t) => Ve(`_${t}_${e[t]}`)).join("");
2034
+ }
2032
2035
  function xa(e) {
2033
- return ze(e) && (e = Pa(e, void 0)), "bin" + j(e).map((t) => He(`_${t}_${e[t]}`)).join("");
2036
+ return e === !0 || Sa(e) && !e.binned;
2034
2037
  }
2035
2038
  function Sa(e) {
2036
- return e === !0 || Ca(e) && !e.binned;
2039
+ return je(e);
2037
2040
  }
2038
2041
  function Ca(e) {
2039
- return Me(e);
2040
- }
2041
- function wa(e) {
2042
2042
  switch (e) {
2043
2043
  case "row":
2044
- case Je:
2045
- case it:
2044
+ case qe:
2045
+ case rt:
2046
+ case $e:
2046
2047
  case et:
2047
2048
  case tt:
2048
- case nt:
2049
- case ct:
2049
+ case st:
2050
+ case it:
2050
2051
  case at:
2051
2052
  case ot:
2052
- case st:
2053
- case rt: return 6;
2053
+ case nt: return 6;
2054
2054
  default: return 10;
2055
2055
  }
2056
2056
  }
2057
2057
  //#endregion
2058
2058
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/channeldef.js
2059
+ function wa(e) {
2060
+ return !!e && !!e.condition && !Ae(e.condition) && Ta(e.condition);
2061
+ }
2059
2062
  function Ta(e) {
2060
- return !!e && !!e.condition && !je(e.condition) && Ea(e.condition);
2063
+ return !!e && (!!e.field || e.aggregate === "count");
2061
2064
  }
2062
2065
  function Ea(e) {
2063
- return !!e && (!!e.field || e.aggregate === "count");
2066
+ return Ta(e) && Me(e.field);
2064
2067
  }
2065
2068
  function Da(e) {
2066
- return Ea(e) && Ne(e.field);
2067
- }
2068
- function Oa(e) {
2069
2069
  return !!e.op;
2070
2070
  }
2071
- function ka(e, t = {}) {
2071
+ function Oa(e, t = {}) {
2072
2072
  let n = e.field, r = t.prefix, i = t.suffix, a = "";
2073
- if (Ma(e)) n = Ke("count");
2073
+ if (ja(e)) n = Ge("count");
2074
2074
  else {
2075
2075
  let r;
2076
2076
  if (!t.nofn) {
2077
- if (Oa(e)) r = e.op;
2077
+ if (Da(e)) r = e.op;
2078
2078
  else {
2079
2079
  let { bin: o, aggregate: s, timeUnit: c } = e;
2080
- Sa(o) ? (r = xa(o), i = (t.binSuffix || "") + (t.suffix || "")) : s ? va(s) ? (a = `.${n}`, n = `argmax_${s.argmax}`) : _a(s) ? (a = `.${n}`, n = `argmin_${s.argmin}`) : r = String(s) : c && (r = String(c));
2080
+ xa(o) ? (r = ba(o), i = (t.binSuffix || "") + (t.suffix || "")) : s ? _a(s) ? (a = `.${n}`, n = `argmax_${s.argmax}`) : ga(s) ? (a = `.${n}`, n = `argmin_${s.argmin}`) : r = String(s) : c && (r = String(c));
2081
2081
  }
2082
2082
  }
2083
2083
  r && (n = n ? `${r}_${n}` : r);
2084
2084
  }
2085
- return i && (n = `${n}_${i}`), r && (n = `${r}_${n}`), t.forAs ? n : t.expr ? Ue(n, t.expr) + a : We(n) + a;
2085
+ return i && (n = `${n}_${i}`), r && (n = `${r}_${n}`), t.forAs ? n : t.expr ? He(n, t.expr) + a : Ue(n) + a;
2086
2086
  }
2087
- function Aa(e) {
2087
+ function ka(e) {
2088
2088
  switch (e.type) {
2089
2089
  case "nominal":
2090
2090
  case "ordinal":
@@ -2092,23 +2092,23 @@ function Aa(e) {
2092
2092
  case "quantitative": return !!e.bin;
2093
2093
  case "temporal": return !1;
2094
2094
  }
2095
- throw Error(M.invalidFieldType(e.type));
2095
+ throw Error(N.invalidFieldType(e.type));
2096
2096
  }
2097
- function ja(e) {
2098
- return !Aa(e);
2097
+ function Aa(e) {
2098
+ return !ka(e);
2099
2099
  }
2100
- function Ma(e) {
2100
+ function ja(e) {
2101
2101
  return e.aggregate === "count";
2102
2102
  }
2103
- function Na(e) {
2104
- if (Ea(e)) return e;
2105
- if (Ta(e)) return e.condition;
2103
+ function Ma(e) {
2104
+ if (Ta(e)) return e;
2105
+ if (wa(e)) return e.condition;
2106
2106
  }
2107
- function Pa(e, t) {
2108
- return ze(e) ? { maxbins: wa(t) } : e === "binned" ? { binned: !0 } : !e.maxbins && !e.step ? Object.assign({}, e, { maxbins: wa(t) }) : e;
2107
+ function Na(e, t) {
2108
+ return Re(e) ? { maxbins: Ca(t) } : e === "binned" ? { binned: !0 } : !e.maxbins && !e.step ? Object.assign({}, e, { maxbins: Ca(t) }) : e;
2109
2109
  }
2110
- var Fa = { compatible: !0 };
2111
- function Ia(e, t) {
2110
+ var Pa = { compatible: !0 };
2111
+ function Fa(e, t) {
2112
2112
  let n = e.type;
2113
2113
  if (n === "geojson" && t !== "shape") return {
2114
2114
  compatible: !1,
@@ -2117,10 +2117,10 @@ function Ia(e, t) {
2117
2117
  switch (t) {
2118
2118
  case "row":
2119
2119
  case "column":
2120
- case "facet": return ja(e) ? {
2120
+ case "facet": return Aa(e) ? {
2121
2121
  compatible: !1,
2122
- warning: M.facetChannelShouldBeDiscrete(t)
2123
- } : Fa;
2122
+ warning: N.facetChannelShouldBeDiscrete(t)
2123
+ } : Pa;
2124
2124
  case "x":
2125
2125
  case "y":
2126
2126
  case "color":
@@ -2130,11 +2130,11 @@ function Ia(e, t) {
2130
2130
  case "detail":
2131
2131
  case "key":
2132
2132
  case "tooltip":
2133
- case "href": return Fa;
2133
+ case "href": return Pa;
2134
2134
  case "longitude":
2135
2135
  case "longitude2":
2136
2136
  case "latitude":
2137
- case "latitude2": return n === "quantitative" ? Fa : {
2137
+ case "latitude2": return n === "quantitative" ? Pa : {
2138
2138
  compatible: !1,
2139
2139
  warning: `Channel ${t} should be used with a quantitative field only, not ${e.type} field.`
2140
2140
  };
@@ -2147,51 +2147,51 @@ function Ia(e, t) {
2147
2147
  case "y2": return n === "nominal" && !e.sort ? {
2148
2148
  compatible: !1,
2149
2149
  warning: `Channel ${t} should not be used with an unsorted discrete field.`
2150
- } : Fa;
2151
- case "shape": return A([
2150
+ } : Pa;
2151
+ case "shape": return j([
2152
2152
  "ordinal",
2153
2153
  "nominal",
2154
2154
  "geojson"
2155
- ], e.type) ? Fa : {
2155
+ ], e.type) ? Pa : {
2156
2156
  compatible: !1,
2157
2157
  warning: "Shape channel should be used with only either discrete or geojson data."
2158
2158
  };
2159
2159
  case "order": return e.type === "nominal" && !("sort" in e) ? {
2160
2160
  compatible: !1,
2161
2161
  warning: "Channel order is inappropriate for nominal field, which has no inherent order."
2162
- } : Fa;
2162
+ } : Pa;
2163
2163
  }
2164
2164
  throw Error("channelCompatability not implemented for channel " + t);
2165
2165
  }
2166
2166
  //#endregion
2167
2167
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/compile/scale/type.js
2168
- function La(e, t, n, r) {
2169
- let i = Ra(t, n, r), { type: a } = e;
2170
- return Yt(t) ? a === void 0 ? i : Qr(t, a) ? Zr(a, n.type) ? a : (Tr(M.scaleTypeNotWorkWithFieldDef(a, i)), i) : (Tr(M.scaleTypeNotWorkWithChannel(t, a, i)), i) : null;
2168
+ function Ia(e, t, n, r) {
2169
+ let i = La(t, n, r), { type: a } = e;
2170
+ return Jt(t) ? a === void 0 ? i : Zr(t, a) ? Xr(a, n.type) ? a : (wr(N.scaleTypeNotWorkWithFieldDef(a, i)), i) : (wr(N.scaleTypeNotWorkWithChannel(t, a, i)), i) : null;
2171
2171
  }
2172
- function Ra(e, t, n) {
2172
+ function La(e, t, n) {
2173
2173
  switch (t.type) {
2174
2174
  case "nominal":
2175
- case "ordinal": return _t(e) || tn(e) === "discrete" ? (e === "shape" && t.type === "ordinal" && Tr(M.discreteChannelCannotEncode(e, "ordinal")), "ordinal") : A(["x", "y"], e) && (A([
2175
+ case "ordinal": return gt(e) || en(e) === "discrete" ? (e === "shape" && t.type === "ordinal" && wr(N.discreteChannelCannotEncode(e, "ordinal")), "ordinal") : j(["x", "y"], e) && (j([
2176
2176
  "rect",
2177
2177
  "bar",
2178
2178
  "rule"
2179
2179
  ], n) || n === "bar") ? "band" : "point";
2180
- case "temporal": return _t(e) ? "time" : tn(e) === "discrete" ? (Tr(M.discreteChannelCannotEncode(e, "temporal")), "ordinal") : "time";
2181
- case "quantitative": return _t(e) ? Sa(t.bin) ? "bin-ordinal" : "linear" : tn(e) === "discrete" ? (Tr(M.discreteChannelCannotEncode(e, "quantitative")), "ordinal") : "linear";
2180
+ case "temporal": return gt(e) ? "time" : en(e) === "discrete" ? (wr(N.discreteChannelCannotEncode(e, "temporal")), "ordinal") : "time";
2181
+ case "quantitative": return gt(e) ? xa(t.bin) ? "bin-ordinal" : "linear" : en(e) === "discrete" ? (wr(N.discreteChannelCannotEncode(e, "quantitative")), "ordinal") : "linear";
2182
2182
  case "geojson": return;
2183
2183
  }
2184
2184
  /* istanbul ignore next: should never reach this */
2185
- throw Error(M.invalidFieldType(t.type));
2185
+ throw Error(N.invalidFieldType(t.type));
2186
2186
  }
2187
2187
  //#endregion
2188
2188
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/query/expandedtype.js
2189
- var H;
2189
+ var Ra;
2190
2190
  (function(e) {
2191
- e.QUANTITATIVE = N, e.ORDINAL = Dr, e.TEMPORAL = Or, e.NOMINAL = kr, e.KEY = "key";
2192
- })(H ||= {});
2191
+ e.QUANTITATIVE = P, e.ORDINAL = Er, e.TEMPORAL = Dr, e.NOMINAL = Or, e.KEY = "key";
2192
+ })(Ra ||= {});
2193
2193
  function za(e) {
2194
- return e === "ordinal" || e === "nominal" || e === H.KEY;
2194
+ return e === "ordinal" || e === "nominal" || e === Ra.KEY;
2195
2195
  }
2196
2196
  //#endregion
2197
2197
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/propindex.js
@@ -2200,13 +2200,13 @@ var U = class e {
2200
2200
  this.index = e ? Object.assign({}, e) : {};
2201
2201
  }
2202
2202
  has(e) {
2203
- return Si(e) in this.index;
2203
+ return xi(e) in this.index;
2204
2204
  }
2205
2205
  get(e) {
2206
- return this.index[Si(e)];
2206
+ return this.index[xi(e)];
2207
2207
  }
2208
2208
  set(e, t) {
2209
- return this.index[Si(e)] = t, this;
2209
+ return this.index[xi(e)] = t, this;
2210
2210
  }
2211
2211
  setByKey(e, t) {
2212
2212
  this.index[e] = t;
@@ -2217,7 +2217,7 @@ var U = class e {
2217
2217
  return n;
2218
2218
  }
2219
2219
  size() {
2220
- return (0, F.keys)(this.index).length;
2220
+ return (0, I.keys)(this.index).length;
2221
2221
  }
2222
2222
  duplicate() {
2223
2223
  return new e(this.index);
@@ -2227,7 +2227,7 @@ var U = class e {
2227
2227
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/encoding.js
2228
2228
  function Ba(e, t) {
2229
2229
  let n = e && e[t];
2230
- return n ? je(n) ? Ve(n, (e) => !!e.field) : Ea(n) || Ta(n) : !1;
2230
+ return n ? Ae(n) ? Be(n, (e) => !!e.field) : Ta(n) || wa(n) : !1;
2231
2231
  }
2232
2232
  //#endregion
2233
2233
  //#region ../node_modules/.pnpm/vega-lite@3.4.0_vega@6.2.0/node_modules/vega-lite/build/src/stack.js
@@ -2241,39 +2241,39 @@ function Ha(e) {
2241
2241
  }
2242
2242
  var Ua = [
2243
2243
  "bar",
2244
+ Oi,
2245
+ Mi,
2246
+ Ai,
2247
+ Fi,
2248
+ Ii,
2244
2249
  ki,
2245
2250
  Ni,
2246
- ji,
2247
- Ii,
2248
- Li,
2249
- Ai,
2250
- Pi,
2251
- Fi
2252
- ], Wa = ["bar", ki];
2251
+ Pi
2252
+ ], Wa = ["bar", Oi];
2253
2253
  function Ga(e) {
2254
2254
  let t = e.x, n = e.y;
2255
- if (Ea(t) && Ea(n)) {
2255
+ if (Ta(t) && Ta(n)) {
2256
2256
  if (t.type === "quantitative" && n.type === "quantitative") {
2257
2257
  if (t.stack) return "x";
2258
2258
  if (n.stack) return "y";
2259
2259
  if (!!t.aggregate != !!n.aggregate) return t.aggregate ? "x" : "y";
2260
2260
  } else if (t.type === "quantitative") return "x";
2261
2261
  else if (n.type === "quantitative") return "y";
2262
- } else if (Ea(t) && t.type === "quantitative") return "x";
2263
- else if (Ea(n) && n.type === "quantitative") return "y";
2262
+ } else if (Ta(t) && t.type === "quantitative") return "x";
2263
+ else if (Ta(n) && n.type === "quantitative") return "y";
2264
2264
  }
2265
2265
  function Ka(e, t, n, r = {}) {
2266
- let i = Vi(e) ? e.type : e;
2267
- if (!A(Ua, i)) return null;
2266
+ let i = Bi(e) ? e.type : e;
2267
+ if (!j(Ua, i)) return null;
2268
2268
  let a = Ga(t);
2269
2269
  if (!a) return null;
2270
- let o = t[a], s = Da(o) ? ka(o, {}) : void 0, c = a === "x" ? "y" : "x", l = t[c], u = Da(l) ? ka(l, {}) : void 0, d = zt.reduce((e, n) => {
2270
+ let o = t[a], s = Ea(o) ? Oa(o, {}) : void 0, c = a === "x" ? "y" : "x", l = t[c], u = Ea(l) ? Oa(l, {}) : void 0, d = Rt.reduce((e, n) => {
2271
2271
  if (n !== "tooltip" && Ba(t, n)) {
2272
2272
  let r = t[n];
2273
- (je(r) ? r : [r]).forEach((t) => {
2274
- let r = Na(t);
2273
+ (Ae(r) ? r : [r]).forEach((t) => {
2274
+ let r = Ma(t);
2275
2275
  if (r.aggregate) return;
2276
- let i = Da(r) ? ka(r, {}) : void 0;
2276
+ let i = Ea(r) ? Oa(r, {}) : void 0;
2277
2277
  (!i || i !== u && i !== s) && e.push({
2278
2278
  channel: n,
2279
2279
  fieldDef: r
@@ -2282,15 +2282,15 @@ function Ka(e, t, n, r = {}) {
2282
2282
  }
2283
2283
  return e;
2284
2284
  }, []), f;
2285
- if (o.stack === void 0 ? d.length > 0 && (f = A(Wa, i) ? Ge(n, "zero") : n) : f = ze(o.stack) ? o.stack ? "zero" : null : o.stack, !f || !Ha(f)) return null;
2286
- if (o.scale && o.scale.type && o.scale.type !== P.LINEAR) {
2285
+ if (o.stack === void 0 ? d.length > 0 && (f = j(Wa, i) ? We(n, "zero") : n) : f = Re(o.stack) ? o.stack ? "zero" : null : o.stack, !f || !Ha(f)) return null;
2286
+ if (o.scale && o.scale.type && o.scale.type !== F.LINEAR) {
2287
2287
  if (r.disallowNonLinearStack) return null;
2288
- Tr(M.cannotStackNonLinearScale(o.scale.type));
2288
+ wr(N.cannotStackNonLinearScale(o.scale.type));
2289
2289
  }
2290
- return Ba(t, a === "x" ? "x2" : "y2") ? (o.stack !== void 0 && Tr(M.cannotStackRangedMark(a)), null) : (o.aggregate && !A(ba, o.aggregate) && Tr(M.stackNonSummativeAggregate(o.aggregate)), {
2290
+ return Ba(t, a === "x" ? "x2" : "y2") ? (o.stack !== void 0 && wr(N.cannotStackRangedMark(a)), null) : (o.aggregate && !j(ya, o.aggregate) && wr(N.stackNonSummativeAggregate(o.aggregate)), {
2291
2291
  groupbyChannel: l ? c : void 0,
2292
2292
  fieldChannel: a,
2293
- impute: zi(i),
2293
+ impute: Ri(i),
2294
2294
  stackBy: d,
2295
2295
  offset: f
2296
2296
  });
@@ -2298,7 +2298,7 @@ function Ka(e, t, n, r = {}) {
2298
2298
  //#endregion
2299
2299
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/query/spec.js
2300
2300
  function qa(e) {
2301
- return ri(e.encodings, (e) => G(e) && !B(e.aggregate) && !!e.aggregate || mo(e));
2301
+ return ni(e.encodings, (e) => G(e) && !V(e.aggregate) && !!e.aggregate || mo(e));
2302
2302
  }
2303
2303
  function Ja(e) {
2304
2304
  if (!Za(e)) return null;
@@ -2309,31 +2309,31 @@ function Ja(e) {
2309
2309
  return Ka(n, t, void 0, { disallowNonLinearStack: !0 });
2310
2310
  }
2311
2311
  function Ya(e) {
2312
- for (let t of e.encodings) if (t[R.STACK] !== void 0 && !B(t[R.STACK])) return t[R.STACK];
2312
+ for (let t of e.encodings) if (t[z.STACK] !== void 0 && !V(t[z.STACK])) return t[z.STACK];
2313
2313
  }
2314
2314
  function Xa(e) {
2315
- for (let t of e.encodings) if (t[R.STACK] !== void 0 && !B(t.channel)) return t.channel;
2315
+ for (let t of e.encodings) if (t[z.STACK] !== void 0 && !V(t.channel)) return t.channel;
2316
2316
  return null;
2317
2317
  }
2318
2318
  function Za(e) {
2319
- if (B(e.mark)) return !1;
2319
+ if (V(e.mark)) return !1;
2320
2320
  let t = [
2321
- R.STACK,
2322
- R.CHANNEL,
2323
- R.MARK,
2324
- R.FIELD,
2325
- R.AGGREGATE,
2326
- R.AUTOCOUNT,
2327
- R.SCALE,
2328
- Ti("scale", "type"),
2329
- R.TYPE
2330
- ], n = (0, F.toMap)(ii(Di, t)), r = e.encodings.filter((e) => !q(e));
2321
+ z.STACK,
2322
+ z.CHANNEL,
2323
+ z.MARK,
2324
+ z.FIELD,
2325
+ z.AGGREGATE,
2326
+ z.AUTOCOUNT,
2327
+ z.SCALE,
2328
+ wi("scale", "type"),
2329
+ z.TYPE
2330
+ ], n = (0, I.toMap)(ri(Ei, t)), r = e.encodings.filter((e) => !q(e));
2331
2331
  for (let e of r) if (Qa(e, { exclude: n })) return !1;
2332
2332
  return !0;
2333
2333
  }
2334
2334
  function Qa(e, t = {}) {
2335
- if (!(0, F.isObject)(e)) return !1;
2336
- for (let n in e) if (e.hasOwnProperty(n) && (B(e[n]) && (!t.exclude || !t.exclude[n]) || Qa(e[n], t))) return !0;
2335
+ if (!(0, I.isObject)(e)) return !1;
2336
+ for (let n in e) if (e.hasOwnProperty(n) && (V(e[n]) && (!t.exclude || !t.exclude[n]) || Qa(e[n], t))) return !0;
2337
2337
  return !1;
2338
2338
  }
2339
2339
  //#endregion
@@ -2345,12 +2345,12 @@ function eo(e) {
2345
2345
  return (t) => e[t] === void 0 ? t : e[t];
2346
2346
  }
2347
2347
  function to(e, t) {
2348
- return B(e) ? !ra(e) && e.enum ? "?" + JSON.stringify(e.enum) : "?" : t ? t(e) : e;
2348
+ return V(e) ? !na(e) && e.enum ? "?" + JSON.stringify(e.enum) : "?" : t ? t(e) : e;
2349
2349
  }
2350
2350
  function no(e, t) {
2351
2351
  return t ? t(e) : e;
2352
2352
  }
2353
- var ro = new U(), io = [].concat(Oi, hi, [R.TRANSFORM, R.STACK], bi).reduce((e, t) => e.set(t, !0), new U()), ao = {
2353
+ var ro = new U(), io = [].concat(Di, mi, [z.TRANSFORM, z.STACK], yi).reduce((e, t) => e.set(t, !0), new U()), ao = {
2354
2354
  axis: {
2355
2355
  x: !0,
2356
2356
  y: !0,
@@ -2386,9 +2386,9 @@ var ro = new U(), io = [].concat(Oi, hi, [R.TRANSFORM, R.STACK], bi).reduce((e,
2386
2386
  };
2387
2387
  function oo(e, t = io, n = ro) {
2388
2388
  let r = [];
2389
- t.get(R.MARK) && r.push(to(e.mark, n.get(R.MARK))), e.transform && e.transform.length > 0 && r.push("transform:" + JSON.stringify(e.transform));
2389
+ t.get(z.MARK) && r.push(to(e.mark, n.get(z.MARK))), e.transform && e.transform.length > 0 && r.push("transform:" + JSON.stringify(e.transform));
2390
2390
  let i;
2391
- if (t.get(R.STACK) && (i = Ja(e)), e.encodings) {
2391
+ if (t.get(z.STACK) && (i = Ja(e)), e.encodings) {
2392
2392
  let a = e.encodings.reduce((e, r) => {
2393
2393
  if (!q(r)) {
2394
2394
  let a;
@@ -2398,7 +2398,7 @@ function oo(e, t = io, n = ro) {
2398
2398
  }, []).sort().join("|");
2399
2399
  a && r.push(a);
2400
2400
  }
2401
- for (let n of bi) {
2401
+ for (let n of yi) {
2402
2402
  let i = n.toString();
2403
2403
  if (t.get(n) && e[i]) {
2404
2404
  let t = e[i];
@@ -2409,21 +2409,21 @@ function oo(e, t = io, n = ro) {
2409
2409
  }
2410
2410
  function so(e, t = io, n = ro) {
2411
2411
  let r = [];
2412
- if (t.get(R.CHANNEL) && r.push(to(e.channel, n.get(R.CHANNEL))), G(e)) {
2412
+ if (t.get(z.CHANNEL) && r.push(to(e.channel, n.get(z.CHANNEL))), G(e)) {
2413
2413
  let i = co(e, t, n);
2414
2414
  i && r.push(i);
2415
2415
  } else W(e) ? r.push(e.value) : K(e) && r.push("autocount()");
2416
2416
  return r.join(":");
2417
2417
  }
2418
2418
  function co(e, t = io, n = ro) {
2419
- if (t.get(R.AGGREGATE) && q(e)) return "-";
2419
+ if (t.get(z.AGGREGATE) && q(e)) return "-";
2420
2420
  let r = lo(e, t, n), i = uo(e, t, n), a;
2421
2421
  if (G(e)) {
2422
- if (a = t.get("field") ? to(e.field, n.get("field")) : "...", t.get(R.TYPE)) {
2423
- if (B(e.type)) a += "," + to(e.type, n.get(R.TYPE));
2422
+ if (a = t.get("field") ? to(e.field, n.get("field")) : "...", t.get(z.TYPE)) {
2423
+ if (V(e.type)) a += "," + to(e.type, n.get(z.TYPE));
2424
2424
  else {
2425
2425
  let t = ((e.type || "quantitative") + "").substr(0, 1);
2426
- a += "," + to(t, n.get(R.TYPE));
2426
+ a += "," + to(t, n.get(z.TYPE));
2427
2427
  }
2428
2428
  }
2429
2429
  a += i.map((e) => {
@@ -2431,33 +2431,33 @@ function co(e, t = io, n = ro) {
2431
2431
  return "," + e.key + "=" + t;
2432
2432
  }).join("");
2433
2433
  } else K(e) && (a = "*,q");
2434
- return a ? r ? ((0, F.isString)(r) ? r : "?" + ((0, F.keys)(r).length > 0 ? JSON.stringify(r) : "")) + "(" + a + ")" : a : null;
2434
+ return a ? r ? ((0, I.isString)(r) ? r : "?" + ((0, I.keys)(r).length > 0 ? JSON.stringify(r) : "")) + "(" + a + ")" : a : null;
2435
2435
  }
2436
2436
  function lo(e, t, n) {
2437
- if (t.get(R.AGGREGATE) && e.aggregate && !B(e.aggregate)) return no(e.aggregate, n.get(R.AGGREGATE));
2438
- if (t.get(R.AGGREGATE) && mo(e)) return no("count", n.get(R.AGGREGATE));
2439
- if (t.get(R.TIMEUNIT) && e.timeUnit && !B(e.timeUnit)) return no(e.timeUnit, n.get(R.TIMEUNIT));
2440
- if (t.get(R.BIN) && e.bin && !B(e.bin)) return "bin";
2437
+ if (t.get(z.AGGREGATE) && e.aggregate && !V(e.aggregate)) return no(e.aggregate, n.get(z.AGGREGATE));
2438
+ if (t.get(z.AGGREGATE) && mo(e)) return no("count", n.get(z.AGGREGATE));
2439
+ if (t.get(z.TIMEUNIT) && e.timeUnit && !V(e.timeUnit)) return no(e.timeUnit, n.get(z.TIMEUNIT));
2440
+ if (t.get(z.BIN) && e.bin && !V(e.bin)) return "bin";
2441
2441
  {
2442
2442
  let n = null;
2443
2443
  for (let r of [
2444
- R.AGGREGATE,
2445
- R.AUTOCOUNT,
2446
- R.TIMEUNIT,
2447
- R.BIN
2444
+ z.AGGREGATE,
2445
+ z.AUTOCOUNT,
2446
+ z.TIMEUNIT,
2447
+ z.BIN
2448
2448
  ]) {
2449
2449
  let i = e[r];
2450
- t.get(r) && e[r] && B(i) && (n ||= {}, n[r] = ra(i) ? i : i.enum);
2450
+ t.get(r) && e[r] && V(i) && (n ||= {}, n[r] = na(i) ? i : i.enum);
2451
2451
  }
2452
2452
  return n && e.hasFn && (n.hasFn = !0), n;
2453
2453
  }
2454
2454
  }
2455
2455
  function uo(e, t, n) {
2456
2456
  let r = [];
2457
- if (!(0, F.isBoolean)(e.bin) && !ra(e.bin)) {
2457
+ if (!(0, I.isBoolean)(e.bin) && !na(e.bin)) {
2458
2458
  let i = e.bin;
2459
2459
  for (let e in i) {
2460
- let a = Ti("bin", e);
2460
+ let a = wi("bin", e);
2461
2461
  a && t.get(a) && i[e] !== void 0 && r.push({
2462
2462
  key: e,
2463
2463
  value: to(i[e], n.get(a))
@@ -2466,25 +2466,25 @@ function uo(e, t, n) {
2466
2466
  r.sort((e, t) => e.key.localeCompare(t.key));
2467
2467
  }
2468
2468
  for (let i of [
2469
- R.SCALE,
2470
- R.SORT,
2471
- R.STACK,
2472
- R.AXIS,
2473
- R.LEGEND
2474
- ]) if (!(!B(e.channel) && !ao[i][e.channel]) && t.get(i) && e[i] !== void 0) {
2469
+ z.SCALE,
2470
+ z.SORT,
2471
+ z.STACK,
2472
+ z.AXIS,
2473
+ z.LEGEND
2474
+ ]) if (!(!V(e.channel) && !ao[i][e.channel]) && t.get(i) && e[i] !== void 0) {
2475
2475
  let a = e[i];
2476
- if ((0, F.isBoolean)(a) || a === null) r.push({
2476
+ if ((0, I.isBoolean)(a) || a === null) r.push({
2477
2477
  key: i + "",
2478
2478
  value: a || !1
2479
2479
  });
2480
- else if ((0, F.isString)(a)) r.push({
2480
+ else if ((0, I.isString)(a)) r.push({
2481
2481
  key: i + "",
2482
2482
  value: no(JSON.stringify(a), n.get(i))
2483
2483
  });
2484
2484
  else {
2485
2485
  let e = [];
2486
2486
  for (let r in a) {
2487
- let o = Ti(i, r);
2487
+ let o = wi(i, r);
2488
2488
  o && t.get(o) && a[r] !== void 0 && e.push({
2489
2489
  key: r,
2490
2490
  value: to(a[r], n.get(o))
@@ -2520,7 +2520,7 @@ var po;
2520
2520
  e.encoding = t;
2521
2521
  function n(e) {
2522
2522
  let t = {};
2523
- t.field = e[0], t.type = jr(e[1].toUpperCase()) || "?";
2523
+ t.field = e[0], t.type = Ar(e[1].toUpperCase()) || "?";
2524
2524
  let n = e[2], i = 0, a = 0;
2525
2525
  for (; a < n.length;) {
2526
2526
  let e = n.indexOf("=", a), o;
@@ -2538,7 +2538,7 @@ var po;
2538
2538
  let e = a, t = n.indexOf(",", a + s.length);
2539
2539
  t === -1 && (t = n.length), a = t + 1, o = JSON.parse(n.substring(e + s.length + 1, t));
2540
2540
  }
2541
- di(s) ? t[s] = o : (t.bin = t.bin || {}, t.bin[s] = o);
2541
+ ui(s) ? t[s] = o : (t.bin = t.bin || {}, t.bin[s] = o);
2542
2542
  } else break;
2543
2543
  }
2544
2544
  return t;
@@ -2552,13 +2552,13 @@ var po;
2552
2552
  let t = {};
2553
2553
  if (e[0] === "?") {
2554
2554
  let i = r(1, e, "}"), a = JSON.parse(e.substring(1, i + 1));
2555
- for (let e in a) t[e] = (0, F.isArray)(a[e]) ? { enum: a[e] } : a[e];
2555
+ for (let e in a) t[e] = (0, I.isArray)(a[e]) ? { enum: a[e] } : a[e];
2556
2556
  return Object.assign({}, t, n(fo(e.substring(i + 2, e.length - 1), ",", 2)));
2557
2557
  }
2558
2558
  {
2559
2559
  let t = e.substring(0, e.indexOf("(")), r = fo(e.substring(t.length + 1, e.length - 1), ",", 2);
2560
- if (ya(t)) return Object.assign({ aggregate: t }, n(r));
2561
- if (Qi(t)) return Object.assign({ timeUnit: t }, n(r));
2560
+ if (va(t)) return Object.assign({ aggregate: t }, n(r));
2561
+ if (Zi(t)) return Object.assign({ timeUnit: t }, n(r));
2562
2562
  if (t === "bin") return Object.assign({ bin: {} }, n(r));
2563
2563
  }
2564
2564
  }
@@ -2582,24 +2582,24 @@ function mo(e) {
2582
2582
  return K(e) && e.autoCount === !0;
2583
2583
  }
2584
2584
  var ho = [
2585
- R.AGGREGATE,
2586
- R.BIN,
2587
- R.TIMEUNIT,
2588
- R.FIELD,
2589
- R.TYPE,
2590
- R.SCALE,
2591
- R.SORT,
2592
- R.AXIS,
2593
- R.LEGEND,
2594
- R.STACK,
2595
- R.FORMAT
2585
+ z.AGGREGATE,
2586
+ z.BIN,
2587
+ z.TIMEUNIT,
2588
+ z.FIELD,
2589
+ z.TYPE,
2590
+ z.SCALE,
2591
+ z.SORT,
2592
+ z.AXIS,
2593
+ z.LEGEND,
2594
+ z.STACK,
2595
+ z.FORMAT
2596
2596
  ];
2597
2597
  function go(e, t) {
2598
2598
  let { wildcardMode: n = "skip" } = t, r = {};
2599
2599
  for (let n of e) {
2600
2600
  if (q(n)) continue;
2601
2601
  let { channel: e } = n;
2602
- if (B(e)) throw Error("Cannot convert wildcard channel to a fixed channel");
2602
+ if (V(e)) throw Error("Cannot convert wildcard channel to a fixed channel");
2603
2603
  let i = W(n) ? _o(n) : vo(n, t);
2604
2604
  if (i === null) {
2605
2605
  if (t.wildcardMode === "null") return null;
@@ -2611,7 +2611,7 @@ function go(e, t) {
2611
2611
  }
2612
2612
  function _o(e) {
2613
2613
  let { value: t } = e;
2614
- return B(t) ? null : { value: t };
2614
+ return V(t) ? null : { value: t };
2615
2615
  }
2616
2616
  function vo(e, t = {}) {
2617
2617
  let { props: n = ho, schema: r, wildcardMode: i = "skip" } = t;
@@ -2619,15 +2619,15 @@ function vo(e, t = {}) {
2619
2619
  let t = {};
2620
2620
  for (let a of n) {
2621
2621
  let n = e[a];
2622
- if (B(n)) {
2622
+ if (V(n)) {
2623
2623
  if (i === "skip") continue;
2624
2624
  return null;
2625
2625
  }
2626
2626
  if (n !== void 0) {
2627
2627
  if (!(!ao[a] || ao[a][e.channel])) continue;
2628
- if (di(a) && (0, F.isObject)(n)) {
2628
+ if (ui(a) && (0, I.isObject)(n)) {
2629
2629
  n = Object.assign({}, n);
2630
- for (let e in n) if (B(n[e])) {
2630
+ for (let e in n) if (V(n[e])) {
2631
2631
  if (i === "null") return null;
2632
2632
  delete n[e];
2633
2633
  }
@@ -2635,9 +2635,9 @@ function vo(e, t = {}) {
2635
2635
  if (a === "bin" && n === !1) continue;
2636
2636
  a === "type" && n === "key" ? t.type = "nominal" : t[a] = n;
2637
2637
  }
2638
- if (a === R.SCALE && r && e.type === "ordinal") {
2638
+ if (a === z.SCALE && r && e.type === "ordinal") {
2639
2639
  let n = e.scale, { ordinalDomain: i } = r.fieldSchema(e.field);
2640
- n !== null && i && (t[R.SCALE] = Object.assign({ domain: i }, (0, F.isObject)(n) ? n : {}));
2640
+ n !== null && i && (t[z.SCALE] = Object.assign({ domain: i }, (0, I.isObject)(n) ? n : {}));
2641
2641
  }
2642
2642
  }
2643
2643
  return t;
@@ -2659,21 +2659,21 @@ function bo(e) {
2659
2659
  "timeUnit",
2660
2660
  "type"
2661
2661
  ] });
2662
- return Aa(t) || !!t.timeUnit;
2662
+ return ka(t) || !!t.timeUnit;
2663
2663
  }
2664
2664
  return !1;
2665
2665
  }
2666
2666
  function xo(e) {
2667
2667
  let t = e.scale === !0 || e.scale === "?" ? {} : e.scale || {}, { type: n, channel: r, timeUnit: i, bin: a } = e;
2668
- if (B(t.type) || B(n) || B(r) || B(a)) return;
2668
+ if (V(t.type) || V(n) || V(r) || V(a)) return;
2669
2669
  if (t.type) return t.type;
2670
- if (n === "temporal" && B(i) || n === "quantitative" && B(a)) return;
2670
+ if (n === "temporal" && V(i) || n === "quantitative" && V(a)) return;
2671
2671
  let o = {
2672
- type: n === H.KEY ? "nominal" : n,
2672
+ type: n === Ra.KEY ? "nominal" : n,
2673
2673
  timeUnit: i,
2674
2674
  bin: a
2675
2675
  };
2676
- return La({ type: t.type }, r, o, void 0);
2676
+ return Ia({ type: t.type }, r, o, void 0);
2677
2677
  }
2678
2678
  //#endregion
2679
2679
  //#region ../node_modules/.pnpm/d3-time@0.1.1/node_modules/d3-time/src/interval.js
@@ -3077,7 +3077,7 @@ var ns, rs, is, as, os, ss, cs, ls = n((() => {
3077
3077
  }
3078
3078
  n.exports = m(u), n.exports.utc = m(d);
3079
3079
  })), Js = /* @__PURE__ */ i(((e, t) => {
3080
- var n = ti(), r = qs(), i = 1e-15;
3080
+ var n = ei(), r = qs(), i = 1e-15;
3081
3081
  function a(e) {
3082
3082
  if (!e) throw Error("Missing binning options.");
3083
3083
  var t = e.maxbins || 15, n = e.base || 10, r = Math.log(n), i = e.div || [5, 2], a = e.min, l = e.max, u = l - a, d, f, p, m, h, g, _;
@@ -3117,7 +3117,7 @@ var ns, rs, is, as, os, ss, cs, ls = n((() => {
3117
3117
  }
3118
3118
  a.date = function(e) {
3119
3119
  if (!e) throw Error("Missing date binning options.");
3120
- var t = e.utc ? r.utc : r, n = e.min, i = e.max, o = e.maxbins || 20, s = e.minbins || 4, c = i - +n, d = e.unit ? t[e.unit] : t.find(c, s, o), f = a({
3120
+ var t = e.utc ? r.utc : r, n = e.min, i = e.max, o = e.maxbins || 20, s = e.minbins || 4, c = +i - n, d = e.unit ? t[e.unit] : t.find(c, s, o), f = a({
3121
3121
  min: d.min == null ? d.unit(n) : d.min,
3122
3122
  max: d.max == null ? d.unit(i) : d.max,
3123
3123
  maxbins: o,
@@ -3127,7 +3127,7 @@ var ns, rs, is, as, os, ss, cs, ls = n((() => {
3127
3127
  return f.unit = d, f.index = u, e.raw || (f.value = l), f;
3128
3128
  }, t.exports = a;
3129
3129
  })), Ys = /* @__PURE__ */ i(((e, t) => {
3130
- var n = ti(), r = "__types__", i = {
3130
+ var n = ei(), r = "__types__", i = {
3131
3131
  boolean: n.boolean,
3132
3132
  integer: n.number,
3133
3133
  number: n.number,
@@ -3196,7 +3196,7 @@ var ns, rs, is, as, os, ss, cs, ls = n((() => {
3196
3196
  }
3197
3197
  l.annotation = o, l.all = u, l.infer = d, l.inferAll = f, l.parsers = i, t.exports = l;
3198
3198
  })), Xs = /* @__PURE__ */ i(((e, t) => {
3199
- var n = ti(), r = t.exports;
3199
+ var n = ei(), r = t.exports;
3200
3200
  r.repeat = function(e, t) {
3201
3201
  var n = Array(t), r;
3202
3202
  for (r = 0; r < t; ++r) n[r] = e;
@@ -3275,7 +3275,7 @@ var ns, rs, is, as, os, ss, cs, ls = n((() => {
3275
3275
  }, s;
3276
3276
  };
3277
3277
  })), Zs = /* @__PURE__ */ i(((e, t) => {
3278
- var n = ti(), r = Ys(), i = Xs(), a = t.exports;
3278
+ var n = ei(), r = Ys(), i = Xs(), a = t.exports;
3279
3279
  a.unique = function(e, t, r) {
3280
3280
  t = n.$(t), r ||= [];
3281
3281
  var i = {}, a, o, s;
@@ -3516,19 +3516,19 @@ var ns, rs, is, as, os, ss, cs, ls = n((() => {
3516
3516
  };
3517
3517
  })), Qs = /* @__PURE__ */ e(Js()), $s = Ys(), ec = Zs(), tc = Qs.default;
3518
3518
  function nc(e, t = {}, n = { fields: [] }) {
3519
- t = (0, F.extend)({}, ha, t);
3519
+ t = (0, I.extend)({}, ma, t);
3520
3520
  let r = (0, ec.summary)(e), i = (0, $s.inferAll)(e), a = n.fields.reduce((e, t) => (e[t.name] = t, e), {}), o = r.map(function(n, r) {
3521
3521
  let o = n.field, s = i[o] === "date" ? X.DATETIME : i[o], c = n.distinct, l;
3522
- if (s === X.NUMBER) l = N;
3523
- else if (s === X.INTEGER) l = c < t.numberNominalLimit && c / n.count < t.numberNominalProportion ? kr : N;
3522
+ if (s === X.NUMBER) l = P;
3523
+ else if (s === X.INTEGER) l = c < t.numberNominalLimit && c / n.count < t.numberNominalProportion ? Or : P;
3524
3524
  else if (s === X.DATETIME) {
3525
- l = Or, n.min = new Date(e[0][o]), n.max = new Date(e[0][o]);
3525
+ l = Dr, n.min = new Date(e[0][o]), n.max = new Date(e[0][o]);
3526
3526
  for (let t of e) {
3527
3527
  let e = new Date(t[o]).getTime();
3528
3528
  e < n.min.getTime() && (n.min = new Date(e)), e > n.max.getTime() && (n.max = new Date(e));
3529
3529
  }
3530
- } else l = kr;
3531
- l === "nominal" && c / n.count > t.minPercentUniqueForKey && n.count > t.minCardinalityForKey && (l = H.KEY);
3530
+ } else l = Or;
3531
+ l === "nominal" && c / n.count > t.minPercentUniqueForKey && n.count > t.minCardinalityForKey && (l = Ra.KEY);
3532
3532
  let u = {
3533
3533
  name: o,
3534
3534
  originalIndex: r,
@@ -3538,7 +3538,7 @@ function nc(e, t = {}, n = { fields: [] }) {
3538
3538
  timeStats: {},
3539
3539
  binStats: {}
3540
3540
  }, d = a[u.name];
3541
- return u = (0, F.extend)(u, d), u;
3541
+ return u = (0, I.extend)(u, d), u;
3542
3542
  });
3543
3543
  for (let e of o) if (e.vlType === "quantitative") for (let n of t.enum.binProps.maxbins) e.binStats[n] = ac(n, e.stats);
3544
3544
  else if (e.vlType === "temporal") for (let n of t.enum.timeUnit) n !== void 0 && (e.timeStats[n] = oc(n, e.stats));
@@ -3566,7 +3566,7 @@ var rc = {
3566
3566
  return this._fieldSchemaIndex[e];
3567
3567
  }
3568
3568
  tableSchema() {
3569
- let e = (0, F.duplicate)(this._tableSchema);
3569
+ let e = (0, I.duplicate)(this._tableSchema);
3570
3570
  return e.fields.sort((e, t) => e.originalIndex - t.originalIndex), e;
3571
3571
  }
3572
3572
  primitiveType(e) {
@@ -3580,20 +3580,20 @@ var rc = {
3580
3580
  if (e.aggregate || K(e) && e.autoCount) return 1;
3581
3581
  if (e.bin) {
3582
3582
  let t;
3583
- t = typeof e.bin == "boolean" ? { maxbins: wa(e.channel) } : e.bin === "?" ? { enum: [!0, !1] } : e.bin;
3583
+ t = typeof e.bin == "boolean" ? { maxbins: Ca(e.channel) } : e.bin === "?" ? { enum: [!0, !1] } : e.bin;
3584
3584
  let n = t.maxbins;
3585
3585
  return r.binStats[n] || (r.binStats[n] = ac(n, r.stats)), r.binStats[n].distinct;
3586
3586
  }
3587
3587
  if (e.timeUnit) {
3588
3588
  if (t) switch (e.timeUnit) {
3589
- case z.SECONDS: return 60;
3590
- case z.MINUTES: return 60;
3591
- case z.HOURS: return 24;
3592
- case z.DAY: return 7;
3593
- case z.DATE: return 31;
3594
- case z.MONTH: return 12;
3595
- case z.QUARTER: return 4;
3596
- case z.MILLISECONDS: return 1e3;
3589
+ case B.SECONDS: return 60;
3590
+ case B.MINUTES: return 60;
3591
+ case B.HOURS: return 24;
3592
+ case B.DAY: return 7;
3593
+ case B.DATE: return 31;
3594
+ case B.MONTH: return 12;
3595
+ case B.QUARTER: return 4;
3596
+ case B.MILLISECONDS: return 1e3;
3597
3597
  }
3598
3598
  let i = e.timeUnit, a = r.timeStats;
3599
3599
  return (!a || !a[i]) && (a = Object.assign({}, a, { [i]: oc(e.timeUnit, r.stats) })), n ? a[i].distinct - cc(a[i].unique, ["Invalid Date", null]) : a[i].distinct;
@@ -3602,20 +3602,20 @@ var rc = {
3602
3602
  }
3603
3603
  timeUnitHasVariation(e) {
3604
3604
  if (!e.timeUnit) return;
3605
- if (e.timeUnit === z.DAY) {
3606
- let t = (0, F.extend)({}, e, { timeUnit: z.DATE });
3605
+ if (e.timeUnit === B.DAY) {
3606
+ let t = (0, I.extend)({}, e, { timeUnit: B.DATE });
3607
3607
  if (this.cardinality(t, !1, !0) <= 1) return !1;
3608
3608
  }
3609
3609
  let t = e.timeUnit;
3610
- for (let n of Ui) if (na(t, n)) {
3611
- let t = (0, F.extend)({}, e, { timeUnit: n });
3610
+ for (let n of Hi) if (ta(t, n)) {
3611
+ let t = (0, I.extend)({}, e, { timeUnit: n });
3612
3612
  if (this.cardinality(t, !1, !0) <= 1) return !1;
3613
3613
  }
3614
3614
  return !0;
3615
3615
  }
3616
3616
  domain(e) {
3617
- let t = this._fieldSchemaIndex[e.field], n = (0, F.keys)(t.stats.unique);
3618
- return t.vlType === "quantitative" ? [+t.stats.min, +t.stats.max] : t.type === X.DATETIME ? [t.stats.min, t.stats.max] : t.type === X.INTEGER || t.type === X.NUMBER ? (n = n.map((e) => +e), n.sort(F.cmp)) : t.vlType === "ordinal" && t.ordinalDomain ? t.ordinalDomain : n.map((e) => e === "null" ? null : e).sort(F.cmp);
3617
+ let t = this._fieldSchemaIndex[e.field], n = (0, I.keys)(t.stats.unique);
3618
+ return t.vlType === "quantitative" ? [+t.stats.min, +t.stats.max] : t.type === X.DATETIME ? [t.stats.min, t.stats.max] : t.type === X.INTEGER || t.type === X.NUMBER ? (n = n.map((e) => +e), n.sort(I.cmp)) : t.vlType === "ordinal" && t.ordinalDomain ? t.ordinalDomain : n.map((e) => e === "null" ? null : e).sort(I.cmp);
3619
3619
  }
3620
3620
  stats(e) {
3621
3621
  let t = this._fieldSchemaIndex[e.field];
@@ -3627,15 +3627,15 @@ function ac(e, t) {
3627
3627
  min: t.min,
3628
3628
  max: t.max,
3629
3629
  maxbins: e
3630
- }), r = (0, F.extend)({}, t);
3630
+ }), r = (0, I.extend)({}, t);
3631
3631
  return r.unique = sc(n, t.unique), r.distinct = (n.stop - n.start) / n.step, r.min = n.start, r.max = n.stop, r;
3632
3632
  }
3633
3633
  function oc(e, t) {
3634
- let n = (0, F.extend)({}, t), r = {};
3635
- return (0, F.keys)(t.unique).forEach(function(n) {
3634
+ let n = (0, I.extend)({}, t), r = {};
3635
+ return (0, I.keys)(t.unique).forEach(function(n) {
3636
3636
  let i = n === "null" ? null : new Date(n), a;
3637
- a = i === null ? null : isNaN(i.getTime()) ? "Invalid Date" : (e === z.DAY ? i.getDay() : ea(e, i)).toString(), r[a] = (r[a] || 0) + t.unique[n];
3638
- }), n.unique = r, n.distinct = (0, F.keys)(r).length, n;
3637
+ a = i === null ? null : isNaN(i.getTime()) ? "Invalid Date" : (e === B.DAY ? i.getDay() : $i(e, i)).toString(), r[a] = (r[a] || 0) + t.unique[n];
3638
+ }), n.unique = r, n.distinct = (0, I.keys)(r).length, n;
3639
3639
  }
3640
3640
  function sc(e, t) {
3641
3641
  let n = {};
@@ -3677,12 +3677,12 @@ var lc = class {
3677
3677
  super(e);
3678
3678
  }
3679
3679
  hasAllRequiredPropertiesSpecific(e) {
3680
- return ni(this.constraint.properties, (t) => {
3681
- if (oi(t)) {
3680
+ return ti(this.constraint.properties, (t) => {
3681
+ if (ai(t)) {
3682
3682
  let n = t.parent, r = t.child;
3683
- return !e[n] || !B(e[n][r]);
3683
+ return !e[n] || !V(e[n][r]);
3684
3684
  }
3685
- return !e[t] || !B(e[t]);
3685
+ return !e[t] || !V(e[t]);
3686
3686
  });
3687
3687
  }
3688
3688
  satisfy(e, t, n, r) {
@@ -3692,7 +3692,7 @@ var lc = class {
3692
3692
  {
3693
3693
  name: "aggregateOpSupportedByType",
3694
3694
  description: "Aggregate function should be supported by data type.",
3695
- properties: [R.TYPE, R.AGGREGATE],
3695
+ properties: [z.TYPE, z.AGGREGATE],
3696
3696
  allowWildcardForProperties: !1,
3697
3697
  strict: !0,
3698
3698
  satisfy: (e, t, n, r) => !e.aggregate || !za(e.type)
@@ -3700,7 +3700,7 @@ var lc = class {
3700
3700
  {
3701
3701
  name: "asteriskFieldWithCountOnly",
3702
3702
  description: "Field=\"*\" should be disallowed except aggregate=\"count\"",
3703
- properties: [R.FIELD, R.AGGREGATE],
3703
+ properties: [z.FIELD, z.AGGREGATE],
3704
3704
  allowWildcardForProperties: !1,
3705
3705
  strict: !0,
3706
3706
  satisfy: (e, t, n, r) => e.field === "*" == (e.aggregate === "count")
@@ -3709,9 +3709,9 @@ var lc = class {
3709
3709
  name: "minCardinalityForBin",
3710
3710
  description: "binned quantitative field should not have too low cardinality",
3711
3711
  properties: [
3712
- R.BIN,
3713
- R.FIELD,
3714
- R.TYPE
3712
+ z.BIN,
3713
+ z.FIELD,
3714
+ z.TYPE
3715
3715
  ],
3716
3716
  allowWildcardForProperties: !1,
3717
3717
  strict: !0,
@@ -3730,19 +3730,19 @@ var lc = class {
3730
3730
  {
3731
3731
  name: "binAppliedForQuantitative",
3732
3732
  description: "bin should be applied to quantitative field only.",
3733
- properties: [R.TYPE, R.BIN],
3733
+ properties: [z.TYPE, z.BIN],
3734
3734
  allowWildcardForProperties: !1,
3735
3735
  strict: !0,
3736
- satisfy: (e, t, n, r) => !e.bin || e.type === N
3736
+ satisfy: (e, t, n, r) => !e.bin || e.type === P
3737
3737
  },
3738
3738
  {
3739
3739
  name: "channelFieldCompatible",
3740
3740
  description: "encoding channel's range type be compatible with channel type.",
3741
3741
  properties: [
3742
- R.CHANNEL,
3743
- R.TYPE,
3744
- R.BIN,
3745
- R.TIMEUNIT
3742
+ z.CHANNEL,
3743
+ z.TYPE,
3744
+ z.BIN,
3745
+ z.TIMEUNIT
3746
3746
  ],
3747
3747
  allowWildcardForProperties: !1,
3748
3748
  strict: !0,
@@ -3754,17 +3754,17 @@ var lc = class {
3754
3754
  "timeUnit",
3755
3755
  "type"
3756
3756
  ]
3757
- })), { compatible: a } = Ia(i, e.channel);
3758
- return a ? !0 : !!((e.channel === "row" || e.channel === "column") && (Wi(i.timeUnit) || Ki(i.timeUnit)));
3757
+ })), { compatible: a } = Fa(i, e.channel);
3758
+ return a ? !0 : !!((e.channel === "row" || e.channel === "column") && (Ui(i.timeUnit) || Gi(i.timeUnit)));
3759
3759
  }
3760
3760
  },
3761
3761
  {
3762
3762
  name: "hasFn",
3763
3763
  description: "A field with as hasFn flag should have one of aggregate, timeUnit, or bin.",
3764
3764
  properties: [
3765
- R.AGGREGATE,
3766
- R.BIN,
3767
- R.TIMEUNIT
3765
+ z.AGGREGATE,
3766
+ z.BIN,
3767
+ z.TIMEUNIT
3768
3768
  ],
3769
3769
  allowWildcardForProperties: !0,
3770
3770
  strict: !0,
@@ -3774,9 +3774,9 @@ var lc = class {
3774
3774
  name: "omitScaleZeroWithBinnedField",
3775
3775
  description: "Do not use scale zero with binned field",
3776
3776
  properties: [
3777
- R.SCALE,
3778
- Ti("scale", "zero"),
3779
- R.BIN
3777
+ z.SCALE,
3778
+ wi("scale", "zero"),
3779
+ z.BIN
3780
3780
  ],
3781
3781
  allowWildcardForProperties: !1,
3782
3782
  strict: !0,
@@ -3786,19 +3786,19 @@ var lc = class {
3786
3786
  name: "onlyOneTypeOfFunction",
3787
3787
  description: "Only of of aggregate, autoCount, timeUnit, or bin should be applied at the same time.",
3788
3788
  properties: [
3789
- R.AGGREGATE,
3790
- R.AUTOCOUNT,
3791
- R.TIMEUNIT,
3792
- R.BIN
3789
+ z.AGGREGATE,
3790
+ z.AUTOCOUNT,
3791
+ z.TIMEUNIT,
3792
+ z.BIN
3793
3793
  ],
3794
3794
  allowWildcardForProperties: !0,
3795
3795
  strict: !0,
3796
- satisfy: (e, t, n, r) => !G(e) || (!B(e.aggregate) && e.aggregate ? 1 : 0) + (!B(e.bin) && e.bin ? 1 : 0) + (!B(e.timeUnit) && e.timeUnit ? 1 : 0) <= 1
3796
+ satisfy: (e, t, n, r) => !G(e) || (!V(e.aggregate) && e.aggregate ? 1 : 0) + (!V(e.bin) && e.bin ? 1 : 0) + (!V(e.timeUnit) && e.timeUnit ? 1 : 0) <= 1
3797
3797
  },
3798
3798
  {
3799
3799
  name: "timeUnitAppliedForTemporal",
3800
3800
  description: "Time unit should be applied to temporal field only.",
3801
- properties: [R.TYPE, R.TIMEUNIT],
3801
+ properties: [z.TYPE, z.TIMEUNIT],
3802
3802
  allowWildcardForProperties: !1,
3803
3803
  strict: !0,
3804
3804
  satisfy: (e, t, n, r) => !(e.timeUnit && e.type !== "temporal")
@@ -3806,7 +3806,7 @@ var lc = class {
3806
3806
  {
3807
3807
  name: "timeUnitShouldHaveVariation",
3808
3808
  description: "A particular time unit should be applied only if they produce unique values.",
3809
- properties: [R.TIMEUNIT, R.TYPE],
3809
+ properties: [z.TIMEUNIT, z.TYPE],
3810
3810
  allowWildcardForProperties: !1,
3811
3811
  strict: !1,
3812
3812
  satisfy: (e, t, n, r) => e.timeUnit && e.type === "temporal" ? !n.has("timeUnit") && !r.constraintManuallySpecifiedValue || t.timeUnitHasVariation(e) : !0
@@ -3814,7 +3814,7 @@ var lc = class {
3814
3814
  {
3815
3815
  name: "scalePropertiesSupportedByScaleType",
3816
3816
  description: "Scale properties must be supported by correct scale type",
3817
- properties: [].concat(gi, [R.SCALE, R.TYPE]),
3817
+ properties: [].concat(hi, [z.SCALE, z.TYPE]),
3818
3818
  allowWildcardForProperties: !0,
3819
3819
  strict: !0,
3820
3820
  satisfy: (e, t, n, r) => {
@@ -3825,8 +3825,8 @@ var lc = class {
3825
3825
  if (e === "type" || e === "name" || e === "enum") continue;
3826
3826
  let t = e;
3827
3827
  if (n === "point") {
3828
- if (!Yr("point", t) && !Yr("band", t)) return !1;
3829
- } else if (!Yr(n, t)) return !1;
3828
+ if (!Jr("point", t) && !Jr("band", t)) return !1;
3829
+ } else if (!Jr(n, t)) return !1;
3830
3830
  }
3831
3831
  }
3832
3832
  return !0;
@@ -3835,15 +3835,15 @@ var lc = class {
3835
3835
  {
3836
3836
  name: "scalePropertiesSupportedByChannel",
3837
3837
  description: "Not all scale properties are supported by all encoding channels",
3838
- properties: [].concat(gi, [R.SCALE, R.CHANNEL]),
3838
+ properties: [].concat(hi, [z.SCALE, z.CHANNEL]),
3839
3839
  allowWildcardForProperties: !0,
3840
3840
  strict: !0,
3841
3841
  satisfy: (e, t, n, r) => {
3842
3842
  if (e) {
3843
3843
  let t = e.channel, n = e.scale;
3844
- if (t && !B(t) && n) {
3844
+ if (t && !V(t) && n) {
3845
3845
  if (t === "row" || t === "column") return !1;
3846
- for (let e in n) if (n.hasOwnProperty(e) && e !== "type" && e !== "name" && e !== "enum" && Xr(t, e) !== void 0) return !1;
3846
+ for (let e in n) if (n.hasOwnProperty(e) && e !== "type" && e !== "name" && e !== "enum" && Yr(t, e) !== void 0) return !1;
3847
3847
  }
3848
3848
  }
3849
3849
  return !0;
@@ -3852,7 +3852,7 @@ var lc = class {
3852
3852
  {
3853
3853
  name: "typeMatchesPrimitiveType",
3854
3854
  description: "Data type should be supported by field's primitive type.",
3855
- properties: [R.FIELD, R.TYPE],
3855
+ properties: [z.FIELD, z.TYPE],
3856
3856
  allowWildcardForProperties: !1,
3857
3857
  strict: !0,
3858
3858
  satisfy: (e, t, n, r) => {
@@ -3863,8 +3863,8 @@ var lc = class {
3863
3863
  case X.BOOLEAN:
3864
3864
  case X.STRING: return a !== "quantitative" && a !== "temporal";
3865
3865
  case X.NUMBER:
3866
- case X.INTEGER: return a !== Or;
3867
- case X.DATETIME: return a === Or;
3866
+ case X.INTEGER: return a !== Dr;
3867
+ case X.DATETIME: return a === Dr;
3868
3868
  case null: return !1;
3869
3869
  }
3870
3870
  throw Error("Not implemented");
@@ -3873,27 +3873,27 @@ var lc = class {
3873
3873
  {
3874
3874
  name: "typeMatchesSchemaType",
3875
3875
  description: "Enumerated data type of a field should match the field's type in the schema.",
3876
- properties: [R.FIELD, R.TYPE],
3876
+ properties: [z.FIELD, z.TYPE],
3877
3877
  allowWildcardForProperties: !1,
3878
3878
  strict: !1,
3879
- satisfy: (e, t, n, r) => !n.has("field") && !n.has("type") && !r.constraintManuallySpecifiedValue ? !0 : e.field === "*" ? e.type === N : t.vlType(e.field) === e.type
3879
+ satisfy: (e, t, n, r) => !n.has("field") && !n.has("type") && !r.constraintManuallySpecifiedValue ? !0 : e.field === "*" ? e.type === P : t.vlType(e.field) === e.type
3880
3880
  },
3881
3881
  {
3882
3882
  name: "maxCardinalityForCategoricalColor",
3883
3883
  description: "Categorical channel should not have too high cardinality",
3884
- properties: [R.CHANNEL, R.FIELD],
3884
+ properties: [z.CHANNEL, z.FIELD],
3885
3885
  allowWildcardForProperties: !1,
3886
3886
  strict: !1,
3887
- satisfy: (e, t, n, r) => e.channel === "color" && (e.type === "nominal" || e.type === H.KEY) ? t.cardinality(e) <= r.maxCardinalityForCategoricalColor : !0
3887
+ satisfy: (e, t, n, r) => e.channel === "color" && (e.type === "nominal" || e.type === Ra.KEY) ? t.cardinality(e) <= r.maxCardinalityForCategoricalColor : !0
3888
3888
  },
3889
3889
  {
3890
3890
  name: "maxCardinalityForFacet",
3891
3891
  description: "Row/column channel should not have too high cardinality",
3892
3892
  properties: [
3893
- R.CHANNEL,
3894
- R.FIELD,
3895
- R.BIN,
3896
- R.TIMEUNIT
3893
+ z.CHANNEL,
3894
+ z.FIELD,
3895
+ z.BIN,
3896
+ z.TIMEUNIT
3897
3897
  ],
3898
3898
  allowWildcardForProperties: !1,
3899
3899
  strict: !1,
@@ -3903,10 +3903,10 @@ var lc = class {
3903
3903
  name: "maxCardinalityForShape",
3904
3904
  description: "Shape channel should not have too high cardinality",
3905
3905
  properties: [
3906
- R.CHANNEL,
3907
- R.FIELD,
3908
- R.BIN,
3909
- R.TIMEUNIT
3906
+ z.CHANNEL,
3907
+ z.FIELD,
3908
+ z.BIN,
3909
+ z.TIMEUNIT
3910
3910
  ],
3911
3911
  allowWildcardForProperties: !1,
3912
3912
  strict: !1,
@@ -3916,34 +3916,34 @@ var lc = class {
3916
3916
  name: "dataTypeAndFunctionMatchScaleType",
3917
3917
  description: "Scale type must match data type",
3918
3918
  properties: [
3919
- R.TYPE,
3920
- R.SCALE,
3921
- Ti("scale", "type"),
3922
- R.TIMEUNIT,
3923
- R.BIN
3919
+ z.TYPE,
3920
+ z.SCALE,
3921
+ wi("scale", "type"),
3922
+ z.TIMEUNIT,
3923
+ z.BIN
3924
3924
  ],
3925
3925
  allowWildcardForProperties: !1,
3926
3926
  strict: !0,
3927
3927
  satisfy: (e, t, n, r) => {
3928
3928
  if (e.scale) {
3929
3929
  let t = e.type, n = xo(e);
3930
- if (za(t)) return n === void 0 || Rr(n);
3931
- if (t === "temporal") return e.timeUnit ? I([
3932
- P.TIME,
3933
- P.UTC,
3930
+ if (za(t)) return n === void 0 || Lr(n);
3931
+ if (t === "temporal") return e.timeUnit ? L([
3932
+ F.TIME,
3933
+ F.UTC,
3934
3934
  void 0
3935
- ], n) || Rr(n) : I([
3936
- P.TIME,
3937
- P.UTC,
3935
+ ], n) || Lr(n) : L([
3936
+ F.TIME,
3937
+ F.UTC,
3938
3938
  void 0
3939
3939
  ], n);
3940
- if (t === "quantitative") return e.bin ? I([P.LINEAR, void 0], n) : I([
3941
- P.LOG,
3942
- P.POW,
3943
- P.SQRT,
3944
- P.QUANTILE,
3945
- P.QUANTIZE,
3946
- P.LINEAR,
3940
+ if (t === "quantitative") return e.bin ? L([F.LINEAR, void 0], n) : L([
3941
+ F.LOG,
3942
+ F.POW,
3943
+ F.SQRT,
3944
+ F.QUANTILE,
3945
+ F.QUANTIZE,
3946
+ F.LINEAR,
3947
3947
  void 0
3948
3948
  ], n);
3949
3949
  }
@@ -3953,7 +3953,7 @@ var lc = class {
3953
3953
  {
3954
3954
  name: "stackIsOnlyUsedWithXY",
3955
3955
  description: "stack should only be allowed for x and y channels",
3956
- properties: [R.STACK, R.CHANNEL],
3956
+ properties: [z.STACK, z.CHANNEL],
3957
3957
  allowWildcardForProperties: !1,
3958
3958
  strict: !0,
3959
3959
  satisfy: (e, t, n, r) => !e.stack || e.channel === "x" || e.channel === "y"
@@ -3966,10 +3966,10 @@ var fc = dc.reduce((e, t) => {
3966
3966
  }, new U()), pc = [{
3967
3967
  name: "doesNotSupportConstantValue",
3968
3968
  description: "row, column, x, y, order, and detail should not work with constant values.",
3969
- properties: [R.TYPE, R.AGGREGATE],
3969
+ properties: [z.TYPE, z.AGGREGATE],
3970
3970
  allowWildcardForProperties: !1,
3971
3971
  strict: !0,
3972
- satisfy: (e, t, n, r) => !I([
3972
+ satisfy: (e, t, n, r) => !L([
3973
3973
  "row",
3974
3974
  "column",
3975
3975
  "x",
@@ -4000,19 +4000,19 @@ function hc(e, t, n, r, i, a) {
4000
4000
  }
4001
4001
  //#endregion
4002
4002
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/constraint/spec.js
4003
- var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4003
+ var gc = Rt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4004
4004
  constructor(e) {
4005
4005
  super(e);
4006
4006
  }
4007
4007
  hasAllRequiredPropertiesSpecific(e) {
4008
- return ni(this.constraint.properties, (t) => {
4009
- if (t === R.MARK) return !B(e.getMark());
4010
- if (oi(t)) {
4008
+ return ti(this.constraint.properties, (t) => {
4009
+ if (t === z.MARK) return !V(e.getMark());
4010
+ if (ai(t)) {
4011
4011
  let n = t.parent, r = t.child;
4012
- return ni(e.getEncodings(), (e) => !e[n] || !B(e[n][r]));
4012
+ return ti(e.getEncodings(), (e) => !e[n] || !V(e[n][r]));
4013
4013
  }
4014
- if (!Ei(t)) throw Error("UNIMPLEMENTED");
4015
- return ni(e.getEncodings(), (e) => !e[t] || !B(e[t]));
4014
+ if (!Ti(t)) throw Error("UNIMPLEMENTED");
4015
+ return ti(e.getEncodings(), (e) => !e[t] || !V(e[t]));
4016
4016
  });
4017
4017
  }
4018
4018
  satisfy(e, t, n) {
@@ -4022,23 +4022,23 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4022
4022
  {
4023
4023
  name: "noRepeatedChannel",
4024
4024
  description: "Each encoding channel should only be used once.",
4025
- properties: [R.CHANNEL],
4025
+ properties: [z.CHANNEL],
4026
4026
  allowWildcardForProperties: !0,
4027
4027
  strict: !0,
4028
4028
  satisfy: (e, t, n) => {
4029
4029
  let r = {};
4030
- return ni(e.getEncodings(), (e) => B(e.channel) ? !0 : !r[e.channel] && (r[e.channel] = !0, !0));
4030
+ return ti(e.getEncodings(), (e) => V(e.channel) ? !0 : !r[e.channel] && (r[e.channel] = !0, !0));
4031
4031
  }
4032
4032
  },
4033
4033
  {
4034
4034
  name: "alwaysIncludeZeroInScaleWithBarMark",
4035
4035
  description: "Do not recommend bar mark if scale does not start at zero",
4036
4036
  properties: [
4037
- R.MARK,
4038
- R.SCALE,
4039
- Ti("scale", "zero"),
4040
- R.CHANNEL,
4041
- R.TYPE
4037
+ z.MARK,
4038
+ z.SCALE,
4039
+ wi("scale", "zero"),
4040
+ z.CHANNEL,
4041
+ z.TYPE
4042
4042
  ],
4043
4043
  allowWildcardForProperties: !1,
4044
4044
  strict: !0,
@@ -4054,59 +4054,59 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4054
4054
  name: "autoAddCount",
4055
4055
  description: "Automatically adding count only for plots with only ordinal, binned quantitative, or temporal with timeunit fields.",
4056
4056
  properties: [
4057
- R.BIN,
4058
- R.TIMEUNIT,
4059
- R.TYPE,
4060
- R.AUTOCOUNT
4057
+ z.BIN,
4058
+ z.TIMEUNIT,
4059
+ z.TYPE,
4060
+ z.AUTOCOUNT
4061
4061
  ],
4062
4062
  allowWildcardForProperties: !0,
4063
4063
  strict: !1,
4064
- satisfy: (e, t, n) => ri(e.getEncodings(), (e) => mo(e)) ? ni(e.getEncodings(), (e) => {
4064
+ satisfy: (e, t, n) => ni(e.getEncodings(), (e) => mo(e)) ? ti(e.getEncodings(), (e) => {
4065
4065
  if (W(e) || K(e)) return !0;
4066
4066
  switch (e.type) {
4067
- case N: return !!e.bin;
4068
- case Or: return !!e.timeUnit;
4069
- case Dr:
4070
- case H.KEY:
4071
- case kr: return !0;
4067
+ case P: return !!e.bin;
4068
+ case Dr: return !!e.timeUnit;
4069
+ case Er:
4070
+ case Ra.KEY:
4071
+ case Or: return !0;
4072
4072
  }
4073
4073
  /* istanbul ignore next */
4074
4074
  throw Error("Unsupported Type");
4075
- }) : !ni(e.wildcardIndex.encodingIndicesByProperty.get("autoCount") || [], (t) => {
4075
+ }) : !ti(e.wildcardIndex.encodingIndicesByProperty.get("autoCount") || [], (t) => {
4076
4076
  let n = e.getEncodingQueryByIndex(t);
4077
- return K(n) && !B(n.autoCount);
4078
- }) || ri(e.getEncodings(), (e) => (G(e) || K(e)) && e.type === "quantitative" ? !q(e) && G(e) && (!e.bin || B(e.bin)) : G(e) && e.type === "temporal" ? !e.timeUnit || B(e.timeUnit) : !1)
4077
+ return K(n) && !V(n.autoCount);
4078
+ }) || ni(e.getEncodings(), (e) => (G(e) || K(e)) && e.type === "quantitative" ? !q(e) && G(e) && (!e.bin || V(e.bin)) : G(e) && e.type === "temporal" ? !e.timeUnit || V(e.timeUnit) : !1)
4079
4079
  },
4080
4080
  {
4081
4081
  name: "channelPermittedByMarkType",
4082
4082
  description: "Each encoding channel should be supported by the mark type",
4083
- properties: [R.CHANNEL, R.MARK],
4083
+ properties: [z.CHANNEL, z.MARK],
4084
4084
  allowWildcardForProperties: !0,
4085
4085
  strict: !0,
4086
4086
  satisfy: (e, t, n) => {
4087
4087
  let r = e.getMark();
4088
- return B(r) ? !0 : ni(e.getEncodings(), (e) => B(e.channel) ? !0 : !!Xt(e.channel, r));
4088
+ return V(r) ? !0 : ti(e.getEncodings(), (e) => V(e.channel) ? !0 : !!Yt(e.channel, r));
4089
4089
  }
4090
4090
  },
4091
4091
  {
4092
4092
  name: "hasAllRequiredChannelsForMark",
4093
4093
  description: "All required channels for the specified mark should be specified",
4094
- properties: [R.CHANNEL, R.MARK],
4094
+ properties: [z.CHANNEL, z.MARK],
4095
4095
  allowWildcardForProperties: !1,
4096
4096
  strict: !0,
4097
4097
  satisfy: (e, t, n) => {
4098
4098
  let r = e.getMark();
4099
4099
  switch (r) {
4100
- case ki:
4101
- case Ai: return e.channelUsed("x") && e.channelUsed("y");
4102
- case Pi: return e.channelUsed(lt);
4100
+ case Oi:
4101
+ case ki: return e.channelUsed("x") && e.channelUsed("y");
4102
+ case Ni: return e.channelUsed(ct);
4103
4103
  case "bar":
4104
- case Ii:
4105
- case Li:
4106
4104
  case Fi:
4107
- case Ni:
4108
- case Mi: return e.channelUsed("x") || e.channelUsed("y");
4109
- case ji: return !e.wildcardIndex.hasProperty(R.CHANNEL) || e.channelUsed("x") || e.channelUsed("y");
4105
+ case Ii:
4106
+ case Pi:
4107
+ case Mi:
4108
+ case ji: return e.channelUsed("x") || e.channelUsed("y");
4109
+ case Ai: return !e.wildcardIndex.hasProperty(z.CHANNEL) || e.channelUsed("x") || e.channelUsed("y");
4110
4110
  }
4111
4111
  /* istanbul ignore next */
4112
4112
  throw Error("hasAllRequiredChannelsForMark not implemented for mark" + JSON.stringify(r));
@@ -4115,7 +4115,7 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4115
4115
  {
4116
4116
  name: "omitAggregate",
4117
4117
  description: "Omit aggregate plots.",
4118
- properties: [R.AGGREGATE, R.AUTOCOUNT],
4118
+ properties: [z.AGGREGATE, z.AUTOCOUNT],
4119
4119
  allowWildcardForProperties: !0,
4120
4120
  strict: !1,
4121
4121
  satisfy: (e, t, n) => !e.isAggregate()
@@ -4124,9 +4124,9 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4124
4124
  name: "omitAggregatePlotWithDimensionOnlyOnFacet",
4125
4125
  description: "Omit aggregate plots with dimensions only on facets as that leads to inefficient use of space.",
4126
4126
  properties: [
4127
- R.CHANNEL,
4128
- R.AGGREGATE,
4129
- R.AUTOCOUNT
4127
+ z.CHANNEL,
4128
+ z.AGGREGATE,
4129
+ z.AUTOCOUNT
4130
4130
  ],
4131
4131
  allowWildcardForProperties: !1,
4132
4132
  strict: !1,
@@ -4134,7 +4134,7 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4134
4134
  if (e.isAggregate()) {
4135
4135
  let t = !1, r = !1, i = !1;
4136
4136
  if (e.specQuery.encodings.forEach((n, a) => {
4137
- W(n) || q(n) || G(n) && !n.aggregate && (r = !0, I(["row", "column"], n.channel) ? e.wildcardIndex.hasEncodingProperty(a, R.CHANNEL) && (i = !0) : t = !0);
4137
+ W(n) || q(n) || G(n) && !n.aggregate && (r = !0, L(["row", "column"], n.channel) ? e.wildcardIndex.hasEncodingProperty(a, z.CHANNEL) && (i = !0) : t = !0);
4138
4138
  }), r && !t && (i || n.constraintManuallySpecifiedValue)) return !1;
4139
4139
  }
4140
4140
  return !0;
@@ -4144,27 +4144,27 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4144
4144
  name: "omitAggregatePlotWithoutDimension",
4145
4145
  description: "Aggregate plots without dimension should be omitted",
4146
4146
  properties: [
4147
- R.AGGREGATE,
4148
- R.AUTOCOUNT,
4149
- R.BIN,
4150
- R.TIMEUNIT,
4151
- R.TYPE
4147
+ z.AGGREGATE,
4148
+ z.AUTOCOUNT,
4149
+ z.BIN,
4150
+ z.TIMEUNIT,
4151
+ z.TYPE
4152
4152
  ],
4153
4153
  allowWildcardForProperties: !1,
4154
4154
  strict: !1,
4155
- satisfy: (e, t, n) => !e.isAggregate() || ri(e.getEncodings(), (e) => !!(bo(e) || G(e) && e.type === "temporal"))
4155
+ satisfy: (e, t, n) => !e.isAggregate() || ni(e.getEncodings(), (e) => !!(bo(e) || G(e) && e.type === "temporal"))
4156
4156
  },
4157
4157
  {
4158
4158
  name: "omitBarLineAreaWithOcclusion",
4159
4159
  description: "Don't use bar, line or area to visualize raw plot as they often lead to occlusion.",
4160
4160
  properties: [
4161
- R.MARK,
4162
- R.AGGREGATE,
4163
- R.AUTOCOUNT
4161
+ z.MARK,
4162
+ z.AGGREGATE,
4163
+ z.AUTOCOUNT
4164
4164
  ],
4165
4165
  allowWildcardForProperties: !1,
4166
4166
  strict: !1,
4167
- satisfy: (e, t, n) => !I([
4167
+ satisfy: (e, t, n) => !L([
4168
4168
  "bar",
4169
4169
  "line",
4170
4170
  "area"
@@ -4173,15 +4173,15 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4173
4173
  {
4174
4174
  name: "omitBarTickWithSize",
4175
4175
  description: "Do not map field to size channel with bar and tick mark",
4176
- properties: [R.CHANNEL, R.MARK],
4176
+ properties: [z.CHANNEL, z.MARK],
4177
4177
  allowWildcardForProperties: !0,
4178
4178
  strict: !1,
4179
4179
  satisfy: (e, t, n) => {
4180
- if (I(["tick", "bar"], e.getMark()) && e.channelEncodingField("size")) {
4180
+ if (L(["tick", "bar"], e.getMark()) && e.channelEncodingField("size")) {
4181
4181
  if (n.constraintManuallySpecifiedValue) return !1;
4182
4182
  {
4183
4183
  let t = e.specQuery.encodings;
4184
- for (let n = 0; n < t.length; n++) if (t[n].channel === "size") return !e.wildcardIndex.hasEncodingProperty(n, R.CHANNEL);
4184
+ for (let n = 0; n < t.length; n++) if (t[n].channel === "size") return !e.wildcardIndex.hasEncodingProperty(n, z.CHANNEL);
4185
4185
  }
4186
4186
  }
4187
4187
  return !0;
@@ -4191,18 +4191,18 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4191
4191
  name: "omitBarAreaForLogScale",
4192
4192
  description: "Do not use bar and area mark for x and y's log scale",
4193
4193
  properties: [
4194
- R.MARK,
4195
- R.CHANNEL,
4196
- R.SCALE,
4197
- Ti("scale", "type"),
4198
- R.TYPE
4194
+ z.MARK,
4195
+ z.CHANNEL,
4196
+ z.SCALE,
4197
+ wi("scale", "type"),
4198
+ z.TYPE
4199
4199
  ],
4200
4200
  allowWildcardForProperties: !1,
4201
4201
  strict: !0,
4202
4202
  satisfy: (e, t, n) => {
4203
4203
  let r = e.getMark(), i = e.getEncodings();
4204
4204
  if (r === "area" || r === "bar") {
4205
- for (let e of i) if (G(e) && (e.channel === "x" || e.channel === "y") && e.scale && xo(e) === P.LOG) return !1;
4205
+ for (let e of i) if (G(e) && (e.channel === "x" || e.channel === "y") && e.scale && xo(e) === F.LOG) return !1;
4206
4206
  }
4207
4207
  return !0;
4208
4208
  }
@@ -4210,7 +4210,7 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4210
4210
  {
4211
4211
  name: "omitMultipleNonPositionalChannels",
4212
4212
  description: "Unless manually specified, do not use multiple non-positional encoding channel to avoid over-encoding.",
4213
- properties: [R.CHANNEL],
4213
+ properties: [z.CHANNEL],
4214
4214
  allowWildcardForProperties: !0,
4215
4215
  strict: !1,
4216
4216
  satisfy: (e, t, n) => {
@@ -4219,7 +4219,7 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4219
4219
  let o = r[t];
4220
4220
  if (W(o) || q(o)) continue;
4221
4221
  let s = o.channel;
4222
- if (!B(s) && gc[s + ""] && (i += 1, e.wildcardIndex.hasEncodingProperty(t, R.CHANNEL) && (a = !0), i > 1 && (a || n.constraintManuallySpecifiedValue))) return !1;
4222
+ if (!V(s) && gc[s + ""] && (i += 1, e.wildcardIndex.hasEncodingProperty(t, z.CHANNEL) && (a = !0), i > 1 && (a || n.constraintManuallySpecifiedValue))) return !1;
4223
4223
  }
4224
4224
  return !0;
4225
4225
  }
@@ -4227,7 +4227,7 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4227
4227
  {
4228
4228
  name: "omitNonPositionalOrFacetOverPositionalChannels",
4229
4229
  description: "Do not use non-positional channels unless all positional channels are used",
4230
- properties: [R.CHANNEL],
4230
+ properties: [z.CHANNEL],
4231
4231
  allowWildcardForProperties: !1,
4232
4232
  strict: !1,
4233
4233
  satisfy: (e, t, n) => {
@@ -4236,7 +4236,7 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4236
4236
  let n = r[t];
4237
4237
  if (W(n) || q(n)) continue;
4238
4238
  let c = n.channel;
4239
- c === "x" ? o = !0 : c === "y" ? s = !0 : B(c) || (i = !0, e.wildcardIndex.hasEncodingProperty(t, R.CHANNEL) && (a = !0));
4239
+ c === "x" ? o = !0 : c === "y" ? s = !0 : V(c) || (i = !0, e.wildcardIndex.hasEncodingProperty(t, z.CHANNEL) && (a = !0));
4240
4240
  }
4241
4241
  return a || n.constraintManuallySpecifiedValue && i ? o && s : !0;
4242
4242
  }
@@ -4244,7 +4244,7 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4244
4244
  {
4245
4245
  name: "omitRaw",
4246
4246
  description: "Omit raw plots.",
4247
- properties: [R.AGGREGATE, R.AUTOCOUNT],
4247
+ properties: [z.AGGREGATE, z.AUTOCOUNT],
4248
4248
  allowWildcardForProperties: !1,
4249
4249
  strict: !1,
4250
4250
  satisfy: (e, t, n) => !!e.isAggregate()
@@ -4253,11 +4253,11 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4253
4253
  name: "omitRawContinuousFieldForAggregatePlot",
4254
4254
  description: "Aggregate plot should not use raw continuous field as group by values. (Quantitative should be binned. Temporal should have time unit.)",
4255
4255
  properties: [
4256
- R.AGGREGATE,
4257
- R.AUTOCOUNT,
4258
- R.TIMEUNIT,
4259
- R.BIN,
4260
- R.TYPE
4256
+ z.AGGREGATE,
4257
+ z.AUTOCOUNT,
4258
+ z.TIMEUNIT,
4259
+ z.BIN,
4260
+ z.TYPE
4261
4261
  ],
4262
4262
  allowWildcardForProperties: !0,
4263
4263
  strict: !1,
@@ -4266,7 +4266,7 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4266
4266
  let t = e.specQuery.encodings;
4267
4267
  for (let r = 0; r < t.length; r++) {
4268
4268
  let i = t[r];
4269
- if (!(W(i) || q(i)) && (G(i) && i.type === "temporal" && !i.timeUnit && (e.wildcardIndex.hasEncodingProperty(r, R.TIMEUNIT) || n.constraintManuallySpecifiedValue) || i.type === "quantitative" && G(i) && !i.bin && !i.aggregate && (e.wildcardIndex.hasEncodingProperty(r, R.BIN) || e.wildcardIndex.hasEncodingProperty(r, R.AGGREGATE) || e.wildcardIndex.hasEncodingProperty(r, R.AUTOCOUNT) || n.constraintManuallySpecifiedValue))) return !1;
4269
+ if (!(W(i) || q(i)) && (G(i) && i.type === "temporal" && !i.timeUnit && (e.wildcardIndex.hasEncodingProperty(r, z.TIMEUNIT) || n.constraintManuallySpecifiedValue) || i.type === "quantitative" && G(i) && !i.bin && !i.aggregate && (e.wildcardIndex.hasEncodingProperty(r, z.BIN) || e.wildcardIndex.hasEncodingProperty(r, z.AGGREGATE) || e.wildcardIndex.hasEncodingProperty(r, z.AUTOCOUNT) || n.constraintManuallySpecifiedValue))) return !1;
4270
4270
  }
4271
4271
  }
4272
4272
  return !0;
@@ -4276,18 +4276,18 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4276
4276
  name: "omitRawDetail",
4277
4277
  description: "Do not use detail channel with raw plot.",
4278
4278
  properties: [
4279
- R.CHANNEL,
4280
- R.AGGREGATE,
4281
- R.AUTOCOUNT
4279
+ z.CHANNEL,
4280
+ z.AGGREGATE,
4281
+ z.AUTOCOUNT
4282
4282
  ],
4283
4283
  allowWildcardForProperties: !1,
4284
4284
  strict: !0,
4285
- satisfy: (e, t, n) => e.isAggregate() ? !0 : ni(e.specQuery.encodings, (t, r) => W(t) || q(t) ? !0 : !(t.channel === "detail" && (e.wildcardIndex.hasEncodingProperty(r, R.CHANNEL) || n.constraintManuallySpecifiedValue)))
4285
+ satisfy: (e, t, n) => e.isAggregate() ? !0 : ti(e.specQuery.encodings, (t, r) => W(t) || q(t) ? !0 : !(t.channel === "detail" && (e.wildcardIndex.hasEncodingProperty(r, z.CHANNEL) || n.constraintManuallySpecifiedValue)))
4286
4286
  },
4287
4287
  {
4288
4288
  name: "omitRepeatedField",
4289
4289
  description: "Each field should be mapped to only one channel",
4290
- properties: [R.FIELD],
4290
+ properties: [z.FIELD],
4291
4291
  allowWildcardForProperties: !0,
4292
4292
  strict: !1,
4293
4293
  satisfy: (e, t, n) => {
@@ -4296,8 +4296,8 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4296
4296
  let o = a[t];
4297
4297
  if (W(o) || K(o)) continue;
4298
4298
  let s;
4299
- if (o.field && !B(o.field) && (s = o.field), K(o) && !B(o.autoCount) && (s = "count_*"), s) {
4300
- if (e.wildcardIndex.hasEncodingProperty(t, R.FIELD) && (i[s] = !0), r[s] && (i[s] || n.constraintManuallySpecifiedValue)) return !1;
4299
+ if (o.field && !V(o.field) && (s = o.field), K(o) && !V(o.autoCount) && (s = "count_*"), s) {
4300
+ if (e.wildcardIndex.hasEncodingProperty(t, z.FIELD) && (i[s] = !0), r[s] && (i[s] || n.constraintManuallySpecifiedValue)) return !1;
4301
4301
  r[s] = !0;
4302
4302
  }
4303
4303
  }
@@ -4307,7 +4307,7 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4307
4307
  {
4308
4308
  name: "omitVerticalDotPlot",
4309
4309
  description: "Do not output vertical dot plot.",
4310
- properties: [R.CHANNEL],
4310
+ properties: [z.CHANNEL],
4311
4311
  allowWildcardForProperties: !0,
4312
4312
  strict: !1,
4313
4313
  satisfy: (e, t, n) => {
@@ -4319,41 +4319,41 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4319
4319
  name: "hasAppropriateGraphicTypeForMark",
4320
4320
  description: "Has appropriate graphic type for mark",
4321
4321
  properties: [
4322
- R.CHANNEL,
4323
- R.MARK,
4324
- R.TYPE,
4325
- R.TIMEUNIT,
4326
- R.BIN,
4327
- R.AGGREGATE,
4328
- R.AUTOCOUNT
4322
+ z.CHANNEL,
4323
+ z.MARK,
4324
+ z.TYPE,
4325
+ z.TIMEUNIT,
4326
+ z.BIN,
4327
+ z.AGGREGATE,
4328
+ z.AUTOCOUNT
4329
4329
  ],
4330
4330
  allowWildcardForProperties: !1,
4331
4331
  strict: !1,
4332
4332
  satisfy: (e, t, n) => {
4333
4333
  let r = e.getMark();
4334
4334
  switch (r) {
4335
+ case Oi:
4335
4336
  case ki:
4336
- case Ai:
4337
4337
  if (e.isAggregate()) {
4338
4338
  let t = e.getEncodingQueryByChannel("x"), n = e.getEncodingQueryByChannel("y"), r = yo(t), i = yo(n);
4339
- return t && n && r !== i && !(G(t) && !r && I(["nominal", "key"], t.type)) && !(G(n) && !i && I(["nominal", "key"], n.type));
4339
+ return t && n && r !== i && !(G(t) && !r && L(["nominal", "key"], t.type)) && !(G(n) && !i && L(["nominal", "key"], n.type));
4340
4340
  }
4341
4341
  return !0;
4342
- case Pi: return !0;
4342
+ case Ni: return !0;
4343
4343
  case "bar":
4344
- case Fi:
4344
+ case Pi:
4345
4345
  if (e.channelEncodingField("size")) return !1;
4346
4346
  {
4347
4347
  let t = e.getEncodingQueryByChannel("x"), n = e.getEncodingQueryByChannel("y");
4348
4348
  return yo(t) !== yo(n);
4349
4349
  }
4350
- case Mi:
4351
- let t = e.getEncodingQueryByChannel("x"), n = e.getEncodingQueryByChannel("y"), r = bo(t), i = bo(n), a = e.getEncodingQueryByChannel(et), o = yo(a), s = G(a) ? a.type === Dr : !1;
4350
+ case ji:
4351
+ let t = e.getEncodingQueryByChannel("x"), n = e.getEncodingQueryByChannel("y"), r = bo(t), i = bo(n), a = e.getEncodingQueryByChannel($e), o = yo(a), s = G(a) ? a.type === Er : !1;
4352
4352
  return (r && i || r && !e.channelUsed("y") || i && !e.channelUsed("x")) && (!a || a && (o || s));
4353
+ case Fi:
4354
+ case Ai:
4353
4355
  case Ii:
4354
- case ji:
4355
- case Li:
4356
- case Ni: return !0;
4356
+ case Mi: return !0;
4357
4357
  }
4358
4358
  /* istanbul ignore next */
4359
4359
  throw Error("hasAllRequiredChannelsForMark not implemented for mark" + r);
@@ -4363,20 +4363,20 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4363
4363
  name: "omitInvalidStackSpec",
4364
4364
  description: "If stack is specified, must follow Vega-Lite stack rules",
4365
4365
  properties: [
4366
- R.STACK,
4367
- R.FIELD,
4368
- R.CHANNEL,
4369
- R.MARK,
4370
- R.AGGREGATE,
4371
- R.AUTOCOUNT,
4372
- R.SCALE,
4373
- Ti("scale", "type"),
4374
- R.TYPE
4366
+ z.STACK,
4367
+ z.FIELD,
4368
+ z.CHANNEL,
4369
+ z.MARK,
4370
+ z.AGGREGATE,
4371
+ z.AUTOCOUNT,
4372
+ z.SCALE,
4373
+ wi("scale", "type"),
4374
+ z.TYPE
4375
4375
  ],
4376
4376
  allowWildcardForProperties: !1,
4377
4377
  strict: !0,
4378
4378
  satisfy: (e, t, n) => {
4379
- if (!e.wildcardIndex.hasProperty(R.STACK)) return !0;
4379
+ if (!e.wildcardIndex.hasProperty(z.STACK)) return !0;
4380
4380
  let r = e.getVlStack();
4381
4381
  return !(r === null && e.getStackOffset() !== null || r.fieldChannel !== e.getStackChannel());
4382
4382
  }
@@ -4385,38 +4385,38 @@ var gc = zt.reduce((e, t) => (e[t] = !0, e), {}), _c = class extends lc {
4385
4385
  name: "omitNonSumStack",
4386
4386
  description: "Stack specifications that use non-summative aggregates should be omitted (even implicit ones)",
4387
4387
  properties: [
4388
- R.CHANNEL,
4389
- R.MARK,
4390
- R.AGGREGATE,
4391
- R.AUTOCOUNT,
4392
- R.SCALE,
4393
- Ti("scale", "type"),
4394
- R.TYPE
4388
+ z.CHANNEL,
4389
+ z.MARK,
4390
+ z.AGGREGATE,
4391
+ z.AUTOCOUNT,
4392
+ z.SCALE,
4393
+ wi("scale", "type"),
4394
+ z.TYPE
4395
4395
  ],
4396
4396
  allowWildcardForProperties: !1,
4397
4397
  strict: !0,
4398
4398
  satisfy: (e, t, n) => {
4399
4399
  let r = e.getVlStack();
4400
- return !(r != null && !I(ba, e.getEncodingQueryByChannel(r.fieldChannel).aggregate));
4400
+ return !(r != null && !L(ya, e.getEncodingQueryByChannel(r.fieldChannel).aggregate));
4401
4401
  }
4402
4402
  },
4403
4403
  {
4404
4404
  name: "omitTableWithOcclusionIfAutoAddCount",
4405
4405
  description: "Plots without aggregation or autocount where x and y are both discrete should be omitted if autoAddCount is enabled as they often lead to occlusion",
4406
4406
  properties: [
4407
- R.CHANNEL,
4408
- R.TYPE,
4409
- R.TIMEUNIT,
4410
- R.BIN,
4411
- R.AGGREGATE,
4412
- R.AUTOCOUNT
4407
+ z.CHANNEL,
4408
+ z.TYPE,
4409
+ z.TIMEUNIT,
4410
+ z.BIN,
4411
+ z.AGGREGATE,
4412
+ z.AUTOCOUNT
4413
4413
  ],
4414
4414
  allowWildcardForProperties: !1,
4415
4415
  strict: !1,
4416
4416
  satisfy: (e, t, n) => {
4417
4417
  if (n.autoAddCount) {
4418
4418
  let t = e.getEncodingQueryByChannel("x"), n = e.getEncodingQueryByChannel("y");
4419
- if ((!G(t) || bo(t)) && (!G(n) || bo(n))) return e.isAggregate() ? ni(e.getEncodings(), (e) => {
4419
+ if ((!G(t) || bo(t)) && (!G(n) || bo(n))) return e.isAggregate() ? ti(e.getEncodings(), (e) => {
4420
4420
  let t = e.channel;
4421
4421
  return !(t !== "x" && t !== "y" && t !== "row" && t !== "column" && G(e) && !e.aggregate);
4422
4422
  }) : !1;
@@ -4446,9 +4446,9 @@ function Sc(e) {
4446
4446
  }
4447
4447
  xc.set("mark", (e, t, n) => (r, i) => (i.getMark().enum.forEach((a) => {
4448
4448
  i.setMark(a), bc("mark", e.mark, i, t, n) || r.push(i.duplicate());
4449
- }), i.resetMark(), r)), ci.forEach((e) => {
4449
+ }), i.resetMark(), r)), si.forEach((e) => {
4450
4450
  xc.set(e, Cc(e));
4451
- }), yi.forEach((e) => {
4451
+ }), vi.forEach((e) => {
4452
4452
  xc.set(e, Cc(e));
4453
4453
  });
4454
4454
  function Cc(e) {
@@ -4470,7 +4470,7 @@ function Cc(e) {
4470
4470
  //#endregion
4471
4471
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/query/groupby.js
4472
4472
  function wc(e) {
4473
- return (0, F.isObject)(e) && !!e.property;
4473
+ return (0, I.isObject)(e) && !!e.property;
4474
4474
  }
4475
4475
  function Tc(e, t, n) {
4476
4476
  return t ||= new U(), n ||= new U(), e.forEach((e) => {
@@ -4482,14 +4482,14 @@ function Tc(e, t, n) {
4482
4482
  };
4483
4483
  }
4484
4484
  var Ec = [
4485
- R.FIELD,
4486
- R.TYPE,
4487
- R.AGGREGATE,
4488
- R.BIN,
4489
- R.TIMEUNIT,
4490
- R.STACK
4485
+ z.FIELD,
4486
+ z.TYPE,
4487
+ z.AGGREGATE,
4488
+ z.BIN,
4489
+ z.TIMEUNIT,
4490
+ z.STACK
4491
4491
  ], Dc = Ec.concat([{
4492
- property: R.CHANNEL,
4492
+ property: z.CHANNEL,
4493
4493
  replace: {
4494
4494
  x: "xy",
4495
4495
  y: "xy",
@@ -4515,7 +4515,7 @@ function Pc(e, t) {
4515
4515
  for (let e = 0; e < t.length; e++) {
4516
4516
  i.push(e > 0 ? i[e - 1].duplicate() : new U()), a.push(e > 0 ? a[e - 1].duplicate() : new U());
4517
4517
  let n = t[e].groupBy;
4518
- if ((0, F.isArray)(n)) {
4518
+ if ((0, I.isArray)(n)) {
4519
4519
  let t = Tc(n, i[e], a[e]);
4520
4520
  o.push(t.replacer);
4521
4521
  }
@@ -4525,7 +4525,7 @@ function Pc(e, t) {
4525
4525
  for (let n = 0; n < t.length; n++) {
4526
4526
  let c = s.groupBy = t[n].groupBy;
4527
4527
  s.orderGroupBy = t[n].orderGroupBy;
4528
- let l = (0, F.isArray)(c) ? oo(e.specQuery, i[n], o[n]) : Oc[c](e.specQuery);
4528
+ let l = (0, I.isArray)(c) ? oo(e.specQuery, i[n], o[n]) : Oc[c](e.specQuery);
4529
4529
  a += "/" + l, r[a] || (r[a] = {
4530
4530
  name: l,
4531
4531
  path: a,
@@ -4541,7 +4541,7 @@ function Pc(e, t) {
4541
4541
  items: e
4542
4542
  };
4543
4543
  }
4544
- var Fc = Tc([R.FIELD]);
4544
+ var Fc = Tc([z.FIELD]);
4545
4545
  function Ic(e, t) {
4546
4546
  return Oc[t](e);
4547
4547
  }
@@ -4566,7 +4566,7 @@ var zc = class {
4566
4566
  return !!this._encodings[e] && this._encodings[e].has(t);
4567
4567
  }
4568
4568
  hasProperty(e) {
4569
- if (Ei(e)) return this.encodingIndicesByProperty.has(e);
4569
+ if (Ti(e)) return this.encodingIndicesByProperty.has(e);
4570
4570
  if (e === "mark") return !!this.mark;
4571
4571
  /* istanbul ignore next */
4572
4572
  throw Error("Unimplemented for property " + e);
@@ -4588,45 +4588,45 @@ var zc = class {
4588
4588
  }
4589
4589
  }, Bc = class e {
4590
4590
  constructor(e, t, n, r, i) {
4591
- this._rankingScore = {}, this._spec = e, this._channelFieldCount = e.encodings.reduce((e, t) => (!B(t.channel) && (!K(t) || t.autoCount !== !1) && (e[t.channel + ""] = 1), e), {}), this._wildcardIndex = t, this._assignedWildcardIndex = i, this._opt = r, this._schema = n;
4591
+ this._rankingScore = {}, this._spec = e, this._channelFieldCount = e.encodings.reduce((e, t) => (!V(t.channel) && (!K(t) || t.autoCount !== !1) && (e[t.channel + ""] = 1), e), {}), this._wildcardIndex = t, this._assignedWildcardIndex = i, this._opt = r, this._schema = n;
4592
4592
  }
4593
4593
  static build(t, n, r) {
4594
4594
  let i = new zc();
4595
- if (B(t.mark)) {
4596
- let e = ca(R.MARK);
4597
- t.mark = aa(t.mark, e, r.enum.mark), i.setMark(t.mark);
4595
+ if (V(t.mark)) {
4596
+ let e = sa(z.MARK);
4597
+ t.mark = ia(t.mark, e, r.enum.mark), i.setMark(t.mark);
4598
4598
  }
4599
4599
  if (t.encodings.forEach((e, t) => {
4600
- K(e) && (console.warn("A field with autoCount should not be included as autoCount meant to be an internal object."), e.type = N), G(e) && e.type === void 0 && (e.type = "?"), ci.forEach((a) => {
4601
- if (B(e[a])) {
4602
- let o = ca(a) + t, s = ma(a, n, r), c = e[a] = aa(e[a], o, s);
4600
+ K(e) && (console.warn("A field with autoCount should not be included as autoCount meant to be an internal object."), e.type = P), G(e) && e.type === void 0 && (e.type = "?"), si.forEach((a) => {
4601
+ if (V(e[a])) {
4602
+ let o = sa(a) + t, s = pa(a, n, r), c = e[a] = ia(e[a], o, s);
4603
4603
  i.setEncodingProperty(t, a, c);
4604
4604
  }
4605
- }), yi.forEach((a) => {
4605
+ }), vi.forEach((a) => {
4606
4606
  let o = e[a.parent];
4607
4607
  if (o) {
4608
4608
  let e = a.child;
4609
- if (B(o[e])) {
4610
- let s = ca(a) + t, c = ma(a, n, r), l = o[e] = aa(o[e], s, c);
4609
+ if (V(o[e])) {
4610
+ let s = sa(a) + t, c = pa(a, n, r), l = o[e] = ia(o[e], s, c);
4611
4611
  i.setEncodingProperty(t, a, l);
4612
4612
  }
4613
4613
  }
4614
4614
  });
4615
4615
  }), r.autoAddCount) {
4616
4616
  let e = {
4617
- name: ca(R.CHANNEL) + t.encodings.length,
4618
- enum: ma(R.CHANNEL, n, r)
4617
+ name: sa(z.CHANNEL) + t.encodings.length,
4618
+ enum: pa(z.CHANNEL, n, r)
4619
4619
  }, a = {
4620
- name: ca(R.AUTOCOUNT) + t.encodings.length,
4620
+ name: sa(z.AUTOCOUNT) + t.encodings.length,
4621
4621
  enum: [!1, !0]
4622
4622
  }, o = {
4623
4623
  channel: e,
4624
4624
  autoCount: a,
4625
- type: N
4625
+ type: P
4626
4626
  };
4627
4627
  t.encodings.push(o);
4628
4628
  let s = t.encodings.length - 1;
4629
- i.setEncodingProperty(s, R.CHANNEL, e), i.setEncodingProperty(s, R.AUTOCOUNT, a);
4629
+ i.setEncodingProperty(s, z.CHANNEL, e), i.setEncodingProperty(s, z.AUTOCOUNT, a);
4630
4630
  }
4631
4631
  return new e(t, i, n, r, {});
4632
4632
  }
@@ -4640,7 +4640,7 @@ var zc = class {
4640
4640
  return this._spec;
4641
4641
  }
4642
4642
  duplicate() {
4643
- return new e((0, F.duplicate)(this._spec), this._wildcardIndex, this._schema, this._opt, (0, F.duplicate)(this._assignedWildcardIndex));
4643
+ return new e((0, I.duplicate)(this._spec), this._wildcardIndex, this._schema, this._opt, (0, I.duplicate)(this._assignedWildcardIndex));
4644
4644
  }
4645
4645
  setMark(e) {
4646
4646
  let t = this._wildcardIndex.mark.name;
@@ -4655,18 +4655,18 @@ var zc = class {
4655
4655
  }
4656
4656
  getEncodingProperty(e, t) {
4657
4657
  let n = this._spec.encodings[e];
4658
- return oi(t) ? n[t.parent][t.child] : n[t];
4658
+ return ai(t) ? n[t.parent][t.child] : n[t];
4659
4659
  }
4660
4660
  setEncodingProperty(e, t, n, r) {
4661
4661
  let i = this._spec.encodings[e];
4662
- t === R.CHANNEL && i.channel && !B(i.channel) && this._channelFieldCount[i.channel]--, oi(t) ? i[t.parent][t.child] = n : i[t] = di(t) && n === !0 ? (0, F.extend)({}, i[t], {
4662
+ t === z.CHANNEL && i.channel && !V(i.channel) && this._channelFieldCount[i.channel]--, ai(t) ? i[t.parent][t.child] = n : i[t] = ui(t) && n === !0 ? (0, I.extend)({}, i[t], {
4663
4663
  enum: void 0,
4664
4664
  name: void 0
4665
- }) : n, this._assignedWildcardIndex[r.name] = n, t === R.CHANNEL && (this._channelFieldCount[n] = (this._channelFieldCount[n] || 0) + 1);
4665
+ }) : n, this._assignedWildcardIndex[r.name] = n, t === z.CHANNEL && (this._channelFieldCount[n] = (this._channelFieldCount[n] || 0) + 1);
4666
4666
  }
4667
4667
  resetEncodingProperty(e, t, n) {
4668
4668
  let r = this._spec.encodings[e];
4669
- t === R.CHANNEL && this._channelFieldCount[r.channel]--, oi(t) ? r[t.parent][t.child] = n : r[t] = n, delete this._assignedWildcardIndex[n.name];
4669
+ t === z.CHANNEL && this._channelFieldCount[r.channel]--, ai(t) ? r[t.parent][t.child] = n : r[t] = n, delete this._assignedWildcardIndex[n.name];
4670
4670
  }
4671
4671
  channelUsed(e) {
4672
4672
  return this._channelFieldCount[e] > 0;
@@ -4697,19 +4697,19 @@ var zc = class {
4697
4697
  }
4698
4698
  toShorthand(e) {
4699
4699
  if (e) {
4700
- if ((0, F.isString)(e)) return Ic(this.specQuery, e);
4700
+ if ((0, I.isString)(e)) return Ic(this.specQuery, e);
4701
4701
  let t = Tc(e);
4702
4702
  return oo(this._spec, t.include, t.replacer);
4703
4703
  }
4704
4704
  return oo(this._spec);
4705
4705
  }
4706
4706
  toSpec(e) {
4707
- if (B(this._spec.mark)) return null;
4707
+ if (V(this._spec.mark)) return null;
4708
4708
  let t = {};
4709
4709
  return e ||= this._spec.data, e && (t.data = e), this._spec.transform && (t.transform = this._spec.transform), t.mark = this._spec.mark, t.encoding = go(this.specQuery.encodings, {
4710
4710
  schema: this._schema,
4711
4711
  wildcardMode: "null"
4712
- }), this._spec.width && (t.width = this._spec.width), this._spec.height && (t.height = this._spec.height), this._spec.background && (t.background = this._spec.background), this._spec.padding && (t.padding = this._spec.padding), this._spec.title && (t.title = this._spec.title), t.encoding === null ? null : ((this._spec.config || this._opt.defaultSpecConfig) && (t.config = (0, F.extend)({}, this._opt.defaultSpecConfig, this._spec.config)), t);
4712
+ }), this._spec.width && (t.width = this._spec.width), this._spec.height && (t.height = this._spec.height), this._spec.background && (t.background = this._spec.background), this._spec.padding && (t.padding = this._spec.padding), this._spec.title && (t.title = this._spec.title), t.encoding === null ? null : ((this._spec.config || this._opt.defaultSpecConfig) && (t.config = (0, I.extend)({}, this._opt.defaultSpecConfig, this._spec.config)), t);
4713
4713
  }
4714
4714
  getRankingScore(e) {
4715
4715
  return this._rankingScore[e];
@@ -4725,12 +4725,12 @@ function Vc(e) {
4725
4725
  let t = { groupBy: e.groupBy };
4726
4726
  e.orderBy && (t.orderGroupBy = e.orderBy);
4727
4727
  let n = {
4728
- spec: (0, F.duplicate)(e.spec),
4728
+ spec: (0, I.duplicate)(e.spec),
4729
4729
  nest: [t]
4730
4730
  };
4731
4731
  return e.chooseBy && (n.chooseBy = e.chooseBy), e.config && (n.config = e.config), n;
4732
4732
  }
4733
- return (0, F.duplicate)(e);
4733
+ return (0, I.duplicate)(e);
4734
4734
  }
4735
4735
  //#endregion
4736
4736
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/result.js
@@ -4758,11 +4758,11 @@ var Wc = class {
4758
4758
  }
4759
4759
  }, Z;
4760
4760
  (function(e) {
4761
- e[e.Q = N] = "Q", e[e.BIN_Q = "bin_" + N] = "BIN_Q", e[e.T = Or] = "T", e[e.TIMEUNIT_T = "timeUnit_time"] = "TIMEUNIT_T", e[e.TIMEUNIT_O = "timeUnit_" + Dr] = "TIMEUNIT_O", e[e.O = Dr] = "O", e[e.N = kr] = "N", e[e.K = H.KEY] = "K", e[e.NONE = "-"] = "NONE";
4761
+ e[e.Q = P] = "Q", e[e.BIN_Q = "bin_" + P] = "BIN_Q", e[e.T = Dr] = "T", e[e.TIMEUNIT_T = "timeUnit_time"] = "TIMEUNIT_T", e[e.TIMEUNIT_O = "timeUnit_" + Er] = "TIMEUNIT_O", e[e.O = Er] = "O", e[e.N = Or] = "N", e[e.K = Ra.KEY] = "K", e[e.NONE = "-"] = "NONE";
4762
4762
  })(Z ||= {});
4763
4763
  var Gc = Z.Q, Kc = Z.BIN_Q, qc = Z.T, Jc = Z.TIMEUNIT_T, Yc = Z.TIMEUNIT_O, Xc = Z.O, Zc = Z.N, Qc = Z.K, $c = Z.NONE;
4764
4764
  function el(e) {
4765
- return e.bin ? Z.BIN_Q : e.timeUnit ? Rr(xo(e)) ? Z.TIMEUNIT_O : Z.TIMEUNIT_T : e.type;
4765
+ return e.bin ? Z.BIN_Q : e.timeUnit ? Lr(xo(e)) ? Z.TIMEUNIT_O : Z.TIMEUNIT_T : e.type;
4766
4766
  }
4767
4767
  //#endregion
4768
4768
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/ranking/effectiveness/axis.js
@@ -4771,7 +4771,7 @@ var tl = class extends Wc {
4771
4771
  super("Axis");
4772
4772
  }
4773
4773
  initScore(e = {}) {
4774
- e = Object.assign({}, ha, e);
4774
+ e = Object.assign({}, ma, e);
4775
4775
  let t = {};
4776
4776
  return [
4777
4777
  {
@@ -4846,9 +4846,9 @@ var tl = class extends Wc {
4846
4846
  super("Facet");
4847
4847
  }
4848
4848
  initScore(e) {
4849
- e = Object.assign({}, ha, e);
4849
+ e = Object.assign({}, ma, e);
4850
4850
  let t = {};
4851
- return e.preferredFacet === "row" ? t[Je] = -.01 : e.preferredFacet === "column" && (t.row = -.01), t;
4851
+ return e.preferredFacet === "row" ? t[qe] = -.01 : e.preferredFacet === "column" && (t.row = -.01), t;
4852
4852
  }
4853
4853
  getScore(e, t, n) {
4854
4854
  return e.getEncodings().reduce((e, t) => {
@@ -4901,11 +4901,11 @@ var tl = class extends Wc {
4901
4901
  qc,
4902
4902
  Jc
4903
4903
  ].forEach((n) => {
4904
- (0, F.keys)(t).forEach((r) => {
4904
+ (0, I.keys)(t).forEach((r) => {
4905
4905
  e[this.featurize(n, r)] = t[r];
4906
4906
  });
4907
4907
  });
4908
- let n = (0, F.extend)({}, t, {
4908
+ let n = (0, I.extend)({}, t, {
4909
4909
  row: -.75,
4910
4910
  column: -.75,
4911
4911
  shape: -3.1,
@@ -4917,7 +4917,7 @@ var tl = class extends Wc {
4917
4917
  Yc,
4918
4918
  Xc
4919
4919
  ].forEach((t) => {
4920
- (0, F.keys)(n).forEach((r) => {
4920
+ (0, I.keys)(n).forEach((r) => {
4921
4921
  e[this.featurize(t, r)] = n[r];
4922
4922
  });
4923
4923
  });
@@ -4933,8 +4933,8 @@ var tl = class extends Wc {
4933
4933
  size: -3,
4934
4934
  opacity: -3.1
4935
4935
  };
4936
- return (0, F.keys)(r).forEach((t) => {
4937
- e[this.featurize(Zc, t)] = r[t], e[this.featurize(Qc, t)] = I([
4936
+ return (0, I.keys)(r).forEach((t) => {
4937
+ e[this.featurize(Zc, t)] = r[t], e[this.featurize(Qc, t)] = L([
4938
4938
  "x",
4939
4939
  "y",
4940
4940
  "detail"
@@ -4952,7 +4952,7 @@ var tl = class extends Wc {
4952
4952
  }
4953
4953
  return e;
4954
4954
  }, {}), i = [];
4955
- return L(r, (e) => {
4955
+ return R(r, (e) => {
4956
4956
  let t = e.reduce((e, t) => {
4957
4957
  if (G(t) || K(t)) {
4958
4958
  let n = el(t), r = this.featurize(n, t.channel), i = this.getFeatureScore(r);
@@ -4972,7 +4972,7 @@ var tl = class extends Wc {
4972
4972
  }
4973
4973
  getScore(e, t, n) {
4974
4974
  let r = e.getMark();
4975
- (r === "circle" || r === "square") && (r = ji);
4975
+ (r === "circle" || r === "square") && (r = Ai);
4976
4976
  let i = e.getEncodingQueryByChannel("x"), a = i ? el(i) : $c, o = e.getEncodingQueryByChannel("y"), s = o ? el(o) : $c, c = !e.isAggregate(), l = a + "_" + s + "_" + c + "_" + r, u = this.getFeatureScore(l);
4977
4977
  return u ? [u] : (console.error("feature score missing for", l), []);
4978
4978
  }
@@ -4991,7 +4991,7 @@ function sl() {
4991
4991
  ], n = {};
4992
4992
  e.forEach((t) => {
4993
4993
  e.forEach((e) => {
4994
- L({
4994
+ R({
4995
4995
  point: 0,
4996
4996
  text: -.2,
4997
4997
  tick: -.5,
@@ -5003,7 +5003,7 @@ function sl() {
5003
5003
  }, (r, i) => {
5004
5004
  let a = Q(t, e, !0, i);
5005
5005
  n[a] = r;
5006
- }), L({
5006
+ }), R({
5007
5007
  point: 0,
5008
5008
  text: -.2,
5009
5009
  tick: -.5,
@@ -5018,7 +5018,7 @@ function sl() {
5018
5018
  });
5019
5019
  }), e.forEach((e) => {
5020
5020
  t.forEach((t) => {
5021
- L({
5021
+ R({
5022
5022
  tick: 0,
5023
5023
  point: -.2,
5024
5024
  text: -.5,
@@ -5033,7 +5033,7 @@ function sl() {
5033
5033
  n[o] = r;
5034
5034
  });
5035
5035
  }), [Jc].forEach((t) => {
5036
- L({
5036
+ R({
5037
5037
  point: 0,
5038
5038
  text: -.5,
5039
5039
  tick: -1,
@@ -5053,7 +5053,7 @@ function sl() {
5053
5053
  Xc,
5054
5054
  Qc
5055
5055
  ].forEach((t) => {
5056
- L({
5056
+ R({
5057
5057
  bar: 0,
5058
5058
  point: -.2,
5059
5059
  tick: -.25,
@@ -5068,7 +5068,7 @@ function sl() {
5068
5068
  n[o] = r;
5069
5069
  });
5070
5070
  }), [Kc].forEach((t) => {
5071
- L({
5071
+ R({
5072
5072
  bar: 0,
5073
5073
  point: -.2,
5074
5074
  tick: -.25,
@@ -5083,7 +5083,7 @@ function sl() {
5083
5083
  n[o] = r;
5084
5084
  });
5085
5085
  }), [Jc, Yc].forEach((t) => {
5086
- L({
5086
+ R({
5087
5087
  line: 0,
5088
5088
  area: -.1,
5089
5089
  bar: -.2,
@@ -5110,10 +5110,10 @@ function sl() {
5110
5110
  area: -2,
5111
5111
  rule: -2.5
5112
5112
  };
5113
- L(r, (r, i) => {
5113
+ R(r, (r, i) => {
5114
5114
  let a = Q(e, t, !0, i);
5115
5115
  n[a] = r;
5116
- }), L(r, (r, i) => {
5116
+ }), R(r, (r, i) => {
5117
5117
  let a = Q(e, t, !1, i);
5118
5118
  n[a] = r;
5119
5119
  });
@@ -5128,16 +5128,16 @@ function sl() {
5128
5128
  area: -2,
5129
5129
  rule: -2.5
5130
5130
  };
5131
- L(r, (r, i) => {
5131
+ R(r, (r, i) => {
5132
5132
  let a = Q(e, t, !0, i);
5133
5133
  n[a] = r;
5134
- }), L(r, (r, i) => {
5134
+ }), R(r, (r, i) => {
5135
5135
  let a = Q(t, e, !0, i);
5136
5136
  n[a] = r;
5137
- }), L(r, (r, i) => {
5137
+ }), R(r, (r, i) => {
5138
5138
  let a = Q(e, t, !1, i);
5139
5139
  n[a] = r;
5140
- }), L(r, (r, i) => {
5140
+ }), R(r, (r, i) => {
5141
5141
  let a = Q(t, e, !1, i);
5142
5142
  n[a] = r;
5143
5143
  });
@@ -5154,10 +5154,10 @@ function sl() {
5154
5154
  area: -2,
5155
5155
  rule: -2.5
5156
5156
  };
5157
- L(t, (t, i) => {
5157
+ R(t, (t, i) => {
5158
5158
  let a = Q(e, r, !0, i);
5159
5159
  n[a] = t;
5160
- }), L(t, (t, i) => {
5160
+ }), R(t, (t, i) => {
5161
5161
  let a = Q(e, r, !1, i);
5162
5162
  n[a] = t;
5163
5163
  });
@@ -5197,13 +5197,13 @@ function dl(e, t, n) {
5197
5197
  function fl(e, t, n) {
5198
5198
  let r = e.getEncodings();
5199
5199
  if (e.isAggregate()) {
5200
- if (ri(r, (e) => G(e) && (e.type === "quantitative" && !e.bin && !e.aggregate || e.type === "temporal" && !e.timeUnit))) return {
5200
+ if (ni(r, (e) => G(e) && (e.type === "quantitative" && !e.bin && !e.aggregate || e.type === "temporal" && !e.timeUnit))) return {
5201
5201
  type: ul,
5202
5202
  score: .1,
5203
5203
  feature: "Aggregate with raw continuous"
5204
5204
  };
5205
- if (ri(r, (e) => G(e) && bo(e))) {
5206
- let e = ri(r, (e) => G(e) && e.aggregate === "count" || mo(e)), t = ri(r, (e) => G(e) && !!e.bin);
5205
+ if (ni(r, (e) => G(e) && bo(e))) {
5206
+ let e = ni(r, (e) => G(e) && e.aggregate === "count" || mo(e)), t = ni(r, (e) => G(e) && !!e.bin);
5207
5207
  return e ? {
5208
5208
  type: ul,
5209
5209
  score: .8,
@@ -5224,7 +5224,7 @@ function fl(e, t, n) {
5224
5224
  feature: "Aggregate without dimension"
5225
5225
  };
5226
5226
  }
5227
- return ri(r, (e) => G(e) && !bo(e)) ? {
5227
+ return ni(r, (e) => G(e) && !bo(e)) ? {
5228
5228
  type: ul,
5229
5229
  score: 1,
5230
5230
  feature: "Raw with measure"
@@ -5308,7 +5308,7 @@ function wl(e, t, n, r) {
5308
5308
  [
5309
5309
  "row",
5310
5310
  "y",
5311
- Je,
5311
+ qe,
5312
5312
  "x"
5313
5313
  ].forEach((t) => {
5314
5314
  n[t] = e.getEncodingQueryByChannel(t);
@@ -5317,40 +5317,40 @@ function wl(e, t, n, r) {
5317
5317
  if (i !== void 0 && G(i) && (n.row || t.cardinality(i) > r.smallRangeStepForHighCardinalityOrFacet.maxCardinality)) {
5318
5318
  i.scale === void 0 && (i.scale = {});
5319
5319
  let e = xo(i);
5320
- i.scale && (e === void 0 || Rr(e)) && (i.scale.rangeStep || (i.scale.rangeStep = 12));
5320
+ i.scale && (e === void 0 || Lr(e)) && (i.scale.rangeStep || (i.scale.rangeStep = 12));
5321
5321
  }
5322
5322
  let a = n.x;
5323
5323
  if (G(a) && (n.column || t.cardinality(a) > r.smallRangeStepForHighCardinalityOrFacet.maxCardinality)) {
5324
5324
  a.scale === void 0 && (a.scale = {});
5325
5325
  let e = xo(a);
5326
- a.scale && (e === void 0 || Rr(e)) && (a.scale.rangeStep || (a.scale.rangeStep = 12));
5326
+ a.scale && (e === void 0 || Lr(e)) && (a.scale.rangeStep || (a.scale.rangeStep = 12));
5327
5327
  }
5328
5328
  return e;
5329
5329
  }
5330
5330
  function Tl(e, t, n, r) {
5331
- n[et] = e.getEncodingQueryByChannel(et);
5332
- let i = n[et];
5333
- return G(i) && i !== void 0 && (i.type === "nominal" || i.type === H.KEY) && t.cardinality(i) > r.nominalColorScaleForHighCardinality.maxCardinality && (i.scale === void 0 && (i.scale = {}), i.scale && (i.scale.range || (i.scale.scheme = r.nominalColorScaleForHighCardinality.palette))), e;
5331
+ n[$e] = e.getEncodingQueryByChannel($e);
5332
+ let i = n[$e];
5333
+ return G(i) && i !== void 0 && (i.type === "nominal" || i.type === Ra.KEY) && t.cardinality(i) > r.nominalColorScaleForHighCardinality.maxCardinality && (i.scale === void 0 && (i.scale = {}), i.scale && (i.scale.range || (i.scale.scheme = r.nominalColorScaleForHighCardinality.palette))), e;
5334
5334
  }
5335
5335
  function El(e, t, n, r) {
5336
5336
  if ([
5337
- Je,
5337
+ qe,
5338
5338
  "x",
5339
5339
  "y"
5340
5340
  ].forEach((t) => {
5341
5341
  n[t] = e.getEncodingQueryByChannel(t);
5342
5342
  }), n.column === void 0) {
5343
5343
  let e = n.x, i = n.y;
5344
- G(e) && G(i) && i !== void 0 && i.field && Rr(xo(i)) && e !== void 0 && t.cardinality(i) > r.xAxisOnTopForHighYCardinalityWithoutColumn.maxCardinality && (e.axis === void 0 && (e.axis = {}), e.axis && !e.axis.orient && (e.axis.orient = "top"));
5344
+ G(e) && G(i) && i !== void 0 && i.field && Lr(xo(i)) && e !== void 0 && t.cardinality(i) > r.xAxisOnTopForHighYCardinalityWithoutColumn.maxCardinality && (e.axis === void 0 && (e.axis = {}), e.axis && !e.axis.orient && (e.axis.orient = "top"));
5345
5345
  }
5346
5346
  return e;
5347
5347
  }
5348
5348
  //#endregion
5349
5349
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/generate.js
5350
- function Dl(e, t, n = ha) {
5350
+ function Dl(e, t, n = ma) {
5351
5351
  let r = Bc.build(e, t, n), i = r.wildcardIndex, a = [r];
5352
5352
  return n.propertyPrecedence.forEach((e) => {
5353
- let r = Ci(e);
5353
+ let r = Si(e);
5354
5354
  if (i.hasProperty(r)) {
5355
5355
  let e = Sc(r)(i, t, n);
5356
5356
  a = a.reduce(e, []);
@@ -5360,7 +5360,7 @@ function Dl(e, t, n = ha) {
5360
5360
  //#endregion
5361
5361
  //#region ../node_modules/.pnpm/compassql@0.21.2_vega@6.2.0/node_modules/compassql/build/src/recommend.js
5362
5362
  function Ol(e, t, n) {
5363
- e = Object.assign({}, Vc(e), { config: Object.assign({}, ha, n, e.config) });
5363
+ e = Object.assign({}, Vc(e), { config: Object.assign({}, ma, n, e.config) });
5364
5364
  let r = vl(Pc(Dl(e.spec, t, e.config), e.nest), e, t, 0);
5365
5365
  return {
5366
5366
  query: e,
@@ -5369,14 +5369,14 @@ function Ol(e, t, n) {
5369
5369
  }
5370
5370
  //#endregion
5371
5371
  //#region src/plugins/impl/data-explorer/components/icons.tsx
5372
- var kl = /* @__PURE__ */ e(c(), 1), $ = O(), Al = {
5373
- [X.BOOLEAN]: /* @__PURE__ */ (0, $.jsx)(g, { className: "h-5 w-5 inline-flex opacity-60" }),
5374
- [X.DATETIME]: /* @__PURE__ */ (0, $.jsx)(m, { className: "h-5 w-5 inline-flex opacity-60" }),
5375
- [X.NUMBER]: /* @__PURE__ */ (0, $.jsx)(v, { className: "h-5 w-5 inline-flex opacity-60" }),
5376
- [X.STRING]: /* @__PURE__ */ (0, $.jsx)(p, { className: "h-5 w-5 inline-flex opacity-60" }),
5377
- [X.INTEGER]: /* @__PURE__ */ (0, $.jsx)(xe, { className: "h-5 w-5 inline-flex opacity-60" })
5372
+ var kl = /* @__PURE__ */ e(c(), 1), $ = k(), Al = {
5373
+ [X.BOOLEAN]: /* @__PURE__ */ (0, $.jsx)(_, { className: "h-5 w-5 inline-flex opacity-60" }),
5374
+ [X.DATETIME]: /* @__PURE__ */ (0, $.jsx)(h, { className: "h-5 w-5 inline-flex opacity-60" }),
5375
+ [X.NUMBER]: /* @__PURE__ */ (0, $.jsx)(y, { className: "h-5 w-5 inline-flex opacity-60" }),
5376
+ [X.STRING]: /* @__PURE__ */ (0, $.jsx)(m, { className: "h-5 w-5 inline-flex opacity-60" }),
5377
+ [X.INTEGER]: /* @__PURE__ */ (0, $.jsx)(be, { className: "h-5 w-5 inline-flex opacity-60" })
5378
5378
  }, jl = 12, Ml = (e) => {
5379
- let t = (0, Se.c)(45), { schema: n } = e, [r, i] = (0, kl.useState)(), [a, c] = (0, kl.useState)(), l, u, d, f, p, m, h, g;
5379
+ let t = (0, xe.c)(45), { schema: n } = e, [r, i] = (0, kl.useState)(), [a, c] = (0, kl.useState)(), l, u, d, f, p, m, h, g;
5380
5380
  if (t[0] !== n || t[1] !== r || t[2] !== a) {
5381
5381
  l = n.fieldNames();
5382
5382
  let e;
@@ -5385,7 +5385,7 @@ var kl = /* @__PURE__ */ e(c(), 1), $ = O(), Al = {
5385
5385
  channel: "x"
5386
5386
  }) : void 0, t[11] = n, t[12] = r, t[13] = e) : e = t[13], d = e;
5387
5387
  let s;
5388
- t[14] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, $.jsx)(be, {
5388
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, $.jsx)(ye, {
5389
5389
  className: "text-muted-foreground",
5390
5390
  width: 40,
5391
5391
  height: 40,
@@ -5445,12 +5445,12 @@ var kl = /* @__PURE__ */ e(c(), 1), $ = O(), Al = {
5445
5445
  i(e);
5446
5446
  }, t[25] = x) : x = t[25];
5447
5447
  let S;
5448
- t[26] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ (0, $.jsx)(ne, {
5448
+ t[26] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ (0, $.jsx)(te, {
5449
5449
  className: "min-w-[210px] h-full",
5450
- children: /* @__PURE__ */ (0, $.jsx)(w, { placeholder: "Select a column" })
5450
+ children: /* @__PURE__ */ (0, $.jsx)(T, { placeholder: "Select a column" })
5451
5451
  }), t[26] = S) : S = t[26];
5452
5452
  let C;
5453
- t[27] === n ? C = t[28] : (C = n.fieldNames().map((e) => /* @__PURE__ */ (0, $.jsx)(T, {
5453
+ t[27] === n ? C = t[28] : (C = n.fieldNames().map((e) => /* @__PURE__ */ (0, $.jsx)(E, {
5454
5454
  value: e.toString(),
5455
5455
  children: /* @__PURE__ */ (0, $.jsxs)("span", {
5456
5456
  className: "flex items-center gap-2 flex-1",
@@ -5471,21 +5471,21 @@ var kl = /* @__PURE__ */ e(c(), 1), $ = O(), Al = {
5471
5471
  ]
5472
5472
  })
5473
5473
  }, e)), t[27] = n, t[28] = C);
5474
- let E;
5475
- t[29] === C ? E = t[30] : (E = /* @__PURE__ */ (0, $.jsx)(ee, { children: /* @__PURE__ */ (0, $.jsx)(te, { children: C }) }), t[29] = C, t[30] = E);
5476
- let D;
5477
- t[31] !== E || t[32] !== y || t[33] !== b ? (D = /* @__PURE__ */ (0, $.jsx)("div", {
5474
+ let w;
5475
+ t[29] === C ? w = t[30] : (w = /* @__PURE__ */ (0, $.jsx)(D, { children: /* @__PURE__ */ (0, $.jsx)(ee, { children: C }) }), t[29] = C, t[30] = w);
5476
+ let O;
5477
+ t[31] !== w || t[32] !== y || t[33] !== b ? (O = /* @__PURE__ */ (0, $.jsx)("div", {
5478
5478
  className: "lg:hidden",
5479
- children: /* @__PURE__ */ (0, $.jsxs)(re, {
5479
+ children: /* @__PURE__ */ (0, $.jsxs)(ne, {
5480
5480
  "data-testid": "marimo-plugin-data-explorer-column-select",
5481
5481
  value: y,
5482
5482
  disabled: b,
5483
5483
  onValueChange: x,
5484
- children: [S, E]
5484
+ children: [S, w]
5485
5485
  })
5486
- }), t[31] = E, t[32] = y, t[33] = b, t[34] = D) : D = t[34];
5487
- let O;
5488
- t[35] !== r || t[36] !== d ? (O = r && /* @__PURE__ */ (0, $.jsx)("div", {
5486
+ }), t[31] = w, t[32] = y, t[33] = b, t[34] = O) : O = t[34];
5487
+ let k;
5488
+ t[35] !== r || t[36] !== d ? (k = r && /* @__PURE__ */ (0, $.jsx)("div", {
5489
5489
  className: "grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2 p-2 text-sm",
5490
5490
  children: Nl.map((e) => /* @__PURE__ */ (0, $.jsxs)("div", {
5491
5491
  className: "flex flex-row gap-2 min-w-[100px]",
@@ -5494,18 +5494,18 @@ var kl = /* @__PURE__ */ e(c(), 1), $ = O(), Al = {
5494
5494
  children: e
5495
5495
  }), /* @__PURE__ */ (0, $.jsx)("span", { children: /* @__PURE__ */ (0, $.jsx)(Pl, { value: d?.[e] }) })]
5496
5496
  }, e))
5497
- }), t[35] = r, t[36] = d, t[37] = O) : O = t[37];
5498
- let ie;
5499
- return t[38] !== D || t[39] !== O || t[40] !== m || t[41] !== h || t[42] !== g || t[43] !== v ? (ie = /* @__PURE__ */ (0, $.jsxs)("div", {
5497
+ }), t[35] = r, t[36] = d, t[37] = k) : k = t[37];
5498
+ let re;
5499
+ return t[38] !== O || t[39] !== k || t[40] !== m || t[41] !== h || t[42] !== g || t[43] !== v ? (re = /* @__PURE__ */ (0, $.jsxs)("div", {
5500
5500
  className: m,
5501
5501
  children: [
5502
5502
  h,
5503
5503
  g,
5504
5504
  v,
5505
- D,
5506
- O
5505
+ O,
5506
+ k
5507
5507
  ]
5508
- }), t[38] = D, t[39] = O, t[40] = m, t[41] = h, t[42] = g, t[43] = v, t[44] = ie) : ie = t[44], ie;
5508
+ }), t[38] = O, t[39] = k, t[40] = m, t[41] = h, t[42] = g, t[43] = v, t[44] = re) : re = t[44], re;
5509
5509
  }, Nl = [
5510
5510
  "distinct",
5511
5511
  "min",
@@ -5516,15 +5516,15 @@ var kl = /* @__PURE__ */ e(c(), 1), $ = O(), Al = {
5516
5516
  "q3",
5517
5517
  "stdev"
5518
5518
  ], Pl = (e) => {
5519
- let t = (0, Se.c)(8), { value: n } = e, r;
5519
+ let t = (0, xe.c)(8), { value: n } = e, r;
5520
5520
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = { maximumFractionDigits: 2 }, t[0] = r) : r = t[0];
5521
- let i = D(r), a;
5521
+ let i = ae(r), a;
5522
5522
  t[1] === Symbol.for("react.memo_cache_sentinel") ? (a = {
5523
5523
  year: "numeric",
5524
5524
  month: "short",
5525
5525
  day: "numeric"
5526
5526
  }, t[1] = a) : a = t[1];
5527
- let o = x(a);
5527
+ let o = S(a);
5528
5528
  if (typeof n == "number") {
5529
5529
  let e;
5530
5530
  return t[2] !== i || t[3] !== n ? (e = i.format(n), t[2] = i, t[3] = n, t[4] = e) : e = t[4], e;
@@ -5671,14 +5671,14 @@ function ql(e, t) {
5671
5671
  }
5672
5672
  function Jl(e) {
5673
5673
  let { aggregate: t, bin: n, timeUnit: r, field: i, scale: o, legend: s, axis: c, sort: l, description: u } = e, { type: d } = e;
5674
- if (B(d)) throw Error("Wildcard not support");
5674
+ if (V(d)) throw Error("Wildcard not support");
5675
5675
  d === "ordinal" && (a.warn("Ordinal type is not supported. Using nominal type instead."), d = "nominal");
5676
5676
  let f = Ul({
5677
5677
  aggregate: t,
5678
5678
  bin: n,
5679
5679
  timeUnit: r
5680
5680
  });
5681
- return fe(i !== void 0, "Field is required for fieldQ"), Kl({
5681
+ return de(i !== void 0, "Field is required for fieldQ"), Kl({
5682
5682
  field: i,
5683
5683
  fn: f,
5684
5684
  type: d,
@@ -5786,7 +5786,7 @@ function iu(e) {
5786
5786
  }
5787
5787
  function au(e) {
5788
5788
  let t = !1, n = !1, r = !1;
5789
- for (let i of e.encodings) W(i) || (K(i) ? B(i.autoCount) && (n = !0) : (B(i.field) && (t = !0), (B(i.aggregate) || B(i.bin) || B(i.timeUnit)) && (n = !0), B(i.channel) && (r = !0)));
5789
+ for (let i of e.encodings) W(i) || (K(i) ? V(i.autoCount) && (n = !0) : (V(i.field) && (t = !0), (V(i.aggregate) || V(i.bin) || V(i.timeUnit)) && (n = !0), V(i.channel) && (r = !0)));
5790
5790
  return {
5791
5791
  hasAnyWildcard: r || t || n,
5792
5792
  hasWildcardField: t,
@@ -5800,7 +5800,7 @@ var ou = { name: "source" };
5800
5800
  function su(e) {
5801
5801
  let t = !1, n = !1, r = !1;
5802
5802
  return e.encodings.forEach((e) => {
5803
- e.channel === "x" || e.channel === "y" ? t = !0 : e.channel === "row" || e.channel === "column" ? r = !0 : typeof e.channel == "string" && _e(tu, e.channel) && (n = !0);
5803
+ e.channel === "x" || e.channel === "y" ? t = !0 : e.channel === "row" || e.channel === "column" ? r = !0 : typeof e.channel == "string" && ge(tu, e.channel) && (n = !0);
5804
5804
  }), {
5805
5805
  hasOpenPosition: t,
5806
5806
  hasStyleChannel: n,
@@ -5875,7 +5875,7 @@ function hu() {
5875
5875
  schema: null
5876
5876
  };
5877
5877
  }
5878
- var { valueAtom: gu, useActions: _u } = h(hu, {
5878
+ var { valueAtom: gu, useActions: _u } = g(hu, {
5879
5879
  setSchema: (e, t) => ({
5880
5880
  ...e,
5881
5881
  schema: t
@@ -5905,7 +5905,7 @@ var { valueAtom: gu, useActions: _u } = h(hu, {
5905
5905
  function vu() {
5906
5906
  return _u();
5907
5907
  }
5908
- var yu = le((e) => {
5908
+ var yu = ce((e) => {
5909
5909
  let t = e(gu);
5910
5910
  if (!t.schema) return {};
5911
5911
  let n = pu({
@@ -5929,7 +5929,7 @@ var yu = le((e) => {
5929
5929
  "size",
5930
5930
  "shape"
5931
5931
  ], Su = (e) => {
5932
- let t = (0, Se.c)(26), { schema: n, mark: r } = e, i = se(gu), a = vu(), o = i.encoding.x && i.encoding.y, s;
5932
+ let t = (0, xe.c)(26), { schema: n, mark: r } = e, i = oe(gu), a = vu(), o = i.encoding.x && i.encoding.y, s;
5933
5933
  t[0] !== a || t[1] !== o || t[2] !== n || t[3] !== i.encoding ? (s = (e) => /* @__PURE__ */ (0, $.jsx)(Cu, {
5934
5934
  schema: n,
5935
5935
  label: e,
@@ -5942,11 +5942,11 @@ var yu = le((e) => {
5942
5942
  let u;
5943
5943
  t[7] === a ? u = t[8] : (u = (e) => a.setMark(e), t[7] = a, t[8] = u);
5944
5944
  let d;
5945
- t[9] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, $.jsx)(ne, { children: /* @__PURE__ */ (0, $.jsx)(w, { placeholder: "Mark" }) }), t[9] = d) : d = t[9];
5945
+ t[9] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, $.jsx)(te, { children: /* @__PURE__ */ (0, $.jsx)(T, { placeholder: "Mark" }) }), t[9] = d) : d = t[9];
5946
5946
  let f;
5947
- t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, $.jsx)(ee, { children: /* @__PURE__ */ (0, $.jsxs)(te, { children: [/* @__PURE__ */ (0, $.jsx)(S, { children: "Mark" }), Wl.map(Eu)] }) }), t[10] = f) : f = t[10];
5947
+ t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, $.jsx)(D, { children: /* @__PURE__ */ (0, $.jsxs)(ee, { children: [/* @__PURE__ */ (0, $.jsx)(C, { children: "Mark" }), Wl.map(Eu)] }) }), t[10] = f) : f = t[10];
5948
5948
  let p;
5949
- t[11] !== l || t[12] !== u ? (p = /* @__PURE__ */ (0, $.jsxs)(re, {
5949
+ t[11] !== l || t[12] !== u ? (p = /* @__PURE__ */ (0, $.jsxs)(ne, {
5950
5950
  "data-testid": "marimo-plugin-data-explorer-mark-select",
5951
5951
  value: l,
5952
5952
  onValueChange: u,
@@ -5982,7 +5982,7 @@ var yu = le((e) => {
5982
5982
  ]
5983
5983
  }), t[22] = v, t[23] = y, t[24] = g, t[25] = b) : b = t[25], b;
5984
5984
  }, Cu = (e) => {
5985
- let t = (0, Se.c)(43), { label: n, schema: r, fieldDefinition: i, disabled: a, onChange: o } = e, s;
5985
+ let t = (0, xe.c)(43), { label: n, schema: r, fieldDefinition: i, disabled: a, onChange: o } = e, s;
5986
5986
  t[0] !== i || t[1] !== r ? (s = () => {
5987
5987
  if (!i) return "--";
5988
5988
  if (i.field === "*") return /* @__PURE__ */ (0, $.jsxs)("span", {
@@ -6008,7 +6008,7 @@ var yu = le((e) => {
6008
6008
  let u = l, d;
6009
6009
  t[5] === i?.field ? d = t[6] : (d = i?.field.toString() ?? "", t[5] = i?.field, t[6] = d);
6010
6010
  let f = d, p;
6011
- t[7] === n ? p = t[8] : (p = /* @__PURE__ */ (0, $.jsx)(ae, {
6011
+ t[7] === n ? p = t[8] : (p = /* @__PURE__ */ (0, $.jsx)(ie, {
6012
6012
  className: "text-(--slate-11) font-semibold",
6013
6013
  children: n
6014
6014
  }), t[7] = n, t[8] = p);
@@ -6026,13 +6026,13 @@ var yu = le((e) => {
6026
6026
  let h = f ? u : void 0, g;
6027
6027
  t[12] === c ? g = t[13] : (g = c(), t[12] = c, t[13] = g);
6028
6028
  let _;
6029
- t[14] !== h || t[15] !== g ? (_ = /* @__PURE__ */ (0, $.jsx)(ne, {
6029
+ t[14] !== h || t[15] !== g ? (_ = /* @__PURE__ */ (0, $.jsx)(te, {
6030
6030
  className: "min-w-[140px] lg:min-w-[210px] h-full",
6031
6031
  onClear: h,
6032
6032
  children: g
6033
6033
  }), t[14] = h, t[15] = g, t[16] = _) : _ = t[16];
6034
6034
  let v;
6035
- t[17] === r ? v = t[18] : (v = r.fieldNames().map((e) => /* @__PURE__ */ (0, $.jsx)(T, {
6035
+ t[17] === r ? v = t[18] : (v = r.fieldNames().map((e) => /* @__PURE__ */ (0, $.jsx)(E, {
6036
6036
  value: e.toString(),
6037
6037
  children: /* @__PURE__ */ (0, $.jsxs)("span", {
6038
6038
  className: "flex items-center gap-2 flex-1",
@@ -6054,15 +6054,15 @@ var yu = le((e) => {
6054
6054
  })
6055
6055
  }, e)), t[17] = r, t[18] = v);
6056
6056
  let y;
6057
- t[19] === r ? y = t[20] : (y = r.fieldNames().length === 0 && /* @__PURE__ */ (0, $.jsx)(T, {
6057
+ t[19] === r ? y = t[20] : (y = r.fieldNames().length === 0 && /* @__PURE__ */ (0, $.jsx)(E, {
6058
6058
  disabled: !0,
6059
6059
  value: "--",
6060
6060
  children: "No columns"
6061
6061
  }), t[19] = r, t[20] = y);
6062
6062
  let b;
6063
- t[21] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ (0, $.jsx)(E, {}), t[21] = b) : b = t[21];
6063
+ t[21] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ (0, $.jsx)(O, {}), t[21] = b) : b = t[21];
6064
6064
  let x;
6065
- t[22] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ (0, $.jsx)(T, {
6065
+ t[22] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ (0, $.jsx)(E, {
6066
6066
  value: "*",
6067
6067
  children: /* @__PURE__ */ (0, $.jsxs)("span", {
6068
6068
  className: "flex items-center gap-1 flex-1",
@@ -6073,14 +6073,14 @@ var yu = le((e) => {
6073
6073
  })
6074
6074
  }, "*"), t[22] = x) : x = t[22];
6075
6075
  let S;
6076
- t[23] !== y || t[24] !== v ? (S = /* @__PURE__ */ (0, $.jsx)(ee, { children: /* @__PURE__ */ (0, $.jsxs)(te, { children: [
6076
+ t[23] !== y || t[24] !== v ? (S = /* @__PURE__ */ (0, $.jsx)(D, { children: /* @__PURE__ */ (0, $.jsxs)(ee, { children: [
6077
6077
  v,
6078
6078
  y,
6079
6079
  b,
6080
6080
  x
6081
6081
  ] }) }), t[23] = y, t[24] = v, t[25] = S) : S = t[25];
6082
6082
  let C;
6083
- t[26] !== a || t[27] !== f || t[28] !== S || t[29] !== m || t[30] !== _ ? (C = /* @__PURE__ */ (0, $.jsxs)(re, {
6083
+ t[26] !== a || t[27] !== f || t[28] !== S || t[29] !== m || t[30] !== _ ? (C = /* @__PURE__ */ (0, $.jsxs)(ne, {
6084
6084
  value: f,
6085
6085
  disabled: a,
6086
6086
  onValueChange: m,
@@ -6091,53 +6091,53 @@ var yu = le((e) => {
6091
6091
  field: i,
6092
6092
  onChange: o
6093
6093
  }), t[32] = i, t[33] = o, t[34] = w) : w = t[34];
6094
- let D;
6095
- t[35] === w ? D = t[36] : (D = /* @__PURE__ */ (0, $.jsx)("div", {
6094
+ let T;
6095
+ t[35] === w ? T = t[36] : (T = /* @__PURE__ */ (0, $.jsx)("div", {
6096
6096
  className: "w-[26px]",
6097
6097
  children: w
6098
- }), t[35] = w, t[36] = D);
6099
- let O;
6100
- t[37] !== C || t[38] !== D ? (O = /* @__PURE__ */ (0, $.jsxs)("div", {
6098
+ }), t[35] = w, t[36] = T);
6099
+ let k;
6100
+ t[37] !== C || t[38] !== T ? (k = /* @__PURE__ */ (0, $.jsxs)("div", {
6101
6101
  className: "flex flex-row gap-1 h-[26px]",
6102
- children: [C, D]
6103
- }), t[37] = C, t[38] = D, t[39] = O) : O = t[39];
6104
- let ie;
6105
- return t[40] !== O || t[41] !== p ? (ie = /* @__PURE__ */ (0, $.jsxs)($.Fragment, { children: [p, O] }), t[40] = O, t[41] = p, t[42] = ie) : ie = t[42], ie;
6102
+ children: [C, T]
6103
+ }), t[37] = C, t[38] = T, t[39] = k) : k = t[39];
6104
+ let re;
6105
+ return t[40] !== k || t[41] !== p ? (re = /* @__PURE__ */ (0, $.jsxs)($.Fragment, { children: [p, k] }), t[40] = k, t[41] = p, t[42] = re) : re = t[42], re;
6106
6106
  }, wu = "__", Tu = (e) => {
6107
- let t = (0, Se.c)(10), { field: n, onChange: r } = e;
6107
+ let t = (0, xe.c)(10), { field: n, onChange: r } = e;
6108
6108
  if (n.field === "*") return null;
6109
6109
  let i;
6110
6110
  if (t[0] !== n || t[1] !== r) {
6111
6111
  i = Symbol.for("react.early_return_sentinel");
6112
6112
  bb0: {
6113
6113
  let e = [];
6114
- if (n.type === H.QUANTITATIVE && (e = [["", Bl]]), n.type === H.TEMPORAL && (e = [["Single", Vl], ["Multi", Hl]]), e.length > 0) {
6114
+ if (n.type === Ra.QUANTITATIVE && (e = [["", Bl]]), n.type === Ra.TEMPORAL && (e = [["Single", Vl], ["Multi", Hl]]), e.length > 0) {
6115
6115
  let a = (e) => {
6116
6116
  r({
6117
6117
  ...n,
6118
6118
  fn: e === wu ? void 0 : e
6119
6119
  });
6120
6120
  }, o;
6121
- t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, $.jsx)(ne, {
6121
+ t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, $.jsx)(te, {
6122
6122
  className: "h-full px-1",
6123
6123
  hideChevron: !0,
6124
6124
  variant: "ghost",
6125
- children: /* @__PURE__ */ (0, $.jsx)(d, {
6125
+ children: /* @__PURE__ */ (0, $.jsx)(f, {
6126
6126
  size: 14,
6127
6127
  strokeWidth: 1.5
6128
6128
  })
6129
6129
  }), t[3] = o) : o = t[3];
6130
6130
  let s, c;
6131
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, $.jsx)(te, { children: /* @__PURE__ */ (0, $.jsx)(T, {
6131
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, $.jsx)(ee, { children: /* @__PURE__ */ (0, $.jsx)(E, {
6132
6132
  value: wu,
6133
6133
  children: "None"
6134
- }) }), c = /* @__PURE__ */ (0, $.jsx)(E, {}), t[4] = s, t[5] = c) : (s = t[4], c = t[5]);
6135
- let l = /* @__PURE__ */ (0, $.jsxs)(ee, { children: [
6134
+ }) }), c = /* @__PURE__ */ (0, $.jsx)(O, {}), t[4] = s, t[5] = c) : (s = t[4], c = t[5]);
6135
+ let l = /* @__PURE__ */ (0, $.jsxs)(D, { children: [
6136
6136
  s,
6137
6137
  c,
6138
6138
  e.map(Ou)
6139
6139
  ] }), u;
6140
- t[6] !== n.fn || t[7] !== a || t[8] !== l ? (u = /* @__PURE__ */ (0, $.jsxs)(re, {
6140
+ t[6] !== n.fn || t[7] !== a || t[8] !== l ? (u = /* @__PURE__ */ (0, $.jsxs)(ne, {
6141
6141
  "data-testid": "marimo-plugin-data-explorer-field-options",
6142
6142
  value: n.fn,
6143
6143
  onValueChange: a,
@@ -6151,26 +6151,26 @@ var yu = le((e) => {
6151
6151
  return i === Symbol.for("react.early_return_sentinel") ? null : i;
6152
6152
  };
6153
6153
  function Eu(e) {
6154
- return /* @__PURE__ */ (0, $.jsx)(T, {
6154
+ return /* @__PURE__ */ (0, $.jsx)(E, {
6155
6155
  value: e,
6156
6156
  children: e === "?" ? "auto" : e
6157
6157
  }, e);
6158
6158
  }
6159
6159
  function Du(e) {
6160
- return /* @__PURE__ */ (0, $.jsx)(T, {
6160
+ return /* @__PURE__ */ (0, $.jsx)(E, {
6161
6161
  value: e ?? wu,
6162
- children: C.startCase(e)
6162
+ children: w.startCase(e)
6163
6163
  }, e);
6164
6164
  }
6165
6165
  function Ou(e) {
6166
6166
  let [t, n] = e;
6167
- return /* @__PURE__ */ (0, $.jsxs)(te, { children: [t && /* @__PURE__ */ (0, $.jsx)(S, { children: t }), n.map(Du)] }, t);
6167
+ return /* @__PURE__ */ (0, $.jsxs)(ee, { children: [t && /* @__PURE__ */ (0, $.jsx)(C, { children: t }), n.map(Du)] }, t);
6168
6168
  }
6169
6169
  //#endregion
6170
6170
  //#region src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx
6171
6171
  var ku = (e) => {
6172
- let t = (0, Se.c)(5), n;
6173
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = ce(), t[0] = n) : n = t[0];
6172
+ let t = (0, xe.c)(5), n;
6173
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = se(), t[0] = n) : n = t[0];
6174
6174
  let r = n, i;
6175
6175
  t[1] === e ? i = t[2] : (i = () => {
6176
6176
  let t = r.sub(gu, () => {
@@ -6178,9 +6178,9 @@ var ku = (e) => {
6178
6178
  e.setValue(n);
6179
6179
  }), n = e.value;
6180
6180
  return n && Object.keys(n).length > 0 && r.set(gu, n), t;
6181
- }, t[1] = e, t[2] = i), y(i);
6181
+ }, t[1] = e, t[2] = i), b(i);
6182
6182
  let a;
6183
- return t[3] === e ? a = t[4] : (a = /* @__PURE__ */ (0, $.jsx)(de, {
6183
+ return t[3] === e ? a = t[4] : (a = /* @__PURE__ */ (0, $.jsx)(ue, {
6184
6184
  store: r,
6185
6185
  children: /* @__PURE__ */ (0, $.jsx)(ju, { ...e })
6186
6186
  }), t[3] = e, t[4] = a), a;
@@ -6203,15 +6203,15 @@ function Au(e) {
6203
6203
  editor: !1
6204
6204
  },
6205
6205
  theme: e === "dark" ? "dark" : void 0,
6206
- tooltip: ve.call,
6206
+ tooltip: _e.call,
6207
6207
  renderer: "canvas"
6208
6208
  };
6209
6209
  }
6210
6210
  var ju = (e) => {
6211
- let t = (0, Se.c)(43), { data: n } = e, r = vu(), i;
6211
+ let t = (0, xe.c)(43), { data: n } = e, r = vu(), i;
6212
6212
  t[0] !== r || t[1] !== n ? (i = async () => {
6213
6213
  if (!n) return {};
6214
- let e = await ye(n, {
6214
+ let e = await ve(n, {
6215
6215
  type: "csv",
6216
6216
  parse: "auto"
6217
6217
  }, { replacePeriod: !0 }), t = nc(e);
@@ -6222,94 +6222,94 @@ var ju = (e) => {
6222
6222
  }, t[0] = r, t[1] = n, t[2] = i) : i = t[2];
6223
6223
  let a;
6224
6224
  t[3] === n ? a = t[4] : (a = [n], t[3] = n, t[4] = a);
6225
- let { data: c, isPending: l, error: u } = me(i, a), { mark: d } = se(gu), p = se(yu), { theme: m } = ue();
6225
+ let { data: c, isPending: l, error: u } = pe(i, a), { mark: f } = oe(gu), m = oe(yu), { theme: h } = le();
6226
6226
  if (u) {
6227
6227
  let e;
6228
- return t[5] === u ? e = t[6] : (e = /* @__PURE__ */ (0, $.jsx)(ie, { error: u }), t[5] = u, t[6] = e), e;
6228
+ return t[5] === u ? e = t[6] : (e = /* @__PURE__ */ (0, $.jsx)(re, { error: u }), t[5] = u, t[6] = e), e;
6229
6229
  }
6230
6230
  if (!c) {
6231
6231
  let e;
6232
6232
  return t[7] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, $.jsx)("div", {}), t[7] = e) : e = t[7], e;
6233
6233
  }
6234
- let { chartData: h, schema: g } = c;
6235
- if (l || !g) {
6234
+ let { chartData: g, schema: _ } = c;
6235
+ if (l || !_) {
6236
6236
  let e;
6237
6237
  return t[8] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, $.jsx)("div", {}), t[8] = e) : e = t[8], e;
6238
6238
  }
6239
- let v = p.main?.plots?.[0], y;
6240
- t[9] === v?.fieldInfos ? y = t[10] : (y = new Set(v?.fieldInfos.map(Fu)), t[9] = v?.fieldInfos, t[10] = y);
6241
- let x = y, S;
6242
- t[11] !== h || t[12] !== v || t[13] !== g || t[14] !== m ? (S = () => {
6243
- if (!v) return /* @__PURE__ */ (0, $.jsx)(Ml, { schema: g });
6244
- let e = v.spec, t = Pu(e), n = f(t, h);
6239
+ let y = m.main?.plots?.[0], b;
6240
+ t[9] === y?.fieldInfos ? b = t[10] : (b = new Set(y?.fieldInfos.map(Fu)), t[9] = y?.fieldInfos, t[10] = b);
6241
+ let S = b, C;
6242
+ t[11] !== g || t[12] !== y || t[13] !== _ || t[14] !== h ? (C = () => {
6243
+ if (!y) return /* @__PURE__ */ (0, $.jsx)(Ml, { schema: _ });
6244
+ let e = y.spec, t = Pu(e), n = p(t, g);
6245
6245
  return /* @__PURE__ */ (0, $.jsx)("div", {
6246
6246
  className: o("flex overflow-y-auto justify-center items-center flex-1 w-[90%]"),
6247
- children: /* @__PURE__ */ (0, $.jsx)(ge, {
6248
- "data-container-width": he(n),
6247
+ children: /* @__PURE__ */ (0, $.jsx)(he, {
6248
+ "data-container-width": me(n),
6249
6249
  spec: n,
6250
- options: Au(m)
6250
+ options: Au(h)
6251
6251
  })
6252
6252
  });
6253
- }, t[11] = h, t[12] = v, t[13] = g, t[14] = m, t[15] = S) : S = t[15];
6254
- let C = S, w;
6255
- t[16] !== d || t[17] !== g ? (w = /* @__PURE__ */ (0, $.jsx)(Su, {
6256
- mark: d,
6257
- schema: g
6258
- }), t[16] = d, t[17] = g, t[18] = w) : w = t[18];
6259
- let T;
6260
- t[19] === C ? T = t[20] : (T = C(), t[19] = C, t[20] = T);
6261
- let ee;
6262
- t[21] !== w || t[22] !== T ? (ee = /* @__PURE__ */ (0, $.jsxs)("div", {
6253
+ }, t[11] = g, t[12] = y, t[13] = _, t[14] = h, t[15] = C) : C = t[15];
6254
+ let w = C, T;
6255
+ t[16] !== f || t[17] !== _ ? (T = /* @__PURE__ */ (0, $.jsx)(Su, {
6256
+ mark: f,
6257
+ schema: _
6258
+ }), t[16] = f, t[17] = _, t[18] = T) : T = t[18];
6259
+ let E;
6260
+ t[19] === w ? E = t[20] : (E = w(), t[19] = w, t[20] = E);
6261
+ let D;
6262
+ t[21] !== T || t[22] !== E ? (D = /* @__PURE__ */ (0, $.jsxs)("div", {
6263
6263
  className: "flex items-center gap-2",
6264
- children: [w, T]
6265
- }), t[21] = w, t[22] = T, t[23] = ee) : ee = t[23];
6266
- let E = p.histograms?.plots, te = p.addCategoricalField?.plots, ne = p.addQuantitativeField?.plots, re = p.addTemporalField?.plots, D;
6267
- if (t[24] !== r || t[25] !== h || t[26] !== x || t[27] !== ne || t[28] !== re || t[29] !== E || t[30] !== te || t[31] !== m) {
6264
+ children: [T, E]
6265
+ }), t[21] = T, t[22] = E, t[23] = D) : D = t[23];
6266
+ let O = m.histograms?.plots, ee = m.addCategoricalField?.plots, te = m.addQuantitativeField?.plots, ne = m.addTemporalField?.plots, k;
6267
+ if (t[24] !== r || t[25] !== g || t[26] !== S || t[27] !== te || t[28] !== ne || t[29] !== O || t[30] !== ee || t[31] !== h) {
6268
6268
  let e;
6269
- t[33] !== r || t[34] !== h || t[35] !== x || t[36] !== m ? (e = (e, t) => /* @__PURE__ */ (0, $.jsx)(Nu, {
6269
+ t[33] !== r || t[34] !== g || t[35] !== S || t[36] !== h ? (e = (e, t) => /* @__PURE__ */ (0, $.jsx)(Nu, {
6270
6270
  title: /* @__PURE__ */ (0, $.jsx)("div", {
6271
6271
  className: "flex flex-row gap-1",
6272
6272
  children: e.fieldInfos.map((e) => {
6273
6273
  let t = e.fieldDef.field === "*" ? "Count" : e.fieldDef.fn ? `${e.fieldDef.fn}(${e.fieldDef.field})` : e.fieldDef.field.toString();
6274
- return /* @__PURE__ */ (0, $.jsx)(_, {
6275
- variant: x.has(e.fieldDef.field) ? "secondary" : "defaultOutline",
6274
+ return /* @__PURE__ */ (0, $.jsx)(v, {
6275
+ variant: S.has(e.fieldDef.field) ? "secondary" : "defaultOutline",
6276
6276
  children: t
6277
6277
  }, t);
6278
6278
  })
6279
6279
  }),
6280
- actions: /* @__PURE__ */ (0, $.jsx)(oe, {
6280
+ actions: /* @__PURE__ */ (0, $.jsx)(d, {
6281
6281
  content: "Make main plot",
6282
6282
  children: /* @__PURE__ */ (0, $.jsx)(s, {
6283
6283
  "data-testid": "marimo-plugin-data-explorer-make-main-plot",
6284
6284
  variant: "text",
6285
6285
  size: "icon",
6286
6286
  onClick: () => {
6287
- let t = pe.fromEntries(e.fieldInfos.map(Iu));
6287
+ let t = fe.fromEntries(e.fieldInfos.map(Iu));
6288
6288
  r.setEncoding(t);
6289
6289
  },
6290
- children: /* @__PURE__ */ (0, $.jsx)(b, { className: "w-4 h-4" })
6290
+ children: /* @__PURE__ */ (0, $.jsx)(x, { className: "w-4 h-4" })
6291
6291
  })
6292
6292
  }),
6293
- children: /* @__PURE__ */ (0, $.jsx)(ge, {
6294
- options: Au(m),
6295
- spec: f(e.spec, h)
6293
+ children: /* @__PURE__ */ (0, $.jsx)(he, {
6294
+ options: Au(h),
6295
+ spec: p(e.spec, g)
6296
6296
  }, t)
6297
- }, t), t[33] = r, t[34] = h, t[35] = x, t[36] = m, t[37] = e) : e = t[37], D = [
6298
- E,
6297
+ }, t), t[33] = r, t[34] = g, t[35] = S, t[36] = h, t[37] = e) : e = t[37], k = [
6298
+ O,
6299
+ ee,
6299
6300
  te,
6300
- ne,
6301
- re
6302
- ].filter(Boolean).flat().map(e), t[24] = r, t[25] = h, t[26] = x, t[27] = ne, t[28] = re, t[29] = E, t[30] = te, t[31] = m, t[32] = D;
6303
- } else D = t[32];
6304
- let O;
6305
- t[38] === D ? O = t[39] : (O = /* @__PURE__ */ (0, $.jsx)(Mu, { children: D }), t[38] = D, t[39] = O);
6301
+ ne
6302
+ ].filter(Boolean).flat().map(e), t[24] = r, t[25] = g, t[26] = S, t[27] = te, t[28] = ne, t[29] = O, t[30] = ee, t[31] = h, t[32] = k;
6303
+ } else k = t[32];
6304
+ let ie;
6305
+ t[38] === k ? ie = t[39] : (ie = /* @__PURE__ */ (0, $.jsx)(Mu, { children: k }), t[38] = k, t[39] = ie);
6306
6306
  let ae;
6307
- return t[40] !== O || t[41] !== ee ? (ae = /* @__PURE__ */ (0, $.jsxs)("div", {
6307
+ return t[40] !== ie || t[41] !== D ? (ae = /* @__PURE__ */ (0, $.jsxs)("div", {
6308
6308
  className: "flex flex-col gap-2",
6309
- children: [ee, O]
6310
- }), t[40] = O, t[41] = ee, t[42] = ae) : ae = t[42], ae;
6309
+ children: [D, ie]
6310
+ }), t[40] = ie, t[41] = D, t[42] = ae) : ae = t[42], ae;
6311
6311
  }, Mu = (e) => {
6312
- let t = (0, Se.c)(2), { children: n } = e;
6312
+ let t = (0, xe.c)(2), { children: n } = e;
6313
6313
  if (kl.Children.count(n) === 0) return null;
6314
6314
  let r;
6315
6315
  return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, $.jsx)("div", {
@@ -6317,7 +6317,7 @@ var ju = (e) => {
6317
6317
  children: n
6318
6318
  }), t[0] = n, t[1] = r), r;
6319
6319
  }, Nu = (e) => {
6320
- let t = (0, Se.c)(10), { title: n, children: r, actions: i } = e, a;
6320
+ let t = (0, xe.c)(10), { title: n, children: r, actions: i } = e, a;
6321
6321
  t[0] === n ? a = t[1] : (a = /* @__PURE__ */ (0, $.jsx)("div", {
6322
6322
  className: "text-sm font-medium",
6323
6323
  children: n