@luzmo/analytics-components-kit 1.0.8-beta.4 → 1.0.8-beta.5
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.
- package/components/ai-chat/ai-chat.d.ts +4 -0
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.js +2 -2
- package/components/ai-chat-7kHoMVeu.cjs +321 -0
- package/components/{ai-chat-CSoYb7E3.js → ai-chat-CI9l8ZOE.js} +693 -627
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +6 -0
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -1
- package/components/{ai-interaction-textarea-BZAeZunP.js → ai-interaction-textarea-BbVH-aF4.js} +14 -6
- package/components/{ai-interaction-textarea-1WuexZ9Q.cjs → ai-interaction-textarea-Crcz4rCV.cjs} +4 -3
- package/components/{area-chart-options.config-HaYA8gPC.js → area-chart-options.config-B94ERc30.js} +12 -7
- package/components/area-chart-options.config-Bf5kti7Z.cjs +20 -0
- package/components/{area-chart-positioning.config-CMNWsFdQ.cjs → area-chart-positioning.config-D8_KYS-h.cjs} +1 -1
- package/components/{area-chart-positioning.config-B2TiEOKI.js → area-chart-positioning.config-DT7OiLe4.js} +1 -1
- package/components/{bar-chart-options.config--F0KfZ5y.js → bar-chart-options.config-B1C3t6uk.js} +12 -10
- package/components/bar-chart-options.config-CI17HU2I.cjs +20 -0
- package/components/{bar-chart-positioning.config-CfCl6YMX.cjs → bar-chart-positioning.config-CnMHGk5K.cjs} +1 -1
- package/components/{bar-chart-positioning.config-BrXy8UPf.js → bar-chart-positioning.config-FEwWvMF6.js} +1 -1
- package/components/{base-CyMoOIH2.js → base-BkD2CWTy.js} +1 -1
- package/components/{base-DY99ut2q.cjs → base-XtzYH7G4.cjs} +1 -1
- package/components/box-plot-options.config-Cp6H9fyb.cjs +20 -0
- package/components/{box-plot-options.config-CT4_71tE.js → box-plot-options.config-sBfVzPTw.js} +24 -19
- package/components/{box-plot-positioning.config-CYKg8ebh.cjs → box-plot-positioning.config-Cij5pfeH.cjs} +1 -1
- package/components/{box-plot-positioning.config-DYHIaLKf.js → box-plot-positioning.config-DxRLb2qS.js} +1 -1
- package/components/{bubble-chart-options.config-B_hTYgid.js → bubble-chart-options.config-DKeBF5A0.js} +9 -7
- package/components/bubble-chart-options.config-e_0LM1Uw.cjs +20 -0
- package/components/{bubble-chart-positioning.config-D8uKM21g.cjs → bubble-chart-positioning.config-BmNR5EQH.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-DW2fyRST.js → bubble-chart-positioning.config-CVnk6LlN.js} +1 -1
- package/components/{bullet-chart-positioning.config-B0o0yLmt.js → bullet-chart-positioning.config-7sPWksMT.js} +1 -1
- package/components/{bullet-chart-positioning.config-BZVi5Z37.cjs → bullet-chart-positioning.config-CNkU3bzI.cjs} +1 -1
- package/components/choropleth-map-options.config-VG10yjwC.cjs +20 -0
- package/components/{choropleth-map-options.config-CsJjKLVP.js → choropleth-map-options.config-nOE0NWaD.js} +29 -27
- package/components/{choropleth-map-positioning.config-ZoJMcINR.cjs → choropleth-map-positioning.config-CljoQanM.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-_cjikPvV.js → choropleth-map-positioning.config-CuaL7fSP.js} +1 -1
- package/components/{circle-pack-chart-options.config-Dobt6Q5A.cjs → circle-pack-chart-options.config-BmX0w3cH.cjs} +1 -1
- package/components/{circle-pack-chart-options.config-FcILD-Hi.js → circle-pack-chart-options.config-CgE8vGP9.js} +36 -31
- package/components/{circle-pack-chart-positioning.config-Dp14Xy4g.cjs → circle-pack-chart-positioning.config-CiF6h2TX.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-Bs_vUTrq.js → circle-pack-chart-positioning.config-maqHu5T2.js} +1 -1
- package/components/{circular-gauge-positioning.config-Bon_UJ9A.cjs → circular-gauge-positioning.config-BK2YSDr1.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-Bsshd-zZ.js → circular-gauge-positioning.config-e9_VgpRY.js} +1 -1
- package/components/{column-chart-options.config-BzMjdyfp.js → column-chart-options.config-C2GGiHOI.js} +12 -10
- package/components/column-chart-options.config-xmSH4NKF.cjs +20 -0
- package/components/{column-chart-positioning.config-DUcXbA1k.cjs → column-chart-positioning.config-DdiwInY-.cjs} +1 -1
- package/components/{column-chart-positioning.config-BrSD_Vrd.js → column-chart-positioning.config-DpPXllzx.js} +1 -1
- package/components/combination-chart-options.config-IEamJGCp.cjs +20 -0
- package/components/{combination-chart-options.config-BEMnrQdd.js → combination-chart-options.config-LddX4naq.js} +8 -3
- package/components/{combination-chart-positioning.config-DHvp-1kZ.cjs → combination-chart-positioning.config-5Qnm4ZYG.cjs} +1 -1
- package/components/{combination-chart-positioning.config-DIWEeLYk.js → combination-chart-positioning.config-D7c6z5j6.js} +1 -1
- package/components/{conditional-number-positioning.config-BgKxHoAw.cjs → conditional-number-positioning.config-Bmc5b4Hr.cjs} +1 -1
- package/components/{conditional-number-positioning.config-BFzK6gRk.js → conditional-number-positioning.config-BnMcO9mu.js} +1 -1
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -1
- package/components/{data-field-LCJaGHTs.cjs → data-field-BmpgtPX8.cjs} +1 -1
- package/components/{data-field-C_rVntAB.js → data-field-DTQxvpeM.js} +3 -3
- package/components/data-field-level/index.cjs +1 -1
- package/components/data-field-level/index.js +1 -1
- package/components/{data-field-level-DIS8fBDr.cjs → data-field-level-D0RZHwqF.cjs} +1 -1
- package/components/{data-field-level-Bq4m_uay.js → data-field-level-EOj5KvoG.js} +1 -1
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -1
- package/components/{data-field-panel-DWRs7buc.cjs → data-field-panel-Bc_4pQwc.cjs} +1 -1
- package/components/{data-field-panel-B7CqUPNc.js → data-field-panel-Dya_9wHn.js} +3 -3
- package/components/data-fields-select/index.cjs +1 -1
- package/components/data-fields-select/index.js +1 -1
- package/components/{data-fields-select-20qMlApt.js → data-fields-select-2Da7XC6m.js} +1 -1
- package/components/{data-fields-select-CGtDf-oP.cjs → data-fields-select-D4Sxxb_Z.cjs} +1 -1
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +1 -1
- package/components/{dataset-selector-list-DBLtXZrx.js → dataset-selector-list-CK9KzC1a.js} +1 -1
- package/components/{dataset-selector-list-HHKokk1u.cjs → dataset-selector-list-m1XmVt8T.cjs} +1 -1
- package/components/dataset-selector-row/dataset-selector-row.d.ts +8 -1
- package/components/dataset-selector-row/index.cjs +1 -1
- package/components/dataset-selector-row/index.js +1 -1
- package/components/{dataset-selector-row-D9cQeVQi.cjs → dataset-selector-row-B78ZLWQS.cjs} +5 -5
- package/components/{dataset-selector-row-BR5fZlp0.js → dataset-selector-row-gBQl1Bza.js} +19 -9
- package/components/{de-CSvZ1Nhx.js → de-_-1hLVI0.js} +1 -0
- package/components/de-g8uRTFxZ.cjs +20 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/{display-settings-0-94VuDl.cjs → display-settings-DLWnhQe0.cjs} +1 -1
- package/components/{display-settings-BB7xS-BO.js → display-settings-DgOPeUie.js} +2 -2
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -1
- package/components/{display-settings-binning-BdwOpAPi.js → display-settings-binning-CE4hmdtx.js} +2 -2
- package/components/{display-settings-binning-CgfWIih3.cjs → display-settings-binning-CYM7FpXw.cjs} +1 -1
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -1
- package/components/{display-settings-datetime-CHZ9PRGK.js → display-settings-datetime-D4f_o6NK.js} +2 -2
- package/components/{display-settings-datetime-BS7mUN1_.cjs → display-settings-datetime-h8CvoTZ8.cjs} +1 -1
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +1 -1
- package/components/{display-settings-grand-totals-BLEb1hLW.js → display-settings-grand-totals-CnP8P-cu.js} +2 -2
- package/components/{display-settings-grand-totals-CzLxqBqm.cjs → display-settings-grand-totals-D0YsVbSs.cjs} +1 -1
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +1 -1
- package/components/{display-settings-numeric-0rg03IAh.cjs → display-settings-numeric-DF4zjmZj.cjs} +1 -1
- package/components/{display-settings-numeric-cJJcpFQf.js → display-settings-numeric-DyAFuYTz.js} +2 -2
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +1 -1
- package/components/{display-settings-period-over-period-B4f8fbWG.js → display-settings-period-over-period-B634a88N.js} +2 -2
- package/components/{display-settings-period-over-period-DC3KxRpN.cjs → display-settings-period-over-period-DXuRHg-1.cjs} +1 -1
- package/components/{donut-chart-options.config-D5Wkh0nh.js → donut-chart-options.config-CPHgS1Wi.js} +8 -3
- package/components/donut-chart-options.config-LbmJpNlm.cjs +20 -0
- package/components/{donut-chart-positioning.config-BsKp1HXE.cjs → donut-chart-positioning.config-BhIwOPI0.cjs} +1 -1
- package/components/{donut-chart-positioning.config-DdDed2_1.js → donut-chart-positioning.config-Peq3v9qK.js} +1 -1
- package/components/es-C3dhJP2H.cjs +20 -0
- package/components/{es-DvViVwvd.js → es-Cdl4GvQt.js} +1 -0
- package/components/{evolution-number-positioning.config-CYyOIuVk.cjs → evolution-number-positioning.config-ClGlayIt.cjs} +1 -1
- package/components/{evolution-number-positioning.config-VL8htBRQ.js → evolution-number-positioning.config-e90XUBQG.js} +1 -1
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/{filter-expression-picker-BrUtAgn8.js → filter-expression-picker-BPAwOijt.js} +1 -1
- package/components/{filter-expression-picker-FKIEpvg6.cjs → filter-expression-picker-COCoT5LG.cjs} +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -1
- package/components/{filter-item-BZbHQx0n.js → filter-item-CbDbNmni.js} +5 -5
- package/components/{filter-item-C8tt3MFg.cjs → filter-item-cyApfc9M.cjs} +1 -1
- package/components/filter-parameter-picker/index.cjs +1 -1
- package/components/filter-parameter-picker/index.js +1 -1
- package/components/{filter-parameter-picker-pioi6px3.js → filter-parameter-picker-CCd77cYS.js} +1 -1
- package/components/{filter-parameter-picker-msFqEEAh.cjs → filter-parameter-picker-F68BatwD.cjs} +1 -1
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/{filter-value-picker-Drt9dOXf.js → filter-value-picker-CLUUhn1d.js} +4 -4
- package/components/{filter-value-picker-CgLTYLwU.cjs → filter-value-picker-DADia7jo.cjs} +1 -1
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +1 -1
- package/components/{filter-value-picker-datetime-D5W0j1CH.cjs → filter-value-picker-datetime-CuMmWJFV.cjs} +1 -1
- package/components/{filter-value-picker-datetime-B0o4rlXW.js → filter-value-picker-datetime-DM2K7Nrv.js} +1 -1
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -1
- package/components/{filter-value-picker-hierarchy-B1dnC37T.cjs → filter-value-picker-hierarchy-BQTrc0ZU.cjs} +1 -1
- package/components/{filter-value-picker-hierarchy-BiUz-XXQ.js → filter-value-picker-hierarchy-W-a9ycWV.js} +2 -2
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +1 -1
- package/components/{filter-value-picker-numeric-BIvL94I1.cjs → filter-value-picker-numeric-CXfgDZ4W.cjs} +1 -1
- package/components/{filter-value-picker-numeric-BU7p1q3J.js → filter-value-picker-numeric-DL5cqR8I.js} +1 -1
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/{filters-CC1WEkUl.cjs → filters-Dj4mQklp.cjs} +1 -1
- package/components/{filters-Bq4S-VeF.js → filters-bruSosZt.js} +2 -2
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/{formula-_2SPG88m.js → formula-CbApVbw7.js} +2 -2
- package/components/{formula-DzlOfUfI.cjs → formula-DkANj6Hi.cjs} +1 -1
- package/components/{formula-codemirror-CLm2OLSy.js → formula-codemirror-C_wCMc2M.js} +4 -4
- package/components/{formula-codemirror-BXT_tfaJ.cjs → formula-codemirror-DGxXJYCi.cjs} +1 -1
- package/components/{formula-display-store-DBdEPEdf.cjs → formula-display-store-B2DUrVwh.cjs} +1 -1
- package/components/{formula-display-store-nqONAx35.js → formula-display-store-SkrNDfyG.js} +3 -3
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.js +3 -3
- package/components/{formula-editor-B65HPmmh.js → formula-editor-DX5FRb2v.js} +5 -5
- package/components/{formula-editor-DEo-RcGC.cjs → formula-editor-Dv4UIAe_.cjs} +1 -1
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +1 -1
- package/components/{formula-field-CXCuJ_sa.js → formula-field-CwnAHHpw.js} +1 -1
- package/components/{formula-field-DpPBypCh.cjs → formula-field-tJsQsXic.cjs} +1 -1
- package/components/{formula-input-base-yBcGx5Oa.cjs → formula-input-base-6iVykYb0.cjs} +1 -1
- package/components/{formula-input-base-DmjxzsEi.js → formula-input-base-mKhAiYM0.js} +1 -1
- package/components/fr-WdV_fXl_.cjs +20 -0
- package/components/{fr-CkDebjRX.js → fr-qv7EjBRo.js} +1 -0
- package/components/{funnel-chart-options.config-Ca5-W17F.js → funnel-chart-options.config-D21WdHBI.js} +5 -3
- package/components/funnel-chart-options.config-DgpM8mWb.cjs +20 -0
- package/components/{funnel-chart-positioning.config-BU7QpgsX.js → funnel-chart-positioning.config-Havc4gNs.js} +1 -1
- package/components/{funnel-chart-positioning.config-DbpJfDa2.cjs → funnel-chart-positioning.config-PrEIQPXg.cjs} +1 -1
- package/components/{get-dataset-name-Dgmhqlon.cjs → get-dataset-name-BR_H1MNL.cjs} +1 -1
- package/components/{get-dataset-name-ffz-R0AZ.js → get-dataset-name-CIf7x0nh.js} +1 -1
- package/components/{groupings-DH6XUvSc.cjs → groupings-BKSBZ34s.cjs} +1 -1
- package/components/{groupings-DBsH-kNN.js → groupings-CIVQITJp.js} +1 -1
- package/components/{heat-map-positioning.config-DHO5wFHL.js → heat-map-positioning.config-CF6XNksR.js} +1 -1
- package/components/{heat-map-positioning.config-DkQjSPaE.cjs → heat-map-positioning.config-L91C9c0t.cjs} +1 -1
- package/components/{heat-table-options.config-DT3d8VS7.js → heat-table-options.config-BJP1jVB8.js} +20 -18
- package/components/heat-table-options.config-CugBuoUA.cjs +20 -0
- package/components/{heat-table-positioning.config-BrJkuNbc.js → heat-table-positioning.config-0YNV-Whw.js} +1 -1
- package/components/{heat-table-positioning.config-mw5AsGAJ.cjs → heat-table-positioning.config-BuH8txu-.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-DLYBOrHE.cjs → hexbin-map-positioning.config-Dx42tGRj.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-D5hP-can.js → hexbin-map-positioning.config-wKi8qbMF.js} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +54 -54
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.js +1 -1
- package/components/{interactive-viz-item-rLknJxre.js → interactive-viz-item-DMOsdrLN.js} +5 -5
- package/components/{interactive-viz-item-CAuKz5tw.cjs → interactive-viz-item-YwkjBGtN.cjs} +1 -1
- package/components/interactivity-options.config-BjEGNaIz.js +73 -0
- package/components/interactivity-options.config-Bzk2L-qh.cjs +20 -0
- package/components/interactivity-options.i18n-BsYv4Rh9.cjs +20 -0
- package/components/interactivity-options.i18n-UhOnnlBC.js +59 -0
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/{item-grid-Bd3rXwND.cjs → item-grid-B1ColM8x.cjs} +1 -1
- package/components/{item-grid-jF9cv8_u.js → item-grid-iYxxuvvA.js} +1 -1
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/{item-option-3sEzoA0L.js → item-option-BIWC5VRT.js} +38 -38
- package/components/{item-option-DO2oJXcs.cjs → item-option-Cz10G9yw.cjs} +1 -1
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +1 -1
- package/components/{item-option-action-button-group-CebgGfxf.cjs → item-option-action-button-group-Dq6xKpHi.cjs} +1 -1
- package/components/{item-option-action-button-group-C4SxsHUp.js → item-option-action-button-group-TPUU3sts.js} +1 -1
- package/components/{item-option-base-Gj1YRrI9.cjs → item-option-base-BKo7DBxK.cjs} +1 -1
- package/components/{item-option-base-Ierh9O_y.js → item-option-base-DcZILy3S.js} +1 -1
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -1
- package/components/{item-option-color-palette-picker-DXbPf9W-.cjs → item-option-color-palette-picker-C_Jx5Prb.cjs} +1 -1
- package/components/{item-option-color-palette-picker-CmD83j4z.js → item-option-color-palette-picker-i6Tnv4qN.js} +1 -1
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +1 -1
- package/components/{item-option-color-picker-DPOYXmqG.js → item-option-color-picker-BSXsKzZ-.js} +1 -1
- package/components/{item-option-color-picker-DctZh5Mm.cjs → item-option-color-picker-Co3iTjwo.cjs} +1 -1
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +1 -1
- package/components/{item-option-color-range-9v7VYG0c.cjs → item-option-color-range-CUYGCwQG.cjs} +1 -1
- package/components/{item-option-color-range-DEOogOTv.js → item-option-color-range-DE8-UNxr.js} +1 -1
- package/components/item-option-guidelines/index.cjs +1 -1
- package/components/item-option-guidelines/index.js +1 -1
- package/components/{item-option-guidelines-Bpg1RZ8x.cjs → item-option-guidelines-DUjfN-eB.cjs} +1 -1
- package/components/{item-option-guidelines-B115G2nq.js → item-option-guidelines-DWdPS45K.js} +3 -3
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -1
- package/components/{item-option-multi-language-field-DBBhowms.cjs → item-option-multi-language-field-CWE9WrxP.cjs} +1 -1
- package/components/{item-option-multi-language-field-B-u0bans.js → item-option-multi-language-field-D5e36e1G.js} +1 -1
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +1 -1
- package/components/{item-option-number-field-DkYnFmJW.js → item-option-number-field-BElZmdUU.js} +1 -1
- package/components/{item-option-number-field-DMy08TP2.cjs → item-option-number-field-RJ88VAyR.cjs} +1 -1
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -1
- package/components/{item-option-panel-BNpgv1gX.cjs → item-option-panel-BmaT4y_2.cjs} +1 -1
- package/components/{item-option-panel-Cz6GVI3l.js → item-option-panel-D7klHx03.js} +2 -2
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -1
- package/components/{item-option-picker-dmG9E9xR.cjs → item-option-picker-C3M-7kWF.cjs} +1 -1
- package/components/{item-option-picker-C9f4tyLr.js → item-option-picker-DnWKHPYS.js} +1 -1
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -1
- package/components/{item-option-position-picker-CivQYly9.cjs → item-option-position-picker-B2qUrVJd.cjs} +1 -1
- package/components/{item-option-position-picker-DNoDU6MW.js → item-option-position-picker-CUTrYLPj.js} +1 -1
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -1
- package/components/{item-option-positions-number-field-DyyEdaPZ.js → item-option-positions-number-field-B4zcS62B.js} +1 -1
- package/components/{item-option-positions-number-field-BBkQN71c.cjs → item-option-positions-number-field-EXPp_Vr4.cjs} +1 -1
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +1 -1
- package/components/{item-option-radio-button-group--zidnOr9.js → item-option-radio-button-group-Cs1sSCVM.js} +1 -1
- package/components/{item-option-radio-button-group-D0W86RmI.cjs → item-option-radio-button-group-D8GbkHVX.cjs} +1 -1
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/{item-option-slider-4vDy4etx.cjs → item-option-slider-Bo1ALP8q.cjs} +1 -1
- package/components/{item-option-slider-Baadoyqo.js → item-option-slider-CcKLS-V5.js} +1 -1
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -1
- package/components/{item-option-switch-CHYIbPgD.js → item-option-switch-Ch6u9CAm.js} +1 -1
- package/components/{item-option-switch-BaQDqsMY.cjs → item-option-switch-CpeC7Eh7.cjs} +1 -1
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -1
- package/components/{item-option-text-field-D92viGBN.cjs → item-option-text-field-BxvQAHf3.cjs} +1 -1
- package/components/{item-option-text-field-CZ02qLJ4.js → item-option-text-field-DAbQegOZ.js} +1 -1
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +21 -21
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +1 -1
- package/components/{item-slot-drop-C1z1dxFw.js → item-slot-drop-DDffbp-i.js} +5 -5
- package/components/{item-slot-drop-BU2U3-HV.cjs → item-slot-drop-mKhyjodt.cjs} +1 -1
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +1 -1
- package/components/{item-slot-drop-panel-CA9-hvpd.js → item-slot-drop-panel-BtrZehGL.js} +39 -39
- package/components/{item-slot-drop-panel-CrMdoDfz.cjs → item-slot-drop-panel-CKXMQCyt.cjs} +1 -1
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -1
- package/components/{item-slot-picker-Btmi-rsC.js → item-slot-picker-CWqeOJ8R.js} +6 -6
- package/components/{item-slot-picker-DwgJiY3S.cjs → item-slot-picker-CwMjRpkT.cjs} +1 -1
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -1
- package/components/{item-slot-picker-panel-HDUJLBsv.cjs → item-slot-picker-panel-C6Hpc2rT.cjs} +1 -1
- package/components/{item-slot-picker-panel-BoSCNOU4.js → item-slot-picker-panel-cD3DvPbA.js} +3 -3
- package/components/{line-chart-options.config-BMT_e6dk.js → line-chart-options.config-D8gRtfj3.js} +10 -5
- package/components/line-chart-options.config-RTYFJQSE.cjs +20 -0
- package/components/{line-chart-positioning.config-BcxVwrHz.js → line-chart-positioning.config-DoHg1rwA.js} +1 -1
- package/components/{line-chart-positioning.config-BEf1yZXt.cjs → line-chart-positioning.config-ZZid30rm.cjs} +1 -1
- package/components/{localized-mixin-BXDzTsZA.js → localized-mixin-CSF-kZFt.js} +1 -1
- package/components/{localized-mixin-9QFQ92Y7.cjs → localized-mixin-DZFYG6RG.cjs} +1 -1
- package/components/{marker-map-positioning.config-CrtimrEf.cjs → marker-map-positioning.config-DGZWoFAk.cjs} +1 -1
- package/components/{marker-map-positioning.config-DgjLNbIX.js → marker-map-positioning.config-DX6bFQld.js} +1 -1
- package/components/nl-D3gRr88b.cjs +20 -0
- package/components/{nl-b0wCsQJf.js → nl-MWgzbW0R.js} +1 -0
- package/components/{ohlc-chart-options.config-BrcfGxDw.cjs → ohlc-chart-options.config-Pqd5MFIv.cjs} +1 -1
- package/components/{ohlc-chart-options.config-BAB4pyo9.js → ohlc-chart-options.config-xgegn34C.js} +8 -3
- package/components/{ohlc-chart-positioning.config-BXQ8AWsP.cjs → ohlc-chart-positioning.config-Bev8Atsx.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-BvvfmqTO.js → ohlc-chart-positioning.config-DaEUcXBJ.js} +1 -1
- package/components/{parallel-coordinates-plot-options.config-DFRL952-.cjs → parallel-coordinates-plot-options.config-2BbzNgJ9.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.config-BXsg-9wF.js → parallel-coordinates-plot-options.config-BUQLHO1k.js} +25 -20
- package/components/{parallel-coordinates-plot-options.de-WRF50oS3.js → parallel-coordinates-plot-options.de-BwbOcCnH.js} +2 -1
- package/components/{parallel-coordinates-plot-options.de-0P5Lyjc_.cjs → parallel-coordinates-plot-options.de-CDtIM_Z2.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.en-CttM0XeT.js → parallel-coordinates-plot-options.en-BlzPfF-b.js} +2 -1
- package/components/{parallel-coordinates-plot-options.en-CSn2MAT2.cjs → parallel-coordinates-plot-options.en-Bu7cMLrv.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.es-30M9dgQD.cjs → parallel-coordinates-plot-options.es-BPgUHedg.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.es-Bi2HrtUG.js → parallel-coordinates-plot-options.es-CPAqJPEY.js} +2 -1
- package/components/{parallel-coordinates-plot-options.fr-B3wy9Y-c.cjs → parallel-coordinates-plot-options.fr-BUxk85Ud.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.fr-wE6jc23K.js → parallel-coordinates-plot-options.fr-DRTOCvqg.js} +2 -1
- package/components/{parallel-coordinates-plot-options.nl-CK0Z_bEU.cjs → parallel-coordinates-plot-options.nl-CHuWgaYV.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.nl-ByxbF6Re.js → parallel-coordinates-plot-options.nl-DqXxaV_Z.js} +2 -1
- package/components/{parallel-coordinates-plot-positioning.config-afRUNe2y.cjs → parallel-coordinates-plot-positioning.config-DJ7K-dVp.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-BH-BVeJ1.js → parallel-coordinates-plot-positioning.config-NWEEOd4d.js} +1 -1
- package/components/pivot-table-options.config-D6Hdgnof.cjs +20 -0
- package/components/{pivot-table-options.config-tf8f5F-n.js → pivot-table-options.config-DW9UDipI.js} +5 -3
- package/components/{pivot-table-positioning.config-BSYXa5pV.js → pivot-table-positioning.config-DpMiUVtd.js} +1 -1
- package/components/{pivot-table-positioning.config-Dd_pHhFz.cjs → pivot-table-positioning.config-U-M08Rwc.cjs} +1 -1
- package/components/{pyramid-chart-options.config-BnCfeT-K.js → pyramid-chart-options.config-Cbg351Yy.js} +5 -3
- package/components/pyramid-chart-options.config-ClLsv7PT.cjs +20 -0
- package/components/{pyramid-chart-positioning.config-CQIxlqqB.cjs → pyramid-chart-positioning.config-BpdI6jmg.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-BLWa7sSn.js → pyramid-chart-positioning.config-CZwx_f40.js} +1 -1
- package/components/{radar-chart-positioning.config-C8lJliO6.js → radar-chart-positioning.config-IFacftgi.js} +1 -1
- package/components/{radar-chart-positioning.config-Dl25YwXp.cjs → radar-chart-positioning.config-IcaEKe9Q.cjs} +1 -1
- package/components/{route-map-positioning.config-CKX0xBYP.js → route-map-positioning.config-CHfz0eM_.js} +1 -1
- package/components/{route-map-positioning.config-zP_Dowc9.cjs → route-map-positioning.config-DKZvRmfJ.cjs} +1 -1
- package/components/{sankey-diagram-options.config-CpNK2oK6.js → sankey-diagram-options.config-1lSECht4.js} +5 -3
- package/components/sankey-diagram-options.config-DZDqv5aI.cjs +20 -0
- package/components/{sankey-diagram-positioning.config-wXM60Kuq.js → sankey-diagram-positioning.config-BaCoBJXV.js} +1 -1
- package/components/{sankey-diagram-positioning.config-Cxx05iu7.cjs → sankey-diagram-positioning.config-DJaK2xJX.cjs} +1 -1
- package/components/{scatter-plot-options.config-BA_hVuhw.js → scatter-plot-options.config-9zL4v24E.js} +10 -5
- package/components/scatter-plot-options.config-DJW85uFv.cjs +20 -0
- package/components/{scatter-plot-positioning.config-6-jx5GCk.cjs → scatter-plot-positioning.config-DaNI54rh.cjs} +1 -1
- package/components/{scatter-plot-positioning.config-CnssCu8h.js → scatter-plot-positioning.config-PC47tloI.js} +1 -1
- package/components/{set-locale-BHxiIDi2.js → set-locale-Jz3DhqaW.js} +4 -4
- package/components/{set-locale-CZowB-SY.cjs → set-locale-v6POkwmC.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-LR36iXmI.js → slicer-filter-positioning.config-DMqYOG9Z.js} +1 -1
- package/components/{slicer-filter-positioning.config-5kOSDaxQ.cjs → slicer-filter-positioning.config-KANe71ep.cjs} +1 -1
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -1
- package/components/{slot-menu-BALLbLoG.cjs → slot-menu-CWMA97fn.cjs} +1 -1
- package/components/{slot-menu-CQ440_t5.js → slot-menu-Cwee5fNa.js} +3 -3
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -1
- package/components/{slot-menu-list-BI1x89t3.cjs → slot-menu-list-BEou0QhK.cjs} +1 -1
- package/components/{slot-menu-list-C2gWKwVd.js → slot-menu-list-De2q0GGZ.js} +1 -1
- package/components/{speedometer-chart-positioning.config-Dmg94Tpt.js → speedometer-chart-positioning.config-CYVK0VnJ.js} +1 -1
- package/components/{speedometer-chart-positioning.config-RJo6zE3F.cjs → speedometer-chart-positioning.config-DW3dJD7n.cjs} +1 -1
- package/components/{spike-map-positioning.config-Ceyd_KZR.js → spike-map-positioning.config-CfVFEygx.js} +1 -1
- package/components/{spike-map-positioning.config-CxQLToDu.cjs → spike-map-positioning.config-Dl-Uf_O6.cjs} +1 -1
- package/components/{strip-plot-positioning.config-Dm3F1gk3.js → strip-plot-positioning.config-BMNtb-to.js} +1 -1
- package/components/{strip-plot-positioning.config-DSRWJqxs.cjs → strip-plot-positioning.config-eJ5MbyBk.cjs} +1 -1
- package/components/{sunburst-chart-options.config-0GUoeJMb.js → sunburst-chart-options.config-CXOrVmIe.js} +5 -3
- package/components/sunburst-chart-options.config-DszAtggj.cjs +20 -0
- package/components/{sunburst-chart-positioning.config-B_dzmryh.js → sunburst-chart-positioning.config-BRWF7dVf.js} +1 -1
- package/components/{sunburst-chart-positioning.config-eJm51jNd.cjs → sunburst-chart-positioning.config-CJgmPm-9.cjs} +1 -1
- package/components/{symbol-map-positioning.config-BgAOtKCY.cjs → symbol-map-positioning.config-ONSN27l9.cjs} +1 -1
- package/components/{symbol-map-positioning.config-DnRK53sm.js → symbol-map-positioning.config-_8L-oDxW.js} +1 -1
- package/components/{treemap-chart-options.config-CtpfX7hs.js → treemap-chart-options.config-6l3HzikF.js} +10 -8
- package/components/treemap-chart-options.config-Cpj6vD6I.cjs +20 -0
- package/components/{treemap-chart-positioning.config-BaK7GoAz.js → treemap-chart-positioning.config-Bggn7Mqz.js} +1 -1
- package/components/{treemap-chart-positioning.config-BAeW42r1.cjs → treemap-chart-positioning.config-DrCRoNzf.cjs} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/{utils-5XxVlM3x.js → utils-B2Eqs5i5.js} +1 -1
- package/components/{utils-CNtoiiWk.cjs → utils-CNH9xGyk.cjs} +1 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +2 -2
- package/components/{venn-diagram-positioning.config-ClSeknwP.cjs → venn-diagram-positioning.config-B-prEVEc.cjs} +1 -1
- package/components/{venn-diagram-positioning.config-Co6TTZdV.js → venn-diagram-positioning.config-BoH0wNEM.js} +1 -1
- package/components/viz-item-menu/index.cjs +1 -1
- package/components/viz-item-menu/index.js +1 -1
- package/components/{viz-item-menu-Tb9YmvWX.js → viz-item-menu-BUSjo6j_.js} +1 -1
- package/components/{viz-item-menu-MRVSyXuQ.cjs → viz-item-menu-C-kpX-Ft.cjs} +1 -1
- package/components/wordcloud-chart-options.config-BQ4Z-vPT.cjs +20 -0
- package/components/{wordcloud-chart-options.config-Dxu7-YcG.js → wordcloud-chart-options.config-CpMtpG7q.js} +5 -3
- package/components/{wordcloud-chart-positioning.config-HAtoG48Z.js → wordcloud-chart-positioning.config-B6pvD7_a.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-f8JZ14LL.cjs → wordcloud-chart-positioning.config-BJi5SVYf.cjs} +1 -1
- package/custom-elements.json +77 -1
- package/package.json +3 -3
- package/react/package.json +2 -2
- package/components/ai-chat-Dq88ryzU.cjs +0 -320
- package/components/area-chart-options.config-CiPCKvh7.cjs +0 -20
- package/components/bar-chart-options.config-A5bcUHFc.cjs +0 -20
- package/components/box-plot-options.config-ZZ_mvqGk.cjs +0 -20
- package/components/bubble-chart-options.config-BbB5dj43.cjs +0 -20
- package/components/choropleth-map-options.config-CEGFnwKG.cjs +0 -20
- package/components/column-chart-options.config-iKKyzY3j.cjs +0 -20
- package/components/combination-chart-options.config-BqQlqnhf.cjs +0 -20
- package/components/de-CfAVa2SD.cjs +0 -20
- package/components/donut-chart-options.config-DUIE-bdr.cjs +0 -20
- package/components/es-B-pveTvx.cjs +0 -20
- package/components/fr-CtsqUcEa.cjs +0 -20
- package/components/funnel-chart-options.config-CMOM4QN2.cjs +0 -20
- package/components/heat-table-options.config-Dl6GDA-m.cjs +0 -20
- package/components/line-chart-options.config-CL8SCDgU.cjs +0 -20
- package/components/nl-C6_ScX0J.cjs +0 -20
- package/components/pivot-table-options.config-B9ZfmFZH.cjs +0 -20
- package/components/pyramid-chart-options.config-LSOc6ALz.cjs +0 -20
- package/components/sankey-diagram-options.config-CuKQOPPW.cjs +0 -20
- package/components/scatter-plot-options.config-C-L2dJ2o.cjs +0 -20
- package/components/sunburst-chart-options.config-CCNYG73m.cjs +0 -20
- package/components/treemap-chart-options.config-pA93-9cX.cjs +0 -20
- package/components/wordcloud-chart-options.config-ConV1s49.cjs +0 -20
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { c as e, d as t, s as n, u as r } from "./ai-interaction-textarea-
|
|
21
|
-
import { i } from "./base-
|
|
20
|
+
import { c as e, d as t, s as n, u as r } from "./ai-interaction-textarea-BbVH-aF4.js";
|
|
21
|
+
import { i } from "./base-BkD2CWTy.js";
|
|
22
22
|
import { t as a } from "./decorate-DyMgX_Uh.js";
|
|
23
23
|
import { msg as o } from "@lit/localize/lit-localize";
|
|
24
24
|
import { luzmoEllipsisVertical as s, luzmoIcon as c, luzmoSpin as l } from "@luzmo/icons";
|
|
@@ -34,19 +34,25 @@ import { unsafeHTML as ee } from "lit/directives/unsafe-html.js";
|
|
|
34
34
|
import "@luzmo/lucero/action-button";
|
|
35
35
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
36
36
|
function h(e, t) {
|
|
37
|
+
this.v = e, this.k = t;
|
|
38
|
+
}
|
|
39
|
+
function g(e, t) {
|
|
37
40
|
(t == null || t > e.length) && (t = e.length);
|
|
38
41
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
39
42
|
return r;
|
|
40
43
|
}
|
|
41
|
-
function
|
|
44
|
+
function te(e) {
|
|
42
45
|
if (Array.isArray(e)) return e;
|
|
43
46
|
}
|
|
44
|
-
function
|
|
47
|
+
function ne(e, t) {
|
|
45
48
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
46
49
|
if (n != null) {
|
|
47
50
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
48
51
|
try {
|
|
49
|
-
if (a = (n = n.call(e)).next, t
|
|
52
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
53
|
+
if (Object(n) !== n) return;
|
|
54
|
+
c = !1;
|
|
55
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
50
56
|
} catch (e) {
|
|
51
57
|
l = !0, i = e;
|
|
52
58
|
} finally {
|
|
@@ -59,97 +65,148 @@ function te(e, t) {
|
|
|
59
65
|
return s;
|
|
60
66
|
}
|
|
61
67
|
}
|
|
62
|
-
function
|
|
68
|
+
function re() {
|
|
63
69
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
64
70
|
}
|
|
65
|
-
function re(e, t) {
|
|
66
|
-
return g(e) || te(e, t) || ie(e, t) || ne();
|
|
67
|
-
}
|
|
68
71
|
function ie(e, t) {
|
|
72
|
+
return te(e) || ne(e, t) || ae(e, t) || re();
|
|
73
|
+
}
|
|
74
|
+
function ae(e, t) {
|
|
69
75
|
if (e) {
|
|
70
|
-
if (typeof e == "string") return
|
|
76
|
+
if (typeof e == "string") return g(e, t);
|
|
71
77
|
var n = {}.toString.call(e).slice(8, -1);
|
|
72
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
78
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? g(e, t) : void 0;
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
|
-
|
|
76
|
-
|
|
81
|
+
function _(e) {
|
|
82
|
+
var t, n;
|
|
83
|
+
function r(t, n) {
|
|
84
|
+
try {
|
|
85
|
+
var a = e[t](n), o = a.value, s = o instanceof h;
|
|
86
|
+
Promise.resolve(s ? o.v : o).then(function(n) {
|
|
87
|
+
if (s) {
|
|
88
|
+
var c = t === "return" && o.k ? t : "next";
|
|
89
|
+
if (!o.k || n.done) return r(c, n);
|
|
90
|
+
n = e[c](n).value;
|
|
91
|
+
}
|
|
92
|
+
i(!!a.done, n);
|
|
93
|
+
}, function(e) {
|
|
94
|
+
r("throw", e);
|
|
95
|
+
});
|
|
96
|
+
} catch (e) {
|
|
97
|
+
i(2, e);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function i(e, i) {
|
|
101
|
+
e === 2 ? t.reject(i) : t.resolve({
|
|
102
|
+
value: i,
|
|
103
|
+
done: e
|
|
104
|
+
}), (t = t.next) ? r(t.key, t.arg) : n = null;
|
|
105
|
+
}
|
|
106
|
+
this._invoke = function(e, i) {
|
|
107
|
+
return new Promise(function(a, o) {
|
|
108
|
+
var s = {
|
|
109
|
+
key: e,
|
|
110
|
+
arg: i,
|
|
111
|
+
resolve: a,
|
|
112
|
+
reject: o,
|
|
113
|
+
next: null
|
|
114
|
+
};
|
|
115
|
+
n ? n = n.next = s : (t = n = s, r(e, i));
|
|
116
|
+
});
|
|
117
|
+
}, typeof e.return != "function" && (this.return = void 0);
|
|
118
|
+
}
|
|
119
|
+
_.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
120
|
+
return this;
|
|
121
|
+
}, _.prototype.next = function(e) {
|
|
122
|
+
return this._invoke("next", e);
|
|
123
|
+
}, _.prototype.throw = function(e) {
|
|
124
|
+
return this._invoke("throw", e);
|
|
125
|
+
}, _.prototype.return = function(e) {
|
|
126
|
+
return this._invoke("return", e);
|
|
127
|
+
};
|
|
128
|
+
var oe = Object.entries, se = Object.setPrototypeOf, v = Object.isFrozen, ce = Object.getPrototypeOf, le = Object.getOwnPropertyDescriptor, y = Object.freeze, b = Object.seal, ue = Object.create, de = typeof Reflect < "u" && Reflect, fe = de.apply, pe = de.construct;
|
|
129
|
+
y ||= function(e) {
|
|
77
130
|
return e;
|
|
78
|
-
},
|
|
131
|
+
}, b ||= function(e) {
|
|
79
132
|
return e;
|
|
80
|
-
},
|
|
133
|
+
}, fe ||= function(e, t) {
|
|
81
134
|
var n = [...arguments].slice(2);
|
|
82
135
|
return e.apply(t, n);
|
|
83
|
-
},
|
|
136
|
+
}, pe ||= function(e) {
|
|
84
137
|
return new e(...[...arguments].slice(1));
|
|
85
138
|
};
|
|
86
|
-
var
|
|
87
|
-
|
|
139
|
+
var me = C(Array.prototype.forEach);
|
|
140
|
+
Array.prototype.indexOf;
|
|
141
|
+
var he = C(Array.prototype.lastIndexOf), ge = C(Array.prototype.pop), _e = C(Array.prototype.push);
|
|
142
|
+
Array.prototype.slice;
|
|
143
|
+
var ve = C(Array.prototype.splice), ye = Array.isArray, be = C(String.prototype.toLowerCase), xe = C(String.prototype.toString), Se = C(String.prototype.match), Ce = C(String.prototype.replace), we = C(String.prototype.indexOf), Te = C(String.prototype.trim), Ee = C(Number.prototype.toString), De = C(Boolean.prototype.toString), Oe = typeof BigInt > "u" ? null : C(BigInt.prototype.toString), ke = typeof Symbol > "u" ? null : C(Symbol.prototype.toString), x = C(Object.prototype.hasOwnProperty), Ae = C(Object.prototype.toString), S = C(RegExp.prototype.test), je = Me(TypeError);
|
|
144
|
+
function C(e) {
|
|
88
145
|
return function(t) {
|
|
89
146
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
90
147
|
var n = [...arguments].slice(1);
|
|
91
|
-
return
|
|
148
|
+
return fe(e, t, n);
|
|
92
149
|
};
|
|
93
150
|
}
|
|
94
|
-
function
|
|
151
|
+
function Me(e) {
|
|
95
152
|
return function() {
|
|
96
|
-
return
|
|
153
|
+
return pe(e, [...arguments]);
|
|
97
154
|
};
|
|
98
155
|
}
|
|
99
|
-
function
|
|
100
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
101
|
-
if (
|
|
156
|
+
function w(e, t) {
|
|
157
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : be;
|
|
158
|
+
if (se && se(e, null), !ye(t)) return e;
|
|
102
159
|
let r = t.length;
|
|
103
160
|
for (; r--;) {
|
|
104
161
|
let i = t[r];
|
|
105
162
|
if (typeof i == "string") {
|
|
106
163
|
let e = n(i);
|
|
107
|
-
e !== i && (
|
|
164
|
+
e !== i && (v(t) || (t[r] = e), i = e);
|
|
108
165
|
}
|
|
109
166
|
e[i] = !0;
|
|
110
167
|
}
|
|
111
168
|
return e;
|
|
112
169
|
}
|
|
113
|
-
function
|
|
114
|
-
for (let t = 0; t < e.length; t++)
|
|
170
|
+
function Ne(e) {
|
|
171
|
+
for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
|
|
115
172
|
return e;
|
|
116
173
|
}
|
|
117
|
-
function
|
|
118
|
-
let t =
|
|
119
|
-
for (let r of
|
|
120
|
-
var n =
|
|
174
|
+
function T(e) {
|
|
175
|
+
let t = ue(null);
|
|
176
|
+
for (let r of oe(e)) {
|
|
177
|
+
var n = ie(r, 2);
|
|
121
178
|
let i = n[0], a = n[1];
|
|
122
|
-
|
|
179
|
+
x(e, i) && (ye(a) ? t[i] = Ne(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = T(a) : t[i] = a);
|
|
123
180
|
}
|
|
124
181
|
return t;
|
|
125
182
|
}
|
|
126
|
-
function
|
|
183
|
+
function Pe(e) {
|
|
127
184
|
switch (typeof e) {
|
|
128
185
|
case "string": return e;
|
|
129
|
-
case "number": return
|
|
130
|
-
case "boolean": return
|
|
131
|
-
case "bigint": return
|
|
132
|
-
case "symbol": return
|
|
133
|
-
case "undefined": return
|
|
186
|
+
case "number": return Ee(e);
|
|
187
|
+
case "boolean": return De(e);
|
|
188
|
+
case "bigint": return Oe ? Oe(e) : "0";
|
|
189
|
+
case "symbol": return ke ? ke(e) : "Symbol()";
|
|
190
|
+
case "undefined": return Ae(e);
|
|
134
191
|
case "function":
|
|
135
192
|
case "object": {
|
|
136
|
-
if (e === null) return
|
|
137
|
-
let t = e, n =
|
|
193
|
+
if (e === null) return Ae(e);
|
|
194
|
+
let t = e, n = E(t, "toString");
|
|
138
195
|
if (typeof n == "function") {
|
|
139
196
|
let e = n(t);
|
|
140
|
-
return typeof e == "string" ? e :
|
|
197
|
+
return typeof e == "string" ? e : Ae(e);
|
|
141
198
|
}
|
|
142
|
-
return
|
|
199
|
+
return Ae(e);
|
|
143
200
|
}
|
|
144
|
-
default: return
|
|
201
|
+
default: return Ae(e);
|
|
145
202
|
}
|
|
146
203
|
}
|
|
147
|
-
function
|
|
204
|
+
function E(e, t) {
|
|
148
205
|
for (; e !== null;) {
|
|
149
|
-
let n =
|
|
206
|
+
let n = le(e, t);
|
|
150
207
|
if (n) {
|
|
151
|
-
if (n.get) return
|
|
152
|
-
if (typeof n.value == "function") return
|
|
208
|
+
if (n.get) return C(n.get);
|
|
209
|
+
if (typeof n.value == "function") return C(n.value);
|
|
153
210
|
}
|
|
154
211
|
e = ce(e);
|
|
155
212
|
}
|
|
@@ -158,14 +215,14 @@ function D(e, t) {
|
|
|
158
215
|
}
|
|
159
216
|
return n;
|
|
160
217
|
}
|
|
161
|
-
function
|
|
218
|
+
function Fe(e) {
|
|
162
219
|
try {
|
|
163
|
-
return
|
|
220
|
+
return S(e, ""), !0;
|
|
164
221
|
} catch {
|
|
165
222
|
return !1;
|
|
166
223
|
}
|
|
167
224
|
}
|
|
168
|
-
var
|
|
225
|
+
var Ie = y(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Le = y(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Re = y([
|
|
169
226
|
"feBlend",
|
|
170
227
|
"feColorMatrix",
|
|
171
228
|
"feComponentTransfer",
|
|
@@ -191,7 +248,7 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
191
248
|
"feSpotLight",
|
|
192
249
|
"feTile",
|
|
193
250
|
"feTurbulence"
|
|
194
|
-
]),
|
|
251
|
+
]), ze = y([
|
|
195
252
|
"animate",
|
|
196
253
|
"color-profile",
|
|
197
254
|
"cursor",
|
|
@@ -214,7 +271,7 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
214
271
|
"solidcolor",
|
|
215
272
|
"unknown",
|
|
216
273
|
"use"
|
|
217
|
-
]),
|
|
274
|
+
]), Be = y(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Ve = y([
|
|
218
275
|
"maction",
|
|
219
276
|
"maligngroup",
|
|
220
277
|
"malignmark",
|
|
@@ -230,13 +287,13 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
230
287
|
"annotation-xml",
|
|
231
288
|
"mprescripts",
|
|
232
289
|
"none"
|
|
233
|
-
]),
|
|
290
|
+
]), He = y(["#text"]), Ue = y(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), We = y(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Ge = y(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Ke = y([
|
|
234
291
|
"xlink:href",
|
|
235
292
|
"xml:id",
|
|
236
293
|
"xlink:title",
|
|
237
294
|
"xml:space",
|
|
238
295
|
"xmlns:xlink"
|
|
239
|
-
]),
|
|
296
|
+
]), qe = b(/{{[\w\W]*|^[\w\W]*}}/g), Je = b(/<%[\w\W]*|^[\w\W]*%>/g), Ye = b(/\${[\w\W]*/g), Xe = b(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ze = b(/^aria-[\-\w]+$/), Qe = b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), $e = b(/^(?:\w+script|data):/i), et = b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), tt = b(/^html$/i), nt = b(/^[a-z][.\w]*(-[.\w]+)+$/i), rt = b(/<[/\w!]/g), it = b(/<[/\w]/g), at = b(/<\/no(script|embed|frames)/i), ot = b(/\/>/i), D = {
|
|
240
297
|
element: 1,
|
|
241
298
|
attribute: 2,
|
|
242
299
|
text: 3,
|
|
@@ -249,7 +306,7 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
249
306
|
documentType: 10,
|
|
250
307
|
documentFragment: 11,
|
|
251
308
|
notation: 12
|
|
252
|
-
},
|
|
309
|
+
}, st = [
|
|
253
310
|
"style",
|
|
254
311
|
"script",
|
|
255
312
|
"xmp",
|
|
@@ -258,14 +315,14 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
258
315
|
"noframes",
|
|
259
316
|
"plaintext",
|
|
260
317
|
"noscript"
|
|
261
|
-
],
|
|
318
|
+
], ct = y(w({}, st)), lt = function() {
|
|
262
319
|
let e = {};
|
|
263
|
-
return
|
|
264
|
-
e[t] =
|
|
265
|
-
}),
|
|
266
|
-
}(),
|
|
320
|
+
return me(st, (t) => {
|
|
321
|
+
e[t] = b(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
322
|
+
}), y(e);
|
|
323
|
+
}(), ut = function() {
|
|
267
324
|
return typeof window > "u" ? null : window;
|
|
268
|
-
},
|
|
325
|
+
}, dt = function(e, t) {
|
|
269
326
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
270
327
|
let n = null, r = "data-tt-policy-suffix";
|
|
271
328
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -282,7 +339,7 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
282
339
|
} catch {
|
|
283
340
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
284
341
|
}
|
|
285
|
-
},
|
|
342
|
+
}, ft = function() {
|
|
286
343
|
return {
|
|
287
344
|
afterSanitizeAttributes: [],
|
|
288
345
|
afterSanitizeElements: [],
|
|
@@ -294,60 +351,60 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
294
351
|
uponSanitizeElement: [],
|
|
295
352
|
uponSanitizeShadowNode: []
|
|
296
353
|
};
|
|
297
|
-
},
|
|
298
|
-
return
|
|
299
|
-
},
|
|
300
|
-
let r =
|
|
301
|
-
return r && typeof r == "object" ?
|
|
354
|
+
}, pt = function(e, t, n, r) {
|
|
355
|
+
return x(e, t) && ye(e[t]) ? w(r.base ? T(r.base) : {}, e[t], r.transform) : n;
|
|
356
|
+
}, mt = function(e, t, n) {
|
|
357
|
+
let r = x(e, t) ? e[t] : void 0;
|
|
358
|
+
return r && typeof r == "object" ? T(r) : n();
|
|
302
359
|
};
|
|
303
|
-
function
|
|
304
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
305
|
-
if (t.version = "3.4.
|
|
360
|
+
function ht() {
|
|
361
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ut(), t = (e) => ht(e);
|
|
362
|
+
if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== D.document || !e.Element) return t.isSupported = !1, t;
|
|
306
363
|
let n = e.document, r = n, i = r.currentScript;
|
|
307
364
|
e.DocumentFragment;
|
|
308
365
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
309
366
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
310
|
-
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f =
|
|
367
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = E(d, "cloneNode"), p = E(d, "remove"), m = E(d, "removeAttributeNode"), ee = E(d, "nextSibling"), h = E(d, "childNodes"), g = E(d, "parentNode"), te = E(d, "shadowRoot"), ne = E(d, "attributes"), re = o && o.prototype ? E(o.prototype, "nodeType") : null, ie = o && o.prototype ? E(o.prototype, "nodeName") : null, ae = o && o.prototype ? E(o.prototype, "ownerDocument") : null, _ = function(e) {
|
|
311
368
|
return re ? re(e) : e.nodeType;
|
|
312
|
-
},
|
|
369
|
+
}, se = function(e) {
|
|
313
370
|
return ie ? ie(e) : e.nodeName;
|
|
314
371
|
};
|
|
315
372
|
if (typeof a == "function") {
|
|
316
373
|
let e = n.createElement("template");
|
|
317
374
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
318
375
|
}
|
|
319
|
-
let
|
|
320
|
-
if (
|
|
321
|
-
},
|
|
322
|
-
|
|
376
|
+
let v, ce = "", le, de = !1, fe = 0, pe = function() {
|
|
377
|
+
if (fe > 0) throw je("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
378
|
+
}, Ee = function(e) {
|
|
379
|
+
pe(), fe++;
|
|
323
380
|
try {
|
|
324
|
-
return
|
|
381
|
+
return v.createHTML(e);
|
|
325
382
|
} finally {
|
|
326
|
-
|
|
383
|
+
fe--;
|
|
327
384
|
}
|
|
328
|
-
},
|
|
329
|
-
|
|
385
|
+
}, De = function(e) {
|
|
386
|
+
pe(), fe++;
|
|
330
387
|
try {
|
|
331
|
-
return
|
|
388
|
+
return v.createScriptURL(e);
|
|
332
389
|
} finally {
|
|
333
|
-
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
return de ||= (
|
|
337
|
-
},
|
|
338
|
-
t.isSupported = typeof
|
|
339
|
-
let
|
|
340
|
-
...
|
|
341
|
-
...Pe,
|
|
342
|
-
...Fe,
|
|
390
|
+
fe--;
|
|
391
|
+
}
|
|
392
|
+
}, Oe = function() {
|
|
393
|
+
return de ||= (le = dt(u, i), !0), le;
|
|
394
|
+
}, ke = n, Ae = ke.implementation, C = ke.createNodeIterator, Me = ke.createDocumentFragment, Ne = ke.getElementsByTagName, st = r.importNode, O = ft();
|
|
395
|
+
t.isSupported = typeof oe == "function" && typeof g == "function" && Ae && Ae.createHTMLDocument !== void 0;
|
|
396
|
+
let gt = qe, _t = Je, vt = Ye, yt = Xe, bt = Ze, k = $e, xt = et, A = nt, St = Qe, j = null, Ct = w({}, [
|
|
397
|
+
...Ie,
|
|
343
398
|
...Le,
|
|
344
|
-
...
|
|
345
|
-
]), P = null, St = T({}, [
|
|
399
|
+
...Re,
|
|
346
400
|
...Be,
|
|
347
|
-
...
|
|
348
|
-
|
|
349
|
-
...Ue
|
|
350
|
-
|
|
401
|
+
...He
|
|
402
|
+
]), M = null, wt = w({}, [
|
|
403
|
+
...Ue,
|
|
404
|
+
...We,
|
|
405
|
+
...Ge,
|
|
406
|
+
...Ke
|
|
407
|
+
]), N = Object.seal(ue(null, {
|
|
351
408
|
tagNameCheck: {
|
|
352
409
|
writable: !0,
|
|
353
410
|
configurable: !1,
|
|
@@ -366,7 +423,7 @@ function ft() {
|
|
|
366
423
|
enumerable: !0,
|
|
367
424
|
value: !1
|
|
368
425
|
}
|
|
369
|
-
})),
|
|
426
|
+
})), Tt = null, Et = null, P = Object.seal(ue(null, {
|
|
370
427
|
tagCheck: {
|
|
371
428
|
writable: !0,
|
|
372
429
|
configurable: !1,
|
|
@@ -379,14 +436,14 @@ function ft() {
|
|
|
379
436
|
enumerable: !0,
|
|
380
437
|
value: null
|
|
381
438
|
}
|
|
382
|
-
})),
|
|
439
|
+
})), Dt = !0, Ot = !0, kt = !1, At = !0, F = !1, I = !0, L = !1, jt = !1, Mt = null, Nt = null, Pt = !1, Ft = !1, It = !1, Lt = !1, Rt = !0, zt = !1, Bt = "user-content-", R = !0, Vt = !1, z = {}, Ht = null, Ut = w({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Wt = null, Gt = w({}, [
|
|
383
440
|
"audio",
|
|
384
441
|
"video",
|
|
385
442
|
"img",
|
|
386
443
|
"source",
|
|
387
444
|
"image",
|
|
388
445
|
"track"
|
|
389
|
-
]),
|
|
446
|
+
]), Kt = null, qt = w({}, [
|
|
390
447
|
"alt",
|
|
391
448
|
"class",
|
|
392
449
|
"for",
|
|
@@ -401,77 +458,77 @@ function ft() {
|
|
|
401
458
|
"value",
|
|
402
459
|
"style",
|
|
403
460
|
"xmlns"
|
|
404
|
-
]),
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
],
|
|
461
|
+
]), Jt = "http://www.w3.org/1998/Math/MathML", Yt = "http://www.w3.org/2000/svg", B = "http://www.w3.org/1999/xhtml", Xt = B, Zt = !1, Qt = null, $t = w({}, [
|
|
462
|
+
Jt,
|
|
463
|
+
Yt,
|
|
464
|
+
B
|
|
465
|
+
], xe), en = y([
|
|
409
466
|
"mi",
|
|
410
467
|
"mo",
|
|
411
468
|
"mn",
|
|
412
469
|
"ms",
|
|
413
470
|
"mtext"
|
|
414
|
-
]),
|
|
471
|
+
]), tn = w({}, en), nn = y(["annotation-xml"]), rn = w({}, nn), an = w({}, [
|
|
415
472
|
"title",
|
|
416
473
|
"style",
|
|
417
474
|
"font",
|
|
418
475
|
"a",
|
|
419
476
|
"script"
|
|
420
|
-
]),
|
|
477
|
+
]), V = null, on = ["application/xhtml+xml", "text/html"], H = null, sn = null, cn = n.createElement("form"), ln = function(e) {
|
|
421
478
|
return e instanceof RegExp || e instanceof Function;
|
|
422
|
-
},
|
|
479
|
+
}, un = function() {
|
|
423
480
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
424
|
-
if (
|
|
425
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
426
|
-
transform:
|
|
481
|
+
if (sn && sn === e) return;
|
|
482
|
+
(!e || typeof e != "object") && (e = {}), e = T(e), V = on.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, H = V === "application/xhtml+xml" ? xe : be, j = pt(e, "ALLOWED_TAGS", Ct, { transform: H }), M = pt(e, "ALLOWED_ATTR", wt, { transform: H }), Qt = pt(e, "ALLOWED_NAMESPACES", $t, { transform: xe }), Kt = pt(e, "ADD_URI_SAFE_ATTR", qt, {
|
|
483
|
+
transform: H,
|
|
484
|
+
base: qt
|
|
485
|
+
}), Wt = pt(e, "ADD_DATA_URI_TAGS", Gt, {
|
|
486
|
+
transform: H,
|
|
427
487
|
base: Gt
|
|
428
|
-
}), Ht =
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
}), Bt = ut(e, "FORBID_CONTENTS", Vt, { transform: U }), Ct = ut(e, "FORBID_TAGS", E({}), { transform: U }), wt = ut(e, "FORBID_ATTR", E({}), { transform: U }), V = S(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? E(e.USE_PROFILES) : e.USE_PROFILES : !1, Tt = e.ALLOW_ARIA_ATTR !== !1, Et = e.ALLOW_DATA_ATTR !== !1, Dt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ot = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, L = e.SAFE_FOR_TEMPLATES || !1, R = e.SAFE_FOR_XML !== !1, z = e.WHOLE_DOCUMENT || !1, Nt = e.RETURN_DOM || !1, Pt = e.RETURN_DOM_FRAGMENT || !1, Ft = e.RETURN_TRUSTED_TYPE || !1, Mt = e.FORCE_BODY || !1, It = e.SANITIZE_DOM !== !1, B = e.SANITIZE_NAMED_PROPS || !1, Rt = e.KEEP_CONTENT !== !1, zt = e.IN_PLACE || !1, bt = Me(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ye, Jt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : H, $t = dt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => T({}, Qt)), tn = dt(e, "HTML_INTEGRATION_POINTS", () => T({}, en));
|
|
432
|
-
let t = dt(e, "CUSTOM_ELEMENT_HANDLING", () => le(null));
|
|
433
|
-
if (F = le(null), S(t, "tagNameCheck") && cn(t.tagNameCheck) && (F.tagNameCheck = t.tagNameCheck), S(t, "attributeNameCheck") && cn(t.attributeNameCheck) && (F.attributeNameCheck = t.attributeNameCheck), S(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), y(F), L && (Et = !1), Pt && (Nt = !0), V && (N = T({}, ze), P = le(null), V.html === !0 && (T(N, Ne), T(P, Be)), V.svg === !0 && (T(N, Pe), T(P, Ve), T(P, Ue)), V.svgFilters === !0 && (T(N, Fe), T(P, Ve), T(P, Ue)), V.mathMl === !0 && (T(N, Le), T(P, He), T(P, Ue))), I.tagCheck = null, I.attributeCheck = null, S(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? I.tagCheck = e.ADD_TAGS : _e(e.ADD_TAGS) && (N === xt && (N = E(N)), T(N, e.ADD_TAGS, U))), S(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? I.attributeCheck = e.ADD_ATTR : _e(e.ADD_ATTR) && (P === St && (P = E(P)), T(P, e.ADD_ATTR, U))), S(e, "ADD_FORBID_CONTENTS") && _e(e.ADD_FORBID_CONTENTS) && (Bt === Vt && (Bt = E(Bt)), T(Bt, e.ADD_FORBID_CONTENTS, U)), Rt && (N["#text"] = !0), z && T(N, [
|
|
488
|
+
}), Ht = pt(e, "FORBID_CONTENTS", Ut, { transform: H }), Tt = pt(e, "FORBID_TAGS", T({}), { transform: H }), Et = pt(e, "FORBID_ATTR", T({}), { transform: H }), z = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? T(e.USE_PROFILES) : e.USE_PROFILES : !1, Dt = e.ALLOW_ARIA_ATTR !== !1, Ot = e.ALLOW_DATA_ATTR !== !1, kt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, At = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, F = e.SAFE_FOR_TEMPLATES || !1, I = e.SAFE_FOR_XML !== !1, L = e.WHOLE_DOCUMENT || !1, Ft = e.RETURN_DOM || !1, It = e.RETURN_DOM_FRAGMENT || !1, Lt = e.RETURN_TRUSTED_TYPE || !1, Pt = e.FORCE_BODY || !1, Rt = e.SANITIZE_DOM !== !1, zt = e.SANITIZE_NAMED_PROPS || !1, R = e.KEEP_CONTENT !== !1, Vt = e.IN_PLACE || !1, St = Fe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Qe, Xt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : B, tn = mt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => w({}, en)), rn = mt(e, "HTML_INTEGRATION_POINTS", () => w({}, nn));
|
|
489
|
+
let t = mt(e, "CUSTOM_ELEMENT_HANDLING", () => ue(null));
|
|
490
|
+
if (N = ue(null), x(t, "tagNameCheck") && ln(t.tagNameCheck) && (N.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && ln(t.attributeNameCheck) && (N.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), b(N), F && (Ot = !1), It && (Ft = !0), z && (j = w({}, He), M = ue(null), z.html === !0 && (w(j, Ie), w(M, Ue)), z.svg === !0 && (w(j, Le), w(M, We), w(M, Ke)), z.svgFilters === !0 && (w(j, Re), w(M, We), w(M, Ke)), z.mathMl === !0 && (w(j, Be), w(M, Ge), w(M, Ke))), P.tagCheck = null, P.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? P.tagCheck = e.ADD_TAGS : ye(e.ADD_TAGS) && (j === Ct && (j = T(j)), w(j, e.ADD_TAGS, H))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? P.attributeCheck = e.ADD_ATTR : ye(e.ADD_ATTR) && (M === wt && (M = T(M)), w(M, e.ADD_ATTR, H))), x(e, "ADD_FORBID_CONTENTS") && ye(e.ADD_FORBID_CONTENTS) && (Ht === Ut && (Ht = T(Ht)), w(Ht, e.ADD_FORBID_CONTENTS, H)), R && (j["#text"] = !0), L && w(j, [
|
|
434
491
|
"html",
|
|
435
492
|
"head",
|
|
436
493
|
"body"
|
|
437
|
-
]),
|
|
438
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
439
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
440
|
-
let t =
|
|
441
|
-
|
|
494
|
+
]), j.table && (w(j, ["tbody"]), delete Tt.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
495
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw je("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
496
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw je("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
497
|
+
let t = v;
|
|
498
|
+
v = e.TRUSTED_TYPES_POLICY;
|
|
442
499
|
try {
|
|
443
|
-
|
|
500
|
+
ce = Ee("");
|
|
444
501
|
} catch (e) {
|
|
445
|
-
throw
|
|
446
|
-
}
|
|
447
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
448
|
-
|
|
449
|
-
},
|
|
450
|
-
...
|
|
451
|
-
...
|
|
452
|
-
...
|
|
453
|
-
]),
|
|
454
|
-
return t.namespaceURI ===
|
|
455
|
-
}, pn = function(e, t, n) {
|
|
456
|
-
return t.namespaceURI === H ? e === "math" : t.namespaceURI === qt ? e === "math" && tn[n] : !!dn[e];
|
|
502
|
+
throw v = t, e;
|
|
503
|
+
}
|
|
504
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (v = void 0, ce = "") : (v === void 0 && (v = Oe()), v && typeof ce == "string" && (ce = Ee("")));
|
|
505
|
+
y && y(e), sn = e;
|
|
506
|
+
}, dn = w({}, [
|
|
507
|
+
...Le,
|
|
508
|
+
...Re,
|
|
509
|
+
...ze
|
|
510
|
+
]), fn = w({}, [...Be, ...Ve]), pn = function(e, t, n) {
|
|
511
|
+
return t.namespaceURI === B ? e === "svg" : t.namespaceURI === Jt ? e === "svg" && (n === "annotation-xml" || tn[n]) : !!dn[e];
|
|
457
512
|
}, mn = function(e, t, n) {
|
|
458
|
-
return t.namespaceURI ===
|
|
459
|
-
},
|
|
513
|
+
return t.namespaceURI === B ? e === "math" : t.namespaceURI === Yt ? e === "math" && rn[n] : !!fn[e];
|
|
514
|
+
}, hn = function(e, t, n) {
|
|
515
|
+
return t.namespaceURI === Yt && !rn[n] || t.namespaceURI === Jt && !tn[n] ? !1 : !fn[e] && (an[e] || !dn[e]);
|
|
516
|
+
}, gn = function(e) {
|
|
460
517
|
let t = g(e);
|
|
461
518
|
(!t || !t.tagName) && (t = {
|
|
462
|
-
namespaceURI:
|
|
519
|
+
namespaceURI: Xt,
|
|
463
520
|
tagName: "template"
|
|
464
521
|
});
|
|
465
|
-
let n =
|
|
466
|
-
return
|
|
467
|
-
},
|
|
468
|
-
|
|
522
|
+
let n = be(e.tagName), r = be(t.tagName);
|
|
523
|
+
return Qt[e.namespaceURI] ? e.namespaceURI === Yt ? pn(n, t, r) : e.namespaceURI === Jt ? mn(n, t, r) : e.namespaceURI === B ? hn(n, t, r) : !!(V === "application/xhtml+xml" && Qt[e.namespaceURI]) : !1;
|
|
524
|
+
}, U = function(e) {
|
|
525
|
+
_e(t.removed, { element: e });
|
|
469
526
|
try {
|
|
470
527
|
g(e).removeChild(e);
|
|
471
528
|
} catch {
|
|
472
|
-
if (p(e), !g(e)) throw
|
|
529
|
+
if (p(e), !g(e)) throw je("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
473
530
|
}
|
|
474
|
-
},
|
|
531
|
+
}, W = function(e, t, n) {
|
|
475
532
|
try {
|
|
476
533
|
m(e, t);
|
|
477
534
|
} catch {
|
|
@@ -479,14 +536,14 @@ function ft() {
|
|
|
479
536
|
e.removeAttribute(n);
|
|
480
537
|
} catch {}
|
|
481
538
|
}
|
|
482
|
-
},
|
|
483
|
-
|
|
539
|
+
}, _n = function(e) {
|
|
540
|
+
vn(e);
|
|
484
541
|
let t = h(e);
|
|
485
542
|
if (t) {
|
|
486
543
|
let e = [];
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}),
|
|
544
|
+
me(t, (t) => {
|
|
545
|
+
_e(e, t);
|
|
546
|
+
}), me(e, (e) => {
|
|
490
547
|
try {
|
|
491
548
|
p(e);
|
|
492
549
|
} catch {}
|
|
@@ -495,15 +552,15 @@ function ft() {
|
|
|
495
552
|
let n = ne(e);
|
|
496
553
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
497
554
|
let r = n[t], i = r && r.name;
|
|
498
|
-
typeof i == "string" &&
|
|
555
|
+
typeof i == "string" && W(e, r, i);
|
|
499
556
|
}
|
|
500
|
-
},
|
|
557
|
+
}, G = function(e, n, r) {
|
|
501
558
|
if (!r) try {
|
|
502
559
|
r = n.getAttributeNode(e);
|
|
503
560
|
} catch {
|
|
504
561
|
r = null;
|
|
505
562
|
}
|
|
506
|
-
|
|
563
|
+
_e(t.removed, {
|
|
507
564
|
attribute: r || null,
|
|
508
565
|
from: n
|
|
509
566
|
});
|
|
@@ -514,92 +571,92 @@ function ft() {
|
|
|
514
571
|
n.removeAttribute(e);
|
|
515
572
|
} catch {}
|
|
516
573
|
}
|
|
517
|
-
if (e === "is") if (
|
|
518
|
-
|
|
574
|
+
if (e === "is") if (Ft || It) try {
|
|
575
|
+
U(n);
|
|
519
576
|
} catch {}
|
|
520
577
|
else try {
|
|
521
578
|
n.setAttribute(e, "");
|
|
522
579
|
} catch {}
|
|
523
|
-
},
|
|
580
|
+
}, K = function(e) {
|
|
524
581
|
let t = ne(e);
|
|
525
582
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
526
583
|
let r = t[n], i = r && r.name;
|
|
527
|
-
typeof i != "string" ||
|
|
584
|
+
typeof i != "string" || M[H(i)] || W(e, r, i);
|
|
528
585
|
}
|
|
529
|
-
},
|
|
586
|
+
}, vn = function(e) {
|
|
530
587
|
let t = [e];
|
|
531
588
|
for (; t.length > 0;) {
|
|
532
589
|
let e = t.pop();
|
|
533
|
-
|
|
590
|
+
_(e) === D.element && K(e);
|
|
534
591
|
let n = h(e);
|
|
535
592
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
536
593
|
}
|
|
537
|
-
},
|
|
538
|
-
return
|
|
539
|
-
},
|
|
540
|
-
if (!
|
|
594
|
+
}, yn = function(e, t) {
|
|
595
|
+
return I ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
596
|
+
}, bn = function(e) {
|
|
597
|
+
if (!I) return;
|
|
541
598
|
let t = [e];
|
|
542
599
|
for (; t.length > 0;) {
|
|
543
|
-
let e = t.pop(), n =
|
|
544
|
-
if (n ===
|
|
600
|
+
let e = t.pop(), n = _(e);
|
|
601
|
+
if (n === D.processingInstruction || n === D.comment && S(it, e.data)) {
|
|
545
602
|
try {
|
|
546
603
|
p(e);
|
|
547
604
|
} catch {}
|
|
548
605
|
continue;
|
|
549
606
|
}
|
|
550
|
-
if (n ===
|
|
551
|
-
let t = e, n =
|
|
607
|
+
if (n === D.element) {
|
|
608
|
+
let t = e, n = H(se(e));
|
|
552
609
|
try {
|
|
553
|
-
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") &&
|
|
610
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && yn("for", n) && t.removeAttribute("for");
|
|
554
611
|
} catch {}
|
|
555
612
|
}
|
|
556
613
|
let r = h(e);
|
|
557
614
|
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
558
615
|
}
|
|
559
|
-
},
|
|
616
|
+
}, xn = function(e) {
|
|
560
617
|
let t = null, r = null;
|
|
561
|
-
if (
|
|
618
|
+
if (Pt) e = "<remove></remove>" + e;
|
|
562
619
|
else {
|
|
563
|
-
let t =
|
|
620
|
+
let t = Se(e, /^[\r\n\t ]+/);
|
|
564
621
|
r = t && t[0];
|
|
565
622
|
}
|
|
566
|
-
|
|
567
|
-
let i =
|
|
568
|
-
if (
|
|
569
|
-
t = new l().parseFromString(i,
|
|
623
|
+
V === "application/xhtml+xml" && Xt === B && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
624
|
+
let i = v ? Ee(e) : e;
|
|
625
|
+
if (Xt === B) try {
|
|
626
|
+
t = new l().parseFromString(i, V);
|
|
570
627
|
} catch {}
|
|
571
628
|
if (!t || !t.documentElement) {
|
|
572
|
-
t =
|
|
629
|
+
t = Ae.createDocument(Xt, "template", null);
|
|
573
630
|
try {
|
|
574
|
-
t.documentElement.innerHTML =
|
|
631
|
+
t.documentElement.innerHTML = Zt ? ce : i;
|
|
575
632
|
} catch {}
|
|
576
633
|
}
|
|
577
634
|
let a = t.body || t.documentElement;
|
|
578
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
579
|
-
}, J = function(e) {
|
|
580
|
-
let t = oe ? oe(e) : e.ownerDocument;
|
|
581
|
-
return Ae.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
582
|
-
}, xn = function(e) {
|
|
583
|
-
return e = xe(e, ht, " "), e = xe(e, A, " "), e = xe(e, gt, " "), e;
|
|
635
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Xt === B ? Ne.call(t, L ? "html" : "body")[0] : L ? t.documentElement : a;
|
|
584
636
|
}, Sn = function(e) {
|
|
637
|
+
let t = ae ? ae(e) : e.ownerDocument;
|
|
638
|
+
return C.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
639
|
+
}, Cn = function(e) {
|
|
640
|
+
return e = Ce(e, gt, " "), e = Ce(e, _t, " "), e = Ce(e, vt, " "), e;
|
|
641
|
+
}, q = function(e) {
|
|
585
642
|
e.normalize();
|
|
586
|
-
let t =
|
|
587
|
-
for (; r;) r.data =
|
|
643
|
+
let t = ae ? ae(e) : e.ownerDocument, n = C.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
644
|
+
for (; r;) r.data = Cn(r.data), r = n.nextNode();
|
|
588
645
|
let i = e.querySelectorAll?.call(e, "template");
|
|
589
|
-
i &&
|
|
590
|
-
|
|
646
|
+
i && me(i, (e) => {
|
|
647
|
+
J(e.content) && q(e.content);
|
|
591
648
|
});
|
|
592
|
-
},
|
|
649
|
+
}, wn = function(e) {
|
|
593
650
|
let t = ie ? ie(e) : null;
|
|
594
|
-
return typeof t != "string" ||
|
|
595
|
-
},
|
|
651
|
+
return typeof t != "string" || H(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== ne(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== re(e) || e.childNodes !== h(e);
|
|
652
|
+
}, J = function(e) {
|
|
596
653
|
if (!re || typeof e != "object" || !e) return !1;
|
|
597
654
|
try {
|
|
598
|
-
return re(e) ===
|
|
655
|
+
return re(e) === D.documentFragment;
|
|
599
656
|
} catch {
|
|
600
657
|
return !1;
|
|
601
658
|
}
|
|
602
|
-
},
|
|
659
|
+
}, Y = function(e) {
|
|
603
660
|
if (!re || typeof e != "object" || !e) return !1;
|
|
604
661
|
try {
|
|
605
662
|
return typeof re(e) == "number";
|
|
@@ -607,18 +664,18 @@ function ft() {
|
|
|
607
664
|
return !1;
|
|
608
665
|
}
|
|
609
666
|
};
|
|
610
|
-
function
|
|
611
|
-
e.length !== 0 &&
|
|
612
|
-
e.call(t, n, r,
|
|
667
|
+
function X(e, n, r) {
|
|
668
|
+
e.length !== 0 && me(e, (e) => {
|
|
669
|
+
e.call(t, n, r, sn);
|
|
613
670
|
});
|
|
614
671
|
}
|
|
615
|
-
let
|
|
616
|
-
return !!(
|
|
617
|
-
},
|
|
618
|
-
return e instanceof RegExp ?
|
|
619
|
-
},
|
|
620
|
-
if (!
|
|
621
|
-
if (
|
|
672
|
+
let Tn = function(e, t) {
|
|
673
|
+
return !!(I && e.hasChildNodes() && !Y(e.firstElementChild) && S(rt, e.textContent) && S(rt, e.innerHTML) || I && e.namespaceURI === B && ct[t] && (Y(e.firstElementChild) || typeof e.textContent == "string" && S(lt[t], e.textContent)) || e.nodeType === D.processingInstruction || I && e.nodeType === D.comment && S(it, e.data));
|
|
674
|
+
}, Z = function(e, t) {
|
|
675
|
+
return e instanceof RegExp ? S(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
676
|
+
}, En = function(e, t, n) {
|
|
677
|
+
if (!Tt[t] && jn(t) && Z(N.tagNameCheck, t)) return !1;
|
|
678
|
+
if (R && !Ht[t]) {
|
|
622
679
|
let t = g(e), r = h(e);
|
|
623
680
|
if (r && t) {
|
|
624
681
|
let i = r.length;
|
|
@@ -628,35 +685,35 @@ function ft() {
|
|
|
628
685
|
}
|
|
629
686
|
}
|
|
630
687
|
}
|
|
631
|
-
return
|
|
632
|
-
},
|
|
633
|
-
return e.length === 0 ? t : t === n || t === r ?
|
|
634
|
-
},
|
|
635
|
-
return e === t || g(e) !== null ? !1 : (
|
|
688
|
+
return U(e), !0;
|
|
689
|
+
}, Dn = function(e, t, n, r) {
|
|
690
|
+
return e.length === 0 ? t : t === n || t === r ? T(t) : t;
|
|
691
|
+
}, Q = function(e, t) {
|
|
692
|
+
return e === t || g(e) !== null ? !1 : (Vt && vn(e), !0);
|
|
636
693
|
}, On = function(e, n) {
|
|
637
|
-
if (
|
|
638
|
-
if (
|
|
639
|
-
let r =
|
|
640
|
-
if (
|
|
694
|
+
if (X(O.beforeSanitizeElements, e, null), Q(e, n)) return !0;
|
|
695
|
+
if (wn(e)) return U(e), !0;
|
|
696
|
+
let r = H(se(e));
|
|
697
|
+
if (j = Dn(O.uponSanitizeElement, j, Ct, Mt), X(O.uponSanitizeElement, e, {
|
|
641
698
|
tagName: r,
|
|
642
|
-
allowedTags:
|
|
643
|
-
}),
|
|
644
|
-
if (
|
|
645
|
-
if (
|
|
646
|
-
let t =
|
|
647
|
-
return t === !1 &&
|
|
648
|
-
}
|
|
649
|
-
if (
|
|
650
|
-
if (
|
|
651
|
-
let n =
|
|
652
|
-
e.textContent !== n && (
|
|
653
|
-
}
|
|
654
|
-
return
|
|
699
|
+
allowedTags: j
|
|
700
|
+
}), Q(e, n)) return !0;
|
|
701
|
+
if (Tn(e, r)) return U(e), !0;
|
|
702
|
+
if (Tt[r] || !(P.tagCheck instanceof Function && P.tagCheck(r)) && !j[r]) {
|
|
703
|
+
let t = En(e, r, n);
|
|
704
|
+
return t === !1 && (X(O.afterSanitizeElements, e, null), Q(e, n)) ? !0 : t;
|
|
705
|
+
}
|
|
706
|
+
if (_(e) === D.element && !gn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(at, e.innerHTML)) return U(e), !0;
|
|
707
|
+
if (F && e.nodeType === D.text) {
|
|
708
|
+
let n = Cn(e.textContent);
|
|
709
|
+
e.textContent !== n && (_e(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
710
|
+
}
|
|
711
|
+
return X(O.afterSanitizeElements, e, null), Q(e, n);
|
|
655
712
|
}, kn = function(e, t, r) {
|
|
656
|
-
if (
|
|
657
|
-
let i =
|
|
658
|
-
return
|
|
659
|
-
}, An =
|
|
713
|
+
if (Et[t] || yn(t, e) || Rt && (t === "id" || t === "name") && (r in n || r in cn)) return !1;
|
|
714
|
+
let i = M[t] || P.attributeCheck instanceof Function && P.attributeCheck(t, e);
|
|
715
|
+
return Ot && S(yt, t) || Dt && S(bt, t) ? !0 : i ? Kt[t] || S(St, Ce(r, xt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && we(r, "data:") === 0 && Wt[e] || kt && !S(k, Ce(r, xt, "")) ? !0 : !r : jn(e) && Z(N.tagNameCheck, e) && Z(N.attributeNameCheck, t, e) || t === "is" && N.allowCustomizedBuiltInElements && Z(N.tagNameCheck, r);
|
|
716
|
+
}, An = w({}, [
|
|
660
717
|
"annotation-xml",
|
|
661
718
|
"color-profile",
|
|
662
719
|
"font-face",
|
|
@@ -666,65 +723,65 @@ function ft() {
|
|
|
666
723
|
"font-face-uri",
|
|
667
724
|
"missing-glyph"
|
|
668
725
|
]), jn = function(e) {
|
|
669
|
-
return !An[
|
|
726
|
+
return !An[be(e)] && S(A, e);
|
|
670
727
|
}, Mn = function(e, t, n, r) {
|
|
671
|
-
if (
|
|
672
|
-
case "TrustedHTML": return
|
|
673
|
-
case "TrustedScriptURL": return
|
|
728
|
+
if (v && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
729
|
+
case "TrustedHTML": return Ee(r);
|
|
730
|
+
case "TrustedScriptURL": return De(r);
|
|
674
731
|
}
|
|
675
732
|
return r;
|
|
676
733
|
}, Nn = function(e, t, n, r) {
|
|
677
734
|
try {
|
|
678
|
-
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r),
|
|
735
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), wn(e) ? (U(e), !1) : !0;
|
|
679
736
|
} catch {
|
|
680
|
-
return
|
|
681
|
-
}
|
|
682
|
-
}, Pn = function(e) {
|
|
683
|
-
|
|
684
|
-
let
|
|
685
|
-
if (!
|
|
686
|
-
|
|
687
|
-
let
|
|
737
|
+
return G(t, e), !1;
|
|
738
|
+
}
|
|
739
|
+
}, Pn = function(e, n) {
|
|
740
|
+
if (X(O.beforeSanitizeAttributes, e, null), Q(e, n)) return;
|
|
741
|
+
let r = e.attributes;
|
|
742
|
+
if (!r || wn(e)) return;
|
|
743
|
+
M = Dn(O.uponSanitizeAttribute, M, wt, Nt);
|
|
744
|
+
let i = {
|
|
688
745
|
attrName: "",
|
|
689
746
|
attrValue: "",
|
|
690
747
|
keepAttr: !0,
|
|
691
|
-
allowedAttributes:
|
|
748
|
+
allowedAttributes: M,
|
|
692
749
|
forceKeepAttr: void 0
|
|
693
|
-
},
|
|
694
|
-
for (;
|
|
695
|
-
let
|
|
696
|
-
if (
|
|
697
|
-
|
|
750
|
+
}, a = r.length, o = H(e.nodeName);
|
|
751
|
+
for (; a--;) {
|
|
752
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = H(s), d = l, f = s === "value" ? d : Te(d), p = !1;
|
|
753
|
+
if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, X(O.uponSanitizeAttribute, e, i), f = i.attrValue, zt && (u === "id" || u === "name") && we(f, Bt) !== 0 && (G(s, e, n), f = Bt + f, p = !0), I && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
|
|
754
|
+
G(s, e, n);
|
|
698
755
|
continue;
|
|
699
756
|
}
|
|
700
|
-
if (u === "attributename" &&
|
|
701
|
-
|
|
757
|
+
if (u === "attributename" && Se(f, "href")) {
|
|
758
|
+
G(s, e, n);
|
|
702
759
|
continue;
|
|
703
760
|
}
|
|
704
|
-
if (!
|
|
705
|
-
if (!
|
|
706
|
-
|
|
761
|
+
if (!i.forceKeepAttr) {
|
|
762
|
+
if (!i.keepAttr) {
|
|
763
|
+
G(s, e, n);
|
|
707
764
|
continue;
|
|
708
765
|
}
|
|
709
|
-
if (!
|
|
710
|
-
|
|
766
|
+
if (!At && S(ot, f)) {
|
|
767
|
+
G(s, e, n);
|
|
711
768
|
continue;
|
|
712
769
|
}
|
|
713
|
-
if (
|
|
714
|
-
|
|
770
|
+
if (F && (f = Cn(f)), !kn(o, u, f)) {
|
|
771
|
+
G(s, e, n);
|
|
715
772
|
continue;
|
|
716
773
|
}
|
|
717
|
-
f = Mn(
|
|
774
|
+
f = Mn(o, u, c, f), f !== d && Nn(e, s, c, f) && p && ge(t.removed);
|
|
718
775
|
}
|
|
719
776
|
}
|
|
720
|
-
|
|
777
|
+
X(O.afterSanitizeAttributes, e, null), Q(e, n);
|
|
721
778
|
}, Fn = function(e) {
|
|
722
|
-
let t = null, n =
|
|
723
|
-
for (
|
|
779
|
+
let t = null, n = Sn(e);
|
|
780
|
+
for (X(O.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (X(O.uponSanitizeShadowNode, t, null), On(t, e), Pn(t, e), J(t.content) && Fn(t.content), _(t) === D.element) {
|
|
724
781
|
let e = te(t);
|
|
725
|
-
|
|
782
|
+
J(e) && (In(e), Fn(e));
|
|
726
783
|
}
|
|
727
|
-
|
|
784
|
+
X(O.afterSanitizeShadowDOM, e, null);
|
|
728
785
|
}, In = function(e) {
|
|
729
786
|
let t = [{
|
|
730
787
|
node: e,
|
|
@@ -736,16 +793,16 @@ function ft() {
|
|
|
736
793
|
Fn(e.shadow);
|
|
737
794
|
continue;
|
|
738
795
|
}
|
|
739
|
-
let n = e.node, r =
|
|
796
|
+
let n = e.node, r = _(n) === D.element, i = h(n);
|
|
740
797
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
741
798
|
node: i[e],
|
|
742
799
|
shadow: null
|
|
743
800
|
});
|
|
744
801
|
if (r) {
|
|
745
802
|
let e = ie ? ie(n) : null;
|
|
746
|
-
if (typeof e == "string" &&
|
|
803
|
+
if (typeof e == "string" && H(e) === "template") {
|
|
747
804
|
let e = n.content;
|
|
748
|
-
|
|
805
|
+
J(e) && t.push({
|
|
749
806
|
node: e,
|
|
750
807
|
shadow: null
|
|
751
808
|
});
|
|
@@ -753,7 +810,7 @@ function ft() {
|
|
|
753
810
|
}
|
|
754
811
|
if (r) {
|
|
755
812
|
let e = te(n);
|
|
756
|
-
|
|
813
|
+
J(e) && t.push({
|
|
757
814
|
node: null,
|
|
758
815
|
shadow: e
|
|
759
816
|
}, {
|
|
@@ -765,77 +822,81 @@ function ft() {
|
|
|
765
822
|
};
|
|
766
823
|
return t.sanitize = function(e) {
|
|
767
824
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
768
|
-
if (
|
|
825
|
+
if (Zt = !e, Zt && (e = "<!-->"), typeof e != "string" && !Y(e) && (e = Pe(e), typeof e != "string")) throw je("dirty is not a string, aborting");
|
|
769
826
|
if (!t.isSupported) return e;
|
|
770
|
-
|
|
771
|
-
let c =
|
|
827
|
+
jt ? (j = Mt, M = Nt) : un(n), (O.uponSanitizeElement.length > 0 || O.uponSanitizeAttribute.length > 0) && (j = T(j)), O.uponSanitizeAttribute.length > 0 && (M = T(M)), t.removed = [];
|
|
828
|
+
let c = Vt && typeof e != "string" && Y(e);
|
|
772
829
|
if (c) {
|
|
773
|
-
|
|
774
|
-
let t =
|
|
830
|
+
bn(e);
|
|
831
|
+
let t = se(e);
|
|
775
832
|
if (typeof t == "string") {
|
|
776
|
-
let n =
|
|
777
|
-
if (!
|
|
833
|
+
let n = H(t);
|
|
834
|
+
if (!j[n] || Tt[n]) throw _n(e), je("root node is forbidden and cannot be sanitized in-place");
|
|
778
835
|
}
|
|
779
|
-
if (
|
|
836
|
+
if (wn(e)) throw _n(e), je("root node is clobbered and cannot be sanitized in-place");
|
|
780
837
|
try {
|
|
781
838
|
In(e);
|
|
782
839
|
} catch (t) {
|
|
783
|
-
throw
|
|
840
|
+
throw _n(e), t;
|
|
784
841
|
}
|
|
785
|
-
} else if (
|
|
842
|
+
} else if (Y(e)) i = xn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === D.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), In(i);
|
|
786
843
|
else {
|
|
787
|
-
if (!
|
|
788
|
-
if (i =
|
|
844
|
+
if (!Ft && !F && !L && e.indexOf("<") === -1) return v && Lt ? Ee(e) : e;
|
|
845
|
+
if (i = xn(e), !i) return Ft ? null : Lt ? ce : "";
|
|
789
846
|
}
|
|
790
|
-
i &&
|
|
847
|
+
i && Pt && U(i.firstChild);
|
|
791
848
|
let l = c ? e : i;
|
|
792
849
|
try {
|
|
793
|
-
let e =
|
|
794
|
-
for (; o = e.nextNode();) On(o, l), Pn(o),
|
|
850
|
+
let e = Sn(l);
|
|
851
|
+
for (; o = e.nextNode();) On(o, l), Pn(o, l), J(o.content) && Fn(o.content);
|
|
795
852
|
} catch (n) {
|
|
796
|
-
throw c && (
|
|
797
|
-
e.element &&
|
|
853
|
+
throw c && (_n(e), me(t.removed, (e) => {
|
|
854
|
+
e.element && vn(e.element);
|
|
798
855
|
})), n;
|
|
799
856
|
}
|
|
800
|
-
if (c)
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
857
|
+
if (c) {
|
|
858
|
+
let n = !1;
|
|
859
|
+
if (me(t.removed, (t) => {
|
|
860
|
+
t.element && (t.element === e && (n = !0), vn(t.element));
|
|
861
|
+
}), n) throw je("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
862
|
+
return F && q(e), e;
|
|
863
|
+
}
|
|
864
|
+
if (Ft) {
|
|
865
|
+
if (F && q(i), It) for (s = Me.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
805
866
|
else s = i;
|
|
806
|
-
return (
|
|
867
|
+
return (M.shadowroot || M.shadowrootmode) && (s = st.call(r, s, !0)), s;
|
|
807
868
|
}
|
|
808
|
-
let u =
|
|
809
|
-
return
|
|
869
|
+
let u = L ? i.outerHTML : i.innerHTML;
|
|
870
|
+
return L && j["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(tt, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), F && (u = Cn(u)), v && Lt ? Ee(u) : u;
|
|
810
871
|
}, t.setConfig = function() {
|
|
811
872
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
812
|
-
|
|
873
|
+
un(e), jt = !0, Mt = j, Nt = M;
|
|
813
874
|
}, t.clearConfig = function() {
|
|
814
|
-
|
|
875
|
+
sn = null, jt = !1, Mt = null, Nt = null, v = le, ce = "";
|
|
815
876
|
}, t.isValidAttribute = function(e, t, n) {
|
|
816
|
-
|
|
817
|
-
let r =
|
|
877
|
+
sn || un({});
|
|
878
|
+
let r = H(e), i = H(t);
|
|
818
879
|
return kn(r, i, n);
|
|
819
880
|
}, t.addHook = function(e, t) {
|
|
820
|
-
typeof t == "function" &&
|
|
881
|
+
typeof t == "function" && x(O, e) && _e(O[e], t);
|
|
821
882
|
}, t.removeHook = function(e, t) {
|
|
822
|
-
if (
|
|
883
|
+
if (x(O, e)) {
|
|
823
884
|
if (t !== void 0) {
|
|
824
|
-
let n =
|
|
825
|
-
return n === -1 ? void 0 :
|
|
885
|
+
let n = he(O[e], t);
|
|
886
|
+
return n === -1 ? void 0 : ve(O[e], n, 1)[0];
|
|
826
887
|
}
|
|
827
|
-
return
|
|
888
|
+
return ge(O[e]);
|
|
828
889
|
}
|
|
829
890
|
}, t.removeHooks = function(e) {
|
|
830
|
-
|
|
891
|
+
x(O, e) && (O[e] = []);
|
|
831
892
|
}, t.removeAllHooks = function() {
|
|
832
|
-
|
|
893
|
+
O = ft();
|
|
833
894
|
}, t;
|
|
834
895
|
}
|
|
835
|
-
var
|
|
896
|
+
var O = ht();
|
|
836
897
|
//#endregion
|
|
837
898
|
//#region node_modules/marked/lib/marked.esm.js
|
|
838
|
-
function
|
|
899
|
+
function gt() {
|
|
839
900
|
return {
|
|
840
901
|
async: !1,
|
|
841
902
|
breaks: !1,
|
|
@@ -849,35 +910,35 @@ function mt() {
|
|
|
849
910
|
walkTokens: null
|
|
850
911
|
};
|
|
851
912
|
}
|
|
852
|
-
var
|
|
853
|
-
function
|
|
854
|
-
|
|
913
|
+
var _t = gt();
|
|
914
|
+
function vt(e) {
|
|
915
|
+
_t = e;
|
|
855
916
|
}
|
|
856
|
-
var
|
|
857
|
-
function
|
|
917
|
+
var yt = { exec: () => null };
|
|
918
|
+
function bt(e) {
|
|
858
919
|
let t = [];
|
|
859
920
|
return (n) => {
|
|
860
921
|
let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
|
|
861
922
|
return i || (i = e(r), t[r] = i), i;
|
|
862
923
|
};
|
|
863
924
|
}
|
|
864
|
-
function
|
|
925
|
+
function k(e, t = "") {
|
|
865
926
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
866
927
|
replace: (e, t) => {
|
|
867
928
|
let i = typeof t == "string" ? t : t.source;
|
|
868
|
-
return i = i.replace(
|
|
929
|
+
return i = i.replace(A.caret, "$1"), n = n.replace(e, i), r;
|
|
869
930
|
},
|
|
870
931
|
getRegex: () => new RegExp(n, t)
|
|
871
932
|
};
|
|
872
933
|
return r;
|
|
873
934
|
}
|
|
874
|
-
var
|
|
935
|
+
var xt = ((e = "") => {
|
|
875
936
|
try {
|
|
876
937
|
return !!RegExp("(?<=1)(?<!1)" + e);
|
|
877
938
|
} catch {
|
|
878
939
|
return !1;
|
|
879
940
|
}
|
|
880
|
-
})(),
|
|
941
|
+
})(), A = {
|
|
881
942
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
882
943
|
outputLinkReplace: /\\([\[\]])/g,
|
|
883
944
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -928,118 +989,118 @@ var _t = ((e = "") => {
|
|
|
928
989
|
notSpaceStart: /^\S*/,
|
|
929
990
|
endingNewline: /\n$/,
|
|
930
991
|
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
931
|
-
nextBulletRegex:
|
|
932
|
-
hrRegex:
|
|
933
|
-
fencesBeginRegex:
|
|
934
|
-
headingBeginRegex:
|
|
935
|
-
htmlBeginRegex:
|
|
936
|
-
blockquoteBeginRegex:
|
|
937
|
-
},
|
|
938
|
-
blockquote:
|
|
939
|
-
code:
|
|
940
|
-
def:
|
|
941
|
-
fences:
|
|
942
|
-
heading:
|
|
943
|
-
hr:
|
|
944
|
-
html:
|
|
945
|
-
lheading:
|
|
946
|
-
list:
|
|
947
|
-
newline:
|
|
948
|
-
paragraph:
|
|
949
|
-
table:
|
|
950
|
-
text:
|
|
951
|
-
},
|
|
952
|
-
...
|
|
953
|
-
lheading:
|
|
954
|
-
table:
|
|
955
|
-
paragraph:
|
|
956
|
-
},
|
|
957
|
-
...
|
|
958
|
-
html:
|
|
992
|
+
nextBulletRegex: bt((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
|
|
993
|
+
hrRegex: bt((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
|
|
994
|
+
fencesBeginRegex: bt((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
|
|
995
|
+
headingBeginRegex: bt((e) => RegExp(`^ {0,${e}}#`)),
|
|
996
|
+
htmlBeginRegex: bt((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
|
|
997
|
+
blockquoteBeginRegex: bt((e) => RegExp(`^ {0,${e}}>`))
|
|
998
|
+
}, St = /^(?:[ \t]*(?:\n|$))+/, j = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ct = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, M = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, wt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, N = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Tt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Et = k(Tt).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), P = k(Tt).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Dt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ot = /^[^\n]+/, kt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, At = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", kt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), F = k(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, N).getRegex(), I = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", L = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, jt = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", L).replace("tag", I).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Mt = k(Dt).replace("hr", M).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", I).getRegex(), Nt = {
|
|
999
|
+
blockquote: k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Mt).getRegex(),
|
|
1000
|
+
code: j,
|
|
1001
|
+
def: At,
|
|
1002
|
+
fences: Ct,
|
|
1003
|
+
heading: wt,
|
|
1004
|
+
hr: M,
|
|
1005
|
+
html: jt,
|
|
1006
|
+
lheading: Et,
|
|
1007
|
+
list: F,
|
|
1008
|
+
newline: St,
|
|
1009
|
+
paragraph: Mt,
|
|
1010
|
+
table: yt,
|
|
1011
|
+
text: Ot
|
|
1012
|
+
}, Pt = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", M).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", I).getRegex(), Ft = {
|
|
1013
|
+
...Nt,
|
|
1014
|
+
lheading: P,
|
|
1015
|
+
table: Pt,
|
|
1016
|
+
paragraph: k(Dt).replace("hr", M).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pt).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", I).getRegex()
|
|
1017
|
+
}, It = {
|
|
1018
|
+
...Nt,
|
|
1019
|
+
html: k("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", L).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
959
1020
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
960
1021
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
961
|
-
fences:
|
|
1022
|
+
fences: yt,
|
|
962
1023
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
963
|
-
paragraph:
|
|
964
|
-
},
|
|
965
|
-
_backpedal:
|
|
966
|
-
anyPunctuation:
|
|
967
|
-
autolink:
|
|
968
|
-
blockSkip:
|
|
969
|
-
br:
|
|
970
|
-
code:
|
|
971
|
-
del:
|
|
972
|
-
delLDelim:
|
|
973
|
-
delRDelim:
|
|
974
|
-
emStrongLDelim:
|
|
975
|
-
emStrongRDelimAst:
|
|
976
|
-
emStrongRDelimUnd:
|
|
977
|
-
escape:
|
|
978
|
-
link:
|
|
979
|
-
nolink:
|
|
980
|
-
punctuation:
|
|
981
|
-
reflink:
|
|
982
|
-
reflinkSearch:
|
|
983
|
-
tag:
|
|
984
|
-
text:
|
|
985
|
-
url:
|
|
986
|
-
}, cn = {
|
|
987
|
-
...sn,
|
|
988
|
-
link: j(/^!?\[(label)\]\((.*?)\)/).replace("label", tn).getRegex(),
|
|
989
|
-
reflink: j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", tn).getRegex()
|
|
990
|
-
}, ln = {
|
|
991
|
-
...sn,
|
|
992
|
-
emStrongRDelimAst: H,
|
|
993
|
-
emStrongLDelim: Gt,
|
|
994
|
-
delLDelim: Yt,
|
|
995
|
-
delRDelim: Xt,
|
|
996
|
-
url: j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", on).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
997
|
-
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
998
|
-
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
999
|
-
text: j(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", on).getRegex()
|
|
1000
|
-
}, un = {
|
|
1001
|
-
...ln,
|
|
1002
|
-
br: j(Ft).replace("{2,}", "*").getRegex(),
|
|
1003
|
-
text: j(ln.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
1024
|
+
paragraph: k(Dt).replace("hr", M).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Et).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
1025
|
+
}, Lt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Rt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, zt = /^( {2,}|\\)\n(?!\s*$)/, Bt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, R = /[\p{P}\p{S}]/u, Vt = /[\s\p{P}\p{S}]/u, z = /[^\s\p{P}\p{S}]/u, Ht = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Vt).getRegex(), Ut = /(?!~)[\p{P}\p{S}]/u, Wt = /(?!~)[\s\p{P}\p{S}]/u, Gt = /(?:[^\s\p{P}\p{S}]|~)/u, Kt = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", xt ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), qt = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Jt = k(qt, "u").replace(/punct/g, R).getRegex(), Yt = k(qt, "u").replace(/punct/g, Ut).getRegex(), B = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xt = k(B, "gu").replace(/notPunctSpace/g, z).replace(/punctSpace/g, Vt).replace(/punct/g, R).getRegex(), Zt = k(B, "gu").replace(/notPunctSpace/g, Gt).replace(/punctSpace/g, Wt).replace(/punct/g, Ut).getRegex(), Qt = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, z).replace(/punctSpace/g, Vt).replace(/punct/g, R).getRegex(), $t = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, R).getRegex(), en = k("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, z).replace(/punctSpace/g, Vt).replace(/punct/g, R).getRegex(), tn = k(/\\(punct)/, "gu").replace(/punct/g, R).getRegex(), nn = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), rn = k(L).replace("(?:-->|$)", "-->").getRegex(), an = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", rn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), V = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, on = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", V).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), H = k(/^!?\[(label)\]\[(ref)\]/).replace("label", V).replace("ref", kt).getRegex(), sn = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", kt).getRegex(), cn = k("reflink|nolink(?!\\()", "g").replace("reflink", H).replace("nolink", sn).getRegex(), ln = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, un = {
|
|
1026
|
+
_backpedal: yt,
|
|
1027
|
+
anyPunctuation: tn,
|
|
1028
|
+
autolink: nn,
|
|
1029
|
+
blockSkip: Kt,
|
|
1030
|
+
br: zt,
|
|
1031
|
+
code: Rt,
|
|
1032
|
+
del: yt,
|
|
1033
|
+
delLDelim: yt,
|
|
1034
|
+
delRDelim: yt,
|
|
1035
|
+
emStrongLDelim: Jt,
|
|
1036
|
+
emStrongRDelimAst: Xt,
|
|
1037
|
+
emStrongRDelimUnd: Qt,
|
|
1038
|
+
escape: Lt,
|
|
1039
|
+
link: on,
|
|
1040
|
+
nolink: sn,
|
|
1041
|
+
punctuation: Ht,
|
|
1042
|
+
reflink: H,
|
|
1043
|
+
reflinkSearch: cn,
|
|
1044
|
+
tag: an,
|
|
1045
|
+
text: Bt,
|
|
1046
|
+
url: yt
|
|
1004
1047
|
}, dn = {
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1048
|
+
...un,
|
|
1049
|
+
link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", V).getRegex(),
|
|
1050
|
+
reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", V).getRegex()
|
|
1008
1051
|
}, fn = {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1052
|
+
...un,
|
|
1053
|
+
emStrongRDelimAst: Zt,
|
|
1054
|
+
emStrongLDelim: Yt,
|
|
1055
|
+
delLDelim: $t,
|
|
1056
|
+
delRDelim: en,
|
|
1057
|
+
url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ln).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
1058
|
+
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
1059
|
+
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
1060
|
+
text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ln).getRegex()
|
|
1013
1061
|
}, pn = {
|
|
1062
|
+
...fn,
|
|
1063
|
+
br: k(zt).replace("{2,}", "*").getRegex(),
|
|
1064
|
+
text: k(fn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
1065
|
+
}, mn = {
|
|
1066
|
+
normal: Nt,
|
|
1067
|
+
gfm: Ft,
|
|
1068
|
+
pedantic: It
|
|
1069
|
+
}, hn = {
|
|
1070
|
+
normal: un,
|
|
1071
|
+
gfm: fn,
|
|
1072
|
+
breaks: pn,
|
|
1073
|
+
pedantic: dn
|
|
1074
|
+
}, gn = {
|
|
1014
1075
|
"&": "&",
|
|
1015
1076
|
"<": "<",
|
|
1016
1077
|
">": ">",
|
|
1017
1078
|
"\"": """,
|
|
1018
1079
|
"'": "'"
|
|
1019
|
-
},
|
|
1080
|
+
}, U = (e) => gn[e];
|
|
1020
1081
|
function W(e, t) {
|
|
1021
1082
|
if (t) {
|
|
1022
|
-
if (
|
|
1023
|
-
} else if (
|
|
1083
|
+
if (A.escapeTest.test(e)) return e.replace(A.escapeReplace, U);
|
|
1084
|
+
} else if (A.escapeTestNoEncode.test(e)) return e.replace(A.escapeReplaceNoEncode, U);
|
|
1024
1085
|
return e;
|
|
1025
1086
|
}
|
|
1026
|
-
function
|
|
1087
|
+
function _n(e) {
|
|
1027
1088
|
try {
|
|
1028
|
-
e = encodeURI(e).replace(
|
|
1089
|
+
e = encodeURI(e).replace(A.percentDecode, "%");
|
|
1029
1090
|
} catch {
|
|
1030
1091
|
return null;
|
|
1031
1092
|
}
|
|
1032
1093
|
return e;
|
|
1033
1094
|
}
|
|
1034
|
-
function
|
|
1035
|
-
let n = e.replace(
|
|
1095
|
+
function G(e, t) {
|
|
1096
|
+
let n = e.replace(A.findPipe, (e, t, n) => {
|
|
1036
1097
|
let r = !1, i = t;
|
|
1037
1098
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
1038
1099
|
return r ? "|" : " |";
|
|
1039
|
-
}).split(
|
|
1100
|
+
}).split(A.splitPipe), r = 0;
|
|
1040
1101
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
|
|
1041
1102
|
else for (; n.length < t;) n.push("");
|
|
1042
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
1103
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(A.slashPipe, "|");
|
|
1043
1104
|
return n;
|
|
1044
1105
|
}
|
|
1045
1106
|
function K(e, t, n) {
|
|
@@ -1054,12 +1115,12 @@ function K(e, t, n) {
|
|
|
1054
1115
|
}
|
|
1055
1116
|
return e.slice(0, r - i);
|
|
1056
1117
|
}
|
|
1057
|
-
function
|
|
1118
|
+
function vn(e) {
|
|
1058
1119
|
let t = e.split("\n"), n = t.length - 1;
|
|
1059
|
-
for (; n >= 0 &&
|
|
1120
|
+
for (; n >= 0 && A.blankLine.test(t[n]);) n--;
|
|
1060
1121
|
return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
|
|
1061
1122
|
}
|
|
1062
|
-
function
|
|
1123
|
+
function yn(e, t) {
|
|
1063
1124
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
1064
1125
|
let n = 0;
|
|
1065
1126
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -1067,7 +1128,7 @@ function gn(e, t) {
|
|
|
1067
1128
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
1068
1129
|
return n > 0 ? -2 : -1;
|
|
1069
1130
|
}
|
|
1070
|
-
function
|
|
1131
|
+
function bn(e, t = 0) {
|
|
1071
1132
|
let n = t, r = "";
|
|
1072
1133
|
for (let t of e) if (t === " ") {
|
|
1073
1134
|
let e = 4 - n % 4;
|
|
@@ -1075,7 +1136,7 @@ function _n(e, t = 0) {
|
|
|
1075
1136
|
} else r += t, n++;
|
|
1076
1137
|
return r;
|
|
1077
1138
|
}
|
|
1078
|
-
function
|
|
1139
|
+
function xn(e, t, n, r, i) {
|
|
1079
1140
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
1080
1141
|
r.state.inLink = !0;
|
|
1081
1142
|
let c = {
|
|
@@ -1088,7 +1149,7 @@ function vn(e, t, n, r, i) {
|
|
|
1088
1149
|
};
|
|
1089
1150
|
return r.state.inLink = !1, c;
|
|
1090
1151
|
}
|
|
1091
|
-
function
|
|
1152
|
+
function Sn(e, t, n) {
|
|
1092
1153
|
let r = e.match(n.other.indentCodeCompensation);
|
|
1093
1154
|
if (r === null) return t;
|
|
1094
1155
|
let i = r[1];
|
|
@@ -1099,12 +1160,12 @@ function yn(e, t, n) {
|
|
|
1099
1160
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
1100
1161
|
}).join("\n");
|
|
1101
1162
|
}
|
|
1102
|
-
var
|
|
1163
|
+
var Cn = class {
|
|
1103
1164
|
options;
|
|
1104
1165
|
rules;
|
|
1105
1166
|
lexer;
|
|
1106
1167
|
constructor(e) {
|
|
1107
|
-
this.options = e ||
|
|
1168
|
+
this.options = e || _t;
|
|
1108
1169
|
}
|
|
1109
1170
|
space(e) {
|
|
1110
1171
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -1116,7 +1177,7 @@ var bn = class {
|
|
|
1116
1177
|
code(e) {
|
|
1117
1178
|
let t = this.rules.block.code.exec(e);
|
|
1118
1179
|
if (t) {
|
|
1119
|
-
let e = this.options.pedantic ? t[0] :
|
|
1180
|
+
let e = this.options.pedantic ? t[0] : vn(t[0]);
|
|
1120
1181
|
return {
|
|
1121
1182
|
type: "code",
|
|
1122
1183
|
raw: e,
|
|
@@ -1128,7 +1189,7 @@ var bn = class {
|
|
|
1128
1189
|
fences(e) {
|
|
1129
1190
|
let t = this.rules.block.fences.exec(e);
|
|
1130
1191
|
if (t) {
|
|
1131
|
-
let e = t[0], n =
|
|
1192
|
+
let e = t[0], n = Sn(e, t[3] || "", this.rules);
|
|
1132
1193
|
return {
|
|
1133
1194
|
type: "code",
|
|
1134
1195
|
raw: e,
|
|
@@ -1214,7 +1275,7 @@ ${c}` : c;
|
|
|
1214
1275
|
let n = !1, r = "", s = "";
|
|
1215
1276
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
1216
1277
|
r = t[0], e = e.substring(r.length);
|
|
1217
|
-
let c =
|
|
1278
|
+
let c = bn(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
1218
1279
|
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
1219
1280
|
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
|
|
1220
1281
|
for (; e;) {
|
|
@@ -1280,7 +1341,7 @@ ${c}` : c;
|
|
|
1280
1341
|
html(e) {
|
|
1281
1342
|
let t = this.rules.block.html.exec(e);
|
|
1282
1343
|
if (t) {
|
|
1283
|
-
let e =
|
|
1344
|
+
let e = vn(t[0]);
|
|
1284
1345
|
return {
|
|
1285
1346
|
type: "html",
|
|
1286
1347
|
block: !0,
|
|
@@ -1306,7 +1367,7 @@ ${c}` : c;
|
|
|
1306
1367
|
table(e) {
|
|
1307
1368
|
let t = this.rules.block.table.exec(e);
|
|
1308
1369
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
1309
|
-
let n =
|
|
1370
|
+
let n = G(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
1310
1371
|
type: "table",
|
|
1311
1372
|
raw: K(t[0], "\n"),
|
|
1312
1373
|
header: [],
|
|
@@ -1321,7 +1382,7 @@ ${c}` : c;
|
|
|
1321
1382
|
header: !0,
|
|
1322
1383
|
align: a.align[e]
|
|
1323
1384
|
});
|
|
1324
|
-
for (let e of i) a.rows.push(
|
|
1385
|
+
for (let e of i) a.rows.push(G(e, a.header.length).map((e, t) => ({
|
|
1325
1386
|
text: e,
|
|
1326
1387
|
tokens: this.lexer.inline(e),
|
|
1327
1388
|
header: !1,
|
|
@@ -1392,7 +1453,7 @@ ${c}` : c;
|
|
|
1392
1453
|
let t = K(e.slice(0, -1), "\\");
|
|
1393
1454
|
if ((e.length - t.length) % 2 == 0) return;
|
|
1394
1455
|
} else {
|
|
1395
|
-
let e =
|
|
1456
|
+
let e = yn(t[2], "()");
|
|
1396
1457
|
if (e === -2) return;
|
|
1397
1458
|
if (e > -1) {
|
|
1398
1459
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -1404,7 +1465,7 @@ ${c}` : c;
|
|
|
1404
1465
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
1405
1466
|
e && (n = e[1], r = e[3]);
|
|
1406
1467
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
1407
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
1468
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), xn(t, {
|
|
1408
1469
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
1409
1470
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
1410
1471
|
}, t[0], this.lexer, this.rules);
|
|
@@ -1422,7 +1483,7 @@ ${c}` : c;
|
|
|
1422
1483
|
text: e
|
|
1423
1484
|
};
|
|
1424
1485
|
}
|
|
1425
|
-
return
|
|
1486
|
+
return xn(n, e, n[0], this.lexer, this.rules);
|
|
1426
1487
|
}
|
|
1427
1488
|
}
|
|
1428
1489
|
emStrong(e, t, n = "") {
|
|
@@ -1554,29 +1615,29 @@ ${c}` : c;
|
|
|
1554
1615
|
};
|
|
1555
1616
|
}
|
|
1556
1617
|
}
|
|
1557
|
-
},
|
|
1618
|
+
}, q = class e {
|
|
1558
1619
|
tokens;
|
|
1559
1620
|
options;
|
|
1560
1621
|
state;
|
|
1561
1622
|
inlineQueue;
|
|
1562
1623
|
tokenizer;
|
|
1563
1624
|
constructor(e) {
|
|
1564
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
1625
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || _t, this.options.tokenizer = this.options.tokenizer || new Cn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
1565
1626
|
inLink: !1,
|
|
1566
1627
|
inRawBlock: !1,
|
|
1567
1628
|
top: !0
|
|
1568
1629
|
};
|
|
1569
1630
|
let t = {
|
|
1570
|
-
other:
|
|
1571
|
-
block:
|
|
1572
|
-
inline:
|
|
1631
|
+
other: A,
|
|
1632
|
+
block: mn.normal,
|
|
1633
|
+
inline: hn.normal
|
|
1573
1634
|
};
|
|
1574
|
-
this.options.pedantic ? (t.block =
|
|
1635
|
+
this.options.pedantic ? (t.block = mn.pedantic, t.inline = hn.pedantic) : this.options.gfm && (t.block = mn.gfm, this.options.breaks ? t.inline = hn.breaks : t.inline = hn.gfm), this.tokenizer.rules = t;
|
|
1575
1636
|
}
|
|
1576
1637
|
static get rules() {
|
|
1577
1638
|
return {
|
|
1578
|
-
block:
|
|
1579
|
-
inline:
|
|
1639
|
+
block: mn,
|
|
1640
|
+
inline: hn
|
|
1580
1641
|
};
|
|
1581
1642
|
}
|
|
1582
1643
|
static lex(t, n) {
|
|
@@ -1586,7 +1647,7 @@ ${c}` : c;
|
|
|
1586
1647
|
return new e(n).inlineTokens(t);
|
|
1587
1648
|
}
|
|
1588
1649
|
lex(e) {
|
|
1589
|
-
e = e.replace(
|
|
1650
|
+
e = e.replace(A.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
1590
1651
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
1591
1652
|
let t = this.inlineQueue[e];
|
|
1592
1653
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -1594,7 +1655,7 @@ ${c}` : c;
|
|
|
1594
1655
|
return this.inlineQueue = [], this.tokens;
|
|
1595
1656
|
}
|
|
1596
1657
|
blockTokens(e, t = [], n = !1) {
|
|
1597
|
-
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
1658
|
+
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(A.tabCharGlobal, " ").replace(A.spaceLine, ""));
|
|
1598
1659
|
let r = Infinity;
|
|
1599
1660
|
for (; e;) {
|
|
1600
1661
|
if (e.length < r) r = e.length;
|
|
@@ -1776,17 +1837,17 @@ ${c}` : c;
|
|
|
1776
1837
|
if (this.options.silent) console.error(t);
|
|
1777
1838
|
else throw Error(t);
|
|
1778
1839
|
}
|
|
1779
|
-
},
|
|
1840
|
+
}, wn = class {
|
|
1780
1841
|
options;
|
|
1781
1842
|
parser;
|
|
1782
1843
|
constructor(e) {
|
|
1783
|
-
this.options = e ||
|
|
1844
|
+
this.options = e || _t;
|
|
1784
1845
|
}
|
|
1785
1846
|
space(e) {
|
|
1786
1847
|
return "";
|
|
1787
1848
|
}
|
|
1788
1849
|
code({ text: e, lang: t, escaped: n }) {
|
|
1789
|
-
let r = (t || "").match(
|
|
1850
|
+
let r = (t || "").match(A.notSpaceStart)?.[0], i = e.replace(A.endingNewline, "") + "\n";
|
|
1790
1851
|
return r ? "<pre><code class=\"language-" + W(r) + "\">" + (n ? i : W(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : W(i, !0)) + "</code></pre>\n";
|
|
1791
1852
|
}
|
|
1792
1853
|
blockquote({ tokens: e }) {
|
|
@@ -1866,7 +1927,7 @@ ${e}</tr>
|
|
|
1866
1927
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
1867
1928
|
}
|
|
1868
1929
|
link({ href: e, title: t, tokens: n }) {
|
|
1869
|
-
let r = this.parser.parseInline(n), i =
|
|
1930
|
+
let r = this.parser.parseInline(n), i = _n(e);
|
|
1870
1931
|
if (i === null) return r;
|
|
1871
1932
|
e = i;
|
|
1872
1933
|
let a = "<a href=\"" + e + "\"";
|
|
@@ -1874,7 +1935,7 @@ ${e}</tr>
|
|
|
1874
1935
|
}
|
|
1875
1936
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
1876
1937
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1877
|
-
let i =
|
|
1938
|
+
let i = _n(e);
|
|
1878
1939
|
if (i === null) return W(n);
|
|
1879
1940
|
e = i;
|
|
1880
1941
|
let a = `<img src="${e}" alt="${W(n)}"`;
|
|
@@ -1883,7 +1944,7 @@ ${e}</tr>
|
|
|
1883
1944
|
text(e) {
|
|
1884
1945
|
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : W(e.text);
|
|
1885
1946
|
}
|
|
1886
|
-
},
|
|
1947
|
+
}, J = class {
|
|
1887
1948
|
strong({ text: e }) {
|
|
1888
1949
|
return e;
|
|
1889
1950
|
}
|
|
@@ -1919,7 +1980,7 @@ ${e}</tr>
|
|
|
1919
1980
|
renderer;
|
|
1920
1981
|
textRenderer;
|
|
1921
1982
|
constructor(e) {
|
|
1922
|
-
this.options = e ||
|
|
1983
|
+
this.options = e || _t, this.options.renderer = this.options.renderer || new wn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new J();
|
|
1923
1984
|
}
|
|
1924
1985
|
static parse(t, n) {
|
|
1925
1986
|
return new e(n).parse(t);
|
|
@@ -2069,7 +2130,7 @@ ${e}</tr>
|
|
|
2069
2130
|
options;
|
|
2070
2131
|
block;
|
|
2071
2132
|
constructor(e) {
|
|
2072
|
-
this.options = e ||
|
|
2133
|
+
this.options = e || _t;
|
|
2073
2134
|
}
|
|
2074
2135
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
2075
2136
|
"preprocess",
|
|
@@ -2095,21 +2156,21 @@ ${e}</tr>
|
|
|
2095
2156
|
return e;
|
|
2096
2157
|
}
|
|
2097
2158
|
provideLexer(e = this.block) {
|
|
2098
|
-
return e ?
|
|
2159
|
+
return e ? q.lex : q.lexInline;
|
|
2099
2160
|
}
|
|
2100
2161
|
provideParser(e = this.block) {
|
|
2101
2162
|
return e ? Y.parse : Y.parseInline;
|
|
2102
2163
|
}
|
|
2103
|
-
},
|
|
2104
|
-
defaults =
|
|
2164
|
+
}, Tn = new class {
|
|
2165
|
+
defaults = gt();
|
|
2105
2166
|
options = this.setOptions;
|
|
2106
2167
|
parse = this.parseMarkdown(!0);
|
|
2107
2168
|
parseInline = this.parseMarkdown(!1);
|
|
2108
2169
|
Parser = Y;
|
|
2109
|
-
Renderer =
|
|
2110
|
-
TextRenderer =
|
|
2111
|
-
Lexer =
|
|
2112
|
-
Tokenizer =
|
|
2170
|
+
Renderer = wn;
|
|
2171
|
+
TextRenderer = J;
|
|
2172
|
+
Lexer = q;
|
|
2173
|
+
Tokenizer = Cn;
|
|
2113
2174
|
Hooks = X;
|
|
2114
2175
|
constructor(...e) {
|
|
2115
2176
|
this.use(...e);
|
|
@@ -2161,7 +2222,7 @@ ${e}</tr>
|
|
|
2161
2222
|
}
|
|
2162
2223
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
2163
2224
|
}), n.extensions = t), e.renderer) {
|
|
2164
|
-
let t = this.defaults.renderer || new
|
|
2225
|
+
let t = this.defaults.renderer || new wn(this.defaults);
|
|
2165
2226
|
for (let n in e.renderer) {
|
|
2166
2227
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
2167
2228
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -2174,7 +2235,7 @@ ${e}</tr>
|
|
|
2174
2235
|
n.renderer = t;
|
|
2175
2236
|
}
|
|
2176
2237
|
if (e.tokenizer) {
|
|
2177
|
-
let t = this.defaults.tokenizer || new
|
|
2238
|
+
let t = this.defaults.tokenizer || new Cn(this.defaults);
|
|
2178
2239
|
for (let n in e.tokenizer) {
|
|
2179
2240
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
2180
2241
|
if ([
|
|
@@ -2234,7 +2295,7 @@ ${e}</tr>
|
|
|
2234
2295
|
}, this;
|
|
2235
2296
|
}
|
|
2236
2297
|
lexer(e, t) {
|
|
2237
|
-
return
|
|
2298
|
+
return q.lex(e, t ?? this.defaults);
|
|
2238
2299
|
}
|
|
2239
2300
|
parser(e, t) {
|
|
2240
2301
|
return Y.parse(e, t ?? this.defaults);
|
|
@@ -2249,14 +2310,14 @@ ${e}</tr>
|
|
|
2249
2310
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
2250
2311
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
2251
2312
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
2252
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ?
|
|
2313
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? q.lex : q.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
2253
2314
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
2254
2315
|
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? Y.parse : Y.parseInline)(a, i);
|
|
2255
2316
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
2256
2317
|
})().catch(a);
|
|
2257
2318
|
try {
|
|
2258
2319
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
2259
|
-
let n = (i.hooks ? i.hooks.provideLexer(e) : e ?
|
|
2320
|
+
let n = (i.hooks ? i.hooks.provideLexer(e) : e ? q.lex : q.lexInline)(t, i);
|
|
2260
2321
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
2261
2322
|
let r = (i.hooks ? i.hooks.provideParser(e) : e ? Y.parse : Y.parseInline)(n, i);
|
|
2262
2323
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
@@ -2276,24 +2337,24 @@ ${e}</tr>
|
|
|
2276
2337
|
};
|
|
2277
2338
|
}
|
|
2278
2339
|
}();
|
|
2279
|
-
function
|
|
2280
|
-
return
|
|
2281
|
-
}
|
|
2282
|
-
|
|
2283
|
-
return
|
|
2284
|
-
},
|
|
2285
|
-
return
|
|
2286
|
-
},
|
|
2287
|
-
return
|
|
2288
|
-
},
|
|
2340
|
+
function Z(e, t) {
|
|
2341
|
+
return Tn.parse(e, t);
|
|
2342
|
+
}
|
|
2343
|
+
Z.options = Z.setOptions = function(e) {
|
|
2344
|
+
return Tn.setOptions(e), Z.defaults = Tn.defaults, vt(Z.defaults), Z;
|
|
2345
|
+
}, Z.getDefaults = gt, Z.defaults = _t, Z.use = function(...e) {
|
|
2346
|
+
return Tn.use(...e), Z.defaults = Tn.defaults, vt(Z.defaults), Z;
|
|
2347
|
+
}, Z.walkTokens = function(e, t) {
|
|
2348
|
+
return Tn.walkTokens(e, t);
|
|
2349
|
+
}, Z.parseInline = Tn.parseInline, Z.Parser = Y, Z.parser = Y.parse, Z.Renderer = wn, Z.TextRenderer = J, Z.Lexer = q, Z.lexer = q.lex, Z.Tokenizer = Cn, Z.Hooks = X, Z.parse = Z, Z.options, Z.setOptions, Z.use, Z.walkTokens, Z.parseInline, Y.parse, q.lex;
|
|
2289
2350
|
//#endregion
|
|
2290
2351
|
//#region src/components/ai-chat/ai-chat.module.scss?inline
|
|
2291
|
-
var Cn = ":host{box-sizing:border-box;flex-direction:column;width:100%;height:100%;display:flex}:host .chat-container{background:var(--luzmo-ai-chat-background,var(--ai-chat-background));border-radius:var(--luzmo-ai-chat-border-radius,var(--ai-chat-border-radius));width:100%;height:100%;min-height:0;padding:var(--luzmo-ai-chat-padding,var(--ai-chat-padding));gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));border:var(--luzmo-ai-chat-border,var(--ai-chat-border));box-shadow:var(--luzmo-ai-chat-box-shadow,var(--ai-chat-box-shadow));box-sizing:border-box;flex-direction:column;flex:1;display:flex;overflow:hidden}:host .chat-messages-container{gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));flex-direction:column;flex:1;min-height:0;display:flex;overflow:auto}:host .chat-messages-container luzmo-ai-chat-empty-state{flex:1;min-height:0}:host .chat-messages-container::-webkit-scrollbar{width:var(--luzmo-ai-chat-scrollbar-width,var(--ai-chat-scrollbar-width))}:host .chat-messages-container::-webkit-scrollbar-track{background:var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background));border-radius:var(--luzmo-ai-chat-scrollbar-track-border-radius,var(--ai-chat-scrollbar-track-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb{background:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background));border-radius:var(--luzmo-ai-chat-scrollbar-thumb-border-radius,var(--ai-chat-scrollbar-thumb-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb:hover{background:var(--luzmo-ai-chat-scrollbar-thumb-hover-background,var(--ai-chat-scrollbar-thumb-hover-background))}:host .chat-messages-container{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background)) var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background))}:host luzmo-chat-message{--luzmo-primary:rgba(var(--luzmo-primary-rgb), .08);--chat-message-primary-text-color:var(--luzmo-font-color);--chat-message-primary-border-color:transparent}:host luzmo-chat-message.error{color:var(--luzmo-ai-chat-error-message-color,var(--ai-chat-error-message-color))}:host luzmo-chat-message.cancelled{color:var(--luzmo-ai-chat-cancelled-message-color,var(--ai-chat-cancelled-message-color));font-style:italic}:host .user-message-content{gap:var(--luzmo-spacing-3,8px);flex-direction:column;display:flex}:host .user-message-attachments{gap:var(--luzmo-spacing-2,4px);flex-wrap:wrap;display:flex}:host .user-message-attachment{width:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));height:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));object-fit:cover;object-position:center;border-radius:var(--luzmo-border-radius-s,4px);pointer-events:none;display:block}:host .user-message-text{white-space:pre-wrap;overflow-wrap:anywhere}:host .markdown-content{line-height:var(--luzmo-ai-chat-markdown-line-height,var(--ai-chat-markdown-line-height))}:host .markdown-content>:first-child{margin-top:0}:host .markdown-content>:last-child{margin-bottom:0}:host .markdown-content p,:host .markdown-content ul,:host .markdown-content ol,:host .markdown-content blockquote,:host .markdown-content pre,:host .markdown-content table{margin:0 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing))}:host .markdown-content h1,:host .markdown-content h2,:host .markdown-content h3,:host .markdown-content h4,:host .markdown-content h5,:host .markdown-content h6{margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing));font-weight:var(--luzmo-ai-chat-markdown-heading-font-weight,var(--ai-chat-markdown-heading-font-weight))}:host .markdown-content ul,:host .markdown-content ol{padding-inline-start:var(--luzmo-ai-chat-markdown-list-indent,var(--ai-chat-markdown-list-indent))}:host .markdown-content a{color:var(--luzmo-ai-chat-markdown-link-color,var(--ai-chat-markdown-link-color))}:host .markdown-content code{font-family:var(--luzmo-ai-chat-markdown-code-font-family,var(--ai-chat-markdown-code-font-family));font-size:var(--luzmo-ai-chat-markdown-code-font-size,var(--ai-chat-markdown-code-font-size));background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.1em .3em}:host .markdown-content pre{background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.75em 1em;overflow-x:auto}:host .markdown-content pre code{background:0 0;padding:0}:host .markdown-content blockquote{border-inline-start:.1875rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));padding-inline-start:.75rem}:host .markdown-content hr{border:0;border-top:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0}:host .markdown-content table{border-collapse:collapse;width:100%}:host .markdown-content th,:host .markdown-content td{border:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));text-align:start;padding:.375rem .625rem}:host .markdown-content th{background:var(--luzmo-ai-chat-markdown-table-header-background,var(--ai-chat-markdown-table-header-background));font-weight:600}:host .assistant-message-wrapper{gap:var(--luzmo-ai-chat-assistant-message-actions-margin-top,var(--ai-chat-assistant-message-actions-margin-top));font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));--chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--luzmo-chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--luzmo-chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));--luzmo-chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));flex-direction:column;display:flex}:host .assistant-message-body{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}:host .assistant-message-actions{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:none}:host .assistant-message-actions.assistant-message-actions--has-content{display:flex}:host .assistant-message-actions.assistant-message-actions--confirming{flex-direction:column;align-items:flex-start}:host .assistant-message-actions .assistant-message-action-confirm-message{font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color));white-space:pre-line}:host .assistant-message-actions .assistant-message-action-confirm-controls{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:flex}:host .assistant-message-actions luzmo-button.assistant-message-action,:host .assistant-message-actions slot::slotted(luzmo-button),:host .assistant-message-actions slot::slotted(button),:host .assistant-message-actions slot::slotted(a),:host .assistant-message-actions slot::slotted(input),:host .assistant-message-actions slot::slotted(select),:host .assistant-message-actions slot::slotted(textarea){font-style:normal}:host .assistant-message-actions slot::slotted(:not(luzmo-button):not(button):not(a):not(input):not(select):not(textarea)){font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color))}:host .assistant-context-menu-trigger{width:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));height:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));border:.0625rem solid var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));border-radius:var(--luzmo-ai-chat-context-menu-trigger-border-radius,var(--ai-chat-context-menu-trigger-border-radius));background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color));cursor:pointer;justify-content:center;align-items:center;padding:0;font-size:.875rem;line-height:1;transition:all .15s;display:inline-flex}:host .assistant-context-menu-trigger:hover{background:var(--luzmo-ai-chat-context-menu-trigger-hover-background,var(--ai-chat-context-menu-trigger-hover-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-hover-border-color,var(--ai-chat-context-menu-trigger-hover-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-hover-color,var(--ai-chat-context-menu-trigger-hover-color))}:host .assistant-context-menu-trigger:disabled{cursor:not-allowed;opacity:.6}:host .assistant-context-menu-trigger:disabled:hover{background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color))}:host .assistant-context-menu-item{width:100%;color:var(--luzmo-font-color);text-align:start;cursor:pointer;font-family:var(--luzmo-ai-chat-context-menu-item-font-family,var(--ai-chat-context-menu-item-font-family));background:0 0;border:0;padding:.5rem .75rem}:host .assistant-context-menu-item:hover{background:var(--luzmo-ai-chat-context-menu-item-hover-background,var(--ai-chat-context-menu-item-hover-background))}:host .assistant-context-menu-item:disabled{opacity:.4;cursor:not-allowed}:host .assistant-context-menu-item:disabled:hover{background:0 0}:host luzmo-ai-interaction-textarea{flex-grow:0;flex-shrink:0}:host luzmo-progress-steps{padding:0 .25rem}:host .loading-message{color:var(--luzmo-font-color);align-items:center;gap:.5rem;display:flex}:host .loading-message svg{color:var(--luzmo-ai-chat-loading-message-color,var(--ai-chat-loading-message-color));font-size:var(--luzmo-ai-chat-loading-message-icon-font-size,var(--ai-chat-loading-message-icon-font-size,1rem));justify-content:center;align-items:center;display:flex}:host .loading-message svg.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){:host .assistant-context-menu-trigger{transition:none}:host .loading-message svg.spin{animation:none}}:host{--ai-chat-background:var(--luzmo-background-color);--ai-chat-border-radius:0;--ai-chat-padding:0;--ai-chat-gap:1rem;--ai-chat-border:none;--ai-chat-box-shadow:none;--ai-chat-loading-message-color:var(--luzmo-primary);--ai-chat-loading-message-icon-font-size:1rem;--ai-chat-error-message-color:var(--luzmo-danger,#dc3545);--ai-chat-cancelled-message-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed));--ai-chat-scrollbar-width:var(--luzmo-scrollbar-size);--ai-chat-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--ai-chat-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--ai-chat-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--ai-chat-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--ai-chat-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background);--ai-chat-context-menu-trigger-size:1.5rem;--ai-chat-context-menu-trigger-border-color:var(--luzmo-border-color);--ai-chat-context-menu-trigger-border-radius:.375rem;--ai-chat-context-menu-trigger-background:var(--luzmo-background-color,transparent);--ai-chat-context-menu-trigger-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-trigger-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-trigger-hover-border-color:var(--luzmo-border-color-hover,var(--luzmo-border-color));--ai-chat-context-menu-trigger-hover-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-item-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-item-font-family:var(--luzmo-font-family);--ai-chat-markdown-line-height:1.5;--ai-chat-markdown-spacing:var(--luzmo-spacing-3);--ai-chat-markdown-heading-spacing:var(--luzmo-spacing-4);--ai-chat-markdown-heading-font-weight:var(--luzmo-font-weight-bold);--ai-chat-markdown-list-indent:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-3));--ai-chat-markdown-link-color:var(--luzmo-primary);--ai-chat-markdown-code-font-family:var(--luzmo-font-family-mono,ui-monospace, monospace);--ai-chat-markdown-code-font-size:.875em;--ai-chat-markdown-code-background:var(--luzmo-background-color-highlight);--ai-chat-markdown-code-border-radius:var(--luzmo-border-radius-s);--ai-chat-markdown-border-color:var(--luzmo-border-color);--ai-chat-markdown-table-header-background:var(--luzmo-background-color-highlight);--ai-chat-assistant-message-actions-gap:var(--luzmo-spacing-2);--ai-chat-assistant-message-actions-margin-top:var(--luzmo-spacing-3);--ai-chat-assistant-message-actions-color:var(--luzmo-font-color-extra-dimmed);--ai-chat-assistant-message-actions-font-style:italic;--ai-chat-assistant-message-font-family:var(--luzmo-font-family);--ai-chat-assistant-message-font-size:var(--luzmo-font-size-s,12px);--ai-chat-assistant-message-line-height:var(--ai-chat-markdown-line-height);--ai-chat-user-message-attachment-size:64px}", wn = ":host{box-sizing:border-box;width:100%;min-height:0;padding-block:var(--luzmo-ai-chat-empty-state-padding-block,var(--ai-chat-empty-state-padding-block));padding-inline:var(--luzmo-ai-chat-empty-state-padding-inline,var(--ai-chat-empty-state-padding-inline));flex:1;justify-content:center;align-items:center;display:flex}.empty-state{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-header-actions-gap,var(--ai-chat-empty-state-header-actions-gap));width:100%;max-width:var(--luzmo-ai-chat-empty-state-max-width,var(--ai-chat-empty-state-max-width));text-align:center;flex-direction:column;display:flex}.header{flex-direction:column;align-items:center;width:100%;display:flex}.actions{align-items:center;gap:var(--luzmo-ai-chat-empty-state-actions-gap,var(--ai-chat-empty-state-actions-gap));flex-direction:column;width:100%;display:flex}.title{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-title-font-size,var(--ai-chat-empty-state-title-font-size));font-weight:var(--luzmo-ai-chat-empty-state-title-font-weight,var(--ai-chat-empty-state-title-font-weight));line-height:var(--luzmo-ai-chat-empty-state-title-line-height,var(--ai-chat-empty-state-title-line-height));color:var(--luzmo-ai-chat-empty-state-title-color,var(--ai-chat-empty-state-title-color));text-wrap:balance;margin:0}.subtitle{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-subtitle-font-size,var(--ai-chat-empty-state-subtitle-font-size));font-weight:var(--luzmo-ai-chat-empty-state-subtitle-font-weight,var(--ai-chat-empty-state-subtitle-font-weight));line-height:var(--luzmo-ai-chat-empty-state-subtitle-line-height,var(--ai-chat-empty-state-subtitle-line-height));color:var(--luzmo-ai-chat-empty-state-subtitle-color,var(--ai-chat-empty-state-subtitle-color));margin:0}.suggestions{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-suggestions-gap,var(--ai-chat-empty-state-suggestions-gap));flex-wrap:wrap;width:100%;display:flex}luzmo-action-button{max-width:100%}:host{--ai-chat-empty-state-header-actions-gap:1.5rem;--ai-chat-empty-state-actions-gap:var(--luzmo-spacing-4);--ai-chat-empty-state-suggestions-gap:var(--luzmo-spacing-3);--ai-chat-empty-state-max-width:22.5rem;--ai-chat-empty-state-padding-block:2rem;--ai-chat-empty-state-padding-inline:var(--luzmo-spacing-5);--ai-chat-empty-state-title-font-size:var(--luzmo-font-size-l);--ai-chat-empty-state-title-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-title-line-height:1.4;--ai-chat-empty-state-title-color:var(--luzmo-font-color-hard);--ai-chat-empty-state-subtitle-font-size:var(--luzmo-font-size-s);--ai-chat-empty-state-subtitle-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-subtitle-line-height:var(--luzmo-line-height);--ai-chat-empty-state-subtitle-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed))}", Tn = class extends i {
|
|
2352
|
+
var En = ":host{box-sizing:border-box;flex-direction:column;width:100%;height:100%;display:flex}:host .chat-container{background:var(--luzmo-ai-chat-background,var(--ai-chat-background));border-radius:var(--luzmo-ai-chat-border-radius,var(--ai-chat-border-radius));width:100%;height:100%;min-height:0;padding:var(--luzmo-ai-chat-padding,var(--ai-chat-padding));gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));border:var(--luzmo-ai-chat-border,var(--ai-chat-border));box-shadow:var(--luzmo-ai-chat-box-shadow,var(--ai-chat-box-shadow));box-sizing:border-box;flex-direction:column;flex:1;display:flex;overflow:hidden}:host .chat-messages-container{gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));flex-direction:column;flex:1;min-height:0;display:flex;overflow:auto}:host .chat-messages-container luzmo-ai-chat-empty-state{flex:1;min-height:0}:host .chat-messages-container::-webkit-scrollbar{width:var(--luzmo-ai-chat-scrollbar-width,var(--ai-chat-scrollbar-width))}:host .chat-messages-container::-webkit-scrollbar-track{background:var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background));border-radius:var(--luzmo-ai-chat-scrollbar-track-border-radius,var(--ai-chat-scrollbar-track-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb{background:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background));border-radius:var(--luzmo-ai-chat-scrollbar-thumb-border-radius,var(--ai-chat-scrollbar-thumb-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb:hover{background:var(--luzmo-ai-chat-scrollbar-thumb-hover-background,var(--ai-chat-scrollbar-thumb-hover-background))}:host .chat-messages-container{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background)) var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background))}:host luzmo-chat-message{--luzmo-primary:rgba(var(--luzmo-primary-rgb), .08);--chat-message-primary-text-color:var(--luzmo-font-color);--chat-message-primary-border-color:transparent}:host luzmo-chat-message.error{color:var(--luzmo-ai-chat-error-message-color,var(--ai-chat-error-message-color))}:host luzmo-chat-message.cancelled{color:var(--luzmo-ai-chat-cancelled-message-color,var(--ai-chat-cancelled-message-color));font-style:italic}:host .user-message-content{gap:var(--luzmo-spacing-3,8px);flex-direction:column;display:flex}:host .user-message-attachments{gap:var(--luzmo-spacing-2,4px);flex-wrap:wrap;display:flex}:host .user-message-attachment{width:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));height:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));object-fit:cover;object-position:center;border-radius:var(--luzmo-border-radius-s,4px);pointer-events:none;display:block}:host .user-message-text{white-space:pre-wrap;overflow-wrap:anywhere}:host .markdown-content{line-height:var(--luzmo-ai-chat-markdown-line-height,var(--ai-chat-markdown-line-height))}:host .markdown-content>:first-child{margin-top:0}:host .markdown-content>:last-child{margin-bottom:0}:host .markdown-content p,:host .markdown-content ul,:host .markdown-content ol,:host .markdown-content blockquote,:host .markdown-content pre,:host .markdown-content table{margin:0 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing))}:host .markdown-content h1,:host .markdown-content h2,:host .markdown-content h3,:host .markdown-content h4,:host .markdown-content h5,:host .markdown-content h6{margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing));font-weight:var(--luzmo-ai-chat-markdown-heading-font-weight,var(--ai-chat-markdown-heading-font-weight))}:host .markdown-content ul,:host .markdown-content ol{padding-inline-start:var(--luzmo-ai-chat-markdown-list-indent,var(--ai-chat-markdown-list-indent))}:host .markdown-content a{color:var(--luzmo-ai-chat-markdown-link-color,var(--ai-chat-markdown-link-color))}:host .markdown-content code{font-family:var(--luzmo-ai-chat-markdown-code-font-family,var(--ai-chat-markdown-code-font-family));font-size:var(--luzmo-ai-chat-markdown-code-font-size,var(--ai-chat-markdown-code-font-size));background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.1em .3em}:host .markdown-content pre{background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.75em 1em;overflow-x:auto}:host .markdown-content pre code{background:0 0;padding:0}:host .markdown-content blockquote{border-inline-start:.1875rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));padding-inline-start:.75rem}:host .markdown-content hr{border:0;border-top:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0}:host .markdown-content table{border-collapse:collapse;width:100%}:host .markdown-content th,:host .markdown-content td{border:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));text-align:start;padding:.375rem .625rem}:host .markdown-content th{background:var(--luzmo-ai-chat-markdown-table-header-background,var(--ai-chat-markdown-table-header-background));font-weight:600}:host .assistant-message-wrapper{gap:var(--luzmo-ai-chat-assistant-message-actions-margin-top,var(--ai-chat-assistant-message-actions-margin-top));font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));--chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--luzmo-chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--luzmo-chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));--luzmo-chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));flex-direction:column;display:flex}:host .assistant-message-body{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}:host .assistant-message-actions{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:none}:host .assistant-message-actions.assistant-message-actions--has-content{display:flex}:host .assistant-message-actions.assistant-message-actions--confirming{flex-direction:column;align-items:flex-start}:host .assistant-message-actions .assistant-message-action-confirm-message{font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color));white-space:pre-line}:host .assistant-message-actions .assistant-message-action-confirm-controls{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:flex}:host .assistant-message-actions luzmo-button.assistant-message-action,:host .assistant-message-actions slot::slotted(luzmo-button),:host .assistant-message-actions slot::slotted(button),:host .assistant-message-actions slot::slotted(a),:host .assistant-message-actions slot::slotted(input),:host .assistant-message-actions slot::slotted(select),:host .assistant-message-actions slot::slotted(textarea){font-style:normal}:host .assistant-message-actions slot::slotted(:not(luzmo-button):not(button):not(a):not(input):not(select):not(textarea)){font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color))}:host .assistant-context-menu-trigger{width:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));height:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));border:.0625rem solid var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));border-radius:var(--luzmo-ai-chat-context-menu-trigger-border-radius,var(--ai-chat-context-menu-trigger-border-radius));background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color));cursor:pointer;justify-content:center;align-items:center;padding:0;font-size:.875rem;line-height:1;transition:all .15s;display:inline-flex}:host .assistant-context-menu-trigger:hover{background:var(--luzmo-ai-chat-context-menu-trigger-hover-background,var(--ai-chat-context-menu-trigger-hover-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-hover-border-color,var(--ai-chat-context-menu-trigger-hover-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-hover-color,var(--ai-chat-context-menu-trigger-hover-color))}:host .assistant-context-menu-trigger:disabled{cursor:not-allowed;opacity:.6}:host .assistant-context-menu-trigger:disabled:hover{background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color))}:host .assistant-context-menu-item{width:100%;color:var(--luzmo-font-color);text-align:start;cursor:pointer;font-family:var(--luzmo-ai-chat-context-menu-item-font-family,var(--ai-chat-context-menu-item-font-family));background:0 0;border:0;padding:.5rem .75rem}:host .assistant-context-menu-item:hover{background:var(--luzmo-ai-chat-context-menu-item-hover-background,var(--ai-chat-context-menu-item-hover-background))}:host .assistant-context-menu-item:disabled{opacity:.4;cursor:not-allowed}:host .assistant-context-menu-item:disabled:hover{background:0 0}:host luzmo-ai-interaction-textarea{flex-grow:0;flex-shrink:0}:host luzmo-progress-steps{padding:0 .25rem}:host .loading-message{color:var(--luzmo-font-color);align-items:center;gap:.5rem;display:flex}:host .loading-message svg{color:var(--luzmo-ai-chat-loading-message-color,var(--ai-chat-loading-message-color));font-size:var(--luzmo-ai-chat-loading-message-icon-font-size,var(--ai-chat-loading-message-icon-font-size,1rem));justify-content:center;align-items:center;display:flex}:host .loading-message svg.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){:host .assistant-context-menu-trigger{transition:none}:host .loading-message svg.spin{animation:none}}:host{--ai-chat-background:var(--luzmo-background-color);--ai-chat-border-radius:0;--ai-chat-padding:0;--ai-chat-gap:1rem;--ai-chat-border:none;--ai-chat-box-shadow:none;--ai-chat-loading-message-color:var(--luzmo-primary);--ai-chat-loading-message-icon-font-size:1rem;--ai-chat-error-message-color:var(--luzmo-danger,#dc3545);--ai-chat-cancelled-message-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed));--ai-chat-scrollbar-width:var(--luzmo-scrollbar-size);--ai-chat-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--ai-chat-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--ai-chat-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--ai-chat-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--ai-chat-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background);--ai-chat-context-menu-trigger-size:1.5rem;--ai-chat-context-menu-trigger-border-color:var(--luzmo-border-color);--ai-chat-context-menu-trigger-border-radius:.375rem;--ai-chat-context-menu-trigger-background:var(--luzmo-background-color,transparent);--ai-chat-context-menu-trigger-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-trigger-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-trigger-hover-border-color:var(--luzmo-border-color-hover,var(--luzmo-border-color));--ai-chat-context-menu-trigger-hover-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-item-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-item-font-family:var(--luzmo-font-family);--ai-chat-markdown-line-height:1.5;--ai-chat-markdown-spacing:var(--luzmo-spacing-3);--ai-chat-markdown-heading-spacing:var(--luzmo-spacing-4);--ai-chat-markdown-heading-font-weight:var(--luzmo-font-weight-bold);--ai-chat-markdown-list-indent:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-3));--ai-chat-markdown-link-color:var(--luzmo-primary);--ai-chat-markdown-code-font-family:var(--luzmo-font-family-mono,ui-monospace, monospace);--ai-chat-markdown-code-font-size:.875em;--ai-chat-markdown-code-background:var(--luzmo-background-color-highlight);--ai-chat-markdown-code-border-radius:var(--luzmo-border-radius-s);--ai-chat-markdown-border-color:var(--luzmo-border-color);--ai-chat-markdown-table-header-background:var(--luzmo-background-color-highlight);--ai-chat-assistant-message-actions-gap:var(--luzmo-spacing-2);--ai-chat-assistant-message-actions-margin-top:var(--luzmo-spacing-3);--ai-chat-assistant-message-actions-color:var(--luzmo-font-color-extra-dimmed);--ai-chat-assistant-message-actions-font-style:italic;--ai-chat-assistant-message-font-family:var(--luzmo-font-family);--ai-chat-assistant-message-font-size:var(--luzmo-font-size-s,12px);--ai-chat-assistant-message-line-height:var(--ai-chat-markdown-line-height);--ai-chat-user-message-attachment-size:64px}", Dn = ":host{box-sizing:border-box;width:100%;min-height:0;padding-block:var(--luzmo-ai-chat-empty-state-padding-block,var(--ai-chat-empty-state-padding-block));padding-inline:var(--luzmo-ai-chat-empty-state-padding-inline,var(--ai-chat-empty-state-padding-inline));flex:1;justify-content:center;align-items:center;display:flex}.empty-state{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-header-actions-gap,var(--ai-chat-empty-state-header-actions-gap));width:100%;max-width:var(--luzmo-ai-chat-empty-state-max-width,var(--ai-chat-empty-state-max-width));text-align:center;flex-direction:column;display:flex}.header{flex-direction:column;align-items:center;width:100%;display:flex}.actions{align-items:center;gap:var(--luzmo-ai-chat-empty-state-actions-gap,var(--ai-chat-empty-state-actions-gap));flex-direction:column;width:100%;display:flex}.title{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-title-font-size,var(--ai-chat-empty-state-title-font-size));font-weight:var(--luzmo-ai-chat-empty-state-title-font-weight,var(--ai-chat-empty-state-title-font-weight));line-height:var(--luzmo-ai-chat-empty-state-title-line-height,var(--ai-chat-empty-state-title-line-height));color:var(--luzmo-ai-chat-empty-state-title-color,var(--ai-chat-empty-state-title-color));text-wrap:balance;margin:0}.subtitle{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-subtitle-font-size,var(--ai-chat-empty-state-subtitle-font-size));font-weight:var(--luzmo-ai-chat-empty-state-subtitle-font-weight,var(--ai-chat-empty-state-subtitle-font-weight));line-height:var(--luzmo-ai-chat-empty-state-subtitle-line-height,var(--ai-chat-empty-state-subtitle-line-height));color:var(--luzmo-ai-chat-empty-state-subtitle-color,var(--ai-chat-empty-state-subtitle-color));margin:0}.suggestions{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-suggestions-gap,var(--ai-chat-empty-state-suggestions-gap));flex-wrap:wrap;width:100%;display:flex}luzmo-action-button{max-width:100%}:host{--ai-chat-empty-state-header-actions-gap:1.5rem;--ai-chat-empty-state-actions-gap:var(--luzmo-spacing-4);--ai-chat-empty-state-suggestions-gap:var(--luzmo-spacing-3);--ai-chat-empty-state-max-width:22.5rem;--ai-chat-empty-state-padding-block:2rem;--ai-chat-empty-state-padding-inline:var(--luzmo-spacing-5);--ai-chat-empty-state-title-font-size:var(--luzmo-font-size-l);--ai-chat-empty-state-title-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-title-line-height:1.4;--ai-chat-empty-state-title-color:var(--luzmo-font-color-hard);--ai-chat-empty-state-subtitle-font-size:var(--luzmo-font-size-s);--ai-chat-empty-state-subtitle-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-subtitle-line-height:var(--luzmo-line-height);--ai-chat-empty-state-subtitle-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed))}", Q = class extends i {
|
|
2292
2353
|
constructor(...e) {
|
|
2293
2354
|
super(...e), this.title = o("What can I help you with?", { desc: "Title for the AI chat empty state" }), this.subtitle = "", this.suggestions = [], this.disabled = !1;
|
|
2294
2355
|
}
|
|
2295
2356
|
static {
|
|
2296
|
-
this.styles = f(
|
|
2357
|
+
this.styles = f(Dn);
|
|
2297
2358
|
}
|
|
2298
2359
|
static {
|
|
2299
2360
|
this.tagName = "luzmo-ai-chat-empty-state";
|
|
@@ -2346,16 +2407,16 @@ var Cn = ":host{box-sizing:border-box;flex-direction:column;width:100%;height:10
|
|
|
2346
2407
|
};
|
|
2347
2408
|
//#endregion
|
|
2348
2409
|
//#region src/components/ai-chat/empty-state/index.ts
|
|
2349
|
-
a([p({ type: String })],
|
|
2410
|
+
a([p({ type: String })], Q.prototype, "title", void 0), a([p({ type: String })], Q.prototype, "subtitle", void 0), a([p({ type: Array })], Q.prototype, "suggestions", void 0), a([p({
|
|
2350
2411
|
type: Boolean,
|
|
2351
2412
|
reflect: !0
|
|
2352
|
-
})],
|
|
2413
|
+
})], Q.prototype, "disabled", void 0), customElements.get("luzmo-ai-chat-empty-state") || customElements.define("luzmo-ai-chat-empty-state", Q);
|
|
2353
2414
|
//#endregion
|
|
2354
2415
|
//#region src/components/ai-chat/ai-chat-request.ts
|
|
2355
|
-
function
|
|
2416
|
+
function On(e, t) {
|
|
2356
2417
|
return `${e.replace(/\/+$/, "")}/${t.replace(/^\/+|\/+$/g, "")}/aiprompt`;
|
|
2357
2418
|
}
|
|
2358
|
-
function
|
|
2419
|
+
function kn(e) {
|
|
2359
2420
|
return e.type === "placeholder" ? null : {
|
|
2360
2421
|
...e,
|
|
2361
2422
|
version: e.version || "",
|
|
@@ -2364,7 +2425,7 @@ function Dn(e) {
|
|
|
2364
2425
|
aichartId: e.aichartId || ""
|
|
2365
2426
|
};
|
|
2366
2427
|
}
|
|
2367
|
-
function
|
|
2428
|
+
function An(e, t, n = []) {
|
|
2368
2429
|
return [
|
|
2369
2430
|
{
|
|
2370
2431
|
type: "text",
|
|
@@ -2380,7 +2441,7 @@ function On(e, t, n = []) {
|
|
|
2380
2441
|
}))
|
|
2381
2442
|
];
|
|
2382
2443
|
}
|
|
2383
|
-
function
|
|
2444
|
+
function jn(e) {
|
|
2384
2445
|
return {
|
|
2385
2446
|
stream: e.stream ?? !0,
|
|
2386
2447
|
response_mode: "mixed",
|
|
@@ -2388,43 +2449,43 @@ function kn(e) {
|
|
|
2388
2449
|
...e.localeId ? { locale_id: e.localeId } : {}
|
|
2389
2450
|
};
|
|
2390
2451
|
}
|
|
2391
|
-
function
|
|
2452
|
+
function Mn(e, t, n) {
|
|
2392
2453
|
return {
|
|
2393
2454
|
agent: e,
|
|
2394
2455
|
task: t,
|
|
2395
|
-
...
|
|
2456
|
+
...jn(n)
|
|
2396
2457
|
};
|
|
2397
2458
|
}
|
|
2398
|
-
function
|
|
2399
|
-
let t =
|
|
2459
|
+
function Nn(e) {
|
|
2460
|
+
let t = An(e.prompt, e.datasetIds, e.attachmentUrls), n = e.chart ? kn(e.chart) : null;
|
|
2400
2461
|
return n && t.push({
|
|
2401
2462
|
type: "item",
|
|
2402
2463
|
value: n
|
|
2403
2464
|
}), {
|
|
2404
|
-
...
|
|
2465
|
+
...Mn("item", e.task ?? "generate", e),
|
|
2405
2466
|
input: t
|
|
2406
2467
|
};
|
|
2407
2468
|
}
|
|
2408
|
-
function
|
|
2409
|
-
let t =
|
|
2469
|
+
function Pn(e) {
|
|
2470
|
+
let t = An(e.prompt, e.datasetIds, e.attachmentUrls);
|
|
2410
2471
|
return e.dashboard && t.push({
|
|
2411
2472
|
type: "dashboard",
|
|
2412
2473
|
value: e.dashboard,
|
|
2413
2474
|
...e.currentScreenMode ? { current_screen_mode: e.currentScreenMode } : {}
|
|
2414
2475
|
}), {
|
|
2415
|
-
...
|
|
2476
|
+
...Mn("dashboard", "generate", e),
|
|
2416
2477
|
timezone_id: e.timezoneId ?? "UTC",
|
|
2417
2478
|
input: t
|
|
2418
2479
|
};
|
|
2419
2480
|
}
|
|
2420
|
-
function
|
|
2481
|
+
function Fn(e) {
|
|
2421
2482
|
return {
|
|
2422
|
-
...
|
|
2423
|
-
input:
|
|
2483
|
+
...Mn("analyst", "generate", e),
|
|
2484
|
+
input: An(e.prompt, e.datasetIds, e.attachmentUrls)
|
|
2424
2485
|
};
|
|
2425
2486
|
}
|
|
2426
|
-
function
|
|
2427
|
-
let n =
|
|
2487
|
+
function In(e, t) {
|
|
2488
|
+
let n = An(t.prompt, t.datasetIds, t.attachmentUrls), r = t.chart ? kn(t.chart) : null;
|
|
2428
2489
|
return r && n.push({
|
|
2429
2490
|
type: "item",
|
|
2430
2491
|
value: r
|
|
@@ -2434,29 +2495,29 @@ function Pn(e, t) {
|
|
|
2434
2495
|
...t.currentScreenMode ? { current_screen_mode: t.currentScreenMode } : {}
|
|
2435
2496
|
}), {
|
|
2436
2497
|
agent_id: e,
|
|
2437
|
-
...
|
|
2498
|
+
...jn(t),
|
|
2438
2499
|
input: n
|
|
2439
2500
|
};
|
|
2440
2501
|
}
|
|
2441
|
-
function
|
|
2442
|
-
if (t.agentId) return
|
|
2502
|
+
function Ln(e, t) {
|
|
2503
|
+
if (t.agentId) return In(t.agentId, t);
|
|
2443
2504
|
switch (e) {
|
|
2444
|
-
case "dashboard": return
|
|
2445
|
-
case "analyst": return
|
|
2446
|
-
default: return
|
|
2505
|
+
case "dashboard": return Pn(t);
|
|
2506
|
+
case "analyst": return Fn(t);
|
|
2507
|
+
default: return Nn(t);
|
|
2447
2508
|
}
|
|
2448
2509
|
}
|
|
2449
|
-
function
|
|
2510
|
+
function Rn(e, n) {
|
|
2450
2511
|
let { authKey: r, authToken: i, apiVersion: a = "0.1.0" } = n;
|
|
2451
2512
|
return n.attachmentUrls?.length && t(n.attachmentUrls), {
|
|
2452
2513
|
key: r,
|
|
2453
2514
|
token: i,
|
|
2454
2515
|
action: "create",
|
|
2455
2516
|
version: a,
|
|
2456
|
-
properties:
|
|
2517
|
+
properties: Ln(e, n)
|
|
2457
2518
|
};
|
|
2458
2519
|
}
|
|
2459
|
-
function
|
|
2520
|
+
function zn(e, t, n, r = "0.1.0", i = null) {
|
|
2460
2521
|
return {
|
|
2461
2522
|
key: t,
|
|
2462
2523
|
token: n,
|
|
@@ -2471,7 +2532,7 @@ function Ln(e, t, n, r = "0.1.0", i = null) {
|
|
|
2471
2532
|
}
|
|
2472
2533
|
//#endregion
|
|
2473
2534
|
//#region src/components/ai-chat/stream/transport.ts
|
|
2474
|
-
async function
|
|
2535
|
+
async function Bn(e) {
|
|
2475
2536
|
let t = await fetch(e.url, {
|
|
2476
2537
|
method: "POST",
|
|
2477
2538
|
headers: { "Content-Type": "application/json" },
|
|
@@ -2489,21 +2550,21 @@ async function Rn(e) {
|
|
|
2489
2550
|
conversationId: t.headers.get("x-conversation-id")
|
|
2490
2551
|
};
|
|
2491
2552
|
}
|
|
2492
|
-
function
|
|
2553
|
+
function Vn(e) {
|
|
2493
2554
|
let t = e.trim();
|
|
2494
2555
|
if (!t || t.startsWith(":") || t.startsWith("event:") || t.startsWith("id:")) return null;
|
|
2495
2556
|
let n = t;
|
|
2496
2557
|
return n.startsWith("data:") && (n = n.slice(5).trimStart()), !n || n === "[DONE]" ? null : JSON.parse(n);
|
|
2497
2558
|
}
|
|
2498
|
-
function
|
|
2559
|
+
function Hn(e, t) {
|
|
2499
2560
|
try {
|
|
2500
|
-
let n =
|
|
2561
|
+
let n = Vn(e);
|
|
2501
2562
|
n && t(n);
|
|
2502
2563
|
} catch {
|
|
2503
2564
|
console.error("Failed to parse stream line");
|
|
2504
2565
|
}
|
|
2505
2566
|
}
|
|
2506
|
-
async function
|
|
2567
|
+
async function Un(e, t) {
|
|
2507
2568
|
let n = e.getReader(), r = new TextDecoder(), i = "";
|
|
2508
2569
|
try {
|
|
2509
2570
|
for (;;) {
|
|
@@ -2512,18 +2573,18 @@ async function Vn(e, t) {
|
|
|
2512
2573
|
i += r.decode(a, { stream: !0 });
|
|
2513
2574
|
let o = i.split(/\r?\n/);
|
|
2514
2575
|
i = o.pop() ?? "";
|
|
2515
|
-
for (let e of o)
|
|
2576
|
+
for (let e of o) Hn(e, t);
|
|
2516
2577
|
}
|
|
2517
2578
|
i += r.decode();
|
|
2518
2579
|
let e = i.trim();
|
|
2519
|
-
e &&
|
|
2580
|
+
e && Hn(e, t);
|
|
2520
2581
|
} finally {
|
|
2521
2582
|
n.releaseLock();
|
|
2522
2583
|
}
|
|
2523
2584
|
}
|
|
2524
2585
|
//#endregion
|
|
2525
2586
|
//#region src/components/ai-chat/stream/progress.ts
|
|
2526
|
-
function
|
|
2587
|
+
function Wn() {
|
|
2527
2588
|
return {
|
|
2528
2589
|
id: "root",
|
|
2529
2590
|
step: "root",
|
|
@@ -2536,13 +2597,13 @@ function Hn() {
|
|
|
2536
2597
|
}]
|
|
2537
2598
|
};
|
|
2538
2599
|
}
|
|
2539
|
-
function
|
|
2600
|
+
function Gn(e) {
|
|
2540
2601
|
let t = e.progress;
|
|
2541
2602
|
return typeof t != "object" || !t ? !1 : "id" in t && "step" in t && "status" in t;
|
|
2542
2603
|
}
|
|
2543
2604
|
//#endregion
|
|
2544
2605
|
//#region src/components/ai-chat/stream/chunk-extractors.ts
|
|
2545
|
-
function
|
|
2606
|
+
function Kn(e) {
|
|
2546
2607
|
if (!e || typeof e != "object") return "";
|
|
2547
2608
|
let t = e.assistant_message;
|
|
2548
2609
|
if (!t || typeof t != "object") return "";
|
|
@@ -2552,75 +2613,75 @@ function Wn(e) {
|
|
|
2552
2613
|
let n = t.content;
|
|
2553
2614
|
return typeof n == "string" ? n : n && typeof n == "object" && typeof n.text == "string" ? n.text : "";
|
|
2554
2615
|
}
|
|
2555
|
-
function
|
|
2616
|
+
function qn(e) {
|
|
2556
2617
|
return e.type === "text_delta" && typeof e.delta == "string" ? e.delta : typeof e.text_delta == "string" ? e.text_delta : typeof e.chunk == "string" ? e.chunk : typeof e.message == "string" ? e.message : typeof e.summary == "string" ? e.summary : "";
|
|
2557
2618
|
}
|
|
2558
|
-
function
|
|
2559
|
-
return
|
|
2619
|
+
function Jn(e) {
|
|
2620
|
+
return Kn(e.result);
|
|
2560
2621
|
}
|
|
2561
|
-
function
|
|
2622
|
+
function Yn(e) {
|
|
2562
2623
|
return !!e.done || e.type === "finish" || e.type === "done" || "question" in e;
|
|
2563
2624
|
}
|
|
2564
|
-
function
|
|
2625
|
+
function Xn(e, t) {
|
|
2565
2626
|
let n = typeof e.conversation_id == "string" && e.conversation_id || typeof e.conversationId == "string" && e.conversationId;
|
|
2566
2627
|
n && t.callbacks.onConversationIdChange(n);
|
|
2567
2628
|
}
|
|
2568
|
-
function
|
|
2629
|
+
function Zn(e) {
|
|
2569
2630
|
for (let t of e) if (t && typeof t == "object" && t.type === "item") {
|
|
2570
2631
|
let e = t.value;
|
|
2571
2632
|
if (e && typeof e == "object") return e;
|
|
2572
2633
|
}
|
|
2573
2634
|
return null;
|
|
2574
2635
|
}
|
|
2575
|
-
function
|
|
2636
|
+
function Qn(e) {
|
|
2576
2637
|
let t = e.chart ?? e.generatedChart;
|
|
2577
2638
|
if (t && typeof t == "object") return t;
|
|
2578
2639
|
let n = e.aiMessageAssets ?? e.ai_message_assets;
|
|
2579
2640
|
if (Array.isArray(n)) {
|
|
2580
|
-
let e =
|
|
2641
|
+
let e = Zn(n);
|
|
2581
2642
|
if (e) return e;
|
|
2582
2643
|
}
|
|
2583
2644
|
let r = e.result;
|
|
2584
2645
|
if (r && typeof r == "object") {
|
|
2585
2646
|
let e = r.assistant_message, t = e?.aiMessageAssets ?? e?.ai_message_assets;
|
|
2586
|
-
if (Array.isArray(t)) return
|
|
2647
|
+
if (Array.isArray(t)) return Zn(t);
|
|
2587
2648
|
}
|
|
2588
2649
|
return null;
|
|
2589
2650
|
}
|
|
2590
|
-
function
|
|
2651
|
+
function $n(e) {
|
|
2591
2652
|
for (let t of e) if (t && typeof t == "object" && t.type === "dashboard") {
|
|
2592
2653
|
let e = t.value;
|
|
2593
2654
|
if (e && typeof e == "object" && Array.isArray(e.views)) return e;
|
|
2594
2655
|
}
|
|
2595
2656
|
return null;
|
|
2596
2657
|
}
|
|
2597
|
-
function
|
|
2658
|
+
function er(e) {
|
|
2598
2659
|
for (let t of e) if (t && typeof t == "object" && t.type === "dashboard") {
|
|
2599
2660
|
let e = t.name;
|
|
2600
2661
|
if (e && typeof e == "object") return e;
|
|
2601
2662
|
}
|
|
2602
2663
|
}
|
|
2603
|
-
function
|
|
2664
|
+
function tr(...e) {
|
|
2604
2665
|
return e.find(Array.isArray);
|
|
2605
2666
|
}
|
|
2606
|
-
function
|
|
2667
|
+
function nr(e) {
|
|
2607
2668
|
if (e.views && Array.isArray(e.views)) return e;
|
|
2608
2669
|
let t = e.aiMessageAssets ?? e.ai_message_assets;
|
|
2609
|
-
if (Array.isArray(t)) return
|
|
2670
|
+
if (Array.isArray(t)) return $n(t);
|
|
2610
2671
|
let n = e.result;
|
|
2611
2672
|
if (n && typeof n == "object") {
|
|
2612
2673
|
let e = n.assistant_message, t = e?.aiMessageAssets ?? e?.ai_message_assets;
|
|
2613
|
-
if (Array.isArray(t)) return
|
|
2674
|
+
if (Array.isArray(t)) return $n(t);
|
|
2614
2675
|
}
|
|
2615
2676
|
return null;
|
|
2616
2677
|
}
|
|
2617
|
-
function
|
|
2618
|
-
let t = e.aiMessageAssets ?? e.ai_message_assets, n = e.result?.assistant_message, r =
|
|
2619
|
-
return r ?
|
|
2678
|
+
function rr(e) {
|
|
2679
|
+
let t = e.aiMessageAssets ?? e.ai_message_assets, n = e.result?.assistant_message, r = tr(t, n?.aiMessageAssets ?? n?.ai_message_assets);
|
|
2680
|
+
return r ? er(r) : void 0;
|
|
2620
2681
|
}
|
|
2621
2682
|
//#endregion
|
|
2622
2683
|
//#region src/components/ai-chat/stream/stream-processor.ts
|
|
2623
|
-
var
|
|
2684
|
+
var ir = /* @__PURE__ */ new Set([
|
|
2624
2685
|
"conversation-id",
|
|
2625
2686
|
"conversation_id",
|
|
2626
2687
|
"keepalive",
|
|
@@ -2628,7 +2689,7 @@ var nr = /* @__PURE__ */ new Set([
|
|
|
2628
2689
|
"finish",
|
|
2629
2690
|
"done"
|
|
2630
2691
|
]);
|
|
2631
|
-
function
|
|
2692
|
+
function ar(e, t, n) {
|
|
2632
2693
|
return {
|
|
2633
2694
|
agent: n.agent,
|
|
2634
2695
|
conversationId: t.callbacks.getConversationId(),
|
|
@@ -2636,128 +2697,128 @@ function rr(e, t, n) {
|
|
|
2636
2697
|
raw: e
|
|
2637
2698
|
};
|
|
2638
2699
|
}
|
|
2639
|
-
function
|
|
2700
|
+
function or(e, t, n, r, i) {
|
|
2640
2701
|
let a = {
|
|
2641
|
-
...
|
|
2702
|
+
...ar(n, e, t),
|
|
2642
2703
|
recognized: !0,
|
|
2643
2704
|
type: r,
|
|
2644
2705
|
data: i
|
|
2645
2706
|
};
|
|
2646
2707
|
e.callbacks.onStep(a);
|
|
2647
2708
|
}
|
|
2648
|
-
function
|
|
2709
|
+
function sr(e, t, n, r, i) {
|
|
2649
2710
|
let a = {
|
|
2650
|
-
...
|
|
2711
|
+
...ar(n, e, t),
|
|
2651
2712
|
recognized: !1,
|
|
2652
2713
|
type: r,
|
|
2653
2714
|
data: i
|
|
2654
2715
|
};
|
|
2655
2716
|
e.callbacks.onStep(a);
|
|
2656
2717
|
}
|
|
2657
|
-
function
|
|
2718
|
+
function cr(e) {
|
|
2658
2719
|
e.state.progressCollapsed || (e.state.progressCollapsed = !0, e.callbacks.onProgressCollapsed(!0));
|
|
2659
2720
|
}
|
|
2660
|
-
function
|
|
2661
|
-
|
|
2721
|
+
function lr(e, t) {
|
|
2722
|
+
cr(e), e.aiMessage.message = (e.aiMessage.message || "") + t, e.callbacks.onMessageUpdate(e.aiMessage);
|
|
2662
2723
|
}
|
|
2663
|
-
function
|
|
2724
|
+
function ur(e) {
|
|
2664
2725
|
if (!e) return null;
|
|
2665
2726
|
let t = e.descriptionMetadata?.decision;
|
|
2666
2727
|
if (t === "create" || t === "edit" || t === "question") return t;
|
|
2667
2728
|
for (let t of e.children ?? []) {
|
|
2668
|
-
let e =
|
|
2729
|
+
let e = ur(t);
|
|
2669
2730
|
if (e) return e;
|
|
2670
2731
|
}
|
|
2671
2732
|
return null;
|
|
2672
2733
|
}
|
|
2673
|
-
function
|
|
2674
|
-
if (!
|
|
2734
|
+
function dr(e, t, n) {
|
|
2735
|
+
if (!Gn(e)) return !1;
|
|
2675
2736
|
let r = e.progress;
|
|
2676
|
-
if (t.callbacks.onProgress(r),
|
|
2677
|
-
let i =
|
|
2678
|
-
i && (t.state.decision = i,
|
|
2737
|
+
if (t.callbacks.onProgress(r), or(t, n, e, "progress", r), t.state.decision === null) {
|
|
2738
|
+
let i = ur(r);
|
|
2739
|
+
i && (t.state.decision = i, or(t, n, e, "decision", { decision: i }));
|
|
2679
2740
|
}
|
|
2680
2741
|
return !0;
|
|
2681
2742
|
}
|
|
2682
|
-
function
|
|
2743
|
+
function fr(e) {
|
|
2683
2744
|
return !!e.error || e.type === "error" || typeof e.error_text == "string";
|
|
2684
2745
|
}
|
|
2685
|
-
function
|
|
2746
|
+
function pr(e) {
|
|
2686
2747
|
return typeof e.error_text == "string" && e.error_text ? e.error_text : typeof e.error == "string" && e.error ? e.error : o("Something went wrong. Please try again.", { desc: "Generic error message shown in ai chat when the API request fails" });
|
|
2687
2748
|
}
|
|
2688
|
-
function
|
|
2689
|
-
if (!
|
|
2690
|
-
let r =
|
|
2691
|
-
return t.aiMessage.message = r, t.aiMessage.isError = !0, t.callbacks.onMessageUpdate(t.aiMessage),
|
|
2749
|
+
function mr(e, t, n) {
|
|
2750
|
+
if (!fr(e)) return !1;
|
|
2751
|
+
let r = pr(e);
|
|
2752
|
+
return t.aiMessage.message = r, t.aiMessage.isError = !0, t.callbacks.onMessageUpdate(t.aiMessage), Fr(e, t, n, e.error ?? r), !0;
|
|
2692
2753
|
}
|
|
2693
|
-
function
|
|
2754
|
+
function hr(e) {
|
|
2694
2755
|
return typeof e.question == "string" && e.question ? e.question : typeof e.text == "string" && e.text ? e.text : "";
|
|
2695
2756
|
}
|
|
2696
|
-
function
|
|
2757
|
+
function gr(e, t, n) {
|
|
2697
2758
|
if (e.type !== "interrupt") return !1;
|
|
2698
|
-
let r =
|
|
2699
|
-
return r && (t.state.interruptQuestion = r,
|
|
2759
|
+
let r = hr(e);
|
|
2760
|
+
return r && (t.state.interruptQuestion = r, lr(t, r), or(t, n, e, "interrupt", { question: r })), Fr(e, t, n), !0;
|
|
2700
2761
|
}
|
|
2701
|
-
function
|
|
2762
|
+
function _r(e) {
|
|
2702
2763
|
return typeof e.asset_id == "string" ? e.asset_id : typeof e.asset_type == "string" ? e.asset_type : "default";
|
|
2703
2764
|
}
|
|
2704
|
-
function
|
|
2765
|
+
function vr(e) {
|
|
2705
2766
|
return typeof e.asset_type == "string" ? e.asset_type : "";
|
|
2706
2767
|
}
|
|
2707
|
-
function
|
|
2768
|
+
function yr(e) {
|
|
2708
2769
|
return {
|
|
2709
|
-
assetType:
|
|
2770
|
+
assetType: vr(e),
|
|
2710
2771
|
snapshot: {}
|
|
2711
2772
|
};
|
|
2712
2773
|
}
|
|
2713
|
-
function
|
|
2774
|
+
function br(e, t) {
|
|
2714
2775
|
return {
|
|
2715
2776
|
...e,
|
|
2716
2777
|
...t
|
|
2717
2778
|
};
|
|
2718
2779
|
}
|
|
2719
|
-
function
|
|
2780
|
+
function xr(e) {
|
|
2720
2781
|
let t = e.asset_delta ?? e.delta;
|
|
2721
2782
|
return t && typeof t == "object" ? t : null;
|
|
2722
2783
|
}
|
|
2723
|
-
function
|
|
2724
|
-
t.state.assets[
|
|
2784
|
+
function Sr(e, t) {
|
|
2785
|
+
t.state.assets[_r(e)] = yr(e);
|
|
2725
2786
|
}
|
|
2726
|
-
function
|
|
2727
|
-
let n =
|
|
2728
|
-
i && (r.snapshot =
|
|
2787
|
+
function Cr(e, t) {
|
|
2788
|
+
let n = _r(e), r = t.state.assets[n] ?? yr(e), i = xr(e);
|
|
2789
|
+
i && (r.snapshot = br(r.snapshot, i)), t.state.assets[n] = r;
|
|
2729
2790
|
}
|
|
2730
|
-
function
|
|
2791
|
+
function wr(e, t) {
|
|
2731
2792
|
let n = e.asset ?? e.value ?? e.asset_delta ?? e.delta;
|
|
2732
|
-
return n && typeof n == "object" ?
|
|
2793
|
+
return n && typeof n == "object" ? br(t?.snapshot ?? {}, n) : t?.snapshot ?? {};
|
|
2733
2794
|
}
|
|
2734
|
-
function
|
|
2735
|
-
let r =
|
|
2736
|
-
delete t.state.assets[r],
|
|
2795
|
+
function Tr(e, t, n) {
|
|
2796
|
+
let r = _r(e), i = t.state.assets[r], a = i?.assetType || vr(e), o = wr(e, i);
|
|
2797
|
+
delete t.state.assets[r], Or(a, o, e, t, n);
|
|
2737
2798
|
}
|
|
2738
|
-
function
|
|
2799
|
+
function Er(e, t, n) {
|
|
2739
2800
|
switch (e.type) {
|
|
2740
|
-
case "asset_start": return
|
|
2741
|
-
case "asset_delta": return
|
|
2742
|
-
case "asset_end": return
|
|
2801
|
+
case "asset_start": return Sr(e, t), !0;
|
|
2802
|
+
case "asset_delta": return Cr(e, t), !0;
|
|
2803
|
+
case "asset_end": return Tr(e, t, n), !0;
|
|
2743
2804
|
default: return !1;
|
|
2744
2805
|
}
|
|
2745
2806
|
}
|
|
2746
|
-
function
|
|
2747
|
-
n.state.chartSnapshot = e, n.aiMessage.hasChart = !0, typeof t.messageId == "string" && (n.aiMessage.apiMessageId = t.messageId), n.callbacks.onMessageUpdate(n.aiMessage),
|
|
2807
|
+
function Dr(e, t, n, r) {
|
|
2808
|
+
n.state.chartSnapshot = e, n.aiMessage.hasChart = !0, typeof t.messageId == "string" && (n.aiMessage.apiMessageId = t.messageId), n.callbacks.onMessageUpdate(n.aiMessage), or(n, r, t, "chart", e);
|
|
2748
2809
|
}
|
|
2749
|
-
function
|
|
2810
|
+
function Or(e, t, n, r, i) {
|
|
2750
2811
|
switch (e) {
|
|
2751
2812
|
case "dashboard-title": {
|
|
2752
2813
|
let e = t.name;
|
|
2753
|
-
e && typeof e == "object" && (r.state.dashboardName = e,
|
|
2814
|
+
e && typeof e == "object" && (r.state.dashboardName = e, or(r, i, n, "dashboard-title", { name: e }));
|
|
2754
2815
|
return;
|
|
2755
2816
|
}
|
|
2756
2817
|
case "dashboard-layout":
|
|
2757
|
-
|
|
2818
|
+
or(r, i, n, "dashboard-layout", t);
|
|
2758
2819
|
return;
|
|
2759
2820
|
case "dashboard-item":
|
|
2760
|
-
|
|
2821
|
+
or(r, i, n, "dashboard-item", {
|
|
2761
2822
|
slot: Number(t.slot),
|
|
2762
2823
|
chart: t.chart ?? t
|
|
2763
2824
|
});
|
|
@@ -2765,68 +2826,68 @@ function Er(e, t, n, r, i) {
|
|
|
2765
2826
|
case "dashboard":
|
|
2766
2827
|
r.state.dashboardSnapshot = t;
|
|
2767
2828
|
return;
|
|
2768
|
-
default:
|
|
2829
|
+
default: kr(e, t, n, r, i);
|
|
2769
2830
|
}
|
|
2770
2831
|
}
|
|
2771
|
-
function
|
|
2832
|
+
function kr(e, t, n, r, i) {
|
|
2772
2833
|
if (i.chartAssetType && e === i.chartAssetType) {
|
|
2773
|
-
|
|
2834
|
+
Dr(t, n, r, i);
|
|
2774
2835
|
return;
|
|
2775
2836
|
}
|
|
2776
2837
|
if (i.dashboardAssetType && e === i.dashboardAssetType) {
|
|
2777
2838
|
r.state.dashboardSnapshot = t;
|
|
2778
2839
|
return;
|
|
2779
2840
|
}
|
|
2780
|
-
|
|
2841
|
+
sr(r, i, n, e || "asset", t);
|
|
2781
2842
|
}
|
|
2782
|
-
function
|
|
2843
|
+
function Ar(e, t, n) {
|
|
2783
2844
|
let r = !1;
|
|
2784
2845
|
if (n.dashboardAssetType) {
|
|
2785
|
-
let n =
|
|
2846
|
+
let n = nr(e);
|
|
2786
2847
|
if (n) {
|
|
2787
2848
|
t.state.dashboardSnapshot = n;
|
|
2788
|
-
let i =
|
|
2849
|
+
let i = rr(e);
|
|
2789
2850
|
i && (t.state.dashboardName = i), r = !0;
|
|
2790
2851
|
}
|
|
2791
2852
|
}
|
|
2792
2853
|
if (n.chartAssetType && !t.state.chartSnapshot) {
|
|
2793
|
-
let i =
|
|
2794
|
-
i && (
|
|
2854
|
+
let i = Qn(e);
|
|
2855
|
+
i && (Dr(i, e, t, n), r = !0);
|
|
2795
2856
|
}
|
|
2796
2857
|
return r;
|
|
2797
2858
|
}
|
|
2798
|
-
function
|
|
2859
|
+
function jr(e, t, n) {
|
|
2799
2860
|
return {
|
|
2800
2861
|
...e,
|
|
2801
2862
|
generatedChart: t,
|
|
2802
2863
|
conversationId: n.callbacks.getConversationId()
|
|
2803
2864
|
};
|
|
2804
2865
|
}
|
|
2805
|
-
function
|
|
2866
|
+
function Mr(e, t, n) {
|
|
2806
2867
|
for (let r of Object.keys(t.state.assets)) {
|
|
2807
2868
|
let i = t.state.assets[r];
|
|
2808
|
-
delete t.state.assets[r], !(n.chartAssetType && i.assetType === n.chartAssetType && t.state.chartSnapshot || n.dashboardAssetType && i.assetType === n.dashboardAssetType && t.state.dashboardSnapshot) &&
|
|
2869
|
+
delete t.state.assets[r], !(n.chartAssetType && i.assetType === n.chartAssetType && t.state.chartSnapshot || n.dashboardAssetType && i.assetType === n.dashboardAssetType && t.state.dashboardSnapshot) && Or(i.assetType, i.snapshot, e, t, n);
|
|
2809
2870
|
}
|
|
2810
2871
|
}
|
|
2811
|
-
function
|
|
2812
|
-
let n =
|
|
2872
|
+
function Nr(e, t) {
|
|
2873
|
+
let n = Jn(e);
|
|
2813
2874
|
!n || t.aiMessage.message === n || (t.aiMessage.message = n, t.callbacks.onMessageUpdate(t.aiMessage));
|
|
2814
2875
|
}
|
|
2815
|
-
function
|
|
2816
|
-
let r = t.state.dashboardSnapshot ?? (n.dashboardAssetType ?
|
|
2876
|
+
function Pr(e, t, n) {
|
|
2877
|
+
let r = t.state.dashboardSnapshot ?? (n.dashboardAssetType ? nr(e) : null), i = t.state.chartSnapshot ?? (n.chartAssetType ? Qn(e) : null);
|
|
2817
2878
|
return {
|
|
2818
2879
|
agent: n.agent,
|
|
2819
2880
|
conversationId: t.callbacks.getConversationId(),
|
|
2820
2881
|
message: t.aiMessage,
|
|
2821
2882
|
...r ? { dashboard: r } : {},
|
|
2822
|
-
...i ? { chart:
|
|
2883
|
+
...i ? { chart: jr(e, i, t) } : {},
|
|
2823
2884
|
...t.state.dashboardName ? { name: t.state.dashboardName } : {},
|
|
2824
2885
|
raw: e
|
|
2825
2886
|
};
|
|
2826
2887
|
}
|
|
2827
|
-
function
|
|
2888
|
+
function Fr(e, t, n, r) {
|
|
2828
2889
|
if (!t.state.completed) {
|
|
2829
|
-
if (t.state.completed = !0,
|
|
2890
|
+
if (t.state.completed = !0, Mr(e, t, n), cr(t), r !== void 0) {
|
|
2830
2891
|
t.callbacks.onComplete({
|
|
2831
2892
|
agent: n.agent,
|
|
2832
2893
|
conversationId: t.callbacks.getConversationId(),
|
|
@@ -2836,32 +2897,32 @@ function Nr(e, t, n, r) {
|
|
|
2836
2897
|
});
|
|
2837
2898
|
return;
|
|
2838
2899
|
}
|
|
2839
|
-
|
|
2900
|
+
Nr(e, t), t.callbacks.onComplete(Pr(e, t, n));
|
|
2840
2901
|
}
|
|
2841
2902
|
}
|
|
2842
|
-
function
|
|
2903
|
+
function Ir(e) {
|
|
2843
2904
|
return typeof e.type == "string" && e.type ? e.type : typeof e.asset_type == "string" && e.asset_type ? e.asset_type : "";
|
|
2844
2905
|
}
|
|
2845
|
-
function
|
|
2846
|
-
let r =
|
|
2847
|
-
return r ? (t.state.accumulatedText += r,
|
|
2906
|
+
function Lr(e, t, n) {
|
|
2907
|
+
let r = qn(e);
|
|
2908
|
+
return r ? (t.state.accumulatedText += r, lr(t, r), or(t, n, e, "text", {
|
|
2848
2909
|
delta: r,
|
|
2849
2910
|
text: t.state.accumulatedText
|
|
2850
2911
|
}), !0) : !1;
|
|
2851
2912
|
}
|
|
2852
|
-
function
|
|
2913
|
+
function Rr(e, t, n, r, i) {
|
|
2853
2914
|
if (r || i) return;
|
|
2854
|
-
let a =
|
|
2855
|
-
a && !
|
|
2915
|
+
let a = Ir(e);
|
|
2916
|
+
a && !ir.has(a) && sr(t, n, e, a, e);
|
|
2856
2917
|
}
|
|
2857
|
-
function
|
|
2858
|
-
if (
|
|
2859
|
-
let r =
|
|
2860
|
-
|
|
2918
|
+
function zr(e, t, n) {
|
|
2919
|
+
if (Xn(e, t), dr(e, t, n) || mr(e, t, n) || gr(e, t, n) || Er(e, t, n)) return;
|
|
2920
|
+
let r = Lr(e, t, n), i = Ar(e, t, n), a = r || i, o = Yn(e);
|
|
2921
|
+
Rr(e, t, n, a, o), o && Fr(e, t, n);
|
|
2861
2922
|
}
|
|
2862
2923
|
//#endregion
|
|
2863
2924
|
//#region src/components/ai-chat/stream/registry.ts
|
|
2864
|
-
function
|
|
2925
|
+
function Br(e) {
|
|
2865
2926
|
switch (e) {
|
|
2866
2927
|
case "dashboard": return {
|
|
2867
2928
|
agent: e,
|
|
@@ -2874,11 +2935,11 @@ function Rr(e) {
|
|
|
2874
2935
|
default: return { agent: e };
|
|
2875
2936
|
}
|
|
2876
2937
|
}
|
|
2877
|
-
function
|
|
2878
|
-
let t =
|
|
2879
|
-
return (e, n) =>
|
|
2938
|
+
function Vr(e) {
|
|
2939
|
+
let t = Br(e);
|
|
2940
|
+
return (e, n) => zr(e, n, t);
|
|
2880
2941
|
}
|
|
2881
|
-
function
|
|
2942
|
+
function Hr() {
|
|
2882
2943
|
return {
|
|
2883
2944
|
progressCollapsed: !1,
|
|
2884
2945
|
accumulatedText: "",
|
|
@@ -2893,10 +2954,10 @@ function Br() {
|
|
|
2893
2954
|
}
|
|
2894
2955
|
//#endregion
|
|
2895
2956
|
//#region src/components/ai-chat/session/ai-chat-session.ts
|
|
2896
|
-
function
|
|
2957
|
+
function Ur() {
|
|
2897
2958
|
return `msg-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
2898
2959
|
}
|
|
2899
|
-
var
|
|
2960
|
+
var Wr = class {
|
|
2900
2961
|
constructor(e, t = {}) {
|
|
2901
2962
|
this._uiBridgeCallbacks = {}, this._subscribers = /* @__PURE__ */ new Set(), this._state = {
|
|
2902
2963
|
messages: [],
|
|
@@ -2969,10 +3030,10 @@ var Hr = class {
|
|
|
2969
3030
|
return !this._config.requireDataset || this._state.selectedDatasets.length > 0 || !!e;
|
|
2970
3031
|
}
|
|
2971
3032
|
getAiPromptUrl() {
|
|
2972
|
-
return
|
|
3033
|
+
return On(this._config.apiUrl ?? "https://api.luzmo.com", this._config.apiVersion ?? "0.1.0");
|
|
2973
3034
|
}
|
|
2974
3035
|
buildRequestBody(e, t, n = [], r = this._config.agentId) {
|
|
2975
|
-
return
|
|
3036
|
+
return Rn(this._config.agent, {
|
|
2976
3037
|
prompt: e,
|
|
2977
3038
|
datasetIds: t,
|
|
2978
3039
|
authKey: this._config.authKey,
|
|
@@ -3046,13 +3107,13 @@ var Hr = class {
|
|
|
3046
3107
|
}
|
|
3047
3108
|
if (n.signal.aborted || this._abortController !== n) return;
|
|
3048
3109
|
let i = {
|
|
3049
|
-
id: e.aiMessageId ??
|
|
3110
|
+
id: e.aiMessageId ?? Ur(),
|
|
3050
3111
|
type: "ai",
|
|
3051
3112
|
message: ""
|
|
3052
3113
|
}, a = [...this._state.messages];
|
|
3053
3114
|
if (!e.skipUserMessage) {
|
|
3054
3115
|
let t = {
|
|
3055
|
-
id:
|
|
3116
|
+
id: Ur(),
|
|
3056
3117
|
type: "user",
|
|
3057
3118
|
message: e.prompt,
|
|
3058
3119
|
...r.length ? { attachmentUrls: r } : {}
|
|
@@ -3062,7 +3123,7 @@ var Hr = class {
|
|
|
3062
3123
|
a = [...a, i], this._inflightMessage = i, this._receivedProgress = !1, this._patchState({
|
|
3063
3124
|
messages: a,
|
|
3064
3125
|
isGenerating: !0,
|
|
3065
|
-
progress:
|
|
3126
|
+
progress: Wn(),
|
|
3066
3127
|
progressCollapsed: !1,
|
|
3067
3128
|
inflightMessage: i
|
|
3068
3129
|
});
|
|
@@ -3084,18 +3145,18 @@ var Hr = class {
|
|
|
3084
3145
|
}
|
|
3085
3146
|
return;
|
|
3086
3147
|
}
|
|
3087
|
-
let c = this.buildRequestBody(e.prompt, t, r, e.agentId), l =
|
|
3148
|
+
let c = this.buildRequestBody(e.prompt, t, r, e.agentId), l = Vr(this._config.agent), u = {
|
|
3088
3149
|
aiMessage: i,
|
|
3089
3150
|
callbacks: this._createStreamCallbacks(),
|
|
3090
|
-
state:
|
|
3091
|
-
}, d = this._config.fetchStreaming ??
|
|
3151
|
+
state: Hr()
|
|
3152
|
+
}, d = this._config.fetchStreaming ?? Bn, f = !1;
|
|
3092
3153
|
try {
|
|
3093
3154
|
let { body: e, conversationId: t } = await d({
|
|
3094
3155
|
url: this.getAiPromptUrl(),
|
|
3095
3156
|
body: c,
|
|
3096
3157
|
signal: n.signal
|
|
3097
3158
|
});
|
|
3098
|
-
t && this._setConversationId(t), await
|
|
3159
|
+
t && this._setConversationId(t), await Un(e, (e) => l(e, u)), f = !0;
|
|
3099
3160
|
} catch (e) {
|
|
3100
3161
|
e.name !== "AbortError" && (this._handleSubmitError(e, i), f = !0);
|
|
3101
3162
|
} finally {
|
|
@@ -3104,7 +3165,7 @@ var Hr = class {
|
|
|
3104
3165
|
}
|
|
3105
3166
|
async restore(e) {
|
|
3106
3167
|
if (this._config.agent !== "item") return {};
|
|
3107
|
-
let t =
|
|
3168
|
+
let t = zn(e.restoreToMessageId, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
|
|
3108
3169
|
if (this._patchState({
|
|
3109
3170
|
isGenerating: !0,
|
|
3110
3171
|
progress: null,
|
|
@@ -3134,7 +3195,7 @@ var Hr = class {
|
|
|
3134
3195
|
let e = await n.json().catch(() => null);
|
|
3135
3196
|
throw Error(e?.message || `API request failed with status ${n.status}`);
|
|
3136
3197
|
}
|
|
3137
|
-
let r = await n.json().catch(() => null), i = r?.generatedChart ?? (r ?
|
|
3198
|
+
let r = await n.json().catch(() => null), i = r?.generatedChart ?? (r ? Qn(r) : null), a = {
|
|
3138
3199
|
...typeof r?.message == "string" ? { message: r.message } : {},
|
|
3139
3200
|
...i ? { chart: {
|
|
3140
3201
|
...r,
|
|
@@ -3146,7 +3207,7 @@ var Hr = class {
|
|
|
3146
3207
|
message: a.message
|
|
3147
3208
|
}), this._patchState({ messages: [...o] }), a.chart || a.message) {
|
|
3148
3209
|
let t = o[e.messageIndex], n = t?.type === "ai" ? t : {
|
|
3149
|
-
id:
|
|
3210
|
+
id: Ur(),
|
|
3150
3211
|
type: "ai",
|
|
3151
3212
|
message: a.message ?? ""
|
|
3152
3213
|
};
|
|
@@ -3164,7 +3225,7 @@ var Hr = class {
|
|
|
3164
3225
|
}
|
|
3165
3226
|
}
|
|
3166
3227
|
buildRestoreRequest(e) {
|
|
3167
|
-
return
|
|
3228
|
+
return zn(e, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
|
|
3168
3229
|
}
|
|
3169
3230
|
abort(e = {}) {
|
|
3170
3231
|
this._abortController?.abort(), this._abortController = null, e.notify && this._inflightMessage ? this._markInflightCancelled(e.cancelledMessage) : this._discardInflightMessage(), this._patchState({
|
|
@@ -3268,12 +3329,12 @@ var Hr = class {
|
|
|
3268
3329
|
});
|
|
3269
3330
|
}
|
|
3270
3331
|
};
|
|
3271
|
-
function
|
|
3272
|
-
return new
|
|
3332
|
+
function Gr(e, t) {
|
|
3333
|
+
return new Wr(e, t);
|
|
3273
3334
|
}
|
|
3274
3335
|
//#endregion
|
|
3275
3336
|
//#region src/components/ai-chat/session/ai-chat-session-controller.ts
|
|
3276
|
-
var
|
|
3337
|
+
var Kr = class {
|
|
3277
3338
|
constructor(e) {
|
|
3278
3339
|
this.options = e, this._session = null, this._ownsSession = !1, this._seededFromProps = !1, this._unsubscribe = null;
|
|
3279
3340
|
}
|
|
@@ -3342,7 +3403,7 @@ var Wr = class {
|
|
|
3342
3403
|
_createSessionIfMissing() {
|
|
3343
3404
|
if (this._session) return;
|
|
3344
3405
|
let e = this.options.getSeed();
|
|
3345
|
-
this._session =
|
|
3406
|
+
this._session = Gr({
|
|
3346
3407
|
...this.options.getConfig(),
|
|
3347
3408
|
messages: e.messages.length > 0 ? [...e.messages] : void 0,
|
|
3348
3409
|
selectedDatasets: e.selectedDatasets.length > 0 ? [...e.selectedDatasets] : void 0
|
|
@@ -3366,7 +3427,7 @@ var Wr = class {
|
|
|
3366
3427
|
}
|
|
3367
3428
|
}, $ = class t extends i {
|
|
3368
3429
|
constructor(...e) {
|
|
3369
|
-
super(...e), this.messages = [], this.selectedDatasets = [], this.placeholder = "Describe your change", this.disabled = !1, this.stoppable = !1, this.showAssistantContextMenu = !1, this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.includePublicDatasets = !1, this.hideDatasetButton = !1, this.hideDatasetIcons = !1, this.disableDatasetModification = !1, this.hideSelectedDatasets = !1, this.disableColumnMentions = !1, this.requireDataset = !1, this.allowImages = !1, this.allowVoiceInput = !1, this.acceptedFileTypes = [], this.agent = "item", this.task = "generate", this.modelPreference = "performance", this.chatSession = null, this.conversationId = null, this.chart = null, this.dashboard = null, this.timezoneId = "UTC", this.apiVersion = "0.1.0", this.stream = !0, this.loadingMessage = null, this.cancelledMessage = null, this.initialPrompt = null, this.emptyStateTitle = "", this.emptyStateSubtitle = "", this.emptyStateSuggestions = [], this._textareaValue = "", this._assistantMessageActionsSlotHasContent = !1, this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1, this._lastProcessedInitialPrompt = null, this._session = new
|
|
3430
|
+
super(...e), this.messages = [], this.selectedDatasets = [], this.placeholder = "Describe your change", this.disabled = !1, this.stoppable = !1, this.showAssistantContextMenu = !1, this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.includePublicDatasets = !1, this.hideDatasetButton = !1, this.hideDatasetIcons = !1, this.disableDatasetModification = !1, this.hideSelectedDatasets = !1, this.hideAgents = !1, this.disableColumnMentions = !1, this.requireDataset = !1, this.allowImages = !1, this.allowVoiceInput = !1, this.acceptedFileTypes = [], this.agent = "item", this.task = "generate", this.modelPreference = "performance", this.chatSession = null, this.conversationId = null, this.chart = null, this.dashboard = null, this.timezoneId = "UTC", this.apiVersion = "0.1.0", this.stream = !0, this.loadingMessage = null, this.cancelledMessage = null, this.initialPrompt = null, this.emptyStateTitle = "", this.emptyStateSubtitle = "", this.emptyStateSuggestions = [], this._textareaValue = "", this._assistantMessageActionsSlotHasContent = !1, this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1, this._lastProcessedInitialPrompt = null, this._session = new Kr({
|
|
3370
3431
|
getConfig: () => this._buildSessionConfig(),
|
|
3371
3432
|
getSeed: () => ({
|
|
3372
3433
|
messages: this.messages,
|
|
@@ -3385,7 +3446,7 @@ var Wr = class {
|
|
|
3385
3446
|
};
|
|
3386
3447
|
}
|
|
3387
3448
|
static {
|
|
3388
|
-
this.styles = f(
|
|
3449
|
+
this.styles = f(En);
|
|
3389
3450
|
}
|
|
3390
3451
|
static {
|
|
3391
3452
|
this.tagName = "luzmo-ai-chat";
|
|
@@ -3449,7 +3510,7 @@ var Wr = class {
|
|
|
3449
3510
|
};
|
|
3450
3511
|
}
|
|
3451
3512
|
get _pickedAgentId() {
|
|
3452
|
-
return this.shadowRoot?.querySelector("luzmo-ai-interaction-textarea")?.selectedAgent?.id;
|
|
3513
|
+
if (!this.hideAgents) return this.shadowRoot?.querySelector("luzmo-ai-interaction-textarea")?.selectedAgent?.id;
|
|
3453
3514
|
}
|
|
3454
3515
|
get _resolvedAcceptedFileTypes() {
|
|
3455
3516
|
return this.acceptedFileTypes.length > 0 ? this.acceptedFileTypes : this.allowImages ? [...e] : [];
|
|
@@ -3583,8 +3644,8 @@ var Wr = class {
|
|
|
3583
3644
|
this.initialPrompt && this.initialPrompt !== this._lastProcessedInitialPrompt ? this._processInitialPrompt() : this.initialPrompt || (this._lastProcessedInitialPrompt = null);
|
|
3584
3645
|
}
|
|
3585
3646
|
_renderMarkdown(e) {
|
|
3586
|
-
let t = String(
|
|
3587
|
-
return
|
|
3647
|
+
let t = String(Z.parse(e, { async: !1 }));
|
|
3648
|
+
return O.sanitize(t, {
|
|
3588
3649
|
ALLOWED_TAGS: /* @__PURE__ */ "p.br.strong.em.b.i.u.s.code.pre.blockquote.hr.ul.ol.li.h1.h2.h3.h4.h5.h6.table.thead.tbody.tr.th.td.a".split("."),
|
|
3589
3650
|
ALLOWED_ATTR: [
|
|
3590
3651
|
"href",
|
|
@@ -3924,6 +3985,7 @@ var Wr = class {
|
|
|
3924
3985
|
?hide-dataset-icons=${this.hideDatasetIcons}
|
|
3925
3986
|
?disable-dataset-modification=${this.disableDatasetModification}
|
|
3926
3987
|
?hide-selected-datasets=${this.hideSelectedDatasets}
|
|
3988
|
+
?hide-agents=${this.hideAgents}
|
|
3927
3989
|
?disable-column-mentions=${this.disableColumnMentions}
|
|
3928
3990
|
?require-dataset=${this.requireDataset}
|
|
3929
3991
|
?allow-images=${this.allowImages}
|
|
@@ -3990,6 +4052,10 @@ a([p({ type: Array })], $.prototype, "messages", void 0), a([p({
|
|
|
3990
4052
|
type: Boolean,
|
|
3991
4053
|
attribute: "hide-selected-datasets"
|
|
3992
4054
|
})], $.prototype, "hideSelectedDatasets", void 0), a([p({
|
|
4055
|
+
type: Boolean,
|
|
4056
|
+
reflect: !0,
|
|
4057
|
+
attribute: "hide-agents"
|
|
4058
|
+
})], $.prototype, "hideAgents", void 0), a([p({
|
|
3993
4059
|
type: Boolean,
|
|
3994
4060
|
attribute: "disable-column-mentions"
|
|
3995
4061
|
})], $.prototype, "disableColumnMentions", void 0), a([p({
|
|
@@ -4051,11 +4117,11 @@ a([p({ type: Array })], $.prototype, "messages", void 0), a([p({
|
|
|
4051
4117
|
})], $.prototype, "emptyStateSuggestions", void 0), a([m()], $.prototype, "_textareaValue", void 0), a([m()], $.prototype, "_assistantMessageActionsSlotHasContent", void 0), a([m()], $.prototype, "_pendingAssistantMessageAction", void 0);
|
|
4052
4118
|
//#endregion
|
|
4053
4119
|
//#region src/components/ai-chat/ai-chat-events.ts
|
|
4054
|
-
function
|
|
4120
|
+
function qr(e) {
|
|
4055
4121
|
return e.recognized === !0;
|
|
4056
4122
|
}
|
|
4057
4123
|
//#endregion
|
|
4058
4124
|
//#region src/components/ai-chat/index.ts
|
|
4059
4125
|
customElements.get("luzmo-ai-chat") || customElements.define("luzmo-ai-chat", $);
|
|
4060
4126
|
//#endregion
|
|
4061
|
-
export {
|
|
4127
|
+
export { In as C, Q as E, Nn as S, On as T, zn as _, Gr as a, Fn as b, Br as c, nr as d, Wn as f, Un as g, Vn as h, Wr as i, zr as l, Bn as m, $ as n, Hr as o, Gn as p, Kr as r, Vr as s, qr as t, Qn as u, Ln as v, kn as w, Pn as x, Rn as y };
|