@prostgles/app 2.3.6-dev.1796082782 → 2.3.6-dev.1796245364

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/client/build/02726df5e3a78b451761.mjs +2 -0
  2. package/client/build/{b02769651493b6f4acec.mjs.LICENSE.txt → 02726df5e3a78b451761.mjs.LICENSE.txt} +0 -1
  3. package/client/build/index.html +1 -1
  4. package/client/build/js/155.bundle.js +1 -1
  5. package/client/build/js/34.bundle.js +1 -1
  6. package/client/build/js/474.bundle.js +1 -1
  7. package/client/build/js/478.bundle.js +1 -1
  8. package/client/build/js/495.bundle.js +1 -1
  9. package/client/build/js/499.bundle.js +1 -1
  10. package/client/build/js/578.bundle.js +1 -1
  11. package/client/build/js/586.bundle.js +1 -1
  12. package/client/build/js/630.bundle.js +1 -1
  13. package/client/build/js/650.bundle.js +1 -1
  14. package/client/build/js/776.bundle.js +1 -1
  15. package/client/build/js/872.bundle.js +1 -1
  16. package/client/build/js/88.bundle.js +1 -1
  17. package/client/build/js/934.bundle.js +1 -1
  18. package/client/build/js/977.bundle.js +1 -1
  19. package/client/build/js/998.bundle.js +2 -0
  20. package/client/build/js/{733.bundle.js.LICENSE.txt → 998.bundle.js.LICENSE.txt} +1 -1
  21. package/client/build/js/deckgl.bundle.js +1 -1
  22. package/client/build/js/deckglExtensions.bundle.js +1 -1
  23. package/client/build/js/main.bundle.js +2 -2
  24. package/client/build/js/monaco_editor.bundle.js +1 -1
  25. package/client/build/js/mvtLoader.bundle.js +1 -1
  26. package/client/build/js/papaparse.bundle.js +1 -1
  27. package/client/build/js/papaparse.bundle.js.LICENSE.txt +1 -1
  28. package/client/build/mvt-worker.js +1 -1
  29. package/client/build/static/css/{main.d122debc.css → main.9f3305cf.css} +16 -0
  30. package/client/static/logos/saygm.svg +7 -0
  31. package/dist/common/DBGeneratedSchema.d.ts +30 -30
  32. package/dist/common/DBGeneratedSchema.d.ts.map +1 -1
  33. package/dist/common/DashboardTypes.d.ts +1 -1
  34. package/dist/common/DashboardTypes.d.ts.map +1 -1
  35. package/dist/common/actionColumn.d.ts +7 -7
  36. package/dist/common/actionColumn.d.ts.map +1 -1
  37. package/dist/common/actionColumn.js +7 -1
  38. package/dist/common/actionColumn.js.map +1 -1
  39. package/dist/common/columnDisplayFormat.schema.d.ts +4 -4
  40. package/dist/common/createActionColumn.d.ts +3 -3
  41. package/dist/common/functionOptions.d.ts +6 -6
  42. package/dist/common/llmUtils.d.ts.map +1 -1
  43. package/dist/common/mcp/tableOptionsJsonbSchema.d.ts +8 -8
  44. package/dist/common/mcp/ui.mcp.schema.d.ts +8 -8
  45. package/dist/common/prostglesMcp.d.ts +8 -8
  46. package/dist/common/userSync.d.ts +1 -2
  47. package/dist/common/userSync.d.ts.map +1 -1
  48. package/dist/common/userSync.js +8 -16
  49. package/dist/common/userSync.js.map +1 -1
  50. package/dist/server/package.json +8 -8
  51. package/dist/server/src/Alerts/enqueueAlerts.d.ts +1 -1
  52. package/dist/server/src/Alerts/enqueueAlerts.d.ts.map +1 -1
  53. package/dist/server/src/Alerts/enqueueAlerts.js +2 -2
  54. package/dist/server/src/Alerts/enqueueAlerts.js.map +1 -1
  55. package/dist/server/src/Alerts/getAlertFunctions.d.ts +1 -1
  56. package/dist/server/src/Alerts/getAlertFunctions.d.ts.map +1 -1
  57. package/dist/server/src/Alerts/getAlertFunctions.js +4 -4
  58. package/dist/server/src/Alerts/getAlertFunctions.js.map +1 -1
  59. package/dist/server/src/Alerts/getAlertRecipients.d.ts +1 -1
  60. package/dist/server/src/Alerts/getAlertRecipients.d.ts.map +1 -1
  61. package/dist/server/src/Alerts/getAlertRecipients.js +6 -6
  62. package/dist/server/src/Alerts/getAlertRecipients.js.map +1 -1
  63. package/dist/server/src/Alerts/getAlertTables.d.ts +1 -1
  64. package/dist/server/src/Alerts/getAlertTables.d.ts.map +1 -1
  65. package/dist/server/src/Alerts/getAlertTables.js +3 -3
  66. package/dist/server/src/Alerts/getAlertTables.js.map +1 -1
  67. package/dist/server/src/Alerts/getAlertsPlugin.d.ts +1 -1
  68. package/dist/server/src/Alerts/getAlertsPlugin.d.ts.map +1 -1
  69. package/dist/server/src/Alerts/getAlertsPlugin.js +5 -5
  70. package/dist/server/src/Alerts/getAlertsPlugin.js.map +1 -1
  71. package/dist/server/src/Alerts/runAlertDelivery.d.ts +1 -1
  72. package/dist/server/src/Alerts/runAlertDelivery.d.ts.map +1 -1
  73. package/dist/server/src/Alerts/runAlertDelivery.js +2 -2
  74. package/dist/server/src/Alerts/runAlertDelivery.js.map +1 -1
  75. package/dist/server/src/BackupManager/BackupManager.d.ts +30 -30
  76. package/dist/server/src/BackupManager/BackupManager.d.ts.map +1 -1
  77. package/dist/server/src/ConnectionManager/ConnectionManager.d.ts +32 -31
  78. package/dist/server/src/ConnectionManager/ConnectionManager.d.ts.map +1 -1
  79. package/dist/server/src/ConnectionManager/ConnectionManager.js +10 -8
  80. package/dist/server/src/ConnectionManager/ConnectionManager.js.map +1 -1
  81. package/dist/server/src/ConnectionManager/applyStartupSchemaConfig.js +1 -1
  82. package/dist/server/src/ConnectionManager/applyStartupSchemaConfig.js.map +1 -1
  83. package/dist/server/src/ConnectionManager/applyUserSyncTableConfig.d.ts +9 -0
  84. package/dist/server/src/ConnectionManager/applyUserSyncTableConfig.d.ts.map +1 -0
  85. package/dist/server/src/ConnectionManager/applyUserSyncTableConfig.js +40 -0
  86. package/dist/server/src/ConnectionManager/applyUserSyncTableConfig.js.map +1 -0
  87. package/dist/server/src/ConnectionManager/deleteStaleUserSyncRows.d.ts +4 -0
  88. package/dist/server/src/ConnectionManager/deleteStaleUserSyncRows.d.ts.map +1 -0
  89. package/dist/server/src/ConnectionManager/deleteStaleUserSyncRows.js +26 -0
  90. package/dist/server/src/ConnectionManager/deleteStaleUserSyncRows.js.map +1 -0
  91. package/dist/server/src/ConnectionManager/getAuditActorTableConfig.d.ts +1 -1
  92. package/dist/server/src/ConnectionManager/getAuditActorTableConfig.d.ts.map +1 -1
  93. package/dist/server/src/ConnectionManager/getAuditActorTableConfig.js +1 -3
  94. package/dist/server/src/ConnectionManager/getAuditActorTableConfig.js.map +1 -1
  95. package/dist/server/src/ConnectionManager/getConnectionAuth.d.ts.map +1 -1
  96. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.d.ts +4 -3
  97. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.d.ts.map +1 -1
  98. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.js +1 -4
  99. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.js.map +1 -1
  100. package/dist/server/src/ConnectionManager/getHotReloadConfigs.d.ts.map +1 -1
  101. package/dist/server/src/ConnectionManager/getHotReloadConfigs.js +16 -9
  102. package/dist/server/src/ConnectionManager/getHotReloadConfigs.js.map +1 -1
  103. package/dist/server/src/ConnectionManager/getSchemaConfig.d.ts +284 -2
  104. package/dist/server/src/ConnectionManager/getSchemaConfig.d.ts.map +1 -1
  105. package/dist/server/src/ConnectionManager/getSchemaConfig.js +57 -10
  106. package/dist/server/src/ConnectionManager/getSchemaConfig.js.map +1 -1
  107. package/dist/server/src/ConnectionManager/getUserSyncLookups.d.ts +14 -0
  108. package/dist/server/src/ConnectionManager/getUserSyncLookups.d.ts.map +1 -0
  109. package/dist/server/src/ConnectionManager/getUserSyncLookups.js +26 -0
  110. package/dist/server/src/ConnectionManager/getUserSyncLookups.js.map +1 -0
  111. package/dist/server/src/ConnectionManager/initConnectionManager.d.ts.map +1 -1
  112. package/dist/server/src/ConnectionManager/initConnectionManager.js +7 -5
  113. package/dist/server/src/ConnectionManager/initConnectionManager.js.map +1 -1
  114. package/dist/server/src/ConnectionManager/setSyncUserSub.d.ts.map +1 -1
  115. package/dist/server/src/ConnectionManager/setSyncUserSub.js +20 -15
  116. package/dist/server/src/ConnectionManager/setSyncUserSub.js.map +1 -1
  117. package/dist/server/src/ConnectionManager/syncConnectionUsers.d.ts.map +1 -1
  118. package/dist/server/src/ConnectionManager/syncConnectionUsers.js +40 -44
  119. package/dist/server/src/ConnectionManager/syncConnectionUsers.js.map +1 -1
  120. package/dist/server/src/ConnectionManager/syncSchemaConfig.d.ts.map +1 -1
  121. package/dist/server/src/ConnectionManager/syncSchemaConfig.js +12 -13
  122. package/dist/server/src/ConnectionManager/syncSchemaConfig.js.map +1 -1
  123. package/dist/server/src/Emails/getEmailOutboxPlugin.d.ts +1 -1
  124. package/dist/server/src/Emails/getEmailOutboxPlugin.d.ts.map +1 -1
  125. package/dist/server/src/Emails/getEmailOutboxPlugin.js +2 -2
  126. package/dist/server/src/Emails/getEmailOutboxPlugin.js.map +1 -1
  127. package/dist/server/src/Emails/getEmailOutboxTables.d.ts +1 -1
  128. package/dist/server/src/Emails/getEmailOutboxTables.d.ts.map +1 -1
  129. package/dist/server/src/Emails/getEmailOutboxTables.js +2 -2
  130. package/dist/server/src/Emails/getEmailOutboxTables.js.map +1 -1
  131. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateAgenticWorkflowDefinitions.d.ts.map +1 -1
  132. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/createWorkflowExecutionHandlers.d.ts.map +1 -1
  133. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/getAgentConfigWithDefaults.d.ts.map +1 -1
  134. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/setupOrchestrationToolPermissions.d.ts.map +1 -1
  135. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Ui.mcp.d.ts +8 -8
  136. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/getWebDevChatAndConnection.d.ts +30 -30
  137. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/getWebDevChatAndConnection.d.ts.map +1 -1
  138. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers.d.ts +16 -16
  139. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMcpHub.d.ts +16 -16
  140. package/dist/server/src/Plugins/jobsPlugin.d.ts +2 -2
  141. package/dist/server/src/Plugins/jobsPlugin.d.ts.map +1 -1
  142. package/dist/server/src/Plugins/jobsPlugin.js +2 -2
  143. package/dist/server/src/Plugins/jobsPlugin.js.map +1 -1
  144. package/dist/server/src/Plugins/parsePlugins.d.ts +4 -2
  145. package/dist/server/src/Plugins/parsePlugins.d.ts.map +1 -1
  146. package/dist/server/src/Plugins/parsePlugins.js +7 -10
  147. package/dist/server/src/Plugins/parsePlugins.js.map +1 -1
  148. package/dist/server/src/authConfig/getAuth.d.ts.map +1 -1
  149. package/dist/server/src/authConfig/sessionUtils.d.ts.map +1 -1
  150. package/dist/server/src/authConfig/subscribeToAuthSetupChanges.d.ts.map +1 -1
  151. package/dist/server/src/cli/cliTemplateFiles.js +1 -1
  152. package/dist/server/src/cli/cliTemplateFiles.js.map +1 -1
  153. package/dist/server/src/init/initUsers.d.ts.map +1 -1
  154. package/dist/server/src/publish/getPublishLLM.d.ts.map +1 -1
  155. package/dist/server/src/publish/getPublishLlmChats.d.ts.map +1 -1
  156. package/dist/server/src/schemaConfig.d.ts +1 -1
  157. package/dist/server/src/schemaConfig.d.ts.map +1 -1
  158. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts +60 -60
  159. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts.map +1 -1
  160. package/dist/server/src/serverFunctions/adminServerFunctions/webApp/getTemplatedWebAppConnection.d.ts +30 -30
  161. package/dist/server/src/serverFunctions/adminServerFunctions/webApp/getTemplatedWebAppConnection.d.ts.map +1 -1
  162. package/dist/server/src/serverFunctions/applySampleSchema.d.ts +30 -30
  163. package/dist/server/src/serverFunctions/applySampleSchema.d.ts.map +1 -1
  164. package/dist/server/src/serverFunctions/askLLM/askLLM.d.ts.map +1 -1
  165. package/dist/server/src/serverFunctions/askLLM/fetchModels.d.ts.map +1 -1
  166. package/dist/server/src/serverFunctions/askLLM/fetchModels.js +9 -2
  167. package/dist/server/src/serverFunctions/askLLM/fetchModels.js.map +1 -1
  168. package/dist/server/src/serverFunctions/askLLM/getLLMRequestBody.d.ts.map +1 -1
  169. package/dist/server/src/serverFunctions/askLLM/getLLMRequestBody.js +2 -1
  170. package/dist/server/src/serverFunctions/askLLM/getLLMRequestBody.js.map +1 -1
  171. package/dist/server/src/serverFunctions/askLLM/getPastMessages.d.ts.map +1 -1
  172. package/dist/server/src/serverFunctions/askLLM/getValidatedAskLLMChatOptions.d.ts.map +1 -1
  173. package/dist/server/src/serverFunctions/askLLM/handleToolUseResultConfirmation.d.ts.map +1 -1
  174. package/dist/server/src/serverFunctions/askLLM/parseLLMResponseObject.d.ts.map +1 -1
  175. package/dist/server/src/serverFunctions/askLLM/parseLLMResponseObject.js +2 -4
  176. package/dist/server/src/serverFunctions/askLLM/parseLLMResponseObject.js.map +1 -1
  177. package/dist/server/src/serverFunctions/askLLM/prostglesLLMTools/getMCPServerTools.d.ts.map +1 -1
  178. package/dist/server/src/serverFunctions/askLLM/prostglesLLMTools/getMcpToolsWithDynamicDescription.d.ts.map +1 -1
  179. package/dist/server/src/serverFunctions/askLLM/saveToolUseResults.d.ts.map +1 -1
  180. package/dist/server/src/serverFunctions/askLLM/sayGM.d.ts +10 -0
  181. package/dist/server/src/serverFunctions/askLLM/sayGM.d.ts.map +1 -0
  182. package/dist/server/src/serverFunctions/askLLM/sayGM.js +37 -0
  183. package/dist/server/src/serverFunctions/askLLM/sayGM.js.map +1 -0
  184. package/dist/server/src/serverFunctions/askLLM/setupLLMProviders.d.ts +2 -1
  185. package/dist/server/src/serverFunctions/askLLM/setupLLMProviders.d.ts.map +1 -1
  186. package/dist/server/src/serverFunctions/askLLM/setupLLMProviders.js +14 -5
  187. package/dist/server/src/serverFunctions/askLLM/setupLLMProviders.js.map +1 -1
  188. package/dist/server/src/serverFunctions/deleteConnection.d.ts +30 -30
  189. package/dist/server/src/serverFunctions/deleteConnection.d.ts.map +1 -1
  190. package/dist/server/src/serverFunctions/getConnectionAndDatabaseConfig.d.ts +30 -30
  191. package/dist/server/src/serverFunctions/getConnectionAndDatabaseConfig.d.ts.map +1 -1
  192. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedWorkspaces.d.ts.map +1 -1
  193. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedWorkspacesFunction.d.ts.map +1 -1
  194. package/dist/server/src/serverFunctions/stateServerFunctions.d.ts +60 -60
  195. package/dist/server/src/serverFunctions/stateServerFunctions.d.ts.map +1 -1
  196. package/dist/server/src/tableConfig/tableConfigUsers.d.ts +122 -3
  197. package/dist/server/src/tableConfig/tableConfigUsers.d.ts.map +1 -1
  198. package/dist/server/src/tableConfig/tableConfigUsers.js +14 -4
  199. package/dist/server/src/tableConfig/tableConfigUsers.js.map +1 -1
  200. package/dist/server/src/tableHooks/database_configs.tableHooks.d.ts +558 -2
  201. package/dist/server/src/tableHooks/database_configs.tableHooks.d.ts.map +1 -1
  202. package/dist/server/src/tableHooks/database_configs.tableHooks.js +12 -0
  203. package/dist/server/src/tableHooks/database_configs.tableHooks.js.map +1 -1
  204. package/dist/server/src/tableHooks/llm_credentials.tableHooks.d.ts.map +1 -1
  205. package/dist/server/src/tableHooks/tableHooks.d.ts +648 -92
  206. package/dist/server/src/tableHooks/tableHooks.d.ts.map +1 -1
  207. package/dist/server/src/tableHooks/users.tableHooks.d.ts +30 -30
  208. package/dist/server/src/tableHooks/users.tableHooks.d.ts.map +1 -1
  209. package/dist/server/src/upsertConnection.d.ts +30 -30
  210. package/dist/server/src/upsertConnection.d.ts.map +1 -1
  211. package/package.json +8 -8
  212. package/sample_schemas/crypto/dist/onMount.js +3 -1
  213. package/client/build/b02769651493b6f4acec.mjs +0 -2
  214. package/client/build/js/733.bundle.js +0 -2
  215. package/dist/server/src/ConnectionManager/syncConfiguredLlmCredential.d.ts +0 -4
  216. package/dist/server/src/ConnectionManager/syncConfiguredLlmCredential.d.ts.map +0 -1
  217. package/dist/server/src/ConnectionManager/syncConfiguredLlmCredential.js +0 -64
  218. package/dist/server/src/ConnectionManager/syncConfiguredLlmCredential.js.map +0 -1
  219. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/getAgentGrantPromptId.d.ts +0 -8
  220. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/getAgentGrantPromptId.d.ts.map +0 -1
  221. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/getAgentGrantPromptId.js +0 -34
  222. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/getAgentGrantPromptId.js.map +0 -1
  223. package/dist/server/src/serverFunctions/askLLM/checkLLMLimit.d.ts +0 -4
  224. package/dist/server/src/serverFunctions/askLLM/checkLLMLimit.d.ts.map +0 -1
  225. package/dist/server/src/serverFunctions/askLLM/checkLLMLimit.js +0 -45
  226. package/dist/server/src/serverFunctions/askLLM/checkLLMLimit.js.map +0 -1
  227. package/dist/server/src/serverFunctions/askLLM/getLlmLimitWasReached.d.ts +0 -4
  228. package/dist/server/src/serverFunctions/askLLM/getLlmLimitWasReached.d.ts.map +0 -1
  229. package/dist/server/src/serverFunctions/askLLM/getLlmLimitWasReached.js +0 -26
  230. package/dist/server/src/serverFunctions/askLLM/getLlmLimitWasReached.js.map +0 -1
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[982],{68968(M){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},37584(M){M.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},86060(M){M.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="}}]);
1
+ "use strict";(Array.isArray(globalThis.webpackChunk)?globalThis.webpackChunk:globalThis.webpackChunk=[]).push([[982],{68968(M){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},37584(M){M.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},86060(M){M.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="}}]);
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[879],{92806(a,h,s){s.d(h,{MVTLoader:()=>b.h});var b=s(56478)}}]);
1
+ "use strict";(Array.isArray(globalThis.webpackChunk)?globalThis.webpackChunk:globalThis.webpackChunk=[]).push([[879],{92806(a,h,r){r.d(h,{MVTLoader:()=>s.h});var s=r(56478)}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see papaparse.bundle.js.LICENSE.txt */
2
- (globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[676],{5501(e,t){var i,r,n;r=[],i=function e(){var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,n={},s=0,a={};function o(e){return 65279===e.charCodeAt(0)?e.slice(1):e}function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=k(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new c(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(n)].join(t)}this.isFirstChunk&&b(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var s=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,r)t.postMessage({results:s,workerId:a.WORKER_ID,finished:n});else if(b(this._config.chunk)&&!i){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!n||!b(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){b(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),h.call(this,e),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),i||(t.onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)),t.ontimeout=w(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadTimeout&&!i&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,r=this._config.downloadRequestHeaders;for(e in r)t.setRequestHeader(e,r[e])}var n;this._config.chunkSize&&(n=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+n));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}i&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))},this._chunkTimeout=function(){this._chunkError("Request timed out after "+this._config.downloadTimeout+"ms")}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),h.call(this,e);var t,i,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,n=(this._config.chunkSize&&(n=Math.min(this._start+this._config.chunkSize,this._input.size),e=i.call(e,this._start,n)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function l(e){var t;h.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,i;if(!this._finished)return e=this._config.chunkSize,t=e?(i=t.substring(0,e),t.substring(e)):(i=t,""),this._finished=!t,this.parseChunk(i)}}function f(e){h.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=w(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=w(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=w(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=w(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function c(e){var t,i,r,n,s=Math.pow(2,53),o=-s,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,d=this,l=0,f=0,c=!1,g=!1,m=[],y={data:[],errors:[],meta:{}};function w(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function E(){if(y&&r&&(R("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter(function(e){return!w(e)})),v()){if(y)if(Array.isArray(y.data[0])){for(var t=0;v()&&t<y.data.length;t++)y.data[t].forEach(i);y.data.splice(0,1)}else y.data.forEach(i);function i(e){m.push(e)}}function n(t,i){for(var r=e.header?{}:[],n=0;n<t.length;n++){var a=n,d=t[n];d=((t,i)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&((e=>{if(h.test(e)&&(e=parseFloat(e),o<e&&e<s))return 1})(i)?parseFloat(i):u.test(i)?new Date(i):""===i?null:i):i)(a=e.header?n>=m.length?"__parsed_extra":m[n]:a,d=e.transform?e.transform(d,a):d),"__parsed_extra"===a?(r[a]=r[a]||[],r[a].push(d)):r[a]=d}return e.header&&(n>m.length?R("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+n,f+i):n<m.length&&R("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+n,f+i)),r}var d;y&&(e.header||e.dynamicTyping||e.transform)&&(d=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(n),d=y.data.length):y.data=n(y.data,0),e.header&&y.meta&&(y.meta.fields=m),f+=d)}function v(){return e.header&&0===m.length}function R(e,t,i,r){e={type:e,code:t,message:i},void 0!==r&&(e.row=r),y.errors.push(e)}b(e.step)&&(n=e.step,e.step=function(t){y=t,v()?E():(E(),0!==y.data.length&&(l+=t.data.length,e.preview&&l>e.preview?i.abort():(y.data=y.data[0],n(y,d))))}),this.parse=function(n,s,o){var h=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(n,h)),r=!1,e.delimiter?b(e.delimiter)&&(e.delimiter=e.delimiter(n),y.meta.delimiter=e.delimiter):((h=((t,i,r,n,s)=>{var o,h,u,d;s=s||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var l=0;l<s.length;l++){for(var f,c=s[l],p=0,g=0,m=0,y=(u=void 0,new _({comments:n,delimiter:c,newline:i,preview:10}).parse(t)),k=0;k<y.data.length;k++)r&&w(y.data[k])?m++:(g+=f=y.data[k].length,void 0===u?u=f:0<f&&(p+=Math.abs(f-u),u=f));0<y.data.length&&(g/=y.data.length-m),1.99<g&&(void 0===h||p<h||p===h&&d<g)&&(h=p,o=c,d=g)}return{successful:!!(e.delimiter=o),bestDelimiter:o}})(n,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=h.bestDelimiter:(r=!0,e.delimiter=a.DefaultDelimiter),y.meta.delimiter=e.delimiter),(h=k(e)).header=v(),e.preview&&e.header&&h.preview++,t=n,i=new _(h),y=i.parse(t,s,o),E(),c?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,i.abort(),t=b(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){d.streamer._halted?(c=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,i.abort(),y.meta.aborted=!0,b(e.complete)&&e.complete(y),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(p(t)+"([^]*?)"+p(t),"gm");var i=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<i[0].length,1===i.length||e)return"\n";for(var r=0,n=0;n<i.length;n++)"\n"===i[n][0]&&r++;return r>=i.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(e){var t=(e=e||{}).delimiter,i=e.newline,r=e.comments,n=e.step,s=e.preview,h=e.fastMode,u=null,d=!1,l=null==e.quoteChar?'"':e.quoteChar,f=l;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<a.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<a.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var c=0,_=!1;this.parse=function(a,g,m){if("string"!=typeof a)throw new Error("Input must be a string");var y=a.length,k=t.length,w=i.length,E=r.length,v=b(n),R=[],C=[],S=[],O=c=0;if(!a)return P();if(h||!1!==h&&-1===a.indexOf(l)){for(var T=a.split(i),x=0;x<T.length;x++){if(S=T[x],c+=S.length,x!==T.length-1)c+=i.length;else if(m)return P();if(!r||S.substring(0,E)!==r){if(v){if(R=[],z(S.split(t)),U(),_)return P()}else z(S.split(t));if(s&&s<=x)return R=R.slice(0,s),P(!0)}}return P()}for(var I=a.indexOf(t,c),A=a.indexOf(i,c),D=new RegExp(p(f)+p(l),"g"),L=a.indexOf(l,c);;)if(a[c]===l)for(L=c,c++;;){if(-1===(L=a.indexOf(l,L+1)))return m||C.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:R.length,index:c}),j();if(L===y-1)return j(a.substring(c,L).replace(D,l));if(l===f&&a[L+1]===f)L++;else if(l===f||0===L||a[L-1]!==f){-1!==I&&I<L+1&&(I=a.indexOf(t,L+1));var F=M(-1===(A=-1!==A&&A<L+1?a.indexOf(i,L+1):A)?I:Math.min(I,A));if(a.substr(L+1+F,k)===t){S.push(a.substring(c,L).replace(D,l)),a[c=L+1+F+k]!==l&&(L=a.indexOf(l,c)),I=a.indexOf(t,c),A=a.indexOf(i,c);break}if(F=M(A),a.substring(L+1+F,L+1+F+w)===i){if(S.push(a.substring(c,L).replace(D,l)),q(L+1+F+w),I=a.indexOf(t,c),L=a.indexOf(l,c),v&&(U(),_))return P();if(s&&R.length>=s)return P(!0);break}C.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:R.length,index:c}),L++}}else if(r&&0===S.length&&a.substring(c,c+E)===r){if(-1===A)return P();c=A+w,A=a.indexOf(i,c),I=a.indexOf(t,c)}else if(-1!==I&&(I<A||-1===A))S.push(a.substring(c,I)),c=I+k,I=a.indexOf(t,c);else{if(-1===A)break;if(S.push(a.substring(c,A)),q(A+w),v&&(U(),_))return P();if(s&&R.length>=s)return P(!0)}return j();function z(e){R.push(e),O=c}function M(e){var t=0;return-1!==e&&(e=a.substring(L+1,e))&&""===e.trim()?e.length:t}function j(e){return m||(void 0===e&&(e=a.substring(c)),S.push(e),c=y,z(S),v&&U()),P()}function q(e){c=e,z(S),S=[],A=a.indexOf(i,c)}function P(r){if(e.header&&!g&&R.length&&!d){var n=R[0],s=Object.create(null),a=new Set(n);let t=!1;for(let i=0;i<n.length;i++){let r=o(n[i]);if(s[r=b(e.transformHeader)?e.transformHeader(r,i):r]){let e,o=s[r];for(;e=r+"_"+o,o++,a.has(e););a.add(e),n[i]=e,s[r]++,t=!0,(u=null===u?{}:u)[e]=r}else s[r]=1,n[i]=r;a.add(r)}t&&console.warn("Duplicate headers found and renamed."),d=!0}return{data:R,errors:C,meta:{delimiter:t,linebreak:i,aborted:_,truncated:!!r,cursor:O+(g||0),renamedHeaders:u}}}function U(){n(P()),R=[],C=[]}},this.abort=function(){_=!0},this.getCharIndex=function(){return c}}function g(e){var t=e.data,i=n[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(b(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},s),!r);a++);delete t.results}else b(i.userChunk)&&(i.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var i=n[e];b(i.userComplete)&&i.userComplete(t),i.terminate(),delete n[e]}function y(){throw new Error("Not implemented.")}function k(e){if("object"!=typeof e||null===e)return e;var t,i=Array.isArray(e)?[]:{};for(t in e)i[t]=k(e[t]);return i}function w(e,t){return function(){e.apply(t,arguments)}}function b(e){return"function"==typeof e}return a.parse=function(i,r){if(b(h=(r=r||{}).dynamicTyping||!1)&&(r.dynamicTypingFunction=h,h={}),r.dynamicTyping=h,r.transform=!!b(r.transform)&&r.transform,void 0!==r.downloadTimeout){var h=parseInt(r.downloadTimeout);if(isNaN(h))throw new Error("Config downloadTimeout value ("+r.downloadTimeout+") not parsable by parseInt(val).");r.downloadTimeout=h}if(!r.worker||!a.WORKERS_SUPPORTED)return h=null,a.NODE_STREAM_INPUT,"string"==typeof i?(i=o(i),h=new(r.download?u:l)(r)):!0===i.readable&&b(i.read)&&b(i.on)?h=new f(r):(t.File&&i instanceof File||i instanceof Object)&&(h=new d(r)),h.stream(i);(h=(()=>{var i;return!!a.WORKERS_SUPPORTED&&(i=(()=>{var i=t.URL||t.webkitURL||null,r=e.toString();return a.BLOB_URL||(a.BLOB_URL=i.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))})(),(i=new t.Worker(i)).onmessage=g,i.id=s++,n[i.id]=i)})()).userStep=r.step,h.userChunk=r.chunk,h.userComplete=r.complete,h.userError=r.error,r.step=b(r.step),r.chunk=b(r.chunk),r.complete=b(r.complete),r.error=b(r.error),delete r.worker,h.postMessage({input:i,config:r,workerId:h.id})},a.unparse=function(e,t){var i=!1,r=!0,n=",",s="\r\n",o='"',h=o+o,u=!1,d=null,l=!1,f=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(n=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar,h=o+o),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(h=t.escapeChar+o),t.escapeFormulae instanceof RegExp?l=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(l=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(o),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return c(null,e,u);if("object"==typeof e[0])return c(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function c(e,t,i){var a="",o=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),h=!Array.isArray(t[0]);if(o&&r){for(var u=0;u<e.length;u++)0<u&&(a+=n),a+=_(e[u],u);0<t.length&&(a+=s)}for(var d=0;d<t.length;d++){var l=(o?e:t[d]).length,f=!1,c=o?0===Object.keys(t[d]).length:0===t[d].length;if(i&&!o&&(f="greedy"===i?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===i&&o){for(var p=[],g=0;g<l;g++){var m=h?e[g]:g;p.push(t[d][m])}f=""===p.join("").trim()}if(!f){for(var y=0;y<l;y++){0<y&&!c&&(a+=n);var k=o&&h?e[y]:y;a+=_(t[d][k],y)}d<t.length-1&&(!i||0<l&&!c)&&(a+=s)}}return a}function _(e,t){var r,s,u;return null==e?"":e.constructor===Date?isNaN(e.getTime())?"":e.toISOString():(u=!1,l&&"string"==typeof e&&l.test(e)&&(e="'"+e,u=!0),s=(r=e.toString()).replace(f,h),(u=u||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||((e,t)=>{for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1})(s,a.BAD_DELIMITERS)||-1<s.indexOf(n)||-1<r.indexOf(o)||" "===s.charAt(0)||" "===s.charAt(s.length-1))?o+s+o:s)}},a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!i&&!!t.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=_,a.ParserHandle=c,a.NetworkStreamer=u,a.FileStreamer=d,a.StringStreamer=l,a.ReadableStreamStreamer=f,r&&(t.onmessage=function(e){e=e.data,void 0===a.WORKER_ID&&e&&(a.WORKER_ID=e.workerId),"string"==typeof e.input?t.postMessage({workerId:a.WORKER_ID,results:a.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=a.parse(e.input,e.config))&&t.postMessage({workerId:a.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(h.prototype)).constructor=u,(d.prototype=Object.create(h.prototype)).constructor=d,(l.prototype=Object.create(l.prototype)).constructor=l,(f.prototype=Object.create(h.prototype)).constructor=f,a},void 0===(n="function"==typeof i?i.apply(t,r):i)||(e.exports=n)}}]);
2
+ (Array.isArray(globalThis.webpackChunk)?globalThis.webpackChunk:globalThis.webpackChunk=[]).push([[676],{5501(e,t){var i,r,n;r=[],i=function e(){var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,n={},s=0,a={};function o(e){return 65279===e.charCodeAt(0)?e.slice(1):e}function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=k(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new c(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(n)].join(t)}this.isFirstChunk&&b(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var s=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,r)t.postMessage({results:s,workerId:a.WORKER_ID,finished:n});else if(b(this._config.chunk)&&!i){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!n||!b(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){b(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),h.call(this,e),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),i||(t.onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)),t.ontimeout=w(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadTimeout&&!i&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,r=this._config.downloadRequestHeaders;for(e in r)t.setRequestHeader(e,r[e])}var n;this._config.chunkSize&&(n=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+n));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}i&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))},this._chunkTimeout=function(){this._chunkError("Request timed out after "+this._config.downloadTimeout+"ms")}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),h.call(this,e);var t,i,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,n=(this._config.chunkSize&&(n=Math.min(this._start+this._config.chunkSize,this._input.size),e=i.call(e,this._start,n)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function l(e){var t;h.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,i;if(!this._finished)return e=this._config.chunkSize,t=e?(i=t.substring(0,e),t.substring(e)):(i=t,""),this._finished=!t,this.parseChunk(i)}}function f(e){h.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=w(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=w(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=w(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=w(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function c(e){var t,i,r,n,s=Math.pow(2,53),o=-s,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,d=this,l=0,f=0,c=!1,g=!1,m=[],y={data:[],errors:[],meta:{}};function w(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function E(){if(y&&r&&(R("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter(function(e){return!w(e)})),v()){if(y)if(Array.isArray(y.data[0])){for(var t=0;v()&&t<y.data.length;t++)y.data[t].forEach(i);y.data.splice(0,1)}else y.data.forEach(i);function i(e){m.push(e)}}function n(t,i){for(var r=e.header?{}:[],n=0;n<t.length;n++){var a=n,d=t[n];d=((t,i)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&((e=>{if(h.test(e)&&(e=parseFloat(e),o<e&&e<s))return 1})(i)?parseFloat(i):u.test(i)?new Date(i):""===i?null:i):i)(a=e.header?n>=m.length?"__parsed_extra":m[n]:a,d=e.transform?e.transform(d,a):d),"__parsed_extra"===a?(r[a]=r[a]||[],r[a].push(d)):r[a]=d}return e.header&&(n>m.length?R("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+n,f+i):n<m.length&&R("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+n,f+i)),r}var d;y&&(e.header||e.dynamicTyping||e.transform)&&(d=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(n),d=y.data.length):y.data=n(y.data,0),e.header&&y.meta&&(y.meta.fields=m),f+=d)}function v(){return e.header&&0===m.length}function R(e,t,i,r){e={type:e,code:t,message:i},void 0!==r&&(e.row=r),y.errors.push(e)}b(e.step)&&(n=e.step,e.step=function(t){y=t,v()?E():(E(),0!==y.data.length&&(l+=t.data.length,e.preview&&l>e.preview?i.abort():(y.data=y.data[0],n(y,d))))}),this.parse=function(n,s,o){var h=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(n,h)),r=!1,e.delimiter?b(e.delimiter)&&(e.delimiter=e.delimiter(n),y.meta.delimiter=e.delimiter):((h=((t,i,r,n,s)=>{var o,h,u,d;s=s||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var l=0;l<s.length;l++){for(var f,c=s[l],p=0,g=0,m=0,y=(u=void 0,new _({comments:n,delimiter:c,newline:i,preview:10}).parse(t)),k=0;k<y.data.length;k++)r&&w(y.data[k])?m++:(g+=f=y.data[k].length,void 0===u?u=f:0<f&&(p+=Math.abs(f-u),u=f));0<y.data.length&&(g/=y.data.length-m),1.99<g&&(void 0===h||p<h||p===h&&d<g)&&(h=p,o=c,d=g)}return{successful:!!(e.delimiter=o),bestDelimiter:o}})(n,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=h.bestDelimiter:(r=!0,e.delimiter=a.DefaultDelimiter),y.meta.delimiter=e.delimiter),(h=k(e)).header=v(),e.preview&&e.header&&h.preview++,t=n,i=new _(h),y=i.parse(t,s,o),E(),c?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,i.abort(),t=b(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){d.streamer._halted?(c=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,i.abort(),y.meta.aborted=!0,b(e.complete)&&e.complete(y),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(p(t)+"([^]*?)"+p(t),"gm");var i=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<i[0].length,1===i.length||e)return"\n";for(var r=0,n=0;n<i.length;n++)"\n"===i[n][0]&&r++;return r>=i.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(e){var t=(e=e||{}).delimiter,i=e.newline,r=e.comments,n=e.step,s=e.preview,h=e.fastMode,u=null,d=!1,l=null==e.quoteChar?'"':e.quoteChar,f=l;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<a.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<a.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var c=0,_=!1;this.parse=function(a,g,m){if("string"!=typeof a)throw new Error("Input must be a string");var y=a.length,k=t.length,w=i.length,E=r.length,v=b(n),R=[],C=[],S=[],O=c=0;if(!a)return P();if(h||!1!==h&&-1===a.indexOf(l)){for(var T=a.split(i),x=0;x<T.length;x++){if(S=T[x],c+=S.length,x!==T.length-1)c+=i.length;else if(m)return P();if(!r||S.substring(0,E)!==r){if(v){if(R=[],z(S.split(t)),U(),_)return P()}else z(S.split(t));if(s&&s<=x)return R=R.slice(0,s),P(!0)}}return P()}for(var I=a.indexOf(t,c),A=a.indexOf(i,c),D=new RegExp(p(f)+p(l),"g"),L=a.indexOf(l,c);;)if(a[c]===l)for(L=c,c++;;){if(-1===(L=a.indexOf(l,L+1)))return m||C.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:R.length,index:c}),j();if(L===y-1)return j(a.substring(c,L).replace(D,l));if(l===f&&a[L+1]===f)L++;else if(l===f||0===L||a[L-1]!==f){-1!==I&&I<L+1&&(I=a.indexOf(t,L+1));var F=M(-1===(A=-1!==A&&A<L+1?a.indexOf(i,L+1):A)?I:Math.min(I,A));if(a.substr(L+1+F,k)===t){S.push(a.substring(c,L).replace(D,l)),a[c=L+1+F+k]!==l&&(L=a.indexOf(l,c)),-1!==I&&I<c&&(I=a.indexOf(t,c)),-1!==A&&A<c&&(A=a.indexOf(i,c));break}if(F=M(A),a.substring(L+1+F,L+1+F+w)===i){if(S.push(a.substring(c,L).replace(D,l)),q(L+1+F+w),-1!==I&&I<c&&(I=a.indexOf(t,c)),L=a.indexOf(l,c),v&&(U(),_))return P();if(s&&R.length>=s)return P(!0);break}C.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:R.length,index:c}),L++}}else if(r&&0===S.length&&a.substring(c,c+E)===r){if(-1===A)return P();c=A+w,A=a.indexOf(i,c),-1!==I&&I<c&&(I=a.indexOf(t,c))}else if(-1!==I&&(I<A||-1===A))S.push(a.substring(c,I)),c=I+k,I=a.indexOf(t,c);else{if(-1===A)break;if(S.push(a.substring(c,A)),q(A+w),v&&(U(),_))return P();if(s&&R.length>=s)return P(!0)}return j();function z(e){R.push(e),O=c}function M(e){var t=0;return-1!==e&&(e=a.substring(L+1,e))&&""===e.trim()?e.length:t}function j(e){return m||(void 0===e&&(e=a.substring(c)),S.push(e),c=y,z(S),v&&U()),P()}function q(e){c=e,z(S),S=[],A=a.indexOf(i,c)}function P(r){if(e.header&&!g&&R.length&&!d){var n=R[0],s=Object.create(null),a=new Set(n);let t=!1;for(let i=0;i<n.length;i++){let r=o(n[i]);if(s[r=b(e.transformHeader)?e.transformHeader(r,i):r]){let e,o=s[r];for(;e=r+"_"+o,o++,a.has(e););a.add(e),n[i]=e,s[r]++,t=!0,(u=null===u?{}:u)[e]=r}else s[r]=1,n[i]=r;a.add(r)}t&&console.warn("Duplicate headers found and renamed."),d=!0}return{data:R,errors:C,meta:{delimiter:t,linebreak:i,aborted:_,truncated:!!r,cursor:O+(g||0),renamedHeaders:u}}}function U(){n(P()),R=[],C=[]}},this.abort=function(){_=!0},this.getCharIndex=function(){return c}}function g(e){var t=e.data,i=n[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(b(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},s),!r);a++);delete t.results}else b(i.userChunk)&&(i.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var i=n[e];b(i.userComplete)&&i.userComplete(t),i.terminate(),delete n[e]}function y(){throw new Error("Not implemented.")}function k(e){if("object"!=typeof e||null===e)return e;var t,i=Array.isArray(e)?[]:{};for(t in e)i[t]=k(e[t]);return i}function w(e,t){return function(){e.apply(t,arguments)}}function b(e){return"function"==typeof e}return a.parse=function(i,r){if(b(h=(r=r||{}).dynamicTyping||!1)&&(r.dynamicTypingFunction=h,h={}),r.dynamicTyping=h,r.transform=!!b(r.transform)&&r.transform,void 0!==r.downloadTimeout){var h=parseInt(r.downloadTimeout);if(isNaN(h))throw new Error("Config downloadTimeout value ("+r.downloadTimeout+") not parsable by parseInt(val).");r.downloadTimeout=h}if(!r.worker||!a.WORKERS_SUPPORTED)return h=null,a.NODE_STREAM_INPUT,"string"==typeof i?(i=o(i),h=new(r.download?u:l)(r)):!0===i.readable&&b(i.read)&&b(i.on)?h=new f(r):(t.File&&i instanceof File||i instanceof Object)&&(h=new d(r)),h.stream(i);(h=(()=>{var i;return!!a.WORKERS_SUPPORTED&&(i=(()=>{var i=t.URL||t.webkitURL||null,r=e.toString();return a.BLOB_URL||(a.BLOB_URL=i.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))})(),(i=new t.Worker(i)).onmessage=g,i.id=s++,n[i.id]=i)})()).userStep=r.step,h.userChunk=r.chunk,h.userComplete=r.complete,h.userError=r.error,r.step=b(r.step),r.chunk=b(r.chunk),r.complete=b(r.complete),r.error=b(r.error),delete r.worker,h.postMessage({input:i,config:r,workerId:h.id})},a.unparse=function(e,t){var i=!1,r=!0,n=",",s="\r\n",o='"',h=o+o,u=!1,d=null,l=!1,f=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(n=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar,h=o+o),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(h=t.escapeChar+o),t.escapeFormulae instanceof RegExp?l=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(l=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(o),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length)return c(d,e,u);if(Array.isArray(e[0]))return c(null,e,u);if("object"==typeof e[0])return c(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function c(e,t,i){var a="",o=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),h=!Array.isArray(t[0]);if(o&&r){for(var u=0;u<e.length;u++)0<u&&(a+=n),a+=_(e[u],u);0<t.length&&(a+=s)}for(var d=0;d<t.length;d++){var l=(o?e:t[d]).length,f=!1,c=o?0===Object.keys(t[d]).length:0===t[d].length;if(i&&!o&&(f="greedy"===i?""===t[d].join("").trim():1===t[d].length&&(null==t[d][0]||0===t[d][0].length)),"greedy"===i&&o){for(var p=[],g=0;g<l;g++){var m=h?e[g]:g;p.push(t[d][m])}f=""===p.join("").trim()}if(!f){for(var y=0;y<l;y++){0<y&&!c&&(a+=n);var k=o&&h?e[y]:y;a+=_(t[d][k],y)}d<t.length-1&&(!i||0<l&&!c)&&(a+=s)}}return a}function _(e,t){var r,s,u;return null==e?"":e.constructor===Date?isNaN(e.getTime())?"":e.toISOString():(u=!1,r=e.toString(),l&&"number"!=typeof e&&"bigint"!=typeof e&&"boolean"!=typeof e&&l.test(r)&&(e=r="'"+r,u=!0),s=r.replace(f,h),(u=u||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||((e,t)=>{for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1})(s,a.BAD_DELIMITERS)||-1<s.indexOf(n)||-1<r.indexOf(o)||" "===s.charAt(0)||" "===s.charAt(s.length-1))?o+s+o:s)}},a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!i&&!!t.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=_,a.ParserHandle=c,a.NetworkStreamer=u,a.FileStreamer=d,a.StringStreamer=l,a.ReadableStreamStreamer=f,r&&(t.onmessage=function(e){e=e.data,void 0===a.WORKER_ID&&e&&(a.WORKER_ID=e.workerId),"string"==typeof e.input?t.postMessage({workerId:a.WORKER_ID,results:a.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=a.parse(e.input,e.config))&&t.postMessage({workerId:a.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(h.prototype)).constructor=u,(d.prototype=Object.create(h.prototype)).constructor=d,(l.prototype=Object.create(l.prototype)).constructor=l,(f.prototype=Object.create(h.prototype)).constructor=f,a},void 0===(n="function"==typeof i?i.apply(t,r):i)||(e.exports=n)}}]);
@@ -1,6 +1,6 @@
1
1
  /* @license
2
2
  Papa Parse
3
- v5.7.0
3
+ v5.7.1
4
4
  https://github.com/mholt/PapaParse
5
5
  License: MIT
6
6
  */
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see mvt-worker.js.LICENSE.txt */
2
- "use strict";(()=>{var t=Object.create,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(t,e)=>function(){return e||(0,t[r(t)[0]])((e={exports:{}}).exports,e),e.exports},a=s({"../../node_modules/ieee754/index.js"(t){t.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,h=-7,c=n?i-1:0,f=n?-1:1,p=t[e+c];for(c+=f,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+c],c+=f,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=r;h>0;s=256*s+t[e+c],c+=f,h-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=l}return(p?-1:1)*s*Math.pow(2,o-r)},t.write=function(t,e,n,r,i,o){var s,a,u,l=8*o-i-1,h=(1<<l)-1,c=h>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+c>=1?f/u:f*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=h?(a=0,s=h):s+c>=1?(a=(e*u-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[n+p]=255&s,p+=d,s/=256,l-=8);t[n+p-d]|=128*g}}}),u=s({"../../node_modules/pbf/index.js"(t,e){e.exports=r;var n=a();function r(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}r.Varint=0,r.Fixed64=1,r.Bytes=2,r.Fixed32=5;var i=4294967296,o=1/i,s="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");function u(t){return t.type===r.Bytes?t.readVarint()+t.pos:t.pos+1}function l(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function h(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function c(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function f(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function p(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function d(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function g(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function y(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function x(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function w(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function v(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function b(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function m(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function _(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}r.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,t(i,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=b(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=_(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=b(this.buf,this.pos)+b(this.buf,this.pos+4)*i;return this.pos+=8,t},readSFixed64:function(){var t=b(this.buf,this.pos)+_(this.buf,this.pos+4)*i;return this.pos+=8,t},readFloat:function(){var t=n.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=n.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,i,o=n.buf;if(i=o[n.pos++],r=(112&i)>>4,i<128)return l(t,r,e);if(i=o[n.pos++],r|=(127&i)<<3,i<128)return l(t,r,e);if(i=o[n.pos++],r|=(127&i)<<10,i<128)return l(t,r,e);if(i=o[n.pos++],r|=(127&i)<<17,i<128)return l(t,r,e);if(i=o[n.pos++],r|=(127&i)<<24,i<128)return l(t,r,e);if(i=o[n.pos++],r|=(1&i)<<31,i<128)return l(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&s?function(t,e,n){return s.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){var r="",i=e;for(;i<n;){var o,s,a,u=t[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h>n)break;1===h?u<128&&(l=u):2===h?128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)<=127&&(l=null):3===h?(o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&((l=(15&u)<<12|(63&o)<<6|63&s)<=2047||l>=55296&&l<=57343)&&(l=null)):4===h&&(o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&((l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,h=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=h}return r}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==r.Bytes)return t.push(this.readVarint(e));var n=u(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==r.Bytes)return t.push(this.readSVarint());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==r.Bytes)return t.push(this.readBoolean());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==r.Bytes)return t.push(this.readFloat());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==r.Bytes)return t.push(this.readDouble());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==r.Bytes)return t.push(this.readFixed32());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==r.Bytes)return t.push(this.readSFixed32());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==r.Bytes)return t.push(this.readFixed64());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==r.Bytes)return t.push(this.readSFixed64());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===r.Varint)for(;this.buf[this.pos++]>127;);else if(e===r.Bytes)this.pos=this.readVarint()+this.pos;else if(e===r.Fixed32)this.pos+=4;else{if(e!==r.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),m(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),m(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),m(this.buf,-1&t,this.pos),m(this.buf,Math.floor(t*o),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),m(this.buf,-1&t,this.pos),m(this.buf,Math.floor(t*o),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var n,r;t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0));if(t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos]=127&t}(n,0,e),function(t,e){var n=(7&t)<<4;if(e.buf[e.pos++]|=n|((t>>>=3)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;e.buf[e.pos++]=127&t}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,i,o=0;o<e.length;o++){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):i=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(t[n++]=239,t[n++]=191,t[n++]=189,i=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&h(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),n.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),n.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var r=this.pos-n;r>=128&&h(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,r.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,c,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,f,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,g,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,p,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,d,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,x,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,w,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,v,e)},writeBytesField:function(t,e){this.writeTag(t,r.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,r.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,r.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,r.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}}}),l={x:0,y:1,z:2};function h(t,e={}){const{start:n=0,end:r=t.length,plane:i="xy"}=e,o=e.size||2;let s=0;const a=l[i[0]],u=l[i[1]];for(let e=n,i=r-o;e<r;e+=o)s+=(t[e+a]-t[i+a])*(t[e+u]+t[i+u]),i=e;return s/2}function c(t,e,n=2,r,i="xy"){const o=e&&e.length,s=o?e[0]*n:t.length;let a=f(t,0,s,n,!0,r&&r[0],i);const u=[];if(!a||a.next===a.prev)return u;let l,h,c,p,g,y,x;if(o&&(a=function(t,e,n,r,i,o){const s=[];let a,u,l,h,c;for(a=0,u=e.length;a<u;a++)l=e[a]*r,h=a<u-1?e[a+1]*r:t.length,c=f(t,l,h,r,!1,i&&i[a+1],o),c===c.next&&(c.steiner=!0),s.push(F(c));for(s.sort(v),a=0;a<s.length;a++)n=b(s[a],n);return n}(t,e,a,n,r,i)),t.length>80*n){p=h=t[0],g=c=t[1];for(let e=n;e<s;e+=n)y=t[e],x=t[e+1],y<p&&(p=y),x<g&&(g=x),y>h&&(h=y),x>c&&(c=x);l=Math.max(h-p,c-g),l=0!==l?32767/l:0}return d(a,u,n,p,g,l,0),u}function f(t,e,n,r,i,o,s){let a,u;void 0===o&&(o=h(t,{start:e,end:n,size:r,plane:s}));let c=l[s[0]],f=l[s[1]];if(i===o<0)for(a=e;a<n;a+=r)u=A(a,t[a+c],t[a+f],u);else for(a=n-r;a>=e;a-=r)u=A(a,t[a+c],t[a+f],u);return u&&V(u,u.next)&&(k(u),u=u.next),u}function p(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!V(r,r.next)&&0!==T(r.prev,r,r.next))r=r.next;else{if(k(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function d(t,e,n,r,i,o,s){if(!t)return;!s&&o&&function(t,e,n,r){let i=t;do{0===i.z&&(i.z=_(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){let e,n,r,i,o,s,a,u,l=1;do{for(i=t,t=null,u=null,r=0;i;){for(r++,s=i,o=0,n=0;n<l&&(o++,s=s.nextZ,s);n++);for(a=l;o>0||a>0&&s;)0!==o&&(0===a||!s||i.z<=s.z)?(e=i,i=i.nextZ,o--):(e=s,s=s.nextZ,a--),u?u.nextZ=e:t=e,e.prevZ=u,u=e;i=s}u.nextZ=null,l*=2}while(r>1)}(i)}(t,r,i,o);let a,u,l=t;for(;t.prev!==t.next;)if(a=t.prev,u=t.next,o?y(t,r,i,o):g(t))e.push(a.i/n|0),e.push(t.i/n|0),e.push(u.i/n|0),k(t),t=u.next,l=u.next;else if((t=u)===l){s?1===s?d(t=x(p(t),e,n),e,n,r,i,o,2):2===s&&w(t,e,n,r,i,o):d(p(t),e,n,r,i,o,1);break}}function g(t){const e=t.prev,n=t,r=t.next;if(T(e,n,r)>=0)return!1;const i=e.x,o=n.x,s=r.x,a=e.y,u=n.y,l=r.y,h=i<o?i<s?i:s:o<s?o:s,c=a<u?a<l?a:l:u<l?u:l,f=i>o?i>s?i:s:o>s?o:s,p=a>u?a>l?a:l:u>l?u:l;let d=r.next;for(;d!==e;){if(d.x>=h&&d.x<=f&&d.y>=c&&d.y<=p&&P(i,a,o,u,s,l,d.x,d.y)&&T(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function y(t,e,n,r){const i=t.prev,o=t,s=t.next;if(T(i,o,s)>=0)return!1;const a=i.x,u=o.x,l=s.x,h=i.y,c=o.y,f=s.y,p=a<u?a<l?a:l:u<l?u:l,d=h<c?h<f?h:f:c<f?c:f,g=a>u?a>l?a:l:u>l?u:l,y=h>c?h>f?h:f:c>f?c:f,x=_(p,d,e,n,r),w=_(g,y,e,n,r);let v=t.prevZ,b=t.nextZ;for(;v&&v.z>=x&&b&&b.z<=w;){if(v.x>=p&&v.x<=g&&v.y>=d&&v.y<=y&&v!==i&&v!==s&&P(a,h,u,c,l,f,v.x,v.y)&&T(v.prev,v,v.next)>=0)return!1;if(v=v.prevZ,b.x>=p&&b.x<=g&&b.y>=d&&b.y<=y&&b!==i&&b!==s&&P(a,h,u,c,l,f,b.x,b.y)&&T(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;v&&v.z>=x;){if(v.x>=p&&v.x<=g&&v.y>=d&&v.y<=y&&v!==i&&v!==s&&P(a,h,u,c,l,f,v.x,v.y)&&T(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;b&&b.z<=w;){if(b.x>=p&&b.x<=g&&b.y>=d&&b.y<=y&&b!==i&&b!==s&&P(a,h,u,c,l,f,b.x,b.y)&&T(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function x(t,e,n){let r=t;do{const i=r.prev,o=r.next.next;!V(i,o)&&B(i,r,r.next,o)&&M(i,o)&&M(o,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(o.i/n|0),k(r),k(r.next),r=t=o),r=r.next}while(r!==t);return p(r)}function w(t,e,n,r,i,o){let s=t;do{let t=s.next.next;for(;t!==s.prev;){if(s.i!==t.i&&I(s,t)){let a=C(s,t);return s=p(s,s.next),a=p(a,a.next),d(s,e,n,r,i,o,0),void d(a,e,n,r,i,o,0)}t=t.next}s=s.next}while(s!==t)}function v(t,e){return t.x-e.x}function b(t,e){const n=function(t,e){let n=e;const r=t.x,i=t.y;let o,s=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){const t=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>s&&(s=t,o=n.x<n.next.x?n:n.next,t===r))return o}n=n.next}while(n!==e);if(!o)return null;const a=o,u=o.x,l=o.y;let h,c=1/0;n=o;do{r>=n.x&&n.x>=u&&r!==n.x&&P(i<l?r:s,i,u,l,i<l?s:r,i,n.x,n.y)&&(h=Math.abs(i-n.y)/(r-n.x),M(n,t)&&(h<c||h===c&&(n.x>o.x||n.x===o.x&&m(o,n)))&&(o=n,c=h)),n=n.next}while(n!==a);return o}(t,e);if(!n)return e;const r=C(n,t);return p(r,r.next),p(n,n.next)}function m(t,e){return T(t.prev,t,e.prev)<0&&T(e.next,t,t.next)<0}function _(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function F(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function P(t,e,n,r,i,o,s,a){return(i-s)*(e-a)>=(t-s)*(o-a)&&(t-s)*(r-a)>=(n-s)*(e-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function I(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&B(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(M(t,e)&&M(e,t)&&function(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(T(t.prev,t,e.prev)||T(t,e.prev,e))||V(t,e)&&T(t.prev,t,t.next)>0&&T(e.prev,e,e.next)>0)}function T(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function V(t,e){return t.x===e.x&&t.y===e.y}function B(t,e,n,r){const i=S(T(t,e,n)),o=S(T(t,e,r)),s=S(T(n,r,t)),a=S(T(n,r,e));return i!==o&&s!==a||(!(0!==i||!E(t,n,e))||(!(0!==o||!E(t,r,e))||(!(0!==s||!E(n,t,r))||!(0!==a||!E(n,e,r)))))}function E(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function S(t){return t>0?1:t<0?-1:0}function M(t,e){return T(t.prev,t,t.next)<0?T(t,e,t.next)>=0&&T(t,t.prev,e)>=0:T(t,e,t.prev)<0||T(t,t.next,e)<0}function C(t,e){const n=new L(t.i,t.x,t.y),r=new L(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function A(t,e,n,r){const i=new L(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function k(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}var L=class{constructor(t,e,n){this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1,this.i=t,this.x=e,this.y=n}};function O(t,e,n){const r=function(t){const e={};for(const n of t)if(n.properties)for(const t in n.properties){const r=n.properties[t];e[t]=U(r,e[t])}return e}(t),i=Object.keys(r).filter(t=>r[t]!==Array);return function(t,e,n){const{pointPositionsCount:r,pointFeaturesCount:i,linePositionsCount:o,linePathsCount:s,lineFeaturesCount:a,polygonPositionsCount:u,polygonObjectsCount:l,polygonRingsCount:h,polygonFeaturesCount:c,propArrayTypes:f,coordLength:p}=e,{numericPropKeys:d=[],PositionDataType:g=Float32Array,triangulate:y=!0}=n,x=t[0]&&"id"in t[0],w=t.length>65535?Uint32Array:Uint16Array,v={type:"Point",positions:new g(r*p),globalFeatureIds:new w(r),featureIds:i>65535?new Uint32Array(r):new Uint16Array(r),numericProps:{},properties:[],fields:[]},b={type:"LineString",pathIndices:o>65535?new Uint32Array(s+1):new Uint16Array(s+1),positions:new g(o*p),globalFeatureIds:new w(o),featureIds:a>65535?new Uint32Array(o):new Uint16Array(o),numericProps:{},properties:[],fields:[]},m={type:"Polygon",polygonIndices:u>65535?new Uint32Array(l+1):new Uint16Array(l+1),primitivePolygonIndices:u>65535?new Uint32Array(h+1):new Uint16Array(h+1),positions:new g(u*p),globalFeatureIds:new w(u),featureIds:c>65535?new Uint32Array(u):new Uint16Array(u),numericProps:{},properties:[],fields:[]};y&&(m.triangles=[]);for(const t of[v,b,m])for(const e of d){const n=f[e];t.numericProps[e]=new n(t.positions.length/p)}b.pathIndices[s]=o,m.polygonIndices[l]=u,m.primitivePolygonIndices[h]=u;const _={pointPosition:0,pointFeature:0,linePosition:0,linePath:0,lineFeature:0,polygonPosition:0,polygonObject:0,polygonRing:0,polygonFeature:0,feature:0};for(const e of t){const t=e.geometry,n=e.properties||{};switch(t.type){case"Point":j(t,v,_,p,n),v.properties.push(D(n,d)),x&&v.fields.push({id:e.id}),_.pointFeature++;break;case"LineString":G(t,b,_,p,n),b.properties.push(D(n,d)),x&&b.fields.push({id:e.id}),_.lineFeature++;break;case"Polygon":N(t,m,_,p,n),m.properties.push(D(n,d)),x&&m.fields.push({id:e.id}),_.polygonFeature++;break;default:throw new Error("Invalid geometry type")}_.feature++}return function(t,e,n,r){const i={shape:"binary-feature-collection",points:{...t,positions:{value:t.positions,size:r},globalFeatureIds:{value:t.globalFeatureIds,size:1},featureIds:{value:t.featureIds,size:1},numericProps:z(t.numericProps,1)},lines:{...e,positions:{value:e.positions,size:r},pathIndices:{value:e.pathIndices,size:1},globalFeatureIds:{value:e.globalFeatureIds,size:1},featureIds:{value:e.featureIds,size:1},numericProps:z(e.numericProps,1)},polygons:{...n,positions:{value:n.positions,size:r},polygonIndices:{value:n.polygonIndices,size:1},primitivePolygonIndices:{value:n.primitivePolygonIndices,size:1},globalFeatureIds:{value:n.globalFeatureIds,size:1},featureIds:{value:n.featureIds,size:1},numericProps:z(n.numericProps,1)}};i.polygons&&n.triangles&&(i.polygons.triangles={value:new Uint32Array(n.triangles),size:1});return i}(v,b,m,p)}(t,{propArrayTypes:r,...e},{numericPropKeys:n&&n.numericPropKeys||i,PositionDataType:n?n.PositionDataType:Float32Array,triangulate:!n||n.triangulate})}function j(t,e,n,r,i){e.positions.set(t.data,n.pointPosition*r);const o=t.data.length/r;$(e,i,n.pointPosition,o),e.globalFeatureIds.fill(n.feature,n.pointPosition,n.pointPosition+o),e.featureIds.fill(n.pointFeature,n.pointPosition,n.pointPosition+o),n.pointPosition+=o}function G(t,e,n,r,i){e.positions.set(t.data,n.linePosition*r);const o=t.data.length/r;$(e,i,n.linePosition,o),e.globalFeatureIds.fill(n.feature,n.linePosition,n.linePosition+o),e.featureIds.fill(n.lineFeature,n.linePosition,n.linePosition+o);for(let i=0,o=t.indices.length;i<o;++i){const s=t.indices[i],a=i===o-1?t.data.length:t.indices[i+1];e.pathIndices[n.linePath++]=n.linePosition,n.linePosition+=(a-s)/r}}function N(t,e,n,r,i){e.positions.set(t.data,n.polygonPosition*r);const o=t.data.length/r;$(e,i,n.polygonPosition,o),e.globalFeatureIds.fill(n.feature,n.polygonPosition,n.polygonPosition+o),e.featureIds.fill(n.polygonFeature,n.polygonPosition,n.polygonPosition+o);for(let i=0,o=t.indices.length;i<o;++i){const o=n.polygonPosition;e.polygonIndices[n.polygonObject++]=o;const s=t.areas[i],a=t.indices[i],u=t.indices[i+1];for(let i=0,o=a.length;i<o;++i){const s=a[i],l=i===o-1?void 0===u?t.data.length:u[0]:a[i+1];e.primitivePolygonIndices[n.polygonRing++]=n.polygonPosition,n.polygonPosition+=(l-s)/r}R(e,s,a,{startPosition:o,endPosition:n.polygonPosition,coordLength:r})}}function R(t,e,n,{startPosition:r,endPosition:i,coordLength:o}){if(!t.triangles)return;const s=r*o,a=i*o,u=t.positions.subarray(s,a),l=n[0],h=c(u,n.slice(1).map(t=>(t-l)/o),o,e);for(let e=0,n=h.length;e<n;++e)t.triangles.push(r+h[e])}function z(t,e){const n={};for(const r in t)n[r]={value:t[r],size:e};return n}function $(t,e,n,r){for(const i in t.numericProps)if(i in e){const o=e[i];t.numericProps[i].fill(o,n,n+r)}}function D(t,e){const n={};for(const r in t)e.includes(r)||(n[r]=t[r]);return n}function U(t,e){return e!==Array&&Number.isFinite(t)?e===Float64Array||Math.fround(t)!==t?Float64Array:Float32Array:Array}var Z=globalThis,H=(globalThis.document,globalThis.process||{});globalThis.console,globalThis.navigator;function W(){return!("object"==typeof process&&"[object process]"===String(process)&&!process?.browser)||function(t){if("undefined"!=typeof window&&"renderer"===window.process?.type)return!0;if("undefined"!=typeof process&&Boolean(process.versions?.electron))return!0;const e="undefined"!=typeof navigator&&navigator.userAgent,n=t||e;return Boolean(n&&n.indexOf("Electron")>=0)}()}var Y="4.1.1";function K(t,e){if(!t)throw new Error(e||"Assertion failed")}function J(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return K(Number.isFinite(e)&&e>=0),e}var q=()=>{},Q=class{constructor({level:t=0}={}){this.userData={},this._onceCache=new Set,this._level=t}set level(t){this.setLevel(t)}get level(){return this.getLevel()}setLevel(t){return this._level=t,this}getLevel(){return this._level}warn(t,...e){return this._log("warn",0,t,e,{once:!0})}error(t,...e){return this._log("error",0,t,e)}log(t,e,...n){return this._log("log",t,e,n)}info(t,e,...n){return this._log("info",t,e,n)}once(t,e,...n){return this._log("once",t,e,n,{once:!0})}_log(t,e,n,r,i={}){const o=function(t){const{logLevel:e,message:n}=t;t.logLevel=J(e);const r=t.args?Array.from(t.args):[];for(;r.length&&r.shift()!==n;);switch(typeof e){case"string":case"function":void 0!==n&&r.unshift(n),t.message=e;break;case"object":Object.assign(t,e)}"function"==typeof t.message&&(t.message=t.message());const i=typeof t.message;return K("string"===i||"object"===i),Object.assign(t,{args:r},t.opts)}({logLevel:e,message:n,args:this._buildArgs(e,n,r),opts:i});return this._createLogFunction(t,o,i)}_buildArgs(t,e,n){return[t,e,...n]}_createLogFunction(t,e,n){if(!this._shouldLog(e.logLevel))return q;const r=this._getOnceTag(n.tag??e.tag??e.message);if((n.once||e.once)&&void 0!==r){if(this._onceCache.has(r))return q;this._onceCache.add(r)}return this._emit(t,e)}_shouldLog(t){return this.getLevel()>=J(t)}_getOnceTag(t){if(void 0!==t)try{return"string"==typeof t?t:String(t)}catch{return}}};var X,tt,et=class{constructor(t,e,n="sessionStorage"){this.storage=function(t){try{const e=window[t],n="__storage_test__";return e.setItem(n,n),e.removeItem(n),e}catch(t){return null}}(n),this.id=t,this.config=e,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){if(Object.assign(this.config,t),this.storage){const t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let t={};if(this.storage){const e=this.storage.getItem(this.id);t=e?JSON.parse(e):{}}return Object.assign(this.config,t),this}};(tt=X||(X={}))[tt.BLACK=30]="BLACK",tt[tt.RED=31]="RED",tt[tt.GREEN=32]="GREEN",tt[tt.YELLOW=33]="YELLOW",tt[tt.BLUE=34]="BLUE",tt[tt.MAGENTA=35]="MAGENTA",tt[tt.CYAN=36]="CYAN",tt[tt.WHITE=37]="WHITE",tt[tt.BRIGHT_BLACK=90]="BRIGHT_BLACK",tt[tt.BRIGHT_RED=91]="BRIGHT_RED",tt[tt.BRIGHT_GREEN=92]="BRIGHT_GREEN",tt[tt.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",tt[tt.BRIGHT_BLUE=94]="BRIGHT_BLUE",tt[tt.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",tt[tt.BRIGHT_CYAN=96]="BRIGHT_CYAN",tt[tt.BRIGHT_WHITE=97]="BRIGHT_WHITE";function nt(t){return"string"!=typeof t?t:(t=t.toUpperCase(),X[t]||X.WHITE)}function rt(){let t;if(W()&&Z.performance)t=Z?.performance?.now?.();else if("hrtime"in H){const e=H?.hrtime?.();t=1e3*e[0]+e[1]/1e6}else t=Date.now();return t}var it={debug:W()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},ot={enabled:!0,level:0},st=class extends Q{constructor({id:t}={id:""}){super({level:0}),this.VERSION=Y,this._startTs=rt(),this._deltaTs=rt(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=t,this.userData={},this._storage=new et(`__probe-${this.id}__`,{[this.id]:ot}),this.timeStamp(`${this.id} started`),function(t,e=["constructor"]){const n=Object.getPrototypeOf(t),r=Object.getOwnPropertyNames(n),i=t;for(const n of r){const r=i[n];"function"==typeof r&&(e.find(t=>n===t)||(i[n]=r.bind(t)))}}(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((rt()-this._startTs).toPrecision(10))}getDelta(){return Number((rt()-this._deltaTs).toPrecision(10))}set priority(t){this.level=t}get priority(){return this.level}getPriority(){return this.level}enable(t=!0){return this._updateConfiguration({enabled:t}),this}setLevel(t){return this._updateConfiguration({level:t}),this}get(t){return this._getConfiguration()[t]}set(t,e){this._updateConfiguration({[t]:e})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(t,e){if(!t)throw new Error(e||"Assertion failed")}warn(t,...e){return this._log("warn",0,t,e,{method:it.warn,once:!0})}error(t,...e){return this._log("error",0,t,e,{method:it.error})}deprecated(t,e){return this.warn(`\`${t}\` is deprecated and will be removed in a later version. Use \`${e}\` instead`)}removed(t,e){return this.error(`\`${t}\` has been removed. Use \`${e}\` instead`)}probe(t,e,...n){return this._log("log",t,e,n,{method:it.log,time:!0,once:!0})}log(t,e,...n){return this._log("log",t,e,n,{method:it.debug})}info(t,e,...n){return this._log("info",t,e,n,{method:console.info})}once(t,e,...n){return this._log("once",t,e,n,{method:it.debug||it.info,once:!0})}table(t,e,n){return e?this._log("table",t,e,n&&[n]||[],{method:console.table||q,tag:at(e)}):q}time(t,e){return this._log("time",t,e,[],{method:console.time?console.time:console.info})}timeEnd(t,e){return this._log("time",t,e,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(t,e){return this._log("time",t,e,[],{method:console.timeStamp||q})}group(t,e,n={collapsed:!1}){const r=(n.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",t,e,[],{method:r})}groupCollapsed(t,e,n={}){return this.group(t,e,Object.assign({},n,{collapsed:!0}))}groupEnd(t){return this._log("groupEnd",t,"",[],{method:console.groupEnd||q})}withGroup(t,e,n){this.group(t,e)();try{n()}finally{this.groupEnd(t)()}}trace(){console.trace&&console.trace()}_shouldLog(t){return this.isEnabled()&&super._shouldLog(t)}_emit(t,e){const n=e.method;K(n),e.total=this.getTotal(),e.delta=this.getDelta(),this._deltaTs=rt();const r=function(t,e,n){if("string"==typeof e){const r=n.time?function(t,e=8){const n=Math.max(e-t.length,0);return`${" ".repeat(n)}${t}`}(function(t){let e;return e=t<10?`${t.toFixed(2)}ms`:t<100?`${t.toFixed(1)}ms`:t<1e3?`${t.toFixed(0)}ms`:`${(t/1e3).toFixed(2)}s`,e}(n.total)):"";e=function(t,e,n){W||"string"!=typeof t||(e&&(t=`[${nt(e)}m${t}`),n&&(t=`[${nt(n)+10}m${t}`));return t}(e=n.time?`${t}: ${r} ${e}`:`${t}: ${e}`,n.color,n.background)}return e}(this.id,e.message,e);return n.bind(console,r,...e.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(ot),this._storage.config[this.id]}_updateConfiguration(t){const e=this._storage.config[this.id]||{...ot};this._storage.setConfiguration({[this.id]:{...e,...t}})}};function at(t){for(const e in t)for(const n in t[e])return n||"untitled";return"empty"}st.VERSION=Y,globalThis.probe={};new st({id:"@probe.gl/log"});var ut="4.5.4",lt=ut[0]>="0"&&ut[0]<="9"?`v${ut}`:"";var ht=function(){const t=new st({id:"loaders.gl"});return globalThis.loaders||={},globalThis.loaders.log=t,globalThis.loaders.version=lt,globalThis.probe||={},globalThis.probe.loaders=t,t}();function ct(t,e=!0,n){const r=n||new Set;if(t){if(ft(t))r.add(t);else if(ft(t.buffer))r.add(t.buffer);else if(ArrayBuffer.isView(t));else if(e&&"object"==typeof t)for(const n in t)ct(t[n],e,r)}else;return void 0===n?Array.from(r):[]}function ft(t){return!!t&&(t instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&t instanceof MessagePort||("undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas)))}async function pt(){return null}var dt=new Map,gt=class{static async inWorkerThread(){return"undefined"!=typeof self||Boolean(await pt())}static set onmessage(t){async function e(e){const n=await pt(),{type:r,payload:i}=n?e:e.data;t(r,i)}pt().then(t=>{t?(t.on("message",t=>{e(t)}),t.on("exit",()=>console.debug("Node worker closing"))):globalThis.onmessage=e})}static async addEventListener(t){let e=dt.get(t);e||(e=async e=>{if(!function(t){const{type:e,data:n}=t;return"message"===e&&n&&"string"==typeof n.source&&n.source.startsWith("loaders.gl")}(e))return;const n=await pt(),{type:r,payload:i}=n?e:e.data;t(r,i)});await pt()?console.error("not implemented"):globalThis.addEventListener("message",e)}static async removeEventListener(t){const e=dt.get(t);dt.delete(t);await pt()?console.error("not implemented"):globalThis.removeEventListener("message",e)}static async postMessage(t,e){const n={source:"loaders.gl",type:t,payload:e},r=ct(e),i=await pt();i?i.postMessage(n,r):globalThis.postMessage(n,r)}};var yt=0;function xt(t,e,n,r){return new Promise((e,r)=>{const i=yt++,o=(t,n)=>{if(n.id===i)switch(t){case"done":gt.removeEventListener(o),e(n.result);break;case"error":gt.removeEventListener(o),r(n.error)}};gt.addEventListener(o);const s={id:i,input:t,options:n};gt.postMessage("process",s)})}var wt,vt,bt,mt=(wt=u(),vt=1,bt=null!=wt?t(i(wt)):{},((t,i,s,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let u of r(i))o.call(t,u)||u===s||e(t,u,{get:()=>i[u],enumerable:!(a=n(i,u))||a.enumerable});return t})(!vt&&wt&&wt.__esModule?bt:e(bt,"default",{value:wt,enumerable:!0}),wt));function _t(t){let e=0;for(let n,r,i=0,o=t.length-1;i<t.length;o=i++)n=t[i],r=t[o],e+=(r[0]-n[0])*(n[1]+r[1]);return e}function Ft(t,e){if(Array.isArray(t[0])){for(const n of t)Ft(n,e);return}const n=t;n[0]/=e,n[1]/=e}function Pt(t,e){for(let n=0;n<t.length;++n)t[n]/=e}function It(t,e,n){if("number"!=typeof t[0][0]){for(const r of t)It(r,e,n);return}const r=n*Math.pow(2,e.z),i=n*e.x,o=n*e.y;for(let e=0;e<t.length;e++){const n=t[e];n[0]=360*(n[0]+i)/r-180;const s=180-360*(n[1]+o)/r;n[1]=360/Math.PI*Math.atan(Math.exp(s*Math.PI/180))-90}}var Tt,Vt=class{properties;extent;type;id;_pbf;_geometry;_keys;_values;_geometryInfo;constructor(t,e,n,r,i,o){this.properties={},this.extent=n,this.type=0,this.id=null,this._pbf=t,this._geometry=-1,this._keys=r,this._values=i,this._geometryInfo=o,t.readFields(Et,this,e)}toGeoJSONFeature(t,e){const n=this.loadGeometry();return Bt(this,n,"wgs84"===t?t=>It(t,e,this.extent):Ft)}toBinaryFeature(t,e){const n=this.loadFlatGeometry();return"wgs84"===t?this._toBinaryCoordinates(n,t=>function(t,e,n){const{x:r,y:i,z:o}=e,s=n*Math.pow(2,o),a=n*r,u=n*i;for(let e=0,n=t.length;e<n;e+=2){t[e]=360*(t[e]+a)/s-180;const n=180-360*(t[e+1]+u)/s;t[e+1]=360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90}}(t,e,this.extent)):this._toBinaryCoordinates(n,Pt)}bbox(){const t=this._pbf;t.pos=this._geometry;const e=t.readVarint()+t.pos;let n=1,r=0,i=0,o=0,s=1/0,a=-1/0,u=1/0,l=-1/0;for(;t.pos<e;){if(r<=0){const e=t.readVarint();n=7&e,r=e>>3}if(r--,1===n||2===n)i+=t.readSVarint(),o+=t.readSVarint(),i<s&&(s=i),i>a&&(a=i),o<u&&(u=o),o>l&&(l=o);else if(7!==n)throw new Error(`unknown command ${n}`)}return[s,u,a,l]}_toBinaryCoordinates(t,e){let n;e(t.data,this.extent);switch(this.type){case 1:this._geometryInfo.pointFeaturesCount++,this._geometryInfo.pointPositionsCount+=t.indices.length,n={type:"Point",...t};break;case 2:this._geometryInfo.lineFeaturesCount++,this._geometryInfo.linePathsCount+=t.indices.length,this._geometryInfo.linePositionsCount+=t.data.length/2,n={type:"LineString",...t};break;case 3:n=function(t){const e=t.indices.length,n="Polygon";if(e<=1)return{type:n,data:t.data,areas:[[h(t.data)]],indices:[t.indices]};const r=[],i=[];let o,s=[],a=[],u=0;for(let n,l,c=0;c<e;c++){l=t.indices[c]-u,n=t.indices[c+1]-u||t.data.length;const e=h(t.data.slice(l,n));if(0===e){const e=t.data.slice(0,l),r=t.data.slice(n);t.data=e.concat(r),u+=n-l;continue}void 0===o&&(o=e<0),o===e<0?(a.length&&(r.push(s),i.push(a)),a=[l],s=[e]):(s.push(e),a.push(l))}return s&&r.push(s),a.length&&i.push(a),{type:n,areas:r,indices:i,data:t.data}}(t),this._geometryInfo.polygonFeaturesCount++,this._geometryInfo.polygonObjectsCount+=n.indices.length;for(const t of n.indices)this._geometryInfo.polygonRingsCount+=t.length;this._geometryInfo.polygonPositionsCount+=n.data.length/2;break;default:throw new Error(`Invalid geometry type: ${this.type}`)}const r={type:"Feature",geometry:n,properties:this.properties};return null!==this.id&&(r.id=this.id),r}loadGeometry(){const t=this._pbf;t.pos=this._geometry;const e=t.readVarint()+t.pos;let n=1,r=0,i=0,o=0;const s=[];let a;for(;t.pos<e;){if(r<=0){const e=t.readVarint();n=7&e,r=e>>3}switch(r--,n){case 1:case 2:i+=t.readSVarint(),o+=t.readSVarint(),1===n&&(a&&s.push(a),a=[]),a&&a.push([i,o]);break;case 7:a&&a.push(a[0].slice());break;default:throw new Error(`unknown command ${n}`)}}return a&&s.push(a),s}loadFlatGeometry(){const t=this._pbf;t.pos=this._geometry;const e=t.readVarint()+t.pos;let n,r=1,i=0,o=0,s=0,a=0;const u=[],l=[];for(;t.pos<e;)if(i<=0&&(n=t.readVarint(),r=7&n,i=n>>3),i--,1===r||2===r)o+=t.readSVarint(),s+=t.readSVarint(),1===r&&u.push(a),l.push(o,s),a+=2;else{if(7!==r)throw new Error(`unknown command ${r}`);if(a>0){const t=u[u.length-1];l.push(l[t],l[t+1]),a+=2}}return{data:l,indices:u}}};function Bt(t,e,n){let r,i,o,s=Vt.types[t.type];switch(t.type){case 1:const s=[];for(r=0;r<e.length;r++)s[r]=e[r][0];o=s,n(o,t.extent);break;case 2:for(o=e,r=0;r<o.length;r++)n(o[r],t.extent);break;case 3:for(o=function(t){const e=t.length;if(e<=1)return[t];const n=[];let r,i;for(let o=0;o<e;o++){const e=_t(t[o]);0!==e&&(void 0===i&&(i=e<0),i===e<0?(r&&n.push(r),r=[t[o]]):r&&r.push(t[o]))}return r&&n.push(r),n}(e),r=0;r<o.length;r++)for(i=0;i<o[r].length;i++)n(o[r][i],t.extent);break;default:throw new Error("illegal vector tile type")}1===o.length?o=o[0]:s=`Multi${s}`;const a={type:"Feature",geometry:{type:s,coordinates:o},properties:t.properties};return null!==t.id&&(a.id=t.id),a}function Et(t,e,n){e&&n&&(1===t?e.id=n.readVarint():2===t?function(t,e){const n=t.readVarint()+t.pos;for(;t.pos<n;){const n=e._keys[t.readVarint()],r=e._values[t.readVarint()];e.properties[n]=r}}(n,e):3===t?e.type=n.readVarint():4===t&&(e._geometry=n.pos))}((t,n,r)=>{n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r})(Vt,"symbol"!=typeof(Tt="types")?Tt+"":Tt,["Unknown","Point","LineString","Polygon"]);var St=class{version;name;extent;length;_pbf;_keys;_values;_features;constructor(t,e){this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Mt,this,e),this.length=this._features.length}getGeoJSONFeature(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];const e=this._pbf.readVarint()+this._pbf.pos;return new Vt(this._pbf,e,this.extent,this._keys,this._values)}getBinaryFeature(t,e){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];const n=this._pbf.readVarint()+this._pbf.pos;return new Vt(this._pbf,n,this.extent,this._keys,this._values,e)}};function Mt(t,e,n){e&&n&&(15===t?e.version=n.readVarint():1===t?e.name=n.readString():5===t?e.extent=n.readVarint():2===t?e._features.push(n.pos):3===t?e._keys.push(n.readString()):4===t&&e._values.push(function(t){let e=null;const n=t.readVarint()+t.pos;for(;t.pos<n;){const n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(n)))}var Ct=class{layers;constructor(t,e){this.layers=t.readFields(At,{},e)}};function At(t,e,n){if(3===t&&n){const t=new St(n,n.readVarint()+n.pos);t.length&&e&&(e[t.name]=t)}}function kt(t,e){const n=function(t){if(!t?.mvt)throw new Error("mvt options required");if("wgs84"===t.mvt?.coordinates&&!t.mvt.tileIndex)throw new Error("MVT Loader: WGS84 coordinates need tileIndex property");t.gis&&ht.warn('MVTLoader: "options.gis" is deprecated, use "options.mvt.shape" instead')();return t.mvt}(e),r=e?.gis?.format||e?.mvt?.shape||e?.shape;switch(r){case"columnar-table":return{shape:"columnar-table",data:Lt(t,n)};case"geojson-table":return{shape:"geojson-table",type:"FeatureCollection",features:Ot(t,n)};case"geojson":return Ot(t,n);case"binary-geometry":case"binary":return Lt(t,n);default:throw new Error(r||"undefined shape")}}function Lt(t,e){const[n,r]=function(t,e){const n=[],r={coordLength:2,pointPositionsCount:0,pointFeaturesCount:0,linePositionsCount:0,linePathsCount:0,lineFeaturesCount:0,polygonPositionsCount:0,polygonObjectsCount:0,polygonRingsCount:0,polygonFeaturesCount:0};if(t.byteLength<=0)return[n,r];const i=new Ct(new mt.default(t)),o=e&&Array.isArray(e.layers)?e.layers:Object.keys(i.layers);return o.forEach(t=>{const o=i.layers[t];if(o)for(let i=0;i<o.length;i++){const s=Gt(o.getBinaryFeature(i,r),e,t);n.push(s)}}),[n,r]}(t,e),i=O(n,r);return i.byteLength=t.byteLength,i}function Ot(t,e){if(t.byteLength<=0)return[];const n=[],r=new Ct(new mt.default(t));return(Array.isArray(e.layers)?e.layers:Object.keys(r.layers)).forEach(t=>{const i=r.layers[t];if(i)for(let r=0;r<i.length;r++){const o=jt(i.getGeoJSONFeature(r),e,t);n.push(o)}}),n}function jt(t,e,n){const r=t.toGeoJSONFeature(e.coordinates||"local",e.tileIndex);return e.layerProperty&&(r.properties||={},r.properties[e.layerProperty]=n),r}function Gt(t,e,n){const r=t.toBinaryFeature(e.coordinates||"local",e.tileIndex);return e.layerProperty&&r.properties&&(r.properties[e.layerProperty]=n),r}!async function(t,e=()=>t){await gt.inWorkerThread()&&(gt.onmessage=async(t,n)=>{if("process"===t)try{const{input:t,options:r={},context:i={}}=n,o=e(r),s=await async function({loader:t,arrayBuffer:e,options:n,context:r}){let i,o;if(t.parseSync||t.parse)i=e,o=t.parseSync||t.parse;else{if(!t.parseTextSync)throw new Error(`Could not load data with ${t.name} loader`);i=(new TextDecoder).decode(e),o=t.parseTextSync}const s=Object.fromEntries(Object.entries(n.modules||{}).filter(([,t])=>"string"==typeof t));return n={...n,modules:{...t&&t.options&&t.options.modules||{},...s},core:{...n.core,worker:!1}},await o(i,{...n},r,t)}({loader:o,arrayBuffer:t,options:r,context:{...i,_parse:xt}});gt.postMessage("done",{result:s})}catch(t){const e=t instanceof Error?t.message:"";gt.postMessage("error",{error:e})}})}({...{name:"Mapbox Vector Tile",id:"mvt",module:"mvt",extensions:["mvt","pbf"],mimeTypes:["application/vnd.mapbox-vector-tile","application/x-protobuf"],category:"geometry",dataType:null,batchType:null,version:"4.5.4",worker:!0,options:{mvt:{shape:"geojson",coordinates:"local",layerProperty:"layerName",layers:void 0,tileIndex:void 0}}},parse:async(t,e)=>kt(t,e),parseSync:kt,binary:!0})})();
2
+ "use strict";(()=>{var t=Object.create,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(t,e)=>function(){return e||(0,t[r(t)[0]])((e={exports:{}}).exports,e),e.exports},a=s({"../../node_modules/ieee754/index.js"(t){t.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,h=-7,c=n?i-1:0,f=n?-1:1,p=t[e+c];for(c+=f,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+c],c+=f,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=r;h>0;s=256*s+t[e+c],c+=f,h-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=l}return(p?-1:1)*s*Math.pow(2,o-r)},t.write=function(t,e,n,r,i,o){var s,a,u,l=8*o-i-1,h=(1<<l)-1,c=h>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+c>=1?f/u:f*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=h?(a=0,s=h):s+c>=1?(a=(e*u-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[n+p]=255&s,p+=d,s/=256,l-=8);t[n+p-d]|=128*g}}}),u=s({"../../node_modules/pbf/index.js"(t,e){e.exports=r;var n=a();function r(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}r.Varint=0,r.Fixed64=1,r.Bytes=2,r.Fixed32=5;var i=4294967296,o=1/i,s="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");function u(t){return t.type===r.Bytes?t.readVarint()+t.pos:t.pos+1}function l(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function h(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function c(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function f(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function p(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function d(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function g(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function y(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function x(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function w(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function v(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function b(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function m(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function _(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}r.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,t(i,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=b(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=_(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=b(this.buf,this.pos)+b(this.buf,this.pos+4)*i;return this.pos+=8,t},readSFixed64:function(){var t=b(this.buf,this.pos)+_(this.buf,this.pos+4)*i;return this.pos+=8,t},readFloat:function(){var t=n.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=n.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,i,o=n.buf;if(i=o[n.pos++],r=(112&i)>>4,i<128)return l(t,r,e);if(i=o[n.pos++],r|=(127&i)<<3,i<128)return l(t,r,e);if(i=o[n.pos++],r|=(127&i)<<10,i<128)return l(t,r,e);if(i=o[n.pos++],r|=(127&i)<<17,i<128)return l(t,r,e);if(i=o[n.pos++],r|=(127&i)<<24,i<128)return l(t,r,e);if(i=o[n.pos++],r|=(1&i)<<31,i<128)return l(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&s?function(t,e,n){return s.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){var r="",i=e;for(;i<n;){var o,s,a,u=t[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h>n)break;1===h?u<128&&(l=u):2===h?128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)<=127&&(l=null):3===h?(o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&((l=(15&u)<<12|(63&o)<<6|63&s)<=2047||l>=55296&&l<=57343)&&(l=null)):4===h&&(o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&((l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,h=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=h}return r}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==r.Bytes)return t.push(this.readVarint(e));var n=u(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==r.Bytes)return t.push(this.readSVarint());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==r.Bytes)return t.push(this.readBoolean());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==r.Bytes)return t.push(this.readFloat());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==r.Bytes)return t.push(this.readDouble());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==r.Bytes)return t.push(this.readFixed32());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==r.Bytes)return t.push(this.readSFixed32());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==r.Bytes)return t.push(this.readFixed64());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==r.Bytes)return t.push(this.readSFixed64());var e=u(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===r.Varint)for(;this.buf[this.pos++]>127;);else if(e===r.Bytes)this.pos=this.readVarint()+this.pos;else if(e===r.Fixed32)this.pos+=4;else{if(e!==r.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),m(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),m(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),m(this.buf,-1&t,this.pos),m(this.buf,Math.floor(t*o),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),m(this.buf,-1&t,this.pos),m(this.buf,Math.floor(t*o),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var n,r;t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0));if(t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos]=127&t}(n,0,e),function(t,e){var n=(7&t)<<4;if(e.buf[e.pos++]|=n|((t>>>=3)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;e.buf[e.pos++]=127&t}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,i,o=0;o<e.length;o++){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):i=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(t[n++]=239,t[n++]=191,t[n++]=189,i=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&h(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),n.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),n.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var r=this.pos-n;r>=128&&h(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,r.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,c,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,f,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,g,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,p,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,d,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,x,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,w,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,v,e)},writeBytesField:function(t,e){this.writeTag(t,r.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,r.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,r.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,r.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}}}),l={x:0,y:1,z:2};function h(t,e={}){const{start:n=0,end:r=t.length,plane:i="xy"}=e,o=e.size||2;let s=0;const a=l[i[0]],u=l[i[1]];for(let e=n,i=r-o;e<r;e+=o)s+=(t[e+a]-t[i+a])*(t[e+u]+t[i+u]),i=e;return s/2}function c(t,e,n=2,r,i="xy"){const o=e&&e.length,s=o?e[0]*n:t.length;let a=f(t,0,s,n,!0,r&&r[0],i);const u=[];if(!a||a.next===a.prev)return u;let l,h,c,p,g,y,x;if(o&&(a=function(t,e,n,r,i,o){const s=[];let a,u,l,h,c;for(a=0,u=e.length;a<u;a++)l=e[a]*r,h=a<u-1?e[a+1]*r:t.length,c=f(t,l,h,r,!1,i&&i[a+1],o),c===c.next&&(c.steiner=!0),s.push(F(c));for(s.sort(v),a=0;a<s.length;a++)n=b(s[a],n);return n}(t,e,a,n,r,i)),t.length>80*n){p=h=t[0],g=c=t[1];for(let e=n;e<s;e+=n)y=t[e],x=t[e+1],y<p&&(p=y),x<g&&(g=x),y>h&&(h=y),x>c&&(c=x);l=Math.max(h-p,c-g),l=0!==l?32767/l:0}return d(a,u,n,p,g,l,0),u}function f(t,e,n,r,i,o,s){let a,u;void 0===o&&(o=h(t,{start:e,end:n,size:r,plane:s}));let c=l[s[0]],f=l[s[1]];if(i===o<0)for(a=e;a<n;a+=r)u=A(a,t[a+c],t[a+f],u);else for(a=n-r;a>=e;a-=r)u=A(a,t[a+c],t[a+f],u);return u&&V(u,u.next)&&(k(u),u=u.next),u}function p(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!V(r,r.next)&&0!==T(r.prev,r,r.next))r=r.next;else{if(k(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function d(t,e,n,r,i,o,s){if(!t)return;!s&&o&&function(t,e,n,r){let i=t;do{0===i.z&&(i.z=_(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){let e,n,r,i,o,s,a,u,l=1;do{for(i=t,t=null,u=null,r=0;i;){for(r++,s=i,o=0,n=0;n<l&&(o++,s=s.nextZ,s);n++);for(a=l;o>0||a>0&&s;)0!==o&&(0===a||!s||i.z<=s.z)?(e=i,i=i.nextZ,o--):(e=s,s=s.nextZ,a--),u?u.nextZ=e:t=e,e.prevZ=u,u=e;i=s}u.nextZ=null,l*=2}while(r>1)}(i)}(t,r,i,o);let a,u,l=t;for(;t.prev!==t.next;)if(a=t.prev,u=t.next,o?y(t,r,i,o):g(t))e.push(a.i/n|0),e.push(t.i/n|0),e.push(u.i/n|0),k(t),t=u.next,l=u.next;else if((t=u)===l){s?1===s?d(t=x(p(t),e,n),e,n,r,i,o,2):2===s&&w(t,e,n,r,i,o):d(p(t),e,n,r,i,o,1);break}}function g(t){const e=t.prev,n=t,r=t.next;if(T(e,n,r)>=0)return!1;const i=e.x,o=n.x,s=r.x,a=e.y,u=n.y,l=r.y,h=i<o?i<s?i:s:o<s?o:s,c=a<u?a<l?a:l:u<l?u:l,f=i>o?i>s?i:s:o>s?o:s,p=a>u?a>l?a:l:u>l?u:l;let d=r.next;for(;d!==e;){if(d.x>=h&&d.x<=f&&d.y>=c&&d.y<=p&&P(i,a,o,u,s,l,d.x,d.y)&&T(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function y(t,e,n,r){const i=t.prev,o=t,s=t.next;if(T(i,o,s)>=0)return!1;const a=i.x,u=o.x,l=s.x,h=i.y,c=o.y,f=s.y,p=a<u?a<l?a:l:u<l?u:l,d=h<c?h<f?h:f:c<f?c:f,g=a>u?a>l?a:l:u>l?u:l,y=h>c?h>f?h:f:c>f?c:f,x=_(p,d,e,n,r),w=_(g,y,e,n,r);let v=t.prevZ,b=t.nextZ;for(;v&&v.z>=x&&b&&b.z<=w;){if(v.x>=p&&v.x<=g&&v.y>=d&&v.y<=y&&v!==i&&v!==s&&P(a,h,u,c,l,f,v.x,v.y)&&T(v.prev,v,v.next)>=0)return!1;if(v=v.prevZ,b.x>=p&&b.x<=g&&b.y>=d&&b.y<=y&&b!==i&&b!==s&&P(a,h,u,c,l,f,b.x,b.y)&&T(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;v&&v.z>=x;){if(v.x>=p&&v.x<=g&&v.y>=d&&v.y<=y&&v!==i&&v!==s&&P(a,h,u,c,l,f,v.x,v.y)&&T(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;b&&b.z<=w;){if(b.x>=p&&b.x<=g&&b.y>=d&&b.y<=y&&b!==i&&b!==s&&P(a,h,u,c,l,f,b.x,b.y)&&T(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function x(t,e,n){let r=t;do{const i=r.prev,o=r.next.next;!V(i,o)&&B(i,r,r.next,o)&&M(i,o)&&M(o,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(o.i/n|0),k(r),k(r.next),r=t=o),r=r.next}while(r!==t);return p(r)}function w(t,e,n,r,i,o){let s=t;do{let t=s.next.next;for(;t!==s.prev;){if(s.i!==t.i&&I(s,t)){let a=C(s,t);return s=p(s,s.next),a=p(a,a.next),d(s,e,n,r,i,o,0),void d(a,e,n,r,i,o,0)}t=t.next}s=s.next}while(s!==t)}function v(t,e){return t.x-e.x}function b(t,e){const n=function(t,e){let n=e;const r=t.x,i=t.y;let o,s=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){const t=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>s&&(s=t,o=n.x<n.next.x?n:n.next,t===r))return o}n=n.next}while(n!==e);if(!o)return null;const a=o,u=o.x,l=o.y;let h,c=1/0;n=o;do{r>=n.x&&n.x>=u&&r!==n.x&&P(i<l?r:s,i,u,l,i<l?s:r,i,n.x,n.y)&&(h=Math.abs(i-n.y)/(r-n.x),M(n,t)&&(h<c||h===c&&(n.x>o.x||n.x===o.x&&m(o,n)))&&(o=n,c=h)),n=n.next}while(n!==a);return o}(t,e);if(!n)return e;const r=C(n,t);return p(r,r.next),p(n,n.next)}function m(t,e){return T(t.prev,t,e.prev)<0&&T(e.next,t,t.next)<0}function _(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function F(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function P(t,e,n,r,i,o,s,a){return(i-s)*(e-a)>=(t-s)*(o-a)&&(t-s)*(r-a)>=(n-s)*(e-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function I(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&B(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(M(t,e)&&M(e,t)&&function(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(T(t.prev,t,e.prev)||T(t,e.prev,e))||V(t,e)&&T(t.prev,t,t.next)>0&&T(e.prev,e,e.next)>0)}function T(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function V(t,e){return t.x===e.x&&t.y===e.y}function B(t,e,n,r){const i=S(T(t,e,n)),o=S(T(t,e,r)),s=S(T(n,r,t)),a=S(T(n,r,e));return i!==o&&s!==a||(!(0!==i||!E(t,n,e))||(!(0!==o||!E(t,r,e))||(!(0!==s||!E(n,t,r))||!(0!==a||!E(n,e,r)))))}function E(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function S(t){return t>0?1:t<0?-1:0}function M(t,e){return T(t.prev,t,t.next)<0?T(t,e,t.next)>=0&&T(t,t.prev,e)>=0:T(t,e,t.prev)<0||T(t,t.next,e)<0}function C(t,e){const n=new L(t.i,t.x,t.y),r=new L(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function A(t,e,n,r){const i=new L(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function k(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}var L=class{constructor(t,e,n){this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1,this.i=t,this.x=e,this.y=n}};function O(t,e,n){const r=function(t){const e={};for(const n of t)if(n.properties)for(const t in n.properties){const r=n.properties[t];e[t]=U(r,e[t])}return e}(t),i=Object.keys(r).filter(t=>r[t]!==Array);return function(t,e,n){const{pointPositionsCount:r,pointFeaturesCount:i,linePositionsCount:o,linePathsCount:s,lineFeaturesCount:a,polygonPositionsCount:u,polygonObjectsCount:l,polygonRingsCount:h,polygonFeaturesCount:c,propArrayTypes:f,coordLength:p}=e,{numericPropKeys:d=[],PositionDataType:g=Float32Array,triangulate:y=!0}=n,x=t[0]&&"id"in t[0],w=t.length>65535?Uint32Array:Uint16Array,v={type:"Point",positions:new g(r*p),globalFeatureIds:new w(r),featureIds:i>65535?new Uint32Array(r):new Uint16Array(r),numericProps:{},properties:[],fields:[]},b={type:"LineString",pathIndices:o>65535?new Uint32Array(s+1):new Uint16Array(s+1),positions:new g(o*p),globalFeatureIds:new w(o),featureIds:a>65535?new Uint32Array(o):new Uint16Array(o),numericProps:{},properties:[],fields:[]},m={type:"Polygon",polygonIndices:u>65535?new Uint32Array(l+1):new Uint16Array(l+1),primitivePolygonIndices:u>65535?new Uint32Array(h+1):new Uint16Array(h+1),positions:new g(u*p),globalFeatureIds:new w(u),featureIds:c>65535?new Uint32Array(u):new Uint16Array(u),numericProps:{},properties:[],fields:[]};y&&(m.triangles=[]);for(const t of[v,b,m])for(const e of d){const n=f[e];t.numericProps[e]=new n(t.positions.length/p)}b.pathIndices[s]=o,m.polygonIndices[l]=u,m.primitivePolygonIndices[h]=u;const _={pointPosition:0,pointFeature:0,linePosition:0,linePath:0,lineFeature:0,polygonPosition:0,polygonObject:0,polygonRing:0,polygonFeature:0,feature:0};for(const e of t){const t=e.geometry,n=e.properties||{};switch(t.type){case"Point":j(t,v,_,p,n),v.properties.push(D(n,d)),x&&v.fields.push({id:e.id}),_.pointFeature++;break;case"LineString":G(t,b,_,p,n),b.properties.push(D(n,d)),x&&b.fields.push({id:e.id}),_.lineFeature++;break;case"Polygon":N(t,m,_,p,n),m.properties.push(D(n,d)),x&&m.fields.push({id:e.id}),_.polygonFeature++;break;default:throw new Error("Invalid geometry type")}_.feature++}return function(t,e,n,r){const i={shape:"binary-feature-collection",points:{...t,positions:{value:t.positions,size:r},globalFeatureIds:{value:t.globalFeatureIds,size:1},featureIds:{value:t.featureIds,size:1},numericProps:z(t.numericProps,1)},lines:{...e,positions:{value:e.positions,size:r},pathIndices:{value:e.pathIndices,size:1},globalFeatureIds:{value:e.globalFeatureIds,size:1},featureIds:{value:e.featureIds,size:1},numericProps:z(e.numericProps,1)},polygons:{...n,positions:{value:n.positions,size:r},polygonIndices:{value:n.polygonIndices,size:1},primitivePolygonIndices:{value:n.primitivePolygonIndices,size:1},globalFeatureIds:{value:n.globalFeatureIds,size:1},featureIds:{value:n.featureIds,size:1},numericProps:z(n.numericProps,1)}};i.polygons&&n.triangles&&(i.polygons.triangles={value:new Uint32Array(n.triangles),size:1});return i}(v,b,m,p)}(t,{propArrayTypes:r,...e},{numericPropKeys:n&&n.numericPropKeys||i,PositionDataType:n?n.PositionDataType:Float32Array,triangulate:!n||n.triangulate})}function j(t,e,n,r,i){e.positions.set(t.data,n.pointPosition*r);const o=t.data.length/r;$(e,i,n.pointPosition,o),e.globalFeatureIds.fill(n.feature,n.pointPosition,n.pointPosition+o),e.featureIds.fill(n.pointFeature,n.pointPosition,n.pointPosition+o),n.pointPosition+=o}function G(t,e,n,r,i){e.positions.set(t.data,n.linePosition*r);const o=t.data.length/r;$(e,i,n.linePosition,o),e.globalFeatureIds.fill(n.feature,n.linePosition,n.linePosition+o),e.featureIds.fill(n.lineFeature,n.linePosition,n.linePosition+o);for(let i=0,o=t.indices.length;i<o;++i){const s=t.indices[i],a=i===o-1?t.data.length:t.indices[i+1];e.pathIndices[n.linePath++]=n.linePosition,n.linePosition+=(a-s)/r}}function N(t,e,n,r,i){e.positions.set(t.data,n.polygonPosition*r);const o=t.data.length/r;$(e,i,n.polygonPosition,o),e.globalFeatureIds.fill(n.feature,n.polygonPosition,n.polygonPosition+o),e.featureIds.fill(n.polygonFeature,n.polygonPosition,n.polygonPosition+o);for(let i=0,o=t.indices.length;i<o;++i){const o=n.polygonPosition;e.polygonIndices[n.polygonObject++]=o;const s=t.areas[i],a=t.indices[i],u=t.indices[i+1];for(let i=0,o=a.length;i<o;++i){const s=a[i],l=i===o-1?void 0===u?t.data.length:u[0]:a[i+1];e.primitivePolygonIndices[n.polygonRing++]=n.polygonPosition,n.polygonPosition+=(l-s)/r}R(e,s,a,{startPosition:o,endPosition:n.polygonPosition,coordLength:r})}}function R(t,e,n,{startPosition:r,endPosition:i,coordLength:o}){if(!t.triangles)return;const s=r*o,a=i*o,u=t.positions.subarray(s,a),l=n[0],h=c(u,n.slice(1).map(t=>(t-l)/o),o,e);for(let e=0,n=h.length;e<n;++e)t.triangles.push(r+h[e])}function z(t,e){const n={};for(const r in t)n[r]={value:t[r],size:e};return n}function $(t,e,n,r){for(const i in t.numericProps)if(i in e){const o=e[i];t.numericProps[i].fill(o,n,n+r)}}function D(t,e){const n={};for(const r in t)e.includes(r)||(n[r]=t[r]);return n}function U(t,e){return e!==Array&&Number.isFinite(t)?e===Float64Array||Math.fround(t)!==t?Float64Array:Float32Array:Array}var Z=globalThis,H=(globalThis.document,globalThis.process||{});globalThis.console,globalThis.navigator;function W(){return!("object"==typeof process&&"[object process]"===String(process)&&!process?.browser)||function(t){if("undefined"!=typeof window&&"renderer"===window.process?.type)return!0;if("undefined"!=typeof process&&Boolean(process.versions?.electron))return!0;const e="undefined"!=typeof navigator&&navigator.userAgent,n=t||e;return Boolean(n&&n.indexOf("Electron")>=0)}()}var Y="4.1.1";function K(t,e){if(!t)throw new Error(e||"Assertion failed")}function J(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return K(Number.isFinite(e)&&e>=0),e}var q=()=>{},Q=class{constructor({level:t=0}={}){this.userData={},this._onceCache=new Set,this._level=t}set level(t){this.setLevel(t)}get level(){return this.getLevel()}setLevel(t){return this._level=t,this}getLevel(){return this._level}warn(t,...e){return this._log("warn",0,t,e,{once:!0})}error(t,...e){return this._log("error",0,t,e)}log(t,e,...n){return this._log("log",t,e,n)}info(t,e,...n){return this._log("info",t,e,n)}once(t,e,...n){return this._log("once",t,e,n,{once:!0})}_log(t,e,n,r,i={}){const o=function(t){const{logLevel:e,message:n}=t;t.logLevel=J(e);const r=t.args?Array.from(t.args):[];for(;r.length&&r.shift()!==n;);switch(typeof e){case"string":case"function":void 0!==n&&r.unshift(n),t.message=e;break;case"object":Object.assign(t,e)}"function"==typeof t.message&&(t.message=t.message());const i=typeof t.message;return K("string"===i||"object"===i),Object.assign(t,{args:r},t.opts)}({logLevel:e,message:n,args:this._buildArgs(e,n,r),opts:i});return this._createLogFunction(t,o,i)}_buildArgs(t,e,n){return[t,e,...n]}_createLogFunction(t,e,n){if(!this._shouldLog(e.logLevel))return q;const r=this._getOnceTag(n.tag??e.tag??e.message);if((n.once||e.once)&&void 0!==r){if(this._onceCache.has(r))return q;this._onceCache.add(r)}return this._emit(t,e)}_shouldLog(t){return this.getLevel()>=J(t)}_getOnceTag(t){if(void 0!==t)try{return"string"==typeof t?t:String(t)}catch{return}}};var X,tt,et=class{constructor(t,e,n="sessionStorage"){this.storage=function(t){try{const e=window[t],n="__storage_test__";return e.setItem(n,n),e.removeItem(n),e}catch(t){return null}}(n),this.id=t,this.config=e,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){if(Object.assign(this.config,t),this.storage){const t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let t={};if(this.storage){const e=this.storage.getItem(this.id);t=e?JSON.parse(e):{}}return Object.assign(this.config,t),this}};(tt=X||(X={}))[tt.BLACK=30]="BLACK",tt[tt.RED=31]="RED",tt[tt.GREEN=32]="GREEN",tt[tt.YELLOW=33]="YELLOW",tt[tt.BLUE=34]="BLUE",tt[tt.MAGENTA=35]="MAGENTA",tt[tt.CYAN=36]="CYAN",tt[tt.WHITE=37]="WHITE",tt[tt.BRIGHT_BLACK=90]="BRIGHT_BLACK",tt[tt.BRIGHT_RED=91]="BRIGHT_RED",tt[tt.BRIGHT_GREEN=92]="BRIGHT_GREEN",tt[tt.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",tt[tt.BRIGHT_BLUE=94]="BRIGHT_BLUE",tt[tt.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",tt[tt.BRIGHT_CYAN=96]="BRIGHT_CYAN",tt[tt.BRIGHT_WHITE=97]="BRIGHT_WHITE";function nt(t){return"string"!=typeof t?t:(t=t.toUpperCase(),X[t]||X.WHITE)}function rt(){let t;if(W()&&Z.performance)t=Z?.performance?.now?.();else if("hrtime"in H){const e=H?.hrtime?.();t=1e3*e[0]+e[1]/1e6}else t=Date.now();return t}var it={debug:W()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},ot={enabled:!0,level:0},st=class extends Q{constructor({id:t}={id:""}){super({level:0}),this.VERSION=Y,this._startTs=rt(),this._deltaTs=rt(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=t,this.userData={},this._storage=new et(`__probe-${this.id}__`,{[this.id]:ot}),this.timeStamp(`${this.id} started`),function(t,e=["constructor"]){const n=Object.getPrototypeOf(t),r=Object.getOwnPropertyNames(n),i=t;for(const n of r){const r=i[n];"function"==typeof r&&(e.find(t=>n===t)||(i[n]=r.bind(t)))}}(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((rt()-this._startTs).toPrecision(10))}getDelta(){return Number((rt()-this._deltaTs).toPrecision(10))}set priority(t){this.level=t}get priority(){return this.level}getPriority(){return this.level}enable(t=!0){return this._updateConfiguration({enabled:t}),this}setLevel(t){return this._updateConfiguration({level:t}),this}get(t){return this._getConfiguration()[t]}set(t,e){this._updateConfiguration({[t]:e})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(t,e){if(!t)throw new Error(e||"Assertion failed")}warn(t,...e){return this._log("warn",0,t,e,{method:it.warn,once:!0})}error(t,...e){return this._log("error",0,t,e,{method:it.error})}deprecated(t,e){return this.warn(`\`${t}\` is deprecated and will be removed in a later version. Use \`${e}\` instead`)}removed(t,e){return this.error(`\`${t}\` has been removed. Use \`${e}\` instead`)}probe(t,e,...n){return this._log("log",t,e,n,{method:it.log,time:!0,once:!0})}log(t,e,...n){return this._log("log",t,e,n,{method:it.debug})}info(t,e,...n){return this._log("info",t,e,n,{method:console.info})}once(t,e,...n){return this._log("once",t,e,n,{method:it.debug||it.info,once:!0})}table(t,e,n){return e?this._log("table",t,e,n&&[n]||[],{method:console.table||q,tag:at(e)}):q}time(t,e){return this._log("time",t,e,[],{method:console.time?console.time:console.info})}timeEnd(t,e){return this._log("time",t,e,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(t,e){return this._log("time",t,e,[],{method:console.timeStamp||q})}group(t,e,n={collapsed:!1}){const r=(n.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",t,e,[],{method:r})}groupCollapsed(t,e,n={}){return this.group(t,e,Object.assign({},n,{collapsed:!0}))}groupEnd(t){return this._log("groupEnd",t,"",[],{method:console.groupEnd||q})}withGroup(t,e,n){this.group(t,e)();try{n()}finally{this.groupEnd(t)()}}trace(){console.trace&&console.trace()}_shouldLog(t){return this.isEnabled()&&super._shouldLog(t)}_emit(t,e){const n=e.method;K(n),e.total=this.getTotal(),e.delta=this.getDelta(),this._deltaTs=rt();const r=function(t,e,n){if("string"==typeof e){const r=n.time?function(t,e=8){const n=Math.max(e-t.length,0);return`${" ".repeat(n)}${t}`}(function(t){let e;return e=t<10?`${t.toFixed(2)}ms`:t<100?`${t.toFixed(1)}ms`:t<1e3?`${t.toFixed(0)}ms`:`${(t/1e3).toFixed(2)}s`,e}(n.total)):"";e=function(t,e,n){W||"string"!=typeof t||(e&&(t=`[${nt(e)}m${t}`),n&&(t=`[${nt(n)+10}m${t}`));return t}(e=n.time?`${t}: ${r} ${e}`:`${t}: ${e}`,n.color,n.background)}return e}(this.id,e.message,e);return n.bind(console,r,...e.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(ot),this._storage.config[this.id]}_updateConfiguration(t){const e=this._storage.config[this.id]||{...ot};this._storage.setConfiguration({[this.id]:{...e,...t}})}};function at(t){for(const e in t)for(const n in t[e])return n||"untitled";return"empty"}st.VERSION=Y,globalThis.probe={};new st({id:"@probe.gl/log"});var ut="4.5.5",lt=ut[0]>="0"&&ut[0]<="9"?`v${ut}`:"";var ht=function(){const t=new st({id:"loaders.gl"});return globalThis.loaders||={},globalThis.loaders.log=t,globalThis.loaders.version=lt,globalThis.probe||={},globalThis.probe.loaders=t,t}();function ct(t,e=!0,n){const r=n||new Set;if(t){if(ft(t))r.add(t);else if(ft(t.buffer))r.add(t.buffer);else if(ArrayBuffer.isView(t));else if(e&&"object"==typeof t)for(const n in t)ct(t[n],e,r)}else;return void 0===n?Array.from(r):[]}function ft(t){return!!t&&(t instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&t instanceof MessagePort||("undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas)))}async function pt(){return null}var dt=new Map,gt=class{static async inWorkerThread(){return"undefined"!=typeof self||Boolean(await pt())}static set onmessage(t){async function e(e){const n=await pt(),{type:r,payload:i}=n?e:e.data;t(r,i)}pt().then(t=>{t?(t.on("message",t=>{e(t)}),t.on("exit",()=>console.debug("Node worker closing"))):globalThis.onmessage=e})}static async addEventListener(t){let e=dt.get(t);e||(e=async e=>{if(!function(t){const{type:e,data:n}=t;return"message"===e&&n&&"string"==typeof n.source&&n.source.startsWith("loaders.gl")}(e))return;const n=await pt(),{type:r,payload:i}=n?e:e.data;t(r,i)});await pt()?console.error("not implemented"):globalThis.addEventListener("message",e)}static async removeEventListener(t){const e=dt.get(t);dt.delete(t);await pt()?console.error("not implemented"):globalThis.removeEventListener("message",e)}static async postMessage(t,e){const n={source:"loaders.gl",type:t,payload:e},r=ct(e),i=await pt();i?i.postMessage(n,r):globalThis.postMessage(n,r)}};var yt=0;function xt(t,e,n,r){return new Promise((e,r)=>{const i=yt++,o=(t,n)=>{if(n.id===i)switch(t){case"done":gt.removeEventListener(o),e(n.result);break;case"error":gt.removeEventListener(o),r(n.error)}};gt.addEventListener(o);const s={id:i,input:t,options:n};gt.postMessage("process",s)})}var wt,vt,bt,mt=(wt=u(),vt=1,bt=null!=wt?t(i(wt)):{},((t,i,s,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let u of r(i))o.call(t,u)||u===s||e(t,u,{get:()=>i[u],enumerable:!(a=n(i,u))||a.enumerable});return t})(!vt&&wt&&wt.__esModule?bt:e(bt,"default",{value:wt,enumerable:!0}),wt));function _t(t){let e=0;for(let n,r,i=0,o=t.length-1;i<t.length;o=i++)n=t[i],r=t[o],e+=(r[0]-n[0])*(n[1]+r[1]);return e}function Ft(t,e){if(Array.isArray(t[0])){for(const n of t)Ft(n,e);return}const n=t;n[0]/=e,n[1]/=e}function Pt(t,e){for(let n=0;n<t.length;++n)t[n]/=e}function It(t,e,n){if("number"!=typeof t[0][0]){for(const r of t)It(r,e,n);return}const r=n*Math.pow(2,e.z),i=n*e.x,o=n*e.y;for(let e=0;e<t.length;e++){const n=t[e];n[0]=360*(n[0]+i)/r-180;const s=180-360*(n[1]+o)/r;n[1]=360/Math.PI*Math.atan(Math.exp(s*Math.PI/180))-90}}var Tt,Vt=class{properties;extent;type;id;_pbf;_geometry;_keys;_values;_geometryInfo;constructor(t,e,n,r,i,o){this.properties={},this.extent=n,this.type=0,this.id=null,this._pbf=t,this._geometry=-1,this._keys=r,this._values=i,this._geometryInfo=o,t.readFields(Et,this,e)}toGeoJSONFeature(t,e){const n=this.loadGeometry();return Bt(this,n,"wgs84"===t?t=>It(t,e,this.extent):Ft)}toBinaryFeature(t,e){const n=this.loadFlatGeometry();return"wgs84"===t?this._toBinaryCoordinates(n,t=>function(t,e,n){const{x:r,y:i,z:o}=e,s=n*Math.pow(2,o),a=n*r,u=n*i;for(let e=0,n=t.length;e<n;e+=2){t[e]=360*(t[e]+a)/s-180;const n=180-360*(t[e+1]+u)/s;t[e+1]=360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90}}(t,e,this.extent)):this._toBinaryCoordinates(n,Pt)}bbox(){const t=this._pbf;t.pos=this._geometry;const e=t.readVarint()+t.pos;let n=1,r=0,i=0,o=0,s=1/0,a=-1/0,u=1/0,l=-1/0;for(;t.pos<e;){if(r<=0){const e=t.readVarint();n=7&e,r=e>>3}if(r--,1===n||2===n)i+=t.readSVarint(),o+=t.readSVarint(),i<s&&(s=i),i>a&&(a=i),o<u&&(u=o),o>l&&(l=o);else if(7!==n)throw new Error(`unknown command ${n}`)}return[s,u,a,l]}_toBinaryCoordinates(t,e){let n;e(t.data,this.extent);switch(this.type){case 1:this._geometryInfo.pointFeaturesCount++,this._geometryInfo.pointPositionsCount+=t.indices.length,n={type:"Point",...t};break;case 2:this._geometryInfo.lineFeaturesCount++,this._geometryInfo.linePathsCount+=t.indices.length,this._geometryInfo.linePositionsCount+=t.data.length/2,n={type:"LineString",...t};break;case 3:n=function(t){const e=t.indices.length,n="Polygon";if(e<=1)return{type:n,data:t.data,areas:[[h(t.data)]],indices:[t.indices]};const r=[],i=[];let o,s=[],a=[],u=0;for(let n,l,c=0;c<e;c++){l=t.indices[c]-u,n=t.indices[c+1]-u||t.data.length;const e=h(t.data.slice(l,n));if(0===e){const e=t.data.slice(0,l),r=t.data.slice(n);t.data=e.concat(r),u+=n-l;continue}void 0===o&&(o=e<0),o===e<0?(a.length&&(r.push(s),i.push(a)),a=[l],s=[e]):(s.push(e),a.push(l))}return s&&r.push(s),a.length&&i.push(a),{type:n,areas:r,indices:i,data:t.data}}(t),this._geometryInfo.polygonFeaturesCount++,this._geometryInfo.polygonObjectsCount+=n.indices.length;for(const t of n.indices)this._geometryInfo.polygonRingsCount+=t.length;this._geometryInfo.polygonPositionsCount+=n.data.length/2;break;default:throw new Error(`Invalid geometry type: ${this.type}`)}const r={type:"Feature",geometry:n,properties:this.properties};return null!==this.id&&(r.id=this.id),r}loadGeometry(){const t=this._pbf;t.pos=this._geometry;const e=t.readVarint()+t.pos;let n=1,r=0,i=0,o=0;const s=[];let a;for(;t.pos<e;){if(r<=0){const e=t.readVarint();n=7&e,r=e>>3}switch(r--,n){case 1:case 2:i+=t.readSVarint(),o+=t.readSVarint(),1===n&&(a&&s.push(a),a=[]),a&&a.push([i,o]);break;case 7:a&&a.push(a[0].slice());break;default:throw new Error(`unknown command ${n}`)}}return a&&s.push(a),s}loadFlatGeometry(){const t=this._pbf;t.pos=this._geometry;const e=t.readVarint()+t.pos;let n,r=1,i=0,o=0,s=0,a=0;const u=[],l=[];for(;t.pos<e;)if(i<=0&&(n=t.readVarint(),r=7&n,i=n>>3),i--,1===r||2===r)o+=t.readSVarint(),s+=t.readSVarint(),1===r&&u.push(a),l.push(o,s),a+=2;else{if(7!==r)throw new Error(`unknown command ${r}`);if(a>0){const t=u[u.length-1];l.push(l[t],l[t+1]),a+=2}}return{data:l,indices:u}}};function Bt(t,e,n){let r,i,o,s=Vt.types[t.type];switch(t.type){case 1:const s=[];for(r=0;r<e.length;r++)s[r]=e[r][0];o=s,n(o,t.extent);break;case 2:for(o=e,r=0;r<o.length;r++)n(o[r],t.extent);break;case 3:for(o=function(t){const e=t.length;if(e<=1)return[t];const n=[];let r,i;for(let o=0;o<e;o++){const e=_t(t[o]);0!==e&&(void 0===i&&(i=e<0),i===e<0?(r&&n.push(r),r=[t[o]]):r&&r.push(t[o]))}return r&&n.push(r),n}(e),r=0;r<o.length;r++)for(i=0;i<o[r].length;i++)n(o[r][i],t.extent);break;default:throw new Error("illegal vector tile type")}1===o.length?o=o[0]:s=`Multi${s}`;const a={type:"Feature",geometry:{type:s,coordinates:o},properties:t.properties};return null!==t.id&&(a.id=t.id),a}function Et(t,e,n){e&&n&&(1===t?e.id=n.readVarint():2===t?function(t,e){const n=t.readVarint()+t.pos;for(;t.pos<n;){const n=e._keys[t.readVarint()],r=e._values[t.readVarint()];e.properties[n]=r}}(n,e):3===t?e.type=n.readVarint():4===t&&(e._geometry=n.pos))}((t,n,r)=>{n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r})(Vt,"symbol"!=typeof(Tt="types")?Tt+"":Tt,["Unknown","Point","LineString","Polygon"]);var St=class{version;name;extent;length;_pbf;_keys;_values;_features;constructor(t,e){this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Mt,this,e),this.length=this._features.length}getGeoJSONFeature(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];const e=this._pbf.readVarint()+this._pbf.pos;return new Vt(this._pbf,e,this.extent,this._keys,this._values)}getBinaryFeature(t,e){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];const n=this._pbf.readVarint()+this._pbf.pos;return new Vt(this._pbf,n,this.extent,this._keys,this._values,e)}};function Mt(t,e,n){e&&n&&(15===t?e.version=n.readVarint():1===t?e.name=n.readString():5===t?e.extent=n.readVarint():2===t?e._features.push(n.pos):3===t?e._keys.push(n.readString()):4===t&&e._values.push(function(t){let e=null;const n=t.readVarint()+t.pos;for(;t.pos<n;){const n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(n)))}var Ct=class{layers;constructor(t,e){this.layers=t.readFields(At,{},e)}};function At(t,e,n){if(3===t&&n){const t=new St(n,n.readVarint()+n.pos);t.length&&e&&(e[t.name]=t)}}function kt(t,e){const n=function(t){if(!t?.mvt)throw new Error("mvt options required");if("wgs84"===t.mvt?.coordinates&&!t.mvt.tileIndex)throw new Error("MVT Loader: WGS84 coordinates need tileIndex property");t.gis&&ht.warn('MVTLoader: "options.gis" is deprecated, use "options.mvt.shape" instead')();return t.mvt}(e),r=e?.gis?.format||e?.mvt?.shape||e?.shape;switch(r){case"columnar-table":return{shape:"columnar-table",data:Lt(t,n)};case"geojson-table":return{shape:"geojson-table",type:"FeatureCollection",features:Ot(t,n)};case"geojson":return Ot(t,n);case"binary-geometry":case"binary":return Lt(t,n);default:throw new Error(r||"undefined shape")}}function Lt(t,e){const[n,r]=function(t,e){const n=[],r={coordLength:2,pointPositionsCount:0,pointFeaturesCount:0,linePositionsCount:0,linePathsCount:0,lineFeaturesCount:0,polygonPositionsCount:0,polygonObjectsCount:0,polygonRingsCount:0,polygonFeaturesCount:0};if(t.byteLength<=0)return[n,r];const i=new Ct(new mt.default(t)),o=e&&Array.isArray(e.layers)?e.layers:Object.keys(i.layers);return o.forEach(t=>{const o=i.layers[t];if(o)for(let i=0;i<o.length;i++){const s=Gt(o.getBinaryFeature(i,r),e,t);n.push(s)}}),[n,r]}(t,e),i=O(n,r);return i.byteLength=t.byteLength,i}function Ot(t,e){if(t.byteLength<=0)return[];const n=[],r=new Ct(new mt.default(t));return(Array.isArray(e.layers)?e.layers:Object.keys(r.layers)).forEach(t=>{const i=r.layers[t];if(i)for(let r=0;r<i.length;r++){const o=jt(i.getGeoJSONFeature(r),e,t);n.push(o)}}),n}function jt(t,e,n){const r=t.toGeoJSONFeature(e.coordinates||"local",e.tileIndex);return e.layerProperty&&(r.properties||={},r.properties[e.layerProperty]=n),r}function Gt(t,e,n){const r=t.toBinaryFeature(e.coordinates||"local",e.tileIndex);return e.layerProperty&&r.properties&&(r.properties[e.layerProperty]=n),r}!async function(t,e=()=>t){await gt.inWorkerThread()&&(gt.onmessage=async(t,n)=>{if("process"===t)try{const{input:t,options:r={},context:i={}}=n,o=e(r),s=await async function({loader:t,arrayBuffer:e,options:n,context:r}){let i,o;if(t.parseSync||t.parse)i=e,o=t.parseSync||t.parse;else{if(!t.parseTextSync)throw new Error(`Could not load data with ${t.name} loader`);i=(new TextDecoder).decode(e),o=t.parseTextSync}const s=Object.fromEntries(Object.entries(n.modules||{}).filter(([,t])=>"string"==typeof t));return n={...n,modules:{...t&&t.options&&t.options.modules||{},...s},core:{...n.core,worker:!1}},await o(i,{...n},r,t)}({loader:o,arrayBuffer:t,options:r,context:{...i,_parse:xt}});gt.postMessage("done",{result:s})}catch(t){const e=t instanceof Error?t.message:"";gt.postMessage("error",{error:e})}})}({...{name:"Mapbox Vector Tile",id:"mvt",module:"mvt",extensions:["mvt","pbf"],mimeTypes:["application/vnd.mapbox-vector-tile","application/x-protobuf"],category:"geometry",dataType:null,batchType:null,version:"4.5.5",worker:!0,options:{mvt:{shape:"geojson",coordinates:"local",layerProperty:"layerName",layers:void 0,tileIndex:void 0}}},parse:async(t,e)=>kt(t,e),parseSync:kt,binary:!0})})();
@@ -1526,6 +1526,22 @@ input.pdf-viewer-search__input {
1526
1526
  row-gap: 0.375em;
1527
1527
  }
1528
1528
 
1529
+ .CellBarchartTrack {
1530
+ height: 8px;
1531
+ flex: none;
1532
+ border-radius: 4px;
1533
+ background: color-mix(in srgb, currentColor 16%, transparent);
1534
+ /* Give bars inside shrink-to-fit linked values room even for a single digit. */
1535
+ contain: inline-size;
1536
+ contain-intrinsic-inline-size: 8rem;
1537
+ }
1538
+
1539
+ .CellBarchartFill {
1540
+ height: 100%;
1541
+ border-radius: inherit;
1542
+ background: currentColor;
1543
+ }
1544
+
1529
1545
  /* @keyframes indeterminateTranslateX {
1530
1546
  0% {
1531
1547
  background-position-x: 0px;
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72">
2
+ <rect width="72" height="72" rx="14" fill="#ffce3f"/>
3
+ <g transform="translate(9 17) scale(.75)" fill="#0a0f12">
4
+ <path d="M2.045 41.11h8.176a10.28 10.28 0 0 0 8.003-3.829 23.2 23.2 0 0 1 6.391-5.412 23.7 23.7 0 0 1 11.342-3.023h.087a23.7 23.7 0 0 1 11.342 3.023 23.2 23.2 0 0 1 6.392 5.412 10.28 10.28 0 0 0 8.003 3.829h8.176a2.07 2.07 0 0 0 2.072-2.073v-6.074a2.07 2.07 0 0 0-2.072-2.073H50.438a.86.86 0 0 1-.604-1.497l13.818-13.818a2.04 2.04 0 0 0 0-2.908l-4.376-4.261a2.04 2.04 0 0 0-2.908 0L42.55 22.225a.86.86 0 0 1-1.497-.605V2.073A2.07 2.07 0 0 0 38.98 0h-6.045a2.07 2.07 0 0 0-2.073 2.073v19.518a.86.86 0 0 1-1.497.605L15.546 8.377a2.04 2.04 0 0 0-2.907 0l-4.261 4.319a2.04 2.04 0 0 0 0 2.907l13.819 13.819a.86.86 0 0 1-.605 1.497H2.073A2.07 2.07 0 0 0 .001 32.992v6.045a2.05 2.05 0 0 0 2.044 2.073Z"/>
5
+ <circle cx="36.014" cy="42.3" r="7.2"/>
6
+ </g>
7
+ </svg>