@mindexec/cli 0.2.384 → 0.2.385

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 (267) hide show
  1. package/codex-runtime.js +31 -255
  2. package/package.json +1 -1
  3. package/remote-hub.js +2 -80
  4. package/scripts/remote-fast-live-rate-smoke.mjs +3 -19
  5. package/scripts/remote-fast-mdm-browser-smoke.mjs +2 -28
  6. package/scripts/remote-hub-smoke.mjs +2 -32
  7. package/scripts/setup-tree-sitter-grammars.mjs +5 -26
  8. package/server.js +33 -1811
  9. package/wwwroot/MindExecution.Web.styles.css +3 -0
  10. package/wwwroot/_content/MindExecution.Plugins.Admin/css/admin-dashboard.css +546 -0
  11. package/wwwroot/_content/MindExecution.Plugins.Directory/MindExecution.Plugins.Directory.u7utcng611.bundle.scp.css +7 -0
  12. package/wwwroot/_content/MindExecution.Plugins.Directory/background.png +0 -0
  13. package/wwwroot/_content/MindExecution.Plugins.Directory/directory-manager.js +202 -0
  14. package/wwwroot/_content/MindExecution.Plugins.Directory/exampleJsInterop.js +6 -0
  15. package/wwwroot/_content/MindExecution.Plugins.YouTube/css/youtube-search.css +251 -0
  16. package/wwwroot/_content/MindExecution.Shared/MindExecution.Shared.wsano1j4wp.bundle.scp.css +4 -0
  17. package/wwwroot/_content/MindExecution.Shared/css/admin-dashboard.css +559 -0
  18. package/wwwroot/_content/MindExecution.Shared/css/app.css +1 -0
  19. package/wwwroot/_content/MindExecution.Shared/css/mind-map-overrides.css +3705 -0
  20. package/wwwroot/_content/MindExecution.Shared/fonts/NotoSansKR-Bold.ttf +0 -0
  21. package/wwwroot/_content/MindExecution.Shared/fonts/NotoSansKR-Regular.ttf +0 -0
  22. package/wwwroot/_content/MindExecution.Shared/js/agent-visualization.js +359 -0
  23. package/wwwroot/_content/MindExecution.Shared/js/background-themes.js +1631 -0
  24. package/wwwroot/_content/MindExecution.Shared/js/code-master.js +8316 -0
  25. package/wwwroot/_content/MindExecution.Shared/js/file-system-helper.js +639 -0
  26. package/wwwroot/_content/MindExecution.Shared/js/helpers/InfiniteGridHelper.js +109 -0
  27. package/wwwroot/_content/MindExecution.Shared/js/marked.min.js +69 -0
  28. package/wwwroot/_content/MindExecution.Shared/js/mind-map-core.js +9987 -0
  29. package/wwwroot/_content/MindExecution.Shared/js/mind-map-core.js.backup +1059 -0
  30. package/wwwroot/_content/MindExecution.Shared/js/mind-map-css3d-manager.js +24635 -0
  31. package/wwwroot/_content/MindExecution.Shared/js/mind-map-dev-guards.js +325 -0
  32. package/wwwroot/_content/MindExecution.Shared/js/mind-map-dnd.js +1491 -0
  33. package/wwwroot/_content/MindExecution.Shared/js/mind-map-dnd.js.bak +434 -0
  34. package/wwwroot/_content/MindExecution.Shared/js/mind-map-glow-shader.js +260 -0
  35. package/wwwroot/_content/MindExecution.Shared/js/mind-map-interactions.js +7821 -0
  36. package/wwwroot/_content/MindExecution.Shared/js/mind-map-lod-plan-worker.js +160 -0
  37. package/wwwroot/_content/MindExecution.Shared/js/mind-map-lod-renderer.js +10441 -0
  38. package/wwwroot/_content/MindExecution.Shared/js/mind-map-logic-workers.js +977 -0
  39. package/wwwroot/_content/MindExecution.Shared/js/mind-map-menu-manager.js +1531 -0
  40. package/wwwroot/_content/MindExecution.Shared/js/mind-map-multi-select.js +1716 -0
  41. package/wwwroot/_content/MindExecution.Shared/js/mind-map-node-search-worker.js +554 -0
  42. package/wwwroot/_content/MindExecution.Shared/js/mind-map-nodes.js +4578 -0
  43. package/wwwroot/_content/MindExecution.Shared/js/mind-map-object-manager.js +489 -0
  44. package/wwwroot/_content/MindExecution.Shared/js/mind-map-object-manager.js.backup +372 -0
  45. package/wwwroot/_content/MindExecution.Shared/js/mind-map-pipeline.js +2203 -0
  46. package/wwwroot/_content/MindExecution.Shared/js/mind-map-text-lod-system.js +646 -0
  47. package/wwwroot/_content/MindExecution.Shared/js/mind-map-text-overlay-v2.js +4735 -0
  48. package/wwwroot/_content/MindExecution.Shared/js/mind-map-texture-factory.js +2383 -0
  49. package/wwwroot/_content/MindExecution.Shared/js/mind-map-texture-factory.js.backup +1258 -0
  50. package/wwwroot/_content/MindExecution.Shared/js/mind-map-visibility-worker.js +890 -0
  51. package/wwwroot/_content/MindExecution.Shared/js/mindmap-toolbar.js +639 -0
  52. package/wwwroot/_content/MindExecution.Shared/js/native-drop-handler.js +170 -0
  53. package/wwwroot/_content/MindExecution.Shared/js/plan-master.js +788 -0
  54. package/wwwroot/_content/MindExecution.Shared/js/renderers/CSS3DRenderer.js +50 -0
  55. package/wwwroot/_content/MindExecution.Shared/js/texture-worker-manager.js +188 -0
  56. package/wwwroot/_content/MindExecution.Shared/js/texture-worker.js +208 -0
  57. package/wwwroot/_content/MindExecution.Shared/js/three.min.js +6 -0
  58. package/wwwroot/_content/MindExecution.Shared/js/titlebar-handler.js +191 -0
  59. package/wwwroot/_content/MindExecution.Shared/js/token-manager.js +37 -0
  60. package/wwwroot/_content/MindExecution.Shared/js/token-worker.js +28 -0
  61. package/wwwroot/_content/MindExecution.Shared/js/troika-bundle.js +5626 -0
  62. package/wwwroot/_content/MindExecution.Shared/js/troika-bundle.js.map +7 -0
  63. package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/css/all.min.css +9 -0
  64. package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-brands-400.ttf +0 -0
  65. package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-brands-400.woff2 +0 -0
  66. package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-regular-400.ttf +0 -0
  67. package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-regular-400.woff2 +0 -0
  68. package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-solid-900.ttf +0 -0
  69. package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-solid-900.woff2 +0 -0
  70. package/wwwroot/_content/MindExecution.Shared/models/all-MiniLM-L6-v2-quantized.onnx +0 -0
  71. package/wwwroot/_content/MindExecution.Shared/models/vocab.txt +30522 -0
  72. package/wwwroot/_framework/Google.Protobuf.9h59ukbel7.dll +0 -0
  73. package/wwwroot/_framework/Markdig.d1j7v41cl1.dll +0 -0
  74. package/wwwroot/_framework/MessagePack.Annotations.l6qv48kgpt.dll +0 -0
  75. package/wwwroot/_framework/MessagePack.eqoptzx9d5.dll +0 -0
  76. package/wwwroot/_framework/Microsoft.AspNetCore.Authorization.k7dsih5y5g.dll +0 -0
  77. package/wwwroot/_framework/Microsoft.AspNetCore.Components.6nyje9sa0g.dll +0 -0
  78. package/wwwroot/_framework/Microsoft.AspNetCore.Components.Authorization.iycd6unprw.dll +0 -0
  79. package/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.487u3twia4.dll +0 -0
  80. package/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.d0gcnmlxxz.dll +0 -0
  81. package/wwwroot/_framework/Microsoft.AspNetCore.Metadata.h4yevl9adi.dll +0 -0
  82. package/wwwroot/_framework/Microsoft.CSharp.8bsm8vx6su.dll +0 -0
  83. package/wwwroot/_framework/Microsoft.Data.Sqlite.jdlxgv2jtg.dll +0 -0
  84. package/wwwroot/_framework/Microsoft.EntityFrameworkCore.4gjazp7kjf.dll +0 -0
  85. package/wwwroot/_framework/Microsoft.EntityFrameworkCore.Abstractions.gocudnvz7b.dll +0 -0
  86. package/wwwroot/_framework/Microsoft.EntityFrameworkCore.Relational.lt4rsvinuo.dll +0 -0
  87. package/wwwroot/_framework/Microsoft.EntityFrameworkCore.Sqlite.69luj0fa9r.dll +0 -0
  88. package/wwwroot/_framework/Microsoft.Extensions.Caching.Abstractions.364t4jh3zz.dll +0 -0
  89. package/wwwroot/_framework/Microsoft.Extensions.Caching.Memory.izlxhpzosu.dll +0 -0
  90. package/wwwroot/_framework/Microsoft.Extensions.Configuration.8zq7hh41o7.dll +0 -0
  91. package/wwwroot/_framework/Microsoft.Extensions.Configuration.Abstractions.8if74zs6ea.dll +0 -0
  92. package/wwwroot/_framework/Microsoft.Extensions.Configuration.Json.duvlngw8i0.dll +0 -0
  93. package/wwwroot/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.t2hh9kvx0o.dll +0 -0
  94. package/wwwroot/_framework/Microsoft.Extensions.DependencyInjection.n4tg99oy8l.dll +0 -0
  95. package/wwwroot/_framework/Microsoft.Extensions.DependencyModel.h0d06ixk3e.dll +0 -0
  96. package/wwwroot/_framework/Microsoft.Extensions.Logging.Abstractions.rl32bkx2sd.dll +0 -0
  97. package/wwwroot/_framework/Microsoft.Extensions.Logging.dlht1xei0t.dll +0 -0
  98. package/wwwroot/_framework/Microsoft.Extensions.Options.qeunebioml.dll +0 -0
  99. package/wwwroot/_framework/Microsoft.Extensions.Primitives.18cr6vnuuz.dll +0 -0
  100. package/wwwroot/_framework/Microsoft.IO.RecyclableMemoryStream.r915vovvw4.dll +0 -0
  101. package/wwwroot/_framework/Microsoft.IdentityModel.Abstractions.1ejljk3erv.dll +0 -0
  102. package/wwwroot/_framework/Microsoft.IdentityModel.JsonWebTokens.1596zr8gne.dll +0 -0
  103. package/wwwroot/_framework/Microsoft.IdentityModel.Logging.229uyvpgio.dll +0 -0
  104. package/wwwroot/_framework/Microsoft.IdentityModel.Tokens.9sibtajc9f.dll +0 -0
  105. package/wwwroot/_framework/Microsoft.JSInterop.WebAssembly.ryia5gxiad.dll +0 -0
  106. package/wwwroot/_framework/Microsoft.JSInterop.ew9vz9o332.dll +0 -0
  107. package/wwwroot/_framework/Microsoft.ML.OnnxRuntime.w9deo1m5ss.dll +0 -0
  108. package/wwwroot/_framework/Microsoft.ML.Tokenizers.cm2vuv2z61.dll +0 -0
  109. package/wwwroot/_framework/Microsoft.NET.StringTools.3qbrf4v2ki.dll +0 -0
  110. package/wwwroot/_framework/MimeMapping.og9ys58ylm.dll +0 -0
  111. package/wwwroot/_framework/MindExecution.Core.y7ffihhajj.dll +0 -0
  112. package/wwwroot/_framework/MindExecution.Kernel.l5y3qroa7p.dll +0 -0
  113. package/wwwroot/_framework/MindExecution.Plugins.Admin.uuf238xa0h.dll +0 -0
  114. package/wwwroot/_framework/MindExecution.Plugins.Business.nyr3v25v48.dll +0 -0
  115. package/wwwroot/_framework/MindExecution.Plugins.Concept.l9z9tx9svt.dll +0 -0
  116. package/wwwroot/_framework/MindExecution.Plugins.Directory.ju87t8h3zs.dll +0 -0
  117. package/wwwroot/_framework/MindExecution.Plugins.PlanMaster.krn3jgvjpa.dll +0 -0
  118. package/wwwroot/_framework/MindExecution.Plugins.YouTube.5m53srfud6.dll +0 -0
  119. package/wwwroot/_framework/MindExecution.Shared.ojp3psugsm.dll +0 -0
  120. package/wwwroot/_framework/MindExecution.Web.82k6ktlkfg.dll +0 -0
  121. package/wwwroot/_framework/Newtonsoft.Json.a56zs13vug.dll +0 -0
  122. package/wwwroot/_framework/SQLitePCLRaw.batteries_v2.rrd1nzawpp.dll +0 -0
  123. package/wwwroot/_framework/SQLitePCLRaw.core.1dxloztpfz.dll +0 -0
  124. package/wwwroot/_framework/SQLitePCLRaw.provider.e_sqlite3.oekyzl53i1.dll +0 -0
  125. package/wwwroot/_framework/Supabase.Core.s1pkj4aj0l.dll +0 -0
  126. package/wwwroot/_framework/Supabase.Functions.qz4nu782sg.dll +0 -0
  127. package/wwwroot/_framework/Supabase.Gotrue.twah27pkik.dll +0 -0
  128. package/wwwroot/_framework/Supabase.Postgrest.gmuuv369ih.dll +0 -0
  129. package/wwwroot/_framework/Supabase.Realtime.ox3kchdy3w.dll +0 -0
  130. package/wwwroot/_framework/Supabase.Storage.fnjnepaowr.dll +0 -0
  131. package/wwwroot/_framework/Supabase.azmaw5pgcz.dll +0 -0
  132. package/wwwroot/_framework/System.Collections.23yxgetbju.dll +0 -0
  133. package/wwwroot/_framework/System.Collections.Concurrent.vow3rm1dku.dll +0 -0
  134. package/wwwroot/_framework/System.Collections.Immutable.ap9596utv5.dll +0 -0
  135. package/wwwroot/_framework/System.Collections.NonGeneric.npjkaz40oc.dll +0 -0
  136. package/wwwroot/_framework/System.Collections.Specialized.ugkjbs6p02.dll +0 -0
  137. package/wwwroot/_framework/System.ComponentModel.Annotations.clwo0z2oyu.dll +0 -0
  138. package/wwwroot/_framework/System.ComponentModel.Primitives.end4v0xe2c.dll +0 -0
  139. package/wwwroot/_framework/System.ComponentModel.TypeConverter.tgtp5sm4iv.dll +0 -0
  140. package/wwwroot/_framework/System.ComponentModel.wupoltkk1t.dll +0 -0
  141. package/wwwroot/_framework/System.Console.9dik0wogo2.dll +0 -0
  142. package/wwwroot/_framework/System.Data.Common.4v8jejsiu0.dll +0 -0
  143. package/wwwroot/_framework/System.Diagnostics.DiagnosticSource.e2q75ondtq.dll +0 -0
  144. package/wwwroot/_framework/System.Diagnostics.Process.9736yjnxs8.dll +0 -0
  145. package/wwwroot/_framework/System.Diagnostics.TraceSource.h9al53gbbw.dll +0 -0
  146. package/wwwroot/_framework/System.Diagnostics.Tracing.h4bcp2fo98.dll +0 -0
  147. package/wwwroot/_framework/System.Drawing.64oovy8qts.dll +0 -0
  148. package/wwwroot/_framework/System.Drawing.Primitives.o6jiqpgbgl.dll +0 -0
  149. package/wwwroot/_framework/System.Formats.Asn1.rylx5ipd40.dll +0 -0
  150. package/wwwroot/_framework/System.IO.Compression.iceabaupns.dll +0 -0
  151. package/wwwroot/_framework/System.IO.Pipelines.uw8csd3mlz.dll +0 -0
  152. package/wwwroot/_framework/System.IdentityModel.Tokens.Jwt.t67es60z5b.dll +0 -0
  153. package/wwwroot/_framework/System.Linq.Expressions.ty95ava37f.dll +0 -0
  154. package/wwwroot/_framework/System.Linq.Queryable.hs2195jrwy.dll +0 -0
  155. package/wwwroot/_framework/System.Linq.hssodjwmlf.dll +0 -0
  156. package/wwwroot/_framework/System.Memory.1k78n7wdxb.dll +0 -0
  157. package/wwwroot/_framework/System.Net.Http.3br8rfql4c.dll +0 -0
  158. package/wwwroot/_framework/System.Net.Http.Json.860wbh17d8.dll +0 -0
  159. package/wwwroot/_framework/System.Net.NetworkInformation.e3wr00853o.dll +0 -0
  160. package/wwwroot/_framework/System.Net.Ping.r5cw4mf1a4.dll +0 -0
  161. package/wwwroot/_framework/System.Net.Primitives.ksxwiwlvhu.dll +0 -0
  162. package/wwwroot/_framework/System.Net.WebSockets.6rt3n3gl2q.dll +0 -0
  163. package/wwwroot/_framework/System.Net.WebSockets.Client.z3usrzo7rz.dll +0 -0
  164. package/wwwroot/_framework/System.Numerics.Tensors.0c7z4mt3on.dll +0 -0
  165. package/wwwroot/_framework/System.Numerics.Vectors.lbdzx8reja.dll +0 -0
  166. package/wwwroot/_framework/System.ObjectModel.yct1gdirzf.dll +0 -0
  167. package/wwwroot/_framework/System.Private.CoreLib.c1dbswx1b2.dll +0 -0
  168. package/wwwroot/_framework/System.Private.Uri.zp9kmg0z93.dll +0 -0
  169. package/wwwroot/_framework/System.Private.Xml.Linq.lgv2n0akl4.dll +0 -0
  170. package/wwwroot/_framework/System.Private.Xml.dpsk8g304y.dll +0 -0
  171. package/wwwroot/_framework/System.Reactive.t3fuon548l.dll +0 -0
  172. package/wwwroot/_framework/System.Reflection.Emit.ILGeneration.1tcuz2cmbk.dll +0 -0
  173. package/wwwroot/_framework/System.Reflection.Emit.Lightweight.ddt2wylovg.dll +0 -0
  174. package/wwwroot/_framework/System.Reflection.Emit.d8vkadiwhg.dll +0 -0
  175. package/wwwroot/_framework/System.Reflection.Primitives.cpsl71xd1z.dll +0 -0
  176. package/wwwroot/_framework/System.Runtime.InteropServices.31vjgsfk1o.dll +0 -0
  177. package/wwwroot/_framework/System.Runtime.InteropServices.JavaScript.pn2wvizzet.dll +0 -0
  178. package/wwwroot/_framework/System.Runtime.InteropServices.RuntimeInformation.l5rk496q70.dll +0 -0
  179. package/wwwroot/_framework/System.Runtime.Intrinsics.0zee9qcqfy.dll +0 -0
  180. package/wwwroot/_framework/System.Runtime.Loader.xw2jr9wl92.dll +0 -0
  181. package/wwwroot/_framework/System.Runtime.Numerics.ezj1dfyvbj.dll +0 -0
  182. package/wwwroot/_framework/System.Runtime.Serialization.Formatters.0y019e9zkr.dll +0 -0
  183. package/wwwroot/_framework/System.Runtime.Serialization.Primitives.bia5wb62c8.dll +0 -0
  184. package/wwwroot/_framework/System.Runtime.h9cduidfkh.dll +0 -0
  185. package/wwwroot/_framework/System.Security.Claims.2r18wim2rl.dll +0 -0
  186. package/wwwroot/_framework/System.Security.Cryptography.qqgybpoucx.dll +0 -0
  187. package/wwwroot/_framework/System.Text.Encoding.Extensions.9t3hs6kyll.dll +0 -0
  188. package/wwwroot/_framework/System.Text.Encodings.Web.wftjfh2crk.dll +0 -0
  189. package/wwwroot/_framework/System.Text.Json.0v0qgmri0w.dll +0 -0
  190. package/wwwroot/_framework/System.Text.RegularExpressions.cvkox11l6l.dll +0 -0
  191. package/wwwroot/_framework/System.Threading.Channels.419493szqu.dll +0 -0
  192. package/wwwroot/_framework/System.Threading.Thread.xhmys87xh5.dll +0 -0
  193. package/wwwroot/_framework/System.Threading.b66vzsz9g1.dll +0 -0
  194. package/wwwroot/_framework/System.Transactions.Local.7zfffdvnwf.dll +0 -0
  195. package/wwwroot/_framework/System.Web.HttpUtility.9up6xfbtuq.dll +0 -0
  196. package/wwwroot/_framework/System.Xml.Linq.n5rzv9nbf7.dll +0 -0
  197. package/wwwroot/_framework/System.Xml.ReaderWriter.ag8pilllob.dll +0 -0
  198. package/wwwroot/_framework/System.Xml.XDocument.sn51jas17n.dll +0 -0
  199. package/wwwroot/_framework/System.brmz7yk5qh.dll +0 -0
  200. package/wwwroot/_framework/Websocket.Client.vapounvmnl.dll +0 -0
  201. package/wwwroot/_framework/blazor.boot.json +305 -0
  202. package/wwwroot/_framework/blazor.webassembly.js +1 -0
  203. package/wwwroot/_framework/dotnet.js +4 -0
  204. package/wwwroot/_framework/dotnet.native.boem75ye5i.wasm +0 -0
  205. package/wwwroot/_framework/dotnet.native.qc8g39g30v.js +16 -0
  206. package/wwwroot/_framework/dotnet.runtime.opaiwunc3t.js +4 -0
  207. package/wwwroot/_framework/icudt_CJK.tjcz0u77k5.dat +0 -0
  208. package/wwwroot/_framework/icudt_EFIGS.tptq2av103.dat +0 -0
  209. package/wwwroot/_framework/icudt_no_CJK.lfu7j35m59.dat +0 -0
  210. package/wwwroot/_framework/netstandard.yvr3prsx0x.dll +0 -0
  211. package/wwwroot/_headers +17 -50
  212. package/wwwroot/appsettings.json +82 -82
  213. package/wwwroot/icon-192.png +0 -0
  214. package/wwwroot/icon-512.png +0 -0
  215. package/wwwroot/index.html +736 -22
  216. package/wwwroot/js/marketing-tool.js +180 -0
  217. package/wwwroot/manifest.webmanifest +21 -18
  218. package/wwwroot/robots.txt +1 -1
  219. package/wwwroot/service-worker-assets.js +857 -0
  220. package/wwwroot/service-worker.js +31 -5
  221. package/wwwroot/sitemap.xml +8 -20
  222. package/wwwroot/assets/AdminDashboardPage-AhImXOcJ.js +0 -1
  223. package/wwwroot/assets/AdminDashboardPage-B2vz2Px9.css +0 -1
  224. package/wwwroot/assets/AppSidebar-HIF29_Y1.js +0 -2
  225. package/wwwroot/assets/AuthPages-BrH6kRcv.css +0 -1
  226. package/wwwroot/assets/AuthPages-n1KbzJI5.js +0 -1
  227. package/wwwroot/assets/CodePage-Bncc352E.css +0 -1
  228. package/wwwroot/assets/CodePage-OKIzhHoC.js +0 -87
  229. package/wwwroot/assets/CompanyCorePage-Biw4RPhk.js +0 -13
  230. package/wwwroot/assets/CompanyCorePage-ChBnq1ve.css +0 -1
  231. package/wwwroot/assets/ExecutionModePage-BaNPZB_m.js +0 -18
  232. package/wwwroot/assets/ExecutionModePage-TLuld9l3.css +0 -1
  233. package/wwwroot/assets/LaunchLeadCapture-Bx9LM0IX.js +0 -1
  234. package/wwwroot/assets/LaunchLeadCapture-CiRI1shz.css +0 -1
  235. package/wwwroot/assets/MarketingHome-BsyerRpe.js +0 -1
  236. package/wwwroot/assets/MarketingHome-DPzaYzA_.css +0 -1
  237. package/wwwroot/assets/MindCanvas-07gqXHGA.js +0 -49
  238. package/wwwroot/assets/MindCanvas-DtqOZnoW.css +0 -1
  239. package/wwwroot/assets/PlanMasterPage-CJ36rep-.css +0 -1
  240. package/wwwroot/assets/PlanMasterPage-CT87Dr_2.js +0 -4
  241. package/wwwroot/assets/PricingPage-Cg_0i_ZR.css +0 -1
  242. package/wwwroot/assets/PricingPage-dDvHQskC.js +0 -1
  243. package/wwwroot/assets/ToolPages-CKI4mItc.js +0 -28
  244. package/wwwroot/assets/ToolPages-DIB187pZ.css +0 -1
  245. package/wwwroot/assets/YouTubeSearchPage-8iFuPSSo.js +0 -4
  246. package/wwwroot/assets/YouTubeSearchPage-IPPa_BIH.css +0 -1
  247. package/wwwroot/assets/app-runtime-xD2Z3NdN.js +0 -1
  248. package/wwwroot/assets/canvas-runtime-Nq2noXK-.js +0 -44
  249. package/wwwroot/assets/code-agent-runtime-B5PPZd1t.js +0 -74
  250. package/wwwroot/assets/executionModeSettings-NJqurj-o.js +0 -1
  251. package/wwwroot/assets/index-CyNhJb7A.js +0 -2
  252. package/wwwroot/assets/index-yNpEK-gp.css +0 -1
  253. package/wwwroot/assets/marketingTools-DN_rnHeB.js +0 -4
  254. package/wwwroot/assets/mindCanvasSearchWorker-BzPMsHOB.js +0 -1
  255. package/wwwroot/assets/mindexecution-mindcanvas.png +0 -0
  256. package/wwwroot/assets/mindexecution-prod-home-current.png +0 -0
  257. package/wwwroot/assets/mindexecution-prod-pricing-current.png +0 -0
  258. package/wwwroot/assets/pricingCheckoutShell-O-DnwmbU.js +0 -1
  259. package/wwwroot/assets/productionAdapterConfig-C5jfk6oG.js +0 -1
  260. package/wwwroot/assets/runtimeSettingsPersistenceProjection-BoNWmYjU.js +0 -1
  261. package/wwwroot/assets/storage-DPyjZEKZ.js +0 -1
  262. package/wwwroot/assets/supabaseAuthAdapter-m134Qdxn.js +0 -44
  263. package/wwwroot/assets/toolHandoff-D5e5f7t5.js +0 -4
  264. package/wwwroot/assets/vendor-icons-DE3gIReG.js +0 -681
  265. package/wwwroot/assets/vendor-msgpack-BE8aAsr3.js +0 -1
  266. package/wwwroot/assets/vendor-react-BXzpOyCS.js +0 -40
  267. package/wwwroot/favicon.svg +0 -7
@@ -0,0 +1,639 @@
1
+ // MindMap Toolbar Helper Functions
2
+ (function () {
3
+ 'use strict';
4
+
5
+ const dropdownOutsideCloseHandlers = new WeakMap();
6
+ const surfaceOutsideClickCloseStatesByHelper = new WeakMap();
7
+ const surfaceOutsideClickCloseStatesByRoot = new WeakMap();
8
+ let layoutDotNetHelper = null;
9
+ let fallbackReadModeActive = false;
10
+ let fullscreenEventsRegistered = false;
11
+ let visibilityEventsRegistered = false;
12
+ let surfaceInteractionEventsRegistered = false;
13
+ let documentHiddenAtUtc = null;
14
+
15
+ function supportsFullscreenApi() {
16
+ const root = document.documentElement;
17
+ return !!(
18
+ root?.requestFullscreen ||
19
+ root?.webkitRequestFullscreen ||
20
+ root?.msRequestFullscreen ||
21
+ document.exitFullscreen ||
22
+ document.webkitExitFullscreen ||
23
+ document.msExitFullscreen
24
+ );
25
+ }
26
+
27
+ function getFullscreenElement() {
28
+ return document.fullscreenElement || document.webkitFullscreenElement || document.msFullscreenElement || null;
29
+ }
30
+
31
+ function getCurrentReadModeState() {
32
+ return supportsFullscreenApi() ? !!getFullscreenElement() : fallbackReadModeActive === true;
33
+ }
34
+
35
+ function notifyLayoutFullscreenChanged(isActive) {
36
+ layoutDotNetHelper?.invokeMethodAsync?.('OnMindCanvasFullscreenChanged', isActive === true)
37
+ ?.catch?.(() => { });
38
+ }
39
+
40
+ function ensureFullscreenListeners() {
41
+ if (fullscreenEventsRegistered) {
42
+ return;
43
+ }
44
+
45
+ const handler = () => {
46
+ if (supportsFullscreenApi()) {
47
+ fallbackReadModeActive = false;
48
+ }
49
+ notifyLayoutFullscreenChanged(getCurrentReadModeState());
50
+ };
51
+
52
+ document.addEventListener('fullscreenchange', handler);
53
+ document.addEventListener('webkitfullscreenchange', handler);
54
+ document.addEventListener('MSFullscreenChange', handler);
55
+ fullscreenEventsRegistered = true;
56
+ }
57
+
58
+ function notifyLayoutDocumentVisibilityChanged() {
59
+ if (!layoutDotNetHelper?.invokeMethodAsync) {
60
+ return;
61
+ }
62
+
63
+ const isVisible = document.visibilityState !== 'hidden';
64
+ const nowUtc = new Date().toISOString();
65
+ if (!isVisible) {
66
+ documentHiddenAtUtc = nowUtc;
67
+ }
68
+
69
+ const eventAtUtc = isVisible ? (documentHiddenAtUtc || nowUtc) : documentHiddenAtUtc;
70
+ layoutDotNetHelper.invokeMethodAsync('OnDocumentVisibilityChanged', isVisible, eventAtUtc)
71
+ .catch(() => { });
72
+
73
+ if (isVisible) {
74
+ documentHiddenAtUtc = null;
75
+ }
76
+ }
77
+
78
+ function ensureDocumentVisibilityListeners() {
79
+ if (visibilityEventsRegistered) {
80
+ return;
81
+ }
82
+
83
+ document.addEventListener('visibilitychange', notifyLayoutDocumentVisibilityChanged);
84
+ window.addEventListener('pageshow', notifyLayoutDocumentVisibilityChanged);
85
+ window.addEventListener('focus', () => {
86
+ if (document.visibilityState !== 'hidden') {
87
+ notifyLayoutDocumentVisibilityChanged();
88
+ }
89
+ });
90
+ visibilityEventsRegistered = true;
91
+ }
92
+
93
+ function notifyMindCanvasSurfaceInteraction(event) {
94
+ if (!layoutDotNetHelper?.invokeMethodAsync) {
95
+ return;
96
+ }
97
+
98
+ const reason = String(event?.detail?.reason || 'canvas-interaction');
99
+ layoutDotNetHelper.invokeMethodAsync('OnMindCanvasSurfaceInteraction', reason)
100
+ .catch(() => { });
101
+ }
102
+
103
+ function ensureMindCanvasSurfaceInteractionListener() {
104
+ if (surfaceInteractionEventsRegistered) {
105
+ return;
106
+ }
107
+
108
+ window.addEventListener('mindcanvas:surface-interaction', notifyMindCanvasSurfaceInteraction);
109
+ surfaceInteractionEventsRegistered = true;
110
+ }
111
+
112
+ function isEventInsideRoot(rootElement, event) {
113
+ if (!rootElement || !event) {
114
+ return false;
115
+ }
116
+
117
+ const path = typeof event.composedPath === 'function'
118
+ ? event.composedPath()
119
+ : null;
120
+ if (Array.isArray(path) && path.includes(rootElement)) {
121
+ return true;
122
+ }
123
+
124
+ const target = event.target;
125
+ return !!target && rootElement.contains(target);
126
+ }
127
+
128
+ function isEventInsideIgnoredSelector(ignoreSelector, event) {
129
+ if (!ignoreSelector || !event) {
130
+ return false;
131
+ }
132
+
133
+ const path = typeof event.composedPath === 'function'
134
+ ? event.composedPath()
135
+ : null;
136
+ if (Array.isArray(path)) {
137
+ for (const entry of path) {
138
+ if (entry && typeof entry.matches === 'function' && entry.matches(ignoreSelector)) {
139
+ return true;
140
+ }
141
+ }
142
+ }
143
+
144
+ const target = event.target;
145
+ return !!target && typeof target.closest === 'function' && !!target.closest(ignoreSelector);
146
+ }
147
+
148
+ function isNativeSelectEvent(event) {
149
+ if (!event) {
150
+ return false;
151
+ }
152
+
153
+ const path = typeof event.composedPath === 'function'
154
+ ? event.composedPath()
155
+ : null;
156
+ if (Array.isArray(path)) {
157
+ for (const entry of path) {
158
+ const tagName = entry?.tagName;
159
+ if (tagName === 'SELECT' || tagName === 'OPTION' || tagName === 'OPTGROUP') {
160
+ return true;
161
+ }
162
+ }
163
+ }
164
+
165
+ const tagName = event.target?.tagName;
166
+ return tagName === 'SELECT' || tagName === 'OPTION' || tagName === 'OPTGROUP';
167
+ }
168
+
169
+ function getInteractionTime() {
170
+ return typeof performance !== 'undefined' && typeof performance.now === 'function'
171
+ ? performance.now()
172
+ : Date.now();
173
+ }
174
+
175
+ function markNativeSelectInteraction(state) {
176
+ if (!state) {
177
+ return;
178
+ }
179
+
180
+ state.nativeSelectInteractionActive = true;
181
+ state.nativeSelectInteractionAt = getInteractionTime();
182
+ }
183
+
184
+ function isNativeSelectFocusedInside(rootElement) {
185
+ const activeElement = document.activeElement;
186
+ return !!rootElement &&
187
+ !!activeElement &&
188
+ rootElement.contains(activeElement) &&
189
+ activeElement.tagName === 'SELECT';
190
+ }
191
+
192
+ function scheduleNativeSelectInteractionClear(state) {
193
+ if (!state) {
194
+ return;
195
+ }
196
+
197
+ window.setTimeout(() => {
198
+ if (!isNativeSelectFocusedInside(state.rootElement)) {
199
+ state.nativeSelectInteractionActive = false;
200
+ }
201
+ }, 500);
202
+ }
203
+
204
+ function shouldIgnoreDocumentClickForNativeSelect(state) {
205
+ if (!state?.nativeSelectInteractionActive) {
206
+ return false;
207
+ }
208
+
209
+ if (isNativeSelectFocusedInside(state.rootElement)) {
210
+ return true;
211
+ }
212
+
213
+ return getInteractionTime() - state.nativeSelectInteractionAt < 350;
214
+ }
215
+
216
+ function resolveSurfaceRootElement(rootElement, options) {
217
+ const selector = options?.rootSelector;
218
+ if (selector && typeof document.querySelector === 'function') {
219
+ const currentElement = document.querySelector(selector);
220
+ if (currentElement) {
221
+ return currentElement;
222
+ }
223
+ }
224
+
225
+ return rootElement;
226
+ }
227
+
228
+ function isPointerWithinElementBounds(element, event) {
229
+ if (!element || !event) {
230
+ return false;
231
+ }
232
+
233
+ const clientX = Number(event.clientX);
234
+ const clientY = Number(event.clientY);
235
+ if (!Number.isFinite(clientX) || !Number.isFinite(clientY)) {
236
+ return false;
237
+ }
238
+
239
+ const rect = element.getBoundingClientRect?.();
240
+ if (!rect) {
241
+ return false;
242
+ }
243
+
244
+ return clientX >= rect.left &&
245
+ clientX <= rect.right &&
246
+ clientY >= rect.top &&
247
+ clientY <= rect.bottom;
248
+ }
249
+
250
+ function isSurfaceOwnedPointerEvent(state, rootElement, event) {
251
+ if (!state || !event) {
252
+ return false;
253
+ }
254
+
255
+ return isEventInsideRoot(rootElement, event) ||
256
+ isPointerWithinElementBounds(rootElement, event) ||
257
+ isEventInsideIgnoredSelector(state.options?.ignoreSelector, event);
258
+ }
259
+
260
+ function rememberSurfacePointerDown(state, event) {
261
+ if (!state || !event) {
262
+ return;
263
+ }
264
+
265
+ const currentRootElement = resolveSurfaceRootElement(state.rootElement, state.options);
266
+ const isInsideSurface = isSurfaceOwnedPointerEvent(state, currentRootElement, event);
267
+ state.lastPointerDownInsideSurface = isInsideSurface;
268
+ state.lastPointerDownAt = getInteractionTime();
269
+
270
+ if (isInsideSurface) {
271
+ state.suppressNextDocumentClick = true;
272
+ }
273
+
274
+ if (isNativeSelectEvent(event)) {
275
+ markNativeSelectInteraction(state);
276
+ }
277
+ }
278
+
279
+ function getUploadDropPosition(viewport) {
280
+ const fallbackRect = viewport.getBoundingClientRect();
281
+ const fallbackPosition = {
282
+ clientX: fallbackRect.left + (fallbackRect.width / 2),
283
+ clientY: fallbackRect.top + (fallbackRect.height / 2)
284
+ };
285
+
286
+ const cursorPosition = window.mindMap?.getCursorClientPosition?.();
287
+ if (!cursorPosition || !Number.isFinite(cursorPosition.clientX) || !Number.isFinite(cursorPosition.clientY)) {
288
+ return fallbackPosition;
289
+ }
290
+
291
+ return cursorPosition;
292
+ }
293
+
294
+ // Simulate a file drop event at the current cursor position
295
+ window.triggerMindMapFileUpload = function (inputElementId) {
296
+ const input = document.getElementById(inputElementId);
297
+ if (!input || !input.files || input.files.length === 0) {
298
+ console.warn('[MindMapToolbar] No file selected');
299
+ return false;
300
+ }
301
+
302
+ const files = Array.from(input.files);
303
+ const dataTransfer = new DataTransfer();
304
+ files.forEach((file) => dataTransfer.items.add(file));
305
+
306
+ const viewport = document.getElementById('mind-map-viewport');
307
+ if (!viewport) {
308
+ console.error('[MindMapToolbar] Viewport not found');
309
+ return false;
310
+ }
311
+
312
+ try {
313
+ const { clientX, clientY } = getUploadDropPosition(viewport);
314
+ const mockEvent = new DragEvent('drop', {
315
+ bubbles: true,
316
+ cancelable: true,
317
+ dataTransfer: dataTransfer
318
+ });
319
+
320
+ Object.defineProperty(mockEvent, 'clientX', {
321
+ value: clientX,
322
+ writable: false
323
+ });
324
+ Object.defineProperty(mockEvent, 'clientY', {
325
+ value: clientY,
326
+ writable: false
327
+ });
328
+
329
+ viewport.dispatchEvent(mockEvent);
330
+ console.log('[MindMapToolbar] File drop event triggered for:', files.map((file) => file.name));
331
+
332
+ // Reset file input so selecting the same file(s) again still fires change.
333
+ input.value = '';
334
+ return true;
335
+ } catch (error) {
336
+ console.error('[MindMapToolbar] Error triggering file drop:', error);
337
+ return false;
338
+ }
339
+ };
340
+
341
+ // Focus on the global textarea
342
+ window.focusGlobalTextarea = function () {
343
+ const textarea = document.getElementById('global-input-textarea');
344
+ if (textarea) {
345
+ textarea.focus();
346
+ return true;
347
+ }
348
+ return false;
349
+ };
350
+
351
+ window.setMindMapPageScrollLock = function (active) {
352
+ const shouldLock = active === true;
353
+ const html = document.documentElement;
354
+ const body = document.body;
355
+
356
+ html?.classList.toggle('mind-map-scroll-locked', shouldLock);
357
+ body?.classList.toggle('mind-map-scroll-locked', shouldLock);
358
+
359
+ if (shouldLock) {
360
+ if (html) {
361
+ html.scrollTop = 0;
362
+ html.scrollLeft = 0;
363
+ }
364
+ if (body) {
365
+ body.scrollTop = 0;
366
+ body.scrollLeft = 0;
367
+ }
368
+ window.scrollTo(0, 0);
369
+ }
370
+
371
+ return shouldLock;
372
+ };
373
+
374
+ window.initMindCanvasLayout = function (helper) {
375
+ layoutDotNetHelper = helper || null;
376
+ ensureFullscreenListeners();
377
+ ensureDocumentVisibilityListeners();
378
+ ensureMindCanvasSurfaceInteractionListener();
379
+ notifyLayoutFullscreenChanged(getCurrentReadModeState());
380
+ notifyLayoutDocumentVisibilityChanged();
381
+ return true;
382
+ };
383
+
384
+ window.getMindCanvasFullscreenState = function () {
385
+ return getCurrentReadModeState();
386
+ };
387
+
388
+ window.setMindCanvasFullscreen = async function (enabled) {
389
+ const shouldEnable = enabled === true;
390
+ const root = document.documentElement;
391
+ if (!root) {
392
+ return false;
393
+ }
394
+
395
+ if (!supportsFullscreenApi()) {
396
+ fallbackReadModeActive = shouldEnable;
397
+ notifyLayoutFullscreenChanged(fallbackReadModeActive);
398
+ return fallbackReadModeActive;
399
+ }
400
+
401
+ try {
402
+ if (shouldEnable) {
403
+ if (!getFullscreenElement()) {
404
+ if (root.requestFullscreen) {
405
+ await root.requestFullscreen();
406
+ } else if (root.webkitRequestFullscreen) {
407
+ await root.webkitRequestFullscreen();
408
+ } else if (root.msRequestFullscreen) {
409
+ await root.msRequestFullscreen();
410
+ }
411
+ }
412
+ } else if (getFullscreenElement()) {
413
+ if (document.exitFullscreen) {
414
+ await document.exitFullscreen();
415
+ } else if (document.webkitExitFullscreen) {
416
+ await document.webkitExitFullscreen();
417
+ } else if (document.msExitFullscreen) {
418
+ await document.msExitFullscreen();
419
+ }
420
+ }
421
+ } catch (error) {
422
+ console.warn('[MindMapToolbar] Fullscreen toggle failed, falling back to read-mode only:', error);
423
+ fallbackReadModeActive = shouldEnable;
424
+ notifyLayoutFullscreenChanged(fallbackReadModeActive);
425
+ return fallbackReadModeActive;
426
+ }
427
+
428
+ fallbackReadModeActive = false;
429
+ const nextState = getCurrentReadModeState();
430
+ notifyLayoutFullscreenChanged(nextState);
431
+ return nextState;
432
+ };
433
+
434
+ window.toggleMindCanvasReadMode = function () {
435
+ return window.setMindCanvasFullscreen(!getCurrentReadModeState());
436
+ };
437
+
438
+ window.registerDropdownOutsideClose = function (rootElement, helper) {
439
+ if (!rootElement || !helper) {
440
+ return false;
441
+ }
442
+
443
+ window.unregisterDropdownOutsideClose(rootElement);
444
+
445
+ const handler = (event) => {
446
+ const target = event.target;
447
+ if (!target || rootElement.contains(target)) {
448
+ return;
449
+ }
450
+
451
+ helper.invokeMethodAsync('CloseFromOutsidePointer')
452
+ .catch(() => { });
453
+ };
454
+
455
+ document.addEventListener('pointerdown', handler, true);
456
+ dropdownOutsideCloseHandlers.set(rootElement, handler);
457
+ return true;
458
+ };
459
+
460
+ window.unregisterDropdownOutsideClose = function (rootElement) {
461
+ if (!rootElement) {
462
+ return false;
463
+ }
464
+
465
+ const handler = dropdownOutsideCloseHandlers.get(rootElement);
466
+ if (!handler) {
467
+ return false;
468
+ }
469
+
470
+ document.removeEventListener('pointerdown', handler, true);
471
+ dropdownOutsideCloseHandlers.delete(rootElement);
472
+ return true;
473
+ };
474
+
475
+ function detachSurfaceOutsideClickCloseState(state) {
476
+ if (!state) {
477
+ return false;
478
+ }
479
+
480
+ if (state.rootElement && state.rootPointerDownHandler) {
481
+ state.rootElement.removeEventListener('pointerdown', state.rootPointerDownHandler, true);
482
+ }
483
+
484
+ if (state.rootElement && state.rootClickHandler) {
485
+ state.rootElement.removeEventListener('click', state.rootClickHandler, true);
486
+ }
487
+
488
+ if (state.rootElement && state.rootChangeHandler) {
489
+ state.rootElement.removeEventListener('change', state.rootChangeHandler, true);
490
+ }
491
+
492
+ if (state.rootElement && state.rootFocusOutHandler) {
493
+ state.rootElement.removeEventListener('focusout', state.rootFocusOutHandler, true);
494
+ }
495
+
496
+ if (state.documentClickHandler) {
497
+ document.removeEventListener('click', state.documentClickHandler, false);
498
+ }
499
+
500
+ if (state.documentPointerDownHandler) {
501
+ document.removeEventListener('pointerdown', state.documentPointerDownHandler, true);
502
+ }
503
+
504
+ if (state.helper) {
505
+ surfaceOutsideClickCloseStatesByHelper.delete(state.helper);
506
+ }
507
+
508
+ if (state.rootElement) {
509
+ surfaceOutsideClickCloseStatesByRoot.delete(state.rootElement);
510
+ }
511
+
512
+ return true;
513
+ }
514
+
515
+ window.registerSurfaceOutsideClickClose = function (rootElement, helper, options) {
516
+ if (!rootElement || !helper) {
517
+ return false;
518
+ }
519
+
520
+ detachSurfaceOutsideClickCloseState(surfaceOutsideClickCloseStatesByHelper.get(helper));
521
+ detachSurfaceOutsideClickCloseState(surfaceOutsideClickCloseStatesByRoot.get(rootElement));
522
+
523
+ const state = {
524
+ helper,
525
+ options,
526
+ rootElement,
527
+ suppressNextDocumentClick: false,
528
+ nativeSelectInteractionActive: false,
529
+ nativeSelectInteractionAt: 0,
530
+ lastPointerDownInsideSurface: false,
531
+ lastPointerDownAt: 0,
532
+ rootPointerDownHandler: null,
533
+ rootClickHandler: null,
534
+ rootChangeHandler: null,
535
+ rootFocusOutHandler: null,
536
+ documentPointerDownHandler: null,
537
+ documentClickHandler: null
538
+ };
539
+
540
+ state.rootPointerDownHandler = (event) => {
541
+ state.suppressNextDocumentClick = true;
542
+ if (isNativeSelectEvent(event)) {
543
+ markNativeSelectInteraction(state);
544
+ }
545
+ };
546
+
547
+ state.rootClickHandler = (event) => {
548
+ state.suppressNextDocumentClick = true;
549
+ if (isNativeSelectEvent(event)) {
550
+ markNativeSelectInteraction(state);
551
+ }
552
+ };
553
+
554
+ state.rootChangeHandler = (event) => {
555
+ if (isNativeSelectEvent(event)) {
556
+ state.suppressNextDocumentClick = true;
557
+ markNativeSelectInteraction(state);
558
+ }
559
+ };
560
+
561
+ state.rootFocusOutHandler = () => {
562
+ scheduleNativeSelectInteractionClear(state);
563
+ };
564
+
565
+ state.documentPointerDownHandler = (event) => {
566
+ rememberSurfacePointerDown(state, event);
567
+ };
568
+
569
+ state.documentClickHandler = (event) => {
570
+ if (typeof event.button === 'number' && event.button !== 0) {
571
+ return;
572
+ }
573
+
574
+ if (state.suppressNextDocumentClick) {
575
+ state.suppressNextDocumentClick = false;
576
+ return;
577
+ }
578
+
579
+ const currentRootElement = resolveSurfaceRootElement(state.rootElement, state.options);
580
+ if (currentRootElement && currentRootElement !== state.rootElement) {
581
+ state.rootElement.removeEventListener('pointerdown', state.rootPointerDownHandler, true);
582
+ state.rootElement.removeEventListener('click', state.rootClickHandler, true);
583
+ state.rootElement.removeEventListener('change', state.rootChangeHandler, true);
584
+ state.rootElement.removeEventListener('focusout', state.rootFocusOutHandler, true);
585
+ surfaceOutsideClickCloseStatesByRoot.delete(state.rootElement);
586
+ state.rootElement = currentRootElement;
587
+ surfaceOutsideClickCloseStatesByRoot.set(state.rootElement, state);
588
+ state.rootElement.addEventListener('pointerdown', state.rootPointerDownHandler, true);
589
+ state.rootElement.addEventListener('click', state.rootClickHandler, true);
590
+ state.rootElement.addEventListener('change', state.rootChangeHandler, true);
591
+ state.rootElement.addEventListener('focusout', state.rootFocusOutHandler, true);
592
+ }
593
+
594
+ if (shouldIgnoreDocumentClickForNativeSelect(state)) {
595
+ return;
596
+ }
597
+
598
+ if (state.lastPointerDownInsideSurface === true && getInteractionTime() - state.lastPointerDownAt < 1000) {
599
+ return;
600
+ }
601
+
602
+ if (isEventInsideRoot(currentRootElement, event)) {
603
+ return;
604
+ }
605
+
606
+ if (isPointerWithinElementBounds(currentRootElement, event)) {
607
+ return;
608
+ }
609
+
610
+ if (isEventInsideIgnoredSelector(state.options?.ignoreSelector, event)) {
611
+ return;
612
+ }
613
+
614
+ state.helper.invokeMethodAsync('CloseFromOutsidePointer')
615
+ .catch(() => { });
616
+ };
617
+
618
+ state.rootElement.addEventListener('pointerdown', state.rootPointerDownHandler, true);
619
+ state.rootElement.addEventListener('click', state.rootClickHandler, true);
620
+ state.rootElement.addEventListener('change', state.rootChangeHandler, true);
621
+ state.rootElement.addEventListener('focusout', state.rootFocusOutHandler, true);
622
+ document.addEventListener('pointerdown', state.documentPointerDownHandler, true);
623
+ document.addEventListener('click', state.documentClickHandler, false);
624
+
625
+ surfaceOutsideClickCloseStatesByHelper.set(helper, state);
626
+ surfaceOutsideClickCloseStatesByRoot.set(rootElement, state);
627
+ return true;
628
+ };
629
+
630
+ window.unregisterSurfaceOutsideClickClose = function (rootElement) {
631
+ if (!rootElement) {
632
+ return false;
633
+ }
634
+
635
+ return detachSurfaceOutsideClickCloseState(surfaceOutsideClickCloseStatesByRoot.get(rootElement));
636
+ };
637
+
638
+ console.log('? mindmap-toolbar.js loaded');
639
+ })();