@worktango/ai-assistant 0.0.45 → 0.0.47

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 (175) hide show
  1. package/README.md +1 -5
  2. package/dist/{Absenteeism-CPgtVEHH.mjs → Absenteeism-D4NTLHl1.mjs} +1 -1
  3. package/dist/{ActivityFeed-DkVBkGMt.mjs → ActivityFeed-B6R2NrGG.mjs} +1 -1
  4. package/dist/{AddUser-DqmB-_hD.mjs → AddUser-Be90J5VT.mjs} +1 -1
  5. package/dist/{Admin-vbFJRP5Q.mjs → Admin-CnLD9ykp.mjs} +1 -1
  6. package/dist/{Admin-cZHcfKlP.mjs → Admin-D5hDEPFe.mjs} +1 -1
  7. package/dist/{AiGeneral-_ux0p7da.mjs → AiGeneral-CjuR2ul0.mjs} +1 -1
  8. package/dist/{AiScoring-D8fMg9R5.mjs → AiScoring-96J3UlY1.mjs} +1 -1
  9. package/dist/{AiText-32LdejFL.mjs → AiText-BbrNUYh8.mjs} +1 -1
  10. package/dist/{Anniversary-Bm-gm68X.mjs → Anniversary-oAOgkatH.mjs} +1 -1
  11. package/dist/{Appreciation-C-PcvbvC.mjs → Appreciation-yAnkkAGv.mjs} +1 -1
  12. package/dist/{ArrowDown-CYGnD9UH.mjs → ArrowDown--Eax2Ubx.mjs} +1 -1
  13. package/dist/{ArrowLeft-Q0T5s_Ox.mjs → ArrowLeft-PeVJMFMy.mjs} +1 -1
  14. package/dist/{ArrowRight-5aFHf-k0.mjs → ArrowRight-CrQaFexy.mjs} +1 -1
  15. package/dist/{ArrowUp-CvaXv93u.mjs → ArrowUp-CKiJqgUl.mjs} +1 -1
  16. package/dist/{Attachment-OXVDsE8e.mjs → Attachment-CrpzXFYm.mjs} +1 -1
  17. package/dist/{BeQuickDontHurry-BNMo3LiP.mjs → BeQuickDontHurry-CUkfCnfM.mjs} +1 -1
  18. package/dist/{Birthday-DvvKw0Un.mjs → Birthday-5-HfjcnB.mjs} +1 -1
  19. package/dist/{BrandPromise-DZT_aoNR.mjs → BrandPromise-DFFpvRjS.mjs} +1 -1
  20. package/dist/{BrandVision-NzrazXSB.mjs → BrandVision-C9h_kK3I.mjs} +1 -1
  21. package/dist/{Calendar-BQHd7_6A.mjs → Calendar-D7r0kRs-.mjs} +1 -1
  22. package/dist/{CaretDn-CPGjRhvT.mjs → CaretDn-Cj_0762K.mjs} +1 -1
  23. package/dist/{CaretDown-D90l5BOf.mjs → CaretDown-aSGSZJ_H.mjs} +1 -1
  24. package/dist/{CaretLeft-zaysoSbu.mjs → CaretLeft-Sn9lXT-m.mjs} +1 -1
  25. package/dist/{CaretRight-BdZckqmY.mjs → CaretRight-BWvkUn9y.mjs} +1 -1
  26. package/dist/{CaretUp-jF1ItwAP.mjs → CaretUp-D6ioPNsd.mjs} +1 -1
  27. package/dist/{ChallengeAccepted-CCO9R2OQ.mjs → ChallengeAccepted-D9_VNfr2.mjs} +1 -1
  28. package/dist/{CheckIn-Cc4XyvBk.mjs → CheckIn-DILODl91.mjs} +1 -1
  29. package/dist/{CheckIns-BhEHWFz0.mjs → CheckIns-bxv-zorD.mjs} +1 -1
  30. package/dist/{CheckSeal-MYtGYWZK.mjs → CheckSeal-53y1PZLs.mjs} +1 -1
  31. package/dist/{Checkmark-DxPZluua.mjs → Checkmark-Dox3HA3g.mjs} +1 -1
  32. package/dist/{Clock-uOuMedhL.mjs → Clock-Dhuo9EkJ.mjs} +1 -1
  33. package/dist/{Close-CS8RwdEQ.mjs → Close-BOYYCCNd.mjs} +1 -1
  34. package/dist/{CloudDownload-Bcw6P7c6.mjs → CloudDownload-Bza40ECX.mjs} +1 -1
  35. package/dist/{Comment-CB4xTlge.mjs → Comment-7ZrmukeW.mjs} +1 -1
  36. package/dist/{Comments-DQD5HI9J.mjs → Comments-Cs7SDm0Z.mjs} +1 -1
  37. package/dist/{Connections-1yG_ynem.mjs → Connections-BivQf1RB.mjs} +1 -1
  38. package/dist/{Copy-wYk6yvMs.mjs → Copy-DBbXMEnL.mjs} +1 -1
  39. package/dist/{CustomQuestion-DXlBG63m.mjs → CustomQuestion-Cg8SWtuP.mjs} +1 -1
  40. package/dist/{CustomerSuccess-AaCFxd0V.mjs → CustomerSuccess-CK1lOu_t.mjs} +1 -1
  41. package/dist/{DatePicker-B7f2aaDc.mjs → DatePicker-D8ktDHQh.mjs} +33 -39
  42. package/dist/{Dot-Cy8mIXH7.mjs → Dot-CAYSvpU-.mjs} +1 -1
  43. package/dist/{Download-uA7sUdcB.mjs → Download-CJWQU5Gn.mjs} +1 -1
  44. package/dist/{Drag-MHHIT-gA.mjs → Drag-CPKuaL5-.mjs} +1 -1
  45. package/dist/{Earn-D0-KaL1E.mjs → Earn-DeiyrbM8.mjs} +1 -1
  46. package/dist/{Email-CXU8ZFHd.mjs → Email-xGCv1_dN.mjs} +1 -1
  47. package/dist/{EmojiDisplay-DEdhuyhr.mjs → EmojiDisplay-v_Qgni3C.mjs} +2 -2
  48. package/dist/{EmojiPicker-CIu-RpZL.mjs → EmojiPicker-BGzraPfO.mjs} +2 -2
  49. package/dist/{EnpsSurvey-CeB25OY9.mjs → EnpsSurvey-DEDyizmT.mjs} +1 -1
  50. package/dist/{Expired-b5d1F9x1.mjs → Expired-ClTcRlXE.mjs} +1 -1
  51. package/dist/{Eye-DvwFCXbp.mjs → Eye-9hpgmFgs.mjs} +1 -1
  52. package/dist/{Feedback-BUkuki3Z.mjs → Feedback-BABCsNGo.mjs} +1 -1
  53. package/dist/{Feedback-BQhuzEmc.mjs → Feedback-BS0tIof5.mjs} +1 -1
  54. package/dist/{Filter-Cey_SWJW.mjs → Filter-DlrKGMR4.mjs} +1 -1
  55. package/dist/{Flag-Cm4le5wU.mjs → Flag-DmISpvWq.mjs} +1 -1
  56. package/dist/{Giphy-CoA_avc4.mjs → Giphy-CLECbC6O.mjs} +1 -1
  57. package/dist/{GoalCount-Dgabcb8N.mjs → GoalCount-CD3F4rI-.mjs} +1 -1
  58. package/dist/{GoalPercent-qlteWByM.mjs → GoalPercent-C_4GVSrU.mjs} +1 -1
  59. package/dist/{GoalTask-DV_qnu_z.mjs → GoalTask-BaOZOxH0.mjs} +1 -1
  60. package/dist/{GoalTask-BnLSvmOV.mjs → GoalTask-BpUA3vh8.mjs} +1 -1
  61. package/dist/{Goals-DHho1Q4T.mjs → Goals-BWHiEvWH.mjs} +1 -1
  62. package/dist/{Goals-BZh_UBXv.mjs → Goals-TAHsNa-d.mjs} +1 -1
  63. package/dist/{Growth-Yn5j8jz9.mjs → Growth-DflE5Uht.mjs} +1 -1
  64. package/dist/{Hamburger-Cp-sfRC7.mjs → Hamburger-sStpcqtZ.mjs} +1 -1
  65. package/dist/{Help-C0JHkCHb.mjs → Help-CaDmrWxL.mjs} +1 -1
  66. package/dist/{HighFive-DXxagdJi.mjs → HighFive-B043hGjz.mjs} +1 -1
  67. package/dist/{HighFive-BCDc_EVf.mjs → HighFive-DgeOkCpi.mjs} +1 -1
  68. package/dist/{Home-_pJBP4Ly.mjs → Home-B4-piSBY.mjs} +1 -1
  69. package/dist/{Home-XIKB0aLh.mjs → Home-CaFp3YdE.mjs} +1 -1
  70. package/dist/{HorizontalLine-Bu2LBp25.mjs → HorizontalLine-D2R0Qng6.mjs} +1 -1
  71. package/dist/{Hourglass-an4b7cuQ.mjs → Hourglass-D5xyEHrE.mjs} +1 -1
  72. package/dist/{Image-CH05OWjI.mjs → Image-CG2qMCYx.mjs} +1 -1
  73. package/dist/{ImageFile-B7vQHofA.mjs → ImageFile-DFIrgYzW.mjs} +1 -1
  74. package/dist/{InGoodCompany-BAZyx52-.mjs → InGoodCompany-BBb1Z79U.mjs} +1 -1
  75. package/dist/{Incentives-YEfgTao9.mjs → Incentives-Bw8TlxB7.mjs} +1 -1
  76. package/dist/{Info-B_LjAqkr.mjs → Info-BdfTL2at.mjs} +1 -1
  77. package/dist/{Insights-DYLU3aQf.mjs → Insights-Bwdqe4SH.mjs} +1 -1
  78. package/dist/{Insights-79bckaAA.mjs → Insights-yd5vsuRQ.mjs} +1 -1
  79. package/dist/{Integrations-BcDjMj7H.mjs → Integrations-DrTZ4dPt.mjs} +1 -1
  80. package/dist/{KazooLogo-Np9iDxhQ.mjs → KazooLogo-CUbwLAqQ.mjs} +1 -1
  81. package/dist/{KnowYourAudience-t7NsF563.mjs → KnowYourAudience-CMgs_lOc.mjs} +1 -1
  82. package/dist/{Launch-BTDshh96.mjs → Launch-CRw8acJX.mjs} +1 -1
  83. package/dist/{Link-CjOXokRo.mjs → Link-Dv_znDEa.mjs} +1 -1
  84. package/dist/{LinkArrow-CoyYcLRc.mjs → LinkArrow-B9hA6ANL.mjs} +1 -1
  85. package/dist/{Loading-DqZuMJnF.mjs → Loading-Bw5Wfa5w.mjs} +1 -1
  86. package/dist/{Lock-DGMFif0X.mjs → Lock-CPe9e509.mjs} +1 -1
  87. package/dist/{Management-Dpytsey-.mjs → Management-DFju7HX7.mjs} +1 -1
  88. package/dist/{MeatballMenu-CkHwKjdi.mjs → MeatballMenu-BCZjFB6B.mjs} +1 -1
  89. package/dist/{Messages-DbunxP0R.mjs → Messages-BLFJWtEu.mjs} +1 -1
  90. package/dist/{Mobile-CiOFvpET.mjs → Mobile-Dj6741VP.mjs} +1 -1
  91. package/dist/{Nomination-DvwuVg6Y.mjs → Nomination-M0rQnArV.mjs} +1 -1
  92. package/dist/{NominationsAndAwards-DGhjNeg7.mjs → NominationsAndAwards-C2wt8dzO.mjs} +1 -1
  93. package/dist/{Notification-ChgcA6QK.mjs → Notification-BFaUiTSl.mjs} +1 -1
  94. package/dist/{Okrs-CHKnHH5T.mjs → Okrs-BVIWXOE-.mjs} +1 -1
  95. package/dist/{PeerToPeer-CXdCGT3d.mjs → PeerToPeer-D5lnKFpZ.mjs} +1 -1
  96. package/dist/{Pencil-C18uX4jK.mjs → Pencil-C9c-UGD3.mjs} +1 -1
  97. package/dist/{People-CTWDHqTM.mjs → People-C2Js1TN9.mjs} +1 -1
  98. package/dist/{PerformanceManagement-DcozxlEo.mjs → PerformanceManagement-Mf-OMJxa.mjs} +1 -1
  99. package/dist/{Pin-CZLFnszq.mjs → Pin-CovW8TWV.mjs} +1 -1
  100. package/dist/{PinnedIconAward-CYiM-FTf.mjs → PinnedIconAward-Dt3Hrh_U.mjs} +1 -1
  101. package/dist/{PinnedIconBrightIdea-CZnzOCcj.mjs → PinnedIconBrightIdea-Dt5gAxQx.mjs} +1 -1
  102. package/dist/{PinnedIconBullseye-DY5Ylquz.mjs → PinnedIconBullseye-BXhNsQlR.mjs} +1 -1
  103. package/dist/{PinnedIconChampagne-DlHMNvXd.mjs → PinnedIconChampagne-UYFWd0z8.mjs} +1 -1
  104. package/dist/{PinnedIconCheer-CNZUyGst.mjs → PinnedIconCheer-DWjigqJH.mjs} +1 -1
  105. package/dist/{PinnedIconCrown-H8ppWNR4.mjs → PinnedIconCrown-CwyP54xN.mjs} +1 -1
  106. package/dist/{PinnedIconDiamond-DWKGYGUX.mjs → PinnedIconDiamond-xeFCXnxw.mjs} +1 -1
  107. package/dist/{PinnedIconHoleInOne-CVKXCz6y.mjs → PinnedIconHoleInOne-owoYkqrb.mjs} +1 -1
  108. package/dist/{PinnedIconMedal-BNQhrNDN.mjs → PinnedIconMedal-BnlWtU4u.mjs} +1 -1
  109. package/dist/{PinnedIconMetrics-DHsyGwFQ.mjs → PinnedIconMetrics-BpD0CVON.mjs} +1 -1
  110. package/dist/{PinnedIconPin-X8h9ND4b.mjs → PinnedIconPin-h419yTwy.mjs} +1 -1
  111. package/dist/{PinnedIconRockAndRoll-Dmy2xALK.mjs → PinnedIconRockAndRoll-BQOtXzaT.mjs} +1 -1
  112. package/dist/{PinnedIconRocket-Du1wl_qP.mjs → PinnedIconRocket-DAQv13Tc.mjs} +1 -1
  113. package/dist/{PinnedIconStrength-BYXQPAxq.mjs → PinnedIconStrength-CeLktgy1.mjs} +1 -1
  114. package/dist/{PinnedIconTeddyBear-DSmKm9bJ.mjs → PinnedIconTeddyBear-D5Bkd4rs.mjs} +1 -1
  115. package/dist/{PlatformLogo-BevFs8VX.mjs → PlatformLogo-9GSyMXKj.mjs} +1 -1
  116. package/dist/{Plus-DJmIfBM1.mjs → Plus-BrStfO36.mjs} +1 -1
  117. package/dist/{Popper-C5rF9W6g.mjs → Popper-4Ac2qYmT.mjs} +1 -1
  118. package/dist/{PrivateEye-DNfj7deQ.mjs → PrivateEye-CHgVMZJN.mjs} +1 -1
  119. package/dist/{PrivatePushPin-DoFQmKGr.mjs → PrivatePushPin-DGBOnjoa.mjs} +1 -1
  120. package/dist/{Processing-B5Bo7aur.mjs → Processing-BSpKmVHE.mjs} +1 -1
  121. package/dist/{Productivity-D_-yICwa.mjs → Productivity-C5hZ0xl0.mjs} +1 -1
  122. package/dist/{ProgressCircle-CWL67MAT.mjs → ProgressCircle-COAxpKB2.mjs} +1 -1
  123. package/dist/{PulseSurvey-CH5BjAho.mjs → PulseSurvey-Ff3Rt6MA.mjs} +1 -1
  124. package/dist/{PushPin-B7nPx5qH.mjs → PushPin-CxGeMrLT.mjs} +1 -1
  125. package/dist/{Recognition-Duu4sD1O.mjs → Recognition-1jBib45r.mjs} +1 -1
  126. package/dist/{Recognition-2IHK4vqb.mjs → Recognition-df7tatxj.mjs} +1 -1
  127. package/dist/{Retention-CrM1JrrD.mjs → Retention-DOmRLSda.mjs} +1 -1
  128. package/dist/{Rewards-lz6Y-shl.mjs → Rewards-Blyi0HGF.mjs} +1 -1
  129. package/dist/{Rewards-8vNOENxe.mjs → Rewards-C8lPRSkt.mjs} +1 -1
  130. package/dist/{RewardsCatalog-C0B-T02G.mjs → RewardsCatalog-utzIihrm.mjs} +1 -1
  131. package/dist/{Roadmap-B9pgMOnu.mjs → Roadmap-PgnBWLCD.mjs} +1 -1
  132. package/dist/{Search-VqgLaCgs.mjs → Search-TrXaL2Om.mjs} +1 -1
  133. package/dist/{Security-a-W6-vcn.mjs → Security-CtsAvHYs.mjs} +1 -1
  134. package/dist/{SendRecognition-DctQWJSR.mjs → SendRecognition-xJZuuitU.mjs} +1 -1
  135. package/dist/{ShareLink-Ct-G9j9l.mjs → ShareLink-ewRm0WEu.mjs} +1 -1
  136. package/dist/{Skill-CQMB2UAO.mjs → Skill-65g8pFLn.mjs} +1 -1
  137. package/dist/{Skills-prwdYtoL.mjs → Skills-B45bXTjp.mjs} +1 -1
  138. package/dist/{Smiley-Bj-17C1v.mjs → Smiley-Bt8OqEPA.mjs} +1 -1
  139. package/dist/{Stop-BW3jgic8.mjs → Stop-DCWXSpiT.mjs} +1 -1
  140. package/dist/{Survey-ClrUFAE_.mjs → Survey-BJLpcmvQ.mjs} +1 -1
  141. package/dist/{Surveys-DchdoBFY.mjs → Surveys-DxKYPbQL.mjs} +1 -1
  142. package/dist/{SyncUps-D94BPkKm.mjs → SyncUps-DDAnQcqf.mjs} +1 -1
  143. package/dist/{Syncs-DNLxrlOc.mjs → Syncs-D6UdB0j9.mjs} +1 -1
  144. package/dist/{TalentReview-Cqkvsf-G.mjs → TalentReview-CiGobKAv.mjs} +1 -1
  145. package/dist/{TalentReview-CL8Ip4yW.mjs → TalentReview-gRxEvwzH.mjs} +1 -1
  146. package/dist/{TalentReviewInsights-DcIV4Zwp.mjs → TalentReviewInsights-Prm629Ap.mjs} +1 -1
  147. package/dist/{TaskCompleted-C91Wbawz.mjs → TaskCompleted-lxB1Rw7S.mjs} +1 -1
  148. package/dist/{Team-iFWNi1Cg.mjs → Team-BG-Bzbq_.mjs} +1 -1
  149. package/dist/{Teams-GRDrTpZW.mjs → Teams-CYN4jvLN.mjs} +1 -1
  150. package/dist/{TextBold-BmernBrC.mjs → TextBold-C_ioBnZv.mjs} +1 -1
  151. package/dist/{TextBulletList-B4qWbcjQ.mjs → TextBulletList-Bp8ff2L9.mjs} +1 -1
  152. package/dist/{TextInput-CjPn43Ux.mjs → TextInput-DAEaqYuK.mjs} +1 -1
  153. package/dist/{TextItalic-BmxIvzEj.mjs → TextItalic-wVZdZjVF.mjs} +1 -1
  154. package/dist/{TextNumberList-Bx2XuHY1.mjs → TextNumberList-u6L4J4L7.mjs} +1 -1
  155. package/dist/{TextUnderline-aCL7sVR3.mjs → TextUnderline-BMQdPfk-.mjs} +1 -1
  156. package/dist/{Toggle-CbjAYTNx.mjs → Toggle-BkVPVzsT.mjs} +1 -1
  157. package/dist/{Trash-C8hxu31G.mjs → Trash-CCyLmr2B.mjs} +1 -1
  158. package/dist/{TrendDown-DKcVXx-A.mjs → TrendDown-Ch-cDzIe.mjs} +1 -1
  159. package/dist/{TrendUp-CA-E_3kx.mjs → TrendUp-DtruyHuZ.mjs} +1 -1
  160. package/dist/{Unplugged-ntf1dR8f.mjs → Unplugged-D2fNGtrX.mjs} +1 -1
  161. package/dist/{UpDownCaret-DxRIE-qJ.mjs → UpDownCaret-03INvxpv.mjs} +1 -1
  162. package/dist/{VerticalLine-CQhCD5T6.mjs → VerticalLine-DuPW5X1j.mjs} +1 -1
  163. package/dist/{Warning-WrKGlA3Y.mjs → Warning-Bkab4Vez.mjs} +1 -1
  164. package/dist/{WarningNoOutline-B_LqRPlW.mjs → WarningNoOutline-Dl6HfCwV.mjs} +1 -1
  165. package/dist/{YesAnd-vxz23WAz.mjs → YesAnd-C-M52-ta.mjs} +1 -1
  166. package/dist/ai-assistant.css +1 -1
  167. package/dist/{emoji-BlGKfvLv.mjs → emoji-DhqcZlrd.mjs} +1 -1
  168. package/dist/html2canvas.esm-DgdJBc_o.mjs +4871 -0
  169. package/dist/index-BEKNcH9V.mjs +721 -0
  170. package/dist/react.es.js +4 -3
  171. package/dist/react.umd.js +218 -78
  172. package/dist/reactComponent-BLVYf_CR.mjs +32249 -0
  173. package/package.json +3 -1
  174. package/react.d.ts +42 -2
  175. package/dist/reactComponent-yffmdVKM.mjs +0 -23803
@@ -0,0 +1,721 @@
1
+ function Y(l, g) {
2
+ for (var b = 0; b < g.length; b++) {
3
+ const u = g[b];
4
+ if (typeof u != "string" && !Array.isArray(u)) {
5
+ for (const n in u)
6
+ if (n !== "default" && !(n in l)) {
7
+ const a = Object.getOwnPropertyDescriptor(u, n);
8
+ a && Object.defineProperty(l, n, a.get ? a : {
9
+ enumerable: !0,
10
+ get: () => u[n]
11
+ });
12
+ }
13
+ }
14
+ }
15
+ return Object.freeze(Object.defineProperty(l, Symbol.toStringTag, { value: "Module" }));
16
+ }
17
+ var P = {}, D = {}, E = {}, q;
18
+ function J() {
19
+ return q || (q = 1, Object.defineProperty(E, "__esModule", { value: !0 }), E._Node = void 0, E._Node = {
20
+ /** node is an element. */
21
+ ELEMENT_NODE: 1,
22
+ ATTRIBUTE_NODE: 2,
23
+ /** node is a Text node. */
24
+ TEXT_NODE: 3,
25
+ /** node is a CDATASection node. */
26
+ CDATA_SECTION_NODE: 4,
27
+ ENTITY_REFERENCE_NODE: 5,
28
+ ENTITY_NODE: 6,
29
+ /** node is a ProcessingInstruction node. */
30
+ PROCESSING_INSTRUCTION_NODE: 7,
31
+ /** node is a Comment node. */
32
+ COMMENT_NODE: 8,
33
+ /** node is a document. */
34
+ DOCUMENT_NODE: 9,
35
+ /** node is a doctype. */
36
+ DOCUMENT_TYPE_NODE: 10,
37
+ /** node is a DocumentFragment node. */
38
+ DOCUMENT_FRAGMENT_NODE: 11,
39
+ NOTATION_NODE: 12,
40
+ /** Set when node and other are not in the same tree. */
41
+ DOCUMENT_POSITION_DISCONNECTED: 1,
42
+ /** Set when other is preceding node. */
43
+ DOCUMENT_POSITION_PRECEDING: 2,
44
+ /** Set when other is following node. */
45
+ DOCUMENT_POSITION_FOLLOWING: 4,
46
+ /** Set when other is an ancestor of node. */
47
+ DOCUMENT_POSITION_CONTAINS: 8,
48
+ /** Set when other is a descendant of node. */
49
+ DOCUMENT_POSITION_CONTAINED_BY: 16,
50
+ DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
51
+ }), E;
52
+ }
53
+ var x;
54
+ function V() {
55
+ if (x) return D;
56
+ x = 1, Object.defineProperty(D, "__esModule", { value: !0 }), D.htmlToMarkdownAST = g;
57
+ const l = J();
58
+ function g(u, n, a = 0) {
59
+ let r = [];
60
+ const t = (e) => {
61
+ n != null && n.debug && console.log(e);
62
+ };
63
+ return u.childNodes.forEach((e) => {
64
+ var o, i, d, m, T, p, w, $, k, M;
65
+ const s = (o = n == null ? void 0 : n.overrideElementProcessing) == null ? void 0 : o.call(n, e, n, a);
66
+ if (s)
67
+ t(`Element Processing Overridden: '${e.nodeType}'`), r.push(...s);
68
+ else if (e.nodeType === l._Node.TEXT_NODE) {
69
+ const c = b(((i = e.textContent) == null ? void 0 : i.trim()) ?? "");
70
+ c && e.textContent && (t(`Text Node: '${c}'`), r.push({ type: "text", content: (d = e.textContent) == null ? void 0 : d.trim() }));
71
+ } else if (e.nodeType === l._Node.ELEMENT_NODE) {
72
+ const c = e;
73
+ if (/^h[1-6]$/i.test(c.tagName)) {
74
+ const f = parseInt(c.tagName.substring(1));
75
+ t(`Heading ${f}`), r.push({
76
+ type: "heading",
77
+ level: f,
78
+ content: g(c, n)
79
+ // Process child elements
80
+ });
81
+ } else if (c.tagName.toLowerCase() === "p")
82
+ t("Paragraph"), r.push(...g(c, n)), r.push({ type: "text", content: `
83
+
84
+ ` });
85
+ else if (c.tagName.toLowerCase() === "a")
86
+ if (t(`Link: '${c.href}' with text '${c.textContent}'`), typeof c.href == "string" && c.href.startsWith("data:image"))
87
+ r.push({
88
+ type: "link",
89
+ href: "-",
90
+ content: g(c, n)
91
+ });
92
+ else {
93
+ let f = c.href;
94
+ typeof f == "string" ? f = n != null && n.websiteDomain && f.startsWith(n.websiteDomain) ? f.substring(n.websiteDomain.length) : f : f = "#", Array.from(c.childNodes).every((C) => C.nodeType === l._Node.TEXT_NODE) ? r.push({
95
+ type: "link",
96
+ href: f,
97
+ content: [{ type: "text", content: ((m = c.textContent) == null ? void 0 : m.trim()) ?? "" }]
98
+ }) : r.push({
99
+ type: "link",
100
+ href: f,
101
+ content: g(c, n)
102
+ });
103
+ }
104
+ else if (c.tagName.toLowerCase() === "img")
105
+ if (t(`Image: src='${c.src}', alt='${c.alt}'`), (T = c.src) != null && T.startsWith("data:image"))
106
+ r.push({
107
+ type: "image",
108
+ src: "-",
109
+ alt: b(c.alt)
110
+ });
111
+ else {
112
+ const f = n != null && n.websiteDomain && ((p = c.src) != null && p.startsWith(n.websiteDomain)) ? (w = c.src) == null ? void 0 : w.substring(n.websiteDomain.length) : c.src;
113
+ r.push({ type: "image", src: f, alt: b(c.alt) });
114
+ }
115
+ else if (c.tagName.toLowerCase() === "video")
116
+ t(`Video: src='${c.src}', poster='${c.poster}', controls='${c.controls}'`), r.push({
117
+ type: "video",
118
+ src: c.src,
119
+ poster: b(c.poster),
120
+ controls: c.controls
121
+ });
122
+ else if (c.tagName.toLowerCase() === "ul" || c.tagName.toLowerCase() === "ol")
123
+ t(`${c.tagName.toLowerCase() === "ul" ? "Unordered" : "Ordered"} List`), r.push({
124
+ type: "list",
125
+ ordered: c.tagName.toLowerCase() === "ol",
126
+ items: Array.from(c.children).map((f) => ({
127
+ type: "listItem",
128
+ content: g(f, n, a + 1)
129
+ }))
130
+ });
131
+ else if (c.tagName.toLowerCase() === "br")
132
+ t("Line Break"), r.push({ type: "text", content: `
133
+ ` });
134
+ else if (c.tagName.toLowerCase() === "table") {
135
+ t("Table");
136
+ let f = [];
137
+ n != null && n.enableTableColumnTracking && Array.from(c.querySelectorAll("th, td")).forEach((S, h) => {
138
+ f.push(`col-${h}`);
139
+ });
140
+ const C = Array.from(c.querySelectorAll("tr")), O = C.map((N) => {
141
+ let S = 0;
142
+ return { type: "tableRow", cells: Array.from(N.querySelectorAll("th, td")).map((y) => {
143
+ var U;
144
+ const A = parseInt(y.getAttribute("colspan") || "1", 10), L = parseInt(y.getAttribute("rowspan") || "1", 10), X = {
145
+ type: "tableCell",
146
+ content: y.nodeType === l._Node.TEXT_NODE ? b(((U = y.textContent) == null ? void 0 : U.trim()) ?? "") : g(y, n, a + 1),
147
+ colId: f[S],
148
+ colspan: A > 1 ? A : void 0,
149
+ rowspan: L > 1 ? L : void 0
150
+ };
151
+ return S += A, X;
152
+ }) };
153
+ });
154
+ if (O.length > 0 && C[0].querySelector("th") !== null) {
155
+ const h = {
156
+ type: "tableRow",
157
+ cells: Array.from(C[0].querySelectorAll("th, td")).map(() => ({
158
+ type: "tableCell",
159
+ content: "---",
160
+ colId: void 0,
161
+ colspan: void 0,
162
+ rowspan: void 0
163
+ }))
164
+ };
165
+ O.splice(1, 0, h);
166
+ }
167
+ r.push({ type: "table", rows: O, colIds: f });
168
+ } else if (c.tagName.toLowerCase() === "head" && (n != null && n.includeMetaData)) {
169
+ const f = {
170
+ type: "meta",
171
+ content: {
172
+ standard: {},
173
+ openGraph: {},
174
+ twitter: {}
175
+ }
176
+ };
177
+ c.querySelectorAll("title").forEach((N) => {
178
+ f.content.standard.title = b(N.text);
179
+ });
180
+ const C = c.querySelectorAll("meta"), O = [
181
+ "viewport",
182
+ "referrer",
183
+ "Content-Security-Policy"
184
+ ];
185
+ if (C.forEach((N) => {
186
+ const S = N.getAttribute("name"), h = N.getAttribute("property"), y = N.getAttribute("content");
187
+ h && h.startsWith("og:") && y ? n.includeMetaData === "extended" && (f.content.openGraph[h.substring(3)] = y) : S && S.startsWith("twitter:") && y ? n.includeMetaData === "extended" && (f.content.twitter[S.substring(8)] = y) : S && !O.includes(S) && y && (f.content.standard[S] = y);
188
+ }), n.includeMetaData === "extended") {
189
+ const N = [];
190
+ c.querySelectorAll('script[type="application/ld+json"]').forEach((h) => {
191
+ try {
192
+ const y = h.textContent;
193
+ if (y) {
194
+ const A = JSON.parse(y);
195
+ N.push(A);
196
+ }
197
+ } catch (y) {
198
+ console.error("Failed to parse JSON-LD", y);
199
+ }
200
+ }), f.content.jsonLd = N;
201
+ }
202
+ r.push(f);
203
+ } else {
204
+ const f = b(c.textContent || "");
205
+ switch (c.tagName.toLowerCase()) {
206
+ case "noscript":
207
+ case "script":
208
+ case "style":
209
+ case "html":
210
+ break;
211
+ case "strong":
212
+ case "b":
213
+ f && (t(`Bold: '${f}'`), r.push({
214
+ type: "bold",
215
+ content: g(c, n, a + 1)
216
+ }));
217
+ break;
218
+ case "em":
219
+ case "i":
220
+ f && (t(`Italic: '${f}'`), r.push({
221
+ type: "italic",
222
+ content: g(c, n, a + 1)
223
+ }));
224
+ break;
225
+ case "s":
226
+ case "strike":
227
+ f && (t(`Strikethrough: '${f}'`), r.push({
228
+ type: "strikethrough",
229
+ content: g(c, n, a + 1)
230
+ }));
231
+ break;
232
+ case "code":
233
+ if (f) {
234
+ const O = c.parentNode && c.parentNode.nodeName.toLowerCase() === "pre";
235
+ t(`${O ? "Code Block" : "Inline Code"}: '${f}'`);
236
+ const N = ($ = c.className) == null ? void 0 : $.split(" ").find((h) => h.startsWith("language-")), S = N ? N.replace("language-", "") : "";
237
+ r.push({
238
+ type: "code",
239
+ content: ((k = c.textContent) == null ? void 0 : k.trim()) ?? "",
240
+ language: S,
241
+ inline: !O
242
+ });
243
+ }
244
+ break;
245
+ case "blockquote":
246
+ t("Blockquote"), r.push({
247
+ type: "blockquote",
248
+ content: g(c, n)
249
+ });
250
+ break;
251
+ case "article":
252
+ case "aside":
253
+ case "details":
254
+ case "figcaption":
255
+ case "figure":
256
+ case "footer":
257
+ case "header":
258
+ case "main":
259
+ case "mark":
260
+ case "nav":
261
+ case "section":
262
+ case "summary":
263
+ case "time":
264
+ t(`Semantic HTML Element: '${c.tagName}'`), r.push({
265
+ type: "semanticHtml",
266
+ htmlType: c.tagName.toLowerCase(),
267
+ content: g(c, n)
268
+ });
269
+ break;
270
+ default:
271
+ const C = (M = n == null ? void 0 : n.processUnhandledElement) == null ? void 0 : M.call(n, c, n, a);
272
+ C ? (t(`Processing Unhandled Element: '${c.tagName}'`), r.push(...C)) : (t(`Generic HTMLElement: '${c.tagName}'`), r.push(...g(c, n, a + 1)));
273
+ break;
274
+ }
275
+ }
276
+ }
277
+ }), r;
278
+ }
279
+ function b(u, n = !1) {
280
+ if (n || !(u != null && u.trim()))
281
+ return u;
282
+ let a = u.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
283
+ return a = a.replace(/([\\`*_{}[\]#+!|])/g, "\\$1"), a;
284
+ }
285
+ return D;
286
+ }
287
+ var I = {}, H;
288
+ function z() {
289
+ if (H) return I;
290
+ H = 1, Object.defineProperty(I, "__esModule", { value: !0 }), I.markdownASTToString = g;
291
+ const l = B();
292
+ function g(n, a, r = 0) {
293
+ let t = "";
294
+ return t += b(n, a, r), t += u(n, a, r), t;
295
+ }
296
+ function b(n, a, r = 0) {
297
+ let t = "";
298
+ if (a != null && a.includeMetaData) {
299
+ t += `---
300
+ `;
301
+ const e = (0, l.findInMarkdownAST)(n, (s) => s.type === "meta");
302
+ if ((e == null ? void 0 : e.type) === "meta" && (e.content.standard && Object.keys(e.content.standard).forEach((s) => {
303
+ t += `${s}: "${e.content.standard[s]}"
304
+ `;
305
+ }), a.includeMetaData === "extended")) {
306
+ if (e.content.openGraph && Object.keys(e.content.openGraph).length > 0) {
307
+ t += `openGraph:
308
+ `;
309
+ for (const [s, o] of Object.entries(e.content.openGraph))
310
+ t += ` ${s}: "${o}"
311
+ `;
312
+ }
313
+ if (e.content.twitter && Object.keys(e.content.twitter).length > 0) {
314
+ t += `twitter:
315
+ `;
316
+ for (const [s, o] of Object.entries(e.content.twitter))
317
+ t += ` ${s}: "${o}"
318
+ `;
319
+ }
320
+ e.content.jsonLd && e.content.jsonLd.length > 0 && (t += `schema:
321
+ `, e.content.jsonLd.forEach((s) => {
322
+ const { "@context": o, "@type": i, ...d } = s;
323
+ t += ` ${i ?? "(unknown type)"}:
324
+ `, Object.keys(d).forEach((m) => {
325
+ t += ` ${m}: ${JSON.stringify(d[m])}
326
+ `;
327
+ });
328
+ }));
329
+ }
330
+ t += `---
331
+
332
+ `;
333
+ }
334
+ return t;
335
+ }
336
+ function u(n, a, r = 0) {
337
+ let t = "";
338
+ return n.forEach((e) => {
339
+ var i, d, m, T;
340
+ const s = " ".repeat(r * 2), o = (i = a == null ? void 0 : a.overrideNodeRenderer) == null ? void 0 : i.call(a, e, a, r);
341
+ if (o)
342
+ t += o;
343
+ else
344
+ switch (e.type) {
345
+ case "text":
346
+ case "bold":
347
+ case "italic":
348
+ case "strikethrough":
349
+ case "link":
350
+ let p = e.content;
351
+ Array.isArray(e.content) && (p = u(e.content, a, r));
352
+ const w = t.length > 0, $ = /\s/.test(p.slice(0, 1)), k = /\s/.test(t.slice(-1)), M = p.length === 1 && /^[.,!?;:]/.test(p);
353
+ w && !M && !$ && !k && (t += " "), e.type === "text" ? t += `${s}${p}` : e.type === "bold" ? t += `**${p}**` : e.type === "italic" ? t += `*${p}*` : e.type === "strikethrough" ? t += `~~${p}~~` : e.type === "link" && (e.content.length === 1 && e.content[0].type === "text" ? t += `[${p}](${encodeURI(e.href)})` : t += `<a href="${e.href}">${p}</a>`);
354
+ break;
355
+ case "heading":
356
+ t.slice(-1) === `
357
+ ` || (t += `
358
+ `);
359
+ const f = typeof e.content == "string" ? e.content : u(e.content, a, r);
360
+ t += `${"#".repeat(e.level)} ${f}
361
+
362
+ `;
363
+ break;
364
+ case "image":
365
+ (!((d = e.alt) != null && d.trim()) || (m = e.src) != null && m.trim()) && (t += `![${e.alt || ""}](${e.src})`);
366
+ break;
367
+ case "list":
368
+ e.items.forEach((N, S) => {
369
+ const h = e.ordered ? `${S + 1}.` : "-", y = u(N.content, a, r + 1).trim();
370
+ t.slice(-1) !== `
371
+ ` && (t += `
372
+ `), y && (t += `${s}${h} ${y}
373
+ `);
374
+ }), t += `
375
+ `;
376
+ break;
377
+ case "video":
378
+ t += `
379
+ ![Video](${e.src})
380
+ `, e.poster && (t += `![Poster](${e.poster})
381
+ `), e.controls && (t += `Controls: ${e.controls}
382
+ `), t += `
383
+ `;
384
+ break;
385
+ case "table":
386
+ const C = Math.max(...e.rows.map((N) => N.cells.reduce((S, h) => S + (h.colspan || 1), 0)));
387
+ e.rows.forEach((N) => {
388
+ let S = 0;
389
+ for (N.cells.forEach((h) => {
390
+ let y = typeof h.content == "string" ? h.content : u(h.content, a, r + 1).trim();
391
+ h.colId && (y += ` <!-- ${h.colId} -->`), h.colspan && h.colspan > 1 && (y += ` <!-- colspan: ${h.colspan} -->`), h.rowspan && h.rowspan > 1 && (y += ` <!-- rowspan: ${h.rowspan} -->`), t += `| ${y} `, S += h.colspan || 1;
392
+ for (let A = 1; A < (h.colspan || 1); A++)
393
+ t += "| ";
394
+ }); S < C; )
395
+ t += "| ", S++;
396
+ t += `|
397
+ `;
398
+ }), t += `
399
+ `;
400
+ break;
401
+ case "code":
402
+ e.inline ? (/\s/.test(t.slice(-1)) || (t += " "), t += `\`${e.content}\``) : (t += "\n```" + (e.language ?? "") + `
403
+ `, t += `${e.content}
404
+ `, t += "```\n\n");
405
+ break;
406
+ case "blockquote":
407
+ t += `> ${u(e.content, a).trim()}
408
+
409
+ `;
410
+ break;
411
+ case "meta":
412
+ break;
413
+ case "semanticHtml":
414
+ switch (e.htmlType) {
415
+ case "article":
416
+ t += `
417
+
418
+ ` + u(e.content, a);
419
+ break;
420
+ case "summary":
421
+ case "time":
422
+ case "aside":
423
+ case "nav":
424
+ case "figcaption":
425
+ case "main":
426
+ case "mark":
427
+ case "header":
428
+ case "footer":
429
+ case "details":
430
+ case "figure":
431
+ t += `
432
+
433
+ <-${e.htmlType}->
434
+ ` + u(e.content, a) + `
435
+
436
+ </-${e.htmlType}->
437
+ `;
438
+ break;
439
+ case "section":
440
+ t += `---
441
+
442
+ `, t += u(e.content, a), t += `
443
+
444
+ `, t += `---
445
+
446
+ `;
447
+ break;
448
+ }
449
+ break;
450
+ case "custom":
451
+ const O = (T = a == null ? void 0 : a.renderCustomNode) == null ? void 0 : T.call(a, e, a, r);
452
+ O && (t += O);
453
+ break;
454
+ }
455
+ }), t;
456
+ }
457
+ return I;
458
+ }
459
+ var _ = {}, R;
460
+ function K() {
461
+ if (R) return _;
462
+ R = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.findMainContent = g, _.wrapMainContent = b, _.calculateScore = r;
463
+ const l = (e) => {
464
+ };
465
+ function g(e) {
466
+ const s = e.querySelector("main") || e.querySelector('[role="main"]');
467
+ return s || (e.body ? u(e.body) : e.documentElement);
468
+ }
469
+ function b(e, s) {
470
+ if (e.tagName.toLowerCase() !== "main") {
471
+ const o = s.createElement("main");
472
+ e.before(o), o.appendChild(e), o.id = "detected-main-content";
473
+ }
474
+ }
475
+ function u(e) {
476
+ const s = [];
477
+ if (a(e, s, 20), s.length === 0)
478
+ return e;
479
+ s.sort((d, m) => r(m) - r(d));
480
+ let i = s[0];
481
+ for (let d = 1; d < s.length; d++)
482
+ s.some((m, T) => T !== d && m.contains(s[d])) || r(s[d]) > r(i) && (i = s[d], l(`New best independent candidate found: ${n(i)}`));
483
+ return l(`Final main content candidate: ${n(i)}`), i;
484
+ }
485
+ function n(e) {
486
+ return e ? `${e.tagName}#${e.id || "no-id"}.${Array.from(e.classList).join(".")}` : "No element";
487
+ }
488
+ function a(e, s, o) {
489
+ const i = r(e);
490
+ i >= o && (s.push(e), l(`Candidate found: ${n(e)}, score: ${i}`)), Array.from(e.children).forEach((d) => {
491
+ a(d, s, o);
492
+ });
493
+ }
494
+ function r(e) {
495
+ var $, k;
496
+ let s = 0, o = [];
497
+ ["article", "content", "main-container", "main", "main-content"].forEach((M) => {
498
+ (e.classList.contains(M) || e.id === M) && (s += 10, o.push(`High impact attribute found: [${M}] [${[...e.classList.values()].join(",")}], score increased by 10`));
499
+ }), ["article", "main", "section"].includes(e.tagName.toLowerCase()) && (s += 5, o.push(`High impact tag found: [${e.tagName}], score increased by 5`));
500
+ const m = e.getElementsByTagName("p").length, T = Math.min(m, 5);
501
+ T > 0 && (s += T, o.push(`Paragraph count: ${m}, score increased by ${T}`));
502
+ const p = (($ = e.textContent) == null ? void 0 : $.trim().length) || 0;
503
+ if (p > 200) {
504
+ const M = Math.min(Math.floor(p / 200), 5);
505
+ s += M, o.push(`Text content length: ${p}, score increased by ${M}`);
506
+ }
507
+ const w = t(e);
508
+ return w < 0.3 && (s += 5, o.push(`Link density: ${w.toFixed(2)}, score increased by 5`)), (e.hasAttribute("data-main") || e.hasAttribute("data-content")) && (s += 10, o.push("Data attribute for main content found, score increased by 10")), (k = e.getAttribute("role")) != null && k.includes("main") && (s += 10, o.push("Role attribute indicating main content found, score increased by 10")), o.length > 0 && l(`Scoring for ${n(e)}:`), s;
509
+ }
510
+ function t(e) {
511
+ var i;
512
+ const s = Array.from(e.getElementsByTagName("a")).reduce((d, m) => {
513
+ var T;
514
+ return d + (((T = m.textContent) == null ? void 0 : T.length) || 0);
515
+ }, 0), o = ((i = e.textContent) == null ? void 0 : i.length) || 1;
516
+ return s / o;
517
+ }
518
+ return _;
519
+ }
520
+ var v = {}, W;
521
+ function Q() {
522
+ if (W) return v;
523
+ W = 1, Object.defineProperty(v, "__esModule", { value: !0 }), v.refifyUrls = u;
524
+ const l = [
525
+ "jpeg",
526
+ "jpg",
527
+ "png",
528
+ "gif",
529
+ "bmp",
530
+ "tiff",
531
+ "tif",
532
+ "svg",
533
+ "webp",
534
+ "ico",
535
+ "avi",
536
+ "mov",
537
+ "mp4",
538
+ "mkv",
539
+ "flv",
540
+ "wmv",
541
+ "webm",
542
+ "mpeg",
543
+ "mpg",
544
+ "mp3",
545
+ "wav",
546
+ "aac",
547
+ "ogg",
548
+ "flac",
549
+ "m4a",
550
+ "pdf",
551
+ "doc",
552
+ "docx",
553
+ "ppt",
554
+ "pptx",
555
+ "xls",
556
+ "xlsx",
557
+ "txt",
558
+ "css",
559
+ "js",
560
+ "xml",
561
+ "json",
562
+ "html",
563
+ "htm"
564
+ ], g = (n, a) => (a[n] || (a[n] = "ref" + Object.values(a).length), a[n]), b = (n, a) => {
565
+ if (n.startsWith("http")) {
566
+ const r = n.split(".").slice(-1)[0];
567
+ if (r && l.includes(r)) {
568
+ const t = n.split("/"), e = t.slice(0, -1).join("/");
569
+ return `${g(e, a)}://${t.slice(-1).join("")}`;
570
+ } else
571
+ return n.split("/").length > 4 ? g(n, a) : n;
572
+ } else
573
+ return n;
574
+ };
575
+ function u(n, a = {}) {
576
+ if (Array.isArray(n))
577
+ n.forEach((r) => u(r, a));
578
+ else
579
+ switch (n.type) {
580
+ case "link":
581
+ n.href = b(n.href, a), u(n.content, a);
582
+ break;
583
+ case "image":
584
+ case "video":
585
+ n.src = b(n.src, a);
586
+ break;
587
+ case "list":
588
+ n.items.forEach((r) => r.content.forEach((t) => u(t, a)));
589
+ break;
590
+ case "table":
591
+ n.rows.forEach((r) => r.cells.forEach((t) => typeof t.content == "string" ? null : u(t.content, a)));
592
+ break;
593
+ case "blockquote":
594
+ case "semanticHtml":
595
+ u(n.content, a);
596
+ break;
597
+ }
598
+ return a;
599
+ }
600
+ return v;
601
+ }
602
+ var j = {}, G;
603
+ function Z() {
604
+ return G || (G = 1, function(l) {
605
+ Object.defineProperty(l, "__esModule", { value: !0 }), l.isNot = l.getMainContent = void 0, l.findInAST = n, l.findAllInAST = a;
606
+ const g = (r) => {
607
+ if (r.includes("<-main->")) {
608
+ const t = new RegExp("(?<=<-main->)[\\s\\S]*?(?=<\\/-main->)"), e = r.match(t);
609
+ return (e == null ? void 0 : e[0]) ?? "";
610
+ } else {
611
+ const t = /(<-nav->[\s\S]*?<\/-nav->)|(<-footer->[\s\S]*?<\/-footer->)|(<-header->[\s\S]*?<\/-header->)|(<-aside->[\s\S]*?<\/-aside->)/g;
612
+ return r.replace(t, "");
613
+ }
614
+ };
615
+ l.getMainContent = g;
616
+ const b = (r) => (t) => !r(t);
617
+ l.isNot = b;
618
+ const u = (r) => typeof r == "string";
619
+ function n(r, t) {
620
+ const e = (s) => {
621
+ for (const o of s) {
622
+ const i = n(o, t);
623
+ if (i)
624
+ return i;
625
+ }
626
+ };
627
+ if (Array.isArray(r))
628
+ return e(r);
629
+ if (t(r))
630
+ return r;
631
+ switch (r.type) {
632
+ case "link":
633
+ return e(r.content);
634
+ case "list":
635
+ return e(r.items.map((s) => s.content).flat());
636
+ case "table":
637
+ return e(r.rows.map((s) => s.cells.map((o) => o.content).filter((0, l.isNot)(u))).flat());
638
+ case "blockquote":
639
+ case "semanticHtml":
640
+ return e(r.content);
641
+ }
642
+ }
643
+ function a(r, t) {
644
+ const e = (s) => {
645
+ let o = [];
646
+ for (const i of s) {
647
+ const d = a(i, t);
648
+ o = [...o, ...d];
649
+ }
650
+ return o;
651
+ };
652
+ if (Array.isArray(r))
653
+ return e(r);
654
+ if (t(r))
655
+ return [r];
656
+ switch (r.type) {
657
+ case "link":
658
+ return e(r.content);
659
+ case "list":
660
+ return e(r.items.map((s) => s.content).flat());
661
+ case "table":
662
+ return e(r.rows.map((s) => s.cells.map((o) => o.content).filter((0, l.isNot)(u))).flat());
663
+ case "blockquote":
664
+ case "semanticHtml":
665
+ return e(r.content);
666
+ }
667
+ return [];
668
+ }
669
+ }(j)), j;
670
+ }
671
+ var F;
672
+ function B() {
673
+ return F || (F = 1, function(l) {
674
+ Object.defineProperty(l, "__esModule", { value: !0 }), l.wrapMainContent = l.refifyUrls = l.findMainContent = l.markdownASTToString = l.htmlToMarkdownAST = void 0, l.convertHtmlToMarkdown = r, l.convertElementToMarkdown = t, l.findInMarkdownAST = e, l.findAllInMarkdownAST = s;
675
+ const g = V();
676
+ Object.defineProperty(l, "htmlToMarkdownAST", { enumerable: !0, get: function() {
677
+ return g.htmlToMarkdownAST;
678
+ } });
679
+ const b = z();
680
+ Object.defineProperty(l, "markdownASTToString", { enumerable: !0, get: function() {
681
+ return b.markdownASTToString;
682
+ } });
683
+ const u = K();
684
+ Object.defineProperty(l, "findMainContent", { enumerable: !0, get: function() {
685
+ return u.findMainContent;
686
+ } }), Object.defineProperty(l, "wrapMainContent", { enumerable: !0, get: function() {
687
+ return u.wrapMainContent;
688
+ } });
689
+ const n = Q();
690
+ Object.defineProperty(l, "refifyUrls", { enumerable: !0, get: function() {
691
+ return n.refifyUrls;
692
+ } });
693
+ const a = Z();
694
+ function r(o, i) {
695
+ var p, w;
696
+ const d = (i == null ? void 0 : i.overrideDOMParser) ?? (typeof DOMParser < "u" ? new DOMParser() : null);
697
+ if (!d)
698
+ throw new Error("DOMParser is not available. Please provide an overrideDOMParser in options.");
699
+ const m = d.parseFromString(o, "text/html");
700
+ let T;
701
+ return i != null && i.extractMainContent ? (T = (0, u.findMainContent)(m), i.includeMetaData && ((p = m.querySelector("head")) != null && p.innerHTML) && !T.querySelector("head") && (T = d.parseFromString(`<html>${m.head.outerHTML}${T.outerHTML}`, "text/html").documentElement)) : i != null && i.includeMetaData && ((w = m.querySelector("head")) != null && w.innerHTML) ? T = m.documentElement : T = m.body || m.documentElement, t(T, i);
702
+ }
703
+ function t(o, i) {
704
+ let d = (0, g.htmlToMarkdownAST)(o, i);
705
+ return i != null && i.refifyUrls && (i.urlMap = (0, n.refifyUrls)(d)), (0, b.markdownASTToString)(d, i);
706
+ }
707
+ function e(o, i) {
708
+ return (0, a.findInAST)(o, i);
709
+ }
710
+ function s(o, i) {
711
+ return (0, a.findAllInAST)(o, i);
712
+ }
713
+ }(P)), P;
714
+ }
715
+ var ee = B();
716
+ const te = /* @__PURE__ */ Y({
717
+ __proto__: null
718
+ }, [ee]);
719
+ export {
720
+ te as i
721
+ };