@thoughtspot/visual-embed-sdk 1.33.0-dc.1 → 1.33.1-dc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (411) hide show
  1. package/cjs/package.json +5 -5
  2. package/cjs/src/embed/app.d.ts +0 -13
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js.map +1 -1
  5. package/cjs/src/embed/bodyless-conversation.d.ts +1 -1
  6. package/cjs/src/embed/bodyless-conversation.js +1 -1
  7. package/cjs/src/embed/conversation.d.ts +15 -0
  8. package/cjs/src/embed/conversation.d.ts.map +1 -1
  9. package/cjs/src/embed/conversation.js +17 -0
  10. package/cjs/src/embed/conversation.js.map +1 -1
  11. package/cjs/src/embed/conversation.spec.js +1 -1
  12. package/cjs/src/embed/conversation.spec.js.map +1 -1
  13. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  14. package/cjs/src/embed/liveboard.js +2 -1
  15. package/cjs/src/embed/liveboard.js.map +1 -1
  16. package/cjs/src/embed/search.d.ts +0 -13
  17. package/cjs/src/embed/search.d.ts.map +1 -1
  18. package/cjs/src/embed/search.js.map +1 -1
  19. package/cjs/src/types.d.ts +18 -35
  20. package/cjs/src/types.d.ts.map +1 -1
  21. package/cjs/src/types.js +4 -33
  22. package/cjs/src/types.js.map +1 -1
  23. package/cjs/src/utils/graphql/answerService/answerService.d.ts +1 -1
  24. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  25. package/cjs/src/utils/graphql/answerService/answerService.js +1 -1
  26. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  27. package/cjs/src/utils/graphql/answerService/answerService.spec.js +18 -0
  28. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  29. package/cjs/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
  30. package/cjs/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
  31. package/cjs/src/utils/graphql/nlsService/nls-answer-service.js +7 -2
  32. package/cjs/src/utils/graphql/nlsService/nls-answer-service.js.map +1 -1
  33. package/cjs/src/utils/liveboardService/liveboardService.d.ts +13 -0
  34. package/cjs/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  35. package/cjs/src/utils/liveboardService/liveboardService.js +13 -0
  36. package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -1
  37. package/dist/es/index-BwesxE_h.js +7369 -0
  38. package/dist/es/index.js +17483 -0
  39. package/dist/es/react/index.js +24027 -0
  40. package/dist/es/react/src/auth.d.ts +171 -0
  41. package/dist/es/react/src/auth.d.ts.map +1 -0
  42. package/dist/es/react/src/auth.spec.d.ts +15 -0
  43. package/dist/es/react/src/auth.spec.d.ts.map +1 -0
  44. package/dist/es/react/src/authToken.d.ts +17 -0
  45. package/dist/es/react/src/authToken.d.ts.map +1 -0
  46. package/dist/es/react/src/authToken.spec.d.ts +2 -0
  47. package/dist/es/react/src/authToken.spec.d.ts.map +1 -0
  48. package/dist/es/react/src/config.d.ts +21 -0
  49. package/dist/es/react/src/config.d.ts.map +1 -0
  50. package/dist/es/react/src/config.spec.d.ts +5 -0
  51. package/dist/es/react/src/config.spec.d.ts.map +1 -0
  52. package/dist/es/react/src/css-variables.d.ts +384 -0
  53. package/dist/es/react/src/css-variables.d.ts.map +1 -0
  54. package/dist/es/react/src/embed/app.d.ts +478 -0
  55. package/dist/es/react/src/embed/app.d.ts.map +1 -0
  56. package/dist/es/react/src/embed/app.spec.d.ts +2 -0
  57. package/dist/es/react/src/embed/app.spec.d.ts.map +1 -0
  58. package/dist/es/react/src/embed/base.d.ts +136 -0
  59. package/dist/es/react/src/embed/base.d.ts.map +1 -0
  60. package/dist/es/react/src/embed/base.spec.d.ts +2 -0
  61. package/dist/es/react/src/embed/base.spec.d.ts.map +1 -0
  62. package/dist/es/react/src/embed/bodyless-conversation.d.ts +26 -0
  63. package/dist/es/react/src/embed/bodyless-conversation.d.ts.map +1 -0
  64. package/dist/es/react/src/embed/bodyless-conversation.spec.d.ts +2 -0
  65. package/dist/es/react/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
  66. package/dist/es/react/src/embed/conversation.d.ts +43 -0
  67. package/dist/es/react/src/embed/conversation.d.ts.map +1 -0
  68. package/dist/es/react/src/embed/conversation.spec.d.ts +2 -0
  69. package/dist/es/react/src/embed/conversation.spec.d.ts.map +1 -0
  70. package/dist/es/react/src/embed/embed.spec.d.ts +2 -0
  71. package/dist/es/react/src/embed/embed.spec.d.ts.map +1 -0
  72. package/dist/es/react/src/embed/embedConfig.d.ts +17 -0
  73. package/dist/es/react/src/embed/embedConfig.d.ts.map +1 -0
  74. package/dist/es/react/src/embed/events.spec.d.ts +2 -0
  75. package/dist/es/react/src/embed/events.spec.d.ts.map +1 -0
  76. package/dist/es/react/src/embed/liveboard.d.ts +379 -0
  77. package/dist/es/react/src/embed/liveboard.d.ts.map +1 -0
  78. package/dist/es/react/src/embed/liveboard.spec.d.ts +2 -0
  79. package/dist/es/react/src/embed/liveboard.spec.d.ts.map +1 -0
  80. package/dist/es/react/src/embed/pinboard.spec.d.ts +2 -0
  81. package/dist/es/react/src/embed/pinboard.spec.d.ts.map +1 -0
  82. package/dist/es/react/src/embed/sage.d.ts +148 -0
  83. package/dist/es/react/src/embed/sage.d.ts.map +1 -0
  84. package/dist/es/react/src/embed/sage.spec.d.ts +2 -0
  85. package/dist/es/react/src/embed/sage.spec.d.ts.map +1 -0
  86. package/dist/es/react/src/embed/search-bar.d.ts +93 -0
  87. package/dist/es/react/src/embed/search-bar.d.ts.map +1 -0
  88. package/dist/es/react/src/embed/search.d.ts +282 -0
  89. package/dist/es/react/src/embed/search.d.ts.map +1 -0
  90. package/dist/es/react/src/embed/search.spec.d.ts +2 -0
  91. package/dist/es/react/src/embed/search.spec.d.ts.map +1 -0
  92. package/dist/es/react/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  93. package/dist/es/react/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  94. package/dist/es/react/src/embed/ts-embed.d.ts +374 -0
  95. package/dist/es/react/src/embed/ts-embed.d.ts.map +1 -0
  96. package/dist/es/react/src/embed/ts-embed.spec.d.ts +2 -0
  97. package/dist/es/react/src/embed/ts-embed.spec.d.ts.map +1 -0
  98. package/dist/es/react/src/errors.d.ts +19 -0
  99. package/dist/es/react/src/errors.d.ts.map +1 -0
  100. package/dist/es/react/src/index.d.ts +28 -0
  101. package/dist/es/react/src/index.d.ts.map +1 -0
  102. package/dist/es/react/src/mixpanel-service.d.ts +35 -0
  103. package/dist/es/react/src/mixpanel-service.d.ts.map +1 -0
  104. package/dist/es/react/src/mixpanel-service.spec.d.ts +2 -0
  105. package/dist/es/react/src/mixpanel-service.spec.d.ts.map +1 -0
  106. package/dist/es/react/src/react/all-types-export.d.ts +3 -0
  107. package/dist/es/react/src/react/all-types-export.d.ts.map +1 -0
  108. package/dist/es/react/src/react/all-types-export.spec.d.ts +2 -0
  109. package/dist/es/react/src/react/all-types-export.spec.d.ts.map +1 -0
  110. package/dist/es/react/src/react/index.d.ts +254 -0
  111. package/dist/es/react/src/react/index.d.ts.map +1 -0
  112. package/dist/es/react/src/react/index.spec.d.ts +3 -0
  113. package/dist/es/react/src/react/index.spec.d.ts.map +1 -0
  114. package/dist/es/react/src/react/util.d.ts +19 -0
  115. package/dist/es/react/src/react/util.d.ts.map +1 -0
  116. package/dist/es/react/src/test/test-utils.d.ts +61 -0
  117. package/dist/es/react/src/test/test-utils.d.ts.map +1 -0
  118. package/dist/es/react/src/tokenizedFetch.d.ts +18 -0
  119. package/dist/es/react/src/tokenizedFetch.d.ts.map +1 -0
  120. package/dist/es/react/src/types.d.ts +4363 -0
  121. package/dist/es/react/src/types.d.ts.map +1 -0
  122. package/dist/es/react/src/utils/authService/authService.d.ts +45 -0
  123. package/dist/es/react/src/utils/authService/authService.d.ts.map +1 -0
  124. package/dist/es/react/src/utils/authService/authService.spec.d.ts +2 -0
  125. package/dist/es/react/src/utils/authService/authService.spec.d.ts.map +1 -0
  126. package/dist/es/react/src/utils/authService/index.d.ts +3 -0
  127. package/dist/es/react/src/utils/authService/index.d.ts.map +1 -0
  128. package/dist/es/react/src/utils/authService/tokenizedAuthService.d.ts +22 -0
  129. package/dist/es/react/src/utils/authService/tokenizedAuthService.d.ts.map +1 -0
  130. package/dist/es/react/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  131. package/dist/es/react/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  132. package/dist/es/react/src/utils/global-styles.d.ts +2 -0
  133. package/dist/es/react/src/utils/global-styles.d.ts.map +1 -0
  134. package/dist/es/react/src/utils/global-styles.spec.d.ts +2 -0
  135. package/dist/es/react/src/utils/global-styles.spec.d.ts.map +1 -0
  136. package/dist/es/react/src/utils/graphql/answerService/answer-queries.d.ts +10 -0
  137. package/dist/es/react/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -0
  138. package/dist/es/react/src/utils/graphql/answerService/answerService.d.ts +180 -0
  139. package/dist/es/react/src/utils/graphql/answerService/answerService.d.ts.map +1 -0
  140. package/dist/es/react/src/utils/graphql/answerService/answerService.spec.d.ts +2 -0
  141. package/dist/es/react/src/utils/graphql/answerService/answerService.spec.d.ts.map +1 -0
  142. package/dist/es/react/src/utils/graphql/graphql-request.d.ts +15 -0
  143. package/dist/es/react/src/utils/graphql/graphql-request.d.ts.map +1 -0
  144. package/dist/es/react/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  145. package/dist/es/react/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  146. package/dist/es/react/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
  147. package/dist/es/react/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
  148. package/dist/es/react/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
  149. package/dist/es/react/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
  150. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
  151. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
  152. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.d.ts +17 -0
  153. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
  154. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
  155. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
  156. package/dist/es/react/src/utils/graphql/preview-service.d.ts +9 -0
  157. package/dist/es/react/src/utils/graphql/preview-service.d.ts.map +1 -0
  158. package/dist/es/react/src/utils/graphql/preview-service.spec.d.ts +2 -0
  159. package/dist/es/react/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
  160. package/dist/es/react/src/utils/graphql/sourceService.d.ts +8 -0
  161. package/dist/es/react/src/utils/graphql/sourceService.d.ts.map +1 -0
  162. package/dist/es/react/src/utils/graphql/sourceService.spec.d.ts +2 -0
  163. package/dist/es/react/src/utils/graphql/sourceService.spec.d.ts.map +1 -0
  164. package/dist/es/react/src/utils/liveboardService/liveboardService.d.ts +16 -0
  165. package/dist/es/react/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
  166. package/dist/es/react/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
  167. package/dist/es/react/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
  168. package/dist/es/react/src/utils/logger.d.ts +18 -0
  169. package/dist/es/react/src/utils/logger.d.ts.map +1 -0
  170. package/dist/es/react/src/utils/logger.spec.d.ts +25 -0
  171. package/dist/es/react/src/utils/logger.spec.d.ts.map +1 -0
  172. package/dist/es/react/src/utils/processData.d.ts +22 -0
  173. package/dist/es/react/src/utils/processData.d.ts.map +1 -0
  174. package/dist/es/react/src/utils/processData.spec.d.ts +2 -0
  175. package/dist/es/react/src/utils/processData.spec.d.ts.map +1 -0
  176. package/dist/es/react/src/utils/processTrigger.d.ts +16 -0
  177. package/dist/es/react/src/utils/processTrigger.d.ts.map +1 -0
  178. package/dist/es/react/src/utils/processTrigger.spec.d.ts +2 -0
  179. package/dist/es/react/src/utils/processTrigger.spec.d.ts.map +1 -0
  180. package/dist/es/react/src/utils/reporting.d.ts +16 -0
  181. package/dist/es/react/src/utils/reporting.d.ts.map +1 -0
  182. package/dist/es/react/src/utils/reporting.spec.d.ts +2 -0
  183. package/dist/es/react/src/utils/reporting.spec.d.ts.map +1 -0
  184. package/dist/es/react/src/utils/sessionInfoService.d.ts +66 -0
  185. package/dist/es/react/src/utils/sessionInfoService.d.ts.map +1 -0
  186. package/dist/es/react/src/utils.d.ts +103 -0
  187. package/dist/es/react/src/utils.d.ts.map +1 -0
  188. package/dist/es/react/src/utils.spec.d.ts +2 -0
  189. package/dist/es/react/src/utils.spec.d.ts.map +1 -0
  190. package/dist/es/src/auth.d.ts +171 -0
  191. package/dist/es/src/auth.d.ts.map +1 -0
  192. package/dist/es/src/auth.spec.d.ts +15 -0
  193. package/dist/es/src/auth.spec.d.ts.map +1 -0
  194. package/dist/es/src/authToken.d.ts +17 -0
  195. package/dist/es/src/authToken.d.ts.map +1 -0
  196. package/dist/es/src/authToken.spec.d.ts +2 -0
  197. package/dist/es/src/authToken.spec.d.ts.map +1 -0
  198. package/dist/es/src/config.d.ts +21 -0
  199. package/dist/es/src/config.d.ts.map +1 -0
  200. package/dist/es/src/config.spec.d.ts +5 -0
  201. package/dist/es/src/config.spec.d.ts.map +1 -0
  202. package/dist/es/src/css-variables.d.ts +384 -0
  203. package/dist/es/src/css-variables.d.ts.map +1 -0
  204. package/dist/es/src/embed/app.d.ts +478 -0
  205. package/dist/es/src/embed/app.d.ts.map +1 -0
  206. package/dist/es/src/embed/app.spec.d.ts +2 -0
  207. package/dist/es/src/embed/app.spec.d.ts.map +1 -0
  208. package/dist/es/src/embed/base.d.ts +136 -0
  209. package/dist/es/src/embed/base.d.ts.map +1 -0
  210. package/dist/es/src/embed/base.spec.d.ts +2 -0
  211. package/dist/es/src/embed/base.spec.d.ts.map +1 -0
  212. package/dist/es/src/embed/bodyless-conversation.d.ts +26 -0
  213. package/dist/es/src/embed/bodyless-conversation.d.ts.map +1 -0
  214. package/dist/es/src/embed/bodyless-conversation.spec.d.ts +2 -0
  215. package/dist/es/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
  216. package/dist/es/src/embed/conversation.d.ts +43 -0
  217. package/dist/es/src/embed/conversation.d.ts.map +1 -0
  218. package/dist/es/src/embed/conversation.spec.d.ts +2 -0
  219. package/dist/es/src/embed/conversation.spec.d.ts.map +1 -0
  220. package/dist/es/src/embed/embed.spec.d.ts +2 -0
  221. package/dist/es/src/embed/embed.spec.d.ts.map +1 -0
  222. package/dist/es/src/embed/embedConfig.d.ts +17 -0
  223. package/dist/es/src/embed/embedConfig.d.ts.map +1 -0
  224. package/dist/es/src/embed/events.spec.d.ts +2 -0
  225. package/dist/es/src/embed/events.spec.d.ts.map +1 -0
  226. package/dist/es/src/embed/liveboard.d.ts +379 -0
  227. package/dist/es/src/embed/liveboard.d.ts.map +1 -0
  228. package/dist/es/src/embed/liveboard.spec.d.ts +2 -0
  229. package/dist/es/src/embed/liveboard.spec.d.ts.map +1 -0
  230. package/dist/es/src/embed/pinboard.spec.d.ts +2 -0
  231. package/dist/es/src/embed/pinboard.spec.d.ts.map +1 -0
  232. package/dist/es/src/embed/sage.d.ts +148 -0
  233. package/dist/es/src/embed/sage.d.ts.map +1 -0
  234. package/dist/es/src/embed/sage.spec.d.ts +2 -0
  235. package/dist/es/src/embed/sage.spec.d.ts.map +1 -0
  236. package/dist/es/src/embed/search-bar.d.ts +93 -0
  237. package/dist/es/src/embed/search-bar.d.ts.map +1 -0
  238. package/dist/es/src/embed/search.d.ts +282 -0
  239. package/dist/es/src/embed/search.d.ts.map +1 -0
  240. package/dist/es/src/embed/search.spec.d.ts +2 -0
  241. package/dist/es/src/embed/search.spec.d.ts.map +1 -0
  242. package/dist/es/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  243. package/dist/es/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  244. package/dist/es/src/embed/ts-embed.d.ts +374 -0
  245. package/dist/es/src/embed/ts-embed.d.ts.map +1 -0
  246. package/dist/es/src/embed/ts-embed.spec.d.ts +2 -0
  247. package/dist/es/src/embed/ts-embed.spec.d.ts.map +1 -0
  248. package/dist/es/src/errors.d.ts +19 -0
  249. package/dist/es/src/errors.d.ts.map +1 -0
  250. package/dist/es/src/index.d.ts +28 -0
  251. package/dist/es/src/index.d.ts.map +1 -0
  252. package/dist/es/src/mixpanel-service.d.ts +35 -0
  253. package/dist/es/src/mixpanel-service.d.ts.map +1 -0
  254. package/dist/es/src/mixpanel-service.spec.d.ts +2 -0
  255. package/dist/es/src/mixpanel-service.spec.d.ts.map +1 -0
  256. package/dist/es/src/react/all-types-export.d.ts +3 -0
  257. package/dist/es/src/react/all-types-export.d.ts.map +1 -0
  258. package/dist/es/src/react/all-types-export.spec.d.ts +2 -0
  259. package/dist/es/src/react/all-types-export.spec.d.ts.map +1 -0
  260. package/dist/es/src/react/index.d.ts +254 -0
  261. package/dist/es/src/react/index.d.ts.map +1 -0
  262. package/dist/es/src/react/index.spec.d.ts +3 -0
  263. package/dist/es/src/react/index.spec.d.ts.map +1 -0
  264. package/dist/es/src/react/util.d.ts +19 -0
  265. package/dist/es/src/react/util.d.ts.map +1 -0
  266. package/dist/es/src/test/test-utils.d.ts +61 -0
  267. package/dist/es/src/test/test-utils.d.ts.map +1 -0
  268. package/dist/es/src/tokenizedFetch.d.ts +18 -0
  269. package/dist/es/src/tokenizedFetch.d.ts.map +1 -0
  270. package/dist/es/src/types.d.ts +4363 -0
  271. package/dist/es/src/types.d.ts.map +1 -0
  272. package/dist/es/src/utils/authService/authService.d.ts +45 -0
  273. package/dist/es/src/utils/authService/authService.d.ts.map +1 -0
  274. package/dist/es/src/utils/authService/authService.spec.d.ts +2 -0
  275. package/dist/es/src/utils/authService/authService.spec.d.ts.map +1 -0
  276. package/dist/es/src/utils/authService/index.d.ts +3 -0
  277. package/dist/es/src/utils/authService/index.d.ts.map +1 -0
  278. package/dist/es/src/utils/authService/tokenizedAuthService.d.ts +22 -0
  279. package/dist/es/src/utils/authService/tokenizedAuthService.d.ts.map +1 -0
  280. package/dist/es/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  281. package/dist/es/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  282. package/dist/es/src/utils/global-styles.d.ts +2 -0
  283. package/dist/es/src/utils/global-styles.d.ts.map +1 -0
  284. package/dist/es/src/utils/global-styles.spec.d.ts +2 -0
  285. package/dist/es/src/utils/global-styles.spec.d.ts.map +1 -0
  286. package/dist/es/src/utils/graphql/answerService/answer-queries.d.ts +10 -0
  287. package/dist/es/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -0
  288. package/dist/es/src/utils/graphql/answerService/answerService.d.ts +180 -0
  289. package/dist/es/src/utils/graphql/answerService/answerService.d.ts.map +1 -0
  290. package/dist/es/src/utils/graphql/answerService/answerService.spec.d.ts +2 -0
  291. package/dist/es/src/utils/graphql/answerService/answerService.spec.d.ts.map +1 -0
  292. package/dist/es/src/utils/graphql/graphql-request.d.ts +15 -0
  293. package/dist/es/src/utils/graphql/graphql-request.d.ts.map +1 -0
  294. package/dist/es/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  295. package/dist/es/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  296. package/dist/es/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
  297. package/dist/es/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
  298. package/dist/es/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
  299. package/dist/es/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
  300. package/dist/es/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
  301. package/dist/es/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
  302. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.d.ts +17 -0
  303. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
  304. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
  305. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
  306. package/dist/es/src/utils/graphql/preview-service.d.ts +9 -0
  307. package/dist/es/src/utils/graphql/preview-service.d.ts.map +1 -0
  308. package/dist/es/src/utils/graphql/preview-service.spec.d.ts +2 -0
  309. package/dist/es/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
  310. package/dist/es/src/utils/graphql/sourceService.d.ts +8 -0
  311. package/dist/es/src/utils/graphql/sourceService.d.ts.map +1 -0
  312. package/dist/es/src/utils/graphql/sourceService.spec.d.ts +2 -0
  313. package/dist/es/src/utils/graphql/sourceService.spec.d.ts.map +1 -0
  314. package/dist/es/src/utils/liveboardService/liveboardService.d.ts +16 -0
  315. package/dist/es/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
  316. package/dist/es/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
  317. package/dist/es/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
  318. package/dist/es/src/utils/logger.d.ts +18 -0
  319. package/dist/es/src/utils/logger.d.ts.map +1 -0
  320. package/dist/es/src/utils/logger.spec.d.ts +25 -0
  321. package/dist/es/src/utils/logger.spec.d.ts.map +1 -0
  322. package/dist/es/src/utils/processData.d.ts +22 -0
  323. package/dist/es/src/utils/processData.d.ts.map +1 -0
  324. package/dist/es/src/utils/processData.spec.d.ts +2 -0
  325. package/dist/es/src/utils/processData.spec.d.ts.map +1 -0
  326. package/dist/es/src/utils/processTrigger.d.ts +16 -0
  327. package/dist/es/src/utils/processTrigger.d.ts.map +1 -0
  328. package/dist/es/src/utils/processTrigger.spec.d.ts +2 -0
  329. package/dist/es/src/utils/processTrigger.spec.d.ts.map +1 -0
  330. package/dist/es/src/utils/reporting.d.ts +16 -0
  331. package/dist/es/src/utils/reporting.d.ts.map +1 -0
  332. package/dist/es/src/utils/reporting.spec.d.ts +2 -0
  333. package/dist/es/src/utils/reporting.spec.d.ts.map +1 -0
  334. package/dist/es/src/utils/sessionInfoService.d.ts +66 -0
  335. package/dist/es/src/utils/sessionInfoService.d.ts.map +1 -0
  336. package/dist/es/src/utils.d.ts +103 -0
  337. package/dist/es/src/utils.d.ts.map +1 -0
  338. package/dist/es/src/utils.spec.d.ts +2 -0
  339. package/dist/es/src/utils.spec.d.ts.map +1 -0
  340. package/dist/src/embed/app.d.ts +0 -13
  341. package/dist/src/embed/app.d.ts.map +1 -1
  342. package/dist/src/embed/bodyless-conversation.d.ts +1 -1
  343. package/dist/src/embed/conversation.d.ts +15 -0
  344. package/dist/src/embed/conversation.d.ts.map +1 -1
  345. package/dist/src/embed/liveboard.d.ts.map +1 -1
  346. package/dist/src/embed/search.d.ts +0 -13
  347. package/dist/src/embed/search.d.ts.map +1 -1
  348. package/dist/src/types.d.ts +18 -35
  349. package/dist/src/types.d.ts.map +1 -1
  350. package/dist/src/utils/graphql/answerService/answerService.d.ts +1 -1
  351. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  352. package/dist/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
  353. package/dist/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
  354. package/dist/src/utils/liveboardService/liveboardService.d.ts +13 -0
  355. package/dist/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  356. package/dist/tsembed-react.es.js +488 -462
  357. package/dist/tsembed-react.js +686 -503
  358. package/dist/tsembed.es.js +455 -430
  359. package/dist/tsembed.js +672 -468
  360. package/dist/visual-embed-sdk-react-full.d.ts +55 -65
  361. package/dist/visual-embed-sdk-react.d.ts +55 -65
  362. package/dist/visual-embed-sdk.d.ts +40 -65
  363. package/lib/package.json +5 -5
  364. package/lib/src/embed/app.d.ts +0 -13
  365. package/lib/src/embed/app.d.ts.map +1 -1
  366. package/lib/src/embed/app.js.map +1 -1
  367. package/lib/src/embed/bodyless-conversation.d.ts +1 -1
  368. package/lib/src/embed/bodyless-conversation.js +1 -1
  369. package/lib/src/embed/conversation.d.ts +15 -0
  370. package/lib/src/embed/conversation.d.ts.map +1 -1
  371. package/lib/src/embed/conversation.js +17 -0
  372. package/lib/src/embed/conversation.js.map +1 -1
  373. package/lib/src/embed/conversation.spec.js +1 -1
  374. package/lib/src/embed/conversation.spec.js.map +1 -1
  375. package/lib/src/embed/liveboard.d.ts.map +1 -1
  376. package/lib/src/embed/liveboard.js +2 -1
  377. package/lib/src/embed/liveboard.js.map +1 -1
  378. package/lib/src/embed/search.d.ts +0 -13
  379. package/lib/src/embed/search.d.ts.map +1 -1
  380. package/lib/src/embed/search.js.map +1 -1
  381. package/lib/src/types.d.ts +18 -35
  382. package/lib/src/types.d.ts.map +1 -1
  383. package/lib/src/types.js +4 -33
  384. package/lib/src/types.js.map +1 -1
  385. package/lib/src/utils/graphql/answerService/answerService.d.ts +1 -1
  386. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  387. package/lib/src/utils/graphql/answerService/answerService.js +1 -1
  388. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  389. package/lib/src/utils/graphql/answerService/answerService.spec.js +18 -0
  390. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  391. package/lib/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
  392. package/lib/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
  393. package/lib/src/utils/graphql/nlsService/nls-answer-service.js +7 -2
  394. package/lib/src/utils/graphql/nlsService/nls-answer-service.js.map +1 -1
  395. package/lib/src/utils/liveboardService/liveboardService.d.ts +13 -0
  396. package/lib/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  397. package/lib/src/utils/liveboardService/liveboardService.js +13 -0
  398. package/lib/src/utils/liveboardService/liveboardService.js.map +1 -1
  399. package/lib/src/visual-embed-sdk.d.ts +40 -65
  400. package/package.json +5 -5
  401. package/src/embed/app.ts +0 -13
  402. package/src/embed/bodyless-conversation.ts +1 -1
  403. package/src/embed/conversation.spec.ts +1 -1
  404. package/src/embed/conversation.ts +16 -0
  405. package/src/embed/liveboard.ts +2 -0
  406. package/src/embed/search.ts +0 -13
  407. package/src/types.ts +17 -34
  408. package/src/utils/graphql/answerService/answerService.spec.ts +24 -0
  409. package/src/utils/graphql/answerService/answerService.ts +1 -1
  410. package/src/utils/graphql/nlsService/nls-answer-service.ts +7 -2
  411. package/src/utils/liveboardService/liveboardService.ts +13 -0
@@ -1,4 +1,20 @@
1
- import React, { useEffect, useMemo, useRef } from 'react';
1
+ import * as React from 'react';
2
+ import React__default from 'react';
3
+
4
+ function _mergeNamespaces(n, m) {
5
+ m.forEach(function (e) {
6
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
7
+ if (k !== 'default' && !(k in n)) {
8
+ var d = Object.getOwnPropertyDescriptor(e, k);
9
+ Object.defineProperty(n, k, d.get ? d : {
10
+ enumerable: true,
11
+ get: function () { return e[k]; }
12
+ });
13
+ }
14
+ });
15
+ });
16
+ return Object.freeze(n);
17
+ }
2
18
 
3
19
  var has = Object.prototype.hasOwnProperty;
4
20
 
@@ -92,8 +108,8 @@ function dequal(foo, bar) {
92
108
 
93
109
 
94
110
  function useDeepCompareMemoize(value) {
95
- var ref = useRef(value);
96
- var signalRef = useRef(0);
111
+ var ref = React.useRef(value);
112
+ var signalRef = React.useRef(0);
97
113
 
98
114
  if (!dequal(value, ref.current)) {
99
115
  ref.current = value;
@@ -101,7 +117,7 @@ function useDeepCompareMemoize(value) {
101
117
  } // eslint-disable-next-line react-hooks/exhaustive-deps
102
118
 
103
119
 
104
- return useMemo(function () {
120
+ return React.useMemo(function () {
105
121
  return ref.current;
106
122
  }, [signalRef.current]);
107
123
  }
@@ -109,11 +125,11 @@ function useDeepCompareMemoize(value) {
109
125
  function useDeepCompareEffect(callback, dependencies) {
110
126
 
111
127
 
112
- return useEffect(callback, useDeepCompareMemoize(dependencies));
128
+ return React.useEffect(callback, useDeepCompareMemoize(dependencies));
113
129
  }
114
130
 
115
131
  // istanbul ignore next
116
- const isObject = (obj) => {
132
+ const isObject$1 = (obj) => {
117
133
  if (typeof obj === "object" && obj !== null) {
118
134
  if (typeof Object.getPrototypeOf === "function") {
119
135
  const prototype = Object.getPrototypeOf(obj);
@@ -138,7 +154,7 @@ const merge = (...objects) => objects.reduce((result, current) => {
138
154
  : [...result[key], ...current[key]]
139
155
  : current[key];
140
156
  }
141
- else if (isObject(result[key]) && isObject(current[key])) {
157
+ else if (isObject$1(result[key]) && isObject$1(current[key])) {
142
158
  result[key] = merge(result[key], current[key]);
143
159
  }
144
160
  else {
@@ -4166,20 +4182,20 @@ var Symbol$1 = _root.Symbol;
4166
4182
  var _Symbol = Symbol$1;
4167
4183
 
4168
4184
  /** Used for built-in method references. */
4169
- var objectProto = Object.prototype;
4185
+ var objectProto$b = Object.prototype;
4170
4186
 
4171
4187
  /** Used to check objects for own properties. */
4172
- var hasOwnProperty = objectProto.hasOwnProperty;
4188
+ var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
4173
4189
 
4174
4190
  /**
4175
4191
  * Used to resolve the
4176
4192
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4177
4193
  * of values.
4178
4194
  */
4179
- var nativeObjectToString = objectProto.toString;
4195
+ var nativeObjectToString$1 = objectProto$b.toString;
4180
4196
 
4181
4197
  /** Built-in value references. */
4182
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
4198
+ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
4183
4199
 
4184
4200
  /**
4185
4201
  * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
@@ -4189,20 +4205,20 @@ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
4189
4205
  * @returns {string} Returns the raw `toStringTag`.
4190
4206
  */
4191
4207
  function getRawTag(value) {
4192
- var isOwn = hasOwnProperty.call(value, symToStringTag),
4193
- tag = value[symToStringTag];
4208
+ var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
4209
+ tag = value[symToStringTag$1];
4194
4210
 
4195
4211
  try {
4196
- value[symToStringTag] = undefined;
4212
+ value[symToStringTag$1] = undefined;
4197
4213
  var unmasked = true;
4198
4214
  } catch (e) {}
4199
4215
 
4200
- var result = nativeObjectToString.call(value);
4216
+ var result = nativeObjectToString$1.call(value);
4201
4217
  if (unmasked) {
4202
4218
  if (isOwn) {
4203
- value[symToStringTag] = tag;
4219
+ value[symToStringTag$1] = tag;
4204
4220
  } else {
4205
- delete value[symToStringTag];
4221
+ delete value[symToStringTag$1];
4206
4222
  }
4207
4223
  }
4208
4224
  return result;
@@ -4211,14 +4227,14 @@ function getRawTag(value) {
4211
4227
  var _getRawTag = getRawTag;
4212
4228
 
4213
4229
  /** Used for built-in method references. */
4214
- var objectProto$1 = Object.prototype;
4230
+ var objectProto$a = Object.prototype;
4215
4231
 
4216
4232
  /**
4217
4233
  * Used to resolve the
4218
4234
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4219
4235
  * of values.
4220
4236
  */
4221
- var nativeObjectToString$1 = objectProto$1.toString;
4237
+ var nativeObjectToString = objectProto$a.toString;
4222
4238
 
4223
4239
  /**
4224
4240
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -4228,17 +4244,17 @@ var nativeObjectToString$1 = objectProto$1.toString;
4228
4244
  * @returns {string} Returns the converted string.
4229
4245
  */
4230
4246
  function objectToString(value) {
4231
- return nativeObjectToString$1.call(value);
4247
+ return nativeObjectToString.call(value);
4232
4248
  }
4233
4249
 
4234
4250
  var _objectToString = objectToString;
4235
4251
 
4236
4252
  /** `Object#toString` result references. */
4237
- var nullTag = '[object Null]',
4253
+ var nullTag$1 = '[object Null]',
4238
4254
  undefinedTag = '[object Undefined]';
4239
4255
 
4240
4256
  /** Built-in value references. */
4241
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
4257
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
4242
4258
 
4243
4259
  /**
4244
4260
  * The base implementation of `getTag` without fallbacks for buggy environments.
@@ -4249,9 +4265,9 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
4249
4265
  */
4250
4266
  function baseGetTag(value) {
4251
4267
  if (value == null) {
4252
- return value === undefined ? undefinedTag : nullTag;
4268
+ return value === undefined ? undefinedTag : nullTag$1;
4253
4269
  }
4254
- return (symToStringTag$1 && symToStringTag$1 in Object(value))
4270
+ return (symToStringTag && symToStringTag in Object(value))
4255
4271
  ? _getRawTag(value)
4256
4272
  : _objectToString(value);
4257
4273
  }
@@ -4283,16 +4299,16 @@ var _baseGetTag = baseGetTag;
4283
4299
  * _.isObject(null);
4284
4300
  * // => false
4285
4301
  */
4286
- function isObject$1(value) {
4302
+ function isObject(value) {
4287
4303
  var type = typeof value;
4288
4304
  return value != null && (type == 'object' || type == 'function');
4289
4305
  }
4290
4306
 
4291
- var isObject_1 = isObject$1;
4307
+ var isObject_1 = isObject;
4292
4308
 
4293
4309
  /** `Object#toString` result references. */
4294
4310
  var asyncTag = '[object AsyncFunction]',
4295
- funcTag = '[object Function]',
4311
+ funcTag$1 = '[object Function]',
4296
4312
  genTag = '[object GeneratorFunction]',
4297
4313
  proxyTag = '[object Proxy]';
4298
4314
 
@@ -4320,7 +4336,7 @@ function isFunction(value) {
4320
4336
  // The use of `Object#toString` avoids issues with the `typeof` operator
4321
4337
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
4322
4338
  var tag = _baseGetTag(value);
4323
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
4339
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
4324
4340
  }
4325
4341
 
4326
4342
  var isFunction_1 = isFunction;
@@ -4350,10 +4366,10 @@ function isMasked(func) {
4350
4366
  var _isMasked = isMasked;
4351
4367
 
4352
4368
  /** Used for built-in method references. */
4353
- var funcProto = Function.prototype;
4369
+ var funcProto$1 = Function.prototype;
4354
4370
 
4355
4371
  /** Used to resolve the decompiled source of functions. */
4356
- var funcToString = funcProto.toString;
4372
+ var funcToString$1 = funcProto$1.toString;
4357
4373
 
4358
4374
  /**
4359
4375
  * Converts `func` to its source code.
@@ -4365,7 +4381,7 @@ var funcToString = funcProto.toString;
4365
4381
  function toSource(func) {
4366
4382
  if (func != null) {
4367
4383
  try {
4368
- return funcToString.call(func);
4384
+ return funcToString$1.call(func);
4369
4385
  } catch (e) {}
4370
4386
  try {
4371
4387
  return (func + '');
@@ -4386,18 +4402,18 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
4386
4402
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
4387
4403
 
4388
4404
  /** Used for built-in method references. */
4389
- var funcProto$1 = Function.prototype,
4390
- objectProto$2 = Object.prototype;
4405
+ var funcProto = Function.prototype,
4406
+ objectProto$9 = Object.prototype;
4391
4407
 
4392
4408
  /** Used to resolve the decompiled source of functions. */
4393
- var funcToString$1 = funcProto$1.toString;
4409
+ var funcToString = funcProto.toString;
4394
4410
 
4395
4411
  /** Used to check objects for own properties. */
4396
- var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
4412
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4397
4413
 
4398
4414
  /** Used to detect if a method is native. */
4399
4415
  var reIsNative = RegExp('^' +
4400
- funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar, '\\$&')
4416
+ funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
4401
4417
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
4402
4418
  );
4403
4419
 
@@ -4491,13 +4507,13 @@ function hashDelete(key) {
4491
4507
  var _hashDelete = hashDelete;
4492
4508
 
4493
4509
  /** Used to stand-in for `undefined` hash values. */
4494
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
4510
+ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4495
4511
 
4496
4512
  /** Used for built-in method references. */
4497
- var objectProto$3 = Object.prototype;
4513
+ var objectProto$8 = Object.prototype;
4498
4514
 
4499
4515
  /** Used to check objects for own properties. */
4500
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
4516
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4501
4517
 
4502
4518
  /**
4503
4519
  * Gets the hash value for `key`.
@@ -4512,18 +4528,18 @@ function hashGet(key) {
4512
4528
  var data = this.__data__;
4513
4529
  if (_nativeCreate) {
4514
4530
  var result = data[key];
4515
- return result === HASH_UNDEFINED ? undefined : result;
4531
+ return result === HASH_UNDEFINED$2 ? undefined : result;
4516
4532
  }
4517
- return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
4533
+ return hasOwnProperty$7.call(data, key) ? data[key] : undefined;
4518
4534
  }
4519
4535
 
4520
4536
  var _hashGet = hashGet;
4521
4537
 
4522
4538
  /** Used for built-in method references. */
4523
- var objectProto$4 = Object.prototype;
4539
+ var objectProto$7 = Object.prototype;
4524
4540
 
4525
4541
  /** Used to check objects for own properties. */
4526
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
4542
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
4527
4543
 
4528
4544
  /**
4529
4545
  * Checks if a hash value for `key` exists.
@@ -4536,7 +4552,7 @@ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
4536
4552
  */
4537
4553
  function hashHas(key) {
4538
4554
  var data = this.__data__;
4539
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key);
4555
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$6.call(data, key);
4540
4556
  }
4541
4557
 
4542
4558
  var _hashHas = hashHas;
@@ -4789,7 +4805,7 @@ Stack.prototype.set = _stackSet;
4789
4805
  var _Stack = Stack;
4790
4806
 
4791
4807
  /** Used to stand-in for `undefined` hash values. */
4792
- var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4808
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
4793
4809
 
4794
4810
  /**
4795
4811
  * Adds `value` to the array cache.
@@ -4802,7 +4818,7 @@ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4802
4818
  * @returns {Object} Returns the cache instance.
4803
4819
  */
4804
4820
  function setCacheAdd(value) {
4805
- this.__data__.set(value, HASH_UNDEFINED$2);
4821
+ this.__data__.set(value, HASH_UNDEFINED);
4806
4822
  return this;
4807
4823
  }
4808
4824
 
@@ -4886,8 +4902,8 @@ function cacheHas(cache, key) {
4886
4902
  var _cacheHas = cacheHas;
4887
4903
 
4888
4904
  /** Used to compose bitmasks for value comparisons. */
4889
- var COMPARE_PARTIAL_FLAG = 1,
4890
- COMPARE_UNORDERED_FLAG = 2;
4905
+ var COMPARE_PARTIAL_FLAG$3 = 1,
4906
+ COMPARE_UNORDERED_FLAG$1 = 2;
4891
4907
 
4892
4908
  /**
4893
4909
  * A specialized version of `baseIsEqualDeep` for arrays with support for
@@ -4903,7 +4919,7 @@ var COMPARE_PARTIAL_FLAG = 1,
4903
4919
  * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
4904
4920
  */
4905
4921
  function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
4906
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
4922
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
4907
4923
  arrLength = array.length,
4908
4924
  othLength = other.length;
4909
4925
 
@@ -4918,7 +4934,7 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
4918
4934
  }
4919
4935
  var index = -1,
4920
4936
  result = true,
4921
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new _SetCache : undefined;
4937
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$1) ? new _SetCache : undefined;
4922
4938
 
4923
4939
  stack.set(array, other);
4924
4940
  stack.set(other, array);
@@ -5010,22 +5026,22 @@ function setToArray(set) {
5010
5026
  var _setToArray = setToArray;
5011
5027
 
5012
5028
  /** Used to compose bitmasks for value comparisons. */
5013
- var COMPARE_PARTIAL_FLAG$1 = 1,
5014
- COMPARE_UNORDERED_FLAG$1 = 2;
5029
+ var COMPARE_PARTIAL_FLAG$2 = 1,
5030
+ COMPARE_UNORDERED_FLAG = 2;
5015
5031
 
5016
5032
  /** `Object#toString` result references. */
5017
- var boolTag = '[object Boolean]',
5018
- dateTag = '[object Date]',
5019
- errorTag = '[object Error]',
5020
- mapTag = '[object Map]',
5021
- numberTag = '[object Number]',
5022
- regexpTag = '[object RegExp]',
5023
- setTag = '[object Set]',
5024
- stringTag = '[object String]',
5033
+ var boolTag$2 = '[object Boolean]',
5034
+ dateTag$1 = '[object Date]',
5035
+ errorTag$1 = '[object Error]',
5036
+ mapTag$2 = '[object Map]',
5037
+ numberTag$1 = '[object Number]',
5038
+ regexpTag$1 = '[object RegExp]',
5039
+ setTag$2 = '[object Set]',
5040
+ stringTag$1 = '[object String]',
5025
5041
  symbolTag = '[object Symbol]';
5026
5042
 
5027
- var arrayBufferTag = '[object ArrayBuffer]',
5028
- dataViewTag = '[object DataView]';
5043
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
5044
+ dataViewTag$2 = '[object DataView]';
5029
5045
 
5030
5046
  /** Used to convert symbols to primitives and strings. */
5031
5047
  var symbolProto = _Symbol ? _Symbol.prototype : undefined,
@@ -5050,7 +5066,7 @@ var symbolProto = _Symbol ? _Symbol.prototype : undefined,
5050
5066
  */
5051
5067
  function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
5052
5068
  switch (tag) {
5053
- case dataViewTag:
5069
+ case dataViewTag$2:
5054
5070
  if ((object.byteLength != other.byteLength) ||
5055
5071
  (object.byteOffset != other.byteOffset)) {
5056
5072
  return false;
@@ -5058,35 +5074,35 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
5058
5074
  object = object.buffer;
5059
5075
  other = other.buffer;
5060
5076
 
5061
- case arrayBufferTag:
5077
+ case arrayBufferTag$1:
5062
5078
  if ((object.byteLength != other.byteLength) ||
5063
5079
  !equalFunc(new _Uint8Array(object), new _Uint8Array(other))) {
5064
5080
  return false;
5065
5081
  }
5066
5082
  return true;
5067
5083
 
5068
- case boolTag:
5069
- case dateTag:
5070
- case numberTag:
5084
+ case boolTag$2:
5085
+ case dateTag$1:
5086
+ case numberTag$1:
5071
5087
  // Coerce booleans to `1` or `0` and dates to milliseconds.
5072
5088
  // Invalid dates are coerced to `NaN`.
5073
5089
  return eq_1(+object, +other);
5074
5090
 
5075
- case errorTag:
5091
+ case errorTag$1:
5076
5092
  return object.name == other.name && object.message == other.message;
5077
5093
 
5078
- case regexpTag:
5079
- case stringTag:
5094
+ case regexpTag$1:
5095
+ case stringTag$1:
5080
5096
  // Coerce regexes to strings and treat strings, primitives and objects,
5081
5097
  // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
5082
5098
  // for more details.
5083
5099
  return object == (other + '');
5084
5100
 
5085
- case mapTag:
5101
+ case mapTag$2:
5086
5102
  var convert = _mapToArray;
5087
5103
 
5088
- case setTag:
5089
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1;
5104
+ case setTag$2:
5105
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
5090
5106
  convert || (convert = _setToArray);
5091
5107
 
5092
5108
  if (object.size != other.size && !isPartial) {
@@ -5097,7 +5113,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
5097
5113
  if (stacked) {
5098
5114
  return stacked == other;
5099
5115
  }
5100
- bitmask |= COMPARE_UNORDERED_FLAG$1;
5116
+ bitmask |= COMPARE_UNORDERED_FLAG;
5101
5117
 
5102
5118
  // Recursively compare objects (susceptible to call stack limits).
5103
5119
  stack.set(object, other);
@@ -5232,10 +5248,10 @@ function stubArray() {
5232
5248
  var stubArray_1 = stubArray;
5233
5249
 
5234
5250
  /** Used for built-in method references. */
5235
- var objectProto$5 = Object.prototype;
5251
+ var objectProto$6 = Object.prototype;
5236
5252
 
5237
5253
  /** Built-in value references. */
5238
- var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5254
+ var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5239
5255
 
5240
5256
  /* Built-in method references for those with the same name as other `lodash` methods. */
5241
5257
  var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -5253,7 +5269,7 @@ var getSymbols = !nativeGetSymbols ? stubArray_1 : function(object) {
5253
5269
  }
5254
5270
  object = Object(object);
5255
5271
  return _arrayFilter(nativeGetSymbols(object), function(symbol) {
5256
- return propertyIsEnumerable.call(object, symbol);
5272
+ return propertyIsEnumerable$1.call(object, symbol);
5257
5273
  });
5258
5274
  };
5259
5275
 
@@ -5311,7 +5327,7 @@ function isObjectLike(value) {
5311
5327
  var isObjectLike_1 = isObjectLike;
5312
5328
 
5313
5329
  /** `Object#toString` result references. */
5314
- var argsTag = '[object Arguments]';
5330
+ var argsTag$2 = '[object Arguments]';
5315
5331
 
5316
5332
  /**
5317
5333
  * The base implementation of `_.isArguments`.
@@ -5321,19 +5337,19 @@ var argsTag = '[object Arguments]';
5321
5337
  * @returns {boolean} Returns `true` if `value` is an `arguments` object,
5322
5338
  */
5323
5339
  function baseIsArguments(value) {
5324
- return isObjectLike_1(value) && _baseGetTag(value) == argsTag;
5340
+ return isObjectLike_1(value) && _baseGetTag(value) == argsTag$2;
5325
5341
  }
5326
5342
 
5327
5343
  var _baseIsArguments = baseIsArguments;
5328
5344
 
5329
5345
  /** Used for built-in method references. */
5330
- var objectProto$6 = Object.prototype;
5346
+ var objectProto$5 = Object.prototype;
5331
5347
 
5332
5348
  /** Used to check objects for own properties. */
5333
- var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
5349
+ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5334
5350
 
5335
5351
  /** Built-in value references. */
5336
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5352
+ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5337
5353
 
5338
5354
  /**
5339
5355
  * Checks if `value` is likely an `arguments` object.
@@ -5354,8 +5370,8 @@ var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5354
5370
  * // => false
5355
5371
  */
5356
5372
  var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
5357
- return isObjectLike_1(value) && hasOwnProperty$4.call(value, 'callee') &&
5358
- !propertyIsEnumerable$1.call(value, 'callee');
5373
+ return isObjectLike_1(value) && hasOwnProperty$5.call(value, 'callee') &&
5374
+ !propertyIsEnumerable.call(value, 'callee');
5359
5375
  };
5360
5376
 
5361
5377
  var isArguments_1 = isArguments;
@@ -5381,7 +5397,7 @@ var stubFalse_1 = stubFalse;
5381
5397
 
5382
5398
  var isBuffer_1 = createCommonjsModule(function (module, exports) {
5383
5399
  /** Detect free variable `exports`. */
5384
- var freeExports = exports && !exports.nodeType && exports;
5400
+ var freeExports = exports && !exports.nodeType && exports;
5385
5401
 
5386
5402
  /** Detect free variable `module`. */
5387
5403
  var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
@@ -5418,7 +5434,7 @@ module.exports = isBuffer;
5418
5434
  });
5419
5435
 
5420
5436
  /** Used as references for various `Number` constants. */
5421
- var MAX_SAFE_INTEGER = 9007199254740991;
5437
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
5422
5438
 
5423
5439
  /** Used to detect unsigned integer values. */
5424
5440
  var reIsUint = /^(?:0|[1-9]\d*)$/;
@@ -5433,7 +5449,7 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
5433
5449
  */
5434
5450
  function isIndex(value, length) {
5435
5451
  var type = typeof value;
5436
- length = length == null ? MAX_SAFE_INTEGER : length;
5452
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
5437
5453
 
5438
5454
  return !!length &&
5439
5455
  (type == 'number' ||
@@ -5444,7 +5460,7 @@ function isIndex(value, length) {
5444
5460
  var _isIndex = isIndex;
5445
5461
 
5446
5462
  /** Used as references for various `Number` constants. */
5447
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
5463
+ var MAX_SAFE_INTEGER = 9007199254740991;
5448
5464
 
5449
5465
  /**
5450
5466
  * Checks if `value` is a valid array-like length.
@@ -5474,27 +5490,27 @@ var MAX_SAFE_INTEGER$1 = 9007199254740991;
5474
5490
  */
5475
5491
  function isLength(value) {
5476
5492
  return typeof value == 'number' &&
5477
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
5493
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
5478
5494
  }
5479
5495
 
5480
5496
  var isLength_1 = isLength;
5481
5497
 
5482
5498
  /** `Object#toString` result references. */
5483
5499
  var argsTag$1 = '[object Arguments]',
5484
- arrayTag = '[object Array]',
5500
+ arrayTag$1 = '[object Array]',
5485
5501
  boolTag$1 = '[object Boolean]',
5486
- dateTag$1 = '[object Date]',
5487
- errorTag$1 = '[object Error]',
5488
- funcTag$1 = '[object Function]',
5502
+ dateTag = '[object Date]',
5503
+ errorTag = '[object Error]',
5504
+ funcTag = '[object Function]',
5489
5505
  mapTag$1 = '[object Map]',
5490
- numberTag$1 = '[object Number]',
5491
- objectTag = '[object Object]',
5492
- regexpTag$1 = '[object RegExp]',
5506
+ numberTag = '[object Number]',
5507
+ objectTag$2 = '[object Object]',
5508
+ regexpTag = '[object RegExp]',
5493
5509
  setTag$1 = '[object Set]',
5494
- stringTag$1 = '[object String]',
5495
- weakMapTag = '[object WeakMap]';
5510
+ stringTag = '[object String]',
5511
+ weakMapTag$1 = '[object WeakMap]';
5496
5512
 
5497
- var arrayBufferTag$1 = '[object ArrayBuffer]',
5513
+ var arrayBufferTag = '[object ArrayBuffer]',
5498
5514
  dataViewTag$1 = '[object DataView]',
5499
5515
  float32Tag = '[object Float32Array]',
5500
5516
  float64Tag = '[object Float64Array]',
@@ -5513,14 +5529,14 @@ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
5513
5529
  typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
5514
5530
  typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
5515
5531
  typedArrayTags[uint32Tag] = true;
5516
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag] =
5517
- typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] =
5518
- typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag$1] =
5519
- typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] =
5520
- typedArrayTags[mapTag$1] = typedArrayTags[numberTag$1] =
5521
- typedArrayTags[objectTag] = typedArrayTags[regexpTag$1] =
5522
- typedArrayTags[setTag$1] = typedArrayTags[stringTag$1] =
5523
- typedArrayTags[weakMapTag] = false;
5532
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
5533
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag$1] =
5534
+ typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
5535
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
5536
+ typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
5537
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
5538
+ typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
5539
+ typedArrayTags[weakMapTag$1] = false;
5524
5540
 
5525
5541
  /**
5526
5542
  * The base implementation of `_.isTypedArray` without Node.js optimizations.
@@ -5553,7 +5569,7 @@ var _baseUnary = baseUnary;
5553
5569
 
5554
5570
  var _nodeUtil = createCommonjsModule(function (module, exports) {
5555
5571
  /** Detect free variable `exports`. */
5556
- var freeExports = exports && !exports.nodeType && exports;
5572
+ var freeExports = exports && !exports.nodeType && exports;
5557
5573
 
5558
5574
  /** Detect free variable `module`. */
5559
5575
  var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
@@ -5607,10 +5623,10 @@ var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsType
5607
5623
  var isTypedArray_1 = isTypedArray;
5608
5624
 
5609
5625
  /** Used for built-in method references. */
5610
- var objectProto$7 = Object.prototype;
5626
+ var objectProto$4 = Object.prototype;
5611
5627
 
5612
5628
  /** Used to check objects for own properties. */
5613
- var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
5629
+ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
5614
5630
 
5615
5631
  /**
5616
5632
  * Creates an array of the enumerable property names of the array-like `value`.
@@ -5630,7 +5646,7 @@ function arrayLikeKeys(value, inherited) {
5630
5646
  length = result.length;
5631
5647
 
5632
5648
  for (var key in value) {
5633
- if ((inherited || hasOwnProperty$5.call(value, key)) &&
5649
+ if ((inherited || hasOwnProperty$4.call(value, key)) &&
5634
5650
  !(skipIndexes && (
5635
5651
  // Safari 9 has enumerable `arguments.length` in strict mode.
5636
5652
  key == 'length' ||
@@ -5650,7 +5666,7 @@ function arrayLikeKeys(value, inherited) {
5650
5666
  var _arrayLikeKeys = arrayLikeKeys;
5651
5667
 
5652
5668
  /** Used for built-in method references. */
5653
- var objectProto$8 = Object.prototype;
5669
+ var objectProto$3 = Object.prototype;
5654
5670
 
5655
5671
  /**
5656
5672
  * Checks if `value` is likely a prototype object.
@@ -5661,7 +5677,7 @@ var objectProto$8 = Object.prototype;
5661
5677
  */
5662
5678
  function isPrototype(value) {
5663
5679
  var Ctor = value && value.constructor,
5664
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
5680
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
5665
5681
 
5666
5682
  return value === proto;
5667
5683
  }
@@ -5690,10 +5706,10 @@ var nativeKeys = _overArg(Object.keys, Object);
5690
5706
  var _nativeKeys = nativeKeys;
5691
5707
 
5692
5708
  /** Used for built-in method references. */
5693
- var objectProto$9 = Object.prototype;
5709
+ var objectProto$2 = Object.prototype;
5694
5710
 
5695
5711
  /** Used to check objects for own properties. */
5696
- var hasOwnProperty$6 = objectProto$9.hasOwnProperty;
5712
+ var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5697
5713
 
5698
5714
  /**
5699
5715
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -5708,7 +5724,7 @@ function baseKeys(object) {
5708
5724
  }
5709
5725
  var result = [];
5710
5726
  for (var key in Object(object)) {
5711
- if (hasOwnProperty$6.call(object, key) && key != 'constructor') {
5727
+ if (hasOwnProperty$3.call(object, key) && key != 'constructor') {
5712
5728
  result.push(key);
5713
5729
  }
5714
5730
  }
@@ -5796,13 +5812,13 @@ function getAllKeys(object) {
5796
5812
  var _getAllKeys = getAllKeys;
5797
5813
 
5798
5814
  /** Used to compose bitmasks for value comparisons. */
5799
- var COMPARE_PARTIAL_FLAG$2 = 1;
5815
+ var COMPARE_PARTIAL_FLAG$1 = 1;
5800
5816
 
5801
5817
  /** Used for built-in method references. */
5802
- var objectProto$a = Object.prototype;
5818
+ var objectProto$1 = Object.prototype;
5803
5819
 
5804
5820
  /** Used to check objects for own properties. */
5805
- var hasOwnProperty$7 = objectProto$a.hasOwnProperty;
5821
+ var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5806
5822
 
5807
5823
  /**
5808
5824
  * A specialized version of `baseIsEqualDeep` for objects with support for
@@ -5818,7 +5834,7 @@ var hasOwnProperty$7 = objectProto$a.hasOwnProperty;
5818
5834
  * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
5819
5835
  */
5820
5836
  function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
5821
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2,
5837
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1,
5822
5838
  objProps = _getAllKeys(object),
5823
5839
  objLength = objProps.length,
5824
5840
  othProps = _getAllKeys(other),
@@ -5830,7 +5846,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
5830
5846
  var index = objLength;
5831
5847
  while (index--) {
5832
5848
  var key = objProps[index];
5833
- if (!(isPartial ? key in other : hasOwnProperty$7.call(other, key))) {
5849
+ if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
5834
5850
  return false;
5835
5851
  }
5836
5852
  }
@@ -5905,13 +5921,13 @@ var WeakMap = _getNative(_root, 'WeakMap');
5905
5921
  var _WeakMap = WeakMap;
5906
5922
 
5907
5923
  /** `Object#toString` result references. */
5908
- var mapTag$2 = '[object Map]',
5924
+ var mapTag = '[object Map]',
5909
5925
  objectTag$1 = '[object Object]',
5910
5926
  promiseTag = '[object Promise]',
5911
- setTag$2 = '[object Set]',
5912
- weakMapTag$1 = '[object WeakMap]';
5927
+ setTag = '[object Set]',
5928
+ weakMapTag = '[object WeakMap]';
5913
5929
 
5914
- var dataViewTag$2 = '[object DataView]';
5930
+ var dataViewTag = '[object DataView]';
5915
5931
 
5916
5932
  /** Used to detect maps, sets, and weakmaps. */
5917
5933
  var dataViewCtorString = _toSource(_DataView),
@@ -5930,11 +5946,11 @@ var dataViewCtorString = _toSource(_DataView),
5930
5946
  var getTag = _baseGetTag;
5931
5947
 
5932
5948
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
5933
- if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
5934
- (_Map && getTag(new _Map) != mapTag$2) ||
5949
+ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
5950
+ (_Map && getTag(new _Map) != mapTag) ||
5935
5951
  (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
5936
- (_Set && getTag(new _Set) != setTag$2) ||
5937
- (_WeakMap && getTag(new _WeakMap) != weakMapTag$1)) {
5952
+ (_Set && getTag(new _Set) != setTag) ||
5953
+ (_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
5938
5954
  getTag = function(value) {
5939
5955
  var result = _baseGetTag(value),
5940
5956
  Ctor = result == objectTag$1 ? value.constructor : undefined,
@@ -5942,11 +5958,11 @@ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
5942
5958
 
5943
5959
  if (ctorString) {
5944
5960
  switch (ctorString) {
5945
- case dataViewCtorString: return dataViewTag$2;
5946
- case mapCtorString: return mapTag$2;
5961
+ case dataViewCtorString: return dataViewTag;
5962
+ case mapCtorString: return mapTag;
5947
5963
  case promiseCtorString: return promiseTag;
5948
- case setCtorString: return setTag$2;
5949
- case weakMapCtorString: return weakMapTag$1;
5964
+ case setCtorString: return setTag;
5965
+ case weakMapCtorString: return weakMapTag;
5950
5966
  }
5951
5967
  }
5952
5968
  return result;
@@ -5956,18 +5972,18 @@ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
5956
5972
  var _getTag = getTag;
5957
5973
 
5958
5974
  /** Used to compose bitmasks for value comparisons. */
5959
- var COMPARE_PARTIAL_FLAG$3 = 1;
5975
+ var COMPARE_PARTIAL_FLAG = 1;
5960
5976
 
5961
5977
  /** `Object#toString` result references. */
5962
- var argsTag$2 = '[object Arguments]',
5963
- arrayTag$1 = '[object Array]',
5964
- objectTag$2 = '[object Object]';
5978
+ var argsTag = '[object Arguments]',
5979
+ arrayTag = '[object Array]',
5980
+ objectTag = '[object Object]';
5965
5981
 
5966
5982
  /** Used for built-in method references. */
5967
- var objectProto$b = Object.prototype;
5983
+ var objectProto = Object.prototype;
5968
5984
 
5969
5985
  /** Used to check objects for own properties. */
5970
- var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
5986
+ var hasOwnProperty$1 = objectProto.hasOwnProperty;
5971
5987
 
5972
5988
  /**
5973
5989
  * A specialized version of `baseIsEqual` for arrays and objects which performs
@@ -5986,14 +6002,14 @@ var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
5986
6002
  function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
5987
6003
  var objIsArr = isArray_1(object),
5988
6004
  othIsArr = isArray_1(other),
5989
- objTag = objIsArr ? arrayTag$1 : _getTag(object),
5990
- othTag = othIsArr ? arrayTag$1 : _getTag(other);
6005
+ objTag = objIsArr ? arrayTag : _getTag(object),
6006
+ othTag = othIsArr ? arrayTag : _getTag(other);
5991
6007
 
5992
- objTag = objTag == argsTag$2 ? objectTag$2 : objTag;
5993
- othTag = othTag == argsTag$2 ? objectTag$2 : othTag;
6008
+ objTag = objTag == argsTag ? objectTag : objTag;
6009
+ othTag = othTag == argsTag ? objectTag : othTag;
5994
6010
 
5995
- var objIsObj = objTag == objectTag$2,
5996
- othIsObj = othTag == objectTag$2,
6011
+ var objIsObj = objTag == objectTag,
6012
+ othIsObj = othTag == objectTag,
5997
6013
  isSameTag = objTag == othTag;
5998
6014
 
5999
6015
  if (isSameTag && isBuffer_1(object)) {
@@ -6009,9 +6025,9 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
6009
6025
  ? _equalArrays(object, other, bitmask, customizer, equalFunc, stack)
6010
6026
  : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
6011
6027
  }
6012
- if (!(bitmask & COMPARE_PARTIAL_FLAG$3)) {
6013
- var objIsWrapped = objIsObj && hasOwnProperty$8.call(object, '__wrapped__'),
6014
- othIsWrapped = othIsObj && hasOwnProperty$8.call(other, '__wrapped__');
6028
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
6029
+ var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, '__wrapped__'),
6030
+ othIsWrapped = othIsObj && hasOwnProperty$1.call(other, '__wrapped__');
6015
6031
 
6016
6032
  if (objIsWrapped || othIsWrapped) {
6017
6033
  var objUnwrapped = objIsWrapped ? object.value() : object,
@@ -6155,7 +6171,7 @@ class Logger {
6155
6171
  this.logMessages(args, LogLevel.WARN);
6156
6172
  }
6157
6173
  }
6158
- const logger = new Logger();
6174
+ const logger$3 = new Logger();
6159
6175
 
6160
6176
  const ERROR_MESSAGE = {
6161
6177
  INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
@@ -6197,7 +6213,7 @@ function failureLoggedFetch(url, options = {}) {
6197
6213
  return fetch(url, options).then(async (r) => {
6198
6214
  var _a;
6199
6215
  if (!r.ok && r.type !== 'opaqueredirect' && r.type !== 'opaque') {
6200
- logger.error('Failure', await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
6216
+ logger$3.error('Failure', await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
6201
6217
  }
6202
6218
  return r;
6203
6219
  });
@@ -6220,7 +6236,7 @@ async function verifyTokenService(thoughtSpotHost, authToken) {
6220
6236
  return res.ok;
6221
6237
  }
6222
6238
  catch (e) {
6223
- logger.warn(`Token Verification Service failed : ${e.message}`);
6239
+ logger$3.warn(`Token Verification Service failed : ${e.message}`);
6224
6240
  }
6225
6241
  return false;
6226
6242
  }
@@ -6323,7 +6339,7 @@ async function getAuthenticationToken(embedConfig) {
6323
6339
  await validateAuthToken(embedConfig, authToken);
6324
6340
  }
6325
6341
  catch (e) {
6326
- logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
6342
+ logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
6327
6343
  throw e;
6328
6344
  }
6329
6345
  cachedAuthToken = authToken;
@@ -6331,7 +6347,7 @@ async function getAuthenticationToken(embedConfig) {
6331
6347
  }
6332
6348
  const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
6333
6349
  if (embedConfig.disableTokenVerification) {
6334
- logger.info('Token verification is disabled. Assuming token is valid.');
6350
+ logger$3.info('Token verification is disabled. Assuming token is valid.');
6335
6351
  return true;
6336
6352
  }
6337
6353
  try {
@@ -7030,7 +7046,7 @@ function getSelectedPointsForUnderlyingDataQuery(selectedPoints) {
7030
7046
  function addPointFromColVal(colVal) {
7031
7047
  var _a;
7032
7048
  const dataType = colVal.column.dataType;
7033
- const id = colVal.column.id;
7049
+ colVal.column.id;
7034
7050
  let dataValue;
7035
7051
  if (dataType === 'DATE') {
7036
7052
  if (Number.isFinite(colVal.value)) {
@@ -7178,7 +7194,7 @@ var FuncProto = Function.prototype;
7178
7194
  var ObjProto = Object.prototype;
7179
7195
  var slice = ArrayProto.slice;
7180
7196
  var toString = ObjProto.toString;
7181
- var hasOwnProperty$9 = ObjProto.hasOwnProperty;
7197
+ var hasOwnProperty = ObjProto.hasOwnProperty;
7182
7198
  var windowConsole = window$1.console;
7183
7199
  var navigator = window$1.navigator;
7184
7200
  var document$1 = window$1.document;
@@ -7315,7 +7331,7 @@ _.each = function(obj, iterator, context) {
7315
7331
  }
7316
7332
  } else {
7317
7333
  for (var key in obj) {
7318
- if (hasOwnProperty$9.call(obj, key)) {
7334
+ if (hasOwnProperty.call(obj, key)) {
7319
7335
  if (iterator.call(context, obj[key], key, obj) === breaker) {
7320
7336
  return;
7321
7337
  }
@@ -7351,7 +7367,7 @@ _.isFunction = function(f) {
7351
7367
  };
7352
7368
 
7353
7369
  _.isArguments = function(obj) {
7354
- return !!(obj && hasOwnProperty$9.call(obj, 'callee'));
7370
+ return !!(obj && hasOwnProperty.call(obj, 'callee'));
7355
7371
  };
7356
7372
 
7357
7373
  _.toArray = function(iterable) {
@@ -7439,7 +7455,7 @@ _.isObject = function(obj) {
7439
7455
  _.isEmptyObject = function(obj) {
7440
7456
  if (_.isObject(obj)) {
7441
7457
  for (var key in obj) {
7442
- if (hasOwnProperty$9.call(obj, key)) {
7458
+ if (hasOwnProperty.call(obj, key)) {
7443
7459
  return false;
7444
7460
  }
7445
7461
  }
@@ -7631,7 +7647,7 @@ _.JSONEncode = (function() {
7631
7647
 
7632
7648
  // Iterate through all of the keys in the object.
7633
7649
  for (k in value) {
7634
- if (hasOwnProperty$9.call(value, k)) {
7650
+ if (hasOwnProperty.call(value, k)) {
7635
7651
  v = str(k, value);
7636
7652
  if (v) {
7637
7653
  partial.push(quote(k) + (gap ? ': ' : ':') + v);
@@ -9439,7 +9455,7 @@ RequestQueue.prototype.clear = function() {
9439
9455
  // maximum interval between request retries after exponential backoff
9440
9456
  var MAX_RETRY_INTERVAL_MS = 10 * 60 * 1000; // 10 minutes
9441
9457
 
9442
- var logger$3 = console_with_prefix('batch');
9458
+ var logger = console_with_prefix('batch');
9443
9459
 
9444
9460
  /**
9445
9461
  * RequestBatcher: manages the queueing, flushing, retry etc of requests of one
@@ -9543,7 +9559,7 @@ RequestBatcher.prototype.flush = function(options) {
9543
9559
  try {
9544
9560
 
9545
9561
  if (this.requestInProgress) {
9546
- logger$3.log('Flush: Request already in progress');
9562
+ logger.log('Flush: Request already in progress');
9547
9563
  return;
9548
9564
  }
9549
9565
 
@@ -9704,7 +9720,7 @@ RequestBatcher.prototype.flush = function(options) {
9704
9720
  if (options.unloading) {
9705
9721
  requestOptions.transport = 'sendBeacon';
9706
9722
  }
9707
- logger$3.log('MIXPANEL REQUEST:', dataForRequest);
9723
+ logger.log('MIXPANEL REQUEST:', dataForRequest);
9708
9724
  this.sendRequest(dataForRequest, requestOptions, batchSendCallback);
9709
9725
 
9710
9726
  } catch(err) {
@@ -9717,7 +9733,7 @@ RequestBatcher.prototype.flush = function(options) {
9717
9733
  * Log error to global logger and optional user-defined logger.
9718
9734
  */
9719
9735
  RequestBatcher.prototype.reportError = function(msg, err) {
9720
- logger$3.error.apply(logger$3.error, arguments);
9736
+ logger.error.apply(logger.error, arguments);
9721
9737
  if (this.errorReporter) {
9722
9738
  try {
9723
9739
  if (!(err instanceof Error)) {
@@ -9725,7 +9741,7 @@ RequestBatcher.prototype.reportError = function(msg, err) {
9725
9741
  }
9726
9742
  this.errorReporter(msg, err);
9727
9743
  } catch(err) {
9728
- logger$3.error(err);
9744
+ logger.error(err);
9729
9745
  }
9730
9746
  }
9731
9747
  };
@@ -13278,9 +13294,10 @@ var mixpanel = init_as_module();
13278
13294
 
13279
13295
  var mixpanel_cjs = mixpanel;
13280
13296
 
13281
- var mixpanel$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), mixpanel_cjs, {
13282
- 'default': mixpanel_cjs
13283
- }));
13297
+ var mixpanel$1 = /*#__PURE__*/_mergeNamespaces({
13298
+ __proto__: null,
13299
+ default: mixpanel_cjs
13300
+ }, [mixpanel_cjs]);
13284
13301
 
13285
13302
  // Needed to avoid error in CJS builds on some bundlers.
13286
13303
  const mixpanelLib = mixpanel_cjs || mixpanel$1;
@@ -13333,7 +13350,7 @@ function emptyQueue() {
13333
13350
  function initMixpanel(sessionInfo) {
13334
13351
  var _a;
13335
13352
  if (!sessionInfo || !sessionInfo.mixpanelToken) {
13336
- logger.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
13353
+ logger$3.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
13337
13354
  return;
13338
13355
  }
13339
13356
  // On a public cluster the user is anonymous, so don't set the identify to
@@ -13357,11 +13374,11 @@ function initMixpanel(sessionInfo) {
13357
13374
  }
13358
13375
  }
13359
13376
  catch (e) {
13360
- logger.error('Error initializing mixpanel', e);
13377
+ logger$3.error('Error initializing mixpanel', e);
13361
13378
  }
13362
13379
  }
13363
13380
 
13364
- var eventemitter3 = createCommonjsModule(function (module) {
13381
+ createCommonjsModule(function (module) {
13365
13382
 
13366
13383
  var has = Object.prototype.hasOwnProperty
13367
13384
  , prefix = '~';
@@ -13715,7 +13732,7 @@ function tokenizedFailureLoggedFetch(url, options = {}) {
13715
13732
  return tokenizedFetch(url, options).then(async (r) => {
13716
13733
  var _a;
13717
13734
  if (!r.ok && r.type !== 'opaqueredirect' && r.type !== 'opaque') {
13718
- logger.error(`Failed to fetch ${url}`, await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
13735
+ logger$3.error(`Failed to fetch ${url}`, await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
13719
13736
  }
13720
13737
  return r;
13721
13738
  });
@@ -13752,7 +13769,7 @@ async function isActiveService(thoughtSpotHost) {
13752
13769
  return res.ok;
13753
13770
  }
13754
13771
  catch (e) {
13755
- logger.warn(`Is Logged In Service failed : ${e.message}`);
13772
+ logger$3.warn(`Is Logged In Service failed : ${e.message}`);
13756
13773
  }
13757
13774
  return false;
13758
13775
  }
@@ -13875,7 +13892,7 @@ var AuthEvent;
13875
13892
  */
13876
13893
  function notifyAuthSDKSuccess() {
13877
13894
  {
13878
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13895
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13879
13896
  return;
13880
13897
  }
13881
13898
  }
@@ -13884,7 +13901,7 @@ function notifyAuthSDKSuccess() {
13884
13901
  */
13885
13902
  async function notifyAuthSuccess() {
13886
13903
  {
13887
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13904
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13888
13905
  return;
13889
13906
  }
13890
13907
  }
@@ -13894,7 +13911,7 @@ async function notifyAuthSuccess() {
13894
13911
  */
13895
13912
  function notifyAuthFailure(failureType) {
13896
13913
  {
13897
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13914
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13898
13915
  return;
13899
13916
  }
13900
13917
  }
@@ -13903,7 +13920,7 @@ function notifyAuthFailure(failureType) {
13903
13920
  */
13904
13921
  function notifyLogout() {
13905
13922
  {
13906
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13923
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13907
13924
  return;
13908
13925
  }
13909
13926
  }
@@ -13941,7 +13958,7 @@ async function postLoginService() {
13941
13958
  }
13942
13959
  }
13943
13960
  catch (e) {
13944
- logger.error('Post login services failed.', e.message, e);
13961
+ logger$3.error('Post login services failed.', e.message, e);
13945
13962
  }
13946
13963
  }
13947
13964
  /**
@@ -14160,12 +14177,20 @@ const authenticate = async (embedConfig) => {
14160
14177
  };
14161
14178
 
14162
14179
  /* eslint-disable camelcase */
14163
- const CONFIG_DEFAULTS = {
14180
+ /* eslint-disable import/no-mutable-exports */
14181
+ /**
14182
+ * Copyright (c) 2022
14183
+ *
14184
+ * Base classes
14185
+ * @summary Base classes
14186
+ * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
14187
+ */
14188
+ ({
14164
14189
  loginFailedMessage: 'Not logged in',
14165
14190
  authTriggerText: 'Authorize',
14166
14191
  authType: AuthType.None,
14167
14192
  logLevel: LogLevel.ERROR,
14168
- };
14193
+ });
14169
14194
  let authPromise;
14170
14195
  const getAuthPromise = () => authPromise;
14171
14196
  /**
@@ -14187,12 +14212,12 @@ const handleAuth = () => {
14187
14212
  });
14188
14213
  return authPromise;
14189
14214
  };
14190
- const hostUrlToFeatureUrl = {
14215
+ ({
14191
14216
  [PrefetchFeatures.SearchEmbed]: (url) => `${url}v2/#/embed/answer`,
14192
14217
  [PrefetchFeatures.LiveboardEmbed]: (url) => url,
14193
14218
  [PrefetchFeatures.FullApp]: (url) => url,
14194
14219
  [PrefetchFeatures.VizEmbed]: (url) => url,
14195
- };
14220
+ });
14196
14221
  /**
14197
14222
  *
14198
14223
  */
@@ -14371,7 +14396,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
14371
14396
  });
14372
14397
  }
14373
14398
 
14374
- var name="@thoughtspot/visual-embed-sdk";var version="1.33.0-dc.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dc","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"lib/src/index.js",limit:"49 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14399
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.0-dc.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dc","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"lib/src/index.js",limit:"49 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14375
14400
 
14376
14401
  /**
14377
14402
  * Copyright (c) 2022
@@ -14380,7 +14405,7 @@ var name="@thoughtspot/visual-embed-sdk";var version="1.33.0-dc.1";var descripti
14380
14405
  * @summary Base classes
14381
14406
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
14382
14407
  */
14383
- const { version: version$1 } = pkgInfo;
14408
+ const { version } = pkgInfo;
14384
14409
  /**
14385
14410
  * Global prefix for all Thoughtspot postHash Params.
14386
14411
  */
@@ -14469,7 +14494,7 @@ class TsEmbed {
14469
14494
  });
14470
14495
  }
14471
14496
  catch (e) {
14472
- logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
14497
+ logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
14473
14498
  processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
14474
14499
  }
14475
14500
  }
@@ -14497,7 +14522,7 @@ class TsEmbed {
14497
14522
  allOtherKeys.forEach((key) => {
14498
14523
  if (!isUndefined(viewConfig[key])
14499
14524
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
14500
- logger.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14525
+ logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14501
14526
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
14502
14527
  + `but a different value "${JSON.stringify(viewConfig[key])}" `
14503
14528
  + 'was passed to the Embed component. '
@@ -14544,7 +14569,7 @@ class TsEmbed {
14544
14569
  error,
14545
14570
  });
14546
14571
  // Log error
14547
- logger.error(error);
14572
+ logger$3.error(error);
14548
14573
  }
14549
14574
  /**
14550
14575
  * Extracts the type field from the event payload
@@ -14609,7 +14634,7 @@ class TsEmbed {
14609
14634
  this.executeCallbacks(EmbedEvent.Error, {
14610
14635
  offlineWarning,
14611
14636
  });
14612
- logger.warn(offlineWarning);
14637
+ logger$3.warn(offlineWarning);
14613
14638
  };
14614
14639
  window.addEventListener('offline', offlineEventListener);
14615
14640
  this.subscribedListeners = {
@@ -14653,7 +14678,7 @@ class TsEmbed {
14653
14678
  queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
14654
14679
  queryParams[Param.ViewPortHeight] = window.innerHeight;
14655
14680
  queryParams[Param.ViewPortWidth] = window.innerWidth;
14656
- queryParams[Param.Version] = version$1;
14681
+ queryParams[Param.Version] = version;
14657
14682
  queryParams[Param.AuthType] = this.embedConfig.authType;
14658
14683
  queryParams[Param.blockNonEmbedFullAppAccess] = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
14659
14684
  if (this.embedConfig.disableLoginRedirect === true || this.embedConfig.autoLogin === true) {
@@ -15075,7 +15100,7 @@ class TsEmbed {
15075
15100
  isRegisteredBySDK,
15076
15101
  });
15077
15102
  if (this.isRendered) {
15078
- logger.warn('Please register event handlers before calling render');
15103
+ logger$3.warn('Please register event handlers before calling render');
15079
15104
  }
15080
15105
  const callbacks = this.eventHandlerMap.get(messageType) || [];
15081
15106
  callbacks.push({ options, callback });
@@ -15119,11 +15144,11 @@ class TsEmbed {
15119
15144
  }
15120
15145
  catch (e) {
15121
15146
  eventPort.postMessage({ error: e });
15122
- logger.log(e);
15147
+ logger$3.log(e);
15123
15148
  }
15124
15149
  }
15125
15150
  else {
15126
- logger.log('Event Port is not defined');
15151
+ logger$3.log('Event Port is not defined');
15127
15152
  }
15128
15153
  }
15129
15154
  /**
@@ -15165,7 +15190,7 @@ class TsEmbed {
15165
15190
  */
15166
15191
  preRender(showPreRenderByDefault = false) {
15167
15192
  if (!this.viewConfig.preRenderId) {
15168
- logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15193
+ logger$3.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15169
15194
  return this;
15170
15195
  }
15171
15196
  this.isPreRendered = true;
@@ -15210,7 +15235,7 @@ class TsEmbed {
15210
15235
  this.unsubscribeToEvents();
15211
15236
  }
15212
15237
  catch (e) {
15213
- logger.log('Error destroying TS Embed', e);
15238
+ logger$3.log('Error destroying TS Embed', e);
15214
15239
  }
15215
15240
  }
15216
15241
  getUnderlyingFrameElement() {
@@ -15239,7 +15264,7 @@ class TsEmbed {
15239
15264
  */
15240
15265
  showPreRender() {
15241
15266
  if (!this.viewConfig.preRenderId) {
15242
- logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15267
+ logger$3.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15243
15268
  return;
15244
15269
  }
15245
15270
  if (!this.isPreRenderAvailable()) {
@@ -15281,7 +15306,7 @@ class TsEmbed {
15281
15306
  */
15282
15307
  syncPreRenderStyle() {
15283
15308
  if (!this.isPreRenderAvailable() || !this.el) {
15284
- logger.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
15309
+ logger$3.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
15285
15310
  return;
15286
15311
  }
15287
15312
  const elBoundingClient = this.el.getBoundingClientRect();
@@ -15299,7 +15324,7 @@ class TsEmbed {
15299
15324
  hidePreRender() {
15300
15325
  if (!this.isPreRenderAvailable()) {
15301
15326
  // if the embed component is not preRendered , nothing to hide
15302
- logger.warn('PreRender should be called before hiding it using hidePreRender.');
15327
+ logger$3.warn('PreRender should be called before hiding it using hidePreRender.');
15303
15328
  return;
15304
15329
  }
15305
15330
  const preRenderHideStyles = {
@@ -15407,7 +15432,7 @@ class V1Embed extends TsEmbed {
15407
15432
  * @version: SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
15408
15433
  * @group Embed components
15409
15434
  */
15410
- class SearchBarEmbed extends TsEmbed {
15435
+ let SearchBarEmbed$1 = class SearchBarEmbed extends TsEmbed {
15411
15436
  constructor(domSelector, viewConfig) {
15412
15437
  super(domSelector);
15413
15438
  this.embedComponentType = 'SearchBarEmbed';
@@ -15458,7 +15483,7 @@ class SearchBarEmbed extends TsEmbed {
15458
15483
  await this.renderIFrame(src);
15459
15484
  return this;
15460
15485
  }
15461
- }
15486
+ };
15462
15487
 
15463
15488
  /**
15464
15489
  * Copyright (c) 2023
@@ -15472,7 +15497,7 @@ class SearchBarEmbed extends TsEmbed {
15472
15497
  * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
15473
15498
  * @group Embed components
15474
15499
  */
15475
- class SageEmbed extends V1Embed {
15500
+ let SageEmbed$1 = class SageEmbed extends V1Embed {
15476
15501
  // eslint-disable-next-line no-useless-constructor
15477
15502
  constructor(domSelector, viewConfig) {
15478
15503
  viewConfig.embedComponentType = 'SageEmbed';
@@ -15534,7 +15559,7 @@ class SageEmbed extends V1Embed {
15534
15559
  await this.renderV1Embed(src);
15535
15560
  return this;
15536
15561
  }
15537
- }
15562
+ };
15538
15563
 
15539
15564
  /**
15540
15565
  * Copyright (c) 2022
@@ -15547,7 +15572,7 @@ class SageEmbed extends V1Embed {
15547
15572
  * Define the initial state os column custom group accordions
15548
15573
  * in data panel v2.
15549
15574
  */
15550
- var DataPanelCustomColumnGroupsAccordionState;
15575
+ var DataPanelCustomColumnGroupsAccordionState$1;
15551
15576
  (function (DataPanelCustomColumnGroupsAccordionState) {
15552
15577
  /**
15553
15578
  * Expand all the accordion initially in data panel v2.
@@ -15561,7 +15586,7 @@ var DataPanelCustomColumnGroupsAccordionState;
15561
15586
  * Expand the first accordion and collapse the rest.
15562
15587
  */
15563
15588
  DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
15564
- })(DataPanelCustomColumnGroupsAccordionState || (DataPanelCustomColumnGroupsAccordionState = {}));
15589
+ })(DataPanelCustomColumnGroupsAccordionState$1 || (DataPanelCustomColumnGroupsAccordionState$1 = {}));
15565
15590
  const HiddenActionItemByDefaultForSearchEmbed = [
15566
15591
  Action.EditACopy,
15567
15592
  Action.SaveAsView,
@@ -15573,7 +15598,7 @@ const HiddenActionItemByDefaultForSearchEmbed = [
15573
15598
  * Embed ThoughtSpot search
15574
15599
  * @group Embed components
15575
15600
  */
15576
- class SearchEmbed extends TsEmbed {
15601
+ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
15577
15602
  constructor(domSelector, viewConfig) {
15578
15603
  viewConfig.embedComponentType = 'SearchEmbed';
15579
15604
  super(domSelector, viewConfig);
@@ -15597,7 +15622,7 @@ class SearchEmbed extends TsEmbed {
15597
15622
  var _a;
15598
15623
  const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15599
15624
  /* eslint-disable-next-line max-len */
15600
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
15625
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
15601
15626
  const queryParams = this.getBaseQueryParams();
15602
15627
  queryParams[Param.HideActions] = [
15603
15628
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -15645,15 +15670,15 @@ class SearchEmbed extends TsEmbed {
15645
15670
  queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
15646
15671
  queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15647
15672
  if (dataPanelCustomGroupsAccordionInitialState
15648
- === DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
15673
+ === DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL
15649
15674
  || dataPanelCustomGroupsAccordionInitialState
15650
- === DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST) {
15675
+ === DataPanelCustomColumnGroupsAccordionState$1.EXPAND_FIRST) {
15651
15676
  /* eslint-disable-next-line max-len */
15652
15677
  queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = dataPanelCustomGroupsAccordionInitialState;
15653
15678
  }
15654
15679
  else {
15655
15680
  /* eslint-disable-next-line max-len */
15656
- queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
15681
+ queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL;
15657
15682
  }
15658
15683
  let query = '';
15659
15684
  const queryParamsString = getQueryParamString(queryParams, true);
@@ -15686,7 +15711,7 @@ class SearchEmbed extends TsEmbed {
15686
15711
  */
15687
15712
  async render() {
15688
15713
  super.render();
15689
- const { answerId } = this.viewConfig;
15714
+ this.viewConfig;
15690
15715
  const src = this.getIFrameSrc();
15691
15716
  await this.renderIFrame(src);
15692
15717
  getAuthPromise().then(() => {
@@ -15697,7 +15722,7 @@ class SearchEmbed extends TsEmbed {
15697
15722
  });
15698
15723
  return this;
15699
15724
  }
15700
- }
15725
+ };
15701
15726
 
15702
15727
  /**
15703
15728
  * Copyright (c) 2022
@@ -15751,7 +15776,7 @@ var Page;
15751
15776
  * Define the initial state os column custom group accordions
15752
15777
  * in data panel v2.
15753
15778
  */
15754
- var DataPanelCustomColumnGroupsAccordionState$1;
15779
+ var DataPanelCustomColumnGroupsAccordionState;
15755
15780
  (function (DataPanelCustomColumnGroupsAccordionState) {
15756
15781
  /**
15757
15782
  * Expand all the accordion initially in data panel v2.
@@ -15765,7 +15790,7 @@ var DataPanelCustomColumnGroupsAccordionState$1;
15765
15790
  * Expand the first accordion and collapse the rest.
15766
15791
  */
15767
15792
  DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
15768
- })(DataPanelCustomColumnGroupsAccordionState$1 || (DataPanelCustomColumnGroupsAccordionState$1 = {}));
15793
+ })(DataPanelCustomColumnGroupsAccordionState || (DataPanelCustomColumnGroupsAccordionState = {}));
15769
15794
  var HomePageSearchBarMode;
15770
15795
  (function (HomePageSearchBarMode) {
15771
15796
  HomePageSearchBarMode["OBJECT_SEARCH"] = "objectSearch";
@@ -15776,7 +15801,7 @@ var HomePageSearchBarMode;
15776
15801
  * Embeds full ThoughtSpot experience in a host application.
15777
15802
  * @group Embed components
15778
15803
  */
15779
- class AppEmbed extends V1Embed {
15804
+ let AppEmbed$1 = class AppEmbed extends V1Embed {
15780
15805
  // eslint-disable-next-line no-useless-constructor
15781
15806
  constructor(domSelector, viewConfig) {
15782
15807
  viewConfig.embedComponentType = 'AppEmbed';
@@ -15814,7 +15839,7 @@ class AppEmbed extends V1Embed {
15814
15839
  getEmbedParams() {
15815
15840
  const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15816
15841
  /* eslint-disable-next-line max-len */
15817
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15842
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15818
15843
  let params = {};
15819
15844
  params[Param.EmbedApp] = true;
15820
15845
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15864,15 +15889,15 @@ class AppEmbed extends V1Embed {
15864
15889
  params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
15865
15890
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15866
15891
  if (dataPanelCustomGroupsAccordionInitialState
15867
- === DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL
15892
+ === DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
15868
15893
  || dataPanelCustomGroupsAccordionInitialState
15869
- === DataPanelCustomColumnGroupsAccordionState$1.EXPAND_FIRST) {
15894
+ === DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST) {
15870
15895
  /* eslint-disable-next-line max-len */
15871
15896
  params[Param.DataPanelCustomGroupsAccordionInitialState] = dataPanelCustomGroupsAccordionInitialState;
15872
15897
  }
15873
15898
  else {
15874
15899
  /* eslint-disable-next-line max-len */
15875
- params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL;
15900
+ params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
15876
15901
  }
15877
15902
  const queryParams = getQueryParamString(params, true);
15878
15903
  return queryParams;
@@ -15943,7 +15968,7 @@ class AppEmbed extends V1Embed {
15943
15968
  */
15944
15969
  navigateToPage(path, noReload = false) {
15945
15970
  if (!this.iFrame) {
15946
- logger.log('Please call render before invoking this method');
15971
+ logger$3.log('Please call render before invoking this method');
15947
15972
  return;
15948
15973
  }
15949
15974
  if (noReload) {
@@ -15951,7 +15976,7 @@ class AppEmbed extends V1Embed {
15951
15976
  }
15952
15977
  else {
15953
15978
  if (typeof path !== 'string') {
15954
- logger.warn('Path can only by a string when triggered without noReload');
15979
+ logger$3.warn('Path can only by a string when triggered without noReload');
15955
15980
  return;
15956
15981
  }
15957
15982
  const iframeSrc = this.iFrame.src;
@@ -15971,7 +15996,7 @@ class AppEmbed extends V1Embed {
15971
15996
  await this.renderV1Embed(src);
15972
15997
  return this;
15973
15998
  }
15974
- }
15999
+ };
15975
16000
 
15976
16001
  /* eslint-disable quotes */
15977
16002
  const getPreviewQuery = `
@@ -16068,7 +16093,7 @@ const addPreviewStylesIfNotPresent = () => {
16068
16093
  * ```
16069
16094
  * @group Embed components
16070
16095
  */
16071
- class LiveboardEmbed extends V1Embed {
16096
+ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
16072
16097
  // eslint-disable-next-line no-useless-constructor
16073
16098
  constructor(domSelector, viewConfig) {
16074
16099
  viewConfig.embedComponentType = 'LiveboardEmbed';
@@ -16295,7 +16320,7 @@ class LiveboardEmbed extends V1Embed {
16295
16320
  }
16296
16321
  return url;
16297
16322
  }
16298
- }
16323
+ };
16299
16324
 
16300
16325
  /**
16301
16326
  *
@@ -16317,7 +16342,7 @@ function getViewPropsAndListeners(props) {
16317
16342
  });
16318
16343
  }
16319
16344
 
16320
- class ConversationEmbed extends TsEmbed {
16345
+ let ConversationEmbed$1 = class ConversationEmbed extends TsEmbed {
16321
16346
  constructor(container, viewConfig) {
16322
16347
  super(container, viewConfig);
16323
16348
  this.viewConfig = viewConfig;
@@ -16343,15 +16368,15 @@ class ConversationEmbed extends TsEmbed {
16343
16368
  await this.renderIFrame(src);
16344
16369
  return this;
16345
16370
  }
16346
- }
16371
+ };
16347
16372
 
16348
16373
  const componentFactory = (EmbedConstructor,
16349
16374
  // isPreRenderedComponent: Specifies whether the component being returned is
16350
16375
  // intended for preRendering. If set to true, the component will call the
16351
16376
  // Embed.preRender() method instead of the usual render method, and it will
16352
16377
  // not be destroyed when the component is unmounted.
16353
- isPreRenderedComponent = false) => React.forwardRef((props, forwardedRef) => {
16354
- const ref = React.useRef(null);
16378
+ isPreRenderedComponent = false) => React__default.forwardRef((props, forwardedRef) => {
16379
+ const ref = React__default.useRef(null);
16355
16380
  const { className, ...embedProps } = props;
16356
16381
  const { viewConfig, listeners } = getViewPropsAndListeners(embedProps);
16357
16382
  const handleDestroy = (tsEmbed) => {
@@ -16402,7 +16427,7 @@ isPreRenderedComponent = false) => React.forwardRef((props, forwardedRef) => {
16402
16427
  handleDestroy(tsEmbed);
16403
16428
  };
16404
16429
  }, [viewConfig, listeners]);
16405
- return viewConfig.insertAsSibling ? (React.createElement("span", { "data-testid": "tsEmbed", ref: ref, style: { position: 'absolute' } })) : (React.createElement("div", { "data-testid": "tsEmbed", ref: ref, className: className }));
16430
+ return viewConfig.insertAsSibling ? (React__default.createElement("span", { "data-testid": "tsEmbed", ref: ref, style: { position: 'absolute' } })) : (React__default.createElement("div", { "data-testid": "tsEmbed", ref: ref, className: className }));
16406
16431
  });
16407
16432
  /**
16408
16433
  * React component for Search Embed.
@@ -16416,8 +16441,8 @@ isPreRenderedComponent = false) => React.forwardRef((props, forwardedRef) => {
16416
16441
  * }
16417
16442
  * ```
16418
16443
  */
16419
- const SearchEmbed$1 = componentFactory(SearchEmbed);
16420
- const PreRenderedSearchEmbed = componentFactory(SearchEmbed, true);
16444
+ const SearchEmbed = componentFactory(SearchEmbed$1);
16445
+ const PreRenderedSearchEmbed = componentFactory(SearchEmbed$1, true);
16421
16446
  /**
16422
16447
  * React component for Full app Embed.
16423
16448
  * @example
@@ -16431,7 +16456,7 @@ const PreRenderedSearchEmbed = componentFactory(SearchEmbed, true);
16431
16456
  * }
16432
16457
  * ```
16433
16458
  */
16434
- const AppEmbed$1 = componentFactory(AppEmbed);
16459
+ const AppEmbed = componentFactory(AppEmbed$1);
16435
16460
  /**
16436
16461
  * React component for PreRendered Liveboard embed.
16437
16462
  *
@@ -16450,7 +16475,7 @@ const AppEmbed$1 = componentFactory(AppEmbed);
16450
16475
  * }
16451
16476
  * ```
16452
16477
  */
16453
- const PreRenderedAppEmbed = componentFactory(AppEmbed, true);
16478
+ const PreRenderedAppEmbed = componentFactory(AppEmbed$1, true);
16454
16479
  /**
16455
16480
  * React component for Liveboard embed.
16456
16481
  * @example
@@ -16465,8 +16490,8 @@ const PreRenderedAppEmbed = componentFactory(AppEmbed, true);
16465
16490
  * }
16466
16491
  * ```
16467
16492
  */
16468
- const LiveboardEmbed$1 = componentFactory(LiveboardEmbed);
16469
- const PinboardEmbed = LiveboardEmbed$1;
16493
+ const LiveboardEmbed = componentFactory(LiveboardEmbed$1);
16494
+ const PinboardEmbed = LiveboardEmbed;
16470
16495
  /**
16471
16496
  * React component for PreRendered Liveboard embed.
16472
16497
  *
@@ -16488,7 +16513,7 @@ const PinboardEmbed = LiveboardEmbed$1;
16488
16513
  * }
16489
16514
  * ```
16490
16515
  */
16491
- const PreRenderedLiveboardEmbed = componentFactory(LiveboardEmbed, true);
16516
+ const PreRenderedLiveboardEmbed = componentFactory(LiveboardEmbed$1, true);
16492
16517
  const PreRenderedPinboardEmbed = PreRenderedLiveboardEmbed;
16493
16518
  /**
16494
16519
  * React component for Search bar embed.
@@ -16502,7 +16527,7 @@ const PreRenderedPinboardEmbed = PreRenderedLiveboardEmbed;
16502
16527
  * }
16503
16528
  * ```
16504
16529
  */
16505
- const SearchBarEmbed$1 = componentFactory(SearchBarEmbed);
16530
+ const SearchBarEmbed = componentFactory(SearchBarEmbed$1);
16506
16531
  /**
16507
16532
  * React component for PreRendered Liveboard embed.
16508
16533
  *
@@ -16521,7 +16546,7 @@ const SearchBarEmbed$1 = componentFactory(SearchBarEmbed);
16521
16546
  * }
16522
16547
  * ```
16523
16548
  */
16524
- const PreRenderedSearchBarEmbed = componentFactory(SearchBarEmbed, true);
16549
+ const PreRenderedSearchBarEmbed = componentFactory(SearchBarEmbed$1, true);
16525
16550
  /**
16526
16551
  * React component for LLM based search Sage embed.
16527
16552
  * @example
@@ -16534,7 +16559,7 @@ const PreRenderedSearchBarEmbed = componentFactory(SearchBarEmbed, true);
16534
16559
  * }
16535
16560
  * ```
16536
16561
  */
16537
- const SageEmbed$1 = componentFactory(SageEmbed);
16562
+ const SageEmbed = componentFactory(SageEmbed$1);
16538
16563
  /**
16539
16564
  * React component for PreRendered Liveboard embed.
16540
16565
  *
@@ -16553,7 +16578,7 @@ const SageEmbed$1 = componentFactory(SageEmbed);
16553
16578
  * }
16554
16579
  * ```
16555
16580
  */
16556
- const PreRenderedSageEmbed = componentFactory(SageEmbed, true);
16581
+ const PreRenderedSageEmbed = componentFactory(SageEmbed$1, true);
16557
16582
  /**
16558
16583
  * React component for LLM based conversation BI.
16559
16584
  * @example
@@ -16569,7 +16594,7 @@ const PreRenderedSageEmbed = componentFactory(SageEmbed, true);
16569
16594
  * }
16570
16595
  * ```
16571
16596
  */
16572
- const ConversationEmbed$1 = componentFactory(ConversationEmbed);
16597
+ const ConversationEmbed = componentFactory(ConversationEmbed$1);
16573
16598
  /**
16574
16599
  * React component for PreRendered Conversation embed.
16575
16600
  *
@@ -16588,7 +16613,7 @@ const ConversationEmbed$1 = componentFactory(ConversationEmbed);
16588
16613
  * }
16589
16614
  * ```
16590
16615
  */
16591
- const PreRenderedConversationEmbed = componentFactory(ConversationEmbed, true);
16616
+ const PreRenderedConversationEmbed = componentFactory(ConversationEmbed$1, true);
16592
16617
  /**
16593
16618
  * Get a reference to the embed component to trigger events on the component.
16594
16619
  * @example
@@ -16606,23 +16631,23 @@ const PreRenderedConversationEmbed = componentFactory(ConversationEmbed, true);
16606
16631
  * @returns {React.MutableRefObject<T extends TsEmbed>} ref
16607
16632
  */
16608
16633
  function useEmbedRef() {
16609
- return React.useRef(null);
16634
+ return React__default.useRef(null);
16610
16635
  }
16611
16636
 
16612
16637
  const ALIAS = Symbol.for('yaml.alias');
16613
16638
  const DOC = Symbol.for('yaml.document');
16614
16639
  const MAP = Symbol.for('yaml.map');
16615
16640
  const PAIR = Symbol.for('yaml.pair');
16616
- const SCALAR = Symbol.for('yaml.scalar');
16641
+ const SCALAR$1 = Symbol.for('yaml.scalar');
16617
16642
  const SEQ = Symbol.for('yaml.seq');
16618
16643
  const NODE_TYPE = Symbol.for('yaml.node.type');
16619
16644
  const isAlias = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === ALIAS;
16620
16645
  const isDocument = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === DOC;
16621
16646
  const isMap = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === MAP;
16622
16647
  const isPair = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === PAIR;
16623
- const isScalar = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SCALAR;
16648
+ const isScalar$1 = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SCALAR$1;
16624
16649
  const isSeq = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SEQ;
16625
- function isCollection(node) {
16650
+ function isCollection$1(node) {
16626
16651
  if (node && typeof node === 'object')
16627
16652
  switch (node[NODE_TYPE]) {
16628
16653
  case MAP:
@@ -16636,17 +16661,17 @@ function isNode(node) {
16636
16661
  switch (node[NODE_TYPE]) {
16637
16662
  case ALIAS:
16638
16663
  case MAP:
16639
- case SCALAR:
16664
+ case SCALAR$1:
16640
16665
  case SEQ:
16641
16666
  return true;
16642
16667
  }
16643
16668
  return false;
16644
16669
  }
16645
- const hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor;
16670
+ const hasAnchor = (node) => (isScalar$1(node) || isCollection$1(node)) && !!node.anchor;
16646
16671
 
16647
- const BREAK = Symbol('break visit');
16648
- const SKIP = Symbol('skip children');
16649
- const REMOVE = Symbol('remove node');
16672
+ const BREAK$1 = Symbol('break visit');
16673
+ const SKIP$1 = Symbol('skip children');
16674
+ const REMOVE$1 = Symbol('remove node');
16650
16675
  /**
16651
16676
  * Apply a visitor to an AST node or document.
16652
16677
  *
@@ -16677,11 +16702,11 @@ const REMOVE = Symbol('remove node');
16677
16702
  * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most
16678
16703
  * specific defined one will be used for each node.
16679
16704
  */
16680
- function visit(node, visitor) {
16705
+ function visit$1(node, visitor) {
16681
16706
  const visitor_ = initVisitor(visitor);
16682
16707
  if (isDocument(node)) {
16683
16708
  const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
16684
- if (cd === REMOVE)
16709
+ if (cd === REMOVE$1)
16685
16710
  node.contents = null;
16686
16711
  }
16687
16712
  else
@@ -16691,11 +16716,11 @@ function visit(node, visitor) {
16691
16716
  // namespace using `var`, but then complains about that because
16692
16717
  // `unique symbol` must be `const`.
16693
16718
  /** Terminate visit traversal completely */
16694
- visit.BREAK = BREAK;
16719
+ visit$1.BREAK = BREAK$1;
16695
16720
  /** Do not visit the children of the current node */
16696
- visit.SKIP = SKIP;
16721
+ visit$1.SKIP = SKIP$1;
16697
16722
  /** Remove the current node */
16698
- visit.REMOVE = REMOVE;
16723
+ visit$1.REMOVE = REMOVE$1;
16699
16724
  function visit_(key, node, visitor, path) {
16700
16725
  const ctrl = callVisitor(key, node, visitor, path);
16701
16726
  if (isNode(ctrl) || isPair(ctrl)) {
@@ -16703,15 +16728,15 @@ function visit_(key, node, visitor, path) {
16703
16728
  return visit_(key, ctrl, visitor, path);
16704
16729
  }
16705
16730
  if (typeof ctrl !== 'symbol') {
16706
- if (isCollection(node)) {
16731
+ if (isCollection$1(node)) {
16707
16732
  path = Object.freeze(path.concat(node));
16708
16733
  for (let i = 0; i < node.items.length; ++i) {
16709
16734
  const ci = visit_(i, node.items[i], visitor, path);
16710
16735
  if (typeof ci === 'number')
16711
16736
  i = ci - 1;
16712
- else if (ci === BREAK)
16713
- return BREAK;
16714
- else if (ci === REMOVE) {
16737
+ else if (ci === BREAK$1)
16738
+ return BREAK$1;
16739
+ else if (ci === REMOVE$1) {
16715
16740
  node.items.splice(i, 1);
16716
16741
  i -= 1;
16717
16742
  }
@@ -16720,14 +16745,14 @@ function visit_(key, node, visitor, path) {
16720
16745
  else if (isPair(node)) {
16721
16746
  path = Object.freeze(path.concat(node));
16722
16747
  const ck = visit_('key', node.key, visitor, path);
16723
- if (ck === BREAK)
16724
- return BREAK;
16725
- else if (ck === REMOVE)
16748
+ if (ck === BREAK$1)
16749
+ return BREAK$1;
16750
+ else if (ck === REMOVE$1)
16726
16751
  node.key = null;
16727
16752
  const cv = visit_('value', node.value, visitor, path);
16728
- if (cv === BREAK)
16729
- return BREAK;
16730
- else if (cv === REMOVE)
16753
+ if (cv === BREAK$1)
16754
+ return BREAK$1;
16755
+ else if (cv === REMOVE$1)
16731
16756
  node.value = null;
16732
16757
  }
16733
16758
  }
@@ -16768,7 +16793,7 @@ async function visitAsync(node, visitor) {
16768
16793
  const visitor_ = initVisitor(visitor);
16769
16794
  if (isDocument(node)) {
16770
16795
  const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));
16771
- if (cd === REMOVE)
16796
+ if (cd === REMOVE$1)
16772
16797
  node.contents = null;
16773
16798
  }
16774
16799
  else
@@ -16778,11 +16803,11 @@ async function visitAsync(node, visitor) {
16778
16803
  // namespace using `var`, but then complains about that because
16779
16804
  // `unique symbol` must be `const`.
16780
16805
  /** Terminate visit traversal completely */
16781
- visitAsync.BREAK = BREAK;
16806
+ visitAsync.BREAK = BREAK$1;
16782
16807
  /** Do not visit the children of the current node */
16783
- visitAsync.SKIP = SKIP;
16808
+ visitAsync.SKIP = SKIP$1;
16784
16809
  /** Remove the current node */
16785
- visitAsync.REMOVE = REMOVE;
16810
+ visitAsync.REMOVE = REMOVE$1;
16786
16811
  async function visitAsync_(key, node, visitor, path) {
16787
16812
  const ctrl = await callVisitor(key, node, visitor, path);
16788
16813
  if (isNode(ctrl) || isPair(ctrl)) {
@@ -16790,15 +16815,15 @@ async function visitAsync_(key, node, visitor, path) {
16790
16815
  return visitAsync_(key, ctrl, visitor, path);
16791
16816
  }
16792
16817
  if (typeof ctrl !== 'symbol') {
16793
- if (isCollection(node)) {
16818
+ if (isCollection$1(node)) {
16794
16819
  path = Object.freeze(path.concat(node));
16795
16820
  for (let i = 0; i < node.items.length; ++i) {
16796
16821
  const ci = await visitAsync_(i, node.items[i], visitor, path);
16797
16822
  if (typeof ci === 'number')
16798
16823
  i = ci - 1;
16799
- else if (ci === BREAK)
16800
- return BREAK;
16801
- else if (ci === REMOVE) {
16824
+ else if (ci === BREAK$1)
16825
+ return BREAK$1;
16826
+ else if (ci === REMOVE$1) {
16802
16827
  node.items.splice(i, 1);
16803
16828
  i -= 1;
16804
16829
  }
@@ -16807,14 +16832,14 @@ async function visitAsync_(key, node, visitor, path) {
16807
16832
  else if (isPair(node)) {
16808
16833
  path = Object.freeze(path.concat(node));
16809
16834
  const ck = await visitAsync_('key', node.key, visitor, path);
16810
- if (ck === BREAK)
16811
- return BREAK;
16812
- else if (ck === REMOVE)
16835
+ if (ck === BREAK$1)
16836
+ return BREAK$1;
16837
+ else if (ck === REMOVE$1)
16813
16838
  node.key = null;
16814
16839
  const cv = await visitAsync_('value', node.value, visitor, path);
16815
- if (cv === BREAK)
16816
- return BREAK;
16817
- else if (cv === REMOVE)
16840
+ if (cv === BREAK$1)
16841
+ return BREAK$1;
16842
+ else if (cv === REMOVE$1)
16818
16843
  node.value = null;
16819
16844
  }
16820
16845
  }
@@ -16848,7 +16873,7 @@ function callVisitor(key, node, visitor, path) {
16848
16873
  return visitor.Seq?.(key, node, path);
16849
16874
  if (isPair(node))
16850
16875
  return visitor.Pair?.(key, node, path);
16851
- if (isScalar(node))
16876
+ if (isScalar$1(node))
16852
16877
  return visitor.Scalar?.(key, node, path);
16853
16878
  if (isAlias(node))
16854
16879
  return visitor.Alias?.(key, node, path);
@@ -16856,7 +16881,7 @@ function callVisitor(key, node, visitor, path) {
16856
16881
  }
16857
16882
  function replaceNode(key, path, node) {
16858
16883
  const parent = path[path.length - 1];
16859
- if (isCollection(parent)) {
16884
+ if (isCollection$1(parent)) {
16860
16885
  parent.items[key] = node;
16861
16886
  }
16862
16887
  else if (isPair(parent)) {
@@ -17026,7 +17051,7 @@ class Directives {
17026
17051
  let tagNames;
17027
17052
  if (doc && tagEntries.length > 0 && isNode(doc.contents)) {
17028
17053
  const tags = {};
17029
- visit(doc.contents, (_key, node) => {
17054
+ visit$1(doc.contents, (_key, node) => {
17030
17055
  if (isNode(node) && node.tag)
17031
17056
  tags[node.tag] = true;
17032
17057
  });
@@ -17061,7 +17086,7 @@ function anchorIsValid(anchor) {
17061
17086
  }
17062
17087
  function anchorNames(root) {
17063
17088
  const anchors = new Set();
17064
- visit(root, {
17089
+ visit$1(root, {
17065
17090
  Value(_key, node) {
17066
17091
  if (node.anchor)
17067
17092
  anchors.add(node.anchor);
@@ -17100,7 +17125,7 @@ function createNodeAnchors(doc, prefix) {
17100
17125
  const ref = sourceObjects.get(source);
17101
17126
  if (typeof ref === 'object' &&
17102
17127
  ref.anchor &&
17103
- (isScalar(ref.node) || isCollection(ref.node))) {
17128
+ (isScalar$1(ref.node) || isCollection$1(ref.node))) {
17104
17129
  ref.node.anchor = ref.anchor;
17105
17130
  }
17106
17131
  else {
@@ -17251,10 +17276,10 @@ class Alias extends NodeBase {
17251
17276
  */
17252
17277
  resolve(doc) {
17253
17278
  let found = undefined;
17254
- visit(doc, {
17279
+ visit$1(doc, {
17255
17280
  Node: (_key, node) => {
17256
17281
  if (node === this)
17257
- return visit.BREAK;
17282
+ return visit$1.BREAK;
17258
17283
  if (node.anchor === this.source)
17259
17284
  found = node;
17260
17285
  }
@@ -17312,7 +17337,7 @@ function getAliasCount(doc, node, anchors) {
17312
17337
  const anchor = anchors && source && anchors.get(source);
17313
17338
  return anchor ? anchor.count * anchor.aliasCount : 0;
17314
17339
  }
17315
- else if (isCollection(node)) {
17340
+ else if (isCollection$1(node)) {
17316
17341
  let count = 0;
17317
17342
  for (const item of node.items) {
17318
17343
  const c = getAliasCount(doc, item, anchors);
@@ -17332,7 +17357,7 @@ function getAliasCount(doc, node, anchors) {
17332
17357
  const isScalarValue = (value) => !value || (typeof value !== 'function' && typeof value !== 'object');
17333
17358
  class Scalar extends NodeBase {
17334
17359
  constructor(value) {
17335
- super(SCALAR);
17360
+ super(SCALAR$1);
17336
17361
  this.value = value;
17337
17362
  }
17338
17363
  toJSON(arg, ctx) {
@@ -17494,7 +17519,7 @@ class Collection extends NodeBase {
17494
17519
  else {
17495
17520
  const [key, ...rest] = path;
17496
17521
  const node = this.get(key, true);
17497
- if (isCollection(node))
17522
+ if (isCollection$1(node))
17498
17523
  node.addIn(rest, value);
17499
17524
  else if (node === undefined && this.schema)
17500
17525
  this.set(key, collectionFromPath(this.schema, rest, value));
@@ -17511,7 +17536,7 @@ class Collection extends NodeBase {
17511
17536
  if (rest.length === 0)
17512
17537
  return this.delete(key);
17513
17538
  const node = this.get(key, true);
17514
- if (isCollection(node))
17539
+ if (isCollection$1(node))
17515
17540
  return node.deleteIn(rest);
17516
17541
  else
17517
17542
  throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
@@ -17525,9 +17550,9 @@ class Collection extends NodeBase {
17525
17550
  const [key, ...rest] = path;
17526
17551
  const node = this.get(key, true);
17527
17552
  if (rest.length === 0)
17528
- return !keepScalar && isScalar(node) ? node.value : node;
17553
+ return !keepScalar && isScalar$1(node) ? node.value : node;
17529
17554
  else
17530
- return isCollection(node) ? node.getIn(rest, keepScalar) : undefined;
17555
+ return isCollection$1(node) ? node.getIn(rest, keepScalar) : undefined;
17531
17556
  }
17532
17557
  hasAllNullValues(allowScalar) {
17533
17558
  return this.items.every(node => {
@@ -17536,7 +17561,7 @@ class Collection extends NodeBase {
17536
17561
  const n = node.value;
17537
17562
  return (n == null ||
17538
17563
  (allowScalar &&
17539
- isScalar(n) &&
17564
+ isScalar$1(n) &&
17540
17565
  n.value == null &&
17541
17566
  !n.commentBefore &&
17542
17567
  !n.comment &&
@@ -17551,7 +17576,7 @@ class Collection extends NodeBase {
17551
17576
  if (rest.length === 0)
17552
17577
  return this.has(key);
17553
17578
  const node = this.get(key, true);
17554
- return isCollection(node) ? node.hasIn(rest) : false;
17579
+ return isCollection$1(node) ? node.hasIn(rest) : false;
17555
17580
  }
17556
17581
  /**
17557
17582
  * Sets a value in this collection. For `!!set`, `value` needs to be a
@@ -17564,7 +17589,7 @@ class Collection extends NodeBase {
17564
17589
  }
17565
17590
  else {
17566
17591
  const node = this.get(key, true);
17567
- if (isCollection(node))
17592
+ if (isCollection$1(node))
17568
17593
  node.setIn(rest, value);
17569
17594
  else if (node === undefined && this.schema)
17570
17595
  this.set(key, collectionFromPath(this.schema, rest, value));
@@ -18111,7 +18136,7 @@ function getTagObject(tags, item) {
18111
18136
  }
18112
18137
  let tagObj = undefined;
18113
18138
  let obj;
18114
- if (isScalar(item)) {
18139
+ if (isScalar$1(item)) {
18115
18140
  obj = item.value;
18116
18141
  const match = tags.filter(t => t.identify?.(obj));
18117
18142
  tagObj =
@@ -18132,7 +18157,7 @@ function stringifyProps(node, tagObj, { anchors, doc }) {
18132
18157
  if (!doc.directives)
18133
18158
  return '';
18134
18159
  const props = [];
18135
- const anchor = (isScalar(node) || isCollection(node)) && node.anchor;
18160
+ const anchor = (isScalar$1(node) || isCollection$1(node)) && node.anchor;
18136
18161
  if (anchor && anchorIsValid(anchor)) {
18137
18162
  anchors.add(anchor);
18138
18163
  props.push(`&${anchor}`);
@@ -18142,7 +18167,7 @@ function stringifyProps(node, tagObj, { anchors, doc }) {
18142
18167
  props.push(doc.directives.tagString(tag));
18143
18168
  return props.join(' ');
18144
18169
  }
18145
- function stringify(item, ctx, onComment, onChompKeep) {
18170
+ function stringify$2(item, ctx, onComment, onChompKeep) {
18146
18171
  if (isPair(item))
18147
18172
  return item.toString(ctx, onComment, onChompKeep);
18148
18173
  if (isAlias(item)) {
@@ -18170,12 +18195,12 @@ function stringify(item, ctx, onComment, onChompKeep) {
18170
18195
  ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
18171
18196
  const str = typeof tagObj.stringify === 'function'
18172
18197
  ? tagObj.stringify(node, ctx, onComment, onChompKeep)
18173
- : isScalar(node)
18198
+ : isScalar$1(node)
18174
18199
  ? stringifyString(node, ctx, onComment, onChompKeep)
18175
18200
  : node.toString(ctx, onComment, onChompKeep);
18176
18201
  if (!props)
18177
18202
  return str;
18178
- return isScalar(node) || str[0] === '{' || str[0] === '['
18203
+ return isScalar$1(node) || str[0] === '{' || str[0] === '['
18179
18204
  ? `${props} ${str}`
18180
18205
  : `${props}\n${ctx.indent}${str}`;
18181
18206
  }
@@ -18187,7 +18212,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
18187
18212
  if (keyComment) {
18188
18213
  throw new Error('With simple keys, key nodes cannot have comments');
18189
18214
  }
18190
- if (isCollection(key) || (!isNode(key) && typeof key === 'object')) {
18215
+ if (isCollection$1(key) || (!isNode(key) && typeof key === 'object')) {
18191
18216
  const msg = 'With simple keys, collection cannot be used as a key value';
18192
18217
  throw new Error(msg);
18193
18218
  }
@@ -18195,8 +18220,8 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
18195
18220
  let explicitKey = !simpleKeys &&
18196
18221
  (!key ||
18197
18222
  (keyComment && value == null && !ctx.inFlow) ||
18198
- isCollection(key) ||
18199
- (isScalar(key)
18223
+ isCollection$1(key) ||
18224
+ (isScalar$1(key)
18200
18225
  ? key.type === Scalar.BLOCK_FOLDED || key.type === Scalar.BLOCK_LITERAL
18201
18226
  : typeof key === 'object'));
18202
18227
  ctx = Object.assign({}, ctx, {
@@ -18206,7 +18231,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
18206
18231
  });
18207
18232
  let keyCommentDone = false;
18208
18233
  let chompKeep = false;
18209
- let str = stringify(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true));
18234
+ let str = stringify$2(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true));
18210
18235
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
18211
18236
  if (simpleKeys)
18212
18237
  throw new Error('With simple keys, single line scalar must not span more than 1024 characters');
@@ -18254,7 +18279,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
18254
18279
  value = doc.createNode(value);
18255
18280
  }
18256
18281
  ctx.implicitKey = false;
18257
- if (!explicitKey && !keyComment && isScalar(value))
18282
+ if (!explicitKey && !keyComment && isScalar$1(value))
18258
18283
  ctx.indentAtStart = str.length + 1;
18259
18284
  chompKeep = false;
18260
18285
  if (!indentSeq &&
@@ -18269,7 +18294,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
18269
18294
  ctx.indent = ctx.indent.substring(2);
18270
18295
  }
18271
18296
  let valueCommentDone = false;
18272
- const valueStr = stringify(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true));
18297
+ const valueStr = stringify$2(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true));
18273
18298
  let ws = ' ';
18274
18299
  if (keyComment || vsb || vcb) {
18275
18300
  ws = vsb ? '\n' : '';
@@ -18285,7 +18310,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
18285
18310
  ws += `\n${ctx.indent}`;
18286
18311
  }
18287
18312
  }
18288
- else if (!explicitKey && isCollection(value)) {
18313
+ else if (!explicitKey && isCollection$1(value)) {
18289
18314
  const vs0 = valueStr[0];
18290
18315
  const nl0 = valueStr.indexOf('\n');
18291
18316
  const hasNewline = nl0 !== -1;
@@ -18371,7 +18396,7 @@ function addPairToJSMap(ctx, map, { key, value }) {
18371
18396
  return map;
18372
18397
  }
18373
18398
  const isMergeKey = (key) => key === MERGE_KEY ||
18374
- (isScalar(key) &&
18399
+ (isScalar$1(key) &&
18375
18400
  key.value === MERGE_KEY &&
18376
18401
  (!key.type || key.type === Scalar.PLAIN));
18377
18402
  // If the value associated with a merge key is a single mapping node, each of
@@ -18489,7 +18514,7 @@ function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, fl
18489
18514
  }
18490
18515
  }
18491
18516
  chompKeep = false;
18492
- let str = stringify(item, itemCtx, () => (comment = null), () => (chompKeep = true));
18517
+ let str = stringify$2(item, itemCtx, () => (comment = null), () => (chompKeep = true));
18493
18518
  if (comment)
18494
18519
  str += lineComment(str, itemIndent, commentString(comment));
18495
18520
  if (chompKeep && comment)
@@ -18559,7 +18584,7 @@ function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
18559
18584
  }
18560
18585
  if (comment)
18561
18586
  reqNewline = true;
18562
- let str = stringify(item, itemCtx, () => (comment = null));
18587
+ let str = stringify$2(item, itemCtx, () => (comment = null));
18563
18588
  if (i < items.length - 1)
18564
18589
  str += ',';
18565
18590
  if (comment)
@@ -18599,12 +18624,12 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment
18599
18624
  }
18600
18625
 
18601
18626
  function findPair(items, key) {
18602
- const k = isScalar(key) ? key.value : key;
18627
+ const k = isScalar$1(key) ? key.value : key;
18603
18628
  for (const it of items) {
18604
18629
  if (isPair(it)) {
18605
18630
  if (it.key === key || it.key === k)
18606
18631
  return it;
18607
- if (isScalar(it.key) && it.key.value === k)
18632
+ if (isScalar$1(it.key) && it.key.value === k)
18608
18633
  return it;
18609
18634
  }
18610
18635
  }
@@ -18668,7 +18693,7 @@ class YAMLMap extends Collection {
18668
18693
  if (!overwrite)
18669
18694
  throw new Error(`Key ${_pair.key} already set`);
18670
18695
  // For scalars, keep the old node & its comments and anchors
18671
- if (isScalar(prev.value) && isScalarValue(_pair.value))
18696
+ if (isScalar$1(prev.value) && isScalarValue(_pair.value))
18672
18697
  prev.value.value = _pair.value;
18673
18698
  else
18674
18699
  prev.value = _pair.value;
@@ -18694,7 +18719,7 @@ class YAMLMap extends Collection {
18694
18719
  get(key, keepScalar) {
18695
18720
  const it = findPair(this.items, key);
18696
18721
  const node = it?.value;
18697
- return (!keepScalar && isScalar(node) ? node.value : node) ?? undefined;
18722
+ return (!keepScalar && isScalar$1(node) ? node.value : node) ?? undefined;
18698
18723
  }
18699
18724
  has(key) {
18700
18725
  return !!findPair(this.items, key);
@@ -18778,7 +18803,7 @@ class YAMLSeq extends Collection {
18778
18803
  if (typeof idx !== 'number')
18779
18804
  return undefined;
18780
18805
  const it = this.items[idx];
18781
- return !keepScalar && isScalar(it) ? it.value : it;
18806
+ return !keepScalar && isScalar$1(it) ? it.value : it;
18782
18807
  }
18783
18808
  /**
18784
18809
  * Checks if the collection includes a value with the key `key`.
@@ -18802,7 +18827,7 @@ class YAMLSeq extends Collection {
18802
18827
  if (typeof idx !== 'number')
18803
18828
  throw new Error(`Expected a valid index, not ${key}.`);
18804
18829
  const prev = this.items[idx];
18805
- if (isScalar(prev) && isScalarValue(value))
18830
+ if (isScalar$1(prev) && isScalarValue(value))
18806
18831
  prev.value = value;
18807
18832
  else
18808
18833
  this.items[idx] = value;
@@ -18844,7 +18869,7 @@ class YAMLSeq extends Collection {
18844
18869
  }
18845
18870
  }
18846
18871
  function asItemIndex(key) {
18847
- let idx = isScalar(key) ? key.value : key;
18872
+ let idx = isScalar$1(key) ? key.value : key;
18848
18873
  if (idx && typeof idx === 'string')
18849
18874
  idx = Number(idx);
18850
18875
  return typeof idx === 'number' && Number.isInteger(idx) && idx >= 0
@@ -18876,26 +18901,26 @@ const string = {
18876
18901
  }
18877
18902
  };
18878
18903
 
18879
- const nullTag$1 = {
18904
+ const nullTag = {
18880
18905
  identify: value => value == null,
18881
18906
  createNode: () => new Scalar(null),
18882
18907
  default: true,
18883
18908
  tag: 'tag:yaml.org,2002:null',
18884
18909
  test: /^(?:~|[Nn]ull|NULL)?$/,
18885
18910
  resolve: () => new Scalar(null),
18886
- stringify: ({ source }, ctx) => typeof source === 'string' && nullTag$1.test.test(source)
18911
+ stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
18887
18912
  ? source
18888
18913
  : ctx.options.nullStr
18889
18914
  };
18890
18915
 
18891
- const boolTag$2 = {
18916
+ const boolTag = {
18892
18917
  identify: value => typeof value === 'boolean',
18893
18918
  default: true,
18894
18919
  tag: 'tag:yaml.org,2002:bool',
18895
18920
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
18896
18921
  resolve: str => new Scalar(str[0] === 't' || str[0] === 'T'),
18897
18922
  stringify({ source, value }, ctx) {
18898
- if (source && boolTag$2.test.test(source)) {
18923
+ if (source && boolTag.test.test(source)) {
18899
18924
  const sv = source[0] === 't' || source[0] === 'T';
18900
18925
  if (value === sv)
18901
18926
  return source;
@@ -18927,7 +18952,7 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) {
18927
18952
  return n;
18928
18953
  }
18929
18954
 
18930
- const floatNaN = {
18955
+ const floatNaN$1 = {
18931
18956
  identify: value => typeof value === 'number',
18932
18957
  default: true,
18933
18958
  tag: 'tag:yaml.org,2002:float',
@@ -18939,7 +18964,7 @@ const floatNaN = {
18939
18964
  : Number.POSITIVE_INFINITY,
18940
18965
  stringify: stringifyNumber
18941
18966
  };
18942
- const floatExp = {
18967
+ const floatExp$1 = {
18943
18968
  identify: value => typeof value === 'number',
18944
18969
  default: true,
18945
18970
  tag: 'tag:yaml.org,2002:float',
@@ -18951,7 +18976,7 @@ const floatExp = {
18951
18976
  return isFinite(num) ? num.toExponential() : stringifyNumber(node);
18952
18977
  }
18953
18978
  };
18954
- const float = {
18979
+ const float$1 = {
18955
18980
  identify: value => typeof value === 'number',
18956
18981
  default: true,
18957
18982
  tag: 'tag:yaml.org,2002:float',
@@ -18966,53 +18991,53 @@ const float = {
18966
18991
  stringify: stringifyNumber
18967
18992
  };
18968
18993
 
18969
- const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
18970
- const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
18971
- function intStringify(node, radix, prefix) {
18994
+ const intIdentify$2 = (value) => typeof value === 'bigint' || Number.isInteger(value);
18995
+ const intResolve$1 = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
18996
+ function intStringify$1(node, radix, prefix) {
18972
18997
  const { value } = node;
18973
- if (intIdentify(value) && value >= 0)
18998
+ if (intIdentify$2(value) && value >= 0)
18974
18999
  return prefix + value.toString(radix);
18975
19000
  return stringifyNumber(node);
18976
19001
  }
18977
- const intOct = {
18978
- identify: value => intIdentify(value) && value >= 0,
19002
+ const intOct$1 = {
19003
+ identify: value => intIdentify$2(value) && value >= 0,
18979
19004
  default: true,
18980
19005
  tag: 'tag:yaml.org,2002:int',
18981
19006
  format: 'OCT',
18982
19007
  test: /^0o[0-7]+$/,
18983
- resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt),
18984
- stringify: node => intStringify(node, 8, '0o')
19008
+ resolve: (str, _onError, opt) => intResolve$1(str, 2, 8, opt),
19009
+ stringify: node => intStringify$1(node, 8, '0o')
18985
19010
  };
18986
- const int = {
18987
- identify: intIdentify,
19011
+ const int$1 = {
19012
+ identify: intIdentify$2,
18988
19013
  default: true,
18989
19014
  tag: 'tag:yaml.org,2002:int',
18990
19015
  test: /^[-+]?[0-9]+$/,
18991
- resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
19016
+ resolve: (str, _onError, opt) => intResolve$1(str, 0, 10, opt),
18992
19017
  stringify: stringifyNumber
18993
19018
  };
18994
- const intHex = {
18995
- identify: value => intIdentify(value) && value >= 0,
19019
+ const intHex$1 = {
19020
+ identify: value => intIdentify$2(value) && value >= 0,
18996
19021
  default: true,
18997
19022
  tag: 'tag:yaml.org,2002:int',
18998
19023
  format: 'HEX',
18999
19024
  test: /^0x[0-9a-fA-F]+$/,
19000
- resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
19001
- stringify: node => intStringify(node, 16, '0x')
19025
+ resolve: (str, _onError, opt) => intResolve$1(str, 2, 16, opt),
19026
+ stringify: node => intStringify$1(node, 16, '0x')
19002
19027
  };
19003
19028
 
19004
- const schema = [
19029
+ const schema$2 = [
19005
19030
  map,
19006
19031
  seq,
19007
19032
  string,
19008
- nullTag$1,
19009
- boolTag$2,
19010
- intOct,
19011
- int,
19012
- intHex,
19013
- floatNaN,
19014
- floatExp,
19015
- float
19033
+ nullTag,
19034
+ boolTag,
19035
+ intOct$1,
19036
+ int$1,
19037
+ intHex$1,
19038
+ floatNaN$1,
19039
+ floatExp$1,
19040
+ float$1
19016
19041
  ];
19017
19042
 
19018
19043
  function intIdentify$1(value) {
@@ -19259,7 +19284,7 @@ const omap = {
19259
19284
  const pairs = resolvePairs(seq, onError);
19260
19285
  const seenKeys = [];
19261
19286
  for (const { key } of pairs.items) {
19262
- if (isScalar(key)) {
19287
+ if (isScalar$1(key)) {
19263
19288
  if (seenKeys.includes(key.value)) {
19264
19289
  onError(`Ordered maps must not include duplicate keys: ${key.value}`);
19265
19290
  }
@@ -19296,7 +19321,7 @@ const falseTag = {
19296
19321
  stringify: boolStringify
19297
19322
  };
19298
19323
 
19299
- const floatNaN$1 = {
19324
+ const floatNaN = {
19300
19325
  identify: value => typeof value === 'number',
19301
19326
  default: true,
19302
19327
  tag: 'tag:yaml.org,2002:float',
@@ -19308,7 +19333,7 @@ const floatNaN$1 = {
19308
19333
  : Number.POSITIVE_INFINITY,
19309
19334
  stringify: stringifyNumber
19310
19335
  };
19311
- const floatExp$1 = {
19336
+ const floatExp = {
19312
19337
  identify: value => typeof value === 'number',
19313
19338
  default: true,
19314
19339
  tag: 'tag:yaml.org,2002:float',
@@ -19320,7 +19345,7 @@ const floatExp$1 = {
19320
19345
  return isFinite(num) ? num.toExponential() : stringifyNumber(node);
19321
19346
  }
19322
19347
  };
19323
- const float$1 = {
19348
+ const float = {
19324
19349
  identify: value => typeof value === 'number',
19325
19350
  default: true,
19326
19351
  tag: 'tag:yaml.org,2002:float',
@@ -19338,8 +19363,8 @@ const float$1 = {
19338
19363
  stringify: stringifyNumber
19339
19364
  };
19340
19365
 
19341
- const intIdentify$2 = (value) => typeof value === 'bigint' || Number.isInteger(value);
19342
- function intResolve$1(str, offset, radix, { intAsBigInt }) {
19366
+ const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
19367
+ function intResolve(str, offset, radix, { intAsBigInt }) {
19343
19368
  const sign = str[0];
19344
19369
  if (sign === '-' || sign === '+')
19345
19370
  offset += 1;
@@ -19362,48 +19387,48 @@ function intResolve$1(str, offset, radix, { intAsBigInt }) {
19362
19387
  const n = parseInt(str, radix);
19363
19388
  return sign === '-' ? -1 * n : n;
19364
19389
  }
19365
- function intStringify$1(node, radix, prefix) {
19390
+ function intStringify(node, radix, prefix) {
19366
19391
  const { value } = node;
19367
- if (intIdentify$2(value)) {
19392
+ if (intIdentify(value)) {
19368
19393
  const str = value.toString(radix);
19369
19394
  return value < 0 ? '-' + prefix + str.substr(1) : prefix + str;
19370
19395
  }
19371
19396
  return stringifyNumber(node);
19372
19397
  }
19373
19398
  const intBin = {
19374
- identify: intIdentify$2,
19399
+ identify: intIdentify,
19375
19400
  default: true,
19376
19401
  tag: 'tag:yaml.org,2002:int',
19377
19402
  format: 'BIN',
19378
19403
  test: /^[-+]?0b[0-1_]+$/,
19379
- resolve: (str, _onError, opt) => intResolve$1(str, 2, 2, opt),
19380
- stringify: node => intStringify$1(node, 2, '0b')
19404
+ resolve: (str, _onError, opt) => intResolve(str, 2, 2, opt),
19405
+ stringify: node => intStringify(node, 2, '0b')
19381
19406
  };
19382
- const intOct$1 = {
19383
- identify: intIdentify$2,
19407
+ const intOct = {
19408
+ identify: intIdentify,
19384
19409
  default: true,
19385
19410
  tag: 'tag:yaml.org,2002:int',
19386
19411
  format: 'OCT',
19387
19412
  test: /^[-+]?0[0-7_]+$/,
19388
- resolve: (str, _onError, opt) => intResolve$1(str, 1, 8, opt),
19389
- stringify: node => intStringify$1(node, 8, '0')
19413
+ resolve: (str, _onError, opt) => intResolve(str, 1, 8, opt),
19414
+ stringify: node => intStringify(node, 8, '0')
19390
19415
  };
19391
- const int$1 = {
19392
- identify: intIdentify$2,
19416
+ const int = {
19417
+ identify: intIdentify,
19393
19418
  default: true,
19394
19419
  tag: 'tag:yaml.org,2002:int',
19395
19420
  test: /^[-+]?[0-9][0-9_]*$/,
19396
- resolve: (str, _onError, opt) => intResolve$1(str, 0, 10, opt),
19421
+ resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
19397
19422
  stringify: stringifyNumber
19398
19423
  };
19399
- const intHex$1 = {
19400
- identify: intIdentify$2,
19424
+ const intHex = {
19425
+ identify: intIdentify,
19401
19426
  default: true,
19402
19427
  tag: 'tag:yaml.org,2002:int',
19403
19428
  format: 'HEX',
19404
19429
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
19405
- resolve: (str, _onError, opt) => intResolve$1(str, 2, 16, opt),
19406
- stringify: node => intStringify$1(node, 16, '0x')
19430
+ resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
19431
+ stringify: node => intStringify(node, 16, '0x')
19407
19432
  };
19408
19433
 
19409
19434
  class YAMLSet extends YAMLMap {
@@ -19434,7 +19459,7 @@ class YAMLSet extends YAMLMap {
19434
19459
  get(key, keepPair) {
19435
19460
  const pair = findPair(this.items, key);
19436
19461
  return !keepPair && isPair(pair)
19437
- ? isScalar(pair.key)
19462
+ ? isScalar$1(pair.key)
19438
19463
  ? pair.key.value
19439
19464
  : pair.key
19440
19465
  : pair;
@@ -19592,20 +19617,20 @@ const timestamp = {
19592
19617
  stringify: ({ value }) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '')
19593
19618
  };
19594
19619
 
19595
- const schema$2 = [
19620
+ const schema = [
19596
19621
  map,
19597
19622
  seq,
19598
19623
  string,
19599
- nullTag$1,
19624
+ nullTag,
19600
19625
  trueTag,
19601
19626
  falseTag,
19602
19627
  intBin,
19603
- intOct$1,
19604
- int$1,
19605
- intHex$1,
19606
- floatNaN$1,
19607
- floatExp$1,
19608
- float$1,
19628
+ intOct,
19629
+ int,
19630
+ intHex,
19631
+ floatNaN,
19632
+ floatExp,
19633
+ float,
19609
19634
  binary,
19610
19635
  omap,
19611
19636
  pairs,
@@ -19616,25 +19641,25 @@ const schema$2 = [
19616
19641
  ];
19617
19642
 
19618
19643
  const schemas = new Map([
19619
- ['core', schema],
19644
+ ['core', schema$2],
19620
19645
  ['failsafe', [map, seq, string]],
19621
19646
  ['json', schema$1],
19622
- ['yaml11', schema$2],
19623
- ['yaml-1.1', schema$2]
19647
+ ['yaml11', schema],
19648
+ ['yaml-1.1', schema]
19624
19649
  ]);
19625
19650
  const tagsByName = {
19626
19651
  binary,
19627
- bool: boolTag$2,
19628
- float,
19629
- floatExp,
19630
- floatNaN,
19652
+ bool: boolTag,
19653
+ float: float$1,
19654
+ floatExp: floatExp$1,
19655
+ floatNaN: floatNaN$1,
19631
19656
  floatTime,
19632
- int,
19633
- intHex,
19634
- intOct,
19657
+ int: int$1,
19658
+ intHex: intHex$1,
19659
+ intOct: intOct$1,
19635
19660
  intTime,
19636
19661
  map,
19637
- null: nullTag$1,
19662
+ null: nullTag,
19638
19663
  omap,
19639
19664
  pairs,
19640
19665
  seq,
@@ -19695,7 +19720,7 @@ class Schema {
19695
19720
  this.tags = getTags(customTags, this.name);
19696
19721
  this.toStringOptions = toStringDefaults ?? null;
19697
19722
  Object.defineProperty(this, MAP, { value: map });
19698
- Object.defineProperty(this, SCALAR, { value: string });
19723
+ Object.defineProperty(this, SCALAR$1, { value: string });
19699
19724
  Object.defineProperty(this, SEQ, { value: seq });
19700
19725
  // Used by createMap()
19701
19726
  this.sortMapEntries =
@@ -19749,7 +19774,7 @@ function stringifyDocument(doc, options) {
19749
19774
  contentComment = doc.contents.comment;
19750
19775
  }
19751
19776
  const onChompKeep = contentComment ? undefined : () => (chompKeep = true);
19752
- let body = stringify(doc.contents, ctx, () => (contentComment = null), onChompKeep);
19777
+ let body = stringify$2(doc.contents, ctx, () => (contentComment = null), onChompKeep);
19753
19778
  if (contentComment)
19754
19779
  body += lineComment(body, '', commentString(contentComment));
19755
19780
  if ((body[0] === '|' || body[0] === '>') &&
@@ -19762,7 +19787,7 @@ function stringifyDocument(doc, options) {
19762
19787
  lines.push(body);
19763
19788
  }
19764
19789
  else {
19765
- lines.push(stringify(doc.contents, ctx));
19790
+ lines.push(stringify$2(doc.contents, ctx));
19766
19791
  }
19767
19792
  if (doc.directives?.docEnd) {
19768
19793
  if (doc.comment) {
@@ -19918,7 +19943,7 @@ class Document {
19918
19943
  sourceObjects
19919
19944
  };
19920
19945
  const node = createNode(value, tag, ctx);
19921
- if (flow && isCollection(node))
19946
+ if (flow && isCollection$1(node))
19922
19947
  node.flow = true;
19923
19948
  setAnchors();
19924
19949
  return node;
@@ -19961,7 +19986,7 @@ class Document {
19961
19986
  * `true` (collections are always returned intact).
19962
19987
  */
19963
19988
  get(key, keepScalar) {
19964
- return isCollection(this.contents)
19989
+ return isCollection$1(this.contents)
19965
19990
  ? this.contents.get(key, keepScalar)
19966
19991
  : undefined;
19967
19992
  }
@@ -19972,10 +19997,10 @@ class Document {
19972
19997
  */
19973
19998
  getIn(path, keepScalar) {
19974
19999
  if (isEmptyPath(path))
19975
- return !keepScalar && isScalar(this.contents)
20000
+ return !keepScalar && isScalar$1(this.contents)
19976
20001
  ? this.contents.value
19977
20002
  : this.contents;
19978
- return isCollection(this.contents)
20003
+ return isCollection$1(this.contents)
19979
20004
  ? this.contents.getIn(path, keepScalar)
19980
20005
  : undefined;
19981
20006
  }
@@ -19983,7 +20008,7 @@ class Document {
19983
20008
  * Checks if the document includes a value with the key `key`.
19984
20009
  */
19985
20010
  has(key) {
19986
- return isCollection(this.contents) ? this.contents.has(key) : false;
20011
+ return isCollection$1(this.contents) ? this.contents.has(key) : false;
19987
20012
  }
19988
20013
  /**
19989
20014
  * Checks if the document includes a value at `path`.
@@ -19991,7 +20016,7 @@ class Document {
19991
20016
  hasIn(path) {
19992
20017
  if (isEmptyPath(path))
19993
20018
  return this.contents !== undefined;
19994
- return isCollection(this.contents) ? this.contents.hasIn(path) : false;
20019
+ return isCollection$1(this.contents) ? this.contents.hasIn(path) : false;
19995
20020
  }
19996
20021
  /**
19997
20022
  * Sets a value in this document. For `!!set`, `value` needs to be a
@@ -20108,7 +20133,7 @@ class Document {
20108
20133
  }
20109
20134
  }
20110
20135
  function assertCollection(contents) {
20111
- if (isCollection(contents))
20136
+ if (isCollection$1(contents))
20112
20137
  return true;
20113
20138
  throw new Error('Expected a YAML collection as document contents');
20114
20139
  }
@@ -20368,8 +20393,8 @@ function mapIncludes(ctx, items, search) {
20368
20393
  const isEqual = typeof uniqueKeys === 'function'
20369
20394
  ? uniqueKeys
20370
20395
  : (a, b) => a === b ||
20371
- (isScalar(a) &&
20372
- isScalar(b) &&
20396
+ (isScalar$1(a) &&
20397
+ isScalar$1(b) &&
20373
20398
  a.value === b.value &&
20374
20399
  !(a.value === '<<' && ctx.schema.merge));
20375
20400
  return items.some(pair => isEqual(pair.key, search));
@@ -21255,11 +21280,11 @@ function composeScalar(ctx, token, tagToken, onError) {
21255
21280
  ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError)
21256
21281
  : token.type === 'scalar'
21257
21282
  ? findScalarTagByTest(ctx, value, token, onError)
21258
- : ctx.schema[SCALAR];
21283
+ : ctx.schema[SCALAR$1];
21259
21284
  let scalar;
21260
21285
  try {
21261
21286
  const res = tag.resolve(value, msg => onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg), ctx.options);
21262
- scalar = isScalar(res) ? res : new Scalar(res);
21287
+ scalar = isScalar$1(res) ? res : new Scalar(res);
21263
21288
  }
21264
21289
  catch (error) {
21265
21290
  const msg = error instanceof Error ? error.message : String(error);
@@ -21280,7 +21305,7 @@ function composeScalar(ctx, token, tagToken, onError) {
21280
21305
  }
21281
21306
  function findScalarTagByName(schema, value, tagName, tagToken, onError) {
21282
21307
  if (tagName === '!')
21283
- return schema[SCALAR]; // non-specific tag
21308
+ return schema[SCALAR$1]; // non-specific tag
21284
21309
  const matchWithTest = [];
21285
21310
  for (const tag of schema.tags) {
21286
21311
  if (!tag.collection && tag.tag === tagName) {
@@ -21301,13 +21326,13 @@ function findScalarTagByName(schema, value, tagName, tagToken, onError) {
21301
21326
  return kt;
21302
21327
  }
21303
21328
  onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, tagName !== 'tag:yaml.org,2002:str');
21304
- return schema[SCALAR];
21329
+ return schema[SCALAR$1];
21305
21330
  }
21306
21331
  function findScalarTagByTest({ directives, schema }, value, token, onError) {
21307
- const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[SCALAR];
21332
+ const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[SCALAR$1];
21308
21333
  if (schema.compat) {
21309
21334
  const compat = schema.compat.find(tag => tag.default && tag.test?.test(value)) ??
21310
- schema[SCALAR];
21335
+ schema[SCALAR$1];
21311
21336
  if (tag.tag !== compat.tag) {
21312
21337
  const ts = directives.tagString(tag.tag);
21313
21338
  const cs = directives.tagString(compat.tag);
@@ -21541,7 +21566,7 @@ class Composer {
21541
21566
  else if (afterEmptyLine || doc.directives.docStart || !dc) {
21542
21567
  doc.commentBefore = comment;
21543
21568
  }
21544
- else if (isCollection(dc) && !dc.flow && dc.items.length > 0) {
21569
+ else if (isCollection$1(dc) && !dc.flow && dc.items.length > 0) {
21545
21570
  let it = dc.items[0];
21546
21571
  if (isPair(it))
21547
21572
  it = it.key;
@@ -21942,9 +21967,9 @@ function stringifyItem({ start, key, sep, value }) {
21942
21967
  return res;
21943
21968
  }
21944
21969
 
21945
- const BREAK$1 = Symbol('break visit');
21946
- const SKIP$1 = Symbol('skip children');
21947
- const REMOVE$1 = Symbol('remove item');
21970
+ const BREAK = Symbol('break visit');
21971
+ const SKIP = Symbol('skip children');
21972
+ const REMOVE = Symbol('remove item');
21948
21973
  /**
21949
21974
  * Apply a visitor to a CST document or item.
21950
21975
  *
@@ -21973,7 +21998,7 @@ const REMOVE$1 = Symbol('remove item');
21973
21998
  * visitor is called on item entry, next visitors are called after handling
21974
21999
  * a non-empty `key` and when exiting the item.
21975
22000
  */
21976
- function visit$1(cst, visitor) {
22001
+ function visit(cst, visitor) {
21977
22002
  if ('type' in cst && cst.type === 'document')
21978
22003
  cst = { start: cst.start, value: cst.value };
21979
22004
  _visit(Object.freeze([]), cst, visitor);
@@ -21982,13 +22007,13 @@ function visit$1(cst, visitor) {
21982
22007
  // namespace using `var`, but then complains about that because
21983
22008
  // `unique symbol` must be `const`.
21984
22009
  /** Terminate visit traversal completely */
21985
- visit$1.BREAK = BREAK$1;
22010
+ visit.BREAK = BREAK;
21986
22011
  /** Do not visit the children of the current item */
21987
- visit$1.SKIP = SKIP$1;
22012
+ visit.SKIP = SKIP;
21988
22013
  /** Remove the current item */
21989
- visit$1.REMOVE = REMOVE$1;
22014
+ visit.REMOVE = REMOVE;
21990
22015
  /** Find the item at `path` from `cst` as the root */
21991
- visit$1.itemAtPath = (cst, path) => {
22016
+ visit.itemAtPath = (cst, path) => {
21992
22017
  let item = cst;
21993
22018
  for (const [field, index] of path) {
21994
22019
  const tok = item?.[field];
@@ -22005,8 +22030,8 @@ visit$1.itemAtPath = (cst, path) => {
22005
22030
  *
22006
22031
  * Throws an error if the collection is not found, which should never happen if the item itself exists.
22007
22032
  */
22008
- visit$1.parentCollection = (cst, path) => {
22009
- const parent = visit$1.itemAtPath(cst, path.slice(0, -1));
22033
+ visit.parentCollection = (cst, path) => {
22034
+ const parent = visit.itemAtPath(cst, path.slice(0, -1));
22010
22035
  const field = path[path.length - 1][0];
22011
22036
  const coll = parent?.[field];
22012
22037
  if (coll && 'items' in coll)
@@ -22024,9 +22049,9 @@ function _visit(path, item, visitor) {
22024
22049
  const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor);
22025
22050
  if (typeof ci === 'number')
22026
22051
  i = ci - 1;
22027
- else if (ci === BREAK$1)
22028
- return BREAK$1;
22029
- else if (ci === REMOVE$1) {
22052
+ else if (ci === BREAK)
22053
+ return BREAK;
22054
+ else if (ci === REMOVE) {
22030
22055
  token.items.splice(i, 1);
22031
22056
  i -= 1;
22032
22057
  }
@@ -22045,11 +22070,11 @@ const DOCUMENT = '\x02'; // C0: Start of Text
22045
22070
  /** Unexpected end of flow-mode */
22046
22071
  const FLOW_END = '\x18'; // C0: Cancel
22047
22072
  /** Next token is a scalar value */
22048
- const SCALAR$1 = '\x1f'; // C0: Unit Separator
22073
+ const SCALAR = '\x1f'; // C0: Unit Separator
22049
22074
  /** @returns `true` if `token` is a flow or block collection */
22050
- const isCollection$1 = (token) => !!token && 'items' in token;
22075
+ const isCollection = (token) => !!token && 'items' in token;
22051
22076
  /** @returns `true` if `token` is a flow or block scalar; not an alias */
22052
- const isScalar$1 = (token) => !!token &&
22077
+ const isScalar = (token) => !!token &&
22053
22078
  (token.type === 'scalar' ||
22054
22079
  token.type === 'single-quoted-scalar' ||
22055
22080
  token.type === 'double-quoted-scalar' ||
@@ -22064,7 +22089,7 @@ function prettyToken(token) {
22064
22089
  return '<DOC>';
22065
22090
  case FLOW_END:
22066
22091
  return '<FLOW_END>';
22067
- case SCALAR$1:
22092
+ case SCALAR:
22068
22093
  return '<SCALAR>';
22069
22094
  default:
22070
22095
  return JSON.stringify(token);
@@ -22079,7 +22104,7 @@ function tokenType(source) {
22079
22104
  return 'doc-mode';
22080
22105
  case FLOW_END:
22081
22106
  return 'flow-error-end';
22082
- case SCALAR$1:
22107
+ case SCALAR:
22083
22108
  return 'scalar';
22084
22109
  case '---':
22085
22110
  return 'doc-start';
@@ -22136,16 +22161,16 @@ var cst = /*#__PURE__*/Object.freeze({
22136
22161
  BOM: BOM,
22137
22162
  DOCUMENT: DOCUMENT,
22138
22163
  FLOW_END: FLOW_END,
22139
- SCALAR: SCALAR$1,
22140
- isCollection: isCollection$1,
22141
- isScalar: isScalar$1,
22142
- prettyToken: prettyToken,
22143
- tokenType: tokenType,
22164
+ SCALAR: SCALAR,
22144
22165
  createScalarToken: createScalarToken,
22166
+ isCollection: isCollection,
22167
+ isScalar: isScalar,
22168
+ prettyToken: prettyToken,
22145
22169
  resolveAsScalar: resolveAsScalar,
22146
22170
  setScalarValue: setScalarValue,
22147
22171
  stringify: stringify$1,
22148
- visit: visit$1
22172
+ tokenType: tokenType,
22173
+ visit: visit
22149
22174
  });
22150
22175
 
22151
22176
  /*
@@ -22711,7 +22736,7 @@ class Lexer {
22711
22736
  break;
22712
22737
  } while (true);
22713
22738
  }
22714
- yield SCALAR$1;
22739
+ yield SCALAR;
22715
22740
  yield* this.pushToIndex(nl + 1, true);
22716
22741
  return yield* this.parseLineStart();
22717
22742
  }
@@ -22755,7 +22780,7 @@ class Lexer {
22755
22780
  }
22756
22781
  if (!ch && !this.atEnd)
22757
22782
  return this.setNext('plain-scalar');
22758
- yield SCALAR$1;
22783
+ yield SCALAR;
22759
22784
  yield* this.pushToIndex(end + 1, true);
22760
22785
  return inFlow ? 'flow' : 'doc';
22761
22786
  }
@@ -23919,7 +23944,7 @@ function parse(src, reviver, options) {
23919
23944
  }
23920
23945
  return doc.toJS(Object.assign({ reviver: _reviver }, options));
23921
23946
  }
23922
- function stringify$2(value, replacer, options) {
23947
+ function stringify(value, replacer, options) {
23923
23948
  let _replacer = null;
23924
23949
  if (typeof replacer === 'function' || Array.isArray(replacer)) {
23925
23950
  _replacer = replacer;
@@ -23943,71 +23968,72 @@ function stringify$2(value, replacer, options) {
23943
23968
 
23944
23969
  var YAML = /*#__PURE__*/Object.freeze({
23945
23970
  __proto__: null,
23971
+ Alias: Alias,
23946
23972
  CST: cst,
23947
23973
  Composer: Composer,
23948
23974
  Document: Document,
23975
+ Lexer: Lexer,
23976
+ LineCounter: LineCounter,
23977
+ Pair: Pair,
23978
+ Parser: Parser,
23979
+ Scalar: Scalar,
23949
23980
  Schema: Schema,
23950
23981
  YAMLError: YAMLError,
23982
+ YAMLMap: YAMLMap,
23951
23983
  YAMLParseError: YAMLParseError,
23984
+ YAMLSeq: YAMLSeq,
23952
23985
  YAMLWarning: YAMLWarning,
23953
- Alias: Alias,
23954
23986
  isAlias: isAlias,
23955
- isCollection: isCollection,
23987
+ isCollection: isCollection$1,
23956
23988
  isDocument: isDocument,
23957
23989
  isMap: isMap,
23958
23990
  isNode: isNode,
23959
23991
  isPair: isPair,
23960
- isScalar: isScalar,
23992
+ isScalar: isScalar$1,
23961
23993
  isSeq: isSeq,
23962
- Pair: Pair,
23963
- Scalar: Scalar,
23964
- YAMLMap: YAMLMap,
23965
- YAMLSeq: YAMLSeq,
23966
- Lexer: Lexer,
23967
- LineCounter: LineCounter,
23968
- Parser: Parser,
23969
23994
  parse: parse,
23970
23995
  parseAllDocuments: parseAllDocuments,
23971
23996
  parseDocument: parseDocument,
23972
- stringify: stringify$2,
23973
- visit: visit,
23997
+ stringify: stringify,
23998
+ visit: visit$1,
23974
23999
  visitAsync: visitAsync
23975
24000
  });
23976
24001
 
23977
24002
  // `export * as default from ...` fails on Webpack v4
24003
+ // https://github.com/eemeli/yaml/issues/228
23978
24004
 
23979
24005
  var index = /*#__PURE__*/Object.freeze({
23980
24006
  __proto__: null,
23981
- 'default': YAML,
24007
+ Alias: Alias,
24008
+ CST: cst,
23982
24009
  Composer: Composer,
23983
24010
  Document: Document,
24011
+ Lexer: Lexer,
24012
+ LineCounter: LineCounter,
24013
+ Pair: Pair,
24014
+ Parser: Parser,
24015
+ Scalar: Scalar,
23984
24016
  Schema: Schema,
23985
24017
  YAMLError: YAMLError,
24018
+ YAMLMap: YAMLMap,
23986
24019
  YAMLParseError: YAMLParseError,
24020
+ YAMLSeq: YAMLSeq,
23987
24021
  YAMLWarning: YAMLWarning,
23988
- Alias: Alias,
24022
+ default: YAML,
23989
24023
  isAlias: isAlias,
23990
- isCollection: isCollection,
24024
+ isCollection: isCollection$1,
23991
24025
  isDocument: isDocument,
23992
24026
  isMap: isMap,
23993
24027
  isNode: isNode,
23994
24028
  isPair: isPair,
23995
- isScalar: isScalar,
24029
+ isScalar: isScalar$1,
23996
24030
  isSeq: isSeq,
23997
- Pair: Pair,
23998
- Scalar: Scalar,
23999
- YAMLMap: YAMLMap,
24000
- YAMLSeq: YAMLSeq,
24001
- Lexer: Lexer,
24002
- LineCounter: LineCounter,
24003
- Parser: Parser,
24004
24031
  parse: parse,
24005
24032
  parseAllDocuments: parseAllDocuments,
24006
24033
  parseDocument: parseDocument,
24007
- stringify: stringify$2,
24008
- visit: visit,
24009
- visitAsync: visitAsync,
24010
- CST: cst
24034
+ stringify: stringify,
24035
+ visit: visit$1,
24036
+ visitAsync: visitAsync
24011
24037
  });
24012
24038
 
24013
- export { Action, AppEmbed$1 as AppEmbed, ConversationEmbed$1 as ConversationEmbed, EmbedEvent, HomeLeftNavItem, HomepageModule, HostEvent, LiveboardEmbed$1 as LiveboardEmbed, LogLevel, Page, PinboardEmbed, PreRenderedAppEmbed, PreRenderedConversationEmbed, PreRenderedLiveboardEmbed, PreRenderedPinboardEmbed, PreRenderedSageEmbed, PreRenderedSearchBarEmbed, PreRenderedSearchEmbed, RuntimeFilterOp, SageEmbed$1 as SageEmbed, SearchBarEmbed$1 as SearchBarEmbed, SearchEmbed$1 as SearchEmbed, getSessionInfo, useEmbedRef };
24039
+ export { Action, AppEmbed, ConversationEmbed, EmbedEvent, HomeLeftNavItem, HomepageModule, HostEvent, LiveboardEmbed, LogLevel, Page, PinboardEmbed, PreRenderedAppEmbed, PreRenderedConversationEmbed, PreRenderedLiveboardEmbed, PreRenderedPinboardEmbed, PreRenderedSageEmbed, PreRenderedSearchBarEmbed, PreRenderedSearchEmbed, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, getSessionInfo, useEmbedRef };