@chat-lab/ui 0.1.0-beta.12 → 0.1.0-beta.14

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 (878) hide show
  1. package/dist/_virtual/index.cjs +2 -2
  2. package/dist/_virtual/index.js +2 -2
  3. package/dist/_virtual/index2.cjs +2 -2
  4. package/dist/_virtual/index2.js +2 -2
  5. package/dist/_virtual/index3.cjs +2 -2
  6. package/dist/_virtual/index3.js +2 -2
  7. package/dist/_virtual/index4.cjs +2 -2
  8. package/dist/_virtual/index4.js +2 -2
  9. package/dist/assets/AbortMessage.cjs +10 -0
  10. package/dist/assets/AbortMessage.cjs.map +1 -0
  11. package/dist/assets/AbortMessage.d.ts +5 -0
  12. package/dist/assets/AbortMessage.d.ts.map +1 -0
  13. package/dist/assets/AbortMessage.js +8 -0
  14. package/dist/assets/AbortMessage.js.map +1 -0
  15. package/dist/assets/Download.cjs +10 -0
  16. package/dist/assets/Download.cjs.map +1 -0
  17. package/dist/assets/Download.d.ts +5 -0
  18. package/dist/assets/Download.d.ts.map +1 -0
  19. package/dist/assets/Download.js +8 -0
  20. package/dist/assets/Download.js.map +1 -0
  21. package/dist/assets/Edit.cjs +8 -0
  22. package/dist/assets/Edit.cjs.map +1 -0
  23. package/dist/assets/Edit.js +6 -0
  24. package/dist/assets/Edit.js.map +1 -0
  25. package/dist/components/Chatkit/index.cjs +9 -10
  26. package/dist/components/Chatkit/index.cjs.map +1 -1
  27. package/dist/components/Chatkit/index.d.ts.map +1 -1
  28. package/dist/components/Chatkit/index.js +7 -8
  29. package/dist/components/Chatkit/index.js.map +1 -1
  30. package/dist/components/Chatkit/ref.cjs +0 -1
  31. package/dist/components/Chatkit/ref.cjs.map +1 -1
  32. package/dist/components/Chatkit/ref.d.ts.map +1 -1
  33. package/dist/components/Chatkit/ref.js +0 -1
  34. package/dist/components/Chatkit/ref.js.map +1 -1
  35. package/dist/components/Chatkit/types.d.ts +1 -0
  36. package/dist/components/Chatkit/types.d.ts.map +1 -1
  37. package/dist/components/SwitchAgentModal/index.cjs +111 -12
  38. package/dist/components/SwitchAgentModal/index.cjs.map +1 -1
  39. package/dist/components/SwitchAgentModal/index.d.ts.map +1 -1
  40. package/dist/components/SwitchAgentModal/index.js +113 -14
  41. package/dist/components/SwitchAgentModal/index.js.map +1 -1
  42. package/dist/components/ThreadOptionsMenu.cjs +64 -0
  43. package/dist/components/ThreadOptionsMenu.cjs.map +1 -0
  44. package/dist/components/ThreadOptionsMenu.js +62 -0
  45. package/dist/components/ThreadOptionsMenu.js.map +1 -0
  46. package/dist/components/assistant-ui/index.module.less.cjs +6 -0
  47. package/dist/components/assistant-ui/index.module.less.cjs.map +1 -0
  48. package/dist/components/assistant-ui/index.module.less.js +4 -0
  49. package/dist/components/assistant-ui/index.module.less.js.map +1 -0
  50. package/dist/components/assistant-ui/markdown-text.cjs +42 -4
  51. package/dist/components/assistant-ui/markdown-text.cjs.map +1 -1
  52. package/dist/components/assistant-ui/markdown-text.d.ts +1 -0
  53. package/dist/components/assistant-ui/markdown-text.d.ts.map +1 -1
  54. package/dist/components/assistant-ui/markdown-text.js +42 -4
  55. package/dist/components/assistant-ui/markdown-text.js.map +1 -1
  56. package/dist/components/assistant-ui/shiki-highlighter.cjs +1 -1
  57. package/dist/components/assistant-ui/shiki-highlighter.cjs.map +1 -1
  58. package/dist/components/assistant-ui/shiki-highlighter.js +1 -1
  59. package/dist/components/assistant-ui/shiki-highlighter.js.map +1 -1
  60. package/dist/components/assistant-ui/thread.cjs +49 -6
  61. package/dist/components/assistant-ui/thread.cjs.map +1 -1
  62. package/dist/components/assistant-ui/thread.d.ts +1 -0
  63. package/dist/components/assistant-ui/thread.d.ts.map +1 -1
  64. package/dist/components/assistant-ui/thread.js +52 -9
  65. package/dist/components/assistant-ui/thread.js.map +1 -1
  66. package/dist/components/assistant-ui/tooltip-icon-button.d.ts +1 -1
  67. package/dist/components/thread-list.cjs +100 -0
  68. package/dist/components/thread-list.cjs.map +1 -0
  69. package/dist/components/thread-list.js +98 -0
  70. package/dist/components/thread-list.js.map +1 -0
  71. package/dist/components/ui/button.cjs.map +1 -1
  72. package/dist/components/ui/button.d.ts +1 -1
  73. package/dist/components/ui/button.js.map +1 -1
  74. package/dist/components/ui/dialog.cjs +1 -1
  75. package/dist/components/ui/dialog.cjs.map +1 -1
  76. package/dist/components/ui/dialog.d.ts.map +1 -1
  77. package/dist/components/ui/dialog.js +1 -1
  78. package/dist/components/ui/dialog.js.map +1 -1
  79. package/dist/components/ui/toast.cjs +1 -1
  80. package/dist/components/ui/toast.cjs.map +1 -1
  81. package/dist/components/ui/toast.js +1 -1
  82. package/dist/components/ui/toast.js.map +1 -1
  83. package/dist/components/ui/tooltip.cjs.map +1 -1
  84. package/dist/components/ui/tooltip.d.ts.map +1 -1
  85. package/dist/components/ui/tooltip.js.map +1 -1
  86. package/dist/components/welcome.cjs +13 -0
  87. package/dist/components/welcome.cjs.map +1 -0
  88. package/dist/components/welcome.d.ts +7 -0
  89. package/dist/components/welcome.d.ts.map +1 -0
  90. package/dist/components/welcome.js +11 -0
  91. package/dist/components/welcome.js.map +1 -0
  92. package/dist/hooks/useDebounce.cjs +27 -0
  93. package/dist/hooks/useDebounce.cjs.map +1 -0
  94. package/dist/hooks/useDebounce.d.ts +8 -0
  95. package/dist/hooks/useDebounce.d.ts.map +1 -0
  96. package/dist/hooks/useDebounce.js +25 -0
  97. package/dist/hooks/useDebounce.js.map +1 -0
  98. package/dist/index.css +2 -2
  99. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/memoization.cjs +38 -0
  100. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/memoization.cjs.map +1 -0
  101. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/memoization.js +34 -0
  102. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/memoization.js.map +1 -0
  103. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeBlock.cjs +31 -0
  104. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeBlock.cjs.map +1 -0
  105. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeBlock.js +29 -0
  106. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeBlock.js.map +1 -0
  107. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeOverride.cjs +82 -0
  108. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeOverride.cjs.map +1 -0
  109. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeOverride.js +80 -0
  110. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeOverride.js.map +1 -0
  111. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/PreOverride.cjs +19 -0
  112. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/PreOverride.cjs.map +1 -0
  113. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/PreOverride.js +15 -0
  114. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/PreOverride.js.map +1 -0
  115. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/defaultComponents.cjs +15 -0
  116. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/defaultComponents.cjs.map +1 -0
  117. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/defaultComponents.js +10 -0
  118. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/defaultComponents.js.map +1 -0
  119. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/withDefaults.cjs +18 -0
  120. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/withDefaults.cjs.map +1 -0
  121. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/withDefaults.js +16 -0
  122. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/withDefaults.js.map +1 -0
  123. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/primitives/MarkdownText.cjs +89 -0
  124. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/primitives/MarkdownText.cjs.map +1 -0
  125. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/primitives/MarkdownText.js +87 -0
  126. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/primitives/MarkdownText.js.map +1 -0
  127. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/AssistantClient.cjs +133 -0
  128. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/AssistantClient.cjs.map +1 -0
  129. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/AssistantClient.js +131 -0
  130. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/AssistantClient.js.map +1 -0
  131. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/EventContext.cjs +18 -0
  132. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/EventContext.cjs.map +1 -0
  133. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/EventContext.js +15 -0
  134. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/EventContext.js.map +1 -0
  135. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContext.cjs +19 -0
  136. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContext.cjs.map +1 -0
  137. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContext.js +16 -0
  138. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContext.js.map +1 -0
  139. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContextClient.cjs +21 -0
  140. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContextClient.cjs.map +1 -0
  141. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContextClient.js +19 -0
  142. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContextClient.js.map +1 -0
  143. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIClient.cjs +74 -0
  144. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIClient.cjs.map +1 -0
  145. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIClient.js +72 -0
  146. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIClient.js.map +1 -0
  147. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIContext.cjs +18 -0
  148. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIContext.cjs.map +1 -0
  149. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIContext.js +15 -0
  150. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIContext.js.map +1 -0
  151. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/Tools.cjs +56 -0
  152. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/Tools.cjs.map +1 -0
  153. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/Tools.js +54 -0
  154. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/Tools.js.map +1 -0
  155. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/util-hooks/tapLookupResources.cjs +23 -0
  156. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/util-hooks/tapLookupResources.cjs.map +1 -0
  157. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/util-hooks/tapLookupResources.js +21 -0
  158. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/util-hooks/tapLookupResources.js.map +1 -0
  159. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/ReadonlyStore.cjs +9 -0
  160. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/ReadonlyStore.cjs.map +1 -0
  161. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/ReadonlyStore.js +7 -0
  162. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/ReadonlyStore.js.map +1 -0
  163. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/AttachmentByIndexProvider.cjs +32 -0
  164. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/AttachmentByIndexProvider.cjs.map +1 -0
  165. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/AttachmentByIndexProvider.js +29 -0
  166. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/AttachmentByIndexProvider.js.map +1 -0
  167. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/MessageByIndexProvider.cjs +37 -0
  168. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/MessageByIndexProvider.cjs.map +1 -0
  169. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/MessageByIndexProvider.js +35 -0
  170. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/MessageByIndexProvider.js.map +1 -0
  171. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/PartByIndexProvider.cjs +20 -0
  172. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/PartByIndexProvider.cjs.map +1 -0
  173. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/PartByIndexProvider.js +18 -0
  174. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/PartByIndexProvider.js.map +1 -0
  175. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/TextMessagePartProvider.cjs +50 -0
  176. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/TextMessagePartProvider.cjs.map +1 -0
  177. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/TextMessagePartProvider.js +48 -0
  178. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/TextMessagePartProvider.js.map +1 -0
  179. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/ThreadViewportProvider.cjs +38 -0
  180. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/ThreadViewportProvider.cjs.map +1 -0
  181. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/ThreadViewportProvider.js +36 -0
  182. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/ThreadViewportProvider.js.map +1 -0
  183. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/AssistantApiContext.cjs +175 -0
  184. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/AssistantApiContext.cjs.map +1 -0
  185. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/AssistantApiContext.js +168 -0
  186. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/AssistantApiContext.js.map +1 -0
  187. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/ThreadViewportContext.cjs +17 -0
  188. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/ThreadViewportContext.cjs.map +1 -0
  189. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/ThreadViewportContext.js +13 -0
  190. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/ThreadViewportContext.js.map +1 -0
  191. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantEvent.cjs +22 -0
  192. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantEvent.cjs.map +1 -0
  193. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantEvent.js +20 -0
  194. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantEvent.js.map +1 -0
  195. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantState.cjs +54 -0
  196. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantState.cjs.map +1 -0
  197. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantState.js +52 -0
  198. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantState.js.map +1 -0
  199. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextHook.cjs +17 -0
  200. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextHook.cjs.map +1 -0
  201. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextHook.js +15 -0
  202. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextHook.js.map +1 -0
  203. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextStoreHook.cjs +32 -0
  204. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextStoreHook.cjs.map +1 -0
  205. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextStoreHook.js +30 -0
  206. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextStoreHook.js.map +1 -0
  207. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/stores/ThreadViewport.cjs +24 -0
  208. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/stores/ThreadViewport.cjs.map +1 -0
  209. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/stores/ThreadViewport.js +22 -0
  210. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/stores/ThreadViewport.js.map +1 -0
  211. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/devtools/DevToolsHooks.cjs +80 -0
  212. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/devtools/DevToolsHooks.cjs.map +1 -0
  213. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/devtools/DevToolsHooks.js +78 -0
  214. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/devtools/DevToolsHooks.js.map +1 -0
  215. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/internal.cjs +33 -0
  216. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/internal.cjs.map +1 -0
  217. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/internal.js +16 -0
  218. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/internal.js.map +1 -0
  219. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/AssistantRuntimeProvider.cjs +28 -0
  220. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/AssistantRuntimeProvider.cjs.map +1 -0
  221. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/AssistantRuntimeProvider.js +25 -0
  222. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/AssistantRuntimeProvider.js.map +1 -0
  223. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/RuntimeAdapter.cjs +24 -0
  224. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/RuntimeAdapter.cjs.map +1 -0
  225. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/RuntimeAdapter.js +22 -0
  226. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/RuntimeAdapter.js.map +1 -0
  227. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/AttachmentRuntimeClient.cjs +25 -0
  228. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/AttachmentRuntimeClient.cjs.map +1 -0
  229. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/AttachmentRuntimeClient.js +23 -0
  230. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/AttachmentRuntimeClient.js.map +1 -0
  231. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ComposerRuntimeClient.cjs +101 -0
  232. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ComposerRuntimeClient.cjs.map +1 -0
  233. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ComposerRuntimeClient.js +99 -0
  234. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ComposerRuntimeClient.js.map +1 -0
  235. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/EventManagerRuntimeClient.cjs +47 -0
  236. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/EventManagerRuntimeClient.cjs.map +1 -0
  237. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/EventManagerRuntimeClient.js +45 -0
  238. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/EventManagerRuntimeClient.js.map +1 -0
  239. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessagePartRuntimeClient.cjs +24 -0
  240. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessagePartRuntimeClient.cjs.map +1 -0
  241. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessagePartRuntimeClient.js +22 -0
  242. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessagePartRuntimeClient.js.map +1 -0
  243. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessageRuntimeClient.cjs +119 -0
  244. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessageRuntimeClient.cjs.map +1 -0
  245. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessageRuntimeClient.js +117 -0
  246. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessageRuntimeClient.js.map +1 -0
  247. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListItemRuntimeClient.cjs +53 -0
  248. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListItemRuntimeClient.cjs.map +1 -0
  249. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListItemRuntimeClient.js +51 -0
  250. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListItemRuntimeClient.js.map +1 -0
  251. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListRuntimeClient.cjs +79 -0
  252. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListRuntimeClient.cjs.map +1 -0
  253. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListRuntimeClient.js +77 -0
  254. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListRuntimeClient.js.map +1 -0
  255. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadRuntimeClient.cjs +122 -0
  256. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadRuntimeClient.cjs.map +1 -0
  257. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadRuntimeClient.js +120 -0
  258. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadRuntimeClient.js.map +1 -0
  259. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AssistantRuntime.cjs +49 -0
  260. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AssistantRuntime.cjs.map +1 -0
  261. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AssistantRuntime.js +47 -0
  262. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AssistantRuntime.js.map +1 -0
  263. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AttachmentRuntime.cjs +61 -0
  264. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AttachmentRuntime.cjs.map +1 -0
  265. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AttachmentRuntime.js +56 -0
  266. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AttachmentRuntime.js.map +1 -0
  267. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ComposerRuntime.cjs +227 -0
  268. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ComposerRuntime.cjs.map +1 -0
  269. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ComposerRuntime.js +223 -0
  270. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ComposerRuntime.js.map +1 -0
  271. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessagePartRuntime.cjs +67 -0
  272. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessagePartRuntime.cjs.map +1 -0
  273. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessagePartRuntime.js +65 -0
  274. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessagePartRuntime.js.map +1 -0
  275. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessageRuntime.cjs +209 -0
  276. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessageRuntime.cjs.map +1 -0
  277. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessageRuntime.js +206 -0
  278. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessageRuntime.js.map +1 -0
  279. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListItemRuntime.cjs +86 -0
  280. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListItemRuntime.cjs.map +1 -0
  281. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListItemRuntime.js +84 -0
  282. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListItemRuntime.js.map +1 -0
  283. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListRuntime.cjs +166 -0
  284. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListRuntime.cjs.map +1 -0
  285. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListRuntime.js +164 -0
  286. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListRuntime.js.map +1 -0
  287. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadRuntime.cjs +245 -0
  288. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadRuntime.cjs.map +1 -0
  289. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadRuntime.js +242 -0
  290. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadRuntime.js.map +1 -0
  291. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/BaseSubject.cjs +33 -0
  292. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/BaseSubject.cjs.map +1 -0
  293. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/BaseSubject.js +31 -0
  294. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/BaseSubject.js.map +1 -0
  295. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/EventSubscriptionSubject.cjs +39 -0
  296. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/EventSubscriptionSubject.cjs.map +1 -0
  297. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/EventSubscriptionSubject.js +37 -0
  298. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/EventSubscriptionSubject.js.map +1 -0
  299. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/LazyMemoizeSubject.cjs +39 -0
  300. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/LazyMemoizeSubject.cjs.map +1 -0
  301. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/LazyMemoizeSubject.js +37 -0
  302. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/LazyMemoizeSubject.js.map +1 -0
  303. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/NestedSubscriptionSubject.cjs +43 -0
  304. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/NestedSubscriptionSubject.cjs.map +1 -0
  305. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/NestedSubscriptionSubject.js +41 -0
  306. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/NestedSubscriptionSubject.js.map +1 -0
  307. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/SKIP_UPDATE.cjs +7 -0
  308. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/SKIP_UPDATE.cjs.map +1 -0
  309. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/SKIP_UPDATE.js +5 -0
  310. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/SKIP_UPDATE.js.map +1 -0
  311. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/ShallowMemoizeSubject.cjs +43 -0
  312. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/ShallowMemoizeSubject.cjs.map +1 -0
  313. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/ShallowMemoizeSubject.js +41 -0
  314. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/ShallowMemoizeSubject.js.map +1 -0
  315. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/shallowEqual.cjs +17 -0
  316. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/shallowEqual.cjs.map +1 -0
  317. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/shallowEqual.js +15 -0
  318. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/shallowEqual.js.map +1 -0
  319. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.cjs +13 -0
  320. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.cjs.map +1 -0
  321. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.js +11 -0
  322. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.js.map +1 -0
  323. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.cjs +197 -0
  324. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.cjs.map +1 -0
  325. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.js +195 -0
  326. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.js.map +1 -0
  327. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.cjs +165 -0
  328. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.cjs.map +1 -0
  329. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.js +163 -0
  330. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.js.map +1 -0
  331. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.cjs +50 -0
  332. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.cjs.map +1 -0
  333. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.js +48 -0
  334. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.js.map +1 -0
  335. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.cjs +43 -0
  336. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.cjs.map +1 -0
  337. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.js +41 -0
  338. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.js.map +1 -0
  339. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.cjs +17 -0
  340. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.cjs.map +1 -0
  341. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.js +15 -0
  342. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.js.map +1 -0
  343. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.cjs +163 -0
  344. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.cjs.map +1 -0
  345. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.js +161 -0
  346. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.js.map +1 -0
  347. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.cjs +27 -0
  348. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.cjs.map +1 -0
  349. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.js +25 -0
  350. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.js.map +1 -0
  351. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.cjs +175 -0
  352. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.cjs.map +1 -0
  353. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.js +173 -0
  354. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.js.map +1 -0
  355. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.cjs +249 -0
  356. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.cjs.map +1 -0
  357. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.js +246 -0
  358. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.js.map +1 -0
  359. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.cjs +17 -0
  360. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.cjs.map +1 -0
  361. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.js +15 -0
  362. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.js.map +1 -0
  363. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.cjs +137 -0
  364. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.cjs.map +1 -0
  365. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.js +135 -0
  366. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.js.map +1 -0
  367. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/auto-status.cjs +52 -0
  368. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/auto-status.cjs.map +1 -0
  369. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/auto-status.js +49 -0
  370. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/auto-status.js.map +1 -0
  371. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.cjs +12 -0
  372. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.cjs.map +1 -0
  373. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.js +9 -0
  374. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.js.map +1 -0
  375. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.cjs +22 -0
  376. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.cjs.map +1 -0
  377. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.js +20 -0
  378. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.js.map +1 -0
  379. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.cjs +26 -0
  380. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.cjs.map +1 -0
  381. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.js +24 -0
  382. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.js.map +1 -0
  383. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.cjs +38 -0
  384. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.cjs.map +1 -0
  385. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.js +36 -0
  386. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.js.map +1 -0
  387. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/utils/MessageRepository.cjs +381 -0
  388. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/utils/MessageRepository.cjs.map +1 -0
  389. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/utils/MessageRepository.js +378 -0
  390. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/utils/MessageRepository.js.map +1 -0
  391. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/util-hooks/tapSubscribable.cjs +19 -0
  392. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/util-hooks/tapSubscribable.cjs.map +1 -0
  393. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/util-hooks/tapSubscribable.js +17 -0
  394. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/util-hooks/tapSubscribable.js.map +1 -0
  395. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/ModelContextTypes.cjs +45 -0
  396. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/ModelContextTypes.cjs.map +1 -0
  397. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/ModelContextTypes.js +43 -0
  398. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/ModelContextTypes.js.map +1 -0
  399. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/makeAssistantToolUI.cjs +15 -0
  400. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/makeAssistantToolUI.cjs.map +1 -0
  401. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/makeAssistantToolUI.js +13 -0
  402. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/makeAssistantToolUI.js.map +1 -0
  403. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/toolbox.cjs +9 -0
  404. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/toolbox.cjs.map +1 -0
  405. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/toolbox.js +6 -0
  406. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/toolbox.js.map +1 -0
  407. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/useAssistantToolUI.cjs +15 -0
  408. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/useAssistantToolUI.cjs.map +1 -0
  409. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/useAssistantToolUI.js +13 -0
  410. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/useAssistantToolUI.js.map +1 -0
  411. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarCopy.cjs +50 -0
  412. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarCopy.cjs.map +1 -0
  413. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarCopy.js +48 -0
  414. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarCopy.js.map +1 -0
  415. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarReload.cjs +25 -0
  416. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarReload.cjs.map +1 -0
  417. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarReload.js +23 -0
  418. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarReload.js.map +1 -0
  419. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarRoot.cjs +27 -0
  420. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarRoot.cjs.map +1 -0
  421. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarRoot.js +25 -0
  422. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarRoot.js.map +1 -0
  423. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/useActionBarFloatStatus.cjs +29 -0
  424. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/useActionBarFloatStatus.cjs.map +1 -0
  425. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/useActionBarFloatStatus.js +26 -0
  426. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/useActionBarFloatStatus.js.map +1 -0
  427. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentName.cjs +13 -0
  428. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentName.cjs.map +1 -0
  429. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentName.js +11 -0
  430. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentName.js.map +1 -0
  431. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRemove.cjs +20 -0
  432. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRemove.cjs.map +1 -0
  433. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRemove.js +18 -0
  434. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRemove.js.map +1 -0
  435. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRoot.cjs +13 -0
  436. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRoot.cjs.map +1 -0
  437. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRoot.js +11 -0
  438. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRoot.js.map +1 -0
  439. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerCount.cjs +17 -0
  440. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerCount.cjs.map +1 -0
  441. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerCount.js +15 -0
  442. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerCount.js.map +1 -0
  443. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNext.cjs +29 -0
  444. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNext.cjs.map +1 -0
  445. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNext.js +27 -0
  446. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -0
  447. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNumber.cjs +17 -0
  448. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNumber.cjs.map +1 -0
  449. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNumber.js +15 -0
  450. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNumber.js.map +1 -0
  451. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerPrevious.cjs +29 -0
  452. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerPrevious.cjs.map +1 -0
  453. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerPrevious.js +27 -0
  454. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -0
  455. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerRoot.cjs +14 -0
  456. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerRoot.cjs.map +1 -0
  457. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerRoot.js +12 -0
  458. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerRoot.js.map +1 -0
  459. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAddAttachment.cjs +48 -0
  460. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAddAttachment.cjs.map +1 -0
  461. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAddAttachment.js +46 -0
  462. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAddAttachment.js.map +1 -0
  463. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAttachments.cjs +56 -0
  464. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAttachments.cjs.map +1 -0
  465. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAttachments.js +53 -0
  466. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAttachments.js.map +1 -0
  467. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerCancel.cjs +23 -0
  468. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerCancel.cjs.map +1 -0
  469. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerCancel.js +21 -0
  470. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerCancel.js.map +1 -0
  471. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerInput.cjs +118 -0
  472. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerInput.cjs.map +1 -0
  473. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerInput.js +116 -0
  474. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerInput.js.map +1 -0
  475. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerRoot.cjs +28 -0
  476. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerRoot.cjs.map +1 -0
  477. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerRoot.js +26 -0
  478. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerRoot.js.map +1 -0
  479. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerSend.cjs +26 -0
  480. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerSend.cjs.map +1 -0
  481. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerSend.js +23 -0
  482. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerSend.js.map +1 -0
  483. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorMessage.cjs +18 -0
  484. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorMessage.cjs.map +1 -0
  485. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorMessage.js +16 -0
  486. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorMessage.js.map +1 -0
  487. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorRoot.cjs +13 -0
  488. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorRoot.cjs.map +1 -0
  489. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorRoot.js +11 -0
  490. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorRoot.js.map +1 -0
  491. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageAttachments.cjs +57 -0
  492. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageAttachments.cjs.map +1 -0
  493. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageAttachments.js +54 -0
  494. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageAttachments.js.map +1 -0
  495. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageError.cjs +15 -0
  496. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageError.cjs.map +1 -0
  497. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageError.js +13 -0
  498. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageError.js.map +1 -0
  499. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageIf.cjs +48 -0
  500. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageIf.cjs.map +1 -0
  501. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageIf.js +46 -0
  502. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageIf.js.map +1 -0
  503. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageParts.cjs +253 -0
  504. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageParts.cjs.map +1 -0
  505. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageParts.js +250 -0
  506. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageParts.js.map +1 -0
  507. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageRoot.cjs +43 -0
  508. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageRoot.cjs.map +1 -0
  509. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageRoot.js +41 -0
  510. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageRoot.js.map +1 -0
  511. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartImage.cjs +15 -0
  512. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartImage.cjs.map +1 -0
  513. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartImage.js +13 -0
  514. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartImage.js.map +1 -0
  515. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartInProgress.cjs +14 -0
  516. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartInProgress.cjs.map +1 -0
  517. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartInProgress.js +12 -0
  518. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartInProgress.js.map +1 -0
  519. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartText.cjs +15 -0
  520. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartText.cjs.map +1 -0
  521. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartText.js +13 -0
  522. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartText.js.map +1 -0
  523. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartImage.cjs +17 -0
  524. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartImage.cjs.map +1 -0
  525. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartImage.js +15 -0
  526. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartImage.js.map +1 -0
  527. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartText.cjs +17 -0
  528. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartText.cjs.map +1 -0
  529. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartText.js +15 -0
  530. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartText.js.map +1 -0
  531. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/reasoning/useScrollLock.cjs +49 -0
  532. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/reasoning/useScrollLock.cjs.map +1 -0
  533. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/reasoning/useScrollLock.js +47 -0
  534. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/reasoning/useScrollLock.js.map +1 -0
  535. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadIf.cjs +27 -0
  536. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadIf.cjs.map +1 -0
  537. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadIf.js +25 -0
  538. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadIf.js.map +1 -0
  539. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadMessages.cjs +82 -0
  540. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadMessages.cjs.map +1 -0
  541. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadMessages.js +78 -0
  542. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadMessages.js.map +1 -0
  543. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadRoot.cjs +13 -0
  544. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadRoot.cjs.map +1 -0
  545. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadRoot.js +11 -0
  546. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadRoot.js.map +1 -0
  547. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadScrollToBottom.cjs +22 -0
  548. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadScrollToBottom.cjs.map +1 -0
  549. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadScrollToBottom.js +20 -0
  550. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadScrollToBottom.js.map +1 -0
  551. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadViewport.cjs +24 -0
  552. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadViewport.cjs.map +1 -0
  553. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadViewport.js +22 -0
  554. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadViewport.js.map +1 -0
  555. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/useThreadViewportAutoScroll.cjs +66 -0
  556. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/useThreadViewportAutoScroll.cjs.map +1 -0
  557. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/useThreadViewportAutoScroll.js +64 -0
  558. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/useThreadViewportAutoScroll.js.map +1 -0
  559. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/types/EventTypes.cjs +23 -0
  560. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/types/EventTypes.cjs.map +1 -0
  561. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/types/EventTypes.js +20 -0
  562. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/types/EventTypes.js.map +1 -0
  563. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/CompositeContextProvider.cjs +34 -0
  564. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/CompositeContextProvider.cjs.map +1 -0
  565. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/CompositeContextProvider.js +32 -0
  566. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/CompositeContextProvider.js.map +1 -0
  567. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/createActionButton.cjs +37 -0
  568. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/createActionButton.cjs.map +1 -0
  569. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/createActionButton.js +35 -0
  570. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/createActionButton.js.map +1 -0
  571. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/getThreadMessageText.cjs +12 -0
  572. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/getThreadMessageText.cjs.map +1 -0
  573. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/getThreadMessageText.js +10 -0
  574. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/getThreadMessageText.js.map +1 -0
  575. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useManagedRef.cjs +23 -0
  576. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useManagedRef.cjs.map +1 -0
  577. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useManagedRef.js +21 -0
  578. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useManagedRef.js.map +1 -0
  579. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnResizeContent.cjs +36 -0
  580. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnResizeContent.cjs.map +1 -0
  581. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnResizeContent.js +34 -0
  582. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnResizeContent.js.map +1 -0
  583. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnScrollToBottom.cjs +16 -0
  584. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnScrollToBottom.cjs.map +1 -0
  585. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnScrollToBottom.js +14 -0
  586. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnScrollToBottom.js.map +1 -0
  587. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/idUtils.cjs +15 -0
  588. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/idUtils.cjs.map +1 -0
  589. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/idUtils.js +12 -0
  590. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/idUtils.js.map +1 -0
  591. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/SmoothContext.cjs +47 -0
  592. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/SmoothContext.cjs.map +1 -0
  593. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/SmoothContext.js +42 -0
  594. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/SmoothContext.js.map +1 -0
  595. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/useSmooth.cjs +110 -0
  596. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/useSmooth.cjs.map +1 -0
  597. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/useSmooth.js +108 -0
  598. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/useSmooth.js.map +1 -0
  599. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/derived-scopes.cjs +73 -0
  600. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/derived-scopes.cjs.map +1 -0
  601. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/derived-scopes.js +70 -0
  602. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/derived-scopes.js.map +1 -0
  603. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/store.cjs +23 -0
  604. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/store.cjs.map +1 -0
  605. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/store.js +21 -0
  606. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/store.js.map +1 -0
  607. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/tap-api.cjs +56 -0
  608. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/tap-api.cjs.map +1 -0
  609. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/tap-api.js +54 -0
  610. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/tap-api.js.map +1 -0
  611. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@17.0.2_react@17.0.2/node_modules/@radix-ui/react-direction/dist/index.cjs +33 -0
  612. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@17.0.2_react@17.0.2/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -0
  613. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@17.0.2_react@17.0.2/node_modules/@radix-ui/react-direction/dist/index.js +12 -0
  614. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@17.0.2_react@17.0.2/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  615. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17_dxnrbz42ochhym3lfihkvwh43e/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +270 -0
  616. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17_dxnrbz42ochhym3lfihkvwh43e/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -0
  617. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17_dxnrbz42ochhym3lfihkvwh43e/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +235 -0
  618. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17_dxnrbz42ochhym3lfihkvwh43e/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  619. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/@radix-ui/react-menu/dist/index.cjs +840 -0
  620. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -0
  621. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/@radix-ui/react-menu/dist/index.js +791 -0
  622. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  623. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.11_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17._unzgkwd6mofnqpd3ix5vp6vba4/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +249 -0
  624. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.11_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17._unzgkwd6mofnqpd3ix5vp6vba4/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -0
  625. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.11_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17._unzgkwd6mofnqpd3ix5vp6vba4/node_modules/@radix-ui/react-roving-focus/dist/index.js +224 -0
  626. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.11_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17._unzgkwd6mofnqpd3ix5vp6vba4/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  627. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs +1 -1
  628. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +1 -1
  629. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs +41 -0
  630. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs.map +1 -1
  631. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +41 -1
  632. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js.map +1 -1
  633. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs +50 -0
  634. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs.map +1 -0
  635. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.js +48 -0
  636. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
  637. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs +427 -0
  638. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs.map +1 -0
  639. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.js +423 -0
  640. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.js.map +1 -0
  641. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs +11 -0
  642. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +1 -0
  643. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.js +9 -0
  644. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
  645. package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.cjs +328 -0
  646. package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.cjs.map +1 -0
  647. package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js +326 -0
  648. package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js.map +1 -0
  649. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.cjs +92 -0
  650. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.cjs.map +1 -0
  651. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.js +90 -0
  652. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.js.map +1 -0
  653. package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.cjs +671 -0
  654. package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.cjs.map +1 -0
  655. package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.js +669 -0
  656. package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.js.map +1 -0
  657. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/index.cjs +571 -0
  658. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/index.cjs.map +1 -0
  659. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/index.js +569 -0
  660. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/index.js.map +1 -0
  661. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/schema.cjs +214 -0
  662. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/schema.cjs.map +1 -0
  663. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/schema.js +212 -0
  664. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/schema.js.map +1 -0
  665. package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.0/node_modules/hast-util-to-parse5/lib/index.cjs +328 -0
  666. package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.0/node_modules/hast-util-to-parse5/lib/index.cjs.map +1 -0
  667. package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.0/node_modules/hast-util-to-parse5/lib/index.js +326 -0
  668. package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.0/node_modules/hast-util-to-parse5/lib/index.js.map +1 -0
  669. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.cjs +315 -0
  670. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.cjs.map +1 -0
  671. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js +313 -0
  672. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js.map +1 -0
  673. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.cjs +26 -0
  674. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.cjs.map +1 -0
  675. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js +23 -0
  676. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js.map +1 -0
  677. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +51 -0
  678. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.map +1 -0
  679. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +49 -0
  680. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js.map +1 -0
  681. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/download.cjs +24 -0
  682. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/download.cjs.map +1 -0
  683. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/download.js +19 -0
  684. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/download.js.map +1 -0
  685. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/ellipsis.cjs +24 -0
  686. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/ellipsis.cjs.map +1 -0
  687. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/ellipsis.js +19 -0
  688. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/ellipsis.js.map +1 -0
  689. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/pen.cjs +28 -0
  690. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/pen.cjs.map +1 -0
  691. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/pen.js +23 -0
  692. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/pen.js.map +1 -0
  693. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/plus.cjs +23 -0
  694. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/plus.cjs.map +1 -0
  695. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/plus.js +18 -0
  696. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/plus.js.map +1 -0
  697. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/trash-2.cjs +26 -0
  698. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/trash-2.cjs.map +1 -0
  699. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/trash-2.js +21 -0
  700. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/trash-2.js.map +1 -0
  701. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.cjs +121 -0
  702. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.cjs.map +1 -0
  703. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.js +118 -0
  704. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.js.map +1 -0
  705. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.cjs +66 -0
  706. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.cjs.map +1 -0
  707. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js +66 -0
  708. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js.map +1 -0
  709. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.cjs +240 -0
  710. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.cjs.map +1 -0
  711. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js +232 -0
  712. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js.map +1 -0
  713. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.cjs +527 -0
  714. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.cjs.map +1 -0
  715. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js +523 -0
  716. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js.map +1 -0
  717. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.cjs +25 -0
  718. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.cjs.map +1 -0
  719. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js +23 -0
  720. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js.map +1 -0
  721. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.cjs +73 -0
  722. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.cjs.map +1 -0
  723. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js +65 -0
  724. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js.map +1 -0
  725. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.cjs +115 -0
  726. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.cjs.map +1 -0
  727. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.js +113 -0
  728. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.js.map +1 -0
  729. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.cjs +3235 -0
  730. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.cjs.map +1 -0
  731. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js +3233 -0
  732. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js.map +1 -0
  733. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.cjs +330 -0
  734. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.cjs.map +1 -0
  735. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.js +328 -0
  736. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.js.map +1 -0
  737. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.cjs +26 -0
  738. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.cjs.map +1 -0
  739. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js +24 -0
  740. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js.map +1 -0
  741. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.cjs +2717 -0
  742. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.cjs.map +1 -0
  743. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js +2714 -0
  744. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js.map +1 -0
  745. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs +202 -0
  746. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs.map +1 -0
  747. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.js +200 -0
  748. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.js.map +1 -0
  749. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.cjs +179 -0
  750. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.cjs.map +1 -0
  751. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.js +177 -0
  752. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.js.map +1 -0
  753. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/index.cjs +21 -0
  754. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/index.cjs.map +1 -0
  755. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/index.js +18 -0
  756. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/index.js.map +1 -0
  757. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/aria.cjs +64 -0
  758. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/aria.cjs.map +1 -0
  759. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/aria.js +62 -0
  760. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/aria.js.map +1 -0
  761. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/find.cjs +74 -0
  762. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/find.cjs.map +1 -0
  763. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/find.js +72 -0
  764. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/find.js.map +1 -0
  765. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/html.cjs +320 -0
  766. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/html.cjs.map +1 -0
  767. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/html.js +318 -0
  768. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/html.js.map +1 -0
  769. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/normalize.cjs +12 -0
  770. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/normalize.cjs.map +1 -0
  771. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/normalize.js +10 -0
  772. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/normalize.js.map +1 -0
  773. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/svg.cjs +566 -0
  774. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/svg.cjs.map +1 -0
  775. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/svg.js +564 -0
  776. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/svg.js.map +1 -0
  777. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs +15 -0
  778. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +1 -0
  779. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-insensitive-transform.js +13 -0
  780. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
  781. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs +13 -0
  782. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +1 -0
  783. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-sensitive-transform.js +11 -0
  784. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
  785. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/create.cjs +64 -0
  786. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/create.cjs.map +1 -0
  787. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/create.js +62 -0
  788. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/create.js.map +1 -0
  789. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/defined-info.cjs +49 -0
  790. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/defined-info.cjs.map +1 -0
  791. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/defined-info.js +47 -0
  792. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/defined-info.js.map +1 -0
  793. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/info.cjs +30 -0
  794. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/info.cjs.map +1 -0
  795. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/info.js +28 -0
  796. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/info.js.map +1 -0
  797. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/merge.cjs +32 -0
  798. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/merge.cjs.map +1 -0
  799. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/merge.js +30 -0
  800. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/merge.js.map +1 -0
  801. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/schema.cjs +33 -0
  802. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/schema.cjs.map +1 -0
  803. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/schema.js +31 -0
  804. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/schema.js.map +1 -0
  805. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/types.cjs +24 -0
  806. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/types.cjs.map +1 -0
  807. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/types.js +16 -0
  808. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/types.js.map +1 -0
  809. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xlink.cjs +22 -0
  810. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xlink.cjs.map +1 -0
  811. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xlink.js +20 -0
  812. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xlink.js.map +1 -0
  813. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xml.cjs +14 -0
  814. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xml.cjs.map +1 -0
  815. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xml.js +12 -0
  816. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xml.js.map +1 -0
  817. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xmlns.cjs +14 -0
  818. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xmlns.cjs.map +1 -0
  819. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xmlns.js +12 -0
  820. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xmlns.js.map +1 -0
  821. package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.cjs +37 -0
  822. package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.cjs.map +1 -0
  823. package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js +35 -0
  824. package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js.map +1 -0
  825. package/dist/node_modules/.pnpm/rehype-sanitize@6.0.0/node_modules/rehype-sanitize/lib/index.cjs +34 -0
  826. package/dist/node_modules/.pnpm/rehype-sanitize@6.0.0/node_modules/rehype-sanitize/lib/index.cjs.map +1 -0
  827. package/dist/node_modules/.pnpm/rehype-sanitize@6.0.0/node_modules/rehype-sanitize/lib/index.js +32 -0
  828. package/dist/node_modules/.pnpm/rehype-sanitize@6.0.0/node_modules/rehype-sanitize/lib/index.js.map +1 -0
  829. package/dist/node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.cjs +1 -1
  830. package/dist/node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.js +1 -1
  831. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs +5 -0
  832. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs.map +1 -1
  833. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +5 -1
  834. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js.map +1 -1
  835. package/dist/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.cjs +1 -1
  836. package/dist/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.js +1 -1
  837. package/dist/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.cjs +1 -1
  838. package/dist/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.js +1 -1
  839. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@17.0.2/node_modules/use-sync-external-store/shim/index.cjs +1 -1
  840. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@17.0.2/node_modules/use-sync-external-store/shim/index.js +1 -1
  841. package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.cjs +98 -0
  842. package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.cjs.map +1 -0
  843. package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.js +96 -0
  844. package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.js.map +1 -0
  845. package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.cjs +18 -0
  846. package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.cjs.map +1 -0
  847. package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.js +16 -0
  848. package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.js.map +1 -0
  849. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react/shallow.cjs +15 -0
  850. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react/shallow.cjs.map +1 -0
  851. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react/shallow.js +13 -0
  852. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react/shallow.js.map +1 -0
  853. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react.cjs +26 -0
  854. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react.cjs.map +1 -0
  855. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react.js +23 -0
  856. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react.js.map +1 -0
  857. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla/shallow.cjs +58 -0
  858. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla/shallow.cjs.map +1 -0
  859. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla/shallow.js +56 -0
  860. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla/shallow.js.map +1 -0
  861. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla.cjs +27 -0
  862. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla.cjs.map +1 -0
  863. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla.js +25 -0
  864. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla.js.map +1 -0
  865. package/dist/packages/core/dist/index.cjs +13 -6
  866. package/dist/packages/core/dist/index.cjs.map +1 -1
  867. package/dist/packages/core/dist/index.js +13 -6
  868. package/dist/packages/core/dist/index.js.map +1 -1
  869. package/dist/plugins/getAdkConfig.cjs +4 -0
  870. package/dist/plugins/getAdkConfig.cjs.map +1 -1
  871. package/dist/plugins/getAdkConfig.d.ts.map +1 -1
  872. package/dist/plugins/getAdkConfig.js +4 -0
  873. package/dist/plugins/getAdkConfig.js.map +1 -1
  874. package/dist/utils/agentStorage.cjs +81 -0
  875. package/dist/utils/agentStorage.cjs.map +1 -0
  876. package/dist/utils/agentStorage.js +79 -0
  877. package/dist/utils/agentStorage.js.map +1 -0
  878. package/package.json +2 -1
@@ -0,0 +1,3233 @@
1
+ import { Tokenizer, TokenizerMode } from '../tokenizer/index.js';
2
+ import { OpenElementStack } from './open-element-stack.js';
3
+ import { FormattingElementList, EntryType } from './formatting-element-list.js';
4
+ import { defaultTreeAdapter } from '../tree-adapters/default.js';
5
+ import { getDocumentMode, isConforming } from '../common/doctype.js';
6
+ import { isIntegrationPoint, causesExit, adjustTokenMathMLAttrs, adjustTokenSVGTagName, adjustTokenSVGAttrs, adjustTokenXMLAttrs } from '../common/foreign-content.js';
7
+ import { ERR } from '../common/error-codes.js';
8
+ import { CODE_POINTS, REPLACEMENT_CHARACTER } from '../common/unicode.js';
9
+ import { TAG_ID, getTagID, TAG_NAMES, NS, SPECIAL_ELEMENTS, DOCUMENT_MODE, NUMBERED_HEADERS, ATTRS } from '../common/html.js';
10
+ import { TokenType, getTokenAttr } from '../common/token.js';
11
+
12
+ //Misc constants
13
+ const HIDDEN_INPUT_TYPE = 'hidden';
14
+ //Adoption agency loops iteration count
15
+ const AA_OUTER_LOOP_ITER = 8;
16
+ const AA_INNER_LOOP_ITER = 3;
17
+ //Insertion modes
18
+ var InsertionMode;
19
+ (function (InsertionMode) {
20
+ InsertionMode[InsertionMode["INITIAL"] = 0] = "INITIAL";
21
+ InsertionMode[InsertionMode["BEFORE_HTML"] = 1] = "BEFORE_HTML";
22
+ InsertionMode[InsertionMode["BEFORE_HEAD"] = 2] = "BEFORE_HEAD";
23
+ InsertionMode[InsertionMode["IN_HEAD"] = 3] = "IN_HEAD";
24
+ InsertionMode[InsertionMode["IN_HEAD_NO_SCRIPT"] = 4] = "IN_HEAD_NO_SCRIPT";
25
+ InsertionMode[InsertionMode["AFTER_HEAD"] = 5] = "AFTER_HEAD";
26
+ InsertionMode[InsertionMode["IN_BODY"] = 6] = "IN_BODY";
27
+ InsertionMode[InsertionMode["TEXT"] = 7] = "TEXT";
28
+ InsertionMode[InsertionMode["IN_TABLE"] = 8] = "IN_TABLE";
29
+ InsertionMode[InsertionMode["IN_TABLE_TEXT"] = 9] = "IN_TABLE_TEXT";
30
+ InsertionMode[InsertionMode["IN_CAPTION"] = 10] = "IN_CAPTION";
31
+ InsertionMode[InsertionMode["IN_COLUMN_GROUP"] = 11] = "IN_COLUMN_GROUP";
32
+ InsertionMode[InsertionMode["IN_TABLE_BODY"] = 12] = "IN_TABLE_BODY";
33
+ InsertionMode[InsertionMode["IN_ROW"] = 13] = "IN_ROW";
34
+ InsertionMode[InsertionMode["IN_CELL"] = 14] = "IN_CELL";
35
+ InsertionMode[InsertionMode["IN_SELECT"] = 15] = "IN_SELECT";
36
+ InsertionMode[InsertionMode["IN_SELECT_IN_TABLE"] = 16] = "IN_SELECT_IN_TABLE";
37
+ InsertionMode[InsertionMode["IN_TEMPLATE"] = 17] = "IN_TEMPLATE";
38
+ InsertionMode[InsertionMode["AFTER_BODY"] = 18] = "AFTER_BODY";
39
+ InsertionMode[InsertionMode["IN_FRAMESET"] = 19] = "IN_FRAMESET";
40
+ InsertionMode[InsertionMode["AFTER_FRAMESET"] = 20] = "AFTER_FRAMESET";
41
+ InsertionMode[InsertionMode["AFTER_AFTER_BODY"] = 21] = "AFTER_AFTER_BODY";
42
+ InsertionMode[InsertionMode["AFTER_AFTER_FRAMESET"] = 22] = "AFTER_AFTER_FRAMESET";
43
+ })(InsertionMode || (InsertionMode = {}));
44
+ const BASE_LOC = {
45
+ startLine: -1,
46
+ startCol: -1,
47
+ startOffset: -1,
48
+ endLine: -1,
49
+ endCol: -1,
50
+ endOffset: -1,
51
+ };
52
+ const TABLE_STRUCTURE_TAGS = new Set([TAG_ID.TABLE, TAG_ID.TBODY, TAG_ID.TFOOT, TAG_ID.THEAD, TAG_ID.TR]);
53
+ const defaultParserOptions = {
54
+ scriptingEnabled: true,
55
+ sourceCodeLocationInfo: false,
56
+ treeAdapter: defaultTreeAdapter,
57
+ onParseError: null,
58
+ };
59
+ //Parser
60
+ class Parser {
61
+ constructor(options, document,
62
+ /** @internal */
63
+ fragmentContext = null,
64
+ /** @internal */
65
+ scriptHandler = null) {
66
+ this.fragmentContext = fragmentContext;
67
+ this.scriptHandler = scriptHandler;
68
+ this.currentToken = null;
69
+ this.stopped = false;
70
+ /** @internal */
71
+ this.insertionMode = InsertionMode.INITIAL;
72
+ /** @internal */
73
+ this.originalInsertionMode = InsertionMode.INITIAL;
74
+ /** @internal */
75
+ this.headElement = null;
76
+ /** @internal */
77
+ this.formElement = null;
78
+ /** Indicates that the current node is not an element in the HTML namespace */
79
+ this.currentNotInHTML = false;
80
+ /**
81
+ * The template insertion mode stack is maintained from the left.
82
+ * Ie. the topmost element will always have index 0.
83
+ *
84
+ * @internal
85
+ */
86
+ this.tmplInsertionModeStack = [];
87
+ /** @internal */
88
+ this.pendingCharacterTokens = [];
89
+ /** @internal */
90
+ this.hasNonWhitespacePendingCharacterToken = false;
91
+ /** @internal */
92
+ this.framesetOk = true;
93
+ /** @internal */
94
+ this.skipNextNewLine = false;
95
+ /** @internal */
96
+ this.fosterParentingEnabled = false;
97
+ this.options = {
98
+ ...defaultParserOptions,
99
+ ...options,
100
+ };
101
+ this.treeAdapter = this.options.treeAdapter;
102
+ this.onParseError = this.options.onParseError;
103
+ // Always enable location info if we report parse errors.
104
+ if (this.onParseError) {
105
+ this.options.sourceCodeLocationInfo = true;
106
+ }
107
+ this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument();
108
+ this.tokenizer = new Tokenizer(this.options, this);
109
+ this.activeFormattingElements = new FormattingElementList(this.treeAdapter);
110
+ this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : TAG_ID.UNKNOWN;
111
+ this._setContextModes(fragmentContext !== null && fragmentContext !== void 0 ? fragmentContext : this.document, this.fragmentContextID);
112
+ this.openElements = new OpenElementStack(this.document, this.treeAdapter, this);
113
+ }
114
+ // API
115
+ static parse(html, options) {
116
+ const parser = new this(options);
117
+ parser.tokenizer.write(html, true);
118
+ return parser.document;
119
+ }
120
+ static getFragmentParser(fragmentContext, options) {
121
+ const opts = {
122
+ ...defaultParserOptions,
123
+ ...options,
124
+ };
125
+ //NOTE: use a <template> element as the fragment context if no context element was provided,
126
+ //so we will parse in a "forgiving" manner
127
+ fragmentContext !== null && fragmentContext !== void 0 ? fragmentContext : (fragmentContext = opts.treeAdapter.createElement(TAG_NAMES.TEMPLATE, NS.HTML, []));
128
+ //NOTE: create a fake element which will be used as the `document` for fragment parsing.
129
+ //This is important for jsdom, where a new `document` cannot be created. This led to
130
+ //fragment parsing messing with the main `document`.
131
+ const documentMock = opts.treeAdapter.createElement('documentmock', NS.HTML, []);
132
+ const parser = new this(opts, documentMock, fragmentContext);
133
+ if (parser.fragmentContextID === TAG_ID.TEMPLATE) {
134
+ parser.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);
135
+ }
136
+ parser._initTokenizerForFragmentParsing();
137
+ parser._insertFakeRootElement();
138
+ parser._resetInsertionMode();
139
+ parser._findFormInFragmentContext();
140
+ return parser;
141
+ }
142
+ getFragment() {
143
+ const rootElement = this.treeAdapter.getFirstChild(this.document);
144
+ const fragment = this.treeAdapter.createDocumentFragment();
145
+ this._adoptNodes(rootElement, fragment);
146
+ return fragment;
147
+ }
148
+ //Errors
149
+ /** @internal */
150
+ _err(token, code, beforeToken) {
151
+ var _a;
152
+ if (!this.onParseError)
153
+ return;
154
+ const loc = (_a = token.location) !== null && _a !== void 0 ? _a : BASE_LOC;
155
+ const err = {
156
+ code,
157
+ startLine: loc.startLine,
158
+ startCol: loc.startCol,
159
+ startOffset: loc.startOffset,
160
+ endLine: beforeToken ? loc.startLine : loc.endLine,
161
+ endCol: beforeToken ? loc.startCol : loc.endCol,
162
+ endOffset: beforeToken ? loc.startOffset : loc.endOffset,
163
+ };
164
+ this.onParseError(err);
165
+ }
166
+ //Stack events
167
+ /** @internal */
168
+ onItemPush(node, tid, isTop) {
169
+ var _a, _b;
170
+ (_b = (_a = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a, node);
171
+ if (isTop && this.openElements.stackTop > 0)
172
+ this._setContextModes(node, tid);
173
+ }
174
+ /** @internal */
175
+ onItemPop(node, isTop) {
176
+ var _a, _b;
177
+ if (this.options.sourceCodeLocationInfo) {
178
+ this._setEndLocation(node, this.currentToken);
179
+ }
180
+ (_b = (_a = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a, node, this.openElements.current);
181
+ if (isTop) {
182
+ let current;
183
+ let currentTagId;
184
+ if (this.openElements.stackTop === 0 && this.fragmentContext) {
185
+ current = this.fragmentContext;
186
+ currentTagId = this.fragmentContextID;
187
+ }
188
+ else {
189
+ ({ current, currentTagId } = this.openElements);
190
+ }
191
+ this._setContextModes(current, currentTagId);
192
+ }
193
+ }
194
+ _setContextModes(current, tid) {
195
+ const isHTML = current === this.document || (current && this.treeAdapter.getNamespaceURI(current) === NS.HTML);
196
+ this.currentNotInHTML = !isHTML;
197
+ this.tokenizer.inForeignNode =
198
+ !isHTML && current !== undefined && tid !== undefined && !this._isIntegrationPoint(tid, current);
199
+ }
200
+ /** @protected */
201
+ _switchToTextParsing(currentToken, nextTokenizerState) {
202
+ this._insertElement(currentToken, NS.HTML);
203
+ this.tokenizer.state = nextTokenizerState;
204
+ this.originalInsertionMode = this.insertionMode;
205
+ this.insertionMode = InsertionMode.TEXT;
206
+ }
207
+ switchToPlaintextParsing() {
208
+ this.insertionMode = InsertionMode.TEXT;
209
+ this.originalInsertionMode = InsertionMode.IN_BODY;
210
+ this.tokenizer.state = TokenizerMode.PLAINTEXT;
211
+ }
212
+ //Fragment parsing
213
+ /** @protected */
214
+ _getAdjustedCurrentElement() {
215
+ return this.openElements.stackTop === 0 && this.fragmentContext
216
+ ? this.fragmentContext
217
+ : this.openElements.current;
218
+ }
219
+ /** @protected */
220
+ _findFormInFragmentContext() {
221
+ let node = this.fragmentContext;
222
+ while (node) {
223
+ if (this.treeAdapter.getTagName(node) === TAG_NAMES.FORM) {
224
+ this.formElement = node;
225
+ break;
226
+ }
227
+ node = this.treeAdapter.getParentNode(node);
228
+ }
229
+ }
230
+ _initTokenizerForFragmentParsing() {
231
+ if (!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== NS.HTML) {
232
+ return;
233
+ }
234
+ switch (this.fragmentContextID) {
235
+ case TAG_ID.TITLE:
236
+ case TAG_ID.TEXTAREA: {
237
+ this.tokenizer.state = TokenizerMode.RCDATA;
238
+ break;
239
+ }
240
+ case TAG_ID.STYLE:
241
+ case TAG_ID.XMP:
242
+ case TAG_ID.IFRAME:
243
+ case TAG_ID.NOEMBED:
244
+ case TAG_ID.NOFRAMES:
245
+ case TAG_ID.NOSCRIPT: {
246
+ this.tokenizer.state = TokenizerMode.RAWTEXT;
247
+ break;
248
+ }
249
+ case TAG_ID.SCRIPT: {
250
+ this.tokenizer.state = TokenizerMode.SCRIPT_DATA;
251
+ break;
252
+ }
253
+ case TAG_ID.PLAINTEXT: {
254
+ this.tokenizer.state = TokenizerMode.PLAINTEXT;
255
+ break;
256
+ }
257
+ // Do nothing
258
+ }
259
+ }
260
+ //Tree mutation
261
+ /** @protected */
262
+ _setDocumentType(token) {
263
+ const name = token.name || '';
264
+ const publicId = token.publicId || '';
265
+ const systemId = token.systemId || '';
266
+ this.treeAdapter.setDocumentType(this.document, name, publicId, systemId);
267
+ if (token.location) {
268
+ const documentChildren = this.treeAdapter.getChildNodes(this.document);
269
+ const docTypeNode = documentChildren.find((node) => this.treeAdapter.isDocumentTypeNode(node));
270
+ if (docTypeNode) {
271
+ this.treeAdapter.setNodeSourceCodeLocation(docTypeNode, token.location);
272
+ }
273
+ }
274
+ }
275
+ /** @protected */
276
+ _attachElementToTree(element, location) {
277
+ if (this.options.sourceCodeLocationInfo) {
278
+ const loc = location && {
279
+ ...location,
280
+ startTag: location,
281
+ };
282
+ this.treeAdapter.setNodeSourceCodeLocation(element, loc);
283
+ }
284
+ if (this._shouldFosterParentOnInsertion()) {
285
+ this._fosterParentElement(element);
286
+ }
287
+ else {
288
+ const parent = this.openElements.currentTmplContentOrNode;
289
+ this.treeAdapter.appendChild(parent !== null && parent !== void 0 ? parent : this.document, element);
290
+ }
291
+ }
292
+ /**
293
+ * For self-closing tags. Add an element to the tree, but skip adding it
294
+ * to the stack.
295
+ */
296
+ /** @protected */
297
+ _appendElement(token, namespaceURI) {
298
+ const element = this.treeAdapter.createElement(token.tagName, namespaceURI, token.attrs);
299
+ this._attachElementToTree(element, token.location);
300
+ }
301
+ /** @protected */
302
+ _insertElement(token, namespaceURI) {
303
+ const element = this.treeAdapter.createElement(token.tagName, namespaceURI, token.attrs);
304
+ this._attachElementToTree(element, token.location);
305
+ this.openElements.push(element, token.tagID);
306
+ }
307
+ /** @protected */
308
+ _insertFakeElement(tagName, tagID) {
309
+ const element = this.treeAdapter.createElement(tagName, NS.HTML, []);
310
+ this._attachElementToTree(element, null);
311
+ this.openElements.push(element, tagID);
312
+ }
313
+ /** @protected */
314
+ _insertTemplate(token) {
315
+ const tmpl = this.treeAdapter.createElement(token.tagName, NS.HTML, token.attrs);
316
+ const content = this.treeAdapter.createDocumentFragment();
317
+ this.treeAdapter.setTemplateContent(tmpl, content);
318
+ this._attachElementToTree(tmpl, token.location);
319
+ this.openElements.push(tmpl, token.tagID);
320
+ if (this.options.sourceCodeLocationInfo)
321
+ this.treeAdapter.setNodeSourceCodeLocation(content, null);
322
+ }
323
+ /** @protected */
324
+ _insertFakeRootElement() {
325
+ const element = this.treeAdapter.createElement(TAG_NAMES.HTML, NS.HTML, []);
326
+ if (this.options.sourceCodeLocationInfo)
327
+ this.treeAdapter.setNodeSourceCodeLocation(element, null);
328
+ this.treeAdapter.appendChild(this.openElements.current, element);
329
+ this.openElements.push(element, TAG_ID.HTML);
330
+ }
331
+ /** @protected */
332
+ _appendCommentNode(token, parent) {
333
+ const commentNode = this.treeAdapter.createCommentNode(token.data);
334
+ this.treeAdapter.appendChild(parent, commentNode);
335
+ if (this.options.sourceCodeLocationInfo) {
336
+ this.treeAdapter.setNodeSourceCodeLocation(commentNode, token.location);
337
+ }
338
+ }
339
+ /** @protected */
340
+ _insertCharacters(token) {
341
+ let parent;
342
+ let beforeElement;
343
+ if (this._shouldFosterParentOnInsertion()) {
344
+ ({ parent, beforeElement } = this._findFosterParentingLocation());
345
+ if (beforeElement) {
346
+ this.treeAdapter.insertTextBefore(parent, token.chars, beforeElement);
347
+ }
348
+ else {
349
+ this.treeAdapter.insertText(parent, token.chars);
350
+ }
351
+ }
352
+ else {
353
+ parent = this.openElements.currentTmplContentOrNode;
354
+ this.treeAdapter.insertText(parent, token.chars);
355
+ }
356
+ if (!token.location)
357
+ return;
358
+ const siblings = this.treeAdapter.getChildNodes(parent);
359
+ const textNodeIdx = beforeElement ? siblings.lastIndexOf(beforeElement) : siblings.length;
360
+ const textNode = siblings[textNodeIdx - 1];
361
+ //NOTE: if we have a location assigned by another token, then just update the end position
362
+ const tnLoc = this.treeAdapter.getNodeSourceCodeLocation(textNode);
363
+ if (tnLoc) {
364
+ const { endLine, endCol, endOffset } = token.location;
365
+ this.treeAdapter.updateNodeSourceCodeLocation(textNode, { endLine, endCol, endOffset });
366
+ }
367
+ else if (this.options.sourceCodeLocationInfo) {
368
+ this.treeAdapter.setNodeSourceCodeLocation(textNode, token.location);
369
+ }
370
+ }
371
+ /** @protected */
372
+ _adoptNodes(donor, recipient) {
373
+ for (let child = this.treeAdapter.getFirstChild(donor); child; child = this.treeAdapter.getFirstChild(donor)) {
374
+ this.treeAdapter.detachNode(child);
375
+ this.treeAdapter.appendChild(recipient, child);
376
+ }
377
+ }
378
+ /** @protected */
379
+ _setEndLocation(element, closingToken) {
380
+ if (this.treeAdapter.getNodeSourceCodeLocation(element) && closingToken.location) {
381
+ const ctLoc = closingToken.location;
382
+ const tn = this.treeAdapter.getTagName(element);
383
+ const endLoc =
384
+ // NOTE: For cases like <p> <p> </p> - First 'p' closes without a closing
385
+ // tag and for cases like <td> <p> </td> - 'p' closes without a closing tag.
386
+ closingToken.type === TokenType.END_TAG && tn === closingToken.tagName
387
+ ? {
388
+ endTag: { ...ctLoc },
389
+ endLine: ctLoc.endLine,
390
+ endCol: ctLoc.endCol,
391
+ endOffset: ctLoc.endOffset,
392
+ }
393
+ : {
394
+ endLine: ctLoc.startLine,
395
+ endCol: ctLoc.startCol,
396
+ endOffset: ctLoc.startOffset,
397
+ };
398
+ this.treeAdapter.updateNodeSourceCodeLocation(element, endLoc);
399
+ }
400
+ }
401
+ //Token processing
402
+ shouldProcessStartTagTokenInForeignContent(token) {
403
+ // Check that neither current === document, or ns === NS.HTML
404
+ if (!this.currentNotInHTML)
405
+ return false;
406
+ let current;
407
+ let currentTagId;
408
+ if (this.openElements.stackTop === 0 && this.fragmentContext) {
409
+ current = this.fragmentContext;
410
+ currentTagId = this.fragmentContextID;
411
+ }
412
+ else {
413
+ ({ current, currentTagId } = this.openElements);
414
+ }
415
+ if (token.tagID === TAG_ID.SVG &&
416
+ this.treeAdapter.getTagName(current) === TAG_NAMES.ANNOTATION_XML &&
417
+ this.treeAdapter.getNamespaceURI(current) === NS.MATHML) {
418
+ return false;
419
+ }
420
+ return (
421
+ // Check that `current` is not an integration point for HTML or MathML elements.
422
+ this.tokenizer.inForeignNode ||
423
+ // If it _is_ an integration point, then we might have to check that it is not an HTML
424
+ // integration point.
425
+ ((token.tagID === TAG_ID.MGLYPH || token.tagID === TAG_ID.MALIGNMARK) &&
426
+ currentTagId !== undefined &&
427
+ !this._isIntegrationPoint(currentTagId, current, NS.HTML)));
428
+ }
429
+ /** @protected */
430
+ _processToken(token) {
431
+ switch (token.type) {
432
+ case TokenType.CHARACTER: {
433
+ this.onCharacter(token);
434
+ break;
435
+ }
436
+ case TokenType.NULL_CHARACTER: {
437
+ this.onNullCharacter(token);
438
+ break;
439
+ }
440
+ case TokenType.COMMENT: {
441
+ this.onComment(token);
442
+ break;
443
+ }
444
+ case TokenType.DOCTYPE: {
445
+ this.onDoctype(token);
446
+ break;
447
+ }
448
+ case TokenType.START_TAG: {
449
+ this._processStartTag(token);
450
+ break;
451
+ }
452
+ case TokenType.END_TAG: {
453
+ this.onEndTag(token);
454
+ break;
455
+ }
456
+ case TokenType.EOF: {
457
+ this.onEof(token);
458
+ break;
459
+ }
460
+ case TokenType.WHITESPACE_CHARACTER: {
461
+ this.onWhitespaceCharacter(token);
462
+ break;
463
+ }
464
+ }
465
+ }
466
+ //Integration points
467
+ /** @protected */
468
+ _isIntegrationPoint(tid, element, foreignNS) {
469
+ const ns = this.treeAdapter.getNamespaceURI(element);
470
+ const attrs = this.treeAdapter.getAttrList(element);
471
+ return isIntegrationPoint(tid, ns, attrs, foreignNS);
472
+ }
473
+ //Active formatting elements reconstruction
474
+ /** @protected */
475
+ _reconstructActiveFormattingElements() {
476
+ const listLength = this.activeFormattingElements.entries.length;
477
+ if (listLength) {
478
+ const endIndex = this.activeFormattingElements.entries.findIndex((entry) => entry.type === EntryType.Marker || this.openElements.contains(entry.element));
479
+ const unopenIdx = endIndex === -1 ? listLength - 1 : endIndex - 1;
480
+ for (let i = unopenIdx; i >= 0; i--) {
481
+ const entry = this.activeFormattingElements.entries[i];
482
+ this._insertElement(entry.token, this.treeAdapter.getNamespaceURI(entry.element));
483
+ entry.element = this.openElements.current;
484
+ }
485
+ }
486
+ }
487
+ //Close elements
488
+ /** @protected */
489
+ _closeTableCell() {
490
+ this.openElements.generateImpliedEndTags();
491
+ this.openElements.popUntilTableCellPopped();
492
+ this.activeFormattingElements.clearToLastMarker();
493
+ this.insertionMode = InsertionMode.IN_ROW;
494
+ }
495
+ /** @protected */
496
+ _closePElement() {
497
+ this.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.P);
498
+ this.openElements.popUntilTagNamePopped(TAG_ID.P);
499
+ }
500
+ //Insertion modes
501
+ /** @protected */
502
+ _resetInsertionMode() {
503
+ for (let i = this.openElements.stackTop; i >= 0; i--) {
504
+ //Insertion mode reset map
505
+ switch (i === 0 && this.fragmentContext ? this.fragmentContextID : this.openElements.tagIDs[i]) {
506
+ case TAG_ID.TR: {
507
+ this.insertionMode = InsertionMode.IN_ROW;
508
+ return;
509
+ }
510
+ case TAG_ID.TBODY:
511
+ case TAG_ID.THEAD:
512
+ case TAG_ID.TFOOT: {
513
+ this.insertionMode = InsertionMode.IN_TABLE_BODY;
514
+ return;
515
+ }
516
+ case TAG_ID.CAPTION: {
517
+ this.insertionMode = InsertionMode.IN_CAPTION;
518
+ return;
519
+ }
520
+ case TAG_ID.COLGROUP: {
521
+ this.insertionMode = InsertionMode.IN_COLUMN_GROUP;
522
+ return;
523
+ }
524
+ case TAG_ID.TABLE: {
525
+ this.insertionMode = InsertionMode.IN_TABLE;
526
+ return;
527
+ }
528
+ case TAG_ID.BODY: {
529
+ this.insertionMode = InsertionMode.IN_BODY;
530
+ return;
531
+ }
532
+ case TAG_ID.FRAMESET: {
533
+ this.insertionMode = InsertionMode.IN_FRAMESET;
534
+ return;
535
+ }
536
+ case TAG_ID.SELECT: {
537
+ this._resetInsertionModeForSelect(i);
538
+ return;
539
+ }
540
+ case TAG_ID.TEMPLATE: {
541
+ this.insertionMode = this.tmplInsertionModeStack[0];
542
+ return;
543
+ }
544
+ case TAG_ID.HTML: {
545
+ this.insertionMode = this.headElement ? InsertionMode.AFTER_HEAD : InsertionMode.BEFORE_HEAD;
546
+ return;
547
+ }
548
+ case TAG_ID.TD:
549
+ case TAG_ID.TH: {
550
+ if (i > 0) {
551
+ this.insertionMode = InsertionMode.IN_CELL;
552
+ return;
553
+ }
554
+ break;
555
+ }
556
+ case TAG_ID.HEAD: {
557
+ if (i > 0) {
558
+ this.insertionMode = InsertionMode.IN_HEAD;
559
+ return;
560
+ }
561
+ break;
562
+ }
563
+ }
564
+ }
565
+ this.insertionMode = InsertionMode.IN_BODY;
566
+ }
567
+ /** @protected */
568
+ _resetInsertionModeForSelect(selectIdx) {
569
+ if (selectIdx > 0) {
570
+ for (let i = selectIdx - 1; i > 0; i--) {
571
+ const tn = this.openElements.tagIDs[i];
572
+ if (tn === TAG_ID.TEMPLATE) {
573
+ break;
574
+ }
575
+ else if (tn === TAG_ID.TABLE) {
576
+ this.insertionMode = InsertionMode.IN_SELECT_IN_TABLE;
577
+ return;
578
+ }
579
+ }
580
+ }
581
+ this.insertionMode = InsertionMode.IN_SELECT;
582
+ }
583
+ //Foster parenting
584
+ /** @protected */
585
+ _isElementCausesFosterParenting(tn) {
586
+ return TABLE_STRUCTURE_TAGS.has(tn);
587
+ }
588
+ /** @protected */
589
+ _shouldFosterParentOnInsertion() {
590
+ return (this.fosterParentingEnabled &&
591
+ this.openElements.currentTagId !== undefined &&
592
+ this._isElementCausesFosterParenting(this.openElements.currentTagId));
593
+ }
594
+ /** @protected */
595
+ _findFosterParentingLocation() {
596
+ for (let i = this.openElements.stackTop; i >= 0; i--) {
597
+ const openElement = this.openElements.items[i];
598
+ switch (this.openElements.tagIDs[i]) {
599
+ case TAG_ID.TEMPLATE: {
600
+ if (this.treeAdapter.getNamespaceURI(openElement) === NS.HTML) {
601
+ return { parent: this.treeAdapter.getTemplateContent(openElement), beforeElement: null };
602
+ }
603
+ break;
604
+ }
605
+ case TAG_ID.TABLE: {
606
+ const parent = this.treeAdapter.getParentNode(openElement);
607
+ if (parent) {
608
+ return { parent, beforeElement: openElement };
609
+ }
610
+ return { parent: this.openElements.items[i - 1], beforeElement: null };
611
+ }
612
+ // Do nothing
613
+ }
614
+ }
615
+ return { parent: this.openElements.items[0], beforeElement: null };
616
+ }
617
+ /** @protected */
618
+ _fosterParentElement(element) {
619
+ const location = this._findFosterParentingLocation();
620
+ if (location.beforeElement) {
621
+ this.treeAdapter.insertBefore(location.parent, element, location.beforeElement);
622
+ }
623
+ else {
624
+ this.treeAdapter.appendChild(location.parent, element);
625
+ }
626
+ }
627
+ //Special elements
628
+ /** @protected */
629
+ _isSpecialElement(element, id) {
630
+ const ns = this.treeAdapter.getNamespaceURI(element);
631
+ return SPECIAL_ELEMENTS[ns].has(id);
632
+ }
633
+ /** @internal */
634
+ onCharacter(token) {
635
+ this.skipNextNewLine = false;
636
+ if (this.tokenizer.inForeignNode) {
637
+ characterInForeignContent(this, token);
638
+ return;
639
+ }
640
+ switch (this.insertionMode) {
641
+ case InsertionMode.INITIAL: {
642
+ tokenInInitialMode(this, token);
643
+ break;
644
+ }
645
+ case InsertionMode.BEFORE_HTML: {
646
+ tokenBeforeHtml(this, token);
647
+ break;
648
+ }
649
+ case InsertionMode.BEFORE_HEAD: {
650
+ tokenBeforeHead(this, token);
651
+ break;
652
+ }
653
+ case InsertionMode.IN_HEAD: {
654
+ tokenInHead(this, token);
655
+ break;
656
+ }
657
+ case InsertionMode.IN_HEAD_NO_SCRIPT: {
658
+ tokenInHeadNoScript(this, token);
659
+ break;
660
+ }
661
+ case InsertionMode.AFTER_HEAD: {
662
+ tokenAfterHead(this, token);
663
+ break;
664
+ }
665
+ case InsertionMode.IN_BODY:
666
+ case InsertionMode.IN_CAPTION:
667
+ case InsertionMode.IN_CELL:
668
+ case InsertionMode.IN_TEMPLATE: {
669
+ characterInBody(this, token);
670
+ break;
671
+ }
672
+ case InsertionMode.TEXT:
673
+ case InsertionMode.IN_SELECT:
674
+ case InsertionMode.IN_SELECT_IN_TABLE: {
675
+ this._insertCharacters(token);
676
+ break;
677
+ }
678
+ case InsertionMode.IN_TABLE:
679
+ case InsertionMode.IN_TABLE_BODY:
680
+ case InsertionMode.IN_ROW: {
681
+ characterInTable(this, token);
682
+ break;
683
+ }
684
+ case InsertionMode.IN_TABLE_TEXT: {
685
+ characterInTableText(this, token);
686
+ break;
687
+ }
688
+ case InsertionMode.IN_COLUMN_GROUP: {
689
+ tokenInColumnGroup(this, token);
690
+ break;
691
+ }
692
+ case InsertionMode.AFTER_BODY: {
693
+ tokenAfterBody(this, token);
694
+ break;
695
+ }
696
+ case InsertionMode.AFTER_AFTER_BODY: {
697
+ tokenAfterAfterBody(this, token);
698
+ break;
699
+ }
700
+ // Do nothing
701
+ }
702
+ }
703
+ /** @internal */
704
+ onNullCharacter(token) {
705
+ this.skipNextNewLine = false;
706
+ if (this.tokenizer.inForeignNode) {
707
+ nullCharacterInForeignContent(this, token);
708
+ return;
709
+ }
710
+ switch (this.insertionMode) {
711
+ case InsertionMode.INITIAL: {
712
+ tokenInInitialMode(this, token);
713
+ break;
714
+ }
715
+ case InsertionMode.BEFORE_HTML: {
716
+ tokenBeforeHtml(this, token);
717
+ break;
718
+ }
719
+ case InsertionMode.BEFORE_HEAD: {
720
+ tokenBeforeHead(this, token);
721
+ break;
722
+ }
723
+ case InsertionMode.IN_HEAD: {
724
+ tokenInHead(this, token);
725
+ break;
726
+ }
727
+ case InsertionMode.IN_HEAD_NO_SCRIPT: {
728
+ tokenInHeadNoScript(this, token);
729
+ break;
730
+ }
731
+ case InsertionMode.AFTER_HEAD: {
732
+ tokenAfterHead(this, token);
733
+ break;
734
+ }
735
+ case InsertionMode.TEXT: {
736
+ this._insertCharacters(token);
737
+ break;
738
+ }
739
+ case InsertionMode.IN_TABLE:
740
+ case InsertionMode.IN_TABLE_BODY:
741
+ case InsertionMode.IN_ROW: {
742
+ characterInTable(this, token);
743
+ break;
744
+ }
745
+ case InsertionMode.IN_COLUMN_GROUP: {
746
+ tokenInColumnGroup(this, token);
747
+ break;
748
+ }
749
+ case InsertionMode.AFTER_BODY: {
750
+ tokenAfterBody(this, token);
751
+ break;
752
+ }
753
+ case InsertionMode.AFTER_AFTER_BODY: {
754
+ tokenAfterAfterBody(this, token);
755
+ break;
756
+ }
757
+ // Do nothing
758
+ }
759
+ }
760
+ /** @internal */
761
+ onComment(token) {
762
+ this.skipNextNewLine = false;
763
+ if (this.currentNotInHTML) {
764
+ appendComment(this, token);
765
+ return;
766
+ }
767
+ switch (this.insertionMode) {
768
+ case InsertionMode.INITIAL:
769
+ case InsertionMode.BEFORE_HTML:
770
+ case InsertionMode.BEFORE_HEAD:
771
+ case InsertionMode.IN_HEAD:
772
+ case InsertionMode.IN_HEAD_NO_SCRIPT:
773
+ case InsertionMode.AFTER_HEAD:
774
+ case InsertionMode.IN_BODY:
775
+ case InsertionMode.IN_TABLE:
776
+ case InsertionMode.IN_CAPTION:
777
+ case InsertionMode.IN_COLUMN_GROUP:
778
+ case InsertionMode.IN_TABLE_BODY:
779
+ case InsertionMode.IN_ROW:
780
+ case InsertionMode.IN_CELL:
781
+ case InsertionMode.IN_SELECT:
782
+ case InsertionMode.IN_SELECT_IN_TABLE:
783
+ case InsertionMode.IN_TEMPLATE:
784
+ case InsertionMode.IN_FRAMESET:
785
+ case InsertionMode.AFTER_FRAMESET: {
786
+ appendComment(this, token);
787
+ break;
788
+ }
789
+ case InsertionMode.IN_TABLE_TEXT: {
790
+ tokenInTableText(this, token);
791
+ break;
792
+ }
793
+ case InsertionMode.AFTER_BODY: {
794
+ appendCommentToRootHtmlElement(this, token);
795
+ break;
796
+ }
797
+ case InsertionMode.AFTER_AFTER_BODY:
798
+ case InsertionMode.AFTER_AFTER_FRAMESET: {
799
+ appendCommentToDocument(this, token);
800
+ break;
801
+ }
802
+ // Do nothing
803
+ }
804
+ }
805
+ /** @internal */
806
+ onDoctype(token) {
807
+ this.skipNextNewLine = false;
808
+ switch (this.insertionMode) {
809
+ case InsertionMode.INITIAL: {
810
+ doctypeInInitialMode(this, token);
811
+ break;
812
+ }
813
+ case InsertionMode.BEFORE_HEAD:
814
+ case InsertionMode.IN_HEAD:
815
+ case InsertionMode.IN_HEAD_NO_SCRIPT:
816
+ case InsertionMode.AFTER_HEAD: {
817
+ this._err(token, ERR.misplacedDoctype);
818
+ break;
819
+ }
820
+ case InsertionMode.IN_TABLE_TEXT: {
821
+ tokenInTableText(this, token);
822
+ break;
823
+ }
824
+ // Do nothing
825
+ }
826
+ }
827
+ /** @internal */
828
+ onStartTag(token) {
829
+ this.skipNextNewLine = false;
830
+ this.currentToken = token;
831
+ this._processStartTag(token);
832
+ if (token.selfClosing && !token.ackSelfClosing) {
833
+ this._err(token, ERR.nonVoidHtmlElementStartTagWithTrailingSolidus);
834
+ }
835
+ }
836
+ /**
837
+ * Processes a given start tag.
838
+ *
839
+ * `onStartTag` checks if a self-closing tag was recognized. When a token
840
+ * is moved inbetween multiple insertion modes, this check for self-closing
841
+ * could lead to false positives. To avoid this, `_processStartTag` is used
842
+ * for nested calls.
843
+ *
844
+ * @param token The token to process.
845
+ * @protected
846
+ */
847
+ _processStartTag(token) {
848
+ if (this.shouldProcessStartTagTokenInForeignContent(token)) {
849
+ startTagInForeignContent(this, token);
850
+ }
851
+ else {
852
+ this._startTagOutsideForeignContent(token);
853
+ }
854
+ }
855
+ /** @protected */
856
+ _startTagOutsideForeignContent(token) {
857
+ switch (this.insertionMode) {
858
+ case InsertionMode.INITIAL: {
859
+ tokenInInitialMode(this, token);
860
+ break;
861
+ }
862
+ case InsertionMode.BEFORE_HTML: {
863
+ startTagBeforeHtml(this, token);
864
+ break;
865
+ }
866
+ case InsertionMode.BEFORE_HEAD: {
867
+ startTagBeforeHead(this, token);
868
+ break;
869
+ }
870
+ case InsertionMode.IN_HEAD: {
871
+ startTagInHead(this, token);
872
+ break;
873
+ }
874
+ case InsertionMode.IN_HEAD_NO_SCRIPT: {
875
+ startTagInHeadNoScript(this, token);
876
+ break;
877
+ }
878
+ case InsertionMode.AFTER_HEAD: {
879
+ startTagAfterHead(this, token);
880
+ break;
881
+ }
882
+ case InsertionMode.IN_BODY: {
883
+ startTagInBody(this, token);
884
+ break;
885
+ }
886
+ case InsertionMode.IN_TABLE: {
887
+ startTagInTable(this, token);
888
+ break;
889
+ }
890
+ case InsertionMode.IN_TABLE_TEXT: {
891
+ tokenInTableText(this, token);
892
+ break;
893
+ }
894
+ case InsertionMode.IN_CAPTION: {
895
+ startTagInCaption(this, token);
896
+ break;
897
+ }
898
+ case InsertionMode.IN_COLUMN_GROUP: {
899
+ startTagInColumnGroup(this, token);
900
+ break;
901
+ }
902
+ case InsertionMode.IN_TABLE_BODY: {
903
+ startTagInTableBody(this, token);
904
+ break;
905
+ }
906
+ case InsertionMode.IN_ROW: {
907
+ startTagInRow(this, token);
908
+ break;
909
+ }
910
+ case InsertionMode.IN_CELL: {
911
+ startTagInCell(this, token);
912
+ break;
913
+ }
914
+ case InsertionMode.IN_SELECT: {
915
+ startTagInSelect(this, token);
916
+ break;
917
+ }
918
+ case InsertionMode.IN_SELECT_IN_TABLE: {
919
+ startTagInSelectInTable(this, token);
920
+ break;
921
+ }
922
+ case InsertionMode.IN_TEMPLATE: {
923
+ startTagInTemplate(this, token);
924
+ break;
925
+ }
926
+ case InsertionMode.AFTER_BODY: {
927
+ startTagAfterBody(this, token);
928
+ break;
929
+ }
930
+ case InsertionMode.IN_FRAMESET: {
931
+ startTagInFrameset(this, token);
932
+ break;
933
+ }
934
+ case InsertionMode.AFTER_FRAMESET: {
935
+ startTagAfterFrameset(this, token);
936
+ break;
937
+ }
938
+ case InsertionMode.AFTER_AFTER_BODY: {
939
+ startTagAfterAfterBody(this, token);
940
+ break;
941
+ }
942
+ case InsertionMode.AFTER_AFTER_FRAMESET: {
943
+ startTagAfterAfterFrameset(this, token);
944
+ break;
945
+ }
946
+ // Do nothing
947
+ }
948
+ }
949
+ /** @internal */
950
+ onEndTag(token) {
951
+ this.skipNextNewLine = false;
952
+ this.currentToken = token;
953
+ if (this.currentNotInHTML) {
954
+ endTagInForeignContent(this, token);
955
+ }
956
+ else {
957
+ this._endTagOutsideForeignContent(token);
958
+ }
959
+ }
960
+ /** @protected */
961
+ _endTagOutsideForeignContent(token) {
962
+ switch (this.insertionMode) {
963
+ case InsertionMode.INITIAL: {
964
+ tokenInInitialMode(this, token);
965
+ break;
966
+ }
967
+ case InsertionMode.BEFORE_HTML: {
968
+ endTagBeforeHtml(this, token);
969
+ break;
970
+ }
971
+ case InsertionMode.BEFORE_HEAD: {
972
+ endTagBeforeHead(this, token);
973
+ break;
974
+ }
975
+ case InsertionMode.IN_HEAD: {
976
+ endTagInHead(this, token);
977
+ break;
978
+ }
979
+ case InsertionMode.IN_HEAD_NO_SCRIPT: {
980
+ endTagInHeadNoScript(this, token);
981
+ break;
982
+ }
983
+ case InsertionMode.AFTER_HEAD: {
984
+ endTagAfterHead(this, token);
985
+ break;
986
+ }
987
+ case InsertionMode.IN_BODY: {
988
+ endTagInBody(this, token);
989
+ break;
990
+ }
991
+ case InsertionMode.TEXT: {
992
+ endTagInText(this, token);
993
+ break;
994
+ }
995
+ case InsertionMode.IN_TABLE: {
996
+ endTagInTable(this, token);
997
+ break;
998
+ }
999
+ case InsertionMode.IN_TABLE_TEXT: {
1000
+ tokenInTableText(this, token);
1001
+ break;
1002
+ }
1003
+ case InsertionMode.IN_CAPTION: {
1004
+ endTagInCaption(this, token);
1005
+ break;
1006
+ }
1007
+ case InsertionMode.IN_COLUMN_GROUP: {
1008
+ endTagInColumnGroup(this, token);
1009
+ break;
1010
+ }
1011
+ case InsertionMode.IN_TABLE_BODY: {
1012
+ endTagInTableBody(this, token);
1013
+ break;
1014
+ }
1015
+ case InsertionMode.IN_ROW: {
1016
+ endTagInRow(this, token);
1017
+ break;
1018
+ }
1019
+ case InsertionMode.IN_CELL: {
1020
+ endTagInCell(this, token);
1021
+ break;
1022
+ }
1023
+ case InsertionMode.IN_SELECT: {
1024
+ endTagInSelect(this, token);
1025
+ break;
1026
+ }
1027
+ case InsertionMode.IN_SELECT_IN_TABLE: {
1028
+ endTagInSelectInTable(this, token);
1029
+ break;
1030
+ }
1031
+ case InsertionMode.IN_TEMPLATE: {
1032
+ endTagInTemplate(this, token);
1033
+ break;
1034
+ }
1035
+ case InsertionMode.AFTER_BODY: {
1036
+ endTagAfterBody(this, token);
1037
+ break;
1038
+ }
1039
+ case InsertionMode.IN_FRAMESET: {
1040
+ endTagInFrameset(this, token);
1041
+ break;
1042
+ }
1043
+ case InsertionMode.AFTER_FRAMESET: {
1044
+ endTagAfterFrameset(this, token);
1045
+ break;
1046
+ }
1047
+ case InsertionMode.AFTER_AFTER_BODY: {
1048
+ tokenAfterAfterBody(this, token);
1049
+ break;
1050
+ }
1051
+ // Do nothing
1052
+ }
1053
+ }
1054
+ /** @internal */
1055
+ onEof(token) {
1056
+ switch (this.insertionMode) {
1057
+ case InsertionMode.INITIAL: {
1058
+ tokenInInitialMode(this, token);
1059
+ break;
1060
+ }
1061
+ case InsertionMode.BEFORE_HTML: {
1062
+ tokenBeforeHtml(this, token);
1063
+ break;
1064
+ }
1065
+ case InsertionMode.BEFORE_HEAD: {
1066
+ tokenBeforeHead(this, token);
1067
+ break;
1068
+ }
1069
+ case InsertionMode.IN_HEAD: {
1070
+ tokenInHead(this, token);
1071
+ break;
1072
+ }
1073
+ case InsertionMode.IN_HEAD_NO_SCRIPT: {
1074
+ tokenInHeadNoScript(this, token);
1075
+ break;
1076
+ }
1077
+ case InsertionMode.AFTER_HEAD: {
1078
+ tokenAfterHead(this, token);
1079
+ break;
1080
+ }
1081
+ case InsertionMode.IN_BODY:
1082
+ case InsertionMode.IN_TABLE:
1083
+ case InsertionMode.IN_CAPTION:
1084
+ case InsertionMode.IN_COLUMN_GROUP:
1085
+ case InsertionMode.IN_TABLE_BODY:
1086
+ case InsertionMode.IN_ROW:
1087
+ case InsertionMode.IN_CELL:
1088
+ case InsertionMode.IN_SELECT:
1089
+ case InsertionMode.IN_SELECT_IN_TABLE: {
1090
+ eofInBody(this, token);
1091
+ break;
1092
+ }
1093
+ case InsertionMode.TEXT: {
1094
+ eofInText(this, token);
1095
+ break;
1096
+ }
1097
+ case InsertionMode.IN_TABLE_TEXT: {
1098
+ tokenInTableText(this, token);
1099
+ break;
1100
+ }
1101
+ case InsertionMode.IN_TEMPLATE: {
1102
+ eofInTemplate(this, token);
1103
+ break;
1104
+ }
1105
+ case InsertionMode.AFTER_BODY:
1106
+ case InsertionMode.IN_FRAMESET:
1107
+ case InsertionMode.AFTER_FRAMESET:
1108
+ case InsertionMode.AFTER_AFTER_BODY:
1109
+ case InsertionMode.AFTER_AFTER_FRAMESET: {
1110
+ stopParsing(this, token);
1111
+ break;
1112
+ }
1113
+ // Do nothing
1114
+ }
1115
+ }
1116
+ /** @internal */
1117
+ onWhitespaceCharacter(token) {
1118
+ if (this.skipNextNewLine) {
1119
+ this.skipNextNewLine = false;
1120
+ if (token.chars.charCodeAt(0) === CODE_POINTS.LINE_FEED) {
1121
+ if (token.chars.length === 1) {
1122
+ return;
1123
+ }
1124
+ token.chars = token.chars.substr(1);
1125
+ }
1126
+ }
1127
+ if (this.tokenizer.inForeignNode) {
1128
+ this._insertCharacters(token);
1129
+ return;
1130
+ }
1131
+ switch (this.insertionMode) {
1132
+ case InsertionMode.IN_HEAD:
1133
+ case InsertionMode.IN_HEAD_NO_SCRIPT:
1134
+ case InsertionMode.AFTER_HEAD:
1135
+ case InsertionMode.TEXT:
1136
+ case InsertionMode.IN_COLUMN_GROUP:
1137
+ case InsertionMode.IN_SELECT:
1138
+ case InsertionMode.IN_SELECT_IN_TABLE:
1139
+ case InsertionMode.IN_FRAMESET:
1140
+ case InsertionMode.AFTER_FRAMESET: {
1141
+ this._insertCharacters(token);
1142
+ break;
1143
+ }
1144
+ case InsertionMode.IN_BODY:
1145
+ case InsertionMode.IN_CAPTION:
1146
+ case InsertionMode.IN_CELL:
1147
+ case InsertionMode.IN_TEMPLATE:
1148
+ case InsertionMode.AFTER_BODY:
1149
+ case InsertionMode.AFTER_AFTER_BODY:
1150
+ case InsertionMode.AFTER_AFTER_FRAMESET: {
1151
+ whitespaceCharacterInBody(this, token);
1152
+ break;
1153
+ }
1154
+ case InsertionMode.IN_TABLE:
1155
+ case InsertionMode.IN_TABLE_BODY:
1156
+ case InsertionMode.IN_ROW: {
1157
+ characterInTable(this, token);
1158
+ break;
1159
+ }
1160
+ case InsertionMode.IN_TABLE_TEXT: {
1161
+ whitespaceCharacterInTableText(this, token);
1162
+ break;
1163
+ }
1164
+ // Do nothing
1165
+ }
1166
+ }
1167
+ }
1168
+ //Adoption agency algorithm
1169
+ //(see: http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#adoptionAgency)
1170
+ //------------------------------------------------------------------
1171
+ //Steps 5-8 of the algorithm
1172
+ function aaObtainFormattingElementEntry(p, token) {
1173
+ let formattingElementEntry = p.activeFormattingElements.getElementEntryInScopeWithTagName(token.tagName);
1174
+ if (formattingElementEntry) {
1175
+ if (!p.openElements.contains(formattingElementEntry.element)) {
1176
+ p.activeFormattingElements.removeEntry(formattingElementEntry);
1177
+ formattingElementEntry = null;
1178
+ }
1179
+ else if (!p.openElements.hasInScope(token.tagID)) {
1180
+ formattingElementEntry = null;
1181
+ }
1182
+ }
1183
+ else {
1184
+ genericEndTagInBody(p, token);
1185
+ }
1186
+ return formattingElementEntry;
1187
+ }
1188
+ //Steps 9 and 10 of the algorithm
1189
+ function aaObtainFurthestBlock(p, formattingElementEntry) {
1190
+ let furthestBlock = null;
1191
+ let idx = p.openElements.stackTop;
1192
+ for (; idx >= 0; idx--) {
1193
+ const element = p.openElements.items[idx];
1194
+ if (element === formattingElementEntry.element) {
1195
+ break;
1196
+ }
1197
+ if (p._isSpecialElement(element, p.openElements.tagIDs[idx])) {
1198
+ furthestBlock = element;
1199
+ }
1200
+ }
1201
+ if (!furthestBlock) {
1202
+ p.openElements.shortenToLength(Math.max(idx, 0));
1203
+ p.activeFormattingElements.removeEntry(formattingElementEntry);
1204
+ }
1205
+ return furthestBlock;
1206
+ }
1207
+ //Step 13 of the algorithm
1208
+ function aaInnerLoop(p, furthestBlock, formattingElement) {
1209
+ let lastElement = furthestBlock;
1210
+ let nextElement = p.openElements.getCommonAncestor(furthestBlock);
1211
+ for (let i = 0, element = nextElement; element !== formattingElement; i++, element = nextElement) {
1212
+ //NOTE: store the next element for the next loop iteration (it may be deleted from the stack by step 9.5)
1213
+ nextElement = p.openElements.getCommonAncestor(element);
1214
+ const elementEntry = p.activeFormattingElements.getElementEntry(element);
1215
+ const counterOverflow = elementEntry && i >= AA_INNER_LOOP_ITER;
1216
+ const shouldRemoveFromOpenElements = !elementEntry || counterOverflow;
1217
+ if (shouldRemoveFromOpenElements) {
1218
+ if (counterOverflow) {
1219
+ p.activeFormattingElements.removeEntry(elementEntry);
1220
+ }
1221
+ p.openElements.remove(element);
1222
+ }
1223
+ else {
1224
+ element = aaRecreateElementFromEntry(p, elementEntry);
1225
+ if (lastElement === furthestBlock) {
1226
+ p.activeFormattingElements.bookmark = elementEntry;
1227
+ }
1228
+ p.treeAdapter.detachNode(lastElement);
1229
+ p.treeAdapter.appendChild(element, lastElement);
1230
+ lastElement = element;
1231
+ }
1232
+ }
1233
+ return lastElement;
1234
+ }
1235
+ //Step 13.7 of the algorithm
1236
+ function aaRecreateElementFromEntry(p, elementEntry) {
1237
+ const ns = p.treeAdapter.getNamespaceURI(elementEntry.element);
1238
+ const newElement = p.treeAdapter.createElement(elementEntry.token.tagName, ns, elementEntry.token.attrs);
1239
+ p.openElements.replace(elementEntry.element, newElement);
1240
+ elementEntry.element = newElement;
1241
+ return newElement;
1242
+ }
1243
+ //Step 14 of the algorithm
1244
+ function aaInsertLastNodeInCommonAncestor(p, commonAncestor, lastElement) {
1245
+ const tn = p.treeAdapter.getTagName(commonAncestor);
1246
+ const tid = getTagID(tn);
1247
+ if (p._isElementCausesFosterParenting(tid)) {
1248
+ p._fosterParentElement(lastElement);
1249
+ }
1250
+ else {
1251
+ const ns = p.treeAdapter.getNamespaceURI(commonAncestor);
1252
+ if (tid === TAG_ID.TEMPLATE && ns === NS.HTML) {
1253
+ commonAncestor = p.treeAdapter.getTemplateContent(commonAncestor);
1254
+ }
1255
+ p.treeAdapter.appendChild(commonAncestor, lastElement);
1256
+ }
1257
+ }
1258
+ //Steps 15-19 of the algorithm
1259
+ function aaReplaceFormattingElement(p, furthestBlock, formattingElementEntry) {
1260
+ const ns = p.treeAdapter.getNamespaceURI(formattingElementEntry.element);
1261
+ const { token } = formattingElementEntry;
1262
+ const newElement = p.treeAdapter.createElement(token.tagName, ns, token.attrs);
1263
+ p._adoptNodes(furthestBlock, newElement);
1264
+ p.treeAdapter.appendChild(furthestBlock, newElement);
1265
+ p.activeFormattingElements.insertElementAfterBookmark(newElement, token);
1266
+ p.activeFormattingElements.removeEntry(formattingElementEntry);
1267
+ p.openElements.remove(formattingElementEntry.element);
1268
+ p.openElements.insertAfter(furthestBlock, newElement, token.tagID);
1269
+ }
1270
+ //Algorithm entry point
1271
+ function callAdoptionAgency(p, token) {
1272
+ for (let i = 0; i < AA_OUTER_LOOP_ITER; i++) {
1273
+ const formattingElementEntry = aaObtainFormattingElementEntry(p, token);
1274
+ if (!formattingElementEntry) {
1275
+ break;
1276
+ }
1277
+ const furthestBlock = aaObtainFurthestBlock(p, formattingElementEntry);
1278
+ if (!furthestBlock) {
1279
+ break;
1280
+ }
1281
+ p.activeFormattingElements.bookmark = formattingElementEntry;
1282
+ const lastElement = aaInnerLoop(p, furthestBlock, formattingElementEntry.element);
1283
+ const commonAncestor = p.openElements.getCommonAncestor(formattingElementEntry.element);
1284
+ p.treeAdapter.detachNode(lastElement);
1285
+ if (commonAncestor)
1286
+ aaInsertLastNodeInCommonAncestor(p, commonAncestor, lastElement);
1287
+ aaReplaceFormattingElement(p, furthestBlock, formattingElementEntry);
1288
+ }
1289
+ }
1290
+ //Generic token handlers
1291
+ //------------------------------------------------------------------
1292
+ function appendComment(p, token) {
1293
+ p._appendCommentNode(token, p.openElements.currentTmplContentOrNode);
1294
+ }
1295
+ function appendCommentToRootHtmlElement(p, token) {
1296
+ p._appendCommentNode(token, p.openElements.items[0]);
1297
+ }
1298
+ function appendCommentToDocument(p, token) {
1299
+ p._appendCommentNode(token, p.document);
1300
+ }
1301
+ function stopParsing(p, token) {
1302
+ p.stopped = true;
1303
+ // NOTE: Set end locations for elements that remain on the open element stack.
1304
+ if (token.location) {
1305
+ // NOTE: If we are not in a fragment, `html` and `body` will stay on the stack.
1306
+ // This is a problem, as we might overwrite their end position here.
1307
+ const target = p.fragmentContext ? 0 : 2;
1308
+ for (let i = p.openElements.stackTop; i >= target; i--) {
1309
+ p._setEndLocation(p.openElements.items[i], token);
1310
+ }
1311
+ // Handle `html` and `body`
1312
+ if (!p.fragmentContext && p.openElements.stackTop >= 0) {
1313
+ const htmlElement = p.openElements.items[0];
1314
+ const htmlLocation = p.treeAdapter.getNodeSourceCodeLocation(htmlElement);
1315
+ if (htmlLocation && !htmlLocation.endTag) {
1316
+ p._setEndLocation(htmlElement, token);
1317
+ if (p.openElements.stackTop >= 1) {
1318
+ const bodyElement = p.openElements.items[1];
1319
+ const bodyLocation = p.treeAdapter.getNodeSourceCodeLocation(bodyElement);
1320
+ if (bodyLocation && !bodyLocation.endTag) {
1321
+ p._setEndLocation(bodyElement, token);
1322
+ }
1323
+ }
1324
+ }
1325
+ }
1326
+ }
1327
+ }
1328
+ // The "initial" insertion mode
1329
+ //------------------------------------------------------------------
1330
+ function doctypeInInitialMode(p, token) {
1331
+ p._setDocumentType(token);
1332
+ const mode = token.forceQuirks ? DOCUMENT_MODE.QUIRKS : getDocumentMode(token);
1333
+ if (!isConforming(token)) {
1334
+ p._err(token, ERR.nonConformingDoctype);
1335
+ }
1336
+ p.treeAdapter.setDocumentMode(p.document, mode);
1337
+ p.insertionMode = InsertionMode.BEFORE_HTML;
1338
+ }
1339
+ function tokenInInitialMode(p, token) {
1340
+ p._err(token, ERR.missingDoctype, true);
1341
+ p.treeAdapter.setDocumentMode(p.document, DOCUMENT_MODE.QUIRKS);
1342
+ p.insertionMode = InsertionMode.BEFORE_HTML;
1343
+ p._processToken(token);
1344
+ }
1345
+ // The "before html" insertion mode
1346
+ //------------------------------------------------------------------
1347
+ function startTagBeforeHtml(p, token) {
1348
+ if (token.tagID === TAG_ID.HTML) {
1349
+ p._insertElement(token, NS.HTML);
1350
+ p.insertionMode = InsertionMode.BEFORE_HEAD;
1351
+ }
1352
+ else {
1353
+ tokenBeforeHtml(p, token);
1354
+ }
1355
+ }
1356
+ function endTagBeforeHtml(p, token) {
1357
+ const tn = token.tagID;
1358
+ if (tn === TAG_ID.HTML || tn === TAG_ID.HEAD || tn === TAG_ID.BODY || tn === TAG_ID.BR) {
1359
+ tokenBeforeHtml(p, token);
1360
+ }
1361
+ }
1362
+ function tokenBeforeHtml(p, token) {
1363
+ p._insertFakeRootElement();
1364
+ p.insertionMode = InsertionMode.BEFORE_HEAD;
1365
+ p._processToken(token);
1366
+ }
1367
+ // The "before head" insertion mode
1368
+ //------------------------------------------------------------------
1369
+ function startTagBeforeHead(p, token) {
1370
+ switch (token.tagID) {
1371
+ case TAG_ID.HTML: {
1372
+ startTagInBody(p, token);
1373
+ break;
1374
+ }
1375
+ case TAG_ID.HEAD: {
1376
+ p._insertElement(token, NS.HTML);
1377
+ p.headElement = p.openElements.current;
1378
+ p.insertionMode = InsertionMode.IN_HEAD;
1379
+ break;
1380
+ }
1381
+ default: {
1382
+ tokenBeforeHead(p, token);
1383
+ }
1384
+ }
1385
+ }
1386
+ function endTagBeforeHead(p, token) {
1387
+ const tn = token.tagID;
1388
+ if (tn === TAG_ID.HEAD || tn === TAG_ID.BODY || tn === TAG_ID.HTML || tn === TAG_ID.BR) {
1389
+ tokenBeforeHead(p, token);
1390
+ }
1391
+ else {
1392
+ p._err(token, ERR.endTagWithoutMatchingOpenElement);
1393
+ }
1394
+ }
1395
+ function tokenBeforeHead(p, token) {
1396
+ p._insertFakeElement(TAG_NAMES.HEAD, TAG_ID.HEAD);
1397
+ p.headElement = p.openElements.current;
1398
+ p.insertionMode = InsertionMode.IN_HEAD;
1399
+ p._processToken(token);
1400
+ }
1401
+ // The "in head" insertion mode
1402
+ //------------------------------------------------------------------
1403
+ function startTagInHead(p, token) {
1404
+ switch (token.tagID) {
1405
+ case TAG_ID.HTML: {
1406
+ startTagInBody(p, token);
1407
+ break;
1408
+ }
1409
+ case TAG_ID.BASE:
1410
+ case TAG_ID.BASEFONT:
1411
+ case TAG_ID.BGSOUND:
1412
+ case TAG_ID.LINK:
1413
+ case TAG_ID.META: {
1414
+ p._appendElement(token, NS.HTML);
1415
+ token.ackSelfClosing = true;
1416
+ break;
1417
+ }
1418
+ case TAG_ID.TITLE: {
1419
+ p._switchToTextParsing(token, TokenizerMode.RCDATA);
1420
+ break;
1421
+ }
1422
+ case TAG_ID.NOSCRIPT: {
1423
+ if (p.options.scriptingEnabled) {
1424
+ p._switchToTextParsing(token, TokenizerMode.RAWTEXT);
1425
+ }
1426
+ else {
1427
+ p._insertElement(token, NS.HTML);
1428
+ p.insertionMode = InsertionMode.IN_HEAD_NO_SCRIPT;
1429
+ }
1430
+ break;
1431
+ }
1432
+ case TAG_ID.NOFRAMES:
1433
+ case TAG_ID.STYLE: {
1434
+ p._switchToTextParsing(token, TokenizerMode.RAWTEXT);
1435
+ break;
1436
+ }
1437
+ case TAG_ID.SCRIPT: {
1438
+ p._switchToTextParsing(token, TokenizerMode.SCRIPT_DATA);
1439
+ break;
1440
+ }
1441
+ case TAG_ID.TEMPLATE: {
1442
+ p._insertTemplate(token);
1443
+ p.activeFormattingElements.insertMarker();
1444
+ p.framesetOk = false;
1445
+ p.insertionMode = InsertionMode.IN_TEMPLATE;
1446
+ p.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);
1447
+ break;
1448
+ }
1449
+ case TAG_ID.HEAD: {
1450
+ p._err(token, ERR.misplacedStartTagForHeadElement);
1451
+ break;
1452
+ }
1453
+ default: {
1454
+ tokenInHead(p, token);
1455
+ }
1456
+ }
1457
+ }
1458
+ function endTagInHead(p, token) {
1459
+ switch (token.tagID) {
1460
+ case TAG_ID.HEAD: {
1461
+ p.openElements.pop();
1462
+ p.insertionMode = InsertionMode.AFTER_HEAD;
1463
+ break;
1464
+ }
1465
+ case TAG_ID.BODY:
1466
+ case TAG_ID.BR:
1467
+ case TAG_ID.HTML: {
1468
+ tokenInHead(p, token);
1469
+ break;
1470
+ }
1471
+ case TAG_ID.TEMPLATE: {
1472
+ templateEndTagInHead(p, token);
1473
+ break;
1474
+ }
1475
+ default: {
1476
+ p._err(token, ERR.endTagWithoutMatchingOpenElement);
1477
+ }
1478
+ }
1479
+ }
1480
+ function templateEndTagInHead(p, token) {
1481
+ if (p.openElements.tmplCount > 0) {
1482
+ p.openElements.generateImpliedEndTagsThoroughly();
1483
+ if (p.openElements.currentTagId !== TAG_ID.TEMPLATE) {
1484
+ p._err(token, ERR.closingOfElementWithOpenChildElements);
1485
+ }
1486
+ p.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE);
1487
+ p.activeFormattingElements.clearToLastMarker();
1488
+ p.tmplInsertionModeStack.shift();
1489
+ p._resetInsertionMode();
1490
+ }
1491
+ else {
1492
+ p._err(token, ERR.endTagWithoutMatchingOpenElement);
1493
+ }
1494
+ }
1495
+ function tokenInHead(p, token) {
1496
+ p.openElements.pop();
1497
+ p.insertionMode = InsertionMode.AFTER_HEAD;
1498
+ p._processToken(token);
1499
+ }
1500
+ // The "in head no script" insertion mode
1501
+ //------------------------------------------------------------------
1502
+ function startTagInHeadNoScript(p, token) {
1503
+ switch (token.tagID) {
1504
+ case TAG_ID.HTML: {
1505
+ startTagInBody(p, token);
1506
+ break;
1507
+ }
1508
+ case TAG_ID.BASEFONT:
1509
+ case TAG_ID.BGSOUND:
1510
+ case TAG_ID.HEAD:
1511
+ case TAG_ID.LINK:
1512
+ case TAG_ID.META:
1513
+ case TAG_ID.NOFRAMES:
1514
+ case TAG_ID.STYLE: {
1515
+ startTagInHead(p, token);
1516
+ break;
1517
+ }
1518
+ case TAG_ID.NOSCRIPT: {
1519
+ p._err(token, ERR.nestedNoscriptInHead);
1520
+ break;
1521
+ }
1522
+ default: {
1523
+ tokenInHeadNoScript(p, token);
1524
+ }
1525
+ }
1526
+ }
1527
+ function endTagInHeadNoScript(p, token) {
1528
+ switch (token.tagID) {
1529
+ case TAG_ID.NOSCRIPT: {
1530
+ p.openElements.pop();
1531
+ p.insertionMode = InsertionMode.IN_HEAD;
1532
+ break;
1533
+ }
1534
+ case TAG_ID.BR: {
1535
+ tokenInHeadNoScript(p, token);
1536
+ break;
1537
+ }
1538
+ default: {
1539
+ p._err(token, ERR.endTagWithoutMatchingOpenElement);
1540
+ }
1541
+ }
1542
+ }
1543
+ function tokenInHeadNoScript(p, token) {
1544
+ const errCode = token.type === TokenType.EOF ? ERR.openElementsLeftAfterEof : ERR.disallowedContentInNoscriptInHead;
1545
+ p._err(token, errCode);
1546
+ p.openElements.pop();
1547
+ p.insertionMode = InsertionMode.IN_HEAD;
1548
+ p._processToken(token);
1549
+ }
1550
+ // The "after head" insertion mode
1551
+ //------------------------------------------------------------------
1552
+ function startTagAfterHead(p, token) {
1553
+ switch (token.tagID) {
1554
+ case TAG_ID.HTML: {
1555
+ startTagInBody(p, token);
1556
+ break;
1557
+ }
1558
+ case TAG_ID.BODY: {
1559
+ p._insertElement(token, NS.HTML);
1560
+ p.framesetOk = false;
1561
+ p.insertionMode = InsertionMode.IN_BODY;
1562
+ break;
1563
+ }
1564
+ case TAG_ID.FRAMESET: {
1565
+ p._insertElement(token, NS.HTML);
1566
+ p.insertionMode = InsertionMode.IN_FRAMESET;
1567
+ break;
1568
+ }
1569
+ case TAG_ID.BASE:
1570
+ case TAG_ID.BASEFONT:
1571
+ case TAG_ID.BGSOUND:
1572
+ case TAG_ID.LINK:
1573
+ case TAG_ID.META:
1574
+ case TAG_ID.NOFRAMES:
1575
+ case TAG_ID.SCRIPT:
1576
+ case TAG_ID.STYLE:
1577
+ case TAG_ID.TEMPLATE:
1578
+ case TAG_ID.TITLE: {
1579
+ p._err(token, ERR.abandonedHeadElementChild);
1580
+ p.openElements.push(p.headElement, TAG_ID.HEAD);
1581
+ startTagInHead(p, token);
1582
+ p.openElements.remove(p.headElement);
1583
+ break;
1584
+ }
1585
+ case TAG_ID.HEAD: {
1586
+ p._err(token, ERR.misplacedStartTagForHeadElement);
1587
+ break;
1588
+ }
1589
+ default: {
1590
+ tokenAfterHead(p, token);
1591
+ }
1592
+ }
1593
+ }
1594
+ function endTagAfterHead(p, token) {
1595
+ switch (token.tagID) {
1596
+ case TAG_ID.BODY:
1597
+ case TAG_ID.HTML:
1598
+ case TAG_ID.BR: {
1599
+ tokenAfterHead(p, token);
1600
+ break;
1601
+ }
1602
+ case TAG_ID.TEMPLATE: {
1603
+ templateEndTagInHead(p, token);
1604
+ break;
1605
+ }
1606
+ default: {
1607
+ p._err(token, ERR.endTagWithoutMatchingOpenElement);
1608
+ }
1609
+ }
1610
+ }
1611
+ function tokenAfterHead(p, token) {
1612
+ p._insertFakeElement(TAG_NAMES.BODY, TAG_ID.BODY);
1613
+ p.insertionMode = InsertionMode.IN_BODY;
1614
+ modeInBody(p, token);
1615
+ }
1616
+ // The "in body" insertion mode
1617
+ //------------------------------------------------------------------
1618
+ function modeInBody(p, token) {
1619
+ switch (token.type) {
1620
+ case TokenType.CHARACTER: {
1621
+ characterInBody(p, token);
1622
+ break;
1623
+ }
1624
+ case TokenType.WHITESPACE_CHARACTER: {
1625
+ whitespaceCharacterInBody(p, token);
1626
+ break;
1627
+ }
1628
+ case TokenType.COMMENT: {
1629
+ appendComment(p, token);
1630
+ break;
1631
+ }
1632
+ case TokenType.START_TAG: {
1633
+ startTagInBody(p, token);
1634
+ break;
1635
+ }
1636
+ case TokenType.END_TAG: {
1637
+ endTagInBody(p, token);
1638
+ break;
1639
+ }
1640
+ case TokenType.EOF: {
1641
+ eofInBody(p, token);
1642
+ break;
1643
+ }
1644
+ // Do nothing
1645
+ }
1646
+ }
1647
+ function whitespaceCharacterInBody(p, token) {
1648
+ p._reconstructActiveFormattingElements();
1649
+ p._insertCharacters(token);
1650
+ }
1651
+ function characterInBody(p, token) {
1652
+ p._reconstructActiveFormattingElements();
1653
+ p._insertCharacters(token);
1654
+ p.framesetOk = false;
1655
+ }
1656
+ function htmlStartTagInBody(p, token) {
1657
+ if (p.openElements.tmplCount === 0) {
1658
+ p.treeAdapter.adoptAttributes(p.openElements.items[0], token.attrs);
1659
+ }
1660
+ }
1661
+ function bodyStartTagInBody(p, token) {
1662
+ const bodyElement = p.openElements.tryPeekProperlyNestedBodyElement();
1663
+ if (bodyElement && p.openElements.tmplCount === 0) {
1664
+ p.framesetOk = false;
1665
+ p.treeAdapter.adoptAttributes(bodyElement, token.attrs);
1666
+ }
1667
+ }
1668
+ function framesetStartTagInBody(p, token) {
1669
+ const bodyElement = p.openElements.tryPeekProperlyNestedBodyElement();
1670
+ if (p.framesetOk && bodyElement) {
1671
+ p.treeAdapter.detachNode(bodyElement);
1672
+ p.openElements.popAllUpToHtmlElement();
1673
+ p._insertElement(token, NS.HTML);
1674
+ p.insertionMode = InsertionMode.IN_FRAMESET;
1675
+ }
1676
+ }
1677
+ function addressStartTagInBody(p, token) {
1678
+ if (p.openElements.hasInButtonScope(TAG_ID.P)) {
1679
+ p._closePElement();
1680
+ }
1681
+ p._insertElement(token, NS.HTML);
1682
+ }
1683
+ function numberedHeaderStartTagInBody(p, token) {
1684
+ if (p.openElements.hasInButtonScope(TAG_ID.P)) {
1685
+ p._closePElement();
1686
+ }
1687
+ if (p.openElements.currentTagId !== undefined && NUMBERED_HEADERS.has(p.openElements.currentTagId)) {
1688
+ p.openElements.pop();
1689
+ }
1690
+ p._insertElement(token, NS.HTML);
1691
+ }
1692
+ function preStartTagInBody(p, token) {
1693
+ if (p.openElements.hasInButtonScope(TAG_ID.P)) {
1694
+ p._closePElement();
1695
+ }
1696
+ p._insertElement(token, NS.HTML);
1697
+ //NOTE: If the next token is a U+000A LINE FEED (LF) character token, then ignore that token and move
1698
+ //on to the next one. (Newlines at the start of pre blocks are ignored as an authoring convenience.)
1699
+ p.skipNextNewLine = true;
1700
+ p.framesetOk = false;
1701
+ }
1702
+ function formStartTagInBody(p, token) {
1703
+ const inTemplate = p.openElements.tmplCount > 0;
1704
+ if (!p.formElement || inTemplate) {
1705
+ if (p.openElements.hasInButtonScope(TAG_ID.P)) {
1706
+ p._closePElement();
1707
+ }
1708
+ p._insertElement(token, NS.HTML);
1709
+ if (!inTemplate) {
1710
+ p.formElement = p.openElements.current;
1711
+ }
1712
+ }
1713
+ }
1714
+ function listItemStartTagInBody(p, token) {
1715
+ p.framesetOk = false;
1716
+ const tn = token.tagID;
1717
+ for (let i = p.openElements.stackTop; i >= 0; i--) {
1718
+ const elementId = p.openElements.tagIDs[i];
1719
+ if ((tn === TAG_ID.LI && elementId === TAG_ID.LI) ||
1720
+ ((tn === TAG_ID.DD || tn === TAG_ID.DT) && (elementId === TAG_ID.DD || elementId === TAG_ID.DT))) {
1721
+ p.openElements.generateImpliedEndTagsWithExclusion(elementId);
1722
+ p.openElements.popUntilTagNamePopped(elementId);
1723
+ break;
1724
+ }
1725
+ if (elementId !== TAG_ID.ADDRESS &&
1726
+ elementId !== TAG_ID.DIV &&
1727
+ elementId !== TAG_ID.P &&
1728
+ p._isSpecialElement(p.openElements.items[i], elementId)) {
1729
+ break;
1730
+ }
1731
+ }
1732
+ if (p.openElements.hasInButtonScope(TAG_ID.P)) {
1733
+ p._closePElement();
1734
+ }
1735
+ p._insertElement(token, NS.HTML);
1736
+ }
1737
+ function plaintextStartTagInBody(p, token) {
1738
+ if (p.openElements.hasInButtonScope(TAG_ID.P)) {
1739
+ p._closePElement();
1740
+ }
1741
+ p._insertElement(token, NS.HTML);
1742
+ p.tokenizer.state = TokenizerMode.PLAINTEXT;
1743
+ }
1744
+ function buttonStartTagInBody(p, token) {
1745
+ if (p.openElements.hasInScope(TAG_ID.BUTTON)) {
1746
+ p.openElements.generateImpliedEndTags();
1747
+ p.openElements.popUntilTagNamePopped(TAG_ID.BUTTON);
1748
+ }
1749
+ p._reconstructActiveFormattingElements();
1750
+ p._insertElement(token, NS.HTML);
1751
+ p.framesetOk = false;
1752
+ }
1753
+ function aStartTagInBody(p, token) {
1754
+ const activeElementEntry = p.activeFormattingElements.getElementEntryInScopeWithTagName(TAG_NAMES.A);
1755
+ if (activeElementEntry) {
1756
+ callAdoptionAgency(p, token);
1757
+ p.openElements.remove(activeElementEntry.element);
1758
+ p.activeFormattingElements.removeEntry(activeElementEntry);
1759
+ }
1760
+ p._reconstructActiveFormattingElements();
1761
+ p._insertElement(token, NS.HTML);
1762
+ p.activeFormattingElements.pushElement(p.openElements.current, token);
1763
+ }
1764
+ function bStartTagInBody(p, token) {
1765
+ p._reconstructActiveFormattingElements();
1766
+ p._insertElement(token, NS.HTML);
1767
+ p.activeFormattingElements.pushElement(p.openElements.current, token);
1768
+ }
1769
+ function nobrStartTagInBody(p, token) {
1770
+ p._reconstructActiveFormattingElements();
1771
+ if (p.openElements.hasInScope(TAG_ID.NOBR)) {
1772
+ callAdoptionAgency(p, token);
1773
+ p._reconstructActiveFormattingElements();
1774
+ }
1775
+ p._insertElement(token, NS.HTML);
1776
+ p.activeFormattingElements.pushElement(p.openElements.current, token);
1777
+ }
1778
+ function appletStartTagInBody(p, token) {
1779
+ p._reconstructActiveFormattingElements();
1780
+ p._insertElement(token, NS.HTML);
1781
+ p.activeFormattingElements.insertMarker();
1782
+ p.framesetOk = false;
1783
+ }
1784
+ function tableStartTagInBody(p, token) {
1785
+ if (p.treeAdapter.getDocumentMode(p.document) !== DOCUMENT_MODE.QUIRKS && p.openElements.hasInButtonScope(TAG_ID.P)) {
1786
+ p._closePElement();
1787
+ }
1788
+ p._insertElement(token, NS.HTML);
1789
+ p.framesetOk = false;
1790
+ p.insertionMode = InsertionMode.IN_TABLE;
1791
+ }
1792
+ function areaStartTagInBody(p, token) {
1793
+ p._reconstructActiveFormattingElements();
1794
+ p._appendElement(token, NS.HTML);
1795
+ p.framesetOk = false;
1796
+ token.ackSelfClosing = true;
1797
+ }
1798
+ function isHiddenInput(token) {
1799
+ const inputType = getTokenAttr(token, ATTRS.TYPE);
1800
+ return inputType != null && inputType.toLowerCase() === HIDDEN_INPUT_TYPE;
1801
+ }
1802
+ function inputStartTagInBody(p, token) {
1803
+ p._reconstructActiveFormattingElements();
1804
+ p._appendElement(token, NS.HTML);
1805
+ if (!isHiddenInput(token)) {
1806
+ p.framesetOk = false;
1807
+ }
1808
+ token.ackSelfClosing = true;
1809
+ }
1810
+ function paramStartTagInBody(p, token) {
1811
+ p._appendElement(token, NS.HTML);
1812
+ token.ackSelfClosing = true;
1813
+ }
1814
+ function hrStartTagInBody(p, token) {
1815
+ if (p.openElements.hasInButtonScope(TAG_ID.P)) {
1816
+ p._closePElement();
1817
+ }
1818
+ p._appendElement(token, NS.HTML);
1819
+ p.framesetOk = false;
1820
+ token.ackSelfClosing = true;
1821
+ }
1822
+ function imageStartTagInBody(p, token) {
1823
+ token.tagName = TAG_NAMES.IMG;
1824
+ token.tagID = TAG_ID.IMG;
1825
+ areaStartTagInBody(p, token);
1826
+ }
1827
+ function textareaStartTagInBody(p, token) {
1828
+ p._insertElement(token, NS.HTML);
1829
+ //NOTE: If the next token is a U+000A LINE FEED (LF) character token, then ignore that token and move
1830
+ //on to the next one. (Newlines at the start of textarea elements are ignored as an authoring convenience.)
1831
+ p.skipNextNewLine = true;
1832
+ p.tokenizer.state = TokenizerMode.RCDATA;
1833
+ p.originalInsertionMode = p.insertionMode;
1834
+ p.framesetOk = false;
1835
+ p.insertionMode = InsertionMode.TEXT;
1836
+ }
1837
+ function xmpStartTagInBody(p, token) {
1838
+ if (p.openElements.hasInButtonScope(TAG_ID.P)) {
1839
+ p._closePElement();
1840
+ }
1841
+ p._reconstructActiveFormattingElements();
1842
+ p.framesetOk = false;
1843
+ p._switchToTextParsing(token, TokenizerMode.RAWTEXT);
1844
+ }
1845
+ function iframeStartTagInBody(p, token) {
1846
+ p.framesetOk = false;
1847
+ p._switchToTextParsing(token, TokenizerMode.RAWTEXT);
1848
+ }
1849
+ //NOTE: here we assume that we always act as a user agent with enabled plugins/frames, so we parse
1850
+ //<noembed>/<noframes> as rawtext.
1851
+ function rawTextStartTagInBody(p, token) {
1852
+ p._switchToTextParsing(token, TokenizerMode.RAWTEXT);
1853
+ }
1854
+ function selectStartTagInBody(p, token) {
1855
+ p._reconstructActiveFormattingElements();
1856
+ p._insertElement(token, NS.HTML);
1857
+ p.framesetOk = false;
1858
+ p.insertionMode =
1859
+ p.insertionMode === InsertionMode.IN_TABLE ||
1860
+ p.insertionMode === InsertionMode.IN_CAPTION ||
1861
+ p.insertionMode === InsertionMode.IN_TABLE_BODY ||
1862
+ p.insertionMode === InsertionMode.IN_ROW ||
1863
+ p.insertionMode === InsertionMode.IN_CELL
1864
+ ? InsertionMode.IN_SELECT_IN_TABLE
1865
+ : InsertionMode.IN_SELECT;
1866
+ }
1867
+ function optgroupStartTagInBody(p, token) {
1868
+ if (p.openElements.currentTagId === TAG_ID.OPTION) {
1869
+ p.openElements.pop();
1870
+ }
1871
+ p._reconstructActiveFormattingElements();
1872
+ p._insertElement(token, NS.HTML);
1873
+ }
1874
+ function rbStartTagInBody(p, token) {
1875
+ if (p.openElements.hasInScope(TAG_ID.RUBY)) {
1876
+ p.openElements.generateImpliedEndTags();
1877
+ }
1878
+ p._insertElement(token, NS.HTML);
1879
+ }
1880
+ function rtStartTagInBody(p, token) {
1881
+ if (p.openElements.hasInScope(TAG_ID.RUBY)) {
1882
+ p.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.RTC);
1883
+ }
1884
+ p._insertElement(token, NS.HTML);
1885
+ }
1886
+ function mathStartTagInBody(p, token) {
1887
+ p._reconstructActiveFormattingElements();
1888
+ adjustTokenMathMLAttrs(token);
1889
+ adjustTokenXMLAttrs(token);
1890
+ if (token.selfClosing) {
1891
+ p._appendElement(token, NS.MATHML);
1892
+ }
1893
+ else {
1894
+ p._insertElement(token, NS.MATHML);
1895
+ }
1896
+ token.ackSelfClosing = true;
1897
+ }
1898
+ function svgStartTagInBody(p, token) {
1899
+ p._reconstructActiveFormattingElements();
1900
+ adjustTokenSVGAttrs(token);
1901
+ adjustTokenXMLAttrs(token);
1902
+ if (token.selfClosing) {
1903
+ p._appendElement(token, NS.SVG);
1904
+ }
1905
+ else {
1906
+ p._insertElement(token, NS.SVG);
1907
+ }
1908
+ token.ackSelfClosing = true;
1909
+ }
1910
+ function genericStartTagInBody(p, token) {
1911
+ p._reconstructActiveFormattingElements();
1912
+ p._insertElement(token, NS.HTML);
1913
+ }
1914
+ function startTagInBody(p, token) {
1915
+ switch (token.tagID) {
1916
+ case TAG_ID.I:
1917
+ case TAG_ID.S:
1918
+ case TAG_ID.B:
1919
+ case TAG_ID.U:
1920
+ case TAG_ID.EM:
1921
+ case TAG_ID.TT:
1922
+ case TAG_ID.BIG:
1923
+ case TAG_ID.CODE:
1924
+ case TAG_ID.FONT:
1925
+ case TAG_ID.SMALL:
1926
+ case TAG_ID.STRIKE:
1927
+ case TAG_ID.STRONG: {
1928
+ bStartTagInBody(p, token);
1929
+ break;
1930
+ }
1931
+ case TAG_ID.A: {
1932
+ aStartTagInBody(p, token);
1933
+ break;
1934
+ }
1935
+ case TAG_ID.H1:
1936
+ case TAG_ID.H2:
1937
+ case TAG_ID.H3:
1938
+ case TAG_ID.H4:
1939
+ case TAG_ID.H5:
1940
+ case TAG_ID.H6: {
1941
+ numberedHeaderStartTagInBody(p, token);
1942
+ break;
1943
+ }
1944
+ case TAG_ID.P:
1945
+ case TAG_ID.DL:
1946
+ case TAG_ID.OL:
1947
+ case TAG_ID.UL:
1948
+ case TAG_ID.DIV:
1949
+ case TAG_ID.DIR:
1950
+ case TAG_ID.NAV:
1951
+ case TAG_ID.MAIN:
1952
+ case TAG_ID.MENU:
1953
+ case TAG_ID.ASIDE:
1954
+ case TAG_ID.CENTER:
1955
+ case TAG_ID.FIGURE:
1956
+ case TAG_ID.FOOTER:
1957
+ case TAG_ID.HEADER:
1958
+ case TAG_ID.HGROUP:
1959
+ case TAG_ID.DIALOG:
1960
+ case TAG_ID.DETAILS:
1961
+ case TAG_ID.ADDRESS:
1962
+ case TAG_ID.ARTICLE:
1963
+ case TAG_ID.SEARCH:
1964
+ case TAG_ID.SECTION:
1965
+ case TAG_ID.SUMMARY:
1966
+ case TAG_ID.FIELDSET:
1967
+ case TAG_ID.BLOCKQUOTE:
1968
+ case TAG_ID.FIGCAPTION: {
1969
+ addressStartTagInBody(p, token);
1970
+ break;
1971
+ }
1972
+ case TAG_ID.LI:
1973
+ case TAG_ID.DD:
1974
+ case TAG_ID.DT: {
1975
+ listItemStartTagInBody(p, token);
1976
+ break;
1977
+ }
1978
+ case TAG_ID.BR:
1979
+ case TAG_ID.IMG:
1980
+ case TAG_ID.WBR:
1981
+ case TAG_ID.AREA:
1982
+ case TAG_ID.EMBED:
1983
+ case TAG_ID.KEYGEN: {
1984
+ areaStartTagInBody(p, token);
1985
+ break;
1986
+ }
1987
+ case TAG_ID.HR: {
1988
+ hrStartTagInBody(p, token);
1989
+ break;
1990
+ }
1991
+ case TAG_ID.RB:
1992
+ case TAG_ID.RTC: {
1993
+ rbStartTagInBody(p, token);
1994
+ break;
1995
+ }
1996
+ case TAG_ID.RT:
1997
+ case TAG_ID.RP: {
1998
+ rtStartTagInBody(p, token);
1999
+ break;
2000
+ }
2001
+ case TAG_ID.PRE:
2002
+ case TAG_ID.LISTING: {
2003
+ preStartTagInBody(p, token);
2004
+ break;
2005
+ }
2006
+ case TAG_ID.XMP: {
2007
+ xmpStartTagInBody(p, token);
2008
+ break;
2009
+ }
2010
+ case TAG_ID.SVG: {
2011
+ svgStartTagInBody(p, token);
2012
+ break;
2013
+ }
2014
+ case TAG_ID.HTML: {
2015
+ htmlStartTagInBody(p, token);
2016
+ break;
2017
+ }
2018
+ case TAG_ID.BASE:
2019
+ case TAG_ID.LINK:
2020
+ case TAG_ID.META:
2021
+ case TAG_ID.STYLE:
2022
+ case TAG_ID.TITLE:
2023
+ case TAG_ID.SCRIPT:
2024
+ case TAG_ID.BGSOUND:
2025
+ case TAG_ID.BASEFONT:
2026
+ case TAG_ID.TEMPLATE: {
2027
+ startTagInHead(p, token);
2028
+ break;
2029
+ }
2030
+ case TAG_ID.BODY: {
2031
+ bodyStartTagInBody(p, token);
2032
+ break;
2033
+ }
2034
+ case TAG_ID.FORM: {
2035
+ formStartTagInBody(p, token);
2036
+ break;
2037
+ }
2038
+ case TAG_ID.NOBR: {
2039
+ nobrStartTagInBody(p, token);
2040
+ break;
2041
+ }
2042
+ case TAG_ID.MATH: {
2043
+ mathStartTagInBody(p, token);
2044
+ break;
2045
+ }
2046
+ case TAG_ID.TABLE: {
2047
+ tableStartTagInBody(p, token);
2048
+ break;
2049
+ }
2050
+ case TAG_ID.INPUT: {
2051
+ inputStartTagInBody(p, token);
2052
+ break;
2053
+ }
2054
+ case TAG_ID.PARAM:
2055
+ case TAG_ID.TRACK:
2056
+ case TAG_ID.SOURCE: {
2057
+ paramStartTagInBody(p, token);
2058
+ break;
2059
+ }
2060
+ case TAG_ID.IMAGE: {
2061
+ imageStartTagInBody(p, token);
2062
+ break;
2063
+ }
2064
+ case TAG_ID.BUTTON: {
2065
+ buttonStartTagInBody(p, token);
2066
+ break;
2067
+ }
2068
+ case TAG_ID.APPLET:
2069
+ case TAG_ID.OBJECT:
2070
+ case TAG_ID.MARQUEE: {
2071
+ appletStartTagInBody(p, token);
2072
+ break;
2073
+ }
2074
+ case TAG_ID.IFRAME: {
2075
+ iframeStartTagInBody(p, token);
2076
+ break;
2077
+ }
2078
+ case TAG_ID.SELECT: {
2079
+ selectStartTagInBody(p, token);
2080
+ break;
2081
+ }
2082
+ case TAG_ID.OPTION:
2083
+ case TAG_ID.OPTGROUP: {
2084
+ optgroupStartTagInBody(p, token);
2085
+ break;
2086
+ }
2087
+ case TAG_ID.NOEMBED:
2088
+ case TAG_ID.NOFRAMES: {
2089
+ rawTextStartTagInBody(p, token);
2090
+ break;
2091
+ }
2092
+ case TAG_ID.FRAMESET: {
2093
+ framesetStartTagInBody(p, token);
2094
+ break;
2095
+ }
2096
+ case TAG_ID.TEXTAREA: {
2097
+ textareaStartTagInBody(p, token);
2098
+ break;
2099
+ }
2100
+ case TAG_ID.NOSCRIPT: {
2101
+ if (p.options.scriptingEnabled) {
2102
+ rawTextStartTagInBody(p, token);
2103
+ }
2104
+ else {
2105
+ genericStartTagInBody(p, token);
2106
+ }
2107
+ break;
2108
+ }
2109
+ case TAG_ID.PLAINTEXT: {
2110
+ plaintextStartTagInBody(p, token);
2111
+ break;
2112
+ }
2113
+ case TAG_ID.COL:
2114
+ case TAG_ID.TH:
2115
+ case TAG_ID.TD:
2116
+ case TAG_ID.TR:
2117
+ case TAG_ID.HEAD:
2118
+ case TAG_ID.FRAME:
2119
+ case TAG_ID.TBODY:
2120
+ case TAG_ID.TFOOT:
2121
+ case TAG_ID.THEAD:
2122
+ case TAG_ID.CAPTION:
2123
+ case TAG_ID.COLGROUP: {
2124
+ // Ignore token
2125
+ break;
2126
+ }
2127
+ default: {
2128
+ genericStartTagInBody(p, token);
2129
+ }
2130
+ }
2131
+ }
2132
+ function bodyEndTagInBody(p, token) {
2133
+ if (p.openElements.hasInScope(TAG_ID.BODY)) {
2134
+ p.insertionMode = InsertionMode.AFTER_BODY;
2135
+ //NOTE: <body> is never popped from the stack, so we need to updated
2136
+ //the end location explicitly.
2137
+ if (p.options.sourceCodeLocationInfo) {
2138
+ const bodyElement = p.openElements.tryPeekProperlyNestedBodyElement();
2139
+ if (bodyElement) {
2140
+ p._setEndLocation(bodyElement, token);
2141
+ }
2142
+ }
2143
+ }
2144
+ }
2145
+ function htmlEndTagInBody(p, token) {
2146
+ if (p.openElements.hasInScope(TAG_ID.BODY)) {
2147
+ p.insertionMode = InsertionMode.AFTER_BODY;
2148
+ endTagAfterBody(p, token);
2149
+ }
2150
+ }
2151
+ function addressEndTagInBody(p, token) {
2152
+ const tn = token.tagID;
2153
+ if (p.openElements.hasInScope(tn)) {
2154
+ p.openElements.generateImpliedEndTags();
2155
+ p.openElements.popUntilTagNamePopped(tn);
2156
+ }
2157
+ }
2158
+ function formEndTagInBody(p) {
2159
+ const inTemplate = p.openElements.tmplCount > 0;
2160
+ const { formElement } = p;
2161
+ if (!inTemplate) {
2162
+ p.formElement = null;
2163
+ }
2164
+ if ((formElement || inTemplate) && p.openElements.hasInScope(TAG_ID.FORM)) {
2165
+ p.openElements.generateImpliedEndTags();
2166
+ if (inTemplate) {
2167
+ p.openElements.popUntilTagNamePopped(TAG_ID.FORM);
2168
+ }
2169
+ else if (formElement) {
2170
+ p.openElements.remove(formElement);
2171
+ }
2172
+ }
2173
+ }
2174
+ function pEndTagInBody(p) {
2175
+ if (!p.openElements.hasInButtonScope(TAG_ID.P)) {
2176
+ p._insertFakeElement(TAG_NAMES.P, TAG_ID.P);
2177
+ }
2178
+ p._closePElement();
2179
+ }
2180
+ function liEndTagInBody(p) {
2181
+ if (p.openElements.hasInListItemScope(TAG_ID.LI)) {
2182
+ p.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.LI);
2183
+ p.openElements.popUntilTagNamePopped(TAG_ID.LI);
2184
+ }
2185
+ }
2186
+ function ddEndTagInBody(p, token) {
2187
+ const tn = token.tagID;
2188
+ if (p.openElements.hasInScope(tn)) {
2189
+ p.openElements.generateImpliedEndTagsWithExclusion(tn);
2190
+ p.openElements.popUntilTagNamePopped(tn);
2191
+ }
2192
+ }
2193
+ function numberedHeaderEndTagInBody(p) {
2194
+ if (p.openElements.hasNumberedHeaderInScope()) {
2195
+ p.openElements.generateImpliedEndTags();
2196
+ p.openElements.popUntilNumberedHeaderPopped();
2197
+ }
2198
+ }
2199
+ function appletEndTagInBody(p, token) {
2200
+ const tn = token.tagID;
2201
+ if (p.openElements.hasInScope(tn)) {
2202
+ p.openElements.generateImpliedEndTags();
2203
+ p.openElements.popUntilTagNamePopped(tn);
2204
+ p.activeFormattingElements.clearToLastMarker();
2205
+ }
2206
+ }
2207
+ function brEndTagInBody(p) {
2208
+ p._reconstructActiveFormattingElements();
2209
+ p._insertFakeElement(TAG_NAMES.BR, TAG_ID.BR);
2210
+ p.openElements.pop();
2211
+ p.framesetOk = false;
2212
+ }
2213
+ function genericEndTagInBody(p, token) {
2214
+ const tn = token.tagName;
2215
+ const tid = token.tagID;
2216
+ for (let i = p.openElements.stackTop; i > 0; i--) {
2217
+ const element = p.openElements.items[i];
2218
+ const elementId = p.openElements.tagIDs[i];
2219
+ // Compare the tag name here, as the tag might not be a known tag with an ID.
2220
+ if (tid === elementId && (tid !== TAG_ID.UNKNOWN || p.treeAdapter.getTagName(element) === tn)) {
2221
+ p.openElements.generateImpliedEndTagsWithExclusion(tid);
2222
+ if (p.openElements.stackTop >= i)
2223
+ p.openElements.shortenToLength(i);
2224
+ break;
2225
+ }
2226
+ if (p._isSpecialElement(element, elementId)) {
2227
+ break;
2228
+ }
2229
+ }
2230
+ }
2231
+ function endTagInBody(p, token) {
2232
+ switch (token.tagID) {
2233
+ case TAG_ID.A:
2234
+ case TAG_ID.B:
2235
+ case TAG_ID.I:
2236
+ case TAG_ID.S:
2237
+ case TAG_ID.U:
2238
+ case TAG_ID.EM:
2239
+ case TAG_ID.TT:
2240
+ case TAG_ID.BIG:
2241
+ case TAG_ID.CODE:
2242
+ case TAG_ID.FONT:
2243
+ case TAG_ID.NOBR:
2244
+ case TAG_ID.SMALL:
2245
+ case TAG_ID.STRIKE:
2246
+ case TAG_ID.STRONG: {
2247
+ callAdoptionAgency(p, token);
2248
+ break;
2249
+ }
2250
+ case TAG_ID.P: {
2251
+ pEndTagInBody(p);
2252
+ break;
2253
+ }
2254
+ case TAG_ID.DL:
2255
+ case TAG_ID.UL:
2256
+ case TAG_ID.OL:
2257
+ case TAG_ID.DIR:
2258
+ case TAG_ID.DIV:
2259
+ case TAG_ID.NAV:
2260
+ case TAG_ID.PRE:
2261
+ case TAG_ID.MAIN:
2262
+ case TAG_ID.MENU:
2263
+ case TAG_ID.ASIDE:
2264
+ case TAG_ID.BUTTON:
2265
+ case TAG_ID.CENTER:
2266
+ case TAG_ID.FIGURE:
2267
+ case TAG_ID.FOOTER:
2268
+ case TAG_ID.HEADER:
2269
+ case TAG_ID.HGROUP:
2270
+ case TAG_ID.DIALOG:
2271
+ case TAG_ID.ADDRESS:
2272
+ case TAG_ID.ARTICLE:
2273
+ case TAG_ID.DETAILS:
2274
+ case TAG_ID.SEARCH:
2275
+ case TAG_ID.SECTION:
2276
+ case TAG_ID.SUMMARY:
2277
+ case TAG_ID.LISTING:
2278
+ case TAG_ID.FIELDSET:
2279
+ case TAG_ID.BLOCKQUOTE:
2280
+ case TAG_ID.FIGCAPTION: {
2281
+ addressEndTagInBody(p, token);
2282
+ break;
2283
+ }
2284
+ case TAG_ID.LI: {
2285
+ liEndTagInBody(p);
2286
+ break;
2287
+ }
2288
+ case TAG_ID.DD:
2289
+ case TAG_ID.DT: {
2290
+ ddEndTagInBody(p, token);
2291
+ break;
2292
+ }
2293
+ case TAG_ID.H1:
2294
+ case TAG_ID.H2:
2295
+ case TAG_ID.H3:
2296
+ case TAG_ID.H4:
2297
+ case TAG_ID.H5:
2298
+ case TAG_ID.H6: {
2299
+ numberedHeaderEndTagInBody(p);
2300
+ break;
2301
+ }
2302
+ case TAG_ID.BR: {
2303
+ brEndTagInBody(p);
2304
+ break;
2305
+ }
2306
+ case TAG_ID.BODY: {
2307
+ bodyEndTagInBody(p, token);
2308
+ break;
2309
+ }
2310
+ case TAG_ID.HTML: {
2311
+ htmlEndTagInBody(p, token);
2312
+ break;
2313
+ }
2314
+ case TAG_ID.FORM: {
2315
+ formEndTagInBody(p);
2316
+ break;
2317
+ }
2318
+ case TAG_ID.APPLET:
2319
+ case TAG_ID.OBJECT:
2320
+ case TAG_ID.MARQUEE: {
2321
+ appletEndTagInBody(p, token);
2322
+ break;
2323
+ }
2324
+ case TAG_ID.TEMPLATE: {
2325
+ templateEndTagInHead(p, token);
2326
+ break;
2327
+ }
2328
+ default: {
2329
+ genericEndTagInBody(p, token);
2330
+ }
2331
+ }
2332
+ }
2333
+ function eofInBody(p, token) {
2334
+ if (p.tmplInsertionModeStack.length > 0) {
2335
+ eofInTemplate(p, token);
2336
+ }
2337
+ else {
2338
+ stopParsing(p, token);
2339
+ }
2340
+ }
2341
+ // The "text" insertion mode
2342
+ //------------------------------------------------------------------
2343
+ function endTagInText(p, token) {
2344
+ var _a;
2345
+ if (token.tagID === TAG_ID.SCRIPT) {
2346
+ (_a = p.scriptHandler) === null || _a === void 0 ? void 0 : _a.call(p, p.openElements.current);
2347
+ }
2348
+ p.openElements.pop();
2349
+ p.insertionMode = p.originalInsertionMode;
2350
+ }
2351
+ function eofInText(p, token) {
2352
+ p._err(token, ERR.eofInElementThatCanContainOnlyText);
2353
+ p.openElements.pop();
2354
+ p.insertionMode = p.originalInsertionMode;
2355
+ p.onEof(token);
2356
+ }
2357
+ // The "in table" insertion mode
2358
+ //------------------------------------------------------------------
2359
+ function characterInTable(p, token) {
2360
+ if (p.openElements.currentTagId !== undefined && TABLE_STRUCTURE_TAGS.has(p.openElements.currentTagId)) {
2361
+ p.pendingCharacterTokens.length = 0;
2362
+ p.hasNonWhitespacePendingCharacterToken = false;
2363
+ p.originalInsertionMode = p.insertionMode;
2364
+ p.insertionMode = InsertionMode.IN_TABLE_TEXT;
2365
+ switch (token.type) {
2366
+ case TokenType.CHARACTER: {
2367
+ characterInTableText(p, token);
2368
+ break;
2369
+ }
2370
+ case TokenType.WHITESPACE_CHARACTER: {
2371
+ whitespaceCharacterInTableText(p, token);
2372
+ break;
2373
+ }
2374
+ // Ignore null
2375
+ }
2376
+ }
2377
+ else {
2378
+ tokenInTable(p, token);
2379
+ }
2380
+ }
2381
+ function captionStartTagInTable(p, token) {
2382
+ p.openElements.clearBackToTableContext();
2383
+ p.activeFormattingElements.insertMarker();
2384
+ p._insertElement(token, NS.HTML);
2385
+ p.insertionMode = InsertionMode.IN_CAPTION;
2386
+ }
2387
+ function colgroupStartTagInTable(p, token) {
2388
+ p.openElements.clearBackToTableContext();
2389
+ p._insertElement(token, NS.HTML);
2390
+ p.insertionMode = InsertionMode.IN_COLUMN_GROUP;
2391
+ }
2392
+ function colStartTagInTable(p, token) {
2393
+ p.openElements.clearBackToTableContext();
2394
+ p._insertFakeElement(TAG_NAMES.COLGROUP, TAG_ID.COLGROUP);
2395
+ p.insertionMode = InsertionMode.IN_COLUMN_GROUP;
2396
+ startTagInColumnGroup(p, token);
2397
+ }
2398
+ function tbodyStartTagInTable(p, token) {
2399
+ p.openElements.clearBackToTableContext();
2400
+ p._insertElement(token, NS.HTML);
2401
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2402
+ }
2403
+ function tdStartTagInTable(p, token) {
2404
+ p.openElements.clearBackToTableContext();
2405
+ p._insertFakeElement(TAG_NAMES.TBODY, TAG_ID.TBODY);
2406
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2407
+ startTagInTableBody(p, token);
2408
+ }
2409
+ function tableStartTagInTable(p, token) {
2410
+ if (p.openElements.hasInTableScope(TAG_ID.TABLE)) {
2411
+ p.openElements.popUntilTagNamePopped(TAG_ID.TABLE);
2412
+ p._resetInsertionMode();
2413
+ p._processStartTag(token);
2414
+ }
2415
+ }
2416
+ function inputStartTagInTable(p, token) {
2417
+ if (isHiddenInput(token)) {
2418
+ p._appendElement(token, NS.HTML);
2419
+ }
2420
+ else {
2421
+ tokenInTable(p, token);
2422
+ }
2423
+ token.ackSelfClosing = true;
2424
+ }
2425
+ function formStartTagInTable(p, token) {
2426
+ if (!p.formElement && p.openElements.tmplCount === 0) {
2427
+ p._insertElement(token, NS.HTML);
2428
+ p.formElement = p.openElements.current;
2429
+ p.openElements.pop();
2430
+ }
2431
+ }
2432
+ function startTagInTable(p, token) {
2433
+ switch (token.tagID) {
2434
+ case TAG_ID.TD:
2435
+ case TAG_ID.TH:
2436
+ case TAG_ID.TR: {
2437
+ tdStartTagInTable(p, token);
2438
+ break;
2439
+ }
2440
+ case TAG_ID.STYLE:
2441
+ case TAG_ID.SCRIPT:
2442
+ case TAG_ID.TEMPLATE: {
2443
+ startTagInHead(p, token);
2444
+ break;
2445
+ }
2446
+ case TAG_ID.COL: {
2447
+ colStartTagInTable(p, token);
2448
+ break;
2449
+ }
2450
+ case TAG_ID.FORM: {
2451
+ formStartTagInTable(p, token);
2452
+ break;
2453
+ }
2454
+ case TAG_ID.TABLE: {
2455
+ tableStartTagInTable(p, token);
2456
+ break;
2457
+ }
2458
+ case TAG_ID.TBODY:
2459
+ case TAG_ID.TFOOT:
2460
+ case TAG_ID.THEAD: {
2461
+ tbodyStartTagInTable(p, token);
2462
+ break;
2463
+ }
2464
+ case TAG_ID.INPUT: {
2465
+ inputStartTagInTable(p, token);
2466
+ break;
2467
+ }
2468
+ case TAG_ID.CAPTION: {
2469
+ captionStartTagInTable(p, token);
2470
+ break;
2471
+ }
2472
+ case TAG_ID.COLGROUP: {
2473
+ colgroupStartTagInTable(p, token);
2474
+ break;
2475
+ }
2476
+ default: {
2477
+ tokenInTable(p, token);
2478
+ }
2479
+ }
2480
+ }
2481
+ function endTagInTable(p, token) {
2482
+ switch (token.tagID) {
2483
+ case TAG_ID.TABLE: {
2484
+ if (p.openElements.hasInTableScope(TAG_ID.TABLE)) {
2485
+ p.openElements.popUntilTagNamePopped(TAG_ID.TABLE);
2486
+ p._resetInsertionMode();
2487
+ }
2488
+ break;
2489
+ }
2490
+ case TAG_ID.TEMPLATE: {
2491
+ templateEndTagInHead(p, token);
2492
+ break;
2493
+ }
2494
+ case TAG_ID.BODY:
2495
+ case TAG_ID.CAPTION:
2496
+ case TAG_ID.COL:
2497
+ case TAG_ID.COLGROUP:
2498
+ case TAG_ID.HTML:
2499
+ case TAG_ID.TBODY:
2500
+ case TAG_ID.TD:
2501
+ case TAG_ID.TFOOT:
2502
+ case TAG_ID.TH:
2503
+ case TAG_ID.THEAD:
2504
+ case TAG_ID.TR: {
2505
+ // Ignore token
2506
+ break;
2507
+ }
2508
+ default: {
2509
+ tokenInTable(p, token);
2510
+ }
2511
+ }
2512
+ }
2513
+ function tokenInTable(p, token) {
2514
+ const savedFosterParentingState = p.fosterParentingEnabled;
2515
+ p.fosterParentingEnabled = true;
2516
+ // Process token in `In Body` mode
2517
+ modeInBody(p, token);
2518
+ p.fosterParentingEnabled = savedFosterParentingState;
2519
+ }
2520
+ // The "in table text" insertion mode
2521
+ //------------------------------------------------------------------
2522
+ function whitespaceCharacterInTableText(p, token) {
2523
+ p.pendingCharacterTokens.push(token);
2524
+ }
2525
+ function characterInTableText(p, token) {
2526
+ p.pendingCharacterTokens.push(token);
2527
+ p.hasNonWhitespacePendingCharacterToken = true;
2528
+ }
2529
+ function tokenInTableText(p, token) {
2530
+ let i = 0;
2531
+ if (p.hasNonWhitespacePendingCharacterToken) {
2532
+ for (; i < p.pendingCharacterTokens.length; i++) {
2533
+ tokenInTable(p, p.pendingCharacterTokens[i]);
2534
+ }
2535
+ }
2536
+ else {
2537
+ for (; i < p.pendingCharacterTokens.length; i++) {
2538
+ p._insertCharacters(p.pendingCharacterTokens[i]);
2539
+ }
2540
+ }
2541
+ p.insertionMode = p.originalInsertionMode;
2542
+ p._processToken(token);
2543
+ }
2544
+ // The "in caption" insertion mode
2545
+ //------------------------------------------------------------------
2546
+ const TABLE_VOID_ELEMENTS = new Set([TAG_ID.CAPTION, TAG_ID.COL, TAG_ID.COLGROUP, TAG_ID.TBODY, TAG_ID.TD, TAG_ID.TFOOT, TAG_ID.TH, TAG_ID.THEAD, TAG_ID.TR]);
2547
+ function startTagInCaption(p, token) {
2548
+ const tn = token.tagID;
2549
+ if (TABLE_VOID_ELEMENTS.has(tn)) {
2550
+ if (p.openElements.hasInTableScope(TAG_ID.CAPTION)) {
2551
+ p.openElements.generateImpliedEndTags();
2552
+ p.openElements.popUntilTagNamePopped(TAG_ID.CAPTION);
2553
+ p.activeFormattingElements.clearToLastMarker();
2554
+ p.insertionMode = InsertionMode.IN_TABLE;
2555
+ startTagInTable(p, token);
2556
+ }
2557
+ }
2558
+ else {
2559
+ startTagInBody(p, token);
2560
+ }
2561
+ }
2562
+ function endTagInCaption(p, token) {
2563
+ const tn = token.tagID;
2564
+ switch (tn) {
2565
+ case TAG_ID.CAPTION:
2566
+ case TAG_ID.TABLE: {
2567
+ if (p.openElements.hasInTableScope(TAG_ID.CAPTION)) {
2568
+ p.openElements.generateImpliedEndTags();
2569
+ p.openElements.popUntilTagNamePopped(TAG_ID.CAPTION);
2570
+ p.activeFormattingElements.clearToLastMarker();
2571
+ p.insertionMode = InsertionMode.IN_TABLE;
2572
+ if (tn === TAG_ID.TABLE) {
2573
+ endTagInTable(p, token);
2574
+ }
2575
+ }
2576
+ break;
2577
+ }
2578
+ case TAG_ID.BODY:
2579
+ case TAG_ID.COL:
2580
+ case TAG_ID.COLGROUP:
2581
+ case TAG_ID.HTML:
2582
+ case TAG_ID.TBODY:
2583
+ case TAG_ID.TD:
2584
+ case TAG_ID.TFOOT:
2585
+ case TAG_ID.TH:
2586
+ case TAG_ID.THEAD:
2587
+ case TAG_ID.TR: {
2588
+ // Ignore token
2589
+ break;
2590
+ }
2591
+ default: {
2592
+ endTagInBody(p, token);
2593
+ }
2594
+ }
2595
+ }
2596
+ // The "in column group" insertion mode
2597
+ //------------------------------------------------------------------
2598
+ function startTagInColumnGroup(p, token) {
2599
+ switch (token.tagID) {
2600
+ case TAG_ID.HTML: {
2601
+ startTagInBody(p, token);
2602
+ break;
2603
+ }
2604
+ case TAG_ID.COL: {
2605
+ p._appendElement(token, NS.HTML);
2606
+ token.ackSelfClosing = true;
2607
+ break;
2608
+ }
2609
+ case TAG_ID.TEMPLATE: {
2610
+ startTagInHead(p, token);
2611
+ break;
2612
+ }
2613
+ default: {
2614
+ tokenInColumnGroup(p, token);
2615
+ }
2616
+ }
2617
+ }
2618
+ function endTagInColumnGroup(p, token) {
2619
+ switch (token.tagID) {
2620
+ case TAG_ID.COLGROUP: {
2621
+ if (p.openElements.currentTagId === TAG_ID.COLGROUP) {
2622
+ p.openElements.pop();
2623
+ p.insertionMode = InsertionMode.IN_TABLE;
2624
+ }
2625
+ break;
2626
+ }
2627
+ case TAG_ID.TEMPLATE: {
2628
+ templateEndTagInHead(p, token);
2629
+ break;
2630
+ }
2631
+ case TAG_ID.COL: {
2632
+ // Ignore token
2633
+ break;
2634
+ }
2635
+ default: {
2636
+ tokenInColumnGroup(p, token);
2637
+ }
2638
+ }
2639
+ }
2640
+ function tokenInColumnGroup(p, token) {
2641
+ if (p.openElements.currentTagId === TAG_ID.COLGROUP) {
2642
+ p.openElements.pop();
2643
+ p.insertionMode = InsertionMode.IN_TABLE;
2644
+ p._processToken(token);
2645
+ }
2646
+ }
2647
+ // The "in table body" insertion mode
2648
+ //------------------------------------------------------------------
2649
+ function startTagInTableBody(p, token) {
2650
+ switch (token.tagID) {
2651
+ case TAG_ID.TR: {
2652
+ p.openElements.clearBackToTableBodyContext();
2653
+ p._insertElement(token, NS.HTML);
2654
+ p.insertionMode = InsertionMode.IN_ROW;
2655
+ break;
2656
+ }
2657
+ case TAG_ID.TH:
2658
+ case TAG_ID.TD: {
2659
+ p.openElements.clearBackToTableBodyContext();
2660
+ p._insertFakeElement(TAG_NAMES.TR, TAG_ID.TR);
2661
+ p.insertionMode = InsertionMode.IN_ROW;
2662
+ startTagInRow(p, token);
2663
+ break;
2664
+ }
2665
+ case TAG_ID.CAPTION:
2666
+ case TAG_ID.COL:
2667
+ case TAG_ID.COLGROUP:
2668
+ case TAG_ID.TBODY:
2669
+ case TAG_ID.TFOOT:
2670
+ case TAG_ID.THEAD: {
2671
+ if (p.openElements.hasTableBodyContextInTableScope()) {
2672
+ p.openElements.clearBackToTableBodyContext();
2673
+ p.openElements.pop();
2674
+ p.insertionMode = InsertionMode.IN_TABLE;
2675
+ startTagInTable(p, token);
2676
+ }
2677
+ break;
2678
+ }
2679
+ default: {
2680
+ startTagInTable(p, token);
2681
+ }
2682
+ }
2683
+ }
2684
+ function endTagInTableBody(p, token) {
2685
+ const tn = token.tagID;
2686
+ switch (token.tagID) {
2687
+ case TAG_ID.TBODY:
2688
+ case TAG_ID.TFOOT:
2689
+ case TAG_ID.THEAD: {
2690
+ if (p.openElements.hasInTableScope(tn)) {
2691
+ p.openElements.clearBackToTableBodyContext();
2692
+ p.openElements.pop();
2693
+ p.insertionMode = InsertionMode.IN_TABLE;
2694
+ }
2695
+ break;
2696
+ }
2697
+ case TAG_ID.TABLE: {
2698
+ if (p.openElements.hasTableBodyContextInTableScope()) {
2699
+ p.openElements.clearBackToTableBodyContext();
2700
+ p.openElements.pop();
2701
+ p.insertionMode = InsertionMode.IN_TABLE;
2702
+ endTagInTable(p, token);
2703
+ }
2704
+ break;
2705
+ }
2706
+ case TAG_ID.BODY:
2707
+ case TAG_ID.CAPTION:
2708
+ case TAG_ID.COL:
2709
+ case TAG_ID.COLGROUP:
2710
+ case TAG_ID.HTML:
2711
+ case TAG_ID.TD:
2712
+ case TAG_ID.TH:
2713
+ case TAG_ID.TR: {
2714
+ // Ignore token
2715
+ break;
2716
+ }
2717
+ default: {
2718
+ endTagInTable(p, token);
2719
+ }
2720
+ }
2721
+ }
2722
+ // The "in row" insertion mode
2723
+ //------------------------------------------------------------------
2724
+ function startTagInRow(p, token) {
2725
+ switch (token.tagID) {
2726
+ case TAG_ID.TH:
2727
+ case TAG_ID.TD: {
2728
+ p.openElements.clearBackToTableRowContext();
2729
+ p._insertElement(token, NS.HTML);
2730
+ p.insertionMode = InsertionMode.IN_CELL;
2731
+ p.activeFormattingElements.insertMarker();
2732
+ break;
2733
+ }
2734
+ case TAG_ID.CAPTION:
2735
+ case TAG_ID.COL:
2736
+ case TAG_ID.COLGROUP:
2737
+ case TAG_ID.TBODY:
2738
+ case TAG_ID.TFOOT:
2739
+ case TAG_ID.THEAD:
2740
+ case TAG_ID.TR: {
2741
+ if (p.openElements.hasInTableScope(TAG_ID.TR)) {
2742
+ p.openElements.clearBackToTableRowContext();
2743
+ p.openElements.pop();
2744
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2745
+ startTagInTableBody(p, token);
2746
+ }
2747
+ break;
2748
+ }
2749
+ default: {
2750
+ startTagInTable(p, token);
2751
+ }
2752
+ }
2753
+ }
2754
+ function endTagInRow(p, token) {
2755
+ switch (token.tagID) {
2756
+ case TAG_ID.TR: {
2757
+ if (p.openElements.hasInTableScope(TAG_ID.TR)) {
2758
+ p.openElements.clearBackToTableRowContext();
2759
+ p.openElements.pop();
2760
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2761
+ }
2762
+ break;
2763
+ }
2764
+ case TAG_ID.TABLE: {
2765
+ if (p.openElements.hasInTableScope(TAG_ID.TR)) {
2766
+ p.openElements.clearBackToTableRowContext();
2767
+ p.openElements.pop();
2768
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2769
+ endTagInTableBody(p, token);
2770
+ }
2771
+ break;
2772
+ }
2773
+ case TAG_ID.TBODY:
2774
+ case TAG_ID.TFOOT:
2775
+ case TAG_ID.THEAD: {
2776
+ if (p.openElements.hasInTableScope(token.tagID) || p.openElements.hasInTableScope(TAG_ID.TR)) {
2777
+ p.openElements.clearBackToTableRowContext();
2778
+ p.openElements.pop();
2779
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2780
+ endTagInTableBody(p, token);
2781
+ }
2782
+ break;
2783
+ }
2784
+ case TAG_ID.BODY:
2785
+ case TAG_ID.CAPTION:
2786
+ case TAG_ID.COL:
2787
+ case TAG_ID.COLGROUP:
2788
+ case TAG_ID.HTML:
2789
+ case TAG_ID.TD:
2790
+ case TAG_ID.TH: {
2791
+ // Ignore end tag
2792
+ break;
2793
+ }
2794
+ default: {
2795
+ endTagInTable(p, token);
2796
+ }
2797
+ }
2798
+ }
2799
+ // The "in cell" insertion mode
2800
+ //------------------------------------------------------------------
2801
+ function startTagInCell(p, token) {
2802
+ const tn = token.tagID;
2803
+ if (TABLE_VOID_ELEMENTS.has(tn)) {
2804
+ if (p.openElements.hasInTableScope(TAG_ID.TD) || p.openElements.hasInTableScope(TAG_ID.TH)) {
2805
+ p._closeTableCell();
2806
+ startTagInRow(p, token);
2807
+ }
2808
+ }
2809
+ else {
2810
+ startTagInBody(p, token);
2811
+ }
2812
+ }
2813
+ function endTagInCell(p, token) {
2814
+ const tn = token.tagID;
2815
+ switch (tn) {
2816
+ case TAG_ID.TD:
2817
+ case TAG_ID.TH: {
2818
+ if (p.openElements.hasInTableScope(tn)) {
2819
+ p.openElements.generateImpliedEndTags();
2820
+ p.openElements.popUntilTagNamePopped(tn);
2821
+ p.activeFormattingElements.clearToLastMarker();
2822
+ p.insertionMode = InsertionMode.IN_ROW;
2823
+ }
2824
+ break;
2825
+ }
2826
+ case TAG_ID.TABLE:
2827
+ case TAG_ID.TBODY:
2828
+ case TAG_ID.TFOOT:
2829
+ case TAG_ID.THEAD:
2830
+ case TAG_ID.TR: {
2831
+ if (p.openElements.hasInTableScope(tn)) {
2832
+ p._closeTableCell();
2833
+ endTagInRow(p, token);
2834
+ }
2835
+ break;
2836
+ }
2837
+ case TAG_ID.BODY:
2838
+ case TAG_ID.CAPTION:
2839
+ case TAG_ID.COL:
2840
+ case TAG_ID.COLGROUP:
2841
+ case TAG_ID.HTML: {
2842
+ // Ignore token
2843
+ break;
2844
+ }
2845
+ default: {
2846
+ endTagInBody(p, token);
2847
+ }
2848
+ }
2849
+ }
2850
+ // The "in select" insertion mode
2851
+ //------------------------------------------------------------------
2852
+ function startTagInSelect(p, token) {
2853
+ switch (token.tagID) {
2854
+ case TAG_ID.HTML: {
2855
+ startTagInBody(p, token);
2856
+ break;
2857
+ }
2858
+ case TAG_ID.OPTION: {
2859
+ if (p.openElements.currentTagId === TAG_ID.OPTION) {
2860
+ p.openElements.pop();
2861
+ }
2862
+ p._insertElement(token, NS.HTML);
2863
+ break;
2864
+ }
2865
+ case TAG_ID.OPTGROUP: {
2866
+ if (p.openElements.currentTagId === TAG_ID.OPTION) {
2867
+ p.openElements.pop();
2868
+ }
2869
+ if (p.openElements.currentTagId === TAG_ID.OPTGROUP) {
2870
+ p.openElements.pop();
2871
+ }
2872
+ p._insertElement(token, NS.HTML);
2873
+ break;
2874
+ }
2875
+ case TAG_ID.HR: {
2876
+ if (p.openElements.currentTagId === TAG_ID.OPTION) {
2877
+ p.openElements.pop();
2878
+ }
2879
+ if (p.openElements.currentTagId === TAG_ID.OPTGROUP) {
2880
+ p.openElements.pop();
2881
+ }
2882
+ p._appendElement(token, NS.HTML);
2883
+ token.ackSelfClosing = true;
2884
+ break;
2885
+ }
2886
+ case TAG_ID.INPUT:
2887
+ case TAG_ID.KEYGEN:
2888
+ case TAG_ID.TEXTAREA:
2889
+ case TAG_ID.SELECT: {
2890
+ if (p.openElements.hasInSelectScope(TAG_ID.SELECT)) {
2891
+ p.openElements.popUntilTagNamePopped(TAG_ID.SELECT);
2892
+ p._resetInsertionMode();
2893
+ if (token.tagID !== TAG_ID.SELECT) {
2894
+ p._processStartTag(token);
2895
+ }
2896
+ }
2897
+ break;
2898
+ }
2899
+ case TAG_ID.SCRIPT:
2900
+ case TAG_ID.TEMPLATE: {
2901
+ startTagInHead(p, token);
2902
+ break;
2903
+ }
2904
+ // Do nothing
2905
+ }
2906
+ }
2907
+ function endTagInSelect(p, token) {
2908
+ switch (token.tagID) {
2909
+ case TAG_ID.OPTGROUP: {
2910
+ if (p.openElements.stackTop > 0 &&
2911
+ p.openElements.currentTagId === TAG_ID.OPTION &&
2912
+ p.openElements.tagIDs[p.openElements.stackTop - 1] === TAG_ID.OPTGROUP) {
2913
+ p.openElements.pop();
2914
+ }
2915
+ if (p.openElements.currentTagId === TAG_ID.OPTGROUP) {
2916
+ p.openElements.pop();
2917
+ }
2918
+ break;
2919
+ }
2920
+ case TAG_ID.OPTION: {
2921
+ if (p.openElements.currentTagId === TAG_ID.OPTION) {
2922
+ p.openElements.pop();
2923
+ }
2924
+ break;
2925
+ }
2926
+ case TAG_ID.SELECT: {
2927
+ if (p.openElements.hasInSelectScope(TAG_ID.SELECT)) {
2928
+ p.openElements.popUntilTagNamePopped(TAG_ID.SELECT);
2929
+ p._resetInsertionMode();
2930
+ }
2931
+ break;
2932
+ }
2933
+ case TAG_ID.TEMPLATE: {
2934
+ templateEndTagInHead(p, token);
2935
+ break;
2936
+ }
2937
+ // Do nothing
2938
+ }
2939
+ }
2940
+ // The "in select in table" insertion mode
2941
+ //------------------------------------------------------------------
2942
+ function startTagInSelectInTable(p, token) {
2943
+ const tn = token.tagID;
2944
+ if (tn === TAG_ID.CAPTION ||
2945
+ tn === TAG_ID.TABLE ||
2946
+ tn === TAG_ID.TBODY ||
2947
+ tn === TAG_ID.TFOOT ||
2948
+ tn === TAG_ID.THEAD ||
2949
+ tn === TAG_ID.TR ||
2950
+ tn === TAG_ID.TD ||
2951
+ tn === TAG_ID.TH) {
2952
+ p.openElements.popUntilTagNamePopped(TAG_ID.SELECT);
2953
+ p._resetInsertionMode();
2954
+ p._processStartTag(token);
2955
+ }
2956
+ else {
2957
+ startTagInSelect(p, token);
2958
+ }
2959
+ }
2960
+ function endTagInSelectInTable(p, token) {
2961
+ const tn = token.tagID;
2962
+ if (tn === TAG_ID.CAPTION ||
2963
+ tn === TAG_ID.TABLE ||
2964
+ tn === TAG_ID.TBODY ||
2965
+ tn === TAG_ID.TFOOT ||
2966
+ tn === TAG_ID.THEAD ||
2967
+ tn === TAG_ID.TR ||
2968
+ tn === TAG_ID.TD ||
2969
+ tn === TAG_ID.TH) {
2970
+ if (p.openElements.hasInTableScope(tn)) {
2971
+ p.openElements.popUntilTagNamePopped(TAG_ID.SELECT);
2972
+ p._resetInsertionMode();
2973
+ p.onEndTag(token);
2974
+ }
2975
+ }
2976
+ else {
2977
+ endTagInSelect(p, token);
2978
+ }
2979
+ }
2980
+ // The "in template" insertion mode
2981
+ //------------------------------------------------------------------
2982
+ function startTagInTemplate(p, token) {
2983
+ switch (token.tagID) {
2984
+ // First, handle tags that can start without a mode change
2985
+ case TAG_ID.BASE:
2986
+ case TAG_ID.BASEFONT:
2987
+ case TAG_ID.BGSOUND:
2988
+ case TAG_ID.LINK:
2989
+ case TAG_ID.META:
2990
+ case TAG_ID.NOFRAMES:
2991
+ case TAG_ID.SCRIPT:
2992
+ case TAG_ID.STYLE:
2993
+ case TAG_ID.TEMPLATE:
2994
+ case TAG_ID.TITLE: {
2995
+ startTagInHead(p, token);
2996
+ break;
2997
+ }
2998
+ // Re-process the token in the appropriate mode
2999
+ case TAG_ID.CAPTION:
3000
+ case TAG_ID.COLGROUP:
3001
+ case TAG_ID.TBODY:
3002
+ case TAG_ID.TFOOT:
3003
+ case TAG_ID.THEAD: {
3004
+ p.tmplInsertionModeStack[0] = InsertionMode.IN_TABLE;
3005
+ p.insertionMode = InsertionMode.IN_TABLE;
3006
+ startTagInTable(p, token);
3007
+ break;
3008
+ }
3009
+ case TAG_ID.COL: {
3010
+ p.tmplInsertionModeStack[0] = InsertionMode.IN_COLUMN_GROUP;
3011
+ p.insertionMode = InsertionMode.IN_COLUMN_GROUP;
3012
+ startTagInColumnGroup(p, token);
3013
+ break;
3014
+ }
3015
+ case TAG_ID.TR: {
3016
+ p.tmplInsertionModeStack[0] = InsertionMode.IN_TABLE_BODY;
3017
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
3018
+ startTagInTableBody(p, token);
3019
+ break;
3020
+ }
3021
+ case TAG_ID.TD:
3022
+ case TAG_ID.TH: {
3023
+ p.tmplInsertionModeStack[0] = InsertionMode.IN_ROW;
3024
+ p.insertionMode = InsertionMode.IN_ROW;
3025
+ startTagInRow(p, token);
3026
+ break;
3027
+ }
3028
+ default: {
3029
+ p.tmplInsertionModeStack[0] = InsertionMode.IN_BODY;
3030
+ p.insertionMode = InsertionMode.IN_BODY;
3031
+ startTagInBody(p, token);
3032
+ }
3033
+ }
3034
+ }
3035
+ function endTagInTemplate(p, token) {
3036
+ if (token.tagID === TAG_ID.TEMPLATE) {
3037
+ templateEndTagInHead(p, token);
3038
+ }
3039
+ }
3040
+ function eofInTemplate(p, token) {
3041
+ if (p.openElements.tmplCount > 0) {
3042
+ p.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE);
3043
+ p.activeFormattingElements.clearToLastMarker();
3044
+ p.tmplInsertionModeStack.shift();
3045
+ p._resetInsertionMode();
3046
+ p.onEof(token);
3047
+ }
3048
+ else {
3049
+ stopParsing(p, token);
3050
+ }
3051
+ }
3052
+ // The "after body" insertion mode
3053
+ //------------------------------------------------------------------
3054
+ function startTagAfterBody(p, token) {
3055
+ if (token.tagID === TAG_ID.HTML) {
3056
+ startTagInBody(p, token);
3057
+ }
3058
+ else {
3059
+ tokenAfterBody(p, token);
3060
+ }
3061
+ }
3062
+ function endTagAfterBody(p, token) {
3063
+ var _a;
3064
+ if (token.tagID === TAG_ID.HTML) {
3065
+ if (!p.fragmentContext) {
3066
+ p.insertionMode = InsertionMode.AFTER_AFTER_BODY;
3067
+ }
3068
+ //NOTE: <html> is never popped from the stack, so we need to updated
3069
+ //the end location explicitly.
3070
+ if (p.options.sourceCodeLocationInfo && p.openElements.tagIDs[0] === TAG_ID.HTML) {
3071
+ p._setEndLocation(p.openElements.items[0], token);
3072
+ // Update the body element, if it doesn't have an end tag
3073
+ const bodyElement = p.openElements.items[1];
3074
+ if (bodyElement && !((_a = p.treeAdapter.getNodeSourceCodeLocation(bodyElement)) === null || _a === void 0 ? void 0 : _a.endTag)) {
3075
+ p._setEndLocation(bodyElement, token);
3076
+ }
3077
+ }
3078
+ }
3079
+ else {
3080
+ tokenAfterBody(p, token);
3081
+ }
3082
+ }
3083
+ function tokenAfterBody(p, token) {
3084
+ p.insertionMode = InsertionMode.IN_BODY;
3085
+ modeInBody(p, token);
3086
+ }
3087
+ // The "in frameset" insertion mode
3088
+ //------------------------------------------------------------------
3089
+ function startTagInFrameset(p, token) {
3090
+ switch (token.tagID) {
3091
+ case TAG_ID.HTML: {
3092
+ startTagInBody(p, token);
3093
+ break;
3094
+ }
3095
+ case TAG_ID.FRAMESET: {
3096
+ p._insertElement(token, NS.HTML);
3097
+ break;
3098
+ }
3099
+ case TAG_ID.FRAME: {
3100
+ p._appendElement(token, NS.HTML);
3101
+ token.ackSelfClosing = true;
3102
+ break;
3103
+ }
3104
+ case TAG_ID.NOFRAMES: {
3105
+ startTagInHead(p, token);
3106
+ break;
3107
+ }
3108
+ // Do nothing
3109
+ }
3110
+ }
3111
+ function endTagInFrameset(p, token) {
3112
+ if (token.tagID === TAG_ID.FRAMESET && !p.openElements.isRootHtmlElementCurrent()) {
3113
+ p.openElements.pop();
3114
+ if (!p.fragmentContext && p.openElements.currentTagId !== TAG_ID.FRAMESET) {
3115
+ p.insertionMode = InsertionMode.AFTER_FRAMESET;
3116
+ }
3117
+ }
3118
+ }
3119
+ // The "after frameset" insertion mode
3120
+ //------------------------------------------------------------------
3121
+ function startTagAfterFrameset(p, token) {
3122
+ switch (token.tagID) {
3123
+ case TAG_ID.HTML: {
3124
+ startTagInBody(p, token);
3125
+ break;
3126
+ }
3127
+ case TAG_ID.NOFRAMES: {
3128
+ startTagInHead(p, token);
3129
+ break;
3130
+ }
3131
+ // Do nothing
3132
+ }
3133
+ }
3134
+ function endTagAfterFrameset(p, token) {
3135
+ if (token.tagID === TAG_ID.HTML) {
3136
+ p.insertionMode = InsertionMode.AFTER_AFTER_FRAMESET;
3137
+ }
3138
+ }
3139
+ // The "after after body" insertion mode
3140
+ //------------------------------------------------------------------
3141
+ function startTagAfterAfterBody(p, token) {
3142
+ if (token.tagID === TAG_ID.HTML) {
3143
+ startTagInBody(p, token);
3144
+ }
3145
+ else {
3146
+ tokenAfterAfterBody(p, token);
3147
+ }
3148
+ }
3149
+ function tokenAfterAfterBody(p, token) {
3150
+ p.insertionMode = InsertionMode.IN_BODY;
3151
+ modeInBody(p, token);
3152
+ }
3153
+ // The "after after frameset" insertion mode
3154
+ //------------------------------------------------------------------
3155
+ function startTagAfterAfterFrameset(p, token) {
3156
+ switch (token.tagID) {
3157
+ case TAG_ID.HTML: {
3158
+ startTagInBody(p, token);
3159
+ break;
3160
+ }
3161
+ case TAG_ID.NOFRAMES: {
3162
+ startTagInHead(p, token);
3163
+ break;
3164
+ }
3165
+ // Do nothing
3166
+ }
3167
+ }
3168
+ // The rules for parsing tokens in foreign content
3169
+ //------------------------------------------------------------------
3170
+ function nullCharacterInForeignContent(p, token) {
3171
+ token.chars = REPLACEMENT_CHARACTER;
3172
+ p._insertCharacters(token);
3173
+ }
3174
+ function characterInForeignContent(p, token) {
3175
+ p._insertCharacters(token);
3176
+ p.framesetOk = false;
3177
+ }
3178
+ function popUntilHtmlOrIntegrationPoint(p) {
3179
+ while (p.treeAdapter.getNamespaceURI(p.openElements.current) !== NS.HTML &&
3180
+ p.openElements.currentTagId !== undefined &&
3181
+ !p._isIntegrationPoint(p.openElements.currentTagId, p.openElements.current)) {
3182
+ p.openElements.pop();
3183
+ }
3184
+ }
3185
+ function startTagInForeignContent(p, token) {
3186
+ if (causesExit(token)) {
3187
+ popUntilHtmlOrIntegrationPoint(p);
3188
+ p._startTagOutsideForeignContent(token);
3189
+ }
3190
+ else {
3191
+ const current = p._getAdjustedCurrentElement();
3192
+ const currentNs = p.treeAdapter.getNamespaceURI(current);
3193
+ if (currentNs === NS.MATHML) {
3194
+ adjustTokenMathMLAttrs(token);
3195
+ }
3196
+ else if (currentNs === NS.SVG) {
3197
+ adjustTokenSVGTagName(token);
3198
+ adjustTokenSVGAttrs(token);
3199
+ }
3200
+ adjustTokenXMLAttrs(token);
3201
+ if (token.selfClosing) {
3202
+ p._appendElement(token, currentNs);
3203
+ }
3204
+ else {
3205
+ p._insertElement(token, currentNs);
3206
+ }
3207
+ token.ackSelfClosing = true;
3208
+ }
3209
+ }
3210
+ function endTagInForeignContent(p, token) {
3211
+ if (token.tagID === TAG_ID.P || token.tagID === TAG_ID.BR) {
3212
+ popUntilHtmlOrIntegrationPoint(p);
3213
+ p._endTagOutsideForeignContent(token);
3214
+ return;
3215
+ }
3216
+ for (let i = p.openElements.stackTop; i > 0; i--) {
3217
+ const element = p.openElements.items[i];
3218
+ if (p.treeAdapter.getNamespaceURI(element) === NS.HTML) {
3219
+ p._endTagOutsideForeignContent(token);
3220
+ break;
3221
+ }
3222
+ const tagName = p.treeAdapter.getTagName(element);
3223
+ if (tagName.toLowerCase() === token.tagName) {
3224
+ //NOTE: update the token tag name for `_setEndLocation`.
3225
+ token.tagName = tagName;
3226
+ p.openElements.shortenToLength(i);
3227
+ break;
3228
+ }
3229
+ }
3230
+ }
3231
+
3232
+ export { Parser };
3233
+ //# sourceMappingURL=index.js.map